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.