1 |
- import{d as E,bi as J,J as N,r as w,e as S,o as m,c as k,a as r,g as I,t as W,f as a,w as l,q as L,m as b,N as O,i as P,_ as $,B as D,a$ as F,E as G,bk as H,p as K,j as Q,__tla as R}from"./index-2eab2d23.js";import{W as X,__tla as Y}from"./main-16c68401.js";import Z,{__tla as aa}from"./main-ec2be832.js";import{u as ta,U as ea,__tla as la}from"./useUpload-1c63b1eb.js";import{u as ra,__tla as _a}from"./useMessage-171aa63e.js";import{_ as sa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as oa}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{__tla as ca}from"./index-cc63c3c4.js";import{__tla as ua}from"./main-74cfbf31.js";import{__tla as ia}from"./el-image-2171f3ff.js";import{__tla as ma}from"./el-image-viewer-5d14bc77.js";import{__tla as na}from"./main.vue_vue_type_script_setup_true_lang-0610a4e1.js";import{__tla as da}from"./index-4663832c.js";import{__tla as pa}from"./index-5f871167.js";import{__tla as fa}from"./formatTime-41155543.js";let g,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=(_=>(K("data-v-782ce0e7"),_=_(),Q(),_))(()=>I("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)),g=sa(E({__name:"TabVoice",props:{modelValue:{}},emits:["update:modelValue"],setup(_,{emit:j}){const x=ra(),U={Authorization:"Bearer "+J()},B=_,C=j,e=N({get:()=>B.modelValue,set:t=>C("update:modelValue",t)}),s=w(!1),f=w([]),c=S({accountId:e.value.accountId,type:"voice",title:"",introduction:""}),M=t=>ta(ea.Voice,10)(t),T=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)},q=()=>{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,h=$,i=D,z=F,v=G,A=H;return m(),k("div",null,[r(e).url?(m(),k("div",n,[I("p",d,W(r(e).name),1),a(u,{class:"ope-row",justify:"center"},{default:l(()=>[a(r(Z),{url:r(e).url},null,8,["url"])]),_:1}),a(u,{class:"ope-row",justify:"center"},{default:l(()=>[a(i,{type:"danger",circle:"",onClick:q},{default:l(()=>[a(h,{icon:"ep:delete"})]),_:1})]),_:1})])):(m(),L(u,{key:1,style:{"text-align":"center"}},{default:l(()=>[a(v,{span:12,class:"col-select"},{default:l(()=>[a(i,{type:"success",onClick:o[0]||(o[0]=V=>s.value=!0)},{default:l(()=>[b(" \u7D20\u6750\u5E93\u9009\u62E9"),a(h,{icon:"ep:circle-check"})]),_:1}),a(z,{title:"\u9009\u62E9\u8BED\u97F3",modelValue:r(s),"onUpdate:modelValue":o[1]||(o[1]=V=>O(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(v,{span:12,class:"col-add"},{default:l(()=>[a(A,{action:"/admin-api/mp/material/upload-temporary",headers:U,multiple:"",limit:1,"file-list":r(f),data:r(c),"before-upload":M,"on-success":T},{tip:l(()=>[p]),default:l(()=>[a(i,{type:"primary"},{default:l(()=>[b("\u70B9\u51FB\u4E0A\u4F20")]),_:1})]),_:1},8,["file-list","data"])]),_:1})]),_:1}))])}}}),[["__scopeId","data-v-782ce0e7"]])});export{ya as __tla,g as default};
|