TabVoice-4f914efa.js 3.6 KB

1
  1. import{d as H,c_ as J,e as K,r as I,x as L,o as m,c as b,a as r,B as g,E as S,f as a,A as l,C as T,D as k,a1 as F,K as P,_ as W,J as Z,aZ as q,H as G,bg as N,L as O,M as Q,__tla as R}from"./index-f65577b8.js";import{W as X,__tla as Y}from"./main-b4f45b1e.js";import $,{__tla as aa}from"./main-9da0171a.js";import{u as ta,U as ea,__tla as la}from"./useUpload-cf3b73e9.js";import{u as ra,__tla as _a}from"./useMessage-4dbf0ae4.js";import{_ as sa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as oa}from"./index.vue_vue_type_script_setup_true_lang-53598c8e.js";import{__tla as ca}from"./index-1896261a.js";import{__tla as ua}from"./main-c466a0ed.js";import{__tla as ia}from"./el-image-6b44629c.js";import{__tla as ma}from"./el-image-viewer-7e496319.js";import{__tla as na}from"./main.vue_vue_type_script_setup_true_lang-63bb1864.js";import{__tla as da}from"./index-7941cf53.js";import{__tla as pa}from"./index-47645419.js";import{__tla as fa}from"./formatTime-411ed1a1.js";let w,ya=Promise.all([(()=>{try{return R}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return fa}catch{}})()]).then(async()=>{let n,d,p;n={key:0,class:"select-item2"},d={class:"item-name"},p=(_=>(O("data-v-782ce0e7"),_=_(),Q(),_))(()=>g("div",{class:"el-upload__tip"}," \u683C\u5F0F\u652F\u6301 mp3/wma/wav/amr\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u8D85\u8FC7 2M\uFF0C\u64AD\u653E\u957F\u5EA6\u4E0D\u8D85\u8FC7 60s ",-1)),w=sa(H({__name:"TabVoice",props:{modelValue:{}},emits:["update:modelValue"],setup(_,{emit:C}){const x=ra(),B={Authorization:"Bearer "+J()},M=_,j=C,e=K({get:()=>M.modelValue,set:t=>j("update:modelValue",t)}),s=I(!1),f=I([]),c=L({accountId:e.value.accountId,type:"voice",title:"",introduction:""}),A=t=>ta(ea.Voice,10)(t),U=t=>{if(t.code!==0)return x.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+t.msg),!1;f.value=[],c.title="",c.introduction="",y(t.data)},z=()=>{e.value.mediaId=null,e.value.url=null,e.value.name=null},y=t=>{s.value=!1,e.value.mediaId=t.mediaId,e.value.url=t.url,e.value.name=t.name};return(t,o)=>{const u=P,v=W,i=Z,D=q,h=G,E=N;return m(),b("div",null,[r(e).url?(m(),b("div",n,[g("p",d,S(r(e).name),1),a(u,{class:"ope-row",justify:"center"},{default:l(()=>[a(r($),{url:r(e).url},null,8,["url"])]),_:1}),a(u,{class:"ope-row",justify:"center"},{default:l(()=>[a(i,{type:"danger",circle:"",onClick:z},{default:l(()=>[a(v,{icon:"ep:delete"})]),_:1})]),_:1})])):(m(),T(u,{key:1,style:{"text-align":"center"}},{default:l(()=>[a(h,{span:12,class:"col-select"},{default:l(()=>[a(i,{type:"success",onClick:o[0]||(o[0]=V=>s.value=!0)},{default:l(()=>[k(" \u7D20\u6750\u5E93\u9009\u62E9"),a(v,{icon:"ep:circle-check"})]),_:1}),a(D,{title:"\u9009\u62E9\u8BED\u97F3",modelValue:r(s),"onUpdate:modelValue":o[1]||(o[1]=V=>F(s)?s.value=V:null),width:"90%","append-to-body":"","destroy-on-close":""},{default:l(()=>[a(r(X),{type:"voice","account-id":r(e).accountId,onSelectMaterial:y},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1}),a(h,{span:12,class:"col-add"},{default:l(()=>[a(E,{action:"/dev-api/admin-api/mp/material/upload-temporary",headers:B,multiple:"",limit:1,"file-list":r(f),data:r(c),"before-upload":A,"on-success":U},{tip:l(()=>[p]),default:l(()=>[a(i,{type:"primary"},{default:l(()=>[k("\u70B9\u51FB\u4E0A\u4F20")]),_:1})]),_:1},8,["file-list","data"])]),_:1})]),_:1}))])}}}),[["__scopeId","data-v-782ce0e7"]])});export{ya as __tla,w as default};