import { createImportMetaHot } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/import_meta_hot.js";
import.meta.hot = createImportMetaHot(import.meta.url);
import { installPreactRefresh } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-preact/src/client/preact_refresh.js?v=1.5.4";
const __preact_refresh__ = installPreactRefresh("file:///Users/damien.maillard/dev/perso/jsenv-core/packages/related/create-jsenv/demo-web-preact/src/app/app.jsx");
var _jsxFileName = "/Users/damien.maillard/dev/perso/jsenv-core/packages/related/create-jsenv/demo-web-preact/src/app/app.jsx",
  _s = $RefreshSig$();
import { useLayoutEffect } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/create-jsenv/node_modules/preact/hooks/dist/hooks.module.js?v=0.1.0";
import appStyleSheet from "/app/app.css" assert { type: "css" };
import { Counter } from "/app/counter.jsx";
import { jsxDEV as _jsxDEV } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/create-jsenv/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js?v=1.0.0";
const preactLogoUrl = new URL("/preact_logo.svg", import.meta.url);
export const App = () => {
  _s();
  useLayoutEffect(() => {
    document.adoptedStyleSheets = [...document.adoptedStyleSheets, appStyleSheet];
    return () => {
      document.adoptedStyleSheets = document.adoptedStyleSheets.filter(s => s !== appStyleSheet);
    };
  }, []);
  return _jsxDEV("div", {
    className: "app",
    children: _jsxDEV("header", {
      className: "app_header",
      children: [_jsxDEV("img", {
        src: preactLogoUrl,
        className: "app_logo",
        alt: "logo"
      }, void 0, false, {
        fileName: _jsxFileName,
        lineNumber: 24,
        columnNumber: 9
      }, this), _jsxDEV("p", {
        children: "Hello jsenv + preact!"
      }, void 0, false, {
        fileName: _jsxFileName,
        lineNumber: 25,
        columnNumber: 9
      }, this), _jsxDEV("p", {
        children: _jsxDEV(Counter, {}, void 0, false, {
          fileName: _jsxFileName,
          lineNumber: 27,
          columnNumber: 11
        }, this)
      }, void 0, false, {
        fileName: _jsxFileName,
        lineNumber: 26,
        columnNumber: 9
      }, this), _jsxDEV("p", {
        children: ["Edit", " ", _jsxDEV("a", {
          className: "app_link",
          href: "javascript:window.fetch('/__open_in_editor__/app/app.jsx')",
          children: "app.jsx"
        }, void 0, false, {
          fileName: _jsxFileName,
          lineNumber: 31,
          columnNumber: 11
        }, this), " ", "and save to test HMR updates."]
      }, void 0, true, {
        fileName: _jsxFileName,
        lineNumber: 29,
        columnNumber: 9
      }, this), _jsxDEV("p", {
        children: _jsxDEV("a", {
          className: "app_link",
          href: "https://github.com/jsenv/core",
          target: "_blank",
          rel: "noopener noreferrer",
          children: "Jsenv documentation"
        }, void 0, false, {
          fileName: _jsxFileName,
          lineNumber: 40,
          columnNumber: 11
        }, this)
      }, void 0, false, {
        fileName: _jsxFileName,
        lineNumber: 39,
        columnNumber: 9
      }, this)]
    }, void 0, true, {
      fileName: _jsxFileName,
      lineNumber: 23,
      columnNumber: 7
    }, this)
  }, void 0, false, {
    fileName: _jsxFileName,
    lineNumber: 22,
    columnNumber: 5
  }, this);
};
_s(App, "useLayoutEffect{}");
_c = App;
var _c;
$RefreshReg$(_c, "App");
__preact_refresh__.end();
import.meta.hot.accept(__preact_refresh__.acceptCallback);