index-417f0636-1724246911995.js 148 KB

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