index.5d0f1c41.js 22 KB

1
  1. import{c as S,t as x,m as B}from"./musiceIcon.b11b47bc.js";import{g as W,i as R,a as H,r as I}from"./index.175e4beb.js";import{s as U}from"./start.1edc8c81.js";import{t as M}from"./index.baf70a38.js";import{m as F}from"./music.f2b8674a.js";import{d as P,u as N,r as O,L as K,c as s,a as v,$ as V,a0 as z,O as J,o as Q,F as Y,Y as G,Z as X,a1 as Z}from"./vendor.08af35ce.js";const $="_wall_4450e_1",k="_width1200_4450e_4",q="_musicWrap_4450e_8",ee="_left_4450e_12",te="_title_4450e_17",ne="_titleLeft_4450e_26",ie="_titleRight_4450e_37",oe="_musicContent_4450e_48",re="_showCode_4450e_55",le="_showCodeWrap_4450e_58",se="_close_4450e_63",ae="_code_4450e_72",ce="_conent_4450e_94",de="_subConent_4450e_105",ue="_audios_4450e_116",fe="_right_4450e_121",pe="_musicInfo_4450e_121",he="_collect_4450e_135",me="_start_4450e_141",be="_subTitle_4450e_153",ye="_btooom_4450e_161",ge="_teacherInfo_4450e_165",Ee="_teacherHeadWrap_4450e_169",ve="_teacherHeadLeft_4450e_175",we="_teacherHeader_4450e_180",Ce="_teacherHeadName_4450e_187",je="_teacherIcon_4450e_201",Ae="_fens_4450e_206",_e="_teacherHeadRight_4450e_216",Se="_isStart_4450e_227",Ie="_courseWrap_4450e_232",Me="_courseTitle_4450e_236",Pe="_titleWrap_4450e_251",Oe="_teacherDetail_4450e_270",Le="_teacherVideoList_4450e_277",De="_videoItem_4450e_282",Te="_Styles_4450e_289",xe="_videoItemVideo_4450e_293",Be="_otherMusic_4450e_300",We="_otherMusicList_4450e_311";var p={wall:$,width1200:k,musicWrap:q,left:ee,title:te,titleLeft:ne,titleRight:ie,musicContent:oe,showCode:re,showCodeWrap:le,close:se,code:ae,conent:ce,subConent:de,audios:ue,right:fe,musicInfo:pe,collect:he,start:me,subTitle:be,btooom:ye,teacherInfo:ge,teacherHeadWrap:Ee,teacherHeadLeft:ve,teacherHeader:we,teacherHeadName:Ce,teacherIcon:je,fens:Ae,teacherHeadRight:_e,isStart:Se,courseWrap:Ie,courseTitle:Me,titleWrap:Pe,teacherDetail:Oe,teacherVideoList:Le,videoItem:De,Styles:Te,videoItemVideo:xe,otherMusic:Be,otherMusicList:We},Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABANJREFUaEPtWUtsG1UUPXc8jhMChapqEUR8FkgIiShNFcaJ4xGKOq4UJBC/egdLNlSlpUiUBVXVTbtoBbRqV0hIIDYOBQQSAewSKZM4sWOVRKnU7iiLJtAPSClR6jgzF41/cZw69uu8trI0b2WP7zvnnnfvffPeNaHJBzW5//AE3O8I3lEEnjt/9ik1a30CYBeAdpciFgH8uhLw7b+4440/RbGEBXQlYx024XcAW0XJ6thfUxjdM6HoFRFcYQGdE0PHAP5QhKRhW8Kx2d7oRw3bA+JF3DkZ+w6MV4skC0x0RISw2paYDwHYlH9O+H62N/qaCJ5wBJ6fiP1AwMt5Esb8bCj6uAhhtW1nMjYHwmMFOPx4oS/6igieJ8CLgJdCt6mYxHiqj20+QlC2M7il0iQHbrPA/vymQWQHmP4TKbpq2yzxg8ysOM99oJwftFRpQ6Blhj1NCh0y+oMT63ax6gdxMxMGrHMA1jjuxklJc5cB386I3jO2VmAVetycNAEKSyKVDMNjEb1XryMgfQvgQMGI5wCaleyFIBx3AlR811A2omutdQSkuMLgq4gefFuQUap53Ex9CeCtEmhED655d617kcVNT4BwBH6ZmWn3LWQ/B9AN4KSha2dKIE0RgcR4+gDbfLzotMXkf3JXeMec870pBJwbm9pns+1ckJyxogboiQFN+6tpBCSTybZFSz0NwnYwTkV07YumSqGNiqYpUuieCxgZGVFzfv82v6rmzzBuxtIS8EjAvhEKhdacge5KCsVi7NvcMXUYNu8tXwPdeL86N0dE38LP7xrB4I1KSKkplBhPH2ebD8jx+bYoKSOshZxTrvQIxOOZh9FmXQWXTqm0CPBNt2IICDCwuYRDoEFD136WLyA51Q3LPl9B9Jmha/vcCoiPpV8H89kyDvH+SLj3U+kCEuPpF9jm9N0WQKAPDF074QkorkD5OO1FoEaxVNeAl0IJM7XAwEPFBcsBuFX4TArAq610wjIYWbe7EAAVQFsFjsPn8JaGc4UsdEGAm4YeLPRRi2PdjSxhpoYYeFOCY9IhCPjG0IO7NxQwPDLxtKoqTuuiQ7oH7gCvrKzY4cGBvssbCnB+/Gl0dGuL0rqH4ZzPC40tAm1icKgcOsJlZlxy51O+Jf0oKH+VLGYqXQLzqpNEywRM+1qVUwM9Pder+RruTt+vbbTeAjUs4Dcz1WUB0yVABuYV0B/1COr9zuAtAJ4tB0Ch94x+7WS9eTWLuNbETCbzwL9L1lUJf+pt6Jui0Is7+7VR6QIcwLiZPgjw0UbBRe0INGzo2ksi8xpOoRJoIpl+BzbeZ+Zn8g1l98PpBP5N4K//8dkfR2vczGrRCAtw769cBE+A3PUUR2v6CPwPdf1BTw2NbAYAAAAASUVORK5CYII=",He="./assets/banner.8da3ed92.png",Ue="./assets/code.b0b30240.png";const Fe="_itemWrap_sgbwf_1",Ne="_left_sgbwf_12",Ke="_imgWrap_sgbwf_17",Ve="_textWrap_sgbwf_22",ze="_authorInfo_sgbwf_32",Je="_icon_sgbwf_37",Qe="_authorName_sgbwf_43";var A={itemWrap:Fe,left:Ne,imgWrap:Ke,textWrap:Ve,authorInfo:ze,icon:Je,authorName:Qe},L=P({name:"musicItem",emits:["musicDetail"],props:{item:{type:Object,default:()=>({})},onClick:{type:Function,default:w=>{}}},setup(w,_){N();const y=O({item:w.item});K(()=>w.item,i=>{y.item=i});const t=()=>{_.emit("musicDetail",y.item.id)};return()=>s("div",{onClick:()=>{w.onClick(y.item)}},[s("div",{class:A.itemWrap,onClick:()=>t()},[s("div",{class:A.left},[s("div",{class:A.imgWrap},[s("img",{src:F,alt:""},null)]),s("div",{class:A.textWrap},[s("p",null,[y.item.musicSheetName]),s("p",null,[s("span",null,[v("\u4F5C\u66F2: "),y.item.composer])])])])])])}}),D={exports:{}};(function(w,_){(function(t,i){w.exports=i()})(window,function(){return function(y){var t={};function i(l){if(t[l])return t[l].exports;var d=t[l]={i:l,l:!1,exports:{}};return y[l].call(d.exports,d,d.exports,i),d.l=!0,d.exports}return i.m=y,i.c=t,i.d=function(l,d,c){i.o(l,d)||Object.defineProperty(l,d,{enumerable:!0,get:c})},i.r=function(l){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},i.t=function(l,d){if(d&1&&(l=i(l)),d&8||d&4&&typeof l=="object"&&l&&l.__esModule)return l;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:l}),d&2&&typeof l!="string")for(var f in l)i.d(c,f,function(o){return l[o]}.bind(null,f));return c},i.n=function(l){var d=l&&l.__esModule?function(){return l.default}:function(){return l};return i.d(d,"a",d),d},i.o=function(l,d){return Object.prototype.hasOwnProperty.call(l,d)},i.p="",i(i.s=0)}({"./src/index.js":function(y,t,i){i.r(t),i("./src/sass/index.scss");var l=i("./src/js/init.js"),d=l.default.init;typeof window!="undefined"&&(window.printJS=d),t.default=d},"./src/js/browser.js":function(y,t,i){i.r(t);var l={isFirefox:function(){return typeof InstallTrigger!="undefined"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!l.isIE()&&!!window.StyleMedia},isChrome:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!c.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};t.default=l},"./src/js/functions.js":function(y,t,i){i.r(t),i.d(t,"addWrapper",function(){return f}),i.d(t,"capitalizePrint",function(){return o}),i.d(t,"collectStyles",function(){return a}),i.d(t,"addHeader",function(){return n}),i.d(t,"cleanUp",function(){return m}),i.d(t,"isRawHTML",function(){return b});var l=i("./src/js/modal.js"),d=i("./src/js/browser.js");function c(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(h){return typeof h}:c=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},c(e)}function f(e,u){var h="font-family:"+u.font+" !important; font-size: "+u.font_size+" !important; width:100%;";return'<div style="'+h+'">'+e+"</div>"}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function a(e,u){for(var h=document.defaultView||window,E="",g=h.getComputedStyle(e,""),C=0;C<g.length;C++)(u.targetStyles.indexOf("*")!==-1||u.targetStyle.indexOf(g[C])!==-1||r(u.targetStyles,g[C]))&&g.getPropertyValue(g[C])&&(E+=g[C]+":"+g.getPropertyValue(g[C])+";");return E+="max-width: "+u.maxWidth+"px !important; font-size: "+u.font_size+" !important;",E}function r(e,u){for(var h=0;h<e.length;h++)if(c(u)==="object"&&u.indexOf(e[h])!==-1)return!0;return!1}function n(e,u){var h=document.createElement("div");if(b(u.header))h.innerHTML=u.header;else{var E=document.createElement("h1"),g=document.createTextNode(u.header);E.appendChild(g),E.setAttribute("style",u.headerStyle),h.appendChild(E)}e.insertBefore(h,e.childNodes[0])}function m(e){e.showModal&&l.default.close(),e.onLoadingEnd&&e.onLoadingEnd(),(e.showModal||e.onLoadingStart)&&window.URL.revokeObjectURL(e.printable);var u="mouseover";(d.default.isChrome()||d.default.isFirefox())&&(u="focus");var h=function E(){window.removeEventListener(u,E),e.onPrintDialogClose();var g=document.getElementById(e.frameId);g&&g.remove()};window.addEventListener(u,h)}function b(e){var u=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return u.test(e)}},"./src/js/html.js":function(y,t,i){i.r(t);var l=i("./src/js/functions.js"),d=i("./src/js/print.js");function c(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(n){return typeof n}:c=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},c(a)}t.default={print:function(r,n){var m=o(r.printable)?r.printable:document.getElementById(r.printable);if(!m){window.console.error("Invalid HTML element id: "+r.printable);return}r.printableElement=f(m,r),r.header&&Object(l.addHeader)(r.printableElement,r),d.default.send(r,n)}};function f(a,r){for(var n=a.cloneNode(),m=Array.prototype.slice.call(a.childNodes),b=0;b<m.length;b++)if(r.ignoreElements.indexOf(m[b].id)===-1){var e=f(m[b],r);n.appendChild(e)}switch(r.scanStyles&&a.nodeType===1&&n.setAttribute("style",Object(l.collectStyles)(a,r)),a.tagName){case"SELECT":n.value=a.value;break;case"CANVAS":n.getContext("2d").drawImage(a,0,0);break}return n}function o(a){return c(a)==="object"&&a&&(a instanceof HTMLElement||a.nodeType===1)}},"./src/js/image.js":function(y,t,i){i.r(t);var l=i("./src/js/functions.js"),d=i("./src/js/print.js"),c=i("./src/js/browser.js");t.default={print:function(o,a){o.printable.constructor!==Array&&(o.printable=[o.printable]),o.printableElement=document.createElement("div"),o.printable.forEach(function(r){var n=document.createElement("img");if(n.setAttribute("style",o.imageStyle),n.src=r,c.default.isFirefox()){var m=n.src;n.src=m}var b=document.createElement("div");b.appendChild(n),o.printableElement.appendChild(b)}),o.header&&Object(l.addHeader)(o.printableElement,o),d.default.send(o,a)}}},"./src/js/init.js":function(y,t,i){i.r(t);var l=i("./src/js/browser.js"),d=i("./src/js/modal.js"),c=i("./src/js/pdf.js"),f=i("./src/js/html.js"),o=i("./src/js/raw-html.js"),a=i("./src/js/image.js"),r=i("./src/js/json.js");function n(b){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(u){return typeof u}:n=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},n(b)}var m=["pdf","html","image","json","raw-html"];t.default={init:function(){var e={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(T){throw T},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},u=arguments[0];if(u===void 0)throw new Error("printJS expects at least 1 attribute.");switch(n(u)){case"string":e.printable=encodeURI(u),e.fallbackPrintable=e.printable,e.type=arguments[1]||e.type;break;case"object":e.printable=u.printable,e.fallbackPrintable=typeof u.fallbackPrintable!="undefined"?u.fallbackPrintable:e.printable,e.fallbackPrintable=e.base64?"data:application/pdf;base64,".concat(e.fallbackPrintable):e.fallbackPrintable;for(var h in e)h==="printable"||h==="fallbackPrintable"||(e[h]=typeof u[h]!="undefined"?u[h]:e[h]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+n(u))}if(!e.printable)throw new Error("Missing printable information.");if(!e.type||typeof e.type!="string"||m.indexOf(e.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");e.showModal&&d.default.show(e),e.onLoadingStart&&e.onLoadingStart();var E=document.getElementById(e.frameId);E&&E.parentNode.removeChild(E);var g=document.createElement("iframe");switch(l.default.isFirefox()?g.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):g.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),g.setAttribute("id",e.frameId),e.type!=="pdf"&&(g.srcdoc="<html><head><title>"+e.documentTitle+"</title>",e.css&&(Array.isArray(e.css)||(e.css=[e.css]),e.css.forEach(function(j){g.srcdoc+='<link rel="stylesheet" href="'+j+'">'})),g.srcdoc+="</head><body></body></html>"),e.type){case"pdf":if(l.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var C=window.open(e.fallbackPrintable,"_blank");C.focus(),e.onIncompatibleBrowser()}catch(j){e.onError(j)}finally{e.showModal&&d.default.close(),e.onLoadingEnd&&e.onLoadingEnd()}else c.default.print(e,g);break;case"image":a.default.print(e,g);break;case"html":f.default.print(e,g);break;case"raw-html":o.default.print(e,g);break;case"json":r.default.print(e,g);break}}}},"./src/js/json.js":function(y,t,i){i.r(t);var l=i("./src/js/functions.js"),d=i("./src/js/print.js");function c(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(r){return typeof r}:c=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},c(o)}t.default={print:function(a,r){if(c(a.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof a.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!a.properties||!Array.isArray(a.properties))throw new Error("Invalid properties array for your JSON data.");a.properties=a.properties.map(function(n){return{field:c(n)==="object"?n.field:n,displayName:c(n)==="object"?n.displayName:n,columnSize:c(n)==="object"&&n.columnSize?n.columnSize+";":100/a.properties.length+"%;"}}),a.printableElement=document.createElement("div"),a.header&&Object(l.addHeader)(a.printableElement,a),a.printableElement.innerHTML+=f(a),d.default.send(a,r)}};function f(o){var a=o.printable,r=o.properties,n='<table style="border-collapse: collapse; width: 100%;">';o.repeatTableHeader&&(n+="<thead>"),n+="<tr>";for(var m=0;m<r.length;m++)n+='<th style="width:'+r[m].columnSize+";"+o.gridHeaderStyle+'">'+Object(l.capitalizePrint)(r[m].displayName)+"</th>";n+="</tr>",o.repeatTableHeader&&(n+="</thead>"),n+="<tbody>";for(var b=0;b<a.length;b++){n+="<tr>";for(var e=0;e<r.length;e++){var u=a[b],h=r[e].field.split(".");if(h.length>1)for(var E=0;E<h.length;E++)u=u[h[E]];else u=u[r[e].field];n+='<td style="width:'+r[e].columnSize+o.gridStyle+'">'+u+"</td>"}n+="</tr>"}return n+="</tbody></table>",n}},"./src/js/modal.js":function(y,t,i){i.r(t);var l={show:function(c){var f="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",o=document.createElement("div");o.setAttribute("style",f),o.setAttribute("id","printJS-Modal");var a=document.createElement("div");a.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),a.appendChild(r);var n=document.createElement("span");n.setAttribute("class","printSpinner"),a.appendChild(n);var m=document.createTextNode(c.modalMessage);a.appendChild(m),o.appendChild(a),document.getElementsByTagName("body")[0].appendChild(o),document.getElementById("printClose").addEventListener("click",function(){l.close()})},close:function(){var c=document.getElementById("printJS-Modal");c&&c.parentNode.removeChild(c)}};t.default=l},"./src/js/pdf.js":function(y,t,i){i.r(t);var l=i("./src/js/print.js"),d=i("./src/js/functions.js");t.default={print:function(o,a){if(o.base64){var r=Uint8Array.from(atob(o.printable),function(m){return m.charCodeAt(0)});c(o,a,r);return}o.printable=/^(blob|http|\/\/)/i.test(o.printable)?o.printable:window.location.origin+(o.printable.charAt(0)!=="/"?"/"+o.printable:o.printable);var n=new window.XMLHttpRequest;n.responseType="arraybuffer",n.addEventListener("error",function(){Object(d.cleanUp)(o),o.onError(n.statusText,n)}),n.addEventListener("load",function(){if([200,201].indexOf(n.status)===-1){Object(d.cleanUp)(o),o.onError(n.statusText,n);return}c(o,a,n.response)}),n.open("GET",o.printable,!0),n.send()}};function c(f,o,a){var r=new window.Blob([a],{type:"application/pdf"});r=window.URL.createObjectURL(r),o.setAttribute("src",r),l.default.send(f,o)}},"./src/js/print.js":function(y,t,i){i.r(t);var l=i("./src/js/browser.js"),d=i("./src/js/functions.js"),c={send:function(n,m){document.getElementsByTagName("body")[0].appendChild(m);var b=document.getElementById(n.frameId);b.onload=function(){if(n.type==="pdf"){l.default.isFirefox()?setTimeout(function(){return f(b,n)},1e3):f(b,n);return}var e=b.contentWindow||b.contentDocument;if(e.document&&(e=e.document),e.body.appendChild(n.printableElement),n.type!=="pdf"&&n.style){var u=document.createElement("style");u.innerHTML=n.style,e.head.appendChild(u)}var h=e.getElementsByTagName("img");h.length>0?o(Array.from(h)).then(function(){return f(b,n)}):f(b,n)}}};function f(r,n){try{if(r.focus(),l.default.isEdge()||l.default.isIE())try{r.contentWindow.document.execCommand("print",!1,null)}catch{r.contentWindow.print()}else r.contentWindow.print()}catch(m){n.onError(m)}finally{l.default.isFirefox()&&(r.style.visibility="hidden",r.style.left="-1px"),Object(d.cleanUp)(n)}}function o(r){var n=r.map(function(m){if(m.src&&m.src!==window.location.href)return a(m)});return Promise.all(n)}function a(r){return new Promise(function(n){var m=function b(){!r||typeof r.naturalWidth=="undefined"||r.naturalWidth===0||!r.complete?setTimeout(b,500):n()};m()})}t.default=c},"./src/js/raw-html.js":function(y,t,i){i.r(t);var l=i("./src/js/print.js");t.default={print:function(c,f){c.printableElement=document.createElement("div"),c.printableElement.setAttribute("style","width:100%"),c.printableElement.innerHTML=c.printable,l.default.send(c,f)}}},"./src/sass/index.scss":function(y,t,i){},0:function(y,t,i){y.exports=i("./src/index.js")}}).default})})(D);var Ye=V(D.exports);function Ge(w){return typeof w=="function"||Object.prototype.toString.call(w)==="[object Object]"&&!Z(w)}var tt=P({name:"muiscDetial",props:{title:{type:String,default:""}},components:{colVideo:S,tagItem:M,musicItem:L},setup(w,_){const y=z(),t=O({title:w.title,id:y.query.id,subjectId:"",subjectList:[],tagList:[],teacherDetail:{},musicDetail:{},musicList:[],mp3Type:"",activeRow:{},showCode:!1,userType:""});J();const i=async()=>{try{const f=await I.get(`/api-website/open/music/sheet/detail/${t.id}`,{});t.musicDetail=f.data,t.musicList=f.data.teacher.musicSheetList,t.subjectList=f.data.background,t.mp3Type=f.data.audioType,t.activeRow=f.data.background[0],t.subjectId=f.data.background[0].id,t.teacherDetail=f.data.teacher}catch(f){console.log(f)}},l=async()=>{try{const f=await I.get("/api-website/student/starOrUnStar",{params:{userId:t.teacherDetail.userId,starStatus:t.teacherDetail.star?0:1}});i()}catch(f){console.log(f)}},d=f=>{t.id=f,i()};Q(()=>{t.userType=W(),t.showCode=t.userType=="STUDENT",i()});const c=()=>{Ye({printable:"containerPrint",type:"html",targetStyle:["* "],targetStyles:["*"],maxWidth:"",style:"@page{size:auto; margin: 0;}@media print { @page {size: landscape } }"})};return()=>{let f;return s(Y,null,[s("div",{class:p.wall},null),s("div",{class:[p.width1200,p.musicWrap]},[s("div",{class:p.left},[s("div",{class:p.title},[s("div",{class:p.titleLeft},[s("p",null,[v("\u58F0\u90E8\uFF1A")]),s(G,{class:"w-full subjectChiose",modelValue:t.subjectId,"onUpdate:modelValue":o=>t.subjectId=o,placeholder:"\u8BF7\u9009\u62E9\u58F0\u90E8"},Ge(f=t.subjectList.map(o=>s(X,{key:o.id,value:o.id,label:o.track},null)))?f:{default:()=>[f]})]),s("div",{class:p.titleRight,onClick:()=>c()},[s("img",{src:Re,alt:""},null),s("p",null,[v("\u6253\u5370\u4E50\u8C31")])])]),s("div",{class:p.musicContent,id:"containerPrint",ref:"print"},[v("123")]),t.showCode?s("div",{class:p.showCode},[s("div",{class:p.showCodeWrap},[s("img",{class:p.close,src:R,alt:"",onClick:()=>{t.showCode=!1}},null),s("img",{class:p.code,src:Ue,alt:""},null),s("h2",{class:p.title},[v("\u9177\u4E50\u79C0")]),s("p",{class:p.conent},[v("\u626B\u7801\u4E0B\u8F7D\u9177\u4E50\u79C0APP")]),s("p",{class:p.subConent},[v("\u4F7F\u7528\u5C0F\u9177Ai\u5373\u53EF\u667A\u80FD\u7EC3\u4E60\u672C\u9996\u66F2\u76EE\u54E6\uFF01")]),s("img",{src:He,alt:""},null)])]):null,t.mp3Type=="MP3"?s(S,{src:t.activeRow.audioFileUrl,styleValue:{height:"68px",bacground:"#333"},type:"audto",settings:["captions","quality","speed","loop"],class:p.audios},null):null]),s("div",{class:p.right},[s("div",{class:p.musicInfo},[s("h2",null,[v("\u66F2\u76EE\uFF1A"),t.musicDetail.musicSheetName]),s("div",{class:p.collect},[s("img",{src:U,class:p.start,alt:""},null),s("p",null,[t.musicDetail.favoriteNum,v("\u4EBA\u6536\u85CF")])]),s("div",{class:p.tagList},[t.tagList.map(o=>s(M,{title:o.key},{default:()=>[o.key]}))]),s("p",{class:p.subTitle},[v("\u4F5C\u66F2\u4EBA\uFF1A"),s("span",null,[t.musicDetail.composer])]),s("p",{class:p.subTitle},[v("\u58F0\u90E8\uFF1A"),s("span",null,[t.musicDetail.subjectNames])])]),s("div",{class:p.btooom},[t.teacherDetail.userId?s("div",{class:p.teacherInfo},[s("div",{class:p.teacherHeadWrap},[s("div",{class:p.teacherHeadLeft},[s("img",{src:t.teacherDetail.avatar?t.teacherDetail.avatar:H,alt:"",class:p.teacherHeader},null),s("div",{class:p.teacherHeadInfo},[s("div",{class:p.teacherHeadName},[s("span",null,[t.teacherDetail.userName]),t.teacherDetail.entryFlag?s("img",{src:x,class:p.teacherIcon,alt:""},null):"",t.teacherDetail.musicianFlag?s("img",{src:B,class:p.teacherIcon,alt:""},null):""]),s("p",{class:p.fens},[v("\u7C89\u4E1D "),s("span",null,[t.teacherDetail.fansNum])])])]),t.userType=="STUDENT"?s("div",{class:[p.teacherHeadRight,t.teacherDetail.star?p.isStart:""],onClick:()=>l()},[t.teacherDetail.star?"\u5DF2\u5173\u6CE8":"\u5173\u6CE8"]):null])]):null,s("div",{class:p.otherMusic},[s("h2",null,[v("Ta\u7684\u66F2\u8C31")]),s("div",{class:p.otherMusicList},[t.musicList.map(o=>s(L,{item:o,onMusicDetail:a=>d(a)},null))])])])])])])}}});export{tt as default};