import{d as _,u as f,U as l,a2 as g,a3 as h,ad as R,af as i,k as a,G as u,a5 as d,V as v,a6 as O}from"./vue-vendor-CxLCUzY4.js";import{aG as M,bU as B}from"./antd-vue-vendor-CahNzUUa.js";import{bv as D,C as T,bS as A,ab as N,z as V,cJ as S,cR as $,cS as G,u as P,K as U,bl as j,_ as w}from"./index-Cy4uayzW.js";import"./vxe-table-vendor-Cdi8WfTx.js";const z=_({name:"SettingFooter",components:{CopyOutlined:B,RedoOutlined:M},setup(){const e=D(),{prefixCls:p}=T("setting-footer"),{t:o}=U(),{createSuccessModal:m,createMessage:r}=P(),C=A(),c=N(),t=V();function n(){const{isSuccessRef:s}=j(JSON.stringify(f(t.getProjectConfig),null,2));f(s)&&m({title:o("layout.setting.operatingTitle"),content:o("layout.setting.operatingContent")})}function y(){try{t.setProjectConfig(S);const{colorWeak:s,grayMode:b}=S;$(s),G(b),r.success(o("layout.setting.resetSuccess"))}catch(s){r.error(s)}}function k(){localStorage.clear(),t.resetAllState(),e.resetState(),C.resetState(),c.resetState(),location.reload()}return{prefixCls:p,t:o,handleCopy:n,handleResetSetting:y,handleClearAndRedo:k,isDev:!1}}});function F(e,p,o,m,r,C){const c=l("CopyOutlined"),t=l("a-button"),n=l("RedoOutlined");return g(),h("div",{class:O(e.prefixCls)},[e.isDev?(g(),R(t,{key:0,type:"primary",block:"",onClick:e.handleCopy},{default:i(()=>[a(c,{class:"mr-2"}),u(" "+d(e.t("layout.setting.copyBtn")),1)]),_:1},8,["onClick"])):v("",!0),a(t,{color:"warning",block:"",onClick:e.handleResetSetting,class:"my-3"},{default:i(()=>[a(n,{class:"mr-2"}),u(" "+d(e.t("common.resetText")),1)]),_:1},8,["onClick"]),a(t,{color:"error",block:"",onClick:e.handleClearAndRedo},{default:i(()=>[a(n,{class:"mr-2"}),u(" "+d(e.t("layout.setting.clearBtn")),1)]),_:1},8,["onClick"])],2)}const q=w(z,[["render",F],["__scopeId","data-v-735edce7"]]);export{q as default};
