{"version":3,"file":"Input.vue.cjs","sources":["../../../../src/components/shadcn/Input.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { HTMLAttributes } from \"vue\"\nimport { useVModel } from \"@vueuse/core\"\nimport { cn } from \"@/lib/utils\"\n\nconst props = defineProps<{\n  defaultValue?: string | number\n  modelValue?: string | number\n  class?: HTMLAttributes[\"class\"]\n}>()\n\nconst emits = defineEmits<{\n  (e: \"update:modelValue\", payload: string | number): void\n}>()\n\nconst modelValue = useVModel(props, \"modelValue\", emits, {\n  passive: true,\n  defaultValue: props.defaultValue,\n})\n</script>\n\n<template>\n  <input v-model=\"modelValue\" :class=\"cn('flex h-7 w-full rounded-sm border border-input bg-background px-2.5 py-1 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-foreground file:text-xs file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', props.class)\">\n</template>\n"],"names":["props","__props","emits","__emit","modelValue","useVModel","_createElementBlock","$event","_normalizeClass","_unref","cn"],"mappings":"+TAKA,MAAMA,EAAQC,EAMRC,EAAQC,EAIRC,EAAaC,EAAAA,UAAUL,EAAO,aAAcE,EAAO,CACvD,QAAS,GACT,aAAcF,EAAM,YAAA,CACrB,+CAICM,EAAAA,mBAA2a,QAAA,iDAA3ZF,EAAU,MAAAG,EAAA,MAAG,MAAKC,EAAAA,eAAEC,QAAAC,EAAAA,EAAA,EAAE,qXAAuXV,EAAM,KAAK,CAAA,CAAA,0BAAxZS,EAAAA,MAAAL,CAAA,CAAU,CAAA"}