import{h}from"@stencil/core";import{getCurrentRoute,navigate}from"../../../../../api/dist/ontotext-workbench-api";export class OntoUserLogin{navigateToLogin(){return e=>{e.preventDefault();const t=encodeURIComponent(getCurrentRoute());navigate(`login?r=${encodeURIComponent(t)}`)}}render(){return h("section",{key:"65c270b9b0df6412e1304791bd1ab1e69dc15b67",class:"onto-user-login"},h("button",{key:"75f75cf70572cd7b2e39532fc607f168d36ccedf",onClick:this.navigateToLogin()},h("i",{key:"1af92e3294047a2ae00a35b69bfe1db0348dc755",class:"ri-arrow-right-circle-line"}),h("translate-label",{key:"5c8c78df37825e7a56f024fff351c69778bafa01",class:"user-login-label",labelKey:"user_menu.login"})))}static get is(){return"onto-user-login"}static get originalStyleUrls(){return{$:["onto-user-login.scss"]}}static get styleUrls(){return{$:["onto-user-login.css"]}}}