import{L as u}from"./CircularLoading-HpD2QrfE.js";import{e as f,aj as p,P as _,f as h,g as l,k as d,v as g,aM as m}from"./jwt-decode.esm-1W9iq5Oc.js";import{E as r,a as y}from"./router-BlBl3YCU.js";import"./ts.worker-dw09Qg0Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="3d873fc0-9370-4ae2-a2c9-19c7c0bbda72",e._sentryDebugIdIdentifier="sentry-dbid-3d873fc0-9370-4ae2-a2c9-19c7c0bbda72")}catch{}})();const b={class:"authorize"},w={class:"content"},A=f({__name:"Authorize",setup(e){const o=p();return _(()=>{const{client_id:a,redirect_uri:s,response_type:n,state:i}=o.query,t=r.cloudApi.startsWith("https://")||r.cloudApi.startsWith("http://")?new URL(`${r.cloudApi}/oauth/authorize`):new URL(`${location.origin}${r.cloudApi}/oauth/authorize`);typeof a=="string"&&t.searchParams.set("client_id",a),typeof s=="string"&&t.searchParams.set("redirect_uri",s),typeof n=="string"&&t.searchParams.set("response_type",n),typeof i=="string"&&t.searchParams.set("state",i);const c=y.getAuthor();c?.jwt&&t.searchParams.set("session_token",c.jwt),window.location.href=t.toString()}),(a,s)=>(l(),h("div",b,[d("div",w,[s[0]||(s[0]=d("h1",null,"Authorizing...",-1)),g(u)])]))}}),k=m(A,[["__scopeId","data-v-57fe5408"]]);export{k as default};
//# sourceMappingURL=Authorize-B0M3pMnM.js.map
