!function(){var e=document.createElement("style");e.innerHTML="._searchBand_1u71i_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._manageCell_1u71i_7{padding:.4rem .34667rem}._manageCell_1u71i_7 ._img_1u71i_10{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._manageCell_1u71i_7 ._name_1u71i_17{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:5.33333rem}._manageCell_1u71i_7 ._phone_1u71i_24{padding-top:.05333rem;font-size:.37333rem;color:#777;line-height:.53333rem}._manageCell_1u71i_7 ._status_1u71i_30{font-size:.42667rem;font-weight:500;color:#333}._manageCell_1u71i_7 ._frozen_1u71i_35{color:#f44541}._codeContainer_1u71i_38 ._codeImg_1u71i_38{width:8.61333rem;height:12.4rem;background:url(./assets/download.44c3f17d.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeContent_1u71i_45{padding-left:.21333rem}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeTitle_1u71i_48{text-align:center;padding-top:.34667rem;font-size:.64rem;font-weight:700;color:#fff;text-shadow:.02667rem .02667rem .18667rem #f4672a;max-width:90%;padding-left:5%}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeName_1u71i_58{padding:.96rem .21333rem 0;font-size:.48rem;font-weight:600;color:#fff}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeQr_1u71i_64{margin:.61333rem auto 0;width:6.16rem;height:6.16rem;padding:.26667rem;background:linear-gradient(180deg,#ffffff 0%,#ffffff 100%);border-radius:.29333rem;overflow:hidden}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeQr_1u71i_64 img{width:100%;height:100%}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeBtnText_1u71i_77{margin:.4rem auto 0;display:inline-block;background:linear-gradient(133deg,#bb9dff 0%,#6d82ff 100%);border-radius:.48rem;padding:.16rem .42667rem;font-size:.42667rem;font-weight:600;color:#fff}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeTips_1u71i_87{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#5a6dee;line-height:.48rem;text-align:center}._codeContainer_1u71i_38 ._close_1u71i_95{position:absolute;top:.32rem;right:.4rem}._codeContainer_1u71i_38 ._codeBottom_1u71i_100{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_1u71i_38 ._title_1u71i_107{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_1u71i_38 ._title_1u71i_107 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_1u71i_38 ._shareImg_1u71i_122{width:1.25333rem;height:1.25333rem}._codeContainer_1u71i_38 ._shareText_1u71i_126{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.a530d593.js","./index-legacy.ad813f4d.js","./icon_teacher-legacy.07765f44.js","./index-legacy.d64e5695.js","./index-legacy.4e015ad0.js","./index-legacy.d552a2f3.js","./index-legacy.fad72574.js","./index-legacy.918b8c74.js","./index-legacy.fecc738b.js","./index-legacy.3a3e070a.js","./index-legacy.8c254533.js","./use-tab-status-legacy.91417466.js"],(function(e){"use strict";var t,i,a,n,o,r,_,s,d,c,l,u,m,g,h,f,p,C,w,y;return{setters:[function(e){t=e.d,i=e.ag,a=e.r,n=e.$,o=e.c,r=e.aj,_=e.a5,s=e.ak,d=e.al,c=e.m,l=e.g},function(e){u=e.O},function(e){m=e.O},function(e){g=e.i},function(e){h=e.O},function(e){f=e.m},function(e){p=e.O},function(e){C=e.L},function(e){w=e.C},function(e){y=e.I},function(){},function(){},function(){}],execute:function(){var S={searchBand:"_searchBand_1u71i_1",manageCell:"_manageCell_1u71i_7",img:"_img_1u71i_10",name:"_name_1u71i_17",phone:"_phone_1u71i_24",status:"_status_1u71i_30",frozen:"_frozen_1u71i_35",codeContainer:"_codeContainer_1u71i_38",codeImg:"_codeImg_1u71i_38",codeContent:"_codeContent_1u71i_45",codeTitle:"_codeTitle_1u71i_48",codeName:"_codeName_1u71i_58",codeQr:"_codeQr_1u71i_64",codeBtnText:"_codeBtnText_1u71i_77",codeTips:"_codeTips_1u71i_87",close:"_close_1u71i_95",codeBottom:"_codeBottom_1u71i_100",title:"_title_1u71i_107",shareImg:"_shareImg_1u71i_122",shareText:"_shareText_1u71i_126"};e("default",t({name:"companion-teacher",setup(){const e=i(),t=a({oPopover:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},statusText:"状态",params:{keyword:null,status:null,page:1,rows:20},isClick:!1,actions:[{name:"全部",id:"ALL",selected:!0},{name:"冻结",id:"LOCKED"},{name:"正常",id:"ACTIVATION"}]}),x=async()=>{try{if(t.isClick)return;t.isClick=!0;const e=await c.post("/api-school/schoolStaff/page",{data:{...t.params,schoolId:l.user.data.school.id}});t.listState.loading=!1,t.listState.refreshing=!1;const i=e.data||{};if(t.list.length>0&&1===i.current)return;t.list=t.list.concat(i.rows||[]),t.listState.finished=i.current>=i.pages,t.params.page=i.current+1,t.listState.dataShow=t.list.length>0,t.isClick=!1}catch{t.listState.dataShow=!1,t.listState.finished=!0,t.listState.refreshing=!1,t.isClick=!1}},b=()=>{t.params.page=1,t.list=[],t.listState.dataShow=!0,t.listState.loading=!1,t.listState.finished=!1,x()};return n((async()=>{x()})),()=>{let i;return o("div",{class:!t.listState.dataShow&&"emptyRootContainer"},[o(m,{position:"top",onGetHeight:e=>{t.listState.height=e}},{default:()=>[o(r,{border:!1},{right:()=>o(_,{name:"plus",size:19,onClick:()=>{e.push({path:"save-share-image",query:{type:"manage"}})}},null)}),o(u,{placeholder:"请输入管理老师姓名",onSearch:e=>{console.log(e),t.params.keyword=e,b()}},{left:()=>o("div",{class:["searchItem-left",t.oPopover?"searchItem-active":""],onClick:()=>t.oPopover=!0},[o("span",null,[t.statusText])])})]}),t.listState.dataShow?o(h,{modelValue:t.listState.refreshing,"onUpdate:modelValue":e=>t.listState.refreshing=e,onRefresh:b,style:{minHeight:`calc(100vh - ${t.listState.height}px)`}},{default:()=>{return[o(C,{finished:t.listState.finished,finishedText:" ",class:[S.liveList],onLoad:x,style:{paddingTop:"12px"},immediateCheck:!1},(a=i=t.list.map((t=>o(w,{center:!0,isLink:!0,class:S.manageCell,onClick:()=>(t=>{e.push({path:"/manage-teacher-detail",query:{id:t.id}})})(t)},{icon:()=>o(y,{class:S.img,src:t.avatar?t.avatar:g},null),title:()=>o("div",{class:S.content},[o("p",{class:[S.name,"van-ellipsis"]},[t.nickname]),o("p",{class:S.phone},[t.phone])]),value:()=>o("span",{class:[S.status,"LOCKED"===t.status?S.frozen:""]},[f[t.status]])}))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!d(a)?i:{default:()=>[i]}))];var a}}):o(s,{btnStatus:!1,tips:"暂无管理老师"},null),o(p,{show:t.oPopover,"onUpdate:show":e=>t.oPopover=e,actions:t.actions,onSelect:e=>{t.actions.forEach((e=>{e.selected=!1})),e.selected=!0,t.statusText=e.name,t.params.status="ALL"===e.id?null:e.id,t.oPopover=!1,b()}},null)])}}}))}}}))}();