<script setup>
import VnInput from './VnInput.vue';
import { useAccountShortToStandard } from 'src/composables/useAccountShortToStandard';

const model = defineModel({ prop: 'modelValue' });
</script>
<template>
    <VnInput
        v-model="model"
        ref="inputRef"
        @keydown.tab="$refs.inputRef.vnInputRef.blur()"
        @blur="model = useAccountShortToStandard(model) ?? model"
        @input="model = $event.target.value.replace(/[^\d.]/g, '')"
    />
</template>
