import{r as registerInstance,h as h$1}from"./index-38ad4957.js";import{n as h}from"./dom-context-hooks.module-50442785.js";import{k as kn,i as isDemo}from"./index.module-b23fdad8.js";import{c as cjs}from"./cjs-bdfb4486.js";import{g as getProps}from"./utils-334c1e34.js";import"./JSS-67b5cff8.js";import"./mixins-f750863a.js";import{N as NavigationSidebarItemView}from"./sqm-navigation-sidebar-item-view-b3beac5a.js";function useNavigationSidebarItem(o){var e=kn();return{states:{active:e.pathname===o.path},data:{label:o.label,icon:o.icon,path:o.path},backgroundColor:o.backgroundColor,backgroundHoverColor:o.backgroundHoverColor,textColor:o.textColor,textHoverColor:o.textHoverColor,borderRadius:o.borderRadius,backgroundFocusedColor:o.backgroundFocusedColor,textFocusedColor:o.textFocusedColor,padding:o.padding}}var NavigationSidebarItem=function(){function o(o){registerInstance(this,o);this.padding="x-small";h(this)}o.prototype.disconnectedCallback=function(){};o.prototype.render=function(){var o=isDemo()?useSidebarItemDemo(getProps(this)):useNavigationSidebarItem(getProps(this));return h$1(NavigationSidebarItemView,Object.assign({},o))};return o}();function useSidebarItemDemo(o){return cjs({states:{active:false},data:{label:o.label||"Dashboard",icon:o.icon||"house"},backgroundColor:o.backgroundColor,backgroundHoverColor:o.backgroundHoverColor,textColor:o.textColor,textHoverColor:o.textHoverColor,borderRadius:o.borderRadius,backgroundFocusedColor:o.backgroundFocusedColor,textFocusedColor:o.textFocusedColor,padding:o.padding},o.demoData||{},{arrayMerge:function(o,e){return e}})}export{NavigationSidebarItem as sqm_navigation_sidebar_item};