!function(){var e=["endTime","startTime"];function r(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,t)}return a}function a(e){for(var a=1;a=0||(n[a]=e[a]);return n}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function o(e,r,a,t,n,o,c){try{var s=e[o](c),i=s.value}catch(u){return void a(u)}s.done?r(i):Promise.resolve(i).then(t,n)}function c(e){return function(){var r=this,a=arguments;return new Promise((function(t,n){var c=e.apply(r,a);function s(e){o(c,t,n,s,i,"next",e)}function i(e){o(c,t,n,s,i,"throw",e)}s(void 0)}))}}var s=document.createElement("style");s.innerHTML="._coursewareGroup_1z06z_1{margin:0 .34667rem .34667rem;border-radius:.26667rem;overflow:hidden}._coursewareGroup_1z06z_1 .van-cell:after{transform:scale(1)}._coursewareGroup_1z06z_1 ._top1_1z06z_9{padding:.32rem;font-size:.34667rem;color:#777!important}._coursewareGroup_1z06z_1 ._top2_1z06z_14{font-size:.32rem;color:#777!important;padding:.37333rem .32rem .53333rem}._coursewareGroup_1z06z_1 ._userLogo_1z06z_19{width:1.25333rem;height:1.25333rem;border-radius:50%;overflow:hidden;margin-right:.16rem}._coursewareGroup_1z06z_1 ._courseName_1z06z_26,._coursewareGroup_1z06z_1 ._userName_1z06z_27{max-width:2.93333rem}._coursewareGroup_1z06z_1 ._userName_1z06z_27{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._coursewareGroup_1z06z_1 ._courseRange_1z06z_36{font-size:.42667rem;font-family:DINA;color:#333;line-height:.50667rem}._coursewareGroup_1z06z_1 ._courseRange_1z06z_36 span{color:#f44541}._coursewareGroup_1z06z_1 ._courseName_1z06z_26,._coursewareGroup_1z06z_1 ._courseRangeTips_1z06z_46{line-height:1.2;padding-top:.10667rem}._exerciseRecord_1z06z_50 .van-haptics-feedback:active{opacity:1}._searchMore_1z06z_53{line-height:1.2!important}._searchMore_1z06z_53 .van-dropdown-item{z-index:99}._searchMore_1z06z_53 .van-dropdown-menu__bar{box-shadow:none;height:var(--van-nav-bar-height)}._searchMore_1z06z_53 .van-dropdown-item__content{border-radius:0 0 .32rem .32rem;max-height:100%}._searchMore_1z06z_53 .van-button+.van-button{margin-left:.4rem}._searchMore_1z06z_53 ._searchContainer_1z06z_70{max-height:10.66667rem;overflow-y:auto;box-sizing:border-box;padding-bottom:.42667rem;background:var(--van-popup-background);transition:var(--van-popup-transition)}._searchMore_1z06z_53 ._searchMoreGroup_1z06z_78{display:flex;align-items:center;padding:.48rem .34667rem;background-color:#fff}._searchMore_1z06z_53 ._searchTitle_1z06z_84{padding:.4rem .34667rem .05333rem;font-size:.4rem;font-weight:600;color:#333;line-height:.56rem;text-align:left}._searchMore_1z06z_53 ._searchTypeGroup_1z06z_92{display:flex;align-items:center;padding:0 .34667rem;flex-wrap:wrap;justify-content:space-between}._searchMore_1z06z_53 ._searchTypeFlex_1z06z_99 ._searchTypeItem_1z06z_99{width:49%}._searchMore_1z06z_53 ._searchTypeFlex1_1z06z_102{justify-content:flex-start}._searchMore_1z06z_53 ._searchTypeFlex1_1z06z_102 ._searchTypeItem_1z06z_99{width:31%}._searchMore_1z06z_53 ._searchTypeFlex1_1z06z_102 ._searchTypeItem_1z06z_99:nth-child(3n + 1){margin-right:2.333%}._searchMore_1z06z_53 ._searchTypeFlex1_1z06z_102 ._searchTypeItem_1z06z_99:nth-child(3n + 3){margin-left:2.333%}._searchMore_1z06z_53 ._searchTypeFlex2_1z06z_114 ._searchTypeItem_1z06z_99{width:45%}._searchMore_1z06z_53 ._searchTypeItemLine_1z06z_117{margin-top:.26667rem;width:.42667rem;height:.02667rem;background:#d8d8d8}._searchMore_1z06z_53 ._searchTypeItem_1z06z_99{box-sizing:border-box;margin-top:.26667rem;height:.85333rem;line-height:.85333rem;background:#f6f6f6;border:.02667rem solid #f6f6f6;border-radius:.42667rem;font-size:.34667rem;color:#333;padding:0 .18667rem;text-align:center}._searchMore_1z06z_53 ._searchTypeItem_1z06z_99._is-active_1z06z_136{background:#fff5f2;border:.02667rem solid #ffb097;color:#f67146}._searchPreview_1z06z_141{margin:0 .34667rem;padding-bottom:.32rem;padding-top:.32rem;white-space:nowrap;overflow-y:auto}._searchPreview_1z06z_141 ._searchPreviewItem_1z06z_148{display:inline-flex;align-items:center;line-height:.74667rem;background:#f6f6f6;border-radius:.42667rem;margin-right:.21333rem;padding:.02667rem .26667rem 0;font-size:.34667rem;color:#333}._searchPreview_1z06z_141 ._searchPreviewItem_1z06z_148:last-child{margin-right:0}._searchPreview_1z06z_141 ._searchPreviewItem_1z06z_148 ._cross_1z06z_162{font-size:.21333rem;margin-left:.16rem;color:#aaa}\n",document.head.appendChild(s),System.register(["./index-legacy.90c82f08.js","./index-legacy.84457c4c.js","./isBetween-legacy.d50f1200.js","./index-legacy.02f13b7a.js","./icon_teacher-legacy.07765f44.js","./index-legacy.4e015ad0.js","./index-legacy.4a08192a.js","./index-legacy.6c608356.js","./index-legacy.789a0824.js","./index-legacy.55839436.js","./index-legacy.f3e5e283.js","./index-legacy.eb4bc59e.js","./index-legacy.fe10c814.js","./use-tab-status-legacy.bafe466c.js","./index-legacy.64e3b474.js","./index-legacy.f9492e3a.js","./utils-legacy.8e06f916.js","./Picker-legacy.aeff9f1a.js"],(function(r){"use strict";var t,o,s,i,u,l,_,m,p,d,h,f,z,v,g,y,T,w,b,x,M,P,Y,j,I,k,O,D,N,G;return{setters:[function(e){t=e.d,o=e.R,s=e.g,i=e.ag,u=e.r,l=e.ai,_=e.$,m=e.m,p=e.o,d=e.c,h=e.aj,f=e.F,z=e.q,v=e.B,g=e._,y=e.a5,T=e.ak,w=e.al},function(e){b=e.O},function(e){x=e.i},function(e){M=e.O},function(e){P=e.i},function(e){Y=e.c},function(e){j=e.C},function(e){I=e.D,k=e.a},function(e){O=e.L},function(e){D=e.C},function(e){N=e.C},function(e){G=e.I},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var C={coursewareGroup:"_coursewareGroup_1z06z_1",top1:"_top1_1z06z_9",top2:"_top2_1z06z_14",userLogo:"_userLogo_1z06z_19",courseName:"_courseName_1z06z_26",userName:"_userName_1z06z_27",courseRange:"_courseRange_1z06z_36",courseRangeTips:"_courseRangeTips_1z06z_46",exerciseRecord:"_exerciseRecord_1z06z_50",searchMore:"_searchMore_1z06z_53",searchContainer:"_searchContainer_1z06z_70",searchMoreGroup:"_searchMoreGroup_1z06z_78",searchTitle:"_searchTitle_1z06z_84",searchTypeGroup:"_searchTypeGroup_1z06z_92",searchTypeFlex:"_searchTypeFlex_1z06z_99",searchTypeItem:"_searchTypeItem_1z06z_99",searchTypeFlex1:"_searchTypeFlex1_1z06z_102",searchTypeFlex2:"_searchTypeFlex2_1z06z_114",searchTypeItemLine:"_searchTypeItemLine_1z06z_117","is-active":"_is-active_1z06z_136",searchPreview:"_searchPreview_1z06z_141",searchPreviewItem:"_searchPreviewItem_1z06z_148",cross:"_cross_1z06z_162"};l.extend(x);r("default",t({name:"exercise-record",setup:function(){var r=o(s.platformApi);i();var t=u({showSearchStatus:!0,showPopoverTime:!1,actions:[],subjects:[]}),x=u({startTime:l().day(1).format("YYYY-MM-DD"),endTime:l().day(7).format("YYYY-MM-DD"),orchestraId:"",orchestraName:"",courseType:"",courseTypeName:"",coursewareErr:null,coursewareErrName:"",keyword:"",page:1,rows:20}),E=o(!1),R=o(!1),S=o(!1),F=o(!0),L=o([]),H=function(){var t=c(regeneratorRuntime.mark((function t(){var o,c,s,i,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,E.value&&(x.page=1,L.value=[],E.value=!1),o=x.endTime,c=x.startTime,s=n(x,e),t.next=5,m.post("".concat(r.value,"/courseSchedule/coursewareErrPage"),{data:a(a({},s),{},{endTime:o+" 23:59:59",startTime:c+" 00:00:00"})});case 5:if(i=t.sent,!(L.value.length>0&&1===i.data.pages)){t.next=8;break}return t.abrupt("return");case 8:L.value=L.value.concat(i.data.rows||[]),S.value=i.data.current>=i.data.pages,F.value=L.value.length>0,x.page=i.data.current+1,R.value=!1,t.next=21;break;case 15:t.prev=15,t.t0=t.catch(0),u=t.t0.message,p(u),F.value=!1,S.value=!0;case 21:case"end":return t.stop()}}),t,null,[[0,15]])})));return function(){return t.apply(this,arguments)}}();_((function(){H(),U()}));var U=function(){var e=c(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.post("".concat(r.value,"/orchestra/page"),{data:{page:1,rows:9999,status:"DONE"}});case 3:a=e.sent,t.actions=a.data.rows.map((function(e){return{name:e.name,value:e.id}})),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),n=e.t0.message,p(n);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),A=function(){S.value=!1,R.value=!0,H()},B=function(e){return e.length>11?e.substring(0,6)+"..."+e.substring(e.length-5,e.length):e},V=function(e){if(e){var r=Math.floor(e/60),a=e%60;return(r>=10?r:"0"+r)+":"+(a>=10?a:"0"+a)}return"00:00"},q=o(),W=o(),$=function(){var e;x.startTime=l().day(1).format("YYYY-MM-DD"),x.endTime=l().day(7).format("YYYY-MM-DD"),x.orchestraId="",x.orchestraName="",x.courseType="",x.courseTypeName="",x.coursewareErr=null,x.coursewareErrName="",null===(e=W.value)||void 0===e||e.toggle(),E.value=!0,H()},J=function(){var e;null===(e=W.value)||void 0===e||e.toggle(),E.value=!0,H()};return function(){var e;return d("div",{class:[F.value?"":"emptyRootContainer",C.exerciseRecord]},[d(b,{position:"top",background:"#F8F8F8",onGetHeight:function(e){document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[d(h,{border:!1},{right:function(){return d(I,{class:C.searchMore,closeOnClickOverlay:!1,closeOnClickOutside:!1,ref:q},{default:function(){return[d(k,{title:"筛选",modelValue:t.showSearchStatus,"onUpdate:modelValue":function(e){return t.showSearchStatus=e},ref:W},{default:function(){return[d("div",{class:C.searchContainer},[t.actions.length>0&&d(f,null,[d("div",{class:C.searchTitle},[z("乐团")]),d("div",{class:[C.searchTypeGroup,C.searchTypeFlex]},[t.actions.map((function(e){return d("div",{class:[C.searchTypeItem,e.value===x.orchestraId&&C["is-active"]],onClick:function(){return r=e,x.orchestraId=r.value,void(x.orchestraName=r.name);var r}},[B(e.name)])}))])]),d("div",{class:C.searchTitle},[z("时间段")]),d("div",{class:[C.searchTypeGroup,C.searchTypeFlex2]},[d("div",{class:C.searchTypeItem,onClick:function(){return t.showPopoverTime=!0}},[x.startTime]),d("div",{class:C.searchTypeItemLine,onClick:function(){return t.showPopoverTime=!0}},null),d("div",{class:C.searchTypeItem,onClick:function(){return t.showPopoverTime=!0}},[x.endTime])]),d("div",{class:C.searchTitle},[z("课程类型")]),d("div",{class:[C.searchTypeGroup,C.searchTypeFlex1]},[Object.keys(Y).map((function(e){return d("div",{class:[C.searchTypeItem,e===x.courseType&&C["is-active"]],onClick:function(){var r;r={name:Y[e],value:e},x.courseType=r.value,x.courseTypeName=r.name}},[Y[e]])}))]),d("div",{class:C.searchTitle},[z("课件使用状态")]),d("div",{class:[C.searchTypeGroup,C.searchTypeFlex]},[[{name:"正常",value:!1},{name:"异常",value:!0}].map((function(e){return d("div",{class:[C.searchTypeItem,x.coursewareErr===e.value&&C["is-active"]],onClick:function(){return r=e,console.log(r,"val"),x.coursewareErr=r.value,void(x.coursewareErrName=r.name);var r}},[e.name])}))])]),d("div",{class:[C.searchMoreGroup,"van-hairline--top"]},[d(v,{type:"default",block:!0,round:!0,onClick:$},{default:function(){return[z("重置")]}}),d(v,{type:"primary",block:!0,round:!0,onClick:J},{default:function(){return[z("查询")]}})])]}})]}})}}),d("div",{style:{backgroundColor:"#fff"}},[d("div",{class:C.searchPreview},[d("div",{class:C.searchPreviewItem,onClick:function(){var e;null===(e=W.value)||void 0===e||e.toggle(),g((function(){document.querySelectorAll(".van-dropdown-item--down")[0].style.top="calc(var(--van-nav-bar-height) + ".concat(s.navBarHeight,"px")}))}},[x.startTime,z("~"),x.endTime]),x.orchestraId&&d("div",{class:C.searchPreviewItem},[B(x.orchestraName),d(y,{name:"cross",class:C.cross,onClick:function(e){x.orchestraId="",x.orchestraName="",e.stopPropagation(),E.value=!0,H()}},null)]),x.courseType&&d("div",{class:C.searchPreviewItem},[x.courseTypeName,d(y,{name:"cross",class:C.cross,onClick:function(e){x.courseType="",x.courseTypeName="",e.stopPropagation(),E.value=!0,H()}},null)]),null!=x.coursewareErr&&d("div",{class:C.searchPreviewItem},[x.coursewareErrName,d(y,{name:"cross",class:C.cross,onClick:function(e){x.coursewareErr=null,x.coursewareErrName="",e.stopPropagation(),E.value=!0,H()}},null)])])])]}}),F.value?d(M,{modelValue:E.value,"onUpdate:modelValue":function(e){return E.value=e},onRefresh:A,style:{minHeight:"calc(100vh - var(--header-height))"}},{default:function(){return[d(O,{"loading-text":" ",finished:S.value,style:{paddingTop:"12px"},"finished-text":" ",immediateCheck:!1,onLoad:H},(r=e=L.value.map((function(e){return d(D,{inset:!0,class:C.coursewareGroup},{default:function(){return[d(N,{class:C.top1},{title:function(){return d(f,null,[l(e.startTime).format("YYYY-MM-DD HH:mm"),z("~"),l(e.endTime).format("HH:mm")])},value:function(){return d(f,null,[B(e.orchestraName)])}}),d(N,{class:C.top2,center:!0},{icon:function(){return d(G,{class:C.userLogo,src:e.teacherAvatar||P,fit:"cover"},null)},title:function(){return d("div",{class:C.userInfo},[d("p",{class:[C.userName,"van-ellipsis"]},[e.teacherName]),d("p",{class:[C.courseName,"van-ellipsis"]},[["INSTRUMENTAL_ENSEMBLE","EUPHONIUM_SINGLE"].includes(e.type)?Y[e.type]:Y[e.type]+"单技课"])])},value:function(){return d("div",{class:C.courseCount},[d("p",{class:C.courseRange},[d("span",{style:{color:e.coursewarePlayTime>=e.adviseStudyTimeSecond?"#333":"#f44541"}},[V(e.coursewarePlayTime)]),z("/"),V(e.adviseStudyTimeSecond)]),d("p",{class:C.courseRangeTips},[z("使用时长/标准时长")])])}})]}})})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!w(r)?e:{default:function(){return[e]}}))];var r}}):d(T,{tips:"暂无课件记录"},null),d(j,{show:t.showPopoverTime,"onUpdate:show":function(e){return t.showPopoverTime=e},firstDayOfWeek:1,showConfirm:!1,type:"range",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[l(x.startTime).toDate(),l(x.endTime).toDate()],style:{height:"70%"},onSelect:function(e){if(x.startTime="",x.endTime="",!l(e[0]).isBetween(l(x.startTime),l(x.endTime))){var r=l(e[0]).day();0===r?(x.startTime=l(e[0]).subtract(6,"day").format("YYYY-MM-DD"),x.endTime=l(e[0]).format("YYYY-MM-DD")):1===r?(x.startTime=l(e[0]).format("YYYY-MM-DD"),x.endTime=l(e[0]).add(6,"day").format("YYYY-MM-DD")):(x.startTime=l(e[0]).subtract(r-1,"day").format("YYYY-MM-DD"),x.endTime=l(e[0]).add(7-r,"day").format("YYYY-MM-DD"))}t.showPopoverTime=!1}},null)])}}}))}}}))}();