import { __exportAll as e } from "../../_virtual/_rolldown/runtime.js";
import t from "./TableComponent.js";
import { RawData as n } from "./adapters/RawData.js";
import { AsyncData as r } from "./adapters/AsyncData.js";
import { computed as i, h as a, reactive as o, unref as s } from "vue";
var c = /* @__PURE__ */ e({
	AsyncData: () => r,
	Component: () => t,
	factory: () => u,
	rawDataSettings: () => d,
	settings: () => l,
	useRawData: () => f,
	useRawDataComponent: () => p
});
function l(e) {
	return Object.freeze(e);
}
function u(e) {
	return a(t, { settings: Object.freeze(e) });
}
/** * Adapters ***/
function d(e, t) {
	let r = new n(e, t.resolveRowHeight, t.resolvePrimaryKey);
	return {
		...t,
		dataSource: r
	};
}
function f(e, t) {
	return i(() => d(s(e), s(t)));
}
/**
* @deprecated
* @param rows
* @param raw
* @returns
*/
function p(e, n) {
	let r = o({ settings: i(() => d(s(e), s(n))) });
	return i(() => a(t, r));
}
export { c as DataTable_exports };

//# sourceMappingURL=index.js.map