1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[2285],{2285:function(e,l,s){s.r(l),s.d(l,{default:function(){return m}});var n=s(1995),t=s(3732),a=s(4335),r=s(9677),o=s.n(r),i=s(7042),d=s(1613),c=s(3218),h=s(4083);let u=e=>{let l=new Date(e);return"".concat(l.toLocaleDateString("en-US").replace(l.getFullYear(),l.getFullYear().toString().substring(2))," @ ").concat(l.toLocaleString("en-US",{hour:"numeric",minute:"numeric",hour12:!0}))};function m(){let[e,l]=(0,t.useState)(!1),[s,r]=(0,t.useState)(!1),[m,x]=(0,t.useState)(""),[j,p]=(0,t.useState)(""),{currentUser:b,reportedItem:g,reportedItemType:v,triggerReportItem:f}=(0,t.useContext)(h.A);return g&&b?(0,n.jsx)("div",{className:"global-modal active",children:(0,n.jsxs)("div",{className:"global-modal-popup",children:[(0,n.jsx)("span",{className:"global-modal-close",onClick:()=>f(null),children:(0,n.jsx)(d.US,{})}),(0,n.jsx)("div",{className:"global-modal-title",children:"Report Content for Moderation"}),e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"global-modal-success",children:[(0,n.jsx)("div",{children:"Your report has been submitted."}),(0,n.jsx)("div",{children:"Thank you"})]}),(0,n.jsx)("div",{className:"global-modal-buttons",children:(0,n.jsx)("button",{className:"action-button bordered fw-normal",onClick:()=>f(null),children:"Close"})})]}):(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"global-modal-report",children:[(0,n.jsxs)("header",{children:[(0,n.jsx)("address",{children:(0,n.jsx)(i.A,{user:g.user})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{children:[g.user?(0,n.jsx)(o(),{href:"/".concat(g.user.username),children:g.user.username}):"[deleted user]","\xa0posted the following"]}),(0,n.jsx)("em",{children:u(g.createdAt)})]})]}),(0,n.jsxs)("footer",{children:[(0,n.jsx)("svg",{width:"16",height:"37",viewBox:"0 0 16 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M10.5 36.5L16 31L10.5 25.5L9.09 26.91L12.17 30L6.5 30C4 30 2.00001 28 2.00001 25.5L2 -8.74228e-08L0 0L6.99382e-06 25.5C7.15075e-06 29.09 2.91 32 6.5 32L12.17 32L9.08 35.09L10.5 36.5Z",fill:"#E0E0E0"})}),(0,n.jsx)("blockquote",{children:g.text||g.thesis})]})]}),(0,n.jsxs)("div",{className:"global-modal-field",children:[(0,n.jsxs)("label",{children:["Why are you reporting this content? ",(0,n.jsx)("span",{children:"(Choose one)"})]}),(0,n.jsx)("div",{className:"global-modal-radios",children:["Spam or scam","Harassment or intimidation with violence","Encouraging self-harm","Sensitive or disturbing content","Hateful or offensive content","Impersonating another person","Other"].map(e=>(0,n.jsx)("div",{children:(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",checked:e===j,onClick:()=>p(e),onChange:()=>{}}),e]})},e))})]}),(0,n.jsxs)("div",{className:"global-modal-field",children:[(0,n.jsx)("label",{children:"Explanation"}),(0,n.jsx)("div",{children:(0,n.jsx)("textarea",{value:m,onChange:e=>{let l=e.target;x(l.value)}})})]}),(0,n.jsxs)("div",{className:"global-modal-buttons",children:[(0,n.jsx)("button",{className:"action-button bordered fw-normal",onClick:()=>f(null),children:"Cancel"}),(0,n.jsx)("button",{className:"action-button fw-normal",onClick:()=>{r(!1),j&&m.trim().length?(l(!0),v===c.nP.ARGUMENT?a.A.post("/argument/report",{type:j,field:"ARGUMENT",id:g.id,reason:m}):v===c.nP.COMMENT?a.A.post("/comment/report",{type:j,field:"COMMENT",id:g.id,reason:m}):v===c.nP.POLL&&a.A.post("/debate/report",{type:j,field:"DEBATE",id:g.id,reason:m})):r(!0)},children:"Submit"})]}),s?(0,n.jsx)("div",{className:"form-error centered",children:"Please select the reason and enter the explanation"}):null]})]})}):null}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.