/**
 * @license
 * Copyright Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
var w=Object.defineProperty,E=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var f=(n,t,e)=>t in n?w(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,p=(n,t)=>{for(var e in t||(t={}))y.call(t,e)&&f(n,e,t[e]);if(u)for(var e of u(t))S.call(t,e)&&f(n,e,t[e]);return n},h=(n,t)=>E(n,x(t));function m(n,t,e,o=""){t?n.setAttribute(e,o):n.removeAttribute(e)}var C=window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function v(n,t,e,o=!0,i=!1){let r;return typeof CustomEvent=="function"?r=new CustomEvent(t,{detail:e,bubbles:o,cancelable:i}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,o,i,e)),n.dispatchEvent(r)}var b=class{constructor(t){this._component=t}get hostElement(){return this._component}hasHostAttribute(t){return this._component.hasAttribute(t)}getHostAttribute(t){return this._component.getAttribute(t)}setHostAttribute(t,e=""){this._component.setAttribute(t,e)}removeHostAttribute(t){this._component.removeAttribute(t)}toggleHostAttribute(t,e,o){m(this._component,e,t,o)}redispatchEvent(t,e){var l,c,d,a;let o=!(((l=t.target)==null?void 0:l.getRootNode())instanceof ShadowRoot);t.bubbles&&(t.composed||o)&&t.stopPropagation();let i=h(p({},t),{bubbles:(c=e==null?void 0:e.bubbles)!=null?c:t.bubbles,cancelable:(d=e==null?void 0:e.cancelable)!=null?d:t.cancelable,composed:(a=e==null?void 0:e.composed)!=null?a:t.composed}),r=Reflect.construct(t.constructor,[t.type,i]),s=!this._component.dispatchEvent(r);return s&&t.preventDefault(),!s}emitHostEvent(t,e=null,o=!0,i){return v(this._component,t,e,o,i)}dispatchHostEvent(t){return!this._component.dispatchEvent(t)}toggleHostListener(t,e,o,i){o?this.addHostListener(t,e,i):this.removeHostListener(t,e,i)}addHostListener(t,e,o){this._component.addEventListener(t,e,o)}removeHostListener(t,e,o){this._component.removeEventListener(t,e,o)}addWindowListener(t,e,o){window.addEventListener(t,e,o)}removeWindowListener(t,e,o){window.removeEventListener(t,e,o)}addDocumentListener(t,e,o){this._component.ownerDocument.addEventListener(t,e,o)}removeDocumentListener(t,e,o){this._component.ownerDocument.removeEventListener(t,e,o)}getScreenWidth(){return window.innerWidth}setBodyAttribute(t,e){this._component.ownerDocument.body.setAttribute(t,e)}removeBodyAttribute(t){this._component.ownerDocument.body.removeAttribute(t)}focusHost(t){HTMLElement.prototype.focus.call(this._component,t)}clickHost(){HTMLElement.prototype.click.call(this._component)}get isConnected(){return this._component.isConnected}};var g=class extends HTMLElement{};export{b as BaseAdapter,g as BaseComponent};
//# sourceMappingURL=index.js.map
