You've already forked Atomcms-edit
1 line
22 KiB
JavaScript
Executable File
1 line
22 KiB
JavaScript
Executable File
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var l={formatUrl:function(){return o},formatWithValidation:function(){return d},urlObjectKeys:function(){return i}};for(var a in l)Object.defineProperty(r,a,{enumerable:!0,get:l[a]});let s=e.r(90809)._(e.r(98183)),n=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,l=e.protocol||"",a=e.pathname||"",o=e.hash||"",i=e.query||"",d=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?d=t+e.host:r&&(d=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(d+=":"+e.port)),i&&"object"==typeof i&&(i=String(s.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return l&&!l.endsWith(":")&&(l+=":"),e.slashes||(!l||n.test(l))&&!1!==d?(d="//"+(d||""),a&&"/"!==a[0]&&(a="/"+a)):d||(d=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${l}${d}${a}${c}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function d(e){return o(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let l=e.r(71645);function a(e,t){let r=(0,l.useRef)(null),a=(0,l.useRef)(null);return(0,l.useCallback)(l=>{if(null===l){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=s(e,l)),t&&(a.current=s(t,l))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let l=e.r(18967),a=e.r(52817);function s(e){if(!(0,l.isAbsoluteUrl)(e))return!0;try{let t=(0,l.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return l}});let l=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var l={default:function(){return b},useLinkStatus:function(){return j}};for(var a in l)Object.defineProperty(r,a,{enumerable:!0,get:l[a]});let s=e.r(90809),n=e.r(43476),o=s._(e.r(71645)),i=e.r(95057),d=e.r(8372),c=e.r(18581),u=e.r(18967),h=e.r(5550);e.r(33525);let m=e.r(88540),x=e.r(91949),f=e.r(73668),p=e.r(9396);function b(t){var r,l;let a,s,b,[j,v]=(0,o.useOptimistic)(x.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:N,as:w,children:k,prefetch:R=null,passHref:C,replace:L,shallow:_,scroll:P,onClick:S,onMouseEnter:M,onTouchStart:O,legacyBehavior:B=!1,onNavigate:T,transitionTypes:E,ref:$,unstable_dynamicOnHover:z,...U}=t;a=k,B&&("string"==typeof a||"number"==typeof a)&&(a=(0,n.jsx)("a",{children:a}));let A=o.default.useContext(d.AppRouterContext),D=!1!==R,I=!1!==R?null===(l=R)||"auto"===l?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,K="string"==typeof(r=w||N)?r:(0,i.formatUrl)(r);if(B){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=o.default.Children.only(a)}let F=B?s&&"object"==typeof s&&s.ref:$,J=o.default.useCallback(e=>(null!==A&&(y.current=(0,x.mountLinkInstance)(e,K,A,I,D,v)),()=>{y.current&&((0,x.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,x.unmountPrefetchableInstance)(e)}),[D,K,A,I,v]),W={ref:(0,c.useMergedRef)(J,F),onClick(t){B||"function"!=typeof S||S(t),B&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!A||t.defaultPrevented||function(t,r,l,a,s,n,i){if("u">typeof window){let d,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((d=t.currentTarget.getAttribute("target"))&&"_self"!==d||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),n){let e=!1;if(n({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:u}=e.r(99781);o.default.startTransition(()=>{u(r,a?"replace":"push",!1===s?m.ScrollBehavior.NoScroll:m.ScrollBehavior.Default,l.current,i)})}}(t,K,y,L,P,T,E)},onMouseEnter(e){B||"function"!=typeof M||M(e),B&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),A&&D&&(0,x.onNavigationIntent)(e.currentTarget,!0===z)},onTouchStart:function(e){B||"function"!=typeof O||O(e),B&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),A&&D&&(0,x.onNavigationIntent)(e.currentTarget,!0===z)}};return(0,u.isAbsoluteUrl)(K)?W.href=K:B&&!C&&("a"!==s.type||"href"in s.props)||(W.href=(0,h.addBasePath)(K)),b=B?o.default.cloneElement(s,W):(0,n.jsx)("a",{...U,...W,children:a}),(0,n.jsx)(g.Provider,{value:j,children:b})}e.r(84508);let g=(0,o.createContext)(x.IDLE_LINK_STATUS),j=()=>(0,o.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88589,e=>{"use strict";var t=e.i(43476),r=e.i(71645),l=e.i(22016);let a=[{href:"/",label:"Home"},{href:"/discord",label:"Discord",external:!0}],s=[{href:"/help-center/rules",label:"Regels"}],n=[{href:"/community/radio",label:"Radio Home"},{href:"/community/radio/rooster",label:"DJ Rooster"},{href:"/community/radio/shouts",label:"Live Berichten"},{href:"/community/radio/dj-aanmelden",label:"DJ worden"},{href:"/community/radio/punten",label:"Radio Punten"}],o=[{code:"nl",flag:"🇳🇱"},{code:"en",flag:"🇬🇧"},{code:"da",flag:"🇩🇰"},{code:"fi",flag:"🇫🇮"},{code:"de",flag:"🇩🇪"},{code:"fr",flag:"🇫🇷"},{code:"tr",flag:"🇹🇷"},{code:"se",flag:"🇸🇪"},{code:"br",flag:"🇧🇷"},{code:"it",flag:"🇮🇹"},{code:"es",flag:"🇪🇸"},{code:"no",flag:"🇳🇴"}];e.s(["default",0,function(){let[e,i]=(0,r.useState)(!1),[d,c]=(0,r.useState)(null),[u,h]=(0,r.useState)(!1),m=e=>{c(d===e?null:e)};return(0,t.jsxs)("nav",{className:"relative shadow-md bg-navbar text-navbar-text",children:[(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-4",children:(0,t.jsxs)("div",{className:"flex items-center justify-between h-16",children:[(0,t.jsx)("div",{className:"hidden md:flex items-center space-x-1",children:(0,t.jsxs)("div",{className:"hidden md:flex h-16 items-center gap-6",children:[a.map(e=>(0,t.jsx)(l.default,{href:e.href,className:"nav-item border-b-2 border-primary px-3 py-2 text-sm font-semibold tracking-wide uppercase transition-all duration-200 hover:border-b-primary",style:{color:"var(--color-navbar-text)"},children:e.label},e.href)),(0,t.jsxs)("div",{className:"relative h-16 px-3 text-sm font-semibold tracking-wide uppercase transition-all duration-200 ease-in-out border-b-2 border-transparent hover:border-b-primary z-50",children:[(0,t.jsxs)("button",{onClick:()=>m("support"),className:"flex items-center gap-2 h-full",children:["Ondersteuning",(0,t.jsx)("svg",{className:`h-5 w-5 transition-transform duration-200 ${"support"===d?"rotate-180":""}`,style:{color:"#6b7280"},viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),"support"===d&&(0,t.jsx)("div",{className:"absolute left-0 mt-0 top-full overflow-hidden shadow-lg whitespace-nowrap z-50 min-w-[150px] rounded-lg border border-primary bg-white",children:s.map(e=>(0,t.jsx)(l.default,{href:e.href,className:"block px-4 py-2 hover:bg-gray-100 transition-colors",children:e.label},e.href))})]}),(0,t.jsxs)("div",{className:"relative h-16 px-3 text-sm font-semibold tracking-wide uppercase transition-all duration-200 ease-in-out border-b-2 border-transparent hover:border-b-primary z-50",children:[(0,t.jsxs)("button",{onClick:()=>m("radio"),className:"flex items-center gap-2 h-full",children:["Radio",(0,t.jsx)("svg",{className:`h-5 w-5 transition-transform duration-200 ${"radio"===d?"rotate-180":""}`,style:{color:"#6b7280"},viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),"radio"===d&&(0,t.jsx)("div",{className:"absolute left-0 mt-0 top-full overflow-hidden shadow-lg whitespace-nowrap z-50 min-w-[150px] rounded-lg border border-primary bg-white",children:n.map(e=>(0,t.jsx)(l.default,{href:e.href,className:"block px-4 py-2 hover:bg-gray-100 transition-colors",children:e.label},e.href))})]})]})}),(0,t.jsx)("div",{className:"hidden lg:flex items-center",children:(0,t.jsxs)("div",{className:"relative h-16 px-3 text-sm font-semibold tracking-wide uppercase transition-all duration-200 ease-in-out border-b-2 border-transparent hover:border-b-primary z-50",children:[(0,t.jsxs)("button",{onClick:()=>h(!u),className:"flex items-center gap-2 h-full",children:[(0,t.jsx)("span",{className:"w-5 h-4 object-cover rounded-sm",children:"🇩🇪"}),(0,t.jsx)("svg",{className:`h-5 w-5 transition-transform duration-200 ${u?"rotate-180":""}`,style:{color:"#6b7280"},viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),u&&(0,t.jsx)("div",{className:"absolute left-0 mt-0 top-full overflow-hidden shadow-lg whitespace-nowrap z-50 min-w-[50px] -ml-4 rounded-lg border border-primary bg-white",children:o.map(e=>(0,t.jsx)(l.default,{href:`/language/${e.code}`,className:"block px-4 py-2 hover:bg-gray-100 transition-colors text-lg",children:e.flag},e.code))})]})}),(0,t.jsxs)("button",{onClick:()=>i(!e),className:"absolute right-4 top-4 z-10 p-2 rounded-lg transition-all duration-200 hover:bg-gray-100 md:hidden","aria-controls":"mobile-menu","aria-expanded":e,children:[(0,t.jsx)("span",{className:"sr-only",children:"Menu openen"}),e?(0,t.jsx)("svg",{className:"h-7 w-7",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}):(0,t.jsx)("svg",{className:"h-7 w-7",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})]})]})}),e&&(0,t.jsx)("div",{className:"absolute top-full left-0 right-0 z-40 shadow-xl border-t-2 max-h-[80vh] overflow-y-auto md:hidden bg-white border-primary",children:(0,t.jsxs)("div",{className:"py-2",children:[a.map(e=>(0,t.jsx)(l.default,{href:e.href,className:"block px-4 py-3 border-b border-gray-200 hover:bg-gray-50",children:e.label},e.href)),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>m("mobile-support"),className:"flex items-center justify-between w-full px-4 py-3 text-sm font-semibold uppercase tracking-wide",children:[(0,t.jsx)("span",{children:"Unterstützung"}),(0,t.jsx)("svg",{className:`h-5 w-5 transition-transform duration-200 ${"mobile-support"===d?"rotate-180":""}`,style:{color:"#6b7280"},viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),"mobile-support"===d&&(0,t.jsx)("div",{className:"bg-white rounded-lg border border-primary shadow-dropdown",children:s.map(e=>(0,t.jsx)(l.default,{href:e.href,className:"block px-4 py-2 hover:bg-gray-100",children:e.label},e.href))})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>m("mobile-radio"),className:"flex items-center justify-between w-full px-4 py-3 text-sm font-semibold uppercase tracking-wide",children:[(0,t.jsx)("span",{children:"Radio"}),(0,t.jsx)("svg",{className:`h-5 w-5 transition-transform duration-200 ${"mobile-radio"===d?"rotate-180":""}`,style:{color:"#6b7280"},viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),"mobile-radio"===d&&(0,t.jsx)("div",{className:"bg-white rounded-lg border border-primary shadow-dropdown",children:n.map(e=>(0,t.jsx)(l.default,{href:e.href,className:"block px-4 py-2 hover:bg-gray-100",children:e.label},e.href))})]}),(0,t.jsx)("div",{className:"w-full flex justify-center mt-4 mb-2",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>h(!u),className:"flex items-center gap-2 px-4 py-3 text-sm font-semibold uppercase",children:[(0,t.jsx)("span",{children:"🇳🇱"}),(0,t.jsx)("svg",{className:`h-5 w-5 transition-transform duration-200 ${u?"rotate-180":""}`,style:{color:"#6b7280"},viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),u&&(0,t.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 mt-0 top-full bg-white rounded-lg border border-primary shadow-dropdown z-50 min-w-[50px]",children:o.map(e=>(0,t.jsx)(l.default,{href:`/language/${e.code}`,className:"block px-4 py-2 hover:bg-gray-100 text-lg",children:e.flag},e.code))})]})})]})})]})}])},13642,e=>{"use strict";var t=e.i(43476),r=e.i(22016);let l=[{href:"/about",label:"Over ons"},{href:"/contact",label:"Contact"}],a=[{href:"/help-center/rules",label:"Regels"},{href:"/help-center/faq",label:"FAQ"},{href:"/help-center/contact",label:"Contact support"}],s=[{href:"/privacy",label:"Privacybeleid"},{href:"/terms",label:"Algemene voorwaarden"},{href:"/imprint",label:"Impressum"}];e.s(["default",0,function(){return(0,t.jsx)("footer",{className:"bg-secondary text-white py-8 mt-auto",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[(0,t.jsxs)("div",{className:"col-span-1",children:[(0,t.jsx)("h3",{className:"text-xl font-bold text-primary mb-4",children:"Epicnabbo"}),(0,t.jsx)("p",{className:"text-gray-400 text-sm",children:"Een online virtuele wereld waarin je je eigen avatar kunt maken, vrienden kunt maken, kunt chatten, kamers kunt maken en nog veel meer!"})]}),(0,t.jsxs)("div",{className:"col-span-1",children:[(0,t.jsx)("h4",{className:"font-semibold mb-4",children:"Bedrijf"}),(0,t.jsx)("ul",{className:"space-y-2",children:l.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:e.href,className:"text-gray-400 hover:text-primary transition-colors text-sm",children:e.label})},e.href))})]}),(0,t.jsxs)("div",{className:"col-span-1",children:[(0,t.jsx)("h4",{className:"font-semibold mb-4",children:"Ondersteuning"}),(0,t.jsx)("ul",{className:"space-y-2",children:a.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:e.href,className:"text-gray-400 hover:text-primary transition-colors text-sm",children:e.label})},e.href))})]}),(0,t.jsxs)("div",{className:"col-span-1",children:[(0,t.jsx)("h4",{className:"font-semibold mb-4",children:"Juridisch"}),(0,t.jsx)("ul",{className:"space-y-2",children:s.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:e.href,className:"text-gray-400 hover:text-primary transition-colors text-sm",children:e.label})},e.href))})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-700 mt-8 pt-8 text-center text-gray-400 text-sm",children:(0,t.jsxs)("p",{children:["© ",new Date().getFullYear()," Epicnabbo. Alle rechten voorbehouden."]})})]})})}])},9315,e=>{"use strict";var t=e.i(43476),r=e.i(71645),l=e.i(22016),a=e.i(88589),s=e.i(13642),n=e.i(9165);e.s(["default",0,function(){let[e,o]=(0,r.useState)([]),[i,d]=(0,r.useState)(!0),[c,u]=(0,r.useState)(null);return(0,r.useEffect)(()=>{!async function(){try{let{data:e,error:t}=await n.radio.getPoints();t?u(t):e&&o(e)}catch{u("Er is een fout opgetreden bij het laden van de radio punten")}d(!1)}()},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{}),(0,t.jsx)("main",{className:"bg-background min-h-screen",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto p-4 lg:p-6",children:[(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-4 md:p-6 mb-6",children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-text-main",children:"Radio Punten"}),(0,t.jsx)("p",{className:"text-text-muted",children:"Verdien punten door te luisteren en berichten te sturen"})]})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-6",children:[(0,t.jsx)(l.default,{href:"/community/radio",className:"px-4 py-2 rounded-lg bg-surface hover:bg-gray-100 transition-colors text-sm font-semibold text-text-muted",children:"Radio Home"}),(0,t.jsx)(l.default,{href:"/community/radio/rooster",className:"px-4 py-2 rounded-lg bg-surface hover:bg-gray-100 transition-colors text-sm font-semibold text-text-muted",children:"DJ Rooster"}),(0,t.jsx)(l.default,{href:"/community/radio/shouts",className:"px-4 py-2 rounded-lg bg-surface hover:bg-gray-100 transition-colors text-sm font-semibold text-text-muted",children:"Live Berichten"}),(0,t.jsx)(l.default,{href:"/community/radio/dj-aanmelden",className:"px-4 py-2 rounded-lg bg-surface hover:bg-gray-100 transition-colors text-sm font-semibold text-text-muted",children:"DJ worden"})]}),(0,t.jsxs)("div",{className:"bg-surface rounded-lg shadow-card p-4 md:p-6 mb-6",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-text-main mb-2",children:"Hoe verdien je punten?"}),(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,t.jsxs)("div",{className:"bg-background rounded-lg p-4 text-center",children:[(0,t.jsx)("p",{className:"text-2xl mb-1",children:"🎧"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Luisteren"}),(0,t.jsx)("p",{className:"text-xs text-text-muted",children:"Verdien punten voor elke minuut luistertijd"})]}),(0,t.jsxs)("div",{className:"bg-background rounded-lg p-4 text-center",children:[(0,t.jsx)("p",{className:"text-2xl mb-1",children:"💬"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Berichten"}),(0,t.jsx)("p",{className:"text-xs text-text-muted",children:"Stuur shouts om extra punten te verdienen"})]}),(0,t.jsxs)("div",{className:"bg-background rounded-lg p-4 text-center",children:[(0,t.jsx)("p",{className:"text-2xl mb-1",children:"🎁"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Beloningen"}),(0,t.jsx)("p",{className:"text-xs text-text-muted",children:"Wissel punten in voor credits en items"})]})]})]}),i?(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,t.jsx)("p",{className:"text-text-muted",children:"Punten laden..."})}):c?(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,t.jsx)("p",{className:"text-danger",children:c})}):e.length>0?(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card overflow-hidden",children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full",children:[(0,t.jsx)("thead",{className:"bg-background",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"px-4 py-3 text-left text-sm font-semibold text-text-muted",children:"Rank"}),(0,t.jsx)("th",{className:"px-4 py-3 text-left text-sm font-semibold text-text-muted",children:"Gebruiker"}),(0,t.jsx)("th",{className:"px-4 py-3 text-right text-sm font-semibold text-text-muted",children:"Punten"}),(0,t.jsx)("th",{className:"px-4 py-3 text-right text-sm font-semibold text-text-muted hidden sm:table-cell",children:"Uren"}),(0,t.jsx)("th",{className:"px-4 py-3 text-right text-sm font-semibold text-text-muted hidden md:table-cell",children:"Shouts"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-gray-100",children:e.map(e=>{var r,a;return(0,t.jsxs)("tr",{className:"hover:bg-background transition-colors",children:[(0,t.jsx)("td",{className:"px-4 py-3",children:(0,t.jsx)("span",{className:`text-lg font-bold ${1===(r=e.rank)?"text-yellow-400":2===r?"text-gray-400":3===r?"text-orange-400":"text-text-muted"}`,children:1===(a=e.rank)?"🥇":2===a?"🥈":3===a?"🥉":`#${a}`})}),(0,t.jsx)("td",{className:"px-4 py-3",children:(0,t.jsx)(l.default,{href:`/profile/${e.user.username}`,className:"font-semibold text-text-main hover:text-primary transition-colors",children:e.user.username})}),(0,t.jsx)("td",{className:"px-4 py-3 text-right",children:(0,t.jsx)("span",{className:"font-bold text-primary",children:e.points.toLocaleString()})}),(0,t.jsxs)("td",{className:"px-4 py-3 text-right text-sm text-text-muted hidden sm:table-cell",children:[e.hours_listened,"u"]}),(0,t.jsx)("td",{className:"px-4 py-3 text-right text-sm text-text-muted hidden md:table-cell",children:e.shouts_sent})]},e.user.username)})})]})})}):(0,t.jsx)("div",{className:"bg-surface rounded-lg shadow-card p-8 text-center",children:(0,t.jsx)("p",{className:"text-text-muted",children:"Nog geen radio punten beschikbaar"})})]})}),(0,t.jsx)(s.default,{})]})}])}]); |