/**
 * @license
 * Copyright Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
var y=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var m=(e,t,r,o)=>{for(var n=o>1?void 0:o?S(t,r):t,i=e.length-1,p;i>=0;i--)(p=e[i])&&(n=(o?p(t,r,n):p(n))||n);return o&&n&&y(t,r,n),n};function f(e){return typeof e=="function"}function g(e){return e instanceof Array}function h(e){return e!=null&&""+e!="false"}var C=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||C)&&!!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 l="_forgeElementStyles",E=window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function c(e){N(e._customElementName,e),g(e._customElementDependencies)&&T(e._customElementDependencies)}function T(e){e.forEach(c)}function N(e,t,r){var o;!((o=window==null?void 0:window.customElements)===null||o===void 0)&&o.get(e)||window.customElements.define(e,t,r)}function R(e){return new DOMParser().parseFromString(e,"text/html").querySelector("template")}function w(e,t,r,o=!1){let n=D(t);e.attachShadow({mode:"open",delegatesFocus:o}),r&&I(e,r),A(e,n)}function D(e,t){let r=R(e);if(t){t=t instanceof Array?t:[t];let o=document.createElement("style"),n=window.forgeNonce;n&&o.setAttribute("nonce",n),o.textContent=t.join(" "),r.content.appendChild(o)}return r}function A(e,t){e.shadowRoot.appendChild(t.content.cloneNode(!0))}function I(e,t,{force:r}={force:!1}){let o=e.constructor;if(!e.shadowRoot||!t){E&&(o[l]&&(o[l]=[]),e.shadowRoot&&(e.shadowRoot.adoptedStyleSheets=[]));return}if(t=t instanceof Array?t:[t],E){if(r||!o[l]){let n=new CSSStyleSheet;n.replaceSync(t.join(" ")),o[l]=[n]}e.shadowRoot.adoptedStyleSheets=o[l]}else{let n=document.createElement("style"),i=window.forgeNonce;i&&n.setAttribute("nonce",i),n.textContent=t.join(" "),e.shadowRoot.appendChild(n)}}var _="_customElementName",M="_customElementDependencies";function x({name:e,dependencies:t,define:r=!0}){return o=>{B(o),e&&(o[_]=e),t&&t.length&&(o[M]=t),window.__forgeFlags__autoDefine!==!1&&r&&c(o)}}function B(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(r=>!r.startsWith("_"));for(let r of t){let o=e[r];delete e[r],e[r]=o}}var d=class extends HTMLElement{};function b(){return!u.isMobile}var v="forge-";var ee=b(),te=Symbol("getFormValue"),oe=Symbol("getFormState"),re=Symbol("setValidity"),ne=Symbol("getValidityMessage"),ie=Symbol("ElementInternals"),se=Symbol("inputType"),ae=Symbol("isFocusable"),le=Symbol("setDefaultAria");var O=`${v}divider`,k={VERTICAL:"vertical"},s={elementName:O,attributes:k};var F='<template><div class="forge-divider" part="root"></div></template>',L=":host{--_divider-margin:var(--forge-divider-margin, 0)}:host{display:block;contain:content;margin:var(--_divider-margin)}:host([hidden]){display:none}.forge-divider{--_divider-color:var(--forge-divider-color, var(--forge-theme-outline, #e0e0e0));--_divider-width:var(--forge-divider-width, var(--forge-border-thin, 1px));--_divider-border-style:var(--forge-divider-border-style, solid)}.forge-divider{border:none;border-bottom-color:var(--_divider-color);border-bottom-width:var(--_divider-width);border-bottom-style:var(--_divider-border-style);height:0}:host([vertical]){display:inline-block;height:100%}:host([vertical]) .forge-divider{border:none;border-right-color:var(--_divider-color);border-right-width:var(--_divider-width);border-right-style:var(--_divider-border-style);height:100%;width:0}",a=class extends d{static get observedAttributes(){return[s.attributes.VERTICAL]}constructor(){super(),w(this,F,L)}attributeChangedCallback(t,r,o){switch(t){case s.attributes.VERTICAL:this.vertical=h(o);break}}get vertical(){return this.hasAttribute(s.attributes.VERTICAL)}set vertical(t){this.toggleAttribute(s.attributes.VERTICAL,t)}};a=m([x({name:s.elementName})],a);function be(){c(a)}export{s as DIVIDER_CONSTANTS,a as DividerComponent,be as defineDividerComponent};
/*! 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
