!function(){function n(n,t,e,o,i,a,r){try{var d=n[a](r),c=d.value}catch(s){return void e(s)}d.done?t(c):Promise.resolve(c).then(o,i)}function t(t){return function(){var e=this,o=arguments;return new Promise((function(i,a){var r=t.apply(e,o);function d(t){n(r,i,a,d,c,"next",t)}function c(t){n(r,i,a,d,c,"throw",t)}d(void 0)}))}}System.register(["./index-legacy-fdce4919.js","./index-legacy-179fe8dd.js","./index.module-legacy-24e6e716.js","./index-legacy-03a60eb4.js"],(function(n,e){"use strict";var o,i,a,r,d,c,s,l,u,f,g,p,y,v,w;return{setters:[n=>{o=n.d,i=n.q,a=n.U,r=n.x,d=n.y,c=n.a,s=n.S,l=n.A,u=n.a0,f=n.D,g=n.E},n=>{p=n.M},n=>{y=n.s},n=>{v=n.u,w=n.a}],execute:function(){const I=""+new URL("icon-exam-question-ebdee0f1.png",e.meta.url).href;n("default",o({name:"unit-detail",setup(){const n=i(),e=a(),o=r({detailId:e.query.detailId,loading:!1,background:"transparent",color:"#fff",dataInfo:{}}),h=function(){var n=t((function*(){o.loading=!0;try{const{data:n}=yield f.get("/edu-app/lessonCoursewareKnowledgeDetail/detail/"+o.detailId);o.dataInfo=n}catch(n){}o.loading=!1}));return function(){return n.apply(this,arguments)}}(),k=function(){var e=t((function*(){try{const{data:t}=yield f.get("/edu-app/studentUnitExamination/checkKnowledgePointIds",{params:{knowledgePointIds:o.dataInfo.knowledgePointIds}});if(!t)return void setTimeout((()=>{g("暂无题目")}),100);n.push({path:"/practice-mode",query:{knowledgePointIds:o.dataInfo.knowledgePointIds}})}catch(t){}}));return function(){return e.apply(this,arguments)}}();return d((()=>{v(document,"scroll",(()=>{const{y:n}=w();n.value>52?(o.background="#fff",o.color="#323333"):(o.background="transparent",o.color="#fff")})),h()})),()=>c("div",{class:y.knowledgeLibrary},[c(p,{position:"top"},{default:()=>[c(s,{border:!1,background:o.background,color:o.color},{right:()=>c("div",{class:y.wroingBtn,onClick:()=>n.push("/wroing-book")},[c("i",{class:y.iconWroing},null),l("错题本")])})]}),c("div",{class:[y.containerSection,y.woringSection]},[o.dataInfo.desc&&c("div",{class:y.woringContent,innerHTML:o.dataInfo.desc},null),!o.dataInfo.desc&&!o.loading&&c("div",{class:y.woringContent},[c(u,{description:"暂无内容",style:{paddingTop:"40px"}},null)])]),c("img",{src:I,class:y.iconExamQuestion,onClick:k},null)])}}))}}}))}();
