import{_ as b}from"./_plugin-vue_export-helper.BN1snXvA.js";import{o as a,c as u,n as d,g as c,h as l,w as y,e as s,t as m,d as r,k as f,u as k}from"./runtime-dom.esm-bundler.B6m80oiY.js";import{_ as B}from"./index.DSqmL29l.js";const p={props:{dark:Boolean}},h=c("div",{class:"double-bounce1"},null,-1),w=c("div",{class:"double-bounce2"},null,-1),v=[h,w];function $(e,g,i,t,n,o){return a(),u("div",{class:d(["aioseo-loading-spinner",{dark:i.dark}])},v,2)}const S=b(p,[["render",$]]),C={key:0,class:"new-badge"},L={__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:B("NEW!","broken-link-checker-seo")};return(t,n)=>(a(),l(f(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:y(()=>[s(t.$slots,"loading",{},()=>[e.loading?(a(),l(k(S),{key:0,dark:e.type==="gray"},null,8,["dark"])):r("",!0)]),s(t.$slots,"default"),e.newBadge&&!e.loading?(a(),u("span",C,m(i.newBadge),1)):r("",!0)]),_:3},40,["type","disabled","to","class"]))}};export{S as C,L as _};
