import{a as p,c as b,d as g}from"./p-CklISCW5.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-CklISCW5.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-D_dXwzM1.js";export{c as BalBreakpointSubject,d as BalBreakpointsUtil,a as balBreakpointSubject}from"./p-D_dXwzM1.js";export{B as BalDate}from"./p-DDKV0GaT.js";import{b as O}from"./p-DjAlMsHg.js";export{B as BalDevice}from"./p-DjAlMsHg.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-C34-vUx8.js";import{S as T}from"./p-DttRmuGk.js";export{B as BalScrollHandler}from"./p-BCxlnzTY.js";export{B as BalSwipeSubject}from"./p-DTD57WyM.js";import{g as P,a as H}from"./p-Bkv9FfvX.js";import"./p-lD5okXfr.js";const R={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)"}},U=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}),M=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}),V=(a,t,o=!1,e)=>({value:a,label:t,disabled:o,data:e}),X=(a,t=!1,o)=>V(a,a,t,o);class _ extends T{constructor(){super((a=>a.orientationListener(this.state))),this.listener=new S,this.state=O.orientation.toObject(),this.listener.connect(),this.listener.add((()=>{const a=O.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 N=new _;class W{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=P(document,this.tag);await Promise.all(o.map((o=>o.dismiss(a,t))))}}dismiss(a,t,o){if(p.hasDocument){const e=H(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 H(document,this.tag)}}const K=new W,J=()=>O.hasTouchScreen,Y=a=>"Safari"===a&&p.isSafari,Z=()=>L.detect(),Q=(a,t)=>("string"==typeof a&&(t=a),!!t&&L.detect().includes(t)),$=V,aa=X;export{W as BalModalController,_ as BalOrientationSubject,$ as NewBalOptionValue,aa as NewBalSingleOptionValue,L as balBreakpoints,p as balBrowser,O as balDevice,K as balModalController,N as balOrientationSubject,g as componentOnReady,b as getAppRoot,Z as getPlatforms,J as hasTouchSupport,R as i18nBalFieldLabel,Y as isBrowser,Q as isPlatform,U as newBalCheckboxOption,V as newBalOptionValue,M as newBalRadioOption,X as newBalSingleOptionValue}