import { n as cn } from "./utils-DXzSsU1e.js";
import { createElementBlock, defineComponent, mergeModels, normalizeClass, openBlock, unref, useModel, vModelText, withDirectives } from "vue";
//#endregion
//#region src/components/ui/input/Input.vue
var Input_default = /* @__PURE__ */ defineComponent({
	__name: "Input",
	props: /* @__PURE__ */ mergeModels({
		defaultValue: {},
		modelValue: {},
		class: { type: [
			Boolean,
			null,
			String,
			Object,
			Array
		] }
	}, {
		"modelValue": { default: void 0 },
		"modelModifiers": {}
	}),
	emits: ["update:modelValue"],
	setup(__props) {
		const props = __props;
		const modelValue = useModel(__props, "modelValue");
		if (modelValue.value === void 0 && props.defaultValue !== void 0) modelValue.value = props.defaultValue;
		return (_ctx, _cache) => {
			return withDirectives((openBlock(), createElementBlock("input", {
				"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
				class: normalizeClass(unref(cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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))
			}, null, 2)), [[vModelText, modelValue.value]]);
		};
	}
});
//#endregion
export { Input_default as t };

//# sourceMappingURL=input-CwDp-vE8.js.map