{"version":3,"sources":["services/auth.ts","services/axios.ts","constants/Index.ts","contexts/AuthContext.tsx","hooks/useAuth.ts","contexts/FilterContext.tsx","contexts/OnboardingContext.tsx","webpack:///./src/assets/svg/logo/logoPastejo.svg?b5bf","hooks/useOnboarding.ts","components/Onboarding/Template/SubStep/Index.tsx","components/Onboarding/Template/StepByStep/Index.tsx","components/Buttons/ButtonOnlyTitle/Index.tsx","components/Onboarding/Template/FooterControlls/Index.tsx","assets/svg/icons/close.svg","components/Modal/Contents/SimpleButtonClose/Index.tsx","assets/svg/icons/eye.svg","assets/svg/icons/eyeClosed.svg","assets/svg/icons/chevronDown.svg","components/Inputs/Select/Index.tsx","components/Inputs/TextInputs/TextInput/Index.tsx","components/Inputs/HandleUUID/Index.tsx","components/Onboarding/Register/CreateProfile/Index.tsx","components/Modal/Error/ButtonRedirect/Index.tsx","components/Modal/Contents/TitleModal/Index.tsx","components/Modal/Contents/TextModal/Index.tsx","components/Modal/Alert/Index.tsx","hooks/useYupValidate.ts","utils/uuid/generate.ts","contexts/EditValuesContext.tsx","hooks/EditValues.ts","pages/Onboarding/Register/CreateProfiles/Index.tsx","assets/svg/icons/leftChevron.svg","assets/svg/icons/rightChevron.svg","components/Onboarding/CattleMap/CategoryAnimal/Table/VisualizationContainer/Index.tsx","components/Onboarding/CattleMap/CategoryAnimal/Table/TableVisualizationRow/Index.tsx","components/Onboarding/CattleMap/CategoryAnimal/Table/EditContainer/Index.tsx","components/Onboarding/CattleMap/CategoryAnimal/InputWeight/Index.tsx","utils/uuid/radomString.ts","components/Onboarding/CattleMap/CategoryAnimal/Table/EditRow/Index.tsx","assets/svg/icons/penEdit.svg","components/Onboarding/CattleMap/CategoryAnimal/Table/Title/Index.tsx","components/Modal/Default/HeaderContentModal/Index.tsx","components/Modal/Default/FooterContentModal/Index.tsx","assets/svg/icons/positive.svg","components/Modal/Default/Index.tsx","assets/svg/icons/negative.svg","pages/Onboarding/Register/AnimalCategory/Index.tsx","assets/svg/icons/trashOnboarding.svg","components/Buttons/ButtonWithChildren/Index.tsx","assets/svg/icons/farmIcon.svg","contexts/GoogleMapsContext.tsx","hooks/useGoogleMaps.ts","components/GoogleMaps/Map/Index.tsx","assets/svg/icons/areaIcon.svg","components/GoogleMaps/DrawPolygon/LabelIcon/Index.tsx","components/GoogleMaps/DrawPolygon/FixedAreas/Index.tsx","components/GoogleMaps/ToolBox/Option/Index.tsx","assets/svg/icons/check.svg","assets/svg/icons/trash.svg","components/GoogleMaps/DrawPolygon/ToolBar/Index.tsx","@types/GoogleMaps/IPositionProps.ts","components/GoogleMaps/DrawPolygon/Index/Index.tsx","utils/leaflet/getCenterCoords.ts","components/Leaflet/FlyToBounds/Index.tsx","components/Leaflet/LeafletMap/Index.tsx","components/Leaflet/LeafletStaticMap/Index.tsx","components/Inputs/TextInputs/TextInputWithUnit/index.tsx","components/Onboarding/Register/CreateArea/FormArea/Index.tsx","components/Onboarding/Register/CreateArea/FarmContainer/Farm.tsx","components/Onboarding/Register/CreateArea/Index.tsx","pages/Onboarding/Register/CreateAreas/Index.tsx","services/ibge.ts","pages/Onboarding/Register/CreateAssortment/Index.tsx","components/Onboarding/CattleMap/EvolutionGoal/InputQuantity/Index.tsx","components/Onboarding/CattleMap/EvolutionGoal/Table/EditRow/Index.tsx","components/Onboarding/Register/CreateBirthGoal/Index.tsx","pages/Onboarding/Register/CreateBirthGoals/Index.tsx","components/Onboarding/Register/CreateDeathGoal/Index.tsx","services/onboarding.ts","components/Loading/Index.tsx","pages/Onboarding/Register/CreateDeathGoals/Index.tsx","assets/svg/icons/plus.svg","assets/svg/icons/undo.svg","assets/svg/icons/redo.svg","utils/kml/readFile.ts","components/GoogleMaps/Farm/Index.tsx","assets/png/farmMap.png","components/Inputs/FileUploadKml/Index.tsx","utils/arrays/sortBy.ts","assets/svg/icons/upload.svg","components/Inputs/Slider/Handle.tsx","components/Inputs/Slider/Tick.tsx","components/Inputs/Slider/Track.tsx","components/Inputs/Slider/Index.tsx","components/Onboarding/Register/CreateFarm/Index.tsx","pages/Onboarding/Register/CreateFarms/Index.tsx","assets/svg/icons/available.svg","components/Inputs/TextInputs/TextInputWithIcon/Index.tsx","assets/svg/icons/unavailable.svg","components/Onboarding/Register/CreateMicroArea/New/MicroArea.tsx","components/Onboarding/Register/CreateMicroArea/New/Area.tsx","components/Onboarding/Register/CreateMicroArea/New/Farm.tsx","pages/Onboarding/Register/CreateMicroAreas/Index.tsx","assets/svg/icons/ellipse.svg","components/Inputs/Counters/CounterInput/Index.tsx","components/Inputs/SelectWithInputText/Index.tsx","components/Onboarding/Register/CreateLot/New/Batch.tsx","components/Onboarding/Register/CreateLot/New/Area.tsx","assets/svg/icons/animais.svg","components/Onboarding/Register/CreateLot/New/Farm.tsx","pages/Onboarding/Register/CreateLots/newCreateLots/Index.tsx","components/Onboarding/Register/PasturesUnavailable/Index.tsx","pages/Onboarding/Register/PasturesUnavailable/Index.tsx","pages/Onboarding/Template/Index.tsx","components/Leaflet/ContainerZoom1X/Index.tsx","components/Leaflet/ContainerZoom4X/Index.tsx","components/Leaflet/ContainerZoom2X/Index.tsx","components/Leaflet/ContainerZoom3X/Index.tsx","components/PaddocksMap/PolylineFarm/Index.tsx","components/Leaflet/CustomPopup/Index.tsx","components/PaddocksMap/BatchIcon/Index.tsx","components/PaddocksMap/BatchesIcons/Index.tsx","assets/svg/icons/point.svg","assets/svg/icons/less.svg","components/PaddocksMap/LabelFarm1X/Index.tsx","components/Leaflet/AnimatedZoom/Index.tsx","hooks/useFilter.ts","assets/svg/icons/locationcenter.svg","components/Leaflet/CustomControls/Index.tsx","assets/svg/icons/grass.svg","components/PaddocksMap/SpecsMouseOver/Index.tsx","utils/numbers/normalizeToPercent.ts","utils/colors/colorFromAScale.ts","components/PaddocksMap/BatchesSpecsDetails/index.tsx","pages/PaddocksMap/Maps/PastureCapacity/Index.tsx","components/Leaflet/CustomToolTip/Index.tsx","pages/PaddocksMap/Maps/DefaultMaps/Index.tsx","pages/PaddocksMap/Maps/PaddockTime/Index.tsx","components/PaddocksMap/LegendRounded/Index.tsx","utils/date/formatedDate.ts","pages/PaddocksMap/Maps/PastureManagement/Index.tsx","components/CattleMap/SideBarMenu/MenuContainer/Index.tsx","assets/svg/icons/chevronRight.svg","assets/svg/icons/circle.svg","components/CattleMap/SideBarMenu/MenuOption/Index.tsx","assets/svg/icons/mapa.svg","assets/svg/icons/dados.svg","assets/svg/icons/hat.svg","assets/svg/logo/logoPastejo.svg","contexts/TaskCreationContext.tsx","hooks/useTaskCreation.ts","assets/svg/icons/fertillizing.svg","components/Buttons/RoundedCloseButton/Index.tsx","components/TaskCard/Index.tsx","assets/svg/icons/drinking_fountain.svg","assets/svg/icons/fences.svg","assets/svg/icons/contour_line.svg","assets/svg/icons/planting.svg","assets/svg/icons/pulverization.svg","assets/svg/icons/mowing.svg","assets/svg/icons/soil_preparation.svg","assets/svg/icons/detached_task.svg","assets/svg/icons/bagFoodReceive.svg","components/Pagination/index.tsx","components/Filters/DropDown/Index.tsx","components/Filters/DropDownSearch/Index.tsx","utils/farms/farmsAsOptions.ts","utils/farms/areasAsOptions.ts","utils/farms/microAreasAsOptions.ts","components/EditOnboarding/components/StaticMapRender/Index.tsx","components/Chips/Base/ComponentChipBase/Index.tsx","components/Chips/ComponentChipPressable/Index.tsx","components/Chips/ComponentChipLabel/Index.tsx","components/Chips/index.tsx","components/EditOnboarding/components/DrawOnMap/DrawOnMap.tsx","assets/svg/icons/arrowNext.svg","components/EditOnboarding/components/Input/index.tsx","components/EditOnboarding/components/DrawNewFencesOnMap/CreateMicroArea/index.tsx","components/EditOnboarding/components/DrawNewFencesOnMap/index.tsx","components/Tasks/DrawOnMap/index.tsx","components/Modal/CreateTask/Index.tsx","components/MessageBalloon/Index.tsx","components/EditOnboarding/components/Input/CounterInput/Index.tsx","components/Tasks/WaterTroughs/Index.tsx","assets/svg/icons/CheckFull.svg","components/Modal/CreateTask/SuccessModal/Index.tsx","components/Tasks/SoilPreparation/Index.tsx","components/Tasks/Planting/Index.tsx","utils/strings/capitalize.ts","components/MultipleSelect/Index.tsx","components/Tasks/Fertilization/Index.tsx","components/Tasks/Spraying/Index.tsx","components/Modal/CreateTask/ErrorModal/Index.tsx","components/Tasks/Fencing/Index.tsx","components/Tasks/BagReceive/Index.tsx","components/Tasks/TasksModals/Index.tsx","components/CattleMap/SideBarMenu/SubMenuOption/index.tsx","components/CattleMap/SideBarMenu/Index.tsx","contexts/EditOnboardingContext.tsx","components/Filters/DropDownMultiSelect/Index.tsx","components/PaddocksMap/FilterDataPolygons/Index.tsx","components/Dashboard/ViewDatas/InfoCattleMap/index.tsx","pages/PaddocksMap/Maps/Index/Index.tsx","assets/svg/icons/back.svg","assets/svg/icons/users.svg","assets/svg/icons/calendar.svg","assets/svg/icons/download.svg","hooks/useEditOnboarding.ts","assets/svg/icons/search.svg","components/Card/Index.tsx","components/InputSearch/index.tsx","components/EditOnboarding/Footer/index.tsx","components/ViewCards/Index.tsx","components/EditOnboarding/components/Select/index.tsx","utils/objects/deepFind.ts","components/EditOnboarding/components/Select/OptionCheckBox/index.tsx","components/EditOnboarding/components/QtdCategory/index.tsx","components/EditOnboarding/CattleMap/CreateBatch/index.tsx","components/EditOnboarding/components/FileUploadKml/index.tsx","components/EditOnboarding/components/Slider/Handle.tsx","components/EditOnboarding/components/Slider/Tick.tsx","components/EditOnboarding/components/Slider/Track.tsx","components/EditOnboarding/components/Slider/Index.tsx","components/EditOnboarding/PropertiesArea/Farm/index.tsx","components/EditOnboarding/components/InputIcon/index.tsx","utils/arrays/moveChar.ts","services/microAreaService.ts","components/EditOnboarding/PropertiesArea/MicroArea/index.tsx","services/areaService.ts","services/userService.ts","services/farmService.ts","pages/PaddocksMap/ShowData/EditAreas/Index.tsx","pages/PaddocksMap/ShowData/SubSection/index.tsx","assets/svg/icons/info.svg","components/Table/TaskEvaluation/TableVisualizationRow/Index.tsx","components/Buttons/ButtonPressed/index.tsx","components/Tasks/ViewTasks/InfoAnimalAdd/index.tsx","components/Tasks/ViewTasks/InfoEvolution/index.tsx","components/Tasks/ViewTasks/InfoAnimalSell/index.tsx","assets/svg/icons/grazingRoute.svg","components/Buttons/ButtonYesOrNo/index.tsx","components/Tasks/ViewTasks/InfoSplitBatch/index.tsx","components/Tasks/ViewTasks/InfoAnimalDeath/index.tsx","components/Tasks/ViewTasks/InfoMoveBatch/index.tsx","components/Tasks/ViewTasks/InfoGrazingRoute/index.tsx","assets/svg/icons/fractionateBatches.svg","assets/svg/icons/moveBatch.svg","assets/svg/icons/evolution.svg","assets/svg/icons/animalAdd.svg","assets/svg/icons/animalSale.svg","assets/svg/icons/animalDeath.svg","assets/svg/icons/animalTransfer.svg","assets/svg/icons/SupplementWithdrawIcon.svg","components/Tasks/ViewTasks/InfoAnimalTransfer/index.tsx","components/Tasks/ViewTasks/InfoFertilization/index.tsx","components/Tasks/ViewTasks/InfoWaterTrough/index.tsx","components/Tasks/ViewTasks/InfoFence/index.tsx","components/Tasks/ViewTasks/InfoDetachedTask/index.tsx","components/Tasks/ViewTasks/InfoContourFarming/index.tsx","components/Tasks/ViewTasks/InfoPlanting/index.tsx","components/Tasks/ViewTasks/InfoSoilPreparation/index.tsx","components/Tasks/ViewTasks/InfoSpraying/index.tsx","components/Tasks/ViewTasks/InfoProductIncoming/index.tsx","components/Tasks/ViewTasks/InfoBrushCutting/index.tsx","components/Tasks/ViewTasks/InfoAnimalReceive/index.tsx","components/Tasks/ViewTasks/InfoProductDispatch/index.tsx","components/Tasks/ViewTasks/index.tsx","components/Table/TaskEvaluation/index.tsx","components/Table/PastureEvaluator/TableVisualizationRow/Index.tsx","assets/svg/icons/pastureEvaluation.svg","assets/svg/icons/high.svg","assets/svg/icons/mid.svg","assets/svg/icons/low.svg","assets/svg/icons/ultralow.svg","components/Buttons/ButtonHeightPasture/index.tsx","utils/latlng/castDecimalToDMS.ts","components/ImageComponent/index.tsx","components/Tasks/ViewTasks/InfoEvaluation/index.tsx","components/Table/PastureEvaluator/index.tsx","components/DayPicker/index.tsx","components/Modal/DateFilter/index.tsx","components/Table/Products/TableVisualizationRow/Index.tsx","components/Table/Products/index.tsx","components/Tasks/ViewTasks/InfoFailSync/index.tsx","components/Table/FailSync/Index.tsx","components/ViewTables/Index.tsx","components/Modal/CreateProduct/Index.tsx","components/Tasks/CreateProducts/index.tsx","components/Tasks/CreateEvaluator/Modal/CreateEvaluator/index.tsx","components/Tasks/CreateEvaluator/ListEvaluators/index.tsx","components/Tasks/CreateEvaluator/Modal/StartEvaluation/index.tsx","components/Tasks/PastureManagement/index.tsx","pages/PaddocksMap/ShowData/index.tsx","pages/PaddocksMap/ShowData/SystemManager/index.tsx","pages/PaddocksMap/Template/index.tsx","assets/svg/icons/cattle.svg","components/Graph/Bar/index.tsx","components/Graph/Pie/index.tsx","components/Graph/BarLine/index.tsx","components/Graph/BarDouble/index.tsx","utils/arrays/split.ts","components/Pdf/global/index.tsx","components/Pdf/microAreas/index.tsx","pages/Pdf/index.tsx","components/Dashboard/ViewDatas/FilterDate/index.tsx","components/Dashboard/Graph/BarLine/CattleMap/index.tsx","assets/svg/icons/bagFood.svg","pages/Dashboard/CattleMap/index.tsx","pages/Dashboard/Supplementation/InventoryControl/index.tsx","pages/Dashboard/Supplementation/ProductReport/index.tsx","utils/date/daysBetweenDays.ts","pages/Dashboard/Supplementation/ProductConsumption/index.tsx","pages/Dashboard/PastureManagement/General/index.tsx","pages/Dashboard/PastureManagement/MicroArea/index.tsx","routes/auth.routes.tsx","assets/png/logo.png","components/LandingPage/TalkWhatsApp/Index.tsx","assets/png/mapDotted.png","assets/png/monitor.png","components/LandingPage/Footer/index.tsx","components/LandingPage/NavBar/Index.tsx","components/CattleMap/TabContent/index.tsx","components/LandingPage/ButtonCollapse/Index.tsx","pages/Home/Index.tsx","components/Inputs/TextInputs/TextInputWithLabel/Index.tsx","pages/Session/Login/Index.tsx","pages/Session/NewPassword/Index.tsx","pages/Session/SessionTemplate/Index.tsx","routes/main.routes.tsx","App.tsx","index.tsx"],"names":["TOKEN_KEY","logout","localStorage","removeItem","window","location","replace","instance","axios","create","baseURL","process","interceptors","request","use","config","token","getItem","headers","Authorization","response","error","status","url","Promise","reject","Constants","DEFAULT_PASSWORD","MESSAGE_ALERT_CREATEUSER","MESSAGE_UNIQUE_PHONE","MESSAGE_UNIQUE_INITIALS","MESSAGE_INVALID_MAP","MESSAGE_INVALID_WEIGHT","MESSAGE_REQUIRED_FIELD","MESSAGE_DISCARD_CHANGES","MESSAGE_UNIQUE_INITIALS_MICROAREA","MESSAGE_MAPPING_NOT_FOUND","MESSAGE_MAPPING_MICROAREA_NOT_FOUND","MESSAGE_MICROAREA_NOT_FILLED","MESSAGE_AREA_UNVAILABLE_ACREAGE","MESSAGE_INVALID_MODAL_TITLE","MESSAGE_INVALID_MODAL_FILTER","MESSAGE_MODAL_ALERT_TITLE","LOCALSTORAGE_PAYLOAD","MONTHS_SHORT_NAME","MONTHS_FULL_NAME","LOGIN","RESET_PASSWORD","ONBOARDING","CATTLE_MAP","PADDOCKS_MAP","EVALUATION_REPORT","PADDOCKS_MAP_DASHBOARD_CATTLE_MAP","PADDOCKS_MAP_DASHBOARD_SUPPLEMENTATION","PADDOCKS_MAP_DASHBOARD_SUPPLEMENTATION_REPORT","PADDOCKS_MAP_DASHBOARD_SUPPLEMENTATION_CONSUMPTION","PADDOCKS_MAP_DASHBOARD_SUPPLEMENTATION_CONTROL","PADDOCKS_MAP_DASHBOARD_MANAGEMENT","PADDOCKS_MAP_DASHBOARD_MANAGEMENT_GENERAL","PADDOCKS_MAP_DASHBOARD_MANAGEMENT_MICROAREA","PADDOCKS_MAP_GRAZING_ROUTES","PADDOCKS_MAP_OCCUPATION","PADDOCKS_MAP_PADDOCK_TIME","PADDOCKS_MAP_CAPACITY","PADDOCKS_MAP_CAPACITY_AVAREGE","PADDOCKS_MAP_CAPACITY_IMMEDIATE","PADDOCKS_MAP_PASTURE_MANAGEMENT","PADDOCKS_MAP_PASTURE_MANAGEMENT_TYPE","PADDOCKS_MAP_PASTURE_MANAGEMENT_HEIGHT","PADDOCKS_MAP_PASTURE_MANAGEMENT_RATE","PADDOCKS_MAP_PASTURE_MANAGEMENT_DAY","MASTER_ROUTES","GERENTE_ROUTES","PERMISSION_ROUTES","TITLE_DASHBOARD","TITLE_PASTURE_EVALUATION","TITLE_PADDOCKS_MAP_INDEX","TITLE_PADDOCKS_MAP_ROUTES","TITLE_PADDOCKS_MAP_CAPACITY_AVAREGE","TITLE_PADDOCKS_MAP_CAPACITY_IMMEDIATE","TITLE_PADDOCKS_MAP_PADDOCK_TIME","TITLE_PADDOCKS_MAP_PASTURE_MANAGEMENT","POLYGON_YELLOW","strokeColor","fillColor","strokeOpacity","fillOpacity","strokeWeight","zIndex","POLYGON_NEW_POLYGON","POLYGON_MAIN","POLYGON_SELECTED","POLYGON_NOT_SELECTED","POLYGON_STROKE","POLYGON_TRANSLUCID","POLYLINE_DASHED_GREEN","icons","icon","path","scale","offset","repeat","LEAFLET_DASHED_GREEN","weight","color","fill","dashArray","dashOffset","LEAFLET_NORMAL_BLUE","LEAFLET_VIEW_BATCHES","LEAFLET_MICRO_AVAILABLE","LEAFLET_UNFOCUS_TRANSPARENT","LEAFLET_UNFOCUS_TRANSLUCENT","LEAFLET_UNFOCUS","DEFAULT_COORDS","lat","lng","CATEGORY_TYPE","femea","macho","getDescription","TYPE","FEMALE","MALE","GRAZINGMAP_COLORS","GREEN","CYAN","ORANGE","RED","YELLOW","PURPLE","ORANGEHIGH","BLUE","CAPACITYROUTE_COLORS","WHITE","LIGHT_YELLOW","LIGHT_ORANGE","ORANGE_LIGHT","ORANGEHIGH_LIGHT","LIGHT_RED","DARK_RED","PASTUREOCCUPATION_COLORS","PADDOCKTIME_COLORS","PASTUREMANAGEMENT_COLORS","DAYS_OPTIONS","label","value","LEAFLET_DEFAULT_ZOOM_POLYGONS","LEAFLET_ZOOM_MIN","LEAFLET_ZOOM_MAX","LEAFLET_ZOOM_4X","LEAFLET_ZOOM_3X","LEAFLET_ZOOM_2X","LEAFLET_ZOOM_1X","LEAFLET_ZOOM_BOUNDS_DIFFERENCE_4X","LEAFLET_ZOOM_BOUNDS_DIFFERENCE_3X","LEAFLET_ZOOM_BOUNDS_DIFFERENCE_2X","LEAFLET_ZOOM_BOUNDS_DIFFERENCE_1X","LEAFLET_MINIMAL_DISTANCE_TO_ZOOM","LEAFLET_FACTOR_DISTANCE","LEAFLET_MAX_TIME_DISTANCE_ANIMATION","COMPONENT_1X_NAME","COMPONENT_2X_NAME","COMPONENT_3X_NAME","COMPONENT_4X_NAME","STATUS_CODE_OK","PROFILE_CODE_CAPATAZ","AuthContext","createContext","AuthProvider","children","useState","user","setUser","navigate","useNavigate","decodeToken","decode","jwt_decode","username","USER_NAME","phone","sub","role","ROLE","formData","post","then","data","message","statusCode","changePassword","catch","useEffect","includes","pathname","Provider","signIn","useAuth","useContext","FilterContext","FilterContextProvider","undefined","farm","setFarm","area","setArea","microArea","setMicroArea","batch","setBatch","microAreaDefaultOption","setMicroAreaDefaultOption","batchDefaultOption","setBatchDefaultOption","option","setOption","systemManager","setSystemManager","dashboard","setDashboard","defaultBGFarm","setDefaultBGFarm","areaFilter","setAreaFilter","lotsFilter","setLotsFilter","modalCalendarFilter","setModalCalendarFilter","balance","setBalance","balanceCapacity","setBalanceCapacity","areasIdsFilter","setAreasIdsFilter","focusLastDay","setFocusLastDay","rangeDays","setRangeDays","viewRangeDays","setViewRangeDays","onBoardingDate","setOnBoardingDate","selectRangeDate","setSelectRangeDate","prevColor","colors","Object","values","Math","floor","random","length","getRandomColor","get","Date","setup_at","newRangeDays","from","to","farmFilter","setFarmFilter","microAreaFilter","sideBarOptionSelected","setSideBarOptionSelected","hideMicroAreaFilter","hideBatchFilter","setHideMicroAreaFilter","setHideBatchFilter","setBatchFilter","batchFilter","OnboardingContext","OnboardingProvider","screenNumber","setScreenNumber","subScreenNumber","setSubScreenNumber","blockNextStep","setBlockNextStep","blockALLStep","setBlockALLStep","screenComponent","setScreenComponent","userProgress","setUserProgress","payload","setPayload","title","hasError","buttonText","body","modalError","setModalError","updateStateSubSection","section","subSec","state","map","e","i","type","updateSectionOnProgress","newSubSection","prevState","screens","handleSectionsAndSubSections","progress","sec","foundSection","find","handleScreenComponent","element","updateUserProgress","useCallback","updateStateManually","prog","currentSec","currentSubSec","findSection","newSubSec","unMountUserProgress","advanceStep","currentSection","currentSub","stateScreens","backStep","sectionNumb","subSectionNumb","getStateScreen","subSectionUpdated","getLengthSection","skipStep","auxCurrentSub","isRequired","required","setAndRederTopScreen","lastSecPosition","lastSection","lastScreen","auxSub","updateSub","screen","index","findIndex","findLastScreen","setShowScreen","subSection","arrSection","pr","updatedSection","payloadData","JSON","parse","_path","_path2","_path3","_path4","_path5","useOnboarding","_excluded","_extends","assign","bind","target","arguments","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgLogoPastejo","_ref","svgRef","titleId","props","viewBox","xmlns","ref","id","d","ForwardRef","SubStep","subStep","screenNumb","setState","className","onClick","disabled","name","StepByStep","description","stepNumber","subSteps","isActive","setIsActive","hasJumping","setHasJumping","every","some","forEach","push","height","ind","ButtonOnlyTitle","theme","rest","FooterControlls","nextStepEvent","backStepEvent","skipStepEvent","isLast","setIsLast","ResolvePromise","callback","resolve","sectionQntd","subSectionQntd","parseInt","SvgClose","width","SimpleButtonClose","eventClick","SvgEye","SvgEyeClosed","SvgChevronDown","speed","Select","options","getMessageError","getSelectedData","handleAnywhereChanges","selectRef","useRef","menuIsOpen","open","setOpen","useField","fieldName","defaultValue","registerField","errorSelect","setErrorSelect","setvalue","selectOptions","setSelectOption","upData","setUpData","onSelectChanges","event","current","getValue","isMulti","selectValue","setValue","defaultMenuIsOpen","String","info","isDisabled","styles","provided","position","background","isSelected","textTransform","fontWeight","opacity","transition","padding","paddingBottom","paddingLeft","cursor","control","borderRadius","outline","minHeight","boxShadow","border","fontSize","paddingRight","menu","borderLeft","borderRight","borderBottom","marginTop","paddingTop","marginBottom","maxHeight","overflow","visibility","animation","menuList","defaultStyles","indicatorsContainer","transform","input","margin","valueContainer","noOptionsMessage","with","components","ClearIndicator","IndicatorSeparator","DropdownIndicator","onChange","action","closeMenuOnSelect","onFocus","TextInput","returnAsNumber","returnUnmasked","mask","updateValue","isInvalid","inputRef","errorField","setErrorField","setInputValue","timer","setTimer","inputChanged","clearTimeout","newTimer","setTimeout","Number","alwaysShowMask","maskChar","autoComplete","HandleUUID","clearValue","CreateProfile","onAnywhereChanges","onRemoveProfile","profilesList","uuid","isVisibleBtnRemoveProfile","onlyRead","statusProfile","setStatusProfile","onChangeAnywhereInput","prev","NoOptionsMessage","placeholder","isSearchable","hidden","ButtonRedirect","TitleModal","TextModal","AlertModal","contentStyle","visible","onCloseFunction","showModal","setShowModal","customStyles","onClose","showCloseButton","useYupValidate","formRef","schemaValidate","errors","setErrors","validate","abortEarly","yup","inner","useYupOnlyVerify","generateuuid","c","r","toString","EditValuesContext","EditValuesProvider","formRefValue","setFormRefValue","blockSave","setBlockSave","refreshValues","setRefreshValues","permissionMaster","setPermissionMaster","console","EditValues","baseProfile","profile_id","profile","CreateProfiles","onBoarding","test","list","l","filter","a","createError","setProfilesList","profilesData","setProfilesData","alertVisible","setAlertVisible","numProfiles","setNumProfiles","mainRef","nullable","matches","min","max","profileForm","shape","users","of","unique","getData","profiles","password","setItem","stringify","handleChangesProfile","isValid","formdata","schemaValidation","removeProfile","profilesFiltered","setData","log","profile_name","initialData","onSubmit","SvgLeftChevron","SvgRightChevron","TableVisualizationContainer","currentSlider","setCurrentSlider","month","sliderRef","setSliderRef","slidePrev","slideNext","spaceBetween","slidesPerView","initialSlide","loop","onSlideChange","slide","realIndex","onInit","swiper","TableVisualizationRow","defaultcategory","category","defaultMonth","setCategory","setMonthProps","age_description","unit","TableEditContainer","scope","InputWeight","monthProps","evolutionName","handleInputChanges","onInputError","setError","uuidInput","setUuidInput","result","characters","charactersLength","charAt","randomString","toLocaleLowerCase","htmlFor","err","onWheel","currentTarget","blur","TableEditRow","defaultCategory","inputError","handleInputs","month_evolution","setFieldValue","SvgPenEdit","fillRule","clipRule","TitleTable","handleClick","HeaderContentModal","onEventClose","FooterContentModal","onEventCancel","onEventSuccess","disableSuccesButton","Modal","showMask","SvgPositive","SvgNegative","schema","Yup","categories","weights","moreThan","typeError","contentStyleModal","maxWidth","contentStyleAlert","AnimalCategory","modalEvolution","setModalEvolution","disableModalSuccess","setDisableModalSuccess","evolutionList","setEvolutionList","visibleModal","setVisibleModal","visibleAlert","setVisibleAlert","maxCategories","setMaxCategories","months","prevData","setPrevData","getChangesForm","categsEdited","categInd","category_id","flat","handleEventCloseModal","toggleModalEdit","validateForm","getPrevData","value1","isFormValid","handleDataObject","modifications","evolutions","newEvolutions","evolution","newCategory","monthUpdated","f","founded","Map","set","categoryLenght","count","newCategories","oldPayload","p","monthKey","categoryKey","sort","b","SvgTrashOnboarding","ButtonWithChildren","SvgFarmIcon","GoogleMapsContext","GoogleMapsProvider","currentZoom","setCurrentZoom","currentPosition","setCurrentPosition","mapLoaded","setMapLoaded","mapRef","setMapRef","toolSelected","setToolSelected","coords","newPolygon","setNewPolygon","existingMaps","setExistingMaps","polygonSelected","setPolygonSelected","listMarkers","setlistMarkers","managerViewMap","setManagerViewMap","managerTypeViewMap","setManagerTypeViewMap","visibilityAreas","setVisibilityAreas","pointSelected","setPointSelected","optionsSelected","onCreatePoint","argsGeneric","setGenericState","onRemovePoint","arrayCoords","coord","onEditPoint","polygon","polygonRef","getPath","getArray","latLng","getGeoposition","mapLoad","navigator","geolocation","getCurrentPosition","latitude","longitude","fitBoundsPolygon","bounds","google","maps","LatLngBounds","cood","extend","getCenter","fitBounds","getCenterPolygon","setToolMode","toolMode","getBounds","useGoogleMaps","mapStyles","currentCoords","zoomControl","mapref","setMap","defaultCoords","setDefaultCoords","framesLoaded","setFramesLodaded","onLoad","mapContainerStyle","center","zoom","streetViewControl","scaleControl","fullscreenControl","featureType","elementType","stylers","gestureHandling","disableDoubleClickZoom","minZoom","mapTypeControl","mapTypeId","MapTypeId","SATELLITE","mapTypeControlOptions","style","MapTypeControlStyle","HORIZONTAL_BAR","ControlPosition","BOTTOM_CENTER","mapTypeIds","ROADMAP","HYBRID","clickableIcons","draggableCursor","onTilesLoaded","onUnmount","SvgAreaIcon","LabelIcon","Icon","FixedAreas","areaInitials","farmInitials","editable","draggable","closeBoxURL","pixelOffset","Size","AreaIcon","ToolOption","noSelectable","defaultMode","SvgCheck","SvgTrash","ToolBar","handleSuccess","handleDiscardChanges","hiddenExploreButton","hiddenDrawButton","baseIPositionProps","DrawPolygon","labelContainerMap","onHandleSuccess","onHandleValidate","onHandleDiscardChanges","useEventListener","newArea","setPolygon","textareaRef","centerMap","setCenterMap","polygonComponet","setPolygonComponet","exists","map_coords","FarmIcon","initials","nameMap","onMouseUp","coordsEdited","filtered","getCenterCoords","FlyToBounds","forwardRef","toCoords","fitCoords","syncOnZoomEnd","onZoomEnd","onZoomChanged","stateZoom","onStateAnimation","getCoordinatesOnClick","useMap","useImperativeHandle","flyToBounds","callBack","once","handleStateAnimation","distance","round","timeDistance","maxFactor","duration","setZoommap","setView","setZoom","getBoundsZoom","canZoomAnimate","minDistance","minimalDistance","resizeMap","invalidateSize","on","getZoom","latlng","currentState","getCurrentStateZoom","LeafletMap","interactionOptions","MapContainer","maxZoom","TileLayer","LeafletStaticMap","doubleClickZoom","closePopupOnClick","dragging","trackResize","touchZoom","scrollWheelZoom","TextInputWithUnit","onBlur","FormArea","isDeletable","managers","areaId","farmId","initData","handleChangesAreas","onRemoveArea","isEdition","disableEditFields","currentFarm","flytoBoundsRef","visibleArea","setVisibleArea","existentingArea","setExistentingArea","errorMap","setErrorMap","readOnly","setIsReadOnly","acreageMask","setAcreageMask","handleTitleArea","noInputInitials","self","currentValue","split","upperCase","toUpperCase","substring","handleMaskAcreage","text","managerUser","isNew","acreage","indoor_grazing_time","outdoor_grazing_time","mapCoords","openForm","farms","areas","marginRight","maxLength","onInput","nameInput","getFieldRef","marginLeft","Polygon","positions","form","areaFounded","formFiltered","FarmContainer","farmid","areaSchema","dataAreas","validateDataForm","managersList","visibleFarm","setVisibleFarm","setAreas","mapAreas","setMapAreas","handleVisibleFarm","areaBase","isValidViewArea","areaToValidate","removeArea","areasFom","farm_id","manager_user_id","li","areaForm","uniqueArea","CreateAreas","dataFarms","onFormRef","setFarms","isShowMessages","_","farmsFiltered","valueOf","showErrorsForm","getFormData","setManagersList","saveOnPayload","indexFarm","indexArea","BASE_URL","api","fetchStatesUF","sigla","fetchStateCities","nome","FORM_MESSAGE_REQUIRED","assortmentForm","whoiam","document","notRequired","cpf","cnpj","state_registration","address","city","street","baseAssortment","CreateAssortment","showAssortment","setShowAssortment","ufHasSelected","setUfHasSelected","listUfs","setListUfs","listCities","setListCities","maskCFPCNPJ","setMaskCFPCNPJ","assortmentData","setAssortmentData","code","assortment","handleChangesForm","isValide","ufs","uf","loadValues","initComponent","InputQuantity","quantityInit","quantity","setQuantity","goalIndex","firstSemester","secondSemester","getQuantity","goalsFilter","goal","Array","CreateBirthGoal","birthGoalSchema","goals","quantities","birthGoalBase","CreateBirthGoals","birthGoalList","setBirthGoalList","paramGoalList","setParamGoalList","scrollTo","useSmoothScroll","direction","validateGoalForm","isShowAllMessage","handleForm","birthGoals","updated","reduce","total","next","beginning","end","loadGoalsList","CreateDeathGoal","startIndex","exportProfilesOnFormatOfAPI","exportAssortmentsOnFormatOfAPI","exportFarmsOnFormatOfAPI","owner_user_id","properties","exportAreasOnFormatOfAPI","exportMicroAreasOnFormatOfAPI","reasonsList","reason","micro_area_id","reason_id","micro_areas","micro","area_id","micro_area_reason_id","exportEvolutionsOnFormatOfAPI","exportBatchesOnFormatOfAPI","batches","current_micro_area_id","micro_area_route_ids","batch_capacity_rate","exportGoalsOnFormatOfAPI","defaultStyle","display","alignItems","justifyContent","Loading","isLoading","setIsLoading","deathGoalSchema","deathGoalBase","CreateDeathGoals","deathGoalList","setDeathGoalList","payloadContext","handleChangesDeathGoal","deathGoals","errors_fields","field","msg","finally","handleBack","SvgPlus","stroke","strokeWidth","strokeLinecap","SvgUndo","strokeLinejoin","SvgRedo","file","extractCoords","item","tagName","arrayOfPolygons","lineStrings","getElementsByTagName","childNodes","nodeValue","trim","pairCoords","replaceAll","point","extractGoogleCoords","plainText","parser","DOMParser","xmlDoc","parseFromString","KMLData","readFileKML","files","fileReader","FileReader","onload","coordsMoreTwoPoints","readAsText","FarmPolygon","farmProps","polygonStyle","noClickable","onFarmEdit","farmStyle","farmEditStyle","FileUploadKml","onMessageError","reset","fileName","setFileName","fileError","setFileError","unformError","setUnfomError","farmEditPolygon","setFarmEditPolygon","farmPolygon","setFarmpolygon","editPolygon","setEditPolygon","modalVisible","setModalVisible","handleError","resetFileSelected","kml","polygonUpdated","handleEditPolygon","src","FarmMap","alt","sortBy","property","sortOrder","substr","SvgUpload","Handle","domain","handle","percent","getHandleProps","disable","left","Tick","tick","format","Track","getTrackProps","boolColor","sliderStyle","SliderComponent","listOptions","rain_initial","dry_initial","boolSecaAntesDaChuva","setboolSecaAntesDaChuva","setValues","inicioChuva","setinicioChuva","inicioSeca","setinicioSeca","valMap","mode","step","rootStyle","getRailProps","handles","right","tracks","ticks","CreateFarm","onEventRemove","listUF","setListUF","blockCities","setBlockCities","resetMap","setResetMap","handleTitleFarm","teste","toLocaleUpperCase","nick","nickName","nickNameExists","handleDocument","handleAnyChanges","change","bindForm","season","initForm","handleUFSelected","handleMapError","customMessage","farmBase","filename","farmSchema","CreateFarms","farmsData","setFarmsData","farmNumber","setFarmNumber","setManagers","numFarms","setNumFarms","removeFarm","filteredForm","filteredList","handleChangesFarm","prevfarms","savePayload","handleSubmit","owner_user","manager","_circle","TextInputWithIcon","SvgAvailable","cx","cy","SvgUnavailable","MicroArea","keyFarm","keyArea","keyMicroArea","onRemoveMicroArea","initValues","acreageAvailable","openModal","setOpenModal","listMicroAreas","obj","contador","valuedig","getFieldValue","padStart","indexMicroArea","handleInputOnlyRead","Available","Unvailable","size","microareas","filteredArea","delete","microForm","Area","handleChangesMicroArea","errorInfoAcreage","numMicroAreas","setNumMicroAreas","errorMapMicroArea","setErrorMapMicroArea","errorInfo","setErrorInfo","areaAcreage","setAcreageAvailable","baseMicroArea","microAreas","setMicroAreas","validateMicroAreas","regexNumber","listMap","microAreaError","match","removeMicroArea","formsmicroareas","microarea","concat","usedAcreage","accumulator","toFixed","Farm","listAreas","params","distinctArea","object","MicroAreaForm","CreateMicroAreas","setInitData","setErrorInfoAcreage","newForm","areaAvaliable","areaAvailable","micro_area_route","SvgEllipse","CounterInput","onChangevalue","isInline","addEventListener","numb","isNaN","abs","handleOnchangeInput","focus","handleIncrementCount","handleDecrementCount","SelectWithInput","selected","categoryMap","defaultValues","handleChangeUA","changeValue","existed","middle_weight","Option","checked","Batch","microAreasMap","microAreaAvailable","keyBatch","updateAvailableMicroArea","batchSelected","messageInitials","setMessageInitials","categoriesSelected","setCategoriesSelected","setCategories","existedCategory","setExistedCategory","currentMonth","getMonth","evolutionsMap","montEvolution","evolutionMonth","selectMicroArea","categoriesList","categotyID","categoryFound","routesMicroArea","microAreaFinded","current_micro_area","handleChanges","getCategories","batchInitials","handleTitleLot","setValuesPayload","lots","lot","setFieldError","hideSelectedOptions","handleCategoryChange","sum","baseBatch","total_ua","batchesSchema","AreaLots","listLots","setListLots","microAreaOptions","setMicroAreaOptions","listMicroAreasMap","setListMicroAreasMap","removeLot","updateMicroAreaRoutes","usedMicroAreas","microAreaList","SvgAnimais","FarmLots","selectBatch","setSelectBatch","setNumOfMicroAreas","listBatches","setListBatches","listCoords","setListCoords","refreshBatches","getBatches","farmKey","areaKey","batchKey","currentMicroArea","farmAreaInitials","numberPastures","numberAnimals","getNumberPastures","getCoordsMicroAreaRoute","routeIDs","batchMicroArea","coordsMicroArea","href","CreateLotsNew","validCategories","validateLotForm","mountAureas","mountBatches","t","PastureUnavailable","initial","indexComponent","microAreaId","microAreasReasons","visiblepastures","setVisiblepastures","microAreaUnavailableSchema","microAreaUnavailable","PasturesUnavailable","listMicroAreasUnavailabe","setListMicroAreasUnavailabe","setOptions","getMicroAreasId","payloadObj","listMicro","listUsedMicroAreas","availableMicroAreas","listIdsMicroArea","mapUuid","getListMicroAreas","getMicroAreasReasons","Onboarding","handleTitle","ContainerZoom1X","displayName","ContainerZoom4X","ContainerZoom2X","ContainerZoom3X","PolylineFarm","pathOptions","noClip","CustomPopup","Popup","closeButton","autoPan","autoClose","closeOnEscapeKey","closeOnClick","keepInView","BatchIcon","BatchesIcons","SvgPoint","LabelFarm1X","AnimatedZoom","coordsToBoundZoom","updateZoomVisualization","currentZoomMap","setCurrentZoomMap","elements1x","setElements1x","setMaxZoom","elements2x","setElements2x","elements3x","setElements3x","elements4x","setElements4x","stateOfAnimation","setStateOfAnimation","Children","child","useFilter","SvgLess","_rect","_rect2","_rect3","_rect4","SvgLocationcenter","y","rx","x","CustomControls","defaultLocation","overrideCentermap","SvgGrass","SpecsMouseOver","microAreaLabel","normalizeToScale","getColorFromValue","percentBreak","colorArray","d3","range","interpolate","interpolateRgb","BatchesSpecsDetails","batchLabel","qtdLabel","capacity","PastureCapacity","view","batchesIcons","setBatchesIcons","errorModal","seterrorModal","batchByMicroAreaMap","toggleAlert","getAllBatchesByUser","batchIcons","handleBGOppacity","handleCurrentColor","average_lot_rate","instant_lot_rate","Tooltip","sticky","animals_quantity","CustomToolTip","Index","farmPolygons","setFarmPolygons","currentArea","setCurrentArea","areasPolygons","setAreasPolygons","microAreasPolygons","setMicroAreasPolygons","handleMicroAreasData","all","microParsed","microAreasFlat","responseMicroAreas","batchVisualization","handleBatchVisualization","m","visualization","handleAreasData","areasData","bgColor","handleFocusCenter","handleBorderColor","handleMicroAreaBGColor","microId","handleAreaBGColor","PaddockTime","maxDescanso","setMaxDescanso","maxOcupacao","setMaxOcupacao","days_grazing","days_without_grazing","currentGrazingTime","currentValueColor","el","LegendRounded","borderColor","styleBorder","formatDateToCustomFormat","date","pad","num","dd","getDate","mm","yyyy","getFullYear","hh","getHours","getMinutes","ss","getSeconds","PastureManagement","maxValueOnGradiente","setMaxValueOnGradiente","management","monitoring_types","monitory_values","monitoring_type_id","maxValue","monitoringTypeMap","rate","monitoringTypeId","ma","grazingMaxValue","requirement_in","withoutGrazingMaxValue","requirement_out","handleCurrentColorBatch","lastValue","updated_at","getTime","monitoringValue","created_at","MenuContainer","nameUrl","titleUrl","backgroundColor","borderLeftColor","SvgChevronRight","SvgCircle","MenuOption","withoutIcon","onClicked","subItems","setSelected","nameMenu","parentOption","_path6","_path7","_path8","SvgMapa","_path9","SvgDados","SvgHat","TaskCreationContext","TaskCreationProvider","allowTaskCreation","setAllowTaskCreation","taskCreatedSuccessfully","setTaskCreatedSuccessfully","taskCreationError","setTaskCreationError","editFences","setEditFences","selectedTask","setSelectedTask","setFarmId","setAreaId","responsibleId","setResponsibleId","setMicroAreaId","allFarms","setAllFarms","allAreas","setAllAreas","allMicroAreas","setAllMicroAreas","filterMicroAreas","setFilterMicroAreas","contextMicroArea","setContextMicroArea","setCurrentCoords","showTasklistModal","setShowTasklistModal","showCreateTaskModal","setShowCreateTaskModal","showMicroAreaUnavailableModal","setShowMicroAreaUnavailableModal","showDrawOnMapModal","setShowDrawOnMapModal","errorMessage","setErrorMessage","modalCreateEvaluator","setModalCreateEvaluator","modalStartEvaluator","setModalStartEvaluator","resetContext","createTask","reqPayload","messages","useTaskCreation","RoundedCloseButton","TaskCard","SvgFertillizing","SvgDrinkingFountain","SvgFences","SvgContourLine","SvgPlanting","SvgPulverization","SvgMowing","SvgSoilPreparation","SvgDetachedTask","SvgBagFoodReceive","BallComponent","pageNumber","Pagination","currentPage","totalPages","needToBeGenerated","balls","startBallNumber","generateMiddleBalls","DropDownSelect","clearableLabel","componentOptions","clearable","resetDropDown","setCurrentValue","isOpen","setIsOpen","handleValueSelected","DropDownSearch","placeHolder","defaultOption","exportOption","optionSelected","setOptionSelected","resetDropDownFilter","setFiltered","listFiltered","filterList","getFarmsAsOptions","getAreasAsOptions","getMicroAreasAsOptions","microAreasArray","filtereds","StaticMapRender","mainPolygon","staticsElementsOptions","setMicroAreaSelected","svgIcon","L","divIcon","html","iconAnchor","staticElement","eventHandlers","click","Marker","DEFAULT_CHIP_COLORS","DEFAULT_THEMES_CHIP_CONTAINER","light","dark","DEFAULT_THEMES_CHIP_LABEL","ChipBaseComponent","IConComponent","bgTranslucentLevel","variationStyles","overrideContainerTheme","overrideLabelTheme","CHIP_TEXT_THEMES","CHIP_CONTAINER_THEMES","variationContainerStyles","setVariationContainerStyles","variationLabelStyles","setVariationLabelStyles","bigint","slice","lenght","g","handleBackgroundColor","container","PRESSABLE_CONTAINER_THEMES","PRESSABLE_LABEL_THEMES","PRESSABLE_THEME_VARIATION","ChipPressableComponent","actived","currentTheme","setcurrentTheme","variations","normal","ONLYVIEW_CONTAINER_THEMES","ONLYVIEW_LABEL_THEMES","ONLYVIEW_THEME_VARIATION","ComponentChipOnlyView","Chips","Pressable","Label","closeButtonModalStyles","top","chipModalStyles","toolBarStyles","bottom","StaticAsideControlls","onEventEdit","counterEntities","DynamicMapsControlls","initialsLabel","onDiscardChanges","handleTypeIcon","MainComponent","overrideStyleModal","staticsElements","onlyModal","initialPolygon","setInitialPolygon","DrawOnMap","fieldError","render","formState","Input","labelPrefix","errorText","overrideStyles","prefixPosition","inputUniqueId","useId","inputContentTheme","setInputContentTheme","contentInput","prefixLabel","fieldState","SvgArrowNext","CreateMicroArea","coordsMicroAreas","setCurrentMicroArea","useForm","acreageUsed","initialsOnlyRead","setInitialsOnlyRead","watch","acreageInput","geolib","erros","contentDrawNewFenceStyleModal","DrawNewFences","externalCoords","mapMicroAreaSelected","setMapMicroAreaSelected","mapMicroAreaDraw","polygonComponents","microAreaSelected","colorPolygon","setColorPolygon","centerCoords","setCenterCoords","stepMap","setStepMap","canSubmit","setCanSubmit","modalDrawNewFence","setModalDrawNewFence","modalDrawAtLeastOneMicroArea","setModalDrawAtLeastOneMicroArea","onClickMouse","nextStep","changes","activity","coordsMerged","union","turf","geometry","coordinates","setNewMicroAreas","topPoint","bottomPoint","rightPoint","leftPoint","onEventCloseFinish","onSubmitForm","micro_areas_to_delete_ids","new_micro_areas_details","newMicroAreas","microAreaSchema","methods","resolver","yupResolver","mapAcreageUsed","initialsNumber","setInitialsNumber","has","clear","next_available_initials","selectedCoords","mapPaneName","OverlayView","FLOAT_PANE","onMouseOver","microCoords","join","polygonMicroArea","DrawMapStyleModal","DrawMapElement","setCoords","filterMicroArea","ev","newCoords","new_micro_area_details","drawOnMap","CreateTaskModal","task","onGoBack","selectedFarm","setSelectedFarm","selectedArea","setSelectedArea","setSelectedMicroArea","setSelectedResponsible","farmOptions","setFarmOptions","areaOptions","setAreaOptions","responsibleOptions","setResponsibleOptions","setCurrentFarm","currentResponsible","setCurrentResponsible","allFieldsFilled","setAllFieldsFilled","taskPage","setTaskPage","allResponsibles","setAllResponsibles","taskDetails","setTaskDetails","farmRef","areaRef","responsibleRef","microAreaRef","setAreasContext","setMicroAreasContext","drawCoords","setDrawCoords","setFitCoords","needProduct","setNeedProduct","initFarms","initFields","closeModal","farmArray","handleFarmChange","getAreas","getMicroAreas","initAreas","areaArray","manager_user","responsible","handleAreaChange","initResponsible","microAreaOptionsFiltered","handleMicroAreaChange","mA","getFarmLabel","getAreaLabel","assigned_user_id","task_details","createPayload","flexDirection","resp","switchFilterPage","startTaskCreation","MessageBalloon","pointed","CounterInputEdit","onlyResponse","WaterTroughs","specificTask","setSpecificTask","setCreateTask","showMaterials","setShowMaterials","showSizeChooser","setShowSizeChooser","setChanges","waterTroughs","setWaterTroughs","shapeOptions","setShapeOptions","materialOptions","setMaterialOptions","getButtonThemes","getOptions","getWaterTroughs","getShapes","getMaterials","resource","resource_name","translateActivity","handleActivityChoice","water_trough_activity","micro_area_aditional_resource_id","micro_area_resource_id","shapeId","water_trough_shape_id","materialId","water_trough_material_id","access_area_meters","SvgCheckFull","SuccessModal","createNewTask","monitoringScreen","SoilPreparation","machineTypeOptions","setMachineTypeOptions","machineType","machineId","machine_type_id","handleMachineTypeChoice","Planting","plantingTypes","setPlantingTypes","fodderSpecies","setFodderSpecies","fodderTypes","setFodderTypes","seedTypes","setSeedTypes","showSpecies","setShowSpecies","showTypes","setShowTypes","showSeedTypes","setShowSeedTypes","showCounters","setShowCounters","vcPercentage","setVcPercentage","seedWeight","setSeedWeight","allFodderTypes","setAllFodderTypes","fodderTypeRef","getPlantingTypes","getPlantingSpecies","getSeedTypes","fodder_genus","genus_name","reqChanges","vc_percentage","plantingTypeId","planting_type_id","fodderSpecieId","fodderSpecie","fodder_species_id","fodderTypeOptions","fodder_types","fodder_species","handleFodderSpecieChoice","fodderTypeId","seed_type_id","seed_quantity_kg","capitalize","s","MultipleSelect","op","auxArray","Fertilization","productOptions","setProductOptions","selectedProducts","setSelectedProducts","showProductsCounter","setShowProductsCounter","nameProduct","toLowerCase","content","getProducts","prod","noZeroWeight","products","product","product_id","weight_per_ha","prodArray","selProd","handleProductsSelection","Fragment","currProducts","handleProductWeight","Spraying","applicationTypeOptions","setApplicationTypeOptions","showProductsChooser","setShowProductsChooser","getApplicationTypes","liter_per_ha","noZeroCounter","typeId","application_type_id","liters","handleProducLiters","ErrorModal","SUBTASKS","Fencing","showWireAmount","setShowWireAmount","showMapDrawButton","setShowMapDrawButton","showPoleMaterialChooser","setShowPoleMaterialChooser","fenceMaterialOptions","setFenceMaterialOptions","fencePoleMaterialOptions","setFencePoleMaterialOptions","wireAmount","setWireAmount","selectedMicroAreas","translateSubtask","commonForms","currentChanges","handleFencingTaskChoice","resetSubtasks","getFencePoleMaterial","getFenceMaterials","wire_quantity","material","construction_material_id","structure_id","setSubtaskPage","BagReceive","optionsProducts","setOptionsProducts","classificationSelected","setClassificationSelected","productSelected","setProductSelected","productRef","trade_name","quantity_ordered","setValuesOnPayload","mapTypes","optionTypes","setOptionTypes","classification","manufacturer","expected_consumption","supply_frequency","NO_TASK_PAGE","createTaskModalStyle","TASKLIST","TasksModals","setCurrentPage","currentPageIndex","setCurrentPageIndex","taskRef","closeCreateTaskModal","closeTaskEndModal","handleTasksPagination","gap","SubMenuOption","basePath","SIDEBAR_NAMES","SIDEBAR_LINK_THEME","BUTTON_MAP_THEME","SideBar","permission","setPermission","SideBarLinkComponent","sideBarName","handleSideBarLink","packageJsonInfo","require","logo","Dados","Animais","PASTURE_EVALUATION","MANAGER_SYSTEM","PROFILES","LOGOUT","version","EditOnboardingContext","EditOnboardingProvider","filterSelected","setFilterSelected","listCards","setListCads","optionForm","setOptionForm","idSelected","setIdSelected","setDefaultValue","setTotalPages","queryToSearch","setQueryToSearch","toSearch","card","fullInitials","farm_initials","area_initials","area_string","initialBatch","qtdArea","qtd_areas","qtdMicroArea","qtd_micro_areas","qtdAnimals","qtd_animals","total_pages","micro_area","managementType","getCards","defaultForm","micro_area_initials","micro_area_map_coords","batch_initials","remaining_area","batchId","batch_id","animalsAmount","animals_amount","initialsArea","micro_areas_in_route","batch_categories","qtd","DropdownMultiSelect","FilterDataPolygons","hideMicroAreas","searchMicroAreaProps","dropdownAreaProps","dropdownFarmProps","hideLots","searchLotsProps","ownerFarmProps","throwAnyError","setFarmProps","microAreaProps","microAreasOptions","setMicroAreasOptions","defaultMicroArea","setDefaultMicroArea","microAreasRef","areaProps","setAreaProps","areasOptions","setAreasOptions","areasRef","batchesProps","batchesOptions","setBatchesOptions","setBatches","defaultBatch","setDefaultbatch","batchesRef","handleReturnFarmsFiltereds","idFilter","getFarmsFiltereds","getFarmByID","farmsArray","defaultPosition","Error","throwFilterErrors","setCurrentOwnerUser","handleCurrentOwneruser","initMicroAreas","getFarmsData","currentOwnerUser","getAPIAreas","getAPIMicroAreas","microAreasResp","getBatchesAsOptions","batchesArray","getAPIBatches","getCurrentOwnerUser","getAreasData","getMicroData","getMicroAreasData","getBatchesData","overrideOnChange","farmFounded","sel","menuShouldScrollIntoView","getAreasFiltereds","getAreasFilteredsOnlyIds","areasFiltereds","handleReturnAreasFiltereds","labelInitials","initBatches","getMicroAreasFiltereds","getMicroAreasFilteredsOnlyIds","microAreaFounded","exportDefaultOption","getBatchesFiltereds","getBatchesFilteredsOnlyIds","batchesFounded","InfoCattleMap","acc","opening_balance","birth","death","shopping","sales","end_balance","ua_total","total_capacity","setAreasData","currentFiltered","defaultValueFarm","customArea","defaultValueArea","microAreaRoute","capacityRate","SvgBack","SvgUsers","_g","SvgCalendar","SvgDownload","useEditOnboarding","SvgSearch","Card","showFarm","nameFarm","showArea","nameArea","listInitialsMicroAreas","colorsMap","cardContainerRef","overflowContainerRef","overflowingChildren","containerOverflow","checkOverflowForChildren","hasAttribute","offsetTop","clientHeight","resizeObserver","ResizeObserver","observe","disconnect","cardContainer","cardResize","fontFamily","overflowY","ComponentInputSearch","textToSearch","setTextToSearch","FooterEditOnboarding","undoFunction","saveFunction","deleteFunction","disabledSubmit","ViewCards","searchable","hideControllsSubmit","OptionsMap","showFarmName","showAreaName","query","monitor","frequency","days_of_week","execution_per_day","start_date","mc","Dropdown","placeholderText","paths","deepFind","localeCompare","CategoryInputQtd","calculateUA","mapQuantity","qtdDefault","useFieldArray","append","remove","refreshMap","toAppend","schemaBatch","CreateBatch","setMicroAreaAvailable","currentMicroAreaOptions","setCurrentMicroAreaOptions","areaCoords","setAreaCoords","initialArea","listFarms","setListFarms","setListAreas","currentInitials","setCurrentInitials","microAreaFiltred","setMicroAreaFiltred","msgError","setMsgError","lenghtBatch","setLenghtBatch","getValues","categoryQtd","ua","formCreateBatch","available","sumUA","handleFileCoords","setRainInitial","setDryInitial","valueParsed","areasList","setAreasList","setInicioChuva","setInicioSeca","register","docInput","stateDropdown","formCreateFarm","formPathFarm","patch","InputIcon","moveCharLeft","str","char","splice","microAreaService","remainingArea","reasonOptions","setReasonOptions","microAreaCoords","setMicroAreaCoords","staticMicroAreas","setStaticMicroAreas","setRemainingArea","acreageArea","setAcreageArea","lenghtMicroArea","setLenghtMicroArea","acreageFormat","setAcreageFormat","initialsInput","acreageFix","formNewMicroArea","formPathMicroArea","integerL","decimalL","final","intMask","decimalMask","finalMask","handleMaskInput","currentAcreage","acregeUsed","onBlurCapture","minWidth","areaService","formatDatacallBack","getAllUsers","getUsersByOffice","profileRole","allusers","userService","farmService","grazing_time","indoor","outdoor","periods","EditAreas","editAreaFromId","setLoadingState","onSuccessEditingSave","onSuccessCreate","onCancelButton","onDeleteEvent","microAreasExisting","setMicroAreasExisting","areaInitialData","setAreaInitialData","setFarmInitials","defautAreaCoords","setDefautAreaCoords","staticpolygons","setStaticpolygons","prefixInitials","setPrefixInitials","setIsDisabled","initialsStr","setInitialsStr","handleinitForm","microAreasData","microExistenting","microCoordsArray","farm_inititals","InitialsInput","farmInput","arrayWords","firstSentence","secondSentence","padEnd","exportIEditBody","exportICreateBody","readonly","selectedSubsection","SubSection","items","setSection","subSectionSelected","setSubSectionSelected","setFormRef","setTitle","setDescription","concludedModal","setConcludedModal","modalCancelarVisible","setModalCancelarVisible","visibleLoading","setVisibleLoading","postProfiles","submitProfile","assortments","submitAssortments","patchFarms","postFarms","submitFarms","patchAreas","postAreas","submitArea","postMicroAreas","sumbitMicroAreas","postBatches","listCategories","batche","categorie","submitBatches","SvgInfo","TableVisualizationRowTask","evaluation","setSelectedId","created","ButtonPressed","onlyResult","buttonTheme","setButtonTheme","InfoAnimalAdd","taskAdd","setTaskAdd","task_update_type","category_description","InfoEvolution","taskEvolution","setTaskEvolution","previous_category","current_category","InfoAnimalSell","taskSell","setTaskSell","mapText","ButtonYesOrNo","optionSelect","button","InfoSplitBatch","taskSplitBatch","setTaskSplitBatch","source_batch_initials","inventoryBatch_split_type","destination_batch_initials","destination_micro_area_route","InfoAnimalDeath","taskDeath","setTaskDeath","InfoMoveBatch","taskMoveBatch","setTaskMoveBatch","source_micro_area_full_initials","destination_micro_area_full_initials","InfoGrazingRoute","taskGrazingRoute","setTaskGrazingRoute","task_update_route_type","micro_area_full_initials","SvgGrazingRoute","SvgFractionateBatches","SvgMoveBatch","_defs","SvgEvolution","clipPath","SvgAnimalAdd","SvgAnimalSale","SvgAnimalDeath","SvgAnimalTransfer","SvgSupplementWithdrawIcon","InfoAnimalTransfer","taskAnimalTransfer","setTaskAnimalTransfer","transfer_type","destination_area_full_initials","InfoFertilization","taskFertilization","setTaskFertilization","skip_reason","start_time","initial_hour_meter","end_time","final_hour_meter","InfoWaterTrough","taskWaterTrough","setWaterTrough","access_area","InfoFence","taskFence","setTaskFence","structure","InfoDetachedTask","taskDetachedTask","setTaskDetachedTask","InfoContourFarming","taskContourFarming","setTaskContourFarming","InfoPlanting","taskPlanting","setTaskPlanting","planting_type","seed_type","operation_type","InfoSoilPreparation","taskSoilPreparation","setTaskSoilPreparation","InfoSpraying","taskSpraying","setTaskSpraying","InfoProductIncoming","taskProductIncoming","setTaskProductIncoming","sub_classification","quantity_received","InfoBrushCutting","taskBrushCutting","setTaskBrushCutting","InfoAnimalReceive","taskAnimalReceive","setTaskAnimalReceive","source_area_full_initials","is_new_batch","InfoProductDispatch","taskProductDispatch","setTaskProductDispatch","dispatch_type","quantity_total","trough_status","quantity_estimated_loss","ViewTasks","setTask","initialsType","setInitialsType","task_type","contentInfoBuy","getElementById","scrollTop","TaskIcon","taskTypeToIconMapping","TaskInfo","task_inventoryTransfer_batch_type","task_owner","area_map_coords","TableTaskEvaluation","listTable","selectedId","statusMap","evaluator","task_id","SvgPastureEvaluation","SvgHigh","SvgMid","SvgLow","SvgUltralow","ButtonHeightPasture","decimalToDMS","latDirection","latDeg","latMin","latSec","lngDirection","lngDeg","lngMin","ImageComponent","InfoEvaluation","taskEvaluation","setTaskEvaluation","getImageDescription","timestamp","contentInfoEvaluation","pasture_evaluation_fodder_content","fodder_content","fodder_details","photo_details","proportion","pasture_evaluation_invasive_content","invasive_content","leaf_type","invasive_type","coverage","rating","pasture_evaluation_plague_content","plague_content","plague_name","plague","pasture_evaluation_waterhole_content","structure_type","access_level","needs_repair","repair_type","pasture_evaluation_suplement_content","pasture_evaluation_trough_content","has_coverage","sides","need_repair","pasture_evaluation_fence_content","fence_type","fence_structure","pasture_evaluation_terrain_content","terrain_type","soil_moisture","TableEvaluation","haveEvaluator","setHaveEvaluator","startedEvaluation","setStartedEvaluation","total_elements","DaySelect","selectOnlyMonth","markDays","onMouseLeave","fromDate","toDate","onDayMouseEnter","day","newRange","onDayClick","now","firstDayOfCurrentMonth","showOutsideDays","fixedWeeks","modifiers","selectedRange","modifiersClassNames","DateModal","dateBegin","setDateBegin","dateEnd","setDateEnd","TableProducts","InfoFailSync","responseFailSync","setResponseFailSync","enableClipboard","displayObjectSize","clipboard","writeText","innerText","FailSyncTable","rowData","ViewTables","setSearchable","havePagination","setHavePagination","listTasks","setListTasks","listEvaluations","setListEvaluations","listProducts","setListProducts","listFailsSync","setListFailSync","filters","setFilters","SuccessModalCreateProduct","backScreen","newProduct","CreateProducts","showErrorMessage","setShowErrorMessage","productSchema","expectedUse","setExpectedUse","setFrequency","mapClassification","optionsClassification","setOptionsClassification","modalDeleteVisible","setModalDeleteVisible","errorExpectedUse","setErrorExpectedUse","successCreator","setSuccessCreator","errorFrequency","setErrorFrequency","resetConsumo","setResetConsumo","sub_classification_id","el2","can_delete","createEvaluatorModalStyle","evaluatorSchema","CreateEvaluator","optionsArea","setOptionsArea","ListEvaluators","listEvaluators","setListEvaluators","areaMap","setAreaMap","area_ids","StartEvaluation","modalEvaluationStarted","setModalEvaluationStarted","CreatePastureManagement","frequencyOptions","pastureManagementSchema","when","is","heightInput","heightOutput","occupationDays","restDays","rateIn","rateOut","optionsTypeManagement","setOptionsTypeManagement","optionsTypeMonitor","setOptionsTypeMonitor","selectedTypeMonitor","setSelectedTypeMonitor","optionsMicroAreas","setOptionsMicroAreas","setMicroAreaRoute","setHeightOutput","rateOutput","setRateOutput","trigger","types","heightInputError","setHeightInputError","heightOutputError","setHeightOutputError","occupationDaysError","setOccupationDaysError","restDaysError","setRestDaysError","rangeError","setRangeError","executionPerDayError","setExecutionPerDayError","rateInError","setRateInError","rateOutError","setRateOutError","handleChange","diasSemana","selectedDays","setSelectedDays","startDate","setStartDate","disabledDays","setDisabledDays","typeManagement","bodyPost","micro_area_ids","management_type_id","requirements","executionPerDay","management_group_id","getDay","requirementIn","setRequirementIn","requirementOut","setRequirementOut","setExecutionPerDay","fr","year","ma1","ma2","dia","newState","toggleDay","dayOfWeek","ShowData","titlePage","loadingState","customComponent","setCustomComponent","componentSearchable","setComponentSearchable","createComponent","setCreateComponent","forms","SystemManager","PaddocksMapIndex","ChartBar","fullWidth","Chart","ChartDataLabels","chartData","labels","datasets","borderWidth","defaults","font","responsive","maintainAspectRatio","aspectRatio","devicePixelRatio","plugins","legend","datalabels","anchor","align","layout","scales","grid","ChartPie","idRandom","innerHTML","boxWidth","formatter","redraw","ChartBarLine","labelOptions","optionsColumn","optionsLine","charData","yAxisID","order","y1","y2","drawOnChartArea","ChartBarDouble","optionsColumn1","optionsColumn2","splitArray","array","PDFEvaluationGlobal","dataReport","mapPages","setMapPages","summaryPages","setSummaryPages","pageRef","pageHeight","setPageHeight","FooterPDF","pageSugest","page","setPage","footerRef","componentTop","pg","mapRefPosition","colorsArea","setColorsArea","micro_areas_map_coords_details","micro_area_acreage","images","img","complete","onerror","print","MicroAreaRelatorioMapaPDF","resultadosRef","fodder_chart","primary_fodder_details","micro_areas_evaluated_quantity","micro_areas_evaluated_percentage","useful_area","usefulAreaPercentage","MicroAreaRelatorioPDFForragem1","secondary_fodder_details","MicroAreaRelatorioPDFForragem2","tertiary_fodder_details","MicroAreaRelatorioPDFForragem3","quantity_fodder","MicroAreaRelatorioPDFpg2","fodder_genus_chart","area_composition","genus_composition","fodder_species_chart","area_composition_by_species","MicroAreaRelatorioPDFpg3","species_percentage_by_useful_area","effective_area_percentage_by_species","MicroAreaRelatorioPDFpg4","height_percentage_by_andropogon","height_percentage_by_brachiaria","height_percentage_by_cynodon","height_percentage_by_panicum","MicroAreaRelatorioPDFpg5","height_percentage_by_pennisetum","invasive_chart","presence_by_useful_area","invasive_percentage","MicroAreaRelatorioPDFpg51","leaf_presence_by_useful_area","leaf_type_percentage","large_leaf_chart","leaf_type_by_useful_area","MicroAreaRelatorioPDFpg6","covering_percentage_by_useful_area","small_leaf_chart","leaf_rating_by_useful_area","small_leaf_percentage_rating","MicroAreaRelatorioPDFFolhaEstreita1","small_leaf_quantity","MicroAreaRelatorioPDFFolhaEstreita2","plague_chart","presence_percentage","plague_types_by_useful_area","plague_percentage_by_types","MicroAreaRelatorioPDFPragas","waterhole_chart","micro_areas_waterhole_quantity","micro_areas_waterhole_percentage","micro_areas_quantity_by_waterhole_type","micro_areas_quantity_by_waterhole_type_percentage","MicroAreaRelatorioPDFpg9","access_level_bebedouro_artificial","access_level_bebedouro_artificial_percentage","access_level_cacimba","access_level_cacimba_percentage","MicroAreaRelatorioPDFpg10","access_level_corregos","access_level_corregos_percentage","access_level_represas","access_level_represas_percentage","MicroAreaRelatorioPDFpg11","dry_season_offer_by_watering_type","total_area_access","repair_necessity_bebedouro_artificial","repair_necessity_bebedouro_artificial_percentage","MicroAreaRelatorioPDFpg12","supplement_chart","micro_areas_quantity","micro_areas_quantity_percentage","trough_chart","micro_areas_trough_quantity","micro_areas_trough_quantity_percentage","MicroAreaRelatorioPDFpg13","trough_coverage","trough_coverage_percentage","micro_areas_by_trough_type","micro_areas_by_trough_type_percentage","farm_total_capacity","MicroAreaRelatorioPDFpg14","trough_access_type","trough_access_type_percentage","repair_necessity_by_type","MicroAreaRelatorioPDFpg15","trough_repair_level","trough_repair_level_percentage","fence_chart","fence_type_by_micro_areas","fence_type_by_micro_areas_percentage","MicroAreaRelatorioPDFpg16","fence_material_by_micro_areas","fence_material_by_micro_areas_percentage","wire_median_quantity","repair_necessity_by_micro_areas","repair_necessity_by_micro_areas_percentage","MicroAreaRelatorioPDFpg17","terrain_chart","terrain_by_micro_areas","terrain_by_micro_areas_percentage","soil_by_micro_areas","soil_by_micro_areas_percentage","MicroAreaRelatorioPDFpg18","PDFEvaluation","mapNumbers","imagesEvaluation","setImagesEvaluation","micro_areas_task_info","fodder","invasive","AvaliacaoPDF","MicroAreaRelatorioPDFpg1","mapCoord","micro_area_details","evaluator_name","evaluate_date","toPrecision","has_plague","has_waterhole","has_storage","fotosRef","has_trough","MicroAreaRelatorioPDFPhoto","arrayIndex","indexImage","schemaReport","model","PdfPage","optionsFarm","setOptionsFarm","optionsFarmAvailable","setOptionsFarmAvailable","optionsAreaAvailable","setOptionsAreaAvailable","optionsMicroArea","setOptionsMicroArea","optionsMicroAreasAvailable","setOptionsMicroAreasAvailable","setDataReport","queryString","FilterDateDashboard","toDateString","SvgCattle","CattleMapGraph","optionsColumnDry","optionsColumnRain","stacked","y3","DashboardCattleMap","balanceCapacityMap","setBalanceCapacityMap","balanceAnimal","setBalanceAnimal","mapMonth","endDate","areaIds","paramsSerializer","URLSearchParams","monthReference","month_reference","rowSpan","textAlign","colSpan","internal_in_transfer","external_in_transfer","internal_out_transfer","external_out_transfer","existingCategory","cat","total_weight","total_arroba","total_uas","average_weight","parseFloat","rain","total_area","SvgBagFood","DashboardSupplementationInventoryControl","centralWarehouse","setCentralWarehouse","depositeInPasture","setDepositeInPasture","generalAnalysis","setGeneralAnalysis","IconMarq","hex","actual_quantity","average_daily_output","days_in_stock","total_consumption_period","analyzed_period","supplemented_animals","average_weight_of_supplemented_animals","total_weight_of_supplemented_animals","uas_total_number_of_animals_supplemented","average_consumption_in_the_period_kg","average_consumption_in_the_period_ua","replacement_frequency","stock_balance","stock_capacity","legenda","DashboardSupplementationProductReport","firstDayOfLastMonth","red","green","LegendaTable","supplement_classification_id","supplement_classification","average_consumption_in_the_period_kg_pct","average_consumption_in_the_period_ua_pct","replacement_frequency_pct","analysisProduct","setAnalysisProduct","analysisBatch","setAnalysisBatch","tableProduct","haveBatch","daysBetweenDates","firstDate","secondDate","diffInMs","DashboardSupplementationProductConsumption","optionsProduct","setOptionsProduct","consumptionByMonth","setConsumptionByMonth","selectedClassification","mapMounths","lastYear","classificationId","supplementId","resposeConsumption","existingMonths","year_month","total_consumption","DashboardManagementGeneral","DashboardManagementMicroArea","PrivateRoute","Component","component","AuthRoutes","TalkWhatsApp","channelWhatsApp","setChannelWhatsApp","Logo","Footer","NavBar","isOnTop","setProps","onTop","setOnTop","translateX","setTranslateX","TabContent","renderTab","setRenderTab","ButtonCollapse","Home","navBarTop","setNavBarTop","tabSelected","setTabSelected","collapseOpen","setCollapseOpen","handleNavBar","scrollY","documentElement","removeEventListener","Monitor","TextInputWithLabel","regex","errorState","setErrorState","show","setShow","unmasked","schemaLogin","schemaPassword","Login","useSearchParams","redirectURL","invalidUser","setInvalidUser","handleChangesPassword","schemaOnSubmit","confirmpassword","oneOf","schemaOnChange","NewPassword","handleFormSubmit","json","put","setNewPassword","newPassword","disableAvancar","setDisableAvancar","SessionTemplate","useLocation","headerOnTop","setHeaderOnTop","handleTitlepage","handleScroll","querySelector","MainRoutes","App","isLoaded","useJsApiLoader","googleMapsApiKey","ReactDOM"],"mappings":"w8MAAaA,EAAY,QAMZC,EAAS,WACpBC,aAAaC,WAAWH,GACxBI,OAAOC,SAASC,QAAQ,UAC1B,ECNMC,EAAWC,IAAMC,OAAO,CAC5BC,QAASC,+BAGXJ,EAASK,aAAaC,QAAQC,IAAG,iDAAC,WAAOC,GAAM,iFAI5C,OAHKC,EDNsBd,aAAae,QAAQjB,MCQ/Ce,EAAOG,QAASC,cAAa,iBAAaH,IAC3C,kBACMD,GAAM,2CACd,mDANgC,IAQjCR,EAASK,aAAaQ,SAASN,KAC7B,SAACM,GAAQ,OAAKA,CAAQ,IACtB,SAACC,GAKC,OAJIA,EAAMD,UAAsC,MAA1BC,EAAMD,SAASE,QAAsC,eAApBD,EAAMN,OAAOQ,MAClEtB,IACAG,OAAOC,SAASC,QAAQ,YAEnBkB,QAAQC,OAAOJ,EACxB,IAGad,Q,uCC1BMmB,EAAS,iDAATA,EACHC,iBAAmB,SADhBD,EAIHE,yBAA2B,uCAJxBF,EAKHG,qBAAuB,+CALpBH,EAMHI,wBAA0B,0CANvBJ,EAOHK,oBACd,sFARiBL,EASHM,uBAAyB,gEATtB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IACX,cAAC/D,GAAU,CAACj4E,QAASk8E,WAPP,4BAYxB,C,OCtBAG,IAAS/6C,OAEP,cAAC26C,GAAG,IAEJvsE,SAAS6lD,eAAe,Q","file":"static/js/main.40d4ed1c.chunk.js","sourcesContent":["export const TOKEN_KEY = \"token\";\nexport const isAuthenticated = () => localStorage.getItem(TOKEN_KEY) !== null;\nexport const getToken = () => localStorage.getItem(TOKEN_KEY);\nexport const login = (token: string) => {\n localStorage.setItem(TOKEN_KEY, token);\n};\nexport const logout = () => {\n localStorage.removeItem(TOKEN_KEY);\n window.location.replace(\"/entrar\");\n};\n","import axios from 'axios'\nimport { getToken, logout } from './auth'\n\nconst instance = axios.create({\n baseURL: process.env.REACT_APP_API_BASE_URL,\n})\n\ninstance.interceptors.request.use(async (config) => {\n const token = getToken()\n if (token) {\n config.headers!.Authorization = `Bearer ${token}`\n }\n return config\n})\n\ninstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response && error.response.status === 401 && error.config.url != \"/auth/login\") {\n logout()\n window.location.replace('/entrar');\n }\n return Promise.reject(error);\n }\n);\n\nexport default instance\n","export default class Constants {\n static readonly DEFAULT_PASSWORD = \"352514\";\n\n // MESSAGENS\n static readonly MESSAGE_ALERT_CREATEUSER = \"Senha padrão enviada com sucesso:\";\n static readonly MESSAGE_UNIQUE_PHONE = \"Este número já está sendo utilizado\";\n static readonly MESSAGE_UNIQUE_INITIALS = \"Já existe uma Fazenda com essa SIGLA\";\n static readonly MESSAGE_INVALID_MAP =\n \"Erro ao importar o mapa, verifique o conteúdo interno do mapa e tente novamente!\";\n static readonly MESSAGE_INVALID_WEIGHT = \"Valor informado inválido, informe o valor partir de 30 kg.\";\n static readonly MESSAGE_REQUIRED_FIELD = \"*Campo obrigatório!.\";\n static readonly MESSAGE_DISCARD_CHANGES = \"Ao cancelar, você perde todas as edições realizadas na tabela!\";\n static readonly MESSAGE_UNIQUE_INITIALS_MICROAREA = \"Sigla do pasto já está castrado.\";\n static readonly MESSAGE_MAPPING_NOT_FOUND = \"Mapeamento geográfico do retiro não realizado.\";\n static readonly MESSAGE_MAPPING_MICROAREA_NOT_FOUND = \"Mapeamento geográfico do pasto não realizado.\";\n static readonly MESSAGE_MICROAREA_NOT_FILLED = \"Campo obrigatório não preenchido no Pasto \";\n static readonly MESSAGE_AREA_UNVAILABLE_ACREAGE = \"Foi ultrapassado o limite de área total disponível\";\n\n //Modal\n static readonly MESSAGE_INVALID_MODAL_TITLE = \"Algo deu errado.\";\n static readonly MESSAGE_INVALID_MODAL_FILTER = \"Erro ao carregar o filtro, tente novamente!\";\n static readonly MESSAGE_MODAL_ALERT_TITLE = \"Você tem certeza?\";\n\n //STORAGE\n static readonly LOCALSTORAGE_PAYLOAD = \"@pastejo-onboarding/payload\";\n\n // DADOS\n static readonly MONTHS_SHORT_NAME = {\n 0: \"Jan\",\n 1: \"Fev\",\n 2: \"Mar\",\n 3: \"Abr\",\n 4: \"Mai\",\n 5: \"Jun\",\n 6: \"Jul\",\n 7: \"Ago\",\n 8: \"Set\",\n 9: \"Out\",\n 10: \"Nov\",\n 11: \"Dez\",\n };\n\n static readonly MONTHS_FULL_NAME = {\n 0: \"Janeiro\",\n 1: \"Fevereiro\",\n 2: \"Março\",\n 3: \"Abril\",\n 4: \"Maio\",\n 5: \"Junho\",\n 6: \"Julho\",\n 7: \"Agosto\",\n 8: \"Setembro\",\n 9: \"Outubro\",\n 10: \"Novembro\",\n 11: \"Dezembro\",\n };\n\n // ROUTES\n\n static readonly LOGIN = \"/entrar\";\n static readonly RESET_PASSWORD = \"/novasenha\";\n static readonly ONBOARDING = \"/bemvindo/onboarding\";\n static readonly CATTLE_MAP = \"/mapadegado\";\n static readonly PADDOCKS_MAP = \"/mapadepastos\";\n static readonly EVALUATION_REPORT = \"/relatorio\";\n\n static readonly PADDOCKS_MAP_DASHBOARD_CATTLE_MAP = \"/mapadepastos/dashboard/mapadegado\";\n static readonly PADDOCKS_MAP_DASHBOARD_SUPPLEMENTATION = \"/mapadepastos/dashboard/suplementacao\";\n static readonly PADDOCKS_MAP_DASHBOARD_SUPPLEMENTATION_REPORT = \"/mapadepastos/dashboard/suplementacao/analiseproduto\";\n static readonly PADDOCKS_MAP_DASHBOARD_SUPPLEMENTATION_CONSUMPTION = \"/mapadepastos/dashboard/suplementacao/consumoproduto\";\n static readonly PADDOCKS_MAP_DASHBOARD_SUPPLEMENTATION_CONTROL = \"/mapadepastos/dashboard/suplementacao/controle\";\n\n static readonly PADDOCKS_MAP_DASHBOARD_MANAGEMENT = \"/mapadepastos/dashboard/manejo\";\n static readonly PADDOCKS_MAP_DASHBOARD_MANAGEMENT_GENERAL = \"/mapadepastos/dashboard/manejo/geral\";\n static readonly PADDOCKS_MAP_DASHBOARD_MANAGEMENT_MICROAREA = \"/mapadepastos/dashboard/manejo/pasto\";\n\n static readonly PADDOCKS_MAP_GRAZING_ROUTES = \"/mapadepastos/rotasdepastejo\";\n static readonly PADDOCKS_MAP_OCCUPATION = \"/mapadepastos/ocupacao\";\n\n static readonly PADDOCKS_MAP_PADDOCK_TIME = \"/mapadepastos/tempodepasto\";\n static readonly PADDOCKS_MAP_CAPACITY = \"/mapadepastos/lotacao\";\n static readonly PADDOCKS_MAP_CAPACITY_AVAREGE = \"/mapadepastos/lotacao/media\";\n static readonly PADDOCKS_MAP_CAPACITY_IMMEDIATE = \"/mapadepastos/lotacao/instantanea\";\n static readonly PADDOCKS_MAP_PASTURE_MANAGEMENT = \"/mapadepastos/manejo\";\n static readonly PADDOCKS_MAP_PASTURE_MANAGEMENT_TYPE = \"/mapadepastos/manejo/tipo\";\n static readonly PADDOCKS_MAP_PASTURE_MANAGEMENT_HEIGHT = \"/mapadepastos/manejo/altura\";\n static readonly PADDOCKS_MAP_PASTURE_MANAGEMENT_RATE = \"/mapadepastos/manejo/nota\";\n static readonly PADDOCKS_MAP_PASTURE_MANAGEMENT_DAY = \"/mapadepastos/manejo/dias\";\n\n static readonly MASTER_ROUTES = [\n Constants.ONBOARDING,\n Constants.PADDOCKS_MAP_DASHBOARD_CATTLE_MAP,\n Constants.PADDOCKS_MAP_DASHBOARD_SUPPLEMENTATION\n ]\n\n static readonly GERENTE_ROUTES = [\n Constants.PADDOCKS_MAP_DASHBOARD_CATTLE_MAP,\n Constants.PADDOCKS_MAP_DASHBOARD_SUPPLEMENTATION,\n ]\n\n static readonly PERMISSION_ROUTES = [\n ...Constants.MASTER_ROUTES,\n ...Constants.GERENTE_ROUTES\n ]\n\n // TITLE PAGES\n\n static readonly TITLE_DASHBOARD = \"Pastejo | Dashboard\";\n static readonly TITLE_PASTURE_EVALUATION = \"Pastejo | Avaliação de Pastagem\";\n static readonly TITLE_PADDOCKS_MAP_INDEX = \"Pastejo | Mapa de Pastos\";\n static readonly TITLE_PADDOCKS_MAP_ROUTES = \"Pastejo | Rotas de Pastejo\";\n static readonly TITLE_PADDOCKS_MAP_CAPACITY_AVAREGE = \"Pastejo | Lotação média\";\n static readonly TITLE_PADDOCKS_MAP_CAPACITY_IMMEDIATE = \"Pastejo | Lotação instantânea\";\n static readonly TITLE_PADDOCKS_MAP_PADDOCK_TIME = \"Pastejo | Dias de ocupação e descanso\";\n static readonly TITLE_PADDOCKS_MAP_PASTURE_MANAGEMENT = \"Pastejo | Manejo\";\n\n // MAPS CONFIGS POLYGONS\n\n static readonly POLYGON_YELLOW = {\n strokeColor: \"#FF9501\",\n fillColor: \"rgba(255, 149, 1, 0.5)\",\n strokeOpacity: 1,\n fillOpacity: 0.5,\n strokeWeight: 3,\n zIndex: 2\n };\n\n static readonly POLYGON_NEW_POLYGON = {\n strokeColor: \"#FFFFFF\",\n fillColor: \"rgba(97, 255, 246, 0.5)\",\n strokeOpacity: 1,\n fillOpacity: 0.5,\n strokeWeight: 3,\n };\n\n static readonly POLYGON_MAIN = {\n strokeColor: \"#FFFFFF\",\n fillColor: \"rgba(87, 206, 113, 0.5)\",\n strokeOpacity: 1,\n fillOpacity: 1,\n strokeWeight: 1,\n };\n\n static readonly POLYGON_SELECTED = {\n strokeColor: \"#FFFFFF\",\n fillColor: \"rgba(97, 255, 246, 0.5)\",\n strokeOpacity: 1,\n fillOpacity: 1,\n strokeWeight: 1,\n };\n\n static readonly POLYGON_NOT_SELECTED = {\n strokeColor: \"#FFFFFF\",\n fillColor: \"rgba(255, 255, 255, 0.3)\",\n strokeOpacity: 1,\n fillOpacity: 1,\n strokeWeight: 1\n };\n\n static readonly POLYGON_STROKE = {\n strokeColor: \"#FFFFFF\",\n fillColor: \"#FFFFFF\",\n strokeOpacity: 1,\n fillOpacity: 0.3,\n strokeWeight: 3,\n zIndex: 1\n };\n\n static readonly POLYGON_TRANSLUCID = {\n strokeColor: \"#FFFFFF\",\n fillColor: \"#FFFFFF\",\n strokeOpacity: 0.1,\n fillOpacity: 0.2,\n strokeWeight: 1,\n };\n\n static readonly POLYLINE_DASHED_GREEN = {\n strokeOpacity: 0,\n fillOpacity: 0,\n zIndex: 3,\n icons: [\n {\n icon: {\n path: \"M 0,2 0,-1\",\n strokeOpacity: 1,\n scale: 3,\n strokeColor: \"#57CE71\",\n },\n offset: \"50\",\n repeat: \"19px\",\n },\n ],\n };\n\n // React Leaflet Configs\n static readonly LEAFLET_DASHED_GREEN = {\n weight: 3.5,\n color: \"#57CE71\",\n fill: false,\n dashArray: \"30, 20\",\n dashOffset: \"50\",\n };\n\n static readonly LEAFLET_NORMAL_BLUE = {\n weight: 2,\n color: \"#FFFFFF\",\n fill: true,\n fillColor: \"#61FFF6\",\n fillOpacity: 0.5,\n };\n\n static readonly LEAFLET_VIEW_BATCHES = {\n weight: 2,\n color: \"rgba(255, 255, 255, 0.4)\",\n fill: true,\n fillColor: \"#61FFF6\",\n fillOpacity: 0,\n };\n\n static readonly LEAFLET_MICRO_AVAILABLE = {\n weight: 2,\n color: \"rgb(255, 255, 255)\",\n fill: true,\n fillColor: \"#FFFFFF\",\n fillOpacity: 0.3,\n };\n\n static readonly LEAFLET_UNFOCUS_TRANSPARENT = {\n weight: 2,\n color: \"rgba(255, 255, 255, 0.4)\",\n fill: false,\n };\n\n static readonly LEAFLET_UNFOCUS_TRANSLUCENT = {\n weight: 2,\n color: \"#FFFFFF\",\n fill: true,\n fillColor: \"#FFFFFF\",\n fillOpacity: 0.3,\n };\n\n static readonly LEAFLET_UNFOCUS = {\n weight: 2,\n color: \"rgba(255, 255, 255, 0.4)\",\n fill: true,\n fillColor: \"#FFFFFF\",\n fillOpacity: 0.1,\n };\n\n static readonly DEFAULT_COORDS = { lat: -16.0738564, lng: -45.0728955 };\n\n static readonly CATEGORY_TYPE = {\n femea: \"FEMALE\",\n macho: \"MALE\",\n getDescription: (TYPE: string) => {\n const TYPES = { FEMALE: \"Fêmea\", MALE: \"Macho\" };\n //@ts-ignore\n return TYPES[TYPE];\n },\n };\n\n //Colors\n\n // Grazing Map\n static readonly GRAZINGMAP_COLORS = {\n GREEN: \"#57CE71\",\n CYAN: \"#61FFF6\",\n ORANGE: \"#FF9501\",\n RED: \"#FF6161\",\n YELLOW: \"#FFCA80\",\n PURPLE: \"#7B61FF\",\n ORANGEHIGH: \"#ff4b00\",\n BLUE: \"#0157FF\",\n };\n\n // Capacity Route\n static readonly CAPACITYROUTE_COLORS = {\n WHITE: \"#ffffff\",\n LIGHT_YELLOW: \"#ffead8\",\n YELLOW: \"#ffd5b1\",\n LIGHT_ORANGE: \"#ffc08a\",\n ORANGE_LIGHT: \"#ffab63\",\n ORANGE: \"#ff9501\",\n ORANGEHIGH_LIGHT: \"#ff7727\",\n ORANGEHIGH: \"#ff593e\",\n LIGHT_RED: \"#ff3c58\",\n DARK_RED: \"#ff1e79\",\n RED: \"#ff0000\",\n };\n\n // Pasture Occupation\n static readonly PASTUREOCCUPATION_COLORS = {\n ORANGE: \"#ffab63\",\n BLUE: \"#0157FF\",\n WHITE: \"#FFFFFF\",\n };\n\n static readonly PADDOCKTIME_COLORS = {\n GREEN: \"#57CE71\",\n ORANGE: \"#FF9501\",\n RED: \"#FF6161\",\n DARK_RED: \"#ff0000\",\n BLUE: \"#0157FF\",\n WHITE: \"#ffffff\",\n };\n\n static readonly PASTUREMANAGEMENT_COLORS = {\n GREEN: \"#57CE71\",\n YELLOW: \"#FFCA80\",\n ORANGE: \"#FF9501\",\n RED: \"#FF6161\",\n BLUE: \"#0157FF\",\n CYAN: \"#61FFF6\",\n WHITE: \"#ffffff\",\n };\n\n\n // Opções de dias para tempo com e sem gado\n static readonly DAYS_OPTIONS = [\n { label: \"15 Dias\", value: 15 },\n { label: \"30 Dias\", value: 30 },\n { label: \"45 Dias\", value: 45 },\n { label: \"60 Dias\", value: 60 },\n { label: \"90 Dias\", value: 90 },\n ];\n\n static readonly LEAFLET_DEFAULT_ZOOM_POLYGONS = 15;\n static readonly LEAFLET_ZOOM_MIN = 5;\n static readonly LEAFLET_ZOOM_MAX = 17;\n // estados de apresentação pedidos nos protótipos\n static readonly LEAFLET_ZOOM_4X = 17;\n static readonly LEAFLET_ZOOM_3X = 15;\n static readonly LEAFLET_ZOOM_2X = 10;\n static readonly LEAFLET_ZOOM_1X = 9;\n\n // Isso ajuda no cálculo da diferença de exibição dos níveis de cada fazenda\n static readonly LEAFLET_ZOOM_BOUNDS_DIFFERENCE_4X = 0; // diferença entre o zoom máximo da fazenda\n static readonly LEAFLET_ZOOM_BOUNDS_DIFFERENCE_3X = 1; // diferença entre o zoom máximo da fazenda\n static readonly LEAFLET_ZOOM_BOUNDS_DIFFERENCE_2X = 2; // diferença entre o zoom máximo da fazenda\n static readonly LEAFLET_ZOOM_BOUNDS_DIFFERENCE_1X = 4; // diferença entre o zoom máximo da fazenda\n // diferença entre fazendas para habilitar o zoom, menores que 5km não existe animação\n static readonly LEAFLET_MINIMAL_DISTANCE_TO_ZOOM = 5000;\n static readonly LEAFLET_FACTOR_DISTANCE = 100000; // 1s a cada 100km\n static readonly LEAFLET_MAX_TIME_DISTANCE_ANIMATION = 8; // 1s a cada 100km\n\n // Nomes dos componentes de zoom que são utilizados para separação no componente principal\n static readonly COMPONENT_1X_NAME = \"ContainerZoom1X\";\n static readonly COMPONENT_2X_NAME = \"ContainerZoom2X\";\n static readonly COMPONENT_3X_NAME = \"ContainerZoom3X\";\n static readonly COMPONENT_4X_NAME = \"ContainerZoom4X\";\n\n static readonly STATUS_CODE_OK = 200;\n\n static readonly PROFILE_CODE_CAPATAZ = 4;\n}\n","import { createContext, useState, ReactNode, useEffect } from \"react\";\nimport axios from \"../services/axios\";\nimport { UserProps } from \"../pages/Session/Login/Index\";\nimport jwt_decode from \"jwt-decode\";\nimport { useNavigate } from \"react-router-dom\";\nimport Constants from \"../constants/Index\";\n\nexport type UserContextProps = {\n username: string;\n role: string;\n phone: string;\n};\n\ntype SignInProps = {\n statusCode: number;\n message?: string;\n changePassword?: string;\n token?: string;\n};\n\ntype AuthContextData = {\n user: UserContextProps;\n signIn: (formData: UserProps) => Promise;\n decodeToken: (token: string) => void;\n};\n\ntype AuthContextProps = {\n children: ReactNode;\n};\n\nconst AuthContext = createContext({} as AuthContextData);\n\nfunction AuthProvider({ children }: AuthContextProps) {\n const [user, setUser] = useState({} as UserContextProps);\n const navigate = useNavigate();\n\n useEffect(() => {\n var token = localStorage.getItem(\"token\");\n if (token) {\n const decode = decodeToken(token)\n setUser(decode)\n }\n }, []);\n\n\n function decodeToken(token: string) {\n try {\n const decode: any = jwt_decode(token);\n const loginUser = {\n username: decode?.USER_NAME,\n phone: decode?.sub,\n role: decode?.ROLE,\n } as UserContextProps;\n return loginUser\n } catch (error) {\n return {} as UserContextProps;\n }\n }\n\n useEffect(() => {\n if (user.username)\n if (user.role !== \"MASTER\" && (Constants.PERMISSION_ROUTES).includes(window.location.pathname)) {\n if (user.role === \"GERENTE\") {\n if (!(Constants.GERENTE_ROUTES).includes(window.location.pathname))\n navigate(\"/mapadepastos\")\n } else\n navigate(\"/mapadepastos\")\n }\n }, [user, window.location.pathname]);\n\n // Isso Lida com o login de qualquer usuário\n async function signIn(formData: UserProps) {\n return await axios\n .post(\"/auth/login\", formData)\n // Se tudo ocorreu bem retornamos sucesso para que chamou\n .then(async ({ data, status }) => {\n const decode = decodeToken(data[\"token\"])\n setUser(decode)\n\n return {\n message: \"usuário autenticado\",\n statusCode: status,\n changePassword: data[\"change_password\"],\n token: data[\"token\"],\n } as SignInProps;\n })\n .catch((error) => {\n if (error.response) {\n // Se cheamos aqui ocorreu um erro tratado na API\n return {\n message: error.response.data,\n statusCode: error.response.status,\n } as SignInProps;\n }\n // Se cheamos aqui ocorreu um erro não tratado na API\n return {\n message: \"Erro no Servidor\",\n statusCode: 500,\n };\n });\n }\n\n return {children};\n}\n\nexport { AuthProvider, AuthContext };\n","import { useContext } from \"react\";\nimport { AuthContext } from \"../contexts/AuthContext\";\n\nexport function useAuth() {\n const context = useContext(AuthContext);\n return context;\n}\n","import { createContext, ReactNode, useEffect, useState } from \"react\";\nimport { ICoord, ICoords } from \"../@types/GoogleMaps/ICoord\";\nimport { IOptionProps } from \"../@types/reactSelect/IOption\";\nimport Constants from \"../constants/Index\";\nimport { DateRange } from \"react-day-picker\";\nimport axios from \"../services/axios\";\nimport { useAuth } from \"../hooks/useAuth\";\n\ntype FilterContextProviderProps = {\n children: ReactNode;\n};\n\ntype ICustomFarm = {\n id: string;\n initials: string;\n coords: ICoords;\n name: string;\n bgColor: string;\n};\n\ntype ICustomBatch = {\n initials: string;\n coords: ICoord;\n id: string;\n farmId: string;\n areaId: string;\n capacityRate: number;\n microAreaId: string;\n};\n\ntype ICustomMicroAreaFiltered = {\n id: string;\n areaId: string;\n coords: ICoords;\n initials: string;\n microAreaRoute: {\n current: boolean;\n batch: {\n id: string;\n initials: string;\n };\n };\n};\n\ntype ICustomArea = {\n id: string;\n initials: string;\n coords: ICoords;\n name: string;\n bgColor: string;\n farmId: string;\n};\n\nexport type IOptionsSideBarLinks =\n 'DASHBOARD' |\n 'MAPA' |\n 'PASTURE_EVALUATION' |\n 'MANAGER_SYSTEM' |\n 'PROFILES' |\n 'LOGOUT'\n\nexport type IOptionsDashboards =\n null |\n 'CATTLE_MAP' |\n 'SUPPLEMENTATION' |\n 'MANAGEMENT'\n\nexport type IOptionsSystemManagerLinks =\n null |\n 'PASTURE_MANAGEMENT' |\n 'MANAGER_EVALUATORS' |\n 'PROPERTIES_AREAS' |\n 'CREATE_BATCH' |\n 'TASK_EVALUATION' |\n 'CATTLE_MAP' |\n 'PRODUCTS' |\n 'FAILURES_SYNC'\n\ntype valuesContext = {\n farmFilter: ICustomFarm;\n areaFilter: ICustomArea;\n microAreaFilter: ICustomMicroAreaFiltered;\n hideMicroAreaFilter: boolean;\n hideBatchFilter: boolean;\n microAreaDefaultOption: IOptionProps;\n batchDefaultOption: IOptionProps;\n sideBarOptionSelected: IOptionsSideBarLinks;\n defaultBGFarm: string;\n batchFilter: ICustomBatch;\n modalCalendarFilter: boolean;\n setModalCalendarFilter: (s: boolean) => void;\n setFarmFilter: (s: ICustomFarm | undefined) => void;\n setAreaFilter: (s: ICustomArea | undefined) => void;\n setMicroArea: (s: ICustomMicroAreaFiltered | undefined) => void;\n setBatchFilter: (s: ICustomBatch | undefined) => void;\n setHideMicroAreaFilter: (s: boolean) => void;\n setHideBatchFilter: (s: boolean) => void;\n setMicroAreaDefaultOption: (s: IOptionProps | undefined) => void;\n setBatchDefaultOption: (s: IOptionProps | undefined) => void;\n setSideBarOptionSelected: (value: IOptionsSideBarLinks) => void;\n systemManager: IOptionsSystemManagerLinks;\n setSystemManager: (value: IOptionsSystemManagerLinks) => void;\n dashboard: IOptionsDashboards;\n setDashboard: (value: IOptionsDashboards) => void;\n rangeDays: DateRange | undefined;\n setRangeDays: (value: DateRange | undefined) => void;\n viewRangeDays: DateRange | undefined;\n setViewRangeDays: (value: DateRange | undefined) => void;\n balance: IBalance[];\n setBalance: (value: IBalance[]) => void;\n balanceCapacity: IBalanceCapacity[];\n setBalanceCapacity: (value: IBalanceCapacity[]) => void;\n areasIdsFilter: IOptionProps[];\n setAreasIdsFilter: (value: IOptionProps[]) => void;\n focusLastDay: boolean;\n setFocusLastDay: (s: boolean) => void;\n onBoardingDate: Date | undefined;\n setOnBoardingDate: (s: Date | undefined) => void;\n selectRangeDate: number;\n setSelectRangeDate: (value: number) => void;\n};\n\nexport const FilterContext = createContext({} as valuesContext);\n\nexport const FilterContextProvider = ({ children }: FilterContextProviderProps) => {\n const [farm, setFarm] = useState(undefined);\n const [area, setArea] = useState();\n const [microArea, setMicroArea] = useState(undefined);\n const [batch, setBatch] = useState(undefined);\n const [microAreaDefaultOption, setMicroAreaDefaultOption] = useState(undefined);\n const [batchDefaultOption, setBatchDefaultOption] = useState(undefined);\n const [option, setOption] = useState('MAPA');\n const [systemManager, setSystemManager] = useState(null);\n const [dashboard, setDashboard] = useState(null);\n const [defaultBGFarm, setDefaultBGFarm] = useState(\"\");\n const [areaFilter, setAreaFilter] = useState(false);\n const [lotsFilter, setLotsFilter] = useState(false);\n const [modalCalendarFilter, setModalCalendarFilter] = useState(false);\n const [balance, setBalance] = useState();\n const [balanceCapacity, setBalanceCapacity] = useState();\n const [areasIdsFilter, setAreasIdsFilter] = useState([]);\n const [focusLastDay, setFocusLastDay] = useState(false);\n const [rangeDays, setRangeDays] = useState(undefined);\n const [viewRangeDays, setViewRangeDays] = useState(undefined);\n const [onBoardingDate, setOnBoardingDate] = useState(undefined);\n const [selectRangeDate, setSelectRangeDate] = useState(0);\n const { user } = useAuth();\n\n function getRandomColor() {\n const colors: Array = Object.values(Constants.GRAZINGMAP_COLORS);\n return colors[Math.floor(Math.random() * colors.length)];\n }\n\n useEffect(() => {\n setDefaultBGFarm((prevColor) => (prevColor ? prevColor : getRandomColor()));\n }, []);\n\n useEffect(() => {\n if (user.username) {\n axios.get(\"/onboarding\")\n .then(({ data }) => {\n setOnBoardingDate(new Date(data.setup_at))\n })\n }\n }, [user]);\n\n useEffect(() => {\n setSystemManager(null)\n setFocusLastDay(false)\n const newRangeDays = option !== 'DASHBOARD' ? { from: onBoardingDate, to: new Date() } : { from: new Date(), to: new Date() };\n setRangeDays(newRangeDays);\n setViewRangeDays(newRangeDays);\n }, [option]);\n\n useEffect(() => {\n setRangeDays({\n from: new Date(),\n to: new Date()\n })\n setViewRangeDays({\n from: new Date(),\n to: new Date()\n })\n }, [dashboard]);\n\n return (\n \n {children}\n \n );\n};\n","import {\n createContext,\n useState,\n ReactNode,\n useCallback,\n useEffect,\n Dispatch,\n SetStateAction,\n} from \"react\";\nimport { IAssortment } from \"../@types/app/IAssortment\";\nimport { IProfiles } from \"../@types/app/IProfile\";\nimport { IPayloadProps } from \"../@types/Onboarding/IPayload\";\nimport { IOptionProps } from \"../@types/reactSelect/IOption\";\nimport Constants from \"../constants/Index\";\n\ntype OnboardingContextData = {\n screenNumber: number;\n subScreenNumber: number;\n userProgress: Array;\n screenComponent: ReactNode;\n blockNextStep: boolean;\n blockALLStep: boolean;\n modalError: ModalError;\n payload: IPayloadProps;\n\n setPayload: Dispatch>;\n setModalError: Dispatch>;\n\n updateUserProgress: (t: UserProgressProps) => void;\n setSubScreenNumber: (t: number) => void;\n setScreenNumber: (t: number) => void;\n setShowScreen: (progress: Array, section: number, subSection: number) => void;\n unMountUserProgress: () => void;\n advanceStep: (prog: Array, section: number, subSection: number) => void;\n backStep: (prog: Array, section: number, subSection: number) => void;\n updateStateSubSection: (\n section: UserProgressProps,\n subSec: number,\n state: UserProgressScreensProps\n ) => UserProgressProps;\n skipStep: (prog: Array, atualSubScreen: number, atualScreen: number) => void;\n setAndRederTopScreen: (\n prog: Array,\n currentSec: number,\n currentSub: number\n ) => void;\n setBlockNextStep: (t: boolean) => void;\n updateStateManually: (\n prog: Array,\n sec: number,\n sub: number,\n state: UserProgressScreensProps\n ) => void;\n};\n\nexport type UserProgressScreensProps =\n | \"nothing\"\n | \"advanced\"\n | \"visualized\"\n | \"unnecessary\"\n | \"skiped\";\n\ntype OnboardingContextProps = {\n children: ReactNode;\n};\n\nexport type ScreensProps = {\n name: string;\n element: ReactNode;\n type: UserProgressScreensProps;\n required?: boolean;\n};\n\nexport type UserProgressProps = {\n section: number;\n screens: Array | undefined;\n};\n\ntype ModalError = {\n hasError: boolean;\n title: string;\n body: string;\n buttonText: string;\n};\n\nconst OnboardingContext = createContext({} as OnboardingContextData);\n\nfunction OnboardingProvider({ children }: OnboardingContextProps) {\n // Define qual section esta ativa no momento\n const [screenNumber, setScreenNumber] = useState(1);\n\n // Define qual a tela da subsessão esta sendo exibida\n const [subScreenNumber, setSubScreenNumber] = useState(0);\n\n // Bloqueia o avanço entre passos\n const [blockNextStep, setBlockNextStep] = useState(false);\n\n // Bloqueia o avanço entre passos e a pulo também\n const [blockALLStep, setBlockALLStep] = useState(false);\n\n // Diz ao app Onboarding qual tela deve ser mostrada\n const [screenComponent, setScreenComponent] = useState(null);\n\n // Gerencia o progresso do usuário\n const [userProgress, setUserProgress] = useState>([]);\n\n // Isso é o payload que no fim do fluxo será enviado\n const [payload, setPayload] = useState();\n\n // Diz ao Template se existem erros e qual erro exibir\n const [modalError, setModalError] = useState({\n title: \"Algo deu errado!\",\n hasError: false,\n buttonText: \"\",\n body: \"\",\n } as ModalError);\n\n // Devolve o tamnho de uma seção\n const getLengthSection = (\n progress: Array | undefined,\n sectionNumb: number\n ) => {\n if (!progress) return 0;\n const section = progress.find((section) => section.section === sectionNumb);\n if (section && section.screens) return section.screens.length;\n return 0;\n };\n\n // Isto devolve o estado de uma tela\n const getStateScreen = (\n progress: Array | undefined,\n sectionNumb: number,\n subSectionNumb: number\n ) => {\n if (!progress) return undefined;\n const section = progress.find((section) => section.section === sectionNumb);\n if (section && section.screens) {\n const subSection = section.screens[subSectionNumb];\n return subSection.type;\n }\n return undefined;\n };\n\n // Isto atualiza uma subseção com o valor do tipo passado\n const updateStateSubSection = (\n section: Array | undefined,\n subSec: number,\n state: UserProgressScreensProps\n ) => {\n return section?.map((e, i) => {\n if (e.type === \"visualized\") e.type = \"nothing\";\n if (state === \"visualized\" && e.type != \"nothing\") return e;\n return i === subSec ? ({ ...e, type: state } as ScreensProps) : e;\n }) as Array;\n };\n\n // Isto atualiza o progresso do usuário\n const updateSectionOnProgress = (newSubSection: Array, section: number) => {\n setUserProgress((prevState) =>\n prevState.map((e) => (e.section === section ? { ...e, screens: newSubSection } : e))\n );\n };\n\n // Isto faz os cálculos e devolve a proxima seção e tela a ser renderizada\n const handleSectionsAndSubSections = (\n progress: Array,\n sec: number,\n sub: number\n ) => {\n const foundSection = progress.find((e) => e.section === sec);\n if (foundSection && foundSection.screens && sec <= progress.length) {\n sub++;\n if (sub === foundSection.screens.length) {\n sec++;\n sub = 0;\n setScreenNumber(sec);\n }\n setSubScreenNumber(sub);\n }\n return [sec, sub];\n };\n\n // Isto procura dentro das telas a qual será renderizada\n const handleScreenComponent = (progress: Array, sec: number, sub: number) => {\n const section = progress.find((e) => e.section === sec);\n if (section && section.screens && section.screens[sub])\n setScreenComponent(section.screens[sub].element);\n };\n\n // Isto encontra a última tela que ainda não houve iteração\n const findLastScreen = (section: UserProgressProps) => {\n const screens = section.screens;\n if (screens) {\n const index = screens.findIndex(\n (screen) => screen.type != \"unnecessary\" && screen.type != \"advanced\"\n );\n setSubScreenNumber(index);\n return screens[index];\n }\n };\n\n // Isto cria uma nova tela e coloca no estate\n const updateUserProgress = useCallback((progress: UserProgressProps) => {\n setUserProgress((prevState) => [...prevState, progress]);\n }, []);\n\n // Isto define manualmente o estado de uma tela e salta para a próxima\n const updateStateManually = useCallback(\n (\n prog: Array,\n currentSec: number,\n currentSubSec: number,\n state: UserProgressScreensProps\n ) => {\n const findSection = prog.find((e) => e.section === currentSec);\n if (findSection && findSection.screens && findSection.screens[currentSubSec]) {\n let newSubSec = updateStateSubSection(findSection.screens, currentSubSec, state);\n newSubSec = updateStateSubSection(newSubSec, currentSubSec + 1, \"visualized\");\n updateSectionOnProgress(newSubSec, currentSec);\n const [sec, sub] = handleSectionsAndSubSections(prog, currentSec, currentSubSec);\n handleScreenComponent(prog, sec, sub);\n }\n },\n []\n );\n\n // Isto remove as configs de progresso caso o componente seja desmontado\n const unMountUserProgress = useCallback(() => setUserProgress(() => []), []);\n\n // Isto faz a troca entre passos e define qual componente exibir\n const advanceStep = useCallback(\n (progress: Array, currentSection: number, currentSub: number) => {\n if (blockNextStep) return;\n\n const foundSection = progress.find((e) => e.section === currentSection);\n // Se temos uma seção atualizamos\n if (foundSection && foundSection.screens) {\n // Avançamos a anterior e visualizamos a próxima tela\n let stateScreens = updateStateSubSection(foundSection.screens, currentSub, \"advanced\");\n // Definimos qual tela mostrar\n const [sec, sub] = handleSectionsAndSubSections(progress, currentSection, currentSub);\n stateScreens = updateStateSubSection(stateScreens, currentSub + 1, \"visualized\");\n updateSectionOnProgress(stateScreens, currentSection);\n // Se trocamos de seção colocamos a primeira como visualizada\n if (sec !== currentSection) {\n const foundSection = progress.find((e) => e.section === sec);\n stateScreens = updateStateSubSection(foundSection?.screens, sub, \"visualized\");\n updateSectionOnProgress(stateScreens, sec);\n }\n handleScreenComponent(progress, sec, sub);\n }\n },\n []\n );\n\n const backStep = useCallback((progress: Array, currentSection: number, currentSub: number) => {\n if (blockNextStep) return;\n\n const foundSection = progress.find((e) => e.section === currentSection);\n // Se temos uma seção atualizamos\n if (foundSection && foundSection.screens) {\n // Marcamos a atual tela como visualizada\n const state = getStateScreen(progress, currentSection, currentSub);\n\n // Somente se o estado de uma tela for \"nothing\" que alteramos\n if (state && state === \"nothing\") {\n let stateScreens = updateStateSubSection(foundSection.screens, currentSub, \"visualized\");\n updateSectionOnProgress(stateScreens, currentSection);\n }\n\n // Se a Subsessão for maior que zero, podemos voltar sem problemas\n if (currentSub > 0) {\n setSubScreenNumber(() => currentSub - 1);\n handleScreenComponent(progress, currentSection, currentSub - 1);\n // Agora se ja estamos na primeira tela da seção vamos tentar voltar a seção\n } else if (currentSection - 1 > 0) {\n setScreenNumber(() => currentSection - 1);\n const subSectionUpdated = getLengthSection(progress, currentSection - 1) - 1;\n setSubScreenNumber(() => subSectionUpdated);\n handleScreenComponent(progress, currentSection - 1, subSectionUpdated);\n }\n }\n }, []);\n\n // Isto pula passos e decide quantos passos devem ser pulados\n const skipStep = useCallback((prog: Array, currentSec: number, currentSub: number) => {\n if (blockNextStep) return;\n const section = prog.find((e) => e.section === currentSec);\n if (section && section.screens) {\n // Avançamos a anterior e visualizamos a próxima tela\n let stateScreens = updateStateSubSection(section.screens, currentSub, \"skiped\");\n let auxCurrentSub = currentSub; // Para não manipular errado usamos uma auxiliar\n if (stateScreens && stateScreens[auxCurrentSub]) {\n let isRequired = stateScreens[auxCurrentSub].required;\n // Enquanto existirem telas requeridas pulamos\n while (isRequired) {\n auxCurrentSub++;\n stateScreens = updateStateSubSection(stateScreens, auxCurrentSub, \"skiped\");\n if (!stateScreens[auxCurrentSub + 1]) isRequired = false;\n else isRequired = stateScreens[auxCurrentSub + 1].required;\n }\n // Quando chegamos aqui definimos a próxima tela como visualizada\n const [sec, sub] = handleSectionsAndSubSections(prog, currentSec, auxCurrentSub);\n stateScreens = updateStateSubSection(stateScreens, sub, \"visualized\");\n updateSectionOnProgress(stateScreens, currentSec);\n // Se trocamos de seção colocamos a primeira como visualizada\n if (sec !== currentSec) {\n const foundSection = prog.find((e) => e.section === sec);\n stateScreens = updateStateSubSection(foundSection?.screens, sub, \"visualized\");\n updateSectionOnProgress(stateScreens, sec);\n }\n // Depois de feitos os Saltos necessários renderizamos a tela certa\n handleScreenComponent(prog, sec, sub);\n }\n }\n }, []);\n\n // Isto define manualmente que em uma seção deve mostrar a primeira tela\n const setAndRederTopScreen = useCallback(\n (prog: Array, currentSec: number, currentSub: number) => {\n if (blockNextStep || blockALLStep) return;\n\n const findSection = prog.find((e) => e.section === currentSec) as UserProgressProps;\n // tentamos pegar a última seção, se for a primeira seção pegamos ela\n const lastSecPosition = currentSec === 1 ? currentSec : currentSec - 1;\n const lastSection = prog.find((e) => e.section === lastSecPosition);\n if (lastSection && lastSection.screens && findSection.screens) {\n const lastScreen = lastSection.screens[lastSection.screens.length - 1];\n // Se a ultima seção foi finalizada ou se é a seção 1, entramos\n if (currentSec === 1 || lastScreen.type !== \"nothing\") {\n // Isto garante que se nao houver tela pegamos a primeira\n const auxSub = currentSub > 0 ? currentSub : 0;\n const updateSub = updateStateSubSection(findSection.screens, auxSub, \"visualized\");\n updateSectionOnProgress(updateSub, currentSec);\n const screen = findLastScreen(findSection);\n if (screen) setScreenComponent(screen?.element);\n setBlockALLStep(false);\n } else {\n // Se chegamos aqui, então a seção anterior não foi completada\n setBlockALLStep(true);\n }\n }\n },\n []\n );\n\n // Isto define manualmente uma Tela a ser mostrada\n const setShowScreen = useCallback(\n (progress: Array, section: number, subSection: number) => {\n const arrSection = progress.find((pr) => pr.section === section);\n if (arrSection?.screens) setScreenComponent(arrSection.screens[subSection].element);\n if (arrSection && arrSection.screens) {\n // Se tenho uma tela marco como visualizada\n const updatedSection = updateStateSubSection(arrSection.screens, subSection, \"visualized\");\n updateSectionOnProgress(updatedSection, section);\n }\n setScreenNumber(section);\n setSubScreenNumber(subSection);\n },\n []\n );\n\n useEffect(() => {\n const payloadData = localStorage.getItem(Constants.LOCALSTORAGE_PAYLOAD);\n if (payloadData) setPayload(() => JSON.parse(payloadData));\n }, []);\n\n return (\n \n {children}\n \n );\n}\n\nexport { OnboardingProvider, OnboardingContext };\n","var _path, _path2, _path3, _path4, _path5;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgLogoPastejo(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 187 51\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M44.8173 12.0618L45.6117 11.6152L46.7036 14.5435H48.8381L47.3989 10.6717L48.7888 9.92718H56.482L55.9357 14.5435H57.9212L58.4176 10.4735L58.6159 10.5726V14.5436H60.6014V10.9699L61.4949 10.027H64.8205C65.416 10.9699 66.2104 11.7643 67.2032 12.3598L67.7987 12.7071C67.8485 12.7071 67.8979 12.757 67.8979 12.757H67.9477L69.1886 12.4096C69.2878 12.3598 69.3869 12.2606 69.3377 12.1614L69.2385 5.85773C69.2385 5.65941 69.0895 5.46052 68.8911 5.41122L65.8138 4.46835L61.1975 0.547339C60.8002 0.199995 60.2546 0.00110796 59.7583 0.00110796L44.0234 0H43.9243C42.0878 0 40.5488 1.4891 40.5488 3.37544V7.54464H42.5343V3.37544C42.5343 2.92894 42.7825 2.48186 43.1298 2.23368V4.51725C43.1298 4.8153 43.1797 5.16264 43.2788 5.41083L44.0234 8.04171L42.8816 11.5163C42.8318 11.6154 42.8318 11.7146 42.8318 11.8143L42.8323 12.211V14.5438H44.8178L44.8173 12.0618Z\",\n fill: \"#57CE71\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M55.8415 36.7793L56.1889 38.8147C56.2387 39.013 56.0897 39.2612 55.8908 39.311L53.4589 40.0556H53.3099C53.2107 40.0556 53.1609 40.0556 53.0617 40.0057L51.9199 39.2612C50.0336 38.0701 48.4454 36.5312 47.2544 34.6448H40.7025L37.9225 38.0203V47.3022H34.7953L34.7958 37.5239L32.7605 34.4958H15.6854L7.14807 38.8639V47.3022H4.02082V38.2185C4.02082 38.0202 4.07068 37.8213 4.11999 37.6723L6.35364 30.7232L4.86454 25.5113C4.71551 24.9158 4.61635 24.3203 4.61635 23.7241V17.2713C3.4253 17.9167 2.63088 19.1577 2.63088 20.5968V28.7869C3.77264 30.9214 3.4253 33.6015 1.63815 35.3887C0.546258 34.2968 0 32.857 0 31.4178C0 30.5242 0.198319 29.5814 0.64539 28.7869V20.5481C0.64539 17.3716 3.22636 14.8398 6.35361 14.8398H37.2773C38.3199 14.8398 39.3619 15.2371 40.1563 15.8824L49.2394 23.6255L51.2748 24.221C52.1185 24.072 52.9129 23.9728 53.5084 23.8238H53.6076C53.955 23.8238 54.1538 24.221 54.0048 24.5185L53.7068 24.965L55.9903 25.6597C56.3875 25.7588 56.4368 26.3051 56.0895 26.4541L54.5505 27.2485L55.6424 28.9359C55.7914 29.1841 55.8906 29.4322 55.8407 29.7303L55.7908 30.2765C55.4939 32.4608 55.4939 34.6447 55.8413 36.7792L55.8415 36.7793Z\",\n fill: \"#57CE71\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.5815 36.4425L27.3052 46.5681H30.6307L32.815 39.8672V38.0805L31.6732 36.4424L30.5815 36.4425Z\",\n fill: \"#57CE71\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.3784 36.4424H16.1302L11.1172 38.9736L13.9463 46.5681H17.2221L14.542 39.0235L16.3784 36.4424Z\",\n fill: \"#57CE71\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M77.61 25.24C80.31 25.24 82.4 25.8 83.88 26.92C85.38 28.04 86.13 29.71 86.13 31.93C86.13 34.25 85.39 36 83.91 37.18C82.43 38.34 80.45 38.92 77.97 38.92H75.6V46H71.19V25.24H77.61ZM77.61 35.68C78.89 35.68 79.87 35.39 80.55 34.81C81.23 34.23 81.57 33.27 81.57 31.93C81.57 29.59 80.23 28.42 77.55 28.42H75.6V35.68H77.61ZM99.1247 46L97.9547 41.35H91.4447L90.2747 46H85.6847L92.0747 25.24H97.4447L103.805 46H99.1247ZM92.2847 38.08H97.1147L94.6847 28.51L92.2847 38.08ZM112.953 24.76C114.453 24.76 115.753 24.98 116.853 25.42C117.973 25.84 119.003 26.49 119.943 27.37L117.843 29.8C117.103 29.2 116.363 28.76 115.623 28.48C114.883 28.2 114.093 28.06 113.253 28.06C112.333 28.06 111.593 28.26 111.033 28.66C110.493 29.04 110.223 29.59 110.223 30.31C110.223 30.81 110.333 31.22 110.553 31.54C110.793 31.86 111.203 32.16 111.783 32.44C112.363 32.72 113.233 33.04 114.393 33.4C116.453 34.06 117.993 34.88 119.013 35.86C120.033 36.82 120.543 38.2 120.543 40C120.543 41.28 120.223 42.41 119.583 43.39C118.943 44.35 118.013 45.11 116.793 45.67C115.573 46.21 114.143 46.48 112.503 46.48C110.863 46.48 109.403 46.22 108.123 45.7C106.843 45.18 105.743 44.47 104.823 43.57L107.073 41.08C107.873 41.76 108.703 42.28 109.563 42.64C110.423 42.98 111.363 43.15 112.383 43.15C113.463 43.15 114.323 42.9 114.963 42.4C115.623 41.9 115.953 41.2 115.953 40.3C115.953 39.74 115.833 39.28 115.593 38.92C115.373 38.54 114.983 38.2 114.423 37.9C113.863 37.6 113.053 37.29 111.993 36.97C109.733 36.27 108.113 35.43 107.133 34.45C106.173 33.47 105.693 32.19 105.693 30.61C105.693 29.45 106.003 28.43 106.623 27.55C107.243 26.65 108.103 25.96 109.203 25.48C110.303 25 111.553 24.76 112.953 24.76ZM137.611 25.24L137.131 28.69H131.881V46H127.471V28.69H121.951V25.24H137.611ZM153.157 25.24L152.677 28.45H145.177V33.85H151.717V37.03H145.177V42.76H153.217V46H140.767V25.24H153.157ZM162.383 42.91C162.383 44.51 162.103 45.83 161.543 46.87C161.003 47.91 160.273 48.72 159.353 49.3C158.433 49.9 157.313 50.42 155.993 50.86L154.823 47.71C155.703 47.37 156.363 46.98 156.803 46.54C157.263 46.1 157.573 45.59 157.733 45.01C157.893 44.43 157.973 43.68 157.973 42.76V25.24H162.383V42.91ZM175.747 24.76C177.647 24.76 179.287 25.19 180.667 26.05C182.047 26.89 183.107 28.12 183.847 29.74C184.587 31.36 184.957 33.32 184.957 35.62C184.957 37.88 184.587 39.83 183.847 41.47C183.107 43.09 182.047 44.33 180.667 45.19C179.287 46.05 177.647 46.48 175.747 46.48C173.847 46.48 172.197 46.06 170.797 45.22C169.417 44.36 168.357 43.12 167.617 41.5C166.877 39.86 166.507 37.9 166.507 35.62C166.507 33.38 166.877 31.45 167.617 29.83C168.377 28.19 169.447 26.94 170.827 26.08C172.227 25.2 173.867 24.76 175.747 24.76ZM175.747 28.06C174.227 28.06 173.077 28.66 172.297 29.86C171.537 31.06 171.157 32.98 171.157 35.62C171.157 38.26 171.547 40.18 172.327 41.38C173.107 42.58 174.247 43.18 175.747 43.18C177.267 43.18 178.407 42.59 179.167 41.41C179.927 40.21 180.307 38.28 180.307 35.62C180.307 32.96 179.927 31.04 179.167 29.86C178.407 28.66 177.267 28.06 175.747 28.06Z\",\n fill: \"#62B8AE\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgLogoPastejo);\nexport default __webpack_public_path__ + \"static/media/logoPastejo.d06ffa95.svg\";\nexport { ForwardRef as ReactComponent };","import { useContext } from \"react\";\nimport { OnboardingContext } from \"../contexts/OnboardingContext\";\n\nexport function useOnboarding() {\n return useContext(OnboardingContext);\n}\n","import { useEffect, useState } from \"react\";\nimport \"./styles.css\";\n\nimport { SubStepsScreenProps } from \"../StepByStep/Index\";\n\nimport { useOnboarding } from \"../../../../hooks/useOnboarding\";\n\ntype SubStepProps = {\n subStep?: SubStepsScreenProps;\n sectionNumb: number;\n screenNumb: number;\n};\n\nexport function SubStep({ subStep, screenNumb, sectionNumb }: SubStepProps) {\n const { userProgress, setShowScreen } = useOnboarding();\n\n // Diz qual o estado atual da tela \"nada\",\"avançado\",\"pulado\"\n const [state, setState] = useState(\"nothing\");\n\n // Monitora o Estado da subtela e exibe as estilização certa\n useEffect(() => {\n if (userProgress.length >= sectionNumb) {\n //precisa ser \"sectionNumb - 1\" pois estamos manipulando o indice do stado\n const section = userProgress[sectionNumb - 1];\n if (section.screens) setState(section.screens[screenNumb].type);\n }\n }, [userProgress, screenNumb, sectionNumb]);\n\n return (\n
\n
\n setShowScreen(userProgress, sectionNumb, screenNumb)}\n disabled={state === \"nothing\" ? true : false}\n >\n
\n {subStep?.name && (\n {subStep?.name}\n )}\n
\n
\n \n
\n );\n}\n","import { ReactNode, useEffect, useState } from \"react\";\nimport AnimateHeight from \"react-animate-height\";\nimport \"./styles.css\";\n\nimport { useOnboarding } from \"../../../../hooks/useOnboarding\";\nimport { SubStep } from \"../SubStep/Index\";\n\nimport { ScreensProps } from \"../../../../contexts/OnboardingContext\";\n\nexport type SubStepsScreenProps = {\n name: string;\n element: ReactNode;\n required?: boolean;\n};\n\ntype OnboardingOptionProps = {\n title: string;\n description?: string;\n stepNumber: number;\n subSteps?: Array;\n required?: boolean;\n};\n\nexport function StepByStep({ description, stepNumber, subSteps, title }: OnboardingOptionProps) {\n const {\n setAndRederTopScreen,\n unMountUserProgress,\n updateUserProgress,\n setScreenNumber,\n subScreenNumber,\n setShowScreen,\n userProgress,\n screenNumber,\n } = useOnboarding();\n\n // Isto diz se a tela está com os passos completos\n const [isActive, setIsActive] = useState(false);\n\n // Isto diz se nos passos algum foi pulado\n const [hasJumping, setHasJumping] = useState(false);\n\n // Isto Monitora a Tela que está ativa e define se a seção está completa\n useEffect(() => {\n const progress = userProgress[stepNumber - 1];\n if (progress && stepNumber < screenNumber) {\n progress.screens?.every((e) => e.type !== \"skiped\" && e.type !== \"nothing\") ? setIsActive(true) : setIsActive(false);\n progress.screens?.some((e) => e.type === \"skiped\") ? setHasJumping(true) : setHasJumping(false);\n }\n }, [screenNumber]);\n\n useEffect(() => {\n // Isto faz uma varredura das telas a serem gerenciadas\n const screens: Array = [];\n subSteps?.forEach((e, i) => {\n screens.push({\n name: e.name,\n element: e.element,\n type: i === 0 && stepNumber == 1 ? \"visualized\" : \"nothing\",\n required: e.required,\n } as ScreensProps);\n });\n\n // Isto manda a subtela para o contexto\n updateUserProgress({\n section: stepNumber,\n screens,\n });\n\n // Isto define qual a primeira tela a ser renderizada\n if (stepNumber === 1) {\n const section = [\n {\n section: stepNumber,\n screens,\n },\n ];\n setShowScreen(section, 1, 0);\n }\n\n // Na desmontagem do componente removemos o progresso\n return () => {\n unMountUserProgress();\n }\n }, []);\n\n return (\n <>\n
\n
\n
\n {stepNumber !== 1 &&
}\n \n {stepNumber}\n {/* O texto sobrepoe todo o container para uma melhor captura de evento */}\n {\n setScreenNumber(stepNumber);\n setAndRederTopScreen(userProgress, stepNumber, subScreenNumber);\n }}\n >\n {title}\n {description}\n \n
\n {/* Aqui são renderizados as subtelas da seção */}\n \n {subSteps &&\n subSteps.map((subStep, ind) => (\n \n ))}\n \n
\n
\n
\n \n );\n}\n","import { ButtonHTMLAttributes } from \"react\";\nimport \"./styles.css\";\n\ninterface ButtonOnlyTitleProps extends ButtonHTMLAttributes {\n title: string;\n theme?: \"dark\" | \"info\" | \"light\" | \"success\" | \"urgent\";\n}\n\nexport function ButtonOnlyTitle({ title, theme, id, ...rest }: ButtonOnlyTitleProps) {\n return (\n \n );\n}\n","import { useEffect, useState } from \"react\";\nimport { useOnboarding } from \"../../../../hooks/useOnboarding\";\nimport { ButtonOnlyTitle } from \"../../../Buttons/ButtonOnlyTitle/Index\";\nimport \"./styles.css\";\n\ntype FooterControllsProps = {\n backStepEvent?: () => boolean | Promise;\n nextStepEvent?: () => boolean | Promise;\n skipStepEvent?: () => boolean | Promise;\n};\n\nexport function FooterControlls({\n nextStepEvent,\n skipStepEvent,\n backStepEvent,\n}: FooterControllsProps) {\n const {\n advanceStep,\n userProgress,\n screenNumber,\n subScreenNumber,\n skipStep,\n backStep,\n blockNextStep,\n } = useOnboarding();\n\n const [isLast, setIsLast] = useState(false);\n\n // O Retorno da promisse depende do valor que foi retorndado na callback\n const ResolvePromise = async (callback: () => boolean | Promise) => {\n return await new Promise((resolve) => {\n return resolve(callback());\n });\n };\n\n async function handleBackStep() {\n if (backStepEvent) {\n // Se a promisse retornar \"true\" significa que estamos autorizados a voltar\n (await ResolvePromise(backStepEvent)) &&\n backStep(userProgress, screenNumber, subScreenNumber);\n } else backStep(userProgress, screenNumber, subScreenNumber);\n }\n\n async function handleNextStep() {\n if (nextStepEvent) {\n // Se a promisse retornar \"true\" significa que estamos autorizados a avançar\n (await ResolvePromise(nextStepEvent)) &&\n advanceStep(userProgress, screenNumber, subScreenNumber);\n } else advanceStep(userProgress, screenNumber, subScreenNumber);\n }\n\n async function handleSkipStep() {\n if (skipStepEvent) {\n // Se a promisse retornar \"true\" significa que estamos autorizados a pular\n (await ResolvePromise(skipStepEvent)) &&\n skipStep(userProgress, screenNumber, subScreenNumber);\n } else skipStep(userProgress, screenNumber, subScreenNumber);\n }\n\n useEffect(() => {\n const sectionQntd = userProgress?.length;\n if (sectionQntd >= 0) {\n const subSectionQntd = userProgress[userProgress.length - 1]?.screens?.length;\n setIsLast(sectionQntd === screenNumber && subScreenNumber === (parseInt(subSectionQntd + \"\") - 1));\n }\n }, [userProgress]);\n\n return (\n
\n {screenNumber === 1 && subScreenNumber === 0 ? (\n false\n ) : (\n \n )}\n\n \n
\n );\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgClose(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 12,\n height: 12,\n viewBox: \"0 0 12 12\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.17495 6.00001L10.7583 2.42501C10.9152 2.26809 11.0034 2.05526 11.0034 1.83334C11.0034 1.61142 10.9152 1.39859 10.7583 1.24167C10.6014 1.08475 10.3885 0.996597 10.1666 0.996597C9.9447 0.996597 9.73187 1.08475 9.57495 1.24167L5.99995 4.82501L2.42495 1.24167C2.26803 1.08475 2.0552 0.996597 1.83328 0.996597C1.61136 0.996597 1.39854 1.08475 1.24162 1.24167C1.0847 1.39859 0.996539 1.61142 0.996539 1.83334C0.996539 2.05526 1.0847 2.26809 1.24162 2.42501L4.82495 6.00001L1.24162 9.57501C1.16351 9.65248 1.10151 9.74464 1.05921 9.84619C1.0169 9.94774 0.995117 10.0567 0.995117 10.1667C0.995117 10.2767 1.0169 10.3856 1.05921 10.4872C1.10151 10.5887 1.16351 10.6809 1.24162 10.7583C1.31908 10.8364 1.41125 10.8984 1.5128 10.9407C1.61435 10.9831 1.72327 11.0048 1.83328 11.0048C1.94329 11.0048 2.05221 10.9831 2.15376 10.9407C2.25531 10.8984 2.34748 10.8364 2.42495 10.7583L5.99995 7.17501L9.57495 10.7583C9.65242 10.8364 9.74459 10.8984 9.84614 10.9407C9.94768 10.9831 10.0566 11.0048 10.1666 11.0048C10.2766 11.0048 10.3855 10.9831 10.4871 10.9407C10.5886 10.8984 10.6808 10.8364 10.7583 10.7583C10.8364 10.6809 10.8984 10.5887 10.9407 10.4872C10.983 10.3856 11.0048 10.2767 11.0048 10.1667C11.0048 10.0567 10.983 9.94774 10.9407 9.84619C10.8984 9.74464 10.8364 9.65248 10.7583 9.57501L7.17495 6.00001Z\",\n fill: \"#4D4D4D\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgClose);\nexport default __webpack_public_path__ + \"static/media/close.0fc58d3c.svg\";\nexport { ForwardRef as ReactComponent };","import \"./styles.css\";\nimport { ReactComponent as CloseIcon } from \"../../../../assets/svg/icons/close.svg\";\n\ntype HeaderCloseProps = {\n onClick: () => void;\n};\n\nexport function SimpleButtonClose({ onClick: eventClick }: HeaderCloseProps) {\n return (\n
\n \n
\n );\n}\n","var _path, _path2;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgEye(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 18,\n viewBox: \"0 0 24 18\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24 9.09375C24 9.09375 19.5 0.84375 12 0.84375C4.5 0.84375 0 9.09375 0 9.09375C0 9.09375 4.5 17.3438 12 17.3438C19.5 17.3438 24 9.09375 24 9.09375ZM1.7595 9.09375C2.48477 7.99144 3.31896 6.96478 4.2495 6.02925C6.18 4.09575 8.82 2.34375 12 2.34375C15.18 2.34375 17.8185 4.09575 19.752 6.02925C20.6825 6.96478 21.5167 7.99144 22.242 9.09375C22.155 9.22425 22.059 9.36825 21.9495 9.52575C21.447 10.2458 20.7045 11.2058 19.752 12.1583C17.8185 14.0918 15.1785 15.8438 12 15.8438C8.82 15.8438 6.1815 14.0918 4.248 12.1583C3.31747 11.2227 2.48328 10.1961 1.758 9.09375H1.7595Z\",\n fill: \"#62B8AE\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 5.34375C11.0054 5.34375 10.0516 5.73884 9.34835 6.4421C8.64509 7.14536 8.25 8.09919 8.25 9.09375C8.25 10.0883 8.64509 11.0421 9.34835 11.7454C10.0516 12.4487 11.0054 12.8438 12 12.8438C12.9946 12.8438 13.9484 12.4487 14.6517 11.7454C15.3549 11.0421 15.75 10.0883 15.75 9.09375C15.75 8.09919 15.3549 7.14536 14.6517 6.4421C13.9484 5.73884 12.9946 5.34375 12 5.34375ZM6.75 9.09375C6.75 7.70136 7.30312 6.36601 8.28769 5.38144C9.27226 4.39687 10.6076 3.84375 12 3.84375C13.3924 3.84375 14.7277 4.39687 15.7123 5.38144C16.6969 6.36601 17.25 7.70136 17.25 9.09375C17.25 10.4861 16.6969 11.8215 15.7123 12.8061C14.7277 13.7906 13.3924 14.3438 12 14.3438C10.6076 14.3438 9.27226 13.7906 8.28769 12.8061C7.30312 11.8215 6.75 10.4861 6.75 9.09375Z\",\n fill: \"#62B8AE\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgEye);\nexport default __webpack_public_path__ + \"static/media/eye.77da8737.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgEyeClosed(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 18,\n viewBox: \"0 0 24 18\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.75 9.09375C15.75 10.0883 15.3549 11.0421 14.6517 11.7454C13.9484 12.4487 12.9946 12.8438 12 12.8438C11.0054 12.8438 10.0516 12.4487 9.34835 11.7454C8.64509 11.0421 8.25 10.0883 8.25 9.09375C8.25 8.09919 8.64509 7.14536 9.34835 6.4421C10.0516 5.73884 11.0054 5.34375 12 5.34375C12.9946 5.34375 13.9484 5.73884 14.6517 6.4421C15.3549 7.14536 15.75 8.09919 15.75 9.09375Z\",\n fill: \"#62B8AE\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 9.09375C0 9.09375 4.5 0.84375 12 0.84375C19.5 0.84375 24 9.09375 24 9.09375C24 9.09375 19.5 17.3438 12 17.3438C4.5 17.3438 0 9.09375 0 9.09375ZM12 14.3438C13.3924 14.3438 14.7277 13.7906 15.7123 12.8061C16.6969 11.8215 17.25 10.4861 17.25 9.09375C17.25 7.70136 16.6969 6.36601 15.7123 5.38144C14.7277 4.39687 13.3924 3.84375 12 3.84375C10.6076 3.84375 9.27226 4.39687 8.28769 5.38144C7.30312 6.36601 6.75 7.70136 6.75 9.09375C6.75 10.4861 7.30312 11.8215 8.28769 12.8061C9.27226 13.7906 10.6076 14.3438 12 14.3438V14.3438Z\",\n fill: \"#62B8AE\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgEyeClosed);\nexport default __webpack_public_path__ + \"static/media/eyeClosed.364d580f.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgChevronDown(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 15,\n height: 10,\n viewBox: \"0 0 15 10\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.5 -1.60935e-06L15 10L9.53674e-07 10L7.5 -1.60935e-06Z\",\n fill: \"#999999\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgChevronDown);\nexport default __webpack_public_path__ + \"static/media/chevronDown.8203f022.svg\";\nexport { ForwardRef as ReactComponent };","import { useEffect, useRef, useState } from 'react';\nimport ReactSelect, { Props as SelectProps } from 'react-select';\nimport './styles.css';\nimport { ReactComponent as ChevronIcon } from '../../../assets/svg/icons/chevronDown.svg';\nimport { useField } from '@unform/core';\nimport { IOptionProps, IOptionsProps } from '../../../@types/reactSelect/IOption';\n\ninterface ReactSelectProps extends SelectProps {\n name: string;\n getMessageError?: (error: string) => void;\n handleAnywhereChanges?: (event?: any) => void;\n getSelectedData?: (data: IOptionProps, action?: string) => void;\n}\n\nconst mHeight = '300px';\nconst speed = '300ms';\n\nexport function Select({\n name,\n options,\n getMessageError,\n getSelectedData,\n handleAnywhereChanges,\n ...rest\n}: ReactSelectProps) {\n const selectRef = useRef(null);\n const [open, setOpen] = useState(rest.menuIsOpen);\n const { fieldName, defaultValue, registerField, error } = useField(name);\n const [errorSelect, setErrorSelect] = useState('');\n const [value, setvalue] = useState(null);\n const [selectOptions, setSelectOption] = useState([]);\n const [upData, setUpData] = useState(false);\n\n const selectStyles = () => ({\n option: (provided: any, state: any) => ({\n ...provided,\n position: 'relative',\n background: 'transparent',\n color: state.isSelected ? '#4D4D4D' : '#999999',\n textTransform: 'captilize',\n fontWeight: 'bold',\n opacity: open ? 1 : 0.5,\n transition: `all ${speed} ease-in-out`,\n padding: '0',\n paddingBottom: '20px',\n paddingLeft: '12px',\n '&:hover': {\n background: 'transparent',\n color: '#4D4D4D',\n cursor: 'pointer'\n },\n '&:last-child': {\n paddingBottom: '0'\n }\n }),\n control: (provided: any, { isDisabled }: any) => ({\n ...provided,\n borderRadius: !open ? '19.6px' : '19.6px 19.6px 0px 0px',\n background: rest.isDisabled ? '#F1F1F1' : '#FFF',\n outline: 'none',\n minHeight: '56px',\n boxShadow: 'none',\n border: `1px solid ${errorSelect ? '#ff6161' : '#e5e5e5'} !important`,\n fontSize: 18,\n transition: `all ${speed} ease-in-out`,\n zIndex: 3,\n paddingLeft: '20px',\n paddingRight: '20px',\n cursor: isDisabled ? 'not-allowed' : 'default'\n }),\n menu: (provided: any) => ({\n ...provided,\n borderRadius: '0px 0px 19.6px 19.6px',\n outline: 'none',\n boxShadow: 'none',\n borderLeft: `1px solid ${errorSelect ? '#ff6161' : '#e5e5e5'} !important`,\n borderRight: `1px solid ${errorSelect ? '#ff6161' : '#e5e5e5'} !important`,\n borderBottom: `1px solid ${errorSelect ? '#ff6161' : '#e5e5e5'} !important`,\n position: 'relative',\n marginTop: '-10px',\n paddingTop: '10px',\n paddingLeft: '12px',\n paddingRight: '12px',\n marginBottom: '0px',\n fontSize: 18,\n maxHeight: open ? mHeight : '0px',\n overflow: 'hidden',\n opacity: open ? 1 : 0.5,\n transition: `all ${speed} ease-in-out`,\n visibility: open ? 'visible' : 'hidden',\n animation: open ? `ease selectOpen ${speed} forwards` : `ease selectClose ${speed} forwards`,\n zIndex: 2,\n }),\n menuList: (defaultStyles: any) => ({\n ...defaultStyles,\n maxHeight: '270px'\n }),\n indicatorsContainer: (defaultStyles: any) => ({\n ...defaultStyles,\n transition: 'ease-in-out 400ms',\n transform: open ? 'rotateZ(0deg)' : 'rotateZ(180deg)',\n }),\n input: (defaultStyles: any) => ({\n ...defaultStyles,\n margin: 0,\n padding: 0\n }),\n valueContainer: (defaultStyles: any) => ({\n ...defaultStyles,\n padding: 0\n }),\n noOptionsMessage: (defaultStyles: any) => ({\n ...defaultStyles,\n with: '100%',\n padding: '12px 0',\n margin: '0px'\n })\n });\n\n function onSelectChanges(event?: any) {\n if (event && handleAnywhereChanges) handleAnywhereChanges(event);\n }\n\n useEffect(() => {\n registerField({\n name: fieldName,\n ref: selectRef.current,\n getValue: (ref: any) => {\n if (rest.isMulti) {\n if (ref.state.selectValue.length === 0) return [];\n return ref.state.selectValue.map((option: any) => option.value);\n }\n if (ref.state.selectValue.length === 0) return null;\n return ref.state.selectValue[0];\n },\n setValue: (ref: any, value: any) => {\n if (value) ref.setValue(value);\n }\n });\n }, [fieldName, registerField, rest.isMulti]);\n\n\n useEffect(() => {\n if (rest.defaultMenuIsOpen) {\n setOpen(rest.defaultMenuIsOpen);\n }\n }, [rest.defaultMenuIsOpen]);\n\n useEffect(() => {\n if (getMessageError) getMessageError(error ? error : '');\n else setErrorSelect(() => (error ? error : ''));\n }, [error]);\n\n useEffect(() => {\n if (value) onSelectChanges(value);\n }, [value]);\n\n useEffect(() => {\n if (options && options.length) {\n setSelectOption(() =>\n options.map((option: IOptionProps) => ({\n label: String(option.label),\n value: String(option.value),\n info: option?.info\n }))\n );\n setUpData(!upData)\n }\n else {\n setSelectOption([])\n }\n }, [options]);\n\n useEffect(() => {\n if (rest.isDisabled) {\n setOpen(false)\n }\n }, [rest.isDisabled])\n\n return (\n <>\n {\n if (!rest.isDisabled) setOpen((prevState) => !prevState);\n }}>\n null,\n IndicatorSeparator: () => null,\n DropdownIndicator: () => \n }}\n onChange={(data, { action }) => {\n getSelectedData && getSelectedData(data, action);\n if (action) setOpen(rest.closeMenuOnSelect);\n if (action) setvalue(data);\n }}\n onFocus={() => onSelectChanges()}\n className=\"react-select\"\n />\n \n {errorSelect && (\n {errorSelect}\n )}\n \n );\n}\n","import {\n ChangeEvent,\n HTMLAttributes,\n InputHTMLAttributes,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport { useField } from \"@unform/core\";\nimport \"./styles.css\";\nimport ReactInputMask from \"react-input-mask\";\n\ntype InputText = InputHTMLAttributes & {\n getMessageError?: (error: string) => void;\n handleAnywhereChanges?: (data?: HTMLInputElement) => void;\n returnAsNumber?: boolean;\n updateValue?: string | number;\n returnUnmasked?: boolean;\n mask?: string;\n isInvalid?: boolean;\n};\n\nexport function TextInput({\n handleAnywhereChanges,\n returnAsNumber,\n getMessageError,\n returnUnmasked,\n updateValue,\n className,\n mask,\n isInvalid = false,\n ...rest\n}: InputText) {\n const inputRef = useRef(null);\n const { fieldName, defaultValue, registerField, error } = useField(rest.name || \"\");\n\n const [errorField, setErrorField] = useState(\"\");\n\n const [inputValue, setInputValue] = useState(\"\");\n const [timer, setTimer] = useState(null);\n\n const inputChanged = (e: ChangeEvent) => {\n setInputValue(e.target.value);\n\n clearTimeout(timer);\n\n const newTimer = setTimeout(() => {\n if (inputRef.current && handleAnywhereChanges) handleAnywhereChanges(inputRef.current);\n }, 100);\n\n setTimer(newTimer);\n };\n\n useEffect(() => {\n registerField({\n name: fieldName,\n ref: inputRef,\n getValue: (ref) => {\n const value = ref?.current?.value;\n if (rest && rest?.type === \"number\" && value) return value !== \"\" ? Number(value) : undefined;\n if (returnAsNumber && value) return value !== \"\" ? value.replace(\",\", \".\") : undefined;\n if (returnUnmasked && value) return value?.replace(/[^0-9a-z]/gi, \"\");\n else return value;\n },\n setValue: (ref, value) => {\n ref.current.value = value;\n },\n });\n }, [fieldName, registerField]);\n\n useEffect(() => {\n if (getMessageError) getMessageError(error ? error : \"\");\n else setErrorField(() => (error ? error : \"\"));\n }, [error]);\n\n return (\n
\n {mask ? (\n {\n inputChanged(event);\n rest.onChange && rest.onChange(event);\n }}\n autoComplete=\"off\"\n />\n ) : (\n {\n inputChanged(event);\n rest.onChange && rest.onChange(event);\n }}\n autoComplete=\"off\"\n defaultValue={defaultValue || rest.defaultValue}\n />\n )}\n {errorField && (\n {errorField}\n )}\n
\n );\n}\n","import { useEffect, useRef } from \"react\";\nimport { useField } from \"@unform/core\";\nimport \"./styles.css\";\n\ntype InputText = JSX.IntrinsicElements[\"input\"] & {\n name: string;\n};\n\n/*\n * Este componente só deve ser usado para renderiação de IDS\n * Deve ser usado com ateção!!!\n*/\n\nexport function HandleUUID({ name, className, ...rest }: InputText) {\n const inputRef = useRef(null);\n const { fieldName, defaultValue, registerField } = useField(name);\n\n useEffect(() => {\n registerField({\n name: fieldName,\n ref: inputRef,\n getValue: (ref) => {\n const value = ref?.current?.value;\n if (rest && rest?.type === \"number\" && value) return value !== \"\" ? Number(value) : undefined;\n return value;\n },\n setValue: (ref, value) => {\n ref.current.value = value;\n },\n clearValue: (ref) => {\n ref.current.value = \"\";\n },\n });\n }, [fieldName, registerField]);\n\n return (\n
\n \n
\n );\n}\n","import { useCallback, useEffect, useState } from \"react\";\nimport AnimateHeight from \"react-animate-height\";\nimport \"./styles.css\";\nimport { ReactComponent as EyeOpenIcon } from \"../../../../assets/svg/icons/eye.svg\";\nimport { ReactComponent as EyeClosedIcon } from \"../../../../assets/svg/icons/eyeClosed.svg\";\nimport { ButtonOnlyTitle } from \"../../../Buttons/ButtonOnlyTitle/Index\";\nimport { Select } from \"../../../Inputs/Select/Index\";\nimport { TextInput } from \"../../../Inputs/TextInputs/TextInput/Index\";\nimport { IOptionsProps } from \"../../../../@types/reactSelect/IOption\";\nimport { HandleUUID } from \"../../../Inputs/HandleUUID/Index\";\n\ntype CreateProfileProps = {\n uuid: number;\n profilesList: IOptionsProps;\n isVisibleBtnRemoveProfile: boolean;\n onAnywhereChanges?: (input?: HTMLInputElement) => void;\n onRemoveProfile?: (uuid: number) => void;\n onlyRead?: boolean;\n};\n\nexport function CreateProfile({\n onAnywhereChanges,\n onRemoveProfile,\n profilesList,\n uuid,\n isVisibleBtnRemoveProfile,\n onlyRead = false\n}: CreateProfileProps) {\n const [statusProfile, setStatusProfile] = useState<0 | \"auto\">(0);\n\n // Isso captura qualquer tipo de alteração nos Inputs repassados\n const onChangeAnywhereInput = useCallback(\n (input?: HTMLInputElement) => {\n if (onAnywhereChanges) onAnywhereChanges(input);\n },\n [onAnywhereChanges]\n );\n\n const toggleProfile = () => {\n setStatusProfile((prev) => (prev === 0 ? \"auto\" : 0));\n };\n\n useEffect(() => {\n setTimeout(() => {\n setStatusProfile(\"auto\")\n }, 500);\n }, []);\n\n return (\n
\n
\n

Perfil {uuid + 1}

\n \n
\n \n
\n \n \n Não foram encontrados cargos/funções,\n }}\n id={`createuser-profile_id-${uuid}`}\n closeMenuOnSelect={true}\n placeholder=\"Selecione\"\n options={profilesList}\n isSearchable={false}\n name=\"profile\"\n handleAnywhereChanges={onChangeAnywhereInput}\n isDisabled={onlyRead}\n />\n
\n
\n {statusProfile === 0 && }\n
\n );\n}\n","import { ReactNode } from \"react\";\nimport \"./styles.css\";\n\ntype ButtonRedirectProps = {\n children: ReactNode;\n onClick: () => void;\n};\n\nexport function ButtonRedirect({ children, onClick: eventClick }: ButtonRedirectProps) {\n return (\n
\n \n
\n );\n}\n","import { ReactNode } from \"react\";\nimport \"./styles.css\";\n\ntype TitleErrorProps = {\n children: ReactNode;\n};\n\nexport function TitleModal({ children }: TitleErrorProps) {\n return (\n
\n

{children}

\n
\n );\n}\n","import { ReactNode } from \"react\";\nimport \"./styles.css\";\n\ntype TextErrorProps = {\n children: ReactNode;\n};\n\nexport function TextModal({ children }: TextErrorProps) {\n return (\n
\n
{children}
\n
\n );\n}\n","import { CSSProperties, ReactNode, useEffect, useState } from \"react\";\n//@ts-ignore\nimport Rodal from \"rodal\";\nimport \"rodal/lib/rodal.css\";\n\ntype AnimationModal =\n | \"zoom\"\n | \"fade\"\n | \"flip\"\n | \"door\"\n | \"rotate\"\n | \"slideUp\"\n | \"slideDown\"\n | \"slideLeft\"\n | \"slideRight\";\n\ntype ModalComponentProps = {\n children: ReactNode | ReactNode[];\n visible: boolean;\n contentStyle?: CSSProperties;\n animation?: AnimationModal;\n onCloseFunction?: any;\n};\n\nexport function AlertModal({\n animation = \"zoom\",\n contentStyle,\n children,\n visible,\n onCloseFunction = () => {},\n}: ModalComponentProps) {\n const [showModal, setShowModal] = useState(false);\n useEffect(() => setShowModal(visible), [visible]);\n\n return (\n \n {children}\n \n );\n}\n","import * as yup from \"yup\";\n\nexport const useYupValidate = async (formRef: any, formData: any, schemaValidate: any) => {\n const errors = {} as any;\n if (formRef && formRef.current) formRef.current.setErrors(errors);\n try {\n await schemaValidate.validate(formData, { abortEarly: false });\n return true; // se tudo estiver ok, devolvemos true\n } catch (err) {\n if (err instanceof yup.ValidationError) {\n err.inner.forEach((e) => {\n errors[e.path as string] = e.message;\n });\n return false; // se existir algum erro, devolvemos falso\n }\n } finally {\n // atualizamos o objeto de erros do form\n if (formRef && formRef.current) formRef.current.setErrors(errors);\n }\n return false;\n};\n\nexport const useYupOnlyVerify = async (formRef: any, formData: any, schemaValidate: any) => {\n formRef.current?.setErrors({});\n try {\n await schemaValidate.validate(formData, { abortEarly: true });\n } catch (err) {\n if (err instanceof yup.ValidationError) {\n return { [err.path as string]: err.message };\n }\n }\n return null;\n};\n","export function generateuuid() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n var r = Math.random()*16|0, v = c === 'x' ? r : (r&0x3|0x8);\n return v.toString(16);\n });\n}\n","import { createContext, ReactNode, useEffect, useState } from \"react\";\nimport jwt_decode from \"jwt-decode\";\nimport { useNavigate } from \"react-router-dom\";\n\ntype EditValues = {\n formRefValue: any;\n setFormRefValue: (s: HTMLFormElement | undefined) => void;\n blockSave: boolean;\n setBlockSave: (t: boolean) => void;\n refreshValues: boolean;\n setRefreshValues: (t: boolean) => void;\n permissionMaster: boolean;\n};\n\ntype EditValuesProps = {\n children: ReactNode;\n};\n\nconst EditValuesContext = createContext({} as EditValues);\n\nfunction EditValuesProvider({ children }: EditValuesProps) {\n const [formRefValue, setFormRefValue] = useState(undefined)\n const [blockSave, setBlockSave] = useState(false);\n const [refreshValues, setRefreshValues] = useState(false);\n const [permissionMaster, setPermissionMaster] = useState(false);\n const navigate = useNavigate();\n const token = localStorage.getItem(\"token\")\n let decode: any;\n\n try {\n decode = jwt_decode(token || \" \");\n } catch (error) {\n console.error(\"Failed to decode token: \", error);\n navigate(\"/entrar\")\n }\n\n useEffect(() => {\n setPermissionMaster(decode.ROLE == \"MASTER\")\n }, [])\n\n return (\n \n {children}\n \n );\n}\n\nexport { EditValuesContext, EditValuesProvider };\n","import { useContext } from \"react\";\nimport { EditValuesContext } from \"../contexts/EditValuesContext\";\n\nexport function EditValues() {\n const value = useContext(EditValuesContext);\n return value;\n}\n","import { CSSProperties, useEffect, useRef, useState } from \"react\";\nimport { Scope } from \"@unform/core\";\nimport { Form } from \"@unform/web\";\nimport * as yup from \"yup\";\nimport \"./styles.css\";\nimport { IOptionsProps } from \"../../../../@types/reactSelect/IOption\";\nimport { IProfiles } from \"../../../../@types/app/IProfile\";\nimport { FooterControlls } from \"../../../../components/Onboarding/Template/FooterControlls/Index\";\nimport { SimpleButtonClose } from \"../../../../components/Modal/Contents/SimpleButtonClose/Index\";\nimport { CreateProfile } from \"../../../../components/Onboarding/Register/CreateProfile/Index\";\nimport { ButtonRedirect } from \"../../../../components/Modal/Error/ButtonRedirect/Index\";\nimport { ButtonOnlyTitle } from \"../../../../components/Buttons/ButtonOnlyTitle/Index\";\nimport { TitleModal } from \"../../../../components/Modal/Contents/TitleModal/Index\";\nimport { TextModal } from \"../../../../components/Modal/Contents/TextModal/Index\";\nimport { AlertModal } from \"../../../../components/Modal/Alert/Index\";\nimport {\n useYupOnlyVerify,\n useYupValidate,\n} from \"../../../../hooks/useYupValidate\";\nimport { useOnboarding } from \"../../../../hooks/useOnboarding\";\nimport Constants from \"../../../../constants/Index\";\nimport axios from \"../../../../services/axios\";\nimport { generateuuid } from \"../../../../utils/uuid/generate\";\nimport { EditValues } from \"../../../../hooks/EditValues\";\nimport { TextInput } from \"../../../../components/Inputs/TextInputs/TextInput/Index\";\nimport jwt_decode from \"jwt-decode\";\n\nconst baseProfile = {\n profile_id: 0,\n profile: null,\n name: \"\",\n phone: \"\",\n uuid: \"\",\n};\n\nconst contentStyle = {\n width: \"440px\",\n height: \"218px\",\n background: \"#FFFFFF\",\n borderRadius: \"20px\",\n padding: \"20px\",\n} as CSSProperties;\n\ninterface CreateProfilesProps {\n onlyRead?: boolean;\n onBoarding?: boolean;\n}\n\nexport function CreateProfiles({\n onlyRead = false,\n onBoarding = false,\n}: CreateProfilesProps) {\n yup.addMethod(yup.array, \"unique\", function (mapper = (a: any) => a) {\n return this.test(\"unique\", function (list: any) {\n let index = -1;\n list.forEach((l: any, i: number) => {\n const lenght = list.filter((a: any) => a.phone === l.phone).length;\n if (lenght > 1) index = i;\n });\n if (index > -1)\n return this.createError({\n path: `users[${index}].phone`,\n message: Constants.MESSAGE_UNIQUE_PHONE,\n });\n return true;\n });\n });\n\n const {\n setBlockNextStep,\n setPayload,\n payload,\n advanceStep,\n userProgress,\n screenNumber,\n subScreenNumber,\n } = useOnboarding();\n\n const [profilesList, setProfilesList] = useState([]);\n\n const [profilesData, setProfilesData] = useState([baseProfile]);\n\n const [alertVisible, setAlertVisible] = useState(false);\n const [numProfiles, setNumProfiles] = useState(0);\n\n const formRef = useRef();\n\n const mainRef = useRef(null);\n\n const { setFormRefValue, setBlockSave, refreshValues, permissionMaster } = EditValues();\n\n var token = localStorage.getItem(\"token\");\n\n const props = {\n profile_id: yup\n .object({\n label: yup.string(),\n value: yup.string(),\n })\n .nullable()\n .required(\"Selecione o Cargo/Função\"),\n name: yup\n .string()\n .matches(/^[^\\s]+(\\s+[^\\s]+)*$/, \"Escreva um nome válido\")\n .min(3, \"Necessário ter no mínimo 3 letras\")\n .max(120, \"No máximo 120 letras\")\n .required(\"*Campo obrigatório não informado.\"),\n phone: yup\n .string()\n .min(11, \"Telefone informado inválido!\")\n .max(11, \"Telefone informado inválido!\")\n .test('value', 'Telefone ja cadastrado para o usuario Master. ', (value) => {\n if (token && onBoarding && (value == (jwt_decode(token) as any).sub)) return false\n return true\n })\n .required(\"*Campo obrigatório não informado.\"),\n };\n\n const profileForm = yup.object().shape({\n users: yup\n .array()\n .of(yup.object().shape(props)) //@ts-ignore\n .unique((a) => a.phone),\n });\n\n async function handleFormSubmit() {\n const formData: any = formRef.current?.getData();\n const isValid = await useYupValidate(formRef, formData, profileForm);\n if (isValid) {\n let profiles: IProfiles = formData.users;\n profiles = profiles.map((profile) => {\n return {\n ...profile,\n password: Constants.DEFAULT_PASSWORD,\n profile_id: profile.profile?.value,\n uuid: profile.uuid ? profile.uuid : generateuuid(),\n };\n });\n setPayload((payload) => {\n const response = { ...payload, users: profiles };\n localStorage.setItem(\n Constants.LOCALSTORAGE_PAYLOAD,\n JSON.stringify(response)\n );\n return response;\n });\n setAlertVisible(true);\n }\n return false;\n }\n\n // Isso monitora os campos obrigatórios e libera/bloqueia o avançar\n async function handleChangesProfile(input?: any) {\n let name = undefined,\n isValid = false;\n if (!onlyRead) {\n if (input && input.props && input.props.name) name = input.props.name;\n else if (input) name = input.name;\n const formdata = formRef.current?.getData();\n if (name !== undefined) {\n const validate = {\n //@ts-ignore\n [name]: props[name],\n };\n const schemaValidation = yup.object().shape({\n users: yup\n .array()\n .of(yup.object().shape({ ...validate }))\n //@ts-ignore\n .unique((a) => a.phone),\n });\n\n isValid = await useYupValidate(formRef, formdata, schemaValidation);\n } else isValid = await useYupValidate(formRef, formdata, profileForm);\n setBlockNextStep(!isValid);\n } else {\n const formData: any = formRef.current?.getData();\n isValid = await useYupValidate(formRef, formData, profileForm);\n setBlockSave(!isValid);\n setFormRefValue(formRef as any);\n }\n return isValid;\n }\n\n // Isso adiciona um novo perfil\n async function addNewProfile() {\n const isValid = await handleChangesProfile(true);\n if (isValid && !onlyRead) {\n setBlockNextStep(true);\n setProfilesData((profiles) => {\n return [...profiles, baseProfile];\n });\n } else if (isValid && onlyRead) {\n setBlockSave(true);\n setProfilesData((profiles) => {\n return [...profiles, baseProfile];\n });\n }\n }\n\n // Isso remove um perfil da lista de perfis\n function removeProfile(id: number) {\n const profiles: IProfiles = formRef.current?.getData().users;\n if (profiles) {\n const profilesFiltered = profiles.filter(\n (profile, index) => index !== id\n );\n setProfilesData(() => profilesFiltered);\n formRef.current?.setData({ users: profilesFiltered });\n setTimeout(() => handleChangesProfile(), 1);\n }\n }\n\n useEffect(() => {\n setProfilesData([baseProfile]);\n axios\n .get(\"/profiles\")\n .then(({ data }) => {\n setProfilesList(() =>\n data.map((e: any) => ({ label: e.name, value: e.id }))\n );\n })\n .catch((e) => console.log(e));\n\n if (onlyRead) {\n axios\n .get(\"/users/user\")\n .then(({ data }) => {\n setProfilesData(data);\n setNumProfiles(data.length);\n data.map(\n (value: any) =>\n (value.profile = {\n label: value.profile_name,\n value: value.profile_name,\n })\n );\n formRef.current?.setData({ users: data });\n })\n .catch((e) => console.log(e));\n } else {\n setBlockNextStep(true);\n if (payload && payload.users) {\n setProfilesData(() => payload.users);\n formRef.current?.setData({ users: payload.users });\n }\n }\n }, [, refreshValues]);\n\n useEffect(() => {\n const formdata = formRef.current?.getData();\n if (!onlyRead)\n useYupOnlyVerify(formRef, formdata, profileForm).then((isValid) =>\n setBlockNextStep(!!isValid)\n );\n }, [profilesList]);\n\n // Função que avança o passo manualmente\n function nextStep() {\n advanceStep(userProgress, screenNumber, subScreenNumber);\n }\n\n return (\n <>\n \n setAlertVisible(false)} />\n
\n {Constants.MESSAGE_ALERT_CREATEUSER}\n {Constants.DEFAULT_PASSWORD}\n
\n Continuar\n
\n\n
\n
\n
\n {onBoarding &&

Perfis

}\n\n { }}\n >\n
\n
\n
\n {!onlyRead && (\n
\n \n
\n )}\n \n );\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgLeftChevron(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.75156 11.1515C2.28293 11.6201 2.28293 12.3799 2.75156 12.8485L10.3883 20.4853C10.8569 20.9539 11.6167 20.9539 12.0854 20.4853C12.554 20.0167 12.554 19.2569 12.0854 18.7882L5.29714 12L12.0854 5.21178C12.554 4.74315 12.554 3.98335 12.0854 3.51472C11.6167 3.04609 10.8569 3.04609 10.3883 3.51472L2.75156 11.1515ZM3.84009 13.2C4.50283 13.2 5.04009 12.6627 5.04009 12C5.04009 11.3373 4.50283 10.8 3.84009 10.8L3.84009 13.2ZM3.60009 13.2H3.84009L3.84009 10.8H3.60009L3.60009 13.2Z\",\n fill: \"white\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgLeftChevron);\nexport default __webpack_public_path__ + \"static/media/leftChevron.f21e58dd.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgRightChevron(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21.2484 12.8485C21.7171 12.3799 21.7171 11.6201 21.2484 11.1515L13.6117 3.51472C13.1431 3.04609 12.3833 3.04609 11.9146 3.51472C11.446 3.98335 11.446 4.74315 11.9146 5.21178L18.7029 12L11.9146 18.7882C11.446 19.2569 11.446 20.0167 11.9146 20.4853C12.3833 20.9539 13.1431 20.9539 13.6117 20.4853L21.2484 12.8485ZM20.1599 10.8C19.4972 10.8 18.9599 11.3373 18.9599 12C18.9599 12.6627 19.4972 13.2 20.1599 13.2V10.8ZM20.3999 10.8H20.1599V13.2H20.3999V10.8Z\",\n fill: \"white\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgRightChevron);\nexport default __webpack_public_path__ + \"static/media/rightChevron.f8181246.svg\";\nexport { ForwardRef as ReactComponent };","import { ReactNode, useState } from \"react\";\nimport \"./styles.css\";\n\nimport { ReactComponent as LeftIcon } from \"../../../../../../assets/svg/icons/leftChevron.svg\";\nimport { ReactComponent as RightIcon } from \"../../../../../../assets/svg/icons/rightChevron.svg\";\n\nimport { Swiper } from \"swiper/react\";\nimport \"swiper/swiper-bundle.min.css\";\nimport \"swiper/swiper.min.css\";\nimport Constants from \"../../../../../../constants/Index\";\n\ntype TableVisualizationContainerProps = {\n children: ReactNode | ReactNode[];\n};\n\ninterface SwiperProps extends Swiper {\n slidePrev: () => void;\n slideNext: () => void;\n}\n\nexport function TableVisualizationContainer({ children }: TableVisualizationContainerProps) {\n const [currentSlider, setCurrentSlider] = useState(0);\n\n const [month] = useState(Constants.MONTHS_FULL_NAME);\n\n const [sliderRef, setSliderRef] = useState();\n\n function handlePrevMoth() {\n if (sliderRef) sliderRef.slidePrev();\n }\n\n function handleNextMoth() {\n if (sliderRef) sliderRef.slideNext();\n }\n\n function handleCurrentIndex(slide: any) {\n setCurrentSlider(slide.realIndex < 12 ? slide.realIndex : 0);\n }\n\n return (\n <>\n
\n \n {month[currentSlider]}\n \n
\n\n
\n
categoria
\n
idade
\n
peso
\n
\n\n
\n setSliderRef(swiper as any)}\n >\n {children}\n \n
\n \n );\n}\n","import { useEffect, useState } from \"react\";\nimport { IAnimalCategory } from \"../../../../../../@types/app/AnimalCategory/ICategory\";\nimport { IAnimalMonth } from \"../../../../../../@types/app/AnimalCategory/IMonths\";\nimport \"./styles.css\";\n\ntype TableVisualizationRow = {\n category: IAnimalCategory;\n month: IAnimalMonth;\n};\n\nexport function TableVisualizationRow({\n category: defaultcategory,\n month: defaultMonth,\n}: TableVisualizationRow) {\n const [category, setCategory] = useState(defaultcategory);\n const [{ weight }, setMonthProps] = useState(defaultMonth);\n\n useEffect(() => {\n setCategory(() => defaultcategory);\n setMonthProps(() => defaultMonth);\n }, [defaultcategory, defaultMonth]);\n\n return (\n
\n
{category.name}
\n
{category.age_description}
\n
\n {weight.value} {weight.unit}\n
\n
\n );\n}\n","import { ReactNode } from \"react\";\nimport Constants from \"../../../../../../constants/Index\";\nimport \"./styles.css\";\n\ntype TableEditContainerProps = {\n children: ReactNode | ReactNode[];\n};\n\nexport function TableEditContainer({ children }: TableEditContainerProps) {\n return (\n \n \n \n \n \n {Object.values(Constants.MONTHS_SHORT_NAME).map((month) => (\n \n ))}\n \n \n {children}\n
categoriaidade\n {month}\n
\n );\n}\n","import { useEffect, useState } from \"react\";\nimport { IAnimalCategory } from \"../../../../../@types/app/AnimalCategory/ICategory\";\nimport { IAnimalMonth } from \"../../../../../@types/app/AnimalCategory/IMonths\";\nimport { randomString } from \"../../../../../utils/uuid/radomString\";\nimport { TextInput } from \"../../../../Inputs/TextInputs/TextInput/Index\";\nimport \"./styles.css\";\n\ntype TextInputEditWeight = {\n monthProps: IAnimalMonth;\n evolutionName: string;\n category: IAnimalCategory;\n handleInputChanges?: (data?: HTMLInputElement) => void;\n onInputError?: (err?: string) => void;\n};\n\nexport function InputWeight({\n monthProps,\n category,\n evolutionName,\n handleInputChanges,\n onInputError,\n}: TextInputEditWeight) {\n const [error, setError] = useState(\"\");\n const [uuidInput, setUuidInput] = useState(\"\");\n\n function handleInputs(data?: HTMLInputElement) {\n if (data && handleInputChanges) {\n handleInputChanges(data);\n }\n }\n\n function handleErrorInput(err: string) {\n onInputError && onInputError(err);\n setError(err);\n }\n\n useEffect(() => {\n setUuidInput(`${evolutionName}-${category.name}-${randomString(4)}`.toLocaleLowerCase());\n }, [monthProps]);\n\n return (\n \n );\n}\n","export function randomString(length: number) {\n var result = \"\";\n var characters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n var charactersLength = characters.length;\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n}\n","import { Scope } from '@unform/core';\nimport { MutableRefObject, useEffect, useState } from 'react';\nimport { IAnimalCategory } from '../../../../../../@types/app/AnimalCategory/ICategory';\nimport { InputWeight } from '../../InputWeight/Index';\nimport './styles.css';\n\ntype TableEditRowProps = {\n category: IAnimalCategory;\n evolutionName: string;\n handleInputChanges?: (data?: HTMLInputElement) => void;\n inputsErrors?: (err: string) => void;\n inputError?: (err?: string) => void;\n formRef: MutableRefObject;\n};\n\nexport function TableEditRow({\n category: defaultCategory,\n evolutionName,\n handleInputChanges,\n inputError,\n formRef\n}: TableEditRowProps) {\n const [category, setCategory] = useState();\n\n useEffect(() => {\n setCategory(() => defaultCategory);\n setTimeout(() => {\n category?.month_evolution.map((monthProps, key) => {\n formRef.current?.setFieldValue(`categories[0].weights[0].value`, monthProps.weight.value);\n });\n }, 1);\n }, [defaultCategory]);\n\n function handleInputs(data?: HTMLInputElement) {\n if (data && handleInputChanges) {\n handleInputChanges(data);\n }\n }\n\n return (\n \n \n
\n

{category?.name}

\n
\n \n \n
\n

{category?.age_description}

\n
\n \n {category?.month_evolution.map((monthProps, key) => {\n return (\n \n \n inputError && inputError(err)}\n />\n \n \n );\n })}\n \n );\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgPenEdit(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: \"100%\",\n height: \"100%\",\n viewBox: \"0 0 18 18\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M1.11755 17.9859C1.06131 17.9944 1.00506 18 0.948817 18C0.698529 18 0.465115 17.9016 0.279508 17.7216C0.17066 17.6139 0.0897002 17.4813 0.0436386 17.3352C-0.00242298 17.1892 -0.0121983 17.0341 0.0151594 16.8834L0.844765 12.1528C0.856014 12.0966 0.881323 12.0459 0.923506 12.0037L12.8445 0.0815625C12.8979 0.028125 12.9683 0 13.0442 0C13.1201 0 13.1904 0.028125 13.2438 0.0815625L17.9178 4.75875C17.9438 4.78477 17.9645 4.81568 17.9786 4.8497C17.9927 4.88372 18 4.9202 18 4.95703C18 4.99387 17.9927 5.03034 17.9786 5.06436C17.9645 5.09839 17.9438 5.12929 17.9178 5.15531L5.99675 17.0775C5.95738 17.1197 5.90395 17.145 5.84771 17.1562L1.11755 17.9859ZM13.0442 2.89688L2.84425 13.095L2.40555 15.5981L4.90561 15.1566L15.1055 4.95844L13.0442 2.89688Z\",\n fill: \"#62B8AE\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgPenEdit);\nexport default __webpack_public_path__ + \"static/media/penEdit.d04ea30f.svg\";\nexport { ForwardRef as ReactComponent };","import \"./styles.css\";\n\nimport { ReactComponent as PenEdit } from \"../../../../../../assets/svg/icons/penEdit.svg\";\n\ntype TitleTableProps = {\n title: string;\n handleClick: () => void;\n onlyRead?: boolean,\n};\n\nexport function TitleTable({ title, handleClick, onlyRead = false }: TitleTableProps) {\n return (\n
\n

{`Evolução de ${title === \"MALE\" ? \"Macho\" : \"Fêmea\"}`}

\n {!onlyRead && \n \n }\n
\n );\n}\n","import { CgClose } from \"react-icons/cg\";\nimport \"./styles.css\";\n\ntype HeaderContentModalProps = {\n onEventClose: () => void;\n};\n\nexport function HeaderContentModal({ onEventClose }: HeaderContentModalProps) {\n return (\n
\n {\n onEventClose && onEventClose();\n }}\n >\n \n \n
\n );\n}\n","import { ButtonOnlyTitle } from \"../../../Buttons/ButtonOnlyTitle/Index\";\nimport \"./styles.css\";\n\ntype FooterContentModal = {\n onEventCancel?: () => void;\n onEventSuccess?: () => void;\n disableSuccesButton?: boolean;\n};\n\nexport function FooterContentModal({\n onEventCancel,\n onEventSuccess,\n disableSuccesButton = false,\n}: FooterContentModal) {\n return (\n
\n onEventCancel && onEventCancel()}\n />\n onEventSuccess && onEventSuccess()}\n />\n
\n );\n}\n","var _path, _path2;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgPositive(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 31,\n height: 30,\n viewBox: \"0 0 31 30\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.55078 15.75C3.55078 15.4545 3.60898 15.1619 3.72205 14.889C3.83513 14.616 4.00086 14.3679 4.20979 14.159C4.41872 13.9501 4.66676 13.7843 4.93974 13.6713C5.21273 13.5582 5.50531 13.5 5.80078 13.5C6.09626 13.5 6.38884 13.5582 6.66182 13.6713C6.9348 13.7843 7.18284 13.9501 7.39177 14.159C7.6007 14.3679 7.76644 14.616 7.87951 14.889C7.99258 15.1619 8.05078 15.4545 8.05078 15.75L8.05078 24.75C8.05078 25.3467 7.81373 25.919 7.39177 26.341C6.96981 26.7629 6.39752 27 5.80078 27C5.20404 27 4.63175 26.7629 4.20979 26.341C3.78783 25.919 3.55078 25.3467 3.55078 24.75L3.55078 15.75Z\",\n fill: \"#57CE71\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.55078 15.4995L9.55078 23.6445C9.55052 24.202 9.70561 24.7485 9.99865 25.2228C10.2917 25.6971 10.7111 26.0803 11.2098 26.3295L11.2848 26.367C12.1171 26.783 13.0348 26.9997 13.9653 27L22.0893 27C22.7831 27.0003 23.4555 26.7601 23.9921 26.3203C24.5287 25.8805 24.8963 25.2683 25.0323 24.588L26.8323 15.588C26.9193 15.1528 26.9086 14.7037 26.8011 14.2732C26.6936 13.8426 26.4919 13.4412 26.2105 13.098C25.9291 12.7548 25.5751 12.4783 25.174 12.2884C24.7728 12.0986 24.3346 12 23.8908 12L18.5508 12L18.5508 6C18.5508 5.20435 18.2347 4.44129 17.6721 3.87868C17.1095 3.31607 16.3464 3 15.5508 3C15.153 3 14.7714 3.15804 14.4901 3.43934C14.2088 3.72065 14.0508 4.10218 14.0508 4.5L14.0508 5.5005C14.0508 6.79872 13.6297 8.06192 12.8508 9.1005L10.7508 11.8995C9.97185 12.9381 9.55078 14.2013 9.55078 15.4995Z\",\n fill: \"#57CE71\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgPositive);\nexport default __webpack_public_path__ + \"static/media/positive.faf58365.svg\";\nexport { ForwardRef as ReactComponent };","import { CSSProperties, ReactNode, useEffect, useState } from \"react\";\n//@ts-ignore\nimport Rodal from \"rodal\";\nimport \"rodal/lib/rodal.css\";\nimport \"./styles.css\";\n\ntype AnimationModal =\n | \"zoom\"\n | \"fade\"\n | \"flip\"\n | \"door\"\n | \"rotate\"\n | \"slideUp\"\n | \"slideDown\"\n | \"slideLeft\"\n | \"slideRight\";\n\ntype ModalComponentProps = {\n children: ReactNode | ReactNode[];\n visible: boolean;\n contentStyle?: CSSProperties;\n animation?: AnimationModal;\n showMask?: boolean;\n};\n\nexport function Modal({\n animation = \"slideDown\",\n contentStyle,\n children,\n visible,\n showMask = true,\n}: ModalComponentProps) {\n const [showModal, setShowModal] = useState(false);\n useEffect(() => setShowModal(visible), [visible]);\n\n return (\n {}}\n showMask={showMask}\n >\n {children}\n \n );\n}\n","var _path, _path2;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgNegative(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 31,\n height: 30,\n viewBox: \"0 0 31 30\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.55078 14.25C3.55078 14.5455 3.60898 14.8381 3.72205 15.111C3.83513 15.384 4.00086 15.6321 4.20979 15.841C4.41872 16.0499 4.66676 16.2157 4.93974 16.3287C5.21273 16.4418 5.50531 16.5 5.80078 16.5C6.09626 16.5 6.38884 16.4418 6.66182 16.3287C6.9348 16.2157 7.18284 16.0499 7.39177 15.841C7.6007 15.6321 7.76644 15.384 7.87951 15.111C7.99258 14.8381 8.05078 14.5455 8.05078 14.25L8.05078 5.25C8.05078 4.65326 7.81373 4.08097 7.39177 3.65901C6.96982 3.23705 6.39752 3 5.80078 3C5.20405 3 4.63175 3.23705 4.20979 3.65901C3.78784 4.08097 3.55078 4.65326 3.55078 5.25L3.55078 14.25Z\",\n fill: \"#FF6161\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.55078 14.5005L9.55078 6.3555C9.55052 5.79801 9.70561 5.25146 9.99865 4.7772C10.2917 4.30293 10.7111 3.9197 11.2098 3.6705L11.2848 3.633C12.1171 3.21701 13.0348 3.0003 13.9653 3L22.0893 3C22.7831 2.99973 23.4555 3.23993 23.9921 3.67971C24.5287 4.11949 24.8963 4.73167 25.0323 5.412L26.8323 14.412C26.9193 14.8472 26.9086 15.2963 26.8011 15.7268C26.6936 16.1574 26.4919 16.5588 26.2105 16.902C25.9291 17.2452 25.5751 17.5217 25.174 17.7116C24.7728 17.9014 24.3346 18 23.8908 18L18.5508 18L18.5508 24C18.5508 24.7957 18.2347 25.5587 17.6721 26.1213C17.1095 26.6839 16.3464 27 15.5508 27C15.153 27 14.7714 26.842 14.4901 26.5607C14.2088 26.2794 14.0508 25.8978 14.0508 25.5L14.0508 24.4995C14.0508 23.2013 13.6297 21.9381 12.8508 20.8995L10.7508 18.1005C9.97185 17.0619 9.55078 15.7987 9.55078 14.5005Z\",\n fill: \"#FF6161\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgNegative);\nexport default __webpack_public_path__ + \"static/media/negative.c91674ce.svg\";\nexport { ForwardRef as ReactComponent };","import { CSSProperties, useEffect, useRef, useState } from \"react\";\nimport { SwiperSlide } from \"swiper/react\";\nimport { Scope } from \"@unform/core\";\nimport { Form } from \"@unform/web\";\nimport * as Yup from \"yup\";\nimport \"./styles.css\";\n\nimport Constants from \"../../../../constants/Index\";\nimport axios from \"../../../../services/axios\";\n\nimport { MdClose } from \"react-icons/md\";\n\nimport { TableVisualizationContainer } from \"../../../../components/Onboarding/CattleMap/CategoryAnimal/Table/VisualizationContainer/Index\";\nimport { TableVisualizationRow } from \"../../../../components/Onboarding/CattleMap/CategoryAnimal/Table/TableVisualizationRow/Index\";\nimport { TableEditContainer } from \"../../../../components/Onboarding/CattleMap/CategoryAnimal/Table/EditContainer/Index\";\nimport { TableEditRow } from \"../../../../components/Onboarding/CattleMap/CategoryAnimal/Table/EditRow/Index\";\nimport { TitleTable } from \"../../../../components/Onboarding/CattleMap/CategoryAnimal/Table/Title/Index\";\nimport { FooterControlls } from \"../../../../components/Onboarding/Template/FooterControlls/Index\";\nimport { HeaderContentModal } from \"../../../../components/Modal/Default/HeaderContentModal/Index\";\nimport { FooterContentModal } from \"../../../../components/Modal/Default/FooterContentModal/Index\";\nimport { AlertModal } from \"../../../../components/Modal/Alert/Index\";\nimport { Modal } from \"../../../../components/Modal/Default/Index\";\nimport {\n IAnimalEvolution,\n IAnimalEvolutions,\n} from \"../../../../@types/app/AnimalCategory/IEvolution\";\nimport { ReactComponent as PositiveIcon } from \"../../../../assets/svg/icons/positive.svg\";\nimport { ReactComponent as NegativeIcon } from \"../../../../assets/svg/icons/negative.svg\";\nimport { IEvolutionsOnboarding } from \"../../../../@types/Onboarding/IEvolution\";\nimport { useYupValidate } from \"../../../../hooks/useYupValidate\";\nimport { useOnboarding } from \"../../../../hooks/useOnboarding\";\nimport {\n IAnimalCategory,\n} from \"../../../../@types/app/AnimalCategory/ICategory\";\n\nconst schema = Yup.object().shape({\n categories: Yup.array().of(\n Yup.object().shape({\n weights: Yup.array().of(\n Yup.object().shape({\n value: Yup.number()\n .required(Constants.MESSAGE_REQUIRED_FIELD)\n .moreThan(29, Constants.MESSAGE_INVALID_WEIGHT)\n .typeError(Constants.MESSAGE_REQUIRED_FIELD),\n })\n ),\n })\n ),\n});\n\nconst contentStyleModal = {\n width: \"95%\",\n height: \"95vh\",\n maxWidth: \"1350px\",\n maxHeight: \"937px\",\n borderRadius: \"20px\",\n overflow: \"hidden\",\n padding: \"40px\",\n} as CSSProperties;\n\nconst contentStyleAlert = {\n width: \"335px\",\n height: \"237px\",\n borderRadius: \"20px\",\n} as CSSProperties;\n\ninterface AnimalCategoryProps {\n onlyRead?: boolean,\n}\n\nexport function AnimalCategory({\n onlyRead = false\n}: AnimalCategoryProps) {\n const { payload, setBlockNextStep, setPayload } = useOnboarding();\n\n // Referência do UNFORM\n const formRef = useRef(null);\n\n // Isso tem o objeto que esta sendo exibido no modal\n const [modalEvolution, setModalEvolution] = useState(null);\n\n // Isso diz ao botao do modal se está ou não ativo\n const [disableModalSuccess, setDisableModalSuccess] = useState(false);\n\n // Isso guarda a lista de evoluções ja no formato correto\n const [evolutionList, setEvolutionList] = useState([]);\n\n // Estado de aberto e fechado do modal\n const [visibleModal, setVisibleModal] = useState(false);\n\n // Isto diz o estado de visualização do modal\n const [visibleAlert, setVisibleAlert] = useState(false);\n\n // Isso diz qual o até qual mês o slider deve mostrar\n const [maxCategories, setMaxCategories] = useState(0);\n\n // Meses a serem mostrados na tabela\n const [months] = useState(Constants.MONTHS_FULL_NAME);\n\n // Isso diz o erro de qualquer input do modal\n const [errors, setErrors] = useState();\n\n const [prevData, setPrevData] = useState();\n\n // Isso verfica se existem alterações e devolve o vetor com as alterações\n function getChangesForm() {\n const categsForm: any = formRef.current?.getData().categories;\n const categories = categsForm.map(({ weights }: any) => ({ month: weights }));\n const categsEdited = modalEvolution?.categories.map((category, categInd) => {\n return category.month_evolution\n .map(({ month, weight }, index) => ({\n month,\n category_id: category.id,\n weight: { ...weight, value: categories[categInd].month[month - 1]?.value },\n }));\n });\n return categsEdited?.flat() || [];\n }\n\n // Isso lida com o fechamento do modal, se pode ou não fechar\n function handleEventCloseModal() {\n const haveChanges = getChangesForm().length > 0;\n if (haveChanges) setVisibleAlert(true);\n else toggleModalEdit(\"close\");\n }\n\n // se o usuário desejar isso descarta todas as alterações que o usuário fez\n async function handleDiscardChanges() {\n toggleModalEdit(\"close\");\n setModalEvolution(() => null);\n setVisibleAlert(false);\n formRef.current?.setData({categories: prevData});\n await validateForm();\n }\n\n function getPrevData(modalEvolution: IAnimalEvolution){\n return modalEvolution?.categories.map((value) => {\n const weights = value.month_evolution.map(value1 => {\n return {\n \"value\": value1.weight.value\n }\n });\n return {\n \"weights\": weights\n };\n })\n }\n\n // Isso lida com o toggle do modal\n function toggleModalEdit(action: \"open\" | \"close\", index?: number) {\n if (action === \"open\" && index !== undefined) {\n setModalEvolution(() => evolutionList[index]);\n setVisibleModal(true);\n const prevData = getPrevData(evolutionList[index]);\n setPrevData(prevData);\n } else {\n setVisibleModal(false);\n setModalEvolution(() => null);\n }\n }\n\n // Isso valida o formulário e bloqueia os botões do modal e de avançar\n async function validateForm() {\n const formData = formRef.current?.getData();\n const isFormValid = await useYupValidate(formRef, formData, schema);\n setDisableModalSuccess(!isFormValid);\n setBlockNextStep(!isFormValid);\n return isFormValid;\n }\n\n // Isso lida com as alterações dos inputs\n function handleChangesForm() {\n const newCategories = getChangesForm();\n handleDataObject(evolutionList, newCategories);\n toggleModalEdit(\"close\");\n // Atualiza o Contexto e tbm o Storage\n setPayload((payload) => {\n const oldPayload = payload.evolutions\n ? payload.evolutions.filter(\n (f) =>\n !newCategories?.some((p) => p.category_id === f.category_id && p.month === f.month)\n )\n : [];\n const response = { ...payload, evolutions: [...oldPayload, ...newCategories] };\n localStorage.setItem(Constants.LOCALSTORAGE_PAYLOAD, JSON.stringify(response));\n return response;\n });\n }\n\n // Isso pega qualquer modificação existente e aplica no vetor de categorias principal\n function handleDataObject(data: IAnimalEvolutions, modifications?: IEvolutionsOnboarding) {\n if(!onlyRead) {\n const payloadData = modifications ? modifications : payload.evolutions;\n const newEvolutions = data.map((evolution) => {\n const newCategory = evolution.categories.map((category) => {\n const monthUpdated = payloadData?.filter((f) => f.category_id === category.id);\n if (monthUpdated && monthUpdated.length > 0) {\n const months = category.month_evolution.map((month) => {\n const founded = monthUpdated.find((f) => f.month === month.month);\n return founded ? { ...month, weight: founded.weight } : month;\n });\n return { ...category, month_evolution: months };\n }\n return category;\n });\n return { ...evolution, categories: newCategory };\n });\n setEvolutionList(() => newEvolutions as IAnimalEvolutions);\n } \n }\n\n useEffect(() => {\n axios.get(\"/evolutions\").then(({ data }) => {\n if (data) {\n const categories = new Map();\n // Isso diz até qual mês pode ser renderizado o slider\n data.forEach((evolution: IAnimalEvolution) =>\n evolution.categories.forEach((category) => {\n categories.set(category.id, category);\n const categoryLenght = category.month_evolution.length;\n setMaxCategories((count) => (count < categoryLenght ? categoryLenght : count));\n })\n );\n\n if(!onlyRead) {\n setPayload((payload) => {\n const response = { ...payload, categories: categories };\n localStorage.setItem(Constants.LOCALSTORAGE_PAYLOAD, JSON.stringify(response));\n return response;\n });\n } else {\n setEvolutionList(data as IAnimalEvolutions)\n }\n\n //Verificamos a existencia de modificações no vetor de categorias\n handleDataObject(data);\n\n const prevData = getPrevData(evolutionList[0]);\n formRef.current?.setData({categories: prevData});\n validateForm().catch(console.error);\n }\n });\n }, []);\n\n return (\n <>\n {/* [INICIO] Modal de edição de Evolução */}\n \n {modalEvolution && (\n
\n
\n \n

\n Evolução de {modalEvolution.type === \"FEMALE\" ? \"Fêmea\" : \"Macho\"}\n

\n
\n
\n
\n
{}}>\n \n {modalEvolution.categories.map((category, key) => (\n \n setErrors(() => err)}\n formRef={formRef}\n />\n \n ))}\n \n
\n
\n {errors}\n
\n
\n \n
\n
\n )}\n
\n {/* [FIM] Modal de edição de Evolução */}\n\n {/* [INICIO] Modal de alerta para alterações no modal de edição */}\n \n
\n \n

{Constants.MESSAGE_MODAL_ALERT_TITLE}

\n

{Constants.MESSAGE_DISCARD_CHANGES}

\n
\n \n \n
\n
\n
\n {/* [FIm] Modal de alerta para alterações no modal de edição */}\n\n
\n
\n
\n

Categoria e Evolução Animal

\n {evolutionList.map((evolution, key) => {\n return (\n
\n toggleModalEdit(\"open\", key)}\n onlyRead={onlyRead}\n />\n \n {Object.values(months).map((month, monthKey) => {\n if (maxCategories > monthKey)\n return (\n \n {evolution.categories.map((category, categoryKey) => {\n category.month_evolution.sort((a, b) => (a.month < b.month) ? -1 : 1)\n if (category.month_evolution[monthKey])\n return (\n \n );\n })}\n \n );\n })}\n \n
\n );\n })}\n
\n
\n
\n {!onlyRead && \n
\n await validateForm()}\n backStepEvent={async () => await validateForm()}\n />\n
\n }\n \n );\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgTrashOnboarding(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 18,\n height: 20,\n viewBox: \"0 0 18 20\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1.89241 1.67999C1.54966 1.67999 1.22096 1.81485 0.978606 2.0549C0.736251 2.29494 0.600098 2.62052 0.600098 2.95999V4.23999C0.600098 4.57947 0.736251 4.90504 0.978606 5.14509C1.22096 5.38514 1.54966 5.51999 1.89241 5.51999H2.53856V17.04C2.53856 17.7189 2.81087 18.3701 3.29558 18.8502C3.78028 19.3303 4.43769 19.6 5.12317 19.6H12.877C13.5625 19.6 14.2199 19.3303 14.7046 18.8502C15.1893 18.3701 15.4616 17.7189 15.4616 17.04V5.51999H16.1078C16.4505 5.51999 16.7792 5.38514 17.0216 5.14509C17.2639 4.90504 17.4001 4.57947 17.4001 4.23999V2.95999C17.4001 2.62052 17.2639 2.29494 17.0216 2.0549C16.7792 1.81485 16.4505 1.67999 16.1078 1.67999H11.5847C11.5847 1.34052 11.4486 1.01494 11.2062 0.774897C10.9638 0.534851 10.6351 0.399994 10.2924 0.399994L7.70779 0.399994C7.36505 0.399994 7.03635 0.534851 6.79399 0.774897C6.55164 1.01494 6.41548 1.34052 6.41548 1.67999H1.89241ZM5.76933 6.79999C5.9407 6.79999 6.10505 6.86742 6.22623 6.98745C6.3474 7.10747 6.41548 7.27026 6.41548 7.43999V16.4C6.41548 16.5697 6.3474 16.7325 6.22623 16.8525C6.10505 16.9726 5.9407 17.04 5.76933 17.04C5.59796 17.04 5.43361 16.9726 5.31243 16.8525C5.19125 16.7325 5.12317 16.5697 5.12317 16.4V7.43999C5.12317 7.27026 5.19125 7.10747 5.31243 6.98745C5.43361 6.86742 5.59796 6.79999 5.76933 6.79999ZM9.0001 6.79999C9.17147 6.79999 9.33582 6.86742 9.457 6.98745C9.57817 7.10747 9.64625 7.27026 9.64625 7.43999V16.4C9.64625 16.5697 9.57817 16.7325 9.457 16.8525C9.33582 16.9726 9.17147 17.04 9.0001 17.04C8.82873 17.04 8.66438 16.9726 8.5432 16.8525C8.42202 16.7325 8.35394 16.5697 8.35394 16.4V7.43999C8.35394 7.27026 8.42202 7.10747 8.5432 6.98745C8.66438 6.86742 8.82873 6.79999 9.0001 6.79999ZM12.877 7.43999V16.4C12.877 16.5697 12.8089 16.7325 12.6878 16.8525C12.5666 16.9726 12.4022 17.04 12.2309 17.04C12.0595 17.04 11.8951 16.9726 11.774 16.8525C11.6528 16.7325 11.5847 16.5697 11.5847 16.4V7.43999C11.5847 7.27026 11.6528 7.10747 11.774 6.98745C11.8951 6.86742 12.0595 6.79999 12.2309 6.79999C12.4022 6.79999 12.5666 6.86742 12.6878 6.98745C12.8089 7.10747 12.877 7.27026 12.877 7.43999Z\",\n fill: \"#FF6161\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgTrashOnboarding);\nexport default __webpack_public_path__ + \"static/media/trashOnboarding.1b06b118.svg\";\nexport { ForwardRef as ReactComponent };","import { HTMLAttributes, ReactNode } from \"react\";\nimport \"./styles.css\";\n\ninterface ButtonWithTextProps extends HTMLAttributes {\n children: ReactNode;\n theme?: \"dark\" | \"info\" | \"light\" | \"success\" | \"dark\" | \"disabled\";\n}\n\nexport function ButtonWithChildren({ children, theme, ...rest }: ButtonWithTextProps) {\n return (\n \n );\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgFarmIcon(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 36,\n height: 36,\n viewBox: \"0 0 36 36\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M13.8002 2.40042C7.514 2.40042 2.39977 7.51414 2.39977 13.8002V34.8003H1.19995V13.8002C1.19995 6.85283 6.8518 1.20021 13.7999 1.20021C20.7479 1.20021 26.3999 6.85283 26.3999 13.8002V34.8003H25.1998V13.8002C25.1998 7.51401 20.0861 2.40042 13.8 2.40042H13.8002ZM18.5998 14.4H9.00009C8.66887 14.4 8.40018 14.1318 8.40018 13.8C8.40018 10.8223 10.823 8.40006 13.8002 8.40006C16.7774 8.40006 19.2001 10.8223 19.2001 13.8C19.2001 14.1318 18.9312 14.4 18.6 14.4H18.5998ZM31.1999 0C28.5534 0 26.4001 2.15356 26.4001 4.80007V8.18232C24.2443 3.36618 19.4097 6.42855e-05 13.8002 6.42855e-05C6.19069 6.42855e-05 0 6.19031 0 13.8002V35.4002C0 35.7319 0.268694 36.0001 0.599912 36.0001H5.99989V21.0003C5.99989 20.9225 6.01622 20.8444 6.0461 20.7711C6.10687 20.6242 6.22389 20.5071 6.37079 20.4466C6.44387 20.416 6.52197 20.4004 6.60006 20.4004H21C21.0779 20.4004 21.156 20.416 21.229 20.4466C21.3762 20.5071 21.4932 20.6242 21.5537 20.7711C21.5836 20.8444 21.5999 20.9225 21.5999 21.0003V36.0001H35.4001C35.7318 36.0001 36 35.7319 36 35.4002V33.6002H32.9999C32.6682 33.6002 32.4 33.332 32.4 33.0003C32.4 32.6685 32.6682 32.4001 32.9999 32.4001H36V31.2003H32.9999C32.6682 31.2003 32.4 30.9321 32.4 30.6001C32.4 30.2684 32.6682 30.0002 32.9999 30.0002H36V16.8004H30.6C30.2683 16.8004 30.0001 16.5323 30.0001 16.2003V12.6003C30.0001 12.2686 30.2683 12.0004 30.6 12.0004H36V10.8003H30.6C30.2683 10.8003 30.0001 10.5321 30.0001 10.2004V6.6004C30.0001 6.26868 30.2683 6.00049 30.6 6.00049H36V4.80041C36 2.1539 33.8467 0.000340713 31.1999 0.000340713\",\n fill: \"#57CE71\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgFarmIcon);\nexport default __webpack_public_path__ + \"static/media/farmIcon.2cfe4d9a.svg\";\nexport { ForwardRef as ReactComponent };","import {\n SetStateAction,\n createContext,\n useCallback,\n RefObject,\n ReactNode,\n Dispatch,\n useState,\n useEffect,\n} from \"react\";\n\nimport { ICoord, ICoords } from \"../@types/GoogleMaps/ICoord\";\nimport { IExistingMaps } from \"../@types/GoogleMaps/IExistingMaps\";\nimport { IPositionProps, IPositionsProps } from \"../@types/GoogleMaps/IPositionProps\";\nimport { IToolsMode } from \"../@types/GoogleMaps/ToolsMode\";\n\nexport type CustomUseStateProps = [generic: T[], setGeneric: Dispatch>];\n\nexport type CustomSetStateProps = [setGeneric: Dispatch>];\n\nexport type PositionProps = {\n uuid: string;\n coords: ICoords;\n};\n\nexport type PastureProps = {\n uuid: string;\n coords: ICoords;\n amountMobs: number;\n subsuper: string;\n};\n\nexport type ListMarkersProps = {\n uuid: string;\n coords: ICoord;\n};\n\nexport type PolygonPropsCoord = {\n uuid: string;\n coords: ICoord;\n};\n\nexport type ReferencesProps = {\n uuid: string;\n component: RefObject;\n};\n\nexport type CustomPolygonProps = google.maps.Polygon;\n\nexport type CustomPolylineProps = google.maps.Polyline;\n\nexport type ViewMap = \"all\" | \"farm\" | \"retreat\" | \"pasture\";\n\nexport type PendingTasksProps = {\n coords: ICoords;\n uuid: string;\n};\n\ntype GoogleMapsProps = {\n children: ReactNode;\n value: {\n mapLoad: boolean;\n };\n};\n\nexport type ManagerViewMap = {\n zoom: number;\n center: ICoord;\n};\n\ntype GoogleMapsContextData = {\n // Diz qual o zoom atual do mapa\n currentZoom: number;\n // Define o zoom atual do mapa\n setCurrentZoom: Dispatch>;\n\n // Diz se o mapa foi ou não carregado\n mapLoaded: boolean;\n // Define se o mapa foi ou não carregado\n setMapLoaded: Dispatch>;\n\n // Diz qual a posição que o mapa deve exibir\n currentPosition: ICoord;\n // Define qual a posição que o mapa deve exibir\n setCurrentPosition: Dispatch>;\n\n // Isso tem a referência do componente de Mapa\n mapRef: google.maps.Map | null;\n // Isso define a referência do componente de Mapa\n setMapRef: Dispatch>;\n\n // Diz qual o modo de ferramenta ativo no momento\n toolMode: IToolsMode;\n // Isto define o modo de ferramenta ativo no momento\n setToolMode: Dispatch>;\n\n // Diz as cordenadas de um novo polígono\n newPolygon: IPositionProps;\n // Isto define as cordenadas de um novo polígono\n setNewPolygon: Dispatch>;\n\n existingMaps: IExistingMaps;\n // Isto define as cordenadas de um novo polígono\n setExistingMaps: Dispatch>;\n\n polygonSelected: string;\n\n listMarkers: Array;\n\n pointSelected: PolygonPropsCoord | undefined;\n\n managerTypeViewMap: string;\n\n visibilityAreas: Array;\n\n optionsSelected: object;\n\n managerViewMap: ManagerViewMap;\n // Event é o evento disparado pelo mouse\n getGeoposition: (event: google.maps.MapMouseEvent) => ICoord;\n\n setPolygonSelected: Dispatch>;\n\n setlistMarkers: Dispatch>>;\n\n setPointSelected: Dispatch>;\n setManagerViewMap: Dispatch>;\n setManagerTypeViewMap: Dispatch>;\n setVisibilityAreas: Dispatch>>;\n\n // Isto edita um polygono quando passada a referência dele\n onEditPoint: (polygon: RefObject) => ICoords;\n\n onCreatePoint: (\n argsGeneric: CustomSetStateProps,\n //state a ser modificado\n coords: ICoord\n //coordenadas a serem adicionadas\n ) => void;\n\n onRemovePoint: (\n arrayCoords: ICoords,\n //state a ser modificado\n coords: ICoord\n //coordenadas a serem removidas\n ) => ICoords;\n\n // Isto pega o centro de um poligono\n getCenterPolygon: (coords: ICoords) => ICoord;\n // Isto pega um array de coordenadas e centraliza na tela\n fitBoundsPolygon: (coords: ICoords) => ICoord;\n getBounds: (coords: ICoords) => google.maps.LatLngBounds;\n};\n\nconst GoogleMapsContext = createContext({} as GoogleMapsContextData);\n\nfunction GoogleMapsProvider({ children, value }: GoogleMapsProps) {\n // Diz qual o zoom atual do mapa\n const [currentZoom, setCurrentZoom] = useState(14);\n // Diz qual a posição atual do mapa\n const [currentPosition, setCurrentPosition] = useState();\n // Diz se o Mapa ou componentes do Mapa estão prontos para serem exibidos\n const [mapLoaded, setMapLoaded] = useState(false);\n\n const [mapRef, setMapRef] = useState(null);\n\n // Define a funcionalidade que esta ativa no momento\n const [toolSelected, setToolSelected] = useState(\"explore\");\n\n // Isto armazena um novo polígono caso criado\n const [newPolygon, setNewPolygon] = useState({ uuid: \"\", coords: [] });\n\n const [existingMaps, setExistingMaps] = useState([]);\n\n const [polygonSelected, setPolygonSelected] = useState(\"\");\n\n const [listMarkers, setlistMarkers] = useState>([]);\n\n const [managerViewMap, setManagerViewMap] = useState({} as ManagerViewMap);\n\n const [managerTypeViewMap, setManagerTypeViewMap] = useState(\"all\");\n\n const [visibilityAreas, setVisibilityAreas] = useState>([true, true, true]);\n\n const [pointSelected, setPointSelected] = useState({\n uuid: \"\",\n coords: {} as ICoord,\n });\n\n const [optionsSelected] = useState({\n strokeColor: \"#FF9900\",\n fillColor: \"#FF9900\",\n strokeOpacity: 1,\n fillOpacity: 0.5,\n strokeWeight: 4,\n });\n\n // Função que adiciona um novo ponto no state passado\n const onCreatePoint = useCallback(\n (argsGeneric: CustomSetStateProps, coords: ICoord) => {\n const [setGenericState] = argsGeneric;\n setGenericState((prevState) => [...prevState, coords] as T[]);\n },\n []\n );\n\n // Função que remove um ponto no state passado\n const onRemovePoint = useCallback((arrayCoords: ICoords, coords: ICoord) => {\n const response = arrayCoords.filter(\n (coord) => coord.lat != coords.lat && coord.lng != coords.lng\n );\n return response;\n }, []);\n\n // Função que edita um poligono existente\n const onEditPoint = useCallback((polygon: RefObject) => {\n const polygonRef = polygon;\n if (polygonRef.current) {\n return polygonRef.current\n .getPath()\n .getArray()\n .map((latLng) => {\n return { lat: latLng.lat(), lng: latLng.lng() };\n });\n }\n }, []);\n\n //Função que devolve as coordenadas de um clique\n const getGeoposition = useCallback((event: google.maps.MapMouseEvent) => {\n const lat = event.latLng?.lat();\n const lng = event.latLng?.lng();\n return { lat, lng } as ICoord;\n }, []);\n\n // Função que devolve o centro de um poligono\n function getCenterPolygon(coords: ICoords) {\n var bounds = new google.maps.LatLngBounds();\n coords.forEach((cood) => {\n bounds.extend(cood);\n });\n const { lat, lng } = bounds.getCenter();\n\n return { lat: lat(), lng: lng() };\n }\n\n function getBounds(coords: ICoords) {\n var bounds = new google.maps.LatLngBounds();\n coords.forEach((cood) => {\n bounds.extend(cood);\n });\n return bounds;\n }\n\n // Função que devolve o centro de um poligono\n function fitBoundsPolygon(coords: ICoords) {\n var bounds = new google.maps.LatLngBounds();\n coords.forEach((cood) => {\n bounds.extend(cood);\n });\n const { lat, lng } = bounds.getCenter();\n mapRef?.fitBounds(bounds);\n return { lat: lat(), lng: lng() };\n }\n\n // Isto monitora os valores passados como default para o contexto\n useEffect(() => {\n setMapLoaded(value.mapLoad);\n }, [value]);\n\n useEffect(() => {\n navigator.geolocation.getCurrentPosition(({ coords }) =>\n setCurrentPosition(() => ({ lat: coords.latitude, lng: coords.longitude }))\n );\n }, []);\n\n return (\n \n {children}\n \n );\n}\n\nexport { GoogleMapsProvider, GoogleMapsContext };\n","import { useContext } from 'react';\nimport { GoogleMapsContext } from '../contexts/GoogleMapsContext';\n\nexport function useGoogleMaps() {\n const value = useContext(GoogleMapsContext)\n return value\n}","import { GoogleMap } from \"@react-google-maps/api\";\nimport { CSSProperties, ReactNode, useCallback, useEffect, useState } from \"react\";\nimport \"./styles.css\";\nimport { ICoord } from \"../../../@types/GoogleMaps/ICoord\";\nimport { useGoogleMaps } from \"../../../hooks/useGoogleMaps\";\nimport { generateuuid } from \"../../../utils/uuid/generate\";\n\ntype MapProps = {\n children?: ReactNode;\n currentCoords?: ICoord;\n zoomControl?: boolean;\n bounds?: google.maps.LatLngBounds;\n fitBounds?: ICoord[];\n onClick?: (event: google.maps.MapMouseEvent) => void;\n};\n\nconst mapStyles = {\n width: \"100%\",\n height: \"100%\",\n} as CSSProperties;\n\nexport function Map({ children, currentCoords, onClick, zoomControl = true, bounds, fitBounds }: MapProps) {\n const {\n toolMode,\n getGeoposition,\n setNewPolygon,\n currentZoom,\n currentPosition,\n mapLoaded,\n getBounds,\n } = useGoogleMaps();\n\n const [mapref, setMap] = useState();\n\n const [defaultCoords, setDefaultCoords] = useState(undefined);\n\n const [framesLoaded, setFramesLodaded] = useState(false);\n\n // Isso lida com o clique no mapa\n function onClickMouse(event: google.maps.MapMouseEvent) {\n onClick && onClick(event);\n if (toolMode === \"draw\")\n setNewPolygon((prev) => {\n return {\n uuid: prev.uuid ? prev.uuid : generateuuid(),\n coords: [...prev.coords, getGeoposition(event)],\n };\n });\n }\n\n // Isso faz o primeiro carregamento do mapa\n const onLoad = useCallback(function callback(map: any) {\n setMap(map);\n }, []);\n\n useEffect(() => setDefaultCoords(currentCoords), [currentCoords]);\n\n useEffect(() => {\n if (fitBounds !== undefined && mapref !== undefined) {\n mapref.fitBounds(getBounds(fitBounds))\n }\n }, [fitBounds, mapref])\n\n // Enquanto o mapa não estiver carregado não exibimos\n if (!mapLoaded) return <>;\n\n return (\n mapLoaded && (\n setFramesLodaded(true)}\n onUnmount={() => setFramesLodaded(false)}\n >\n {framesLoaded && children}\n \n )\n );\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgAreaIcon(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 36 34\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M27.5999 17.4355L29.8912 14.3808V20.5063L27.5999 17.4355ZM29.2799 13.1588H24.3924L26.836 16.4171L29.2799 13.1588ZM23.7816 14.3805V20.5345L26.0729 17.4351L23.7816 14.3805ZM7.32183 33.576H0.000499718V32.2281H6.71719L8.86366 30.0816L0.000214165 30.0819V28.7005H10.1958V28.7487L12.3905 26.554L0 26.5543V25.1734H13.7627V25.1824L15.9842 22.9608L0.000142777 22.9605V21.7122H3.95459V19.9639C3.1086 19.8271 2.46075 19.0992 2.46075 18.2142L2.46047 11.1046C2.46047 9.88615 3.44817 8.89873 4.66637 8.89873C5.88485 8.89873 6.87227 9.88643 6.87227 11.1046V18.2142C6.87227 19.1681 6.11921 19.9404 5.17586 19.9842V21.7121H10.6607V19.9638C9.81473 19.8271 9.16688 19.0992 9.16688 18.2141V11.1046C9.16688 9.88608 10.1546 8.89866 11.3728 8.89866C12.5913 8.89866 13.5787 9.88636 13.5787 11.1046V18.2141C13.5787 19.168 12.8256 19.9404 11.8823 19.9842V21.7121H17.6707V6.4937L27.2534 0.199997L35.9997 6.47755V22.9609H33.3301L22.7146 33.5765H20.7623L31.3779 22.9609H28.225L17.6094 33.5765H15.6571L26.272 22.9609H23.0943L12.4795 33.5765H10.5272L21.1421 22.9609H17.9365L7.32183 33.576ZM25.6144 8.89847H28.058V5.8438L25.6144 5.84352V8.89847ZM22.5595 21.7119H24.4144L26.8362 18.4536L29.2798 21.7119H31.1126V11.937H22.5592L22.5595 21.7119ZM36 23.6223L26.0466 33.5757H27.9988L35.9994 25.5751V23.6223H36ZM31.1845 33.5757H33.1368L35.9994 30.713L35.9997 28.7602L31.1845 33.5757Z\",\n fill: \"#57CE71\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgAreaIcon);\nexport default __webpack_public_path__ + \"static/media/areaIcon.d89d540c.svg\";\nexport { ForwardRef as ReactComponent };","import { ElementType } from \"react\";\nimport \"./styles.css\";\ntype LabelIconProps = {\n Icon: ElementType;\n label?: string;\n};\n\nexport function LabelIcon({ label, Icon }: LabelIconProps) {\n return (\n
\n \n

{label}

\n
\n );\n}\n","import { InfoBox, Polyline } from \"@react-google-maps/api\";\nimport \"./styles.css\";\n\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { useGoogleMaps } from \"../../../../hooks/useGoogleMaps\";\nimport { LabelIcon } from \"../LabelIcon/Index\";\nimport { IPositionProps } from \"../../../../@types/GoogleMaps/IPositionProps\";\n\ntype FixedAreasProps = {\n area: IPositionProps;\n farmInitials?: string;\n areaInitials?: string;\n};\n\nexport function FixedAreas({ area, farmInitials, areaInitials }: FixedAreasProps) {\n const { getCenterPolygon } = useGoogleMaps();\n const areasConfigs = {\n strokeColor: \"#fff\",\n strokeOpacity: 1,\n strokeWeight: 3,\n };\n\n return area && area.coords.length > 0 ? (\n <>\n \n \n
\n \n
\n \n \n ) : (\n <>\n );\n}\n","import { HTMLAttributes, MouseEvent, ReactNode } from \"react\";\nimport { IToolsMode } from \"../../../../@types/GoogleMaps/ToolsMode\";\nimport { useGoogleMaps } from \"../../../../hooks/useGoogleMaps\";\nimport \"./styles.css\";\n\ninterface ToolOptionProps extends HTMLAttributes {\n theme: \"normal\" | \"success\";\n noSelectable?: boolean;\n defaultMode: IToolsMode;\n children: ReactNode;\n title?: string;\n}\n\nexport function ToolOption({\n noSelectable = false,\n defaultMode,\n children,\n theme,\n title,\n ...rest\n}: ToolOptionProps) {\n const { toolMode, setToolMode } = useGoogleMaps();\n\n function handleOnclick(event: MouseEvent) {\n !noSelectable && setToolMode(defaultMode);\n rest.onClick && rest.onClick(event);\n }\n\n return (\n \n {children}\n {title}\n \n );\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgCheck(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 11,\n height: 9,\n viewBox: \"0 0 11 9\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.7125 0.712483C8.88858 0.544844 9.12291 0.452167 9.36602 0.454006C9.60914 0.455846 9.84203 0.552059 10.0156 0.722343C10.1891 0.892627 10.2897 1.12366 10.2961 1.3667C10.3025 1.60974 10.2143 1.84577 10.05 2.02498L5.0625 8.26248C4.97674 8.35486 4.87323 8.42899 4.75816 8.48044C4.6431 8.5319 4.51884 8.55962 4.39281 8.56195C4.26679 8.56429 4.14159 8.54118 4.02469 8.49402C3.9078 8.44687 3.80162 8.37662 3.7125 8.28748L0.404999 4.97998C0.31289 4.89416 0.239012 4.79066 0.187772 4.67566C0.136533 4.56066 0.10898 4.43652 0.106759 4.31064C0.104538 4.18476 0.127694 4.05972 0.174845 3.94299C0.221997 3.82625 0.292177 3.72021 0.381201 3.63119C0.470224 3.54216 0.576267 3.47198 0.693002 3.42483C0.809737 3.37768 0.934774 3.35452 1.06065 3.35674C1.18653 3.35896 1.31067 3.38652 1.42567 3.43776C1.54067 3.489 1.64417 3.56288 1.73 3.65498L4.3475 6.27123L8.68875 0.739984C8.69657 0.73036 8.70491 0.721178 8.71375 0.712483H8.7125Z\",\n fill: \"#62B8AE\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgCheck);\nexport default __webpack_public_path__ + \"static/media/check.b4da0e19.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgTrash(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 15,\n viewBox: \"0 0 14 15\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1.59173 0.983333C1.33094 0.983333 1.08082 1.08693 0.89641 1.27135C0.711999 1.45576 0.608398 1.70587 0.608398 1.96667V2.95C0.608398 3.2108 0.711999 3.46091 0.89641 3.64532C1.08082 3.82973 1.33094 3.93333 1.59173 3.93333H2.0834V12.7833C2.0834 13.3049 2.2906 13.8052 2.65942 14.174C3.02824 14.5428 3.52847 14.75 4.05007 14.75H9.95007C10.4717 14.75 10.9719 14.5428 11.3407 14.174C11.7095 13.8052 11.9167 13.3049 11.9167 12.7833V3.93333H12.4084C12.6692 3.93333 12.9193 3.82973 13.1037 3.64532C13.2881 3.46091 13.3917 3.2108 13.3917 2.95V1.96667C13.3917 1.70587 13.2881 1.45576 13.1037 1.27135C12.9193 1.08693 12.6692 0.983333 12.4084 0.983333H8.96673C8.96673 0.722537 8.86313 0.472422 8.67872 0.288012C8.49431 0.103601 8.24419 0 7.9834 0L6.01673 0C5.75594 0 5.50582 0.103601 5.32141 0.288012C5.137 0.472422 5.0334 0.722537 5.0334 0.983333H1.59173ZM4.54173 4.91667C4.67213 4.91667 4.79719 4.96847 4.88939 5.06067C4.9816 5.15288 5.0334 5.27794 5.0334 5.40833V12.2917C5.0334 12.4221 4.9816 12.5471 4.88939 12.6393C4.79719 12.7315 4.67213 12.7833 4.54173 12.7833C4.41133 12.7833 4.28628 12.7315 4.19407 12.6393C4.10187 12.5471 4.05007 12.4221 4.05007 12.2917V5.40833C4.05007 5.27794 4.10187 5.15288 4.19407 5.06067C4.28628 4.96847 4.41133 4.91667 4.54173 4.91667ZM7.00007 4.91667C7.13046 4.91667 7.25552 4.96847 7.34773 5.06067C7.43993 5.15288 7.49173 5.27794 7.49173 5.40833V12.2917C7.49173 12.4221 7.43993 12.5471 7.34773 12.6393C7.25552 12.7315 7.13046 12.7833 7.00007 12.7833C6.86967 12.7833 6.74461 12.7315 6.6524 12.6393C6.5602 12.5471 6.5084 12.4221 6.5084 12.2917V5.40833C6.5084 5.27794 6.5602 5.15288 6.6524 5.06067C6.74461 4.96847 6.86967 4.91667 7.00007 4.91667ZM9.95007 5.40833V12.2917C9.95007 12.4221 9.89826 12.5471 9.80606 12.6393C9.71385 12.7315 9.5888 12.7833 9.4584 12.7833C9.328 12.7833 9.20294 12.7315 9.11074 12.6393C9.01853 12.5471 8.96673 12.4221 8.96673 12.2917V5.40833C8.96673 5.27794 9.01853 5.15288 9.11074 5.06067C9.20294 4.96847 9.328 4.91667 9.4584 4.91667C9.5888 4.91667 9.71385 4.96847 9.80606 5.06067C9.89826 5.15288 9.95007 5.27794 9.95007 5.40833Z\",\n fill: \"#62B8AE\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgTrash);\nexport default __webpack_public_path__ + \"static/media/trash.b38e54ab.svg\";\nexport { ForwardRef as ReactComponent };","import { ToolOption } from \"../../ToolBox/Option/Index\";\nimport \"./styles.css\";\nimport { BsHandIndexThumbFill } from \"react-icons/bs\";\nimport { IoAnalyticsOutline } from \"react-icons/io5\";\nimport { ReactComponent as CheckIcon } from \"../../../../assets/svg/icons/check.svg\";\nimport { ReactComponent as TrashIcon } from \"../../../../assets/svg/icons/trash.svg\";\nimport { CSSProperties } from \"react\";\n\ntype IToolBar = {\n handleSuccess?: () => void;\n handleDiscardChanges?: () => void;\n style?: CSSProperties;\n hiddenExploreButton?: boolean;\n hiddenDrawButton?: boolean;\n label?: string\n};\n\nexport function ToolBar({ handleSuccess, handleDiscardChanges, style, ...props }: IToolBar) {\n\n const discardChanges = () => handleDiscardChanges && handleDiscardChanges();\n const handleClickSuccess = () => handleSuccess && handleSuccess();\n\n return (\n
\n

{props.label !== undefined ? props.label : 'Editar arquivo'}

\n
\n {!props.hiddenExploreButton && <>\n \n \n \n }\n\n {!props.hiddenDrawButton && <>\n \n \n \n }\n\n \n \n \n \n \n \n
\n
\n );\n}\n","import { generateuuid } from \"../../utils/uuid/generate\";\nimport { ICoords } from \"./ICoord\";\n\nexport type IPositionProps = {\n uuid: string;\n coords: ICoords;\n};\n\nexport interface IPositionsProps extends Array {}\n\nexport const baseIPositionProps = { uuid: generateuuid(), coords: [] };\n","import { Polygon, Polyline } from \"@react-google-maps/api\";\nimport { useField } from \"@unform/core\";\nimport useEventListener from \"@use-it/event-listener\";\nimport { ReactNode, useEffect, useRef, useState } from \"react\";\nimport \"./styles.css\";\nimport { ReactComponent as FarmIcon } from \"../../../../assets/svg/icons/farmIcon.svg\";\nimport { Map } from \"../../Map/Index\";\nimport { FixedAreas } from \"../FixedAreas/Index\";\nimport { LabelIcon } from \"../LabelIcon/Index\";\nimport { ToolBar } from \"../ToolBar/Index\";\nimport { IFarm } from \"../../../../@types/app/IFarm\";\nimport { ICoord } from \"../../../../@types/GoogleMaps/ICoord\";\nimport { baseIPositionProps, IPositionProps } from \"../../../../@types/GoogleMaps/IPositionProps\";\nimport Constants from \"../../../../constants/Index\";\nimport { CustomPolygonProps } from \"../../../../contexts/GoogleMapsContext\";\nimport { useGoogleMaps } from \"../../../../hooks/useGoogleMaps\";\nimport { generateuuid } from \"../../../../utils/uuid/generate\";\n\ntype CreateAreaProps = {\n onHandleSuccess?: (polygon?: IPositionProps) => void;\n getMessageError?: (error: string) => void;\n onHandleValidate?: () => void;\n onHandleDiscardChanges?: () => void;\n labelContainerMap?: string;\n children?: ReactNode;\n farm?: IFarm;\n area?: IPositionProps;\n areas?: any;\n fixedlastName?: string;\n};\n\nexport function DrawPolygon({\n labelContainerMap,\n getMessageError,\n onHandleSuccess,\n farm,\n area,\n onHandleValidate,\n onHandleDiscardChanges,\n}: CreateAreaProps) {\n const {\n setPointSelected,\n getCenterPolygon,\n getGeoposition,\n pointSelected,\n onRemovePoint,\n onEditPoint,\n setToolMode,\n toolMode,\n setExistingMaps,\n existingMaps,\n } = useGoogleMaps();\n\n // Manipulador de eventos do teclado\n useEventListener(\"keydown\", handlerKeyboard);\n\n // Referência do componente\n const polygonRef = useRef(null);\n const textareaRef = useRef(null);\n\n const [centerMap, setCenterMap] = useState();\n\n const [polygon, setPolygon] = useState(baseIPositionProps);\n\n // Armazena o componente para depois ser repassado para a referência\n const [polygonComponet, setPolygonComponet] = useState(null);\n\n // Isto define as configurações iniciais do polígono e a referência\n useEffect(() => {\n if (polygonComponet && polygonRef) {\n polygonRef.current = polygonComponet;\n }\n }, [polygonComponet, polygonRef]);\n\n const { fieldName, registerField, error } = useField(\"map_coords\");\n\n useEffect(() => {\n registerField({\n name: fieldName,\n ref: textareaRef,\n getValue: (ref) => {\n const value = ref.current.value;\n if (value && typeof value === \"string\") {\n const parser = JSON.parse(value);\n return parser;\n } else return { uuid: \"\", coords: [] };\n },\n setValue: (ref, value: any) => {\n new Promise((resolve) => {\n setPolygon({ uuid: generateuuid(), coords: [] });\n if (value) {\n const exists = existingMaps.filter((e) => e.uuid === value.uuid);\n setPolygon({\n ...value,\n uuid: !!exists ? generateuuid() : value.uuid,\n } as IPositionProps);\n }\n ref.current.value = JSON.stringify(value) || \"\";\n resolve(value);\n }).then(() => {\n onHandleValidate && onHandleValidate();\n });\n },\n });\n }, [fieldName, registerField]);\n\n useEffect(() => getMessageError && getMessageError(error as string), [error]);\n\n // Isto Manipula as ações de teclado\n function handlerKeyboard({ key }: KeyboardEvent) {\n const DELETE_KEYS = [\"Delete\", \"Backspace\"];\n\n if (DELETE_KEYS.includes(String(key))) {\n if (pointSelected) {\n const newArea = onRemovePoint(polygon.coords, pointSelected.coords);\n setPolygon((prevState) => {\n return { ...prevState, coords: newArea };\n });\n setPointSelected(undefined);\n }\n }\n }\n\n function onMouseUp(event: google.maps.MapMouseEvent) {\n const coordsEdited = onEditPoint(polygonRef);\n const coords = getGeoposition(event);\n // Diz ao contexto qual ponto foi selecionado\n setPointSelected(() => {\n return { uuid: polygon.uuid, coords };\n });\n // Repassa o novo poligono editado pro contexto\n setPolygon((prevState) => {\n return { uuid: prevState.uuid, coords: coordsEdited };\n });\n }\n\n useEffect(() => {\n if (farm && farm.map_coords) {\n setCenterMap(getCenterPolygon(farm.map_coords));\n }\n }, [farm]);\n\n useEffect(() => {\n if (area && area.coords) {\n setCenterMap(getCenterPolygon(area.coords));\n }\n }, [area]);\n\n const handleSuccess = () => {\n setExistingMaps((maps) => {\n const filtered = maps.filter((map) => map.uuid !== polygon.uuid);\n return [...filtered, polygon];\n });\n onHandleSuccess && onHandleSuccess(polygon);\n };\n\n useEffect(() => {\n setPolygon(() => ({ uuid: generateuuid(), coords: [] }));\n }, []);\n\n function onClickMouse(event: google.maps.MapMouseEvent) {\n if (toolMode === \"draw\")\n setPolygon((prev) => {\n const response = {\n ...prev,\n coords: [...prev.coords, getGeoposition(event)],\n };\n\n return response;\n });\n }\n\n function discardChanges() {\n setPolygon((prev) => ({ ...prev, coords: [] }));\n if (textareaRef && textareaRef.current) textareaRef.current.value = \"\";\n onHandleDiscardChanges && onHandleDiscardChanges();\n }\n\n useEffect(() => {\n if (polygon.coords.length > 0 && textareaRef && textareaRef.current)\n textareaRef.current.value = JSON.stringify(polygon);\n }, [polygon]);\n\n return (\n <>\n
\n \n \n );\n\n case \"PRODUCT_INCOMING\":\n return (\n <>\n
\n
\n {\n handleFarmChange(ev);\n }}\n options={farmOptions ?? []}\n ref={farmRef}\n placeholder=\"Selecionar fazenda\"\n label={getFarmLabel()}\n defaultValue={currentFarm}\n />\n
\n \n
\n {\n setCurrentResponsible(\n allResponsibles?.find((resp) => resp.value === ev)\n );\n }}\n />\n
\n
\n \n );\n\n default:\n return (\n <>\n
\n
\n {\n handleFarmChange(ev);\n }}\n options={farmOptions ?? []}\n ref={farmRef}\n placeholder=\"Selecionar fazenda\"\n label={getFarmLabel()}\n defaultValue={currentFarm}\n />\n
\n
\n handleAreaChange(ev)}\n options={areaOptions ?? []}\n ref={areaRef}\n label={getAreaLabel()}\n placeholder=\"Selecionar retiro...\"\n defaultValue={currentArea}\n />\n
\n
\n \n
\n
\n handleMicroAreaChange(ev)}\n defaultOption={currentMicroArea}\n ref={microAreaRef}\n options={microAreaOptionsFiltered()}\n placeHolder=\"pesquisar pasto ou piquete...\"\n />\n
\n
\n
\n {!(fitCoords.length > 0) ? (\n \n ) : (\n currentArea ? micro.area_id == currentArea?.value : true)\n .map(micro => micro.map_coords || []) :\n []\n }\n fitCoords={fitCoords}\n allMicroAreas={\n allMicroAreas ?\n allMicroAreas\n .filter(micro => currentArea ? micro.area_id == currentArea?.value : true) :\n []\n }\n setMicroAreaSelected={(e) => {\n if (currentArea?.value != e?.area_id)\n handleAreaChange(e?.area_id)\n else\n handleMicroAreaChange(e?.id)\n }}\n />\n )}\n
\n \n );\n }\n }\n\n return (\n
\n {needProduct ? (\n \n
\n
\n

Cadastre um produto!

\n closeModal()} />\n Você ainda não cadastrou um produto para criar essa tarefa, você pode criar através do gerenciamento do sistema.\n
\n\n
\n onGoBack()}\n />\n {\n setSystemManager(\"PRODUCTS\");\n onClose();\n }}\n />\n
\n
\n \n ) : (\n \n
\n
\n {task.icon}\n

{task.title}

\n
\n closeModal()} />\n
\n {!taskPage ? (\n <>\n
{switchFilterPage()}
\n
\n onGoBack()}\n />\n {task.body !== \"NO_PAGE\" ? (\n startTaskCreation()}\n />\n ) : (\n createTask()}\n />\n )}\n
\n \n ) : (\n <>\n
\n
{children}
\n
\n
\n {\n setTaskPage(false)\n setCurrentCoords(contextMicroArea?.map_coords || []);\n }}\n />\n createTask()}\n />\n
\n \n )}\n \n )}\n\n {showDrawOnMapModal && allMicroAreas && (\n \n )}\n
\n );\n};\n","import React from \"react\";\nimport \"./style.css\";\n\ninterface MessageBalloonProps {\n text: string;\n pointed?: boolean;\n url?: string;\n}\n\nexport const MessageBalloon: React.FC = ({\n text,\n pointed = false,\n url\n}) => {\n return (\n
\n {url ? {text} : <>{text}}\n
\n );\n};","import { useEffect, useRef, useState } from \"react\";\nimport { IoTriangle } from \"react-icons/io5\";\nimport { FaMinus } from \"react-icons/fa\";\nimport { GoPlus } from \"react-icons/go\";\n\ntype CustomInputCounterProps = JSX.IntrinsicElements[\"input\"] & {\n min?: number;\n max?: number;\n getMessageError?: (error: string) => void;\n onChangevalue?: (value: number) => void;\n isInline?: boolean;\n label?: string;\n isDisabled?: boolean;\n onlyResponse?: boolean;\n control: any;\n defaultValue: number;\n errorText?: string;\n};\n\nexport function CounterInputEdit({\n name,\n min,\n max,\n getMessageError,\n onChangevalue,\n isInline = false,\n label,\n isDisabled = false,\n onlyResponse = false,\n control,\n defaultValue,\n errorText,\n ...rest\n}: CustomInputCounterProps) {\n const inputRef = useRef(null);\n\n const [value, setValue] = useState(0);\n\n function handleIncrementCount(value: number) {\n if (max && value > max) return max;\n if (inputRef && inputRef.current) inputRef.current.value = value.toString();\n if (onChangevalue) onChangevalue(value);\n return value;\n }\n\n function handleDecrementCount(value: number) {\n if ((min && value < min) || value < 0) return min || 0;\n if (inputRef && inputRef.current) inputRef.current.value = value.toString();\n if (onChangevalue) onChangevalue(value);\n return value;\n }\n\n function handleOnchangeInput(numb: string) {\n if (!isNaN(Number(numb)) && inputRef && inputRef.current) {\n const value = Math.abs(Number(numb));\n inputRef.current.value = value.toString();\n setValue(() => value);\n }\n if (onChangevalue) onChangevalue(value);\n }\n\n useEffect(() => {\n const value = Number(inputRef.current?.value);\n setValue(() => Number(value));\n onChangevalue && onChangevalue(value);\n if (inputRef.current && max && value >= max) {\n inputRef.current.value = String(max)\n setValue(max)\n } else if (inputRef.current && value < 0) {\n inputRef.current.value = String(0)\n }\n }, [inputRef.current?.value]);\n\n useEffect(() => {\n if (inputRef.current)\n inputRef.current.value = String(defaultValue);\n }, [defaultValue]);\n\n return (\n <>\n \n \n (e.target as any).blur()}\n onChange={(numb) => {\n handleOnchangeInput(numb.target.value);\n if (onChangevalue) onChangevalue(value);\n }}\n defaultValue={defaultValue}\n ref={inputRef}\n type=\"number\"\n disabled={isDisabled}\n max={max}\n {...rest}\n />\n\n {isInline && label && (\n inputRef.current?.focus()}\n >\n {label}\n \n )}\n \n\n
\n {\n setValue((prevState) => handleIncrementCount(prevState + 1));\n }}\n type=\"button\"\n hidden={onlyResponse}\n >\n {isInline ? : }\n \n
\n\n
\n {\n setValue((prevState) => handleDecrementCount(prevState - 1));\n }}\n type=\"button\"\n hidden={onlyResponse}\n >\n {isInline ? : }\n \n
\n \n {errorText && (\n \n {errorText}\n \n )}\n \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport { DropDownSelect } from \"../../Filters/DropDown/Index\";\nimport \"./style.css\";\nimport { ButtonOnlyTitle } from \"../../Buttons/ButtonOnlyTitle/Index\";\nimport { MessageBalloon } from \"../../MessageBalloon/Index\";\nimport axios from \"../../../services/axios\";\nimport {\n IOptionProps,\n IOptionsProps,\n} from \"../../../@types/reactSelect/IOption\";\nimport { CounterInputEdit } from \"../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { useForm } from \"react-hook-form\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\n\ninterface WaterTroughProps {}\n\ntype TSpecificTask = \"INSTALL\" | \"REPAIR\" | \"REMOVE\" | undefined;\n\ntype TResponse = { id: string; name: string };\n\nexport const WaterTroughs: React.FC = () => {\n const [specificTask, setSpecificTask] = useState();\n const [createTask, setCreateTask] = useState(false);\n\n const [showMaterials, setShowMaterials] = useState(false);\n const [showSizeChooser, setShowSizeChooser] = useState(false);\n\n const [changes, setChanges] = useState();\n\n const [waterTroughs, setWaterTroughs] = useState<{\n micro_area_resource_id: number;\n resource_name: string;\n }>();\n const [shapeOptions, setShapeOptions] = useState([]);\n const [materialOptions, setMaterialOptions] = useState([]);\n\n const { control } = useForm();\n const {\n payload,\n setPayload,\n setAllowTaskCreation,\n responsibleId,\n microAreaId,\n } = useTaskCreation();\n\n function getButtonThemes(task: TSpecificTask) {\n if (!specificTask) return \"dark\";\n\n if (specificTask === task) return \"success\";\n else return \"light\";\n }\n\n const getOptions = (data: Array): IOptionsProps => {\n if (!data) return [];\n\n return data.map((value) => ({ label: value.name, value: value.id }));\n };\n\n useEffect(() => {\n getWaterTroughs();\n }, []);\n\n useEffect(() => {\n if (!specificTask || specificTask !== \"INSTALL\") return;\n\n getShapes();\n getMaterials();\n }, [specificTask]);\n\n const getShapes = () => {\n axios\n .get>(\"/tasks/water-trough/shapes\")\n .then((response) => {\n setShapeOptions(getOptions(response.data));\n });\n };\n\n const getMaterials = () => {\n axios\n .get>(\"/tasks/water-trough/materials\")\n .then((response) => {\n setMaterialOptions(getOptions(response.data));\n });\n };\n\n const getWaterTroughs = () => {\n axios\n .get(\"/micro-areas/resources\", {\n params: {\n micro_area_id: microAreaId,\n },\n })\n .then(\n (response: {\n data: [{ micro_area_resource_id: number; resource_name: string }];\n }) => {\n if (!response.data) return;\n setWaterTroughs(\n response.data.find(\n (resource) => resource.resource_name === \"Bebedouro\"\n )\n );\n }\n );\n };\n\n function translateActivity(activity: TSpecificTask): string {\n switch (activity) {\n case \"INSTALL\":\n return \"INSTALAR\";\n\n case \"REMOVE\":\n return \"REMOVER\";\n\n case \"REPAIR\":\n return \"REPARAR\";\n\n default:\n return \"\";\n }\n }\n\n const handleActivityChoice = (activity: TSpecificTask) => {\n setSpecificTask(activity);\n if (activity !== \"INSTALL\") setCreateTask(true);\n else setCreateTask(false);\n\n let changes: any = {\n water_trough_activity: translateActivity(activity),\n micro_area_id: microAreaId,\n assigned_user_id: responsibleId,\n };\n\n if (waterTroughs && (activity === \"REMOVE\" || activity === \"REPAIR\"))\n changes = {\n ...changes,\n micro_area_aditional_resource_id: waterTroughs.micro_area_resource_id,\n };\n\n setChanges(changes);\n };\n\n const handleShapeChoice = (shapeId: any) => {\n setShowMaterials(true);\n setChanges((prev: any) => ({\n ...prev,\n water_trough_shape_id: shapeId,\n }));\n };\n\n const handleMaterialChoice = (materialId: any) => {\n setShowSizeChooser(true);\n setChanges((prev: any) => ({\n ...prev,\n water_trough_material_id: materialId,\n }));\n };\n\n const handleSizeInput = (size: any) => {\n setChanges((prev: any) => ({\n ...prev,\n access_area_meters: +size,\n }));\n\n if (size === 0) setCreateTask(false);\n else setCreateTask(true);\n };\n\n useEffect(() => {\n if (!createTask) return setAllowTaskCreation(false);\n\n setPayload({ ...payload, changes: [changes] });\n setAllowTaskCreation(true);\n }, [changes]);\n\n return (\n <>\n {(!specificTask || specificTask !== \"INSTALL\") && (\n <>\n
\n \n
\n {/*
\n \n \n
*/}\n\n \n handleActivityChoice(\"REMOVE\")}\n // disabled={!waterTroughs}\n />\n \n \n handleActivityChoice(\"REPAIR\")}\n // disabled={!waterTroughs}\n />\n \n \n
\n handleActivityChoice(\"INSTALL\")}\n // disabled={!!waterTroughs}\n />\n
\n \n \n )}\n {specificTask && specificTask === \"INSTALL\" && (\n <>\n handleShapeChoice(ev)}\n />\n {showMaterials && (\n <>\n
\n
\n \n
\n handleMaterialChoice(ev)}\n />\n
\n {showSizeChooser && (\n
\n
\n \n
\n handleSizeInput(ev)}\n max={9999}\n />\n
\n )}\n \n )}\n \n )}\n \n );\n};\n","var _rect, _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgCheckFull(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 40,\n height: 40,\n viewBox: \"0 0 40 40\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n width: 40,\n height: 40,\n rx: 20,\n fill: \"#57CE71\"\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.2694 10.9917C28.6841 10.5969 29.236 10.3786 29.8086 10.3829C30.3812 10.3872 30.9298 10.6139 31.3385 11.0149C31.7472 11.416 31.9841 11.9602 31.9992 12.5326C32.0144 13.105 31.8065 13.6609 31.4196 14.083L19.6726 28.7742C19.4706 28.9917 19.2268 29.1663 18.9558 29.2875C18.6848 29.4087 18.3921 29.474 18.0953 29.4795C17.7984 29.485 17.5035 29.4306 17.2282 29.3195C16.9529 29.2084 16.7028 29.043 16.4929 28.833L8.70279 21.0429C8.48584 20.8408 8.31184 20.597 8.19115 20.3261C8.07047 20.0553 8.00557 19.7629 8.00034 19.4664C7.99511 19.1699 8.04965 18.8754 8.16071 18.6005C8.27176 18.3255 8.43706 18.0758 8.64673 17.8661C8.85641 17.6564 9.10617 17.4911 9.38112 17.3801C9.65606 17.269 9.95056 17.2145 10.247 17.2197C10.5435 17.2249 10.8359 17.2898 11.1068 17.4105C11.3776 17.5312 11.6214 17.7052 11.8235 17.9222L17.9885 24.0842L28.2134 11.0565C28.2319 11.0338 28.2515 11.0122 28.2723 10.9917H28.2694Z\",\n fill: \"white\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgCheckFull);\nexport default __webpack_public_path__ + \"static/media/CheckFull.8ababba2.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { Modal } from \"../../Default/Index\";\nimport { RoundedCloseButton } from \"../../../Buttons/RoundedCloseButton/Index\";\nimport { ReactComponent as Check } from \"../../../../assets/svg/icons/CheckFull.svg\";\nimport \"./style.css\";\nimport { ButtonOnlyTitle } from \"../../../Buttons/ButtonOnlyTitle/Index\";\n\ninterface SuccessModalProps {\n visible: boolean;\n onClose: () => void;\n createNewTask: () => void;\n monitoringScreen: () => void;\n}\n\nexport const SuccessModal: React.FC = ({\n visible,\n onClose,\n createNewTask,\n monitoringScreen\n}) => {\n return (\n
\n \n
\n onClose()} />\n
\n
\n \n
\n

Concluído!

\n Você criou essa tarefa com sucesso!\n
\n
\n
\n createNewTask()}/>\n {/* monitoringScreen()}/> */}\n
\n \n
\n );\n};\n","import React, { useEffect, useState } from \"react\";\nimport axios from \"../../../services/axios\";\nimport { DropDownSelect } from \"../../Filters/DropDown/Index\";\nimport { IOptionsProps } from \"../../../@types/reactSelect/IOption\";\nimport { MessageBalloon } from \"../../MessageBalloon/Index\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\n\ninterface SoilPreparationProps {}\n\nexport const SoilPreparation: React.FC = () => {\n const [machineTypeOptions, setMachineTypeOptions] = useState(\n []\n );\n\n const {\n payload,\n setPayload,\n setAllowTaskCreation,\n responsibleId,\n microAreaId,\n } = useTaskCreation();\n\n useEffect(() => {\n axios\n .get(\"/tasks/soil-preparation/machine-types\")\n .then((response) => {\n setMachineTypeOptions(\n response.data.map((machineType: { name: string; id: number }) => ({\n label: machineType.name,\n value: machineType.id,\n }))\n );\n })\n .catch((error) => console.log(error));\n }, []);\n\n const handleMachineTypeChoice = (machineId: any) => {\n const changes = {\n micro_area_id: microAreaId,\n assigned_user_id: responsibleId,\n machine_type_id: machineId,\n };\n setPayload({ ...payload, changes: [changes] });\n setAllowTaskCreation(true);\n };\n\n return (\n <>\n {/*
\n \n
*/}\n handleMachineTypeChoice(ev)}\n />\n \n );\n};\n","import React, { useEffect, useRef, useState } from \"react\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\nimport { IOptionsProps } from \"../../../@types/reactSelect/IOption\";\nimport {\n DropDownFilterRefProps,\n DropDownSelect,\n} from \"../../Filters/DropDown/Index\";\nimport axios from \"../../../services/axios\";\nimport \"./style.css\";\nimport { MessageBalloon } from \"../../MessageBalloon/Index\";\nimport { CounterInputEdit } from \"../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { useForm } from \"react-hook-form\";\n\ninterface PlantingProps {}\n\ninterface IFodderSpecie {\n id: number;\n genus_name: string;\n fodder_types: IFodderType[];\n}\n\ninterface IFodderType {\n fodder_species: string;\n fodder_species_id: number;\n}\n\nexport const Planting: React.FC = () => {\n const {\n payload,\n setPayload,\n setAllowTaskCreation,\n responsibleId,\n microAreaId,\n } = useTaskCreation();\n\n const { control } = useForm();\n\n const [plantingTypes, setPlantingTypes] = useState([]);\n const [fodderSpecies, setFodderSpecies] = useState([]);\n const [fodderTypes, setFodderTypes] = useState([]);\n const [seedTypes, setSeedTypes] = useState([]);\n\n const [showSpecies, setShowSpecies] = useState(false);\n const [showTypes, setShowTypes] = useState(false);\n const [showSeedTypes, setShowSeedTypes] = useState(false);\n const [showCounters, setShowCounters] = useState(false);\n\n const [vcPercentage, setVcPercentage] = useState(0);\n const [seedWeight, setSeedWeight] = useState(0);\n\n const [allFodderTypes, setAllFodderTypes] = useState([]);\n\n const [changes, setChanges] = useState();\n\n const fodderTypeRef = useRef();\n\n useEffect(() => {\n getPlantingTypes();\n getPlantingSpecies();\n getSeedTypes();\n }, []);\n\n const getPlantingTypes = async () => {\n await axios\n .get(\"/tasks/planting/types\")\n .then((response) => {\n setPlantingTypes(\n response.data.map((type: { name: string; id: number }) => ({\n label: type.name,\n value: type.id,\n }))\n );\n })\n .catch((error) => {\n console.log(error);\n });\n };\n\n const getPlantingSpecies = async () => {\n await axios\n .get(\"/tasks/pasture-evaluation/fodder/species\")\n .then((response) => {\n const fodderTypes = response.data.fodder_genus;\n setAllFodderTypes(fodderTypes);\n\n setFodderSpecies(\n fodderTypes.map((type: { genus_name: string; id: number }) => ({\n label: type.genus_name,\n value: type.id,\n }))\n );\n })\n .catch((error) => {\n console.log(error);\n });\n };\n\n const getSeedTypes = async () => {\n await axios\n .get(\"/tasks/planting/seed-types\")\n .then((response) => {\n const seedTypes = response.data;\n\n setSeedTypes(\n seedTypes.map((type: { name: string; id: number }) => ({\n label: type.name,\n value: type.id,\n }))\n );\n })\n .catch((error) => {\n console.log(error);\n });\n };\n\n const handlePlantingTypeChoice = (plantingTypeId: any) => {\n setChanges((prev: any) => ({ ...prev, planting_type_id: plantingTypeId }));\n setShowSpecies(true);\n };\n\n const handleFodderSpecieChoice = (fodderSpecieId: any) => {\n if (fodderTypeRef && fodderTypeRef.current)\n fodderTypeRef.current.resetDropDown();\n const fodderSpecie = allFodderTypes.find(\n (type) => type.id === fodderSpecieId\n );\n setChanges((prev: any) => ({ ...prev, fodder_species_id: fodderSpecieId }));\n\n if (!fodderSpecie) return;\n const fodderTypeOptions = fodderSpecie.fodder_types.map(\n (type: IFodderType) => ({\n label: type.fodder_species,\n value: type.fodder_species_id,\n })\n );\n setFodderTypes(fodderTypeOptions);\n\n setShowTypes(true);\n };\n\n const handleFodderTypeChange = (fodderTypeId: any) => {\n // TODO ALTERAR\n // setChanges((prev: any) => ({ ...prev, seed_type_id: fodderTypeId }));\n setShowSeedTypes(true);\n };\n\n const handleSeedTypeChange = (fodderTypeId: any) => {\n setChanges((prev: any) => ({ ...prev, seed_type_id: fodderTypeId }));\n setShowSeedTypes(true);\n setShowCounters(true);\n };\n\n const handleVCPercentageChange = (value: any) => {\n if (+value > 100) setVcPercentage(100);\n else setVcPercentage(+value);\n };\n\n const handleSeedWeightChange = (value: any) => {\n setSeedWeight(+value);\n setChanges((prev: any) => ({ ...prev, seed_quantity_kg: value }));\n };\n\n useEffect(() => {\n if (seedWeight === 0 || vcPercentage === 0 || vcPercentage > 100)\n return setAllowTaskCreation(false);\n\n const reqChanges = {\n ...changes,\n micro_area_id: microAreaId,\n assigned_user_id: responsibleId,\n };\n\n const reqPayload = {\n ...payload,\n changes: [reqChanges],\n };\n\n setPayload(reqPayload);\n\n setAllowTaskCreation(true);\n }, [seedWeight, vcPercentage]);\n\n useEffect(() => {\n if (vcPercentage > 100) return setVcPercentage(100);\n\n setChanges((prev: any) => ({ ...prev, vc_percentage: vcPercentage }));\n }, [vcPercentage]);\n\n return (\n <>\n
\n handlePlantingTypeChoice(ev)}\n />\n
\n {showSpecies && (\n <>\n
\n handleFodderSpecieChoice(ev)}\n />\n
\n {showTypes && (\n <>\n
\n handleFodderTypeChange(ev)}\n />\n
\n {showSeedTypes && (\n <>\n
\n handleSeedTypeChange(ev)}\n />\n
\n {showCounters && (\n <>\n
\n \n
\n handleVCPercentageChange(ev)}\n />\n
\n \n
\n
\n handleSeedWeightChange(ev)}\n />\n
\n \n )}\n \n )}\n \n )}\n \n )}\n \n );\n};\n","export const capitalize = (s: string) => (s && s[0].toUpperCase() + s.slice(1)) || \"\";\n","import { forwardRef, useEffect, useImperativeHandle, useState } from \"react\";\nimport \"./style.css\";\n\nimport AnimationHeight from \"react-animate-height\";\n\nimport { ReactComponent as ChevronIcon } from \"../../assets/svg/icons/chevronDown.svg\";\n\nimport { IOptionsProps } from \"../../@types/reactSelect/IOption\";\nimport { DropDownSelectProps } from \"../../@types/app/DropDownFilters/IDropDownSelect\";\nimport { capitalize } from \"../../utils/strings/capitalize\";\n\nexport type MultipleSelectRefProps = {\n resetDropDown: () => void;\n};\n\ninterface MultipleSelectProps\n extends Omit {\n defaultValue?: IOptionsProps;\n onChange: (v: IOptionsProps) => void;\n}\n\nexport const MultipleSelect = forwardRef((props: MultipleSelectProps, ref) => {\n const {\n clearableLabel = \"Sem filtros\",\n options: componentOptions,\n clearable = false,\n defaultValue,\n placeholder,\n onChange,\n label,\n } = props;\n\n useImperativeHandle(ref, () => ({\n resetDropDown() {\n if (defaultValue && typeof defaultValue !== \"string\")\n setCurrentValue(defaultValue);\n },\n }));\n\n const [isOpen, setIsOpen] = useState(false);\n const [currentValue, setCurrentValue] = useState([]);\n const [options, setOptions] = useState([]);\n\n const toggleMenu = () => {\n if (componentOptions.length > 0) setIsOpen((open) => !open);\n };\n\n function handleValueSelected(id: string) {\n let auxArray = undefined;\n if (currentValue.some((op) => op.value === id)) {\n auxArray = currentValue.filter((op) => op.value !== id);\n setCurrentValue(auxArray);\n } else {\n let option = options.find((option) => option.value === id);\n if (!!option) {\n auxArray = [...currentValue, option];\n setCurrentValue(auxArray);\n }\n }\n\n onChange && onChange(auxArray ?? []);\n }\n\n useEffect(() => {\n if (defaultValue && typeof defaultValue !== \"string\")\n setCurrentValue(defaultValue);\n }, [defaultValue]);\n\n useEffect(() => {\n if (clearable)\n setOptions(() => [\n { label: clearableLabel, value: undefined },\n ...componentOptions,\n ]);\n else setOptions(() => componentOptions);\n }, [clearable, componentOptions]);\n\n return (\n
\n \n \n
\n
    \n {options.map((option, index) => (\n op.value === option.value)\n ? \"isSeleted\"\n : \"\"\n }\n >\n \n \n ))}\n
\n
\n
\n
\n );\n});\n","import React, { useEffect, useState } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { MultipleSelect } from \"../../MultipleSelect/Index\";\nimport axios from \"../../../services/axios\";\nimport {\n IOptionProps,\n IOptionsProps,\n} from \"../../../@types/reactSelect/IOption\";\nimport { MessageBalloon } from \"../../MessageBalloon/Index\";\nimport { CounterInputEdit } from \"../../EditOnboarding/components/Input/CounterInput/Index\";\nimport \"./style.css\";\nimport { capitalize } from \"../../../utils/strings/capitalize\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\nimport { sortBy } from \"../../../utils/arrays/sortBy\";\n\ninterface FertilizationProps {}\n\ninterface SelectedProductProps extends IOptionProps {\n weight?: number;\n}\n\ntype SelectedProductsProps = Array;\n\nexport const Fertilization: React.FC = () => {\n const { control } = useForm();\n const {\n payload,\n setPayload,\n setAllowTaskCreation,\n responsibleId,\n microAreaId,\n } = useTaskCreation();\n\n const [productOptions, setProductOptions] = useState([]);\n const [selectedProducts, setSelectedProducts] =\n useState([]);\n const [showProductsCounter, setShowProductsCounter] =\n useState(false);\n\n useEffect(() => {\n getProducts();\n }, []);\n\n function nameProduct(text: string) {\n var resultText = text.toLowerCase().replace(/\\(([^)]+)\\)/, (match, content) => {\n return '(' + content.toUpperCase() + ')';\n });\n\n return resultText;\n }\n\n const getProducts = async () => {\n await axios.get(\"tasks/fertilization/products\").then((response) => {\n if (!response.data) return;\n setProductOptions(\n response.data\n .map((prod: { name: string; id: number }) => ({\n label: nameProduct(prod.name),\n value: prod.id,\n }))\n .sort(sortBy(\"label\"))\n );\n });\n };\n\n const handleProductsSelection = (prodArray: IOptionsProps) => {\n let auxArray = prodArray.slice();\n prodArray.forEach((prod, index) => {\n selectedProducts.forEach((selProd) => {\n if (prod.value === selProd.value) auxArray[index] = selProd;\n });\n });\n setSelectedProducts(auxArray);\n };\n\n const handleProductWeight = (weight: any, index: number) => {\n let currProducts = selectedProducts.slice();\n\n currProducts[index] = { ...currProducts[index], weight: +weight };\n\n setSelectedProducts(currProducts);\n };\n\n useEffect(() => {\n if (selectedProducts.length === 0) setShowProductsCounter(false);\n else setShowProductsCounter(true);\n\n if (\n selectedProducts.length === 0 ||\n selectedProducts.some((prod) => typeof prod.weight === \"undefined\")\n )\n return setAllowTaskCreation(false);\n\n const noZeroWeight = !selectedProducts.some((prod) => prod.weight === 0);\n\n setAllowTaskCreation(noZeroWeight);\n if (noZeroWeight) {\n const products = selectedProducts.map((product) => ({\n product_id: product.value,\n weight_per_ha: product.weight,\n }));\n\n setPayload({\n ...payload,\n changes: [\n {\n assigned_user_id: responsibleId,\n micro_area_id: microAreaId,\n products: products,\n },\n ],\n });\n }\n }, [selectedProducts]);\n\n return (\n <>\n {\n handleProductsSelection(ev);\n }}\n />\n {showProductsCounter &&\n selectedProducts.map((product, index) => {\n return (\n \n
\n
\n \n
\n \n {capitalize(nameProduct(product.label))}\n \n handleProductWeight(ev, index)}\n max={99999999}\n />\n
\n
\n );\n })}\n \n );\n};\n","import React, { useEffect, useState } from \"react\";\nimport \"./style.css\";\nimport axios from \"../../../services/axios\";\nimport {\n IOptionProps,\n IOptionsProps,\n} from \"../../../@types/reactSelect/IOption\";\nimport { DropDownSelect } from \"../../Filters/DropDown/Index\";\nimport { MultipleSelect } from \"../../MultipleSelect/Index\";\nimport { sortBy } from \"../../../utils/arrays/sortBy\";\nimport { useForm } from \"react-hook-form\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\nimport { capitalize } from \"../../../utils/strings/capitalize\";\nimport { CounterInputEdit } from \"../../EditOnboarding/components/Input/CounterInput/Index\";\n\ninterface SprayingProps {}\n\ninterface SelectedProductProps extends IOptionProps {\n liter_per_ha?: number;\n}\n\ntype SelectedProductsProps = Array;\n\nexport const Spraying: React.FC = () => {\n const { control } = useForm();\n const {\n payload,\n setPayload,\n setAllowTaskCreation,\n responsibleId,\n microAreaId,\n } = useTaskCreation();\n\n const [productOptions, setProductOptions] = useState([]);\n const [applicationTypeOptions, setApplicationTypeOptions] =\n useState([]);\n const [changes, setChanges] = useState();\n\n const [selectedProducts, setSelectedProducts] =\n useState([]);\n\n const [showProductsChooser, setShowProductsChooser] =\n useState(false);\n const [showProductsCounter, setShowProductsCounter] =\n useState(false);\n\n useEffect(() => {\n getProducts();\n getApplicationTypes();\n }, []);\n\n const getProducts = async () => {\n await axios.get(\"/tasks/spraying/products\").then((response) => {\n if (!response.data) return;\n setProductOptions(\n response.data\n .map((prod: { name: string; id: number }) => ({\n label: prod.name.toLowerCase(),\n value: prod.id,\n }))\n .sort(sortBy(\"label\"))\n );\n });\n };\n\n const getApplicationTypes = async () => {\n await axios.get(\"/tasks/spraying/application-types\").then((response) => {\n if (!response.data) return;\n setApplicationTypeOptions(\n response.data\n .map((prod: { name: string; id: number }) => ({\n label: prod.name,\n value: prod.id,\n }))\n .sort(sortBy(\"label\"))\n );\n });\n };\n\n const handleApplicationTypeChoice = (typeId: any) => {\n setShowProductsChooser(true);\n setChanges((prev: any) => ({\n ...prev,\n application_type_id: typeId,\n }));\n };\n\n const handleProductsSelection = (prodArray: IOptionsProps) => {\n let auxArray = prodArray.slice();\n prodArray.forEach((prod, index) => {\n selectedProducts.forEach((selProd) => {\n if (prod.value === selProd.value) auxArray[index] = selProd;\n });\n });\n setSelectedProducts(auxArray);\n };\n\n const handleProducLiters = (liters: any, index: number) => {\n let currProducts = selectedProducts.slice();\n\n currProducts[index] = { ...currProducts[index], liter_per_ha: +liters };\n\n setSelectedProducts(currProducts);\n };\n\n useEffect(() => {\n if (selectedProducts.length === 0) setShowProductsCounter(false);\n else setShowProductsCounter(true);\n\n if (\n selectedProducts.length === 0 ||\n selectedProducts.some((prod) => typeof prod.liter_per_ha === \"undefined\")\n )\n return setAllowTaskCreation(false);\n\n const noZeroCounter = !selectedProducts.some(\n (prod) => prod.liter_per_ha === 0\n );\n\n setAllowTaskCreation(noZeroCounter);\n\n if (noZeroCounter) {\n const products = selectedProducts.map((product) => ({\n product_id: product.value,\n liter_per_ha: product.liter_per_ha,\n }));\n\n setPayload({\n ...payload,\n changes: [\n {\n ...changes,\n assigned_user_id: responsibleId,\n micro_area_id: microAreaId,\n products: products,\n },\n ],\n });\n }\n }, [selectedProducts, changes]);\n\n return (\n <>\n handleApplicationTypeChoice(ev)}\n />\n {showProductsChooser && (\n <>\n {\n handleProductsSelection(ev);\n }}\n />\n {showProductsCounter &&\n selectedProducts.map((product, index) => {\n return (\n \n
\n \n {capitalize(product.label.toLowerCase())}\n \n handleProducLiters(ev, index)}\n max={99999999}\n />\n
\n
\n );\n })}\n \n )}\n \n );\n};\n","import React from \"react\";\nimport { Modal } from \"../../Default/Index\";\nimport { RoundedCloseButton } from \"../../../Buttons/RoundedCloseButton/Index\";\nimport { ReactComponent as Check } from \"../../../../assets/svg/icons/CheckFull.svg\";\nimport \"./style.css\";\nimport { ButtonOnlyTitle } from \"../../../Buttons/ButtonOnlyTitle/Index\";\n\ninterface ErrorModalProps {\n visible: boolean;\n onClose: () => void;\n errorMessage?: string;\n monitoringScreen?: () => void;\n}\n\nexport const ErrorModal: React.FC = ({\n visible,\n onClose,\n errorMessage,\n monitoringScreen,\n}) => {\n return (\n
\n \n
\n onClose()} />\n
\n
\n

Erro ao criar tarefa

\n {errorMessage &&\n {errorMessage}\n }\n
\n
\n onClose()}\n />\n
\n \n
\n );\n};\n","import React, { CSSProperties, ReactNode, useEffect, useRef, useState } from \"react\";\nimport \"./style.css\";\nimport axios from \"../../../services/axios\";\nimport { MessageBalloon } from \"../../MessageBalloon/Index\";\nimport { ButtonOnlyTitle } from \"../../Buttons/ButtonOnlyTitle/Index\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\nimport { DropDownSelect } from \"../../Filters/DropDown/Index\";\nimport { MultipleSelect } from \"../../MultipleSelect/Index\";\nimport { ButtonWithChildren } from \"../../Buttons/ButtonWithChildren/Index\";\nimport { ReactComponent as Pen } from \"../../../assets/svg/icons/penEdit.svg\";\nimport { CounterInputEdit } from \"../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { useForm } from \"react-hook-form\";\nimport { IOptionProps, IOptionsProps } from \"../../../@types/reactSelect/IOption\";\nimport { sortBy } from \"../../../utils/arrays/sortBy\";\n\ninterface FencingProps {}\n\ntype FencingTasks = \"REPAIR\" | \"REMOVE\" | \"BUILD\" | undefined;\n\nconst SUBTASKS = {\n REPAIR: \"REPAIR\" as \"REPAIR\",\n REMOVE: \"REMOVE\" as \"REMOVE\",\n BUILD: \"BUILD\" as \"BUILD\",\n};\n\nexport const Fencing: React.FC = () => {\n const { control } = useForm();\n const {\n setAllowTaskCreation,\n responsibleId,\n microAreaId,\n payload,\n setPayload,\n contextMicroArea,\n setShowMicroAreaUnavailableModal,\n setShowDrawOnMapModal,\n allMicroAreas,\n setFilterMicroAreas,\n setCurrentCoords,\n setEditFences\n } = useTaskCreation();\n\n const [specificTask, setSpecificTask] = useState();\n\n const [showWireAmount, setShowWireAmount] = useState(false);\n const [showMapDrawButton, setShowMapDrawButton] = useState(false);\n const [showPoleMaterialChooser, setShowPoleMaterialChooser] =\n useState(false);\n\n const [fenceMaterialOptions, setFenceMaterialOptions] =\n useState([]);\n const [fencePoleMaterialOptions, setFencePoleMaterialOptions] =\n useState([]);\n\n const [changes, setChanges] = useState({});\n const [wireAmount, setWireAmount] = useState(0);\n const [selectedMicroAreas, setSelectedMicroAreas] = useState([]);\n\n useEffect(() => {\n setAllowTaskCreation(false);\n }, []);\n\n useEffect(() => {\n if (specificTask && specificTask != \"REPAIR\" && thereIsBatch()) {\n setShowMicroAreaUnavailableModal(true);\n } \n if (specificTask != \"REMOVE\") {\n setCurrentCoords(contextMicroArea?.map_coords || []);\n } else {\n setCurrentCoords([])\n }\n }, [specificTask]);\n\n function thereIsBatch(): boolean {\n if (!contextMicroArea) return false;\n if (!contextMicroArea.micro_area_route) return false;\n\n const thereIsBatch = contextMicroArea.micro_area_route.current_micro_area;\n return thereIsBatch;\n }\n\n function getButtonThemes(task: FencingTasks) {\n if (!specificTask) return \"dark\";\n\n if (specificTask === task) return \"success\";\n else return \"light\";\n }\n\n function translateSubtask(\n task: FencingTasks\n ): \"REPARAR\" | \"CONSTRUIR\" | \"REMOVER\" {\n switch (task) {\n case SUBTASKS.REPAIR:\n return \"REPARAR\";\n\n case SUBTASKS.BUILD:\n return \"CONSTRUIR\";\n\n default:\n return \"REMOVER\";\n }\n }\n\n const commonForms = (task: FencingTasks) => {\n const currentChanges = {\n micro_area_id: microAreaId,\n assigned_user_id: responsibleId,\n activity: translateSubtask(task),\n };\n\n setChanges({ ...changes, ...currentChanges });\n };\n\n const handleFencingTaskChoice = async (task: FencingTasks) => {\n resetSubtasks();\n setSpecificTask(task);\n commonForms(task)\n if (task === SUBTASKS.BUILD) {\n await getFencePoleMaterial();\n await getFenceMaterials();\n setAllowTaskCreation(false)\n setEditFences(true)\n }\n else if (task == SUBTASKS.REMOVE) {\n setAllowTaskCreation(false)\n setEditFences(false)\n }\n else {\n setEditFences(false)\n setAllowTaskCreation(true);\n }\n };\n\n const handleFenceMaterialChoice = (id: any) => {\n if (!id) return;\n setShowWireAmount(true);\n setChanges({ ...changes, construction_material_id: id });\n };\n\n useEffect(() => {\n if (wireAmount === 0) return;\n\n setChanges({ ...changes, wire_quantity: wireAmount });\n setShowPoleMaterialChooser(true);\n }, [wireAmount]);\n\n useEffect(() => {\n const reqPayload = {\n ...payload,\n changes: [changes]\n };\n setPayload(reqPayload);\n }, [changes]);\n\n const handleFencePoleMaterialChoice = (id: any) => {\n setShowMapDrawButton(true);\n setChanges({ ...changes, structure_id: id });\n };\n\n useEffect(() => {\n if (allMicroAreas && setFilterMicroAreas) {\n setFilterMicroAreas(\n allMicroAreas\n .filter(microArea => selectedMicroAreas.includes(Number(microArea.id)))\n )\n }\n }, [selectedMicroAreas]);\n\n function setSubtaskPage(): ReactNode {\n if (!specificTask) return <>;\n switch (specificTask) {\n case SUBTASKS.BUILD:\n return (\n <>\n handleFenceMaterialChoice(ev)}\n />\n {showWireAmount && (\n <>\n
\n \n
\n setWireAmount(+ev)}\n onChange={(ev) => {\n setWireAmount(+ev.target.value);\n }}\n max={9999}\n />\n {showPoleMaterialChooser && wireAmount > 0 && (\n <>\n
\n \n
\n handleFencePoleMaterialChoice(ev)}\n />\n {showMapDrawButton && (\n <>\n setShowDrawOnMapModal(true)}\n >\n
\n \n
Desenhe a nova cerca no mapa
\n
\n \n \n )}\n \n )}\n \n )}\n \n );\n case SUBTASKS.REMOVE:\n return (\n
\n setShowDrawOnMapModal(true)}\n >\n
\n
Selecionar pasto(s) no mapa
\n
\n \n
\n );\n case SUBTASKS.REPAIR:\n return <>;\n }\n }\n\n const getFenceMaterials = async () => {\n axios.get(\"/tasks/fencing/construction-materials\").then((response) => {\n if (response.data) {\n setFenceMaterialOptions(\n response.data.map((material: any) => ({\n label: material.name,\n value: material.id,\n }))\n );\n }\n });\n };\n\n const resetSubtasks = () => {\n setChanges({});\n setShowWireAmount(false);\n };\n\n const getFencePoleMaterial = async () => {\n axios.get(\"/tasks/fencing/structures\").then((response) => {\n if (response.data) {\n setFencePoleMaterialOptions(\n response.data.map((material: any) => ({\n label: material.name,\n value: material.id,\n }))\n );\n }\n });\n };\n\n return (\n <>\n
\n \n
\n
\n {\n setCurrentCoords([]);\n handleFencingTaskChoice(SUBTASKS.REMOVE)\n }}\n />\n
\n
\n handleFencingTaskChoice(SUBTASKS.REPAIR)}\n />\n
\n
\n {\n setCurrentCoords(contextMicroArea?.map_coords || [])\n handleFencingTaskChoice(SUBTASKS.BUILD)\n }}\n />\n
\n {specificTask && (\n
{setSubtaskPage()}
\n )}\n \n );\n};\n","import { useEffect, useRef, useState } from \"react\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\nimport { DropDownFilterRefProps, DropDownSelect } from \"../../Filters/DropDown/Index\";\nimport { IOptionsProps } from \"../../../@types/reactSelect/IOption\";\nimport axios from \"../../../services/axios\"\nimport { MessageBalloon } from \"../../MessageBalloon/Index\";\nimport { useForm } from \"react-hook-form\";\nimport { CounterInputEdit } from \"../../EditOnboarding/components/Input/CounterInput/Index\";\n\ninterface BagReceiveProps { }\n\nexport const BagReceive: React.FC = () => {\n const [optionsProducts, setOptionsProducts] = useState([]);\n const [classificationSelected, setClassificationSelected] = useState(undefined);\n const [productSelected, setProductSelected] = useState(undefined);\n const [quantity, setQuantity] = useState(0);\n const { control } = useForm();\n const productRef = useRef();\n\n const {\n payload,\n setPayload,\n setAllowTaskCreation,\n responsibleId,\n farmId,\n } = useTaskCreation();\n\n useEffect(() => {\n axios.get(\"/products/all\")\n .then(({ data }) => {\n setOptionsProducts(data.map((el: any) =>\n ({\n label: el.trade_name,\n value: el\n })))\n })\n }, []);\n\n useEffect(() => {\n setProductSelected(undefined)\n if (productRef && productRef.current)\n productRef.current.resetDropDown();\n setAllowTaskCreation(false)\n }, [classificationSelected]);\n\n useEffect(() => {\n if (quantity == 0) {\n setAllowTaskCreation(false)\n } else {\n setValuesOnPayload()\n }\n }, [quantity]);\n\n function setValuesOnPayload() {\n if (productSelected)\n setPayload({\n ...payload,\n changes: [\n {\n farm_id: farmId,\n assigned_user_id: responsibleId,\n product_id: (productSelected as any)?.id,\n quantity_ordered: quantity\n }\n ]\n });\n setAllowTaskCreation(true)\n }\n\n const [mapTypes] = useState(new Map());\n const [optionTypes, setOptionTypes] = useState([]);\n\n useEffect(() => {\n optionsProducts.map((el) => mapTypes.set((el?.value as any)?.classification, (el?.value as any)?.classification))\n setOptionTypes(Array.from(mapTypes.keys()).map(el => ({\n label: el,\n value: el\n })))\n }, [optionsProducts]);\n\n return (\n <>\n
\n \n
\n setClassificationSelected(ev)}\n />\n\n {classificationSelected &&\n <>\n (el?.value as any)?.classification == classificationSelected)}\n placeholder=\"Selecionar produto...\"\n onChange={(ev) => setProductSelected(ev)}\n />\n\n {productSelected &&\n <>\n
\n
\n Resumo\n\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n\n
\n \n
\n\n {\n setQuantity(ev)\n }}\n isInline\n />\n \n }\n \n }\n \n );\n}","import React, { CSSProperties, useEffect, useRef, useState } from \"react\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\nimport { Modal } from \"../../Modal/Default/Index\";\nimport ChipPressableComponent from \"../../Chips/ComponentChipPressable/Index\";\nimport { RoundedCloseButton } from \"../../Buttons/RoundedCloseButton/Index\";\nimport { TaskCard } from \"../../TaskCard/Index\";\nimport { ReactComponent as FertillizingIcon } from \"../../../assets/svg/icons/fertillizing.svg\";\nimport { ReactComponent as DrinkingFountainIcon } from \"../../../assets/svg/icons/drinking_fountain.svg\";\nimport { ReactComponent as FenceIcon } from \"../../../assets/svg/icons/fences.svg\";\nimport { ReactComponent as ContourLineIcon } from \"../../../assets/svg/icons/contour_line.svg\";\nimport { ReactComponent as PlantingIcon } from \"../../../assets/svg/icons/planting.svg\";\nimport { ReactComponent as PulverizationIcon } from \"../../../assets/svg/icons/pulverization.svg\";\nimport { ReactComponent as MowingIcon } from \"../../../assets/svg/icons/mowing.svg\";\nimport { ReactComponent as SoilPreparationIcon } from \"../../../assets/svg/icons/soil_preparation.svg\";\nimport { ReactComponent as DetachedTask } from \"../../../assets/svg/icons/detached_task.svg\";\nimport { ReactComponent as BagFoodReceiveIcon } from \"../../../assets/svg/icons/bagFoodReceive.svg\";\nimport Pagination from \"../../Pagination\";\nimport { sortBy } from \"../../../utils/arrays/sortBy\";\nimport { CreateTaskModal } from \"../../Modal/CreateTask/Index\";\nimport { WaterTroughs } from \"../../Tasks/WaterTroughs/Index\";\nimport { SuccessModal } from \"../../Modal/CreateTask/SuccessModal/Index\";\nimport { SoilPreparation } from \"../../Tasks/SoilPreparation/Index\";\nimport { Planting } from \"../../Tasks/Planting/Index\";\nimport { Fertilization } from \"../../Tasks/Fertilization/Index\";\nimport { Spraying } from \"../../Tasks/Spraying/Index\";\nimport { ErrorModal } from \"../../Modal/CreateTask/ErrorModal/Index\";\nimport { Fencing } from \"../../Tasks/Fencing/Index\";\nimport { ButtonOnlyTitle } from \"../../Buttons/ButtonOnlyTitle/Index\";\nimport \"./style.css\";\nimport { BagReceive } from \"../BagReceive/Index\";\n\ninterface TasksModalsProps {}\n\nconst NO_TASK_PAGE = \"NO_PAGE\";\n\nconst createTaskModalStyle = {\n padding: \"50px\",\n width: \"1185px\",\n height: \"662px\",\n borderRadius: 20,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n} as CSSProperties;\n\nexport const TASKLIST = (\n [\n {\n title: \"Adubação\",\n filter: \"pasture\",\n icon: () as JSX.Element,\n body: ,\n type: \"FERTILIZATION\",\n },\n {\n title: \"Criar tarefa avulsa\",\n filter: \"pasture\",\n icon: () as JSX.Element,\n body: NO_TASK_PAGE,\n type: \"DETACHED_TASK\",\n },\n {\n title: \"Bebedouros\",\n filter: \"pasture\",\n icon: () as JSX.Element,\n body: ,\n type: \"WATER_TROUGH\",\n },\n {\n title: \"Cercas\",\n filter: \"pasture\",\n icon: () as JSX.Element,\n body: ,\n type: \"FENCING\",\n },\n {\n title: \"Curva de nível\",\n filter: \"pasture\",\n icon: () as JSX.Element,\n body: NO_TASK_PAGE,\n type: \"CONTOUR_FARMING\",\n },\n {\n title: \"Plantio\",\n filter: \"pasture\",\n icon: () as JSX.Element,\n body: ,\n type: \"PLANTING\",\n },\n {\n title: \"Preparo de solo\",\n filter: \"pasture\",\n icon: () as JSX.Element,\n body: ,\n type: \"SOIL_PREPARATION\",\n },\n {\n title: \"Pulverização\",\n filter: \"pasture\",\n icon: () as JSX.Element,\n body: ,\n type: \"SPRAYING\",\n },\n {\n title: \"Roçagem\",\n filter: \"pasture\",\n icon: () as JSX.Element,\n body: NO_TASK_PAGE,\n type: \"BRUSH_CUTTING\",\n },\n {\n title: \"Recebimento do produto\",\n filter: \"pasture\",\n icon: () as JSX.Element,\n body: ,\n type: \"PRODUCT_INCOMING\",\n },\n ] as ITasks\n).sort(sortBy(\"title\"));\n\nconst totalPages =\n TASKLIST.length % 6 == 0\n ? Math.floor(TASKLIST.length / 6)\n : Math.floor(TASKLIST.length / 6) + 1;\n\nexport const TasksModals: React.FC = () => {\n const {\n showTasklistModal,\n setShowTasklistModal,\n selectedTask,\n setSelectedTask,\n showCreateTaskModal,\n setShowCreateTaskModal,\n taskCreatedSuccessfully,\n taskCreationError,\n setTaskCreationError,\n setTaskCreatedSuccessfully,\n showMicroAreaUnavailableModal,\n setShowMicroAreaUnavailableModal,\n resetContext,\n setCurrentCoords,\n contextMicroArea,\n errorMessage\n } = useTaskCreation();\n const [currentPage, setCurrentPage] = useState(TASKLIST.slice(0, 6));\n const [currentPageIndex, setCurrentPageIndex] = useState(1);\n\n const taskRef = useRef();\n\n const handleTasksPagination = (value: number) => {\n setCurrentPageIndex(value);\n if (value === 1) setCurrentPage(TASKLIST.slice(0, 6));\n else setCurrentPage(TASKLIST.slice((value - 1) * 6, (value - 1) * 6 + 6));\n };\n\n const openTaskModal = (task: ITask) => {\n setShowTasklistModal(false);\n setShowCreateTaskModal(true);\n };\n\n const closeCreateTaskModal = () => {\n setShowCreateTaskModal(false);\n setSelectedTask(undefined);\n resetContext();\n };\n\n const closeTaskEndModal = () => {\n closeCreateTaskModal();\n setTaskCreatedSuccessfully(false);\n setTaskCreationError(false);\n setShowMicroAreaUnavailableModal(false);\n };\n\n\n useEffect(() => {\n if (!selectedTask) return;\n\n openTaskModal(selectedTask);\n }, [selectedTask]);\n\n const createNewTask = () => {\n closeTaskEndModal();\n setShowTasklistModal(true);\n };\n\n return (\n <>\n {showTasklistModal && (\n
\n \n
\n
\n

Selecione uma tarefa

\n
\n
\n {/* {}}/>\n {}}/> */}\n
\n setShowTasklistModal(false)}\n />\n
\n
\n
\n {currentPage &&\n currentPage.map((task) => (\n {\n setSelectedTask(task);\n taskRef.current = task;\n }}\n />\n ))}\n
\n
\n
\n handleTasksPagination(value)}\n />\n
\n \n
\n )}\n\n {!showMicroAreaUnavailableModal &&\n selectedTask &&\n showCreateTaskModal && (\n closeCreateTaskModal()}\n task={selectedTask}\n children={selectedTask.body}\n onGoBack={() => {\n setCurrentCoords(contextMicroArea?.map_coords || []);\n closeCreateTaskModal();\n setShowTasklistModal(true);\n }}\n />\n )}\n\n {taskCreatedSuccessfully && (\n closeTaskEndModal()}\n visible={taskCreatedSuccessfully}\n createNewTask={() => createNewTask()}\n monitoringScreen={() => {}}\n />\n )}\n\n {taskCreationError && (\n closeTaskEndModal()}\n errorMessage={errorMessage}\n />\n )}\n\n {showMicroAreaUnavailableModal && (\n \n \n
\n closeTaskEndModal()} />\n
\n
\n

Esse pasto possui lote!

\n \n Essa tarefa não pode ser criada enquanto o pasto possuir lote,\n você deve primeiro mover o lote para outro pasto.\n \n
\n
\n createNewTask()}\n />\n
\n \n
\n )}\n \n );\n};\n","import { ReactNode, useEffect, useState } from \"react\";\n\nimport { useNavigate } from \"react-router-dom\";\n\nimport { ReactComponent as ChevronRighticon } from \"../../../../assets/svg/icons/chevronRight.svg\";\nimport { ReactComponent as Circleicon } from \"../../../../assets/svg/icons/circle.svg\";\n\ntype MenuOptionProps = {\n title?: string;\n to?: string;\n basePath: string;\n onClicked?: () => void;\n children: ReactNode;\n};\n\nexport function SubMenuOption({ title, to, basePath, children, onClicked }: MenuOptionProps) {\n const navigate = useNavigate();\n const [selected, setSelected] = useState(false);\n\n function isParentSelected(parentOption: string): boolean {\n return parentOption ? window.location.pathname.includes(parentOption) : false;\n }\n\n useEffect(() => {\n isParentSelected(basePath) ? setSelected(true) : setSelected(false)\n }, [window.location.pathname]);\n\n return (\n <>\n {\n onClicked ? onClicked() : () => { }\n setSelected(!selected)\n if (to) {\n navigate(to);\n }\n }}\n >\n \n {selected ? : }\n \n {title}\n \n\n \n {children}\n \n \n );\n}\n","import { MenuContainer } from \"./MenuContainer/Index\";\nimport { MenuOption } from \"./MenuOption/Index\";\nimport \"./styles.css\";\nimport { ReactComponent as Mapa } from \"../../../assets/svg/icons/mapa.svg\";\nimport { ReactComponent as Dados } from \"../../../assets/svg/icons/dados.svg\";\nimport { ReactComponent as Animais } from \"../../../assets/svg/icons/animais.svg\";\nimport logo from \"../../../assets/svg/logo/logoPastejo.svg\";\nimport { CSSProperties, useEffect, useRef, useState } from \"react\";\nimport { Link, useNavigate } from \"react-router-dom\";\nimport Constants from \"../../../constants/Index\";\nimport { useFilter } from \"../../../hooks/useFilter\";\nimport jwt_decode from \"jwt-decode\";\nimport { logout } from \"../../../services/auth\";\nimport { IOptionsSideBarLinks } from \"../../../contexts/FilterContext\";\nimport { ButtonWithChildren } from \"../../Buttons/ButtonWithChildren/Index\";\nimport { ReactComponent as HatIcon } from \"../../../assets/svg/icons/hat.svg\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\nimport { TasksModals } from \"../../Tasks/TasksModals/Index\";\nimport { SubMenuOption } from \"./SubMenuOption\";\n\nconst SIDEBAR_LINK_THEME = {\n selected: {\n color: '#ffffff'\n },\n normal: {\n color: '#999999',\n },\n disabled: {\n color: '#999999',\n cursor: \"not-allowed\"\n }\n}\n\nconst BUTTON_MAP_THEME = {\n selected: {\n background: '#57ce71'\n },\n normal: {\n background: '#ffffff'\n }\n}\n\nenum SIDEBAR_NAMES {\n PASTURE_EVALUATION = 'PASTURE_EVALUATION',\n MANAGER_SYSTEM = 'MANAGER_SYSTEM',\n PROFILES = 'PROFILES',\n LOGOUT = 'LOGOUT',\n}\n\ninterface SideBarLinkComponentProps {\n sideBarName: IOptionsSideBarLinks\n label: string\n href?: string,\n onClick?: (event: React.MouseEvent) => void\n disabled?: boolean;\n}\n\nexport function SideBar() {\n const [isOpen, setIsOpen] = useState(true);\n const { sideBarOptionSelected, setSideBarOptionSelected } = useFilter();\n const [permission, setPermission] = useState(false);\n const token = localStorage.getItem(\"token\");\n const navigate = useNavigate();\n\n const { setShowTasklistModal } = useTaskCreation();\n\n function handleSideBarLink(sideBarName: IOptionsSideBarLinks, href?: string) {\n setSideBarOptionSelected(sideBarName)\n if (href) navigate(href)\n }\n\n function userLogout() {\n logout()\n }\n\n const SideBarLinkComponent = ({ href, sideBarName, onClick, label, disabled = false }: SideBarLinkComponentProps) => {\n return (\n
\n {\n onClick ? onClick(event) : handleSideBarLink(sideBarName, href)\n navigate('/mapadepastos')\n }}\n >\n {label}\n \n
\n )\n }\n\n useEffect(() => {\n try {\n const decode: any = jwt_decode(token || \" \")\n\n switch (decode.ROLE) {\n case \"MASTER\":\n setPermission(true)\n break;\n case \"GERENTE\":\n setPermission(true)\n break\n default:\n setPermission(false)\n }\n } catch (error) {\n console.log(error)\n }\n }, []);\n\n var packageJsonInfo = require('../../../../package.json');\n\n return (\n <>\n
\n
\n \"logo\n
\n
\n setSideBarOptionSelected('MAPA')}\n className=\"button__mapa\"\n to={\"/mapadepastos\"}\n >\n \n VER MAPA\n \n
\n\n \n {\n setSideBarOptionSelected('DASHBOARD')\n }}\n />\n\n {\n setSideBarOptionSelected('DASHBOARD')\n }}\n >\n \n \n \n \n\n {/* {\n setSideBarOptionSelected('DASHBOARD')\n }}\n >\n \n \n */}\n \n\n \n {\n setSideBarOptionSelected('MAPA')\n }}\n >\n \n \n \n\n {\n setSideBarOptionSelected('MAPA')\n }}\n />\n {\n setSideBarOptionSelected('MAPA')\n }}\n >\n \n \n \n \n \n \n\n
\n {permission && (\n <>\n
\n { setShowTasklistModal(true) }} >\n
\n \n
Criar tarefas
\n
\n
\n
\n \n \n \n \n )}\n \n
\n
\n
\n Versão {packageJsonInfo.version}\n
\n
\n \n \n );\n}\n","import { createContext, ReactNode, useEffect, useState } from \"react\";\nimport { IOptionProps } from \"../@types/reactSelect/IOption\";\nimport { Card } from \"../components/Card/Index\";\nimport axios from \"../services/axios\";\n\nexport type IOptionsEditOnboarding =\n | \"farms\"\n | \"areas\"\n | \"micro-areas\"\n | \"batches\"\n | \"animal_category\"\n | \"goals_birth\"\n | \"goals_death\"\n | \"create_products\"\n | \"evaluations\"\n | \"task_evaluations\"\n | \"pasture_management\"\n | \"create_evaluator\"\n | \"profiles\";\n\ntype ICard = {\n id: number;\n initial: string;\n initialBatch?: string;\n name: string;\n qtdArea?: number;\n qtdMicroArea?: number;\n qtdAnimals?: number;\n managementType?: any;\n info?: any;\n};\n\ntype EditOnboarding = {\n listCards: ICard[];\n defaultValue: any;\n filterSelected: IOptionsEditOnboarding;\n setFilterSelected: (value: IOptionsEditOnboarding) => void;\n optionForm: IOptionsEditOnboarding | undefined;\n setOptionForm: (value: IOptionsEditOnboarding | undefined) => void;\n setDefaultValue: (value: any) => void;\n idSelected: number;\n setIdSelected: (value: number) => void;\n totalPages: number;\n currentPage: number;\n setCurrentPage: (value: number) => void;\n queryToSearch: string;\n setQueryToSearch: (query: string | undefined) => void;\n};\n\ntype EditOnboardingProps = {\n children: ReactNode;\n};\n\nconst EditOnboardingContext = createContext({} as EditOnboarding);\n\nfunction EditOnboardingProvider({ children }: EditOnboardingProps) {\n const [filterSelected, setFilterSelected] =\n useState(undefined);\n const [listCards, setListCads] = useState([]);\n const [optionForm, setOptionForm] = useState<\n IOptionsEditOnboarding | undefined\n >(undefined);\n const [idSelected, setIdSelected] = useState(0);\n const [defaultValue, setDefaultValue] = useState({});\n const [totalPages, setTotalPages] = useState(0);\n const [currentPage, setCurrentPage] = useState(1);\n const [queryToSearch, setQueryToSearch] = useState();\n\n useEffect(() => {\n if (!optionForm) {\n setIdSelected(0);\n setDefaultValue(undefined);\n }\n }, [optionForm]);\n\n useEffect(() => {\n setQueryToSearch(undefined);\n setCurrentPage(1);\n }, [filterSelected]);\n\n useEffect(() => {\n if (filterSelected) {\n switch (filterSelected) {\n case \"animal_category\":\n case 'goals_birth':\n case 'goals_death':\n case 'create_products':\n case 'create_evaluator':\n case 'task_evaluations':\n break;\n default:\n getCards();\n break;\n }\n }\n }, [queryToSearch, filterSelected, currentPage, optionForm]);\n\n useEffect(() => {\n setCurrentPage(1);\n }, [queryToSearch]);\n\n function getCards() {\n if (filterSelected && (filterSelected.includes(\"evaluation\") || filterSelected.includes(\"task_evaluations\")))\n return;\n\n if (filterSelected != 'pasture_management') {\n const toSearch = queryToSearch ? `&query=${queryToSearch}` : \"\";\n axios\n .get(`/${filterSelected}/search?page=${currentPage - 1}${toSearch}`)\n .then((response) => {\n const listCards: ICard[] = response.data.content.map((card: any) => {\n var fullInitials = \"\";\n var batchInitials = undefined;\n switch (filterSelected) {\n case \"farms\":\n fullInitials = card.initials;\n break;\n case \"areas\":\n fullInitials = `${card.farm_initials}-${card.initials}`;\n break;\n case \"micro-areas\":\n fullInitials = `${card.farm_initials}-${card.area_initials}-${card.initials}`;\n break;\n case \"batches\":\n fullInitials = `${card.farm_initials}-${card.area_string}`;\n batchInitials = `${card?.initials}`;\n break;\n }\n return {\n id: card.id,\n initial: fullInitials,\n initialBatch: batchInitials,\n name: card.name,\n qtdArea: card?.qtd_areas,\n qtdMicroArea: card?.qtd_micro_areas,\n qtdAnimals: card?.qtd_animals,\n } as ICard;\n });\n setListCads(listCards);\n setTotalPages(Number(response.data.total_pages));\n });\n } else {\n axios\n .get(`/micro-area-management?page=${currentPage - 1}&size=8`)\n .then((response) => {\n const listCards: ICard[] = response.data.content.map((card: any) => {\n return {\n id: card.id,\n initial: card.micro_area[0].management.type?.name,\n initialBatch: card.micro_area[0].management.type.monitoring_types[0].name,\n managementType: card.micro_area[0].management,\n info: card\n } as ICard;\n });\n setListCads(listCards);\n setTotalPages(Number(response.data.total_pages));\n });\n }\n }\n\n useEffect(() => {\n if (idSelected != 0) {\n if (filterSelected == \"farms\") {\n // Requisição da fazenda por idSelected\n axios.get(`/farms/${idSelected}`).then(({ data }) => {\n var defaultForm = {\n id: data?.id,\n name: data?.name,\n initials: data?.initials,\n document: data?.document || \"\",\n state_registration: data?.state_registration || \"\",\n owner_user_id: {\n label: data?.owner_user?.name,\n value: data?.owner_user?.id,\n },\n address: {\n state: {\n label: data?.address?.state,\n value: data?.address?.state,\n },\n city: {\n label: data?.address?.city?.name,\n value: data?.address?.city?.code,\n },\n },\n season: data?.properties?.season,\n map_coords: data?.map_coords,\n };\n setDefaultValue(defaultForm);\n });\n } else if (filterSelected == \"micro-areas\") {\n // Requisição de pasto por idSelected\n axios.get(`/micro-areas/${idSelected}`).then(({ data }) => {\n var defaultForm = {\n id: data?.micro_area_id,\n initials: data?.micro_area_initials,\n farm_id: data?.farm_id,\n farm_initials: data?.farm_initials,\n area_id: data?.area_id,\n area_initials: data?.area_initials,\n map_coords: data?.micro_area_map_coords?.map((coords: any) => ({\n lat: coords?.latitude,\n lng: coords?.longitude,\n })),\n reason_id: data?.micro_area_reason_id,\n batch_initials: data?.batch_initials,\n remaining_area: data?.remaining_area + data?.acreage,\n acreage: data?.acreage?.toFixed(2),\n batchId: data?.batch_id,\n animalsAmount: data?.animals_amount,\n };\n\n setDefaultValue(defaultForm);\n });\n } else if (filterSelected == \"batches\") {\n // Requisição de lote por idSelected\n axios.get(`/batches/${idSelected}`).then(({ data }) => {\n var defaultForm = {\n id: data?.id,\n farm_id: data?.farm_id,\n area_id: data?.area_id,\n initialsArea: `${data?.farm_initials}-${data?.area_initials}`,\n initials: data?.initials,\n current_micro_area_id: {\n value: `${data?.current_micro_area_id}`,\n },\n micro_area_route_ids: data?.micro_areas_in_route.map(\n (option: any) => ({\n label: `${data?.farm_initials}-${data?.area_initials}-${option?.initials}`,\n value: `${option?.id}`,\n })\n ),\n category: data?.batch_categories.map((option: any) => ({\n value: `${option?.id}`,\n info: option?.qtd,\n })),\n };\n\n setDefaultValue(defaultForm);\n });\n }\n }\n }, [idSelected]);\n\n useEffect(() => {\n if (idSelected != 0 && !optionForm) setOptionForm(filterSelected);\n }, [defaultValue]);\n\n return (\n \n {children}\n \n );\n}\n\nexport { EditOnboardingContext, EditOnboardingProvider };\n","import { useEffect, useRef, useState } from 'react';\nimport ReactSelect, { Props as SelectProps } from 'react-select';\nimport { ReactComponent as ChevronIcon } from '../../../assets/svg/icons/chevronDown.svg';\nimport { IOptionProps, IOptionsProps } from '../../../@types/reactSelect/IOption';\n\ninterface ReactSelectProps extends SelectProps {\n handleAnywhereChanges?: (event?: any) => void;\n getSelectedData?: (data: IOptionProps[], action?: string) => void;\n}\n\nconst mHeight = '300px';\nconst speed = '300ms';\n\nexport function DropdownMultiSelect({\n options,\n getSelectedData,\n handleAnywhereChanges,\n ...rest\n}: ReactSelectProps) {\n const selectRef = useRef(null);\n const [open, setOpen] = useState(rest.menuIsOpen);\n const [value, setvalue] = useState(null);\n const [selectOptions, setSelectOption] = useState([]);\n const [upData, setUpData] = useState(false);\n\n const selectStyles = () => ({\n option: (provided: any, state: any) => ({\n ...provided,\n position: 'relative',\n background: 'transparent',\n color: state.isSelected ? '#4D4D4D' : '#999999',\n textTransform: 'captilize',\n opacity: open ? 1 : 0.5,\n transition: `all ${speed} ease-in-out`,\n paddingLeft: '12px',\n height: '51px',\n '&:hover': {\n background: 'transparent',\n color: '#4D4D4D',\n cursor: 'pointer'\n },\n '&:last-child': {\n }\n }),\n control: (provided: any, { isDisabled }: any) => ({\n ...provided,\n borderRadius: !open ? '9px' : '9px 9px 0px 0px',\n background: rest.isDisabled ? '#F1F1F1' : '#FFF',\n outline: 'none',\n minHeight: '56px',\n boxShadow: 'none',\n border: `1px solid #e5e5e5 !important`,\n fontSize: 12,\n transition: `all ${speed} ease-in-out`,\n zIndex: 3,\n paddingLeft: '20px',\n paddingRight: '20px',\n cursor: isDisabled ? 'not-allowed' : 'default'\n }),\n menu: (provided: any) => ({\n ...provided,\n borderRadius: '0px 0px 9px 9px ',\n outline: 'none',\n boxShadow: 'none',\n borderLeft: `1px solid #e5e5e5 !important`,\n borderRight: `1px solid #e5e5e5 !important`,\n borderBottom: `1px solid #e5e5e5 !important`,\n position: 'relative',\n marginTop: '-10px',\n paddingTop: '10px',\n paddingLeft: '12px',\n paddingRight: '12px',\n marginBottom: '0px',\n fontSize: 18,\n maxHeight: open ? mHeight : '0px',\n overflow: 'hidden',\n opacity: open ? 1 : 0.5,\n transition: `all ${speed} ease-in-out`,\n visibility: open ? 'visible' : 'hidden',\n animation: open ? `ease selectOpen ${speed} forwards` : `ease selectClose ${speed} forwards`,\n zIndex: 2,\n }),\n menuList: (defaultStyles: any) => ({\n ...defaultStyles,\n maxHeight: '270px'\n }),\n indicatorsContainer: (defaultStyles: any) => ({\n ...defaultStyles,\n transition: 'ease-in-out 400ms',\n transform: open ? 'rotateZ(0deg)' : 'rotateZ(180deg)',\n }),\n input: (defaultStyles: any) => ({\n ...defaultStyles,\n margin: 0,\n padding: 0\n }),\n valueContainer: (defaultStyles: any) => ({\n ...defaultStyles,\n padding: 0\n }),\n noOptionsMessage: (defaultStyles: any) => ({\n ...defaultStyles,\n with: '100%',\n padding: '12px 0',\n margin: '0px'\n })\n });\n\n function onSelectChanges(event?: any) {\n if (event && handleAnywhereChanges) handleAnywhereChanges(event);\n }\n\n useEffect(() => {\n if (rest.defaultMenuIsOpen) {\n setOpen(rest.defaultMenuIsOpen);\n }\n }, [rest.defaultMenuIsOpen]);\n\n useEffect(() => {\n if (value) onSelectChanges(value);\n }, [value]);\n\n useEffect(() => {\n if (options && options.length) {\n setSelectOption(() =>\n options.map((option: IOptionProps) => ({\n label: String(option.label),\n value: String(option.value),\n info: option?.info\n }))\n );\n setUpData(!upData)\n }\n else {\n setSelectOption([])\n }\n }, [options]);\n\n useEffect(() => {\n if (rest.isDisabled) {\n setOpen(false)\n }\n }, [rest.isDisabled])\n\n return (\n {\n if (!rest.isDisabled) setOpen((prevState) => !prevState);\n }}>\n null,\n IndicatorSeparator: () => null,\n DropdownIndicator: () => \n }}\n onChange={(data, { action }) => {\n getSelectedData && getSelectedData(data, action);\n if (action) setOpen(rest.closeMenuOnSelect);\n if (action) setvalue(data);\n }}\n className=\"react-select\"\n />\n
\n );\n}\n","import { useEffect, useRef, useState } from \"react\";\nimport \"./styles.css\";\n\nimport axios from \"../../../services/axios\";\n\nimport {\n DropDownSearch,\n DropDownSearchFilterProps,\n DropDownSearchFilterRefProps,\n} from \"../../Filters/DropDownSearch/Index\";\nimport { DropDownFilterRefProps, DropDownSelect } from \"../../Filters/DropDown/Index\";\n\nimport { DropDownSelectProps } from \"../../../@types/app/DropDownFilters/IDropDownSelect\";\nimport { IOptionProps, IOptionsProps } from \"../../../@types/reactSelect/IOption\";\nimport { IFarm, IFarms, OwnerUserProps } from \"../../../@types/API/IFarm\";\nimport { IMicroAreas } from \"../../../@types/API/IMicroArea\";\nimport { IArea, IAreas } from \"../../../@types/API/IArea\";\nimport { IBatches } from \"../../../@types/API/IBatches\";\nimport { useFilter } from \"../../../hooks/useFilter\";\nimport { sortBy } from \"../../../utils/arrays/sortBy\";\nimport { useAuth } from \"../../../hooks/useAuth\";\nimport { useNavigate } from \"react-router-dom\";\nimport { getFarmsAsOptions } from \"../../../utils/farms/farmsAsOptions\";\nimport { getAreasAsOptions } from \"../../../utils/farms/areasAsOptions\";\nimport { getMicroAreasAsOptions } from \"../../../utils/farms/microAreasAsOptions\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\nimport { ReactComponent as ChevronIcon } from '../../../assets/svg/icons/chevronDown.svg';\nimport { DropdownMultiSelect } from \"../../Filters/DropDownMultiSelect/Index\";\n\ninterface IDropDownFarmsProps extends Omit {\n getFarmsFiltereds?: (farms: IFarms) => void; // Devolve as fazendas após a seleção do usuário\n overrideOnChange?: (id: string) => void; // Sobrescreve o médoto onChange das fazendas\n getFarmsData?: (farms: IFarms) => void; // Devolve todas as fazendas vindas da API\n options?: IOptionsProps; // Define manualmente as opções a serem exibidas\n}\n\ninterface IOwnerFarmProps {\n getCurrentOwnerUser?: (owner: OwnerUserProps | undefined) => void; // Devolve o atual responável da fazenda\n}\n\ninterface IDropDownAreaProps extends Omit {\n getAreasFilteredsOnlyIds?: (areas: Array) => void; // Devolve os retiros filtrados na seleção\n getAreasFiltereds?: (areas: IAreas) => void; // Devolve os retiros filtrados na seleção\n overrideOnChange?: (id: string) => void; // Sobrescreve o médoto onChange das fazendas\n getAreasData?: (areas: IAreas) => void; // Devolve todos os retiros vindos da API\n}\n\ninterface IMicroAreasProps extends Omit {\n getMicroAreasFilteredsOnlyIds?: (microIds: Array) => void; // Devolve os ids filtrados na seleção\n getMicroAreasFiltereds?: (microAreas: IMicroAreas) => void; // Devolve os pastos filtrados na seleção\n exportDefaultOption?: (option: IOptionProps | undefined) => void; // Devolve a ultima opção escolhida no filtro\n getMicroAreasData?: (microAreas: IMicroAreas) => void; // Devolve todos pastos vindos da API\n overrideOnChange?: (id: string | undefined) => void; // Sobrescreve o médoto onChange das fazendas\n}\n\ninterface IBatchesProps extends Omit {\n getBatchesFilteredsOnlyIds?: (batchesIds: Array) => void; // Devolve os ids filtrados na seleção\n overrideOnChange?: (id: string | undefined) => void; // Sobrescreve o médoto onChange das fazendas\n exportDefaultOption?: (option: IOptionProps | undefined) => void; // Devolve a ultima opção escolhida no filtro\n getBatchesFiltereds?: (batches: IBatches) => void; // Devolve os lotes filtrados na seleção\n getBatchesData?: (batches: IBatches) => void; // Devolve todos os lotes vindos da API\n}\n\ntype FilterDataPolygonsProps = {\n searchMicroAreaProps?: IMicroAreasProps; // Propriedades para o filtro de pastos\n dropdownFarmProps?: IDropDownFarmsProps; // Propriedades para o filtro de Fazenda\n dropdownAreaProps?: IDropDownAreaProps; // Propriedades para o filtro de retiros\n ownerFarmProps?: IOwnerFarmProps; // Propriedades para o responsável da Fazenda\n searchLotsProps?: IBatchesProps; // Propriedades para o filtro de lotes\n throwAnyError?: (error: any) => void; // Função genérica para estouro de erros\n hideMicroAreas?: boolean;\n hideLots?: boolean;\n};\n\nexport function FilterDataPolygons(props: FilterDataPolygonsProps) {\n const {\n hideMicroAreas = false,\n searchMicroAreaProps,\n dropdownAreaProps,\n dropdownFarmProps,\n hideLots = false,\n searchLotsProps,\n ownerFarmProps,\n throwAnyError,\n } = props;\n const { farmFilter, areaFilter, sideBarOptionSelected, setAreasIdsFilter } = useFilter();\n const { setAllFarms } = useTaskCreation()\n\n // propriedades do dropdown de fazenda\n const [farmProps, setFarmProps] = useState(dropdownFarmProps);\n const [currentFarm, setCurrentFarm] = useState(farmFilter || undefined);\n const [farmOptions, setFarmOptions] = useState([]);\n const [farms, setFarms] = useState([]);\n\n // propriedades da busca por pastos\n const [microAreaProps] = useState(searchMicroAreaProps);\n const [microAreasOptions, setMicroAreasOptions] = useState([]);\n const [microAreas, setMicroAreas] = useState([]);\n const [defaultMicroArea, setDefaultMicroArea] = useState(undefined);\n const microAreasRef = useRef();\n\n // propriedades do dropdown de retiro\n const [areaProps, setAreaProps] = useState(dropdownAreaProps);\n const [currentArea, setCurrentArea] = useState(areaFilter || undefined);\n const [areasOptions, setAreasOptions] = useState([]);\n const [areas, setAreas] = useState([]);\n const areasRef = useRef();\n\n // propriedades da busca por lotes\n const [batchesProps] = useState(searchLotsProps);\n const [batchesOptions, setBatchesOptions] = useState([]);\n const [batches, setBatches] = useState([]);\n const [defaultBatch, setDefaultbatch] = useState(undefined);\n const batchesRef = useRef();\n\n // [INICIO] - funções manipuladoras para o dropdown de fazenda\n function handleReturnFarmsFiltereds(farms: IFarms, idFilter?: string) {\n if (dropdownFarmProps) {\n const { getFarmsFiltereds } = dropdownFarmProps;\n getFarmsFiltereds && getFarmsFiltereds(farms.filter((f) => f.id === idFilter));\n }\n }\n async function getFarmByID(idFilter: string, farmsArray?: IFarms) {\n return await new Promise((resolve) => {\n resolve((farmsArray || farms).find((f) => f.id === idFilter));\n });\n }\n\n function handleWhenFarmChange(id: string) {\n if (dropdownFarmProps && currentFarm?.id !== id) {\n const { overrideOnChange, onChange, getFarmsFiltereds } = dropdownFarmProps;\n if (overrideOnChange) overrideOnChange(id);\n else {\n const farmFounded = farms.find((farm: any) => farm.id === id);\n setCurrentFarm(farmFounded);\n setFarmProps((props) => ({ ...props, label: farmFounded?.initials }));\n onChange && onChange(id);\n handleReturnFarmsFiltereds(farms, id);\n if (areasRef && areasRef.current) {\n areasRef.current?.resetDropDown()\n setAreasOptions([])\n };\n if (microAreasRef && microAreasRef.current) {\n microAreasRef.current?.resetDropDownFilter()\n setMicroAreasOptions([])\n };\n if (batchesRef && batchesRef.current) {\n batchesRef.current?.resetDropDownFilter()\n setBatchesOptions([])\n };\n }\n }\n }\n async function initFarms(farms: IFarms) {\n setFarms(farms);\n const options = getFarmsAsOptions(farms);\n const [farm] = options;\n const defaultPosition = dropdownFarmProps?.defaultValue;\n setFarmOptions(() => options);\n const farmID =\n defaultPosition && typeof defaultPosition !== \"string\" ? defaultPosition.value : farm.value;\n getFarmByID(farmID, farms)\n .then((farm) => {\n if (farm) {\n setCurrentFarm(() => farm);\n handleReturnFarmsFiltereds(farms, farm.id);\n setFarmProps((props) => ({\n ...props,\n defaultValue: { label: farm.name, value: farm.id } as IOptionProps,\n }));\n } else throw new Error(\"Erro no filtro de\");\n })\n .catch((error) => throwFilterErrors(error));\n }\n // Isso atualiza o componente de fazenda\n useEffect(() => {\n if (currentFarm) {\n setFarmProps((props) => ({\n ...props,\n label: currentFarm?.initials,\n }));\n // Isso vem das funções manipuladoras do responsável da fazenda\n handleCurrentOwneruser(currentFarm);\n initAreas();\n initMicroAreas(currentFarm?.id);\n }\n }, [currentFarm]);\n // Isso devolve os dados de fazenda atualizados\n useEffect(() => {\n if (dropdownFarmProps) {\n const { getFarmsData } = dropdownFarmProps;\n getFarmsData && getFarmsData(farms);\n }\n }, [farms]);\n // [FIM] - funções manipuladoras para o dropdown de fazenda\n\n // propriedades do prorietário da fazenda\n const [currentOwnerUser, setCurrentOwnerUser] = useState(undefined);\n // [INICIO] - funções manipuladoras prorietário da fazenda\n function handleCurrentOwneruser(currentFarm: IFarm) {\n setCurrentOwnerUser(currentFarm.owner_user);\n }\n useEffect(() => {\n if (ownerFarmProps) {\n const { getCurrentOwnerUser } = ownerFarmProps;\n getCurrentOwnerUser && getCurrentOwnerUser(currentOwnerUser);\n }\n }, [currentOwnerUser]);\n // [FIM] - funções manipuladoras prorietário da fazenda\n\n\n\n // [INICIO] - funções manipuladoras do dropdown de retiro\n function handleReturnAreasFiltereds(areas: IAreas, idFilter?: string) {\n if (dropdownAreaProps && currentArea?.id !== idFilter) {\n const { getAreasFiltereds, getAreasFilteredsOnlyIds } = dropdownAreaProps;\n const areasFiltereds = areas.filter((f) => f.id === idFilter);\n getAreasFiltereds && getAreasFiltereds(areasFiltereds);\n getAreasFilteredsOnlyIds && getAreasFilteredsOnlyIds(areasFiltereds.map((a) => a.id as string));\n }\n }\n function handleWhenAreaChange(areaId: string) {\n if (dropdownAreaProps) {\n const { overrideOnChange } = dropdownAreaProps;\n if (overrideOnChange) overrideOnChange(areaId);\n else {\n const area = areas.find((a) => a.id == areaId);\n setAreaProps((props) => ({\n ...props,\n label: area?.initials,\n }));\n setCurrentArea(() => area);\n handleReturnAreasFiltereds(areas, area?.id);\n const labelInitials = `${currentFarm?.initials || \"\"}${area ? `-${area?.initials}-` : \"-\"}`;\n setMicroAreasOptions(() => getMicroAreasAsOptions(microAreas, area?.id, labelInitials));\n initBatches(area?.id, labelInitials);\n if (microAreasRef && microAreasRef.current) microAreasRef.current.resetDropDownFilter();\n if (batchesRef && batchesRef.current) batchesRef.current.resetDropDownFilter();\n }\n }\n }\n async function getAPIAreas(farmId?: string) {\n return await axios\n .get(\"areas\", { params: { farm_id: farmId || currentFarm?.id } })\n .then(({ data }) => {\n const areas: IAreas = data;\n if (areas.length > 0) return areas;\n else throw new Error(\"Vetor de areas vazio\");\n })\n .catch((error) => {\n throwFilterErrors(error);\n return undefined;\n });\n }\n\n async function initAreas() {\n const areas = await getAPIAreas();\n if (areas) {\n setAreasOptions(() => getAreasAsOptions(areas).sort(sortBy(\"label\")));\n setAreas(areas);\n }\n }\n useEffect(() => {\n if (dropdownAreaProps) {\n const { getAreasData } = dropdownAreaProps;\n getAreasData && getAreasData(areas);\n }\n }, [areas]);\n // [FIM] - funções manipuladoras do dropdown de retiro\n\n\n\n // [INICIO] - funções manipuladoras da busca por pastos\n function handleWhenMicroAreaChange(microId: string | undefined) {\n if (searchMicroAreaProps) {\n const { overrideOnChange, getMicroAreasFiltereds, getMicroAreasFilteredsOnlyIds } =\n searchMicroAreaProps;\n if (overrideOnChange) overrideOnChange(microId);\n else {\n const microAreaFounded = microAreas.filter((m) => m.id === microId);\n getMicroAreasFiltereds && getMicroAreasFiltereds(microAreaFounded);\n getMicroAreasFilteredsOnlyIds &&\n getMicroAreasFilteredsOnlyIds(microAreaFounded.map(({ id }) => id as string));\n }\n // microAreasRef && microAreasRef.current?.resetDropDownFilter();\n }\n }\n\n async function getAPIMicroAreas(farmId?: string) {\n return await axios\n .get(\"micro-areas\", { params: { farm_id: farmId } })\n .then(({ data }) => {\n const microAreas: IMicroAreas = data;\n if (microAreas.length > 0) return microAreas;\n else throw new Error(\"Vetor de micro areas vazio\");\n })\n .catch((error) => {\n throwFilterErrors(error);\n return undefined;\n });\n }\n async function initMicroAreas(farmId?: string) {\n const microAreasResp = await getAPIMicroAreas(farmId);\n if (microAreasResp) {\n setMicroAreas(() => microAreasResp);\n }\n }\n function exportDefaultOptionMicroAreas(option: IOptionProps | undefined) {\n if (searchMicroAreaProps) {\n const { exportDefaultOption } = searchMicroAreaProps;\n exportDefaultOption && exportDefaultOption(option);\n }\n }\n useEffect(() => {\n if (searchMicroAreaProps) {\n const { defaultOption } = searchMicroAreaProps;\n setDefaultMicroArea(defaultOption);\n } else setDefaultMicroArea(undefined);\n }, [searchMicroAreaProps]);\n\n useEffect(() => {\n if (searchMicroAreaProps) {\n const { getMicroAreasData: getMicroData } = searchMicroAreaProps;\n getMicroData && getMicroData(microAreas);\n }\n }, [microAreas]);\n // [FIM] - funções manipuladoras da busca por pastos\n\n\n\n // [INICIO] - funções manipuladoras da busca por lotes\n function getBatchesAsOptions(batchesArray: IBatches, areaId: string | undefined, label?: string) {\n let filtereds: IOptionsProps = [];\n if (areaId) {\n filtereds = batchesArray\n .filter((b) => b.area.id === areaId)\n .map((b) => ({ label: `${label ? label : \"\"}${b.initials}`, value: b.id }));\n }\n setBatchesOptions(() => filtereds.sort(sortBy(\"label\")));\n }\n function handleWhenBatchesChange(batchId: string | undefined) {\n if (searchLotsProps) {\n const { overrideOnChange, getBatchesFiltereds, getBatchesFilteredsOnlyIds } = searchLotsProps;\n if (overrideOnChange) overrideOnChange(batchId);\n else {\n const batchesFounded = batches.filter((m) => m.id === batchId);\n getBatchesFiltereds && getBatchesFiltereds(batchesFounded);\n getBatchesFilteredsOnlyIds &&\n getBatchesFilteredsOnlyIds(batchesFounded.map(({ id }) => id as string));\n }\n }\n }\n async function getAPIBatches(areaId?: string) {\n return await axios\n .get(\"batches\", { params: { area_id: areaId } })\n .then(({ data }) => {\n const batches: IBatches = data;\n if (batches.length > 0) return batches;\n else throw new Error(\"Vetor de micro areas vazio\");\n })\n .catch((error) => {\n throwFilterErrors(error);\n return undefined;\n });\n }\n async function initBatches(areaId?: string, label?: string) {\n const batches = await getAPIBatches(areaId);\n if (batches) {\n setBatches(() => batches);\n getBatchesAsOptions(batches, areaId, label);\n }\n }\n function exportDefaultOptionBatches(option: IOptionProps | undefined) {\n if (searchLotsProps) {\n const { exportDefaultOption } = searchLotsProps;\n exportDefaultOption && exportDefaultOption(option);\n }\n }\n useEffect(() => {\n if (searchLotsProps) {\n const { getBatchesData } = searchLotsProps;\n getBatchesData && getBatchesData(batches);\n }\n }, [batches]);\n useEffect(() => {\n if (searchLotsProps) {\n const { defaultOption } = searchLotsProps;\n setDefaultbatch(defaultOption);\n } else setDefaultbatch(undefined);\n }, [searchLotsProps]);\n // [FIM] - funções manipuladoras da busca por lotes\n\n // Função genérica para controle e estouro de erros\n const throwFilterErrors = (error: any) => throwAnyError && throwAnyError(error);\n const { user } = useAuth();\n const navigate = useNavigate();\n\n useEffect(() => {\n axios\n .get(\"farms/user\")\n .then(({ data }) => {\n const farmsData: IFarms = data;\n if (farmsData.length > 0) {\n initFarms(farmsData);\n setAllFarms(data)\n }\n else if (user.role == 'MASTER') navigate(\"/bemvindo/onboarding\")\n else throw new Error(\"Vetor de fazendas vazio\");\n })\n .catch((error) => throwFilterErrors(error));\n }, [, user]);\n\n return (\n
\n {/* [INICIO] - Componente de Fazenda */}\n
\n {farmProps && }\n
\n {/* [FIM] - Componente de Fazenda */}\n {/* [INICIO] - Componente de Responsável */}\n {currentOwnerUser && (\n
\n
\n responsável\n
{currentOwnerUser.name}
\n
\n
\n )}\n {/* [FIM] - Componente de Responsável */}\n {/* [INICIO] - Componente de Retiros */}\n
\n {areaProps && sideBarOptionSelected == \"DASHBOARD\" ?\n null,\n IndicatorSeparator: () => null,\n DropdownIndicator: () => \n }}\n getSelectedData={(sel) => setAreasIdsFilter(sel)}\n placeholder=\"Retiros\"\n noOptionsMessage={() => \"Todos os retiros\"}\n menuShouldScrollIntoView\n isMulti\n />\n :\n \n }\n
\n {/* [FIM] - Componente de Retiros*/}\n {/* [INICIO] - Componente de Pastos */}\n
\n {!hideMicroAreas && microAreaProps && (\n \n )}\n
\n {/* [FIM] - Componente de Pastos*/}\n {/* [INICIO] - Componente de Lotes */}\n
\n {!hideLots && batchesProps && (\n \n )}\n
\n {/* [FIM] - Componente de Lotes */}\n
\n );\n}\n","import { useFilter } from \"../../../../hooks/useFilter\";\nimport \"../styles.css\"\n\nexport function InfoCattleMap() {\n const {\n balance,\n balanceCapacity\n } = useFilter();\n\n return (\n
\n
\n Saldo inicial\n
{balance?.reduce((acc, item) => acc + item.opening_balance, 0)}
\n
\n\n
\n
\n Nascimentos\n
+{balance?.reduce((acc, item) => acc + item.birth, 0)}
\n
\n
\n Mortes\n
{balance?.reduce((acc, item) => acc + item.death, 0)}
\n
\n
\n\n
\n
\n Compras\n
+{balance?.reduce((acc, item) => acc + item.shopping, 0)}
\n
\n
\n Vendas\n
{balance?.reduce((acc, item) => acc + item.sales, 0)}
\n
\n
\n\n
\n Saldo final\n
{balance?.reduce((acc, item) => acc + item.end_balance, 0)}
\n
\n\n
\n lotação (ua/ha)\n
{balanceCapacity && balanceCapacity[0] ? (balanceCapacity?.reduce((acc, item) => acc + item.ua_total, 0) / balanceCapacity[0].total_capacity).toFixed(2) : null}
\n
\n
\n );\n}","import { FilterDataPolygons } from \"../../../../components/PaddocksMap/FilterDataPolygons/Index\";\nimport { InfoCattleMap } from \"../../../../components/Dashboard/ViewDatas/InfoCattleMap\";\nimport { LeafletMap } from \"../../../../components/Leaflet/LeafletMap/Index\";\nimport { getCenterCoords } from \"../../../../utils/leaflet/getCenterCoords\";\nimport { IOptionProps } from \"../../../../@types/reactSelect/IOption\";\nimport { IMicroAreas } from \"../../../../@types/API/IMicroArea\";\nimport { ICoords } from \"../../../../@types/GoogleMaps/ICoord\";\nimport { IBatches } from \"../../../../@types/API/IBatches\";\nimport { useFilter } from \"../../../../hooks/useFilter\";\nimport { ReactNode, useEffect, useState } from \"react\";\nimport { IAreas } from \"../../../../@types/API/IArea\";\nimport { IFarms } from \"../../../../@types/API/IFarm\";\nimport \"./styles.css\"\n\ntype MapsIndexProps = {\n children: ReactNode;\n};\n\ntype ICustomFarm = {\n id: string;\n initials: string;\n coords: ICoords;\n name: string;\n bgColor: string;\n};\n\ntype ICustomArea = {\n id: string;\n initials: string;\n coords: ICoords;\n name: string;\n bgColor: string;\n farmId: string;\n};\n\nexport function Index({ children }: MapsIndexProps) {\n const {\n farmFilter,\n setFarmFilter,\n areaFilter,\n setAreaFilter,\n setMicroArea,\n hideMicroAreaFilter,\n setMicroAreaDefaultOption,\n microAreaDefaultOption,\n setBatchFilter,\n setBatchDefaultOption,\n batchDefaultOption,\n hideBatchFilter,\n sideBarOptionSelected,\n dashboard\n } = useFilter();\n\n const [farmsData, setFarms] = useState([]);\n function getFarmsFiltereds(farms: IFarms) {\n const [currentFiltered] = farms;\n const current = farmsData.find((f) => f.id === currentFiltered.id);\n if (current) {\n const { id, initials, name, map_coords: coords } = current;\n const customFarm = { id, initials, name, coords } as ICustomFarm;\n setFarmFilter(customFarm);\n }\n setAreaFilter(undefined);\n setMicroArea(undefined);\n setMicroAreaDefaultOption(undefined);\n setBatchDefaultOption(undefined);\n setBatchFilter(undefined);\n }\n\n function defaultValueFarm() {\n if (!farmFilter) return undefined;\n return {\n label: `${farmFilter.name} (${farmFilter.initials})`,\n value: farmFilter?.id,\n } as IOptionProps;\n }\n\n const [areasData, setAreasData] = useState([]);\n function getAreasFiltereds(areas: IAreas) {\n const [currentFiltered] = areas;\n if (currentFiltered) {\n const current = areasData.find((f) => f.id === currentFiltered.id);\n if (current && farmFilter) {\n const { id, initials, name, map_coords: coords } = current;\n const customArea = { id, initials, name, coords, farmId: farmFilter.id as string } as ICustomArea;\n setAreaFilter({ ...customArea, bgColor: \"\" });\n }\n } else setAreaFilter(currentFiltered);\n setMicroArea(undefined);\n setBatchFilter(undefined);\n setMicroAreaDefaultOption(undefined);\n setBatchDefaultOption(undefined);\n }\n\n function defaultValueArea() {\n if (!areaFilter) return undefined;\n return {\n label: `${areaFilter.name} (${areaFilter.initials})`,\n value: areaFilter?.id,\n } as IOptionProps;\n }\n\n function getMicroAreasFiltereds(microAreas: IMicroAreas) {\n const [microArea] = microAreas;\n if (microArea) {\n const { area_id, id, initials, map_coords, micro_area_route } = microArea as any;\n setMicroArea({\n areaId: area_id,\n id,\n coords: map_coords,\n initials,\n microAreaRoute: {\n batch: micro_area_route ? micro_area_route.batch : null,\n current: micro_area_route ? micro_area_route.micro_area_route : false,\n },\n });\n } else setMicroArea(undefined);\n }\n\n function getBatchesFiltereds(batches: IBatches) {\n const [batch] = batches;\n if (batch) {\n setBatchFilter({\n areaId: batch.area.id,\n capacityRate: batch.batch_capacity_rate,\n coords: getCenterCoords(batch.current_micro_area.map_coords),\n farmId: farmFilter.id,\n id: batch.id,\n initials: batch.initials,\n microAreaId: batch.current_micro_area.id,\n });\n } else setBatchFilter(undefined);\n }\n\n useEffect(() => {\n if (!farmFilter && farmsData.length > 0) {\n const [farm] = farmsData;\n const { id, initials, map_coords: coords, name } = farm;\n setFarmFilter({\n id,\n initials,\n coords,\n name,\n } as ICustomFarm);\n }\n }, [farmFilter, farmsData]);\n\n return (\n <>\n
\n \n\n {sideBarOptionSelected == \"DASHBOARD\" && dashboard == \"CATTLE_MAP\" && }\n
\n\n {sideBarOptionSelected != \"DASHBOARD\" ? {children} : children}\n \n );\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgBack(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0.43934 10.9393C-0.146446 11.5251 -0.146446 12.4749 0.439341 13.0607L9.98528 22.6066C10.5711 23.1924 11.5208 23.1924 12.1066 22.6066C12.6924 22.0208 12.6924 21.0711 12.1066 20.4853L3.62132 12L12.1066 3.51472C12.6924 2.92893 12.6924 1.97919 12.1066 1.3934C11.5208 0.807612 10.5711 0.807613 9.98528 1.3934L0.43934 10.9393ZM22.5 13.5C23.3284 13.5 24 12.8284 24 12C24 11.1716 23.3284 10.5 22.5 10.5L22.5 13.5ZM1.5 13.5L22.5 13.5L22.5 10.5L1.5 10.5L1.5 13.5Z\",\n fill: \"#4D4D4D\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgBack);\nexport default __webpack_public_path__ + \"static/media/back.664b4a98.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgUsers(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 30,\n height: 30,\n viewBox: \"0 0 30 30\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.25 10C6.25 8.67392 6.77678 7.40215 7.71447 6.46447C8.65215 5.52678 9.92392 5 11.25 5C12.5761 5 13.8479 5.52678 14.7855 6.46447C15.7232 7.40215 16.25 8.67392 16.25 10C16.25 11.3261 15.7232 12.5979 14.7855 13.5355C13.8479 14.4732 12.5761 15 11.25 15C9.92392 15 8.65215 14.4732 7.71447 13.5355C6.77678 12.5979 6.25 11.3261 6.25 10ZM2.5 23.8398C2.5 19.9922 5.61719 16.875 9.46484 16.875H13.0352C16.8828 16.875 20 19.9922 20 23.8398C20 24.4805 19.4805 25 18.8398 25H3.66016C3.01953 25 2.5 24.4805 2.5 23.8398ZM26.3008 25H20.9141C21.125 24.6328 21.25 24.207 21.25 23.75V23.4375C21.25 21.0664 20.1914 18.9375 18.5234 17.5078C18.6172 17.5039 18.707 17.5 18.8008 17.5H21.1992C24.6797 17.5 27.5 20.3203 27.5 23.8008C27.5 24.4648 26.9609 25 26.3008 25ZM19.375 15C18.1641 15 17.0703 14.5078 16.2773 13.7148C17.0469 12.6758 17.5 11.3906 17.5 10C17.5 8.95312 17.2422 7.96484 16.7852 7.09766C17.5117 6.56641 18.4062 6.25 19.375 6.25C21.793 6.25 23.75 8.20703 23.75 10.625C23.75 13.043 21.793 15 19.375 15Z\",\n fill: \"white\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgUsers);\nexport default __webpack_public_path__ + \"static/media/users.7289816a.svg\";\nexport { ForwardRef as ReactComponent };","var _g;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgCalendar(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 30,\n height: 30,\n viewBox: \"0 0 30 30\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"\\xC3\\x8Dcone/Calend\\xC3\\xA1rio\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector\",\n d: \"M9 4.5V6H6.75C5.50781 6 4.5 7.00781 4.5 8.25V10.5H25.5V8.25C25.5 7.00781 24.4922 6 23.25 6H21V4.5C21 3.67031 20.3297 3 19.5 3C18.6703 3 18 3.67031 18 4.5V6H12V4.5C12 3.67031 11.3297 3 10.5 3C9.67031 3 9 3.67031 9 4.5ZM25.5 12H4.5V24.75C4.5 25.9922 5.50781 27 6.75 27H23.25C24.4922 27 25.5 25.9922 25.5 24.75V12Z\",\n fill: \"white\"\n }))));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgCalendar);\nexport default __webpack_public_path__ + \"static/media/calendar.7bcff330.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgDownload(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 28,\n viewBox: \"0 0 24 28\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M22 17.125C22.4973 17.125 22.9742 17.3225 23.3258 17.6742C23.6775 18.0258 23.875 18.5027 23.875 19V24C23.875 24.8288 23.5458 25.6237 22.9597 26.2097C22.3737 26.7958 21.5788 27.125 20.75 27.125H3.25C2.4212 27.125 1.62634 26.7958 1.04029 26.2097C0.45424 25.6237 0.125 24.8288 0.125 24V19C0.125 18.5027 0.322544 18.0258 0.674175 17.6742C1.02581 17.3225 1.50272 17.125 2 17.125C2.49728 17.125 2.97419 17.3225 3.32583 17.6742C3.67746 18.0258 3.875 18.5027 3.875 19V23.375H20.125V19C20.125 18.5027 20.3225 18.0258 20.6742 17.6742C21.0258 17.3225 21.5027 17.125 22 17.125ZM12 0.875C12.4973 0.875 12.9742 1.07254 13.3258 1.42417C13.6775 1.77581 13.875 2.25272 13.875 2.75V14.045L15.9775 11.9425C16.3321 11.6069 16.8037 11.4229 17.2919 11.4296C17.7801 11.4362 18.2465 11.6331 18.5918 11.9782C18.9371 12.3234 19.1342 12.7897 19.1411 13.2779C19.148 13.7661 18.9642 14.2377 18.6287 14.5925L13.5463 19.6763C13.1361 20.0862 12.5799 20.3164 12 20.3164C11.4201 20.3164 10.8639 20.0862 10.4537 19.6763L5.37125 14.5938C5.0297 14.2401 4.84071 13.7665 4.84499 13.2749C4.84926 12.7833 5.04645 12.313 5.39409 11.9653C5.74173 11.6177 6.212 11.4205 6.70362 11.4162C7.19524 11.412 7.66887 11.601 8.0225 11.9425L10.125 14.045V2.75C10.125 2.25272 10.3225 1.77581 10.6742 1.42417C11.0258 1.07254 11.5027 0.875 12 0.875Z\",\n fill: \"white\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgDownload);\nexport default __webpack_public_path__ + \"static/media/download.3b35ddd7.svg\";\nexport { ForwardRef as ReactComponent };","import { useContext } from \"react\";\nimport { EditOnboardingContext } from \"../contexts/EditOnboardingContext\";\n\nexport function useEditOnboarding() {\n const value = useContext(EditOnboardingContext);\n return value;\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgSearch(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 25,\n height: 24,\n viewBox: \"0 0 25 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.91249 6.30869e-07C8.41326 0.000801793 6.93512 0.353238 5.59688 1.02898C4.25864 1.70473 3.09763 2.68493 2.20716 3.89081C1.3167 5.09669 0.721606 6.49462 0.469726 7.97223C0.217845 9.44983 0.316199 10.9659 0.756882 12.3986C1.19757 13.8313 1.96829 15.1407 3.0071 16.2214C4.04591 17.3022 5.32384 18.1243 6.73818 18.6215C8.15251 19.1188 9.6638 19.2774 11.1506 19.0845C12.6374 18.8917 14.0581 18.3528 15.2988 17.5112L21.2218 23.4282C21.3863 23.6047 21.5847 23.7463 21.8051 23.8445C22.0255 23.9427 22.2635 23.9955 22.5048 23.9997C22.7461 24.004 22.9857 23.9596 23.2095 23.8692C23.4333 23.7789 23.6365 23.6444 23.8072 23.4738C23.9778 23.3032 24.1123 23.0999 24.2027 22.8762C24.2931 22.6525 24.3375 22.4129 24.3332 22.1717C24.329 21.9304 24.2761 21.6925 24.1779 21.4721C24.0797 21.2517 23.9381 21.0534 23.7615 20.8889L17.8434 14.9672C18.8225 13.5265 19.3903 11.8462 19.4857 10.107C19.5811 8.36783 19.2006 6.63553 18.385 5.09637C17.5695 3.55722 16.3497 2.26943 14.8569 1.37147C13.3641 0.473521 11.6547 -0.000631318 9.91249 6.30869e-07ZM3.92242 9.58207C3.92242 7.99375 4.55351 6.47047 5.67687 5.34736C6.80023 4.22424 8.32383 3.59328 9.91249 3.59328C11.5012 3.59328 13.0248 4.22424 14.1481 5.34736C15.2715 6.47047 15.9026 7.99375 15.9026 9.58207C15.9026 11.1704 15.2715 12.6937 14.1481 13.8168C13.0248 14.9399 11.5012 15.5709 9.91249 15.5709C8.32383 15.5709 6.80023 14.9399 5.67687 13.8168C4.55351 12.6937 3.92242 11.1704 3.92242 9.58207Z\",\n fill: \"white\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgSearch);\nexport default __webpack_public_path__ + \"static/media/search.b11936d6.svg\";\nexport { ForwardRef as ReactComponent };","import \"./styles.css\";\nimport { ReactComponent as FarmIcon } from \"../../assets/svg/icons/farmIcon.svg\";\nimport { ReactComponent as AreaIcon } from \"../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as MicroAreaIcon } from \"../../assets/svg/icons/grass.svg\";\nimport { ReactComponent as PenIcon } from \"../../assets/svg/icons/penEdit.svg\";\nimport { ReactComponent as SearchIcon } from \"../../assets/svg/icons/search.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../assets/svg/icons/animais.svg\";\nimport { IOptionsEditOnboarding } from \"../../contexts/EditOnboardingContext\";\nimport ComponentChipOnlyView from \"../Chips/ComponentChipLabel/Index\";\nimport { useEffect, useRef, useState } from \"react\";\n\ntype CardProps = {\n type: IOptionsEditOnboarding;\n initials: string;\n initialBatch?: string;\n name?: string;\n profile?: string;\n qtdArea?: number;\n qtdMicroArea?: number;\n qtdAnimals?: number;\n managementType?: any;\n onClick?: () => void;\n showFarm?: boolean;\n nameFarm?: string;\n showArea?: boolean;\n nameArea?: string;\n listInitialsMicroAreas?: string[];\n};\n\nexport function Card({\n type,\n initials,\n initialBatch,\n name,\n profile,\n qtdArea,\n qtdMicroArea,\n qtdAnimals,\n onClick,\n managementType,\n showFarm,\n nameFarm,\n showArea,\n nameArea,\n listInitialsMicroAreas\n}: CardProps) {\n const colorsMap = new Map()\n colorsMap.set(\"Contínuo\", \"#ff9501af\")\n colorsMap.set(\"Rotacionado\", \"#ff6161af\")\n colorsMap.set(\"Em faixa\", \"#0157ffaf\")\n\n const cardContainerRef = useRef(null);\n const overflowContainerRef = useRef(null);\n\n useEffect(() => {\n const overflowingChildren: HTMLElement[] = [];\n\n const containerOverflow = overflowContainerRef.current;\n if (!containerOverflow) return;\n\n const checkOverflowForChildren = () => {\n Array.from(containerOverflow.children).forEach((child) => {\n const element = child as HTMLElement;\n\n if (!element.hasAttribute(\"hidden\") && Array.from(containerOverflow.children).filter(el => !(el as HTMLElement).hidden).length > 1) {\n if (element.offsetTop + 50 > containerOverflow.clientHeight) {\n\n overflowingChildren.push(element);\n element.hidden = true\n }\n }\n });\n }\n\n checkOverflowForChildren();\n\n const resizeObserver = new ResizeObserver(() => {\n checkOverflowForChildren();\n });\n\n resizeObserver.observe(containerOverflow);\n return () => {\n resizeObserver.disconnect();\n };\n }, [listInitialsMicroAreas]);\n\n useEffect(() => {\n const cardContainer = cardContainerRef.current;\n const containerOverflow = overflowContainerRef.current;\n if (!cardContainer) return;\n\n const cardResize = () => {\n if (containerOverflow) {\n Array.from(containerOverflow.children).forEach((child) => {\n (child as HTMLElement).hidden = false;\n })\n }\n }\n\n cardResize();\n\n const resizeObserver = new ResizeObserver(() => {\n cardResize();\n });\n\n resizeObserver.observe(cardContainer);\n return () => {\n resizeObserver.disconnect();\n };\n }, []);\n\n return (\n \n
\n
\n
\n
\n {initials &&\n
\n {type == \"farms\" ? : <>}\n {type == \"areas\" ? : <>}\n {type == \"micro-areas\" ? : <>}\n {type == \"batches\" ? : <>}\n

{initials}

\n
\n }\n
\n\n {showFarm && nameFarm ? (\n
\n

{nameFarm}

\n
\n ) : (\n \"\"\n )}\n\n {showArea && nameArea ? (\n
\n

{nameArea}

\n
\n ) : (\n \"\"\n )}\n
\n
\n\n {name &&

{name}

}\n\n {profile ? (\n
\n

{profile}

\n
\n ) : (\n \"\"\n )}\n\n
\n <>\n {initialBatch && (\n \n )}\n\n {qtdArea && qtdArea != 0 ? (\n
\n \n

{qtdArea}

\n
\n ) : (\n \"\"\n )}\n\n {qtdMicroArea && qtdMicroArea != 0 ? (\n
\n \n

{qtdMicroArea}

\n
\n ) : (\n \"\"\n )}\n\n {qtdAnimals && qtdAnimals != 0 ? (\n
\n \n

{qtdAnimals}

\n
\n ) : (\n \"\"\n )}\n \n
\n
\n\n
\n \n {listInitialsMicroAreas?.map((microArea, index) => (\n \n

{microArea}

\n
\n ))}\n \n\n
\n
\n {type == \"batches\" ? : }\n
\n
\n \n \n );\n}\n","import useEventListener from \"@use-it/event-listener\";\nimport { useEffect, useState } from \"react\";\nimport { ImSearch } from \"react-icons/im\";\nimport \"./styles.css\";\n\ninterface SearchProps {\n type?: string;\n onClick?: (value: string | undefined) => void;\n onChange?: (value: string | undefined) => void;\n}\n\nexport default function ComponentInputSearch({ type, onClick, onChange }: SearchProps) {\n const [textToSearch, setTextToSearch] = useState();\n\n useEventListener(\"keyup\", (event: KeyboardEvent) => {\n const { key } = event;\n if (key === \"Enter\") onClick && onClick(textToSearch);\n });\n\n useEffect(() => {\n setTextToSearch(\"\");\n }, [type]);\n\n return (\n
\n {\n if(onChange) onChange(value.target.value)\n setTextToSearch(value.target.value)\n }}\n />\n onClick && onClick(textToSearch)}\n />\n
\n );\n}\n","import \"./styles.css\";\nimport { ReactComponent as TrashIcon } from \"../../../assets/svg/icons/trash.svg\";\nimport { ButtonOnlyTitle } from \"../../Buttons/ButtonOnlyTitle/Index\";\n\ntype FooterEditOnboardingProps = {\n undoFunction: (data: any) => void;\n saveFunction: (data: any) => void;\n deleteFunction?: (data: any) => void;\n onlyRead?: boolean;\n disabledSubmit?: boolean;\n isNew: boolean;\n};\n\nexport function FooterEditOnboarding({\n undoFunction,\n saveFunction,\n deleteFunction,\n onlyRead = false,\n isNew = false,\n disabledSubmit = false\n\n}: FooterEditOnboardingProps) {\n return (\n
\n {onlyRead && !isNew ? (\n \"\"\n ) : (\n
\n \n\n \n
\n )}\n\n {!isNew && deleteFunction ? (\n \n \n \n ) : (\n \"\"\n )}\n
\n );\n}\n","import { useEditOnboarding } from \"../../hooks/useEditOnboarding\";\nimport { Card } from \"../Card/Index\";\nimport ChipPressableComponent from \"../Chips/ComponentChipPressable/Index\";\nimport ComponentInputSearch from \"../InputSearch\";\nimport Pagination from \"../Pagination\";\nimport \"./styles.css\";\nimport { useFilter } from \"../../hooks/useFilter\";\nimport { ReactNode } from \"react\";\nimport { FooterEditOnboarding } from \"../EditOnboarding/Footer\";\n\ninterface ViewCardsProps {\n children?: ReactNode;\n searchable?: boolean;\n disabledSubmit?: boolean;\n hideControllsSubmit?: boolean;\n}\n\nexport function ViewCards({ children, searchable = true, disabledSubmit = false, hideControllsSubmit = false }: ViewCardsProps) {\n const {\n filterSelected,\n setFilterSelected,\n listCards,\n setOptionForm,\n totalPages,\n currentPage,\n setIdSelected,\n setDefaultValue,\n setCurrentPage,\n setQueryToSearch,\n } = useEditOnboarding();\n\n const { systemManager } = useFilter();\n\n const OptionsMap = new Map();\n OptionsMap.set(\"farms\", \"Agropecuária ou Fazenda\");\n OptionsMap.set(\"areas\", \"Retiro\");\n OptionsMap.set(\"micro-areas\", \"Pasto\");\n OptionsMap.set(\"batches\", \"Lote\");\n\n function formatDefaultValuesPasteureManagement(data: any) {\n return {\n id: data.id,\n microAreas: data.info.micro_area.map((microArea: any) => (\n {\n label: `${microArea.farm.initials}-${microArea.area.initials}-${microArea.initials}`,\n value: microArea.id,\n info: microArea\n }\n )),\n type: {\n label: data.managementType.type.name,\n value: data.managementType.type.id\n },\n monitor: {\n label: data.managementType.type.monitoring_types[0].name,\n value: data.managementType.type.monitoring_types[0].id\n },\n frequency: data.info.frequency,\n days_of_week: data.info.days_of_week,\n execution_per_day: data.info.execution_per_day,\n start_date: data.info.start_date,\n requirement_in: data.info.requirement_in,\n requirement_out: data.info.requirement_out,\n farm: data.info.micro_area[0].farm,\n area: data.info.micro_area[0].area\n }\n }\n\n const showFarmName = [\"pasture_management\"]\n const showAreaName = [\"pasture_management\"]\n\n return (\n <>\n {/* Filtro */}\n
\n {systemManager == \"PROPERTIES_AREAS\" && (\n <>\n setFilterSelected(\"farms\")}\n />\n setFilterSelected(\"areas\")}\n />\n setFilterSelected(\"micro-areas\")}\n />\n \n )}\n\n {systemManager == \"CREATE_BATCH\" && (\n <>\n setFilterSelected(\"batches\")}\n />\n \n )}\n\n {systemManager == \"CATTLE_MAP\" && (\n <>\n setFilterSelected(\"animal_category\")}\n />\n setFilterSelected('goals_birth')}\n />\n setFilterSelected('goals_death')}\n />\n \n )}\n\n {searchable && <>\n
\n setQueryToSearch(query)}\n />\n
\n }\n
\n {/* Filtro */}\n\n {!!children ? <>\n
\n {children}\n
\n {!hideControllsSubmit && <>\n { }}\n saveFunction={() => { }}\n isNew={false}\n disabledSubmit={disabledSubmit}\n />\n }\n : <>\n {/* Visualização dos cards */}\n {listCards.length > 0 ?
\n {\n listCards.map((card) => (\n {\n if (filterSelected == \"areas\" || filterSelected == \"pasture_management\") setOptionForm(filterSelected)\n setIdSelected(card.id);\n if (filterSelected == \"pasture_management\") setDefaultValue(formatDefaultValuesPasteureManagement(card))\n }}\n managementType={card.managementType}\n showFarm={showFarmName.includes(filterSelected)}\n showArea={showAreaName.includes(filterSelected)}\n nameFarm={card.info && card.info.micro_area! ? card.info.micro_area[0].farm.name : null}\n nameArea={card.info && card.info.micro_area! ? card.info.micro_area[0].area.name : null}\n listInitialsMicroAreas={card.info && card.info.micro_area! && card.info.micro_area.map((mc: any) => mc.initials)}\n />\n ))\n }\n
\n :
\n Nenhum resultado encontrado.\n
\n }\n
\n {/* Visualização dos cards */}\n\n {/* Paginação */}\n
\n setCurrentPage(value)}\n />\n
\n {/* Paginação */}\n }\n \n );\n}\n","import { useEffect, useState } from \"react\";\nimport ReactSelect, { Props as SelectProps } from \"react-select\";\nimport { ReactComponent as ChevronIcon } from \"../../../../assets/svg/icons/chevronDown.svg\";\nimport {\n IOptionProps,\n IOptionsProps,\n} from \"../../../../@types/reactSelect/IOption\";\nimport { Controller } from \"react-hook-form\";\nimport \"./styles.css\";\nimport { deepFind } from \"../../../../utils/objects/deepFind\";\n\ninterface ReactSelectProps extends SelectProps {\n name: string;\n getSelectedData?: (data: IOptionProps, action?: string) => void;\n control: any;\n required?: boolean;\n label?: string;\n placeholderText?: string;\n isSearchable?: boolean;\n errorText?: any;\n}\n\nconst mHeight = \"300px\";\nconst speed = \"300ms\";\n\nexport function Dropdown({\n name,\n options,\n getSelectedData,\n control,\n required = false,\n label,\n placeholderText,\n errorText,\n isSearchable = false,\n ...rest\n}: ReactSelectProps) {\n const [open, setOpen] = useState(rest.menuIsOpen);\n const [selectOptions, setSelectOption] = useState([]);\n const [upData, setUpData] = useState(false);\n const [fieldError, setFieldError] = useState(null);\n\n const selectStyles = () => ({\n option: (provided: any, state: any) => ({\n ...provided,\n position: \"relative\",\n background: \"transparent\",\n color: state.isSelected ? \"#4D4D4D\" : \"#999999\",\n textTransform: \"captilize\",\n fontWeight: \"bold\",\n opacity: open ? 1 : 0.5,\n transition: `all ${speed} ease-in-out`,\n padding: \"0\",\n paddingBottom: \"20px\",\n paddingLeft: \"12px\",\n \"&:hover\": {\n background: \"transparent\",\n color: \"#4D4D4D\",\n cursor: \"pointer\",\n },\n \"&:last-child\": {\n paddingBottom: \"0\",\n },\n }),\n control: (provided: any, { isDisabled }: any) => ({\n ...provided,\n borderRadius: !open ? \"9px\" : \"9px 9px 0px 0px\",\n background: rest.isDisabled ? \"#F1F1F1\" : \"#FFF\",\n outline: \"none\",\n minHeight: \"56px\",\n boxShadow: \"none\",\n border: `1px solid ${(errorText || !!fieldError) ? \"#ff6161\" : \"#e5e5e5\"} !important`,\n fontSize: 18,\n transition: `all ${speed} ease-in-out`,\n zIndex: 0,\n paddingLeft: \"20px\",\n paddingRight: \"20px\",\n cursor: isDisabled ? \"not-allowed\" : \"default\",\n }),\n menu: (provided: any) => ({\n ...provided,\n borderRadius: \"0px 0px 9px 9px\",\n outline: \"none\",\n boxShadow: \"none\",\n borderLeft: `1px solid ${(errorText || !!fieldError) ? \"#ff6161\" : \"#e5e5e5\"} !important`,\n borderRight: `1px solid ${(errorText || !!fieldError) ? \"#ff6161\" : \"#e5e5e5\"} !important`,\n borderBottom: `1px solid ${(errorText || !!fieldError) ? \"#ff6161\" : \"#e5e5e5\"} !important`,\n position: \"relative\",\n marginTop: \"-10px\",\n paddingTop: \"10px\",\n paddingLeft: \"12px\",\n paddingRight: \"12px\",\n marginBottom: \"0px\",\n fontSize: 18,\n maxHeight: open ? mHeight : \"0px\",\n overflow: \"hidden\",\n opacity: open ? 1 : 0.5,\n transition: `all ${speed} ease-in-out`,\n visibility: open ? \"visible\" : \"hidden\",\n animation: open\n ? `ease selectOpen ${speed} forwards`\n : `ease selectClose ${speed} forwards`,\n zIndex: 0,\n }),\n menuList: (defaultStyles: any) => ({\n ...defaultStyles,\n maxHeight: \"270px\",\n }),\n indicatorsContainer: (defaultStyles: any) => ({\n ...defaultStyles,\n transition: \"ease-in-out 400ms\",\n transform: open ? \"rotateZ(0deg)\" : \"rotateZ(180deg)\",\n }),\n input: (defaultStyles: any) => ({\n ...defaultStyles,\n margin: 0,\n padding: 0,\n }),\n valueContainer: (defaultStyles: any) => ({\n ...defaultStyles,\n padding: 0,\n }),\n noOptionsMessage: (defaultStyles: any) => ({\n ...defaultStyles,\n with: \"100%\",\n padding: \"12px 0\",\n margin: \"0px\",\n }),\n });\n\n useEffect(() => {\n if (rest.defaultMenuIsOpen) {\n setOpen(rest.defaultMenuIsOpen);\n }\n }, [rest.defaultMenuIsOpen]);\n\n useEffect(() => {\n if (options && options.length) {\n setSelectOption(() =>\n options.map((option: IOptionProps) => ({\n label: String(option?.label),\n value: String(option?.value),\n info: option?.info,\n }))\n );\n setUpData(!upData);\n } else {\n setSelectOption([]);\n }\n }, [options]);\n\n useEffect(() => {\n if (rest.isDisabled) {\n setOpen(false);\n }\n }, [rest.isDisabled]);\n\n return (\n <>\n {\n if (!rest.isDisabled) setOpen((prevState) => !prevState);\n }}\n >\n {label && }\n {\n if (name.split('.').length > 1) {\n const error = deepFind(errors, name)\n setFieldError(!!error ? error.message as string : null)\n } else setFieldError(!!errors[name] ? errors[name]?.message as string : null)\n return (\n null,\n IndicatorSeparator: () => null,\n DropdownIndicator: () => ,\n }}\n placeholder={placeholderText}\n isSearchable={isSearchable}\n {...field}\n onChange={(data, { action }) => {\n getSelectedData && getSelectedData(data, action);\n if (action) setOpen(rest.closeMenuOnSelect);\n rest.isMulti ?\n field.onChange(data.sort((a: any, b: any) => (a?.value).toString().localeCompare((b?.value).toString()))) :\n field.onChange(data)\n }}\n />\n )\n }}\n />\n
\n {(errorText || !!fieldError) && (\n \n {errorText || fieldError}\n \n )}\n \n );\n}\n","export function deepFind(obj: any, path: any) {\n var paths = path.split('.')\n , current = obj\n , i;\n\n for (i = 0; i < paths.length; ++i) {\n if (current[paths[i]] == undefined) {\n return undefined;\n } else {\n current = current[paths[i]];\n }\n }\n return current;\n}","import { components } from \"react-select\";\n\nexport const Option = (props: any) => {\n return (\n
\n \n null}\n />\n {props.label}\n
\n {props.data.info}\n
\n
\n );\n};\n\n","import { ICategory } from \"../../../../@types/app/ICategory\";\nimport { Dropdown } from \"../Select\";\nimport { Option } from \"../../components/Select/OptionCheckBox\";\nimport { IOptionProps } from \"../../../../@types/reactSelect/IOption\";\nimport { useEffect, useState } from \"react\";\nimport { FieldErrorsImpl, useFieldArray } from \"react-hook-form\";\nimport { CounterInputEdit } from \"../Input/CounterInput/Index\";\n\ntype CategoryInputQtdProps = {\n name: string;\n control: any;\n categories: Map;\n calculateUA: () => void;\n defaultValues?: any;\n isNew?: boolean;\n errors?: Partial>;\n};\n\nexport function CategoryInputQtd({\n control,\n categories,\n name,\n calculateUA,\n defaultValues,\n isNew = false,\n errors,\n}: CategoryInputQtdProps) {\n const [mapQuantity] = useState(new Map());\n const [qtdDefault] = useState(new Map());\n\n const { append, remove } = useFieldArray({\n control,\n name,\n });\n const [categoriesSelected, setCategoriesSelected] = useState>(\n []\n );\n\n function handleCategoryChange(option: any) {\n const selected = option?.map((item: IOptionProps) => {\n return parseInt(item?.value);\n });\n setCategoriesSelected(selected);\n }\n\n useEffect(() => {\n refreshMap();\n }, [categoriesSelected]);\n\n function refreshMap() {\n remove();\n categories.forEach((category) => {\n if (categoriesSelected.includes(category.id)) {\n const toAppend = {\n id: category?.id,\n quantity: mapQuantity.get(category?.id!),\n middle_weight: category?.middle_weight.toString(),\n month: category?.month,\n };\n append(toAppend);\n }\n });\n calculateUA();\n }\n\n useEffect(() => {\n handleCategoryChange(defaultValues);\n if (defaultValues)\n defaultValues.map((category: any) => {\n qtdDefault.set(Number(category?.value), category?.info);\n });\n }, [defaultValues]);\n\n return (\n <>\n ({\n label: category.name,\n value: category.id + \"\",\n info: `${category.middle_weight} ${category.unit} - ${category.age_description}`,\n }))}\n getSelectedData={(option) => handleCategoryChange(option)}\n components={{ Option }}\n hideSelectedOptions={false}\n placeholderText={\"Selecione...\"}\n isMulti={true}\n name={\"category\"}\n isDisabled={!isNew}\n errorText={(errors?.category as any)?.message}\n />\n\n {categoriesSelected &&\n Array.from(categories.values()).map(\n (category) =>\n categoriesSelected.includes(category.id) && (\n <>\n
{category?.name}
\n
{`${category?.middle_weight} ${category?.unit} - ${category?.age_description}`}
\n {\n if (category) {\n mapQuantity.set(category.id, value);\n refreshMap();\n }\n }}\n control={control}\n defaultValue={qtdDefault.get(category.id) || 0}\n isDisabled={!isNew}\n errorText={\n errors?.categories\n ? (errors?.categories as any)[\n categoriesSelected.indexOf(category.id)\n ]?.quantity?.message\n : \"\"\n }\n max={9999}\n />\n \n )\n )}\n \n );\n}\n","import { CSSProperties, useEffect, useRef, useState } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { Input } from \"../../components/Input\";\nimport { FooterEditOnboarding } from \"../../Footer\";\nimport { useEditOnboarding } from \"../../../../hooks/useEditOnboarding\";\nimport \"./styles.css\";\nimport { Dropdown } from \"../../components/Select\";\nimport axios from \"../../../../services/axios\";\nimport {\n IOptionProps,\n IOptionsProps,\n} from \"../../../../@types/reactSelect/IOption\";\nimport { ICategory } from \"../../../../@types/app/ICategory\";\nimport { CategoryInputQtd } from \"../../components/QtdCategory\";\nimport { IMicroArea } from \"../../../../@types/app/IMicroArea\";\nimport { ICoords } from \"../../../../@types/GoogleMaps/ICoord\";\nimport {\n FlyToBounds,\n FlyToBoundsRefProps,\n} from \"../../../Leaflet/FlyToBounds/Index\";\nimport { LeafletStaticMap } from \"../../../Leaflet/LeafletStaticMap/Index\";\nimport Constants from \"../../../../constants/Index\";\nimport { Polygon } from \"react-leaflet\";\nimport { ReactComponent as GrassIcon } from \"./../../../../assets/svg/icons/grass.svg\";\nimport { ReactComponent as Animais } from \"./../../../../assets/svg/icons/animais.svg\";\nimport * as yup from \"yup\";\nimport { yupResolver } from \"@hookform/resolvers/yup\";\nimport { ReactComponent as Circleicon } from \"../../../../assets/svg/icons/ellipse.svg\";\nimport { AlertModal } from \"../../../Modal/Alert/Index\";\nimport { ButtonRedirect } from \"../../../Modal/Error/ButtonRedirect/Index\";\nimport { TitleModal } from \"../../../Modal/Contents/TitleModal/Index\";\nimport { TextModal } from \"../../../Modal/Contents/TextModal/Index\";\nimport { SimpleButtonClose } from \"../../../Modal/Contents/SimpleButtonClose/Index\";\n\nconst schemaBatch = yup.object().shape({\n farm: yup\n .object({\n label: yup.string(),\n value: yup.string().required(\"Fazenda é necessária.\"),\n })\n .nullable()\n .required(\"Fazenda é necessária.\"),\n area: yup\n .object({\n label: yup.string(),\n value: yup.string().required(\"Retiro é necessário.\"),\n })\n .nullable()\n .required(\"Retiro é necessário.\"),\n initials: yup\n .string()\n .matches(/^\\S+(\\s+\\S+)*$/, \"Esta sigla não é válida.\")\n .required(\"Sigla é necessário.\"),\n category: yup\n .array()\n .min(1, \"Categoria é necessária.\")\n .required(\"Categoria é necessária.\"),\n categories: yup.array().of(\n yup.object({\n quantity: yup.number().min(1, \"Adicione animais para essa categoria.\"),\n })\n ),\n current_micro_area_id: yup\n .object({\n label: yup.string(),\n value: yup.string().required(\"Pasto atual é necessário.\"),\n })\n .nullable()\n .required(\"Pasto atual é necessário.\"),\n});\n\nexport function CreateBatch() {\n const [categories, setCategories] = useState>(\n new Map()\n );\n const { setOptionForm, defaultValue } = useEditOnboarding();\n const isNew = !defaultValue;\n const [initialsOnlyRead, setInitialsOnlyRead] = useState(isNew);\n const [microAreaAvailable, setMicroAreaAvailable] = useState();\n const [microAreas, setMicroAreas] = useState();\n const [currentMicroAreaOptions, setCurrentMicroAreaOptions] =\n useState([]);\n const [areaCoords, setAreaCoords] = useState([]);\n const flytoBoundsRef = useRef();\n const initialArea = defaultValue?.initialsArea;\n const farmId = defaultValue?.farm_id;\n const areaId = defaultValue?.area_id;\n const [listFarms, setListFarms] = useState();\n const [listAreas, setListAreas] = useState();\n const [currentFarm, setCurrentFarm] = useState();\n const [currentArea, setCurrentArea] = useState();\n const [currentInitials, setCurrentInitials] = useState(\"\");\n const [microAreaFiltred, setMicroAreaFiltred] = useState();\n const [listBatches, setListBatches] = useState();\n const [msgError, setMsgError] = useState(\"\");\n const [lenghtBatch, setLenghtBatch] = useState(0);\n const contentStyleAlert = {\n width: \"335px\",\n height: \"237px\",\n borderRadius: \"20px\",\n padding: \"20px\",\n } as CSSProperties;\n\n const {\n handleSubmit,\n control,\n getValues,\n setValue,\n watch,\n formState: { errors },\n } = useForm({\n defaultValues: defaultValue,\n resolver: yupResolver(schemaBatch),\n });\n const categoryQtd = watch(\"categories\");\n const ua = watch(\"ua\");\n\n const onSubmit = (data: any) => {\n if (isNew) {\n var formCreateBatch = {\n initials: data?.initials,\n categories: data?.categories.map((category: any) => ({\n id: category?.id,\n month: category?.month,\n quantity: category?.quantity,\n })),\n area_id: data?.area?.value,\n current_micro_area_id: data?.current_micro_area_id?.value,\n micro_area_route_ids: [data?.current_micro_area_id?.value]\n };\n\n axios\n .post(\"/batches\", [formCreateBatch])\n .then(() => {\n setOptionForm(undefined);\n })\n .catch((err) => setMsgError(err.response.data.msg));\n }\n };\n\n useEffect(() => {\n axios.get(\"/evolutions\").then(({ data }) => {\n const currentMonth = new Date().getMonth() + 1;\n var values = data.map((type: any) =>\n type.categories.map((category: any) => {\n var json = {\n ...category,\n month: currentMonth,\n unit: category.month_evolution[currentMonth - 1].weight.unit,\n middle_weight:\n category.month_evolution[currentMonth - 1].weight.value,\n };\n return json;\n })\n );\n setCategories(\n new Map(\n values.flat().map((value: any) => {\n return [value.id, value];\n })\n )\n );\n });\n\n axios\n .get(\"/micro-areas/available\", {\n params: { area_id: areaId },\n })\n .then(({ data }) => {\n const available: IOptionsProps = data.map((microArea: any) => ({\n label: `${microArea.farm.initials}-${microArea.area.initials}-${microArea.initials}`,\n value: microArea.id,\n info: microArea,\n }));\n if (defaultValue)\n defaultValue?.micro_area_route_ids.map((value: any) => {\n available.push(value);\n setValue(\"current_micro_area_id\", value);\n if (isNew) setCurrentMicroAreaOptions([value]);\n });\n setMicroAreaAvailable(available);\n });\n\n axios\n .get(\"/micro-areas\", {\n params: { farm_id: farmId, area_id: areaId },\n })\n .then(({ data }) => {\n setMicroAreas(data);\n });\n\n axios.get(\"/farms/user\").then(({ data }) => {\n setListFarms(\n data.map((farm: any) => ({\n label: farm.name,\n value: farm.id,\n info: farm,\n }))\n );\n });\n\n axios.get(\"/areas/user\").then(({ data }) => {\n setListAreas(\n data.map((area: any) => ({\n label: area.name,\n value: area.id,\n info: area,\n }))\n );\n });\n\n if (!isNew) {\n axios\n .get(\"/batches\", {\n params: { farm_id: farmId, area_id: areaId },\n })\n .then(({ data }) => {\n setAreaCoords(data[0]?.area?.map_coords);\n setListBatches(\n data.map((batch: any) => ({\n initials: `${initialArea}-${batch?.initials}`,\n numberPastures: (batch?.micro_area_route).length,\n numberAnimals: batch?.animals_quantity,\n id: batch?.id,\n }))\n );\n });\n }\n }, []);\n\n useEffect(() => {\n if (categories) {\n setValue(\n \"category\",\n defaultValue?.category?.map((option: any) => ({\n label: categories.get(Number(option?.value))?.name,\n value: `${option?.value}`,\n }))\n );\n }\n }, [categories]);\n\n useEffect(() => {\n if (initialsOnlyRead)\n setValue(\n \"initials\",\n `LT${(lenghtBatch + 1).toString().padStart(3, \"0\")}`\n );\n }, [initialsOnlyRead, lenghtBatch]);\n\n useEffect(() => {\n if (currentFarm) {\n setAreaCoords(currentFarm?.map_coords);\n setCurrentArea(undefined);\n setCurrentInitials(`${currentFarm?.initials}-`);\n setCurrentMicroAreaOptions([]);\n setValue(\"area\", null);\n setValue(\"micro_area_route_ids\", null);\n axios\n .get(\"/batches\", {\n params: { farm_id: currentFarm?.id },\n })\n .then(({ data }) => {\n setLenghtBatch(data.length);\n });\n }\n }, [currentFarm]);\n\n useEffect(() => {\n if (currentArea) {\n setAreaCoords(currentArea?.map_coords);\n setCurrentInitials(`${currentFarm?.initials}-${currentArea?.initials}-`);\n setValue(\"micro_area_route_ids\", undefined);\n setCurrentMicroAreaOptions([]);\n }\n }, [currentArea]);\n\n useEffect(() => {\n if (listFarms)\n setValue(\n \"farm\",\n listFarms.filter((farm) => farm?.value == defaultValue?.farm_id)[0]\n );\n }, [listFarms, defaultValue]);\n\n useEffect(() => {\n if (listAreas)\n setValue(\n \"area\",\n listAreas.filter((area) => area?.value == defaultValue?.area_id)[0]\n );\n }, [listAreas, defaultValue]);\n\n useEffect(() => {\n if (microAreaAvailable && currentArea) {\n setMicroAreaFiltred(\n microAreaAvailable.filter(\n (micro: any) => micro?.info?.area_id == currentArea?.id\n )\n );\n } else {\n setMicroAreaFiltred([]);\n }\n }, [currentArea]);\n\n function getUA() {\n const categories = getValues(\"categories\");\n if (categories) {\n let sumUA = categories.reduce(\n (sum: number, current: any) =>\n sum + (current.quantity * Number(current.middle_weight)) / 450,\n 0\n );\n\n setValue(\"ua\", sumUA.toFixed(2));\n }\n }\n\n const deleteBatch = () => {\n axios\n .delete(`/batches/${defaultValue.id}`)\n .then(() => {\n setOptionForm(undefined);\n })\n .catch((err) => setMsgError(err.response.data.msg));\n };\n\n return (\n <>\n \n
\n setMsgError(\"\")} />\n
\n Algo deu errado.\n {msgError}\n
\n setMsgError(\"\")}>\n Voltar\n \n
\n
\n
\n
\n
\n {\n setCurrentFarm(option.info);\n }}\n closeMenuOnSelect={true}\n errorText={(errors?.farm as any)?.value?.message}\n />\n\n area?.info?.farm?.id == currentFarm?.id\n )\n : []\n }\n getSelectedData={(option: any) => {\n setCurrentArea(option.info);\n }}\n isDisabled={!isNew}\n closeMenuOnSelect={true}\n errorText={(errors?.area as any)?.value?.message}\n noOptionsMessage={() => (\n Nenhum retiro disponível\n )}\n />\n\n \n {isNew && (\n {\n setInitialsOnlyRead(!initialsOnlyRead);\n }}\n className=\"initial--readOnly\"\n >\n {initialsOnlyRead ? \"Alterar sigla\" : \"Usar sigla automática\"}\n \n )}\n\n \n\n \n\n (\n Não existem pastos disponíveis\n )}\n />\n\n \n
\n
\n
\n \n \n {/* Informações no mapa */}\n
\n
\n \n \n {categoryQtd &&\n categoryQtd.reduce(\n (sum: number, current: any) => sum + current.quantity,\n 0\n )}\n \n
\n\n
\n {/* area */}\n \n {/* microAreas */}\n {microAreas &&\n microAreas.map((micro: any) =>\n currentMicroAreaOptions\n ?.map((micro) => micro.value)\n .includes(String(micro.id)) ? (\n \n ) : (\n \"\"\n )\n )}\n
\n
\n
\n
\n {listBatches &&\n listBatches\n .filter((batch: any) => batch.id != defaultValue.id)\n .map((values: any) => (\n \n {values.initials}\n \n {values.numberPastures || 0} pastos {\" \"}\n {values.numberAnimals || 0} animais\n \n \n ))}\n
\n
\n
\n\n
\n setOptionForm(undefined)}\n saveFunction={() => console.log(\"Save\")}\n deleteFunction={() => deleteBatch()}\n isNew={isNew}\n onlyRead\n />\n \n \n );\n}\n","import {\n ChangeEvent,\n CSSProperties,\n ReactNode,\n useEffect,\n useState,\n} from \"react\";\nimport { ReactComponent as PenEdit } from \"./../../../../assets/svg/icons/penEdit.svg\";\nimport { ReactComponent as CloseIcon } from \"./../../../../assets/svg/icons/close.svg\";\nimport { ReactComponent as PlusIcon } from \"./../../../../assets/svg/icons/plus.svg\";\nimport { ReactComponent as TrashIcon } from \"./../../../../assets/svg/icons/trash.svg\";\nimport { ReactComponent as CheckIcon } from \"./../../../../assets/svg/icons/check.svg\";\nimport { ReactComponent as UndoIcon } from \"./../../../../assets/svg/icons/undo.svg\";\nimport { ReactComponent as RedoIcon } from \"./../../../../assets/svg/icons/redo.svg\";\nimport { ReactComponent as PositiveIcon } from \"./../../../../assets/svg/icons/positive.svg\";\nimport { ReactComponent as NegativeIcon } from \"./../../../../assets/svg/icons/negative.svg\";\nimport FarmMap from \"../../../../assets/png/farmMap.png\";\nimport { IKmlsUpload } from \"../../../../@types/app/IKmlUpload\";\nimport { ICoord, ICoords } from \"../../../../@types/GoogleMaps/ICoord\";\nimport { useGoogleMaps } from \"../../../../hooks/useGoogleMaps\";\nimport { readFileKML } from \"../../../../utils/kml/readFile\";\nimport { ButtonWithChildren } from \"../../../Buttons/ButtonWithChildren/Index\";\nimport { FarmPolygon } from \"../../../GoogleMaps/Farm/Index\";\nimport { AlertModal } from \"../../../Modal/Alert/Index\";\nimport { SimpleButtonClose } from \"../../../Modal/Contents/SimpleButtonClose/Index\";\nimport { TextModal } from \"../../../Modal/Contents/TextModal/Index\";\nimport { TitleModal } from \"../../../Modal/Contents/TitleModal/Index\";\nimport { Modal } from \"../../../Modal/Default/Index\";\nimport { Map } from \"../../../GoogleMaps/Map/Index\";\nimport { Controller, useFieldArray } from \"react-hook-form\";\n\ntype UploadFileKmlProps = {\n children: ReactNode;\n title: string;\n name: string;\n reset?: boolean;\n onMessageError?: (error: string) => void;\n onlyRead?: boolean;\n control: any;\n required?: boolean;\n errorText?: any;\n};\n\nconst farmStyle = {\n strokeColor: \"#ededed\",\n fillColor: \"#61FFF6\",\n strokeOpacity: 1,\n fillOpacity: 0.5,\n strokeWeight: 3,\n};\n\nconst farmEditStyle = {\n strokeColor: \"rgba(255, 149, 1, 1)\",\n fillColor: \"rgba(255, 149, 1, 0.5)\",\n strokeOpacity: 1,\n fillOpacity: 0.5,\n strokeWeight: 3,\n};\n\nconst contentStyleModal = {\n width: \"95%\",\n height: \"95vh\",\n maxWidth: \"1350px\",\n maxHeight: \"937px\",\n borderRadius: \"20px\",\n overflow: \"hidden\",\n} as CSSProperties;\n\nconst contentStyleAlert = {\n width: \"335px\",\n height: \"237px\",\n borderRadius: \"20px\",\n} as CSSProperties;\n\nexport function FileUploadKml({\n onMessageError,\n children,\n title,\n name,\n reset,\n onlyRead = false,\n control,\n required,\n errorText,\n}: UploadFileKmlProps) {\n const { append, remove } = useFieldArray({\n control,\n name\n });\n const { fitBoundsPolygon, getBounds } = useGoogleMaps();\n const [fileName, setFileName] = useState(\"\");\n const [fileError, setFileError] = useState(\"\");\n const [farmEditPolygon, setFarmEditPolygon] = useState([]);\n const [farmPolygon, setFarmpolygon] = useState([]);\n const [centerMap, setCenterMap] = useState(undefined);\n const [editPolygon, setEditPolygon] = useState(false);\n const [modalVisible, setModalVisible] = useState(false);\n\n useEffect(() => {\n remove();\n if (farmPolygon[0]?.coords) append(farmPolygon[0]?.coords);\n }, [farmPolygon]);\n\n // Isso lida com a mensagem de erro\n function handleError(error: string) {\n if (onMessageError) onMessageError(error);\n else setFileError(error);\n }\n\n // Isso faz a leitura do arquivo\n async function handleFileCoords(event: ChangeEvent) {\n setFileError(\"\");\n\n if (event.target.files) {\n const fileName = event.target.files[0].name;\n if (!fileName.includes(\".kml\")) {\n handleError(\"Por favor! Somente aquivos Kml/kmz\");\n return;\n }\n const response = await readFileKML(event);\n // se a leitura devolver NULL mostramos um erro\n if (!response) {\n handleError(`Desculpe! mas não conseguimos ler o arquivo ${fileName}`);\n return;\n }\n const dataCoords = response as IKmlsUpload;\n const [coords] = dataCoords.map((data) => data.coords);\n // Se não tivermos no mínimo 3 coordenadas devolvemos um erro\n if (coords.length < 3) {\n handleError(`Desculpe! mas não conseguimos ler o arquivo ${fileName}`);\n return;\n }\n setCenterMap(fitBoundsPolygon(coords));\n setFarmpolygon(() => response as IKmlsUpload);\n setFileName(fileName);\n }\n }\n\n // Isso redefine o input em caso de desistência\n function resetFileSelected() {\n setFarmpolygon([]);\n setFileName(\"\");\n setEditPolygon(false);\n }\n\n function handleEditPolygon(coords: ICoords, key: number) {\n const polygonUpdated = farmPolygon.map((polygon, index) => {\n if (index === key) return { ...polygon, coords };\n return polygon;\n });\n setFarmEditPolygon(() => polygonUpdated);\n }\n\n useEffect(() => {\n resetFileSelected();\n }, [reset]);\n\n return (\n <>\n \n {farmEditPolygon.length > 0 && (\n <>\n \n
\n
\n
{fileName}
\n \n
\n setEditPolygon((prev) => !prev)}\n type={\"button\"}\n >\n \n \n
\n\n {farmEditPolygon.map((farm, key) => (\n handleEditPolygon(coords, key)}\n farmProps={farm}\n polygonStyle={farmEditStyle}\n editable\n />\n ))}\n\n
\n
\n
Editar arquivo
\n \n \n \n {\n setFarmpolygon(() => farmEditPolygon);\n setEditPolygon((prev) => !prev);\n }}\n type={\"button\"}\n >\n \n \n
\n
\n
\n \n )}\n
\n\n \n
\n {\n setModalVisible(!modalVisible);\n }}\n />\n Você tem certeza?\n \n Ao remover, você perde todas as edições realizadas!\n \n
\n \n
\n \n
Sim
\n
\n
\n \n
\n \n
Não
\n
\n
\n
\n
\n
\n\n
\n {!onlyRead &&
{title}
}\n {!onMessageError && {fileError}}\n\n
\n {farmPolygon.length > 0 ? (\n \n {farmPolygon.map((farm, key) => (\n \n ))}\n \n ) : (\n \"mapa\n )}\n {!onlyRead && farmPolygon.length > 0 && (\n {\n if (farmPolygon.length > 0) {\n setFarmEditPolygon(() => farmPolygon);\n setEditPolygon((prev) => !prev);\n }\n }}\n type={\"button\"}\n >\n {farmPolygon.length > 0 ? (\n \n ) : (\n \n )}\n \n )}\n
\n \n fileName ? (\n
\n
{fileName}
\n {!onlyRead && (\n \n )}\n
\n ) : (\n
\n <>\n {!onlyRead && (\n \n )}\n\n {\n handleFileCoords(event);\n field.onChange(event);\n }}\n />\n \n
\n )\n }\n />\n {errorText && (\n \n {errorText}\n \n )}\n
\n \n );\n}\n","import { GetHandleProps, SliderItem } from \"react-compound-slider\";\n\ninterface IHandleProps {\n domain: number[];\n handle: SliderItem;\n getHandleProps: GetHandleProps;\n disable?: boolean;\n}\n\nexport const Handle = ({\n domain: [min, max],\n handle: { id, value, percent },\n getHandleProps,\n disable = false,\n}: IHandleProps) => (\n \n \n

\n {id == \"$$-0\" ? \"Início da chuva\" : \"Início da seca\"}\n

\n \n \n);\n","import { SliderItem } from \"react-compound-slider\";\n\ninterface ITickProps {\n key: string;\n tick: SliderItem;\n count: number;\n disable?: boolean;\n format: (value: number) => string;\n}\n\nexport const Tick = ({ tick, count, format, disable }: ITickProps) => (\n <>\n \n \n {format(tick.value)}\n \n \n);\n","import { GetTrackProps, SliderItem } from \"react-compound-slider\";\n\ninterface ITrackProps {\n source: SliderItem;\n target: SliderItem;\n getTrackProps: GetTrackProps;\n boolColor: boolean;\n disable?: boolean;\n}\n\nexport const Track = ({\n source,\n target,\n getTrackProps,\n boolColor,\n disable = false,\n}: ITrackProps) => (\n \n);\n","import { CSSProperties, useState } from \"react\";\nimport { Rail, Handles, Ticks, Tracks, Slider } from \"react-compound-slider\";\nimport { Handle } from \"./Handle\";\nimport { Tick } from \"./Tick\";\nimport { Track } from \"./Track\";\n\ninterface SliderProps {\n listOptions: object;\n rain_initial: number;\n setRainInitial: (value: number) => void;\n dry_initial: number;\n setDryInitial: (value: number) => void;\n isDisabled?: boolean;\n}\n\nconst sliderStyle = {\n position: \"relative\",\n width: \"100%\",\n} as CSSProperties;\n\nexport const SliderComponent = ({\n listOptions,\n rain_initial,\n dry_initial,\n setRainInitial,\n setDryInitial,\n isDisabled = false,\n}: SliderProps) => {\n const [boolSecaAntesDaChuva, setboolSecaAntesDaChuva] = useState(false);\n const [values] = useState([rain_initial, dry_initial]);\n const domain: number[] = [0, 11];\n const valMap: any = listOptions;\n\n return (\n \n {/* Tracejado na barra indicando os meses */}\n \n {({ getRailProps }) => (\n \n )}\n \n {/* Marcação do inicio da chuva e inico da seca */}\n \n {({ handles, getHandleProps }) => (\n
\n {handles.map((handle) => (\n \n ))}\n
\n )}\n
\n {/* Define a cor da barra indicando onde começa e termina a chuva e a seca respectivamente*/}\n \n {({ tracks, getTrackProps }) => (\n
\n {tracks.map(\n ({ id, source, target }) => (\n boolSecaAntesDaChuva\n ? (setRainInitial(target.value), setDryInitial(source.value))\n : (setRainInitial(source.value), setDryInitial(target.value)),\n target.id == \"$$-0\"\n ? setboolSecaAntesDaChuva(true)\n : setboolSecaAntesDaChuva(false),\n (\n \n )\n )\n )}\n
\n )}\n
\n {/* Demarcação dos meses na barra */}\n \n {({ ticks }) => (\n
\n {ticks.map((tick) => (\n valMap[id]}\n tick={tick}\n count={ticks.length}\n disable={isDisabled}\n />\n ))}\n
\n )}\n
\n \n );\n};\n","import { CSSProperties, useEffect, useState } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { IOptionsProps } from \"../../../../@types/reactSelect/IOption\";\nimport axios from \"../../../../services/axios\";\nimport { fetchStateCities, fetchStatesUF } from \"../../../../services/ibge\";\nimport { sortBy } from \"../../../../utils/arrays/sortBy\";\nimport { Input } from \"../../components/Input\";\nimport { Dropdown } from \"../../components/Select\";\nimport { FooterEditOnboarding } from \"../../Footer\";\nimport \"./../../styles.css\";\nimport \"./styles.css\";\nimport { ReactComponent as UploadIcon } from \"../../../../assets/svg/icons/upload.svg\";\nimport { FileUploadKml } from \"../../components/FileUploadKml\";\nimport { useEditOnboarding } from \"../../../../hooks/useEditOnboarding\";\nimport * as yup from \"yup\";\nimport { yupResolver } from \"@hookform/resolvers/yup\";\nimport { SliderComponent } from \"../../components/Slider/Index\";\nimport Constants from \"../../../../constants/Index\";\nimport { DrawOnMap } from \"../../components/DrawOnMap/DrawOnMap\";\nimport { Chips } from \"../../../Chips\";\nimport { cpf, cnpj } from \"cpf-cnpj-validator\";\nimport { ButtonRedirect } from \"../../../Modal/Error/ButtonRedirect/Index\";\nimport { AlertModal } from \"../../../Modal/Alert/Index\";\nimport { TitleModal } from \"../../../Modal/Contents/TitleModal/Index\";\nimport { TextModal } from \"../../../Modal/Contents/TextModal/Index\";\nimport { SimpleButtonClose } from \"../../../Modal/Contents/SimpleButtonClose/Index\";\n\nconst farmSchema = yup.object({\n name: yup\n .string()\n .matches(/^[^\\s]+(\\s+[^\\s]+)*$/, \"Este nome não é válido.\")\n .required(\"Nome da Fazenda é necessário.\"),\n initials: yup.string().required(\"Sigla é necessário.\"),\n document: yup\n .string()\n .notRequired()\n .test(\"documentCPF\", \"CPF informado inválido.\", (value) => {\n const valueParsed = value?.toString().replaceAll('.', '').replaceAll('-', '')\n if (!!valueParsed && valueParsed.length < 12) return cpf.isValid(valueParsed);\n return true;\n })\n .test(\"documentCNPJ\", \"CNPJ informado inválido.\", (value) => {\n const valueParsed = value?.toString().replaceAll('.', '').replaceAll('-', '')\n if (!!valueParsed && valueParsed.length > 11 && valueParsed.length < 15) return cnpj.isValid(value || \"\");\n return true;\n }),\n state_registration: yup.string(),\n owner_user_id: yup\n .object({\n label: yup.string(),\n value: yup.string().required(\"Responsável é necessário.\"),\n })\n .nullable()\n .required(\"Responsável é necessário.\"),\n address: yup.object({\n state: yup\n .object({\n label: yup.string(),\n value: yup.string().required(\"UF é necessário.\"),\n })\n .nullable()\n .required(\"UF é necessário.\"),\n city: yup\n .object({\n label: yup.string(),\n value: yup.string().required(\"Cidade é necessário.\"),\n })\n .nullable()\n .required(\"Cidade é necessário.\"),\n }),\n map_coords: yup.array().nullable().min(1, \"Mapa da fazenda é necessário.\"),\n});\n\nexport function CreateFarm() {\n const { setOptionForm, defaultValue } = useEditOnboarding();\n const isNew = !defaultValue?.initials;\n const [listUF, setListUF] = useState([]);\n const [managers, setManagers] = useState([]);\n const [listCities, setListCities] = useState([]);\n const [blockCities, setBlockCities] = useState(true);\n const [areasList, setAreasList] = useState();\n const [initialsOnlyRead, setInitialsOnlyRead] = useState(isNew);\n const [maskCFPCNPJ, setMaskCFPCNPJ] = useState(\"999.999.999-999999\");\n const [inicioChuva, setInicioChuva] = useState(isNew ? 3 : defaultValue?.season?.rain_initial);\n const [inicioSeca, setInicioSeca] = useState(isNew ? 8 : defaultValue?.season?.dry_initial);\n const [msgError, setMsgError] = useState(\"\");\n const contentStyleAlert = {\n width: \"335px\",\n height: \"237px\",\n borderRadius: \"20px\",\n padding: \"20px\",\n } as CSSProperties;\n\n const {\n register,\n handleSubmit,\n control,\n watch,\n setValue,\n formState: { errors },\n } = useForm({\n defaultValues: defaultValue,\n resolver: yupResolver(farmSchema),\n });\n\n const docInput = watch(\"document\");\n const nameInput = watch(\"name\");\n const stateDropdown = watch(\"address.state\");\n\n useEffect(() => {\n if (!isNew)\n axios\n .get(\"/areas/\", { params: { farm_id: defaultValue.id } })\n .then(({ data }) => setAreasList(data));\n }, [defaultValue]);\n\n const deleteFarm = () => {\n axios\n .delete(`/farms/${defaultValue.id}`)\n .then(() => {\n setOptionForm(undefined);\n })\n .catch((err) => setMsgError(err.response.data.msg));\n }\n\n const onSubmit = (data: any) => {\n if (isNew) {\n var formCreateFarm = [\n {\n name: data?.name,\n initials: data?.initials,\n document:\n data?.document != \"\"\n ? data?.document.replace(/[^0-9a-z]/gi, \"\")\n : undefined,\n address: {\n city: {\n code: data?.address?.city?.value,\n name: data?.address?.city?.label,\n },\n state: data?.address?.state?.label,\n },\n properties: {\n season: {\n dry_initial: inicioSeca,\n rain_initial: inicioChuva,\n },\n },\n state_registration: data?.state_registration,\n owner_user_id: data?.owner_user_id?.value,\n map_coords: data?.map_coords,\n },\n ];\n axios\n .post(\"/farms\", formCreateFarm)\n .then(() => {\n setOptionForm(undefined);\n })\n .catch((err) => setMsgError(err.response.data.msg));\n } else {\n var formPathFarm = [\n {\n farm_id: defaultValue.id,\n state_registration: data?.state_registration,\n name: data?.name,\n document: data?.document,\n owner_user_id: data.owner_user_id.value,\n properties: {\n season: {\n dry_initial: inicioSeca,\n rain_initial: inicioChuva,\n },\n },\n },\n ];\n\n axios\n .patch(\"/farms\", formPathFarm)\n .then(() => {\n setOptionForm(undefined);\n })\n .catch((err) => setMsgError(err.response.data.msg));\n }\n };\n\n useEffect(() => {\n fetchStatesUF().then((data) => {\n const ufs: Array = data.map((uf: any) => ({\n label: uf,\n value: uf,\n }));\n setListUF(() => ufs.sort(sortBy(\"label\")));\n });\n axios.get(\"/users/user\").then(({ data }) =>\n setManagers(\n data\n .filter((user: any) => user.profile_name == \"Gerente\")\n .map((profile: any) => {\n var profilesList = {\n label: profile.name,\n value: profile.id,\n };\n return profilesList;\n })\n )\n );\n }, []);\n\n useEffect(() => {\n if (docInput) {\n docInput.length <= 14\n ? setMaskCFPCNPJ(\"999.999.999-999999\")\n : setMaskCFPCNPJ(\"99.999.999/9999-99\");\n } else setValue(\"document\", \"\");\n }, [docInput]);\n\n useEffect(() => {\n if (initialsOnlyRead) {\n if (nameInput) {\n const nameFarm = nameInput.toLocaleUpperCase().split(\" \");\n if (nameFarm[0] != \"\") {\n if (nameFarm.length == 1) {\n setValue(\"initials\", `${nameFarm[0][0]}${nameFarm[0][1] || \"\"}`);\n } else if (nameFarm[1] !== \"\") {\n setValue(\"initials\", `${nameFarm[0][0]}${nameFarm[1][0]}`);\n }\n }\n } else setValue(\"initials\", \"\");\n }\n }, [nameInput, initialsOnlyRead]);\n\n useEffect(() => {\n if (stateDropdown) {\n fetchStateCities(stateDropdown.value).then((data) => {\n const response = data\n .map((city: any) => ({ label: city.nome, value: city.id }))\n .sort();\n setListCities(() => response);\n });\n setBlockCities(false);\n }\n }, [stateDropdown]);\n\n return (\n <>\n \n
\n setMsgError(\"\")} />\n
\n Algo deu errado.\n {msgError}\n
\n setMsgError(\"\")}>\n Voltar\n \n
\n
\n
\n
\n
\n \n\n \n\n {isNew && (\n setInitialsOnlyRead(!initialsOnlyRead)}\n className=\"initial--readOnly\"\n >\n {initialsOnlyRead ? \"Alterar sigla\" : \"Usar sigla automática\"}\n \n )}\n\n \n\n \n\n
\n \n\n \n
\n\n {errors?.address ? (\n \n UF e CIDADE é necessário\n \n ) : (\n \"\"\n )}\n\n \n\n
\n \n
\n \n
\n
\n \n
\n
\n {isNew ? (\n
\n \n \n Upload Mapa KML\n \n \n ) : (\n <>\n e.map_coords)) || []\n }\n style={{ width: \"400px\", height: \"300px\" }}\n mainPolygon={defaultValue.map_coords}\n initialsLabel={defaultValue.initials}\n control={control}\n name={\"map_coords\"}\n />\n\n
    \n {areasList &&\n areasList.map((area) => (\n
  • \n \n
  • \n ))}\n
\n \n )}\n
\n
\n\n
\n setOptionForm(undefined)}\n saveFunction={() => { }}\n deleteFunction={() => deleteFarm()}\n isNew={isNew}\n />\n \n \n );\n}\n","import {\n CSSProperties,\n ElementType,\n InputHTMLAttributes,\n useEffect,\n useId,\n useRef,\n useState,\n} from \"react\";\nimport { Controller } from \"react-hook-form\";\nimport ReactInputMask from \"react-input-mask\";\nimport { Props as InputProps } from \"react-select\";\n\nimport \"./styles.css\";\ntype THEME_BUTTON = \"normal\" | \"none\" | \"read-only\";\n\ninterface ITextComponent extends InputHTMLAttributes {\n name: string;\n control: any;\n errorField?: string;\n disabled?: boolean;\n theme: THEME_BUTTON;\n labelPrefix?: string;\n mask?: string | (string | RegExp)[];\n prefixPosition?: \"left\" | \"right\";\n overrideStyles?: {\n container?: CSSProperties;\n contentInput?: CSSProperties;\n prefixLabel?: CSSProperties;\n input?: CSSProperties;\n };\n errorText?: string;\n getMessageError?: (error: string) => void;\n Icon: ElementType;\n}\n\nexport function InputIcon({\n getMessageError,\n Icon,\n mask,\n errorText,\n name,\n control,\n errorField,\n disabled = false,\n labelPrefix,\n overrideStyles,\n prefixPosition = \"right\",\n ...props\n}: ITextComponent) {\n const inputUniqueId = useId();\n const [inputContentTheme, setInputContentTheme] =\n useState(\"none\");\n const [fieldError, setFieldError] = useState(null);\n return (\n <>\n \n \n \n {labelPrefix}\n \n {\n setFieldError(\n !!errors[name] ? (errors[name]?.message as string) : null\n );\n return (\n \n );\n }}\n />\n \n \n \n {(errorText || !!fieldError) && (\n \n {errorText || fieldError}\n \n )}\n \n );\n}\n","export const moveCharLeft = (str: any, char: any) => {\n if (char != \".\") {\n if (str.length === 5 && str[str.length - 2] != \".\") {\n let index = str.indexOf(char);\n if (index !== -1 && index !== 0) {\n str = str.split(\"\");\n str.splice(index - 1, 0, str[index]);\n str.splice(index + 1, 1);\n str = str.join(\"\");\n }\n }\n } else {\n if (str.length === 6 && str[str.length - 1] != \".\") {\n let index = str.indexOf(char);\n if (index !== -1 && index !== 0) {\n str = str.split(\"\");\n str.splice(index, 0, str[index]);\n str.splice(index, 1, str[index + 2]);\n str.splice(index + 1, 2, str[index + 1]);\n str = str.join(\"\");\n }\n }\n }\n\n str = str[str.length - 1] == \".\" && str.length > 2 ? str / 10 + \"\" : str;\n\n if(str.split(\".\")[1]?.length==3) {\n str = str * 10 + \"\"\n }\n\n return str;\n};\n","import axios from './axios'\n\nconst getMicroAreasByAreaId = (areaId: number): Promise => {\n return axios.get(`/micro-areas?area_id=${areaId}`).then(({ data }) => {\n return data\n })\n}\n\nexport const microAreaService = {\n getMicroAreasByAreaId\n}","import { yupResolver } from '@hookform/resolvers/yup'\nimport * as yup from 'yup'\nimport { CSSProperties, useEffect, useRef, useState } from 'react'\nimport { useForm } from 'react-hook-form'\nimport { IOptionsProps } from '../../../../@types/reactSelect/IOption'\nimport { useEditOnboarding } from '../../../../hooks/useEditOnboarding'\nimport axios from '../../../../services/axios'\nimport { Input } from '../../components/Input'\nimport { InputIcon } from '../../components/InputIcon'\nimport { Dropdown } from '../../components/Select'\nimport { FooterEditOnboarding } from '../../Footer'\nimport './styles.css'\nimport { DrawOnMap } from '../../components/DrawOnMap/DrawOnMap'\nimport { ReactComponent as Available } from '../../../../assets/svg/icons/available.svg'\nimport { ReactComponent as Unvailable } from '../../../../assets/svg/icons/unavailable.svg'\nimport { ICoords } from '../../../../@types/GoogleMaps/ICoord'\nimport { Chips } from '../../../Chips'\nimport { AlertModal } from '../../../Modal/Alert/Index'\nimport { SimpleButtonClose } from '../../../Modal/Contents/SimpleButtonClose/Index'\nimport { TextModal } from '../../../Modal/Contents/TextModal/Index'\nimport { TitleModal } from '../../../Modal/Contents/TitleModal/Index'\nimport { ButtonRedirect } from '../../../Modal/Error/ButtonRedirect/Index'\nimport { moveCharLeft } from '../../../../utils/arrays/moveChar'\nimport { areaService } from '../../../../services/areaService'\nimport { microAreaService } from '../../../../services/microAreaService'\n\nexport function MicroArea() {\n const microAreaSchema = yup.object().shape({\n farm: yup\n .object({\n label: yup.string(),\n value: yup.string().required('Fazenda é necessária.'),\n })\n .nullable()\n .required('Fazenda é necessária.'),\n area: yup\n .object({\n label: yup.string(),\n value: yup.string().required('Retiro é necessário.'),\n })\n .nullable()\n .required('Retiro é necessário.'),\n initials: yup\n .string()\n .matches(/^\\S+(\\s+\\S+)*$/, 'Esta sigla não é válida.')\n .required('Sigla é necessário.'),\n acreage: yup\n .string()\n .test('value', 'Campo obrigatório não informado. ', () => {\n if (Number(acreageInput?.replace(',', '.')) == 0) return false\n return true\n })\n .test(\n 'value',\n 'O espaço disponível neste retiro foi ultrapassado',\n () => {\n if (Number(remainingArea) >= 0) return true\n return false\n },\n )\n .required('Campo obrigatório não informado.'),\n map_coords: yup\n .array()\n .of(\n yup.object({\n lat: yup.number(),\n lng: yup.number(),\n }),\n )\n .test('is-null', 'Campo obrigatório não informado.', (value) =>\n value ? value.length > 0 : true,\n ),\n })\n\n const { setOptionForm, defaultValue } = useEditOnboarding()\n const [reasonOptions, setReasonOptions] = useState()\n const [listFarms, setListFarms] = useState()\n const [listAreas, setListAreas] = useState()\n const [currentFarm, setCurrentFarm] = useState()\n const [currentArea, setCurrentArea] = useState()\n const [currentInitials, setCurrentInitials] = useState('')\n const isNew = !defaultValue\n const [microAreaCoords, setMicroAreaCoords] = useState([])\n const [staticMicroAreas, setStaticMicroAreas] = useState([])\n const [remainingArea, setRemainingArea] = useState('')\n const [acreageArea, setAcreageArea] = useState('')\n const [msgError, setMsgError] = useState('')\n const [initialsOnlyRead, setInitialsOnlyRead] = useState(true)\n const [lenghtMicroArea, setLenghtMicroArea] = useState(0)\n const [acreageMask, setAcreageMask] = useState(null)\n const [acreageFormat, setAcreageFormat] = useState(false)\n\n const contentStyleAlert = {\n width: '335px',\n height: '237px',\n borderRadius: '20px',\n padding: '20px',\n } as CSSProperties\n\n const {\n handleSubmit,\n control,\n setValue,\n watch,\n formState: { errors },\n } = useForm({\n defaultValues: defaultValue,\n resolver: yupResolver(microAreaSchema),\n })\n const acreageInput = watch('acreage')\n const initialsInput = watch('initials')\n\n const onSubmit = (data: any) => {\n var acreageFix = data?.acreage?.replace(',', '.')\n if (isNew) {\n var formNewMicroArea = [\n {\n initials: data?.initials,\n acreage: moveCharLeft(acreageFix, acreageFix.charAt(2)),\n area_id: data?.area?.value,\n map_coords: data?.map_coords,\n micro_area_reason_id: data?.reason?.value,\n },\n ]\n axios\n .post('/micro-areas', formNewMicroArea)\n .then(() => {\n setTimeout(() => setOptionForm(undefined), 1000)\n })\n .catch((error) => setMsgError(error.response.data.msg))\n } else {\n var formPathMicroArea = [\n {\n micro_area_id: defaultValue?.id,\n initials: data?.initials,\n acreage: moveCharLeft(acreageFix, acreageFix.charAt(2)),\n },\n ]\n axios\n .patch('/micro-areas', formPathMicroArea)\n .then(() => {\n setOptionForm(undefined)\n })\n .catch((error) => setMsgError(error.response.data.msg))\n }\n }\n\n useEffect(() => {\n axios.get('/micro-areas/reasons').then(({ data }) => {\n setReasonOptions(\n data.map((option: any) => ({\n value: option.id,\n label: option.description,\n })),\n )\n })\n\n axios.get('/farms/user').then(({ data }) => {\n setListFarms(\n data.map((farm: any) => ({\n label: farm.name,\n value: farm.id,\n info: farm,\n })),\n )\n })\n\n axios.get('/areas/user').then(({ data }) => {\n setListAreas(\n data.map((area: any) => ({\n label: area.name,\n value: area.id,\n info: area,\n })),\n )\n })\n setAcreageMask('9,99')\n }, [])\n\n useEffect(() => {\n if (currentFarm) {\n setCurrentInitials(`${currentFarm?.initials}`)\n setCurrentArea(undefined)\n setValue('area', undefined)\n }\n }, [currentFarm])\n\n useEffect(() => {\n if (currentArea) {\n setCurrentInitials(`${currentFarm?.initials}-${currentArea?.initials}`)\n setMicroAreaCoords([...currentArea.map_coords, currentArea.map_coords[0]])\n microAreaService\n .getMicroAreasByAreaId(currentArea.id)\n .then((data) =>\n setStaticMicroAreas(data.map((micro) => micro.map_coords)),\n )\n }\n }, [currentArea])\n\n useEffect(() => {\n setAcreageArea(defaultValue?.remaining_area)\n }, [defaultValue])\n\n useEffect(() => {\n if (listFarms) {\n setValue(\n 'farm',\n listFarms.filter((farm) => farm?.value == defaultValue?.farm_id)[0],\n )\n }\n }, [listFarms, defaultValue])\n\n useEffect(() => {\n if (listAreas)\n setValue(\n 'area',\n listAreas.filter((area) => area?.value == defaultValue?.area_id)[0],\n )\n }, [listAreas, defaultValue])\n\n useEffect(() => {\n if (reasonOptions)\n setValue(\n 'reason',\n reasonOptions.filter(\n (reason) => reason?.value == defaultValue?.reason_id,\n )[0],\n )\n }, [reasonOptions, defaultValue])\n\n function handleMaskAcreage(text: string) {\n // switch (text.replace('.', '').length) {\n // case 3:\n // setAcreageMask('99.99999')\n // break\n // case 4:\n // setAcreageMask('999.9999')\n // break\n // case 5:\n // setAcreageMask('9999.9999')\n // break\n // case 6:\n // setAcreageMask('99999.9999')\n // break\n // case 7:\n // setAcreageMask('999999.99999')\n // break\n // case 8:\n // setAcreageMask('9999999.99')\n // break\n // default:\n // setAcreageMask('9999999.99')\n // break\n // }\n }\n const handleMaskInput = (acreage: string) => {\n setAcreageMask(acreage)\n setAcreageFormat(true)\n if (!acreageFormat) {\n const [integerL = '', decimalL = ''] = acreage\n .toString()\n .replace('.', ',')\n .split(',')\n let final = integerL.length\n if (decimalL.length == 3) final++\n else if (decimalL.length === 0) final--\n if (final <= 10) {\n const intMask = Array.from(Array(final || 1).keys()).reduce(\n (acc, _) => acc + '9',\n '',\n )\n const decimalMask = Array.from(\n Array(final <= 3 ? decimalL.length + 1 : 2).keys(),\n ).reduce((acc, _) => acc + '9', '')\n const finalMask = `${intMask},${decimalMask}`\n // setAcreageDynamicInputWidth(finalMask.length)\n setAcreageMask(finalMask)\n setAcreageFormat(true)\n }\n } else {\n handleMaskAcreage(acreage)\n }\n }\n\n useEffect(() => {\n if (currentArea || defaultValue?.area_id) {\n if (acreageInput) {\n handleMaskInput(acreageInput)\n let acreage = acreageInput?.replace(',', '.')\n let currentAcreage = moveCharLeft(acreage, acreage.charAt(2))\n setRemainingArea(\n (Number(acreageArea) - Number(currentAcreage)).toFixed(2),\n )\n } else if (acreageInput === '') {\n setRemainingArea(Number(acreageArea).toFixed(2))\n }\n }\n }, [acreageInput, acreageArea, currentArea])\n\n const deleteMicroArea = () => {\n axios\n .delete(`/micro-areas/${defaultValue.id}`)\n .then(() => {\n setOptionForm(undefined)\n })\n .catch((err) => setMsgError(err.response.data.msg))\n }\n\n useEffect(() => {\n if (defaultValue) {\n setMicroAreaCoords(() => defaultValue.map_coords)\n } else setMicroAreaCoords(() => [])\n }, [defaultValue])\n\n useEffect(() => {\n if (initialsOnlyRead) {\n if (isNew)\n setValue(\n 'initials',\n `${(lenghtMicroArea + 1).toString().padStart(3, '0')}`,\n )\n else setValue('initials', defaultValue?.initials)\n }\n }, [initialsOnlyRead, lenghtMicroArea])\n\n useEffect(() => {\n if (currentArea) {\n setCurrentInitials(`${currentFarm?.initials}-${currentArea?.initials}`)\n setMicroAreaCoords(currentArea?.map_coords)\n axios\n .get('/micro-areas', {\n params: { farm_id: currentFarm?.id, area_id: currentArea?.id },\n })\n .then(({ data }) => {\n const acregeUsed = data.reduce(\n (sum: number, current: any) => sum + current.acreage,\n 0,\n )\n setLenghtMicroArea(data.length)\n setAcreageArea((currentArea?.acreage - acregeUsed).toFixed(2))\n setRemainingArea((currentArea?.acreage - acregeUsed).toFixed(2))\n })\n }\n }, [currentArea])\n\n useEffect(() => {\n if (!!initialsInput) setValue('initials', initialsInput.toLocaleUpperCase())\n }, [initialsInput])\n\n if (acreageMask === null) return <>\n return (\n <>\n \n
\n setMsgError('')} />\n
\n Algo deu errado.\n {msgError}\n
\n setMsgError('')}>\n Voltar\n \n
\n
\n
\n
\n
\n {\n setCurrentFarm(option.info)\n }}\n closeMenuOnSelect={true}\n errorText={(errors?.farm as any)?.value?.message}\n name={'farm'}\n />\n area?.info?.farm?.id == currentFarm?.id,\n )\n : []\n }\n getSelectedData={(option: any) => {\n setCurrentArea(option.info)\n }}\n isDisabled={!isNew}\n closeMenuOnSelect={true}\n errorText={(errors?.area as any)?.value?.message}\n name={'area'}\n noOptionsMessage={() => Nenhum retiro disponível}\n />\n\n \n\n setInitialsOnlyRead(!initialsOnlyRead)}\n className=\"initial--readOnly\"\n >\n {initialsOnlyRead ? 'Alterar sigla' : 'Usar sigla automática'}\n \n\n
\n \n\n
\n {\n // setValue('acreage', acreageInput.slice(0, 4))\n // if (acreageInput || acreageInput == '') {\n // var acreage = acreageInput?.replace(',', '.')\n // acreage = moveCharLeft(acreage, acreage.length)\n // setValue(\n // 'acreage',\n // acreage.length == 2\n // ? Number(acreage).toFixed(1)\n // : acreage,\n // )\n // }\n }}\n />\n\n = 0 ? Available : Unvailable}\n prefixPosition={'right'}\n name={'remainingArea'}\n overrideStyles={{\n prefixLabel: {\n maxWidth: 200,\n minWidth: 200,\n },\n input: {\n width: 10,\n },\n container: {\n width: 280,\n },\n }}\n />\n
\n
\n\n {errors?.acreage ? (\n \n {(errors?.acreage as any)?.message}\n \n ) : (\n ''\n )}\n\n {isNew || defaultValue?.reason_id ? (\n \n ) : (\n ''\n )}\n \n
\n
\n
\n \n \n {defaultValue?.batch_initials ? (\n
\n \n
\n ) : (\n ''\n )}\n
\n
\n\n
\n setOptionForm(undefined)}\n saveFunction={() => console.log('Save')}\n deleteFunction={() => deleteMicroArea()}\n isNew={isNew}\n />\n \n \n )\n}\n","import axios from './axios'\n\nconst getAreabyId = (areaId: number, formatDatacallBack?: (data: IArea) => any): Promise => {\n return axios.get(`/areas/${areaId}`).then(({ data }) => {\n if (formatDatacallBack) return formatDatacallBack(data)\n return data\n })\n}\n\nconst getAreabyFarmId = (farmId: number, formatDatacallBack?: (data: IArea[]) => any): Promise => {\n return axios.get(`/areas?farm_id=${farmId}`).then(({ data }) => {\n if (formatDatacallBack) return formatDatacallBack(data)\n return data\n })\n}\n\nconst createNewArea = (body: ICreateArea[]): Promise => {\n return axios.post(`/areas`, body).then(({ data }) => {\n return data\n })\n}\n\nconst editArea = (data: IEditArea[]): Promise => {\n return axios.patch('/areas', data)\n}\n\nconst deleteArea = (areaId: number): Promise => {\n return axios.delete(`/areas/${areaId}`)\n}\n\nexport const areaService = {\n getAreabyId,\n editArea,\n deleteArea,\n createNewArea,\n getAreabyFarmId\n}","import axios from './axios'\n\nconst getAllUsers = async (): Promise => {\n const { data } = await axios.get('/users')\n if (!!data) return data\n else return []\n}\n\nconst getUsersByOffice = async (profileRole: string): Promise => {\n const allusers = await getAllUsers()\n return allusers.filter((f: any) => f.profile_id === profileRole.toString())\n}\n\nexport const userService = {\n getAllUsers,\n getUsersByOffice\n}","import axios from './axios'\n\nconst getFarmsByUser = (): Promise => {\n return axios.get(`/farms/user`).then(({ data }) => {\n return data\n })\n}\n\nexport const farmService = {\n getFarmsByUser\n}","import { CSSProperties, useEffect, useRef, useState } from 'react'\nimport { useForm } from 'react-hook-form'\nimport * as yup from 'yup'\nimport './styles.css'\n\nimport { DrawOnMap } from '../../../../components/EditOnboarding/components/DrawOnMap/DrawOnMap'\nimport { SimpleButtonClose } from '../../../../components/Modal/Contents/SimpleButtonClose/Index'\nimport { ButtonRedirect } from '../../../../components/Modal/Error/ButtonRedirect/Index'\nimport { TitleModal } from '../../../../components/Modal/Contents/TitleModal/Index'\nimport { FooterEditOnboarding } from '../../../../components/EditOnboarding/Footer'\nimport { Dropdown } from '../../../../components/EditOnboarding/components/Select'\nimport { TextModal } from '../../../../components/Modal/Contents/TextModal/Index'\nimport { Input } from '../../../../components/EditOnboarding/components/Input'\nimport { AlertModal } from '../../../../components/Modal/Alert/Index'\nimport { Chips } from '../../../../components/Chips'\n\nimport { microAreaService } from '../../../../services/microAreaService'\nimport {\n IOptionProps,\n IOptionsProps,\n} from '../../../../@types/reactSelect/IOption'\nimport { areaService } from '../../../../services/areaService'\nimport { userService } from '../../../../services/userService'\nimport { ICoords } from '../../../../@types/GoogleMaps/ICoord'\nimport { sortBy } from '../../../../utils/arrays/sortBy'\nimport { yupResolver } from '@hookform/resolvers/yup'\nimport Constants from '../../../../constants/Index'\nimport { farmService } from '../../../../services/farmService'\nimport { moveCharLeft } from '../../../../utils/arrays/moveChar'\n\nconst schema = yup\n .object({\n name: yup.string().required('Campo obrigatório não informado.'),\n initials: yup.string().required('Campo obrigatório não informado.'),\n acreage: yup.string().required('Campo obrigatório não informado.'),\n grazing_time: yup.object({\n indoor: yup\n .object({\n label: yup.string(),\n value: yup.string(),\n })\n .test(\n 'is-null',\n 'Campo obrigatório não informado.',\n ({ value }) => !!value,\n ),\n outdoor: yup\n .object({\n label: yup.string(),\n value: yup.string(),\n })\n .test(\n 'is-null',\n 'Campo obrigatório não informado.',\n ({ value }) => !!value,\n ),\n }),\n owner_user_id: yup\n .object({\n label: yup.string(),\n value: yup.string(),\n })\n .test(\n 'is-null',\n 'Campo obrigatório não informado.',\n ({ value }) => !!value,\n ),\n farm: yup\n .object({\n label: yup.string(),\n value: yup.string(),\n })\n .test(\n 'is-null',\n 'Campo obrigatório não informado.',\n ({ value }) => !!value,\n ),\n map: yup\n .array()\n .of(\n yup.object({\n lat: yup.number(),\n lng: yup.number(),\n }),\n )\n .test('is-null', 'Campo obrigatório não informado.', (value) =>\n value ? value.length > 0 : true,\n ),\n })\n .required()\n\ninterface IFormAreaData {\n name: string\n initials: string\n acreage: string\n grazing_time: {\n indoor: IOptionProps\n outdoor: IOptionProps\n }\n owner_user_id: IOptionProps\n map: ICoords\n farm: IOptionProps\n}\n\nconst periods = [\n { label: '15 Dias', value: 15 },\n { label: '30 Dias', value: 30 },\n { label: '45 Dias', value: 45 },\n { label: '60 Dias', value: 60 },\n { label: '90 Dias', value: 90 },\n]\n\ninterface EditAreasProps {\n editAreaFromId?: number\n setLoadingState?: React.Dispatch>\n onSuccessEditingSave?: () => void\n onSuccessCreate?: () => void\n onCancelButton?: () => void\n onDeleteEvent?: () => void\n}\n\nconst contentStyleAlert = {\n width: '335px',\n height: '237px',\n borderRadius: '20px',\n padding: '20px',\n} as CSSProperties\n\nexport function EditAreas({\n editAreaFromId,\n setLoadingState,\n onSuccessEditingSave,\n onSuccessCreate,\n onCancelButton,\n onDeleteEvent,\n}: EditAreasProps) {\n const [microAreasExisting, setMicroAreasExisting] = useState<\n { id: number; name: string }[]\n >([])\n const [areaInitialData, setAreaInitialData] = useState(\n {} as IFormAreaData,\n )\n\n const [fitCoords, setFitCoords] = useState(undefined)\n const [farmInitials, setFarmInitials] = useState(null)\n const [defautAreaCoords, setDefautAreaCoords] = useState([])\n const [staticpolygons, setStaticpolygons] = useState([])\n const [managersList, setManagersList] = useState([])\n const [prefixInitials, setPrefixInitials] = useState('')\n const [isDisabled, setIsDisabled] = useState(true)\n const [initialsStr, setInitialsStr] = useState('')\n const [msgError, setMsgError] = useState('')\n const [farms, setFarms] = useState([])\n\n const exportICreateBody = (data: IFormAreaData): ICreateArea[] => {\n let acreage = acreageInput?.replace(',', '.')\n let currentAcreage = moveCharLeft(acreage, acreage.charAt(2))\n\n return [\n {\n acreage: currentAcreage,\n farm_id: data.farm.value,\n indoor_grazing_time: parseInt(data.grazing_time.indoor.value),\n outdoor_grazing_time: parseInt(data.grazing_time.outdoor.value),\n initials: data.initials,\n map_coords: data.map,\n name: data.name,\n owner_user_id: data.owner_user_id.value,\n },\n ]\n }\n\n const exportIEditBody = (data: IFormAreaData): IEditArea[] => {\n let acreage = acreageInput?.replace(',', '.')\n let currentAcreage = moveCharLeft(acreage, acreage.charAt(2))\n\n return [\n {\n outdoor_grazing_time: parseInt(data.grazing_time.outdoor.value),\n indoor_grazing_time: parseInt(data.grazing_time.indoor.value),\n acreage: currentAcreage,\n owner_user_id: parseInt(data.owner_user_id.value),\n area_id: editAreaFromId || -1,\n name: data.name,\n },\n ]\n }\n\n const handleinitForm = async () => {\n if (editAreaFromId) {\n const microAreasData = await microAreaService.getMicroAreasByAreaId(\n editAreaFromId,\n )\n const microExistenting: { id: number; name: string }[] = [],\n microCoordsArray: ICoords[] = []\n microAreasData.map(({ id, farm, area, initials, map_coords }) => {\n microExistenting.push({\n id,\n name: `${farm.initials}-${area.initials}-${initials}`,\n })\n microCoordsArray.push(map_coords as ICoords)\n })\n setMicroAreasExisting(microExistenting.sort(sortBy('name')))\n setStaticpolygons(microCoordsArray)\n const response = await areaService.getAreabyId(\n editAreaFromId,\n (data) => {\n setDefautAreaCoords(data.map_coords)\n setPrefixInitials(`${data.farm_inititals}-`)\n return {\n farm: {\n value: 1,\n label: `Fazenda Pastejo`,\n },\n name: data.name,\n initials: data.initials,\n acreage: data.acreage.toFixed(2),\n grazing_time: {\n indoor: {\n value: data.indoor_grazing_time,\n label: `${data.indoor_grazing_time} Dias`,\n },\n outdoor: {\n value: data.outdoor_grazing_time,\n label: `${data.outdoor_grazing_time} Dias`,\n },\n },\n map: data.map_coords,\n owner_user_id: {\n value: data.manager_user.id,\n label: data.manager_user.name,\n },\n }\n },\n )\n setAreaInitialData(response)\n return response\n }\n return {} as IFormAreaData\n }\n\n const { control, handleSubmit, register, watch, setValue } =\n useForm({\n defaultValues: async () => await handleinitForm(),\n resolver: yupResolver(schema),\n })\n\n const InitialsInput = watch('initials')\n const acreageInput = watch('acreage')\n const nameInput = watch('name')\n const farmInput = watch('farm')\n\n const isValidString = (input: string) => {\n const pattern = /^[\\d,\\.]*$/\n return pattern.test(input)\n }\n\n const onSubmit = (data: any) => {\n if (\n (data?.acreage && data.acreage.length > 11) ||\n (data?.acreage && !isValidString(data.acreage))\n ) {\n setMsgError('Valor inválido de área útil')\n } else {\n if (!!editAreaFromId) {\n //Se chegamos aqui estamos editando um retiro\n areaService\n .editArea(exportIEditBody(data))\n .then(() => onSuccessEditingSave && onSuccessEditingSave())\n .catch((error) => setMsgError(error.response.data.msg))\n .finally(() => setLoadingState && setLoadingState(() => false))\n } else {\n //Se chegamos aqui estamos criando um retiro\n areaService\n .createNewArea(exportICreateBody(data))\n .then(() => onSuccessCreate && onSuccessCreate())\n .catch((error) => setMsgError(error.response.data.msg))\n .finally(() => setLoadingState && setLoadingState(() => false))\n }\n }\n }\n\n const deleteArea = () => {\n if (editAreaFromId) {\n areaService\n .deleteArea(editAreaFromId)\n .then(() => onDeleteEvent && onDeleteEvent())\n .catch((error) => setMsgError(error.response.data.msg))\n }\n }\n\n const toggleIsReadyOnly = () => {\n if (!editAreaFromId) {\n setValue('initials', '')\n setIsDisabled((readonly) => !readonly)\n }\n }\n\n useEffect(() => {\n if (editAreaFromId) setValue('initials', areaInitialData.initials || '')\n else {\n if (!!nameInput && isDisabled) {\n if (\n editAreaFromId &&\n nameInput.toLocaleLowerCase() ===\n areaInitialData.name.toLocaleLowerCase()\n )\n setValue('initials', areaInitialData.initials || '')\n else {\n const arrayWords = nameInput.split(' ')\n if (arrayWords.length > 1) {\n const firstSentence = arrayWords[0].charAt(0)\n let secondSentence = ''\n if (arrayWords[1].length > 1)\n secondSentence = arrayWords[1].slice(0, 2)\n else\n secondSentence = `${arrayWords[1].charAt(\n 0,\n )}${arrayWords[0].charAt(1)}`\n setValue(\n 'initials',\n `${firstSentence}${secondSentence}`.toLocaleUpperCase(),\n )\n } else\n setValue(\n 'initials',\n `${arrayWords[0]}`.slice(0, 3).padEnd(3, '').toLocaleUpperCase(),\n )\n }\n } else if (!nameInput && isDisabled) setValue('initials', '')\n }\n }, [nameInput, isDisabled])\n\n useEffect(() => {\n setInitialsStr(InitialsInput)\n }, [InitialsInput])\n\n useEffect(() => {\n if (!farmInput) {\n setFitCoords(() => undefined)\n setFarmInitials(null)\n setStaticpolygons([])\n } else {\n const farm = farms.find((f) => f.id === parseInt(farmInput.value))\n if (farm) {\n setFitCoords(() => (!!farm ? farm.map_coords : undefined))\n setFarmInitials(farm?.initials || null)\n areaService.getAreabyFarmId(farmInput.value).then((data) => {\n setStaticpolygons(data.map((area) => area.map_coords))\n })\n }\n }\n }, [farmInput])\n\n useEffect(() => {\n userService\n .getUsersByOffice(Constants.PROFILE_CODE_CAPATAZ.toString())\n .then((data) => {\n setManagersList(() =>\n data.map((user) => ({ label: user.name, value: user.id })),\n )\n })\n if (!editAreaFromId) {\n farmService.getFarmsByUser().then((data) => setFarms(data))\n }\n }, [])\n\n return (\n <>\n \n
\n setMsgError('')} />\n
\n Algo deu errado.\n {msgError}\n
\n setMsgError('')}>\n Voltar\n \n
\n
\n \n
\n
\n {!editAreaFromId && (\n <>\n ({\n value: farm.id,\n label: farm.name,\n }))}\n closeMenuOnSelect={true}\n placeholderText={''}\n {...register('farm')}\n />\n \n )}\n\n \n\n \n\n \n {isDisabled ? 'Alterar sigla' : 'Usar sigla automática'}\n \n\n \n\n \n\n \n\n \n
\n
\n \n
    \n {microAreasExisting.map((area) => (\n
  • \n \n
  • \n ))}\n
\n
\n
\n onCancelButton && onCancelButton()}\n saveFunction={() => { }}\n deleteFunction={deleteArea}\n isNew={!editAreaFromId}\n />\n \n \n )\n}\n","import { Form } from \"@unform/web\";\nimport \"./style.css\";\nimport { CSSProperties, ReactNode, useEffect, useState } from \"react\";\nimport { ButtonOnlyTitle } from \"../../../../components/Buttons/ButtonOnlyTitle/Index\";\nimport { ButtonWithChildren } from \"../../../../components/Buttons/ButtonWithChildren/Index\";\nimport { AlertModal } from \"../../../../components/Modal/Alert/Index\";\nimport { SimpleButtonClose } from \"../../../../components/Modal/Contents/SimpleButtonClose/Index\";\nimport { TextModal } from \"../../../../components/Modal/Contents/TextModal/Index\";\nimport { TitleModal } from \"../../../../components/Modal/Contents/TitleModal/Index\";\nimport Constants from \"../../../../constants/Index\";\nimport { EditValues } from \"../../../../hooks/EditValues\";\nimport axios from \"../../../../services/axios\";\nimport { ReactComponent as PositiveIcon } from \"../../../../assets/svg/icons/positive.svg\";\nimport { ReactComponent as NegativeIcon } from \"../../../../assets/svg/icons/negative.svg\";\nimport { ReactComponent as CheckIcon } from \"../../../../assets/svg/icons/CheckFull.svg\";\nimport { Loading } from \"../../../../components/Loading/Index\";\nimport { useFilter } from \"../../../../hooks/useFilter\";\n\ninterface arrayItems {\n title?: string;\n element: ReactNode;\n}\n\ninterface SubSectionProps {\n items: arrayItems[];\n setSection?: (item: number) => void;\n defaultValue: number;\n}\n\nconst selectedSubsection = {\n color: \"#4d4d4d\",\n fontWeight: 600,\n};\n\nconst contentStyleAlert = {\n width: \"440px\",\n height: \"237px\",\n borderRadius: \"20px\",\n} as CSSProperties;\n\nexport function SubSection({ items, setSection, defaultValue }: SubSectionProps) {\n const [subSectionSelected, setSubSectionSelected] = useState(defaultValue);\n const {\n formRefValue,\n blockSave,\n refreshValues,\n setRefreshValues,\n setBlockSave,\n permissionMaster\n } = EditValues();\n const [formRef, setFormRef] = useState([]);\n const [title, setTitle] = useState(\"\");\n const [description, setDescription] = useState(\"\");\n const [modalVisible, setModalVisible] = useState(false);\n const [concludedModal, setConcludedModal] = useState(false);\n const [modalCancelarVisible, setModalCancelarVisible] = useState(false);\n const [visibleLoading, setVisibleLoading] = useState(false);\n const { setSideBarOptionSelected } = useFilter();\n\n\n function submitProfile() {\n var postProfiles: any[] = [];\n formRef?.users.forEach((user: any) => {\n if (user.isNew == \"true\")\n postProfiles.push({\n name: user.name,\n phone: user.phone,\n profile_id: Number(user.profile?.value),\n password: Constants.DEFAULT_PASSWORD,\n });\n });\n\n axios\n .post(\"/users/user\", postProfiles)\n .then(() => {\n if (postProfiles.length != 0) {\n setConcludedModal(true)\n setRefreshValues(!refreshValues)\n }\n })\n .catch((error) => console.log(error));\n }\n\n function submitAssortments() {\n const assortments = {\n state_registration: formRef.state_registration,\n id: Number(formRef.id),\n address: {\n city: {\n code: formRef.address?.city?.value,\n name: formRef.address?.city?.label,\n },\n state: formRef.address?.state?.value,\n street: formRef.address?.street,\n },\n name: formRef.name,\n document: formRef.document != \"\" ? formRef.document : null,\n };\n\n axios\n .patch(\"/assortments\", assortments)\n .then(() => { setConcludedModal(true) })\n .catch((error) => console.log(error));\n }\n\n function submitFarms() {\n var patchFarms: any[] = [];\n var postFarms: any[] = [];\n\n formRef?.farms.forEach((farm: any) => {\n if (farm.isNew == \"false\")\n patchFarms.push({\n farm_id: farm.uuid,\n name: farm.name,\n document: farm.document,\n state_registration: farm.state_registration,\n properties: {\n season: {\n dry_initial: farm.properties.season.dry_initial,\n rain_initial: farm.properties.season.rain_initial,\n },\n },\n });\n if (farm.isNew == \"true\")\n postFarms.push({\n name: farm.name,\n initials: farm.initials,\n document: farm.document != \"\" ? farm.document : null,\n owner_user_id: farm.manager_user_id.value,\n state_registration: farm.state_registration,\n map_coords: farm.file.coords,\n address: {\n city: {\n name: farm.address.city.label,\n code: farm.address.city.value,\n },\n state: farm.address.uf.label,\n street: farm.address.street,\n },\n properties: {\n season: {\n dry_initial: farm.properties.season.dry_initial,\n rain_initial: farm.properties.season.rain_initial,\n },\n },\n });\n });\n\n axios\n .patch(\"/farms\", patchFarms)\n .then(() => {\n if (postFarms.length == 0)\n setConcludedModal(true)\n })\n .catch((error) => console.log(error));\n axios\n .post(\"/farms\", postFarms)\n .then(() => {\n if (postFarms.length != 0) {\n setTitle('Agora crie retiros!')\n setModalVisible(true)\n setDescription('Continue cadastrando para criar tarefas dentro da sua nova fazenda.')\n }\n })\n .catch((error) => console.log(error));\n }\n\n function submitArea() {\n var patchAreas: any[] = [];\n var postAreas: any[] = [];\n\n formRef?.farms.forEach((farm: any) => {\n farm.areas.map((area: any) => {\n if (area.isNew == \"false\")\n patchAreas.push({\n area_id: area.uuid,\n name: area.name\n })\n if (area.isNew == \"true\")\n postAreas.push({\n name: area.name,\n initials: area.initials,\n farm_id: area.farm_id,\n acreage: area.acreage,\n owner_user_id: area.manager_user_id.value,\n map_coords: area.map_coords.coords\n })\n })\n });\n\n axios\n .patch(\"/areas\", patchAreas)\n .then(() => {\n if (postAreas.length == 0)\n setConcludedModal(true)\n })\n .catch((error) => console.log(error));\n axios\n .post(\"/areas\", postAreas)\n .then(() => {\n if (postAreas.length != 0) {\n setTitle('Agora crie pastos!')\n setModalVisible(true)\n setDescription('Continue cadastrando para criar tarefas dentro do seu novo retiro.')\n }\n })\n .catch((error) => console.log(error));\n }\n\n function sumbitMicroAreas() {\n var postMicroAreas: any[] = [];\n\n formRef.farms.map((farm: any) =>\n farm.areas.map((area: any) =>\n area.microareas.map((micro: any) => {\n if (micro.isNew == \"true\")\n postMicroAreas.push(\n {\n initials: micro.initials.split(\"-\")[2],\n acreage: micro.acreage,\n area_id: micro.area_id,\n map_coords: micro.map_coords.coords\n }\n )\n })\n )\n )\n\n axios\n .post(\"/micro-areas\", postMicroAreas)\n .then(() => {\n if (postMicroAreas.length != 0) {\n setTitle('Agora crie lotes!')\n setModalVisible(true)\n setDescription('Continue cadastrando para criar tarefas dentro do seu novo pasto.')\n }\n })\n .catch((error) => console.log(error));\n }\n\n function submitBatches() {\n var postBatches: any[] = [];\n var listCategories: any[] = [];\n formRef?.lots.forEach((batche: any) => {\n if (batche.isNew == \"true\") {\n batche.categories.map((categorie: any) => listCategories.push(\n {\n id: Number(categorie.id),\n month: Number(categorie.month),\n quantity: Number(categorie.quantity),\n }\n ))\n postBatches.push({\n area_id: batche.area.value,\n initials: batche.initials,\n current_micro_area_id: batche.current_micro_area.value,\n micro_area_route_ids: batche.micro_area_route_ids,\n categories: listCategories,\n });\n }\n })\n axios\n .post(\"/batches\", postBatches)\n .then(() => {\n if (postBatches.length != 0) {\n setConcludedModal(true)\n }\n })\n .catch((error) => console.log(error));\n }\n\n useEffect(() => {\n switch (formRef?.form) {\n case \"profile\":\n submitProfile();\n break;\n case \"assortment\":\n submitAssortments();\n break;\n case \"farms\":\n submitFarms();\n break;\n case \"areas\":\n submitArea();\n break;\n case \"microAreas\":\n sumbitMicroAreas();\n break;\n case \"batches\":\n submitBatches();\n break;\n }\n }, [formRef]);\n\n useEffect(() => {\n setModalCancelarVisible(false);\n }, [refreshValues]);\n\n useEffect(() => {\n setVisibleLoading(true);\n setBlockSave(true);\n }, [subSectionSelected]);\n\n useEffect(() => {\n if (visibleLoading) {\n setVisibleLoading(false);\n }\n }, [visibleLoading]);\n\n return (\n
\n \n \n
\n {\n setModalVisible(!modalVisible)\n setRefreshValues(!refreshValues)\n }}\n />\n {title}\n \n {description}\n \n
\n {\n setModalVisible(false)\n setRefreshValues(!refreshValues)\n setBlockSave(true)\n }}\n title=\"mais tarde\"\n theme=\"light\"\n />\n {\n setSubSectionSelected(subSectionSelected + 1)\n setModalVisible(false)\n if (subSectionSelected == 3 && setSection) {\n setSection(2)\n }\n }}\n title=\"continuar\"\n theme=\"info\"\n />\n
\n
\n
\n \n
\n setModalCancelarVisible(false)} />\n Você tem certeza?\n \n Ao cancelar, você perderá todas as alterações realizadas!\n \n
\n {\n setSideBarOptionSelected(\"MAPA\")\n }}>\n
\n \n
Sim
\n
\n
\n setModalCancelarVisible(false)}>\n
\n \n
Não
\n
\n
\n
\n
\n
\n {items[0].title && (\n <>\n
\n {items.map((value, key) => (\n setSubSectionSelected(key)}\n >\n {value.title}\n \n ))}\n
\n\n \n \n )}\n\n
setFormRef(formRefValue.current?.getData())}>\n {items.map((value, key) =>\n subSectionSelected == key ? (\n \n {value.element}\n
\n ) : (\n <>\n )\n )}\n {permissionMaster ? : <>}\n\n \n \n
\n { setConcludedModal(false) }} />\n \n Concluído!\n Você salvou com sucesso\n
\n {\n setConcludedModal(false)\n setBlockSave(true);\n }}\n />\n
\n
\n
\n {permissionMaster &&\n setModalCancelarVisible(true)}\n />\n }\n {permissionMaster &&\n \n }\n \n \n \n );\n}","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgInfo(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 30,\n height: 30,\n viewBox: \"0 0 30 30\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27ZM16.2584 22.0664V12.7384H13.7592V22.0664H16.2584ZM16.0824 8.35599C15.8008 8.07439 15.4371 7.93359 14.9912 7.93359C14.5453 7.93359 14.1816 8.07439 13.9 8.35599C13.6184 8.62586 13.4776 8.97199 13.4776 9.39439C13.4776 9.81679 13.6184 10.1688 13.9 10.4504C14.1816 10.7203 14.5453 10.8552 14.9912 10.8552C15.4371 10.8552 15.8008 10.7203 16.0824 10.4504C16.3757 10.1688 16.5224 9.81679 16.5224 9.39439C16.5224 8.97199 16.3757 8.62586 16.0824 8.35599Z\",\n fill: \"#62B8AE\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgInfo);\nexport default __webpack_public_path__ + \"static/media/info.602a4015.svg\";\nexport { ForwardRef as ReactComponent };","import { ReactComponent as InfoIcon } from \"../../../../assets/svg/icons/info.svg\";\nimport \"./styles.css\";\n\ntype TableVisualizationRowProps = {\n evaluation: ITaskEvaluation;\n setSelectedId: (e: number) => void;\n};\n\nexport default function TableVisualizationRowTask({\n evaluation,\n setSelectedId\n}: TableVisualizationRowProps) {\n const created = new Date(evaluation?.created_at)\n const updated = new Date(evaluation?.updated_at)\n\n return (\n
\n
{evaluation.name}
\n
{evaluation.task}
\n
{evaluation.micro_area_initials}
\n
{evaluation.status}
\n
\n {evaluation?.created_at ?\n `${String(created.getDate()).padStart(2, \"0\")\n }/${String(created.getMonth() + 1).padStart(2, \"0\")\n }/${String(created.getFullYear() % 100).padStart(2, \"0\")\n } - ${String(created.getHours()).padStart(2, \"0\")\n }:${String(created.getMinutes()).padStart(2, \"0\")\n }` :\n \"\"}\n
\n
\n {evaluation?.updated_at ?\n `${String(updated.getDate()).padStart(2, \"0\")\n }/${String(updated.getMonth() + 1).padStart(2, \"0\")\n }/${String(updated.getFullYear() % 100).padStart(2, \"0\")\n } - ${String(updated.getHours()).padStart(2, \"0\")\n }:${String(updated.getMinutes()).padStart(2, \"0\")\n }` :\n \"\"}\n
\n
\n \n
\n
\n );\n}","import { useEffect, useState } from \"react\";\nimport \"./styles.css\"\n\ninterface ButtonPressedProps {\n optionSelected: any;\n value: any;\n text: string;\n onlyResult?: boolean;\n}\n\nexport function ButtonPressed({\n optionSelected,\n value,\n text,\n onlyResult = false\n}: ButtonPressedProps) {\n const [buttonTheme, setButtonTheme] = useState(\"\");\n\n useEffect(() => {\n setButtonTheme(optionSelected == value ? \"buttonPressed\" : \"buttonNotPressed\")\n if (!optionSelected) setButtonTheme(\"unselected\")\n }, [optionSelected]);\n\n return (\n \n );\n};\n","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\n\ninterface InfoAnimalAddProps {\n task: ITaskAnimalAdd | undefined;\n}\n\n\nexport default function InfoAnimalAdd(task: InfoAnimalAddProps) {\n const [taskAdd, setTaskAdd] = useState();\n useEffect(() => {\n setTaskAdd(task.task)\n }, []);\n\n\n return (\n <>\n
\n No retiro\n
\n \n
\n {taskAdd?.area_initials}\n \n
\n
\n
\n\n
\n No lote\n
\n \n
\n {taskAdd?.batch_initials}\n \n
\n
\n
\n\n
\n \n \n
\n\n {taskAdd?.categories.map((category, index) => (\n
\n
{category.category_description.name}
\n
{category.category_description.age_description}
\n \n
\n ))}\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\n\ninterface InfoEvolutionProps {\n task: ITaskEvolution | undefined;\n}\n\n\nexport default function InfoEvolution(task: InfoEvolutionProps) {\n const [taskEvolution, setTaskEvolution] = useState();\n useEffect(() => {\n setTaskEvolution(task.task)\n }, []);\n\n\n return (\n <>\n
\n No lote\n
\n \n
\n {taskEvolution?.batch_initials}\n \n
\n
\n
\n\n
\n Evoluído de\n
\n \n \n
\n
\n\n
\n Evoluído para\n
\n \n \n
\n
\n\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\n\ninterface InfoAnimalSellProps {\n task: ITaskAnimalSell | undefined;\n}\n\n\nexport default function InfoAnimalSell(task: InfoAnimalSellProps) {\n const [taskSell, setTaskSell] = useState();\n useEffect(() => {\n setTaskSell(task.task)\n }, []);\n\n const mapText = new Map();\n mapText.set(\"Venda\", \"Vivo\")\n mapText.set(\"Abate\", \"Abate\")\n\n return (\n <>\n
\n No retiro\n
\n \n
\n {taskSell?.area_initials}\n \n
\n
\n
\n\n
\n No lote\n
\n \n
\n {taskSell?.batch_initials}\n \n
\n
\n
\n\n
\n \n \n
\n\n {taskSell?.categories.map((category, index) => (\n
\n
{category.category_description.name}
\n
{category.category_description.age_description}
\n \n
\n ))}\n \n )\n}","var _path, _path2, _path3, _path4, _path5;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgGrazingRoute(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 84,\n height: 50,\n viewBox: \"0 0 84 50\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M45.3903 22.2828L44.4416 21.9829H42.1948L39.0491 21.2839L35.3541 27.9745L18.3778 27.9748C17.1794 27.9748 16.1808 28.7237 15.7813 29.7226H12.336L13.7341 40.2579L11.9867 40.2576L9.19067 29.7722L7.74286 31.8194V40.2577H5.99512L5.29611 30.4214L5.99512 26.2274L5.29611 21.3343V16.3911C4.49714 16.3911 3.89805 17.0403 3.89805 17.7891V29.7225H2.5V17.7891C2.5 16.2414 3.74826 14.9931 5.29602 14.9931H33.1572L37.1016 14.3439L35.5538 12.8459L36.9518 12.8462C37.4011 12.8462 37.8006 12.996 38.2001 13.1959L39.3985 13.9447L39.6483 13.8949L39.199 12.8462C38.5999 11.498 39.5984 10 41.0964 10H45.0407L42.0447 11.1483C41.4955 11.3479 41.196 12.0469 41.4457 12.5961L41.8452 13.4449C42.5442 13.3449 43.0436 13.5449 43.3432 14.044L47.2377 19.736C47.5874 20.2355 47.5874 20.8843 47.2377 21.3837L46.9379 21.6836C46.5885 22.1831 45.9894 22.4328 45.3901 22.283L45.3903 22.2828ZM44.5416 32.0692L42.0451 28.3244C41.7953 27.9249 41.346 27.7751 40.8967 27.8249L40.647 27.8747L40.1476 27.3258C39.948 27.0263 39.6481 26.8765 39.2988 26.8765H38.9491V28.2746L35.3043 29.0234H18.3778C17.5789 29.0234 16.6301 29.6726 16.6301 30.7711V38.5602H17.7286L17.7289 31.0706C17.7289 30.5712 18.1284 30.2219 18.5777 30.2219V31.6697L19.3767 36.0135L18.5777 38.61L19.6264 44.7015H20.7747L20.3752 39.8084L22.3723 36.8626L29.1628 37.8114L29.5623 44.7019H30.7106L31.1101 38.0611L32.0589 38.2109L33.4569 44.7019H34.6052L33.8063 38.4108L38.7495 33.5675C39.0992 33.2179 39.648 33.0681 40.1475 33.2179L41.2958 33.5675C41.4456 33.6173 41.5954 33.6173 41.7451 33.6173H43.6426C43.8923 33.6173 44.0919 33.4676 44.1918 33.2677L44.4914 32.7184C44.6415 32.5185 44.6415 32.2691 44.5415 32.0692L44.5416 32.0692ZM21.973 39.3592L24.5194 44.6517H25.6677L23.9199 39.7586L24.6189 38.1607L22.9214 37.9109L21.973 39.3592Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M57.5077 31.25C56.4106 29.3498 55.833 27.1942 55.833 25C55.833 22.8058 56.4106 20.6502 57.5077 18.75C58.6048 16.8498 60.1828 15.2718 62.083 14.1747C63.9832 13.0776 66.1388 12.5 68.333 12.5V15C66.5776 15 64.8532 15.4621 63.333 16.3397C61.8128 17.2174 60.5504 18.4798 59.6728 20C58.7951 21.5202 58.333 23.2446 58.333 25C58.333 26.7554 58.7951 28.4798 59.6728 30L57.5077 31.25Z\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M65.708 20.5L71.9256 13.7437L65.7236 7L63.7236 8.66816L65.8919 10.9752C66.4137 11.5966 67.0436 12.1225 67.7524 12.529H68.1756V14.9755H67.7602C67.0577 15.3982 66.4229 15.9202 65.8764 16.5248L63.708 18.8318L65.708 20.5Z\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M79.1583 18.75C80.2554 20.6502 80.833 22.8058 80.833 25C80.833 27.1942 80.2554 29.3498 79.1583 31.25C78.0612 33.1502 76.4832 34.7282 74.583 35.8253C72.6828 36.9224 70.5272 37.5 68.333 37.5V35C70.0884 35 71.8128 34.5379 73.333 33.6603C74.8532 32.7826 76.1156 31.5202 76.9933 30C77.8709 28.4798 78.333 26.7554 78.333 25C78.333 23.2446 77.8709 21.5202 76.9933 20L79.1583 18.75Z\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M70.95 29.5L64.7324 36.2563L70.9345 43L72.9345 41.3318L70.7661 39.0248C70.2443 38.4035 69.6144 37.8775 68.9057 37.471H68.4824V35.0245L68.8978 35.0245C69.6003 34.6019 70.2351 34.0798 70.7816 33.4752L72.95 31.1682L70.95 29.5Z\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgGrazingRoute);\nexport default __webpack_public_path__ + \"static/media/grazingRoute.b48f4525.svg\";\nexport { ForwardRef as ReactComponent };","import { ReactComponent as PositiveIcon } from \"../../../assets/svg/icons/positive.svg\";\nimport { ReactComponent as NegativeIcon } from \"../../../assets/svg/icons/negative.svg\";\nimport \"./styles.css\"\n\ninterface ButtonYesOrNoProps {\n optionSelected: \"yes\" | \"no\" | undefined;\n setOptionSelected?: (option: \"yes\" | \"no\") => void;\n onlyResult?: boolean;\n}\n\nexport function ButtonYesOrNo({\n optionSelected,\n setOptionSelected,\n onlyResult = false\n}: ButtonYesOrNoProps) {\n\n function optionSelect(button: \"yes\" | \"no\") {\n if (!optionSelected) return \"unselected\"\n if (button == \"yes\" && optionSelected == \"yes\") {\n return \"yesPress\"\n }\n if (button == \"no\" && optionSelected == \"no\") {\n return \"noPress\"\n }\n return \"notPress\"\n }\n\n return (\n
\n {optionSelected == \"yes\" &&\n \n }\n\n {optionSelected == \"no\" &&\n \n }\n
\n );\n};\n","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\n\ninterface InfoSplitBatchProps {\n task: ITaskSplitBatch | undefined;\n}\n\n\nexport default function InfoSplitBatch(task: InfoSplitBatchProps) {\n const [taskSplitBatch, setTaskSplitBatch] = useState();\n useEffect(() => {\n setTaskSplitBatch(task.task)\n }, []);\n\n\n return (\n <>\n
\n No lote\n
\n \n
\n {taskSplitBatch?.source_batch_initials}\n \n
\n
\n
\n\n\n
\n \n \n
\n\n {taskSplitBatch?.inventoryBatch_split_type == \"Novo lote\" ?\n \n :\n
\n Para o lote\n
\n \n
\n {taskSplitBatch?.destination_batch_initials}\n \n
\n
\n
\n }\n\n {taskSplitBatch?.categories.map((category, index) => (\n
\n
{category.category_description.name}
\n
{category.category_description.age_description}
\n \n
\n ))}\n\n {taskSplitBatch?.inventoryBatch_split_type == \"Novo lote\" ?\n el.initials).join(\", \")}.`} pointed />\n : <>}\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\n\ninterface InfoAnimalDeathProps {\n task: ITaskAnimalDeath | undefined;\n}\n\n\nexport default function InfoAnimalDeath(task: InfoAnimalDeathProps) {\n const [taskDeath, setTaskDeath] = useState();\n useEffect(() => {\n setTaskDeath(task.task)\n }, []);\n\n\n return (\n <>\n
\n Do lote\n
\n \n
\n {taskDeath?.batch_initials}\n \n
\n
\n
\n\n
\n \n \n
\n\n {taskDeath?.categories.map((category, index) => (\n
\n
{category.category_description.name}
\n
{category.category_description.age_description}
\n \n
\n ))}\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as BackIcon } from \"../../../../assets/svg/icons/back.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\n\ninterface InfoMoveBatchProps {\n task: ITaskMoveBatch | undefined;\n}\n\nexport default function InfoMoveBatch(task: InfoMoveBatchProps) {\n const [taskMoveBatch, setTaskMoveBatch] = useState();\n useEffect(() => {\n setTaskMoveBatch(task.task)\n }, []);\n\n\n return (\n <>\n
\n No lote\n
\n \n
\n {taskMoveBatch?.batch_initials}\n \n
\n
\n
\n\n
\n Do pasto\n
\n {taskMoveBatch?.source_micro_area_full_initials}\n
\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n Para o pasto\n
\n {taskMoveBatch?.destination_micro_area_full_initials}\n
\n \n
\n
\n
\n\n {taskMoveBatch?.categories.map((category, index) => (\n
\n
{category.category_description.name}
\n
{category.category_description.age_description}
\n \n
\n ))}\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as BackIcon } from \"../../../../assets/svg/icons/back.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\n\ninterface GrazingRouteProps {\n task: ITaskGrazingRoute | undefined;\n}\n\nexport default function InfoGrazingRoute(task: GrazingRouteProps) {\n const [taskGrazingRoute, setTaskGrazingRoute] = useState();\n useEffect(() => {\n setTaskGrazingRoute(task.task)\n }, []);\n\n const mapText = new Map();\n mapText.set(\"Adicionar\", \"Incluir\")\n mapText.set(\"Remover\", \"Excluir\")\n\n return (\n <>\n
\n Do retiro\n
\n \n
\n {taskGrazingRoute?.area_initials}\n \n
\n
\n
\n\n
\n Do lote\n
\n \n
\n {taskGrazingRoute?.batch_initials}\n \n
\n
\n
\n\n el.initials).join(\", \")}.`} pointed />\n\n
\n \n \n
\n\n\n
\n Pasto:\n
\n {taskGrazingRoute?.micro_area_full_initials}\n
\n \n
\n
\n
\n \n )\n}","var _path, _path2, _rect, _path3;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgFractionateBatches(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 99,\n height: 50,\n viewBox: \"0 0 99 50\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M45.3903 22.2828L44.4416 21.9829H42.1948L39.0491 21.2839L35.3541 27.9745L18.3778 27.9748C17.1794 27.9748 16.1808 28.7236 15.7813 29.7226H12.336L13.7341 40.2579L11.9867 40.2576L9.19067 29.7722L7.74286 31.8194V40.2577H5.99512L5.29611 30.4214L5.99512 26.2274L5.29611 21.3343V16.3911C4.49714 16.3911 3.89805 17.0403 3.89805 17.7891V29.7225H2.5V17.7891C2.5 16.2414 3.74826 14.9931 5.29602 14.9931H33.1572L37.1015 14.3439L35.5538 12.8459L36.9518 12.8462C37.4011 12.8462 37.8006 12.996 38.2001 13.1959L39.3985 13.9447L39.6483 13.8949L39.199 12.8462C38.5999 11.498 39.5984 10 41.0964 10H45.0407L42.0447 11.1483C41.4955 11.3479 41.196 12.0469 41.4457 12.5961L41.8452 13.4449C42.5442 13.3449 43.0436 13.5449 43.3432 14.0439L47.2377 19.736C47.5874 20.2355 47.5874 20.8843 47.2377 21.3837L46.9379 21.6836C46.5885 22.1831 45.9894 22.4328 45.3901 22.283L45.3903 22.2828ZM44.5416 32.0692L42.045 28.3244C41.7953 27.9249 41.346 27.7751 40.8967 27.8249L40.647 27.8747L40.1476 27.3258C39.948 27.0263 39.6481 26.8765 39.2988 26.8765H38.9491V28.2746L35.3043 29.0234H18.3778C17.5789 29.0234 16.6301 29.6726 16.6301 30.7711V38.5602H17.7286L17.7289 31.0706C17.7289 30.5712 18.1284 30.2219 18.5777 30.2219V31.6697L19.3767 36.0135L18.5777 38.61L19.6264 44.7015H20.7747L20.3752 39.8084L22.3723 36.8626L29.1628 37.8114L29.5623 44.7019H30.7106L31.1101 38.0611L32.0589 38.2109L33.4569 44.7019H34.6052L33.8063 38.4108L38.7495 33.5675C39.0992 33.2179 39.648 33.0681 40.1475 33.2179L41.2958 33.5675C41.4456 33.6173 41.5954 33.6173 41.7451 33.6173H43.6426C43.8923 33.6173 44.0919 33.4676 44.1918 33.2677L44.4914 32.7184C44.6415 32.5185 44.6415 32.2691 44.5415 32.0692L44.5416 32.0692ZM21.973 39.3592L24.5194 44.6517H25.6677L23.9199 39.7586L24.6189 38.1607L22.9214 37.9109L21.973 39.3592Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M70.8333 23.368L61.3255 23.368C62.2867 22.7856 63.1543 22.0612 63.8989 21.2195L66.7901 18.0761L64.1235 15.8032L55.8333 25.0088L64.1027 34.197L66.7694 31.9241L63.8782 28.7808C63.1649 27.9127 62.3 27.1813 61.3255 26.6219H70.8333V23.368Z\"\n })), _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n x: 77.5,\n y: 16.6667,\n width: 16.6667,\n height: 3.33333,\n transform: \"rotate(90 77.5 16.6667)\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M80.8333 26.6322L90.3411 26.6322C89.3799 27.2146 88.5123 27.939 87.7677 28.7808L84.8765 31.9241L87.5432 34.197L95.8333 24.9915L87.5639 15.8032L84.8972 18.0761L87.7884 21.2195C88.5018 22.0875 89.3667 22.819 90.3411 23.3784L80.8333 23.3783L80.8333 26.6322Z\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgFractionateBatches);\nexport default __webpack_public_path__ + \"static/media/fractionateBatches.3e17a3cf.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2, _path3;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgMoveBatch(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 132,\n height: 50,\n viewBox: \"0 0 132 50\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M45.3903 22.2828L44.4416 21.9829H42.1948L39.0491 21.2839L35.3541 27.9745L18.3778 27.9748C17.1794 27.9748 16.1808 28.7237 15.7813 29.7226H12.336L13.7341 40.2579L11.9867 40.2576L9.19067 29.7722L7.74286 31.8194V40.2577H5.99512L5.29611 30.4214L5.99512 26.2274L5.29611 21.3343V16.3911C4.49714 16.3911 3.89805 17.0403 3.89805 17.7891V29.7225H2.5V17.7891C2.5 16.2414 3.74826 14.9931 5.29602 14.9931H33.1572L37.1016 14.3439L35.5538 12.8459L36.9518 12.8462C37.4011 12.8462 37.8006 12.996 38.2001 13.1959L39.3985 13.9447L39.6483 13.8949L39.199 12.8462C38.5999 11.498 39.5984 10 41.0964 10H45.0407L42.0447 11.1483C41.4955 11.3479 41.196 12.0469 41.4457 12.5961L41.8452 13.4449C42.5442 13.3449 43.0436 13.5449 43.3432 14.044L47.2377 19.736C47.5874 20.2355 47.5874 20.8843 47.2377 21.3837L46.9379 21.6836C46.5885 22.1831 45.9894 22.4328 45.3901 22.283L45.3903 22.2828ZM44.5416 32.0692L42.0451 28.3244C41.7953 27.9249 41.346 27.7751 40.8967 27.8249L40.647 27.8747L40.1476 27.3258C39.948 27.0263 39.6481 26.8765 39.2988 26.8765H38.9491V28.2746L35.3043 29.0234H18.3778C17.5789 29.0234 16.6301 29.6726 16.6301 30.7711V38.5602H17.7286L17.7289 31.0706C17.7289 30.5712 18.1284 30.2219 18.5777 30.2219V31.6697L19.3767 36.0135L18.5777 38.61L19.6264 44.7015H20.7747L20.3752 39.8084L22.3723 36.8626L29.1628 37.8114L29.5623 44.7019H30.7106L31.1101 38.0611L32.0589 38.2109L33.4569 44.7019H34.6052L33.8063 38.4108L38.7495 33.5675C39.0992 33.2179 39.648 33.0681 40.1475 33.2179L41.2958 33.5675C41.4456 33.6173 41.5954 33.6173 41.7451 33.6173H43.6426C43.8923 33.6173 44.0919 33.4676 44.1918 33.2677L44.4914 32.7184C44.6415 32.5185 44.6415 32.2691 44.5415 32.0692L44.5416 32.0692ZM21.973 39.3592L24.5194 44.6517H25.6677L23.9199 39.7586L24.6189 38.1607L22.9214 37.9109L21.973 39.3592Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M75.8333 24.991L67.5432 34.1965L64.8765 31.9236L67.7677 28.7803C68.5123 27.9385 69.3799 27.2141 70.3411 26.6317H55.8333V23.3779H70.3411C69.3667 22.8185 68.5018 22.087 67.7884 21.219L64.8972 18.0756L67.5639 15.8027L75.8333 24.991Z\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M125.468 28.1514C125.543 28.2935 125.558 28.4505 125.512 28.5998C125.465 28.7492 125.359 28.8832 125.209 28.9828C123.68 29.9961 122.43 31.2393 121.533 32.6379C120.635 34.0366 120.109 35.5619 119.987 37.1226H116.224C116.358 34.3103 117.298 31.557 118.975 29.0645C120.67 28.2876 122.57 27.822 124.53 27.703C124.727 27.6913 124.923 27.7284 125.091 27.8089C125.259 27.8895 125.39 28.0094 125.465 28.1514H125.468ZM113.666 22.6746C115.836 19.5237 118.669 16.6788 122.048 14.2584C122.211 14.1395 122.314 13.9789 122.338 13.8058C122.362 13.6327 122.306 13.4585 122.179 13.315C122.053 13.1716 121.864 13.0683 121.648 13.024C121.432 12.9796 121.202 12.9972 121.001 13.0735C114.202 15.6972 108.846 19.817 105.436 24.7825C106.419 25.9182 107.271 27.1189 107.984 28.371C109.426 26.2222 111.351 24.2928 113.668 22.6746H113.666ZM101.224 37.1226H105.016C105.125 34.7396 105.769 32.3898 106.918 30.1795C103.788 23.6936 96.8094 18.5728 87.8379 16.7387C87.6216 16.6945 87.3921 16.7122 87.1912 16.7886C86.9902 16.865 86.8311 16.9951 86.7427 17.1551C86.6544 17.3151 86.6426 17.4945 86.7096 17.6607C86.7766 17.8269 86.9179 17.9689 87.1078 18.0608C95.699 22.2168 100.917 29.3064 101.224 37.1232V37.1226ZM95.6198 37.1226H99.3554C99.2151 33.5511 97.9469 30.0616 95.663 26.9628C93.6147 25.9045 91.2944 25.2074 88.8643 24.9203C88.6587 24.896 88.4486 24.9259 88.2672 25.0051C88.0858 25.0844 87.9436 25.2085 87.863 25.3578C87.7824 25.5072 87.7681 25.6732 87.8222 25.8296C87.8764 25.986 87.9961 26.1238 88.1622 26.2212C92.6687 28.858 95.3508 32.7995 95.623 37.1226H95.6198ZM126.591 19.87C126.504 19.7125 126.349 19.5839 126.153 19.5069C125.956 19.4298 125.731 19.4094 125.517 19.4491C114.837 21.4229 107.309 28.6341 106.897 37.1226H114.359C114.502 33.8523 115.657 30.6572 117.726 27.8094C119.795 24.9616 122.716 22.5453 126.242 20.7662C126.426 20.6729 126.563 20.5318 126.627 20.3678C126.69 20.2038 126.678 20.0275 126.591 19.87Z\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgMoveBatch);\nexport default __webpack_public_path__ + \"static/media/moveBatch.b5b59ce8.svg\";\nexport { ForwardRef as ReactComponent };","var _g, _path, _path2, _defs;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgEvolution(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 115,\n height: 50,\n viewBox: \"0 0 115 50\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_1088_22078)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.40501 31.9855L10.5151 32.2858L9.63533 34.2852L11.4166 39.3053H10.2277L7.42933 33.4681L8.40501 31.9855ZM30.8369 26.3658L28.2268 22.498C27.9721 22.1209 27.5144 21.9356 27.069 22.0292L26.7845 22.089L26.3538 21.4571C26.1589 21.171 25.835 21 25.4891 21H25.1494V22.4334L21.3547 23.2321L4.16657 23.2319C3.18029 23.2321 2.38086 24.0315 2.38086 25.0178V33.0535H3.27394V25.0178C3.27394 24.5254 3.67453 24.1248 4.16702 24.1248V25.9105L4.99077 30.3728L4.16702 33.0538L5.23482 39.3049H6.4233L6.00146 34.2845L8.0786 31.2623L15.061 32.2148L15.4594 39.3049H16.6483L17.0795 32.4857L18.0567 32.6168L19.5016 39.3044H20.6905L19.8736 32.8447L24.9761 27.8556C25.3583 27.4821 25.9132 27.3452 26.4252 27.4989L27.5968 27.8503C27.7498 27.8964 27.9086 27.9196 28.0683 27.9196H30.013C30.2482 27.9196 30.4645 27.791 30.5772 27.5848L30.8737 27.0414C30.9904 26.827 30.9763 26.5655 30.8368 26.3655L30.8369 26.3658Z\"\n }))), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M59.167 24.991L50.8768 34.1965L48.2102 31.9236L51.1014 28.7803C51.846 27.9385 52.7136 27.2141 53.6748 26.6317H39.167V23.3779H53.6748C52.7003 22.8185 51.8355 22.087 51.1221 21.219L48.2309 18.0756L50.8976 15.8027L59.167 24.991Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M76.2477 29.0761L83.6908 30.6964L81.5748 33.2655V34.8521C81.5748 35.1492 81.3342 35.3895 81.0374 35.3895C80.7402 35.3895 80.4999 35.1485 80.4999 34.8521V33.2805H79.1184V34.8521C79.1184 35.1492 78.8774 35.3895 78.5809 35.3895C78.2845 35.3895 78.0435 35.1485 78.0435 34.8521L78.0431 33.2805H76.4415L77.3445 40.3121H75.5904L73.8696 33.2881L73.8375 32.2038L76.2477 29.0761ZM90.4736 30.8189L89.2547 40.3118H91.0087L92.8178 32.5255L91.9608 30.8179L90.4736 30.8189ZM112.134 19.6359L108.281 13.916C107.965 13.4567 107.537 13.366 106.963 13.4766L106.577 12.6081C106.328 12.049 106.596 11.3958 107.166 11.1726L110.163 10H106.237C104.768 10 103.779 11.5029 104.36 12.8519L104.805 13.8863L104.543 13.931L103.351 13.1748C102.978 12.9377 102.545 12.8125 102.103 12.8125H100.671L102.24 14.321L98.2144 15H70.3125C68.7615 15 67.5 16.2615 67.5 17.8125V29.7661H68.9066V17.8125C68.9066 17.0369 69.5375 16.4059 70.3132 16.4059V21.3721L71.0163 26.25L70.3132 30.4692L71.0163 40.3129H72.7745V31.8754L75.821 27.9043L84.376 29.7657L92.8191 29.7632L94.5329 33.2813L95.2744 40.3122H97.0325L97.0318 29.705C98.5735 29.4787 99.9549 28.5862 100.785 27.2371L104.425 21.3257L107.237 22.0288L109.505 22.0323L110.318 22.2472C110.986 22.4697 111.721 22.2468 112.153 21.6902C112.622 21.0837 112.615 20.234 112.134 19.6355L112.134 19.6359Z\"\n })), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_1088_22078\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 33.3333,\n height: 33.3333,\n transform: \"translate(0 13.333)\"\n })))));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgEvolution);\nexport default __webpack_public_path__ + \"static/media/evolution.cd32008d.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _rect, _rect2;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgAnimalAdd(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 75,\n height: 50,\n viewBox: \"0 0 75 50\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M45.3903 22.2828L44.4416 21.9829H42.1948L39.0491 21.2839L35.3541 27.9745L18.3778 27.9748C17.1794 27.9748 16.1808 28.7237 15.7813 29.7226H12.336L13.7341 40.2579L11.9867 40.2576L9.19067 29.7722L7.74286 31.8194V40.2577H5.99512L5.29611 30.4214L5.99512 26.2274L5.29611 21.3343V16.3911C4.49714 16.3911 3.89805 17.0403 3.89805 17.7891V29.7225H2.5V17.7891C2.5 16.2414 3.74826 14.9931 5.29602 14.9931H33.1572L37.1016 14.3439L35.5538 12.8459L36.9518 12.8462C37.4011 12.8462 37.8006 12.996 38.2001 13.1959L39.3985 13.9447L39.6483 13.8949L39.199 12.8462C38.5999 11.498 39.5984 10 41.0964 10H45.0407L42.0447 11.1483C41.4955 11.3479 41.196 12.0469 41.4457 12.5961L41.8452 13.4449C42.5442 13.3449 43.0436 13.5449 43.3432 14.044L47.2377 19.736C47.5874 20.2355 47.5874 20.8843 47.2377 21.3837L46.9379 21.6836C46.5885 22.1831 45.9894 22.4328 45.3901 22.283L45.3903 22.2828ZM44.5416 32.0692L42.0451 28.3244C41.7953 27.9249 41.346 27.7751 40.8967 27.8249L40.647 27.8747L40.1476 27.3258C39.948 27.0263 39.6481 26.8765 39.2988 26.8765H38.9491V28.2746L35.3043 29.0234H18.3778C17.5789 29.0234 16.6301 29.6726 16.6301 30.7711V38.5602H17.7286L17.7289 31.0706C17.7289 30.5712 18.1284 30.2219 18.5777 30.2219V31.6697L19.3767 36.0135L18.5777 38.61L19.6264 44.7015H20.7747L20.3752 39.8084L22.3723 36.8626L29.1628 37.8114L29.5623 44.7019H30.7106L31.1101 38.0611L32.0589 38.2109L33.4569 44.7019H34.6052L33.8063 38.4108L38.7495 33.5675C39.0992 33.2179 39.648 33.0681 40.1475 33.2179L41.2958 33.5675C41.4456 33.6173 41.5954 33.6173 41.7451 33.6173H43.6426C43.8923 33.6173 44.0919 33.4676 44.1918 33.2677L44.4914 32.7184C44.6415 32.5185 44.6415 32.2691 44.5415 32.0692L44.5416 32.0692ZM21.973 39.3592L24.5194 44.6517H25.6677L23.9199 39.7586L24.6189 38.1607L22.9214 37.9109L21.973 39.3592Z\"\n })), _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n x: 65.833,\n y: 16.667,\n width: 16.6667,\n height: 3.33333,\n transform: \"rotate(90 65.833 16.667)\"\n })), _rect2 || (_rect2 = /*#__PURE__*/React.createElement(\"rect\", {\n x: 55.833,\n y: 23.334,\n width: 16.6667,\n height: 3.33333\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgAnimalAdd);\nexport default __webpack_public_path__ + \"static/media/animalAdd.1752365c.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgAnimalSale(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 72,\n height: 50,\n viewBox: \"0 0 72 50\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M45.3903 22.2828L44.4416 21.9829H42.1948L39.0491 21.2839L35.3541 27.9745L18.3778 27.9748C17.1794 27.9748 16.1808 28.7237 15.7813 29.7226H12.336L13.7341 40.2579L11.9867 40.2576L9.19067 29.7722L7.74286 31.8194V40.2577H5.99512L5.29611 30.4214L5.99512 26.2274L5.29611 21.3343V16.3911C4.49714 16.3911 3.89805 17.0403 3.89805 17.7891V29.7225H2.5V17.7891C2.5 16.2414 3.74826 14.9931 5.29602 14.9931H33.1572L37.1016 14.3439L35.5538 12.8459L36.9518 12.8462C37.4011 12.8462 37.8006 12.996 38.2001 13.1959L39.3985 13.9447L39.6483 13.8949L39.199 12.8462C38.5999 11.498 39.5984 10 41.0964 10H45.0407L42.0447 11.1483C41.4955 11.3479 41.196 12.0469 41.4457 12.5961L41.8452 13.4449C42.5442 13.3449 43.0436 13.5449 43.3432 14.044L47.2377 19.736C47.5874 20.2355 47.5874 20.8843 47.2377 21.3837L46.9379 21.6836C46.5885 22.1831 45.9894 22.4328 45.3901 22.283L45.3903 22.2828ZM44.5416 32.0692L42.0451 28.3244C41.7953 27.9249 41.346 27.7751 40.8967 27.8249L40.647 27.8747L40.1476 27.3258C39.948 27.0263 39.6481 26.8765 39.2988 26.8765H38.9491V28.2746L35.3043 29.0234H18.3778C17.5789 29.0234 16.6301 29.6726 16.6301 30.7711V38.5602H17.7286L17.7289 31.0706C17.7289 30.5712 18.1284 30.2219 18.5777 30.2219V31.6697L19.3767 36.0135L18.5777 38.61L19.6264 44.7015H20.7747L20.3752 39.8084L22.3723 36.8626L29.1628 37.8114L29.5623 44.7019H30.7106L31.1101 38.0611L32.0589 38.2109L33.4569 44.7019H34.6052L33.8063 38.4108L38.7495 33.5675C39.0992 33.2179 39.648 33.0681 40.1475 33.2179L41.2958 33.5675C41.4456 33.6173 41.5954 33.6173 41.7451 33.6173H43.6426C43.8923 33.6173 44.0919 33.4676 44.1918 33.2677L44.4914 32.7184C44.6415 32.5185 44.6415 32.2691 44.5415 32.0692L44.5416 32.0692ZM21.973 39.3592L24.5194 44.6517H25.6677L23.9199 39.7586L24.6189 38.1607L22.9214 37.9109L21.973 39.3592Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M63.7634 12.5V16.1469C64.8208 16.2287 65.7707 16.4456 66.6131 16.7976C67.4642 17.1496 68.2035 17.5794 68.8311 18.0869L66.8582 20.0516C66.3853 19.6832 65.8824 19.4008 65.3494 19.2043C64.8251 19.0079 64.2964 18.8933 63.7634 18.8605V23.1459C64.9153 23.5142 65.891 23.9276 66.6905 24.3861C67.4986 24.8363 68.1133 25.3929 68.5345 26.056C68.9557 26.7191 69.1663 27.5417 69.1663 28.5241C69.1663 29.4327 68.9557 30.2636 68.5345 31.0167C68.1219 31.7698 67.5115 32.396 66.7034 32.8954C65.9039 33.3865 64.9239 33.7017 63.7634 33.8409V37.5H61.6873V33.9145C60.415 33.8245 59.2802 33.5584 58.283 33.1164C57.2858 32.6662 56.4692 32.1546 55.833 31.5815L57.8059 29.4204C58.3905 29.8952 58.9923 30.2759 59.6112 30.5624C60.2302 30.8489 60.9222 31.0167 61.6873 31.0658V25.9578C59.8218 25.3766 58.4894 24.6889 57.6899 23.8949C56.8904 23.1009 56.4906 22.1226 56.4906 20.9602C56.4906 20.0761 56.7013 19.2944 57.1225 18.6149C57.5437 17.9273 58.1412 17.3748 58.9149 16.9573C59.6972 16.5316 60.6213 16.2656 61.6873 16.1591V12.5H63.7634ZM63.7634 26.7436V30.9921C64.8294 30.7629 65.3623 30.0917 65.3623 28.9784C65.3623 28.5036 65.2549 28.0902 65.04 27.7382C64.8251 27.378 64.3995 27.0465 63.7634 26.7436ZM61.6873 18.8851C61.1629 18.9669 60.7718 19.1634 60.5139 19.4745C60.2646 19.7773 60.1399 20.1212 60.1399 20.5059C60.1399 20.9152 60.2259 21.259 60.3978 21.5373C60.5783 21.8075 61.0082 22.094 61.6873 22.3969V18.8851Z\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgAnimalSale);\nexport default __webpack_public_path__ + \"static/media/animalSale.f07011ee.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _rect, _rect2;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgAnimalDeath(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 72,\n height: 50,\n viewBox: \"0 0 72 50\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M45.3903 22.2828L44.4416 21.9829H42.1948L39.0491 21.2839L35.3541 27.9745L18.3778 27.9748C17.1794 27.9748 16.1808 28.7237 15.7813 29.7226H12.336L13.7341 40.2579L11.9867 40.2576L9.19067 29.7722L7.74286 31.8194V40.2577H5.99512L5.29611 30.4214L5.99512 26.2274L5.29611 21.3343V16.3911C4.49714 16.3911 3.89805 17.0403 3.89805 17.7891V29.7225H2.5V17.7891C2.5 16.2414 3.74826 14.9931 5.29602 14.9931H33.1572L37.1016 14.3439L35.5538 12.8459L36.9518 12.8462C37.4011 12.8462 37.8006 12.996 38.2001 13.1959L39.3985 13.9447L39.6483 13.8949L39.199 12.8462C38.5999 11.498 39.5984 10 41.0964 10H45.0407L42.0447 11.1483C41.4955 11.3479 41.196 12.0469 41.4457 12.5961L41.8452 13.4449C42.5442 13.3449 43.0436 13.5449 43.3432 14.044L47.2377 19.736C47.5874 20.2355 47.5874 20.8843 47.2377 21.3837L46.9379 21.6836C46.5885 22.1831 45.9894 22.4328 45.3901 22.283L45.3903 22.2828ZM44.5416 32.0692L42.0451 28.3244C41.7953 27.9249 41.346 27.7751 40.8967 27.8249L40.647 27.8747L40.1476 27.3258C39.948 27.0263 39.6481 26.8765 39.2988 26.8765H38.9491V28.2746L35.3043 29.0234H18.3778C17.5789 29.0234 16.6301 29.6726 16.6301 30.7711V38.5602H17.7286L17.7289 31.0706C17.7289 30.5712 18.1284 30.2219 18.5777 30.2219V31.6697L19.3767 36.0135L18.5777 38.61L19.6264 44.7015H20.7747L20.3752 39.8084L22.3723 36.8626L29.1628 37.8114L29.5623 44.7019H30.7106L31.1101 38.0611L32.0589 38.2109L33.4569 44.7019H34.6052L33.8063 38.4108L38.7495 33.5675C39.0992 33.2179 39.648 33.0681 40.1475 33.2179L41.2958 33.5675C41.4456 33.6173 41.5954 33.6173 41.7451 33.6173H43.6426C43.8923 33.6173 44.0919 33.4676 44.1918 33.2677L44.4914 32.7184C44.6415 32.5185 44.6415 32.2691 44.5415 32.0692L44.5416 32.0692ZM21.973 39.3592L24.5194 44.6517H25.6677L23.9199 39.7586L24.6189 38.1607L22.9214 37.9109L21.973 39.3592Z\"\n })), _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n x: 64.166,\n y: 12.5,\n width: 25,\n height: 3.33333,\n transform: \"rotate(90 64.166 12.5)\"\n })), _rect2 || (_rect2 = /*#__PURE__*/React.createElement(\"rect\", {\n x: 55.833,\n y: 17.5,\n width: 13.3333,\n height: 3.33333\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgAnimalDeath);\nexport default __webpack_public_path__ + \"static/media/animalDeath.2d769778.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2, _path3;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgAnimalTransfer(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 79,\n height: 50,\n viewBox: \"0 0 79 50\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M45.3903 22.2828L44.4416 21.9829H42.1948L39.0491 21.2839L35.3541 27.9745L18.3778 27.9748C17.1794 27.9748 16.1808 28.7237 15.7813 29.7226H12.336L13.7341 40.2579L11.9867 40.2576L9.19067 29.7722L7.74286 31.8194V40.2577H5.99512L5.29611 30.4214L5.99512 26.2274L5.29611 21.3343V16.3911C4.49714 16.3911 3.89805 17.0403 3.89805 17.7891V29.7225H2.5V17.7891C2.5 16.2414 3.74826 14.9931 5.29602 14.9931H33.1572L37.1016 14.3439L35.5538 12.8459L36.9518 12.8462C37.4011 12.8462 37.8006 12.996 38.2001 13.1959L39.3985 13.9447L39.6483 13.8949L39.199 12.8462C38.5999 11.498 39.5984 10 41.0964 10H45.0407L42.0447 11.1483C41.4955 11.3479 41.196 12.0469 41.4457 12.5961L41.8452 13.4449C42.5442 13.3449 43.0436 13.5449 43.3432 14.044L47.2377 19.736C47.5874 20.2355 47.5874 20.8843 47.2377 21.3837L46.9379 21.6836C46.5885 22.1831 45.9894 22.4328 45.3901 22.283L45.3903 22.2828ZM44.5416 32.0692L42.0451 28.3244C41.7953 27.9249 41.346 27.7751 40.8967 27.8249L40.647 27.8747L40.1476 27.3258C39.948 27.0263 39.6481 26.8765 39.2988 26.8765H38.9491V28.2746L35.3043 29.0234H18.3778C17.5789 29.0234 16.6301 29.6726 16.6301 30.7711V38.5602H17.7286L17.7289 31.0706C17.7289 30.5712 18.1284 30.2219 18.5777 30.2219V31.6697L19.3767 36.0135L18.5777 38.61L19.6264 44.7015H20.7747L20.3752 39.8084L22.3723 36.8626L29.1628 37.8114L29.5623 44.7019H30.7106L31.1101 38.0611L32.0589 38.2109L33.4569 44.7019H34.6052L33.8063 38.4108L38.7495 33.5675C39.0992 33.2179 39.648 33.0681 40.1475 33.2179L41.2958 33.5675C41.4456 33.6173 41.5954 33.6173 41.7451 33.6173H43.6426C43.8923 33.6173 44.0919 33.4676 44.1918 33.2677L44.4914 32.7184C44.6415 32.5185 44.6415 32.2691 44.5415 32.0692L44.5416 32.0692ZM21.973 39.3592L24.5194 44.6517H25.6677L23.9199 39.7586L24.6189 38.1607L22.9214 37.9109L21.973 39.3592Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M55.833 16.6755L64.1232 7.46998L66.7898 9.74287L63.8986 12.8862C63.154 13.728 62.2864 14.4524 61.3252 15.0348L75.833 15.0348L75.833 18.2886L61.3252 18.2886C62.2997 18.848 63.1645 19.5795 63.8779 20.4475L66.7691 23.5909L64.1024 25.8638L55.833 16.6755Z\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M75.833 33.325L67.5429 42.5305L64.8762 40.2576L67.7674 37.1142C68.512 36.2725 69.3796 35.5481 70.3408 34.9657H55.833V31.7118H70.3408C69.3664 31.1525 68.5015 30.421 67.7881 29.553L64.8969 26.4096L67.5636 24.1367L75.833 33.325Z\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgAnimalTransfer);\nexport default __webpack_public_path__ + \"static/media/animalTransfer.e1e01214.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _rect;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgSupplementWithdrawIcon(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 78,\n height: 50,\n viewBox: \"0 0 78 50\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M44.9388 36.4445C44.9322 36.4226 44.9241 36.4011 44.9145 36.3804L43.5667 33.5315C43.1925 32.3171 43.0015 31.054 42.9997 29.7837V20.7234C43.0011 19.4514 43.1922 18.1867 43.5667 16.9707L44.9145 14.1218C44.9243 14.1014 44.9325 14.0801 44.9388 14.0584C45.1204 13.4722 44.8901 12.854 44.336 12.448C43.764 12.0321 42.9704 11.9167 42.2583 12.1467L37.6059 13.6609C29.719 12.2436 21.2193 12.2457 12.345 13.6674L7.74053 12.4174C7.0613 12.1973 6.28983 12.297 5.72714 12.6759C5.25812 12.99 5.00001 13.4423 5.00001 13.9231C4.99965 14.0164 5.00923 14.1095 5.02861 14.2008L5.70069 17.4621C5.74645 17.6815 5.78577 17.9016 5.8251 18.1195C5.873 18.3873 5.9209 18.6515 5.97667 18.9094C6.18412 19.8359 6.29151 20.7819 6.29698 21.7312V28.7823C6.29147 29.7314 6.18408 30.6771 5.97667 31.6035C5.9209 31.8613 5.873 32.1255 5.8251 32.3933C5.78577 32.6113 5.74645 32.8321 5.70069 33.0514L5.02932 36.3084C4.90778 36.8875 5.17232 37.4587 5.72786 37.834C6.01753 38.0212 6.34513 38.1423 6.68725 38.1887C7.02937 38.2352 7.37755 38.2057 7.70692 38.1026L12.345 36.8348C21.4967 38.2792 29.9957 38.2813 37.6074 36.8419L42.2547 38.354C42.9647 38.5833 43.7605 38.4672 44.3282 38.0513C44.8901 37.6496 45.1211 37.0335 44.9388 36.4445ZM35.0041 23.932C35.0041 23.932 33.2059 24.0745 31.9583 23.9C29.087 23.5061 26.4151 21.5325 25.2339 20.8751C22.6686 19.4507 21.6297 19.3652 20.3006 19.7356C18.2114 20.3217 16.9866 21.8936 15.7769 23.9199H14.876C15.576 22.4392 18.2479 17.6473 23.7718 16.5077C29.2957 15.3682 35.2179 19.0397 35.0041 23.932Z\"\n })), _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n x: 56.4,\n y: 23.08,\n width: 19.2,\n height: 3.84\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgSupplementWithdrawIcon);\nexport default __webpack_public_path__ + \"static/media/SupplementWithdrawIcon.c47f5876.svg\";\nexport { ForwardRef as ReactComponent };","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\n\ninterface InfoAnimalTransferProps {\n task: ITaskAnimalTransfer | undefined;\n}\n\n\nexport default function InfoAnimalTransfer(task: InfoAnimalTransferProps) {\n const [taskAnimalTransfer, setTaskAnimalTransfer] = useState();\n useEffect(() => {\n setTaskAnimalTransfer(task.task)\n }, []);\n\n const mapText = new Map();\n mapText.set(\"RETIRO\", \"Retiro\")\n mapText.set(\"FAZENDA\", \"Fazenda\")\n\n return (\n <>\n
\n Do lote\n
\n \n
\n {taskAnimalTransfer?.batch_initials}\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n Para o retiro\n
\n \n
\n {taskAnimalTransfer?.destination_area_full_initials}\n \n
\n
\n
\n\n {taskAnimalTransfer?.categories.map((category, index) => (\n
\n
{category.category_description.name}
\n
{category.category_description.age_description}
\n \n
\n ))}\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\nimport { format } from \"date-fns\";\n\ninterface ITaskFertlizationProps {\n task: ITaskFertilization | undefined;\n}\n\n\nexport default function InfoFertilization(task: ITaskFertlizationProps) {\n const [taskFertilization, setTaskFertilization] = useState();\n useEffect(() => {\n setTaskFertilization(task.task)\n }, []);\n\n\n return (\n <>\n
\n No pasto\n
\n \n
\n {taskFertilization?.initials}\n \n
\n
\n
\n\n
\n \n \n
\n\n {taskFertilization?.skip_reason ?\n \n :\n <>\n \n\n \n \n\n\n \n\n \n\n \n \n \n }\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\nimport { capitalize } from \"../../../../utils/strings/capitalize\";\n\ninterface InfoWaterTroughProps {\n task: ITaskWaterTrough | undefined;\n}\n\n\nexport default function InfoWaterTrough(task: InfoWaterTroughProps) {\n const [taskWaterTrough, setWaterTrough] = useState();\n useEffect(() => {\n setWaterTrough(task.task)\n }, []);\n\n\n return (\n <>\n
\n No pasto\n
\n \n
\n {taskWaterTrough?.initials}\n \n
\n
\n
\n\n \n\n
\n \n \n
\n\n {taskWaterTrough?.skip_reason != undefined && }\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\nimport { capitalize } from \"../../../../utils/strings/capitalize\";\n\ninterface InfoFenceProps {\n task: ITaskFence | undefined;\n}\n\nexport default function InfoFence(task: InfoFenceProps) {\n const [taskFence, setTaskFence] = useState();\n useEffect(() => {\n setTaskFence(task.task)\n }, []);\n\n\n return (\n <>\n
\n No pasto\n
\n \n
\n {taskFence?.initials}\n \n
\n
\n
\n\n \n\n
\n \n \n
\n\n {taskFence?.skip_reason != undefined && }\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as BackIcon } from \"../../../../assets/svg/icons/back.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\n\ninterface InfoDetachedTaskProps {\n task: ITaskDetachedTask | undefined;\n}\n\nexport default function InfoDetachedTask(task: InfoDetachedTaskProps) {\n const [taskDetachedTask, setTaskDetachedTask] = useState();\n useEffect(() => {\n setTaskDetachedTask(task.task)\n }, []);\n\n return (\n <>\n \n\n
\n \n \n
\n\n {taskDetachedTask?.skip_reason != undefined && }\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\nimport { format } from \"date-fns\";\n\ninterface InfoContourFarmingProps {\n task: ITaskContourFarming | undefined;\n}\n\n\nexport default function InfoContourFarming(task: InfoContourFarmingProps) {\n const [taskContourFarming, setTaskContourFarming] = useState();\n useEffect(() => {\n setTaskContourFarming(task.task)\n }, []);\n\n\n return (\n <>\n
\n No pasto\n
\n \n
\n {taskContourFarming?.initials}\n \n
\n
\n
\n\n
\n \n \n
\n\n {taskContourFarming?.skip_reason ?\n \n :\n <>\n \n\n \n \n\n\n \n\n \n\n \n \n \n }\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\nimport { format } from \"date-fns\";\n\ninterface InfoPlantingProps {\n task: ITaskPlanting | undefined;\n}\n\n\nexport default function InfoPlanting(task: InfoPlantingProps) {\n const [taskPlanting, setTaskPlanting] = useState();\n useEffect(() => {\n setTaskPlanting(task.task)\n }, []);\n\n\n return (\n <>\n
\n No pasto\n
\n \n
\n {taskPlanting?.initials}\n \n
\n
\n
\n\n \n\n
\n \n \n
\n\n {taskPlanting?.skip_reason ?\n \n :\n <>\n
\n \n \n
\n\n\n {taskPlanting?.operation_type == \"MECANIZADA\" &&\n <>\n \n\n \n \n\n\n \n\n \n\n \n \n \n }\n \n }\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\nimport { format } from \"date-fns\";\n\ninterface InfoSoilPreparationProps {\n task: ITaskSoilPreparation | undefined;\n}\n\n\nexport default function InfoSoilPreparation(task: InfoSoilPreparationProps) {\n const [taskSoilPreparation, setTaskSoilPreparation] = useState();\n useEffect(() => {\n setTaskSoilPreparation(task.task)\n }, []);\n\n\n return (\n <>\n
\n No pasto\n
\n \n
\n {taskSoilPreparation?.initials}\n \n
\n
\n
\n\n
\n \n \n
\n\n {taskSoilPreparation?.skip_reason ?\n \n :\n <>\n \n\n \n \n\n\n \n\n \n\n \n \n \n }\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\nimport { format } from \"date-fns\";\n\ninterface InfoSprayingProps {\n task: ITaskSpraying | undefined;\n}\n\n\nexport default function InfoSpraying(task: InfoSprayingProps) {\n const [taskSpraying, setTaskSpraying] = useState();\n useEffect(() => {\n setTaskSpraying(task.task)\n }, []);\n\n\n return (\n <>\n
\n No pasto\n
\n \n
\n {taskSpraying?.initials}\n \n
\n
\n
\n\n
\n \n \n
\n\n {taskSpraying?.skip_reason ?\n \n :\n <>\n
\n \n \n
\n\n {taskSpraying?.operation_type == \"MECANIZADA\" &&\n <>\n \n\n \n \n\n\n \n\n \n\n \n \n \n }\n \n }\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as BackIcon } from \"../../../../assets/svg/icons/back.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\n\ninterface InfoProductIncomingProps {\n task: ITaskProductIncoming | undefined;\n}\n\nexport default function InfoProductIncoming(task: InfoProductIncomingProps) {\n const [taskProductIncoming, setTaskProductIncoming] = useState();\n useEffect(() => {\n setTaskProductIncoming(task.task)\n }, []);\n\n return (\n <>\n \n\n
\n \n\n
\n \n \n
\n
\n\n
\n \n \n
\n\n {taskProductIncoming?.skip_reason ?\n \n :\n \n }\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\nimport { format } from \"date-fns\";\n\ninterface InfoBrushCuttingProps {\n task: ITaskBrushCutting | undefined;\n}\n\n\nexport default function InfoBrushCutting(task: InfoBrushCuttingProps) {\n const [taskBrushCutting, setTaskBrushCutting] = useState();\n useEffect(() => {\n setTaskBrushCutting(task.task)\n }, []);\n\n\n return (\n <>\n
\n No pasto\n
\n \n
\n {taskBrushCutting?.initials}\n \n
\n
\n
\n\n
\n \n \n
\n\n\n {taskBrushCutting?.skip_reason ?\n \n :\n <>\n \n\n \n \n\n\n \n\n \n\n \n \n \n }\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as BackIcon } from \"../../../../assets/svg/icons/back.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\n\ninterface AnimalReceiveProps {\n task: ITaskAnimalTransfer | undefined;\n}\n\nexport default function InfoAnimalReceive(task: AnimalReceiveProps) {\n const [taskAnimalReceive, setTaskAnimalReceive] = useState();\n useEffect(() => {\n setTaskAnimalReceive(task.task)\n }, []);\n\n return (\n <>\n
\n Do retiro\n
\n \n
\n {taskAnimalReceive?.source_area_full_initials}\n \n
\n
\n
\n\n
\n \n\n {taskAnimalReceive?.categories?.map((category, index) => (\n
\n \n \n
\n ))}\n\n \n
\n\n
\n \n \n
\n\n
\n No lote\n
\n \n
\n {taskAnimalReceive?.batch_initials}\n \n
\n
\n \n
\n\n el.initials).join(\", \")}.`} pointed />\n \n )\n}","import { useEffect, useState } from \"react\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ReactComponent as PointIcon } from \"../../../../assets/svg/icons/point.svg\";\nimport { ReactComponent as AreaIcon } from \"../../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as AnimalsIcon } from \"../../../../assets/svg/icons/animais.svg\";\nimport { ReactComponent as GrassIcon } from \"../../../../assets/svg/icons/grass.svg\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\nimport { format } from \"date-fns\";\n\ninterface InfoProductDispatchProps {\n task: ITaskProductDispatch | undefined;\n}\n\n\nexport default function InfoProductDispatch(task: InfoProductDispatchProps) {\n const [taskProductDispatch, setTaskProductDispatch] = useState();\n useEffect(() => {\n setTaskProductDispatch(task.task)\n }, []);\n\n\n const mapText = new Map();\n mapText.set(\"FULL\", \"Cheio\")\n mapText.set(\"EMPTY\", \"Vazio\")\n mapText.set(\"MEDIUM\", \"Médio\")\n\n return (\n <>\n
\n No pasto\n
\n \n
\n {taskProductDispatch?.initials}\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n {taskProductDispatch?.dispatch_type == \"COCHO\" ?\n <>\n
\n \n \n
\n\n
\n \n \n
\n\n {taskProductDispatch?.quantity_estimated_loss != 0 ?\n <>\n \n \n :\n <>\n \n }\n \n :\n <>\n \n }\n \n )\n}","import { CSSProperties, useEffect, useState } from \"react\";\nimport { RoundedCloseButton } from \"../../Buttons/RoundedCloseButton/Index\";\nimport { StaticMapRender } from \"../../EditOnboarding/components/StaticMapRender/Index\";\nimport { Modal } from \"../../Modal/Default/Index\";\nimport axios from \"../../../services/axios\";\nimport { useEditOnboarding } from \"../../../hooks/useEditOnboarding\";\nimport InfoAnimalAdd from \"./InfoAnimalAdd\";\nimport InfoEvolution from \"./InfoEvolution\";\nimport InfoAnimalSell from \"./InfoAnimalSell\";\nimport InfoSplitBatch from \"./InfoSplitBatch\";\nimport InfoAnimalDeath from \"./InfoAnimalDeath\";\nimport InfoMoveBatch from \"./InfoMoveBatch\";\nimport InfoGrazingRoute from \"./InfoGrazingRoute\";\nimport { ReactComponent as GrazingRouteIcon } from \"../../../assets/svg/icons/grazingRoute.svg\";\nimport { ReactComponent as SplitIcon } from \"../../../assets/svg/icons/fractionateBatches.svg\";\nimport { ReactComponent as MoveIcon } from \"../../../assets/svg/icons/moveBatch.svg\";\nimport { ReactComponent as EvolutionIcon } from \"../../../assets/svg/icons/evolution.svg\";\nimport { ReactComponent as AnimalAddIcon } from \"../../../assets/svg/icons/animalAdd.svg\";\nimport { ReactComponent as AnimalSaleIcon } from \"../../../assets/svg/icons/animalSale.svg\";\nimport { ReactComponent as AnimalDeathIcon } from \"../../../assets/svg/icons/animalDeath.svg\";\nimport { ReactComponent as AnimalTransferIcon } from \"../../../assets/svg/icons/animalTransfer.svg\";\nimport { ReactComponent as FertilizationIcon } from \"../../../assets/svg/icons/fertillizing.svg\";\nimport { ReactComponent as WaterTroughIcon } from \"../../../assets/svg/icons/drinking_fountain.svg\";\nimport { ReactComponent as FencesIcon } from \"../../../assets/svg/icons/fences.svg\";\nimport { ReactComponent as DetachedTaskIcon } from \"../../../assets/svg/icons/detached_task.svg\";\nimport { ReactComponent as ContourFarmIcon } from \"../../../assets/svg/icons/contour_line.svg\";\nimport { ReactComponent as PlantingIcon } from \"../../../assets/svg/icons/planting.svg\";\nimport { ReactComponent as SoilPreparationIcon } from \"../../../assets/svg/icons/soil_preparation.svg\";\nimport { ReactComponent as SprayingIcon } from \"../../../assets/svg/icons/pulverization.svg\";\nimport { ReactComponent as ProductReceiveIcon } from \"../../../assets/svg/icons/bagFoodReceive.svg\";\nimport { ReactComponent as ProductDispatchIcon } from \"../../../assets/svg/icons/SupplementWithdrawIcon.svg\";\nimport { ReactComponent as BrushCuttingIcon } from \"../../../assets/svg/icons/mowing.svg\";\nimport InfoAnimalTransfer from \"./InfoAnimalTransfer\";\nimport InfoFertilization from \"./InfoFertilization\";\nimport InfoWaterTrough from \"./InfoWaterTrough\";\nimport InfoFence from \"./InfoFence\";\nimport InfoDetachedTask from \"./InfoDetachedTask\";\nimport InfoContourFarming from \"./InfoContourFarming\";\nimport InfoPlanting from \"./InfoPlanting\";\nimport InfoSoilPreparation from \"./InfoSoilPreparation\";\nimport InfoSpraying from \"./InfoSpraying\";\nimport InfoProductIncoming from \"./InfoProductIncoming\";\nimport InfoBrushCutting from \"./InfoBrushCutting\";\nimport InfoAnimalReceive from \"./InfoAnimalReceive\";\nimport InfoProductDispatch from \"./InfoProductDispatch\";\nimport { Loading } from \"../../Loading/Index\";\n\ninterface InfoTasksProps {\n selected: number;\n setSelectedId: (e: number) => void;\n}\n\nexport default function ViewTasks({\n selected,\n setSelectedId\n}: InfoTasksProps) {\n const {\n idSelected\n } = useEditOnboarding();\n const [task, setTask] = useState();\n const [microArea, setMicroArea] = useState();\n const [area, setArea] = useState();\n const [initialsType, setInitialsType] = useState(undefined);\n const [isLoading, setIsLoading] = useState(false);\n\n const createEvaluatorModalStyle = {\n padding: \"50px\",\n width: \"910px\",\n height: \"fit-content\",\n borderRadius: 20,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n position: \"relative\",\n overflow: \"hidden\",\n } as CSSProperties;\n\n useEffect(() => {\n switch (task?.task_type) {\n case \"Adubação\":\n case \"Bebedouro\":\n case \"Cerca\":\n case \"Curva de nível\":\n case \"Plantio\":\n case \"Preparo de solo\":\n case \"Pulverização\":\n case \"Roçagem\":\n setInitialsType(\"Pasto\")\n break;\n\n case \"Dividir lote\":\n case \"Evoluir categoria\":\n case \"Movimentar lote\":\n case \"Atualizar rota de pastejo\":\n case \"Transferência de Lote\":\n case \"Junção de lotes\":\n case \"Atualizar lote\":\n setInitialsType(\"Lote\")\n break;\n\n default:\n setInitialsType(undefined)\n break;\n }\n }, [task]);\n\n useEffect(() => {\n if (selected != 0) {\n setIsLoading(true)\n axios.get(`tasks/${selected}`)\n .then(({ data }) => {\n setTask(data)\n })\n .catch((error) => {\n console.log(error)\n })\n .finally(() => setIsLoading(false))\n }\n const contentInfoBuy = document.getElementById('contentInfo');\n\n if (contentInfoBuy) {\n contentInfoBuy.scrollTop = 0\n }\n }, [selected]);\n\n useEffect(() => {\n if (microArea) {\n axios.get(`areas/${microArea.area_id}`)\n .then(({ data }) => {\n setArea(data)\n })\n .catch((error) => {\n console.log(error)\n })\n }\n }, [microArea]);\n\n const TaskIcon: React.FC<{ task: any | null }> = ({ task }) => {\n const taskTypeToIconMapping: { [key: string]: () => JSX.Element | null } = {\n \"Atualizar lote\": () => {\n switch (task?.task_update_type) {\n case \"Nascimento\":\n case \"Compra\":\n return ;\n case \"Venda\":\n return ;\n case \"Abate\":\n return ;\n case \"Morte\":\n return ;\n default:\n return null;\n }\n },\n \"Dividir lote\": () => ,\n \"Evoluir categoria\": () => ,\n \"Movimentar lote\": () => ,\n \"Junção de lotes\": () => ,\n \"Atualizar rota de pastejo\": () => ,\n \"Transferência de Lote\": () => ,\n \"Adubação\": () => ,\n \"Bebedouro\": () => ,\n \"Cerca\": () => ,\n \"Tarefa avulsa\": () => ,\n \"Curva de nível\": () => ,\n \"Plantio\": () => ,\n \"Preparo de solo\": () => ,\n \"Pulverização\": () => ,\n \"Recebimento do produto\": () => ,\n \"Saída do produto\": () => ,\n \"Roçagem\": () => ,\n };\n\n return taskTypeToIconMapping[task?.task_type]?.() || null;\n };\n\n const TaskInfo: React.FC<{ task: any | null }> = ({ task }) => {\n const taskTypeToIconMapping: { [key: string]: () => JSX.Element | null } = {\n \"Atualizar lote\": () => {\n switch (task?.task_update_type) {\n case \"Nascimento\":\n case \"Compra\":\n return ;\n case \"Venda\":\n return ;\n case \"Abate\":\n return ;\n case \"Morte\":\n return ;\n default:\n return null;\n }\n },\n \"Dividir lote\": () => ,\n \"Evoluir categoria\": () => ,\n \"Movimentar lote\": () => ,\n \"Junção de lotes\": () => ,\n \"Atualizar rota de pastejo\": () => ,\n \"Transferência de Lote\": () => {\n switch (task?.task_inventoryTransfer_batch_type) {\n case \"Conclusão de Transferência\":\n return ;\n default:\n return ;\n }\n },\n \"Adubação\": () => ,\n \"Bebedouro\": () => ,\n \"Cerca\": () => ,\n \"Tarefa avulsa\": () => ,\n \"Curva de nível\": () => ,\n \"Plantio\": () => ,\n \"Preparo de solo\": () => ,\n \"Pulverização\": () => ,\n \"Recebimento do produto\": () => ,\n \"Saída do produto\": () => ,\n \"Roçagem\": () => ,\n };\n\n return taskTypeToIconMapping[task?.task_type]?.() || null;\n };\n\n return (\n \n
\n \n\n
\n
\n
\n \n
\n

{task?.task_update_type || task?.task_type}

\n
\n
\n {\n setInitialsType(\"\")\n setTask(undefined)\n setSelectedId(0)\n }}\n />\n
\n
\n\n
\n\n
\n
\n \n
\n\n
\n
\n {task?.status}\n
\n
\n
\n
\n
\n\n
\n
\n
\n

Responsável

\n {task?.task_owner}\n
\n
\n {initialsType &&\n
\n
\n

{initialsType}

\n {task?.initials}\n
\n
\n }\n
\n
\n el?.map_coords) || task?.destination_micro_area_route?.map((el: any) => el?.map_coords) || []}\n microAreas={[]}\n fitCoords={task?.map_coords || task?.area_map_coords || []}\n />\n
\n
\n
\n\n
\n \n )\n}","import \"./styles.css\"\nimport { useEffect, useState } from \"react\";\nimport { IOptionsEvaluation } from \"../../ViewTables/Index\";\nimport TableVisualizationRowTask from \"./TableVisualizationRow/Index\";\nimport ViewTasks from \"../../Tasks/ViewTasks\";\nimport { Loading } from \"../../Loading/Index\";\n\ninterface TableProductsProps {\n listTable: ITaskEvaluation[];\n filter: IOptionsEvaluation | undefined;\n isLoading: boolean;\n}\n\nexport default function TableTaskEvaluation({ listTable, isLoading }: TableProductsProps) {\n const [selectedId, setSelectedId] = useState(0);\n\n return (\n <>\n <>\n {listTable && listTable.length > 0 ?\n <>\n
\n
Usuário
\n
Tarefa
\n
Pasto/Lote
\n
Status
\n
Data Criação
\n
Data Execução
\n
\n
\n\n \n \n\n {listTable.map(evaluation =>\n \n )}\n \n \n :\n
\n Nenhum resultado encontrado.\n
\n }\n \n\n \n \n )\n}","import { useEffect, useState } from \"react\";\nimport { ReactComponent as InfoIcon } from \"../../../../assets/svg/icons/info.svg\";\nimport { useEditOnboarding } from \"../../../../hooks/useEditOnboarding\";\nimport \"./styles.css\";\n\ntype TableVisualizationRowProps = {\n evaluation: IMicroAreaEvaluation;\n setSelectedId: (e: number) => void;\n};\n\nexport default function TableVisualizationRow({\n evaluation,\n setSelectedId\n}: TableVisualizationRowProps) {\n const created = new Date(evaluation?.created_at)\n const updated = new Date(evaluation?.updated_at)\n\n const statusMap = new Map()\n statusMap.set(\"COMPLETED\", \"Avaliado\")\n statusMap.set(\"PENDING\", \"Pendente\")\n statusMap.set(\"ERROR\", \"Erro\")\n\n const {\n setIdSelected\n } = useEditOnboarding();\n\n return (\n
\n
{evaluation.evaluator}
\n
{evaluation.micro_area_initials}
\n
{statusMap.get(evaluation.status)}
\n
\n {evaluation?.created_at ?\n `${String(created.getDate()).padStart(2, \"0\")\n }/${String(created.getMonth() + 1).padStart(2, \"0\")\n }/${String(created.getFullYear() % 100).padStart(2, \"0\")\n } - ${String(created.getHours()).padStart(2, \"0\")\n }:${String(created.getMinutes()).padStart(2, \"0\")\n }` :\n \"\"}\n
\n
\n {evaluation?.updated_at ?\n `${String(updated.getDate()).padStart(2, \"0\")\n }/${String(updated.getMonth() + 1).padStart(2, \"0\")\n }/${String(updated.getFullYear() % 100).padStart(2, \"0\")\n } - ${String(updated.getHours()).padStart(2, \"0\")\n }:${String(updated.getMinutes()).padStart(2, \"0\")\n }` :\n \"\"}\n
\n
\n \n
\n
\n );\n}\n","var _path, _path2;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgPastureEvaluation(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 78,\n height: 50,\n viewBox: \"0 0 78 50\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M43.801 28.1514C43.8761 28.2935 43.8915 28.4505 43.845 28.5998C43.7986 28.7492 43.6927 28.8832 43.5424 28.9828C42.0137 29.9961 40.7632 31.2393 39.8659 32.6379C38.9685 34.0366 38.4428 35.5619 38.3201 37.1226H34.5573C34.6911 34.3103 35.631 31.557 37.3082 29.0645C39.003 28.2876 40.9029 27.822 42.8635 27.703C43.0602 27.6913 43.2566 27.7284 43.4246 27.8089C43.5925 27.8895 43.7235 28.0094 43.7986 28.1514H43.801ZM31.9994 22.6746C34.1691 19.5237 37.0023 16.6788 40.3809 14.2584C40.5442 14.1395 40.6473 13.9789 40.6715 13.8058C40.6956 13.6327 40.6392 13.4585 40.5125 13.315C40.3858 13.1716 40.1972 13.0683 39.9811 13.024C39.7649 12.9796 39.5354 12.9972 39.3345 13.0735C32.5358 15.6972 27.1798 19.817 23.7692 24.7825C24.752 25.9182 25.6048 27.1189 26.3175 28.371C27.7589 26.2222 29.6843 24.2928 32.0018 22.6746H31.9994ZM19.5573 37.1226H23.3489C23.4585 34.7396 24.1023 32.3898 25.2511 30.1795C22.1216 23.6936 15.1428 18.5728 6.17124 16.7387C5.95493 16.6945 5.72546 16.7122 5.52449 16.7886C5.32353 16.865 5.16442 16.9951 5.07605 17.1551C4.98768 17.3151 4.97592 17.4945 5.0429 17.6607C5.10989 17.8269 5.25117 17.9689 5.4411 18.0608C14.0323 22.2168 19.2498 29.3064 19.5573 37.1232V37.1226ZM13.9531 37.1226H17.6887C17.5484 33.5511 16.2802 30.0616 13.9963 26.9628C11.948 25.9045 9.62772 25.2074 7.19761 24.9203C6.99201 24.896 6.78188 24.9259 6.60051 25.0051C6.41914 25.0844 6.27689 25.2085 6.1963 25.3578C6.1157 25.5072 6.10137 25.6732 6.15556 25.8296C6.20975 25.986 6.32938 26.1238 6.49549 26.2212C11.0021 28.858 13.6841 32.7995 13.9563 37.1226H13.9531ZM44.9243 19.87C44.8377 19.7125 44.6826 19.5839 44.4861 19.5069C44.2897 19.4298 44.0646 19.4094 43.8507 19.4491C33.1699 21.4229 25.6418 28.6341 25.2303 37.1226H32.6919C32.8349 33.8523 33.9901 30.6572 36.0591 27.8094C38.1281 24.9616 41.0497 22.5453 44.5752 20.7662C44.7597 20.6729 44.8959 20.5318 44.9598 20.3678C45.0237 20.2038 45.0111 20.0275 44.9243 19.87Z\",\n fill: \"#4D4D4D\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M72.6159 17.8484C72.9477 17.5325 73.3892 17.3579 73.8473 17.3614C74.3054 17.3648 74.7442 17.5461 75.0712 17.867C75.3981 18.1878 75.5877 18.6232 75.5998 19.0811C75.6119 19.539 75.4456 19.9838 75.1361 20.3215L65.7384 32.0744C65.5768 32.2484 65.3818 32.3881 65.165 32.4851C64.9482 32.582 64.7141 32.6343 64.4766 32.6387C64.2391 32.6431 64.0032 32.5995 63.783 32.5107C63.5627 32.4218 63.3627 32.2894 63.1947 32.1215L56.9626 25.8894C56.7891 25.7277 56.6499 25.5326 56.5533 25.316C56.4568 25.0993 56.4049 24.8654 56.4007 24.6282C56.3965 24.391 56.4401 24.1554 56.529 23.9354C56.6178 23.7155 56.75 23.5157 56.9178 23.3479C57.0855 23.1802 57.2853 23.048 57.5053 22.9591C57.7252 22.8703 57.9608 22.8266 58.198 22.8308C58.4352 22.835 58.6691 22.8869 58.8858 22.9835C59.1025 23.08 59.2975 23.2192 59.4592 23.3928L64.3912 28.3224L72.5711 17.9002C72.5859 17.8821 72.6016 17.8648 72.6183 17.8484H72.6159Z\",\n fill: \"#4D4D4D\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgPastureEvaluation);\nexport default __webpack_public_path__ + \"static/media/pastureEvaluation.b6c5792a.svg\";\nexport { ForwardRef as ReactComponent };","var _g;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgHigh(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 23,\n viewBox: \"0 0 24 23\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12.0003 0.146484L23.4273 23.0006H0.573242L12.0003 0.146484ZM5.42734 20.0006H18.5732L12.0003 6.85469L5.42734 20.0006Z\",\n fill: \"white\"\n }))));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgHigh);\nexport default __webpack_public_path__ + \"static/media/high.c95b4f57.svg\";\nexport { ForwardRef as ReactComponent };","var _g;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgMid(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 23,\n viewBox: \"0 0 24 23\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector\",\n opacity: 0.21,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12.0003 0.146484L23.4273 23.0006H0.573242L12.0003 0.146484ZM5.42734 20.0006H18.5732L12.0003 6.85469L5.42734 20.0006Z\",\n fill: \"white\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector_2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M8.07324 8H15.9273L23.4273 23H0.573242L8.07324 8ZM9.92734 11L5.42734 20H18.5732L14.0732 11H9.92734Z\",\n fill: \"white\"\n }))));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgMid);\nexport default __webpack_public_path__ + \"static/media/mid.a7cb2f11.svg\";\nexport { ForwardRef as ReactComponent };","var _g;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgLow(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 23,\n viewBox: \"0 0 24 23\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector\",\n opacity: 0.2,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12.0003 0.146484L23.4273 23.0006H0.573242L12.0003 0.146484ZM5.42734 20.0006H18.5732L12.0003 6.85469L5.42734 20.0006Z\",\n fill: \"white\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector_2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M5.07324 14H18.9273L23.4273 23H0.573242L5.07324 14ZM6.92734 17L5.42734 20H18.5732L17.0732 17H6.92734Z\",\n fill: \"white\"\n }))));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgLow);\nexport default __webpack_public_path__ + \"static/media/low.5578b054.svg\";\nexport { ForwardRef as ReactComponent };","var _g;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgUltralow(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 23,\n viewBox: \"0 0 24 23\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector\",\n opacity: 0.2,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12.0003 0.146484L23.4273 23.0006H0.573242L12.0003 0.146484ZM5.42734 20.0006H18.5732L12.0003 6.85469L5.42734 20.0006Z\",\n fill: \"white\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector_2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M2.97324 18.2012H21.0273L23.4273 23.0012H0.573242L2.97324 18.2012Z\",\n fill: \"white\"\n }))));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgUltralow);\nexport default __webpack_public_path__ + \"static/media/ultralow.90f07574.svg\";\nexport { ForwardRef as ReactComponent };","import { ReactComponent as HighIcon } from \"../../../assets/svg/icons/high.svg\";\nimport { ReactComponent as MidIcon } from \"../../../assets/svg/icons/mid.svg\";\nimport { ReactComponent as LowIcon } from \"../../../assets/svg/icons/low.svg\";\nimport { ReactComponent as UltraLowIcon } from \"../../../assets/svg/icons/ultralow.svg\";\nimport \"./styles.css\"\n\ninterface ButtonHeightPastureProps {\n optionSelected: \"ALTO\" | \"IDEAL\" | \"BAIXO\" | \"MUITO BAIXO\" | undefined;\n setOptionSelected?: (option: \"ALTO\" | \"IDEAL\" | \"BAIXO\" | \"MUITO BAIXO\") => void;\n onlyResult?: boolean;\n}\n\nexport function ButtonHeightPasture({\n optionSelected,\n setOptionSelected,\n onlyResult = false\n}: ButtonHeightPastureProps) {\n\n function optionSelect(selected: \"ALTO\" | \"IDEAL\" | \"BAIXO\" | \"MUITO BAIXO\") {\n if (!optionSelected) return \"unselected\"\n if (selected == optionSelected) {\n return \"heightPress\"\n }\n return \"heightNotPress\"\n }\n\n return (\n
\n {optionSelected == \"ALTO\" ?\n \n : <>\n }\n\n {optionSelected == \"IDEAL\" ?\n \n : <>\n }\n\n {optionSelected == \"BAIXO\" ?\n \n : <>\n }\n\n {optionSelected == \"MUITO BAIXO\" ?\n \n : <>\n }\n
\n );\n};\n","export function decimalToDMS(lat: number, lng: number) {\n var latDirection = lat >= 0 ? 'N' : 'S';\n lat = Math.abs(lat);\n var latDeg = Math.floor(lat);\n var latMin = Math.floor((lat - latDeg) * 60);\n var latSec = ((lat - latDeg - (latMin / 60)) * 3600).toFixed(2);\n\n var lngDirection = lng >= 0 ? 'E' : 'O';\n lng = Math.abs(lng);\n var lngDeg = Math.floor(lng);\n var lngMin = Math.floor((lng - lngDeg) * 60);\n var lngSec = ((lng - lngDeg - (lngMin / 60)) * 3600).toFixed(2);\n\n return {\n latitude: latDeg + '°' + latMin + \"'\" + latSec + '\"' + latDirection,\n longitude: lngDeg + '°' + lngMin + \"'\" + lngSec + '\"' + lngDirection,\n };\n }","import React from 'react';\nimport \"./styles.css\"\n\ninterface ImageComponentProps {\n url: string;\n}\n\nexport default function ImageComponent({ url }: ImageComponentProps) {\n return (\n \"description\"\n );\n}\n\n","import \"../styles.css\"\nimport { CSSProperties, useEffect, useState } from \"react\";\nimport { ReactComponent as PastureEvaluationIcon } from \"../../../../assets/svg/icons/pastureEvaluation.svg\";\nimport { CounterInputEdit } from \"../../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { StaticMapRender } from \"../../../EditOnboarding/components/StaticMapRender/Index\";\nimport { RoundedCloseButton } from \"../../../Buttons/RoundedCloseButton/Index\";\nimport { ButtonHeightPasture } from \"../../../Buttons/ButtonHeightPasture\";\nimport { decimalToDMS } from \"../../../../utils/latlng/castDecimalToDMS\";\nimport { MessageBalloon } from \"../../../MessageBalloon/Index\";\nimport { ButtonYesOrNo } from \"../../../Buttons/ButtonYesOrNo\";\nimport { ButtonPressed } from \"../../../Buttons/ButtonPressed\";\nimport { Modal } from \"../../../Modal/Default/Index\";\nimport ImageComponent from \"../../../ImageComponent\";\nimport axios from \"../../../../services/axios\";\nimport { format } from \"date-fns\";\nimport { useEditOnboarding } from \"../../../../hooks/useEditOnboarding\";\n\ninterface InfoEvaluationProps {\n selected: number;\n setSelectedId: (e: number) => void;\n}\n\nexport default function InfoEvaluation({\n selected,\n setSelectedId\n}: InfoEvaluationProps) {\n const {\n idSelected\n } = useEditOnboarding();\n\n const [taskEvaluation, setTaskEvaluation] = useState();\n const [microArea, setMicroArea] = useState();\n const [area, setArea] = useState();\n\n const createEvaluatorModalStyle = {\n padding: \"50px\",\n width: \"910px\",\n height: \"fit-content\",\n borderRadius: 20,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n } as CSSProperties;\n\n useEffect(() => {\n if (selected != 0) {\n axios.get(`tasks/pasture-evaluation/${selected}`)\n .then(({ data }) => {\n setTaskEvaluation(data)\n })\n .catch((error) => {\n console.log(error)\n })\n\n axios.get(`micro-areas/${idSelected}`)\n .then(({ data }) => {\n setMicroArea({\n ...data,\n micro_area_map_coords: data.micro_area_map_coords.map((coord: any) => {\n return {\n lat: coord.latitude,\n lng: coord.longitude\n }\n })\n })\n })\n .catch((error) => {\n console.log(error)\n })\n }\n const contentInfoEvaluation = document.getElementById('contentInfoEvaluation');\n\n if (contentInfoEvaluation) {\n contentInfoEvaluation.scrollTop = 0\n }\n }, [selected]);\n\n useEffect(() => {\n if (microArea) {\n axios.get(`areas/${microArea.area_id}`)\n .then(({ data }) => {\n setArea(data)\n })\n .catch((error) => {\n console.log(error)\n })\n }\n }, [microArea]);\n\n function getImageDescription(obj: PhotoDetails) {\n const lat = decimalToDMS(obj.lat, obj.lng).latitude\n const lng = decimalToDMS(obj.lat, obj.lng).longitude\n return `${lat} ${lng} ${format(new Date(obj.timestamp), `dd/MM/yyyy - hh:mm`)}`\n }\n\n const mapText = new Map();\n mapText.set(\"FOLHA_LARGA\", \"Folha larga\")\n mapText.set(\"FOLHA_ESTREITA\", \"Folha estreita\")\n mapText.set(\"ANUAL_MOLE\", \"Anual mole\")\n mapText.set(\"PERENE_DURA\", \"Perene dura\")\n\n useEffect(() => {\n if (selected == 0)\n setTaskEvaluation(undefined)\n }, [selected]);\n\n return (\n \n
\n
\n
\n \n

Avaliação de pastagem

\n
\n
\n setSelectedId(0)}\n />\n
\n
\n\n
\n\n
\n
\n\n {/*1. Forragem*/}\n

1. Forragem

\n
\n \n \n
\n\n {taskEvaluation?.pasture_evaluation_fodder_content ? (\n taskEvaluation?.pasture_evaluation_fodder_content?.fodder_content.map((el, key) => (\n <>\n {\n taskEvaluation?.pasture_evaluation_fodder_content &&\n taskEvaluation?.pasture_evaluation_fodder_content.fodder_content.length > 1 &&\n

{key + 1}ª Forragem

\n }\n
\n
Gênero
\n \n
\n\n
\n
Espécie
\n \n
\n\n
\n

Foto

\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n \n ))\n ) : (\n <>\n \n )}\n\n {/*2. Invasoras*/}\n

2. Invasoras

\n
\n \n \n
\n\n {taskEvaluation?.pasture_evaluation_invasive_content ? (\n taskEvaluation?.pasture_evaluation_invasive_content?.invasive_content.map((el, key) => (\n <>\n {\n taskEvaluation?.pasture_evaluation_invasive_content &&\n taskEvaluation?.pasture_evaluation_invasive_content.invasive_content.length > 1 &&\n

{key + 1}ª Invasora

\n }\n\n
\n \n \n
\n\n {el.leaf_type == \"FOLHA_LARGA\" &&\n <>\n
\n \n \n
\n\n
\n \n \n
\n \n }\n\n {el.leaf_type == \"FOLHA_ESTREITA\" &&\n <>\n
\n \n \n
\n \n }\n\n
\n

Foto

\n \n \n
\n \n ))\n ) : (\n <>\n \n )}\n\n {/*3. Pragas ou doenças*/}\n

3. Pragas ou doenças

\n
\n \n \n
\n\n {taskEvaluation?.pasture_evaluation_plague_content ? (\n <>\n
\n
Pragas
\n el.plague_name).join(\", \")} />\n
\n\n {taskEvaluation?.pasture_evaluation_plague_content.plague_content.map((plague, index) => {\n return (\n
\n

Foto {index + 1}

\n \n \n
\n )\n })}\n \n ) : (\n <>\n \n )}\n\n {/*4. Aguada*/}\n

4. Aguada

\n
\n \n \n
\n\n {taskEvaluation?.pasture_evaluation_waterhole_content ? (\n <>\n
\n
Estrutura
\n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n {taskEvaluation?.pasture_evaluation_waterhole_content?.structure_type == \"Bebedouro artificial\" && (\n
\n
Tipo de reparo
\n \n
\n )}\n\n
\n

Foto

\n \n \n
\n \n ) : (\n <>\n \n )}\n\n {/*5. Suplemento*/}\n

5. Suplemento

\n
\n \n \n
\n\n {taskEvaluation?.pasture_evaluation_suplement_content ? (\n <>\n
\n \n \n
\n\n
\n

Foto

\n \n \n
\n \n ) : (\n <>\n \n )}\n\n {/*6. Cocho*/}\n

6. Cocho

\n
\n \n \n
\n\n {taskEvaluation?.pasture_evaluation_trough_content ? (\n <>\n
\n \n \n
\n\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n
Tipo de reparo
\n \n
\n\n
\n

Foto

\n \n \n
\n \n ) : (\n <>\n \n )}\n\n {/*7. Cercas*/}\n

7. Cercas

\n {taskEvaluation?.pasture_evaluation_fence_content ? (\n <>\n
\n
Tipo
\n \n
\n\n
\n
Material
\n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n

Foto

\n \n \n
\n \n ) : (\n <>\n \n )}\n\n {/*8. Relevo e solo*/}\n

8. Relevo e solo

\n {taskEvaluation?.pasture_evaluation_terrain_content ? (\n <>\n
\n
Relevo
\n \n
\n\n
\n
Solo
\n \n
\n\n
\n

Foto

\n \n \n
\n \n ) : (\n <>\n \n )}\n
\n\n\n\n
\n
\n Avaliado\n
\n
\n
\n
\n
\n\n
\n
\n
\n

Responsável

\n {area?.manager_user.name}\n
\n
\n
\n
\n

Pasto

\n {microArea?.farm_initials}-{microArea?.area_initials}-{microArea?.micro_area_initials}\n
\n
\n
\n
\n \n
\n
\n
\n
\n \n )\n}","import \"./styles.css\"\nimport { useEffect, useState } from \"react\";\nimport { ReactComponent as PlusIcon } from \"../../../assets/svg/icons/plus.svg\";\nimport { useEditOnboarding } from \"../../../hooks/useEditOnboarding\";\nimport TableVisualizationRow from \"./TableVisualizationRow/Index\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\nimport InfoEvaluation from \"../../Tasks/ViewTasks/InfoEvaluation\";\nimport axios from \"../../../services/axios\"\nimport { IOptionsEvaluation } from \"../../ViewTables/Index\";\nimport { useFilter } from \"../../../hooks/useFilter\";\n\ninterface TableProductsProps {\n listTable: IMicroAreaEvaluation[];\n filter: IOptionsEvaluation | undefined;\n}\n\nexport default function TableEvaluation({ listTable, filter }: TableProductsProps) {\n const {\n setOptionForm,\n } = useEditOnboarding();\n const { setSystemManager } = useFilter();\n const { setModalCreateEvaluator, setModalStartEvaluator, modalStartEvaluator, } = useTaskCreation();\n const [haveEvaluator, setHaveEvaluator] = useState(false);\n const [startedEvaluation, setStartedEvaluation] = useState(false);\n const [selectedId, setSelectedId] = useState(0);\n\n useEffect(() => {\n axios.get(\"users/user/evaluator\")\n .then(({ data }) => {\n setHaveEvaluator(data.filter((el: any) => el.status == \"ACTIVE\").length > 0)\n })\n axios.get(`tasks/pasture-evaluation`)\n .then(({ data }) => {\n setStartedEvaluation(data.total_elements > 0)\n })\n }, [, modalStartEvaluator]);\n\n const statusMap = new Map()\n statusMap.set(\"COMPLETED\", \"Avaliado\")\n statusMap.set(\"PENDING\", \"Pendente\")\n statusMap.set(\"ERROR\", \"Erro\")\n\n return (\n <>\n {!haveEvaluator ?\n
\n Para iniciar a avaliação, é necessário alocar um responsável como avaliador.\n {\n setOptionForm(\"create_evaluator\")\n setModalCreateEvaluator(true)\n setSystemManager(\"MANAGER_EVALUATORS\")\n }}\n >\n \n Adicionar avaliador\n
\n \n :\n (!startedEvaluation ?\n
\n Inicie a avaliação para começar a visualizar os pastos avaliados.\n {\n setModalStartEvaluator(true)\n }}\n >\n Iniciar avaliação\n
\n :\n (\n listTable && listTable.length > 0 ?\n <>\n
\n
Usuário
\n
Pasto
\n
Status
\n
Data Criação
\n
Data Execução
\n
\n
\n\n
\n {listTable.map(evaluation =>\n \n )}\n
\n \n :\n
\n {filter ? Nenhum resultado encontrado para o estado {statusMap.get(filter)}. : Nenhum resultado encontrado.}\n
\n ))\n }\n \n \n )\n}","import { useFilter } from '../../hooks/useFilter';\nimport { DayPicker } from 'react-day-picker';\nimport 'react-day-picker/dist/style.css';\nimport './styles.css'\n\ntype DaySelectProps = {\n selectOnlyMonth: boolean;\n}\n\nexport default function DaySelect({ selectOnlyMonth = false }: DaySelectProps) {\n const {\n focusLastDay,\n setFocusLastDay,\n viewRangeDays,\n rangeDays,\n setRangeDays,\n setViewRangeDays,\n onBoardingDate\n } = useFilter();\n\n function handleDayClick(day: Date) {\n const now = day;\n const firstDayOfCurrentMonth = new Date(now.getFullYear(), now.getMonth(), 1);\n\n const from = selectOnlyMonth\n ? (focusLastDay ? rangeDays?.from : firstDayOfCurrentMonth)\n : (focusLastDay ? rangeDays?.from : day);\n\n const to = focusLastDay ? day : rangeDays?.to;\n\n const minDate = from! <= to! ? from : to;\n const maxDate = from! <= to! ? to : from;\n\n setRangeDays({ from: minDate, to: maxDate });\n setFocusLastDay(!focusLastDay)\n }\n\n function handleDayMouseEnter(day: Date) {\n const newRange = {\n from: focusLastDay ? rangeDays?.from : day,\n to: focusLastDay ? day : rangeDays?.to,\n };\n\n if (!focusLastDay && day >= rangeDays?.to!) {\n newRange.from = rangeDays?.to;\n newRange.to = day;\n }\n\n if (focusLastDay && day <= rangeDays?.from!) {\n newRange.from = day;\n newRange.to = rangeDays?.from;\n }\n\n setViewRangeDays(newRange);\n }\n\n const markDays = [\n rangeDays?.from ?? undefined,\n rangeDays?.to ?? undefined,\n ];\n\n return (\n
{\n setViewRangeDays(rangeDays)\n }}>\n day !== undefined) : []\n }}\n modifiersClassNames={{\n selectedRange: \"rpd-days-range_selected\"\n }}\n />\n
\n );\n}","import { RoundedCloseButton } from \"../../Buttons/RoundedCloseButton/Index\";\nimport { ButtonOnlyTitle } from \"../../Buttons/ButtonOnlyTitle/Index\";\nimport { useFilter } from \"../../../hooks/useFilter\";\nimport { useEffect, useState } from \"react\";\nimport { Modal } from \"../Default/Index\";\nimport DaySelect from \"../../DayPicker\";\nimport { format } from \"date-fns\";\nimport \"./styles.css\"\n\ntype DateModalProps = {\n selectOnlyMonth?: boolean;\n}\n\nexport const DateModal = ({ selectOnlyMonth = false }: DateModalProps) => {\n const { modalCalendarFilter, setModalCalendarFilter, rangeDays, setRangeDays } = useFilter();\n const [dateBegin, setDateBegin] = useState(\"\");\n const [dateEnd, setDateEnd] = useState(\"\");\n\n useEffect(() => {\n if (rangeDays?.from) {\n setDateBegin(format(new Date(rangeDays?.from), `dd MMMM y`))\n }\n if (rangeDays?.to) {\n setDateEnd(format(new Date(rangeDays?.to), `dd MMMM y`))\n }\n }, [rangeDays]);\n\n return (<>\n
\n \n
\n setModalCalendarFilter(false)} />\n
\n

Definir período

\n\n
\n \n
\n Data de início:\n {dateBegin}\n
\n
\n Data de fim:\n {dateEnd}\n
\n
\n\n
\n {\n setModalCalendarFilter(false)\n }}\n />\n {\n setRangeDays(rangeDays)\n setModalCalendarFilter(false)\n }}\n />\n
\n \n
\n )\n}\n","import { useState } from \"react\";\nimport { ReactComponent as PenIcon } from \"../../../../assets/svg/icons/penEdit.svg\";\nimport \"./styles.css\";\nimport { useEditOnboarding } from \"../../../../hooks/useEditOnboarding\";\n\ntype TableVisualizationRowProps = {\n product: IProducts;\n};\n\nexport default function TableVisualizationRow({\n product,\n}: TableVisualizationRowProps) {\n const {\n setOptionForm,\n setDefaultValue\n } = useEditOnboarding();\n\n return (\n
\n
{product.classification}
\n
{product.trade_name}
\n
{product.manufacturer}
\n
\n {\n setOptionForm(\"create_products\")\n setDefaultValue(product)\n }}\n />\n
\n
\n );\n}\n","import { useEffect, useState } from \"react\";\nimport { ReactComponent as PlusIcon } from \"../../../assets/svg/icons/plus.svg\";\nimport { useEditOnboarding } from \"../../../hooks/useEditOnboarding\";\nimport TableVisualizationRow from \"./TableVisualizationRow/Index\";\nimport \"./styles.css\"\n\ninterface TableProductsProps {\n listTable: IProducts[]\n}\n\nexport default function TableProducts({ listTable }: TableProductsProps) {\n\n const {\n setOptionForm,\n } = useEditOnboarding();\n\n return (\n <>\n {listTable && listTable.length > 0 ?\n <>\n
\n
Classificação
\n
Nome comercial
\n
Fabricante
\n
\n
\n\n
\n {listTable.map(product =>\n \n )}\n
\n \n :\n
\n cadastre seu primeiro produto\n {\n setOptionForm(\"create_products\")\n }}\n >\n \n cadastrar produto\n
\n \n }\n \n )\n}","import { CSSProperties, useEffect, useState } from \"react\";\nimport { Modal } from \"../../../Modal/Default/Index\";\nimport { RoundedCloseButton } from \"../../../Buttons/RoundedCloseButton/Index\";\nimport { FaRegCopy } from \"react-icons/fa\";\nimport axios from \"../../../../services/axios\";\nimport ReactJson from 'react-json-view'\nimport \"./styles.css\"\nimport { formatDateToCustomFormat } from \"../../../../utils/date/formatedDate\";\n\ninterface InfoFailSyncProps {\n selected: number;\n setSelectedId: (e: number) => void;\n}\n\ninterface FailSyncResponse {\n id: number;\n date: string;\n request: any;\n response: any;\n}\n\nexport default function InfoFailSync({\n selected,\n setSelectedId\n}: InfoFailSyncProps) {\n const createEvaluatorModalStyle = {\n padding: \"50px\",\n width: \"800px\",\n height: \"fit-content\",\n maxHeight: \"800px\",\n borderRadius: 20,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n } as CSSProperties;\n\n const [responseFailSync, setResponseFailSync] = useState(undefined);\n\n useEffect(() => {\n if (selected != 0)\n axios.get(`/sync/failures/${selected}`)\n .then(response => {\n setResponseFailSync(response.data);\n })\n }, [selected]);\n\n if (!responseFailSync) return null;\n const date = new Date(responseFailSync?.date)\n return (\n \n
\n
\n
\n

\n {`Sincronismo `}\n {formatDateToCustomFormat(date)}\n

\n
\n
\n setSelectedId(0)}\n />\n
\n
\n\n
\n
\n
\n

Requisição

\n
\n
\n                            \n                        
\n
\n\n
\n
\n

Resposta

\n
\n
\n                            \n                        
\n
\n {\n navigator.clipboard.writeText(JSON.stringify({\n ...responseFailSync,\n request: JSON.parse(responseFailSync.request),\n response: JSON.parse(responseFailSync.response)\n }, null, 2));\n\n const button = document.getElementById('copy-request');\n if (button) {\n button.innerText = 'Copiado';\n setTimeout(() => {\n button.innerText = 'Copiar informações';\n }, 5000);\n }\n }}\n >\n \n Copiar informações\n \n \n \n
\n
\n \n )\n}\n","import { useState } from \"react\";\nimport { ReactComponent as InfoIcon } from \"../../../assets/svg/icons/info.svg\";\nimport { Loading } from \"../../Loading/Index\";\nimport InfoFailSync from \"../../Tasks/ViewTasks/InfoFailSync\";\nimport \"./styles.css\"\nimport { formatDateToCustomFormat } from \"../../../utils/date/formatedDate\";\n\ntype FailSyncTableProps = {\n listTable: IFailSync[];\n isLoading: boolean;\n};\n\n\nexport default function FailSyncTable({\n listTable,\n isLoading\n}: FailSyncTableProps) {\n const [selectedId, setSelectedId] = useState(0);\n\n return (\n <>\n {listTable.length != 0 ?\n <>\n
\n
Usuário
\n
Data
\n
\n
\n\n
\n \n\n {listTable.map(rowData => {\n const date = new Date(rowData.date);\n\n return (\n
\n
\n {rowData.name}\n
\n
\n {date ? formatDateToCustomFormat(date) : \"\"}\n
\n
\n {\n setSelectedId(rowData.id)\n }}\n />\n
\n
\n )\n }\n )}\n
\n \n :\n
\n Nenhum resultado encontrado.\n
\n }\n \n \n );\n}","import ChipPressableComponent from \"../Chips/ComponentChipPressable/Index\";\nimport { useEditOnboarding } from \"../../hooks/useEditOnboarding\";\nimport { useTaskCreation } from \"../../hooks/useTaskCreation\";\nimport TableTaskEvaluation from \"../Table/TaskEvaluation\";\nimport TableEvaluation from \"../Table/PastureEvaluator\";\nimport ComponentInputSearch from \"../InputSearch\";\nimport { useFilter } from \"../../hooks/useFilter\";\nimport { DateModal } from \"../Modal/DateFilter\";\nimport TableProducts from \"../Table/Products\";\nimport { useEffect, useState } from \"react\";\nimport axios from \"../../services/axios\";\nimport Pagination from \"../Pagination\";\nimport { format } from \"date-fns\";\nimport \"./styles.css\"\nimport FailSyncTable from \"../Table/FailSync/Index\";\n\nexport type IOptionsEvaluation =\n | \"FINISHED\"\n | \"COMPLETED\"\n | \"PENDING\"\n | \"ERROR\"\n | \"ACCEPTED\"\n\nexport function ViewTables() {\n const {\n queryToSearch,\n setQueryToSearch,\n setFilterSelected\n } = useEditOnboarding();\n\n const { modalStartEvaluator } = useTaskCreation();\n const [searchable, setSearchable] = useState(true);\n const [havePagination, setHavePagination] = useState(false);\n const [listTasks, setListTasks] = useState([]);\n const [listEvaluations, setListEvaluations] = useState([]);\n const [listProducts, setListProducts] = useState([]);\n const [listFailsSync, setListFailSync] = useState([]);\n const [totalPages, setTotalPages] = useState(0);\n const [currentPage, setCurrentPage] = useState(1);\n const [filters, setFilters] = useState(undefined);\n const { sideBarOptionSelected, systemManager, rangeDays } = useFilter();\n const [isLoading, setIsLoading] = useState(false);\n\n const quantity = new Map()\n quantity.set(\"PRODUCTS\", 8)\n quantity.set(\"PASTURE_EVALUATION\", 7)\n quantity.set(\"TASK_EVALUATION\", 7)\n quantity.set(\"FAIL_SYNC\", 7)\n\n const [optionSelected, setOptionSelected] = useState(null);\n useEffect(() => {\n if (sideBarOptionSelected == \"MANAGER_SYSTEM\") {\n setOptionSelected(systemManager)\n } else if (sideBarOptionSelected == \"PASTURE_EVALUATION\" && systemManager) {\n setOptionSelected(systemManager)\n } else {\n setOptionSelected(sideBarOptionSelected)\n }\n }, [systemManager, sideBarOptionSelected]);\n\n\n useEffect(() => {\n if (optionSelected == \"PRODUCTS\") {\n setSearchable(false)\n axios.get(`products?size=${quantity.get(\"PRODUCTS\")}&page=${currentPage - 1}`)\n .then(({ data }) => {\n setListProducts(data.content)\n setTotalPages(data.total_pages)\n setHavePagination(data.total_pages > 0)\n })\n } else if (optionSelected == \"PASTURE_EVALUATION\") {\n setFilterSelected(\"evaluations\")\n setSearchable(true)\n axios.get(`tasks/pasture-evaluation?${filters ? `status=${filters}` : \"\"}&size=${quantity.get(\"PASTURE_EVALUATION\")}&page=${currentPage - 1}${queryToSearch ? `&query=${queryToSearch}` : \"\"}&${rangeDays?.from ? `date_begin=${format(new Date(rangeDays?.from), `y-MM-dd`)}` : \"\"}&${rangeDays?.to ?\n `date_end=${format(new Date(rangeDays?.to), `y-MM-dd`)}` : \"\"}`)\n .then(({ data }) => {\n setListEvaluations(data.content)\n setTotalPages(data.total_pages)\n setHavePagination(data.total_pages > 0)\n })\n } else if (optionSelected == 'TASK_EVALUATION') {\n setIsLoading(true)\n setFilterSelected(\"task_evaluations\")\n setSearchable(true)\n if (filters != \"ERROR\") {\n axios.get(`tasks/monitor?${filters ? `status=${filters}&` : \"\"}size=${quantity.get(\"PASTURE_EVALUATION\")}&page=${currentPage - 1}${queryToSearch ? `&query=${queryToSearch}` : \"\"}${rangeDays?.from ? `&date_begin=${format(new Date(rangeDays?.from), `y-MM-dd`)}` : \"\"}${rangeDays?.to ?\n `&date_end=${format(new Date(rangeDays?.to), `y-MM-dd`)}` : \"\"}`)\n .then(({ data }) => {\n setListTasks(data.content)\n setTotalPages(data.total_pages)\n setHavePagination(data.total_pages > 0)\n })\n .finally(() => setIsLoading(false))\n } else {\n setIsLoading(true)\n setSearchable(false)\n axios.get(`/sync/failures?size=${quantity.get(\"FAIL_SYNC\")}&page=${currentPage - 1}`)\n .then(({ data }) => {\n setListFailSync(data.content.map((el: any) => ({ id: el.id, date: new Date(el.created_at), name: el.name })))\n setTotalPages(data.total_pages)\n setHavePagination(data.total_pages > 0)\n })\n .finally(() => setIsLoading(false))\n }\n }\n }, [modalStartEvaluator, optionSelected, totalPages, currentPage, queryToSearch, filters, rangeDays]);\n\n useEffect(() => {\n setCurrentPage(1)\n }, [filters, rangeDays, queryToSearch]);\n\n useEffect(() => {\n setCurrentPage(1)\n }, [modalStartEvaluator]);\n\n return (\n <>\n {/* Filtro */}\n
\n {optionSelected == \"PASTURE_EVALUATION\" && (\n <>\n setFilters(undefined)}\n />\n setFilters(\"COMPLETED\")}\n />\n setFilters(\"ERROR\")}\n />\n setFilters(\"PENDING\")}\n />\n \n )}\n {optionSelected == \"TASK_EVALUATION\" && (\n <>\n setFilters(undefined)}\n />\n setFilters(\"COMPLETED\")}\n />\n setFilters(\"ERROR\")}\n />\n setFilters(\"PENDING\")}\n />\n \n )}\n\n {searchable && <>\n
\n setQueryToSearch(query)}\n type=\"usuário ou pasto\"\n onChange={el => {\n if (el == \"\") {\n setQueryToSearch(undefined)\n }\n }}\n />\n
\n }\n
\n {/* Filtro */}\n\n {/* Visualização dos avaliadores */}\n
\n {optionSelected == \"TASK_EVALUATION\" && filters != \"ERROR\" ? : <>}\n {optionSelected == \"TASK_EVALUATION\" && filters == \"ERROR\" ? : <>}\n {optionSelected == \"PASTURE_EVALUATION\" ? : <>}\n {optionSelected == \"PRODUCTS\" ? : <>}\n
\n {/* Visualização dos avaliadores */}\n\n {/* Paginação */}\n {havePagination && (\n <>\n
\n
\n setCurrentPage(value)}\n />\n
\n \n )}\n {/* Paginação */}\n\n {/*Modals*/}\n \n {/*Modals*/}\n \n );\n}\n","import React from \"react\";\nimport { Modal } from \"../Default/Index\";\nimport { RoundedCloseButton } from \"../../Buttons/RoundedCloseButton/Index\";\nimport { ButtonOnlyTitle } from \"../../Buttons/ButtonOnlyTitle/Index\";\nimport { ReactComponent as Check } from \"../../../assets/svg/icons/CheckFull.svg\";\n\ninterface SuccessModalCreateProductProps {\n visible: boolean;\n onClose: () => void;\n backScreen: () => void;\n newProduct: () => void;\n}\n\nexport const SuccessModalCreateProduct: React.FC = ({\n visible,\n onClose,\n backScreen,\n newProduct\n}) => {\n return (\n
\n \n
\n onClose()} />\n
\n
\n \n
\n

Concluído!

\n Você cadastrou esse produto com sucesso!\n
\n
\n
\n backScreen()}/>\n newProduct()}/>\n
\n \n
\n );\n};\n","import \"./styles.css\";\nimport { useForm } from \"react-hook-form\";\nimport { CSSProperties, useEffect, useState } from \"react\";\nimport { Input } from \"../../EditOnboarding/components/Input\";\nimport axios from \"../../../services/axios\";\nimport { Dropdown } from \"../../EditOnboarding/components/Select\";\nimport { IOptionProps } from \"../../../@types/reactSelect/IOption\";\nimport { ButtonOnlyTitle } from \"../../Buttons/ButtonOnlyTitle/Index\";\nimport { CounterInputEdit } from \"../../EditOnboarding/components/Input/CounterInput/Index\";\nimport { SuccessModalCreateProduct } from \"../../Modal/CreateProduct/Index\";\nimport { AlertModal } from \"../../Modal/Alert/Index\";\nimport { TitleModal } from \"../../Modal/Contents/TitleModal/Index\";\nimport { TextModal } from \"../../Modal/Contents/TextModal/Index\";\nimport { ButtonWithChildren } from \"../../Buttons/ButtonWithChildren/Index\";\nimport { ReactComponent as PositiveIcon } from \"./../../../assets/svg/icons/positive.svg\";\nimport { ReactComponent as NegativeIcon } from \"./../../../assets/svg/icons/negative.svg\";\nimport { RoundedCloseButton } from \"../../Buttons/RoundedCloseButton/Index\";\nimport { ReactComponent as Check } from \"../../../assets/svg/icons/CheckFull.svg\";\nimport { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as yup from \"yup\";\nimport { useEditOnboarding } from \"../../../hooks/useEditOnboarding\";\nimport { useFilter } from \"../../../hooks/useFilter\";\n\nconst contentStyleAlert = {\n width: \"600px\",\n height: \"345px\",\n borderRadius: \"25px\",\n} as CSSProperties;\n\nexport function CreateProducts() {\n const [showErrorMessage, setShowErrorMessage] = useState(false);\n\n const productSchema = yup.object({\n trade_name: yup.string().required(\"Nome do produto é necessário.\"),\n manufacturer: yup.string().required(\"Fabricante é necessário.\"),\n classification: yup.object().required(\"Campo obrigatório não preenchido.\").nullable(),\n sub_classification: yup.object({\n label: yup.string(),\n value: yup.string().required(\"Campo obrigatório não preenchido.\"),\n }).required(\"Campo obrigatório não preenchido.\").nullable(),\n expectedUse: yup.string().test('value', 'Campo obrigatório não informado. ', () => {\n setShowErrorMessage(true)\n return true\n }),\n frequency: yup.string().test('value', 'Campo obrigatório não informado. ', () => {\n setShowErrorMessage(true)\n return true\n }),\n });\n\n const [expectedUse, setExpectedUse] = useState(0);\n const [frequency, setFrequency] = useState(0);\n\n const maxInputValue = 10000000\n\n const {\n setOptionForm,\n defaultValue\n } = useEditOnboarding();\n\n const {\n handleSubmit,\n control,\n watch,\n setValue,\n setError,\n formState: { errors }\n } = useForm({ resolver: yupResolver(productSchema), defaultValues: defaultValue });\n\n const [mapClassification] = useState(new Map());\n\n const [optionsClassification, setOptionsClassification] = useState([]);\n\n const [modalDeleteVisible, setModalDeleteVisible] = useState(false);\n\n const [errorExpectedUse, setErrorExpectedUse] = useState(\"\");\n\n const [successCreator, setSuccessCreator] = useState(false);\n\n const [errorFrequency, setErrorFrequency] = useState(\"\");\n\n const [resetConsumo, setResetConsumo] = useState(0);\n\n const classificationSelected = watch(\"classification\")\n\n const { setSideBarOptionSelected } = useFilter();\n\n function onSubmit(data: any) {\n if (expectedUse != 0 && frequency != 0) {\n if (defaultValue) {\n axios\n .patch(\"/products/supplement\",\n {\n id: data?.id,\n manufacturer: data?.manufacturer,\n trade_name: data?.trade_name,\n sub_classification_id: Number(data?.sub_classification?.value),\n expected_consumption: expectedUse,\n supply_frequency: frequency\n })\n .then(() => {\n setSuccessCreator(true)\n })\n } else {\n axios\n .post(\"/products/supplement\",\n {\n manufacturer: data?.manufacturer,\n trade_name: data?.trade_name,\n sub_classification_id: Number(data?.sub_classification?.value),\n expected_consumption: expectedUse,\n supply_frequency: frequency\n })\n .then(() => {\n setSuccessCreator(true)\n })\n }\n }\n }\n\n function deleteProduct(id: number) {\n axios\n .delete(`/products/${id}`)\n .then(() => {\n setOptionForm(undefined)\n setModalDeleteVisible(!modalDeleteVisible)\n })\n }\n\n useEffect(() => {\n axios.get(\"/products/supplement/classification\")\n .then(({ data }) => {\n mapClassification.set(data[0].name, \"Tipo de sal\")\n mapClassification.set(data[1].name, \"Peso vivo\")\n mapClassification.set(data[2].name, \"Peso vivo\")\n\n setOptionsClassification(\n data.map((el: any) =>\n ({\n label: el.name,\n value: el.name,\n info: el.sub_classification.map((el2: any) => ({\n label: el2.name,\n value: el2.id\n }))\n }))\n )\n })\n }, []);\n\n useEffect(() => {\n if (showErrorMessage && expectedUse == 0) setErrorExpectedUse(\"Preencha o consumo esperado.\")\n else setErrorExpectedUse(\"\")\n }, [expectedUse, showErrorMessage]);\n\n useEffect(() => {\n if (showErrorMessage && frequency == 0) setErrorFrequency(\"Preencha a frequência de fornecimento.\")\n else setErrorFrequency(\"\")\n }, [frequency, showErrorMessage]);\n\n useEffect(() => {\n if (defaultValue) {\n setFrequency(defaultValue?.supply_frequency)\n setExpectedUse(defaultValue?.expected_consumption)\n\n setValue(\"classification\", {\n label: defaultValue?.classification,\n value: defaultValue?.classification,\n ...optionsClassification.find(el => el.label == defaultValue?.classification)\n })\n }\n }, [defaultValue, optionsClassification]);\n\n useEffect(() => {\n if (showErrorMessage && classificationSelected) setError(\"sub_classification\", { message: \"Campo obrigatório não preenchido.\" })\n if (defaultValue) {\n setValue(\"sub_classification\", {\n label: defaultValue?.sub_classification,\n value: watch(\"classification\")?.info?.find((el: any) => el.label)?.value\n })\n }\n }, [classificationSelected]);\n\n\n return (\n
\n
\n
handleSubmit(onSubmit)} style={{ width: 500 }}>\n \n\n \n\n {\n setValue(\"sub_classification\", null)\n }}\n />\n\n {classificationSelected && (\n <>\n \n\n \n\n \n \n )}\n \n
\n
\n Resumo\n\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n\n
\n setOptionForm(undefined)}\n />\n\n setModalDeleteVisible(true)}\n hidden={!defaultValue || !defaultValue.can_delete}\n />\n\n \n
\n
\n\n {\n setOptionForm(undefined)\n setSuccessCreator(false)\n }\n }\n backScreen={() => {\n setSideBarOptionSelected(\"MAPA\")\n setOptionForm(undefined)\n setSuccessCreator(false)\n }}\n newProduct={() => {\n setSuccessCreator(false)\n setOptionForm(undefined)\n setTimeout(() => setOptionForm(\"create_products\"), 1)\n }}\n />\n\n \n
\n
\n setModalDeleteVisible(false)} />\n
\n \n\n
\n Você tem certeza?\n \n Ao deletar, você perderá esse produto!\n \n
\n\n
\n deleteProduct(defaultValue.id)}>\n
\n \n
Sim
\n
\n
\n setModalDeleteVisible(false)}>\n
\n \n
Não
\n
\n
\n
\n
\n
\n
\n );\n}\n","import { CSSProperties, useEffect, useState } from \"react\";\nimport { Modal } from \"../../../../Modal/Default/Index\";\nimport { RoundedCloseButton } from \"../../../../Buttons/RoundedCloseButton/Index\";\nimport \"./styles.css\"\nimport { ButtonOnlyTitle } from \"../../../../Buttons/ButtonOnlyTitle/Index\";\nimport { IOptionsProps } from \"../../../../../@types/reactSelect/IOption\";\nimport { useEditOnboarding } from \"../../../../../hooks/useEditOnboarding\";\nimport axios from \"../../../../../services/axios\"\nimport { useTaskCreation } from \"../../../../../hooks/useTaskCreation\";\nimport { useForm } from \"react-hook-form\";\nimport { Dropdown } from \"../../../../EditOnboarding/components/Select\";\nimport { Input } from \"../../../../EditOnboarding/components/Input\";\nimport { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as yup from 'yup'\n\nconst createEvaluatorModalStyle = {\n padding: \"50px\",\n width: \"600px\",\n height: \"fit-content\",\n borderRadius: 20,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n} as CSSProperties;\n\nconst evaluatorSchema = yup.object()\n.shape({\n evaluator: yup\n .object()\n .nullable()\n .required('Responsável é necessário.'),\n area: yup\n .object()\n .nullable()\n .required('Retiro é necessário.'),\n})\n\n\nexport default function CreateEvaluator() {\n const [allResponsibles, setAllResponsibles] = useState();\n const [optionsArea, setOptionsArea] = useState([]);\n const { modalCreateEvaluator, setModalCreateEvaluator } = useTaskCreation();\n const {\n defaultValue,\n idSelected,\n setIdSelected\n } = useEditOnboarding();\n\n const {\n handleSubmit,\n control,\n setValue,\n reset,\n watch,\n formState: { errors }\n } = useForm({ \n defaultValues: defaultValue,\n resolver: yupResolver(evaluatorSchema),\n });\n\n useEffect(() => {\n axios\n .get(\"areas\")\n .then((response) => {\n setAllResponsibles(response.data.map((area: any) => ({\n label: area.manager_user?.name,\n value: area.manager_user?.id,\n info: area\n })) as IOptionsProps);\n });\n }, []);\n\n function onSubmit(data: any) {\n const body = {\n \"user_id\": Number(data?.evaluator?.value),\n \"area_ids\": [Number(data?.area?.value)]\n }\n if (idSelected) {\n axios.patch(\"users/user/evaluator\", body)\n .then(() => {\n setModalCreateEvaluator(false)\n })\n .catch(err => console.error(err))\n } else {\n axios.post(\"users/user/evaluator\", body)\n .then(() => {\n setModalCreateEvaluator(false)\n })\n .catch(err => console.error(err))\n }\n }\n\n function deleteEvaluator(id: number) {\n axios.delete(`users/user/evaluator/${id}`)\n .then(() => {\n setModalCreateEvaluator(false)\n setIdSelected(0)\n })\n .catch(err => console.error(err))\n }\n\n useEffect(() => {\n if (defaultValue) {\n setValue(\"evaluator\", {\n label: defaultValue?.area?.manager_user?.name,\n value: defaultValue?.area?.manager_user?.id\n })\n if (defaultValue?.area?.farm)\n setValue(\"farm\", `${defaultValue?.area?.farm?.name} (${defaultValue?.area?.farm?.initials})`)\n setValue(\"area\", {\n label: defaultValue?.area?.name,\n value: defaultValue?.area?.id\n })\n setOptionsArea([{\n label: defaultValue?.area?.name,\n value: defaultValue?.area?.id\n }]);\n }\n }, [defaultValue]);\n\n useEffect(() => {\n if (!modalCreateEvaluator) {\n reset({\n farm: \"\",\n area: \"\",\n evaluator: \"\"\n })\n }\n }, [modalCreateEvaluator]);\n const responsible = watch(\"evaluator\")\n const area = watch(\"area\")\n\n return (\n \n
handleSubmit(onSubmit)}>\n
\n
\n

{idSelected ? \"Editar avaliador\" : \"Adicionar avaliador\"}

\n
\n {\n setModalCreateEvaluator(false)\n }}\n />\n
\n
\n
\n
\n Responsável\n
\n el?.value!=responsible?.value) ?? []}\n placeholderText=\"Selecionar responsável...\"\n getSelectedData={(el) => {\n if (allResponsibles) {\n setOptionsArea([{\n label: (allResponsibles.filter(resp => resp.value == el.value)[0]?.info as any)?.name,\n value: (allResponsibles.filter(resp => resp.value == el.value)[0]?.info as any)?.id\n }]);\n const farm = el.info?.farm\n setValue(\"farm\", `${farm?.name} (${farm?.initials})`)\n setValue(\"area\", null)\n }\n }}\n name={\"evaluator\"}\n control={control}\n closeMenuOnSelect={true}\n isDisabled={idSelected != 0}\n noOptionsMessage={() => Nenhum responsável disponível}\n />\n
\n
\n\n
\n Fazenda\n \n
\n\n
\n Retiro\n
\n el?.value!=area?.value) ?? []}\n placeholderText=\"Selecionar retiro...\"\n name={\"area\"}\n control={control}\n closeMenuOnSelect={true}\n noOptionsMessage={() => Nenhum retiro disponível}\n />\n
\n
\n deleteEvaluator(idSelected)}\n hidden={!idSelected}\n />\n
\n
\n\n
\n {\n setModalCreateEvaluator(false)\n }}\n />\n \n
\n
\n \n )\n}","import \"./styles.css\"\nimport axios from '../../../../services/axios'\nimport { useEffect, useState } from \"react\";\nimport { Card } from \"../../../Card/Index\";\nimport { useEditOnboarding } from \"../../../../hooks/useEditOnboarding\";\nimport { useTaskCreation } from \"../../../../hooks/useTaskCreation\";\n\nexport function ListEvaluators() {\n const [listEvaluators, setListEvaluators] = useState([]);\n const [areaMap, setAreaMap] = useState(new Map());\n\n const {\n setIdSelected,\n setDefaultValue\n } = useEditOnboarding();\n const { modalCreateEvaluator, setModalCreateEvaluator, allAreas } = useTaskCreation();\n\n useEffect(() => {\n axios.get(\"/users/user/evaluator\")\n .then(({ data }) => {\n axios.get(\"/areas\")\n .then(({ data: areas }) => {\n areas.map((area: any) => {\n setAreaMap(new Map(areaMap.set(area?.id, area)));\n })\n setListEvaluators(data.map((el: any) => ({\n ...el,\n area: areaMap.get(el.area_ids[0])\n })))\n })\n .catch(err => console.error(err))\n })\n .catch(err => console.error(err))\n if (!modalCreateEvaluator) {\n setDefaultValue(undefined)\n setIdSelected(0)\n }\n }, [, modalCreateEvaluator]);\n\n return (<>\n
\n {listEvaluators.filter(el => el.status == \"ACTIVE\").map((card, index) => (\n {\n setModalCreateEvaluator(true)\n setIdSelected(card.id)\n setDefaultValue(card)\n }}\n key={index}\n />\n ))}\n
\n )\n}","import \"./styles.css\"\nimport { CSSProperties, useEffect, useState } from \"react\";\nimport { Modal } from \"../../../../Modal/Default/Index\";\nimport { ButtonOnlyTitle } from \"../../../../Buttons/ButtonOnlyTitle/Index\";\nimport { useTaskCreation } from \"../../../../../hooks/useTaskCreation\";\nimport { RoundedCloseButton } from \"../../../../Buttons/RoundedCloseButton/Index\";\nimport { ReactComponent as CheckComplete } from \"../../../../../assets/svg/icons/CheckFull.svg\";\nimport axios from \"../../../../../services/axios\"\n\nconst createEvaluatorModalStyle = {\n padding: \"50px\",\n width: \"600px\",\n height: \"fit-content\",\n borderRadius: 20,\n position: \"relative\"\n} as CSSProperties;\n\nexport default function StartEvaluation() {\n const { modalStartEvaluator, setModalStartEvaluator } = useTaskCreation();\n const [modalEvaluationStarted, setModalEvaluationStarted] = useState(false);\n\n function submitStartEvaluation() {\n axios.post(\"tasks/pasture-evaluation/assign\")\n .then(({ data }) => {\n setModalStartEvaluator(false)\n setModalEvaluationStarted(true)\n })\n .catch(err => console.error(err))\n }\n\n return (\n <>\n \n
\n {\n setModalStartEvaluator(false)\n }}\n />\n
\n
\n
\n

Iniciar avaliação

\n Ao iniciar a avaliação de pastagem, você irá gerar uma tarefa referente a todos os pastos com avaliador cadastrado, que ainda não possuem tarefa de avaliação de pastagem iniciada.\n
\n
\n setModalStartEvaluator(false)}\n />\n \n
\n
\n \n\n \n
\n {\n setModalEvaluationStarted(false)\n }}\n />\n
\n
\n \n
\n

Avaliação iniciada!

\n Para avaliar novamente você pode reiniciar a avaliação.\n
\n
\n {\n setModalEvaluationStarted(false)\n setModalStartEvaluator(false)\n }}\n />\n
\n
\n \n \n )\n}","import { useEffect, useRef, useState } from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport { yupResolver } from \"@hookform/resolvers/yup\";\nimport { Dropdown } from \"../../EditOnboarding/components/Select\";\nimport { useEditOnboarding } from \"../../../hooks/useEditOnboarding\";\nimport { ButtonOnlyTitle } from \"../../Buttons/ButtonOnlyTitle/Index\";\nimport { LeafletStaticMap } from \"../../Leaflet/LeafletStaticMap/Index\";\nimport { IOptionProps, IOptionsProps } from \"../../../@types/reactSelect/IOption\";\nimport { CounterInputEdit } from \"../../EditOnboarding/components/Input/CounterInput/Index\";\nimport {\n FlyToBounds,\n FlyToBoundsRefProps,\n} from \"../../Leaflet/FlyToBounds/Index\";\nimport Constants from \"../../../constants/Index\";\nimport axios from \"../../../services/axios\"\nimport { Polygon } from \"react-leaflet\";\nimport * as yup from 'yup';\nimport \"./styles.css\";\nimport { DayPicker } from \"react-day-picker\";\nimport { format } from \"date-fns\";\nimport { useFilter } from \"../../../hooks/useFilter\";\nimport { ICoords } from \"../../../@types/GoogleMaps/ICoord\";\n\nexport default function CreatePastureManagement() {\n const [showErrorMessage, setShowErrorMessage] = useState(false);\n const { defaultValue, setOptionForm } = useEditOnboarding();\n const { setSystemManager } = useFilter();\n\n const frequencyOptions = [\n { label: \"Semanal\", value: 1, info: \"WEEKLY\" },\n { label: \"Bisemanal\", value: 2, info: \"BIWEEKLY\" },\n { label: \"Mensal\", value: 3, info: \"MONTHLY\" },\n ]\n\n const pastureManagementSchema = yup.object()\n .shape({\n farm: yup\n .object()\n .nullable()\n .required('Fazenda é necessária.'),\n area: yup\n .object()\n .nullable()\n .required('Retiro é necessário.'),\n microAreas: yup\n .array()\n .nullable()\n .required('Pastos é necessário.')\n .min(1, \"Pastos é necessário.\"),\n type: yup\n .object()\n .nullable()\n .required('Tipo de pastejo é necessário.'),\n monitor: yup\n .object()\n .nullable()\n .when(['type'], {\n is: (type: IOptionProps) =>\n (type?.label != \"Sem monitoramento\"),\n then: yup.object().nullable().required('Tipo de monitoramento é necessário.'),\n }),\n heightInput: yup\n .number()\n .when(['type', 'monitor'], {\n is: (monitor: IOptionProps) =>\n monitor?.label == \"Altura\",\n then: yup.number().test('', 'Altura de entrada é necessária.', (value) => {\n setShowErrorMessage(true)\n return !!value\n })\n }),\n heightOutput: yup\n .number()\n .when(['type', 'monitor'], {\n is: (monitor: IOptionProps) =>\n monitor?.label == \"Altura\",\n then: yup.number().test('', 'Campo obrigatório não informado.', (value) => {\n setShowErrorMessage(true)\n return !!value\n })\n }),\n occupationDays: yup\n .number()\n .when(['type', 'monitor'], {\n is: (monitor: IOptionProps) =>\n monitor?.label == \"Dias\",\n then: yup.number().test('', 'Campo obrigatório não informado.', (value) => {\n setShowErrorMessage(true)\n return !!value\n })\n }),\n restDays: yup\n .number()\n .when(['type', 'monitor'], {\n is: (monitor: IOptionProps) =>\n monitor?.label == \"Dias\",\n then: yup.number().test('', 'Campo obrigatório não informado.', (value) => {\n setShowErrorMessage(true)\n return !!value\n })\n }),\n rateIn: yup\n .number()\n .when(['type', 'monitor'], {\n is: (monitor: IOptionProps) =>\n monitor?.label == \"Nota\",\n then: yup.number().test('', 'Campo obrigatório não informado.', (value) => {\n setShowErrorMessage(true)\n return !!value\n })\n }),\n rateOut: yup\n .number()\n .when(['type', 'monitor'], {\n is: (monitor: IOptionProps) =>\n monitor?.label == \"Nota\",\n then: yup.number().test('', 'Campo obrigatório não informado.', (value) => {\n setShowErrorMessage(true)\n return !!value\n })\n }),\n range: yup\n .number()\n .when(['type'], {\n is: (type: IOptionProps) =>\n type?.label == \"Em faixa\",\n then: yup.number().test('', 'Campo obrigatório não informado.', (value) => {\n setShowErrorMessage(true)\n return !!value\n })\n }),\n frequency: yup\n .object()\n .nullable()\n .when(['type'], {\n is: (type: IOptionProps, monitor: IOptionProps) =>\n type?.label != \"Sem monitoramento\" &&\n (monitor?.label == \"Altura\" || monitor?.label == \"Nota\"),\n then: yup.object().nullable().required('Tipo de frequência é necessário.'),\n }),\n })\n\n const [optionsTypeManagement, setOptionsTypeManagement] = useState([]);\n const [optionsTypeMonitor, setOptionsTypeMonitor] = useState([]);\n const [selectedTypeMonitor, setSelectedTypeMonitor] = useState();\n const [optionsMicroAreas, setOptionsMicroAreas] = useState([]);\n const [microAreaRoute, setMicroAreaRoute] = useState();\n const flytoBoundsRef = useRef();\n const [heightOutput, setHeightOutput] = useState(0);\n const [rateOutput, setRateOutput] = useState(0);\n\n const {\n handleSubmit,\n control,\n setValue,\n watch,\n formState: { errors },\n trigger\n } = useForm({\n defaultValues: defaultValue,\n resolver: yupResolver(pastureManagementSchema),\n });\n\n useEffect(() => {\n axios\n .get(\"micro-area-management/types\")\n .then((response) => {\n const types: IOptionsProps = response.data.map((type: any) => ({\n label: type.name,\n value: type.id,\n info: type.monitoring_types\n }))\n setOptionsTypeManagement(types)\n })\n\n axios\n .get(\"/farms/user\")\n .then(({ data }) => {\n setListFarms(\n data.map((farm: any) => ({\n label: farm.name,\n value: farm.id,\n info: farm,\n }))\n );\n });\n\n axios\n .get(\"/areas/user\")\n .then(({ data }) => {\n setListAreas(\n data.map((area: any) => ({\n label: area.name,\n value: area.id,\n info: area,\n }))\n );\n });\n\n axios\n .get(\"/micro-areas\")\n .then(({ data }) => {\n const available: IOptionsProps = data.map((microArea: any) => ({\n label: `${microArea.farm.initials}-${microArea.area.initials}-${microArea.initials}`,\n value: microArea.id,\n info: microArea,\n }));\n setOptionsMicroAreas(available);\n });\n }, []);\n\n const [heightInputError, setHeightInputError] = useState(\"\");\n const [heightOutputError, setHeightOutputError] = useState(\"\");\n const [occupationDaysError, setOccupationDaysError] = useState(\"\");\n const [restDaysError, setRestDaysError] = useState(\"\");\n const [rangeError, setRangeError] = useState(\"\");\n const [executionPerDayError, setExecutionPerDayError] = useState(\"\");\n const [rateInError, setRateInError] = useState(\"\");\n const [rateOutError, setRateOutError] = useState(\"\");\n\n function handleChange(name: string) {\n if (showErrorMessage) {\n trigger(name)\n }\n }\n\n const diasSemana = ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'];\n const [selectedDays, setSelectedDays] = useState(new Array(diasSemana.length).fill(false));\n const [startDate, setStartDate] = useState(undefined);\n const [disabledDays, setDisabledDays] = useState([]);\n\n function toggleDay(index: number) {\n setSelectedDays(prevState => {\n const newState = [...prevState];\n newState[index] = !newState[index];\n return newState;\n });\n }\n\n const frequency = watch(\"frequency\")\n const typeManagement = watch(\"type\")\n const microAreas = watch(\"microAreas\")\n\n useEffect(() => {\n setDisabledDays(selectedDays.map((day, index) => !day ? index : 7))\n if (startDate?.getDay() && !selectedDays[startDate?.getDay()]) {\n setStartDate(undefined)\n }\n }, [selectedDays]);\n\n useEffect(() => {\n if (frequency?.value == 2) {\n setSelectedDays(new Array(diasSemana.length).fill(false));\n } else if (frequency?.value == 3) {\n setDisabledDays([7])\n }\n }, [frequency]);\n\n useEffect(() => {\n if (selectedTypeMonitor?.label == \"Dias\" || typeManagement?.label == \"Em faixa\") {\n setDisabledDays([7])\n }\n }, [selectedTypeMonitor, typeManagement]);\n\n\n function onSubmit(data: any) {\n let bodyPost = {} as any;\n\n switch (data?.type?.label) {\n case \"Sem monitoramento\":\n bodyPost = {\n micro_area_ids: data?.microAreas.map((microArea: IOptionProps) => Number(microArea.value)),\n management_type_id: Number(data?.type?.value),\n }\n break;\n default:\n let requirements = {\n requirement_in: null,\n requirement_out: null\n } as any;\n switch (data?.monitor?.label) {\n case \"Altura\":\n requirements = {\n requirement_in: data?.heightInput,\n requirement_out: data?.heightOutput\n }\n break;\n case \"Nota\":\n requirements = {\n requirement_in: data?.rateIn,\n requirement_out: data?.rateOut\n }\n break;\n case \"Dias\":\n requirements = {\n requirement_in: data?.occupationDays,\n requirement_out: data?.restDays\n }\n break;\n case \"Faixa\":\n requirements = {\n requirement_in: data?.range,\n requirement_out: null\n }\n break;\n default:\n requirements = {\n requirement_in: null,\n requirement_out: null\n }\n break;\n }\n bodyPost = {\n micro_area_ids: data?.microAreas.map((microArea: IOptionProps) => Number(microArea.value)),\n management_type_id: Number(data?.type?.value),\n monitoring_type_id: Number(data?.monitor?.value),\n ...requirements,\n frequency: data?.frequency?.info,\n days_of_week: selectedDays?.map((day, index) => day ? (index === 0 ? 7 : index) : -1).filter((day) => day != -1),\n execution_per_day: data?.executionPerDay || null,\n start_date: startDate ? format(startDate, \"yyyy-MM-dd\") : undefined,\n }\n if (defaultValue && defaultValue?.id) {\n bodyPost = {\n ...bodyPost,\n management_group_id: defaultValue.id\n }\n }\n break;\n }\n\n axios.post(\"/micro-area-management\", bodyPost)\n .then(() => {\n setOptionForm(undefined)\n setSystemManager(null)\n })\n }\n\n const [requirementIn, setRequirementIn] = useState(0);\n const [requirementOut, setRequirementOut] = useState(0);\n const [executionPerDay, setExecutionPerDay] = useState(0);\n\n useEffect(() => {\n if (defaultValue && optionsTypeManagement && optionsTypeManagement.length > 0) {\n setOptionsTypeMonitor(optionsTypeManagement.filter(el => el.value == defaultValue?.type?.value)[0].info\n .map((el: any) => ({\n label: el?.name,\n value: el?.id\n }))\n )\n setSelectedTypeMonitor({\n label: defaultValue.monitor.label,\n value: defaultValue.monitor.value\n })\n setRequirementIn(defaultValue.requirement_in)\n setRequirementOut(defaultValue.requirement_out)\n setExecutionPerDay(defaultValue.execution_per_day)\n setSelectedDays(diasSemana.map((_, index) => defaultValue.days_of_week.map((day: any) => day - 1)))\n setMicroAreaRoute(defaultValue.microAreas.map((el: any) => el.info))\n setValue(\"frequency\", frequencyOptions.filter(fr => fr.info == defaultValue.frequency)[0])\n setValue(\"type\", defaultValue.type)\n const [year, month, day] = defaultValue.start_date.split(\"-\");\n setTimeout(() => {\n setStartDate(new Date(Number(year), Number(month) - 1, Number(day)))\n }, 200);\n setCurrentFarm(defaultValue.farm)\n setValue(\"farm\", {\n label: defaultValue.farm.name,\n value: defaultValue.farm.id\n })\n setCurrentArea(defaultValue.area)\n setValue(\"area\", {\n label: defaultValue.area.name,\n value: defaultValue.area.id\n })\n }\n }, [defaultValue, optionsTypeManagement]);\n\n const [listFarms, setListFarms] = useState();\n const [listAreas, setListAreas] = useState();\n const [fitCoords, setFitCoords] = useState([]);\n const [currentFarm, setCurrentFarm] = useState();\n const [currentArea, setCurrentArea] = useState();\n\n useEffect(() => {\n if (currentFarm && currentFarm.map_coords) {\n setFitCoords(currentFarm.map_coords)\n }\n }, [currentFarm]);\n\n useEffect(() => {\n if (currentArea && currentArea.map_coords) {\n setFitCoords(currentArea.map_coords)\n }\n }, [currentArea]);\n\n return (\n <>\n
\n
handleSubmit(onSubmit)}>\n
\n
\n Fazenda\n {\n setCurrentFarm(option.info);\n setValue(\"area\", null)\n setCurrentArea(undefined)\n setValue(\"microAreas\", null)\n setMicroAreaRoute([])\n }}\n closeMenuOnSelect={true}\n noOptionsMessage={() => (\n Nenhuma fazenda disponível\n )}\n />\n
\n\n
\n Retiro\n area?.info?.farm?.id == currentFarm?.id\n )\n : []\n }\n getSelectedData={(option: any) => {\n setCurrentArea(option.info);\n setValue(\"microAreas\", null)\n setMicroAreaRoute([])\n }}\n closeMenuOnSelect={true}\n noOptionsMessage={() => (\n Nenhum retiro disponível\n )}\n />\n
\n\n
\n Pastos\n
\n 0 ? optionsMicroAreas.filter(ma1 => !microAreas.map((ma2: any) => ma2.value).includes(ma1.value)) : optionsMicroAreas\n ).filter(\n (micro: any) => micro?.info?.area_id == currentArea?.id\n )\n }\n placeholderText=\"Selecionar pastos...\"\n getSelectedData={(el: any) => {\n setMicroAreaRoute(el.map((microArea: IOptionProps) => microArea.info))\n }}\n name={\"microAreas\"}\n control={control}\n noOptionsMessage={() => Nenhum pasto disponível}\n isMulti\n />\n
\n
\n\n
\n Tipo de Pastejo\n
\n {\n setOptionsTypeMonitor(el.info.map((type: any) => ({\n label: type.name,\n value: type.id,\n })))\n setValue(\"monitor\", null)\n setSelectedTypeMonitor(undefined)\n setSelectedDays(new Array(diasSemana.length).fill(false));\n if (el.label == \"Em faixa\") {\n setValue(\"monitor\", {\n label: el.info[0].name,\n value: el.info[0].id,\n })\n }\n setRequirementIn(0)\n setRequirementOut(0)\n setExecutionPerDay(0)\n }}\n name={\"type\"}\n control={control}\n closeMenuOnSelect={true}\n noOptionsMessage={() => Nenhum tipo de pastejo disponível}\n />\n
\n
\n\n {optionsTypeMonitor && optionsTypeMonitor.length > 0 ?\n <>\n {typeManagement && typeManagement.label != \"Em faixa\" &&\n
\n Tipo de Monitoramento\n
\n {\n setSelectedTypeMonitor(el)\n if (el.label == \"Dias\") {\n setValue(\"frequency\", null)\n setSelectedDays(new Array(diasSemana.length).fill(false));\n }\n }}\n name={\"monitor\"}\n control={control}\n closeMenuOnSelect={true}\n noOptionsMessage={() => Nenhum tipo de monitoramento disponível}\n />\n
\n
\n }\n\n {selectedTypeMonitor && selectedTypeMonitor.label == \"Altura\" &&\n <>\n
\n Altura da entrada\n {\n setValue(\"heightInput\", value)\n\n if (value != 0) {\n setHeightInputError(\"\")\n } else setHeightInputError(`Altura de entrada é necessária.`)\n handleChange(\"heightInput\")\n\n if (value < watch(\"heightOutput\")) {\n setValue(\"heightOutput\", value)\n setHeightOutput(value)\n }\n }}\n defaultValue={requirementIn}\n name={\"heightInput\"}\n control={control}\n label={\"cm\"}\n errorText={showErrorMessage ? heightInputError : \"\"}\n max={999}\n />\n
\n\n
\n Altura da saída\n {\n if (heightOutput != value)\n setHeightOutput(value)\n setValue(\"heightOutput\", value)\n\n if (value != 0) {\n setHeightOutputError(\"\")\n } else setHeightOutputError(`Altura de saída é necessária.`)\n handleChange(\"heightOutput\")\n }}\n defaultValue={requirementOut}\n name={\"heightOutput\"}\n control={control}\n max={watch(\"heightInput\") || 999}\n label={\"cm\"}\n errorText={showErrorMessage ? heightOutputError : \"\"}\n value={heightOutput}\n />\n
\n \n }\n\n {selectedTypeMonitor && selectedTypeMonitor.label == \"Dias\" &&\n <>\n
\n Dias de ocupação\n {\n setValue(\"occupationDays\", value)\n if (value != 0) {\n setOccupationDaysError(\"\")\n }\n else setOccupationDaysError(`Dias de ocupação é necessário.`)\n handleChange(\"occupationDays\")\n }}\n defaultValue={requirementIn}\n name={\"occupationDays\"}\n control={control}\n max={999}\n label={\"dias\"}\n errorText={showErrorMessage ? occupationDaysError : \"\"}\n />\n
\n\n
\n Dias de descanso\n {\n setValue(\"restDays\", value)\n if (value != 0) {\n setRestDaysError(\"\")\n }\n else setRestDaysError(`Dias de descanso é necessário.`)\n handleChange(\"restDays\")\n }}\n defaultValue={requirementOut}\n name={\"restDays\"}\n control={control}\n max={999}\n label={\"dias\"}\n errorText={showErrorMessage ? restDaysError : \"\"}\n />\n
\n \n }\n\n {selectedTypeMonitor && selectedTypeMonitor.label == \"Nota\" &&\n <>\n
\n Nota de entrada do pasto (0 a 10)\n {\n setValue(\"rateIn\", value)\n\n if (value != 0) {\n setRateInError(\"\")\n } else setRateInError(`Nota do pasto é necessário.`)\n handleChange(\"rateIn\")\n\n if (value < watch(\"rateOut\")) {\n setValue(\"rateOut\", value)\n setRateOutput(value)\n }\n }}\n defaultValue={requirementIn}\n name={\"rateIn\"}\n control={control}\n max={10}\n errorText={showErrorMessage ? rateInError : \"\"}\n />\n
\n\n
\n Nota de saída do pasto (0 a 10)\n {\n if (rateOutput != value)\n setRateOutput(value)\n setValue(\"rateOut\", value)\n\n if (value != 0) {\n setRateOutError(\"\")\n } else setRateOutError(`Nota do pasto é necessário.`)\n handleChange(\"rateOut\")\n }}\n defaultValue={requirementOut}\n name={\"rateOut\"}\n control={control}\n max={watch(\"rateIn\") || 10}\n errorText={showErrorMessage ? rateOutError : \"\"}\n value={rateOutput}\n />\n
\n \n }\n\n {typeManagement && typeManagement.label == \"Em faixa\" &&\n <>\n
\n Quantidade em faixas\n {\n setValue(\"range\", value)\n if (value != 0) {\n setRangeError(\"\")\n }\n else setRangeError(`Quantidade é necessário.`)\n handleChange(\"range\")\n }}\n defaultValue={requirementIn}\n name={\"range\"}\n control={control}\n max={999}\n errorText={showErrorMessage ? rangeError : \"\"}\n />\n
\n\n
\n Quantidade de execuções por dia\n {\n setValue(\"executionPerDay\", value)\n if (value != 0) {\n setExecutionPerDayError(\"\")\n }\n else setExecutionPerDayError(`Quantidade de execuções é necessário.`)\n handleChange(\"executionPerDay\")\n }}\n defaultValue={executionPerDay}\n name={\"executionPerDay\"}\n control={control}\n max={999}\n errorText={showErrorMessage ? executionPerDayError : \"\"}\n />\n
\n \n }\n\n {selectedTypeMonitor && (selectedTypeMonitor.label == \"Altura\" || selectedTypeMonitor.label == \"Nota\") &&\n
\n Frequência de monitoramento\n \n
\n }\n \n {typeManagement?.label != \"Em faixa\" && frequency?.label == \"Semanal\" ? \"Selecione os dias e a data da primeira tarefa\" : \"\"}\n {typeManagement?.label != \"Em faixa\" && frequency?.label == \"Bisemanal\" ? \"Selecione o dia e a data da primeira tarefa\" : \"\"}\n {typeManagement?.label == \"Em faixa\" || frequency?.label == \"Mensal\" || selectedTypeMonitor?.label == \"Dias\" ? \"Selecione a data da primeira tarefa\" : \"\"}\n \n\n {typeManagement?.label != \"Em faixa\" &&\n ((frequency?.label == \"Semanal\") || (frequency?.label == \"Bisemanal\")) &&\n
\n {diasSemana.map((dia, index) =>\n
{\n if (frequency?.label == \"Bisemanal\") {\n setSelectedDays(_ => {\n const newState = new Array(diasSemana.length).fill(false);\n newState[index] = true;\n return newState;\n });\n } else {\n toggleDay(index);\n }\n }}\n >\n {dia}\n
)\n }\n
\n }\n\n
\n {\n setStartDate(day)\n }}\n showOutsideDays\n fixedWeeks\n />\n\n {!startDate &&\n \n Selecione uma data inicial.\n \n }\n
\n : <>\n }\n
\n
\n\n \n \n \n \n {/* area */}\n \n {/* microareas */}\n {microAreaRoute &&\n microAreaRoute.map((micro: any) => (\n \n ))\n }\n \n \n
\n
\n \n\n\n
\n \n
\n \n )\n}","import \"./styles.css\";\nimport { ReactComponent as UsersIcon } from \"../../../assets/svg/icons/users.svg\";\nimport { ReactComponent as CalendarIcon } from \"../../../assets/svg/icons/calendar.svg\";\nimport { ReactComponent as PlusIcon } from \"../../../assets/svg/icons/plus.svg\";\nimport { ReactComponent as BackIcon } from \"../../../assets/svg/icons/back.svg\";\nimport { ReactComponent as DownloadIcon } from \"../../../assets/svg/icons/download.svg\";\nimport { ViewCards } from \"../../../components/ViewCards/Index\";\nimport { useEditOnboarding } from \"../../../hooks/useEditOnboarding\";\nimport { CreateBatch } from \"../../../components/EditOnboarding/CattleMap/CreateBatch/index\";\nimport { CreateFarm } from \"../../../components/EditOnboarding/PropertiesArea/Farm\";\nimport { ReactNode, useEffect, useState } from \"react\";\nimport { useFilter } from \"../../../hooks/useFilter\";\nimport { MicroArea } from \"../../../components/EditOnboarding/PropertiesArea/MicroArea\";\nimport { EditAreas } from \"./EditAreas/Index\";\nimport { Loading } from \"../../../components/Loading/Index\";\nimport { AnimalCategory } from \"../../Onboarding/Register/AnimalCategory/Index\";\nimport { CreateProfiles } from \"../../Onboarding/Register/CreateProfiles/Index\";\nimport { EditValuesProvider } from \"../../../contexts/EditValuesContext\";\nimport { SubSection } from \"./SubSection\";\nimport { CreateBirthGoals } from \"../../Onboarding/Register/CreateBirthGoals/Index\";\nimport { CreateDeathGoals } from \"../../Onboarding/Register/CreateDeathGoals/Index\";\nimport { ViewTables } from \"../../../components/ViewTables/Index\";\nimport { CreateProducts } from \"../../../components/Tasks/CreateProducts\";\nimport { ButtonOnlyTitle } from \"../../../components/Buttons/ButtonOnlyTitle/Index\";\nimport CreateEvaluator from \"../../../components/Tasks/CreateEvaluator/Modal/CreateEvaluator\";\nimport { useTaskCreation } from \"../../../hooks/useTaskCreation\";\nimport { ListEvaluators } from \"../../../components/Tasks/CreateEvaluator/ListEvaluators\";\nimport StartEvaluation from \"../../../components/Tasks/CreateEvaluator/Modal/StartEvaluation\";\nimport axios from '../../../services/axios'\nimport { useNavigate } from \"react-router-dom\";\nimport Constants from \"../../../constants/Index\";\nimport { IOptionsSideBarLinks } from \"../../../contexts/FilterContext\";\nimport CreatePastureManagement from \"../../../components/Tasks/PastureManagement\";\n\nexport function ShowData() {\n const {\n filterSelected,\n setFilterSelected,\n idSelected,\n optionForm,\n setOptionForm,\n } = useEditOnboarding();\n const navigate = useNavigate();\n const { systemManager, setSystemManager, sideBarOptionSelected, setModalCalendarFilter, setFocusLastDay } = useFilter();\n const { setModalCreateEvaluator, setModalStartEvaluator, modalStartEvaluator } = useTaskCreation();\n\n const [titlePage] = useState(new Map());\n const [loadingState, setLoadingState] = useState(false);\n\n const [customComponent, setCustomComponent] = useState(undefined);\n const [componentSearchable, setComponentSearchable] = useState(true);\n const [createComponent, setCreateComponent] = useState(true);\n\n const tables = ['PRODUCTS', 'PASTURE_EVALUATION', 'TASK_EVALUATION', 'FAILURES_SYNC']\n const forms = ['MANAGER_SYSTEM']\n\n useEffect(() => {\n if (systemManager == \"PRODUCTS\") setFilterSelected(\"create_products\");\n if (systemManager == \"PROPERTIES_AREAS\") setFilterSelected(\"farms\");\n if (systemManager == \"CREATE_BATCH\") setFilterSelected(\"batches\");\n if (systemManager == \"CATTLE_MAP\") setFilterSelected(\"animal_category\");\n if (systemManager == \"PASTURE_MANAGEMENT\") setFilterSelected(\"pasture_management\");\n if (!forms.includes(sideBarOptionSelected)) setOptionForm(undefined)\n }, [sideBarOptionSelected]);\n\n useEffect(() => {\n titlePage.set(\"TASK_EVALUATION\", \"Monitoramento de tarefas\");\n titlePage.set(\"CREATE_PRODUCTS\", \"Cadastro de produto\");\n titlePage.set(\"PRODUCTS\", \"Produtos\");\n titlePage.set(\"PASTURE_EVALUATION\", \"Avaliação de pastagem\");\n titlePage.set(\"MANAGER_EVALUATORS\", \"Gerenciar avaliadores\");\n titlePage.set(\"PROPERTIES_AREAS\", \"Propriedades e Áreas\");\n titlePage.set(\"PROFILES\", \"Perfis\");\n titlePage.set(\"CREATE_BATCH\", \"Criação de Lotes\");\n titlePage.set(\"CATTLE_MAP\", \"Categorias e Pesos\");\n titlePage.set(\"PASTURE_MANAGEMENT\", \"Manejo de Pasto\");\n titlePage.set(\"FAILURES_SYNC\", \"Falhas de sincronismo\");\n }, []);\n\n const [optionSelected, setOptionSelected] = useState(null);\n useEffect(() => {\n if (sideBarOptionSelected == \"MANAGER_SYSTEM\") {\n setOptionSelected(systemManager)\n } else if (sideBarOptionSelected == \"PASTURE_EVALUATION\" && systemManager) {\n setOptionSelected(systemManager)\n } else {\n setOptionSelected(sideBarOptionSelected)\n }\n }, [systemManager, sideBarOptionSelected]);\n\n useEffect(() => {\n switch (filterSelected) {\n case \"animal_category\":\n setCustomComponent(() => );\n setComponentSearchable(false);\n setCreateComponent(false);\n break;\n case 'goals_birth':\n setCustomComponent(() => );\n setComponentSearchable(false);\n setCreateComponent(false);\n break;\n case 'goals_death':\n setCustomComponent(() => );\n setComponentSearchable(false);\n setCreateComponent(false);\n break;\n case 'pasture_management':\n setComponentSearchable(false);\n break;\n default:\n if (sideBarOptionSelected !== 'PROFILES') {\n setCustomComponent(() => undefined);\n setComponentSearchable(true);\n setCreateComponent(true);\n }\n break;\n }\n }, [filterSelected]);\n\n const [haveEvaluator, setHaveEvaluator] = useState(false);\n\n useEffect(() => {\n axios.get(\"users/user/evaluator\")\n .then(({ data }) => {\n setHaveEvaluator(data.filter((el: any) => el.status == \"ACTIVE\").length > 0)\n })\n }, [, modalStartEvaluator, optionForm]);\n\n const optionsSideBarLinksValues: IOptionsSideBarLinks[] = [\n 'MAPA',\n 'PASTURE_EVALUATION',\n 'MANAGER_SYSTEM',\n 'PROFILES',\n 'LOGOUT'\n ];\n\n const optionsWithoutDefaultAddButton = [\n 'PASTURE_EVALUATION',\n 'TASK_EVALUATION',\n 'PROFILES',\n 'FAILURES_SYNC'\n ];\n\n return (\n <>\n
\n \n\n {/* Header */}\n <>\n
\n
\n {\n optionSelected && !optionsSideBarLinksValues.includes(optionSelected as IOptionsSideBarLinks) ?\n {\n if (optionSelected == 'MANAGER_EVALUATORS') {\n setOptionSelected(\"PASTURE_EVALUATION\")\n setOptionForm(undefined)\n setSystemManager(null)\n } else {\n optionForm ?\n setOptionForm(undefined)\n :\n setSystemManager(null)\n }\n }}\n >\n \n \n : <>\n }\n\n

\n {titlePage.get(optionSelected)}\n

\n
\n\n {\n !optionForm && createComponent && optionSelected &&\n <>\n {\n optionSelected === \"PASTURE_EVALUATION\" &&\n
\n
\n setModalStartEvaluator(true)}\n disabled={!haveEvaluator}\n />\n
\n {\n setModalCalendarFilter(true)\n setFocusLastDay(false)\n }}\n >\n \n \n {\n setOptionSelected(\"MANAGER_EVALUATORS\")\n setOptionForm(\"create_evaluator\")\n }}\n >\n \n \n {\n navigate(Constants.EVALUATION_REPORT)\n }}\n >\n \n \n
\n }\n\n {\n optionSelected == \"TASK_EVALUATION\" &&\n
\n setModalCalendarFilter(true)}\n >\n \n \n
\n }\n\n {\n !optionsWithoutDefaultAddButton.includes(optionSelected || \"\") &&\n setOptionForm(filterSelected)}\n >\n \n \n }\n \n }\n\n {\n optionSelected == 'MANAGER_EVALUATORS' && createComponent &&\n {\n setOptionForm(\"create_evaluator\")\n setSystemManager(\"MANAGER_EVALUATORS\")\n setModalCreateEvaluator(true)\n }}\n >\n \n \n }\n
\n \n\n
\n\n {/* Header */}\n\n {/* Edição */}\n
\n {optionForm == \"farms\" ? : <>}\n {optionForm == \"areas\" ?\n setOptionForm(undefined)}\n onSuccessCreate={() => setOptionForm(undefined)}\n onCancelButton={() => setOptionForm(undefined)}\n onDeleteEvent={() => setOptionForm(undefined)}\n setLoadingState={setLoadingState}\n editAreaFromId={idSelected}\n />\n : <>}\n {optionForm == \"micro-areas\" ? : <>}\n {optionForm == \"batches\" ? : <>}\n {optionForm == \"create_products\" ? : <>}\n {optionForm == \"create_evaluator\" ? : <>}\n {optionForm == \"pasture_management\" ? : <>}\n
\n {/* Edição */}\n\n {/* Cards */}\n {!optionForm ?\n optionSelected != \"PROFILES\" ? (\n tables.includes(optionSelected || \"\") ?\n \n :\n \n ) : (\n \n }]} defaultValue={0} />\n \n )\n : <>\n }\n {/* Cards */}\n
\n\n {/* Modals */}\n \n \n {/* Modals */}\n \n );\n}\n","import { ReactComponent as BackIcon } from \"../../../../assets/svg/icons/back.svg\";\nimport './style.css';\nimport { useFilter } from '../../../../hooks/useFilter';\nimport { ShowData } from '..';\n\nexport function SystemManager() {\n const { systemManager, sideBarOptionSelected, setSystemManager } = useFilter();\n\n return (\n sideBarOptionSelected == \"MANAGER_SYSTEM\" && systemManager === null\n ?\n
\n

Gerenciar sistema

\n
\n
\n
\n
\n

Mapa

\n \n \n
\n
\n

Animais

\n \n \n \n
\n
\n\n
\n
\n

Tipos e materiais

\n \n
\n
\n
\n
\n :\n \n );\n};\n\n","import { Outlet } from \"react-router-dom\";\nimport { SideBar } from \"../../../components/CattleMap/SideBarMenu/Index\";\nimport { EditOnboardingProvider } from \"../../../contexts/EditOnboardingContext\";\nimport { useFilter } from \"../../../hooks/useFilter\";\nimport { Index } from \"../Maps/Index/Index\";\nimport { ShowData } from \"../ShowData\";\nimport \"./styles.css\";\nimport { SystemManager } from \"../ShowData/SystemManager\";\n\nexport function PaddocksMapIndex() {\n const { sideBarOptionSelected } = useFilter();\n\n return (\n
\n \n
\n {sideBarOptionSelected == \"MAPA\" || sideBarOptionSelected == \"DASHBOARD\" ? (\n \n \n \n ) : (\n \n \n \n )}\n
\n
\n );\n}\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgCattle(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 32 18\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M30.9635 12.1651L31.1562 13.2936C31.1666 13.3517 31.1556 13.4116 31.1253 13.4622C31.0949 13.5128 31.0472 13.5507 30.991 13.5688L29.6424 13.9817H29.5638C29.5162 13.9859 29.4684 13.9763 29.4261 13.9541L28.7931 13.5413C27.75 12.8925 26.8658 12.0178 26.206 10.9817H22.569L21.0277 12.8532V18.0039H19.2938V12.578L18.1653 10.8991H8.69744L3.9635 13.3211V18.0039H2.23348V12.9633C2.23593 12.8601 2.2545 12.758 2.28853 12.6606L3.52706 8.80734L2.69744 5.91743C2.61118 5.59377 2.56496 5.26075 2.55982 4.92582V1.34784C2.22659 1.52678 1.94819 1.79282 1.7543 2.11758C1.56041 2.44234 1.45832 2.81364 1.45891 3.19188V7.73317C1.77297 8.32139 1.88903 8.9952 1.78987 9.6546C1.69071 10.314 1.38162 10.9239 0.908449 11.3937C0.6195 11.1046 0.390515 10.7613 0.234649 10.3834C0.0787818 10.0056 -0.000896175 9.60062 0.000191411 9.19188C-0.00554051 8.68324 0.117547 8.18142 0.35799 7.73317V3.16514C0.358198 2.32576 0.691734 1.52081 1.28527 0.927278C1.8788 0.333744 2.68374 0.000208465 3.52313 0H20.6699C21.252 0.00693801 21.8146 0.210645 22.2662 0.577981L27.299 4.87156L28.4275 5.20184C28.8953 5.11927 29.3357 5.06422 29.666 4.98165H29.721C29.765 4.98426 29.8076 4.9978 29.8451 5.02103C29.8825 5.04426 29.9136 5.07646 29.9354 5.11472C29.9573 5.15297 29.9693 5.19607 29.9703 5.24011C29.9713 5.28416 29.9613 5.32776 29.9412 5.36698L29.7761 5.6139L31.0421 5.99922C31.2623 6.05426 31.2898 6.35702 31.0972 6.43959L30.244 6.88074L30.8495 7.81573C30.9402 7.94377 30.9792 8.10132 30.9588 8.25689L30.9313 8.55964C30.762 9.75624 30.7716 10.9713 30.9596 12.1651H30.9635Z\",\n fill: \"#57CE71\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgCattle);\nexport default __webpack_public_path__ + \"static/media/cattle.3c102d72.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect } from 'react';\nimport { Bar } from 'react-chartjs-2';\nimport Chart from \"chart.js/auto\";\nimport ChartDataLabels from \"chartjs-plugin-datalabels\";\nimport \"../styles.css\"\n\ninterface Props {\n label: string;\n data: any;\n fullWidth?: boolean;\n}\n\nconst ChartBar: React.FC = ({ label, data, fullWidth }) => {\n Chart.register(ChartDataLabels);\n\n const chartData = {\n labels: data?Array.from(data, (el: any) => el?.label):[],\n datasets: [\n {\n label,\n data: data?data.map((el: any) => Number(el?.value.toFixed(2))):[],\n backgroundColor: [\n \"#57CE71\",\n \"#5AC8FA\",\n \"#FF9501\",\n \"#4A90E2\",\n \"#FF3B30\",\n \"#5AC8FA\",\n \"#FFCC00\",\n \"#5856D6\",\n \"#34C759\",\n \"#FF2D55\",\n \"#007AFF\",\n \"#FF2D55\",\n \"#007AFF\",\n \"#FFCC00\",\n \"#5856D6\",\n \"#34C759\",\n \"#2737FA\",\n \"#8A2BE2\",\n ],\n borderWidth: 1,\n },\n ],\n\n }\n\n Chart.defaults.font.size = 10;\n if(!data) return <>\n\n return (\n
\n {label}\n
\n {data.every((el: any) => el?.value === 0) ?\n
\n Sem dados\n
\n :\n <>\n \n \n }\n
\n
\n )\n};\n\nexport default ChartBar;","import React, { useEffect } from 'react';\nimport { Pie } from 'react-chartjs-2';\nimport Chart from \"chart.js/auto\";\nimport ChartDataLabels from \"chartjs-plugin-datalabels\";\nimport { generateuuid } from '../../../utils/uuid/generate';\n\ninterface Props {\n label: string;\n data: any;\n fullWidth?: boolean;\n}\n\nconst ChartPie: React.FC = ({ label, data, fullWidth }) => {\n Chart.register(ChartDataLabels);\n\n const idRandom = generateuuid()\n\n const chartData = {\n labels: data?Array.from(data.filter((el: any) => el?.value != 0), (el: any) => el?.label):[\"\"],\n datasets: [\n {\n label,\n data: data?data.filter((el: any) => el?.value != 0).map((el: any) => (el?.value * 100).toFixed(0)):[\"\"],\n backgroundColor: [\n \"#57CE71\",\n \"#5AC8FA\",\n \"#FF9501\",\n \"#4A90E2\",\n \"#FF3B30\",\n \"#5AC8FA\",\n \"#FFCC00\",\n \"#5856D6\",\n \"#34C759\",\n \"#FF2D55\",\n \"#007AFF\",\n \"#FF2D55\",\n \"#007AFF\",\n \"#FFCC00\",\n \"#5856D6\",\n \"#34C759\",\n \"#2737FA\",\n \"#8A2BE2\",\n ],\n borderWidth: 2,\n borderColor: \"white\",\n },\n ],\n };\n\n useEffect(() => {\n const element = document.getElementById(`js-legend${idRandom}`)\n if (fullWidth && element) {\n element.innerHTML += chartData?.labels.map((label, i) => {\n return `\n
\n
\n
${label}
\n
\n `\n }).join('')\n }\n }, []);\n if(!data) return <>\n\n return (\n
\n {label}\n
\n {data.every((el: any) => el?.value === 0) ?\n
\n Sem dados\n
\n :\n <>\n {\n return value + '%';\n },\n font: {\n size: 10,\n weight: \"bold\"\n },\n borderRadius: 3,\n },\n },\n layout: {\n padding: {\n top: 30,\n }\n },\n }}\n height={285}\n width={285}\n redraw={true}\n />\n
\n \n }\n
\n\n
\n )\n};\n\nexport default ChartPie;","import React, { useEffect } from 'react';\nimport { Chart as ElementChart } from 'react-chartjs-2';\nimport Chart, { ChartData } from \"chart.js/auto\";\nimport ChartDataLabels from \"chartjs-plugin-datalabels\";\nimport \"../styles.css\"\n\ninterface Props {\n label: string;\n labelOptions: string[];\n optionsColumn: LabelElement[];\n optionsLine: LabelElement[];\n fullWidth?: boolean;\n}\n\ninterface LabelElement {\n label: string[] | string;\n value: number;\n}\n\nconst ChartBarLine: React.FC = ({ label, labelOptions, optionsColumn, optionsLine, fullWidth }) => {\n Chart.register(ChartDataLabels);\n\n const charData: ChartData = {\n labels: optionsColumn ? optionsColumn.map((el) => el.label) : [],\n datasets: [\n {\n type: 'bar',\n label: labelOptions[0],\n backgroundColor: \"#57CE71\",\n data: optionsColumn ? optionsColumn.map((el) => Number((typeof (el.value) == \"number\" ? el.value : 0).toFixed(2))) : [],\n borderWidth: 1,\n yAxisID: 'y1',\n order: 1\n },\n {\n type: 'line',\n label: labelOptions[1],\n backgroundColor: \"#FF9501\",\n borderColor: \"#FF9501\",\n data: optionsLine ? optionsLine.map((el) => Number((typeof (el.value) == \"number\" ? el.value : 0).toFixed(2))) : [],\n borderWidth: 2,\n yAxisID: 'y2',\n order: 0\n }\n ],\n };\n\n\n return (\n
\n {label}\n
\n {optionsColumn && optionsColumn.every((el: any) => el?.value === 0) && optionsLine.every((el: any) => el?.value === 0) ?\n
\n Sem dados\n
\n :\n <>\n \n \n }\n
\n
\n )\n};\n\nexport default ChartBarLine;","import React, { useEffect } from 'react';\nimport { Chart as ElementChart } from 'react-chartjs-2';\nimport Chart, { ChartData } from \"chart.js/auto\";\nimport ChartDataLabels from \"chartjs-plugin-datalabels\";\nimport \"../styles.css\"\n\ninterface Props {\n label: string;\n labelOptions: string[];\n optionsColumn1: LabelElement[];\n optionsColumn2: LabelElement[];\n fullWidth?: boolean;\n}\n\ninterface LabelElement {\n label: string[] | string;\n value: number;\n}\n\nconst ChartBarDouble: React.FC = ({ label, labelOptions, optionsColumn1, optionsColumn2, fullWidth }) => {\n Chart.register(ChartDataLabels);\n\n const charData: ChartData = {\n labels: optionsColumn1?.map((el) => el.label),\n datasets: [\n {\n type: 'bar',\n label: labelOptions[0],\n backgroundColor: \"#57CE71\",\n data: optionsColumn1?.map((el) => Number(el.value.toFixed(2))),\n borderWidth: 1,\n },\n {\n type: 'bar',\n label: labelOptions[1],\n backgroundColor: \"#FF9501\",\n data: optionsColumn2?.map((el) => Number(el.value.toFixed(2))),\n borderWidth: 1,\n }\n ],\n };\n\n\n return (\n
\n {label}\n
\n {optionsColumn1?.every((el: any) => el?.value === 0) && optionsColumn2?.every((el: any) => el?.value === 0)?\n
\n Sem dados\n
\n :\n <>\n \n \n }\n
\n
\n )\n};\n\nexport default ChartBarDouble;","export const splitArray = (array: any[], size: number) => {\n const result: any[] = [];\n for (let i = 0; i < array.length; i += size) {\n result.push(array.slice(i, i + size));\n }\n return result;\n}\n","import { CSSProperties, useCallback, useEffect, useRef, useState } from \"react\";\nimport { ReactComponent as LogoPastejoIcon } from \"../../../assets/svg/logo/logoPastejo.svg\";\nimport \"../styles.css\";\nimport ChartBar from \"../../Graph/Bar\";\nimport ChartPie from \"../../Graph/Pie\";\nimport ChartBarLine from \"../../Graph/BarLine\";\nimport ChartBarDouble from \"../../Graph/BarDouble\";\nimport { GoogleMap, Polygon, Polyline } from \"@react-google-maps/api\";\nimport { ReactComponent as FarmIcon } from \"../../../assets/svg/icons/farmIcon.svg\";\nimport { ReactComponent as LocateIcon } from \"../../../assets/svg/icons/point.svg\";\nimport { useGoogleMaps } from \"../../../hooks/useGoogleMaps\";\nimport Constants from \"../../../constants/Index\";\nimport { IOptionProps } from \"../../../@types/reactSelect/IOption\";\nimport { splitArray } from \"../../../utils/arrays/split\";\n\ninterface PDFEvaluationProps {\n farm: IOptionProps;\n areas: IOptionProps[];\n dataReport: IReportGlobalPastureEvaluator;\n}\n\nexport const PDFEvaluationGlobal = ({\n farm,\n areas,\n dataReport,\n}: PDFEvaluationProps) => {\n const [mapPages, setMapPages] = useState(new Map());\n const [summaryPages, setSummaryPages] = useState(0);\n const pageRef = useRef(null);\n const [pageHeight, setPageHeight] = useState(0);\n\n useEffect(() => {\n if (pageRef.current) {\n setPageHeight(1440);\n }\n }, [pageRef]);\n\n useEffect(() => {\n setSummaryPages(splitArray(Array.from(mapPages.keys()), 30).length)\n }, [mapPages]);\n\n const FooterPDF = ({\n pageSugest,\n light = false,\n }: any) => {\n const [page, setPage] = useState(1);\n const footerRef = useRef(null);\n\n useEffect(() => {\n if (footerRef.current && !pageSugest) {\n const componentTop = (footerRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setPage(currentPage);\n } else {\n setPage(pageSugest);\n }\n }, [footerRef, pageHeight]);\n\n return (\n
\n
\n \n
\n \n {pageSugest ? pageSugest : page}\n \n
\n );\n }\n\n const MicroAreaRelatorioPDFForragem1 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`2 Forragem`, currentPage - 1)))\n setMapPages(new Map(mapPages.set(`2.1 Forragem primária`, currentPage - 1)))\n }\n }, [, pageHeight]);\n\n return (\n <>\n
\n

2

\n

Forragem

\n
\n\n
\n

2.1

\n

Forragem primária

\n
\n\n
\n \n \n
\n\n
\n \n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFForragem2 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`2.2 Forragem secundária`, currentPage - 1)))\n }\n }, [pageHeight]);\n\n return (\n <>\n
\n

2.2

\n

Forragem secundária

\n
\n\n
\n \n \n
\n\n
\n \n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFForragem3 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`2.3 Forragem terciaria`, currentPage - 1)))\n }\n }, [pageHeight]);\n\n return (\n <>\n
\n

2.3

\n

Forragem terciaria

\n
\n\n
\n \n \n
\n\n
\n \n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg2 = () => {\n return (\n <>\n
\n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg3 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`3 Gênero`, currentPage - 1)))\n setMapPages(new Map(mapPages.set(`4 Espécie`, currentPage - 1)))\n }\n }, [, pageHeight]);\n\n return (\n <>\n
\n

3

\n

Gênero

\n
\n\n
\n \n \n
\n\n
\n

4

\n

Espécie

\n
\n\n
\n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg4 = () => {\n return (\n <>\n
\n \n
\n\n
\n \n
\n \n )\n }\n\n const MicroAreaRelatorioPDFpg5 = () => {\n return (\n <>\n
\n \n \n
\n
\n \n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg51 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`5 Invasoras`, currentPage - 1)))\n }\n }, [, pageHeight]);\n\n return (\n <>\n
\n \n
\n
\n
\n

5

\n

Invasoras

\n
\n\n
\n \n \n
\n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg6 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`6 Folha larga`, currentPage - 1)))\n }\n }, [, pageHeight]);\n\n return (\n <>\n
\n \n\n \n
\n\n
\n
\n

6

\n

Folha larga

\n
\n\n
\n \n \n
\n
\n \n );\n }\n\n const MicroAreaRelatorioPDFFolhaEstreita1 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`7 Folha estreita`, currentPage - 1)))\n }\n }, [, pageHeight]);\n\n return (\n <>\n
\n index % 2 == 0)}\n optionsLine={dataReport?.large_leaf_chart?.covering_percentage_by_useful_area\n .filter((_: any, index: number) => index % 2 == 1)}\n fullWidth\n />\n
\n\n
\n
\n

7

\n

Folha estreita

\n
\n\n
\n \n \n
\n
\n \n );\n }\n\n const MicroAreaRelatorioPDFFolhaEstreita2 = () => {\n\n return (\n <>\n
\n
\n \n
\n
\n \n );\n }\n\n\n const MicroAreaRelatorioPDFPragas = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`8 Pragas ou doenças`, currentPage - 1)))\n }\n }, [pageHeight]);\n\n return (\n <>\n
\n

8

\n

Pragas ou doenças

\n
\n\n
\n \n \n
\n\n
\n \n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg9 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`9 Aguada`, currentPage - 1)))\n }\n }, [, pageHeight]);\n\n return (\n <>\n
\n

9

\n

Aguada

\n
\n\n
\n \n \n
\n\n
\n \n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg10 = () => {\n return (\n <>\n
\n \n \n
\n\n
\n \n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg11 = () => {\n return (\n <>\n
\n \n \n
\n\n
\n \n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg12 = () => {\n return (\n <>\n
\n index % 2 == 0)}\n optionsColumn2={dataReport?.waterhole_chart?.dry_season_offer_by_watering_type\n .filter((_, index) => index % 2 == 1)}\n fullWidth\n />\n
\n\n
\n
\n
\n
Área de acesso bebedouro artificial (metros)
\n
\n
\n {dataReport?.waterhole_chart?.total_area_access}\n
\n
\n\n\n
\n \n \n
\n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg13 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`10 Depósito de suplementos`, currentPage - 1)))\n setMapPages(new Map(mapPages.set(`11 Cochos`, currentPage - 1)))\n }\n }, [, pageHeight]);\n\n return (\n <>\n
\n

10

\n

Depósito de suplementos

\n
\n\n
\n \n \n
\n\n
\n
\n
Capacidade média dos depósitos de suplemento (kg)
\n
\n
\n {dataReport?.supplement_chart?.total_capacity || []}\n
\n
\n\n
\n

11

\n

Cochos

\n
\n\n
\n \n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg14 = () => {\n return (\n <>\n
\n \n \n
\n\n
\n \n \n
\n\n Capacidade total de suplementação da fazenda\n
\n
\n
\n
Tipos de cocho
\n
Comprimento (metros)
\n
Largura (metros)
\n
Capacidade (kg)
\n
\n\n {dataReport?.trough_chart?.farm_total_capacity.map((el, index) => {\n return (\n
\n
\n
{el.type}
\n
{el.length}
\n
{el.width}
\n
{el.capacity}
\n
\n
\n )\n })}\n
\n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg15 = () => {\n return (\n <>\n
\n \n \n
\n
\n index % 2 == 0)}\n optionsColumn2={dataReport?.trough_chart?.repair_necessity_by_type\n .filter((_, index) => index % 2 == 1)}\n fullWidth\n />\n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg16 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`12 Cercas`, currentPage - 1)))\n }\n }, [, pageHeight]);\n\n return (\n <>\n
\n \n\n \n
\n\n
\n
\n

12

\n

Cercas

\n
\n\n
\n \n \n
\n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg17 = () => {\n return (\n <>\n
\n \n \n
\n\n
\n
\n
Média de quantidade de fios das cercas
\n
\n
\n {Number(dataReport?.fence_chart?.wire_median_quantity).toFixed(1)} fios\n
\n
\n\n
\n \n \n
\n \n );\n }\n\n const MicroAreaRelatorioPDFpg18 = () => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`13 Relevo`, currentPage - 1)))\n setMapPages(new Map(mapPages.set(`14 Solo`, currentPage - 1)))\n }\n }, [, pageHeight]);\n\n return (\n <>\n
\n
\n

13

\n

Relevo

\n
\n
\n \n\n \n
\n
\n\n
\n
\n

14

\n

Solo

\n
\n
\n \n\n \n
\n
\n \n );\n }\n\n const MicroAreaRelatorioMapaPDF = () => {\n const mapRefPosition = useRef(null);\n const [mapref, setMap] = useState();\n const [centerCoords, setCenterCoords] = useState([]);\n const [colorsArea, setColorsArea] = useState(new Map());\n\n const mapStyles = {\n width: \"100%\",\n height: \"1440px\",\n } as CSSProperties;\n\n function getRandomColor() {\n const colors: Array = Object.values(Constants.GRAZINGMAP_COLORS);\n return colors[Math.floor(Math.random() * colors.length)];\n }\n\n const {\n getBounds\n } = useGoogleMaps();\n\n const onLoad = useCallback(function callback(map: any) {\n setMap(map);\n }, []);\n\n useEffect(() => {\n setMapPages(new Map(mapPages.set(`${1} Mapa`, summaryPages + 1)))\n areas.map((area: any) => {\n setColorsArea(new Map(colorsArea.set(Number(area.value), getRandomColor())))\n })\n }, []);\n\n useEffect(() => {\n if (centerCoords !== undefined && mapref !== undefined) {\n mapref.fitBounds(getBounds(centerCoords))\n }\n }, [centerCoords, mapref])\n\n useEffect(() => {\n setCenterCoords(farm.info?.map_coords)\n }, [farm]);\n\n return (\n
\n
\n
\n
\n

MAPA

\n
\n \n

{farm.info?.initials}

\n \n
\n
\n

{farm.info?.name}

\n {dataReport?.micro_areas_map_coords_details?.length} pasto(s) avaliado(s)\n ({dataReport?.micro_areas_map_coords_details?.reduce((acc, el) => acc + el.micro_area_acreage, 0).toFixed(2)} ha)\n \n
\n
\n
\n\n \n
\n\n {\n Promise.all(\n Array.from(document.images).filter(img => !img.complete).map(img => new Promise(resolve => { img.onload = img.onerror = resolve; })))\n .finally(() => {\n window.print()\n });\n }}\n onLoad={onLoad}\n mapContainerStyle={mapStyles}\n options={{\n streetViewControl: false,\n scaleControl: true,\n fullscreenControl: false,\n styles: [\n {\n featureType: \"poi.business\",\n elementType: \"labels\",\n stylers: [\n {\n visibility: \"off\",\n },\n ],\n },\n ],\n gestureHandling: \"greedy\",\n disableDoubleClickZoom: true,\n minZoom: 5,\n mapTypeControl: true,\n mapTypeId: google.maps.MapTypeId.SATELLITE,\n mapTypeControlOptions: {\n style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,\n position: google.maps.ControlPosition.BOTTOM_CENTER,\n mapTypeIds: [\n google.maps.MapTypeId.ROADMAP,\n google.maps.MapTypeId.SATELLITE,\n google.maps.MapTypeId.HYBRID,\n ],\n },\n clickableIcons: false,\n draggableCursor: \"default\",\n draggable: false,\n zoomControl: false\n }}\n >\n \n {dataReport?.micro_areas_map_coords_details && dataReport?.micro_areas_map_coords_details.length > 0\n ? dataReport?.micro_areas_map_coords_details\n .map((polygonMicroArea) =>\n \n )\n : <>}\n \n
\n )\n }\n\n return (\n
\n
\n
\n
\n

{farm.label}

\n

Relatório global

\n
\n
\n \n
\n
\n
\n\n {splitArray(Array.from(mapPages.keys()), 30).map((pg: any) => (\n
\n

Sumário

\n
\n {pg.map((element: any) => (\n
\n {element}\n {\".\".repeat(315)}\n {(mapPages.get(element) || 0) + summaryPages + 1}\n
\n ))}\n
\n
\n ))}\n\n
\n {MicroAreaRelatorioMapaPDF()}\n
\n\n
\n
\n {MicroAreaRelatorioPDFForragem1()}\n
\n \n
\n\n {dataReport?.fodder_chart?.secondary_fodder_details &&\n
\n
\n {MicroAreaRelatorioPDFForragem2()}\n
\n \n
\n }\n\n {dataReport?.fodder_chart?.tertiary_fodder_details &&\n
\n
\n {MicroAreaRelatorioPDFForragem3()}\n
\n \n
\n }\n\n
\n
\n {MicroAreaRelatorioPDFpg2()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg3()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg4()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg5()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg51()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg6()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFFolhaEstreita1()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFFolhaEstreita2()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFPragas()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg9()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg10()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg11()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg12()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg13()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg14()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg15()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg16()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg17()}\n
\n \n
\n\n
\n
\n {MicroAreaRelatorioPDFpg18()}\n
\n \n
\n
\n );\n};","import \"../styles.css\";\nimport { CSSProperties, useCallback, useEffect, useRef, useState } from \"react\";\nimport { ReactComponent as LogoPastejoIcon } from \"../../../assets/svg/logo/logoPastejo.svg\";\nimport { splitArray } from \"../../../utils/arrays/split\";\nimport { StaticMapRender } from \"../../EditOnboarding/components/StaticMapRender/Index\";\nimport Constants from \"../../../constants/Index\";\nimport { GoogleMap, Polygon, Polyline } from \"@react-google-maps/api\";\nimport { useGoogleMaps } from \"../../../hooks/useGoogleMaps\";\nimport { ReactComponent as AreaIcon } from \"../../../assets/svg/icons/areaIcon.svg\";\nimport { ReactComponent as LocateIcon } from \"../../../assets/svg/icons/point.svg\";\nimport { ICoord } from \"../../../@types/GoogleMaps/ICoord\";\nimport { capitalize } from \"../../../utils/strings/capitalize\";\nimport { IOptionProps } from \"../../../@types/reactSelect/IOption\";\nimport { format } from \"date-fns\";\n\ninterface PDFEvaluationProps {\n farm: IOptionProps;\n areas: IOptionProps[];\n dataReport: IReportMicroAreaPastureEvaluator;\n}\n\ninterface AvaliacaoPDFProps {\n items?: {\n item: string;\n result: string | undefined;\n }[]\n}\n\nexport const PDFEvaluation = ({\n farm,\n areas,\n dataReport\n}: PDFEvaluationProps) => {\n const [mapPages, setMapPages] = useState(new Map());\n const [summaryPages, setSummaryPages] = useState(0);\n const pageRef = useRef(null);\n const [pageHeight, setPageHeight] = useState(0);\n\n useEffect(() => {\n if (pageRef.current) {\n setPageHeight(1440);\n }\n }, [pageRef]);\n\n useEffect(() => {\n setSummaryPages(splitArray(Array.from(mapPages.keys()), 31).length)\n }, [mapPages]);\n\n var mapNumbers = new Map();\n var mapText = new Map();\n\n let images: any[][] = []\n let result: any[][] = []\n\n mapText.set(\"ANUAL_MOLE\", \"Anual mole\")\n mapText.set(\"FOLHA_LARGA\", \"Folha larga\")\n mapText.set(\"FOLHA_ESTREITA\", \"Folha estreita\")\n mapNumbers.set(1, \"primária\")\n mapNumbers.set(2, \"secundária\")\n mapNumbers.set(3, \"terciária\")\n\n const [imagesEvaluation, setImagesEvaluation] = useState([]);\n\n useEffect(() => {\n\n const report = dataReport as IReportMicroAreaPastureEvaluator\n report?.micro_areas_task_info?.forEach((microArea: IMicroAreasTaskInfo) => {\n const el = [];\n\n microArea.pasture_evaluation_fodder_content?.fodder_content.map((fodder, index) => {\n el.push({\n label: `Presença de forragem ${mapNumbers.get(index + 1)}`,\n url: fodder.photo_details?.url\n })\n })\n\n microArea.pasture_evaluation_invasive_content?.invasive_content.map((invasive, index) => {\n if (invasive.photo_details?.url && microArea.pasture_evaluation_invasive_content)\n el.push({\n label: `Presença de invasoras ${microArea.pasture_evaluation_invasive_content.invasive_content?.length > 1 ?\n index + 1 : \"\"}`,\n url: invasive.photo_details?.url\n })\n })\n\n microArea.pasture_evaluation_plague_content?.plague_content.map((plague, index) => {\n if (plague.photo_details?.url && microArea.pasture_evaluation_plague_content)\n el.push({\n label: `Presença de pragas ou doenças ${microArea.pasture_evaluation_plague_content.plague_content?.length > 1 ?\n index + 1 : \"\"}`,\n url: plague.photo_details?.url\n })\n })\n\n if (microArea.pasture_evaluation_waterhole_content?.photo_details?.url)\n el.push({\n label: `Presença de aguada`,\n url: microArea.pasture_evaluation_waterhole_content?.photo_details?.url\n })\n\n if (microArea?.pasture_evaluation_suplement_content?.photo_details?.url)\n el.push({\n label: `Presença de depósito de suplemento`,\n url: microArea?.pasture_evaluation_suplement_content?.photo_details?.url\n })\n\n if (microArea?.pasture_evaluation_trough_content?.photo_details?.url)\n el.push({\n label: `Presença de cocho`,\n url: microArea?.pasture_evaluation_trough_content?.photo_details?.url\n })\n\n if (microArea?.pasture_evaluation_fence_content?.photo_details?.url)\n el.push({\n label: `Tipo de cerca`,\n url: microArea?.pasture_evaluation_fence_content?.photo_details?.url\n })\n\n if (microArea?.pasture_evaluation_terrain_content?.photo_details?.url)\n el.push({\n label: `Tipo de relevo`,\n url: microArea?.pasture_evaluation_terrain_content?.photo_details?.url\n })\n\n for (let i = 0; i < el.length; i += 3) {\n images.push(el.slice(i, i + 3));\n }\n\n result.push(images);\n\n images = []\n })\n\n setImagesEvaluation(result)\n }, []);\n\n const FooterPDF = ({\n pageSugest,\n light = false,\n }: any) => {\n const [page, setPage] = useState(1);\n const footerRef = useRef(null);\n\n useEffect(() => {\n if (footerRef.current && !pageSugest) {\n const componentTop = (footerRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setPage(currentPage);\n } else {\n setPage(pageSugest);\n }\n }, [footerRef, pageHeight]);\n\n return (\n
\n
\n \n
\n \n {pageSugest ? pageSugest : page}\n \n
\n );\n }\n\n const AvaliacaoPDF = ({\n items\n }: AvaliacaoPDFProps) => {\n return (\n
\n
\n
Itens avaliados
\n
Resultado
\n
\n {items && items.map((item, index) => (\n
\n
\n
{item.item}
\n
{capitalize((item.result || \"-\").toLocaleLowerCase())}
\n
\n
\n ))}\n
\n );\n }\n\n const MicroAreaRelatorioPDFpg1 = (microArea: IMicroAreasTaskInfo, index: number, mapCoord: ICoord[]) => {\n const resultadosRef = useRef(null);\n\n useEffect(() => {\n if (resultadosRef.current) {\n const componentTop = (resultadosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`${index} ${microArea.micro_area_details.micro_area_initials}`, currentPage + 1)))\n setMapPages(new Map(mapPages.set(`${index}.1 Resultados da avaliação de pastagem por pasto`, currentPage + 1)))\n }\n }, [, pageHeight]);\n\n return (\n
\n
\n

{index}

\n

{microArea.micro_area_details.micro_area_initials}

\n
\n\n
\n

{index}.1

\n

Resultados da avaliação de pastagem por pasto

\n
\n\n\n
\n {/* Tabela com detalhes da avaliação */}\n
\n
\n
Fazenda
\n
Retiro
\n
\n
\n
\n
{microArea.micro_area_details.farm}
\n
{microArea.micro_area_details.area}
\n
\n
\n\n
\n
Pasto
\n
Área útil do pasto
\n
\n
\n
\n
{microArea.micro_area_details.micro_area_initials}
\n
{microArea.micro_area_details.useful_area} ha
\n
\n
\n\n
\n
Avaliador
\n
Dia da avaliação
\n
\n
\n
\n
{microArea.micro_area_details.evaluator_name}
\n
{microArea?.micro_area_details?.evaluate_date ? format(new Date(microArea?.micro_area_details?.evaluate_date || \"\"), `dd/MM/yyyy - hh:mm`) : \"-\"}
\n
\n
\n
\n\n
\n \n
\n
\n\n
\n

{index}.1.1

\n

Forrageira

\n
\n {/* Tabela com detalhes da Forrageira */}\n \n
\n );\n }\n\n const MicroAreaRelatorioPDFpg2 = (microArea: IMicroAreasTaskInfo, index: number) => {\n return (\n
\n {/* Tabela com detalhes da Invasoras */}\n
\n

{index}.1.2

\n

Invasoras

\n
\n \n\n\n
\n

{index}.1.3

\n

Pragas ou doenças

\n
\n {/* Tabela com detalhes da Pragas ou doenças */}\n el.plague_name).join(\", \")\n },\n ] : [])\n ]} />\n\n
\n

{index}.1.4

\n

Aguada

\n
\n {/* Tabela com detalhes da Aguada */}\n \n\n
\n

{index}.1.5

\n

Suplemento

\n
\n {/* Tabela com detalhes da Suplemento */}\n \n
\n )\n }\n\n const MicroAreaRelatorioPDFpg3 = (microArea: IMicroAreasTaskInfo, index: number) => {\n const fotosRef = useRef(null);\n\n useEffect(() => {\n if (fotosRef.current) {\n const componentTop = (fotosRef.current as HTMLElement)?.offsetTop;\n const currentPage = Math.floor(componentTop / pageHeight);\n setMapPages(new Map(mapPages.set(`${index}.2 Fotos`, currentPage + 2)))\n }\n }, [, pageHeight]);\n\n return (\n
\n
\n

{index}.1.6

\n

Cocho

\n
\n {/* Tabela com detalhes da Cocho */}\n \n\n
\n

{index}.1.7

\n

Cerca

\n
\n \n\n
\n

{index}.1.8

\n

Relevo

\n
\n {/* Tabela com detalhes da Relevo e solo */}\n \n
\n );\n }\n\n const MicroAreaRelatorioPDFPhoto = (index: number, arrayIndex: number) => {\n return (\n
\n {arrayIndex == 0 && (\n
\n

{index + 1}.2

\n

Fotos

\n
\n )}\n\n {imagesEvaluation[index] && imagesEvaluation[index].length >= arrayIndex &&\n imagesEvaluation[index][arrayIndex] &&\n imagesEvaluation[index][arrayIndex].map((el: any, indexImage: number) =>\n <>\n
\n

{index + 1}.2.{arrayIndex * 3 + indexImage + 1}

\n

{el.label}

\n
\n
\n {el.label}\n\n
\n \n )\n }\n
\n );\n }\n\n const MicroAreaRelatorioMapaPDF = () => {\n const mapRefPosition = useRef(null);\n const [mapref, setMap] = useState();\n const [centerCoords, setCenterCoords] = useState([]);\n const [colorsArea, setColorsArea] = useState(new Map());\n\n const mapStyles = {\n width: \"100%\",\n height: \"100%\",\n } as CSSProperties;\n\n function getRandomColor() {\n const colors: Array = Object.values(Constants.GRAZINGMAP_COLORS);\n return colors[Math.floor(Math.random() * colors.length)];\n }\n\n const {\n getBounds\n } = useGoogleMaps();\n\n const onLoad = useCallback(function callback(map: any) {\n setMap(map);\n }, []);\n\n useEffect(() => {\n setMapPages(new Map(mapPages.set(`${1} Mapa`, summaryPages + 2)))\n\n areas.map((area: any) => {\n setColorsArea(new Map(colorsArea.set(Number(area.value), getRandomColor())))\n })\n }, [summaryPages]);\n\n useEffect(() => {\n if (centerCoords !== undefined && mapref !== undefined) {\n mapref.fitBounds(getBounds(centerCoords))\n }\n }, [centerCoords, mapref])\n\n useEffect(() => {\n setCenterCoords(farm.info?.map_coords)\n }, [farm]);\n\n if (areas.length == 0)\n return;\n\n return (\n
\n
\n
\n
\n

MAPA

\n
\n \n

{farm.info?.initials}

\n \n
\n
\n {areas.length > 0 &&

{areas.length > 1 ? `${areas.length} Retiros` : areas[0]?.label}

}\n {dataReport?.micro_areas_task_info?.length} pasto(s) avaliado(s)\n ({dataReport?.micro_areas_task_info?.reduce((acc, el) => acc + el.micro_area_details.useful_area, 0).toFixed(2)} ha)\n \n
\n
\n
\n\n \n
\n {dataReport?.micro_areas_task_info &&\n {\n Promise.all(\n Array.from(document.images).filter(img => !img.complete).map(img => new Promise(resolve => { img.onload = img.onerror = resolve; })))\n .finally(() => {\n window.print()\n });\n }}\n onLoad={onLoad}\n mapContainerStyle={mapStyles}\n options={{\n streetViewControl: false,\n scaleControl: true,\n fullscreenControl: false,\n styles: [\n {\n featureType: \"poi.business\",\n elementType: \"labels\",\n stylers: [\n {\n visibility: \"off\",\n },\n ],\n },\n ],\n gestureHandling: \"greedy\",\n disableDoubleClickZoom: true,\n minZoom: 5,\n mapTypeControl: true,\n mapTypeId: google.maps.MapTypeId.SATELLITE,\n mapTypeControlOptions: {\n style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,\n position: google.maps.ControlPosition.BOTTOM_CENTER,\n mapTypeIds: [\n google.maps.MapTypeId.ROADMAP,\n google.maps.MapTypeId.SATELLITE,\n google.maps.MapTypeId.HYBRID,\n ],\n },\n clickableIcons: false,\n draggableCursor: \"default\",\n draggable: false,\n zoomControl: false\n }}\n >\n \n\n {dataReport?.micro_areas_task_info && dataReport?.micro_areas_task_info.length > 0\n ? dataReport?.micro_areas_task_info\n .map((polygonMicroArea) =>\n el.label == polygonMicroArea.micro_area_details.area)[0]?.value),\n }}\n path={polygonMicroArea?.micro_area_details?.micro_area_map_coords || []}\n draggable={false}\n editable={false}\n />\n )\n : <>}\n }\n
\n )\n }\n\n const [mapref, setMap] = useState();\n const [centerCoords, setCenterCoords] = useState([]);\n const {\n getBounds\n } = useGoogleMaps();\n\n useEffect(() => {\n if (centerCoords !== undefined && mapref !== undefined) {\n mapref.fitBounds(getBounds(centerCoords))\n }\n }, [centerCoords, mapref])\n\n useEffect(() => {\n setCenterCoords(farm.info?.map_coords)\n }, [farm]);\n\n return (\n
\n
\n
\n
\n

{farm?.label}

\n

{areas && areas?.length > 0 && areas[0] ? `${areas?.length} Retiros` : areas[0]?.label}

\n

Relatório por pasto

\n
\n
\n \n
\n
\n
\n\n {splitArray(Array.from(mapPages.keys()), 31).map((pg: any) => (\n
\n

Sumário

\n
\n {pg.map((element: any) => (\n
\n {element}\n {\".\".repeat(315)}\n {(mapPages.get(element) || 0)}\n
\n ))}\n
\n
\n ))}\n\n
\n {MicroAreaRelatorioMapaPDF()}\n
\n\n {dataReport.micro_areas_task_info && dataReport.micro_areas_task_info.length > 0 ?\n dataReport?.micro_areas_task_info?.map((microArea, index) => (\n <>\n
\n
\n {MicroAreaRelatorioPDFpg1(microArea, index + 1, microArea.micro_area_details.micro_area_map_coords)}\n
\n \n
\n
\n
\n {MicroAreaRelatorioPDFpg2(microArea, index + 1)}\n
\n \n
\n
\n
\n {MicroAreaRelatorioPDFpg3(microArea, index + 1)}\n
\n \n
\n {imagesEvaluation[index] && imagesEvaluation[index].map((el, indexImage) => (\n
\n
\n {MicroAreaRelatorioPDFPhoto(index, indexImage)}\n
\n \n
\n ))}\n\n\n {/* {imagesEvaluation[index] && imagesEvaluation[index][1] &&\n
\n
\n {MicroAreaRelatorioPDFPhoto(index, 0, 1)}\n
\n \n
\n }\n {imagesEvaluation[index] && imagesEvaluation[index][2] &&\n
\n
\n {MicroAreaRelatorioPDFPhoto(index, 1, 4)}\n
\n \n
\n }\n {imagesEvaluation[index] && imagesEvaluation[index][3] &&\n
\n
\n {MicroAreaRelatorioPDFPhoto(index, 2, 7)}\n
\n \n
\n }\n {imagesEvaluation[index] && imagesEvaluation[index][4] &&\n
\n
\n {MicroAreaRelatorioPDFPhoto(index, 3, 10)}\n
\n \n
\n } */}\n \n ))\n : <>\n }\n
\n );\n};\n","import { useEffect, useState } from \"react\";\nimport { PDFEvaluationGlobal } from \"../../components/Pdf/global\";\nimport { PDFEvaluation } from \"../../components/Pdf/microAreas\";\nimport { RoundedCloseButton } from \"../../components/Buttons/RoundedCloseButton/Index\";\nimport { IOptionProps, IOptionsProps } from \"../../@types/reactSelect/IOption\";\nimport { useForm } from \"react-hook-form\";\nimport axios from \"../../services/axios\"\nimport { ButtonOnlyTitle } from \"../../components/Buttons/ButtonOnlyTitle/Index\";\nimport { useNavigate } from \"react-router-dom\";\nimport Constants from \"../../constants/Index\";\nimport { Dropdown } from \"../../components/EditOnboarding/components/Select\";\nimport \"./styles.css\"\nimport { yupResolver } from \"@hookform/resolvers/yup\";\nimport * as yup from \"yup\";\nimport { Loading } from \"../../components/Loading/Index\";\n\nconst schemaReport = yup.object().shape({\n farm: yup\n .object({\n label: yup.string(),\n value: yup.string().required(\"Fazenda é necessária.\"),\n })\n .nullable()\n .required(\"Fazenda é necessária.\"),\n\n areas: yup\n .array()\n .nullable()\n .min(1, \"Retiros são necessários.\")\n .required(\"Retiros são necessários.\"),\n microareas: yup\n .array()\n .nullable()\n .min(1, \"Pastos são necessários.\")\n .required(\"Pastos são necessários.\"),\n model: yup\n .object({\n label: yup.string(),\n value: yup.string().required(\"Modelo é necessário.\"),\n })\n .nullable()\n .required(\"Modelo é necessário.\"),\n});\n\n\nexport function PdfPage() {\n const [optionsFarm, setOptionsFarm] = useState([]);\n const [optionsFarmAvailable, setOptionsFarmAvailable] = useState([]);\n const [optionsArea, setOptionsArea] = useState([]);\n const [optionsAreaAvailable, setOptionsAreaAvailable] = useState([]);\n const [optionsMicroArea, setOptionsMicroArea] = useState([]);\n const [optionsMicroAreasAvailable, setOptionsMicroAreasAvailable] = useState([]);\n const [dataReport, setDataReport] = useState();\n const [loadingState, setLoadingState] = useState(false);\n\n const {\n handleSubmit,\n control,\n setValue,\n watch,\n formState: { errors },\n } = useForm({\n resolver: yupResolver(schemaReport),\n });\n\n const farm = watch(\"farm\")\n const areas = watch(\"areas\")\n const microAreas = watch(\"microareas\")\n const model = watch(\"model\")\n const navigate = useNavigate();\n\n useEffect(() => {\n axios.get(\"/farms/user\").then((response) => {\n setOptionsFarm(response.data.map((farm: any) => ({ value: farm.id, label: farm.name, info: farm })))\n })\n axios.get(\"/areas/user\").then((response) => {\n setOptionsArea(response.data.map((area: any) => ({ value: area.id, label: area.name, info: area })));\n })\n axios.get(\"/tasks/pasture-evaluation/micro-areas\").then(({ data }) => {\n setOptionsAreaAvailable(data.map((el: any) => el?.area_id))\n setOptionsFarmAvailable(data.map((el: any) => el?.farm_id))\n setOptionsMicroAreasAvailable(data.map((el: any) => el?.id))\n setOptionsMicroArea(data.map((el: any) => ({\n label: `${el?.farm_initials}-${el?.area_initials}-${el?.initials}`,\n value: el?.id,\n info: {\n farm_id: el?.farm_id,\n area_id: el?.area_id,\n }\n })))\n })\n document.title = Constants.TITLE_PASTURE_EVALUATION\n }, []);\n\n useEffect(() => {\n if (areas) {\n setValue(\"microareas\",\n optionsMicroArea?.filter((microArea: any) => areas?.map((el: any) => el?.value).includes(`${microArea?.info.area_id}`))\n .sort((a, b) => (a.value).toString().localeCompare((b.value).toString()))\n )\n }\n }, [areas]);\n\n useEffect(() => {\n setDataReport(undefined)\n }, [farm, areas, microAreas, model]);\n\n useEffect(() => {\n if (model)\n document.title = model.label\n }, [model]);\n\n function requestReports() {\n setDataReport(undefined)\n setLoadingState(true)\n\n const queryString = `${model.value == 1 ? `farm_id=${farm?.value}&` : \"\"}${microAreas.map((el: any) => `micro_area_ids=${el.value}`).join('&')}`;\n\n axios.get(`tasks/pasture-evaluation/report?${queryString}`)\n .then((response) => {\n setDataReport(response.data)\n })\n .finally(() => {\n setLoadingState(false)\n })\n }\n\n return (\n
\n \n\n
\n
\n
\n

Baixar avaliação

\n
\n {\n navigate(Constants.PADDOCKS_MAP)\n }}\n />\n
\n
\n
\n
\n Fazenda\n
\n optionsFarmAvailable.includes(farm.value))\n }\n placeholderText=\"Selecionar fazenda...\"\n control={control}\n closeMenuOnSelect={true}\n noOptionsMessage={() => Nenhum fazenda disponível}\n getSelectedData={() => {\n if (optionsFarm) {\n setValue(\"areas\", null)\n setValue(\"microareas\", null)\n }\n }}\n errorText={(errors?.farm as any)?.value?.message}\n />\n
\n
\n\n
\n Retiros\n
\n (area.info as any).farm.id == farm?.value)\n .filter(area => optionsAreaAvailable.includes(area.value))\n }\n placeholderText=\"Selecionar retiros...\"\n control={control}\n noOptionsMessage={() => Nenhum retiro disponível}\n isMulti={true}\n errorText={(errors?.areas as any)?.value?.message}\n />\n
\n
\n\n
\n Pastos\n
\n areas?.map((el: any) => el?.value).includes(`${microarea?.info.area_id}`))\n .filter(microarea => optionsMicroAreasAvailable.includes(microarea.value))\n .filter(el => !microAreas?.map((microArea: IOptionProps) => microArea?.value).includes(el?.value))\n .sort((a, b) => (a.value).toString().localeCompare((b.value).toString()))\n }\n placeholderText=\"Selecionar pastos...\"\n control={control}\n noOptionsMessage={() => Nenhum pasto disponível}\n isMulti={true}\n errorText={(errors?.microareas as any)?.value?.message}\n />\n
\n
\n\n
\n Modelo\n
\n Nenhum modelo disponível}\n errorText={(errors?.model as any)?.value?.message}\n />\n
\n
\n\n
\n
\n\n
\n \n navigate(Constants.PADDOCKS_MAP)\n }\n />\n \n
\n
\n\n {dataReport &&\n
\n {model.value == 1 ? : \"\"}\n {model.value == 2 ? : \"\"}\n
\n }\n
\n );\n}\n","import { ReactComponent as CalendarIcon } from \"../../../../assets/svg/icons/calendar.svg\";\nimport { format } from \"date-fns\";\nimport { useFilter } from \"../../../../hooks/useFilter\";\nimport \"../styles.css\"\n\nexport function FilterDateDashboard() {\n const {\n setModalCalendarFilter,\n rangeDays,\n setRangeDays,\n setFocusLastDay,\n setViewRangeDays,\n selectRangeDate,\n setSelectRangeDate\n } = useFilter();\n\n\n return (\n
\n
\n
\n
\n {\n setSelectRangeDate(0)\n\n const now = new Date();\n const firstDayOfCurrentMonth = new Date(now.getFullYear(), now.getMonth(), 1);\n const firstDayOfLastMonth = new Date(now.getFullYear(), now.getMonth() - 1, 1);\n\n const range = {\n from: firstDayOfLastMonth,\n to: firstDayOfCurrentMonth\n }\n setRangeDays(range)\n setViewRangeDays(range)\n }}\n >\n Último mês\n
\n\n {\n setSelectRangeDate(1)\n\n const now = new Date();\n const firstDayOfCurrentMonth = new Date(now.getFullYear(), now.getMonth(), 1);\n const firstDayOfLastMonth = new Date(now.getFullYear(), now.getMonth() - 6, 1);\n\n const range = {\n from: firstDayOfLastMonth,\n to: firstDayOfCurrentMonth\n }\n setRangeDays(range)\n setViewRangeDays(range)\n }}\n >\n Últimos 6 meses\n
\n\n
setSelectRangeDate(2)}\n >\n Personalizado\n
\n
\n\n\n
\n\n
{\n setSelectRangeDate(2)\n setModalCalendarFilter(true)\n setFocusLastDay(false)\n }}>\n De\n
\n
{format(rangeDays?.from ? new Date(rangeDays.from) : new Date(), 'dd/MM/yyyy')}
\n \n
\n
\n\n
{\n setSelectRangeDate(2)\n setModalCalendarFilter(true)\n if (rangeDays?.from?.toDateString() != rangeDays?.to?.toDateString()) {\n setFocusLastDay(true)\n }\n else {\n setFocusLastDay(false)\n }\n }}>\n Até\n
\n
{format(rangeDays?.to ? new Date(rangeDays.to) : new Date(), 'dd/MM/yyyy')}
\n \n
\n
\n
\n\n window.print()}\n >\n Exportar PDF\n \n
\n
\n \n );\n}","import { Chart as ElementChart } from 'react-chartjs-2';\nimport Chart, { ChartData } from \"chart.js/auto\";\nimport ChartDataLabels from \"chartjs-plugin-datalabels\";\n\ninterface Props {\n optionsColumnDry: LabelElement[];\n optionsColumnRain: LabelElement[];\n optionsLine: LabelElement[];\n}\n\ninterface LabelElement {\n label: string[] | string;\n value: number;\n}\n\nexport default function CattleMapGraph({ optionsColumnDry, optionsColumnRain, optionsLine }: Props) {\n\n Chart.register(ChartDataLabels);\n\n const charData: ChartData = {\n labels: optionsColumnDry ? optionsColumnDry.map((el) => el.label) : [],\n datasets: [\n {\n type: 'bar',\n backgroundColor: \"#D9B43C\",\n data: optionsColumnDry ? optionsColumnDry.map((el) => Number((typeof (el.value) == \"number\" ? el.value : 0).toFixed(2))) : [],\n borderWidth: 1,\n yAxisID: 'y1',\n order: 1\n },\n {\n type: 'bar',\n backgroundColor: \"#62B8AE\",\n data: optionsColumnRain ? optionsColumnRain.map((el) => Number((typeof (el.value) == \"number\" ? el.value : 0).toFixed(2))) : [],\n borderWidth: 1,\n yAxisID: 'y2',\n order: 1\n },\n {\n type: 'line',\n backgroundColor: \"#324440\",\n borderColor: \"#324440\",\n data: optionsLine ? optionsLine.map((el) => Number((typeof (el.value) == \"number\" ? el.value : 0).toFixed(2))) : [],\n borderWidth: 2,\n yAxisID: 'y3',\n order: 0\n }\n ],\n };\n\n return (\n
\n
\n {optionsColumnDry && optionsColumnDry.every((el: any) => el?.value === 0) && optionsLine.every((el: any) => el?.value === 0) ?\n
\n Sem dados\n
\n :\n
\n
\n \n \n Nº de cabeças\n
\n
\n Seca\n
\n
\n\n
\n
\n Chuva\n
\n
\n
\n\n \n Taxa de lotação\n
\n
\n
\n
\n
\n
\n
\n
\n\n \n
\n }\n
\n
\n )\n};","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgBagFood(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 30 20\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M29.9541 18.3108C29.9492 18.2943 29.9431 18.2782 29.9358 18.2627L28.925 16.126C28.6444 15.2152 28.5011 14.2679 28.4998 13.3152V6.51997C28.5008 5.56598 28.6441 4.61744 28.925 3.70542L29.9358 1.56873C29.9433 1.55342 29.9494 1.53752 29.9541 1.52118C30.0903 1.08156 29.9176 0.617898 29.502 0.31342C29.073 0.00146282 28.4778 -0.0850731 27.9437 0.0874646L24.4544 1.22312C18.5392 0.160112 12.1645 0.161715 5.50875 1.22792L2.05539 0.29045C1.54597 0.125391 0.967375 0.200175 0.545358 0.484355C0.193589 0.719925 7.52273e-06 1.05912 7.52273e-06 1.41969C-0.000266077 1.48969 0.00692412 1.55953 0.021457 1.62802L0.525518 4.074C0.559837 4.23852 0.589329 4.40358 0.618822 4.56704C0.65475 4.76789 0.690678 4.96606 0.732504 5.15943C0.888094 5.85435 0.968629 6.56385 0.972737 7.27583V12.5641C0.968599 13.2759 0.888064 13.9853 0.732504 14.68C0.690678 14.8734 0.65475 15.0715 0.618822 15.2724C0.589329 15.4358 0.559837 15.6014 0.525518 15.766L0.0219933 18.2087C-0.0691665 18.643 0.12924 19.0714 0.545894 19.3529C0.76315 19.4933 1.00885 19.5842 1.26544 19.619C1.52202 19.6538 1.78316 19.6317 2.03019 19.5543L5.50875 18.6035C12.3725 19.6868 18.7468 19.6884 24.4555 18.6088L27.941 19.7429C28.4735 19.9149 29.0704 19.8278 29.4961 19.5159C29.9176 19.2146 30.0908 18.7525 29.9541 18.3108ZM22.5031 8.92642C22.5031 8.92642 21.1545 9.03325 20.2187 8.90238C18.0652 8.60698 16.0613 7.12679 15.1754 6.63375C13.2514 5.5654 12.4723 5.5013 11.4754 5.77907C9.90855 6.2187 8.98998 7.39762 8.08267 8.91734H7.40702C7.93199 7.80679 9.9359 4.21288 14.0788 3.3582C18.2218 2.50353 22.6634 5.25719 22.5031 8.92642Z\",\n fill: \"#57CE71\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgBagFood);\nexport default __webpack_public_path__ + \"static/media/bagFood.c94350d9.svg\";\nexport { ForwardRef as ReactComponent };","import { FilterDateDashboard } from \"../../../components/Dashboard/ViewDatas/FilterDate\";\nimport { ReactComponent as CattleMap } from \"../../../assets/svg/icons/cattle.svg\";\nimport GraphBarLine from \"../../../components/Dashboard/Graph/BarLine/CattleMap\";\nimport { IOptionProps } from \"../../../@types/reactSelect/IOption\";\nimport { DateModal } from \"../../../components/Modal/DateFilter\";\nimport { useFilter } from \"../../../hooks/useFilter\";\nimport Constants from \"../../../constants/Index\";\nimport axios from \"../../../services/axios\";\nimport { useEffect, useState } from \"react\";\nimport { format } from \"date-fns\";\nimport \"./styles.css\";\n\n\nexport default function DashboardCattleMap() {\n const {\n setHideMicroAreaFilter,\n setHideBatchFilter,\n farmFilter,\n areasIdsFilter,\n rangeDays,\n setDashboard,\n balance,\n setBalance,\n setBalanceCapacity,\n setSideBarOptionSelected,\n setSelectRangeDate\n } = useFilter();\n\n const [balanceCapacityMap, setBalanceCapacityMap] = useState | undefined>(undefined);\n const [balanceAnimal, setBalanceAnimal] = useState();\n const [allAreas, setAllAreas] = useState([]);\n\n const mapMonth = new Map();\n\n const months = [\"Jan\", \"Fev\", \"Mar\", \"Abr\", \"Mai\", \"Jun\", \"Jul\", \"Ago\", \"Set\", \"Out\", \"Nov\", \"Dez\"]\n\n useEffect(() => {\n setHideMicroAreaFilter(true)\n setHideBatchFilter(true)\n setSideBarOptionSelected(\"DASHBOARD\")\n setDashboard(\"CATTLE_MAP\")\n setSelectRangeDate(2)\n document.title = Constants.TITLE_DASHBOARD;\n }, []);\n\n useEffect(() => {\n if (farmFilter && areasIdsFilter.length == 0) {\n axios.get(\"/areas\", {\n params: {\n farm_id: farmFilter.id\n }\n }).then((response) => {\n const areas = response.data.map((item: IArea) => ({\n label: item.name,\n value: item.id\n }))\n setAllAreas(areas)\n })\n }\n }, [, farmFilter]);\n\n useEffect(() => {\n if (farmFilter?.id) {\n let startDate = format(rangeDays?.from ? new Date(rangeDays?.from) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n let endDate = format(rangeDays?.to ? new Date(rangeDays?.to) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n\n const params = {\n farmId: farmFilter.id,\n areaIds: areasIdsFilter.length > 0 ? areasIdsFilter.map((item) => item.value) : allAreas.map((item) => item.value),\n startDate: startDate,\n endDate: endDate\n }\n\n axios.get(\"/balance\", {\n params,\n paramsSerializer: params => {\n return new URLSearchParams(params).toString();\n }\n }).then((response) => {\n setBalance(response.data)\n })\n\n axios.get(\"/balance/animal-weight-category\", {\n params,\n paramsSerializer: params => {\n return new URLSearchParams(params).toString();\n }\n }).then((response) => {\n setBalanceAnimal(response.data)\n })\n\n axios.get(\"/balance/capacity\", {\n params,\n paramsSerializer: params => {\n return new URLSearchParams(params).toString();\n }\n }).then((response) => {\n for (let i = 0; i < 12; i++) {\n mapMonth.set(i, [])\n }\n\n setBalanceCapacity(response.data)\n response?.data?.forEach((item: IBalanceCapacity) => {\n const monthReference = item?.month_reference;\n if (mapMonth.has(monthReference) && mapMonth.get(monthReference) != undefined) {\n mapMonth.set(monthReference - 1, [\n ...mapMonth.get(monthReference - 1),\n item\n ])\n } else {\n mapMonth.set(monthReference - 1, [item])\n }\n });\n setBalanceCapacityMap(mapMonth)\n })\n }\n }, [rangeDays, areasIdsFilter, allAreas]);\n\n return (\n
\n \n\n
\n
\n \n
\n

\n Mapa de Gado\n

\n

\n Visão Geral\n

\n
\n
\n\n \n\n {balance != undefined &&\n
\n

balanço

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n {\n balance.sort((a, b) => a.id - b.id)?.map((item, index) => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ))\n }\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n Categoria Animal\n \n Saldo Inicial\n \n Entrada\n \n Saída\n \n Evolução\n \n Saldo Final\n
\n Nasc.\n \n Transf. Interna\n \n Transf. Externa\n \n Compras\n \n Venda\n \n Transf. Interna\n \n Transf. Externa\n \n Morte\n
{item.name} {(item.age_description).toLowerCase()}{item.opening_balance}{item.birth}{item.internal_in_transfer}{item.external_in_transfer}{item.shopping}{item.sales}{item.internal_out_transfer}{item.external_out_transfer}{item.death}{item.evolution}{item.end_balance}
Total{balance?.reduce((acc, item) => acc + item.opening_balance, 0)}{balance?.reduce((acc, item) => acc + item.birth, 0)}{balance?.reduce((acc, item) => acc + item.internal_in_transfer, 0)}{balance?.reduce((acc, item) => acc + item.external_in_transfer, 0)}{balance?.reduce((acc, item) => acc + item.shopping, 0)}{balance?.reduce((acc, item) => acc + item.sales, 0)}{balance?.reduce((acc, item) => acc + item.internal_out_transfer, 0)}{balance?.reduce((acc, item) => acc + item.external_out_transfer, 0)}{balance?.reduce((acc, item) => acc + item.death, 0)}{balance?.reduce((acc, item) => acc + item.evolution, 0)}{balance?.reduce((acc, item) => acc + item.end_balance, 0)}
\n
\n }\n\n {balanceAnimal != undefined &&\n
\n

Categoria animal por peso e ua

\n \n \n \n \n \n \n \n \n \n \n\n \n {\n balanceAnimal\n .reduce((acc: any, item) => {\n const existingCategory = acc.find((cat: any) => cat.category_id === item.category_id);\n if (existingCategory) {\n existingCategory.quantity += item.quantity;\n existingCategory.total_weight += item.total_weight;\n existingCategory.total_arroba += item.total_arroba;\n existingCategory.total_uas += item.total_uas;\n } else {\n acc.push({ ...item });\n }\n return acc;\n }, [])\n .sort((a: any, b: any) => a.category_id - b.category_id)\n ?.map((item: IBalanceAnimal, index: number) => (\n \n \n \n \n \n \n \n \n \n ))\n }\n \n\n \n \n \n \n \n \n \n
\n Categoria Animal\n \n Estoque final\n \n Peso médio\n
\n (Kg)\n
\n Peso total\n
\n (Kg)\n
\n Total\n
\n (@s)\n
\n Total\n
\n (UAs)\n
\n Distr.\n
\n (UAs)\n
{item.name} {(item.age_description).toLowerCase()}{item.quantity}{item.average_weight.toFixed(0)}{item.total_weight}{item.total_arroba}{item.total_uas}{parseFloat(Number((item.total_uas / balanceAnimal?.reduce((acc, item) => acc + item.total_uas, 0)) * 100).toFixed(2))} %
Total{balanceAnimal?.reduce((acc, item) => acc + item.quantity, 0)}{balanceAnimal?.reduce((acc, item) => acc + item.total_weight, 0)}{parseFloat(Number(balanceAnimal?.reduce((acc, item) => acc + item.total_arroba, 0)).toFixed(2))}{parseFloat(Number(balanceAnimal?.reduce((acc, item) => acc + item.total_uas, 0)).toFixed(2))}\n \n
\n
\n }\n\n {balanceCapacityMap != undefined &&\n
\n

Curva de estoque e lotação

\n \n \n \n {\n months.map((month, index) =>\n \n )\n }\n \n\n \n \n \n {Array.from(balanceCapacityMap.values()).map((item: IBalanceCapacity[]) => (\n \n ))}\n \n \n \n {Array.from(balanceCapacityMap.values()).map((item: IBalanceCapacity[]) => (\n \n )\n )}\n \n \n
\n\n (\n {\n label: \"\",\n value: item[0]?.rain == 1 ? (item.reduce((acc, item) => acc + item.quantity, 0)) : 0\n }\n ))\n }\n\n optionsColumnDry={\n Array.from(balanceCapacityMap.values()).map((item: IBalanceCapacity[]) => (\n {\n label: \"\",\n value: item[0]?.rain == 0 ? (item.reduce((acc, item) => acc + item.quantity, 0)) : 0\n }\n ))\n }\n\n optionsLine={\n Array.from(balanceCapacityMap.values()).map((item: IBalanceCapacity[]) => (\n {\n label: \"\",\n value: Number((item.reduce((acc, item) => acc + item.ua_total, 0)\n / item.reduce((acc, item) => acc + item.total_area, 0)\n ).toFixed(2))\n }\n ))\n }\n />\n
\n
\n Lotação/Mês\n \n {index + 1}\n
\n {month}\n
Nº médio de Animais\n {item.length > 0 ? item.reduce((acc, item) => acc + item.quantity, 0) : \"-\"}\n
Lotação média (UAs)\n {\n item.length > 0 ?\n (item.reduce((acc, item) => acc + item.ua_total, 0)\n / item.reduce((acc, item) => acc + item.total_area, 0)\n ).toFixed(2)\n : \"-\"\n }\n
\n
\n }\n
\n
\n );\n}\n","import { FilterDateDashboard } from \"../../../../components/Dashboard/ViewDatas/FilterDate\";\nimport { ReactComponent as BagFood } from \"../../../../assets/svg/icons/bagFood.svg\";\nimport { IOptionProps } from \"../../../../@types/reactSelect/IOption\";\nimport { DateModal } from \"../../../../components/Modal/DateFilter\";\nimport { useFilter } from \"../../../../hooks/useFilter\";\nimport Constants from \"../../../../constants/Index\";\nimport axios from \"../../../../services/axios\";\nimport { useEffect, useState } from \"react\";\nimport { format } from \"date-fns\";\n\nexport default function DashboardSupplementationInventoryControl() {\n const {\n farmFilter,\n areasIdsFilter,\n rangeDays,\n setRangeDays,\n setHideMicroAreaFilter,\n setHideBatchFilter,\n setDashboard,\n setSideBarOptionSelected,\n setSelectRangeDate\n } = useFilter();\n\n const [centralWarehouse, setCentralWarehouse] = useState();\n const [depositeInPasture, setDepositeInPasture] = useState();\n const [generalAnalysis, setGeneralAnalysis] = useState();\n const [allAreas, setAllAreas] = useState([]);\n\n useEffect(() => {\n const now = new Date();\n setRangeDays({\n from: now,\n to: now\n })\n }, [allAreas]);\n\n useEffect(() => {\n setHideMicroAreaFilter(true)\n setHideBatchFilter(true)\n setSideBarOptionSelected(\"DASHBOARD\")\n setDashboard(\"SUPPLEMENTATION\")\n setSelectRangeDate(2)\n document.title = Constants.TITLE_DASHBOARD;\n }, []);\n\n useEffect(() => {\n if (farmFilter && areasIdsFilter.length == 0) {\n axios.get(\"/areas\", {\n params: {\n farm_id: farmFilter.id\n }\n }).then((response) => {\n const areas = response.data.map((item: IArea) => ({\n label: item.name,\n value: item.id\n }))\n setAllAreas(areas)\n })\n }\n }, [, farmFilter]);\n\n useEffect(() => {\n if (farmFilter?.id && (rangeDays || areasIdsFilter.length > 0 || allAreas.length > 0)) {\n let startDate = format(rangeDays?.from ? new Date(rangeDays?.from) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n let endDate = format(rangeDays?.to ? new Date(rangeDays?.to) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n\n const params = {\n farmId: farmFilter.id,\n areaIds: areasIdsFilter.length > 0 ? areasIdsFilter.map((item) => item.value) : allAreas.map((item) => item.value),\n startDate: startDate,\n endDate: endDate\n }\n\n axios.get(\"/supplement/central-warehouse-stock\", {\n params,\n paramsSerializer: params => {\n return new URLSearchParams(params).toString();\n }\n }).then((response) => {\n setCentralWarehouse(response.data)\n })\n\n axios.get(\"/supplement/general-analysis\", {\n params,\n paramsSerializer: params => {\n return new URLSearchParams(params).toString();\n }\n }).then((response) => {\n setGeneralAnalysis(response.data)\n })\n\n axios.get(\"/supplement/stock-deposit-in-the-pasture\", {\n params,\n paramsSerializer: params => {\n return new URLSearchParams(params).toString();\n }\n }).then((response) => {\n setDepositeInPasture(response.data)\n })\n }\n }, [rangeDays, areasIdsFilter, allAreas]);\n\n const IconMarq = (value: number, min: number, max: number) => {\n let hex = \"FFFFFF\";\n\n if (value <= min) {\n hex = \"FF0000\";\n } else if (value >= min && value <= max) {\n hex = \"FFFF00\";\n } else {\n hex = \"00FF00\";\n }\n\n return (\n
\n )\n }\n\n return (\n
\n \n\n
\n
\n \n
\n

\n Suplementação\n

\n

\n Controle de estoque\n

\n
\n
\n\n \n\n {centralWarehouse &&\n
\n

Estoque Depósito Central

\n \n \n \n {[\n \"Produto\",\n \"Estoque total (Kg)\",\n \"Média de saídas diárias (Kg/dia)\",\n \"Dias em estoque (dias)\"\n ].map((label, index) => (\n \n {label}\n \n ))}\n \n\n \n {\n centralWarehouse?.map((item, index) => (\n \n \n \n \n \n \n \n ))\n }\n \n
\n Linha de Suplementação\n
{item.name}{item.trade_name}{item.actual_quantity}{item.average_daily_output}{item.days_in_stock}
\n
\n }\n\n\n {generalAnalysis &&\n
\n

Análise Geral

\n \n \n \n {[\n \"Consumo Total no Período (Kg)\",\n \"Período Analisado (dias)\",\n \"Animais Suplementados\",\n \"Peso Médio dos Animais Suplementados (Média de Kg)\",\n \"Peso Total dos Animais Suplementados (Kg)\",\n \"Total de UA\",\n \"Consumo Médio no Período (g/kgPV.dia)\",\n \"Consumo Médio no Período (g/UA.dia)\",\n \"Frequência de Reposição (Média de dias)\"\n ].map((label, index) => (\n \n ))}\n \n\n \n {\n generalAnalysis.map((item, index) => (\n \n \n \n \n \n \n \n \n \n \n \n \n ))\n }\n \n
\n Classificação do Produto\n \n {label}\n
{`${item.name}`}{item.total_consumption_period}{item.analyzed_period}{item.supplemented_animals}{parseFloat(item.average_weight_of_supplemented_animals.toFixed(2))}{parseFloat(item.total_weight_of_supplemented_animals.toFixed(2))}{parseFloat(item.uas_total_number_of_animals_supplemented.toFixed(2))}{parseFloat(item.average_consumption_in_the_period_kg.toFixed(3))}{parseFloat(item.average_consumption_in_the_period_ua.toFixed(3))}{parseFloat(item.replacement_frequency.toFixed(2))}
\n
\n }\n\n {depositeInPasture &&\n
\n

Estoque Depósito no Pasto

\n \n \n \n {[\n \"Tipo de Suplemento\",\n \"Quantidade no Depósito do Pasto (Kg)\",\n \"Capacidade Total do Depósito * (Kg)\",\n \"% da Capacidade Ocupada do Depósito *\"\n ].map((label, index) => (\n \n ))}\n \n\n \n {\n depositeInPasture?.map((item, index) => (\n \n \n \n \n \n \n \n ))\n }\n \n\n \n \n \n \n \n \n *Valores serão demonstrados após a realização de uma avaliação de pastagem\n\n
\n Pasto\n \n {label}\n
{item.initials}{item.name}{item.stock_balance != null ? item.stock_balance : '-'}{item.stock_capacity != null ? item.stock_capacity : '-'}\n {item.stock_capacity != 0 ? IconMarq((item.stock_balance / item.stock_capacity), 30, 50) :\n
\n }\n {item.stock_capacity ? item.stock_balance / item.stock_capacity : 0} %\n
Total geral\n {depositeInPasture?.reduce((acc, item) => acc + item.stock_balance, 0)} kg{depositeInPasture?.reduce((acc, item) => acc + item.stock_capacity, 0)} kg{depositeInPasture?.reduce((acc, item) => acc + item.stock_capacity, 0) != 0 ?\n
\n {IconMarq(29, 30, 50)}{depositeInPasture?.reduce((acc, item) => acc + item.stock_balance, 0) / depositeInPasture?.reduce((acc, item) => acc + item.stock_capacity, 0)} %\n
\n : \n 0 %\n \n }\n
\n\n
\n \n \n \n\n {[{\n legenda: \"<=30%\"\n },\n {\n legenda: \">=31% <=50%\"\n },\n {\n legenda: \">50%\"\n }].map((item) => (\n \n ))}\n \n\n \n \n \n \n \n \n \n \n
\n Legenda\n \n {item.legenda}\n
{IconMarq(1, 30, 50)}{IconMarq(35, 30, 50)}{IconMarq(55, 30, 50)}
\n
\n
\n }\n
\n
\n );\n}\n","import { FilterDateDashboard } from \"../../../../components/Dashboard/ViewDatas/FilterDate\";\nimport { ReactComponent as BagFood } from \"../../../../assets/svg/icons/bagFood.svg\";\nimport { DateModal } from \"../../../../components/Modal/DateFilter\";\nimport { useFilter } from \"../../../../hooks/useFilter\";\nimport Constants from \"../../../../constants/Index\";\nimport axios from \"../../../../services/axios\"\nimport { useEffect, useState } from \"react\";\nimport { format } from \"date-fns\";\nimport { IOptionProps } from \"../../../../@types/reactSelect/IOption\";\n\nexport default function DashboardSupplementationProductReport() {\n const defaultValues = {\n id: 0,\n supplement_classification_id: 0,\n supplement_classification: \"-\",\n trade_name: \"-\",\n total_consumption_period: 0,\n analyzed_period: 0,\n supplemented_animals: 0,\n average_weight_of_supplemented_animals: 0,\n total_weight_of_supplemented_animals: 0,\n uas_total_number_of_animals_supplemented: 0,\n average_consumption_in_the_period_kg: 0,\n average_consumption_in_the_period_kg_pct: 0,\n average_consumption_in_the_period_ua: 0,\n average_consumption_in_the_period_ua_pct: 0,\n replacement_frequency: 0,\n replacement_frequency_pct: 0\n }\n\n const {\n farmFilter,\n areasIdsFilter,\n rangeDays,\n setRangeDays,\n setHideMicroAreaFilter,\n setHideBatchFilter,\n setDashboard,\n setSideBarOptionSelected,\n setSelectRangeDate\n } = useFilter();\n\n const [allAreas, setAllAreas] = useState([]);\n\n useEffect(() => {\n if (farmFilter && areasIdsFilter.length == 0) {\n axios.get(\"/areas\", {\n params: {\n farm_id: farmFilter.id\n }\n }).then((response) => {\n const areas = response.data.map((item: IArea) => ({\n label: item.name,\n value: item.id\n }))\n setAllAreas(areas)\n })\n }\n }, [, farmFilter]);\n\n useEffect(() => {\n const now = new Date();\n const firstDayOfCurrentMonth = new Date(now.getFullYear(), now.getMonth(), 1);\n const firstDayOfLastMonth = new Date(now.getFullYear(), now.getMonth() - 1, 1);\n\n setRangeDays({\n from: firstDayOfLastMonth,\n to: firstDayOfCurrentMonth\n })\n }, [allAreas]);\n\n useEffect(() => {\n setHideMicroAreaFilter(true)\n setHideBatchFilter(true)\n setSideBarOptionSelected(\"DASHBOARD\")\n setDashboard(\"SUPPLEMENTATION\")\n setSelectRangeDate(0)\n document.title = Constants.TITLE_DASHBOARD;\n }, []);\n\n const IconMarq = (value: number, red: number, green: number) => {\n let hex = \"FFFFFF\";\n\n if (green > red) {\n if (value < red) {\n hex = \"FF0000\";\n } else if (value <= green) {\n hex = \"FFFF00\";\n } else {\n hex = \"00FF00\";\n }\n } else {\n if (value > red) {\n hex = \"FF0000\";\n } else if (value >= green) {\n hex = \"FFFF00\";\n } else {\n hex = \"00FF00\";\n }\n }\n\n return (\n
\n )\n }\n\n const LegendaTable = (title: string, green: number, red: number) => {\n\n return (\n
\n \n \n \n\n {[{\n legenda: `>${red}%`\n },\n {\n legenda: `>=${red} <=${green}%`\n },\n {\n legenda: `<${green}%`\n }].map((item, index) => (\n \n ))}\n \n\n \n \n \n \n \n \n \n \n
\n {title}\n \n {item.legenda}\n
{IconMarq(1, 30, 50)}{IconMarq(35, 30, 50)}{IconMarq(55, 30, 50)}
\n
\n )\n }\n\n const [analysisProduct, setAnalysisProduct] = useState([defaultValues]);\n const [analysisBatch, setAnalysisBatch] = useState([]);\n\n useEffect(() => {\n if (farmFilter?.id && (rangeDays || areasIdsFilter.length > 0 || allAreas.length > 0)) {\n\n let startDate = format(rangeDays?.from ? new Date(rangeDays?.from) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n let endDate = format(rangeDays?.to ? new Date(rangeDays?.to) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n\n const params = {\n farmId: farmFilter.id,\n areaIds: areasIdsFilter.length > 0 ? areasIdsFilter.map((item) => item.value) : allAreas.map((item) => item.value),\n startDate: startDate,\n endDate: endDate\n }\n axios.get(\"/supplement/analysis-by-product\", {\n params,\n paramsSerializer: params => {\n return new URLSearchParams(params).toString();\n }\n }).then((response) => {\n if (response.data.length > 0)\n setAnalysisProduct(response.data)\n })\n axios.get(\"/supplement/analysis-batch-by-product\", {\n params,\n paramsSerializer: params => {\n return new URLSearchParams(params).toString();\n }\n }).then((response) => {\n if (response.data.length > 0)\n setAnalysisBatch(response.data)\n })\n }\n }, [rangeDays, areasIdsFilter, allAreas]);\n\n const tableProduct = (products: ISupplementAnalysisProduct[]) => {\n const haveBatch = products.some((item) => item.batch_initials);\n\n const renderTableHeader = () => (\n <>\n {haveBatch ?\n <>\n
\n

Consumo por lote

\n : <>}\n\n \n \n Lote\n Nome do Produto\n {[\n \"Classificação do Produto\",\n \"Consumo Total no Período (Kg)\",\n \"Período Analisado (dias)\",\n \"Animais Suplementados\",\n \"Peso Médio dos Animais Suplementados (Kg)\",\n \"Peso Total dos Animais Suplementados (Kg)\",\n \"Consumo Médio no Período (g/kgPV.dia)\",\n \"Consumo Médio no Período (g.UA/dia)\",\n \"Frequência de Reposição (Média de Dias)\"\n ].map((title, index) => (\n \n {title}\n \n ))}\n \n \n \n );\n\n const renderTableBody = () => (\n \n {products.map((item, index) => (\n \n {item.batch_initials}\n {item.trade_name}\n {item.supplement_classification}\n {item.total_consumption_period}\n {item.analyzed_period}\n {item.supplemented_animals}\n {item.average_weight_of_supplemented_animals}\n {item.total_weight_of_supplemented_animals}\n \n
\n {IconMarq(item.average_consumption_in_the_period_kg_pct, 15, 5)}\n {item.average_consumption_in_the_period_kg}\n
\n \n \n
\n {IconMarq(item.average_consumption_in_the_period_ua_pct, 15, 5)}\n {item.average_consumption_in_the_period_ua}\n
\n \n \n
\n {IconMarq(item.replacement_frequency_pct, 30, 15)}\n {item.replacement_frequency}\n
\n \n \n ))}\n \n );\n\n return (\n
\n \n {renderTableHeader()}\n {renderTableBody()}\n
\n
\n );\n }\n\n return (\n
\n \n\n
\n
\n \n
\n

\n Suplementação\n

\n

\n Análise de consumo\n

\n
\n
\n\n \n\n {\n
\n {tableProduct(analysisProduct)}\n\n {analysisBatch.length != 0 ? tableProduct(analysisBatch) : <>}\n
\n
\n {LegendaTable(\"Legenda Consumo\", 5, 15)}\n\n {LegendaTable(\"Legenda Frequência\", 15, 30)}\n
\n
\n }\n
\n
\n );\n}\n","export function daysBetweenDates(firstDate: Date, secondDate: Date) {\n\n // Calcula a diferença em milissegundos\n const diffInMs = Math.abs(firstDate.getTime() - secondDate.getTime());\n\n // Converte a diferença de milissegundos para dias\n const diffInDays = Math.floor(diffInMs / (1000 * 60 * 60 * 24));\n\n return diffInDays;\n}","import { FilterDateDashboard } from \"../../../../components/Dashboard/ViewDatas/FilterDate\";\nimport { ReactComponent as BagFood } from \"../../../../assets/svg/icons/bagFood.svg\";\nimport { DateModal } from \"../../../../components/Modal/DateFilter\";\nimport { useFilter } from \"../../../../hooks/useFilter\";\nimport Constants from \"../../../../constants/Index\";\nimport axios from \"../../../../services/axios\"\nimport { useEffect, useState } from \"react\";\nimport { IOptionProps } from \"../../../../@types/reactSelect/IOption\";\nimport { Dropdown } from \"../../../../components/EditOnboarding/components/Select\";\nimport { useForm } from \"react-hook-form\";\nimport { format } from \"date-fns\";\nimport { daysBetweenDates } from \"../../../../utils/date/daysBetweenDays\";\n\nexport default function DashboardSupplementationProductConsumption() {\n const {\n farmFilter,\n areasIdsFilter,\n rangeDays,\n onBoardingDate,\n setRangeDays,\n setHideMicroAreaFilter,\n setHideBatchFilter,\n setDashboard,\n setSideBarOptionSelected,\n setSelectRangeDate\n } = useFilter();\n\n const {\n handleSubmit,\n control,\n watch,\n setValue\n } = useForm();\n\n const [optionsClassification, setOptionsClassification] = useState([]);\n const [optionsProduct, setOptionsProduct] = useState([]);\n const [consumptionByMonth, setConsumptionByMonth] = useState();\n const selectedClassification = watch(\"classification\")\n const selectedProducts = watch(\"products\")\n const [allAreas, setAllAreas] = useState([]);\n const [mapMounths] = useState(new Map());\n\n useEffect(() => {\n const now = new Date();\n const lastYear = new Date(now.getFullYear() - 1, now.getMonth(), now.getDay());\n\n setRangeDays({\n from: daysBetweenDates(now, onBoardingDate || lastYear) > 365 ? lastYear : onBoardingDate,\n to: now\n })\n }, [allAreas]);\n\n useEffect(() => {\n setHideMicroAreaFilter(true)\n setHideBatchFilter(true)\n setSideBarOptionSelected(\"DASHBOARD\")\n setDashboard(\"SUPPLEMENTATION\")\n setSelectRangeDate(2)\n document.title = Constants.TITLE_DASHBOARD;\n }, []);\n\n useEffect(() => {\n if (farmFilter && areasIdsFilter.length == 0) {\n axios.get(\"/areas\", {\n params: {\n farm_id: farmFilter.id\n }\n }).then((response) => {\n const areas = response.data.map((item: IArea) => ({\n label: item.name,\n value: item.id\n }));\n setAllAreas(areas);\n })\n }\n }, [, farmFilter]);\n\n useEffect(() => {\n if (farmFilter?.id && (rangeDays || areasIdsFilter.length > 0 || allAreas.length > 0) && selectedClassification && selectedProducts) {\n let startDate = format(rangeDays?.from ? new Date(rangeDays?.from) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n let endDate = format(rangeDays?.to ? new Date(rangeDays?.to) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n\n const params = {\n farmId: farmFilter.id,\n areaIds: areasIdsFilter.length > 0 ? areasIdsFilter.map((item) => item.value) : allAreas.map((item) => item.value),\n classificationId: selectedClassification.value,\n supplementId: selectedProducts.map((item: any) => item.value),\n startDate: startDate,\n endDate: endDate\n }\n\n axios.get(\"/supplement/consumption-by-month\", {\n params,\n paramsSerializer: params => {\n return new URLSearchParams(params).toString();\n }\n }).then((response) => {\n const resposeConsumption: IConsumptionByMonth[] = response.data;\n mapMounths.clear();\n resposeConsumption.map((area) => area.months.map((month) => {\n const existingMonths = mapMounths.get(month.year_month) || [];\n mapMounths.set(month.year_month, [...existingMonths, month.total_consumption]);\n }));\n\n setConsumptionByMonth(response.data);\n })\n }\n }, [rangeDays, areasIdsFilter, selectedClassification, selectedProducts, allAreas]);\n\n useEffect(() => {\n axios.get(\"/products/supplement/classification\")\n .then(({ data }) => {\n setOptionsClassification(\n data.map((el: any) => (\n {\n label: el.name,\n value: el.id,\n }\n ))\n )\n })\n\n axios.get(\"/products/all\")\n .then(({ data }) => {\n setOptionsProduct(\n data.map((el: any) => (\n {\n label: el.trade_name,\n value: el.id,\n info: el.classification\n }\n ))\n )\n })\n }, []);\n\n return (\n
\n
handleSubmit(() => { })}>\n\n \n\n
\n
\n \n
\n

\n Suplementação\n

\n

\n Consumo por mês\n

\n
\n
\n\n
\n \n\n
\n optionsProduct.map(el => el.info).includes(classification.label))}\n getSelectedData={() => {\n setValue(\"products\", null)\n }}\n />\n\n \"Nenhum produto disponível\"}\n options={selectedClassification ? optionsProduct.filter(product => product.info == selectedClassification.label) : []}\n isMulti\n />\n
\n
\n
\n\n
\n\n {consumptionByMonth ?\n
\n

Consumo por mês

\n \n \n \n {Array.from(mapMounths.keys()).map((month, index) => (\n \n {month}\n \n ))}\n \n \n\n \n {consumptionByMonth?.map((area, index) =>\n \n {\n \n \n {area.months.map((month) => )}\n \n \n \n }\n \n )}\n \n \n {Array.from(mapMounths.values()).map((month: number[], index) =>\n \n )}\n \n
\n Retiro\n \n Média Anual\n \n Frequência de Reposição\n
\n (Média de dias)\n
{area.area_initials}{month.total_consumption}{area.months.length > 0 ? (Number(area.months.reduce((acc, item) => acc + item.total_consumption, 0) / 12).toFixed(2)) : 0}{area.replacement_frequency}
Somatória da Fazenda\n {month.reduce((acc, item) => acc + item, 0)}\n \n {Number(Array.from(mapMounths.values()).flat().reduce((acc, item) => acc + item, 0) / 12).toFixed(2)}\n \n \n
\n
\n : <>\n }\n\n \n
\n );\n}\n","import { FilterDateDashboard } from \"../../../../components/Dashboard/ViewDatas/FilterDate\";\nimport { ReactComponent as BagFood } from \"../../../../assets/svg/icons/bagFood.svg\";\nimport { DateModal } from \"../../../../components/Modal/DateFilter\";\nimport { useFilter } from \"../../../../hooks/useFilter\";\nimport Constants from \"../../../../constants/Index\";\nimport { useEffect } from \"react\";\nimport { Dropdown } from \"../../../../components/EditOnboarding/components/Select\";\nimport { useForm } from \"react-hook-form\";\nimport { format } from \"date-fns\";\n\nexport default function DashboardManagementGeneral() {\n const {\n farmFilter,\n areasIdsFilter,\n rangeDays,\n setHideMicroAreaFilter,\n setHideBatchFilter,\n setDashboard,\n setSideBarOptionSelected,\n setSelectRangeDate\n } = useFilter();\n const {\n handleSubmit,\n control,\n } = useForm();\n\n\n useEffect(() => {\n setHideMicroAreaFilter(true)\n setHideBatchFilter(true)\n setSideBarOptionSelected(\"DASHBOARD\")\n setDashboard(\"MANAGEMENT\")\n setSelectRangeDate(2)\n document.title = Constants.TITLE_DASHBOARD;\n }, []);\n\n useEffect(() => {\n if (farmFilter?.id && (rangeDays || areasIdsFilter.length > 0)) {\n let startDate = format(rangeDays?.from ? new Date(rangeDays?.from) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n let endDate = format(rangeDays?.to ? new Date(rangeDays?.to) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n\n const params = {\n farmId: farmFilter.id,\n areaIds: areasIdsFilter.map((item) => item.value),\n startDate: startDate,\n endDate: endDate\n }\n }\n }, [rangeDays, areasIdsFilter]);\n\n return (\n
\n
handleSubmit(() => { })}>\n\n \n\n
\n
\n \n
\n

\n Manejo de Pasto\n

\n

\n Visualização Geral\n

\n
\n
\n\n
\n \n\n
\n \"Nenhuma opção disponível\"}\n options={[]}\n />\n\n \"Nenhuma opção disponível\"}\n options={[]}\n />\n\n \"Nenhuma opção disponível\"}\n options={[]}\n />\n
\n
\n
\n\n
\n\n \n
\n );\n}\n","import { FilterDateDashboard } from \"../../../../components/Dashboard/ViewDatas/FilterDate\";\nimport { ReactComponent as BagFood } from \"../../../../assets/svg/icons/bagFood.svg\";\nimport { DateModal } from \"../../../../components/Modal/DateFilter\";\nimport { useFilter } from \"../../../../hooks/useFilter\";\nimport Constants from \"../../../../constants/Index\";\nimport { useEffect } from \"react\";\nimport { Dropdown } from \"../../../../components/EditOnboarding/components/Select\";\nimport { useForm } from \"react-hook-form\";\nimport { format } from \"date-fns\";\n\nexport default function DashboardManagementMicroArea() {\n const {\n farmFilter,\n areasIdsFilter,\n rangeDays,\n setHideMicroAreaFilter,\n setHideBatchFilter,\n setDashboard,\n setSideBarOptionSelected,\n setSelectRangeDate\n } = useFilter();\n\n const {\n handleSubmit,\n } = useForm();\n\n useEffect(() => {\n setHideMicroAreaFilter(true)\n setHideBatchFilter(true)\n setSideBarOptionSelected(\"DASHBOARD\")\n setDashboard(\"MANAGEMENT\")\n setSelectRangeDate(2)\n document.title = Constants.TITLE_DASHBOARD;\n }, []);\n\n useEffect(() => {\n if (farmFilter?.id && (rangeDays || areasIdsFilter.length > 0)) {\n let startDate = format(rangeDays?.from ? new Date(rangeDays?.from) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n let endDate = format(rangeDays?.to ? new Date(rangeDays?.to) : new Date(), 'yyyy-MM-dd HH:mm:ss')\n\n const params = {\n farmId: farmFilter.id,\n areaIds: areasIdsFilter.map((item) => item.value),\n startDate: startDate,\n endDate: endDate\n }\n }\n }, [rangeDays, areasIdsFilter]);\n\n return (\n
\n
handleSubmit(() => { })}>\n\n \n\n
\n
\n \n
\n

\n Manejo de Pasto\n

\n

\n Visualização por Pasto\n

\n
\n
\n\n
\n \n\n
\n\n
\n
\n
\n\n
\n\n \n
\n );\n}\n","import { Navigate, Route, Routes } from \"react-router-dom\";\nimport Constants from \"../constants/Index\";\nimport { FilterContextProvider } from \"../contexts/FilterContext\";\nimport { OnboardingProvider } from \"../contexts/OnboardingContext\";\nimport { Onboarding } from \"../pages/Onboarding/Template/Index\";\nimport { PastureCapacity } from \"../pages/PaddocksMap/Maps/PastureCapacity/Index\";\nimport { Index } from \"../pages/PaddocksMap/Maps/DefaultMaps/Index\";\nimport { PaddockTime } from \"../pages/PaddocksMap/Maps/PaddockTime/Index\";\nimport { PastureManagement } from \"../pages/PaddocksMap/Maps/PastureManagement/Index\";\nimport { PaddocksMapIndex } from \"../pages/PaddocksMap/Template\";\nimport { isAuthenticated } from \"../services/auth\";\nimport { TaskCreationProvider } from \"../contexts/TaskCreationContext\";\nimport { PdfPage } from \"../pages/Pdf\";\nimport DashboardCattleMap from \"../pages/Dashboard/CattleMap\";\nimport DashboardSupplementationInventoryControl from \"../pages/Dashboard/Supplementation/InventoryControl\";\nimport DashboardSupplementationProductReport from \"../pages/Dashboard/Supplementation/ProductReport\";\nimport DashboardSupplementationProductConsumption from \"../pages/Dashboard/Supplementation/ProductConsumption\";\nimport DashboardManagementGeneral from \"../pages/Dashboard/PastureManagement/General\";\nimport DashboardManagementMicroArea from \"../pages/Dashboard/PastureManagement/MicroArea\";\n\ntype AuthRoutesProps = {\n mapLoad: boolean;\n};\n\ninterface PropType {\n component: React.FC;\n}\n\nconst PrivateRoute = ({ component: Component }: PropType) => {\n if (isAuthenticated()) return ;\n return ;\n};\n\nexport function AuthRoutes({ mapLoad }: AuthRoutesProps) {\n return (\n <>\n {/* [INICIO] Onboarding */}\n \n \n \n }\n />\n \n \n \n {/* [FIM] Onboarding */}\n\n \n \n \n \n } />\n\n }>\n } />\n\n } />\n\n } />\n } />\n } />\n } />\n\n } />\n } />\n } />\n\n } />\n } />\n } />\n } />\n } />\n } />\n } />\n } />\n\n \n \n \n \n \n \n );\n}\n","export default __webpack_public_path__ + \"static/media/logo.516d2dfd.png\";","import { useState } from \"react\";\n\nimport Logo from \"../../../assets/png/logo.png\";\nimport { BsWhatsapp } from \"react-icons/bs\";\nimport { IoClose } from \"react-icons/io5\";\nimport { BiPlus } from \"react-icons/bi\";\n\nimport \"./styles.css\";\n\nexport function TalkWhatsApp() {\n const [channelWhatsApp, setChannelWhatsApp] = useState(false);\n\n return (\n <>\n
\n {\n setChannelWhatsApp(!channelWhatsApp);\n }}\n >\n {channelWhatsApp ? : }\n \n
\n {\n setChannelWhatsApp(!channelWhatsApp);\n }}\n >\n \n Olá, Fale com o Rodrigo\n \n \n
\n Vamos nos falar por WhatsApp?\n
\n
\n \"logo\n
\n
\n Pastejo\n
Atendimento Online
\n online\n
\n
\n
\n \n
\n \n
\n
\n \n );\n}\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACbCAYAAAA3IpobAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAvaADAAQAAAABAAAAmwAAAABXOohLAAAWNUlEQVR4Ae2dD5BV1X3Hf+e9t0uUmmKbBIHlzy5gx04MLOwfnJIMzlCGBLXSpDhMTAyJDv4hRBgbjW0itjVqNFUSG6U1olXHMTMqSa0NDR13WlrZP+yinYSJ7h8gIJqMumNKtsu+d0+/v73v8s499y7svfc8wtLfnVnuPb93zvf+zuf97n3nMvd3jqIqbt26fvYI5XYpUvM06SH8bV2i+r/m4pRdumGpR+oHRGoaa+dI396s+h90od2h51xFlH+AtYn0IFHp+hZ14FkX2p264Wb4/U0wOQfaR+H3mibVv9uF9h7dcDd0v8LaYNJbQ97yRWrgoAvtDj33eU3qckU6Dy77ClRa7U573suaaGmg3aJ6F7nwmTU69LxucF4I30uKaDe0L8W+ehtAvQdAU8wzaCqubFUHdpq2NMfteu5v/MAJWmudo+EFTerwfweWNPtufcGHizT5bfhtsNG6QMemLlJv/SqNZtCmS9dd7NGkV01tvmBbVd+5QZ20+y5dv8KjvMVVD7aovvPTagbtwPqrYH1vUC7ve1wE5x5dvzVH+Y2mNpjsBJOVpi3NMeKvA6ybw229B3Nhg+tSOOB99cLns56lXc++JBzwrKhUiWrXZdUeoclLzaD09ZTy7dnUPar5E1ub+8H9yaaM3yJS10Q14vhHa53Kg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ICAEhIASEgBAQAkJACAiBs59A1V8tPvsRnjk97NENzcdJPYxXi6diec2f4B37L7ryDmmel+PVYn5teSre0392ieq7xZX26daRoD/dxKt0vi49e5pHhSNWGmUPElcWZT0l0jNXKapBLmtoc5bkH1I9DYWqZk6dBv/lFGUCJcrfbwU8f3IimTsLKEX5m+32yKRaatsmSlmCfqJ8U79dPz9onx65rXnbNlHKEvQT5Zs6hZ+15N0XrRLOx41+Pm7LI9Gaal/UNjEsEvQT43s6pZeN6sA+PLxuQi7yICdx407cWyAPU6Vk3/BAvN0j7x5OPGdtKPYUqLQ6u/JvR+H/ALgtXJF2VLJlAAAAAElFTkSuQmCC\"","export default __webpack_public_path__ + \"static/media/monitor.47018169.png\";","import \"./styles.css\";\nimport Logo from \"../../../assets/png/logo.png\";\n\nexport function Footer() {\n return (\n
\n \"logo \n
\n );\n}\n","import { useEffect, useState } from \"react\";\nimport \"./styles.css\";\nimport { FiMenu, FiX } from \"react-icons/fi\";\nimport Logo from \"../../../assets/png/logo.png\";\n\ntype NavBarProps = {\n isOnTop: boolean;\n setProps?: any;\n};\n\nexport function NavBar({ isOnTop, setProps }: NavBarProps) {\n const [onTop, setOnTop] = useState(true);\n const [translateX, setTranslateX] = useState(-200);\n\n useEffect(() => {\n setOnTop(isOnTop);\n }, [isOnTop]);\n\n return (\n
\n
\n \"logo\n
\n\n setTranslateX(0)} />\n\n {/* navbar padrao do site */}\n \n\n {/* navbar exibida para dispositivos mobile */}\n \n \n
\n
\n );\n}\n","import { useEffect, useState } from \"react\";\nimport \"./styles.css\";\n\ntype TabContentProps = {\n render: number;\n};\n\nexport function TabContent({ render }: TabContentProps) {\n const [renderTab, setRenderTab] = useState(0);\n\n useEffect(() => {\n setRenderTab(render);\n }, [render]);\n\n return (\n <>\n {renderTab === 0 && (\n <>\n
\n

\n Plataforma que fornece banco de dados do estoque de animais e sua\n distribuição na fazenda de forma didática e atualizada. Trazendo\n uma visão geral do estoque e suas movimentações com opções de\n filtros para melhor análise, além de, um painel de visão comparada\n e gestão à vista de informações sobre: nascimentos, mortes,\n compras, vendas e taxa de lotação.\n

\n\n
\n
\n
\n
Foco na coleta de dados
\n

\n Recursos para alimentação do banco de dados simples,\n didáticos e rápidos.\n

\n
\n\n
\n
Análise das Informações
\n

\n Painéis e filtros desenvolvidos com foco nas informações\n relevantes.\n

\n
\n\n
\n
Informações Georreferenciadas
\n

\n Localização para lançamento de dados e para auxílio no uso\n diário das ferramentas.\n

\n
\n\n
\n
Avisos Inteligentes
\n

\n Alertas que auxiliam na operação do dia a dia da fazenda.\n

\n
\n
\n\n {/*
\n

\n Seus animais estão sendo\n
\n acompanhados\n

\n
\n
\n

4.232

\n
animais no seu piquete 1
\n
\n\n
\n
\n
1.687
\n bezerros\n
\n\n
\n
871
\n garrotes\n
\n\n
\n
2.412
\n adultos\n
\n
\n
\n
*/}\n
\n
\n \n )}\n\n {renderTab === 1 && (\n <>\n
\n

\n Plataforma para controle e monitoramento da utilização das\n pastagens, que trabalha em conjunto ao Mapa de Gado compreendendo\n a distribuição dos animais na fazenda. Traz controles direcionados\n para uma análise do uso dos pastos e também informações off-line\n para trabalho a campo\n

\n\n
\n
\n
\n
Avaliação de Pastagem
\n

\n Relatório do status forrageiro e de infraestrutura da\n propriedade.\n

\n
\n\n
\n
Controle das Movimentações
\n

\n Análises focadas na utilização das pastagens, auxiliando no\n pastejo uniforme.\n

\n
\n\n
\n
Aplicativo Off-line
\n

\n Informações na palma da mão para tomada de decisão à campo\n

\n
\n\n
\n
Imagens de Satélite
\n

\n Imagem NDVI e mapa de calor da utilização das pastagens.\n

\n
\n
\n\n {/*
\n

\n Seus animais estão sendo\n
\n acompanhados\n

\n
\n
\n

4.232

\n
animais no sue piquete 1
\n
\n\n
\n
\n
1.687
\n bezerros\n
\n\n
\n
871
\n garrotes\n
\n\n
\n
2.412
\n adultos\n
\n
\n
\n
*/}\n
\n
\n \n )}\n\n {renderTab === 2 && (\n <>\n
\n

\n Ferramenta de gestão da suplementação e mineralização do rebanho,\n auxiliando no trabalho de planejamento nutricional, controle de\n estoques e da operação, e mensurações de consumo para análise de\n desempenho.\n

\n\n
\n
\n
\n
Controle do Estoque
\n

Controle do estoque total e nos pastos.

\n
\n\n
\n
Comunicação entre a equipe
\n

\n Canal direto de comunicação entre gestor, capataz e\n salgador.\n

\n
\n\n
\n
Controle da Operação
\n

\n Auxílio no trabalho de logística de distribuição do produto.\n

\n
\n\n
\n
Mensuração do Consumo
\n

\n Mensuração do suplemento mineral colocado no cocho e\n eventuais sobras.\n

\n
\n
\n\n {/*
\n

Sua nutrição, controlada.

\n
\n
\n

52.876 Kg

\n
\n de suplementação introduzida\n
\n no seu rebanho\n
\n
\n
\n
\n
11.412Kg
\n sais minerais\n
\n
\n
8.711
\n proteína\n
\n
\n
36.213
\n vitaminas\n
\n
\n
\n
*/}\n
\n
\n \n )}\n \n );\n}\n","import \"./styles.css\";\nimport { MdOutlineArrowDropDown } from \"react-icons/md\";\nimport { ButtonHTMLAttributes, useState } from \"react\";\n\ntype ButtonCollapseProps = ButtonHTMLAttributes & {\n label: string;\n click: () => void;\n};\n\nexport function ButtonCollapse({ label, click, ...props }: ButtonCollapseProps) {\n const [isOpen, setIsOpen] = useState(true);\n\n return (\n {\n setIsOpen(!isOpen);\n !!click && click();\n }}\n >\n {label}\n \n \n );\n}\n","import { useEffect, useState } from \"react\";\nimport \"./styles.css\";\nimport { HiChevronDoubleDown } from \"react-icons/hi\";\nimport { TalkWhatsApp } from \"../../components/LandingPage/TalkWhatsApp/Index\";\nimport MapDotted from \"../../assets/png/mapDotted.png\";\nimport Monitor from \"../../assets/png/monitor.png\";\nimport { Footer } from \"../../components/LandingPage/Footer\";\nimport { NavBar } from \"../../components/LandingPage/NavBar/Index\";\nimport { TabContent } from \"../../components/CattleMap/TabContent\";\nimport { ButtonCollapse } from \"../../components/LandingPage/ButtonCollapse/Index\";\n\n\nexport function Home() {\n const [navBarTop, setNavBarTop] = useState(false);\n const [tabSelected, setTabSelected] = useState(0);\n const [collapseOpen, setCollapseOpen] = useState>([true, true, true]);\n\n const handleNavBar = () => {\n window.scrollY >= document.documentElement.clientHeight * 0.8 || 0\n ? setNavBarTop(true)\n : setNavBarTop(false);\n };\n\n useEffect(() => {\n window.addEventListener(\"scroll\", handleNavBar, true);\n\n return () => {\n window.removeEventListener(\"scroll\", handleNavBar, true);\n };\n }, []);\n return (\n <>\n \n
\n
\n \n\n
\n
\n \"mapa\n
\n\n
\n
Plataforma Digital para
\n

Controle e Gestão das Pastagens, do Mapa de Gado e da Suplementação

\n\n
\n
\n\n
\n \n
\n
\n
\n\n
\n
\n \n
\n

\n Plataforma de Pecuária Digital, desenvolvida por quem está do lado de dentro\n da porteira.\n

\n
\n
\n Fácil de\n
\n utilizar\n
\n

\n Alimentação do banco de dados é a base para gerar informação de qualidade,\n baseado nisso, nossa plataforma foi desenvolvida com olhar de quem está no\n dia a dia do campo.\n

\n
\n\n
\n
\n Confiável e\n
\n atualizada\n
\n

\n Foco nos controles e na alimentação do sistema, utilizando a tecnologia\n para aumentar a confiabilidade e agilidade na transformação de dados em\n informações uteis para gestão.\n

\n
\n\n
\n
\n Informação\n
\n com foco\n
\n

\n Informação útil é aquela utilizada para auxiliar no planejamento, validar\n uma estratégia ou mesmo acelerar uma mudança. Estes são os controles que\n buscamos trazer, sempre de forma simples e objetiva.\n

\n
\n
\n\n
\n
\n\n \n\n\n
\n
O que Fazemos?
\n

Conheça as ferramentas do PASTEJO para sua fazenda:

\n\n
\n \n\n
\n \n
\n
\n\n {/* inicio - tabs responsivas */}\n
\n
\n {\n setTabSelected(0);\n setCollapseOpen((prev) => [!prev[0], prev[1], prev[2]]);\n }}\n />\n \n \n
\n \n\n
\n {\n setTabSelected(1);\n setCollapseOpen((prev) => [prev[0], !prev[1], prev[2]]);\n }}\n />\n \n \n
\n \n\n
\n {\n setTabSelected(2);\n setCollapseOpen((prev) => [prev[0], prev[1], !prev[2]]);\n }}\n />\n \n \n \n
\n \n {/* fim - tabs responsivas */}\n \n\n
\n
\n

\n Quer saber qual o valor do investimento para elevar sua gestão com a\n plataforma de pecuária digital PASTEJO?\n

\n \n Fale com um consultor\n \n\n
\n
\n \n\n\n