import "./rolldown-runtime-CdpVaAjv.js";
import { n as e } from "./utils-DJ3DjJ60.js";
import { f as t } from "./CascaderLoadMore-DdrSXL2Z.js";
import { i as n, r } from "./DatePicker-DHA3FreS.js";
import { i } from "./Button-CG0BbgfC.js";
import { n as a } from "./Input-CoblZPfi.js";
import { computed as o, createBlock as s, createSlots as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeModels as f, mergeProps as p, normalizeProps as m, openBlock as h, ref as g, renderList as _, renderSlot as v, unref as y, useModel as b, useSlots as x, withCtx as S } from "vue";
//#endregion
//#region ../components/MoneyInput/index.ts
var C = e(/* @__PURE__ */ i(/* @__PURE__ */ u({
	name: "zh-money-input",
	__name: "MoneyInput",
	props: /* @__PURE__ */ f({
		style: {},
		class: {},
		showTooltip: {
			type: Boolean,
			default: !0
		}
	}, {
		modelValue: {},
		modelModifiers: {}
	}),
	emits: ["update:modelValue"],
	setup(e) {
		let i = o(() => Object.keys(x())), u = e, f = b(e, "modelValue"), C = o(() => {
			if (f.value) return n(f.value) && Number(f.value) >= 1e3 ? r(Number(f.value)) : "";
		}), w = g(!1);
		return (n, r) => (h(), s(y(t), {
			effect: "dark",
			content: C.value,
			placement: "top",
			visible: e.showTooltip && w.value && !!C.value
		}, {
			default: S(() => [l(a, p(n.$attrs, {
				modelValue: f.value,
				"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
				style: u.style,
				class: u.class,
				onFocus: r[1] ||= () => w.value = !0,
				onBlur: r[2] ||= () => w.value = !1
			}), c({ _: 2 }, [_(i.value, (e) => ({
				name: e,
				fn: S((t) => [v(n.$slots, e, m(d(t)), void 0, !0)])
			}))]), 1040, [
				"modelValue",
				"style",
				"class"
			])]),
			_: 3
		}, 8, ["content", "visible"]));
	}
}), [["__scopeId", "data-v-6b878e41"]]));
//#endregion
export { C as t };
