import{proxyCustomElement,HTMLElement,createEvent,h,Host}from"@stencil/core/internal/client";import{c as classnames}from"./index2.js";const vaSidenavItemCss="button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}:host{display:block;list-style-type:none;padding-left:0;margin:0;border-bottom:1px solid var(--vads-color-base-lightest)}:host:active{background-color:var(--vads-color-action-focus-on-light);color:var(--vads-color-base);-webkit-box-shadow:inset 0px -4px 0px var(--vads-color-base);box-shadow:inset 0px -4px 0px var(--vads-color-base);z-index:1}a{color:var(--vads-color-link);display:block;line-height:var(--vads-font-line-height-4);padding:0.5rem 0.25rem 0.5rem 1rem;padding-left:var(--va-sidenav-item-link-padding-left, 1rem);text-decoration:none}[href]:focus{outline:none !important}a:hover{background-color:var(--vads-color-base-lightest);-webkit-box-shadow:none;box-shadow:none}.va-sidenav-item__current{position:relative;font-weight:var(--font-weight-bold)}.va-sidenav-item__current::after{background-color:var(--vads-color-link);content:\"\";display:block;position:absolute;bottom:0.25rem;top:0.25rem;width:0.25rem;left:0;z-index:1}",VaSidenavItemStyle0=vaSidenavItemCss,VaSidenavItem$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.vaRouteChange=createEvent(this,"vaRouteChange",7),this.href=void 0,this.label=void 0,this.currentPage=void 0,this.routerLink=void 0}handleClick(e){this.routerLink&&(e.preventDefault(),this.vaRouteChange.emit({href:this.href}))}render(){const e=classnames({"va-sidenav-item__current":this.currentPage}),t=this.currentPage?"#content":this.href;return h(Host,{key:"49a72f3bfec527c62efc65c2b45bb7e7c685408f",role:"listitem"},h("a",{key:"c7cfe732546f5c0911a4b20b7912508567416f37",class:e,href:t,"aria-current":this.currentPage?"page":void 0,onClick:this.handleClick.bind(this)},this.label),h("slot",{key:"c8a0cb5736ee6b32d9aa477701caf5e70f0c4508"}))}get el(){return this}static get style(){return VaSidenavItemStyle0}},[1,"va-sidenav-item",{href:[1],label:[1],currentPage:[4,"current-page"],routerLink:[4,"router-link"]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-sidenav-item"].forEach(e=>{"va-sidenav-item"===e&&(customElements.get(e)||customElements.define(e,VaSidenavItem$1))})}const VaSidenavItem=VaSidenavItem$1,defineCustomElement=defineCustomElement$1;export{VaSidenavItem,defineCustomElement};