import { computed as e } from "vue";
const t = () => ({
	dirPath: "",
	search: "",
	storageEntry: void 0,
	items: [],
	error: "",
	storageOptions: [],
	selected: [],
	lastSelected: void 0,
	currentLoadingPath: void 0,
	showHiddenItems: !1
});
function n(t) {
	return e(() => {
		let e = t.items;
		if (t.showHiddenItems || (e = e.filter((e) => !e.name.startsWith("."))), t.search) {
			let n = t.search.toLocaleLowerCase();
			e = e.filter((e) => e.name.toLocaleLowerCase().includes(n));
		}
		return e;
	});
}
const r = { mounted: (e) => {
	if (e.clientWidth < e.scrollWidth) {
		let t = e.innerText;
		e.innerText = t.substring(0, 57) + "..." + t.substring(t.length - 10);
	}
} };
export { t as defaultData, n as useVisibleItems, r as vTextOverflown };

//# sourceMappingURL=remote-helpers.js.map