UNPKG

@digital-blueprint/formalize-app

Version:

[GitHub Repository](https://github.com/digital-blueprint/formalize-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/formalize-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/formalize-app/) | [Formalize Bundle](https:

47 lines • 1.92 kB
/*! * License: LGPL-2.1-or-later * Dependencies: * * @webcomponents/scoped-custom-element-registry: BSD-3-Clause * @dbp-toolkit/app-shell: LGPL-2.1-or-later * lit-html: BSD-3-Clause * @dbp-toolkit/language-select: LGPL-2.1-or-later * @dbp-toolkit/auth: LGPL-2.1-or-later * @dbp-toolkit/theme-switcher: LGPL-2.1-or-later * universal-router: MIT * @dbp-toolkit/matomo: LGPL-2.1-or-later * cssfilter: MIT * xss: MIT * @dbp-toolkit/form-elements: LGPL-2.1-or-later * html2pdf.js: MIT * exceljs: MIT * jspdf-autotable: MIT * keycloak-js: Apache-2.0 * pdfjs-dist: Apache-2.0 * jszip: (MIT OR GPL-3.0-or-later) * @babel/runtime: MIT * fflate: MIT * iobuffer: MIT * pako: (MIT AND Zlib) * fast-png: MIT * jspdf: MIT * core-js: MIT * performance-now: MIT * raf: MIT * rgbcolor: MIT OR SEE LICENSE IN FEEL-FREE.md * svg-pathdata: MIT * stackblur-canvas: MIT * canvg: MIT * dompurify: (MPL-2.0 OR Apache-2.0) * i18next: MIT * @dbp-toolkit/common: LGPL-2.1-or-later * @lit/reactive-element: BSD-3-Clause * lit-element: BSD-3-Clause * @open-wc/dedupe-mixin: MIT * @open-wc/scoped-elements: MIT * dialog-polyfill: BSD * jquery: MIT * select2: MIT */ const e=`dbp-feature-`;function t(t){if(!i().includes(t))throw Error(`Feature flag "${t}" is not registered.`);return localStorage.getItem(e+t)!==null}function n(t,n){if(!i().includes(t))throw Error(`Feature flag "${t}" is not registered.`);n?localStorage.setItem(e+t,`true`):localStorage.removeItem(e+t)}function r(e){if(!/^[a-zA-Z0-9-_]+$/.test(e))throw Error(`Feature flag name "${e}" contains invalid characters.`);globalThis[`dbp-feature-flags`]=globalThis[`dbp-feature-flags`]||[],globalThis[`dbp-feature-flags`].includes(e)||globalThis[`dbp-feature-flags`].push(e)}function i(){return globalThis[`dbp-feature-flags`]||[]}const a=`available-forms-overview`;r(a);function o(){return t(a)}export{n as a,i,o as n,t as r,a as t}; //# sourceMappingURL=feature-flags.DdD1PCm9.js.map