import{B as b}from"./BaseLayout-BXzjdyrU.js";import{C as v}from"./ContentLayout-f5FUnUa3.js";import{e as h,b as r,l as d,f as g,g as o,k as _,R as p,p as u,V as w,W as B,n as c,C,B as f,Q as z,U as M,K as V,Y as $,w as I,j as R}from"./jwt-decode.esm-cMnpfgdw.js";import{_ as S}from"./BillingAlert.vue_vue_type_script_setup_true_lang-CFyLyEHE.js";import{E as x}from"./router-D_ihKcxX.js";import{u as D}from"./projectsStore-Beij0q8u.js";import"./index-BbKS5vHb.js";import"./ts.worker-T_DnATf9.js";import"./member-D47PSkeG.js";import"./organization-CT9gfwyx.js";import"./project-Cb8Gbfdi.js";import"./tables-D4FFTMCL.js";import"./string-pgLwzgmr.js";import"./cascaderStore-CA_VDeP3.js";import"./organizationSwitcher-D_WT7zco.js";import"./ant-design-CE_YtwCT.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="3c815817-512f-4b4a-8017-685e42f413d2",a._sentryDebugIdIdentifier="sentry-dbid-3c815817-512f-4b4a-8017-685e42f413d2")}catch{}})();const L={class:"org-login-blocked"},j={class:"actions"},E=h({__name:"OrgLoginBlocked",props:{allowedMethods:{}},setup(a){const n=a,i=r(()=>n.allowedMethods.filter(e=>e==="google"||e==="microsoft")),s=r(()=>d.translate("i18n_org_login_blocked_message",null,{methods:n.allowedMethods.join(", ")})),m=e=>{const l=encodeURIComponent(`${window.location.origin}/auth/callback`);window.location.href=`${x.cloudApi}/console/authn/oauth/${e}/start?redirect=${l}`};return(e,l)=>(o(),g("div",L,[_("h2",null,p(u(d).translate("i18n_org_login_blocked_title")),1),_("p",null,p(s.value),1),_("div",j,[(o(!0),g(w,null,B(i.value,t=>(o(),c(u(C),{key:t,type:"primary",onClick:k=>m(t)},{default:f(()=>[z(p(t==="google"?u(d).translate("i18n_auth_continue_with_google"):u(d).translate("i18n_auth_continue_with_microsoft")),1)]),_:2},1032,["onClick"]))),128))])]))}}),Z=h({__name:"Organization",setup(a){const n=M(),i=D(),s=r(()=>n.params.organizationId);V(s,t=>{t&&i.fetchedState?.organization?.id!==t&&i.fetchState(t)},{immediate:!0});const m=r(()=>i.fetchedState?.organization),e=r(()=>m.value?.billingMetadata),l=r(()=>i.loginBlocked);return(t,k)=>{const y=$("RouterView");return o(),c(b,null,{content:f(()=>[I(v,null,{default:f(()=>[l.value?(o(),c(E,{key:0,"allowed-methods":l.value.allowedMethods},null,8,["allowed-methods"])):(o(),g(w,{key:1},[e.value?(o(),c(S,{key:0,"billing-metadata":e.value,"organization-id":s.value},null,8,["billing-metadata","organization-id"])):R("",!0),(o(),c(y,{key:s.value}))],64))]),_:1})]),_:1})}}});export{Z as default};
//# sourceMappingURL=Organization-DPHGKm7s.js.map
