import{_ as y}from"./_plugin-vue_export-helper.eefbdd86.js";import{o as a,c as u,ae as d,_ as c,a1 as i,a2 as b,a3 as s,R as m,a4 as r,$ as f,a5 as k}from"./runtime-core.esm-bundler.ce5add0b.js";import{_ as B}from"./default-i18n.65d58dd6.js";const p={props:{dark:Boolean}},h=c("div",{class:"double-bounce1"},null,-1),w=c("div",{class:"double-bounce2"},null,-1),$=[h,w];function v(e,g,l,t,n,o){return a(),u("div",{class:d(["aioseo-loading-spinner",{dark:l.dark}])},$,2)}const S=y(p,[["render",v]]),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 l={newBadge:B("NEW!","all-in-one-seo-pack")};return(t,n)=>(a(),i(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:b(()=>[s(t.$slots,"loading",{},()=>[e.loading?(a(),i(m(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(l.newBadge),1)):r("",!0)]),_:3},40,["type","disabled","to","class"]))}};export{S as C,L as _};
