import{jsxs as t,jsx as e}from"react/jsx-runtime";import{I as a}from"./input-qMvM9qch.js";import{L as d}from"./label-DMnntKPk.js";import{C as s,b as m,c as p,a as o}from"./card-Zg0WOx-j.js";import{Hash as u,Coins as h}from"lucide-react";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";import"@radix-ui/react-label";function f({formData:i,onFormDataChange:r,errors:l,onItemNameLookup:n}){return t(s,{children:[e(m,{children:t("div",{className:"flex items-center gap-2",children:[e(u,{className:"h-5 w-5 text-muted-foreground"}),e(p,{className:"text-lg",children:"Basic Information"})]})}),e(o,{children:t("div",{className:"grid gap-4 sm:grid-cols-2",children:[t("div",{className:"grid gap-2",children:[e(d,{htmlFor:"item_id",children:"Item ID"}),e(a,{id:"item_id",type:"number",value:i.item_id,onChange:c=>r({...i,item_id:c.target.value}),onBlur:()=>n(i.item_id),placeholder:"Enter item ID"}),l.item_id&&e("p",{className:"text-sm text-destructive",children:l.item_id})]}),t("div",{className:"grid gap-2",children:[e(d,{htmlFor:"count",children:"Count (Quantity)"}),e(a,{id:"count",type:"number",min:"1",value:i.count,onChange:c=>r({...i,count:c.target.value}),placeholder:"Quantity per purchase"}),l.count&&e("p",{className:"text-sm text-destructive",children:l.count})]}),t("div",{className:"grid gap-2 sm:col-span-2",children:[e(d,{htmlFor:"price",children:"Price (Gold)"}),t("div",{className:"relative",children:[e(h,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-yellow-500"}),e(a,{id:"price",type:"number",min:"0",value:i.price,onChange:c=>r({...i,price:c.target.value}),placeholder:"Price in gold",className:"pl-10"})]}),l.price&&e("p",{className:"text-sm text-destructive",children:l.price})]})]})})]})}export{f as BasicInfoForm};
