PageSourceSearch

https://parksnet.com.br/assets/IngTokenRedirect-CTeGcjcj.js

js parksnet.com.br collected 2026-09-29 00:13:01 UTC 1,428 bytes, 1 lines download raw bytes

1import{a3 as S,j as e,c8 as n,_ as T,iu as $,iv as b,s as y,dG as k}from"./index-Ck3jlJIO.js";import"./charts-ytYDs0Yq.js";const u="/destino/serra-gaucha",_=()=>{var m,f;const[c]=S(),s=(m=c.get("ingToken"))==null?void 0:m.toLowerCase().trim(),l=new URLSearchParams;c.forEach((t,r)=>{r!=="ingToken"&&l.set(r,t)});const g=l.toString(),a=t=>g?`${t}?${g}`:t;if(!s)return e.jsx(n,{to:a(u),replace:!0});const d=$[s];if(d)return e.jsx(n,{to:a(`/destino/${d}`),replace:!0});const i=b[s],{data:o,isLoading:j}=T({queryKey:["ing-token-redirect",s,i],queryFn:async()=>{if(i){const{data:h}=await y.from("products").select("slug, region:regions(slug)").eq("slug",i).eq("status","active").is("deleted_at",null).maybeSingle();if(h)return h;const x=await k(i);if(x)return x}const t=s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),{data:r}=await y.from("products").select("slug, region:regions(slug)").eq("status","active").is("deleted_at",null).ilike("slug",`%${t}%`).limit(1);return(r==null?void 0:r[0])||null},staleTime:1/0});if(j)return e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:e.jsx("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"})});if(!o)return e.jsx(n,{to:a(u),replace:!0});const p=(f=o.region)==null?void 0:f.slug;return p?e.jsx(n,{to:a(`/destino/${p}/${o.slug}`),replace:!0}):e.jsx(n,{to:a(u),replace:!0})};export{_ as default};

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.