import{L as a,H as i,I as s,a as t,j as e,J as p,K as o,M as n,N as r,O as c}from"./p-BD2o1F4P.js";import{_ as l,a as d}from"./p-dfXERft2.js";import{b as h}from"./p-DA3x7XDv.js";import{s as b}from"./p-DqCbGYzv.js";const y=class{constructor(a){i(this,a),this.debouncedNotify=s((()=>this.notifyResize()),100),this.animated=!0,this.ready=!1,this.notifyResize=async()=>{t.hasDocument&&t.hasWindow&&document.documentElement.style.setProperty("--bal-app-height",`${window.innerHeight}px`)}}createLogger(a){this.log=a}connectedCallback(){!1===this.animated&&e(this.animated),t.hasWindow&&(window.addEventListener("resize",this.debouncedNotify),this.debouncedNotify())}componentDidLoad(){p((()=>{this.ready=!0,b()})),o((()=>{t.hasDocument&&t.hasWindow&&document.documentElement.classList.add("lcp-ready")}))}disconnectedCallback(){t.hasWindow&&window.removeEventListener("resize",this.debouncedNotify)}async setFocus(a){this.focusVisible&&this.focusVisible.setFocus(a)}render(){return n(r,{key:"8aa3c989125e06e500597db9773fca378e4b7467",class:{"bal-app":!0,"bal-app--safari":t.isSafari,"bal-app--touch":h.hasTouchScreen}},n("slot",{key:"c0e432a988e29f653198ed4eeead7f18fa447035"}))}get el(){return c(this)}};l([a("bal-app"),d("design:type",Function),d("design:paramtypes",[Function]),d("design:returntype",void 0)],y.prototype,"createLogger",null),y.style=":root{--bal-app-height:100%}.bal-app{position:relative}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";export{y as bal_app}