PageSourceSearch

https://raquelmedeiros.lovable.app/assets/_._lovable.oauth.consent-CVJL-JiT.js

js raquelmedeiros.lovable.app collected 2026-10-10 01:54:00 UTC 1,564 bytes, 1 lines download raw bytes

1import{c as u,r as m,j as e,o as x}from"./index-BpPqZ3kb.js";function h(){const p=u.useLoaderData(),{authorization_id:a}=u.useSearch(),[t,r]=m.useState(!1),[o,s]=m.useState(null);async function n(f){r(!0),s(null);const{data:i,error:l}=f?await x().approveAuthorization(a):await x().denyAuthorization(a);if(l){r(!1),s(l.message);return}const c=i?.redirect_url??i?.redirect_to;if(!c){r(!1),s("Nenhum redirecionamento retornado pelo servidor de autorização.");return}window.location.href=c}const d=p?.client?.name??"este aplicativo";return e.jsx("main",{className:"min-h-screen bg-background text-foreground flex items-center justify-center p-6",children:e.jsxs("div",{className:"w-full max-w-md rounded-2xl border border-border bg-card p-6 shadow-sm",children:[e.jsxs("h1",{className:"text-2xl font-semibold",children:["Conectar ",d]}),e.jsxs("p",{className:"mt-2 text-sm text-foreground/70",children:[d," poderá ler e editar os textos do site em seu nome. As permissões de edição continuam sendo controladas pela sua conta (somente admins conseguem salvar mudanças)."]}),o&&e.jsx("p",{role:"alert",className:"mt-4 text-sm text-red-600",children:o}),e.jsxs("div",{className:"mt-6 flex gap-3",children:[e.jsx("button",{disabled:t,onClick:()=>n(!0),className:"rounded-full bg-burgundy px-4 py-2 text-sm font-medium text-sand disabled:opacity-60",children:t?"Aguarde...":"Aprovar"}),e.jsx("button",{disabled:t,onClick:()=>n(!1),className:"rounded-full border border-border px-4 py-2 text-sm disabled:opacity-60",children:"Negar"})]})]})})}export{h as component};

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.