import{J as h,a5 as f,K as V,L as $,P as T,A as v,B as t,E as z,b as e,G as i,Q as r,S as a,c as o,V as u}from"#entry";import{V as C}from"./gMmVrYwQ.js";import{V as y,a as B}from"./DlybGOWB.js";import{V as H}from"./DArAxlee.js";import{V as L}from"./DSnRMG2T.js";import{V as S}from"./D1vV9CHW.js";import"./xGkJbl6f.js";import"./D_qxKlPu.js";import"./BML-0xFj.js";import"./CIr4U5gS.js";const M=["value"],b=["innerHTML"],g={class:"mb-2"},A=["innerHTML"],K=h({__name:"authorize",setup(N){const{user:l}=f(),n=V("settings"),c=$(),{transactionID:d,client:m,scope:p,redirect_uri:_}=c.query;return T(()=>({title:`${n.value.title} - Authorize`})),(s,k)=>(z(),v(C,{class:"d-flex justify-space-around",method:"post",action:"/oauth/authorize"},{default:t(()=>[e(y,{class:"mt-5","max-width":"600px"},{default:t(()=>[e(B,null,{default:t(()=>[i(r(a(n).title)+" - "+r(s.$t("common.authorize")),1)]),_:1}),e(H,null,{default:t(()=>[o("h2",null,r(a(l)?.email),1),o("input",{name:"transaction_id",value:a(d),type:"hidden"},null,8,M),o("div",null,[o("span",{innerHTML:s.$t("oauth.authorization_request",{app:a(m),instance_name:a(n).title})},null,8,b),o("ul",g,[o("li",null,r(s.$t(`oauth.scopes.${a(p)}`)),1)]),o("span",{innerHTML:s.$t("oauth.redirected_to",{url:a(_)})},null,8,A)])]),_:1}),e(L,null,{default:t(()=>[e(S),e(u,{color:"error",to:"/",variant:"outlined"},{default:t(()=>[i(r(s.$t("common.cancel")),1)]),_:1}),e(u,{type:"submit",color:"success",variant:"outlined"},{default:t(()=>[i(r(s.$t("common.authorize")),1)]),_:1})]),_:1})]),_:1})]),_:1}))}});export{K as default};
