1import{D as e,On as t,Qn as n,b as r,g as i,k as a,mt as o,nr as s,o as c,tr as l,v as u,y as d}from"./DBq4UlV4.js";import{t as f}from"./BDNMzG2s.js";import{t as p}from"./TgGIMoXd.js";import{t as m}from"./ZpJZef8o.js";var h=[`disabled`,`type`],g=[`textContent`],_=[`textContent`],v={key:2,class:`ui-button__amount`,"data-testid":`ui-button-amount`},y=f(a({__name:`UiButton`,props:{buttonStyle:{default:`primary`},buttonType:{default:`button`},customStyle:{},disabled:{type:Boolean,default:!1},icon:{default:null},iconSize:{default:`small`},isFullWidth:{type:Boolean,default:!1},isGhost:{type:Boolean,default:!1},isRound:{type:Boolean,default:!1},isTrailingIcon:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{default:null},text:{default:null},uppercase:{type:Boolean,default:!1},withAmount:{default:0}},setup(a){let f=i(()=>a.isGhost&&a.buttonStyle?`${a.buttonStyle}-ghost`:a.buttonStyle),y=i(()=>({"ui-button":!0,"ui-button--custom":!!a.customStyle,"ui-button--disabled":a.disabled,"ui-button--loading":a.loading,"ui-button--full-width":a.isFullWidth,"ui-button--icon":!!a.icon,"ui-button--round":a.isRound,"ui-button--uppercase":a.uppercase,"ui-button--filter":!!a.withAmount,[`ui-button--${f.value}`]:!!f.value&&!a.customStyle})),b=i(()=>a.customStyle);return(i,f)=>(o(),r(`button`,{class:n(t(y)),disabled:a.disabled||a.loading,type:a.buttonType,style:l(t(b))},[a.loading?(o(),r(c,{key:0},[e(m,{"is-small":``}),a.loadingText?(o(),r(`span`,{key:0,class:`ui-button__text ui-button__text--loading`,textContent:s(a.loadingText)},null,8,g)):d(``,!0)],64)):(o(),r(c,{key:1},[a.icon?(o(),u(p,{key:0,name:a.icon,class:n([`ui-button__icon`,[`ui-button__icon--${a.iconSize}`,{"ui-button__icon--trailing":a.isTrailingIcon}]])},null,8,[`name`,`class`])):d(``,!0),a.text?(o(),r(`span`,{key:1,class:`ui-button__text`,textContent:s(a.text)},null,8,_)):d(``,!0)],64)),a.withAmount&&a.withAmount>
10&&!a.loading?(o(),r(`div`,v,s(a.withAmount),1)):d(``,!0)],14,h))}}),[[`__scopeId`,`data-v-2f065af8`]]);export{y as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.