import{r as t,h as s,H as a,g as e}from"./p-43e8bc5e.js";import{b as o}from"./p-e680e7e4.js";import{b as i}from"./p-da187899.js";import{h as p,k as r}from"./p-4f82c566.js";import{L as c}from"./p-2f931022.js";import{b as l}from"./p-ba041fc5.js";import"./p-73aabc9d.js";const n=class{constructor(s){t(this,s),this.debouncedNotify=p((()=>this.notifyResize()),100),this.notifyResize=async()=>{o.hasDocument&&o.hasWindow&&document.documentElement.style.setProperty("--bal-app-height",`${window.innerHeight}px`)},this.animated=!0,this.ready=!1}createLogger(t){this.log=t}connectedCallback(){l(this.animated),o.hasWindow&&(window.addEventListener("resize",this.debouncedNotify),this.debouncedNotify())}componentDidLoad(){r((async()=>{this.ready=!0,import("./p-1a486341.js").then((t=>this.focusVisible=t.startFocusVisible()))}))}disconnectedCallback(){o.hasWindow&&window.removeEventListener("resize",this.debouncedNotify)}async setFocus(t){this.focusVisible&&this.focusVisible.setFocus(t)}render(){return s(a,{class:{"bal-app":!0,"bal-app--safari":o.isSafari,"bal-app--touch":i.hasTouchScreen}},s("slot",null))}get el(){return e(this)}};(function(t,s,a,e){var o,i=arguments.length,p=i<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,s,a,e);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(p=(i<3?o(p):i>3?o(s,a,p):o(s,a))||p);i>3&&p&&Object.defineProperty(s,a,p)})([c("bal-app")],n.prototype,"createLogger",null),n.style=":root{--bal-app-height:100%}.bal-app{position:relative;display:block}";export{n as bal_app}