import{d as z,c_ as C,e as D,r as y,x as E,o as h,c as K,f as a,B as r,a as l,A as M,D as T,E as v,a2 as $,a8 as L,L as P,_ as S,K as W,a$ as q,I as F,bi as G,__tla as H}from"./index-92ad187a.js";import{_ as J,__tla as N}from"./main.vue_vue_type_script_setup_true_lang-a8330ef1.js";import{W as O,__tla as Q}from"./main-192bcefe.js";import{u as R,U as X,__tla as Y}from"./useUpload-49196ae4.js";import{u as Z,__tla as tt}from"./useMessage-d9788660.js";import{_ as at}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as et}from"./index.vue_vue_type_script_setup_true_lang-6fbe4cc3.js";import{__tla as lt}from"./index-10cdad38.js";import{__tla as rt}from"./main-24b996ca.js";import{__tla as ot}from"./el-image-ee9e09ec.js";import{__tla as _t}from"./el-image-viewer-d472c5a2.js";import{__tla as ut}from"./main-fb68aec4.js";import{__tla as it}from"./index-02010078.js";import{__tla as st}from"./index-39aea9f6.js";import{__tla as ct}from"./formatTime-c7f253d6.js";let V,dt=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ct}catch{}})()]).then(async()=>{V=at(z({__name:"TabVideo",props:{modelValue:{}},emits:["update:modelValue"],setup(I,{emit:b}){const g=Z(),U={Authorization:"Bearer "+C()},k=I,w=b,e=D({get:()=>k.modelValue,set:t=>w("update:modelValue",t)}),u=y(!1),d=y([]),i=E({accountId:e.value.accountId,type:"video",title:"",introduction:""}),x=t=>R(X.Video,10)(t),A=t=>{if(t.code!==0)return g.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+t.msg),!1;d.value=[],i.title="",i.introduction="",n(t.data)},n=t=>{u.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=L,s=P,p=S,f=W,B=q,c=F,j=G;return h(),K("div",null,[a(s,null,{default:r(()=>[a(m,{modelValue:l(e).title,"onUpdate:modelValue":o[0]||(o[0]=_=>l(e).title=_),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]=_=>l(e).description=_),placeholder:"\u8BF7\u8F93\u5165\u63CF\u8FF0"},null,8,["modelValue"]),a(s,{class:"ope-row",justify:"center"},{default:r(()=>[l(e).url?(h(),M(l(J),{key:0,url:l(e).url},null,8,["url"])):T("",!0)]),_:1}),a(c,null,{default:r(()=>[a(s,{style:{"text-align":"center"},align:"middle"},{default:r(()=>[a(c,{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(B,{title:"\u9009\u62E9\u89C6\u9891",modelValue:l(u),"onUpdate:modelValue":o[3]||(o[3]=_=>$(u)?u.value=_:null),width:"90%","append-to-body":"","destroy-on-close":""},{default:r(()=>[a(l(O),{type:"video","account-id":l(e).accountId,onSelectMaterial:n},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1}),a(c,{span:12},{default:r(()=>[a(j,{action:"/dev-api/admin-api/mp/material/upload-temporary",headers:U,multiple:"",limit:1,"file-list":l(d),data:l(i),"before-upload":x,"on-success":A},{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-10385e99"]])});export{dt as __tla,V as default};
