"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__, {
    Plugin: function() {
        return Plugin;
    }
});
function _define_property(obj, key, value) {
    if (key in obj) Object.defineProperty(obj, key, {
        value: value,
        enumerable: true,
        configurable: true,
        writable: true
    });
    else obj[key] = value;
    return obj;
}
class Plugin {
    get pluginManager() {
        return this.app.pluginManager;
    }
    get pm() {
        return this.app.pm;
    }
    get router() {
        return this.app.router;
    }
    get systemSettingsManager() {
        return this.app.systemSettingsManager;
    }
    get userSettingsManager() {
        return this.app.userSettingsManager;
    }
    get schemaInitializerManager() {
        return this.app.schemaInitializerManager;
    }
    get schemaSettingsManager() {
        return this.app.schemaSettingsManager;
    }
    get dataSourceManager() {
        return this.app.dataSourceManager;
    }
    get AttachmentPreviewManager() {
        return this.app.AttachmentPreviewManager;
    }
    async afterAdd() {}
    async beforeLoad() {}
    async load() {}
    async afterLoad() {}
    t(text) {
        let options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
        var _this_options;
        return this.app.i18n.t(text, {
            ns: null === (_this_options = this.options) || void 0 === _this_options ? void 0 : _this_options['packageName'],
            ...options
        });
    }
    constructor(options, app){
        _define_property(this, "options", void 0);
        _define_property(this, "app", void 0);
        this.options = options;
        this.app = app;
        this.options = options;
        this.app = app;
    }
}
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
});
