/**
 * @license
 * Copyright Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
var y=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var m=(e,t,n,o)=>{for(var r=o>1?void 0:o?C(t,n):t,i=e.length-1,p;i>=0;i--)(p=e[i])&&(r=(o?p(t,n,r):p(r))||r);return o&&r&&y(t,n,r),r};function f(e){return typeof e=="function"}function d(e){return e instanceof Array}var T=typeof Intl!="undefined"&&Intl.v8BreakIterator,u=class e{static get isBrowser(){return typeof document=="object"&&!!document}static get isMobile(){return e.isBrowser&&/Mobi/.test(navigator.userAgent)}static get EDGE(){return e.isBrowser&&/(edge)/i.test(navigator.userAgent)}static get TRIDENT(){return e.isBrowser&&/(msie|trident)/i.test(navigator.userAgent)}static get BLINK(){return e.isBrowser&&!!(window.chrome||T)&&!!CSS&&!e.EDGE&&!e.TRIDENT}static get WEBKIT(){return e.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!e.BLINK&&!e.EDGE&&!e.TRIDENT}static get IOS(){return e.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static get FIREFOX(){return e.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent)}static get ANDROID(){return e.isBrowser&&/android/i.test(navigator.userAgent)&&!e.TRIDENT}SAFARI(){return e.isBrowser&&/safari/i.test(navigator.userAgent)&&e.WEBKIT}};var a="_forgeElementStyles",g=window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function l(e){b(e._customElementName,e),d(e._customElementDependencies)&&N(e._customElementDependencies)}function N(e){e.forEach(l)}function b(e,t,n){var o;!((o=window==null?void 0:window.customElements)===null||o===void 0)&&o.get(e)||window.customElements.define(e,t,n)}function R(e){return new DOMParser().parseFromString(e,"text/html").querySelector("template")}function E(e,t,n,o=!1){let r=v(t);e.attachShadow({mode:"open",delegatesFocus:o}),n&&M(e,n),D(e,r)}function v(e,t){let n=R(e);if(t){t=t instanceof Array?t:[t];let o=document.createElement("style"),r=window.forgeNonce;r&&o.setAttribute("nonce",r),o.textContent=t.join(" "),n.content.appendChild(o)}return n}function D(e,t){e.shadowRoot.appendChild(t.content.cloneNode(!0))}function M(e,t,{force:n}={force:!1}){let o=e.constructor;if(!e.shadowRoot||!t){g&&(o[a]&&(o[a]=[]),e.shadowRoot&&(e.shadowRoot.adoptedStyleSheets=[]));return}if(t=t instanceof Array?t:[t],g){if(n||!o[a]){let r=new CSSStyleSheet;r.replaceSync(t.join(" ")),o[a]=[r]}e.shadowRoot.adoptedStyleSheets=o[a]}else{let r=document.createElement("style"),i=window.forgeNonce;i&&r.setAttribute("nonce",i),r.textContent=t.join(" "),e.shadowRoot.appendChild(r)}}var A="_customElementName",B="_customElementDependencies";function w({name:e,dependencies:t,define:n=!0}){return o=>{I(o),e&&(o[A]=e),t&&t.length&&(o[B]=t),window.__forgeFlags__autoDefine!==!1&&n&&l(o)}}function I(e){let t=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){this.isConnected&&(this._isInitialized||(P(this),f(this.initializedCallback)&&this.initializedCallback.apply(this),this._isInitialized=!0),f(t)&&t.apply(this))}}function P(e){let t=Object.getOwnPropertyNames(e).filter(n=>!n.startsWith("_"));for(let n of t){let o=e[n];delete e[n],e[n]=o}}var c=class extends HTMLElement{};function x(){return!u.isMobile}var h="forge-";var Q=x(),Z=Symbol("getFormValue"),ee=Symbol("getFormState"),te=Symbol("setValidity"),oe=Symbol("getValidityMessage"),ne=Symbol("ElementInternals"),re=Symbol("inputType"),ie=Symbol("isFocusable"),se=Symbol("setDefaultAria");var O=`${h}view`,S={elementName:O};var _="<template><slot></slot></template>",F=":host{display:block}:host([hidden]){display:none}",s=class extends c{constructor(){super(),E(this,_,F)}};s=m([w({name:S.elementName})],s);function xe(){l(s)}export{S as VIEW_CONSTANTS,s as ViewComponent,xe as defineViewComponent};
/*! Bundled license information:

@tylertech/forge-core/esm/utils/platform.js:
  (**
   * @license
   * Copyright Google LLC All Rights Reserved.
   *
   * Use of this source code is governed by an MIT-style license that can be
   * found in the LICENSE file at https://angular.io/license
   *)
*/
//# sourceMappingURL=index.js.map
