{"version":3,"sources":["../node_modules/react-pdf/node_modules/pdfjs-dist/build sync","Assets/images/logo-navbar.svg","Assets/images/wait.svg","Containers/index.tsx","Actions/Session/Types.ts","Reducers/Session/index.ts","Actions/Profile/Types.ts","Reducers/Profile/index.ts","Actions/Report/Types.ts","Services/ServiceWrapper.ts","Models/Colors.ts","Actions/Report/Actions.ts","Services/Service.ts","Services/ServiceReport.ts","Utils/NumberFormat.ts","Models/Report.ts","Reducers/Report/index.ts","Actions/Account/Types.ts","Reducers/Account/index.ts","Actions/Producer/Types.ts","Reducers/Producer/index.ts","Reducers/index.ts","Store.ts","Containers/LogIn/BoxPresentation.tsx","Components/TextField/Text.tsx","Components/TextField/index.tsx","Components/TextField/TextPass.tsx","Containers/LogIn/BoxForm.tsx","Assets/images/password.svg","Services/ServiceSession.ts","Actions/Profile/Actions.ts","Services/ServiceProfile.ts","Actions/Session/Actions.ts","Components/Loading/index.tsx","Components/ForgetPassword.tsx","Containers/LogIn/index.tsx","Components/Layout/MenuItem.tsx","Assets/images/break-bulk.svg","Assets/images/carga-anunciada.svg","Assets/images/cobre-almacenado.svg","Assets/images/cobre-loteado.svg","Assets/images/consolidado.svg","Assets/images/stacking.svg","Assets/images/config.svg","Components/Layout/Menu.tsx","Components/Layout/SideBar.tsx","Assets/images/profile-admin.svg","Assets/images/profile-worker.svg","Assets/images/profile-customer.svg","Components/Profile/index.tsx","Components/Profile/BoxProfile.tsx","Components/Profile/ChangePass.tsx","Components/Layout/NavBar.tsx","Components/Layout/index.tsx","Components/Box/index.tsx","Components/PieChart/index.tsx","Components/Balloon.tsx","Components/Popper.tsx","Components/PopperTitle.tsx","Components/SummaryTitleItem.tsx","Components/SummaryItem.tsx","Components/CardSummaryStage.tsx","Assets/images/download.svg","Components/Download.tsx","Components/BarSummary.tsx","Components/Selector.tsx","Components/FilterReport.tsx","Components/ScreenSelection.tsx","Utils/StrUtil.ts","Components/CardSummaryAnnual.tsx","Containers/Home/index.tsx","Components/CardSummary.tsx","Utils/EventUtils.ts","Assets/images/train.svg","Assets/images/vehicle.svg","Components/IconSearch.tsx","Components/History.tsx","Components/SummaryBranch.tsx","Components/ReportSummary.tsx","Containers/AnnouncedShipment/index.tsx","Containers/Stacking/index.tsx","Containers/Consolidate/index.tsx","Containers/BreakBulk/index.tsx","Containers/Bath/index.tsx","Containers/Yard/index.tsx","Containers/Account/BranchList.tsx","Containers/Account/SelectorProducer.tsx","Components/Dialog.tsx","Services/ServiceAccount.ts","Utils/UtilsAccount.ts","Containers/Account/FormAccount.tsx","Models/Account.ts","Containers/Account/DialogBranch.tsx","Containers/Account/ListAccount.tsx","Actions/Account/Actions.ts","Actions/Producer/Actions.ts","Services/ServiceProducer.ts","Containers/Account/index.tsx","Components/ViewerManual.tsx","App.tsx","serviceWorker.ts","index.tsx"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","module","exports","id","Actions","EStatusRequest","transitionStyles","entering","opacity","entered","exiting","exited","defaultStyle","transition","ReportTransition","props","React","animate","setAnimate","Component","route","component","setTimeout","Transition","in","timeout","state","style","connect","isAdmin","session","account","idProfile","routes","filter","r","name","map","exact","key","path","render","description","initialState","token","undefined","isAuthorize","isChecking","status","PENDING","asyncReducer","action","type","STATUS_SESSION","payload","ERROR_SESSION","error","CHECKING_TOKEN","REQUEST_TOKEN","CHECKED_TOKEN","RESPONSE_TOKEN","responseAuth","isAuth","message","INIT_SESSION","FETCH_FAENAS","faenas","ActionsReport","isRequest","page","meta","total","size","pages","data","current","REQUESTING_PROFILE","FETCH_PROFILE","profile","FETCH_PROFILE_LIST","pageFetch","Method","getRandomColor","Math","random","toString","companiesColor","statusColor","qualityColor","getColorCompany","index","length","getColorStatus","getColorQuality","ServiceWrapper","apiUrl","this","method","GET","body","content","headers","Headers","set","url","buildUrl","Request","mode","fetch","request","POST","PUT","DELETE","EReport","Service","wrapper","ServiceReport","idProducer","get","idBranch","idUser","resp","ok","blob","service","createActionSetProducers","producers","SET_PRODUCERS","createActionFetchStageData","producer","dispatch","stages","s","a","json","summary","SummaryProducer","transform","report","SET_STAGES","createActionFetchPort","fetchPort","then","SET_SUMMARY","catch","createActionRequestAnounced","REQUEST_ANNOUNCED","createActionReportData","res","FETCH_ANNOUNCED_LOAD","createActionClearData","Announced","Summary","FETCH_SHIPMENT","createActionsRequestShipment","REQUEST_SHIPMENT","formatAmount","amount","notCalc","t","Intl","NumberFormat","minimumFractionDigits","maximumFractionDigits","parseFloat","replace","mt","format","moment","locale","console","log","Branch","qualities","list","indexQuality","item","push","getAmount","currentQuality","quality","dgCalidadCobre","dgCarga","trim","toLowerCase","pos","details","Producer","branchs","loading","color","dcRutProductor","dcRut","dgNombreProductor","createStages","createBranch","dgNombre","parseInt","dcSucursal","dispact","includeSummary","currentProducer","i","rut","createProducer","Detail","detailsBrute","StageProducer","stage","find","dnPesoBruto","dcTonelaje","dnStockPesoBruto","dcReservaOut","indexBranch","indexStatus","currentBranch","currentStatus","itemShipment","dcCorrelativoSucursal","addQuality","dgEstadoCarga","detailStatus","detailQuality","ShipmentDateDetail","date","consolidate","breakBulk","indexOf","ShipmentSummaryBranch","ShipmentSummary","shipments","_indexShipment","_indexDates","_indexBranch","dcTipoCarga","cat","currentShipment","Shipment","category","add","dcAño","dcMes","addDate","year","month","dateMonth","padStart","currentDate","sum","currentbranch","b","dates","_indexStatus","padEnd","ShipmentDate","ShipmentStatus","amountTransform","value","getCond","val","getScheme","scheme","title","titleLabel","icon","fields","dcResolucion","tipo_Transporte","transforms","Yard","dcCelda","Bath","dnPesoNeto","dcCorrelativoNaveViaje","dgMarca","dgNave","dgTipoCarga","Stacking","dgNaveOut","dcCantidadContenedores","dcPtoDes","dfFechaHoraZarpe","BreakBulk","dcReserva","dcPuertoDescarga","Consolidate","dcDestinoFinal","dnStockPaquetes","createMapData","dataItem","fieldSearch","descriptor","field","label","Object","k","fetchAnnounced","bind","fetchYard","fetchBath","fetchBreakBulk","fetchConsolidate","fetchStacking","ActionsAccount","isRequestDashboard","isRequestAnnounced","isRequestShipment","producerAnnounced","branchAnnounced","announced","shipmentSummary","stageProducer","REQUEST_REPORT_DASHBOARD","stagesProducerNew","p","summaryStage","indexProducer","findIndex","indexStage","stagesNew","productersEditStage","producersNewStage","producterEdit","producersNew","ActionsProducer","isFail","messageFail","REQUEST_ACCOUNT","FETCH_ACCOUNT","FETCH_ACCOUNTS","ERROR_ACCOUNT","CLEAN_CURRENT_ACCOUNT","CLEAN_STATUS_ACCOUNT","STATUS_REQUEST_ACCOUNT","Session","Profile","Report","Account","REQUEST_PRODUCER","FETCH_PRODUCERS","reducers","combineReducers","middleware","thunk","w","window","enhancer","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","applyMiddleware","store","createStore","Reducers","BoxPresentation","className","align","justify","CssTextField","withStyles","root","borderColor","TextField","Text","TextPass","isHidden","setHidden","eye","position","IconButton","aria-label","onClick","onMouseDown","event","preventDefault","InputProps","endAdornment","rulesEmail","required","Form","create","hasError","form","err","getFieldError","getError","getFieldDecorator","onSubmit","evt","validateFields","errs","values","onLogIn","FormControl","width","rules","variant","margin","FormHelperText","disabled","htmlType","block","banner","onRecoveryShow","_extends","assign","target","arguments","source","prototype","hasOwnProperty","call","apply","_objectWithoutProperties","excluded","sourceKeys","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","createElement","d","_ref","svgRef","height","viewBox","ref","ForwardRef","forwardRef","ServiceSession","cred","post","JSON","stringify","delete","password","put","pageSize","createActionRequest","createActionFetchProfile","actionChecking","createActionChecking","sessionStorage","getItem","isSuccess","setToken","createActionAccount","createActionFetchFaenas","fetchFaenas","me","createActionResponseAuth","createActionStatus","createActionError","auth","credential","login","result","alert","Notification","setItem","checking","Loading","src","Logo","alt","LinearProgress","FormChange","getFieldValue","invalid","onChange","flex","mapActions","onChangeStatus","ForgetPasswordword","COMPLETE","FAIL","notification","success","onClose","extra","detail","footer","onCancel","visible","isOpen","PROCESS","display","LogIn","recovery","animated","Content","xs","sm","md","lg","xl","xxl","renderContent","tip","spinning","CSSTransition","classNames","unmountOnExit","onLogin","onRecoveryToggle","onRecovery","setStatus","setState","MenuItem","active","to","text","x","y","enableBackground","xmlSpace","points","_ref5","_ref6","_ref7","_ref8","_ref9","_ref10","_ref11","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","Icon","Menu","withRouter","location","pathname","cx","cy","EProfile","BoxProfile","open","classProfile","email","onChangePass","onLogout","logout","removeItem","href","reload","AvatarAccount","hiddenOld","ChangePassword","isBox","closable","noClose","node","setOpen","openChange","setOpenChange","close","document","removeEventListener","listener","contains","toggle","addEventListener","profileClass","Admin","Worker","Customer","renderIcon","n","onToggle","NavBar","LogoNavBar","username","LayoutComponent","goLogin","basename","hasSider","params","URLSearchParams","search","onRecoverPass","onAccount","onChecking","children","passwordCurrent","passwordOld","passwordNew","ActionCreate","changePassword","recoveryReq","recoveryPass","Box","loadingText","PieChart","sort","reverse","c","reduce","isAnimationActive","outerRadius","startAngle","paddingAngle","dataKey","nameKey","innerRadius","RADIAN","PI","midAngle","endAngle","fill","percent","sin","cos","sx","sy","mx","my","ex","ey","eex","textAnchor","stroke","dy","substr","toFixed","entry","offset","fontWeight","fontSize","marginTop","Balloon","background","borderRadius","Popper","overlay","paragraph","rows","borderBottom","branch","sb","getTotalBranch","PopperTitle","SummaryTitleItem","titleItem","SummaryItem","CardSummaryStage","producersStage","isReady","dataRender","sp","dr","fillRule","clipRule","isDownload","Download","onDownload","warning","cancel","Message","downloadExcel","URL","createObjectURL","download","appendChild","click","remove","overlayClassName","trigger","LabelBar","dx","fontFamily","BarSummary","dataBranch","dataBrute","unix","top","right","left","bottom","vertical","slice","trunc","Selector","sel","setSel","allowClear","dropdownClassName","placeholder","Option","namea","nameb","FilterReport","setReady","selected","ignoreFilter","onChangeProducer","toUpperCase","onChangeBranch","ScreenSelection","Wait","capitalize","str","charAt","Header","CardSummaryAnnual","useState","setProducer","getProducer","setBranch","objProducer","setObjProducer","setAnnounced","getBranch","j","useEffect","onSummary","shipmentData","Home","onFaenas","loadingDashboard","span","getProducers","requestShipment","getSummary","shipmment","onShipment","clearShipment","fetchSummary","createActionFetchSummary","order","CardSummary","header","titleGraph","EventUtils","func","wait","lastTimeOut","clearTimeout","counter","IconSearch","CardHistoryItem","CardHistoryItemTitle","CardHistory","gutter","History","reportType","setSearch","debounce","pagination","grid","column","dataSource","trans","renderItem","Item","SummaryBranch","selectedBranch","q","ReportSummary","onClear","requestAction","notSelectedProducer","showBox","prefix","section","suffix","getNameProducer","renderSummary","renderBranch","createActionSetProducer","AnnouncedShipment","ProducerComponent","selectedRowKeys","setSelected","marginBottom","rowKey","record","rowSelection","selectedRows","onSelected","getCheckboxProps","Column","dataIndex","BranchList","SelectorProducer","notFoundContent","optionFilterProp","filterOption","input","option","onDeselect","onDeselected","psd","Dialog","ServiceAccount","filters","uri","filtersKey","accountData","assingData","currentSearch","searchEmail","rule","callback","test","fetchPage","filter_Username","EAccountStatus","setBranchs","isLoadData","setLoadData","setFieldsValue","isEdit","producersSelectorData","setCurrent","selection","onCleanStatus","onCleanCurrent","history","isProcess","dataSend","brandsAdd","producersRut","permiso","rutProductor","sucursal","getBranchsToAdd","QuantityBranch","brandsDel","producersList","l","getBranchsToDel","f","onSend","isError","operation","renderModal","initialValue","validator","profiles","branchNew","newCurrent","getProducersSelected","ghost","DialogBranch","emptyText","ListAccount","openFaena","setOpenFaena","openChangePass","setChangePass","setProfile","pageOption","setPageOption","openDrawer","setOpenDrawer","setRecord","onFetch","onClean","showDrawer","onFetchData","placement","getContainer","quantityBranch","ACTIVE","sorter","columnKey","menu","INACTIVE","onConfirm","onDelete","okText","cancelText","setStatusRequest","cleanPassword","actionRequest","createActionfetchAccounts","options","createActionStatusAccount","createActionRequestProducer","AccountContainer","onFetchAccountPage","onFetchProducers","onFetchProfiles","match","onSave","args","onFetchAccount","onCreateAccount","onDeleteAccount","first","createActionFetchAccount","edit","CREATE_ACCOUNT","createActionCreateAccount","DELETE_ACCOUNT","createActionDelete","pdfjs","GlobalWorkerOptions","workerSrc","version","numPages","setNumPages","getUrl","process","file","onLoadSuccess","load","pageNumber","App","Store","Boolean","hostname","ReactDOM","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"uGAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BO,EAAOC,QAAUR,EACjBA,EAAoBS,GAAK,K,oBCRzBF,EAAOC,QAAU,IAA0B,yC,0CCA3CD,EAAOC,QAAU,IAA0B,kC,yiDCoB3C,IClBYE,ECEAC,EFgBNC,EAAmB,CACvBC,SAAU,CAAEC,QAAS,GACrBC,QAAU,CAAED,QAAS,GACrBE,QAAU,CAAEF,QAAS,GACrBG,OAAS,CAAEH,QAAS,IAKhBI,EAAe,CACnBC,WAAW,WAAD,OAHK,IAGL,kBACVL,QAAS,GAGLM,EAAmB,SAACC,GAA6B,IAAD,EACvBC,YAAe,GADQ,mBAC9CC,EAD8C,KACrCC,EADqC,KAE/CC,EAAYJ,EAAMK,MAAMC,UAI9B,OAHAC,YAAW,WACVJ,GAAW,KACT,KACI,gBAACK,EAAA,EAAD,CAAYC,GAAIP,EAASQ,QAAS,MACtC,SAACC,GAAD,OACE,uBAAKC,MAAK,KACLf,EADK,GAELN,EAAiBoB,KAEzBP,OAsBYS,eAJO,SAACF,GAAD,MAAuB,CAC5CG,QAASH,EAAMI,SAAWJ,EAAMI,QAAQC,SAA+C,IAApCL,EAAMI,QAAQC,QAAQC,aAG3DJ,EAZA,SAACb,GACf,IAAMkB,EAAmBlB,EAAMkB,OAC/B,OAAO,gBAAC,IAAD,KAASA,EAAOC,QAAO,SAAAC,GAAC,MAAe,QAAXA,EAAEC,MAA8B,QAAXD,EAAEC,MAAkBrB,EAAMc,WAAUQ,KAAI,SAAAF,GAAC,OAChG,gBAAC,IAAD,CAAOG,MA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BAAC,GAAD,OAEZ,CACCe,KAAM,MACNI,KAAM,kBACNnB,UAAW,kBAAC,GAAD,OAEZ,CACCe,KAAM,SACNI,KAAM,UACNnB,UAAW,kBAAC,GAAD,QAaE03B,GATO,WACrB,OAAQ,kBAAC,IAAD,CAAUhjB,MAAOijB,IACxB,kBAAC,GAAD,KACC,kBAAC,EAAD,CAAQ/2B,OAAQA,QCzDCg3B,QACW,cAA7BvjB,OAAO2L,SAAS6X,UAEe,UAA7BxjB,OAAO2L,SAAS6X,UAEhBxjB,OAAO2L,SAAS6X,SAAS5B,MACvB,2DCZN6B,IAAS12B,OAAO,kBAAC,GAAD,MAASsgB,SAASqW,eAAe,SDmI3C,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMzwB,MAAK,SAAA0wB,GACjCA,EAAaC,kB","file":"static/js/main.36ad981d.chunk.js","sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 192;","module.exports = __webpack_public_path__ + \"static/media/logo-navbar.8e881dee.svg\";","module.exports = __webpack_public_path__ + \"static/media/wait.33ab2d38.svg\";","import * as React from 'react';\nimport Emply from 'antd/lib/empty';\nimport { Route, Switch } from 'react-router-dom';\nimport { Transition } from 'react-transition-group';\nimport { IRoute } from './index';\nimport { IStateApp } from '../Reducers/index';\nimport { connect } from 'react-redux';\n\nexport interface IRoute {\n\tname: string;\n\tpath: string;\n\tcanWrite?: boolean;\n\tcomponent: React.ReactElement;\n\texact?: boolean;\n}\n\nexport interface ITransitionProps {\n\troute: IRoute;\n}\n\nconst transitionStyles = {\n entering: { opacity: 1 },\n entered: { opacity: 1 },\n exiting: { opacity: 0 },\n exited: { opacity: 0 },\n} as any;\n\nconst duration = 300;\n\nconst defaultStyle = {\n transition: `opacity ${duration}ms ease-in-out`,\n opacity: 0,\n}\n\nconst ReportTransition = (props: ITransitionProps) => {\n\tconst [animate, setAnimate] = React.useState(false);\n\tconst Component = props.route.component as any;\n\tsetTimeout(() => {\n\t\tsetAnimate(true);\n\t}, 100);\n\treturn \n\t\t {(state: any) => (\n
\n\t\t{Component}\n\t\t
)}\n\t
;\n}\n\nexport interface IRoutesProps {\n\troutes: IRoute[];\n\tisAdmin?: boolean;\n}\n\nconst Routes = (props: IRoutesProps) => {\n\tconst routes: IRoute[] = props.routes;\n\treturn {routes.filter(r => r.name !== 'var' || (r.name === 'var' && props.isAdmin)).map(r => (\n\t\t } />))}\n\t\t } />\n\t\n};\n\nconst mapProps: any = (state: IStateApp) => ({\n\tisAdmin: state.session && state.session.account && state.session.account.idProfile === 1\n});\n\nexport default connect(mapProps)(Routes) as any;\n","import { IAccount } from \"../../Models/Account\";\n\nexport enum Actions {\n\tCHECKING_TOKEN = 'CHECKING_TOKEN',\n\tCHECKED_TOKEN = 'CHECKED_TOKEN',\n\tREQUEST_TOKEN = 'REQUEST_TOKEN',\n\tRESPONSE_TOKEN = 'RESPONSE_TOKEN',\n\tINIT_SESSION = 'INIT_SESSION',\n\tFETCH_FAENAS = 'FETCH_FAENAS',\n\tSTATUS_SESSION = 'STATUS_SESSION',\n\tERROR_SESSION = 'ERROR_SESSION'\n}\n\nexport interface IActionRequest {\n\ttype: Actions.REQUEST_TOKEN;\n}\n\nexport interface IActionChecked {\n\ttype: Actions.CHECKED_TOKEN;\n\tpayload: IResponseAuth;\n}\n\nexport interface IActionChecking {\n\ttype: Actions.CHECKING_TOKEN;\n}\n\nexport interface IResponseAuth {\n\tisAuth: boolean;\n\ttoken?: string;\n\tmessage: string;\n}\n\nexport interface IActionResponse {\n\ttype: Actions.RESPONSE_TOKEN;\n\tpayload: IResponseAuth;\n}\n\nexport interface IActionSession {\n\ttype: Actions.INIT_SESSION;\n\tpayload: IAccount;\n}\n\n\nexport interface IActionFaenas {\n\ttype: Actions.FETCH_FAENAS,\n\tpayload: any[];\n}\n","import { AnyAction } from 'redux';\nimport { Actions, IResponseAuth } from '../../Actions/Session/Types';\nimport { IAccount } from '../../Models/Account';\n\nexport enum EStatusRequest {\n\tPENDING,\n\tPROCESS,\n\tCOMPLETE,\n\tFAIL\n}\n\nexport interface ISessionState {\n\ttoken?: string;\n\tisChecking: boolean;\n\tisAuthorize: boolean;\n\tmessage?: string;\n\talert?: string;\n\taccount?: IAccount;\n\tstatus: EStatusRequest;\n\terror?: any;\n}\n\nconst initialState = {\n\ttoken: undefined,\n\tisAuthorize: false,\n\tisChecking: false,\n\tstatus: EStatusRequest.PENDING\n};\n\nconst asyncReducer = (\n\tstate: ISessionState = initialState,\n\taction: AnyAction\n) => {\n\tswitch (action.type) {\n\t\tcase Actions.STATUS_SESSION:\n\t\t\treturn {...state, status: action.payload };\n\t\tcase Actions.ERROR_SESSION:\n\t\t\treturn {...state, error: action.payload }\n\t\tcase Actions.CHECKING_TOKEN:\n\t\t\t\treturn {...state, isChecking: true };\n\t\tcase Actions.REQUEST_TOKEN:\n\t\t\treturn {...state, isChecking: true };\n\t\tcase Actions.CHECKED_TOKEN:\n\t\tcase Actions.RESPONSE_TOKEN:\n\t\t\tconst responseAuth = action.payload as IResponseAuth;\n\t\t\treturn {...state,\n\t\t\t\tisChecking: false,\n\t\t\t\tisAuthorize: responseAuth.isAuth,\n\t\t\t\ttoken: responseAuth.token,\n\t\t\t\tmessage: responseAuth.message\n\t\t\t};\n\t\tcase Actions.INIT_SESSION:\n\t\t\tconst account = action.payload;\n\t\t\treturn {...state,\n\t\t\t\taccount\n\t\t\t};\n\t\tcase Actions.FETCH_FAENAS:\n\t\t\tconst faenas = action.payload;\n\t\t\treturn {...state, faenas };\n\t}\n\treturn state;\n};\n\nexport default asyncReducer;\n","import { IPage, IProfile } from '../../Models/Security';\n\nexport enum Actions {\n\tREQUESTING_PROFILE = 'REQUESTING_PROFILE',\n\tFETCH_PROFILE_LIST = 'FETCH_PROFILE_LIST',\n\tFETCH_PROFILE = 'FETCH_PROFILE'\n}\n\nexport interface IActionFetchProfileList {\n\ttype: Actions.FETCH_PROFILE_LIST;\n\tpayload: IPage;\n}\n\nexport interface IActionFetchProfile {\n\ttype: Actions.FETCH_PROFILE;\n\tpayload: IProfile;\n}\n\nexport interface IActionRequestingProfile {\n\ttype: Actions.REQUESTING_PROFILE;\n}\n","import { AnyAction } from 'redux';\nimport { Actions } from '../../Actions/Profile/Types';\nimport { IPage, IProfile } from '../../Models/Security';\n\nexport interface IProfileState {\n\n\tisRequest: boolean;\n\tpage: IPage;\n\tcurrent?: IProfile;\n\tfaenas: any[];\n}\n\nconst initialState = {\n\tisRequest: false,\n\tpage: {\n\t\tmeta: {\n\t\t\ttotal: 0,\n\t\t\tpage: 0,\n\t\t\tsize: 0,\n\t\t\tpages: 0\n\t\t},\n\t\tdata: []\n\t},\n\tcurrent: undefined,\n\tfaenas: []\n};\n\nconst asyncReducer = (\n\tstate: IProfileState = initialState,\n\taction: AnyAction\n) => {\n\tswitch (action.type) {\n\t\tcase Actions.REQUESTING_PROFILE:\n\t\t\treturn {...state, isRequest: !state.isRequest };\n\t\tcase Actions.FETCH_PROFILE:\n\t\t\tconst profile = action.payload as IProfile;\n\t\t\treturn {...state, current: profile };\n\t\tcase Actions.FETCH_PROFILE_LIST:\n\t\t\tconst pageFetch = action.payload as IPage;\n\t\t\treturn {...state, page: pageFetch };\n\t}\n\treturn state;\n};\n\nexport default asyncReducer;\n","export enum ActionsReport {\n\tREQUEST_REPORT_DASHBOARD = 'REQUEST_REPORT_DASHBOARD',\n\tREQUEST_ANNOUNCED = 'REQUEST_ANNOUNCED',\n\tREQUEST_SHIPMENT = 'REQUEST_SHIPMENT',\n\tSET_SUMMARY = 'SET_SUMMARY',\n\tSET_PRODUCERS = 'SET_PRODUCERS',\n\tFETCH_SUMMARY = 'FETCH_SUMMARY',\n\tFETCH_ANNOUNCED_LOAD = 'FETCH_ANNOUNCED_LOAD',\n\tFETCH_SHIPMENT = 'FETCH_SHIPMENT',\n\tSET_STAGES = 'SET_STAGES'\n}\n","export enum Method {\n\tGET = 'GET',\n\tPOST = 'POST',\n\tPUT = 'PUT',\n\tDELETE = 'DELETE'\n}\n\nexport default class ServiceWrapper {\n\n\tprivate static token?: string;\n\tprivate apiUrl: string = '/seguimiento/api';\n\n\tprivate buildUrl(path: string): string {\n\t\treturn `${this.apiUrl}\\\\${path}`;\n\t}\n\n\tpublic static setToken(token: string) {\n\t\tServiceWrapper.token = token;\n\t}\n\n\tpublic request(path: string = '', method: Method = Method.GET, body?: string |FormData | ArrayBuffer, content: string = 'application/json') {\n\t\tvar headers = new Headers();\n\t\theaders.set('Content-Type', content);\n\t\tif (ServiceWrapper.token) {\n\t\t\theaders.set('Authorization', `Bearer ${ServiceWrapper.token}`);\n\t\t}\n\t\tconst url = this.buildUrl(path);\n\t\tconst req = new Request(url, {\n\t\t\tmode: 'cors',\n\t\t\theaders,\n\t\t\tmethod,\n\t\t\tbody\n\t\t});\n\t\treturn fetch(req);\n\t}\n\n\tpublic get(path: string) {\n\t\treturn this.request(path, Method.GET);\n\t}\n\n\tpublic post(path: string, body: string |FormData | ArrayBuffer) {\n\t\treturn this.request(path, Method.POST, body);\n\t}\n\n\tpublic put(path: string, body: string |FormData | ArrayBuffer) {\n\t\treturn this.request(path, Method.PUT, body);\n\t}\n\n\tpublic delete(path: string) {\n\t\treturn this.request(path, Method.DELETE);\n\t}\n}\n","export const getRandomColor = () => \"#\"+((1<<24)*Math.random()|0).toString(16);\n\nconst companiesColor = [\n\t'#DD81A9',\n\t'#C9C795',\n\t'#FFBC75',\n\t'#FFDF83',\n\t'#BDD697',\n\t'#C6B099',\n\t'#5DC194',\n\t'#6ADAEA',\n\t'#7B87BC'\n];\n\nconst statusColor = [\n\t'#96501E',\n\t'#B95C1A',\n\t'#C47F40',\n\t'#E2813A',\n\t'#F0A940',\n\t'#FACF7D'\n];\n\nconst qualityColor = [\n\t'#04507A',\n\t'#0760A1',\n\t'#2176C4',\n\t'#3996EB',\n\t'#3EB3F5',\n\t'#94D3EE',\n\t'#043B7A',\n\t'#073FA1',\n\t'#2158C4',\n\t'#3975EB',\n\t'#3E92F5',\n\t'#94C0EE',\n\t'#04177A',\n\t'#11279A',\n\t'#2C39AF',\n\t'#3754EE',\n\t'#426FE5',\n\t'#94ADEE',\n\t'#064568',\n\t'#10678C',\n\t'#266898',\n\t'#308DC1',\n\t'#3CAFD3',\n\t'#89B9DB',\n\t'#74BCC7',\n\t'#32C7C8',\n\t'#44B2B2',\n\t'#32A0AE',\n\t'#12666B',\n\t'#048090'\n];\n\nexport const getColorCompany = (index: number) => {\n\tif (index >= companiesColor.length ) {\n\t\treturn getRandomColor();\n\t}\n\treturn companiesColor[index];\n}\n\nexport const getColorStatus = (index: number) => {\n\tif (index >= statusColor.length) {\n\t\treturn getRandomColor();\n\t}\n\treturn statusColor[index];\n}\n\nexport const getColorQuality = (index: number) => {\n\tif (index >= qualityColor.length) {\n\t\treturn getRandomColor();\n\t}\n\treturn qualityColor[index];\n}\n","import ServiceReport from \"../../Services/ServiceReport\";\nimport {\n\tISummaryPort,\n\tSummaryProducer,\n\tIError,\n\tProducer,\n\tShipmentSummary,\n} from \"../../Models/Report\";\nimport { ActionsReport } from \"./Types\";\n\nconst service = new ServiceReport();\n\nexport const createActionRequest = () => ({\n\ttype: ActionsReport.REQUEST_REPORT_DASHBOARD\n});\n\nexport const createActionSetProducers = (producers: Producer[]) => ({\n\ttype: ActionsReport.SET_PRODUCERS,\n\tpayload: producers\n});\n\nexport const createActionFetchStageData = (idUser: number, producer: Producer) => {\n\treturn (dispatch: any) => {\n\n\t\tproducer.stages.map(async s => {\n\t\t\tconst r = await s.fetch(idUser, producer.id);\n\t\t\tlet data = undefined;\n\t\t\tif (r.ok) {\n\t\t\t\tdata = await r.json();\n\t\t\t}\n\t\t\tlet summary: SummaryProducer | undefined;\n\t\t\tif (!data || \"Status\" in data[0]) {\n\t\t\t\tsummary = new SummaryProducer();\n\t\t\t} else {\n\t\t\t\tsummary = SummaryProducer.transform(data as ISummaryPort[]);\n\t\t\t}\n\t\t\tsummary.idProducer = producer.id;\n\t\t\tsummary.report = s.report;\n\t\t\tdispatch({\n\t\t\t\ttype: ActionsReport.SET_STAGES,\n\t\t\t\tpayload: summary\n\t\t\t})\n\t\t})\n\t}\n}\n\nexport const createActionFetchPort = (id: number, idProducer: string) => {\n\treturn (dispatch: any) => {\n\t\tservice\n\t\t\t.fetchPort(id, idProducer)\n\t\t\t.then(async r => {\n\t\t\t\tconst data: ISummaryPort[] | IError[] = await r.json();\n\t\t\t\tlet summary: SummaryProducer | undefined;\n\t\t\t\tif (\"Status\" in data[0]) {\n\t\t\t\t\tsummary = new SummaryProducer();\n\t\t\t\t\tsummary.idProducer = idProducer;\n\t\t\t\t} else {\n\t\t\t\t\tsummary = SummaryProducer.transform(data as ISummaryPort[]);\n\t\t\t\t\tsummary.idProducer = idProducer;\n\t\t\t\t}\n\t\t\t\tdispatch({ type: ActionsReport.SET_SUMMARY, payload: summary });\n\n\t\t\t})\n\t\t\t.catch(r => {\n\t\t\t\tconst summary = new SummaryProducer();\n\t\t\t\tsummary.idProducer = idProducer;\n\t\t\t\tdispatch({ type: ActionsReport.SET_SUMMARY, payload: summary });\n\t\t\t});\n\t};\n};\n\nexport enum EReport {\n\tAnnounced,\n\tSummary,\n\tStacking,\n\tConsolidate,\n\tBreakBulk,\n\tBath,\n\tYard\n}\n\nexport const createActionRequestAnounced = () => ({\n\ttype: ActionsReport.REQUEST_ANNOUNCED\n})\n\n\nexport const createActionReportData = (fetch: Promise) => {\n\treturn (dispatch: any) => {\n\t\tdispatch(createActionRequestAnounced());\n\t\tfetch\n\t\t\t.then(async r => {\n\t\t\t\tconst data = await r.json();\n\t\t\t\tconst res = SummaryProducer.transform(data);\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionsReport.FETCH_ANNOUNCED_LOAD,\n\t\t\t\t\tpayload: res\n\t\t\t\t});\n\t\t\t\tdispatch(createActionRequestAnounced());\n\t\t\t})\n\t\t\t.catch(e => {});\n\t};\n};\n\nexport const createActionFetchSummary = (id: number, idProducer: string, idBranch: number) => {\n\treturn (dispatch: any) => {\n\t\tdispatch(createActionsRequestShipment);\n\t\tservice\n\t\t\t.fetchSummary(id, idProducer, idBranch)\n\t\t\t.then(async r => {\n\t\t\t\tdispatch(createActionsRequestShipment);\n\t\t\t\tconst data = await r.json();\n\t\t\t\tconst res = ShipmentSummary.create(data);\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionsReport.FETCH_SHIPMENT,\n\t\t\t\t\tpayload: res\n\t\t\t\t});\n\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tdispatch(createActionsRequestShipment);\n\t\t\t});\n\t};\n};\n\nexport const createActionClearData = (report: EReport) => {\n\treturn (dispatch: any) => {\n\t\tswitch (report) {\n\t\t\tcase EReport.Announced:\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionsReport.FETCH_ANNOUNCED_LOAD,\n\t\t\t\t\tpayload: undefined\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase EReport.Summary:\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: ActionsReport.FETCH_SHIPMENT,\n\t\t\t\t\t\tpayload: undefined\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t}\n\t};\n};\n\nexport const createActionsRequestShipment = {\n\ttype: ActionsReport.REQUEST_SHIPMENT\n\n}\n\nexport const createActionSetBranch = (\n\tid: number,\n\tidProducer: string,\n\tidBranch: number\n) => {\n\treturn (dispatch: any) => {\n\t\tdispatch(createActionClearData(EReport.Summary));\n\t}\n}\n\nexport const createActionSetProducer = (\n\tid: number,\n\tidProducer: string,\n\treport: EReport\n) => {\n\treturn (dispatch: any) => {\n\t\tswitch (report) {\n\t\t\tcase EReport.Announced:\n\t\t\t\treturn dispatch(createActionReportData(service.fetchAnnounced(id, idProducer)));\n\t\t\tcase EReport.Stacking:\n\t\t\t\treturn dispatch(createActionReportData(service.fetchStacking(id, idProducer)));\n\t\t\tcase EReport.Consolidate:\n\t\t\t\treturn dispatch(createActionReportData(service.fetchConsolidate(id, idProducer)));\n\t\t\tcase EReport.BreakBulk:\n\t\t\t\treturn dispatch(createActionReportData(service.fetchBreakBulk(id, idProducer)));\n\t\t\tcase EReport.Yard:\n\t\t\t\treturn dispatch(createActionReportData(service.fetchYard(id, idProducer)));\n\t\t\tcase EReport.Bath:\n\t\t\t\t\treturn dispatch(createActionReportData(service.fetchBath(id, idProducer)));\n\t\t\tcase EReport.Summary:\n\t\t}\n\t};\n};\n","import ServiceWrapper from \"./ServiceWrapper\";\n\nexport default class Service {\n\tprotected wrapper: ServiceWrapper;\n\tconstructor() {\n\t\tthis.wrapper = new ServiceWrapper();\n\t}\n}\n","import Service from \"./Service\";\n\nexport default class ServiceReport extends Service {\n\tpublic fetchPort(id: number, idProducer: string) {\n\t\treturn this.wrapper.get(`report/port/${id}/${idProducer}/99`);\n\t}\n\n\tpublic fetchPortTotal(id: number) {\n\t\treturn this.wrapper.get(`report/total-port/${id}`);\n\t}\n\n\tpublic fetchAnnounced(id: number, idProducer: string) {\n\t\treturn this.wrapper.get(`report/transit-branch/${id}/${idProducer}/99`);\n\t}\n\n\tpublic fetchBath(id: number, idProducer: string) {\n\t\treturn this.wrapper.get(`report/batch-producer/${id}/${idProducer}/99`);\n\t}\n\n\tpublic fetchYard(id: number, idProducer: string) {\n\t\treturn this.wrapper.get(`report/yard-producer/${id}/${idProducer}/99`);\n\t}\n\n\tpublic fetchBreakBulk(id: number, idProducer: string) {\n\t\treturn this.wrapper.get(`report/board-free/${id}/${idProducer}/99`);\n\t}\n\n\tpublic fetchConsolidate(id: number, idProducer: string) {\n\t\treturn this.wrapper.get(`report/consolidate-producer/${id}/${idProducer}/99`);\n\t}\n\n\tpublic fetchStacking(id: number, idProducer: string) {\n\t\treturn this.wrapper.get(`report/stacking-producer/${id}/${idProducer}/99`);\n\t}\n\n\tpublic fetchSummary(id: number, idProducer: string, idBranch: number) {\n\t\treturn this.wrapper.get(`report/summary/${id}/${idProducer}/${idBranch}`);\n\t}\n\n\tpublic async downloadExcel(idUser: number, idProducer: string) {\n\t\ttry {\n\t\t\tconst resp = await this.wrapper.get(`report/state-board/${idUser}/${idProducer}/99`);\n\t\t\tif (!resp.ok) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn await resp.blob()\n\t\t} catch(e) {\n\t\t\treturn null;\n\t\t}\n\t}\n}\n","export const formatAmount = (amount: number | string, notCalc: boolean = false) => {\n\tconst t = new Intl.NumberFormat(\"es-CL\", {\n\t\tminimumFractionDigits: 2,\n\t\tmaximumFractionDigits: 2\n\t});\n\tif (typeof amount === 'string') {\n\t\tamount = parseFloat(amount.replace(',', '.'));\n\t}\n\tconst mt = notCalc ? amount : amount / 1000 / 1000;\n\treturn t.format(mt);\n}\n","import { IFaena } from './Report';\nimport { getColorCompany } from './Colors';\nimport moment from 'moment';\nimport 'moment/locale/es';\nimport { EReport } from '../Actions/Report/Actions';\nimport { ReactElement } from 'react';\nimport { formatAmount } from '../Utils/NumberFormat';\nimport ServiceReport from '../Services/ServiceReport';\n\nmoment.locale('es');\n\nconsole.log('Locale: ' + moment.locale());\n\nexport interface IFaena {\n\tdcRutProductor: string;\n\tdcSucursal: string;\n\tdgNombre: string;\n\tdgNombreProductor: string;\n}\n\nexport class Branch {\n\tpublic name: string = '';\n\tpublic id: number = -1;\n\tpublic total: number = 0;\n\tpublic qualities: Summary[] = [];\n\tpublic list: any[] = [];\n\tprivate indexQuality: any = {};\n\tpublic addQuality(item: any) {\n\t\tthis.list.push(item);\n\t\tconst amount = SummaryProducer.getAmount(item);\n\t\tlet currentQuality: any = undefined;\n\t\tconst quality = (item.dgCalidadCobre || item.dgCarga || '').trim();\n\t\tif (quality.toLowerCase() in this.indexQuality) {\n\t\t\tconst index = this.indexQuality[quality.toLowerCase()].pos;\n\t\t\tcurrentQuality = this.qualities[index];\n\t\t} else {\n\t\t\tcurrentQuality = new Summary();\n\t\t\tcurrentQuality.name = quality;\n\t\t\tcurrentQuality.details = [];\n\t\t\tthis.qualities.push(currentQuality);\n\t\t\tthis.indexQuality[quality.toLowerCase()] = {\n\t\t\t\tpos: this.qualities.length - 1\n\t\t\t};\n\t\t}\n\t\tcurrentQuality.total += amount;\n\t}\n}\n\nexport class Producer {\n\tpublic id: string = '';\n\tpublic name: string = '';\n\tpublic branchs: Branch[] = [];\n\tpublic summary: SummaryProducer = new SummaryProducer();\n\tpublic loading: boolean = true;\n\tpublic color: string = '';\n\tpublic stages: ISummaryStage[] = [];\n\n\tprivate static createProducer(data: IFaena) {\n\t\tconst res = new Producer();\n\t\tres.id = data.dcRutProductor || (data as any).dcRut;\n\t\tres.name = data.dgNombreProductor;\n\t\tres.stages = createStages();\n\t\tres.branchs.push(this.createBranch(data));\n\t\treturn res;\n\t}\n\n\tprivate static createBranch(data: IFaena) {\n\t\tconst res = new Branch();\n\t\tres.name = data.dgNombre;\n\t\tres.id = parseInt(data.dcSucursal, 10);\n\t\treturn res;\n\t}\n\n\tpublic static transform(\n\t\tdata: IFaena[],\n\t\tid: number,\n\t\tfetch: (id: number, idProducer: string) => void,\n\t\tdispact: any,\n\t\tincludeSummary: boolean = true\n\t): Producer[] {\n\t\tconst res: Producer[] = [];\n\t\tconst index = {} as any;\n\t\tlet currentProducer: Producer | undefined = undefined;\n\t\tfor (let i = 0; i < data.length; i += 1) {\n\t\t\tconst item = data[i];\n\t\t\tconst rut = item.dcRutProductor || (item as any).dcRut;\n\t\t\tif (rut in index) {\n\t\t\t\tcurrentProducer = res[index[rut].pos];\n\t\t\t\t(currentProducer as Producer).branchs.push(this.createBranch(item));\n\t\t\t} else {\n\t\t\t\tcurrentProducer = this.createProducer(item);\n\t\t\t\tcurrentProducer.color = getColorCompany(res.length);\n\t\t\t\tif (includeSummary) {\n\t\t\t\t\tdispact(fetch(id, currentProducer.id));\n\t\t\t\t}\n\t\t\t\tres.push(currentProducer);\n\t\t\t\tindex[rut] = {\n\t\t\t\t\tpos: res.length - 1\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n}\n\nexport interface IError {\n\tStatus: string;\n\tDescripcion: string;\n}\n\nexport interface ISummaryPort {\n\tdcCorrelativoSucursal: string;\n\tdcRutProductor: string;\n\tdgCalidadCobre: string;\n\tdgEstadoCarga: string;\n\tdgNombre: string;\n\tdnPesoBruto: string;\n}\n\nexport class Detail {\n\tpublic name: string = '';\n\tpublic total: number = 0;\n}\n\nexport class Summary {\n\tpublic name: string = '';\n\tpublic color: string = '';\n\tpublic details?: Detail[] = [];\n\tpublic detailsBrute?: any[] = [];\n\tpublic total: number = 0;\n}\n\nexport class StageProducer {\n\tpublic producer: Producer = new Producer();\n\tpublic stages: ISummaryStage[] = [];\n\n\tpublic static isReady(stage: StageProducer) {\n\t\treturn stage.stages.find(s => s.loading) == null;\n\t}\n}\n\nexport class SummaryProducer {\n\tpublic idProducer: string = '';\n\tpublic branchs: Branch[] = [];\n\tpublic status: Summary[] = [];\n\tpublic quality: Summary[] = [];\n\tpublic total: number = 0;\n\tpublic report?: EReport;\n\n\tpublic static getAmount(data: any) {\n\t\tif (data.dnPesoBruto) {\n\t\t\treturn parseFloat(data.dnPesoBruto.replace(',', '.'));\n\t\t}\n\t\tif (data.dcTonelaje) {\n\t\t\treturn parseFloat(data.dcTonelaje.replace(',', '.'));\n\t\t}\n\n\t\tif (data.dnStockPesoBruto) {\n\t\t\treturn parseFloat(data.dnStockPesoBruto.replace(',', '.'));\n\t\t}\n\t\tif (data.dcReservaOut) {\n\t\t\treturn parseFloat(data.dcReservaOut.replace(',', '.'));\n\t\t}\n\t\treturn -1;\n\t}\n\n\tpublic static transform(data: ISummaryPort[] | IAnnouncedShipmentResponse[]) {\n\t\tconst res = new SummaryProducer();\n\t\tconst indexBranch = {} as any;\n\t\tconst indexStatus = {} as any;\n\t\tconst indexQuality = {} as any;\n\t\tlet currentBranch: Branch | undefined = undefined;\n\t\tlet currentStatus: Summary | undefined = undefined;\n\t\tlet currentQuality: Summary | undefined = undefined;\n\t\tfor (let i = 0; i < data.length; i += 1) {\n\t\t\ttry {\n\t\t\t\tconst item = data[i] as ISummaryPort;\n\t\t\t\tconst itemShipment = data[i] as IAnnouncedShipmentResponse;\n\t\t\t\tconst amount = this.getAmount(item);\n\t\t\t\tres.total += amount;\n\n\t\t\t\tif (item.dcCorrelativoSucursal in indexBranch) {\n\t\t\t\t\tconst index = indexBranch[item.dcCorrelativoSucursal].pos;\n\t\t\t\t\tcurrentBranch = res.branchs[index];\n\t\t\t\t} else {\n\t\t\t\t\tcurrentBranch = new Branch();\n\t\t\t\t\tcurrentBranch.name = item.dgNombre;\n\t\t\t\t\tcurrentBranch.id = parseInt(item.dcCorrelativoSucursal, 10);\n\t\t\t\t\tres.branchs.push(currentBranch);\n\t\t\t\t\tindexBranch[item.dcCorrelativoSucursal] = {\n\t\t\t\t\t\tpos: res.branchs.length - 1\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tcurrentBranch.addQuality(item);\n\t\t\t\tcurrentBranch.total += amount;\n\t\t\t\tconst status = item.dgEstadoCarga || '';\n\t\t\t\tif (status.trim().toLowerCase() in indexStatus) {\n\t\t\t\t\tconst index = indexStatus[status.trim().toLowerCase()].pos;\n\t\t\t\t\tcurrentStatus = res.status[index];\n\t\t\t\t} else {\n\t\t\t\t\tcurrentStatus = new Summary();\n\t\t\t\t\tcurrentStatus.name = status.trim();\n\t\t\t\t\tcurrentStatus.details = [];\n\t\t\t\t\tres.status.push(currentStatus);\n\t\t\t\t\tindexStatus[status.trim().toLowerCase()] = {\n\t\t\t\t\t\tpos: res.status.length - 1\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tcurrentStatus.total += amount;\n\t\t\t\tconst detailStatus = new Detail();\n\t\t\t\tdetailStatus.name = item.dgEstadoCarga;\n\t\t\t\tdetailStatus.total = amount;\n\t\t\t\tcurrentStatus.details!.push(detailStatus);\n\t\t\t\tcurrentStatus.detailsBrute!.push(item);\n\t\t\t\tconst quality = (\n\t\t\t\t\titem.dgCalidadCobre ||\n\t\t\t\t\titemShipment.dgCarga ||\n\t\t\t\t\t''\n\t\t\t\t).trim();\n\t\t\t\tif (quality.toLowerCase() in indexQuality) {\n\t\t\t\t\tconst index = indexQuality[quality.toLowerCase()].pos;\n\t\t\t\t\tcurrentQuality = res.quality[index];\n\t\t\t\t} else {\n\t\t\t\t\tcurrentQuality = new Summary();\n\t\t\t\t\tcurrentQuality.name = quality;\n\t\t\t\t\tcurrentQuality.details = [];\n\t\t\t\t\tres.quality.push(currentQuality);\n\t\t\t\t\tindexQuality[quality.toLowerCase()] = {\n\t\t\t\t\t\tpos: res.quality.length - 1\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tcurrentQuality.total += amount;\n\t\t\t\tconst detailQuality = new Detail();\n\t\t\t\tdetailQuality.name = item.dgCalidadCobre;\n\t\t\t\tdetailQuality.total = amount;\n\t\t\t\tcurrentQuality.details!.push(detailQuality);\n\t\t\t} catch (e) {\n\t\t\t\tconsole.log(e);\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n}\n\nexport interface IAnnouncedShipmentResponse {\n\tdcCarga: string;\n\tdcCorrelativoSucursal: string;\n\tdcGuiadeDespacho: string;\n\tdcResolucion: string;\n\tdcRutProductor: string;\n\tdgCarga: string;\n\tdgNombre: string;\n\tdgNombreProductor: string;\n\tdnPesoBruto: string;\n\ttipo_Transporte: string;\n}\n\nexport interface IShipmentResponse {\n\tdcAño: string;\n\tdcCarga: string;\n\tdcMes: string;\n\tdcTipoCarga: string;\n\tdcTonelaje: string;\n\tdgCarga: string;\n\tdgNave: string;\n\tdcCorrelativoSucursal: string;\n}\n\nexport class ShipmentDateDetail {\n\tpublic date: moment.Moment;\n\tpublic consolidate: number = 0;\n\tpublic breakBulk: number = 0;\n\tconstructor(date: moment.Moment) {\n\t\tthis.date = date;\n\t}\n\n\tpublic sum(type: string, amount: number) {\n\t\tif (type && type.length > 0) {\n\t\t\tif (\n\t\t\t\ttype\n\t\t\t\t\t.trim()\n\t\t\t\t\t.toLowerCase()\n\t\t\t\t\t.indexOf('consolidada') < 0\n\t\t\t) {\n\t\t\t\tthis.breakBulk += amount;\n\t\t\t} else {\n\t\t\t\tthis.consolidate += amount;\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport class ShipmentSummaryBranch {\n\tpublic idBranch: number = -1;\n\tpublic data: ShipmentSummary = new ShipmentSummary();\n}\n\nexport class ShipmentSummary {\n\tpublic shipments: Shipment[] = [];\n\tpublic total: number = 0;\n\tpublic list: IShipmentResponse[] = [];\n\tpublic details: ShipmentDateDetail[] = [];\n\tpublic branchs: ShipmentSummaryBranch[] = [];\n\tprivate _indexShipment: any = {};\n\tprivate _indexDates: any = {};\n\tprivate _indexBranch: any = {};\n\n\n\tpublic static create(data: IShipmentResponse[]) {\n\t\tconst res = new ShipmentSummary();\n\t\tlet currentbranch: ShipmentSummaryBranch | undefined = undefined;\n\t\ttry {\n\t\t\tfor (let i = 0; i < data.length; i += 1) {\n\t\t\t\tconst item = data[i];\n\t\t\t\tres.add(item);\n\t\t\t\tconst idBranch = parseInt(item.dcCorrelativoSucursal, 10);\n\t\t\t\tcurrentbranch = res.branchs.find(b => b.idBranch === idBranch);\n\t\t\t\tif (!currentbranch) {\n\t\t\t\t\tcurrentbranch = new ShipmentSummaryBranch();\n\t\t\t\t\tcurrentbranch.idBranch = idBranch;\n\t\t\t\t\tres.branchs.push(currentbranch);\n\t\t\t\t}\n\t\t\t\tcurrentbranch.data.add(item);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tconsole.log(e);\n\t\t}\n\t\treturn res;\n\t}\n\n\tpublic add(data: IShipmentResponse) {\n\t\tthis.list.push(data);\n\t\tif (data.dcTipoCarga) {\n\t\t\tconst cat = data.dcTipoCarga.trim();\n\t\t\tconst total = parseFloat(data.dcTonelaje.replace(',', '.'));\n\t\t\tlet currentShipment: Shipment = new Shipment(cat);\n\t\t\tif (cat.toLowerCase() in this._indexShipment) {\n\t\t\t\tdelete currentShipment.category;\n\t\t\t\tconst index = this._indexShipment[cat.toLowerCase()].pos;\n\t\t\t\tcurrentShipment = this.shipments[index];\n\t\t\t} else {\n\t\t\t\tthis._indexShipment[cat.toLowerCase()] = {\n\t\t\t\t\tpos: this.shipments.length\n\t\t\t\t};\n\t\t\t\tthis.shipments.push(currentShipment);\n\t\t\t}\n\t\t\tcurrentShipment.add(data.dcAño, data.dcMes, data.dgCarga, total);\n\t\t\tthis.total += total;\n\t\t\tcurrentShipment.total += total;\n\t\t\tthis.addDate(data.dcAño, data.dcMes, total, cat);\n\t\t}\n\t}\n\n\tpublic addDate(year: string, month: string, amount: number, type: string) {\n\t\tconst dateMonth = `${year}-${month.padStart(2, '0')}`;\n\t\tconst date = moment(`${dateMonth}-01T00:00:00`);\n\t\tlet currentDate = new ShipmentDateDetail(date);\n\t\tamount = amount / 1000 / 1000;\n\t\tif (dateMonth in this._indexDates) {\n\t\t\tconst index = this._indexDates[dateMonth].pos;\n\t\t\tdelete currentDate.date;\n\t\t\tcurrentDate = this.details[index];\n\t\t} else {\n\t\t\tthis._indexDates[dateMonth] = {\n\t\t\t\tpos: this.details.length\n\t\t\t};\n\t\t\tthis.details.push(currentDate);\n\t\t}\n\t\tcurrentDate.sum(type, amount);\n\t}\n}\n\nexport class Shipment {\n\tpublic category: string = '';\n\tpublic total: number = 0;\n\tpublic dates: ShipmentDate[] = [];\n\tpublic status: ShipmentStatus[] = [];\n\tprivate _indexDates = {} as any;\n\tprivate _indexStatus = {} as any;\n\tconstructor(category: string = '') {\n\t\tthis.category = category;\n\t}\n\n\tpublic addDate(year: string, month: string, amount: number) {\n\t\tconst dateMonth = `${year}-${month.padEnd(2, '0')}`;\n\t\tconst date = moment(`${dateMonth}-01T00:00:00`);\n\t\tlet currentDate = new ShipmentDate(date);\n\t\tif (dateMonth in this._indexDates) {\n\t\t\tconst index = this._indexDates[dateMonth].pos;\n\t\t\tdelete currentDate.date;\n\t\t\tcurrentDate = this.dates[index];\n\t\t} else {\n\t\t\tcurrentDate.year = parseInt(year);\n\t\t\tcurrentDate.month = parseInt(month);\n\t\t\tthis._indexDates[dateMonth] = {\n\t\t\t\tpos: this.dates.length\n\t\t\t};\n\t\t\tthis.dates.push(currentDate);\n\t\t}\n\t\tcurrentDate.total += amount;\n\t}\n\n\tpublic add(year: string, month: string, status: string, amount: number) {\n\t\tthis.addDate(year, month, amount);\n\n\t\tlet currentStatus = new ShipmentStatus(status);\n\t\tif (status.trim().toLowerCase() in this._indexStatus) {\n\t\t\tconst index = this._indexStatus[status.trim().toLowerCase()].pos;\n\t\t\tdelete currentStatus.name;\n\t\t\tcurrentStatus = this.status[index];\n\t\t} else {\n\t\t\tthis._indexStatus[status.trim().toLowerCase()] = {\n\t\t\t\tpos: this.status.length\n\t\t\t};\n\t\t\tthis.status.push(currentStatus);\n\t\t}\n\t\tcurrentStatus.addDate(year, month, amount);\n\t\tcurrentStatus.total += amount;\n\t}\n}\n\nexport class ShipmentDate {\n\tpublic year: number = -1;\n\tpublic month: number = -1;\n\tpublic date: moment.Moment;\n\tpublic total: number = 0;\n\n\tconstructor(date: moment.Moment) {\n\t\tthis.date = date;\n\t}\n}\n\nexport class ShipmentStatus {\n\tpublic name: string = '';\n\tpublic total: number = 0;\n\tpublic dates: ShipmentDate[] = [];\n\tprivate _indexDates = {} as any;\n\n\tconstructor(status: string) {\n\t\tthis.name = status;\n\t}\n\n\tpublic addDate(year: string, month: string, amount: number) {\n\t\tconst dateMonth = `${year}-${month.padStart(2, '0')}`;\n\t\tconst date = moment(`${dateMonth}-01T00:00:00`);\n\t\tlet currentDate = new ShipmentDate(date);\n\t\tif (dateMonth in this._indexDates) {\n\t\t\tconst index = this._indexDates[dateMonth].pos;\n\t\t\tdelete currentDate.date;\n\t\t\tcurrentDate = this.dates[index];\n\t\t} else {\n\t\t\tcurrentDate.year = parseInt(year);\n\t\t\tcurrentDate.month = parseInt(month);\n\t\t\tthis._indexDates[dateMonth] = {\n\t\t\t\tpos: this.dates.length\n\t\t\t};\n\t\t\tthis.dates.push(currentDate);\n\t\t}\n\t\tcurrentDate.total += amount;\n\t}\n}\n\nexport interface IDescriptor {\n\tfield: string;\n\tlabel: string;\n\ttransform?: (value: any) => ReactElement;\n}\n\nexport interface ICardHistoryItem {\n\tdata: any;\n\tdescriptor: IDescriptor;\n}\n\nexport interface ICardData {\n\ttitle: ICardHistoryItem;\n\tcontent: ICardHistoryItem[];\n\tfieldSearch: string;\n\ticon?: ReactElement;\n}\n\nconst amountTransform = (value: any) => {\n\treturn `${formatAmount(value)} Kton`;\n};\n\nconst getCond = (value: any) => {\n\tconst val = ((value as string) || '').toLowerCase();\n\tswitch (val) {\n\t\tcase 'c':\n\t\t\treturn 'Consolidado';\n\t\tcase 'b':\n\t\t\treturn 'Break Bulk';\n\t\tdefault:\n\t\t\treturn val;\n\t}\n};\n\nexport const getScheme = (report: EReport) => {\n\tlet scheme: any = undefined;\n\tswitch (report) {\n\t\tcase EReport.Announced:\n\t\t\tscheme = {\n\t\t\t\ttitle: 'dcGuiadeDespacho',\n\t\t\t\ttitleLabel: 'N° Guía de Despacho',\n\t\t\t\ticon: true,\n\t\t\t\tfields: {\n\t\t\t\t\tdnPesoBruto: 'Toneladas',\n\t\t\t\t\tdgCarga: 'Calidad',\n\t\t\t\t\tdcResolucion: 'Resolución de acopio',\n\t\t\t\t\ttipo_Transporte: 'Tipo de Transporte'\n\t\t\t\t},\n\t\t\t\ttransforms: {\n\t\t\t\t\tdnPesoBruto: amountTransform\n\t\t\t\t}\n\t\t\t};\n\t\t\tbreak;\n\t\tcase EReport.Yard:\n\t\t\tscheme = {\n\t\t\t\ttitle: 'dfIngreso',\n\t\t\t\ttitleLabel: 'Fecha de Ingreso',\n\t\t\t\tfields: {\n\t\t\t\t\tdgCarga: 'Calidad',\n\t\t\t\t\tdnPesoBruto: 'Toneladas',\n\t\t\t\t\tdcCelda: 'Celda'\n\t\t\t\t},\n\t\t\t\ttransforms: {\n\t\t\t\t\tdnPesoBruto: amountTransform\n\t\t\t\t}\n\t\t\t};\n\t\t\tbreak;\n\t\tcase EReport.Bath:\n\t\t\tscheme = {\n\t\t\t\ttitle: 'dcCorrelativoNaveViaje',\n\t\t\t\ttitleLabel: 'Correlativo Viaje',\n\t\t\t\tfields: {\n\t\t\t\t\tdnPesoBruto: 'Toneladas Brutas',\n\t\t\t\t\tdnPesoNeto: 'Toneladas Netas',\n\t\t\t\t\tdcCorrelativoNaveViaje: 'Correlativo Viaje',\n\t\t\t\t\tdgCarga: 'Calidad',\n\t\t\t\t\tdgMarca: 'Marca',\n\t\t\t\t\tdgNave: 'Nave',\n\t\t\t\t\tdgTipoCarga: 'Condición de Embarque'\n\t\t\t\t},\n\t\t\t\ttransforms: {\n\t\t\t\t\tdnPesoBruto: amountTransform,\n\t\t\t\t\tdnPesoNeto: amountTransform,\n\t\t\t\t\tdgTipoCarga: getCond\n\t\t\t\t}\n\t\t\t};\n\t\t\tbreak;\n\t\tcase EReport.Stacking:\n\t\t\tscheme = {\n\t\t\t\ttitle: 'dcReservaOut',\n\t\t\t\ttitleLabel: 'N° de Reserva',\n\t\t\t\tfields: {\n\t\t\t\t\tdcReservaOut: 'N° de Reserva',\n\t\t\t\t\tdcTonelaje: 'Toneladas',\n\t\t\t\t\tdgCarga: 'Calidad',\n\t\t\t\t\tdgMarca: 'Marca',\n\t\t\t\t\tdgNaveOut: 'Nave',\n\t\t\t\t\tdcCantidadContenedores: 'Cantidad de Contenedores',\n\t\t\t\t\tdcPtoDes: 'Destino',\n\t\t\t\t\tdfFechaHoraZarpe: 'Día y hora de zarpe'\n\t\t\t\t},\n\t\t\t\ttransforms: {\n\t\t\t\t\tdcTonelaje: amountTransform\n\t\t\t\t}\n\t\t\t};\n\t\t\tbreak;\n\t\tcase EReport.BreakBulk:\n\t\t\tscheme = {\n\t\t\t\ttitle: 'dcReserva',\n\t\t\t\ttitleLabel: 'N° de Reserva',\n\t\t\t\tfields: {\n\t\t\t\t\tdcReserva: 'N° de Reserva',\n\t\t\t\t\tdcTonelaje: 'Toneladas',\n\t\t\t\t\tdgCarga: 'Calidad',\n\t\t\t\t\tdgMarca: 'Marca',\n\t\t\t\t\tdgNave: 'Nave',\n\t\t\t\t\tdcPuertoDescarga: 'Destino',\n\t\t\t\t\tdfFechaHoraZarpe: 'Día y hora de zarpe'\n\t\t\t\t},\n\t\t\t\ttransforms: {\n\t\t\t\t\tdcTonelaje: amountTransform\n\t\t\t\t}\n\t\t\t};\n\t\t\tbreak;\n\t\tcase EReport.Consolidate:\n\t\t\tscheme = {\n\t\t\t\ttitle: 'dcReserva',\n\t\t\t\ttitleLabel: 'N° de Reserva',\n\t\t\t\tfields: {\n\t\t\t\t\tdcReserva: 'N° de Reserva',\n\t\t\t\t\tdnStockPesoBruto: 'Toneladas',\n\t\t\t\t\tdgCarga: 'Calidad',\n\t\t\t\t\tdgMarca: 'Marca',\n\t\t\t\t\tdgNave: 'Nave',\n\t\t\t\t\tdcDestinoFinal: 'Destino',\n\t\t\t\t\tdnStockPaquetes: 'Cantidad de Contenedores',\n\t\t\t\t\tdfFechaHoraZarpe: 'Día y hora de zarpe'\n\t\t\t\t},\n\t\t\t\ttransforms: {\n\t\t\t\t\tdnStockPesoBruto: amountTransform\n\t\t\t\t}\n\t\t\t};\n\t\t\tbreak;\n\t}\n\treturn scheme;\n};\n\nexport const createMapData = (data: any[], report: EReport) => {\n\tconst res: ICardData[] = [];\n\tconst scheme = getScheme(report);\n\tfor (let i = 0; i < data.length; i += 1) {\n\t\tconst item = data[i];\n\t\tconst dataItem: ICardData = {\n\t\t\tfieldSearch: scheme.title,\n\t\t\ttitle: {\n\t\t\t\tdata: item,\n\t\t\t\tdescriptor: {\n\t\t\t\t\tfield: scheme.title,\n\t\t\t\t\tlabel: scheme.titleLabel\n\t\t\t\t}\n\t\t\t},\n\t\t\tcontent: Object.keys(scheme.fields).map(k => ({\n\t\t\t\tdata: item,\n\t\t\t\tdescriptor: {\n\t\t\t\t\tfield: k,\n\t\t\t\t\tlabel: scheme.fields[k],\n\t\t\t\t\ttransform: scheme.transforms[k]\n\t\t\t\t}\n\t\t\t}))\n\t\t};\n\t\tres.push(dataItem);\n\t}\n\treturn res;\n};\n\nexport interface ISummaryStage {\n\tname: string;\n\ticon: string;\n\tdata: SummaryProducer;\n\tloading: boolean;\n\treport: EReport;\n\tfetch: (idUser: number, idProducer: string) => Promise;\n}\n\nconst service: ServiceReport = new ServiceReport();\n\nexport const createStages = () => [\n\t{\n\t\tname: 'Carga Anunciada',\n\t\ticon: 'carga-anunciada',\n\t\tdata: new SummaryProducer(),\n\t\tloading: true,\n\t\tfetch: service.fetchAnnounced.bind(service),\n\t\treport: EReport.Announced\n\t},\n\t{\n\t\tname: 'Cobre Almacenado',\n\t\ticon: 'cobre-almacenado',\n\t\tdata: new SummaryProducer(),\n\t\tloading: true,\n\t\tfetch: service.fetchYard.bind(service),\n\t\treport: EReport.Yard\n\t},\n\t{\n\t\tname: 'Cobre Loteado',\n\t\ticon: 'cobre-loteado',\n\t\tdata: new SummaryProducer(),\n\t\tloading: true,\n\t\tfetch: service.fetchBath.bind(service),\n\t\treport: EReport.Bath\n\t},\n\t{\n\t\tname: 'Embarcado Break Bulk',\n\t\ticon: 'break-bulk',\n\t\tdata: new SummaryProducer(),\n\t\tloading: true,\n\t\tfetch: service.fetchBreakBulk.bind(service),\n\t\treport: EReport.BreakBulk\n\t},\n\t{\n\t\tname: 'Consolidado',\n\t\ticon: 'consolidado',\n\t\tdata: new SummaryProducer(),\n\t\tloading: true,\n\t\tfetch: service.fetchConsolidate.bind(service),\n\t\treport: EReport.Consolidate\n\t},\n\t{\n\t\tname: 'Stacking',\n\t\ticon: 'stacking',\n\t\tdata: new SummaryProducer(),\n\t\tloading: true,\n\t\tfetch: service.fetchStacking.bind(service),\n\t\treport: EReport.Stacking\n\t}\n];\n","import { AnyAction } from 'redux';\nimport { ActionsReport } from '../../Actions/Report/Types';\nimport { Producer, SummaryProducer, ShipmentSummary, StageProducer, createStages } from '../../Models/Report';\n\nexport interface IReportState {\n\tproducers: Producer[];\n\tisRequestDashboard: boolean;\n\tisRequestAnnounced: boolean;\n\tisRequestShipment: boolean;\n\tshipmentSummary?: ShipmentSummary;\n\tannounced?: SummaryProducer;\n\tstageProducer: StageProducer[];\n}\n\nconst initialState = {\n\tproducers: [],\n\tisRequestDashboard: false,\n\tisRequestAnnounced: false,\n\tisRequestShipment: false,\n\tproducerAnnounced: undefined,\n\tbranchAnnounced: undefined,\n\tannounced: undefined,\n\tshipmentSummary: undefined,\n\tstageProducer: []\n};\n\nconst asyncReducer = (\n\tstate: IReportState = initialState,\n\taction: AnyAction\n) => {\n\tswitch (action.type) {\n\t\tcase ActionsReport.REQUEST_REPORT_DASHBOARD:\n\t\t\treturn {...state, isRequestDashboard: !state.isRequestDashboard };\n\t\tcase ActionsReport.SET_PRODUCERS:\n\t\t\tconst producers = action.payload as Producer[];\n\t\t\tconst stagesProducerNew = producers.map(p => {\n\t\t\t\tconst s = new StageProducer();\n\t\t\t\ts.producer = p;\n\t\t\t\ts.stages = createStages();\n\t\t\t\treturn s;\n\t\t\t})\n\t\t\treturn {...state, producers, stageProducer: stagesProducerNew, isRequestDashboard: false };\n\t\tcase ActionsReport.SET_STAGES:\n\t\t\tconst summaryStage = action.payload as SummaryProducer;\n\t\t\tconst indexProducer = state.stageProducer.findIndex(p => p.producer.id === summaryStage.idProducer);\n\t\t\tconst stages = state.stageProducer[indexProducer].stages;\n\t\t\tconst indexStage = stages.findIndex(s => s.report === summaryStage.report);\n\t\t\tstages[indexStage].data = summaryStage;\n\t\t\tstages[indexStage].loading = false;\n\t\t\tconst stagesNew = [...stages];\n\t\t\tconst productersEditStage: StageProducer = {...state.stageProducer[indexProducer], stages: stagesNew };\n\t\t\tconst producersNewStage = [...state.stageProducer] as StageProducer[];\n\t\t\tproducersNewStage[indexProducer] = productersEditStage\n\t\t\treturn {...state, stageProducer: producersNewStage };\n\t\tcase ActionsReport.SET_SUMMARY:\n\t\t\tconst summary = action.payload as SummaryProducer;\n\t\t\tconst index = state.producers.findIndex(p => p.id === summary.idProducer);\n\t\t\tconst producterEdit: Producer = {...state.producers[index], loading: false, summary };\n\t\t\tconst producersNew = [...state.producers] as Producer[];\n\t\t\tproducersNew[index] = producterEdit\n\t\t\treturn {...state, producers: producersNew };\n\t\tcase ActionsReport.FETCH_SHIPMENT:\n\t\t\treturn {...state, shipmentSummary: action.payload };\n\t\tcase ActionsReport.REQUEST_ANNOUNCED:\n\t\t\treturn {...state, isRequestAnnounced: !state.isRequestAnnounced }\n\t\tcase ActionsReport.REQUEST_SHIPMENT:\n\t\t\treturn {...state, isRequestShipment: !state.isRequestShipment }\n\t\tcase ActionsReport.FETCH_ANNOUNCED_LOAD:\n\t\t\treturn {...state, announced: action.payload };\n\t}\n\treturn state;\n};\n\nexport default asyncReducer;\n","export enum ActionsAccount {\n\tERROR_ACCOUNT = 'ERROR_ACCOUNT',\n\tFETCH_ACCOUNT = 'FETCH_ACCOUNT',\n\tFETCH_ACCOUNTS = 'FETCH_ACCOUNTS',\n\tREQUEST_ACCOUNT = 'REQUEST_ACCOUNT',\n\tCREATE_ACCOUNT = 'CREATE_ACCOUNT',\n\tSTATUS_REQUEST_ACCOUNT = 'STATUS_REQUEST_ACCOUNT',\n\tCLEAN_CURRENT_ACCOUNT = 'CLEAN_CURRENT_ACCOUNT',\n\tCLEAN_STATUS_ACCOUNT = 'CLEAN_STATUS_ACCOUNT',\n\tDELETE_ACCOUNT = 'DELETE_ACCOUNT',\n\tCHANGE_STATUS_ACCOUNT = 'CHANGE_STATUS_ACCOUNT'\n}\n","import { AnyAction } from 'redux';\nimport { IPage } from '../../Models/Security';\nimport { ActionsAccount } from '../../Actions/Account/Types';\nimport { IAccount } from '../../Models/Account';\nimport { EStatusRequest } from '../Session';\n\nexport interface IAccountState {\n\tisFail: boolean;\n\tmessageFail: string;\n\tisRequest: boolean;\n\tpage: IPage;\n\tcurrent?: IAccount;\n\tstatus: EStatusRequest;\n}\n\nconst initialState = {\n\tisRequest: false,\n\tpage: {\n\t\tmeta: {\n\t\t\ttotal: 0,\n\t\t\tpage: 0,\n\t\t\tsize: 0,\n\t\t\tpages: 0\n\t\t},\n\t\tdata: []\n\t},\n\tcurrent: undefined,\n\tisFail: false,\n\tmessageFail: '',\n\tstatus: EStatusRequest.PENDING\n};\n\nconst asyncReducer = (\n\tstate: IAccountState = initialState,\n\taction: AnyAction\n) => {\n\tswitch (action.type) {\n\t\tcase ActionsAccount.REQUEST_ACCOUNT:\n\t\t\treturn {...state, isRequest: !state.isRequest };\n\t\tcase ActionsAccount.FETCH_ACCOUNT:\n\t\t\tconst profile = action.payload as IAccount;\n\t\t\treturn {...state, isFail: false, current: profile };\n\t\tcase ActionsAccount.FETCH_ACCOUNTS:\n\t\t\tconst pageFetch = action.payload as IPage;\n\t\t\treturn {...state, isFail: false, page: pageFetch };\n\t\tcase ActionsAccount.ERROR_ACCOUNT:\n\t\t\treturn {...state, isFail: true, messageFail: action.payload };\n\t\tcase ActionsAccount.CLEAN_CURRENT_ACCOUNT:\n\t\t\treturn {...state, current: undefined };\n\t\tcase ActionsAccount.CLEAN_STATUS_ACCOUNT:\n\t\t\t\treturn {...state, status: EStatusRequest.PENDING };\n\t\tcase ActionsAccount.STATUS_REQUEST_ACCOUNT:\n\t\t\treturn {...state, status: action.payload };\n\n\t}\n\treturn state;\n};\n\nexport default asyncReducer;\n","export enum ActionsProducer {\n\tREQUEST_PRODUCER = 'REQUEST_PRODUCER',\n\tFETCH_PRODUCERS = 'FETCH_PRODUCERS'\n}\n","import { AnyAction } from 'redux';\nimport { ActionsProducer } from '../../Actions/Producer/Types';\nimport { Producer } from '../../Models/Report';\n\nexport interface IProducerState {\n\tisRequest: boolean;\n\tproducers: Producer[];\n}\n\nconst initialState = {\n\tisRequest: false,\n\tproducers: [],\n};\n\nconst asyncReducer = (\n\tstate: IProducerState = initialState,\n\taction: AnyAction\n) => {\n\tswitch (action.type) {\n\t\tcase ActionsProducer.REQUEST_PRODUCER:\n\t\t\treturn {...state, isRequest: !state.isRequest };\n\t\tcase ActionsProducer.FETCH_PRODUCERS:\n\t\t\tconst producers = action.payload as Producer[];\n\t\t\treturn {...state, producers };\n\t}\n\treturn state;\n};\n\nexport default asyncReducer;\n","import { combineReducers } from 'redux';\nimport Session, { ISessionState } from './Session';\nimport Profile, { IProfileState } from './Profile';\nimport Report, { IReportState } from './Report/index';\nimport Account, { IAccountState } from './Account';\nimport Producer, { IProducerState } from './Producer';\n\nexport interface IStateApp {\n\t\tsession: ISessionState,\n\t\tprofile: IProfileState,\n\t\treport: IReportState,\n\t\taccount: IAccountState,\n\t\tproducer: IProducerState\n}\n\nconst map = {\n\t\tsession: Session,\n\t\tprofile: Profile,\n\t\treport: Report,\n\t\taccount: Account,\n\t\tproducer: Producer\n}\n\nconst reducers = combineReducers(map as any);\n\nexport default reducers;\n","import { createStore, applyMiddleware, compose } from 'redux';\nimport Reducers from './Reducers';\nimport thunk from 'redux-thunk';\n\nconst middleware = [thunk];\n\nconst w = window as any;\n\nconst composeEnhancers =\n typeof window === 'object' &&\n w.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?\n w.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({\n // Specify extension’s options like name, actionsBlacklist, actionsCreators, serialize...\n }) : compose;\n\nconst enhancer = composeEnhancers(\n applyMiddleware(...middleware),\n // other store enhancers if any\n)\n\nconst store = createStore(Reducers, undefined, enhancer);\n\nexport default store;\n","import * as React from 'react';\nimport Row from \"antd/lib/row\";\nimport Col from \"antd/lib/col\";\nimport './BoxPresentation.scss';\n\nconst BoxPresentation = () => (\n\n\n
\n

Iniciar sesión en Puerto Angamos Copper Tracker

\n\n\n);\n\nexport default BoxPresentation;\n","import withStyles from '@material-ui/styles/withStyles';\nimport TextField from '@material-ui/core/TextField';\n\nconst CssTextField = withStyles({\n root: {\n '& label.Mui-focused': {\n color: '#F7A72E'\n },\n '& .MuiOutlinedInput-root': {\n '&:hover fieldset': {\n borderColor: '#F7A72E'\n },\n '&.Mui-focused fieldset': {\n borderColor: '#F7A72E'\n }\n }\n }\n})(TextField);\n\nexport default CssTextField;\n","import Text from './Text';\n\nexport default Text;","import * as React from 'react';\nimport Text from './Text';\nimport { TextFieldProps } from '@material-ui/core/TextField';\nimport InputAdornment from '@material-ui/core/InputAdornment/InputAdornment';\nimport IconButton from '@material-ui/core/IconButton';\nimport Visibility from '@material-ui/icons/Visibility';\nimport VisibilityOff from '@material-ui/icons/VisibilityOff';\n\nconst TextPass = (props: TextFieldProps) => {\n const [isHidden, setHidden] = React.useState(true);\n const type = isHidden ? 'password' : 'text';\n const handleClickShowPassword = () => {\n setHidden(!isHidden);\n };\n\n const handleMouseDownPassword = (\n event: React.MouseEvent\n ) => {\n event.preventDefault();\n };\n const eye = (\n \n \n {isHidden ? : }\n \n \n );\n return ;\n};\n\nexport default TextPass;\n","import * as React from 'react';\nimport Button from 'antd/lib/button';\nimport Divider from 'antd/lib/divider';\nimport Form, { FormComponentProps } from 'antd/lib/form';\nimport Alert from 'antd/lib/alert';\nimport Row from 'antd/lib/row';\nimport TextField from '../../Components/TextField';\nimport { ICredencial } from '../../Models/Security';\nimport TextPass from '../../Components/TextField/TextPass';\nimport './BoxForm.scss';\nimport FormControl from '@material-ui/core/FormControl';\nimport FormHelperText from '@material-ui/core/FormHelperText';\nimport { WrappedFormUtils } from 'antd/lib/form/Form';\n\nexport interface IBoxFormProps extends FormComponentProps {\n\tonLogIn: (cred: ICredencial) => void;\n\tonRecoveryShow: () => void;\n\tmessage?: string;\n\tisChecking: boolean;\n}\n\nconst rulesEmail = [\n\t{\n\t\trequired: true,\n\t\tmessage: 'El Correo Corporativo es requerido*'\n\t},\n\t{\n\t\ttype: 'email',\n\t\tmessage: 'Debe escribir un correo válido*'\n\t}\n];\n\nconst BoxForm = (props: IBoxFormProps) => {\n\tconst hasError = (form: WrappedFormUtils, name: string) => {\n\t\tconst err = form.getFieldError(name);\n\t\tif (err === undefined) {\n\t\t\treturn false;\n\t\t}\n\t\tif (err.length === 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\tconst getError = (form: WrappedFormUtils, name: string) => {\n\t\tconst err = form.getFieldError(name);\n\t\treturn err;\n\t}\n\tconst { getFieldDecorator } = props.form;\n\tconst onSubmit = (evt: React.FormEvent) => {\n\t\tevt.preventDefault();\n\t\tprops.form.validateFields((errs, values) => {\n\t\t\tif (errs) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprops.onLogIn(values);\n\t\t});\n\t};\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t

Bienvenido

\n\t\t\t\t

Con esta plataforma podrás ver el estado de tus cargas en Puerto Angamos

\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{getFieldDecorator('username', {\n\t\t\t\t\t\t\trules: rulesEmail\n\t\t\t\t\t\t})(\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{hasError(props.form, 'username') && {getError(props.form, 'username')}}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{getFieldDecorator('password', {\n\t\t\t\t\t\t\trules: [{\n\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\tmessage: 'La contraseña es requerida'\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t})(\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{hasError(props.form, 'password') && {getError(props.form, 'password')}}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t{props.message && }\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t¿Olvidaste tu Contraseña? \n\t\t\t\t
\n\t\t\t\n\t\t
\n\t);\n};\n\nexport default Form.create()(BoxForm);\n","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"path\", {\n d: \"m175 351h162c33.085938 0 60-26.914062 60-60v-107c0-33.085938-26.914062-60-60-60h-3.023438v-47.46875c0-42.199219-34.992187-76.53125-78-76.53125-43.011718 0-78 34.332031-78 76.53125v47.46875h-2.976562c-33.085938 0-60 26.914062-60 60v107c0 33.085938 26.914062 60 60 60zm42.976562-274.46875c0-20.144531 17.046876-36.53125 38-36.53125 20.953126 0 38 16.386719 38 36.53125v47.46875h-76zm-62.976562 107.46875c0-11.027344 8.972656-20 20-20h162c11.027344 0 20 8.972656 20 20v107c0 11.027344-8.972656 20-20 20h-162c-11.027344 0-20-8.972656-20-20zm357 177v101c0 27.570312-22.429688 50-50 50h-412c-27.570312 0-50-22.429688-50-50v-101c0-27.570312 22.429688-50 50-50h38v40h-38c-5.515625 0-10 4.484375-10 10v101c0 5.515625 4.484375 10 10 10h412c5.515625 0 10-4.484375 10-10v-101c0-5.515625-4.484375-10-10-10h-29v-40h29c27.570312 0 50 22.429688 50 50zm-296 31c11.046875 0 20 8.953125 20 20s-8.953125 20-20 20-20-8.953125-20-20 8.953125-20 20-20zm-80 0c11.046875 0 20 8.953125 20 20s-8.953125 20-20 20-20-8.953125-20-20 8.953125-20 20-20zm160 0c11.046875 0 20 8.953125 20 20s-8.953125 20-20 20-20-8.953125-20-20 8.953125-20 20-20zm80 0c11.046875 0 20 8.953125 20 20s-8.953125 20-20 20-20-8.953125-20-20 8.953125-20 20-20zm-140-155c0-11.046875 8.953125-20 20-20s20 8.953125 20 20-8.953125 20-20 20-20-8.953125-20-20zm0 0\"\n});\n\nvar SvgPassword = function SvgPassword(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n height: \"512pt\",\n viewBox: \"0 0 512 512\",\n width: \"512pt\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgPassword, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/password.8895d3eb.svg\";\nexport { ForwardRef as ReactComponent };","import { ICredencial, IPassword, Recovery } from '../Models/Security';\nimport Service from './Service';\n\nexport default class ServiceSession extends Service {\n\n\tpublic login(cred: ICredencial) {\n\t\treturn this.wrapper.post('auth', JSON.stringify(cred));\n\t}\n\n\tpublic me() {\n\t\treturn this.wrapper.get('user/me');\n\t}\n\n\tpublic fetchFaenas(id: number) {\n\t\treturn this.wrapper.get(`user/faena/${id}`)\n\t}\n\n\tpublic logout() {\n\t\treturn this.wrapper.delete('auth/logout');\n\t}\n\n\tpublic changePassword(password: IPassword) {\n\t\treturn this.wrapper.post('auth/password', JSON.stringify(password));\n\t}\n\n\tpublic recoveryReq(data: Recovery) {\n\t\treturn this.wrapper.post('auth/recovery', JSON.stringify(data));\n\t}\n\n\tpublic recoveryPass(data: any) {\n\t\treturn this.wrapper.put('auth/recovery', JSON.stringify(data));\n\t}\n}\n","import { Actions } from './Types';\nimport ServiceProfile from '../../Services/ServiceProfile';\nimport { IPageOptions } from '../../Models/Common';\n\nconst service = new ServiceProfile();\n\nconst createActionRequest = () => ({\n\ttype: Actions.REQUESTING_PROFILE\n});\n\n\n\nexport const createActionFetchProfile = (id: number) => {\n\treturn (dispatch: any) => {\n\t\tdispatch(createActionRequest())\n\t\tservice.fetch(id)\n\t\t\t.then(async r => {\n\t\t\t\tconst data = await r.json();\n\t\t\t\tdispatch({ type: Actions.FETCH_PROFILE, payload: data });\n\t\t\t})\n\t\t\t.catch(r => {\n\t\t\t\tdispatch({ type: Actions.FETCH_PROFILE, payload: undefined });\n\t\t\t});\n\t}\n};\n\nexport const createActionFetchProfiles = (options: IPageOptions) => {\n\treturn (dispatch: any) => {\n\t\tdispatch(createActionRequest());\n\t\tservice.fetchPage(options.page, options.size)\n\t\t\t.then(async r => {\n\t\t\t\tconst res = await r.json();\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: Actions.FETCH_PROFILE_LIST,\n\t\t\t\t\tpayload: res\n\t\t\t\t})\n\t\t\t\tdispatch(createActionRequest());\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tdispatch(createActionRequest());\n\t\t\t});\n\t}\n}\n\nexport default {\n\trequest: createActionRequest,\n\tfetchProfile: createActionFetchProfile,\n}\n","import Service from './Service';\n\nexport default class ServiceProfile extends Service {\n\tpublic fetchPage(page: number = 0, pageSize: number = 5) {\n\t\treturn this.wrapper.get(`profile?page=${page}&pageSize=${pageSize}`);\n\t}\n\tpublic fetch(id: number) {\n\t\treturn this.wrapper.get(`profile/${id}`);\n\t}\n}\n","import {\n\tActions,\n\tIActionResponse,\n\tIActionRequest,\n\tIResponseAuth,\n\tIActionChecking,\n\tIActionChecked\n} from './Types';\nimport { ICredencial, IPassword, Recovery } from '../../Models/Security';\nimport { Dispatch } from 'redux';\nimport ServiceWrapper from '../../Services/ServiceWrapper';\nimport ServiceSession from '../../Services/ServiceSession';\nimport { createActionFetchProfile } from '../Profile/Actions';\nimport { IFaena, Producer } from './../../Models/Report';\nimport { createActionFetchPort, createActionSetProducers, createActionFetchStageData } from '../Report/Actions';\nimport { EStatusRequest } from '../../Reducers/Session';\nimport Notification from 'antd/lib/notification';\n\nconst service = new ServiceSession();\n\nconst actionChecking: IActionChecking = {\n\ttype: Actions.CHECKING_TOKEN\n};\n\nconst keyToken = 'session.token';\n\nexport const createActionChecking = () => {\n\treturn (dispatch: any) => {\n\t\tdispatch(actionChecking);\n\t\tconst token = sessionStorage.getItem(keyToken);\n\t\tconst isSuccess = token !== undefined && token !== null && token !== '';\n\t\tdispatch({\n\t\t\ttype: Actions.CHECKED_TOKEN,\n\t\t\tpayload: {\n\t\t\t\tisAuth: isSuccess,\n\t\t\t\ttoken: token\n\t\t\t}\n\t\t} as IActionChecked);\n\t\tif (isSuccess) {\n\t\t\tServiceWrapper.setToken(token as string);\n\t\t\tdispatch(createActionAccount());\n\t\t}\n\t};\n};\n\nexport const createActionFetchFaenas = (id: number, includeSummary: boolean = true) => {\n\treturn (dispatch: any) => {\n\t\tservice\n\t\t\t.fetchFaenas(id)\n\t\t\t.then(async r => {\n\t\t\t\tconst data: IFaena[] = await r.json();\n\t\t\t\tconst producers: Producer[] = Producer.transform(data, id, createActionFetchPort, dispatch, includeSummary);\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: Actions.FETCH_FAENAS,\n\t\t\t\t\tpayload: producers\n\t\t\t\t});\n\t\t\t\tdispatch(createActionSetProducers(producers));\n\t\t\t\tif (includeSummary) {\n\t\t\t\t\tproducers.map(p => {\n\t\t\t\t\t\tdispatch(createActionFetchStageData(id, p))\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tdispatch({ type: Actions.FETCH_FAENAS, payload: [] });\n\t\t\t});\n\t};\n};\n\nexport const createActionLogout = () => {\n\treturn (dispatch: any) => {\n\t\tservice.logout()\n\t\t.then(() => {\n\t\t\tsessionStorage.removeItem(keyToken);\n\t\t\tdispatch({\n\t\t\t\t\ttype: Actions.CHECKED_TOKEN,\n\t\t\t\t\tpayload: {\n\t\t\t\t\t\tisAuth: false,\n\t\t\t\t\t\ttoken: undefined\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t\twindow.location.href = '/seguimiento';\n\t\t})\n\t\t.catch(() => {\n\t\t\twindow.location.reload();\n\t\t})\n\t}\n}\n\nexport const createActionAccount: any = () => {\n\treturn (dispatch: any) => {\n\tservice\n\t\t.me()\n\t\t.then(async r => {\n\t\t\tif (!r.ok) {\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: Actions.ERROR_SESSION,\n\t\t\t\t\tpayload: 'Session Expire'\n\t\t\t\t})\n\t\t\t}\n\t\t\tconst account = await r.json();\n\t\t\tdispatch(createActionFetchProfile(account.idProfile));\n\t\t\tdispatch({\n\t\t\t\ttype: Actions.INIT_SESSION,\n\t\t\t\tpayload: account\n\t\t\t});\n\t\t})\n\t\t.catch(() => {\n\t\t\tdispatch({\n\t\t\t\ttype: Actions.CHECKED_TOKEN,\n\t\t\t\tpayload: {\n\t\t\t\t\tisAuth: false,\n\t\t\t\t\ttoken: undefined\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n};\n\nexport const createActionRequest: () => IActionRequest = () => ({\n\ttype: Actions.REQUEST_TOKEN\n});\n\nexport const createActionResponseAuth: (\n\tres: IResponseAuth\n) => IActionResponse = (res: IResponseAuth) => ({\n\ttype: Actions.RESPONSE_TOKEN,\n\tpayload: res\n});\n\nexport const createActionAuthenticate = (credential: ICredencial) => {\n\treturn (dispatch: Dispatch) => {\n\t\tdispatch(createActionRequest());\n\t\tservice\n\t\t\t.login(credential)\n\t\t\t.then(async r => {\n\t\t\t\tconst data = await r.json();\n\t\t\t\tdispatch(\n\t\t\t\t\tcreateActionResponseAuth({\n\t\t\t\t\t\tmessage: data.message.replace('Invalid Username or Password', 'Correo o Contraseña Inválidos' ),\n\t\t\t\t\t\tisAuth: data.result === 0,\n\t\t\t\t\t\ttoken: data.token\n\t\t\t\t\t})\n\t\t\t\t);\n\t\t\t\tif (data.alert) {\n\t\t\t\t\tNotification.error({\n\t\t\t\t\t\tdescription: \"Su actividad se ha detectado como sospechosa\",\n\t\t\t\t\t\tmessage: \"Alerta\"\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tif (data.token) {\n\t\t\t\t\tServiceWrapper.setToken(data.token);\n\t\t\t\t\tsessionStorage.setItem(keyToken, data.token);\n\t\t\t\t\tdispatch(createActionAccount());\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tdispatch(createActionResponseAuth(e));\n\t\t\t});\n\t};\n};\n\nexport const createActionStatus = (status: EStatusRequest) => ({\n\ttype: Actions.STATUS_SESSION,\n\tpayload: status\n});\n\nexport const createActionError = (data: any) => ({\n\ttype: Actions.ERROR_SESSION,\n\tpayload: data\n})\n\nexport const createActionChangePassword = (password: IPassword) => {\n\treturn (dispatch: any) => {\n\t\tdispatch(createActionRequest());\n\t\tdispatch(createActionStatus(EStatusRequest.PROCESS));\n\t\tservice.changePassword(password)\n\t\t\t.then(async r => {\n\t\t\t\tif (r.ok) {\n\t\t\t\t\tdispatch(createActionStatus(EStatusRequest.COMPLETE));\n\t\t\t\t} else {\n\t\t\t\t\tdispatch(createActionError(await r.json()));\n\t\t\t\t\tdispatch(createActionStatus(EStatusRequest.FAIL));\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch((e: any) => {\n\t\t\t\tdispatch(createActionError(e));\n\t\t\t\tdispatch(createActionStatus(EStatusRequest.FAIL));\n\t\t\t});\n\t}\n}\n\nexport const createActionRecovery = (data: Recovery) => {\n\treturn (dispatch: any) => {\n\t\tdispatch(createActionStatus((EStatusRequest.PROCESS)));\n\t\tservice.recoveryReq(data)\n\t\t\t.then(r => {\n\t\t\t\tif (r.ok) {\n\t\t\t\t\tdispatch(createActionStatus((EStatusRequest.COMPLETE)));\n\t\t\t\t} else {\n\t\t\t\t\tdispatch(createActionStatus((EStatusRequest.FAIL)));\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tdispatch(createActionStatus((EStatusRequest.FAIL)));\n\t\t\t})\n\t}\n}\n\nexport const createActionRecoveryPass= (data: any) => {\n\tdata.passwordCurrent = \"**\";\n\treturn (dispatch: any) => {\n\t\tdispatch(createActionStatus((EStatusRequest.PROCESS)));\n\t\tservice.recoveryPass(data)\n\t\t\t.then(r => {\n\t\t\t\tif (r.ok) {\n\t\t\t\t\tdispatch(createActionStatus((EStatusRequest.COMPLETE)));\n\t\t\t\t} else {\n\t\t\t\t\tdispatch(createActionStatus((EStatusRequest.FAIL)));\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tdispatch(createActionStatus((EStatusRequest.FAIL)));\n\t\t\t})\n\t}\n}\n\nexport default {\n\tauth: createActionAuthenticate,\n\tchecking: createActionChecking\n};\n","import * as React from 'react';\nimport Logo from '../../Assets/images/logo-navbar.svg';\nimport LinearProgress from '@material-ui/core/LinearProgress';\nimport './Loading.scss';\n\nconst Loading = () => (
\n\t\"Logo\"\n\t
\n\t\t\n\t
\n
);\n\nexport default Loading;\n","import * as React from 'react';\nimport Modal from 'antd/lib/modal';\nimport Avatar from 'antd/lib/avatar';\nimport Form from 'antd/lib/form';\nimport { WrappedFormUtils, FormComponentProps } from 'antd/lib/form/Form';\nimport FormControl from '@material-ui/core/FormControl';\nimport FormHelperText from '@material-ui/core/FormHelperText';\nimport Button from 'antd/lib/button';\nimport { ReactComponent as Password } from '../Assets/images/password.svg';\nimport './ForgetPassword.scss';\nimport { IStateApp } from '../Reducers/index';\nimport { connect } from 'react-redux';\nimport { EStatusRequest } from '../Reducers/Session/index';\nimport notification from 'antd/lib/notification';\nimport { createActionStatus } from '../Actions/Session/Actions';\nimport Loading from './Loading';\nimport TextField from '@material-ui/core/TextField';\n\nexport interface IForgetPasswordword extends FormComponentProps {\n\tisOpen?: boolean;\n\tonChange: (data: any) => void;\n\tonClose: () => void;\n\tstatus: EStatusRequest,\n\terror?: any;\n\tonChangeStatus: (status: EStatusRequest) => void;\n}\n\ninterface FormChangeProps extends FormComponentProps {\n\tonChange: (data: any) => void;\n\tstyle?: any;\n}\n\nconst FormChange = (props: FormChangeProps) => {\n\tconst { getFieldDecorator, getFieldValue } = props.form;\n\tconst hasError = (form: WrappedFormUtils, name: string) => {\n\t\tconst err = form.getFieldError(name);\n\t\tif (err === undefined) {\n\t\t\treturn false;\n\t\t}\n\t\tif (err.length === 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t};\n\tconst getError = (form: WrappedFormUtils, name: string) => {\n\t\tconst err = form.getFieldError(name);\n\t\treturn err;\n\t};\n\tlet invalid = getFieldValue('passwordNew') !== getFieldValue('passwordConfirm');\n\n\tconst onSend = (evt: any) => {\n\t\tevt.preventDefault();\n\t\tprops.form.validateFields((error, values) => {\n\t\t\tif (error || invalid) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprops.onChange(values)\n\t\t})\n\t}\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t

¿Se te olvidó tu contraseña?

\n\t\t\t\t\t

\n\t\t\t\t\t\tPara recuperar su contraseña ingrese correo electrónico registrado y a continuación le enviaremos los pasos para restablecerla.\n\t\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t
\n\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{getFieldDecorator('email', {\n\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\tmessage: 'El correo es requerido'\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttype: 'email',\n\t\t\t\t\t\t\t\t\t\tmessage: 'Debe escribir un correo valido'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t})(\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{(hasError(props.form, 'email')) && (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{getError(props.form, 'email')}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t);\n};\nconst ForgetPassword = (props: IForgetPasswordword) => {\n\tconst isComplete = props.status === EStatusRequest.COMPLETE || props.status === EStatusRequest.FAIL;\n\tif (isComplete) {\n\t\tprops.onChangeStatus(EStatusRequest.PENDING);\n\t\tif (props.status === EStatusRequest.COMPLETE) {\n\t\t\tnotification.success({\n\t\t\t\tmessage: \"Recuperación de contraseña\",\n\t\t\t\tdescription: \"Verifique su correo para recuperar su contraseña\"\n\t\t\t});\n\t\t\tprops.onClose();\n\t\t} else {\n\t\t\tconst extra = props.error && 'detail' in props.error ? props.error.detail === 'Validation' ? 'Contraseña Actual incorrecta' : props.error.detail : props.error;\n\t\t\tnotification.error({\n\t\t\t\tmessage: \"Recuperación de contraseña\",\n\t\t\t\tdescription: \"Error recuperando contraseña, \" + extra\n\t\t\t});\n\t\t}\n\t}\n\treturn (\n\t\t\n\t\t\t{props.status === EStatusRequest.PROCESS && }\n\t\t\t\n\t\t\n\t);\n};\n\nconst mapProps = (state: IStateApp) => ({\n\tstatus: state.session.status,\n\terror: state.session.error\n})\n\nconst mapActions = {\n\tonChangeStatus: createActionStatus\n};\n\nexport const ForgetPasswordword = Form.create()(ForgetPassword);\n\nexport default connect(mapProps, mapActions)(ForgetPasswordword);\n","import * as React from 'react';\nimport Layout from 'antd/lib/layout';\nimport Row from 'antd/lib/row';\nimport Col from 'antd/lib/col';\nimport Spin from 'antd/lib/spin';\nimport BoxPresentation from './BoxPresentation';\nimport BoxForm from './BoxForm';\nimport CSSTransition from 'react-transition-group/CSSTransition';\nimport './LogIn.scss';\nimport { ICredencial, Recovery } from '../../Models/Security';\nimport { ISessionState, EStatusRequest } from '../../Reducers/Session/index';\nimport ForgetPassword from '../../Components/ForgetPassword';\n\nexport interface ILogInState {\n\trecovery: boolean;\n\tanimated: boolean;\n}\n\nexport interface ILogInProps extends ISessionState {\n\tonLogin: (cred: ICredencial) => void;\n\tonRecovery: (data: Recovery) => void;\n\tstatus: EStatusRequest;\n\tsetStatus: (status: EStatusRequest) => void;\n}\n\nclass LogIn extends React.Component {\n\tconstructor(props: ILogInProps) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\trecovery: false,\n\t\t\tanimated: false\n\t\t};\n\t}\n\n\tpublic render() {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{this.renderContent()}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n\n\tprivate renderContent() {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n\n\tprivate setStatus(status: EStatusRequest) {\n\t\tthis.props.setStatus(status);\n\t}\n\n\tprivate onRecovery(data: any) {\n\t\tthis.props.onRecovery(data);\n\t}\n\n\tprivate onRecoveryToggle() {\n\t\tthis.setState({\n\t\t\trecovery: !this.state.recovery,\n\t\t\tanimated: !this.state.animated\n\t\t});\n\t}\n}\n\n\nexport default LogIn;\n","import * as React from 'react';\nimport { Link } from 'react-router-dom';\nimport './MenuItem.scss';\n\ninterface IMenuItemProps {\n\ticon: React.ReactElement ;\n\ttext: string;\n\troute: string;\n\tactive?: boolean;\n}\n\nconst MenuItem = (props: IMenuItemProps) => (
\n\t
\n\t\n\n\t\t
\n\t\t\t{props.icon as any}\n\t\t
\n\t\t
{props.text}
\n\t\n
);\n\nexport default MenuItem;\n","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"style\", {\n type: \"text/css\"\n}, \"\\n\\t.st0{fill:#616161;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st1{fill:#616161;}\\n\\t.st2{fill:#FDFEFF;}\\n\\t.st3{fill:none;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st4{fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st5{fill:#FFFFFF;}\\n\\t.st6{display:none;fill:#FFFFFF;}\\n\\t.st7{display:none;fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st8{fill:#BDBDBD;}\\n\\t.st9{fill:none;stroke:#616161;stroke-linecap:round;stroke-miterlimit:10;}\\n\");\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_1\"\n});\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_2\"\n}, React.createElement(\"g\", {\n id: \"break_bulk\"\n}, React.createElement(\"rect\", {\n x: 11.5,\n y: 31.51,\n className: \"st8\",\n width: 21.89,\n height: 2.61\n}), React.createElement(\"rect\", {\n x: 8.67,\n y: 34.64,\n className: \"st8\",\n width: 21.89,\n height: 2.61\n}), React.createElement(\"rect\", {\n x: 13.5,\n y: 37.77,\n className: \"st8\",\n width: 21.89,\n height: 2.61\n}), React.createElement(\"rect\", {\n x: 11.19,\n y: 40.89,\n className: \"st8\",\n width: 21.89,\n height: 2.61\n}), React.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st8\",\n d: \"M20.09,23.06l-0.12-1.04l-2.07,0.23l0.12,1.04c0.22,1.96,1.18,3.3,2.73,3.92l-6.53,4.61l0.3,0.43l6.85-4.84 c0.47,0.12,0.99,0.18,1.54,0.18c0.13,0,0.26,0,0.39-0.01c0.61-0.03,1.19-0.19,1.71-0.44l-2.32-1.64 C20.61,25.41,20.21,24.09,20.09,23.06z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M25.51,26.86c-0.16,0.11-0.33,0.2-0.5,0.28l7.97,5.63l0.3-0.43L25.51,26.86z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M27.29,24.3c0.13-0.61,0.1-1.23-0.06-1.85c-0.25-0.95-0.84-1.83-1.65-2.46c-2.09-1.64-2.02-3.12-1.93-3.59 h0.63l2.61-3.13l-0.61-3.07l-3.82,1.95c-0.13,0.07-0.29,0.01-0.35-0.11c-0.07-0.13-0.01-0.29,0.11-0.35l3.96-2.02L25.9,8.41 l-2.43,1.24c-0.13,0.07-0.29,0.01-0.35-0.11c-0.07-0.13-0.01-0.29,0.11-0.35l2.56-1.31l-0.2-0.99l-3.99,2.04 c-0.13,0.07-0.29,0.01-0.35-0.11c-0.07-0.13-0.01-0.29,0.11-0.35l4.12-2.1l-0.18-0.9h-2.35V0.76c0-0.14-0.12-0.26-0.26-0.26 c-0.14,0-0.26,0.12-0.26,0.26v4.69h-0.26H20.1l-1.56,7.82l2.61,3.13h0.4c-0.1,1.15,0.17,3.21,2.74,5.23 c0.46,0.36,0.79,0.84,0.93,1.36c0.08,0.3,0.09,0.6,0.03,0.89c-0.16,0.79-0.86,1.42-1.72,1.58l1.98,1.4 C26.41,26.27,27.07,25.37,27.29,24.3z\"\n}))));\n\nvar SvgBreakBulk = function SvgBreakBulk(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 44 44\",\n style: {\n enableBackground: \"new 0 0 44 44\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgBreakBulk, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/break-bulk.06234bea.svg\";\nexport { ForwardRef as ReactComponent };","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"style\", {\n type: \"text/css\"\n}, \"\\n\\t.st0{fill:#616161;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st1{fill:#616161;}\\n\\t.st2{fill:#FDFEFF;}\\n\\t.st3{fill:none;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st4{fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st5{fill:#FFFFFF;}\\n\\t.st6{display:none;fill:#FFFFFF;}\\n\\t.st7{display:none;fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st8{fill:#BDBDBD;}\\n\\t.st9{fill:none;stroke:#616161;stroke-linecap:round;stroke-miterlimit:10;}\\n\");\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_1\"\n});\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_2\"\n}, React.createElement(\"g\", {\n id: \"Carga_anunciada_1_\"\n}, React.createElement(\"path\", {\n className: \"st8\",\n d: \"M40.39,16.38h-9.33v10.36h7.77c0,0,1.04,2.07,4.66,1.55v-4.14C43.5,24.15,41.95,17.41,40.39,16.38z M40.65,23.63h-5.96v-4.14h5.96V23.63z M41.17,23.63v-3.45l1.3,3.45H41.17z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M5.9,29.35c-1.26,0-2.29,1.02-2.29,2.29c0,1.26,1.02,2.29,2.29,2.29c1.26,0,2.29-1.02,2.29-2.29 C8.19,30.38,7.16,29.35,5.9,29.35z M5.9,32.85c-0.67,0-1.2-0.54-1.2-1.2c0-0.67,0.54-1.2,1.2-1.2c0.67,0,1.2,0.54,1.2,1.2 C7.1,32.31,6.56,32.85,5.9,32.85z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M21.96,29.35c-1.26,0-2.29,1.02-2.29,2.29c0,1.26,1.02,2.29,2.29,2.29c1.26,0,2.29-1.02,2.29-2.29 C24.25,30.38,23.22,29.35,21.96,29.35z M21.96,32.85c-0.67,0-1.2-0.54-1.2-1.2c0-0.67,0.54-1.2,1.2-1.2c0.67,0,1.2,0.54,1.2,1.2 C23.16,32.31,22.62,32.85,21.96,32.85z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M34.39,29.35c-1.26,0-2.29,1.02-2.29,2.29c0,1.26,1.02,2.29,2.29,2.29c1.26,0,2.29-1.02,2.29-2.29 C36.68,30.38,35.66,29.35,34.39,29.35z M34.39,32.85c-0.67,0-1.2-0.54-1.2-1.2c0-0.67,0.54-1.2,1.2-1.2c0.67,0,1.2,0.54,1.2,1.2 C35.6,32.31,35.06,32.85,34.39,32.85z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M38.32,27.78H0.5v4.14h2.88c-0.01-0.09-0.03-0.17-0.03-0.26c0-1.43,1.16-2.59,2.59-2.59s2.59,1.16,2.59,2.59 c0,0.09-0.02,0.17-0.03,0.26h10.93c-0.01-0.09-0.03-0.17-0.03-0.26c0-1.43,1.16-2.59,2.59-2.59s2.59,1.16,2.59,2.59 c0,0.09-0.02,0.17-0.03,0.26h7.31c-0.01-0.09-0.03-0.17-0.03-0.26c0-1.43,1.16-2.59,2.59-2.59s2.59,1.16,2.59,2.59 c0,0.09-0.02,0.17-0.03,0.26h4.43v-2.59C41.43,29.33,39.36,29.33,38.32,27.78z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M0.5,9.64v17.1h29.53V9.64H0.5z M3.61,25.7H1.54V10.68h2.07V25.7z M7.23,25.7H5.16V10.68h2.07V25.7z M10.86,25.7H8.79V10.68h2.07V25.7z M14.49,25.7h-2.07V10.68h2.07V25.7z M18.11,25.7h-2.07V10.68h2.07V25.7z M21.74,25.7h-2.07 V10.68h2.07V25.7z M25.37,25.7H23.3V10.68h2.07V25.7z M28.99,25.7h-2.07V10.68h2.07V25.7z\"\n})));\n\nvar SvgCargaAnunciada = function SvgCargaAnunciada(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 44 44\",\n style: {\n enableBackground: \"new 0 0 44 44\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgCargaAnunciada, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/carga-anunciada.864ce080.svg\";\nexport { ForwardRef as ReactComponent };","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"style\", {\n type: \"text/css\"\n}, \"\\n\\t.st0{fill:#616161;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st1{fill:#616161;}\\n\\t.st2{fill:#FDFEFF;}\\n\\t.st3{fill:none;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st4{fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st5{fill:#FFFFFF;}\\n\\t.st6{display:none;fill:#FFFFFF;}\\n\\t.st7{display:none;fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st8{fill:#BDBDBD;}\\n\\t.st9{fill:none;stroke:#616161;stroke-linecap:round;stroke-miterlimit:10;}\\n\");\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_1\"\n});\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_2\"\n}, React.createElement(\"g\", {\n id: \"Almacenado_1_\"\n}, React.createElement(\"rect\", {\n x: 0.5,\n y: 30.78,\n className: \"st8\",\n width: 43,\n height: 2.72\n}), React.createElement(\"rect\", {\n x: 6.62,\n y: 12,\n className: \"st8\",\n width: 5.03,\n height: 17.96\n}), React.createElement(\"rect\", {\n x: 22.95,\n y: 12,\n className: \"st8\",\n width: 8.57,\n height: 17.96\n}), React.createElement(\"polygon\", {\n className: \"st8\",\n points: \"36.97,12 36.97,16.08 36.02,14.77 35.06,16.08 35.06,12 32.61,12 32.61,29.96 38.19,29.96 38.19,12 \"\n}), React.createElement(\"rect\", {\n x: 12.75,\n y: 12,\n className: \"st8\",\n width: 9.12,\n height: 17.96\n})));\n\nvar SvgCobreAlmacenado = function SvgCobreAlmacenado(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 44 44\",\n style: {\n enableBackground: \"new 0 0 44 44\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgCobreAlmacenado, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/cobre-almacenado.ee6d5a0a.svg\";\nexport { ForwardRef as ReactComponent };","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"style\", {\n type: \"text/css\"\n}, \"\\n\\t.st0{fill:#616161;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st1{fill:#616161;}\\n\\t.st2{fill:#FDFEFF;}\\n\\t.st3{fill:none;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st4{fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st5{fill:#FFFFFF;}\\n\\t.st6{display:none;fill:#FFFFFF;}\\n\\t.st7{display:none;fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st8{fill:#BDBDBD;}\\n\\t.st9{fill:none;stroke:#616161;stroke-linecap:round;stroke-miterlimit:10;}\\n\");\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_1\"\n});\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_2\"\n}, React.createElement(\"g\", {\n id: \"loteado_1_\"\n}, React.createElement(\"rect\", {\n x: 23.5,\n y: 19.29,\n className: \"st8\",\n width: 16.47,\n height: 2.25\n}), React.createElement(\"rect\", {\n x: 26.91,\n y: 22.25,\n className: \"st8\",\n width: 16.59,\n height: 2.25\n}), React.createElement(\"rect\", {\n x: 23.5,\n y: 25.2,\n className: \"st8\",\n width: 16.47,\n height: 2.25\n}), React.createElement(\"rect\", {\n x: 27.03,\n y: 28.15,\n className: \"st8\",\n width: 16.47,\n height: 2.25\n}), React.createElement(\"rect\", {\n x: 26.91,\n y: 16.5,\n className: \"st8\",\n width: 16.59,\n height: 2.25\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M0.7,16.64v13.72h20V16.64H0.7z M2.81,29.53H1.4V17.47h1.4V29.53z M5.26,29.53h-1.4V17.47h1.4V29.53z M7.72,29.53h-1.4V17.47h1.4V29.53z M10.18,29.53h-1.4V17.47h1.4V29.53z M12.63,29.53h-1.4V17.47h1.4V29.53z M15.09,29.53h-1.4 V17.47h1.4V29.53z M17.54,29.53h-1.4V17.47h1.4V29.53z M20,29.53h-1.4V17.47H20V29.53z\"\n})));\n\nvar SvgCobreLoteado = function SvgCobreLoteado(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 44 44\",\n style: {\n enableBackground: \"new 0 0 44 44\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgCobreLoteado, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/cobre-loteado.b9229651.svg\";\nexport { ForwardRef as ReactComponent };","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"style\", {\n type: \"text/css\"\n}, \"\\n\\t.st0{fill:#616161;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st1{fill:#616161;}\\n\\t.st2{fill:#FDFEFF;}\\n\\t.st3{fill:none;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st4{fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st5{fill:#FFFFFF;}\\n\\t.st6{display:none;fill:#FFFFFF;}\\n\\t.st7{display:none;fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st8{fill:#BDBDBD;}\\n\\t.st9{fill:none;stroke:#616161;stroke-linecap:round;stroke-miterlimit:10;}\\n\");\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_1\"\n});\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_2\"\n}, React.createElement(\"g\", {\n id: \"staking_1_\"\n}, React.createElement(\"path\", {\n className: \"st8\",\n d: \"M24.02,7.66l-4.54,17.73H40.9V7.66H24.02z M37.66,22.76H23.38l3.25-12.47h11.04V22.76z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M19.16,28.34c3.23,0,5.84,2.65,5.84,5.91c0,0.11-0.01,0.22-0.02,0.33h7.17c-0.01-0.11-0.02-0.22-0.02-0.33 c0-3.26,2.62-5.91,5.84-5.91c2.56,0,4.73,1.67,5.52,3.98V26.7H16.23v2.44C17.09,28.63,18.09,28.34,19.16,28.34z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M18.83,29.65c-2.69,0-4.87,2.2-4.87,4.92s2.18,4.92,4.87,4.92s4.87-2.2,4.87-4.92S21.52,29.65,18.83,29.65z M18.83,36.87c-1.25,0-2.27-1.03-2.27-2.3s1.02-2.3,2.27-2.3c1.25,0,2.27,1.03,2.27,2.3S20.09,36.87,18.83,36.87z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M38.31,29.65c-2.69,0-4.87,2.2-4.87,4.92s2.18,4.92,4.87,4.92s4.87-2.2,4.87-4.92S41,29.65,38.31,29.65z M38.31,36.87c-1.25,0-2.27-1.03-2.27-2.3s1.02-2.3,2.27-2.3s2.27,1.03,2.27,2.3S39.56,36.87,38.31,36.87z\"\n}), React.createElement(\"rect\", {\n x: 15.26,\n y: 7.73,\n className: \"st8\",\n width: 2.6,\n height: 17.32\n}), React.createElement(\"polygon\", {\n className: \"st8\",\n points: \"14.91,29 14.91,27.03 2.81,27.03 0.5,29 \"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M3.68,15.87v9.19h9.74v-9.19H3.68z M12.12,23.74H4.98v-6.56h2.49v1.31h2.6v-1.31h2.06V23.74z\"\n})));\n\nvar SvgConsolidado = function SvgConsolidado(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 44 44\",\n style: {\n enableBackground: \"new 0 0 44 44\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgConsolidado, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/consolidado.4bda59e5.svg\";\nexport { ForwardRef as ReactComponent };","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"style\", {\n type: \"text/css\"\n}, \"\\n\\t.st0{fill:#616161;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st1{fill:#616161;}\\n\\t.st2{fill:#FDFEFF;}\\n\\t.st3{fill:none;stroke:#616161;stroke-miterlimit:10;}\\n\\t.st4{fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st5{fill:#FFFFFF;}\\n\\t.st6{display:none;fill:#FFFFFF;}\\n\\t.st7{display:none;fill:#616161;stroke:#FFFFFF;stroke-miterlimit:10;}\\n\\t.st8{fill:#BDBDBD;}\\n\\t.st9{fill:none;stroke:#616161;stroke-linecap:round;stroke-miterlimit:10;}\\n\");\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_1\"\n});\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", {\n id: \"Capa_2\"\n}, React.createElement(\"g\", {\n id: \"vonsolidado\"\n}, React.createElement(\"path\", {\n className: \"st8\",\n d: \"M0.5,22.62V34.5h20.51V22.62H0.5z M2.66,33.78H1.22V23.34h1.44V33.78z M5.18,33.78H3.74V23.34h1.44V33.78z M7.7,33.78H6.26V23.34H7.7V33.78z M10.22,33.78H8.78V23.34h1.44V33.78z M12.74,33.78H11.3V23.34h1.44V33.78z M15.26,33.78h-1.44 V23.34h1.44V33.78z M17.77,33.78h-1.44V23.34h1.44V33.78z M20.29,33.78h-1.44V23.34h1.44V33.78z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M22.99,22.62V34.5H43.5V22.62H22.99z M25.15,33.78h-1.44V23.34h1.44V33.78z M27.66,33.78h-1.44V23.34h1.44 V33.78z M30.18,33.78h-1.44V23.34h1.44V33.78z M32.7,33.78h-1.44V23.34h1.44V33.78z M35.22,33.78h-1.44V23.34h1.44V33.78z M37.74,33.78H36.3V23.34h1.44V33.78z M40.26,33.78h-1.44V23.34h1.44V33.78z M42.78,33.78h-1.44V23.34h1.44V33.78z\"\n}), React.createElement(\"path\", {\n className: \"st8\",\n d: \"M11.74,9.34v11.88h20.51V9.34H11.74z M13.9,20.49h-1.44V10.06h1.44V20.49z M16.42,20.49h-1.44V10.06h1.44 V20.49z M18.94,20.49H17.5V10.06h1.44V20.49z M21.46,20.49h-1.44V10.06h1.44V20.49z M23.98,20.49h-1.44V10.06h1.44V20.49z M26.5,20.49h-1.44V10.06h1.44V20.49z M29.02,20.49h-1.44V10.06h1.44V20.49z M31.54,20.49H30.1V10.06h1.44V20.49z\"\n})));\n\nvar SvgStacking = function SvgStacking(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 44 44\",\n style: {\n enableBackground: \"new 0 0 44 44\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgStacking, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/stacking.44fad97e.svg\";\nexport { ForwardRef as ReactComponent };","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"path\", {\n d: \"M230.505,102.78c-0.365-3.25-4.156-5.695-7.434-5.695c-10.594,0-19.996-6.218-23.939-15.842 c-4.025-9.855-1.428-21.346,6.465-28.587c2.486-2.273,2.789-6.079,0.705-8.721c-5.424-6.886-11.586-13.107-18.316-18.498 c-2.633-2.112-6.502-1.818-8.787,0.711c-6.891,7.632-19.27,10.468-28.836,6.477c-9.951-4.187-16.232-14.274-15.615-25.101 c0.203-3.403-2.285-6.36-5.676-6.755c-8.637-1-17.35-1.029-26.012-0.068c-3.348,0.37-5.834,3.257-5.723,6.617 c0.375,10.721-5.977,20.63-15.832,24.667c-9.451,3.861-21.744,1.046-28.621-6.519c-2.273-2.492-6.074-2.798-8.725-0.731 c-6.928,5.437-13.229,11.662-18.703,18.492c-2.133,2.655-1.818,6.503,0.689,8.784c8.049,7.289,10.644,18.879,6.465,28.849 c-3.99,9.505-13.859,15.628-25.156,15.628c-3.666-0.118-6.275,2.345-6.68,5.679c-1.016,8.683-1.027,17.535-0.049,26.289 c0.365,3.264,4.268,5.688,7.582,5.688c10.07-0.256,19.732,5.974,23.791,15.841c4.039,9.855,1.439,21.341-6.467,28.592 c-2.473,2.273-2.789,6.07-0.701,8.709c5.369,6.843,11.537,13.068,18.287,18.505c2.65,2.134,6.504,1.835,8.801-0.697 c6.918-7.65,19.295-10.481,28.822-6.482c9.98,4.176,16.258,14.262,15.645,25.092c-0.201,3.403,2.293,6.369,5.672,6.755 c4.42,0.517,8.863,0.773,13.32,0.773c4.23,0,8.461-0.231,12.692-0.702c3.352-0.37,5.834-3.26,5.721-6.621 c-0.387-10.716,5.979-20.626,15.822-24.655c9.514-3.886,21.752-1.042,28.633,6.512c2.285,2.487,6.063,2.789,8.725,0.73 c6.916-5.423,13.205-11.645,18.703-18.493c2.135-2.65,1.832-6.503-0.689-8.788c-8.047-7.284-10.656-18.879-6.477-28.839 c3.928-9.377,13.43-15.673,23.65-15.673l1.43,0.038c3.318,0.269,6.367-2.286,6.768-5.671 C231.476,120.379,231.487,111.537,230.505,102.78z M115.616,182.27c-36.813,0-66.654-29.841-66.654-66.653 s29.842-66.653,66.654-66.653s66.654,29.841,66.654,66.653c0,12.495-3.445,24.182-9.428,34.176l-29.186-29.187 c2.113-4.982,3.229-10.383,3.228-15.957c0-10.915-4.251-21.176-11.97-28.893c-7.717-7.717-17.978-11.967-28.891-11.967 c-3.642,0-7.267,0.484-10.774,1.439c-1.536,0.419-2.792,1.685-3.201,3.224c-0.418,1.574,0.053,3.187,1.283,4.418 c0,0,14.409,14.52,19.23,19.34c0.505,0.505,0.504,1.71,0.433,2.144l-0.045,0.317c-0.486,5.3-1.423,11.662-2.196,14.107 c-0.104,0.103-0.202,0.19-0.308,0.296c-0.111,0.111-0.213,0.218-0.32,0.328c-2.477,0.795-8.937,1.743-14.321,2.225l0.001-0.029 l-0.242,0.061c-0.043,0.005-0.123,0.011-0.229,0.011c-0.582,0-1.438-0.163-2.216-0.94c-5.018-5.018-18.862-18.763-18.862-18.763 c-1.242-1.238-2.516-1.498-3.365-1.498c-1.979,0-3.751,1.43-4.309,3.481c-3.811,14.103,0.229,29.273,10.546,39.591 c7.719,7.718,17.981,11.968,28.896,11.968c5.574,0,10.975-1.115,15.956-3.228l29.503,29.503 C141.125,178.412,128.825,182.27,115.616,182.27z\"\n});\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref5 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref6 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref7 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref8 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref9 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref10 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref11 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref12 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref13 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref14 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref15 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref16 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref17 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar SvgConfig = function SvgConfig(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n id: \"Capa_1\",\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 231.233 231.233\",\n style: {\n enableBackground: \"new 0 0 231.233 231.233\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgConfig, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/config.d908ee4b.svg\";\nexport { ForwardRef as ReactComponent };","import * as React from 'react';\nimport Icon from '@material-ui/core/Icon'\nimport { Scrollbars } from 'react-custom-scrollbars';\nimport MenuItem from './MenuItem';\nimport { ReactComponent as BreakBulk } from '../../Assets/images/break-bulk.svg';\nimport { ReactComponent as CargaAnunciada } from '../../Assets/images/carga-anunciada.svg';\nimport { ReactComponent as CobreAlmacenado } from '../../Assets/images/cobre-almacenado.svg';\nimport { ReactComponent as CobreLoteado } from '../../Assets/images/cobre-loteado.svg';\nimport { ReactComponent as Consolidado } from '../../Assets/images/consolidado.svg';\nimport { ReactComponent as Stacking } from '../../Assets/images/stacking.svg';\nimport { ReactComponent as Config } from '../../Assets/images/config.svg';\n\nexport interface IMenuProps {\n\troute: string;\n\tisAdmin: boolean;\n}\n\nconst routes = [\n\t{\n\t\ticon: home,\n\t\ttext: 'Home',\n\t\troute: '/'\n\t},\n\t{\n\t\ticon: ,\n\t\ttext: 'Carga Anunciada',\n\t\troute: '/carga-anunciada'\n\t},\n\t{\n\t\ticon: ,\n\t\ttext: 'Cobre Almenado',\n\t\troute: '/cobre-almacenado'\n\t},\n\t{\n\t\ticon: ,\n\t\ttext: 'Cobre Loteado',\n\t\troute: '/cobre-loteado'\n\t},\n\t{\n\t\ticon: ,\n\t\ttext: 'Embarcado Break Bulk',\n\t\troute: '/break-bulk'\n\t},\n\t{\n\t\ticon: ,\n\t\ttext: 'Consolidado',\n\t\troute: '/consolidado'\n\t},\n\t{\n\t\ticon: ,\n\t\ttext: 'Stacking',\n\t\troute: '/stacking'\n\t},\n\t{\n\t\ticon: ,\n\t\ttext: 'Administración',\n\t\troute: '/administration'\n\t},\n\t{\n\t\ticon: live_help,\n\t\ttext: 'Manual',\n\t\troute: '/manual'\n\t}\n]\n\nconst Menu = (props: IMenuProps) => (\n\t{routes.filter(r => r.text !== 'Administración' || (r.text === 'Administración' && props.isAdmin)).map(r => =0} />)}\n);\n\nexport default Menu;\n","import * as React from 'react';\nimport Sider from 'antd/lib/layout/Sider';\nimport Menu from './Menu';\nimport './SideBar.scss';\nimport { withRouter } from 'react-router-dom';\n\nconst SideBar = (props: any) => {\n\treturn \n\t\n\n};\n\nexport default withRouter(SideBar);\n","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"style\", {\n type: \"text/css\"\n}, \"\\r\\n\\t.st0{fill:#32C7C7;}\\r\\n\\t.st1{fill:#FFFFFF;}\\r\\n\\t.st2{fill:#0B60B9;}\\r\\n\\t.st3{fill:#D66A05;}\\r\\n\");\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"circle\", {\n className: \"st3\",\n cx: 108,\n cy: 103,\n r: 84\n}));\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M50.4,156.5l-2.3-2.6C35.8,139.6,29,121.3,29,102.5C29,59.2,64.2,24,107.5,24S186,59.2,186,102.5 c0,17.8-5.8,34.5-16.8,48.5l-2.2,2.7l-1.9-2.9c-12.7-19.6-33.6-31.3-55.7-31.3c-23.3,0-44.7,12.7-57.3,34L50.4,156.5z M107.5,29 C67,29,34,62,34,102.5c0,16.5,5.6,32.5,15.7,45.4c13.7-21,35.8-33.4,59.8-33.4c22.7,0,44.1,11.4,57.8,30.6 c8.9-12.5,13.7-27.2,13.7-42.6C181,62,148,29,107.5,29z\"\n}));\n\nvar _ref5 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M107,118c-19.9,0-36-16.1-36-36s16.1-36,36-36s36,16.1,36,36S126.9,118,107,118z M107,51 c-17.1,0-31,13.9-31,31s13.9,31,31,31s31-13.9,31-31S124.1,51,107,51z\"\n}));\n\nvar SvgProfileAdmin = function SvgProfileAdmin(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n id: \"Capa_1\",\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 214 208\",\n style: {\n enableBackground: \"new 0 0 214 208\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4, _ref5);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgProfileAdmin, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/profile-admin.91478a7c.svg\";\nexport { ForwardRef as ReactComponent };","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"style\", {\n type: \"text/css\"\n}, \"\\n\\t.st0{fill:#32C7C7;}\\n\\t.st1{fill:#FFFFFF;}\\n\\t.st2{fill:#0B60B9;}\\n\\t.st3{fill:#D66A05;}\\n\");\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"g\", null, React.createElement(\"circle\", {\n className: \"st2\",\n cx: 108,\n cy: 108,\n r: 84\n})), React.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M50.4,161.5l-2.3-2.6C35.8,144.6,29,126.3,29,107.5C29,64.2,64.2,29,107.5,29S186,64.2,186,107.5 c0,17.8-5.8,34.5-16.8,48.5l-2.2,2.7l-1.9-2.9c-12.7-19.6-33.6-31.3-55.7-31.3c-23.3,0-44.7,12.7-57.3,34L50.4,161.5z M107.5,34 C67,34,34,67,34,107.5c0,16.5,5.6,32.5,15.7,45.4c13.7-21,35.8-33.4,59.8-33.4c22.7,0,44.1,11.4,57.8,30.6 c8.9-12.5,13.7-27.2,13.7-42.6C181,67,148,34,107.5,34z\"\n})), React.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M107,123c-19.9,0-36-16.1-36-36c0-15.7,10.2-29.5,25-34.3v-7.9c0-2.1,1.7-3.8,3.8-3.8h14.3 c2.1,0,3.8,1.7,3.8,3.8v7.9c14.8,4.7,25,18.6,25,34.3C143,106.9,126.9,123,107,123z M101,46v10.5L99.1,57C85.5,60.6,76,72.9,76,87 c0,17.1,13.9,31,31,31s31-13.9,31-31c0-14.1-9.5-26.4-23.1-30l-1.9-0.5V46H101z\"\n})), React.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M148,90H62.5c-1.6,0-3-1.3-3-3v-3.5c0-1.7,1.3-3,3-3H148c1.6,0,3,1.3,3,3V87C151,88.7,149.6,90,148,90z\"\n})), React.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M113,64.5V46.4c0-1.4,1.1-2.5,2.5-2.5l0,0c1.4,0,2.5,1.1,2.5,2.5v18.1c0,1.4-1.1,2.5-2.5,2.5l0,0 C114.1,67,113,65.9,113,64.5z\"\n})), React.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M96,64.5V46.4c0-1.4,1.1-2.5,2.5-2.5l0,0c1.4,0,2.5,1.1,2.5,2.5v18.1c0,1.4-1.1,2.5-2.5,2.5l0,0 C97.1,67,96,65.9,96,64.5z\"\n})), React.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M124.5,67L124.5,67c-1.4,0-2.5-1.1-2.5-2.5v-6c0-1.4,1.1-2.5,2.5-2.5l0,0c1.4,0,2.5,1.1,2.5,2.5v6 C127,65.9,125.9,67,124.5,67z\"\n})), React.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M90.5,67L90.5,67c-1.4,0-2.5-1.1-2.5-2.5v-6c0-1.4,1.1-2.5,2.5-2.5l0,0c1.4,0,2.5,1.1,2.5,2.5v6 C93,65.9,91.9,67,90.5,67z\"\n})));\n\nvar SvgProfileWorker = function SvgProfileWorker(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n id: \"Capa_1\",\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 212 208\",\n style: {\n enableBackground: \"new 0 0 212 208\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgProfileWorker, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/profile-worker.7ea6d747.svg\";\nexport { ForwardRef as ReactComponent };","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"style\", {\n type: \"text/css\"\n}, \"\\r\\n\\t.st0{fill:#32C7C7;}\\r\\n\\t.st1{fill:#FFFFFF;}\\r\\n\\t.st2{fill:#0B60B9;}\\r\\n\\t.st3{fill:#D66A05;}\\r\\n\");\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"g\", null, React.createElement(\"circle\", {\n className: \"st0\",\n cx: 108,\n cy: 103,\n r: 84\n})));\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M50.4,156.5l-2.3-2.6C35.8,139.6,29,121.3,29,102.5C29,59.2,64.2,24,107.5,24S186,59.2,186,102.5 c0,17.8-5.8,34.5-16.8,48.5l-2.2,2.7l-1.9-2.9c-12.7-19.6-33.6-31.3-55.7-31.3c-23.3,0-44.7,12.7-57.3,34L50.4,156.5z M107.5,29 C67,29,34,62,34,102.5c0,16.5,5.6,32.5,15.7,45.4c13.7-21,35.8-33.4,59.8-33.4c22.7,0,44.1,11.4,57.8,30.6 c8.9-12.5,13.7-27.2,13.7-42.6C181,62,148,29,107.5,29z\"\n}));\n\nvar _ref5 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M107,118c-19.9,0-36-16.1-36-36s16.1-36,36-36s36,16.1,36,36S126.9,118,107,118z M107,51 c-17.1,0-31,13.9-31,31s13.9,31,31,31s31-13.9,31-31S124.1,51,107,51z\"\n}));\n\nvar _ref6 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M108,175c-3.3,0-6-2.7-6-6v-29c0-3.3,2.7-6,6-6s6,2.7,6,6v29C114,172.3,111.3,175,108,175z M108,137 c-1.7,0-3,1.3-3,3v29c0,1.7,1.3,3,3,3s3-1.3,3-3v-29C111,138.3,109.7,137,108,137z\"\n}));\n\nvar _ref7 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"path\", {\n className: \"st1\",\n d: \"M108,132c-3.3,0-6-2.7-6-6v-3c0-3.3,2.7-6,6-6s6,2.7,6,6v3C114,129.3,111.3,132,108,132z M108,120 c-1.7,0-3,1.3-3,3v3c0,1.7,1.3,3,3,3s3-1.3,3-3v-3C111,121.3,109.7,120,108,120z\"\n}));\n\nvar SvgProfileCustomer = function SvgProfileCustomer(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n id: \"Capa_1\",\n x: \"0px\",\n y: \"0px\",\n viewBox: \"0 0 212 208\",\n style: {\n enableBackground: \"new 0 0 212 208\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgProfileCustomer, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/profile-customer.23751214.svg\";\nexport { ForwardRef as ReactComponent };","import * as React from 'react';\nimport { ReactComponent as AdminIcon } from '../../Assets/images/profile-admin.svg';\nimport { ReactComponent as WorkerIcon } from '../../Assets/images/profile-worker.svg';\nimport { ReactComponent as CustomerIcon } from '../../Assets/images/profile-customer.svg';\nimport './Profile.scss';\nimport BoxProfile from './BoxProfile';\nimport ChangePass from './ChangePass';\nimport { IPassword } from '../../Models/Security';\n\nexport interface IProfileProps {\n\tclassName?: string;\n\tname: string;\n\temail: string;\n\tprofile: string;\n\tonChange: (password: IPassword) => void;\n}\n\nenum EProfile {\n\tAdmin = 'profile-admin',\n\tCustomer = 'profile-customer',\n\tWorker = 'profile-worker'\n}\nlet node: any = undefined;\nconst Profile = (props: IProfileProps) => {\n\n\tconst [isOpen, setOpen] = React.useState(false);\n\tconst [openChange, setOpenChange] = React.useState(false);\n\tconst close = () => {\n\t\tsetOpen(false);\n\t\tdocument.removeEventListener('click', listener);\n\t};\n\tconst listener = (evt: any) => {\n\t\tif (!node || !node.contains(evt.target)) {\n\t\t\tclose();\n\t\t}\n\t};\n\tconst toggle = () => {\n\t\tif (!isOpen) {\n\t\t\tdocument.addEventListener('click', listener);\n\t\t}\n\t\tsetOpen(!isOpen);\n\t}\n\tconst getProfile = () => {\n\t\tif (props.profile.toLowerCase().indexOf('admin') >= 0) {\n\t\t\treturn EProfile.Admin;\n\t\t}\n\t\tif (props.profile.toLowerCase().indexOf('person') >= 0) {\n\t\t\treturn EProfile.Worker;\n\t\t}\n\t\treturn EProfile.Customer;\n\t}\n\tconst profileClass = getProfile();\n\tconst renderIcon = () => {\n\t\tswitch(profileClass) {\n\t\t\tcase EProfile.Worker:\n\t\t\t\treturn ;\n\t\t\tcase EProfile.Admin:\n\t\t\t\treturn ;\n\t\t\tdefault:\n\t\t\t\treturn ;\n\t\t}\n\t}\n\n\tconst onChangePass = () => {\n\t\tclose();\n\t\tsetOpenChange(!openChange);\n\t}\n\n\treturn (
{node = n}} onClick={!isOpen ? toggle : undefined} className={`profile ${props.className}`} >\n\t\t\n\t\t\n\t\t
\n\t\t\t
{props.name}
\n\t\t\t
{props.email}
\n\t\t\t
{props.profile}
\n\t\t
\n\t\t
\n\t\t\t{renderIcon()}\n\t\t
\n\t
)\n}\n\nexport default Profile;\n","import * as React from 'react';\nimport './BoxProfile.scss';\nimport { createActionLogout } from '../../Actions/Session/Actions';\nimport { connect } from 'react-redux';\nimport { IStateApp } from '../../Reducers/index';\n\nexport interface IBoxProfileProps {\n\tonToggle: () => void;\n\topen: boolean;\n\ticon: JSX.Element;\n\tclassProfile: string;\n\tprofile: string;\n\tname: string;\n\temail: string;\n\tonLogout: () => void;\n\tonChangePass: () => void;\n}\n\n\nclass BoxProfile extends React.Component {\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{this.props.icon}\n\n\t\t\t\t\t\t

{this.props.profile}

\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n
\n \n
{this.props.name}
\n
\n
\n \n
{this.props.profile}
\n
\n
\n \n
{this.props.email}
\n
\n
\n\t\t\t\t
\n\t\t\t\t\t
Cambiar Contraseña
\n\t\t\t\t\t
Cerrar Sesión
\n\t\t\t\t
\n\t\t\t
\n\t\t);\n\t}\n}\n\nconst mapProps = (state: IStateApp) => ({});\n\nconst mapActions = (dispatch: any) => ({\n\tonLogout: () => dispatch(createActionLogout())\n});\n\nexport default connect(mapProps, mapActions)(BoxProfile);\n","import * as React from 'react';\nimport Modal from 'antd/lib/modal';\nimport Avatar from 'antd/lib/avatar';\nimport Form from 'antd/lib/form';\nimport { WrappedFormUtils, FormComponentProps } from 'antd/lib/form/Form';\nimport FormControl from '@material-ui/core/FormControl';\nimport TextPass from '../TextField/TextPass';\nimport FormHelperText from '@material-ui/core/FormHelperText';\nimport Button from 'antd/lib/button';\nimport { ReactComponent as Password } from '../../Assets/images/password.svg';\nimport './ChangePass.scss';\nimport { IStateApp } from '../../Reducers/index';\nimport { connect } from 'react-redux';\nimport { EStatusRequest } from '../../Reducers/Session/index';\nimport notification from 'antd/lib/notification';\nimport { createActionStatus } from '../../Actions/Session/Actions';\nimport Loading from '../Loading';\n\nexport interface IChangePassword extends FormComponentProps {\n\tisOpen?: boolean;\n\temail: string;\n\tisBox?: boolean;\n\tonChange: (data: any) => void;\n\tonClose: () => void;\n\tstatus: EStatusRequest,\n\terror?: any;\n\tonChangeStatus: (status: EStatusRequest) => void;\n\thiddenOld?: boolean;\n\tnoClose?: boolean;\n}\n\ninterface AvatarAccountProps {\n\temail: string;\n}\n\nconst AvatarAccount = (props: AvatarAccountProps) => {\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t{props.email}\n\t\t
\n\t);\n};\n\ninterface FormChangeProps extends FormComponentProps {\n\temail: string;\n\tonChange: (data: any) => void;\n\tstyle?: any;\n\thiddenOld?: boolean;\n\tnoClose?: boolean;\n}\n\nconst FormChange = (props: FormChangeProps) => {\n\tconst { getFieldDecorator, getFieldValue } = props.form;\n\tconst hasError = (form: WrappedFormUtils, name: string) => {\n\t\tconst err = form.getFieldError(name);\n\t\tif (err === undefined) {\n\t\t\treturn false;\n\t\t}\n\t\tif (err.length === 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t};\n\tconst getError = (form: WrappedFormUtils, name: string) => {\n\t\tconst err = form.getFieldError(name);\n\t\treturn err;\n\t};\n\tlet invalid = getFieldValue('passwordNew') !== getFieldValue('passwordConfirm');\n\n\tconst onSend = (evt: any) => {\n\t\tevt.preventDefault();\n\t\tprops.form.validateFields((error, values) => {\n\t\t\tif (error || invalid) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprops.onChange(values)\n\t\t})\n\t}\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t

Cambiar Contraseña

\n\t\t\t\t\t

\n\t\t\t\t\t\tCree una nueva contraseña segura por seguridad para acceder a\n\t\t\t\t\t\tnuestra cuenta\n\t\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t{!props.hiddenOld && \n\t\t\t\t\t\t{getFieldDecorator('passwordOld', {\n\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\tmessage: 'La contraseña es requerida'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t})(\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{hasError(props.form, 'passwordOld') && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{getError(props.form, 'passwordOld')}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t{getFieldDecorator('passwordNew', {\n\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\tmessage: 'La contraseña es requerida'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t})(\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{(hasError(props.form, 'passwordNew') || invalid) && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{invalid ? 'La contraseña ingresada no coinciden con la confirmación' : getError(props.form, 'passwordNew')}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{getFieldDecorator('passwordConfirm', {\n\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\tmessage: 'La contraseña es requerida'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t})(\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{hasError(props.form, 'passwordConfirm') && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{getError(props.form, 'passwordConfirm')}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t);\n};\nconst ChangePass = (props: IChangePassword) => {\n\tconst isComplete = props.status === EStatusRequest.COMPLETE || props.status === EStatusRequest.FAIL;\n\tif (isComplete) {\n\t\tif (!props.hiddenOld) {\n\t\t\tprops.onChangeStatus(EStatusRequest.PENDING);\n\t\t}\n\t\tif (props.status === EStatusRequest.COMPLETE) {\n\t\t\tnotification.success({\n\t\t\t\tmessage: \"Cambio de Contraseña\",\n\t\t\t\tdescription: \"Contraseña Cambiada Exitosamente\"\n\t\t\t});\n\t\t\tprops.onClose();\n\t\t} else {\n\t\t\tconst extra = props.error && 'detail' in props.error ? props.error.detail === 'Validation' ? 'Contraseña Actual incorrecta' : props.error.detail : props.error;\n\t\t\tnotification.error({\n\t\t\t\tmessage: \"Cambio de Contraseña\",\n\t\t\t\tdescription: \"Error Cambiando, \" + extra\n\t\t\t});\n\t\t}\n\n\t}\n\tif (props.isBox) {\n\t\treturn
\n\t\t\t{props.status === EStatusRequest.PROCESS && }\n\t\t\t\n\t\t
\n\t}\n\treturn (\n\t\t\n\t\t\t{props.status === EStatusRequest.PROCESS && }\n\t\t\t\n\t\t\n\t);\n};\n\nconst mapProps = (state: IStateApp) => ({\n\tstatus: state.session.status,\n\terror: state.session.error\n})\n\nconst mapActions = {\n\tonChangeStatus: createActionStatus\n};\n\nexport const ChangePassword = Form.create()(ChangePass);\n\nexport default connect(mapProps, mapActions)(ChangePassword);\n","import * as React from 'react';\nimport LogoNavBar from '../../Assets/images/logo-navbar.svg';\nimport './NavBar.scss';\nimport Profile from '../Profile';\nimport { IProfile, IPassword } from '../../Models/Security';\nimport { IAccount } from '../../Models/Account';\n\nexport interface INavbarProps {\n\taccount: IAccount;\n\tprofile?: IProfile;\n\tonChangePass: (data: IPassword) => void;\n}\n\nconst NavBar = (props: INavbarProps) => (
\n\t\"Logo\"\n\t\n
);\n\nexport default NavBar;\n","import * as React from 'react';\nimport { BrowserRouter as Router, Route, Switch, Redirect, RouteComponentProps } from 'react-router-dom';\nimport Layout from 'antd/lib/layout';\nimport { connect } from 'react-redux';\nimport { IStateApp } from '../../Reducers/index';\nimport { ISessionState, EStatusRequest } from '../../Reducers/Session';\nimport LogIn from '../../Containers/LogIn';\nimport ActionCreate, { createActionRecovery, createActionStatus, createActionRecoveryPass, createActionAccount } from '../../Actions/Session/Actions';\nimport { ICredencial, IProfile, IPassword, Recovery } from '../../Models/Security';\nimport SideBar from './SideBar';\nimport NavBar from './NavBar';\nimport './Layout.scss';\nimport Loading from '../Loading';\nimport Scrollbars from 'react-custom-scrollbars';\nimport { IAccount } from '../../Models/Account';\nimport { createActionChangePassword } from '../../Actions/Session/Actions';\nimport ChangePass from '../Profile/ChangePass';\nimport ServiceWrapper from '../../Services/ServiceWrapper';\nimport notification from 'antd/lib/notification';\n\ninterface ILayoutProps extends ISessionState, RouteComponentProps {\n\tprofile?: IProfile;\n\tonLogin: (cred: ICredencial) => void;\n\tonChecking: () => void;\n\tonChangePass: (password: IPassword) => void;\n\tonRecovery: (data: Recovery) => void;\n\tstatus: EStatusRequest;\n\tsetStatus: (status: EStatusRequest) => void;\n\tonRecoverPass: (password: IPassword) => void,\n\tonAccount: () => void\n}\n\nclass LayoutComponent extends React.Component {\n\trender() {\n\t\tif ((!this.props.account || !this.props.profile) && this.props.isAuthorize) {\n\t\t\treturn \n\t\t}\n\t\tif (!this.props.isAuthorize) {\n\t\t\treturn \n\t\t\t\t\n\t\t\t\t\t {\n\t\t\t\t\t\tconst params = new URLSearchParams(props.location.search);\n\t\t\t\t\t\tif (params.get('authCode')) {\n\t\t\t\t\t\t\tServiceWrapper.setToken(params.get('authCode')!);\n\t\t\t\t\t\t\tif (this.props.status === EStatusRequest.PENDING && !this.props.account) {\n\t\t\t\t\t\t\t\tthis.props.setStatus(EStatusRequest.PROCESS);\n\t\t\t\t\t\t\t\tthis.props.onAccount();\n\t\t\t\t\t\t\t\treturn \n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (this.props.account && this.props.status === EStatusRequest.PROCESS) {\n\t\t\t\t\t\t\t\t\tthis.props.setStatus(EStatusRequest.PENDING);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tif (this.props.error) {\n\t\t\t\t\t\t\t\t\t\tnotification.error({\n\t\t\t\t\t\t\t\t\t\t\tmessage: 'Recuperación de usuario',\n\t\t\t\t\t\t\t\t\t\t\tdescription: 'El tiempo para recuperacion se ha excedido'\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t\t\tthis.goLogin();\n\t\t\t\t\t\t\t\t\t\t}, 4000);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (this.props.status === EStatusRequest.PROCESS) {\n\t\t\t\t\t\t\t\t\treturn \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn \n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn { this.goLogin() }} email=\"\" onChange={this.props.onRecoverPass} isOpen={true} />\n\t\t\t\t\t}} />\n\t\t\t\t\t } />\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\treturn \n\t\t\t\n\t\t\t\t\n\t\t\t\t{this.renderContent()}\n\t\t\t\n\t\t;\n\t}\n\n\tcomponentDidMount() {\n\t\tthis.props.onChecking();\n\t}\n\n\tprivate goLogin = () => {\n\t\twindow.location.href = '/seguimiento';\n\t}\n\n\tprivate renderContent() {\n\t\treturn \n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t
{this.props.children}
\n\t\t\t\t
\n\t\t\t
\n\t\t
;\n\t}\n\n\tprivate onChange(data: any) {\n\t\tconst res: IPassword = {\n\t\t\tpasswordCurrent: data.passwordOld,\n\t\t\tpasswordNew: data.passwordNew\n\t\t};\n\t\tthis.props.onChangePass(res);\n\t}\n}\nconst mapProps = (state: IStateApp) => ({...state.session, profile: state.profile.current });\n\nconst mapActions = {\n\tonLogin: ActionCreate.auth,\n\tonChecking: ActionCreate.checking,\n\tonChangePass: createActionChangePassword,\n\tonRecovery: createActionRecovery,\n\tsetStatus: createActionStatus,\n\tonRecoverPass: createActionRecoveryPass,\n\tonAccount: createActionAccount,\n}\n\nexport default connect(mapProps as any, mapActions)(LayoutComponent) as any;\n","import * as React from 'react';\nimport Spin from 'antd/lib/spin';\nimport './Box.scss';\n\nexport interface IBoxProps {\n\tloading?: boolean;\n\tloadingText?: string;\n\tchildren?: React.ReactElement | React.ReactElement[];\n}\n\nconst Box = (props: IBoxProps) => (\n\t
\n\t\t{props.children}\n\t
\n
);\n\nexport default Box;\n","import * as React from 'react';\nimport { Summary } from '../../Models/Report';\nimport { PieChart as PieChartRe, Pie, Cell, Sector, Label } from 'recharts';\nimport './PieChart.scss';\nimport { formatAmount } from '../../Utils/NumberFormat';\nimport Empty from 'antd/lib/empty';\n\nexport interface IPieChartSummary {\n\tdata: Summary[];\n\tloading: boolean;\n}\n\nexport const PieChart = (props: IPieChartSummary) => {\n\n\n\tlet data = props.data.filter(d => d.total > 0);\n\tdata = data.sort((a: Summary, b: Summary) => {\n\t\tif (a.total > b.total) {\n\t\t\treturn -1;\n\t\t}\n\t\tif (b.total > a.total) {\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}).reverse();\n\tconst renderActiveShape = (props: any) => {\n\t\tconst RADIAN = Math.PI / 180;\n\t\tconst {\n\t\t\tcx, cy, midAngle, innerRadius, outerRadius, startAngle, endAngle,\n\t\t\tfill, name, percent\n\t\t} = props;\n\t\tconst sin = Math.sin(-RADIAN * midAngle);\n\t\tconst cos = Math.cos(-RADIAN * midAngle);\n\t\tlet sx = cx + (outerRadius + 10) * cos;\n\t\tconst sy = cy + (outerRadius + 10) * sin;\n\t\tconst mx = cx + (outerRadius + 30) * cos;\n\t\tconst my = cy + (outerRadius + 30) * sin;\n\t\tlet ex = mx + (cos >= 0 ? 1 : -1) * 22;\n\t\tconst ey = my;\n\n\t\tlet x = ex + (cos >= 0 ? 1 : -1) * 12;\n\t\tlet eex = 0;\n\t\tlet textAnchor = cos >= 0 ? 'start' : 'end';\n\n\t\tif (midAngle < -260) {\n\t\t\teex = 40;\n\t\t\tx += 60;\n\t\t\ttextAnchor = 'start';\n\t\t}\n\t\treturn (\n\t\t\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{name.length > 20 ? name.substr(0, 20) + '...' : name}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{(percent * 100).toFixed(2)}%\n\t\t\t\t\n\t\t\t\n\t\t);\n\t};\n\tconst total = props.data.map(c => c.total).reduce((a, c) => a + c, 0);\n\tif (total <= 0) {\n\t\treturn \n\t}\n\tif (props.loading) {\n\t\treturn
\n\t}\n\treturn (
\n\t\t\n\t\t\n\t\t\t{\n\t\t\t\tdata.map((entry, index) => (\n\t\t\t\t\t\n\t\t\t\t))\n\t\t\t}\n\t\t\t\n\n\t\n\t
);\n};\n\nexport default PieChart;\n","import * as React from 'react';\n\ninterface IBalloonProps {\n\tcolor: string;\n\tsize: number;\n}\n\nconst Balloon = (props: IBalloonProps) => \n\nexport default Balloon;\n","import * as React from 'react';\nimport { Producer, Branch, SummaryProducer } from '../Models/Report';\nimport './Popper.scss';\nimport { formatAmount } from '../Utils/NumberFormat';\nimport Skeleton from 'antd/lib/skeleton';\nimport Balloon from './Balloon';\nimport Tooltip from 'antd/lib/tooltip';\n\nexport interface IPopperProps {\n\tproducer: Producer;\n}\n\nconst getTotalBranch = (branch: Branch, summary: SummaryProducer) => {\n\tconst s = summary.branchs.find(sb => sb.id === branch.id);\n\treturn s ? s.total : 0;\n}\n\nconst Popper = (props: IPopperProps) => {\n\tconst color = props.producer.color;\n\treturn (
\n\t\t\n\t\t\t\n\t\t\t{props.producer.name}\n\t\t\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{formatAmount(props.producer.summary.total)}\n\t\t\t\t\tkton\n\t\t\t\t\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t{props.producer.branchs.map(b =>
{b.name}
)}\n\t\t
\n\t\t
\n\t\t\t{props.producer.branchs.map(b => (\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t{formatAmount(getTotalBranch(b, props.producer.summary))}\n\t\t\t\t\t\tkton\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
)\n\t\t\t)}\n\t\t
\n\t
)\n};\n\nexport default Popper;\n","import * as React from 'react';\nimport './Popper.scss';\n\nconst PopperTitle = () => (
\n\t
\n\t\tEmpresas\n\t
\n\t
\n\t\tTotal Kton\n\t
\n\t
\n\t\tFaenas\n\t
\n\t
\n\t\tTotal Kton\n\t
\n
);\n\nexport default PopperTitle;\n","import * as React from 'react';\n\nexport interface ISummaryTitleItemProps {\n\ttitleItem: string;\n}\n\nconst SummaryTitleItem = (props: ISummaryTitleItemProps) => {\n\n\treturn (
\n\t\t
\n\t\t\t{props.titleItem}\n\t\t
\n\t\t
\n\t\t\t\t\n\t\t\t\t\tkton\n\t\t\t\t\n\t\t
\n\t
)\n};\n\nexport default SummaryTitleItem;\n","import * as React from 'react';\nimport { Summary } from '../Models/Report';\nimport './SummaryItem.scss';\nimport { formatAmount } from '../Utils/NumberFormat';\nimport Balloon from './Balloon';\n\n\nexport interface ISummaryItemProps {\n\tdata: Summary;\n}\n\n\nconst SummaryItem = (props: ISummaryItemProps) => {\n\tconst color = props.data.color;\n\treturn (
\n\t\t
\n\t\t\t\n\t\t\t{props.data.name}\n\t\t
\n\t\t
\n\t\t\t\t\n\t\t\t\t\t{formatAmount(props.data.total)}\n\t\t\t\t\tkton\n\t\t\t\t\n\t\t
\n\t
)\n};\n\nexport default SummaryItem;\n","import * as React from 'react';\nimport { StageProducer, createStages } from '../Models/Report';\nimport Loading from './Loading';\nimport Box from './Box';\nimport PieChart from './PieChart';\nimport { getColorStatus } from '../Models/Colors';\nimport SummaryTitleItem from './SummaryTitleItem';\nimport SummaryItem from './SummaryItem';\nimport './CardSummaryStage.scss';\n\nexport interface ICardSummaryStage {\n\tproducersStage: StageProducer[];\n}\n\nconst createData = (producersStage: StageProducer[]) => {\n\tconst stages = createStages().map(s => {\n\t\tconst producers = producersStage;\n\t\tlet total = 0;\n\t\tfor (let i = 0; i < producers.length; i += 1) {\n\t\t\tconst stage = producers[i].stages.find(sp => sp.report === s.report);\n\t\t\tif (stage) {\n\t\t\t\ttotal += stage.data.total;\n\t\t\t}\n\t\t}\n\t\ts.data.total = total;\n\t\treturn s;\n\t});\n\treturn stages;\n}\n\nconst CardSummaryStage = (props: ICardSummaryStage) => {\n\tconst isReady = props.producersStage.find(p => !StageProducer.isReady(p)) == null;\n\tconst data = createData(props.producersStage);\n\tconst dataRender = data.map((d, index) => ({ name: d.name, total: d.data.total, color: getColorStatus(index) }));\n\treturn \n\t\t
\n\t\t\t{!isReady && }\n\t\t\t{isReady &&
\n\t\t\t\t
\n\t\t\t\t\t

Estados del Cobre en Puerto Angamos

\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t{dataRender.map(dr => )}\n\t\t\t\t
\n\t\t\t
}\n\t\t
\n\t
\n}\n\nexport default CardSummaryStage;\n","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"path\", {\n d: \"M275.372 3.95126C273.029 1.48343 269.816 0.00195312 266.487 0.00195312H67.1461C30.3625 0.00195312 0 30.2436 0 67.0233V443.978C0 480.761 30.3625 511.003 67.1461 511.003H337.703C374.487 511.003 404.849 480.761 404.849 443.978V144.661C404.849 141.452 403.368 138.368 401.27 136.021L275.372 3.95126ZM278.951 43.573L363.255 132.072H308.452C292.159 132.072 278.951 118.988 278.951 102.696V43.573ZM337.703 486.317H67.1461C44.0662 486.317 24.6861 467.186 24.6861 443.978V67.0233C24.6861 43.9434 43.9414 24.6881 67.1461 24.6881H254.265V102.696C254.265 132.688 278.46 156.758 308.452 156.758H380.163V443.978C380.163 467.186 360.908 486.317 337.703 486.317Z\",\n fill: \"#C4C4C4\"\n});\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"path\", {\n d: \"M193.414 356.839C195.761 359.307 198.969 360.789 202.424 360.789C205.882 360.789 209.09 359.307 211.433 356.839L283.765 279.202C288.455 274.263 288.084 266.364 283.149 261.799C278.209 257.109 270.31 257.475 265.745 262.415L214.767 317.093V182.31C214.767 175.518 209.211 169.967 202.424 169.967C195.636 169.967 190.081 175.518 190.081 182.31V317.093L139.227 262.415C134.537 257.479 126.759 257.109 121.823 261.799C116.888 266.489 116.517 274.267 121.207 279.202L193.414 356.839Z\",\n fill: \"#C4C4C4\"\n});\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M88.161 412.307C88.1238 411.876 88.1049 411.44 88.1049 411V384.5C88.1049 377.596 93.7013 372 100.605 372C107.508 372 113.105 377.596 113.105 384.5V401H292.105V384.5C292.105 377.596 297.701 372 304.605 372C311.508 372 317.105 377.596 317.105 384.5V411C317.105 413.82 316.327 416.457 314.974 418.711C313.014 423.003 308.715 426 303.761 426H302.105H292.105H113.105H103.105H100.449C93.661 426 88.1049 420.374 88.1049 413.5C88.1049 413.098 88.1239 412.7 88.161 412.307Z\",\n fill: \"#C4C4C4\"\n});\n\nvar SvgDownload = function SvgDownload(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n width: 405,\n height: 512,\n viewBox: \"0 0 405 512\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgDownload, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/download.f0981e4b.svg\";\nexport { ForwardRef as ReactComponent };","import * as React from \"react\";\nimport Notification from \"antd/lib/notification\";\nimport { ReactComponent as Icon } from \"../Assets/images/download.svg\";\nimport ServiceReport from \"../Services/ServiceReport\";\nimport Message from \"antd/lib/message\";\nimport Popover from \"antd/lib/popover\";\nimport \"./Download.scss\";\nimport { Producer } from \"../Models/Report\";\nimport Button from 'antd/lib/button';\n\nexport interface IDownloadProps {\n\tproducers: Producer[];\n\tidUser: number;\n}\n\nlet isDownload = false;\nconst Download = (props: IDownloadProps) => {\n\tconst onDownload = (idProducer: string) => {\n\t\tif (isDownload) {\n\t\t\tNotification.warning({\n\t\t\t\tdescription: \"Existe un descarga en curso\",\n\t\t\t\tmessage: \"Notificación\"\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst cancel = Message.loading(\n\t\t\t\"Espere unos minutos estamos generando el Excel\",\n\t\t\t0\n\t\t);\n\t\tconst service = new ServiceReport();\n\t\tisDownload = true;\n\t\tservice\n\t\t\t.downloadExcel(props.idUser, idProducer)\n\t\t\t.then(blob => {\n\t\t\t\tif (!blob) {\n\t\t\t\t\tNotification.error({\n\t\t\t\t\t\tdescription: \"Error descargando archivo\",\n\t\t\t\t\t\tmessage: \"Archivo Excel\"\n\t\t\t\t\t});\n\t\t\t\t\tisDownload = false;\n\t\t\t\t\tcancel();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tisDownload = false;\n\t\t\t\tcancel();\n\t\t\t\tvar url = URL.createObjectURL(blob);\n\t\t\t\tvar a = document.createElement(\"a\");\n\t\t\t\ta.href = url;\n\t\t\t\ta.download = \"data.xlsx\";\n\t\t\t\tdocument.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n\t\t\t\ta.click();\n\t\t\t\ta.remove(); //afterwards we remove the element again\n\t\t\t\tNotification.success({\n\t\t\t\t\tdescription: \"Documento Generado Exitosamente\",\n\t\t\t\t\tmessage: \"Archivo Excel\"\n\t\t\t\t});\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tisDownload = false;\n\t\t\t\tNotification.error({\n\t\t\t\t\tdescription: e,\n\t\t\t\t\tmessage: \"Archivo Excel\"\n\t\t\t\t});\n\t\t\t\tcancel();\n\t\t\t});\n\t};\n\tif (props.producers.length > 1) {\n\t\tconst content = (\n\t\t\t
\n\t\t\t\t{props.producers.map(p => )}\n\t\t\t
\n\t\t);\n\t\treturn (\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
Descargar Excel
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t);\n\t}\n\treturn (\n\t\t
onDownload(props.producers[0].id)}>\n\t\t\t
Descargar Excel
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t);\n};\n\nexport default Download;\n","import * as React from 'react';\nimport { BarChart, CartesianGrid, XAxis, YAxis, Bar } from 'recharts';\nimport { ShipmentSummary, Branch, Producer } from '../Models/Report';\nimport Loading from './Loading';\nimport './BarSummary.scss';\nimport { formatAmount } from '../Utils/NumberFormat';\nimport Balloon from './Balloon';\nimport moment from \"moment\";\nimport Empty from 'antd/lib/empty';\n\n\nexport interface IBarSummaryProps {\n\tdata: ShipmentSummary;\n\tbranch?: Branch;\n\tproducer?: Producer;\n}\n\nexport const LabelBar = (props: any) => {\n\tconst { x, y, fill, value } = props;\n\treturn {formatAmount(value, true)}\n\t\n}\n\nexport const LabelLegend = (props: any) => {\n\tconst { x, y, fill, value } = props;\n\treturn {formatAmount(value, true)}\n\t\n}\n\nexport const BarSummary = (props: IBarSummaryProps) => {\n\tReact.useEffect(() => {\n\t\tmoment.locale(\"es\");\n\t});\n\tif (!props.data || !props.data.details) {\n\t\treturn ;\n\t}\n\tconst dataBranch = props.branch ? props.data.branchs.find(b => b.idBranch === props.branch!.id) : undefined;\n\tlet dataBrute = dataBranch ? dataBranch.data : props.data;\n\tif (!dataBranch && props.branch) {\n\t\tdataBrute = new ShipmentSummary();\n\t}\n\tconst data = dataBrute.details\n\t\t.sort((a, b) => a.date.unix() - b.date.unix())\n\t\t.map(d => ({ name: d.date.locale('es').format('MMM YYYY'), 'Consolidada': d.consolidate, 'Break Bulk': d.breakBulk }))\n\tif (data.length === 0) {\n\t\treturn
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t}\n\treturn
\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t} dataKey=\"Consolidada\" fill=\"#0B60B9\" />\n\t\t\t\t\t} dataKey=\"Break Bulk\" fill=\"#F7A72E\" />\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t} dataKey=\"Consolidada\" fill=\"#0B60B9\" />\n\t\t\t\t\t} dataKey=\"Break Bulk\" fill=\"#F7A72E\" />\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t} dataKey=\"Consolidada\" fill=\"#0B60B9\" />\n\t\t\t\t\t} dataKey=\"Break Bulk\" fill=\"#F7A72E\" />\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t

Consolidada

\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t

Break Bulk

\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t
\n}\n\nexport default BarSummary;\n","import * as React from 'react';\nimport Select from 'antd/lib/select';\nimport './Selector.scss';\n\nexport interface ISelectorData {\n\tlabel: string;\n\tvalue: string | number;\n}\n\nexport interface ISelectorProps {\n\tplaceholder: string;\n\tdata: ISelectorData[];\n\tdisabled?: boolean;\n\tonChange: (value: string | number) => void;\n}\n\nconst Selector = (props: ISelectorProps) => {\n\tconst [sel, setSel] = React.useState();\n\tif (props.data.length === 0 && sel) {\n\t\tsetSel(undefined);\n\t}\n\treturn { setSel(value); props.onChange(value); }} dropdownClassName=\"Selector-Menu\" placeholder={props.placeholder} className={`Selector ${sel ? 'active' : ''}`} >\n\t\t{props.data.map(d => {d.label})}\n\t\n};\nexport default Selector;\n","import * as React from 'react';\nimport Selector, { ISelectorData } from './Selector';\nimport './FilterReport.scss';\nimport { Producer, SummaryProducer } from '../Models/Report';\n\nexport interface IFilterReportProps {\n\tproducers: Producer[];\n\tonChangeProducer: (value: string | number) => void;\n\tonChangeBranch: (value: string | number) => void;\n\tselected?: SummaryProducer | Producer;\n\tignoreFilter?: boolean;\n\tdisabled?: boolean;\n}\n\nconst sort = (a: Producer, b: Producer) => {\n\tconst namea = a.name.toLowerCase();\n\tconst nameb = b.name.toLowerCase();\n\tif (namea > nameb) {\n\t\treturn -1;\n\t}\n\tif (namea > nameb) {\n\t\treturn 1;\n\t}\n\treturn 0;\n}\n\nconst FilterReport = (props: IFilterReportProps) => {\n\tconst [isReady, setReady] = React.useState(true);\n\tlet data = props.selected ? props.selected!.branchs.filter(b => (props.ignoreFilter && b.id > 0) || b.total > 0).map(b => ({ label: b.name, value: b.id })) : [];\n\tif (!isReady) {\n\t\tdata = [];\n\t}\n\tconst onChangeProd = (value: string | number) => {\n\t\tsetReady(false);\n\t\tprops.onChangeProducer(value);\n\t\tsetTimeout(() => {\n\t\t\tsetReady(true);\n\t\t}, 200);\n\t}\n\treturn (
\n\t\t{props.producers.length !== 1 && ({ label: p.name.toUpperCase(), value: p.id }) as ISelectorData)} />}\n\t\t\n\t
)\n}\n\nexport default FilterReport;\n","import * as React from 'react';\nimport Wait from '../Assets/images/wait.svg';\nimport './ScreenSelection.scss';\n\nexport const ScreenSelection = () => {\n\treturn
\n\t\t
\n\t\t\t
\n\t\t\t\tpresentation-wait\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

\n\t\t\t\t\t\tPara una mejor búsqueda te invitamos a seleccionar una{' '}\n\t\t\t\t\t\t minera y faena\n\t\t\t\t\t

\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t
\n}\n","export const capitalize = (str: string) => {\n\tif (!str) {\n\t\treturn ''\n\t}\n\tif (str.length === 1) {\n\t\treturn str.toUpperCase();\n\t}\n\treturn str.charAt(0).toUpperCase() + str.slice(1)\n}\n\n\nexport const uuidv4 = () => {\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 React from 'react';\nimport BarSummary from './BarSummary';\nimport { Producer, SummaryProducer, ShipmentSummary, Branch } from '../Models/Report';\nimport FilterReport from './FilterReport';\nimport { ScreenSelection } from './ScreenSelection';\nimport Loading from './Loading';\nimport { capitalize } from '../Utils/StrUtil';\n\nexport interface ICardSummaryAnnual {\n\tproducers: Producer[];\n\tshipmentData?: ShipmentSummary;\n\trequest: boolean;\n\tonSummary: (idProducer: string, idBranch: number) => void;\n}\n\nconst CardSummaryAnnual = (props: ICardSummaryAnnual) => {\n\tconst [producer, setProducer] = React.useState(props.producers.length === 1 ? props.producers[0].id : undefined);\n\tconst getProducer = (idProducer?: string) => {\n\t\tconst currentProducer = idProducer || producer;\n\t\tconst current = props.producers.find(p => p.id === currentProducer);\n\t\tif (!current && props.producers.length === 1) {\n\t\t\treturn props.producers[0];\n\t\t} else {\n\t\t\treturn current;\n\t\t}\n\t}\n\t// eslint-disable-next-line\n\tconst [branch, setBranch] = React.useState(99);\n\tconst [isReady, setReady] = React.useState(false);\n\tconst [objProducer, setObjProducer] = React.useState(getProducer())\n\t// eslint-disable-next-line\n\tconst [announced, setAnnounced] = React.useState();\n\n\tconst onChangeBranch = (idBranch: string | number) => {\n\t\tsetBranch((idBranch || 99) as number)\n\t}\n\n\tconst onChangeProducer = (idProducer: string | number) => {\n\t\tconst current = props.producers.find(p => p.id === idProducer);\n\t\tif (current) {\n\t\t\tsetAnnounced(current.summary);\n\t\t}\n\t\tsetProducer(idProducer as string);\n\t\tsetBranch(99);\n\t\tsetObjProducer(getProducer(idProducer as string))\n\t\tprops.onSummary(idProducer as string, 99);\n\t}\n\n\n\tconst getBranch = (branch: number) => {\n\t\tlet res: any = undefined;\n\t\tif (producer) {\n\t\t\tconst current = props.producers.find(p => p.id === producer);\n\t\t\tif (current) {\n\n\t\t\t\treturn current.branchs.find(b => b.id === branch);\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\tfor (let i = 0; i < props.producers.length; i += 1) {\n\t\t\tconst current = props.producers[i];\n\t\t\tfor (let j = 0; j < current.branchs.length; j += 1) {\n\t\t\t\tif (current.branchs[j].id === branch) {\n\t\t\t\t\treturn current.branchs[j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\n\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\tReact.useEffect(() => {\n\t\tif(props.producers.length === 1 && !isReady) {\n\t\t\tsetReady(true);\n\t\t\tconst producer = props.producers[0];\n\t\t\tsetObjProducer(producer)\n\t\t\tsetProducer(producer.id);\n\t\t\tprops.onSummary(producer.id, branch);\n\t\t}\n\t});\n\treturn (\n\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t{props.request && }\n\t\t\t\t{(!producer && !props.request) && }\n\t\t\t\t{props.shipmentData && !props.request && objProducer && p.id === producer)} branch={getBranch(branch)} data={props.shipmentData} />}\n\t\t\t
\n\t\t)\n}\n\nexport interface IHeader {\n\tbranch?: Branch;\n\tproducer?: Producer;\n}\n\nexport const Header = (props: IHeader) => (
\n\t\t

Resumen Anual {props.branch ? 'Faena' : 'Minera'} {props.producer && props.producer.name} {props.branch && \" / \" + capitalize(props.branch.name)}

\n\t\t\t\t

Gráfico comparativo por estado de carga

\n
)\n\nexport default CardSummaryAnnual;\n","import * as React from 'react';\nimport { connect } from 'react-redux';\nimport { IStateApp } from '../../Reducers';\nimport { createActionFetchFaenas } from '../../Actions/Session/Actions';\nimport { ISessionState } from '../../Reducers/Session';\nimport Box from '../../Components/Box';\nimport { Producer, Summary, StageProducer, ShipmentSummary } from '../../Models/Report';\nimport Row from 'antd/lib/row';\nimport Col from 'antd/lib/col';\nimport Skeleton from 'antd/lib/skeleton';\nimport PieChart from '../../Components/PieChart';\nimport Popper from '../../Components/Popper';\nimport PopperTitle from '../../Components/PopperTitle';\nimport './Home.scss';\nimport CardSummaryStage from '../../Components/CardSummaryStage';\nimport Download from '../../Components/Download';\nimport CardSummaryAnnual from '../../Components/CardSummaryAnnual';\nimport { createActionFetchSummary, createActionClearData, EReport } from '../../Actions/Report/Actions';\n\nexport interface IHomeProps extends ISessionState {\n\tonFaenas: (id: number) => void;\n\tloadingDashboard: boolean;\n\tproducers: Producer[];\n\tstageProducer: StageProducer[];\n\tshipmment: ShipmentSummary;\n\tonShipment: (id: number, idProducer: string, idBranch: number) => void;\n\trequestShipment: boolean;\n\tclearShipment: () => void;\n}\n\nclass Home extends React.Component {\n\tcomponentWillMount() {\n\t\tif (this.props.account) {\n\t\t\tconst id = this.props.account.id;\n\t\t\tthis.props.onFaenas(id);\n\t\t}\n\t}\n\n\trender() {\n\t\treturn
\n\t\t\t\t

Resumen Cobre en Puerto Angamos

\n\t\t\t\t{this.props.producers.length > 0 && }\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t

Cobre en Puerto Angamos por Empresa/Faena

\n\t\t\t\t\t\t\t\t p.loading).reduce((a, c) => c || a)} >\n\t\t\t\t\t\t\t\t\t ({ name: p.name, total: p.summary.total, color: p.color }) as Summary)} />\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{this.getProducers().map(p => )}\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
;\n\t}\n\n\tprivate getSummary(idProducer: string, idBranch: number) {\n\t\tif (this.props.account) {\n\t\t\tthis.props.onShipment(this.props.account.id, idProducer, idBranch);\n\t\t}\n\t}\n\tcomponentWillUnmount() {\n\t\tthis.props.clearShipment();\n\t}\n\tprivate getProducers() {\n\t\treturn this.props.producers.sort((a: Producer, b: Producer) => {\n\t\t\tif (a.summary.total > b.summary.total) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif (b.summary.total > a.summary.total) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t});\n\t}\n}\n\nconst mapProps = (state: IStateApp) => ({\n\t...state.session,\n\tloadingDashboard: state.report.isRequestDashboard,\n\tproducers: state.report.producers,\n\tstageProducer: state.report.stageProducer,\n\tshipmment: state.report.shipmentSummary,\n\trequestShipment: state.report.isRequestShipment\n})\nconst mapActions = (dispatch: any) => {\n\treturn {\n\t\tonFaenas: (id: number) => dispatch(createActionFetchFaenas(id)),\n\t\tonShipment: (id: number, idProducer: string, idBranch: number) => dispatch(createActionFetchSummary(id, idProducer, idBranch)),\n\t\tclearShipment: () => dispatch(createActionClearData(EReport.Summary))\n\t}\n}\n\nexport default connect(mapProps as any, mapActions)(Home) as any;\n","import * as React from 'react';\nimport SummaryItem from './SummaryItem';\nimport { Summary } from '../Models/Report';\nimport PieChart from './PieChart';\nimport './CardSummary.scss';\nimport SummaryTitleItem from './SummaryTitleItem';\nimport Box from './Box';\nimport Emply from 'antd/lib/empty';\n\nexport interface ICardSummaryProps {\n\tdata: Summary[];\n\ttitleGraph: string;\n\ttitleItem: string;\n\tloading: boolean;\n\theader?: string | React.ReactElement;\n}\nconst order = (a: Summary, b: Summary) => {\n\tif (a.total > b.total) {\n\t\treturn -1;\n\t}\n\tif (b.total > a.total) {\n\t\treturn 1;\n\t}\n\treturn 0;\n};\nconst CardSummary = (props: ICardSummaryProps) => {\n\n\treturn (
\n\t{!props.loading && props.header && props.header}\n\t\n\t
\n\t\t

{props.titleGraph}

\n\t\t\n\t
\n\t{props.data.length > 0 && props.data[0].total > 0 ?
\n\t\t\n\t\t{props.data.sort(order).map(s => )}\n\t
:\n\t
\n\t\t\n\t
}\n\t
\n
)\n};\n\nexport default CardSummary;\n","\nclass EventUtils {\n\tprivate static lastTimeOut: any;\n\tprivate static counter: number = 0;\n\tpublic static debounce(func: () => void, wait: number) {\n\t\tif (this.lastTimeOut) {\n\t\t\tclearTimeout(this.lastTimeOut)\n\t\t}\n\t\tconst handler = () => {\n\t\t\tthis.counter++;\n\t\t\tfunc();\n\t\t}\n\t\tthis.lastTimeOut = setTimeout(handler, wait + 100);\n\t\treturn this.lastTimeOut;\n\t}\n}\n\nexport default EventUtils;\n","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"g\", {\n id: \"Layer_1_21_\"\n}, React.createElement(\"path\", {\n d: \"M518.288,545.7l-85.425-155.55c24.225-3.825,42.074-25.5,42.074-49.726v-229.5C474.937,49.725,425.212,0,364.012,0 h-145.35c-61.2,0-112.2,49.725-112.2,112.2v228.225c0,25.5,17.85,45.9,42.075,49.726L64.387,545.7 c-6.375,12.75-2.55,28.05,10.2,34.425c3.825,2.55,7.65,2.55,11.475,2.55c8.925,0,17.85-5.1,21.675-12.75l7.65-12.75h351.9 l7.649,12.75c5.101,8.925,12.75,12.75,21.676,12.75c3.824,0,7.649-1.274,11.475-2.55C520.837,573.75,524.663,558.45,518.288,545.7 z M398.437,430.95h-214.2l21.675-39.525h170.85L398.437,430.95z M394.613,345.525c-20.4,0-36.976-16.575-36.976-36.976 c0-20.4,16.575-36.975,36.976-36.975c20.399,0,36.975,16.575,36.975,36.975C431.587,327.675,415.012,345.525,394.613,345.525z M151.087,126.225c0-39.525,31.875-71.4,70.125-71.4h138.975c38.25,0,71.4,31.875,71.4,71.4v61.2 c0,14.025-11.475,24.225-25.5,24.225h-229.5c-14.025,0-24.225-11.475-24.225-24.225L151.087,126.225L151.087,126.225z M188.062,270.3c20.4,0,36.975,16.575,36.975,36.976c0,20.399-16.575,36.975-36.975,36.975s-36.975-16.575-36.975-36.975 C151.087,286.875,167.663,270.3,188.062,270.3z M135.788,518.925l28.05-49.725h255l28.05,49.725H135.788z\"\n})));\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref5 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref6 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref7 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref8 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref9 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref10 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref11 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref12 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref13 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref14 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref15 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref16 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref17 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar SvgTrain = function SvgTrain(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n id: \"Capa_1\",\n x: \"0px\",\n y: \"0px\",\n width: \"582.675px\",\n height: \"582.675px\",\n viewBox: \"0 0 582.675 582.675\",\n style: {\n enableBackground: \"new 0 0 582.675 582.675\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgTrain, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/train.f1bdd893.svg\";\nexport { ForwardRef as ReactComponent };","function _extends() { _extends = Object.assign || 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); }\n\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; }\n\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; }\n\nimport React from \"react\";\n\nvar _ref2 =\n/*#__PURE__*/\nReact.createElement(\"g\", null, React.createElement(\"path\", {\n d: \"M612,327.56v-21.606c0-10.533-4.213-20.628-11.701-28.037L484.107,162.958c-7.384-7.306-17.352-11.403-27.739-11.403 h-58.622v-21.988c0-16.336-13.243-29.58-29.58-29.58H29.58C13.243,99.987,0,113.23,0,129.567V327.56H612z M432.551,190.303 c0-2.563,2.071-4.634,4.635-4.634h21.396c1.184,0,2.366,0.494,3.253,1.282l91.006,86.865c3.057,2.86,0.986,7.987-3.154,7.987 h-112.5c-2.563,0-4.635-2.07-4.635-4.634V190.303z M612,343.903v65.486c0,16.336-13.243,29.578-29.579,29.578h-31.65 c-5.719-39.242-39.539-69.412-80.357-69.412c-40.721,0-74.54,30.17-80.259,69.412h-160.42 c-5.718-39.242-39.538-69.412-80.259-69.412c-40.721,0-74.541,30.17-80.259,69.412H29.58C13.243,438.968,0,425.726,0,409.39 v-65.486H612z M470.456,389.313c-33.883,0-61.351,27.467-61.351,61.35s27.469,61.35,61.351,61.35s61.35-27.467,61.35-61.35 S504.339,389.313,470.456,389.313z M470.456,481.339c-16.941,0-30.675-13.734-30.675-30.676s13.732-30.674,30.675-30.674 c16.941,0,30.676,13.732,30.676,30.674S487.397,481.339,470.456,481.339z M149.464,389.313c-33.883,0-61.35,27.467-61.35,61.35 s27.468,61.35,61.35,61.35s61.35-27.467,61.35-61.35S183.346,389.313,149.464,389.313z M149.464,481.339 c-16.941,0-30.676-13.734-30.676-30.676s13.734-30.674,30.676-30.674c16.941,0,30.675,13.732,30.675,30.674 S166.405,481.339,149.464,481.339z\"\n}));\n\nvar _ref3 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref4 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref5 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref6 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref7 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref8 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref9 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref10 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref11 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref12 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref13 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref14 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref15 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref16 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar _ref17 =\n/*#__PURE__*/\nReact.createElement(\"g\", null);\n\nvar SvgVehicle = function SvgVehicle(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return React.createElement(\"svg\", _extends({\n id: \"Capa_1\",\n x: \"0px\",\n y: \"0px\",\n width: \"612px\",\n height: \"612px\",\n viewBox: \"0 0 612 612\",\n style: {\n enableBackground: \"new 0 0 612 612\"\n },\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? React.createElement(\"title\", null, title) : null, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17);\n};\n\nvar ForwardRef = React.forwardRef(function (props, ref) {\n return React.createElement(SvgVehicle, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/vehicle.d095e01f.svg\";\nexport { ForwardRef as ReactComponent };","import * as React from 'react';\nimport Icon from 'antd/lib/icon';\nimport './IconSearch.scss';\n\nconst IconSearch = () =>
\n\t\n
\n\nexport default IconSearch;\n","import * as React from 'react';\nimport Card from 'antd/lib/card';\nimport { ICardHistoryItem, ICardData, getScheme } from '../Models/Report';\nimport List from 'antd/lib/list';\nimport Row from 'antd/lib/row';\nimport Col from 'antd/lib/col';\nimport './History.scss';\nimport Search from 'antd/lib/input/Search';\nimport EventUtils from '../Utils/EventUtils';\nimport { EReport } from '../Actions/Report/Actions';\nimport { ReactElement } from 'react';\nimport { ReactComponent as Train } from '../Assets/images/train.svg';\nimport { ReactComponent as Vehicle } from '../Assets/images/vehicle.svg';\nimport IconSearch from './IconSearch';\n\nexport interface IHistoryProps {\n\tdata: ICardData[];\n\treport: string;\n\treportType: EReport;\n\ticon?: ReactElement;\n}\n\nexport interface ICardHistoryItemProps {\n\tdata: ICardHistoryItem;\n\ticon?: any;\n}\n\nexport const CardHistoryItem = (props: ICardHistoryItemProps) => (\n\t\n\t\t
{props.data.descriptor.label}
\n\t\t
\n\t\t\t{props.data.descriptor.transform\n\t\t\t\t? props.data.descriptor.transform(\n\t\t\t\t\t\tprops.data.data[props.data.descriptor.field]\n\t\t\t\t )\n\t\t\t\t: props.data.data[props.data.descriptor.field]}\n\t\t
\n\t\n);\n\nexport const CardHistoryItemTitle = (props: ICardHistoryItemProps) => (\n\t
\n\t\t{props.icon && props.icon(props.data.data)}\n\t\t
{props.data.descriptor.label}
\n\t\t
\n\t\t\t{props.data.data[props.data.descriptor.field]}\n\t\t
\n\t
\n);\n\nexport const CardHistory = (props: ICardData) => (\n\t\n\t\t\t\t\n\t\t\t
\n\t\t}>\n\t\t\n\t\t\t{props.content.map(d => (\n\t\t\t\t\n\t\t\t))}\n\t\t\n\t\n);\n\nconst History = (props: IHistoryProps) => {\n\tconst scheme = getScheme(props.reportType)\n\tconst [search, setSearch] = React.useState('');\n\tconst keys = Object.keys(scheme.fields);\n\tkeys.push(scheme.title)\n\tconst onSearch = (d: any) => {\n\t\tif (!d.title) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (let i = 0; i < keys.length; i += 1) {\n\t\t\tconst field = keys[i];\n\t\t\tconst value: string = d.title.data[field];\n\t\t\tconst trans = scheme.transforms[field];\n\t\t\tif (value && (value.toString().toLowerCase().indexOf(search.toLowerCase()) >= 0 || (trans && trans(value).toString().toLowerCase().indexOf(search.toLowerCase()) >= 0))) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\tlet icon: any = undefined;\n\tif (scheme.icon) {\n\t\ticon = (props: any) => {\n\t\t\tconst type = props.tipo_Transporte || '';\n\t\t\tif (!props.tipo_Transporte) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\treturn
\n\t\t\t\t{type.trim().toLowerCase() === 'tren' ? : }\n\t\t\t
\n\t\t}\n\t}\n\treturn (\n\t\t
\n\t\t\t

Historial {props.report} en Puerto Año en Curso

\n\t\t\t

Estatus de cobre en Puerto Angamos

\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tconst value = evt.target.value;\n\t\t\t\t\t\t\tEventUtils.debounce(() => setSearch(value), 500) }\n\t\t\t\t\t\t}\n\t\t\t\t\t\tplaceholder={`Busca Aquí`} />\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t 0 ? props.data.filter(onSearch) : props.data)}\n\t\t\t\trenderItem={(item, index) => (\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t/>\n\t\t
\n\t);\n};\n\nexport default History;\n","import * as React from 'react';\nimport { SummaryProducer, ShipmentSummary, Summary, createMapData } from '../Models/Report';\nimport CardSummary from './CardSummary';\nimport { getColorQuality } from '../Models/Colors';\nimport { capitalize } from '../Utils/StrUtil';\nimport History from './History';\nimport { EReport } from '../Actions/Report/Actions';\n\nexport interface ISummaryBranchProps {\n\tselected: SummaryProducer;\n\tselectedBranch: number;\n\tshipmentData: ShipmentSummary;\n\tloading: boolean;\n\treport: string;\n\treportType: EReport;\n}\n\nexport interface IHeaderSummaryBranchProps {\n\tname: string;\n}\n\nexport const HeaderSummaryBranch =(props: IHeaderSummaryBranchProps) => (
\n\t

Resumen del estado de la faena {capitalize(props.name)}

\n\t

Estatus del cobre en Puerto Angamos

\n
)\n\nconst SummaryBranch = (props: ISummaryBranchProps) => {\n\tconst branch = props.selected.branchs.find(b => b.id === props.selectedBranch);\n\tconst qualities: Summary[] = branch ? branch!.qualities.map((q: Summary, index: number) => {\n\t\tq.color = getColorQuality(index);\n\t\treturn q;\n\t}) : [];\n\treturn
\n\n\t\t
\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t\n\t\t
\n\t
\n}\n\nexport default SummaryBranch;\n","import * as React from 'react';\nimport { IStateApp } from '../Reducers';\nimport { connect } from 'react-redux';\nimport { createActionFetchFaenas } from '../Actions/Session/Actions';\nimport FilterReport from '../Components/FilterReport';\nimport './ReportSummary.scss';\nimport { Producer, Branch, Summary } from '../Models/Report';\nimport { createActionSetProducer, EReport, createActionClearData, createActionSetBranch, createActionRequestAnounced } from '../Actions/Report/Actions';\nimport { IReportState } from '../Reducers/Report';\nimport CardSummary from '../Components/CardSummary';\nimport { getColorQuality } from '../Models/Colors';\nimport { IAccount } from '../Models/Account';\nimport Loading from './Loading';\nimport SummaryBranch from './SummaryBranch';\nimport { capitalize } from '../Utils/StrUtil';\nimport Box from '../Components/Box';\nimport Emply from 'antd/lib/empty';\nimport { ScreenSelection } from './ScreenSelection';\n\nexport interface IHeaderSummaryProps {\n\tname: string;\n\tmessage: string;\n}\n\nconst HeaderSummary = (props: IHeaderSummaryProps) => (
\n\t

{props.message} {capitalize(props.name)}

\n\t

Estatus del cobre en Puerto Angamos

\n
)\n\nexport interface IReportSummaryProps extends IReportState {\n\tonFaenas: (id: number) => void;\n\tonClear: () => void;\n\tproducers: Producer[];\n\taccount: IAccount;\n\tsetProducer: (id: number, idProducer: string, report: EReport) => void;\n\tsetBranch: (id: number, idProducer: string, idBranch: number) => void;\n\trequestAction: () => void;\n\treport: EReport;\n\tsection: string;\n\tprefix?: string;\n\tsuffix?: string;\n}\n\nclass ReportSummary extends React.Component {\n\tstate = {\n\t\tbranch: undefined,\n\t\tproducer: ''\n\t}\n\tcomponentWillMount() {\n\t\tthis.props.onClear();\n\t\tif (this.props.account) {\n\t\t\tthis.props.onFaenas(this.props.account.id);\n\t\t}\n\t}\n\n\tgetNameProducer(idProducer: string) {\n\t\tconst current = this.props.producers.find(p => p.id === idProducer);\n\t\tif (current) {\n\t\t\treturn current.name;\n\t\t}\n\t\treturn '';\n\t}\n\n\tonChangeProducer(value: string | number) {\n\t\tthis.setState({ ...this.state, producer: value, branch: undefined });\n\t\tthis.props.setProducer(this.props.account.id, value as string, this.props.report);\n\t}\n\n\tonChangeBranch(value: string | number) {\n\t\tlet producer: string = this.state.producer ? this.state.producer as string : '';\n\t\tif (producer === '' && this.props.producers.length > 0) {\n\t\t\tproducer = this.props.producers[0].id;\n\t\t}\n\t\tthis.props.setBranch(this.props.account.id, producer, value as number);\n\t\tthis.setState({ ...this.state, branch: value, producer });\n\n\t\tthis.props.requestAction();\n\t\tsetTimeout(() => {\n\t\t\tthis.props.requestAction();\n\t\t}, 500);\n\t}\n\n\trender() {\n\t\tif (this.props.producers.length === 1 && !this.props.announced && !this.props.isRequestAnnounced && this.state.producer === '') {\n\t\t\tthis.props.setProducer(this.props.account.id, this.props.producers[0].id, this.props.report);\n\t\t\tthis.setState({ ...this.state, producer: this.props.producers[0].id });\n\t\t}\n\t\tconst notSelectedProducer = !this.state.producer || this.state.producer === '';\n\t\tconst showBox = this.props.announced !== undefined && !this.props.isRequestAnnounced && !notSelectedProducer;\n\t\treturn (\n\t\t\t
\n\t\t\t\t

{this.props.prefix || 'Detalle cobre estado'} {this.props.section} {this.props.suffix} {this.getNameProducer(this.state.producer)}

\n\t\t\t\t\n\t\t\t\t{!showBox && !this.props.isRequestAnnounced && }\n\t\t\t\t{this.props.isRequestAnnounced && }\n\t\t\t\t{showBox && !this.state.branch && this.renderSummary()}\n\t\t\t\t{showBox && this.state.branch && this.renderBranch()}\n\t\t\t
\n\t\t);\n\t}\n\n\tprivate renderSummary() {\n\t\tif (!this.props.announced || this.props.announced.total <= 0) {\n\t\t\treturn \n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t}\n\t\tif (this.props.announced) {\n\t\t\treturn (
\n\t\t\t\t ({\n\t\t\t\t\t\tname: b.name,\n\t\t\t\t\t\ttotal: b.total,\n\t\t\t\t\t\tcolor: getColorQuality(index)\n\t\t\t\t\t})\n\t\t\t\t)} />\n\t\t\t\t ({\n\t\t\t\t\t\t...s,\n\t\t\t\t\t\tcolor: getColorQuality(index)\n\t\t\t\t\t})\n\t\t\t\t)} />\n\t\t\t
)\n\t\t}\n\t}\n\n\tprivate renderBranch() {\n\t\treturn ;\n\t}\n}\n\nconst mapProps = (state: IStateApp) => ({\n\t...state.report,\n\taccount: state.session.account\n});\n\nconst mapAction = (dispatch: any) => ({\n\tonFaenas: (id: number) => dispatch(createActionFetchFaenas(id, false)),\n\tonClear: () => dispatch(createActionClearData(EReport.Announced)),\n\tsetProducer: (id: number, idProducer: string, report: EReport) => dispatch(createActionSetProducer(id, idProducer, report)),\n\tsetBranch: (id: number, idProducer: string, idBranch: number) => dispatch(createActionSetBranch(id, idProducer, idBranch)),\n\trequestAction: () => dispatch(createActionRequestAnounced())\n});\n\nexport default connect(\n\tmapProps as any,\n\tmapAction\n)(ReportSummary) as any;\n","import * as React from 'react';\nimport ReportSummary from '../../Components/ReportSummary';\nimport { EReport } from '../../Actions/Report/Actions';\n\nconst AnnouncedShipment = () => ();\n\nexport default AnnouncedShipment;\n","import * as React from 'react';\nimport ReportSummary from '../../Components/ReportSummary';\nimport { EReport } from '../../Actions/Report/Actions';\n\nconst Stacking = () => ();\n\nexport default Stacking;\n","import * as React from 'react';\nimport ReportSummary from '../../Components/ReportSummary';\nimport { EReport } from '../../Actions/Report/Actions';\n\nconst Consolidate = () => ();\n\nexport default Consolidate;\n","import * as React from 'react';\nimport ReportSummary from '../../Components/ReportSummary';\nimport { EReport } from '../../Actions/Report/Actions';\n\nconst BreakBulk = () => ();\n\nexport default BreakBulk;\n","import * as React from 'react';\nimport ReportSummary from '../../Components/ReportSummary';\nimport { EReport } from '../../Actions/Report/Actions';\n\nconst Bath = () => ();\n\nexport default Bath;\n","import * as React from 'react';\nimport ReportSummary from '../../Components/ReportSummary';\nimport { EReport } from '../../Actions/Report/Actions';\n\nconst Yard = () => ();\n\nexport default Yard;\n","import Table from 'antd/lib/table';\nimport Row from 'antd/lib/row';\nimport { Producer, Branch } from '../../Models/Report';\nimport React from 'react';\n\nexport interface IBranchListProps {\n\tselected: Producer[];\n\tonSelected: (producer: Producer, branchs: Branch[]) => void;\n\tselectedRowKeys?: any;\n}\n\nexport interface IProducerComponentProps {\n\tselected: Producer;\n\tonSelected: (producer: Producer, branchs: Branch[]) => void;\n\tselectedRowKeys?: any[];\n}\n\nconst ProducerComponent = (props: IProducerComponentProps) => {\n\tconst p = props.selected;\n\tconst [selected, setSelected] = React.useState(\n\t\tprops.selectedRowKeys\n\t\t\t? props.selectedRowKeys.map(\n\t\t\t\t\t(k: string) => `row-selection-${props.selected.id}-${k}`\n\t\t\t )\n\t\t\t: []\n\t);\n\treturn (\n\t\t\n\t\t\t\t`row-selection-${p.id}-${record.id}`\n\t\t\t}\n\t\t\tpagination={false}\n\t\t\trowSelection={{\n\t\t\t\tonChange: (selectedRowKeys: any, selectedRows: any) => {\n\t\t\t\t\tsetSelected(selectedRowKeys);\n\t\t\t\t\tprops.onSelected(p, selectedRows);\n\t\t\t\t},\n\t\t\t\tgetCheckboxProps: (record: any) => ({\n\t\t\t\t\tdisabled: record.name === 'Disabled User', // Column configuration not to be checked\n\t\t\t\t\tname: record.name\n\t\t\t\t}),\n\t\t\t\tselectedRowKeys: selected\n\t\t\t}}\n\t\t\tdataSource={p.branchs}>\n\t\t\t\n\t\t\n\t);\n};\n\nconst BranchList = (props: IBranchListProps) => {\n\treturn (\n\t\t\n\t\t\t{props.selected.map(p => (\n\t\t\t\t\n\t\t\t))}\n\t\t\n\t);\n};\n\nexport default BranchList;\n","import * as React from 'react';\nimport Select from 'antd/lib/select';\nimport { ISelectorData } from '../../Components/Selector';\n\nexport interface ISelectorProducerProps {\n\tonSelected: (selected: string[]) => void;\n\tonDeselected: (deselected: string) => void;\n\tselected: string[];\n\n\tdata: ISelectorData[];\n}\n\nconst SelectorProducer = (props: ISelectorProducerProps) => ( {\n\t\t\t\t\t\tif (!option.props.children) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst arg = option.props.children as string;\n\t\t\t\t\t\treturn arg.toLowerCase().indexOf(input.toLowerCase()) >= 0\n\t\t\t\t\t}}\n\t\t\t\t\tonChange={props.onSelected}\n\t\t\t\t\tonDeselect={props.onDeselected}\n\t\t\t\t\tvalue={props.selected} >\n\t\t\t\t\t{props.data.map(psd => (\n\t\t\t\t\t\t{psd.label}\n\t\t\t\t\t)\n\t\t\t\t\t)}\n\t\t\t\t);\n\nexport default SelectorProducer;\n","import * as React from 'react';\nimport Modal from 'antd/lib/modal';\nimport './Dialog.scss';\n\nexport interface IDialogProps {\n\topen: boolean;\n\tchildren: React.ReactElement;\n\tonClose: () => void;\n}\n\nconst Dialog = (props: IDialogProps) => \n\t
\n\t\t{props.children}\n\t
\n\n\n\nexport default Dialog;\n","import Service from './Service';\nimport { IAccountForm, IBranchAction } from '../Models/Account';\n\nexport default class ServiceAccount extends Service {\n\tpublic fetchPage(page: number = 0, pageSize: number = 5, idProfile?: number, order?: string, filters?: any, search?: string) {\n\t\tlet uri = `user?page=${page}&pageSize=${pageSize}`;\n\t\tif (idProfile) {\n\t\t\turi = `${uri}&filter_IdProfile=${idProfile}`;\n\t\t}\n\t\tif (filters) {\n\t\t\tconst filtersKey = Object.keys(filters);\n\t\t\tfor(let i = 0; i < filtersKey.length; i += 1) {\n\t\t\t\tconst key: any = filtersKey[i];\n\t\t\t\turi = `${uri}&${key}=${filters[key]}`;\n\t\t\t}\n\t\t}\n\t\tif (search) {\n\t\t\turi = `${uri}&search=${search}`;\n\t\t}\n\t\tif (order) {\n\t\t\turi = `${uri}&order=${order}`;\n\t\t}\n\t\treturn this.wrapper.get(uri+'&order=-CreatedAt');\n\t}\n\tpublic fetch(id: number) {\n\t\treturn this.wrapper.get(`user/${id}`);\n\t}\n\n\tpublic create(accountData: IAccountForm) {\n\t\treturn this.wrapper.post('user', JSON.stringify(accountData));\n\t}\n\n\tpublic edit(accountData: IAccountForm, id: number) {\n\t\treturn this.wrapper.put(`user/${id}`, JSON.stringify(accountData));\n\t}\n\n\tpublic delete(id: number) {\n\t\treturn this.wrapper.delete(`user/${id}`);\n\t}\n\n\tpublic getBranch(id: number) {\n\t\treturn this.wrapper.get(`user/faena/${id}`);\n\t}\n\n\tpublic sendBranch(assingData: IBranchAction) {\n\t\treturn this.wrapper.post('user/faena', JSON.stringify(assingData));\n\t}\n\n}\n","import ServiceAccount from \"../Services/ServiceAccount\";\n\nfunction isEmail(email: string) {\n\t// eslint-disable-next-line\n\tvar re = /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\treturn re.test(email);\n}\n\nconst service = new ServiceAccount();\nlet currentSearch: Promise | undefined = undefined;\n\nexport const searchEmail = (\n\trule: string,\n\tvalue: string,\n\tcallback: (message?: any) => void\n) => {\n\tif (value && isEmail(value)) {\n\t\tcurrentSearch = service.fetchPage(0, 1, undefined, undefined, { filter_Username: value })\n\t\tif (currentSearch) {\n\t\t\tsetTimeout(() => {\n\t\t\t\t\tcurrentSearch && currentSearch!\n\t\t\t\t\t.then(async r => {\n\t\t\t\t\t\tcurrentSearch = undefined;\n\t\t\t\t\t\tconst res = await r.json();\n\t\t\t\t\t\tif (res.meta.total > 0) {\n\t\t\t\t\t\t\tcallback(\"User Register\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcallback();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.catch(e => {\n\t\t\t\t\t\tcurrentSearch = undefined;\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t});\n\t\t\t}, 1000);\n\t\t}\n\t}\n\tcallback();\n\treturn true;\n};\n","import * as React from 'react';\nimport Form from 'antd/lib/form';\nimport { IAccount, IAccountForm, IBranchAction } from '../../Models/Account';\nimport Icon from 'antd/lib/icon';\nimport { WrappedFormUtils } from 'antd/lib/form/Form';\nimport Row from 'antd/lib/row';\nimport Col from 'antd/lib/col';\nimport Input from 'antd/lib/input';\nimport { ISelectorData } from '../../Components/Selector';\nimport { Link, RouteComponentProps } from 'react-router-dom';\nimport { Producer, Branch, IFaena } from '../../Models/Report';\nimport Select from 'antd/lib/select';\nimport './FormAccount.scss';\nimport Button from 'antd/lib/button';\nimport { IProfile } from '../../Models/Security';\nimport BranchList from './BranchList';\nimport SelectorProducer from './SelectorProducer';\nimport Loading from '../../Components/Loading';\nimport Dialog from '../../Components/Dialog';\nimport { searchEmail } from '../../Utils/UtilsAccount'\nimport { EStatusRequest } from '../../Reducers/Session';\n\nexport interface IAccountFormProps extends RouteComponentProps {\n\tproducers: Producer[];\n\tprofiles: IProfile[];\n\tisEdit?: boolean;\n\tcurrent?: IAccount;\n\tform: WrappedFormUtils;\n\tisRequest: boolean;\n\tstatus: EStatusRequest;\n\tmessage: string | any;\n\tonCleanStatus: () => void;\n\tonCleanCurrent?: () => void;\n\tonSend: (data: IAccountForm, id?: number) => void;\n}\n\nconst AccountForm = (props: IAccountFormProps) => {\n\t// eslint-disable-next-line\n\tconst [cancel, setCancel] = React.useState(false);\n\tconst [selected, setSelected] = React.useState([] as string[]);\n\tconst [branchs, setBranchs] = React.useState({} as any);\n\tconst [isLoadData, setLoadData] = React.useState(false);\n\tconst { getFieldDecorator, setFieldsValue } = props.form;\n\tconst message = !props.isEdit\n\t\t? 'Crear nueva cuenta de usuario'\n\t\t: `Editando cuenta de ${props.current!.name}`;\n\tconst producersSelectorData = props.producers.map(\n\t\tp => ({ label: p.name.toUpperCase(), value: p.id } as ISelectorData)\n\t);\n\tconst [current, setCurrent] = React.useState(props.current);\n\tconst onSelectedProducer = (value: string[]) => {\n\t\tsetSelected(value);\n\t\tif (value) {\n\t\t\tconst branchNew: any = {};\n\t\t\tfor (let i = 0; i < value.length; i += 1) {\n\t\t\t\tconst key = value[i];\n\t\t\t\tbranchNew[key] = branchs[key];\n\t\t\t}\n\t\t\tsetBranchs(branchNew);\n\t\t}\n\t};\n\tconst onDeSelectedProducer = (value: string) => {\n\t\tif (value) {\n\t\t\tconst branchNew: any = {...branchs};\n\t\t\tdelete branchNew[value];\n\t\t\tif (current && current!.producers) {\n\t\t\t\tconst producers = [];\n\t\t\t\tfor (let i = 0; i < current!.producers!.length; i += 1) {\n\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\tif (current.producers![i].id != value) {\n\t\t\t\t\t\tproducers.push(current.producers![i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tconst newCurrent = {...current, producers: producers};\n\t\t\t\tsetCurrent(newCurrent);\n\t\t\t}\n\t\t\tsetBranchs(branchNew);\n\t\t}\n\t};\n\tconst onSelectBranch = (producer: Producer, list: Branch[]) => {\n\t\tconst res = { ...branchs } as any;\n\t\tres[producer.id] = list;\n\t\tsetBranchs(res);\n\t\tsetFieldsValue({\n\t\t\tproducers: selected\n\t\t});\n\t};\n\tconst onSubmit = (evt: React.FormEvent) => {\n\t\tevt.preventDefault();\n\t\tprops.form.validateFields((errs, data) => {\n\t\t\tif (errs || props.isRequest) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst dataSend = { ...data };\n\t\t\tdelete dataSend.producers;\n\t\t\tconst getBranchsToAdd = () => {\n\t\t\t\tconst res: IBranchAction[] = [];\n\t\t\t\tconst producersRut = Object.keys(branchs);\n\t\t\t\tfor (let i = 0; i < producersRut.length; i += 1) {\n\t\t\t\t\tconst rut = producersRut[i];\n\t\t\t\t\tconst list = branchs[rut];\n\t\t\t\t\tif (list) {\n\t\t\t\t\t\tfor (let j = 0; j < list.length; j += 1) {\n\t\t\t\t\t\t\tres.push({\n\t\t\t\t\t\t\t\tpermiso: 'S',\n\t\t\t\t\t\t\t\trutProductor: rut,\n\t\t\t\t\t\t\t\tsucursal: list[j].id,\n\t\t\t\t\t\t\t\tusername:\n\t\t\t\t\t\t\t\t\tcurrent ? current.id.toString() : '-1'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn res;\n\t\t\t};\n\t\t\tconst getBranchsToDel = (data: any) => {\n\t\t\t\tconst list: IFaena[] = current!.producersList!.filter(\n\t\t\t\t\t(p: IFaena) =>\n\t\t\t\t\t\tdata.brandsAdd.find(\n\t\t\t\t\t\t\t(b: IBranchAction) =>\n\t\t\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\t\t\t\tb.sucursal == p.dcSucursal && b.rutProductor == p.dcRutProductor\n\t\t\t\t\t\t) == null\n\t\t\t\t);\n\t\t\t\treturn list.map(l => ({\n\t\t\t\t\tpermiso: 'N',\n\t\t\t\t\trutProductor: l.dcRutProductor,\n\t\t\t\t\tsucursal: l.dcSucursal,\n\t\t\t\t\tusername: current!.id.toString()\n\t\t\t\t}));\n\t\t\t};\n\n\t\t\tdataSend.brandsAdd = getBranchsToAdd();\n\t\t\tdataSend.QuantityBranch = dataSend.brandsAdd.length;\n\t\t\tif (current) {\n\t\t\t\tdataSend.id = current!.id;\n\t\t\t\tdataSend.brandsDel = getBranchsToDel(dataSend);\n\t\t\t\tdataSend.brandsAdd = dataSend.brandsAdd.filter(\n\t\t\t\t\t(b: IBranchAction) =>\n\t\t\t\t\t\tcurrent!.producersList!.find(\n\t\t\t\t\t\t\tf =>\n\t\t\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\t\t\t\tf.dcSucursal == b.sucursal && f.dcRutProductor == b.rutProductor\n\t\t\t\t\t\t) == null\n\t\t\t\t);\n\t\t\t}\n\t\t\tprops.onSend(dataSend, current ? current.id : undefined);\n\t\t});\n\t};\n\n\tconst getProducersSelected = () => {\n\t\tconst res = {} as any;\n\t\tif (!current) {\n\t\t\treturn false;\n\t\t}\n\t\tconst producers = current!.producers!;\n\t\tfor (let i = 0; i < producers.length; i += 1) {\n\t\t\tconst producer = producers[i];\n\t\t\tres[producer.id] = [];\n\t\t\tfor (let j = 0; j < producer.branchs.length; j += 1) {\n\t\t\t\tres[producer.id].push(producer.branchs[j].id);\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t};\n\t// eslint-disable-next-line\n\tReact.useEffect(() => {\n\t\tif (!isLoadData) {\n\t\t\tif (current) {\n\t\t\t\tconst keys = current!.producers!.map(b => b.id);\n\t\t\t\tsetSelected(keys);\n\t\t\t\tconst selection = current!.producers!.reduce(\n\t\t\t\t\t(a: any, c: any) => {\n\t\t\t\t\t\ta[c.id] = c.branchs;\n\t\t\t\t\t\treturn a;\n\t\t\t\t\t},\n\t\t\t\t\t{} as any\n\t\t\t\t);\n\t\t\t\tif (current!.producers!.length > 0) {\n\t\t\t\t\tsetBranchs(selection);\n\t\t\t\t\tsetFieldsValue({\n\t\t\t\t\t\tproducers: selection\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetLoadData(true);\n\t\t}\n\t});\n\tconst onClose = () => {\n\t\tprops.onCleanStatus();\n\t\tif (current) {\n\t\t\tconst onCleanCurrent = props.onCleanCurrent || (() => {});\n\t\t\tonCleanCurrent();\n\t\t}\n\t\tif (props.status !== EStatusRequest.FAIL) {\n\t\t\tprops.history.push('/administration');\n\t\t}\n\n\t}\n\tconst renderModal = () => {\n\t\tconst isError = props.status === EStatusRequest.FAIL;\n\t\tconst open = props.status === EStatusRequest.COMPLETE || isError;\n\t\tlet message = 'Ha finalizado con éxito la operación';\n\t\tlet extra = '';\n\t\tlet operation = props.isEdit ? 'Editar Usuario' : 'Crear Usuario';\n\t\tif (cancel) {\n\t\t\tmessage = 'Ha cancelado la operación';\n\t\t\textra = 'por lo tanto no se ha guardado ningún elemento.'\n\t\t}\n\n\t\tif (isError) {\n\t\t\tmessage = 'Ha ocurrido un error, intente nuevamente';\n\t\t\tif (props.message) {\n\t\t\t\tconst err = props.message as any\n\t\t\t\ttry {\n\t\t\t\t\tif (err && 'Detail' in err && err.Detail === 'DUPLICATE' ) {\n\t\t\t\t\t\tmessage = 'El correo enviado ya se encuentra registrado';\n\t\t\t\t\t\toperation = '';\n\t\t\t\t\t}\n\t\t\t\t} catch {\n\t\t\t\t\tmessage = 'Ocurrio un error guardando el usuario intente nuevamente';\n\t\t\t\t\t\toperation = '';\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (cancel || open) {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tonClose()\n\t\t\t\t}, 3000)\n\t\t\t\t}\n\t\t}\n\t\treturn \n\t\t\t

{message }{operation}{extra}

\n\t\t
\n\t}\n\tconst isProcess = props.status === EStatusRequest.PROCESS;\n\treturn (\n\t\t
\n\t\t\t{isProcess ? : }\n\t\t\t{renderModal()}\n\t\t\t
\n\t\t\t

\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{message}\n\t\t\t

\n\t\t\t
\n\t\t\t\t

Descripción del usuario

\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t{getFieldDecorator('name', {\n\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\tmessage: '*El nombre es requerido'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tinitialValue: current ? current.name : undefined\n\t\t\t\t\t\t})()}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{getFieldDecorator('username', {\n\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\tmessage: '*El correo es requerido'\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\ttype: 'email',\n\t\t\t\t\t\t\t\t\t\t\tmessage: 'Debe escribir un correo válido'\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tmessage: 'Correo ya registrado',\n\t\t\t\t\t\t\t\t\t\t\tvalidator: searchEmail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tinitialValue: current\n\t\t\t\t\t\t\t\t\t\t? current.username\n\t\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t\t})(\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{getFieldDecorator('idProfile', {\n\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\t\t\tmessage: 'Seleccione un perfil'\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tinitialValue: current\n\t\t\t\t\t\t\t\t\t\t? current.idProfile\n\t\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t\t})(\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t

Asignación de empresas y faenas

\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t{getFieldDecorator('producers', {\n\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t\t\tmessage: 'Debe seleccionar al menos una empresa'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t})(\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\t selected.indexOf(p.id) >= 0)}\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n};\n\nexport default Form.create()(AccountForm);\n","import { IProfile } from \"./Security\";\nimport { Producer, IFaena } from './Report';\n\nexport enum EAccountStatus {\n\tACTIVE = 0,\n\tINACTIVE = 1\n}\n\n\nexport interface IAccount {\n\tusername: string;\n\tpassword: string;\n\tname: string;\n\tidProfile: number;\n\tprofile: IProfile;\n\tid: number;\n\tcreatedAt: Date;\n\teditedAt?: Date;\n\tremovedAt?: Date;\n\tversion: number;\n\tquantityBranch: number;\n\tstatus: EAccountStatus;\n\tproducers?: Producer[];\n\tproducersList?: IFaena[];\n}\n\nexport interface IAccountForm {\n\tid?: number;\n\tusername: string;\n\tpassword: string;\n\tname: string;\n\tidProfile: number;\n\tstatus: EAccountStatus;\n\tbrandsAdd: IBranchAction[];\n\tbrandsDel: IBranchAction[];\n}\n\nexport interface IBranchAction {\n\tusername: string;\n\trutProductor: string;\n\tsucursal: string;\n\tpermiso: 'S' | 'N';\n}\n","import * as React from 'react';\nimport Modal from 'antd/lib/modal/Modal';\nimport Skeleton from 'antd/lib/skeleton';\nimport { IDialogBranchProps } from './DialogBranch';\nimport List from 'antd/lib/list';\nimport { IAccount } from '../../Models/Account';\nimport { Branch } from '../../Models/Report';\nimport Row from 'antd/lib/row';\nimport Col from 'antd/lib/col';\nimport './DialogBranch.scss';\n\nexport interface IDialogBranchProps {\n\topen: boolean;\n\ttoggle: () => void;\n\tcurrent?: IAccount;\n\tloading: boolean;\n}\n\nconst DialogBranch = (props: IDialogBranchProps) => (\n\t\n\t\t\n\t\t\t{props.current && props.current.producers && props.current!.producers!.map(p =>\n\t\t\t\t{p.name}}\n\t\t\t\t\tdataSource={p.branchs}\n\t\t\t\t\trenderItem={(item: Branch) => \n\t\t\t\t\t\t- {item.name}\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t)\n\t\t\t}\n\t\t\n\t\n)\n\nexport default DialogBranch;\n","import * as React from 'react';\nimport Table from 'antd/lib/table';\nimport Selector from '../../Components/Selector';\nimport { Link, RouteComponentProps } from 'react-router-dom';\nimport { IPageOptions } from '../../Models/Common';\nimport { IPage, IProfile } from '../../Models/Security';\nimport { IAccount, EAccountStatus, IAccountForm } from '../../Models/Account';\nimport Dropdown from 'antd/lib/dropdown';\nimport Menu from 'antd/lib/menu';\nimport Icon from 'antd/lib/icon';\nimport PopConfirm from 'antd/lib/popconfirm';\nimport Emply from 'antd/lib/empty';\nimport Row from 'antd/lib/row';\nimport Balloon from '../../Components/Balloon';\nimport './ListAccount.scss';\nimport Pagination from 'antd/lib/pagination';\nimport DialogBranch from './DialogBranch';\nimport Button from 'antd/lib/button';\nimport Search from 'antd/lib/input/Search';\nimport EventUtils from '../../Utils/EventUtils';\nimport Drawer from 'antd/lib/drawer';\nimport IconSearch from '../../Components/IconSearch';\nimport { ChangePassword } from '../../Components/Profile/ChangePass';\nimport { EStatusRequest } from '../../Reducers/Session';\n\nexport interface IListAccountProps extends RouteComponentProps {\n\tdata: IPage;\n\tisRequest: boolean;\n\tprofiles: IProfile[];\n\tcurrent?: IAccount;\n\tonClean: () => void;\n\tonFetch: (id: number) => void;\n\tonFetchData: (options: IPageOptions, idProfile?: number, search?: string, order?: string) => void;\n\tonDelete: (id: number) => void;\n\tonChangeStatus: (account: IAccountForm, id?: number) => void;\n\tstatus: EStatusRequest;\n\tsetStatusRequest: (status: EStatusRequest) => void;\n}\n\nconst locale = {\n\temptyText: ()\n };\n\nconst ListAccount = (props: IListAccountProps) => {\n\tconst [openFaena, setOpenFaena] = React.useState(false);\n\tconst [openChangePass, setChangePass] = React.useState(false);\n\tconst [profile, setProfile] = React.useState(undefined);\n\tconst [search, setSearch] = React.useState('');\n\tconst [pageOption, setPageOption] = React.useState({ page: 0, size: 5 });\n\tconst [openDrawer, setOpenDrawer] = React.useState(false);\n\tconst [record, setRecord] = React.useState();\n\tconst onPage = (page: number, size?: number) => {\n\t\tconst option = { page: page, size: size };\n\t\tsetPageOption(option as any);\n\t\tprops.onFetchData({\n\t\t\tpage: page - 1,\n\t\t\tsize: size || 5\n\t\t}, profile, search);\n\t}\n\tconst onSort = (pagination: any, filter: any, sorter: any) => {\n\t\tprops.onFetchData(pageOption, profile, search, sorter.columnKey);\n\t}\n\tconst onToggle = (id?: number) => {\n\t\tsetOpenFaena(!openFaena);\n\t\tif (!id) {\n\t\t\tprops.onClean();\n\t\t} else {\n\t\t\tprops.onFetch(id);\n\t\t}\n\t}\n\n\tconst onSearch = (str?: string) => {\n\t\treturn () => {\n\t\t\tprops.onFetchData({ page: 0, size: 5 }, profile, str);\n\t\t}\n\t}\n\n\tconst onCloseChangePass = () => {\n\t\t\tsetChangePass(false);\n\t\t\tsetRecord(undefined);\n\t\t\tprops.setStatusRequest(EStatusRequest.PENDING);\n\t}\n\n\tconst onChangePass = (account?: IAccount) => {\n\t\tsetChangePass(!openChangePass);\n\t\tsetRecord(account);\n\t}\n\n\tconst showDrawer = (record?: IAccount) => {\n\t\tsetOpenDrawer(record ? true : false);\n\t\tsetRecord(record);\n\t}\n\n\tconst sendPass = (data: any) => {\n\t\tif (record) {\n\t\t\tconst dataSend: any = {...record, cleanPassword: data.passwordNew, password: undefined, brandsAdd: [], brandsDel: []}\n\t\t\tprops.onChangeStatus(dataSend, record.id);\n\t\t}\n\t}\n\n\treturn (
\n\t\t\n\t\t

Administración de cuentas de usuario

\n\t\t ({ label: p.description, value: p.id }))}\n\t\t\tplaceholder=\"Seleccionar perfil de usuario\"\n\t\t\tonChange={(value: any) => {\n\t\t\tsetProfile(value);\n\t\t\tprops.onFetchData({ page: 0, size: 5 }, value, search)\n\t\t}} />\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t) => {\n\n\t\t\t\t\t\t\tconst value: any = evt.target.value\n\t\t\t\t\t\t\tsetSearch(value);\n\t\t\t\t\t\t\tEventUtils.debounce(onSearch(value), 500);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t} />\n\t\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t{openDrawer && showDrawer()}\n visible={openDrawer}\n\t\t\t\t\tgetContainer={false}\n\t\t\t\t\tclassName=\"hidden-large\"\n style={{ position: 'absolute' }}\n >\n\t\t\t\t\t{record &&
\n

\n\t\t\t\t\t\tNombre: {record!.name}\n\t\t\t\t\t

\n\t\t\t\t\t

\n\t\t\t\t\t\tCorreo: {record!.username}\n\t\t\t\t\t

\n\t\t\t\t\t

\n\t\t\t\t\t\tPerfil: {record!.profile.description}\n\t\t\t\t\t

\n\t\t\t\t\t

\n\t\t\t\t\t\tFaenas: \n\t\t\t\t\t\t{record!.quantityBranch}\n\t\t\t\t\t\t{record!.quantityBranch > 0 &&

onToggle(record!.id)}>Ver Detalle
}\n\t\t\t\t\t

\n\t\t\t\t\t

\n\t\t\t\t\t\tEstatus: \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{record!.status === EAccountStatus.ACTIVE ? 'Cuenta activa' : 'Cuenta inactiva'}\n\t\t\t\t\t\t\n\t\t\t\t\t

\n\t\t\t\t\t
}\n\t\t\t}\n\t\t\t `account-row-${record.id}`} loading={props.isRequest} pagination={false} dataSource={props.data.data}>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t {\n\t\t\t\t\treturn
showDrawer(record)}>
;\n\t\t\t\t}} title=\"\" />\n\t\t\t\t\n\t\t\t\t {\n\t\t\t\t\tconst faenas = `${record.quantityBranch || 0} Faenas`;\n\t\t\t\t\treturn
\n\t\t\t\t\t\t
{faenas}
\n\t\t\t\t\t\t{record.quantityBranch > 0 &&
onToggle(record.id)}>Ver Detalle
}\n\t\t\t\t\t
;\n\t\t\t\t}} />\n\t\t\t\t {\n\t\t\t\t\tconst color = record.status === EAccountStatus.ACTIVE ? 'green' : 'red';\n\t\t\t\t\tconst status = record.status === EAccountStatus.ACTIVE ? 'Cuenta activa' : 'Cuenta inactiva';\n\t\t\t\t\treturn \n\t\t\t\t\t\t\n\t\t\t\t\t\t{status}\n\t\t\t\t\t\n\t\t\t\t}} />\n\t\t\t\t {\n\t\t\t\t\tconst menu = \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
{\n\t\t\t\t\t\t\t\trecord.status = record.status !== EAccountStatus.ACTIVE ? EAccountStatus.ACTIVE : EAccountStatus.INACTIVE;\n\t\t\t\t\t\t\t\tprops.onChangeStatus(record as any, record.id);\n\t\t\t\t\t\t\t}}>\n\t\t\t\t\t\t\t\t{record.status === EAccountStatus.ACTIVE ? 'Bloquear usuario' : 'Habilitar Usuario'}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t props.onDelete(record.id)} title=\"¿ Está seguro de eliminar este usuario ?\" okText=\"Si\" cancelText=\"No\">\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\tEliminar usuario\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tEditar usuario\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t
onChangePass(record)} className=\"ant-btn ant-btn-link\">\n\t\t\t\t\t\t\t\tCambiar Contraseña\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
;\n\t\t\t\t\treturn \n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t
;\n\t\t\t\t}} />\n\t\t\t
\n\t\t
\n\t\t{record && }\n\t\t
\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t
)\n}\n\n\nexport default ListAccount;\n","import { ActionsAccount } from './Types';\nimport ServiceAccount from '../../Services/ServiceAccount';\nimport { IPageOptions } from '../../Models/Common';\nimport { IAccountForm } from '../../Models/Account';\nimport { Producer } from '../../Models/Report';\nimport { createActionChecking } from '../Session/Actions';\nimport { EStatusRequest } from '../../Reducers/Session';\n\nconst service = new ServiceAccount();\n\nconst actionRequest = {\n\ttype: ActionsAccount.REQUEST_ACCOUNT\n};\n\nexport const createActionFetchAccount = (id: number) => {\n\treturn (dispatch: any) => {\n\t\tdispatch(actionRequest);\n\t\tservice\n\t\t\t.fetch(id)\n\t\t\t.then(async r => {\n\t\t\t\tif (!r.ok) {\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: ActionsAccount.ERROR_ACCOUNT,\n\t\t\t\t\t\tpayload: await r.json()\n\t\t\t\t\t});\n\t\t\t\t\tdispatch(actionRequest);\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tconst account = await r.json();\n\t\t\t\tconst branchs = await (await service.getBranch(account.id)).json();\n\t\t\t\tconst first = branchs || branchs.length > 0 ? branchs[0] : undefined;\n\t\t\t\tif (!first || 'Status' in first) {\n\t\t\t\t\taccount.producers = [];\n\t\t\t\t\taccount.producersList = [];\n\t\t\t\t} else {\n\t\t\t\t\taccount.producers = Producer.transform(\n\t\t\t\t\t\tbranchs,\n\t\t\t\t\t\t-1,\n\t\t\t\t\t\t() => {},\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tfalse\n\t\t\t\t\t);\n\t\t\t\t\taccount.producersList = branchs;\n\t\t\t\t}\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionsAccount.FETCH_ACCOUNT,\n\t\t\t\t\tpayload: account\n\t\t\t\t});\n\t\t\t\tdispatch(actionRequest);\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tdispatch(actionRequest);\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionsAccount.ERROR_ACCOUNT,\n\t\t\t\t\tpayload: e.toString()\n\t\t\t\t});\n\t\t\t});\n\t};\n};\n\nexport const createActionfetchAccounts = (\n\toptions: IPageOptions,\n\tidProfile?: number,\n\tsearch?: string,\n\torder?: string\n) => {\n\treturn (dispatch: any) => {\n\t\tdispatch(actionRequest);\n\t\tservice\n\t\t\t.fetchPage(\n\t\t\t\toptions.page,\n\t\t\t\toptions.size,\n\t\t\t\tidProfile,\n\t\t\t\torder,\n\t\t\t\tundefined,\n\t\t\t\tsearch\n\t\t\t)\n\t\t\t.then(async r => {\n\t\t\t\tif (r.status === 403) {\n\t\t\t\t\tdispatch(actionRequest);\n\t\t\t\t\tdispatch(createActionChecking());\n\t\t\t\t} else {\n\t\t\t\t\tconst res = await r.json();\n\t\t\t\t\tif (!r.ok) {\n\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\ttype: ActionsAccount.ERROR_ACCOUNT,\n\t\t\t\t\t\t\tpayload: res\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\ttype: ActionsAccount.FETCH_ACCOUNTS,\n\t\t\t\t\t\t\tpayload: res\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tdispatch(actionRequest);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tdispatch(actionRequest);\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionsAccount.ERROR_ACCOUNT,\n\t\t\t\t\tpayload: e.toString()\n\t\t\t\t});\n\t\t\t});\n\t};\n};\n\nexport const createActionCleanAccount = () => ({\n\ttype: ActionsAccount.CLEAN_CURRENT_ACCOUNT\n});\n\nexport const createActionCleanAccountStatus = () => ({\n\ttype: ActionsAccount.CLEAN_STATUS_ACCOUNT\n});\n\nexport const createActionStatusAccount = (status: EStatusRequest) => ({\n\ttype: ActionsAccount.STATUS_REQUEST_ACCOUNT,\n\tpayload: status\n});\n\nexport const createActionCreateAccount = (data: IAccountForm, id?: number) => {\n\treturn (dispatch: any, state: any) => {\n\t\tdispatch(actionRequest);\n\t\tdispatch(createActionStatusAccount(EStatusRequest.PROCESS));\n\t\tconst fetch = !id ? service.create(data) : service.edit(data, id);\n\t\tfetch\n\t\t\t.then(async r => {\n\t\t\t\tif (r.ok) {\n\t\t\t\t\tconst res = await r.json();\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: ActionsAccount.CREATE_ACCOUNT,\n\t\t\t\t\t\tpayload: res\n\t\t\t\t\t});\n\t\t\t\t\tdispatch(actionRequest);\n\t\t\t\t\tdispatch(createActionStatusAccount(EStatusRequest.COMPLETE));\n\t\t\t\t\tdispatch(createActionfetchAccounts({ page: 0, size: 5 }));\n\t\t\t\t} else {\n\t\t\t\t\tconst res = await r.json();\n\t\t\t\t\tdispatch(actionRequest);\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: ActionsAccount.ERROR_ACCOUNT,\n\t\t\t\t\t\tpayload: res\n\t\t\t\t\t});\n\t\t\t\t\tdispatch(createActionStatusAccount(EStatusRequest.FAIL));\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tdispatch(actionRequest);\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionsAccount.ERROR_ACCOUNT,\n\t\t\t\t\tpayload: e.toString()\n\t\t\t\t});\n\t\t\t\tdispatch(createActionStatusAccount(EStatusRequest.FAIL));\n\t\t\t});\n\t};\n};\n\nexport const createActionDelete = (id: number) => {\n\treturn (dispatch: any) => {\n\t\tdispatch(actionRequest);\n\t\tservice\n\t\t\t.delete(id)\n\t\t\t.then(async res => {\n\t\t\t\tif (res.ok) {\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: ActionsAccount.DELETE_ACCOUNT,\n\t\t\t\t\t\tpayload: id\n\t\t\t\t\t});\n\t\t\t\t\tdispatch(createActionfetchAccounts({ page: 0, size: 5 }));\n\t\t\t\t} else {\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: ActionsAccount.ERROR_ACCOUNT,\n\t\t\t\t\t\tpayload: 'Error borrando'\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tdispatch(actionRequest);\n\t\t\t})\n\t\t\t.catch(e => {\n\t\t\t\tdispatch(actionRequest);\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionsAccount.ERROR_ACCOUNT,\n\t\t\t\t\tpayload: e.toString()\n\t\t\t\t});\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionsAccount.STATUS_REQUEST_ACCOUNT,\n\t\t\t\t\tpayload: EStatusRequest.FAIL\n\t\t\t\t});\n\t\t\t});\n\t};\n};\n","import { ActionsProducer } from './Types';\nimport ServiceProducer from '../../Services/ServiceProducer';\nimport { Producer, IFaena } from '../../Models/Report';\n\nconst service = new ServiceProducer();\n\nexport const createActionRequestProducer = () => ({\n\ttype: ActionsProducer.REQUEST_PRODUCER\n})\n\n\nexport const createActionFetchProducer = () => {\n\treturn (dispatch: any) => {\n\t\tdispatch(createActionRequestProducer())\n\t\tservice.fetch()\n\t\t.then(async r => {\n\t\t\tconst res: IFaena[] = await r.json();\n\t\t\tconst producers = Producer.transform(res, -1, undefined as any, undefined, false);\n\t\t\tdispatch({\n\t\t\t\ttype: ActionsProducer.FETCH_PRODUCERS,\n\t\t\t\tpayload: producers\n\t\t\t})\n\t\t\tdispatch(createActionRequestProducer())\n\t\t})\n\t\t.catch( e => {\n\n\t\t})\n\t}\n}\n","import Service from './Service';\n\nexport default class ServiceProducer extends Service {\n\tpublic fetch() {\n\t\treturn this.wrapper.get(`report/producers`);\n\t}\n}\n","import * as React from 'react';\nimport { Switch, Route, withRouter, RouteComponentProps } from 'react-router-dom';\nimport FormAccount from './FormAccount';\nimport ListAccount from './ListAccount';\nimport { connect } from 'react-redux';\nimport { IStateApp } from '../../Reducers/index';\nimport { IPageOptions } from '../../Models/Common';\nimport { createActionCleanAccountStatus, createActionfetchAccounts, createActionFetchAccount, createActionCreateAccount, createActionCleanAccount, createActionDelete, createActionStatusAccount } from '../../Actions/Account/Actions';\nimport { IAccountState } from '../../Reducers/Account/index';\nimport { createActionFetchProducer } from '../../Actions/Producer/Actions';\nimport { Producer } from '../../Models/Report';\nimport { createActionFetchProfiles } from '../../Actions/Profile/Actions';\nimport { IProfile } from '../../Models/Security';\nimport { IAccountForm } from '../../Models/Account';\nimport Loading from '../../Components/Loading';\nimport { EStatusRequest } from '../../Reducers/Session';\n\nexport interface IAccountContainerProps extends IAccountState, RouteComponentProps {\n\tonFetchAccountPage: (option: IPageOptions, idProfile?: number, search?: string, order?: string) => void;\n\tonCreateAccount: (data: IAccountForm, id?: number) => void;\n\tonFetchAccount: (id: number) => void\n\tonFetchProducers: () => void;\n\tonFetchProfiles: () => void;\n\tonCleanCurrent: () => void;\n\tonCleanStatus: () => void;\n\tonDeleteAccount: (id: number) => void;\n\tproducers: Producer[];\n\tprofiles: IProfile[];\n\tsetStatusRequest: (status: EStatusRequest) => void;\n}\n\nclass AccountContainer extends React.Component {\n\tprivate id?: number;\n\tprivate request: boolean = false;\n\n\tcomponentDidMount() {\n\t\tthis.props.onFetchAccountPage({ page: 0, size: 5 })\n\t\tthis.props.onFetchProducers();\n\t\tthis.props.onFetchProfiles();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t {\n\t\t\t\tthis.id = undefined;\n\t\t\t\treturn ;\n\t\t\t}} />\n\t\t\t {\n\t\t\t\tconst args = props.match.params as any;\n\t\t\t\tif ((!this.props.current || this.props.current.id !== parseInt(args.id, 10)) || this.props.profiles.length === 0) {\n\t\t\t\t\tif (!this.request) {\n\t\t\t\t\t\tthis.request = true;\n\t\t\t\t\t\tthis.props.onFetchAccount(args.id);\n\t\t\t\t\t}\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\tthis.request = false;\n\t\t\t\treturn ;\n\t\t\t}} />\n\t\t\t {\n\t\t\t\t\tthis.request = false;\n\t\t\t\t\tthis.id = undefined;\n\t\t\t\t\treturn }\n\t\t\t\t\t} />\n\t\t)\n\t}\n\n\tprivate onClean() {\n\t\tthis.props.onCleanStatus();\n\t\tthis.props.onCleanCurrent();\n\t}\n\n\tprivate onSave(data: IAccountForm, id?: number) {\n\t\tthis.props.onCreateAccount(data, id);\n\t}\n}\n\nconst mapProps = (state: IStateApp) => ({...state.account, producers: state.producer.producers, profiles: state.profile.page.data });\n\nconst mapActions = (dispatch: any) => ({\n\tonFetchAccountPage: (options: IPageOptions, idProfile?: number, search?: string, order?: string) => dispatch(createActionfetchAccounts(options, idProfile, search, order)),\n\tonFetchAccount: (id: number) => dispatch(createActionFetchAccount(id)),\n\tonFetchProducers: () => dispatch(createActionFetchProducer()),\n\tonFetchProfiles: () => dispatch(createActionFetchProfiles({ page: 0, size: 100 })),\n\tonCreateAccount: (data: IAccountForm, id?: number) => dispatch(createActionCreateAccount(data, id)),\n\tonCleanCurrent: () => dispatch(createActionCleanAccount()),\n\tonCleanStatus: () => dispatch(createActionCleanAccountStatus()),\n\tsetStatusRequest: (status: EStatusRequest) => dispatch(createActionStatusAccount(status)),\n\tonDeleteAccount: (id: number) => dispatch(createActionDelete(id))\n})\n\nexport default connect(mapProps, mapActions)(withRouter(AccountContainer) as any);\n","import * as React from 'react';\nimport { Document, Page, pdfjs } from 'react-pdf';\nimport './ViewerManual.scss';\nimport { connect } from 'react-redux';\nimport { IStateApp } from '../Reducers/index';\nimport { IAccount } from '../Models/Account';\nimport { Icon } from '@material-ui/core';\n\npdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;\n\ninterface IViewerManualProps extends IAccount {\n\n}\n\nexport const ViewerManual = (props: IViewerManualProps) => {\n\tconst [numPages, setNumPages] = React.useState([]);\n\tconst onDocumentoLoadSuccess = (load: any) => {\n\t\tconst pages = [];\n\t\tfor (let i = 1; i <= load.numPages; i ++) {\n\t\t\tpages.push(i);\n\t\t}\n\t\tsetNumPages(pages);\n\t}\n\tconst getUrl = () => {\n\t\tconst path = process.env.NODE_ENV.trim() === 'development' ? '/' : '';\n\t\tif (props.idProfile === 1) {\n\t\t\treturn path + 'Manual _Puerto Angamos _Copper Tracker_Full.pdf';\n\t\t}\n\t\treturn path + 'Manual _Puerto Angamos _Copper Tracker_Cliente.pdf';\n\t}\n\n\treturn
\n\t\t\n\t\t\tcloud_download\n\t\t\t

Descargar

\n\t\t
\n\t\t\n\t\t\t{numPages.map(p => )}\n\t\t\n\t
\n}\n\nexport default connect((state: IStateApp) => state.session.account)(ViewerManual);\n","import React from 'react';\nimport { Provider } from 'react-redux';\nimport Routes from './Containers';\nimport Store from './Store';\nimport Layout from './Components/Layout';\nimport './App.css';\nimport { IRoute } from './Containers';\nimport Home from './Containers/Home';\nimport AnnouncedShipment from './Containers/AnnouncedShipment';\nimport Stacking from './Containers/Stacking';\nimport Consolidate from './Containers/Consolidate';\nimport BreakBulk from './Containers/BreakBulk';\nimport Bath from './Containers/Bath';\nimport Yard from './Containers/Yard';\nimport AccountContainer from './Containers/Account';\nimport ViewerManual from './Components/ViewerManual';\n\nconst routes: IRoute[] = [\n\t{\n\t\tname: 'home',\n\t\tpath: '/',\n\t\tcomponent: ,\n\t\texact: true\n\t},\n\t{\n\t\tname: 'announcedshipment',\n\t\tpath: '/carga-anunciada',\n\t\tcomponent: \n\t},\n\t{\n\t\tname: 'stacking',\n\t\tpath: '/stacking',\n\t\tcomponent: \n\t},\n\t{\n\t\tname: 'consolidate',\n\t\tpath: '/consolidado',\n\t\tcomponent: \n\t},\n\t{\n\t\tname: 'breakbulk',\n\t\tpath: '/break-bulk',\n\t\tcomponent: \n\t},\n\t{\n\t\tname: 'cobreloteado',\n\t\tpath: '/cobre-loteado',\n\t\tcomponent: \n\t},\n\t{\n\t\tname: 'cobrealmacenado',\n\t\tpath: '/cobre-almacenado',\n\t\tcomponent: \n\t},\n\t{\n\t\tname: 'var',\n\t\tpath: '/administration',\n\t\tcomponent: \n\t},\n\t{\n\t\tname: 'manual',\n\t\tpath: '/manual',\n\t\tcomponent: \n\t}\n];\n\nconst App: React.FC = () => {\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t\n\t);\n}\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\ntype Config = {\n onSuccess?: (registration: ServiceWorkerRegistration) => void;\n onUpdate?: (registration: ServiceWorkerRegistration) => void;\n};\n\nexport function register(config?: Config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(\n (process as { env: { [key: string]: string } }).env.PUBLIC_URL,\n window.location.href\n );\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve Assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl: string, config?: Config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl: string, config?: Config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}