index-b912b335-1734950731618.js 158 KB

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