@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
36 lines (32 loc) • 1.73 kB
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
;
var common = require('./common-DPb6NWR4.js');
var componentNames = require('./component-names-5KS_pYRF.js');
var i18n = require('./i18n-CgUN6lev.js');
let initialized = false;
let options;
const bootstrap = async (themes, loaders, koliBriOptions) => {
var _a, _b;
const nodeEnv = typeof process !== 'undefined' && process.env ? "production" : undefined;
common.setRuntimeMode((koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.environment) || nodeEnv || 'production');
i18n.initializeI18n((_b = (_a = koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.translation) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : 'de', koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.translations);
if (koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.transformTagName) {
componentNames.setCustomTagNames(koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.transformTagName);
}
const coreRegisterReturnValue = await common.Z(themes, loaders, koliBriOptions);
initialized = true;
options = koliBriOptions;
common.Log.info('Development mode active - Enhanced debugging features available');
return coreRegisterReturnValue;
};
const register = bootstrap;
const isInitialized = () => initialized;
const getOptions = () => options;
exports.bootstrap = bootstrap;
exports.getOptions = getOptions;
exports.isInitialized = isInitialized;
exports.register = register;
//# sourceMappingURL=bootstrap-ByVQ9oF5.js.map
//# sourceMappingURL=bootstrap-ByVQ9oF5.js.map