index-legacy-ef942208.js 20 KB

1
  1. !function(){function e(e,t,i,l,r,a,o){try{var n=e[a](o),A=n.value}catch(d){return void i(d)}n.done?t(A):Promise.resolve(A).then(l,r)}function t(t){return function(){var i=this,l=arguments;return new Promise((function(r,a){var o=t.apply(i,l);function n(t){e(o,r,a,n,A,"next",t)}function A(t){e(o,r,a,n,A,"throw",t)}n(undefined)}))}}function i(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,l)}return i}function l(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(i!==undefined){var l=i.call(e,t||"default");if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}System.register(["./index-legacy-384568ae.js","./index-legacy-1fdfed46.js","./index-legacy-32e0248a.js","./index-legacy-a49c4924.js","./index-legacy-3cbdf14c.js","./index-legacy-4f84df4f.js"],(function(e,r){"use strict";var a,o,n,A,d,s,c,u,p,g,_,m,h,f,b,w,C,M,v,y,B,E,k;return{setters:[e=>{a=e.d,o=e.a,n=e.F,A=e.f,d=e.r,s=e.o,c=e.e,u=e.s,p=e.k,g=e.O,_=e.m,m=e.n,h=e.b,f=e.B,b=e._,w=e.p,C=e.P,M=e.i},e=>{v=e.O},e=>{y=e.O},e=>{B=e.a,E=e.C},e=>{k=e.C},null],execute:function(){var r=document.createElement("style");r.textContent='._courseList_uldp4_1{min-height:100vh;background-color:#fff;background-image:linear-gradient(180deg,#7DEFE6 0%,rgba(251,233,213,0) 5.28rem);padding:.26667rem 0;box-sizing:border-box}._periodContent_uldp4_8{display:flex;padding:.53333rem}._periodContent_uldp4_8 ._cover_uldp4_12{position:relative;width:2.85333rem;min-height:3.46667rem;margin-right:.8rem;border-radius:.05333rem;box-shadow:0 .05333rem .16rem rgba(221,168,133,.67);overflow:hidden;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAMAAAAPdrEwAAABOFBMVEUAAAC0tLTT09PU1NTt7e3////T09P////T09P////T09P////X19f////U1NTU1NTT09PT09PU1NTU1NTV1dXT09PU1NTU1NTV1dXZ2dn+/v7R0dH////////KysrIyMjT09O0tLTU1NS0tLTU1NS0tLTT09PT09PT09PU1NTU1NTU1NTT09O2trbU1NTV1dXV1dXW1tbV1dXW1tbV1dXJycm4uLj///+0tLT///+0tLT////p6em0tLT4+Pj///+2trb///+1tbX///+0tLT////T09P5+fn+/v63t7e8vLz8/Pzl5eXW1tbBwcH39/fw8PDs7Ozb29v7+/vg4ODOzs65ubny8vLJycnp6enGxsbFxcW+vr62trb09PTY2NjLy8vCwsLn5+fi4uLS0tLu7u7Q0NDd3d02Mu/gAAAARHRSTlMAnPwvBfv07ODdw5AbGezmyrirl5B4aT0kDZyclTwsIPj48+Ta1tPS0LGhiIaEcGJgV05FNhMS7++8vKyslZRzc1ZWJRSpe/cAAALfSURBVFjD7djXcuIwGAVg1pTQAiT0Ekiy6b1v7whsA6b3EGAJu+//BstaiWNiCYGlXGTG55KBDzH6j2xjMmJET5ZdDivQFavDtTxLXlsCFFlam7HmiUxl49ftApRxYWkHLe3A0lZa2oqlAXUMGk/fHG9vpCnSk/pZNJ18m6aOWELRN1CmtbMI+jjNJH0Evc2GlhD0Bhu6h6DTjPIq6Pqonb8XXoCWmjKSHTCnpccp5ges6bHCZAW2dBc8JcOWLqjoPFu6oqLLr2bVQxX9h/GElBWmKDCmxSKAyXWYt1GE677rLtLGejsLcuOCQMI7lVFlsMjxJJUeW3bP+OSTskBJqcuSFppAFT4vsqMrYDrVAitazMHV8kBJs8WGzsPmNoRCFSj5fcuA7vJKvcQ8UJKrCNT0WH0mdEpASbFOSdfhyClvzagGsSzR0D14LHTSSho1/mkQaw39dB9u2vThCU8KQj1JtFiVt+z5ONSLmnoSaeszuia/+lfzAaGS09STQDum6SH/cOXX5rY9Xz0Rj6Sqy0YmjUzrbp56ah6kIT2AH8Pe4M5TT83jP6ThsnALmq+eiD8tlIt/G8POWU8FVNMNuXc8rnH4epJpOHg1jIivJ5mWcvLg4ZqMryeZhnOLm1hyPfF0C95R9PAcvp4jcSYNL7UDHEWuJ56GO46FyPXE0+/+/7Lhgs+ffU093yPoDwCAEcki1/Mjgv4BQFUkSeR6/jQh8gn0SQy5np9NqFi+CgSDWE9rwmJCJ/X9yxt9iSdisVji2y+TESNGXjiW6LU7FYkkzQ9JRiIp93XUoodyX12cBg/9qyvOHbvXxmUw4Wxe+45zZdV/GDy9uHJbZqPhk7jTjrTI4ezO+EkY8wUBW4Y6tgCSPvNxtDLnOzOhEw2HAvt7Hj2oZ28/EApHyRtpvjwPBY/8B5Ot9O1u2b2eTds6x8nr4tZtmx6vfWvXN9nCA/9RMHR+aZ5sohEji+YfnN0/51L6d+cAAAAASUVORK5CYII=);background-repeat:no-repeat;background-position:center;background-size:50%;flex-shrink:0}._periodContent_uldp4_8 ._cover_uldp4_12>img{display:block;width:100%;min-height:3.73333rem;opacity:0;transition:opacity .3s;-o-object-fit:cover;object-fit:cover}._periodContent_uldp4_8 ._cover_uldp4_12 .van-image__loading{position:relative;min-height:3.46667rem;animation:van-skeleton-blink var(--van-skeleton-duration) ease-in-out infinite}._periodContent_uldp4_8 ._cover_uldp4_12:before{content:"";position:absolute;left:.13333rem;width:.13333rem;height:100%;background:linear-gradient(270deg,rgba(0,0,0,.25) 0%,rgba(0,0,0,.03) 100%);box-shadow:0 .05333rem .16rem rgba(0,0,0,.2);z-index:1}._periodContent_uldp4_8 ._contentTitle_uldp4_49{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;padding-bottom:.21333rem}._periodContent_uldp4_8 ._contentLabel_uldp4_56{font-size:.32rem;font-weight:400;color:#606060;line-height:.53333rem}._periodTitle_uldp4_62{display:flex;align-items:center;justify-content:space-between;padding:.53333rem .53333rem 0}._periodTitle_uldp4_62 ._pIcon_uldp4_68{width:.53333rem;height:.53333rem;margin-right:.16rem}._periodTitle_uldp4_62 ._pTitle_uldp4_73{font-size:.42667rem;font-weight:600;color:#2d3131;margin-right:.21333rem}._periodTitle_uldp4_62 ._pNum_uldp4_79{font-size:.32rem;font-weight:400;color:rgba(0,0,0,.5)}._periodTitle_uldp4_62 ._left_uldp4_84{display:flex;align-items:center}._periodTitle_uldp4_62 ._iconQuestion_uldp4_88{width:.48rem;height:.48rem;cursor:pointer}._periodItem_uldp4_93{width:.96rem;height:1.06667rem;margin-right:.21333rem;flex-shrink:0}._periodItem_uldp4_93 img{width:100%;height:100%;display:block;-o-object-fit:cover;object-fit:cover}._courseDialog_uldp4_105{width:8.4rem}._courseDialog_uldp4_105 ._iconCross_uldp4_108{position:absolute;top:.26667rem;right:.26667rem;font-size:.58667rem;color:#ccc;z-index:99}._periodItemModel_uldp4_116{position:relative}._periodItemModel_uldp4_116 ._iconCachePoint_uldp4_119{position:absolute;right:0;bottom:0;display:block;-o-object-fit:contain;object-fit:contain;width:.34667rem;height:.34667rem}._periodItemModel_uldp4_116 ._periodTip_uldp4_128{position:absolute;left:-.18667rem;top:0;max-height:.4rem;display:block;-o-object-fit:contain;object-fit:contain}._periodItemModel_uldp4_116 ._downloading_uldp4_136{position:absolute;left:0;right:0;bottom:0;top:0;background:rgba(0,0,0,.4);font-size:.29333rem;color:#fff;border-radius:.24rem;display:flex;align-items:center;justify-content:center}._itemTitle_uldp4_150{display:flex;align-items:center;font-weight:500;font-size:.4rem;color:#777}._itemTitle_uldp4_150._itemTitleActive_uldp4_157{color:#131415}._itemTitle_uldp4_150._itemTitleActive_uldp4_157 ._arrow_uldp4_160{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAMFBMVEUAAAAzMzMxMTEzMzMyMjIzMzMzMzMyMjIzMzMuLi4zMzMzMzMyMjIzMzMzMzMzMzOSr5viAAAAD3RSTlMAqjf30K+GXB4L6OfCfGzq3f86AAAAc0lEQVQoz2MYxEBREA6EwALn/8PBH7DAfYTAX7AAK0IgACzA6Q/jf5kAMbUbJrADag2TPYT/WQFmcT1E4DvcJWwQgQSE2+JB/K9Ijp0CEvBEEuBY////rwZk/yj//2+E4kH2//8LUL2c/w0tDPgeMAwoAABzTGBcXc1bCAAAAABJRU5ErkJggg==);background-size:contain}._itemTitle_uldp4_150 ._arrow_uldp4_160{width:.42667rem;height:.45333rem;display:inline-block;margin-right:.16rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiBAMAAADMnMbMAAAAMFBMVEUAAACqqqqqqqqqqqqqqqqqqqqsrKyqqqqqqqq5ubmqqqqrq6urq6urq6usrKyqqqqE3eH/AAAAD3RSTlMAq/fo0IZcOR4LwaN8bDSGxg+NAAAAVklEQVQoz2OgGeBbgybA/V8SVYDx/5cGNIH/5ugCnxLQBP5/RReAmosQgJqLEICaixCAmosQQJiLEPh/gZDAV0KGmhNymCS65wh53xx/ECICGRENtAUACqtjG/Rrdj8AAAAASUVORK5CYII=);background-size:contain}._itemTitle_uldp4_150 ._arrow_uldp4_160._arrowActive_uldp4_172{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAMFBMVEUAAAAzMzMxMTEzMzMyMjIzMzMzMzMyMjIzMzMuLi4zMzMzMzMyMjIzMzMzMzMzMzOSr5viAAAAD3RSTlMAqjf30K+GXB4L6OfCfGzq3f86AAAAc0lEQVQoz2MYxEBREA6EwALn/8PBH7DAfYTAX7AAK0IgACzA6Q/jf5kAMbUbJrADag2TPYT/WQFmcT1E4DvcJWwQgQSE2+JB/K9Ijp0CEvBEEuBY////rwZk/yj//2+E4kH2//8LUL2c/w0tDPgeMAwoAABzTGBcXc1bCAAAAABJRU5ErkJggg==);background-size:contain}._collapseParent_uldp4_176{padding:0 .53333rem}._collapseParent_uldp4_176 .van-cell{padding:.42667rem 0}._collapseParent_uldp4_176 .van-collapse-item--border:after{left:0;right:0}._collapseParent_uldp4_176 .van-collapse-item__content{padding-top:0;padding-bottom:0;padding-right:0}._collapseChild_uldp4_191 .van-collapse-item__content{padding-left:.58667rem}._collapseChild_uldp4_191 .van-collapse-item__content .van-cell{padding:.32rem 0}._collapseChild_uldp4_191 .van-collapse-item__content .van-cell__title{flex:1 auto}._collapseChild_uldp4_191 .van-collapse-item__content .van-cell__value{flex-shrink:0;flex:1 auto}._radioBtn_uldp4_204{width:.48rem;height:.48rem}._btnGroup_uldp4_208{padding:.26667rem .66667rem calc(.53333rem + env(safe-area-inset-bottom));border-top:.02667rem solid #F2F2F2;background-color:#fff}._btnGroup_uldp4_208 .van-button{border-radius:.21333rem}._popupRule_uldp4_216{width:8.4rem;background:#FFFFFF;border-radius:.32rem;padding:.53333rem}._popupRule_uldp4_216 ._title_uldp4_222{font-weight:600;font-size:.48rem;color:#333;line-height:.66667rem;text-align:center}._popupRule_uldp4_216 ._content_uldp4_49{font-size:.4rem;color:#666;line-height:.69333rem;padding-bottom:.53333rem;padding-top:.4rem}\n',document.head.appendChild(r);const T={courseList:"_courseList_uldp4_1",periodContent:"_periodContent_uldp4_8",cover:"_cover_uldp4_12",contentTitle:"_contentTitle_uldp4_49",contentLabel:"_contentLabel_uldp4_56",periodTitle:"_periodTitle_uldp4_62",pIcon:"_pIcon_uldp4_68",pTitle:"_pTitle_uldp4_73",pNum:"_pNum_uldp4_79",left:"_left_uldp4_84",iconQuestion:"_iconQuestion_uldp4_88",periodItem:"_periodItem_uldp4_93",courseDialog:"_courseDialog_uldp4_105",iconCross:"_iconCross_uldp4_108",periodItemModel:"_periodItemModel_uldp4_116",iconCachePoint:"_iconCachePoint_uldp4_119",periodTip:"_periodTip_uldp4_128",downloading:"_downloading_uldp4_136",itemTitle:"_itemTitle_uldp4_150",itemTitleActive:"_itemTitleActive_uldp4_157",arrow:"_arrow_uldp4_160",arrowActive:"_arrowActive_uldp4_172",collapseParent:"_collapseParent_uldp4_176",collapseChild:"_collapseChild_uldp4_191",radioBtn:"_radioBtn_uldp4_204",btnGroup:"_btnGroup_uldp4_208",popupRule:"_popupRule_uldp4_216",title:"_title_uldp4_222",content:"_content_uldp4_49"},U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAmBAMAAABe5iSgAAAAIVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABt0UjBAAAAC3RSTlMAMw0uJg4rHxcHBQEh60AAAAB6SURBVCjPY8AKWMsMBaFAOD0AJMLpKIgERCYAhZQFPYKUoEC1RdAIqMgQSCCAsvAEBhbhBchCXIYODIFCqJYpijIUOqAKsYgzJDagCnGIMRgGoLlSmEFQAVWISXBUiHIhzIDGFh2YkYYtajETALZkgpmYMJMc1oSJCQBqCxyPcdjczQAAAABJRU5ErkJggg==",z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAmBAMAAABe5iSgAAAAKlBMVEUAAAAAAAAAAAAAAAAAAAABwbUBwbUAw7YAAAAAAAAAAAACwrUAAAABwbXwB2T9AAAADXRSTlMAMw0uI/fLYisXB6IFQ8BpnwAAAKJJREFUKM9jwAqYPAwFoUC4RQEkwuUoiAREFgCFlAU9leBgiqARUJEhkEAAZeEFDCzCB5CFeAwdGBSFUOwC8R0dUIVYRBgaJzAwsKfeBYOwAgYGTgkGQ6BL9t6FgttAVwozCCowsN+FgwIGJkGQEBtCKAEqxIoQCoAK8SKELgxXIUxvYwYOZhBiBjS26MCMNGxRi5kAsCUTzMSEmeSwJkxMAAC9wuFjWrF+EQAAAABJRU5ErkJggg==",j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAb1BMVEUAAAABwbUBwbUBwbUBwrYCwrYAw7QAyLoAwbUBwbX///8LxLil6eX5/f30/PvY9fMry8ERxbr2/fzg9/W17eme5+Nn2tPd9vXQ8/Gr6uZy3dZs29Rg2NA5z8U0zcTt+vnj+PbF8O173thG0ckVxbrBdDPEAAAACXRSTlMA8u7YwJpEJT4GMcrVAAAA1UlEQVQ4y42USQ7DIAxFSYEkNpnnNm063v+MhaAoCwTmrZB4sr8QNttJJU/AIeEyZQeZAC8is05+gQCXfK+jnaBlagkgEDozkKRM0pJknJY4S2gpYRCBT1Lj3NeKkEZE/BCV7toZiHZNhfj6hSVVI5YPIniBiDdwJfUsq6G158kGciR7c7WBOsS+daSzxxFoA1c601p59b54U5k269HWkc4XfOtAcxuQYERDt0FIUouRJghJNlZBfpXvUiiPRBH1faMGIWqkooYzZswjFwa9euKXGL0O/14PLeCGCo1hAAAAAElFTkSuQmCC",S="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkBAMAAAATLoWrAAAALVBMVEUAAADMzMzMzMzMzMzNzc3Nzc3Ozs7Pz8/Ozs7r6+vMzMzj4+Pd3d3T09Pn5+dCYTflAAAACXRSTlMA8u7YwJpEJT4GMcrVAAAAeklEQVQoz2NgYGALlloFBQtNExiAgN1rFRJYUgAUalp1ZzccnF2lAVSktXomEti1qICBZdVLZKF5qxwYsiCKEMqWMUTdRBWau5TB6iSq0JzFDFI7UYVmL2RYhS60alSIciHMgMYWHZiRhi1qMRMAlmSCmZiwJjnMhAkA3DR6thxCvCcAAAAASUVORK5CYII=",L=(e,t)=>{if("disabled"!==e.status){if(t)e.status=t;else{if("disabled"===e.status)return;"checked"===e.status?e.status="nochecked":e.status="checked"}Array.isArray(e.materialList)&&e.materialList.forEach((t=>{"disabled"!==t.status&&("nochecked"===e.status?t.status="nochecked":t.status="checked")})),Array.isArray(e.children)&&e.children.forEach((t=>{L(t,e.status)}))}},P=(e,t="children")=>{let i=0,l=0,r=0,a=0,o=0;e.materialList&&e.materialList.length>0&&e.materialList.forEach((e=>{i+=1,"disabled"!==e.status?l+=1:r+=1,"checked"===e.status&&(a+=1)})),Array.isArray(e[t])&&e[t].forEach((e=>{i+=1,"disabled"!==e.status?l+=1:r+=1,"checked"===e.status&&(a+=1),"indeterminate"===e.status&&(o+=1)})),e.status=a>=l?"checked":a>0?"indeterminate":"nochecked",o>0&&(e.status="indeterminate"),i===r&&(e.status="disabled")},x=a({name:"child-node",props:{list:{type:Array,"default":()=>[]},collapse:{type:String,"default":""}},emits:["update:collapse","menuChange","materialChange"],setup:(e,{emit:t})=>()=>o(E,{modelValue:e.collapse,"onUpdate:modelValue":e=>{t("update:collapse",e)},border:!1,accordion:!0},{"default":()=>{var i;return[null===(i=e.list)||void 0===i?void 0:i.map((i=>o(B,{clickable:!1,center:!0,"class":T.collapseChild,name:i.id},{title:()=>o("div",{"class":[T.itemTitle,e.collapse===i.id?T.itemTitleActive:""]},[o("i",{"class":[T.arrow]},null),i.name]),"default":()=>o(n,null,[Array.isArray(null==i?void 0:i.materialList)&&i.materialList.map((e=>o(k,null,{title:()=>e.name,value:()=>o("img",{src:"disabled"===e.status?S:"checked"===e.status?j:U,"class":[T.radioBtn],onClick:l=>{l.stopPropagation(),"disabled"!==e.status&&("checked"===e.status?e.status="nochecked":e.status="checked",P(i),t("menuChange"))}},null)}))),Array.isArray(null==i?void 0:i.children)&&o(x,{list:i.children,collapse:i.collapse,"onUpdate:collapse":e=>{i.collapse=e},onMenuChange:()=>{P(i),t("menuChange")}},null)]),"right-icon":()=>o("img",{src:"indeterminate"===i.status?z:"disabled"===i.status?S:"checked"===i.status?j:U,"class":[T.radioBtn],onClick:e=>{e.stopPropagation(),L(i),t("menuChange")}},null)})))]}})});e("default",a({name:"courseList",setup(){const e=A(),r=d({titleOpacity:0,catchStatus:!1,catchItem:{},loading:!0,detail:{cover:"",name:"",des:""},maxAddCourseware:0,list:[],ruleStatus:!1,isDownloading:!1,parentCollapse:"",childrenCollapse:"",disabledIds:[]}),a=(e=[])=>{const t=[];return e.forEach((e=>{let o={};e.status="nochecked",e.collapse="",Array.isArray(e.materialList)&&e.materialList.forEach((e=>{u.vIds.includes(e.id+"")||"VIDEO"!==e.typeCode?(e.status="disabled",r.disabledIds.push(e.id)):e.status="nochecked"})),o=e,Array.isArray(e.children)&&(o.children=a(e.children)),t.push(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},o))})),t},R=(e,t,i=[])=>{for(const l of t){if(l.id===e)return[...i,e];if(Array.isArray(l.materialList))for(const t of l.materialList)if(t.id===e)return[...i,l.id,e];if(l.children&&l.children.length>0){const t=R(e,l.children,[...i,l.id]);if(t.includes(e))return t}}return i},O=(e,t)=>{let i={};for(const l of t)l.id===e&&(i=l),l.children&&l.children.length>0&&!i.id&&(i=O(e,l.children));return i},I=(e=[])=>{const t=[];return e.forEach((e=>{Array.isArray(e.materialList)&&e.materialList.forEach((e=>{"checked"===e.status&&t.push({id:e.id,name:e.name})})),Array.isArray(e.children)&&t.push(...I(e.children))})),t};return s(t((function*(){try{const e=yield c.get(u.platformApi+"/sysConfig/queryByParamName",{params:{paramName:"upper_limit_homework_courseware"}});r.maxAddCourseware=e.data.paranValue||0}catch(i){}t((function*(){const t=yield c.get(`${u.platformApi}/lessonCourseware/getLessonCoursewareDetail/${e.query.id}`);(null==t?void 0:t.data)&&(r.detail.cover=t.data.coverImg,r.detail.name=t.data.name,r.detail.des=t.data.lessonTargetDesc)}))(),t((function*(){r.loading=!0;try{const t=yield c.get(u.platformApi+"/lessonCourseware/getLessonCoursewareCourseList/"+e.query.id);if(Array.isArray(null==t?void 0:t.data)){t.data.forEach((e=>{e.status="nochecked",e.children=e.knowledgePointList||[],e.id=e.coursewareDetailId,e.name=e.coursewareDetailName,a(e.children)})),r.list=t.data;const e={};r.disabledIds.forEach((t=>{e[t]=R(t,r.list)}));for(const t in e){const i=e[t];for(let e=i.length-2;e>=0;e--){const t=O(i[e],r.list);P(t)}}}}catch(e){}r.loading=!1}))()}))),p("scroll",(()=>{const e=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;r.titleOpacity=e>100?1:e/100})),()=>{let e;return o("div",{"class":T.courseList},[o(g,{border:!1,background:`rgba(255,255,255, ${r.titleOpacity})`,title:"教材详情"},null),o("div",{"class":T.periodContent},[o("div",{"class":T.cover},[o("img",{src:r.detail.cover,onLoad:e=>{e.target&&(e.target.style.opacity=1)}},null)]),o("div",null,[o("div",{"class":T.contentTitle},[r.detail.name]),o("div",{"class":T.contentLabel},[_("教学目标:"),r.detail.des])])]),o(m,{name:"van-fade"},{"default":()=>{return[!r.loading&&o(n,null,[o("div",{key:"periodTitle","class":T.periodTitle},[o("div",{"class":T.left},[o("img",{"class":T.pIcon,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAapJREFUWEftl7FKA0EQhv9NhAjhBHvLQBoj3L2DnaV2NhYWajqfwNo6PoGVptXCRxDcPVy1utIuTTAgEZSRExNi9Mxs5u488NJm5ua7b2d3bxQK/lMF50MJKF2h0uD/MdhsNr1avX4Yv/EzUScypufy9o1Go7boedsgWnHJ+xar1ONwMDiNougl/m/cgy3fvwKw/pnQQ6VyYG9uzrnFWr4fx25y42fEda0xW9OArwCqU4ndBWDfMGy2guAJRF4qgEoNrNZL04CU8HCWzTwMJgGOuH+1mUcPzgKMQXukVPtO67NUlpLxkMlNwgEc26wS7YZh2GfUEIXMCwgodWG13hBVZyTPDwj0rTHLjBqikPkBiTo2DNui6oxkZ0AChgo4ssYcA3hj1BCFOAEScE3Azr0xD6KqDsksQI61PzsHudbyuEmGAGoj+xxrkyuV+V286vsnCtiLi3KtfQHM+msm/vRaC4KPg/dW60vXHZp5DzpsrFxDy6FJqrs0WBqUGpDmj3swtXNMTJQ8F6c510oxf5iL05xrpXgJc3GxDRa+B6WrklV+eZNIzRbe4DtiDOop5126YAAAAABJRU5ErkJggg=="},null),o("div",{"class":T.pTitle},[_("课程列表")]),o("div",{"class":T.pNum},[_("共"),r.list.length,_("课")])]),o("div",{"class":T.right},[o("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAmVBMVEUAAAABwrYBwbUBwbUBwbQBwrUCwrYCw7UAwrUAwrcAw7gAwrYAv78AwbkBwbUAw7QBwbX///+h6OSJ4txn2tPQ8/Ga5uGP5N46z8Y2zsUbx70UxrsGwrf6/v30/Pzr+fjk+Pff9/bX9fO87uuF4duA39lc189S1cxI0souzMImysDG8e7G8O6n6eWD4Npx3NVP1MtE0cgKw7fljtW5AAAAEHRSTlMAzPjr18SkmGhYRBUIIdci7MCMzAAAATtJREFUOMuVlOtygjAQhQMIBgRNuBUEa6v12nvf/+G6g9HdkDgZzx/I4ZtscsiGUWU88gLfD7yIZ8yuOBREYWxBkokYaZKMkHQqLJqmlJl5wipvRpi5uKP5jUpxHnOua0VtPV3ze+rputS+iHWoJOi57tC67JHs/UkqvS4xiSFDZEr4XBXFBzy26MYAkZxfpMwFqADqjNkztkCmlXI1lPlbSblHP2McB3tYy23KEn3OIhycyvIwvCyh3A/6EbMF+QkpdCRQFphMDRMVZBww32ByYGpq+AjRQN+EBhnlWmB2uhUwz5yoGp8EFQFqi8UwAj5ydnl+HFkcfotTmfrBqK/1ptGdUB0VVAOb2+hQrA4d6gjQWm8/4/iK/l3Kbw1KLI3Qt2e9QR9pKXdzutvcfWG4r55HLzHU4s51+A/StULhhewHtwAAAABJRU5ErkJggg==","class":T.iconQuestion,onClick:()=>r.ruleStatus=!0},null)])]),o("div",{key:"list","class":T.periodList},[o(E,{modelValue:r.parentCollapse,"onUpdate:modelValue":e=>{r.parentCollapse=e,r.childrenCollapse=""},"class":T.collapseParent,border:!1,accordion:!0},(t=e=r.list.map((e=>o(B,{center:!0,name:e.coursewareDetailId,clickable:!1},{title:()=>o("div",{"class":[T.itemTitle,r.parentCollapse===e.coursewareDetailId?T.itemTitleActive:""]},[o("i",{"class":[T.arrow]},null),e.coursewareDetailName]),"default":()=>o(n,null,[Array.isArray(null==e?void 0:e.materialList)&&e.materialList.map((e=>o(k,null,{title:()=>e.name,value:()=>o("img",{src:j,"class":[T.radioBtn]},null)}))),Array.isArray(null==e?void 0:e.children)&&o(x,{list:e.children,collapse:e.collapse,"onUpdate:collapse":t=>{e.collapse=t},onMenuChange:()=>{P(e)}},null)]),"right-icon":()=>o("img",{src:"indeterminate"===e.status?z:"disabled"===e.status?S:"checked"===e.status?j:U,"class":[T.radioBtn],onClick:t=>{t.stopPropagation(),"disabled"!==e.status&&("checked"===e.status?e.status="nochecked":e.status="checked",Array.isArray(e.knowledgePointList)&&e.knowledgePointList.forEach((t=>{L(t,e.status)})))}},null)}))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!M(t)?e:{"default":()=>[e]}))])])];var t}}),r.loading&&o(v,null,null),!r.loading&&!r.list.length&&o(h,{tips:"暂无内容"},null),o(y,{position:"bottom"},{"default":()=>[o("div",{"class":T.btnGroup},[o(f,{block:!0,type:"primary",color:"linear-gradient( 132deg, #60DBC7 0%, #01C1B5 100%)",onClick:()=>{const e=I(r.list);-1!==u.max&&e.length>u.max?b(`当前练习组只可添加${u.max}条练习内容`):w({api:"onCoursewareSelectResult",content:{result:e}})}},{"default":()=>[_("确定")]})])]}),o(C,{show:r.ruleStatus,"onUpdate:show":e=>r.ruleStatus=e,"class":T.popupRule},{"default":()=>[o("div",{"class":T.title},[_("温馨提示")]),o("div",{"class":T.content},[_("1、作业只能选择视频资源布置"),o("br",null,null),_("2、单个练习组最大可添加"),r.maxAddCourseware,_("个练习"),o("br",null,null),_("3、同练习组单个视频资源不可多次添加")]),o("div",{"class":T.popupBtnGroup},[o(f,{block:!0,color:"linear-gradient( 132deg, #60DBC7 0%, #01C1B5 100%)",onClick:()=>r.ruleStatus=!1},{"default":()=>[_("我知道了")]})])]})])}}}))}}}))}();