1 |
- import{d as q,d0 as E,e as H,r as w,x as J,o as n,c as b,a as r,B as I,E as K,f as a,A as l,C as L,D as k,a2 as F,K as O,Q as P,J as Q,a_ as S,H as W,bh as G,L as N,M as R,_ as X,__tla as Y}from"./index-286756b9.js";import{W as Z,__tla as $}from"./main-fb0230ec.js";import aa,{__tla as ta}from"./main-12ab9f27.js";import{u as ea,U as la,__tla as ra}from"./useUpload-3c8bb42c.js";import{u as _a,__tla as sa}from"./useMessage-084b1e70.js";import{__tla as oa}from"./index-ed6c67a8.js";import{__tla as ca}from"./index-fb47c94c.js";import{__tla as ua}from"./main-2691e73f.js";import{__tla as ia}from"./el-image-73c105b7.js";import{__tla as na}from"./el-image-viewer-e0e5d3be.js";import{__tla as ma}from"./main-53b5a2f2.js";import{__tla as da}from"./index-dab960b4.js";import{__tla as pa}from"./index-2090e37e.js";import{__tla as fa}from"./formatTime-83e416ef.js";let x,ya=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return fa}catch{}})()]).then(async()=>{let m,d,p;m={key:0,class:"select-item2"},d={class:"item-name"},p=(_=>(N("data-v-17bdaa79"),_=_(),R(),_))(()=>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)),x=X(q({__name:"TabVoice",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(_,{emit:g}){const j=_a(),z={Authorization:"Bearer "+E()},C=_,M=g,e=H({get:()=>C.modelValue,set:t=>M("update:modelValue",t)}),s=w(!1),f=w([]),c=J({accountId:e.value.accountId,type:"voice",title:"",introduction:""}),U=t=>ea(la.Voice,10)(t),A=t=>{if(t.code!==0)return j.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+t.msg),!1;f.value=[],c.title="",c.introduction="",y(t.data)},B=()=>{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=O,v=P,i=Q,D=S,h=W,T=G;return n(),b("div",null,[r(e).url?(n(),b("div",m,[I("p",d,K(r(e).name),1),a(u,{class:"ope-row",justify:"center"},{default:l(()=>[a(r(aa),{url:r(e).url},null,8,["url"])]),_:1}),a(u,{class:"ope-row",justify:"center"},{default:l(()=>[a(i,{type:"danger",circle:"",onClick:B},{default:l(()=>[a(v,{icon:"ep:delete"})]),_:1})]),_:1})])):(n(),L(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(Z),{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(T,{action:"/dev-api/admin-api/mp/material/upload-temporary",headers:z,multiple:"",limit:1,"file-list":r(f),data:r(c),"before-upload":U,"on-success":A},{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-17bdaa79"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mp/components/wx-reply/components/TabVoice.vue"]])});export{ya as __tla,x as default};
|