import{_ as r}from"./index-CbGDU7fj.js";import{c as a,L as d,F as l,e as n,j as c,q as i}from"./vue-Bqg3cjzV.js";const p={name:"LoadingButton",emits:["clicked"],props:["task"],computed:{isLoading(){return this.$store.state.isLoading&&this.$store.state.loadingTask==this.task}},methods:{handleClick(){this.$store.state.loadingTask=this.task,this.$emit("clicked")}}},k={class:"visually-hidden"};function m(e,s,u,g,h,t){return i(),a("button",{type:"submit",onClick:s[0]||(s[0]=(...o)=>t.handleClick&&t.handleClick(...o))},[t.isLoading?(i(),a(l,{key:0},[s[1]||(s[1]=n("span",{class:"spinner-border spinner-border-lg",role:"status","aria-hidden":"true"},null,-1)),n("span",k,c(e.$trans("Loading"))+"...",1)],64)):d(e.$slots,"caption",{key:1})])}const f=r(p,[["render",m]]);export{f as L};
