index-dccf9c7b-1714037397871.js 136 KB

1
  1. import{b as Uu,l as iu,a as zu,c as Ku,t as $u,C as rt,s as T,d as Zu,e as qu,f as Ju,h as cu,i as Hu,j as Qu,k as Yu,m as Xu}from"./index-526c68fe-1714037397871.js";import{B as es,A as ts}from"./index-cc23b6a3-1714037397871.js";import{u as jt}from"./catchData-30c07abc-1714037397871.js";import{a0 as us,a1 as ss,a2 as as,a3 as os,a4 as du,a5 as ns,a6 as ls,a7 as rs,a8 as is,d as N,a9 as it,r as P,aa as cs,ab as Q,ac as ds,S as W,p as Y,o as pu,ad as ps,ae as j,af as me,ag as V,ah as qt,ai as gs,aj as ms,ak as fs,al as Cs,y as De,am as gu,an as Fs,ao as hs,ap as Jt,aq as Ht,W as mu,ar as Es,_ as ws,as as As,at as Bs,au as Ue,Q as Le,av as ze,n as vs,b as ct,e as z,f as e,h as Ze,G as $e,C as de,w as ue,v as ne,F as Be,j as M,k as C,l as te,a as fu,c as Tt,A as I,V as Cu,aw as Fu,ax as ys,ay as bs,m as St,B as xe,R as ke,D as _s,u as Ne,q as qe,t as Je,P as dt,az as Ss,N as Is,x as Ds,g as Ls,T as Ae,aA as Qt,aB as Bt,$ as O,X as ks,O as xs,aC as js}from"./index-f9fea9d9-1714037397871.js";import{a as pt}from"./index-a57bc807-1714037397871.js";import{N as fe}from"./Scrollbar-38dc678b-1714037397871.js";import{T as pe}from"./index-c133eda4-1714037397871.js";import{u as ve}from"./index-2be6fc69-1714037397871.js";import{T as It}from"./index-ec3501c2-1714037397871.js";import{C as Ts}from"./api-4e0645e9-1714037397871.js";import{D as Vs,b as Dt,C as hu,c as Rs,R as Eu}from"./index-a155a642-1714037397871.js";import{i as Ms}from"./index-565d79c3-1714037397871.js";import{P as wu}from"./index-2c4f9ce9-1714037397871.js";import{T as Vt}from"./index-310792c5-1714037397871.js";import{b as Au}from"./browser-504037ee-1714037397871.js";import{a as Rt,b as Mt,c as Ps,d as Ns}from"./api-ec80813c-1714037397871.js";import{i as Ws,a as Gs,b as Os}from"./icon-plus-t-35f4cdeb-1714037397871.js";import{N as Us}from"./Slider-a0eb707c-1714037397871.js";import{i as zs}from"./icon_default-d1bcaf5f-1714037397871.js";import{i as Ks}from"./icon-select-23609858-1714037397871.js";import{U as $s,S as Zs,f as qs}from"./index-163e87d4-1714037397871.js";import{a as Js}from"./add-efe8238e-1714037397871.js";import{s as vt}from"./state-35acd904-1714037397871.js";import{u as Lt}from"./index-d1495c81-1714037397871.js";import{A as Hs}from"./index-8030e859-1714037397871.js";import{g as Ke,s as Ee,a as Qs,b as kt}from"./api-8dc33318-1714037397871.js";import"./urlUtils-ae95598a-1714037397871.js";import"./icon-pan-16e35a82-1714037397871.js";import"./index-70fd6298-1714037397871.js";import"./icon-collect-active-4272e308-1714037397871.js";import"./ding-8e9054d5-1714037397871.js";import"./searchArray-22e913b5-1714037397871.js";import"./api-c10c06f2-1714037397871.js";import"./api-681dc748-1714037397871.js";import"./teacherIcon-b8e3946d-1714037397871.js";import"./index-6e88413c-1714037397871.js";import"./api-db4b912a-1714037397871.js";import"./updateSubject-efc76dbe-1714037397871.js";import"./index.module-d504ad9a-1714037397871.js";import"./index-bb5a2a56-1714037397871.js";function Ys(s){return us(ss(s).toLowerCase())}var Xs=as(function(s,l,t){return l=l.toLowerCase(),s+(t?Ys(l):l)});const Yt=Xs,ea=s=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),ta={name:"Carousel",common:os,self:ea},ua=ta;function sa(s){const{length:l}=s;return l>1&&(s.push(Xt(s[0],0,"append")),s.unshift(Xt(s[l-1],l-1,"prepend"))),s}function Xt(s,l,t){return du(s,{key:"carousel-item-duplicate-".concat(l,"-").concat(t)})}function eu(s,l,t){return l===1?0:t?s===0?l-3:s===l-1?0:s-1:s}function yt(s,l){return l?s+1:s}function aa(s,l,t){return s<0?null:s===0?t?l-1:null:s-1}function oa(s,l,t){return s>l-1?null:s===l-1?t?0:null:s+1}function na(s,l){return l&&s>3?s-2:s}function tu(s){return window.TouchEvent&&s instanceof window.TouchEvent}function uu(s,l){let{offsetWidth:t,offsetHeight:p}=s;if(l){const a=getComputedStyle(s);t=t-parseFloat(a.getPropertyValue("padding-left"))-parseFloat(a.getPropertyValue("padding-right")),p=p-parseFloat(a.getPropertyValue("padding-top"))-parseFloat(a.getPropertyValue("padding-bottom"))}return{width:t,height:p}}function at(s,l,t){return s<l?l:s>t?t:s}function la(s){if(s===void 0)return 0;if(typeof s=="number")return s;const l=/^((\d+)?\.?\d+?)(ms|s)?$/,t=s.match(l);if(t){const[,p,,a="ms"]=t;return Number(p)*(a==="ms"?1:1e3)}return 0}const Bu=is("n-carousel-methods"),ra=s=>{ns(Bu,s)},Pt=(s="unknown",l="component")=>{const t=ls(Bu);return t||rs(s,"`".concat(l,"` 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=N({name:"CarouselDots",props:ia,setup(s){const{mergedClsPrefixRef:l}=it(s),t=P([]),p=Pt();function a(r,i){switch(r.key){case"Enter":case" ":r.preventDefault(),p.to(i);return}s.keyboard&&o(r)}function u(r){s.trigger==="hover"&&p.to(r)}function n(r){s.trigger==="click"&&p.to(r)}function o(r){var i;if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey)return;const d=(i=document.activeElement)===null||i===void 0?void 0:i.nodeName.toLowerCase();if(d==="input"||d==="textarea")return;const{code:F}=r,h=F==="PageUp"||F==="ArrowUp",_=F==="PageDown"||F==="ArrowDown",E=F==="PageUp"||F==="ArrowRight",f=F==="PageDown"||F==="ArrowLeft",v=p.isVertical(),k=v?h:E,S=v?_:f;!k&&!S||(r.preventDefault(),k&&!p.isNextDisabled()?(p.next(),c(p.currentIndexRef.value)):S&&!p.isPrevDisabled()&&(p.prev(),c(p.currentIndexRef.value)))}function c(r){var i;(i=t.value[r])===null||i===void 0||i.focus()}return cs(()=>t.value.length=0),{mergedClsPrefix:l,dotEls:t,handleKeydown:a,handleMouseenter:u,handleClick:n}},render(){const{mergedClsPrefix:s,dotEls:l}=this;return Q("div",{class:["".concat(s,"-carousel__dots"),"".concat(s,"-carousel__dots--").concat(this.dotType)],role:"tablist"},ds(this.total,t=>{const p=t===this.currentIndex;return Q("div",{"aria-selected":p,ref:a=>l.push(a),role:"button",tabindex:"0",class:["".concat(s,"-carousel__dot"),p&&"".concat(s,"-carousel__dot--active")],key:t,onClick:()=>{this.handleClick(t)},onMouseenter:()=>{this.handleMouseenter(t)},onKeydown:a=>{this.handleKeydown(a,t)}})}))}}),da=Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},Q("g",{fill:"none"},Q("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=Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},Q("g",{fill:"none"},Q("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"}))),ga=N({name:"CarouselArrow",setup(s){const{mergedClsPrefixRef:l}=it(s),{isVertical:t,isPrevDisabled:p,isNextDisabled:a,prev:u,next:n}=Pt();return{mergedClsPrefix:l,isVertical:t,isPrevDisabled:p,isNextDisabled:a,prev:u,next:n}},render(){const{mergedClsPrefix:s}=this;return Q("div",{class:"".concat(s,"-carousel__arrow-group")},Q("div",{class:["".concat(s,"-carousel__arrow"),this.isPrevDisabled()&&"".concat(s,"-carousel__arrow--disabled")],role:"button",onClick:this.prev},da),Q("div",{class:["".concat(s,"-carousel__arrow"),this.isNextDisabled()&&"".concat(s,"-carousel__arrow--disabled")],role:"button",onClick:this.next},pa))}}),lt="CarouselItem",ma=s=>{var l;return((l=s.type)===null||l===void 0?void 0:l.name)===lt},gt=N({name:lt,setup(s){const{mergedClsPrefixRef:l}=it(s),t=Pt(Yt(lt),"n-".concat(Yt(lt))),p=P(),a=W(()=>{const{value:i}=p;return i?t.getSlideIndex(i):-1}),u=W(()=>t.isPrev(a.value)),n=W(()=>t.isNext(a.value)),o=W(()=>t.isActive(a.value)),c=W(()=>t.getSlideStyle(a.value));Y(()=>{t.addSlide(p.value)}),pu(()=>{t.removeSlide(p.value)});function r(i){const{value:d}=a;d!==void 0&&(t==null||t.onCarouselItemClick(d,i))}return{mergedClsPrefix:l,selfElRef:p,isPrev:u,isNext:n,isActive:o,index:a,style:c,handleClick:r}},render(){var s;const{$slots:l,mergedClsPrefix:t,isPrev:p,isNext:a,isActive:u,index:n,style:o}=this,c=["".concat(t,"-carousel__slide"),{["".concat(t,"-carousel__slide--current")]:u,["".concat(t,"-carousel__slide--prev")]:p,["".concat(t,"-carousel__slide--next")]:a}];return Q("div",{ref:"selfElRef",class:c,role:"option",tabindex:"-1","data-index":n,"aria-hidden":!u,style:o,onClickCapture:this.handleClick},(s=l.default)===null||s===void 0?void 0:s.call(l,{isPrev:p,isNext:a,isActive:u,index:n}))}}),fa=ps("carousel","\n position: relative;\n width: 100%;\n height: 100%;\n touch-action: pan-y;\n overflow: hidden;\n",[j("slides","\n display: flex;\n width: 100%;\n height: 100%;\n transition-timing-function: var(--n-bezier);\n transition-property: transform;\n ",[j("slide","\n flex-shrink: 0;\n position: relative;\n width: 100%;\n height: 100%;\n outline: none;\n overflow: hidden;\n ",[me("> img","\n display: block;\n ")])]),j("dots","\n position: absolute;\n display: flex;\n flex-wrap: nowrap;\n ",[V("dot",[j("dot","\n height: var(--n-dot-size);\n width: var(--n-dot-size);\n background-color: var(--n-dot-color);\n border-radius: 50%;\n cursor: pointer;\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n outline: none;\n ",[me("&:focus","\n background-color: var(--n-dot-color-focus);\n "),V("active","\n background-color: var(--n-dot-color-active);\n ")])]),V("line",[j("dot","\n border-radius: 9999px;\n width: var(--n-dot-line-width);\n height: 4px;\n background-color: var(--n-dot-color);\n cursor: pointer;\n transition:\n width .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n outline: none;\n ",[me("&:focus","\n background-color: var(--n-dot-color-focus);\n "),V("active","\n width: var(--n-dot-line-width-active);\n background-color: var(--n-dot-color-active);\n ")])])]),j("arrow","\n transition: background-color .3s var(--n-bezier);\n cursor: pointer;\n height: 28px;\n width: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(255, 255, 255, .2);\n color: var(--n-arrow-color);\n border-radius: 8px;\n user-select: none;\n -webkit-user-select: none;\n font-size: 18px;\n ",[me("svg","\n height: 1em;\n width: 1em;\n "),me("&:hover","\n background-color: rgba(255, 255, 255, .3);\n ")]),V("vertical","\n touch-action: pan-x;\n ",[j("slides","\n flex-direction: column;\n "),V("fade",[j("slide","\n top: 50%;\n left: unset;\n transform: translateY(-50%);\n ")]),V("card",[j("slide","\n top: 50%;\n left: unset;\n transform: translateY(-50%) translateZ(-400px);\n ",[V("current","\n transform: translateY(-50%) translateZ(0);\n "),V("prev","\n transform: translateY(-100%) translateZ(-200px);\n "),V("next","\n transform: translateY(0%) translateZ(-200px);\n ")])])]),V("usercontrol",[j("slides",[me(">",[me("div","\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 100%;\n transform: translate(-50%, -50%);\n ")])])]),V("left",[j("dots","\n transform: translateY(-50%);\n top: 50%;\n left: 12px;\n flex-direction: column;\n ",[V("line",[j("dot","\n width: 4px;\n height: var(--n-dot-line-width);\n margin: 4px 0;\n transition:\n height .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n outline: none;\n ",[V("active","\n height: var(--n-dot-line-width-active);\n ")])])]),j("dot","\n margin: 4px 0;\n ")]),j("arrow-group","\n position: absolute;\n display: flex;\n flex-wrap: nowrap;\n "),V("vertical",[j("arrow","\n transform: rotate(90deg);\n ")]),V("show-arrow",[V("bottom",[j("dots","\n transform: translateX(0);\n bottom: 18px;\n left: 18px;\n ")]),V("top",[j("dots","\n transform: translateX(0);\n top: 18px;\n left: 18px;\n ")]),V("left",[j("dots","\n transform: translateX(0);\n top: 18px;\n left: 18px;\n ")]),V("right",[j("dots","\n transform: translateX(0);\n top: 18px;\n right: 18px;\n ")])]),V("left",[j("arrow-group","\n bottom: 12px;\n left: 12px;\n flex-direction: column;\n ",[me("> *:first-child","\n margin-bottom: 12px;\n ")])]),V("right",[j("dots","\n transform: translateY(-50%);\n top: 50%;\n right: 12px;\n flex-direction: column;\n ",[V("line",[j("dot","\n width: 4px;\n height: var(--n-dot-line-width);\n margin: 4px 0;\n transition:\n height .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n outline: none;\n ",[V("active","\n height: var(--n-dot-line-width-active);\n ")])])]),j("dot","\n margin: 4px 0;\n "),j("arrow-group","\n bottom: 12px;\n right: 12px;\n flex-direction: column;\n ",[me("> *:first-child","\n margin-bottom: 12px;\n ")])]),V("top",[j("dots","\n transform: translateX(-50%);\n top: 12px;\n left: 50%;\n ",[V("line",[j("dot","\n margin: 0 4px;\n ")])]),j("dot","\n margin: 0 4px;\n "),j("arrow-group","\n top: 12px;\n right: 12px;\n ",[me("> *:first-child","\n margin-right: 12px;\n ")])]),V("bottom",[j("dots","\n transform: translateX(-50%);\n bottom: 12px;\n left: 50%;\n ",[V("line",[j("dot","\n margin: 0 4px;\n ")])]),j("dot","\n margin: 0 4px;\n "),j("arrow-group","\n bottom: 12px;\n right: 12px;\n ",[me("> *:first-child","\n margin-right: 12px;\n ")])]),V("fade",[j("slide","\n position: absolute;\n opacity: 0;\n transition-property: opacity;\n pointer-events: none;\n ",[V("current","\n opacity: 1;\n pointer-events: auto;\n ")])]),V("card",[j("slides","\n perspective: 1000px;\n "),j("slide","\n position: absolute;\n left: 50%;\n opacity: 0;\n transform: translateX(-50%) translateZ(-400px);\n transition-property: opacity, transform;\n ",[V("current","\n opacity: 1;\n transform: translateX(-50%) translateZ(0);\n z-index: 1;\n "),V("prev","\n opacity: 0.4;\n transform: translateX(-100%) translateZ(-200px);\n "),V("next","\n opacity: 0.4;\n transform: translateX(0%) translateZ(-200px);\n ")])])]),Ca=["transitionDuration","transitionTimingFunction"],Fa=Object.assign(Object.assign({},gu.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 bt=!1;const Nt=N({name:"Carousel",props:Fa,setup(s){const{mergedClsPrefixRef:l,inlineThemeDisabled:t}=it(s),p=P(null),a=P(null),u=P([]),n={value:[]},o=W(()=>s.direction==="vertical"),c=W(()=>o.value?"height":"width"),r=W(()=>o.value?"bottom":"right"),i=W(()=>s.effect==="slide"),d=W(()=>s.loop&&s.slidesPerView===1&&i.value),F=W(()=>s.effect==="custom"),h=W(()=>!i.value||s.centeredSlides?1:s.slidesPerView),_=W(()=>F.value?1:s.slidesPerView),E=W(()=>h.value==="auto"||s.slidesPerView==="auto"&&s.centeredSlides),f=P({width:0,height:0}),v=W(()=>{const{value:g}=u;if(!g.length)return[];const{value:w}=E;if(w)return g.map(J=>uu(J));const{value:y}=_,{value:L}=f,{value:x}=c;let D=L[x];if(y!=="auto"){const{spaceBetween:J}=s,ie=D-(y-1)*J,st=1/Math.max(1,y);D=ie*st}const K=Object.assign(Object.assign({},L),{[x]:D});return g.map(()=>K)}),k=W(()=>{const{value:g}=v;if(!g.length)return[];const{centeredSlides:w,spaceBetween:y}=s,{value:L}=c,{[L]:x}=f.value;let D=0;return g.map(({[L]:K})=>{let J=D;return w&&(J+=(K-x)/2),D+=K+y,J})}),S=P(!1),ae=W(()=>{const{transitionStyle:g}=s;return g?qt(g,Ca):{}}),m=W(()=>F.value?0:la(ae.value.transitionDuration)),B=W(()=>{const{value:g}=u;if(!g.length)return[];const w=!(E.value||_.value===1),y=K=>{if(w){const{value:J}=c;return{[J]:"".concat(v.value[K][J],"px")}}};if(F.value)return g.map((K,J)=>y(J));const{effect:L,spaceBetween:x}=s,{value:D}=r;return g.reduce((K,J,ie)=>{const st=Object.assign(Object.assign({},y(ie)),{["margin-".concat(D)]:"".concat(x,"px")});return K.push(st),S.value&&(L==="fade"||L==="card")&&Object.assign(st,ae.value),K},[])}),A=W(()=>{const{value:g}=h,{length:w}=u.value;if(g!=="auto")return Math.max(w-g,0)+1;{const{value:y}=v,{length:L}=y;if(!L)return w;const{value:x}=k,{value:D}=c,K=f.value[D];let J=y[y.length-1][D],ie=L;for(;ie>1&&J<K;)ie--,J+=x[ie]-x[ie-1];return at(ie+1,1,L)}}),b=W(()=>na(A.value,d.value)),Z=yt(s.defaultIndex,d.value),Ce=P(eu(Z,A.value,d.value)),q=gs(ms(s,"currentIndex"),Ce),re=W(()=>yt(q.value,d.value));function Fe(g){var w,y;g=at(g,0,A.value-1);const L=eu(g,A.value,d.value),{value:x}=q;L!==q.value&&(Ce.value=L,(w=s["onUpdate:currentIndex"])===null||w===void 0||w.call(s,L,x),(y=s.onUpdateCurrentIndex)===null||y===void 0||y.call(s,L,x))}function We(g=re.value){return aa(g,A.value,s.loop)}function He(g=re.value){return oa(g,A.value,s.loop)}function vu(g){const w=je(g);return w!==null&&We()===w}function yu(g){const w=je(g);return w!==null&&He()===w}function Wt(g){return re.value===je(g)}function bu(g){return q.value===g}function Gt(){return We()===null}function Ot(){return He()===null}function mt(g){const w=at(yt(g,d.value),0,A.value);(g!==q.value||w!==re.value)&&Fe(w)}function ft(){const g=We();g!==null&&Fe(g)}function Qe(){const g=He();g!==null&&Fe(g)}function _u(){(!ge||!d.value)&&ft()}function Su(){(!ge||!d.value)&&Qe()}let ge=!1,be=0;const Ct=P({});function Ye(g,w=0){Ct.value=Object.assign({},ae.value,{transform:o.value?"translateY(".concat(-g,"px)"):"translateX(".concat(-g,"px)"),transitionDuration:"".concat(w,"ms")})}function Ge(g=0){i.value?Ft(re.value,g):be!==0&&(!ge&&g>0&&(ge=!0),Ye(be=0,g))}function Ft(g,w){const y=Ut(g);y!==be&&w>0&&(ge=!0),be=Ut(re.value),Ye(y,w)}function Ut(g){let w;return g>=A.value-1?w=zt():w=k.value[g]||0,w}function zt(){if(h.value==="auto"){const{value:g}=c,{[g]:w}=f.value,{value:y}=k,L=y[y.length-1];let x;if(L===void 0)x=w;else{const{value:D}=v;x=L+D[D.length-1][g]}return x-w}else{const{value:g}=k;return g[A.value-1]||0}}const Oe={currentIndexRef:q,to:mt,prev:_u,next:Su,isVertical:()=>o.value,isHorizontal:()=>!o.value,isPrev:vu,isNext:yu,isActive:Wt,isPrevDisabled:Gt,isNextDisabled:Ot,getSlideIndex:je,getSlideStyle:Lu,addSlide:Iu,removeSlide:Du,onCarouselItemClick:ku};ra(Oe);function Iu(g){g&&u.value.push(g)}function Du(g){if(!g)return;const w=je(g);w!==-1&&u.value.splice(w,1)}function je(g){return typeof g=="number"?g:g?u.value.indexOf(g):-1}function Lu(g){const w=je(g);if(w!==-1){const y=[B.value[w]],L=Oe.isPrev(w),x=Oe.isNext(w);return L&&y.push(s.prevSlideStyle||""),x&&y.push(s.nextSlideStyle||""),As(y)}}function ku(g,w){let y=!ge&&!tt&&!At;s.effect==="card"&&y&&!Wt(g)&&(mt(g),y=!1),y||(w.preventDefault(),w.stopPropagation())}let Xe=null;function et(){Xe&&(clearInterval(Xe),Xe=null)}function Te(){et(),!s.autoplay||b.value<2||(Xe=window.setInterval(Qe,s.interval))}let ht=0,Et=0,he=0,wt=0,tt=!1,At=!1;function Kt(g){var w;if(bt||!(!((w=a.value)===null||w===void 0)&&w.contains(Bs(g))))return;bt=!0,tt=!0,At=!1,wt=Date.now(),et(),g.type!=="touchstart"&&!g.target.isContentEditable&&g.preventDefault();const y=tu(g)?g.touches[0]:g;o.value?Et=y.clientY:ht=y.clientX,s.touchable&&(Ue("touchmove",document,ut),Ue("touchend",document,Ve),Ue("touchcancel",document,Ve)),s.draggable&&(Ue("mousemove",document,ut),Ue("mouseup",document,Ve))}function ut(g){const{value:w}=o,{value:y}=c,L=tu(g)?g.touches[0]:g,x=w?L.clientY-Et:L.clientX-ht,D=f.value[y];he=at(x,-D,D),g.cancelable&&g.preventDefault(),i.value&&Ye(be-he,0)}function Ve(){const{value:g}=re;let w=g;if(!ge&&he!==0&&i.value){const y=be-he,L=[...k.value.slice(0,A.value-1),zt()];let x=null;for(let D=0;D<L.length;D++){const K=Math.abs(L[D]-y);if(x!==null&&x<K)break;x=K,w=D}}if(w===g){const y=Date.now()-wt,{value:L}=c,x=f.value[L];he>x/2||he/y>.4?w=We(g):(he<-x/2||he/y<-.4)&&(w=He(g))}w!==null&&w!==g?(At=!0,Fe(w),Le(()=>{(!d.value||Ce.value!==q.value)&&Ge(m.value)})):Ge(m.value),$t(),Te()}function $t(){tt&&(bt=!1),tt=!1,ht=0,Et=0,he=0,wt=0,ze("touchmove",document,ut),ze("touchend",document,Ve),ze("touchcancel",document,Ve),ze("mousemove",document,ut),ze("mouseup",document,Ve)}function xu(){if(i.value&&ge){const{value:g}=re;Ft(g,0)}else Te();i.value&&(Ct.value.transitionDuration="0ms"),ge=!1}function ju(g){if(g.preventDefault(),ge)return;let{deltaX:w,deltaY:y}=g;g.shiftKey&&!w&&(w=y);const L=-1,x=1,D=(w||y)>0?x:L;let K=0,J=0;o.value?J=D:K=D;const ie=10;(J*y>=ie||K*w>=ie)&&(D===x&&!Ot()?Qe():D===L&&!Gt()&&ft())}function Tu(){f.value=uu(p.value,!0),Te()}function Vu(){var g,w;E.value&&((w=(g=v.effect).scheduler)===null||w===void 0||w.call(g),v.effect.run())}function Ru(){s.autoplay&&et()}function Mu(){s.autoplay&&Te()}Y(()=>{fs(Te),requestAnimationFrame(()=>S.value=!0)}),pu(()=>{$t(),et()}),Cs(()=>{const{value:g}=u,{value:w}=n,y=new Map,L=D=>y.has(D)?y.get(D):-1;let x=!1;for(let D=0;D<g.length;D++){const K=w.findIndex(J=>J.el===g[D]);K!==D&&(x=!0),y.set(g[D],K)}x&&g.sort((D,K)=>L(D)-L(K))}),De(re,(g,w)=>{if(g!==w)if(Te(),i.value){if(d.value){const{value:y}=A;b.value>2&&g===y-2&&w===1?g=0:g===1&&w===y-2&&(g=y-1)}Ft(g,m.value)}else Ge()},{immediate:!0}),De([d,h],()=>void Le(()=>{Fe(re.value)})),De(k,()=>{i.value&&Ge()},{deep:!0}),De(i,g=>{g?Ge():(ge=!1,Ye(be=0))});const Pu=W(()=>({onTouchstartPassive:s.touchable?Kt:void 0,onMousedown:s.draggable?Kt:void 0,onWheel:s.mousewheel?ju:void 0})),Nu=W(()=>Object.assign(Object.assign({},qt(Oe,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:b.value,currentIndex:q.value})),Wu=W(()=>({total:b.value,currentIndex:q.value,to:Oe.to})),Gu={getCurrentIndex:()=>q.value,to:mt,prev:ft,next:Qe},Ou=gu("Carousel","-carousel",fa,ua,s,l),Zt=W(()=>{const{common:{cubicBezierEaseInOut:g},self:{dotSize:w,dotColor:y,dotColorActive:L,dotColorFocus:x,dotLineWidth:D,dotLineWidthActive:K,arrowColor:J}}=Ou.value;return{"--n-bezier":g,"--n-dot-color":y,"--n-dot-color-focus":x,"--n-dot-color-active":L,"--n-dot-size":w,"--n-dot-line-width":D,"--n-dot-line-width-active":K,"--n-arrow-color":J}}),Re=t?Fs("carousel",void 0,Zt,s):void 0;return Object.assign(Object.assign({mergedClsPrefix:l,selfElRef:p,slidesElRef:a,slideVNodes:n,duplicatedable:d,userWantsControl:F,autoSlideSize:E,realIndex:re,slideStyles:B,translateStyle:Ct,slidesControlListeners:Pu,handleTransitionEnd:xu,handleResize:Tu,handleSlideResize:Vu,handleMouseenter:Ru,handleMouseleave:Mu,isActive:bu,arrowSlotProps:Nu,dotSlotProps:Wu},Gu),{cssVars:t?void 0:Zt,themeClass:Re==null?void 0:Re.themeClass,onRender:Re==null?void 0:Re.onRender})},render(){var s;const{mergedClsPrefix:l,showArrow:t,userWantsControl:p,slideStyles:a,dotType:u,dotPlacement:n,slidesControlListeners:o,transitionProps:c={},arrowSlotProps:r,dotSlotProps:i,$slots:{default:d,dots:F,arrow:h}}=this,_=d&&hs(d())||[];let E=ha(_);return E.length||(E=_.map(f=>Q(gt,null,{default:()=>du(f)}))),this.duplicatedable&&(E=sa(E)),this.slideVNodes.value=E,this.autoSlideSize&&(E=E.map(f=>Q(Jt,{onResize:this.handleSlideResize},{default:()=>f}))),(s=this.onRender)===null||s===void 0||s.call(this),Q("div",Object.assign({ref:"selfElRef",class:[this.themeClass,"".concat(l,"-carousel"),this.direction==="vertical"&&"".concat(l,"-carousel--vertical"),this.showArrow&&"".concat(l,"-carousel--show-arrow"),"".concat(l,"-carousel--").concat(n),"".concat(l,"-carousel--").concat(this.direction),"".concat(l,"-carousel--").concat(this.effect),p&&"".concat(l,"-carousel--usercontrol")],style:this.cssVars},o,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),Q(Jt,{onResize:this.handleResize},{default:()=>Q("div",{ref:"slidesElRef",class:"".concat(l,"-carousel__slides"),role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},p?E.map((f,v)=>Q("div",{style:a[v],key:v},mu(Q(ws,Object.assign({},c),{default:()=>f}),[[Es,this.isActive(v)]]))):E)}),this.showDots&&i.total>1&&Ht(F,i,()=>[Q(ca,{key:u+n,total:i.total,currentIndex:i.currentIndex,dotType:u,trigger:this.trigger,keyboard:this.keyboard})]),t&&Ht(h,r,()=>[Q(ga,null)]))}});function ha(s){return s.reduce((l,t)=>(ma(t)&&l.push(t),l),[])}const Ea="_prepareLessons_1b8gi_1",wa="_directoryMain_1b8gi_7",Aa="_resourceMain_1b8gi_8",Ba="_lessonMain_1b8gi_16",va="_resourceClose_1b8gi_25",ya="_showSideBar_1b8gi_31",ba="_hideSideBar_1b8gi_43",Me={prepareLessons:Ea,directoryMain:wa,resourceMain:Aa,lessonMain:Ba,resourceClose:va,showSideBar:ya,hideSideBar:ba},_a="_directoryList_1eo9b_1",Sa="_scrollBar_1eo9b_8",Ia="_iconArrow_1eo9b_32",Da="_itemImg_1eo9b_42",La="_itemBg_1eo9b_79",ka="_itemContent_1eo9b_104",xa="_subjects_1eo9b_114",ja="_changeDir_1eo9b_124",Ta="_treeParent_1eo9b_149",Va="_treeChild_1eo9b_152",Ra="_treeItem_1eo9b_155",Ma="_childItem_1eo9b_165",Pa="_title_1eo9b_165",Na="_dir_1eo9b_1",Wa="_titleSelect_1eo9b_187",Ga="_arrow_1eo9b_194",Oa="_arrowSelect_1eo9b_201",Ua="_childArrow_1eo9b_205",za="_childSelect_1eo9b_215",Ka="_coursewareModal_1eo9b_221",U={directoryList:_a,scrollBar:Sa,"select-directory":"_select-directory_1eo9b_13",iconArrow:Ia,"select-directory-info":"_select-directory-info_1eo9b_35",itemImg:Da,itemBg:La,itemContent:ka,subjects:xa,changeDir:ja,treeParent:Ta,treeChild:Va,treeItem:Ra,childItem:Ma,title:Pa,dir:Na,titleSelect:Wa,arrow:Ga,arrowSelect:Oa,childArrow:Ua,childSelect:za,coursewareModal:Ka},$a="_attendClassSearch_g69gx_1",Za="_iconSearch_g69gx_17",qa="_classList_g69gx_21",Ja="_content_g69gx_25",Ha="_item_g69gx_29",Qa="_cover_g69gx_35",Ya="_iconCustom_g69gx_49",Xa="_editContainer_g69gx_59",eo="_editBtnGroup_g69gx_72",to="_delBtn_g69gx_75",uo="_editBtn_g69gx_72",so="_itemImg_g69gx_99",ao="_itemBg_g69gx_130",oo="_itemName_g69gx_155",no="_teachingModal_g69gx_162",lo="_removeVisiable_g69gx_165",ro="_studentRemove_g69gx_171",io="_btnGroup_g69gx_183",H={attendClassSearch:$a,iconSearch:Za,classList:qa,content:Ja,item:Ha,cover:Qa,iconCustom:Ya,editContainer:Xa,editBtnGroup:eo,delBtn:to,editBtn:uo,itemImg:so,itemBg:ao,itemName:oo,teachingModal:no,removeVisiable:lo,studentRemove:ro,btnGroup:io},co="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdoAAAKgCAMAAAALa0ynAAAAZlBMVEX4+fuFm9SJn9bq7veuvOKltt/19/qXqtvy9PnH0erN1u3BzOmNotfU2++fsN3n6/bW3fCbrdyUp9nu8fijs96ywOS5xua+yujR2e68yOfb4vLf5fKQpNipueDj6PTK1OzY3/G2w+XPOG7OAAANa0lEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGB26+A0YiCIgujMCCF02KPyT9UXY4xXDkC176VQNP0BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgg2znfqx17Oc2KNmu+eMSN+S15i/rNYg45x/nIOE137jbhG3NN8u/LbjmjWvweNu85Wyf73tDWVI9+7y1D57umLeOwdOteWsNnm7+Y/B00mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0n6xdwcnDgNRFAQZCWN80FH5p7rgGGbxp1WVQmMxlgZelrTjfVdK10/ZSP0P572GsJG613WsMWyk7vRZo1j22uZaw/jdbnIOehrbSN1qzAnKRupm5xrIzzZ4hnKS2ue1BrKRusN7DWQjdYdx52MbqdLigfxUjlFZ/vxkeWXR5UVjls8DXT7qdQ07STlDuUCDa2/P5rIqrpg/hbRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mZJmyVtlrRZ0mYdVkqr3lZKq15WSqs+FraqTiulWbeV0qrzsFJadVkpzfo4Q2Vdh5XSqvO2Upr13Ui1UgoAAAAAAAAAAAAAAAAAAAAAAAD8sQcHAgAAAABA/q+NoKqqqqqqqqqqqqqqqqqqCrtm2qUmDAXQdwOGoAiyuIwsjv//T/YULYQoVFrb43jmfhGVJXDJy3uEb7755ptvvvlmHibPjfwRTZnLHPJjeJ6zhZE/JcknWtE0ychWZZnIi/KpZT4+BPJHxBDLDE7A6mGvYVbIQyyiaC9DCqqdjLACNbIjKOQ1CUkTuWA2ozTPUusBocxAZ5DNuG/YPbqmu2IFb6U2BNRBWhJGqZ+lNgRlZG633chjJBGwFpsy2C7NtNow/RSRHFi+k1qvADj/L7U6g/P8TRbyIGtAJY4Ukkm1JmqdHoHkndSKfADUur3nOwAVWWyfpHYJNDJFuXbxgeXaoZw4m8AML30lFtpviSD4+RmKnCHTl3gi76VWPiugMGKhFayelkaZfUcG0f4GM9jzQ/gywgLY2mfirGvccJQABxHZQvxuasULgFTbtoFmnlrj4KROk3h/q/bYR9I8A479P8ByUm19VRrA+e3USp7CSSx2UMk8tYoBi79Qq4Lf4PTEpLa/boBAy5W9s3vRYUsGxc/PzSdQXhsZZT3pe6gVE5/EJgD/uWqzdITMVftA0rQYNi8Y7sIH9n2xSjZV/OTVNX4vGRK9iVoHDzjc/2d5IYZq+YvjA2qXMsLy79WGwId05FGfJRtgO6W2hsq0x72rtkkvVEDaspHDwqaCqF1o5HXRHSfA0w5dcXHD9qp2f7yy+L9qdQWRGVbCRW/9MKrWLporKMKWLagwvISxEpeDrLjLp7wsSyaJf6/20On5v2pl5TziKlA7/StWKzOuNulG7WPfvU+XGP7l1TZp8/XVmggyLR3JORdLmEVZX4kgqOsMKOp61R6WuMu84q7pfdHGZamRzbanAKjaxVebJGgq1PpBtTZ190P6AmrlY2QOwQdKsVhzj1qMAqLRFmgFaiSdfNU0akd3UbzPKyvg/HOhBrX+vFKKTQGLf6jWqAkS8avqLDa5AtXvxf45lUfUnqwirLjNvNbcV+vxumolvKn/dQCVvqSaozVQCv4stSc9wslRmyeJJ4YJkpHT8MVlBZzEpvnoCYCiXTpIag2XAezudc7ybs+oXlatbJRzVfz+ehxGZ+D6p/zBQ2qn8cRhtloJgOOdiQVlpm7qQvehI/11rgpOt/EYohu3JiJ+5bq2yQZuQzvC1GO1QwT77pqen65Wbyx8wP5+V9YRSGXI3k2i3B6dmv4eqA/XlfPbDnqCu25DOLyyWvEy6xIsgSqXKyYFTnILED5Z7cznty7+TSblKSCZmCHK8l6RSjyIf9U7xg0J0V23AdmLP43yKvB7s8oKbHkA7MUlB5az1K68EVZPUpsrNyTXwIfckPxkB6hNckE+YCeSofTFcyADDnAGdYaocTrz6sXVSlL5fQhjc9Ol48TdANj0o+6TMuT5at2oWeXD2avKyA24VCKLyrStXl8S5NrNGf0VKB1D5Q0eaCrz6mrFu7R1AZfTC+s6/PVXDKhQi00JlJ3a3T9Quzufknlqxcc+rA6co06pNZvLveFfAlLoVj5l24a8giC3j7f7ItMD6wpQm7bVVmKlzwDVQO66H8Wqf6JWK9jPVGsCYGUPpvFIBmi9Q0LfRxtQum1P4uTZ6bUNRyA1fVSI8i+h1qsBskY6tR0HBZCZQRKidKf24/lqj8BxplppVD9OHEYqUfEWAGd9ncyEuDuvCtaygMBNuJa/2rAHyj4qLL/GpN4WYJHLHbXi+QxlFRBbZdDz1e5ByVy1cgLUZ2f5LLeslPUKpxcMIuwZfKOcBxaJItJdGwp2fQvjLzBfe9x7olPUScRSa1PGgy4Q9ddNwer5aguoLbUcB5ip+1OV17doCi0uJgW6F6+bbuzsI/LSybN1DDvp1Hqx7t/laL6AWh/OktSe3FO79tuU/+gkyId5ahcfIyzuqdVA2KmdMX9WA1Gj465qdQhBreTCMYJ4sFIMlROPdxDlvVo79u++wFsWP9g5t+1GQSgM86sBPEcx1niM7/+SM8GgiHGSdHKRrMV30Xa1NgW/CpvNJlr94nByNbW8V8U0+0+alPDmlIUK015XSw8A2g6A05N7lAd3GWlR8DtZp8FoyLCdFEQO5PwL1FbLjWTAoNSmndNS2V8zpzMCLXm7WrN4+GW1KjCSxOQBzdIvrj7LrT263ghOtvM9TQCn+YbaqA7IlhmkUWr5ZIu2m0xssqijAIIn1CbeDolSa/yC91LKwpxO8UOeVJtWY4ZONdxMYDGgN9qgUuvfUPamLdIPQEKUWlV0vUkFCm39yAFU7w6jQgDJL9WKAldOnDygBtBljn7uhTMzX+Fj3LSBegDKr6hoXHZMU+lgVtsDaKZhajR3VBpNW/xutTkA+L9S2+SYyGtyB9pcqiEsvYJFdwrWO5hHhkTOzTbwAsDhO4pVk7lxJ6ClWhiVTJ9KwBHrO8/0YPnyZrVHqFv8strBAYACKi1h0mMD84Z+NaknRCM12+BmABj/CrXLiVfhAGeiqQ0ACHXF6s4P+r1q3qyWAU4BMPGqWuEBgBOTOJLSamJCsWKserrql9OZ87TeBrW7nbvfUWJ+lv7Ugt/V1dIICKfmZ6vOOFyfsdL3qvUB/HAGZPw1tcMkNJ13OlBSYpAjYoVX+nFzVC3XFkOoaAag2VUrIgBMfMfpARopDw0Ab52yGAF2Wx31uqhxtfATb1XLI6DlchM5S19Q2ye40nEi8R3p2bQk6Gbxo4VQP5Nhxnef2gLIxJccDAnmlHoCOO5abS2dSv2jXgSZ6n2Gykp5/o3sf9SWAIbb33aCZ9WmHq5EwfKdbFJdky1btT0D4M1nD/jugIyEf8uZnwxo53tcmonGaJp9T8tKvsaqLwXAnjnOdSh3MBONNdQrygkz9/kTansPEk+spxpJFtCHauUzntA5Ts7EjloS0G85ztWosIG3QMtNtScgl1ep4ZbnAC6r0OP0zkOYbrtszIkOV9pHausOkvxido5B0oaGKSOZyTuopLPqIhM7ak3yj1XrAXBVUO8bZcZLeooB4Xz9SBRBBCBWatv8hvNrtTRZVSFWEW60STf++ENQHev6GAeDH8ZEkp7zm9iBkg1VBolzSu/1XCxRL5K5Fal06z5QywUnhE8F0J+IwGyBntn1YxDXTTiPzTSavvLLqaeVOj9/jlrGHKhh7GEYlSc75Cu1p+UFJSJMsMNZxU6GWINjMV+vCA7eaWRQthrHXAW7DEBO/622guKHfCKhXuZGp9l1YlCWilqPXlUq4YIbkfTyrgi5VJVlC2IYEwdbKlVBLKdTsk9jJplq3Cjnegmn2rxNQPfgqXVxwxHkE2k65JuwANr/bN+bIgatoB5OKcg71ZICDbmDewnC0jskGWN5G0lSVaHUlv0TUVZoHgYAPK5UM3O45gXSR3NtDglryIeSGrGHz/6SjILc5+ip21XH1SWlRCGEoDvv4CiKojiSHY5/fyi0a2PyGmFMyWPckGjU8V9qQRR3Qmgar1t5Oo3EoG+ufOYja7FYLBaLxWKxWCwWi8VisVgsFovFYrFYLH/YgwMBAAAAACD/10ZQVVVVVVVVVVVVVVVVVVVhDw4EAAAAAID8XxtBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXagwMBAAAAAEH+1isMUAEAAAAAAAAAAAAAAABwBVauu45O9vfzAAAAAElFTkSuQmCC",po=N({name:"select-lessonware",emits:["close","confirm"],setup(s,{emit:l}){const t=jt();vs();const p=ct(),a=z({loading:!1,list:[],teachingStatus:!1,musicTagList:[],selectItem:{},bookVersionId:null,keyword:null,currentGradeNum:null,subjectId:null,removeVisiable:!1,removeRow:{}}),u=async()=>{a.loading=!0;try{const{data:r}=await iu({page:1,rows:99,type:"COURSEWARE",enableFlag:1,bookVersionId:a.bookVersionId,keyword:a.keyword,currentGradeNum:a.currentGradeNum,subjectId:a.subjectId});a.list=r.rows}catch(r){}a.loading=!1},n=async r=>{try{await zu({id:a.removeRow.id}),p.success("删除成功"),u(),a.removeVisiable=!1}catch(i){console.log(i)}},o=pt(()=>u(),500),c=r=>{l("confirm",r),l("close")};return Y(async()=>{try{await t.getSubjects();const{data:r}=await Uu({page:1,rows:99,type:"COURSEWARE"});(r.rows||[]).forEach(d=>{a.musicTagList.push({id:d.id,name:d.name})})}catch(r){}u()}),()=>e("div",{class:H.selectLessonware},[e("div",{class:H.attendClassSearch},[e(Ze,{placeholder:"请输入教材名称",clearable:!0,value:a.keyword,"onUpdate:value":r=>a.keyword=r,onKeyup:r=>{r.code==="Enter"&&o()},onClear:()=>{a.keyword=null,o()}},{prefix:()=>e("span",{class:"icon-search-input",onClick:()=>o()},null)}),e($e,{placeholder:"全部声部",clearable:!0,options:[{name:"全部声部",id:null},...t.getSubjectList],valueField:"id",labelField:"name",value:a.subjectId,"onUpdate:value":[r=>a.subjectId=r,()=>o()]},null),e($e,{placeholder:"全部版本",clearable:!0,options:[{id:null,name:"全部版本"},...a.musicTagList],labelField:"name",valueField:"id",value:a.bookVersionId,"onUpdate:value":[r=>a.bookVersionId=r,()=>o()]},null),e($e,{placeholder:"全部年级",options:[{label:"全部年级",value:null},...es.grades],value:a.currentGradeNum,"onUpdate:value":[r=>a.currentGradeNum=r,()=>o()],clearable:!0,filterable:!0},null)]),e(fe,{class:H.classList},{default:()=>[e(de,{show:a.loading,class:H.content},{default:()=>[e(ue,{size:[50,40]},{default:()=>[e("div",{class:H.item,key:"item--1",onClick:()=>{a.selectItem={},a.teachingStatus=!0}},[e("div",{class:H.cover},[e("div",{class:H.itemImg},[e("div",{class:H.itemBg},null),e(ne,{objectFit:"cover",src:co,lazy:!0,previewDisabled:!0,onLoad:r=>{r.target.dataset.loaded="true"}},null)])])]),a.list.map((r,i)=>e("div",{class:H.item,key:"item-".concat(i),onClick:()=>c(r)},[e("div",{class:H.cover},[e("div",{class:H.itemImg},[e("div",{class:H.itemBg},null),e(ne,{objectFit:"cover",src:r.coverImg,lazy:!0,previewDisabled:!0,onLoad:d=>{d.target.dataset.loaded="true"}},null),r.customFlag&&e(Be,null,[e("div",{class:H.iconCustom},null),e("div",{class:H.editContainer},[e("div",{class:H.editBtnGroup},[e(M,{size:"small",class:H.delBtn,color:"#EA4132",onClick:d=>{d.stopPropagation(),a.removeVisiable=!0,a.removeRow=r}},{default:()=>[C("删除")]}),e(M,{size:"small",class:H.editBtn,color:"#FFFFFF",onClick:d=>{d.stopPropagation(),a.selectItem=r,a.teachingStatus=!0}},{default:()=>[C("编辑")]})])])])])]),e("div",{class:H.itemName},[r.name])]))]})]})]}),e(te,{show:a.teachingStatus,"onUpdate:show":r=>a.teachingStatus=r,preset:"card",showIcon:!1,class:["modalTitle background",H.teachingModal],title:"自定义教材",blockScroll:!1},{default:()=>[e(ts,{item:a.selectItem,onClose:()=>a.teachingStatus=!1,onConfirm:()=>{u(),a.selectItem={}}},null)]}),e(te,{show:a.removeVisiable,"onUpdate:show":r=>a.removeVisiable=r,preset:"card",class:["modalTitle",H.removeVisiable],title:"删除教材"},{default:()=>[e("div",{class:H.studentRemove},[e("p",null,[C("是否删除该教材")]),e(ue,{class:H.btnGroup,justify:"center"},{default:()=>[e(M,{round:!0,type:"primary",onClick:n},{default:()=>[C("确定")]}),e(M,{round:!0,onClick:()=>a.removeVisiable=!1},{default:()=>[C("取消")]})]})])]})])}}),go=N({name:"directory-main",setup(){const s=fu(),l=ve(),t=Tt(),p=P(!0),a=z({lastUseCoursewareId:s.query.lastUseCoursewareId?s.query.lastUseCoursewareId+"":null,unit:s.query.unit?s.query.unit+"":null,showSelectBookStatus:!1,coursewareStatus:!1}),u=async()=>{var h;try{const{data:_}=await iu({page:1,rows:99,type:"COURSEWARE",enableFlag:1}),E=_.rows||[];if(E.length>0){const f=E.find(k=>{var S;return k.id===(a.lastUseCoursewareId||((S=t.getUserInfo)==null?void 0:S.lastUseCoursewareId))});let v=null;f?(l.setBaseCourseware(f),v=f.id,l.setSubjectList(f.subjectList||[])):(l.setBaseCourseware(E[0]),v=(h=E[0])==null?void 0:h.id,l.setSubjectList(E[0].subjectList||[])),c(v)}a.showSelectBookStatus=!0}catch(_){}},n=async()=>{try{const h=l.getBaseCourseware;if(!h.id)return;const{data:_}=await Ku({id:h.id}),E=_.lessonList||[],f=o(a.unit,E);E.forEach((v,k)=>{if(v.selected=!1,f.length>1)v.id===f[0]&&(v.selected=!0,v.knowledgeList.forEach(S=>{S.id===f[1]&&(l.setSelectKey(S==null?void 0:S.id),l.setLessonCoursewareId(S==null?void 0:S.lessonCoursewareId),l.setLessonCoursewareDetailId(S==null?void 0:S.lessonCoursewareDetailId))}));else if(k===0){v.selected=!0;const S=v.knowledgeList[0];l.setSelectKey(S==null?void 0:S.id),l.setLessonCoursewareId(S==null?void 0:S.lessonCoursewareId),l.setLessonCoursewareDetailId(S==null?void 0:S.lessonCoursewareDetailId)}}),l.setTreeList(E)}catch(h){}},o=(h,_,E=[])=>{for(const f of _){if(f.knowledgeList&&f.knowledgeList.length>0){const v=o(h,f.knowledgeList,[...E,f.id]);if(v.includes(h))return v}if(f.id===h)return[...E,h]}return E},c=async h=>{try{await $u({coursewareId:h}),t.getInfo()}catch(_){}},r=h=>{l.setSelectKey(h.id),l.setLessonCoursewareId(h.lessonCoursewareId),l.setLessonCoursewareDetailId(h.lessonCoursewareDetailId)},i=async h=>{p.value=!0,a.lastUseCoursewareId=h.lastUseCoursewareId,a.unit=h.unit,await u(),await n(),p.value=!1},d=h=>{if(l.setBaseCourseware(h),l.setSubjectList(h.subjectList),h.subjectList.findIndex(E=>E.id==l.getSubjectId)<0){const E=h.subjectList[0].id?Number(h.subjectList[0].id):"";sessionStorage.removeItem("prepareLessonCourseWareSubjectIsNull"),l.setSubjectId(E)}n(),c(h.id)},F=W(()=>{const h=l.getBaseCourseware.subjectNames;return h?h.split(",").join("、"):""});return Y(async()=>{p.value=!0,await u(),await n(),p.value=!1,I.on("onChangeClass",async h=>{i(h)})}),()=>e("div",{class:U.directoryList},[a.showSelectBookStatus&&(l.getBaseCourseware.id?e("div",{id:"lessons-0",class:U["select-directory-info"]},[e("div",{class:U.itemImg,onClick:()=>a.coursewareStatus=!0},[e(ne,{objectFit:"cover",src:l.getBaseCourseware.coverImg,lazy:!0,previewDisabled:!0,onLoad:h=>{h.target.dataset.loaded="true"}},null)]),e("div",{class:U.itemContent},[e("h2",null,[e(It,{text:l.getBaseCourseware.name},null)]),e("div",{class:U.subjects},[e(It,{text:F.value,time:F.value.length>15?10:5},null)]),e("div",{class:U.changeDir,onClick:()=>a.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,[C("切片")]),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,[C("切换教材")])])])]):e("div",{id:"lessons-0",class:U["select-directory"],onClick:()=>a.coursewareStatus=!0},[e("span",{class:["cr-ellipsis"],title:l.getBaseCourseware.name},[l.getBaseCourseware.name||"请选择教材"]),e(Cu,{class:U.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(fe,{class:U.scrollBar},{default:()=>[e(de,{show:p.value},{default:()=>[e("div",{class:[U.listSection,!p.value&&l.getTreeList.length<=0?U.emptySection:""]},[l.getTreeList.map((h,_)=>e("div",{class:U.treeParent,key:"parent"+_},[e("div",{class:[U.treeItem,U.parentItem],onClick:()=>{l.getTreeList.forEach(E=>{h.id!==E.id&&(E.selected=!1)}),h.selected=!h.selected}},[h.knowledgeList&&h.knowledgeList.length>0&&e("span",{class:[U.arrow,h.selected?U.arrowSelect:""]},null),e("p",{class:[U.title,h.selected?U.titleSelect:""]},[e("span",{class:[U.dir,h.selected?U.dirSelect:""]},null),h.name])]),h.selected&&h.knowledgeList&&h.knowledgeList.map((E,f)=>e("div",{key:"child"+f,class:[U.treeItem,U.childItem,U.animation,l.getSelectKey===E.id?U.childSelect:""],onClick:()=>{l.getIsEditResource?I.emit("pageBeforeLeave",()=>r(E)):r(E)}},[e("span",{class:U.childArrow},null),e("p",{class:U.title},[E.name])]))]))]),!p.value&&l.getTreeList.length<=0&&e(pe,null,null)]})]}),e(te,{show:a.coursewareStatus,"onUpdate:show":h=>a.coursewareStatus=h,preset:"card",showIcon:!1,class:["modalTitle background",U.coursewareModal],title:"切换教材",blockScroll:!1},{default:()=>[e(po,{onClose:()=>a.coursewareStatus=!1,onConfirm:h=>{l.getIsEditResource?I.emit("pageBeforeLeave",()=>d(h)):d(h)}},null)]})])}}),mo="_coursewareSection_1seus_1",fo="_coursewareHeader_1seus_5",Co="_coursewareFooter_1seus_67",ot={coursewareSection:mo,coursewareHeader:fo,"lesson-main":"_lesson-main_1seus_11",coursewareFooter:Co},Fo="_tipsContainer_gpxje_1",ho="_tipsLeft_gpxje_13",Eo="_tips_gpxje_1",wo="_iconTips_gpxje_22",Ao="_btnNoTips_gpxje_27",Bo="_btnGroupClass_gpxje_33",vo="_listContainer_gpxje_36",yo="_listSection_gpxje_40",bo="_emptySection_gpxje_43",_o="_listItems_gpxje_47",So="_knowledgePoint_gpxje_56",Io="_btnItem_gpxje_56",Do="_btnTitle_gpxje_61",Lo="_operationGroup_gpxje_83",ko="_iconCUp_gpxje_94",xo="_iconCDown_gpxje_102",jo="_iconCRemove_gpxje_110",To="_addKnowledgePoint_gpxje_118",Vo="_iconCAdd_gpxje_128",Ro="_list_gpxje_36",Mo="_itemWrap_gpxje_142",Po="_itemWrapBox_gpxje_147",No="_itemOperation_gpxje_155",Wo="_iconDelete_gpxje_170",Go="_attendClassModal_gpxje_181",Oo="_addCourseware_gpxje_186",Uo="_removeVisiable1_gpxje_192",zo="_studentRemove_gpxje_198",Ko="_btnGroupModal_gpxje_209",$o="_addMusicItem_gpxje_216",Zo="_addMusicName_gpxje_237",qo="_addOtherSource_gpxje_247",R={tipsContainer:Fo,tipsLeft:ho,tips:Eo,iconTips:wo,btnNoTips:Ao,btnGroupClass:Bo,listContainer:vo,listSection:yo,emptySection:bo,listItems:_o,knowledgePoint:So,btnItem:Io,btnTitle:Do,operationGroup:Lo,iconCUp:ko,iconCDown:xo,iconCRemove:jo,addKnowledgePoint:To,iconCAdd:Vo,list:Ro,itemWrap:Mo,itemWrapBox:Po,itemOperation:No,iconDelete:Wo,attendClassModal:Go,addCourseware:Oo,removeVisiable1:Uo,studentRemove:zo,btnGroupModal:Ko,addMusicItem:$o,addMusicName:Zo,addOtherSource:qo},su="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",Jo="_addCoursewareItem_13slg_1",Ho="_btnGroupModal_13slg_12",au={addCoursewareItem:Jo,btnGroupModal:Ho};function Qo(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!xe(s)}const Yo=N({name:"add-courseware-item",props:{coursewareList:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(s,{emit:l}){const t=P([]);return()=>{let p;return e("div",{class:au.addCoursewareItem},[e(Fu,{value:t.value,"onUpdate:value":a=>t.value=a},{default:()=>[e(ys,{yGap:18,cols:2},Qo(p=s.coursewareList.map((a,u)=>e(bs,null,{default:()=>[e(St,{value:u},{default:()=>[a.name]})]})))?p:{default:()=>[p]})]}),e(ue,{class:au.btnGroupModal,justify:"center"},{default:()=>[e(M,{round:!0,onClick:()=>l("close")},{default:()=>[C("取消")]}),e(M,{round:!0,type:"primary",onClick:()=>{l("confirm",t.value)}},{default:()=>[C("确定")]})]})])}}}),Xo="_addOtherSource_1c8g7_1",en="_sourceItem_1c8g7_8",tn="_coverImg_1c8g7_11",un="_name_1c8g7_24",sn="_addOtherSourceModal_1c8g7_31",an="_instrumentModal_1c8g7_34",on="_musicModal_1c8g7_35",nn="_theoryModal_1c8g7_53",ln="_subjectSyncModal_1c8g7_57",rn="_attendClassModal_1c8g7_60",cn="_attendClassSaveModal_1c8g7_66",ce={addOtherSource:Xo,sourceItem:en,coverImg:tn,name:un,addOtherSourceModal:sn,instrumentModal:an,musicModal:on,theoryModal:nn,subjectSyncModal:ln,attendClassModal:rn,attendClassSaveModal:cn},dn=""+new URL("icon1-75d0865e.png",import.meta.url).href,pn=""+new URL("icon2-0917d8de.png",import.meta.url).href,gn=""+new URL("icon3-20aef624.png",import.meta.url).href,mn=""+new URL("icon4-74cdf5a7.png",import.meta.url).href,fn=""+new URL("icon5-817119a1.png",import.meta.url).href,Cn=""+new URL("icon6-3e36ae41.png",import.meta.url).href,Fn=""+new URL("icon8-a98128fc.png",import.meta.url).href,hn="_sourceRhythm_c7wm9_1",En="_btnGroup_c7wm9_12",_t={sourceRhythm:hn,btnGroup:En},wn=N({name:"source-rhythm",emits:["close","confirm"],setup(s,{emit:l}){const t=Tt(),p=P(),a=P(!0);let u="".concat(origin,"/classroom-app/#/tempo-practice?v=").concat(Date.now(),"&Authorization=").concat(t.getToken,"&platform=modal");/(localhost|192)/.test(location.host)&&(u="http://localhost:9002/#/tempo-practice?v=".concat(Date.now(),"&Authorization=").concat(t.getToken,"&platform=modal"));const n=()=>{var c,r;(r=(c=p.value)==null?void 0:c.contentWindow)==null||r.postMessage({api:"getTempoSetting"},"*")},o=c=>{var r;if(((r=c.data)==null?void 0:r.api)==="getTempoSetting"){const i=c.data.data?JSON.parse(c.data.data):{};l("confirm",{dataJson:JSON.stringify(i.setting),coverImg:"https://oss.dayaedu.com/ktqy/171013700931689a322a6.png"})}};return Y(()=>{window.addEventListener("message",o)}),ke(()=>{window.removeEventListener("message",o)}),()=>e("div",{class:_t.sourceRhythm},[e(de,{show:a.value},{default:()=>[e("iframe",{ref:p,onLoad:c=>{a.value=!1,_s(c.target)},class:[_t.container,"musicIframe"],frameborder:"0",src:u},null),e(ue,{class:_t.btnGroup,justify:"center"},{default:()=>[e(M,{round:!0,onClick:()=>l("close")},{default:()=>[C("取消")]}),e(M,{round:!0,type:"primary",onClick:n},{default:()=>[C("确认添加")]})]})]})])}}),An="_container_19ipk_1",Bn="_iconBack_19ipk_1",vn="_separator_19ipk_40",yn="_wrap_19ipk_45",bn="_listWrap_19ipk_49",_n="_listWrapEmpty_19ipk_54",Sn="_btnGroup_19ipk_91",_e={container:An,iconBack:Bn,separator:vn,wrap:yn,listWrap:bn,listWrapEmpty:_n,btnGroup:Sn},In="_searchGroup_1n8vo_1",Dn="_btnType_1n8vo_5",Ln="_swipeControll_1n8vo_13",kn="_leftIcon_1n8vo_16",xn="_disabled_1n8vo_28",jn="_carouselGroup_1n8vo_42",Tn="_carouselContainer_1n8vo_46",Vn="_inputSearch_1n8vo_57",Rn="_searchCatatory_1n8vo_78",Mn="_addTrain_1n8vo_85",Pn="_searchGroups_1n8vo_97",Nn="_instrumentList_1n8vo_100",Wn="_list_1n8vo_104",Gn="_itemWrap_1n8vo_114",On="_itemWrapBox_1n8vo_119",Un="_itemCard_1n8vo_127",zn="_itemImgSection_1n8vo_131",Kn="_itemTag_1n8vo_137",$n="_iconCheck_1n8vo_164",Zn="_img_1n8vo_173",qn="_itemImgSectionSelected_1n8vo_183",Jn="_itemTitle_1n8vo_190",X={searchGroup:In,btnType:Dn,swipeControll:Ln,leftIcon:kn,disabled:xn,carouselGroup:jn,carouselContainer:Tn,inputSearch:Vn,searchCatatory:Rn,addTrain:Mn,searchGroups:Pn,instrumentList:Nn,list:Wn,itemWrap:Gn,itemWrapBox:On,itemCard:Un,itemImgSection:zn,itemTag:Kn,iconCheck:$n,img:Zn,itemImgSectionSelected:qn,itemTitle:Jn},Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABApJREFUaEPlm8FrHFUcx3/f2Zk6M03xUBBE1KRQWgU9KFYQSw9pwOZgFfEgVKjYP0CsF2uhCBovFrwngmjRS8VEMB700FoVKtiDpWmKBwsigukKpWbeZGd2vvZtdsNms5udnZ3dCS8Le9l97/veZ3+/eb/3fu+3kJxfJEtBFD2BGAcJ7odgvwgfJLELkF16OFLuALwjgj8pXASxSJuXfMe5AqCa55SQhxhJJ6hUJ1HlMUImhLw3ky5wG5TvWMI5f0dpHkCUSaepU1+AJL0wjN9IKCdFuLvfyazvj7IFOeu69kcAVFbtTIDaDcOwepzkuxQ+kHXwNP0g+AvAGdctfZLFfXsGDMP4SJXJh0J5NM0Ec2sDWSjBest17W970UwNeNdaCML4PSFP9TJA7m2BKd+1T9+1KtNopwIkOaJUfI7Co2lEB90GgjnPs48B+K/bWF0BleJoItHXQnmsm9hQv4dctcR53vNwc7NxNwWswTG+LML7hjr51IPhHwv205tBdgTUbhmE0c9bznKt8JCrvus808ld2wLqBUWp+Kut8sx1M2j9mXyx3cLTFnBZRe8Xvlp2o9pgSUzt9Jx3Nhq45ZNanEuS+V71t0L7kmVNtsbJdRasbZTD6LehB/G8fh3Igu86jzfveNYBKhW/njCZyWu8InQsWCc8z/64MfYaoN44KxX/ntfeMkkSsSxr6Ix67+p59t7GBn0NUKno7YScymNGC9dvyIULP4nj2DIxfkhGxx7OQza1hgWc8jznA92hBlg7z6n477yOPNMzn0oYrtQmpK145Llx2bNnNPUE+2+Isu/Z9+vzZA1weSU+KtVktn/hVYXPv/hSyuV/1+QKgSxZL+y8x56rAQZBdJ7Cl/ICXFoqy+zcN2tWLMKSEJz3fedlrIaGuJw5zdDhV1lauiWzc/PFQQK3fdfejaBSOcBYLudlvWadwiFtOYAgiN6k8OwgALVmkZAQnMSyqkwL5cSgAAuFhMwgUNEPJA8OErAoSACXEKjKH6QMJUgN210BuYnlILqVV4BP4wWdICcnJ2Rs9KE0Ej20QVm76ArJHT306rtpO8iRkRF57fgrfWs3CwComA+4DVzU8EXG+DBheKCf3gZbtUrlKYnll1zX57rYsAP7Bga92Tb+uGT8gXdbpCyMTzppK+aZNry2sCgXL+q0oSOHxw/JWNFpQw04iMQvANHvYb46Jn5XrWhw6r5uRbMvXzSk0ddnjWfF6AvQuquafYVdhzS3CKHhqkaXkayDNLUQqAFpdClXE6S5xXjNWy1jyymbIY0uiG0BNbOkufV00FSU/iohhzPfFq8WpX/PEj7bEkXp7Y5B2n1VFD0pMZ4l+AgE+7r8reAGiOti80fPcX7NUpe92XHsf6EH9ozNKnEhAAAAAElFTkSuQmCC";function Hn(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!xe(s)}const Qn=N({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(s,{emit:l}){const t=z({currentIndex:0,keyword:"",wikiCategoryId:s.wikiCategoryId||"",maxIndex:0}),p=z({showSlide:!1}),a=()=>{l("search",t)},u=P(),n=o=>{var c,r;o==="left"?(c=u.value)==null||c.prev():o==="right"&&((r=u.value)==null||r.next())};return Y(async()=>{Au.nextTick(()=>{const o=document.querySelector(".carouselContainer"),c=o&&o.getBoundingClientRect().width||0,r=document.querySelectorAll(".n-carousel__slide");let i=0;r.forEach(d=>{const F=d.getBoundingClientRect();i+=F.width}),i>=c&&(p.showSlide=!0)})}),()=>{let o;return e("div",{class:X.searchGroup},[e("div",{class:[X.searchCatatory]},[e(ue,{size:"small",class:X.btnType},{default:()=>[s.categoryChildList.length>0?e(M,{type:t.wikiCategoryId===s.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==s.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=s.wikiCategoryId,a()}},{default:()=>[C("全部")]}):"",e("div",{class:[X.carouselGroup]},[e(Nt,{ref:u,slidesPerView:"auto",loop:!1,class:[X.carouselContainer,"carouselContainer"],showDots:!1,draggable:p.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":c=>{t.currentIndex=c}},Hn(o=s.categoryChildList.map(c=>e(gt,null,{default:()=>[e(M,{type:t.wikiCategoryId===c.id?"primary":"default",secondary:t.wikiCategoryId!==c.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=c.id,a()}},{default:()=>[c.name]})]})))?o:{default:()=>[o]}),p.showSlide&&e(ue,{class:X.swipeControll},{default:()=>[e("div",{onClick:()=>n("left")},[e(ne,{previewDisabled:!0,class:[X.leftIcon],src:Pe},null)]),e("div",{onClick:()=>n("right")},[e(ne,{previewDisabled:!0,src:Pe},null)])]})])]}),e(Vt,{class:X.inputSearch,placeholder:"请输入乐器名称",round:!0,onSearch:c=>{t.keyword=c,a()}},null)])])}}}),Yn=N({name:"instrument-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["confirm"],setup(s,{emit:l}){Ne();const t=z({searchWord:"",loading:!1,pageTotal:0,finshed:!1,pagination:{page:1,rows:18},searchGroup:{type:"INSTRUMENT",keyword:"",wikiCategoryId:s.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async()=>{t.loading=!0;try{const{data:n}=await Rt({...t.pagination,...t.searchGroup}),o=n.rows||[];o.forEach(c=>{c.knowledgeWikiCategories&&c.knowledgeWikiCategories.length&&(c.categories=c.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)}),t.tableList.push(...o),t.pageTotal=Number(n.total),t.finshed=n.pages<=n.current}catch(n){}t.loading=!1},a=async n=>{t.pagination.page=1,t.searchGroup=Object.assign(t.searchGroup,n),t.tableList=[],p()},u=n=>{const o=s.selectItems||[],c=o.findIndex(r=>r.id===n.id);c!==-1?o.splice(c,1):o.push(n),l("confirm",o)};return Y(()=>{p()}),()=>e("div",{class:X.instrumentList},[e(Qn,{class:X.searchGroups,categoryChildList:s.categoryChildList||[],onSearch:n=>a(n),wikiCategoryId:s.categoryId},null),e(fe,{class:X.listContainer,style:{"max-height":"50vh"},onScroll:n=>{var i,d,F;const o=(i=n.target)==null?void 0:i.clientHeight,c=(d=n.target)==null?void 0:d.scrollTop,r=(F=n.target)==null?void 0:F.scrollHeight;o+c+20>=r&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p())}},{default:()=>[e(de,{show:t.loading,"onUpdate:show":n=>t.loading=n,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:X.list},[t.tableList.map(n=>e("div",{class:X.itemWrap,onClick:()=>{t.item={content:n.id,title:n.name,type:"INSTRUMENT"},t.show=!0}},[e("div",{class:X.itemWrapBox},[e("div",{class:X.itemCard},[e("div",{class:[X.itemImgSection,s.selectItems.findIndex(o=>o.id===n.id)!==-1&&X.itemImgSectionSelected]},[e(ne,{src:n.avatar+"?imageMogr2/strip/format/jpg/size-limit/15k!",class:X.img,objectFit:"cover",previewDisabled:!0},null),e("i",{class:[X.iconCheck],onClick:o=>{o.stopPropagation(),u(n)}},null)]),e("div",{class:X.itemTitle},[n.name])])])])),!t.loading&&t.tableList.length<=0&&e(pe,{style:{minHeight:"50vh"},description:"暂无乐器百科"},null)])]})]}),e(rt,{size:"large",show:t.show,"onUpdate:show":n=>t.show=n,item:t.item},null)])}});function Xn(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!xe(s)}const el=N({name:"content-instrument",emits:["confirm","close"],setup(s,{emit:l}){Ne();const t=z({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Mt({type:"INSTRUMENT",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&Le(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const a=async()=>{const u=[];t.selectItems.forEach(n=>{u.push({coverImg:dt.INSTRUMENT_DEFAULT_COVER,title:"乐器百科-"+n.name,materialId:n.id,content:n.id})}),l("confirm",u)};return()=>{let u;return e("div",{class:_e.container},[e("div",{class:_e.wrap},[e("div",{class:[_e.listWrap,!t.loading&&t.categoryList.length<=0&&_e.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(pe,{description:"暂无乐器百科"},null),e("div",{style:{minHeight:"55vh"}},[e(qe,{defaultValue:"myResources",paneClass:_e.paneTitle,justifyContent:"center",paneWrapperClass:_e.paneWrapperContainer,value:t.tabValue,"onUpdate:value":n=>t.tabValue=n},Xn(u=t.categoryList.map(n=>e(Je,{name:"name-".concat(n.id),tab:n.name},{default:()=>[e(Yn,{selectItems:t.selectItems,categoryId:n.id,categoryChildList:n.childrenList,onConfirm:o=>{t.selectItems=o||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ue,{class:_e.btnGroup,justify:"center"},{default:()=>[e(M,{round:!0,onClick:()=>l("close")},{default:()=>[C("取消")]}),e(M,{round:!0,type:"primary",onClick:a},{default:()=>[C("确认添加")]})]})])}}}),tl=N({name:"cotnent-knowledge",emits:["close","confirm"],setup(s,{emit:l}){const t=P(!1),p=P(!1),a=P(),u=z({fontSize:18,tableList:[],selectKey:null,details:{},selectCheckboxs:[]}),n=async()=>{t.value=!0,p.value=!0;try{const{data:r}=await Ps({type:"COURSEWARE"});if(u.tableList=r||[],u.tableList.length>0){const i=u.tableList[0].lessonCoursewareDetailKnowledgeDetailList;if(u.tableList[0].selected=!0,i&&i.length){const d=i[0];u.selectKey=d.id,await o()}u.tableList.forEach(d=>{d.checked=!1,d.indeterminate=!1})}}catch(r){}p.value=!1,t.value=!1},o=async()=>{p.value=!0;try{const{data:r}=await Ns({id:u.selectKey});u.details=r}catch(r){}p.value=!1},c=()=>{const r=[];for(const d in u.selectCheckboxs){const F=u.selectCheckboxs[d],h=u.tableList[d];Array.isArray(h.lessonCoursewareDetailKnowledgeDetailList)&&h.lessonCoursewareDetailKnowledgeDetailList.forEach(_=>{F.includes(_.id)&&r.push(_)})}const i=[];r.forEach(d=>{i.push({coverImg:dt.THEORY_DEFAULT_COVER,title:"乐理知识-"+d.name,materialId:d.id,content:d.id})}),l("confirm",i)};return Y(()=>{n()}),()=>{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&&u.tableList.length<=0?T.empty:""],style:{height:"100%"}},[e(de,{show:t.value,style:{height:"100%"}},{default:()=>[e("div",{class:[T.listSection]},[u.tableList.map((i,d)=>e("div",{class:[T.treeParent,i.selected&&T.treeParentSelected],key:"parent"+d},[e("div",{class:[T.treeItem,T.parentItem],onClick:()=>{u.tableList.forEach(F=>{i.id!==F.id&&(F.selected=!1)}),i.selected=!i.selected}},[i.lessonCoursewareDetailKnowledgeDetailList&&i.lessonCoursewareDetailKnowledgeDetailList.length>0&&e("span",{class:[T.arrow,i.selected?T.arrowSelect:""]},null),e("p",{class:[T.title,i.selected?T.titleSelect:""]},[e("span",{class:[T.dir,i.selected?T.dirSelect:""]},null),e("p",null,[i.name])]),e("div",{class:T.checkbox,onClick:F=>{F.stopPropagation()}},[e(St,{checked:i.checked,indeterminate:i.indeterminate,"onUpdate:checked":F=>{i.checked=F;const h=i.lessonCoursewareDetailKnowledgeDetailList||[];if(F){const _=[];h.forEach(E=>{_.push(E.id)}),u.selectCheckboxs[d]=_}else u.selectCheckboxs[d]=[];i.indeterminate=!1}},null)])]),e(Fu,{value:u.selectCheckboxs[d],"onUpdate:value":F=>{u.selectCheckboxs[d]=F;const h=i.lessonCoursewareDetailKnowledgeDetailList||[];F.length<=0?(i.checked=!1,i.indeterminate=!1):F.length===h.length?(i.checked=!0,i.indeterminate=!1):(i.checked=!1,i.indeterminate=!0)}},{default:()=>[i.selected&&i.lessonCoursewareDetailKnowledgeDetailList&&i.lessonCoursewareDetailKnowledgeDetailList.map((F,h)=>e("div",{key:"child"+h,class:[T.treeItem,T.childItem,T.animation,u.selectKey===F.id?T.childSelect:""],onClick:()=>{u.selectKey!==F.id&&(u.selectKey=F.id,o(),a.value.$el.scrollTo(0,0))}},[e("span",{class:T.childArrow},null),e("p",{class:T.title},[F.name]),e("div",{class:T.checkbox,onClick:_=>_.stopPropagation()},[e(St,{value:F.id},null)])]))]})]))])]}),!t.value&&u.tableList.length<=0&&e(pe,{style:{height:"100%"}},null)])]),e("div",{class:T.musicStaff},[e(de,{show:p.value,ref:a,class:!p.value&&!((r=u.details)!=null&&r.desc)?T.empty:""},{default:()=>{var i,d,F;return[(i=u.details)!=null&&i.desc?e("div",{class:T.musicContent,innerHTML:(d=u.details)==null?void 0:d.desc,style:{fontSize:u.fontSize+"px"}},null):"",!p.value&&!((F=u.details)!=null&&F.desc)&&e(pe,null,null)]}})]),e("div",{class:T.changeSizeSection},[e("img",{src:Ws,class:T.iconT},null),e("img",{src:Gs,class:T.iconAddT,onClick:()=>{u.fontSize>=32||(u.fontSize+=1)}},null),e(Us,{value:u.fontSize,"onUpdate:value":i=>u.fontSize=i,vertical:!0,min:12,max:32},null),e("img",{src:Os,class:T.iconPlusT,onClick:()=>{u.fontSize<=12||(u.fontSize-=1)}},null)])])])]),e(ue,{class:T.btnGroup,justify:"center"},{default:()=>[e(M,{round:!0,onClick:()=>l("close")},{default:()=>[C("取消")]}),e(M,{round:!0,type:"primary",onClick:c},{default:()=>[C("确认添加")]})]})])}}}),ul="_container_19ipk_1",sl="_iconBack_19ipk_1",al="_separator_19ipk_40",ol="_wrap_19ipk_45",nl="_listWrap_19ipk_49",ll="_listWrapEmpty_19ipk_54",rl="_btnGroup_19ipk_91",Se={container:ul,iconBack:sl,separator:al,wrap:ol,listWrap:nl,listWrapEmpty:ll,btnGroup:rl},il="_searchGroup_1euh7_1",cl="_btnType_1euh7_5",dl="_swipeControll_1euh7_13",pl="_leftIcon_1euh7_16",gl="_disabled_1euh7_28",ml="_carouselGroup_1euh7_42",fl="_carouselContainer_1euh7_46",Cl="_inputSearch_1euh7_57",Fl="_searchCatatory_1euh7_78",hl="_addTrain_1euh7_85",El="_searchGroups_1euh7_97",wl="_list_1euh7_100",Al="_itemWrap_1euh7_111",Bl="_itemWrapBox_1euh7_116",vl="_itemCard_1euh7_124",yl="_itemImgSection_1euh7_128",bl="_itemTag_1euh7_134",_l="_iconCheck_1euh7_161",Sl="_img_1euh7_170",Il="_itemImgSectionSelected_1euh7_180",Dl="_itemTitle_1euh7_187",ee={searchGroup:il,btnType:cl,swipeControll:dl,leftIcon:pl,disabled:gl,carouselGroup:ml,carouselContainer:fl,inputSearch:Cl,searchCatatory:Fl,addTrain:hl,searchGroups:El,list:wl,itemWrap:Al,itemWrapBox:Bl,itemCard:vl,itemImgSection:yl,itemTag:bl,iconCheck:_l,img:Sl,itemImgSectionSelected:Il,itemTitle:Dl};function Ll(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!xe(s)}const kl=N({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(s,{emit:l}){const t=z({currentIndex:0,keyword:"",wikiCategoryId:s.wikiCategoryId||"",maxIndex:0}),p=z({showSlide:!1}),a=()=>{l("search",t)},u=P(),n=o=>{var c,r;o==="left"?(c=u.value)==null||c.prev():o==="right"&&((r=u.value)==null||r.next())};return Y(async()=>{Au.nextTick(()=>{const o=document.querySelector(".carouselContainer"),c=o&&o.getBoundingClientRect().width||0,r=document.querySelectorAll(".n-carousel__slide");let i=0;r.forEach(d=>{const F=d.getBoundingClientRect();i+=F.width}),i>=c&&(p.showSlide=!0)})}),()=>{let o;return e("div",{class:ee.searchGroup},[e("div",{class:[ee.searchCatatory]},[e(ue,{size:"small",class:ee.btnType},{default:()=>[s.categoryChildList.length>0?e(M,{type:t.wikiCategoryId===s.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==s.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=s.wikiCategoryId,a()}},{default:()=>[C("全部")]}):"",e("div",{class:ee.carouselGroup},[e(Nt,{ref:u,slidesPerView:"auto",loop:!1,class:[ee.carouselContainer,"carouselContainer"],showDots:!1,draggable:p.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":c=>{t.currentIndex=c}},Ll(o=s.categoryChildList.map(c=>e(gt,null,{default:()=>[e(M,{type:t.wikiCategoryId===c.id?"primary":"default",secondary:t.wikiCategoryId!==c.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=c.id,a()}},{default:()=>[c.name]})]})))?o:{default:()=>[o]}),p.showSlide&&e(ue,{class:ee.swipeControll},{default:()=>[e("div",{onClick:()=>n("left")},[e(ne,{previewDisabled:!0,class:[ee.leftIcon],src:Pe},null)]),e("div",{onClick:()=>n("right")},[e(ne,{previewDisabled:!0,src:Pe},null)])]})])]}),e(Vt,{class:ee.inputSearch,placeholder:"请输入音乐家名称",round:!0,onSearch:c=>{t.keyword=c,a()}},null)])])}}}),xl=N({name:"musician-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["confirm"],setup(s,{emit:l}){Ne();const t=z({searchWord:"",loading:!1,pageTotal:0,finshed:!1,pagination:{page:1,rows:18},searchGroup:{type:"MUSICIAN",keyword:"",wikiCategoryId:s.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async(n=!0)=>{n&&(t.loading=!0);try{const{data:o}=await Rt({...t.pagination,...t.searchGroup}),c=o.rows||[];c.forEach(r=>{r.knowledgeWikiCategories&&r.knowledgeWikiCategories.length&&(r.categories=r.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)}),t.tableList.push(...c),t.pageTotal=Number(o.total),t.finshed=o.pages<=o.current}catch(o){}t.loading=!1},a=async n=>{t.pagination.page=1,t.searchGroup=Object.assign(t.searchGroup,n),t.tableList=[],p()},u=n=>{const o=s.selectItems||[],c=o.findIndex(r=>r.id===n.id);c!==-1?o.splice(c,1):o.push(n),l("confirm",o)};return Y(()=>{p()}),()=>e("div",{class:ee.instrumentList},[e(kl,{class:ee.searchGroups,categoryChildList:s.categoryChildList||[],onSearch:n=>a(n),wikiCategoryId:s.categoryId},null),e(fe,{class:ee.listContainer,style:{"max-height":"50vh"},onScroll:n=>{var i,d,F;const o=(i=n.target)==null?void 0:i.clientHeight,c=(d=n.target)==null?void 0:d.scrollTop,r=(F=n.target)==null?void 0:F.scrollHeight;o+c+20>=r&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p(!1))}},{default:()=>[e(de,{show:t.loading,"onUpdate:show":n=>t.loading=n,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:ee.list},[t.tableList.map(n=>e("div",{class:ee.itemWrap,onClick:()=>{t.item={content:n.id,title:n.name,type:"MUSICIAN"},t.show=!0}},[e("div",{class:ee.itemWrapBox},[e("div",{class:ee.itemCard},[e("div",{class:[ee.itemImgSection,s.selectItems.findIndex(o=>o.id===n.id)!==-1&&ee.itemImgSectionSelected]},[e(ne,{src:n.avatar,class:ee.img,objectFit:"cover",previewDisabled:!0},null),e("i",{class:[ee.iconCheck],onClick:o=>{o.stopPropagation(),u(n)}},null)]),e("div",{class:ee.itemTitle},[n.name])])])])),!t.loading&&t.tableList.length<=0&&e(pe,{style:{minHeight:"50vh"},description:"暂无音乐家"},null)])]})]}),e(rt,{size:"large",show:t.show,"onUpdate:show":n=>t.show=n,item:t.item},null)])}});function jl(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!xe(s)}const Tl=N({name:"content-instrument",emits:["confirm","close"],setup(s,{emit:l}){const t=z({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Mt({type:"MUSICIAN",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&Le(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const a=async()=>{const u=[];t.selectItems.forEach(n=>{u.push({coverImg:dt.MUSICIAN_DEFAULT_COVER,title:"音乐家-"+n.name,materialId:n.id,content:n.id})}),l("confirm",u)};return()=>{let u;return e("div",{class:Se.container},[e("div",{class:Se.wrap},[e("div",{class:[Se.listWrap,!t.loading&&t.categoryList.length<=0&&Se.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(pe,{description:"暂无音乐家"},null),e("div",{style:{minHeight:"55vh"}},[e(qe,{defaultValue:"myResources",paneClass:Se.paneTitle,justifyContent:"center",paneWrapperClass:Se.paneWrapperContainer,"onUpdate:value":[n=>{sessionStorage.setItem("content-instrument-tab",n)},n=>t.tabValue=n],value:t.tabValue},jl(u=t.categoryList.map(n=>e(Je,{name:"name-".concat(n.id),tab:n.name},{default:()=>[e(xl,{selectItems:t.selectItems,categoryId:n.id,categoryChildList:n.childrenList,onConfirm:o=>{t.selectItems=o||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ue,{class:Se.btnGroup,justify:"center"},{default:()=>[e(M,{round:!0,onClick:()=>l("close")},{default:()=>[C("取消")]}),e(M,{round:!0,type:"primary",onClick:a},{default:()=>[C("确认添加")]})]})])}}}),Vl="_container_1o74q_1",Rl="_separator_1o74q_36",Ml="_wrap_1o74q_41",Pl="_listWrap_1o74q_44",Nl="_listWrapEmpty_1o74q_49",Wl="_btnGroup_1o74q_60",Ie={container:Vl,separator:Rl,wrap:Ml,listWrap:Pl,listWrapEmpty:Nl,btnGroup:Wl},Gl="_searchGroup_gol4m_1",Ol="_btnType_gol4m_5",Ul="_swipeControll_gol4m_12",zl="_leftIcon_gol4m_15",Kl="_disabled_gol4m_27",$l="_carouselGroup_gol4m_41",Zl="_carouselContainer_gol4m_44",ql="_inputSearch_gol4m_55",Jl="_searchCatatory_gol4m_76",Hl="_border_gol4m_83",Ql="_addTrain_gol4m_87",Yl="_searchGroups_gol4m_99",Xl="_instrumentList_gol4m_102",er="_list_gol4m_106",tr="_itemWrap_gol4m_115",ur="_itemWrapBox_gol4m_122",sr="_iconCheck_gol4m_130",ar="_itemCard_gol4m_139",or="_musicBg_gol4m_157",nr="_itemName_gol4m_163",lr="_itemImgSectionSelected_gol4m_168",rr="_popSelect_gol4m_171",ir="_spaceSection_gol4m_181",cr="_textBtn_gol4m_184",dr="_iconArrow_gol4m_195",pr="_textBtnActive_gol4m_204",G={searchGroup:Gl,btnType:Ol,swipeControll:Ul,leftIcon:zl,disabled:Kl,carouselGroup:$l,carouselContainer:Zl,inputSearch:ql,searchCatatory:Jl,border:Hl,addTrain:Ql,searchGroups:Yl,instrumentList:Xl,list:er,itemWrap:tr,itemWrapBox:ur,iconCheck:sr,itemCard:ar,musicBg:or,itemName:nr,itemImgSectionSelected:lr,popSelect:rr,spaceSection:ir,textBtn:cr,iconArrow:dr,textBtnActive:pr};function ou(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!xe(s)}const gr=N({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(s,{emit:l}){const t=z({keyword:"",wikiCategoryId:s.wikiCategoryId||"",wikiCategoryIdChild:"",childIds:[],currentIndex:0}),p=P(),a=()=>{l("search",t)},u=(r,i)=>{const d={};return r==null||r.forEach(F=>{F.id===t.wikiCategoryIdChild&&(d.selected=!0,d.name=F.name)}),d},n=W(()=>{const i=(s.categoryChildList||[]).find(d=>d.id===t.wikiCategoryId);if(i&&i.childrenList.length){const d=[];return i.childrenList.forEach(F=>{const h=F.childrenList,_=[];h&&h.length>0&&(_.push({label:"全部",value:F.id,name:F.name,id:F.id}),h.forEach(E=>{_.push({label:E.name,value:E.id,name:E.name,id:E.id})})),d.push({...F,childrenList:_})}),[{label:"全部",value:"",id:"",name:"全部",childrenList:[]},...d]}return[]}),o=z({showSlide:!1}),c=r=>{var i,d;r==="left"?(i=p.value)==null||i.prev():r==="right"&&((d=p.value)==null||d.next())};return Y(()=>{Le(()=>{const r=document.querySelector(".carouselContainer"),i=r&&r.getBoundingClientRect().width||0,d=document.querySelectorAll(".n-carousel__slide");let F=0;d.forEach(h=>{const _=h.getBoundingClientRect();F+=_.width}),F>=i&&(o.showSlide=!0)})}),()=>{let r,i;return e("div",{class:G.searchGroup},[e("div",{class:[G.searchCatatory,n.value.length>0?G.border:""]},[e(ue,{size:"small",class:G.btnType},{default:()=>[s.categoryChildList.length>0?e(M,{type:t.wikiCategoryId===s.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==s.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=s.wikiCategoryId,t.wikiCategoryIdChild="",a()}},{default:()=>[C("全部")]}):e("span",null,null),e("div",{class:[G.carouselGroup]},[e(Nt,{ref:p,slidesPerView:"auto",loop:!1,class:[G.carouselContainer,"carouselContainer"],showDots:!1,draggable:o.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":d=>{t.currentIndex=d}},ou(r=s.categoryChildList.map(d=>e(gt,null,{default:()=>[e(M,{type:t.wikiCategoryId===d.id?"primary":"default",secondary:t.wikiCategoryId!==d.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=d.id,a()}},{default:()=>[d.name]})]})))?r:{default:()=>[r]}),o.showSlide&&e(ue,{class:G.swipeControll},{default:()=>[e("div",{onClick:()=>c("left")},[e(ne,{previewDisabled:!0,class:[G.leftIcon],src:Pe},null)]),e("div",{onClick:()=>c("right")},[e(ne,{previewDisabled:!0,src:Pe},null)])]})])]}),e(Vt,{class:G.inputSearch,placeholder:"请输入曲目名称",round:!0,onSearch:d=>{t.keyword=d,a()}},null)]),n.value.length>0&&e("div",{class:[G.collapseWrap]},[e(ue,{class:[G.spaceSection]},ou(i=n.value.map((d,F)=>e(Be,null,[d.childrenList.length>0?e(Ss,{options:d.childrenList,trigger:"hover",value:t.wikiCategoryIdChild,"onUpdate:value":[h=>t.wikiCategoryIdChild=h,()=>{a()}],key:d.id,class:G.popSelect},{default:()=>[e("span",{class:[G.textBtn,u(d.childrenList).selected&&G.textBtnActive]},[u(d.childrenList).name||d.name,e("i",{class:G.iconArrow},null)])]}):e("span",{class:[G.textBtn,t.wikiCategoryIdChild===d.id&&G.textBtnActive],onClick:()=>{t.wikiCategoryIdChild=d.id,a()}},[d.name])])))?i:{default:()=>[i]})])])}}}),mr=N({name:"music-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(s,{emit:l}){Ne();const t=z({searchWord:"",loading:!1,finshed:!1,pageTotal:0,pagination:{page:1,rows:18},searchGroup:{type:"MUSIC",keyword:"",wikiCategoryId:s.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async()=>{t.loading=!0;try{const{data:n}=await Rt({...t.pagination,...t.searchGroup});t.tableList.push(...n.rows),t.pageTotal=Number(n.total),t.finshed=n.pages<=n.current}catch(n){}t.loading=!1},a=async n=>{t.pagination.page=1,t.tableList=[];const{wikiCategoryIdChild:o,wikiCategoryId:c,keyword:r}=n;t.searchGroup=Object.assign(t.searchGroup,{wikiCategoryId:o||c,keyword:r}),p()},u=n=>{const o=s.selectItems||[],c=o.findIndex(r=>r.id===n.id);c!==-1?o.splice(c,1):o.push(n),l("confirm",o)};return Y(()=>{p()}),()=>e("div",{class:G.instrumentList},[e(gr,{class:G.searchGroups,categoryChildList:s.categoryChildList||[],wikiCategoryId:s.categoryId,onSearch:n=>a(n)},null),e(fe,{class:G.listContainer,style:{"max-height":"50vh"},onScroll:n=>{var i,d,F;const o=(i=n.target)==null?void 0:i.clientHeight,c=(d=n.target)==null?void 0:d.scrollTop,r=(F=n.target)==null?void 0:F.scrollHeight;o+c+20>=r&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p())}},{default:()=>[e(de,{show:t.loading,"onUpdate:show":n=>t.loading=n,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:G.list},[t.tableList.map(n=>e("div",{class:G.itemWrap,onClick:()=>{t.item={content:n.id,title:n.name,type:"MUSIC_WIKI"},t.show=!0}},[e("div",{class:G.itemWrapBox},[e("div",{class:[G.itemCard,s.selectItems.findIndex(o=>o.id===n.id)!==-1&&G.itemImgSectionSelected]},[e("div",{class:G.itemName},[e("img",{src:n.avatar||zs,class:G.musicBg},null),e("span",{class:G.name},[n.name])]),e("i",{class:[G.iconCheck],onClick:o=>{o.stopPropagation(),u(n)}},null)])])])),!t.loading&&t.tableList.length<=0&&e(pe,{style:{minHeight:"50vh"},description:"暂无名曲鉴赏"},null)])]})]}),e(rt,{size:"large",show:t.show,"onUpdate:show":n=>t.show=n,item:t.item},null)])}});function fr(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!xe(s)}const Cr=N({name:"content-music",emits:["close","confirm"],setup(s,{emit:l}){const t=z({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await Mt({type:"MUSIC",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&Le(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const a=async()=>{const u=[];t.selectItems.forEach(n=>{u.push({coverImg:dt.MUSIC_DEFAULT_COVER,title:"名曲鉴赏-"+n.name,materialId:n.id,content:n.id})}),l("confirm",u)};return()=>{let u;return e("div",{class:Ie.container},[e("div",{class:Ie.wrap},[e("div",{class:[Ie.listWrap,!t.loading&&t.categoryList.length<=0&&Ie.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(pe,{description:"暂无名曲鉴赏"},null),e("div",{style:{minHeight:"55vh"}},[e(qe,{defaultValue:"myResources",paneClass:Ie.paneTitle,justifyContent:"center",paneWrapperClass:Ie.paneWrapperContainer,value:t.tabValue,"onUpdate:value":n=>t.tabValue=n},fr(u=t.categoryList.map(n=>e(Je,{name:"name-".concat(n.id),tab:n.name},{default:()=>[e(mr,{selectItems:t.selectItems,categoryId:n.id,categoryChildList:n.childrenList,onConfirm:o=>{t.selectItems=o||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ue,{class:Ie.btnGroup,justify:"center"},{default:()=>[e(M,{round:!0,onClick:()=>l("close")},{default:()=>[C("取消")]}),e(M,{round:!0,type:"primary",onClick:a},{default:()=>[C("确认添加")]})]})])}}}),Fr="_btnGroupModal_ma87e_1",hr="_subjectSync_ma87e_8",Er="_tips_ma87e_8",wr="_subjectList_ma87e_17",Ar="_subjectItem_ma87e_24",Br="_imgSection_ma87e_24",vr="_iconSelect_ma87e_38",yr="_subjectName_ma87e_46",br="_subjectSelect_ma87e_50",ye={btnGroupModal:Fr,subjectSync:hr,tips:Er,subjectList:wr,subjectItem:Ar,imgSection:Br,iconSelect:vr,subjectName:yr,subjectSelect:br},_r=N({name:"subject-sync",props:{subjectId:{type:[String,Number],default:""}},emits:["close","confirm"],setup(s,{emit:l}){const t=jt();ve();const p=ct(),a=P([]),u=P([]),n={Panpipes:"https://oss.dayaedu.com/ktqy/17103860536976fd4a751.png",Ocarina:"https://oss.dayaedu.com/ktqy/171038605369851874b22.png",Woodwind:"https://oss.dayaedu.com/ktqy/17103860536966826c50d.png","Tenor Recorder":"https://oss.dayaedu.com/ktqy/17103860536950592e357.png",Nai:"https://oss.dayaedu.com/ktqy/1710386053697af4aa985.png","Baroque Recorder":"https://oss.dayaedu.com/ktqy/1710386053698031e847a.png"},o=()=>{if(a.value.length<=0){p.error("至少选择一个声部进行同步");return}const c=[];a.value.forEach(r=>{const i=u.value.find(d=>d.id===r);i&&c.push({materialId:i.id,coverImg:n[i.code]||n.Panpipes,dataJson:null,title:i.name,isCollect:!1,isSelected:!1,content:i.code})}),l("confirm",{subjectIds:a.value,subjectCode:c})};return Y(async()=>{await t.getMusicInstrument(),u.value=t.getMusicInstruments,s.subjectId&&(a.value=[Number(s.subjectId)])}),()=>e("div",{class:ye.subjectSync},[e(fe,{style:{maxHeight:"60vh"}},{default:()=>[e("div",{class:ye.subjectList},[u.value.map(c=>e("div",{class:[ye.subjectItem,a.value.includes(c.id)?ye.subjectSelect:""],onClick:()=>{if(a.value.includes(c.id)){const r=a.value.indexOf(c.id);a.value.splice(r,1)}else a.value.push(c.id)}},[e("div",{class:ye.imgSection},[e("img",{src:c.img},null),a.value.includes(c.id)&&e("img",{src:Ks,class:ye.iconSelect},null)]),e("p",{class:ye.subjectName},[c.name])]))])]}),e(ue,{class:ye.btnGroupModal,justify:"center"},{default:()=>[e(M,{round:!0,onClick:()=>l("close")},{default:()=>[C("取消")]}),e(M,{round:!0,type:"primary",onClick:o},{default:()=>[C("确定")]})]})])}}),Sr=N({name:"add-other-source",emits:["close","comfirm"],setup(s,{emit:l}){ve();const t=Ne(),p=P([{image:Fn,name:"上传资源",index:7},{image:dn,name:"听音练习",index:0},{image:pn,name:"节奏练习",index:1},{image:gn,name:"乐器百科",index:2},{image:Cn,name:"名曲鉴赏",index:3},{image:fn,name:"音乐家",index:4},{image:mn,name:"乐理知识",index:5}]),a=z({listenStatus:!1,rhythmStatus:!1,theoryStatus:!1,musicStatus:!1,instrumentStatus:!1,musicianStatus:!1,uploadStatus:!1,saveStatus:!1,editStatus:!1,editList:[],editIds:[],editOverIds:[]}),u=n=>{switch(n.index){case 0:a.listenStatus=!0;break;case 1:a.rhythmStatus=!0;break;case 2:a.instrumentStatus=!0;break;case 3:a.musicStatus=!0;break;case 4:a.musicianStatus=!0;break;case 5:a.theoryStatus=!0;break;case 6:I.emit("pageBeforeLeave",()=>{sessionStorage.setItem("notation-open-create","1"),t.push("/notation")});break;case 7:a.saveStatus=!0;break}};return()=>e(Be,null,[e("div",{class:ce.addOtherSource},[p.value.map(n=>e("div",{class:ce.sourceItem,onClick:()=>u(n)},[e(ne,{class:ce.coverImg,src:n.image,previewDisabled:!0},null),e("p",{class:ce.name},[n.name])]))]),e(te,{show:a.rhythmStatus,"onUpdate:show":n=>a.rhythmStatus=n,preset:"card",class:["modalTitle background",ce.addOtherSourceModal],title:"节奏练习"},{default:()=>[e(wn,{onClose:()=>a.rhythmStatus=!1,onConfirm:n=>{a.rhythmStatus=!1,l("comfirm",{materialId:null,coverImg:n.coverImg,dataJson:n.dataJson,title:"节奏练习",isCollect:!1,isSelected:!1,content:null,type:"RHYTHM"}),l("close")}},null)]}),e(te,{show:a.instrumentStatus,"onUpdate:show":n=>a.instrumentStatus=n,preset:"card",class:["modalTitle",ce.instrumentModal],title:"乐器百科"},{default:()=>[e(el,{onClose:()=>a.instrumentStatus=!1,onConfirm:n=>{a.instrumentStatus=!1;const o=n||[],c=[];o.forEach(r=>{c.push({materialId:r.materialId,coverImg:r.coverImg,dataJson:null,title:r.title,isCollect:!1,isSelected:!1,content:r.content,type:"INSTRUMENT"})}),l("comfirm",c),l("close")}},null)]}),e(te,{show:a.theoryStatus,"onUpdate:show":n=>a.theoryStatus=n,preset:"card",class:["modalTitle",ce.theoryModal],title:"乐理知识"},{default:()=>[e(tl,{onClose:()=>a.theoryStatus=!1,onConfirm:n=>{a.theoryStatus=!1;const o=n||[],c=[];o.forEach(r=>{c.push({materialId:r.materialId,coverImg:r.coverImg,dataJson:null,title:r.title,isCollect:!1,isSelected:!1,content:r.content,type:"THEORY"})}),l("comfirm",c),l("close")}},null)]}),e(te,{show:a.musicianStatus,"onUpdate:show":n=>a.musicianStatus=n,preset:"card",class:["modalTitle",ce.instrumentModal],title:"音乐家"},{default:()=>[e(Tl,{onClose:()=>a.musicianStatus=!1,onConfirm:n=>{a.musicianStatus=!1;const o=n||[],c=[];o.forEach(r=>{c.push({materialId:r.materialId,coverImg:r.coverImg,dataJson:null,title:r.title,isCollect:!1,isSelected:!1,content:r.content,type:"MUSICIAN"})}),l("comfirm",c),l("close")}},null)]}),e(te,{show:a.musicStatus,"onUpdate:show":n=>a.musicStatus=n,preset:"card",class:["modalTitle",ce.musicModal],title:"名曲鉴赏"},{default:()=>[e(Cr,{onClose:()=>a.musicStatus=!1,onConfirm:n=>{a.musicStatus=!1;const o=n||[],c=[];o.forEach(r=>{c.push({materialId:r.materialId,coverImg:r.coverImg,dataJson:null,title:r.title,isCollect:!1,isSelected:!1,content:r.content,type:"MUSIC_WIKI"})}),l("comfirm",c),l("close")}},null)]}),e(te,{show:a.listenStatus,"onUpdate:show":n=>a.listenStatus=n,preset:"card",class:["modalTitle background",ce.subjectSyncModal],title:"选择乐器"},{default:()=>[e(_r,{onClose:()=>a.listenStatus=!1,onConfirm:async n=>{try{a.musicStatus=!1;const o=n.subjectCode||[],c=[];o.forEach(r=>{c.push({materialId:r.materialId,coverImg:r.coverImg,dataJson:null,title:r.title,isCollect:!1,isSelected:!1,content:r.content,type:"LISTEN"})}),a.listenStatus=!1,l("comfirm",c),l("close")}catch(o){}}},null)]}),e(te,{show:a.uploadStatus,"onUpdate:show":n=>a.uploadStatus=n,preset:"card",showIcon:!1,class:["modalTitle background",ce.attendClassModal],title:a.editStatus?"修改资源":"上传资源",blockScroll:!1},{default:()=>[e($s,{editStatus:a.editStatus,onClose:()=>{a.uploadStatus=!1},onConfirm:n=>{a.editIds=[],a.editList=[],a.editOverIds=[],a.saveStatus=!1;try{a.musicStatus=!1;const o=n||[],c=[];o.forEach(r=>{c.push({materialId:r.id,coverImg:r.coverImg,dataJson:null,title:r.name,isCollect:!1,isSelected:!1,content:r.content,type:r.type})}),l("comfirm",c),l("close")}catch(o){}},list:a.editList},null)]}),e(te,{show:a.saveStatus,"onUpdate:show":n=>a.saveStatus=n,preset:"card",showIcon:!1,class:["modalTitle background",ce.attendClassSaveModal],title:"上传资源",blockScroll:!1},{default:()=>[e(Zs,{onClose:()=>a.saveStatus=!1,onConfrim:n=>{const o=n||[],c=[];o.forEach(r=>{c.push({subjectIds:null,openFlag:!1,coverImg:r.coverImg,title:r.name||"",type:qs(r.content),enableFlag:1,content:r.content,id:null})}),a.editList=c,a.uploadStatus=!0,a.editStatus=!1}},null)]})])}}),xt=s=>{if(s===null)return null;const l=Object.assign({},s);return Object.keys(l).forEach(t=>l[t]=typeof s[t]=="object"?xt(s[t]):s[t]),Array.isArray(s)?(l.length=s.length,Array.from(l)):l},Ir="_protocolModal_6k92d_1",Dr="_dingPng_6k92d_4",Lr="_downMove_6k92d_13",kr="_downMoveBg_6k92d_21",xr="_closeAble_6k92d_28",jr="_submitAppBtn_6k92d_54",Tr="_cancelBtn_6k92d_55",Vr="_protocolGroup_6k92d_65",Rr="_checkbox_6k92d_75",Mr="_checkboxActive_6k92d_83",Pr="_protocolSection_6k92d_90",Nr="_protocolContent_6k92d_123",Wr="_child_6k92d_134",se={protocolModal:Ir,dingPng:Dr,downMove:Lr,downMoveBg:kr,closeAble:xr,submitAppBtn:jr,cancelBtn:Tr,protocolGroup:Vr,checkbox:Rr,checkboxActive:Mr,protocolSection:Pr,protocolContent:Nr,child:Wr},Gr=""+new URL("dingPng-b63c3ae2.png",import.meta.url).href,nu=""+new URL("moveTop-6b6421db.png",import.meta.url).href,lu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAi9JREFUaEPt2a9LBEEUwPHvBUFEg0EQ0SD+BTaLSbCYTAo2k0WDlvMHCCJisWgwWRVMJoNgMtj8CwSDv8BgUhEElYFdWZe7nbcz78Fx7Na7ebOfeTtvZnZrtMlVaxMHFaTVMlllpMqI0QhIHq0hYBx4Ay6AT6N7ScN2ApNAN3AF3Ev680GGgT2gIwn2AKwDr5LgAf/pBXaAwaTtF7AC3Pli+SALwFQuyCOwZoDJI9Juz4HDWMg8MN0giDamGcJ1fQYcxUL6gP3kec3H0sIUId6BJeAlFuLajwDbRhgfYgO49SHc7745ksawwKghykC0M6OKKAvRwqgjQiCxGBNEKCQUY4aIgfgwT8BqZtE0RcRCpJif3LYjW03dOiEusUVlWFp+i2IUlWaXme/M3skEoZERyTrTaBDUMpEG18hIWYw6QjMjUowJwgLiqtMuMNBkUj0DdYMjgHivJdm3FZXYbHutXfO/e9KaI1JE2rk6RgPiW+zcOuLO3/lLFRML8SHcYucgVueZv8GJgUgQ6aHI4jyjMkfKICSlOfoxC8lICMIcUxYSgzDFlIFoIMwwUogmwgQjgVgg1DE+SFfy7jd9F2txnvCV5mXgw7dH8kFmgbkGQbR3sUWYE+A4FrKYvOK3yET+3pph3KeMg1jIKLCVCaKdCQlmE7iJhbj2Y8BE8qHnFHBnCsurH5gBeoBL4FrSmW+OSGK0xH8qSEukIXMTVUaqjBiNQPVoGQ1scNi2ycgvTfaxM/Rb2jIAAAAASUVORK5CYII=",Or=N({name:"add-courseware-protocol",emits:["close","confirm"],setup(s,{emit:l}){const t=z({status:!1,protocolShow:!1});return()=>e("div",{class:se.protocolModal},[e("img",{src:Gr,class:se.dingPng,alt:""},null),t.protocolShow?e("div",{class:se.protocolSection},[e("img",{src:nu,class:se.downMoveBg,alt:""},null),e("img",{src:lu,class:se.closeAble,onClick:()=>{t.protocolShow=!1},alt:""},null),e("h2",null,[C("《音乐数字课堂课件与作业公开服务协议》")]),e(fe,{style:{maxHeight:"45vh"}},{default:()=>[e("div",{class:se.protocolContent},[e("p",{style:{paddingTop:"0"}},[C("欢迎使用音乐数字课堂!")]),e("p",null,[C("重要须知")]),C("武汉酷乐秀网络科技有限公司(以下统称“平台方”,或称“我们”),在此特别提醒,为使用音乐数字课堂(包括手机端、网页端等,以下称“软件”或“平台”)与相关信息化教育产品、内容及服务,您务必仔细阅读、充分理解并遵守《音乐数字课堂课件与作业公开服务协议》(以下简称“本协议”)中各项条款,包括免除或者限制责任的条款,并选择接受或不接受。本协议所述服务条款构成您(个人或者单位、组织、团体等)使用平台方提供的相关服务(以下简称“该服务”)的先决条件。若您不接受本协议中所述服务条款或其后对协议条款的修改,您应不使用或主动取消平台方提供的相关服务。 您自愿使用平台方提供的网络存储空间进行培训课件与作业及相关智力成果的上传及传播服务。如果您未满18周岁,请在法定监护人的陪同下阅读本协议。"),e("br",null,null),C("本协议是您(或称“用户”,指注册、登录、使用、浏览本服务的个人或组织)与平台方之间关于音乐数字课堂与相关信息化教育产品、内容及服务所订立的协议。"),e("br",null,null),e("p",null,[C("1 权利声明")]),C("音乐数字课堂由武汉酷乐秀网络科技有限公司(以下简称“酷乐秀”)独立开发,一切知识产权以及音乐数字课堂自有的所有信息内容包括但不限于:文字表述及其组合、图标、图饰、图像、图表、色彩、界面设计、版面框架、有关数据、附加程序、印刷材料或电子文档等均为酷乐秀所有,受著作权法和国际著作权条约以及其他知识产权法律法规的保护。"),e("br",null,null),C("音乐数字课堂由武汉酷乐秀网络科技有限公司(以下简称“音乐数字课堂”)提供运营管理服务。"),e("br",null,null),e("p",null,[C("2 服务说明 ")]),C("2.1 您可以通过音乐数字课堂主页【网址:https://kt.colexiu.com/classroom-admin/#/login】、手机客户端(及其他由音乐数字课堂运营的任何网站)、音乐数字课堂公众号,访问音乐数字课堂并使用相关服务。"),e("br",null,null),C("2.2 您知悉并同意,在注册成为音乐数字课堂用户或使用本服务时,需提供一些必要信息,包括但不限于手机号码、头像等。若国家法律法规或政策有特殊规定的,平台方会根据相关特殊规定要求您提供相关信息,如真实的身份信息等,若您提供的信息不完整,您将无法使用本服务或本服务中的相关功能,由此为您带来不便或损失的,平台方完全免责。如个人信息发生变更,您有权随时与平台方联系并要求修改相关个人信息。在您向平台方提出前述删除请求前,平台方可在本协议约定范围内合理利用相关个人信息。"),e("br",null,null),C("您应承诺合法使用平台方提供的服务,您使用该服务的行为应符合当地的法律法规及政策的要求,否则由此带来的责任由您自行承担。"),e("br",null,null),e("p",null,[C("3 权利授予 ")]),C("3.1 您理解并同意,您将课件与作业及相关智力成果上传至音乐数字课堂,即视为您授予了平台方无期限限制的、全球范围内的、不可撤销的信息网络传播权和其他形式的使用权。为了更好地对课件与作业进行宣传和推广,平台方可以将上述权利转让或者转授予给其关联公司或者合作伙伴,而无须征得您的同意。您如果不同意上述条款,请不要将作品上传至音乐数字课堂。"),e("br",null,null),C("3.2 平台方仅对您提交的资料和信息进行审核,并不对您的主体资质和上传的课件与作业内容的真实性、正确性、合法性承担任何责任或提供任何担保。"),e("br",null,null),C("3.3 如果任何第三方侵犯音乐数字课堂用户相关的权利,用户同意授权平台方或其指定的代理人代表平台方自身或用户对该第三方提出警告、投诉、发起行政执法、诉讼、进行上诉,或谈判和解,并且用户同意在平台方认为必要的情况下参与共同维权。"),e("br",null,null),e("p",null,[C("4 权利限制 ")]),C("4.1 平台方通过音乐数字课堂所提供的服务,均限于在音乐数字课堂平台内使用,禁止任何以恶意破解等非法手段将音乐数字课堂内的服务与音乐数字课堂平台分离的行为,否则,由此引起的一切后果由行为人负责,平台方将保留依法追究行为人法律责任的权利。"),e("br",null,null),C("4.2 未经平台方书面同意,您不得将已上传至音乐数字课堂平台上的培训课件与作业的任何资料文件直接、间接或经修改后提供给任何第三方。"),e("br",null,null),C("4.3 保留权利:本协议未明示许可的其他一切权利仍归平台方所有,您使用其他权利时必须获得平台方的书面同意。"),e("br",null,null),C("4.4 除本协议有明确规定外,本协议并未对平台方其他服务规定相关的服务条款,对于这些服务可能有单独的服务条款加以规范,请您在使用有关服务时另行了解与确认。如您使用该服务,视为对相关服务条款的接受。"),e("br",null,null),e("p",null,[C("5 用户使用须知")]),C("5.1 您承诺您具有履行本协议义务的权利能力及资格,因您自身职务或职业要求导致本协议无法履行或合同目的无法实现的,您应当及时通知平台方,并共同协商解决办法,以保证将事件影响性降到最低。"),e("br",null,null),C("5.2 您保证,您上传的课件与作业所涉的创意、脚本、资料、课件与作业等全部文件资料不违反国家相关法律法规、不侵犯第三方权益,且平台方按照约定行使授权内容的相关权利不会侵犯任何第三方的合法权益,也无须另行取得任何第三方的同意,更无须对任何第三方承担责任。如您违反前述保证,平台方有权采取包括但不限于删除相关课件与作业内容、中止或终止向您提供服务等措施。如您上传的课件与作业侵犯了第三方的合法权利,第三方向平台方提出举报,平台方有权删除相关的内容。当权利人发现音乐数字课堂上相关课件与作业侵犯其合法权益时,权利人可向平台方举报,平台方将根据中国法律法规和规范性文件的规定采取移除相关内容等合理措施。"),e("br",null,null),C("5.3 您保证上传的课件与作业中不含以下内容:"),e("br",null,null),e("div",{class:se.child},[C("1. 反对宪法所确定的基本原则;"),e("br",null,null),C("2. 危害国家安全,泄漏国家秘密,颠覆国家政权,破坏国家统一;"),e("br",null,null),C("3. 损害国家荣誉和利益; "),e("br",null,null),C("4. 煽动民族仇恨、民族歧视,破坏民族团结;"),e("br",null,null),C("5. 破坏国家宗教政策,宣扬邪教和封建迷信;"),e("br",null,null),C("6. 散布谣言,扰乱社会秩序,破坏社会稳定;"),e("br",null,null),C("7. 散布淫秽、色情、赌博、暴力、凶杀、恐怖或教唆犯罪;"),e("br",null,null),C("8. 侮辱或者诽谤他人,侵害他人合法权益;"),e("br",null,null),C("9. 含有法律、行政法规严令禁止的其他内容。"),e("br",null,null)]),C("5.4 上述承诺与保证不受本协议期限的限制,您违反上述任一的保证与承诺的,平台方有权即时解除本协议并要求您承担由此产生的全部责任。"),e("br",null,null),e("p",null,[C("6 隐私政策 ")]),C("6.1 目的 为改善平台方服务,提升用户体验,在您使用音乐数字课堂时,平台方可能对您使用音乐数字课堂的使用信息进行统计与分析,例如:平台方会根据您上传并通过审核的某单元的课件与作业数量显示您在该单元全国范围内的排名,同时显示您的头像、昵称信息及通过审核的课件与作业数量。平台方将采取必要的保护措施,以保护您的相关信息。您可以选择不提供或只提供部分信息,但平台方可能将无法为您提供完整的产品功能或服务。"),e("p",null,[C("7 免责与责任限制")]),C("7.1 音乐数字课堂不含有任何旨在破坏您计算机数据和获取您隐私信息的恶意代码。音乐数字课堂经过详细的测试,但不能保证与所有的软硬件系统完全兼容,不能保证音乐数字课堂完全没有错误。如果出现不兼容及软件错误的情况,您可拨打技术支持电话将情况报告平台方,以获得技术支持。如果无法解决兼容性问题,您可以删除音乐数字课堂。由此给您造成损失的,您同意平台方免责。"),e("br",null,null),C("7.2 在适用法律允许的最大范围内,对因使用或不能使用音乐数字课堂所产生的损害及风险,包括但不限于直接或间接的个人损害、商业赢利的丧失、贸易中断、商业信息的丢失或任何其它经济损失,平台方不承担任何责任。"),e("br",null,null),C("7.3 对于因电信系统或互联网网络故障、计算机故障或病毒、信息损坏或丢失、计算机系统问题或其它任何不可抗力原因而产生损失,平台方不承担任何责任。"),e("br",null,null),C("7.4 您知悉并同意,为实现部分软件功能,平台方有权将您在使用该服务过程当中产生的部分或全部数据信息,上传、保存至第三方云服务存储器,并根据您发出的功能指令需求,自行调取相关数据信息。因第三方云服务发生中断等功能障碍事故导致平台方无法正常提供服务的,平台方会尽其商业上的合理努力负责协调解决,但由此给您造成损失的,您同意平台方免责。"),e("br",null,null),C("7.5 您违反本协议规定,对平台方造成损害的。平台方有权采取包括但不限于中断使用许可、停止提供服务、限制使用、法律追究等措施。"),e("br",null,null),e("p",null,[C("8 法律及争议解决")]),C("8.1 本协议适用中华人民共和国法律。"),e("br",null,null),C(" 8.2 因本协议引起的或与本协议有关的任何争议,各方应友好协商解决;协商不成的,任何一方均可将有关争议提交至平台方所在地有管辖权的人民法院管辖。"),e("br",null,null),e("p",null,[C("9 其他条款")]),C("9.1 如果本协议中的任何条款无论因何种原因完全或部分无效或不具有执行力,或违反任何适用的法律,则该条款被视为删除,但本协议的其余条款仍有效并且具有约束力。"),e("br",null,null),C("9.2 如果本协议中的任何条款与音乐数字课堂中某具体软件的协议条款相矛盾的,以该具体软件的协议条款为准。"),e("br",null,null),C("平台方有权随时根据有关法律、法规的变化以及公司经营状况和经营策略的调整等修改本协议。修改后的协议会在平台方指定网站上公布,并随附于新版音乐数字课堂。当发生有关争议时,以最新的协议文本为准。如果不同意改动的内容,您可以自行删除音乐数字课堂。如果您继续使用音乐数字课堂,则视为您接受本协议的变动。"),e("br",null,null),C("至此,用户已经详细阅读并已理解本协议,并同意严格遵守各条款和条件。如果用户对本《协议》有任何疑问或者希望获得与本软件相关的任何信息,请按下列地址和方式与酷乐秀联系,酷乐秀将在15日内答复用户。"),e("br",null,null),C("技术支持方:武汉酷乐秀网络科技有限公司"),e("br",null,null),C("运营方:武汉酷乐秀网络科技有限公司")])]}),e(ue,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(M,{class:se.cancelBtn,round:!0,type:"default",onClick:()=>{t.protocolShow=!1}},{default:()=>[C("取消授权")]}),e(M,{class:se.submitAppBtn,bordered:!1,round:!0,type:"primary",onClick:()=>{t.protocolShow=!1,t.status=!0}},{default:()=>[C("同意授权")]})]})]):e("div",{class:se.downMove},[e("img",{src:nu,class:se.downMoveBg,alt:""},null),e("img",{src:lu,class:se.closeAble,onClick:()=>{l("close")},alt:""},null),e("h2",null,[C("课件公开须知")]),e("p",null,[C("公开课件后,您课件中的资源及作业都可被其他教师查看、使用,具体信息请查看服务协议")]),e("div",{class:se.protocolGroup,onClick:()=>{t.status=!t.status}},[e("i",{class:[se.checkbox,t.status&&se.checkboxActive]},null),e("p",null,[C("我已阅读并同意"),e("span",{onClick:p=>{p.stopPropagation(),t.protocolShow=!0}},[C("《音乐数字课堂课件与作业公开服务协议》")])])]),e(ue,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(M,{class:se.cancelBtn,round:!0,type:"default",onClick:()=>l("close")},{default:()=>[C("取消")]}),e(M,{class:se.submitAppBtn,bordered:!1,round:!0,type:"primary",disabled:!t.status,onClick:()=>{l("confirm")}},{default:()=>[C("确定")]})]})])])}}),Ur=N({name:"courseware-modal",props:{groupItem:{type:Object,default:()=>({})}},emits:["change"],setup(s,{emit:l}){const t=Tt(),p=ve(),a=ct(),u=z({subjects:[],openFlagEnable:!0,autoPlay:!0,name:"",openFlag:!1,createId:null,baseCoursewareList:[{name:"",id:null,list:[]}],baseInfo:{subjects:[],autoPlay:!0,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}),n=P(),o=P(!1),c=async()=>{u.loadingStatus=!0;try{if(!s.groupItem.id)return u.loadingStatus=!1;const{data:m}=await Zu(s.groupItem.id),B=m.chapterKnowledgeList||[];u.name=m.name,u.subjects=m.subjectIds?m.subjectIds.split(",").map(b=>Number(b)):[],u.openFlag=m.openFlag,u.openFlagEnable=m.openFlagEnable,u.autoPlay=m.autoPlay;const A=[];B.forEach(b=>{const Z=b.chapterKnowledgeMaterialList,Ce=[];Array.isArray(Z)&&Z.length>0&&Z.forEach(q=>{Ce.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",content:q.bizInfo.content,removeFlag:q.removeFlag})}),A.push({name:b.name,id:b.id,list:[...Ce]})}),u.coursewareList=A,u.baseCoursewareList=xt(A),u.baseInfo=xt({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),I.emit("updateCoursewareHeadInfo",{name:u.name,subjects:u.subjects,openFlag:u.openFlag,openFlagEnable:u.openFlagEnable,autoPlay:u.autoPlay})}catch(m){console.log(m)}u.loadingStatus=!1},r=(m,B)=>{const A=u.coursewareList[B];A&&A.list.splice(m,1)},i=(m,B,A)=>{const b=m.getBoundingClientRect();return B>=b.left&&B<=b.right&&A>=b.top&&A<=b.bottom},d=(m,B)=>{const A=m.getBoundingClientRect(),b=A.left+A.width/2;return B<b},F=(m,B,A)=>{if(m==="up"){if(B===0)return;const b=u.coursewareList[B-1];u.coursewareList[B-1]=u.coursewareList[B],u.coursewareList[B]=b}else if(m==="down"){if(B>=u.coursewareList.length-1)return;const b=u.coursewareList[B+1];u.coursewareList[B+1]=u.coursewareList[B],u.coursewareList[B]=b}else m==="remove"&&(u.messageOperation={visiable:!0,type:"delete",contentDirection:"left",title:"删除知识点",loading:!1,content:"请确认是否删除".concat(A.name?"【"+A.name+"】":"该知识点",",删除知识点后将同步删除知识点下的资源"),cancelButtonText:"取消",confirmButtonText:"确认",index:B})},h=async()=>{const m=u.messageOperation.type;if(m==="delete")u.coursewareList.splice(u.messageOperation.index,1);else if(m==="addItem")u.coursewareList.push({name:"",list:[]}),_(u.addCoursewareItem);else if(m==="save"||m==="pageLive"){if(u.messageOperation.loading)return;if(!u.name){a.error("请输入课件标题"),u.messageOperation.visiable=!1;return}if(u.subjects.length<=0){a.error("请选择声部"),u.messageOperation.visiable=!1;return}if(u.coursewareList.length<=0){a.error("未配置知识点"),u.messageOperation.visiable=!1;return}let B=!1;for(const b of u.coursewareList){if(!b.name){a.error("请输入知识点名称"),u.messageOperation.visiable=!1;return}Array.isArray(b.list)&&b.list.length<=0&&(B=!0)}if(B){a.error("请至少添加一个资源"),u.messageOperation.visiable=!1;return}u.messageOperation.loading=!0;const A=await f();u.messageOperation.loading=!1,A&&(m==="pageLive"&&typeof u.messageCallBack=="function"&&u.messageCallBack(),l("change",{status:!1,addParam:{isAdd:!s.groupItem.id,name:u.name,id:u.createId}}),I.emit("teacher-slideshow",!1))}u.messageOperation.visiable=!1},_=(m,B)=>{Le(()=>{if(B){const b=document.querySelectorAll(".row-group")[m.index].querySelectorAll(".row-nav");let Z=!1;b.forEach((Ce,q)=>{if(i(Ce,B.x,B.y)){const Fe=u.coursewareList[m.index||0].list||[];d(Ce,B.x)?Fe.splice(q,0,m):Fe.splice(q+1,0,m),Z=!0,u.coursewareList[m.index||0].list=Fe}}),Z||u.coursewareList[m.index||0].list.push(m)}else u.coursewareList[m.index||0].list.push(m),a.success("添加成功")})},E=async()=>{try{if(n.value.validate(),I.emit("checkCoursewareForm"),!u.name){a.error("请输入课件标题");return}if(u.subjects.length<=0){a.error("请选择声部");return}if(u.coursewareList.length<=0){a.error("请至少添加一个知识点");return}let m=!1;for(const A of u.coursewareList){if(!A.name){a.error("请输入知识点名称");return}Array.isArray(A.list)&&A.list.length<=0&&(m=!0)}if(m){a.error("请至少添加一个资源");return}if(u.openFlag&&!t.getReadCoursewareOpenAgreement){o.value=!0;return}await f()&&(l("change",{status:!1,addParam:{isAdd:!s.groupItem.id,name:u.name,id:u.createId}}),I.emit("teacher-slideshow",!1))}catch(m){}},f=async()=>{var m;try{const B={name:u.name,subjectIds:u.subjects.join(","),openFlag:u.openFlag,autoPlay:u.autoPlay,coursewareDetailKnowledgeId:p.getSelectKey,chapterKnowledgeList:[]};if(u.coursewareList.forEach(A=>{let b=[];Array.isArray(A.list)&&A.list.length>0&&(b=A.list.map(Z=>({bizId:Z.materialId,type:Z.type,dataJson:["IMG","VIDEO","SONG","MUSIC","PPT"].includes(Z.type)?"":JSON.stringify({setting:Z.dataJson,coverImg:Z.coverImg,bizId:Z.bizId,content:Z.content,name:Z.title})}))),B.chapterKnowledgeList.push({name:A.name,chapterKnowledgeMaterialList:b})}),(m=s.groupItem)!=null&&m.id)await qu({id:s.groupItem.id,...B}),a.success("保存成功");else{const{data:A}=await Ju(B);u.createId=A.id}return!0}catch(B){return!1}},v=(m,B)=>{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):_(m,B)},k=m=>{const B=JSON.stringify(u.coursewareList),A=JSON.stringify(u.baseCoursewareList),b=JSON.stringify({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),Z=JSON.stringify(u.baseInfo);B===A&&b===Z?typeof m=="function"&&(m(),l("change",{status:!1,addParam:{isAdd:!1,name:u.name,id:u.createId}}),I.emit("teacher-slideshow",!1)):(u.messageCallBack=m,u.messageOperation={visiable:!0,type:"pageLive",loading:!1,contentDirection:"center",title:"保存课件",content:"当前课件暂未保存,是否保存?",cancelButtonText:"不保存",confirmButtonText:"保存",index:0})},S=m=>{u.subjects=m.subjects,u.openFlagEnable=m.openFlagEnable,u.autoPlay=m.autoPlay,u.name=m.name,u.openFlag=m.openFlag;const B=JSON.stringify(u.coursewareList),A=JSON.stringify(u.baseCoursewareList),b=JSON.stringify({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),Z=JSON.stringify(u.baseInfo);B===A&&b===Z?(l("change",{status:!1,addParam:{isAdd:!1,name:u.name,id:u.createId}}),I.emit("teacher-slideshow",!1)):u.messageOperation={visiable:!0,type:"save",loading:!1,contentDirection:"center",title:"保存课件",content:"当前课件暂未保存,是否保存?",cancelButtonText:"不保存",confirmButtonText:"保存",index:0}},ae=m=>{u.subjects=m.subjects,u.openFlagEnable=m.openFlagEnable,u.autoPlay=m.autoPlay,u.name=m.name,u.openFlag=m.openFlag,E()};return Y(async()=>{var m;(m=s.groupItem)!=null&&m.id&&(u.coursewareList=[],u.baseCoursewareList=[]),await c(),I.on("onPrepareAddItem",v),I.on("pageBeforeLeave",k),I.on("coursewareClosed",S),I.on("coursewareSave",ae)}),ke(()=>{I.off("onPrepareAddItem",v),I.off("pageBeforeLeave",k),I.off("coursewareClosed",S),I.off("coursewareSave",ae)}),De(()=>u.coursewareList,()=>{p.setCoursewareList=u.coursewareList},{deep:!0}),()=>e(Is,{class:R.coursewareModal,model:u,ref:n},{default:()=>[e(fe,Ds({class:[R.listContainer,"listContainerWrap"]},{id:"lessons-2"}),{default:()=>[e(de,{show:u.loadingStatus},{default:()=>[e("div",{class:[R.listSection,"listSectionWrap"]},[u.coursewareList.map((m,B)=>e("div",{class:[R.listItems,"row-group"],onDragenter:A=>{A.preventDefault()},onDragover:A=>{A.preventDefault()},onDrop:A=>{let b=A.dataTransfer.getData("text");b=b&&A.dataTransfer.effectAllowed==="all"?JSON.parse(b):{},b.id&&I.emit("onPrepareAddItem",{materialId:b.id,coverImg:b.coverImg,type:b.type,title:b.title,isCollect:b.isCollect,isSelected:b.isSelected,content:b.content,removeFlag:!1,index:B,addType:"drag"},{x:A.clientX,y:A.clientY})}},[e("div",{class:R.knowledgePoint},[e(Ls,{class:R.btnItem,label:"知识点名称",showFeedback:!1,requireMarkPlacement:"left",path:"coursewareList.".concat(B,".name"),rule:[{required:!0,trigger:["input","blur"]}]},{default:()=>[e(Ze,{placeholder:"未命名知识点",value:m.name,"onUpdate:value":A=>m.name=A,maxlength:15,clearable:!0},null)]})]),e(ue,{class:R.operationGroup},{default:()=>[B>0&&e(Ae,{showArrow:!1},{trigger:()=>e("i",{class:R.iconCUp,onClick:()=>F("up",B)},null),default:()=>"上移知识点"}),B<u.coursewareList.length-1&&e(Ae,{showArrow:!1},{trigger:()=>e("i",{class:R.iconCDown,onClick:()=>F("down",B)},null),default:()=>"下移知识点"}),e(Ae,{showArrow:!1},{trigger:()=>e("i",{class:R.iconCRemove,onClick:()=>F("remove",B,m)},null),default:()=>"删除知识点"})]}),m.list.length>0&&e(Vs,{modelValue:m.list,"onUpdate:modelValue":A=>m.list=A,itemKey:"id",componentData:{itemKey:"id",tag:"div",animation:200,group:"description",disabled:!1},class:R.list},{item:A=>{const b=A.element;return e("div",{"data-id":b.id,class:[R.itemWrap,R.itemBlock,"row-nav"]},[e("div",{class:R.itemWrapBox},[e(Ts,{class:[R.itemContent],isShowCollect:!1,offShelf:!!b.removeFlag,item:b,disabledMouseHover:!1,onClick:()=>{b.type!=="IMG"&&(u.show=!0,u.item=b)}},null),e("div",{class:R.itemOperation},[e("img",{src:Ms,class:R.iconDelete,onClick:Z=>{Z.stopPropagation(),r(A.index,B)}},null)])])])},footer:()=>e("div",{class:R.itemWrap},[e("div",{class:R.itemWrapBox},[e("div",{class:[R.itemContent,R.addMusicItem,"handle"],onClick:()=>{u.addOtherSource=!0,u.addOtherIndex=B}},[e("img",{src:su},null),e("p",{class:R.addMusicName},[C("添加资源")])])])])}),m.list<=0&&e("div",{class:R.list},[e("div",{class:R.itemWrap},[e("div",{class:R.itemWrapBox},[e("div",{class:[R.itemContent,R.addMusicItem,"handle"],onClick:()=>{u.addOtherSource=!0,u.addOtherIndex=B}},[e("img",{src:su},null),e("p",{class:R.addMusicName},[C("添加资源")])])])])])])),!u.loadingStatus&&e(M,{block:!0,type:"primary",secondary:!0,class:R.addKnowledgePoint,onClick:()=>{u.coursewareList.push({name:"",list:[]})}},{default:()=>[e("i",{class:R.iconCAdd},null),C("添加知识点")]})])]})]}),e(rt,{size:["INSTRUMENT","THEORY","MUSIC_WIKI","MUSICIAN"].includes(u.item.type)?"large":"",show:u.show,"onUpdate:show":m=>u.show=m,item:u.item},null),e(te,{show:u.addCoursewareVisiable,"onUpdate:show":m=>u.addCoursewareVisiable=m,preset:"card",class:["modalTitle",R.addCourseware],title:"添加到知识点"},{default:()=>[e(Yo,{coursewareList:u.coursewareList,onClose:()=>u.addCoursewareVisiable=!1,onConfirm:m=>{Array.isArray(m)&&m.length>0?(m.forEach(B=>{_({...u.addCoursewareItem,index:B})}),u.addCoursewareVisiable=!1):a.error("请选择需要添加的知识点")}},null)]}),e(te,{show:u.messageOperation.visiable,"onUpdate:show":m=>u.messageOperation.visiable=m,preset:"card",class:["modalTitle",R.removeVisiable1],title:u.messageOperation.title},{default:()=>[e(Dt,{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")&&(l("change",{status:!1,addParam:{isAdd:!1,name:u.name,id:u.createId}}),I.emit("teacher-slideshow",!1),u.messageOperation.type==="pageLive"&&typeof u.messageCallBack=="function"&&u.messageCallBack())},onConfirm:()=>h()},null)]}),e(wu,{show:u.previewModal,"onUpdate:show":m=>u.previewModal=m,type:"attend",params:u.previewParams},null),e(te,{show:u.addOtherSource,"onUpdate:show":m=>u.addOtherSource=m,preset:"card",class:["modalTitle background",R.addOtherSource],title:"添加资源"},{default:()=>[e(Sr,{onClose:()=>u.addOtherSource=!1,onComfirm:m=>{Array.isArray(m)?m.forEach(B=>{_({...B,index:u.addOtherIndex})}):_({...m,index:u.addOtherIndex})}},null)]}),e(te,{show:o.value,"onUpdate:show":m=>o.value=m},{default:()=>[e(Or,{onClose:()=>o.value=!1,onConfirm:async()=>{try{await f()&&(t.setReadCoursewareOpenAgreement(!0),l("change",{status:!1,addParam:{isAdd:!s.groupItem.id,name:u.name,id:u.createId}}),I.emit("teacher-slideshow",!1))}catch(m){}}},null)]})]})}}),zr="_coursewarePresetsContainer_1u2we_1",Kr="_rightLineShow_1u2we_5",$r="_presetsRight_1u2we_5",Zr="_presetsLeft_1u2we_29",qr="_presetsArrar_1u2we_46",Jr="_presetsArrarActive_1u2we_68",Hr="_openLoading_1u2we_71",Qr="_coursewarePresets_1u2we_1",Yr="_btnSubjectList_1u2we_78",Xr="_addBtnIcon_1u2we_81",ei="_addBtn_1u2we_81",ti="_title_1u2we_112",ui="_titleLeft_1u2we_125",si="_icon_1u2we_129",ai="_iconWork_1u2we_135",oi="_iconCourseware_1u2we_139",ni="_line_1u2we_143",li="_more_1u2we_148",ri="_iconP_1u2we_160",ii="_swipeControll_1u2we_172",ci="_leftIcon_1u2we_175",di="_disabled_1u2we_183",pi="_list_1u2we_187",gi="_listEmpty_1u2we_195",mi="_listSame_1u2we_199",fi="_itemWrap_1u2we_203",Ci="_itemWrapBox_1u2we_206",Fi="_attendClassModal1_1u2we_212",hi="_removeVisiable1_1u2we_217",Ei="_studentRemove_1u2we_223",wi="_btnGroupModal_1u2we_234",Ai="_attendClassModal_1u2we_212",Bi="_workVisiable_1u2we_246",vi="_workContainer_1u2we_249",yi="_workTrain_1u2we_253",bi="_resourceMain_1u2we_266",$={coursewarePresetsContainer:zr,rightLineShow:Kr,presetsRight:$r,presetsLeft:Zr,presetsArrar:qr,presetsArrarActive:Jr,openLoading:Hr,coursewarePresets:Qr,btnSubjectList:Yr,addBtnIcon:Xr,addBtn:ei,title:ti,titleLeft:ui,icon:si,iconWork:ai,iconCourseware:oi,line:ni,more:li,iconP:ri,swipeControll:ii,leftIcon:ci,disabled:di,list:pi,listEmpty:gi,listSame:mi,itemWrap:fi,itemWrapBox:Ci,attendClassModal1:Fi,removeVisiable1:hi,studentRemove:Ei,btnGroupModal:wi,attendClassModal:Ai,workVisiable:Bi,workContainer:vi,workTrain:yi,resourceMain:bi},_i="_relatedClass_c6wpx_1",Si="_attendClassSearch_c6wpx_4",Ii="_iconSearch_c6wpx_20",Di="_classList_c6wpx_24",Li="_listSection_c6wpx_28",ki="_emptySection_c6wpx_32",xi="_list_c6wpx_28",ji="_listSame_c6wpx_45",Ti="_itemWrap_c6wpx_49",Vi="_itemWrapBox_c6wpx_52",we={relatedClass:_i,attendClassSearch:Si,iconSearch:Ii,classList:Di,listSection:Li,emptySection:ki,list:xi,listSame:ji,itemWrap:Ti,itemWrapBox:Vi},Ri=N({name:"related-class",props:{tableList:{type:Array,default:()=>[]},subjectList:{type:Array,default:()=>[]},subjectId:{type:[String,Number],default:""},coursewareDetailKnowledgeId:{type:[String,Number],default:""}},emits:["close","add","click"],setup(s,{emit:l}){const t=z({loading:!1,finshed:!1,pagination:{page:1,rows:20},tableList:[],searchGroup:{subjectId:s.subjectId?Number(s.subjectId):"",keyword:null}}),p=async()=>{try{t.pagination.page===1&&(t.loading=!0);const{data:u}=await cu({coursewareDetailKnowledgeId:s.coursewareDetailKnowledgeId,...t.searchGroup,...t.pagination}),n=u.rows||[],o=[];n.forEach(c=>{var i;const r=(i=c.chapterKnowledgeList[0])==null?void 0:i.chapterKnowledgeMaterialList[0];o.push({id:c.id,openFlag:c.openFlag,openFlagEnable:c.openFlagEnable,subjectNames:c.subjectNames,fromChapterLessonCoursewareId:c.fromChapterLessonCoursewareId,name:c.name,coverImg:r==null?void 0:r.bizInfo.coverImg,type:r==null?void 0:r.bizInfo.type,isAdd:c.addFlag,isNotWork:c.lessonPreTrainingNum<=0})}),t.loading=!1,t.tableList.push(...o),t.finshed=u.pages<=u.current}catch(u){t.loading=!1}},a=pt(()=>{t.pagination.page=1,t.tableList=[],p()},500);return Y(()=>{p(),I.on("openCoursewareChanged",a)}),ke(()=>{I.off("openCoursewareChanged",a)}),()=>e("div",{class:we.relatedClass},[e("div",{class:we.attendClassSearch},[e($e,{placeholder:"全部声部",clearable:!0,options:[{name:"全部声部",id:""},...s.subjectList],labelField:"name",valueField:"id",value:t.searchGroup.subjectId,"onUpdate:value":[u=>t.searchGroup.subjectId=u,()=>a()]},null),e(Ze,{placeholder:"请输入课件标题关键词",clearable:!0,value:t.searchGroup.keyword,"onUpdate:value":u=>t.searchGroup.keyword=u,onKeyup:u=>{u.code==="Enter"&&a()},onClear:()=>a()},{prefix:()=>e("span",{class:"icon-search-input",style:{cursor:"pointer"},onClick:()=>a()},null)})]),e(de,{show:t.loading,size:"small"},{default:()=>[e(fe,{class:we.classList,style:{"max-height":"60vh"},onScroll:u=>{var r,i,d;const n=(r=u.target)==null?void 0:r.clientHeight,o=(i=u.target)==null?void 0:i.scrollTop,c=(d=u.target)==null?void 0:d.scrollHeight;n+o+20>=c&&!t.finshed&&!t.loading&&a()}},{default:()=>[e("div",{style:{"min-height":"60vh)"},class:[we.listSection,!t.loading&&t.tableList.length<=0?we.emptySection:""]},[t.tableList.length>0&&e("div",{class:[we.list]},[t.tableList.map(u=>e("div",{class:[we.itemWrap,we.itemBlock,"row-nav"]},[e("div",{class:we.itemWrapBox},[e(hu,{isHoverShowAdd:!1,isShowOpenFlag:!1,isShowAdd:!0,item:u,onAdd:()=>{l("add",u)},onLook:()=>l("click",u)},null)])]))]),!t.loading&&t.tableList.length<=0&&e(pe,null,null)])]})]})])}}),Mi="_related_93qg8_1",Pi="_iconScreen_93qg8_40",Ni="_homerowkTabs_93qg8_51",nt={related:Mi,iconScreen:Pi,homerowkTabs:Ni},Wi="_searchGroup_5ue74_1",Gi="_searchSelect_5ue74_4",Oi="_inputSearch_5ue74_18",Ui="_searchBtn_5ue74_22",zi="_btnType_5ue74_28",ru={searchGroup:Wi,searchSelect:Gi,inputSearch:Oi,searchBtn:Ui,btnType:zi},Ki=N({name:"resource-search-group",emits:["search"],setup(s,{emit:l}){jt();const t=z({keyword:""}),p=()=>{l("search",t)},a=pt(()=>p(),500);return()=>e(Be,null,[e("div",{class:ru.searchGroup},[e(Ze,{type:"text",placeholder:"请输入课件标题关键词",clearable:!0,value:t.keyword,"onUpdate:value":u=>t.keyword=u,class:ru.inputSearch,onKeyup:u=>{u.code==="Enter"&&a()},onClear:()=>{t.keyword="",a()}},{prefix:()=>e("span",{class:"icon-search-input",onClick:()=>a()},null)})])])}}),$i="_listContainer_1eh3e_1",Zi="_listNoMusic_1eh3e_5",qi="_listSection_1eh3e_8",Ji="_emptySection_1eh3e_14",Hi="_list_1eh3e_1",Qi="_trainEditModal_1eh3e_28",Yi="_itemModal_1eh3e_31",Xi="_itemCover_1eh3e_36",ec="_iconLook_1eh3e_67",tc="_iconAdd_1eh3e_68",uc="_itemContent_1eh3e_94",sc="_itemTitle_1eh3e_98",ac="_itemSubject_1eh3e_108",le={listContainer:$i,listNoMusic:Zi,listSection:qi,emptySection:Ji,list:Hi,trainEditModal:Qi,itemModal:Yi,itemCover:Xi,function:"_function_1eh3e_53",iconLook:ec,iconAdd:tc,itemContent:uc,itemTitle:sc,itemSubject:ac},oc=N({name:"item-modal",props:{item:{type:Object,default:()=>({})}},emits:["look","add"],setup(s,{emit:l}){return()=>e("div",{class:le.itemModal},[e("div",{class:le.itemCover},[e(ne,{src:s.item.coverImg,objectFit:"cover",previewDisabled:!0},null),e("div",{class:le.function},[e(Ae,{showArrow:!1},{trigger:()=>e("i",{class:le.iconLook,onClick:()=>l("look")},null),default:()=>"预览课件"}),e(Ae,{showArrow:!1},{trigger:()=>e("i",{class:le.iconAdd,onClick:()=>l("add")},null),default:()=>"添加到我的课件"})])]),e("div",{class:le.itemContent},[e("p",{class:le.itemTitle,onClick:()=>l("look")},[e(It,{text:s.item.name},null)]),e("div",{class:le.itemSubject},[s.item.subjectNames])])])}}),nc=N({name:"share-resources",emits:["look","add"],setup(s,{emit:l}){const t=ve(),p=z({loading:!1,finshed:!1,pagination:{page:1,rows:10},searchGroup:{keyword:""},tableList:[],editStatus:!1,editItem:{},show:!1,item:{}}),a=async()=>{try{if(!t.getSelectKey)return;p.pagination.page===1&&(p.loading=!0);const{data:c}=await cu({subjectId:t.getSubjectId,coursewareDetailKnowledgeId:t.getSelectKey,...p.searchGroup,...p.pagination});p.pagination.page===1&&p.tableList.length>0&&(p.tableList=[]);const r=c.rows||[],i=[];r.forEach(d=>{var h;const F=(h=d.chapterKnowledgeList[0])==null?void 0:h.chapterKnowledgeMaterialList[0];i.push({id:d.id,openFlag:d.openFlag,openFlagEnable:d.openFlagEnable,subjectNames:d.subjectNames,fromChapterLessonCoursewareId:d.fromChapterLessonCoursewareId,name:d.name,coverImg:F==null?void 0:F.bizInfo.coverImg,type:F==null?void 0:F.bizInfo.type,isAdd:d.addFlag})}),p.loading=!1,p.tableList.push(...i),p.finshed=c.pages<=c.current}catch(c){p.loading=!1}},u=async c=>{p.pagination.page=1,p.tableList=[],p.searchGroup=Object.assign(p.searchGroup,c),a()},n=pt(()=>{p.pagination.page=p.pagination.page+1,a()},500),o=()=>{u(p.searchGroup)};return Y(()=>{a(),I.on("openCoursewareChanged",o)}),ke(()=>{I.off("openCoursewareChanged",o)}),()=>e("div",null,[e(Ki,{onSearch:c=>u(c)},null),e(fe,{class:[le.listContainer,le.listNoMusic],onScroll:c=>{var F,h,_;const r=(F=c.target)==null?void 0:F.clientHeight,i=(h=c.target)==null?void 0:h.scrollTop,d=(_=c.target)==null?void 0:_.scrollHeight;r+i+20>=d&&!p.finshed&&!p.loading&&n()}},{default:()=>[e(de,{show:p.loading,size:"small"},{default:()=>[e("div",{class:[le.listSection,!p.loading&&p.tableList.length<=0?le.emptySection:""]},[p.tableList.length>0&&e("div",{class:le.list},[p.tableList.map(c=>e(oc,{item:c,onAdd:()=>l("add",c),onLook:()=>l("look",c)},null))]),!p.loading&&p.tableList.length<=0&&e(pe,null,null)])]})]})])}}),lc=N({name:"related-modal",emits:["more","add","look"],setup(s,{emit:l}){return()=>e("div",{class:nt.related},[e(qe,{animated:!0,paneClass:nt.paneTitle,paneWrapperClass:nt.paneWrapperContainer,justifyContent:"center"},{suffix:()=>e("div",{class:nt.iconScreen,onClick:()=>{l("more")}},[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e("g",{fill:"none"},[e("path",{d:"M5 6a1 1 0 0 1 1-1h2a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v2a1 1 0 0 0 2 0V6zm0 12a1 1 0 0 0 1 1h2a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3v-2a1 1 0 1 1 2 0v2zM18 5a1 1 0 0 1 1 1v2a1 1 0 1 0 2 0V6a3 3 0 0 0-3-3h-2a1 1 0 1 0 0 2h2zm1 13a1 1 0 0 1-1 1h-2a1 1 0 1 0 0 2h2a3 3 0 0 0 3-3v-2a1 1 0 1 0-2 0v2z",fill:"#198CFE"},null)])])]),default:()=>e(Be,null,[e(Je,{name:"myMusic",tab:"相关课件"},{default:()=>[e(nc,{onAdd:t=>l("add",t),onLook:t=>l("look",t)},null)]})])})])}}),rc=N({name:"courseware-presets",props:{addParam:{type:Object,default:()=>({})}},emits:["change"],setup(s,{emit:l}){const t=ve(),p=ct(),a=fu(),u=Ne(),n=localStorage.getItem("prepareLessonSubjectId"),o=z({leftWidth:"100%",rightWidth:"0",messageLoading:!1,subjectId:a.query.subjectId?Number(a.query.subjectId):n?Number(n):"",courseScheduleSubjectId:a.query.courseScheduleSubjectId,classGroupId:a.query.classGroupId,preStudentNum:a.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:"",subjectId:"",detailId:""},workVisiable:!1}),c=async()=>{o.loading=!0;try{if(!t.getSelectKey)return o.loading=!1;const{data:E}=await Hu({subjectId:t.getSubjectId,coursewareDetailKnowledgeId:t.getSelectKey});if(!Array.isArray(E))return;const f=[];E.forEach(v=>{var S;const k=(S=v.chapterKnowledgeList[0])==null?void 0:S.chapterKnowledgeMaterialList[0];f.push({id:v.id,lessonPreTrainingId:v.lessonPreTrainingId,openFlag:v.openFlag,openFlagEnable:v.openFlagEnable,subjectNames:v.subjectNames,fromChapterLessonCoursewareId:v.fromChapterLessonCoursewareId,name:v.name,coverImg:k==null?void 0:k.bizInfo.coverImg,type:k==null?void 0:k.bizInfo.type,isNotWork:v.lessonPreTrainingNum<=0})}),o.tableList=f}catch(E){}o.loading=!1};De(()=>[t.getSelectKey,t.getSubjectId],async()=>{var E;I.emit("openCoursewareChanged"),await c(),(E=i.value)==null||E.syncBarPosition()}),De(()=>t.getSubjectList,()=>{r()});const r=()=>{var f;const E=t.getSubjectList;if(E.length>0){if(sessionStorage.getItem("prepareLessonCourseWareSubjectIsNull")==="true"){t.setSubjectId("");return}const k=localStorage.getItem("prepareLessonSubjectId");let S=null,ae=-1;o.courseScheduleSubjectId&&(ae=E.findIndex(m=>m.id==o.courseScheduleSubjectId),ae>=0&&(S=Number(o.courseScheduleSubjectId))),o.subjectId&&!S&&(ae=E.findIndex(m=>m.id==o.subjectId),ae>=0&&(S=Number(o.subjectId))),k&&!S&&(ae=E.findIndex(m=>m.id==k),ae>=0&&(S=Number(k))),S&&ae>=0&&t.setSubjectId(S),localStorage.setItem("prepareLessonSubjectId",t.getSubjectId),(f=i.value)==null||f.syncBarPosition()}},i=P();Y(async()=>{Lt(document.querySelector("#presetsLeftRef"),E=>{const f=E[0],{width:v}=f.contentRect;o.leftWidth=v+"px"}),Lt(document.querySelector("#presetsRightRef"),E=>{const f=E[0],{width:v}=f.contentRect;o.rightWidth=v+"px"}),t.setClassGroupId(a.query.classGroupId),t.getSubjectId||r(),await c(),s.addParam.isAdd&&(o.addVisiable=!0)});const d=async()=>{o.messageLoading=!0;try{await Qu({id:o.selectItem.id}),p.success("删除成功"),c(),I.emit("openCoursewareChanged"),o.preRemoveVisiable=!1}catch(E){}setTimeout(()=>{o.messageLoading=!1},100)},F=async E=>{if(!o.messageLoading){o.messageLoading=!0;try{await Yu({id:E.id}),p.success("添加成功"),c(),I.emit("openCoursewareChanged")}catch(f){}setTimeout(()=>{o.messageLoading=!1},100)}},h=E=>{if(window.matchMedia("(display-mode: standalone)").matches)vt.application=window.matchMedia("(display-mode: standalone)").matches,o.previewModal=!0,Qt(),o.previewParams={type:"preview",courseId:E,subjectId:t.getSubjectId,detailId:t.getSelectKey,lessonCourseId:t.getBaseCourseware.id};else{const{href:f}=u.resolve({path:"/attend-class",query:{type:"preview",courseId:E,subjectId:t.getSubjectId,detailId:t.getSelectKey,lessonCourseId:t.getBaseCourseware.id}});window.open(f,+new Date+"")}},_=async(E,f,v)=>{if(f){const k=await Xu({lessonCoursewareKnowledgeDetailId:t.selectKey,classGroupId:f,useChapterLessonCoursewareId:E.id});if(window.matchMedia("(display-mode: standalone)").matches)vt.application=window.matchMedia("(display-mode: standalone)").matches,o.previewModal=!0,Qt(),o.previewParams={type:"class",classGroupId:f,courseId:E.id,subjectId:v||a.query.subjectId,detailId:t.getSelectKey,classId:k.data,lessonCourseId:t.getBaseCourseware.id,preStudentNum:o.preStudentNum};else{const{href:S}=u.resolve({path:"/attend-class",query:{type:"class",classGroupId:f,courseId:E.id,subjectId:t.getSubjectId,detailId:t.getSelectKey,classId:k.data,lessonCourseId:t.getBaseCourseware.id,preStudentNum:o.preStudentNum}});window.open(S,+new Date+"")}}else o.showAttendClass=!0,o.attendClassType="change",o.attendClassItem=E};return()=>{var E;return e("div",{class:[$.coursewarePresetsContainer,o.openTableShow&&$.rightLineShow]},[e("div",{class:$.presetsLeft,id:"presetsLeftRef",style:{width:"calc(".concat(o.leftWidth," - ").concat(o.rightWidth,")")}},[e(qe,{ref:i,defaultValue:"",paneClass:$.paneTitle,justifyContent:"start",paneWrapperClass:$.paneWrapperContainer,value:t.getSubjectId?(E=t.getSubjectId)==null?void 0:E.toString():"","onUpdate:value":f=>{t.setSubjectId(f),o.subjectId=f,f||sessionStorage.setItem("prepareLessonCourseWareSubjectIsNull",f?"false":"true")}},{default:()=>[[{name:"全部声部",id:""},...t.getSubjectList].map(f=>e(Je,{name:"".concat(f.id),tab:f.name,displayDirective:"if"},null))],suffix:()=>e(M,{class:$.addBtn,type:"primary",bordered:!1,onClick:()=>{I.emit("teacher-slideshow",!0),l("change",{status:!0,type:"create"})}},{default:()=>[e(ne,{class:$.addBtnIcon,previewDisabled:!0,src:Js},null),C("创建课件")]})}),e(de,{show:o.loading},{default:()=>[e(fe,{class:$.coursewarePresets},{default:()=>[e("div",{style:{overflow:"hidden"}},[e("div",{class:[$.list,!o.loading&&o.tableList.length<=0&&$.listEmpty]},[o.tableList.map(f=>e("div",{class:[$.itemWrap,$.itemBlock,"row-nav"]},[e("div",{class:$.itemWrapBox},[e(hu,{operate:!0,isEditName:!0,item:f,onClick:()=>h(f.id),onEdit:()=>{I.emit("teacher-slideshow",!0),l("change",{status:!0,type:"update",groupItem:{id:f.id}})},onStartClass:()=>_(f,o.classGroupId),onDelete:()=>{o.selectItem=f,o.preRemoveVisiable=!0},onWork:()=>{o.workVisiable=!0,o.selectItem=f}},null)])])),!o.loading&&o.tableList.length<=0&&e(pe,{class:$.empty1,description:"当前章节暂无课件,快点击右上角创建课件吧"},null)])])]})]})]),e("div",{class:$.presetsRight,id:"presetsRightRef"},[e(Ae,{showArrow:!1,animated:!1,duration:0,delay:0},{trigger:()=>e("div",{class:[$.presetsArrar,!o.openTableShow&&$.presetsArrarActive],onClick:()=>o.openTableShow=!o.openTableShow},[e(Cu,null,{default:()=>[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e("path",{d:"M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z",fill:"currentColor"},null)])]})]),default:()=>e("div",null,[o.openTableShow?"收起":"展开"])}),e(lc,{onMore:()=>o.showRelatedClass=!0,onAdd:f=>{F(f)},onLook:f=>{h(f.id)}},null)]),e(te,{show:o.showRelatedClass,"onUpdate:show":f=>o.showRelatedClass=f,preset:"card",showIcon:!1,class:["modalTitle background",$.attendClassModal1],title:"相关课件",blockScroll:!1},{default:()=>[e(Ri,{tableList:o.tableList,subjectList:t.getSubjectList,subjectId:t.getSubjectId,coursewareDetailKnowledgeId:t.getSelectKey,onClose:()=>o.showRelatedClass=!1,onAdd:f=>F(f),onClick:f=>{h(f.id),o.showRelatedClass=!1}},null)]}),e(te,{show:o.preRemoveVisiable,"onUpdate:show":f=>o.preRemoveVisiable=f,preset:"card",class:["modalTitle",$.removeVisiable1],title:"删除课件"},{default:()=>[e(Dt,{content:'<p style="text-align: left;">请确认是否删除【'.concat(o.selectItem.name,"】,删除后不可恢复</p>"),cancelButtonText:"取消",confirmButtonText:"确认",loading:o.messageLoading,onClose:()=>o.preRemoveVisiable=!1,onConfirm:()=>d()},null)]}),e(te,{show:o.addVisiable,"onUpdate:show":f=>o.addVisiable=f,preset:"card",class:["modalTitle",$.removeVisiable1],title:"保存成功"},{default:()=>[e(Dt,{content:'<p style="text-align: left;">【'.concat(s.addParam.name,"】暂未设置课件作业,是否现在去设置课件作业</p>"),cancelButtonText:"稍后设置",confirmButtonText:"立即设置",onClose:()=>o.addVisiable=!1,onConfirm:()=>{o.addVisiable=!1,o.workVisiable=!0,o.selectItem={id:s.addParam.id,name:s.addParam.name}}},null)]}),e(wu,{show:o.previewModal,"onUpdate:show":f=>o.previewModal=f,type:"attend",params:o.previewParams},null),e(te,{show:o.showAttendClass,"onUpdate:show":f=>o.showAttendClass=f,preset:"card",showIcon:!1,class:["modalTitle background",$.attendClassModal],title:"选择班级",blockScroll:!1},{default:()=>[e(Hs,{onClose:()=>o.showAttendClass=!1,type:o.attendClassType,onPreview:f=>{if(window.matchMedia("(display-mode: standalone)").matches)vt.application=window.matchMedia("(display-mode: standalone)").matches,o.previewModal=!0,o.previewParams={...f};else{const{href:v}=u.resolve({path:"/attend-class",query:{...f}});window.open(v,+new Date+"")}},onConfirm:async f=>{_(o.attendClassItem,f.classGroupId,f.subjectId)}},null)]}),e(te,{show:o.workVisiable,"onUpdate:show":f=>o.workVisiable=f,preset:"card",class:["modalTitle background",$.workVisiable],title:o.selectItem.lessonPreTrainingId?"编辑作业":"创建作业"},{default:()=>[e("div",{id:"model-homework-height",class:$.workContainer},[e("div",{class:$.workTrain},[e(Rs,{cardType:"prepare",lessonPreTraining:{title:o.selectItem.name+"-课后作业",chapterId:o.selectItem.id,id:o.selectItem.lessonPreTrainingId},onChange:f=>{o.workVisiable=f.status,c()}},null)]),e("div",{class:$.resourceMain},[e(Eu,{cardType:"prepare"},null)])])]})])}}}),ic="_headerTitle_1prp1_1",cc="_iconBook_1prp1_12",dc="_formContainer_1prp1_29",pc="_btnSubjectList_1prp1_32",gc="_btnItem_1prp1_55",mc="_block_1prp1_61",fc="_btnTitle_1prp1_65",Cc="_iconQuestion_1prp1_78",oe={headerTitle:ic,iconBook:cc,formContainer:dc,btnSubjectList:pc,btnItem:gc,block:mc,btnTitle:fc,iconQuestion:Cc},Fc=N({name:"courseware-head",setup(s,{emit:l,expose:t}){const p=ve(),a=P(["",""]),u=z({subjects:[],openFlagEnable:!0,autoPlay:!0,name:"",openFlag:!1}),n=i=>{u.subjects=i.map(d=>d.id)},o=()=>u,c=i=>{u.subjects=i.subjects,u.openFlagEnable=i.openFlagEnable,u.autoPlay=i.autoPlay,u.name=i.name,u.openFlag=i.openFlag},r=()=>{var i;a.value[0]=u.name?"":"error",a.value[1]=((i=u.subjects)==null?void 0:i.length)>0?"":"error"};return Y(()=>{I.on("updateCoursewareHeadInfo",c),I.on("checkCoursewareForm",r)}),t({getForms:o}),()=>e(Be,null,[e("div",{class:oe.headerTitle},[e("i",{class:oe.iconBook},null),e("span",null,[p.getSelectName])]),e("div",{class:oe.formContainer},[e("div",{class:[oe.btnItem,oe.block]},[e("span",{class:[oe.btnTitle]},[e("span",null,[C("*")]),C("课件标题")]),e(Ze,{placeholder:"请输入课件标题",value:u.name,"onUpdate:value":[i=>u.name=i,()=>{a.value[0]=u.name?"":"error"}],maxlength:20,clearable:!0,status:a.value[0]},null)]),e("div",{class:[oe.btnItem,oe.block]},[e("span",{class:[oe.btnTitle]},[e("span",null,[C("*")]),C("课件声部")]),e($e,{status:a.value[1],placeholder:"请选择声部(可多选)",class:oe.btnSubjectList,options:p.getSubjectList,labelField:"name",valueField:"id",multiple:!0,maxTagCount:2,size:"small",value:u.subjects,"onUpdate:value":[i=>u.subjects=i,()=>{var i;a.value[1]=((i=u.subjects)==null?void 0:i.length)>0?"":"error"}],clearable:!0},{action:()=>e(Be,null,[e(M,{text:!0,style:" --n-width: 100% ",size:"small",onClick:()=>n(p.getSubjectList)},{default:()=>[C("全选")]})])})]),e("div",{class:oe.btnItem},[e("span",{class:oe.btnTitle},[C("自动播放"),e(Ae,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:oe.iconQuestion},null),default:()=>"开启自动播放后,课件内视频、音频资源将自动播放"})]),e(Bt,{value:u.autoPlay,"onUpdate:value":i=>u.autoPlay=i},null)]),e("div",{class:oe.btnItem},[e("span",{class:oe.btnTitle},[C("公开课件"),e(Ae,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:oe.iconQuestion},null),default:()=>"公开课件后,其它老师可以使用该课件上课"})]),u.openFlagEnable?e(Bt,{value:u.openFlag,"onUpdate:value":i=>u.openFlag=i,disabled:!u.openFlagEnable},null):e(Ae,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e(Bt,{value:u.openFlag,"onUpdate:value":i=>u.openFlag=i,disabled:!u.openFlagEnable},null),default:()=>"为尊重课件原作者,在“相关课件”中添加的课件不支持公开"})])])])}}),hc=N({name:"lesson-main",setup(){const s=ve(),l=z({editCoursewareShow:!1,coursewareType:"create",addParam:{isAdd:!1,id:null,addName:""},editCourseware:{},editWork:{}}),t=P(),p=()=>{var u;I.emit("coursewareClosed",(u=t.value)==null?void 0:u.getForms())},a=()=>{var u;I.emit("coursewareSave",(u=t.value)==null?void 0:u.getForms())};return()=>e("div",{class:[l.editCoursewareShow&&ot.coursewareSection],style:{height:"100%"}},[l.editCoursewareShow&&e("div",{class:ot.coursewareHeader},[e(Fc,{ref:t},null)]),e("div",{class:ot["lesson-main"]},[l.editCoursewareShow?e(Ur,{groupItem:l.editCourseware,onChange:u=>{u.addParam&&(l.addParam=u.addParam),l.editCoursewareShow=u.status,s.setIsEditResource(u.status),u.status||I.emit("teacher-slideshow",!1)}},null):e(rc,{addParam:l.addParam,onChange:u=>{l.coursewareType=u.type,l.editCoursewareShow=u.status,s.setIsEditResource(u.status),l.editCourseware=u.groupItem,l.addParam={isAdd:!1,id:null,addName:""}}},null)]),l.editCoursewareShow&&e("div",{class:ot.coursewareFooter},[e(ue,null,{default:()=>[e(M,{bordered:!1,type:"error",onClick:p},{default:()=>[C("取消")]}),e(M,{type:"primary",onClick:a},{default:()=>[C("保存课件")]})]})])])}}),Ec=N({name:"lessons-guide",emits:["close"],setup(s,{emit:l}){const t=z({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:Ke("lessons1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:O(-4),left:O(-50),width:O(420),height:O(228)},btnsStyle:{bottom:O(35),left:O(111)},eleRectPadding:{left:7,top:7,width:14,height:14}},{ele:"",img:Ke("lessons2.png"),imgStyle:{left:O(-647),width:O(647),height:O(223)},btnsStyle:{bottom:"30px",left:O(-488)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"left"},{ele:"",img:Ke("lessons3.png"),imgStyle:{top:O(-4),left:O(-471),width:O(471),height:O(223)},btnsStyle:{bottom:O(20),left:O(-310)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"left"},{ele:"",img:Ke("lessons4.png"),imgStyle:{top:O(-355),left:O(-185),width:O(515),height:O(302)},btnsStyle:{top:O(-205),left:O(-22)},eleRectPadding:{left:7,top:7,width:14,height:14}},{ele:"",img:Ke("lessons5.png"),imgStyle:{top:O(-4),left:O(-290),width:O(648),height:O(228)},btnsStyle:{bottom:O(30),left:O(-127)},eleRectPadding:{left:7,top:7,width:14,height:14}}],step:0}),p=P(!1),a=P({});(async()=>{var d;try{const F=await Qs({guideTag:"teacher-guideInfo"});F.data?a.value=JSON.parse((d=F.data)==null?void 0:d.guideValue)||null:a.value={},a.value&&a.value.lessonsGuide?p.value=!1:p.value=!0}catch(F){console.log(F)}})();const n=()=>{var F,h,_,E;const d=document.getElementById("lessons-".concat(t.step));if(d){const f=d.getBoundingClientRect(),v=((F=t.steps[t.step].eleRectPadding)==null?void 0:F.left)||0,k=((h=t.steps[t.step].eleRectPadding)==null?void 0:h.top)||0,S=((_=t.steps[t.step].eleRectPadding)==null?void 0:_.width)||0,ae=((E=t.steps[t.step].eleRectPadding)==null?void 0:E.height)||0;t.box={left:f.x-v+"px",top:f.y-k+"px",width:f.width+S+"px",height:f.height+ae+"px"}}else r()},o=async d=>{try{if(d!=="courseware")return;a.value?a.value.lessonsGuide=!1:a.value={lessonsGuide:!1};try{await kt({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(a.value)})}catch(F){console.log(F)}t.step=0,n(),p.value=!0}catch(F){}};Y(()=>{n(),window.addEventListener("resize",c),I.on("prepare-lessons-guide",d=>o(d))});const c=()=>{n()};ke(()=>{window.removeEventListener("resize",c),I.off("prepare-lessons-guide",o)});const r=()=>{if(t.step>=4){i();return}t.step=t.step+1,n()},i=async()=>{a.value?a.value.lessonsGuide=!0:a.value={lessonsGuide:!0};try{const d=await kt({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(a.value)})}catch(d){console.log(d)}p.value=!1};return()=>e(Be,null,[p.value?mu(e("div",{"onUpdate:show":d=>p.value=d,class:["n-modal-mask","n-modal-mask-guide"]},[e("div",{class:Ee.content,onClick:()=>r()},[e("div",{class:Ee.backBtn,onClick:d=>{d.stopPropagation(),i()}},[C("跳过")]),e("div",{class:Ee.box,style:{...t.box},id:"modeType-".concat(t.step)},[t.steps.map((d,F)=>{var h,_,E,f,v,k;return e("div",{onClick:S=>S.stopPropagation(),class:Ee.item,style:d.type=="bottom"?{display:F===t.step?"":"none",left:"".concat((h=d.eleRect)==null?void 0:h.left,"px"),top:"-".concat((_=d.imgStyle)==null?void 0:_.height)}:d.type=="left"?{display:F===t.step?"":"none",top:"".concat(parseFloat((E=t.box)==null?void 0:E.height)/2-parseFloat((f=d.imgStyle)==null?void 0:f.height)*1920/100/2-14,"px")}:{display:F===t.step?"":"none",left:"".concat((v=d.eleRect)==null?void 0:v.left,"px"),top:"".concat((k=t.box)==null?void 0:k.height)}},[e("img",{class:Ee.img,style:d.imgStyle,src:d.img},null),e("div",{class:Ee.btns,style:d.btnsStyle},[t.step+1==t.steps.length?e(Be,null,[e("div",{class:[Ee.endBtn],onClick:()=>i()},[C("完成")]),e("div",{class:Ee.nextBtn,onClick:()=>{t.step=0,n()}},[C("再看一遍")])]):e("div",{class:Ee.btn,onClick:()=>r()},[C("下一步 ("),t.step+1,C("/"),t.steps.length,C(")")])])])})])])]),[[ks,p.value,"show"]]):null])}}),nd=N({name:"prepare-lessons",setup(){const s=z({sidebarShow:!1}),l=ve(),t=P(),{treeList:p,coursewareList:a}=xs(l),u=W(()=>p.value.length>0&&a.value.length>0&&n.value),n=P(!1),o=P(),c=async i=>{if(i==="prepare-lessons"){if(l.getTabType==="courseware")try{await kt({guideTag:"teacher-guideInfo",guideValue:JSON.stringify({lessonsGuide:!1})})}catch(d){console.log(d)}I.emit("prepare-lessons-guide",l.getTabType)}},r=i=>{var d;console.log(i,"val"),s.sidebarShow=i,(d=t.value)==null||d.resetTabPosition()};return Y(()=>{I.on("teacher-guideInfo",async i=>c(i)),I.on("teacher-slideshow",r)}),ke(()=>{I.off("teacher-guideInfo",c),I.off("teacher-slideshow",r)}),Y(()=>{Lt(document.querySelector("#lessons-height"),i=>{const d=i[0],{height:F}=d.contentRect;document.documentElement.style.setProperty("--window-page-lesson-height",F+"px")}),setTimeout(()=>{n.value=!0},300)}),js(()=>{l.setTabType("courseware"),l.setSelectMusicStatus(!1),l.setSelectResourceStatus(!1),l.setIsAddResource(!1),l.setIsAddTrain(!1),l.setIsEditResource(!1),l.setIsEditTrain(!1),sessionStorage.removeItem("prepareLessonCourseWareSubjectIsNull")}),ke(()=>{l.setSubjectId("")}),()=>e("div",{class:[Me.prepareLessons,s.sidebarShow?Me.showSideBar:Me.hideSideBar],id:"lessons-height"},[e("div",{class:Me.directoryMain,ref:o.value},[e(go,null,null)]),e("div",{class:Me.lessonMain},[e(hc,null,null)]),e("div",{class:[Me.resourceMain],id:"lessons-1"},[s.sidebarShow&&e(Eu,{ref:t},null)]),u.value?e(Ec,null,null):null])}});export{nd as default};