PageSourceSearch

https://www.krv-medical.com/assets/_._lovable.oauth.consent-Bffvy9a0.js

js krv-medical.com collected 2026-10-05 00:13:06 UTC 1,972 bytes, 1 lines download raw bytes

1import{c0 as m,r as x,j as e,c1 as h}from"./index-BqO03T5h.js";import{B as f}from"./button-MQYsiL4n.js";import{C as p,a as C,b as N,d as w,c as b}from"./card-y_Aew_hL.js";function k(){const s=m.useLoaderData(),{authorization_id:t}=m.useSearch(),[i,a]=x.useState(!1),[n,r]=x.useState(null),c=s?.client?.name??"приложение";async function l(j){a(!0),r(null);const{data:o,error:d}=j?await(await h()).approveAuthorization(t):await(await h()).denyAuthorization(t);if(d){a(!1),r(d.message);return}const u=o?.redirect_url??o?.redirect_to;if(!u){a(!1),r("Сервер авторизации не вернул адрес перенаправления.");return}window.location.href=u}return e.jsx("main",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:e.jsxs(p,{className:"w-full max-w-md",children:[e.jsxs(C,{children:[e.jsxs(N,{children:["Подключить ",c," к K.R.V Medical"]}),e.jsxs(w,{children:[c," сможет использовать инструменты этого сайта от вашего имени, пока вы вошли в аккаунт. Это не обходит права доступа и политики безопасности приложения."]})]}),e.jsxs(b,{className:"space-y-4",children:[e.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsx("li",{children:"• Основные данные профиля"}),e.jsx("li",{children:"• Ваш email"}),s?.client?.redirect_uri&&e.jsxs("li",{className:"break-all",children:["• Возврат на: ",s.client.redirect_uri]})]}),n&&e.jsx("p",{role:"alert",className:"text-sm text-destructive",children:n}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(f,{disabled:i,onClick:()=>l(!0),className:"flex-1",children:"Разрешить"}),e.jsx(f,{disabled:i,variant:"outline",onClick:()=>l(!1),className:"flex-1",children:"Отменить подключение"})]})]})]})})}export{k 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.