Files
Atomcms-edit/frontend/.next/static/chunks/0qw~7ijtfmhlp.js
T
2026-05-09 17:32:17 +02:00

1 line
3.8 KiB
JavaScript
Executable File

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53013,e=>{"use strict";var t=e.i(43476),n=e.i(71645),a=e.i(57688),s=e.i(22016),r=e.i(88589),l=e.i(13642),i=e.i(9165);e.s(["default",0,function(){let[e,d]=(0,n.useState)(null),[c,o]=(0,n.useState)(!0),[m,x]=(0,n.useState)(null);return(0,n.useEffect)(()=>{!async function(){try{let{data:e,error:t}=await i.api.get("/banned");t?x(t):e&&d(e)}catch{x("Er is een fout opgetreden bij het laden van je ban informatie")}o(!1)}()},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{}),(0,t.jsx)("main",{className:"bg-background min-h-screen",children:(0,t.jsx)("div",{className:"max-w-2xl mx-auto p-4 lg:p-6",children:(0,t.jsxs)("div",{className:"bg-surface rounded-lg shadow-card overflow-hidden",children:[(0,t.jsxs)("div",{className:"bg-danger p-6 text-center",children:[(0,t.jsx)("svg",{className:"w-16 h-16 text-white mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})}),(0,t.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-white",children:"Account Geblokkeerd"})]}),(0,t.jsx)("div",{className:"p-6",children:c?(0,t.jsx)("p",{className:"text-text-muted text-center",children:"Informatie laden..."}):m?(0,t.jsx)("p",{className:"text-danger text-center",children:m}):e?(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-16 h-16 rounded-lg overflow-hidden bg-background relative",children:(0,t.jsx)(a.default,{src:`https://epicnabbo.nl/imaging/?figure=${e.look}&direction=2`,alt:e.username,fill:!0,className:"object-contain"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-text-main",children:e.username}),(0,t.jsxs)("p",{className:"text-sm text-text-muted",children:["Geblokkeerd op"," ",new Date(e.banned_at).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})]})]})]}),(0,t.jsxs)("div",{className:"bg-background rounded-lg p-4",children:[(0,t.jsx)("h3",{className:"font-semibold text-text-main mb-2",children:"Reden"}),(0,t.jsx)("p",{className:"text-text-main",children:e.ban_reason})]}),e.ban_expire&&(0,t.jsxs)("div",{className:"bg-background rounded-lg p-4",children:[(0,t.jsx)("h3",{className:"font-semibold text-text-main mb-2",children:"Ontgrendeld op"}),(0,t.jsx)("p",{className:"text-text-main",children:new Date(e.ban_expire).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"})})]}),e.staff_username&&(0,t.jsxs)("div",{className:"bg-background rounded-lg p-4",children:[(0,t.jsx)("h3",{className:"font-semibold text-text-main mb-2",children:"Geblokkeerd door"}),(0,t.jsx)(s.default,{href:`/profile/${e.staff_username}`,className:"text-primary hover:underline",children:e.staff_username})]}),(0,t.jsxs)("div",{className:"pt-4 border-t border-gray-100",children:[(0,t.jsx)("p",{className:"text-sm text-text-muted mb-3",children:"Ben je het niet eens met deze blokkering? Neem dan contact op met ons support team."}),(0,t.jsx)(s.default,{href:"/help-center/contact",className:"block w-full text-center py-3 rounded-lg bg-primary text-text-main font-semibold hover:bg-primary-hover transition-colors",children:"Contact Support"})]})]}):(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-text-muted",children:"Geen ban informatie gevonden"}),(0,t.jsx)(s.default,{href:"/",className:"inline-block mt-4 px-6 py-2 rounded-lg bg-primary text-text-main font-semibold hover:bg-primary-hover transition-colors",children:"Terug naar Home"})]})})]})})}),(0,t.jsx)(l.default,{})]})}])}]);