import{_ as b}from"./dynamic-import-helper.-B9-7_nw.js";import{o as a,c as u,K as d,B as c,_ as y,t as l,v as m,J as s,C as f,E as r,x as k,f as B}from"./index.C4hPdFye.js";const p={props:{dark:Boolean}},h=c("div",{class:"double-bounce1"},null,-1),v=c("div",{class:"double-bounce2"},null,-1),w=[h,v];function $(e,g,i,t,n,o){return a(),u("div",{class:d(["aioseo-loading-spinner",{dark:i.dark}])},w,2)}const S=b(p,[["render",$]]),C={key:0,class:"new-badge"},A={__name:"Button",props:{color:String,tag:{type:String,default:"button",description:"Button html tag"},block:Boolean,loading:Boolean,wide:Boolean,disabled:Boolean,type:{type:String,default:"default",description:"Button type (blue|black|green|red|gray|wp-blue)"},nativeType:{type:String,default:"button",description:"Button native type (e.g button, input etc)"},size:{type:String,default:"",description:"Button size (small-table|small|medium|large)"},link:{type:Boolean,description:"Whether button is a link (no borders or background)"},to:{type:[Object,String],description:"The router link object or string"},newBadge:{type:Boolean,description:"Whether to show the new badge"}},setup(e){const i={newBadge:y("NEW!","aioseo-broken-link-checker")};return(t,n)=>(a(),l(k(e.tag),{type:e.tag==="button"?e.nativeType:"",disabled:e.disabled||e.loading,to:e.tag==="router-link"?e.to:"",onMouseenter:n[0]||(n[0]=o=>t.$emit("mouseenter",o)),onMouseleave:n[1]||(n[1]=o=>t.$emit("mouseleave",o)),class:d(["aioseo-button",[{[e.type]:e.type},{[e.size]:e.size},{"btn-link":e.link},{disabled:e.disabled&&e.tag!=="button"},{color:e.color},{loading:e.loading}]])},{default:m(()=>[s(t.$slots,"loading",{},()=>[e.loading?(a(),l(B(S),{key:0,dark:e.type==="gray"},null,8,["dark"])):r("",!0)]),s(t.$slots,"default"),e.newBadge&&!e.loading?(a(),u("span",C,f(i.newBadge),1)):r("",!0)]),_:3},40,["type","disabled","to","class"]))}};export{S as C,A as _};
