var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var a,o=1,e=arguments.length;o<e;o++){a=arguments[o];for(var t in a)if(Object.prototype.hasOwnProperty.call(a,t))r[t]=a[t]}return r};return __assign.apply(this,arguments)};import{h}from"./index-38ad4957.js";import{j as jn}from"./index.module-b23fdad8.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{g as gap}from"./mixins-f750863a.js";function NavigationSidebarItemView(r){var a=r.states,o=r.data,e=r.padding,t=e===void 0?"x-small":e;var s=r.backgroundColor||"var(--sqm-portal-background)";var n=r.backgroundHoverColor||"var(--sqm-primary-button-background-hover)";var i=r.backgroundFocusedColor||"var(--sqm-primary-button-background)";var c=r.textFocusedColor||"var(--sqm-primary-button-color)";var l={ItemContainer:__assign(__assign({display:"flex","background-color":""+(a.active?i:s),borderRadius:r.borderRadius?r.borderRadius+"px":"var(--sqm-border-radius-normal)",padding:"var(--sl-spacing-"+t+")","text-decoration":"none",color:a.active?c:r.textColor||"var(--sqm-text)","align-items":"center"},gap({direction:"row",size:"var(--sl-font-size-small)"})),{"&:hover":{cursor:"pointer",background:a.active?i:n,color:a.active?c:r.textHoverColor||"var(--sqm-primary-button-color-hover)"}}),Label:{margin:"0"},Icon:{"flex-shrink":"0"}};var d=createStyleSheet(l);var m=d.toString();return h("a",{part:"sqm-link",href:o.path,onClick:function(r){r.preventDefault();jn.push(o.path)},class:d.classes.ItemContainer},h("style",{type:"text/css"},m),h("sl-icon",{class:d.classes.Icon,name:o.icon}),h("p",{class:d.classes.Label,part:"sqm-label"},o.label))}export{NavigationSidebarItemView as N};