/* Minification failed. Returning unminified contents. (17,46-47): run-time error JS1195: Expected expression: ) (17,49-50): run-time error JS1195: Expected expression: > (19,1-2): run-time error JS1002: Syntax error: } (23,1-2): run-time error JS1002: Syntax error: } (25,24-25): run-time error JS1195: Expected expression: ) (25,27-28): run-time error JS1195: Expected expression: > (32,1-2): run-time error JS1002: Syntax error: } (37,1-2): run-time error JS1002: Syntax error: } (138,52-53): run-time error JS1004: Expected ';': { (155,30-31): run-time error JS1100: Expected ',': = (172,29-30): run-time error JS1100: Expected ',': = (189,24-25): run-time error JS1100: Expected ',': = (244,18-19): run-time error JS1014: Invalid character: ` (244,19-20): run-time error JS1195: Expected expression: < (244,53-54): run-time error JS1197: Too many errors. The file might not be a JavaScript file: $ (236,1-38): run-time error JS1301: End of file encountered before function is properly closed: function doMailConfirmEmail(Name) (244,81-82): run-time error JS1195: Expected expression: < (244,82-83): run-time error JS1197: Too many errors. The file might not be a JavaScript file: / */ const siteRoot = '/'; const SiteLocalization = window.location.host.indexOf('.com.br') > 0 ? '.br' : ''; const Ax5Site = 'http://axeso5.futbolgratis.org' + SiteLocalization; const billingSite = 'https://billing.axeso5.futbolgratis.org' + SiteLocalization; const mainSiteRoot = 'https://axeso5.futbolgratis.org' + SiteLocalization + '/'; const authRoot = 'https://registro.axeso5.futbolgratis.org' + SiteLocalization + '/'; const AuthServicesUrl = authRoot + 'ajaxService/Service.ashx'; const RegServicesUrl = authRoot + 'ajaxService/regService.ashx'; const inviterRedirectDomain = 'https://axeso5.futbolgratis.org'; const CommunityServices = 'https://communityservices.axeso5.futbolgratis.org'; const cookieDomain = '.axeso5.futbolgratis.org' + SiteLocalization; const Action = 'mainsite-'; const Ax5GClientId = '440763772590-4aaosahfe4756da2kp7hsr97s1s1ds65.apps.googlecontent.com'; //Prod AX5; 'use strict'; //CHECK VIEWPORT window.addEventListener('DOMContentLoaded', () => { checkViewPort(); }); window.addEventListener('resize', () => { checkViewPort(); }); const checkViewPort = () => { const mainContainer = document.getElementById('mainContainer'); if (mainContainer.offsetHeight + 400 < window.innerHeight) { mainContainer.classList.add('max-view-height'); } else { mainContainer.classList.remove('max-view-height'); } }; //PREVENT DRAG document.addEventListener('dragstart', (e) => { e.preventDefault(); }); //const checkViewPort = () => { // let viewportHeight = window.innerHeight; // const mainContainer = document.getElementById('mainContainer'); // if ((mainContainer.offsetHeight < viewportHeight) & (mainContainer.offsetHeight > 550)) { // mainContainer.classList.add('max-view-height'); // } else { // mainContainer.classList.remove('max-view-height'); // } //}; //function doSuccess(msg, action = 'closeAndReload') { // const optionsSuccess = { // has_html: false, // icon: 'success', // message: msg, // button: true, // btn_action: action // } // new Ax5Alerts('alertContainer', optionsSuccess); //} //function doError(msg, action = 'close') { // const optionsError = { // has_html: false, // icon: 'error', // message: msg, // button: true, // btn_action: action // } // new Ax5Alerts('alertContainer', optionsError); //} //function doInfo(msg, action = 'close') { // const optionsInfo = { // has_html: false, // icon: 'info', // message: msg, // button: true, // btn_action: action // } // new Ax5Alerts('alertContainer', optionsInfo); //} //function doLoading() { // if (SiteLocalization) // enviandoSolicitud = 'Em processamento...'; // else // enviandoSolicitud = 'Enviando solicitud...'; // const options = { // has_html: false, // icon: 'loading', // message: enviandoSolicitud, // button: false // } // new Ax5Alerts('alertContainer', options); //} //function doClose() { // document.getElementById('alertContainer').innerHTML = '' // document.getElementById('alertContainer').classList.remove('modal-wrapper-show'); //} //function redirectTo(url) { // window.location.href = url; //} //function LogOffAndSendTo() { // LogoffAndRedirect('/'); //} //function LogOffAndSendTo() { // LogoffAndRedirect('/registro'); //} //function LogoffAndRedirect(url) { // $.ajax({ // type: 'GET', // url: AuthServicesUrl, // data: 'Field=Ex', // async: false, // cache: false, // crossDomain: true, // dataType: "jsonp", // success: function (htmlResponse) { // retval = htmlResponse; // setTimeout(function () { // window.location.href = url; // }, 2000); // }, // error: function () { } // }) //}; 'use strict'; function doSuccess(msg, action = 'closeAndReload') { if (typeof (togglebar) === 'function') { togglebar('dark'); } const optionsSuccess = { has_html: false, icon: 'success', message: msg, button: true, btn_action: action, fixed_wrapper: true } new Ax5Alerts('alertContainer', optionsSuccess); } function doError(msg, action = 'close') { if (typeof (togglebar) === 'function') { togglebar('dark'); } const optionsError = { has_html: false, icon: 'error', message: msg, button: true, btn_action: action, fixed_wrapper: true } new Ax5Alerts('alertContainer', optionsError); } function doInfo(msg, action = 'close') { if (typeof (togglebar) === 'function') { togglebar('dark'); } const optionsInfo = { has_html: false, icon: 'info', message: msg, button: true, btn_action: action, fixed_wrapper: true } new Ax5Alerts('alertContainer', optionsInfo); } function doLoading(msg = null) { if (typeof (togglebar) === 'function') { togglebar('dark'); } let message; if (msg !== null) message = msg; else message = lang.ENVIANDO_SOLICITUD; const options = { has_html: false, icon: 'loading', message: message, button: false, fixed_wrapper: true } new Ax5Alerts('alertContainer', options); } function doClose() { if (typeof (togglebar) === 'function') { togglebar('light'); } document.getElementById('alertContainer').innerHTML = '' document.getElementById('alertContainer').classList.remove('modal-wrapper-show'); } function doBanned() { if (typeof (togglebar) === 'function') { togglebar('dark'); } const optionsBanned = { has_html: true, icon: 'error', html_content: '' + lang._BANNED + '', button: true, btn_action: 'close' } new Ax5Alerts('alertContainer', optionsBanned); } function doMailConfirmEmail(Name) { if (typeof (togglebar) === 'function') { togglebar('dark'); } const optionsMailConf = { has_html: false, icon: 'error', message: `${lang.CUENTA_NO_CONFIRMADA}`, button: true, btn_action: 'btnSendEmailConf("' + Name + '")', btn_text: lang.BTN_MAIL_CONFIRM, close_button: true } new Ax5Alerts('alertContainer', optionsMailConf); } function btnSendEmailConf(Name) { const url = location.origin === Ax5Site ? escape(mainSiteRoot + 'registro') : escape(location.origin); doLoading(); $.ajax({ type: 'POST', url: RegServicesUrl, async: true, crossDomain: true, dataType: 'jsonp', data: 'Field=sendActivationByPopUp' + '&Name=' + Name + '&location=' + url,//escape(mainSiteRoot + 'registro'), success: function (jsonResponse) { if (jsonResponse != '') { if (jsonResponse.State == true) { doSuccess(lang.EMAIL_SENT, 'redirectTo("/")'); } else { doError(jsonResponse.Msg); } } else { doError(lang.CONF_MAIL_REENVIADO); } }, error: function (error) { console.log(error); doError(lang.CONF_MAIL_REENVIADO); } }); } function redirectTo(url) { window.location.href = url; } function getReturnUrlN() { let retval = ''; //url.slice(p + 10, url.length); if (location.href.split('?').length > 1) { const params = location.href.split('?')[1]; for (let i = 0; i < params.split('&').length; i++) { if (params.split('&')[i].split('=')[0].toLowerCase() == 'returnurl') retval = unescape(params.split('&')[i].split('=')[1]); } } if (retval == '') retval = '/'; return retval.replace('&openinparent', '').replace('?openInOverlay=true', ''); } function googleGetState(code, action) { $.ajax({ type: 'POST', url: AuthServicesUrl, data: 'Field=Google&code=' + code + '&authority=' + escape(window.origin), async: true, cache: false, crossDomain: true, dataType: 'jsonp', success: function (jsonResponse) { if (jsonResponse != '') { switch (jsonResponse.State) { case 0: //INGRESA switch (action) { case 'oauth2-': location.reload(); break; case 'launcher-': case 'mainsite-': location.href = unescape(getReturnUrlN()); break; case 'mainsite-': case 'gamesite-': location.href = location.origin; break; case 'mainsite-recover': location.href = '/mi-cuenta'; break; //default: // doInfo(action); // break; } break; case 2: //FALTA CONFIRMAR //doMailConfirmEmail(document.getElementById('txtName').value, jsonResponse.Msg, false); doMailConfirmEmail(jsonResponse.realName); break; case 4: doError(jsonResponse.Msg); break; case 7: // EXISTE EN LA BASE O NUEVO switch (action) { case 'oauth2-': case 'launcher-': case 'mainsite-': case 'mainsite-recover': let ignoreName; if (jsonResponse.realName === '' || jsonResponse.realName === undefined || jsonResponse.realName === null) ignoreName = 1; else ignoreName = 2; if (action === 'oauth2-') window.location.href = mainSiteRoot + 'registro?GoogleAct=' + ignoreName; else window.location.href = '/registro?GoogleAct=' + ignoreName; break; case 'mainsite-': case 'gamesite-': googleUI(jsonResponse.realName, jsonResponse.email); break; //default: // doInfo(action); // break; } break; default: //OTROS ERRORES doError(lang.ERROR_SOLICITUD + 'Error ' + jsonResponse.State); break; } } else { doError(lang.ERROR_SOLICITUD); } }, error: function (error) { console.log(error); doError(lang.ERROR_SOLICITUD); } }); } //window.addEventListener('DOMContentLoaded', () => { // checkViewPort(); //}); //window.addEventListener('resize', () => { // checkViewPort(); //}); //const checkViewPort = () => { // const mainContainer = document.getElementById('mainContainer'); // if (mainContainer.offsetHeight + 400 < window.innerHeight /*& (mainContainer.offsetHeight + 438 < window.innerHeight)*/) { // mainContainer.classList.add('max-view-height'); // } else { // mainContainer.classList.remove('max-view-height'); // } //}; //function LogOffAndSendTo() { // LogoffAndRedirect('/'); //} //function LogOffAndSendTo() { // LogoffAndRedirect('/registro'); //} //function LogoffAndRedirect(url) { // $.ajax({ // type: 'GET', // url: AuthServicesUrl, // data: 'Field=Ex', // async: false, // cache: false, // crossDomain: true, // dataType: "jsonp", // success: function (jsonResponse) { // retval = jsonResponse; // setTimeout(function () { // window.location.href = url; // }, 2000); // }, // error: function () { } // }) //}; 1a4q6g