/* empty css             *//* empty css                   */import{_ as e}from"./index-9f9af49f.js";/* empty css                  *//* empty css                   */import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-66f33117.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 s,p as l,C as r,m as t,x as i,ao 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 _,X as y,f,l as j,G as g,F as x,D as b,aA as h,a8 as w,U as k,a9 as V,v as C,a0 as S,av as N,aw as q,_ as z}from"./index-0ffeeea6.js";import{u as O}from"./useGetList-07470d8e.js";import U from"./detailForm-9aa9bd3e.js";import"./index-44ccf907.js";/* empty css                      *//* empty css                 *//* empty css                  *//* empty css                     */import"./index-d821df42.js";import"./http-ffb58baa.js";import"./index-f8a69d0c.js";/* empty css                 *//* empty css                   */const F=e=>(N("data-v-a84d11ad"),e=e(),q(),e),I=F((()=>u("div",{class:"card-header"},[u("span",null,"简介")],-1))),J={class:"flex"},A={class:"flex items-center"},G={class:"text-lg font-bold text-blue-400"},P={class:"ml-3"},D={class:"font-bold"},E={class:"flex items-center mt-2"},H=F((()=>u("span",null," 集数： ",-1))),L={class:"flex items-center font-bold"},X={key:0},$={class:""},B=F((()=>u("span",null,"/",-1))),K={class:""},M={class:"mt-2"},Q={class:"font-bold note"},R={class:"flex flex-col justify-between w-full sm:flex-row",style:{width:"100%"}},T={class:"table-default",style:{width:"100%"}},W={id:"my-player",class:"video-js",controls:"",autoplay:"",preload:"auto",ref:"myVideo"},Y=["src"],Z=z(s({__name:"detail",props:{primary:String|Number},setup(s){var N,q;const z=s,F=l((()=>{var e,a,s;return(null==(a=null==(e=JSON.parse(r.get("nav_data")))?void 0:e.advertiser)?void 0:a.miniProgramIds)&&(null==(s=JSON.parse(r.get("nav_data")))?void 0:s.app)})),Z=t({}),ee=t({}),ae=t(!1),se=t(!1),{data:le,query:re,search:te,reset:ie,loading:oe}=O("videoStock/episode/list");z.primary&&(re.value.video_id=z.primary.id,Z.value.video_id=z.primary.id,Z.value.miniprogram_id=null==(q=null==(N=JSON.parse(r.get("nav_data")))?void 0:N.app)?void 0:q.id);const de=l((()=>{var e;return null==(e=le.value)?void 0:e.data}));return i((()=>{te()})),(s,l)=>{const r=b,t=h,i=w,N=k,q=V,O=a,le=C,re=e,te=o("action"),ie=S;return d(),p(x,null,[n(t,{class:"box-card"},{header:m((()=>[I])),default:m((()=>[u("div",J,[u("div",null,[n(r,{class:"mr-2 rounded-sm",src:z.primary.cover_image,style:{width:"128px",height:"160px"},fit:"cover",lazy:!0},null,8,["src"])]),u("div",null,[u("div",A,[u("span",G,c(z.primary.name),1),u("div",P,[v(" 剧号： "),u("span",D,c(z.primary.id),1)])]),u("div",E,[H,u("div",L,[1==z.primary.update_type?(d(),p("div",X,[u("span",$,c(z.primary.updated_episode_num),1),B])):_("",!0),u("div",null,[u("span",K,c(z.primary.total_episode_num),1)]),u("span",null," 【 "+c(z.primary.update_type_str)+" 】 ",1)])]),u("div",M,[v(" 简介： "),u("span",Q,c(z.primary.note),1)])])])])),_:1}),u("div",R,[u("div",T,[y((d(),j(q,{data:f(de),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(N,{link:"",type:"primary",size:"small",onClick:a=>{return s=e.row,ee.value=s,void(ae.value=!0);var s}},{default:m((()=>[v("播放")])),_:2},1032,["onClick"]),f(F)?y((d(),j(N,{key:0,link:"",type:"primary",size:"small",onClick:a=>{return s=e.row,ee.value=s,Z.value.series_sequence=s.series_sequence,Z.value.series_name=s.series_name,void(se.value=!0);var s}},{default:m((()=>[v("创建推广链接")])),_:2},1032,["onClick"])),[[te,"tuiguang.Promotion.add"]]):_("",!0)])),_:1})])),_:1},8,["data"])),[[ie,f(oe)]]),n(O)])]),n(le,{draggable:"",modelValue:ae.value,"onUpdate:modelValue":l[0]||(l[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",W,[u("source",{src:ee.value.public_video_url,type:"video/mp4"},null,8,Y)],512)])),_:1},8,["modelValue"]),n(re,{modelValue:se.value,"onUpdate:modelValue":l[1]||(l[1]=e=>se.value=e),title:"创建推广链接","destroy-on-close":""},{default:m((()=>[n(U,{primary:Z.value},null,8,["primary"])])),_:1},8,["modelValue"])],64)}}}),[["__scopeId","data-v-a84d11ad"]]);export{Z as default};
