1 |
- System.register(["./api-legacy-a2f27a6b-1709546248219.js","./index-legacy-a973e03d-1709546248219.js","./index-legacy-b6dd4c5c-1709546248219.js","./searchArray-legacy-b6a2d847-1709546248219.js","./catchData-legacy-631bbb82-1709546248219.js","./index-legacy-7b694c59-1709546248219.js","./index-legacy-4b69ef1c-1709546248219.js","./index-legacy-b6f510e8-1709546248219.js","./index-legacy-53183cba-1709546248219.js","./api-legacy-3be80fc3-1709546248219.js","./Scrollbar-legacy-9891af83-1709546248219.js","./index-legacy-9e501200-1709546248219.js","./icon-collect-active-legacy-b7c75e66-1709546248219.js","./index-legacy-ecb77364-1709546248219.js","./Slider-legacy-de4d26cb-1709546248219.js","./urlUtils-legacy-6df7f30c-1709546248219.js"],(function(e,t){"use strict";var a,o,i,l,n,s,r,d,c,p,u,_,g,m,h,b,v,w,f,A,y,S,x,z,k,C,I,M,U,B,P,j,G,R,E,F,T,N,O,W,Q,V,L,Z,K,Y,D,J,X,q,H,$,ee,te,ae,oe,ie,le,ne,se,re,de,ce,pe,ue,_e;return{setters:[e=>{a=e.i,o=e.C,i=e.m,l=e.f,n=e.a,s=e.b,r=e.c,d=e.d,c=e.e,p=e.g,u=e.h,_=e.j,g=e.k,m=e.l},e=>{h=e.P},e=>{b=e.T},e=>{v=e.r},e=>{w=e.u},e=>{f=e.d,A=e.e,y=e.r,S=e.p,x=e.f,z=e.w,k=e.j,C=e.O,I=e.N,M=e.g,U=e.v,B=e.ae,P=e.A,j=e.Y,G=e.I,R=e.Q,E=e.Z,F=e._,T=e.k,N=e.F,O=e.B,W=e.x,Q=e.l,V=e.b,L=e.V,Z=e.bj,K=e.h,Y=e.D,D=e.bk,J=e.bl,X=e.K,q=e.bm,H=e.P,$=e.n,ee=e.q,te=e.t},e=>{ae=e.T},e=>{oe=e.C},e=>{ie=e.A,le=e.i},e=>{ne=e.g,se=e.s,re=e.a,de=e.b},e=>{ce=e.N},e=>{pe=e.g,ue=e.a,_e=e.o},null,null,null,null],execute:function(){var t=document.createElement("style");t.textContent="._listWrap_sirzm_1{padding:1.66666667vw 1.04166667vw;background-color:#fff;border-radius:1.04166667vw;min-height:100%}._listWrap_sirzm_1 .n-tabs-tab-pad{width:4.16666667vw!important}._listWrap_sirzm_1 .n-tabs-nav{padding:0px 1.04166667vw 1.25vw}._listWrap_sirzm_1 .n-tabs-tab{color:#8b8d98;font-size:max(1.14583333rem,14Px);padding-top:0;padding-bottom:.3125vw;line-height:1.14583333vw}._listWrap_sirzm_1 .n-tabs-tab.n-tabs-tab--active{font-weight:600!important;color:#131415!important}._listWrap_sirzm_1 .n-tabs-tab__label{z-index:10}._listWrap_sirzm_1 .n-tabs-bar{height:.52083333vw;background:linear-gradient(90deg,#77BBFF 0%,rgba(163,231,255,.22) 100%);z-index:0;bottom:.10416667vw}._listWrap_sirzm_1 .n-tab-pane{padding:0 .625vw!important}._listWrap_sirzm_1 .n-pagination{margin-top:1.875vw!important}._list_sirzm_1{margin-top:.625vw;display:flex;flex-flow:row wrap;justify-content:flex-start;gap:1.14583333vw}._searchGroup_sirzm_46{position:relative;padding:0}._searchGroup_sirzm_46 ._btnType_sirzm_50{gap:0px 1.25vw!important}._searchGroup_sirzm_46 ._btnType_sirzm_50 .n-button{height:1.92708333vw;padding:0 1.25vw;font-size:.9375rem;color:rgba(0,0,0,.6)}._searchGroup_sirzm_46 ._btnType_sirzm_50 .n-button.n-button--primary-type{font-weight:700;color:#fff}._searchGroup_sirzm_46 .n-form{position:relative}._searchGroup_sirzm_46 .n-form-item .n-form-item-label{font-size:.88541667rem;font-weight:600;color:#131415;line-height:1.25vw}._searchGroup_sirzm_46 .n-form-item .n-button{height:1.66666667vw;font-size:.88541667rem;border-radius:.41666667vw;color:rgba(0,0,0,.6)}._searchGroup_sirzm_46 .n-form-item .n-button--primary-type{color:#131415}._searchGroup_sirzm_46 .n-form-item-feedback-wrapper{min-height:.72916667vw}._searchGroup_sirzm_46 ._inputSearch_sirzm_84{position:absolute;top:.20833333vw;right:0;width:18.75vw;height:2.1875vw;font-size:.83333333rem}._searchGroup_sirzm_46 ._inputSearch_sirzm_84 .n-input-wrapper{padding-left:.625vw;padding-right:.20833333vw;height:2.1875vw!important}._searchGroup_sirzm_46 ._inputSearch_sirzm_84 .n-button{height:1.77083333vw;font-size:.78125rem;font-weight:500;width:auto}._searchGroup_sirzm_46 ._searchCatatory_sirzm_103{display:flex;justify-content:space-between;padding-bottom:1.25vw;border-bottom:1px solid #F2F2F2;margin-bottom:1.04166667vw}._searchGroup_sirzm_46 ._searchCatatory_sirzm_103 ._addTrain_sirzm_110{height:1.92708333vw;border-radius:.41666667vw;font-size:.9375rem;background-color:#e8f4ff;color:#0378ec}._searchGroup_sirzm_46 ._searchCatatory_sirzm_103 ._addTrain_sirzm_110 img{width:.83333333vw;height:.83333333vw;margin-right:.41666667vw}._list_30kzo_1{margin-top:.625vw;display:flex;flex-flow:row wrap;justify-content:flex-start;gap:1.14583333vw 0;min-height:11.45833333vw;margin-left:-.625vw;margin-right:-.625vw}._list_30kzo_1 ._itemWrap_30kzo_11{width:20%;padding-bottom:calc(100% / 5 * .73333);position:relative}._list_30kzo_1 ._itemWrap_30kzo_11 ._itemWrapBox_30kzo_16{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 .625vw}._list_30kzo_1 .card-section-container{width:100%;height:100%}._searchGroup_30kzo_28{position:relative;padding:0}._searchGroup_30kzo_28 ._btnType_30kzo_32{gap:0px 1.25vw!important}._searchGroup_30kzo_28 ._btnType_30kzo_32 .n-button{height:1.92708333vw;padding:0 1.25vw;font-size:max(.9375rem,13Px);color:rgba(0,0,0,.6)}._searchGroup_30kzo_28 ._btnType_30kzo_32 .n-button.n-button--primary-type{font-weight:700;color:#fff}._searchGroup_30kzo_28 .n-form{position:relative}._searchGroup_30kzo_28 .n-form-item .n-form-item-label{font-size:max(.88541667rem,13Px);font-weight:600;color:#131415;line-height:1.25vw}._searchGroup_30kzo_28 .n-form-item .n-button{height:1.66666667vw;font-size:max(.88541667rem,12Px);border-radius:.41666667vw;color:rgba(0,0,0,.6)}._searchGroup_30kzo_28 .n-form-item .n-button--primary-type{color:#131415;background-color:#d2ecff!important}._searchGroup_30kzo_28 .n-form-item-feedback-wrapper{min-height:.72916667vw}._searchGroup_30kzo_28 ._inputSearch_30kzo_67{position:absolute;top:.20833333vw;right:0;width:18.75vw;height:2.1875vw;font-size:max(.9375rem,13Px);--n-height: 2.1875vw !important}._searchGroup_30kzo_28 ._inputSearch_30kzo_67 img{width:.9375vw;height:.9375vw}._searchGroup_30kzo_28 ._inputSearch_30kzo_67 .n-input-wrapper{padding-left:.625vw;padding-right:.20833333vw;height:2.1875vw!important}._searchGroup_30kzo_28 ._inputSearch_30kzo_67 .n-button{height:1.77083333vw;font-size:max(.83333333rem,12Px);font-weight:500;width:auto}._searchGroup_30kzo_28 ._searchCatatory_30kzo_91{display:flex;justify-content:space-between;padding-bottom:1.25vw;border-bottom:1px solid #F2F2F2;margin-bottom:1.04166667vw}._searchGroup_30kzo_28 ._searchCatatory_30kzo_91 ._addTrain_30kzo_98{height:1.92708333vw;border-radius:.41666667vw;font-size:max(.9375rem,13Px);background-color:#e8f4ff;color:#0378ec}._searchGroup_30kzo_28 ._searchCatatory_30kzo_91 ._addTrain_30kzo_98 img{width:.83333333vw;height:.83333333vw;margin-right:.41666667vw}._teachingModal_30kzo_110{width:57.29166667vw}._spaceSection_30kzo_113{width:75%;transition:1s all ease-in}._spaceSection_30kzo_113>div{height:34Px!important;display:flex!important;align-items:center;line-height:var(--n-blank-height)}._collapseWrap_30kzo_123{width:98%;display:flex;flex-direction:row;align-items:flex-end}._collaoseBtn_30kzo_129{width:1.66666667vw;height:1.66666667vw;cursor:pointer}._collaoseBtn_30kzo_129._isStart_30kzo_134{transform:rotate(-180deg)}._isHidden_30kzo_137{overflow:hidden;transition:1s all ease-in}._hideButton_30kzo_141{visibility:hidden;height:0!important;line-height:0!important}._popSelect_30kzo_146{font-size:.83333333rem;width:10.41666667vw;box-shadow:0 .10416667vw .83333333vw rgba(0,0,0,.08);border-radius:.57291667vw;--n-option-height: 1.77083333vw}._popSelect_30kzo_146 .n-base-select-option__content{width:80%!important}._spaceSection2_30kzo_156{width:75%;transition:1s all ease-in}._textBtn_30kzo_160{background:#fff;border-radius:8Px;padding:4Px 1.04166667vw;font-size:max(.88541667rem,12Px);color:rgba(0,0,0,.6);cursor:pointer;display:flex;align-items:center;font-weight:500;line-height:1.25vw}._textBtn_30kzo_160 ._iconArrow_30kzo_172{display:inline-block;margin-left:.41666667vw;width:.41666667vw;height:.26041667vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAAQBJREFUKFOVkbFOAkEQhuffCx3l7VwsNCY8wnZUNNjwCMbnMBRWJob3MD4CjTRUdvsIJEYLs7NX0pHbMUdOgnocMN1kvvlmMgM6Esx8UyMi8tqFoquYM99q0ueagcFdKfJyiD8oYuZxlXRORL2meZMZTERk0SZrFeX5hSNUS1Xt7zcBWJNmo7L88n9l/0TMPEhKb6rKrZMBMaChiKx+DdlPiqLgKmktGXQeFlhlBsMQgvxwu42stX1VWiqRO/bJ7fGJPECjGOO6yYmcc733j885qY5PkewYYHF9dTnx3m+2G1lbzJKm+7MkDWxgZjGGaSOy06T0SETZmbJkYB5iDE/f85tbC9QPlh0AAAAASUVORK5CYII=) no-repeat center center / contain;transform:rotate(180deg)}._textBtn_30kzo_160:hover,._textBtn_30kzo_160._textBtnActive_30kzo_181{background:#D2ECFF;font-weight:500;color:#131415}._textBtn_30kzo_160:hover ._iconArrow_30kzo_172{transform:rotate(0)}._list_183b0_1{margin-top:.625vw;display:flex;flex-flow:row wrap;justify-content:flex-start;gap:1.14583333vw 0;margin-left:-.625vw;margin-right:-.625vw}._searchGroup_183b0_10{position:relative;padding:0}._searchGroup_183b0_10 ._btnType_183b0_14{gap:0px 1.25vw!important}._searchGroup_183b0_10 ._btnType_183b0_14 .n-button{--n-height: 1.92708333vw !important;height:1.92708333vw;padding:0 1.25vw;font-size:max(.9375rem,13Px);color:rgba(0,0,0,.6)}._searchGroup_183b0_10 ._btnType_183b0_14 .n-button.n-button--primary-type{font-weight:700!important;color:#fff}._searchGroup_183b0_10 .n-form{position:relative}._searchGroup_183b0_10 .n-form-item .n-form-item-label{font-size:.88541667rem;font-weight:600;color:#131415;line-height:1.25vw}._searchGroup_183b0_10 .n-form-item .n-button{height:1.66666667vw;font-size:max(.88541667rem,12Px);border-radius:.41666667vw;color:rgba(0,0,0,.6)}._searchGroup_183b0_10 .n-form-item .n-button--primary-type{font-weight:400!important}._searchGroup_183b0_10 .n-form-item .n-button--primary-type{color:#131415;font-weight:700!important;background-color:#d2ecff!important}._searchGroup_183b0_10 .n-form-item-feedback-wrapper{min-height:.72916667vw}._searchGroup_183b0_10 ._inputSearch_183b0_54{position:absolute;top:.20833333vw;right:0;width:18.75vw;height:2.1875vw;font-size:max(.9375rem,13Px);--n-height: 2.1875vw !important}._searchGroup_183b0_10 ._inputSearch_183b0_54 img{width:.9375vw;height:.9375vw}._searchGroup_183b0_10 ._inputSearch_183b0_54 .n-input-wrapper{padding-left:.625vw;padding-right:.20833333vw;height:2.1875vw!important}._searchGroup_183b0_10 ._inputSearch_183b0_54 .n-button{height:1.77083333vw;font-size:max(.83333333rem,12Px);font-weight:500;width:auto}._searchGroup_183b0_10 ._searchCatatory_183b0_78{display:flex;justify-content:space-between;padding-bottom:1.25vw;border-bottom:1px solid #F2F2F2;margin-bottom:1.04166667vw}._searchGroup_183b0_10 ._searchCatatory_183b0_78 ._btnGroup_183b0_85{height:1.92708333vw}._searchGroup_183b0_10 ._searchCatatory_183b0_78 ._addTrain_183b0_88{--n-height: 1.92708333vw !important;height:1.92708333vw;border-radius:.41666667vw;font-size:max(.9375rem,13Px);background-color:#e8f4ff;color:#0378ec}._searchGroup_183b0_10 ._searchCatatory_183b0_78 ._addTrain_183b0_88._error_183b0_96{color:#ec3a4e;background-color:#fdebed}._searchGroup_183b0_10 ._searchCatatory_183b0_78 ._addTrain_183b0_88 img{margin-right:.41666667vw}._searchGroup_183b0_10 ._searchCatatory_183b0_78 ._addTrain_183b0_88 ._iconUpload_183b0_103{width:1.19791667vw;height:.98958333vw}._searchGroup_183b0_10 ._searchCatatory_183b0_78 ._addTrain_183b0_88 ._iconEdit_183b0_107{width:1.25vw;height:1.30208333vw}._searchGroup_183b0_10 ._searchCatatory_183b0_78 ._addTrain_183b0_88 ._iconSelectAll_183b0_111{width:1.04166667vw;height:1.04166667vw}._searchGroup_183b0_10 ._searchCatatory_183b0_78 ._addTrain_183b0_88 ._iconDelete_183b0_115{width:.9375vw;height:.9375vw}._searchGroup_183b0_10 ._searchCatatory_183b0_78 ._addTrain_183b0_88 ._iconPen_183b0_119{width:1.04166667vw;height:.98958333vw}._itemWrap_183b0_123{width:20%;padding-bottom:calc(100% / 5 * .73333);position:relative}._itemWrap_183b0_123 ._itemWrapBox_183b0_128{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 .625vw}._itemWrap_183b0_123 .card-section-container{width:100%;height:100%}._itemWrap_183b0_123 ._itemBg_183b0_140{position:absolute;left:.625vw;top:0;width:calc(100% - 1.25vw);height:100%;z-index:99;border-radius:.72916667vw}._itemWrap_183b0_123 ._itemBg_183b0_140._itemBgChecked_183b0_149{background-color:rgba(0,0,0,.5)}._itemWrap_183b0_123 ._itemBg_183b0_140 ._resourceDefault_183b0_152{position:absolute;top:.83333333vw;right:.83333333vw;width:1.5625vw;height:1.5625vw}._spaceSection_183b0_159{width:76%}._spaceSection_183b0_159>div{line-height:var(--n-blank-height)}._attendClassModal_183b0_165{width:57.29166667vw}._attendClassModal_183b0_165 .n-select-menu{--n-height: calc(var(--n-option-height) * 5.6) !important}._attendClassSaveModal_183b0_171{width:31.25vw}._attendClassSaveModal_183b0_171 .n-select-menu{--n-height: calc(var(--n-option-height) * 5.6) !important}._removeVisiable_183b0_177{width:22.5vw}._removeVisiable_183b0_177 .n-card-header{font-size:max(1.14583333rem,16Px)}._removeVisiable_183b0_177 ._studentRemove_183b0_183{padding:1.04166667vw 2.08333333vw 0}._removeVisiable_183b0_177 ._studentRemove_183b0_183 p{font-size:.9375rem;color:#777;line-height:1.5625vw;text-align:center}._removeVisiable_183b0_177 ._studentRemove_183b0_183 p span{color:#ea4132}._removeVisiable_183b0_177 ._btnGroupModal_183b0_195{padding:1.66666667vw 0}._removeVisiable_183b0_177 ._btnGroupModal_183b0_195 .n-button{height:2.44791667vw;min-width:8.125vw}._popSelect_183b0_202{font-size:.83333333rem;width:10.41666667vw;box-shadow:0 .10416667vw .83333333vw rgba(0,0,0,.08);border-radius:.57291667vw;--n-option-height: 1.77083333vw}._popSelect_183b0_202 .n-base-select-option__content{width:80%!important}._spaceSection2_183b0_212{width:75%;transition:1s all ease-in}._spaceSection2_183b0_212>div{height:34Px!important;display:flex;align-items:center}._textBtn_183b0_221{background:#fff;border-radius:8Px;padding:4Px 1.04166667vw;font-size:max(.88541667rem,12Px);color:rgba(0,0,0,.6);cursor:pointer;display:flex;align-items:center;font-weight:500;line-height:1.25vw}._textBtn_183b0_221 ._iconArrow_183b0_233{display:inline-block;margin-left:.41666667vw;width:.41666667vw;height:.26041667vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAAQBJREFUKFOVkbFOAkEQhuffCx3l7VwsNCY8wnZUNNjwCMbnMBRWJob3MD4CjTRUdvsIJEYLs7NX0pHbMUdOgnocMN1kvvlmMgM6Esx8UyMi8tqFoquYM99q0ueagcFdKfJyiD8oYuZxlXRORL2meZMZTERk0SZrFeX5hSNUS1Xt7zcBWJNmo7L88n9l/0TMPEhKb6rKrZMBMaChiKx+DdlPiqLgKmktGXQeFlhlBsMQgvxwu42stX1VWiqRO/bJ7fGJPECjGOO6yYmcc733j885qY5PkewYYHF9dTnx3m+2G1lbzJKm+7MkDWxgZjGGaSOy06T0SETZmbJkYB5iDE/f85tbC9QPlh0AAAAASUVORK5CYII=) no-repeat center center / contain;transform:rotate(180deg)}._textBtn_183b0_221:hover,._textBtn_183b0_221._textBtnActive_183b0_242{background:#D2ECFF;font-weight:500;color:#131415}._textBtn_183b0_221:hover ._iconArrow_183b0_233{transform:rotate(0)}._uploadModal_3dbwl_1{padding-top:2.08333333vw}._formModal_3dbwl_4{min-height:45vh;padding:0 2.08333333vw}._formModal_3dbwl_4 ._formSpace_3dbwl_8{gap:2.08333333vw 1.25vw!important}._formModal_3dbwl_4 ._previewModal_3dbwl_11{position:relative;width:16.66666667vw;height:9.375vw;margin-bottom:.625vw;border:1px solid #DCE2F1;border-radius:.52083333vw;overflow:hidden}._formModal_3dbwl_4 ._previewModal_3dbwl_11:hover{border-color:#198cfe}._formModal_3dbwl_4 ._previewModal_3dbwl_11 ._image_3dbwl_23{width:16.66666667vw;height:9.375vw}._formModal_3dbwl_4 ._previewModal_3dbwl_11 ._image_3dbwl_23 img{width:inherit;height:fit-content;min-height:100%}._formModal_3dbwl_4 ._previewModal_3dbwl_11 ._titleType_3dbwl_32{position:absolute;top:.3125vw;left:.3125vw;width:2.8125vw;height:1.35416667vw;z-index:99}._formModal_3dbwl_4 ._previewModal_3dbwl_11 ._iconUploadDelete_3dbwl_40{position:absolute;top:.36458333vw;right:.36458333vw;width:1.40625vw;height:1.40625vw;z-index:99;cursor:pointer}._formModal_3dbwl_4 ._previewModal_3dbwl_11 ._commonType_3dbwl_49{display:flex;align-items:center;position:absolute;bottom:0;left:0;font-size:.625rem;font-weight:600;color:#fff;height:2.23958333vw;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.7) 100%);width:100%;border-radius:0 0 .52083333vw .52083333vw;justify-content:flex-end;padding-right:.625vw;z-index:99}._formModal_3dbwl_4 ._previewModal_3dbwl_11 ._commonType_3dbwl_49 .n-switch__rail{background-color:#ccc}._formModal_3dbwl_4 ._previewModal_3dbwl_11 ._commonType_3dbwl_49 .n-switch.n-switch--active .n-switch__rail{background-color:var(--n-rail-color-active)}._formModal_3dbwl_4 ._formItem_3dbwl_72{width:16.66666667vw}._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-input{margin-bottom:.625vw}._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-input,._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-base-selection{border-radius:.41666667vw;font-size:.9375rem}._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-input .n-input__input-el,._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-base-selection .n-input__input-el,._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-input .n-input__input-el::placeholder,._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-base-selection .n-input__input-el::placeholder,._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-input .n-tag__content,._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-base-selection .n-tag__content{font-size:.9375rem}._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-form-item-feedback-wrapper{min-height:.625vw}._formModal_3dbwl_4 ._formItem_3dbwl_72 .n-upload-trigger+.n-upload-file-list{margin-top:.625vw}._btnGroup_3dbwl_97{padding:1.66666667vw 0}._btnGroup_3dbwl_97 .n-button{height:2.44791667vw;min-width:8.125vw}._uploadFile_3dbwl_104{margin-bottom:.625vw}._uploadFile_3dbwl_104 .n-upload-dragger{padding:0;border:none}._uploadFile_3dbwl_104 ._uploadBtn_3dbwl_111{display:flex;align-items:center;justify-content:center;flex-direction:column;width:16.66666667vw;height:9.375vw;padding-top:1.04166667vw;background:#F9FAFD;border-radius:.52083333vw;border:1px solid #DCE2F1;font-size:.9375rem;color:#9eadd9}._uploadFile_3dbwl_104 ._uploadBtn_3dbwl_111:hover{border-color:#198cfe}._uploadFile_3dbwl_104 ._uploadBtn_3dbwl_111 ._iconUploadAdd_3dbwl_128{width:2.60416667vw;height:2.60416667vw;margin-bottom:1.04166667vw}._saveModal_ulplg_1{padding:.9375vw 1.66666667vw}._saveModal_ulplg_1 .n-upload{--n-dragger-border: 1px solid #DCE2F1 !important;--n-dragger-border-hover: 1px solid #198CFE !important;--n-border-radius: 1.35416667vw !important}._saveModal_ulplg_1 .n-upload-file-info__name a{max-width:90%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._saveModal_ulplg_1 .n-upload-file-list{overflow:auto;max-height:30vh}._saveModal_ulplg_1 .n-upload-dragger{padding:0}._saveModal_ulplg_1 .n-upload-file-list .n-upload-file{border-radius:.41666667vw}._uploadBtn_ulplg_25{display:flex;align-items:center;justify-content:center;flex-direction:column;height:14.0625vw;background:#F9FAFD;border-radius:1.35416667vw;font-size:max(.83333333rem,12Px);color:rgba(19,20,21,.5)}._uploadBtn_ulplg_25 h3{padding-top:1.66666667vw;font-size:max(.9375rem,14Px);color:#131415}._uploadBtn_ulplg_25 p{padding-top:.83333333vw}._uploadBtn_ulplg_25:hover{border-color:#198cfe}._uploadBtn_ulplg_25:hover ._iconUploadAdd_ulplg_47{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAAB8CAMAAACcwCSMAAAA21BMVEUAAAAajv8ajP8Zjf8ZjP8Zjf8ajv8Zjf8fkv8Zjf8bjv8ajf8ajf8dj/8jnv8ajf8ajf8ajP8ckP8ajf8Zjf8Zjf8Zjf8Zjf8ekf8ZjP8ajf8ajP8bj/8aj/8ZjP8ajv8ajf8bjv8ZjP8bj/8bjf8glf8nnf8ZjP8ajf8ajf8bjv8kkv8ajf8ZjP7///+fz/6azP5+vv54u/4jkf4rlf7+/v7M5v632/6x2P6RyP5ttv5jsf7u9v7o8/7B4P6ZzP6Kxf6BwP5JpP4/n/42m/7V6v6m0v5ZrP5Tqf6U52/5AAAALXRSTlMAapXS9a1R/RDUMpF7IAns2Ls++riNhWQp4dqySTnngm9fW0ImGA3IvKVzFZuSBo1aAAACdElEQVRo3u3a6W7aUBCG4Y8EbDD7DgESlpC146QFwpakWbrd/xVVhbFrMEZu5TlKm/P89J9XI3s4EjrQNO3dSbbrmfRB9NKZ3iCHfXKxYpnkxBN9BIodk7SCgZ2yh6RCJQm/Up7UODr1t8ukSj6LTdk8qZM6w4ZDUikBr5h3H066seh1a5UyuUre/T5205kcpFynTWLnuwY/tiCpHd8xetGZ24Isw5k9DUfSeRsZSLvkUhOOtjN4DtIaxLJgdXcD5BW41QHL0NoJ5CW4ZYBVaa0LeR+4Vd+evAZ5re3Je85pB3lNbllgA1orX0Nah9gQLBd3V1/ahXOw+T9Bsw1ZV+T/vPrE4gYkXZnErB2rT+ZlA1I6F+RowcOg3/JHqcPopZpxcpmbE1ZIpSo2JI9InSK2nOZJlUIS27IpUqOYhN9ZghQwq9hNRf0EAQ5IXkzHdVzHddxDx99gfPwyIg+V8fHUtic3bl5t/M7+ZUZMaXxpr70SUxmfc3xBTGX8huOfaEXHdVzHdVzH/8n4cn7r8ZXjj96HTz9k4uM7O4zpSCI+tcOZC8THdkj3AvEXO6xR9PHRJGT7QeKdfwsZf5aIj2Zh0pPPQnv+uvjo4WzezPtw8eW//IXTcR3X8RUd13HZ+BPHl8RUxr/zGcrnmNo4Pa7i7vmtNj66vbcfnsmhKu4a04b389+rjuu4jv9NPE3y6giQIXkGAvRInoUAA5I3RIBcnKSlEChB0moI1CdpFoIVSFYLexgkymxgnwpJqmKLwtthRWxReDvMfxtM3e2woq+t7HaYWUU4pXOKWquB0ErpJkUnVbPwZ7IdIxaBumENoWlvwk+UdX0ONunvpgAAAABJRU5ErkJggg==) no-repeat center;background-size:contain}._uploadBtn_ulplg_25 ._iconUploadAdd_ulplg_47{width:3.22916667vw;height:3.22916667vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAAB8CAMAAACcwCSMAAAAb1BMVEUAAACQocyRn82Sn82Ros2Rn82Sn82RoM2RoM2RoM2Soc6QoM2dptOdqdORoM2RoM2Sos+Uos6Rn8yVos+UoNWRoM2RoM2QoMyRoc2Soc+RoMyQn82SoM2Up9GRoM2UoM6SoMyRn82Tos2SoM6Qn8xY2+B+AAAAJHRSTlMAapXSp5BwrbuEUfUOCeS0OCj6IBfse9dhMdvIWhKbPktIQkBUIuJJAAACTklEQVRo3u3aaY+iQBCA4UJsLjkVUMBjHOv//8bNZmmapdyVSahmjno+ksm84WhbSYEQ4seJ76dabZan6tN7Av+TOMEe+ez8M/yTkyK3YwRPHVy0IYuBulVoR1vQ9h5tqQ7Ta16hPe7kyrtokw9jzng9hJ6zPC8cr+IbGEk6pOsEuJQKte7ZiacNcHrb6dADBoE+7wZ4RTquQIv13aiB21ZfYtDu+sQT4FZgb1jrp2EF8Dv2rRx6dX8gBH5+3xo2GL0EPOB37VunNc4802c+vecB8Eun9/y9P7AvgVuOvSGV7Ialzy3QGxt9BPENeHlIH6/zsK9EwMi0sflr6WvbArjkAWrZ5AN/ULUuh3aHg31Blp8l9MGOW7QnINtNhbYcL7Z/MxjBBajYRxsUPMdaf7V5bZCf8yrebZfXzo07sLyNxCUucYl/rfilSdaKlz4ibpJ14h3+trUYp994izXiIf5xthinfy1xiUtc4hL/wvEoVCOu/r09Plg/eOJlh3P4CUc8w3lChniJM1UM8RznipePxzhTynHPrziPxxCf+7ZKMa3z5uSNdHptjQ+eD9/yE07iEpe4xCX+3d9M3M3ohf04ZGb/th9PVIWpt97rz8tPffcqcYlL/GP/m3867PoqTqfD2KbBDPbpMDoNZrBPh9FpMIN7OoxOgxns02F0GszgnQ6j02AUnQ5jngajIjSO/mYBVz+l02CGxekwBYS16bAACGvTYXQazN50WEDa1qbD9grmuXW4tKyA2R4qxeW4YQMfc8gjZwlRXoIQn8IvnV8v/NH/vD8AAAAASUVORK5CYII=) no-repeat center;background-size:contain}._btnGroup_ulplg_57{padding:1.66666667vw 0}._btnGroup_ulplg_57 .n-button{height:2.44791667vw;min-width:8.125vw}._list_44zd9_1{margin-top:.625vw;display:flex;flex-flow:row wrap;justify-content:flex-start;gap:1.14583333vw 0;min-height:11.45833333vw;margin-left:-.625vw;margin-right:-.625vw}._list_44zd9_1 ._itemWrap_44zd9_11{width:20%;padding-bottom:calc(100% / 5 * .73333);position:relative}._list_44zd9_1 ._itemWrap_44zd9_11 ._itemWrapBox_44zd9_16{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 .625vw}._list_44zd9_1 .card-section-container{width:100%;height:100%}._searchGroup_44zd9_28{position:relative;padding:0}._searchGroup_44zd9_28 ._btnType_44zd9_32{gap:0px 1.25vw!important}._searchGroup_44zd9_28 ._btnType_44zd9_32 .n-button{height:1.92708333vw;padding:0 1.25vw;font-size:max(.9375rem,13Px);color:rgba(0,0,0,.6)}._searchGroup_44zd9_28 ._btnType_44zd9_32 .n-button.n-button--primary-type{font-weight:700;color:#fff}._searchGroup_44zd9_28 .n-form{position:relative}._searchGroup_44zd9_28 .n-form-item .n-form-item-label{font-size:.88541667rem;font-weight:600;color:#131415;line-height:1.25vw}._searchGroup_44zd9_28 .n-form-item .n-button{height:1.66666667vw;font-size:max(.88541667rem,12Px);border-radius:.41666667vw;color:rgba(0,0,0,.6)}._searchGroup_44zd9_28 .n-form-item .n-button--primary-type{color:#131415;background-color:#d2ecff!important}._searchGroup_44zd9_28 .n-form-item-feedback-wrapper{min-height:.72916667vw}._searchGroup_44zd9_28 ._inputSearch_44zd9_67{position:absolute;top:.20833333vw;right:0;width:18.75vw;height:2.1875vw;font-size:max(.9375rem,13Px);--n-height: 2.1875vw !important}._searchGroup_44zd9_28 ._inputSearch_44zd9_67 img{width:.9375vw;height:.9375vw}._searchGroup_44zd9_28 ._inputSearch_44zd9_67 .n-input-wrapper{padding-left:.625vw;padding-right:.20833333vw;height:2.1875vw!important}._searchGroup_44zd9_28 ._inputSearch_44zd9_67 .n-button{height:1.77083333vw;font-size:max(.83333333rem,12Px);font-weight:500;width:auto}._searchGroup_44zd9_28 ._searchCatatory_44zd9_91{display:flex;justify-content:space-between;padding-bottom:1.25vw;border-bottom:1px solid #F2F2F2;margin-bottom:1.04166667vw}._searchGroup_44zd9_28 ._searchCatatory_44zd9_91 ._addTrain_44zd9_98{height:1.92708333vw;border-radius:.41666667vw;font-size:max(.9375rem,13Px);background-color:#e8f4ff;color:#0378ec}._searchGroup_44zd9_28 ._searchCatatory_44zd9_91 ._addTrain_44zd9_98 img{width:.83333333vw;height:.83333333vw;margin-right:.41666667vw}._spaceSection_44zd9_110{width:76%}._spaceSection_44zd9_110>div{line-height:var(--n-blank-height)}._collapseWrap_44zd9_116{width:98%;display:flex;flex-direction:row;align-items:flex-end}._collaoseBtn_44zd9_122{width:1.66666667vw;height:1.66666667vw;cursor:pointer}._collaoseBtn_44zd9_122._isStart_44zd9_127{transform:rotate(-180deg)}._collapsSection_44zd9_130{padding-top:.52083333vw}._isHidden_44zd9_133{overflow:hidden;transition:1s all ease-in}._hideButton_44zd9_137{visibility:hidden;height:0!important;line-height:0!important}._popSelect_44zd9_142{font-size:.83333333rem;width:10.41666667vw;box-shadow:0 .10416667vw .83333333vw rgba(0,0,0,.08);border-radius:.57291667vw;--n-option-height: 1.77083333vw}._popSelect_44zd9_142 .n-base-select-option__content{width:80%!important}._spaceSection2_44zd9_152{width:75%;transition:1s all ease-in}._spaceSection2_44zd9_152>div{height:34Px!important;display:flex;align-items:center}._textBtn_44zd9_161{background:#fff;border-radius:8Px;padding:4Px 1.04166667vw;font-size:max(.88541667rem,12Px);color:rgba(0,0,0,.6);cursor:pointer;display:flex;align-items:center;font-weight:500;line-height:1.25vw}._textBtn_44zd9_161 ._iconArrow_44zd9_173{display:inline-block;margin-left:.41666667vw;width:.41666667vw;height:.26041667vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAAQBJREFUKFOVkbFOAkEQhuffCx3l7VwsNCY8wnZUNNjwCMbnMBRWJob3MD4CjTRUdvsIJEYLs7NX0pHbMUdOgnocMN1kvvlmMgM6Esx8UyMi8tqFoquYM99q0ueagcFdKfJyiD8oYuZxlXRORL2meZMZTERk0SZrFeX5hSNUS1Xt7zcBWJNmo7L88n9l/0TMPEhKb6rKrZMBMaChiKx+DdlPiqLgKmktGXQeFlhlBsMQgvxwu42stX1VWiqRO/bJ7fGJPECjGOO6yYmcc733j885qY5PkewYYHF9dTnx3m+2G1lbzJKm+7MkDWxgZjGGaSOy06T0SETZmbJkYB5iDE/f85tbC9QPlh0AAAAASUVORK5CYII=) no-repeat center center / contain;transform:rotate(180deg)}._textBtn_44zd9_161:hover,._textBtn_44zd9_161._textBtnActive_44zd9_182{background:#D2ECFF;font-weight:500;color:#131415}._textBtn_44zd9_161:hover ._iconArrow_44zd9_173{transform:rotate(0)}\n",document.head.appendChild(t);const ge={listWrap:"_listWrap_sirzm_1",list:"_list_sirzm_1",searchGroup:"_searchGroup_sirzm_46",btnType:"_btnType_sirzm_50",inputSearch:"_inputSearch_sirzm_84",searchCatatory:"_searchCatatory_sirzm_103",addTrain:"_addTrain_sirzm_110"},me={list:"_list_30kzo_1",itemWrap:"_itemWrap_30kzo_11",itemWrapBox:"_itemWrapBox_30kzo_16",searchGroup:"_searchGroup_30kzo_28",btnType:"_btnType_30kzo_32",inputSearch:"_inputSearch_30kzo_67",searchCatatory:"_searchCatatory_30kzo_91",addTrain:"_addTrain_30kzo_98",teachingModal:"_teachingModal_30kzo_110",spaceSection:"_spaceSection_30kzo_113",collapseWrap:"_collapseWrap_30kzo_123",collaoseBtn:"_collaoseBtn_30kzo_129",isStart:"_isStart_30kzo_134",isHidden:"_isHidden_30kzo_137",hideButton:"_hideButton_30kzo_141",popSelect:"_popSelect_30kzo_146",spaceSection2:"_spaceSection2_30kzo_156",textBtn:"_textBtn_30kzo_160",iconArrow:"_iconArrow_30kzo_172",textBtnActive:"_textBtnActive_30kzo_181"};function he(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!P(e)}const be=f({name:"search-group",emits:["search","add"],expose:["init"],setup(e,{emit:t}){const o=w(),i=A({type:"MUSIC",name:"",bookVersionId:null,subjectId:null}),l=()=>{t("search",i)},n=y(),s=y([]),r=y(0),d=y(0),c=y(!1),p=y(!1),u=e=>{e?.selfElRef&&s.value.push(e.selfElRef.parentNode)},_=()=>{try{s.value=[...new Set(s.value)];let e=-1;s.value.forEach(((t,a)=>{0===a?(d.value=1,e=t.offsetLeft):t.offsetLeft===e&&0!=a&&d.value++,c.value?t.style.display="block":d.value>1?t.style.display="none":t.style.display="block"})),p.value=!0}catch{}},g=e=>{const t={};return e?.forEach((e=>{e.id===i.subjectId&&(t.selected=!0,t.name=e.name)})),t};return S((async()=>{await o.getMusicSheetCategory(),await o.getSubjects(),"MUSIC"===i.type&&(r.value=n.value?.offsetHeight,_())})),()=>{let e,t;return x("div",{class:me.searchGroup},[x("div",{class:[me.searchCatatory]},[x(z,{size:"small",class:me.btnType},he(e=v.map((e=>x(k,{type:i.type===e.value?"primary":"default",secondary:i.type!==e.value,round:!0,size:"small",focusable:!1,onClick:()=>{i.type=e.value,l(),C((()=>{"MUSIC"===i.type?(r.value=n.value?.offsetHeight,_()):s.value=[]}))}},{default:()=>[e.label]}))))?e:{default:()=>[e]})]),x(I,{labelAlign:"left",labelPlacement:"left"},{default:()=>["MUSIC"===i.type&&x("div",{class:[me.collapsSection]},[x(M,{label:"教材:"},{default:()=>[x("div",{class:[me.collapseWrap,p.value?"":me.hideButton,c.value?"":me.isHidden],ref:n},[x(z,{class:[me.spaceSection2]},{default:()=>[o.getAllMusicCategories.map((e=>x(k,{ref:u,secondary:i.bookVersionId===e.id,quaternary:i.bookVersionId!==e.id,strong:!0,focusable:!1,type:i.bookVersionId===e.id?"primary":"default",onClick:()=>{i.bookVersionId=e.id,l()}},{default:()=>[e.name]}))),d.value>1&&x("div",{style:{position:"absolute",display:"flex",alignItems:"center"},onClick:()=>{var e;e=!c.value,c.value=e,_()}},[x(U,{previewDisabled:!0,src:a,class:[me.collaoseBtn,c.value?me.isStart:""]},null)])]})])]})]),x(M,{label:"声部:"},{default:()=>[x(z,{class:me.spaceSection},he(t=o.getSubjectInstruments.map((e=>e.instruments&&e.instruments.length>1?x(B,{options:e.instruments,trigger:"hover",value:i.subjectId,"onUpdate:value":[e=>i.subjectId=e,()=>{l()}],key:e.value,class:[me.popSelect]},{default:()=>[x("span",{class:[me.textBtn,g(e.instruments).selected&&me.textBtnActive]},[g(e.instruments).name||e.name,x("i",{class:me.iconArrow},null)])]}):x("span",{class:[me.textBtn,i.subjectId===e.value&&me.textBtnActive],onClick:()=>{i.subjectId=e.value,l()}},[e.name]))))?t:{default:()=>[t]})]}),x(b,{class:me.inputSearch,round:!0,onSearch:e=>{i.name=e,l()}},null)]})])}}}),ve=f({name:"shareResources-guide",emits:["close"],setup(e,{emit:t}){const a=A({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:ne("shareResources1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:j(-4),left:j(-263),width:j(553),height:j(229)},btnsStyle:{bottom:j(30),left:j(-102)},eleRectPadding:{left:14,top:14,width:28,height:28},boxStyle:{borderRadius:"30px"}},{ele:"",img:ne("shareResources2.png"),imgStyle:{left:j(99),width:j(618),height:j(273)},btnsStyle:{bottom:j(88),left:j(240)},eleRectPadding:{left:7,top:7,width:14,height:14},boxStyle:{borderRadius:"15px"},type:"bottom"}],step:0}),o=y(!1),i=y({});(async()=>{try{const e=await re({guideTag:"teacher-guideInfo"});e.data?i.value=JSON.parse(e.data?.guideValue)||null:i.value={},i.value&&i.value.shareResourcesGuide?o.value=!1:o.value=!0}catch(e){console.log(e)}})();const l=()=>{const e=document.getElementById(`shareResources-${a.step}`);if(e){const t=e.getBoundingClientRect(),o=a.steps[a.step].eleRectPadding?.left||0,i=a.steps[a.step].eleRectPadding?.top||0,l=a.steps[a.step].eleRectPadding?.width||0,n=a.steps[a.step].eleRectPadding?.height||0;"shareResources-1"==`shareResources-${a.step}`?(a.box={left:t.x-o+"px",top:t.y-i+"px",width:2*(t.width+l)+l+"px",height:t.height+n+"px"},console.log(a.box.width,"---",t.width)):a.box={left:t.x-o+"px",top:t.y-i+"px",width:t.width+l+"px",height:t.height+n+"px"}}else r()},n=async e=>{try{if("shareResources"!==e)return;i.value?i.value.classGuide=!1:i.value={classGuide:!1};try{await de({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(i.value)})}catch(t){console.log(t)}a.step=0,l(),o.value=!0}catch{}};S((()=>{l(),window.addEventListener("resize",s),G.on("natural-resources-guide",(e=>n(e)))}));const s=()=>{l()};R((()=>{window.removeEventListener("resize",s),G.off("natural-resources-guide",n)}));const r=()=>{a.step>=4?d():(a.step=a.step+1,l())},d=async()=>{i.value?i.value.shareResourcesGuide=!0:i.value={shareResourcesGuide:!0};try{await de({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(i.value)})}catch(e){console.log(e)}o.value=!1};return()=>x(N,null,[o.value?E(x("div",{"onUpdate:show":e=>o.value=e,class:["n-modal-mask","n-modal-mask-guide"]},[x("div",{class:se.content,onClick:()=>r()},[x("div",{class:se.backBtn,onClick:e=>{e.stopPropagation(),d()}},[T("跳过")]),x("div",{class:se.box,style:{...a.box,...a.steps[a.step].boxStyle},id:`modeType-${a.step}`},[a.steps.map(((e,t)=>x("div",{onClick:e=>e.stopPropagation(),class:se.item,style:"bottom"==e.type?{display:t===a.step?"":"none",left:`${e.eleRect?.left}px`,top:`-${e.imgStyle?.height}`}:{display:t===a.step?"":"none",left:`${e.eleRect?.left}px`,top:`${a.box?.height}`}},[x("img",{class:se.img,style:e.imgStyle,src:e.img},null),x("div",{class:se.btns,style:e.btnsStyle},[a.step+1==a.steps.length?x(N,null,[x("div",{class:[se.endBtn],onClick:()=>d()},[T("完成")]),x("div",{class:se.nextBtn,onClick:()=>{a.step=0,l()}},[T("再看一遍")])]):x("div",{class:se.btn,onClick:()=>r()},[T("下一步 ("),a.step+1,T("/"),a.steps.length,T(")")])])])))])])]),[[F,o.value,"show"]]):null])}}),we=f({name:"share-resources",setup(){const e=A({searchWord:"",loading:!1,pageTotal:0,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,subjectId:null,sourceType:2},tableList:[],teachingStatus:!1,show:!1,item:{}}),t=y(!1),a=y(),n=async()=>{try{e.loading=!0;const{data:a}=await i({...e.searchGroup,...e.pagination});e.loading=!1,e.pageTotal=Number(a.total);const o=a.rows||[],l=[];o.forEach((e=>{l.push({id:e.id,coverImg:e.coverImg,type:e.type,title:e.name,isCollect:!!e.favoriteFlag,isSelected:"PLATFORM"===e.sourceFrom,content:e.content})})),e.tableList=l||[],setTimeout((()=>{t.value=!0}),500)}catch{e.loading=!1}},s=async e=>{try{await l({materialId:e.id,favoriteFlag:e.isCollect?0:1,type:e.type}),e.isCollect=!e.isCollect}catch{}};return S((()=>{n()})),()=>x(N,null,[x(be,{ref:a,onSearch:t=>(async t=>{e.pagination.page=1;const{subjectId:a,...o}=t;e.searchGroup=Object.assign(e.searchGroup,{...o,musicalInstrumentId:a}),n()})(t),onAdd:()=>e.teachingStatus=!0},null),x(O,{show:e.loading,"onUpdate:show":t=>e.loading=t,style:{"min-height":"50vh"}},{default:()=>[x("div",{class:me.list},[e.tableList.map(((t,a)=>x("div",{class:me.itemWrap},[x("div",{class:me.itemWrapBox},[x(o,0==a?W({id:"shareResources-1"},{item:t,disabledMouseHover:!1,onClick:t=>{"IMG"!==t.type&&(e.show=!0,e.item=t)},onCollect:e=>s(e)}):{item:t,disabledMouseHover:!1,onClick:t=>{"IMG"!==t.type&&(e.show=!0,e.item=t)},onCollect:e=>s(e)},null)])]))),!e.loading&&e.tableList.length<=0&&x(ae,{style:{minHeight:"50vh"},description:"暂无共享资源"},null)])]}),x(h,{page:e.pagination.page,"onUpdate:page":t=>e.pagination.page=t,pageSize:e.pagination.rows,"onUpdate:pageSize":t=>e.pagination.rows=t,pageTotal:e.pageTotal,"onUpdate:pageTotal":t=>e.pageTotal=t,onList:n},null),x(oe,{show:e.show,"onUpdate:show":t=>e.show=t,item:e.item},null),x(Q,{show:e.teachingStatus,"onUpdate:show":t=>e.teachingStatus=t,preset:"card",showIcon:!1,class:["modalTitle background",me.teachingModal],title:"自定义教材",blockScroll:!1},{default:()=>[x(ie,{onClose:()=>e.teachingStatus=!1},null)]}),t.value?x(ve,null,null):null])}}),fe="_list_183b0_1",Ae="_searchGroup_183b0_10",ye="_btnType_183b0_14",Se="_inputSearch_183b0_54",xe="_searchCatatory_183b0_78",ze="_btnGroup_183b0_85",ke="_addTrain_183b0_88",Ce="_error_183b0_96",Ie="_iconUpload_183b0_103",Me="_iconEdit_183b0_107",Ue="_iconSelectAll_183b0_111",Be="_iconDelete_183b0_115",Pe="_iconPen_183b0_119",je="_itemWrap_183b0_123",Ge="_itemWrapBox_183b0_128",Re="_itemBg_183b0_140",Ee="_itemBgChecked_183b0_149",Fe="_resourceDefault_183b0_152",Te="_attendClassModal_183b0_165",Ne="_attendClassSaveModal_183b0_171",Oe="_removeVisiable_183b0_177",We="_studentRemove_183b0_183",Qe="_btnGroupModal_183b0_195",Ve="_popSelect_183b0_202",Le="_spaceSection2_183b0_212",Ze="_textBtn_183b0_221",Ke="_iconArrow_183b0_233",Ye="_textBtnActive_183b0_242";function De(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!P(e)}const Je=f({name:"search-group",emits:["search","upload","edit","selectAll","delete","update"],setup(e,{emit:t,expose:a}){const o=y([]),i=w(),l=A({type:"MUSIC",name:"",bookVersionId:null,subjectId:null}),n=A({tempSubjectId:null,isEdit:!1,isSelectAll:!1}),s=()=>{t("search",l)};S((async()=>{o.value=[],v.forEach((e=>{o.value.push(e)})),await i.getSubjects(),l.subjectId&&(n.tempSubjectId=l.subjectId)}));const r=e=>{const t={};return e?.forEach((e=>{e.id===l.subjectId&&(t.selected=!0,t.name=e.name)})),t};return a({resetStatus:()=>{n.isSelectAll=!1}}),()=>{let e,a;return x("div",{class:Ae},[x("div",{class:xe},[x(z,{size:"small",class:ye},De(e=o.value.map((e=>x(k,{type:l.type===e.value?"primary":"default",secondary:l.type!==e.value,round:!0,size:"small",focusable:!1,onClick:()=>{l.type!==e.value&&(n.isEdit=!1,n.isSelectAll=!1,t("edit",n.isEdit)),l.type=e.value,s()}},{default:()=>[e.label]}))))?e:{default:()=>[e]}),x(z,{size:"small",class:ze},{default:()=>[n.isEdit?x(N,null,[x(k,{type:"primary",class:ke,focusable:!1,strong:!0,onClick:()=>{n.isSelectAll=!n.isSelectAll,t("selectAll",n.isSelectAll)}},{default:()=>[x("img",{src:n.isSelectAll?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABPBJREFUWEfNWWtsU2UYft72rBfbdVu7TViMIJtGIhMSf5lMA7h/ogJuYZkmxgwkGJfo0GQ1uBVmnBohEI0JIBEVJMDEeb+gbvzgj0wlbhohW4w6Cxvt2LrTrbdzPvMd6P3QnlMurn/Pe3m+9/K87/eVUODPvGWyWpKkRxjYPcRQBUIVA6q4OQK8YPAygpdAPxmNxk/CL5eOFOKK9CjZPdOVoUjkGTCsYYwt0aNLREMgfGwxmd4SPcXjWnU1AazwMPvF0MRmRux5MNi1GleVI4jE6I0yi3P7BQ+J+WzlBWh0+9YCeBsMN+czpus7YQzA01J3+bFcelcEyBijIvdEBwM6AZb3ILrAJYSJG94a7XZuIyKmZkPV8S07mPXc+MR7AGsszLFeLTo6v9L5xGgbzWZqZgHkkRPcE4dvHLg4JDoa63auy4xkFkCh3d/JwDx6Y3At5Ankib3q2ppqKw2g0hCMeq5fzeU7BjEQa0htnARATiUTYf/wNe/WfJiyi27MaXbVxCkoAfD/TG02xmSqFYB8QsyGwyNXTcI5ouUwE1YtLoLDcikmZiNh18mQugZBtJrN1XziKNKC29/FGNuiNxta5Q0EnGotQbXTCLv5EsBQlGHDMRGHTkfUB46BumKvuDriAAf1zlat4LjcvgYbmpaaYRaSPTl4PobluwOYCqnyM/jsjnW7aolvJbFYbFiPQz2yDbUmvPmwDRV2Q0LtXEDCowdE/PhPLKcpQRBqSHD72xhj2/U41Sq7oNSA7zY4cJvTmFCZCsl4rX8Wr5+4Qv2lGCeizWR0+w6CoVmrU61yggH44slirFhUBAMvQgCSzNA3EsWD+6chyRosET4k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ZR5OpYt99aS62uG5gBi4HigpY1PBkJDMk81wZmK2SsW8CtoGETvVb/AsD+WDXRV6uuX9TfEP8CCAycy76bdMQAAAAASUVORK5CYII=",class:Ue},null),T("全选")]}),x(k,{type:"error",class:[ke,Ce],focusable:!1,strong:!0,onClick:()=>t("delete")},{default:()=>[x("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA4NJREFUWEftmE9sG0UUxr83a5yCRJPsmguICiLOSECril3HQQIOHPA6lILgEDUXpKotpQegh0oIcaEgQYFCJS6lICGhEuL1hQMgEcdeCfFP4kxThAoXvHZaJGgTez7ktUMT2/Hf5FDJe/O89775+c3uezMj6PIpxN29SssUhRMgpaswEQplSSsuxHLed93EdBTmY0dGipd/P0NwthvBzXwEctYc3XVQvnzvWjudjkAF230d4MuDwFyPlZMx3zveNxCd5K1FSImkURURyG8QfA1SdwUookA8QvCuMF6kYoLjks/8vXkm2yiXEslEpYyF0EVwLbrDuGPnN/NBVzB1pysPT1srVyt/gBipDhkRTI1nM9m+gAI7tY/Qn69lx/K9u3uBWfMNbPfi/1mCetLy03M3FlApkbxPl9VEEzW5l8IX6xm6DOLDfjIEwXMER0MdypsQaSoBKqKXxrOZnyVwUk+R+rO+JtriIBH1tBTiyZPQeGmLtfuTU3hDgoR7J8v8SCDNS1ZbKwvEjv5maIgSXAXR8islcEEimO1YGLcEpAeRJiCSEsTdj0E8qqBeNf30mR70OroW7dRBDf0KBF9ZOW9GRLg+qAloefKJ+8uV8o/1LyuwfC/WOEsx7j5OwYiZTc81CnL//mjwZ/kZw6hcbFUAA9stELSqmhEj8sDY4hc/tQUqOtNxzcpizUn+jfneLesDCnF3BprnQquoY1Y+fWqD3XFPgzwU2iPiWFnP32C33X8A3lwdU2JMmvn53EBAgZN8m8QLdeBPYr43s14wcFyf5IPhhEoOmznv/e0FslOnCH20GyCIOhLLp08PgTZbsmGGAGn7Ug8zNMxQq0odDOtQh14WOO5bJI/VehnOWfnMgQ11yHbzBO166zhk5rwPtrVSl5xkUhNphsc040AsPx822rUnsFOvEfqEQFbFiOw2F+d+2Vagqnhxct+9Sq9Gx/KZHxq3JtXfpcnpKanw0pifvtBoL2x1t28F0MvYjQ+07CR3l4nv6y9tWd2kbhv/Nr3cSxY28y09lBrTq/ovEpGqT0Swp3HZm/fUteuXKwSjdeFfRbAAojIQlMAgMQXgnvDPQlbM0V07G69nWp46Att9h+DzAwF0CBbIu5bv1Td6151bAtU26itnQT67LVAin1q3R2fl/PmVRv2257LwGo9MaMiEkGoQOIpoBS5pkWy7673/AG2QyadOuCtAAAAAAElFTkSuQmCC",class:Be},null),T("删除")]}),"MUSIC"!==l.type&&x(k,{type:"primary",class:ke,focusable:!1,strong:!0,onClick:()=>t("update")},{default:()=>[x("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAYAAAC29NkdAAAAAXNSR0IArs4c6QAABN5JREFUWEftmG1oW1UYx//POTdtZrVLcrNRQWSKAxEFQRDdsK1QN/GlnbopilNhvoAwGBNZbuswUJdsIPiCL9Mx0Olq3QS/jomgMJGNrds+WIcgOiYoNPfGdjZNmuQ8cnKT2Pd781L2xfP1Pvec3/k/b+ccwjKPNXEOXsqle4jVbSRojDhwYjrZfsHvsuTXsB47w3LuYeYhgFeC0AKmPMAGBD65Nmru/GMnTXnNu2yAst95EIq/Ajg4H4KmCHSmY3V4gxfksgBKy3kIzEfnwGUAaikp6I4pIhrpWBW5bynIpgPKAedhFPnIf3DEAGcE0XbFvAmEHjCuKiEStJJLQjYVUFrpXrD6ch6cNLrze0Kn43EWg7n0YUD1ViG1kqCzHasjPQsp2TRAOZDuQ1ENLwZXicMy5OeA6psNKb4r7I08MDdemwIorfQmqOIwCK3uAsQgTAoh79XKzV20CsmqD6i6OyNJbJtORIZn2jcMKAdSj6CAL2bD8aRgozu/N3RmsTLiQjpDYPQCvMINSXG8sDeysWmA0ko9CoWhWuEqAKF4O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bdAO4H85VVkSgH4Fghaf6od/8vhSxORT1lzwAAAAAASUVORK5CYII=",class:Pe},null),T("修改")]}),x(k,{type:"primary",class:ke,focusable:!1,strong:!0,onClick:()=>{n.isEdit=!1,n.isSelectAll=!1,t("edit",n.isEdit)}},{default:()=>[T("完成编辑")]}),x(k,{type:"error",class:[ke,Ce],focusable:!1,strong:!0,onClick:()=>{n.isEdit=!1,n.isSelectAll=!1,t("edit",n.isEdit)}},{default:()=>[T("取消编辑")]})]):x(N,null,[x(k,W({type:"primary",class:ke,focusable:!1},{id:"myResources-0"},{strong:!0,onClick:()=>t("upload")}),{default:()=>[x("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAmCAYAAAC76qlaAAAAAXNSR0IArs4c6QAAB9dJREFUWEe1mQ2MHGUZx//POzO3V669j5mt0g8badGmRKFfVA2ijWCICAUKJbFAoygJkdAPtcnOXmuW2Ns5E6IUaSiCoJRKpdSWIn7RmIZqlBZL/Ugr6LVaS096O3PXa3vs7sy8j5m9/Zhu73Z2r8cmd7m7eT5+7/M+zzPP+x5hnD6pFIsNuf5PAfKzTJhGjKlgijHQS4STLPhgvN347btr6dx4uKSLNTKhMzMtz0hC4g4AH6hpj5AlxqsgsjzL+OPF+B4z+PTv8YT/9dnfZsYqABMahSDQTlVVvpnd0H6sUd1AfkzgQZRdiV3MWDiiU0IfMZ0EIcfAFARfzOoFskQOKcoyb0P77xqFbxi8aV1mju8hcHRp2BkBbxKJJ1Uhd7/XFX8n/Gxyiic6rnMDSSxnxm0AV/wSeQLiXtfq2NIIfEPgranT+rmcux+MWWUnhD6Fxaqc1bGNiDjKuZYYWMDkb2LmT1RsUJ5A13uWvi9Kv/S8IXDVzOxhxnUVZfqLGqMl2Yf04/U6DOQuf5Rjx046mwH+ckWPMrHm5quGUi0n67FVN7iSsJcB/EIo0j0tMW3RYKrNqcfRSDKKmdkKxvIQ/NN+t/HVeuzVBb7gCdYO/ds+DMblRaM5RcW8/Ib4kXq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cW0nwKXthV9vhWvfVIvelBN+/fMfE0xqs8vnaffU+o8o4EHskqnfTt8PF/eqTrAC3pm5hQYk4v+fkRqIrObgZuH0xEHPSu+ICpNgucTUvZ0N4c1xHzs1vnG4+F2WQu8UFPJgevA3koAB9y00RWVKsN1mPlzqUgJeJlU036FmQvTHhEOeFZ8UT3gtWSiwMdiXzUz+5lx9TAn/ZLeDyfvi03TPgHmacXO9xSpZmYdM75TioKmqjPHeklTLvBRinMskQ50mtcNXOZ6XuGNWcyM9aQlTl8t4e6v/FGYnqV3j9VJoZDGGVw1nQSztEpMwYRKxRPOcYCnF5djt7bRrP6Efnqs8OMJ3tHttA2e5p7KDEUnPEufUXhzakl7lZRcPtUQaIdr6cvqqfaRFjde4MUZajuDby9HW9BqN21sLIBfkeKmt7LOEYBnlkEENl/bZDy4N0Veo5EfD/DFKVb35e0fQCJ04qejs5v1OYdTwc1X8aN12p+UPu+tOgDsIxIr3XTHoUbgLxZcS/bPZZaPlk/+w85zQqHFbpfxp0KBhoEKUyLxs1WTHBNhDzHvZlU9LEj2SZ+nkqRZDJ4sBO3Mp/W/hu0oycwmSHy92AOO+t1G5a6x8Op3rpSSbyNQHwvuEaBeKUScPO8KJlrCjOurLkalwrQimArLTaQ6koWjF/NPwdxaV5SJBlvbaEa4mNV1/YvZ838d7B4JeshLG6mSrWKxHW/EPoiW+2n9lTDPiIflmDn4UZ/zD5dGgagFaFBnlU4mJdlLkuemeJztyFvG4bB+4aQFryfKZjEdXlao6Vs5q/Xtavma1xOq6VzD4K8AfBMYHxzB2RkibPKsuFkPSElGNTMWMx644Gw7TPsuQL8g0DOepf9hNLuRF0KBYvCPKSs7ONMnfwoLGQ9yMiabemrde9SzkODeJifysyR4CkmRUVjpNZtbj0YdLgLb/wdEzJ6QpX6LxwAAAABJRU5ErkJggg==",class:Ie},null),T("上传资源")]}),x(k,{type:"primary",class:ke,focusable:!1,strong:!0,onClick:()=>{n.isEdit=!0,t("edit",n.isEdit)}},{default:()=>[x("img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LaJMn3WsHVX5ZjfHKZLfKZsa2t84msKTBxZUxcGgRwRYY6ktRpBb09aw1u+mdq5Gmn/TK3553zBk3OySpUrpdmyzmZ9sdz0QEG35p9R8fssNbuPCt+8yCDn0l6mN62wtqziwqArEd6wdid8TzoF4/bu/lfgy4mAUROMpA4f9NiOxOrgchOIXA4x/NjiqJsyq39zNuJrFIKqf7RNkHWN9lCGTFketDu9vbn6lqUAJqNcd/kVPwUwNdmJy29agU1Y7YjFh2A7X0snxg0v2DgrhzefxYPee/PV7xddAAU3exh5hezyQq/NbvkTaOGZzQfDesJoObS4rKA2W4LPppj6IQsSZung96fC82h+pUWayzuLgtEN9hCOFvhFWljZYl2TAe1vkLG17W4W0l5fXaRyhOOrhofE9+DcUOG90SvWyHtJedZ1s1tBDwB8PL0ewauypVHreX1RFKp5IIjZwus+M19DM6sMAR8tXWjds+xdrJX6hfWXOLpv7J7oPzxqPmCw1Fb2RUTHbHD2q4E8IBpsOB9SdPojya32nbBaIk4TyUB1POKKe2bzCWfEBvyXfIlKOR26ek65+U9vCISNQ8AtEaB+kos1HIm188zKORUS5P7hvpf8lWabedbvuQl33wbVOl4SwAq9Vi95ZciUG+PVqrvP95nBmDSwCG5AAAAAElFTkSuQmCC",class:Me},null),T("编辑资源")]})])]})]),x(I,{labelAlign:"left",labelPlacement:"left"},{default:()=>[x(M,{label:"声部:"},{default:()=>[x(z,{class:Le},De(a=i.getSubjectInstruments.map((e=>e.instruments&&e.instruments.length>1?x(B,{options:e.instruments,trigger:"hover",value:n.tempSubjectId,"onUpdate:value":[e=>n.tempSubjectId=e,()=>{n.tempSubjectId!==e.value&&(n.isEdit=!1,n.isSelectAll=!1,t("edit",n.isEdit)),l.subjectId=n.tempSubjectId,s()}],key:e.value,class:[Ve]},{default:()=>[x("span",{class:[Ze,r(e.instruments).selected&&Ye]},[r(e.instruments).name||e.name,x("i",{class:Ke},null)])]}):x("span",{class:[Ze,l.subjectId===e.value&&Ye],onClick:()=>{l.subjectId=e.value,s()}},[e.name]))))?a:{default:()=>[a]})]}),x(b,{class:Se,round:!0,onSearch:e=>{l.name=e,s()}},null)]})])}}}),Xe={uploadModal:"_uploadModal_3dbwl_1",formModal:"_formModal_3dbwl_4",formSpace:"_formSpace_3dbwl_8",previewModal:"_previewModal_3dbwl_11",image:"_image_3dbwl_23",titleType:"_titleType_3dbwl_32",iconUploadDelete:"_iconUploadDelete_3dbwl_40",commonType:"_commonType_3dbwl_49",formItem:"_formItem_3dbwl_72",btnGroup:"_btnGroup_3dbwl_97",uploadFile:"_uploadFile_3dbwl_104",uploadBtn:"_uploadBtn_3dbwl_111",iconUploadAdd:"_iconUploadAdd_3dbwl_128"},qe=e=>e?e?.indexOf(".mp3")>-1?D.SONG:e?.indexOf(".mp4")>-1?D.VIDEO:e?.indexOf(".ppt")>-1?D.PPT:D.IMG:"",He=f({name:"upload-modal",props:{list:{type:Array,default:()=>[]},editStatus:{type:Boolean,default:!0}},emits:["close","confirm"],setup(e,{emit:t}){const a=w(),o=y(),i=V();y(),y([]);const l=A({list:[],uploading:!1,uploadUrl:"",name:"",subjectIds:[]}),_=e=>{let t=r;switch(e){case"IMG":t=r;break;case"VIDEO":t=u;break;case"SONG":t=p;break;case"MUSIC":t=c;break;case"PPT":t=d}return t},g=async()=>{o.value?.validate((async e=>{if(e)C(J);else{l.uploading=!0;try{const e=[];l.list.forEach((t=>{e.push({subjectIds:t.subjectIds.join(","),openFlag:t.openFlag,coverImg:t.coverImg,name:t.name,type:t.type,enableFlag:1,content:t.content,id:t.id||null})})),m.value?await n(e):await s(e),l.list=[],i.success("保存成功"),t("close",!0),t("confirm")}catch{}l.uploading=!1}}))},m=L((()=>e.list.length>0));return S((async()=>{const t=e.list||[],o=[];t.forEach((e=>{o.push({subjectIds:e.subjectId?e.subjectId.split(",").map((e=>Number(e))):[],openFlag:e.openFlag,coverImg:e.coverImg,name:e.title,type:e.type,sourceFrom:e.sourceFrom,enableFlag:e.enableFlag,content:e.content,id:e.id})})),l.list=o||[],console.log(o,"uploadForms"),await a.getSubjects()})),()=>{let i;return x("div",{class:Xe.uploadModal},[x(ce,{style:{"max-height":"55vh"}},{default:()=>[x(I,{ref:o,labelPlacement:"left",labelWidth:120,model:l,class:Xe.formModal},{default:()=>{return[x(z,{class:Xe.formSpace},(e=i=l.list.map(((e,t)=>x("div",{class:Xe.formItem,key:t},[x("div",{class:Xe.previewModal},[x(U,{class:[Xe.titleType],src:_(e.type),previewDisabled:!0,objectFit:"cover"},null),!m.value&&x("img",{class:[Xe.iconUploadDelete],src:le,onClick:()=>(e=>{l.list.splice(e,1)})(t)},null),x(U,{class:[Xe.cover,Xe.image],lazy:!0,previewDisabled:!0,src:e.coverImg,objectFit:"cover"},null),x("div",{class:Xe.commonType},[T("是否公开:"),x(Z,{size:"small",value:e.openFlag,"onUpdate:value":t=>e.openFlag=t,disabled:"TEACHER"===e.sourceFrom&&"MUSIC"===e.type},null)])]),x(M,{showFeedback:!1,path:`list.${t}.name`,rule:[{required:!0,message:"请输入资源名称",trigger:["input","blur"]}]},{default:()=>[x(K,{value:e.name,"onUpdate:value":t=>e.name=t,placeholder:"请输入资源名称",maxlength:25,clearable:!0},null)]}),x(M,{path:`list[${t}].subjectIds`,showFeedback:!1,rule:[{required:!0,message:"请选择素材可用声部",trigger:"change",type:"array"}]},{default:()=>[x(Y,{value:e.subjectIds,"onUpdate:value":t=>e.subjectIds=t,placeholder:"请选择素材可用声部(可多选)",options:a.getSubjectList,labelField:"name",valueField:"id",multiple:!0,maxTagCount:2,clearable:!0},{action:()=>x(N,null,[x(k,{text:!0,style:" --n-width: 100% ",onClick:()=>((e,t)=>{e.subjectIds=t.map((e=>e.id))})(e,a.getSubjectList)},{default:()=>[T("全选")]})])})]})]))),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!P(e)?i:{default:()=>[i]}))];var e}})]}),x(z,{class:Xe.btnGroup,justify:"center"},{default:()=>[x(k,{round:!0,onClick:()=>t("close")},{default:()=>[e.editStatus?"取消":"上一步"]}),x(k,{round:!0,type:"primary",loading:l.uploading,disabled:0===l.list.length,onClick:g},{default:()=>[T("确定")]})]})])}}}),$e=f({name:"myResources-guide",emits:["close"],setup(e,{emit:t}){const a=A({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:ne("myResourecs1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:j(-4),left:j(-240),width:j(556),height:j(257)},btnsStyle:{bottom:j(30),left:j(-80)},eleRectPadding:{left:14,top:14,width:28,height:28},boxStyle:{borderRadius:"30px"}}],step:0}),o=y(!1),i=y({});(async()=>{try{const e=await re({guideTag:"teacher-guideInfo"});e.data?i.value=JSON.parse(e.data?.guideValue)||null:i.value={},console.log(i.value,"guideInfo.value"),i.value&&i.value.myResourcesGuide?o.value=!1:o.value=!0}catch(e){console.log(e)}})();const l=()=>{const e=document.getElementById(`myResources-${a.step}`);if(e){const t=e.getBoundingClientRect(),o=a.steps[a.step].eleRectPadding?.left||0,i=a.steps[a.step].eleRectPadding?.top||0,l=a.steps[a.step].eleRectPadding?.width||0,n=a.steps[a.step].eleRectPadding?.height||0;a.box={left:t.x-o+"px",top:t.y-i+"px",width:t.width+l+"px",height:t.height+n+"px"}}else r()},n=async e=>{try{if("myResources"!==e)return;i.value?i.value.classGuide=!1:i.value={classGuide:!1};try{await de({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(i.value)})}catch(t){console.log(t)}a.step=0,l(),o.value=!0}catch{}};S((()=>{l(),window.addEventListener("resize",s),G.on("natural-resources-guide",(e=>n(e)))}));const s=()=>{l()};R((()=>{window.removeEventListener("resize",s),G.off("natural-resources-guide",n)}));const r=()=>{a.step>=4?d():(a.step=a.step+1,l())},d=async()=>{i.value?i.value.myResourcesGuide=!0:i.value={myResourcesGuide:!0};try{await de({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(i.value)})}catch(e){console.log(e)}o.value=!1};return()=>x(N,null,[o.value?E(x("div",{"onUpdate:show":e=>o.value=e,class:["n-modal-mask","n-modal-mask-guide"]},[x("div",{class:se.content,onClick:()=>r()},[x("div",{class:se.backBtn,onClick:e=>{e.stopPropagation(),d()}},[T("跳过")]),x("div",{class:se.box,style:{...a.box,...a.steps[a.step].boxStyle},id:`modeType-${a.step}`},[a.steps.map(((e,t)=>x("div",{onClick:e=>e.stopPropagation(),class:se.item,style:"bottom"==e.type?{display:t===a.step?"":"none",left:`${e.eleRect?.left}px`,top:`-${e.imgStyle?.height}`}:{display:t===a.step?"":"none",left:`${e.eleRect?.left}px`,top:`${a.box?.height}`}},[x("img",{class:se.img,style:e.imgStyle,src:e.img},null),x("div",{class:se.btns,style:e.btnsStyle},[a.step+1==a.steps.length?x(N,null,[x("div",{class:[se.endBtn],onClick:()=>d()},[T("完成")])]):x("div",{class:se.btn,onClick:()=>r()},[T("下一步 ("),a.step+1,T("/"),a.steps.length,T(")")])])])))])])]),[[F,o.value,"show"]]):null])}}),et="_saveModal_ulplg_1",tt="_uploadBtn_ulplg_25",at="_iconUploadAdd_ulplg_47",ot="_btnGroup_ulplg_57",it=f({name:"save-modal",props:{fileList:{type:String,default:""},imageList:{type:Array,default:()=>[]},accept:{type:String,default:".jpg,.png,.jpeg,.gif"},showType:{type:String,default:"default"},showFileList:{type:Boolean,default:!0},max:{type:Number,default:1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},bucketName:{type:String,default:"gyt"},directoryDnd:{type:Boolean,default:!1},path:{type:String,default:""},fileName:{type:String,default:""}},emits:["close","confrim"],setup(e,{emit:t}){const a=`https://${e.bucketName}.ks3-cn-beijing.ksyuncs.com/`,o=V(),i=y(!1),l=y(!1),n=y(),s=y(),r=A([]),d=y([]),c=y([]),p=async e=>{console.log(e,"onFinishAfter");const t=r.find((t=>t.id==e.file.id)),a=qe(e.file.url);let o="";"IMG"===a?o=e.file.url:"SONG"===a?o=H.SONG_DEFAULT_COVER:"PPT"===a?o=H.PPT_DEFAULT_COVER:"VIDEO"===a&&(o=await u(t.tempFiileBuffer)),c.value.push({coverImg:o,content:e.file.url,id:e.file.id,name:e.file.name?e.file.name.slice(0,e.file.name.lastIndexOf(".")):""}),i.value=!1,l.value=!1},u=async t=>{try{l.value=!0;const o=await(e=>new Promise(((t,a)=>{const o=document.createElement("video");o.setAttribute("crossOrigin","Anonymous"),o.setAttribute("preload","auto"),o.muted=!0,o.autoplay=!0,o.src=URL.createObjectURL(e),o.addEventListener("loadedmetadata",(()=>{o.play(),setTimeout((()=>{o.pause();const e=document.createElement("canvas");e.width=o.videoWidth,e.height=o.videoHeight,e.getContext("2d").drawImage(o,0,0,e.width,e.height),e.toBlob((e=>{t(e)}))}),500)})),o.addEventListener("error",(e=>{a(e)}))})))(t||n.value),i=`${e.path}${Date.now()+".png"}`,s={filename:i,bucketName:e.bucketName,postData:{filename:i,acl:"public-read",key:i,unknowValueField:[]}},{data:r}=await pe(s),d={policy:r.policy,signature:r.signature,key:i,acl:"public-read",KSSAccessKeyId:r.kssAccessKeyId,name:i,file:o};return await ue(a,d)}finally{l.value=!1}},_=L((()=>{let e=!1;return d.value.forEach((t=>{"finished"!==t.status&&(e=!0)})),e||d.value.length<=0||l.value})),g=({file:e,action:t,onFinish:a,onError:o,onProgress:i})=>{const l=r.find((t=>t.id==e.id));l.file=e,_e({file:e,action:t,data:l,onProgress:i,onFinish:a,onError:o})},m=async()=>{const e=[];d.value.forEach((t=>{const a=c.value.find((e=>e.id===t.id));a&&e.push(a)})),console.log(d.value,c.value),t("confrim",e)};return()=>x("div",{class:et},[x(X,{ref:s,action:a,customRequest:g,fileList:d.value,"onUpdate:fileList":e=>d.value=e,accept:".jpg,jpeg,.png,audio/mp3,video/mp4,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation",multiple:!0,max:10,showFileList:!0,showPreviewButton:!0,onBeforeUpload:t=>(async t=>{const a=t.file;let i=!0;const n=a.type.includes("image")?D.IMG:a.type.includes("audio")?D.SONG:a.type.includes("video")?D.VIDEO:a.type.includes("vnd.openxmlformats-officedocument.presentationml.presentation")||a.type.includes("vnd.ms-powerpoint")?D.PPT:"other";if(console.log(n,"type"),"other"===n)return o.error("文件格式不支持"),!1;const s="IMG"===n?2:"SONG"===n?20:500;if(s&&(i=a.file.size/1024/1024<s,!i)){const e="IMG"===n?"图片":"SONG"===n?"音频":"视频";return o.error(`${e}大小不能超过${s}M`),!1}if(!i)return i;try{l.value=!0;const t=a.file.name,o=t.slice(t.lastIndexOf(".")),i=`${e.path}${Date.now()+a.id+o}`,n={filename:i,bucketName:e.bucketName,postData:{filename:i,acl:"public-read",key:i,unknowValueField:[]}},{data:s}=await pe(n);r.push({id:a.id,tempFiileBuffer:a.file,policy:s.policy,signature:s.signature,acl:"public-read",key:i,KSSAccessKeyId:s.kssAccessKeyId,name:i})}catch{return l.value=!1,!1}return!0})(t),onFinish:e=>{(e=>{p(e)})(e)},onRemove:e=>(async e=>{const t=c.value.findIndex((t=>t.id===e.file.id));return c.value.splice(t,1),l.value=!1,!0})(e)},{default:()=>[x(q,null,{default:()=>[x("div",{class:tt},[x("div",{class:at},null),x("h3",null,[T("点击或者拖动文件到该区域来上传")]),x("p",null,[T("仅支持JPG、PNG、MP3、MP4、PPT格式文件,单次最多支持"),x("br",null,null),T("上传10个文件")])])]})]}),x(z,{class:ot,justify:"center"},{default:()=>[x(k,{round:!0,onClick:()=>t("close")},{default:()=>[T("取消")]}),x(k,{round:!0,type:"primary",disabled:_.value||l.value,onClick:m},{default:()=>[T("确定")]})]})])}}),lt=f({name:"share-resources",setup(){const e=V();$();const t=A({searchWord:"",loading:!1,pageTotal:0,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,subjectId:null,sourceType:3},tableList:[],uploadStatus:!1,saveStatus:!1,show:!1,item:{},editStatus:!1,editList:[],editIds:[],removeVisiable:!1,removeContent:"是否删除该资源?",type:"remove",removeItem:{}}),a=y(!1),n=async()=>{try{t.loading=!0;const{data:e}=await i({...t.searchGroup,...t.pagination});t.loading=!1,t.pageTotal=Number(e.total);const o=e.rows||[],l=[];o.forEach((e=>{l.push({id:e.id,coverImg:e.coverImg,type:e.type,title:e.name,isCollect:!!e.favoriteFlag,isSelected:"PLATFORM"===e.sourceFrom,content:e.content,subjectId:e.subjectIds,sourceFrom:e.sourceFrom,enableFlag:e.enableFlag?1:0,openFlag:e.openFlag})})),t.tableList=l||[],setTimeout((()=>{a.value=!0}),500)}catch{t.loading=!1}},s=async e=>{t.pagination.page=1;const{subjectId:a,...o}=e;t.searchGroup=Object.assign(t.searchGroup,{...o,musicalInstrumentId:a}),n()},r=y();return S((()=>{n()})),()=>x(N,null,[x(Je,{ref:r,onSearch:e=>s(e),onUpload:()=>{t.editList=[],t.saveStatus=!0},onUpdate:()=>{const a=[];t.tableList.forEach((e=>{t.editIds.indexOf(e.id)>-1&&a.push(e)})),t.editList=a||[],t.editList.length<=0?e.error("至少选择一条资源进行编辑"):t.uploadStatus=!0},onEdit:e=>{t.editStatus=e,t.editStatus||(t.editIds=[])},onSelectAll:e=>{if(e){const e=[];t.tableList.forEach((t=>{e.push(t.id)})),t.editIds=e}else t.editIds=[]},onDelete:()=>{t.editIds.length<=0?e.error("至少选择一条资源进行删除"):(t.type="delete",t.removeContent="是否删除该资源?",t.removeVisiable=!0)}},null),x(O,{show:t.loading,"onUpdate:show":e=>t.loading=e,style:{"min-height":"50vh"}},{default:()=>[x("div",{class:fe},[t.tableList.map((e=>x("div",{class:je},[x("div",{class:Ge},[x(o,{item:e,isDownload:!0,disabledMouseHover:!1,offShelf:!e.enableFlag,onOffShelf:()=>{t.type="remove",t.removeContent="该资源已下架,是否删除?",t.removeVisiable=!0,t.removeItem=e},onClick:a=>{"IMG"!==a.type&&e.enableFlag&&(t.show=!0,t.item=a)},onCollect:e=>(async e=>{try{await l({materialId:e.id,favoriteFlag:e.isCollect?0:1,type:e.type}),e.isCollect=!e.isCollect}catch{}})(e)},null),t.editStatus&&x("div",{class:[Re,t.editIds.includes(e.id)?Ee:""],onClick:()=>{const a=t.editIds.indexOf(e.id);a>-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)])])]))),!t.loading&&t.tableList.length<=0&&x(ae,{style:{minHeight:"50vh"},description:"暂无资源"},null)])]}),x(h,{page:t.pagination.page,"onUpdate:page":e=>t.pagination.page=e,pageSize:t.pagination.rows,"onUpdate:pageSize":e=>t.pagination.rows=e,pageTotal:t.pageTotal,"onUpdate:pageTotal":e=>t.pageTotal=e,onList:n},null),x(oe,{show:t.show,"onUpdate:show":e=>t.show=e,item:t.item},null),x(Q,{show:t.uploadStatus,"onUpdate:show":e=>t.uploadStatus=e,preset:"card",showIcon:!1,class:["modalTitle background",Te],title:t.editStatus?"修改资源":"上传资源",blockScroll:!1},{default:()=>[x(He,{editStatus:t.editStatus,onClose:()=>{t.uploadStatus=!1},onConfirm:()=>{t.editIds=[],t.editList=[],t.saveStatus=!1,r.value?.resetStatus(),s(t.searchGroup)},list:t.editList},null)]}),x(Q,{show:t.saveStatus,"onUpdate:show":e=>t.saveStatus=e,preset:"card",showIcon:!1,class:["modalTitle background",Ne],title:"上传资源",blockScroll:!1},{default:()=>[x(it,{onClose:()=>t.saveStatus=!1,onConfrim:e=>{const a=[];(e||[]).forEach((e=>{a.push({subjectIds:null,openFlag:!1,coverImg:e.coverImg,title:e.name||"",type:qe(e.content),enableFlag:1,content:e.content,id:null})})),t.editList=a,t.uploadStatus=!0,t.editStatus=!1}},null)]}),a.value?x($e,null,null):null,x(Q,{show:t.removeVisiable,"onUpdate:show":e=>t.removeVisiable=e,preset:"card",class:["modalTitle",Oe],title:"提示"},{default:()=>[x("div",{class:We},[x("p",null,[t.removeContent]),x(z,{class:Qe,justify:"center"},{default:()=>[x(k,{round:!0,type:"primary",onClick:()=>{"remove"===t.type?(async()=>{try{"MUSIC"===t.searchGroup.type?await _([t.removeItem.id]):await m({ids:t.removeItem.id}),e.success("删除成功"),s(t.searchGroup)}catch{}})():(async()=>{try{"MUSIC"===t.searchGroup.type?await _(t.editIds):await g(t.editIds),e.success("删除成功"),t.pagination.page=1,n(),t.editIds=[]}catch{}})(),t.removeVisiable=!1}},{default:()=>[T("确定")]}),x(k,{round:!0,onClick:()=>t.removeVisiable=!1},{default:()=>[T("取消")]})]})])]})])}}),nt="_list_44zd9_1",st="_itemWrap_44zd9_11",rt="_itemWrapBox_44zd9_16",dt="_searchGroup_44zd9_28",ct="_btnType_44zd9_32",pt="_inputSearch_44zd9_67",ut="_searchCatatory_44zd9_91",_t="_popSelect_44zd9_142",gt="_spaceSection2_44zd9_152",mt="_textBtn_44zd9_161",ht="_iconArrow_44zd9_173",bt="_textBtnActive_44zd9_182";function vt(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!P(e)}const wt=f({name:"search-group",emits:["search"],setup(e,{emit:t}){const a=w(),o=y([]),i=A({type:"MUSIC",name:"",bookVersionId:null,subjectId:null}),l=()=>{t("search",i)},n=y(),s=y([]),r=y(0),d=y(0),c=y(!1),p=y(!1),u=e=>{const t={};return e?.forEach((e=>{e.id===i.subjectId&&(t.selected=!0,t.name=e.name)})),t};return S((async()=>{o.value=[...v],await a.getMusicSheetCategory(),await a.getSubjects()})),()=>{let e,t;return x("div",{class:dt},[x("div",{class:ut},[x(z,{size:"small",class:ct},vt(e=o.value.map((e=>x(k,{type:i.type===e.value?"primary":"default",secondary:i.type!==e.value,round:!0,size:"small",focusable:!1,onClick:()=>{i.type=e.value,l(),C((()=>{"MUSIC"===i.type?(r.value=n.value?.offsetHeight,(()=>{try{s.value=[...new Set(s.value)];let e=-1;s.value.forEach(((t,a)=>{0===a?(d.value=1,e=t.offsetLeft):t.offsetLeft===e&&0!=a&&d.value++,c.value?t.style.display="block":d.value>1?t.style.display="none":t.style.display="block"})),p.value=!0}catch{}})()):s.value=[]}))}},{default:()=>[e.label]}))))?e:{default:()=>[e]})]),x(I,{labelAlign:"left",labelPlacement:"left"},{default:()=>[x(M,{label:"声部:"},{default:()=>[x(z,{class:gt},vt(t=a.getSubjectInstruments.map((e=>e.instruments&&e.instruments.length>1?x(B,{options:e.instruments,trigger:"hover",value:i.subjectId,"onUpdate:value":[e=>i.subjectId=e,()=>{l()}],key:e.value,class:[_t]},{default:()=>[x("span",{class:[mt,u(e.instruments).selected&&bt]},[u(e.instruments).name||e.name,x("i",{class:ht},null)])]}):x("span",{class:[mt,i.subjectId===e.value&&bt],onClick:()=>{i.subjectId=e.value,l()}},[e.name]))))?t:{default:()=>[t]})]}),x(b,{class:pt,round:!0,onSearch:e=>{i.name=e,l()}},null)]})])}}}),ft=f({name:"myColloge-guide",emits:["close"],setup(e,{emit:t}){const a=A({box:{height:"0px"},show:!1,steps:[{ele:"",img:ne("myColloge1.png"),imgStyle:{top:j(-4),left:j(630),width:j(458),height:j(291)},btnsStyle:{bottom:j(96),left:j(790)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"bottom"}],step:0}),o=y(!1),i=y({});(async()=>{try{const e=await re({guideTag:"teacher-guideInfo"});e.data?i.value=JSON.parse(e.data?.guideValue)||null:i.value={},i.value&&i.value.myColloge?o.value=!1:o.value=!0}catch(e){console.log(e)}})();const l=()=>{const e=document.getElementById(`myColloge-${a.step}`);if(e){const t=e.getBoundingClientRect(),o=a.steps[a.step].eleRectPadding?.left||0,i=a.steps[a.step].eleRectPadding?.top||0,l=a.steps[a.step].eleRectPadding?.width||0,n=a.steps[a.step].eleRectPadding?.height||0;a.box={left:t.x-o+"px",top:t.y-i+"px",width:t.width+l+"px",height:t.height+n+"px"}}else r()},n=async e=>{try{if(console.log(e),"myCollect"!==e)return;console.log(e,"name"),i.value?i.value.myColloge=!1:i.value={myColloge:!1};try{await de({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(i.value)})}catch(t){console.log(t)}a.step=0,l(),o.value=!0}catch{}};S((()=>{l(),window.addEventListener("resize",s),G.on("natural-resources-guide",(e=>n(e)))}));const s=()=>{l()};R((()=>{window.removeEventListener("resize",s),G.off("natural-resources-guide",n)}));const r=()=>{a.step>=4?d():(a.step=a.step+1,l())},d=async()=>{i.value?i.value.myColloge=!0:i.value={myColloge:!0};try{await de({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(i.value)})}catch(e){console.log(e)}o.value=!1};return()=>x(N,null,[o.value?E(x("div",{"onUpdate:show":e=>o.value=e,class:["n-modal-mask","n-modal-mask-guide"]},[x("div",{class:se.content,onClick:()=>r()},[x("div",{class:se.backBtn,onClick:e=>{e.stopPropagation(),d()}},[T("跳过")]),x("div",{class:se.box,style:{...a.box},id:`modeType-${a.step}`},[a.steps.map(((e,t)=>x("div",{onClick:e=>e.stopPropagation(),class:se.item,style:"bottom"==e.type?{display:t===a.step?"":"none",left:`${e.eleRect?.left}px`,top:`-${e.imgStyle?.height}`}:{display:t===a.step?"":"none",left:`${e.eleRect?.left}px`,top:`${a.box?.height}`}},[x("img",{class:se.img,style:e.imgStyle,src:e.img},null),x("div",{class:se.btns,style:e.btnsStyle},[a.step+1==a.steps.length?x(N,null,[x("div",{class:[se.endBtn],onClick:()=>d()},[T("完成")])]):x("div",{class:se.btn,onClick:()=>r()},[T("下一步 ("),a.step+1,T("/"),a.steps.length,T(")")])])])))])])]),[[F,o.value,"show"]]):null])}}),At=f({name:"share-resources",setup(){const e=V(),t=$(),a=A({searchWord:"",loading:!1,pageTotal:0,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,subjectId:null,sourceType:4},tableList:[],show:!1,item:{}}),n=async()=>{try{a.loading=!0;const{data:e}=await i({...a.searchGroup,...a.pagination});a.loading=!1,a.pageTotal=Number(e.total);const t=e.rows||[],o=[];t.forEach((e=>{o.push({id:e.id,coverImg:e.coverImg,type:e.type,title:e.name,isCollect:!!e.favoriteFlag,isSelected:"PLATFORM"===e.sourceFrom,content:e.content,subjectId:e.subjectIds,enableFlag:e.enableFlag?1:0,openFlag:e.openFlag})})),a.tableList=o||[],setTimeout((()=>{s.value=!0}),500)}catch{a.loading=!1}},s=y(!1),r=async e=>{a.pagination.page=1;const{subjectId:t,...o}=e;a.searchGroup=Object.assign(a.searchGroup,{...o,musicalInstrumentId:t}),n()};return S((()=>{n()})),()=>x(N,null,[x(wt,{onSearch:e=>r(e)},null),x(O,{show:a.loading,"onUpdate:show":e=>a.loading=e,style:{"min-height":"50vh"}},{default:()=>[x("div",{class:nt,id:"myColloge-0"},[a.tableList.map((i=>x("div",{class:st},[x("div",{class:rt},[x(o,{item:i,offShelf:!i.enableFlag,onOffShelf:()=>(async o=>{try{t.warning({title:"提示",content:"该资源已下架,是否删除?",positiveText:"确定",negativeText:"取消",onPositiveClick:async()=>{await m({id:o.id}),e.success("删除成功"),r(a.searchGroup)}})}catch{}})(i),disabledMouseHover:!1,onClick:e=>{"IMG"!==e.type&&i.enableFlag&&(a.show=!0,a.item=e)},onCollect:e=>(async e=>{try{await l({materialId:e.id,favoriteFlag:e.isCollect?0:1,type:e.type}),e.isCollect=!e.isCollect}catch{}})(e)},null)])]))),!a.loading&&a.tableList.length<=0&&x(ae,{style:{minHeight:"50vh"},description:"暂无收藏资源"},null)])]}),x(h,{page:a.pagination.page,"onUpdate:page":e=>a.pagination.page=e,pageSize:a.pagination.rows,"onUpdate:pageSize":e=>a.pagination.rows=e,pageTotal:a.pageTotal,"onUpdate:pageTotal":e=>a.pageTotal=e,onList:n},null),x(oe,{show:a.show,"onUpdate:show":e=>a.show=e,item:a.item},null),s.value?x(ft,null,null):null])}});e("default",f({name:"student-studentList",setup(){const e=y("myResources");return S((()=>{G.on("teacher-guideInfo",(t=>{"natural-resources"===t&&G.emit("natural-resources-guide",e.value)}))})),()=>x("div",{class:ge.listWrap},[x(ee,{defaultValue:"myResources",paneClass:ge.paneTitle,justifyContent:"center",paneWrapperClass:ge.paneWrapperContainer,"onUpdate:value":[t=>{e.value=t},t=>e.value=t],value:e.value},{default:()=>[x(te,{name:"myResources",tab:"我的资源"},{default:()=>[x(lt,null,null)]}),x(te,{name:"shareResources",tab:"共享资源"},{default:()=>[x(we,null,null)],tab:()=>x("span",{id:"shareResources-0"},[T("共享资源")])}),x(te,{name:"myCollect",tab:"我的收藏"},{default:()=>[x(At,null,null)]})]})])}}))}}}));
|