/* empty css             *//* empty css                   */import{_ as e}from"./index-30b81ccf.js";/* empty css                  *//* empty css                   */import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-bc7fd1e2.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                  *//* empty css                     *//* empty css                  *//* empty css                *//* empty css                        */import{d as l,p as s,C as r,m as t,x as i,an as o,o as d,c as p,a as n,w as m,e as u,t as c,b as v,z as _,W as y,f,l as j,G as g,F as b,D as x,ax as h,a7 as w,S as k,a8 as V,v as C,$ as S,az as z,aA as N,_ as q}from"./index-2b50ecca.js";import{u as J}from"./useGetList-927e47a1.js";import O from"./detailForm-095c35eb.js";import"./index-a921dba7.js";/* empty css                      *//* empty css                 *//* empty css                  *//* empty css                     */import"./index-df416b18.js";import"./http-aa208300.js";import"./index-24473529.js";/* empty css                 *//* empty css                   */const D=e=>(z("data-v-5b6ce8d5"),e=e(),N(),e),F=D((()=>u("div",{class:"card-header"},[u("span",null,"简介")],-1))),G={class:"flex"},I={class:"flex items-center"},P={class:"text-lg font-bold text-blue-400"},U={class:"ml-3"},$={class:"font-bold"},A={class:"flex items-center mt-2"},K=D((()=>u("span",null," 集数： ",-1))),L={class:"flex items-center font-bold"},Q={key:0},T={class:""},W=D((()=>u("span",null,"/",-1))),X={class:""},Y={class:"mt-2"},Z={class:"font-bold note"},B={class:"flex flex-col justify-between w-full sm:flex-row",style:{width:"100%"}},E={class:"table-default",style:{width:"100%"}},H={id:"my-player",class:"video-js",controls:"",autoplay:"",preload:"auto",ref:"myVideo"},M=["src"],R=q(l({__name:"detail",props:{primary:String|Number},setup(l){var z,N;const q=l,D=s((()=>{var e,a,l;return(null==(a=null==(e=JSON.parse(r.get("nav_data")))?void 0:e.advertiser)?void 0:a.miniProgramIds)&&(null==(l=JSON.parse(r.get("nav_data")))?void 0:l.app)})),R=t({}),ee=t({}),ae=t(!1),le=t(!1),{data:se,query:re,search:te,reset:ie,loading:oe}=J("videoStock/episode/list");q.primary&&(re.value.video_id=q.primary.id,R.value.video_id=q.primary.id,R.value.miniprogram_id=null==(N=null==(z=JSON.parse(r.get("nav_data")))?void 0:z.app)?void 0:N.id);const de=s((()=>{var e;return null==(e=se.value)?void 0:e.data}));return i((()=>{te()})),(l,s)=>{const r=x,t=h,i=w,z=k,N=V,J=a,se=C,re=e,te=o("action"),ie=S;return d(),p(b,null,[n(t,{class:"box-card"},{header:m((()=>[F])),default:m((()=>[u("div",G,[u("div",null,[n(r,{class:"mr-2 rounded-sm",src:q.primary.cover_image,style:{width:"128px",height:"160px"},fit:"cover",lazy:!0},null,8,["src"])]),u("div",null,[u("div",I,[u("span",P,c(q.primary.name),1),u("div",U,[v(" 剧号： "),u("span",$,c(q.primary.id),1)])]),u("div",A,[K,u("div",L,[1==q.primary.update_type?(d(),p("div",Q,[u("span",T,c(q.primary.updated_episode_num),1),W])):_("",!0),u("div",null,[u("span",X,c(q.primary.total_episode_num),1)]),u("span",null," 【 "+c(q.primary.update_type_str)+" 】 ",1)])]),u("div",Y,[v(" 简介： "),u("span",Z,c(q.primary.note),1)])])])])),_:1}),u("div",B,[u("div",E,[y((d(),j(N,{data:de.value,class:"w-full mt-3",style:{width:"100%"}},{default:m((()=>[n(i,{prop:"series_name",label:"章节名称"}),n(i,{prop:"is_charge",label:"是否付费"},{default:m((e=>[u("span",{class:g(e.row.is_charge?"text-red-600":"text-green-300")},c(e.row.is_charge?"【付费】":"【免费】"),3)])),_:1}),n(i,{prop:"duration_str",label:"章节时长"}),n(i,{label:"操作",width:"200"},{default:m((e=>[n(z,{link:"",type:"primary",size:"small",onClick:a=>{return l=e.row,ee.value=l,void(ae.value=!0);var l}},{default:m((()=>[v("播放")])),_:2},1032,["onClick"]),D.value?y((d(),j(z,{key:0,link:"",type:"primary",size:"small",onClick:a=>{return l=e.row,ee.value=l,R.value.series_sequence=l.series_sequence,R.value.series_name=l.series_name,void(le.value=!0);var l}},{default:m((()=>[v("创建推广链接")])),_:2},1032,["onClick"])),[[te,"tuiguang.Promotion.add"]]):_("",!0)])),_:1})])),_:1},8,["data"])),[[ie,f(oe)]]),n(J)])]),n(se,{draggable:"",modelValue:ae.value,"onUpdate:modelValue":s[0]||(s[0]=e=>ae.value=e),"align-center":"","append-to-body":"",width:"500px",center:"","show-close":!1,style:{background:"none","box-shadow":"none"},"destroy-on-close":""},{default:m((()=>[u("video",H,[u("source",{src:ee.value.public_video_url,type:"video/mp4"},null,8,M)],512)])),_:1},8,["modelValue"]),n(re,{modelValue:le.value,"onUpdate:modelValue":s[1]||(s[1]=e=>le.value=e),title:"创建推广链接","destroy-on-close":""},{default:m((()=>[n(O,{primary:R.value},null,8,["primary"])])),_:1},8,["modelValue"])],64)}}}),[["__scopeId","data-v-5b6ce8d5"]]);export{R as default};
