import{aa as h,cL as f,cG as V,cA as $,cl as T,X as v,cS as t,bB as z,a3 as e,a2 as i,c0 as r,c7 as a,W as o,V as u}from"#entry";import{V as C}from"./D-zBkYGg.js";import{V as y,b as B}from"./RTCSF0Ks.js";import{V as H}from"./R1_j74h_.js";import{V as L}from"./BgQ5eU58.js";import{V as S}from"./VoZA954X.js";import"./BbcaTmac.js";import"./D_qxKlPu.js";import"./BKDgfSxC.js";import"./Cp3UUybv.js";const b=["value"],M=["innerHTML"],g={class:"mb-2"},A=["innerHTML"],W=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,b),o("div",null,[o("span",{innerHTML:s.$t("oauth.authorization_request",{app:a(m),instance_name:a(n).title})},null,8,M),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{W as default};
