index-49022062-1715840129614.js 46 KB

1
  1. import{q as ge,C as _,r as V,s as O,u as oe,v as fe,w as he}from"./api-4261a394-1715840129614.js";import{P as K}from"./index-2abd505e-1715840129614.js";import{T as Y}from"./index-63751212-1715840129614.js";import{r as X}from"./searchArray-d5f42180-1715840129614.js";import{u as j}from"./catchData-ee7bbce5-1715840129614.js";import{d as P,e as E,r as b,p as M,f as t,w as G,j as x,Q as ue,N as J,g as L,v as me,aA as Z,B as H,Z as B,A as F,R as q,_ as $,$ as ee,k as y,F as k,C as te,x as re,l as W,b as de,n as pe,S as Ae,q as ve,t as Q}from"./index-27f38392-1715840129614.js";import{T as se}from"./index-f592738f-1715840129614.js";import{C as ae}from"./index-28769104-1715840129614.js";import{A as ye}from"./index-28ccaf7b-1715840129614.js";import{g as z,s as S}from"./index-db345329-1715840129614.js";import{g as le,s as N}from"./api-642b417f-1715840129614.js";import{U as be,S as Se,f as Ce}from"./index-b1440f38-1715840129614.js";import"./icon-collect-active-4272e308-1715840129614.js";import"./index-f4afcac5-1715840129614.js";import"./Slider-17a69cd3-1715840129614.js";import"./urlUtils-a03c114e-1715840129614.js";import"./icon_default-d1bcaf5f-1715840129614.js";import"./icon-plus-t-35f4cdeb-1715840129614.js";import"./api-279396c0-1715840129614.js";import"./icon-pan-16e35a82-1715840129614.js";import"./index-53b18b72-1715840129614.js";import"./Scrollbar-b72aeac2-1715840129614.js";import"./Cascader-1e2d657d-1715840129614.js";const we="_listWrap_sirzm_1",Ie="_list_sirzm_1",Be="_searchGroup_sirzm_46",Ue="_btnType_sirzm_50",xe="_inputSearch_sirzm_84",Re="_searchCatatory_sirzm_103",Ee="_addTrain_sirzm_110",D={listWrap:we,list:Ie,searchGroup:Be,btnType:Ue,inputSearch:xe,searchCatatory:Re,addTrain:Ee},ke="_list_k7w1z_1",Ge="_itemWrap_k7w1z_11",Pe="_itemWrapBox_k7w1z_16",Me="_searchGroup_k7w1z_28",Fe="_btnType_k7w1z_32",Te="_inputSearch_k7w1z_67",Ne="_searchCatatory_k7w1z_91",We="_addTrain_k7w1z_98",_e="_teachingModal_k7w1z_110",Oe="_spaceSection_k7w1z_113",Le="_collapseWrap_k7w1z_123",ze="_collaoseGroup_k7w1z_129",je="_collaoseBtn_k7w1z_135",Qe="_isStart_k7w1z_140",De="_isHidden_k7w1z_143",Ve="_hideButton_k7w1z_147",Ke="_popSelect_k7w1z_152",Ye="_spaceSection2_k7w1z_162",Xe="_textBtn_k7w1z_170",Je="_iconArrow_k7w1z_182",Ze="_textBtnActive_k7w1z_191",I={list:ke,itemWrap:Ge,itemWrapBox:Pe,searchGroup:Me,btnType:Fe,inputSearch:Te,searchCatatory:Ne,addTrain:We,teachingModal:_e,spaceSection:Oe,collapseWrap:Le,collaoseGroup:ze,collaoseBtn:je,isStart:Qe,isHidden:De,hideButton:Ve,popSelect:Ke,spaceSection2:Ye,textBtn:Xe,iconArrow:Je,textBtnActive:Ze};function ne(p){return typeof p=="function"||Object.prototype.toString.call(p)==="[object Object]"&&!H(p)}const He=P({name:"search-group",emits:["search","add"],expose:["init"],setup(p,{emit:e}){const a=j(),d=E({type:"MUSIC",name:"",bookVersionId:null,subjectId:null}),c=E({tempSubjectId:null}),A=()=>{e("search",d)},n=b(),r=b([]),f=b(0),l=b(0),i=b(!1),s=b(!1),o=u=>{u!=null&&u.selfElRef&&r.value.push(u.selfElRef.parentNode)},w=u=>{i.value=u,C()},C=()=>{try{r.value=[...new Set(r.value)];let u=-1;r.value.forEach((g,h)=>{h===0?(l.value=1,u=g.offsetLeft):g.offsetLeft===u&&h!=0&&l.value++,i.value?g.style.display="block":l.value>1?g.style.display="none":g.style.display="block"}),s.value=!0}catch(u){}},v=u=>{const g={};return u==null||u.forEach(h=>{h.id===d.subjectId&&(g.selected=!0,g.name=h.name)}),g};return M(async()=>{var u;await a.getMusicSheetCategory(),await a.getSubjects(),d.type==="MUSIC"&&(f.value=(u=n.value)==null?void 0:u.offsetHeight,C())}),()=>{let u,g;return t("div",{class:I.searchGroup},[t("div",{class:[I.searchCatatory]},[t(G,{size:"small",class:I.btnType},ne(u=X.map(h=>t(x,{type:d.type===h.value?"primary":"default",secondary:d.type!==h.value,round:!0,size:"small",focusable:!1,onClick:()=>{d.type=h.value,d.subjectId=null,c.tempSubjectId=null,A(),ue(()=>{var R;d.type==="MUSIC"?(f.value=(R=n.value)==null?void 0:R.offsetHeight,C()):r.value=[]})}},{default:()=>[h.label]})))?u:{default:()=>[u]})]),t(J,{labelAlign:"left",labelPlacement:"left"},{default:()=>[d.type==="MUSIC"&&t("div",{class:[I.collapsSection]},[t(L,{label:"教材:"},{default:()=>[t("div",{class:[I.collapseWrap,s.value?"":I.hideButton,i.value?"":I.isHidden],ref:n},[t(G,{class:[I.spaceSection2]},{default:()=>[a.getAllMusicCategories.map(h=>t(x,{ref:o,secondary:d.bookVersionId===h.id,quaternary:d.bookVersionId!==h.id,strong:!0,focusable:!1,type:d.bookVersionId===h.id?"primary":"default",onClick:()=>{d.bookVersionId=h.id,A()}},{default:()=>[h.name]})),l.value>1&&t("div",{class:I.collaoseGroup,onClick:()=>{w(!i.value)}},[t(me,{previewDisabled:!0,src:ge,class:[I.collaoseBtn,i.value?I.isStart:""]},null)])]})])]})]),t(L,{label:"乐器:"},{default:()=>[t(G,{class:I.spaceSection},ne(g=a.getSubjectInstruments.map(h=>h.instruments&&h.instruments.length>1?t(Z,{options:h.instruments,trigger:"hover",scrollable:!0,value:c.tempSubjectId,"onUpdate:value":[R=>c.tempSubjectId=R,()=>{d.subjectId=c.tempSubjectId,A()}],key:h.value,class:[I.popSelect]},{default:()=>[t("span",{class:[I.textBtn,v(h.instruments).selected&&I.textBtnActive]},[v(h.instruments).name||h.name,t("i",{class:I.iconArrow},null)])]}):t("span",{class:[I.textBtn,d.subjectId===h.value&&I.textBtnActive],onClick:()=>{d.subjectId=h.value,c.tempSubjectId=null,A()}},[h.name])))?g:{default:()=>[g]})]}),t(Y,{class:I.inputSearch,round:!0,onSearch:h=>{d.name=h,A()}},null)]})])}}}),qe=P({name:"shareResources-guide",emits:["close"],setup(p,{emit:e}){const a=E({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:z("shareResources1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:B(-4),left:B(-263),width:B(553),height:B(229)},btnsStyle:{bottom:B(30),left:B(-102)},eleRectPadding:{left:14,top:14,width:28,height:28},boxStyle:{borderRadius:"30px"}},{ele:"",img:z("shareResources2.png"),imgStyle:{left:B(99),width:B(618),height:B(273)},btnsStyle:{bottom:B(88),left:B(240)},eleRectPadding:{left:7,top:7,width:14,height:14},boxStyle:{borderRadius:"15px"},type:"bottom"}],step:0}),d=b(!1),c=b({});(async()=>{var s;try{const o=await le({guideTag:"teacher-guideInfo"});o.data?c.value=JSON.parse((s=o.data)==null?void 0:s.guideValue)||null:c.value={},c.value&&c.value.shareResourcesGuide?d.value=!1:d.value=!0}catch(o){console.log(o)}})();const n=()=>{var o,w,C,v;const s=document.getElementById("shareResources-".concat(a.step));if(s){const u=s.getBoundingClientRect(),g=((o=a.steps[a.step].eleRectPadding)==null?void 0:o.left)||0,h=((w=a.steps[a.step].eleRectPadding)==null?void 0:w.top)||0,R=((C=a.steps[a.step].eleRectPadding)==null?void 0:C.width)||0,T=((v=a.steps[a.step].eleRectPadding)==null?void 0:v.height)||0;"shareResources-".concat(a.step)=="shareResources-1"?(a.box={left:u.x-g+"px",top:u.y-h+"px",width:(u.width+R)*2+R+"px",height:u.height+T+"px"},console.log(a.box.width,"---",u.width)):a.box={left:u.x-g+"px",top:u.y-h+"px",width:u.width+R+"px",height:u.height+T+"px"}}else l()},r=async s=>{try{if(s!=="shareResources")return;c.value?c.value.classGuide=!1:c.value={classGuide:!1};try{await N({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(c.value)})}catch(o){console.log(o)}a.step=0,n(),d.value=!0}catch(o){}};M(()=>{n(),window.addEventListener("resize",f),F.on("natural-resources-guide",s=>r(s))});const f=()=>{n()};q(()=>{window.removeEventListener("resize",f),F.off("natural-resources-guide",r)});const l=()=>{if(a.step>=4){i();return}a.step=a.step+1,n()},i=async()=>{c.value?c.value.shareResourcesGuide=!0:c.value={shareResourcesGuide:!0};try{const s=await N({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(c.value)})}catch(s){console.log(s)}d.value=!1};return()=>t(k,null,[d.value?$(t("div",{"onUpdate:show":s=>d.value=s,class:["n-modal-mask","n-modal-mask-guide"]},[t("div",{class:S.content,onClick:()=>l()},[t("div",{class:S.backBtn,onClick:s=>{s.stopPropagation(),i()}},[y("跳过")]),t("div",{class:S.box,style:{...a.box,...a.steps[a.step].boxStyle},id:"modeType-".concat(a.step)},[a.steps.map((s,o)=>{var w,C,v,u;return t("div",{onClick:g=>g.stopPropagation(),class:S.item,style:s.type=="bottom"?{display:o===a.step?"":"none",left:"".concat((w=s.eleRect)==null?void 0:w.left,"px"),top:"-".concat((C=s.imgStyle)==null?void 0:C.height)}:{display:o===a.step?"":"none",left:"".concat((v=s.eleRect)==null?void 0:v.left,"px"),top:"".concat((u=a.box)==null?void 0:u.height)}},[t("img",{class:S.img,style:s.imgStyle,src:s.img},null),t("div",{class:S.btns,style:s.btnsStyle},[a.step+1==a.steps.length?t(k,null,[t("div",{class:[S.endBtn],onClick:()=>i()},[y("完成")]),t("div",{class:S.nextBtn,onClick:()=>{a.step=0,n()}},[y("再看一遍")])]):t("div",{class:S.btn,onClick:()=>l()},[y("下一步 ("),a.step+1,y("/"),a.steps.length,y(")")])])])})])])]),[[ee,d.value,"show"]]):null])}}),$e=P({name:"share-resources",setup(){const p=E({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:{}}),e=b(!1),a=b(),d=async()=>{try{p.loading=!0;const{data:n}=await V({...p.searchGroup,...p.pagination});p.loading=!1,p.pageTotal=Number(n.total);const r=n.rows||[],f=[];r.forEach(l=>{f.push({id:l.id,coverImg:l.coverImg,type:l.type,title:l.name,isCollect:!!l.favoriteFlag,isSelected:l.sourceFrom==="PLATFORM",refFlag:l.refFlag,content:l.content})}),p.tableList=f||[],setTimeout(()=>{e.value=!0},500)}catch(n){p.loading=!1}},c=async n=>{p.pagination.page=1;const{subjectId:r,...f}=n;p.searchGroup=Object.assign(p.searchGroup,{...f,musicalInstrumentId:r,subjectId:null}),d()},A=async n=>{try{await O({materialId:n.id,favoriteFlag:n.isCollect?0:1,type:n.type}),n.isCollect=!n.isCollect}catch(r){}};return M(()=>{d()}),()=>t(k,null,[t(He,{ref:a,onSearch:n=>c(n),onAdd:()=>p.teachingStatus=!0},null),t(te,{show:p.loading,"onUpdate:show":n=>p.loading=n,style:{"min-height":"50vh"}},{default:()=>[t("div",{class:I.list},[p.tableList.map((n,r)=>t("div",{class:I.itemWrap},[t("div",{class:I.itemWrapBox},[r==0?t(_,re({id:"shareResources-1"},{item:n,disabledMouseHover:!1,onClick:f=>{f.type!=="IMG"&&(p.show=!0,p.item=f)},onCollect:f=>A(f)}),null):t(_,{item:n,disabledMouseHover:!1,onClick:f=>{f.type!=="IMG"&&(p.show=!0,p.item=f)},onCollect:f=>A(f)},null)])])),!p.loading&&p.tableList.length<=0&&t(se,{style:{minHeight:"50vh"},description:"暂无共享资源"},null)])]}),t(K,{page:p.pagination.page,"onUpdate:page":n=>p.pagination.page=n,pageSize:p.pagination.rows,"onUpdate:pageSize":n=>p.pagination.rows=n,pageTotal:p.pageTotal,"onUpdate:pageTotal":n=>p.pageTotal=n,onList:d},null),t(ae,{show:p.show,"onUpdate:show":n=>p.show=n,item:p.item},null),t(W,{show:p.teachingStatus,"onUpdate:show":n=>p.teachingStatus=n,preset:"card",showIcon:!1,class:["modalTitle background",I.teachingModal],title:"自定义教材",blockScroll:!1},{default:()=>[t(ye,{onClose:()=>p.teachingStatus=!1},null)]}),e.value?t(qe,null,null):null])}}),et="_list_19bf2_1",tt="_searchGroup_19bf2_10",st="_btnType_19bf2_14",at="_inputSearch_19bf2_54",lt="_searchCatatory_19bf2_78",ot="_btnGroup_19bf2_85",nt="_addTrain_19bf2_88",it="_error_19bf2_96",ct="_iconUpload_19bf2_103",ut="_iconEdit_19bf2_107",rt="_iconSelectAll_19bf2_111",dt="_iconDelete_19bf2_115",pt="_iconPen_19bf2_119",gt="_itemWrap_19bf2_123",ft="_itemWrapBox_19bf2_128",ht="_itemBg_19bf2_140",mt="_itemBgChecked_19bf2_149",At="_resourceDefault_19bf2_152",vt="_spaceSection_19bf2_159",yt="_attendClassModal_19bf2_165",bt="_attendClassSaveModal_19bf2_171",St="_removeVisiable_19bf2_177",Ct="_studentRemove_19bf2_183",wt="_btnGroupModal_19bf2_195",It="_popSelect_19bf2_202",Bt="_spaceSection2_19bf2_212",Ut="_textBtn_19bf2_221",xt="_iconArrow_19bf2_233",Rt="_textBtnActive_19bf2_242",m={list:et,searchGroup:tt,btnType:st,inputSearch:at,searchCatatory:lt,btnGroup:ot,addTrain:nt,error:it,iconUpload:ct,iconEdit:ut,iconSelectAll:rt,iconDelete:dt,iconPen:pt,itemWrap:gt,itemWrapBox:ft,itemBg:ht,itemBgChecked:mt,resourceDefault:At,spaceSection:vt,attendClassModal:yt,attendClassSaveModal:bt,removeVisiable:St,studentRemove:Ct,btnGroupModal:wt,popSelect:It,spaceSection2:Bt,textBtn:Ut,iconArrow:xt,textBtnActive:Rt},Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAmCAYAAAC76qlaAAAAAXNSR0IArs4c6QAAB9dJREFUWEe1mQ2MHGUZx//POzO3V669j5mt0g8badGmRKFfVA2ijWCICAUKJbFAoygJkdAPtcnOXmuW2Ns5E6IUaSiCoJRKpdSWIn7RmIZqlBZL/Ugr6LVaS096O3PXa3vs7sy8j5m9/Zhu73Z2r8cmd7m7eT5+7/M+zzPP+x5hnD6pFIsNuf5PAfKzTJhGjKlgijHQS4STLPhgvN347btr6dx4uKSLNTKhMzMtz0hC4g4AH6hpj5AlxqsgsjzL+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U3hDgoR7J8v8SCDNS1ZbKwvEjv5maIgSXAXR8islcEEimO1YGLcEpAeRJiCSEsTdj0E8qqBeNf30mR70OroW7dRBDf0KBF9ZOW9GRLg+qAloefKJ+8uV8o/1LyuwfC/WOEsx7j5OwYiZTc81CnL//mjwZ/kZw6hcbFUAA9stELSqmhEj8sDY4hc/tQUqOtNxzcpizUn+jfneLesDCnF3BprnQquoY1Y+fWqD3XFPgzwU2iPiWFnP32C33X8A3lwdU2JMmvn53EBAgZN8m8QLdeBPYr43s14wcFyf5IPhhEoOmznv/e0FslOnCH20GyCIOhLLp08PgTZbsmGGAGn7Ug8zNMxQq0odDOtQh14WOO5bJI/VehnOWfnMgQ11yHbzBO166zhk5rwPtrVSl5xkUhNphsc040AsPx822rUnsFOvEfqEQFbFiOw2F+d+2Vagqnhxct+9Sq9Gx/KZHxq3JtXfpcnpKanw0pifvtBoL2x1t28F0MvYjQ+07CR3l4nv6y9tWd2kbhv/Nr3cSxY28y09lBrTq/ovEpGqT0Swp3HZm/fUteuXKwSjdeFfRbAAojIQlMAgMQXgnvDPQlbM0V07G69nWp46Att9h+DzAwF0CBbIu5bv1Td6151bAtU26itnQT67LVAin1q3R2fl/PmVRv2257LwGo9MaMiEkGoQOIpoBS5pkWy7673/AG2QyadOuCtAAAAAAElFTkSuQmCC";function ie(p){return typeof p=="function"||Object.prototype.toString.call(p)==="[object Object]"&&!H(p)}const Tt=P({name:"search-group",emits:["search","upload","edit","selectAll","delete","update","editOver","cancel"],setup(p,{emit:e,expose:a}){const d=b([]),c=j(),A=E({type:"MUSIC",name:"",bookVersionId:null,subjectId:null}),n=E({tempSubjectId:null,isEdit:!1,isSelectAll:!1}),r=()=>{e("search",A)};M(async()=>{d.value=[],X.forEach(i=>{d.value.push(i)}),await c.getSubjects(),A.subjectId&&(n.tempSubjectId=A.subjectId)});const f=i=>{const s={};return i==null||i.forEach(o=>{o.id===A.subjectId&&(s.selected=!0,s.name=o.name)}),s};return a({resetStatus:()=>{n.isSelectAll=!1}}),()=>{let i,s;return t("div",{class:m.searchGroup},[t("div",{class:m.searchCatatory},[t(G,{size:"small",class:m.btnType},ie(i=d.value.map(o=>t(x,{type:A.type===o.value?"primary":"default",secondary:A.type!==o.value,round:!0,size:"small",focusable:!1,onClick:()=>{A.type!==o.value&&(n.isEdit=!1,n.isSelectAll=!1,e("edit",n.isEdit)),A.type=o.value,A.subjectId=null,n.tempSubjectId=null,r()}},{default:()=>[o.label]})))?i:{default:()=>[i]}),t(G,{size:"small",class:m.btnGroup},{default:()=>[n.isEdit?t(k,null,[t(x,{type:"primary",class:m.addTrain,focusable:!1,strong:!0,onClick:()=>{n.isSelectAll=!n.isSelectAll,e("selectAll",n.isSelectAll)}},{default:()=>[t("img",{src:n.isSelectAll?Gt:Pt,class:m.iconSelectAll},null),y("全选")]}),t(x,{type:"error",class:[m.addTrain,m.error],focusable:!1,strong:!0,onClick:()=>e("delete")},{default:()=>[t("img",{src:Ft,class:m.iconDelete},null),y("删除")]}),A.type!=="MUSIC"&&t(x,{type:"primary",class:m.addTrain,focusable:!1,strong:!0,onClick:()=>e("update")},{default:()=>[t("img",{src:Mt,class:m.iconPen},null),y("修改")]}),t(x,{type:"primary",class:m.addTrain,focusable:!1,strong:!0,onClick:()=>{n.isEdit=!1,n.isSelectAll=!1,e("editOver",n.isEdit)}},{default:()=>[y("完成编辑")]}),t(x,{type:"error",class:[m.addTrain,m.error],focusable:!1,strong:!0,onClick:()=>{n.isEdit=!1,n.isSelectAll=!1,e("cancel",n.isEdit)}},{default:()=>[y("取消编辑")]})]):t(k,null,[t(x,re({type:"primary",class:m.addTrain,focusable:!1},{id:"myResources-0"},{strong:!0,onClick:()=>e("upload")}),{default:()=>[t("img",{src:Et,class:m.iconUpload},null),y("上传资源")]}),t(x,{type:"primary",class:m.addTrain,focusable:!1,strong:!0,onClick:()=>{n.isEdit=!0,e("edit",n.isEdit)}},{default:()=>[t("img",{src:kt,class:m.iconEdit},null),y("编辑资源")]})])]})]),t(J,{labelAlign:"left",labelPlacement:"left"},{default:()=>[t(L,{label:"乐器:"},{default:()=>[t(G,{class:m.spaceSection2},ie(s=c.getSubjectInstruments.map(o=>o.instruments&&o.instruments.length>1?t(Z,{options:o.instruments,trigger:"hover",scrollable:!0,value:n.tempSubjectId,"onUpdate:value":[w=>n.tempSubjectId=w,()=>{n.tempSubjectId!==o.value&&(n.isEdit=!1,n.isSelectAll=!1,e("edit",n.isEdit)),A.subjectId=n.tempSubjectId,r()}],key:o.value,class:[m.popSelect]},{default:()=>[t("span",{class:[m.textBtn,f(o.instruments).selected&&m.textBtnActive]},[f(o.instruments).name||o.name,t("i",{class:m.iconArrow},null)])]}):t("span",{class:[m.textBtn,A.subjectId===o.value&&m.textBtnActive],onClick:()=>{A.subjectId=o.value,n.tempSubjectId=null,r()}},[o.name])))?s:{default:()=>[s]})]}),t(Y,{class:m.inputSearch,round:!0,onSearch:o=>{A.name=o,r()}},null)]})])}}}),Nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA8dJREFUWEfNmU1sE1cQx///3Ue8CCOBnUJjpVUlop7opahqj3DmAFS0VdNDb1UL7YUg4bXSsARkBwk4FYp66wFQP1TEoedwBFX0Ui6tglSVyCnUNogYsTa7O9Vbs46dpPVXIPuOfm/m/XZm3rx5Y6LPkZh8uMP3/X0C2UVBBkRGgIxWR6AIQVGIIsFbpmleq53acqefrdiLUNJZ3ObW659DcEBEdvYiS/I2iKvW0NBXVWfz/W5luwJ8yZHkA7cyIZSjECS7Vb7qOqJK4ZmtVursPw6rnXR1BDTt0rsALkCwfYUy8i4oPxOcM8CFwGBRrzECyQSQEYGMQbgXIq+slMU9AIf8wvBP/wf5n4Aiwg12ZUqA44AsrQstgPM01PdP81t+7WQBPb8h9/BNCbz3hTjc7gFqxSeeFlLTJGU1XasCjp6TjQv3K98C8l5TiPRA+caCNf04n9Rf3/PYlKtud+FOQfgJRNSSAv4wsi318fwRP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x5X3OqwX0L93gA+WGdH3UKBTwDFWUxm+PZsVImerD4s8oNWaEYHUZuMwNctDvBopgL5fUxSyDgT+Mo9AXgD2ihFDa1C1HpH3SKnAcfXp6eSMZYAzB3x1Lf0iPjqjHZKUQOojDr+QXD7dS0LTUtN2PlQejPEHQR585wKo+3zZPPkz2W2RGJZUAC+6N/GZPaSHkPvcjqpNcNSlH6tGRiNgqc2k3702FYoMHXdKmRhLbEQTmxMJ2RueNnOSQyN6aeUtANkLqxKFAu4zd1ZYcRQWymCYRmhGND6aRBHftXPxpnRTb3dXfWl6fZyA+oWFuGvixJ+GMm932lKM0H90sSV5/S1M366QlKtKTIahPJe3LmNOf/0wUHO6cejeCbm9PNbarnM2QfMVJBz+gk4FajyiB6OtAJYrfeif10f0dUY4kb9DfEf/jo/ywKomDwAAAAASUVORK5CYII=",_t=P({name:"myResources-guide",emits:["close"],setup(p,{emit:e}){const a=E({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:z("myResourecs1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:B(-4),left:B(-240),width:B(556),height:B(257)},btnsStyle:{bottom:B(30),left:B(-80)},eleRectPadding:{left:14,top:14,width:28,height:28},boxStyle:{borderRadius:"30px"}}],step:0}),d=b(!1),c=b({});(async()=>{var s;try{const o=await le({guideTag:"teacher-guideInfo"});o.data?c.value=JSON.parse((s=o.data)==null?void 0:s.guideValue)||null:c.value={},console.log(c.value,"guideInfo.value"),c.value&&c.value.myResourcesGuide?d.value=!1:d.value=!0}catch(o){console.log(o)}})();const n=()=>{var o,w,C,v;const s=document.getElementById("myResources-".concat(a.step));if(s){const u=s.getBoundingClientRect(),g=((o=a.steps[a.step].eleRectPadding)==null?void 0:o.left)||0,h=((w=a.steps[a.step].eleRectPadding)==null?void 0:w.top)||0,R=((C=a.steps[a.step].eleRectPadding)==null?void 0:C.width)||0,T=((v=a.steps[a.step].eleRectPadding)==null?void 0:v.height)||0;a.box={left:u.x-g+"px",top:u.y-h+"px",width:u.width+R+"px",height:u.height+T+"px"}}else l()},r=async s=>{try{if(s!=="myResources")return;c.value?c.value.classGuide=!1:c.value={classGuide:!1};try{await N({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(c.value)})}catch(o){console.log(o)}a.step=0,n(),d.value=!0}catch(o){}};M(()=>{n(),window.addEventListener("resize",f),F.on("natural-resources-guide",s=>r(s))});const f=()=>{n()};q(()=>{window.removeEventListener("resize",f),F.off("natural-resources-guide",r)});const l=()=>{if(a.step>=4){i();return}a.step=a.step+1,n()},i=async()=>{c.value?c.value.myResourcesGuide=!0:c.value={myResourcesGuide:!0};try{const s=await N({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(c.value)})}catch(s){console.log(s)}d.value=!1};return()=>t(k,null,[d.value?$(t("div",{"onUpdate:show":s=>d.value=s,class:["n-modal-mask","n-modal-mask-guide"]},[t("div",{class:S.content,onClick:()=>l()},[t("div",{class:S.backBtn,onClick:s=>{s.stopPropagation(),i()}},[y("跳过")]),t("div",{class:S.box,style:{...a.box,...a.steps[a.step].boxStyle},id:"modeType-".concat(a.step)},[a.steps.map((s,o)=>{var w,C,v,u;return t("div",{onClick:g=>g.stopPropagation(),class:S.item,style:s.type=="bottom"?{display:o===a.step?"":"none",left:"".concat((w=s.eleRect)==null?void 0:w.left,"px"),top:"-".concat((C=s.imgStyle)==null?void 0:C.height)}:{display:o===a.step?"":"none",left:"".concat((v=s.eleRect)==null?void 0:v.left,"px"),top:"".concat((u=a.box)==null?void 0:u.height)}},[t("img",{class:S.img,style:s.imgStyle,src:s.img},null),t("div",{class:S.btns,style:s.btnsStyle},[a.step+1==a.steps.length?t(k,null,[t("div",{class:[S.endBtn],onClick:()=>i()},[y("完成")])]):t("div",{class:S.btn,onClick:()=>l()},[y("下一步 ("),a.step+1,y("/"),a.steps.length,y(")")])])])})])])]),[[ee,d.value,"show"]]):null])}}),Ot=P({name:"share-resources",setup(){const p=de();pe();const e=E({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,isAdd:!1,editList:[],editIds:[],editOverIds:[],removeVisiable:!1,removeContent:"是否删除该资源?",type:"remove",removeItem:{}}),a=b(!1),d=async()=>{try{e.loading=!0;const{data:l}=await V({...e.searchGroup,...e.pagination});e.loading=!1,e.pageTotal=Number(l.total);const i=l.rows||[],s=[];i.forEach(o=>{s.push({id:o.id,coverImg:o.coverImg,type:o.type,title:o.name,isCollect:!!o.favoriteFlag,isSelected:o.sourceFrom==="PLATFORM",refFlag:o.refFlag,content:o.content,instrumentIds:o.instrumentIds,sourceFrom:o.sourceFrom,enableFlag:o.enableFlag?1:0,openFlag:o.openFlag})}),e.tableList=s||[],setTimeout(()=>{a.value=!0},500)}catch(l){e.loading=!1}},c=Ae(()=>{const l=e.tableList||[];let i=0;return l.forEach(s=>{s.delFlag||i++}),!(i>0)}),A=async l=>{try{await O({materialId:l.id,favoriteFlag:l.isCollect?0:1,type:l.type}),l.isCollect=!l.isCollect}catch(i){}},n=async l=>{e.pagination.page=1;const{subjectId:i,...s}=l;e.searchGroup=Object.assign(e.searchGroup,{...s,musicalInstrumentId:i,subjectId:null}),d()},r=async()=>{try{e.searchGroup.type==="MUSIC"?await oe([e.removeItem.id]):await he({ids:e.removeItem.id}),p.success("删除成功"),n(e.searchGroup)}catch(l){}},f=b();return M(()=>{d()}),()=>t(k,null,[t(Tt,{ref:f,onSearch:l=>n(l),onUpload:()=>{e.editList=[],e.saveStatus=!0},onUpdate:()=>{const l=[];if(e.tableList.forEach(i=>{e.editIds.indexOf(i.id)>-1&&i.delFlag!==1&&l.push(i)}),e.editList=l||[],e.editList.length<=0){p.error("至少选择一条资源进行编辑");return}e.uploadStatus=!0,e.isAdd=!1},onEditOver:async l=>{e.editStatus=l;try{if(e.editOverIds.length>0){const i=[];e.tableList.forEach(s=>{e.editOverIds.includes(s.id)&&i.push({instrumentIds:s.instrumentIds,openFlag:s.openFlag,coverImg:s.coverImg,name:s.title,type:s.type,enableFlag:1,content:s.content,id:s.id||null,delFlag:s.delFlag})}),i.length>0&&(e.searchGroup.type==="MUSIC"?await oe(e.editIds):await fe(i))}p.success("修改成功"),e.pagination.page=1,d(),e.editIds=[],e.editOverIds=[]}catch(i){}},onCancel:l=>{e.editStatus=l,e.pagination.page=1,e.editIds=[],e.editOverIds=[],d()},onEdit:async l=>{e.editStatus=l,e.editStatus||(e.editIds=[],e.editOverIds=[])},onSelectAll:l=>{if(l){const i=[];e.tableList.forEach(s=>{i.push(s.id)}),e.editIds=i}else e.editIds=[]},onDelete:()=>{if(e.editIds.length<=0){p.error("至少选择一条资源进行删除");return}e.type="delete",e.removeContent="是否删除该资源?",e.removeVisiable=!0}},null),t(te,{show:e.loading,"onUpdate:show":l=>e.loading=l,style:{"min-height":"50vh"}},{default:()=>[t("div",{class:m.list},[e.tableList.map(l=>l.delFlag!==1&&t("div",{class:m.itemWrap},[t("div",{class:m.itemWrapBox},[t(_,{item:l,isDownload:!0,disabledMouseHover:!1,offShelf:!l.enableFlag,onOffShelf:()=>{e.type="remove",e.removeContent="该资源已下架,是否删除?",e.removeVisiable=!0,e.removeItem=l},onClick:i=>{i.type==="IMG"||!l.enableFlag||(e.show=!0,e.item=i)},onCollect:i=>A(i)},null),e.editStatus&&t("div",{class:[m.itemBg,e.editIds.includes(l.id)?m.itemBgChecked:""],onClick:()=>{const i=e.editIds.indexOf(l.id);i>-1?e.editIds.splice(i,1):e.editIds.push(l.id)}},[t("img",{src:e.editIds.includes(l.id)?Wt:Nt,class:m.resourceDefault},null)])])])),!e.loading&&c.value&&t(se,{style:{minHeight:"50vh"},description:"暂无资源"},null)])]}),t(K,{disabled:e.editStatus,page:e.pagination.page,"onUpdate:page":l=>e.pagination.page=l,pageSize:e.pagination.rows,"onUpdate:pageSize":l=>e.pagination.rows=l,pageTotal:e.pageTotal,"onUpdate:pageTotal":l=>e.pageTotal=l,onList:d},null),t(ae,{show:e.show,"onUpdate:show":l=>e.show=l,item:e.item},null),t(W,{show:e.uploadStatus,"onUpdate:show":l=>e.uploadStatus=l,preset:"card",showIcon:!1,class:["modalTitle background",m.attendClassModal],title:e.editStatus?"修改资源":"上传资源",blockScroll:!1},{default:()=>[t(be,{editStatus:e.editStatus,onClose:()=>{e.uploadStatus=!1},onConfirm:()=>{var l;e.editIds=[],e.editList=[],e.editOverIds=[],e.saveStatus=!1,(l=f.value)==null||l.resetStatus(),n(e.searchGroup)},list:e.editList,showDelete:e.isAdd,onEditAll:l=>{try{e.tableList.forEach(i=>{const s=l.find(o=>o.id===i.id);s&&(i.openFlag=s.openFlag,i.title=s.name,i.instrumentIds=s.instrumentIds,i.content=s.content,i.coverImg=s.coverImg,e.editOverIds.includes(i.id)||e.editOverIds.push(i.id))}),e.uploadStatus=!1}catch(i){console.log(i)}}},null)]}),t(W,{show:e.saveStatus,"onUpdate:show":l=>e.saveStatus=l,preset:"card",showIcon:!1,class:["modalTitle background",m.attendClassSaveModal],title:"上传资源",blockScroll:!1},{default:()=>[t(Se,{onClose:()=>e.saveStatus=!1,onConfrim:l=>{const i=l||[],s=[];i.forEach(o=>{s.push({instrumentIds:null,openFlag:!1,coverImg:o.coverImg,title:o.name||"",type:Ce(o.content),enableFlag:1,content:o.content,id:null})}),e.editList=[...s],e.uploadStatus=!0,e.isAdd=!0,e.editStatus=!1}},null)]}),a.value?t(_t,null,null):null,t(W,{show:e.removeVisiable,"onUpdate:show":l=>e.removeVisiable=l,preset:"card",class:["modalTitle",m.removeVisiable],title:"提示"},{default:()=>[t("div",{class:m.studentRemove},[t("p",null,[e.removeContent]),t(G,{class:m.btnGroupModal,justify:"center"},{default:()=>[t(x,{round:!0,type:"primary",onClick:()=>{e.type==="remove"?r():e.tableList.forEach(l=>{e.editIds.includes(l.id)&&(l.delFlag=1,e.editOverIds.includes(l.id)||e.editOverIds.push(l.id))}),e.removeVisiable=!1}},{default:()=>[y("确定")]}),t(x,{round:!0,onClick:()=>e.removeVisiable=!1},{default:()=>[y("取消")]})]})])]})])}}),Lt="_list_17t0f_1",zt="_itemWrap_17t0f_11",jt="_itemWrapBox_17t0f_16",Qt="_searchGroup_17t0f_28",Dt="_btnType_17t0f_32",Vt="_inputSearch_17t0f_67",Kt="_searchCatatory_17t0f_91",Yt="_addTrain_17t0f_98",Xt="_spaceSection_17t0f_110",Jt="_collapseWrap_17t0f_116",Zt="_collaoseGroup_17t0f_122",Ht="_collaoseBtn_17t0f_129",qt="_isStart_17t0f_134",$t="_collapsSection_17t0f_137",es="_isHidden_17t0f_140",ts="_hideButton_17t0f_144",ss="_popSelect_17t0f_149",as="_spaceSection2_17t0f_159",ls="_textBtn_17t0f_172",os="_iconArrow_17t0f_184",ns="_textBtnActive_17t0f_193",is="_removeVisiable_17t0f_201",cs="_studentRemove_17t0f_207",us="_btnGroupModal_17t0f_219",U={list:Lt,itemWrap:zt,itemWrapBox:jt,searchGroup:Qt,btnType:Dt,inputSearch:Vt,searchCatatory:Kt,addTrain:Yt,spaceSection:Xt,collapseWrap:Jt,collaoseGroup:Zt,collaoseBtn:Ht,isStart:qt,collapsSection:$t,isHidden:es,hideButton:ts,popSelect:ss,spaceSection2:as,textBtn:ls,iconArrow:os,textBtnActive:ns,removeVisiable:is,studentRemove:cs,btnGroupModal:us};function ce(p){return typeof p=="function"||Object.prototype.toString.call(p)==="[object Object]"&&!H(p)}const rs=P({name:"search-group",emits:["search"],setup(p,{emit:e}){const a=j(),d=b([]),c=E({type:"MUSIC",name:"",bookVersionId:null,subjectId:null}),A=E({tempSubjectId:null}),n=()=>{e("search",c)},r=b(),f=b([]),l=b(0),i=b(0),s=b(!1),o=b(!1),w=()=>{try{f.value=[...new Set(f.value)];let v=-1;f.value.forEach((u,g)=>{g===0?(i.value=1,v=u.offsetLeft):u.offsetLeft===v&&g!=0&&i.value++,s.value?u.style.display="block":i.value>1?u.style.display="none":u.style.display="block"}),o.value=!0}catch(v){}},C=v=>{const u={};return v==null||v.forEach(g=>{g.id===c.subjectId&&(u.selected=!0,u.name=g.name)}),u};return M(async()=>{d.value=[...X],await a.getMusicSheetCategory(),await a.getSubjects()}),()=>{let v,u;return t("div",{class:U.searchGroup},[t("div",{class:U.searchCatatory},[t(G,{size:"small",class:U.btnType},ce(v=d.value.map(g=>t(x,{type:c.type===g.value?"primary":"default",secondary:c.type!==g.value,round:!0,size:"small",focusable:!1,onClick:()=>{c.type=g.value,c.subjectId=null,A.tempSubjectId=null,n(),ue(()=>{var h;c.type==="MUSIC"?(l.value=(h=r.value)==null?void 0:h.offsetHeight,w()):f.value=[]})}},{default:()=>[g.label]})))?v:{default:()=>[v]})]),t(J,{labelAlign:"left",labelPlacement:"left"},{default:()=>[t(L,{label:"乐器:"},{default:()=>[t(G,{class:U.spaceSection2},ce(u=a.getSubjectInstruments.map(g=>g.instruments&&g.instruments.length>1?t(Z,{options:g.instruments,trigger:"hover",scrollable:!0,value:A.tempSubjectId,"onUpdate:value":[h=>A.tempSubjectId=h,()=>{c.subjectId=A.tempSubjectId,n()}],key:g.value,class:[U.popSelect]},{default:()=>[t("span",{class:[U.textBtn,C(g.instruments).selected&&U.textBtnActive]},[C(g.instruments).name||g.name,t("i",{class:U.iconArrow},null)])]}):t("span",{class:[U.textBtn,c.subjectId===g.value&&U.textBtnActive],onClick:()=>{c.subjectId=g.value,A.tempSubjectId=null,n()}},[g.name])))?u:{default:()=>[u]})]}),t(Y,{class:U.inputSearch,round:!0,onSearch:g=>{c.name=g,n()}},null)]})])}}}),ds=P({name:"myColloge-guide",emits:["close"],setup(p,{emit:e}){const a=E({box:{height:"0px"},show:!1,steps:[{ele:"",img:z("myColloge1.png"),imgStyle:{top:B(-4),left:B(630),width:B(458),height:B(291)},btnsStyle:{bottom:B(96),left:B(790)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"bottom"}],step:0}),d=b(!1),c=b({});(async()=>{var s;try{const o=await le({guideTag:"teacher-guideInfo"});o.data?c.value=JSON.parse((s=o.data)==null?void 0:s.guideValue)||null:c.value={},c.value&&c.value.myColloge?d.value=!1:d.value=!0}catch(o){console.log(o)}})();const n=()=>{var o,w,C,v;const s=document.getElementById("myColloge-".concat(a.step));if(s){const u=s.getBoundingClientRect(),g=((o=a.steps[a.step].eleRectPadding)==null?void 0:o.left)||0,h=((w=a.steps[a.step].eleRectPadding)==null?void 0:w.top)||0,R=((C=a.steps[a.step].eleRectPadding)==null?void 0:C.width)||0,T=((v=a.steps[a.step].eleRectPadding)==null?void 0:v.height)||0;a.box={left:u.x-g+"px",top:u.y-h+"px",width:u.width+R+"px",height:u.height+T+"px"}}else l()},r=async s=>{try{if(console.log(s),s!=="myCollect")return;console.log(s,"name"),c.value?c.value.myColloge=!1:c.value={myColloge:!1};try{await N({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(c.value)})}catch(o){console.log(o)}a.step=0,n(),d.value=!0}catch(o){}};M(()=>{n(),window.addEventListener("resize",f),F.on("natural-resources-guide",s=>r(s))});const f=()=>{n()};q(()=>{window.removeEventListener("resize",f),F.off("natural-resources-guide",r)});const l=()=>{if(a.step>=4){i();return}a.step=a.step+1,n()},i=async()=>{c.value?c.value.myColloge=!0:c.value={myColloge:!0};try{const s=await N({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(c.value)})}catch(s){console.log(s)}d.value=!1};return()=>t(k,null,[d.value?$(t("div",{"onUpdate:show":s=>d.value=s,class:["n-modal-mask","n-modal-mask-guide"]},[t("div",{class:S.content,onClick:()=>l()},[t("div",{class:S.backBtn,onClick:s=>{s.stopPropagation(),i()}},[y("跳过")]),t("div",{class:S.box,style:{...a.box},id:"modeType-".concat(a.step)},[a.steps.map((s,o)=>{var w,C,v,u;return t("div",{onClick:g=>g.stopPropagation(),class:S.item,style:s.type=="bottom"?{display:o===a.step?"":"none",left:"".concat((w=s.eleRect)==null?void 0:w.left,"px"),top:"-".concat((C=s.imgStyle)==null?void 0:C.height)}:{display:o===a.step?"":"none",left:"".concat((v=s.eleRect)==null?void 0:v.left,"px"),top:"".concat((u=a.box)==null?void 0:u.height)}},[t("img",{class:S.img,style:s.imgStyle,src:s.img},null),t("div",{class:S.btns,style:s.btnsStyle},[a.step+1==a.steps.length?t(k,null,[t("div",{class:[S.endBtn],onClick:()=>i()},[y("完成")])]):t("div",{class:S.btn,onClick:()=>l()},[y("下一步 ("),a.step+1,y("/"),a.steps.length,y(")")])])])})])])]),[[ee,d.value,"show"]]):null])}}),ps=P({name:"share-resources",setup(){const p=de();pe();const e=E({searchWord:"",loading:!1,pageTotal:0,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,subjectId:null,sourceType:4},tableList:[],show:!1,item:{},removeVisiable:!1,removeContent:"该资源已下架,是否删除?",removeItem:{}}),a=async()=>{try{e.loading=!0;const{data:r}=await V({...e.searchGroup,...e.pagination});e.loading=!1,e.pageTotal=Number(r.total);const f=r.rows||[],l=[];f.forEach(i=>{l.push({id:i.id,coverImg:i.coverImg,type:i.type,title:i.name,isCollect:!!i.favoriteFlag,isSelected:i.sourceFrom==="PLATFORM",refFlag:i.refFlag,content:i.content,subjectId:i.subjectIds,enableFlag:i.enableFlag?1:0,openFlag:i.openFlag})}),e.tableList=l||[],setTimeout(()=>{d.value=!0},500)}catch(r){e.loading=!1}},d=b(!1),c=async r=>{e.pagination.page=1;const{subjectId:f,...l}=r;e.searchGroup=Object.assign(e.searchGroup,{...l,musicalInstrumentId:f,subjectId:null}),a()},A=async r=>{try{await O({materialId:r.id,favoriteFlag:r.isCollect?0:1,type:r.type}),r.isCollect=!r.isCollect}catch(f){}},n=async()=>{try{await O({materialId:e.removeItem.id,favoriteFlag:0,type:e.removeItem.type}),p.success("删除成功"),c(e.searchGroup)}catch(r){}};return M(()=>{a()}),()=>t(k,null,[t(rs,{onSearch:r=>c(r)},null),t(te,{show:e.loading,"onUpdate:show":r=>e.loading=r,style:{"min-height":"50vh"}},{default:()=>[t("div",{class:U.list,id:"myColloge-0"},[e.tableList.map(r=>t("div",{class:U.itemWrap},[t("div",{class:U.itemWrapBox},[t(_,{item:r,offShelf:!r.enableFlag,onOffShelf:()=>{e.removeVisiable=!0,e.removeItem=r},disabledMouseHover:!1,onClick:f=>{f.type==="IMG"||!r.enableFlag||(e.show=!0,e.item=f)},onCollect:f=>A(f)},null)])])),!e.loading&&e.tableList.length<=0&&t(se,{style:{minHeight:"50vh"},description:"暂无收藏资源"},null)])]}),t(K,{page:e.pagination.page,"onUpdate:page":r=>e.pagination.page=r,pageSize:e.pagination.rows,"onUpdate:pageSize":r=>e.pagination.rows=r,pageTotal:e.pageTotal,"onUpdate:pageTotal":r=>e.pageTotal=r,onList:a},null),t(ae,{show:e.show,"onUpdate:show":r=>e.show=r,item:e.item},null),d.value?t(ds,null,null):null,t(W,{show:e.removeVisiable,"onUpdate:show":r=>e.removeVisiable=r,preset:"card",class:["modalTitle",U.removeVisiable],title:"提示"},{default:()=>[t("div",{class:U.studentRemove},[t("p",null,[e.removeContent]),t(G,{class:U.btnGroupModal,justify:"center"},{default:()=>[t(x,{round:!0,type:"primary",onClick:()=>{n(),e.removeVisiable=!1}},{default:()=>[y("确定")]}),t(x,{round:!0,onClick:()=>e.removeVisiable=!1},{default:()=>[y("取消")]})]})])]})])}}),Ns=P({name:"student-studentList",setup(){const p=j(),e=b("myResources");return M(async()=>{F.on("teacher-guideInfo",a=>{a==="natural-resources"&&F.emit("natural-resources-guide",e.value)}),await p.getMusicSheetCategory(!0)}),()=>t("div",{class:D.listWrap},[t(ve,{defaultValue:"myResources",paneClass:D.paneTitle,justifyContent:"center",paneWrapperClass:D.paneWrapperContainer,"onUpdate:value":[a=>{e.value=a},a=>e.value=a],value:e.value},{default:()=>[t(Q,{name:"myResources",tab:"我的资源"},{default:()=>[t(Ot,null,null)]}),t(Q,{name:"shareResources",tab:"共享资源"},{default:()=>[t($e,null,null)],tab:()=>t("span",{id:"shareResources-0"},[y("共享资源")])}),t(Q,{name:"myCollect",tab:"我的收藏"},{default:()=>[t(ps,null,null)]})]})])}});export{Ns as default};