import{Z as y,u as b,ah as k,an as h,A as O,v as R,al as f,b7 as v,b8 as M,b9 as A,q as B,_ as T}from"./index.js";import{c as $}from"./copyTextToClipboard-3ca69a78.js";import{b4 as x,a6 as F}from"./antd-0679333d.js";import{d as N,u as P,Z as j,_ as w,k as o,a5 as c,a1 as D,a6 as i,G as u,a0 as d}from"./vue-72a104e4.js";const G=N({name:"SettingFooter",components:{CopyOutlined:x,RedoOutlined:F},setup(){const e=y(),{prefixCls:p}=b("setting-footer"),{t:s}=R(),{createSuccessModal:g,createMessage:a}=B(),m=k(),r=h(),t=O();function n(){$(JSON.stringify(P(t.getProjectConfig),null,2),null),g({title:s("layout.setting.operatingTitle"),content:s("layout.setting.operatingContent")})}function C(){try{t.setProjectConfig(f);const{colorWeak:l,grayMode:S}=f;v(),M(l),A(S),a.success(s("layout.setting.resetSuccess"))}catch(l){a.error(l)}}function _(){localStorage.clear(),t.resetAllState(),e.resetState(),m.resetState(),r.resetState(),location.reload()}return{prefixCls:p,t:s,handleCopy:n,handleResetSetting:C,handleClearAndRedo:_}}});function I(e,p,s,g,a,m){const r=i("CopyOutlined"),t=i("a-button"),n=i("RedoOutlined");return j(),w("div",{class:D(e.prefixCls)},[o(t,{type:"primary",block:"",onClick:e.handleCopy},{default:c(()=>[o(r,{class:"mr-2"}),u(" "+d(e.t("layout.setting.copyBtn")),1)]),_:1},8,["onClick"]),o(t,{color:"warning",block:"",onClick:e.handleResetSetting,class:"my-3"},{default:c(()=>[o(n,{class:"mr-2"}),u(" "+d(e.t("common.resetText")),1)]),_:1},8,["onClick"]),o(t,{color:"error",block:"",onClick:e.handleClearAndRedo},{default:c(()=>[o(n,{class:"mr-2"}),u(" "+d(e.t("layout.setting.clearBtn")),1)]),_:1},8,["onClick"])],2)}const z=T(G,[["render",I],["__scopeId","data-v-40d284fb"]]);export{z as default};
