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