PageSourceSearch

https://donatovillani.com/assets/_._lovable.oauth.consent-BvuYanrz.js

js donatovillani.com collected 2026-10-09 22:01:19 UTC 1,434 bytes, 1 lines download raw bytes

1import{a_ as m,a as p,j as e,a$ as h}from"./index-Dk6aPEdC.js";function y(){const x=m.useLoaderData(),{authorization_id:s}=m.useSearch(),[o,t]=p.useState(!1),[r,a]=p.useState(null),i=x?.client?.name??"un'applicazione";async function n(f){t(!0),a(null);const l=h(),{data:c,error:d}=f?await l.approveAuthorization(s):await l.denyAuthorization(s);if(d){t(!1),a(d.message);return}const u=c?.redirect_url??c?.redirect_to;if(!u){t(!1),a("Nessun redirect restituito dal server di autorizzazione.");return}window.location.href=u}return e.jsxs("main",{className:"mx-auto max-w-md px-6 py-20",children:[e.jsxs("h1",{className:"text-2xl font-semibold",children:["Collega ",i," al tuo account"]}),e.jsxs("p",{className:"mt-3 text-sm text-muted-foreground",children:[i," potrà usare gli strumenti di questo sito con i tuoi permessi: leggere e modificare gli articoli del blog, consultare le call prenotate e i contenuti del sito."]}),r&&e.jsx("p",{role:"alert",className:"mt-4 text-sm text-destructive",children:r}),e.jsxs("div",{className:"mt-8 flex gap-3",children:[e.jsx("button",{type:"button",disabled:o,onClick:()=>n(!0),className:"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-60",children:"Approva"}),e.jsx("button",{type:"button",disabled:o,onClick:()=>n(!1),className:"rounded-md border px-4 py-2 text-sm font-medium disabled:opacity-60",children:"Rifiuta"})]})]})}export{y 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.