import{r as s,c as t,h as a,H as i}from"./p-3d62c8c0.js";import{b as o}from"./p-add1e9ec.js";import{b as p}from"./p-f146219b.js";import{b as e}from"./p-97b591c9.js";import{r}from"./p-fec51065.js";import{L as c}from"./p-585cea76.js";import{i as l}from"./p-2feee75a.js";import"./p-d81412d0.js";const b=class{constructor(a){s(this,a),this.balAppLoad=t(this,"balAppLoad",7),this.mode="css",this.animated=!0,this.ready=!1}createLogger(s){this.log=s}connectedCallback(){l(this.mode),e(this.animated)}componentDidLoad(){r((async()=>{this.balAppLoad.emit(!0),this.ready=!0,import("./p-61d4c85d.js").then((s=>this.focusVisible=s.startFocusVisible()))}))}async setFocus(s){this.focusVisible&&this.focusVisible.setFocus(s)}render(){return a(i,{role:"application",class:{"bal-app":!0,"bal-app--safari":o.isSafari,"bal-app--touch":p.hasTouchScreen}},a("slot",null))}};(function(s,t,a,i){var o,p=arguments.length,e=p<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,t,a,i);else for(var r=s.length-1;r>=0;r--)(o=s[r])&&(e=(p<3?o(e):p>3?o(t,a,e):o(t,a))||e);p>3&&e&&Object.defineProperty(t,a,e)})([c("bal-app")],b.prototype,"createLogger",null),b.style={css:".bal-app{position:relative;display:block}.bal-body.is-ready{visibility:inherit}"};export{b as bal_app}