import{jsxs as t,jsx as e}from"react/jsx-runtime";import{B as p}from"./button-BvFBRYHq.js";import{S as d}from"./separator-BDLxzoJ8.js";import{T as h,a as f,b as a,c as i}from"./tabs-BOFHghv5.js";import{A as u}from"./layout-CssQHtfO.js";import{Head as g}from"@inertiajs/react";import{Settings as v,Target as N,Eraser as x,Calculator as S}from"lucide-react";import{useState as o}from"react";import{toast as b}from"sonner";import{DropRateConverter as C}from"./DropRateConverter-B3SVve6k.js";import{FloatToHexConverter as T}from"./FloatToHexConverter-CqwyjjJr.js";import{RareItemCleaner as y}from"./RareItemCleaner-BgoBqltf.js";import{SettingsDialog as w}from"./SettingsDialog-XymWQGLg.js";import"@radix-ui/react-slot";import"class-variance-authority";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";import"@radix-ui/react-separator";import"@radix-ui/react-tabs";import"./app-sidebar-header-BX2s-HO_.js";import"@radix-ui/react-collapsible";import"./dropdown-menu-BP80qPHw.js";import"@radix-ui/react-dropdown-menu";import"./app-logo-icon-beRg1XGs.js";import"./fonts-CqawFh47.js";import"@radix-ui/react-dialog";import"@radix-ui/react-tooltip";import"@radix-ui/react-avatar";import"../app.js";/* empty css     */import"axios";import"react-dom/client";import"./toaster-DuLpwsc2.js";import"./badge-CFi7bqqA.js";import"./card-Zg0WOx-j.js";import"./input-qMvM9qch.js";import"./label-DMnntKPk.js";import"@radix-ui/react-label";import"./textarea-DGUf1VTd.js";import"./ColoredOutput-DOBwYw7G.js";import"./dialog-BfGkTFdF.js";const I=[{title:"Dashboard",href:"/admin"},{title:"Fitur",href:"/admin/fitur"}];function ge(){const[m,l]=o("converter"),[n,r]=o(!1),[s,c]=o("/home/gamed/config/rare_item.conf");return t(u,{breadcrumbs:I,children:[e(g,{title:"Fitur - Admin Panel"}),t("div",{className:"space-y-6",children:[t("div",{className:"space-y-4",children:[t("div",{className:"flex items-start justify-between",children:[t("div",{className:"space-y-1",children:[e("h1",{className:"text-3xl font-bold tracking-tight",children:"Game Tools & Utilities"}),e("p",{className:"text-muted-foreground",children:"Powerful tools for managing drop rates, items, and data conversion"})]}),t(p,{variant:"outline",size:"default",onClick:()=>r(!0),children:[e(v,{className:"h-4 w-4"}),e("span",{className:"ml-2 hidden md:inline",children:"Settings"})]})]}),e(d,{})]}),t(h,{value:m,onValueChange:l,className:"w-full",children:[t(f,{className:"grid w-full grid-cols-3",children:[t(a,{value:"converter",className:"flex items-center gap-2",children:[e(N,{className:"h-4 w-4"}),"Drop Rate Converter"]}),t(a,{value:"cleaner",className:"flex items-center gap-2",children:[e(x,{className:"h-4 w-4"}),"Rare Item Cleaner"]}),t(a,{value:"floathex",className:"flex items-center gap-2",children:[e(S,{className:"h-4 w-4"}),"Float → Hex"]})]}),e(i,{value:"converter",className:"mt-6 space-y-4",children:e(C,{})}),e(i,{value:"cleaner",className:"mt-6 space-y-4",children:e(y,{rareItemPath:s})}),e(i,{value:"floathex",className:"mt-6 space-y-4",children:e(T,{})})]})]}),e(w,{open:n,onOpenChange:r,rareItemPath:s,onRareItemPathChange:c,onSave:()=>{b.success("Settings saved successfully!"),r(!1)}})]})}export{ge as default};
