import{_ as I,r as _,c as h,e as k,f as F,g as s,w as l,i as C,H as $,I as q,j as M,n as y,J as T,E as A,K as J,p as K,q as N,L as X,s as Y,u as H,o as E,h as o,x as L,F as W,M as S,N as O,O as Z,B as G,C as ee,P as te}from"./index.f884e450.js";/* empty css */import{u as ae}from"./useUpimages.720aff88.js";import{E as oe}from"./index.7a6f4560.js";var se="./assets/dz.eded8641.png";const ne={class:"error-report-container"},le={__name:"index",props:{visibility:{type:Boolean,default:!1}},emits:["define"],setup(r,{emit:m}){const d=r,v=_(null),a=h({content:"",images:[]}),f=t=>{console.log(t)},g=t=>{console.log("a",t)},n=()=>{},c=h([]),w=async t=>{try{const{file:e}=t,u=new FormData;u.append("image",e);const{imageFile:p}=await ae(u);c.push(p.value),console.log(c),a.images=c,console.log(a.images),t.onSuccess()}catch(e){t.onError(),console.log("%c ??? >>>","background: blue; color: #fff",e),y.error("\u4E0A\u4F20\u5C01\u9762\u56FE\u51FA\u9519")}},b=()=>{z("define")},z=m,R=h({content:[{required:!0,message:"\u8BF7\u586B\u5199\u53CD\u9988\u5185\u5BB9",trigger:"blur"}]}),V=t=>{!t||t.validate(e=>{if(!e)return y.error("\u8BF7\u67E5\u770B\u586B\u5199\u60C5\u51B5");Q()})},Q=async()=>{var t=[];a.images.forEach(e=>{t.push(e.url)}),console.log(t),console.log(a.images);try{const{data:e}=await T({content:a.content,images:t});y({message:"\u53CD\u9988\u6210\u529F",type:"success"}),a.content="",a.images=[],b()}catch{}};return(t,e)=>{const u=A,p=J,j=K,B=oe,D=N,P=X,U=Y;return k(),F("div",ne,[s(U,{title:"\u9519\u8BEF\u53CD\u9988",modelValue:d.visibility,"onUpdate:modelValue":e[3]||(e[3]=i=>d.visibility=i),width:"500",onClose:e[4]||(e[4]=i=>b())},{default:l(()=>[s(P,{ref_key:"formRef",ref:v,model:a,rules:R,"label-width":"110"},{default:l(()=>[s(p,{label:"\u53CD\u9988\u5185\u5BB9\uFF1A",prop:"content"},{default:l(()=>[s(u,{modelValue:a.content,"onUpdate:modelValue":e[0]||(e[0]=i=>a.content=i),rows:6,type:"textarea",placeholder:"\u8BF7\u4ED4\u7EC6\u63CF\u8FF0\u60A8\u7684\u95EE\u9898"},null,8,["modelValue"])]),_:1}),s(p,{label:"\u9519\u8BEF\u51ED\u8BC1\uFF1A",prop:"image"},{default:l(()=>[s(B,{accept:C($)("image"),"file-list":a.images,"onUpdate:fileList":e[1]||(e[1]=i=>a.images=i),"auto-upload":!0,action:"https://www.yixiangvr.com/api/upload/image","list-type":"picture-card","on-success":f,"on-remove":n,"on-error":g,"http-request":w},{default:l(()=>[s(j,null,{default:l(()=>[s(C(q))]),_:1})]),_:1},8,["accept","file-list"])]),_:1}),s(p,null,{default:l(()=>[s(D,{type:"primary",onClick:e[2]||(e[2]=i=>V(v.value))},{default:l(()=>[M("\u63D0\u4EA4")]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}}};var ie=I(le,[["__scopeId","data-v-c7dd9150"]]);const x=r=>(G("data-v-22f56f8d"),r=r(),ee(),r),re={class:"layout-footer-container"},ce=x(()=>o("div",{class:"line"},null,-1)),de=x(()=>o("div",{class:"hbox"},[o("img",{src:te,style:{width:"140px",height:"30px"},alt:""})],-1)),fe={class:"content flex-row flex-jc-sb"},pe={class:"left"},ue=S('