import{a as p,c as b,d as g}from"./p-DGWPFpP6.js";export{D as BalSnackbarController,F as BalToastController,e as attachToConfig,E as balSnackbarController,G as balToastController,r as deepReady,f as defaultConfig,h as detachFromConfig,q as initialize,q as initializeBaloiseDesignSystem,t as isDescendant,o as onBalConfigChange,i as setupConfig,v as shallowReady,u as updateBalAllowedLanguages,j as updateBalAnimated,k as updateBalIcons,l as updateBalLanguage,m as updateBalRegion,n as useBalConfig,w as wait,x as waitAfterFramePaint,y as waitAfterIdleCallback,z as waitAfterLargestContentfulPaintCallback,A as waitForComponent,B as waitForDesignSystem,C as waitOnLoadEventCallback}from"./p-DGWPFpP6.js";export{F as FileUploadRejectionReason}from"./p-rBUN7c88.js";export{i as i18nBalClose}from"./p-Ct27z6g9.js";export{i as i18nBalDate}from"./p-CLs4UZCO.js";export{i as i18nBalInputStepper}from"./p-DEb5iNGc.js";export{i as i18nBalLabel}from"./p-JHAE10yr.js";export{i as i18nBalTimeInput}from"./p-B4aDEwd8.js";export{n as newBalStepOption}from"./p-DIC_sxLd.js";export{n as newBalTabOption}from"./p-BmVI6cLw.js";import{B as S,b as L}from"./p-YomMxxfc.js";export{c as BalBreakpointSubject,d as BalBreakpointsUtil,a as balBreakpointSubject}from"./p-YomMxxfc.js";export{B as BalDate}from"./p-DYAFiy7i.js";import{b as P}from"./p-CLUPTsEw.js";export{B as BalDevice}from"./p-CLUPTsEw.js";export{n as newBalOption}from"./p-BLp4ll3i.js";export{s as scrollToFirstInvalidField}from"./p-FCLKfv6B.js";export{I as INVALID_VALUE}from"./p-DuObDTix.js";import"./p-HMx8BF_j.js";import{S as T}from"./p-YymesTI7.js";export{B as BalScrollHandler}from"./p-D70rMufC.js";export{B as BalSwipeSubject}from"./p-qpinpxz8.js";import{g as O,a as U}from"./p-P4jvbx9M.js";import"./p-BCkT9_pK.js";const H={de:{optional:" (optional)"},en:{optional:" (optional)"},fr:{optional:" (optionnel)"},it:{optional:" (opzionale)"},nl:{optional:" (optioneel)"},es:{optional:" (opcional)"},pl:{optional:" (opcjonalnie)"},pt:{optional:" (opcional)"},sv:{optional:" (frivillig)"},fi:{optional:" (valinnainen)"}},M=a=>Object.assign(Object.assign({interface:"checkbox",labelHidden:!1,flat:!1,disabled:!1,readonly:!1,required:!1,nonSubmit:!1,invalid:!1,checked:!1},a),{label:"",html:a.label}),R=a=>Object.assign(Object.assign({interface:"radio",labelHidden:!1,flat:!1,disabled:!1,readonly:!1,required:!1,nonSubmit:!1,invalid:!1},a),{label:"",html:a.label}),Y=(a,t,o=!1,e)=>({value:a,label:t,disabled:o,data:e}),_=(a,t=!1,o)=>Y(a,a,t,o);class N extends T{constructor(){super((a=>a.orientationListener(this.state))),this.listener=new S,this.state=P.orientation.toObject(),this.listener.connect(),this.listener.add((()=>{const a=P.orientation.toObject();this.isEqual(a)||(this.state=a,this.notify(void 0))}))}attach(a){super.attach(a),a.orientationListener(this.state)}isEqual(a){return a.landscape===this.state.landscape&&a.portrait===this.state.portrait}}const V=new N;class K{constructor(){this.tag="bal-modal"}create(a){return"undefined"!=typeof customElements&&p.hasDocument?customElements.whenDefined(this.tag).then((()=>{const t=document.createElement(this.tag);return Object.assign(t,a),b(document).appendChild(t),new Promise((a=>g(t,a)))})):Promise.resolve()}async dismissAll(a,t){if(p.hasDocument){const o=O(document,this.tag);await Promise.all(o.map((o=>o.dismiss(a,t))))}}dismiss(a,t,o){if(p.hasDocument){const e=U(document,this.tag,o);return e?e.dismiss(a,t):Promise.reject("overlay does not exist")}return Promise.resolve(!1)}async getTop(){if(p.hasDocument)return U(document,this.tag)}}const W=new K,J=()=>P.hasTouchScreen,Z=a=>"Safari"===a&&p.isSafari,Q=()=>L.detect(),X=(a,t)=>("string"==typeof a&&(t=a),!!t&&L.detect().includes(t)),$=Y,aa=_;export{K as BalModalController,N as BalOrientationSubject,$ as NewBalOptionValue,aa as NewBalSingleOptionValue,L as balBreakpoints,p as balBrowser,P as balDevice,W as balModalController,V as balOrientationSubject,g as componentOnReady,b as getAppRoot,Q as getPlatforms,J as hasTouchSupport,H as i18nBalFieldLabel,Z as isBrowser,X as isPlatform,M as newBalCheckboxOption,Y as newBalOptionValue,R as newBalRadioOption,_ as newBalSingleOptionValue}