import{A as t}from"./AmaTRG5a.js";import{u as r}from"./7pZkuj9N.js";import{_ as s,d as l,o as i}from"./Bgmy51Qv.js";const p={setup(){const{setRequest:e}=r();return{setRequest:e}},name:"ClearCacheBtn",data(){return{clearingCache:!1}},props:{color:{type:String,default:"white"}},mixins:[],components:{AjaxButton:t},computed:{},methods:{async clearCache(){this.clearingCache=!0,await this.setRequest({params:{},api:"clearCache"}),this.clearingCache=!1}}};function u(e,h,a,m,c,o){const n=t;return i(),l(n,{type:"button",class:"clear-cache","loading-text":"",color:a.color,text:e.$t("setting.cClear"),"fetching-data":c.clearingCache,onClicked:o.clearCache},null,8,["color","text","fetching-data","onClicked"])}const f=s(p,[["render",u]]);export{f as _};
