import{r as i,c as s,h as t,H as a,g as e}from"./p-BdVwMG9u.js";import{_ as p,a as o}from"./p-dfXERft2.js";import{b as r}from"./p-B1u-Mq75.js";import{b as c}from"./p-MBsgW7uz.js";import{s as n}from"./p-DqCbGYzv.js";import{k as l,r as h,l as d}from"./p-Ba5qjFjW.js";import{L as m}from"./p-D7ovid3w.js";import{b}from"./p-D7M-7v58.js";const f=class{constructor(t){i(this,t),this.balAppReady=s(this,"balAppReady"),this.debouncedNotify=l((()=>this.notifyResize()),100),this.animated=!0,this.ready=!1,this.notifyResize=async()=>{r.hasDocument&&r.hasWindow&&document.documentElement.style.setProperty("--bal-app-height",`${window.innerHeight}px`)}}createLogger(i){this.log=i}connectedCallback(){!1===this.animated&&b(this.animated),r.hasWindow&&(window.addEventListener("resize",this.debouncedNotify),this.debouncedNotify())}componentDidLoad(){h((()=>{this.ready=!0,n()})),d((()=>{r.hasDocument&&r.hasWindow&&(document.documentElement.classList.add("lcp-ready"),this.balAppReady.emit())}))}disconnectedCallback(){r.hasWindow&&window.removeEventListener("resize",this.debouncedNotify)}async setFocus(i){this.focusVisible&&this.focusVisible.setFocus(i)}render(){return t(a,{key:"e6229236201fea92c4ccb1812f2f280a06130889",class:{"bal-app":!0,"bal-app--safari":r.isSafari,"bal-app--touch":c.hasTouchScreen}},t("slot",{key:"7712c7609c709dbe754eaf5700fd43ca3992a39f"}))}get el(){return e(this)}};p([m("bal-app"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],f.prototype,"createLogger",null),f.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{f as bal_app}