import { X as e, w as t } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
import { O as n, n as r, w as i } from "./dist-Cipw2HFH.js";
import { S as a, b as o, v as s, y as c } from "./keys-B8K7Z7Ef.js";
//#region src/composables/useMergeTag.ts
function l() {
	let l = t(s, []), u = t(o, r.liquid), d = t(a, null), f = t(c, !0), p = e(!1);
	function m(e) {
		return n(e, u);
	}
	function h(e) {
		return i(e, l);
	}
	async function g() {
		if (!d) return null;
		p.value = !0;
		try {
			return await d();
		} finally {
			p.value = !1;
		}
	}
	return {
		mergeTags: l,
		isRequesting: p,
		canRequestMergeTag: !!d,
		autocomplete: f,
		syntax: u,
		isMergeTagValue: m,
		getMergeTagLabel: h,
		requestMergeTag: g
	};
}
//#endregion
export { l as t };
