import{jsxs as e,jsx as t}from"react/jsx-runtime";import{memo as c}from"react";import{B as o}from"./badge-CFi7bqqA.js";import{usePage as n}from"@inertiajs/react";import"@radix-ui/react-slot";import"class-variance-authority";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";const v=c(function({serverInfo:a,widgetBackgroundUrl:s}){const{appName:r,appLogoUrl:m}=n().props,i=a.expRate&&a.expRate>1,l=a.doubleDrop===!0;return e("div",{className:"space-y-4",children:[t("div",{className:"side-block rounded-lg border p-4",style:{backgroundImage:`url('${s||"/img/step/bg.webp"}')`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundColor:"transparent"},children:e("div",{className:"flex items-center gap-4",children:[t("div",{className:"flex-shrink-0",children:t("img",{src:"/img/step/ico-4.webp",alt:"Server Icon",width:179,height:180,className:"h-16 w-auto"})}),e("div",{className:"flex flex-col",children:[t("h3",{className:"text-xl font-bold text-white tracking-widest mb-1",style:{fontFamily:"serif"},children:"SERVER STATUS"}),e("div",{className:"text-[10px] text-white/90 uppercase font-semibold mb-1",children:["SERVER TIME: ",a.serverTime]}),e("div",{className:"text-xs text-white/60 font-bold uppercase",children:["ACCOUNT: ",t("span",{className:"text-green-500",children:a.totalAccounts.toLocaleString()})]}),l&&e("div",{className:"text-xs text-white/60 font-bold uppercase",children:["Double Drop: ",t("span",{className:"text-green-500",children:"On"})]}),i&&e("div",{className:"text-xs text-white/60 font-bold uppercase",children:["EXP Rate: ",e("span",{className:"text-green-500",children:["x",a.expRate]})]})]})]})}),t("div",{className:"side-block rounded-lg border p-4",style:{backgroundImage:`url('${s||"/img/step/bg.webp"}')`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundColor:"transparent"},children:e("div",{className:"flex items-center justify-between",children:[e("div",{className:"flex items-center gap-4",children:[t("div",{className:"flex-shrink-0",children:t("img",{src:"/img/step/ico-2.webp",alt:"Player Icon",width:179,height:180,className:"h-16 w-auto"})}),e("div",{className:"flex flex-col",children:[t("h3",{className:"text-xl font-bold text-white tracking-widest mb-1",style:{fontFamily:"serif"},children:r||"GAME SERVER"}),e("div",{className:"text-xs text-white/60 font-bold uppercase",children:["PLAYERS: ",t("span",{className:"text-green-500",children:a.onlinePlayers.toLocaleString()})]})]})]}),t(o,{className:a.serverOnline?"bg-green-500 hover:bg-green-600 text-white border-0":"bg-red-500 hover:bg-red-600 text-white border-0",children:a.serverOnline?"ONLINE":"OFFLINE"})]})})]})});export{v as ServerStatusWidget};
