PageSourceSearch

https://otentecnologia.com.br/assets/ExtensaoPrivacidade-BwkaQluS.js

js otentecnologia.com.br collected 2026-09-30 05:27:51 UTC 3,521 bytes, 1 lines download raw bytes

1import{r as e,j as t}from"./framer-DNXtdBgj.js";import{F as s,b as a,v as i,m as r,Z as n,S as o,B as c,y as l,e as x}from"./index-XTUkK5WH.js";import{S as d}from"./shield-check-BW2RZQX9.js";import"./supabase-CVkO6afG.js";function m(){const{slug:m}=s(),{locale:p,t:u}=a(),y=function(e){return"en"===e?"en":"es"===e?"es":"pt"}(p),{data:h,isLoading:f,error:v}=i({queryKey:["extension-privacy",m],queryFn:async()=>{const{data:e,error:t}=await x.from("extensions").select("id, name, slug, status").eq("slug",m).maybeSingle();if(t)throw t;if(!e)return null;const{data:s,error:a}=await x.from("extension_privacy").select("*").eq("extension_id",e.id).maybeSingle();if(a)throw a;return{ext:e,privacy:s}},enabled:!!m}),j=e.useMemo(()=>h?.privacy?(("en"===y?h.privacy.title_en:"es"===y?h.privacy.title_es:h.privacy.title_pt)||"").replace(/^\s*(Política de Privacidade|Privacy Policy|Política de Privacidad)\s*[—–-]\s*/i,"").trim()||h.ext.name:"",[h,y]),b=e.useMemo(()=>h?.privacy?"en"===y?h.privacy.content_en:"es"===y?h.privacy.content_es:h.privacy.content_pt:"",[h,y]);return f?t.jsx(r,{children:t.jsx("div",{className:"min-h-[60vh] flex items-center justify-center",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})})}):!v&&h&&h.ext?t.jsxs(r,h.privacy&&"published"===h.privacy.status?{children:[t.jsx(o,{title:j,noindex:!0,nofollow:!0,disableAutoBreadcrumb:!0,ogTitle:j,ogType:"website"}),t.jsx("section",{className:"bg-primary py-16 md:py-20",children:t.jsxs("div",{className:"container mx-auto px-4 flex flex-col items-center text-center",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-5 py-2 rounded-full border border-white/20 bg-white/5 backdrop-blur-sm mb-6",children:[t.jsx(d,{className:"h-4 w-4 text-white"}),t.jsx("span",{className:"text-sm font-medium text-white",children:u("extensionPrivacy.kicker")})]}),t.jsxs("div",{className:"relative inline-block pb-4",children:[t.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white",children:j}),t.jsx("span",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-24 h-1 bg-accent rounded-full"})]}),h.privacy.effective_date&&t.jsxs("p",{className:"text-sm mt-6 text-white/80",children:[u("extensionPrivacy.effective"),":"," ",new Date(h.privacy.effective_date).toLocaleDateString("pt"===y?"pt-BR":"es"===y?"es-ES":"en-US")]})]})}),t.jsxs("section",{className:"container mx-auto px-4 py-10 md:py-14",children:[t.jsx("div",{className:"flex items-center justify-start mb-8",children:t.jsx(c,{asChild:!0,variant:"ghost",size:"sm",children:t.jsxs(l,{to:`/extensoes/${h.ext.slug}`,children:["← ",u("extensionPrivacy.backToExt")]})})}),t.jsx("article",{className:"prose prose-slate max-w-3xl mx-auto prose-headings:font-display prose-headings:text-foreground prose-h2:text-xl prose-h2:mt-8 prose-p:text-foreground/90 prose-li:text-foreground/90 prose-a:text-primary",dangerouslySetInnerHTML:{__html:b||""}})]})]}:{children:[t.jsx(o,{title:u("extensionPrivacy.notFoundTitle"),noindex:!0,nofollow:!0}),t.jsxs("section",{className:"container mx-auto px-4 py-24 text-center space-y-4",children:[t.jsx("h1",{className:"font-display text-3xl font-bold text-foreground",children:u("extensionPrivacy.notFoundTitle")}),t.jsx("p",{className:"text-muted-foreground",children:u("extensionPrivacy.notFoundDesc")}),t.jsx(c,{asChild:!0,variant:"outline",children:t.jsx(l,{to:`/extensoes/${h.ext.slug}`,children:u("extensionPrivacy.backToExt")})})]})]}):t.jsx(n,{to:"/404",replace:!0})}export{m 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.