import{_ as e}from"../warning/warning.B4Eab-Me.js";import{E as a,v as l,i as s,k as t,l as o,j as i,X as r,B as n,C as c,o as d,O as p}from"../element-plus/element-plus.DqqeXZzT.js";import{o as u,c as m,a as f,d as v,r as _,i as h,n as b,J as g,K as y,L as w,T as j,h as k,Y as O,S as x,u as C,U as M,R as N,ba as L,b8 as I,a2 as B,Q as T,a9 as V,j as S,w as R,ae as W,O as P}from"../@vue/@vue.lccsL1Mu.js";import{D}from"../_dialog/_dialog.ium6sOk7.js";import{S as $}from"../_select/_select.DVQW4rAo.js";import{I as z}from"../_input/_input.DPT4C86A.js";import{A as F}from"../api/api.BtQEnbVN.js";import{_ as A}from"../_drawer/_drawer.C0e253H5.js";import{_ as E,g as H,h as U}from"../../assets/index-DYMYfyXS.js";import{b as Y}from"../axios/axios.CUN3se9v.js";import{_ as Q,a as J}from"../tagBlock/tagBlock.Cf6XNaIm.js";import{a as K}from"../staticTools/staticTools.BUMUrNJJ.js";const X={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},q=[f("path",{fill:"currentColor",d:"m512 747.84l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08l184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256l99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96l221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1)];const G={name:"ep-star",render:function(e,a){return u(),m("svg",X,q)}},Z={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ee=[f("path",{fill:"currentColor",d:"M283.84 867.84L512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08l184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1)];const ae={name:"ep-star-filled",render:function(e,a){return u(),m("svg",Z,ee)}},le={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},se=[f("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768zm-48-247.616L668.608 512L464 375.616v272.768zm10.624-342.656l249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"},null,-1)];const te={name:"ep-video-play",render:function(e,a){return u(),m("svg",le,se)}},oe={class:"dialogBox"},ie=v({__name:"newCollect",props:{title:{default:"新建收藏夹"},propInfo:{default:{}}},emits:["init"],setup(e,{expose:s,emit:t}){const o=e,{proxy:i}=k();i.$NumberHandle;const r=_(),n=_(),c=_(!1),d=async()=>{if(""==r.value.value)return void a.error("名称为必填项");c.value=!0;let e=F.collect_clip_add;const l=O({name:r.value.value,description:n.value.value});"编辑收藏夹"==o.title&&(l.id=o.propInfo.id,e=F.collect_clip_edit);let s=await i.$http.post(e,l);c.value=!1,s&&"0"==s.errNo?(s.rst,p.value=!1,t("init")):a.error(s.errMsg)},p=_(!1);return s({switchShow:e=>{p.value=e,e&&b((()=>{"编辑文件夹"==o.title?(r.value.value=o.propInfo.name,n.value.value=o.propInfo.description):(r.value.value="",n.value.value="")}))}}),h((()=>{b((()=>{}))})),(a,s)=>{const t=l;return u(),g(D,{ref:"DialogRef_editType",dialogVisible:p.value,onConfirm:d,onClose:s[0]||(s[0]=e=>p.value=!1),width:"600px","dialog-title":e.title},{content:y((()=>[w((u(),m("div",oe,[j(z,{ref_key:"nameRef",ref:r,spanTitleWidth:"80px",title:"名称",maxLength:"50",haveTag:!0},null,512),j(z,{class:"tMar10",ref_key:"markRef",ref:n,spanTitleWidth:"80px",title:"备注",iptType:"textarea",iptRow:"3"},null,512)])),[[t,c.value]])])),_:1},8,["dialogVisible","dialog-title"])}}}),re={class:"dialogBox"},ne={class:"flex"},ce=f("div",{style:{width:"90px"},class:"f16"},"素材",-1),de={key:0},pe={key:1},ue={class:"flex tMar20"},me=v({__name:"collect",props:{num:{default:0},name:{default:""},fids:{default:[]}},emits:["close","init"],setup(e,{expose:s,emit:t}){const o=e,{proxy:i}=k(),r=i.$NumberHandle,n=O({collectList:[]}),c=async()=>{let e=await i.$http.get(F.collect_select_list);if(e&&"0"==e.errNo){let a=e.rst;n.collectList=a}else a.error(e.errMsg)},d=_(!1),p=_(),v=async()=>{if(!p.value.value)return void a.error("请选择文件夹");d.value=!0;const e=O({fav_id:p.value.value?Number(p.value.value):""});let l=[];"number"==typeof o.fids?(l.push(o.fids),e.mf_ids=l):e.mf_ids=o.fids;let s=await i.$http.post(F.materialManage_addCollect,e);d.value=!1,s&&"0"==s.errNo?(s.rst,L.value=!1,a.success(s.errMsg),t("init"),t("close")):a.error(s.errMsg)},g=_(),N=()=>{g.value.switchShow(!0)},L=_(!1);return s({switchShow:e=>{L.value=e,e&&b((()=>{p.value.value="",c()}))}}),h((()=>{b((()=>{}))})),(a,s)=>{const t=l;return u(),m(M,null,[j(D,{ref:"DialogRef_editType",dialogVisible:L.value,onConfirm:v,onClose:s[0]||(s[0]=e=>L.value=!1),width:"600px",height:"580px","dialog-title":"添加到收藏夹"},{content:y((()=>[w((u(),m("div",re,[f("div",ne,[ce,e.name?(u(),m("div",de,x(e.name||"-"),1)):(u(),m("div",pe,"已选择"+x(C(r)(e.num)||0)+"个",1))]),f("div",ue,[j($,{ref_key:"collectRef",ref:p,title:"选择收藏夹",spanTitleWidth:"90px",selectWidth:"360px",optObj:{k:"id",la:"name",val:"id"},options:n.collectList},null,8,["options"]),f("span",{class:"c-theme lMar10 pointer",onClick:N},"新建收藏夹")])])),[[t,d.value]])])),_:1},8,["dialogVisible"]),j(ie,{ref_key:"newCollectRef",ref:g,onInit:c},null,512)],64)}}}),fe=e=>(L("data-v-fe54c4de"),e=e(),I(),e),ve=fe((()=>f("div",{class:"flex_between"},[f("div",{class:"c-0F161E f18 f-wei-600"},"提示")],-1))),_e={class:"container"},he=fe((()=>f("div",{class:"line21"}," 素材在素材库中已经存在,确定将执行: ",-1))),be={class:"tMar10"},ge=N("自动生成衍生素材"),ye={class:"dialog-footer"},we=N("确定"),je=E(v({__name:"editTipsCopy",props:{propsObj:{default:{}}},emits:["confirm"],setup(e,{expose:a,emit:i}){const{proxy:r}=k();r.$NumberHandle;const n=_("1"),c=_(!1),d=()=>{p.value=!1,i("confirm")},p=_(!1);return a({switchShow:e=>{p.value=e}}),h((()=>{b((()=>{}))})),(e,a)=>{const i=s,r=t,v=o,_=l;return u(),g(v,{"model-value":p.value,"append-to-body":"",width:"600px",onClose:a[1]||(a[1]=e=>p.value=!1),"show-close":!1,draggable:""},{header:y((({close:e})=>[ve])),footer:y((()=>[f("span",ye,[j(r,{type:"primary",onClick:d},{default:y((()=>[we])),_:1})])])),default:y((()=>[w((u(),m("div",_e,[he,f("div",be,[j(i,{label:"1",size:"large",modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e)},{default:y((()=>[ge])),_:1},8,["modelValue"])])])),[[_,c.value]])])),_:1},8,["model-value"])}}}),[["__scopeId","data-v-fe54c4de"]]),ke=e=>(L("data-v-579d723b"),e=e(),I(),e),Oe=ke((()=>f("div",{class:"flex_between"},[f("div",{class:"c-0F161E f18 f-wei-600"},"提示")],-1))),xe={class:"container"},Ce=ke((()=>f("div",{class:"line21"}," 替换素材后,旧素材的历史数据将被全部清空,新素材只有在用于广告投放后才会产生素材数据。确认替换现在的素材信息吗? ",-1))),Me={class:"tMar10"},Ne=N("保留原有素材"),Le=N("删除原有素材"),Ie={class:"dialog-footer"},Be={class:"btnBox"},Te=N("确定"),Ve=["onChange"],Se=E(v({__name:"editTips",props:{propsObj:{default:{}}},emits:["init","updateVal"],setup(e,{expose:r,emit:n}){const c=e,{proxy:d}=k();d.$NumberHandle;const p=_(),v=O({argObj:{}}),g=()=>{V(v.argObj)},x=_("1"),C=_(),N=_(!1),L=async e=>{const a=e.target.files;a&&Array.from(a).forEach((e=>{const a=new FormData;let l=H("admin_id"),s=Number(H("ttl")),t=H("sign");a.append("material_file",e),a.append("admin_id",l),a.append("ttl",s),a.append("sign",t),T(a)}))},I=_(!1),T=e=>{N.value=!0,Y.post("/api/material/checkFile",e,{headers:{"Content-Type":"multipart/form-data"}}).then((e=>{N.value=!1,I.value=!0,e.data&&"0"==e.data.errNo?(v.argObj=e.data.rst,V(v.argObj)):"1122"==e.data.errNo?(p.value.switchShow(!0),e.data.rst.ind.file_name+="_衍生",v.argObj=e.data.rst.ind):a.error(e.data.errMsg)})).catch((e=>{N.value=!1,a.error("图片上传失败")})).finally((()=>{N.value=!1,C.value.value=""}))},V=async e=>{const l=O({file_type:e.file_type,local_file:e.local_file,file_mime:e.file_mime});let s=await d.$http.post(F.material_upload_upload,Object.assign(l,c.propsObj));if(S.value=!1,N.value=!1,s&&"0"==s.errNo){let e=s.rst;n("updateVal",e),a.success(s.errMsg)}else a.error(s.errMsg)},S=_(!1);return r({switchShow:e=>{S.value=e,e&&(x.value="1")},type:x,pageInfo:v,isEdit:I}),h((()=>{b((()=>{}))})),(e,a)=>{const r=s,n=i,c=t,d=o,v=l;return u(),m(M,null,[j(d,{"model-value":S.value,"append-to-body":"",width:"600px",onClose:a[1]||(a[1]=e=>S.value=!1),"show-close":!1,draggable:""},{header:y((({close:e})=>[Oe])),footer:y((()=>[f("span",Ie,[f("div",Be,[j(c,{type:"primary",class:"btnCss"},{default:y((()=>[Te])),_:1}),f("input",{ref_key:"fileRef",ref:C,type:"file",class:"uploadIpt",name:"file",multiple:"",onChange:B(L,["prevent"]),accept:"png,jpg,jpeg,gif,mp4,mpeg,3pg,avi,mov"},null,40,Ve)])])])),default:y((()=>[w((u(),m("div",xe,[Ce,f("div",Me,[j(n,{modelValue:x.value,"onUpdate:modelValue":a[0]||(a[0]=e=>x.value=e)},{default:y((()=>[j(r,{label:"1",size:"large"},{default:y((()=>[Ne])),_:1}),j(r,{label:"2",size:"large"},{default:y((()=>[Le])),_:1})])),_:1},8,["modelValue"])])])),[[v,N.value]])])),_:1},8,["model-value"]),j(je,{ref_key:"editTipsCopyRef",ref:p,onConfirm:g},null,512)],64)}}}),[["__scopeId","data-v-579d723b"]]),Re=e=>(L("data-v-2b0475d8"),e=e(),I(),e),We={class:"uploadMaterialBox"},Pe={class:"itemBox"},De=Re((()=>f("div",{class:"title"},"基本信息",-1))),$e={class:"contBox"},ze={class:"itemBox"},Fe=Re((()=>f("div",{class:"title"},"上传区域",-1))),Ae={class:"contBox",style:{height:"260px"}},Ee=["src"],He=["src"],Ue={class:"replaceBtn flex"},Ye=N("替换素材"),Qe={class:"itemBox"},Je={class:"contBox"},Ke=E(v({__name:"editMaterial",props:{propsParams:{default:{}},idName:{default:""},folderIdName:{default:""}},emits:["init"],setup(e,{expose:s,emit:o}){const i=e,{proxy:r}=k();r.$NumberHandle;const n=O({createrList:[],editorList:[],chooseList:[],tagList:[],tagChooseVal:[],editTipsObj:{},ossObj:{}}),c=_(),d=_(),p=_(),v=_(),g=_(),x=_(),C=_(!1),M=_(),N=async e=>{await I(),n.editTipsObj={mf_id:i.propsParams[i.idName],name:c.value.value,idea_man:g.value.value,designer:x.value.value,tags:n.tagChooseVal,description:d.value.value,folder_id:p.value.idVal},e&&M.value.switchShow(!0)},L=e=>{n.ossObj=e},I=()=>new Promise(((e,l)=>{""==c.value.value?(a.error("请输入素材名称!"),l()):p.value.idVal?""==g.value.value?(a.error("请选择创意人!"),l()):""==x.value.value?(a.error("请选择设计师!"),l()):e():(a.error("请选择目录!"),l())})),B=async e=>{const l=O({file_name:e.file_name,file_type:e.file_type,file_md5:e.file_md5,local_file:e.local_file,file_mime:e.file_mime});let s=await r.$http.post(F.material_upload_save,Object.assign(l,n.editTipsObj));s&&"0"==s.errNo?s.rst:a.error(s.errMsg)},V=async()=>{await(async()=>{await N(!1),C.value=!0;let e=await r.$http.post(F.materialManage_edit,n.editTipsObj);C.value=!1,e&&"0"==e.errNo?(e.rst,R.value=!1):a.error(e.errMsg)})(),M.value.isEdit&&("2"==M.value.type?await S(M.value.pageInfo.argObj):await B(M.value.pageInfo.argObj)),o("init")},S=async e=>{let l=[];l.push(i.propsParams[i.idName]);const s=O({mf_ids:l});let t=await r.$http.post(F.materialManage_batchDele,s);t&&"0"==t.errNo?(t.rst,await B(e)):a.error(t.errMsg)};_(!1),_(),_("修改创意人");const R=_(!1);return s({switchShow:e=>{R.value=e,e&&b((()=>{(async()=>{let e=await r.$http.get(F.account_list);e&&"0"==e.errNo?(n.createrList=e.rst,n.editorList=e.rst):a.error(e.errMsg)})(),p.value.initAllAlbum(),v.value.init(),c.value.value=i.propsParams.name,g.value.value=Number(i.propsParams.idea_man),x.value.value=Number(i.propsParams.designer),d.value.value=i.propsParams.description,p.value.idVal=i.propsParams.folder_id,p.value.value=i.propsParams.folder_name;let e=[];i.propsParams.tags.forEach((a=>{e.push(a.tag_id)})),v.value.initVal(e),n.tagChooseVal=e,L({})}))}}),h((()=>{b((()=>{}))})),(a,s)=>{const o=t,i=l;return w((u(),m("div",We,[j(A,{drawerShow:R.value,onClose:s[3]||(s[3]=e=>R.value=!1),title:"编辑素材",drawerSize:"90%"},{content:y((()=>[f("div",Pe,[De,f("div",$e,[j(z,{ref_key:"nameRef",ref:c,spanTitleWidth:"120px",inputWidth:"490px",title:"素材名称",maxLength:"140",haveTag:!0},null,512),j(Q,{class:"tMar20",spanTitleWidth:"120px",selectWidth:"490px",ref_key:"CataRef",ref:p,title:"素材目录",haveTag:!0,isChooseAlbum:!1},null,512),j($,{ref_key:"createrRef",ref:g,class:"tMar20",clearFlag:!0,haveTag:!0,title:"创意人(编导)",spanTitleWidth:"120px",selectWidth:"490px",optObj:{k:"id",la:"username",val:"id"},options:n.createrList},null,8,["options"]),j($,{ref_key:"editorRef",ref:x,clearFlag:!0,haveTag:!0,title:"设计师(剪辑)",spanTitleWidth:"120px",selectWidth:"490px",class:"tMar20 bMar20",optObj:{k:"id",la:"username",val:"id"},options:n.editorList},null,8,["options"]),j(J,{ref_key:"tagRef",ref:v,title:"素材标签",spanTitleWidth:"120px",selectWidth:"490px",largeHeight:!0,onHandleChange:s[0]||(s[0]=e=>{n.tagChooseVal=e})},null,512),j(z,{class:"tMar20",ref_key:"remarkRef",ref:d,spanTitleWidth:"120px",title:"素材备注",inputWidth:"490px"},null,512)])]),f("div",ze,[Fe,f("div",Ae,[f("div",{class:"uploadBox",onClick:s[1]||(s[1]=e=>N(!0))},[2==(n.ossObj&&n.ossObj.mtype?n.ossObj.mtype:e.propsParams.mtype)?(u(),m("img",{key:0,src:n.ossObj&&n.ossObj.oss_url?n.ossObj.oss_url:e.propsParams.oss_url,alt:"",class:"img"},null,8,Ee)):T("",!0),1==(n.ossObj&&n.ossObj.mtype?n.ossObj.mtype:e.propsParams.mtype)?(u(),m("video",{key:1,controls:!1,class:"img",src:n.ossObj&&n.ossObj.oss_url?n.ossObj.oss_url:e.propsParams.oss_url},null,8,He)):T("",!0),f("div",Ue,[j(o,{type:"primary",style:{margin:"0 auto"}},{default:y((()=>[Ye])),_:1})])])])]),f("div",Qe,[f("div",Je,[f("span",{class:"deleBox btnBox",onClick:s[2]||(s[2]=e=>R.value=!1)},"取消"),f("span",{class:"complateBox btnBox",onClick:V},"确定")])])])),_:1},8,["drawerShow"]),j(Se,{ref_key:"editTipsRef",ref:M,propsObj:n.editTipsObj,onUpdateVal:L},null,8,["propsObj"])])),[[i,C.value]])}}}),[["__scopeId","data-v-2b0475d8"]]),Xe=e=>(L("data-v-f09b78ea"),e=e(),I(),e),qe={class:"detialBox"},Ge={class:"content"},Ze={class:"con_left"},ea={class:"urlBox"},aa=["src"],la=["src"],sa={class:"btnBox"},ta=N("编辑"),oa=N("取消收藏"),ia=N("收藏"),ra=N("下载"),na=N("删除"),ca=Xe((()=>f("div",{class:"line"},null,-1))),da={class:"con_right"},pa={class:"bMar40"},ua={class:"title"},ma={key:0},fa={key:1},va={key:1,class:"flexWrap"},_a={key:0,style:{width:"100%"},class:"bMar25"},ha={class:"name"},ba={class:"val"},ga={key:1,style:{width:"50%"},class:"bMar25"},ya={class:"name"},wa={class:"val"},ja=E(v({__name:"index",props:{propsObj:{default:{}},idName:{default:""},folderIdName:{default:""}},emits:["init"],setup(e,{expose:s,emit:o}){const i=e,{proxy:n}=k();n.$NumberHandle;const c=O({infoList:[{title:"素材信息",info:[{name:"文件名",key:"name",isLine:!0},{name:"素材ID",key:i.idName?i.idName:"filesId"},{name:"创建时间",key:"created_at"},{name:"素材尺寸",key:"sizeType"},{name:"素材大小",key:"file_size"},{name:"素材备注",key:"description"}]},{title:"素材标签",key:"tags",info:[]},{title:"人员信息",info:[{name:"创意人",key:"idea_man_name"},{name:"设计师",key:"designer_name"}]}],chooseList:[]}),d=()=>{W.value=!1,o("init")},p=_(),v=_(),C=()=>{v.value=i.propsObj.name,c.chooseList=[],c.chooseList.push(i.propsObj.filesId),p.value.switchShow(!0)},N=async()=>{c.chooseList=[],c.chooseList.push(i.propsObj.filesId);const e=O({mf_ids:c.chooseList});let l=await n.$http.post(F.materialManage_cancleCollect,e);l&&"0"==l.errNo?(l.rst,d()):a.error(l.errMsg)},L=_(),I=()=>{L.value.switchShow(!0)},B=async()=>{let e=i.propsObj.oss_url,a=i.propsObj.name;if("mp4"==i.propsObj.file_type)thunderLink.newTask({downloadDir:"",tasks:[{name:a,url:e}]});else{var l=document.createElement("a");l.href=e,l.download=a,l.style.display="none",document.body.appendChild(l),l.click(),l.remove()}},S=_(),R=async()=>{S.value=!0,c.chooseList=[],c.chooseList.push(i.propsObj.filesId);const e=O({mf_ids:c.chooseList});let l=await n.$http.post(F.materialManage_batchDele,e);S.value=!1,l&&"0"==l.errNo?(l.rst,W.value=!1,o("init")):a.error(l.errMsg)},W=_(!1);return s({switchShow:e=>{W.value=e}}),h((()=>{b((()=>{}))})),(a,s)=>{const o=t,i=r,n=l;return u(),m("div",qe,[j(A,{drawerShow:W.value,onClose:s[0]||(s[0]=e=>W.value=!1),title:"素材详情",drawerSize:"70%"},{content:y((()=>[w((u(),m("div",Ge,[f("div",Ze,[f("div",ea,[1==e.propsObj.mtype?(u(),m("video",{key:0,src:e.propsObj.oss_url,controls:"",width:"300",height:"500"},null,8,aa)):T("",!0),2==e.propsObj.mtype?(u(),m("img",{key:1,src:e.propsObj.oss_url,alt:"",width:"300"},null,8,la)):T("",!0)]),f("div",sa,[j(o,{onClick:I},{default:y((()=>[ta])),_:1}),1==e.propsObj.if_fav?(u(),g(o,{key:0,onClick:N},{default:y((()=>[oa])),_:1})):T("",!0),0==e.propsObj.if_fav?(u(),g(o,{key:1,onClick:C},{default:y((()=>[ia])),_:1})):T("",!0),j(o,{onClick:B},{default:y((()=>[ra])),_:1}),j(i,{title:"确定后,该项将被删除,是否继续?",onConfirm:R},{reference:y((()=>[j(o,null,{default:y((()=>[na])),_:1})])),_:1})])]),ca,f("div",da,[(u(!0),m(M,null,V(c.infoList,(a=>(u(),m("div",pa,[f("div",ua,x(a.title),1),"素材标签"==a.title?(u(),m("div",ma,[e.propsObj[a.key]&&e.propsObj[a.key].length>0?(u(!0),m(M,{key:0},V(e.propsObj[a.key],(e=>(u(),m("span",{key:e.tag_id,class:"tagBox"},x(e.tag_name),1)))),128)):(u(),m("span",fa," - "))])):(u(),m("div",va,[(u(!0),m(M,null,V(a.info,(a=>(u(),m(M,null,[a.isLine?(u(),m("div",_a,[f("span",ha,x(a.name),1),f("span",ba,x(e.propsObj[a.key]||"-"),1)])):(u(),m("div",ga,[f("span",ya,x(a.name),1),f("span",wa,x(e.propsObj[a.key]||"-"),1)]))],64)))),256))]))])))),256))])])),[[n,S.value]])])),_:1},8,["drawerShow"]),j(me,{ref_key:"collectRef",ref:p,name:v.value,fids:c.chooseList,onInit:d},null,8,["name","fids"]),j(Ke,{ref_key:"editMaterialRef",ref:L,propsParams:e.propsObj,idName:e.idName,onInit:d,folderIdName:e.folderIdName},null,8,["propsParams","idName","folderIdName"])])}}}),[["__scopeId","data-v-f09b78ea"]]),ka={class:"dialogBox"},Oa=v({__name:"refuseDetails",props:{num:{default:0}},emits:["close","init"],setup(e,{expose:s,emit:t}){const o=O({refuseList:[],mf_id:"",descol:[{name:"拒审理由",column:"reject_message",minWidth:"150"},{name:"广告",column:"ad_name",minWidth:"150"},{name:"广告ID",column:"adgroup_id",minWidth:"70"},{name:"广告创建时间",column:"created_time",minWidth:"70"},{name:"账户名称",column:"account_name",minWidth:"100"},{name:"账户ID",column:"account_id",minWidth:"70"}]}),i=_(!1),r=async()=>{},d=_(!1);return s({switchShow:(e,l)=>{d.value=e,o.mf_id=l,e&&l&&(async()=>{let e=await U.get(F.material_refuseDetails,{mf_id:o.mf_id});if(e&&"0"==e.errNo){let a=e.rst;o.refuseList=a}else a.error(e.errMsg)})()}}),(e,a)=>{const s=n,t=c,p=l;return u(),g(D,{ref:"DialogRef_editType",dialogVisible:d.value,onConfirm:r,onClose:a[0]||(a[0]=e=>d.value=!1),width:"900px",height:"70vh",top:"80px",showClose:!0,hasBtn:!0,"dialog-title":"拒审详情"},{content:y((()=>[w((u(),m("div",ka,[j(t,{ref:"multipleTableRef",size:"small","row-key":"page_id",data:o.refuseList,border:"",height:"60vh","header-row-style":{color:"#161E46","font-weight":400},"header-cell-style":C(K),"cell-style":{color:"#333"}},{default:y((()=>[(u(!0),m(M,null,V(o.descol,(e=>(u(),g(s,{align:"left",prop:e.column,label:e.name,"min-width":e.minWidth},{default:y((({row:a})=>[f("span",null,x(a[e.column]),1)])),_:2},1032,["prop","label","min-width"])))),256))])),_:1},8,["data","header-cell-style"])])),[[p,i.value]])])),_:1},8,["dialogVisible"])}}}),xa={class:"content-wrap"},Ca=["src","poster"],Ma={class:"footer"},Na=N("关 闭"),La=E(v({__name:"videoPlayDialog",props:{dialogVisible:{type:Boolean,default:()=>!1},videoInfo:{type:Object,default:()=>({})}},emits:["confirm","cancel"],setup(e,{emit:a}){const l=e,s=S((()=>`视频素材:${i.name}`)),i=O({name:"",oss_url:"",pre_oss_url:""});R((()=>l.dialogVisible),(e=>{e&&r()}));const r=async()=>{console.log("handleInitForm => "),console.log("props.videoInfo => ",l.videoInfo);const{name:e,oss_url:a,pre_oss_url:s}=l.videoInfo;i.name=e,i.oss_url=a,i.pre_oss_url=s},n=()=>{a("cancel")};return(e,a)=>{const r=t,c=o;return u(),m("div",null,[j(c,{"model-value":l.dialogVisible,"before-close":n,"show-close":!0,title:C(s),width:"600px",class:"video-dialog"},{default:y((()=>[f("div",xa,[l.dialogVisible?(u(),m("video",{key:0,class:"video-wrap",src:i.oss_url,poster:i.pre_oss_url,controls:"",autoplay:"",muted:"",preload:"none",controlslist:"nodownload noremoteplayback disablePictureInPicture noplaybackrate"},null,8,Ca)):T("",!0)]),f("div",Ma,[j(r,{type:"primary",onClick:n},{default:y((()=>[Na])),_:1})])])),_:1},8,["model-value","title"])])}}}),[["__scopeId","data-v-58c0c30d"]]),Ia={class:"imgBox"},Ba={class:"img"},Ta=["src"],Va=["src"],Sa={class:"size shadowBox"},Ra={key:1,class:"time shadowBox"},Wa={key:3},Pa={class:"conBox"},Da={class:"flex"},$a=["title"],za=["onClick"],Fa={class:"tMar6 c-666 f12 flex"},Aa={class:"tMar6 c-666 f12 flex"},Ea=N("累计关联广告数 "),Ha={class:"tMar6 c-666 f12 flex"},Ua=N("今日关联广告数 "),Ya={class:"tMar6 c-666 f12 flex"},Qa=N("累计消耗金额 "),Ja={class:"tMar6 c-666 f12 flex"},Ka=N("今日消耗金额 "),Xa={class:"tMar6 flex"},qa={key:0,class:"statusCss s1"},Ga={key:1,class:"statusCss s2"},Za={key:2,class:"statusCss s3"},el={key:0,class:"f12 flex tMar8 c-999"},al=N(" 不符合媒体可投放要求"),ll=E(v({__name:"materialBlock",props:{paramsObj:{default:{}},checkShow:{type:Boolean,default:!1},idName:{default:"id"},folderIdName:{default:"folder_id"},showDetialFlag:{type:Boolean,default:!0},source:{default:""}},emits:["checkChange","init"],setup(l,{emit:s}){const t=l,{proxy:o}=k();o.$NumberHandle;const i=()=>{s("init")},r=_(),n=()=>{t.checkShow?t.checkShow&&(t.paramsObj.checked=!t.paramsObj.checked,s("checkChange",t.paramsObj.checked,t.paramsObj)):t.showDetialFlag&&r.value.switchShow(!0)},c=()=>{t.showDetialFlag&&r.value.switchShow(!0)},v=_(),w=_(),C=e=>{1==e.if_fav?(async()=>{let e=[];e.push(t.paramsObj[t.idName]);const l=O({mf_ids:e});let s=await o.$http.post(F.materialManage_cancleCollect,l);s&&"0"==s.errNo?(s.rst,await i()):a.error(s.errMsg)})():(w.value=e.name,v.value.switchShow(!0))},M=_(),L=_(!1),I=_({}),V=()=>{I.value={},L.value=!1},S=()=>{I.value={},L.value=!1};return h((()=>{b((()=>{}))})),(a,s)=>{const t=te,o=d,_=ae,h=G,b=W("QuestionFilled"),k=p,O=W("WarningFilled"),R=e;return u(),m("div",null,[f("div",{class:"box",onClick:n},[f("div",Ia,[f("div",Ba,[2==l.paramsObj.mtype?(u(),m("img",{key:0,src:l.paramsObj.oss_url,alt:"",height:"120"},null,8,Ta)):T("",!0),1==l.paramsObj.mtype?(u(),m("img",{key:1,src:l.paramsObj.pre_oss_url,alt:"",height:"120"},null,8,Va)):T("",!0)]),1==l.paramsObj.mtype?(u(),m("div",{key:0,class:"videoPlayBox",onClick:s[0]||(s[0]=B((e=>{return a=l.paramsObj,console.log("onClickVideoPlay paramsObj => ",a),I.value={...a},console.log("currentVideoInfo => ",I.value),void(L.value=!0);var a}),["stop"]))},[j(o,{size:28},{default:y((()=>[j(t)])),_:1})])):T("",!0),f("div",Sa,x(l.paramsObj.width||"-")+" * "+x(l.paramsObj.height||"-"),1),1==l.paramsObj.mtype?(u(),m("div",Ra,x(l.paramsObj.duration||"-"),1)):T("",!0),l.checkShow&&"librayDialog"!=l.source?T("",!0):(u(),m("div",{key:2,class:"collectBox",onClick:s[1]||(s[1]=B((e=>C(l.paramsObj)),["stop"]))},[1==l.paramsObj.if_fav?(u(),g(o,{key:0,size:22,color:"red"},{default:y((()=>[j(_)])),_:1})):(u(),g(o,{key:1,size:22,color:"red"},{default:y((()=>[j(h)])),_:1}))])),l.checkShow?(u(),m("div",Wa,[f("div",{class:P(["self_checkbox",l.paramsObj.checked?"self_checkbox_active":""])},null,2)])):T("",!0)]),f("div",Pa,[f("div",Da,[f("span",{class:"flex_1 clampOne f13",title:l.paramsObj.name},x(l.paramsObj.name||"-"),9,$a),l.showDetialFlag?(u(),m("span",{key:0,class:"lMarauto c-theme pointer f12",onClick:B(c,["stop"])},"详情",8,za)):T("",!0)]),f("div",Fa,"上传时间:"+x(l.paramsObj.created_at),1),f("div",Aa,[Ea,j(k,{content:"截止至昨日止,使用该素材的累计广告总数,包含已删除广告。",placement:"top",effect:"light"},{default:y((()=>[j(o,{class:"f14 lMar3 pointer",color:"#cccccc"},{default:y((()=>[j(b)])),_:1})])),_:1}),N(" :"+x(l.paramsObj.ytotal_ad_cnt),1)]),f("div",Ha,[Ua,j(k,{content:"使用该素材在猎羽搭建的今日广告数,包含已删除广告",placement:"top",effect:"light"},{default:y((()=>[j(o,{class:"f14 lMar3 pointer",color:"#cccccc"},{default:y((()=>[j(b)])),_:1})])),_:1}),N(" :"+x(l.paramsObj.today_ad_cnt),1)]),f("div",Ya,[Qa,j(k,{content:`截止至 ${l.paramsObj.up_time} 止,历史使用该素材的累计广告投放金额总数,包含已删除广告。`,placement:"top",effect:"light"},{default:y((()=>[j(o,{class:"f14 lMar3 pointer",color:"#cccccc"},{default:y((()=>[j(b)])),_:1})])),_:1},8,["content"]),N(" :"+x(l.paramsObj.total_cost),1)]),f("div",Ja,[Ka,j(k,{content:`截止至 ${l.paramsObj.up_time} 止,今日使用该素材的累计广告投放金额总数,包含已删除广告。`,placement:"top",effect:"light"},{default:y((()=>[j(o,{class:"f14 lMar3 pointer",color:"#cccccc"},{default:y((()=>[j(b)])),_:1})])),_:1},8,["content"]),N(" :"+x(l.paramsObj.today_cost),1)]),f("div",Xa,["unuse"==l.paramsObj.usage?(u(),m("span",qa,"未使用")):"hacost"==l.paramsObj.usage?(u(),m("span",Ga,"有消耗")):"uncost"==l.paramsObj.usage?(u(),m("span",Za,"无消耗")):T("",!0),"unuse"!=l.paramsObj.usage&&l.paramsObj.refuse_cnt>0?(u(),m("div",{key:3,class:"statusCss s4",style:{display:"flex","align-content":"center"},onClick:s[2]||(s[2]=B((e=>{return a=l.paramsObj.id,void(M.value&&M.value.switchShow(!0,a));var a}),["stop"]))},[f("span",null,"广点通拒审"+x(l.paramsObj.refuse_cnt)+"次",1),j(o,{class:"lMar3"},{default:y((()=>[j(O)])),_:1})])):T("",!0)]),0==l.paramsObj.is_placed&&"librayDialog"==l.source?(u(),m("div",el,[j(o,{size:12,color:"#3173FF",class:"rMar5"},{default:y((()=>[j(R)])),_:1}),al])):T("",!0)])]),j(ja,{ref_key:"detialRef",ref:r,propsObj:l.paramsObj,onInit:i,idName:l.idName,folderIdName:l.folderIdName},null,8,["propsObj","idName","folderIdName"]),j(me,{ref_key:"collectRef",ref:v,name:w.value,fids:l.paramsObj[l.idName],onInit:i},null,8,["name","fids"]),j(Oa,{ref_key:"RefuseDetailsRef",ref:M},null,512),j(La,{dialogVisible:L.value,videoInfo:I.value,onConfirm:V,onCancel:S},null,8,["dialogVisible","videoInfo"])])}}}),[["__scopeId","data-v-ed327e0c"]]);export{me as _,ie as a,ll as m};