index-b0967908-1725962701482.js 149 KB

1
  1. import{b as Ju,l as Cu,a as Hu,c as Qu,t as $u,d as Xu,C as Yu,e as Yt,f as es,g as ts,h as Fu,i as us,j as ss,k as as,m as os}from"./api-174aa246-1725962701482.js";import{B as ns,A as ls}from"./index-17559a25-1725962701482.js";import{u as $e,d as Lt}from"./catchData-4810754f-1725962701482.js";import{a2 as rs,a3 as is,a4 as cs,a5 as ds,a6 as hu,a7 as ps,a8 as ms,a9 as gs,aa as fs,d as W,ab as dt,r as N,ac as Cs,ad as te,ae as Fs,U as z,q as ee,p as Eu,af as hs,ag as M,ah as Ee,ai as O,aj as eu,ak as Es,al as As,am as ws,an as vs,A as je,ao as Au,ap as Bs,aq as ys,ar as tu,as as uu,a0 as Pt,at as bs,_ as Ss,au as _s,av as Is,aw as He,S as Se,ax as Qe,o as Ds,b as pt,e as H,f as e,h as Xe,I as su,E as fe,x as ne,w as de,F as Ce,l as ae,m as oe,k as F,j as G,$ as ce,C as V,T as De,a1 as wu,a as vu,c as Mt,X as Bu,ay as au,az as yu,aA as ks,aB as Ls,n as xt,D as ke,G as xs,u as Ue,t as ze,v as Ke,P as mt,aC as bu,N as Ts,y as Vs,g as Rs,V as Ie,z as St,aD as ou,aE as _t,aF as js}from"./index-8151123c-1725962701482.js";import{a as gt}from"./index-19765c31-1725962701482.js";import{N as Nt}from"./Cascader-b1466d9c-1725962701482.js";import{N as Ae}from"./Scrollbar-ac0a11ae-1725962701482.js";import{T as Fe}from"./index-b03328a0-1725962701482.js";import{u as _e,i as Ps}from"./index-98b0f689-1725962701482.js";import{T as Tt}from"./index-2cb7fc8a-1725962701482.js";import{g as Vt,s as re}from"./index-db345329-1725962701482.js";import{s as ct}from"./api-875eec05-1725962701482.js";import{D as Ms,C as Su,b as Ns,R as _u}from"./index-b806ec66-1725962701482.js";import{C as ft,s as T}from"./index-77304020-1725962701482.js";import{P as Iu}from"./index-18bdfe08-1725962701482.js";import{T as Rt}from"./index-0a122b40-1725962701482.js";import{T as Ot}from"./index-6ac9882e-1725962701482.js";import{b as Du}from"./browser-504037ee-1725962701482.js";import{a as Wt,b as Gt,c as Os,d as Ws}from"./api-95647aa3-1725962701482.js";import{u as Gs,i as Us,a as zs,b as Ks}from"./useSpeak-d0bb08b8-1725962701482.js";import{N as qs}from"./Slider-3d2a3287-1725962701482.js";import{i as Zs}from"./icon_default-d1bcaf5f-1725962701482.js";import{i as Js}from"./icon-select-23609858-1725962701482.js";import{U as Hs,S as Qs,f as $s}from"./index-632c5052-1725962701482.js";import{a as Xs}from"./add-efe8238e-1725962701482.js";import{u as jt}from"./index-6fa64c7e-1725962701482.js";import{A as Ys}from"./index-0932e6cc-1725962701482.js";import"./index-2c939fb7-1725962701482.js";import"./urlUtils-72ef455d-1725962701482.js";import"./ding-8e9054d5-1725962701482.js";import"./searchArray-2a0beb74-1725962701482.js";import"./contants-81f70019-1725962701482.js";import"./api-03593212-1725962701482.js";import"./api-4c846889-1725962701482.js";import"./teacherIcon-b8e3946d-1725962701482.js";import"./index-22e08126-1725962701482.js";import"./api-7b148647-1725962701482.js";import"./index-b5a59ad8-1725962701482.js";import"./icon-pan-16e35a82-1725962701482.js";import"./updateSubject-bd41cae3-1725962701482.js";import"./index.module-7d86a2ea-1725962701482.js";function ea(o){return rs(is(o).toLowerCase())}var ta=cs(function(o,i,t){return i=i.toLowerCase(),o+(t?ea(i):i)});const nu=ta,ua=o=>({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:ds,self:ua},aa=sa;function oa(o){const{length:i}=o;return i>1&&(o.push(lu(o[0],0,"append")),o.unshift(lu(o[i-1],i-1,"prepend"))),o}function lu(o,i,t){return hu(o,{key:"carousel-item-duplicate-".concat(i,"-").concat(t)})}function ru(o,i,t){return i===1?0:t?o===0?i-3:o===i-1?0:o-1:o}function It(o,i){return i?o+1:o}function na(o,i,t){return o<0?null:o===0?t?i-1:null:o-1}function la(o,i,t){return o>i-1?null:o===i-1?t?0:null:o+1}function ra(o,i){return i&&o>3?o-2:o}function iu(o){return window.TouchEvent&&o instanceof window.TouchEvent}function cu(o,i){let{offsetWidth:t,offsetHeight:p}=o;if(i){const n=getComputedStyle(o);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(o,i,t){return o<i?i:o>t?t:o}function ia(o){if(o===void 0)return 0;if(typeof o=="number")return o;const i=/^((\d+)?\.?\d+?)(ms|s)?$/,t=o.match(i);if(t){const[,p,,n="ms"]=t;return Number(p)*(n==="ms"?1:1e3)}return 0}const ku=fs("n-carousel-methods"),ca=o=>{ps(ku,o)},Ut=(o="unknown",i="component")=>{const t=ms(ku);return t||gs(o,"`".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=W({name:"CarouselDots",props:da,setup(o){const{mergedClsPrefixRef:i}=dt(o),t=N([]),p=Ut();function n(r,h){switch(r.key){case"Enter":case" ":r.preventDefault(),p.to(h);return}o.keyboard&&s(r)}function u(r){o.trigger==="hover"&&p.to(r)}function a(r){o.trigger==="click"&&p.to(r)}function s(r){var h;if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey)return;const l=(h=document.activeElement)===null||h===void 0?void 0:h.nodeName.toLowerCase();if(l==="input"||l==="textarea")return;const{code:c}=r,E=c==="PageUp"||c==="ArrowUp",y=c==="PageDown"||c==="ArrowDown",C=c==="PageUp"||c==="ArrowRight",B=c==="PageDown"||c==="ArrowLeft",v=p.isVertical(),S=v?E:C,g=v?y:B;!S&&!g||(r.preventDefault(),S&&!p.isNextDisabled()?(p.next(),d(p.currentIndexRef.value)):g&&!p.isPrevDisabled()&&(p.prev(),d(p.currentIndexRef.value)))}function d(r){var h;(h=t.value[r])===null||h===void 0||h.focus()}return Cs(()=>t.value.length=0),{mergedClsPrefix:i,dotEls:t,handleKeydown:n,handleMouseenter:u,handleClick:a}},render(){const{mergedClsPrefix:o,dotEls:i}=this;return te("div",{class:["".concat(o,"-carousel__dots"),"".concat(o,"-carousel__dots--").concat(this.dotType)],role:"tablist"},Fs(this.total,t=>{const p=t===this.currentIndex;return te("div",{"aria-selected":p,ref:n=>i.push(n),role:"button",tabindex:"0",class:["".concat(o,"-carousel__dot"),p&&"".concat(o,"-carousel__dot--active")],key:t,onClick:()=>{this.handleClick(t)},onMouseenter:()=>{this.handleMouseenter(t)},onKeydown:n=>{this.handleKeydown(n,t)}})}))}}),ma=te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},te("g",{fill:"none"},te("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"}))),ga=te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},te("g",{fill:"none"},te("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=W({name:"CarouselArrow",setup(o){const{mergedClsPrefixRef:i}=dt(o),{isVertical:t,isPrevDisabled:p,isNextDisabled:n,prev:u,next:a}=Ut();return{mergedClsPrefix:i,isVertical:t,isPrevDisabled:p,isNextDisabled:n,prev:u,next:a}},render(){const{mergedClsPrefix:o}=this;return te("div",{class:"".concat(o,"-carousel__arrow-group")},te("div",{class:["".concat(o,"-carousel__arrow"),this.isPrevDisabled()&&"".concat(o,"-carousel__arrow--disabled")],role:"button",onClick:this.prev},ma),te("div",{class:["".concat(o,"-carousel__arrow"),this.isNextDisabled()&&"".concat(o,"-carousel__arrow--disabled")],role:"button",onClick:this.next},ga))}}),it="CarouselItem",Ca=o=>{var i;return((i=o.type)===null||i===void 0?void 0:i.name)===it},Ct=W({name:it,setup(o){const{mergedClsPrefixRef:i}=dt(o),t=Ut(nu(it),"n-".concat(nu(it))),p=N(),n=z(()=>{const{value:h}=p;return h?t.getSlideIndex(h):-1}),u=z(()=>t.isPrev(n.value)),a=z(()=>t.isNext(n.value)),s=z(()=>t.isActive(n.value)),d=z(()=>t.getSlideStyle(n.value));ee(()=>{t.addSlide(p.value)}),Eu(()=>{t.removeSlide(p.value)});function r(h){const{value:l}=n;l!==void 0&&(t==null||t.onCarouselItemClick(l,h))}return{mergedClsPrefix:i,selfElRef:p,isPrev:u,isNext:a,isActive:s,index:n,style:d,handleClick:r}},render(){var o;const{$slots:i,mergedClsPrefix:t,isPrev:p,isNext:n,isActive:u,index:a,style:s}=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 te("div",{ref:"selfElRef",class:d,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!u,style:s,onClickCapture:this.handleClick},(o=i.default)===null||o===void 0?void 0:o.call(i,{isPrev:p,isNext:n,isActive:u,index:a}))}}),Fa=hs("carousel","\n position: relative;\n width: 100%;\n height: 100%;\n touch-action: pan-y;\n overflow: hidden;\n",[M("slides","\n display: flex;\n width: 100%;\n height: 100%;\n transition-timing-function: var(--n-bezier);\n transition-property: transform;\n ",[M("slide","\n flex-shrink: 0;\n position: relative;\n width: 100%;\n height: 100%;\n outline: none;\n overflow: hidden;\n ",[Ee("> img","\n display: block;\n ")])]),M("dots","\n position: absolute;\n display: flex;\n flex-wrap: nowrap;\n ",[O("dot",[M("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 ",[Ee("&:focus","\n background-color: var(--n-dot-color-focus);\n "),O("active","\n background-color: var(--n-dot-color-active);\n ")])]),O("line",[M("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 ",[Ee("&:focus","\n background-color: var(--n-dot-color-focus);\n "),O("active","\n width: var(--n-dot-line-width-active);\n background-color: var(--n-dot-color-active);\n ")])])]),M("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 ",[Ee("svg","\n height: 1em;\n width: 1em;\n "),Ee("&:hover","\n background-color: rgba(255, 255, 255, .3);\n ")]),O("vertical","\n touch-action: pan-x;\n ",[M("slides","\n flex-direction: column;\n "),O("fade",[M("slide","\n top: 50%;\n left: unset;\n transform: translateY(-50%);\n ")]),O("card",[M("slide","\n top: 50%;\n left: unset;\n transform: translateY(-50%) translateZ(-400px);\n ",[O("current","\n transform: translateY(-50%) translateZ(0);\n "),O("prev","\n transform: translateY(-100%) translateZ(-200px);\n "),O("next","\n transform: translateY(0%) translateZ(-200px);\n ")])])]),O("usercontrol",[M("slides",[Ee(">",[Ee("div","\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 100%;\n transform: translate(-50%, -50%);\n ")])])]),O("left",[M("dots","\n transform: translateY(-50%);\n top: 50%;\n left: 12px;\n flex-direction: column;\n ",[O("line",[M("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 ",[O("active","\n height: var(--n-dot-line-width-active);\n ")])])]),M("dot","\n margin: 4px 0;\n ")]),M("arrow-group","\n position: absolute;\n display: flex;\n flex-wrap: nowrap;\n "),O("vertical",[M("arrow","\n transform: rotate(90deg);\n ")]),O("show-arrow",[O("bottom",[M("dots","\n transform: translateX(0);\n bottom: 18px;\n left: 18px;\n ")]),O("top",[M("dots","\n transform: translateX(0);\n top: 18px;\n left: 18px;\n ")]),O("left",[M("dots","\n transform: translateX(0);\n top: 18px;\n left: 18px;\n ")]),O("right",[M("dots","\n transform: translateX(0);\n top: 18px;\n right: 18px;\n ")])]),O("left",[M("arrow-group","\n bottom: 12px;\n left: 12px;\n flex-direction: column;\n ",[Ee("> *:first-child","\n margin-bottom: 12px;\n ")])]),O("right",[M("dots","\n transform: translateY(-50%);\n top: 50%;\n right: 12px;\n flex-direction: column;\n ",[O("line",[M("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 ",[O("active","\n height: var(--n-dot-line-width-active);\n ")])])]),M("dot","\n margin: 4px 0;\n "),M("arrow-group","\n bottom: 12px;\n right: 12px;\n flex-direction: column;\n ",[Ee("> *:first-child","\n margin-bottom: 12px;\n ")])]),O("top",[M("dots","\n transform: translateX(-50%);\n top: 12px;\n left: 50%;\n ",[O("line",[M("dot","\n margin: 0 4px;\n ")])]),M("dot","\n margin: 0 4px;\n "),M("arrow-group","\n top: 12px;\n right: 12px;\n ",[Ee("> *:first-child","\n margin-right: 12px;\n ")])]),O("bottom",[M("dots","\n transform: translateX(-50%);\n bottom: 12px;\n left: 50%;\n ",[O("line",[M("dot","\n margin: 0 4px;\n ")])]),M("dot","\n margin: 0 4px;\n "),M("arrow-group","\n bottom: 12px;\n right: 12px;\n ",[Ee("> *:first-child","\n margin-right: 12px;\n ")])]),O("fade",[M("slide","\n position: absolute;\n opacity: 0;\n transition-property: opacity;\n pointer-events: none;\n ",[O("current","\n opacity: 1;\n pointer-events: auto;\n ")])]),O("card",[M("slides","\n perspective: 1000px;\n "),M("slide","\n position: absolute;\n left: 50%;\n opacity: 0;\n transform: translateX(-50%) translateZ(-400px);\n transition-property: opacity, transform;\n ",[O("current","\n opacity: 1;\n transform: translateX(-50%) translateZ(0);\n z-index: 1;\n "),O("prev","\n opacity: 0.4;\n transform: translateX(-100%) translateZ(-200px);\n "),O("next","\n opacity: 0.4;\n transform: translateX(0%) translateZ(-200px);\n ")])])]),ha=["transitionDuration","transitionTimingFunction"],Ea=Object.assign(Object.assign({},Au.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 Dt=!1;const zt=W({name:"Carousel",props:Ea,setup(o){const{mergedClsPrefixRef:i,inlineThemeDisabled:t}=dt(o),p=N(null),n=N(null),u=N([]),a={value:[]},s=z(()=>o.direction==="vertical"),d=z(()=>s.value?"height":"width"),r=z(()=>s.value?"bottom":"right"),h=z(()=>o.effect==="slide"),l=z(()=>o.loop&&o.slidesPerView===1&&h.value),c=z(()=>o.effect==="custom"),E=z(()=>!h.value||o.centeredSlides?1:o.slidesPerView),y=z(()=>c.value?1:o.slidesPerView),C=z(()=>E.value==="auto"||o.slidesPerView==="auto"&&o.centeredSlides),B=N({width:0,height:0}),v=z(()=>{const{value:f}=u;if(!f.length)return[];const{value:A}=C;if(A)return f.map(Y=>cu(Y));const{value:x}=y,{value:j}=B,{value:P}=d;let R=j[P];if(x!=="auto"){const{spaceBetween:Y}=o,pe=R-(x-1)*Y,ot=1/Math.max(1,x);R=pe*ot}const $=Object.assign(Object.assign({},j),{[P]:R});return f.map(()=>$)}),S=z(()=>{const{value:f}=v;if(!f.length)return[];const{centeredSlides:A,spaceBetween:x}=o,{value:j}=d,{[j]:P}=B.value;let R=0;return f.map(({[j]:$})=>{let Y=R;return A&&(Y+=($-P)/2),R+=$+x,Y})}),g=N(!1),b=z(()=>{const{transitionStyle:f}=o;return f?eu(f,ha):{}}),_=z(()=>c.value?0:ia(b.value.transitionDuration)),L=z(()=>{const{value:f}=u;if(!f.length)return[];const A=!(C.value||y.value===1),x=$=>{if(A){const{value:Y}=d;return{[Y]:"".concat(v.value[$][Y],"px")}}};if(c.value)return f.map(($,Y)=>x(Y));const{effect:j,spaceBetween:P}=o,{value:R}=r;return f.reduce(($,Y,pe)=>{const ot=Object.assign(Object.assign({},x(pe)),{["margin-".concat(R)]:"".concat(P,"px")});return $.push(ot),g.value&&(j==="fade"||j==="card")&&Object.assign(ot,b.value),$},[])}),m=z(()=>{const{value:f}=E,{length:A}=u.value;if(f!=="auto")return Math.max(A-f,0)+1;{const{value:x}=v,{length:j}=x;if(!j)return A;const{value:P}=S,{value:R}=d,$=B.value[R];let Y=x[x.length-1][R],pe=j;for(;pe>1&&Y<$;)pe--,Y+=P[pe]-P[pe-1];return nt(pe+1,1,j)}}),w=z(()=>ra(m.value,l.value)),I=It(o.defaultIndex,l.value),D=N(ru(I,m.value,l.value)),k=Es(As(o,"currentIndex"),D),Q=z(()=>It(k.value,l.value));function q(f){var A,x;f=nt(f,0,m.value-1);const j=ru(f,m.value,l.value),{value:P}=k;j!==k.value&&(D.value=j,(A=o["onUpdate:currentIndex"])===null||A===void 0||A.call(o,j,P),(x=o.onUpdateCurrentIndex)===null||x===void 0||x.call(o,j,P))}function ve(f=Q.value){return na(f,m.value,o.loop)}function Be(f=Q.value){return la(f,m.value,o.loop)}function Kt(f){const A=Pe(f);return A!==null&&ve()===A}function Le(f){const A=Pe(f);return A!==null&&Be()===A}function Ft(f){return Q.value===Pe(f)}function qe(f){return k.value===f}function qt(){return ve()===null}function Zt(){return Be()===null}function ht(f){const A=nt(It(f,l.value),0,m.value);(f!==k.value||A!==Q.value)&&q(A)}function Et(){const f=ve();f!==null&&q(f)}function Ye(){const f=Be();f!==null&&q(f)}function Lu(){(!he||!l.value)&&Et()}function xu(){(!he||!l.value)&&Ye()}let he=!1,xe=0;const At=N({});function et(f,A=0){At.value=Object.assign({},b.value,{transform:s.value?"translateY(".concat(-f,"px)"):"translateX(".concat(-f,"px)"),transitionDuration:"".concat(A,"ms")})}function Ze(f=0){h.value?wt(Q.value,f):xe!==0&&(!he&&f>0&&(he=!0),et(xe=0,f))}function wt(f,A){const x=Jt(f);x!==xe&&A>0&&(he=!0),xe=Jt(Q.value),et(x,A)}function Jt(f){let A;return f>=m.value-1?A=Ht():A=S.value[f]||0,A}function Ht(){if(E.value==="auto"){const{value:f}=d,{[f]:A}=B.value,{value:x}=S,j=x[x.length-1];let P;if(j===void 0)P=A;else{const{value:R}=v;P=j+R[R.length-1][f]}return P-A}else{const{value:f}=S;return f[m.value-1]||0}}const Je={currentIndexRef:k,to:ht,prev:Lu,next:xu,isVertical:()=>s.value,isHorizontal:()=>!s.value,isPrev:Kt,isNext:Le,isActive:Ft,isPrevDisabled:qt,isNextDisabled:Zt,getSlideIndex:Pe,getSlideStyle:Ru,addSlide:Tu,removeSlide:Vu,onCarouselItemClick:ju};ca(Je);function Tu(f){f&&u.value.push(f)}function Vu(f){if(!f)return;const A=Pe(f);A!==-1&&u.value.splice(A,1)}function Pe(f){return typeof f=="number"?f:f?u.value.indexOf(f):-1}function Ru(f){const A=Pe(f);if(A!==-1){const x=[L.value[A]],j=Je.isPrev(A),P=Je.isNext(A);return j&&x.push(o.prevSlideStyle||""),P&&x.push(o.nextSlideStyle||""),_s(x)}}function ju(f,A){let x=!he&&!st&&!bt;o.effect==="card"&&x&&!Ft(f)&&(ht(f),x=!1),x||(A.preventDefault(),A.stopPropagation())}let tt=null;function ut(){tt&&(clearInterval(tt),tt=null)}function Me(){ut(),!o.autoplay||w.value<2||(tt=window.setInterval(Ye,o.interval))}let vt=0,Bt=0,ye=0,yt=0,st=!1,bt=!1;function Qt(f){var A;if(Dt||!(!((A=n.value)===null||A===void 0)&&A.contains(Is(f))))return;Dt=!0,st=!0,bt=!1,yt=Date.now(),ut(),f.type!=="touchstart"&&!f.target.isContentEditable&&f.preventDefault();const x=iu(f)?f.touches[0]:f;s.value?Bt=x.clientY:vt=x.clientX,o.touchable&&(He("touchmove",document,at),He("touchend",document,Ne),He("touchcancel",document,Ne)),o.draggable&&(He("mousemove",document,at),He("mouseup",document,Ne))}function at(f){const{value:A}=s,{value:x}=d,j=iu(f)?f.touches[0]:f,P=A?j.clientY-Bt:j.clientX-vt,R=B.value[x];ye=nt(P,-R,R),f.cancelable&&f.preventDefault(),h.value&&et(xe-ye,0)}function Ne(){const{value:f}=Q;let A=f;if(!he&&ye!==0&&h.value){const x=xe-ye,j=[...S.value.slice(0,m.value-1),Ht()];let P=null;for(let R=0;R<j.length;R++){const $=Math.abs(j[R]-x);if(P!==null&&P<$)break;P=$,A=R}}if(A===f){const x=Date.now()-yt,{value:j}=d,P=B.value[j];ye>P/2||ye/x>.4?A=ve(f):(ye<-P/2||ye/x<-.4)&&(A=Be(f))}A!==null&&A!==f?(bt=!0,q(A),Se(()=>{(!l.value||D.value!==k.value)&&Ze(_.value)})):Ze(_.value),$t(),Me()}function $t(){st&&(Dt=!1),st=!1,vt=0,Bt=0,ye=0,yt=0,Qe("touchmove",document,at),Qe("touchend",document,Ne),Qe("touchcancel",document,Ne),Qe("mousemove",document,at),Qe("mouseup",document,Ne)}function Pu(){if(h.value&&he){const{value:f}=Q;wt(f,0)}else Me();h.value&&(At.value.transitionDuration="0ms"),he=!1}function Mu(f){if(f.preventDefault(),he)return;let{deltaX:A,deltaY:x}=f;f.shiftKey&&!A&&(A=x);const j=-1,P=1,R=(A||x)>0?P:j;let $=0,Y=0;s.value?Y=R:$=R;const pe=10;(Y*x>=pe||$*A>=pe)&&(R===P&&!Zt()?Ye():R===j&&!qt()&&Et())}function Nu(){B.value=cu(p.value,!0),Me()}function Ou(){var f,A;C.value&&((A=(f=v.effect).scheduler)===null||A===void 0||A.call(f),v.effect.run())}function Wu(){o.autoplay&&ut()}function Gu(){o.autoplay&&Me()}ee(()=>{ws(Me),requestAnimationFrame(()=>g.value=!0)}),Eu(()=>{$t(),ut()}),vs(()=>{const{value:f}=u,{value:A}=a,x=new Map,j=R=>x.has(R)?x.get(R):-1;let P=!1;for(let R=0;R<f.length;R++){const $=A.findIndex(Y=>Y.el===f[R]);$!==R&&(P=!0),x.set(f[R],$)}P&&f.sort((R,$)=>j(R)-j($))}),je(Q,(f,A)=>{if(f!==A)if(Me(),h.value){if(l.value){const{value:x}=m;w.value>2&&f===x-2&&A===1?f=0:f===1&&A===x-2&&(f=x-1)}wt(f,_.value)}else Ze()},{immediate:!0}),je([l,E],()=>void Se(()=>{q(Q.value)})),je(S,()=>{h.value&&Ze()},{deep:!0}),je(h,f=>{f?Ze():(he=!1,et(xe=0))});const Uu=z(()=>({onTouchstartPassive:o.touchable?Qt:void 0,onMousedown:o.draggable?Qt:void 0,onWheel:o.mousewheel?Mu:void 0})),zu=z(()=>Object.assign(Object.assign({},eu(Je,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:w.value,currentIndex:k.value})),Ku=z(()=>({total:w.value,currentIndex:k.value,to:Je.to})),qu={getCurrentIndex:()=>k.value,to:ht,prev:Et,next:Ye},Zu=Au("Carousel","-carousel",Fa,aa,o,i),Xt=z(()=>{const{common:{cubicBezierEaseInOut:f},self:{dotSize:A,dotColor:x,dotColorActive:j,dotColorFocus:P,dotLineWidth:R,dotLineWidthActive:$,arrowColor:Y}}=Zu.value;return{"--n-bezier":f,"--n-dot-color":x,"--n-dot-color-focus":P,"--n-dot-color-active":j,"--n-dot-size":A,"--n-dot-line-width":R,"--n-dot-line-width-active":$,"--n-arrow-color":Y}}),Oe=t?Bs("carousel",void 0,Xt,o):void 0;return Object.assign(Object.assign({mergedClsPrefix:i,selfElRef:p,slidesElRef:n,slideVNodes:a,duplicatedable:l,userWantsControl:c,autoSlideSize:C,realIndex:Q,slideStyles:L,translateStyle:At,slidesControlListeners:Uu,handleTransitionEnd:Pu,handleResize:Nu,handleSlideResize:Ou,handleMouseenter:Wu,handleMouseleave:Gu,isActive:qe,arrowSlotProps:zu,dotSlotProps:Ku},qu),{cssVars:t?void 0:Xt,themeClass:Oe==null?void 0:Oe.themeClass,onRender:Oe==null?void 0:Oe.onRender})},render(){var o;const{mergedClsPrefix:i,showArrow:t,userWantsControl:p,slideStyles:n,dotType:u,dotPlacement:a,slidesControlListeners:s,transitionProps:d={},arrowSlotProps:r,dotSlotProps:h,$slots:{default:l,dots:c,arrow:E}}=this,y=l&&ys(l())||[];let C=Aa(y);return C.length||(C=y.map(B=>te(Ct,null,{default:()=>hu(B)}))),this.duplicatedable&&(C=oa(C)),this.slideVNodes.value=C,this.autoSlideSize&&(C=C.map(B=>te(tu,{onResize:this.handleSlideResize},{default:()=>B}))),(o=this.onRender)===null||o===void 0||o.call(this),te("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},s,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),te(tu,{onResize:this.handleResize},{default:()=>te("div",{ref:"slidesElRef",class:"".concat(i,"-carousel__slides"),role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},p?C.map((B,v)=>te("div",{style:n[v],key:v},Pt(te(Ss,Object.assign({},d),{default:()=>B}),[[bs,this.isActive(v)]]))):C)}),this.showDots&&h.total>1&&uu(c,h,()=>[te(pa,{key:u+a,total:h.total,currentIndex:h.currentIndex,dotType:u,trigger:this.trigger,keyboard:this.keyboard})]),t&&uu(E,r,()=>[te(fa,null)]))}});function Aa(o){return o.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",Sa="_showSideBar_99lbr_36",_a="_hideSideBar_99lbr_48",We={prepareLessons:wa,directoryMain:va,resourceMain:Ba,lessonMain:ya,resourceClose:ba,showSideBar:Sa,hideSideBar:_a},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",Ra="_changeDir_7kdi1_124",ja="_treeParent_7kdi1_149",Pa="_treeChild_7kdi1_152",Ma="_treeItem_7kdi1_155",Na="_childItem_7kdi1_166",Oa="_title_7kdi1_166",Wa="_dir_7kdi1_1",Ga="_titleSelect_7kdi1_188",Ua="_arrow_7kdi1_195",za="_arrowSelect_7kdi1_202",Ka="_childArrow_7kdi1_206",qa="_childSelect_7kdi1_216",Za="_coursewareModal_7kdi1_222",Z={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:Ra,treeParent:ja,treeChild:Pa,treeItem:Ma,childItem:Na,title:Oa,dir:Wa,titleSelect:Ga,arrow:Ua,arrowSelect:za,childArrow:Ka,childSelect:qa,coursewareModal:Za},Ja="_attendClassSearch_1x0z1_1",Ha="_iconSearch_1x0z1_20",Qa="_classList_1x0z1_24",$a="_content_1x0z1_28",Xa="_teachingSpace_1x0z1_32",Ya="_item_1x0z1_35",eo="_cover_1x0z1_41",to="_iconCustom_1x0z1_55",uo="_editContainer_1x0z1_65",so="_editBtnGroup_1x0z1_76",ao="_imgBtn_1x0z1_80",oo="_itemImg_1x0z1_90",no="_itemBg_1x0z1_121",lo="_itemName_1x0z1_146",ro="_teachingModal_1x0z1_153",io="_removeVisiable_1x0z1_156",co="_studentRemove_1x0z1_162",po="_btnGroup_1x0z1_174",X={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},mo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdoAAAKgCAMAAAALa0ynAAAAZlBMVEX4+fuFm9SJn9bq7veuvOKltt/19/qXqtvy9PnH0erN1u3BzOmNotfU2++fsN3n6/bW3fCbrdyUp9nu8fijs96ywOS5xua+yujR2e68yOfb4vLf5fKQpNipueDj6PTK1OzY3/G2w+XPOG7OAAANa0lEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGB26+A0YiCIgujMCCF02KPyT9UXY4xXDkC176VQNP0BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgg2znfqx17Oc2KNmu+eMSN+S15i/rNYg45x/nIOE137jbhG3NN8u/LbjmjWvweNu85Wyf73tDWVI9+7y1D57umLeOwdOteWsNnm7+Y/B00mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0n6xdwcnDgNRFAQZCWN80FH5p7rgGGbxp1WVQmMxlgZelrTjfVdK10/ZSP0P572GsJG613WsMWyk7vRZo1j22uZaw/jdbnIOehrbSN1qzAnKRupm5xrIzzZ4hnKS2ue1BrKRusN7DWQjdYdx52MbqdLigfxUjlFZ/vxkeWXR5UVjls8DXT7qdQ07STlDuUCDa2/P5rIqrpg/hbRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mYdVkqr3lZKq15WSqs+FraqTiulWbeV0qrzsFJadVkpzfo4Q2Vdh5XSqvO2Upr13Ui1UgoAAAAAAAAAAAAAAAAAAAAAAAD8sQcHAgAAAABA/q+NoKqqqqqqqqqqqqqqqqqqCrtm2qUmDAXQdwOGoAiyuIwsjv//T/YULYQoVFrb43jmfhGVJXDJy3uEb7755ptvvvlmHibPjfwRTZnLHPJjeJ6zhZE/JcknWtE0ychWZZnIi/KpZT4+BPJHxBDLDE7A6mGvYVbIQyyiaC9DCqqdjLACNbIjKOQ1CUkTuWA2ozTPUusBocxAZ5DNuG/YPbqmu2IFb6U2BNRBWhJGqZ+lNgRlZG633chjJBGwFpsy2C7NtNow/RSRHFi+k1qvADj/L7U6g/P8TRbyIGtAJY4Ukkm1JmqdHoHkndSKfADUur3nOwAVWWyfpHYJNDJFuXbxgeXaoZw4m8AML30lFtpviSD4+RmKnCHTl3gi76VWPiugMGKhFayelkaZfUcG0f4GM9jzQ/gywgLY2mfirGvccJQABxHZQvxuasULgFTbtoFmnlrj4KROk3h/q/bYR9I8A479P8ByUm19VRrA+e3USp7CSSx2UMk8tYoBi79Qq4Lf4PTEpLa/boBAy5W9s3vRYUsGxc/PzSdQXhsZZT3pe6gVE5/EJgD/uWqzdITMVftA0rQYNi8Y7sIH9n2xSjZV/OTVNX4vGRK9iVoHDzjc/2d5IYZq+YvjA2qXMsLy79WGwId05FGfJRtgO6W2hsq0x72rtkkvVEDaspHDwqaCqF1o5HXRHSfA0w5dcXHD9qp2f7yy+L9qdQWRGVbCRW/9MKrWLporKMKWLagwvISxEpeDrLjLp7wsSyaJf6/20On5v2pl5TziKlA7/StWKzOuNulG7WPfvU+XGP7l1TZp8/XVmggyLR3JORdLmEVZX4kgqOsMKOp61R6WuMu84q7pfdHGZamRzbanAKjaxVebJGgq1PpBtTZ190P6AmrlY2QOwQdKsVhzj1qMAqLRFmgFaiSdfNU0akd3UbzPKyvg/HOhBrX+vFKKTQGLf6jWqAkS8avqLDa5AtXvxf45lUfUnqwirLjNvNbcV+vxumolvKn/dQCVvqSaozVQCv4stSc9wslRmyeJJ4YJkpHT8MVlBZzEpvnoCYCiXTpIag2XAezudc7ybs+oXlatbJRzVfz+ehxGZ+D6p/zBQ2qn8cRhtloJgOOdiQVlpm7qQvehI/11rgpOt/EYohu3JiJ+5bq2yQZuQzvC1GO1QwT77pqen65Wbyx8wP5+V9YRSGXI3k2i3B6dmv4eqA/XlfPbDnqCu25DOLyyWvEy6xIsgSqXKyYFTnILED5Z7cznty7+TSblKSCZmCHK8l6RSjyIf9U7xg0J0V23AdmLP43yKvB7s8oKbHkA7MUlB5az1K68EVZPUpsrNyTXwIfckPxkB6hNckE+YCeSofTFcyADDnAGdYaocTrz6sXVSlL5fQhjc9Ol48TdANj0o+6TMuT5at2oWeXD2avKyA24VCKLyrStXl8S5NrNGf0VKB1D5Q0eaCrz6mrFu7R1AZfTC+s6/PVXDKhQi00JlJ3a3T9Quzufknlqxcc+rA6co06pNZvLveFfAlLoVj5l24a8giC3j7f7ItMD6wpQm7bVVmKlzwDVQO66H8Wqf6JWK9jPVGsCYGUPpvFIBmi9Q0LfRxtQum1P4uTZ6bUNRyA1fVSI8i+h1qsBskY6tR0HBZCZQRKidKf24/lqj8BxplppVD9OHEYqUfEWAGd9ncyEuDuvCtaygMBNuJa/2rAHyj4qLL/GpN4WYJHLHbXi+QxlFRBbZdDz1e5ByVy1cgLUZ2f5LLeslPUKpxcMIuwZfKOcBxaJItJdGwp2fQvjLzBfe9x7olPUScRSa1PGgy4Q9ddNwer5aguoLbUcB5ip+1OV17doCi0uJgW6F6+bbuzsI/LSybN1DDvp1Hqx7t/laL6AWh/OktSe3FO79tuU/+gkyId5ahcfIyzuqdVA2KmdMX9WA1Gj465qdQhBreTCMYJ4sFIMlROPdxDlvVo79u++wFsWP9g5t+1GQSgM86sBPEcx1niM7/+SM8GgiHGSdHKRrMV30Xa1NgW/CpvNJlr94nByNbW8V8U0+0+alPDmlIUK015XSw8A2g6A05N7lAd3GWlR8DtZp8FoyLCdFEQO5PwL1FbLjWTAoNSmndNS2V8zpzMCLXm7WrN4+GW1KjCSxOQBzdIvrj7LrT263ghOtvM9TQCn+YbaqA7IlhmkUWr5ZIu2m0xssqijAIIn1CbeDolSa/yC91LKwpxO8UOeVJtWY4ZONdxMYDGgN9qgUuvfUPamLdIPQEKUWlV0vUkFCm39yAFU7w6jQgDJL9WKAldOnDygBtBljn7uhTMzX+Fj3LSBegDKr6hoXHZMU+lgVtsDaKZhajR3VBpNW/xutTkA+L9S2+SYyGtyB9pcqiEsvYJFdwrWO5hHhkTOzTbwAsDhO4pVk7lxJ6ClWhiVTJ9KwBHrO8/0YPnyZrVHqFv8strBAYACKi1h0mMD84Z+NaknRCM12+BmABj/CrXLiVfhAGeiqQ0ACHXF6s4P+r1q3qyWAU4BMPGqWuEBgBOTOJLSamJCsWKserrql9OZ87TeBrW7nbvfUWJ+lv7Ugt/V1dIICKfmZ6vOOFyfsdL3qvUB/HAGZPw1tcMkNJ13OlBSYpAjYoVX+nFzVC3XFkOoaAag2VUrIgBMfMfpARopDw0Ab52yGAF2Wx31uqhxtfATb1XLI6DlchM5S19Q2ye40nEi8R3p2bQk6Gbxo4VQP5Nhxnef2gLIxJccDAnmlHoCOO5abS2dSv2jXgSZ6n2Gykp5/o3sf9SWAIbb33aCZ9WmHq5EwfKdbFJdky1btT0D4M1nD/jugIyEf8uZnwxo53tcmonGaJp9T8tKvsaqLwXAnjnOdSh3MBONNdQrygkz9/kTansPEk+spxpJFtCHauUzntA5Ts7EjloS0G85ztWosIG3QMtNtScgl1ep4ZbnAC6r0OP0zkOYbrtszIkOV9pHausOkvxido5B0oaGKSOZyTuopLPqIhM7ak3yj1XrAXBVUO8bZcZLeooB4Xz9SBRBBCBWatv8hvNrtTRZVSFWEW60STf++ENQHev6GAeDH8ZEkp7zm9iBkg1VBolzSu/1XCxRL5K5Fal06z5QywUnhE8F0J+IwGyBntn1YxDXTTiPzTSavvLLqaeVOj9/jlrGHKhh7GEYlSc75Cu1p+UFJSJMsMNZxU6GWINjMV+vCA7eaWRQthrHXAW7DEBO/622guKHfCKhXuZGp9l1YlCWilqPXlUq4YIbkfTyrgi5VJVlC2IYEwdbKlVBLKdTsk9jJplq3Cjnegmn2rxNQPfgqXVxwxHkE2k65JuwANr/bN+bIgatoB5OKcg71ZICDbmDewnC0jskGWN5G0lSVaHUlv0TUVZoHgYAPK5UM3O45gXSR3NtDglryIeSGrGHz/6SjILc5+ip21XH1SWlRCGEoDvv4CiKojiSHY5/fyi0a2PyGmFMyWPckGjU8V9qQRR3Qmgar1t5Oo3EoG+ufOYja7FYLBaLxWKxWCwWi8VisVgsFovFYrFYLH/YgwMBAAAAACD/10ZQVVVVVVVVVVVVVVVVVVVhDw4EAAAAAID8XxtBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXagwMBAAAAAEH+1isMUAEAAAAAAAAAAAAAAABwBVauu45O9vfzAAAAAElFTkSuQmCC",go="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACFZJREFUeF7lWwtMlNkV/uaBVhgr5WEVYZ2QstZxqXUXFLbQFegDoxLZzIzNRkTqu6Yd4hrTda2grdBK1SJpJR1To82WgLg83JDqFiyrMqyAFmkCW9fGcYFq+YeiULYDU6aef+enwwjDzP/A2cxJ/szjv+fcc79777nnnHuvDNLTHAALAXwJwDwAwQC+ACDA8ZAGo47nPwAGADwG8C8A/wDwqZQqyiQSHg7gKwAWAQgRWEc/gB4AHwPoEyjrGXYxAZgF4KuOh3pZCqLR0eV4RsSoQAwAZgOIBfASAAJhJoga/1cAHQCsQioUAgDxvghglWNOC9GDLy/ZjA8B/A2AnY8QvgCoAKQB+DKfSiXgeQSgHsCQt7L5ALAAwHeeY69P1UYaDVcAPPQGBG8BICOXBEDuTSUzWHYMwHWHkfSoWk8BoAbTXCdj93kgMo5kGwgQt+QJANT4bwNYPJ0wH3tvBvD+dCB4AkDi56jnXfuARoLJXcdMBwDN+W/6WM96q84H7myCOwDI2q/zYYPnKRBkB96banWYCgBa51/3waXO00a7lqMl8t3J/ITJAKD/MnzIyeHbaFc+cpZqXT3GyQBYAuA1sWr1MTmNAD5y1skVAApsNgoZ+tnZ2VHbtm1LVKvViwMDAwPFAGB4eHj4/v375jNnzpjOnTv3iQCZNBXKnQMoVwDing6Tl/lWUF1dnZ6RkZEhk8kUfGW447Pb7f+tra2t3bBhwx8FyL/11Li3cvzOAFAo+wbfkPbw4cMvHTp06IcCFPOY9ciRIyV5eXkUDvMhCqX/AIDNJzgD8DUACXwkEk9fX99PwsLCIum7zWaz3rx5s+nJkydeR2eT1R8cHKyKi4t7ValU0hQFwzDd4eHhP+WrK4Dmp6vcHVcA9I58nddyIyIiZvX09BRzPkNpaenvdu/eTb64aHT69OlVu3bt+j4JtNvtY5GRkYbe3l6+WSHKLFU4A0A5vEy+2mq12oUXLlzI5/g3btyYX1FRQQlN0Uiv1y8sLy8fr0Or1eZdvHjRq9DXRZkqGrjcFBDk77sCoNPp8isrK0UFQII62DiBA0ArJHs7nXKbNm2KTEpKiuKcEDuN4TE2UmU/6bfz97GxMXtjY2N3bW3tP7lem64OHkONss2VBADl7bN4CBhncafcvn37YoqKit50MbjTVkdLnsFg+GVJScnfqbAEAJDY3xMA0U+zKN+aViM3BdwpV15enqbX68nAek2VlZUVOp2Ocn1SAfAnAuAVx+O1gp4Mz9jYWFVdXd2uBQsWLJbJZOyU4z4++8r99dknJ/PRo0efrF+/vqSlpeUJ/ZeamhpSX19fyL1PS0t7q6GhgYaxEGqjClMduzi8BUk0PJ/Rx2QyvREXF7eqtbW1OTExsYy3wv9n/JgAoLA3TIiwmQKAdExOTg6+cePGgMOIClGbeBkCgNxfiv9500wAEBoaqrx9+7YhKirqRbPZ3BkdHf0rEUAYIgCyAbAuJl+aCQBu3bqVvWLFildFtgFWAmCb0LSXOwDmzZunqKmpyVSr1S9MBjDDMExOTs67HR0dU8YN58+ffy0rK4tGKksPHz68v2jRokIRRsCY5ACcPXs2acuWLW79jOvXr9cnJyezvrkr7dmzJ/rUqVNvyuVyJb2zWq1Da9euLaivr7fwHbFOfCwAkk6BkydPvpKbm7vDnbKXL19+Lz09/ZJrmfj4+C9evXr17aCgIHa7nRzIgwcPFhcUFNAWuRjETgFJjaBcLofRaPyGRqOhKfBMCq63t5fZsWNHg8VisTm3SKVSKTo7O/dGRkbSQQuWqqurL2ZmZtL+n1jEGkGfXAZNJtP3EhISUriWdnZ2tmk0mt+K1XKHHHYZ9DlHqLS0NGHnzp05XGP7+/t7ly9f/nONRqPavn37141G41+uXLkihg1gHSFJXWFveywnJ+cFo9G4X6FQ0CEqjIyMfKrT6QooMmQYJi80NDTCYrH0hIWFHfFW9iTlWVdY0mDIGyWXLVsWZDKZ3p47d26og89eWFj4mwMHDrDpq9HR0RKlUjnLZrONBAQEiJF/ZIMhScNhTwGYPXu2rKury6BWq5dyPK6rgwQAsOEwkaQJEU9AaGhoeD0lJeW7XNl79+51LF269Nejo6PjZ39EBmA8IUJ1PteU2PHjx1/eu3fvTq7xjx8/7ouPjz969+7dCYckRQZgQkrsuSVFyY0uKyv7sVKppNOjbEp98+bNvygrK6PDkRPIZrOVKBQKsgHWgICAH3kystyUmZAUpXKC0uLd3d3FMpmMPTvkaVo8Ojp6Tltb21vBwcHjp82Ki4uNubm54zs3XAPWrFkTXldX9zP6zTBMT3h4uJBV4Jm0OMkVdWOktbW1aWBgYEKAYzabGYPB8KHVarWTh9jV1fWDmJiY5VwjGxsb31+9enUlrQZarVYtl8tZGzV//vwgvV6fHhISEkG/W1paPli5cuU7AkbApBsjM7I1VlNTU0V7e67Ojtls/mjJkiUnyQU2m81HOf/ftZEjIyPDKSkph5uamqgX+dCUW2MkTPLN0ebm5j9TOuvSpUtr1q1bt4EqHRoa6k9KSjra3t4+RDnE9vb2Im46ObdwcHDQkp+ff/bEiRN3+bTcwTPl5ii9l3R73GKxMFu3bn3n2rVrAzExMXOqqqqyVCpV4P79+8udd5KOHTu2IjU1NZabAoODg/++c+fOg6KiovYHDx4IORs87fY4geDXByQIAL8/IkMg+PUhKc6++PUxOQ4Evz4oyYEgKE4QsFyJwSr4qCwp4feHpTkQ/Pa4vPNQ9NsLE84g+PWVGQ4Iv740xYFAHqPfXptznhJ+e3HSdZ3226uzkzksfnl5eirPzaevz/8P8b+yjJU9BJsAAAAASUVORK5CYII=",fo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABuJJREFUeF7tW21Mk1cUfiiFOVjDGAhbFFmWTTBhY4PhIC5ABGGaiZ2tg80slWUuNSTGxUQ3wvwxxuSHf4wLi+FjJSbDYUexsLDsyzINDGVTx3CTuCygbCiiLBZq6dc4b1pWC/TjfW9Zm3qSN1F6z7nnfd57zz3nufeGwf/yIIDHAMQCiAHwMIBlACLsD3lgsj93AUwC+AfAbQB/AzD408UwPxlfDuBJACsAPCKwj1sARgFcATAu0NY8dZYARAJItT/0lf0hNDp+tz8zLDpgAcADAJ4GkAaAQFgKoZf/FcAAAKOQDoUAQLqrAbxgn9NC/OCrSzGjD8AQABsfI3wBeAhAAYBEPp36Qec6gO8A6H21zQeARwEU/Y9ffbF3pNHwNYAxX0DwFQAKci8CEPnSyRK2tQI4Yw+SXnXrLQD0wjTXKdgFg1BwpNhAgLgVbwCgl98AINmTsQD7fRjAN55A8AaAnCD68q7fgEZCr7sP4wkAmvO5AfZlfXXnB3cxwR0AFO1fDuCA5y0QFAc6F1sdFgOA1vmtAbjUefvSru1oiWxbKE9YCAD6W0kAJTl8X9pVj5IlrWvGuBAAKQDyWPUaYHa6AVx29skVACpsSlkP/bi4OHFZWdmq9PT0RJFI5Cnwwmq12gYGBq4fP3786vj4OHEFrISmwufOBZSrM8/PDpMMVr2RnX379qVUVVXtkEgkPvMCU1NTtw8ePNhcU1PzG0Offp4N7v0Oe84AUCn7OsuSduPGjcu1Wu37YrGYRhYvsVgsM3K5/MP29naawyyESunPAHB8gjMAzwDIZtGDw8bZs2e3Z2VlcXmE2WyeGR4evmyxWDymp+Hh4aLk5OSnxGIxUWc4f/58T0ZGRjND336cXeV+cQXgVTtfx6yfsbGxysTERC6FPnz4cP2ePXvmhp6nTmpra5/dv3//Lmo3MTExGh8f/4EnHR9+J2ap1RkA4vBe8cGAV00nJyerY2JiEqhxRUVFbV1d3Z9eKQJQKBRJKpWqitrr9fpbEonkPW91vWynIY7RMQX8ku8HOABcneAAQM6XvaUlTqfTKZKSkh53RZ4iv0gkEtPfbTabxWaz+UJbhYlEonDStVqtljt37ky42r927drVwsJC1exU40OQEtusJgCIt3/Dy2Ezr9mhQ4ee27t3r5KvvlC9I0eONOzevfscTzvHCIAnZlmUQp4GUFxcHN/R0VEVERFBQC6pmM3muzKZrEar1d7g2fG3BECm/eFpA1izZk1UXl4eZXnzbKSmpsZHR0fzpssNBsPMpUuXbroatlqtOH369I3BwcEp3o4DPxEA6+27OALs/KeamZkp6ejo2BUZGblMqVTWq9Vq2t4SJFKpNLG+vv5tk8lkkslkn/T29tLWGQu5QgBQ2RvPwhrZaGlpWV9WVkb1BHp6er5ft24d5d6cxMbGipuamtYbDAZTeXm5zmg0zgVFCqYNDQ0FBoPBqFAouk0m09xvOp1OnpeXR7Qc2travpDJZMT+spCbBAClv1T/MxGNRlMslUoJVPT395/Jyso65jCs0WiKpFKpjP5/9OhRlVKpnKOrTp48+VJJSQmXi9TV1TVVVFQQqclJb2/va9nZ2fn0766uLu2mTZu+ZOIsoCcAFAB45+qujrgDwN2L9PX1bV+7di2XNnd2drZv3ry5awkAMBIAb7GkvYIMAOt9AO5PgSUMggEYA7ggyHQZDLIYwC2DTBOhIAOAS4QEp8LOS2GQAcClwoKKoSDPA7hiSFA5HOQAcOUwCW9CxBcATp06tTU/P7+YdNRqtXrbtm20fc1Jd3e3PDc3l8v3W1tbW0tLS+nIiz9T4TlChDphRom5iwEFBQVxKpWq3Gw2m6RSaePFixfnzvQUFRXFNTY2vjkzM2MsKSlpdC5z/VQL3EOJMSNF3QHAt4DxEwD3kKLkGxNaPEgAmEeLEwBMNkZOnDixQS6XU0zB4ODgubS0tAa+X96hd+HChfL09HRu00ar1Wq2bNnylUCbC26MMNkaq6ysTK2pqXmHHLTZbNaRkZHLer1+mq/D0dHRUcnJyavDwsI4hri6uvrjAwcO0PzlK4tujZFBwZujMTEx4UNDQ+8mJCSs4uvhYnq0Q5SSkvLRxMSEWYDtRTdHySaT7XF7tN+xcuVKOkrLREZHR//YuXPnp11dXUJOjHvcHidnmR2QoO2tnJycFVFRUbwZp+npaWNfX99fzc3NI8QECxSPByTIfsgfkSEQQvqQlGOUhfQxOQcIIX1Q0gECszpBYADjoy74qCx1GvKHpR0ghOxxeeehF7IXJpxBCOkrMw4gQvrSlAMEyhhD9tqc85QI2YuTrutyyF6dXShBCcnL04tlagF9ff5ft2mijHHWhrsAAAAASUVORK5CYII=",Co=W({name:"select-lessonware",emits:["close","confirm"],setup(o,{emit:i}){const t=$e();Ds();const p=pt(),n=H({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 Cu({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(h){console.log(h)}},s=gt(()=>u(),500),d=r=>{i("confirm",r),i("close")};return ee(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:X.selectLessonware},[e("div",{class:X.attendClassSearch},[e(Xe,{placeholder:"请输入教材名称",clearable:!0,value:n.keyword,"onUpdate:value":r=>n.keyword=r,onKeyup:r=>{r.code==="Enter"&&s()},onClear:()=>{n.keyword=null,s()}},{prefix:()=>e("span",{class:"icon-search-input",onClick:()=>s()},null)}),e(Nt,{placeholder:"请选择乐器",value:n.instrumentId,"onUpdate:value":[r=>n.instrumentId=r,()=>s()],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(su,{placeholder:"全部版本",clearable:!0,options:[{id:null,name:"全部版本"},...n.musicTagList],labelField:"name",valueField:"id",value:n.bookVersionId,"onUpdate:value":[r=>n.bookVersionId=r,()=>s()]},null),e(su,{placeholder:"全部年级",options:[{label:"全部年级",value:null},...ns.grades],value:n.currentGradeNum,"onUpdate:value":[r=>n.currentGradeNum=r,()=>s()],clearable:!0,filterable:!0},null)]),e(Ae,{class:X.classList},{default:()=>[e(fe,{show:n.loading,class:X.content},{default:()=>[e(ne,{class:X.teachingSpace},{default:()=>[e("div",{class:X.item,key:"item--1",onClick:()=>{n.selectItem={},n.teachingStatus=!0}},[e("div",{class:X.cover},[e("div",{class:X.itemImg},[e("div",{class:X.itemBg},null),e(de,{objectFit:"cover",src:mo,lazy:!0,previewDisabled:!0,onLoad:r=>{r.target.dataset.loaded="true"}},null)])])]),n.list.map((r,h)=>e("div",{class:X.item,key:"item-".concat(h),onClick:()=>d(r)},[e("div",{class:X.cover},[e("div",{class:X.itemImg},[e("div",{class:X.itemBg},null),e(de,{objectFit:"cover",src:r.coverImg,lazy:!0,previewDisabled:!0,onLoad:l=>{l.target.dataset.loaded="true"}},null),r.customFlag&&e(Ce,null,[e("div",{class:X.iconCustom},null),e("div",{class:X.editContainer},[e("div",{class:X.editBtnGroup},[e("img",{src:go,class:X.imgBtn,onClick:l=>{l.stopPropagation(),n.selectItem=r,n.teachingStatus=!0}},null),e("img",{src:fo,class:X.imgBtn,onClick:l=>{l.stopPropagation(),n.removeVisiable=!0,n.removeRow=r}},null)])])])])]),e("div",{class:X.itemName},[r.name])]))]})]})]}),e(ae,{maskClosable:oe,show:n.teachingStatus,"onUpdate:show":r=>n.teachingStatus=r,preset:"card",showIcon:!1,class:["modalTitle background",X.teachingModal],title:"自定义教材",blockScroll:!1},{default:()=>[e(ls,{item:n.selectItem,onClose:()=>n.teachingStatus=!1,onConfirm:()=>{u(),n.selectItem={}}},null)]}),e(ae,{maskClosable:oe,show:n.removeVisiable,"onUpdate:show":r=>n.removeVisiable=r,preset:"card",class:["modalTitle",X.removeVisiable],title:"删除教材"},{default:()=>[e("div",{class:X.studentRemove},[e("p",null,[F("是否删除该教材")]),e(ne,{class:X.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=W({name:"lessons-guide",emits:["close"],setup(o,{emit:i}){const t=H({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:Vt("lessons1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:ce(-4),left:ce(-50),width:ce(420),height:ce(228)},btnsStyle:{bottom:ce(35),left:ce(111)},eleRectPadding:{left:7,top:7,width:14,height:-9}}],step:0}),p=N(!1),n=N({});(async()=>{try{const l=localStorage.getItem("teacher-guideInfo");l?n.value=JSON.parse(l)||null:n.value={},n.value&&n.value.lessonsGuide?p.value=!1:p.value=!0}catch(l){console.log(l)}})();const a=()=>{var c,E,y,C;const l=document.getElementById("lessons-".concat(t.step));if(l){const B=l.getBoundingClientRect();console.log(l,B,"eleRect");const v=((c=t.steps[t.step].eleRectPadding)==null?void 0:c.left)||0,S=((E=t.steps[t.step].eleRectPadding)==null?void 0:E.top)||0,g=((y=t.steps[t.step].eleRectPadding)==null?void 0:y.width)||0,b=((C=t.steps[t.step].eleRectPadding)==null?void 0:C.height)||0;t.box={left:B.x-v+"px",top:B.y-S+"px",width:B.width+g+"px",height:B.height+b+"px"},console.log("coai-".concat(t.step),t.box)}else r()},s=async l=>{try{if(l!=="prepare-lessons")return;n.value?n.value.lessonsGuide=!1:n.value={lessonsGuide:!1};try{ct({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(n.value)})}catch(c){console.log(c)}t.step=0,a(),p.value=!0}catch(c){}};ee(()=>{setTimeout(()=>{a()},0),window.addEventListener("resize",d),V.on("teacher-guideInfo",s)});const d=()=>{a()};De(()=>{window.removeEventListener("resize",d),V.off("teacher-guideInfo",s)});const r=()=>{if(t.step>=4){h();return}t.step=t.step+1,a()},h=async()=>{n.value?n.value.lessonsGuide=!0:n.value={lessonsGuide:!0};try{ct({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(n.value)})}catch(l){console.log(l)}p.value=!1};return()=>e(Ce,null,[p.value?Pt(e("div",{"onUpdate:show":l=>p.value=l,class:["n-modal-mask","n-modal-mask-guide"]},[e("div",{class:re.content,onClick:()=>r()},[e("div",{class:re.backBtn,onClick:l=>{l.stopPropagation(),h()}},[F("跳过")]),e("div",{class:re.box,style:{...t.box},id:"modeType-".concat(t.step)},[t.steps.map((l,c)=>{var E,y,C,B,v,S;return e("div",{onClick:g=>g.stopPropagation(),class:re.item,style:l.type=="bottom"?{display:c===t.step?"":"none",left:"".concat((E=l.eleRect)==null?void 0:E.left,"px"),top:"-".concat((y=l.imgStyle)==null?void 0:y.height)}:l.type=="left"?{display:c===t.step?"":"none",top:"".concat(parseFloat((C=t.box)==null?void 0:C.height)/2-parseFloat((B=l.imgStyle)==null?void 0:B.height)*1920/100/2-14,"px")}:{display:c===t.step?"":"none",left:"".concat((v=l.eleRect)==null?void 0:v.left,"px"),top:"".concat((S=t.box)==null?void 0:S.height)}},[e("img",{class:re.img,style:l.imgStyle,src:l.img},null),e("div",{class:re.btns,style:l.btnsStyle},[t.step+1==t.steps.length?e(Ce,null,[e("div",{class:[re.btn],onClick:()=>h()},[F("完成")])]):e("div",{class:re.btn,onClick:()=>r()},[F("下一步 ("),t.step+1,F("/"),t.steps.length,F(")")])])])})])])]),[[wu,p.value,"show"]]):null])}}),ho=W({name:"directory-main",props:{sidebarShow:{type:Boolean,default:!0}},setup(o){const i=vu(),t=_e(),p=Mt(),n=N(!0),u=H({lastUseCoursewareId:i.query.lastUseCoursewareId?i.query.lastUseCoursewareId+"":null,unit:i.query.unit?i.query.unit+"":null,showSelectBookStatus:!1,coursewareStatus:!1}),a=async()=>{var C;try{const{data:B}=await Cu({page:1,rows:99,type:"COURSEWARE",enableFlag:1}),v=B.rows||[];if(v.length>0){const S=v.find(_=>{var L;return _.id===(u.lastUseCoursewareId||((L=p.getUserInfo)==null?void 0:L.lastUseCoursewareId))});let g=null,b=null;if(S?(t.setBaseCourseware(S),g=S.id,b=S.instrumentIds):(t.setBaseCourseware(v[0]),g=(C=v[0])==null?void 0:C.id,b=v[0].instrumentIds),h(g),b){const{data:_}=await au({instrumentIds:b});t.setInstrumentList(_)}}u.showSelectBookStatus=!0}catch(B){}},s=async()=>{try{const C=t.getBaseCourseware;if(!C.id)return;const{data:B}=await Qu({id:C.id}),v=B.lessonList||[],S=r(u.unit,v);v.forEach((b,_)=>{if(b.selected=!1,S.length>1)b.id===S[0]&&(b.selected=!0,b.knowledgeList.forEach(L=>{L.id===S[1]&&(t.setSelectKey(L==null?void 0:L.id),t.setLessonCoursewareId(L==null?void 0:L.lessonCoursewareId),t.setLessonCoursewareDetailId(L==null?void 0:L.lessonCoursewareDetailId))}));else if(_===0){b.selected=!0;const L=b.knowledgeList[0];t.setSelectKey(L==null?void 0:L.id),t.setLessonCoursewareId(L==null?void 0:L.lessonCoursewareId),t.setLessonCoursewareDetailId(L==null?void 0:L.lessonCoursewareDetailId)}}),t.setTreeList(v);const g=t.getInstrumentId;if(g){const b=t.getFormatInstrumentList;let _=!1;b.forEach(L=>{var m;((m=L.instruments)==null?void 0:m.length)>0&&L.instruments.forEach(w=>{w.value==g&&(_=!0)}),L.value==g&&(_=!0)}),_||d()}else d()}catch(C){}},d=()=>{const C=t.getFormatInstrumentList;if(C.length>0){const B=C[0];if(B.instruments.length>1){const v=B.instruments[0];t.setInstrumentId(v.value)}else t.setInstrumentId(B.value)}},r=(C,B,v=[])=>{for(const S of B){if(S.knowledgeList&&S.knowledgeList.length>0){const g=r(C,S.knowledgeList,[...v,S.id]);if(g.includes(C))return g}if(S.id===C)return[...v,C]}return v},h=async C=>{try{await $u({coursewareId:C}),p.getInfo()}catch(B){}},l=C=>{t.setSelectKey(C.id),t.setLessonCoursewareId(C.lessonCoursewareId),t.setLessonCoursewareDetailId(C.lessonCoursewareDetailId)},c=async C=>{n.value=!0,u.lastUseCoursewareId=C.lastUseCoursewareId,u.unit=C.unit,await a(),await s(),n.value=!1},E=async C=>{if(t.setBaseCourseware(C),C.instrumentIds){const{data:B}=await au({instrumentIds:C.instrumentIds});t.setInstrumentList(B);let v=!1,S=null;if(B.forEach((g,b)=>{Array.isArray(g.instruments)&&g.instruments.forEach((_,L)=>{_.id===t.getInstrumentId&&(v=!0),b===0&&L===0&&(S=_.id)})}),await s(),v){const g=S;t.setInstrumentId(g)}else d()}h(C.id)},y=z(()=>{const C=t.getBaseCourseware.instrumentNames;return C?C.split(",").join("、"):""});return ee(async()=>{n.value=!0,await a(),await s(),n.value=!1,V.on("onChangeClass",async C=>{c(C)})}),()=>e(Ce,null,[e("div",{class:Z.directoryList},[u.showSelectBookStatus&&(t.getBaseCourseware.id?e("div",{id:"lessons-0",class:Z["select-directory-info"]},[e("div",{class:Z.itemImg,onClick:()=>u.coursewareStatus=!0},[e(de,{objectFit:"cover",src:t.getBaseCourseware.coverImg,lazy:!0,previewDisabled:!0,onLoad:C=>{C.target.dataset.loaded="true"}},null)]),e("div",{class:Z.itemContent},[e("h2",null,[e(Tt,{text:t.getBaseCourseware.name},null)]),e("div",{class:Z.subjects},[e(Tt,{text:y.value},null)]),e("div",{class:Z.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:Z["select-directory"],onClick:()=>u.coursewareStatus=!0},[e("span",{class:["cr-ellipsis"],title:t.getBaseCourseware.name},[t.getBaseCourseware.name||"请选择教材"]),e(Bu,{class:Z.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(Ae,{class:Z.scrollBar},{default:()=>[e(fe,{show:n.value},{default:()=>[e("div",{class:[Z.listSection,!n.value&&t.getTreeList.length<=0?Z.emptySection:""]},[t.getTreeList.map((C,B)=>e("div",{class:Z.treeParent,key:"parent"+B},[e("div",{class:[Z.treeItem,Z.parentItem],onClick:()=>{t.getTreeList.forEach(v=>{C.id!==v.id&&(v.selected=!1)}),C.selected=!C.selected}},[C.knowledgeList&&C.knowledgeList.length>0&&e("span",{class:[Z.arrow,C.selected?Z.arrowSelect:""]},null),e("p",{class:[Z.title,C.selected?Z.titleSelect:""]},[e("span",{class:[Z.dir,C.selected?Z.dirSelect:""]},null),C.name])]),C.selected&&C.knowledgeList&&C.knowledgeList.map((v,S)=>e("div",{key:"child"+S,class:[Z.treeItem,Z.childItem,Z.animation,t.getSelectKey===v.id?Z.childSelect:""],onClick:()=>{t.getIsEditResource?V.emit("pageBeforeLeave",()=>l(v)):l(v)}},[e("span",{class:Z.childArrow},null),e("p",{class:Z.title},[v.name])]))]))]),!n.value&&t.getTreeList.length<=0&&e(Fe,null,null)]})]}),e(ae,{maskClosable:oe,show:u.coursewareStatus,"onUpdate:show":C=>u.coursewareStatus=C,preset:"card",showIcon:!1,class:["modalTitle background",Z.coursewareModal],title:"切换教材",blockScroll:!1},{default:()=>[e(Co,{onClose:()=>u.coursewareStatus=!1,onConfirm:C=>{t.getIsEditResource?V.emit("pageBeforeLeave",()=>E(C)):E(C)}},null)]})]),u.showSelectBookStatus&&!o.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_13qcv_1",Bo="_tipsLeft_13qcv_13",yo="_tips_13qcv_1",bo="_iconTips_13qcv_22",So="_btnNoTips_13qcv_27",_o="_btnGroupClass_13qcv_33",Io="_listContainer_13qcv_36",Do="_listSection_13qcv_41",ko="_emptySection_13qcv_45",Lo="_listItems_13qcv_49",xo="_knowledgePoint_13qcv_58",To="_btnItem_13qcv_58",Vo="_btnTitle_13qcv_63",Ro="_operationGroup_13qcv_85",jo="_iconCUp_13qcv_96",Po="_iconCDown_13qcv_104",Mo="_iconCRemove_13qcv_112",No="_addKnowledgePoint_13qcv_120",Oo="_iconCAdd_13qcv_130",Wo="_list_13qcv_36",Go="_itemWrap_13qcv_144",Uo="_itemWrapBox_13qcv_149",zo="_itemOperation_13qcv_157",Ko="_iconDelete_13qcv_163",qo="_attendClassModal_13qcv_199",Zo="_addCourseware_13qcv_204",Jo="_removeVisiable1_13qcv_210",Ho="_studentRemove_13qcv_216",Qo="_btnGroupModal_13qcv_227",$o="_addMusicItem_13qcv_234",Xo="_addMusicName_13qcv_255",Yo="_addOtherSource_13qcv_265",J={tipsContainer:vo,tipsLeft:Bo,tips:yo,iconTips:bo,btnNoTips:So,btnGroupClass:_o,listContainer:Io,listSection:Do,emptySection:ko,listItems:Lo,knowledgePoint:xo,btnItem:To,btnTitle:Vo,operationGroup:Ro,iconCUp:jo,iconCDown:Po,iconCRemove:Mo,addKnowledgePoint:No,iconCAdd:Oo,list:Wo,itemWrap:Go,itemWrapBox:Uo,itemOperation:zo,iconDelete:Ko,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",du={addCoursewareItem:tn,btnGroupModal:un};function sn(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!ke(o)}const an=W({name:"add-courseware-item",props:{coursewareList:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(o,{emit:i}){const t=N([]);return()=>{let p;return e("div",{class:du.addCoursewareItem},[e(yu,{value:t.value,"onUpdate:value":n=>t.value=n},{default:()=>[e(ks,{yGap:18,cols:2},sn(p=o.coursewareList.map((n,u)=>e(Ls,null,{default:()=>[e(xt,{value:u},{default:()=>[n.name]})]})))?p:{default:()=>[p]})]}),e(ne,{class:du.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",mn="_theoryModal_1sytn_53",gn="_subjectSyncModal_1sytn_57",fn="_attendClassModal_1sytn_60",Cn="_attendClassSaveModal_1sytn_66",me={addOtherSource:on,sourceItem:nn,coverImg:ln,name:rn,addOtherSourceModal:cn,instrumentModal:dn,musicModal:pn,theoryModal:mn,subjectSyncModal:gn,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",kt={sourceRhythm:yn,btnGroup:bn},Sn=W({name:"source-rhythm",emits:["close","confirm"],setup(o,{emit:i}){const t=Mt(),p=N(),n=N(!0);let u="".concat(origin,"/classroom-app/#/tempo-practice?v=").concat(Date.now(),"&Authorization=").concat(t.getToken,"&platform=modal");/(localhost)/.test(location.host)&&(u="https://test.kt.colexiu.com/classroom-app/#/tempo-practice?v=".concat(Date.now(),"&Authorization=").concat(t.getToken,"&platform=modal"));const a=()=>{var d,r;(r=(d=p.value)==null?void 0:d.contentWindow)==null||r.postMessage({api:"getTempoSetting"},"*")},s=d=>{var r;if(((r=d.data)==null?void 0:r.api)==="getTempoSetting"){const h=d.data.data?JSON.parse(d.data.data):{};i("confirm",{dataJson:JSON.stringify(h.setting),coverImg:"https://oss.dayaedu.com/ktqy/171013700931689a322a6.png"})}};return ee(()=>{window.addEventListener("message",s)}),De(()=>{window.removeEventListener("message",s)}),()=>e("div",{class:kt.sourceRhythm},[e(fe,{show:n.value},{default:()=>[e("iframe",{ref:p,onLoad:d=>{n.value=!1,xs(d.target)},class:[kt.container,"musicIframe"],frameborder:"0",src:u},null),e(ne,{class:kt.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{round:!0,type:"primary",onClick:a},{default:()=>[F("确认添加")]})]})]})])}}),_n="_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",Te={container:_n,iconBack:In,separator:Dn,wrap:kn,listWrap:Ln,listWrapEmpty:xn,btnGroup:Tn},Vn="_searchGroup_1n8vo_1",Rn="_btnType_1n8vo_5",jn="_swipeControll_1n8vo_13",Pn="_leftIcon_1n8vo_16",Mn="_disabled_1n8vo_28",Nn="_carouselGroup_1n8vo_42",On="_carouselContainer_1n8vo_46",Wn="_inputSearch_1n8vo_57",Gn="_searchCatatory_1n8vo_78",Un="_addTrain_1n8vo_85",zn="_searchGroups_1n8vo_97",Kn="_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",ue={searchGroup:Vn,btnType:Rn,swipeControll:jn,leftIcon:Pn,disabled:Mn,carouselGroup:Nn,carouselContainer:On,inputSearch:Wn,searchCatatory:Gn,addTrain:Un,searchGroups:zn,instrumentList:Kn,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,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABApJREFUaEPlm8FrHFUcx3/f2Zk6M03xUBBE1KRQWgU9KFYQSw9pwOZgFfEgVKjYP0CsF2uhCBovFrwngmjRS8VEMB700FoVKtiDpWmKBwsigukKpWbeZGd2vvZtdsNms5udnZ3dCS8Le9l97/veZ3+/eb/3fu+3kJxfJEtBFD2BGAcJ7odgvwgfJLELkF16OFLuALwjgj8pXASxSJuXfMe5AqCa55SQhxhJJ6hUJ1HlMUImhLw3ky5wG5TvWMI5f0dpHkCUSaepU1+AJL0wjN9IKCdFuLvfyazvj7IFOeu69kcAVFbtTIDaDcOwepzkuxQ+kHXwNP0g+AvAGdctfZLFfXsGDMP4SJXJh0J5NM0Ec2sDWSjBest17W970UwNeNdaCML4PSFP9TJA7m2BKd+1T9+1KtNopwIkOaJUfI7Co2lEB90GgjnPs48B+K/bWF0BleJoItHXQnmsm9hQv4dctcR53vNwc7NxNwWswTG+LML7hjr51IPhHwv205tBdgTUbhmE0c9bznKt8JCrvus808ld2wLqBUWp+Kut8sx1M2j9mXyx3cLTFnBZRe8Xvlp2o9pgSUzt9Jx3Nhq45ZNanEuS+V71t0L7kmVNtsbJdRasbZTD6LehB/G8fh3Igu86jzfveNYBKhW/njCZyWu8InQsWCc8z/64MfYaoN44KxX/ntfeMkkSsSxr6Ix67+p59t7GBn0NUKno7YScymNGC9dvyIULP4nj2DIxfkhGxx7OQza1hgWc8jznA92hBlg7z6n477yOPNMzn0oYrtQmpK145Llx2bNnNPUE+2+Isu/Z9+vzZA1weSU+KtVktn/hVYXPv/hSyuV/1+QKgSxZL+y8x56rAQZBdJ7Cl/ICXFoqy+zcN2tWLMKSEJz3fedlrIaGuJw5zdDhV1lauiWzc/PFQQK3fdfejaBSOcBYLudlvWadwiFtOYAgiN6k8OwgALVmkZAQnMSyqkwL5cSgAAuFhMwgUNEPJA8OErAoSACXEKjKH6QMJUgN210BuYnlILqVV4BP4wWdICcnJ2Rs9KE0Ej20QVm76ArJHT306rtpO8iRkRF57fgrfWs3CwComA+4DVzU8EXG+DBheKCf3gZbtUrlKYnll1zX57rYsAP7Bga92Tb+uGT8gXdbpCyMTzppK+aZNry2sCgXL+q0oSOHxw/JWNFpQw04iMQvANHvYb46Jn5XrWhw6r5uRbMvXzSk0ddnjWfF6AvQuquafYVdhzS3CKHhqkaXkayDNLUQqAFpdClXE6S5xXjNWy1jyymbIY0uiG0BNbOkufV00FSU/iohhzPfFq8WpX/PEj7bEkXp7Y5B2n1VFD0pMZ4l+AgE+7r8reAGiOti80fPcX7NUpe92XHsf6EH9ozNKnEhAAAAAElFTkSuQmCC";function ul(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!ke(o)}const sl=W({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(o,{emit:i}){const t=H({currentIndex:0,keyword:"",wikiCategoryId:o.wikiCategoryId||"",maxIndex:0}),p=H({showSlide:!1}),n=()=>{i("search",t)},u=N(),a=s=>{var d,r;s==="left"?(d=u.value)==null||d.prev():s==="right"&&((r=u.value)==null||r.next())};return ee(async()=>{Du.nextTick(()=>{const s=document.querySelector(".carouselContainer"),d=s&&s.getBoundingClientRect().width||0,r=document.querySelectorAll(".n-carousel__slide");let h=0;r.forEach(l=>{const c=l.getBoundingClientRect();h+=c.width}),h>=d&&(p.showSlide=!0)})}),()=>{let s;return e("div",{class:ue.searchGroup},[e("div",{class:[ue.searchCatatory]},[e(ne,{size:"small",class:ue.btnType},{default:()=>[o.categoryChildList.length>0?e(G,{type:t.wikiCategoryId===o.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==o.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=o.wikiCategoryId,n()}},{default:()=>[F("全部")]}):"",e("div",{class:[ue.carouselGroup]},[e(zt,{ref:u,slidesPerView:"auto",loop:!1,class:[ue.carouselContainer,"carouselContainer"],showDots:!1,draggable:p.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":d=>{t.currentIndex=d}},ul(s=o.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]})]})))?s:{default:()=>[s]}),p.showSlide&&e(ne,{class:ue.swipeControll},{default:()=>[e("div",{onClick:()=>a("left")},[e(de,{previewDisabled:!0,class:[ue.leftIcon],src:Ge},null)]),e("div",{onClick:()=>a("right")},[e(de,{previewDisabled:!0,src:Ge},null)])]})])]}),e(Ot,{class:ue.inputSearch,placeholder:"请输入乐器名称",round:!0,onSearch:d=>{t.keyword=d,n()}},null)])])}}}),al=W({name:"instrument-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["confirm"],setup(o,{emit:i}){Ue();const t=H({searchWord:"",loading:!1,pageTotal:0,finshed:!1,pagination:{page:1,rows:18},searchGroup:{type:"INSTRUMENT",keyword:"",wikiCategoryId:o.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async()=>{t.loading=!0;try{const{data:a}=await Wt({...t.pagination,...t.searchGroup}),s=a.rows||[];s.forEach(d=>{d.knowledgeWikiCategories&&d.knowledgeWikiCategories.length&&(d.categories=d.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)}),t.tableList.push(...s),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 s=o.selectItems||[],d=s.findIndex(r=>r.id===a.id);d!==-1?s.splice(d,1):s.push(a),i("confirm",s)};return ee(()=>{p()}),()=>e("div",{class:ue.instrumentList},[e(sl,{class:ue.searchGroups,categoryChildList:o.categoryChildList||[],onSearch:a=>n(a),wikiCategoryId:o.categoryId},null),e(Ae,{class:ue.listContainer,style:{"max-height":"50vh"},onScroll:a=>{var h,l,c;const s=(h=a.target)==null?void 0:h.clientHeight,d=(l=a.target)==null?void 0:l.scrollTop,r=(c=a.target)==null?void 0:c.scrollHeight;s+d+20>=r&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p())}},{default:()=>[e(fe,{show:t.loading,"onUpdate:show":a=>t.loading=a,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:ue.list},[t.tableList.map(a=>e("div",{class:ue.itemWrap,onClick:()=>{t.item={content:a.id,title:a.name,type:"INSTRUMENT"},t.show=!0}},[e("div",{class:ue.itemWrapBox},[e("div",{class:ue.itemCard},[e("div",{class:[ue.itemImgSection,o.selectItems.findIndex(s=>s.id===a.id)!==-1&&ue.itemImgSectionSelected]},[e(de,{src:a.avatar+"?imageMogr2/strip/format/jpg/size-limit/15k!",class:ue.img,objectFit:"cover",previewDisabled:!0},null),e("i",{class:[ue.iconCheck],onClick:s=>{s.stopPropagation(),u(a)}},null)]),e("div",{class:ue.itemTitle},[a.name])])])])),!t.loading&&t.tableList.length<=0&&e(Fe,{style:{minHeight:"50vh"},description:"暂无乐器百科"},null)])]})]}),e(ft,{size:"large",show:t.show,"onUpdate:show":a=>t.show=a,item:t.item},null)])}});function ol(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!ke(o)}const nl=W({name:"content-instrument",emits:["confirm","close"],setup(o,{emit:i}){Ue();const t=H({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Gt({type:"INSTRUMENT",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&Se(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const n=async()=>{const u=[];t.selectItems.forEach(a=>{u.push({coverImg:mt.INSTRUMENT_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(Fe,{description:"暂无乐器百科"},null),e("div",{style:{minHeight:"55vh"}},[e(ze,{defaultValue:"myResources",paneClass:Te.paneTitle,justifyContent:"center",paneWrapperClass:Te.paneWrapperContainer,value:t.tabValue,"onUpdate:value":a=>t.tabValue=a},ol(u=t.categoryList.map(a=>e(Ke,{name:"name-".concat(a.id),tab:a.name},{default:()=>[e(al,{selectItems:t.selectItems,categoryId:a.id,categoryChildList:a.childrenList,onConfirm:s=>{t.selectItems=s||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ne,{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("确认添加")]})]})])}}}),ll=W({name:"cotnent-knowledge",emits:["close","confirm"],setup(o,{emit:i}){const t=N(!1),p=N(!1),n=N(),u="musicContent"+new Date().getTime()+Math.floor(Math.random()*100),a=Gs(u),s=H({fontSize:18,tableList:[],selectKey:null,details:{},selectCheckboxs:[]}),d=async()=>{t.value=!0,p.value=!0;try{const{data:l}=await Os({type:"COURSEWARE"});if(s.tableList=l||[],s.tableList.length>0){const c=s.tableList[0].lessonCoursewareDetailKnowledgeDetailList;if(s.tableList[0].selected=!0,c&&c.length){const E=c[0];s.selectKey=E.id,await r()}s.tableList.forEach(E=>{E.checked=!1,E.indeterminate=!1})}}catch(l){}p.value=!1,t.value=!1},r=async()=>{p.value=!0;try{const{data:l}=await Ws({id:s.selectKey});p.value=!1,s.details=l,Se(()=>{var B;const E=new DOMParser().parseFromString(l.desc,"text/html"),y=document.querySelectorAll(".only-child-select");y.length>0&&y.forEach(v=>{v.remove()});const C=E.body.childNodes;C==null||C.forEach(v=>{v==null||v.classList.add("only-child-select")}),(B=document.querySelector("#"+u))==null||B.appendChild(a.processNode(E.body))})}catch(l){}p.value=!1},h=()=>{const l=[];for(const E in s.selectCheckboxs){const y=s.selectCheckboxs[E],C=s.tableList[E];Array.isArray(C.lessonCoursewareDetailKnowledgeDetailList)&&C.lessonCoursewareDetailKnowledgeDetailList.forEach(B=>{y.includes(B.id)&&l.push(B)})}const c=[];l.forEach(E=>{c.push({coverImg:mt.THEORY_DEFAULT_COVER,title:"乐理知识-"+E.name,materialId:E.id,content:E.id})}),i("confirm",c)};return ee(()=>{d()}),()=>{var l;return e("div",{class:T.container},[e("div",{class:[T.wrap]},[e("div",{class:T.content},[e("div",{class:T.contentWrap},[e("div",{class:T.directoryList},[e("div",{class:[T.scrollBar,!t.value&&s.tableList.length<=0?T.empty:""],style:{height:"100%"}},[e(fe,{show:t.value,style:{height:"100%"}},{default:()=>[e("div",{class:[T.listSection]},[s.tableList.map((c,E)=>e("div",{class:[T.treeParent,c.selected&&T.treeParentSelected],key:"parent"+E},[e("div",{class:[T.treeItem,T.parentItem],onClick:()=>{s.tableList.forEach(y=>{c.id!==y.id&&(y.selected=!1)}),c.selected=!c.selected}},[c.lessonCoursewareDetailKnowledgeDetailList&&c.lessonCoursewareDetailKnowledgeDetailList.length>0&&e("span",{class:[T.arrow,c.selected?T.arrowSelect:""]},null),e("p",{class:[T.title,c.selected?T.titleSelect:""]},[e("span",{class:[T.dir,c.selected?T.dirSelect:""]},null),e("p",null,[c.name])]),e("div",{class:T.checkbox,onClick:y=>{y.stopPropagation()}},[e(xt,{checked:c.checked,indeterminate:c.indeterminate,"onUpdate:checked":y=>{c.checked=y;const C=c.lessonCoursewareDetailKnowledgeDetailList||[];if(y){const B=[];C.forEach(v=>{B.push(v.id)}),s.selectCheckboxs[E]=B}else s.selectCheckboxs[E]=[];c.indeterminate=!1}},null)])]),e(yu,{value:s.selectCheckboxs[E],"onUpdate:value":y=>{s.selectCheckboxs[E]=y;const C=c.lessonCoursewareDetailKnowledgeDetailList||[];y.length<=0?(c.checked=!1,c.indeterminate=!1):y.length===C.length?(c.checked=!0,c.indeterminate=!1):(c.checked=!1,c.indeterminate=!0)}},{default:()=>[c.selected&&c.lessonCoursewareDetailKnowledgeDetailList&&c.lessonCoursewareDetailKnowledgeDetailList.map((y,C)=>e("div",{key:"child"+C,class:[T.treeItem,T.childItem,T.animation,s.selectKey===y.id?T.childSelect:""],onClick:()=>{s.selectKey!==y.id&&(s.selectKey=y.id,r(),a.onCloseSpeak(),n.value.$el.scrollTo(0,0))}},[e("span",{class:T.childArrow},null),e("p",{class:T.title},[y.name]),e("div",{class:T.checkbox,onClick:B=>B.stopPropagation()},[e(xt,{value:y.id},null)])]))]})]))])]}),!t.value&&s.tableList.length<=0&&e(Fe,{style:{height:"100%"}},null)])]),e("div",{class:T.musicStaff},[e("div",{class:T.musicTitleRight},[a.isSpeak.value?e("span",{class:T.textClose,onClick:a.onCloseSpeak},[e("i",{class:T.icon},null),F("关闭朗读")]):e("span",{class:T.textRead,onClick:a.onAllSpeak},[e("i",{class:T.icon},null),F("全文朗读")])]),e(fe,{show:p.value,ref:n,class:!p.value&&!((l=s.details)!=null&&l.desc)?T.empty:""},{default:()=>{var c,E;return[(c=s.details)!=null&&c.desc?e("div",{class:T.musicContent,id:u,style:{fontSize:s.fontSize+"px"}},[e("div",{id:"selectionCouser",class:[T.selectionCouser,!a.showDom.value&&T.hide]},[e("span",{class:T.textStart,onClick:a.onTextStart},[F("开始朗读"),e("i",{class:T.icon},null)]),e("span",{class:T.textReadOnly,onClick:a.onTextReadOnly},[F("只读这段"),e("i",{class:T.icon},null)])])]):"",!p.value&&!((E=s.details)!=null&&E.desc)&&e(Fe,null,null)]}})]),e("div",{class:T.changeSizeSection},[e("img",{src:Us,class:T.iconT},null),e("img",{src:zs,class:T.iconAddT,onClick:()=>{s.fontSize>=32||(s.fontSize+=1)}},null),e(qs,{value:s.fontSize,"onUpdate:value":c=>s.fontSize=c,vertical:!0,min:12,max:32},null),e("img",{src:Ks,class:T.iconPlusT,onClick:()=>{s.fontSize<=12||(s.fontSize-=1)}},null)])])])]),e(ne,{class:T.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{round:!0,type:"primary",onClick:h},{default:()=>[F("确认添加")]})]})])}}}),rl="_container_19ipk_1",il="_iconBack_19ipk_1",cl="_separator_19ipk_40",dl="_wrap_19ipk_45",pl="_listWrap_19ipk_49",ml="_listWrapEmpty_19ipk_54",gl="_btnGroup_19ipk_91",Ve={container:rl,iconBack:il,separator:cl,wrap:dl,listWrap:pl,listWrapEmpty:ml,btnGroup:gl},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",Sl="_list_1euh7_100",_l="_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",Rl="_itemTitle_1euh7_187",se={searchGroup:fl,btnType:Cl,swipeControll:Fl,leftIcon:hl,disabled:El,carouselGroup:Al,carouselContainer:wl,inputSearch:vl,searchCatatory:Bl,addTrain:yl,searchGroups:bl,list:Sl,itemWrap:_l,itemWrapBox:Il,itemCard:Dl,itemImgSection:kl,itemTag:Ll,iconCheck:xl,img:Tl,itemImgSectionSelected:Vl,itemTitle:Rl};function jl(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!ke(o)}const Pl=W({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(o,{emit:i}){const t=H({currentIndex:0,keyword:"",wikiCategoryId:o.wikiCategoryId||"",maxIndex:0}),p=H({showSlide:!1}),n=()=>{i("search",t)},u=N(),a=s=>{var d,r;s==="left"?(d=u.value)==null||d.prev():s==="right"&&((r=u.value)==null||r.next())};return ee(async()=>{Du.nextTick(()=>{const s=document.querySelector(".carouselContainer"),d=s&&s.getBoundingClientRect().width||0,r=document.querySelectorAll(".n-carousel__slide");let h=0;r.forEach(l=>{const c=l.getBoundingClientRect();h+=c.width}),h>=d&&(p.showSlide=!0)})}),()=>{let s;return e("div",{class:se.searchGroup},[e("div",{class:[se.searchCatatory]},[e(ne,{size:"small",class:se.btnType},{default:()=>[o.categoryChildList.length>0?e(G,{type:t.wikiCategoryId===o.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==o.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=o.wikiCategoryId,n()}},{default:()=>[F("全部")]}):"",e("div",{class:se.carouselGroup},[e(zt,{ref:u,slidesPerView:"auto",loop:!1,class:[se.carouselContainer,"carouselContainer"],showDots:!1,draggable:p.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":d=>{t.currentIndex=d}},jl(s=o.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]})]})))?s:{default:()=>[s]}),p.showSlide&&e(ne,{class:se.swipeControll},{default:()=>[e("div",{onClick:()=>a("left")},[e(de,{previewDisabled:!0,class:[se.leftIcon],src:Ge},null)]),e("div",{onClick:()=>a("right")},[e(de,{previewDisabled:!0,src:Ge},null)])]})])]}),e(Ot,{class:se.inputSearch,placeholder:"请输入音乐家名称",round:!0,onSearch:d=>{t.keyword=d,n()}},null)])])}}}),Ml=W({name:"musician-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["confirm"],setup(o,{emit:i}){Ue();const t=H({searchWord:"",loading:!1,pageTotal:0,finshed:!1,pagination:{page:1,rows:18},searchGroup:{type:"MUSICIAN",keyword:"",wikiCategoryId:o.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async(a=!0)=>{a&&(t.loading=!0);try{const{data:s}=await Wt({...t.pagination,...t.searchGroup}),d=s.rows||[];d.forEach(r=>{r.knowledgeWikiCategories&&r.knowledgeWikiCategories.length&&(r.categories=r.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)}),t.tableList.push(...d),t.pageTotal=Number(s.total),t.finshed=s.pages<=s.current}catch(s){}t.loading=!1},n=async a=>{t.pagination.page=1,t.searchGroup=Object.assign(t.searchGroup,a),t.tableList=[],p()},u=a=>{const s=o.selectItems||[],d=s.findIndex(r=>r.id===a.id);d!==-1?s.splice(d,1):s.push(a),i("confirm",s)};return ee(()=>{p()}),()=>e("div",{class:se.instrumentList},[e(Pl,{class:se.searchGroups,categoryChildList:o.categoryChildList||[],onSearch:a=>n(a),wikiCategoryId:o.categoryId},null),e(Ae,{class:se.listContainer,style:{"max-height":"50vh"},onScroll:a=>{var h,l,c;const s=(h=a.target)==null?void 0:h.clientHeight,d=(l=a.target)==null?void 0:l.scrollTop,r=(c=a.target)==null?void 0:c.scrollHeight;s+d+20>=r&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p(!1))}},{default:()=>[e(fe,{show:t.loading,"onUpdate:show":a=>t.loading=a,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:se.list},[t.tableList.map(a=>e("div",{class:se.itemWrap,onClick:()=>{t.item={content:a.id,title:a.name,type:"MUSICIAN"},t.show=!0}},[e("div",{class:se.itemWrapBox},[e("div",{class:se.itemCard},[e("div",{class:[se.itemImgSection,o.selectItems.findIndex(s=>s.id===a.id)!==-1&&se.itemImgSectionSelected]},[e(de,{src:a.avatar,class:se.img,objectFit:"cover",previewDisabled:!0},null),e("i",{class:[se.iconCheck],onClick:s=>{s.stopPropagation(),u(a)}},null)]),e("div",{class:se.itemTitle},[a.name])])])])),!t.loading&&t.tableList.length<=0&&e(Fe,{style:{minHeight:"50vh"},description:"暂无音乐家"},null)])]})]}),e(ft,{size:"large",show:t.show,"onUpdate:show":a=>t.show=a,item:t.item},null)])}});function Nl(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!ke(o)}const Ol=W({name:"content-instrument",emits:["confirm","close"],setup(o,{emit:i}){const t=H({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Gt({type:"MUSICIAN",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&Se(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const n=async()=>{const u=[];t.selectItems.forEach(a=>{u.push({coverImg:mt.MUSICIAN_DEFAULT_COVER,title:"音乐家-"+a.name,materialId:a.id,content:a.id})}),i("confirm",u)};return()=>{let u;return e("div",{class:Ve.container},[e("div",{class:Ve.wrap},[e("div",{class:[Ve.listWrap,!t.loading&&t.categoryList.length<=0&&Ve.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(Fe,{description:"暂无音乐家"},null),e("div",{style:{minHeight:"55vh"}},[e(ze,{defaultValue:"myResources",paneClass:Ve.paneTitle,justifyContent:"center",paneWrapperClass:Ve.paneWrapperContainer,"onUpdate:value":[a=>{sessionStorage.setItem("content-instrument-tab",a)},a=>t.tabValue=a],value:t.tabValue},Nl(u=t.categoryList.map(a=>e(Ke,{name:"name-".concat(a.id),tab:a.name},{default:()=>[e(Ml,{selectItems:t.selectItems,categoryId:a.id,categoryChildList:a.childrenList,onConfirm:s=>{t.selectItems=s||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ne,{class:Ve.btnGroup,justify:"center"},{default:()=>[e(G,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{round:!0,type:"primary",onClick:n},{default:()=>[F("确认添加")]})]})])}}}),Wl="_container_1o74q_1",Gl="_separator_1o74q_36",Ul="_wrap_1o74q_41",zl="_listWrap_1o74q_44",Kl="_listWrapEmpty_1o74q_49",ql="_btnGroup_1o74q_60",Re={container:Wl,separator:Gl,wrap:Ul,listWrap:zl,listWrapEmpty:Kl,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",mr="_itemImgSectionSelected_gol4m_168",gr="_popSelect_gol4m_171",fr="_spaceSection_gol4m_181",Cr="_textBtn_gol4m_184",Fr="_iconArrow_gol4m_195",hr="_textBtnActive_gol4m_204",K={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:mr,popSelect:gr,spaceSection:fr,textBtn:Cr,iconArrow:Fr,textBtnActive:hr};function pu(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!ke(o)}const Er=W({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(o,{emit:i}){const t=H({keyword:"",wikiCategoryId:o.wikiCategoryId||"",wikiCategoryIdChild:"",childIds:[],currentIndex:0}),p=N(),n=()=>{i("search",t)},u=(r,h)=>{const l={};return r==null||r.forEach(c=>{c.id===t.wikiCategoryIdChild&&(l.selected=!0,l.name=c.name)}),l},a=z(()=>{const h=(o.categoryChildList||[]).find(l=>l.id===t.wikiCategoryId);if(h&&h.childrenList.length){const l=[];return h.childrenList.forEach(c=>{const E=c.childrenList,y=[];E&&E.length>0&&(y.push({label:"全部",value:c.id,name:c.name,id:c.id}),E.forEach(C=>{y.push({label:C.name,value:C.id,name:C.name,id:C.id})})),l.push({...c,childrenList:y})}),[{label:"全部",value:"",id:"",name:"全部",childrenList:[]},...l]}return[]}),s=H({showSlide:!1}),d=r=>{var h,l;r==="left"?(h=p.value)==null||h.prev():r==="right"&&((l=p.value)==null||l.next())};return ee(()=>{Se(()=>{const r=document.querySelector(".carouselContainer"),h=r&&r.getBoundingClientRect().width||0,l=document.querySelectorAll(".n-carousel__slide");let c=0;l.forEach(E=>{const y=E.getBoundingClientRect();c+=y.width}),c>=h&&(s.showSlide=!0)})}),()=>{let r,h;return e("div",{class:K.searchGroup},[e("div",{class:[K.searchCatatory,a.value.length>0?K.border:""]},[e(ne,{size:"small",class:K.btnType},{default:()=>[o.categoryChildList.length>0?e(G,{type:t.wikiCategoryId===o.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==o.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=o.wikiCategoryId,t.wikiCategoryIdChild="",n()}},{default:()=>[F("全部")]}):e("span",null,null),e("div",{class:[K.carouselGroup]},[e(zt,{ref:p,slidesPerView:"auto",loop:!1,class:[K.carouselContainer,"carouselContainer"],showDots:!1,draggable:s.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":l=>{t.currentIndex=l}},pu(r=o.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]}),s.showSlide&&e(ne,{class:K.swipeControll},{default:()=>[e("div",{onClick:()=>d("left")},[e(de,{previewDisabled:!0,class:[K.leftIcon],src:Ge},null)]),e("div",{onClick:()=>d("right")},[e(de,{previewDisabled:!0,src:Ge},null)])]})])]}),e(Ot,{class:K.inputSearch,placeholder:"请输入曲目名称",round:!0,onSearch:l=>{t.keyword=l,n()}},null)]),a.value.length>0&&e("div",{class:[K.collapseWrap]},[e(ne,{class:[K.spaceSection]},pu(h=a.value.map((l,c)=>e(Ce,null,[l.childrenList.length>0?e(bu,{options:l.childrenList,trigger:"hover",value:t.wikiCategoryIdChild,"onUpdate:value":[E=>t.wikiCategoryIdChild=E,()=>{n()}],key:l.id,class:K.popSelect},{default:()=>[e("span",{class:[K.textBtn,u(l.childrenList).selected&&K.textBtnActive]},[u(l.childrenList).name||l.name,e("i",{class:K.iconArrow},null)])]}):e("span",{class:[K.textBtn,t.wikiCategoryIdChild===l.id&&K.textBtnActive],onClick:()=>{t.wikiCategoryIdChild=l.id,n()}},[l.name])])))?h:{default:()=>[h]})])])}}}),Ar=W({name:"music-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(o,{emit:i}){Ue();const t=H({searchWord:"",loading:!1,finshed:!1,pageTotal:0,pagination:{page:1,rows:18},searchGroup:{type:"MUSIC",keyword:"",wikiCategoryId:o.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),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:s,wikiCategoryId:d,keyword:r}=a;t.searchGroup=Object.assign(t.searchGroup,{wikiCategoryId:s||d,keyword:r}),p()},u=a=>{const s=o.selectItems||[],d=s.findIndex(r=>r.id===a.id);d!==-1?s.splice(d,1):s.push(a),i("confirm",s)};return ee(()=>{p()}),()=>e("div",{class:K.instrumentList},[e(Er,{class:K.searchGroups,categoryChildList:o.categoryChildList||[],wikiCategoryId:o.categoryId,onSearch:a=>n(a)},null),e(Ae,{class:K.listContainer,style:{"max-height":"50vh"},onScroll:a=>{var h,l,c;const s=(h=a.target)==null?void 0:h.clientHeight,d=(l=a.target)==null?void 0:l.scrollTop,r=(c=a.target)==null?void 0:c.scrollHeight;s+d+20>=r&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p())}},{default:()=>[e(fe,{show:t.loading,"onUpdate:show":a=>t.loading=a,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:K.list},[t.tableList.map(a=>e("div",{class:K.itemWrap,onClick:()=>{t.item={content:a.id,title:a.name,type:"MUSIC_WIKI"},t.show=!0}},[e("div",{class:K.itemWrapBox},[e("div",{class:[K.itemCard,o.selectItems.findIndex(s=>s.id===a.id)!==-1&&K.itemImgSectionSelected]},[e("div",{class:K.itemName},[e("img",{src:a.avatar||Zs,class:K.musicBg},null),e("span",{class:K.name},[a.name])]),e("i",{class:[K.iconCheck],onClick:s=>{s.stopPropagation(),u(a)}},null)])])])),!t.loading&&t.tableList.length<=0&&e(Fe,{style:{minHeight:"50vh"},description:"暂无名曲鉴赏"},null)])]})]}),e(ft,{size:"large",show:t.show,"onUpdate:show":a=>t.show=a,item:t.item},null)])}});function wr(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!ke(o)}const vr=W({name:"content-music",emits:["close","confirm"],setup(o,{emit:i}){const t=H({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Gt({type:"MUSIC",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&Se(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const n=async()=>{const u=[];t.selectItems.forEach(a=>{u.push({coverImg:mt.MUSIC_DEFAULT_COVER,title:"名曲鉴赏-"+a.name,materialId:a.id,content:a.id})}),i("confirm",u)};return()=>{let u;return e("div",{class:Re.container},[e("div",{class:Re.wrap},[e("div",{class:[Re.listWrap,!t.loading&&t.categoryList.length<=0&&Re.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(Fe,{description:"暂无名曲鉴赏"},null),e("div",{style:{minHeight:"55vh"}},[e(ze,{defaultValue:"myResources",paneClass:Re.paneTitle,justifyContent:"center",paneWrapperClass:Re.paneWrapperContainer,value:t.tabValue,"onUpdate:value":a=>t.tabValue=a},wr(u=t.categoryList.map(a=>e(Ke,{name:"name-".concat(a.id),tab:a.name},{default:()=>[e(Ar,{selectItems:t.selectItems,categoryId:a.id,categoryChildList:a.childrenList,onConfirm:s=>{t.selectItems=s||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ne,{class:Re.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",Sr="_subjectList_1ug7x_49",_r="_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:Sr,subjectItem:_r,imgSection:Ir,iconSelect:Dr,subjectName:kr,subjectSelect:Lr};function xr(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!ke(o)}const Tr=W({name:"subject-sync",props:{subjectId:{type:[String,Number],default:""}},emits:["close","confirm"],setup(o,{emit:i}){const t=$e();_e();const p=N(""),n=pt(),u=N([]),a=N([]),s={Panpipes:"https://oss.dayaedu.com/ktqy/17103860536976fd4a751.png",Ocarina:"https://oss.dayaedu.com/ktqy/17143623857205dba41a5.png","Alto Ocarina":"https://oss.dayaedu.com/ktqy/17143623857205dba41a5.png",Whistling:"https://oss.dayaedu.com/ktqy/1714362351692fcf8c0b8.png","Soprano Ocarina":"https://oss.dayaedu.com/ktqy/1714362351692fcf8c0b8.png",Woodwind:"https://oss.dayaedu.com/ktqy/17103860536966826c50d.png",Hulusi:"https://oss.dayaedu.com/ktqy/17103860536966826c50d.png","Tenor Recorder":"https://oss.dayaedu.com/ktqy/17103860536950592e357.png","German Recorder":"https://oss.dayaedu.com/ktqy/17103860536950592e357.png",Nai:"https://oss.dayaedu.com/ktqy/1710386053697af4aa985.png",Melodica:"https://oss.dayaedu.com/ktqy/1710386053697af4aa985.png","Baroque Recorder":"https://oss.dayaedu.com/ktqy/1710386053698031e847a.png"},d=()=>{if(u.value.length<=0){n.error("至少选择一个声部进行同步");return}const h=[];u.value.forEach(l=>{const c=a.value.find(E=>E.id===l);if(console.log(c,"item",c.code),c){const E=c.code?c.code.split(",")[0]:"";h.push({materialId:c.id,coverImg:s[E]||s.Panpipes,dataJson:null,title:c.name,isCollect:!1,isSelected:!1,content:c.code})}}),i("confirm",{subjectIds:u.value,subjectCode:h})},r=()=>{const h=t.getEnableSubjects,l=[];h.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 ee(async()=>{await t.getSubjects(),r(),o.subjectId&&(u.value=[Number(o.subjectId)])}),()=>{let h;return e("div",{class:we.subjectSync},[e(ze,{defaultValue:"",paneClass:we.paneTitle,justifyContent:"start",paneWrapperClass:we.paneWrapperContainer,value:p.value,"onUpdate:value":l=>{p.value=l,r()}},xr(h=[{name:"全部声部",id:""},...t.getEnableSubjects].map(l=>e(Ke,{name:"".concat(l.id),tab:l.name,displayDirective:"if"},null)))?h:{default:()=>[h]}),e(Ae,{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(ne,{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=W({name:"add-other-source",emits:["close","comfirm"],setup(o,{emit:i}){_e();const t=Ue(),p=N([{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=H({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:V.emit("pageBeforeLeave",()=>{sessionStorage.setItem("notation-open-create","1"),t.push("/notation")});break;case 7:n.saveStatus=!0;break}};return()=>e(Ce,null,[e("div",{class:me.addOtherSource},[p.value.map(a=>e("div",{class:me.sourceItem,onClick:()=>u(a)},[e(de,{class:me.coverImg,src:a.image,previewDisabled:!0},null),e("p",{class:me.name},[a.name])]))]),e(ae,{maskClosable:oe,show:n.rhythmStatus,"onUpdate:show":a=>n.rhythmStatus=a,preset:"card",class:["modalTitle background",me.addOtherSourceModal],title:"节奏练习"},{default:()=>[e(Sn,{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(ae,{maskClosable:oe,show:n.instrumentStatus,"onUpdate:show":a=>n.instrumentStatus=a,preset:"card",class:["modalTitle",me.instrumentModal],title:"乐器百科"},{default:()=>[e(nl,{onClose:()=>n.instrumentStatus=!1,onConfirm:a=>{n.instrumentStatus=!1;const s=a||[],d=[];s.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(ae,{maskClosable:oe,show:n.theoryStatus,"onUpdate:show":a=>n.theoryStatus=a,preset:"card",class:["modalTitle",me.theoryModal],title:"乐理知识"},{default:()=>[e(ll,{onClose:()=>n.theoryStatus=!1,onConfirm:a=>{n.theoryStatus=!1;const s=a||[],d=[];s.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(ae,{maskClosable:oe,show:n.musicianStatus,"onUpdate:show":a=>n.musicianStatus=a,preset:"card",class:["modalTitle",me.instrumentModal],title:"音乐家"},{default:()=>[e(Ol,{onClose:()=>n.musicianStatus=!1,onConfirm:a=>{n.musicianStatus=!1;const s=a||[],d=[];s.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(ae,{maskClosable:oe,show:n.musicStatus,"onUpdate:show":a=>n.musicStatus=a,preset:"card",class:["modalTitle",me.musicModal],title:"名曲鉴赏"},{default:()=>[e(vr,{onClose:()=>n.musicStatus=!1,onConfirm:a=>{n.musicStatus=!1;const s=a||[],d=[];s.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(ae,{maskClosable:oe,show:n.listenStatus,"onUpdate:show":a=>n.listenStatus=a,preset:"card",class:["modalTitle background",me.subjectSyncModal],title:"选择乐器"},{default:()=>[e(Tr,{onClose:()=>n.listenStatus=!1,onConfirm:async a=>{try{n.musicStatus=!1;const s=a.subjectCode||[],d=[];s.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(s){}}},null)]}),e(ae,{maskClosable:oe,show:n.uploadStatus,"onUpdate:show":a=>n.uploadStatus=a,preset:"card",showIcon:!1,class:["modalTitle background",me.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 s=a||[],d=[];s.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(s){}},list:n.editList},null)]}),e(ae,{maskClosable:oe,show:n.saveStatus,"onUpdate:show":a=>n.saveStatus=a,preset:"card",showIcon:!1,class:["modalTitle background",me.attendClassSaveModal],title:"上传资源",blockScroll:!1},{default:()=>[e(Qs,{onClose:()=>n.saveStatus=!1,onConfrim:a=>{const s=a||[],d=[];s.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)]})])}}),Rr="_protocolModal_6k92d_1",jr="_dingPng_6k92d_4",Pr="_downMove_6k92d_13",Mr="_downMoveBg_6k92d_21",Nr="_closeAble_6k92d_28",Or="_submitAppBtn_6k92d_54",Wr="_cancelBtn_6k92d_55",Gr="_protocolGroup_6k92d_65",Ur="_checkbox_6k92d_75",zr="_checkboxActive_6k92d_83",Kr="_protocolSection_6k92d_90",qr="_protocolContent_6k92d_123",Zr="_child_6k92d_134",le={protocolModal:Rr,dingPng:jr,downMove:Pr,downMoveBg:Mr,closeAble:Nr,submitAppBtn:Or,cancelBtn:Wr,protocolGroup:Gr,checkbox:Ur,checkboxActive:zr,protocolSection:Kr,protocolContent:qr,child:Zr},Jr=""+new URL("dingPng-b63c3ae2.png",import.meta.url).href,mu=""+new URL("moveTop-6b6421db.png",import.meta.url).href,gu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAi9JREFUaEPt2a9LBEEUwPHvBUFEg0EQ0SD+BTaLSbCYTAo2k0WDlvMHCCJisWgwWRVMJoNgMtj8CwSDv8BgUhEElYFdWZe7nbcz78Fx7Na7ebOfeTtvZnZrtMlVaxMHFaTVMlllpMqI0QhIHq0hYBx4Ay6AT6N7ScN2ApNAN3AF3Ev680GGgT2gIwn2AKwDr5LgAf/pBXaAwaTtF7AC3Pli+SALwFQuyCOwZoDJI9Juz4HDWMg8MN0giDamGcJ1fQYcxUL6gP3kec3H0sIUId6BJeAlFuLajwDbRhgfYgO49SHc7745ksawwKghykC0M6OKKAvRwqgjQiCxGBNEKCQUY4aIgfgwT8BqZtE0RcRCpJif3LYjW03dOiEusUVlWFp+i2IUlWaXme/M3skEoZERyTrTaBDUMpEG18hIWYw6QjMjUowJwgLiqtMuMNBkUj0DdYMjgHivJdm3FZXYbHutXfO/e9KaI1JE2rk6RgPiW+zcOuLO3/lLFRML8SHcYucgVueZv8GJgUgQ6aHI4jyjMkfKICSlOfoxC8lICMIcUxYSgzDFlIFoIMwwUogmwgQjgVgg1DE+SFfy7jd9F2txnvCV5mXgw7dH8kFmgbkGQbR3sUWYE+A4FrKYvOK3yET+3pph3KeMg1jIKLCVCaKdCQlmE7iJhbj2Y8BE8qHnFHBnCsurH5gBeoBL4FrSmW+OSGK0xH8qSEukIXMTVUaqjBiNQPVoGQ1scNi2ycgvTfaxM/Rb2jIAAAAASUVORK5CYII=",Hr=W({name:"add-courseware-protocol",emits:["close","confirm"],setup(o,{emit:i}){const t=H({status:!1,protocolShow:!1});return()=>e("div",{class:le.protocolModal},[e("img",{src:Jr,class:le.dingPng,alt:""},null),t.protocolShow?e("div",{class:le.protocolSection},[e("img",{src:mu,class:le.downMoveBg,alt:""},null),e("img",{src:gu,class:le.closeAble,onClick:()=>{t.protocolShow=!1},alt:""},null),e("h2",null,[F("《音乐数字课堂课件与作业公开服务协议》")]),e(Ae,{style:{maxHeight:"45vh"}},{default:()=>[e("div",{class:le.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:le.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(ne,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(G,{class:le.cancelBtn,round:!0,type:"default",onClick:()=>{t.protocolShow=!1}},{default:()=>[F("取消授权")]}),e(G,{class:le.submitAppBtn,bordered:!1,round:!0,type:"primary",onClick:()=>{t.protocolShow=!1,t.status=!0}},{default:()=>[F("同意授权")]})]})]):e("div",{class:le.downMove},[e("img",{src:mu,class:le.downMoveBg,alt:""},null),e("img",{src:gu,class:le.closeAble,onClick:()=>{i("close")},alt:""},null),e("h2",null,[F("课件公开须知")]),e("p",null,[F("公开课件后,您课件中的资源及作业都可被其他教师查看、使用,具体信息请查看服务协议")]),e("div",{class:le.protocolGroup,onClick:()=>{t.status=!t.status}},[e("i",{class:[le.checkbox,t.status&&le.checkboxActive]},null),e("p",null,[F("我已阅读并同意"),e("span",{onClick:p=>{p.stopPropagation(),t.protocolShow=!0}},[F("《音乐数字课堂课件与作业公开服务协议》")])])]),e(ne,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(G,{class:le.cancelBtn,round:!0,type:"default",onClick:()=>i("close")},{default:()=>[F("取消")]}),e(G,{class:le.submitAppBtn,bordered:!1,round:!0,type:"primary",disabled:!t.status,onClick:()=>{i("confirm")}},{default:()=>[F("确定")]})]})])])}}),Qr=W({name:"courseware-modal",props:{groupItem:{type:Object,default:()=>({})}},emits:["change"],setup(o,{emit:i}){const t=Mt(),p=_e(),n=pt(),u=H({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=N(),s=N(!1),d=async()=>{u.loadingStatus=!0;try{if(!o.groupItem.id)return u.loadingStatus=!1;const{data:m}=await Xu(o.groupItem.id),w=m.chapterKnowledgeList||[];u.name=m.name,u.subjects=m.instrumentIds?m.instrumentIds.split(",").map(D=>D):[],u.openFlag=m.openFlag,u.openFlagEnable=m.openFlagEnable,u.autoPlay=m.autoPlay;const I=[];w.forEach(D=>{const k=D.chapterKnowledgeMaterialList,Q=[];Array.isArray(k)&&k.length>0&&k.forEach(q=>{Q.push({id:q.id,materialId:q.bizId,coverImg:q.bizInfo.coverImg,type:q.type,title:q.bizInfo.name,dataJson:q.dataJson,isSelected:q.source==="PLATFORM",audioPlayTypeArray:q.audioPlayTypes?q.audioPlayTypes.split(","):[],content:q.bizInfo.content,removeFlag:q.removeFlag})}),I.push({name:D.name,id:D.id,list:[...Q]})}),u.coursewareList=I,u.baseCoursewareList=Lt(I),u.baseInfo=Lt({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),V.emit("updateCoursewareHeadInfo",{name:u.name,subjects:u.subjects,openFlag:u.openFlag,openFlagEnable:u.openFlagEnable,autoPlay:u.autoPlay})}catch(m){console.log(m)}u.loadingStatus=!1},r=(m,w)=>{const I=u.coursewareList[w];I&&(I.list.splice(m,1),V.emit("onCoursewareUpdate"))},h=(m,w,I)=>{const D=m.getBoundingClientRect();return w>=D.left&&w<=D.right&&I>=D.top&&I<=D.bottom},l=(m,w)=>{const I=m.getBoundingClientRect(),D=I.left+I.width/2;return w<D},c=(m,w,I)=>{if(m==="up"){if(w===0)return;const D=u.coursewareList[w-1];u.coursewareList[w-1]=u.coursewareList[w],u.coursewareList[w]=D}else if(m==="down"){if(w>=u.coursewareList.length-1)return;const D=u.coursewareList[w+1];u.coursewareList[w+1]=u.coursewareList[w],u.coursewareList[w]=D}else m==="remove"&&(u.messageOperation={visiable:!0,type:"delete",contentDirection:"left",title:"删除知识点",loading:!1,content:"请确认是否删除".concat(I.name?"【"+I.name+"】":"该知识点",",删除知识点后将同步删除知识点下的资源"),cancelButtonText:"取消",confirmButtonText:"确认",index:w})},E=async()=>{const m=u.messageOperation.type;if(m==="delete")u.coursewareList.splice(u.messageOperation.index,1),V.emit("onCoursewareUpdate");else if(m==="addItem")u.coursewareList.push({name:"",list:[]}),C(u.addCoursewareItem);else if(m==="save"||m==="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 w=!1;for(const D of u.coursewareList){if(!D.name){n.error("请输入知识点名称"),u.messageOperation.visiable=!1;return}Array.isArray(D.list)&&D.list.length<=0&&(w=!0)}if(w){n.error("请至少添加一个资源"),u.messageOperation.visiable=!1;return}u.messageOperation.loading=!0;const I=await S();u.messageOperation.loading=!1,I&&(m==="pageLive"&&typeof u.messageCallBack=="function"&&u.messageCallBack(),i("change",{status:!1,addParam:{isAdd:!o.groupItem.id,name:u.name,id:u.createId}}),V.emit("teacher-slideshow",!1))}u.messageOperation.visiable=!1};let y=null;const C=async(m,w,I=!1)=>{clearTimeout(y);const D=[];if(!I)try{const{data:k}=await Yt(m.materialId);Array.isArray(k.materialRefs)&&k.materialRefs.forEach(Q=>{if(Q.refType==="STRONG"){const q=Q.relateMaterialInfo||{};D.push({content:q.content,coverImg:q.coverImg,isSelected:q.sourceFrom==="PLATFORM",materialId:q.id,title:q.name,type:q.type})}})}catch(k){}Se(()=>{if(w){const Q=document.querySelectorAll(".row-group")[m.index].querySelectorAll(".row-nav");let q=!1;Q.forEach((ve,Be)=>{if(h(ve,w.x,w.y)){const Le=u.coursewareList[m.index||0].list||[];l(ve,w.x)?(D.forEach(qe=>{Le.splice(Be,0,qe)}),Le.splice(Be,0,m)):(Le.splice(Be+1,0,m),D.forEach(qe=>{Le.splice(Be+1,0,qe)})),q=!0,u.coursewareList[m.index||0].list=Le}}),q||(u.coursewareList[m.index||0].list.push(m),D.forEach(ve=>{u.coursewareList[m.index||0].list.push(ve)}))}else u.coursewareList[m.index||0].list.push(m),D.forEach(k=>{u.coursewareList[m.index||0].list.push(k)}),n.success("添加成功");y=setTimeout(()=>{V.emit("onCoursewareUpdate")},100)})},B=async(m,w)=>{clearTimeout(y);const I=[];try{const{data:D}=await Yt(m.materialId);Array.isArray(D.materialRefs)&&D.materialRefs.forEach(k=>{if(k.refType==="STRONG"){const Q=k.relateMaterialInfo||{};I.push({content:Q.content,coverImg:Q.coverImg,isSelected:Q.sourceFrom==="PLATFORM",materialId:Q.id,title:Q.name,type:Q.type})}})}catch(D){}Se(()=>{const D=u.coursewareList[m.index||0].list||[];D[w]=m,I.forEach(k=>{D.splice(w+1,0,k)}),u.coursewareList[m.index||0].list=D,console.log(u.coursewareList,"courseware add drag"),y=setTimeout(()=>{V.emit("onCoursewareUpdate")},100)})},v=async()=>{try{if(a.value.validate(),V.emit("checkCoursewareForm"),!u.name){n.error("请输入课件标题");return}if(u.subjects.length<=0){n.error("请选择声部");return}if(u.coursewareList.length<=0){n.error("请至少添加一个知识点");return}let m=!1;for(const I of u.coursewareList){if(!I.name){n.error("请输入知识点名称");return}Array.isArray(I.list)&&I.list.length<=0&&(m=!0)}if(m){n.error("请至少添加一个资源");return}if(u.openFlag&&!t.getReadCoursewareOpenAgreement){s.value=!0;return}await S()&&(i("change",{status:!1,addParam:{isAdd:!o.groupItem.id,name:u.name,id:u.createId}}),V.emit("teacher-slideshow",!1))}catch(m){}},S=async()=>{var m;try{const w={name:u.name,instrumentIds:u.subjects.join(","),openFlag:u.openFlag,autoPlay:u.autoPlay,coursewareDetailKnowledgeId:p.getSelectKey,chapterKnowledgeList:[]};if(u.coursewareList.forEach(I=>{let D=[];Array.isArray(I.list)&&I.list.length>0&&(D=I.list.map(k=>({bizId:k.materialId,type:k.type,dataJson:["IMG","VIDEO","SONG","MUSIC","PPT"].includes(k.type)?"":JSON.stringify({setting:k.dataJson,coverImg:k.coverImg,bizId:k.bizId,content:k.content,name:k.title})}))),w.chapterKnowledgeList.push({name:I.name,chapterKnowledgeMaterialList:D})}),(m=o.groupItem)!=null&&m.id)await es({id:o.groupItem.id,...w}),n.success("保存成功");else{const{data:I}=await ts(w);u.createId=I.id}return!0}catch(w){return!1}},g=(m,w)=>{u.coursewareList.length<=0?(u.addCoursewareItem=m,u.messageOperation={visiable:!0,type:"addItem",contentDirection:"center",title:"添加到知识点",loading:!1,content:"当前课件暂无知识点,请添加知识点后操作",cancelButtonText:"取消",confirmButtonText:"添加知识点",index:0}):u.coursewareList.length>1&&m.addType!=="drag"?(u.addCoursewareVisiable=!0,u.addCoursewareItem=m):C(m,w)},b=m=>{const w=JSON.stringify(u.coursewareList),I=JSON.stringify(u.baseCoursewareList),D=JSON.stringify({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),k=JSON.stringify(u.baseInfo);w===I&&D===k?typeof m=="function"&&(m(),i("change",{status:!1,addParam:{isAdd:!1,name:u.name,id:u.createId}}),V.emit("teacher-slideshow",!1)):(u.messageCallBack=m,u.messageOperation={visiable:!0,type:"pageLive",loading:!1,contentDirection:"center",title:"保存课件",content:"当前课件暂未保存,是否保存?",cancelButtonText:"不保存",confirmButtonText:"保存",index:0})},_=m=>{u.subjects=m.subjects,u.openFlagEnable=m.openFlagEnable,u.autoPlay=m.autoPlay,u.name=m.name,u.openFlag=m.openFlag;const w=JSON.stringify(u.coursewareList),I=JSON.stringify(u.baseCoursewareList),D=JSON.stringify({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),k=JSON.stringify(u.baseInfo);w===I&&D===k?(i("change",{status:!1,addParam:{isAdd:!1,name:u.name,id:u.createId}}),V.emit("teacher-slideshow",!1)):u.messageOperation={visiable:!0,type:"save",loading:!1,contentDirection:"center",title:"保存课件",content:"当前课件暂未保存,是否保存?",cancelButtonText:"不保存",confirmButtonText:"保存",index:0}},L=m=>{u.subjects=m.subjects,u.openFlagEnable=m.openFlagEnable,u.autoPlay=m.autoPlay,u.name=m.name,u.openFlag=m.openFlag,v()};return ee(async()=>{var m;(m=o.groupItem)!=null&&m.id&&(u.coursewareList=[],u.baseCoursewareList=[]),await d(),V.on("onPrepareAddItem",g),V.on("pageBeforeLeave",b),V.on("coursewareClosed",_),V.on("coursewareSave",L)}),De(()=>{V.off("onPrepareAddItem",g),V.off("pageBeforeLeave",b),V.off("coursewareClosed",_),V.off("coursewareSave",L)}),je(()=>u.coursewareList,()=>{p.setCoursewareList(u.coursewareList)},{deep:!0}),()=>e(Ts,{class:J.coursewareModal,model:u,ref:a},{default:()=>[e(Ae,Vs({class:[J.listContainer,"listContainerWrap"]},{id:"lessonsIn-1"}),{default:()=>[e(fe,{show:u.loadingStatus},{default:()=>[e("div",{class:[J.listSection,"listSectionWrap"],id:"listSectionWrap"},[u.coursewareList.map((m,w)=>e("div",{class:[J.listItems,"row-group"]},[e("div",{class:J.knowledgePoint},[e(Rs,{class:J.btnItem,label:"知识点名称",showFeedback:!1,requireMarkPlacement:"left",path:"coursewareList.".concat(w,".name"),rule:[{required:!0,trigger:["input","blur"]}]},{default:()=>[e(Xe,{placeholder:"未命名知识点",value:m.name,"onUpdate:value":I=>m.name=I,maxlength:15,clearable:!0},null)]})]),e(ne,{class:J.operationGroup},{default:()=>[w>0&&e(Ie,{showArrow:!1},{trigger:()=>e("i",{class:J.iconCUp,onClick:()=>c("up",w)},null),default:()=>"上移知识点"}),w<u.coursewareList.length-1&&e(Ie,{showArrow:!1},{trigger:()=>e("i",{class:J.iconCDown,onClick:()=>c("down",w)},null),default:()=>"下移知识点"}),e(Ie,{showArrow:!1},{trigger:()=>e("i",{class:J.iconCRemove,onClick:()=>c("remove",w,m)},null),default:()=>"删除知识点"})]}),e(Ms,{modelValue:m.list,"onUpdate:modelValue":I=>m.list=I,itemKey:"id",group:"description",scroll:!0,animation:200,onAdd:I=>{const k=u.coursewareList[w].list[I.newDraggableIndex];console.log(k,"dropItem"),k.sourceForm==="resource-item"&&B({materialId:k.id,coverImg:k.coverImg,type:k.type,title:k.title,refFlag:k.refFlag,isCollect:k.isCollect,isSelected:k.isSelected,content:k.content,removeFlag:!1,index:w},I.newDraggableIndex)},onDrag:I=>{const D=document.querySelector(".listContainerWrap .n-scrollbar-container"),k=150;I.clientY<k?D.scrollTop-=8:window.innerHeight-I.clientY<k&&(D.scrollTop+=8)},componentData:{draggable:"row-nav",itemKey:"id",tag:"div",animation:200,group:"description"},class:J.list},{item:I=>{const D=I.element;return e("div",{"data-id":D.id,class:[J.itemWrap,J.itemBlock,"row-nav"]},[e("div",{class:J.itemWrapBox},[e(Yu,{class:[J.itemContent],isShowCollect:!1,offShelf:!!D.removeFlag,item:D,audioPlayTypeSize:"small",disabledMouseHover:!1,onClick:()=>{D.type!=="IMG"&&(u.show=!0,u.item=D)}},null),e("div",{class:J.itemOperation},[e("img",{src:Ps,class:J.iconDelete,onClick:k=>{k.stopPropagation(),r(I.index,w)}},null)])])])},footer:()=>e("div",{class:J.itemWrap},[e("div",{class:J.itemWrapBox},[e("div",{class:[J.itemContent,J.addMusicItem,"handle"],onClick:()=>{u.addOtherSource=!0,u.addOtherIndex=w}},[e("img",{src:en},null),e("p",{class:J.addMusicName},[F("添加资源")])])])])})])),!u.loadingStatus&&e(G,{block:!0,type:"primary",secondary:!0,class:J.addKnowledgePoint,onClick:()=>{u.coursewareList.push({name:"",list:[]})}},{default:()=>[e("i",{class:J.iconCAdd},null),F("添加知识点")]})])]})]}),e(ft,{size:["INSTRUMENT","THEORY","MUSIC_WIKI","MUSICIAN","RHYTHM"].includes(u.item.type)?"large":"",show:u.show,"onUpdate:show":m=>u.show=m,item:u.item,isDownload:!1},null),e(ae,{maskClosable:oe,show:u.addCoursewareVisiable,"onUpdate:show":m=>u.addCoursewareVisiable=m,preset:"card",class:["modalTitle",J.addCourseware],title:"添加到知识点"},{default:()=>[e(an,{coursewareList:u.coursewareList,onClose:()=>u.addCoursewareVisiable=!1,onConfirm:m=>{Array.isArray(m)&&m.length>0?(m.forEach(w=>{C({...u.addCoursewareItem,index:w})}),u.addCoursewareVisiable=!1):n.error("请选择需要添加的知识点")}},null)]}),e(ae,{maskClosable:oe,show:u.messageOperation.visiable,"onUpdate:show":m=>u.messageOperation.visiable=m,preset:"card",class:["modalTitle",J.removeVisiable1],title:u.messageOperation.title},{default:()=>[e(Rt,{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}}),V.emit("teacher-slideshow",!1),u.messageOperation.type==="pageLive"&&typeof u.messageCallBack=="function"&&u.messageCallBack())},onConfirm:()=>E()},null)]}),e(Iu,{show:u.previewModal,"onUpdate:show":m=>u.previewModal=m,type:"attend",params:u.previewParams},null),e(ae,{maskClosable:oe,show:u.addOtherSource,"onUpdate:show":m=>u.addOtherSource=m,preset:"card",class:["modalTitle background",J.addOtherSource],title:"添加资源"},{default:()=>[e(Vr,{onClose:()=>u.addOtherSource=!1,onComfirm:m=>{Array.isArray(m)?(console.log(m,"item - item"),m.forEach(async w=>{await C({...w,index:u.addOtherIndex},null,!0)})):C({...m,index:u.addOtherIndex},null,!0)}},null)]}),e(ae,{maskClosable:oe,show:s.value,"onUpdate:show":m=>s.value=m},{default:()=>[e(Hr,{onClose:()=>s.value=!1,onConfirm:async()=>{try{await S()&&(t.setReadCoursewareOpenAgreement(!0),i("change",{status:!1,addParam:{isAdd:!o.groupItem.id,name:u.name,id:u.createId}}),V.emit("teacher-slideshow",!1))}catch(m){}}},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",mi="_line_j2u3u_150",gi="_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",Si="_studentRemove_j2u3u_230",_i="_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",Ri="_iconArrow_j2u3u_299",ji="_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:mi,more:gi,iconP:fi,swipeControll:Ci,leftIcon:Fi,disabled:hi,list:Ei,listEmpty:Ai,listSame:wi,itemWrap:vi,itemWrapBox:Bi,attendClassModal1:yi,removeVisiable1:bi,studentRemove:Si,btnGroupModal:_i,attendClassModal:Ii,workVisiable:Di,workContainer:ki,workTrain:Li,resourceMain:xi,popSelect:Ti,textBtn:Vi,iconArrow:Ri,textBtnActive:ji},Pi="_relatedClass_c6wpx_1",Mi="_attendClassSearch_c6wpx_4",Ni="_iconSearch_c6wpx_20",Oi="_classList_c6wpx_24",Wi="_listSection_c6wpx_28",Gi="_emptySection_c6wpx_32",Ui="_list_c6wpx_28",zi="_listSame_c6wpx_45",Ki="_itemWrap_c6wpx_49",qi="_itemWrapBox_c6wpx_52",be={relatedClass:Pi,attendClassSearch:Mi,iconSearch:Ni,classList:Oi,listSection:Wi,emptySection:Gi,list:Ui,listSame:zi,itemWrap:Ki,itemWrapBox:qi},Zi=W({name:"related-class",props:{tableList:{type:Array,default:()=>[]},instrumentList:{type:Array,default:()=>[]},instrumentId:{type:[String,Number],default:""},coursewareDetailKnowledgeId:{type:[String,Number],default:""}},emits:["close","add","click"],setup(o,{emit:i}){const t=H({loading:!1,finshed:!1,pagination:{page:1,rows:20},tableList:[],searchGroup:{instrumentId:o.instrumentId?o.instrumentId:"",keyword:null}}),p=async()=>{try{t.pagination.page===1&&(t.loading=!0);const{data:u}=await Fu({coursewareDetailKnowledgeId:o.coursewareDetailKnowledgeId,...t.searchGroup,...t.pagination}),a=u.rows||[],s=[];a.forEach(d=>{var h;const r=(h=d.chapterKnowledgeList[0])==null?void 0:h.chapterKnowledgeMaterialList[0];s.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(...s),t.finshed=u.pages<=u.current}catch(u){t.loading=!1}},n=gt(()=>{t.pagination.page=1,t.tableList=[],p()},500);return ee(()=>{p(),V.on("openCoursewareChanged",n)}),De(()=>{V.off("openCoursewareChanged",n)}),()=>e("div",{class:be.relatedClass},[e("div",{class:be.attendClassSearch},[e(Nt,{placeholder:"全部乐器",clearable:!0,options:[{name:"全部乐器",id:""},...o.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(fe,{show:t.loading,size:"small"},{default:()=>[e(Ae,{class:be.classList,style:{"max-height":"60vh"},onScroll:u=>{var r,h,l;const a=(r=u.target)==null?void 0:r.clientHeight,s=(h=u.target)==null?void 0:h.scrollTop,d=(l=u.target)==null?void 0:l.scrollHeight;a+s+20>=d&&!t.finshed&&!t.loading&&n()}},{default:()=>[e("div",{style:{"min-height":"60vh)"},class:[be.listSection,!t.loading&&t.tableList.length<=0?be.emptySection:""]},[t.tableList.length>0&&e("div",{class:[be.list]},[t.tableList.map(u=>e("div",{class:[be.itemWrap,be.itemBlock,"row-nav"]},[e("div",{class:be.itemWrapBox},[e(Su,{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(Fe,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",fu={searchGroup:$i,searchSelect:Xi,inputSearch:Yi,searchBtn:ec,btnType:tc},uc=W({name:"resource-search-group",emits:["search"],setup(o,{emit:i}){$e();const t=H({keyword:""}),p=()=>{i("search",t)},n=gt(()=>p(),500);return()=>e(Ce,null,[e("div",{class:fu.searchGroup},[e(Xe,{type:"text",placeholder:"请输入课件标题关键词",clearable:!0,value:t.keyword,"onUpdate:value":u=>t.keyword=u,class:fu.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",mc="_itemContent_13l6v_94",gc="_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:mc,itemTitle:gc,itemSubject:fc,addCourseBtn:Cc},Fc=W({name:"item-modal",props:{item:{type:Object,default:()=>({})}},emits:["look","add"],setup(o,{emit:i}){return()=>e("div",{class:ge.itemModal},[e("div",{class:ge.itemCover},[e(de,{src:o.item.coverImg,objectFit:"cover",previewDisabled:!0},null),e("div",{class:ge.function},[e(Ie,{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(Tt,{text:o.item.name},null)]),e("div",{class:ge.addCourseBtn,onClick:()=>i("add")},[F("添加课件")])])])}}),hc=W({name:"share-resources",emits:["look","add"],setup(o,{emit:i}){const t=_e(),p=H({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||[],h=[];r.forEach(l=>{var E;const c=(E=l.chapterKnowledgeList[0])==null?void 0:E.chapterKnowledgeMaterialList[0];h.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(...h),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=gt(()=>{p.pagination.page=p.pagination.page+1,n()},500),s=()=>{u(p.searchGroup)};return ee(()=>{n(),V.on("openCoursewareChanged",s)}),De(()=>{V.off("openCoursewareChanged",s)}),()=>e("div",null,[e(uc,{onSearch:d=>u(d)},null),e(Ae,{class:[ge.listContainer,ge.listNoMusic],onScroll:d=>{var c,E,y;const r=(c=d.target)==null?void 0:c.clientHeight,h=(E=d.target)==null?void 0:E.scrollTop,l=(y=d.target)==null?void 0:y.scrollHeight;r+h+20>=l&&!p.finshed&&!p.loading&&a()}},{default:()=>[e(fe,{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(Fe,null,null)])]})]})])}}),Ec=W({name:"related-modal",emits:["more","add","look"],setup(o,{emit:i}){return()=>e("div",{class:rt.related},[e(ze,{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(Ce,null,[e(Ke,{name:"myMusic",tab:"相关课件"},{default:()=>[e(hc,{onAdd:t=>i("add",t),onLook:t=>i("look",t)},null)]})])})])}}),Ac=W({name:"courseware-presets",props:{addParam:{type:Object,default:()=>({})}},emits:["change"],setup(o,{emit:i}){const t=_e(),p=pt(),n=vu(),u=Ue(),a=localStorage.getItem("prepareLessonSubjectId"),s=H({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()=>{s.loading=!0;try{if(!t.getSelectKey)return s.loading=!1;const{data:g}=await us({instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey});if(!Array.isArray(g))return;const b=[];g.forEach(_=>{var m,w,I;const L=(m=_.chapterKnowledgeList[0])==null?void 0:m.chapterKnowledgeMaterialList;b.push({id:_.id,lessonPreTrainingId:_.lessonPreTrainingId,openFlag:_.openFlag,openFlagEnable:_.openFlagEnable,instrumentNames:_.instrumentNames,fromChapterLessonCoursewareId:_.fromChapterLessonCoursewareId,name:_.name,coverImg:L&&((w=L[0])==null?void 0:w.bizInfo.coverImg),type:L&&((I=L[0])==null?void 0:I.bizInfo.type),isNotWork:_.lessonPreTrainingNum<=0})}),s.tableList=b}catch(g){}s.loading=!1};let r=null;je(()=>[t.getSelectKey,t.getInstrumentId],async()=>{clearTimeout(r),r=setTimeout(async()=>{var g;t.getInstrumentId?l():h(),V.emit("openCoursewareChanged"),await d(),(g=c.value)==null||g.syncBarPosition()},100)}),je(()=>t.getInstrumentList,()=>{h()});const h=()=>{var b;const g=t.getSingleInstrumentList;if(g.length>0){const _=localStorage.getItem("prepareLessonSubjectId");let L=null,m=-1;s.courseScheduleSubjectId&&(m=g.findIndex(w=>w.id==s.courseScheduleSubjectId),m>=0&&(L=Number(s.courseScheduleSubjectId))),s.instrumentId&&!L&&(m=g.findIndex(w=>w.id==s.instrumentId),m>=0&&(L=Number(s.instrumentId))),_&&!L&&(m=g.findIndex(w=>w.id==_),m>=0&&(L=Number(_))),L&&m>=0&&t.setSubjectId(L),localStorage.setItem("prepareLessonSubjectId",t.getInstrumentId),(b=c.value)==null||b.syncBarPosition()}else s.instrumentId&&t.setInstrumentId(s.instrumentId+"")},l=()=>{let g="";t.getInstrumentList.forEach(b=>{Array.isArray(b.instruments)&&b.instruments.forEach(_=>{_.id===t.getInstrumentId&&(g=_.id)})}),g&&(s.wikiCategoryIdChild=g)},c=N();ee(async()=>{jt(document.querySelector("#presetsLeftRef"),g=>{const b=g[0],{width:_}=b.contentRect;s.leftWidth=_+"px"}),jt(document.querySelector("#presetsRightRef"),g=>{const b=g[0],{width:_}=b.contentRect;s.rightWidth=_+"px"}),t.setClassGroupId(n.query.classGroupId),t.getInstrumentId?l():h(),await d(),o.addParam.isAdd&&(s.addVisiable=!0)});const E=async()=>{s.messageLoading=!0;try{await ss({id:s.selectItem.id}),p.success("删除成功"),d(),V.emit("openCoursewareChanged"),s.preRemoveVisiable=!1}catch(g){}setTimeout(()=>{s.messageLoading=!1},100)},y=async g=>{if(!s.messageLoading){s.messageLoading=!0;try{await as({id:g.id}),p.success("添加成功"),d(),V.emit("openCoursewareChanged")}catch(b){}setTimeout(()=>{s.messageLoading=!1},100)}},C=g=>{if(window.matchMedia("(display-mode: standalone)").matches)St.application=window.matchMedia("(display-mode: standalone)").matches,s.previewModal=!0,ou(),s.previewParams={type:"preview",courseId:g,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,lessonCourseId:t.getBaseCourseware.id};else{const{href:b}=u.resolve({path:"/attend-class",query:{type:"preview",courseId:g,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,lessonCourseId:t.getBaseCourseware.id}});window.open(b,+new Date+"")}},B=async(g,b,_)=>{if(b){const L=await os({lessonCoursewareKnowledgeDetailId:t.selectKey,classGroupId:b,useChapterLessonCoursewareId:g.id});if(window.matchMedia("(display-mode: standalone)").matches)St.application=window.matchMedia("(display-mode: standalone)").matches,s.previewModal=!0,ou(),s.previewParams={type:"class",classGroupId:b,courseId:g.id,instrumentId:_||n.query.instrumentId,detailId:t.getSelectKey,classId:L.data,lessonCourseId:t.getBaseCourseware.id,preStudentNum:s.preStudentNum};else{const{href:m}=u.resolve({path:"/attend-class",query:{type:"class",classGroupId:b,courseId:g.id,instrumentId:_||n.query.instrumentId,detailId:t.getSelectKey,classId:L.data,lessonCourseId:t.getBaseCourseware.id,preStudentNum:s.preStudentNum}});window.open(m,+new Date+"")}}else s.showAttendClass=!0,s.attendClassType="change",s.attendClassItem=g},v=g=>{const b={};return g==null||g.forEach(_=>{_.id===s.wikiCategoryIdChild&&(b.selected=!0,b.name=_.name,b.label=_.name)}),b},S=z(()=>{let g=t.getInstrumentId?t.getInstrumentId:"";return t.getFormatInstrumentList.forEach(b=>{Array.isArray(b.instruments)&&b.instruments.forEach(_=>{_.id===t.getInstrumentId&&(g=b.id+"")})}),g});return()=>e("div",{class:[U.coursewarePresetsContainer,s.openTableShow&&U.rightLineShow]},[e("div",{class:U.presetsLeft,id:"presetsLeftRef",style:{width:"calc(".concat(s.leftWidth," - ").concat(s.rightWidth,")")}},[e(ze,{ref:c,defaultValue:"",paneClass:U.paneTitle,justifyContent:"start",paneWrapperClass:U.paneWrapperContainer,value:S.value,"onUpdate:value":g=>{t.getFormatInstrumentList.forEach(b=>{b.value.toString()===g.toString()&&(t.setInstrumentId(g),s.instrumentId=g,s.wikiCategoryIdChild=null)})}},{default:()=>[[...t.getFormatInstrumentList].map((g,b)=>{var _;return e(Ke,{name:"".concat(g.value),tab:g.label,disabled:((_=g.instruments)==null?void 0:_.length)>0,displayDirective:"if"},{tab:()=>{var L;return((L=g.instruments)==null?void 0:L.length)>0?e(bu,{options:g.instruments,trigger:"hover",value:s.wikiCategoryIdChild,"onUpdate:value":[m=>s.wikiCategoryIdChild=m,m=>{t.setInstrumentId(m),s.instrumentId=m}],key:g.id,class:U.popSelect},{default:()=>[e("span",{class:[U.textBtn,v(g.instruments).selected&&U.textBtnActive]},[v(g.instruments).label||g.label,e("i",{class:U.iconArrow},null)])]}):g.label}})})],suffix:()=>e(G,{class:U.addBtn,type:"primary",bordered:!1,onClick:()=>{V.emit("teacher-slideshow",!0),i("change",{status:!0,type:"create"})}},{default:()=>[e(de,{class:U.addBtnIcon,previewDisabled:!0,src:Xs},null),F("创建课件")]})}),e(fe,{show:s.loading},{default:()=>[e(Ae,{class:U.coursewarePresets},{default:()=>[e("div",{style:{overflow:"hidden"}},[e("div",{class:[U.list,!s.loading&&s.tableList.length<=0&&U.listEmpty]},[s.tableList.map(g=>e("div",{class:[U.itemWrap,U.itemBlock,"row-nav"]},[e("div",{class:U.itemWrapBox},[e(Su,{operate:!0,isEditName:!0,item:g,onClick:()=>C(g.id),onEdit:()=>{V.emit("teacher-slideshow",!0),i("change",{status:!0,type:"update",groupItem:{id:g.id}})},onStartClass:()=>B(g,s.classGroupId),onDelete:()=>{s.selectItem=g,s.preRemoveVisiable=!0},onWork:()=>{s.workVisiable=!0,s.selectItem=g}},null)])])),!s.loading&&s.tableList.length<=0&&e(Fe,{class:U.empty1,description:"当前章节暂无课件,快点击右上角创建课件吧"},null)])])]})]})]),e("div",{class:U.presetsRight,id:"presetsRightRef"},[e(Ie,{showArrow:!1,show:!1,animated:!1,duration:0,delay:0},{trigger:()=>e("div",{class:[U.presetsArrar,!s.openTableShow&&U.presetsArrarActive],onClick:()=>s.openTableShow=!s.openTableShow},[e(Bu,null,{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e("path",{d:"M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z",fill:"currentColor"},null)])]})]),default:()=>e("div",null,[s.openTableShow?"收起":"展开"])}),e(Ec,{onMore:()=>s.showRelatedClass=!0,onAdd:g=>{y(g)},onLook:g=>{C(g.id)}},null)]),e(ae,{maskClosable:oe,show:s.showRelatedClass,"onUpdate:show":g=>s.showRelatedClass=g,preset:"card",showIcon:!1,class:["modalTitle background",U.attendClassModal1],title:"相关课件",blockScroll:!1},{default:()=>[e(Zi,{tableList:s.tableList,instrumentList:t.getInstrumentList,instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey,onClose:()=>s.showRelatedClass=!1,onAdd:g=>y(g),onClick:g=>{C(g.id),s.showRelatedClass=!1}},null)]}),e(ae,{maskClosable:oe,show:s.preRemoveVisiable,"onUpdate:show":g=>s.preRemoveVisiable=g,preset:"card",class:["modalTitle",U.removeVisiable1],title:"删除课件"},{default:()=>[e(Rt,{content:'<p style="text-align: left;">请确认是否删除【'.concat(s.selectItem.name,"】,删除后不可恢复</p>"),cancelButtonText:"取消",confirmButtonText:"确认",loading:s.messageLoading,onClose:()=>s.preRemoveVisiable=!1,onConfirm:()=>E()},null)]}),e(ae,{maskClosable:oe,show:s.addVisiable,"onUpdate:show":g=>s.addVisiable=g,preset:"card",class:["modalTitle",U.removeVisiable1],title:"保存成功"},{default:()=>[e(Rt,{content:'<p style="text-align: left;">【'.concat(o.addParam.name,"】暂未设置课件作业,是否现在去设置课件作业</p>"),cancelButtonText:"稍后设置",confirmButtonText:"立即设置",onClose:()=>s.addVisiable=!1,onConfirm:()=>{s.addVisiable=!1,s.workVisiable=!0,s.selectItem={id:o.addParam.id,name:o.addParam.name}}},null)]}),e(Iu,{show:s.previewModal,"onUpdate:show":g=>s.previewModal=g,type:"attend",params:s.previewParams},null),e(ae,{maskClosable:oe,show:s.showAttendClass,"onUpdate:show":g=>s.showAttendClass=g,preset:"card",showIcon:!1,class:["modalTitle background",U.attendClassModal],title:"选择班级",blockScroll:!1},{default:()=>[e(Ys,{onClose:()=>s.showAttendClass=!1,type:s.attendClassType,onPreview:g=>{if(window.matchMedia("(display-mode: standalone)").matches)St.application=window.matchMedia("(display-mode: standalone)").matches,s.previewModal=!0,s.previewParams={...g};else{const{href:b}=u.resolve({path:"/attend-class",query:{...g}});window.open(b,+new Date+"")}},onConfirm:async g=>{B(s.attendClassItem,g.classGroupId,g.instrumentId)}},null)]}),e(ae,{maskClosable:oe,show:s.workVisiable,"onUpdate:show":g=>s.workVisiable=g,preset:"card",class:["modalTitle background",U.workVisiable],title:s.selectItem.lessonPreTrainingId?"编辑作业":"创建作业"},{default:()=>[e("div",{id:"model-homework-height",class:U.workContainer},[e("div",{class:U.workTrain},[e(Ns,{cardType:"prepare",lessonPreTraining:{title:s.selectItem.name+"-课后作业",chapterId:s.selectItem.id,id:s.selectItem.lessonPreTrainingId},onChange:g=>{s.workVisiable=g.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",Sc="_block_1prp1_61",_c="_btnTitle_1prp1_65",Ic="_iconQuestion_1prp1_78",ie={headerTitle:wc,iconBook:vc,formContainer:Bc,btnSubjectList:yc,btnItem:bc,block:Sc,btnTitle:_c,iconQuestion:Ic},Dc=W({name:"courseware-head",setup(o,{emit:i,expose:t}){const p=_e(),n=N(["",""]),u=N([]),a=H({subjects:[],openFlagEnable:!0,autoPlay:!1,name:"",openFlag:!1}),s=c=>{const E=[];c.map(y=>{Array.isArray(y.instruments)&&y.instruments.forEach(C=>{E.push(C.value)})}),a.subjects=E},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||[])},h=()=>{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 E=[];p.getInstrumentList.forEach(v=>{Array.isArray(v.instruments)&&v.instruments.forEach(S=>{E.push(S.id)})});const y=[...new Set([...E,...c])],C=[];$e().getSubjectList.forEach(v=>{const S=Lt(v);S.enableFlag=!1,Array.isArray(S.instruments)&&S.instruments.forEach(g=>{g.enableFlag=!1,y.includes(g.id)&&(g.enableFlag=!0,S.enableFlag=!0)}),C.push(S)});const B=[];C.forEach(v=>{if(v.enableFlag){const{instruments:S,...g}=v;if(S&&S.length>0){const b=[];S==null||S.forEach(_=>{_.enableFlag&&b.push(_)}),b.length>0&&B.push({...g,instruments:b})}}}),u.value=B};return ee(async()=>{await $e().getSubjects(),l(),V.on("updateCoursewareHeadInfo",r),V.on("checkCoursewareForm",h)}),t({getForms:d}),()=>e(Ce,null,[e("div",{class:ie.headerTitle},[e("i",{class:ie.iconBook},null),e("span",null,[p.getSelectName])]),e("div",{class:ie.formContainer},[e("div",{class:[ie.btnItem,ie.block]},[e("span",{class:[ie.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:[ie.btnItem,ie.block]},[e("span",{class:[ie.btnTitle]},[e("span",null,[F("*")]),F("课件乐器")]),e(Nt,{status:n.value[1],placeholder:"请选择乐器(可多选)",class:ie.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(Ce,null,[e(G,{text:!0,style:" --n-width: 100% ",size:"small",onClick:()=>s(u.value)},{default:()=>[F("全选")]})])})]),e("div",{class:ie.btnItem},[e("span",{class:ie.btnTitle},[F("自动播放"),e(Ie,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:ie.iconQuestion},null),default:()=>"开启自动播放后,课件内视频、音频资源将自动播放"})]),e(_t,{value:a.autoPlay,"onUpdate:value":c=>a.autoPlay=c},null)]),e("div",{class:ie.btnItem},[e("span",{class:ie.btnTitle},[F("公开课件"),e(Ie,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:ie.iconQuestion},null),default:()=>"公开课件后,其它老师可以使用该课件上课"})]),a.openFlagEnable?e(_t,{value:a.openFlag,"onUpdate:value":c=>a.openFlag=c,disabled:!a.openFlagEnable},null):e(Ie,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e(_t,{value:a.openFlag,"onUpdate:value":c=>a.openFlag=c,disabled:!a.openFlagEnable},null),default:()=>"为尊重课件原作者,在“相关课件”中添加的课件不支持公开"})])])])}}),kc=W({name:"lesson-main",setup(){const o=_e(),i=H({editCoursewareShow:!1,coursewareType:"create",addParam:{isAdd:!1,id:null,addName:""},editCourseware:{},editWork:{}}),t=N(),p=()=>{var u;V.emit("coursewareClosed",(u=t.value)==null?void 0:u.getForms())},n=()=>{var u;V.emit("coursewareSave",(u=t.value)==null?void 0:u.getForms())};return()=>e("div",{class:[i.editCoursewareShow&&lt.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,o.setIsEditResource(u.status),u.status||V.emit("teacher-slideshow",!1)}},null):e(Ac,{addParam:i.addParam,onChange:u=>{i.coursewareType=u.type,i.editCoursewareShow=u.status,o.setIsEditResource(u.status),i.editCourseware=u.groupItem,i.addParam={isAdd:!1,id:null,addName:""}}},null)]),i.editCoursewareShow&&e("div",{class:lt.coursewareFooter},[e(ne,null,{default:()=>[e(G,{bordered:!1,type:"error",onClick:p},{default:()=>[F("取消")]}),e(G,{type:"primary",onClick:n},{default:()=>[F("保存课件")]})]})])])}}),Lc=W({name:"lessons-guide",emits:["close"],setup(o,{emit:i}){const t=H({box:{height:"0px"},show:!1,steps:[{ele:"",img:Vt("lessons2.png"),imgStyle:{left:ce(-647),width:ce(647),height:ce(223)},btnsStyle:{bottom:"30px",left:ce(-488)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"left"},{ele:"",img:Vt("lessons3.png"),imgStyle:{top:ce(-4),left:ce(-471),width:ce(471),height:ce(223)},btnsStyle:{bottom:ce(20),left:ce(-310)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"left"}],step:0}),p=N(!1),n=N({});(async()=>{try{const l=localStorage.getItem("teacher-guideInfo");l?n.value=JSON.parse(l)||null:n.value={},n.value&&n.value.lessonsGuideIn?p.value=!1:p.value=!0}catch(l){console.log(l)}})();const a=()=>{var c,E,y,C;const l=document.getElementById("lessonsIn-".concat(t.step));if(l){const B=l.getBoundingClientRect(),v=((c=t.steps[t.step].eleRectPadding)==null?void 0:c.left)||0,S=((E=t.steps[t.step].eleRectPadding)==null?void 0:E.top)||0,g=((y=t.steps[t.step].eleRectPadding)==null?void 0:y.width)||0,b=((C=t.steps[t.step].eleRectPadding)==null?void 0:C.height)||0;t.box={left:B.x-v+"px",top:B.y-S+"px",width:B.width+g+"px",height:B.height+b+"px"}}else r()},s=async l=>{try{if(l!=="prepare-lessons")return;n.value?n.value.lessonsGuideIn=!1:n.value={lessonsGuideIn:!1};try{ct({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(n.value)})}catch(c){console.log(c)}t.step=0,a(),p.value=!0}catch(c){}};ee(()=>{setTimeout(()=>{a()},500),window.addEventListener("resize",d),V.on("teacher-guideInfo",s)});const d=()=>{a()};De(()=>{window.removeEventListener("resize",d),V.off("teacher-guideInfo",s)});const r=()=>{if(t.step>=4){h();return}t.step=t.step+1,a()},h=async()=>{n.value?n.value.lessonsGuideIn=!0:n.value={lessonsGuideIn:!0};try{ct({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(n.value)})}catch(l){console.log(l)}p.value=!1};return()=>e(Ce,null,[p.value?Pt(e("div",{"onUpdate:show":l=>p.value=l,class:["n-modal-mask","n-modal-mask-guide"]},[e("div",{class:re.content,onClick:()=>r()},[e("div",{class:re.backBtn,onClick:l=>{l.stopPropagation(),h()}},[F("跳过")]),e("div",{class:re.box,style:{...t.box},id:"modeType-".concat(t.step)},[t.steps.map((l,c)=>{var E,y,C,B,v,S;return e("div",{onClick:g=>g.stopPropagation(),class:re.item,style:l.type=="bottom"?{display:c===t.step?"":"none",left:"".concat((E=l.eleRect)==null?void 0:E.left,"px"),top:"-".concat((y=l.imgStyle)==null?void 0:y.height)}:l.type=="left"?{display:c===t.step?"":"none",top:"".concat(parseFloat((C=t.box)==null?void 0:C.height)/2-parseFloat((B=l.imgStyle)==null?void 0:B.height)*1920/100/2-14,"px")}:{display:c===t.step?"":"none",left:"".concat((v=l.eleRect)==null?void 0:v.left,"px"),top:"".concat((S=t.box)==null?void 0:S.height)}},[e("img",{class:re.img,style:l.imgStyle,src:l.img},null),e("div",{class:re.btns,style:l.btnsStyle},[t.step+1==t.steps.length?e(Ce,null,[e("div",{class:[re.endBtn],onClick:()=>h()},[F("完成")]),e("div",{class:re.nextBtn,onClick:()=>{t.step=0,a()}},[F("再看一遍")])]):e("div",{class:re.btn,onClick:()=>r()},[F("下一步 ("),t.step+1,F("/"),t.steps.length,F(")")])])])})])])]),[[wu,p.value,"show"]]):null])}}),Ed=W({name:"prepare-lessons",setup(){const o=H({sidebarShow:!1}),i=_e(),t=N(),p=N(),n=u=>{var a;console.log(u,"val"),o.sidebarShow=u,(a=t.value)==null||a.resetTabPosition()};return ee(()=>{V.on("teacher-slideshow",n)}),De(()=>{V.off("teacher-slideshow",n)}),ee(()=>{jt(document.querySelector("#lessons-height"),u=>{const a=u[0],{height:s}=a.contentRect;document.documentElement.style.setProperty("--window-page-lesson-height",s+"px")})}),js(()=>{i.setTabType("courseware"),i.setSelectMusicStatus(!1),i.setSelectResourceStatus(!1),i.setIsAddResource(!1),i.setIsAddTrain(!1),i.setIsEditResource(!1),i.setIsEditTrain(!1)}),De(()=>{i.setSubjectId("")}),()=>e("div",{class:[We.prepareLessons,o.sidebarShow?We.showSideBar:We.hideSideBar],id:"lessons-height"},[e("div",{class:We.directoryMain,ref:p.value},[e(ho,{sidebarShow:o.sidebarShow},null)]),e("div",{class:We.lessonMain},[e(kc,null,null)]),e("div",{class:[We.resourceMain]},[o.sidebarShow&&e(_u,{ref:t},null)]),o.sidebarShow&&e(Lc,null,null)])}});export{Ed as default};