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