!function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function n(n){for(var i=1;ispan{flex-shrink:0}._subjectContainer_kinw4_7 ._tagSubject_kinw4_13{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem}._manageCell_kinw4_18{padding:.4rem .34667rem}._manageCell_kinw4_18 .van-cell__title{flex:1 auto;flex-basis:20%}._manageCell_kinw4_18 ._teacherContent_kinw4_25{display:flex;align-items:center;justify-content:space-between}._manageCell_kinw4_18 ._teacherContent_kinw4_25 ._content_kinw4_30{width:1.86667rem}._manageCell_kinw4_18 ._teacherContent_kinw4_25 ._name_kinw4_33{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:1.86667rem}._manageCell_kinw4_18 ._teacherContent_kinw4_25 ._classNum_kinw4_40{text-align:center;width:1.6rem}._manageCell_kinw4_18 ._teacherContent_kinw4_25 ._num_kinw4_44{font-size:.53333rem;font-weight:700;color:#f67146;line-height:.64rem}._manageCell_kinw4_18 ._teacherContent_kinw4_25 ._numText_kinw4_50{font-size:.32rem;color:#333;line-height:.45333rem}._manageCell_kinw4_18 ._teacherContent_kinw4_25 ._messageImg_kinw4_55{margin-top:.13333rem;width:.64rem;height:.64rem}._manageCell_kinw4_18 ._avatarContainer_kinw4_60{position:relative}._manageCell_kinw4_18 ._avatarContainer_kinw4_60 ._avatarType_kinw4_63{position:absolute;left:.08rem;bottom:.05333rem;padding:0 .24rem}._manageCell_kinw4_18 ._img_kinw4_69{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._manageCell_kinw4_18 ._name_kinw4_33{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._manageCell_kinw4_18 ._phone_kinw4_82{font-size:.37333rem;color:#777;line-height:.53333rem}._manageCell_kinw4_18 ._status_kinw4_87{font-size:.42667rem;font-weight:500;color:#333}._manageCell_kinw4_18 ._frozen_kinw4_92{color:#f44541}._codeContainer_kinw4_95 ._codeImg_kinw4_95{width:8.61333rem;height:12.4rem;background:url(./assets/download.275aac0e.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_kinw4_95 ._codeImg_kinw4_95 ._codeContent_kinw4_102{padding-left:.21333rem}._codeContainer_kinw4_95 ._codeImg_kinw4_95 ._codeTitle_kinw4_105{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_kinw4_95 ._codeImg_kinw4_95 ._codeName_kinw4_115{padding:.96rem .21333rem 0;font-size:.48rem;font-weight:600;color:#fff}._codeContainer_kinw4_95 ._codeImg_kinw4_95 ._codeQr_kinw4_121{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_kinw4_95 ._codeImg_kinw4_95 ._codeQr_kinw4_121 img{width:100%;height:100%}._codeContainer_kinw4_95 ._codeImg_kinw4_95 ._codeBtnText_kinw4_134{margin:.4rem auto 0;display:inline-block;background:linear-gradient(135deg,#ff9c63 0%,#ff7144 100%);border-radius:.48rem;padding:.16rem .42667rem;font-size:.42667rem;font-weight:600;color:#fff}._codeContainer_kinw4_95 ._codeImg_kinw4_95 ._codeTips_kinw4_144{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#f16437;line-height:.48rem;text-align:center}._codeContainer_kinw4_95 ._close_kinw4_152{position:absolute;top:.32rem;right:.4rem}._codeContainer_kinw4_95 ._codeBottom_kinw4_157{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_kinw4_95 ._title_kinw4_164{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_kinw4_95 ._title_kinw4_164 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_kinw4_95 ._shareImg_kinw4_179{width:1.25333rem;height:1.25333rem}._codeContainer_kinw4_95 ._shareText_kinw4_183{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}\n",document.head.appendChild(o),System.register(["./index-legacy.81fd4e6f.js","./index-legacy.c7f919fb.js","./index-legacy.00d82922.js","./icon-message-legacy.a5fad892.js","./icon_teacher-legacy.07765f44.js","./index-legacy.a9944503.js","./index-legacy.0e551442.js","./index-legacy.b9c4417f.js","./index-legacy.8271e59c.js","./index-legacy.75e78f7b.js","./index-legacy.16d013c6.js","./index-legacy.aa24f77a.js","./index-legacy.c74636d9.js","./index-legacy.2605abd7.js","./index-legacy.40afcdaf.js","./index-legacy.819d05e3.js","./index-legacy.0256f666.js","./index-legacy.57a461ad.js","./use-tab-status-legacy.7b80393c.js","./index-legacy.e997fd26.js","./index-legacy.8bfb99fc.js","./index-legacy.2a9471c6.js"],(function(e){"use strict";var t,i,o,r,c,s,l,_,u,d,m,f,g,h,w,p,k,b,v,C,x,j,y,S,I,T,O,P,z,N;return{setters:[function(e){t=e.O},function(e){i=e.O},function(e){o=e.O},function(e){r=e.i,c=e.a,s=e.b},function(e){l=e.i},function(e){_=e.d,u=e.ag,d=e.r,m=e.$,f=e.c,g=e.a5,h=e.q,w=e.ai,p=e.P,k=e.k,b=e.aj,v=e.m,C=e.f},function(e){x=e.O},function(e){j=e.O},function(e){y=e.L},function(e){S=e.C},function(e){I=e.C},function(e){T=e.I},function(e){O=e.T},function(e){P=e.G,z=e.a},function(e){N=e.P},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var L={searchBand:"_searchBand_kinw4_1",subjectContainer:"_subjectContainer_kinw4_7",tagSubject:"_tagSubject_kinw4_13",manageCell:"_manageCell_kinw4_18",teacherContent:"_teacherContent_kinw4_25",content:"_content_kinw4_30",name:"_name_kinw4_33",classNum:"_classNum_kinw4_40",num:"_num_kinw4_44",numText:"_numText_kinw4_50",messageImg:"_messageImg_kinw4_55",avatarContainer:"_avatarContainer_kinw4_60",avatarType:"_avatarType_kinw4_63",img:"_img_kinw4_69",phone:"_phone_kinw4_82",status:"_status_kinw4_87",frozen:"_frozen_kinw4_92",codeContainer:"_codeContainer_kinw4_95",codeImg:"_codeImg_kinw4_95",codeContent:"_codeContent_kinw4_102",codeTitle:"_codeTitle_kinw4_105",codeName:"_codeName_kinw4_115",codeQr:"_codeQr_kinw4_121",codeBtnText:"_codeBtnText_kinw4_134",codeTips:"_codeTips_kinw4_144",close:"_close_kinw4_152",codeBottom:"_codeBottom_kinw4_157",title:"_title_kinw4_164",shareImg:"_shareImg_kinw4_179",shareText:"_shareText_kinw4_183"};function B(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!b(e)}e("default",_({name:"companion-teacher",setup:function(){var e=u(),_=d({showMessage:!1,showPopover:!1,oPopover:!1,subjectList:[{text:"全部声部",value:"ALL"}],action:[{name:"解绑",id:!0},{name:"绑定",id:!1,selected:!0}],list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},subjectText:"全部声部",statusText:"绑定",params:{keyword:null,delFlag:!1,subjectId:null,page:1,rows:20},selectItem:{}}),b=function(){var e=a(regeneratorRuntime.mark((function e(){var n,t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:50}});case 3:n=e.sent,t=n.data,(t.rows||[]).forEach((function(e){_.subjectList.push({text:e.subjectName,value:e.subjectId})})),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=a(regeneratorRuntime.mark((function e(){var t,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.post("/api-school/teacher/page",{data:n(n({},_.params),{},{schoolId:C.user.data.school.id})});case 3:if(t=e.sent,_.listState.loading=!1,_.listState.refreshing=!1,i=t.data||{},!(_.list.length>0&&1===i.current)){e.next=9;break}return e.abrupt("return");case 9:(a=i.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),_.list=_.list.concat(a),_.listState.finished=i.current>=i.pages,_.params.page=i.current+1,_.listState.dataShow=_.list.length>0,e.next=22;break;case 17:e.prev=17,e.t0=e.catch(0),_.listState.dataShow=!1,_.listState.refreshing=!1,_.listState.finished=!0;case 22:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(){return e.apply(this,arguments)}}(),R=function(){_.params.page=1,_.list=[],_.listState.dataShow=!0,_.listState.loading=!1,_.listState.finished=!1,M()};return m(a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:b(),M();case 2:case"end":return e.stop()}}),e)})))),function(){var n;return f("div",{class:!_.listState.dataShow&&"emptyRootContainer"},[f(o,{position:"top",onGetHeight:function(e){_.listState.height=e}},{default:function(){return[f(t,{border:!1},{right:function(){return f(g,{name:"plus",size:19,onClick:function(){e.push({path:"save-share-image",query:{type:"teacher"}})}},null)}}),f(i,{placeholder:"请输入伴学指导姓名",class:"searchGroupInput",onSearch:function(e){_.params.keyword=e,R()}},null),f("div",{class:"searchGroup"},[f("div",{class:["searchItem",_.showPopover&&"searchItem-active"],onClick:function(){return _.showPopover=!0}},[f("span",null,[_.subjectText]),f("i",{class:"arrow"},null)]),f("div",{class:["searchItem",_.oPopover&&"searchItem-active"],onClick:function(){return _.oPopover=!0}},[f("span",null,[_.statusText]),f("i",{class:"arrow"},null)])])]}}),_.listState.dataShow?f(x,{modelValue:_.listState.refreshing,"onUpdate:modelValue":function(e){return _.listState.refreshing=e},onRefresh:R,style:{minHeight:"calc(100vh - ".concat(_.listState.height,"px)")}},{default:function(){return[f(y,{finished:_.listState.finished,finishedText:" ",class:[L.liveList],onLoad:M,style:{paddingTop:"12px"},immediateCheck:!1},B(n=_.list.map((function(n){return f(S,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return function(n){e.push({path:"/companion-teacher-detail",query:{id:n.id}})}(n)}},{default:function(){return[f(I,{center:!0,isLink:!0,class:L.manageCell,clickable:!1},{icon:function(){return f("div",{class:L.avatarContainer},[f(T,{class:L.img,src:n.avatar?n.avatar:l,fit:"cover"},null),n.delFlag&&f(O,{class:L.avatarType,round:!0,color:"#F44541",textColor:"#fff"},{default:function(){return[h("解绑")]}})])},title:function(){return f("div",{class:L.teacherContent},[f("div",{class:L.content},[f("p",{class:[L.name,"van-ellipsis"]},[n.nickname])])])},value:function(){return f("div",{class:L.teacherContent},[f("div",{class:L.classNum},[f("p",{class:L.num},[n.completedCourseScheduleNum||0,h("/"),n.totalCourseScheduleNum||0]),f("p",{class:L.numText},[h("课时")])]),f("div",{class:L.message,onClick:function(e){e.stopPropagation(),e.preventDefault(),_.showMessage=!0,_.selectItem=n}},[f(T,{class:L.messageImg,src:r},null)])])}}),f(I,{center:!0},{title:function(){return f("div",{class:L.subjectContainer},[f("span",null,[h("声部:")]),f("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},[n.subjectNames&&n.subjectNames.length>0&&n.subjectNames.map((function(e){return f(O,{type:"primary",class:L.tagSubject,color:"#FFE7DA",textColor:"#F67146"},B(e)?e:{default:function(){return[e]}})}))])])}})]}})})))?n:{default:function(){return[n]}})]}}):f(w,{btnStatus:!1,tips:"暂无伴学指导"},null),f(p,{show:_.showMessage,"onUpdate:show":function(e){return _.showMessage=e},position:"bottom",style:{background:"transparent"}},{default:function(){return[f("div",{class:L.codeContainer},[f("div",{class:L.codeBottom},[f(g,{name:"cross",size:22,class:L.close,color:"#666",onClick:function(){return _.showMessage=!1}},null),f("h3",{class:L.title},[f("i",null,null),h("联系方式")]),f(P,{columnNum:2,border:!1},{default:function(){return[f(z,{onClick:function(){k({api:"joinChatGroup",content:{type:"single",id:_.selectItem.imUserId}}),_.showMessage=!1}},{icon:function(){return f(T,{class:L.shareImg,src:c},null)},text:function(){return f("div",{class:L.shareText},[h("发送消息")])}}),f(z,{onClick:function(){k({api:"callPhone",content:{phone:_.selectItem.phone}}),_.showMessage=!1}},{icon:function(){return f(T,{class:L.shareImg,src:s},null)},text:function(){return f("div",{class:L.shareText},[h("拨打电话")])}})]}})])])]}}),f(j,{show:_.oPopover,"onUpdate:show":function(e){return _.oPopover=e},actions:_.action,onSelect:function(e){_.action.forEach((function(e){e.selected=!1})),e.selected=!0,_.statusText=e.name,_.params.delFlag="ALL"===e.id?null:e.id,_.oPopover=!1,R()}},null),f(p,{show:_.showPopover,"onUpdate:show":function(e){return _.showPopover=e},round:!0,position:"bottom",class:"popupBottomSearch"},{default:function(){return[f(N,{columns:_.subjectList,onCancel:function(){return _.showPopover=!1},onConfirm:function(e){return function(e){_.subjectText=e.selectedOptions[0].text,_.params.subjectId="ALL"===e.selectedOptions[0].value?null:e.selectedOptions[0].value,_.showPopover=!1,R()}(e)}},null)]}})])}}}))}}}))}();