"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = function(exports1, definition) {
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = function(obj, prop) {
        return Object.prototype.hasOwnProperty.call(obj, prop);
    };
})();
(()=>{
    __webpack_require__.r = function(exports1) {
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    AdminSettingsLayout: ()=>AdminSettings_js_namespaceObject.AdminSettingsLayout,
    SettingsCenterContext: ()=>AdminSettings_js_namespaceObject.SettingsCenterContext,
    SettingsCenterDropdown: ()=>SettingsCenterDropdown_js_namespaceObject.SettingsCenterDropdown,
    PMPlugin: ()=>PMPlugin,
    default: ()=>pm_rslib_entry_,
    PluginManager: ()=>external_PluginManager_js_namespaceObject.PluginManager
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
require("react");
const index_js_namespaceObject = require("../../application/index.js");
const Plugin_js_namespaceObject = require("../../application/Plugin.js");
const external_schema_templates_index_js_namespaceObject = require("../../schema-templates/index.js");
const AdminSettings_js_namespaceObject = require("../setting-layout/AdminSettings.js");
const SettingsCenterDropdown_js_namespaceObject = require("../setting-layout/SettingsCenterDropdown.js");
const external_system_settings_index_js_namespaceObject = require("../system-settings/index.js");
const external_PluginManager_js_namespaceObject = require("./PluginManager.js");
class PMPlugin extends Plugin_js_namespaceObject.Plugin {
    async load() {
        this.addComponents();
        this.addRoutes();
        this.addSettings();
    }
    addSettings() {
        this.app.systemSettingsManager.add('business-components.ui-schema-storage', {
            title: '{{t("Block templates")}}',
            icon: 'LayoutOutlined',
            Component: external_schema_templates_index_js_namespaceObject.BlockTemplatesPane,
            aclSnippet: 'pm.ui-schema-storage.block-templates'
        });
        this.app.systemSettingsManager.add('system-settings', {
            icon: 'SettingOutlined',
            title: '{{t("System settings")}}',
            Component: external_system_settings_index_js_namespaceObject.SystemSettingsPane,
            aclSnippet: 'pm.system-settings.system-settings',
            sort: -100
        });
        this.app.systemSettingsManager.add('system-services.plugin-manager', {
            icon: 'ApiOutlined',
            title: '{{t("Plugin manager")}}',
            Component: external_PluginManager_js_namespaceObject.PluginManager,
            aclSnippet: 'pm',
            sort: -90
        });
    }
    addComponents() {
        this.app.addComponents({
            SettingsCenterDropdown: SettingsCenterDropdown_js_namespaceObject.SettingsCenterDropdown
        });
    }
    addRoutes() {
        this.app.router.add('admin-settings', {
            path: index_js_namespaceObject.ADMIN_SETTINGS_PATH,
            element: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AdminSettings_js_namespaceObject.AdminSettingsLayout, {})
        });
    }
}
const pm_rslib_entry_ = PMPlugin;
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
