import { r as reactExports, ah as AxiosRequest, j as jsxRuntimeExports, c7 as clickInFrame } from "./index-D15x63tD.js";
const StartPape = () => {
  const [srcDoc, setSrcDoc] = reactExports.useState("");
  const iframeRef = reactExports.useRef(null);
  reactExports.useEffect(() => {
    const params = /* @__PURE__ */ new Map();
    params.set("prefix", "config").set("comand", "StartPage");
    AxiosRequest(true, params).then((page) => setSrcDoc(page.content));
  }, []);
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
    "iframe",
    {
      srcDoc,
      onLoad: (e) => {
        const iframe = e.target;
        clickInFrame("StartPage", iframe, { linkRef: true });
      },
      height: "100%",
      className: "iframeStimateCustom",
      style: { width: "100%", height: "100%" },
      ref: iframeRef
    }
  );
};
export {
  StartPape as default
};
//# sourceMappingURL=StartPage-DeDwIWma.js.map
