!function(){function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function e(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e,n,r,o,a,i){try{var c=t[a](i),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(r,o)}System.register(["./index-legacy.c52b7cbb.js","./index-legacy.4e7f0184.js","./index-legacy.2ae28dc5.js","./index.module-legacy.6e7ede01.js","./index-legacy.ca3a829d.js","./index-legacy.9ba54886.js","./index-legacy.9fb17640.js","./index-legacy.51e5b886.js","./index-legacy.ef15ba2a.js","./use-tab-status-legacy.17f6d490.js"],(function(t){"use strict";var n,o,a,i,c,s,u,l,f,d,p,h,g,b,y,v,w,m,j,x;return{setters:[function(t){n=t.O},function(t){o=t.O},function(t){a=t.d,i=t.aQ,c=t.R,s=t.X,u=t.k,l=t.a2,f=t.l,d=t.be,p=t.F,h=t.ad,g=t.g,b=t.s},function(t){y=t.s},function(t){v=t.o},function(t){w=t.P},function(t){m=t.L},function(t){j=t.C},function(t){x=t.T},function(){}],execute:function(){t("default",a({name:"my-orchestra",setup:function(){var t=i(),a=c({showPopover:!1,actions:[{text:"全部乐团",color:"var(--van-primary-color)"},{text:"交付团"},{text:"晋升团"}],list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,status:null,page:1,rows:20}}),O=function(){var t,n=(t=regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g.post("/api-school/orchestra/page",{data:e(e({},a.params),{},{schoolId:b.user.data.school.id})});case 3:if(n=t.sent,a.listState.loading=!1,r=n.data||{},!(a.list.length>0&&1===r.current)){t.next=8;break}return t.abrupt("return");case 8:a.list=a.list.concat(r.rows||[]),a.listState.finished=r.current>=r.pages,a.params.page=r.current+1,a.listState.dataShow=a.list.length>0,t.next=18;break;case 14:t.prev=14,t.t0=t.catch(0),a.listState.dataShow=!1,a.listState.finished=!0;case 18:case"end":return t.stop()}}),t,null,[[0,14]])})),function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function c(t){r(i,o,a,c,s,"next",t)}function s(t){r(i,o,a,c,s,"throw",t)}c(void 0)}))});return function(){return n.apply(this,arguments)}}();return s((function(){O()})),function(){var e,r;return u(p,null,[u(o,{position:"top"},{default:function(){return[u(n,null,{right:function(){return u(l,{name:"plus",size:19,color:"#333",onClick:function(){t.push("/create-orchestra")}},null)}}),u("div",{style:{padding:"12px 13px",background:"#F8F8F8"}},[u(w,{show:a.showPopover,"onUpdate:show":function(t){return a.showPopover=t},actions:a.actions,showArrow:!1,placement:"bottom-start",offset:[0,12]},{reference:function(){return u("div",{class:y.searchBand},[f("全部乐团 "),u(l,{name:a.showPopover?"arrow-up":"arrow-down"},null)])}})])]}}),a.listState.dataShow?u(m,{loading:a.listState.loading,"onUpdate:loading":function(t){return a.listState.loading=t},finished:a.listState.finished,finishedText:" ",class:[y.liveList],onLoad:O,immediateCheck:!1},(r=e=a.list.map((function(e){return u(j,{isLink:!0,center:!0,class:y.oCell,onClick:function(){return function(e){console.log(e),t.push({path:"/orchestra-detail",query:{id:e}})}(e)}},{title:function(){return u("div",{class:y.oTitle},[e.name,u(x,{style:{marginLeft:"6px"},color:"DELIVERY"===e.type?"#FF8057":"#64A9FF"},{default:function(){return[v[e.type]]}})])},label:function(){return u("p",null,[f("学生人数："),e.currentStudentNum,f("人")])}})})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!h(r)?e:{default:function(){return[e]}})):u(d,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无乐团"},null)])}}}))}}}))}();
