import { defineComponent, computed, mergeProps, unref, createSlots, withCtx, renderSlot, useSSRContext } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs'; import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent, ssrRenderSlot } from 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/server-renderer/index.mjs'; import { u as usePrice } from './usePrice-_QzChhgO.mjs'; import { u as usePrefix } from './BasicIconOld-93vAWohq.mjs'; import { _ as __nuxt_component_0, I as Input } from './index-G65aBv4F.mjs'; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "BasicInput", __ssrInlineRender: true, props: { title: {}, value: {}, size: {}, type: {}, isPassword: { type: Boolean, default: false }, inputmode: {}, disabled: { type: Boolean }, addonAfter: {}, addonBefore: {}, addonBgColor: {}, addonTextColor: {}, placeHolder: {} }, emits: ["update:value", "onchange"], setup(__props, { emit: __emit }) { computed(() => props.addonBgColor); computed(() => props.addonTextColor); const localValue = computed({ set(value) { props.type === "price" ? emits("update:value", value?.toString().replaceAll(",", "")) : emits("update:value", value); }, get() { let a = props.type === "price" ? props.value ? usePrice(props.value, true, "").trim() : "" : props.value; return a; } }); const props = __props; const emits = __emit; const handlerChange = (e) => { props.type === "price" ? emits("update:value", e.target.value?.toString().replaceAll(",", "")) : emits("update:value", e.target.value); props.type === "price" ? emits("onchange", e.target.value?.toString().replaceAll(",", "")) : emits("onchange", e.target.value); }; const { prefixCls } = usePrefix("input"); return (_ctx, _push, _parent, _attrs) => { const _component_a_input_password = __nuxt_component_0; const _component_a_input = Input; _push(`