import{jsx as e,jsxs as l}from"react/jsx-runtime";import{L as c}from"./label-DMnntKPk.js";import{I as r}from"./input-qMvM9qch.js";import{S as d}from"./switch-C-6z1FXy.js";import{MaskSelect as o}from"./MaskSelect-db8-mWU9.js";import"@radix-ui/react-label";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";import"react";import"@radix-ui/react-switch";import"./select-DfhewM4T.js";import"@radix-ui/react-select";import"lucide-react";function F({formData:a,onFieldChange:m,masks:n,idPrefix:s=""}){const i=t=>s?`${s}_${t}`:t;return e("div",{className:"grid gap-4 py-4",children:l("div",{className:"grid grid-cols-2 gap-4",children:[l("div",{className:"space-y-2",children:[e(c,{htmlFor:i("name"),children:"Event Name"}),e(r,{id:i("name"),value:a.name,onChange:t=>m("name",t.target.value),placeholder:"Milestone 100"})]}),l("div",{className:"space-y-2",children:[e(c,{htmlFor:i("milestone"),children:"Milestone Target"}),e(r,{id:i("milestone"),type:"number",value:a.milestone,onChange:t=>m("milestone",t.target.value),placeholder:"100"})]}),l("div",{className:"space-y-2",children:[e(c,{htmlFor:i("min_level"),children:"Minimum Level"}),e(r,{id:i("min_level"),type:"number",value:a.min_level,onChange:t=>m("min_level",t.target.value),placeholder:"1"})]}),l("div",{className:"space-y-2",children:[e(c,{htmlFor:i("item_id"),children:"Item ID"}),e(r,{id:i("item_id"),type:"number",value:a.item_id,onChange:t=>m("item_id",t.target.value),placeholder:"Item ID"})]}),l("div",{className:"space-y-2",children:[e(c,{htmlFor:i("item_name"),children:"Item Name"}),e(r,{id:i("item_name"),value:a.item_name,onChange:t=>m("item_name",t.target.value),placeholder:"Display Name"})]}),l("div",{className:"space-y-2",children:[e(c,{htmlFor:i("item_count"),children:"Quantity"}),e(r,{id:i("item_count"),type:"number",value:a.item_count,onChange:t=>m("item_count",t.target.value),placeholder:"1"})]}),l("div",{className:"space-y-2",children:[e(c,{htmlFor:i("protect_type"),children:"Protect Type"}),e(r,{id:i("protect_type"),type:"number",value:a.protect_type,onChange:t=>m("protect_type",t.target.value)})]}),l("div",{className:"space-y-2",children:[e(c,{htmlFor:i("octet"),children:"Octet"}),e(r,{id:i("octet"),value:a.octet,onChange:t=>m("octet",t.target.value),placeholder:"Optional"})]}),l("div",{className:"space-y-2",children:[e(c,{htmlFor:i("mask"),children:"Mask"}),e(o,{id:i("mask"),value:a.mask,onValueChange:t=>m("mask",t),masks:n})]}),e("div",{className:"flex items-end pb-2",children:l("div",{className:"flex items-center space-x-2 border p-2 rounded-md w-full bg-muted/50",children:[e(d,{id:i("is_active"),checked:a.is_active,onCheckedChange:t=>m("is_active",t)}),e("div",{className:"space-y-0.5",children:e(c,{htmlFor:i("is_active"),className:"text-sm font-medium cursor-pointer",children:"Active Status"})})]})})]})})}export{F as EventFormFields};
