import{_ as a,o as r,c as s,a as g,h as u,i as o,C as p,n as h}from"./entry.01d4b5f9.js";const f={props:{icon:{type:String,default:"loupe"}}},y={class:"inline-block fill-current stroke-current stroke-0"},m=["xlink:href"];function x(t,n,e,c,l,i){return r(),s("svg",y,[g("use",{"xlink:href":`#icon-${e.icon}`},null,8,m)])}const _=a(f,[["render",x]]),b={props:{icon:{type:String||null,default:null},design:{type:String,default:"1"},size:{type:String,default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},computed:{classes(){const t={1:"bg-white hover:bg-primary-lightest hover:text-primary-light text-[#4C6287]  text-primary active:bg-primary-lighter active:text-primary-light focus:ring-2 ring-primary-light",2:"bg-transparent border border-primary-lightest  text-primary-lightest  hover:bg-white hover:text-primary active:bg-primary-lighter active:text-primary-light focus:border-transparent focus:ring-2 ring-[#506184]",3:"bg-ternary hover:bg-ternary-light  border-primary-lightest  text-white  hover:text-white active:bg-ternary-lightest active:text-ternary-lighter focus:ring-1  focus:text-ternary focus:bg-transparent focus:ring-ternary",4:"bg-secondary hover:bg-secondary-light  border-primary-lightest  text-white  hover:text-white active:bg-secondary-lightest active:text-secondary-lighter focus:ring-1  focus:text-secondary focus:bg-transparent focus:ring-secondary",5:"bg-red-500 hover:bg-red-600 border-red-500  text-white  hover:text-white active:bg-red-500 active:text-red-600 focus:ring-1  focus:text-red-500 focus:bg-transparent focus:ring-red-500"},n={sm:"leading-none py-3 px-6 rounded-full",md:"leading-none py-4 px-6 rounded-full",lg:"leading-none py-5 px-6 rounded-full"},e="opacity-50 cursor-not-allowed pointer-events-none";return`${t[this.design]} ${n[this.size]} ${this.disabled?e:""}`}}},v={key:1,class:"pi pi-spin pi-spinner ml-5"};function $(t,n,e,c,l,i){const d=_;return r(),s("button",{class:h(`${i.classes} flex select-none items-center justify-center text-[0.938rem] font-medium outline-none transition-all`)},[e.icon?(r(),u(d,{key:0,icon:e.icon,class:"mr-2 h-[1rem] w-[1rem]"},null,8,["icon"])):o("",!0),p(t.$slots,"default"),e.loading?(r(),s("i",v)):o("",!0)],2)}const w=a(b,[["render",$]]);export{w as _,_ as a};
//# sourceMappingURL=RoundedButton.f48696b9.js.map
