import{d as j,ag as N,bJ as w,c as t,F as A,g as m,q as g,e as T,r as C,Z as q,R as E,$ as L,ai as Q,_ as R,ak as B,al as H,m as _,ah as F,aj as U,P as V}from"./index.3b0304e1.js";import{O as k}from"./index.454c666f.js";import{i as K}from"./icon-or.620acfd8.js";import{i as W}from"./icon_teacher.df08d662.js";import{i as z}from"./icon-muit-message.0a72e92d.js";import{C as O}from"./index.ff3f298b.js";import{I as S}from"./index.710cd200.js";import{G as x,a as y}from"./index.53bfa96a.js";import{S as X,a as Y,O as J}from"./index.43a7347c.js";import{L as Z}from"./index.179b8d2a.js";import{S as M,a as P}from"./index.ce8d626c.js";import{C as $}from"./index.ead63c4f.js";import{T as tt,a as D}from"./index.c9ab1bb5.js";import{P as et}from"./index.49feb9e9.js";import"./plyr.min.22fd58dd.js";/* empty css */import"./use-tab-status.e36e4d74.js";import"./index.409ae793.js";import"./Picker.66dfa715.js";const st="_mineOrchestra_125jq_1",at="_select_125jq_5",rt="_icon_125jq_8",ot="_tabs_125jq_24",ct="_content_125jq_37";var v={mineOrchestra:st,select:at,icon:rt,tabs:ot,content:ct};const lt="_myClass_175qp_1",it="_itemDiv_175qp_4",nt="_userContainer_175qp_10",ut="_iconImg_175qp_17",pt="_messageImg_175qp_25",dt="_tag_175qp_29",ht="_content_175qp_56",mt="_teacherName_175qp_60",ft="_grid_175qp_63",gt="_title_175qp_63",vt="_name_175qp_69",At="_returnOrchestra_175qp_76";var l={myClass:lt,itemDiv:it,userContainer:nt,iconImg:ut,messageImg:pt,tag:dt,content:ht,teacherName:mt,grid:ft,title:gt,name:vt,returnOrchestra:At},St=j({name:"my-orchestra",props:{orchestraData:{type:Object,default:()=>({})},orchestraName:{type:String,default:""},list:{type:Object,default:()=>[]}},setup(u){const s=N(),{orchestraName:h}=w(u);console.log("\u{1F680} ~ orchestraName",h.value);const f=async i=>{console.log(i),T({api:"joinChatGroup",content:{type:"multi",id:i.imGroupId}})},r=i=>{console.log("\u{1F680} ~ item",i),m.platformType!="STUDENT"&&T({api:"open_app_page",content:{action:"app",pageTag:"classDetail",url:"",params:JSON.stringify({classId:i.classGroupId})}})},{list:o}=w(u);return()=>{var i,c,d;return t("div",{class:l.myClass},[Array.isArray(o.value)&&o.value.map(a=>t("div",{class:l.itemDiv,onClick:()=>r(a)},[t(O,{center:!0,class:l.userContainer},{icon:()=>t(S,{src:a.teacherAvatar||W,class:l.iconImg,fit:"cover"},null),title:()=>t(A,null,[m.platformType=="TEACHER"?t(A,null,[t("div",{class:l.content},[t("div",{class:["van-ellipsis",l.teacherName]},[a.classGroupName])]),t("div",{class:"van-ellipsis van-cell__label"},[h.value])]):t(A,null,[t("div",{class:l.content},[a.teacherName?t("div",{class:["van-ellipsis",l.teacherName]},[a.teacherName]):t("div",{style:{color:"rgba(178,178,178,1)"}},[g("\u6682\u65E0\u4F34\u5B66\u8001\u5E08")])]),t("div",{class:"van-cell__label"},[t("span",{class:l.tag},[a.classGroupName])])])]),value:()=>t(S,{class:l.messageImg,src:z,onClick:e=>{e.stopPropagation(),f(a)}},null)}),t(x,{border:!1,columnNum:3,class:l.grid},{default:()=>[t(y,{class:"gridBorderRight"},{default:()=>[t("p",{class:l.title},[a.studentNum||0]),t("p",{class:l.name},[g("\u5B66\u5458\u4EBA\u6570")])]}),t(y,{class:"gridBorderRight"},{default:()=>[t("p",{class:[l.title]},[a.notStartCourseNum||0]),t("p",{class:l.name},[g("\u5269\u4F59\u8BFE\u65F6")])]}),t(y,null,{default:()=>[t("p",{class:l.title},[a.totalCourseNum||0]),t("p",{class:l.name},[g("\u603B\u8BFE\u65F6")])]})]})])),m.platformType=="STUDENT"&&t("div",{class:"btnGroup",style:"padding-top: 12px; text-align: center;"},[(((i=u.orchestraData)==null?void 0:i.status)==="REGISTER"||((c=u.orchestraData)==null?void 0:c.status)==="LEARNING")&&t("span",{class:l.returnOrchestra,onClick:()=>{var a;s.push({path:"/apply-withdrawal",query:{id:(a=u.orchestraData)==null?void 0:a.orchestraId}})}},[g("\u7533\u8BF7\u9000\u56E2")]),((d=u.orchestraData)==null?void 0:d.status)==="AUTH"&&t("span",{class:l.returnOrchestra},[g("\u7533\u8BF7\u9000\u56E2\u4E2D")])])])}}});const yt="_orchestraStory_1jvjc_1",Ct="_cellGroup_1jvjc_5",Et="_storySteps_1jvjc_15",_t="_stepTimes_1jvjc_25",jt="_stepTime_1jvjc_25",It="_stepEdit_1jvjc_37",wt="_content_1jvjc_48",Tt="_storySwipe_1jvjc_54",Dt="_swipeImg_1jvjc_58",Nt="_iconActive_1jvjc_68",Lt="_iconInactive_1jvjc_72";var p={orchestraStory:yt,cellGroup:Ct,storySteps:Et,stepTimes:_t,stepTime:jt,stepEdit:It,content:wt,storySwipe:Tt,swipeImg:Dt,iconActive:Nt,iconInactive:Lt},Bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAA8hJREFUSEuFVs9rVFcU/s59YzI2WBCjLZN0YSE6aq0gtZZqKXQXLREpdSWVFpSChmbRPyBQcGtEoaALS5G2uBGF6KLduCi4KNEMSTsQqpMYf9RGbZkqrXPvOeX+ej9mJu0deI95797vO+fec77vEf5jPJu7PljiZB8Be1n4dQL1QwQsvERATSCTvEJdemHorcXlYKjbi6f1qUpvScaZ5WMRLkHsLHeBiNiLXyYCArQQnTPKjPdVd99rx+sg0HNTIww+D8EqC+oAU3wL7p4WSAJZEyQHy1t2X86TFAjMrZujzDwhIiogucg7SRxFIPGkYT6DMFbesutUJEkJ9K3pERG+6MBj1D7cQJBti32fEXgi+yM/nYlkf8zEEcjCVEW3VB2QVTZa+9BHnd+SGGVGlGYW5vlsAYI0TQlVeyaOwDRqZ5j5sHsbo4uLjAb9fBPq119AfzwBSEFW94Nf3QjesAlCKj3wtAhsNorOljfvOkIyNz1oEtwWSClfHW7VX39CTX4H9fh3AMqBgxJ/Vwl4zVro94YhK/tyJDELaDbJejKN2lEWOd0OLlojufAl1KOHATgHHklIgdesQ2vPB4DKZ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6God1B6A2DXoPwgKiqGDs4oU5rnTcKpGr7LnX4OnhmQG7wI5thHSBxRoWcst2FEJzY3eIAUjoNAx7aXzsKtabwn2IWBiKTzWL30oE8he9goobuo8mJJklZnyPXvDxIWOaQ/CiR+9VaSUXiyGl0bdBSDXQ1OMVdbcANs/06vIPZ4cDKOm6bOzx+HwN36gEe/AwMLMgBrMfcitkA0UqJC6droGjh7QUGrZjp4DakdXh9UG322Dv85qqH7PwOjpENLfDGkdW4xnma9l6u5ueTDZaJmreD2mfdSjl9/Qbq/r/9WZuT2dN8q0UHRSSqBkFcpAO6vUrCqU1Uhp3qSAbA/plzxvlaVqWZraWaVtDb4PmaZWj4ROXdvXTfVCr+66XTwhR0BzTC8O5x3dX6FUU8zgvdj1elwuKaj5ueW9qwtZXRoD2SWtct+uAml9EplfLsaotoVETMi182chQ5XtQhkT8UFnApdWrmgCKv4H/BmPw5b13qYAAAAASUVORK5CYII=";function bt(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!H(u)}var Gt=j({name:"orchestra-story",props:{orchestraId:{type:String,default:""}},setup(u){const s=C({isClick:!1,list:[],listState:{reshLoading:!1,dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},params:{type:null,page:1,rows:20}}),h=async()=>{try{if(s.isClick)return;s.isClick=!0;const i=await _.post(`${m.platformApi}/orchestraStory/page`,{data:{orchestraId:u.orchestraId},hideLoading:!0});s.listState.loading=!1,s.listState.refreshing=!1;const c=i.data||{};if(s.list.length>0&&c.current===1)return;s.list=s.list.concat(c.rows||[]),s.listState.finished=c.current>=c.pages,s.params.page=c.current+1,s.listState.dataShow=s.list.length>0,s.isClick=!1}catch{s.listState.dataShow=!1,s.listState.finished=!0,s.listState.refreshing=!1,s.isClick=!1}};q(()=>u.orchestraId,()=>{s.params.page=1,s.list=[],s.listState.finished=!1,h()});const f=E([]),r=i=>{f.value.forEach((c,d)=>{d!==i&&c.onStop()})};L(()=>{h()});const o=E([]);return()=>{let i;return t("div",{class:[p.orchestraStory],style:{overflowY:"auto",height:s.listState.dataShow?"auto":"100%"}},[s.listState.dataShow?t(Z,{finished:s.listState.finished,finishedText:" ",class:[p.liveList],onLoad:h,immediateCheck:!1},{default:()=>[t(X,{direction:"vertical",class:[p.storySteps,"storyStepContainer"]},bt(i=s.list.map((c,d)=>t(Y,null,{default:()=>[t("div",{class:p.stepTimes},[t("div",{class:p.stepTime},[Q(c.createTime).format("YYYY\u5E74MM\u6708DD\u65E5")])]),t("p",{class:[p.content,"van-multi-ellipsis--l2"]},[c.content]),t(M,{ref:a=>o.value[d]=a,class:p.storySwipe},{default:()=>[c.attachments&&c.attachments.map(a=>t(P,null,{default:()=>[c.type==="IMAGE"&&t("div",{class:p.swipeImg,style:a.url?{backgroundImage:`url(${a.url})`,backgroundSize:"cover"}:""},null),c.type==="VIDEO"&&t(J,{src:a.url,height:"100%",poster:a.coverImage,class:p.swipeImg,ref:e=>f.value[d]=e,onPlay:()=>r(d),onExitfullscreen:()=>{R(()=>{setTimeout(()=>{o.value.forEach(e=>{e.resize()})},600)})}},null)]}))]})],"inactive-icon":()=>t(S,{src:Bt,class:p.iconInactive},null),"active-icon":()=>t(S,{src:Ot,class:p.iconActive},null)})))?i:{default:()=>[i]})]}):t(B,{btnStatus:!1,tips:"\u6682\u65E0\u4E8B\u8FF9",style:{paddingBottom:"30px"}},null)])}}}),te=j({name:"my-orchestra",setup(u,s){var a;const h=F();N();const f=E(((a=h.query)==null?void 0:a.tab)||"course"),r=C({orchestraList:[],loading:!0,reshLoading:!1,dataShow:!0}),o=C({orchestra:{},orchestraStatus:!1}),i=()=>{r.loading=!0,_.post(`${m.platformApi}/orchestra/studentOrchestra`,{}).then(e=>{Array.isArray(e==null?void 0:e.data)&&(r.orchestraList=e.data.map(n=>({...n,name:n.name||n.orchestraName||"",id:n.id||n.orchestraId||""})),o.orchestra=r.orchestraList[0]||{})}).finally(()=>{setTimeout(()=>{r.loading=!1,r.reshLoading=!1},300)})},c=async()=>{r.loading=!0,_.post(`${m.platformApi}/orchestra/teacherOrchestra`,{}).then(e=>{Array.isArray(e==null?void 0:e.data)&&(r.orchestraList=e.data.map(n=>({...n,name:n.name||n.orchestraName||"",id:n.id||n.orchestraId||""})),o.orchestra=r.orchestraList[0]||{})}).finally(()=>{setTimeout(()=>{r.loading=!1,r.reshLoading=!1},300)})},d=()=>{m.platformType==="STUDENT"?i():m.platformType==="TEACHER"&&c()};return L(()=>{document.documentElement.style.setProperty("--footer-height","0px"),d()}),()=>t("div",{class:[v.mineOrchestra]},[t(k,{onGetHeight:e=>{document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[t(U,{title:"\u6211\u7684\u4E50\u56E2"},null)]}),!!r.orchestraList.length&&t($,{inset:!0},{default:()=>[t(O,{class:v.select,center:!0,isLink:!0,onClick:()=>o.orchestraStatus=!0},{icon:()=>t("img",{class:v.icon,src:K},null),title:()=>t("div",{class:"van-ellipsis"},[o.orchestra.name])})]}),!!r.orchestraList.length&&t(A,null,[t(tt,{active:f.value,"onUpdate:active":e=>f.value=e,class:v.tabs,lazyRender:!0,background:"transparent",animated:!0,swipeable:!0,lineWidth:16,lineHeight:4},{default:()=>[t(D,{name:"course",title:"\u6211\u7684\u73ED\u7EA7"},{default:()=>{var e,n;return[t("div",{class:v.content},[t(St,{orchestraName:((e=o.orchestra)==null?void 0:e.name)||"",list:((n=o.orchestra)==null?void 0:n.classGroupIdList)||[],orchestraData:o.orchestra},null)])]}}),t(D,{name:"deeds",title:"\u4E50\u56E2\u4E8B\u8FF9"},{default:()=>{var e;return[t("div",{class:v.content},[t(Gt,{orchestraId:((e=o.orchestra)==null?void 0:e.id)||""},null)])]}})]})]),!r.loading&&!r.orchestraList.length&&t("div",{class:!r.orchestraList.length&&"emptyRootContainer",style:{minHeight:"calc(100vh - var(--header-height))"}},[t(B,{btnStatus:!1,tips:"\u6682\u65E0\u4E50\u56E2"},null)]),t(V,{show:o.orchestraStatus,"onUpdate:show":e=>o.orchestraStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(et,{columns:r.orchestraList,columnsFieldNames:{text:"name",value:"id"},onCancel:()=>o.orchestraStatus=!1,onConfirm:({selectedValues:e})=>{var I;const n=e[0]||"";if(o.orchestraStatus=!1,n==((I=o.orchestra)==null?void 0:I.id))return;const b=r.orchestraList.find(G=>G.id==n)||{};o.orchestra=b}},null)]})])}});export{te as default};