{"version":3,"sources":["pages/registro/categorias.js","pages/registro/areas.js","pages/registro/cambioCarreraPlan.js"],"names":["Auth","AuthService","tokenInfo","movil","test","navigator","userAgent","widthTable","window","screen","width","globales","tabla","marginleft","marginright","columns","name","title","columnExtensions","columnName","align","grouping","RowId","row","ID_CATEGORIA","withStyles","theme","formControlSelect","textAlign","closeButton","position","right","spacing","top","color","palette","grey","paper","borderRadius","border_dialog","minWidth","undefined","maxWidth","height","textField","marginTop","formControl","paddingTop","backdrop","zIndex","flexDirection","paperConfirm","React","Component","constructor","props","super","areaRef","createRef","descripcionRef","puntosRef","tablaRef","vtRef","changeExpandedGroups","expandedGroups","this","setState","blockTooltip","addEvent","descripcion","puntos","NOMBRE_AREA","selectedArea","actionModal","openModal","editEvent","state","idRowSelected","infoSelectedRow","rows","find","x","DESCRIPCION_CATEGORIA","parseInt","PUNTAJE","ID_AREA","deleteEvent","openModalConfirm","handleClose","handleCloseConfirm","obtenerAreas","Request","get","ip","set","getToken","retry","timeout","response","deadline","end","err","res","toString","substr","location","reload","funciones","showToast","JSON","parse","text","length","datos","map","item","i","_jsx","MenuItem","value","children","areas","datosSelectArea","handleChangeArea","event","target","handleOK","isEmpty","current","focus","trim","isNaN","idCategoria","idArea","openBackDrop","post","send","tipo_proceso","id_categoria","id_area","ad_usuario","user","RESP","DESCRIPCION_AREA","DESCRIPCION","newStructure","refreshTable","refreshGroups","refreshRows","moveScroll","scrollTo","heightTableMain","scrollToRow","onEntering","changeFilters","filters","handleRowClick","idRow","onMouseEvents","obtener_categorias","isLoadingMain","l","e","isLoggin","botones","icono","toolt","nombre","escritura","onclick","display","colores","naranja","botones_agregar","botones_eliminar","componentDidMount","getProfile","plataforma","getHeightTableMain","heightTable","render","classes","Fragment","Paper","className","square","_jsxs","BarraBotones","ref","style","marginLeft","marginleft_movil","marginRight","marginright_movil","CustomTable","Columns","Rows","Grouping","TableColumnExtensions","columnWidths","DefaultHiddenColumnNames","ExpandedGroups","ChangeExpandedGroups","getRowId","loading","rowSelected","rowClick","enabledFilterRows","onFiltersChange","tableGroupRow_cellComponent","tableRow","TableGroupRow","Cell","Tooltip","placement","arrow","onMouseEnter","onMouseLeave","Dialog","open","TransitionProps","fullScreen","DialogTitle","Typography","component","variant","IconButton","onClick","size","CloseIcon","fontSize","DialogContent","Select","Label","Datos","Selected","onChange","Style","Outlined","id","Ref","shrink","required","TextField","label","multiline","rowsMax","inputProps","maxLength","fullWidth","defaultValue","inputMode","onKeyDown","onlyNumbers","DialogActions","gutterBottom","Backdrop","CircularProgress","invisible","transitionDuration","TableGroupRow_cellComponent","minHeight","maxHeight","nombreRef","infoRowSelected","PUNTOS","nombre_area","obtener_areas","loadingMain","ListboxComponent","virtual","movil_pequeño","isVisibleRowSelected","colorRowSelected","selection","alternateColorRow1","alternateColorRow2","columnasClases","tableColumnExtensionsprincipal","wordWrapEnabled","columnasClaseshomologar","getRowIdClases","ID_SECCION_CLIENTE","getRowIdClaseshomologar","ID","defaultHiddenColumnNames","tableColumnExtensions","styles","margin","padding","select","changeSelectionClases","selectionClases","consultaclaseshomologar","tipo","_this","cuentaAlumno","idPlan","selectionPlanestudio","idPlanN","tmp","rowsClaseshomologar","cambiaAlumno","filaSeleccionada","CUENTA_ALUMNO","filaAlumno","codigo_planN","descripcion_planN","botonCambiar","idCarreraN","selectionPlanes","selectionCarreras","consultasDeLaVista","planesSecundarios","rowsClases","nombreCompleto","codigo_plan","plan","nivel","porcentajeCarrera","promedioGraduacion","foto","abrirModalSelecPlan","openPlan","homologar","openHomologar","funcCerrarModales","openConfirmacion","preventDefault","funcCancelarplan","cambiaCarreras","cambiaPlanes","cambiaPlanestudio","comprobarPlanN","arr_planes","forEach","element","ID_PLAN","DESCRIPCION_PLAN","CODIGO_PLAN","confirmarCambio","funcValidaciones","idValidacion","actualizarbarra","authorization","ID_VALIDACION","ID_PLAN_N","ID_PLAN_A","ID_NIVEL","idNivel","USUARIO","funcIud","ex","validado","idConsulta","ID_CONSULTA","ID_PLAN_ACTUAL","ID_NEW_PLAN","actualizarcircular","heightTableMainClases","filteringColumnExtensions","expandedRowIds","clasesHiddenColumnNames","rowsAlumnos","rowsPlanes","rowsPlanestudio","botonesConfirmarCambio","botonesHomologar","botonesCambiar","trowClases","TableRow","_ref","highlighted","rowIndex","selectByRowClick","odd","r","Table","Row","idSeccionCliente","clickSelectionClases","cursor","backgroundColor","trowClaseshomologar","_ref2","VirtualTable_cellComponent","TIENE_DESTINO","NOMBRE_COMPLETO","dense","replace","ID_CARRERA","DESCRIPCION_CARRERA","rowsCarreras","ID_PLAN_ESTUDIO","rowsCarrera","idCarrera","filaCarrera","disabled","open_eliminar","open_guardar","open_modificar","Autocomplete","options","getOptionLabel","option","paddingBottom","renderInput","params","getOptionSelected","loadingText","noOptionsText","renderOption","disableListWrap","autoHighlight","clearText","Grid","container","alignItems","xs","elevation","marginBottom","justifyContent","Avatar","src","Divider","ExpandMoreIcon","azul","ArrowForwardIosIcon","tablaCuotasRef","background","Selection","ChangeSelection","RowComponent","standarPlugin","TableRowsIndexer","showSelectionColumn","onClose","disableEnforceFocus","disableAutoFocus","dividers","Multiple","ShowItemNone","LabelItemNone","ValueItemNone","AutoFocus","SelectClass","logout"],"mappings":"qHAAA,+MAuBA,IAAIA,EAAO,IAAIC,IACXC,EAAY,GAEhB,IAAIC,EAAM,iEAAiEC,KAAKC,UAAUC,WAE1F,MAsCMC,EAAcJ,EAAyF,KAAjFK,OAAOC,OAAOC,OAASC,IAASC,MAAMC,WAAaF,IAASC,MAAME,aACxFC,EAAW,CACb,CAAEC,KAAM,eAAgBC,MAAO,gBAC/B,CAAED,KAAM,wBAAyBC,MAAO,kCACxC,CAAED,KAAM,UAAWC,MAAO,UAC1B,CAAED,KAAM,cAAeC,MAAO,YAE5BC,EAAmB,CACtB,CAAEC,WAAY,wBAAyBT,MAAoB,IAAbH,GAC9C,CAAEY,WAAY,UAAWT,MAAoB,IAAbH,EAAmBa,MAAO,UAC1D,CAAED,WAAY,eAAgBT,MAAO,GACr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E,eAAC6C,IAAa,CAACgN,UAAQ,EAAA/T,SAAA,CACrBkE,eAACqC,IAAU,CAACE,QAAQ,QAAQ7M,MAAM,SAAQoG,SAAA,CAAC,8CACAvD,KAAKW,MAAM+O,eAAe,aAAW1P,KAAKW,MAAMgP,YAAY,IAAE3P,KAAKW,MAAMiP,KAAK,YAASxM,cAAA,KAAAG,SAAIvD,KAAKW,MAAMuO,oBAAsB,OAEvK9L,cAACmT,IAAO,CAAC3O,MAAO,CAACmG,OAAO,KACxB3K,cAAC0G,IAAU,CAACE,QAAQ,QAAQ7M,MAAM,SAAQoG,SACxCH,cAAA,KAAAG,SAAG,yBAELH,cAAA,OAAKwE,MAAO,CAAChJ,UAAU,GAAG2E,SAC1BH,cAAC6E,IAAW,CACRC,QAASqF,EACTpF,KAAMnI,KAAKW,MAAMiO,oBACjBrG,yBAA0BqF,EAC1BlF,SAAUgF,EAGVhP,OAAQ,QACRqY,aAAc/W,KAAK8T,oBACnBkD,cAAe5T,cAAC6T,IAAgB,IAChCC,qBAAqB,EACrB7O,sBAAuBwF,EACvBvF,aAAcuF,EACdmG,2BAA4BhU,KAAKgU,kCAIvC5Q,cAACyI,IAAa,CAAAtI,SACZH,cAACsE,IAAY,CAACvB,QAASnG,KAAK6S,uBAAwB7M,EAAGhG,KAAKgG,EAAGC,EAAGjG,KAAKiG,EAAG9C,EAAGnD,KAAKmD,WAM7F,EA3RA,OA8R0B,IAAxBnD,KAAKW,MAAMuF,UACpBnK,EAAK8b,cACLtb,OAAOiG,SAASC,UAIX,IACT,G","file":"static/js/main~c5fe7792.b2ef9f74.chunk.js","sourcesContent":["import React from 'react';\r\nimport CustomTable from '../../components/CustomTable';\r\nimport {globales, colores, funciones} from '../../global';\r\nimport AuthService from '../../AuthService';\r\nimport Request from 'superagent';\r\nimport Paper from '@material-ui/core/Paper';\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport BarraBotones from '../../components/Barra_menu';\r\nimport {TableGroupRow } from '@devexpress/dx-react-grid-material-ui';\r\nimport Tooltip from '@material-ui/core/Tooltip';\r\nimport DialogTitle from '@material-ui/core/DialogTitle';\r\nimport Dialog from '@material-ui/core/Dialog';\r\nimport CloseIcon from '@material-ui/icons/Close';\r\nimport Typography from '@material-ui/core/Typography';\r\nimport DialogContent from '@material-ui/core/DialogContent';\r\nimport IconButton from '@material-ui/core/IconButton';\r\nimport Select from '../../components/Select';\r\nimport DialogActions from '@material-ui/core/DialogActions';\r\nimport TextField from '@material-ui/core/TextField';\r\nimport MenuItem from '@material-ui/core/MenuItem';\r\nimport Backdrop from '@material-ui/core/Backdrop';\r\nimport CircularProgress from '@material-ui/core/CircularProgress';\r\n\r\nlet Auth = new AuthService();\r\nlet tokenInfo = [];\r\n\r\nvar movil=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\n\r\nconst styles = theme => ({\r\n\r\nformControlSelect: {\r\n width: '100%', \r\n textAlign: 'left',\r\n},\r\ncloseButton: {\r\n position: 'absolute',\r\n right: theme.spacing(1),\r\n top: theme.spacing(1),\r\n color: theme.palette.grey[500],\r\n},\r\npaper: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: !movil ? '400px' : undefined, \r\n maxWidth: !movil ? '400px' : undefined,\r\n height: !movil ? '400px' : undefined, \r\n},\r\ntextField: {\r\n maxWidth: '100%',\r\n marginTop: theme.spacing(2), \r\n},\r\nformControl: {\r\n marginTop: theme.spacing(2), \r\n maxWidth: '100%',\r\n paddingTop: '0px' \r\n},\r\nbackdrop: {\r\n zIndex: 500000,\r\n color: '#fff', \r\n flexDirection: 'column'\r\n},\r\npaperConfirm: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: '320px', \r\n maxWidth: '320px', \r\n},\r\n});\r\nconst widthTable = !movil ? window.screen.width - (globales.tabla.marginleft + globales.tabla.marginright) : 1336;\r\nconst columns = [ \r\n { name: 'ID_CATEGORIA', title: 'ID_CATEGORIA' },\r\n { name: 'DESCRIPCION_CATEGORIA', title: 'Descripción de categoría' },\r\n { name: 'PUNTAJE', title: 'Puntos' },\r\n { name: 'NOMBRE_AREA', title: 'Área' }, \r\n ];\r\nconst columnExtensions = [\r\n { columnName: 'DESCRIPCION_CATEGORIA', width: widthTable * 0.75 },\r\n { columnName: 'PUNTAJE', width: widthTable * 0.09, align: 'center'},\r\n { columnName: 'ID_CATEGORIA', width: 0}, \r\n { columnName: 'NOMBRE_AREA', width: 0}, \r\n];\r\nconst grouping = [{ columnName: 'NOMBRE_AREA' }];\r\n\r\nconst RowId = row => row.ID_CATEGORIA;\r\nconst TableGroupRow_cellComponent = (areas, blockTooltip, onMouseEvents)=> (props) =>{\r\n const descripcion = areas.find(x => x.NOMBRE_AREA === props.tableRow.row.value);\r\n \r\n return (\r\n \r\n \r\n \r\n {props.tableRow.row.value}\r\n \r\n \r\n \r\n );\r\n \r\n}\r\n\r\nexport default withStyles(styles) ( \r\nclass App extends React.Component {\r\n\r\nareaRef = React.createRef();\r\ndescripcionRef = React.createRef();\r\npuntosRef = React.createRef();\r\ntablaRef = React.createRef();\r\nvtRef = React.createRef();\r\n\r\n constructor (props) {\r\n super(props);\r\n this.l=props.l\r\n this.e=props.e\r\n this.i=props.i\r\n this.state = {\r\n isLoggin : undefined,\r\n heightTableMain: 0,\r\n rows: [],\r\n isLoadingMain: true,\r\n expandedGroups: [],\r\n openModal: false,\r\n openModalConfirm: false,\r\n actionModal: 0, \r\n idRowSelected: null,\r\n datosSelectArea: null,\r\n selectedArea: '',\r\n openBackDrop: false,\r\n blockTooltip: false, \r\n };\r\n this.descripcion= null;\r\n this.puntos=null;\r\n this.NOMBRE_AREA=null; \r\n this.botones = [\r\n {icono: 'Add', toolt: 'Agregar categoría', nombre: 'Agregar' ,escritura:true, onclick: this.addEvent, display: 'auto'},\r\n {icono: 'Edit', toolt: 'Modificar categoría', nombre: 'Modificar' ,escritura:true, onclick: this.editEvent, display:'auto'},\r\n {icono: 'Delete', toolt: 'Eliminar categoría', nombre: 'Eliminar' ,escritura:true, onclick: this.deleteEvent, color: colores.naranja, display: 'auto'}, \r\n ];\r\n this.botones_agregar =[\r\n {icono: 'Save', toolt: '', nombre: 'Guardar', onclick: this.handleOK, display:'auto'},\r\n {icono: 'Close', toolt: '', nombre: 'Cerrar' , onclick: this.handleClose, display:'auto', color: 'red'},\r\n ];\r\n this.botones_eliminar =[\r\n {icono: 'Check', toolt: '', nombre: 'Aceptar', onclick: this.handleOK , display:'auto'},\r\n {icono: 'Close', toolt: '', nombre: 'Cerrar' ,onclick: this.handleCloseConfirm, display:'auto', color: 'red'},\r\n ];\r\n this.areas = [];\r\n}\r\n\r\nchangeExpandedGroups = expandedGroups =>\r\n{\r\n this.setState({ blockTooltip: true, expandedGroups });\r\n \r\n}\r\n\r\naddEvent = ()=>{\r\n \r\n this.descripcion = null;\r\n this.puntos = null;\r\n this.NOMBRE_AREA = null;\r\n this.setState({ selectedArea: '',\r\n actionModal: 1, \r\n openModal: true });\r\n\r\n}\r\n\r\neditEvent = ()=>{\r\n\r\n if (this.state.idRowSelected === null)\r\n return;\r\n \r\n const infoSelectedRow = this.state.rows.find(x => x.ID_CATEGORIA === this.state.idRowSelected); \r\n\r\n this.descripcion = infoSelectedRow.DESCRIPCION_CATEGORIA;\r\n this.puntos = parseInt(infoSelectedRow.PUNTAJE) === 0 ? '' : infoSelectedRow.PUNTAJE;\r\n this.NOMBRE_AREA = infoSelectedRow.NOMBRE_AREA;\r\n\r\n this.setState({ selectedArea: infoSelectedRow.ID_AREA,\r\n actionModal: 2, \r\n openModal: true\r\n });\r\n\r\n}\r\n\r\ndeleteEvent = ()=>{\r\n\r\nif (this.state.idRowSelected === null)\r\n return;\r\n \r\n this.setState({ actionModal: 3, \r\n openModalConfirm: true\r\n });\r\n\r\n}\r\n\r\nhandleClose = ()=>{\r\n\r\nthis.setState({ openModal: false });\r\n\r\n}\r\n\r\nhandleCloseConfirm = () =>{\r\n\r\n this.setState({ openModalConfirm: false });\r\n\r\n}\r\n\r\nobtenerAreas = ()=>{\r\n\r\nnew Request\r\n.get(`${globales.ip}/categorias_coprogramaticas/areas`)\r\n.set({'authorization': 'Bearer ' + Auth.getToken() })\r\n.retry(1)\r\n.timeout({ response: 15000, deadline: 30000, }) \r\n.end((err, res) => {\r\n \r\n if (err) { \r\n\r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n funciones.showToast('e', 'No hay conexión');\r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n\r\n if (rows.length > 0)\r\n { \r\n let datos = rows.map((item, i) =>{\r\n return {item.NOMBRE_AREA} \r\n });\r\n \r\n this.areas = rows;\r\n this.setState({ datosSelectArea: datos });\r\n\r\n }\r\n \r\n \r\n });\r\n\r\n}\r\n\r\nhandleChangeArea = (event)=>{\r\n\r\nthis.setState({ selectedArea: event.target.value });\r\n\r\n}\r\n\r\nhandleOK = ()=>{\r\n\r\nif (this.state.actionModal === 1 || this.state.actionModal === 2)\r\n{\r\n if (funciones.isEmpty(this.state.selectedArea))\r\n { \r\n this.areaRef.current.focus();\r\n funciones.showToast('w', 'Seleccione el área');\r\n return;\r\n }\r\n\r\n if (funciones.isEmpty(this.descripcionRef.current.value))\r\n {\r\n this.descripcionRef.current.focus();\r\n funciones.showToast('w', 'Ingrese la descripción');\r\n return;\r\n }\r\n\r\n if (funciones.isEmpty(this.puntosRef.current.value) || parseInt(this.puntosRef.current.value.trim())=== 0 || isNaN(parseInt(this.puntosRef.current.value.trim())))\r\n {\r\n this.puntosRef.current.focus();\r\n funciones.showToast('w', 'La cantidad de puntos debe ser mayor a cero');\r\n return;\r\n }\r\n\r\n}\r\n\r\nlet idCategoria = this.state.actionModal === 1 ? 0 : this.state.idRowSelected;\r\nlet idArea = this.state.actionModal === 3 ? 0 : this.state.selectedArea;\r\nlet descripcion = this.state.actionModal === 3 ? '-' : this.descripcionRef.current.value.trim();\r\nlet puntos= this.state.actionModal === 3 ? 1 : parseInt(this.puntosRef.current.value.trim());\r\n\r\nthis.setState({ openBackDrop: true, openModalConfirm: false }, ()=>{\r\n\r\nnew Request\r\n.post(`${globales.ip}/categorias_coprogramaticas/operaciones`)\r\n.set({'authorization': 'Bearer ' + Auth.getToken() })\r\n.set('Content-Type', 'application/json')\r\n.send({ tipo_proceso: this.state.actionModal, \r\n id_categoria: idCategoria, \r\n id_area: idArea, \r\n descripcion: descripcion, \r\n puntos: puntos, \r\n ad_usuario: tokenInfo.user })\r\n.retry(0)\r\n.timeout({ response: 15000, deadline: 30000, }) \r\n.end((err, res) => {\r\n \r\n if (err) { \r\n\r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n this.setState({ openBackDrop: false }, ()=> { \r\n funciones.showToast('e', 'No hay conexión'); \r\n });\r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n\r\n if (rows.length > 0) \r\n { \r\n if (rows[0].RESP === 'OK')\r\n { \r\n let row = this.state.actionModal === 3 ? [{ ID_CATEGORIA: rows[0].ID_CATEGORIA }] :\r\n [{ ID_CATEGORIA: rows[0].ID_CATEGORIA,\r\n DESCRIPCION_CATEGORIA: descripcion,\r\n PUNTAJE: puntos,\r\n ID_AREA: idArea,\r\n DESCRIPCION_AREA: this.areas.find(x => x.ID_AREA === idArea).DESCRIPCION,\r\n NOMBRE_AREA: this.areas.find(x => x.ID_AREA === idArea).NOMBRE_AREA\r\n }]; \r\n const newStructure = funciones.refreshTable(this.state.actionModal,\r\n this.state.rows,\r\n this.state.expandedGroups, \r\n row,\r\n 'ID_CATEGORIA',\r\n 'NOMBRE_AREA',\r\n this.NOMBRE_AREA\r\n );\r\n\r\n this.setState({ expandedGroups: newStructure.refreshGroups,\r\n rows: newStructure.refreshRows,\r\n idRowSelected: this.state.actionModal === 3 ? null : rows[0].ID_CATEGORIA,\r\n openBackDrop: false}, ()=>{\r\n\r\n if (this.state.actionModal === 3)\r\n {\r\n return funciones.showToast('s', 'Se ha eliminado la categoría');\r\n }\r\n\r\n if (movil && newStructure.moveScroll){ window.scrollTo(0, this.state.heightTableMain); }\r\n if (newStructure.moveScroll){ this.vtRef.current.scrollToRow(rows[0].ID_CATEGORIA); }\r\n\r\n funciones.showToast('s', this.state.actionModal === 1 ? 'Se ha registrado la categoría' : 'Se han registrado los cambios');\r\n this.handleClose();\r\n });\r\n }\r\n else\r\n {\r\n \r\n this.setState({ openBackDrop: false }, ()=>{ \r\n funciones.showToast('w', rows[0].RESP); \r\n }); \r\n \r\n }\r\n }\r\n \r\n });\r\n\r\n});\r\n\r\n\r\n\r\n}\r\n\r\nonEntering = ()=>{\r\n this.areaRef.current.focus(); \r\n}\r\n\r\nchangeFilters = filters => { \r\n\r\nif (this.state.idRowSelected !== null)\r\n this.setState({ idRowSelected: null });\r\n\r\n}\r\n\r\nhandleRowClick = (idRow) => event => {\r\n \r\n this.setState({ idRowSelected: idRow });\r\n \r\n}\r\n\r\nonMouseEvents = ()=>{\r\n\r\nif (this.state.blockTooltip)\r\n this.setState({ blockTooltip: false });\r\n\r\n}\r\n\r\nobtener_categorias = ()=>{\r\n\r\nnew Request\r\n .get(`${globales.ip}/categorias_coprogramaticas`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 15000, deadline: 30000, }) \r\n .end((err, res) => {\r\n \r\n if (err) { \r\n \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n this.setState({ isLoadingMain: false }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n });\r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n \r\n if (rows.length > 0)\r\n { \r\n this.setState({ rows: rows, isLoadingMain: false });\r\n }\r\n else\r\n {\r\n this.setState({ rows: [], isLoadingMain: false });\r\n } \r\n \r\n});\r\n\r\n}\r\n\r\ncomponentDidMount() { \r\n \r\ntokenInfo = Auth.getProfile(); //Token decodificado \r\n \r\nthis.setState({ isLoggin: tokenInfo.plataforma !== undefined ? true : false }, ()=>{ \r\n\r\n if (tokenInfo.plataforma === 1) // Usuario Admin\r\n { \r\n this.obtener_categorias(); \r\n }\r\n \r\n this.setState({ heightTableMain: funciones.getHeightTableMain(movil, this).heightTable }); \r\n this.obtenerAreas();\r\n\r\n});\r\n \r\n}\r\n\r\nrender() {\r\n\r\nconst { classes } = this.props; \r\n\r\n if (this.state.isLoggin === true)\r\n {\r\n return (\r\n \r\n \r\n \r\n {\r\n (() => {\r\n \r\n if (tokenInfo.plataforma === 1) //Si es Usuario Admin\r\n {\r\n \r\n return (\r\n \r\n \r\n
\r\n \r\n
\r\n\r\n \r\n Categoría\r\n \r\n \r\n \r\n \r\n \r\n