// Copyright (c) 2009-2026 SAP SE, All Rights Reserved
/**
 * @fileoverview This module provides a function that actually initiates loading of the
 * launchpad content.
 */
sap.ui.define([

], (

) => {
    "use strict";

    function loadLaunchpadContent (sDomId) {
        // Lazy loading of iconfonts and AppConfiguration (avoid packing this module into cdm.js bundle)
        sap.ui.require(["sap/ushell/iconfonts", "sap/ushell/services/AppConfiguration", "sap/ushell/Container"], (IconFonts, Configuration, Container) => {
            // Create the default renderer asynchronously and place its UI5 control into the canvas div replacing the contents
            Container.createRendererInternal(null).then(
                (oContent) => {
                    oContent.placeAt(sDomId || "canvas", "only");
                }
            );
            IconFonts.registerFiori2IconFont();
        });
    }

    return loadLaunchpadContent;
});
