1import{U as u,J as a,l as f,i as c,f as m,m as b,K as h,p as o,L as k}from"./C61vq3Kj.js";const v=u("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),g=["disabled"],_={__name:"PButton",props:{size:{type:String,default:"md"},type:{type:String,validator:t=>["","primary","primary-black","danger","warning","secondary","tertiary","tertiary-color","circle","button","submit","reset"].includes(t),default:""},color:{type:String,validator:t=>!t||["violet"].includes(t),default:""},ghost:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},tertiary:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},nativeAttrs:{type:Object,default:()=>({})}},setup(t){const e=t,n=["button","submit","reset"],i=a(()=>e.disabled||e.loading),d=a(()=>n.includes(e.type)?"":e.type),p=a(()=>n.includes(e.type)?{...e.nativeAttrs,type:e.type}:e.nativeAttrs),y=a(()=>{const s=[`size-${e.size}`,d.value].filter(l=>!!l),r=e.color?`color-${e.color}`:"";return["ghost","primary","secondary","tertiary","circle"].filter(l=>e[l]).concat(s).concat(r?[r]:[]).concat(i.value?["disabled"]:[])});return(s,r)=>(c(),f("button",k({class:["p-button",o(y)],disabled:o(i)},o(p)),[t.loading?(c(),m(o(v),{key:0,size:16,class:"mr-6 animate-spin"})):b("",!0),h(s.$slots,"default")],16,g))}};export{_};
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.