import{jsx as e,jsxs as i}from"react/jsx-runtime";import{memo as l}from"react";import{B as s}from"./badge-CFi7bqqA.js";import"@radix-ui/react-slot";import"class-variance-authority";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";const b=l(function({gmList:r,widgetBackgroundUrl:a}){return e("div",{className:"side-block rounded-lg border p-4",style:{backgroundImage:`url('${a||"/img/step/bg.webp"}')`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundColor:"transparent"},children:i("div",{className:"flex items-start gap-4",children:[e("div",{className:"flex-shrink-0",children:e("img",{src:"/img/step/ico-1.webp",alt:"GM Icon",className:"h-16 w-auto"})}),i("div",{className:"flex flex-col w-full",children:[e("h3",{className:"text-xl font-bold text-white tracking-widest mb-2",style:{fontFamily:"serif"},children:"GM ONLINE"}),e("div",{className:"flex flex-col gap-1",children:r&&r.length>0?r.map(t=>i("div",{className:"flex items-center justify-between text-xs uppercase font-semibold",children:[e("span",{className:"tracking-wide text-white/90",children:t.truename}),e(s,{className:t.online?"bg-green-600 hover:bg-green-700 text-white border-0 px-3 py-0.5 uppercase text-xs":"bg-red-600 hover:bg-red-700 text-white border-0 px-3 py-0.5 uppercase text-xs",children:t.online?"Online":"Offline"})]},t.id)):e("div",{className:"text-xs text-white/60 font-medium italic",children:"No GM Online"})})]})]})})});export{b as GMStatusWidget};
