1 |
- System.register(["./icon_back-legacy-a8ad0d25-1720699367816.js","./icon-plus-t-legacy-9d0f221a-1720699367816.js","./api-legacy-c886a139-1720699367816.js","./index-legacy-de40bbb0-1720699367816.js","./index-legacy-e0181e36-1720699367816.js","./Slider-legacy-2010a947-1720699367816.js"],(function(e,t){"use strict";var r,l,i,n,_,a,c,o,s,g,d,y,A,w,u,m,h,v,p;return{setters:[e=>{r=e.i},e=>{l=e.i,i=e.a,n=e.b},e=>{_=e.c,a=e.d},e=>{c=e.T},e=>{o=e.d,s=e.u,g=e.r,d=e.e,y=e.q,A=e.f,w=e.x,u=e.aQ,m=e.aR,h=e.k,v=e.E},e=>{p=e.N}],execute:function(){var t=document.createElement("style");t.textContent="._container_1glyr_1{display:flex;flex-direction:column;height:100%}._container_1glyr_1 ._iconBack_1glyr_6{width:1.875vw;height:1.875vw}._container_1glyr_1 .n-breadcrumb>ul{display:flex;align-items:center}._container_1glyr_1 .n-breadcrumb>ul .n-breadcrumb-item{display:flex;align-items:center}._container_1glyr_1 .n-breadcrumb>ul .n-breadcrumb-item__separator{display:none}._container_1glyr_1 .n-breadcrumb>ul .n-breadcrumb-item__link{padding:.26041667vw .9375vw;background:#FFFFFF;border-radius:.83333333vw;color:#21225d;line-height:1.04166667vw}._container_1glyr_1 .n-breadcrumb .n-breadcrumb-item:last-child .n-breadcrumb-item__link{color:#fff;background:var(--product-color)}._container_1glyr_1>.n-space{height:1.875vw;flex-shrink:0}._container_1glyr_1 ._separator_1glyr_36{width:.46875vw;height:.78125vw;margin:0 .83333333vw}._wrap_1glyr_41{padding-top:.78125vw;flex:1;transition:padding .3s;overflow:hidden}._wrap_1glyr_41._wrapBottom_1glyr_47{padding-bottom:5.625vw}._contentWrap_1glyr_50{position:relative;flex:1;display:flex;padding:0 2.86458333vw 0 0;overflow:hidden;gap:0 1.25vw}._content_1glyr_50{display:flex;flex-direction:column;height:100%;border-radius:1.04166667vw}._contentWrap_1glyr_50 .n-scrollbar-container{max-height:100%}._contentWrap_1glyr_50 ._scrollBar_1glyr_67{margin-top:.625vw;padding:0 1.04166667vw}._contentWrap_1glyr_50 ._scrollBar_1glyr_67._empty_1glyr_71{display:flex;align-items:center;justify-content:center}._contentWrap_1glyr_50 ._directoryList_1glyr_76{width:18.75vw;background:#FFFFFF;border-radius:.88541667vw;flex-shrink:0;height:100%;overflow-x:hidden;overflow-y:auto}._contentWrap_1glyr_50 ._directoryList_1glyr_76::-webkit-scrollbar{width:0;display:none}._contentWrap_1glyr_50 ._treeParent_1glyr_89{transition:height 1s ease-in-out}._contentWrap_1glyr_50 ._treeChild_1glyr_92{line-height:2.8125vw}._contentWrap_1glyr_50 ._treeItem_1glyr_95{display:flex;align-items:center;line-height:2.8125vw;padding:0 .26041667vw;cursor:pointer;border-radius:.52083333vw;font-size:max(.88541667rem,13Px)}._contentWrap_1glyr_50 ._treeItem_1glyr_95._childItem_1glyr_104:hover ._title_1glyr_104{color:var(--n-color)}._contentWrap_1glyr_50 ._treeItem_1glyr_95 ._title_1glyr_104{padding-left:.41666667vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:14.58333333vw!important;color:rgba(0,0,0,.5);display:flex;align-items:center}._contentWrap_1glyr_50 ._treeItem_1glyr_95 ._title_1glyr_104 ._dir_1glyr_76{flex-shrink:1;display:inline-block;width:.83333333vw;height:.9375vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAkCAYAAADsHujfAAAAAXNSR0IArs4c6QAAAfNJREFUWEftmLFrIkEUxr9HUEFIISmuUbhOi/wD9p5prvRNHUhxZar8AYGUKVJcccX1B7vHio2Qg2ssQlBbbRIQg0ERBBEkiKtzjJBDJCYz44IrON0u7/v2t2/evp0ZwspwXferlPIUQBbAJwAHqzEW1y8Anojoloi+FwqFh1UPer3hed6R7/u/AHyxeJC2hIh8AJfMfLUsWoCUSqXDyWRyB+BY23HDQCK6ZuaLV5sFiOM4PwGcbehtLCeiE2b+o4RULBY/T6fTx4BqwRTmXgihahHkOM45gBtThwDjk0KIZ3Jd94eU8luAxkZWRJRj5r8KxJFSspE62GAWQvzeOggRCWZ2PwTJZDJIp9OIRqPGeRiNRqjX6xgMBmu1WiCJRAK5XM4YYFkwHo9RLpc3A0kmk8hmF1+X9ZjP5/A8D1LKNz20MhKJRJDP5xGPx61BWq3WYnrWDS0QJY7FYkilUtY10ul03n0JbRDrVGgK9yCridq9jOg2tNlshm63i1qtBt9Xax+9oZURm4bWbDbRaDT0KNTvX6fF2zS0druNarUaLIhpQ1Pds1KpoN/vBwti0tBUK+/1ehgOh9oQKlBraowcLYP3ILvf0CynXlsWmhoB8H/xHI7tRGg2WKHZcqqqCsUmXIGE5lhCwYTioGb5o9/W0dU/+wpqNGTyHr4AAAAASUVORK5CYII=) no-repeat center;background-size:contain;margin-right:.3125vw}._contentWrap_1glyr_50 ._treeItem_1glyr_95 ._title_1glyr_104._titleSelect_1glyr_126{color:var(--n-color);font-weight:700}._contentWrap_1glyr_50 ._treeItem_1glyr_95 ._title_1glyr_104._titleSelect_1glyr_126 ._dir_1glyr_76{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAmCAYAAACh1knUAAAAAXNSR0IArs4c6QAABmxJREFUWEfNWGuIVVUYXWufO5r4gJTyhxKi5ChZJIY2kST5KrKS8h6yDCUDNYtBohcIYeSkZGE0mYpZGGXdY6FklJYYFqJREdGPSiEw9IdUFBXOzL1zduz3PudeNYmg+TH3tc/Za3/f+ta3vkP8T/5YxnHZ6p55FFwCyg5SjCTyhCQICSEI6iskBAlB6M/mO0AIQL2lfVXr1dqE4oxkfiIRYt+AAZXuQ8t5rLyvBzKhS47o6anvBOVsdbG6ebyR2ljt4gGpDSMgZq0BqtaY39Rn9T6AFkBDJFxz6IG2p2MwGkj7ejm070zfYUBOUl/ok6ub2QiYG5ubKTAKlN7AgnEnt1h95NxBdLQi0Bbwhk+Wtz3iwGggY9f0bSPlUndjcwq7oQPkNvVgmk/cvKFJlUqZ+muKcsK5Hy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nrO31bqw4i820NlFzLyHTJxWQxbtDRHSJF0yuc/PBLAXFdRaxZIqt1CuwsbsvexIn84JMV1/DjEv2NGpCla9xgE1DVMGTeg2xrC+d3Dv/gsDFau0mA9t/CCSC6ROTmfH+vYqsrIahyIRdh788StiNC541OnnRIhb7kUmH5YlLreYI00evYsZlH+TejzjylaezmP3l2SQeR926JnvYYjZyWqU48rAC8sC+vEbk1o8YU+vGAdfaw5RWamzecYWxojDRRZ3bEbwgcEJHvrrqCu7iQ/v7N5MI40Srtu+6pR6wi2AKvIjGBD+Ie4vYSm0BVjCrs50HuOpj2QmRbzzbWKDSZH4LQ1ScnsIwVZht4vnFztF2Uoz3qhCjV7TzJB8/KMfUIY8LIbWWx16hPGS7EvSzrPMjUSQKA3mkIzHx9fVqaiWOrGynGTnVv8c+7d8GiaXBR5TsXDzV2TL3VeAto/OgwUYWqyQ8R5HSrhGYu/JymiFc/Vv/mRz6u5CHBTApzDStn2/ERA7dtKzI9pFFNNn5Fq4ybSK1YeV4Fh9LqEVdR+WIHil3EnK2ezIUz6iBlJGiugc6tqkUHmfEfdJubsE0QKx5cDybH9TEhqPrSzkvB5YIooPASEAmrlK80y/1JF+ykZNXHNDxVq8CZyhxAhL7kjZ0Lx93jkdXF+R+/oPFfwP9wc825u4xbQAAAABJRU5ErkJggg==) no-repeat center;background-size:contain}._contentWrap_1glyr_50 ._treeItem_1glyr_95 ._arrow_1glyr_134{display:inline-block;width:.72916667vw;height:.78125vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAAARxJREFUWEftljEKwkAQRWcTyN5A8DjiAVIkWbTwCKKNYGVrK17Awi4h6W1EPIwWYuEBlpWAQohFlvEvSZF0S2DnMW9mdgR15BMd4aAepG6izwgrI0VRDLTWRyJ6BUGwDMPwhi5yKzVZls2NMftP8IfnebM4jk9IGCuQNE3XRLT9BhZCmPJsjNkopTQCiAVSCXyVUk4Rqv4FKZkgqhAghFAFAUGoQoOwVbkAYalyAlJV5fv+JIqie1OLuwYp45+VUuPWQYQQlyRJRm2DWA88J2o4c8UFCGvSokGsVbD2kfrr+3MJ4DVGZISlAp0RtgoICKcrUHNkQUS71lfFPM+HWusDET2llCvERsZS05RWxH+rrkEEarqjB+lrpKlG3v9poyMDTrMCAAAAAElFTkSuQmCC) no-repeat center;background-size:contain}._contentWrap_1glyr_50 ._treeItem_1glyr_95 ._arrow_1glyr_134._arrowSelect_1glyr_141{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAAAVRJREFUWEftlLFKA0EQhuc3qIiNYCGaK5IHsBBES8EnsLeyCdhFrxcfwNzZWKW3tfINbEWwsxCuusLawoDuL1sIclyys7spUuy1NzP78e+3A1mQDwvCIQmkeRMpkZSI63UmR1SO9G+5NfmWsUAyV6TK/xSRxzrH1bT61qvpFsyN4Y3yEHXZagf96gJVW0MrSFZw11CeSS6rT3EUQvA6yGXvGjBqEFu4PeJQyHIuIMAnOrJfD/HmdTV/xTsjPpA8iYXBEk7rS9zPmjPz+fZKbkyMvAjZC4UBMK5zDFz9zj2SFTwwlKcQX6wXK5tyWJ3hKxok2BeFF//hnImE+qLxIgjExxetF0Egtknji48XwSBOXzy9iAKxzdP2i68X0SBtvoR4EQ3S9CXUi7mA2CHdksf8kaO1dbl7P8eHa2kFr/iYwb696oXmO9i3PoE0E0uJpERcr+gXcZmOI9//jvYAAAAASUVORK5CYII=) no-repeat center;background-size:contain}._contentWrap_1glyr_50 ._treeItem_1glyr_95 ._childArrow_1glyr_145{width:.625vw}._contentWrap_1glyr_50 ._treeItem_1glyr_95._childItem_1glyr_104{padding-left:1.5625vw;font-size:max(.78125rem,12Px)}._contentWrap_1glyr_50 ._treeItem_1glyr_95._childItem_1glyr_104 ._title_1glyr_104{color:#131415}._contentWrap_1glyr_50 ._treeItem_1glyr_95._childSelect_1glyr_155{background:#E8F4FF}._contentWrap_1glyr_50 ._treeItem_1glyr_95._childSelect_1glyr_155 ._title_1glyr_104{color:var(--n-color);font-weight:700}._musicStaff_1glyr_162{flex:1;background-color:#fff;border-radius:.83333333vw;z-index:1;overflow:hidden;padding:1.40625vw 0 1.40625vw 1.40625vw}._musicStaff_1glyr_162::-webkit-scrollbar{width:0;display:none}._musicStaff_1glyr_162 ._empty_1glyr_71 .n-spin-content{min-height:100%;display:flex;align-items:center;justify-content:center}._musicStaff_1glyr_162 .n-spin-container{overflow-y:auto;height:100%}._musicStaff_1glyr_162 ._musicTitle_1glyr_184{padding:1.40625vw 1.40625vw .67708333vw;font-size:1.04166667rem;font-weight:600;color:#000;line-height:1.5625vw;text-align:center}._musicStaff_1glyr_162 ._musicContent_1glyr_192{flex:1;padding-right:1.40625vw}._musicStaff_1glyr_162 ._musicContent_1glyr_192>img{width:100%}._musicStaff_1glyr_162 ._musicContent_1glyr_192 section,._musicStaff_1glyr_162 ._musicContent_1glyr_192>div{font-size:inherit!important}._changeSizeSection_1glyr_203{position:absolute;right:.52083333vw;bottom:50%;width:1.82291667vw;transform:translateY(50%);background:#fff;border-radius:.36458333vw;display:flex;align-items:center;flex-direction:column;padding:.67708333vw 0}._changeSizeSection_1glyr_203 ._iconT_1glyr_216{width:.78125vw;height:.78125vw}._changeSizeSection_1glyr_203 ._iconAddT_1glyr_220,._changeSizeSection_1glyr_203 ._iconPlusT_1glyr_221{width:1.19791667vw;height:1.19791667vw;cursor:pointer}._changeSizeSection_1glyr_203 ._iconAddT_1glyr_220{margin-top:.67708333vw;margin-bottom:.41666667vw}._changeSizeSection_1glyr_203 ._iconPlusT_1glyr_221{margin-top:.41666667vw}._changeSizeSection_1glyr_203 .n-slider{height:6.51041667vw;--n-handle-size: .78125vw !important;--n-rail-height: 0 !important}\n",document.head.appendChild(t);const f={container:"_container_1glyr_1",iconBack:"_iconBack_1glyr_6",separator:"_separator_1glyr_36",wrap:"_wrap_1glyr_41",wrapBottom:"_wrapBottom_1glyr_47",contentWrap:"_contentWrap_1glyr_50",content:"_content_1glyr_50",scrollBar:"_scrollBar_1glyr_67",empty:"_empty_1glyr_71",directoryList:"_directoryList_1glyr_76",treeParent:"_treeParent_1glyr_89",treeChild:"_treeChild_1glyr_92",treeItem:"_treeItem_1glyr_95",childItem:"_childItem_1glyr_104",title:"_title_1glyr_104",dir:"_dir_1glyr_76",titleSelect:"_titleSelect_1glyr_126",arrow:"_arrow_1glyr_134",arrowSelect:"_arrowSelect_1glyr_141",childArrow:"_childArrow_1glyr_145",childSelect:"_childSelect_1glyr_155",musicStaff:"_musicStaff_1glyr_162",musicTitle:"_musicTitle_1glyr_184",musicContent:"_musicContent_1glyr_192",changeSizeSection:"_changeSizeSection_1glyr_203",iconT:"_iconT_1glyr_216",iconAddT:"_iconAddT_1glyr_220",iconPlusT:"_iconPlusT_1glyr_221"};e("default",o({name:"cotnent-knowledge",setup(){const e=s(),t=g(!1),o=g(!1),S=g(),b=d({fontSize:18,tableList:[],selectKey:null,details:{}}),I=async()=>{o.value=!0;try{const{data:e}=await a({id:b.selectKey});b.details=e}catch{}o.value=!1};return y((()=>{(async()=>{t.value=!0,o.value=!0;try{const{data:e}=await _({type:"COURSEWARE"});if(b.tableList=e||[],b.tableList.length){const e=b.tableList[0].lessonCoursewareDetailKnowledgeDetailList;if(b.tableList[0].selected=!0,e&&e.length){const t=e[0];b.selectKey=t.id,await I()}}}catch{}o.value=!1,t.value=!1})()})),()=>A("div",{class:f.container},[A(w,{align:"center",wrapItem:!1,size:16},{default:()=>[A("img",{style:{cursor:"pointer"},src:r,class:f.iconBack,onClick:()=>{e.push("/")}},null),A(u,{separator:""},{default:()=>[A(m,{onClick:()=>{}},{default:()=>[h("乐理知识")]})]})]}),A("div",{class:[f.wrap]},[A("div",{class:f.content},[A("div",{class:f.contentWrap},[A("div",{class:f.directoryList},[A("div",{class:[f.scrollBar,!t.value&&b.tableList.length<=0?f.empty:""],style:{minHeight:"100%"}},[A(v,{show:t.value},{default:()=>[A("div",{class:[f.listSection]},[b.tableList.map(((e,t)=>A("div",{class:f.treeParent,key:"parent"+t},[A("div",{class:[f.treeItem,f.parentItem],onClick:()=>{b.tableList.forEach((t=>{e.id!==t.id&&(t.selected=!1)})),e.selected=!e.selected}},[e.lessonCoursewareDetailKnowledgeDetailList&&e.lessonCoursewareDetailKnowledgeDetailList.length>0&&A("span",{class:[f.arrow,e.selected?f.arrowSelect:""]},null),A("p",{class:[f.title,e.selected?f.titleSelect:""]},[A("span",{class:[f.dir,e.selected?f.dirSelect:""]},null),e.name])]),e.selected&&e.lessonCoursewareDetailKnowledgeDetailList&&e.lessonCoursewareDetailKnowledgeDetailList.map(((e,t)=>A("div",{key:"child"+t,class:[f.treeItem,f.childItem,f.animation,b.selectKey===e.id?f.childSelect:""],onClick:()=>{b.selectKey!==e.id&&(b.selectKey=e.id,I(),S.value.$el.scrollTo(0,0))}},[A("span",{class:f.childArrow},null),A("p",{class:f.title},[e.name])])))])))])]}),!t.value&&b.tableList.length<=0&&A(c,{style:{height:"100%"}},null)])]),A("div",{class:f.musicStaff},[A(v,{show:o.value,ref:S,class:o.value||b.details?.desc?"":f.empty},{default:()=>[b.details?.desc?A("div",{class:f.musicContent,innerHTML:b.details?.desc,style:{fontSize:b.fontSize+"px"}},null):"",!o.value&&!b.details?.desc&&A(c,null,null)]})]),A("div",{class:f.changeSizeSection},[A("img",{src:l,class:f.iconT},null),A("img",{src:i,class:f.iconAddT,onClick:()=>{b.fontSize>=32||(b.fontSize+=1)}},null),A(p,{value:b.fontSize,"onUpdate:value":e=>b.fontSize=e,vertical:!0,min:12,max:32},null),A("img",{src:n,class:f.iconPlusT,onClick:()=>{b.fontSize<=12||(b.fontSize-=1)}},null)])])])])])}}))}}}));
|