!function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function n(n){for(var r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&a(_,null,[a("div",{class:j.sectionTitle},[a("i",null,null),l("功能权限")]),a(y,{border:!1,class:j.functionGrid},(n=e=t.value.menuButtons.map((function(e){return a(b,null,{icon:function(){return a(k,{class:j.functionImg,src:e.buttonImage},null)},text:function(){return a("div",{class:[j.functionText,"van-ellipsis"]},[e.title])}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!p(n)?e:{default:function(){return[e]}}))]),a(T,{position:"bottom"},{default:function(){return[a("div",{class:["btnGroup","btnMore"],style:{paddingLeft:"13px",paddingRight:"13px"}},[g.user.data.manageAdmin&&a(s,{type:"primary",round:!0,onClick:function(){return r.menuStatus=!0}},{default:function(){return[l("修改权限")]}}),a(s,{type:"primary",round:!0,color:"#64A9FF",onClick:function(){return r.status=!0}},{default:function(){return["ACTIVATION"===t.value.status&&"冻结账号","LOCKED"===t.value.status&&"解冻账号"]}})])]}}),a(x,{modelValue:r.menuStatus,"onUpdate:modelValue":function(e){return r.menuStatus=e},destroy:!0},{default:function(){return[a(A,{onClose:function(){return r.menuStatus=!1},onSuccess:function(){return C()},teacherId:t.value.id,menus:t.value.menuButtons},null)]}}),a(h,{show:r.status,"onUpdate:show":function(e){return r.status=e},message:"".concat("ACTIVATION"===t.value.status?"冻结后该管理老师将无法登录\n确认需要冻结吗?":"确认需要解冻吗?"),messageAlign:"left",showCancelButton:!0,onConfirm:S},{title:function(){return a("div",{class:j.dialogTitle},[a("i",null,null),"ACTIVATION"===t.value.status?"冻结":"解冻",l("管理老师")])}})])}}}))}}}))}();