PageSourceSearch

https://www.vrijwilligerspunt.com/assets/index-BZLrd1zJ.js

js vrijwilligerspunt.com collected 2026-10-03 20:03:39 UTC 7,881 bytes, 2 lines download raw bytes

1import{a as y,t as u,aZ as x,g as b,j as r,B as g,b as m,eo as R,ke as U,bg as C,aJ as D,_ as v,$ as h,cK as S,bH as _,A as P,cx as z,iG as B,G,aO as I,K as M}from"./index-ZWP6Dbbj.js";import{S as A}from"./Section-9c2B7Hiq.js";import{E}from"./EmptyState-Cvuey792.js";import"./vendor-DKtCm5W2.js";import{R as H}from"./RichText-BpKuIjrs.js";import{C as O,P as $}from"./index-DBCB-szV.js";import{T as F}from"./Timestamp-DDhRNjca.js";import{ek as f}from"./app-BUG-_G7c.js";import{B as N}from"./Badge-BSVpQSIn.js";import"./dayjs-timezone-iana-plugin-CmU3ItL3.js";import"./collapseNbsp-BitJg-02.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b4c1e75c-1946-48a1-b50e-8c7ab2763781",e._sentryDebugIdIdentifier="sentry-dbid-b4c1e75c-1946-48a1-b50e-8c7ab2763781")}catch{}const T={en:"No reports",nl:"Geen gerapporteerd gebruik"},V={en:"Profanity Reports",nl:"Beledigingsrapporten"},W={noReports:T,reports:V};var a=(e=>(e.ProfanityMessage="profanity-message",e.ProfanityDeed="profanity-deed",e.ProfanityUserProfile="profanity-user-profile",e.UserReportedUserProfile="user-reported-user-profile",e.UserReportedConversation="user-reported-conversation",e.UserReportedDeed="user-reported-deed",e.UserReportedOrganization="user-reported-organization",e))(a||{});const L={en:"Dismiss report",nl:"Goedkeuren"},q={en:"Failed to dismiss your report, please try again later.",nl:"Het is niet gelukt om je rapport af te wijzen, probeer het later nog eens."},J={en:"Your report has been dismissed.",nl:"Je rapport is afgewezen."},K={en:"More info",nl:"Meer info"},Z={en:"Flagged categories",nl:"Gemarkeerde categorieën"},Q={en:"Moderation reason",nl:"Reden voor moderatie"}
1,Y={en:"Reason",nl:"Reden"},X={en:"Reported at",nl:"Gerapporteerd op"},ee={en:"Related user",nl:"Gerelateerde gebruiker"},re={en:"Reporting user",nl:"Rapporterende gebruiker"},se={en:"Ask %{g:deedmob_literal} to delete this user's account",nl:"Vraag %{g:deedmob_literal} om het account van deze gebruiker te verwijderen"},te={en:"View conversation",nl:"Bekijk gesprek"},ne={en:"View %{g:deed}",nl:"Bekijk %{g:deed}"},ae={en:"View %{g:organization}",nl:"Bekijk %{g:organization}"},k={"category-abusive_language":{en:"Abusive language",nl:"Grof taalgebruik"},"category-harassment":{en:"Harassment",nl:"Intimidatie"},"category-hate":{en:"Hate",nl:"Haat"},"category-illicit_weapons":{en:"Illicit / weapons",nl:"Illegaal / wapens"},"category-self_harm":{en:"Self-harm",nl:"Zelfbeschadiging"},"category-sexual":{en:"Sexual content",nl:"Seksuele inhoud"},"category-sexual_minors":{en:"Sexual content involving minors",nl:"Seksueel getinte inhoud met minderjarigen"},"category-terrorism":{en:"Terrorism",nl:"Terrorisme"},"category-violence":{en:"Violence",nl:"Geweld"},dismiss:L,dismissError:q,dismissSuccess:J,extra:K,flaggedCategories:Z,moderationReason:Q,reason:Y,reported:X,reportedUser:ee,reportingUser:re,requestAccountDelete:se,"type-profanity-deed":{en:"Deed (profanity)",nl:"Activiteit (belediging)"},"type-profanity-message":{en:"Message (profanity)",nl:"Bericht (belediging)"},"type-profanity-user-profile":{en:"User profile (profanity)",nl:"Gebruikersprofiel (belediging)"},"type-user-reported-conversation":{en:"Conversation (reported)",nl:"Gesprek (gerapporteerd)"},"type-user-reported-deed":{en:"Deed (reported)",nl:"Activiteit (gerapporteerd)"},"type-user-reported-organization":{en:"Organization (reported)",nl:"Organisatie (gerapporteerd)"},"type-user-reported-user-profile":{en:"User profile (reported)",nl:"Gebruikersprofiel (gerapporteerd)"},viewConversation:te,viewDeed:ne,viewOrganization:ae};function ie(e,t){for(const s of t)e=e.replace(new RegExp(`(\\b${s}\\b)`,"gi"),"<mark>$1</mark>");return e}function oe(e,t){if(t.length===0)return e;const s=t.map(n=>n.toLowerCase());return e.split(/(\w+)/).map((n,d)=>/\w+/.test(n)&&s.includes(n.toLowerCase())?r.jsx("mark",{children:n},d):n||null)}const de=({fragment:e})=>{const t=y(k),s=e.highlightWords??[];return r.jsxs(v,{gap:"xs",children:[e.flaggedCategories.length>0&&r.jsx(G,{display:"inline-flex",gap:"xs",children:e.flaggedCategories.map(o=>r.jsx(N,{color:"red",variant:"light",children:t(`category-${o}`)},o))}),e.moderationReason&&r.jsxs(h,{children:[r.jsxs("strong",{children:[t("moderationReason"),":"]})," ",e.moderationReason]}),r.jsx(h,{children:e.html?r.jsx(H,{children:ie(e.html,s)}):oe(e.text,s)})]})},j=({label:e,user:t})=>r.jsxs("div",{className:f.userContainer,children:[r.jsxs("strong",{children:[e,":"]}),r.jsxs(m,{to:B(t.id),className:f.reportedUser,children:[r.jsx(z,{scale:32,withBorder:!0,src:t.image,isPresentational:!0}),t.full_name]})]}),le=({report:e,isSuperAdmin:t})=>{const s=y(k),o=u.useUtils(),n=u.reports.dismiss.useMutation({onSuccess:()=>{o.reports.list.invalidate(),x.success({message:s("dismissSuccess")})},onError:()=>{x.error({message:s("dismissError")})}}),d=b(),w=[r.jsx(g,{disabled:n.isPending,variant:"muted",onClick:()=>{n.mutate({reportId:e.id})},children:s("dismiss")},"dismiss"),(e.meta.type===a.ProfanityMessage||e.meta.type===a.UserReportedConversation)&&r.jsx(g,{component:m,to:`/messages/${e.meta.conversation_id}`,target:"_blank",variant:"muted",children:s("viewConversation")},"viewConversation"),(e.meta.type===a.ProfanityDeed||e.meta.type===a.UserReportedDeed)&&r.jsx(g,{variant:"muted",component:m,to:R({locale:s.locale,organizationSlug:e.meta.organization_slug,deedId:e.meta.deed_id,deedsTranslation:d.deedsString}),target:"_blank",children:s("viewDeed")},"viewDeed"),(e.meta.type===a.ProfanityDeed||e.meta.type===a.ProfanityMessage||e.meta.type===a.UserReportedOrganization)&&r.jsx(g,{component:m,variant:"muted",to:`/o/${e.meta.organization_slug}`,target:"_blank",children:s("viewOrganization")},"viewOrganization"),!!e.reportedUser&&r.jsx(g,{variant:"muted",onClick:()=>U(),children:s("requestAccountDelete")}
1,"requestDeleteUser")].filter(Boolean),i=(()=>{switch(e.meta.type){case a.ProfanityDeed:case a.ProfanityMessage:case a.ProfanityUserProfile:return e.meta;default:return}})(),c=(()=>{if(!i)return[];if(i.flaggedFragments&&i.flaggedFragments.length>0)return i.flaggedFragments;const p=i.text,l="html"in i?i.html:void 0;return!p&&!l?[]:[{text:p??"",html:l,flaggedCategories:i.flaggedCategories??[],moderationReason:i.moderationReason??null,highlightWords:i.highlightWords}]})();return r.jsxs("div",{...P("report"),"data-testuserid":e.reportedUser?.id,className:f.report,children:[r.jsx(C,{mb:"xs",children:w}),r.jsxs("div",{children:[r.jsxs("p",{children:[r.jsxs("strong",{children:[D(s.g("type")),":"]})," ",s(`type-${e.meta.type}`),c.length>1&&` (${c.length}×)`]}),e.reportedUser&&r.jsx(j,{label:s("reportedUser"),user:e.reportedUser}),e.reportCreatedBy&&r.jsx(j,{label:s("reportingUser"),user:e.reportCreatedBy}),c.length>0&&r.jsx(v,{gap:"md",my:"xs",children:c.map((p,l)=>r.jsxs(h,{children:[l>0&&r.jsx(S,{mb:"xs"}),r.jsx(de,{fragment:p})]},l))}),e.reason&&r.jsxs("p",{children:[r.jsxs("strong",{children:[s("reason"),":"]})," ",e.reason]}),r.jsxs("p",{children:[r.jsxs("strong",{children:[s("reported"),":"]})," ",r.jsx(F,{children:e.created_at})]}),t&&r.jsx(O,{children:r.jsx($,{header:s("extra"),children:r.jsx("pre",{lang:"json",children:JSON.stringify(_(e,["text","html","type","highlightWords","flaggedCategories","moderationReason","flaggedFragments"]),null,2)})},"1")})]})]})},ve=()=>{const e=b(),t=y(W),s=I(),{data:o,error:n}=u.reports.list.useQuery(void 0,{enabled:s});if(n)throw new Error(n.message);return o?r.jsx(A,{compact:!0,bordered:!0,heading:t("reports"),className:"container",children:r.jsxs("div",{children:[o.length===0&&r.jsx(E,{src:"fish",header:t("noReports")}),o.map(d=>r.jsx(le,{isSuperAdmin:e.isSuperAdmin,report:d},d.id))]})}):r.jsx(M,{})};export{ve as default};
2//# sourceMappingURL=index-BZLrd1zJ.js.map

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.