1 |
- import{l as Cu,a as $u,b as Qu,c as Ju,t as Yu,d as Xu,C as Zu,e as eu,f as es,g as ts,h as hu,i as us,j as ss,k as as,m as os,n as ns}from"./api-437da0ca-1731319840132.js";import{A as ls}from"./index-c751c2b4-1731319840132.js";import{u as ot,d as Mt}from"./catchData-21a2ae20-1731319840132.js";import{a2 as rs,a3 as is,a4 as cs,a5 as ds,a6 as Fu,a7 as ps,a8 as ms,a9 as gs,aa as fs,d as G,ab as Et,r as W,ac as Cs,ad as ae,ae as hs,U as $,q as se,p as Eu,af as Fs,ag as V,ah as ye,ai as U,aj as tu,ak as Es,al as ws,am as As,an as vs,A as Ue,ao as wu,ap as Bs,aq as ys,ar as uu,as as su,a0 as Wt,at as bs,_ as _s,au as Ss,av as Is,aw as ut,S as xe,ax as st,o as Ds,b as wt,e as J,f as e,N as Au,g as at,x as ee,ay as Ut,E as we,w as ge,F as Ae,l as oe,m as ne,k as F,j as K,D as Te,$ as pe,C as x,T as je,a1 as vu,a as Bu,c as Gt,V as Se,X as yu,az as au,aA as bu,aB as ks,aC as Ls,n as Nt,G as xs,u as Qe,t as Je,v as Ye,P as At,y as Ts,h as vt,z as xt,aD as ou,aE as Tt,aF as Rs}from"./index-6198d9d3-1731319840132.js";import{a as Bt}from"./index-2b1ee5b2-1731319840132.js";import{N as be}from"./Scrollbar-924d915b-1731319840132.js";import{T as ve}from"./index-eedcb178-1731319840132.js";import{u as Re,i as js}from"./index-d75c8f1f-1731319840132.js";import{g as Ot,s as ce}from"./index-db345329-1731319840132.js";import{s as Ft}from"./api-5a9c06c7-1731319840132.js";import{D as Ps,C as _u,b as Ms,R as Su}from"./index-4c26192f-1731319840132.js";import{C as yt,s as T}from"./index-d85dbeb3-1731319840132.js";import{P as Iu}from"./index-14e1a7d9-1731319840132.js";import{T as Ct}from"./index-07cf98b5-1731319840132.js";import{T as zt}from"./index-a0e01182-1731319840132.js";import{b as Du}from"./browser-504037ee-1731319840132.js";import{a as Kt,b as qt,c as Ns,d as Os}from"./api-70d4d585-1731319840132.js";import{u as Vs,i as Ws,a as Us,b as Gs}from"./useSpeak-f6847790-1731319840132.js";import{N as zs}from"./Slider-25b157fd-1731319840132.js";import{i as Ks}from"./icon_default-d1bcaf5f-1731319840132.js";import{i as qs}from"./icon-select-23609858-1731319840132.js";import{U as Hs,S as $s,f as Qs}from"./index-32ba4599-1731319840132.js";import{a as Js}from"./add-efe8238e-1731319840132.js";import{N as ku}from"./Cascader-6acdac20-1731319840132.js";import{u as Vt}from"./index-b8f8a6a8-1731319840132.js";import{A as Ys}from"./index-43a4da15-1731319840132.js";import{T as Xs}from"./index-114185ea-1731319840132.js";import"./index-2b83373a-1731319840132.js";import"./urlUtils-72ef455d-1731319840132.js";import"./ding-8e9054d5-1731319840132.js";import"./searchArray-3567ea02-1731319840132.js";import"./contants-333a16ae-1731319840132.js";import"./api-7fc192d9-1731319840132.js";import"./api-e20c9545-1731319840132.js";import"./teacherIcon-b8e3946d-1731319840132.js";import"./index-1c1bf5e5-1731319840132.js";import"./api-de5ca66f-1731319840132.js";import"./index-7d1e9be5-1731319840132.js";import"./icon-pan-16e35a82-1731319840132.js";import"./updateSubject-57a4757b-1731319840132.js";import"./index.module-f5d3eb8e-1731319840132.js";function Zs(n){return rs(is(n).toLowerCase())}var ea=cs(function(n,i,t){return i=i.toLowerCase(),n+(t?Zs(i):i)});const nu=ea,ta=n=>({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"}),ua={name:"Carousel",common:ds,self:ta},sa=ua;function aa(n){const{length:i}=n;return i>1&&(n.push(lu(n[0],0,"append")),n.unshift(lu(n[i-1],i-1,"prepend"))),n}function lu(n,i,t){return Fu(n,{key:"carousel-item-duplicate-".concat(i,"-").concat(t)})}function ru(n,i,t){return i===1?0:t?n===0?i-3:n===i-1?0:n-1:n}function Rt(n,i){return i?n+1:n}function oa(n,i,t){return n<0?null:n===0?t?i-1:null:n-1}function na(n,i,t){return n>i-1?null:n===i-1?t?0:null:n+1}function la(n,i){return i&&n>3?n-2:n}function iu(n){return window.TouchEvent&&n instanceof window.TouchEvent}function cu(n,i){let{offsetWidth:t,offsetHeight:p}=n;if(i){const o=getComputedStyle(n);t=t-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),p=p-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:t,height:p}}function mt(n,i,t){return n<i?i:n>t?t:n}function ra(n){if(n===void 0)return 0;if(typeof n=="number")return n;const i=/^((\d+)?\.?\d+?)(ms|s)?$/,t=n.match(i);if(t){const[,p,,o="ms"]=t;return Number(p)*(o==="ms"?1:1e3)}return 0}const Lu=fs("n-carousel-methods"),ia=n=>{ps(Lu,n)},Ht=(n="unknown",i="component")=>{const t=ms(Lu);return t||gs(n,"`".concat(i,"` must be placed inside `n-carousel`.")),t},ca={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},da=G({name:"CarouselDots",props:ca,setup(n){const{mergedClsPrefixRef:i}=Et(n),t=W([]),p=Ht();function o(d,E){switch(d.key){case"Enter":case" ":d.preventDefault(),p.to(E);return}n.keyboard&&s(d)}function u(d){n.trigger==="hover"&&p.to(d)}function a(d){n.trigger==="click"&&p.to(d)}function s(d){var E;if(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)return;const r=(E=document.activeElement)===null||E===void 0?void 0:E.nodeName.toLowerCase();if(r==="input"||r==="textarea")return;const{code:l}=d,h=l==="PageUp"||l==="ArrowUp",w=l==="PageDown"||l==="ArrowDown",f=l==="PageUp"||l==="ArrowRight",B=l==="PageDown"||l==="ArrowLeft",v=p.isVertical(),D=v?h:f,R=v?w:B;!D&&!R||(d.preventDefault(),D&&!p.isNextDisabled()?(p.next(),c(p.currentIndexRef.value)):R&&!p.isPrevDisabled()&&(p.prev(),c(p.currentIndexRef.value)))}function c(d){var E;(E=t.value[d])===null||E===void 0||E.focus()}return Cs(()=>t.value.length=0),{mergedClsPrefix:i,dotEls:t,handleKeydown:o,handleMouseenter:u,handleClick:a}},render(){const{mergedClsPrefix:n,dotEls:i}=this;return ae("div",{class:["".concat(n,"-carousel__dots"),"".concat(n,"-carousel__dots--").concat(this.dotType)],role:"tablist"},hs(this.total,t=>{const p=t===this.currentIndex;return ae("div",{"aria-selected":p,ref:o=>i.push(o),role:"button",tabindex:"0",class:["".concat(n,"-carousel__dot"),p&&"".concat(n,"-carousel__dot--active")],key:t,onClick:()=>{this.handleClick(t)},onMouseenter:()=>{this.handleMouseenter(t)},onKeydown:o=>{this.handleKeydown(o,t)}})}))}}),pa=ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},ae("g",{fill:"none"},ae("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"}))),ma=ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},ae("g",{fill:"none"},ae("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),ga=G({name:"CarouselArrow",setup(n){const{mergedClsPrefixRef:i}=Et(n),{isVertical:t,isPrevDisabled:p,isNextDisabled:o,prev:u,next:a}=Ht();return{mergedClsPrefix:i,isVertical:t,isPrevDisabled:p,isNextDisabled:o,prev:u,next:a}},render(){const{mergedClsPrefix:n}=this;return ae("div",{class:"".concat(n,"-carousel__arrow-group")},ae("div",{class:["".concat(n,"-carousel__arrow"),this.isPrevDisabled()&&"".concat(n,"-carousel__arrow--disabled")],role:"button",onClick:this.prev},pa),ae("div",{class:["".concat(n,"-carousel__arrow"),this.isNextDisabled()&&"".concat(n,"-carousel__arrow--disabled")],role:"button",onClick:this.next},ma))}}),ht="CarouselItem",fa=n=>{var i;return((i=n.type)===null||i===void 0?void 0:i.name)===ht},bt=G({name:ht,setup(n){const{mergedClsPrefixRef:i}=Et(n),t=Ht(nu(ht),"n-".concat(nu(ht))),p=W(),o=$(()=>{const{value:E}=p;return E?t.getSlideIndex(E):-1}),u=$(()=>t.isPrev(o.value)),a=$(()=>t.isNext(o.value)),s=$(()=>t.isActive(o.value)),c=$(()=>t.getSlideStyle(o.value));se(()=>{t.addSlide(p.value)}),Eu(()=>{t.removeSlide(p.value)});function d(E){const{value:r}=o;r!==void 0&&(t==null||t.onCarouselItemClick(r,E))}return{mergedClsPrefix:i,selfElRef:p,isPrev:u,isNext:a,isActive:s,index:o,style:c,handleClick:d}},render(){var n;const{$slots:i,mergedClsPrefix:t,isPrev:p,isNext:o,isActive:u,index:a,style:s}=this,c=["".concat(t,"-carousel__slide"),{["".concat(t,"-carousel__slide--current")]:u,["".concat(t,"-carousel__slide--prev")]:p,["".concat(t,"-carousel__slide--next")]:o}];return ae("div",{ref:"selfElRef",class:c,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!u,style:s,onClickCapture:this.handleClick},(n=i.default)===null||n===void 0?void 0:n.call(i,{isPrev:p,isNext:o,isActive:u,index:a}))}}),Ca=Fs("carousel","\n position: relative;\n width: 100%;\n height: 100%;\n touch-action: pan-y;\n overflow: hidden;\n",[V("slides","\n display: flex;\n width: 100%;\n height: 100%;\n transition-timing-function: var(--n-bezier);\n transition-property: transform;\n ",[V("slide","\n flex-shrink: 0;\n position: relative;\n width: 100%;\n height: 100%;\n outline: none;\n overflow: hidden;\n ",[ye("> img","\n display: block;\n ")])]),V("dots","\n position: absolute;\n display: flex;\n flex-wrap: nowrap;\n ",[U("dot",[V("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 ",[ye("&:focus","\n background-color: var(--n-dot-color-focus);\n "),U("active","\n background-color: var(--n-dot-color-active);\n ")])]),U("line",[V("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 ",[ye("&: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 ")])])]),V("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 ",[ye("svg","\n height: 1em;\n width: 1em;\n "),ye("&:hover","\n background-color: rgba(255, 255, 255, .3);\n ")]),U("vertical","\n touch-action: pan-x;\n ",[V("slides","\n flex-direction: column;\n "),U("fade",[V("slide","\n top: 50%;\n left: unset;\n transform: translateY(-50%);\n ")]),U("card",[V("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",[V("slides",[ye(">",[ye("div","\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 100%;\n transform: translate(-50%, -50%);\n ")])])]),U("left",[V("dots","\n transform: translateY(-50%);\n top: 50%;\n left: 12px;\n flex-direction: column;\n ",[U("line",[V("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 ")])])]),V("dot","\n margin: 4px 0;\n ")]),V("arrow-group","\n position: absolute;\n display: flex;\n flex-wrap: nowrap;\n "),U("vertical",[V("arrow","\n transform: rotate(90deg);\n ")]),U("show-arrow",[U("bottom",[V("dots","\n transform: translateX(0);\n bottom: 18px;\n left: 18px;\n ")]),U("top",[V("dots","\n transform: translateX(0);\n top: 18px;\n left: 18px;\n ")]),U("left",[V("dots","\n transform: translateX(0);\n top: 18px;\n left: 18px;\n ")]),U("right",[V("dots","\n transform: translateX(0);\n top: 18px;\n right: 18px;\n ")])]),U("left",[V("arrow-group","\n bottom: 12px;\n left: 12px;\n flex-direction: column;\n ",[ye("> *:first-child","\n margin-bottom: 12px;\n ")])]),U("right",[V("dots","\n transform: translateY(-50%);\n top: 50%;\n right: 12px;\n flex-direction: column;\n ",[U("line",[V("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 ")])])]),V("dot","\n margin: 4px 0;\n "),V("arrow-group","\n bottom: 12px;\n right: 12px;\n flex-direction: column;\n ",[ye("> *:first-child","\n margin-bottom: 12px;\n ")])]),U("top",[V("dots","\n transform: translateX(-50%);\n top: 12px;\n left: 50%;\n ",[U("line",[V("dot","\n margin: 0 4px;\n ")])]),V("dot","\n margin: 0 4px;\n "),V("arrow-group","\n top: 12px;\n right: 12px;\n ",[ye("> *:first-child","\n margin-right: 12px;\n ")])]),U("bottom",[V("dots","\n transform: translateX(-50%);\n bottom: 12px;\n left: 50%;\n ",[U("line",[V("dot","\n margin: 0 4px;\n ")])]),V("dot","\n margin: 0 4px;\n "),V("arrow-group","\n bottom: 12px;\n right: 12px;\n ",[ye("> *:first-child","\n margin-right: 12px;\n ")])]),U("fade",[V("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",[V("slides","\n perspective: 1000px;\n "),V("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 ")])])]),ha=["transitionDuration","transitionTimingFunction"],Fa=Object.assign(Object.assign({},wu.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 jt=!1;const $t=G({name:"Carousel",props:Fa,setup(n){const{mergedClsPrefixRef:i,inlineThemeDisabled:t}=Et(n),p=W(null),o=W(null),u=W([]),a={value:[]},s=$(()=>n.direction==="vertical"),c=$(()=>s.value?"height":"width"),d=$(()=>s.value?"bottom":"right"),E=$(()=>n.effect==="slide"),r=$(()=>n.loop&&n.slidesPerView===1&&E.value),l=$(()=>n.effect==="custom"),h=$(()=>!E.value||n.centeredSlides?1:n.slidesPerView),w=$(()=>l.value?1:n.slidesPerView),f=$(()=>h.value==="auto"||n.slidesPerView==="auto"&&n.centeredSlides),B=W({width:0,height:0}),v=$(()=>{const{value:C}=u;if(!C.length)return[];const{value:A}=f;if(A)return C.map(ue=>cu(ue));const{value:L}=w,{value:N}=B,{value:O}=c;let P=N[O];if(L!=="auto"){const{spaceBetween:ue}=n,he=P-(L-1)*ue,pt=1/Math.max(1,L);P=he*pt}const Z=Object.assign(Object.assign({},N),{[O]:P});return C.map(()=>Z)}),D=$(()=>{const{value:C}=v;if(!C.length)return[];const{centeredSlides:A,spaceBetween:L}=n,{value:N}=c,{[N]:O}=B.value;let P=0;return C.map(({[N]:Z})=>{let ue=P;return A&&(ue+=(Z-O)/2),P+=Z+L,ue})}),R=W(!1),g=$(()=>{const{transitionStyle:C}=n;return C?tu(C,ha):{}}),S=$(()=>l.value?0:ra(g.value.transitionDuration)),b=$(()=>{const{value:C}=u;if(!C.length)return[];const A=!(f.value||w.value===1),L=Z=>{if(A){const{value:ue}=c;return{[ue]:"".concat(v.value[Z][ue],"px")}}};if(l.value)return C.map((Z,ue)=>L(ue));const{effect:N,spaceBetween:O}=n,{value:P}=d;return C.reduce((Z,ue,he)=>{const pt=Object.assign(Object.assign({},L(he)),{["margin-".concat(P)]:"".concat(O,"px")});return Z.push(pt),R.value&&(N==="fade"||N==="card")&&Object.assign(pt,g.value),Z},[])}),j=$(()=>{const{value:C}=h,{length:A}=u.value;if(C!=="auto")return Math.max(A-C,0)+1;{const{value:L}=v,{length:N}=L;if(!N)return A;const{value:O}=D,{value:P}=c,Z=B.value[P];let ue=L[L.length-1][P],he=N;for(;he>1&&ue<Z;)he--,ue+=O[he]-O[he-1];return mt(he+1,1,N)}}),Y=$(()=>la(j.value,r.value)),fe=Rt(n.defaultIndex,r.value),Ie=W(ru(fe,j.value,r.value)),Ce=Es(ws(n,"currentIndex"),Ie),me=$(()=>Rt(Ce.value,r.value));function m(C){var A,L;C=mt(C,0,j.value-1);const N=ru(C,j.value,r.value),{value:O}=Ce;N!==Ce.value&&(Ie.value=N,(A=n["onUpdate:currentIndex"])===null||A===void 0||A.call(n,N,O),(L=n.onUpdateCurrentIndex)===null||L===void 0||L.call(n,N,O))}function y(C=me.value){return oa(C,j.value,n.loop)}function _(C=me.value){return na(C,j.value,n.loop)}function I(C){const A=Ge(C);return A!==null&&y()===A}function k(C){const A=Ge(C);return A!==null&&_()===A}function te(C){return me.value===Ge(C)}function z(C){return Ce.value===C}function Pe(){return y()===null}function Me(){return _()===null}function nt(C){const A=mt(Rt(C,r.value),0,j.value);(C!==Ce.value||A!==me.value)&&m(A)}function De(){const C=y();C!==null&&m(C)}function Xe(){const C=_();C!==null&&m(C)}function Ze(){(!Be||!r.value)&&De()}function xu(){(!Be||!r.value)&&Xe()}let Be=!1,Ne=0;const _t=W({});function lt(C,A=0){_t.value=Object.assign({},g.value,{transform:s.value?"translateY(".concat(-C,"px)"):"translateX(".concat(-C,"px)"),transitionDuration:"".concat(A,"ms")})}function et(C=0){E.value?St(me.value,C):Ne!==0&&(!Be&&C>0&&(Be=!0),lt(Ne=0,C))}function St(C,A){const L=Qt(C);L!==Ne&&A>0&&(Be=!0),Ne=Qt(me.value),lt(L,A)}function Qt(C){let A;return C>=j.value-1?A=Jt():A=D.value[C]||0,A}function Jt(){if(h.value==="auto"){const{value:C}=c,{[C]:A}=B.value,{value:L}=D,N=L[L.length-1];let O;if(N===void 0)O=A;else{const{value:P}=v;O=N+P[P.length-1][C]}return O-A}else{const{value:C}=D;return C[j.value-1]||0}}const tt={currentIndexRef:Ce,to:nt,prev:Ze,next:xu,isVertical:()=>s.value,isHorizontal:()=>!s.value,isPrev:I,isNext:k,isActive:te,isPrevDisabled:Pe,isNextDisabled:Me,getSlideIndex:Ge,getSlideStyle:ju,addSlide:Tu,removeSlide:Ru,onCarouselItemClick:Pu};ia(tt);function Tu(C){C&&u.value.push(C)}function Ru(C){if(!C)return;const A=Ge(C);A!==-1&&u.value.splice(A,1)}function Ge(C){return typeof C=="number"?C:C?u.value.indexOf(C):-1}function ju(C){const A=Ge(C);if(A!==-1){const L=[b.value[A]],N=tt.isPrev(A),O=tt.isNext(A);return N&&L.push(n.prevSlideStyle||""),O&&L.push(n.nextSlideStyle||""),Ss(L)}}function Pu(C,A){let L=!Be&&!ct&&!Lt;n.effect==="card"&&L&&!te(C)&&(nt(C),L=!1),L||(A.preventDefault(),A.stopPropagation())}let rt=null;function it(){rt&&(clearInterval(rt),rt=null)}function ze(){it(),!n.autoplay||Y.value<2||(rt=window.setInterval(Xe,n.interval))}let It=0,Dt=0,ke=0,kt=0,ct=!1,Lt=!1;function Yt(C){var A;if(jt||!(!((A=o.value)===null||A===void 0)&&A.contains(Is(C))))return;jt=!0,ct=!0,Lt=!1,kt=Date.now(),it(),C.type!=="touchstart"&&!C.target.isContentEditable&&C.preventDefault();const L=iu(C)?C.touches[0]:C;s.value?Dt=L.clientY:It=L.clientX,n.touchable&&(ut("touchmove",document,dt),ut("touchend",document,Ke),ut("touchcancel",document,Ke)),n.draggable&&(ut("mousemove",document,dt),ut("mouseup",document,Ke))}function dt(C){const{value:A}=s,{value:L}=c,N=iu(C)?C.touches[0]:C,O=A?N.clientY-Dt:N.clientX-It,P=B.value[L];ke=mt(O,-P,P),C.cancelable&&C.preventDefault(),E.value&<(Ne-ke,0)}function Ke(){const{value:C}=me;let A=C;if(!Be&&ke!==0&&E.value){const L=Ne-ke,N=[...D.value.slice(0,j.value-1),Jt()];let O=null;for(let P=0;P<N.length;P++){const Z=Math.abs(N[P]-L);if(O!==null&&O<Z)break;O=Z,A=P}}if(A===C){const L=Date.now()-kt,{value:N}=c,O=B.value[N];ke>O/2||ke/L>.4?A=y(C):(ke<-O/2||ke/L<-.4)&&(A=_(C))}A!==null&&A!==C?(Lt=!0,m(A),xe(()=>{(!r.value||Ie.value!==Ce.value)&&et(S.value)})):et(S.value),Xt(),ze()}function Xt(){ct&&(jt=!1),ct=!1,It=0,Dt=0,ke=0,kt=0,st("touchmove",document,dt),st("touchend",document,Ke),st("touchcancel",document,Ke),st("mousemove",document,dt),st("mouseup",document,Ke)}function Mu(){if(E.value&&Be){const{value:C}=me;St(C,0)}else ze();E.value&&(_t.value.transitionDuration="0ms"),Be=!1}function Nu(C){if(C.preventDefault(),Be)return;let{deltaX:A,deltaY:L}=C;C.shiftKey&&!A&&(A=L);const N=-1,O=1,P=(A||L)>0?O:N;let Z=0,ue=0;s.value?ue=P:Z=P;const he=10;(ue*L>=he||Z*A>=he)&&(P===O&&!Me()?Xe():P===N&&!Pe()&&De())}function Ou(){B.value=cu(p.value,!0),ze()}function Vu(){var C,A;f.value&&((A=(C=v.effect).scheduler)===null||A===void 0||A.call(C),v.effect.run())}function Wu(){n.autoplay&&it()}function Uu(){n.autoplay&&ze()}se(()=>{As(ze),requestAnimationFrame(()=>R.value=!0)}),Eu(()=>{Xt(),it()}),vs(()=>{const{value:C}=u,{value:A}=a,L=new Map,N=P=>L.has(P)?L.get(P):-1;let O=!1;for(let P=0;P<C.length;P++){const Z=A.findIndex(ue=>ue.el===C[P]);Z!==P&&(O=!0),L.set(C[P],Z)}O&&C.sort((P,Z)=>N(P)-N(Z))}),Ue(me,(C,A)=>{if(C!==A)if(ze(),E.value){if(r.value){const{value:L}=j;Y.value>2&&C===L-2&&A===1?C=0:C===1&&A===L-2&&(C=L-1)}St(C,S.value)}else et()},{immediate:!0}),Ue([r,h],()=>void xe(()=>{m(me.value)})),Ue(D,()=>{E.value&&et()},{deep:!0}),Ue(E,C=>{C?et():(Be=!1,lt(Ne=0))});const Gu=$(()=>({onTouchstartPassive:n.touchable?Yt:void 0,onMousedown:n.draggable?Yt:void 0,onWheel:n.mousewheel?Nu:void 0})),zu=$(()=>Object.assign(Object.assign({},tu(tt,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:Y.value,currentIndex:Ce.value})),Ku=$(()=>({total:Y.value,currentIndex:Ce.value,to:tt.to})),qu={getCurrentIndex:()=>Ce.value,to:nt,prev:De,next:Xe},Hu=wu("Carousel","-carousel",Ca,sa,n,i),Zt=$(()=>{const{common:{cubicBezierEaseInOut:C},self:{dotSize:A,dotColor:L,dotColorActive:N,dotColorFocus:O,dotLineWidth:P,dotLineWidthActive:Z,arrowColor:ue}}=Hu.value;return{"--n-bezier":C,"--n-dot-color":L,"--n-dot-color-focus":O,"--n-dot-color-active":N,"--n-dot-size":A,"--n-dot-line-width":P,"--n-dot-line-width-active":Z,"--n-arrow-color":ue}}),qe=t?Bs("carousel",void 0,Zt,n):void 0;return Object.assign(Object.assign({mergedClsPrefix:i,selfElRef:p,slidesElRef:o,slideVNodes:a,duplicatedable:r,userWantsControl:l,autoSlideSize:f,realIndex:me,slideStyles:b,translateStyle:_t,slidesControlListeners:Gu,handleTransitionEnd:Mu,handleResize:Ou,handleSlideResize:Vu,handleMouseenter:Wu,handleMouseleave:Uu,isActive:z,arrowSlotProps:zu,dotSlotProps:Ku},qu),{cssVars:t?void 0:Zt,themeClass:qe==null?void 0:qe.themeClass,onRender:qe==null?void 0:qe.onRender})},render(){var n;const{mergedClsPrefix:i,showArrow:t,userWantsControl:p,slideStyles:o,dotType:u,dotPlacement:a,slidesControlListeners:s,transitionProps:c={},arrowSlotProps:d,dotSlotProps:E,$slots:{default:r,dots:l,arrow:h}}=this,w=r&&ys(r())||[];let f=Ea(w);return f.length||(f=w.map(B=>ae(bt,null,{default:()=>Fu(B)}))),this.duplicatedable&&(f=aa(f)),this.slideVNodes.value=f,this.autoSlideSize&&(f=f.map(B=>ae(uu,{onResize:this.handleSlideResize},{default:()=>B}))),(n=this.onRender)===null||n===void 0||n.call(this),ae("div",Object.assign({ref:"selfElRef",class:[this.themeClass,"".concat(i,"-carousel"),this.direction==="vertical"&&"".concat(i,"-carousel--vertical"),this.showArrow&&"".concat(i,"-carousel--show-arrow"),"".concat(i,"-carousel--").concat(a),"".concat(i,"-carousel--").concat(this.direction),"".concat(i,"-carousel--").concat(this.effect),p&&"".concat(i,"-carousel--usercontrol")],style:this.cssVars},s,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),ae(uu,{onResize:this.handleResize},{default:()=>ae("div",{ref:"slidesElRef",class:"".concat(i,"-carousel__slides"),role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},p?f.map((B,v)=>ae("div",{style:o[v],key:v},Wt(ae(_s,Object.assign({},c),{default:()=>B}),[[bs,this.isActive(v)]]))):f)}),this.showDots&&E.total>1&&su(l,E,()=>[ae(da,{key:u+a,total:E.total,currentIndex:E.currentIndex,dotType:u,trigger:this.trigger,keyboard:this.keyboard})]),t&&su(h,d,()=>[ae(ga,null)]))}});function Ea(n){return n.reduce((i,t)=>(fa(t)&&i.push(t),i),[])}const wa="_prepareLessons_99lbr_1",Aa="_directoryMain_99lbr_7",va="_resourceMain_99lbr_8",Ba="_lessonMain_99lbr_21",ya="_resourceClose_99lbr_30",ba="_showSideBar_99lbr_36",_a="_hideSideBar_99lbr_48",He={prepareLessons:wa,directoryMain:Aa,resourceMain:va,lessonMain:Ba,resourceClose:ya,showSideBar:ba,hideSideBar:_a},Sa="_directoryList_1civ5_1",Ia="_scrollBar_1civ5_8",Da="_iconArrow_1civ5_32",ka="_theTooltip_1civ5_35",La="_itemImg_1civ5_45",xa="_itemBg_1civ5_82",Ta="_itemContent_1civ5_107",Ra="_subjects_1civ5_117",ja="_changeDir_1civ5_127",Pa="_treeParent_1civ5_152",Ma="_treeChild_1civ5_155",Na="_treeItem_1civ5_158",Oa="_childItem_1civ5_169",Va="_title_1civ5_169",Wa="_dir_1civ5_1",Ua="_titleSelect_1civ5_191",Ga="_arrow_1civ5_198",za="_arrowSelect_1civ5_205",Ka="_childArrow_1civ5_209",qa="_childSelect_1civ5_219",Ha="_coursewareModal_1civ5_225",H={directoryList:Sa,scrollBar:Ia,"select-directory":"_select-directory_1civ5_13",iconArrow:Da,theTooltip:ka,"select-directory-info":"_select-directory-info_1civ5_38",itemImg:La,itemBg:xa,itemContent:Ta,subjects:Ra,changeDir:ja,treeParent:Pa,treeChild:Ma,treeItem:Na,childItem:Oa,title:Va,dir:Wa,titleSelect:Ua,arrow:Ga,arrowSelect:za,childArrow:Ka,childSelect:qa,coursewareModal:Ha},$a="_attendClassSearch_m0u5k_1",Qa="_iconSearch_m0u5k_39",Ja="_spaceSection_m0u5k_43",Ya="_popSelect_m0u5k_53",Xa="_classList_m0u5k_63",Za="_content_m0u5k_67",eo="_teachingSpace_m0u5k_70",to="_item_m0u5k_73",uo="_cover_m0u5k_79",so="_iconCustom_m0u5k_93",ao="_editContainer_m0u5k_103",oo="_editBtnGroup_m0u5k_114",no="_imgBtn_m0u5k_118",lo="_itemImg_m0u5k_128",ro="_itemBg_m0u5k_159",io="_itemName_m0u5k_184",co="_teachingModal_m0u5k_191",po="_removeVisiable_m0u5k_194",mo="_studentRemove_m0u5k_200",go="_btnGroup_m0u5k_212",fo="_textBtn_m0u5k_219",Co="_iconArrow_m0u5k_231",ho="_textBtnActive_m0u5k_240",M={attendClassSearch:$a,iconSearch:Qa,spaceSection:Ja,popSelect:Ya,classList:Xa,content:Za,teachingSpace:eo,item:to,cover:uo,iconCustom:so,editContainer:ao,editBtnGroup:oo,imgBtn:no,itemImg:lo,itemBg:ro,itemName:io,teachingModal:co,removeVisiable:po,studentRemove:mo,btnGroup:go,textBtn:fo,iconArrow:Co,textBtnActive:ho},Fo="data:image/png;base64,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",Eo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACFZJREFUeF7lWwtMlNkV/uaBVhgr5WEVYZ2QstZxqXUXFLbQFegDoxLZzIzNRkTqu6Yd4hrTda2grdBK1SJpJR1To82WgLg83JDqFiyrMqyAFmkCW9fGcYFq+YeiULYDU6aef+enwwjDzP/A2cxJ/szjv+fcc79777nnnHuvDNLTHAALAXwJwDwAwQC+ACDA8ZAGo47nPwAGADwG8C8A/wDwqZQqyiQSHg7gKwAWAQgRWEc/gB4AHwPoEyjrGXYxAZgF4KuOh3pZCqLR0eV4RsSoQAwAZgOIBfASAAJhJoga/1cAHQCsQioUAgDxvghglWNOC9GDLy/ZjA8B/A2AnY8QvgCoAKQB+DKfSiXgeQSgHsCQt7L5ALAAwHeeY69P1UYaDVcAPPQGBG8BICOXBEDuTSUzWHYMwHWHkfSoWk8BoAbTXCdj93kgMo5kGwgQt+QJANT4bwNYPJ0wH3tvBvD+dCB4AkDi56jnXfuARoLJXcdMBwDN+W/6WM96q84H7myCOwDI2q/zYYPnKRBkB96banWYCgBa51/3waXO00a7lqMl8t3J/ITJAKD/MnzIyeHbaFc+cpZqXT3GyQBYAuA1sWr1MTmNAD5y1skVAApsNgoZ+tnZ2VHbtm1LVKvViwMDAwPFAGB4eHj4/v375jNnzpjOnTv3iQCZNBXKnQMoVwDing6Tl/lWUF1dnZ6RkZEhk8kUfGW447Pb7f+tra2t3bBhwx8FyL/11Li3cvzOAFAo+wbfkPbw4cMvHTp06IcCFPOY9ciRIyV5eXkUDvMhCqX/AIDNJzgD8DUACXwkEk9fX99PwsLCIum7zWaz3rx5s+nJkydeR2eT1R8cHKyKi4t7ValU0hQFwzDd4eHhP+WrK4Dmp6vcHVcA9I58nddyIyIiZvX09BRzPkNpaenvdu/eTb64aHT69OlVu3bt+j4JtNvtY5GRkYbe3l6+WSHKLFU4A0A5vEy+2mq12oUXLlzI5/g3btyYX1FRQQlN0Uiv1y8sLy8fr0Or1eZdvHjRq9DXRZkqGrjcFBDk77sCoNPp8isrK0UFQII62DiBA0ArJHs7nXKbNm2KTEpKiuKcEDuN4TE2UmU/6bfz97GxMXtjY2N3bW3tP7lem64OHkONss2VBADl7bN4CBhncafcvn37YoqKit50MbjTVkdLnsFg+GVJScnfqbAEAJDY3xMA0U+zKN+aViM3BdwpV15enqbX68nAek2VlZUVOp2Ocn1SAfAnAuAVx+O1gp4Mz9jYWFVdXd2uBQsWLJbJZOyU4z4++8r99dknJ/PRo0efrF+/vqSlpeUJ/ZeamhpSX19fyL1PS0t7q6GhgYaxEGqjClMduzi8BUk0PJ/Rx2QyvREXF7eqtbW1OTExsYy3wv9n/JgAoLA3TIiwmQKAdExOTg6+cePGgMOIClGbeBkCgNxfiv9500wAEBoaqrx9+7YhKirqRbPZ3BkdHf0rEUAYIgCyAbAuJl+aCQBu3bqVvWLFildFtgFWAmCb0LSXOwDmzZunqKmpyVSr1S9MBjDDMExOTs67HR0dU8YN58+ffy0rK4tGKksPHz68v2jRokIRRsCY5ACcPXs2acuWLW79jOvXr9cnJyezvrkr7dmzJ/rUqVNvyuVyJb2zWq1Da9euLaivr7fwHbFOfCwAkk6BkydPvpKbm7vDnbKXL19+Lz09/ZJrmfj4+C9evXr17aCgIHa7nRzIgwcPFhcUFNAWuRjETgFJjaBcLofRaPyGRqOhKfBMCq63t5fZsWNHg8VisTm3SKVSKTo7O/dGRkbSQQuWqqurL2ZmZtL+n1jEGkGfXAZNJtP3EhISUriWdnZ2tmk0mt+K1XKHHHYZ9DlHqLS0NGHnzp05XGP7+/t7ly9f/nONRqPavn37141G41+uXLkihg1gHSFJXWFveywnJ+cFo9G4X6FQ0CEqjIyMfKrT6QooMmQYJi80NDTCYrH0hIWFHfFW9iTlWVdY0mDIGyWXLVsWZDKZ3p47d26og89eWFj4mwMHDrDpq9HR0RKlUjnLZrONBAQEiJF/ZIMhScNhTwGYPXu2rKury6BWq5dyPK6rgwQAsOEwkaQJEU9AaGhoeD0lJeW7XNl79+51LF269Nejo6PjZ39EBmA8IUJ1PteU2PHjx1/eu3fvTq7xjx8/7ouPjz969+7dCYckRQZgQkrsuSVFyY0uKyv7sVKppNOjbEp98+bNvygrK6PDkRPIZrOVKBQKsgHWgICAH3kystyUmZAUpXKC0uLd3d3FMpmMPTvkaVo8Ojp6Tltb21vBwcHjp82Ki4uNubm54zs3XAPWrFkTXldX9zP6zTBMT3h4uJBV4Jm0OMkVdWOktbW1aWBgYEKAYzabGYPB8KHVarWTh9jV1fWDmJiY5VwjGxsb31+9enUlrQZarVYtl8tZGzV//vwgvV6fHhISEkG/W1paPli5cuU7AkbApBsjM7I1VlNTU0V7e67Ojtls/mjJkiUnyQU2m81HOf/ftZEjIyPDKSkph5uamqgX+dCUW2MkTPLN0ebm5j9TOuvSpUtr1q1bt4EqHRoa6k9KSjra3t4+RDnE9vb2Im46ObdwcHDQkp+ff/bEiRN3+bTcwTPl5ii9l3R73GKxMFu3bn3n2rVrAzExMXOqqqqyVCpV4P79+8udd5KOHTu2IjU1NZabAoODg/++c+fOg6KiovYHDx4IORs87fY4geDXByQIAL8/IkMg+PUhKc6++PUxOQ4Evz4oyYEgKE4QsFyJwSr4qCwp4feHpTkQ/Pa4vPNQ9NsLE84g+PWVGQ4Iv740xYFAHqPfXptznhJ+e3HSdZ3226uzkzksfnl5eirPzaevz/8P8b+yjJU9BJsAAAAASUVORK5CYII=",wo="data:image/png;base64,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";function Ao(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!Te(n)}const vo=G({name:"select-lessonware",emits:["close","confirm"],setup(n,{emit:i}){const t=ot();Ds();const p=wt(),o=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:[]}),a=async()=>{o.loading=!0;try{console.log(o.bookVersionId,"bookVersionId");const{data:l}=await Cu({page:1,rows:99,type:"COURSEWARE",enableFlag:1,bookVersionId:o.bookVersionId==="0"?null:o.bookVersionId,customFlag:o.bookVersionId==="0"?!0:null,keyword:o.keyword,currentGradeNum:o.currentGradeNum,instrumentId:o.instrumentId,bookType:o.bookType});o.list=l.rows}catch(l){}o.loading=!1},s=async l=>{try{await $u({id:o.removeRow.id}),p.success("删除成功"),a(),o.removeVisiable=!1}catch(h){console.log(h)}},c=Bt(()=>a(),500),d=l=>{i("confirm",l),i("close")},E=async()=>{try{const{data:l}=await Qu();console.log(l,"data");const h=l||[];u.versionList=[{name:"全部",id:""},...h]}catch(l){}},r=l=>{const h={};return l==null||l.forEach(w=>{w.id===o.instrumentId&&(h.selected=!0,h.name=w.name)}),h};return se(async()=>{try{await t.getSubjects(),await E()}catch(l){}a()}),()=>{let l;return e("div",{class:M.selectLessonware},[e(be,{class:M.classList},{default:()=>[e("div",{class:M.attendClassSearch},[e(Au,{labelAlign:"left",labelPlacement:"left"},{default:()=>[u.versionList.length>0&&e(at,{label:"教程:"},{default:()=>[e(ee,{class:M.spaceSection},{default:()=>{var h;return[(h=u.versionList)==null?void 0:h.map(w=>e("span",{class:[M.textBtn,(o.bookVersionId||"")==w.id&&M.textBtnActive],onClick:()=>{if(u.bookTypeList=[],o.currentGradeNum="",o.bookType="",w.children&&w.children.length>0){const f=w.children||[];u.gradeList=[{name:"全部",id:""},...f]}else u.gradeList=[];o.bookVersionId=w.id,c()}},[w.name]))]}})]}),u.gradeList.length>0&&e(at,{label:"年级:"},{default:()=>[e(ee,{class:M.spaceSection},{default:()=>{var h;return[(h=u.gradeList)==null?void 0:h.map(w=>e("span",{class:[M.textBtn,(o.currentGradeNum||"")==w.id&&M.textBtnActive],onClick:()=>{if(o.bookType="",w.children&&w.children.length>0){u.bookTypeList=w.children||[];const f=w.children||[];u.bookTypeList=[{name:"全部",id:""},...f]}else u.bookTypeList=[];o.currentGradeNum=w.id,c()}},[w.name]))]}})]}),u.bookTypeList.length>0&&e(at,{label:"册别:"},{default:()=>[e(ee,{class:M.spaceSection},{default:()=>{var h;return[(h=u.bookTypeList)==null?void 0:h.map(w=>e("span",{class:[M.textBtn,(o.bookType||"")==w.id&&M.textBtnActive],onClick:()=>{o.bookType=w.id,c()}},[w.name]))]}})]}),e(at,{label:"乐器:"},{default:()=>[e(ee,{class:M.spaceSection},Ao(l=[{name:"全部乐器",value:""},...t.getSubjectInstrumentOnly].map(h=>h.instruments&&h.instruments.length>1?e(Ut,{options:h.instruments,trigger:"hover",scrollable:!0,value:u.tempSubjectId,"onUpdate:value":[w=>u.tempSubjectId=w,()=>{o.instrumentId=u.tempSubjectId,c()}],key:h.value,class:[M.popSelect]},{default:()=>[e("span",{class:[M.textBtn,r(h.instruments).selected&&M.textBtnActive]},[r(h.instruments).name||h.name,e("i",{class:M.iconArrow},null)])]}):e("span",{class:[M.textBtn,o.instrumentId===h.value&&M.textBtnActive],onClick:()=>{o.instrumentId=h.value,u.tempSubjectId=null,c()}},[h.name])))?l:{default:()=>[l]})]})]})]),e(we,{show:o.loading,class:M.content},{default:()=>[e(ee,{class:M.teachingSpace},{default:()=>[e("div",{class:M.item,key:"item--1",onClick:()=>{o.selectItem={},o.teachingStatus=!0}},[e("div",{class:M.cover},[e("div",{class:M.itemImg},[e("div",{class:M.itemBg},null),e(ge,{objectFit:"cover",src:Fo,lazy:!0,previewDisabled:!0,onLoad:h=>{h.target.dataset.loaded="true"}},null)])])]),o.list.map((h,w)=>e("div",{class:M.item,key:"item-".concat(w),onClick:()=>d(h)},[e("div",{class:M.cover},[e("div",{class:M.itemImg},[e("div",{class:M.itemBg},null),e(ge,{objectFit:"cover",src:h.coverImg,lazy:!0,previewDisabled:!0,onLoad:f=>{f.target.dataset.loaded="true"}},null),h.customFlag&&e(Ae,null,[e("div",{class:M.iconCustom},null),e("div",{class:M.editContainer},[e("div",{class:M.editBtnGroup},[e("img",{src:Eo,class:M.imgBtn,onClick:f=>{f.stopPropagation(),o.selectItem=h,o.teachingStatus=!0}},null),e("img",{src:wo,class:M.imgBtn,onClick:f=>{f.stopPropagation(),o.removeVisiable=!0,o.removeRow=h}},null)])])])])]),e("div",{class:M.itemName},[h.name])]))]})]})]}),e(oe,{maskClosable:ne,show:o.teachingStatus,"onUpdate:show":h=>o.teachingStatus=h,preset:"card",showIcon:!1,class:["modalTitle background",M.teachingModal],title:"自定义教材",blockScroll:!1},{default:()=>[e(ls,{item:o.selectItem,onClose:()=>o.teachingStatus=!1,onConfirm:()=>{a(),o.selectItem={}}},null)]}),e(oe,{maskClosable:ne,show:o.removeVisiable,"onUpdate:show":h=>o.removeVisiable=h,preset:"card",class:["modalTitle",M.removeVisiable],title:"删除教材"},{default:()=>[e("div",{class:M.studentRemove},[e("p",null,[F("是否删除该教材")]),e(ee,{class:M.btnGroup,justify:"center"},{default:()=>[e(K,{round:!0,type:"primary",onClick:s},{default:()=>[F("确定")]}),e(K,{round:!0,onClick:()=>o.removeVisiable=!1},{default:()=>[F("取消")]})]})])]})])}}}),Bo=G({name:"lessons-guide",emits:["close"],setup(n,{emit:i}){const t=J({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:Ot("lessons1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:pe(-4),left:pe(-50),width:pe(420),height:pe(228)},btnsStyle:{bottom:pe(35),left:pe(111)},eleRectPadding:{left:7,top:7,width:14,height:-9}}],step:0}),p=W(!1),o=W({});(async()=>{try{const r=localStorage.getItem("teacher-guideInfo");r?o.value=JSON.parse(r)||null:o.value={},o.value&&o.value.lessonsGuide?p.value=!1:p.value=!0}catch(r){console.log(r)}})();const a=()=>{var l,h,w,f;const r=document.getElementById("lessons-".concat(t.step));if(r){const B=r.getBoundingClientRect();console.log(r,B,"eleRect");const v=((l=t.steps[t.step].eleRectPadding)==null?void 0:l.left)||0,D=((h=t.steps[t.step].eleRectPadding)==null?void 0:h.top)||0,R=((w=t.steps[t.step].eleRectPadding)==null?void 0:w.width)||0,g=((f=t.steps[t.step].eleRectPadding)==null?void 0:f.height)||0;t.box={left:B.x-v+"px",top:B.y-D+"px",width:B.width+R+"px",height:B.height+g+"px"},console.log("coai-".concat(t.step),t.box)}else d()},s=async r=>{try{if(r!=="prepare-lessons")return;o.value?o.value.lessonsGuide=!1:o.value={lessonsGuide:!1};try{Ft({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(o.value)})}catch(l){console.log(l)}t.step=0,a(),p.value=!0}catch(l){}};se(()=>{setTimeout(()=>{a()},0),window.addEventListener("resize",c),x.on("teacher-guideInfo",s)});const c=()=>{a()};je(()=>{window.removeEventListener("resize",c),x.off("teacher-guideInfo",s)});const d=()=>{if(t.step>=4){E();return}t.step=t.step+1,a()},E=async()=>{o.value?o.value.lessonsGuide=!0:o.value={lessonsGuide:!0};try{Ft({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(o.value)})}catch(r){console.log(r)}p.value=!1};return()=>e(Ae,null,[p.value?Wt(e("div",{"onUpdate:show":r=>p.value=r,class:["n-modal-mask","n-modal-mask-guide"]},[e("div",{class:ce.content,onClick:()=>d()},[e("div",{class:ce.backBtn,onClick:r=>{r.stopPropagation(),E()}},[F("跳过")]),e("div",{class:ce.box,style:{...t.box},id:"modeType-".concat(t.step)},[t.steps.map((r,l)=>{var h,w,f,B,v,D;return e("div",{onClick:R=>R.stopPropagation(),class:ce.item,style:r.type=="bottom"?{display:l===t.step?"":"none",left:"".concat((h=r.eleRect)==null?void 0:h.left,"px"),top:"-".concat((w=r.imgStyle)==null?void 0:w.height)}:r.type=="left"?{display:l===t.step?"":"none",top:"".concat(parseFloat((f=t.box)==null?void 0:f.height)/2-parseFloat((B=r.imgStyle)==null?void 0:B.height)*1920/100/2-14,"px")}:{display:l===t.step?"":"none",left:"".concat((v=r.eleRect)==null?void 0:v.left,"px"),top:"".concat((D=t.box)==null?void 0:D.height)}},[e("img",{class:ce.img,style:r.imgStyle,src:r.img},null),e("div",{class:ce.btns,style:r.btnsStyle},[t.step+1==t.steps.length?e(Ae,null,[e("div",{class:[ce.btn],onClick:()=>E()},[F("完成")])]):e("div",{class:ce.btn,onClick:()=>d()},[F("下一步 ("),t.step+1,F("/"),t.steps.length,F(")")])])])})])])]),[[vu,p.value,"show"]]):null])}}),yo=G({name:"directory-main",props:{sidebarShow:{type:Boolean,default:!0}},setup(n){const i=Bu(),t=Re(),p=Gt(),o=W(!0),u=J({lastUseCoursewareId:i.query.lastUseCoursewareId?i.query.lastUseCoursewareId+"":null,unit:i.query.unit?i.query.unit+"":null,showSelectBookStatus:!1,coursewareStatus:!1}),a=async()=>{var f;try{const{data:B}=await Cu({page:1,rows:99,type:"COURSEWARE",enableFlag:1}),v=B.rows||[];if(v.length>0){const D=v.find(S=>{var b;return S.id===(u.lastUseCoursewareId||((b=p.getUserInfo)==null?void 0:b.lastUseCoursewareId))});let R=null,g=null;if(D?(t.setBaseCourseware(D),R=D.id,g=D.instrumentIds):(t.setBaseCourseware(v[0]),R=(f=v[0])==null?void 0:f.id,g=v[0].instrumentIds),E(R),g){const{data:S}=await au({instrumentIds:g});t.setInstrumentList(S)}}u.showSelectBookStatus=!0}catch(B){}},s=async()=>{try{const f=t.getBaseCourseware;if(!f.id)return;const{data:B}=await Ju({id:f.id}),v=B.lessonList||[],D=d(u.unit,v);v.forEach((g,S)=>{if(g.selected=!1,D.length>1)g.id===D[0]&&(g.selected=!0,g.knowledgeList.forEach(b=>{b.id===D[1]&&(t.setSelectKey(b==null?void 0:b.id),t.setLessonCoursewareId(b==null?void 0:b.lessonCoursewareId),t.setLessonCoursewareDetailId(b==null?void 0:b.lessonCoursewareDetailId))}));else if(S===0){g.selected=!0;const b=g.knowledgeList[0];t.setSelectKey(b==null?void 0:b.id),t.setLessonCoursewareId(b==null?void 0:b.lessonCoursewareId),t.setLessonCoursewareDetailId(b==null?void 0:b.lessonCoursewareDetailId)}}),t.setTreeList(v);const R=t.getInstrumentId;if(R){const g=t.getFormatInstrumentList;let S=!1;g.forEach(b=>{var j;((j=b.instruments)==null?void 0:j.length)>0&&b.instruments.forEach(Y=>{Y.value==R&&(S=!0)}),b.value==R&&(S=!0)}),S||c()}else c()}catch(f){}},c=()=>{const f=t.getFormatInstrumentList;if(f.length>0){const B=f[0];if(B.instruments.length>1){const v=B.instruments[0];t.setInstrumentId(v.value)}else t.setInstrumentId(B.value)}},d=(f,B,v=[])=>{for(const D of B){if(D.knowledgeList&&D.knowledgeList.length>0){const R=d(f,D.knowledgeList,[...v,D.id]);if(R.includes(f))return R}if(D.id===f)return[...v,f]}return v},E=async f=>{try{await Yu({coursewareId:f}),p.getInfo()}catch(B){}},r=f=>{t.setSelectKey(f.id),t.setLessonCoursewareId(f.lessonCoursewareId),t.setLessonCoursewareDetailId(f.lessonCoursewareDetailId)},l=async f=>{o.value=!0,u.lastUseCoursewareId=f.lastUseCoursewareId,u.unit=f.unit,await a(),await s(),o.value=!1},h=async f=>{if(t.setBaseCourseware(f),f.instrumentIds){const{data:B}=await au({instrumentIds:f.instrumentIds});t.setInstrumentList(B);let v=!1,D=null;if(B.forEach((R,g)=>{Array.isArray(R.instruments)&&R.instruments.forEach((S,b)=>{S.id===t.getInstrumentId&&(v=!0),g===0&&b===0&&(D=S.id)})}),await s(),v){const R=D;t.setInstrumentId(R)}else c()}E(f.id)},w=$(()=>{const f=t.getBaseCourseware.instrumentNames;return f?f.split(",").join("、"):""});return se(async()=>{o.value=!0,await a(),await s(),o.value=!1,x.on("onChangeClass",async f=>{l(f)})}),()=>e(Ae,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(ge,{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(Se,{showArrow:!1,class:H.theTooltip,placement:"top-start"},{trigger:()=>t.getBaseCourseware.name,default:()=>t.getBaseCourseware.name})]),e("div",{class:H.subjects},[e(Se,{showArrow:!1,class:H.theTooltip,placement:"top-start"},{trigger:()=>w.value,default:()=>w.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(yu,{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(be,{class:H.scrollBar},{default:()=>[e(we,{show:o.value},{default:()=>[e("div",{class:[H.listSection,!o.value&&t.getTreeList.length<=0?H.emptySection:""]},[t.getTreeList.map((f,B)=>e("div",{class:H.treeParent,key:"parent"+B},[e("div",{class:[H.treeItem,H.parentItem],onClick:()=>{t.getTreeList.forEach(v=>{f.id!==v.id&&(v.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((v,D)=>e("div",{key:"child"+D,class:[H.treeItem,H.childItem,H.animation,t.getSelectKey===v.id?H.childSelect:""],onClick:()=>{t.getIsEditResource?x.emit("pageBeforeLeave",()=>r(v)):r(v)}},[e("span",{class:H.childArrow},null),e("p",{class:H.title},[v.name])]))]))]),!o.value&&t.getTreeList.length<=0&&e(ve,null,null)]})]}),e(oe,{maskClosable:ne,show:u.coursewareStatus,"onUpdate:show":f=>u.coursewareStatus=f,preset:"card",showIcon:!1,class:["modalTitle background",H.coursewareModal],title:"切换教材",blockScroll:!1},{default:()=>[e(vo,{onClose:()=>u.coursewareStatus=!1,onConfirm:f=>{t.getIsEditResource?x.emit("pageBeforeLeave",()=>h(f)):h(f)}},null)]})]),u.showSelectBookStatus&&!n.sidebarShow&&e(Bo,null,null)])}}),bo="_coursewareSection_jbu29_1",_o="_coursewareHeader_jbu29_5",So="_coursewareFooter_jbu29_65",gt={coursewareSection:bo,coursewareHeader:_o,"lesson-main":"_lesson-main_jbu29_11",coursewareFooter:So},Io="_tipsContainer_13qcv_1",Do="_tipsLeft_13qcv_13",ko="_tips_13qcv_1",Lo="_iconTips_13qcv_22",xo="_btnNoTips_13qcv_27",To="_btnGroupClass_13qcv_33",Ro="_listContainer_13qcv_36",jo="_listSection_13qcv_41",Po="_emptySection_13qcv_45",Mo="_listItems_13qcv_49",No="_knowledgePoint_13qcv_58",Oo="_btnItem_13qcv_58",Vo="_btnTitle_13qcv_63",Wo="_operationGroup_13qcv_85",Uo="_iconCUp_13qcv_96",Go="_iconCDown_13qcv_104",zo="_iconCRemove_13qcv_112",Ko="_addKnowledgePoint_13qcv_120",qo="_iconCAdd_13qcv_130",Ho="_list_13qcv_36",$o="_itemWrap_13qcv_144",Qo="_itemWrapBox_13qcv_149",Jo="_itemOperation_13qcv_157",Yo="_iconDelete_13qcv_163",Xo="_attendClassModal_13qcv_199",Zo="_addCourseware_13qcv_204",en="_removeVisiable1_13qcv_210",tn="_studentRemove_13qcv_216",un="_btnGroupModal_13qcv_227",sn="_addMusicItem_13qcv_234",an="_addMusicName_13qcv_255",on="_addOtherSource_13qcv_265",X={tipsContainer:Io,tipsLeft:Do,tips:ko,iconTips:Lo,btnNoTips:xo,btnGroupClass:To,listContainer:Ro,listSection:jo,emptySection:Po,listItems:Mo,knowledgePoint:No,btnItem:Oo,btnTitle:Vo,operationGroup:Wo,iconCUp:Uo,iconCDown:Go,iconCRemove:zo,addKnowledgePoint:Ko,iconCAdd:qo,list:Ho,itemWrap:$o,itemWrapBox:Qo,itemOperation:Jo,iconDelete:Yo,attendClassModal:Xo,addCourseware:Zo,removeVisiable1:en,studentRemove:tn,btnGroupModal:un,addMusicItem:sn,addMusicName:an,addOtherSource:on},nn="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",ln="_addCoursewareItem_13slg_1",rn="_btnGroupModal_13slg_12",du={addCoursewareItem:ln,btnGroupModal:rn};function cn(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!Te(n)}const dn=G({name:"add-courseware-item",props:{coursewareList:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(n,{emit:i}){const t=W([]);return()=>{let p;return e("div",{class:du.addCoursewareItem},[e(bu,{value:t.value,"onUpdate:value":o=>t.value=o},{default:()=>[e(ks,{yGap:18,cols:2},cn(p=n.coursewareList.map((o,u)=>e(Ls,null,{default:()=>[e(Nt,{value:u},{default:()=>[o.name]})]})))?p:{default:()=>[p]})]}),e(ee,{class:du.btnGroupModal,justify:"center"},{default:()=>[e(K,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(K,{round:!0,type:"primary",onClick:()=>{i("confirm",t.value)}},{default:()=>[F("确定")]})]})])}}}),pn="_addOtherSource_1sytn_1",mn="_sourceItem_1sytn_8",gn="_coverImg_1sytn_11",fn="_name_1sytn_24",Cn="_addOtherSourceModal_1sytn_31",hn="_instrumentModal_1sytn_34",Fn="_musicModal_1sytn_35",En="_theoryModal_1sytn_53",wn="_subjectSyncModal_1sytn_57",An="_attendClassModal_1sytn_60",vn="_attendClassSaveModal_1sytn_66",Fe={addOtherSource:pn,sourceItem:mn,coverImg:gn,name:fn,addOtherSourceModal:Cn,instrumentModal:hn,musicModal:Fn,theoryModal:En,subjectSyncModal:wn,attendClassModal:An,attendClassSaveModal:vn},Bn=""+new URL("icon1-75d0865e.png",import.meta.url).href,yn=""+new URL("icon2-0917d8de.png",import.meta.url).href,bn=""+new URL("icon3-20aef624.png",import.meta.url).href,_n=""+new URL("icon4-74cdf5a7.png",import.meta.url).href,Sn=""+new URL("icon5-817119a1.png",import.meta.url).href,In=""+new URL("icon6-3e36ae41.png",import.meta.url).href,Dn=""+new URL("icon8-a98128fc.png",import.meta.url).href,kn="_sourceRhythm_x9cqh_1",Ln="_btnGroup_x9cqh_12",Pt={sourceRhythm:kn,btnGroup:Ln},xn=G({name:"source-rhythm",emits:["close","confirm"],setup(n,{emit:i}){const t=Gt(),p=W(),o=W(!0);let u="".concat(origin,"/classroom-app/#/tempo-practice?v=").concat(Date.now(),"&Authorization=").concat(t.getToken,"&platform=modal");/(localhost)/.test(location.host)&&(u="https://test.kt.colexiu.com/classroom-app/#/tempo-practice?v=".concat(Date.now(),"&Authorization=").concat(t.getToken,"&platform=modal"));const a=()=>{var c,d;(d=(c=p.value)==null?void 0:c.contentWindow)==null||d.postMessage({api:"getTempoSetting"},"*")},s=c=>{var d;if(((d=c.data)==null?void 0:d.api)==="getTempoSetting"){const E=c.data.data?JSON.parse(c.data.data):{};i("confirm",{dataJson:JSON.stringify(E.setting),coverImg:"https://oss.dayaedu.com/ktqy/171013700931689a322a6.png"})}};return se(()=>{window.addEventListener("message",s)}),je(()=>{window.removeEventListener("message",s)}),()=>e("div",{class:Pt.sourceRhythm},[e(we,{show:o.value},{default:()=>[e("iframe",{ref:p,onLoad:c=>{o.value=!1,xs(c.target)},class:[Pt.container,"musicIframe"],frameborder:"0",src:u},null),e(ee,{class:Pt.btnGroup,justify:"center"},{default:()=>[e(K,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(K,{round:!0,type:"primary",onClick:a},{default:()=>[F("确认添加")]})]})]})])}}),Tn="_container_19ipk_1",Rn="_iconBack_19ipk_1",jn="_separator_19ipk_40",Pn="_wrap_19ipk_45",Mn="_listWrap_19ipk_49",Nn="_listWrapEmpty_19ipk_54",On="_btnGroup_19ipk_91",Oe={container:Tn,iconBack:Rn,separator:jn,wrap:Pn,listWrap:Mn,listWrapEmpty:Nn,btnGroup:On},Vn="_searchGroup_1n8vo_1",Wn="_btnType_1n8vo_5",Un="_swipeControll_1n8vo_13",Gn="_leftIcon_1n8vo_16",zn="_disabled_1n8vo_28",Kn="_carouselGroup_1n8vo_42",qn="_carouselContainer_1n8vo_46",Hn="_inputSearch_1n8vo_57",$n="_searchCatatory_1n8vo_78",Qn="_addTrain_1n8vo_85",Jn="_searchGroups_1n8vo_97",Yn="_instrumentList_1n8vo_100",Xn="_list_1n8vo_104",Zn="_itemWrap_1n8vo_114",el="_itemWrapBox_1n8vo_119",tl="_itemCard_1n8vo_127",ul="_itemImgSection_1n8vo_131",sl="_itemTag_1n8vo_137",al="_iconCheck_1n8vo_164",ol="_img_1n8vo_173",nl="_itemImgSectionSelected_1n8vo_183",ll="_itemTitle_1n8vo_190",le={searchGroup:Vn,btnType:Wn,swipeControll:Un,leftIcon:Gn,disabled:zn,carouselGroup:Kn,carouselContainer:qn,inputSearch:Hn,searchCatatory:$n,addTrain:Qn,searchGroups:Jn,instrumentList:Yn,list:Xn,itemWrap:Zn,itemWrapBox:el,itemCard:tl,itemImgSection:ul,itemTag:sl,iconCheck:al,img:ol,itemImgSectionSelected:nl,itemTitle:ll},$e="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 rl(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!Te(n)}const il=G({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(n,{emit:i}){const t=J({currentIndex:0,keyword:"",wikiCategoryId:n.wikiCategoryId||"",maxIndex:0}),p=J({showSlide:!1}),o=()=>{i("search",t)},u=W(),a=s=>{var c,d;s==="left"?(c=u.value)==null||c.prev():s==="right"&&((d=u.value)==null||d.next())};return se(async()=>{Du.nextTick(()=>{const s=document.querySelector(".carouselContainer"),c=s&&s.getBoundingClientRect().width||0,d=document.querySelectorAll(".n-carousel__slide");let E=0;d.forEach(r=>{const l=r.getBoundingClientRect();E+=l.width}),E>=c&&(p.showSlide=!0)})}),()=>{let s;return e("div",{class:le.searchGroup},[e("div",{class:[le.searchCatatory]},[e(ee,{size:"small",class:le.btnType},{default:()=>[n.categoryChildList.length>0?e(K,{type:t.wikiCategoryId===n.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==n.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=n.wikiCategoryId,o()}},{default:()=>[F("全部")]}):"",e("div",{class:[le.carouselGroup]},[e($t,{ref:u,slidesPerView:"auto",loop:!1,class:[le.carouselContainer,"carouselContainer"],showDots:!1,draggable:p.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":c=>{t.currentIndex=c}},rl(s=n.categoryChildList.map(c=>e(bt,null,{default:()=>[e(K,{type:t.wikiCategoryId===c.id?"primary":"default",secondary:t.wikiCategoryId!==c.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=c.id,o()}},{default:()=>[c.name]})]})))?s:{default:()=>[s]}),p.showSlide&&e(ee,{class:le.swipeControll},{default:()=>[e("div",{onClick:()=>a("left")},[e(ge,{previewDisabled:!0,class:[le.leftIcon],src:$e},null)]),e("div",{onClick:()=>a("right")},[e(ge,{previewDisabled:!0,src:$e},null)])]})])]}),e(zt,{class:le.inputSearch,placeholder:"请输入乐器名称",round:!0,onSearch:c=>{t.keyword=c,o()}},null)])])}}}),cl=G({name:"instrument-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["confirm"],setup(n,{emit:i}){Qe();const t=J({searchWord:"",loading:!1,pageTotal:0,finshed:!1,pagination:{page:1,rows:18},searchGroup:{type:"INSTRUMENT",keyword:"",wikiCategoryId:n.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async()=>{t.loading=!0;try{const{data:a}=await Kt({...t.pagination,...t.searchGroup}),s=a.rows||[];s.forEach(c=>{c.knowledgeWikiCategories&&c.knowledgeWikiCategories.length&&(c.categories=c.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)}),t.tableList.push(...s),t.pageTotal=Number(a.total),t.finshed=a.pages<=a.current}catch(a){}t.loading=!1},o=async a=>{t.pagination.page=1,t.searchGroup=Object.assign(t.searchGroup,a),t.tableList=[],p()},u=a=>{const s=n.selectItems||[],c=s.findIndex(d=>d.id===a.id);c!==-1?s.splice(c,1):s.push(a),i("confirm",s)};return se(()=>{p()}),()=>e("div",{class:le.instrumentList},[e(il,{class:le.searchGroups,categoryChildList:n.categoryChildList||[],onSearch:a=>o(a),wikiCategoryId:n.categoryId},null),e(be,{class:le.listContainer,style:{"max-height":"50vh"},onScroll:a=>{var E,r,l;const s=(E=a.target)==null?void 0:E.clientHeight,c=(r=a.target)==null?void 0:r.scrollTop,d=(l=a.target)==null?void 0:l.scrollHeight;s+c+20>=d&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p())}},{default:()=>[e(we,{show:t.loading,"onUpdate:show":a=>t.loading=a,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:le.list},[t.tableList.map(a=>e("div",{class:le.itemWrap,onClick:()=>{t.item={content:a.id,title:a.name,type:"INSTRUMENT"},t.show=!0}},[e("div",{class:le.itemWrapBox},[e("div",{class:le.itemCard},[e("div",{class:[le.itemImgSection,n.selectItems.findIndex(s=>s.id===a.id)!==-1&&le.itemImgSectionSelected]},[e(ge,{src:a.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(a)}},null)]),e("div",{class:le.itemTitle},[a.name])])])])),!t.loading&&t.tableList.length<=0&&e(ve,{style:{minHeight:"50vh"},description:"暂无乐器百科"},null)])]})]}),e(yt,{size:"large",show:t.show,"onUpdate:show":a=>t.show=a,item:t.item},null)])}});function dl(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!Te(n)}const pl=G({name:"content-instrument",emits:["confirm","close"],setup(n,{emit:i}){Qe();const t=J({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await qt({type:"INSTRUMENT",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&xe(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const o=async()=>{const u=[];t.selectItems.forEach(a=>{u.push({coverImg:At.INSTRUMENT_DEFAULT_COVER,title:"乐器百科-"+a.name,materialId:a.id,content:a.id})}),i("confirm",u)};return()=>{let u;return e("div",{class:Oe.container},[e("div",{class:Oe.wrap},[e("div",{class:[Oe.listWrap,!t.loading&&t.categoryList.length<=0&&Oe.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(ve,{description:"暂无乐器百科"},null),e("div",{style:{minHeight:"55vh"}},[e(Je,{defaultValue:"myResources",paneClass:Oe.paneTitle,justifyContent:"center",paneWrapperClass:Oe.paneWrapperContainer,value:t.tabValue,"onUpdate:value":a=>t.tabValue=a},dl(u=t.categoryList.map(a=>e(Ye,{name:"name-".concat(a.id),tab:a.name},{default:()=>[e(cl,{selectItems:t.selectItems,categoryId:a.id,categoryChildList:a.childrenList,onConfirm:s=>{t.selectItems=s||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ee,{class:Oe.btnGroup,justify:"center"},{default:()=>[e(K,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(K,{round:!0,type:"primary",onClick:o},{default:()=>[F("确认添加")]})]})])}}}),ml=G({name:"cotnent-knowledge",emits:["close","confirm"],setup(n,{emit:i}){const t=W(!1),p=W(!1),o=W(),u="musicContent"+new Date().getTime()+Math.floor(Math.random()*100),a=Vs(u),s=J({fontSize:18,tableList:[],selectKey:null,details:{},selectCheckboxs:[]}),c=async()=>{t.value=!0,p.value=!0;try{const{data:r}=await Ns({type:"COURSEWARE"});if(s.tableList=r||[],s.tableList.length>0){const l=s.tableList[0].lessonCoursewareDetailKnowledgeDetailList;if(s.tableList[0].selected=!0,l&&l.length){const h=l[0];s.selectKey=h.id,await d()}s.tableList.forEach(h=>{h.checked=!1,h.indeterminate=!1})}}catch(r){}p.value=!1,t.value=!1},d=async()=>{p.value=!0;try{const{data:r}=await Os({id:s.selectKey});p.value=!1,s.details=r,xe(()=>{var B;const h=new DOMParser().parseFromString(r.desc,"text/html"),w=document.querySelectorAll(".only-child-select");w.length>0&&w.forEach(v=>{v.remove()});const f=h.body.childNodes;f==null||f.forEach(v=>{v==null||v.classList.add("only-child-select")}),(B=document.querySelector("#"+u))==null||B.appendChild(a.processNode(h.body))})}catch(r){}p.value=!1},E=()=>{const r=[];for(const h in s.selectCheckboxs){const w=s.selectCheckboxs[h],f=s.tableList[h];Array.isArray(f.lessonCoursewareDetailKnowledgeDetailList)&&f.lessonCoursewareDetailKnowledgeDetailList.forEach(B=>{w.includes(B.id)&&r.push(B)})}const l=[];r.forEach(h=>{l.push({coverImg:At.THEORY_DEFAULT_COVER,title:"乐理知识-"+h.name,materialId:h.id,content:h.id})}),i("confirm",l)};return se(()=>{c()}),()=>{var r;return e("div",{class:T.container},[e("div",{class:[T.wrap]},[e("div",{class:T.content},[e("div",{class:T.contentWrap},[e("div",{class:T.directoryList},[e("div",{class:[T.scrollBar,!t.value&&s.tableList.length<=0?T.empty:""],style:{height:"100%"}},[e(we,{show:t.value,style:{height:"100%"}},{default:()=>[e("div",{class:[T.listSection]},[s.tableList.map((l,h)=>e("div",{class:[T.treeParent,l.selected&&T.treeParentSelected],key:"parent"+h},[e("div",{class:[T.treeItem,T.parentItem],onClick:()=>{s.tableList.forEach(w=>{l.id!==w.id&&(w.selected=!1)}),l.selected=!l.selected}},[l.lessonCoursewareDetailKnowledgeDetailList&&l.lessonCoursewareDetailKnowledgeDetailList.length>0&&e("span",{class:[T.arrow,l.selected?T.arrowSelect:""]},null),e("p",{class:[T.title,l.selected?T.titleSelect:""]},[e("span",{class:[T.dir,l.selected?T.dirSelect:""]},null),e("p",null,[l.name])]),e("div",{class:T.checkbox,onClick:w=>{w.stopPropagation()}},[e(Nt,{checked:l.checked,indeterminate:l.indeterminate,"onUpdate:checked":w=>{l.checked=w;const f=l.lessonCoursewareDetailKnowledgeDetailList||[];if(w){const B=[];f.forEach(v=>{B.push(v.id)}),s.selectCheckboxs[h]=B}else s.selectCheckboxs[h]=[];l.indeterminate=!1}},null)])]),e(bu,{value:s.selectCheckboxs[h],"onUpdate:value":w=>{s.selectCheckboxs[h]=w;const f=l.lessonCoursewareDetailKnowledgeDetailList||[];w.length<=0?(l.checked=!1,l.indeterminate=!1):w.length===f.length?(l.checked=!0,l.indeterminate=!1):(l.checked=!1,l.indeterminate=!0)}},{default:()=>[l.selected&&l.lessonCoursewareDetailKnowledgeDetailList&&l.lessonCoursewareDetailKnowledgeDetailList.map((w,f)=>e("div",{key:"child"+f,class:[T.treeItem,T.childItem,T.animation,s.selectKey===w.id?T.childSelect:""],onClick:()=>{s.selectKey!==w.id&&(s.selectKey=w.id,d(),a.onCloseSpeak(),o.value.$el.scrollTo(0,0))}},[e("span",{class:T.childArrow},null),e("p",{class:T.title},[w.name]),e("div",{class:T.checkbox,onClick:B=>B.stopPropagation()},[e(Nt,{value:w.id},null)])]))]})]))])]}),!t.value&&s.tableList.length<=0&&e(ve,{style:{height:"100%"}},null)])]),e("div",{class:T.musicStaff},[e("div",{class:T.musicTitleRight},[a.isSpeak.value?e("span",{class:T.textClose,onClick:a.onCloseSpeak},[e("i",{class:T.icon},null),F("关闭朗读")]):e("span",{class:T.textRead,onClick:a.onAllSpeak},[e("i",{class:T.icon},null),F("全文朗读")])]),e(we,{show:p.value,ref:o,class:!p.value&&!((r=s.details)!=null&&r.desc)?T.empty:""},{default:()=>{var l,h;return[(l=s.details)!=null&&l.desc?e("div",{class:T.musicContent,id:u,style:{fontSize:s.fontSize+"px"}},[e("div",{id:"selectionCouser",class:[T.selectionCouser,!a.showDom.value&&T.hide]},[e("span",{class:T.textStart,onClick:a.onTextStart},[F("开始朗读"),e("i",{class:T.icon},null)]),e("span",{class:T.textReadOnly,onClick:a.onTextReadOnly},[F("只读这段"),e("i",{class:T.icon},null)])])]):"",!p.value&&!((h=s.details)!=null&&h.desc)&&e(ve,null,null)]}})]),e("div",{class:T.changeSizeSection},[e("img",{src:Ws,class:T.iconT},null),e("img",{src:Us,class:T.iconAddT,onClick:()=>{s.fontSize>=32||(s.fontSize+=1)}},null),e(zs,{value:s.fontSize,"onUpdate:value":l=>s.fontSize=l,vertical:!0,min:12,max:32},null),e("img",{src:Gs,class:T.iconPlusT,onClick:()=>{s.fontSize<=12||(s.fontSize-=1)}},null)])])])]),e(ee,{class:T.btnGroup,justify:"center"},{default:()=>[e(K,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(K,{round:!0,type:"primary",onClick:E},{default:()=>[F("确认添加")]})]})])}}}),gl="_container_19ipk_1",fl="_iconBack_19ipk_1",Cl="_separator_19ipk_40",hl="_wrap_19ipk_45",Fl="_listWrap_19ipk_49",El="_listWrapEmpty_19ipk_54",wl="_btnGroup_19ipk_91",Ve={container:gl,iconBack:fl,separator:Cl,wrap:hl,listWrap:Fl,listWrapEmpty:El,btnGroup:wl},Al="_searchGroup_1euh7_1",vl="_btnType_1euh7_5",Bl="_swipeControll_1euh7_13",yl="_leftIcon_1euh7_16",bl="_disabled_1euh7_28",_l="_carouselGroup_1euh7_42",Sl="_carouselContainer_1euh7_46",Il="_inputSearch_1euh7_57",Dl="_searchCatatory_1euh7_78",kl="_addTrain_1euh7_85",Ll="_searchGroups_1euh7_97",xl="_list_1euh7_100",Tl="_itemWrap_1euh7_111",Rl="_itemWrapBox_1euh7_116",jl="_itemCard_1euh7_124",Pl="_itemImgSection_1euh7_128",Ml="_itemTag_1euh7_134",Nl="_iconCheck_1euh7_161",Ol="_img_1euh7_170",Vl="_itemImgSectionSelected_1euh7_180",Wl="_itemTitle_1euh7_187",re={searchGroup:Al,btnType:vl,swipeControll:Bl,leftIcon:yl,disabled:bl,carouselGroup:_l,carouselContainer:Sl,inputSearch:Il,searchCatatory:Dl,addTrain:kl,searchGroups:Ll,list:xl,itemWrap:Tl,itemWrapBox:Rl,itemCard:jl,itemImgSection:Pl,itemTag:Ml,iconCheck:Nl,img:Ol,itemImgSectionSelected:Vl,itemTitle:Wl};function Ul(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!Te(n)}const Gl=G({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(n,{emit:i}){const t=J({currentIndex:0,keyword:"",wikiCategoryId:n.wikiCategoryId||"",maxIndex:0}),p=J({showSlide:!1}),o=()=>{i("search",t)},u=W(),a=s=>{var c,d;s==="left"?(c=u.value)==null||c.prev():s==="right"&&((d=u.value)==null||d.next())};return se(async()=>{Du.nextTick(()=>{const s=document.querySelector(".carouselContainer"),c=s&&s.getBoundingClientRect().width||0,d=document.querySelectorAll(".n-carousel__slide");let E=0;d.forEach(r=>{const l=r.getBoundingClientRect();E+=l.width}),E>=c&&(p.showSlide=!0)})}),()=>{let s;return e("div",{class:re.searchGroup},[e("div",{class:[re.searchCatatory]},[e(ee,{size:"small",class:re.btnType},{default:()=>[n.categoryChildList.length>0?e(K,{type:t.wikiCategoryId===n.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==n.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=n.wikiCategoryId,o()}},{default:()=>[F("全部")]}):"",e("div",{class:re.carouselGroup},[e($t,{ref:u,slidesPerView:"auto",loop:!1,class:[re.carouselContainer,"carouselContainer"],showDots:!1,draggable:p.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":c=>{t.currentIndex=c}},Ul(s=n.categoryChildList.map(c=>e(bt,null,{default:()=>[e(K,{type:t.wikiCategoryId===c.id?"primary":"default",secondary:t.wikiCategoryId!==c.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=c.id,o()}},{default:()=>[c.name]})]})))?s:{default:()=>[s]}),p.showSlide&&e(ee,{class:re.swipeControll},{default:()=>[e("div",{onClick:()=>a("left")},[e(ge,{previewDisabled:!0,class:[re.leftIcon],src:$e},null)]),e("div",{onClick:()=>a("right")},[e(ge,{previewDisabled:!0,src:$e},null)])]})])]}),e(zt,{class:re.inputSearch,placeholder:"请输入音乐家名称",round:!0,onSearch:c=>{t.keyword=c,o()}},null)])])}}}),zl=G({name:"musician-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["confirm"],setup(n,{emit:i}){Qe();const t=J({searchWord:"",loading:!1,pageTotal:0,finshed:!1,pagination:{page:1,rows:18},searchGroup:{type:"MUSICIAN",keyword:"",wikiCategoryId:n.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async(a=!0)=>{a&&(t.loading=!0);try{const{data:s}=await Kt({...t.pagination,...t.searchGroup}),c=s.rows||[];c.forEach(d=>{d.knowledgeWikiCategories&&d.knowledgeWikiCategories.length&&(d.categories=d.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)}),t.tableList.push(...c),t.pageTotal=Number(s.total),t.finshed=s.pages<=s.current}catch(s){}t.loading=!1},o=async a=>{t.pagination.page=1,t.searchGroup=Object.assign(t.searchGroup,a),t.tableList=[],p()},u=a=>{const s=n.selectItems||[],c=s.findIndex(d=>d.id===a.id);c!==-1?s.splice(c,1):s.push(a),i("confirm",s)};return se(()=>{p()}),()=>e("div",{class:re.instrumentList},[e(Gl,{class:re.searchGroups,categoryChildList:n.categoryChildList||[],onSearch:a=>o(a),wikiCategoryId:n.categoryId},null),e(be,{class:re.listContainer,style:{"max-height":"50vh"},onScroll:a=>{var E,r,l;const s=(E=a.target)==null?void 0:E.clientHeight,c=(r=a.target)==null?void 0:r.scrollTop,d=(l=a.target)==null?void 0:l.scrollHeight;s+c+20>=d&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p(!1))}},{default:()=>[e(we,{show:t.loading,"onUpdate:show":a=>t.loading=a,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:re.list},[t.tableList.map(a=>e("div",{class:re.itemWrap,onClick:()=>{t.item={content:a.id,title:a.name,type:"MUSICIAN"},t.show=!0}},[e("div",{class:re.itemWrapBox},[e("div",{class:re.itemCard},[e("div",{class:[re.itemImgSection,n.selectItems.findIndex(s=>s.id===a.id)!==-1&&re.itemImgSectionSelected]},[e(ge,{src:a.avatar,class:re.img,objectFit:"cover",previewDisabled:!0},null),e("i",{class:[re.iconCheck],onClick:s=>{s.stopPropagation(),u(a)}},null)]),e("div",{class:re.itemTitle},[a.name])])])])),!t.loading&&t.tableList.length<=0&&e(ve,{style:{minHeight:"50vh"},description:"暂无音乐家"},null)])]})]}),e(yt,{size:"large",show:t.show,"onUpdate:show":a=>t.show=a,item:t.item},null)])}});function Kl(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!Te(n)}const ql=G({name:"content-instrument",emits:["confirm","close"],setup(n,{emit:i}){const t=J({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await qt({type:"MUSICIAN",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&xe(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const o=async()=>{const u=[];t.selectItems.forEach(a=>{u.push({coverImg:At.MUSICIAN_DEFAULT_COVER,title:"音乐家-"+a.name,materialId:a.id,content:a.id})}),i("confirm",u)};return()=>{let u;return e("div",{class:Ve.container},[e("div",{class:Ve.wrap},[e("div",{class:[Ve.listWrap,!t.loading&&t.categoryList.length<=0&&Ve.listWrapEmpty]},[!t.loading&&t.categoryList.length<=0&&e(ve,{description:"暂无音乐家"},null),e("div",{style:{minHeight:"55vh"}},[e(Je,{defaultValue:"myResources",paneClass:Ve.paneTitle,justifyContent:"center",paneWrapperClass:Ve.paneWrapperContainer,"onUpdate:value":[a=>{sessionStorage.setItem("content-instrument-tab",a)},a=>t.tabValue=a],value:t.tabValue},Kl(u=t.categoryList.map(a=>e(Ye,{name:"name-".concat(a.id),tab:a.name},{default:()=>[e(zl,{selectItems:t.selectItems,categoryId:a.id,categoryChildList:a.childrenList,onConfirm:s=>{t.selectItems=s||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ee,{class:Ve.btnGroup,justify:"center"},{default:()=>[e(K,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(K,{round:!0,type:"primary",onClick:o},{default:()=>[F("确认添加")]})]})])}}}),Hl="_container_1o74q_1",$l="_separator_1o74q_36",Ql="_wrap_1o74q_41",Jl="_listWrap_1o74q_44",Yl="_listWrapEmpty_1o74q_49",Xl="_btnGroup_1o74q_60",We={container:Hl,separator:$l,wrap:Ql,listWrap:Jl,listWrapEmpty:Yl,btnGroup:Xl},Zl="_searchGroup_gol4m_1",er="_btnType_gol4m_5",tr="_swipeControll_gol4m_12",ur="_leftIcon_gol4m_15",sr="_disabled_gol4m_27",ar="_carouselGroup_gol4m_41",or="_carouselContainer_gol4m_44",nr="_inputSearch_gol4m_55",lr="_searchCatatory_gol4m_76",rr="_border_gol4m_83",ir="_addTrain_gol4m_87",cr="_searchGroups_gol4m_99",dr="_instrumentList_gol4m_102",pr="_list_gol4m_106",mr="_itemWrap_gol4m_115",gr="_itemWrapBox_gol4m_122",fr="_iconCheck_gol4m_130",Cr="_itemCard_gol4m_139",hr="_musicBg_gol4m_157",Fr="_itemName_gol4m_163",Er="_itemImgSectionSelected_gol4m_168",wr="_popSelect_gol4m_171",Ar="_spaceSection_gol4m_181",vr="_textBtn_gol4m_184",Br="_iconArrow_gol4m_195",yr="_textBtnActive_gol4m_204",Q={searchGroup:Zl,btnType:er,swipeControll:tr,leftIcon:ur,disabled:sr,carouselGroup:ar,carouselContainer:or,inputSearch:nr,searchCatatory:lr,border:rr,addTrain:ir,searchGroups:cr,instrumentList:dr,list:pr,itemWrap:mr,itemWrapBox:gr,iconCheck:fr,itemCard:Cr,musicBg:hr,itemName:Fr,itemImgSectionSelected:Er,popSelect:wr,spaceSection:Ar,textBtn:vr,iconArrow:Br,textBtnActive:yr};function pu(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!Te(n)}const br=G({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(n,{emit:i}){const t=J({keyword:"",wikiCategoryId:n.wikiCategoryId||"",wikiCategoryIdChild:"",childIds:[],currentIndex:0}),p=W(),o=()=>{i("search",t)},u=(d,E)=>{const r={};return d==null||d.forEach(l=>{l.id===t.wikiCategoryIdChild&&(r.selected=!0,r.name=l.name)}),r},a=$(()=>{const E=(n.categoryChildList||[]).find(r=>r.id===t.wikiCategoryId);if(E&&E.childrenList.length){const r=[];return E.childrenList.forEach(l=>{const h=l.childrenList,w=[];h&&h.length>0&&(w.push({label:"全部",value:l.id,name:l.name,id:l.id}),h.forEach(f=>{w.push({label:f.name,value:f.id,name:f.name,id:f.id})})),r.push({...l,childrenList:w})}),[{label:"全部",value:"",id:"",name:"全部",childrenList:[]},...r]}return[]}),s=J({showSlide:!1}),c=d=>{var E,r;d==="left"?(E=p.value)==null||E.prev():d==="right"&&((r=p.value)==null||r.next())};return se(()=>{xe(()=>{const d=document.querySelector(".carouselContainer"),E=d&&d.getBoundingClientRect().width||0,r=document.querySelectorAll(".n-carousel__slide");let l=0;r.forEach(h=>{const w=h.getBoundingClientRect();l+=w.width}),l>=E&&(s.showSlide=!0)})}),()=>{let d,E;return e("div",{class:Q.searchGroup},[e("div",{class:[Q.searchCatatory,a.value.length>0?Q.border:""]},[e(ee,{size:"small",class:Q.btnType},{default:()=>[n.categoryChildList.length>0?e(K,{type:t.wikiCategoryId===n.wikiCategoryId?"primary":"default",secondary:t.wikiCategoryId!==n.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=n.wikiCategoryId,t.wikiCategoryIdChild="",o()}},{default:()=>[F("全部")]}):e("span",null,null),e("div",{class:[Q.carouselGroup]},[e($t,{ref:p,slidesPerView:"auto",loop:!1,class:[Q.carouselContainer,"carouselContainer"],showDots:!1,draggable:s.showSlide,currentIndex:t.currentIndex,"onUpdate:currentIndex":r=>{t.currentIndex=r}},pu(d=n.categoryChildList.map(r=>e(bt,null,{default:()=>[e(K,{type:t.wikiCategoryId===r.id?"primary":"default",secondary:t.wikiCategoryId!==r.id,round:!0,size:"small",focusable:!1,onClick:()=>{t.wikiCategoryId=r.id,o()}},{default:()=>[r.name]})]})))?d:{default:()=>[d]}),s.showSlide&&e(ee,{class:Q.swipeControll},{default:()=>[e("div",{onClick:()=>c("left")},[e(ge,{previewDisabled:!0,class:[Q.leftIcon],src:$e},null)]),e("div",{onClick:()=>c("right")},[e(ge,{previewDisabled:!0,src:$e},null)])]})])]}),e(zt,{class:Q.inputSearch,placeholder:"请输入曲目名称",round:!0,onSearch:r=>{t.keyword=r,o()}},null)]),a.value.length>0&&e("div",{class:[Q.collapseWrap]},[e(ee,{class:[Q.spaceSection]},pu(E=a.value.map((r,l)=>e(Ae,null,[r.childrenList.length>0?e(Ut,{options:r.childrenList,trigger:"hover",value:t.wikiCategoryIdChild,"onUpdate:value":[h=>t.wikiCategoryIdChild=h,()=>{o()}],key:r.id,class:Q.popSelect},{default:()=>[e("span",{class:[Q.textBtn,u(r.childrenList).selected&&Q.textBtnActive]},[u(r.childrenList).name||r.name,e("i",{class:Q.iconArrow},null)])]}):e("span",{class:[Q.textBtn,t.wikiCategoryIdChild===r.id&&Q.textBtnActive],onClick:()=>{t.wikiCategoryIdChild=r.id,o()}},[r.name])])))?E:{default:()=>[E]})])])}}}),_r=G({name:"music-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]},selectItems:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(n,{emit:i}){Qe();const t=J({searchWord:"",loading:!1,finshed:!1,pageTotal:0,pagination:{page:1,rows:18},searchGroup:{type:"MUSIC",keyword:"",wikiCategoryId:n.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),p=async()=>{t.loading=!0;try{const{data:a}=await Kt({...t.pagination,...t.searchGroup});t.tableList.push(...a.rows),t.pageTotal=Number(a.total),t.finshed=a.pages<=a.current}catch(a){}t.loading=!1},o=async a=>{t.pagination.page=1,t.tableList=[];const{wikiCategoryIdChild:s,wikiCategoryId:c,keyword:d}=a;t.searchGroup=Object.assign(t.searchGroup,{wikiCategoryId:s||c,keyword:d}),p()},u=a=>{const s=n.selectItems||[],c=s.findIndex(d=>d.id===a.id);c!==-1?s.splice(c,1):s.push(a),i("confirm",s)};return se(()=>{p()}),()=>e("div",{class:Q.instrumentList},[e(br,{class:Q.searchGroups,categoryChildList:n.categoryChildList||[],wikiCategoryId:n.categoryId,onSearch:a=>o(a)},null),e(be,{class:Q.listContainer,style:{"max-height":"50vh"},onScroll:a=>{var E,r,l;const s=(E=a.target)==null?void 0:E.clientHeight,c=(r=a.target)==null?void 0:r.scrollTop,d=(l=a.target)==null?void 0:l.scrollHeight;s+c+20>=d&&!t.finshed&&!t.loading&&(t.pagination.page=t.pagination.page+1,p())}},{default:()=>[e(we,{show:t.loading,"onUpdate:show":a=>t.loading=a,style:{"min-height":"50vh"}},{default:()=>[e("div",{class:Q.list},[t.tableList.map(a=>e("div",{class:Q.itemWrap,onClick:()=>{t.item={content:a.id,title:a.name,type:"MUSIC_WIKI"},t.show=!0}},[e("div",{class:Q.itemWrapBox},[e("div",{class:[Q.itemCard,n.selectItems.findIndex(s=>s.id===a.id)!==-1&&Q.itemImgSectionSelected]},[e("div",{class:Q.itemName},[e("img",{src:a.avatar||Ks,class:Q.musicBg},null),e("span",{class:Q.name},[a.name])]),e("i",{class:[Q.iconCheck],onClick:s=>{s.stopPropagation(),u(a)}},null)])])])),!t.loading&&t.tableList.length<=0&&e(ve,{style:{minHeight:"50vh"},description:"暂无名曲鉴赏"},null)])]})]}),e(yt,{size:"large",show:t.show,"onUpdate:show":a=>t.show=a,item:t.item},null)])}});function Sr(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!Te(n)}const Ir=G({name:"content-music",emits:["close","confirm"],setup(n,{emit:i}){const t=J({tabValue:"",categoryList:[],loading:!1,selectItems:[]});(async()=>{t.loading=!0;try{const{data:u}=await qt({type:"MUSIC",page:1,rows:99});t.categoryList=u.rows||[],t.categoryList.length&&xe(()=>{t.tabValue="name-"+t.categoryList[0].id})}catch(u){}t.loading=!1})();const o=async()=>{const u=[];t.selectItems.forEach(a=>{u.push({coverImg:At.MUSIC_DEFAULT_COVER,title:"名曲鉴赏-"+a.name,materialId:a.id,content:a.id})}),i("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(ve,{description:"暂无名曲鉴赏"},null),e("div",{style:{minHeight:"55vh"}},[e(Je,{defaultValue:"myResources",paneClass:We.paneTitle,justifyContent:"center",paneWrapperClass:We.paneWrapperContainer,value:t.tabValue,"onUpdate:value":a=>t.tabValue=a},Sr(u=t.categoryList.map(a=>e(Ye,{name:"name-".concat(a.id),tab:a.name},{default:()=>[e(_r,{selectItems:t.selectItems,categoryId:a.id,categoryChildList:a.childrenList,onConfirm:s=>{t.selectItems=s||[]}},null)]})))?u:{default:()=>[u]})])])]),e(ee,{class:We.btnGroup,justify:"center"},{default:()=>[e(K,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(K,{round:!0,type:"primary",onClick:o},{default:()=>[F("确认添加")]})]})])}}}),Dr="_btnGroupModal_1ug7x_1",kr="_subjectSync_1ug7x_8",Lr="_tips_1ug7x_11",xr="_subjectList_1ug7x_49",Tr="_subjectItem_1ug7x_56",Rr="_imgSection_1ug7x_56",jr="_iconSelect_1ug7x_77",Pr="_subjectName_1ug7x_85",Mr="_subjectSelect_1ug7x_89",_e={btnGroupModal:Dr,subjectSync:kr,tips:Lr,subjectList:xr,subjectItem:Tr,imgSection:Rr,iconSelect:jr,subjectName:Pr,subjectSelect:Mr};function Nr(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!Te(n)}const Or=G({name:"subject-sync",props:{subjectId:{type:[String,Number],default:""}},emits:["close","confirm"],setup(n,{emit:i}){const t=ot();Re();const p=W(""),o=wt(),u=W([]),a=W([]),s={Panpipes:"https://oss.dayaedu.com/ktqy/17103860536976fd4a751.png",Ocarina:"https://oss.dayaedu.com/ktqy/17143623857205dba41a5.png","Alto Ocarina":"https://oss.dayaedu.com/ktqy/17143623857205dba41a5.png",Whistling:"https://oss.dayaedu.com/ktqy/1714362351692fcf8c0b8.png","Soprano Ocarina":"https://oss.dayaedu.com/ktqy/1714362351692fcf8c0b8.png",Woodwind:"https://oss.dayaedu.com/ktqy/17103860536966826c50d.png",Hulusi:"https://oss.dayaedu.com/ktqy/17103860536966826c50d.png","Tenor Recorder":"https://oss.dayaedu.com/ktqy/17103860536950592e357.png","German Recorder":"https://oss.dayaedu.com/ktqy/17103860536950592e357.png",Nai:"https://oss.dayaedu.com/ktqy/1710386053697af4aa985.png",Melodica:"https://oss.dayaedu.com/ktqy/1710386053697af4aa985.png","Baroque Recorder":"https://oss.dayaedu.com/ktqy/1710386053698031e847a.png"},c=()=>{if(u.value.length<=0){o.error("至少选择一个声部进行同步");return}const E=[];u.value.forEach(r=>{const l=a.value.find(h=>h.id===r);if(console.log(l,"item",l.code),l){const h=l.code?l.code.split(",")[0]:"";E.push({materialId:l.id,instrumentIds:l.id,coverImg:s[h]||s.Panpipes,dataJson:null,title:l.name,isCollect:!1,isSelected:!1,content:l.code})}}),i("confirm",{subjectIds:u.value,subjectCode:E})},d=()=>{const E=t.getEnableSubjects,r=[];E.forEach(l=>{p.value===""&&l.instruments?r.push(...l.instruments):p.value&&l.instruments&&Number(p.value)===l.id&&r.push(...l.instruments)}),a.value=r};return se(async()=>{await t.getSubjects(),d(),n.subjectId&&(u.value=[Number(n.subjectId)])}),()=>{let E;return e("div",{class:_e.subjectSync},[e(Je,{defaultValue:"",paneClass:_e.paneTitle,justifyContent:"start",paneWrapperClass:_e.paneWrapperContainer,value:p.value,"onUpdate:value":r=>{p.value=r,d()}},Nr(E=[{name:"全部声部",id:""},...t.getEnableSubjects].map(r=>e(Ye,{name:"".concat(r.id),tab:r.name,displayDirective:"if"},null)))?E:{default:()=>[E]}),e(be,{style:{maxHeight:"50vh",minHeight:"50vh"}},{default:()=>[e("div",{class:_e.subjectList},[a.value.map(r=>e("div",{class:[_e.subjectItem,u.value.includes(r.id)?_e.subjectSelect:""],onClick:()=>{if(u.value.includes(r.id)){const l=u.value.indexOf(r.id);u.value.splice(l,1)}else u.value.push(r.id)}},[e("div",{class:_e.imgSection},[e("img",{src:r.img},null),u.value.includes(r.id)&&e("img",{src:qs,class:_e.iconSelect},null)]),e("p",{class:_e.subjectName},[r.name])]))])]}),e(ee,{class:_e.btnGroupModal,justify:"center"},{default:()=>[e(K,{round:!0,onClick:()=>i("close")},{default:()=>[F("取消")]}),e(K,{round:!0,type:"primary",onClick:c},{default:()=>[F("确定")]})]})])}}}),Vr=G({name:"add-other-source",emits:["close","comfirm"],setup(n,{emit:i}){Re();const t=Qe(),p=W([{image:Dn,name:"上传资源",index:7},{image:Bn,name:"听音练习",index:0},{image:yn,name:"节奏练习",index:1},{image:bn,name:"乐器百科",index:2},{image:In,name:"名曲鉴赏",index:3},{image:Sn,name:"音乐家",index:4},{image:_n,name:"乐理知识",index:5}]),o=J({listenStatus:!1,rhythmStatus:!1,theoryStatus:!1,musicStatus:!1,instrumentStatus:!1,musicianStatus:!1,uploadStatus:!1,saveStatus:!1,editStatus:!1,editList:[],editIds:[],editOverIds:[]}),u=a=>{switch(a.index){case 0:o.listenStatus=!0;break;case 1:o.rhythmStatus=!0;break;case 2:o.instrumentStatus=!0;break;case 3:o.musicStatus=!0;break;case 4:o.musicianStatus=!0;break;case 5:o.theoryStatus=!0;break;case 6:x.emit("pageBeforeLeave",()=>{sessionStorage.setItem("notation-open-create","1"),t.push("/notation")});break;case 7:o.saveStatus=!0;break}};return()=>e(Ae,null,[e("div",{class:Fe.addOtherSource},[p.value.map(a=>e("div",{class:Fe.sourceItem,onClick:()=>u(a)},[e(ge,{class:Fe.coverImg,src:a.image,previewDisabled:!0},null),e("p",{class:Fe.name},[a.name])]))]),e(oe,{maskClosable:ne,show:o.rhythmStatus,"onUpdate:show":a=>o.rhythmStatus=a,preset:"card",class:["modalTitle background",Fe.addOtherSourceModal],title:"节奏练习"},{default:()=>[e(xn,{onClose:()=>o.rhythmStatus=!1,onConfirm:a=>{o.rhythmStatus=!1,i("comfirm",{materialId:null,coverImg:a.coverImg,dataJson:a.dataJson,title:"节奏练习",isCollect:!1,isSelected:!1,content:null,type:"RHYTHM"}),i("close")}},null)]}),e(oe,{maskClosable:ne,show:o.instrumentStatus,"onUpdate:show":a=>o.instrumentStatus=a,preset:"card",class:["modalTitle",Fe.instrumentModal],title:"乐器百科"},{default:()=>[e(pl,{onClose:()=>o.instrumentStatus=!1,onConfirm:a=>{o.instrumentStatus=!1;const s=a||[],c=[];s.forEach(d=>{c.push({materialId:d.materialId,coverImg:d.coverImg,dataJson:null,title:d.title,isCollect:!1,isSelected:!1,content:d.content,type:"INSTRUMENT"})}),i("comfirm",c),i("close")}},null)]}),e(oe,{maskClosable:ne,show:o.theoryStatus,"onUpdate:show":a=>o.theoryStatus=a,preset:"card",class:["modalTitle",Fe.theoryModal],title:"乐理知识"},{default:()=>[e(ml,{onClose:()=>o.theoryStatus=!1,onConfirm:a=>{o.theoryStatus=!1;const s=a||[],c=[];s.forEach(d=>{c.push({materialId:d.materialId,coverImg:d.coverImg,dataJson:null,title:d.title,isCollect:!1,isSelected:!1,content:d.content,type:"THEORY"})}),i("comfirm",c),i("close")}},null)]}),e(oe,{maskClosable:ne,show:o.musicianStatus,"onUpdate:show":a=>o.musicianStatus=a,preset:"card",class:["modalTitle",Fe.instrumentModal],title:"音乐家"},{default:()=>[e(ql,{onClose:()=>o.musicianStatus=!1,onConfirm:a=>{o.musicianStatus=!1;const s=a||[],c=[];s.forEach(d=>{c.push({materialId:d.materialId,coverImg:d.coverImg,dataJson:null,title:d.title,isCollect:!1,isSelected:!1,content:d.content,type:"MUSICIAN"})}),i("comfirm",c),i("close")}},null)]}),e(oe,{maskClosable:ne,show:o.musicStatus,"onUpdate:show":a=>o.musicStatus=a,preset:"card",class:["modalTitle",Fe.musicModal],title:"名曲鉴赏"},{default:()=>[e(Ir,{onClose:()=>o.musicStatus=!1,onConfirm:a=>{o.musicStatus=!1;const s=a||[],c=[];s.forEach(d=>{c.push({materialId:d.materialId,coverImg:d.coverImg,dataJson:null,title:d.title,isCollect:!1,isSelected:!1,content:d.content,type:"MUSIC_WIKI"})}),i("comfirm",c),i("close")}},null)]}),e(oe,{maskClosable:ne,show:o.listenStatus,"onUpdate:show":a=>o.listenStatus=a,preset:"card",class:["modalTitle background",Fe.subjectSyncModal],title:"选择乐器"},{default:()=>[e(Or,{onClose:()=>o.listenStatus=!1,onConfirm:async a=>{try{o.musicStatus=!1;const s=a.subjectCode||[],c=[];s.forEach(d=>{c.push({materialId:d.materialId,instrumentIds:d.instrumentIds,coverImg:d.coverImg,dataJson:null,title:d.title,isCollect:!1,isSelected:!1,content:d.content,type:"LISTEN"})}),o.listenStatus=!1,i("comfirm",c),i("close")}catch(s){}}},null)]}),e(oe,{maskClosable:ne,show:o.uploadStatus,"onUpdate:show":a=>o.uploadStatus=a,preset:"card",showIcon:!1,class:["modalTitle background",Fe.attendClassModal],title:o.editStatus?"修改资源":"上传资源",blockScroll:!1},{default:()=>[e(Hs,{editStatus:o.editStatus,onClose:()=>{o.uploadStatus=!1},onConfirm:a=>{o.editIds=[],o.editList=[],o.editOverIds=[],o.saveStatus=!1;try{o.musicStatus=!1;const s=a||[],c=[];s.forEach(d=>{c.push({instrumentIds:d.instrumentIds,materialId:d.id,coverImg:d.coverImg,dataJson:null,title:d.name,isCollect:!1,isSelected:!1,content:d.content,type:d.type})}),i("comfirm",c),i("close")}catch(s){}},list:o.editList},null)]}),e(oe,{maskClosable:ne,show:o.saveStatus,"onUpdate:show":a=>o.saveStatus=a,preset:"card",showIcon:!1,class:["modalTitle background",Fe.attendClassSaveModal],title:"上传资源",blockScroll:!1},{default:()=>[e($s,{onClose:()=>o.saveStatus=!1,onConfrim:a=>{const s=a||[],c=[];s.forEach(d=>{c.push({subjectIds:null,openFlag:!1,coverImg:d.coverImg,title:d.name||"",type:Qs(d.content),enableFlag:1,content:d.content,id:null})}),o.editList=c,o.uploadStatus=!0,o.editStatus=!1}},null)]})])}}),Wr="_protocolModal_6k92d_1",Ur="_dingPng_6k92d_4",Gr="_downMove_6k92d_13",zr="_downMoveBg_6k92d_21",Kr="_closeAble_6k92d_28",qr="_submitAppBtn_6k92d_54",Hr="_cancelBtn_6k92d_55",$r="_protocolGroup_6k92d_65",Qr="_checkbox_6k92d_75",Jr="_checkboxActive_6k92d_83",Yr="_protocolSection_6k92d_90",Xr="_protocolContent_6k92d_123",Zr="_child_6k92d_134",ie={protocolModal:Wr,dingPng:Ur,downMove:Gr,downMoveBg:zr,closeAble:Kr,submitAppBtn:qr,cancelBtn:Hr,protocolGroup:$r,checkbox:Qr,checkboxActive:Jr,protocolSection:Yr,protocolContent:Xr,child:Zr},ei=""+new URL("dingPng-b63c3ae2.png",import.meta.url).href,mu=""+new URL("moveTop-6b6421db.png",import.meta.url).href,gu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAi9JREFUaEPt2a9LBEEUwPHvBUFEg0EQ0SD+BTaLSbCYTAo2k0WDlvMHCCJisWgwWRVMJoNgMtj8CwSDv8BgUhEElYFdWZe7nbcz78Fx7Na7ebOfeTtvZnZrtMlVaxMHFaTVMlllpMqI0QhIHq0hYBx4Ay6AT6N7ScN2ApNAN3AF3Ev680GGgT2gIwn2AKwDr5LgAf/pBXaAwaTtF7AC3Pli+SALwFQuyCOwZoDJI9Juz4HDWMg8MN0giDamGcJ1fQYcxUL6gP3kec3H0sIUId6BJeAlFuLajwDbRhgfYgO49SHc7745ksawwKghykC0M6OKKAvRwqgjQiCxGBNEKCQUY4aIgfgwT8BqZtE0RcRCpJif3LYjW03dOiEusUVlWFp+i2IUlWaXme/M3skEoZERyTrTaBDUMpEG18hIWYw6QjMjUowJwgLiqtMuMNBkUj0DdYMjgHivJdm3FZXYbHutXfO/e9KaI1JE2rk6RgPiW+zcOuLO3/lLFRML8SHcYucgVueZv8GJgUgQ6aHI4jyjMkfKICSlOfoxC8lICMIcUxYSgzDFlIFoIMwwUogmwgQjgVgg1DE+SFfy7jd9F2txnvCV5mXgw7dH8kFmgbkGQbR3sUWYE+A4FrKYvOK3yET+3pph3KeMg1jIKLCVCaKdCQlmE7iJhbj2Y8BE8qHnFHBnCsurH5gBeoBL4FrSmW+OSGK0xH8qSEukIXMTVUaqjBiNQPVoGQ1scNi2ycgvTfaxM/Rb2jIAAAAASUVORK5CYII=",ti=G({name:"add-courseware-protocol",emits:["close","confirm"],setup(n,{emit:i}){const t=J({status:!1,protocolShow:!1});return()=>e("div",{class:ie.protocolModal},[e("img",{src:ei,class:ie.dingPng,alt:""},null),t.protocolShow?e("div",{class:ie.protocolSection},[e("img",{src:mu,class:ie.downMoveBg,alt:""},null),e("img",{src:gu,class:ie.closeAble,onClick:()=>{t.protocolShow=!1},alt:""},null),e("h2",null,[F("《音乐数字课堂课件与作业公开服务协议》")]),e(be,{style:{maxHeight:"45vh"}},{default:()=>[e("div",{class:ie.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:ie.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(ee,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(K,{class:ie.cancelBtn,round:!0,type:"default",onClick:()=>{t.protocolShow=!1}},{default:()=>[F("取消授权")]}),e(K,{class:ie.submitAppBtn,bordered:!1,round:!0,type:"primary",onClick:()=>{t.protocolShow=!1,t.status=!0}},{default:()=>[F("同意授权")]})]})]):e("div",{class:ie.downMove},[e("img",{src:mu,class:ie.downMoveBg,alt:""},null),e("img",{src:gu,class:ie.closeAble,onClick:()=>{i("close")},alt:""},null),e("h2",null,[F("课件公开须知")]),e("p",null,[F("公开课件后,您课件中的资源及作业都可被其他教师查看、使用,具体信息请查看服务协议")]),e("div",{class:ie.protocolGroup,onClick:()=>{t.status=!t.status}},[e("i",{class:[ie.checkbox,t.status&&ie.checkboxActive]},null),e("p",null,[F("我已阅读并同意"),e("span",{onClick:p=>{p.stopPropagation(),t.protocolShow=!0}},[F("《音乐数字课堂课件与作业公开服务协议》")])])]),e(ee,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(K,{class:ie.cancelBtn,round:!0,type:"default",onClick:()=>i("close")},{default:()=>[F("取消")]}),e(K,{class:ie.submitAppBtn,bordered:!1,round:!0,type:"primary",disabled:!t.status,onClick:()=>{i("confirm")}},{default:()=>[F("确定")]})]})])])}}),ui=G({name:"courseware-modal",props:{groupItem:{type:Object,default:()=>({})}},emits:["change"],setup(n,{emit:i}){const t=Gt(),p=Re(),o=wt(),u=J({subjects:[],openFlagEnable:!0,autoPlay:!1,name:"",openFlag:!1,createId:null,baseCoursewareList:[{name:"",id:null,list:[]}],baseInfo:{subjects:[],autoPlay:!1,name:"",openFlag:!1},coursewareList:[{name:"",id:null,list:[]}],loadingStatus:!1,showAttendClass:!1,attendClassType:"change",removeIds:[],editSubjectIds:"",addCoursewareVisiable:!1,addCoursewareItem:{},messageCallBack:null,messageOperation:{visiable:!1,loading:!1,type:"delete",contentDirection:"center",title:"删除知识点",content:"请确认是否删除该知识点,删除知识点后将同步删除知识点下的资源",cancelButtonText:"取消",confirmButtonText:"确认",index:0},show:!1,item:{},previewModal:!1,previewParams:{type:"",subjectId:"",detailId:""},addOtherSource:!1,addOtherIndex:0}),a=W(),s=W(!1),c=async()=>{u.loadingStatus=!0;try{if(!n.groupItem.id)return u.loadingStatus=!1;const{data:m}=await Xu(n.groupItem.id),y=m.chapterKnowledgeList||[];u.name=m.name,u.subjects=m.instrumentIds?m.instrumentIds.split(",").map(I=>I):[],u.openFlag=m.openFlag,u.openFlagEnable=m.openFlagEnable,u.autoPlay=m.autoPlay;const _=[];y.forEach(I=>{const k=I.chapterKnowledgeMaterialList,te=[];Array.isArray(k)&&k.length>0&&k.forEach(z=>{te.push({id:z.id,materialId:z.bizId,coverImg:z.bizInfo.coverImg,type:z.type,title:z.bizInfo.name,dataJson:z.dataJson,instrumentIds:z.instrumentIds,hasNotCheck:z.hasNotCheck,isError:d(z.instrumentIds,z.type,z.hasNotCheck),isSelected:z.source==="PLATFORM",audioPlayTypeArray:z.audioPlayTypes?z.audioPlayTypes.split(","):[],content:z.bizInfo.content,removeFlag:z.removeFlag})}),_.push({name:I.name,id:I.id,list:[...te]})}),u.coursewareList=_,u.baseCoursewareList=Mt(_),u.baseInfo=Mt({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),x.emit("updateCoursewareHeadInfo",{name:u.name,subjects:u.subjects,openFlag:u.openFlag,openFlagEnable:u.openFlagEnable,autoPlay:u.autoPlay})}catch(m){console.log(m)}u.loadingStatus=!1},d=(m,y,_=!1)=>{let I=!1;return u.subjects.length<=0?!0:["IMG","VIDEO","SONG","MUSIC","PPT","LISTEN"].includes(y)?(u.subjects.forEach(te=>{!(m!=null&&m.includes(te))&&!_&&(I=!0)}),I):!1},E=(m=!1)=>{m?o.error("您添加的资源与课件乐器不符"):o.success("添加成功")},r=(m,y)=>{const _=u.coursewareList[y];_&&(_.list.splice(m,1),x.emit("onCoursewareUpdate"))},l=(m,y,_)=>{const I=m.getBoundingClientRect();return y>=I.left&&y<=I.right&&_>=I.top&&_<=I.bottom},h=(m,y)=>{const _=m.getBoundingClientRect(),I=_.left+_.width/2;return y<I},w=(m,y,_)=>{if(m==="up"){if(y===0)return;const I=u.coursewareList[y-1];u.coursewareList[y-1]=u.coursewareList[y],u.coursewareList[y]=I}else if(m==="down"){if(y>=u.coursewareList.length-1)return;const I=u.coursewareList[y+1];u.coursewareList[y+1]=u.coursewareList[y],u.coursewareList[y]=I}else m==="remove"&&(u.messageOperation={visiable:!0,type:"delete",contentDirection:"left",title:"删除知识点",loading:!1,content:"请确认是否删除".concat(_.name?"【"+_.name+"】":"该知识点",",删除知识点后将同步删除知识点下的资源"),cancelButtonText:"取消",confirmButtonText:"确认",index:y})},f=async()=>{const m=u.messageOperation.type;if(m==="delete")u.coursewareList.splice(u.messageOperation.index,1),x.emit("onCoursewareUpdate");else if(m==="addItem")u.coursewareList.push({name:"",list:[]}),v(u.addCoursewareItem);else if(m==="save"||m==="pageLive"||m==="checkInstrument"){if(u.messageOperation.loading)return;if(!u.name){o.error("请输入课件标题"),u.messageOperation.visiable=!1;return}if(u.subjects.length<=0){o.error("请选择课件乐器"),u.messageOperation.visiable=!1;return}if(u.coursewareList.length<=0){o.error("未配置知识点"),u.messageOperation.visiable=!1;return}let y=!1;for(const I of u.coursewareList){if(!I.name){o.error("请输入知识点名称"),u.messageOperation.visiable=!1;return}Array.isArray(I.list)&&I.list.length<=0&&(y=!0)}if(y){o.error("请至少添加一个资源"),u.messageOperation.visiable=!1;return}if(g()&&m!=="checkInstrument")return;u.messageOperation.loading=!0;const _=await b();u.messageOperation.loading=!1,_&&((m==="pageLive"||m==="checkInstrument")&&typeof u.messageCallBack=="function"&&u.messageCallBack(),R())}u.messageOperation.visiable=!1};let B=null;const v=async(m,y,_=!1)=>{clearTimeout(B);const I=[];if(!_)try{const{data:k}=await eu(m.materialId);Array.isArray(k.materialRefs)&&k.materialRefs.forEach(te=>{if(te.refType==="STRONG"){const z=te.relateMaterialInfo||{};I.push({content:z.content,coverImg:z.coverImg,isSelected:z.sourceFrom==="PLATFORM",instrumentIds:z.instrumentIds,materialId:z.id,isError:d(z.instrumentIds,z.type),title:z.name,type:z.type})}})}catch(k){}xe(()=>{if(y){const te=document.querySelectorAll(".row-group")[m.index].querySelectorAll(".row-nav");let z=!1;te.forEach((Pe,Me)=>{if(l(Pe,y.x,y.y)){const De=u.coursewareList[m.index||0].list||[];h(Pe,y.x)?(I.forEach(Ze=>{De.splice(Me,0,Ze)}),De.splice(Me,0,m)):(De.splice(Me+1,0,m),I.forEach(Ze=>{De.splice(Me+1,0,Ze)})),z=!0,u.coursewareList[m.index||0].list=De}}),z||(u.coursewareList[m.index||0].list.push(m),I.forEach(Pe=>{u.coursewareList[m.index||0].list.push(Pe)}))}else u.coursewareList[m.index||0].list.push(m),I.forEach(k=>{u.coursewareList[m.index||0].list.push(k)});B=setTimeout(()=>{x.emit("onCoursewareUpdate")},100)})},D=async(m,y)=>{clearTimeout(B);const _=[];try{const{data:I}=await eu(m.materialId);Array.isArray(I.materialRefs)&&I.materialRefs.forEach(k=>{if(k.refType==="STRONG"){const te=k.relateMaterialInfo||{};_.push({content:te.content,coverImg:te.coverImg,isSelected:te.sourceFrom==="PLATFORM",instrumentIds:te.instrumentIds,isError:d(te.instrumentIds,te.type),materialId:te.id,title:te.name,type:te.type})}})}catch(I){}xe(()=>{const I=u.coursewareList[m.index||0].list||[];I[y]=m,_.forEach(k=>{I.splice(y+1,0,k)}),u.coursewareList[m.index||0].list=I,m.isError&&o.error("您添加的资源与课件乐器不符"),B=setTimeout(()=>{x.emit("onCoursewareUpdate")},100)})},R=()=>{i("change",{status:!1,addParam:{isAdd:!1,name:u.name,id:u.createId}}),x.emit("teacher-slideshow",!1)},g=()=>{let m=!1;return u.coursewareList.forEach(y=>{(y.list||[]).forEach(I=>{I.isError&&(m=!0)})}),m&&(u.messageOperation={visiable:!0,type:"checkInstrument",loading:!1,contentDirection:"center",title:"温馨提示",content:"课件中含有不符合课件乐器的资源,是否继续保存?",cancelButtonText:"取消",confirmButtonText:"继续保存",index:0}),m},S=async()=>{try{if(a.value.validate(),x.emit("checkCoursewareForm"),!u.name){o.error("请输入课件标题");return}if(u.subjects.length<=0){o.error("请选择课件乐器");return}if(u.coursewareList.length<=0){o.error("请至少添加一个知识点");return}let m=!1;for(const _ of u.coursewareList){if(!_.name){o.error("请输入知识点名称");return}Array.isArray(_.list)&&_.list.length<=0&&(m=!0)}if(m){o.error("请至少添加一个资源");return}if(g())return;if(u.openFlag&&!t.getReadCoursewareOpenAgreement){s.value=!0;return}await b()&&R()}catch(m){}},b=async()=>{var m;try{const y={name:u.name,instrumentIds:u.subjects.join(","),openFlag:u.openFlag,autoPlay:u.autoPlay,coursewareDetailKnowledgeId:p.getSelectKey,chapterKnowledgeList:[]};if(u.coursewareList.forEach(_=>{let I=[];Array.isArray(_.list)&&_.list.length>0&&(I=_.list.map(k=>({bizId:k.materialId,type:k.type,dataJson:["IMG","VIDEO","SONG","MUSIC","PPT"].includes(k.type)?"":JSON.stringify({setting:k.dataJson,coverImg:k.coverImg,bizId:k.bizId,content:k.content,name:k.title})}))),y.chapterKnowledgeList.push({name:_.name,chapterKnowledgeMaterialList:I})}),(m=n.groupItem)!=null&&m.id)await es({id:n.groupItem.id,...y}),o.success("保存成功");else{const{data:_}=await ts(y);u.createId=_.id}return!0}catch(y){return!1}},j=(m,y)=>{if(u.subjects.length<=0){o.error("请先选择课件乐器"),x.emit("checkCoursewareForm","subject");return}m.isError=d(m.instrumentIds,m.type,m.hasNotCheck),u.coursewareList.length<=0?(u.addCoursewareItem=m,u.messageOperation={visiable:!0,type:"addItem",contentDirection:"center",title:"添加到知识点",loading:!1,content:"当前课件暂无知识点,请添加知识点后操作",cancelButtonText:"取消",confirmButtonText:"添加知识点",index:0}):u.coursewareList.length>1&&m.addType!=="drag"?(u.addCoursewareVisiable=!0,u.addCoursewareItem=m):(v(m,y),E(m.isError))},Y=m=>{const y=JSON.stringify(u.coursewareList),_=JSON.stringify(u.baseCoursewareList),I=JSON.stringify({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),k=JSON.stringify(u.baseInfo);y===_&&I===k?typeof m=="function"&&(m(),R()):(u.messageCallBack=m,u.messageOperation={visiable:!0,type:"pageLive",loading:!1,contentDirection:"center",title:"保存课件",content:"当前课件暂未保存,是否保存?",cancelButtonText:"不保存",confirmButtonText:"保存",index:0})},fe=m=>{u.subjects=m.subjects,u.openFlagEnable=m.openFlagEnable,u.autoPlay=m.autoPlay,u.name=m.name,u.openFlag=m.openFlag;const y=JSON.stringify(u.coursewareList),_=JSON.stringify(u.baseCoursewareList),I=JSON.stringify({subjects:u.subjects,autoPlay:u.autoPlay,name:u.name,openFlag:u.openFlag}),k=JSON.stringify(u.baseInfo);y===_&&I===k?R():u.messageOperation={visiable:!0,type:"save",loading:!1,contentDirection:"center",title:"保存课件",content:"当前课件暂未保存,是否保存?",cancelButtonText:"不保存",confirmButtonText:"保存",index:0}},Ie=m=>{u.subjects=m.subjects,u.openFlagEnable=m.openFlagEnable,u.autoPlay=m.autoPlay,u.name=m.name,u.openFlag=m.openFlag,S()},Ce=m=>{u.subjects=m.subjects,u.openFlagEnable=m.openFlagEnable,u.autoPlay=m.autoPlay,u.name=m.name,u.openFlag=m.openFlag},me=m=>{u.subjects=m;let y=!1;u.coursewareList.forEach(_=>{(_.list||[]).forEach(k=>{k.isError=d(k.instrumentIds,k.type,k.hasNotCheck),k.isError&&(y=!0)})}),y&&o.error("您添加的资源与课件乐器不符")};return se(async()=>{var m;(m=n.groupItem)!=null&&m.id&&(u.coursewareList=[],u.baseCoursewareList=[]),await c(),x.on("onPrepareAddItem",j),x.on("pageBeforeLeave",Y),x.on("coursewareSubjectChange",me),x.on("coursewareClosed",fe),x.on("coursewareSave",Ie),x.on("coursewareHeadSyncData",Ce)}),je(()=>{x.off("onPrepareAddItem",j),x.off("pageBeforeLeave",Y),x.off("coursewareSubjectChange",me),x.off("coursewareClosed",fe),x.off("coursewareSave",Ie),x.off("coursewareHeadSyncData",Ce)}),Ue(()=>u.coursewareList,()=>{p.setCoursewareList(u.coursewareList)},{deep:!0}),()=>e(Au,{class:X.coursewareModal,model:u,ref:a},{default:()=>[e(be,Ts({class:[X.listContainer,"listContainerWrap"]},{id:"lessonsIn-1"}),{default:()=>[e(we,{show:u.loadingStatus},{default:()=>[e("div",{class:[X.listSection,"listSectionWrap"],id:"listSectionWrap"},[u.coursewareList.map((m,y)=>e("div",{class:[X.listItems,"row-group"]},[e("div",{class:X.knowledgePoint},[e(at,{class:X.btnItem,label:"知识点名称",showFeedback:!1,requireMarkPlacement:"left",path:"coursewareList.".concat(y,".name"),rule:[{required:!0,trigger:["input","blur"]}]},{default:()=>[e(vt,{placeholder:"未命名知识点",value:m.name,"onUpdate:value":_=>m.name=_,maxlength:15,clearable:!0},null)]})]),e(ee,{class:X.operationGroup},{default:()=>[y>0&&e(Se,{showArrow:!1},{trigger:()=>e("i",{class:X.iconCUp,onClick:()=>w("up",y)},null),default:()=>"上移知识点"}),y<u.coursewareList.length-1&&e(Se,{showArrow:!1},{trigger:()=>e("i",{class:X.iconCDown,onClick:()=>w("down",y)},null),default:()=>"下移知识点"}),e(Se,{showArrow:!1},{trigger:()=>e("i",{class:X.iconCRemove,onClick:()=>w("remove",y,m)},null),default:()=>"删除知识点"})]}),e(Ps,{modelValue:m.list,"onUpdate:modelValue":_=>m.list=_,itemKey:"id",group:"description",scroll:!0,animation:200,onAdd:_=>{const I=u.coursewareList[y].list,k=I[_.newDraggableIndex];if(k.sourceForm==="resource-item"){if(u.subjects.length<=0){I.splice(_.newDraggableIndex,1),o.error("请先选择课件乐器"),x.emit("checkCoursewareForm","subject");return}D({materialId:k.id,coverImg:k.coverImg,type:k.type,title:k.title,refFlag:k.refFlag,isCollect:k.isCollect,isSelected:k.isSelected,hasNotCheck:k.hasNotCheck,isError:d(k.instrumentIds,k.type,k.hasNotCheck),content:k.content,audioPlayTypeArray:k.audioPlayTypeArray,removeFlag:!1,index:y},_.newDraggableIndex)}},onDrag:_=>{const I=document.querySelector(".listContainerWrap .n-scrollbar-container"),k=150;_.clientY<k?I.scrollTop-=8:window.innerHeight-_.clientY<k&&(I.scrollTop+=8)},componentData:{draggable:"row-nav",itemKey:"id",tag:"div",animation:200,group:"description"},class:X.list},{item:_=>{const I=_.element;return e("div",{"data-id":I.id,class:[X.itemWrap,X.itemBlock,"row-nav"]},[e("div",{class:X.itemWrapBox},[e(Zu,{class:[X.itemContent],isError:I.isError,isShowCollect:!1,offShelf:!!I.removeFlag,item:I,audioPlayTypeSize:"small",disabledMouseHover:!1,onClick:()=>{I.type!=="IMG"&&(u.show=!0,u.item=I)}},null),e("div",{class:X.itemOperation},[e("img",{src:js,class:X.iconDelete,onClick:k=>{k.stopPropagation(),r(_.index,y)}},null)])])])},footer:()=>e("div",{class:X.itemWrap},[e("div",{class:X.itemWrapBox},[e("div",{class:[X.itemContent,X.addMusicItem,"handle"],onClick:()=>{if(u.subjects.length<=0){o.error("请先选择课件乐器"),x.emit("checkCoursewareForm","subject");return}u.addOtherSource=!0,u.addOtherIndex=y}},[e("img",{src:nn},null),e("p",{class:X.addMusicName},[F("添加资源")])])])])})])),!u.loadingStatus&&e(K,{block:!0,type:"primary",secondary:!0,class:X.addKnowledgePoint,onClick:()=>{u.coursewareList.push({name:"",list:[]})}},{default:()=>[e("i",{class:X.iconCAdd},null),F("添加知识点")]})])]})]}),e(yt,{size:["INSTRUMENT","THEORY","MUSIC_WIKI","MUSICIAN","RHYTHM"].includes(u.item.type)?"large":"",show:u.show,"onUpdate:show":m=>u.show=m,item:u.item,isDownload:!1},null),e(oe,{maskClosable:ne,show:u.addCoursewareVisiable,"onUpdate:show":m=>u.addCoursewareVisiable=m,preset:"card",class:["modalTitle",X.addCourseware],title:"添加到知识点"},{default:()=>[e(dn,{coursewareList:u.coursewareList,onClose:()=>u.addCoursewareVisiable=!1,onConfirm:m=>{Array.isArray(m)&&m.length>0?(m.forEach(y=>{v({...u.addCoursewareItem,index:y})}),console.log(u.addCoursewareItem,"----",u.subjects),u.addCoursewareVisiable=!1,E(u.addCoursewareItem.isError)):o.error("请选择需要添加的知识点")}},null)]}),e(oe,{maskClosable:ne,show:u.messageOperation.visiable,"onUpdate:show":m=>u.messageOperation.visiable=m,preset:"card",class:["modalTitle",X.removeVisiable1],title:u.messageOperation.title},{default:()=>[e(Ct,{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")&&(R(),u.messageOperation.type==="pageLive"&&typeof u.messageCallBack=="function"&&u.messageCallBack()),u.messageCallBack=null},onConfirm:()=>f()},null)]}),e(Iu,{show:u.previewModal,"onUpdate:show":m=>u.previewModal=m,type:"attend",params:u.previewParams},null),e(oe,{maskClosable:ne,show:u.addOtherSource,"onUpdate:show":m=>u.addOtherSource=m,preset:"card",class:["modalTitle background",X.addOtherSource],title:"添加资源"},{default:()=>[e(Vr,{onClose:()=>u.addOtherSource=!1,onComfirm:m=>{if(Array.isArray(m)){let y=!1;m.forEach(async _=>{_.isError=d(_.instrumentIds,_.type),u.coursewareList[u.addOtherIndex||0].list.push(_),_.isError&&(y=!0)}),E(y)}else m.isError=d(m.instrumentIds,m.type),v({...m,index:u.addOtherIndex},null,!0),E(m.isError)}},null)]}),e(oe,{maskClosable:ne,show:s.value,"onUpdate:show":m=>s.value=m},{default:()=>[e(ti,{onClose:()=>s.value=!1,onConfirm:async()=>{try{await b()&&R()}catch(m){}}},null)]})]})}}),si="_coursewarePresetsContainer_j2u3u_1",ai="_rightLineShow_j2u3u_5",oi="_presetsRight_j2u3u_5",ni="_presetsLeft_j2u3u_35",li="_presetsArrar_j2u3u_52",ri="_presetsArrarActive_j2u3u_75",ii="_openLoading_j2u3u_78",ci="_coursewarePresets_j2u3u_1",di="_btnSubjectList_j2u3u_85",pi="_addBtnIcon_j2u3u_88",mi="_addBtn_j2u3u_88",gi="_title_j2u3u_119",fi="_titleLeft_j2u3u_132",Ci="_icon_j2u3u_136",hi="_iconWork_j2u3u_142",Fi="_iconCourseware_j2u3u_146",Ei="_line_j2u3u_150",wi="_more_j2u3u_155",Ai="_iconP_j2u3u_167",vi="_swipeControll_j2u3u_179",Bi="_leftIcon_j2u3u_182",yi="_disabled_j2u3u_190",bi="_list_j2u3u_194",_i="_listEmpty_j2u3u_202",Si="_listSame_j2u3u_206",Ii="_itemWrap_j2u3u_210",Di="_itemWrapBox_j2u3u_213",ki="_attendClassModal1_j2u3u_219",Li="_removeVisiable1_j2u3u_224",xi="_studentRemove_j2u3u_230",Ti="_btnGroupModal_j2u3u_241",Ri="_attendClassModal_j2u3u_219",ji="_workVisiable_j2u3u_253",Pi="_workContainer_j2u3u_259",Mi="_workTrain_j2u3u_263",Ni="_resourceMain_j2u3u_276",Oi="_popSelect_j2u3u_282",Vi="_textBtn_j2u3u_292",Wi="_iconArrow_j2u3u_299",Ui="_textBtnActive_j2u3u_307",q={coursewarePresetsContainer:si,rightLineShow:ai,presetsRight:oi,presetsLeft:ni,presetsArrar:li,presetsArrarActive:ri,openLoading:ii,coursewarePresets:ci,btnSubjectList:di,addBtnIcon:pi,addBtn:mi,title:gi,titleLeft:fi,icon:Ci,iconWork:hi,iconCourseware:Fi,line:Ei,more:wi,iconP:Ai,swipeControll:vi,leftIcon:Bi,disabled:yi,list:bi,listEmpty:_i,listSame:Si,itemWrap:Ii,itemWrapBox:Di,attendClassModal1:ki,removeVisiable1:Li,studentRemove:xi,btnGroupModal:Ti,attendClassModal:Ri,workVisiable:ji,workContainer:Pi,workTrain:Mi,resourceMain:Ni,popSelect:Oi,textBtn:Vi,iconArrow:Wi,textBtnActive:Ui},Gi="_relatedClass_c6wpx_1",zi="_attendClassSearch_c6wpx_4",Ki="_iconSearch_c6wpx_20",qi="_classList_c6wpx_24",Hi="_listSection_c6wpx_28",$i="_emptySection_c6wpx_32",Qi="_list_c6wpx_28",Ji="_listSame_c6wpx_45",Yi="_itemWrap_c6wpx_49",Xi="_itemWrapBox_c6wpx_52",Le={relatedClass:Gi,attendClassSearch:zi,iconSearch:Ki,classList:qi,listSection:Hi,emptySection:$i,list:Qi,listSame:Ji,itemWrap:Yi,itemWrapBox:Xi},Zi=G({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(n,{emit:i}){const t=J({loading:!1,finshed:!1,pagination:{page:1,rows:20},tableList:[],searchGroup:{instrumentId:n.instrumentId?n.instrumentId:"",keyword:null}}),p=async()=>{try{t.pagination.page===1&&(t.loading=!0);const{data:u}=await hu({coursewareDetailKnowledgeId:n.coursewareDetailKnowledgeId,...t.searchGroup,...t.pagination}),a=u.rows||[],s=[];a.forEach(c=>{var E;const d=(E=c.chapterKnowledgeList[0])==null?void 0:E.chapterKnowledgeMaterialList[0];s.push({id:c.id,openFlag:c.openFlag,openFlagEnable:c.openFlagEnable,instrumentNames:c.instrumentNames,fromChapterLessonCoursewareId:c.fromChapterLessonCoursewareId,name:c.name,coverImg:d==null?void 0:d.bizInfo.coverImg,type:d==null?void 0:d.bizInfo.type,isAdd:c.addFlag,isNotWork:c.lessonPreTrainingNum<=0})}),t.loading=!1,t.tableList.push(...s),t.finshed=u.pages<=u.current}catch(u){t.loading=!1}},o=Bt(()=>{t.pagination.page=1,t.tableList=[],p()},500);return se(()=>{p(),x.on("openCoursewareChanged",o)}),je(()=>{x.off("openCoursewareChanged",o)}),()=>e("div",{class:Le.relatedClass},[e("div",{class:Le.attendClassSearch},[e(ku,{placeholder:"全部乐器",clearable:!0,options:[{name:"全部乐器",id:""},...n.instrumentList],value:t.searchGroup.instrumentId,"onUpdate:value":[u=>t.searchGroup.instrumentId=u,()=>o()],checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",filterable:!0,style:{width:"200px"}},null),e(vt,{placeholder:"请输入课件标题关键词",clearable:!0,value:t.searchGroup.keyword,"onUpdate:value":u=>t.searchGroup.keyword=u,onKeyup:u=>{u.code==="Enter"&&o()},onClear:()=>o()},{prefix:()=>e("span",{class:"icon-search-input",style:{cursor:"pointer"},onClick:()=>o()},null)})]),e(we,{show:t.loading,size:"small"},{default:()=>[e(be,{class:Le.classList,style:{"max-height":"60vh"},onScroll:u=>{var d,E,r;const a=(d=u.target)==null?void 0:d.clientHeight,s=(E=u.target)==null?void 0:E.scrollTop,c=(r=u.target)==null?void 0:r.scrollHeight;a+s+20>=c&&!t.finshed&&!t.loading&&o()}},{default:()=>[e("div",{style:{"min-height":"60vh)"},class:[Le.listSection,!t.loading&&t.tableList.length<=0?Le.emptySection:""]},[t.tableList.length>0&&e("div",{class:[Le.list]},[t.tableList.map(u=>e("div",{class:[Le.itemWrap,Le.itemBlock,"row-nav"]},[e("div",{class:Le.itemWrapBox},[e(_u,{isHoverShowAdd:!1,isShowOpenFlag:!1,isShowAdd:!0,item:u,background:"#fff",onAdd:()=>{i("add",u)},onLook:()=>i("click",u)},null)])]))]),!t.loading&&t.tableList.length<=0&&e(ve,null,null)])]})]})])}}),ec="_related_93qg8_1",tc="_iconScreen_93qg8_40",uc="_homerowkTabs_93qg8_51",ft={related:ec,iconScreen:tc,homerowkTabs:uc},sc="_searchGroup_5ue74_1",ac="_searchSelect_5ue74_4",oc="_inputSearch_5ue74_18",nc="_searchBtn_5ue74_22",lc="_btnType_5ue74_28",fu={searchGroup:sc,searchSelect:ac,inputSearch:oc,searchBtn:nc,btnType:lc},rc=G({name:"resource-search-group",emits:["search"],setup(n,{emit:i}){ot();const t=J({keyword:""}),p=()=>{i("search",t)},o=Bt(()=>p(),500);return()=>e(Ae,null,[e("div",{class:fu.searchGroup},[e(vt,{type:"text",placeholder:"请输入课件标题关键词",clearable:!0,value:t.keyword,"onUpdate:value":u=>t.keyword=u,class:fu.inputSearch,onKeyup:u=>{u.code==="Enter"&&o()},onClear:()=>{t.keyword="",o()}},{prefix:()=>e("span",{class:"icon-search-input",onClick:()=>o()},null)})])])}}),ic="_listContainer_13l6v_1",cc="_listNoMusic_13l6v_5",dc="_listSection_13l6v_8",pc="_emptySection_13l6v_14",mc="_list_13l6v_1",gc="_trainEditModal_13l6v_28",fc="_itemModal_13l6v_31",Cc="_itemCover_13l6v_36",hc="_iconLook_13l6v_67",Fc="_iconAdd_13l6v_68",Ec="_itemContent_13l6v_94",wc="_itemTitle_13l6v_98",Ac="_itemSubject_13l6v_108",vc="_addCourseBtn_13l6v_118",Ee={listContainer:ic,listNoMusic:cc,listSection:dc,emptySection:pc,list:mc,trainEditModal:gc,itemModal:fc,itemCover:Cc,function:"_function_13l6v_53",iconLook:hc,iconAdd:Fc,itemContent:Ec,itemTitle:wc,itemSubject:Ac,addCourseBtn:vc},Bc=G({name:"item-modal",props:{item:{type:Object,default:()=>({})}},emits:["look","add"],setup(n,{emit:i}){return()=>e("div",{class:Ee.itemModal},[e("div",{class:Ee.itemCover},[e(ge,{src:n.item.coverImg,objectFit:"cover",previewDisabled:!0},null),e("div",{class:Ee.function},[e(Se,{showArrow:!1},{trigger:()=>e("i",{class:Ee.iconLook,onClick:()=>i("look")},null),default:()=>"预览课件"})])]),e("div",{class:Ee.itemContent},[e("p",{class:Ee.itemTitle,onClick:()=>i("look")},[e(Xs,{text:n.item.name},null)]),e("div",{class:Ee.addCourseBtn,onClick:()=>i("add")},[F("添加课件")])])])}}),yc=G({name:"share-resources",emits:["look","add"],setup(n,{emit:i}){const t=Re(),p=J({loading:!1,finshed:!1,pagination:{page:1,rows:10},searchGroup:{keyword:""},tableList:[],editStatus:!1,editItem:{},show:!1,item:{}}),o=async()=>{try{if(!t.getSelectKey)return;p.pagination.page===1&&(p.loading=!0);const{data:c}=await hu({instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey,...p.searchGroup,...p.pagination});p.pagination.page===1&&p.tableList.length>0&&(p.tableList=[]);const d=c.rows||[],E=[];d.forEach(r=>{var h;const l=(h=r.chapterKnowledgeList[0])==null?void 0:h.chapterKnowledgeMaterialList[0];E.push({id:r.id,openFlag:r.openFlag,openFlagEnable:r.openFlagEnable,instrumentNames:r.instrumentNames,fromChapterLessonCoursewareId:r.fromChapterLessonCoursewareId,name:r.name,coverImg:l==null?void 0:l.bizInfo.coverImg,type:l==null?void 0:l.bizInfo.type,isAdd:r.addFlag})}),p.loading=!1,p.tableList.push(...E),p.finshed=c.pages<=c.current}catch(c){p.loading=!1}},u=async c=>{p.pagination.page=1,p.tableList=[],p.searchGroup=Object.assign(p.searchGroup,c),o()},a=Bt(()=>{p.pagination.page=p.pagination.page+1,o()},500),s=()=>{u(p.searchGroup)};return se(()=>{o(),x.on("openCoursewareChanged",s)}),je(()=>{x.off("openCoursewareChanged",s)}),()=>e("div",null,[e(rc,{onSearch:c=>u(c)},null),e(be,{class:[Ee.listContainer,Ee.listNoMusic],onScroll:c=>{var l,h,w;const d=(l=c.target)==null?void 0:l.clientHeight,E=(h=c.target)==null?void 0:h.scrollTop,r=(w=c.target)==null?void 0:w.scrollHeight;d+E+20>=r&&!p.finshed&&!p.loading&&a()}},{default:()=>[e(we,{show:p.loading,size:"small"},{default:()=>[e("div",{class:[Ee.listSection,!p.loading&&p.tableList.length<=0?Ee.emptySection:""]},[p.tableList.length>0&&e("div",{class:Ee.list},[p.tableList.map(c=>e(Bc,{item:c,onAdd:()=>i("add",c),onLook:()=>i("look",c)},null))]),!p.loading&&p.tableList.length<=0&&e(ve,null,null)])]})]})])}}),bc=G({name:"related-modal",emits:["more","add","look"],setup(n,{emit:i}){return()=>e("div",{class:ft.related},[e(Je,{animated:!0,paneClass:ft.paneTitle,paneWrapperClass:ft.paneWrapperContainer,justifyContent:"center"},{suffix:()=>e("div",{class:ft.iconScreen,onClick:()=>{i("more")}},[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e("g",{fill:"none"},[e("path",{d:"M5 6a1 1 0 0 1 1-1h2a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v2a1 1 0 0 0 2 0V6zm0 12a1 1 0 0 0 1 1h2a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3v-2a1 1 0 1 1 2 0v2zM18 5a1 1 0 0 1 1 1v2a1 1 0 1 0 2 0V6a3 3 0 0 0-3-3h-2a1 1 0 1 0 0 2h2zm1 13a1 1 0 0 1-1 1h-2a1 1 0 1 0 0 2h2a3 3 0 0 0 3-3v-2a1 1 0 1 0-2 0v2z",fill:"#198CFE"},null)])])]),default:()=>e(Ae,null,[e(Ye,{name:"myMusic",tab:"相关课件"},{default:()=>[e(yc,{onAdd:t=>i("add",t),onLook:t=>i("look",t)},null)]})])})])}}),_c=G({name:"courseware-presets",props:{addParam:{type:Object,default:()=>({})}},emits:["change"],setup(n,{emit:i}){const t=Re(),p=wt(),o=Bu(),u=Qe(),a=localStorage.getItem("prepareLessonSubjectId"),s=J({leftWidth:"100%",rightWidth:"0",messageLoading:!1,instrumentId:o.query.instrumentId?Number(o.query.instrumentId):a?Number(a):"",courseScheduleSubjectId:o.query.courseScheduleSubjectId,classGroupId:o.query.classGroupId,preStudentNum:o.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:""}),c=async()=>{s.loading=!0;try{if(!t.getSelectKey)return s.loading=!1;const{data:g}=await us({instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey});if(!Array.isArray(g))return;const S=[];g.forEach(b=>{var Y,fe,Ie;const j=(Y=b.chapterKnowledgeList[0])==null?void 0:Y.chapterKnowledgeMaterialList;S.push({id:b.id,lessonPreTrainingId:b.lessonPreTrainingId,openFlag:b.openFlag,openFlagEnable:b.openFlagEnable,instrumentNames:b.instrumentNames,fromChapterLessonCoursewareId:b.fromChapterLessonCoursewareId,name:b.name,coverImg:j&&((fe=j[0])==null?void 0:fe.bizInfo.coverImg),type:j&&((Ie=j[0])==null?void 0:Ie.bizInfo.type),isNotWork:b.lessonPreTrainingNum<=0})}),s.tableList=S}catch(g){}s.loading=!1};let d=null;Ue(()=>[t.getSelectKey,t.getInstrumentId],async()=>{clearTimeout(d),d=setTimeout(async()=>{var g;t.getInstrumentId?r():E(),x.emit("openCoursewareChanged"),await c(),(g=l.value)==null||g.syncBarPosition()},100)}),Ue(()=>t.getInstrumentList,()=>{E()});const E=()=>{var S;const g=t.getSingleInstrumentList;if(g.length>0){const b=localStorage.getItem("prepareLessonSubjectId");let j=null,Y=-1;s.courseScheduleSubjectId&&(Y=g.findIndex(fe=>fe.id==s.courseScheduleSubjectId),Y>=0&&(j=Number(s.courseScheduleSubjectId))),s.instrumentId&&!j&&(Y=g.findIndex(fe=>fe.id==s.instrumentId),Y>=0&&(j=Number(s.instrumentId))),b&&!j&&(Y=g.findIndex(fe=>fe.id==b),Y>=0&&(j=Number(b))),j&&Y>=0&&t.setSubjectId(j),localStorage.setItem("prepareLessonSubjectId",t.getInstrumentId),(S=l.value)==null||S.syncBarPosition()}else s.instrumentId&&t.setInstrumentId(s.instrumentId+"")},r=()=>{let g="";t.getInstrumentList.forEach(S=>{Array.isArray(S.instruments)&&S.instruments.forEach(b=>{b.id===t.getInstrumentId&&(g=b.id)})}),g&&(s.wikiCategoryIdChild=g)},l=W();se(async()=>{Vt(document.querySelector("#presetsLeftRef"),g=>{const S=g[0],{width:b}=S.contentRect;s.leftWidth=b+"px"}),Vt(document.querySelector("#presetsRightRef"),g=>{const S=g[0],{width:b}=S.contentRect;s.rightWidth=b+"px"}),t.setClassGroupId(o.query.classGroupId),t.getInstrumentId?r():E(),await c(),n.addParam.isAdd&&(s.addVisiable=!0)});const h=async()=>{s.messageLoading=!0;try{await ss({id:s.selectItem.id}),p.success("删除成功"),c(),x.emit("openCoursewareChanged"),s.preRemoveVisiable=!1}catch(g){}setTimeout(()=>{s.messageLoading=!1},100)},w=async g=>{if(!s.messageLoading){s.messageLoading=!0;try{await as({id:g.id}),p.success("添加成功"),c(),x.emit("openCoursewareChanged")}catch(S){}setTimeout(()=>{s.messageLoading=!1},100)}},f=g=>{if(window.matchMedia("(display-mode: standalone)").matches)xt.application=window.matchMedia("(display-mode: standalone)").matches,s.previewModal=!0,ou(),s.previewParams={type:"preview",courseId:g,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,lessonCourseId:t.getBaseCourseware.id};else{const{href:S}=u.resolve({path:"/attend-class",query:{type:"preview",courseId:g,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,lessonCourseId:t.getBaseCourseware.id}});window.open(S,+new Date+"")}},B=async(g,S,b)=>{if(S){const j=await os({lessonCoursewareKnowledgeDetailId:t.selectKey,classGroupId:S,useChapterLessonCoursewareId:g.id});if(window.matchMedia("(display-mode: standalone)").matches)xt.application=window.matchMedia("(display-mode: standalone)").matches,s.previewModal=!0,ou(),s.previewParams={type:"class",classGroupId:S,courseId:g.id,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,classId:j.data,lessonCourseId:t.getBaseCourseware.id,preStudentNum:s.preStudentNum};else{const{href:Y}=u.resolve({path:"/attend-class",query:{type:"class",classGroupId:S,courseId:g.id,instrumentId:t.getInstrumentId,detailId:t.getSelectKey,classId:j.data,lessonCourseId:t.getBaseCourseware.id,preStudentNum:s.preStudentNum}});window.open(Y,+new Date+"")}s.showAttendClass=!1,s.instrumentErrorVisiable=!1}else s.showAttendClass=!0,s.attendClassType="change",s.attendClassItem=g},v=async(g,S,b)=>{try{if(S){const{data:j}=await ns({classGroupId:S,chapterLessonCoursewareId:g.id});s.attendClassItem=g,s.attendClassId=S,j.chapterLessonCoursewareFlag?j.materialFlag?B(g,S,b):(s.instrumentErrorVisiable=!0,s.instrumentErrorContent="课件中含有不符合班级乐器的资源,是否继续使用该课件上课?"):(s.instrumentErrorVisiable=!0,s.instrumentErrorContent="课件支持的乐器与班级不符,是否继续使用该课件上课?")}else B(g,S,b)}catch(j){}},D=g=>{const S={};return g==null||g.forEach(b=>{b.id===s.wikiCategoryIdChild&&(S.selected=!0,S.name=b.name,S.label=b.name)}),S},R=$(()=>{let g=t.getInstrumentId?t.getInstrumentId:"";return t.getFormatInstrumentList.forEach(S=>{Array.isArray(S.instruments)&&S.instruments.forEach(b=>{b.id===t.getInstrumentId&&(g=S.id+"")})}),g});return()=>e("div",{class:[q.coursewarePresetsContainer,s.openTableShow&&q.rightLineShow]},[e("div",{class:q.presetsLeft,id:"presetsLeftRef",style:{width:"calc(".concat(s.leftWidth," - ").concat(s.rightWidth,")")}},[e(Je,{ref:l,defaultValue:"",paneClass:q.paneTitle,justifyContent:"start",paneWrapperClass:q.paneWrapperContainer,value:R.value,"onUpdate:value":g=>{t.getFormatInstrumentList.forEach(S=>{S.value.toString()===g.toString()&&(t.setInstrumentId(g),s.instrumentId=g,s.wikiCategoryIdChild=null)})}},{default:()=>[[...t.getFormatInstrumentList].map((g,S)=>{var b;return e(Ye,{name:"".concat(g.value),tab:g.label,disabled:((b=g.instruments)==null?void 0:b.length)>0,displayDirective:"if"},{tab:()=>{var j;return((j=g.instruments)==null?void 0:j.length)>0?e(Ut,{options:g.instruments,trigger:"hover",value:s.wikiCategoryIdChild,"onUpdate:value":[Y=>s.wikiCategoryIdChild=Y,Y=>{t.setInstrumentId(Y),s.instrumentId=Y}],key:g.id,class:q.popSelect},{default:()=>[e("span",{class:[q.textBtn,D(g.instruments).selected&&q.textBtnActive]},[D(g.instruments).label||g.label,e("i",{class:q.iconArrow},null)])]}):g.label}})})],suffix:()=>e(K,{class:q.addBtn,type:"primary",bordered:!1,onClick:()=>{x.emit("teacher-slideshow",!0),i("change",{status:!0,type:"create"})}},{default:()=>[e(ge,{class:q.addBtnIcon,previewDisabled:!0,src:Js},null),F("创建课件")]})}),e(we,{show:s.loading},{default:()=>[e(be,{class:q.coursewarePresets},{default:()=>[e("div",{style:{overflow:"hidden"}},[e("div",{class:[q.list,!s.loading&&s.tableList.length<=0&&q.listEmpty]},[s.tableList.map(g=>e("div",{class:[q.itemWrap,q.itemBlock,"row-nav"]},[e("div",{class:q.itemWrapBox},[e(_u,{operate:!0,isEditName:!0,item:g,onClick:()=>f(g.id),onEdit:()=>{x.emit("teacher-slideshow",!0),i("change",{status:!0,type:"update",groupItem:{id:g.id}})},onStartClass:()=>v(g,s.classGroupId),onDelete:()=>{s.selectItem=g,s.preRemoveVisiable=!0},onWork:()=>{s.workVisiable=!0,s.selectItem=g}},null)])])),!s.loading&&s.tableList.length<=0&&e(ve,{class:q.empty1,description:"当前章节暂无课件,快点击右上角创建课件吧"},null)])])]})]})]),e("div",{class:q.presetsRight,id:"presetsRightRef"},[e(Se,{showArrow:!1,show:!1,animated:!1,duration:0,delay:0},{trigger:()=>e("div",{class:[q.presetsArrar,!s.openTableShow&&q.presetsArrarActive],onClick:()=>s.openTableShow=!s.openTableShow},[e(yu,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(bc,{onMore:()=>s.showRelatedClass=!0,onAdd:g=>{w(g)},onLook:g=>{f(g.id)}},null)]),e(oe,{maskClosable:ne,show:s.showRelatedClass,"onUpdate:show":g=>s.showRelatedClass=g,preset:"card",showIcon:!1,class:["modalTitle background",q.attendClassModal1],title:"相关课件",blockScroll:!1},{default:()=>[e(Zi,{tableList:s.tableList,instrumentList:t.getInstrumentList,instrumentId:t.getInstrumentId,coursewareDetailKnowledgeId:t.getSelectKey,onClose:()=>s.showRelatedClass=!1,onAdd:g=>w(g),onClick:g=>{f(g.id),s.showRelatedClass=!1}},null)]}),e(oe,{maskClosable:ne,show:s.preRemoveVisiable,"onUpdate:show":g=>s.preRemoveVisiable=g,preset:"card",class:["modalTitle",q.removeVisiable1],title:"删除课件"},{default:()=>[e(Ct,{content:'<p style="text-align: left;">请确认是否删除【'.concat(s.selectItem.name,"】,删除后不可恢复</p>"),cancelButtonText:"取消",confirmButtonText:"确认",loading:s.messageLoading,onClose:()=>s.preRemoveVisiable=!1,onConfirm:()=>h()},null)]}),e(oe,{maskClosable:ne,show:s.addVisiable,"onUpdate:show":g=>s.addVisiable=g,preset:"card",class:["modalTitle",q.removeVisiable1],title:"保存成功"},{default:()=>[e(Ct,{content:'<p style="text-align: left;">【'.concat(n.addParam.name,"】暂未设置课件作业,是否现在去设置课件作业</p>"),cancelButtonText:"稍后设置",confirmButtonText:"立即设置",onClose:()=>s.addVisiable=!1,onConfirm:()=>{s.addVisiable=!1,s.workVisiable=!0,s.selectItem={id:n.addParam.id,name:n.addParam.name}}},null)]}),e(oe,{maskClosable:ne,show:s.instrumentErrorVisiable,"onUpdate:show":g=>s.instrumentErrorVisiable=g,preset:"card",class:["modalTitle",q.removeVisiable1],title:"温馨提示"},{default:()=>[e(Ct,{content:s.instrumentErrorContent,contentDirection:"left",onClose:()=>{s.instrumentErrorVisiable=!1},onConfirm:()=>{B(s.attendClassItem,s.attendClassId)}},null)]}),e(Iu,{show:s.previewModal,"onUpdate:show":g=>s.previewModal=g,type:"attend",params:s.previewParams},null),e(oe,{maskClosable:ne,show:s.showAttendClass,"onUpdate:show":g=>s.showAttendClass=g,preset:"card",showIcon:!1,class:["modalTitle background",q.attendClassModal],title:"选择班级",blockScroll:!1},{default:()=>[e(Ys,{onClose:()=>s.showAttendClass=!1,type:s.attendClassType,onPreview:g=>{if(window.matchMedia("(display-mode: standalone)").matches)xt.application=window.matchMedia("(display-mode: standalone)").matches,s.previewModal=!0,s.previewParams={...g};else{const{href:S}=u.resolve({path:"/attend-class",query:{...g}});window.open(S,+new Date+"")}},onConfirm:async g=>{v(s.attendClassItem,g.classGroupId,g.instrumentId)}},null)]}),e(oe,{maskClosable:ne,show:s.workVisiable,"onUpdate:show":g=>s.workVisiable=g,preset:"card",class:["modalTitle background",q.workVisiable],title:s.selectItem.lessonPreTrainingId?"编辑作业":"创建作业"},{default:()=>[e("div",{id:"model-homework-height",class:q.workContainer},[e("div",{class:q.workTrain},[e(Ms,{cardType:"prepare",lessonPreTraining:{title:s.selectItem.name+"-课后作业",chapterId:s.selectItem.id,id:s.selectItem.lessonPreTrainingId},onChange:g=>{s.workVisiable=g.status,c()}},null)]),e("div",{class:q.resourceMain},[e(Su,{cardType:"prepare"},null)])])]})])}}),Sc="_headerTitle_1prp1_1",Ic="_iconBook_1prp1_12",Dc="_formContainer_1prp1_29",kc="_btnSubjectList_1prp1_32",Lc="_btnItem_1prp1_55",xc="_block_1prp1_61",Tc="_btnTitle_1prp1_65",Rc="_iconQuestion_1prp1_78",de={headerTitle:Sc,iconBook:Ic,formContainer:Dc,btnSubjectList:kc,btnItem:Lc,block:xc,btnTitle:Tc,iconQuestion:Rc},jc=G({name:"courseware-head",setup(n,{emit:i,expose:t}){const p=Re(),o=W(["",""]),u=W([]),a=J({subjects:[],openFlagEnable:!0,autoPlay:!1,name:"",openFlag:!1}),s=l=>{const h=[];l.map(w=>{Array.isArray(w.instruments)&&w.instruments.forEach(f=>{h.push(f.value)})}),a.subjects=h,x.emit("coursewareSubjectChange",a.subjects)},c=()=>a,d=l=>{a.subjects=l.subjects,a.openFlagEnable=l.openFlagEnable,a.autoPlay=l.autoPlay,a.name=l.name,a.openFlag=l.openFlag,r(l.subjects||[])},E=(l="ALL")=>{var h,w;l==="name"?o.value[0]=a.name?"":"error":l==="subject"?o.value[1]=((h=a.subjects)==null?void 0:h.length)>0?"":"error":(o.value[0]=a.name?"":"error",o.value[1]=((w=a.subjects)==null?void 0:w.length)>0?"":"error")},r=l=>{l=l||[];const h=[];p.getInstrumentList.forEach(v=>{Array.isArray(v.instruments)&&v.instruments.forEach(D=>{h.push(D.id)})});const w=[...new Set([...h,...l])],f=[];ot().getSubjectList.forEach(v=>{const D=Mt(v);D.enableFlag=!1,Array.isArray(D.instruments)&&D.instruments.forEach(R=>{R.enableFlag=!1,w.includes(R.id)&&(R.enableFlag=!0,D.enableFlag=!0)}),f.push(D)});const B=[];f.forEach(v=>{if(v.enableFlag){const{instruments:D,...R}=v;if(D&&D.length>0){const g=[];D==null||D.forEach(S=>{S.enableFlag&&g.push(S)}),g.length>0&&B.push({...R,instruments:g})}}}),u.value=B};return se(async()=>{await ot().getSubjects(),r(),x.on("updateCoursewareHeadInfo",d),x.on("checkCoursewareForm",E)}),t({getForms:c}),()=>e(Ae,null,[e("div",{class:de.headerTitle},[e("i",{class:de.iconBook},null),e("span",null,[p.getSelectName])]),e("div",{class:de.formContainer},[e("div",{class:[de.btnItem,de.block]},[e("span",{class:[de.btnTitle]},[e("span",null,[F("*")]),F("课件标题")]),e(vt,{placeholder:"请输入课件标题",value:a.name,"onUpdate:value":[l=>a.name=l,()=>{o.value[0]=a.name?"":"error",x.emit("coursewareHeadSyncData",c())}],maxlength:20,clearable:!0,status:o.value[0]},null)]),e("div",{class:[de.btnItem,de.block]},[e("span",{class:[de.btnTitle]},[e("span",null,[F("*")]),F("课件乐器")]),e(ku,{status:o.value[1],placeholder:"请选择乐器(可多选)",class:de.btnSubjectList,options:u.value,checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",clearable:!0,filterable:!0,multiple:!0,maxTagCount:1,value:a.subjects,"onUpdate:value":[l=>a.subjects=l,()=>{var l;o.value[1]=((l=a.subjects)==null?void 0:l.length)>0?"":"error",x.emit("coursewareSubjectChange",a.subjects)}]},{action:()=>e(Ae,null,[e(K,{text:!0,style:" --n-width: 100% ",size:"small",onClick:()=>s(u.value)},{default:()=>[F("全选")]})])})]),e("div",{class:de.btnItem},[e("span",{class:de.btnTitle},[F("自动播放"),e(Se,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:de.iconQuestion},null),default:()=>"开启自动播放后,课件内视频、音频资源将自动播放"})]),e(Tt,{value:a.autoPlay,"onUpdate:value":[l=>a.autoPlay=l,()=>{x.emit("coursewareHeadSyncData",c())}]},null)]),e("div",{class:de.btnItem},[e("span",{class:de.btnTitle},[F("公开课件"),e(Se,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e("i",{class:de.iconQuestion},null),default:()=>"公开课件后,其它老师可以使用该课件上课"})]),a.openFlagEnable?e(Tt,{value:a.openFlag,"onUpdate:value":[l=>a.openFlag=l,()=>{x.emit("coursewareHeadSyncData",c())}],disabled:!a.openFlagEnable},null):e(Se,{style:{maxWidth:"200px"},showArrow:!1},{trigger:()=>e(Tt,{value:a.openFlag,"onUpdate:value":[l=>a.openFlag=l,()=>{x.emit("coursewareHeadSyncData",c())}],disabled:!a.openFlagEnable},null),default:()=>"为尊重课件原作者,在“相关课件”中添加的课件不支持公开"})])])])}}),Pc=G({name:"lesson-main",setup(){const n=Re(),i=J({editCoursewareShow:!1,coursewareType:"create",addParam:{isAdd:!1,id:null,addName:""},editCourseware:{},editWork:{}}),t=W(),p=()=>{var u;x.emit("coursewareClosed",(u=t.value)==null?void 0:u.getForms())},o=()=>{var u;x.emit("coursewareSave",(u=t.value)==null?void 0:u.getForms())};return()=>e("div",{class:[i.editCoursewareShow&>.coursewareSection],style:{height:"100%"}},[i.editCoursewareShow&&e("div",{class:gt.coursewareHeader},[e(jc,{ref:t},null)]),e("div",{class:gt["lesson-main"]},[i.editCoursewareShow?e(ui,{groupItem:i.editCourseware,onChange:u=>{u.addParam&&(i.addParam=u.addParam),i.editCoursewareShow=u.status,n.setIsEditResource(u.status),u.status||x.emit("teacher-slideshow",!1)}},null):e(_c,{addParam:i.addParam,onChange:u=>{i.coursewareType=u.type,i.editCoursewareShow=u.status,n.setIsEditResource(u.status),i.editCourseware=u.groupItem,i.addParam={isAdd:!1,id:null,addName:""}}},null)]),i.editCoursewareShow&&e("div",{class:gt.coursewareFooter},[e(ee,null,{default:()=>[e(K,{bordered:!1,type:"error",onClick:p},{default:()=>[F("取消")]}),e(K,{type:"primary",onClick:o},{default:()=>[F("保存课件")]})]})])])}}),Mc=G({name:"lessons-guide",emits:["close"],setup(n,{emit:i}){const t=J({box:{height:"0px"},show:!1,steps:[{ele:"",img:Ot("lessons2.png"),imgStyle:{left:pe(-647),width:pe(647),height:pe(223)},btnsStyle:{bottom:"30px",left:pe(-488)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"left"},{ele:"",img:Ot("lessons3.png"),imgStyle:{top:pe(-4),left:pe(-471),width:pe(471),height:pe(223)},btnsStyle:{bottom:pe(20),left:pe(-310)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"left"}],step:0}),p=W(!1),o=W({});(async()=>{try{const r=localStorage.getItem("teacher-guideInfo");r?o.value=JSON.parse(r)||null:o.value={},o.value&&o.value.lessonsGuideIn?p.value=!1:p.value=!0}catch(r){console.log(r)}})();const a=()=>{var l,h,w,f;const r=document.getElementById("lessonsIn-".concat(t.step));if(r){const B=r.getBoundingClientRect(),v=((l=t.steps[t.step].eleRectPadding)==null?void 0:l.left)||0,D=((h=t.steps[t.step].eleRectPadding)==null?void 0:h.top)||0,R=((w=t.steps[t.step].eleRectPadding)==null?void 0:w.width)||0,g=((f=t.steps[t.step].eleRectPadding)==null?void 0:f.height)||0;t.box={left:B.x-v+"px",top:B.y-D+"px",width:B.width+R+"px",height:B.height+g+"px"}}else d()},s=async r=>{try{if(r!=="prepare-lessons")return;o.value?o.value.lessonsGuideIn=!1:o.value={lessonsGuideIn:!1};try{Ft({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(o.value)})}catch(l){console.log(l)}t.step=0,a(),p.value=!0}catch(l){}};se(()=>{setTimeout(()=>{a()},500),window.addEventListener("resize",c),x.on("teacher-guideInfo",s)});const c=()=>{a()};je(()=>{window.removeEventListener("resize",c),x.off("teacher-guideInfo",s)});const d=()=>{if(t.step>=4){E();return}t.step=t.step+1,a()},E=async()=>{o.value?o.value.lessonsGuideIn=!0:o.value={lessonsGuideIn:!0};try{Ft({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(o.value)})}catch(r){console.log(r)}p.value=!1};return()=>e(Ae,null,[p.value?Wt(e("div",{"onUpdate:show":r=>p.value=r,class:["n-modal-mask","n-modal-mask-guide"]},[e("div",{class:ce.content,onClick:()=>d()},[e("div",{class:ce.backBtn,onClick:r=>{r.stopPropagation(),E()}},[F("跳过")]),e("div",{class:ce.box,style:{...t.box},id:"modeType-".concat(t.step)},[t.steps.map((r,l)=>{var h,w,f,B,v,D;return e("div",{onClick:R=>R.stopPropagation(),class:ce.item,style:r.type=="bottom"?{display:l===t.step?"":"none",left:"".concat((h=r.eleRect)==null?void 0:h.left,"px"),top:"-".concat((w=r.imgStyle)==null?void 0:w.height)}:r.type=="left"?{display:l===t.step?"":"none",top:"".concat(parseFloat((f=t.box)==null?void 0:f.height)/2-parseFloat((B=r.imgStyle)==null?void 0:B.height)*1920/100/2-14,"px")}:{display:l===t.step?"":"none",left:"".concat((v=r.eleRect)==null?void 0:v.left,"px"),top:"".concat((D=t.box)==null?void 0:D.height)}},[e("img",{class:ce.img,style:r.imgStyle,src:r.img},null),e("div",{class:ce.btns,style:r.btnsStyle},[t.step+1==t.steps.length?e(Ae,null,[e("div",{class:[ce.endBtn],onClick:()=>E()},[F("完成")]),e("div",{class:ce.nextBtn,onClick:()=>{t.step=0,a()}},[F("再看一遍")])]):e("div",{class:ce.btn,onClick:()=>d()},[F("下一步 ("),t.step+1,F("/"),t.steps.length,F(")")])])])})])])]),[[vu,p.value,"show"]]):null])}}),bd=G({name:"prepare-lessons",setup(){const n=J({sidebarShow:!1}),i=Re(),t=W(),p=W(),o=u=>{var a;console.log(u,"val"),n.sidebarShow=u,(a=t.value)==null||a.resetTabPosition()};return se(()=>{x.on("teacher-slideshow",o)}),je(()=>{x.off("teacher-slideshow",o)}),se(()=>{Vt(document.querySelector("#lessons-height"),u=>{const a=u[0],{height:s}=a.contentRect;document.documentElement.style.setProperty("--window-page-lesson-height",s+"px")})}),Rs(()=>{i.setTabType("courseware"),i.setSelectMusicStatus(!1),i.setSelectResourceStatus(!1),i.setIsAddResource(!1),i.setIsAddTrain(!1),i.setIsEditResource(!1),i.setIsEditTrain(!1)}),je(()=>{i.setSubjectId("")}),()=>e("div",{class:[He.prepareLessons,n.sidebarShow?He.showSideBar:He.hideSideBar],id:"lessons-height"},[e("div",{class:He.directoryMain,ref:p.value},[e(yo,{sidebarShow:n.sidebarShow},null)]),e("div",{class:He.lessonMain},[e(Pc,null,null)]),e("div",{class:[He.resourceMain]},[n.sidebarShow&&e(Su,{ref:t},null)]),n.sidebarShow&&e(Mc,null,null)])}});export{bd as default};
|