import{d as w,Q as j,j as t,F as O,P as G,S as I,bQ as W,C as N,$ as x,y as h,g as p,f as b,n as E,D as y}from"./ResizeObserver.es.b7226882.js";import{C as P}from"./index.40f703b6.js";import{C as k,a as z}from"./index.77212094.js";import{T as V}from"./index.1743594f.js";import{C as U}from"./index.969bba7f.js";import{S as Q}from"./index.521acd0b.js";import{V as q}from"./vue3-lottie.es.a7302674.js";import{A as F}from"./refresh_anim.04019e5d.js";import{o as A}from"./orderStatus.1ca966f0.js";import"./index.1eaf642c.js";import"./index.021f1c7b.js";import"./use-id.5d5e6e63.js";const J="_courseListSearch_51akf_1",Y="_title_51akf_26",K="_collapseParent_51akf_33",X="_collapseChild_51akf_64",R="_materialSection_51akf_81",_="_iconMaterial_51akf_87",$="_itemTitle_51akf_92",ee="_iconMenu_51akf_99",ae="_materialTitle_51akf_104",re="_arrow_51akf_113",te="_arrowActive_51akf_120",le="_finch_51akf_124",se="_finchLoad_51akf_128";var c={courseListSearch:J,title:Y,collapseParent:K,collapseChild:X,materialSection:R,iconMaterial:_,itemTitle:$,iconMenu:ee,materialTitle:ae,arrow:re,arrowActive:te,finch:le,finchLoad:se},M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAB+1BMVEUAAAD/hpr/hpr/gJr/h5r/l5z/iJv/h53/h5v/jJ7/i6H/iJ//l5z/dZn/l5z/g5r/dZj/hpr/mJz/gZr/lJz/gZr/i6r/iJv/dZj/hpr/g5n/dpn/h5r/mZ3/dZv/jJv/dZj/dZn/dJj/mZ3/dpn/l5v/mJv/epj/iJr/fpn/kZv/ipr/j5v/gJn/k5v/gpn/jJr/d5j/hZr/jpv/fJj/hJn/dZj/lZv//f7/7vP/xsn/6vD/lpv/+fv/l5z/xs3/8vX/8PX/8/f/7PL/0dz/5e3/ytP/097/8PL/09b/6O//z9n/4uv/yND/9/n/3ej/2OH/3uD/zs//2uH/3d7/1+H/pbn/5+7/zdf/zNX/9fj/5+v/2eT/2d//29z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/3nH9LgWF1oHtVMAAAAAElFTkSuQmCC",oe="./assets/icon-song.fec97440.png",ce="./assets/icon-image.c527fd86.png";const D=l=>l.typeCode==="VIDEO"?M:["IMAGE","IMG"].includes(l.typeCode)?ce:l.typeCode==="SONG"?oe:M,H=w({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","handleClick"],setup(l,{emit:g}){j();const o=d=>{g("handleClick",d)},m=d=>{if(!d||!l.search)return d;const s=l.search;return d.replace(s,`${s}`)};return console.log(l.collapse,"collapse"),()=>t(k,{modelValue:l.collapse,"onUpdate:modelValue":d=>{g("update:collapse",d)},border:!1,accordion:!0},{default:()=>{var d;return[(d=l.list)==null?void 0:d.map(s=>t(z,{clickable:!1,center:!0,border:!1,class:c.collapseChild,name:s.id},{title:()=>t("div",{class:[c.itemTitle,Array.isArray(s==null?void 0:s.materialList)&&(s==null?void 0:s.materialList.length)>0?c.materialTitle:""]},[s.name]),default:()=>t(O,null,[Array.isArray(s==null?void 0:s.materialList)&&s.materialList.map(u=>t(P,{center:!0,isLink:!0,border:!1,clickable:!1,onClick:()=>o(u)},{title:()=>t("div",{class:c.materialSection},[t("img",{src:D(u),class:c.iconMaterial},null),t("div",{innerHTML:m(u.name)},null)])})),Array.isArray(s==null?void 0:s.children)&&t(H,{isLock:l.isLock,search:l.search,id:l.id,list:s.children,collapse:s.collapse,"onUpdate:collapse":u=>{s.collapse=u},onHandleClick:u=>{o(u)}},null)]),"right-icon":()=>t("i",{class:[c.arrow,l.collapse===s.id?c.arrowActive:""]},null)}))]}})}});var ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAB4CAMAAAAg/+dyAAAB0VBMVEUAAAD/5OT/6O3/6/D/5+3/6Oz/6O3/4uz/5+z/4uf/5uv/7O//9/f/5+3/6O3/5+3/5+z/5+3/6Oz/6Oz/0tv/6O3/6O3/6O7/5+7/6u//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FgaMGyhOK6F+LzPLARwdbHHxamrbXRMWHg0nFYgoTlPs2zF62JW2ysyhkcocdZoiA4NRT2VEGk0BNVWQ8fwxJs8awRiMR+n0GIthIClBUu2EF/K+J5k1g2sC6iaB3SMf8jD07XXG6ewhbi8hKUBYx+88Gjo8/kkS12XFkysLjxrcCpt5NG6eZOOuRvcOBpApVmsLkYxCygtGPRQtDCgthglW52dr8mYeFy8LnxcuLzQuvkAKE0Y72EAjtdqCyTxuOIWBKyHdMwjf2pI3eTRwhaCpQFjPfT+iwVhVi8dY6ORaonVdQVXMrM4BZbAvvs3j4GFI//H1YWWwF58VjaN1fEeqjZ5tNLqevRoeXn5+4/lxVYCFqc2tnA0euPWo7CC2RyW/qlBtboe8B6i9UwDJj8urAt3DaSYRceUmGQBxax4WVcTm3xKWb1gacGmvZzCF4pUVlpdQI2N0TF/tLG6UqpL2nilxwXYGGSVhOE3Pm8nZ8Kz00tz6yvfPlUHmkG/DGpbjWTxusZ6Q2RMndb4d00zq1OzUdC/fFkBv67ycntNJ6+rc06hYxsn/iVdJDQYvyMxObk6G11amsHFnBkzKf8tJoNF+W+x4FfH+me7war8t1jx6379sw8vMuifEryioXty8vHyie7ZacZrNbpnj5FwYYjaxVK8CqV7duThJS/dU4jX13SPxYwX8/SOqRivHOoeay7hMiUx28oI10SpKSogXIAlZreRcLWXFtOurYRLy8TsOki4jk3t4VbCRXPiHBYZCVfoSTFZywoIPw4gxVKcS/jZAyU5OwrNhB90UKSde0rzNpboP1XBmCzbrftK8s0Z5uI3sgPbShWxU7wAAAAASUVORK5CYII=";function ne(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!x(l)}var Me=w({name:"course-list-search",setup(){const l=G(),g=j(),o=I({titleOpacity:0,loading:!0,detail:{},list:[],search:"",parentCollapse:""}),m=(r=[])=>{const a=[];return r.forEach(e=>{let i={};e.collapse="",i=e,Array.isArray(e.children)&&(i.children=m(e.children)),a.push({...i})}),a},d=(r=[])=>{for(let a=0;a0){const e=r[a].materialList[0]||{};if(e)return e}else return d(r[a].children||[])};function s(r,a){return r.map(e=>{if(e.children){let i="";return e.children.map(n=>{i||(i=a.includes(n.id)?n.id:"")}),e.collapse=i,Object.assign(e,{children:s(e.children,a)})}else return Object.assign(e,{materialList:e.materialList})})}function u(r,a){return r.map(e=>e.children?Object.assign(e,{children:u(e.children,{ids:[...(a==null?void 0:a.ids)||[],e.id],name:e.name})}):Object.assign(e,{materialList:e.materialList.map(i=>(i.parentData={ids:[...(a==null?void 0:a.ids)||[],e.id],name:e.name},i))}))}const C=async r=>{var a;o.loading=!0;try{const e=await h.get(p.platformApi+"/tenantAlbumMusic/getLessonCoursewareCourseList/"+l.query.id,{requestType:"form",params:{search:r}});if(Array.isArray(e==null?void 0:e.data)){o.search=r,e.data.forEach(f=>{f.children=f.knowledgePointList||[],f.id=f.coursewareDetailId,f.name=f.coursewareDetailName,m(f.children)});const i=d(e.data);let n=u(e.data);n=s(n,((a=i==null?void 0:i.parentData)==null?void 0:a.ids)||[]),o.list=n,n.forEach(f=>{var L;f.id===((L=i.parentData)==null?void 0:L.ids[0])&&(o.parentCollapse=f.id)})}}catch(e){console.log(e,"error")}o.loading=!1};(async()=>{try{const r=await h.post(p.platformApi+"/tenantAlbumMusic/getLessonCoursewareDetail",{data:{lessonCoursewareId:l.query.id,albumId:l.query.albumId}});o.detail=(r==null?void 0:r.data)||{}}catch{}})(),C();const Z=r=>{if(o.detail.id&&!o.detail.play&&l.query.buyStatus!=="1"){if(!b().isApp){T();return}S();return}b().isApp?E({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/coursewarePlay?lessonId=${l.query.id}&source=search&kId=${r.id}&search=${encodeURIComponent(o.search||"")}`,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,showLoadingAnim:!0}}):g.push({path:"/coursewarePlay",query:{lessonId:l.query.id,kId:r.id,search:o.search,source:"search"}})},S=async()=>{const r=p.platformApi+"/tenantGroupAlbum/buyAlbumInfo?tenantGroupAlbumId="+(l.query.taId||""),{data:a}=await h.get(r),e=a[0];A.orderObject.orderType="TENANT_ALBUM",A.orderObject.orderName=e.name,A.orderObject.orderDesc=e.name,A.orderObject.actualPrice=e.actualPrice,A.orderObject.orderNo="",A.orderObject.orderList=[{orderType:"TENANT_ALBUM",goodsName:e.name,actualPrice:e.actualPrice,price:e.actualPrice,...e}];const n=(await h.post(p.platformApi+"/userOrder/getPendingOrder",{data:{goodType:"TENANT_ALBUM",bizId:e.id}})).data;n?y.confirm({title:"\u63D0\u793A",message:"\u60A8\u6709\u4E00\u4E2A\u672A\u652F\u4ED8\u7684\u8BA2\u5355\uFF0C\u662F\u5426\u7EE7\u7EED\u652F\u4ED8\uFF1F",theme:"round-button",className:"confirm-button-group",cancelButtonText:"\u53D6\u6D88\u8BA2\u5355",confirmButtonText:"\u7EE7\u7EED\u652F\u4ED8"}).then(async()=>{A.orderObject.orderNo=n.orderNo,A.orderObject.actualPrice=n.actualPrice,A.orderObject.discountPrice=n.discountPrice,A.orderObject.paymentConfig={...n.paymentConfig,paymentVendor:n.paymentVendor,paymentVersion:n.paymentVersion},v(e.id)}).catch(()=>{y.close(),B(n.orderNo)}):v(e.id)},B=async r=>{try{await h.post("/api-student/userOrder/orderCancel/v2",{data:{orderNo:r}})}catch{}},v=r=>{g.push({path:"/orderDetail",query:{orderType:"ALBUM",album:r}})},T=()=>{y.alert({title:"\u63D0\u793A",message:"\u8BF7\u5728\u9177\u4E50\u79C0APP\u4E2D\u4F7F\u7528",confirmButtonColor:"#2dc7aa"}).then(()=>{window.location.href=location.origin+"/student/#/download"})};return()=>{let r;return t("div",{class:c.courseListSearch},[t(V,{position:"top"},{default:()=>[t(U,{background:`rgba(255,255,255, ${o.titleOpacity})`,border:!1},{title:()=>t("div",{class:c.title},[t(Q,{type:"tenant",background:"transparent",placeholder:"\u8BF7\u8F93\u5165\u7D20\u6750\u5173\u952E\u8BCD",onSearch:a=>{C(a)}},null)])})]}),t("div",{style:"height: calc(100vh - var(--header-height)); overflow-x: hidden; overflow-y: auto;"},[t(W,{name:"van-fade"},{default:()=>[!o.loading&&t(k,{key:"courseListSearch",modelValue:o.parentCollapse,"onUpdate:modelValue":a=>{o.parentCollapse=a},class:c.collapseParent,border:!1,accordion:!0},ne(r=o.list.map(a=>t(z,{center:!0,border:!0,name:a.coursewareDetailId,clickable:!1,class:["parentCollapse__item"]},{title:()=>t("div",{class:[c.itemTitle]},[t("img",{src:ie,class:c.iconMenu},null),a.coursewareDetailName]),default:()=>t(O,null,[Array.isArray(a==null?void 0:a.materialList)&&a.materialList.map(e=>t(P,{center:!0,isLink:!0,clickable:!1},{title:()=>t("div",{class:c.materialSection},[t("img",{src:D(e),class:c.iconMaterial},null),e.name])})),Array.isArray(a==null?void 0:a.children)&&t(H,{id:l.query.id,search:o.search,list:a.children,collapse:a.collapse,"onUpdate:collapse":e=>{a.collapse=e},onHandleClick:e=>{Z(e)}},null)]),"right-icon":()=>t("i",{class:[c.arrow,o.parentCollapse===a.coursewareDetailId?c.arrowActive:""]},null)})))?r:{default:()=>[r]})]}),o.loading&&t("div",null,[t(q,{animationData:F,class:c.finch},null)]),!o.loading&&!o.list.length&&t(N,{projectType:"tenant",btnStatus:!1,tips:"\u6682\u65E0\u641C\u7D22\u7ED3\u679C"},null)])])}}});export{Me as default};