UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

32 lines (29 loc) 1.66 kB
/*! * KoliBri - The accessible HTML-Standard */ import { k as setRuntimeMode, Z, L as Log } from './prop.validators.js'; import './common.js'; import { s as setCustomTagNames } from './component-names.js'; import { i as initializeI18n } from './i18n2.js'; let initialized = false; let options; const bootstrap = async (themes, loaders, koliBriOptions) => { var _a, _b; const nodeEnv = typeof process !== 'undefined' && process.env ? "production" : undefined; setRuntimeMode((koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.environment) || nodeEnv || 'production'); 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) { setCustomTagNames(koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.transformTagName); } const coreRegisterReturnValue = await Z(themes, loaders, koliBriOptions); initialized = true; options = koliBriOptions; Log.info('Development mode active - Enhanced debugging features available'); return coreRegisterReturnValue; }; const register = bootstrap; const isInitialized = () => initialized; const getOptions = () => options; export { bootstrap as b, getOptions as g, isInitialized as i, register as r }; //# sourceMappingURL=bootstrap.js.map //# sourceMappingURL=bootstrap.js.map