1function isEmail(email){var regex=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;return regex.test(email);} 2function isPhone(phone){var regex=/^(?:(?:\+|00)?(55)\s?)?(?:\(?([1-9][0-9])\)?\s?)?(?:((?:9\d|[2-9])\d{3})\-?(\d{4}))$/;return regex.test(phone);} 3function isValidCPF(cpf){if(typeof cpf!=="string")return false 4cpf=cpf.replace(/[\s.-]*/igm,'') 5if(!cpf||cpf.length!=11||cpf=="00000000000"||cpf=="11111111111"||cpf=="22222222222"||cpf=="33333333333"||cpf=="44444444444"||cpf=="55555555555"||cpf=="66666666666"||cpf=="77777777777"||cpf=="88888888888"||cpf=="99999999999"){return false} 6var soma=0 7var resto 8for(var i=1;i<=9;i++) 9soma=soma+parseInt(cpf.substring(i-1,i))*(11-i) 10resto=(soma*10)%11 11if((resto==10)||(resto==11))resto=0 12if(resto!=parseInt(cpf.substring(9,10)))return false 13soma=0 14for(var i=1;i<=10;i++) 15soma=soma+parseInt(cpf.substring(i-1,i))*(12-i) 16resto=(soma*10)%11 17if((resto==10)||(resto==11))resto=0 18if(resto!=parseInt(cpf.substring(10,11)))return false 19return true} 20function isValidCNPJ(cnpj){if(window.CnpjHelper){return window.CnpjHelper.validar(cnpj);} 21return false;} 22var HOSTS_PRODUCAO=["www.sempararempresas.com.br","sempararempresas.com.br"];var HOSTS_HOMOLOGACAO=["homologacao.sempararempresas.com.br","suporte.sempararempresas.com.br"];function isAmbienteProducao(){return HOSTS_PRODUCAO.indexOf((window.location.hostname||"").toLowerCase())!==-1;} 23function getPortalVpBaseUrl(){var hostname=(window.location.hostname||"").toLowerCase();var subdominio;if(HOSTS_PRODUCAO.indexOf(hostname)!==-1){subdominio="portal";}else if(HOSTS_HOMOLOGACAO.indexOf(hostname)!==-1){subdominio="homologportal";}else{subdominio="qaportal";} 24return"https://"+subdominio+".sempararempresas.com.br/vp-eletronico";} 25function getDataTokenTag(){try{let searchParams=GetURLParameter('data_hash');console.log(searchParams);if(searchParams!=null){let hash=searchParams;var dataJson={data:hash} 26$.ajax({type:"POST",url:"/semparartag/GetDataTokenQrcode",dataType:'json',contentType:'application/json; charset=utf-8',data:JSON.stringify(dataJson)}).done(function(data){console.log("success");console.log(data);if(data.success){console.log("success true");sessionStorage.setItem('data_tag',JSON.stringify(data.data))}else{console.log('error');}}).fail(function(){console.log("error");})}} 27catch(error){console.log('error - getDataTokenTag',error);}} 28function GetURLParameter(sParam) 29{var sPageURL=window.location.search.substring(1);var sURLVariables=sPageURL.split('&');for(var i=0;i<sURLVariables.length;i++) 30{var sParameterName=sURLVariables[i].split('=');if(sParameterName[0]==sParam) 31{return sParameterName[1];}}} 32$('document').ready(function(){getDataTokenTag();});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.