import{h as t}from"./p-CAus4tQt.js";import{I as i}from"./p-CulpZvvY.js";const n=n=>{const{id:o,variant:a="primary",disabled:e=!1,iconName:s,icon:r,noPadding:d,noPaddingY:c,addClassIcon:l,ref:p,isLoading:u,title:b}=n,m=[`z-icon-button px-${d?0:"2 w-9"} py-${c?0:2}`,"primary"===a?"z-icon-button-primary":"outlined"===a?"z-icon-button-outlined":"text"===a?"z-icon-button-text":"hover:brightness-110 text-surface",e?"z-icon-button-disabled":""].join(" ");return t("button",{id:o,title:b,ref:p,class:m,disabled:e,onClick:t=>{e||u||!n.onClick||n.onClick(t)}},r||t(i,{name:u?"LoaderCircle":s,addClass:u?`animate-spin ${l||"size-5"}`:l}))};export{n as Z}