UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 3.78 kB
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js","./users.store-legacy-OKuN0qAC.js","./sso.store-legacy-VUs4UkgQ.js"],(function(e,t){var n,o,i,a,s,r,l,d,c,u,f,g,_,p,y,b,m,h,w,v,x,C,k,S,$,z;return{setters:[function(e){n=e.$,o=e.A,i=e.C,a=e.E,s=e.N,r=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.bt},function(e){y=e.$,b=e.Qi,m=e.Zi,h=e.gt,w=e.ot},function(e){v=e.t},function(e){x=e.As,C=e.Tr},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:{},(E=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[E]="36bd4db7-c96a-4140-a3b0-50518ecd1200",t._sentryDebugIdIdentifier="sentry-dbid-36bd4db7-c96a-4140-a3b0-50518ecd1200")}catch(t){}var t,E;$=v(s({__name:"SSOLogin",setup(e){const t=p(),o=k(),s=C(),d=h(),g=async()=>{try{const e=o.isDefaultAuthenticationSaml?await o.getSSORedirectUrl("string"==typeof d.query?.redirect?d.query.redirect:""):o.oidc.loginUrl;window.location.href=e??""}catch(e){s.showError(e,"Error",e.message)}};return(e,s)=>c(o).showSsoLoginButton?(n(),a("div",{key:0,class:u(e.$style.ssoLogin)},[i("div",{class:u(e.$style.divider)},[i("span",null,r(c(t).baseText("sso.login.divider")),1)],2),f(c(b),{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"}}]]),z=s({__name:"AuthView",props:{form:{},formLoading:{type:Boolean,default:!1},subtitle:{},withSso:{type:Boolean,default:!1}},emits:["update","submit","secondaryClick"],setup(e,{emit:t}){const s=t,p=e=>{s("update",e)},b=e=>{s("submit",e)},h=()=>{s("secondaryClick")},{settings:{releaseChannel:v}}=x();return(t,s)=>(n(),a("div",{class:u(t.$style.container)},[f(c(y),{size:"large","release-channel":c(v)},null,8,["release-channel"]),e.subtitle?(n(),a("div",{key:0,class:u(t.$style.textContainer)},[f(c(m),{size:"large"},{default:_((()=>[o(r(e.subtitle),1)])),_:1})],2)):l("",!0),i("div",{class:u(t.$style.formContainer)},[f(c(w),d(e.form,{"data-test-id":"auth-form","button-loading":e.formLoading,onSecondaryClick:h,onSubmit:b,onUpdate:p}),{default:_((()=>[e.withSso?(n(),g($,{key:0})):l("",!0)])),_:1},16,["button-loading"])],2)],2))}}),e("t",v(z,[["__cssModules",{$style:{container:"_container_fdp0w_129",textContainer:"_textContainer_fdp0w_139",formContainer:"_formContainer_fdp0w_143"}}]]))}}})); //# sourceMappingURL=AuthView-legacy-D2ks9jRE.js.map