/**
 * @license
 * Copyright Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
var x=Object.defineProperty,y=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var m=(n,t,e)=>t in n?x(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,h=(n,t)=>{for(var e in t||(t={}))C.call(t,e)&&m(n,e,t[e]);if(p)for(var e of p(t))A.call(t,e)&&m(n,e,t[e]);return n},v=(n,t)=>y(n,L(t));function b(n,t,e,o=""){t?n.setAttribute(e,o):n.removeAttribute(e)}var H=window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function g(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 s=class{constructor(){}static get(t){var o;let e=(o=window.TylerForgeGlobalConfiguration)==null?void 0:o[t];return e?{has(i){return i in e},valueOf(i){return e[i]}}:null}};var w=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){b(this._component,e,t,o)}redispatchEvent(t,e){var c,a,d,u,f;let o=!(((c=t.target)==null?void 0:c.getRootNode())instanceof ShadowRoot);t.bubbles&&(t.composed||o)&&t.stopPropagation();let i=v(h({},t),{detail:(a=t.detail)!=null?a:null,bubbles:(d=e==null?void 0:e.bubbles)!=null?d:t.bubbles,cancelable:(u=e==null?void 0:e.cancelable)!=null?u:t.cancelable,composed:(f=e==null?void 0:e.composed)!=null?f:t.composed}),r=Reflect.construct(t.constructor,[t.type,i]),l=!this._component.dispatchEvent(r);return l&&t.preventDefault(),!l}emitHostEvent(t,e=null,o=!0,i){return g(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}tryApplyGlobalConfiguration(t){let e=this._component.tagName.toLowerCase(),o=s.get(e);if(o){for(let i of t)if(o.has(i)){let r=o.valueOf(i);r&&(this._component[i]=r)}}}};var E=class extends HTMLElement{};export{w as BaseAdapter,E as BaseComponent};
//# sourceMappingURL=index.js.map
