import{h as r}from"./p-083180bf.js";import{j as a}from"./p-d0993bb9.js";import{c as o}from"./p-cef45012.js";import{g as s}from"./p-49b20dae.js";function t(t){const{states:n,data:e,padding:i="x-small"}=t,m=t.backgroundHoverColor||"var(--sqm-primary-button-background-hover)",l=t.backgroundFocusedColor||"var(--sqm-primary-button-background)",c=t.textFocusedColor||"var(--sqm-primary-button-color)",p={ItemContainer:{display:"flex","background-color":`${n.active?l:t.backgroundColor||"var(--sqm-portal-background)"}`,borderRadius:t.borderRadius?`${t.borderRadius}px`:"var(--sqm-border-radius-normal)",padding:`var(--sl-spacing-${i})`,"text-decoration":"none",color:n.active?c:t.textColor||"var(--sqm-text)","align-items":"center",...s({direction:"row",size:"var(--sl-font-size-small)"}),"&:hover":{cursor:"pointer",background:n.active?l:m,color:n.active?c:t.textHoverColor||"var(--sqm-primary-button-color-hover)"}},Label:{margin:"0"},Icon:{"flex-shrink":"0"}},d=o(p),b=d.toString();return r("a",{part:"sqm-link",href:e.path,onClick:r=>{r.preventDefault(),a.push(e.path)},class:d.classes.ItemContainer},r("style",{type:"text/css"},b),r("sl-icon",{class:d.classes.Icon,name:e.icon}),r("p",{class:d.classes.Label,part:"sqm-label"},e.label))}export{t as N}