UNPKG

@public-ui/components

Version:

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

4 lines 1.49 kB
/*! * KoliBri - The accessible HTML-Standard */ import{L as t,r as e,t as n,v as o,x as i,y as s}from"./common-BXXICkFX.js";import{E as r}from"./index-BTX696j0.js";const a=()=>{try{const t=e();if(!t||"function"!=typeof t.querySelector)return;const i=t.querySelector('meta[name="kolibri"]');if(i&&i.hasAttribute("content")){const e=i.getAttribute("content");"string"==typeof e&&(n(e.includes("experimental-mode=true")),o(e.includes("color-contrast-analysis=true")))}}catch(e){}},c=()=>{let e=i().KoliBri;return void 0===e&&(e={},Object.defineProperty(i(),"KoliBri",{value:e,writable:!1})),e},u=()=>{a(),t.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${r.kolibriVersion}\n\t`,{forceLog:!0})},l=()=>{!0!==c().adviceShown&&(Object.defineProperty(c(),"adviceShown",{get:function(){return!0}}),t.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let f=()=>Math.floor(16777215*Math.random()).toString(16);s()&&(f=()=>"nonce");export{u as i,f as n,l as r};