/* empty css *//* empty css */import{u as e,_ as a}from"./useOpen-a24750bc.js";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang-8d4d2c2d.js";import{u as l}from"./useGetList-10bd17fb.js";/* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css */import{d as t,q as r,n as o,z as i,o as d,c as p,e as u,Z as m,f as n,l as c,w as _,a as v,H as f,t as y,b as j,F as b,aa as g,X as w,ab as h,a2 as x,_ as k}from"./index-fe6c8641.js";/* empty css *//* empty css */import"./index-7cd89372.js";/* empty css *//* empty css */const V={class:"flex flex-col justify-between w-full sm:flex-row",style:{width:"100%"}},q={class:"table-default",style:{width:"100%"}},z={id:"my-player",class:"video-js",controls:"",autoplay:"",preload:"auto",ref:"myVideo"},C=["src"],F=k(t({__name:"detail",props:{primary:String|Number},setup(t){const k=t,F=r({}),G=r(!1),{data:H,query:I,search:L,reset:O,loading:S}=l("videoStock/episode/list");e(),k.primary&&(I.value.video_id=k.primary.id);const U=o((()=>{var e;return null==(e=H.value)?void 0:e.data}));return i((()=>{k.primary,L()})),(e,l)=>{const t=g,r=w,o=h,i=s,k=a,H=x;return d(),p(b,null,[u("div",V,[u("div",q,[m((d(),c(o,{data:n(U),class:"w-full mt-3",style:{width:"100%"}},{default:_((()=>[v(t,{prop:"series_name",label:"章节名称"}),v(t,{prop:"is_charge",label:"是否付费"},{default:_((e=>[u("span",{class:f(e.row.is_charge?"text-red-600":"text-green-300")},y(e.row.is_charge?"【付费】":"【免费】"),3)])),_:1}),v(t,{prop:"duration_str",label:"章节时长"}),v(t,{label:"操作",width:"200"},{default:_((e=>[v(r,{link:"",type:"primary",size:"small",onClick:a=>{return s=e.row,F.value=s,void(G.value=!0);var s}},{default:_((()=>[j("播放")])),_:2},1032,["onClick"])])),_:1})])),_:1},8,["data"])),[[H,n(S)]]),v(i)])]),v(k,{modelValue:G.value,"onUpdate:modelValue":l[0]||(l[0]=e=>G.value=e),title:"视频","destroy-on-close":"",height:"100%"},{default:_((()=>[u("video",z,[u("source",{src:F.value.public_video_url,type:"video/mp4"},null,8,C)],512)])),_:1},8,["modelValue"])],64)}}}),[["__scopeId","data-v-15c3c80f"]]);export{F as default};