import{X as w}from"./MkWindow-DgYYPaiE.js";import{aB as x,b as s,M as C,P as M,q as y,_ as A}from"./app-QjDgb7aF.js";import{b as V,a as _,E as f,j as W,g as B,i as t,q as o,k as n,J as r,D as l,u as a}from"./vue-Cm77DuTi.js";import"./contains-OYmYIG20.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const D={class:"dpvffvvy _monolithic_"},I={class:"_section"},R={class:"_section"},N=V({__name:"MkAbuseReportWindow",props:{user:{},initialComment:{}},emits:["closed"],setup(d,{emit:v}){const c=d,u=v,p=_(),i=_(c.initialComment||"");function b(){M("users/report-abuse",{userId:c.user.id,comment:i.value},void 0).then(h=>{y({type:"success",text:s.ts.abuseReported}),p.value?.close(),u("closed")})}return(h,e)=>{const k=f("MkAcct"),g=f("I18n");return W(),B(w,{ref_key:"uiWindow",ref:p,"initial-width":400,"initial-height":500,"can-resize":!0,onClosed:e[1]||(e[1]=m=>u("closed"))},{header:t(()=>[e[2]||(e[2]=o("i",{class:"ph-warning-circle ph-bold ph-lg",style:{"margin-right":"0.5em"}},null,-1)),n(g,{src:a(s).ts.reportAbuseOf,tag:"span"},{name:t(()=>[o("b",null,[n(k,{user:d.user},null,8,["user"])])]),_:1},8,["src"])]),default:t(()=>[o("div",D,[o("div",I,[n(x,{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=m=>i.value=m)},{label:t(()=>[r(l(a(s).ts.details),1)]),caption:t(()=>[r(l(a(s).ts.fillAbuseReportDescription),1)]),_:1},8,["modelValue"])]),o("div",R,[n(C,{primary:"",full:"",disabled:i.value.length===0,onClick:b},{default:t(()=>[r(l(a(s).ts.send),1)]),_:1},8,["disabled"])])])]),_:1},512)}}}),J=A(N,[["__scopeId","data-v-e0f20c45"]]);export{J as default};
//# sourceMappingURL=MkAbuseReportWindow-DfYDRQ68.js.map
