import{L as u}from"./CircularLoading-BECt85rQ.js";import{e as f,an as p,N as h,p as _,h as l,s as d,m,aO as g}from"./jwt-decode.esm-og2W_mys.js";import{E as r,a as y}from"./router-C9ojQjj-.js";import"./ts.worker-BQuKpghy.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]="ca6bf4ee-724c-4648-95dd-22772aadc8fb",e._sentryDebugIdIdentifier="sentry-dbid-ca6bf4ee-724c-4648-95dd-22772aadc8fb")}catch{}})();const b={class:"authorize"},w={class:"content"},A=f({__name:"Authorize",setup(e){const o=p();return h(()=>{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(),_("div",b,[d("div",w,[s[0]||(s[0]=d("h1",null,"Authorizing...",-1)),m(u)])]))}}),P=g(A,[["__scopeId","data-v-57fe5408"]]);export{P as default};
//# sourceMappingURL=Authorize-Zp78lwZj.js.map
