/*!
 * KoliBri - The accessible HTML-Standard
 */
export{s as setCurrentLocation}from"./ariaCurrentService-6fe36ebc.js";import{s as t,K as i}from"./component-names-aa3cbc3c.js";import{n as o,B as n}from"./index-541b643a.js";import{i as r}from"./i18n-7ea9f137.js";import{s as l,L as u}from"./dev.utils-fab45cbc.js";export{c as BUNDESAEMTER,e as BUNDESANSTALTEN,a as BUNDESMINISTERIEN,f as BUND_LOGO_TEXT_MAP,b as Bundesamt,d as Bundesanstalt,B as Bundesministerium}from"./bund-ad41b762.js";export{K as KoliBriDevHelper}from"./prop.validators-c5e6ad2d.js";var p,v;!function(t){t[t.error=0]="error",t[t.warning=1]="warning",t[t.info=2]="info",t[t.success=3]="success",t[t.message=4]="message",t[t.close=5]="close",t[t["form-description"]=6]="form-description",t[t.of=7]="of",t[t.characters=8]="characters",t[t.new=9]="new",t[t["no-entries"]=10]="no-entries",t[t["change-order"]=11]="change-order",t[t["action-running"]=12]="action-running",t[t["action-done"]=13]="action-done",t[t["page-first"]=14]="page-first",t[t["page-back"]=15]="page-back",t[t["page-next"]=16]="page-next",t[t["page-last"]=17]="page-last",t[t["entries-per-site"]=18]="entries-per-site",t[t["page-current"]=19]="page-current",t[t["page-selected"]=20]="page-selected",t[t["page-per-site"]=21]="page-per-site",t[t["logo-description"]=22]="logo-description",t[t["open-link-in-tab"]=23]="open-link-in-tab",t[t["kolibri-logo"]=24]="kolibri-logo"}(p||(p={})),function(t){t[t.abbr=0]="abbr",t[t.accordion=1]="accordion",t[t["accordion-group"]=2]="accordion-group",t[t.alert=3]="alert",t[t.avatar=4]="avatar",t[t.badge=5]="badge",t[t.breadcrumb=6]="breadcrumb",t[t.button=7]="button",t[t["button-group"]=8]="button-group",t[t["button-link"]=9]="button-link",t[t.card=10]="card",t[t.combobox=11]="combobox",t[t.details=12]="details",t[t.drawer=13]="drawer",t[t.form=14]="form",t[t.heading=15]="heading",t[t.icon=16]="icon",t[t.image=17]="image",t[t["indented-text"]=18]="indented-text",t[t["input-checkbox"]=19]="input-checkbox",t[t["input-color"]=20]="input-color",t[t["input-date"]=21]="input-date",t[t["input-email"]=22]="input-email",t[t["input-file"]=23]="input-file",t[t["input-number"]=24]="input-number",t[t["input-password"]=25]="input-password",t[t["input-radio"]=26]="input-radio",t[t["input-range"]=27]="input-range",t[t["input-text"]=28]="input-text",t[t.kolibri=29]="kolibri",t[t.link=30]="link",t[t["link-button"]=31]="link-button",t[t["link-group"]=32]="link-group",t[t.logo=33]="logo",t[t.modal=34]="modal",t[t.nav=35]="nav",t[t.pagination=36]="pagination",t[t.progress=37]="progress",t[t.select=38]="select",t[t.separator=39]="separator",t[t["skip-nav"]=40]="skip-nav",t[t.spin=41]="spin",t[t["single-select"]=42]="single-select",t[t["split-button"]=43]="split-button",t[t.symbol=44]="symbol",t[t.table=45]="table",t[t["table-stateless"]=46]="table-stateless",t[t["table-stateful"]=47]="table-stateful",t[t.tabs=48]="tabs",t[t.textarea=49]="textarea",t[t["toast-container"]=50]="toast-container",t[t.toolbar=51]="toolbar",t[t.tooltip=52]="tooltip",t[t.tree=53]="tree",t[t["tree-item"]=54]="tree-item"}(v||(v={}));const m=new o("kol",p,v);let g=!1;const h=async(e,o,a)=>{var i,s;l("development"===(null==a?void 0:a.environment)),r(null!==(s=null===(i=null==a?void 0:a.translation)||void 0===i?void 0:i.name)&&void 0!==s?s:"de",null==a?void 0:a.translations),(null==a?void 0:a.transformTagName)&&t(null==a?void 0:a.transformTagName);const p=await n(e,o,a);return g=!0,p},k=h,x=()=>g;class w{constructor(t,e){this.document=t,this.options=e,this.toastContainerElement=this.document.createElement(i),this.document.body.prepend(this.toastContainerElement)}static getInstance(t,e){if(!x())throw new Error("Toaster: Call KoliBri bootstrap/register method first.");let n=this.instances.get(t);return n||(n=new w(t,e),this.instances.set(t,n)),n}dispose(){const t=this.toastContainerElement;t?(this.toastContainerElement=void 0,t.remove()):u.warn("Toaster service is already disposed.",{forceLog:!0})}enqueue(t){var e,n,o,a;if(this.toastContainerElement&&"function"==typeof this.toastContainerElement.enqueue){const i=null!==(n=null===(e=this.options)||void 0===e?void 0:e.defaultVariant)&&void 0!==n?n:void 0,r=null!==(a=null===(o=this.options)||void 0===o?void 0:o.defaultAlertVariant)&&void 0!==a?a:void 0;return t.alertVariant||t.variant||!this.options||(t.variant=null!=r?r:i),this.toastContainerElement.enqueue(t)}}closeAll(t=!1){this.toastContainerElement&&"function"==typeof this.toastContainerElement.closeAll&&this.toastContainerElement.closeAll(t)}}w.instances=new Map;export{m as KoliBri,w as ToasterService,h as bootstrap,x as isInitialized,k as register};