import { jsx as c } from "react/jsx-runtime";
import { useEdificeClient as u, useEdificeTheme as g, EmptyScreen as f } from "@edifice.io/react";
import { useTranslation as y } from "react-i18next";
import { useState as b, useEffect as v } from "react";
import "@edifice.io/client";
import "@tanstack/react-query";
import "i18next";
import { x as _, u as x } from "./index2.js";
const S = (t, e, o) => {
  const s = t[e];
  return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((m, r) => {
    (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
      r.bind(
        null,
        new Error(
          "Unknown variable dynamic import: " + e + (e.split("/").length !== o ? ". Note that variables only represent file names one level deep." : "")
        )
      )
    );
  });
};
function U() {
  const {
    appCode: t
  } = u(), {
    theme: e
  } = g(), {
    t: o
  } = y(), [s, m] = b("");
  v(() => {
    (async () => {
      const a = await S(/* @__PURE__ */ Object.assign({ "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-actualites.svg": () => import("./illu-actualites.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-blog.svg": () => import("./illu-blog.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-collaborativeeditor.svg": () => import("./illu-collaborativeeditor.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-collaborativewall.svg": () => import("./illu-collaborativewall.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-error.svg": () => import("./illu-error.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-exercizer.svg": () => import("./illu-exercizer.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-homeworks.svg": () => import("./illu-homeworks.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-messagerie.svg": () => import("./illu-messagerie.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-mindmap.svg": () => import("./illu-mindmap.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-no-content-in-folder.svg": () => import("./illu-no-content-in-folder.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-pad.svg": () => import("./illu-pad.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-scrapbook.svg": () => import("./illu-scrapbook.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-search.svg": () => import("./illu-search.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-timeline.svg": () => import("./illu-timeline.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-timelinegenerator.svg": () => import("./illu-timelinegenerator.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-trash.svg": () => import("./illu-trash.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-wiki.svg": () => import("./illu-wiki.js") }), `../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-${t}.svg`, 10);
      m(a.default);
    })();
  }, [t]);
  const r = _((l) => l.config), {
    data: n
  } = x(r == null ? void 0 : r.actions), i = n == null ? void 0 : n.find((l) => l.id === "create"), p = () => i != null && i.available && (e != null && e.is1d) ? o("explorer.emptyScreen.txt1d.create", {
    ns: t
  }) : i != null && i.available && !(e != null && e.is1d) ? o("explorer.emptyScreen.txt2d.create", {
    ns: t
  }) : !(i != null && i.available) && (e != null && e.is1d) ? o("explorer.emptyScreen.txt1d.consultation", {
    ns: t
  }) : o("explorer.emptyScreen.txt2d.consultation", {
    ns: t
  }), d = () => i != null && i.available && (e != null && e.is1d) ? o("explorer.emptyScreen.title1d.create", {
    ns: t
  }) : i != null && i.available && !(e != null && e.is1d) ? o("explorer.emptyScreen.title2d.create", {
    ns: t
  }) : !(i != null && i.available) && (e != null && e.is1d) ? o("explorer.emptyScreen.title1d.consultation", {
    ns: t
  }) : o("explorer.emptyScreen.title2d.consultation", {
    ns: t
  });
  return /* @__PURE__ */ c(f, { imageSrc: s, imageAlt: o("explorer.emptyScreen.app.alt", {
    ns: t
  }), title: d(), text: p() });
}
export {
  U as default
};
