<script lang="ts">
	import { Input } from '$lib/components/ui/input';
	import { Label } from '$lib/components/ui/label';
	import type { Item } from '$lib/api/dashboard/a76/items';

	let { lineItem = $bindable() }: { lineItem: Partial<Item> } = $props();
</script>

<fieldset class="border rounded-md p-3 space-y-3">
	<legend class="text-xs font-semibold px-2 uppercase">Identifiers</legend>
	
	<div class="space-y-2">
		<Label for="identificador1" class="text-xs">Main Identifier:</Label>
		<Input id="identificador1" bind:value={lineItem.identifier} class="h-8 text-sm" />
	</div>

	<div class="space-y-2">
		<Label for="notas_identificadores" class="text-xs">Additional Identifiers / Notes:</Label>
		<textarea 
			id="notas_identificadores"
			bind:value={lineItem.wildcard_field}
			class="flex min-h-[120px] w-full rounded-md border-2 border-input dark:border-zinc-600 bg-background dark:text-white px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 dark:focus-visible:border-zinc-400 dark:focus-visible:ring-zinc-400/50"
			placeholder="Additional identifiers or notes..."
		></textarea>
	</div>
</fieldset>
