PageSourceSearch

https://www.pontaporams.com.br/_nuxt/D5-lRoui.js

js pontaporams.com.br collected 2026-10-09 16:51:13 UTC 1,282 bytes, 1 lines download raw bytes

1import{aq as A,ao as N,r as f,E as R,q as E,as as T}from"./B1HgvGcc.js";import{e as m,i as D}from"./BHlYd9dd.js";function L(p){const t=A(),S=N(),c=f(!1),s=f(!1);async function l(){if(c.value)return;const a=t.consent.location==="accepted",o=window.location.hostname,e=new Date,u=-e.getTimezoneOffset()/60,h=`${u>=0?"+":"-"}${String(Math.abs(u)).padStart(2,"0")}:00`,v=`${e.getDate().toString().padStart(2,"0")}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getFullYear()}T${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}${h}`,d=S.previousRoute,n=document.referrer||"";let g=null;n&&(g=m(n));const w=d?"INTERNA":n?D(n,o)?"INTERNA":"EXTERNA":"DIRETA",$=d?m(window.location.origin):g;let i={lat:null,lon:null};a&&(i=await T());const y={idUsuario:t.id,dominio:o,dataHora:v,latitude:i.lat,longitude:i.lon,pagina:p,origem:$??null,tipoOrigem:w};try{await $fetch("/api/postNavigationMetric",{method:"POST",body:y}),c.value=!0}catch(r){console.error("Erro ao registrar navegação:",(r==null?void 0:r.data)||r)}}return R(()=>s.value,a=>{a&&t.consent.analytics==="accepted"&&l()}),E(()=>{const a=t.consent.analytics!==null&&t.consent.location!==null,o=t.consent.analytics==="accepted";a&&o&&(s.value=!0)}),{canLog:s,logPageAccess:l}}export{L as u};

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.