1 |
- import{b as Ju,l as mu,a as Hu,c as Qu,t as $u,d as Xu,C as Yu,e as es,f as ts,g as us,h as fu,i as ss,j as as,k as os,m as ns}from"./api-b1ba779f-1720699367816.js";import{B as ls,A as rs}from"./index-2a0967e4-1720699367816.js";import{u as $e,d as kt}from"./catchData-309c65ac-1720699367816.js";import{a2 as is,a3 as cs,a4 as ds,a5 as ps,a6 as Cu,a7 as gs,a8 as ms,a9 as fs,aa as Cs,d as N,ab as dt,r as R,ac as Fs,ad as Y,ae as hs,U as K,q as X,p as Fu,af as Es,ag as j,ah as he,ai as P,aj as Xt,ak as As,al as ws,am as vs,an as Bs,A as Ve,ao as hu,ap as ys,aq as bs,ar as Yt,as as eu,a0 as Rt,at as _s,_ as Ss,au as Is,av as Ds,aw as He,S as je,ax as Qe,o as ks,b as pt,e as J,f as e,h as Xe,I as tu,E as me,x as ae,w as ce,F as fe,l as ue,m as se,k as F,j as G,$ as ie,C as L,T as Se,a1 as Eu,a as Au,c as Pt,X as wu,ay as uu,az as vu,aA as Ls,aB as xs,n as Lt,D as Ie,G as Ts,u as Ue,t as Ke,v as ze,P as gt,aC as Bu,N as Vs,y as js,g as Rs,V as _e,z as bt,aD as su,aE as _t,aF as Ps}from"./index-b48b51d2-1720699367816.js";import{a as mt}from"./index-966150e9-1720699367816.js";import{N as Mt}from"./Cascader-61534244-1720699367816.js";import{N as Ee}from"./Scrollbar-74a02354-1720699367816.js";import{T as Ce}from"./index-a2dc20f3-1720699367816.js";import{u as be,i as Ms}from"./index-b7aab7f2-1720699367816.js";import{T as xt}from"./index-96385afb-1720699367816.js";import{g as Tt,s as le}from"./index-db345329-1720699367816.js";import{g as yu,s as ct}from"./api-53c4c1b8-1720699367816.js";import{D as Ns,C as bu,b as Ws,R as _u}from"./index-94da3ff2-1720699367816.js";import{C as ft,s as M}from"./index-43a4a5ce-1720699367816.js";import{P as Su}from"./index-ce1c3177-1720699367816.js";import{T as Vt}from"./index-5714a0c3-1720699367816.js";import{T as Nt}from"./index-876d8b60-1720699367816.js";import{b as Iu}from"./browser-504037ee-1720699367816.js";import{a as Wt,b as Ot,c as Os,d as Gs}from"./api-b5ee56f7-1720699367816.js";import{i as Us,a as Ks,b as zs}from"./icon-plus-t-35f4cdeb-1720699367816.js";import{N as qs}from"./Slider-e8b4d094-1720699367816.js";import{i as Zs}from"./icon_default-d1bcaf5f-1720699367816.js";import{i as Js}from"./icon-select-23609858-1720699367816.js";import{U as Hs,S as Qs,f as $s}from"./index-342bf8f9-1720699367816.js";import{a as Xs}from"./add-efe8238e-1720699367816.js";import{u as jt}from"./index-4d81797f-1720699367816.js";import{A as Ys}from"./index-cc3629bf-1720699367816.js";import"./icon-collect-active-4272e308-1720699367816.js";import"./index-1964c94a-1720699367816.js";import"./urlUtils-72ef455d-1720699367816.js";import"./ding-8e9054d5-1720699367816.js";import"./searchArray-24a79f64-1720699367816.js";import"./api-ae9134d7-1720699367816.js";import"./api-bd5aac04-1720699367816.js";import"./teacherIcon-b8e3946d-1720699367816.js";import"./index-b4f60be6-1720699367816.js";import"./api-8195f6bd-1720699367816.js";import"./icon-pan-16e35a82-1720699367816.js";import"./updateSubject-d3e90510-1720699367816.js";import"./index.module-18dca782-1720699367816.js";function ea(s){return is(cs(s).toLowerCase())}var ta=ds(function(s,i,t){return i=i.toLowerCase(),s+(t?ea(i):i)});const au=ta,ua=s=>({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"}),sa={name:"Carousel",common:ps,self:ua},aa=sa;function oa(s){const{length:i}=s;return i>1&&(s.push(ou(s[0],0,"append")),s.unshift(ou(s[i-1],i-1,"prepend"))),s}function ou(s,i,t){return Cu(s,{key:"carousel-item-duplicate-".concat(i,"-").concat(t)})}function nu(s,i,t){return i===1?0:t?s===0?i-3:s===i-1?0:s-1:s}function St(s,i){return i?s+1:s}function na(s,i,t){return s<0?null:s===0?t?i-1:null:s-1}function la(s,i,t){return s>i-1?null:s===i-1?t?0:null:s+1}function ra(s,i){return i&&s>3?s-2:s}function lu(s){return window.TouchEvent&&s instanceof window.TouchEvent}function ru(s,i){let{offsetWidth:t,offsetHeight:p}=s;if(i){const n=getComputedStyle(s);t=t-parseFloat(n.getPropertyValue("padding-left"))-parseFloat(n.getPropertyValue("padding-right")),p=p-parseFloat(n.getPropertyValue("padding-top"))-parseFloat(n.getPropertyValue("padding-bottom"))}return{width:t,height:p}}function nt(s,i,t){return s<i?i:s>t?t:s}function ia(s){if(s===void 0)return 0;if(typeof s=="number")return s;const i=/^((\d+)?\.?\d+?)(ms|s)?$/,t=s.match(i);if(t){const[,p,,n="ms"]=t;return Number(p)*(n==="ms"?1:1e3)}return 0}const Du=Cs("n-carousel-methods"),ca=s=>{gs(Du,s)},Gt=(s="unknown",i="component")=>{const t=ms(Du);return t||fs(s,"`".concat(i,"` must be placed inside `n-carousel`.")),t},da={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},pa=N({name:"CarouselDots",props:da,setup(s){const{mergedClsPrefixRef:i}=dt(s),t=R([]),p=Gt();function n(r,g){switch(r.key){case"Enter":case" ":r.preventDefault(),p.to(g);return}s.keyboard&&o(r)}function u(r){s.trigger==="hover"&&p.to(r)}function a(r){s.trigger==="click"&&p.to(r)}function o(r){var g;if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey)return;const l=(g=document.activeElement)===null||g===void 0?void 0:g.nodeName.toLowerCase();if(l==="input"||l==="textarea")return;const{code:c}=r,_=c==="PageUp"||c==="ArrowUp",h=c==="PageDown"||c==="ArrowDown",b=c==="PageUp"||c==="ArrowRight",B=c==="PageDown"||c==="ArrowLeft",S=p.isVertical(),I=S?_:b,m=S?h:B;!I&&!m||(r.preventDefault(),I&&!p.isNextDisabled()?(p.next(),d(p.currentIndexRef.value)):m&&!p.isPrevDisabled()&&(p.prev(),d(p.currentIndexRef.value)))}function d(r){var g;(g=t.value[r])===null||g===void 0||g.focus()}return Fs(()=>t.value.length=0),{mergedClsPrefix:i,dotEls:t,handleKeydown:n,handleMouseenter:u,handleClick:a}},render(){const{mergedClsPrefix:s,dotEls:i}=this;return Y("div",{class:["".concat(s,"-carousel__dots"),"".concat(s,"-carousel__dots--").concat(this.dotType)],role:"tablist"},hs(this.total,t=>{const p=t===this.currentIndex;return Y("div",{"aria-selected":p,ref:n=>i.push(n),role:"button",tabindex:"0",class:["".concat(s,"-carousel__dot"),p&&"".concat(s,"-carousel__dot--active")],key:t,onClick:()=>{this.handleClick(t)},onMouseenter:()=>{this.handleMouseenter(t)},onKeydown:n=>{this.handleKeydown(n,t)}})}))}}),ga=Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},Y("g",{fill:"none"},Y("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"}))),ma=Y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},Y("g",{fill:"none"},Y("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"}))),fa=N({name:"CarouselArrow",setup(s){const{mergedClsPrefixRef:i}=dt(s),{isVertical:t,isPrevDisabled:p,isNextDisabled:n,prev:u,next:a}=Gt();return{mergedClsPrefix:i,isVertical:t,isPrevDisabled:p,isNextDisabled:n,prev:u,next:a}},render(){const{mergedClsPrefix:s}=this;return Y("div",{class:"".concat(s,"-carousel__arrow-group")},Y("div",{class:["".concat(s,"-carousel__arrow"),this.isPrevDisabled()&&"".concat(s,"-carousel__arrow--disabled")],role:"button",onClick:this.prev},ga),Y("div",{class:["".concat(s,"-carousel__arrow"),this.isNextDisabled()&&"".concat(s,"-carousel__arrow--disabled")],role:"button",onClick:this.next},ma))}}),it="CarouselItem",Ca=s=>{var i;return((i=s.type)===null||i===void 0?void 0:i.name)===it},Ct=N({name:it,setup(s){const{mergedClsPrefixRef:i}=dt(s),t=Gt(au(it),"n-".concat(au(it))),p=R(),n=K(()=>{const{value:g}=p;return g?t.getSlideIndex(g):-1}),u=K(()=>t.isPrev(n.value)),a=K(()=>t.isNext(n.value)),o=K(()=>t.isActive(n.value)),d=K(()=>t.getSlideStyle(n.value));X(()=>{t.addSlide(p.value)}),Fu(()=>{t.removeSlide(p.value)});function r(g){const{value:l}=n;l!==void 0&&(t==null||t.onCarouselItemClick(l,g))}return{mergedClsPrefix:i,selfElRef:p,isPrev:u,isNext:a,isActive:o,index:n,style:d,handleClick:r}},render(){var s;const{$slots:i,mergedClsPrefix:t,isPrev:p,isNext:n,isActive:u,index:a,style:o}=this,d=["".concat(t,"-carousel__slide"),{["".concat(t,"-carousel__slide--current")]:u,["".concat(t,"-carousel__slide--prev")]:p,["".concat(t,"-carousel__slide--next")]:n}];return Y("div",{ref:"selfElRef",class:d,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!u,style:o,onClickCapture:this.handleClick},(s=i.default)===null||s===void 0?void 0:s.call(i,{isPrev:p,isNext:n,isActive:u,index:a}))}}),Fa=Es("carousel","\n position: relative;\n width: 100%;\n height: 100%;\n touch-action: pan-y;\n overflow: hidden;\n",[j("slides","\n display: flex;\n width: 100%;\n height: 100%;\n transition-timing-function: var(--n-bezier);\n transition-property: transform;\n ",[j("slide","\n flex-shrink: 0;\n position: relative;\n width: 100%;\n height: 100%;\n outline: none;\n overflow: hidden;\n ",[he("> img","\n display: block;\n ")])]),j("dots","\n position: absolute;\n display: flex;\n flex-wrap: nowrap;\n ",[P("dot",[j("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 ",[he("&:focus","\n background-color: var(--n-dot-color-focus);\n "),P("active","\n background-color: var(--n-dot-color-active);\n ")])]),P("line",[j("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 ",[he("&:focus","\n background-color: var(--n-dot-color-focus);\n "),P("active","\n width: var(--n-dot-line-width-active);\n background-color: var(--n-dot-color-active);\n ")])])]),j("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 ",[he("svg","\n height: 1em;\n width: 1em;\n "),he("&:hover","\n background-color: rgba(255, 255, 255, .3);\n ")]),P("vertical","\n touch-action: pan-x;\n ",[j("slides","\n flex-direction: column;\n "),P("fade",[j("slide","\n top: 50%;\n left: unset;\n transform: translateY(-50%);\n ")]),P("card",[j("slide","\n top: 50%;\n left: unset;\n transform: translateY(-50%) translateZ(-400px);\n ",[P("current","\n transform: translateY(-50%) translateZ(0);\n "),P("prev","\n transform: translateY(-100%) translateZ(-200px);\n "),P("next","\n transform: translateY(0%) translateZ(-200px);\n ")])])]),P("usercontrol",[j("slides",[he(">",[he("div","\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 100%;\n transform: translate(-50%, -50%);\n ")])])]),P("left",[j("dots","\n transform: translateY(-50%);\n top: 50%;\n left: 12px;\n flex-direction: column;\n ",[P("line",[j("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 ",[P("active","\n height: var(--n-dot-line-width-active);\n ")])])]),j("dot","\n margin: 4px 0;\n ")]),j("arrow-group","\n position: absolute;\n display: flex;\n flex-wrap: nowrap;\n "),P("vertical",[j("arrow","\n transform: rotate(90deg);\n ")]),P("show-arrow",[P("bottom",[j("dots","\n transform: translateX(0);\n bottom: 18px;\n left: 18px;\n ")]),P("top",[j("dots","\n transform: translateX(0);\n top: 18px;\n left: 18px;\n ")]),P("left",[j("dots","\n transform: translateX(0);\n top: 18px;\n left: 18px;\n ")]),P("right",[j("dots","\n transform: translateX(0);\n top: 18px;\n right: 18px;\n ")])]),P("left",[j("arrow-group","\n bottom: 12px;\n left: 12px;\n flex-direction: column;\n ",[he("> *:first-child","\n margin-bottom: 12px;\n ")])]),P("right",[j("dots","\n transform: translateY(-50%);\n top: 50%;\n right: 12px;\n flex-direction: column;\n ",[P("line",[j("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 ",[P("active","\n height: var(--n-dot-line-width-active);\n ")])])]),j("dot","\n margin: 4px 0;\n "),j("arrow-group","\n bottom: 12px;\n right: 12px;\n flex-direction: column;\n ",[he("> *:first-child","\n margin-bottom: 12px;\n ")])]),P("top",[j("dots","\n transform: translateX(-50%);\n top: 12px;\n left: 50%;\n ",[P("line",[j("dot","\n margin: 0 4px;\n ")])]),j("dot","\n margin: 0 4px;\n "),j("arrow-group","\n top: 12px;\n right: 12px;\n ",[he("> *:first-child","\n margin-right: 12px;\n ")])]),P("bottom",[j("dots","\n transform: translateX(-50%);\n bottom: 12px;\n left: 50%;\n ",[P("line",[j("dot","\n margin: 0 4px;\n ")])]),j("dot","\n margin: 0 4px;\n "),j("arrow-group","\n bottom: 12px;\n right: 12px;\n ",[he("> *:first-child","\n margin-right: 12px;\n ")])]),P("fade",[j("slide","\n position: absolute;\n opacity: 0;\n transition-property: opacity;\n pointer-events: none;\n ",[P("current","\n opacity: 1;\n pointer-events: auto;\n ")])]),P("card",[j("slides","\n perspective: 1000px;\n "),j("slide","\n position: absolute;\n left: 50%;\n opacity: 0;\n transform: translateX(-50%) translateZ(-400px);\n transition-property: opacity, transform;\n ",[P("current","\n opacity: 1;\n transform: translateX(-50%) translateZ(0);\n z-index: 1;\n "),P("prev","\n opacity: 0.4;\n transform: translateX(-100%) translateZ(-200px);\n "),P("next","\n opacity: 0.4;\n transform: translateX(0%) translateZ(-200px);\n ")])])]),ha=["transitionDuration","transitionTimingFunction"],Ea=Object.assign(Object.assign({},hu.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 It=!1;const Ut=N({name:"Carousel",props:Ea,setup(s){const{mergedClsPrefixRef:i,inlineThemeDisabled:t}=dt(s),p=R(null),n=R(null),u=R([]),a={value:[]},o=K(()=>s.direction==="vertical"),d=K(()=>o.value?"height":"width"),r=K(()=>o.value?"bottom":"right"),g=K(()=>s.effect==="slide"),l=K(()=>s.loop&&s.slidesPerView===1&&g.value),c=K(()=>s.effect==="custom"),_=K(()=>!g.value||s.centeredSlides?1:s.slidesPerView),h=K(()=>c.value?1:s.slidesPerView),b=K(()=>_.value==="auto"||s.slidesPerView==="auto"&&s.centeredSlides),B=R({width:0,height:0}),S=K(()=>{const{value:f}=u;if(!f.length)return[];const{value:w}=b;if(w)return f.map($=>ru($));const{value:D}=h,{value:T}=B,{value:V}=d;let x=T[V];if(D!=="auto"){const{spaceBetween:$}=s,de=x-(D-1)*$,ot=1/Math.max(1,D);x=de*ot}const H=Object.assign(Object.assign({},T),{[V]:x});return f.map(()=>H)}),I=K(()=>{const{value:f}=S;if(!f.length)return[];const{centeredSlides:w,spaceBetween:D}=s,{value:T}=d,{[T]:V}=B.value;let x=0;return f.map(({[T]:H})=>{let $=x;return w&&($+=(H-V)/2),x+=H+D,$})}),m=R(!1),A=K(()=>{const{transitionStyle:f}=s;return f?Xt(f,ha):{}}),k=K(()=>c.value?0:ia(A.value.transitionDuration)),C=K(()=>{const{value:f}=u;if(!f.length)return[];const w=!(b.value||h.value===1),D=H=>{if(w){const{value:$}=d;return{[$]:"".concat(S.value[H][$],"px")}}};if(c.value)return f.map((H,$)=>D($));const{effect:T,spaceBetween:V}=s,{value:x}=r;return f.reduce((H,$,de)=>{const ot=Object.assign(Object.assign({},D(de)),{["margin-".concat(x)]:"".concat(V,"px")});return H.push(ot),m.value&&(T==="fade"||T==="card")&&Object.assign(ot,A.value),H},[])}),E=K(()=>{const{value:f}=_,{length:w}=u.value;if(f!=="auto")return Math.max(w-f,0)+1;{const{value:D}=S,{length:T}=D;if(!T)return w;const{value:V}=I,{value:x}=d,H=B.value[x];let $=D[D.length-1][x],de=T;for(;de>1&&$<H;)de--,$+=V[de]-V[de-1];return nt(de+1,1,T)}}),v=K(()=>ra(E.value,l.value)),y=St(s.defaultIndex,l.value),W=R(nu(y,E.value,l.value)),oe=As(ws(s,"currentIndex"),W),O=K(()=>St(oe.value,l.value));function Ae(f){var w,D;f=nt(f,0,E.value-1);const T=nu(f,E.value,l.value),{value:V}=oe;T!==oe.value&&(W.value=T,(w=s["onUpdate:currentIndex"])===null||w===void 0||w.call(s,T,V),(D=s.onUpdateCurrentIndex)===null||D===void 0||D.call(s,T,V))}function ve(f=O.value){return na(f,E.value,s.loop)}function qe(f=O.value){return la(f,E.value,s.loop)}function De(f){const w=Pe(f);return w!==null&&ve()===w}function Kt(f){const w=Pe(f);return w!==null&&qe()===w}function Re(f){return O.value===Pe(f)}function ku(f){return oe.value===f}function zt(){return ve()===null}function qt(){return qe()===null}function Ft(f){const w=nt(St(f,l.value),0,E.value);(f!==oe.value||w!==O.value)&&Ae(w)}function ht(){const f=ve();f!==null&&Ae(f)}function Ye(){const f=qe();f!==null&&Ae(f)}function Lu(){(!Fe||!l.value)&&ht()}function xu(){(!Fe||!l.value)&&Ye()}let Fe=!1,ke=0;const Et=R({});function et(f,w=0){Et.value=Object.assign({},A.value,{transform:o.value?"translateY(".concat(-f,"px)"):"translateX(".concat(-f,"px)"),transitionDuration:"".concat(w,"ms")})}function Ze(f=0){g.value?At(O.value,f):ke!==0&&(!Fe&&f>0&&(Fe=!0),et(ke=0,f))}function At(f,w){const D=Zt(f);D!==ke&&w>0&&(Fe=!0),ke=Zt(O.value),et(D,w)}function Zt(f){let w;return f>=E.value-1?w=Jt():w=I.value[f]||0,w}function Jt(){if(_.value==="auto"){const{value:f}=d,{[f]:w}=B.value,{value:D}=I,T=D[D.length-1];let V;if(T===void 0)V=w;else{const{value:x}=S;V=T+x[x.length-1][f]}return V-w}else{const{value:f}=I;return f[E.value-1]||0}}const Je={currentIndexRef:oe,to:Ft,prev:Lu,next:xu,isVertical:()=>o.value,isHorizontal:()=>!o.value,isPrev:De,isNext:Kt,isActive:Re,isPrevDisabled:zt,isNextDisabled:qt,getSlideIndex:Pe,getSlideStyle:ju,addSlide:Tu,removeSlide:Vu,onCarouselItemClick:Ru};ca(Je);function Tu(f){f&&u.value.push(f)}function Vu(f){if(!f)return;const w=Pe(f);w!==-1&&u.value.splice(w,1)}function Pe(f){return typeof f=="number"?f:f?u.value.indexOf(f):-1}function ju(f){const w=Pe(f);if(w!==-1){const D=[C.value[w]],T=Je.isPrev(w),V=Je.isNext(w);return T&&D.push(s.prevSlideStyle||""),V&&D.push(s.nextSlideStyle||""),Is(D)}}function Ru(f,w){let D=!Fe&&!st&&!yt;s.effect==="card"&&D&&!Re(f)&&(Ft(f),D=!1),D||(w.preventDefault(),w.stopPropagation())}let tt=null;function ut(){tt&&(clearInterval(tt),tt=null)}function Me(){ut(),!s.autoplay||v.value<2||(tt=window.setInterval(Ye,s.interval))}let wt=0,vt=0,Be=0,Bt=0,st=!1,yt=!1;function Ht(f){var w;if(It||!(!((w=n.value)===null||w===void 0)&&w.contains(Ds(f))))return;It=!0,st=!0,yt=!1,Bt=Date.now(),ut(),f.type!=="touchstart"&&!f.target.isContentEditable&&f.preventDefault();const D=lu(f)?f.touches[0]:f;o.value?vt=D.clientY:wt=D.clientX,s.touchable&&(He("touchmove",document,at),He("touchend",document,Ne),He("touchcancel",document,Ne)),s.draggable&&(He("mousemove",document,at),He("mouseup",document,Ne))}function at(f){const{value:w}=o,{value:D}=d,T=lu(f)?f.touches[0]:f,V=w?T.clientY-vt:T.clientX-wt,x=B.value[D];Be=nt(V,-x,x),f.cancelable&&f.preventDefault(),g.value&&et(ke-Be,0)}function Ne(){const{value:f}=O;let w=f;if(!Fe&&Be!==0&&g.value){const D=ke-Be,T=[...I.value.slice(0,E.value-1),Jt()];let V=null;for(let x=0;x<T.length;x++){const H=Math.abs(T[x]-D);if(V!==null&&V<H)break;V=H,w=x}}if(w===f){const D=Date.now()-Bt,{value:T}=d,V=B.value[T];Be>V/2||Be/D>.4?w=ve(f):(Be<-V/2||Be/D<-.4)&&(w=qe(f))}w!==null&&w!==f?(yt=!0,Ae(w),je(()=>{(!l.value||W.value!==oe.value)&&Ze(k.value)})):Ze(k.value),Qt(),Me()}function Qt(){st&&(It=!1),st=!1,wt=0,vt=0,Be=0,Bt=0,Qe("touchmove",document,at),Qe("touchend",document,Ne),Qe("touchcancel",document,Ne),Qe("mousemove",document,at),Qe("mouseup",document,Ne)}function Pu(){if(g.value&&Fe){const{value:f}=O;At(f,0)}else Me();g.value&&(Et.value.transitionDuration="0ms"),Fe=!1}function Mu(f){if(f.preventDefault(),Fe)return;let{deltaX:w,deltaY:D}=f;f.shiftKey&&!w&&(w=D);const T=-1,V=1,x=(w||D)>0?V:T;let H=0,$=0;o.value?$=x:H=x;const de=10;($*D>=de||H*w>=de)&&(x===V&&!qt()?Ye():x===T&&!zt()&&ht())}function Nu(){B.value=ru(p.value,!0),Me()}function Wu(){var f,w;b.value&&((w=(f=S.effect).scheduler)===null||w===void 0||w.call(f),S.effect.run())}function Ou(){s.autoplay&&ut()}function Gu(){s.autoplay&&Me()}X(()=>{vs(Me),requestAnimationFrame(()=>m.value=!0)}),Fu(()=>{Qt(),ut()}),Bs(()=>{const{value:f}=u,{value:w}=a,D=new Map,T=x=>D.has(x)?D.get(x):-1;let V=!1;for(let x=0;x<f.length;x++){const H=w.findIndex($=>$.el===f[x]);H!==x&&(V=!0),D.set(f[x],H)}V&&f.sort((x,H)=>T(x)-T(H))}),Ve(O,(f,w)=>{if(f!==w)if(Me(),g.value){if(l.value){const{value:D}=E;v.value>2&&f===D-2&&w===1?f=0:f===1&&w===D-2&&(f=D-1)}At(f,k.value)}else Ze()},{immediate:!0}),Ve([l,_],()=>void je(()=>{Ae(O.value)})),Ve(I,()=>{g.value&&Ze()},{deep:!0}),Ve(g,f=>{f?Ze():(Fe=!1,et(ke=0))});const Uu=K(()=>({onTouchstartPassive:s.touchable?Ht:void 0,onMousedown:s.draggable?Ht:void 0,onWheel:s.mousewheel?Mu:void 0})),Ku=K(()=>Object.assign(Object.assign({},Xt(Je,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:v.value,currentIndex:oe.value})),zu=K(()=>({total:v.value,currentIndex:oe.value,to:Je.to})),qu={getCurrentIndex:()=>oe.value,to:Ft,prev:ht,next:Ye},Zu=hu("Carousel","-carousel",Fa,aa,s,i),$t=K(()=>{const{common:{cubicBezierEaseInOut:f},self:{dotSize:w,dotColor:D,dotColorActive:T,dotColorFocus:V,dotLineWidth:x,dotLineWidthActive:H,arrowColor:$}}=Zu.value;return{"--n-bezier":f,"--n-dot-color":D,"--n-dot-color-focus":V,"--n-dot-color-active":T,"--n-dot-size":w,"--n-dot-line-width":x,"--n-dot-line-width-active":H,"--n-arrow-color":$}}),We=t?ys("carousel",void 0,$t,s):void 0;return Object.assign(Object.assign({mergedClsPrefix:i,selfElRef:p,slidesElRef:n,slideVNodes:a,duplicatedable:l,userWantsControl:c,autoSlideSize:b,realIndex:O,slideStyles:C,translateStyle:Et,slidesControlListeners:Uu,handleTransitionEnd:Pu,handleResize:Nu,handleSlideResize:Wu,handleMouseenter:Ou,handleMouseleave:Gu,isActive:ku,arrowSlotProps:Ku,dotSlotProps:zu},qu),{cssVars:t?void 0:$t,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){var s;const{mergedClsPrefix:i,showArrow:t,userWantsControl:p,slideStyles:n,dotType:u,dotPlacement:a,slidesControlListeners:o,transitionProps:d={},arrowSlotProps:r,dotSlotProps:g,$slots:{default:l,dots:c,arrow:_}}=this,h=l&&bs(l())||[];let b=Aa(h);return b.length||(b=h.map(B=>Y(Ct,null,{default:()=>Cu(B)}))),this.duplicatedable&&(b=oa(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(B=>Y(Yt,{onResize:this.handleSlideResize},{default:()=>B}))),(s=this.onRender)===null||s===void 0||s.call(this),Y("div",Object.assign({ref:"selfElRef",class:[this.themeClass,"".concat(i,"-carousel"),this.direction==="vertical"&&"".concat(i,"-carousel--vertical"),this.showArrow&&"".concat(i,"-carousel--show-arrow"),"".concat(i,"-carousel--").concat(a),"".concat(i,"-carousel--").concat(this.direction),"".concat(i,"-carousel--").concat(this.effect),p&&"".concat(i,"-carousel--usercontrol")],style:this.cssVars},o,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),Y(Yt,{onResize:this.handleResize},{default:()=>Y("div",{ref:"slidesElRef",class:"".concat(i,"-carousel__slides"),role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},p?b.map((B,S)=>Y("div",{style:n[S],key:S},Rt(Y(Ss,Object.assign({},d),{default:()=>B}),[[_s,this.isActive(S)]]))):b)}),this.showDots&&g.total>1&&eu(c,g,()=>[Y(pa,{key:u+a,total:g.total,currentIndex:g.currentIndex,dotType:u,trigger:this.trigger,keyboard:this.keyboard})]),t&&eu(_,r,()=>[Y(fa,null)]))}});function Aa(s){return s.reduce((i,t)=>(Ca(t)&&i.push(t),i),[])}const wa="_prepareLessons_99lbr_1",va="_directoryMain_99lbr_7",Ba="_resourceMain_99lbr_8",ya="_lessonMain_99lbr_21",ba="_resourceClose_99lbr_30",_a="_showSideBar_99lbr_36",Sa="_hideSideBar_99lbr_48",Oe={prepareLessons:wa,directoryMain:va,resourceMain:Ba,lessonMain:ya,resourceClose:ba,showSideBar:_a,hideSideBar:Sa},Ia="_directoryList_7kdi1_1",Da="_scrollBar_7kdi1_8",ka="_iconArrow_7kdi1_32",La="_itemImg_7kdi1_42",xa="_itemBg_7kdi1_79",Ta="_itemContent_7kdi1_104",Va="_subjects_7kdi1_114",ja="_changeDir_7kdi1_124",Ra="_treeParent_7kdi1_149",Pa="_treeChild_7kdi1_152",Ma="_treeItem_7kdi1_155",Na="_childItem_7kdi1_166",Wa="_title_7kdi1_166",Oa="_dir_7kdi1_1",Ga="_titleSelect_7kdi1_188",Ua="_arrow_7kdi1_195",Ka="_arrowSelect_7kdi1_202",za="_childArrow_7kdi1_206",qa="_childSelect_7kdi1_216",Za="_coursewareModal_7kdi1_222",q={directoryList:Ia,scrollBar:Da,"select-directory":"_select-directory_7kdi1_13",iconArrow:ka,"select-directory-info":"_select-directory-info_7kdi1_35",itemImg:La,itemBg:xa,itemContent:Ta,subjects:Va,changeDir:ja,treeParent:Ra,treeChild:Pa,treeItem:Ma,childItem:Na,title:Wa,dir:Oa,titleSelect:Ga,arrow:Ua,arrowSelect:Ka,childArrow:za,childSelect:qa,coursewareModal:Za},Ja="_attendClassSearch_otv4e_1",Ha="_iconSearch_otv4e_20",Qa="_classList_otv4e_24",$a="_content_otv4e_28",Xa="_teachingSpace_otv4e_32",Ya="_item_otv4e_35",eo="_cover_otv4e_41",to="_iconCustom_otv4e_55",uo="_editContainer_otv4e_65",so="_editBtnGroup_otv4e_76",ao="_imgBtn_otv4e_80",oo="_itemImg_otv4e_90",no="_itemBg_otv4e_121",lo="_itemName_otv4e_146",ro="_teachingModal_otv4e_153",io="_removeVisiable_otv4e_156",co="_studentRemove_otv4e_162",po="_btnGroup_otv4e_174",Q={attendClassSearch:Ja,iconSearch:Ha,classList:Qa,content:$a,teachingSpace:Xa,item:Ya,cover:eo,iconCustom:to,editContainer:uo,editBtnGroup:so,imgBtn:ao,itemImg:oo,itemBg:no,itemName:lo,teachingModal:ro,removeVisiable:io,studentRemove:co,btnGroup:po},go="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdoAAAKgCAMAAAALa0ynAAAAZlBMVEX4+fuFm9SJn9bq7veuvOKltt/19/qXqtvy9PnH0erN1u3BzOmNotfU2++fsN3n6/bW3fCbrdyUp9nu8fijs96ywOS5xua+yujR2e68yOfb4vLf5fKQpNipueDj6PTK1OzY3/G2w+XPOG7OAAANa0lEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGB26+A0YiCIgujMCCF02KPyT9UXY4xXDkC176VQNP0BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgg2znfqx17Oc2KNmu+eMSN+S15i/rNYg45x/nIOE137jbhG3NN8u/LbjmjWvweNu85Wyf73tDWVI9+7y1D57umLeOwdOteWsNnm7+Y/B00mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ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g0zgVFCqYNDQ0FBoPBqFAouk0m09xvOp1OnpeXR7Qc2travpDJZMT+spCbBAClv1T/MxGNRlMslUoJVPT395/Jyso65jCs0WiKpFKpjP5/9OhRlVKpnKOrTp48+VJJSQmXi9TV1TVVVFQQqclJb2/va9nZ2fn0766uLu2mTZu+ZOIsoCcAFAB45+qujrgDwN2L9PX1bV+7di2XNnd2drZv3ry5awkAMBIAb7GkvYIMAOt9AO5PgSUMggEYA7ggyHQZDLIYwC2DTBOhIAOAS4QEp8LOS2GQAcClwoKKoSDPA7hiSFA5HOQAcOUwCW9CxBcATp06tTU/P7+YdNRqtXrbtm20fc1Jd3e3PDc3l8v3W1tbW0tLS+nIiz9T4TlChDphRom5iwEFBQVxKpWq3Gw2m6RSaePFixfnzvQUFRXFNTY2vjkzM2MsKSlpdC5z/VQL3EOJMSNF3QHAt4DxEwD3kKLkGxNaPEgAmEeLEwBMNkZOnDixQS6XU0zB4ODgubS0tAa+X96hd+HChfL09HRu00ar1Wq2bNnylUCbC26MMNkaq6ysTK2pqXmHHLTZbNaRkZHLer1+mq/D0dHRUcnJyavDwsI4hri6uvrjAwcO0PzlK4tujZFBwZujMTEx4UNDQ+8mJCSs4uvhYnq0Q5SSkvLRxMSEWYDtRTdHySaT7XF7tN+xcuVKOkrLREZHR//YuXPnp11dXUJOjHvcHidnmR2QoO2tnJycFVFRUbwZp+npaWNfX99fzc3NI8QECxSPByTIfsgfkSEQQvqQlGOUhfQxOQcIIX1Q0gECszpBYADjoy74qCx1GvKHpR0ghOxxeeehF7IXJpxBCOkrMw4gQvrSlAMEyhhD9tqc85QI2YuTrutyyF6dXShBCcnL04tlagF9ff5ft2mijHHWhrsAAAAASUVORK5CYII=",Co=N({name:"select-lessonware",emits:["close","confirm"],setup(s,{emit:i}){const t=$e();ks();const p=pt(),n=J({loading:!1,list:[],teachingStatus:!1,musicTagList:[],selectItem:{},bookVersionId:null,keyword:null,currentGradeNum:null,instrumentId:null,removeVisiable:!1,removeRow:{}}),u=async()=>{n.loading=!0;try{const{data:r}=await mu({page:1,rows:99,type:"COURSEWARE",enableFlag:1,bookVersionId:n.bookVersionId,keyword:n.keyword,currentGradeNum:n.currentGradeNum,instrumentId:n.instrumentId});n.list=r.rows}catch(r){}n.loading=!1},a=async r=>{try{await Hu({id:n.removeRow.id}),p.success("删除成功"),u(),n.removeVisiable=!1}catch(g){console.log(g)}},o=mt(()=>u(),500),d=r=>{i("confirm",r),i("close")};return X(async()=>{try{await t.getSubjects();const{data:r}=await Ju({page:1,rows:99,type:"COURSEWARE"});(r.rows||[]).forEach(l=>{n.musicTagList.push({id:l.id,name:l.name})})}catch(r){}u()}),()=>e("div",{class:Q.selectLessonware},[e("div",{class:Q.attendClassSearch},[e(Xe,{placeholder:"请输入教材名称",clearable:!0,value:n.keyword,"onUpdate:value":r=>n.keyword=r,onKeyup:r=>{r.code==="Enter"&&o()},onClear:()=>{n.keyword=null,o()}},{prefix:()=>e("span",{class:"icon-search-input",onClick:()=>o()},null)}),e(Mt,{placeholder:"请选择乐器",value:n.instrumentId,"onUpdate:value":[r=>n.instrumentId=r,()=>o()],options:[{name:"全部乐器",id:null},...t.getSubjectList],checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",clearable:!0,filterable:!0,style:{width:"400px"}},null),e(tu,{placeholder:"全部版本",clearable:!0,options:[{id:null,name:"全部版本"},...n.musicTagList],labelField:"name",valueField:"id",value:n.bookVersionId,"onUpdate:value":[r=>n.bookVersionId=r,()=>o()]},null),e(tu,{placeholder:"全部年级",options:[{label:"全部年级",value:null},...ls.grades],value:n.currentGradeNum,"onUpdate:value":[r=>n.currentGradeNum=r,()=>o()],clearable:!0,filterable:!0},null)]),e(Ee,{class:Q.classList},{default:()=>[e(me,{show:n.loading,class:Q.content},{default:()=>[e(ae,{class:Q.teachingSpace},{default:()=>[e("div",{class:Q.item,key:"item--1",onClick:()=>{n.selectItem={},n.teachingStatus=!0}},[e("div",{class:Q.cover},[e("div",{class:Q.itemImg},[e("div",{class:Q.itemBg},null),e(ce,{objectFit:"cover",src:go,lazy:!0,previewDisabled:!0,onLoad:r=>{r.target.dataset.loaded="true"}},null)])])]),n.list.map((r,g)=>e("div",{class:Q.item,key:"item-".concat(g),onClick:()=>d(r)},[e("div",{class:Q.cover},[e("div",{class:Q.itemImg},[e("div",{class:Q.itemBg},null),e(ce,{objectFit:"cover",src:r.coverImg,lazy:!0,previewDisabled:!0,onLoad:l=>{l.target.dataset.loaded="true"}},null),r.customFlag&&e(fe,null,[e("div",{class:Q.iconCustom},null),e("div",{class:Q.editContainer},[e("div",{class:Q.editBtnGroup},[e("img",{src:mo,class:Q.imgBtn,onClick:l=>{l.stopPropagation(),n.selectItem=r,n.teachingStatus=!0}},null),e("img",{src:fo,class:Q.imgBtn,onClick:l=>{l.stopPropagation(),n.removeVisiable=!0,n.removeRow=r}},null)])])])])]),e("div",{class:Q.itemName},[r.name])]))]})]})]}),e(ue,{maskClosable:se,show:n.teachingStatus,"onUpdate:show":r=>n.teachingStatus=r,preset:"card",showIcon:!1,class:["modalTitle background",Q.teachingModal],title:"自定义教材",blockScroll:!1},{default:()=>[e(rs,{item:n.selectItem,onClose:()=>n.teachingStatus=!1,onConfirm:()=>{u(),n.selectItem={}}},null)]}),e(ue,{maskClosable:se,show:n.removeVisiable,"onUpdate:show":r=>n.removeVisiable=r,preset:"card",class:["modalTitle",Q.removeVisiable],title:"删除教材"},{default:()=>[e("div",{class:Q.studentRemove},[e("p",null,[F("是否删除该教材")]),e(ae,{class:Q.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,type:"primary",onClick:a},{default:()=>[F("确定")]}),e(G,{round:!0,onClick:()=>n.removeVisiable=!1},{default:()=>[F("取消")]})]})])]})])}}),Fo=N({name:"lessons-guide",emits:["close"],setup(s,{emit:i}){const t=J({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:Tt("lessons1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:ie(-4),left:ie(-50),width:ie(420),height:ie(228)},btnsStyle:{bottom:ie(35),left:ie(111)},eleRectPadding:{left:7,top:7,width:14,height:-9}}],step:0}),p=R(!1),n=R({});(async()=>{var l;try{const c=await yu({guideTag:"teacher-guideInfo"});c.data?n.value=JSON.parse((l=c.data)==null?void 0:l.guideValue)||null:n.value={},n.value&&n.value.lessonsGuide?p.value=!1:p.value=!0}catch(c){console.log(c)}})();const a=()=>{var c,_,h,b;const l=document.getElementById("lessons-".concat(t.step));if(l){const B=l.getBoundingClientRect();console.log(l,B,"eleRect");const S=((c=t.steps[t.step].eleRectPadding)==null?void 0:c.left)||0,I=((_=t.steps[t.step].eleRectPadding)==null?void 0:_.top)||0,m=((h=t.steps[t.step].eleRectPadding)==null?void 0:h.width)||0,A=((b=t.steps[t.step].eleRectPadding)==null?void 0:b.height)||0;t.box={left:B.x-S+"px",top:B.y-I+"px",width:B.width+m+"px",height:B.height+A+"px"},console.log("coai-".concat(t.step),t.box)}else r()},o=async l=>{try{if(l!=="prepare-lessons")return;n.value?n.value.lessonsGuide=!1:n.value={lessonsGuide:!1};try{await ct({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(n.value)})}catch(c){console.log(c)}t.step=0,a(),p.value=!0}catch(c){}};X(()=>{setTimeout(()=>{a()},0),window.addEventListener("resize",d),L.on("teacher-guideInfo",o)});const d=()=>{a()};Se(()=>{window.removeEventListener("resize",d),L.off("teacher-guideInfo",o)});const r=()=>{if(t.step>=4){g();return}t.step=t.step+1,a()},g=async()=>{n.value?n.value.lessonsGuide=!0:n.value={lessonsGuide:!0};try{const l=await ct({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(n.value)})}catch(l){console.log(l)}p.value=!1};return()=>e(fe,null,[p.value?Rt(e("div",{"onUpdate:show":l=>p.value=l,class:["n-modal-mask","n-modal-mask-guide"]},[e("div",{class:le.content,onClick:()=>r()},[e("div",{class:le.backBtn,onClick:l=>{l.stopPropagation(),g()}},[F("跳过")]),e("div",{class:le.box,style:{...t.box},id:"modeType-".concat(t.step)},[t.steps.map((l,c)=>{var _,h,b,B,S,I;return e("div",{onClick:m=>m.stopPropagation(),class:le.item,style:l.type=="bottom"?{display:c===t.step?"":"none",left:"".concat((_=l.eleRect)==null?void 0:_.left,"px"),top:"-".concat((h=l.imgStyle)==null?void 0:h.height)}:l.type=="left"?{display:c===t.step?"":"none",top:"".concat(parseFloat((b=t.box)==null?void 0:b.height)/2-parseFloat((B=l.imgStyle)==null?void 0:B.height)*1920/100/2-14,"px")}:{display:c===t.step?"":"none",left:"".concat((S=l.eleRect)==null?void 0:S.left,"px"),top:"".concat((I=t.box)==null?void 0:I.height)}},[e("img",{class:le.img,style:l.imgStyle,src:l.img},null),e("div",{class:le.btns,style:l.btnsStyle},[t.step+1==t.steps.length?e(fe,null,[e("div",{class:[le.btn],onClick:()=>g()},[F("完成")])]):e("div",{class:le.btn,onClick:()=>r()},[F("下一步 ("),t.step+1,F("/"),t.steps.length,F(")")])])])})])])]),[[Eu,p.value,"show"]]):null])}}),ho=N({name:"directory-main",props:{sidebarShow:{type:Boolean,default:!0}},setup(s){const i=Au(),t=be(),p=Pt(),n=R(!0),u=J({lastUseCoursewareId:i.query.lastUseCoursewareId?i.query.lastUseCoursewareId+"":null,unit:i.query.unit?i.query.unit+"":null,showSelectBookStatus:!1,coursewareStatus:!1}),a=async()=>{var h;try{const{data:b}=await mu({page:1,rows:99,type:"COURSEWARE",enableFlag:1}),B=b.rows||[];if(B.length>0){const S=B.find(A=>{var k;return A.id===(u.lastUseCoursewareId||((k=p.getUserInfo)==null?void 0:k.lastUseCoursewareId))});let I=null,m=null;if(S?(t.setBaseCourseware(S),I=S.id,m=S.instrumentIds):(t.setBaseCourseware(B[0]),I=(h=B[0])==null?void 0:h.id,m=B[0].instrumentIds),r(I),m){const{data:A}=await uu({instrumentIds:m});t.setInstrumentList(A)}}u.showSelectBookStatus=!0}catch(b){}},o=async()=>{try{const h=t.getBaseCourseware;if(!h.id)return;const{data:b}=await Qu({id:h.id}),B=b.lessonList||[],S=d(u.unit,B);B.forEach((I,m)=>{if(I.selected=!1,S.length>1)I.id===S[0]&&(I.selected=!0,I.knowledgeList.forEach(A=>{A.id===S[1]&&(t.setSelectKey(A==null?void 0:A.id),t.setLessonCoursewareId(A==null?void 0:A.lessonCoursewareId),t.setLessonCoursewareDetailId(A==null?void 0:A.lessonCoursewareDetailId))}));else if(m===0){I.selected=!0;const A=I.knowledgeList[0];t.setSelectKey(A==null?void 0:A.id),t.setLessonCoursewareId(A==null?void 0:A.lessonCoursewareId),t.setLessonCoursewareDetailId(A==null?void 0:A.lessonCoursewareDetailId)}}),t.setTreeList(B)}catch(h){}},d=(h,b,B=[])=>{for(const S of b){if(S.knowledgeList&&S.knowledgeList.length>0){const I=d(h,S.knowledgeList,[...B,S.id]);if(I.includes(h))return I}if(S.id===h)return[...B,h]}return B},r=async h=>{try{await $u({coursewareId:h}),p.getInfo()}catch(b){}},g=h=>{t.setSelectKey(h.id),t.setLessonCoursewareId(h.lessonCoursewareId),t.setLessonCoursewareDetailId(h.lessonCoursewareDetailId)},l=async h=>{n.value=!0,u.lastUseCoursewareId=h.lastUseCoursewareId,u.unit=h.unit,await a(),await o(),n.value=!1},c=async h=>{if(t.setBaseCourseware(h),h.instrumentIds){const{data:b}=await uu({instrumentIds:h.instrumentIds});t.setInstrumentList(b);let B=!1,S=null;if(b.forEach((I,m)=>{Array.isArray(I.instruments)&&I.instruments.forEach((A,k)=>{A.id===t.getInstrumentId&&(B=!0),m===0&&k===0&&(S=A.id)})}),await o(),console.log(B,"status"),B){const I=S;sessionStorage.removeItem("prepareLessonCourseWareSubjectIsNull"),t.setInstrumentId(I)}else sessionStorage.removeItem("prepareLessonCourseWareSubjectIsNull"),t.setInstrumentId("")}r(h.id)},_=K(()=>{const h=t.getBaseCourseware.instrumentNames;return h?h.split(",").join("、"):""});return X(async()=>{n.value=!0,await a(),await o(),n.value=!1,L.on("onChangeClass",async h=>{l(h)})}),()=>e(fe,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:h=>{h.target.dataset.loaded="true"}},null)]),e("div",{class:q.itemContent},[e("h2",null,[e(xt,{text:t.getBaseCourseware.name},null)]),e("div",{class:q.subjects},[e(xt,{text:_.value,time:_.value.length>15?10:5},null)]),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,[F("切片")]),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,[F("切换教材")])])])]):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(wu,{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(Ee,{class:q.scrollBar},{default:()=>[e(me,{show:n.value},{default:()=>[e("div",{class:[q.listSection,!n.value&&t.getTreeList.length<=0?q.emptySection:""]},[t.getTreeList.map((h,b)=>e("div",{class:q.treeParent,key:"parent"+b},[e("div",{class:[q.treeItem,q.parentItem],onClick:()=>{t.getTreeList.forEach(B=>{h.id!==B.id&&(B.selected=!1)}),h.selected=!h.selected}},[h.knowledgeList&&h.knowledgeList.length>0&&e("span",{class:[q.arrow,h.selected?q.arrowSelect:""]},null),e("p",{class:[q.title,h.selected?q.titleSelect:""]},[e("span",{class:[q.dir,h.selected?q.dirSelect:""]},null),h.name])]),h.selected&&h.knowledgeList&&h.knowledgeList.map((B,S)=>e("div",{key:"child"+S,class:[q.treeItem,q.childItem,q.animation,t.getSelectKey===B.id?q.childSelect:""],onClick:()=>{t.getIsEditResource?L.emit("pageBeforeLeave",()=>g(B)):g(B)}},[e("span",{class:q.childArrow},null),e("p",{class:q.title},[B.name])]))]))]),!n.value&&t.getTreeList.length<=0&&e(Ce,null,null)]})]}),e(ue,{maskClosable:se,show:u.coursewareStatus,"onUpdate:show":h=>u.coursewareStatus=h,preset:"card",showIcon:!1,class:["modalTitle background",q.coursewareModal],title:"切换教材",blockScroll:!1},{default:()=>[e(Co,{onClose:()=>u.coursewareStatus=!1,onConfirm:h=>{t.getIsEditResource?L.emit("pageBeforeLeave",()=>c(h)):c(h)}},null)]})]),u.showSelectBookStatus&&!s.sidebarShow&&e(Fo,null,null)])}}),Eo="_coursewareSection_jbu29_1",Ao="_coursewareHeader_jbu29_5",wo="_coursewareFooter_jbu29_65",lt={coursewareSection:Eo,coursewareHeader:Ao,"lesson-main":"_lesson-main_jbu29_11",coursewareFooter:wo},vo="_tipsContainer_1bfc9_1",Bo="_tipsLeft_1bfc9_13",yo="_tips_1bfc9_1",bo="_iconTips_1bfc9_22",_o="_btnNoTips_1bfc9_27",So="_btnGroupClass_1bfc9_33",Io="_listContainer_1bfc9_36",Do="_listSection_1bfc9_41",ko="_emptySection_1bfc9_45",Lo="_listItems_1bfc9_49",xo="_knowledgePoint_1bfc9_58",To="_btnItem_1bfc9_58",Vo="_btnTitle_1bfc9_63",jo="_operationGroup_1bfc9_85",Ro="_iconCUp_1bfc9_96",Po="_iconCDown_1bfc9_104",Mo="_iconCRemove_1bfc9_112",No="_addKnowledgePoint_1bfc9_120",Wo="_iconCAdd_1bfc9_130",Oo="_list_1bfc9_36",Go="_itemWrap_1bfc9_144",Uo="_itemWrapBox_1bfc9_149",Ko="_itemOperation_1bfc9_157",zo="_iconDelete_1bfc9_163",qo="_attendClassModal_1bfc9_175",Zo="_addCourseware_1bfc9_180",Jo="_removeVisiable1_1bfc9_186",Ho="_studentRemove_1bfc9_192",Qo="_btnGroupModal_1bfc9_203",$o="_addMusicItem_1bfc9_210",Xo="_addMusicName_1bfc9_231",Yo="_addOtherSource_1bfc9_241",Z={tipsContainer:vo,tipsLeft:Bo,tips:yo,iconTips:bo,btnNoTips:_o,btnGroupClass:So,listContainer:Io,listSection:Do,emptySection:ko,listItems:Lo,knowledgePoint:xo,btnItem:To,btnTitle:Vo,operationGroup:jo,iconCUp:Ro,iconCDown:Po,iconCRemove:Mo,addKnowledgePoint:No,iconCAdd:Wo,list:Oo,itemWrap:Go,itemWrapBox:Uo,itemOperation:Ko,iconDelete:zo,attendClassModal:qo,addCourseware:Zo,removeVisiable1:Jo,studentRemove:Ho,btnGroupModal:Qo,addMusicItem:$o,addMusicName:Xo,addOtherSource:Yo},en="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",tn="_addCoursewareItem_13slg_1",un="_btnGroupModal_13slg_12",iu={addCoursewareItem:tn,btnGroupModal:un};function sn(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ie(s)}const an=N({name:"add-courseware-item",props:{coursewareList:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(s,{emit:i}){const t=R([]);return()=>{let p;return e("div",{class:iu.addCoursewareItem},[e(vu,{value:t.value,"onUpdate:value":n=>t.value=n},{default:()=>[e(Ls,{yGap:18,cols:2},sn(p=s.coursewareList.map((n,u)=>e(xs,null,{default:()=>[e(Lt,{value:u},{default:()=>[n.name]})]})))?p:{default:()=>[p]})]}),e(ae,{class:iu.btnGroupModal,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{round:!0,type:"primary",onClick:()=>{i("confirm",t.value)}},{default:()=>[F("确定")]})]})])}}}),on="_addOtherSource_1sytn_1",nn="_sourceItem_1sytn_8",ln="_coverImg_1sytn_11",rn="_name_1sytn_24",cn="_addOtherSourceModal_1sytn_31",dn="_instrumentModal_1sytn_34",pn="_musicModal_1sytn_35",gn="_theoryModal_1sytn_53",mn="_subjectSyncModal_1sytn_57",fn="_attendClassModal_1sytn_60",Cn="_attendClassSaveModal_1sytn_66",pe={addOtherSource:on,sourceItem:nn,coverImg:ln,name:rn,addOtherSourceModal:cn,instrumentModal:dn,musicModal:pn,theoryModal:gn,subjectSyncModal:mn,attendClassModal:fn,attendClassSaveModal:Cn},Fn=""+new URL("icon1-75d0865e.png",import.meta.url).href,hn=""+new URL("icon2-0917d8de.png",import.meta.url).href,En=""+new URL("icon3-20aef624.png",import.meta.url).href,An=""+new URL("icon4-74cdf5a7.png",import.meta.url).href,wn=""+new URL("icon5-817119a1.png",import.meta.url).href,vn=""+new URL("icon6-3e36ae41.png",import.meta.url).href,Bn=""+new URL("icon8-a98128fc.png",import.meta.url).href,yn="_sourceRhythm_x9cqh_1",bn="_btnGroup_x9cqh_12",Dt={sourceRhythm:yn,btnGroup:bn},_n=N({name:"source-rhythm",emits:["close","confirm"],setup(s,{emit:i}){const t=Pt(),p=R(),n=R(!0);let u="".concat(origin,"/classroom-app/#/tempo-practice?v=").concat(Date.now(),"&Authorization=").concat(t.getToken,"&platform=modal");/(localhost|192)/.test(location.host)&&(u="http://192.168.3.220:9002/#/tempo-practice?v=".concat(Date.now(),"&Authorization=").concat(t.getToken,"&platform=modal"));const a=()=>{var d,r;(r=(d=p.value)==null?void 0:d.contentWindow)==null||r.postMessage({api:"getTempoSetting"},"*")},o=d=>{var r;if(((r=d.data)==null?void 0:r.api)==="getTempoSetting"){const g=d.data.data?JSON.parse(d.data.data):{};i("confirm",{dataJson:JSON.stringify(g.setting),coverImg:"https://oss.dayaedu.com/ktqy/171013700931689a322a6.png"})}};return X(()=>{window.addEventListener("message",o)}),Se(()=>{window.removeEventListener("message",o)}),()=>e("div",{class:Dt.sourceRhythm},[e(me,{show:n.value},{default:()=>[e("iframe",{ref:p,onLoad:d=>{n.value=!1,Ts(d.target)},class:[Dt.container,"musicIframe"],frameborder:"0",src:u},null),e(ae,{class:Dt.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{round:!0,type:"primary",onClick:a},{default:()=>[F("确认添加")]})]})]})])}}),Sn="_container_19ipk_1",In="_iconBack_19ipk_1",Dn="_separator_19ipk_40",kn="_wrap_19ipk_45",Ln="_listWrap_19ipk_49",xn="_listWrapEmpty_19ipk_54",Tn="_btnGroup_19ipk_91",Le={container:Sn,iconBack:In,separator:Dn,wrap:kn,listWrap:Ln,listWrapEmpty:xn,btnGroup:Tn},Vn="_searchGroup_1n8vo_1",jn="_btnType_1n8vo_5",Rn="_swipeControll_1n8vo_13",Pn="_leftIcon_1n8vo_16",Mn="_disabled_1n8vo_28",Nn="_carouselGroup_1n8vo_42",Wn="_carouselContainer_1n8vo_46",On="_inputSearch_1n8vo_57",Gn="_searchCatatory_1n8vo_78",Un="_addTrain_1n8vo_85",Kn="_searchGroups_1n8vo_97",zn="_instrumentList_1n8vo_100",qn="_list_1n8vo_104",Zn="_itemWrap_1n8vo_114",Jn="_itemWrapBox_1n8vo_119",Hn="_itemCard_1n8vo_127",Qn="_itemImgSection_1n8vo_131",$n="_itemTag_1n8vo_137",Xn="_iconCheck_1n8vo_164",Yn="_img_1n8vo_173",el="_itemImgSectionSelected_1n8vo_183",tl="_itemTitle_1n8vo_190",ee={searchGroup:Vn,btnType:jn,swipeControll:Rn,leftIcon:Pn,disabled:Mn,carouselGroup:Nn,carouselContainer:Wn,inputSearch:On,searchCatatory:Gn,addTrain:Un,searchGroups:Kn,instrumentList:zn,list:qn,itemWrap:Zn,itemWrapBox:Jn,itemCard:Hn,itemImgSection:Qn,itemTag:$n,iconCheck:Xn,img:Yn,itemImgSectionSelected:el,itemTitle:tl},Ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohj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kRF57fgrfWs3CwComA+4DVzU8EXG+DBheKCf3gZbtUrlKYnll1zX57rYsAP7Bga92Tb+uGT8gXdbpCyMTzppK+aZNry2sCgXL+q0oSOHxw/JWNFpQw04iMQvANHvYb46Jn5XrWhw6r5uRbMvXzSk0ddnjWfF6AvQuquafYVdhzS3CKHhqkaXkayDNLUQqAFpdClXE6S5xXjNWy1jyymbIY0uiG0BNbOkufV00FSU/iohhzPfFq8WpX/PEj7bEkXp7Y5B2n1VFD0pMZ4l+AgE+7r8reAGiOti80fPcX7NUpe92XHsf6EH9ozNKnEhAAAAAElFTkSuQmCC";function ul(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ie(s)}const sl=N({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(s,{emit:i}){const t=J({currentIndex:0,keyword:"",wikiCategoryId:s.wikiCategoryId||"",maxIndex:0}),p=J({showSlide:!1}),n=()=>{i("search",t)},u=R(),a=o=>{var d,r;o==="left"?(d=u.value)==null||d.prev():o==="right"&&((r=u.value)==null||r.next())};return X(async()=>{Iu.nextTick(()=>{const o=document.querySelector(".carouselContainer"),d=o&&o.getBoundingClientRect().width||0,r=document.querySelectorAll(".n-carousel__slide");let g=0;r.forEach(l=>{const c=l.getBoundingClientRect();g+=c.width}),g>=d&&(p.showSlide=!0)})}),()=>{let o;return e("div",{class:ee.searchGroup},[e("div",{class:[ee.searchCatatory]},[e(ae,{size:"small",class:ee.btnType},{default:()=>[s.categoryChildList.length>0?e(G,{type:t.wikiCategoryId===s.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==s.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=s.wikiCategoryId,n()}},{default:()=>[F("全部")]}):"",e("div",{class:[ee.carouselGroup]},[e(Ut,{ref:u,slidesPerView:"auto",loop:!1,class:[ee.carouselContainer,"carouselContainer"],showDots:!1,draggable:p.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":d=>{t.currentIndex=d}},ul(o=s.categoryChildList.map(d=>e(Ct,null,{default:()=>[e(G,{type:t.wikiCategoryId===d.id?"primary":"default",secondary:t.wikiCategoryId!==d.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=d.id,n()}},{default:()=>[d.name]})]})))?o:{default:()=>[o]}),p.showSlide&&e(ae,{class:ee.swipeControll},{default:()=>[e("div",{onClick:()=>a("left")},[e(ce,{previewDisabled:!0,class:[ee.leftIcon],src:Ge},null)]),e("div",{onClick:()=>a("right")},[e(ce,{previewDisabled:!0,src:Ge},null)])]})])]}),e(Nt,{class:ee.inputSearch,placeholder:"请输入乐器名称",round:!0,onSearch:d=>{t.keyword=d,n()}},null)])])}}}),al=N({name:"instrument-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["confirm"],setup(s,{emit:i}){Ue();const t=J({searchWord:"",loading:!1,pageTotal:0,finshed:!1,pagination:{page:1,rows:18},searchGroup:{type:"INSTRUMENT",keyword:"",wikiCategoryId:s.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async()=>{t.loading=!0;try{const{data:a}=await Wt({...t.pagination,...t.searchGroup}),o=a.rows||[];o.forEach(d=>{d.knowledgeWikiCategories&&d.knowledgeWikiCategories.length&&(d.categories=d.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)}),t.tableList.push(...o),t.pageTotal=Number(a.total),t.finshed=a.pages<=a.current}catch(a){}t.loading=!1},n=async a=>{t.pagination.page=1,t.searchGroup=Object.assign(t.searchGroup,a),t.tableList=[],p()},u=a=>{const o=s.selectItems||[],d=o.findIndex(r=>r.id===a.id);d!==-1?o.splice(d,1):o.push(a),i("confirm",o)};return X(()=>{p()}),()=>e("div",{class:ee.instrumentList},[e(sl,{class:ee.searchGroups,categoryChildList:s.categoryChildList||[],onSearch:a=>n(a),wikiCategoryId:s.categoryId},null),e(Ee,{class:ee.listContainer,style:{"max-height":"50vh"},onScroll:a=>{var g,l,c;const o=(g=a.target)==null?void 0:g.clientHeight,d=(l=a.target)==null?void 0:l.scrollTop,r=(c=a.target)==null?void 0:c.scrollHeight;o+d+20>=r&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p())}},{default:()=>[e(me,{show:t.loading,"onUpdate:show":a=>t.loading=a,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:ee.list},[t.tableList.map(a=>e("div",{class:ee.itemWrap,onClick:()=>{t.item={content:a.id,title:a.name,type:"INSTRUMENT"},t.show=!0}},[e("div",{class:ee.itemWrapBox},[e("div",{class:ee.itemCard},[e("div",{class:[ee.itemImgSection,s.selectItems.findIndex(o=>o.id===a.id)!==-1&&ee.itemImgSectionSelected]},[e(ce,{src:a.avatar+"?imageMogr2/strip/format/jpg/size-limit/15k!",class:ee.img,objectFit:"cover",previewDisabled:!0},null),e("i",{class:[ee.iconCheck],onClick:o=>{o.stopPropagation(),u(a)}},null)]),e("div",{class:ee.itemTitle},[a.name])])])])),!t.loading&&t.tableList.length<=0&&e(Ce,{style:{minHeight:"50vh"},description:"暂无乐器百科"},null)])]})]}),e(ft,{size:"large",show:t.show,"onUpdate:show":a=>t.show=a,item:t.item},null)])}});function ol(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ie(s)}const nl=N({name:"content-instrument",emits:["confirm","close"],setup(s,{emit:i}){Ue();const t=J({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Ot({type:"INSTRUMENT",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&je(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const n=async()=>{const u=[];t.selectItems.forEach(a=>{u.push({coverImg:gt.INSTRUMENT_DEFAULT_COVER,title:"乐器百科-"+a.name,materialId:a.id,content:a.id})}),i("confirm",u)};return()=>{let u;return e("div",{class:Le.container},[e("div",{class:Le.wrap},[e("div",{class:[Le.listWrap,!t.loading&&t.categoryList.length<=0&&Le.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(Ce,{description:"暂无乐器百科"},null),e("div",{style:{minHeight:"55vh"}},[e(Ke,{defaultValue:"myResources",paneClass:Le.paneTitle,justifyContent:"center",paneWrapperClass:Le.paneWrapperContainer,value:t.tabValue,"onUpdate:value":a=>t.tabValue=a},ol(u=t.categoryList.map(a=>e(ze,{name:"name-".concat(a.id),tab:a.name},{default:()=>[e(al,{selectItems:t.selectItems,categoryId:a.id,categoryChildList:a.childrenList,onConfirm:o=>{t.selectItems=o||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ae,{class:Le.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{round:!0,type:"primary",onClick:n},{default:()=>[F("确认添加")]})]})])}}}),ll=N({name:"cotnent-knowledge",emits:["close","confirm"],setup(s,{emit:i}){const t=R(!1),p=R(!1),n=R(),u=J({fontSize:18,tableList:[],selectKey:null,details:{},selectCheckboxs:[]}),a=async()=>{t.value=!0,p.value=!0;try{const{data:r}=await Os({type:"COURSEWARE"});if(u.tableList=r||[],u.tableList.length>0){const g=u.tableList[0].lessonCoursewareDetailKnowledgeDetailList;if(u.tableList[0].selected=!0,g&&g.length){const l=g[0];u.selectKey=l.id,await o()}u.tableList.forEach(l=>{l.checked=!1,l.indeterminate=!1})}}catch(r){}p.value=!1,t.value=!1},o=async()=>{p.value=!0;try{const{data:r}=await Gs({id:u.selectKey});u.details=r}catch(r){}p.value=!1},d=()=>{const r=[];for(const l in u.selectCheckboxs){const c=u.selectCheckboxs[l],_=u.tableList[l];Array.isArray(_.lessonCoursewareDetailKnowledgeDetailList)&&_.lessonCoursewareDetailKnowledgeDetailList.forEach(h=>{c.includes(h.id)&&r.push(h)})}const g=[];r.forEach(l=>{g.push({coverImg:gt.THEORY_DEFAULT_COVER,title:"乐理知识-"+l.name,materialId:l.id,content:l.id})}),i("confirm",g)};return X(()=>{a()}),()=>{var r;return e("div",{class:M.container},[e("div",{class:[M.wrap]},[e("div",{class:M.content},[e("div",{class:M.contentWrap},[e("div",{class:M.directoryList},[e("div",{class:[M.scrollBar,!t.value&&u.tableList.length<=0?M.empty:""],style:{height:"100%"}},[e(me,{show:t.value,style:{height:"100%"}},{default:()=>[e("div",{class:[M.listSection]},[u.tableList.map((g,l)=>e("div",{class:[M.treeParent,g.selected&&M.treeParentSelected],key:"parent"+l},[e("div",{class:[M.treeItem,M.parentItem],onClick:()=>{u.tableList.forEach(c=>{g.id!==c.id&&(c.selected=!1)}),g.selected=!g.selected}},[g.lessonCoursewareDetailKnowledgeDetailList&&g.lessonCoursewareDetailKnowledgeDetailList.length>0&&e("span",{class:[M.arrow,g.selected?M.arrowSelect:""]},null),e("p",{class:[M.title,g.selected?M.titleSelect:""]},[e("span",{class:[M.dir,g.selected?M.dirSelect:""]},null),e("p",null,[g.name])]),e("div",{class:M.checkbox,onClick:c=>{c.stopPropagation()}},[e(Lt,{checked:g.checked,indeterminate:g.indeterminate,"onUpdate:checked":c=>{g.checked=c;const _=g.lessonCoursewareDetailKnowledgeDetailList||[];if(c){const h=[];_.forEach(b=>{h.push(b.id)}),u.selectCheckboxs[l]=h}else u.selectCheckboxs[l]=[];g.indeterminate=!1}},null)])]),e(vu,{value:u.selectCheckboxs[l],"onUpdate:value":c=>{u.selectCheckboxs[l]=c;const _=g.lessonCoursewareDetailKnowledgeDetailList||[];c.length<=0?(g.checked=!1,g.indeterminate=!1):c.length===_.length?(g.checked=!0,g.indeterminate=!1):(g.checked=!1,g.indeterminate=!0)}},{default:()=>[g.selected&&g.lessonCoursewareDetailKnowledgeDetailList&&g.lessonCoursewareDetailKnowledgeDetailList.map((c,_)=>e("div",{key:"child"+_,class:[M.treeItem,M.childItem,M.animation,u.selectKey===c.id?M.childSelect:""],onClick:()=>{u.selectKey!==c.id&&(u.selectKey=c.id,o(),n.value.$el.scrollTo(0,0))}},[e("span",{class:M.childArrow},null),e("p",{class:M.title},[c.name]),e("div",{class:M.checkbox,onClick:h=>h.stopPropagation()},[e(Lt,{value:c.id},null)])]))]})]))])]}),!t.value&&u.tableList.length<=0&&e(Ce,{style:{height:"100%"}},null)])]),e("div",{class:M.musicStaff},[e(me,{show:p.value,ref:n,class:!p.value&&!((r=u.details)!=null&&r.desc)?M.empty:""},{default:()=>{var g,l,c;return[(g=u.details)!=null&&g.desc?e("div",{class:M.musicContent,innerHTML:(l=u.details)==null?void 0:l.desc,style:{fontSize:u.fontSize+"px"}},null):"",!p.value&&!((c=u.details)!=null&&c.desc)&&e(Ce,null,null)]}})]),e("div",{class:M.changeSizeSection},[e("img",{src:Us,class:M.iconT},null),e("img",{src:Ks,class:M.iconAddT,onClick:()=>{u.fontSize>=32||(u.fontSize+=1)}},null),e(qs,{value:u.fontSize,"onUpdate:value":g=>u.fontSize=g,vertical:!0,min:12,max:32},null),e("img",{src:zs,class:M.iconPlusT,onClick:()=>{u.fontSize<=12||(u.fontSize-=1)}},null)])])])]),e(ae,{class:M.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{round:!0,type:"primary",onClick:d},{default:()=>[F("确认添加")]})]})])}}}),rl="_container_19ipk_1",il="_iconBack_19ipk_1",cl="_separator_19ipk_40",dl="_wrap_19ipk_45",pl="_listWrap_19ipk_49",gl="_listWrapEmpty_19ipk_54",ml="_btnGroup_19ipk_91",xe={container:rl,iconBack:il,separator:cl,wrap:dl,listWrap:pl,listWrapEmpty:gl,btnGroup:ml},fl="_searchGroup_1euh7_1",Cl="_btnType_1euh7_5",Fl="_swipeControll_1euh7_13",hl="_leftIcon_1euh7_16",El="_disabled_1euh7_28",Al="_carouselGroup_1euh7_42",wl="_carouselContainer_1euh7_46",vl="_inputSearch_1euh7_57",Bl="_searchCatatory_1euh7_78",yl="_addTrain_1euh7_85",bl="_searchGroups_1euh7_97",_l="_list_1euh7_100",Sl="_itemWrap_1euh7_111",Il="_itemWrapBox_1euh7_116",Dl="_itemCard_1euh7_124",kl="_itemImgSection_1euh7_128",Ll="_itemTag_1euh7_134",xl="_iconCheck_1euh7_161",Tl="_img_1euh7_170",Vl="_itemImgSectionSelected_1euh7_180",jl="_itemTitle_1euh7_187",te={searchGroup:fl,btnType:Cl,swipeControll:Fl,leftIcon:hl,disabled:El,carouselGroup:Al,carouselContainer:wl,inputSearch:vl,searchCatatory:Bl,addTrain:yl,searchGroups:bl,list:_l,itemWrap:Sl,itemWrapBox:Il,itemCard:Dl,itemImgSection:kl,itemTag:Ll,iconCheck:xl,img:Tl,itemImgSectionSelected:Vl,itemTitle:jl};function Rl(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ie(s)}const Pl=N({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(s,{emit:i}){const t=J({currentIndex:0,keyword:"",wikiCategoryId:s.wikiCategoryId||"",maxIndex:0}),p=J({showSlide:!1}),n=()=>{i("search",t)},u=R(),a=o=>{var d,r;o==="left"?(d=u.value)==null||d.prev():o==="right"&&((r=u.value)==null||r.next())};return X(async()=>{Iu.nextTick(()=>{const o=document.querySelector(".carouselContainer"),d=o&&o.getBoundingClientRect().width||0,r=document.querySelectorAll(".n-carousel__slide");let g=0;r.forEach(l=>{const c=l.getBoundingClientRect();g+=c.width}),g>=d&&(p.showSlide=!0)})}),()=>{let o;return e("div",{class:te.searchGroup},[e("div",{class:[te.searchCatatory]},[e(ae,{size:"small",class:te.btnType},{default:()=>[s.categoryChildList.length>0?e(G,{type:t.wikiCategoryId===s.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==s.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=s.wikiCategoryId,n()}},{default:()=>[F("全部")]}):"",e("div",{class:te.carouselGroup},[e(Ut,{ref:u,slidesPerView:"auto",loop:!1,class:[te.carouselContainer,"carouselContainer"],showDots:!1,draggable:p.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":d=>{t.currentIndex=d}},Rl(o=s.categoryChildList.map(d=>e(Ct,null,{default:()=>[e(G,{type:t.wikiCategoryId===d.id?"primary":"default",secondary:t.wikiCategoryId!==d.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=d.id,n()}},{default:()=>[d.name]})]})))?o:{default:()=>[o]}),p.showSlide&&e(ae,{class:te.swipeControll},{default:()=>[e("div",{onClick:()=>a("left")},[e(ce,{previewDisabled:!0,class:[te.leftIcon],src:Ge},null)]),e("div",{onClick:()=>a("right")},[e(ce,{previewDisabled:!0,src:Ge},null)])]})])]}),e(Nt,{class:te.inputSearch,placeholder:"请输入音乐家名称",round:!0,onSearch:d=>{t.keyword=d,n()}},null)])])}}}),Ml=N({name:"musician-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["confirm"],setup(s,{emit:i}){Ue();const t=J({searchWord:"",loading:!1,pageTotal:0,finshed:!1,pagination:{page:1,rows:18},searchGroup:{type:"MUSICIAN",keyword:"",wikiCategoryId:s.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async(a=!0)=>{a&&(t.loading=!0);try{const{data:o}=await Wt({...t.pagination,...t.searchGroup}),d=o.rows||[];d.forEach(r=>{r.knowledgeWikiCategories&&r.knowledgeWikiCategories.length&&(r.categories=r.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)}),t.tableList.push(...d),t.pageTotal=Number(o.total),t.finshed=o.pages<=o.current}catch(o){}t.loading=!1},n=async a=>{t.pagination.page=1,t.searchGroup=Object.assign(t.searchGroup,a),t.tableList=[],p()},u=a=>{const o=s.selectItems||[],d=o.findIndex(r=>r.id===a.id);d!==-1?o.splice(d,1):o.push(a),i("confirm",o)};return X(()=>{p()}),()=>e("div",{class:te.instrumentList},[e(Pl,{class:te.searchGroups,categoryChildList:s.categoryChildList||[],onSearch:a=>n(a),wikiCategoryId:s.categoryId},null),e(Ee,{class:te.listContainer,style:{"max-height":"50vh"},onScroll:a=>{var g,l,c;const o=(g=a.target)==null?void 0:g.clientHeight,d=(l=a.target)==null?void 0:l.scrollTop,r=(c=a.target)==null?void 0:c.scrollHeight;o+d+20>=r&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p(!1))}},{default:()=>[e(me,{show:t.loading,"onUpdate:show":a=>t.loading=a,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:te.list},[t.tableList.map(a=>e("div",{class:te.itemWrap,onClick:()=>{t.item={content:a.id,title:a.name,type:"MUSICIAN"},t.show=!0}},[e("div",{class:te.itemWrapBox},[e("div",{class:te.itemCard},[e("div",{class:[te.itemImgSection,s.selectItems.findIndex(o=>o.id===a.id)!==-1&&te.itemImgSectionSelected]},[e(ce,{src:a.avatar,class:te.img,objectFit:"cover",previewDisabled:!0},null),e("i",{class:[te.iconCheck],onClick:o=>{o.stopPropagation(),u(a)}},null)]),e("div",{class:te.itemTitle},[a.name])])])])),!t.loading&&t.tableList.length<=0&&e(Ce,{style:{minHeight:"50vh"},description:"暂无音乐家"},null)])]})]}),e(ft,{size:"large",show:t.show,"onUpdate:show":a=>t.show=a,item:t.item},null)])}});function Nl(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ie(s)}const Wl=N({name:"content-instrument",emits:["confirm","close"],setup(s,{emit:i}){const t=J({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Ot({type:"MUSICIAN",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&je(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const n=async()=>{const u=[];t.selectItems.forEach(a=>{u.push({coverImg:gt.MUSICIAN_DEFAULT_COVER,title:"音乐家-"+a.name,materialId:a.id,content:a.id})}),i("confirm",u)};return()=>{let u;return e("div",{class:xe.container},[e("div",{class:xe.wrap},[e("div",{class:[xe.listWrap,!t.loading&&t.categoryList.length<=0&&xe.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(Ce,{description:"暂无音乐家"},null),e("div",{style:{minHeight:"55vh"}},[e(Ke,{defaultValue:"myResources",paneClass:xe.paneTitle,justifyContent:"center",paneWrapperClass:xe.paneWrapperContainer,"onUpdate:value":[a=>{sessionStorage.setItem("content-instrument-tab",a)},a=>t.tabValue=a],value:t.tabValue},Nl(u=t.categoryList.map(a=>e(ze,{name:"name-".concat(a.id),tab:a.name},{default:()=>[e(Ml,{selectItems:t.selectItems,categoryId:a.id,categoryChildList:a.childrenList,onConfirm:o=>{t.selectItems=o||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ae,{class:xe.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{round:!0,type:"primary",onClick:n},{default:()=>[F("确认添加")]})]})])}}}),Ol="_container_1o74q_1",Gl="_separator_1o74q_36",Ul="_wrap_1o74q_41",Kl="_listWrap_1o74q_44",zl="_listWrapEmpty_1o74q_49",ql="_btnGroup_1o74q_60",Te={container:Ol,separator:Gl,wrap:Ul,listWrap:Kl,listWrapEmpty:zl,btnGroup:ql},Zl="_searchGroup_gol4m_1",Jl="_btnType_gol4m_5",Hl="_swipeControll_gol4m_12",Ql="_leftIcon_gol4m_15",$l="_disabled_gol4m_27",Xl="_carouselGroup_gol4m_41",Yl="_carouselContainer_gol4m_44",er="_inputSearch_gol4m_55",tr="_searchCatatory_gol4m_76",ur="_border_gol4m_83",sr="_addTrain_gol4m_87",ar="_searchGroups_gol4m_99",or="_instrumentList_gol4m_102",nr="_list_gol4m_106",lr="_itemWrap_gol4m_115",rr="_itemWrapBox_gol4m_122",ir="_iconCheck_gol4m_130",cr="_itemCard_gol4m_139",dr="_musicBg_gol4m_157",pr="_itemName_gol4m_163",gr="_itemImgSectionSelected_gol4m_168",mr="_popSelect_gol4m_171",fr="_spaceSection_gol4m_181",Cr="_textBtn_gol4m_184",Fr="_iconArrow_gol4m_195",hr="_textBtnActive_gol4m_204",z={searchGroup:Zl,btnType:Jl,swipeControll:Hl,leftIcon:Ql,disabled:$l,carouselGroup:Xl,carouselContainer:Yl,inputSearch:er,searchCatatory:tr,border:ur,addTrain:sr,searchGroups:ar,instrumentList:or,list:nr,itemWrap:lr,itemWrapBox:rr,iconCheck:ir,itemCard:cr,musicBg:dr,itemName:pr,itemImgSectionSelected:gr,popSelect:mr,spaceSection:fr,textBtn:Cr,iconArrow:Fr,textBtnActive:hr};function cu(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ie(s)}const Er=N({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(s,{emit:i}){const t=J({keyword:"",wikiCategoryId:s.wikiCategoryId||"",wikiCategoryIdChild:"",childIds:[],currentIndex:0}),p=R(),n=()=>{i("search",t)},u=(r,g)=>{const l={};return r==null||r.forEach(c=>{c.id===t.wikiCategoryIdChild&&(l.selected=!0,l.name=c.name)}),l},a=K(()=>{const g=(s.categoryChildList||[]).find(l=>l.id===t.wikiCategoryId);if(g&&g.childrenList.length){const l=[];return g.childrenList.forEach(c=>{const _=c.childrenList,h=[];_&&_.length>0&&(h.push({label:"全部",value:c.id,name:c.name,id:c.id}),_.forEach(b=>{h.push({label:b.name,value:b.id,name:b.name,id:b.id})})),l.push({...c,childrenList:h})}),[{label:"全部",value:"",id:"",name:"全部",childrenList:[]},...l]}return[]}),o=J({showSlide:!1}),d=r=>{var g,l;r==="left"?(g=p.value)==null||g.prev():r==="right"&&((l=p.value)==null||l.next())};return X(()=>{je(()=>{const r=document.querySelector(".carouselContainer"),g=r&&r.getBoundingClientRect().width||0,l=document.querySelectorAll(".n-carousel__slide");let c=0;l.forEach(_=>{const h=_.getBoundingClientRect();c+=h.width}),c>=g&&(o.showSlide=!0)})}),()=>{let r,g;return e("div",{class:z.searchGroup},[e("div",{class:[z.searchCatatory,a.value.length>0?z.border:""]},[e(ae,{size:"small",class:z.btnType},{default:()=>[s.categoryChildList.length>0?e(G,{type:t.wikiCategoryId===s.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==s.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=s.wikiCategoryId,t.wikiCategoryIdChild="",n()}},{default:()=>[F("全部")]}):e("span",null,null),e("div",{class:[z.carouselGroup]},[e(Ut,{ref:p,slidesPerView:"auto",loop:!1,class:[z.carouselContainer,"carouselContainer"],showDots:!1,draggable:o.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":l=>{t.currentIndex=l}},cu(r=s.categoryChildList.map(l=>e(Ct,null,{default:()=>[e(G,{type:t.wikiCategoryId===l.id?"primary":"default",secondary:t.wikiCategoryId!==l.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=l.id,n()}},{default:()=>[l.name]})]})))?r:{default:()=>[r]}),o.showSlide&&e(ae,{class:z.swipeControll},{default:()=>[e("div",{onClick:()=>d("left")},[e(ce,{previewDisabled:!0,class:[z.leftIcon],src:Ge},null)]),e("div",{onClick:()=>d("right")},[e(ce,{previewDisabled:!0,src:Ge},null)])]})])]}),e(Nt,{class:z.inputSearch,placeholder:"请输入曲目名称",round:!0,onSearch:l=>{t.keyword=l,n()}},null)]),a.value.length>0&&e("div",{class:[z.collapseWrap]},[e(ae,{class:[z.spaceSection]},cu(g=a.value.map((l,c)=>e(fe,null,[l.childrenList.length>0?e(Bu,{options:l.childrenList,trigger:"hover",value:t.wikiCategoryIdChild,"onUpdate:value":[_=>t.wikiCategoryIdChild=_,()=>{n()}],key:l.id,class:z.popSelect},{default:()=>[e("span",{class:[z.textBtn,u(l.childrenList).selected&&z.textBtnActive]},[u(l.childrenList).name||l.name,e("i",{class:z.iconArrow},null)])]}):e("span",{class:[z.textBtn,t.wikiCategoryIdChild===l.id&&z.textBtnActive],onClick:()=>{t.wikiCategoryIdChild=l.id,n()}},[l.name])])))?g:{default:()=>[g]})])])}}}),Ar=N({name:"music-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(s,{emit:i}){Ue();const t=J({searchWord:"",loading:!1,finshed:!1,pageTotal:0,pagination:{page:1,rows:18},searchGroup:{type:"MUSIC",keyword:"",wikiCategoryId:s.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async()=>{t.loading=!0;try{const{data:a}=await Wt({...t.pagination,...t.searchGroup});t.tableList.push(...a.rows),t.pageTotal=Number(a.total),t.finshed=a.pages<=a.current}catch(a){}t.loading=!1},n=async a=>{t.pagination.page=1,t.tableList=[];const{wikiCategoryIdChild:o,wikiCategoryId:d,keyword:r}=a;t.searchGroup=Object.assign(t.searchGroup,{wikiCategoryId:o||d,keyword:r}),p()},u=a=>{const o=s.selectItems||[],d=o.findIndex(r=>r.id===a.id);d!==-1?o.splice(d,1):o.push(a),i("confirm",o)};return X(()=>{p()}),()=>e("div",{class:z.instrumentList},[e(Er,{class:z.searchGroups,categoryChildList:s.categoryChildList||[],wikiCategoryId:s.categoryId,onSearch:a=>n(a)},null),e(Ee,{class:z.listContainer,style:{"max-height":"50vh"},onScroll:a=>{var g,l,c;const o=(g=a.target)==null?void 0:g.clientHeight,d=(l=a.target)==null?void 0:l.scrollTop,r=(c=a.target)==null?void 0:c.scrollHeight;o+d+20>=r&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p())}},{default:()=>[e(me,{show:t.loading,"onUpdate:show":a=>t.loading=a,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:z.list},[t.tableList.map(a=>e("div",{class:z.itemWrap,onClick:()=>{t.item={content:a.id,title:a.name,type:"MUSIC_WIKI"},t.show=!0}},[e("div",{class:z.itemWrapBox},[e("div",{class:[z.itemCard,s.selectItems.findIndex(o=>o.id===a.id)!==-1&&z.itemImgSectionSelected]},[e("div",{class:z.itemName},[e("img",{src:a.avatar||Zs,class:z.musicBg},null),e("span",{class:z.name},[a.name])]),e("i",{class:[z.iconCheck],onClick:o=>{o.stopPropagation(),u(a)}},null)])])])),!t.loading&&t.tableList.length<=0&&e(Ce,{style:{minHeight:"50vh"},description:"暂无名曲鉴赏"},null)])]})]}),e(ft,{size:"large",show:t.show,"onUpdate:show":a=>t.show=a,item:t.item},null)])}});function wr(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ie(s)}const vr=N({name:"content-music",emits:["close","confirm"],setup(s,{emit:i}){const t=J({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Ot({type:"MUSIC",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&je(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const n=async()=>{const u=[];t.selectItems.forEach(a=>{u.push({coverImg:gt.MUSIC_DEFAULT_COVER,title:"名曲鉴赏-"+a.name,materialId:a.id,content:a.id})}),i("confirm",u)};return()=>{let u;return e("div",{class:Te.container},[e("div",{class:Te.wrap},[e("div",{class:[Te.listWrap,!t.loading&&t.categoryList.length<=0&&Te.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(Ce,{description:"暂无名曲鉴赏"},null),e("div",{style:{minHeight:"55vh"}},[e(Ke,{defaultValue:"myResources",paneClass:Te.paneTitle,justifyContent:"center",paneWrapperClass:Te.paneWrapperContainer,value:t.tabValue,"onUpdate:value":a=>t.tabValue=a},wr(u=t.categoryList.map(a=>e(ze,{name:"name-".concat(a.id),tab:a.name},{default:()=>[e(Ar,{selectItems:t.selectItems,categoryId:a.id,categoryChildList:a.childrenList,onConfirm:o=>{t.selectItems=o||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ae,{class:Te.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{round:!0,type:"primary",onClick:n},{default:()=>[F("确认添加")]})]})])}}}),Br="_btnGroupModal_1ug7x_1",yr="_subjectSync_1ug7x_8",br="_tips_1ug7x_11",_r="_subjectList_1ug7x_49",Sr="_subjectItem_1ug7x_56",Ir="_imgSection_1ug7x_56",Dr="_iconSelect_1ug7x_77",kr="_subjectName_1ug7x_85",Lr="_subjectSelect_1ug7x_89",we={btnGroupModal:Br,subjectSync:yr,tips:br,subjectList:_r,subjectItem:Sr,imgSection:Ir,iconSelect:Dr,subjectName:kr,subjectSelect:Lr};function xr(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Ie(s)}const Tr=N({name:"subject-sync",props:{subjectId:{type:[String,Number],default:""}},emits:["close","confirm"],setup(s,{emit:i}){const t=$e();be();const p=R(""),n=pt(),u=R([]),a=R([]),o={Panpipes:"https://oss.dayaedu.com/ktqy/17103860536976fd4a751.png",Ocarina:"https://oss.dayaedu.com/ktqy/17143623857205dba41a5.png",Whistling:"https://oss.dayaedu.com/ktqy/1714362351692fcf8c0b8.png",Woodwind:"https://oss.dayaedu.com/ktqy/17103860536966826c50d.png","Tenor Recorder":"https://oss.dayaedu.com/ktqy/17103860536950592e357.png",Nai:"https://oss.dayaedu.com/ktqy/1710386053697af4aa985.png","Baroque Recorder":"https://oss.dayaedu.com/ktqy/1710386053698031e847a.png"},d=()=>{if(u.value.length<=0){n.error("至少选择一个声部进行同步");return}const g=[];u.value.forEach(l=>{const c=a.value.find(_=>_.id===l);console.log(c,"item"),c&&g.push({materialId:c.id,coverImg:o[c.code]||o.Panpipes,dataJson:null,title:c.name,isCollect:!1,isSelected:!1,content:c.code})}),i("confirm",{subjectIds:u.value,subjectCode:g})},r=()=>{const g=t.getEnableSubjects,l=[];g.forEach(c=>{p.value===""&&c.instruments?l.push(...c.instruments):p.value&&c.instruments&&Number(p.value)===c.id&&l.push(...c.instruments)}),a.value=l};return X(async()=>{await t.getSubjects(),r(),s.subjectId&&(u.value=[Number(s.subjectId)])}),()=>{let g;return e("div",{class:we.subjectSync},[e(Ke,{defaultValue:"",paneClass:we.paneTitle,justifyContent:"start",paneWrapperClass:we.paneWrapperContainer,value:p.value,"onUpdate:value":l=>{p.value=l,r()}},xr(g=[{name:"全部声部",id:""},...t.getEnableSubjects].map(l=>e(ze,{name:"".concat(l.id),tab:l.name,displayDirective:"if"},null)))?g:{default:()=>[g]}),e(Ee,{style:{maxHeight:"50vh",minHeight:"50vh"}},{default:()=>[e("div",{class:we.subjectList},[a.value.map(l=>e("div",{class:[we.subjectItem,u.value.includes(l.id)?we.subjectSelect:""],onClick:()=>{if(u.value.includes(l.id)){const c=u.value.indexOf(l.id);u.value.splice(c,1)}else u.value.push(l.id)}},[e("div",{class:we.imgSection},[e("img",{src:l.img},null),u.value.includes(l.id)&&e("img",{src:Js,class:we.iconSelect},null)]),e("p",{class:we.subjectName},[l.name])]))])]}),e(ae,{class:we.btnGroupModal,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{round:!0,type:"primary",onClick:d},{default:()=>[F("确定")]})]})])}}}),Vr=N({name:"add-other-source",emits:["close","comfirm"],setup(s,{emit:i}){be();const t=Ue(),p=R([{image:Bn,name:"上传资源",index:7},{image:Fn,name:"听音练习",index:0},{image:hn,name:"节奏练习",index:1},{image:En,name:"乐器百科",index:2},{image:vn,name:"名曲鉴赏",index:3},{image:wn,name:"音乐家",index:4},{image:An,name:"乐理知识",index:5}]),n=J({listenStatus:!1,rhythmStatus:!1,theoryStatus:!1,musicStatus:!1,instrumentStatus:!1,musicianStatus:!1,uploadStatus:!1,saveStatus:!1,editStatus:!1,editList:[],editIds:[],editOverIds:[]}),u=a=>{switch(a.index){case 0:n.listenStatus=!0;break;case 1:n.rhythmStatus=!0;break;case 2:n.instrumentStatus=!0;break;case 3:n.musicStatus=!0;break;case 4:n.musicianStatus=!0;break;case 5:n.theoryStatus=!0;break;case 6:L.emit("pageBeforeLeave",()=>{sessionStorage.setItem("notation-open-create","1"),t.push("/notation")});break;case 7:n.saveStatus=!0;break}};return()=>e(fe,null,[e("div",{class:pe.addOtherSource},[p.value.map(a=>e("div",{class:pe.sourceItem,onClick:()=>u(a)},[e(ce,{class:pe.coverImg,src:a.image,previewDisabled:!0},null),e("p",{class:pe.name},[a.name])]))]),e(ue,{maskClosable:se,show:n.rhythmStatus,"onUpdate:show":a=>n.rhythmStatus=a,preset:"card",class:["modalTitle background",pe.addOtherSourceModal],title:"节奏练习"},{default:()=>[e(_n,{onClose:()=>n.rhythmStatus=!1,onConfirm:a=>{n.rhythmStatus=!1,i("comfirm",{materialId:null,coverImg:a.coverImg,dataJson:a.dataJson,title:"节奏练习",isCollect:!1,isSelected:!1,content:null,type:"RHYTHM"}),i("close")}},null)]}),e(ue,{maskClosable:se,show:n.instrumentStatus,"onUpdate:show":a=>n.instrumentStatus=a,preset:"card",class:["modalTitle",pe.instrumentModal],title:"乐器百科"},{default:()=>[e(nl,{onClose:()=>n.instrumentStatus=!1,onConfirm:a=>{n.instrumentStatus=!1;const o=a||[],d=[];o.forEach(r=>{d.push({materialId:r.materialId,coverImg:r.coverImg,dataJson:null,title:r.title,isCollect:!1,isSelected:!1,content:r.content,type:"INSTRUMENT"})}),i("comfirm",d),i("close")}},null)]}),e(ue,{maskClosable:se,show:n.theoryStatus,"onUpdate:show":a=>n.theoryStatus=a,preset:"card",class:["modalTitle",pe.theoryModal],title:"乐理知识"},{default:()=>[e(ll,{onClose:()=>n.theoryStatus=!1,onConfirm:a=>{n.theoryStatus=!1;const o=a||[],d=[];o.forEach(r=>{d.push({materialId:r.materialId,coverImg:r.coverImg,dataJson:null,title:r.title,isCollect:!1,isSelected:!1,content:r.content,type:"THEORY"})}),i("comfirm",d),i("close")}},null)]}),e(ue,{maskClosable:se,show:n.musicianStatus,"onUpdate:show":a=>n.musicianStatus=a,preset:"card",class:["modalTitle",pe.instrumentModal],title:"音乐家"},{default:()=>[e(Wl,{onClose:()=>n.musicianStatus=!1,onConfirm:a=>{n.musicianStatus=!1;const o=a||[],d=[];o.forEach(r=>{d.push({materialId:r.materialId,coverImg:r.coverImg,dataJson:null,title:r.title,isCollect:!1,isSelected:!1,content:r.content,type:"MUSICIAN"})}),i("comfirm",d),i("close")}},null)]}),e(ue,{maskClosable:se,show:n.musicStatus,"onUpdate:show":a=>n.musicStatus=a,preset:"card",class:["modalTitle",pe.musicModal],title:"名曲鉴赏"},{default:()=>[e(vr,{onClose:()=>n.musicStatus=!1,onConfirm:a=>{n.musicStatus=!1;const o=a||[],d=[];o.forEach(r=>{d.push({materialId:r.materialId,coverImg:r.coverImg,dataJson:null,title:r.title,isCollect:!1,isSelected:!1,content:r.content,type:"MUSIC_WIKI"})}),i("comfirm",d),i("close")}},null)]}),e(ue,{maskClosable:se,show:n.listenStatus,"onUpdate:show":a=>n.listenStatus=a,preset:"card",class:["modalTitle background",pe.subjectSyncModal],title:"选择乐器"},{default:()=>[e(Tr,{onClose:()=>n.listenStatus=!1,onConfirm:async a=>{try{n.musicStatus=!1;const o=a.subjectCode||[],d=[];o.forEach(r=>{d.push({materialId:r.materialId,coverImg:r.coverImg,dataJson:null,title:r.title,isCollect:!1,isSelected:!1,content:r.content,type:"LISTEN"})}),n.listenStatus=!1,i("comfirm",d),i("close")}catch(o){}}},null)]}),e(ue,{maskClosable:se,show:n.uploadStatus,"onUpdate:show":a=>n.uploadStatus=a,preset:"card",showIcon:!1,class:["modalTitle background",pe.attendClassModal],title:n.editStatus?"修改资源":"上传资源",blockScroll:!1},{default:()=>[e(Hs,{editStatus:n.editStatus,onClose:()=>{n.uploadStatus=!1},onConfirm:a=>{n.editIds=[],n.editList=[],n.editOverIds=[],n.saveStatus=!1;try{n.musicStatus=!1;const o=a||[],d=[];o.forEach(r=>{d.push({materialId:r.id,coverImg:r.coverImg,dataJson:null,title:r.name,isCollect:!1,isSelected:!1,content:r.content,type:r.type})}),i("comfirm",d),i("close")}catch(o){}},list:n.editList},null)]}),e(ue,{maskClosable:se,show:n.saveStatus,"onUpdate:show":a=>n.saveStatus=a,preset:"card",showIcon:!1,class:["modalTitle background",pe.attendClassSaveModal],title:"上传资源",blockScroll:!1},{default:()=>[e(Qs,{onClose:()=>n.saveStatus=!1,onConfrim:a=>{const o=a||[],d=[];o.forEach(r=>{d.push({subjectIds:null,openFlag:!1,coverImg:r.coverImg,title:r.name||"",type:$s(r.content),enableFlag:1,content:r.content,id:null})}),n.editList=d,n.uploadStatus=!0,n.editStatus=!1}},null)]})])}}),jr="_protocolModal_6k92d_1",Rr="_dingPng_6k92d_4",Pr="_downMove_6k92d_13",Mr="_downMoveBg_6k92d_21",Nr="_closeAble_6k92d_28",Wr="_submitAppBtn_6k92d_54",Or="_cancelBtn_6k92d_55",Gr="_protocolGroup_6k92d_65",Ur="_checkbox_6k92d_75",Kr="_checkboxActive_6k92d_83",zr="_protocolSection_6k92d_90",qr="_protocolContent_6k92d_123",Zr="_child_6k92d_134",ne={protocolModal:jr,dingPng:Rr,downMove:Pr,downMoveBg:Mr,closeAble:Nr,submitAppBtn:Wr,cancelBtn:Or,protocolGroup:Gr,checkbox:Ur,checkboxActive:Kr,protocolSection:zr,protocolContent:qr,child:Zr},Jr=""+new URL("dingPng-b63c3ae2.png",import.meta.url).href,du=""+new URL("moveTop-6b6421db.png",import.meta.url).href,pu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAi9JREFUaEPt2a9LBEEUwPHvBUFEg0EQ0SD+BTaLSbCYTAo2k0WDlvMHCCJisWgwWRVMJoNgMtj8CwSDv8BgUhEElYFdWZe7nbcz78Fx7Na7ebOfeTtvZnZrtMlVaxMHFaTVMlllpMqI0QhIHq0hYBx4Ay6AT6N7ScN2ApNAN3AF3Ev680GGgT2gIwn2AKwDr5LgAf/pBXaAwaTtF7AC3Pli+SALwFQuyCOwZoDJI9Juz4HDWMg8MN0giDamGcJ1fQYcxUL6gP3kec3H0sIUId6BJeAlFuLajwDbRhgfYgO49SHc7745ksawwKghykC0M6OKKAvRwqgjQiCxGBNEKCQUY4aIgfgwT8BqZtE0RcRCpJif3LYjW03dOiEusUVlWFp+i2IUlWaXme/M3skEoZERyTrTaBDUMpEG18hIWYw6QjMjUowJwgLiqtMuMNBkUj0DdYMjgHivJdm3FZXYbHutXfO/e9KaI1JE2rk6RgPiW+zcOuLO3/lLFRML8SHcYucgVueZv8GJgUgQ6aHI4jyjMkfKICSlOfoxC8lICMIcUxYSgzDFlIFoIMwwUogmwgQjgVgg1DE+SFfy7jd9F2txnvCV5mXgw7dH8kFmgbkGQbR3sUWYE+A4FrKYvOK3yET+3pph3KeMg1jIKLCVCaKdCQlmE7iJhbj2Y8BE8qHnFHBnCsurH5gBeoBL4FrSmW+OSGK0xH8qSEukIXMTVUaqjBiNQPVoGQ1scNi2ycgvTfaxM/Rb2jIAAAAASUVORK5CYII=",Hr=N({name:"add-courseware-protocol",emits:["close","confirm"],setup(s,{emit:i}){const t=J({status:!1,protocolShow:!1});return()=>e("div",{class:ne.protocolModal},[e("img",{src:Jr,class:ne.dingPng,alt:""},null),t.protocolShow?e("div",{class:ne.protocolSection},[e("img",{src:du,class:ne.downMoveBg,alt:""},null),e("img",{src:pu,class:ne.closeAble,onClick:()=>{t.protocolShow=!1},alt:""},null),e("h2",null,[F("《音乐数字课堂课件与作业公开服务协议》")]),e(Ee,{style:{maxHeight:"45vh"}},{default:()=>[e("div",{class:ne.protocolContent},[e("p",{style:{paddingTop:"0"}},[F("欢迎使用音乐数字课堂!")]),e("p",null,[F("重要须知")]),F("武汉酷乐秀网络科技有限公司(以下统称“平台方”,或称“我们”),在此特别提醒,为使用音乐数字课堂(包括手机端、网页端等,以下称“软件”或“平台”)与相关信息化教育产品、内容及服务,您务必仔细阅读、充分理解并遵守《音乐数字课堂课件与作业公开服务协议》(以下简称“本协议”)中各项条款,包括免除或者限制责任的条款,并选择接受或不接受。本协议所述服务条款构成您(个人或者单位、组织、团体等)使用平台方提供的相关服务(以下简称“该服务”)的先决条件。若您不接受本协议中所述服务条款或其后对协议条款的修改,您应不使用或主动取消平台方提供的相关服务。 您自愿使用平台方提供的网络存储空间进行培训课件与作业及相关智力成果的上传及传播服务。如果您未满18周岁,请在法定监护人的陪同下阅读本协议。"),e("br",null,null),F("本协议是您(或称“用户”,指注册、登录、使用、浏览本服务的个人或组织)与平台方之间关于音乐数字课堂与相关信息化教育产品、内容及服务所订立的协议。"),e("br",null,null),e("p",null,[F("1 权利声明")]),F("音乐数字课堂由武汉酷乐秀网络科技有限公司(以下简称“酷乐秀”)独立开发,一切知识产权以及音乐数字课堂自有的所有信息内容包括但不限于:文字表述及其组合、图标、图饰、图像、图表、色彩、界面设计、版面框架、有关数据、附加程序、印刷材料或电子文档等均为酷乐秀所有,受著作权法和国际著作权条约以及其他知识产权法律法规的保护。"),e("br",null,null),F("音乐数字课堂由武汉酷乐秀网络科技有限公司(以下简称“音乐数字课堂”)提供运营管理服务。"),e("br",null,null),e("p",null,[F("2 服务说明 ")]),F("2.1 您可以通过音乐数字课堂主页【网址:https://kt.colexiu.com/classroom-admin/#/login】、手机客户端(及其他由音乐数字课堂运营的任何网站)、音乐数字课堂公众号,访问音乐数字课堂并使用相关服务。"),e("br",null,null),F("2.2 您知悉并同意,在注册成为音乐数字课堂用户或使用本服务时,需提供一些必要信息,包括但不限于手机号码、头像等。若国家法律法规或政策有特殊规定的,平台方会根据相关特殊规定要求您提供相关信息,如真实的身份信息等,若您提供的信息不完整,您将无法使用本服务或本服务中的相关功能,由此为您带来不便或损失的,平台方完全免责。如个人信息发生变更,您有权随时与平台方联系并要求修改相关个人信息。在您向平台方提出前述删除请求前,平台方可在本协议约定范围内合理利用相关个人信息。"),e("br",null,null),F("您应承诺合法使用平台方提供的服务,您使用该服务的行为应符合当地的法律法规及政策的要求,否则由此带来的责任由您自行承担。"),e("br",null,null),e("p",null,[F("3 权利授予 ")]),F("3.1 您理解并同意,您将课件与作业及相关智力成果上传至音乐数字课堂,即视为您授予了平台方无期限限制的、全球范围内的、不可撤销的信息网络传播权和其他形式的使用权。为了更好地对课件与作业进行宣传和推广,平台方可以将上述权利转让或者转授予给其关联公司或者合作伙伴,而无须征得您的同意。您如果不同意上述条款,请不要将作品上传至音乐数字课堂。"),e("br",null,null),F("3.2 平台方仅对您提交的资料和信息进行审核,并不对您的主体资质和上传的课件与作业内容的真实性、正确性、合法性承担任何责任或提供任何担保。"),e("br",null,null),F("3.3 如果任何第三方侵犯音乐数字课堂用户相关的权利,用户同意授权平台方或其指定的代理人代表平台方自身或用户对该第三方提出警告、投诉、发起行政执法、诉讼、进行上诉,或谈判和解,并且用户同意在平台方认为必要的情况下参与共同维权。"),e("br",null,null),e("p",null,[F("4 权利限制 ")]),F("4.1 平台方通过音乐数字课堂所提供的服务,均限于在音乐数字课堂平台内使用,禁止任何以恶意破解等非法手段将音乐数字课堂内的服务与音乐数字课堂平台分离的行为,否则,由此引起的一切后果由行为人负责,平台方将保留依法追究行为人法律责任的权利。"),e("br",null,null),F("4.2 未经平台方书面同意,您不得将已上传至音乐数字课堂平台上的培训课件与作业的任何资料文件直接、间接或经修改后提供给任何第三方。"),e("br",null,null),F("4.3 保留权利:本协议未明示许可的其他一切权利仍归平台方所有,您使用其他权利时必须获得平台方的书面同意。"),e("br",null,null),F("4.4 除本协议有明确规定外,本协议并未对平台方其他服务规定相关的服务条款,对于这些服务可能有单独的服务条款加以规范,请您在使用有关服务时另行了解与确认。如您使用该服务,视为对相关服务条款的接受。"),e("br",null,null),e("p",null,[F("5 用户使用须知")]),F("5.1 您承诺您具有履行本协议义务的权利能力及资格,因您自身职务或职业要求导致本协议无法履行或合同目的无法实现的,您应当及时通知平台方,并共同协商解决办法,以保证将事件影响性降到最低。"),e("br",null,null),F("5.2 您保证,您上传的课件与作业所涉的创意、脚本、资料、课件与作业等全部文件资料不违反国家相关法律法规、不侵犯第三方权益,且平台方按照约定行使授权内容的相关权利不会侵犯任何第三方的合法权益,也无须另行取得任何第三方的同意,更无须对任何第三方承担责任。如您违反前述保证,平台方有权采取包括但不限于删除相关课件与作业内容、中止或终止向您提供服务等措施。如您上传的课件与作业侵犯了第三方的合法权利,第三方向平台方提出举报,平台方有权删除相关的内容。当权利人发现音乐数字课堂上相关课件与作业侵犯其合法权益时,权利人可向平台方举报,平台方将根据中国法律法规和规范性文件的规定采取移除相关内容等合理措施。"),e("br",null,null),F("5.3 您保证上传的课件与作业中不含以下内容:"),e("br",null,null),e("div",{class:ne.child},[F("1. 反对宪法所确定的基本原则;"),e("br",null,null),F("2. 危害国家安全,泄漏国家秘密,颠覆国家政权,破坏国家统一;"),e("br",null,null),F("3. 损害国家荣誉和利益; "),e("br",null,null),F("4. 煽动民族仇恨、民族歧视,破坏民族团结;"),e("br",null,null),F("5. 破坏国家宗教政策,宣扬邪教和封建迷信;"),e("br",null,null),F("6. 散布谣言,扰乱社会秩序,破坏社会稳定;"),e("br",null,null),F("7. 散布淫秽、色情、赌博、暴力、凶杀、恐怖或教唆犯罪;"),e("br",null,null),F("8. 侮辱或者诽谤他人,侵害他人合法权益;"),e("br",null,null),F("9. 含有法律、行政法规严令禁止的其他内容。"),e("br",null,null)]),F("5.4 上述承诺与保证不受本协议期限的限制,您违反上述任一的保证与承诺的,平台方有权即时解除本协议并要求您承担由此产生的全部责任。"),e("br",null,null),e("p",null,[F("6 隐私政策 ")]),F("6.1 目的 为改善平台方服务,提升用户体验,在您使用音乐数字课堂时,平台方可能对您使用音乐数字课堂的使用信息进行统计与分析,例如:平台方会根据您上传并通过审核的某单元的课件与作业数量显示您在该单元全国范围内的排名,同时显示您的头像、昵称信息及通过审核的课件与作业数量。平台方将采取必要的保护措施,以保护您的相关信息。您可以选择不提供或只提供部分信息,但平台方可能将无法为您提供完整的产品功能或服务。"),e("p",null,[F("7 免责与责任限制")]),F("7.1 音乐数字课堂不含有任何旨在破坏您计算机数据和获取您隐私信息的恶意代码。音乐数字课堂经过详细的测试,但不能保证与所有的软硬件系统完全兼容,不能保证音乐数字课堂完全没有错误。如果出现不兼容及软件错误的情况,您可拨打技术支持电话将情况报告平台方,以获得技术支持。如果无法解决兼容性问题,您可以删除音乐数字课堂。由此给您造成损失的,您同意平台方免责。"),e("br",null,null),F("7.2 在适用法律允许的最大范围内,对因使用或不能使用音乐数字课堂所产生的损害及风险,包括但不限于直接或间接的个人损害、商业赢利的丧失、贸易中断、商业信息的丢失或任何其它经济损失,平台方不承担任何责任。"),e("br",null,null),F("7.3 对于因电信系统或互联网网络故障、计算机故障或病毒、信息损坏或丢失、计算机系统问题或其它任何不可抗力原因而产生损失,平台方不承担任何责任。"),e("br",null,null),F("7.4 您知悉并同意,为实现部分软件功能,平台方有权将您在使用该服务过程当中产生的部分或全部数据信息,上传、保存至第三方云服务存储器,并根据您发出的功能指令需求,自行调取相关数据信息。因第三方云服务发生中断等功能障碍事故导致平台方无法正常提供服务的,平台方会尽其商业上的合理努力负责协调解决,但由此给您造成损失的,您同意平台方免责。"),e("br",null,null),F("7.5 您违反本协议规定,对平台方造成损害的。平台方有权采取包括但不限于中断使用许可、停止提供服务、限制使用、法律追究等措施。"),e("br",null,null),e("p",null,[F("8 法律及争议解决")]),F("8.1 本协议适用中华人民共和国法律。"),e("br",null,null),F(" 8.2 因本协议引起的或与本协议有关的任何争议,各方应友好协商解决;协商不成的,任何一方均可将有关争议提交至平台方所在地有管辖权的人民法院管辖。"),e("br",null,null),e("p",null,[F("9 其他条款")]),F("9.1 如果本协议中的任何条款无论因何种原因完全或部分无效或不具有执行力,或违反任何适用的法律,则该条款被视为删除,但本协议的其余条款仍有效并且具有约束力。"),e("br",null,null),F("9.2 如果本协议中的任何条款与音乐数字课堂中某具体软件的协议条款相矛盾的,以该具体软件的协议条款为准。"),e("br",null,null),F("平台方有权随时根据有关法律、法规的变化以及公司经营状况和经营策略的调整等修改本协议。修改后的协议会在平台方指定网站上公布,并随附于新版音乐数字课堂。当发生有关争议时,以最新的协议文本为准。如果不同意改动的内容,您可以自行删除音乐数字课堂。如果您继续使用音乐数字课堂,则视为您接受本协议的变动。"),e("br",null,null),F("至此,用户已经详细阅读并已理解本协议,并同意严格遵守各条款和条件。如果用户对本《协议》有任何疑问或者希望获得与本软件相关的任何信息,请按下列地址和方式与酷乐秀联系,酷乐秀将在15日内答复用户。"),e("br",null,null),F("技术支持方:武汉酷乐秀网络科技有限公司"),e("br",null,null),F("运营方:武汉酷乐秀网络科技有限公司")])]}),e(ae,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(G,{class:ne.cancelBtn,round:!0,type:"default",onClick:()=>{t.protocolShow=!1}},{default:()=>[F("取消授权")]}),e(G,{class:ne.submitAppBtn,bordered:!1,round:!0,type:"primary",onClick:()=>{t.protocolShow=!1,t.status=!0}},{default:()=>[F("同意授权")]})]})]):e("div",{class:ne.downMove},[e("img",{src:du,class:ne.downMoveBg,alt:""},null),e("img",{src:pu,class:ne.closeAble,onClick:()=>{i("close")},alt:""},null),e("h2",null,[F("课件公开须知")]),e("p",null,[F("公开课件后,您课件中的资源及作业都可被其他教师查看、使用,具体信息请查看服务协议")]),e("div",{class:ne.protocolGroup,onClick:()=>{t.status=!t.status}},[e("i",{class:[ne.checkbox,t.status&&ne.checkboxActive]},null),e("p",null,[F("我已阅读并同意"),e("span",{onClick:p=>{p.stopPropagation(),t.protocolShow=!0}},[F("《音乐数字课堂课件与作业公开服务协议》")])])]),e(ae,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(G,{class:ne.cancelBtn,round:!0,type:"default",onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{class:ne.submitAppBtn,bordered:!1,round:!0,type:"primary",disabled:!t.status,onClick:()=>{i("confirm")}},{default:()=>[F("确定")]})]})])])}}),Qr=N({name:"courseware-modal",props:{groupItem:{type:Object,default:()=>({})}},emits:["change"],setup(s,{emit:i}){const t=Pt(),p=be(),n=pt(),u=J({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,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}),a=R(),o=R(!1),d=async()=>{u.loadingStatus=!0;try{if(!s.groupItem.id)return u.loadingStatus=!1;const{data:C}=await Xu(s.groupItem.id),E=C.chapterKnowledgeList||[];u.name=C.name,u.subjects=C.instrumentIds?C.instrumentIds.split(",").map(y=>y):[],u.openFlag=C.openFlag,u.openFlagEnable=C.openFlagEnable,u.autoPlay=C.autoPlay;const v=[];E.forEach(y=>{const W=y.chapterKnowledgeMaterialList,oe=[];Array.isArray(W)&&W.length>0&&W.forEach(O=>{oe.push({id:O.id,materialId:O.bizId,coverImg:O.bizInfo.coverImg,type:O.type,title:O.bizInfo.name,dataJson:O.dataJson,isSelected:O.source==="PLATFORM",content:O.bizInfo.content,removeFlag:O.removeFlag})}),v.push({name:y.name,id:y.id,list:[...oe]})}),u.coursewareList=v,u.baseCoursewareList=kt(v),u.baseInfo=kt({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(C){console.log(C)}u.loadingStatus=!1},r=(C,E)=>{const v=u.coursewareList[E];v&&(v.list.splice(C,1),L.emit("onCoursewareUpdate"))},g=(C,E,v)=>{const y=C.getBoundingClientRect();return E>=y.left&&E<=y.right&&v>=y.top&&v<=y.bottom},l=(C,E)=>{const v=C.getBoundingClientRect(),y=v.left+v.width/2;return E<y},c=(C,E,v)=>{if(C==="up"){if(E===0)return;const y=u.coursewareList[E-1];u.coursewareList[E-1]=u.coursewareList[E],u.coursewareList[E]=y}else if(C==="down"){if(E>=u.coursewareList.length-1)return;const y=u.coursewareList[E+1];u.coursewareList[E+1]=u.coursewareList[E],u.coursewareList[E]=y}else C==="remove"&&(u.messageOperation={visiable:!0,type:"delete",contentDirection:"left",title:"删除知识点",loading:!1,content:"请确认是否删除".concat(v.name?"【"+v.name+"】":"该知识点",",删除知识点后将同步删除知识点下的资源"),cancelButtonText:"取消",confirmButtonText:"确认",index:E})},_=async()=>{const C=u.messageOperation.type;if(C==="delete")u.coursewareList.splice(u.messageOperation.index,1),L.emit("onCoursewareUpdate");else if(C==="addItem")u.coursewareList.push({name:"",list:[]}),b(u.addCoursewareItem);else if(C==="save"||C==="pageLive"){if(u.messageOperation.loading)return;if(!u.name){n.error("请输入课件标题"),u.messageOperation.visiable=!1;return}if(u.subjects.length<=0){n.error("请选择声部"),u.messageOperation.visiable=!1;return}if(u.coursewareList.length<=0){n.error("未配置知识点"),u.messageOperation.visiable=!1;return}let E=!1;for(const y of u.coursewareList){if(!y.name){n.error("请输入知识点名称"),u.messageOperation.visiable=!1;return}Array.isArray(y.list)&&y.list.length<=0&&(E=!0)}if(E){n.error("请至少添加一个资源"),u.messageOperation.visiable=!1;return}u.messageOperation.loading=!0;const v=await S();u.messageOperation.loading=!1,v&&(C==="pageLive"&&typeof u.messageCallBack=="function"&&u.messageCallBack(),i("change",{status:!1,addParam:{isAdd:!s.groupItem.id,name:u.name,id:u.createId}}),L.emit("teacher-slideshow",!1))}u.messageOperation.visiable=!1};let h=null;const b=async(C,E,v=!1)=>{clearTimeout(h);const y=[];if(!v)try{const{data:W}=await es(C.materialId);Array.isArray(W.materialRefs)&&W.materialRefs.forEach(oe=>{if(oe.refType==="STRONG"){const O=oe.relateMaterialInfo||{};y.push({content:O.content,coverImg:O.coverImg,isSelected:O.sourceFrom==="PLATFORM",materialId:O.id,title:O.name,type:O.type})}})}catch(W){}je(()=>{if(E){const oe=document.querySelectorAll(".row-group")[C.index].querySelectorAll(".row-nav");let O=!1;oe.forEach((Ae,ve)=>{if(g(Ae,E.x,E.y)){const De=u.coursewareList[C.index||0].list||[];l(Ae,E.x)?(y.forEach(Re=>{De.splice(ve,0,Re)}),De.splice(ve,0,C)):(De.splice(ve+1,0,C),y.forEach(Re=>{De.splice(ve+1,0,Re)})),O=!0,u.coursewareList[C.index||0].list=De}}),O||(u.coursewareList[C.index||0].list.push(C),y.forEach(Ae=>{u.coursewareList[C.index||0].list.push(Ae)}))}else u.coursewareList[C.index||0].list.push(C),y.forEach(W=>{u.coursewareList[C.index||0].list.push(W)}),n.success("添加成功");h=setTimeout(()=>{L.emit("onCoursewareUpdate")},100)})},B=async()=>{try{if(a.value.validate(),L.emit("checkCoursewareForm"),!u.name){n.error("请输入课件标题");return}if(u.subjects.length<=0){n.error("请选择声部");return}if(u.coursewareList.length<=0){n.error("请至少添加一个知识点");return}let C=!1;for(const v of u.coursewareList){if(!v.name){n.error("请输入知识点名称");return}Array.isArray(v.list)&&v.list.length<=0&&(C=!0)}if(C){n.error("请至少添加一个资源");return}if(u.openFlag&&!t.getReadCoursewareOpenAgreement){o.value=!0;return}await S()&&(i("change",{status:!1,addParam:{isAdd:!s.groupItem.id,name:u.name,id:u.createId}}),L.emit("teacher-slideshow",!1))}catch(C){}},S=async()=>{var C;try{const E={name:u.name,instrumentIds:u.subjects.join(","),openFlag:u.openFlag,autoPlay:u.autoPlay,coursewareDetailKnowledgeId:p.getSelectKey,chapterKnowledgeList:[]};if(u.coursewareList.forEach(v=>{let y=[];Array.isArray(v.list)&&v.list.length>0&&(y=v.list.map(W=>({bizId:W.materialId,type:W.type,dataJson:["IMG","VIDEO","SONG","MUSIC","PPT"].includes(W.type)?"":JSON.stringify({setting:W.dataJson,coverImg:W.coverImg,bizId:W.bizId,content:W.content,name:W.title})}))),E.chapterKnowledgeList.push({name:v.name,chapterKnowledgeMaterialList:y})}),(C=s.groupItem)!=null&&C.id)await ts({id:s.groupItem.id,...E}),n.success("保存成功");else{const{data:v}=await us(E);u.createId=v.id}return!0}catch(E){return!1}},I=(C,E)=>{u.coursewareList.length<=0?(u.addCoursewareItem=C,u.messageOperation={visiable:!0,type:"addItem",contentDirection:"center",title:"添加到知识点",loading:!1,content:"当前课件暂无知识点,请添加知识点后操作",cancelButtonText:"取消",confirmButtonText:"添加知识点",index:0}):u.coursewareList.length>1&&C.addType!=="drag"?(u.addCoursewareVisiable=!0,u.addCoursewareItem=C):b(C,E)},m=C=>{const E=JSON.stringify(u.coursewareList),v=JSON.stringify(u.baseCoursewareList),y=JSON.stringify({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),W=JSON.stringify(u.baseInfo);E===v&&y===W?typeof C=="function"&&(C(),i("change",{status:!1,addParam:{isAdd:!1,name:u.name,id:u.createId}}),L.emit("teacher-slideshow",!1)):(u.messageCallBack=C,u.messageOperation={visiable:!0,type:"pageLive",loading:!1,contentDirection:"center",title:"保存课件",content:"当前课件暂未保存,是否保存?",cancelButtonText:"不保存",confirmButtonText:"保存",index:0})},A=C=>{u.subjects=C.subjects,u.openFlagEnable=C.openFlagEnable,u.autoPlay=C.autoPlay,u.name=C.name,u.openFlag=C.openFlag;const E=JSON.stringify(u.coursewareList),v=JSON.stringify(u.baseCoursewareList),y=JSON.stringify({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),W=JSON.stringify(u.baseInfo);E===v&&y===W?(i("change",{status:!1,addParam:{isAdd:!1,name:u.name,id:u.createId}}),L.emit("teacher-slideshow",!1)):u.messageOperation={visiable:!0,type:"save",loading:!1,contentDirection:"center",title:"保存课件",content:"当前课件暂未保存,是否保存?",cancelButtonText:"不保存",confirmButtonText:"保存",index:0}},k=C=>{u.subjects=C.subjects,u.openFlagEnable=C.openFlagEnable,u.autoPlay=C.autoPlay,u.name=C.name,u.openFlag=C.openFlag,B()};return X(async()=>{var C;(C=s.groupItem)!=null&&C.id&&(u.coursewareList=[],u.baseCoursewareList=[]),await d(),L.on("onPrepareAddItem",I),L.on("pageBeforeLeave",m),L.on("coursewareClosed",A),L.on("coursewareSave",k)}),Se(()=>{L.off("onPrepareAddItem",I),L.off("pageBeforeLeave",m),L.off("coursewareClosed",A),L.off("coursewareSave",k)}),Ve(()=>u.coursewareList,()=>{p.setCoursewareList(u.coursewareList)},{deep:!0}),()=>e(Vs,{class:Z.coursewareModal,model:u,ref:a},{default:()=>[e(Ee,js({class:[Z.listContainer,"listContainerWrap"]},{id:"lessonsIn-1"}),{default:()=>[e(me,{show:u.loadingStatus},{default:()=>[e("div",{class:[Z.listSection,"listSectionWrap"],id:"listSectionWrap"},[u.coursewareList.map((C,E)=>e("div",{class:[Z.listItems,"row-group"],onDragenter:v=>{v.preventDefault()},onDragover:v=>{v.preventDefault()},onDrop:v=>{let y=v.dataTransfer.getData("text");y=y&&v.dataTransfer.effectAllowed==="all"?JSON.parse(y):{},y.id&&L.emit("onPrepareAddItem",{materialId:y.id,coverImg:y.coverImg,type:y.type,title:y.title,refFlag:y.refFlag,isCollect:y.isCollect,isSelected:y.isSelected,content:y.content,removeFlag:!1,index:E,addType:"drag"},{x:v.clientX,y:v.clientY})}},[e("div",{class:Z.knowledgePoint},[e(Rs,{class:Z.btnItem,label:"知识点名称",showFeedback:!1,requireMarkPlacement:"left",path:"coursewareList.".concat(E,".name"),rule:[{required:!0,trigger:["input","blur"]}]},{default:()=>[e(Xe,{placeholder:"未命名知识点",value:C.name,"onUpdate:value":v=>C.name=v,maxlength:15,clearable:!0},null)]})]),e(ae,{class:Z.operationGroup},{default:()=>[E>0&&e(_e,{showArrow:!1},{trigger:()=>e("i",{class:Z.iconCUp,onClick:()=>c("up",E)},null),default:()=>"上移知识点"}),E<u.coursewareList.length-1&&e(_e,{showArrow:!1},{trigger:()=>e("i",{class:Z.iconCDown,onClick:()=>c("down",E)},null),default:()=>"下移知识点"}),e(_e,{showArrow:!1},{trigger:()=>e("i",{class:Z.iconCRemove,onClick:()=>c("remove",E,C)},null),default:()=>"删除知识点"})]}),e(Ns,{modelValue:C.list,"onUpdate:modelValue":v=>C.list=v,itemKey:"id",group:"description",scroll:!0,animation:200,onDrag:v=>{const y=document.querySelector(".listContainerWrap .n-scrollbar-container"),W=150;v.clientY<W?y.scrollTop-=8:window.innerHeight-v.clientY<W&&(console.log("1111"),y.scrollTop+=8)},componentData:{draggable:"row-nav",itemKey:"id",tag:"div",animation:200,group:"description"},class:Z.list},{item:v=>{const y=v.element;return e("div",{"data-id":y.id,class:[Z.itemWrap,Z.itemBlock,"row-nav"]},[e("div",{class:Z.itemWrapBox},[e(Yu,{class:[Z.itemContent],isShowCollect:!1,offShelf:!!y.removeFlag,item:y,disabledMouseHover:!1,onClick:()=>{y.type!=="IMG"&&(u.show=!0,u.item=y)}},null),e("div",{class:Z.itemOperation},[e("img",{src:Ms,class:Z.iconDelete,onClick:W=>{W.stopPropagation(),r(v.index,E)}},null)])])])},footer:()=>e("div",{class:Z.itemWrap},[e("div",{class:Z.itemWrapBox},[e("div",{class:[Z.itemContent,Z.addMusicItem,"handle"],onClick:()=>{u.addOtherSource=!0,u.addOtherIndex=E}},[e("img",{src:en},null),e("p",{class:Z.addMusicName},[F("添加资源")])])])])})])),!u.loadingStatus&&e(G,{block:!0,type:"primary",secondary:!0,class:Z.addKnowledgePoint,onClick:()=>{u.coursewareList.push({name:"",list:[]})}},{default:()=>[e("i",{class:Z.iconCAdd},null),F("添加知识点")]})])]})]}),e(ft,{size:["INSTRUMENT","THEORY","MUSIC_WIKI","MUSICIAN","RHYTHM"].includes(u.item.type)?"large":"",show:u.show,"onUpdate:show":C=>u.show=C,item:u.item,isDownload:!1},null),e(ue,{maskClosable:se,show:u.addCoursewareVisiable,"onUpdate:show":C=>u.addCoursewareVisiable=C,preset:"card",class:["modalTitle",Z.addCourseware],title:"添加到知识点"},{default:()=>[e(an,{coursewareList:u.coursewareList,onClose:()=>u.addCoursewareVisiable=!1,onConfirm:C=>{Array.isArray(C)&&C.length>0?(C.forEach(E=>{b({...u.addCoursewareItem,index:E})}),u.addCoursewareVisiable=!1):n.error("请选择需要添加的知识点")}},null)]}),e(ue,{maskClosable:se,show:u.messageOperation.visiable,"onUpdate:show":C=>u.messageOperation.visiable=C,preset:"card",class:["modalTitle",Z.removeVisiable1],title:u.messageOperation.title},{default:()=>[e(Vt,{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")&&(i("change",{status:!1,addParam:{isAdd:!1,name:u.name,id:u.createId}}),L.emit("teacher-slideshow",!1),u.messageOperation.type==="pageLive"&&typeof u.messageCallBack=="function"&&u.messageCallBack())},onConfirm:()=>_()},null)]}),e(Su,{show:u.previewModal,"onUpdate:show":C=>u.previewModal=C,type:"attend",params:u.previewParams},null),e(ue,{maskClosable:se,show:u.addOtherSource,"onUpdate:show":C=>u.addOtherSource=C,preset:"card",class:["modalTitle background",Z.addOtherSource],title:"添加资源"},{default:()=>[e(Vr,{onClose:()=>u.addOtherSource=!1,onComfirm:C=>{Array.isArray(C)?(console.log(C,"item - item"),C.forEach(async E=>{await b({...E,index:u.addOtherIndex},null,!0)})):b({...C,index:u.addOtherIndex},null,!0)}},null)]}),e(ue,{maskClosable:se,show:o.value,"onUpdate:show":C=>o.value=C},{default:()=>[e(Hr,{onClose:()=>o.value=!1,onConfirm:async()=>{try{await S()&&(t.setReadCoursewareOpenAgreement(!0),i("change",{status:!1,addParam:{isAdd:!s.groupItem.id,name:u.name,id:u.createId}}),L.emit("teacher-slideshow",!1))}catch(C){}}},null)]})]})}}),$r="_coursewarePresetsContainer_j2u3u_1",Xr="_rightLineShow_j2u3u_5",Yr="_presetsRight_j2u3u_5",ei="_presetsLeft_j2u3u_35",ti="_presetsArrar_j2u3u_52",ui="_presetsArrarActive_j2u3u_75",si="_openLoading_j2u3u_78",ai="_coursewarePresets_j2u3u_1",oi="_btnSubjectList_j2u3u_85",ni="_addBtnIcon_j2u3u_88",li="_addBtn_j2u3u_88",ri="_title_j2u3u_119",ii="_titleLeft_j2u3u_132",ci="_icon_j2u3u_136",di="_iconWork_j2u3u_142",pi="_iconCourseware_j2u3u_146",gi="_line_j2u3u_150",mi="_more_j2u3u_155",fi="_iconP_j2u3u_167",Ci="_swipeControll_j2u3u_179",Fi="_leftIcon_j2u3u_182",hi="_disabled_j2u3u_190",Ei="_list_j2u3u_194",Ai="_listEmpty_j2u3u_202",wi="_listSame_j2u3u_206",vi="_itemWrap_j2u3u_210",Bi="_itemWrapBox_j2u3u_213",yi="_attendClassModal1_j2u3u_219",bi="_removeVisiable1_j2u3u_224",_i="_studentRemove_j2u3u_230",Si="_btnGroupModal_j2u3u_241",Ii="_attendClassModal_j2u3u_219",Di="_workVisiable_j2u3u_253",ki="_workContainer_j2u3u_259",Li="_workTrain_j2u3u_263",xi="_resourceMain_j2u3u_276",Ti="_popSelect_j2u3u_282",Vi="_textBtn_j2u3u_292",ji="_iconArrow_j2u3u_299",Ri="_textBtnActive_j2u3u_307",U={coursewarePresetsContainer:$r,rightLineShow:Xr,presetsRight:Yr,presetsLeft:ei,presetsArrar:ti,presetsArrarActive:ui,openLoading:si,coursewarePresets:ai,btnSubjectList:oi,addBtnIcon:ni,addBtn:li,title:ri,titleLeft:ii,icon:ci,iconWork:di,iconCourseware:pi,line:gi,more:mi,iconP:fi,swipeControll:Ci,leftIcon:Fi,disabled:hi,list:Ei,listEmpty:Ai,listSame:wi,itemWrap:vi,itemWrapBox:Bi,attendClassModal1:yi,removeVisiable1:bi,studentRemove:_i,btnGroupModal:Si,attendClassModal:Ii,workVisiable:Di,workContainer:ki,workTrain:Li,resourceMain:xi,popSelect:Ti,textBtn:Vi,iconArrow:ji,textBtnActive:Ri},Pi="_relatedClass_c6wpx_1",Mi="_attendClassSearch_c6wpx_4",Ni="_iconSearch_c6wpx_20",Wi="_classList_c6wpx_24",Oi="_listSection_c6wpx_28",Gi="_emptySection_c6wpx_32",Ui="_list_c6wpx_28",Ki="_listSame_c6wpx_45",zi="_itemWrap_c6wpx_49",qi="_itemWrapBox_c6wpx_52",ye={relatedClass:Pi,attendClassSearch:Mi,iconSearch:Ni,classList:Wi,listSection:Oi,emptySection:Gi,list:Ui,listSame:Ki,itemWrap:zi,itemWrapBox:qi},Zi=N({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(s,{emit:i}){const t=J({loading:!1,finshed:!1,pagination:{page:1,rows:20},tableList:[],searchGroup:{instrumentId:s.instrumentId?s.instrumentId:"",keyword:null}}),p=async()=>{try{t.pagination.page===1&&(t.loading=!0);const{data:u}=await fu({coursewareDetailKnowledgeId:s.coursewareDetailKnowledgeId,...t.searchGroup,...t.pagination}),a=u.rows||[],o=[];a.forEach(d=>{var g;const r=(g=d.chapterKnowledgeList[0])==null?void 0:g.chapterKnowledgeMaterialList[0];o.push({id:d.id,openFlag:d.openFlag,openFlagEnable:d.openFlagEnable,instrumentNames:d.instrumentNames,fromChapterLessonCoursewareId:d.fromChapterLessonCoursewareId,name:d.name,coverImg:r==null?void 0:r.bizInfo.coverImg,type:r==null?void 0:r.bizInfo.type,isAdd:d.addFlag,isNotWork:d.lessonPreTrainingNum<=0})}),t.loading=!1,t.tableList.push(...o),t.finshed=u.pages<=u.current}catch(u){t.loading=!1}},n=mt(()=>{t.pagination.page=1,t.tableList=[],p()},500);return X(()=>{p(),L.on("openCoursewareChanged",n)}),Se(()=>{L.off("openCoursewareChanged",n)}),()=>e("div",{class:ye.relatedClass},[e("div",{class:ye.attendClassSearch},[e(Mt,{placeholder:"全部乐器",clearable:!0,options:[{name:"全部乐器",id:""},...s.instrumentList],value:t.searchGroup.instrumentId,"onUpdate:value":[u=>t.searchGroup.instrumentId=u,()=>n()],checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",filterable:!0,style:{width:"200px"}},null),e(Xe,{placeholder:"请输入课件标题关键词",clearable:!0,value:t.searchGroup.keyword,"onUpdate:value":u=>t.searchGroup.keyword=u,onKeyup:u=>{u.code==="Enter"&&n()},onClear:()=>n()},{prefix:()=>e("span",{class:"icon-search-input",style:{cursor:"pointer"},onClick:()=>n()},null)})]),e(me,{show:t.loading,size:"small"},{default:()=>[e(Ee,{class:ye.classList,style:{"max-height":"60vh"},onScroll:u=>{var r,g,l;const a=(r=u.target)==null?void 0:r.clientHeight,o=(g=u.target)==null?void 0:g.scrollTop,d=(l=u.target)==null?void 0:l.scrollHeight;a+o+20>=d&&!t.finshed&&!t.loading&&n()}},{default:()=>[e("div",{style:{"min-height":"60vh)"},class:[ye.listSection,!t.loading&&t.tableList.length<=0?ye.emptySection:""]},[t.tableList.length>0&&e("div",{class:[ye.list]},[t.tableList.map(u=>e("div",{class:[ye.itemWrap,ye.itemBlock,"row-nav"]},[e("div",{class:ye.itemWrapBox},[e(bu,{isHoverShowAdd:!1,isShowOpenFlag:!1,isShowAdd:!0,item:u,background:"#fff",onAdd:()=>{i("add",u)},onLook:()=>i("click",u)},null)])]))]),!t.loading&&t.tableList.length<=0&&e(Ce,null,null)])]})]})])}}),Ji="_related_93qg8_1",Hi="_iconScreen_93qg8_40",Qi="_homerowkTabs_93qg8_51",rt={related:Ji,iconScreen:Hi,homerowkTabs:Qi},$i="_searchGroup_5ue74_1",Xi="_searchSelect_5ue74_4",Yi="_inputSearch_5ue74_18",ec="_searchBtn_5ue74_22",tc="_btnType_5ue74_28",gu={searchGroup:$i,searchSelect:Xi,inputSearch:Yi,searchBtn:ec,btnType:tc},uc=N({name:"resource-search-group",emits:["search"],setup(s,{emit:i}){$e();const t=J({keyword:""}),p=()=>{i("search",t)},n=mt(()=>p(),500);return()=>e(fe,null,[e("div",{class:gu.searchGroup},[e(Xe,{type:"text",placeholder:"请输入课件标题关键词",clearable:!0,value:t.keyword,"onUpdate:value":u=>t.keyword=u,class:gu.inputSearch,onKeyup:u=>{u.code==="Enter"&&n()},onClear:()=>{t.keyword="",n()}},{prefix:()=>e("span",{class:"icon-search-input",onClick:()=>n()},null)})])])}}),sc="_listContainer_13l6v_1",ac="_listNoMusic_13l6v_5",oc="_listSection_13l6v_8",nc="_emptySection_13l6v_14",lc="_list_13l6v_1",rc="_trainEditModal_13l6v_28",ic="_itemModal_13l6v_31",cc="_itemCover_13l6v_36",dc="_iconLook_13l6v_67",pc="_iconAdd_13l6v_68",gc="_itemContent_13l6v_94",mc="_itemTitle_13l6v_98",fc="_itemSubject_13l6v_108",Cc="_addCourseBtn_13l6v_118",ge={listContainer:sc,listNoMusic:ac,listSection:oc,emptySection:nc,list:lc,trainEditModal:rc,itemModal:ic,itemCover:cc,function:"_function_13l6v_53",iconLook:dc,iconAdd:pc,itemContent:gc,itemTitle:mc,itemSubject:fc,addCourseBtn:Cc},Fc=N({name:"item-modal",props:{item:{type:Object,default:()=>({})}},emits:["look","add"],setup(s,{emit:i}){return()=>e("div",{class:ge.itemModal},[e("div",{class:ge.itemCover},[e(ce,{src:s.item.coverImg,objectFit:"cover",previewDisabled:!0},null),e("div",{class:ge.function},[e(_e,{showArrow:!1},{trigger:()=>e("i",{class:ge.iconLook,onClick:()=>i("look")},null),default:()=>"预览课件"})])]),e("div",{class:ge.itemContent},[e("p",{class:ge.itemTitle,onClick:()=>i("look")},[e(xt,{text:s.item.name},null)]),e("div",{class:ge.addCourseBtn,onClick:()=>i("add")},[F("添加课件")])])])}}),hc=N({name:"share-resources",emits:["look","add"],setup(s,{emit:i}){const t=be(),p=J({loading:!1,finshed:!1,pagination:{page:1,rows:10},searchGroup:{keyword:""},tableList:[],editStatus:!1,editItem:{},show:!1,item:{}}),n=async()=>{try{if(!t.getSelectKey)return;p.pagination.page===1&&(p.loading=!0);const{data:d}=await fu({instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey,...p.searchGroup,...p.pagination});p.pagination.page===1&&p.tableList.length>0&&(p.tableList=[]);const r=d.rows||[],g=[];r.forEach(l=>{var _;const c=(_=l.chapterKnowledgeList[0])==null?void 0:_.chapterKnowledgeMaterialList[0];g.push({id:l.id,openFlag:l.openFlag,openFlagEnable:l.openFlagEnable,instrumentNames:l.instrumentNames,fromChapterLessonCoursewareId:l.fromChapterLessonCoursewareId,name:l.name,coverImg:c==null?void 0:c.bizInfo.coverImg,type:c==null?void 0:c.bizInfo.type,isAdd:l.addFlag})}),p.loading=!1,p.tableList.push(...g),p.finshed=d.pages<=d.current}catch(d){p.loading=!1}},u=async d=>{p.pagination.page=1,p.tableList=[],p.searchGroup=Object.assign(p.searchGroup,d),n()},a=mt(()=>{p.pagination.page=p.pagination.page+1,n()},500),o=()=>{u(p.searchGroup)};return X(()=>{n(),L.on("openCoursewareChanged",o)}),Se(()=>{L.off("openCoursewareChanged",o)}),()=>e("div",null,[e(uc,{onSearch:d=>u(d)},null),e(Ee,{class:[ge.listContainer,ge.listNoMusic],onScroll:d=>{var c,_,h;const r=(c=d.target)==null?void 0:c.clientHeight,g=(_=d.target)==null?void 0:_.scrollTop,l=(h=d.target)==null?void 0:h.scrollHeight;r+g+20>=l&&!p.finshed&&!p.loading&&a()}},{default:()=>[e(me,{show:p.loading,size:"small"},{default:()=>[e("div",{class:[ge.listSection,!p.loading&&p.tableList.length<=0?ge.emptySection:""]},[p.tableList.length>0&&e("div",{class:ge.list},[p.tableList.map(d=>e(Fc,{item:d,onAdd:()=>i("add",d),onLook:()=>i("look",d)},null))]),!p.loading&&p.tableList.length<=0&&e(Ce,null,null)])]})]})])}}),Ec=N({name:"related-modal",emits:["more","add","look"],setup(s,{emit:i}){return()=>e("div",{class:rt.related},[e(Ke,{animated:!0,paneClass:rt.paneTitle,paneWrapperClass:rt.paneWrapperContainer,justifyContent:"center"},{suffix:()=>e("div",{class:rt.iconScreen,onClick:()=>{i("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(fe,null,[e(ze,{name:"myMusic",tab:"相关课件"},{default:()=>[e(hc,{onAdd:t=>i("add",t),onLook:t=>i("look",t)},null)]})])})])}}),Ac=N({name:"courseware-presets",props:{addParam:{type:Object,default:()=>({})}},emits:["change"],setup(s,{emit:i}){const t=be(),p=pt(),n=Au(),u=Ue(),a=localStorage.getItem("prepareLessonSubjectId"),o=J({leftWidth:"100%",rightWidth:"0",messageLoading:!1,instrumentId:n.query.instrumentId?Number(n.query.instrumentId):a?Number(a):"",courseScheduleSubjectId:n.query.courseScheduleSubjectId,classGroupId:n.query.classGroupId,preStudentNum:n.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:{},previewModal:!1,previewParams:{type:"",courseId:"",instrumentId:"",detailId:""},workVisiable:!1,wikiCategoryIdChild:null}),d=async()=>{o.loading=!0;try{if(!t.getSelectKey)return o.loading=!1;const{data:m}=await ss({instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey});if(!Array.isArray(m))return;const A=[];m.forEach(k=>{var E,v,y;const C=(E=k.chapterKnowledgeList[0])==null?void 0:E.chapterKnowledgeMaterialList;A.push({id:k.id,lessonPreTrainingId:k.lessonPreTrainingId,openFlag:k.openFlag,openFlagEnable:k.openFlagEnable,instrumentNames:k.instrumentNames,fromChapterLessonCoursewareId:k.fromChapterLessonCoursewareId,name:k.name,coverImg:C&&((v=C[0])==null?void 0:v.bizInfo.coverImg),type:C&&((y=C[0])==null?void 0:y.bizInfo.type),isNotWork:k.lessonPreTrainingNum<=0})}),o.tableList=A}catch(m){}o.loading=!1};let r=null;Ve(()=>[t.getSelectKey,t.getInstrumentId],async()=>{clearTimeout(r),r=setTimeout(async()=>{var m;t.getInstrumentId?l():g(),L.emit("openCoursewareChanged"),await d(),(m=c.value)==null||m.syncBarPosition()},100)}),Ve(()=>t.getInstrumentList,()=>{g()});const g=()=>{var A;const m=t.getSingleInstrumentList;if(m.length>0){if(sessionStorage.getItem("prepareLessonCourseWareSubjectIsNull")==="true"){t.setInstrumentId("");return}const C=localStorage.getItem("prepareLessonSubjectId");let E=null,v=-1;o.courseScheduleSubjectId&&(v=m.findIndex(y=>y.id==o.courseScheduleSubjectId),v>=0&&(E=Number(o.courseScheduleSubjectId))),o.instrumentId&&!E&&(v=m.findIndex(y=>y.id==o.instrumentId),v>=0&&(E=Number(o.instrumentId))),C&&!E&&(v=m.findIndex(y=>y.id==C),v>=0&&(E=Number(C))),E&&v>=0&&t.setSubjectId(E),localStorage.setItem("prepareLessonSubjectId",t.getInstrumentId),(A=c.value)==null||A.syncBarPosition()}},l=()=>{let m="";t.getInstrumentList.forEach(A=>{Array.isArray(A.instruments)&&A.instruments.forEach(k=>{k.id===t.getInstrumentId&&(m=k.id)})}),m&&(o.wikiCategoryIdChild=m)},c=R();X(async()=>{jt(document.querySelector("#presetsLeftRef"),m=>{const A=m[0],{width:k}=A.contentRect;o.leftWidth=k+"px"}),jt(document.querySelector("#presetsRightRef"),m=>{const A=m[0],{width:k}=A.contentRect;o.rightWidth=k+"px"}),t.setClassGroupId(n.query.classGroupId),t.getInstrumentId?l():g(),await d(),s.addParam.isAdd&&(o.addVisiable=!0)});const _=async()=>{o.messageLoading=!0;try{await as({id:o.selectItem.id}),p.success("删除成功"),d(),L.emit("openCoursewareChanged"),o.preRemoveVisiable=!1}catch(m){}setTimeout(()=>{o.messageLoading=!1},100)},h=async m=>{if(!o.messageLoading){o.messageLoading=!0;try{await os({id:m.id}),p.success("添加成功"),d(),L.emit("openCoursewareChanged")}catch(A){}setTimeout(()=>{o.messageLoading=!1},100)}},b=m=>{if(window.matchMedia("(display-mode: standalone)").matches)bt.application=window.matchMedia("(display-mode: standalone)").matches,o.previewModal=!0,su(),o.previewParams={type:"preview",courseId:m,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,lessonCourseId:t.getBaseCourseware.id};else{const{href:A}=u.resolve({path:"/attend-class",query:{type:"preview",courseId:m,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,lessonCourseId:t.getBaseCourseware.id}});window.open(A,+new Date+"")}},B=async(m,A,k)=>{if(A){const C=await ns({lessonCoursewareKnowledgeDetailId:t.selectKey,classGroupId:A,useChapterLessonCoursewareId:m.id});if(window.matchMedia("(display-mode: standalone)").matches)bt.application=window.matchMedia("(display-mode: standalone)").matches,o.previewModal=!0,su(),o.previewParams={type:"class",classGroupId:A,courseId:m.id,instrumentId:k||n.query.instrumentId,detailId:t.getSelectKey,classId:C.data,lessonCourseId:t.getBaseCourseware.id,preStudentNum:o.preStudentNum};else{const{href:E}=u.resolve({path:"/attend-class",query:{type:"class",classGroupId:A,courseId:m.id,instrumentId:k||n.query.instrumentId,detailId:t.getSelectKey,classId:C.data,lessonCourseId:t.getBaseCourseware.id,preStudentNum:o.preStudentNum}});window.open(E,+new Date+"")}}else o.showAttendClass=!0,o.attendClassType="change",o.attendClassItem=m},S=m=>{const A={};return m==null||m.forEach(k=>{k.id===o.wikiCategoryIdChild&&(A.selected=!0,A.name=k.name,A.label=k.name)}),A},I=K(()=>{let m=t.getInstrumentId?t.getInstrumentId:"";return t.getFormatInstrumentList.forEach(A=>{Array.isArray(A.instruments)&&A.instruments.forEach(k=>{k.id===t.getInstrumentId&&(m=A.id+"")})}),m});return()=>e("div",{class:[U.coursewarePresetsContainer,o.openTableShow&&U.rightLineShow]},[e("div",{class:U.presetsLeft,id:"presetsLeftRef",style:{width:"calc(".concat(o.leftWidth," - ").concat(o.rightWidth,")")}},[e(Ke,{ref:c,defaultValue:"",paneClass:U.paneTitle,justifyContent:"start",paneWrapperClass:U.paneWrapperContainer,value:I.value,"onUpdate:value":m=>{t.getFormatInstrumentList.forEach(A=>{A.value.toString()===m.toString()&&(t.setInstrumentId(m),o.instrumentId=m,o.wikiCategoryIdChild=null)}),m||(t.setInstrumentId(m),o.instrumentId=m,o.wikiCategoryIdChild=null,sessionStorage.setItem("prepareLessonCourseWareSubjectIsNull",m?"false":"true"))}},{default:()=>[[{name:"全部乐器",id:"",label:"全部乐器",value:""},...t.getFormatInstrumentList].map((m,A)=>{var k;return e(ze,{name:"".concat(m.value),tab:m.label,disabled:((k=m.instruments)==null?void 0:k.length)>0,displayDirective:"if"},{tab:()=>{var C;return((C=m.instruments)==null?void 0:C.length)>0?e(Bu,{options:m.instruments,trigger:"hover",value:o.wikiCategoryIdChild,"onUpdate:value":[E=>o.wikiCategoryIdChild=E,E=>{t.setInstrumentId(E),o.instrumentId=E,E||sessionStorage.setItem("prepareLessonCourseWareSubjectIsNull",E?"false":"true")}],key:m.id,class:U.popSelect},{default:()=>[e("span",{class:[U.textBtn,S(m.instruments).selected&&U.textBtnActive]},[S(m.instruments).label||m.label,e("i",{class:U.iconArrow},null)])]}):m.label}})})],suffix:()=>e(G,{class:U.addBtn,type:"primary",bordered:!1,onClick:()=>{L.emit("teacher-slideshow",!0),i("change",{status:!0,type:"create"})}},{default:()=>[e(ce,{class:U.addBtnIcon,previewDisabled:!0,src:Xs},null),F("创建课件")]})}),e(me,{show:o.loading},{default:()=>[e(Ee,{class:U.coursewarePresets},{default:()=>[e("div",{style:{overflow:"hidden"}},[e("div",{class:[U.list,!o.loading&&o.tableList.length<=0&&U.listEmpty]},[o.tableList.map(m=>e("div",{class:[U.itemWrap,U.itemBlock,"row-nav"]},[e("div",{class:U.itemWrapBox},[e(bu,{operate:!0,isEditName:!0,item:m,onClick:()=>b(m.id),onEdit:()=>{L.emit("teacher-slideshow",!0),i("change",{status:!0,type:"update",groupItem:{id:m.id}})},onStartClass:()=>B(m,o.classGroupId),onDelete:()=>{o.selectItem=m,o.preRemoveVisiable=!0},onWork:()=>{o.workVisiable=!0,o.selectItem=m}},null)])])),!o.loading&&o.tableList.length<=0&&e(Ce,{class:U.empty1,description:"当前章节暂无课件,快点击右上角创建课件吧"},null)])])]})]})]),e("div",{class:U.presetsRight,id:"presetsRightRef"},[e(_e,{showArrow:!1,show:!1,animated:!1,duration:0,delay:0},{trigger:()=>e("div",{class:[U.presetsArrar,!o.openTableShow&&U.presetsArrarActive],onClick:()=>o.openTableShow=!o.openTableShow},[e(wu,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,[o.openTableShow?"收起":"展开"])}),e(Ec,{onMore:()=>o.showRelatedClass=!0,onAdd:m=>{h(m)},onLook:m=>{b(m.id)}},null)]),e(ue,{maskClosable:se,show:o.showRelatedClass,"onUpdate:show":m=>o.showRelatedClass=m,preset:"card",showIcon:!1,class:["modalTitle background",U.attendClassModal1],title:"相关课件",blockScroll:!1},{default:()=>[e(Zi,{tableList:o.tableList,instrumentList:t.getInstrumentList,instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey,onClose:()=>o.showRelatedClass=!1,onAdd:m=>h(m),onClick:m=>{b(m.id),o.showRelatedClass=!1}},null)]}),e(ue,{maskClosable:se,show:o.preRemoveVisiable,"onUpdate:show":m=>o.preRemoveVisiable=m,preset:"card",class:["modalTitle",U.removeVisiable1],title:"删除课件"},{default:()=>[e(Vt,{content:'<p style="text-align: left;">请确认是否删除【'.concat(o.selectItem.name,"】,删除后不可恢复</p>"),cancelButtonText:"取消",confirmButtonText:"确认",loading:o.messageLoading,onClose:()=>o.preRemoveVisiable=!1,onConfirm:()=>_()},null)]}),e(ue,{maskClosable:se,show:o.addVisiable,"onUpdate:show":m=>o.addVisiable=m,preset:"card",class:["modalTitle",U.removeVisiable1],title:"保存成功"},{default:()=>[e(Vt,{content:'<p style="text-align: left;">【'.concat(s.addParam.name,"】暂未设置课件作业,是否现在去设置课件作业</p>"),cancelButtonText:"稍后设置",confirmButtonText:"立即设置",onClose:()=>o.addVisiable=!1,onConfirm:()=>{o.addVisiable=!1,o.workVisiable=!0,o.selectItem={id:s.addParam.id,name:s.addParam.name}}},null)]}),e(Su,{show:o.previewModal,"onUpdate:show":m=>o.previewModal=m,type:"attend",params:o.previewParams},null),e(ue,{maskClosable:se,show:o.showAttendClass,"onUpdate:show":m=>o.showAttendClass=m,preset:"card",showIcon:!1,class:["modalTitle background",U.attendClassModal],title:"选择班级",blockScroll:!1},{default:()=>[e(Ys,{onClose:()=>o.showAttendClass=!1,type:o.attendClassType,onPreview:m=>{if(window.matchMedia("(display-mode: standalone)").matches)bt.application=window.matchMedia("(display-mode: standalone)").matches,o.previewModal=!0,o.previewParams={...m};else{const{href:A}=u.resolve({path:"/attend-class",query:{...m}});window.open(A,+new Date+"")}},onConfirm:async m=>{B(o.attendClassItem,m.classGroupId,m.instrumentId)}},null)]}),e(ue,{maskClosable:se,show:o.workVisiable,"onUpdate:show":m=>o.workVisiable=m,preset:"card",class:["modalTitle background",U.workVisiable],title:o.selectItem.lessonPreTrainingId?"编辑作业":"创建作业"},{default:()=>[e("div",{id:"model-homework-height",class:U.workContainer},[e("div",{class:U.workTrain},[e(Ws,{cardType:"prepare",lessonPreTraining:{title:o.selectItem.name+"-课后作业",chapterId:o.selectItem.id,id:o.selectItem.lessonPreTrainingId},onChange:m=>{o.workVisiable=m.status,d()}},null)]),e("div",{class:U.resourceMain},[e(_u,{cardType:"prepare"},null)])])]})])}}),wc="_headerTitle_1prp1_1",vc="_iconBook_1prp1_12",Bc="_formContainer_1prp1_29",yc="_btnSubjectList_1prp1_32",bc="_btnItem_1prp1_55",_c="_block_1prp1_61",Sc="_btnTitle_1prp1_65",Ic="_iconQuestion_1prp1_78",re={headerTitle:wc,iconBook:vc,formContainer:Bc,btnSubjectList:yc,btnItem:bc,block:_c,btnTitle:Sc,iconQuestion:Ic},Dc=N({name:"courseware-head",setup(s,{emit:i,expose:t}){const p=be(),n=R(["",""]),u=R([]),a=J({subjects:[],openFlagEnable:!0,autoPlay:!1,name:"",openFlag:!1}),o=c=>{const _=[];c.map(h=>{Array.isArray(h.instruments)&&h.instruments.forEach(b=>{_.push(b.value)})}),a.subjects=_},d=()=>a,r=c=>{a.subjects=c.subjects,a.openFlagEnable=c.openFlagEnable,a.autoPlay=c.autoPlay,a.name=c.name,a.openFlag=c.openFlag,l(c.subjects||[])},g=()=>{var c;n.value[0]=a.name?"":"error",n.value[1]=((c=a.subjects)==null?void 0:c.length)>0?"":"error"},l=c=>{c=c||[];const _=[];p.getInstrumentList.forEach(S=>{Array.isArray(S.instruments)&&S.instruments.forEach(I=>{_.push(I.id)})});const h=[...new Set([..._,...c])],b=[];$e().getSubjectList.forEach(S=>{const I=kt(S);I.enableFlag=!1,Array.isArray(I.instruments)&&I.instruments.forEach(m=>{m.enableFlag=!1,h.includes(m.id)&&(m.enableFlag=!0,I.enableFlag=!0)}),b.push(I)});const B=[];b.forEach(S=>{if(S.enableFlag){const{instruments:I,...m}=S;if(I&&I.length>0){const A=[];I==null||I.forEach(k=>{k.enableFlag&&A.push(k)}),A.length>0&&B.push({...m,instruments:A})}}}),u.value=B};return X(async()=>{await $e().getSubjects(),l(),L.on("updateCoursewareHeadInfo",r),L.on("checkCoursewareForm",g)}),t({getForms:d}),()=>e(fe,null,[e("div",{class:re.headerTitle},[e("i",{class:re.iconBook},null),e("span",null,[p.getSelectName])]),e("div",{class:re.formContainer},[e("div",{class:[re.btnItem,re.block]},[e("span",{class:[re.btnTitle]},[e("span",null,[F("*")]),F("课件标题")]),e(Xe,{placeholder:"请输入课件标题",value:a.name,"onUpdate:value":[c=>a.name=c,()=>{n.value[0]=a.name?"":"error"}],maxlength:20,clearable:!0,status:n.value[0]},null)]),e("div",{class:[re.btnItem,re.block]},[e("span",{class:[re.btnTitle]},[e("span",null,[F("*")]),F("课件乐器")]),e(Mt,{status:n.value[1],placeholder:"请选择乐器(可多选)",class:re.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:a.subjects,"onUpdate:value":[c=>a.subjects=c,()=>{var c;n.value[1]=((c=a.subjects)==null?void 0:c.length)>0?"":"error"}]},{action:()=>e(fe,null,[e(G,{text:!0,style:" --n-width: 100% ",size:"small",onClick:()=>o(u.value)},{default:()=>[F("全选")]})])})]),e("div",{class:re.btnItem},[e("span",{class:re.btnTitle},[F("自动播放"),e(_e,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:re.iconQuestion},null),default:()=>"开启自动播放后,课件内视频、音频资源将自动播放"})]),e(_t,{value:a.autoPlay,"onUpdate:value":c=>a.autoPlay=c},null)]),e("div",{class:re.btnItem},[e("span",{class:re.btnTitle},[F("公开课件"),e(_e,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:re.iconQuestion},null),default:()=>"公开课件后,其它老师可以使用该课件上课"})]),a.openFlagEnable?e(_t,{value:a.openFlag,"onUpdate:value":c=>a.openFlag=c,disabled:!a.openFlagEnable},null):e(_e,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e(_t,{value:a.openFlag,"onUpdate:value":c=>a.openFlag=c,disabled:!a.openFlagEnable},null),default:()=>"为尊重课件原作者,在“相关课件”中添加的课件不支持公开"})])])])}}),kc=N({name:"lesson-main",setup(){const s=be(),i=J({editCoursewareShow:!1,coursewareType:"create",addParam:{isAdd:!1,id:null,addName:""},editCourseware:{},editWork:{}}),t=R(),p=()=>{var u;L.emit("coursewareClosed",(u=t.value)==null?void 0:u.getForms())},n=()=>{var u;L.emit("coursewareSave",(u=t.value)==null?void 0:u.getForms())};return()=>e("div",{class:[i.editCoursewareShow&<.coursewareSection],style:{height:"100%"}},[i.editCoursewareShow&&e("div",{class:lt.coursewareHeader},[e(Dc,{ref:t},null)]),e("div",{class:lt["lesson-main"]},[i.editCoursewareShow?e(Qr,{groupItem:i.editCourseware,onChange:u=>{u.addParam&&(i.addParam=u.addParam),i.editCoursewareShow=u.status,s.setIsEditResource(u.status),u.status||L.emit("teacher-slideshow",!1)}},null):e(Ac,{addParam:i.addParam,onChange:u=>{i.coursewareType=u.type,i.editCoursewareShow=u.status,s.setIsEditResource(u.status),i.editCourseware=u.groupItem,i.addParam={isAdd:!1,id:null,addName:""}}},null)]),i.editCoursewareShow&&e("div",{class:lt.coursewareFooter},[e(ae,null,{default:()=>[e(G,{bordered:!1,type:"error",onClick:p},{default:()=>[F("取消")]}),e(G,{type:"primary",onClick:n},{default:()=>[F("保存课件")]})]})])])}}),Lc=N({name:"lessons-guide",emits:["close"],setup(s,{emit:i}){const t=J({box:{height:"0px"},show:!1,steps:[{ele:"",img:Tt("lessons2.png"),imgStyle:{left:ie(-647),width:ie(647),height:ie(223)},btnsStyle:{bottom:"30px",left:ie(-488)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"left"},{ele:"",img:Tt("lessons3.png"),imgStyle:{top:ie(-4),left:ie(-471),width:ie(471),height:ie(223)},btnsStyle:{bottom:ie(20),left:ie(-310)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"left"}],step:0}),p=R(!1),n=R({});(async()=>{var l;try{const c=await yu({guideTag:"teacher-guideInfo"});c.data?n.value=JSON.parse((l=c.data)==null?void 0:l.guideValue)||null:n.value={},n.value&&n.value.lessonsGuideIn?p.value=!1:p.value=!0}catch(c){console.log(c)}})();const a=()=>{var c,_,h,b;const l=document.getElementById("lessonsIn-".concat(t.step));if(l){const B=l.getBoundingClientRect(),S=((c=t.steps[t.step].eleRectPadding)==null?void 0:c.left)||0,I=((_=t.steps[t.step].eleRectPadding)==null?void 0:_.top)||0,m=((h=t.steps[t.step].eleRectPadding)==null?void 0:h.width)||0,A=((b=t.steps[t.step].eleRectPadding)==null?void 0:b.height)||0;t.box={left:B.x-S+"px",top:B.y-I+"px",width:B.width+m+"px",height:B.height+A+"px"}}else r()},o=async l=>{try{if(l!=="prepare-lessons")return;n.value?n.value.lessonsGuideIn=!1:n.value={lessonsGuideIn:!1};try{await ct({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(n.value)})}catch(c){console.log(c)}t.step=0,a(),p.value=!0}catch(c){}};X(()=>{setTimeout(()=>{a()},500),window.addEventListener("resize",d),L.on("teacher-guideInfo",o)});const d=()=>{a()};Se(()=>{window.removeEventListener("resize",d),L.off("teacher-guideInfo",o)});const r=()=>{if(t.step>=4){g();return}t.step=t.step+1,a()},g=async()=>{n.value?n.value.lessonsGuideIn=!0:n.value={lessonsGuideIn:!0};try{const l=await ct({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(n.value)})}catch(l){console.log(l)}p.value=!1};return()=>e(fe,null,[p.value?Rt(e("div",{"onUpdate:show":l=>p.value=l,class:["n-modal-mask","n-modal-mask-guide"]},[e("div",{class:le.content,onClick:()=>r()},[e("div",{class:le.backBtn,onClick:l=>{l.stopPropagation(),g()}},[F("跳过")]),e("div",{class:le.box,style:{...t.box},id:"modeType-".concat(t.step)},[t.steps.map((l,c)=>{var _,h,b,B,S,I;return e("div",{onClick:m=>m.stopPropagation(),class:le.item,style:l.type=="bottom"?{display:c===t.step?"":"none",left:"".concat((_=l.eleRect)==null?void 0:_.left,"px"),top:"-".concat((h=l.imgStyle)==null?void 0:h.height)}:l.type=="left"?{display:c===t.step?"":"none",top:"".concat(parseFloat((b=t.box)==null?void 0:b.height)/2-parseFloat((B=l.imgStyle)==null?void 0:B.height)*1920/100/2-14,"px")}:{display:c===t.step?"":"none",left:"".concat((S=l.eleRect)==null?void 0:S.left,"px"),top:"".concat((I=t.box)==null?void 0:I.height)}},[e("img",{class:le.img,style:l.imgStyle,src:l.img},null),e("div",{class:le.btns,style:l.btnsStyle},[t.step+1==t.steps.length?e(fe,null,[e("div",{class:[le.endBtn],onClick:()=>g()},[F("完成")]),e("div",{class:le.nextBtn,onClick:()=>{t.step=0,a()}},[F("再看一遍")])]):e("div",{class:le.btn,onClick:()=>r()},[F("下一步 ("),t.step+1,F("/"),t.steps.length,F(")")])])])})])])]),[[Eu,p.value,"show"]]):null])}}),hd=N({name:"prepare-lessons",setup(){const s=J({sidebarShow:!1}),i=be(),t=R(),p=R(),n=u=>{var a;console.log(u,"val"),s.sidebarShow=u,(a=t.value)==null||a.resetTabPosition()};return X(()=>{L.on("teacher-slideshow",n)}),Se(()=>{L.off("teacher-slideshow",n)}),X(()=>{jt(document.querySelector("#lessons-height"),u=>{const a=u[0],{height:o}=a.contentRect;document.documentElement.style.setProperty("--window-page-lesson-height",o+"px")})}),Ps(()=>{i.setTabType("courseware"),i.setSelectMusicStatus(!1),i.setSelectResourceStatus(!1),i.setIsAddResource(!1),i.setIsAddTrain(!1),i.setIsEditResource(!1),i.setIsEditTrain(!1),sessionStorage.removeItem("prepareLessonCourseWareSubjectIsNull")}),Se(()=>{i.setSubjectId("")}),()=>e("div",{class:[Oe.prepareLessons,s.sidebarShow?Oe.showSideBar:Oe.hideSideBar],id:"lessons-height"},[e("div",{class:Oe.directoryMain,ref:p.value},[e(ho,{sidebarShow:s.sidebarShow},null)]),e("div",{class:Oe.lessonMain},[e(kc,null,null)]),e("div",{class:[Oe.resourceMain]},[s.sidebarShow&&e(_u,{ref:t},null)]),s.sidebarShow&&e(Lc,null,null)])}});export{hd as default};
|