/**
 * @license
 * Copyright 2023 Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
import{i as u}from"./chunk.LJLEPTLU.js";import{u as c}from"./chunk.4LA6HEA7.js";import{a as v,b as a}from"./chunk.MCIQXNKY.js";var m=class{constructor(e){this._component=e}get hostElement(){return this._component}getHostAttribute(e){return this._component.getAttribute(e)}setHostAttribute(e,t=""){this._component.setAttribute(e,t)}removeHostAttribute(e){this._component.removeAttribute(e)}toggleHostAttribute(e,t,n){c(this._component,t,e,n)}emitHostEvent(e,t=null,n=!0,o){return u(this._component,e,t,n,o)}addHostListener(e,t,n){this._component.addEventListener(e,t,n)}removeHostListener(e,t){this._component.removeEventListener(e,t)}addWindowListener(e,t,n){window.addEventListener(e,t,n)}removeWindowListener(e,t,n){window.removeEventListener(e,t,n)}addDocumentListener(e,t,n){document.addEventListener(e,t,n)}removeDocumentListener(e,t,n){document.removeEventListener(e,t,n)}getScreenWidth(){return window.innerWidth}setBodyAttribute(e,t){document.body.setAttribute(e,t)}removeBodyAttribute(e){document.body.removeAttribute(e)}get isConnected(){return this._component.isConnected}redispatchEvent(e,t){var r,s,d,l,b;let n=!(((r=e.target)==null?void 0:r.getRootNode())instanceof ShadowRoot);e.bubbles&&(e.composed||n)&&e.stopPropagation();let o=a(v({},e),{detail:(s=e.detail)!=null?s:null,bubbles:(d=t==null?void 0:t.bubbles)!=null?d:e.bubbles,cancelable:(l=t==null?void 0:t.cancelable)!=null?l:e.cancelable,composed:(b=t==null?void 0:t.composed)!=null?b:e.composed}),p=Reflect.construct(e.constructor,[e.type,o]),i=!this._component.dispatchEvent(p);return i&&e.preventDefault(),!i}};export{m as a};
//# sourceMappingURL=chunk.UWYANU5D.js.map
