n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 3.82 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.16.1"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./core-legacy-VD8c7QJ-.js","./src-legacy-B67uuxhB.js","./_plugin-vue_export-helper-legacy-DFdC_I5Z.js","./users.store-legacy-azRUgFdP.js","./settings.store-legacy-I6rZOvfF.js","./sso.store-legacy-fTkDsmnz.js"],(function(e,t){var n,i,o,s,r,a,l,d,c,u,f,g,_,p,y,b,m,h,w,v,x,C,k,S,$,j;return{setters:[function(e){n=e.$,i=e.A,o=e.C,s=e.E,r=e.N,a=e.Sn,l=e.T,d=e.U,c=e.Wt,u=e._n,f=e.j,g=e.w,_=e.yt},function(e){p=e.at},function(e){y=e.K,b=e.Q,m=e.Xi,h=e.Zi,w=e.ct},function(e){v=e.t},function(e){x=e.Pn},function(e){C=e.t},function(e){k=e.n}],execute:function(){(S=document.createElement("style")).textContent='._ssoLogin_16f3z_125{text-align:center;flex-direction:column;justify-content:center;align-items:center;display:flex}._divider_16f3z_133{text-transform:uppercase;width:100%;position:relative}._divider_16f3z_133:before{content:"";background-color:var(--color--foreground);width:100%;height:1px;position:absolute;top:50%;left:0}._divider_16f3z_133 span{margin:var(--spacing--2xs) auto;padding:var(--spacing--lg);background:var(--color--background--light-3);display:inline-block;position:relative}body{background-color:var(--color--background--light-2)}._container_fdp0w_129{padding-top:var(--spacing--2xl);flex-direction:column;align-items:center;display:flex}._container_fdp0w_129>*{width:352px}._textContainer_fdp0w_139{text-align:center}._formContainer_fdp0w_143{padding-bottom:var(--spacing--xl)}\n/*$vite$:1*/',document.head.appendChild(S);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(z=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[z]="b19be443-d841-4df2-8c0d-3e037312304b",t._sentryDebugIdIdentifier="sentry-dbid-b19be443-d841-4df2-8c0d-3e037312304b")}catch(t){}var t,z;$=v(r({__name:"SSOLogin",setup(e){const t=p(),i=k(),r=x(),d=w(),g=async()=>{try{const e=i.isDefaultAuthenticationSaml?await i.getSSORedirectUrl("string"==typeof d.query?.redirect?d.query.redirect:""):i.oidc.loginUrl;window.location.href=e??""}catch(e){r.showError(e,"Error",e.message)}};return(e,r)=>c(i).showSsoLoginButton?(n(),s("div",{key:0,class:u(e.$style.ssoLogin)},[o("div",{class:u(e.$style.divider)},[o("span",null,a(c(t).baseText("sso.login.divider")),1)],2),f(c(h),{variant:"outline",size:"large",label:c(t).baseText("sso.login.button"),onClick:g},null,8,["label"])],2)):l("",!0)}}),[["__cssModules",{$style:{ssoLogin:"_ssoLogin_16f3z_125",divider:"_divider_16f3z_133"}}]]),j=r({__name:"AuthView",props:{form:{},formLoading:{type:Boolean,default:!1},subtitle:{},withSso:{type:Boolean,default:!1}},emits:["update","submit","secondaryClick"],setup(e,{emit:t}){const r=t,p=e=>{r("update",e)},h=e=>{r("submit",e)},w=()=>{r("secondaryClick")},{settings:{releaseChannel:v}}=C();return(t,r)=>(n(),s("div",{class:u(t.$style.container)},[f(c(y),{size:"large","release-channel":c(v)},null,8,["release-channel"]),e.subtitle?(n(),s("div",{key:0,class:u(t.$style.textContainer)},[f(c(m),{size:"large"},{default:_((()=>[i(a(e.subtitle),1)])),_:1})],2)):l("",!0),o("div",{class:u(t.$style.formContainer)},[f(c(b),d(e.form,{"data-test-id":"auth-form","button-loading":e.formLoading,onSecondaryClick:w,onSubmit:h,onUpdate:p}),{default:_((()=>[e.withSso?(n(),g($,{key:0})):l("",!0)])),_:1},16,["button-loading"])],2)],2))}}),e("t",v(j,[["__cssModules",{$style:{container:"_container_fdp0w_129",textContainer:"_textContainer_fdp0w_139",formContainer:"_formContainer_fdp0w_143"}}]]))}}}));
//# sourceMappingURL=AuthView-legacy-Wj84asB_.js.map