import{d as D,bB as R,Y as T,r as y,e as q,o as h,c as E,f as a,w as r,a as l,x as H,a0 as M,y as v,l as S,R as A,i as C,j as G,G as O,bk as P,E as W,bD as X,_ as Y,__tla as F}from"./index-8dc1e40a.js";import J,{__tla as K}from"./main-e0b1ced1.js";import{W as L,__tla as N}from"./main-69d14ed2.js";import{u as Q,U as Z,__tla as $}from"./useUpload-18ed0543.js";import{u as tt,__tla as at}from"./useMessage-7a27dd80.js";import{__tla as et}from"./index-64aeaa78.js";import{__tla as lt}from"./index-803dbf9a.js";import{__tla as rt}from"./main-a65bb27b.js";import{__tla as ot}from"./el-image-6a48e9f1.js";import{__tla as ut}from"./el-image-viewer-3b8905e6.js";import{__tla as _t}from"./main-e9c0874d.js";import{__tla as it}from"./index-e8092043.js";import{__tla as st}from"./index-df9490d5.js";import{__tla as nt}from"./formatTime-8a155b2e.js";let V,ct=Promise.all([(()=>{try{return F}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return nt}catch{}})()]).then(async()=>{V=Y(D({__name:"TabVideo",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(b,{emit:I}){const g=tt(),k={Authorization:"Bearer "+R()},w=b,x=I,e=T({get:()=>w.modelValue,set:t=>x("update:modelValue",t)}),_=y(!1),c=y([]),i=q({accountId:e.value.accountId,type:"video",title:"",introduction:""}),U=t=>Q(Z.Video,10)(t),j=t=>{if(t.code!==0)return g.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+t.msg),!1;c.value=[],i.title="",i.introduction="",d(t.data)},d=t=>{_.value=!1,e.value.mediaId=t.mediaId,e.value.url=t.url,e.value.name=t.name,t.title&&(e.value.title=t.title||""),t.introduction&&(e.value.description=t.introduction||"")};return(t,o)=>{const m=A,s=C,p=G,f=O,z=P,n=W,B=X;return h(),E("div",null,[a(s,null,{default:r(()=>[a(m,{modelValue:l(e).title,"onUpdate:modelValue":o[0]||(o[0]=u=>l(e).title=u),class:"input-margin-bottom",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"},null,8,["modelValue"]),a(m,{class:"input-margin-bottom",modelValue:l(e).description,"onUpdate:modelValue":o[1]||(o[1]=u=>l(e).description=u),placeholder:"\u8BF7\u8F93\u5165\u63CF\u8FF0"},null,8,["modelValue"]),a(s,{class:"ope-row",justify:"center"},{default:r(()=>[l(e).url?(h(),H(l(J),{key:0,url:l(e).url},null,8,["url"])):M("",!0)]),_:1}),a(n,null,{default:r(()=>[a(s,{style:{"text-align":"center"},align:"middle"},{default:r(()=>[a(n,{span:12},{default:r(()=>[a(f,{type:"success",onClick:o[2]||(o[2]=u=>_.value=!0)},{default:r(()=>[v(" \u7D20\u6750\u5E93\u9009\u62E9 "),a(p,{icon:"ep:circle-check"})]),_:1}),a(z,{title:"\u9009\u62E9\u89C6\u9891",modelValue:l(_),"onUpdate:modelValue":o[3]||(o[3]=u=>S(_)?_.value=u:null),width:"90%","append-to-body":"","destroy-on-close":""},{default:r(()=>[a(l(L),{type:"video","account-id":l(e).accountId,onSelectMaterial:d},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1}),a(n,{span:12},{default:r(()=>[a(B,{action:"/dev-api/admin-api/mp/material/upload-temporary",headers:k,multiple:"",limit:1,"file-list":l(c),data:l(i),"before-upload":U,"on-success":j},{default:r(()=>[a(f,{type:"primary"},{default:r(()=>[v("\u65B0\u5EFA\u89C6\u9891 "),a(p,{icon:"ep:upload"})]),_:1})]),_:1},8,["file-list","data"])]),_:1})]),_:1})]),_:1})]),_:1})])}}}),[["__scopeId","data-v-bf7e1f5e"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/components/wx-reply/components/TabVideo.vue"]])});export{ct as __tla,V as default};
