{"version":3,"sources":["global.js","index.js","login.js"],"names":["winHeight","parseInt","window","innerHeight","winWidth","innerWidth","getTime","strDate","outOption","_date","substr","_time","toString","padStart","formatCurrency","value","isEmpty","toLocaleString","minimumFractionDigits","undefined","trim","length","globales","ip","border_dialog","correo_soporte","redesSociales","facebook","twitter","instagram","tiktok","snapchat","youtube","linkedin","enlacesMenu","usap","admisiones","contactanos","campusVirtual","recorridoVirtual","sugerencias","claveApiGoogle","dominioCorreo","tabla","marginleft","marginright","marginleft_movil","marginright_movil","menu","url_moodle","colores","azul","azul_rgb","naranja","naranja_rgb","sombra","letra","degradado","color_icono_modulo","selection","encabezado","alternateColorRow1","alternateColorRow2","color_iconos","color_iconos_SL","color_iconos_SL_","color_disabled","color_inactive","pendientes_alumno","matricula","cuotas","toda_factura","usuario","like","funciones","getHeightTableMain","movil","_this","height","x","tablaRef","current","getBoundingClientRect","top","heightTable","heightScreen","getHeightTableDialog","refTable","refDialogAction","valSeparation","topTable","topDialogAction","onlyNumbers","ref","disabledZeroFirst","isValueNumber","decimal","ev","keyCode","which","key","includes","isNaN","preventDefault","splitWords","valueBegin","valueEnd","text","words","countValueBegin","arrayLastLetters","lettersTmp","j","push","k","refreshTable","process","currentRows","currentGroups","row","nameID","groupColumn1","oldLabelGroup1","groupColumn2","oldLabelGroup2","addRowTable","rows","__currentRows","filter","__currentRowsGroup","__currentRowsSubGroups","__currentRowsSubGroups_","concat","removeRowTable","id","labelGroup1","labelGroup2","Object","assign","__currentGroups","__moveScroll","find","tmpRows","map","item","refreshRows","refreshGroups","moveScroll","showToast","type","onClick","onHidden","test","navigator","userAgent","toastr","options","closeButton","newestOnTop","debug","onclick","timeOut","toLowerCase","showDuration","positionClass","info","success","warning","error","getDateSelect","date","getFullYear","getMonth","getDate","getTimeSelect","hours","minutes","meridian","dateFormated","tmpVal","getIdRowChecking","arrayTable","arrayState","index","getTimeParcial","dateDB","optionParcial","valueDefault","toUpperCase","hourTmp","substring","obtener_dia","dia","dia_palabra","obtener_mes","mes","mes_palabra","getDetailTime","strDates","strResp","day","split","replace","crearReciboPdf","factura","fechaPago","fecha","recibo","cuenta","nombre","plan","total","recibido","cambio","callback","doc","jsPDF","pageWidth","internal","pageSize","getWidth","y","setFont","setFontSize","_name","splitTextToSize","_plan","line","_descrip","DESCRIPCION","Simbolo","MONTO_TOTAL","save","String","autoPrint","variant","frame","document","getElementById","body","removeChild","hiddFrame","createElement","style","position","width","opacity","isSafari","onload","contentWindow","execCommand","e","print","src","output","appendChild","ReactDOM","render","_jsx","BrowserRouter","children","AppRoutesO","serviceWorker","currentUsuario","currentPassword","require","Copyright","_jsxs","Typography","color","align","Link","href","Date","withStyles","theme","React","Component","constructor","super","handleClick_1","this","setState","openBackDrop","state","password","loginGoogle","Auth_primero","login","then","res","mensaje","tmp2","ID_SUCURSAL","descrip_sucursal","DESCRIPCION_SUCURSAL","tokenGoo","directo_sin_modal","sucursales","Datos","datos","i","MenuItem","open","Auth","token","redirect","openDialoginternos","catch","err","clicklogueocorreo","clickOlvidastePass","async","openModalPass","handleClick_modal","handleChangeCuenta","event","target","handleChange","handleChange2","handleChangeSelect","forEach","item2","index2","label","cerrarModal","localStorage","removeItem","cerrarModalPass","cerrarDialogPass","openDialogPass","handleKeyPress","handleKeyPressPass","clickEnviarCorreoPass","cerrarDialoginternos","responseGoogleError","response","responseGoogleSuccess","consultaGoogle","Token","decode","credential","Email","email","Hd","hd","setItem","AuthService","AuthService_primero","alertas","cuentaDecrpt","showFields","showError","altoSlide","altoParaSlideLogin","altoLabel","altoToolbar","altoBotones","altoRedes","gridWidth","activeStep","preActiveStep","botonesSucursal","icono","toolt","escritura","display","botonesPass","botones_permisos","botones_internos","componentDidMount","classes","props","getItem","Redirect","to","pathname","from","MuiThemeProvider","background","className","Grid","container","spacing","alignItems","AppBar","Toolbar","Button","size","root","xs","Container","component","alt","CircularProgress","PersonOutlineOutlinedIcon","marginBottom","TextField","margin","required","fullWidth","name","defaultValue","autoFocus","onChange","onKeyPress","LockOutlinedIcon","Fab","textTransform","boxShadow","shadows","backgroundColor","Divider","marginTop","padding","GoogleOAuthProvider","clientId","GoogleLogin","shape","locale","onSuccess","onError","useOneTap","auto_select","select_account","fontWeight","QueryBuilder","fontSize","Build","Tooltip","title","IconButton","FacebookIcon","SvgIcon","viewBox","d","YouTubeIcon","InstagramIcon","borderRadius","Box","mt","paddingRight","Dialog","disableEnforceFocus","disableAutoFocus","paper","fullScreen","maxWidth","DialogTitle","DialogContent","textAlign","RoomOutlinedIcon","paddingLeft","Select","Label","Selected","Multiple","Style","ShowItemNone","LabelItemNone","ValueItemNone","AutoFocus","Outlined","SelectClass","DialogActions","BarraBotones","botones","DraftsOutlinedIcon","marginRight","marginLeft","justifyContent","PersonIcon","Backdrop"],"mappings":"mHAAA,mNAIA,MAAMA,EAAYC,SAASC,OAAOC,aAC5BC,EAAWH,SAASC,OAAOG,YA2C3BC,EAAUA,CAACC,EAASC,KAEzB,IAAIC,EAAQF,EAAQG,OAAO,EAAE,GAAK,IAAMH,EAAQG,OAAO,EAAE,GAAK,IAAMH,EAAQG,OAAO,EAAE,GACjFC,EAASV,SAASM,EAAQG,OAAO,GAAI,IAAM,IAAQT,SAASM,EAAQG,OAAO,GAAI,IAAM,IAAIE,WAAWC,SAAS,EAAG,GAAKN,EAAQG,OAAO,GAAI,GAAM,QAC5F,KAApCT,SAASM,EAAQG,OAAO,GAAI,IAAcH,EAAQG,OAAO,GAAI,GAAKH,EAAQG,OAAO,GAAI,GAAK,QACpD,IAApCT,SAASM,EAAQG,OAAO,GAAI,IAAa,KAAOH,EAAQG,OAAO,GAAI,GAAK,QAAUH,EAAQG,OAAO,GAAI,GAAK,QAE9H,OAAkB,IAAdF,EAEKC,EAEc,IAAdD,EAEAG,EAGFF,EAAQ,KAAOE,CAAK,EA4StBG,EAAkBC,GAElBC,EAAQD,GAAe,KAEpBA,EAAME,eAAe,QAAS,CAACC,sBAAuB,IAyBzDF,EAAWD,QAEDI,IAAVJ,GAAiC,OAAVA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K,IAAM,CACL3I,KAAMtB,KAAKG,MAAM8C,eACjBiH,qBAAmB,EACnBC,kBAAgB,EAChB,kBAAgB,2BAChB,mBAAiB,iCACjB5C,WAAW,EACX7B,QAAS,CAAE0E,MAAO1E,EAAQuE,QAAStL,SAAA,CAEnCO,gBAACsL,IAAa,CAAA7L,SAAA,CACZF,eAACU,IAAU,CAACE,MAAM,SAAQV,SAAEqB,KAAKG,MAAMiE,UACvC3F,eAAA,YAEFA,eAAC+M,IAAY,CAACC,QAASzL,KAAKuF,sBAE9BrG,gBAAC+K,IAAM,CAAC3I,KAAMtB,KAAKG,MAAMuB,mBAAoBwI,qBAAmB,EAACC,kBAAgB,EAAC5C,WAAW,EAAO+C,SAAS,KAAK5E,QAAS,CAAE0E,MAAO1E,EAAQuE,QAAStL,SAAA,CACnJF,eAAC8L,IAAW,CAAC1T,GAAG,+BAA8B8H,SAAC,mBAG/CO,gBAACsL,IAAa,CAAC9M,MAAO,CAAC2H,QAAQ,OAAOwG,eAAe,SAAStF,WAAW,SAASY,aAAa,IAAIxI,SAAA,CACjGF,eAACqN,IAAU,CAACpO,MAAO,CAAC0B,MAAM3N,IAAQC,KAAKia,YAAY,MACnDlN,eAACU,IAAU,CAACE,MAAM,SAAQV,SAAE,yCAC5BF,eAAA,YAEFA,eAAC+M,IAAY,CAACC,QAASzL,KAAKwF,sBAE9BtG,gBAAC6M,IAAQ,CAAC5F,UAAW,WAAY7E,KAAMtB,KAAKG,MAAMD,aAAavB,SAAA,CAC7DF,eAACwI,IAAgB,CAAC7H,MAAM,YACxBX,eAAA,QAAMf,MAAO,CAAE0K,UAAW,QAASzJ,SAAE,sBAI/C,G","file":"static/js/main~b07b7304.03a7d3cc.chunk.js","sourcesContent":["import toastr from 'toastr';\r\nimport 'toastr/build/toastr.min.css';\r\nimport jsPDF from 'jspdf';\r\n\r\nconst winHeight = parseInt(window.innerHeight);\r\nconst winWidth = parseInt(window.innerWidth);\r\n\r\nconst getHeightTableMain= (movil, _this)=>{\r\n\r\n const getHeight = ()=>{ \r\n \r\n if (!movil)\r\n return winHeight < window.innerHeight ? window.innerHeight : winHeight;\r\n else{ \r\n if (winHeight > winWidth)\r\n return winHeight;\r\n \r\n return winWidth;\r\n }\r\n\r\n }\r\n\r\n const height = getHeight();\r\n const x = height - _this.tablaRef.current.getBoundingClientRect().top - 5;\r\n \r\n if (!movil)\r\n return { heightTable: x, heightScreen: height };\r\n else \r\n return { heightTable: (x < 500) ? 500 : parseInt(x), heightScreen: height };\r\n\r\n}\r\n\r\nconst getHeightTableDialog=(movil, refTable, refDialogAction, valSeparation)=>{\r\n\r\n const topTable = refTable.current.getBoundingClientRect().top;\r\n const topDialogAction = refDialogAction.current.getBoundingClientRect().top + (winHeight - parseInt(window.innerHeight));\r\n valSeparation = valSeparation === undefined ? 10 : valSeparation;\r\n\r\n if (!movil)\r\n return parseInt(topDialogAction - topTable - valSeparation);\r\n \r\n if (winHeight > winWidth)\r\n return parseInt(topDialogAction - topTable - valSeparation);\r\n \r\n return parseInt(winWidth - topTable - 80);\r\n\r\n}\r\n\r\nconst getTime = (strDate, outOption)=>{\r\n\r\n let _date = strDate.substr(8,2) + '/' + strDate.substr(5,2) + '/' + strDate.substr(0,4);\r\n let _time = (parseInt(strDate.substr(11, 2)) > 12) ? (parseInt(strDate.substr(11, 2)) - 12).toString().padStart(2, 0) + strDate.substr(13, 3) + ' p.m.' :\r\n (parseInt(strDate.substr(11, 2)) === 12) ? strDate.substr(11, 2) + strDate.substr(13, 3) + ' p.m.' :\r\n (parseInt(strDate.substr(11, 2)) === 0) ? '12' + strDate.substr(13, 3) + ' a.m.' : strDate.substr(11, 5) + ' a.m.';\r\n \r\n if (outOption === 0)\r\n {\r\n return _date;\r\n }\r\n else if (outOption === 1)\r\n {\r\n return _time;\r\n }\r\n \r\n return _date + ', ' + _time;\r\n \r\n}\r\n\r\nconst onlyNumbers = (ref, disabledZeroFirst, isValueNumber, decimal) => (ev) =>\r\n{\r\n \r\n const keyCode = ev.which || ev.keyCode;\r\n const key = ev.key;\r\n \r\n if (isValueNumber && decimal && ref.current.value.length > 0 && !ref.current.value.includes('.') && key ==='.' && (keyCode === 110 || keyCode === 190))\r\n { \r\n return true;\r\n }\r\n\r\n if (isValueNumber && ref.current.value.length === 1 && parseInt(ref.current.value) === 0 && !isNaN(parseInt(key)))\r\n {\r\n ref.current.value = '';\r\n }\r\n\r\n \r\n if (disabledZeroFirst && ref.current.value.length === 0 && (keyCode === 48 || keyCode === 96))\r\n {\r\n ev.preventDefault();\r\n return false;\r\n }\r\n \r\n if (isNaN(parseInt(key)) && keyCode !== 8 && keyCode !== 9 && keyCode !== 46 && keyCode !== 37 && keyCode !== 39) //Excepciones: Tab, Backspace, Supr \r\n {\r\n ev.preventDefault();\r\n return false;\r\n }\r\n\r\n return true;\r\n\r\n}\r\n\r\nconst splitWords = (valueBegin, valueEnd, text)=>{\r\n\r\n let words = '';\r\n let countValueBegin = 0;\r\n let arrayLastLetters = [];\r\n let lettersTmp = '';\r\n \r\n for (let j = 0; j < text.length; j++)\r\n {\r\n if (text.substr(j, 1).trim().length === 0)\r\n {\r\n if (countValueBegin < valueBegin)\r\n {\r\n words = words + ' ';\r\n countValueBegin++;\r\n }\r\n else \r\n {\r\n arrayLastLetters.push(lettersTmp);\r\n lettersTmp = '';\r\n }\r\n \r\n }\r\n else if (countValueBegin < valueBegin)\r\n {\r\n words = words + text.substr(j, 1);\r\n }\r\n else \r\n {\r\n lettersTmp = lettersTmp + text.substr(j, 1);\r\n }\r\n \r\n if (j + 1 === text.length)\r\n {\r\n arrayLastLetters.push(lettersTmp);\r\n }\r\n \r\n }\r\n \r\n \r\n if (countValueBegin === valueBegin)\r\n {\r\n if (arrayLastLetters.length >= valueEnd)\r\n {\r\n words = arrayLastLetters.length > valueEnd ? words.trim() + '...' : words;\r\n \r\n for (let k=0; k{\r\n \r\n const addRowTable = (rows, row)=>{\r\n\r\n if (groupColumn1 !== undefined)\r\n { \r\n let __currentRows = rows.filter(x => x[groupColumn1] !== row[0][groupColumn1]);\r\n let __currentRowsGroup = rows.filter(x => x[groupColumn1] === row[0][groupColumn1]);\r\n\r\n if (groupColumn2 !== undefined)\r\n { \r\n let __currentRowsSubGroups = __currentRowsGroup.filter(x => x[groupColumn2] !== row[0][groupColumn2]);\r\n let __currentRowsSubGroups_ = __currentRowsGroup.filter(x => x[groupColumn2] === row[0][groupColumn2]);\r\n \r\n return __currentRows.concat(__currentRowsSubGroups).concat(__currentRowsSubGroups_).concat(row); \r\n \r\n }\r\n\r\n return __currentRows.concat(__currentRowsGroup).concat(row);\r\n\r\n }\r\n\r\n return rows.concat(row); \r\n }\r\n\r\n const removeRowTable = (id, nameID, rows) =>{\r\n\r\n return rows.filter(x => x[nameID] !== id);\r\n }\r\n\r\n let labelGroup1 = row[0][groupColumn1] === null ? 'null' : row[0][groupColumn1] === true ? 'true' : row[0][groupColumn1] === false ? 'false' : row[0][groupColumn1];\r\n let labelGroup2 = row[0][groupColumn2] === null ? 'null' : row[0][groupColumn2] === true ? 'true' : row[0][groupColumn2] === false ? 'false' : row[0][groupColumn2];\r\n let __currentRows = Object.assign([], currentRows);\r\n let __currentGroups = Object.assign([], currentGroups);\r\n let __moveScroll = false;\r\n\r\n if (process < 3 && labelGroup1 !== undefined && !__currentGroups.find(x => x === labelGroup1))\r\n {\r\n __currentGroups.push(labelGroup1);\r\n }\r\n\r\n if (process < 3 && labelGroup2 !== undefined && !__currentGroups.find(x => x === labelGroup1 + '|' + labelGroup2))\r\n {\r\n __currentGroups.push(labelGroup1 + '|' + labelGroup2);\r\n }\r\n\r\n if (process === 1)\r\n {\r\n __currentRows = addRowTable(currentRows, row);\r\n __moveScroll = true;\r\n }\r\n else if (process === 2)\r\n { \r\n let tmpRows = [];\r\n\r\n if (row[0][groupColumn1] === oldLabelGroup1 && row[0][groupColumn2] === oldLabelGroup2)\r\n {\r\n tmpRows = __currentRows.map((item)=>{ \r\n if (item[nameID] === row[0][nameID])\r\n { \r\n item = row[0];\r\n }\r\n return item;\r\n });\r\n \r\n __currentRows = tmpRows;\r\n }\r\n else\r\n {\r\n tmpRows = removeRowTable(row[0][nameID], nameID, currentRows);\r\n __currentRows = addRowTable(tmpRows, row);\r\n __moveScroll = true;\r\n }\r\n\r\n }\r\n else if (process === 3)\r\n {\r\n __currentRows = removeRowTable(row[0][nameID], nameID, currentRows);\r\n }\r\n \r\n return {refreshRows: __currentRows, refreshGroups: __currentGroups, moveScroll: __moveScroll }\r\n \r\n}\r\n\r\nconst showToast = (type, text, onClick, onHidden)=>\r\n{\r\n\r\nconst movil=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\n\r\ntoastr.options = {\r\n closeButton: true,\r\n newestOnTop: false,\r\n debug: false,\r\n onclick: onClick,\r\n onHidden: onHidden,\r\n timeOut: type.toLowerCase() === 's' ? 3000 : 18000,\r\n showDuration: 20,\r\n positionClass: movil ? \"toast-top-full-width\" : \"toast-top-right\" \r\n }\r\n\r\nswitch (type.toLowerCase()) { \r\n\r\n case 'i':\r\n toastr.info(text, 'Información');\r\n break;\r\n case 's':\r\n toastr.success(text, 'Correcto');\r\n break; \r\n case 'w':\r\n toastr.warning(text, 'Advertencia');\r\n break;\r\n case 'e':\r\n toastr.error(text, 'Error');\r\n break;\r\n default:\r\n break; \r\n}\r\n\r\n}\r\n\r\nconst getDateSelect = (date)=>{\r\n\r\n return date.getFullYear() + '-' + (date.getMonth() + 1).toString().padStart(2,\"0\") + '-' + date.getDate().toString().padStart(2,\"0\");\r\n\r\n}\r\n\r\nconst getTimeSelect = (hours, minutes, meridian, dateFormated) =>{\r\n\r\n const tmpVal = meridian === 1 ? parseInt(hours) < 12 ? (parseInt(hours) + 12).toString() : hours\r\n : parseInt(hours) === 12 ? '00' : hours;\r\n \r\n return dateFormated !== undefined ? dateFormated + 'T' + tmpVal + ':' + minutes + ':00.000'\r\n : tmpVal + ':' + minutes + ':00.000';\r\n \r\n}\r\n\r\nconst getIdRowChecking = (arrayTable, arrayState)=>{\r\n\r\n let value;\r\n \r\n if (arrayTable.length > arrayState.length)\r\n {\r\n \r\n arrayTable.map((item, index)=>{\r\n if (!arrayState.find(x => x === item))\r\n {\r\n value = item;\r\n }\r\n return item \r\n });\r\n \r\n }\r\n else if (arrayState.length > arrayTable.length)\r\n { \r\n arrayState.map((item, index)=>{\r\n if (!arrayTable.find(x => x === item))\r\n {\r\n value = item;\r\n }\r\n return item \r\n });\r\n \r\n }\r\n \r\n return value;\r\n \r\n}\r\n\r\nconst getTimeParcial =(dateDB, optionParcial, valueDefault)=>{\r\n\r\n if (dateDB === null || dateDB === undefined){\r\n return valueDefault !== undefined ? optionParcial.toUpperCase()===\"H\" ? valueDefault : \r\n optionParcial.toUpperCase()===\"M\" ? valueDefault :\r\n optionParcial.toUpperCase()===\"T\" ? valueDefault \r\n : null\r\n : null;\r\n }\r\n \r\n let hourTmp = parseInt(dateDB.toString().substring(11,13));\r\n \r\n if (optionParcial.toUpperCase()===\"H\")\r\n {\r\n return hourTmp > 12 ? (hourTmp - 12).toString().padStart(2,\"0\") : hourTmp === 0 ? '12' : hourTmp.toString().padStart(2,\"0\");\r\n }\r\n \r\n if (optionParcial.toUpperCase()===\"M\")\r\n {\r\n return dateDB.toString().substring(14,16);\r\n }\r\n \r\n if (optionParcial.toUpperCase()===\"T\")\r\n {\r\n return hourTmp >= 12 ? 1 : 0;\r\n }\r\n \r\n \r\n}\r\n\r\nconst formatCurrency = (value)=>{\r\n\r\n if (isEmpty(value)) return null;\r\n\r\n return value.toLocaleString('es-HN', {minimumFractionDigits: 2}); //{style: 'currency',currency: 'L', }\r\n \r\n}\r\n\r\nconst getDetailTime =(strDates)=>{\r\n\r\n let strResp = \"\";\r\n let day = null;\r\n let hours = [];\r\n \r\n strDates.split(\"/n\").map((item)=>{ \r\n \r\n day = item.substring(0,1);\r\n item = item.replace(\"(\", \"\").replace(\")\", \"\").substring(1, item.length - 1);\r\n hours = item.split(\".\");\r\n \r\n strResp = strResp + day + \" (\" + getTime(hours[0], 1) + \" - \" + getTime(hours[1], 1) + \")\\n\";\r\n \r\n return item;\r\n });\r\n \r\n return strResp;\r\n \r\n}\r\n\r\nconst isEmpty = (value)=>{\r\n\r\n if (value === undefined || value === null || value.toString().trim().length === 0){\r\n return true;\r\n }\r\n \r\n return false;\r\n \r\n}\r\n\r\nconst crearReciboPdf = (factura, fechaPago, fecha, recibo, cuenta, nombre, plan, rows, total, recibido, cambio, usuario, movil, callback)=>{\r\n var doc = new jsPDF('p', 'mm', [63.5, 210]); \r\n const pageWidth = doc.internal.pageSize.getWidth();\r\n let x = 8;\r\n let y= 8;\r\n\r\n doc.setFont(\"helvetica\");\r\n doc.setFontSize(8);\r\n doc.setFont(undefined, \"bold\");\r\n doc.text('Universidad de San Pedro Sula', pageWidth / 2, y, \"center\");\r\n y += 8;\r\n doc.setFontSize(7);\r\n doc.text('Fecha de pago', x, y);\r\n doc.setFont(undefined, \"normal\");\r\n doc.text(fechaPago, x + 20, y);\r\n y += 5;\r\n doc.setFont(undefined, \"bold\");\r\n doc.text('Fecha de impresión', x, y);\r\n doc.setFont(undefined, \"normal\");\r\n doc.text(fecha, x + 26, y);\r\n y += 5;\r\n doc.setFont(undefined, \"bold\");\r\n doc.text('Nº recibo', x, y);\r\n doc.setFont(undefined, \"normal\");\r\n doc.text(recibo, x + 14, y);\r\n y += 5;\r\n doc.setFont(undefined, \"bold\");\r\n doc.text('Cuenta', x, y);\r\n doc.setFont(undefined, \"normal\");\r\n doc.text(cuenta, x + 12, y);\r\n y += 5;\r\n doc.setFont(undefined, \"bold\");\r\n doc.text('Nombre', x, y);\r\n doc.setFont(undefined, \"normal\");\r\n const _name = doc.splitTextToSize(nombre, 38); \r\n doc.text(_name, x + 12, y);\r\n y += (5 + ((_name.length - 1) * 2.5)) //mm\r\n doc.setFont(undefined, \"bold\");\r\n doc.text('Plan', x, y);\r\n doc.setFont(undefined, \"normal\");\r\n const _plan = doc.splitTextToSize(plan, 42); \r\n doc.text(_plan, x + 8, y);\r\n y += (8 + ((_plan.length - 1) * 2.5)); \r\n doc.setFont(undefined, \"bold\");\r\n doc.text('Descripción', x, y);\r\n doc.text('Monto', x + 42, y);\r\n y += 2;\r\n doc.line(x, y, 57, y);\r\n y += 4;\r\n doc.setFont(undefined, \"normal\"); \r\n\r\n rows.map((item)=>{ \r\n const _descrip = doc.splitTextToSize(item.DESCRIPCION.trim(), 34); \r\n doc.text(_descrip, x, y);\r\n y += (_descrip.length - 1) * 3;\r\n doc.text(item.Simbolo + formatCurrency(item.MONTO_TOTAL), (pageWidth / 2) + 25, y, \"right\"); \r\n y += 4;\r\n return item;\r\n });\r\n\r\n doc.setFont(undefined, \"bold\");\r\n doc.line(x, y, 57, y);\r\n y += 4;\r\n doc.text('Total a pagar', (pageWidth / 2) + 3, y, \"right\");\r\n doc.text(total, (pageWidth / 2) + 25, y, \"right\");\r\n y += 3;\r\n doc.setFont(undefined, \"normal\");\r\n doc.text('Recibido', (pageWidth / 2) + 3, y, \"right\");\r\n doc.text(recibido, (pageWidth / 2) + 25, y, \"right\");\r\n y += 3;\r\n doc.text('Cambio', (pageWidth / 2) + 3, y, \"right\");\r\n doc.text(cambio, (pageWidth / 2) + 25, y, \"right\");\r\n y += 18;\r\n doc.setFont(undefined, \"bold\");\r\n doc.text(usuario, pageWidth / 2, y, \"center\");\r\n y += 3;\r\n doc.text('Departamento de Cobros', pageWidth / 2, y, \"center\");\r\n y += 5;\r\n doc.text(' ', pageWidth / 2, y, \"center\");\r\n\r\n if (movil){\r\n doc.save(\"USAP-Recibo-\" + String(factura)); \r\n callback();\r\n return;\r\n }\r\n\r\n doc.autoPrint({variant: \"non-conform\"});\r\n\r\n const frame = document.getElementById(\"iFram3Recib0\"); \r\n if (frame !== null)\r\n document.body.removeChild(frame);\r\n\r\n const hiddFrame = document.createElement(\"iframe\");\r\n hiddFrame.style.position = 'fixed';\r\n hiddFrame.style.width = '1px';\r\n hiddFrame.style.height = '1px';\r\n hiddFrame.style.opacity = '0.01'; \r\n hiddFrame.id = \"iFram3Recib0\";\r\n const isSafari = /^((?!chrome|android).)*safari/i.test(window.navigator.userAgent);\r\n if (isSafari) {\r\n // fallback in safari\r\n hiddFrame.onload = () => {\r\n try {\r\n hiddFrame.contentWindow.document.execCommand('print', false, null);\r\n } catch (e) {\r\n hiddFrame.contentWindow.print();\r\n }\r\n callback();\r\n };\r\n }\r\n else {\r\n hiddFrame.onload = callback;\r\n }\r\n hiddFrame.src = doc.output('bloburl'); \r\n document.body.appendChild(hiddFrame);\r\n \r\n}\r\n\r\nfunction obtener_dia(dia){\r\n var dia_palabra;\r\n switch (dia) {\r\n case 1: dia_palabra='Domingo'; break;\r\n case 2: dia_palabra='Lunes'; break;\r\n case 3: dia_palabra='Martes'; break;\r\n case 4: dia_palabra='Miércoles'; break;\r\n case 5: dia_palabra='Jueves'; break;\r\n case 6: dia_palabra='Viernes'; break;\r\n case 7: dia_palabra='Sábado'; break;\r\n default: break;\r\n }\r\n return dia_palabra;\r\n}\r\n\r\nfunction obtener_mes(mes){\r\n var mes_palabra;\r\n switch (mes) {\r\n case 1: mes_palabra='Enero'; break;\r\n case 2: mes_palabra='Febrero'; break;\r\n case 3: mes_palabra='Marzo'; break;\r\n case 4: mes_palabra='Abril'; break;\r\n case 5: mes_palabra='Mayo'; break;\r\n case 6: mes_palabra='Junio'; break;\r\n case 7: mes_palabra='Julio'; break;\r\n case 8: mes_palabra='Agosto'; break;\r\n case 9: mes_palabra='Septiembre'; break;\r\n case 10: mes_palabra='Octubre'; break;\r\n case 11: mes_palabra='Noviembre'; break;\r\n case 12: mes_palabra='Diciembre'; break;\r\n default: break;\r\n }\r\n return mes_palabra;\r\n}\r\n\r\nexport const globales={\r\n ip: 'https://melioris.usap.edu/api',//\r\n\r\n border_dialog: 10,\r\n correo_soporte:'soporteit@usap.edu',\r\n redesSociales:{\r\n facebook:'https://www.facebook.com/USAPhn',\r\n twitter:'https://twitter.com/usaphn',\r\n instagram:'https://www.instagram.com/usaphn',\r\n tiktok :'https://www.tiktok.com/@usaphn',\r\n snapchat:'',\r\n youtube:'https://www.youtube.com/user/USAPhn',\r\n linkedin:'https://www.linkedin.com/school/universidad-de-san-pedro-sula/?viewAsMember=true',\r\n },\r\n enlacesMenu:{\r\n usap:'http://www.usap.edu/',\r\n admisiones:'https://admision.usap.edu',//'https://melioris.usap.edu/admision',//'http://172.21.12.187:3000/admision',//'http://pruebasiga.usap.edu/admision',//'http://172.21.10.18:3000/admision',\r\n contactanos:'https://www.usap.edu/contacto',\r\n campusVirtual:'https://virtual.usap.edu/',\r\n recorridoVirtual:'https://www.usap.edu/estudiantes/instalaciones/',\r\n sugerencias:'https://docs.google.com/forms/d/e/1FAIpQLSfoteSG1xDmW5RmqEzkyRjku6JrLkRWDEa--NAMx7CnUm24Dg/viewform',\r\n },\r\n claveApiGoogle:'752569011321-pqgqi3kocsj05cqsm4022ma5g06sbkva.apps.googleusercontent.com',//'453604797969-ucs2fvgbgnqf4p05cler0qg7a9a3f4fn.apps.googleusercontent.com',\r\n dominioCorreo: '@usap.edu',\r\n //FLEMUS END\r\n tabla:{\r\n marginleft: 15,\r\n marginright:15,\r\n marginleft_movil:5,\r\n marginright_movil:5,\r\n },\r\n menu:{\r\n url_moodle: 'https://virtual.usap.edu/login'\r\n },\r\n}\r\nexport const colores={\r\n azul: '#00336A',//'#0057B7',\r\n azul_rgb: '0,51,106', //'0,87,183',\r\n naranja: '#ff7300',\r\n naranja_rgb: '255,115,0',\r\n menu:{\r\n sombra:'252,239,227',\r\n letra:'#ff7300',\r\n degradado:'1',\r\n\tcolor_icono_modulo: 'rgba(0,51,106,0.8)',//'#DC9554',\r\n },\r\n tabla:{\r\n selection:'224, 224, 235, 0.9',\r\n encabezado: '#00336A',//'#0057B7', //'0,87,183,1',\r\n\t alternateColorRow1:'#EBF5FB',\r\n alternateColorRow2:'white',\r\n color_iconos: 'white',\r\n\t color_iconos_SL: '#bdbdbd',\r\n color_iconos_SL_: '#f8d210',\r\n },\r\n color_disabled: '#bdbdbd',\r\n color_inactive: '#808080',\r\n}\r\n\r\nexport var pendientes_alumno={\r\n matricula: null,\r\n cuotas: null,\r\n toda_factura:null,\r\n}\r\n\r\nexport var usuario={\r\n like: null,\r\n}\r\n\r\nexport const funciones = {\r\n getHeightTableMain,\r\n getHeightTableDialog,\r\n getTime,\r\n onlyNumbers,\r\n splitWords,\r\n refreshTable,\r\n showToast,\r\n getDateSelect,\r\n getTimeSelect,\r\n getIdRowChecking,\r\n getTimeParcial,\r\n obtener_dia,\r\n obtener_mes,\r\n formatCurrency,\r\n getDetailTime,\r\n isEmpty,\r\n crearReciboPdf,\r\n}\r\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport AppRoutesO from './Router';\nimport {BrowserRouter} from 'react-router-dom' \nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(, document.getElementById('root'));\n\n\nserviceWorker.unregister();\n","import React from \"react\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport AuthService from \"./AuthService\";\r\nimport AuthService_primero from \"./AuthService_primero\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Link from \"@material-ui/core/Link\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport Select from \"./components/Select\";\r\nimport { withStyles } from \"@material-ui/core/styles\";\r\nimport { colores, globales, funciones } from \"./global\";\r\nimport { MuiThemeProvider } from \"@material-ui/core/styles\";\r\nimport decode from 'jwt-decode';\r\n//import Request from \"superagent\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport BarraBotones from \"./components/Barra_menu\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport PersonIcon from \"@material-ui/icons/Security\";\r\nimport Build from '@material-ui/icons/BuildRounded';\r\nimport QueryBuilder from '@material-ui/icons/QueryBuilderRounded';\r\nimport { GoogleOAuthProvider } from '@react-oauth/google' ;\r\nimport {GoogleLogin } from \"@react-oauth/google\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\nimport Backdrop from \"@material-ui/core/Backdrop\";\r\nimport AppBar from \"@material-ui/core/AppBar\";\r\nimport Toolbar from \"@material-ui/core/Toolbar\";\r\nimport SvgIcon from '@material-ui/core/SvgIcon';\r\nimport FacebookIcon from \"@material-ui/icons/Facebook\";\r\nimport InstagramIcon from \"@material-ui/icons/Instagram\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport PersonOutlineOutlinedIcon from \"@material-ui/icons/PersonOutlineOutlined\";\r\nimport LockOutlinedIcon from \"@material-ui/icons/LockOutlined\";\r\nimport Fab from \"@material-ui/core/Fab\";\r\n/*import SwipeableViews from \"react-swipeable-views\";\r\nimport { autoPlay } from \"react-swipeable-views-utils\";\r\nimport MobileStepper from \"@material-ui/core/MobileStepper\";\r\nimport KeyboardArrowLeft from \"@material-ui/icons/KeyboardArrowLeft\";\r\nimport KeyboardArrowRight from \"@material-ui/icons/KeyboardArrowRight\";*/\r\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\r\nimport DialogActions from \"@material-ui/core/DialogActions\";\r\nimport RoomOutlinedIcon from \"@material-ui/icons/RoomOutlined\";\r\nimport DraftsOutlinedIcon from \"@material-ui/icons/DraftsOutlined\";\r\nimport YouTubeIcon from \"@material-ui/icons/YouTube\";\r\nimport './CSS/Style_login.css';\r\nimport {theme} from './themeMui_login';\r\n\r\nvar movil =/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\nlet currentUsuario = null;\r\nlet currentPassword = null;\r\nvar unixTime = require('unix-time');\r\n//var time = unixTime(new Date()); \r\n\r\nfunction Copyright() {\r\n return (\r\n \r\n {\"Copyright © \"}\r\n \r\n Melioris\r\n {\" \"}\r\n {new Date().getFullYear()}\r\n {\" - Honduras - Términos y Servicios\"}\r\n {\".\"}\r\n \r\n );\r\n}\r\n\r\nconst useStyles = (theme) => ({});\r\n\r\nexport default withStyles(useStyles)(\r\n class Login extends React.Component {\r\n constructor() {\r\n super();\r\n this.Auth = new AuthService();\r\n this.Auth_primero = new AuthService_primero();\r\n this.state = {\r\n redirect: false,\r\n usuario: \"\",\r\n password: \"\",\r\n sucursales: [],\r\n selection: \"\",\r\n descrip_sucursal: [],\r\n datos: [],\r\n open: false,\r\n openModalPass: false,\r\n cuenta: \"\",\r\n openDialogPass: false,\r\n openDialoginternos: false,\r\n alertas: \"\",\r\n cuentaDecrpt: \"\",\r\n openBackDrop: false,\r\n showFields: true,// se cambio a true\r\n showError: false,\r\n loginGoogle: 1,\r\n consultaGoogle: false,\r\n altoSlide: 0,\r\n altoParaSlideLogin: 0,\r\n altoLabel: 0,\r\n altoToolbar: 0,\r\n altoBotones: 0,\r\n altoRedes: 0,\r\n gridWidth: 0,\r\n activeStep: 0,\r\n preActiveStep: 0,\r\n tokenGoo: ''\r\n };\r\n\r\n const botonesSucursal = [\r\n {icono: \"Add\",toolt: \"Seleccionar Sucursal\",nombre: \"Seleccionar\",escritura: true, onclick: this.handleClick_modal,display: \"auto\",},\r\n {icono: \"Close\",toolt: \"Cancelar\",nombre: \"Cancelar\",escritura: true,onclick: this.cerrarModal,color: \"red\",display: \"auto\",},\r\n ];\r\n const botonesPass = [\r\n {icono: \"Add\",toolt: \"Enviar Correo\",nombre: \"Enviar Correo\",escritura: true,onclick: this.clickEnviarCorreoPass,display: \"auto\",},\r\n {icono: \"Close\",toolt: \"Cancelar\",nombre: \"Cancelar\",escritura: true,onclick: this.cerrarModalPass,color: \"red\",display: \"auto\",},\r\n ];\r\n const botones_permisos = [\r\n {icono: \"Like\",toolt: \"Entendido\",nombre: \"entendido\",onclick: this.cerrarDialogPass,display: \"auto\",},\r\n ];\r\n const botones_internos = [\r\n {icono: \"Close\",toolt: \"Cerrar\",nombre: \"Cerrar\",onclick: this.cerrarDialoginternos,display: \"auto\",color: 'red',},\r\n ];\r\n\r\n this.botonesSucursal=botonesSucursal\r\n this.botonesPass=botonesPass\r\n this.botones_permisos=botones_permisos\r\n this.botones_internos=botones_internos\r\n } //FIN CONSTRUCTOR\r\n\r\n componentDidMount() {\r\n /* let _this = this;\r\n\r\n try {\r\n new Request.post(`${globales.ip}/tipoLogin`)\r\n .set(\"Content-Type\", \"application/json\")\r\n .retry(0)\r\n //.timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) \r\n {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") \r\n {\r\n funciones.showToast(\"e\", \"Error forbidden\");\r\n _this.setState({showError: true,});\r\n return;\r\n } \r\n else if (err.toString() === \"Error: Response timeout of 15000ms exceeded\") \r\n {\r\n funciones.showToast(\"e\",\"Error en la comunicación con el servidor\");\r\n _this.setState({showError: true,});\r\n return;\r\n }\r\n funciones.showToast(\"e\", \"Error de conexión\");\r\n }\r\n\r\n const rows = JSON.parse([{VALOR: 0}]);\r\n\r\n if(rows[0].VALOR===null)\r\n {\r\n this.setState({loginGoogle: null,showFields: true,});\r\n }\r\n else\r\n if (rows.length > 0) {\r\n if (rows[0].VALOR === \"0\") {\r\n this.setState({loginGoogle: 0,showFields: true,});\r\n } else if (rows[0].VALOR === \"1\") {\r\n this.setState({loginGoogle: 1,showFields: true,});\r\n } else {\r\n funciones.showToast(\"e\", \"Error en la lectura del response\");\r\n }\r\n }\r\n\r\n });\r\n } catch (ex) {\r\n funciones.showToast(\"e\", \"Error de conexión\");\r\n _this.setState({ validado: true });\r\n }*/\r\n }\r\n\r\n handleClick_1 = () => {\r\n let _this = this;\r\n _this.setState({ openBackDrop: true }, () => {\r\n if ((currentUsuario !== \"\" && currentPassword!==\"\") || (_this.state.usuario !== \"\" && _this.state.password !== \"\") ||_this.state.loginGoogle === 1) \r\n {\r\n _this.Auth_primero.login(currentUsuario,currentPassword)\r\n .then( (res) => {\r\n if (res.mensaje !== \"Authentication_Failed\") {\r\n const tmp2 = res;\r\n if (tmp2.length === 1) \r\n {\r\n _this.setState({selection: tmp2[0].ID_SUCURSAL,descrip_sucursal: tmp2[0].DESCRIPCION_SUCURSAL,tokenGoo: ''});\r\n \r\n _this.directo_sin_modal('');\r\n } \r\n else if (tmp2.length > 0) \r\n {\r\n this.setState({ sucursales: tmp2,tokenGoo: '', selection: [] });\r\n\r\n let Datos = _this.state.sucursales.map((datos, i) => {\r\n return (\r\n \r\n {datos.DESCRIPCION_SUCURSAL}\r\n \r\n );\r\n });\r\n\r\n _this.setState({datos: Datos,});\r\n\r\n if (tmp2.length > 1) \r\n {\r\n this.setState({ openBackDrop: false }, () => {this.setState({ open: true });});\r\n } \r\n else \r\n {\r\n funciones.showToast(\"e\", \"Error de conexión\");\r\n _this.setState({selection: tmp2[0].ID_SUCURSAL,descrip_sucursal: tmp2[0].DESCRIPCION_SUCURSAL,});\r\n\r\n _this.Auth.login('',currentUsuario,currentPassword,_this.state.selection,_this.state.descrip_sucursal\r\n ).then((res) => {\r\n \r\n if(res.token!=='INTERNO')\r\n (async function () {\r\n _this.setState({ redirect: true });\r\n })();\r\n else\r\n (async function () {\r\n _this.setState({ openDialoginternos: true,openBackDrop: false});\r\n })();\r\n })\r\n .catch((err) => {\r\n _this.setState({ openBackDrop: false});\r\n });\r\n }\r\n }\r\n } \r\n else \r\n {\r\n _this.setState({ openBackDrop: false }, () => {\r\n funciones.showToast(\"w\",\"Nombre de usuario o contraseña incorrecto\");\r\n });\r\n }\r\n }).catch((err) => {\r\n _this.setState({ openBackDrop: false});\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n funciones.showToast(\"e\", \"Ingrese usuario y/o contraseña\");\r\n });\r\n }\r\n });\r\n };\r\n\r\n clicklogueocorreo=(tokenGoo)=>{\r\n let _this = this;\r\n _this.setState({ openBackDrop: true }, () => {\r\n if ((currentUsuario !== \"\" && currentPassword!==\"\") || (_this.state.usuario !== \"\" && _this.state.password !== \"\") ||_this.state.loginGoogle === 1) \r\n {\r\n _this.Auth_primero.login(currentUsuario,currentPassword)\r\n .then( (res) => {\r\n\r\n if (res.mensaje !== \"Authentication_Failed\") {\r\n const tmp2 = res;\r\n if (tmp2.length === 1) \r\n {\r\n _this.setState({selection: tmp2[0].ID_SUCURSAL,descrip_sucursal: tmp2[0].DESCRIPCION_SUCURSAL,tokenGoo:tokenGoo});\r\n _this.directo_sin_modal(tokenGoo);\r\n } \r\n else if (tmp2.length > 0) \r\n {\r\n this.setState({ sucursales: tmp2,tokenGoo:tokenGoo, selection: [] });\r\n\r\n let Datos = _this.state.sucursales.map((datos, i) => {\r\n return (\r\n \r\n {datos.DESCRIPCION_SUCURSAL}\r\n \r\n );\r\n });\r\n\r\n _this.setState({datos: Datos,});\r\n\r\n if (tmp2.length > 1) \r\n {\r\n this.setState({ openBackDrop: false }, () => {this.setState({ open: true });});\r\n } \r\n else \r\n {\r\n funciones.showToast(\"e\", \"Error de conexión\");\r\n _this.setState({selection: tmp2[0].ID_SUCURSAL,descrip_sucursal: tmp2[0].DESCRIPCION_SUCURSAL,});\r\n\r\n _this.Auth.login(tokenGoo,currentUsuario,currentPassword,_this.state.selection,_this.state.descrip_sucursal\r\n ).then((res) => {\r\n \r\n if(res.token!=='INTERNO')\r\n (async function () {\r\n _this.setState({ redirect: true });\r\n })();\r\n else\r\n (async function () {\r\n _this.setState({ openDialoginternos: true,openBackDrop: false});\r\n })();\r\n })\r\n .catch((err) => {\r\n _this.setState({ openBackDrop: false});\r\n });\r\n }\r\n }\r\n } \r\n else \r\n {\r\n _this.setState({ openBackDrop: false }, () => {\r\n funciones.showToast(\"w\",\"Nombre de usuario o contraseña incorrecto\");\r\n });\r\n }\r\n }).catch((err) => {\r\n _this.setState({ openBackDrop: false});\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n funciones.showToast(\"e\", \"Ingrese usuario y/o contraseña\");\r\n });\r\n }\r\n });\r\n }\r\n\r\n clickOlvidastePass = async () => {\r\n let _this = this;\r\n _this.setState({ openModalPass: true });\r\n };\r\n\r\n directo_sin_modal = (tokenGoo) => {\r\n let _this = this;\r\n\r\n _this.setState({ openBackDrop: true }, () => {\r\n if (_this.state.selection.length !== 0 && _this.state.selection !== \"\") \r\n {\r\n _this.Auth.login(tokenGoo,currentUsuario,currentPassword,_this.state.selection,_this.state.descrip_sucursal)\r\n .then((res) => {\r\n\r\n if(res.token==='Authentication_Failed'){\r\n funciones.showToast(\"w\", \"Error de autenticación\");\r\n _this.setState({ openBackDrop: false });\r\n return;\r\n }\r\n\r\n if(res.token==='Not_information'){\r\n funciones.showToast(\"w\", \"Usuario sin acceso\");\r\n _this.setState({ openBackDrop: false });\r\n return;\r\n }\r\n \r\n if(res.token!=='INTERNO')\r\n (async function () {\r\n _this.setState({ redirect: true });\r\n })();\r\n else\r\n (async function () \r\n {\r\n _this.setState({ openDialoginternos: true,openBackDrop: false, open:false });\r\n })();\r\n })\r\n .catch((err) => {\r\n _this.setState({ openBackDrop: false }, () => {funciones.showToast(\"w\", \"Error de autenticación\");});\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n funciones.showToast(\"w\", \"Seleccione sucursal\");\r\n });\r\n }\r\n });\r\n };\r\n\r\n handleClick_modal = () => {\r\n let _this = this;\r\n //backdrop DE SUCURSALES\r\n _this.setState({ openBackDrop: true }, () => {\r\n if (_this.state.selection.length !== 0 && _this.state.selection !== \"\") \r\n {\r\n _this.Auth.login(this.state.tokenGoo,currentUsuario,currentPassword,_this.state.selection,_this.state.descrip_sucursal)\r\n .then((res) => {\r\n if(res.token==='Not_information'){\r\n funciones.showToast(\"w\", \"Usuario sin acceso\");\r\n _this.setState({ openBackDrop: false });\r\n return;\r\n }\r\n \r\n if(res.token!=='INTERNO')\r\n (async function () {\r\n _this.setState({ redirect: true });\r\n })();\r\n else\r\n (async function () \r\n {\r\n _this.setState({ openDialoginternos: true,openBackDrop: false, open:false });\r\n })();\r\n\r\n }).catch((err) => {\r\n _this.setState({ openBackDrop: false }, () => {funciones.showToast(\"e\", \"Error de conexión\");});\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n funciones.showToast(\"w\", \"Seleccione sucursal\");\r\n });\r\n }\r\n });\r\n };\r\n\r\n handleChangeCuenta = (event) => {\r\n this.setState({ cuenta: event.target.value });\r\n };\r\n\r\n handleChange = (event) => {\r\n currentUsuario=event.target.value;\r\n };\r\n\r\n handleChange2 = (event) => {\r\n currentPassword=event.target.value;\r\n };\r\n\r\n handleChangeSelect = (event) => {\r\n var descrip_sucursal;\r\n this.state.datos.forEach(function getCheck(item2, index2) {\r\n if (item2.value === event.target.value) descrip_sucursal = item2.label;\r\n });\r\n this.setState({selection: event.target.value,descrip_sucursal: descrip_sucursal,});\r\n };\r\n cerrarModal = (event) => {\r\n this.setState({ open: false });\r\n localStorage.removeItem(\"id_token\");\r\n localStorage.removeItem(\"usuario\");\r\n };\r\n cerrarModalPass = (event) => {\r\n this.setState({ openModalPass: false });\r\n };\r\n cerrarDialogPass = (event) => {\r\n this.setState({ openDialogPass: false });\r\n };\r\n\r\n handleKeyPress = (event) => {\r\n if (event.key === \"Enter\") {\r\n this.handleClick_1();\r\n }\r\n };\r\n\r\n handleKeyPressPass = (event) => {\r\n if (event.key === \"Enter\") {\r\n this.clickEnviarCorreoPass();\r\n }\r\n };\r\n\r\n cerrarDialoginternos=()=>{this.setState({openDialoginternos:false,redirect:false})}\r\n\r\n responseGoogleError = (response) => {\r\n let _this = this;\r\n\r\n if (_this.state.loginGoogle === 1) {\r\n funciones.showToast('e',\"Error en la comunicación con Google\");\r\n }\r\n };\r\n\r\n \r\n /** FUNCION PARA VALIDAR EL RESPONSE DE GOOGLE **/\r\n responseGoogleSuccess = (response) => {\r\n let _this = this;\r\n\r\n _this.setState({ openBackDrop: true, consultaGoogle: true }, () => {\r\n\r\n const Token=decode(response.credential)\r\n let Email=Token.email\r\n let Hd=Token.hd\r\n let usuario=Email.replace('@'+Hd,'')\r\n\r\n if ((\"@\" + Hd).toLowerCase() === globales.dominioCorreo) \r\n {\r\n currentUsuario=usuario//arregloDeSubCadenas[0];\r\n _this.setState({openBackDrop: false,consultaGoogle: false,usuario: usuario,},\r\n ()=>{ \r\n localStorage.setItem('tokeengoogle',response.credential)\r\n _this.clicklogueocorreo(response.credential);\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false, consultaGoogle: false },\r\n () => {\r\n funciones.showToast(\"e\",\"@\" +Hd+\"; No es un correo USAP\");\r\n }\r\n );\r\n }\r\n });\r\n };\r\n\r\n render() {\r\n const { classes } = this.props;\r\n const { redirect } = this.state;\r\n const { activeStep } = this.state;\r\n\r\n //var element = document.getElementById('myframelogout') \r\n /*if(element!==null)\r\n {\r\n setTimeout(() => {element.remove();}, 5000);\r\n }*/\r\n\r\n //this.getParamsUrl();\r\n if (redirect === true || (localStorage.getItem('id_token')!==null && localStorage.getItem('id_token')!=='Authentication_Failed' && localStorage.getItem('id_token')!=='Not_information' )) {\r\n return ;\r\n } \r\n else {\r\n //this.Auth.logout();\r\n localStorage.removeItem('id_token');\r\n localStorage.removeItem('usuario');\r\n localStorage.removeItem('estado_menu');\r\n\t localStorage.removeItem('Tabs_user');\r\n }\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n {!movil ? (\r\n \r\n ) : null}\r\n {!movil ? (\r\n \r\n ) : null}\r\n {!movil ? (\r\n \r\n ) : null}\r\n {!movil ? (\r\n \r\n ) : null}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n {\"USAP\"}/\r\n
\r\n {!this.state.showFields ?\r\n
\r\n {\r\n !this.state.showError ?\r\n
\r\n \r\n
\r\n :null\r\n }\r\n {\r\n this.state.showError ?\r\n
\r\n Error de servidor\r\n
\r\n :null\r\n }\r\n
\r\n :null\r\n }\r\n\r\n {this.state.showFields?\r\n
\r\n {this.state.loginGoogle === 0 ?\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\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n Entrar\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n {true===false?\r\n \r\n \r\n \r\n ¿Olvidaste la contraseña?\r\n \r\n \r\n \r\n :null\r\n }\r\n
\r\n :null\r\n }\r\n
\r\n {\r\n this.state.loginGoogle === 1 ?\r\n
\r\n \r\n \r\n \r\n
\r\n :null\r\n }\r\n {\r\n this.state.loginGoogle === null ?
La plataforma esta en Mantenimiento
:null\r\n }\r\n
\r\n \r\n window.open(globales.redesSociales.facebook)} size=\"small\" className=\"boton-redes\">\r\n \r\n \r\n \r\n \r\n window.open(globales.redesSociales.twitter)} size=\"small\" className=\"boton-redes\">\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n window.open(globales.redesSociales.youtube)} size=\"small\" className=\"boton-redes\">\r\n \r\n \r\n \r\n \r\n window.open(globales.redesSociales.instagram)} size=\"small\" className=\"boton-redes\">\r\n \r\n \r\n \r\n \r\n window.open(globales.redesSociales.tiktok)} size=\"small\" className=\"boton-redes\">\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n :null\r\n }\r\n
\r\n
\r\n {!movil?\r\n \r\n \r\n \r\n :null}\r\n
\r\n {movil?null:\r\n \r\n
\r\n {'imagenlogin'}\r\n
\r\n
\r\n }\r\n
\r\n
\r\n \r\n \r\n Seleccione una Sucursal\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\n\r\n \r\n \r\n Ingrese su Número de Cuenta\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\n\r\n \r\n \r\n {this.state.alertas}\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n Información\r\n \r\n \r\n \r\n {'Su usuario solo es para uso interno.'}\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n {\"Cargando...\"}\r\n \r\n
\r\n );\r\n }\r\n }\r\n);"],"sourceRoot":""}