1 |
- !function(){function e(e,a,t,r,i,n,l){try{var o=e[n](l),s=o.value}catch(c){return void t(c)}o.done?a(s):Promise.resolve(s).then(r,i)}function a(a){return function(){var t=this,r=arguments;return new Promise((function(i,n){var l=a.apply(t,r);function o(a){e(l,i,n,o,s,"next",a)}function s(a){e(l,i,n,o,s,"throw",a)}o(undefined)}))}}function t(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);a&&(r=r.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,r)}return t}function r(e,a,t){return(a=function(e){var a=function(e,a){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(t!==undefined){var r=t.call(e,a||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)}(e,"string");return"symbol"==typeof a?a:String(a)}(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}System.register(["./index-legacy-67665670.js","./index-legacy-12cd8d96.js","./index-legacy-65deca91.js","./index-legacy-cfd698df.js","./index-legacy-07687ee8.js","./index-legacy-dbd3b3db.js","./index-legacy-1ef002ec.js","./index-legacy-6e23d371.js","./index-legacy-734c3dbe.js","./index-legacy-c74454ce.js"],(function(e,i){"use strict";var n,l,o,s,c,d,u,A,g,f,h,p,v,m,q,y,k,w,C,E,j,x,L,O;return{setters:[e=>{n=e.d,l=e.u,o=e.a,s=e.F,c=e.q,d=e.g,u=e.t,A=e.f,g=e.r,f=e.h,h=e.c,p=e.j,v=e.O,m=e.p,q=e.b,y=e.i,k=e.e,w=e.s},e=>{C=e.O},e=>{E=e.O},e=>{j=e.C,x=e.a},e=>{L=e.C},e=>{O=e.O},null,null,null,null],execute:function(){var b=document.createElement("style");b.textContent='._courseListSearch_qqfka_1{min-height:100vh;background-color:#f8f8f8;background:linear-gradient(180deg,#7defe6 0%,rgba(255,255,255,0) 4.53333rem);box-sizing:border-box}._courseListSearch_qqfka_1 .van-nav-bar__title{width:100%;max-width:100%;margin-left:1.22667rem}._courseListSearch_qqfka_1 .van-nav-bar__right{display:none}._courseListSearch_qqfka_1 .van-search{padding-left:0}._courseListSearch_qqfka_1 .o-result-container{height:90vh}._collapseParent_qqfka_21{padding-top:.32rem}._collapseParent_qqfka_21 .parentCollapse__item{margin:0 .37333rem .32rem}._collapseParent_qqfka_21 .parentCollapse__item:after{display:none}._collapseParent_qqfka_21 .parentCollapse__item>.van-collapse-item__wrapper{margin:0 .37333rem .32rem}._collapseParent_qqfka_21 .van-cell{padding:.37333rem;font-weight:600}._collapseParent_qqfka_21 .van-collapse-item{background-color:#fff;border-radius:.32rem;overflow:hidden}._collapseParent_qqfka_21 .van-collapse-item--border:after{left:0;right:0}._collapseParent_qqfka_21 .van-collapse-item__content{padding:0}._collapseChild_qqfka_52 .van-cell{padding:.32rem 0;font-weight:400;font-size:.4rem;color:#333;line-height:.56rem}._collapseChild_qqfka_52 .van-collapse-item__content .van-cell{padding:.32rem 0}._collapseChild_qqfka_52 .van-collapse-item__content .van-cell__title{flex:1 auto}._collapseChild_qqfka_52 .van-collapse-item__content .van-cell__value{flex-shrink:0;flex:1 auto}._materialSection_qqfka_69{display:flex;align-items:center;color:#333;padding-left:.26667rem}._materialSection_qqfka_69 ._iconMaterial_qqfka_75{width:.85333rem;height:.85333rem;margin-right:.26667rem}._itemTitle_qqfka_80{display:flex;align-items:center;font-size:.4rem;color:#333;line-height:.56rem}._itemTitle_qqfka_80 ._iconMenu_qqfka_87{width:.96rem;height:1.06667rem;margin-right:.21333rem}._itemTitle_qqfka_80._materialTitle_qqfka_92:before{content:"";width:.10667rem;height:.10667rem;background:#01C1B5;border-radius:50%;display:inline-block;margin-right:.16rem}._arrow_qqfka_101{width:.42667rem;height:.45333rem;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA0NJREFUaEPtV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WRAmEOV032FECbqYUZs1vuuIBQByCaUQAAAAASUVORK5CYII=);background-size:contain}._arrow_qqfka_101._arrowActive_qqfka_108{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAylJREFUaEPtlz9oE1Ecx3+/S06toihqq1uDIGigIXcvoEMW0Q5dFCmFuhRcOpQqCg6idbCKICLF0qGL0sVCEdGlgxUXB4W83tFAFAoSt9JqERWN5nL3MwdVpPR69/Je0MJlvd+f7+f3zfvdPYQN/sMNrh9igH/tYOxA7IDkBOK/kOQApdNjB9YbYblc3uI/T6VSP6RHHVCgKQ4QEVqW1YmI1/2+mqYNZTKZGUQk1SBNAbAsK+N53hQAHFwRPK9pWo9hGHP/PcDc3FzKcZyHAHBkldjXuq6fyWQyZZUQSh3gnO9BxEkiOr6WSER8TkS9jLGPqiCUAXDOtwLAMACcA4BkgMAaANwDgCHG2HcVECoBBuvCbwDAjhBhXwDgKmNs9L8BKBQK3Yh4HwC2RxT1lYjO5nK5RxHjA8OkHPDXZaFQOKppmi9kv6CYBc/zunO53CuZ9SoFYNt2e61Wm0DEPIDw5YiI6GUymezLZrPvBeH/hDcMwDnXEfEpEXXWD2+iQQEuIj4jopOMMaeRGg0B+BsHEe8SUX8jTVfnIOI4EV1sZDMJA0xPT29ubW0dqH8h+J8J21QAAMA3ALi2tLQ01tXV9VOkpjCAbdsnXNedBIDdIo0ixC4nEonebDY7EyFW/Az4G6dYLKYdx3kBAHtFmgjEftB1/VhHR0cp6maK7IBlWYeJaIKImIAg4VBE5IjYZxjGmyjJkQCKxeKuarU6DgCnJTZOFD1+jAsAjyuVSn8+n/8UlhQK4B/atra2ISK6ElZM5XNEvLm4uDgcdqjXBSiVSpsqlcogIt4iIl2lwLBaiOgQ0eWWlpbRdDpdDYoPBFi5VfUQ0VgTNk6Y/t/PlxFxwDCMqaBDHQgwOzt7iIie/HWritpUddw8Ip4yTfPtWoXXA7hNRJdUq2mkHiLeMU1zTS2BAJzzEQA430hD1TmIOGKa5gUhBzjnBwDgAQC0qxYkUq/+Tij7dwfG2DshAD/Ytu2druvu0zRNE2mqKtbzPA8AFhhjn4W3kCoRza4T+iJrtgDZ+jGA7ARl82MHZCcomx87IDtB2fzYAdkJyubHDshOUDZ/wzvwCx8WAUCcs4PuAAAAAElFTkSuQmCC);background-size:contain}\n',document.head.appendChild(b);const P={courseListSearch:"_courseListSearch_qqfka_1",collapseParent:"_collapseParent_qqfka_21",collapseChild:"_collapseChild_qqfka_52",materialSection:"_materialSection_qqfka_69",iconMaterial:"_iconMaterial_qqfka_75",itemTitle:"_itemTitle_qqfka_80",iconMenu:"_iconMenu_qqfka_87",materialTitle:"_materialTitle_qqfka_92",arrow:"_arrow_qqfka_101",arrowActive:"_arrowActive_qqfka_108"},B=""+new URL("icon-video-8afe8c13.png",i.meta.url).href,D=""+new URL("icon-image-4c8229a1.png",i.meta.url).href,S=e=>"VIDEO"===e.typeCode?B:["IMAGE","IMG"].includes(e.typeCode)?D:"SONG"===e.typeCode?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAC+lBMVEUAAABsz+hl6/Bn1eFo1uFq1+Rq2uFs1+ho1N1wx/Zg48xvx/Zp0uRg4sxq0eVwx/Zwx/Zp0+Vm2N1g48xs0eZo1uBw0+5o2thm191n1eBo1eFo1uFtze5j3dRwyPdg48xyyPhh4sth4spl2Npf48tf48pvx/Rg4cxwxvdh48tg4spr0+Vr5Ndh4stf4stj29Zk2dli3dNi3tFn1OFm191p0eVh389o0+Nn1d9tyvBg4cxuyPNsy+5k29hj3dVl2Nv8/v5vx/RuyfFszexl19trzuprzepqz+jM7evI7Olq0Odm1t7J7Ov6/fzL7Orx+/hQ0c/z+/nl9vHp9/Ng4c5q0eb1/Prj9vD2/Pvr+PTv+vft+fZszO7h9fBf4svP7+vn9/LS7+v4/fvf9O9Ixdbz+/zV8O/l9vbj9fTS7+7V8Ozb8vHZ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AptUn+XPxOEXWPQvHN4y9kXG4w8wfNBnNxBhO4CAcBCXR86fe2AxrFPO6mccNY7jY81PPxpGAO4CVpfz58PDXu/cpXne5NCamkuj0YAHAPDIf8UdIGTTRF5yAA+OR69d2uSbwq8/joOaRRRlnTj4588s/xH3X8L7HfDqQ4ddMkEi758/s3xD2H8JL3heP1pAHlaDtrxP/izmPwRXnsDay/RXkZcAc5D0WYHE/RerD1t/KFE4cufJrBNxMX8W8x+M8POQW39o/QtIQknF/eov5D9SfbzyDjFVQT5kV4Jyex+L+Q8g1583iOazyJ/wZiLO1R/0xfyH7b+ovLi+JbfD6J8ElJVUgq+PmP885Nor3kBJNa8E0FIioQe51EYiLtUHkOvD9GPRLTVXkP/+8xc0EZS8RKyhdAAAAABJRU5ErkJggg==":B,I=n({name:"child-node",props:{id:{type:String,"default":""},search:{type:String,"default":""},isLock:{type:Boolean,"default":!1},list:{type:Array,"default":()=>[]},collapse:{type:String,"default":""}},emits:["update:collapse"],setup(e,{emit:a}){const t=l(),r=a=>{if(!a||!e.search)return a;const t=e.search;return a.replace(t,`<span style="color: #01C1B5;">${t}</span>`)};return()=>o(x,{modelValue:e.collapse,"onUpdate:modelValue":e=>{a("update:collapse",e)},border:!1,accordion:!0},{"default":()=>{var a;return[null===(a=e.list)||void 0===a?void 0:a.map((a=>o(j,{clickable:!1,center:!0,border:!1,"class":P.collapseChild,name:a.id},{title:()=>o("div",{"class":[P.itemTitle,Array.isArray(null==a?void 0:a.materialList)&&(null==a?void 0:a.materialList.length)>0?P.materialTitle:""]},[a.name]),"default":()=>o(s,null,[Array.isArray(null==a?void 0:a.materialList)&&a.materialList.map((a=>o(L,{center:!0,isLink:!0,border:!1,clickable:!1,onClick:()=>{return r=a,void(e.isLock?c(e.id,"LESSON"):d().isApp?u({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/coursewarePlay?lessonId=${e.id}&source=search&kId=${r.id}&search=${encodeURIComponent(e.search)}`,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,showLoadingAnim:!0}}):t.push({path:"/coursewarePlay",query:{lessonId:e.id,kId:r.id,search:e.search,source:"search"}}));var r}},{title:()=>o("div",{"class":P.materialSection},[o("img",{src:S(a),"class":P.iconMaterial},null),o("div",{innerHTML:r(a.name)},null)])}))),Array.isArray(null==a?void 0:a.children)&&o(I,{isLock:e.isLock,search:e.search,id:e.id,list:a.children,collapse:a.collapse,"onUpdate:collapse":e=>{a.collapse=e}},null)]),"right-icon":()=>o("i",{"class":[P.arrow,e.collapse===a.id?P.arrowActive:""]},null)})))]}})}});e("default",n({name:"course-list-search",setup(){const e=A(),i=g({titleOpacity:0,loading:!0,detail:{useStatus:""},list:[],search:"",parentCollapse:""}),n=f(),l=h((()=>"LOCK"===i.detail.useStatus&&"STUDENT"===w.platformType)),c=(e=[])=>{const a=[];return e.forEach((e=>{let i={};e.collapse="",i=e,Array.isArray(e.children)&&(i.children=c(e.children)),a.push(function(e){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?t(Object(i),!0).forEach((function(a){r(e,a,i[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))}))}return e}({},i))})),a},d=(e=[])=>{for(let a=0;a<e.length;a++){if(!(Array.isArray(e[a].materialList)&&e[a].materialList.length>0))return d(e[a].children||[]);{const t=e[a].materialList[0]||{};if(t)return t}}};function u(e,a){return e.map((e=>{if(e.children){let t="";return e.children.map((e=>{t||(t=a.includes(e.id)?e.id:"")})),e.collapse=t,Object.assign(e,{children:u(e.children,a)})}return Object.assign(e,{materialList:e.materialList})}))}function b(e,a){return e.map((e=>e.children?Object.assign(e,{children:b(e.children,{ids:[...(null==a?void 0:a.ids)||[],e.id],name:e.name})}):Object.assign(e,{materialList:e.materialList.map((t=>(t.parentData={ids:[...(null==a?void 0:a.ids)||[],e.id],name:e.name},t)))})))}const B=function(){var t=a((function*(){const a=yield k.get(`${w.platformApi}/lessonCourseware/getLessonCoursewareDetail/${e.query.id}`);(null==a?void 0:a.data)&&(i.detail.useStatus=a.data.useStatus)}));return function(){return t.apply(this,arguments)}}(),D=function(){var t=a((function*(a){i.loading=!0;try{const r=yield k.get(w.platformApi+"/lessonCourseware/getLessonCoursewareCourseList/"+e.query.id,{requestType:"form",params:{search:a}});if(Array.isArray(null==r?void 0:r.data)){var t;i.search=a,r.data.forEach((e=>{e.children=e.knowledgePointList||[],e.id=e.coursewareDetailId,e.name=e.coursewareDetailName,c(e.children)}));const e=d(r.data);let n=b(r.data);n=u(n,(null==e||null===(t=e.parentData)||void 0===t?void 0:t.ids)||[]),i.list=n,n.forEach((a=>{var t;a.id===(null===(t=e.parentData)||void 0===t?void 0:t.ids[0])&&(i.parentCollapse=a.id)}))}}catch(e){}i.loading=!1}));return function(e){return t.apply(this,arguments)}}();return B(),D(),p((()=>n.value),(e=>{"visible"===e&&B()})),()=>{let a;return o("div",{"class":P.courseListSearch},[o(O,{position:"top"},{"default":()=>[o(v,{background:`rgba(255,255,255, ${i.titleOpacity})`,border:!1},{title:()=>o("div",{"class":P.title},[o(C,{background:"transparent",placeholder:"请输入素材关键词",onSearch:e=>{D(e)}},null)])})]}),o("div",{style:"height: calc(100vh - var(--header-height)); overflow-x: hidden; overflow-y: auto;"},[o(m,{name:"van-fade"},{"default":()=>{return[!i.loading&&o(x,{key:"courseListSearch",modelValue:i.parentCollapse,"onUpdate:modelValue":e=>{i.parentCollapse=e},"class":P.collapseParent,border:!1,accordion:!0},(t=a=i.list.map((a=>o(j,{center:!0,border:!0,name:a.coursewareDetailId,clickable:!1,"class":["parentCollapse__item"]},{title:()=>o("div",{"class":[P.itemTitle]},[o("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAB4CAMAAAAg/+dyAAACc1BMVEUAAADT9+nT9una/ezV6urS+OvN+enS//fU9+jT9+jU9+nU9+nU9+jU9+jT9+nT9+nT9ejT9ujT9ujU9+jT+OjV9+rU9urV+OrU9ejV+erX+uvW/+ue5sie5see5cee5sid58el68286duf5sqe5cem6M2e5sie5sie5sed5cic5sed5see5sad58qg68ik7cjv+/Xf9uzT9uid5ccAlIoYyqks26gm1qgf0Kkx36go16gWyKkv3qgbzKgu3Kg04Kgr2agay6k45agp2Kj///8dzqkQw6kOwakj06gh0akVx6kUxqkl1KgezqkTxakLv6k246gz4KgbzakRxKkJvaki0qnG8OJDs6jN9eUNwKkHvKo756g24qg96Kg65qgk06nS9ucu26g+6ag/6qjO9uY04qj9//4h0KlA7KcFuqoDoJLl+fE65qfr+/So6M2i58pC7afe9+3u+vUEuaoDuKkGopLI9OS+8uHM9eYay6j6/vy08d2v7tyo79ie59h56MYr2qnB8+J65ch35MdB1rYm0awJpJIHo5Lw+/fZ9+zF8+Ov5tiM49EyzLVC3bInybH+//72/frU9um379+m6dqb6tWX7NKv6tGC5sx03ct86sZi471S3Lo517FH5LA23avp+/Ph+e/g9u7B7tui8NSa49Sc8dGE7sdc1sJc3b5a5bhbwrVQ57JY7rEexa9Ru6+s9Nd83M+A4c2Q7syL78pp2cZ17sBs5sBO075n571nxblj77Yy1K8Uvq9A460NvK0XxKw64qsIpJIFl4277+Gn4tSY285s4cNk3cNJz71w8LxAzLpJ7KtGtalCsqcUqZcVnpMCR8QUAAAAMnRSTlMA/O8bDCcUB/n28eDf1MXBtaSjmpGFd21mVjMZ+/SklnIZCyfu4N/UxcG1hWZWMxzv7698X40AAAevSURBVGjetNNLSwJRFMDxO2rv9/s1Psre744gBFEtzodo0cJFzGYwscUoU1HurIWoi4KKSI0CcREURZvAb9YpqZy8aeid/xf4ce49h5Vmsw4P9LS3WCSoIj/GVyamna7FpTFWubrB7rZGqDbCMBjweDzylGPeXYGy9rY2AVUzRtknnaNlqJH+ZqAEYZTd9RfXMNQhgUiMkmcWGniWrc8CIBijxuc4m1LfBWACRjnqS5awE8zBqFn3r7k6JfMwedYwm43e0DSMcowV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EfvfA6X40RYQ/IpLFj5DKyO+UpYivNVse7nayFk4Osh0aDLDxGf0FVMZDV0TQvBEFuhjxSKrpxB5EXXRr5GVzQR5rGpLpJDutpIxJQ0xkBkojydnAhgaRqWSHtZVD0romWaeoaTYwM0sqTQXDI6Fiehl1RtkOMcB0jF7ohy9iAVym2TedAB+UqzLx5h2lMVSRmlaqs3NP+8iw+iJg7/E/IKjAAAAABJRU5ErkJggg==","class":P.iconMenu},null),a.coursewareDetailName]),"default":()=>o(s,null,[Array.isArray(null==a?void 0:a.materialList)&&a.materialList.map((e=>o(L,{center:!0,isLink:!0,clickable:!1},{title:()=>o("div",{"class":P.materialSection},[o("img",{src:S(e),"class":P.iconMaterial},null),e.name])}))),Array.isArray(null==a?void 0:a.children)&&o(I,{id:e.query.id,search:i.search,isLock:l.value,list:a.children,collapse:a.collapse,"onUpdate:collapse":e=>{a.collapse=e}},null)]),"right-icon":()=>o("i",{"class":[P.arrow,i.parentCollapse===a.coursewareDetailId?P.arrowActive:""]},null)}))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!y(t)?a:{"default":()=>[a]}))];var t}}),i.loading&&o(E,null,null),!i.loading&&!i.list.length&&o(q,{tips:"暂无搜索结果"},null)])])}}}))}}}))}();
|