1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`[email protected]`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`616c47a6-11c7-470d-a1b0-05365946b682`,e._sentryDebugIdIdentifier=`sentry-dbid-616c47a6-11c7-470d-a1b0-05365946b682`)}catch{}})();import{a as e}from"./rolldown-runtime-CPbT2I8W.js";import{t}from"./react-DC4ESYbU.js";import{f as n,n as r}from"./runtime-D8I0f0wl.js";import{t as i}from"./button-CXJcxE9L.js";import{t as a}from"./dayjs.min-1YdsayjL.js";import{n as o}from"./PenaltyContext-BnVwmaR5.js";import{a as s,i as c,o as l,r as u,s as d,t as f}from"./dialog-CT8T-92Q.js";var p=()=>`No reason provided.`,m=()=>`Aucun motif fourni.`,h=((e={},t={})=>(t.locale??r())===`fr`?m(e):p(e)),g=()=>`Reason:`,_=()=>`Motif :`,v=((e={},t={})=>(t.locale??r())===`fr`?_(e):g(e)),y=e=>(e==null?void 0:e.isPermanent)===`true`?`You are permanently suspended from playing due to your behavior in the game.`:`You are temporarily suspended from playing due to your behavior in the game.`,b=e=>(e==null?void 0:e.isPermanent)===`true`?`Tu es suspendu de jouer de façon permanente en raison de ton comportement dans le jeu.`:`Tu es suspendu de jouer en raison de ton comportement dans le jeu.`,x=((e,t={})=>(t.locale??r())===`fr`?b(e):y(e)),S=e=>`You will be able to play again on: ${e==null?void 0:e.date}.`,C=e=>`Tu pourras rejouer le : ${e==null?void 0:e.date}.`,w=((e,t={})=>(t.locale??r())===`fr`?C(e):S(e)),T=()=>`Account Suspended`,E=()=>`Compte Suspendu`,D=((e={},t={})=>(t.locale??r())===`fr`?E(e):T(e)),O=()=>`I understand`,k=()=>`J'ai compris`,A=((e={},t={})=>(t.locale??r())===`fr`?k(e):O(e)),j=()=>`I understand`,M=()=>`J'ai compris`,N=((e={},t={})=>(t.locale??r())===`fr`?M(e):j(e)),P=()=>`You are restricted from communicating via chat following a report of your behavior that has been validated by an administrator. You will be able to chat again the:`,F=()=>`Tu es restreint de communiquer via le chat suite à un signalement de ton comportement qui a été validé par un administrateur. Tu pourras à nouveau discuter le : `,I=((e={},t={})=>(t.locale??r())===`fr`?F(e):P(e)),L=()=>`You are restricted from communicating via chat following a report of your behavior that has been validated by an administrator.`,R=()=>`Tu es restreint de communiquer via le chat suite à un signalement de ton comportement qui a été validé par un administrateur.`,z=((e={},t={})=>(t.locale??r())===`fr`?R(e):L(e)),B=()=>`Chat Restriction`,V=()=>`Restriction de Chat`,H=((e={},t={})=>(t.locale??r())===`fr`?V(e):B(e)),U=()=>`Join the game`,W=()=>`Rejoindre la partie`,G=((e={},t={})=>(t.locale??r())===`fr`?W(e):U(e)),K=e(a(),1),q=e(t(),1),J=n();function Y({penalty:e}){let[t,n]=(0,q.useState)(!0),r=e.type===`ban`||!e.expiresAt;function a(){n(!1)}return(0,J.jsx)(f,{open:t,children:(0,J.jsxs)(u,{allowClose:!1,className:`max-w-md border-2`,children:[(0,J.jsxs)(l,{children:[(0,J.jsx)(d,{className:`text-xl`,children:D()}),(0,J.jsxs)(c,{className:`pt-1 text-base`,children:[x({isPermanent:r.toString()}),!r&&(0,J.jsxs)(J.Fragment,{children:[` `,w({date:(0,K.default)(e.expiresAt).format(`DD/MM/YYYY HH:mm`)}),` `]})]})]}),(0,J.jsxs)(`p`,{className:`font-semibold text-ink`,children:[v(),` `,(0,J.jsx)(`span`,{className:`font-normal`,children:e.reason||h()})]}),(0,J.jsx)(s,{className:`mt-2 justify-center sm:justify-center`,children:(0,J.jsx)(i,{onClick:a,children:A()})})]})})}function X({penalty:e}){let{acknowledgePenalty:t}=o(),[n,r]=(0,q.useState)(!0);return(0,J.jsx)(f,{open:n,children:(0,J.jsxs)(u,{allowClose:!1,className:`max-w-md`,children:[(0,J.jsxs)(l,{children:[(0,J.jsx)(d,{className:`text-center`,children:H()}),(0,J.jsx)(c,{className:`pt-2 text-center`,children:e.expiresAt?I():z()})]}),e.expiresAt&&(0,J.jsx)(`p`,{className:`text-center text-ink mb-2`,children:(0,K.default)(e.expiresAt).format(`DD/MM/YYYY HH:mm`)}),(0,J.jsx)(s,{className:`justify-center sm:justify-center`,children:(0,J.jsx)(i,{onClick:async()=>{await t(e.id),r(!1)},children:N()})})]})})}function Z(){let{penalties:e}=o(),t=e.find(e=>e.type===`ban`);if(t)return(0,J.jsx)(Y,{penalty:t});let n=e.find(e=>e.type===`tempban`);if(n)return(0,J.jsx)(Y,{penalty:n});let r=e.find(e=>e.type===`chat_restrict`&&!e.acknowledgedAt);return r?(0,J.jsx)(X,{penalty:r}):null}export{G as n,Z as t};
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.