import{l as fu,a as Qu,b as Yu,c as Ju,t as Xu,d as Zu,C as $u,e as eu,f as es,g as Cu,h as hu,i as Fu,j as ts,k as us,m as ss,n as as,o as os,p as ns,q as rs}from"./index-6ca05a55-1763717014417.js";import{A as ls}from"./index-f44a5654-1763717014417.js";import{u as Ue}from"./catchData-c1b0e2a9-1763717014417.js";import{aw as is,ax as cs,ay as ds,B as ps,M as ms,_ as gs,$ as fs,R as Cs,d as K,I as Et,A as ae,r as W,az as hs,aA as Fs,J as H,q as oe,p as Eu,C as Es,E as U,F as Be,D as z,aB as Au,aC as tu,K as As,U as ws,aD as vs,aE as Bs,a5 as We,L as wu,Q as ys,aF as bs,aG as uu,a1 as su,V as _s,X as Ss,av as Is,aH as Ds,aI as ks,aJ as st,ak as ke,aK as at,o as Ls,b as At,e as X,f as e,N as Wt,g as Oe,x as $,aL as Ot,a9 as we,w as Ce,ai as ze,l as te,m as ue,k as E,j as G,a8 as Le,a as vu,c as wt,a7 as L,aq as Ae,as as Bu,aM as au,aN as yu,aO as xs,aP as Ts,n as Nt,ap as Xe,aa as Ps,t as $e,v as et,P as vt,u as Bt,aQ as js,y as Rs,h as nt,ac as bu,aj as Ut,ar as Ms,z as Tt,aR as ot,aS as ou,aT as Ns}from"./index-8ca08701-1763717014417.js";import{a as yt}from"./index-2ed9b35c-1763717014417.js";import{N as ye}from"./Scrollbar-60d2ae02-1763717014417.js";import{T as ve}from"./index-a6ea1792-1763717014417.js";import{u as Pe,i as Vs}from"./index-9980224f-1763717014417.js";import{D as Ws,C as _u,b as Os,R as Su}from"./index-f161b86a-1763717014417.js";import{C as bt}from"./index-496228d2-1763717014417.js";import{P as Iu}from"./index-40a7042b-1763717014417.js";import{T as Ct}from"./index-09f03c37-1763717014417.js";import{T as zt}from"./index-df3869ee-1763717014417.js";import{b as Du}from"./browser-504037ee-1763717014417.js";import{a as Gt,b as Kt,c as Us,d as zs}from"./api-250d420d-1763717014417.js";import{s as T}from"./detail-8f396fd9-1763717014417.js";import{u as Gs,i as Ks,a as Hs,b as qs}from"./useSpeak-ec7f661b-1763717014417.js";import{N as Qs}from"./Slider-68367410-1763717014417.js";import{i as Ys}from"./icon_default-d1bcaf5f-1763717014417.js";import{i as Js}from"./icon-select-23609858-1763717014417.js";import{U as Xs,S as Zs,f as $s}from"./index-17bd2697-1763717014417.js";import{d as Ft}from"./deep-clone-c0d00fc2-1763717014417.js";import{a as ea}from"./add-efe8238e-1763717014417.js";import{N as Ht}from"./Cascader-3ede19e6-1763717014417.js";import{u as Vt}from"./index-25d202e7-1763717014417.js";import{A as ta}from"./index-52ce0698-1763717014417.js";import{T as ua}from"./index-7e8c9fbd-1763717014417.js";import{a as sa}from"./urlUtils-b5855a3c-1763717014417.js";import"./index-b7571be7-1763717014417.js";import"./api-6c318bb9-1763717014417.js";import"./utils-ca810235-1763717014417.js";import"./ding-8e9054d5-1763717014417.js";import"./searchArray-270162af-1763717014417.js";import"./contants-461a5862-1763717014417.js";import"./api-55cdcdf4-1763717014417.js";import"./api-b7b477ec-1763717014417.js";import"./teacherIcon-b8e3946d-1763717014417.js";import"./index-338b4278-1763717014417.js";import"./index-187b5665-1763717014417.js";import"./icon-pan-16e35a82-1763717014417.js";import"./updateSubject-ca8051bf-1763717014417.js";import"./index.module-cf5dfb1b-1763717014417.js";function aa(o){return is(cs(o).toLowerCase())}var oa=ds(function(o,l,t){return l=l.toLowerCase(),o+(t?aa(l):l)});const nu=oa;function na(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const ra={name:"Carousel",common:ps,self:na},la=ra,ku=Cs("n-carousel-methods");function ia(o){ms(ku,o)}function qt(o="unknown",l="component"){const t=gs(ku);return t||fs(o,"`".concat(l,"` must be placed inside `n-carousel`.")),t}function ca(){return ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},ae("g",{fill:"none"},ae("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"})))}function da(){return ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},ae("g",{fill:"none"},ae("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"})))}const pa=K({name:"CarouselArrow",setup(o){const{mergedClsPrefixRef:l}=Et(o),{isVertical:t,isPrevDisabled:i,isNextDisabled:r,prev:u,next:n}=qt();return{mergedClsPrefix:l,isVertical:t,isPrevDisabled:i,isNextDisabled:r,prev:u,next:n}},render(){const{mergedClsPrefix:o}=this;return ae("div",{class:"".concat(o,"-carousel__arrow-group")},ae("div",{class:["".concat(o,"-carousel__arrow"),this.isPrevDisabled()&&"".concat(o,"-carousel__arrow--disabled")],role:"button",onClick:this.prev},ca()),ae("div",{class:["".concat(o,"-carousel__arrow"),this.isNextDisabled()&&"".concat(o,"-carousel__arrow--disabled")],role:"button",onClick:this.next},da()))}}),ma={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},ga=K({name:"CarouselDots",props:ma,setup(o){const{mergedClsPrefixRef:l}=Et(o),t=W([]),i=qt();function r(p,A){switch(p.key){case"Enter":case" ":p.preventDefault(),i.to(A);return}o.keyboard&&s(p)}function u(p){o.trigger==="hover"&&i.to(p)}function n(p){o.trigger==="click"&&i.to(p)}function s(p){var A;if(p.shiftKey||p.altKey||p.ctrlKey||p.metaKey)return;const F=(A=document.activeElement)===null||A===void 0?void 0:A.nodeName.toLowerCase();if(F==="input"||F==="textarea")return;const{code:m}=p,d=m==="PageUp"||m==="ArrowUp",w=m==="PageDown"||m==="ArrowDown",f=m==="PageUp"||m==="ArrowRight",_=m==="PageDown"||m==="ArrowLeft",b=i.isVertical(),I=b?d:f,x=b?w:_;!I&&!x||(p.preventDefault(),I&&!i.isNextDisabled()?(i.next(),c(i.currentIndexRef.value)):x&&!i.isPrevDisabled()&&(i.prev(),c(i.currentIndexRef.value)))}function c(p){var A;(A=t.value[p])===null||A===void 0||A.focus()}return hs(()=>t.value.length=0),{mergedClsPrefix:l,dotEls:t,handleKeydown:r,handleMouseenter:u,handleClick:n}},render(){const{mergedClsPrefix:o,dotEls:l}=this;return ae("div",{class:["".concat(o,"-carousel__dots"),"".concat(o,"-carousel__dots--").concat(this.dotType)],role:"tablist"},Fs(this.total,t=>{const i=t===this.currentIndex;return ae("div",{"aria-selected":i,ref:r=>l.push(r),role:"button",tabindex:"0",class:["".concat(o,"-carousel__dot"),i&&"".concat(o,"-carousel__dot--active")],key:t,onClick:()=>{this.handleClick(t)},onMouseenter:()=>{this.handleMouseenter(t)},onKeydown:r=>{this.handleKeydown(r,t)}})}))}}),ht="CarouselItem";function fa(o){var l;return((l=o.type)===null||l===void 0?void 0:l.name)===ht}const _t=K({name:ht,setup(o){const{mergedClsPrefixRef:l}=Et(o),t=qt(nu(ht),"n-".concat(nu(ht))),i=W(),r=H(()=>{const{value:A}=i;return A?t.getSlideIndex(A):-1}),u=H(()=>t.isPrev(r.value)),n=H(()=>t.isNext(r.value)),s=H(()=>t.isActive(r.value)),c=H(()=>t.getSlideStyle(r.value));oe(()=>{t.addSlide(i.value)}),Eu(()=>{t.removeSlide(i.value)});function p(A){const{value:F}=r;F!==void 0&&(t==null||t.onCarouselItemClick(F,A))}return{mergedClsPrefix:l,selfElRef:i,isPrev:u,isNext:n,isActive:s,index:r,style:c,handleClick:p}},render(){var o;const{$slots:l,mergedClsPrefix:t,isPrev:i,isNext:r,isActive:u,index:n,style:s}=this,c=["".concat(t,"-carousel__slide"),{["".concat(t,"-carousel__slide--current")]:u,["".concat(t,"-carousel__slide--prev")]:i,["".concat(t,"-carousel__slide--next")]:r}];return ae("div",{ref:"selfElRef",class:c,role:"option",tabindex:"-1","data-index":n,"aria-hidden":!u,style:s,onClickCapture:this.handleClick},(o=l.default)===null||o===void 0?void 0:o.call(l,{isPrev:i,isNext:r,isActive:u,index:n}))}}),Ca=Es("carousel","\n position: relative;\n width: 100%;\n height: 100%;\n touch-action: pan-y;\n overflow: hidden;\n",[U("slides","\n display: flex;\n width: 100%;\n height: 100%;\n transition-timing-function: var(--n-bezier);\n transition-property: transform;\n ",[U("slide","\n flex-shrink: 0;\n position: relative;\n width: 100%;\n height: 100%;\n outline: none;\n overflow: hidden;\n ",[Be("> img","\n display: block;\n ")])]),U("dots","\n position: absolute;\n display: flex;\n flex-wrap: nowrap;\n ",[z("dot",[U("dot","\n height: var(--n-dot-size);\n width: var(--n-dot-size);\n background-color: var(--n-dot-color);\n border-radius: 50%;\n cursor: pointer;\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n outline: none;\n ",[Be("&:focus","\n background-color: var(--n-dot-color-focus);\n "),z("active","\n background-color: var(--n-dot-color-active);\n ")])]),z("line",[U("dot","\n border-radius: 9999px;\n width: var(--n-dot-line-width);\n height: 4px;\n background-color: var(--n-dot-color);\n cursor: pointer;\n transition:\n width .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n outline: none;\n ",[Be("&:focus","\n background-color: var(--n-dot-color-focus);\n "),z("active","\n width: var(--n-dot-line-width-active);\n background-color: var(--n-dot-color-active);\n ")])])]),U("arrow","\n transition: background-color .3s var(--n-bezier);\n cursor: pointer;\n height: 28px;\n width: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(255, 255, 255, .2);\n color: var(--n-arrow-color);\n border-radius: 8px;\n user-select: none;\n -webkit-user-select: none;\n font-size: 18px;\n ",[Be("svg","\n height: 1em;\n width: 1em;\n "),Be("&:hover","\n background-color: rgba(255, 255, 255, .3);\n ")]),z("vertical","\n touch-action: pan-x;\n ",[U("slides","\n flex-direction: column;\n "),z("fade",[U("slide","\n top: 50%;\n left: unset;\n transform: translateY(-50%);\n ")]),z("card",[U("slide","\n top: 50%;\n left: unset;\n transform: translateY(-50%) translateZ(-400px);\n ",[z("current","\n transform: translateY(-50%) translateZ(0);\n "),z("prev","\n transform: translateY(-100%) translateZ(-200px);\n "),z("next","\n transform: translateY(0%) translateZ(-200px);\n ")])])]),z("usercontrol",[U("slides",[Be(">",[Be("div","\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 100%;\n transform: translate(-50%, -50%);\n ")])])]),z("left",[U("dots","\n transform: translateY(-50%);\n top: 50%;\n left: 12px;\n flex-direction: column;\n ",[z("line",[U("dot","\n width: 4px;\n height: var(--n-dot-line-width);\n margin: 4px 0;\n transition:\n height .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n outline: none;\n ",[z("active","\n height: var(--n-dot-line-width-active);\n ")])])]),U("dot","\n margin: 4px 0;\n ")]),U("arrow-group","\n position: absolute;\n display: flex;\n flex-wrap: nowrap;\n "),z("vertical",[U("arrow","\n transform: rotate(90deg);\n ")]),z("show-arrow",[z("bottom",[U("dots","\n transform: translateX(0);\n bottom: 18px;\n left: 18px;\n ")]),z("top",[U("dots","\n transform: translateX(0);\n top: 18px;\n left: 18px;\n ")]),z("left",[U("dots","\n transform: translateX(0);\n top: 18px;\n left: 18px;\n ")]),z("right",[U("dots","\n transform: translateX(0);\n top: 18px;\n right: 18px;\n ")])]),z("left",[U("arrow-group","\n bottom: 12px;\n left: 12px;\n flex-direction: column;\n ",[Be("> *:first-child","\n margin-bottom: 12px;\n ")])]),z("right",[U("dots","\n transform: translateY(-50%);\n top: 50%;\n right: 12px;\n flex-direction: column;\n ",[z("line",[U("dot","\n width: 4px;\n height: var(--n-dot-line-width);\n margin: 4px 0;\n transition:\n height .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n outline: none;\n ",[z("active","\n height: var(--n-dot-line-width-active);\n ")])])]),U("dot","\n margin: 4px 0;\n "),U("arrow-group","\n bottom: 12px;\n right: 12px;\n flex-direction: column;\n ",[Be("> *:first-child","\n margin-bottom: 12px;\n ")])]),z("top",[U("dots","\n transform: translateX(-50%);\n top: 12px;\n left: 50%;\n ",[z("line",[U("dot","\n margin: 0 4px;\n ")])]),U("dot","\n margin: 0 4px;\n "),U("arrow-group","\n top: 12px;\n right: 12px;\n ",[Be("> *:first-child","\n margin-right: 12px;\n ")])]),z("bottom",[U("dots","\n transform: translateX(-50%);\n bottom: 12px;\n left: 50%;\n ",[z("line",[U("dot","\n margin: 0 4px;\n ")])]),U("dot","\n margin: 0 4px;\n "),U("arrow-group","\n bottom: 12px;\n right: 12px;\n ",[Be("> *:first-child","\n margin-right: 12px;\n ")])]),z("fade",[U("slide","\n position: absolute;\n opacity: 0;\n transition-property: opacity;\n pointer-events: none;\n ",[z("current","\n opacity: 1;\n pointer-events: auto;\n ")])]),z("card",[U("slides","\n perspective: 1000px;\n "),U("slide","\n position: absolute;\n left: 50%;\n opacity: 0;\n transform: translateX(-50%) translateZ(-400px);\n transition-property: opacity, transform;\n ",[z("current","\n opacity: 1;\n transform: translateX(-50%) translateZ(0);\n z-index: 1;\n "),z("prev","\n opacity: 0.4;\n transform: translateX(-100%) translateZ(-200px);\n "),z("next","\n opacity: 0.4;\n transform: translateX(0%) translateZ(-200px);\n ")])])]);function ha(o){const{length:l}=o;return l>1&&(o.push(ru(o[0],0,"append")),o.unshift(ru(o[l-1],l-1,"prepend"))),o}function ru(o,l,t){return Au(o,{key:"carousel-item-duplicate-".concat(l,"-").concat(t)})}function lu(o,l,t){return l===1?0:t?o===0?l-3:o===l-1?0:o-1:o}function Pt(o,l){return l?o+1:o}function Fa(o,l,t){return o<0?null:o===0?t?l-1:null:o-1}function Ea(o,l,t){return o>l-1?null:o===l-1?t?0:null:o+1}function Aa(o,l){return l&&o>3?o-2:o}function iu(o){return window.TouchEvent&&o instanceof window.TouchEvent}function cu(o,l){let{offsetWidth:t,offsetHeight:i}=o;if(l){const r=getComputedStyle(o);t=t-Number.parseFloat(r.getPropertyValue("padding-left"))-Number.parseFloat(r.getPropertyValue("padding-right")),i=i-Number.parseFloat(r.getPropertyValue("padding-top"))-Number.parseFloat(r.getPropertyValue("padding-bottom"))}return{width:t,height:i}}function mt(o,l,t){return ot?t:o}function wa(o){if(o===void 0)return 0;if(typeof o=="number")return o;const l=/^((\d+)?\.?\d+?)(ms|s)?$/,t=o.match(l);if(t){const[,i,,r="ms"]=t;return Number(i)*(r==="ms"?1:1e3)}return 0}const va=["transitionDuration","transitionTimingFunction"],Ba=Object.assign(Object.assign({},wu.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let jt=!1;const Qt=K({name:"Carousel",props:Ba,slots:Object,setup(o){const{mergedClsPrefixRef:l,inlineThemeDisabled:t}=Et(o),i=W(null),r=W(null),u=W([]),n={value:[]},s=H(()=>o.direction==="vertical"),c=H(()=>s.value?"height":"width"),p=H(()=>s.value?"bottom":"right"),A=H(()=>o.effect==="slide"),F=H(()=>o.loop&&o.slidesPerView===1&&A.value),m=H(()=>o.effect==="custom"),d=H(()=>!A.value||o.centeredSlides?1:o.slidesPerView),w=H(()=>m.value?1:o.slidesPerView),f=H(()=>d.value==="auto"||o.slidesPerView==="auto"&&o.centeredSlides),_=W({width:0,height:0}),b=W(0),I=H(()=>{const{value:h}=u;if(!h.length)return[];b.value;const{value:y}=f;if(y)return h.map(ee=>cu(ee));const{value:S}=w,{value:N}=_,{value:O}=c;let R=N[O];if(S!=="auto"){const{spaceBetween:ee}=o,Fe=R-(S-1)*ee,pt=1/Math.max(1,S);R=Fe*pt}const Z=Object.assign(Object.assign({},N),{[O]:R});return h.map(()=>Z)}),x=H(()=>{const{value:h}=I;if(!h.length)return[];const{centeredSlides:y,spaceBetween:S}=o,{value:N}=c,{[N]:O}=_.value;let R=0;return h.map(({[N]:Z})=>{let ee=R;return y&&(ee+=(Z-O)/2),R+=Z+S,ee})}),Y=W(!1),k=H(()=>{const{transitionStyle:h}=o;return h?tu(h,va):{}}),j=H(()=>m.value?0:wa(k.value.transitionDuration)),he=H(()=>{const{value:h}=u;if(!h.length)return[];const y=!(f.value||w.value===1),S=Z=>{if(y){const{value:ee}=c;return{[ee]:"".concat(I.value[Z][ee],"px")}}};if(m.value)return h.map((Z,ee)=>S(ee));const{effect:N,spaceBetween:O}=o,{value:R}=p;return h.reduce((Z,ee,Fe)=>{const pt=Object.assign(Object.assign({},S(Fe)),{["margin-".concat(R)]:"".concat(O,"px")});return Z.push(pt),Y.value&&(N==="fade"||N==="card")&&Object.assign(pt,k.value),Z},[])}),se=H(()=>{const{value:h}=d,{length:y}=u.value;if(h!=="auto")return Math.max(y-h,0)+1;{const{value:S}=I,{length:N}=S;if(!N)return y;const{value:O}=x,{value:R}=c,Z=_.value[R];let ee=S[S.length-1][R],Fe=N;for(;Fe>1&&eeAa(se.value,F.value)),Ge=Pt(o.defaultIndex,F.value),Te=W(lu(Ge,se.value,F.value)),ce=As(ws(o,"currentIndex"),Te),a=H(()=>Pt(ce.value,F.value));function g(h){var y,S;h=mt(h,0,se.value-1);const N=lu(h,se.value,F.value),{value:O}=ce;N!==ce.value&&(Te.value=N,(y=o["onUpdate:currentIndex"])===null||y===void 0||y.call(o,N,O),(S=o.onUpdateCurrentIndex)===null||S===void 0||S.call(o,N,O))}function C(h=a.value){return Fa(h,se.value,o.loop)}function v(h=a.value){return Ea(h,se.value,o.loop)}function B(h){const y=He(h);return y!==null&&C()===y&&se.value>1}function P(h){const y=He(h);return y!==null&&v()===y&&se.value>1}function D(h){return a.value===He(h)}function le(h){return ce.value===h}function de(){return C()===null}function Ie(){return v()===null}let ge=0;function Ke(h){const y=mt(Pt(h,F.value),0,se.value);(h!==ce.value||y!==a.value)&&g(y)}function be(){const h=C();h!==null&&(ge=-1,g(h))}function je(){const h=v();h!==null&&(ge=1,g(h))}let fe=!1;function Lu(){(!fe||!F.value)&&be()}function xu(){(!fe||!F.value)&&je()}let Re=0;const St=W({});function rt(h,y=0){St.value=Object.assign({},k.value,{transform:s.value?"translateY(".concat(-h,"px)"):"translateX(".concat(-h,"px)"),transitionDuration:"".concat(y,"ms")})}function tt(h=0){A.value?It(a.value,h):Re!==0&&(!fe&&h>0&&(fe=!0),rt(Re=0,h))}function It(h,y){const S=Yt(h);S!==Re&&y>0&&(fe=!0),Re=Yt(a.value),rt(S,y)}function Yt(h){let y;return h>=se.value-1?y=Jt():y=x.value[h]||0,y}function Jt(){if(d.value==="auto"){const{value:h}=c,{[h]:y}=_.value,{value:S}=x,N=S[S.length-1];let O;if(N===void 0)O=y;else{const{value:R}=I;O=N+R[R.length-1][h]}return O-y}else{const{value:h}=x;return h[se.value-1]||0}}const ut={currentIndexRef:ce,to:Ke,prev:Lu,next:xu,isVertical:()=>s.value,isHorizontal:()=>!s.value,isPrev:B,isNext:P,isActive:D,isPrevDisabled:de,isNextDisabled:Ie,getSlideIndex:He,getSlideStyle:ju,addSlide:Tu,removeSlide:Pu,onCarouselItemClick:Ru};ia(ut);function Tu(h){h&&u.value.push(h)}function Pu(h){if(!h)return;const y=He(h);y!==-1&&u.value.splice(y,1)}function He(h){return typeof h=="number"?h:h?u.value.indexOf(h):-1}function ju(h){const y=He(h);if(y!==-1){const S=[he.value[y]],N=ut.isPrev(y),O=ut.isNext(y);return N&&S.push(o.prevSlideStyle||""),O&&S.push(o.nextSlideStyle||""),Ds(S)}}let Dt=0,kt=0,De=0,Lt=0,lt=!1,xt=!1;function Ru(h,y){let S=!fe&&!lt&&!xt;o.effect==="card"&&S&&!D(h)&&(Ke(h),S=!1),S||(y.preventDefault(),y.stopPropagation())}let it=null;function ct(){it&&(clearInterval(it),it=null)}function qe(){ct(),!o.autoplay||xe.value<2||(it=window.setInterval(je,o.interval))}function Xt(h){var y;if(jt||!(!((y=r.value)===null||y===void 0)&&y.contains(ks(h))))return;jt=!0,lt=!0,xt=!1,Lt=Date.now(),ct(),h.type!=="touchstart"&&!h.target.isContentEditable&&h.preventDefault();const S=iu(h)?h.touches[0]:h;s.value?kt=S.clientY:Dt=S.clientX,o.touchable&&(st("touchmove",document,dt),st("touchend",document,Qe),st("touchcancel",document,Qe)),o.draggable&&(st("mousemove",document,dt),st("mouseup",document,Qe))}function dt(h){const{value:y}=s,{value:S}=c,N=iu(h)?h.touches[0]:h,O=y?N.clientY-kt:N.clientX-Dt,R=_.value[S];De=mt(O,-R,R),h.cancelable&&h.preventDefault(),A.value&&rt(Re-De,0)}function Qe(){const{value:h}=a;let y=h;if(!fe&&De!==0&&A.value){const S=Re-De,N=[...x.value.slice(0,se.value-1),Jt()];let O=null;for(let R=0;RO/2||De/S>.4?be():(De<-O/2||De/S<-.4)&&je()}y!==null&&y!==h?(xt=!0,g(y),ke(()=>{(!F.value||Te.value!==ce.value)&&tt(j.value)})):tt(j.value),Zt(),qe()}function Zt(){lt&&(jt=!1),lt=!1,Dt=0,kt=0,De=0,Lt=0,at("touchmove",document,dt),at("touchend",document,Qe),at("touchcancel",document,Qe),at("mousemove",document,dt),at("mouseup",document,Qe)}function Mu(){if(A.value&&fe){const{value:h}=a;It(h,0)}else qe();A.value&&(St.value.transitionDuration="0ms"),fe=!1}function Nu(h){if(h.preventDefault(),fe)return;let{deltaX:y,deltaY:S}=h;h.shiftKey&&!y&&(y=S);const N=-1,O=1,R=(y||S)>0?O:N;let Z=0,ee=0;s.value?ee=R:Z=R;const Fe=10;(ee*S>=Fe||Z*y>=Fe)&&(R===O&&!Ie()?je():R===N&&!de()&&be())}function Vu(){_.value=cu(i.value,!0),qe()}function Wu(){f.value&&b.value++}function Ou(){o.autoplay&&ct()}function Uu(){o.autoplay&&qe()}oe(()=>{vs(qe),requestAnimationFrame(()=>Y.value=!0)}),Eu(()=>{Zt(),ct()}),Bs(()=>{const{value:h}=u,{value:y}=n,S=new Map,N=R=>S.has(R)?S.get(R):-1;let O=!1;for(let R=0;Ree.el===h[R]);Z!==R&&(O=!0),S.set(h[R],Z)}O&&h.sort((R,Z)=>N(R)-N(Z))}),We(a,(h,y)=>{if(h===y){ge=0;return}if(qe(),A.value){if(F.value){const{value:S}=se;ge===-1&&y===1&&h===S-2?h=0:ge===1&&y===S-2&&h===1&&(h=S-1)}It(h,j.value)}else tt();ge=0},{immediate:!0}),We([F,d],()=>void ke(()=>{g(a.value)})),We(x,()=>{A.value&&tt()},{deep:!0}),We(A,h=>{h?tt():(fe=!1,rt(Re=0))});const zu=H(()=>({onTouchstartPassive:o.touchable?Xt:void 0,onMousedown:o.draggable?Xt:void 0,onWheel:o.mousewheel?Nu:void 0})),Gu=H(()=>Object.assign(Object.assign({},tu(ut,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:xe.value,currentIndex:ce.value})),Ku=H(()=>({total:xe.value,currentIndex:ce.value,to:ut.to})),Hu={getCurrentIndex:()=>ce.value,to:Ke,prev:be,next:je},qu=wu("Carousel","-carousel",Ca,la,o,l),$t=H(()=>{const{common:{cubicBezierEaseInOut:h},self:{dotSize:y,dotColor:S,dotColorActive:N,dotColorFocus:O,dotLineWidth:R,dotLineWidthActive:Z,arrowColor:ee}}=qu.value;return{"--n-bezier":h,"--n-dot-color":S,"--n-dot-color-focus":O,"--n-dot-color-active":N,"--n-dot-size":y,"--n-dot-line-width":R,"--n-dot-line-width-active":Z,"--n-arrow-color":ee}}),Ye=t?ys("carousel",void 0,$t,o):void 0;return Object.assign(Object.assign({mergedClsPrefix:l,selfElRef:i,slidesElRef:r,slideVNodes:n,duplicatedable:F,userWantsControl:m,autoSlideSize:f,realIndex:a,slideStyles:he,translateStyle:St,slidesControlListeners:zu,handleTransitionEnd:Mu,handleResize:Vu,handleSlideResize:Wu,handleMouseenter:Ou,handleMouseleave:Uu,isActive:le,arrowSlotProps:Gu,dotSlotProps:Ku},Hu),{cssVars:t?void 0:$t,themeClass:Ye==null?void 0:Ye.themeClass,onRender:Ye==null?void 0:Ye.onRender})},render(){var o;const{mergedClsPrefix:l,showArrow:t,userWantsControl:i,slideStyles:r,dotType:u,dotPlacement:n,slidesControlListeners:s,transitionProps:c={},arrowSlotProps:p,dotSlotProps:A,$slots:{default:F,dots:m,arrow:d}}=this,w=F&&bs(F())||[];let f=ya(w);return f.length||(f=w.map(_=>ae(_t,null,{default:()=>Au(_)}))),this.duplicatedable&&(f=ha(f)),this.slideVNodes.value=f,this.autoSlideSize&&(f=f.map(_=>ae(uu,{onResize:this.handleSlideResize},{default:()=>_}))),(o=this.onRender)===null||o===void 0||o.call(this),ae("div",Object.assign({ref:"selfElRef",class:[this.themeClass,"".concat(l,"-carousel"),this.direction==="vertical"&&"".concat(l,"-carousel--vertical"),this.showArrow&&"".concat(l,"-carousel--show-arrow"),"".concat(l,"-carousel--").concat(n),"".concat(l,"-carousel--").concat(this.direction),"".concat(l,"-carousel--").concat(this.effect),i&&"".concat(l,"-carousel--usercontrol")],style:this.cssVars},s,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),ae(uu,{onResize:this.handleResize},{default:()=>ae("div",{ref:"slidesElRef",class:"".concat(l,"-carousel__slides"),role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},i?f.map((_,b)=>ae("div",{style:r[b],key:b},_s(ae(Is,Object.assign({},c),{default:()=>_}),[[Ss,this.isActive(b)]]))):f)}),this.showDots&&A.total>1&&su(m,A,()=>[ae(ga,{key:u+n,total:A.total,currentIndex:A.currentIndex,dotType:u,trigger:this.trigger,keyboard:this.keyboard})]),t&&su(d,p,()=>[ae(pa,null)]))}});function ya(o){return o.reduce((l,t)=>(fa(t)&&l.push(t),l),[])}const ba="_prepareLessons_99lbr_1",_a="_directoryMain_99lbr_7",Sa="_resourceMain_99lbr_8",Ia="_lessonMain_99lbr_21",Da="_resourceClose_99lbr_30",ka="_showSideBar_99lbr_36",La="_hideSideBar_99lbr_48",Je={prepareLessons:ba,directoryMain:_a,resourceMain:Sa,lessonMain:Ia,resourceClose:Da,showSideBar:ka,hideSideBar:La},xa="_directoryList_1civ5_1",Ta="_scrollBar_1civ5_8",Pa="_iconArrow_1civ5_32",ja="_theTooltip_1civ5_35",Ra="_itemImg_1civ5_45",Ma="_itemBg_1civ5_82",Na="_itemContent_1civ5_107",Va="_subjects_1civ5_117",Wa="_changeDir_1civ5_127",Oa="_treeParent_1civ5_152",Ua="_treeChild_1civ5_155",za="_treeItem_1civ5_158",Ga="_childItem_1civ5_169",Ka="_title_1civ5_169",Ha="_dir_1civ5_1",qa="_titleSelect_1civ5_191",Qa="_arrow_1civ5_198",Ya="_arrowSelect_1civ5_205",Ja="_childArrow_1civ5_209",Xa="_childSelect_1civ5_219",Za="_coursewareModal_1civ5_225",q={directoryList:xa,scrollBar:Ta,"select-directory":"_select-directory_1civ5_13",iconArrow:Pa,theTooltip:ja,"select-directory-info":"_select-directory-info_1civ5_38",itemImg:Ra,itemBg:Ma,itemContent:Na,subjects:Va,changeDir:Wa,treeParent:Oa,treeChild:Ua,treeItem:za,childItem:Ga,title:Ka,dir:Ha,titleSelect:qa,arrow:Qa,arrowSelect:Ya,childArrow:Ja,childSelect:Xa,coursewareModal:Za},$a="_attendClassSearch_m0u5k_1",eo="_iconSearch_m0u5k_39",to="_spaceSection_m0u5k_43",uo="_popSelect_m0u5k_53",so="_classList_m0u5k_63",ao="_content_m0u5k_67",oo="_teachingSpace_m0u5k_70",no="_item_m0u5k_73",ro="_cover_m0u5k_79",lo="_iconCustom_m0u5k_93",io="_editContainer_m0u5k_103",co="_editBtnGroup_m0u5k_114",po="_imgBtn_m0u5k_118",mo="_itemImg_m0u5k_128",go="_itemBg_m0u5k_159",fo="_itemName_m0u5k_184",Co="_teachingModal_m0u5k_191",ho="_removeVisiable_m0u5k_194",Fo="_studentRemove_m0u5k_200",Eo="_btnGroup_m0u5k_212",Ao="_textBtn_m0u5k_219",wo="_iconArrow_m0u5k_231",vo="_textBtnActive_m0u5k_240",M={attendClassSearch:$a,iconSearch:eo,spaceSection:to,popSelect:uo,classList:so,content:ao,teachingSpace:oo,item:no,cover:ro,iconCustom:lo,editContainer:io,editBtnGroup:co,imgBtn:po,itemImg:mo,itemBg:go,itemName:fo,teachingModal:Co,removeVisiable:ho,studentRemove:Fo,btnGroup:Eo,textBtn:Ao,iconArrow:wo,textBtnActive:vo},Bo="data:image/png;base64,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",yo="data:image/png;base64,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",bo="data:image/png;base64,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";function _o(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Le(o)}const So=K({name:"select-lessonware",emits:["close","confirm"],setup(o,{emit:l}){const t=Ue();Ls();const i=At(),r=X({loading:!1,list:[],teachingStatus:!1,musicTagList:[],selectItem:{},bookVersionId:null,keyword:null,currentGradeNum:"",instrumentId:"",removeVisiable:!1,removeRow:{},bookType:""}),u=X({tempSubjectId:null,versionList:[],gradeList:[],bookTypeList:[]}),n=async()=>{r.loading=!0;try{console.log(r.bookVersionId,"bookVersionId");const{data:m}=await fu({page:1,rows:99,type:"COURSEWARE",enableFlag:1,bookVersionId:r.bookVersionId==="0"?null:r.bookVersionId,customFlag:r.bookVersionId==="0"?!0:null,keyword:r.keyword,currentGradeNum:r.currentGradeNum,instrumentId:r.instrumentId,bookType:r.bookType});r.list=m.rows}catch(m){}r.loading=!1},s=async m=>{try{await Qu({id:r.removeRow.id}),i.success("删除成功"),n(),r.removeVisiable=!1}catch(d){console.log(d)}},c=yt(()=>n(),500),p=m=>{l("confirm",m),l("close")},A=async()=>{try{const{data:m}=await Yu(),d=m||[];u.versionList=[{name:"全部",id:""},...d]}catch(m){}},F=m=>{const d={};return m==null||m.forEach(w=>{w.id===r.instrumentId&&(d.selected=!0,d.name=w.name)}),d};return oe(async()=>{try{await t.getSubjects(),await A()}catch(m){}n()}),()=>{let m;return e("div",{class:M.selectLessonware},[e(ye,{class:M.classList},{default:()=>[e("div",{class:M.attendClassSearch},[e(Wt,{labelAlign:"left",labelPlacement:"left"},{default:()=>[u.versionList.length>0&&e(Oe,{label:"教程:"},{default:()=>[e($,{class:M.spaceSection},{default:()=>{var d;return[(d=u.versionList)==null?void 0:d.map(w=>e("span",{class:[M.textBtn,(r.bookVersionId||"")==w.id&&M.textBtnActive],onClick:()=>{if(u.bookTypeList=[],r.currentGradeNum="",r.bookType="",w.children&&w.children.length>0){const f=w.children||[];u.gradeList=[{name:"全部",id:""},...f]}else u.gradeList=[];r.bookVersionId=w.id,c()}},[w.name]))]}})]}),u.gradeList.length>0&&e(Oe,{label:"年级:"},{default:()=>[e($,{class:M.spaceSection},{default:()=>{var d;return[(d=u.gradeList)==null?void 0:d.map(w=>e("span",{class:[M.textBtn,(r.currentGradeNum||"")==w.id&&M.textBtnActive],onClick:()=>{if(r.bookType="",w.children&&w.children.length>0){u.bookTypeList=w.children||[];const f=w.children||[];u.bookTypeList=[{name:"全部",id:""},...f]}else u.bookTypeList=[];r.currentGradeNum=w.id,c()}},[w.name]))]}})]}),u.bookTypeList.length>0&&e(Oe,{label:"册别:"},{default:()=>[e($,{class:M.spaceSection},{default:()=>{var d;return[(d=u.bookTypeList)==null?void 0:d.map(w=>e("span",{class:[M.textBtn,(r.bookType||"")==w.id&&M.textBtnActive],onClick:()=>{r.bookType=w.id,c()}},[w.name]))]}})]}),e(Oe,{label:"乐器:"},{default:()=>[e($,{class:M.spaceSection},_o(m=[{name:"全部乐器",value:""},...t.getSubjectInstrumentOnly].map(d=>d.instruments&&d.instruments.length>1?e(Ot,{options:d.instruments,trigger:"hover",scrollable:!0,value:u.tempSubjectId,"onUpdate:value":[w=>u.tempSubjectId=w,()=>{r.instrumentId=u.tempSubjectId,c()}],key:d.value,class:[M.popSelect]},{default:()=>[e("span",{class:[M.textBtn,F(d.instruments).selected&&M.textBtnActive]},[F(d.instruments).name||d.name,e("i",{class:M.iconArrow},null)])]}):e("span",{class:[M.textBtn,r.instrumentId===d.value&&M.textBtnActive],onClick:()=>{r.instrumentId=d.value,u.tempSubjectId=null,c()}},[d.name])))?m:{default:()=>[m]})]})]})]),e(we,{show:r.loading,class:M.content},{default:()=>[e($,{class:M.teachingSpace},{default:()=>[e("div",{class:M.item,key:"item--1",onClick:()=>{r.selectItem={},r.teachingStatus=!0}},[e("div",{class:M.cover},[e("div",{class:M.itemImg},[e("div",{class:M.itemBg},null),e(Ce,{objectFit:"cover",src:Bo,lazy:!0,previewDisabled:!0,onLoad:d=>{d.target.dataset.loaded="true"}},null)])])]),r.list.map((d,w)=>e("div",{class:M.item,key:"item-".concat(w),onClick:()=>p(d)},[e("div",{class:M.cover},[e("div",{class:M.itemImg},[e("div",{class:M.itemBg},null),e(Ce,{objectFit:"cover",src:d.coverImg,lazy:!0,previewDisabled:!0,onLoad:f=>{f.target.dataset.loaded="true"}},null),d.customFlag&&e(ze,null,[e("div",{class:M.iconCustom},null),e("div",{class:M.editContainer},[e("div",{class:M.editBtnGroup},[e("img",{src:yo,class:M.imgBtn,onClick:f=>{f.stopPropagation(),r.selectItem=d,r.teachingStatus=!0}},null),e("img",{src:bo,class:M.imgBtn,onClick:f=>{f.stopPropagation(),r.removeVisiable=!0,r.removeRow=d}},null)])])])])]),e("div",{class:M.itemName},[d.name])]))]})]})]}),e(te,{maskClosable:ue,show:r.teachingStatus,"onUpdate:show":d=>r.teachingStatus=d,preset:"card",showIcon:!1,class:["modalTitle background",M.teachingModal],title:"自定义教材",blockScroll:!1},{default:()=>[e(ls,{item:r.selectItem,onClose:()=>r.teachingStatus=!1,onConfirm:()=>{n(),r.selectItem={}}},null)]}),e(te,{maskClosable:ue,show:r.removeVisiable,"onUpdate:show":d=>r.removeVisiable=d,preset:"card",class:["modalTitle",M.removeVisiable],title:"删除教材"},{default:()=>[e("div",{class:M.studentRemove},[e("p",null,[E("是否删除该教材")]),e($,{class:M.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,type:"primary",onClick:s},{default:()=>[E("确定")]}),e(G,{round:!0,onClick:()=>r.removeVisiable=!1},{default:()=>[E("取消")]})]})])]})])}}}),Io=K({name:"directory-main",props:{sidebarShow:{type:Boolean,default:!0}},setup(o){const l=vu(),t=Pe(),i=wt(),r=W(!0),u=X({lastUseCoursewareId:l.query.lastUseCoursewareId?l.query.lastUseCoursewareId+"":null,unit:l.query.unit?l.query.unit+"":null,showSelectBookStatus:!1,coursewareStatus:!1}),n=async()=>{var f;try{const{data:_}=await fu({page:1,rows:99,type:"COURSEWARE",enableFlag:1}),b=_.rows||[];if(b.length>0){const I=b.find(k=>{var j;return k.id===(u.lastUseCoursewareId||((j=i.getUserInfo)==null?void 0:j.lastUseCoursewareId))});let x=null,Y=null;if(I?(t.setBaseCourseware(I),x=I.id,Y=I.instrumentIds):(t.setBaseCourseware(b[0]),x=(f=b[0])==null?void 0:f.id,Y=b[0].instrumentIds),A(x),Y){const{data:k}=await au({instrumentIds:Y});t.setInstrumentList(k)}}u.showSelectBookStatus=!0}catch(_){}},s=async()=>{try{const f=t.getBaseCourseware;if(!f.id)return;const{data:_}=await Ju({id:f.id}),b=_.lessonList||[],I=p(u.unit,b);b.forEach((Y,k)=>{if(Y.selected=!1,I.length>1)Y.id===I[0]&&(Y.selected=!0,Y.knowledgeList.forEach(j=>{j.id===I[1]&&(t.setSelectKey(j==null?void 0:j.id),t.setLessonCoursewareId(j==null?void 0:j.lessonCoursewareId),t.setLessonCoursewareDetailId(j==null?void 0:j.lessonCoursewareDetailId))}));else if(k===0){Y.selected=!0;const j=Y.knowledgeList[0];t.setSelectKey(j==null?void 0:j.id),t.setLessonCoursewareId(j==null?void 0:j.lessonCoursewareId),t.setLessonCoursewareDetailId(j==null?void 0:j.lessonCoursewareDetailId)}}),t.setTreeList(b);const x=t.getInstrumentId;if(x){const Y=t.getFormatInstrumentList;let k=!1;Y.forEach(j=>{var he;((he=j.instruments)==null?void 0:he.length)>0&&j.instruments.forEach(se=>{se.value==x&&(k=!0)}),j.value==x&&(k=!0)}),k||c()}else c()}catch(f){}},c=()=>{const f=t.getFormatInstrumentList;if(f.length>0){const _=f[0];if(_.instruments.length>1){const b=_.instruments[0];t.setInstrumentId(b.value)}else t.setInstrumentId(_.value)}},p=(f,_,b=[])=>{for(const I of _){if(I.knowledgeList&&I.knowledgeList.length>0){const x=p(f,I.knowledgeList,[...b,I.id]);if(x.includes(f))return x}if(I.id===f)return[...b,f]}return b},A=async f=>{try{await Xu({coursewareId:f}),i.getInfo()}catch(_){}},F=f=>{t.setSelectKey(f.id),t.setLessonCoursewareId(f.lessonCoursewareId),t.setLessonCoursewareDetailId(f.lessonCoursewareDetailId)},m=async f=>{r.value=!0,u.lastUseCoursewareId=f.lastUseCoursewareId,u.unit=f.unit,await n(),await s(),r.value=!1},d=async f=>{if(t.setBaseCourseware(f),f.instrumentIds){const{data:_}=await au({instrumentIds:f.instrumentIds});t.setInstrumentList(_);let b=!1,I=null;if(_.forEach((x,Y)=>{Array.isArray(x.instruments)&&x.instruments.forEach((k,j)=>{k.id===t.getInstrumentId&&(b=!0),Y===0&&j===0&&(I=k.id)})}),await s(),b){const x=I;t.setInstrumentId(x)}else c()}A(f.id)},w=H(()=>{const f=t.getBaseCourseware.instrumentNames;return f?f.split(",").join("、"):""});return oe(async()=>{r.value=!0,await n(),await s(),r.value=!1,L.on("onChangeClass",async f=>{m(f)})}),()=>e(ze,null,[e("div",{class:q.directoryList},[u.showSelectBookStatus&&(t.getBaseCourseware.id?e("div",{id:"lessons-0",class:q["select-directory-info"]},[e("div",{class:q.itemImg,onClick:()=>u.coursewareStatus=!0},[e(Ce,{objectFit:"cover",src:t.getBaseCourseware.coverImg,lazy:!0,previewDisabled:!0,onLoad:f=>{f.target.dataset.loaded="true"}},null)]),e("div",{class:q.itemContent},[e("h2",null,[e(Ae,{showArrow:!1,class:q.theTooltip,placement:"top-start"},{trigger:()=>t.getBaseCourseware.name,default:()=>t.getBaseCourseware.name})]),e("div",{class:q.subjects},[e(Ae,{showArrow:!1,class:q.theTooltip,placement:"top-start"},{trigger:()=>w.value,default:()=>w.value})]),e("div",{class:q.changeDir,onClick:()=>u.coursewareStatus=!0},[e("svg",{width:"11px",height:"10px",viewBox:"0 0 11 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e("title",null,[E("切片")]),e("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e("g",{transform:"translate(-279.000000, -210.000000)",fill:"#0378EC","fill-rule":"nonzero"},[e("g",{transform:"translate(132.000000, 96.000000)"},[e("g",{transform:"translate(32.000000, 24.000000)"},[e("g",{transform:"translate(103.000000, 10.000000)"},[e("g",{transform:"translate(0.000000, 71.000000)"},[e("g",{transform:"translate(12.000000, 9.000000)"},[e("path",{d:"M10.4116565,3.89985699 C10.6551462,3.89985699 10.8747497,3.75140792 10.9680437,3.52360884 C11.0613377,3.29606287 11.0096883,3.03384082 10.8376072,2.85944797 L8.08018279,0.0692888872 C7.98888976,-0.0230962957 7.8410701,-0.0230962957 7.74977708,0.0692888872 L7.22840639,0.59689687 C7.13711336,0.689282053 7.13711336,0.838996672 7.22840639,0.931255299 L8.95772133,2.68113191 L0.230858792,2.68113191 C0.103423738,2.68113191 0,2.78566638 0,2.91475252 L0,3.66636293 C0,3.79532253 0.10329868,3.89998355 0.230858792,3.89998355 L10.4116565,3.89998355 L10.4116565,3.89985699 Z M10.877501,6.10001645 L0.699579677,6.10001645 C0.456089932,6.10001645 0.236486444,6.24846552 0.143192479,6.4762646 C0.0498985147,6.70381057 0.101547854,6.96603263 0.273628948,7.14042548 L3.03105338,9.93071111 C3.12234641,10.0230963 3.27016607,10.0230963 3.36145909,9.93071111 L3.88282978,9.40310313 C3.97412281,9.31071795 3.97412281,9.16100333 3.88282978,9.0687447 L2.15351484,7.31874154 L10.877501,7.31874154 C11.0065618,7.31874154 11.1111111,7.21281496 11.1111111,7.08233671 L11.1111111,6.33654783 C11.1111111,6.20594302 11.0065618,6.10001645 10.877501,6.10001645 Z"},null)])])])])])])])]),e("span",null,[E("切换教材")])])])]):e("div",{id:"lessons-0",class:q["select-directory"],onClick:()=>u.coursewareStatus=!0},[e("span",{class:["cr-ellipsis"],title:t.getBaseCourseware.name},[t.getBaseCourseware.name||"请选择教材"]),e(Bu,{class:q.iconArrow},{default:()=>[e("svg",{width:"11px",height:"15px",viewBox:"0 0 11 15",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",opacity:"0.699999988"},[e("g",{transform:"translate(-445.000000, -137.000000)",fill:"#131415"},[e("g",{transform:"translate(152.000000, 120.000000)"},[e("path",{d:"M299.326227,20.2118001 L304.934089,28.4366632 C305.245211,28.8929759 305.127511,29.515105 304.671198,29.8262273 C304.505147,29.9394437 304.308836,30 304.107861,30 L292.892139,30 C292.339854,30 291.892139,29.5522847 291.892139,29 C291.892139,28.7990254 291.952695,28.6027139 292.065911,28.4366632 L297.673773,20.2118001 C297.984895,19.7554873 298.607024,19.6377872 299.063337,19.9489096 C299.16663,20.0193364 299.255801,20.1085074 299.326227,20.2118001 Z",id:"三角形",transform:"translate(298.500000, 24.500000) rotate(-270.000000) translate(-298.500000, -24.500000) "},null)])])])])]})])),e(ye,{class:q.scrollBar},{default:()=>[e(we,{show:r.value},{default:()=>[e("div",{class:[q.listSection,!r.value&&t.getTreeList.length<=0?q.emptySection:""]},[t.getTreeList.map((f,_)=>e("div",{class:q.treeParent,key:"parent"+_},[e("div",{class:[q.treeItem,q.parentItem],onClick:()=>{t.getTreeList.forEach(b=>{f.id!==b.id&&(b.selected=!1)}),f.selected=!f.selected}},[f.knowledgeList&&f.knowledgeList.length>0&&e("span",{class:[q.arrow,f.selected?q.arrowSelect:""]},null),e("p",{class:[q.title,f.selected?q.titleSelect:""]},[e("span",{class:[q.dir,f.selected?q.dirSelect:""]},null),f.name])]),f.selected&&f.knowledgeList&&f.knowledgeList.map((b,I)=>e("div",{key:"child"+I,class:[q.treeItem,q.childItem,q.animation,t.getSelectKey===b.id?q.childSelect:""],onClick:()=>{t.getIsEditResource?L.emit("pageBeforeLeave",()=>F(b)):F(b)}},[e("span",{class:q.childArrow},null),e("p",{class:q.title},[b.name])]))]))]),!r.value&&t.getTreeList.length<=0&&e(ve,null,null)]})]}),e(te,{maskClosable:ue,show:u.coursewareStatus,"onUpdate:show":f=>u.coursewareStatus=f,preset:"card",showIcon:!1,class:["modalTitle background",q.coursewareModal],title:"切换教材",blockScroll:!1},{default:()=>[e(So,{onClose:()=>u.coursewareStatus=!1,onConfirm:f=>{t.getIsEditResource?L.emit("pageBeforeLeave",()=>d(f)):d(f)}},null)]})])])}}),Do="_coursewareSection_jbu29_1",ko="_coursewareHeader_jbu29_5",Lo="_coursewareFooter_jbu29_65",gt={coursewareSection:Do,coursewareHeader:ko,"lesson-main":"_lesson-main_jbu29_11",coursewareFooter:Lo},xo="_tipsContainer_13qcv_1",To="_tipsLeft_13qcv_13",Po="_tips_13qcv_1",jo="_iconTips_13qcv_22",Ro="_btnNoTips_13qcv_27",Mo="_btnGroupClass_13qcv_33",No="_listContainer_13qcv_36",Vo="_listSection_13qcv_41",Wo="_emptySection_13qcv_45",Oo="_listItems_13qcv_49",Uo="_knowledgePoint_13qcv_58",zo="_btnItem_13qcv_58",Go="_btnTitle_13qcv_63",Ko="_operationGroup_13qcv_85",Ho="_iconCUp_13qcv_96",qo="_iconCDown_13qcv_104",Qo="_iconCRemove_13qcv_112",Yo="_addKnowledgePoint_13qcv_120",Jo="_iconCAdd_13qcv_130",Xo="_list_13qcv_36",Zo="_itemWrap_13qcv_144",$o="_itemWrapBox_13qcv_149",en="_itemOperation_13qcv_157",tn="_iconDelete_13qcv_163",un="_attendClassModal_13qcv_199",sn="_addCourseware_13qcv_204",an="_removeVisiable1_13qcv_210",on="_studentRemove_13qcv_216",nn="_btnGroupModal_13qcv_227",rn="_addMusicItem_13qcv_234",ln="_addMusicName_13qcv_255",cn="_addOtherSource_13qcv_265",J={tipsContainer:xo,tipsLeft:To,tips:Po,iconTips:jo,btnNoTips:Ro,btnGroupClass:Mo,listContainer:No,listSection:Vo,emptySection:Wo,listItems:Oo,knowledgePoint:Uo,btnItem:zo,btnTitle:Go,operationGroup:Ko,iconCUp:Ho,iconCDown:qo,iconCRemove:Qo,addKnowledgePoint:Yo,iconCAdd:Jo,list:Xo,itemWrap:Zo,itemWrapBox:$o,itemOperation:en,iconDelete:tn,attendClassModal:un,addCourseware:sn,removeVisiable1:an,studentRemove:on,btnGroupModal:nn,addMusicItem:rn,addMusicName:ln,addOtherSource:cn},dn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAaVBMVEUAAAAajP8ZjP8ZjP8ajf8ekv8Zjf8ajP8ajf8bjf8fkv8bkf8Zjf8aj/8Zjf8ajf8ajf8ajv8bjv8ajv8ajv8ajv8bj/8akP8bkv8nnf8ZjP8ZjP7////1+v7z+f7P5/6azP5brf5Io/7PduV3AAAAG3RSTlMA+O/IkCHn2p1eGBLfOtK8roeFbFhPMCccDeBOkeRQAAACE0lEQVRo3rTVB3KDMBCF4ZVELy5gDM4zLfc/ZCIyDOPYlgVovwv8AytpyVaax+eTOmRSCJkd1Okc5ym5lMRRhheyKE7IiboIYRAWNe2UlgofqXLPj2s8ASvCa2gbPxKwJiKf1rt5WMm70UqXAKsFl3V/6ohNjj5ZqyQ2khVZ8rCDRzYShV1UYjGOEDuFHwdzDbBbcCWjXMIBmRu/Q8IJeTXMI4Ajwdu5JCGcCRN6TcEhteMO7ryVFRyrXgxdwjH5PPwjnDs+7Q8wuPzbgwEYBDfDyeI5YT6Y+LSIwCRaGo2Ate9h+IY10WyZyHj/NWL9VFIBa72O9LAmUvpTwl6nIx3slRte31ZHWthTNKkB8EVQk1ZAY4sUpIXQ2CLhtHSh8UWgF3GMCV8kXp4UjsjytHxhwhfJiFLMuCJIKceMLZIvc+eLxHTGjC1yphNmbJHT8jryRRQdMGOLHCiDwdh37aP7pH3U9aP5okjTPr9bM+19SQLvDfaRAe+Jn2bt2AhgEAaCYB/0XyghCQEgZvUVeMY2Qv935CHkdZEPT35hchjJWCEDkox6cmmR61csEmQlIssdWVPFwk2iAwlBIs6RYEoitigLSO0hChxSRYlSjdSDougUlS0pn0WNLoCAQBsE0gjcJMCZQID9MPMPls0AzGVUngT9K/pCmojxqJRkyjG3mk+2sGTUqyWRbTPyOJTIiA43AZS9OIpLRy6gAAAAAElFTkSuQmCC",pn="_addCoursewareItem_13slg_1",mn="_btnGroupModal_13slg_12",du={addCoursewareItem:pn,btnGroupModal:mn};function gn(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Le(o)}const fn=K({name:"add-courseware-item",props:{coursewareList:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(o,{emit:l}){const t=W([]);return()=>{let i;return e("div",{class:du.addCoursewareItem},[e(yu,{value:t.value,"onUpdate:value":r=>t.value=r},{default:()=>[e(xs,{yGap:18,cols:2},gn(i=o.coursewareList.map((r,u)=>e(Ts,null,{default:()=>[e(Nt,{value:u},{default:()=>[r.name]})]})))?i:{default:()=>[i]})]}),e($,{class:du.btnGroupModal,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>l("close")},{default:()=>[E("取消")]}),e(G,{round:!0,type:"primary",onClick:()=>{l("confirm",t.value)}},{default:()=>[E("确定")]})]})])}}}),Cn="_addOtherSource_1sytn_1",hn="_sourceItem_1sytn_8",Fn="_coverImg_1sytn_11",En="_name_1sytn_24",An="_addOtherSourceModal_1sytn_31",wn="_instrumentModal_1sytn_34",vn="_musicModal_1sytn_35",Bn="_theoryModal_1sytn_53",yn="_subjectSyncModal_1sytn_57",bn="_attendClassModal_1sytn_60",_n="_attendClassSaveModal_1sytn_66",Ee={addOtherSource:Cn,sourceItem:hn,coverImg:Fn,name:En,addOtherSourceModal:An,instrumentModal:wn,musicModal:vn,theoryModal:Bn,subjectSyncModal:yn,attendClassModal:bn,attendClassSaveModal:_n},Sn=""+new URL("icon1-75d0865e.png",import.meta.url).href,In=""+new URL("icon2-0917d8de.png",import.meta.url).href,Dn=""+new URL("icon3-20aef624.png",import.meta.url).href,kn=""+new URL("icon4-74cdf5a7.png",import.meta.url).href,Ln=""+new URL("icon5-817119a1.png",import.meta.url).href,xn=""+new URL("icon6-3e36ae41.png",import.meta.url).href,Tn=""+new URL("icon8-a98128fc.png",import.meta.url).href,Pn="_sourceRhythm_x9cqh_1",jn="_btnGroup_x9cqh_12",Rt={sourceRhythm:Pn,btnGroup:jn},Rn=K({name:"source-rhythm",emits:["close","confirm"],setup(o,{emit:l}){const t=wt(),i=W(),r=W(!0);let u="".concat(origin,"/classroom-app/#/tempo-practice?v=").concat(Date.now(),"&Authorization=").concat(t.getToken,"&platform=modal");/(localhost)/.test(location.host)&&(u="https://test.kt.colexiu.com/classroom-app/#/tempo-practice?v=".concat(Date.now(),"&Authorization=").concat(t.getToken,"&platform=modal"));const n=()=>{var c,p;(p=(c=i.value)==null?void 0:c.contentWindow)==null||p.postMessage({api:"getTempoSetting"},"*")},s=c=>{var p;if(((p=c.data)==null?void 0:p.api)==="getTempoSetting"){const A=c.data.data?JSON.parse(c.data.data):{};l("confirm",{dataJson:JSON.stringify(A.setting),coverImg:"https://oss.dayaedu.com/ktqy/171013700931689a322a6.png"})}};return oe(()=>{window.addEventListener("message",s)}),Xe(()=>{window.removeEventListener("message",s)}),()=>e("div",{class:Rt.sourceRhythm},[e(we,{show:r.value},{default:()=>[e("iframe",{ref:i,onLoad:c=>{r.value=!1,Ps(c.target)},class:[Rt.container,"musicIframe"],frameborder:"0",src:u},null),e($,{class:Rt.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>l("close")},{default:()=>[E("取消")]}),e(G,{round:!0,type:"primary",onClick:n},{default:()=>[E("确认添加")]})]})]})])}}),Mn="_container_19ipk_1",Nn="_iconBack_19ipk_1",Vn="_separator_19ipk_40",Wn="_wrap_19ipk_45",On="_listWrap_19ipk_49",Un="_listWrapEmpty_19ipk_54",zn="_btnGroup_19ipk_91",Me={container:Mn,iconBack:Nn,separator:Vn,wrap:Wn,listWrap:On,listWrapEmpty:Un,btnGroup:zn},Gn="_searchGroup_1n8vo_1",Kn="_btnType_1n8vo_5",Hn="_swipeControll_1n8vo_13",qn="_leftIcon_1n8vo_16",Qn="_disabled_1n8vo_28",Yn="_carouselGroup_1n8vo_42",Jn="_carouselContainer_1n8vo_46",Xn="_inputSearch_1n8vo_57",Zn="_searchCatatory_1n8vo_78",$n="_addTrain_1n8vo_85",er="_searchGroups_1n8vo_97",tr="_instrumentList_1n8vo_100",ur="_list_1n8vo_104",sr="_itemWrap_1n8vo_114",ar="_itemWrapBox_1n8vo_119",or="_itemCard_1n8vo_127",nr="_itemImgSection_1n8vo_131",rr="_itemTag_1n8vo_137",lr="_iconCheck_1n8vo_164",ir="_img_1n8vo_173",cr="_itemImgSectionSelected_1n8vo_183",dr="_itemTitle_1n8vo_190",ne={searchGroup:Gn,btnType:Kn,swipeControll:Hn,leftIcon:qn,disabled:Qn,carouselGroup:Yn,carouselContainer:Jn,inputSearch:Xn,searchCatatory:Zn,addTrain:$n,searchGroups:er,instrumentList:tr,list:ur,itemWrap:sr,itemWrapBox:ar,itemCard:or,itemImgSection:nr,itemTag:rr,iconCheck:lr,img:ir,itemImgSectionSelected:cr,itemTitle:dr},Ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABApJREFUaEPlm8FrHFUcx3/f2Zk6M03xUBBE1KRQWgU9KFYQSw9pwOZgFfEgVKjYP0CsF2uhCBovFrwngmjRS8VEMB700FoVKtiDpWmKBwsigukKpWbeZGd2vvZtdsNms5udnZ3dCS8Le9l97/veZ3+/eb/3fu+3kJxfJEtBFD2BGAcJ7odgvwgfJLELkF16OFLuALwjgj8pXASxSJuXfMe5AqCa55SQhxhJJ6hUJ1HlMUImhLw3ky5wG5TvWMI5f0dpHkCUSaepU1+AJL0wjN9IKCdFuLvfyazvj7IFOeu69kcAVFbtTIDaDcOwepzkuxQ+kHXwNP0g+AvAGdctfZLFfXsGDMP4SJXJh0J5NM0Ec2sDWSjBest17W970UwNeNdaCML4PSFP9TJA7m2BKd+1T9+1KtNopwIkOaJUfI7Co2lEB90GgjnPs48B+K/bWF0BleJoItHXQnmsm9hQv4dctcR53vNwc7NxNwWswTG+LML7hjr51IPhHwv205tBdgTUbhmE0c9bznKt8JCrvus808ld2wLqBUWp+Kut8sx1M2j9mXyx3cLTFnBZRe8Xvlp2o9pgSUzt9Jx3Nhq45ZNanEuS+V71t0L7kmVNtsbJdRasbZTD6LehB/G8fh3Igu86jzfveNYBKhW/njCZyWu8InQsWCc8z/64MfYaoN44KxX/ntfeMkkSsSxr6Ix67+p59t7GBn0NUKno7YScymNGC9dvyIULP4nj2DIxfkhGxx7OQza1hgWc8jznA92hBlg7z6n477yOPNMzn0oYrtQmpK145Llx2bNnNPUE+2+Isu/Z9+vzZA1weSU+KtVktn/hVYXPv/hSyuV/1+QKgSxZL+y8x56rAQZBdJ7Cl/ICXFoqy+zcN2tWLMKSEJz3fedlrIaGuJw5zdDhV1lauiWzc/PFQQK3fdfejaBSOcBYLudlvWadwiFtOYAgiN6k8OwgALVmkZAQnMSyqkwL5cSgAAuFhMwgUNEPJA8OErAoSACXEKjKH6QMJUgN210BuYnlILqVV4BP4wWdICcnJ2Rs9KE0Ej20QVm76ArJHT306rtpO8iRkRF57fgrfWs3CwComA+4DVzU8EXG+DBheKCf3gZbtUrlKYnll1zX57rYsAP7Bga92Tb+uGT8gXdbpCyMTzppK+aZNry2sCgXL+q0oSOHxw/JWNFpQw04iMQvANHvYb46Jn5XrWhw6r5uRbMvXzSk0ddnjWfF6AvQuquafYVdhzS3CKHhqkaXkayDNLUQqAFpdClXE6S5xXjNWy1jyymbIY0uiG0BNbOkufV00FSU/iohhzPfFq8WpX/PEj7bEkXp7Y5B2n1VFD0pMZ4l+AgE+7r8reAGiOti80fPcX7NUpe92XHsf6EH9ozNKnEhAAAAAElFTkSuQmCC";function pr(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Le(o)}const mr=K({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(o,{emit:l}){const t=X({currentIndex:0,keyword:"",wikiCategoryId:o.wikiCategoryId||"",maxIndex:0}),i=X({showSlide:!1}),r=()=>{l("search",t)},u=W(),n=s=>{var c,p;s==="left"?(c=u.value)==null||c.prev():s==="right"&&((p=u.value)==null||p.next())};return oe(async()=>{Du.nextTick(()=>{const s=document.querySelector(".carouselContainer"),c=s&&s.getBoundingClientRect().width||0,p=document.querySelectorAll(".n-carousel__slide");let A=0;p.forEach(F=>{const m=F.getBoundingClientRect();A+=m.width}),A>=c&&(i.showSlide=!0)})}),()=>{let s;return e("div",{class:ne.searchGroup},[e("div",{class:[ne.searchCatatory]},[e($,{size:"small",class:ne.btnType},{default:()=>[o.categoryChildList.length>0?e(G,{type:t.wikiCategoryId===o.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==o.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=o.wikiCategoryId,r()}},{default:()=>[E("全部")]}):"",e("div",{class:[ne.carouselGroup]},[e(Qt,{ref:u,slidesPerView:"auto",loop:!1,class:[ne.carouselContainer,"carouselContainer"],showDots:!1,draggable:i.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":c=>{t.currentIndex=c}},pr(s=o.categoryChildList.map(c=>e(_t,null,{default:()=>[e(G,{type:t.wikiCategoryId===c.id?"primary":"default",secondary:t.wikiCategoryId!==c.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=c.id,r()}},{default:()=>[c.name]})]})))?s:{default:()=>[s]}),i.showSlide&&e($,{class:ne.swipeControll},{default:()=>[e("div",{onClick:()=>n("left")},[e(Ce,{previewDisabled:!0,class:[ne.leftIcon],src:Ze},null)]),e("div",{onClick:()=>n("right")},[e(Ce,{previewDisabled:!0,src:Ze},null)])]})])]}),e(zt,{class:ne.inputSearch,placeholder:"请输入乐器名称",round:!0,value:t.keyword,"onUpdate:value":c=>{t.keyword=c},onSearch:c=>{t.keyword=c,r()}},null)])])}}}),gr=K({name:"instrument-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["confirm"],setup(o,{emit:l}){const t=X({searchWord:"",loading:!1,pageTotal:0,finshed:!1,pagination:{page:1,rows:18},searchGroup:{type:"INSTRUMENT",keyword:"",wikiCategoryId:o.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),i=async()=>{t.loading=!0;try{const{data:n}=await Gt({...t.pagination,...t.searchGroup}),s=n.rows||[];s.forEach(c=>{c.knowledgeWikiCategories&&c.knowledgeWikiCategories.length&&(c.categories=c.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)}),t.tableList.push(...s),t.pageTotal=Number(n.total),t.finshed=n.pages<=n.current}catch(n){}t.loading=!1},r=async n=>{t.pagination.page=1,t.searchGroup=Object.assign(t.searchGroup,n),t.tableList=[],i()},u=n=>{const s=o.selectItems||[],c=s.findIndex(p=>p.id===n.id);c!==-1?s.splice(c,1):s.push(n),l("confirm",s)};return oe(()=>{i()}),()=>e("div",{class:ne.instrumentList},[e(mr,{class:ne.searchGroups,categoryChildList:o.categoryChildList||[],onSearch:n=>r(n),wikiCategoryId:o.categoryId},null),e(ye,{class:ne.listContainer,style:{"max-height":"50vh"},onScroll:n=>{var A,F,m;const s=(A=n.target)==null?void 0:A.clientHeight,c=(F=n.target)==null?void 0:F.scrollTop,p=(m=n.target)==null?void 0:m.scrollHeight;s+c+20>=p&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,i())}},{default:()=>[e(we,{show:t.loading,"onUpdate:show":n=>t.loading=n,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:ne.list},[t.tableList.map(n=>e("div",{class:ne.itemWrap,onClick:()=>{t.item={content:n.id,title:n.name,type:"INSTRUMENT"},t.show=!0}},[e("div",{class:ne.itemWrapBox},[e("div",{class:ne.itemCard},[e("div",{class:[ne.itemImgSection,o.selectItems.findIndex(s=>s.id===n.id)!==-1&&ne.itemImgSectionSelected]},[e(Ce,{src:n.avatar+"?imageMogr2/strip/format/jpg/size-limit/15k!",class:ne.img,objectFit:"cover",previewDisabled:!0},null),e("i",{class:[ne.iconCheck],onClick:s=>{s.stopPropagation(),u(n)}},null)]),e("div",{class:ne.itemTitle},[n.name])])])])),!t.loading&&t.tableList.length<=0&&e(ve,{style:{minHeight:"50vh"},description:"暂无乐器百科"},null)])]})]}),e(bt,{size:"large",show:t.show,"onUpdate:show":n=>t.show=n,item:t.item},null)])}});function fr(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Le(o)}const Cr=K({name:"content-instrument",emits:["confirm","close"],setup(o,{emit:l}){const t=X({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Kt({type:"INSTRUMENT",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&ke(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const r=async()=>{const u=[];t.selectItems.forEach(n=>{u.push({coverImg:vt.INSTRUMENT_DEFAULT_COVER,title:"乐器百科-"+n.name,materialId:n.id,content:n.id})}),l("confirm",u)};return()=>{let u;return e("div",{class:Me.container},[e("div",{class:Me.wrap},[e("div",{class:[Me.listWrap,!t.loading&&t.categoryList.length<=0&&Me.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(ve,{description:"暂无乐器百科"},null),e("div",{style:{minHeight:"55vh"}},[e($e,{defaultValue:"myResources",paneClass:Me.paneTitle,justifyContent:"center",paneWrapperClass:Me.paneWrapperContainer,value:t.tabValue,"onUpdate:value":n=>t.tabValue=n},fr(u=t.categoryList.map(n=>e(et,{name:"name-".concat(n.id),tab:n.name},{default:()=>[e(gr,{selectItems:t.selectItems,categoryId:n.id,categoryChildList:n.childrenList,onConfirm:s=>{t.selectItems=s||[]}},null)]})))?u:{default:()=>[u]})])])]),e($,{class:Me.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>l("close")},{default:()=>[E("取消")]}),e(G,{round:!0,type:"primary",onClick:r,disabled:t.selectItems.length<=0},{default:()=>[E("确认添加")]})]})])}}}),hr=K({name:"cotnent-knowledge",emits:["close","confirm"],setup(o,{emit:l}){const t=W(!1),i=W(!1),r=W(),u="musicContent"+new Date().getTime()+Math.floor(Math.random()*100),n=Gs(u),s=X({fontSize:18,tableList:[],selectKey:null,details:{},selectCheckboxs:[]}),c=H(()=>{const m=s.selectCheckboxs;let d=!1;for(const w in m)if(m[w].length>0){d=!0;break}return!d}),p=async()=>{t.value=!0,i.value=!0;try{const{data:m}=await Us({type:"COURSEWARE"});if(s.tableList=m||[],s.tableList.length>0){const d=s.tableList[0].lessonCoursewareDetailKnowledgeDetailList;if(s.tableList[0].selected=!0,d&&d.length){const w=d[0];s.selectKey=w.id,await A()}s.tableList.forEach(w=>{w.checked=!1,w.indeterminate=!1})}}catch(m){}i.value=!1,t.value=!1},A=async()=>{i.value=!0;try{const{data:m}=await zs({id:s.selectKey});i.value=!1,s.details=m,ke(()=>{var I;const w=new DOMParser().parseFromString(m.desc,"text/html"),f=document.querySelectorAll(".only-child-select");f.length>0&&f.forEach(x=>{x.remove()});const _=w.body.childNodes;_==null||_.forEach(x=>{x==null||x.classList.add("only-child-select")});const b=document.createElement("div");b.classList.add("html-to-dom"),b.appendChild(n.processNode(w.body)),(I=document.querySelector("#"+u))==null||I.appendChild(b)})}catch(m){}i.value=!1},F=()=>{const m=[];for(const w in s.selectCheckboxs){const f=s.selectCheckboxs[w],_=s.tableList[w];Array.isArray(_.lessonCoursewareDetailKnowledgeDetailList)&&_.lessonCoursewareDetailKnowledgeDetailList.forEach(b=>{f.includes(b.id)&&m.push(b)})}const d=[];m.forEach(w=>{d.push({coverImg:vt.THEORY_DEFAULT_COVER,title:"乐理知识-"+w.name,materialId:w.id,content:w.id})}),l("confirm",d)};return oe(()=>{p()}),()=>{var m;return e("div",{class:T.container},[e("div",{class:[T.wrap]},[e("div",{class:T.content},[e("div",{class:T.contentWrap},[e("div",{class:T.directoryList},[e("div",{class:[T.scrollBar,!t.value&&s.tableList.length<=0?T.empty:""],style:{height:"100%"}},[e(we,{show:t.value,style:{height:"100%"}},{default:()=>[e("div",{class:[T.listSection]},[s.tableList.map((d,w)=>e("div",{class:[T.treeParent,d.selected&&T.treeParentSelected],key:"parent"+w},[e("div",{class:[T.treeItem,T.parentItem],onClick:()=>{s.tableList.forEach(f=>{d.id!==f.id&&(f.selected=!1)}),d.selected=!d.selected}},[d.lessonCoursewareDetailKnowledgeDetailList&&d.lessonCoursewareDetailKnowledgeDetailList.length>0&&e("span",{class:[T.arrow,d.selected?T.arrowSelect:""]},null),e("p",{class:[T.title,d.selected?T.titleSelect:""]},[e("span",{class:[T.dir,d.selected?T.dirSelect:""]},null),e("p",null,[d.name])]),e("div",{class:T.checkbox,onClick:f=>{f.stopPropagation()}},[e(Nt,{checked:d.checked,indeterminate:d.indeterminate,"onUpdate:checked":f=>{d.checked=f;const _=d.lessonCoursewareDetailKnowledgeDetailList||[];if(f){const b=[];_.forEach(I=>{b.push(I.id)}),s.selectCheckboxs[w]=b}else s.selectCheckboxs[w]=[];d.indeterminate=!1}},null)])]),e(yu,{value:s.selectCheckboxs[w],"onUpdate:value":f=>{s.selectCheckboxs[w]=f;const _=d.lessonCoursewareDetailKnowledgeDetailList||[];f.length<=0?(d.checked=!1,d.indeterminate=!1):f.length===_.length?(d.checked=!0,d.indeterminate=!1):(d.checked=!1,d.indeterminate=!0)}},{default:()=>[d.selected&&d.lessonCoursewareDetailKnowledgeDetailList&&d.lessonCoursewareDetailKnowledgeDetailList.map((f,_)=>e("div",{key:"child"+_,class:[T.treeItem,T.childItem,T.animation,s.selectKey===f.id?T.childSelect:""],onClick:()=>{s.selectKey!==f.id&&(s.selectKey=f.id,A(),n.onCloseSpeak(),r.value.$el.scrollTo(0,0))}},[e("span",{class:T.childArrow},null),e("p",{class:T.title},[f.name]),e("div",{class:T.checkbox,onClick:b=>b.stopPropagation()},[e(Nt,{value:f.id},null)])]))]})]))])]}),!t.value&&s.tableList.length<=0&&e(ve,{style:{height:"100%"}},null)])]),e("div",{class:T.musicStaff},[e("div",{class:T.musicTitleRight},[n.isSpeak.value?e("span",{class:T.textClose,onClick:n.onCloseSpeak},[e("i",{class:T.icon},null),E("关闭朗读")]):e("span",{class:T.textRead,onClick:n.onAllSpeak},[e("i",{class:T.icon},null),E("全文朗读")])]),e(we,{show:i.value,ref:r,class:!i.value&&!((m=s.details)!=null&&m.desc)?T.empty:""},{default:()=>{var d,w;return[(d=s.details)!=null&&d.desc?e("div",{class:T.musicContent,id:u,style:{fontSize:s.fontSize+"px"}},[e("div",{id:"selectionCouser",class:[T.selectionCouser,!n.showDom.value&&T.hide]},[e("span",{class:T.textStart,onClick:n.onTextStart},[E("开始朗读"),e("i",{class:T.icon},null)]),e("span",{class:T.textReadOnly,onClick:n.onTextReadOnly},[E("只读这段"),e("i",{class:T.icon},null)])])]):"",!i.value&&!((w=s.details)!=null&&w.desc)&&e(ve,null,null)]}})]),e("div",{class:T.changeSizeSection},[e("img",{src:Ks,class:T.iconT},null),e("img",{src:Hs,class:T.iconAddT,onClick:()=>{s.fontSize>=32||(s.fontSize+=1)}},null),e(Qs,{value:s.fontSize,"onUpdate:value":d=>s.fontSize=d,vertical:!0,min:12,max:32},null),e("img",{src:qs,class:T.iconPlusT,onClick:()=>{s.fontSize<=12||(s.fontSize-=1)}},null)])])])]),e($,{class:T.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>l("close")},{default:()=>[E("取消")]}),e(G,{round:!0,type:"primary",onClick:F,disabled:c.value},{default:()=>[E("确认添加")]})]})])}}}),Fr="_container_19ipk_1",Er="_iconBack_19ipk_1",Ar="_separator_19ipk_40",wr="_wrap_19ipk_45",vr="_listWrap_19ipk_49",Br="_listWrapEmpty_19ipk_54",yr="_btnGroup_19ipk_91",Ne={container:Fr,iconBack:Er,separator:Ar,wrap:wr,listWrap:vr,listWrapEmpty:Br,btnGroup:yr},br="_searchGroup_1euh7_1",_r="_btnType_1euh7_5",Sr="_swipeControll_1euh7_13",Ir="_leftIcon_1euh7_16",Dr="_disabled_1euh7_28",kr="_carouselGroup_1euh7_42",Lr="_carouselContainer_1euh7_46",xr="_inputSearch_1euh7_57",Tr="_searchCatatory_1euh7_78",Pr="_addTrain_1euh7_85",jr="_searchGroups_1euh7_97",Rr="_list_1euh7_100",Mr="_itemWrap_1euh7_111",Nr="_itemWrapBox_1euh7_116",Vr="_itemCard_1euh7_124",Wr="_itemImgSection_1euh7_128",Or="_itemTag_1euh7_134",Ur="_iconCheck_1euh7_161",zr="_img_1euh7_170",Gr="_itemImgSectionSelected_1euh7_180",Kr="_itemTitle_1euh7_187",re={searchGroup:br,btnType:_r,swipeControll:Sr,leftIcon:Ir,disabled:Dr,carouselGroup:kr,carouselContainer:Lr,inputSearch:xr,searchCatatory:Tr,addTrain:Pr,searchGroups:jr,list:Rr,itemWrap:Mr,itemWrapBox:Nr,itemCard:Vr,itemImgSection:Wr,itemTag:Or,iconCheck:Ur,img:zr,itemImgSectionSelected:Gr,itemTitle:Kr};function Hr(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Le(o)}const qr=K({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(o,{emit:l}){const t=X({currentIndex:0,keyword:"",wikiCategoryId:o.wikiCategoryId||"",maxIndex:0}),i=X({showSlide:!1}),r=()=>{l("search",t)},u=W(),n=s=>{var c,p;s==="left"?(c=u.value)==null||c.prev():s==="right"&&((p=u.value)==null||p.next())};return oe(async()=>{Du.nextTick(()=>{const s=document.querySelector(".carouselContainer"),c=s&&s.getBoundingClientRect().width||0,p=document.querySelectorAll(".n-carousel__slide");let A=0;p.forEach(F=>{const m=F.getBoundingClientRect();A+=m.width}),A>=c&&(i.showSlide=!0)})}),()=>{let s;return e("div",{class:re.searchGroup},[e("div",{class:[re.searchCatatory]},[e($,{size:"small",class:re.btnType},{default:()=>[o.categoryChildList.length>0?e(G,{type:t.wikiCategoryId===o.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==o.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=o.wikiCategoryId,r()}},{default:()=>[E("全部")]}):"",e("div",{class:re.carouselGroup},[e(Qt,{ref:u,slidesPerView:"auto",loop:!1,class:[re.carouselContainer,"carouselContainer"],showDots:!1,draggable:i.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":c=>{t.currentIndex=c}},Hr(s=o.categoryChildList.map(c=>e(_t,null,{default:()=>[e(G,{type:t.wikiCategoryId===c.id?"primary":"default",secondary:t.wikiCategoryId!==c.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=c.id,r()}},{default:()=>[c.name]})]})))?s:{default:()=>[s]}),i.showSlide&&e($,{class:re.swipeControll},{default:()=>[e("div",{onClick:()=>n("left")},[e(Ce,{previewDisabled:!0,class:[re.leftIcon],src:Ze},null)]),e("div",{onClick:()=>n("right")},[e(Ce,{previewDisabled:!0,src:Ze},null)])]})])]}),e(zt,{class:re.inputSearch,placeholder:"请输入音乐家名称",round:!0,value:t.keyword,"onUpdate:value":c=>{t.keyword=c},onSearch:c=>{t.keyword=c,r()}},null)])])}}}),Qr=K({name:"musician-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["confirm"],setup(o,{emit:l}){Bt();const t=X({searchWord:"",loading:!1,pageTotal:0,finshed:!1,pagination:{page:1,rows:18},searchGroup:{type:"MUSICIAN",keyword:"",wikiCategoryId:o.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),i=async(n=!0)=>{n&&(t.loading=!0);try{const{data:s}=await Gt({...t.pagination,...t.searchGroup}),c=s.rows||[];c.forEach(p=>{p.knowledgeWikiCategories&&p.knowledgeWikiCategories.length&&(p.categories=p.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)}),t.tableList.push(...c),t.pageTotal=Number(s.total),t.finshed=s.pages<=s.current}catch(s){}t.loading=!1},r=async n=>{t.pagination.page=1,t.searchGroup=Object.assign(t.searchGroup,n),t.tableList=[],i()},u=n=>{const s=o.selectItems||[],c=s.findIndex(p=>p.id===n.id);c!==-1?s.splice(c,1):s.push(n),l("confirm",s)};return oe(()=>{i()}),()=>e("div",{class:re.instrumentList},[e(qr,{class:re.searchGroups,categoryChildList:o.categoryChildList||[],onSearch:n=>r(n),wikiCategoryId:o.categoryId},null),e(ye,{class:re.listContainer,style:{"max-height":"50vh"},onScroll:n=>{var A,F,m;const s=(A=n.target)==null?void 0:A.clientHeight,c=(F=n.target)==null?void 0:F.scrollTop,p=(m=n.target)==null?void 0:m.scrollHeight;s+c+20>=p&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,i(!1))}},{default:()=>[e(we,{show:t.loading,"onUpdate:show":n=>t.loading=n,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:re.list},[t.tableList.map(n=>e("div",{class:re.itemWrap,onClick:()=>{t.item={content:n.id,title:n.name,type:"MUSICIAN"},t.show=!0}},[e("div",{class:re.itemWrapBox},[e("div",{class:re.itemCard},[e("div",{class:[re.itemImgSection,o.selectItems.findIndex(s=>s.id===n.id)!==-1&&re.itemImgSectionSelected]},[e(Ce,{src:n.avatar,class:re.img,objectFit:"cover",previewDisabled:!0},null),e("i",{class:[re.iconCheck],onClick:s=>{s.stopPropagation(),u(n)}},null)]),e("div",{class:re.itemTitle},[n.name])])])])),!t.loading&&t.tableList.length<=0&&e(ve,{style:{minHeight:"50vh"},description:"暂无音乐家"},null)])]})]}),e(bt,{size:"large",show:t.show,"onUpdate:show":n=>t.show=n,item:t.item},null)])}});function Yr(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Le(o)}const Jr=K({name:"content-instrument",emits:["confirm","close"],setup(o,{emit:l}){const t=X({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Kt({type:"MUSICIAN",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&ke(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const r=async()=>{const u=[];t.selectItems.forEach(n=>{u.push({coverImg:vt.MUSICIAN_DEFAULT_COVER,title:"音乐家-"+n.name,materialId:n.id,content:n.id})}),l("confirm",u)};return()=>{let u;return e("div",{class:Ne.container},[e("div",{class:Ne.wrap},[e("div",{class:[Ne.listWrap,!t.loading&&t.categoryList.length<=0&&Ne.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(ve,{description:"暂无音乐家"},null),e("div",{style:{minHeight:"55vh"}},[e($e,{defaultValue:"myResources",paneClass:Ne.paneTitle,justifyContent:"center",paneWrapperClass:Ne.paneWrapperContainer,"onUpdate:value":[n=>{sessionStorage.setItem("content-instrument-tab",n)},n=>t.tabValue=n],value:t.tabValue},Yr(u=t.categoryList.map(n=>e(et,{name:"name-".concat(n.id),tab:n.name},{default:()=>[e(Qr,{selectItems:t.selectItems,categoryId:n.id,categoryChildList:n.childrenList,onConfirm:s=>{t.selectItems=s||[]}},null)]})))?u:{default:()=>[u]})])])]),e($,{class:Ne.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>l("close")},{default:()=>[E("取消")]}),e(G,{round:!0,type:"primary",onClick:r,disabled:!t.selectItems.length},{default:()=>[E("确认添加")]})]})])}}}),Xr="_container_1o74q_1",Zr="_separator_1o74q_36",$r="_wrap_1o74q_41",el="_listWrap_1o74q_44",tl="_listWrapEmpty_1o74q_49",ul="_btnGroup_1o74q_60",Ve={container:Xr,separator:Zr,wrap:$r,listWrap:el,listWrapEmpty:tl,btnGroup:ul},sl="_searchGroup_gol4m_1",al="_btnType_gol4m_5",ol="_swipeControll_gol4m_12",nl="_leftIcon_gol4m_15",rl="_disabled_gol4m_27",ll="_carouselGroup_gol4m_41",il="_carouselContainer_gol4m_44",cl="_inputSearch_gol4m_55",dl="_searchCatatory_gol4m_76",pl="_border_gol4m_83",ml="_addTrain_gol4m_87",gl="_searchGroups_gol4m_99",fl="_instrumentList_gol4m_102",Cl="_list_gol4m_106",hl="_itemWrap_gol4m_115",Fl="_itemWrapBox_gol4m_122",El="_iconCheck_gol4m_130",Al="_itemCard_gol4m_139",wl="_musicBg_gol4m_157",vl="_itemName_gol4m_163",Bl="_itemImgSectionSelected_gol4m_168",yl="_popSelect_gol4m_171",bl="_spaceSection_gol4m_181",_l="_textBtn_gol4m_184",Sl="_iconArrow_gol4m_195",Il="_textBtnActive_gol4m_204",Q={searchGroup:sl,btnType:al,swipeControll:ol,leftIcon:nl,disabled:rl,carouselGroup:ll,carouselContainer:il,inputSearch:cl,searchCatatory:dl,border:pl,addTrain:ml,searchGroups:gl,instrumentList:fl,list:Cl,itemWrap:hl,itemWrapBox:Fl,iconCheck:El,itemCard:Al,musicBg:wl,itemName:vl,itemImgSectionSelected:Bl,popSelect:yl,spaceSection:bl,textBtn:_l,iconArrow:Sl,textBtnActive:Il};function pu(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Le(o)}const Dl=K({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(o,{emit:l}){const t=X({keyword:"",wikiCategoryId:o.wikiCategoryId||"",wikiCategoryIdChild:"",childIds:[],currentIndex:0}),i=W(),r=()=>{l("search",t)},u=(p,A)=>{const F={};return p==null||p.forEach(m=>{m.id===t.wikiCategoryIdChild&&(F.selected=!0,F.name=m.name)}),F},n=H(()=>{const A=(o.categoryChildList||[]).find(F=>F.id===t.wikiCategoryId);if(A&&A.childrenList.length){const F=[];return A.childrenList.forEach(m=>{const d=m.childrenList,w=[];d&&d.length>0&&(w.push({label:"全部",value:m.id,name:m.name,id:m.id}),d.forEach(f=>{w.push({label:f.name,value:f.id,name:f.name,id:f.id})})),F.push({...m,childrenList:w})}),[{label:"全部",value:"",id:"",name:"全部",childrenList:[]},...F]}return[]}),s=X({showSlide:!1}),c=p=>{var A,F;p==="left"?(A=i.value)==null||A.prev():p==="right"&&((F=i.value)==null||F.next())};return oe(()=>{ke(()=>{const p=document.querySelector(".carouselContainer"),A=p&&p.getBoundingClientRect().width||0,F=document.querySelectorAll(".n-carousel__slide");let m=0;F.forEach(d=>{const w=d.getBoundingClientRect();m+=w.width}),m>=A&&(s.showSlide=!0)})}),()=>{let p,A;return e("div",{class:Q.searchGroup},[e("div",{class:[Q.searchCatatory,n.value.length>0?Q.border:""]},[e($,{size:"small",class:Q.btnType},{default:()=>[o.categoryChildList.length>0?e(G,{type:t.wikiCategoryId===o.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==o.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=o.wikiCategoryId,t.wikiCategoryIdChild="",r()}},{default:()=>[E("全部")]}):e("span",null,null),e("div",{class:[Q.carouselGroup]},[e(Qt,{ref:i,slidesPerView:"auto",loop:!1,class:[Q.carouselContainer,"carouselContainer"],showDots:!1,draggable:s.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":F=>{t.currentIndex=F}},pu(p=o.categoryChildList.map(F=>e(_t,null,{default:()=>[e(G,{type:t.wikiCategoryId===F.id?"primary":"default",secondary:t.wikiCategoryId!==F.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=F.id,r()}},{default:()=>[F.name]})]})))?p:{default:()=>[p]}),s.showSlide&&e($,{class:Q.swipeControll},{default:()=>[e("div",{onClick:()=>c("left")},[e(Ce,{previewDisabled:!0,class:[Q.leftIcon],src:Ze},null)]),e("div",{onClick:()=>c("right")},[e(Ce,{previewDisabled:!0,src:Ze},null)])]})])]}),e(zt,{class:Q.inputSearch,placeholder:"请输入曲目名称",round:!0,value:t.keyword,"onUpdate:value":F=>{t.keyword=F},onSearch:F=>{t.keyword=F,r()}},null)]),n.value.length>0&&e("div",{class:[Q.collapseWrap]},[e($,{class:[Q.spaceSection]},pu(A=n.value.map((F,m)=>e(ze,null,[F.childrenList.length>0?e(Ot,{options:F.childrenList,trigger:"hover",value:t.wikiCategoryIdChild,"onUpdate:value":[d=>t.wikiCategoryIdChild=d,()=>{r()}],key:F.id,class:Q.popSelect},{default:()=>[e("span",{class:[Q.textBtn,u(F.childrenList).selected&&Q.textBtnActive]},[u(F.childrenList).name||F.name,e("i",{class:Q.iconArrow},null)])]}):e("span",{class:[Q.textBtn,t.wikiCategoryIdChild===F.id&&Q.textBtnActive],onClick:()=>{t.wikiCategoryIdChild=F.id,r()}},[F.name])])))?A:{default:()=>[A]})])])}}}),kl=K({name:"music-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(o,{emit:l}){Bt();const t=X({searchWord:"",loading:!1,finshed:!1,pageTotal:0,pagination:{page:1,rows:18},searchGroup:{type:"MUSIC",keyword:"",wikiCategoryId:o.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),i=async()=>{t.loading=!0;try{const{data:n}=await Gt({...t.pagination,...t.searchGroup});t.tableList.push(...n.rows),t.pageTotal=Number(n.total),t.finshed=n.pages<=n.current}catch(n){}t.loading=!1},r=async n=>{t.pagination.page=1,t.tableList=[];const{wikiCategoryIdChild:s,wikiCategoryId:c,keyword:p}=n;t.searchGroup=Object.assign(t.searchGroup,{wikiCategoryId:s||c,keyword:p}),i()},u=n=>{const s=o.selectItems||[],c=s.findIndex(p=>p.id===n.id);c!==-1?s.splice(c,1):s.push(n),l("confirm",s)};return oe(()=>{i()}),()=>e("div",{class:Q.instrumentList},[e(Dl,{class:Q.searchGroups,categoryChildList:o.categoryChildList||[],wikiCategoryId:o.categoryId,onSearch:n=>r(n)},null),e(ye,{class:Q.listContainer,style:{"max-height":"50vh"},onScroll:n=>{var A,F,m;const s=(A=n.target)==null?void 0:A.clientHeight,c=(F=n.target)==null?void 0:F.scrollTop,p=(m=n.target)==null?void 0:m.scrollHeight;s+c+20>=p&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,i())}},{default:()=>[e(we,{show:t.loading,"onUpdate:show":n=>t.loading=n,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:Q.list},[t.tableList.map(n=>e("div",{class:Q.itemWrap,onClick:()=>{t.item={content:n.id,title:n.name,type:"MUSIC_WIKI"},t.show=!0}},[e("div",{class:Q.itemWrapBox},[e("div",{class:[Q.itemCard,o.selectItems.findIndex(s=>s.id===n.id)!==-1&&Q.itemImgSectionSelected]},[e("div",{class:Q.itemName},[e("img",{src:n.avatar||Ys,class:Q.musicBg},null),e("span",{class:Q.name},[n.name])]),e("i",{class:[Q.iconCheck],onClick:s=>{s.stopPropagation(),u(n)}},null)])])])),!t.loading&&t.tableList.length<=0&&e(ve,{style:{minHeight:"50vh"},description:"暂无名曲鉴赏"},null)])]})]}),e(bt,{size:"large",show:t.show,"onUpdate:show":n=>t.show=n,item:t.item},null)])}});function Ll(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Le(o)}const xl=K({name:"content-music",emits:["close","confirm"],setup(o,{emit:l}){const t=X({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Kt({type:"MUSIC",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&ke(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const r=async()=>{const u=[];t.selectItems.forEach(n=>{u.push({coverImg:vt.MUSIC_DEFAULT_COVER,title:"名曲鉴赏-"+n.name,materialId:n.id,content:n.id})}),l("confirm",u)};return()=>{let u;return e("div",{class:Ve.container},[e("div",{class:Ve.wrap},[e("div",{class:[Ve.listWrap,!t.loading&&t.categoryList.length<=0&&Ve.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(ve,{description:"暂无名曲鉴赏"},null),e("div",{style:{minHeight:"55vh"}},[e($e,{defaultValue:"myResources",paneClass:Ve.paneTitle,justifyContent:"center",paneWrapperClass:Ve.paneWrapperContainer,value:t.tabValue,"onUpdate:value":n=>t.tabValue=n},Ll(u=t.categoryList.map(n=>e(et,{name:"name-".concat(n.id),tab:n.name},{default:()=>[e(kl,{selectItems:t.selectItems,categoryId:n.id,categoryChildList:n.childrenList,onConfirm:s=>{t.selectItems=s||[]}},null)]})))?u:{default:()=>[u]})])])]),e($,{class:Ve.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>l("close")},{default:()=>[E("取消")]}),e(G,{round:!0,type:"primary",onClick:r,disabled:!t.selectItems.length},{default:()=>[E("确认添加")]})]})])}}}),Tl="_btnGroupModal_1ug7x_1",Pl="_subjectSync_1ug7x_8",jl="_tips_1ug7x_11",Rl="_subjectList_1ug7x_49",Ml="_subjectItem_1ug7x_56",Nl="_imgSection_1ug7x_56",Vl="_iconSelect_1ug7x_77",Wl="_subjectName_1ug7x_85",Ol="_subjectSelect_1ug7x_89",_e={btnGroupModal:Tl,subjectSync:Pl,tips:jl,subjectList:Rl,subjectItem:Ml,imgSection:Nl,iconSelect:Vl,subjectName:Wl,subjectSelect:Ol};function Ul(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Le(o)}const zl=K({name:"subject-sync",props:{subjectId:{type:[String,Number],default:""}},emits:["close","confirm"],setup(o,{emit:l}){const t=Ue(),i=W(""),r=At(),u=W([]),n=js([]),s=W([]),c={Panpipes:"https://oss.dayaedu.com/ktqy/17103860536976fd4a751.png",Ocarina:"https://oss.dayaedu.com/ktqy/17143623857205dba41a5.png","Alto Ocarina":"https://oss.dayaedu.com/ktqy/17143623857205dba41a5.png",Whistling:"https://oss.dayaedu.com/ktqy/1714362351692fcf8c0b8.png","Soprano Ocarina":"https://oss.dayaedu.com/ktqy/1714362351692fcf8c0b8.png",Woodwind:"https://oss.dayaedu.com/ktqy/17103860536966826c50d.png",Hulusi:"https://oss.dayaedu.com/ktqy/17103860536966826c50d.png","Tenor Recorder":"https://oss.dayaedu.com/ktqy/17103860536950592e357.png","German Recorder":"https://oss.dayaedu.com/ktqy/17103860536950592e357.png",Nai:"https://oss.dayaedu.com/ktqy/1710386053697af4aa985.png",Melodica:"https://oss.dayaedu.com/ktqy/1710386053697af4aa985.png","Baroque Recorder":"https://oss.dayaedu.com/ktqy/1710386053698031e847a.png"},p=()=>{if(u.value.length<=0){r.error("至少选择一个声部进行同步");return}const m=[];u.value.forEach(d=>{const w=n.value.find(f=>f.id===d);if(w){const f=w.code?w.code.split(",")[0]:"";m.push({materialId:w.id,instrumentIds:w.id,coverImg:c[f]||c.Panpipes,dataJson:null,title:w.name,isCollect:!1,isSelected:!1,content:w.code})}}),l("confirm",{subjectIds:u.value,subjectCode:m})},A=()=>{const m=t.getEnableSubjects,d=[];m.forEach(w=>{i.value===""&&w.instruments?d.push(...w.instruments):i.value&&w.instruments&&Number(i.value)===w.id&&d.push(...w.instruments)}),s.value=d},F=()=>{const m=t.getEnableSubjects,d=[];m.forEach(w=>{i.value===""&&w.instruments&&d.push(...w.instruments)}),n.value=d};return oe(async()=>{await t.getSubjects(),F(),A(),o.subjectId&&(u.value=[Number(o.subjectId)])}),()=>{let m;return e("div",{class:_e.subjectSync},[e($e,{defaultValue:"",paneClass:_e.paneTitle,justifyContent:"start",paneWrapperClass:_e.paneWrapperContainer,value:i.value,"onUpdate:value":d=>{i.value=d,A()}},Ul(m=[{name:"全部声部",id:""},...t.getEnableSubjects].map(d=>e(et,{name:"".concat(d.id),tab:d.name,displayDirective:"if"},null)))?m:{default:()=>[m]}),e(ye,{style:{maxHeight:"50vh",minHeight:"50vh"}},{default:()=>[e("div",{class:_e.subjectList},[s.value.map(d=>e("div",{class:[_e.subjectItem,u.value.includes(d.id)?_e.subjectSelect:""],onClick:()=>{if(u.value.includes(d.id)){const w=u.value.indexOf(d.id);u.value.splice(w,1)}else u.value.push(d.id)}},[e("div",{class:_e.imgSection},[e("img",{src:d.img},null),u.value.includes(d.id)&&e("img",{src:Js,class:_e.iconSelect},null)]),e("p",{class:_e.subjectName},[d.name])]))])]}),e($,{class:_e.btnGroupModal,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>l("close")},{default:()=>[E("取消")]}),e(G,{round:!0,type:"primary",onClick:p,disabled:u.value.length<=0},{default:()=>[E("确定")]})]})])}}}),Gl=K({name:"add-other-source",emits:["close","comfirm"],setup(o,{emit:l}){Pe();const t=Bt(),i=W([{image:Tn,name:"上传资源",index:7},{image:Sn,name:"听音练习",index:0},{image:In,name:"节奏练习",index:1},{image:Dn,name:"乐器百科",index:2},{image:xn,name:"名曲鉴赏",index:3},{image:Ln,name:"音乐家",index:4},{image:kn,name:"乐理知识",index:5}]),r=X({listenStatus:!1,rhythmStatus:!1,theoryStatus:!1,musicStatus:!1,instrumentStatus:!1,musicianStatus:!1,uploadStatus:!1,saveStatus:!1,editStatus:!1,editList:[],editIds:[],editOverIds:[]}),u=n=>{switch(n.index){case 0:r.listenStatus=!0;break;case 1:r.rhythmStatus=!0;break;case 2:r.instrumentStatus=!0;break;case 3:r.musicStatus=!0;break;case 4:r.musicianStatus=!0;break;case 5:r.theoryStatus=!0;break;case 6:L.emit("pageBeforeLeave",()=>{sessionStorage.setItem("notation-open-create","1"),t.push("/notation")});break;case 7:r.saveStatus=!0;break}};return()=>e(ze,null,[e("div",{class:Ee.addOtherSource},[i.value.map(n=>e("div",{class:Ee.sourceItem,onClick:()=>u(n)},[e(Ce,{class:Ee.coverImg,src:n.image,previewDisabled:!0},null),e("p",{class:Ee.name},[n.name])]))]),e(te,{maskClosable:ue,show:r.rhythmStatus,"onUpdate:show":n=>r.rhythmStatus=n,preset:"card",class:["modalTitle background",Ee.addOtherSourceModal],title:"节奏练习"},{default:()=>[e(Rn,{onClose:()=>r.rhythmStatus=!1,onConfirm:n=>{r.rhythmStatus=!1,l("comfirm",{materialId:null,coverImg:n.coverImg,dataJson:n.dataJson,title:"节奏练习",isCollect:!1,isSelected:!1,content:null,type:"RHYTHM"}),l("close")}},null)]}),e(te,{maskClosable:ue,show:r.instrumentStatus,"onUpdate:show":n=>r.instrumentStatus=n,preset:"card",class:["modalTitle",Ee.instrumentModal],title:"乐器百科"},{default:()=>[e(Cr,{onClose:()=>r.instrumentStatus=!1,onConfirm:n=>{r.instrumentStatus=!1;const s=n||[],c=[];s.forEach(p=>{c.push({materialId:p.materialId,coverImg:p.coverImg,dataJson:null,title:p.title,isCollect:!1,isSelected:!1,content:p.content,type:"INSTRUMENT"})}),l("comfirm",c),l("close")}},null)]}),e(te,{maskClosable:ue,show:r.theoryStatus,"onUpdate:show":n=>r.theoryStatus=n,preset:"card",class:["modalTitle",Ee.theoryModal],title:"乐理知识"},{default:()=>[e(hr,{onClose:()=>r.theoryStatus=!1,onConfirm:n=>{r.theoryStatus=!1;const s=n||[],c=[];s.forEach(p=>{c.push({materialId:p.materialId,coverImg:p.coverImg,dataJson:null,title:p.title,isCollect:!1,isSelected:!1,content:p.content,type:"THEORY"})}),l("comfirm",c),l("close")}},null)]}),e(te,{maskClosable:ue,show:r.musicianStatus,"onUpdate:show":n=>r.musicianStatus=n,preset:"card",class:["modalTitle",Ee.instrumentModal],title:"音乐家"},{default:()=>[e(Jr,{onClose:()=>r.musicianStatus=!1,onConfirm:n=>{r.musicianStatus=!1;const s=n||[],c=[];s.forEach(p=>{c.push({materialId:p.materialId,coverImg:p.coverImg,dataJson:null,title:p.title,isCollect:!1,isSelected:!1,content:p.content,type:"MUSICIAN"})}),l("comfirm",c),l("close")}},null)]}),e(te,{maskClosable:ue,show:r.musicStatus,"onUpdate:show":n=>r.musicStatus=n,preset:"card",class:["modalTitle",Ee.musicModal],title:"名曲鉴赏"},{default:()=>[e(xl,{onClose:()=>r.musicStatus=!1,onConfirm:n=>{r.musicStatus=!1;const s=n||[],c=[];s.forEach(p=>{c.push({materialId:p.materialId,coverImg:p.coverImg,dataJson:null,title:p.title,isCollect:!1,isSelected:!1,content:p.content,type:"MUSIC_WIKI"})}),l("comfirm",c),l("close")}},null)]}),e(te,{maskClosable:ue,show:r.listenStatus,"onUpdate:show":n=>r.listenStatus=n,preset:"card",class:["modalTitle background",Ee.subjectSyncModal],title:"选择乐器"},{default:()=>[e(zl,{onClose:()=>r.listenStatus=!1,onConfirm:async n=>{try{r.musicStatus=!1;const s=n.subjectCode||[],c=[];s.forEach(p=>{c.push({materialId:p.materialId,instrumentIds:p.instrumentIds,coverImg:p.coverImg,dataJson:null,title:p.title,isCollect:!1,isSelected:!1,content:p.content,type:"LISTEN"})}),r.listenStatus=!1,l("comfirm",c),l("close")}catch(s){}}},null)]}),e(te,{maskClosable:ue,show:r.uploadStatus,"onUpdate:show":n=>r.uploadStatus=n,preset:"card",showIcon:!1,class:["modalTitle background",Ee.attendClassModal],title:r.editStatus?"修改资源":"上传资源",blockScroll:!1},{default:()=>[e(Xs,{editStatus:r.editStatus,onClose:()=>{r.uploadStatus=!1},onConfirm:n=>{r.editIds=[],r.editList=[],r.editOverIds=[],r.saveStatus=!1;try{r.musicStatus=!1;const s=n||[],c=[];s.forEach(p=>{c.push({instrumentIds:p.instrumentIds,materialId:p.id,coverImg:p.coverImg,dataJson:null,title:p.name,isCollect:!1,isSelected:!1,content:p.content,type:p.type})}),l("comfirm",c),l("close")}catch(s){}},list:r.editList},null)]}),e(te,{maskClosable:ue,show:r.saveStatus,"onUpdate:show":n=>r.saveStatus=n,preset:"card",showIcon:!1,class:["modalTitle background",Ee.attendClassSaveModal],title:"上传资源",blockScroll:!1},{default:()=>[e(Zs,{onClose:()=>r.saveStatus=!1,onConfrim:n=>{const s=n||[],c=[];s.forEach(p=>{c.push({subjectIds:null,openFlag:!1,coverImg:p.coverImg,title:p.name||"",type:$s(p.content),enableFlag:1,content:p.content,id:null})}),r.editList=c,r.uploadStatus=!0,r.editStatus=!1}},null)]})])}}),Kl="_protocolModal_6k92d_1",Hl="_dingPng_6k92d_4",ql="_downMove_6k92d_13",Ql="_downMoveBg_6k92d_21",Yl="_closeAble_6k92d_28",Jl="_submitAppBtn_6k92d_54",Xl="_cancelBtn_6k92d_55",Zl="_protocolGroup_6k92d_65",$l="_checkbox_6k92d_75",ei="_checkboxActive_6k92d_83",ti="_protocolSection_6k92d_90",ui="_protocolContent_6k92d_123",si="_child_6k92d_134",ie={protocolModal:Kl,dingPng:Hl,downMove:ql,downMoveBg:Ql,closeAble:Yl,submitAppBtn:Jl,cancelBtn:Xl,protocolGroup:Zl,checkbox:$l,checkboxActive:ei,protocolSection:ti,protocolContent:ui,child:si},ai=""+new URL("dingPng-b63c3ae2.png",import.meta.url).href,mu=""+new URL("moveTop-6b6421db.png",import.meta.url).href,gu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAi9JREFUaEPt2a9LBEEUwPHvBUFEg0EQ0SD+BTaLSbCYTAo2k0WDlvMHCCJisWgwWRVMJoNgMtj8CwSDv8BgUhEElYFdWZe7nbcz78Fx7Na7ebOfeTtvZnZrtMlVaxMHFaTVMlllpMqI0QhIHq0hYBx4Ay6AT6N7ScN2ApNAN3AF3Ev680GGgT2gIwn2AKwDr5LgAf/pBXaAwaTtF7AC3Pli+SALwFQuyCOwZoDJI9Juz4HDWMg8MN0giDamGcJ1fQYcxUL6gP3kec3H0sIUId6BJeAlFuLajwDbRhgfYgO49SHc7745ksawwKghykC0M6OKKAvRwqgjQiCxGBNEKCQUY4aIgfgwT8BqZtE0RcRCpJif3LYjW03dOiEusUVlWFp+i2IUlWaXme/M3skEoZERyTrTaBDUMpEG18hIWYw6QjMjUowJwgLiqtMuMNBkUj0DdYMjgHivJdm3FZXYbHutXfO/e9KaI1JE2rk6RgPiW+zcOuLO3/lLFRML8SHcYucgVueZv8GJgUgQ6aHI4jyjMkfKICSlOfoxC8lICMIcUxYSgzDFlIFoIMwwUogmwgQjgVgg1DE+SFfy7jd9F2txnvCV5mXgw7dH8kFmgbkGQbR3sUWYE+A4FrKYvOK3yET+3pph3KeMg1jIKLCVCaKdCQlmE7iJhbj2Y8BE8qHnFHBnCsurH5gBeoBL4FrSmW+OSGK0xH8qSEukIXMTVUaqjBiNQPVoGQ1scNi2ycgvTfaxM/Rb2jIAAAAASUVORK5CYII=",oi=K({name:"add-courseware-protocol",emits:["close","confirm"],setup(o,{emit:l}){const t=X({status:!1,protocolShow:!1});return()=>e("div",{class:ie.protocolModal},[e("img",{src:ai,class:ie.dingPng,alt:""},null),t.protocolShow?e("div",{class:ie.protocolSection},[e("img",{src:mu,class:ie.downMoveBg,alt:""},null),e("img",{src:gu,class:ie.closeAble,onClick:()=>{t.protocolShow=!1},alt:""},null),e("h2",null,[E("《音乐数字课堂课件与作业公开服务协议》")]),e(ye,{style:{maxHeight:"45vh"}},{default:()=>[e("div",{class:ie.protocolContent},[e("p",{style:{paddingTop:"0"}},[E("欢迎使用音乐数字课堂!")]),e("p",null,[E("重要须知")]),E("武汉酷乐秀网络科技有限公司(以下统称“平台方”,或称“我们”),在此特别提醒,为使用音乐数字课堂(包括手机端、网页端等,以下称“软件”或“平台”)与相关信息化教育产品、内容及服务,您务必仔细阅读、充分理解并遵守《音乐数字课堂课件与作业公开服务协议》(以下简称“本协议”)中各项条款,包括免除或者限制责任的条款,并选择接受或不接受。本协议所述服务条款构成您(个人或者单位、组织、团体等)使用平台方提供的相关服务(以下简称“该服务”)的先决条件。若您不接受本协议中所述服务条款或其后对协议条款的修改,您应不使用或主动取消平台方提供的相关服务。 您自愿使用平台方提供的网络存储空间进行培训课件与作业及相关智力成果的上传及传播服务。如果您未满18周岁,请在法定监护人的陪同下阅读本协议。"),e("br",null,null),E("本协议是您(或称“用户”,指注册、登录、使用、浏览本服务的个人或组织)与平台方之间关于音乐数字课堂与相关信息化教育产品、内容及服务所订立的协议。"),e("br",null,null),e("p",null,[E("1 权利声明")]),E("音乐数字课堂由武汉酷乐秀网络科技有限公司(以下简称“酷乐秀”)独立开发,一切知识产权以及音乐数字课堂自有的所有信息内容包括但不限于:文字表述及其组合、图标、图饰、图像、图表、色彩、界面设计、版面框架、有关数据、附加程序、印刷材料或电子文档等均为酷乐秀所有,受著作权法和国际著作权条约以及其他知识产权法律法规的保护。"),e("br",null,null),E("音乐数字课堂由武汉酷乐秀网络科技有限公司(以下简称“音乐数字课堂”)提供运营管理服务。"),e("br",null,null),e("p",null,[E("2 服务说明 ")]),E("2.1 您可以通过音乐数字课堂主页【网址:https://kt.colexiu.com/classroom-admin/#/login】、手机客户端(及其他由音乐数字课堂运营的任何网站)、音乐数字课堂公众号,访问音乐数字课堂并使用相关服务。"),e("br",null,null),E("2.2 您知悉并同意,在注册成为音乐数字课堂用户或使用本服务时,需提供一些必要信息,包括但不限于手机号码、头像等。若国家法律法规或政策有特殊规定的,平台方会根据相关特殊规定要求您提供相关信息,如真实的身份信息等,若您提供的信息不完整,您将无法使用本服务或本服务中的相关功能,由此为您带来不便或损失的,平台方完全免责。如个人信息发生变更,您有权随时与平台方联系并要求修改相关个人信息。在您向平台方提出前述删除请求前,平台方可在本协议约定范围内合理利用相关个人信息。"),e("br",null,null),E("您应承诺合法使用平台方提供的服务,您使用该服务的行为应符合当地的法律法规及政策的要求,否则由此带来的责任由您自行承担。"),e("br",null,null),e("p",null,[E("3 权利授予 ")]),E("3.1 您理解并同意,您将课件与作业及相关智力成果上传至音乐数字课堂,即视为您授予了平台方无期限限制的、全球范围内的、不可撤销的信息网络传播权和其他形式的使用权。为了更好地对课件与作业进行宣传和推广,平台方可以将上述权利转让或者转授予给其关联公司或者合作伙伴,而无须征得您的同意。您如果不同意上述条款,请不要将作品上传至音乐数字课堂。"),e("br",null,null),E("3.2 平台方仅对您提交的资料和信息进行审核,并不对您的主体资质和上传的课件与作业内容的真实性、正确性、合法性承担任何责任或提供任何担保。"),e("br",null,null),E("3.3 如果任何第三方侵犯音乐数字课堂用户相关的权利,用户同意授权平台方或其指定的代理人代表平台方自身或用户对该第三方提出警告、投诉、发起行政执法、诉讼、进行上诉,或谈判和解,并且用户同意在平台方认为必要的情况下参与共同维权。"),e("br",null,null),e("p",null,[E("4 权利限制 ")]),E("4.1 平台方通过音乐数字课堂所提供的服务,均限于在音乐数字课堂平台内使用,禁止任何以恶意破解等非法手段将音乐数字课堂内的服务与音乐数字课堂平台分离的行为,否则,由此引起的一切后果由行为人负责,平台方将保留依法追究行为人法律责任的权利。"),e("br",null,null),E("4.2 未经平台方书面同意,您不得将已上传至音乐数字课堂平台上的培训课件与作业的任何资料文件直接、间接或经修改后提供给任何第三方。"),e("br",null,null),E("4.3 保留权利:本协议未明示许可的其他一切权利仍归平台方所有,您使用其他权利时必须获得平台方的书面同意。"),e("br",null,null),E("4.4 除本协议有明确规定外,本协议并未对平台方其他服务规定相关的服务条款,对于这些服务可能有单独的服务条款加以规范,请您在使用有关服务时另行了解与确认。如您使用该服务,视为对相关服务条款的接受。"),e("br",null,null),e("p",null,[E("5 用户使用须知")]),E("5.1 您承诺您具有履行本协议义务的权利能力及资格,因您自身职务或职业要求导致本协议无法履行或合同目的无法实现的,您应当及时通知平台方,并共同协商解决办法,以保证将事件影响性降到最低。"),e("br",null,null),E("5.2 您保证,您上传的课件与作业所涉的创意、脚本、资料、课件与作业等全部文件资料不违反国家相关法律法规、不侵犯第三方权益,且平台方按照约定行使授权内容的相关权利不会侵犯任何第三方的合法权益,也无须另行取得任何第三方的同意,更无须对任何第三方承担责任。如您违反前述保证,平台方有权采取包括但不限于删除相关课件与作业内容、中止或终止向您提供服务等措施。如您上传的课件与作业侵犯了第三方的合法权利,第三方向平台方提出举报,平台方有权删除相关的内容。当权利人发现音乐数字课堂上相关课件与作业侵犯其合法权益时,权利人可向平台方举报,平台方将根据中国法律法规和规范性文件的规定采取移除相关内容等合理措施。"),e("br",null,null),E("5.3 您保证上传的课件与作业中不含以下内容:"),e("br",null,null),e("div",{class:ie.child},[E("1. 反对宪法所确定的基本原则;"),e("br",null,null),E("2. 危害国家安全,泄漏国家秘密,颠覆国家政权,破坏国家统一;"),e("br",null,null),E("3. 损害国家荣誉和利益; "),e("br",null,null),E("4. 煽动民族仇恨、民族歧视,破坏民族团结;"),e("br",null,null),E("5. 破坏国家宗教政策,宣扬邪教和封建迷信;"),e("br",null,null),E("6. 散布谣言,扰乱社会秩序,破坏社会稳定;"),e("br",null,null),E("7. 散布淫秽、色情、赌博、暴力、凶杀、恐怖或教唆犯罪;"),e("br",null,null),E("8. 侮辱或者诽谤他人,侵害他人合法权益;"),e("br",null,null),E("9. 含有法律、行政法规严令禁止的其他内容。"),e("br",null,null)]),E("5.4 上述承诺与保证不受本协议期限的限制,您违反上述任一的保证与承诺的,平台方有权即时解除本协议并要求您承担由此产生的全部责任。"),e("br",null,null),e("p",null,[E("6 隐私政策 ")]),E("6.1 目的 为改善平台方服务,提升用户体验,在您使用音乐数字课堂时,平台方可能对您使用音乐数字课堂的使用信息进行统计与分析,例如:平台方会根据您上传并通过审核的某单元的课件与作业数量显示您在该单元全国范围内的排名,同时显示您的头像、昵称信息及通过审核的课件与作业数量。平台方将采取必要的保护措施,以保护您的相关信息。您可以选择不提供或只提供部分信息,但平台方可能将无法为您提供完整的产品功能或服务。"),e("p",null,[E("7 免责与责任限制")]),E("7.1 音乐数字课堂不含有任何旨在破坏您计算机数据和获取您隐私信息的恶意代码。音乐数字课堂经过详细的测试,但不能保证与所有的软硬件系统完全兼容,不能保证音乐数字课堂完全没有错误。如果出现不兼容及软件错误的情况,您可拨打技术支持电话将情况报告平台方,以获得技术支持。如果无法解决兼容性问题,您可以删除音乐数字课堂。由此给您造成损失的,您同意平台方免责。"),e("br",null,null),E("7.2 在适用法律允许的最大范围内,对因使用或不能使用音乐数字课堂所产生的损害及风险,包括但不限于直接或间接的个人损害、商业赢利的丧失、贸易中断、商业信息的丢失或任何其它经济损失,平台方不承担任何责任。"),e("br",null,null),E("7.3 对于因电信系统或互联网网络故障、计算机故障或病毒、信息损坏或丢失、计算机系统问题或其它任何不可抗力原因而产生损失,平台方不承担任何责任。"),e("br",null,null),E("7.4 您知悉并同意,为实现部分软件功能,平台方有权将您在使用该服务过程当中产生的部分或全部数据信息,上传、保存至第三方云服务存储器,并根据您发出的功能指令需求,自行调取相关数据信息。因第三方云服务发生中断等功能障碍事故导致平台方无法正常提供服务的,平台方会尽其商业上的合理努力负责协调解决,但由此给您造成损失的,您同意平台方免责。"),e("br",null,null),E("7.5 您违反本协议规定,对平台方造成损害的。平台方有权采取包括但不限于中断使用许可、停止提供服务、限制使用、法律追究等措施。"),e("br",null,null),e("p",null,[E("8 法律及争议解决")]),E("8.1 本协议适用中华人民共和国法律。"),e("br",null,null),E(" 8.2 因本协议引起的或与本协议有关的任何争议,各方应友好协商解决;协商不成的,任何一方均可将有关争议提交至平台方所在地有管辖权的人民法院管辖。"),e("br",null,null),e("p",null,[E("9 其他条款")]),E("9.1 如果本协议中的任何条款无论因何种原因完全或部分无效或不具有执行力,或违反任何适用的法律,则该条款被视为删除,但本协议的其余条款仍有效并且具有约束力。"),e("br",null,null),E("9.2 如果本协议中的任何条款与音乐数字课堂中某具体软件的协议条款相矛盾的,以该具体软件的协议条款为准。"),e("br",null,null),E("平台方有权随时根据有关法律、法规的变化以及公司经营状况和经营策略的调整等修改本协议。修改后的协议会在平台方指定网站上公布,并随附于新版音乐数字课堂。当发生有关争议时,以最新的协议文本为准。如果不同意改动的内容,您可以自行删除音乐数字课堂。如果您继续使用音乐数字课堂,则视为您接受本协议的变动。"),e("br",null,null),E("至此,用户已经详细阅读并已理解本协议,并同意严格遵守各条款和条件。如果用户对本《协议》有任何疑问或者希望获得与本软件相关的任何信息,请按下列地址和方式与酷乐秀联系,酷乐秀将在15日内答复用户。"),e("br",null,null),E("技术支持方:武汉酷乐秀网络科技有限公司"),e("br",null,null),E("运营方:武汉酷乐秀网络科技有限公司")])]}),e($,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(G,{class:ie.cancelBtn,round:!0,type:"default",onClick:()=>{t.protocolShow=!1}},{default:()=>[E("取消授权")]}),e(G,{class:ie.submitAppBtn,bordered:!1,round:!0,type:"primary",onClick:()=>{t.protocolShow=!1,t.status=!0}},{default:()=>[E("同意授权")]})]})]):e("div",{class:ie.downMove},[e("img",{src:mu,class:ie.downMoveBg,alt:""},null),e("img",{src:gu,class:ie.closeAble,onClick:()=>{l("close")},alt:""},null),e("h2",null,[E("课件公开须知")]),e("p",null,[E("公开课件后,您课件中的资源及作业都可被其他教师查看、使用,具体信息请查看服务协议")]),e("div",{class:ie.protocolGroup,onClick:()=>{t.status=!t.status}},[e("i",{class:[ie.checkbox,t.status&&ie.checkboxActive]},null),e("p",null,[E("我已阅读并同意"),e("span",{onClick:i=>{i.stopPropagation(),t.protocolShow=!0}},[E("《音乐数字课堂课件与作业公开服务协议》")])])]),e($,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(G,{class:ie.cancelBtn,round:!0,type:"default",onClick:()=>l("close")},{default:()=>[E("取消")]}),e(G,{class:ie.submitAppBtn,bordered:!1,round:!0,type:"primary",disabled:!t.status,onClick:()=>{l("confirm")}},{default:()=>[E("确定")]})]})])])}}),ni=K({name:"courseware-modal",props:{groupItem:{type:Object,default:()=>({})}},emits:["change"],setup(o,{emit:l}){const t=wt(),i=Pe(),r=At(),u=X({subjects:[],openFlagEnable:!0,autoPlay:!1,name:"",openFlag:!1,createId:null,baseCoursewareList:[{name:"",id:null,list:[]}],baseInfo:{subjects:[],autoPlay:!1,name:"",openFlag:!1},coursewareList:[{name:"",id:null,list:[]}],loadingStatus:!1,dragLoadingStatus:!1,showAttendClass:!1,attendClassType:"change",removeIds:[],editSubjectIds:"",addCoursewareVisiable:!1,addCoursewareItem:{},messageCallBack:null,messageOperation:{visiable:!1,loading:!1,type:"delete",contentDirection:"center",title:"删除知识点",content:"请确认是否删除该知识点,删除知识点后将同步删除知识点下的资源",cancelButtonText:"取消",confirmButtonText:"确认",index:0},show:!1,item:{},previewModal:!1,previewParams:{type:"",subjectId:"",detailId:""},addOtherSource:!1,addOtherIndex:0}),n=W(),s=W(!1),c=async()=>{u.loadingStatus=!0;try{if(!o.groupItem.id)return u.loadingStatus=!1;const{data:a}=await Zu(o.groupItem.id),g=a.chapterKnowledgeList||[];u.name=a.name,u.subjects=a.instrumentIds?a.instrumentIds.split(",").map(v=>v):[],u.openFlag=a.openFlag,u.openFlagEnable=a.openFlagEnable,u.autoPlay=a.autoPlay;const C=[];g.forEach(v=>{const B=v.chapterKnowledgeMaterialList,P=[];Array.isArray(B)&&B.length>0&&B.forEach(D=>{P.push({id:D.id,materialId:D.bizId,coverImg:D.bizInfo.coverImg,type:D.type,title:D.bizInfo.name,dataJson:D.dataJson,instrumentIds:D.instrumentIds,hasNotCheck:D.hasNotCheck,isError:p(D.instrumentIds,D.type,D.hasNotCheck),isSelected:D.source==="PLATFORM",audioPlayTypeArray:D.audioPlayTypes?D.audioPlayTypes.split(","):[],content:D.bizInfo.content,removeFlag:D.removeFlag})}),C.push({name:v.name,id:v.id,list:[...P]})}),u.coursewareList=C,u.baseCoursewareList=Ft(C),u.baseInfo=Ft({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),L.emit("updateCoursewareHeadInfo",{name:u.name,subjects:u.subjects,openFlag:u.openFlag,openFlagEnable:u.openFlagEnable,autoPlay:u.autoPlay})}catch(a){console.log(a)}u.loadingStatus=!1},p=(a,g,C=!1)=>{let v=!1;return u.subjects.length<=0?!0:["IMG","VIDEO","SONG","MUSIC","PPT","LISTEN"].includes(g)?(u.subjects.forEach(P=>{!(a!=null&&a.includes(P))&&!C&&(v=!0)}),v):!1},A=(a=!1)=>{a?r.error("您添加的资源与适用乐器不符"):r.success("添加成功")},F=(a,g)=>{const C=u.coursewareList[g];C&&(C.list.splice(a,1),L.emit("onCoursewareUpdate"))},m=(a,g,C)=>{const v=a.getBoundingClientRect();return g>=v.left&&g<=v.right&&C>=v.top&&C<=v.bottom},d=(a,g)=>{const C=a.getBoundingClientRect(),v=C.left+C.width/2;return g{if(a==="up"){if(g===0)return;const v=u.coursewareList[g-1];u.coursewareList[g-1]=u.coursewareList[g],u.coursewareList[g]=v}else if(a==="down"){if(g>=u.coursewareList.length-1)return;const v=u.coursewareList[g+1];u.coursewareList[g+1]=u.coursewareList[g],u.coursewareList[g]=v}else a==="remove"&&(u.messageOperation={visiable:!0,type:"delete",contentDirection:"left",title:"删除知识点",loading:!1,content:"请确认是否删除".concat(C.name?"【"+C.name+"】":"该知识点",",删除知识点后将同步删除知识点下的资源"),cancelButtonText:"取消",confirmButtonText:"确认",index:g})},f=async()=>{const a=u.messageOperation.type;if(a==="delete")u.coursewareList.splice(u.messageOperation.index,1),L.emit("onCoursewareUpdate");else if(a==="addItem")u.coursewareList.push({name:"",list:[]}),b(u.addCoursewareItem);else if(a==="save"||a==="pageLive"||a==="checkInstrument"){if(u.messageOperation.loading)return;if(!u.name){r.error("请输入课件名称"),u.messageOperation.visiable=!1;return}if(u.subjects.length<=0){r.error("请选择适用乐器"),u.messageOperation.visiable=!1;return}if(u.coursewareList.length<=0){r.error("未配置知识点"),u.messageOperation.visiable=!1;return}let g=!1;for(const v of u.coursewareList){if(!v.name){r.error("请输入知识点名称"),u.messageOperation.visiable=!1;return}Array.isArray(v.list)&&v.list.length<=0&&(g=!0)}if(g){r.error("请至少添加一个资源"),u.messageOperation.visiable=!1;return}if(Y()&&a!=="checkInstrument")return;u.messageOperation.loading=!0;const C=await j();u.messageOperation.loading=!1,C&&((a==="pageLive"||a==="checkInstrument")&&typeof u.messageCallBack=="function"&&u.messageCallBack(),x())}u.messageOperation.visiable=!1};let _=null;const b=async(a,g,C=!1)=>{clearTimeout(_);const v=[];if(!C)try{const{data:B}=await eu(a.materialId);Array.isArray(B.materialRefs)&&B.materialRefs.forEach(P=>{if(P.refType==="STRONG"){const D=P.relateMaterialInfo||{};v.push({content:D.content,coverImg:D.coverImg,isSelected:D.sourceFrom==="PLATFORM",instrumentIds:D.instrumentIds,materialId:D.id,isError:p(D.instrumentIds,D.type),title:D.name,type:D.type})}})}catch(B){}ke(()=>{if(g){const P=document.querySelectorAll(".row-group")[a.index].querySelectorAll(".row-nav");let D=!1;P.forEach((le,de)=>{if(m(le,g.x,g.y)){const ge=u.coursewareList[a.index||0].list||[];d(le,g.x)?(v.forEach(be=>{ge.splice(de,0,be)}),ge.splice(de,0,a)):(ge.splice(de+1,0,a),v.forEach(be=>{ge.splice(de+1,0,be)})),D=!0,u.coursewareList[a.index||0].list=ge}}),D||(u.coursewareList[a.index||0].list.push(a),v.forEach(le=>{u.coursewareList[a.index||0].list.push(le)}))}else u.coursewareList[a.index||0].list.push(a),v.forEach(B=>{u.coursewareList[a.index||0].list.push(B)});_=setTimeout(()=>{L.emit("onCoursewareUpdate")},100)})},I=async(a,g)=>{clearTimeout(_),u.dragLoadingStatus=!0;const C=[];try{const{data:v}=await eu(a.materialId);Array.isArray(v.materialRefs)&&v.materialRefs.forEach(B=>{if(B.refType==="STRONG"){const P=B.relateMaterialInfo||{};C.push({content:P.content,coverImg:P.coverImg,isSelected:P.sourceFrom==="PLATFORM",instrumentIds:P.instrumentIds,isError:p(P.instrumentIds,P.type),materialId:P.id,title:P.name,type:P.type})}})}catch(v){}ke(()=>{const v=u.coursewareList[a.index||0].list||[];v[g]=a,C.forEach(B=>{v.splice(g+1,0,B)}),u.coursewareList[a.index||0].list=v,a.isError&&r.error("您添加的资源与适用乐器不符"),_=setTimeout(()=>{L.emit("onCoursewareUpdate")},100),u.dragLoadingStatus=!1})},x=()=>{l("change",{status:!1,addParam:{isAdd:!1,name:u.name,id:u.createId}}),L.emit("teacher-slideshow",!1)},Y=()=>{let a=!1;return u.coursewareList.forEach(g=>{(g.list||[]).forEach(v=>{v.isError&&(a=!0)})}),a&&(u.messageOperation={visiable:!0,type:"checkInstrument",loading:!1,contentDirection:"center",title:"温馨提示",content:"课件中含有不符合适用乐器的资源,是否继续保存?",cancelButtonText:"取消",confirmButtonText:"继续保存",index:0}),a},k=async()=>{try{if(n.value.validate(),L.emit("checkCoursewareForm"),!u.name){r.error("请输入课件名称");return}if(u.subjects.length<=0){r.error("请选择适用乐器");return}if(u.coursewareList.length<=0){r.error("请至少添加一个知识点");return}let a=!1;for(const C of u.coursewareList){if(!C.name){r.error("请输入知识点名称");return}Array.isArray(C.list)&&C.list.length<=0&&(a=!0)}if(a){r.error("请至少添加一个资源");return}if(Y())return;if(u.openFlag&&!t.getReadCoursewareOpenAgreement){s.value=!0;return}await j()&&x()}catch(a){}},j=async()=>{var a;try{const g={name:u.name,instrumentIds:u.subjects.join(","),openFlag:u.openFlag,autoPlay:u.autoPlay,coursewareDetailKnowledgeId:i.getSelectKey,chapterKnowledgeList:[]};if(u.coursewareList.forEach(C=>{let v=[];Array.isArray(C.list)&&C.list.length>0&&(v=C.list.map(B=>({bizId:B.materialId,type:B.type,dataJson:["IMG","VIDEO","SONG","MUSIC","PPT"].includes(B.type)?"":JSON.stringify({setting:B.dataJson,coverImg:B.coverImg,bizId:B.bizId,content:B.content,name:B.title})}))),g.chapterKnowledgeList.push({name:C.name,chapterKnowledgeMaterialList:v})}),(a=o.groupItem)!=null&&a.id)await es({id:o.groupItem.id,...g}),r.success("保存成功");else{const{data:C}=await Cu(g);u.createId=C.id}return!0}catch(g){return!1}},he=(a,g)=>{if(u.subjects.length<=0){r.error("请先选择适用乐器"),L.emit("checkCoursewareForm","subject");return}a.isError=p(a.instrumentIds,a.type,a.hasNotCheck),u.coursewareList.length<=0?(u.addCoursewareItem=a,u.messageOperation={visiable:!0,type:"addItem",contentDirection:"center",title:"添加到知识点",loading:!1,content:"当前课件暂无知识点,请添加知识点后操作",cancelButtonText:"取消",confirmButtonText:"添加知识点",index:0}):u.coursewareList.length>1&&a.addType!=="drag"?(u.addCoursewareVisiable=!0,u.addCoursewareItem=a):(b(a,g),A(a.isError))},se=a=>{const g=JSON.stringify(u.coursewareList),C=JSON.stringify(u.baseCoursewareList),v=JSON.stringify({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),B=JSON.stringify(u.baseInfo);g===C&&v===B?typeof a=="function"&&(a(),x()):(u.messageCallBack=a,u.messageOperation={visiable:!0,type:"pageLive",loading:!1,contentDirection:"center",title:"保存课件",content:"当前课件暂未保存,是否保存?",cancelButtonText:"不保存",confirmButtonText:"保存",index:0})},xe=a=>{u.subjects=a.subjects,u.openFlagEnable=a.openFlagEnable,u.autoPlay=a.autoPlay,u.name=a.name,u.openFlag=a.openFlag;const g=JSON.stringify(u.coursewareList),C=JSON.stringify(u.baseCoursewareList),v=JSON.stringify({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),B=JSON.stringify(u.baseInfo);g===C&&v===B?x():u.messageOperation={visiable:!0,type:"save",loading:!1,contentDirection:"center",title:"保存课件",content:"当前课件暂未保存,是否保存?",cancelButtonText:"不保存",confirmButtonText:"保存",index:0}},Ge=a=>{u.subjects=a.subjects,u.openFlagEnable=a.openFlagEnable,u.autoPlay=a.autoPlay,u.name=a.name,u.openFlag=a.openFlag,k()},Te=a=>{u.subjects=a.subjects,u.openFlagEnable=a.openFlagEnable,u.autoPlay=a.autoPlay,u.name=a.name,u.openFlag=a.openFlag},ce=a=>{u.subjects=a;let g=!1;u.coursewareList.forEach(C=>{(C.list||[]).forEach(B=>{B.isError=p(B.instrumentIds,B.type,B.hasNotCheck),B.isError&&(g=!0)})}),g&&r.error("您添加的资源与适用乐器不符")};return oe(async()=>{var a;(a=o.groupItem)!=null&&a.id&&(u.coursewareList=[],u.baseCoursewareList=[]),await c(),L.on("onPrepareAddItem",he),L.on("pageBeforeLeave",se),L.on("coursewareSubjectChange",ce),L.on("coursewareClosed",xe),L.on("coursewareSave",Ge),L.on("coursewareHeadSyncData",Te)}),Xe(()=>{L.off("onPrepareAddItem",he),L.off("pageBeforeLeave",se),L.off("coursewareSubjectChange",ce),L.off("coursewareClosed",xe),L.off("coursewareSave",Ge),L.off("coursewareHeadSyncData",Te)}),We(()=>u.coursewareList,()=>{i.setCoursewareList(u.coursewareList)},{deep:!0}),()=>e(Wt,{class:J.coursewareModal,model:u,ref:n},{default:()=>[e(ye,Rs({class:[J.listContainer,"listContainerWrap"]},{id:"lessonsIn-1"}),{default:()=>[e(we,{show:u.loadingStatus},{default:()=>[e("div",{class:[J.listSection,"listSectionWrap"],id:"listSectionWrap"},[u.coursewareList.map((a,g)=>e("div",{class:[J.listItems,"row-group"]},[e("div",{class:J.knowledgePoint},[e(Oe,{class:J.btnItem,label:"知识点名称",showFeedback:!1,requireMarkPlacement:"left",path:"coursewareList.".concat(g,".name"),rule:[{required:!0,trigger:["input","blur"]}]},{default:()=>[e(nt,{placeholder:"未命名知识点",value:a.name,"onUpdate:value":C=>a.name=C,maxlength:15,clearable:!0},null)]})]),e($,{class:J.operationGroup},{default:()=>[g>0&&e(Ae,{showArrow:!1},{trigger:()=>e("i",{class:J.iconCUp,onClick:()=>w("up",g)},null),default:()=>"上移知识点"}),ge("i",{class:J.iconCDown,onClick:()=>w("down",g)},null),default:()=>"下移知识点"}),e(Ae,{showArrow:!1},{trigger:()=>e("i",{class:J.iconCRemove,onClick:()=>w("remove",g,a)},null),default:()=>"删除知识点"})]}),e(Ws,{modelValue:a.list,"onUpdate:modelValue":C=>a.list=C,itemKey:"id",group:"description",scroll:!0,animation:200,onAdd:async C=>{if(u.dragLoadingStatus)return;const v=u.coursewareList[g].list,B=v[C.newDraggableIndex];if(B.sourceForm==="resource-item"){if(u.subjects.length<=0){v.splice(C.newDraggableIndex,1),r.error("请先选择适用乐器"),L.emit("checkCoursewareForm","subject");return}await I({materialId:B.id,coverImg:B.coverImg,type:B.type,title:B.title,refFlag:B.refFlag,isCollect:B.isCollect,isSelected:B.isSelected,hasNotCheck:B.hasNotCheck,isError:p(B.instrumentIds,B.type,B.hasNotCheck),content:B.content,audioPlayTypeArray:B.audioPlayTypeArray,removeFlag:!1,index:g},C.newDraggableIndex)}},onDrag:C=>{const v=document.querySelector(".listContainerWrap .n-scrollbar-container"),B=150;C.clientY{const v=C.element;return e("div",{"data-id":v.id,class:[J.itemWrap,J.itemBlock,"row-nav"]},[e("div",{class:J.itemWrapBox},[e($u,{class:[J.itemContent],isError:v.isError,isShowCollect:!1,offShelf:!!v.removeFlag,item:v,audioPlayTypeSize:"small",disabledMouseHover:!1,onClick:()=>{v.type!=="IMG"&&(u.show=!0,u.item=v)}},null),e("div",{class:J.itemOperation},[e("img",{src:Vs,class:J.iconDelete,onClick:B=>{B.stopPropagation(),F(C.index,g)}},null)])])])},footer:()=>e("div",{class:J.itemWrap},[e("div",{class:J.itemWrapBox},[e("div",{class:[J.itemContent,J.addMusicItem,"handle"],onClick:()=>{if(u.subjects.length<=0){r.error("请先选择适用乐器"),L.emit("checkCoursewareForm","subject");return}u.addOtherSource=!0,u.addOtherIndex=g}},[e("img",{src:dn},null),e("p",{class:J.addMusicName},[E("添加资源")])])])])})])),!u.loadingStatus&&e(G,{block:!0,type:"primary",secondary:!0,class:J.addKnowledgePoint,onClick:()=>{u.coursewareList.push({name:"",list:[]})}},{default:()=>[e("i",{class:J.iconCAdd},null),E("添加知识点")]})])]})]}),e(bt,{size:["INSTRUMENT","THEORY","MUSIC_WIKI","MUSICIAN","RHYTHM"].includes(u.item.type)?"large":"",show:u.show,"onUpdate:show":a=>u.show=a,item:u.item,isDownload:!1},null),e(te,{maskClosable:ue,show:u.addCoursewareVisiable,"onUpdate:show":a=>u.addCoursewareVisiable=a,preset:"card",class:["modalTitle",J.addCourseware],title:"添加到知识点"},{default:()=>[e(fn,{coursewareList:u.coursewareList,onClose:()=>u.addCoursewareVisiable=!1,onConfirm:a=>{Array.isArray(a)&&a.length>0?(a.forEach(g=>{b({...u.addCoursewareItem,index:g})}),u.addCoursewareVisiable=!1,A(u.addCoursewareItem.isError)):r.error("请选择需要添加的知识点")}},null)]}),e(te,{maskClosable:ue,show:u.messageOperation.visiable,"onUpdate:show":a=>u.messageOperation.visiable=a,preset:"card",class:["modalTitle",J.removeVisiable1],title:u.messageOperation.title},{default:()=>[e(Ct,{content:u.messageOperation.content,contentDirection:u.messageOperation.contentDirection,cancelButtonText:u.messageOperation.cancelButtonText,confirmButtonText:u.messageOperation.confirmButtonText,loading:u.messageOperation.loading,onClose:()=>{u.messageOperation.visiable=!1,(u.messageOperation.type==="save"||u.messageOperation.type==="pageLive")&&(x(),u.messageOperation.type==="pageLive"&&typeof u.messageCallBack=="function"&&u.messageCallBack()),u.messageCallBack=null},onConfirm:()=>f()},null)]}),e(Iu,{show:u.previewModal,"onUpdate:show":a=>u.previewModal=a,type:"attend",params:u.previewParams},null),e(te,{maskClosable:ue,show:u.addOtherSource,"onUpdate:show":a=>u.addOtherSource=a,preset:"card",class:["modalTitle background",J.addOtherSource],title:"添加资源"},{default:()=>[e(Gl,{onClose:()=>u.addOtherSource=!1,onComfirm:a=>{if(Array.isArray(a)){let g=!1;a.forEach(async C=>{C.isError=p(C.instrumentIds,C.type),u.coursewareList[u.addOtherIndex||0].list.push(C),C.isError&&(g=!0)}),A(g)}else a.isError=p(a.instrumentIds,a.type),a.index=u.addOtherIndex,u.coursewareList[a.index||0].list.push(a),A(a.isError)}},null)]}),e(te,{maskClosable:ue,show:s.value,"onUpdate:show":a=>s.value=a},{default:()=>[e(oi,{onClose:()=>s.value=!1,onConfirm:async()=>{try{await j()&&x()}catch(a){}}},null)]})]})}}),ri="_coursewarePresetsContainer_ugcu6_1",li="_rightLineShow_ugcu6_5",ii="_presetsRight_ugcu6_5",ci="_presetsLeft_ugcu6_35",di="_popoverItem_ugcu6_39",pi="_presetsArrar_ugcu6_85",mi="_presetsArrarActive_ugcu6_108",gi="_openLoading_ugcu6_111",fi="_coursewarePresets_ugcu6_1",Ci="_btnSubjectList_ugcu6_118",hi="_addBtnIcon_ugcu6_121",Fi="_addBtn_ugcu6_121",Ei="_title_ugcu6_152",Ai="_titleLeft_ugcu6_165",wi="_icon_ugcu6_169",vi="_iconWork_ugcu6_175",Bi="_iconCourseware_ugcu6_179",yi="_line_ugcu6_183",bi="_more_ugcu6_188",_i="_iconP_ugcu6_200",Si="_swipeControll_ugcu6_212",Ii="_leftIcon_ugcu6_215",Di="_disabled_ugcu6_223",ki="_list_ugcu6_227",Li="_listEmpty_ugcu6_235",xi="_listSame_ugcu6_239",Ti="_itemWrap_ugcu6_243",Pi="_itemWrapBox_ugcu6_246",ji="_attendClassModal1_ugcu6_252",Ri="_removeVisiable1_ugcu6_257",Mi="_studentRemove_ugcu6_263",Ni="_btnGroupModal_ugcu6_274",Vi="_attendClassModal_ugcu6_252",Wi="_workVisiable_ugcu6_286",Oi="_workContainer_ugcu6_292",Ui="_workTrain_ugcu6_296",zi="_resourceMain_ugcu6_309",Gi="_popSelect_ugcu6_315",Ki="_textBtn_ugcu6_325",Hi="_iconArrow_ugcu6_332",qi="_textBtnActive_ugcu6_340",Qi="_pptCoursewareModal_ugcu6_350",Yi="_updateBtnGroup_ugcu6_365",Ji="_btnItem_ugcu6_373",Xi="_block_ugcu6_379",Zi="_btnTitle_ugcu6_383",$i="_iconQuestion_ugcu6_394",V={coursewarePresetsContainer:ri,rightLineShow:li,presetsRight:ii,presetsLeft:ci,popoverItem:di,presetsArrar:pi,presetsArrarActive:mi,openLoading:gi,coursewarePresets:fi,btnSubjectList:Ci,addBtnIcon:hi,addBtn:Fi,title:Ei,titleLeft:Ai,icon:wi,iconWork:vi,iconCourseware:Bi,line:yi,more:bi,iconP:_i,swipeControll:Si,leftIcon:Ii,disabled:Di,list:ki,listEmpty:Li,listSame:xi,itemWrap:Ti,itemWrapBox:Pi,attendClassModal1:ji,removeVisiable1:Ri,studentRemove:Mi,btnGroupModal:Ni,attendClassModal:Vi,workVisiable:Wi,workContainer:Oi,workTrain:Ui,resourceMain:zi,popSelect:Gi,textBtn:Ki,iconArrow:Hi,textBtnActive:qi,pptCoursewareModal:Qi,updateBtnGroup:Yi,btnItem:Ji,block:Xi,btnTitle:Zi,iconQuestion:$i},ec="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAhCAMAAABgOjJdAAABj1BMVEUAAAAcffgdfPophvghgPswkP8igfqGy/5XqPsrhvuS1P8ph/ouivsnhvtuuf1ms/1JoP+d3P8xi/ovivolg/kcffqO0f81jvuN0P91vv1frf1OovuT1P9AlvseffolgvuX1/9bq/xXqPxRo/s7k/o0jvmb2v+Fyv6AxP17wv1Jnfud2/+Rz/+c2/+X1/+Axv5Upvqd3P+e3P99xf6R0/+b2/87kvtfrPwvivguivk1j/uP0/90vP0zjvqc3P+Gy/8wivma2f0dfPk1jPklg/lHm/tFm/s5kfue3P+d3f81jfxAl/mb2v8zjfye4P+g4f82kv8wh/eZ1v9Al/obe/g9lPpbq/xNoftFmvo4kPpYqft7wv1UpftHnPsyjPpjsPxJnftfrvxLn/tCmfs7k/o0jvotifl1vv1zvP1ptf1ntPxWp/w6kvo2j/owi/oqhvmGy/5vuf1lsvxdrPxSpPuKzv6CyP5rt/1PovtKnvsnhPl3wP1xu/1tuP1hr/xQo/t+xf6Axv4jgfmN0P5Ro/pdbcaNAAAAU3RSTlMAiY8njwbyenoW/fKPj3p6DP3yoKCWj496enp6eHhoJf39/f3z3Miaenp6dxL38vDw6OXY1dLHwry3p5iVlZOPiYiEg4J6enRsaFxbWVU6My8gGYS+zPkAAAH6SURBVDjLjdNnd5pQHMdxamsSbZuoaTTTZu/uvffeJbKXGARRQYgooma/8N4AuZeTBzn9Prznc3730R8LSv25CEuET3Es0u/RpUzmMmgANOY/xfOx6wgkHtKKIhjlsml6h4fXAjG29WgTim+L2zW6HhjPOxX0ze9QzOB4AZlQvOgmp6H4QJWQMUYD8dxJjkOxLvEUBQ0QiQQWX3EcJKbIjsTDnaepr4+f/NhcaTQGkVggSRmaxaWMYNy+d+ughcQQ13RJObqDWyzL7q8iMV/lmnuRnQKhqWqXXYNico5hoOGBkdtWT9PUCSSKOwQBzLHr+n9RYqXS7lu9YShGxN3AgB1gOlVRtHWAIkK3RREa8pjYKe6Ktq2PQDHcrgADdziGAAagiLD60DBMs8lVqz6ahGJC61n9SmgYknT3AGKYuSEkVA2YYKco85J8gjhuHok1tquqoeFKJYqXAHLdBSRW99lTY+OFAl6iKJ7vyOQUFIOtA99omiXRdA0YH0nrSDRaoWEEQanT9HaAPiLhNALTrpfLho9qJ2gGivEjxzdsxzNNEyEkppNHvtHBLXg+MgxBUehPSMwm7z/LZl/lYpdAV0FXQLl36KQ2ZpdT2Ll9ufHg7/ni19308stsLobyv3sfOdzPd9JpfetsA3kM9XPjzesLZ3qbT2D/1T+FAdzEuILUAgAAAABJRU5ErkJggg==",tc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAhCAMAAABgOjJdAAAB4FBMVEUAAAD/Vxv/qZj/e2D9YC79WyT+ZDf/WB7/VRv+bEb+aT//cU37VRv/VRn8Vxz/uaf/vbD+VRn9Vxz+WB39dVX/dlj+Vhn/VBj7WyH+Vhz7Vhz+eFv8Uhb/el7/e2D+VRn/XCH7VR//fV3/mob/el/7WCD/Uxf/dVX8YC//k33/VBn/el7/e1//WR/7VRn/fGH7Vhn/Vx7/UxX6Vhn/fGD/aj7/e178a0H/fWP/VRT/Vh3/f2D/f2D/YCD//////Pz7XCf6VBj/dVb/+fb/aDv8Xyv/b0n/YC78XSn7WyT7WB//4Nb/dFP/clD/bEX/YjH/Xiv7WiP7WSH/Vx39bUb+a0P/a0L/akD/aD3/ZTf/XSj/WSD7Vx3/9fL+6OH/wK3/d1n/cU3/bkf/aDf/Wyb/WyT7Vhv/8ez+x7T9aT/9Zz38ZTf8YC//WiL/zb3/vKv/tJ//gmj/f2H/eV3/eFX/b0v/Zjn8YzT/YzP/VRn/zLz/uKL/qpX+pIn/jGz/eFv+e1j+dFL/c1H+cU/+cEz9Zjn/ZDX8YjL/6+b/6eP/5d7/1c3/1Mj/0cH/sZn/rpb/rJH8km7/iWz/iGf+fl38eFD8fE7/ZjX/3NL+mnv/el/8dUr/o4z9n4H8iF78gVUsQTzVAAAAPnRSTlMALfdogIB/4+N/f37u7lf+/de+jIB7d04R9OGAfXpYSiccFPr5+Pj17+7k4MHAuJaGb2toZVtPTzEnIyAICOvINHMAAAJESURBVDjLldNpVxJxFMdxLbVUtNRyy9za932v/wjCGCgRygyijQFJIJjsaaxCBIigAgYuLW+1e2do6HiOnePn6e/77J5bc0TdtQMP+joHD1mft9693dYr6ZFKnhxYXnUP1bZ2tEs+Aim6+vhA0dree0mleieASnXlznFR/zAU9dpJ7SRQAShVds+FY6JrD7FQKrVKLeLDEZl7nYhOn8dipELJW/BCQVH/FnWK1zwhU0zsude53G9bpTiLxaKiAju717vnKdik0l0OC6dQAEf+ZzicdygWJ6JRo9ENhTJIicVyKpXaHx+lKM6WYmQIC+kvKxSnmqFoWAb7cySboawR9QSIe3KlUilfLRzg+xzxRaxUSM3zhUKhzXEiFt8AFKueNLVhAn6/n6ZpXxaLYCMUTXYAReEHx+3iRptRhKsWC2B1jmQ4kvWZ3wjY4g5BriYsGIbBgko7fTCxrDlSLLrSpFo06nQMA4WOYVk9MuWIyNXAF2B7jej000guZ8PvBZm/hT9B01DQ0/LPwGAwyCFDTkI2sGg2JRKJ7R0rg6MhmUyyS5SAQFGHxVcQ9xQMyRWg0WjkW0sgEAisEbKJxZlYLK6Oq6c1aAyVPwicUNRjIYNTxEwruL1F5eC4AA6zxRdGGdDjNsMrB4iIL84ZQWxsZmYeWSwWjW1UFO7EwuuNRvU4WT6B2dlZyQl0ErUNQNF/88ZF2TxMaAr03KsVDdWAl8Mvnj7quNUyhb6Alq5D/nYQXrPtestlKP77+133+zqf1RzNH/TTAMw6W2j5AAAAAElFTkSuQmCC",uc="_relatedClass_c6wpx_1",sc="_attendClassSearch_c6wpx_4",ac="_iconSearch_c6wpx_20",oc="_classList_c6wpx_24",nc="_listSection_c6wpx_28",rc="_emptySection_c6wpx_32",lc="_list_c6wpx_28",ic="_listSame_c6wpx_45",cc="_itemWrap_c6wpx_49",dc="_itemWrapBox_c6wpx_52",Se={relatedClass:uc,attendClassSearch:sc,iconSearch:ac,classList:oc,listSection:nc,emptySection:rc,list:lc,listSame:ic,itemWrap:cc,itemWrapBox:dc},pc=K({name:"related-class",props:{tableList:{type:Array,default:()=>[]},instrumentList:{type:Array,default:()=>[]},instrumentId:{type:[String,Number],default:""},coursewareDetailKnowledgeId:{type:[String,Number],default:""}},emits:["close","add","click"],setup(o,{emit:l}){const t=W([]),i=X({loading:!1,finshed:!1,pagination:{page:1,rows:20},tableList:[],searchGroup:{instrumentId:o.instrumentId?o.instrumentId:"",chapterLessonCoursewareTagId:"",keyword:null}}),r=async()=>{try{i.pagination.page===1&&(i.loading=!0);const{data:s}=await hu({coursewareDetailKnowledgeId:o.coursewareDetailKnowledgeId,...i.searchGroup,...i.pagination}),c=s.rows||[],p=[];c.forEach(A=>{var m;const F=(m=A.chapterKnowledgeList[0])==null?void 0:m.chapterKnowledgeMaterialList[0];p.push({id:A.id,openFlag:A.openFlag,openFlagEnable:A.openFlagEnable,instrumentNames:A.instrumentNames,fromChapterLessonCoursewareId:A.fromChapterLessonCoursewareId,name:A.name,coverImg:F==null?void 0:F.bizInfo.coverImg,chapterLessonCoursewareTagName:A.chapterLessonCoursewareTagName,chapterLessonCoursewareTagColor:A.chapterLessonCoursewareTagColor,authorName:A.authorName,updateTime:A.updateTime?Ut(A.updateTime).format("YYYY-MM-DD"):"",type:F==null?void 0:F.bizInfo.type,isAdd:A.addFlag,isNotWork:A.lessonPreTrainingNum<=0,coursewareType:A.coursewareType})}),i.loading=!1,i.tableList.push(...p),i.finshed=s.pages<=s.current}catch(s){i.loading=!1}},u=yt(()=>{i.pagination.page=1,i.tableList=[],r()},500);return(async()=>{const{data:s}=await Fu(),c=s||[];t.value=[{name:"全部",id:""},...c]})(),oe(()=>{r(),L.on("openCoursewareChanged",u)}),Xe(()=>{L.off("openCoursewareChanged",u)}),()=>e("div",{class:Se.relatedClass},[e("div",{class:Se.attendClassSearch},[e(bu,{placeholder:"全部",class:Se.searchSelect2,options:t.value,labelField:"name",valueField:"id",clearable:!0,value:i.searchGroup.chapterLessonCoursewareTagId,"onUpdate:value":[s=>i.searchGroup.chapterLessonCoursewareTagId=s,()=>{u()}],style:{width:"200px"}},null),e(Ht,{placeholder:"全部乐器",clearable:!0,options:[{name:"全部乐器",id:""},...o.instrumentList],value:i.searchGroup.instrumentId,"onUpdate:value":[s=>i.searchGroup.instrumentId=s,()=>u()],checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",filterable:!0,style:{width:"200px"}},null),e(nt,{placeholder:"请输入课件/作者名称",clearable:!0,value:i.searchGroup.keyword,"onUpdate:value":s=>i.searchGroup.keyword=s,onKeyup:s=>{s.code==="Enter"&&u()},onClear:()=>u()},{prefix:()=>e("span",{class:"icon-search-input",style:{cursor:"pointer"},onClick:()=>u()},null)})]),e(we,{show:i.loading,size:"small"},{default:()=>[e(ye,{class:Se.classList,style:{"max-height":"60vh"},onScroll:s=>{var F,m,d;const c=(F=s.target)==null?void 0:F.clientHeight,p=(m=s.target)==null?void 0:m.scrollTop,A=(d=s.target)==null?void 0:d.scrollHeight;c+p+20>=A&&!i.finshed&&!i.loading&&u()}},{default:()=>[e("div",{style:{"min-height":"60vh)"},class:[Se.listSection,!i.loading&&i.tableList.length<=0?Se.emptySection:""]},[i.tableList.length>0&&e("div",{class:[Se.list]},[i.tableList.map(s=>e("div",{class:[Se.itemWrap,Se.itemBlock,"row-nav"]},[e("div",{class:Se.itemWrapBox},[e(_u,{isHoverShowAdd:!1,isShowOpenFlag:!1,isShowAdd:!0,item:s,background:"#fff",onAdd:()=>{l("add",s)},onLook:()=>l("click",s)},null)])]))]),!i.loading&&i.tableList.length<=0&&e(ve,null,null)])]})]})])}}),mc="_related_19lj3_1",gc="_iconScreen_19lj3_40",fc="_homerowkTabs_19lj3_51",ft={related:mc,iconScreen:gc,homerowkTabs:fc},Cc="_searchGroup_16w2m_1",hc="_searchSelect2_16w2m_5",Fc="_searchSelect_16w2m_5",Ec="_inputSearch_16w2m_23",Ac="_searchBtn_16w2m_27",wc="_btnType_16w2m_33",Mt={searchGroup:Cc,searchSelect2:hc,searchSelect:Fc,inputSearch:Ec,searchBtn:Ac,btnType:wc},vc=K({name:"resource-search-group",emits:["search"],setup(o,{emit:l}){Ue();const t=X({keyword:"",chapterLessonCoursewareTagId:""}),i=W([]),r=()=>{l("search",t)},u=yt(()=>r(),500);return(async()=>{const{data:s}=await Fu(),c=s||[];i.value=[{name:"全部",id:""},...c]})(),()=>e(ze,null,[e("div",{class:Mt.searchGroup},[e(bu,{placeholder:"请选择课件标签",class:Mt.searchSelect2,options:i.value,labelField:"name",valueField:"id",value:t.chapterLessonCoursewareTagId,"onUpdate:value":[s=>t.chapterLessonCoursewareTagId=s,()=>{u()}]},null),e(nt,{type:"text",placeholder:"请输入课件/作者名称",clearable:!1,value:t.keyword,"onUpdate:value":s=>t.keyword=s,class:Mt.inputSearch,onKeyup:s=>{s.code==="Enter"&&u()},onClear:()=>{t.keyword="",u()}},{prefix:()=>e("span",{class:"icon-search-input",onClick:()=>u()},null)})])])}}),Bc="_listContainer_1t6b4_1",yc="_listNoMusic_1t6b4_5",bc="_listSection_1t6b4_8",_c="_emptySection_1t6b4_14",Sc="_list_1t6b4_1",Ic="_trainEditModal_1t6b4_28",Dc="_itemModal_1t6b4_31",kc="_itemCover_1t6b4_36",Lc="_statusCon_1t6b4_45",xc="_status_1t6b4_45",Tc="_iconLook_1t6b4_84",Pc="_iconAdd_1t6b4_85",jc="_itemContent_1t6b4_111",Rc="_itemTitle_1t6b4_116",Mc="_itemSubject_1t6b4_126",Nc="_updateTime_1t6b4_136",Vc="_other_1t6b4_141",Wc="_addCourseBtn_1t6b4_150",me={listContainer:Bc,listNoMusic:yc,listSection:bc,emptySection:_c,list:Sc,trainEditModal:Ic,itemModal:Dc,itemCover:kc,statusCon:Lc,status:xc,function:"_function_1t6b4_70",iconLook:Tc,iconAdd:Pc,itemContent:jc,itemTitle:Rc,itemSubject:Mc,updateTime:Nc,other:Vc,addCourseBtn:Wc},Oc=K({name:"item-modal",props:{item:{type:Object,default:()=>({})}},emits:["look","add"],setup(o,{emit:l}){return()=>e("div",{class:me.itemModal},[e("div",{class:me.itemCover},[e("div",{class:me.statusCon},[o.item.chapterLessonCoursewareTagName?e("div",{class:me.status,style:{background:o.item.chapterLessonCoursewareTagColor}},[o.item.chapterLessonCoursewareTagName]):""]),e(Ce,{src:o.item.coverImg,objectFit:"cover",previewDisabled:!0},null),e("div",{class:me.function},[e(Ae,{showArrow:!1},{trigger:()=>e("i",{class:me.iconLook,onClick:()=>l("look")},null),default:()=>"预览课件"})])]),e("div",{class:me.itemContent},[e("p",{class:me.itemTitle,onClick:()=>l("look")},[e(ua,{text:o.item.name},null)]),e("div",{class:me.updateTime},[E("更新于 "),o.item.updateTime]),e("div",{class:me.other},[e("span",null,[E("作者: "),o.item.authorName]),e("div",{class:me.addCourseBtn,onClick:()=>l("add")},[E("添加")])])])])}}),Uc=K({name:"share-resources",emits:["look","add"],setup(o,{emit:l}){const t=Pe(),i=X({loading:!1,finshed:!1,pagination:{page:1,rows:10},searchGroup:{keyword:""},tableList:[],editStatus:!1,editItem:{},show:!1,item:{}}),r=async()=>{try{if(!t.getSelectKey)return;i.pagination.page===1&&(i.loading=!0);const{data:c}=await hu({instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey,...i.searchGroup,...i.pagination});i.pagination.page===1&&i.tableList.length>0&&(i.tableList=[]);const p=c.rows||[],A=[];p.forEach(F=>{var d;const m=(d=F.chapterKnowledgeList[0])==null?void 0:d.chapterKnowledgeMaterialList[0];A.push({id:F.id,openFlag:F.openFlag,openFlagEnable:F.openFlagEnable,instrumentNames:F.instrumentNames,fromChapterLessonCoursewareId:F.fromChapterLessonCoursewareId,name:F.name,chapterLessonCoursewareTagName:F.chapterLessonCoursewareTagName,chapterLessonCoursewareTagColor:F.chapterLessonCoursewareTagColor,authorName:F.authorName,updateTime:F.updateTime?Ut(F.updateTime).format("YYYY-MM-DD"):"",coverImg:m==null?void 0:m.bizInfo.coverImg,type:m==null?void 0:m.bizInfo.type,isAdd:F.addFlag,coursewareType:F.coursewareType})}),i.loading=!1,i.tableList.push(...A),i.finshed=c.pages<=c.current}catch(c){i.loading=!1}},u=async c=>{i.pagination.page=1,i.tableList=[],i.searchGroup=Object.assign(i.searchGroup,c),r()},n=yt(()=>{i.pagination.page=i.pagination.page+1,r()},500),s=()=>{u(i.searchGroup)};return oe(()=>{r(),L.on("openCoursewareChanged",s)}),Xe(()=>{L.off("openCoursewareChanged",s)}),()=>e("div",null,[e(vc,{onSearch:c=>u(c)},null),e(ye,{class:[me.listContainer,me.listNoMusic],onScroll:c=>{var m,d,w;const p=(m=c.target)==null?void 0:m.clientHeight,A=(d=c.target)==null?void 0:d.scrollTop,F=(w=c.target)==null?void 0:w.scrollHeight;p+A+20>=F&&!i.finshed&&!i.loading&&n()}},{default:()=>[e(we,{show:i.loading,size:"small"},{default:()=>[e("div",{class:[me.listSection,!i.loading&&i.tableList.length<=0?me.emptySection:""]},[i.tableList.length>0&&e("div",{class:me.list},[i.tableList.map(c=>e(Oc,{item:c,onAdd:()=>l("add",c),onLook:()=>l("look",c)},null))]),!i.loading&&i.tableList.length<=0&&e(ve,null,null)])]})]})])}}),zc=K({name:"related-modal",emits:["more","add","look"],setup(o,{emit:l}){return()=>e("div",{class:ft.related},[e($e,{animated:!0,paneClass:ft.paneTitle,paneWrapperClass:ft.paneWrapperContainer,justifyContent:"center"},{suffix:()=>e("div",{class:ft.iconScreen,onClick:()=>{l("more")}},[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e("g",{fill:"none"},[e("path",{d:"M5 6a1 1 0 0 1 1-1h2a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v2a1 1 0 0 0 2 0V6zm0 12a1 1 0 0 0 1 1h2a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3v-2a1 1 0 1 1 2 0v2zM18 5a1 1 0 0 1 1 1v2a1 1 0 1 0 2 0V6a3 3 0 0 0-3-3h-2a1 1 0 1 0 0 2h2zm1 13a1 1 0 0 1-1 1h-2a1 1 0 1 0 0 2h2a3 3 0 0 0 3-3v-2a1 1 0 1 0-2 0v2z",fill:"#198CFE"},null)])])]),default:()=>e(et,{name:"myMusic",tab:"相关课件"},{default:()=>[e(Uc,{onAdd:t=>l("add",t),onLook:t=>l("look",t)},null)]})})])}}),Gc=K({name:"courseware-presets",props:{addParam:{type:Object,default:()=>({})}},emits:["change"],setup(o,{emit:l}){const t=Pe(),i=At(),r=vu(),u=Bt(),n=localStorage.getItem("prepareLessonSubjectId"),s=X({leftWidth:"100%",rightWidth:"0",messageLoading:!1,instrumentId:r.query.instrumentId?Number(r.query.instrumentId):n?Number(n):"",courseScheduleSubjectId:r.query.courseScheduleSubjectId,classGroupId:r.query.classGroupId,preStudentNum:r.query.preStudentNum,bodyWidth:"100%",loading:!1,openLoading:!1,showRelatedClass:!1,tableList:[],openTableShow:!0,openTableList:[],selectItem:{},editTitleVisiable:!1,editTitle:null,editBtnLoading:!1,preRemoveVisiable:!1,addVisiable:!1,carouselIndex:0,showAttendClass:!1,attendClassType:"change",attendClassItem:{},attendClassId:null,previewModal:!1,previewModalType:"attend",previewParams:{type:"",courseId:"",instrumentId:"",detailId:""},workVisiable:!1,wikiCategoryIdChild:null,instrumentErrorVisiable:!1,instrumentErrorContent:""}),c=async()=>{s.loading=!0;try{if(!t.getSelectKey)return s.loading=!1;const{data:a}=await ts({instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey});if(!Array.isArray(a))return;const g=[];a.forEach(C=>{var B,P,D,le;const v=(B=C.chapterKnowledgeList[0])==null?void 0:B.chapterKnowledgeMaterialList;g.push({id:C.id,lessonPreTrainingId:C.lessonPreTrainingId,openFlag:C.openFlag,openFlagEnable:C.openFlagEnable,instrumentNames:C.instrumentNames,fromChapterLessonCoursewareId:C.fromChapterLessonCoursewareId,name:C.name,coverImg:v&&((P=v[0])==null?void 0:P.bizInfo.coverImg),type:v&&((D=v[0])==null?void 0:D.bizInfo.type),isNotWork:C.lessonPreTrainingNum<=0,chapterLessonCoursewareTagName:C.chapterLessonCoursewareTagName,chapterLessonCoursewareTagColor:C.chapterLessonCoursewareTagColor,authorName:C.authorName,updateTime:C.updateTime?Ut(C.updateTime).format("YYYY-MM-DD"):"",coursewareType:C.coursewareType,instrumentIds:C.instrumentIds,pptId:v&&((le=v[0])==null?void 0:le.id),teacherSaveFlag:C.teacherSaveFlag})}),s.tableList=g}catch(a){}s.loading=!1};let p=null;We(()=>[t.getSelectKey,t.getInstrumentId],async()=>{clearTimeout(p),p=setTimeout(async()=>{var a;t.getInstrumentId?F():A(),L.emit("openCoursewareChanged"),await c(),(a=m.value)==null||a.syncBarPosition()},100)}),We(()=>t.getInstrumentList,()=>{A()});const A=()=>{var g;const a=t.getSingleInstrumentList;if(a.length>0){const C=localStorage.getItem("prepareLessonSubjectId");let v=null,B=-1;s.courseScheduleSubjectId&&(B=a.findIndex(P=>P.id==s.courseScheduleSubjectId),B>=0&&(v=Number(s.courseScheduleSubjectId))),s.instrumentId&&!v&&(B=a.findIndex(P=>P.id==s.instrumentId),B>=0&&(v=Number(s.instrumentId))),C&&!v&&(B=a.findIndex(P=>P.id==C),B>=0&&(v=Number(C))),v&&B>=0&&t.setSubjectId(v),localStorage.setItem("prepareLessonSubjectId",t.getInstrumentId),(g=m.value)==null||g.syncBarPosition()}else s.instrumentId&&t.setInstrumentId(s.instrumentId+"")},F=()=>{let a="";t.getInstrumentList.forEach(g=>{Array.isArray(g.instruments)&&g.instruments.forEach(C=>{C.id===t.getInstrumentId&&(a=C.id)})}),a&&(s.wikiCategoryIdChild=a)},m=W();oe(async()=>{Vt(document.querySelector("#presetsLeftRef"),a=>{const g=a[0],{width:C}=g.contentRect;s.leftWidth=C+"px"}),Vt(document.querySelector("#presetsRightRef"),a=>{const g=a[0],{width:C}=g.contentRect;s.rightWidth=C+"px"}),t.setClassGroupId(r.query.classGroupId),t.getInstrumentId?F():A(),await c(),o.addParam.isAdd&&(s.addVisiable=!0)});const d=async()=>{s.messageLoading=!0;try{await us({id:s.selectItem.id}),i.success("删除成功"),c(),L.emit("openCoursewareChanged"),s.preRemoveVisiable=!1}catch(a){}setTimeout(()=>{s.messageLoading=!1},100)},w=async a=>{if(!s.messageLoading){s.messageLoading=!0;try{await ss({id:a.id}),i.success("添加成功"),c(),L.emit("openCoursewareChanged")}catch(g){}setTimeout(()=>{s.messageLoading=!1},100)}},f=a=>{if(window.matchMedia("(display-mode: standalone)").matches)Tt.application=window.matchMedia("(display-mode: standalone)").matches,s.previewModal=!0,ou(),s.previewModalType="attend",s.previewParams={type:"preview",courseId:a,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,lessonCourseId:t.getBaseCourseware.id};else{const{href:g}=u.resolve({path:"/attend-class",query:{type:"preview",courseId:a,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,lessonCourseId:t.getBaseCourseware.id}});window.open(g,+new Date+"")}},_=async(a,g,C)=>{if(g){const v=await as({lessonCoursewareKnowledgeDetailId:t.selectKey,classGroupId:g,useChapterLessonCoursewareId:a.id});if(window.matchMedia("(display-mode: standalone)").matches)Tt.application=window.matchMedia("(display-mode: standalone)").matches,s.previewModal=!0,s.previewModalType="attend",ou(),s.previewParams={type:"class",classGroupId:g,courseId:a.id,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,classId:v.data,lessonCourseId:t.getBaseCourseware.id,preStudentNum:s.preStudentNum};else{const{href:B}=u.resolve({path:"/attend-class",query:{type:"class",classGroupId:g,courseId:a.id,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,classId:v.data,lessonCourseId:t.getBaseCourseware.id,preStudentNum:s.preStudentNum}});window.open(B,+new Date+"")}s.showAttendClass=!1,s.instrumentErrorVisiable=!1}else s.showAttendClass=!0,s.attendClassType="change",s.attendClassItem=a},b=async(a,g,C)=>{try{if(g){const{data:v}=await os({classGroupId:g,chapterLessonCoursewareId:a.id});s.attendClassItem=a,s.attendClassId=g,v.chapterLessonCoursewareFlag?v.materialFlag?_(a,g,C):(s.instrumentErrorVisiable=!0,s.instrumentErrorContent="课件中含有不符合班级乐器的资源,是否继续使用该课件上课?"):(s.instrumentErrorVisiable=!0,s.instrumentErrorContent="课件支持的乐器与班级不符,是否继续使用该课件上课?")}else _(a,g,C)}catch(v){}},I=a=>{const g={};return a==null||a.forEach(C=>{C.id===s.wikiCategoryIdChild&&(g.selected=!0,g.name=C.name,g.label=C.name)}),g},x=H(()=>{let a=t.getInstrumentId?t.getInstrumentId:"";return t.getFormatInstrumentList.forEach(g=>{Array.isArray(g.instruments)&&g.instruments.forEach(C=>{C.id===t.getInstrumentId&&(a=g.id+"")})}),a}),Y=wt(),k=X({pptCoursewareShow:!1,id:"",name:"",subjects:[],openFlagEnable:!0,openFlag:!1}),j=W(),he=W([]),se=a=>{a=a||[];const g=[];t.getInstrumentList.forEach(P=>{Array.isArray(P.instruments)&&P.instruments.forEach(D=>{g.push(D.id)})});const C=[...new Set([...g,...a])],v=[];Ue().getSubjectList.forEach(P=>{const D=Ft(P);D.enableFlag=!1,Array.isArray(D.instruments)&&D.instruments.forEach(le=>{le.enableFlag=!1,C.includes(le.id)&&(le.enableFlag=!0,D.enableFlag=!0)}),v.push(D)});const B=[];v.forEach(P=>{if(P.enableFlag){const{instruments:D,...le}=P;if(D&&D.length>0){const de=[];D==null||D.forEach(Ie=>{Ie.enableFlag&&de.push(Ie)}),de.length>0&&B.push({...le,instruments:de})}}}),he.value=B},xe=a=>{const g=[];a.map(C=>{Array.isArray(C.instruments)&&C.instruments.forEach(v=>{g.push(v.value)})}),k.subjects=g};function Ge(){var a;(a=j.value)==null||a.validate(async g=>{if(g)return;const{id:C,name:v,subjects:B,openFlag:P,openFlagEnable:D}=k;if(C){const le={id:C,name:v,instrumentIds:B.join(","),openFlag:P,autoPlay:!1,openFlagEnable:D};ns(le).then(de=>{de.code===200&&(k.pptCoursewareShow=!1,c(),L.emit("openCoursewareChanged"))})}else{const le={name:v,instrumentIds:B.join(","),openFlag:P,autoPlay:!1,coursewareDetailKnowledgeId:t.getSelectKey,coursewareType:"PPT"};Cu(le).then(de=>{var Ie,ge;if(de.code===200){k.pptCoursewareShow=!1,c(),L.emit("openCoursewareChanged");const{teacherSaveFlag:Ke,id:be,chapterKnowledgeList:je}=de.data,fe=t.getInstrumentId;ce({teacherSaveFlag:Ke,id:be,pptId:(ge=(Ie=je[0])==null?void 0:Ie.chapterKnowledgeMaterialList[0])==null?void 0:ge.id},k.subjects.includes(fe)?fe:k.subjects[0])}})}})}function Te(a){se(),k.id=a.id,k.name=a.name,k.subjects=a.instrumentIds?a.instrumentIds.split(","):[],k.openFlag=a.openFlag,k.openFlagEnable=a.openFlagEnable,k.pptCoursewareShow=!0}async function ce(a,g){const C=a.teacherSaveFlag;if(!C){const B=await rs(a.id);a.teacherSaveFlag=!0,a.pptId=B.data.chapterKnowledgeList[0].chapterKnowledgeMaterialList[0].id}const v="".concat(sa(),"/#/pptEditor?id=").concat(a.pptId,"&Authorization=").concat(Y.getToken,"&instrumentId=").concat(g,"&lessonCoursewareKnowledgeId=").concat(t.getSelectKey,"&fromType=TEACHER&pptResourcesType=TEACHER");window.matchMedia("(display-mode: standalone)").matches?(s.previewModal=!0,s.previewModalType="music",s.previewParams={src:v}):window.open(v),!C&&c()}return oe(async()=>{await Ue().getSubjects()}),()=>e("div",{class:[V.coursewarePresetsContainer,s.openTableShow&&V.rightLineShow]},[e("div",{class:V.presetsLeft,id:"presetsLeftRef",style:{width:"calc(".concat(s.leftWidth," - ").concat(s.rightWidth,")")}},[e($e,{ref:m,defaultValue:"",paneClass:V.paneTitle,justifyContent:"start",paneWrapperClass:V.paneWrapperContainer,value:x.value,"onUpdate:value":a=>{t.getFormatInstrumentList.forEach(g=>{g.value.toString()===a.toString()&&(t.setInstrumentId(a),s.instrumentId=a,s.wikiCategoryIdChild=null)})}},{default:()=>[[...t.getFormatInstrumentList].map((a,g)=>{var C;return e(et,{name:"".concat(a.value),tab:a.label,disabled:((C=a.instruments)==null?void 0:C.length)>0,displayDirective:"if"},{tab:()=>{var v;return((v=a.instruments)==null?void 0:v.length)>0?e(Ot,{options:a.instruments,trigger:"hover",value:s.wikiCategoryIdChild,"onUpdate:value":[B=>s.wikiCategoryIdChild=B,B=>{t.setInstrumentId(B),s.instrumentId=B}],key:a.id,class:V.popSelect},{default:()=>[e("span",{class:[V.textBtn,I(a.instruments).selected&&V.textBtnActive]},[I(a.instruments).label||a.label,e("i",{class:V.iconArrow},null)])]}):a.label}})})],suffix:()=>e(Ms,{placement:"bottom",trigger:"hover",showArrow:!1,to:!1,duration:50},{trigger:()=>e(G,{class:V.addBtn,type:"primary",bordered:!1},{default:()=>[e(Ce,{class:V.addBtnIcon,previewDisabled:!0,src:ea},null),E("创建课件")]}),default:()=>e("div",null,[e("div",{class:V.popoverItem,onClick:()=>{L.emit("teacher-slideshow",!0),t.setBeforeLoading(!1),l("change",{status:!0,type:"create"})}},[e("span",null,[e("img",{src:ec},null),E("空白课件")])]),e("div",{class:V.popoverItem,onClick:()=>{se(),Object.assign(k,{pptCoursewareShow:!0,id:"",name:"",subjects:[],openFlagEnable:!0,openFlag:!1})}},[e("span",null,[e("img",{src:tc},null),E("演示文稿(PPT)")])])])})}),e(we,{show:s.loading},{default:()=>[e(ye,{class:V.coursewarePresets},{default:()=>[e("div",{style:{overflow:"hidden"}},[e("div",{class:[V.list,!s.loading&&s.tableList.length<=0&&V.listEmpty]},[s.tableList.map(a=>e("div",{class:[V.itemWrap,V.itemBlock,"row-nav"]},[e("div",{class:V.itemWrapBox},[e(_u,{operate:!0,isEditName:!0,item:a,onClick:()=>f(a.id),onEdit:g=>{a.coursewareType==="PPT"?g==="PPT"?ce(a,t.getInstrumentId):Te(a):(L.emit("teacher-slideshow",!0),l("change",{status:!0,type:"update",groupItem:{id:a.id}}))},onStartClass:()=>b(a,s.classGroupId),onDelete:()=>{s.selectItem=a,s.preRemoveVisiable=!0},onWork:()=>{s.workVisiable=!0,s.selectItem=a}},null)])])),!s.loading&&s.tableList.length<=0&&e(ve,{class:V.empty1,description:"当前章节暂无课件,快点击右上角创建课件吧"},null)])])]})]})]),e("div",{class:V.presetsRight,id:"presetsRightRef"},[e(Ae,{showArrow:!1,show:!1,animated:!1,duration:0,delay:0},{trigger:()=>e("div",{class:[V.presetsArrar,!s.openTableShow&&V.presetsArrarActive],onClick:()=>s.openTableShow=!s.openTableShow},[e(Bu,null,{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e("path",{d:"M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z",fill:"currentColor"},null)])]})]),default:()=>e("div",null,[s.openTableShow?"收起":"展开"])}),e(zc,{onMore:()=>s.showRelatedClass=!0,onAdd:a=>{w(a)},onLook:a=>{f(a.id)}},null)]),e(te,{maskClosable:ue,show:s.showRelatedClass,"onUpdate:show":a=>s.showRelatedClass=a,preset:"card",showIcon:!1,class:["modalTitle background",V.attendClassModal1],title:"相关课件",blockScroll:!1},{default:()=>[e(pc,{tableList:s.tableList,instrumentList:t.getInstrumentList,instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey,onClose:()=>s.showRelatedClass=!1,onAdd:a=>w(a),onClick:a=>{f(a.id),s.showRelatedClass=!1}},null)]}),e(te,{maskClosable:ue,show:s.preRemoveVisiable,"onUpdate:show":a=>s.preRemoveVisiable=a,preset:"card",class:["modalTitle",V.removeVisiable1],title:"删除课件"},{default:()=>[e(Ct,{content:'

请确认是否删除【'.concat(s.selectItem.name,"】,删除后不可恢复

"),cancelButtonText:"取消",confirmButtonText:"确认",loading:s.messageLoading,onClose:()=>s.preRemoveVisiable=!1,onConfirm:()=>d()},null)]}),e(te,{maskClosable:ue,show:s.addVisiable,"onUpdate:show":a=>s.addVisiable=a,preset:"card",class:["modalTitle",V.removeVisiable1],title:"保存成功"},{default:()=>[e(Ct,{content:'

【'.concat(o.addParam.name,"】暂未设置课件作业,是否现在去设置课件作业

"),cancelButtonText:"稍后设置",confirmButtonText:"立即设置",onClose:()=>s.addVisiable=!1,onConfirm:()=>{s.addVisiable=!1,s.workVisiable=!0,s.selectItem={id:o.addParam.id,name:o.addParam.name}}},null)]}),e(te,{maskClosable:ue,show:s.instrumentErrorVisiable,"onUpdate:show":a=>s.instrumentErrorVisiable=a,preset:"card",class:["modalTitle",V.removeVisiable1],title:"温馨提示"},{default:()=>[e(Ct,{content:s.instrumentErrorContent,contentDirection:"left",onClose:()=>{s.instrumentErrorVisiable=!1},onConfirm:()=>{_(s.attendClassItem,s.attendClassId)}},null)]}),e(Iu,{show:s.previewModal,"onUpdate:show":a=>s.previewModal=a,type:s.previewModalType,params:s.previewParams},null),e(te,{maskClosable:ue,show:s.showAttendClass,"onUpdate:show":a=>s.showAttendClass=a,preset:"card",showIcon:!1,class:["modalTitle background",V.attendClassModal],title:"选择班级",blockScroll:!1},{default:()=>[e(ta,{onClose:()=>s.showAttendClass=!1,type:s.attendClassType,onPreview:a=>{if(window.matchMedia("(display-mode: standalone)").matches)Tt.application=window.matchMedia("(display-mode: standalone)").matches,s.previewModal=!0,s.previewModalType="attend",s.previewParams={...a};else{const{href:g}=u.resolve({path:"/attend-class",query:{...a}});window.open(g,+new Date+"")}},onConfirm:async a=>{b(s.attendClassItem,a.classGroupId,a.instrumentId)}},null)]}),e(te,{maskClosable:ue,show:s.workVisiable,"onUpdate:show":a=>s.workVisiable=a,preset:"card",class:["modalTitle background",V.workVisiable],title:s.selectItem.lessonPreTrainingId?"编辑作业":"创建作业"},{default:()=>[e("div",{id:"model-homework-height",class:V.workContainer},[e("div",{class:V.workTrain},[e(Os,{cardType:"prepare",lessonPreTraining:{title:s.selectItem.name+"-课后作业",chapterId:s.selectItem.id,id:s.selectItem.lessonPreTrainingId},onChange:a=>{s.workVisiable=a.status,c()}},null)]),e("div",{class:V.resourceMain},[e(Su,{cardType:"prepare"},null)])])]}),e(te,{maskClosable:ue,show:k.pptCoursewareShow,"onUpdate:show":a=>k.pptCoursewareShow=a,preset:"card",class:["modalTitle",V.pptCoursewareModal],title:"课件设置"},{default:()=>[e(Wt,{ref:j,model:k,labelAlign:"right",labelPlacement:"left"},{default:()=>[e(Oe,{label:"课件名称",path:"name",rule:[{required:!0,message:"请输入课件名称",trigger:["blur","change"]}]},{default:()=>[e(nt,{placeholder:"请输入课件名称",value:k.name,"onUpdate:value":a=>k.name=a,maxlength:20,clearable:!0},null)]}),e(Oe,{label:"适用乐器",path:"subjects",rule:[{required:!0,message:"请选择适用乐器",trigger:["blur","change"],type:"array"}]},{default:()=>[e(Ht,{placeholder:"请选择乐器(可多选)",class:V.btnSubjectList,options:he.value,checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",clearable:!0,filterable:!0,multiple:!0,maxTagCount:1,value:k.subjects,"onUpdate:value":a=>k.subjects=a},{action:()=>e(G,{text:!0,style:" --n-width: 100% ",size:"small",onClick:()=>xe(he.value)},{default:()=>[E("全选")]})})]}),e("div",{class:V.btnItem},[e("span",{class:V.btnTitle},[E("公开课件"),e(Ae,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:V.iconQuestion},null),default:()=>"公开课件后,其它老师可以使用该课件上课"})]),k.openFlagEnable?e(ot,{size:"large",value:k.openFlag,"onUpdate:value":a=>k.openFlag=a,disabled:!k.openFlagEnable},null):e(Ae,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e(ot,{size:"large",value:k.openFlag,"onUpdate:value":a=>k.openFlag=a,disabled:!k.openFlagEnable},null),default:()=>"为尊重课件原作者,在“相关课件”中添加的课件不支持公开"})]),e($,{class:V.updateBtnGroup},{default:()=>[e(G,{strong:!0,type:"default",round:!0,onClick:()=>{k.pptCoursewareShow=!1}},{default:()=>[E("取消")]}),e(G,{strong:!0,type:"primary",round:!0,onClick:Ge},{default:()=>[E("确认")]})]})]})]})])}}),Kc="_headerTitle_1prp1_1",Hc="_iconBook_1prp1_12",qc="_formContainer_1prp1_29",Qc="_btnSubjectList_1prp1_32",Yc="_btnItem_1prp1_55",Jc="_block_1prp1_61",Xc="_btnTitle_1prp1_65",Zc="_iconQuestion_1prp1_78",pe={headerTitle:Kc,iconBook:Hc,formContainer:qc,btnSubjectList:Qc,btnItem:Yc,block:Jc,btnTitle:Xc,iconQuestion:Zc},$c=K({name:"courseware-head",setup(o,{emit:l,expose:t}){const i=Pe(),r=W(["",""]),u=W([]),n=X({subjects:[],openFlagEnable:!0,autoPlay:!1,name:"",openFlag:!1}),s=m=>{var w;const d=[];m.map(f=>{Array.isArray(f.instruments)&&f.instruments.forEach(_=>{d.push(_.value)})}),n.subjects=d,L.emit("coursewareSubjectChange",n.subjects),r.value[1]=((w=n.subjects)==null?void 0:w.length)>0?"":"error"},c=()=>n,p=m=>{n.subjects=m.subjects,n.openFlagEnable=m.openFlagEnable,n.autoPlay=m.autoPlay,n.name=m.name,n.openFlag=m.openFlag,F(m.subjects||[])},A=(m="ALL")=>{var d,w;m==="name"?r.value[0]=n.name?"":"error":m==="subject"?r.value[1]=((d=n.subjects)==null?void 0:d.length)>0?"":"error":(r.value[0]=n.name?"":"error",r.value[1]=((w=n.subjects)==null?void 0:w.length)>0?"":"error")},F=m=>{m=m||[];const d=[];i.getInstrumentList.forEach(b=>{Array.isArray(b.instruments)&&b.instruments.forEach(I=>{d.push(I.id)})});const w=[...new Set([...d,...m])],f=[];Ue().getSubjectList.forEach(b=>{const I=Ft(b);I.enableFlag=!1,Array.isArray(I.instruments)&&I.instruments.forEach(x=>{x.enableFlag=!1,w.includes(x.id)&&(x.enableFlag=!0,I.enableFlag=!0)}),f.push(I)});const _=[];f.forEach(b=>{if(b.enableFlag){const{instruments:I,...x}=b;if(I&&I.length>0){const Y=[];I==null||I.forEach(k=>{k.enableFlag&&Y.push(k)}),Y.length>0&&_.push({...x,instruments:Y})}}}),u.value=_};return oe(async()=>{await Ue().getSubjects(),F(),L.on("updateCoursewareHeadInfo",p),L.on("checkCoursewareForm",A)}),t({getForms:c}),()=>e(ze,null,[e("div",{class:pe.headerTitle},[e("i",{class:pe.iconBook},null),e("span",null,[i.getSelectName])]),e("div",{class:pe.formContainer},[e("div",{class:[pe.btnItem,pe.block]},[e("span",{class:[pe.btnTitle]},[e("span",null,[E("*")]),E("课件名称")]),e(nt,{placeholder:"请输入课件名称",value:n.name,"onUpdate:value":[m=>n.name=m,()=>{r.value[0]=n.name?"":"error",L.emit("coursewareHeadSyncData",c())}],maxlength:20,clearable:!0,status:r.value[0]},null)]),e("div",{class:[pe.btnItem,pe.block]},[e("span",{class:[pe.btnTitle]},[e("span",null,[E("*")]),E("适用乐器")]),e(Ht,{status:r.value[1],placeholder:"请选择乐器(可多选)",class:pe.btnSubjectList,options:u.value,checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",clearable:!0,filterable:!0,multiple:!0,maxTagCount:1,value:n.subjects,"onUpdate:value":[m=>n.subjects=m,()=>{var m;r.value[1]=((m=n.subjects)==null?void 0:m.length)>0?"":"error",L.emit("coursewareSubjectChange",n.subjects)}]},{action:()=>e(ze,null,[e(G,{text:!0,style:" --n-width: 100% ",size:"small",onClick:()=>s(u.value)},{default:()=>[E("全选")]})])})]),e("div",{class:pe.btnItem},[e("span",{class:pe.btnTitle},[E("自动播放"),e(Ae,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:pe.iconQuestion},null),default:()=>"开启自动播放后,课件内视频、音频资源将自动播放"})]),e(ot,{value:n.autoPlay,"onUpdate:value":[m=>n.autoPlay=m,()=>{L.emit("coursewareHeadSyncData",c())}]},null)]),e("div",{class:pe.btnItem},[e("span",{class:pe.btnTitle},[E("公开课件"),e(Ae,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:pe.iconQuestion},null),default:()=>"公开课件后,其它老师可以使用该课件上课"})]),n.openFlagEnable?e(ot,{value:n.openFlag,"onUpdate:value":[m=>n.openFlag=m,()=>{L.emit("coursewareHeadSyncData",c())}],disabled:!n.openFlagEnable},null):e(Ae,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e(ot,{value:n.openFlag,"onUpdate:value":[m=>n.openFlag=m,()=>{L.emit("coursewareHeadSyncData",c())}],disabled:!n.openFlagEnable},null),default:()=>"为尊重课件原作者,在“相关课件”中添加的课件不支持公开"})])])])}}),ed=K({name:"lesson-main",setup(){const o=Pe(),l=X({editCoursewareShow:!1,coursewareType:"create",addParam:{isAdd:!1,id:null,addName:""},editCourseware:{},editWork:{}}),t=W(),i=()=>{var u;L.emit("coursewareClosed",(u=t.value)==null?void 0:u.getForms())},r=()=>{var u;L.emit("coursewareSave",(u=t.value)==null?void 0:u.getForms())};return()=>e("div",{class:[l.editCoursewareShow&>.coursewareSection],style:{height:"100%"}},[l.editCoursewareShow&&e("div",{class:gt.coursewareHeader},[e($c,{ref:t},null)]),e("div",{class:gt["lesson-main"]},[l.editCoursewareShow?e(ni,{groupItem:l.editCourseware,onChange:u=>{u.addParam&&(l.addParam=u.addParam),l.editCoursewareShow=u.status,o.setIsEditResource(u.status),u.status||L.emit("teacher-slideshow",!1)}},null):e(Gc,{addParam:l.addParam,onChange:u=>{l.coursewareType=u.type,l.editCoursewareShow=u.status,o.setIsEditResource(u.status),l.editCourseware=u.groupItem,l.addParam={isAdd:!1,id:null,addName:""}}},null)]),l.editCoursewareShow&&e("div",{class:gt.coursewareFooter},[e($,null,{default:()=>[e(G,{bordered:!1,type:"error",onClick:i},{default:()=>[E("取消")]}),e(G,{type:"primary",onClick:r},{default:()=>[E("保存课件")]})]})])])}}),zd=K({name:"prepare-lessons",setup(){const o=X({sidebarShow:!1}),l=Pe(),t=W(),i=W(),r=u=>{var n;console.log(u,"val"),o.sidebarShow=u,(n=t.value)==null||n.resetTabPosition()};return oe(()=>{L.on("teacher-slideshow",r)}),Xe(()=>{L.off("teacher-slideshow",r)}),oe(()=>{Vt(document.querySelector("#lessons-height"),u=>{const n=u[0],{height:s}=n.contentRect;document.documentElement.style.setProperty("--window-page-lesson-height",s+"px")})}),Ns(()=>{l.setTabType("courseware"),l.setSelectMusicStatus(!1),l.setSelectResourceStatus(!1),l.setIsAddResource(!1),l.setIsAddTrain(!1),l.setIsEditResource(!1),l.setIsEditTrain(!1)}),Xe(()=>{l.setSubjectId("")}),()=>e("div",{class:[Je.prepareLessons,o.sidebarShow?Je.showSideBar:Je.hideSideBar],id:"lessons-height"},[e("div",{class:Je.directoryMain,ref:i.value},[e(Io,{sidebarShow:o.sidebarShow},null)]),e("div",{class:Je.lessonMain},[e(ed,null,null)]),e("div",{class:[Je.resourceMain]},[o.sidebarShow&&e(Su,{ref:t},null)])])}});export{zd as default};