1 |
- import{d as z,c_ as B,e as D,r as y,x as J,o as h,c as M,f as a,A as r,a as l,C as S,a2 as T,D as v,a1 as F,a8 as H,K,_ as P,J as W,aZ as Z,H as q,bg as E,__tla as G}from"./index-a9d538d5.js";import{_ as L,__tla as N}from"./main.vue_vue_type_script_setup_true_lang-aca28046.js";import{W as O,__tla as Q}from"./main-f74e18a3.js";import{u as R,U as X,__tla as Y}from"./useUpload-e4ed9474.js";import{u as $,__tla as tt}from"./useMessage-d5cbbfad.js";import{_ as at}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as et}from"./index.vue_vue_type_script_setup_true_lang-ca67dc77.js";import{__tla as lt}from"./index-95ad39b3.js";import{__tla as rt}from"./main-e189a7a8.js";import{__tla as ot}from"./el-image-2dadd73e.js";import{__tla as _t}from"./el-image-viewer-2e77a3e7.js";import{__tla as ut}from"./main-63875a84.js";import{__tla as it}from"./index-f0a5f1f0.js";import{__tla as st}from"./index-0a2436e1.js";import{__tla as ct}from"./formatTime-8985a9d0.js";let V,dt=Promise.all([(()=>{try{return G}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(g,{emit:I}){const b=$(),U={Authorization:"Bearer "+B()},k=g,w=I,e=D({get:()=>k.modelValue,set:t=>w("update:modelValue",t)}),u=y(!1),d=y([]),i=J({accountId:e.value.accountId,type:"video",title:"",introduction:""}),x=t=>R(X.Video,10)(t),A=t=>{if(t.code!==0)return b.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=H,s=K,p=P,f=W,C=Z,c=q,j=E;return h(),M("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(),S(l(L),{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(C,{title:"\u9009\u62E9\u89C6\u9891",modelValue:l(u),"onUpdate:modelValue":o[3]||(o[3]=_=>F(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};
|