import{a as m,by as p,f as c,dq as d,fs as _,aP as l,aQ as u,o as f,h as F,j as o,p as r,q as s,t as C}from"./index.0d073eaa.js";import{D as M}from"./index.0fb15725.js";const P=m({name:"CurrentPermissionMode",components:{Divider:M},setup(){const e=p(),t=c(()=>e.getProjectConfig.permissionMode),{togglePermissionMode:n}=d();return{permissionMode:t,PermissionModeEnum:_,togglePermissionMode:n}}}),A={class:"mt-2"},D=s(" \u5F53\u524D\u6743\u9650\u6A21\u5F0F\uFF1A "),g=s(" \u5207\u6362\u6743\u9650\u6A21\u5F0F ");function h(e,t,n,v,k,y){const i=u("a-button"),a=u("Divider");return f(),F("div",A,[D,o(i,{type:"link"},{default:r(()=>[s(C(e.permissionMode===e.PermissionModeEnum.BACK?"\u540E\u53F0\u6743\u9650\u6A21\u5F0F":"\u524D\u7AEF\u89D2\u8272\u6743\u9650\u6A21\u5F0F"),1)]),_:1}),o(i,{class:"ml-4",onClick:e.togglePermissionMode,type:"primary"},{default:r(()=>[g]),_:1},8,["onClick"]),o(a)])}var b=l(P,[["render",h]]);export{b as default};
