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