// Copyright (c) 2009-2026 SAP SE, All Rights Reserved
(function () {
    "use strict";

    document.addEventListener("DOMContentLoaded", () => {
        const oBootstrapScript = document.getElementById("sap-ui-bootstrap");
        if (!oBootstrapScript) { return; }

        const sBootstrapSrc = oBootstrapScript.src;
        if (!sBootstrapSrc) { return; }

        const sBootstrapRoot = sBootstrapSrc.split("/resources/")[0];

        const link = document.createElement("link");
        link.rel = "stylesheet";
        link.href = `${sBootstrapRoot}/resources/sap/ushell/appRuntime/ui5/BusyIndicator.css`;
        document.head.appendChild(link);

        window.apprtBIdiv = document.createElement("div");
        window.apprtBIdiv.classList.add("apprtBIcenter");
        window.apprtBIdiv.appendChild(document.createElement("div"));
        window.apprtBIdiv.appendChild(document.createElement("div"));
        window.apprtBIdiv.appendChild(document.createElement("div"));
        document.body.appendChild(window.apprtBIdiv);
    });
})();
