{"version":3,"file":"uui.min.js","sources":["../../../node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@lit/reactive-element/reactive-element.js","../../../node_modules/lit-html/lit-html.js","../../../node_modules/lit-element/lit-element.js","../../../node_modules/@lit/reactive-element/decorators/property.js","../../../node_modules/@lit/reactive-element/decorators/state.js","../../../node_modules/@lit/reactive-element/decorators/base.js","../../../node_modules/@lit/reactive-element/decorators/query.js","../../../node_modules/@lit/reactive-element/decorators/query-all.js","../../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.js","../../uui-css/lib/index.js","../../uui-base/lib/index.js","../../uui-base/lib/registration/index.js","../../uui-button-group/lib/index.js","../../uui-action-bar/lib/index.js","../../uui-avatar-group/lib/index.js","../../uui-avatar/lib/index.js","../../uui-badge/lib/index.js","../../uui-base/lib/mixins/index.js","../../uui-base/lib/events/index.js","../../uui-boolean-input/lib/index.js","../../../node_modules/lit-html/static.js","../../uui-box/lib/index.js","../../uui-breadcrumbs/lib/index.js","../../uui-base/lib/animations/index.js","../../../node_modules/lit-html/directive.js","../../../node_modules/lit-html/directives/style-map.js","../../../node_modules/lit-html/directives/if-defined.js","../../uui-button-inline-create/lib/index.js","../../uui-base/lib/utils/index.js","../../uui-icon-registry-essential/lib/svgs/index.js","../../uui-button/lib/index.js","../../uui-card/lib/index.js","../../uui-card-block-type/lib/index.js","../../uui-card-content-node/lib/index.js","../../uui-card-media/lib/index.js","../../uui-card-user/lib/index.js","../../uui-caret/lib/index.js","../../uui-checkbox/lib/index.js","../../../node_modules/lit-html/directives/class-map.js","../../uui-color-area/lib/index.js","../../../node_modules/lit-html/directive-helpers.js","../../../node_modules/lit-html/directives/live.js","../../uui-color-picker/lib/index.js","../../uui-color-slider/lib/index.js","../../../node_modules/lit-html/async-directive.js","../../../node_modules/lit-html/directives/ref.js","../../uui-color-swatch/lib/index.js","../../uui-color-swatches/lib/index.js","../../uui-combobox-list/lib/index.js","../../uui-combobox/lib/index.js","../../uui-dialog-layout/lib/index.js","../../uui-dialog/lib/index.js","../../uui-symbol-file-dropzone/lib/index.js","../../uui-file-dropzone/lib/index.js","../../uui-file-preview/lib/index.js","../../uui-form-layout-item/lib/index.js","../../../node_modules/lit-html/directives/repeat.js","../../../node_modules/lit-html/directives/unsafe-html.js","../../uui-form-validation-message/lib/index.js","../../uui-form/lib/index.js","../../uui-icon/lib/index.js","../../uui-icon-registry/lib/index.js","../../uui-icon-registry-essential/lib/index.js","../../uui-input-file/lib/index.js","../../uui-input/lib/index.js","../../uui-input-lock/lib/index.js","../../uui-input-password/lib/index.js","../../uui-keyboard-shortcut/lib/index.js","../../uui-label/lib/index.js","../../uui-loader-bar/lib/index.js","../../uui-loader-circle/lib/index.js","../../uui-loader/lib/index.js","../../uui-menu-item/lib/index.js","../../uui-modal/lib/index.js","../../uui-pagination/lib/index.js","../../uui-popover/lib/index.js","../../uui-popover-container/lib/index.js","../../uui-progress-bar/lib/index.js","../../uui-radio/lib/index.js","../../uui-range-slider/lib/index.js","../../uui-ref-list/lib/index.js","../../uui-ref/lib/index.js","../../uui-ref-node/lib/index.js","../../uui-ref-node-data-type/lib/index.js","../../uui-ref-node-document-type/lib/index.js","../../uui-ref-node-form/lib/index.js","../../uui-ref-node-member/lib/index.js","../../uui-ref-node-package/lib/index.js","../../uui-ref-node-user/lib/index.js","../../uui-scroll-container/lib/index.js","../../uui-select/lib/index.js","../../uui-slider/lib/index.js","../../uui-symbol-expand/lib/index.js","../../uui-symbol-file-thumbnail/lib/index.js","../../uui-symbol-file/lib/index.js","../../uui-symbol-folder/lib/index.js","../../uui-symbol-lock/lib/index.js","../../uui-symbol-more/lib/index.js","../../uui-symbol-sort/lib/index.js","../../uui-table/lib/index.js","../../uui-tabs/lib/index.js","../../uui-tag/lib/index.js","../../uui-textarea/lib/index.js","../../uui-toast-notification/lib/index.js","../../uui-toast-notification-container/lib/index.js","../../uui-toast-notification-layout/lib/index.js","../../uui-toggle/lib/index.js","../../uui-visually-hidden/lib/index.js"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),n=new WeakMap;class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new o(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[n+1]),t[0]);return new o(n,t,s)},S=(s,n)=>{e?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement(\"style\"),o=t.litNonce;void 0!==o&&n.setAttribute(\"nonce\",o),n.textContent=e.cssText,s.appendChild(n)}))},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{o as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as i}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var s;const e=window,r=e.trustedTypes,h=r?r.emptyScript:\"\",o=e.reactiveElementPolyfillSupport,n={toAttribute(t,i){switch(i){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},a=(t,i)=>i!==t&&(i==i||t==t),l={attribute:!0,type:String,converter:n,reflect:!1,hasChanged:a},d=\"finalized\";class u extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e))})),t}static createProperty(t,i=l){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=\"symbol\"==typeof t?Symbol():\"__\"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l}static finalize(){if(this.hasOwnProperty(d))return!1;this[d]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty(\"properties\")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(t(i))}else void 0!==i&&s.push(t(i));return s}static _$Ep(t,i){const s=i.attribute;return!1===s?void 0:\"string\"==typeof s?s:\"string\"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return i(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$EO(t,i,s=l){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootOptions={mode:\"open\"},null==o||o({ReactiveElement:u}),(null!==(s=e.reactiveElementVersions)&&void 0!==s?s:e.reactiveElementVersions=[]).push(\"1.6.3\");export{u as ReactiveElement,n as defaultConverter,a as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar t;const i=window,s=i.trustedTypes,e=s?s.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,o=\"$lit$\",n=`lit$${(Math.random()+\"\").slice(9)}$`,l=\"?\"+n,h=`<${l}>`,r=document,u=()=>r.createComment(\"\"),d=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,c=Array.isArray,v=t=>c(t)||\"function\"==typeof(null==t?void 0:t[Symbol.iterator]),a=\"[ \\t\\n\\f\\r]\",f=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${a}(?:([^\\\\s\"'>=/]+)(${a}*=${a}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),g=/'/g,$=/\"/g,y=/^(?:script|style|textarea|title)$/i,w=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=w(1),b=w(2),T=Symbol.for(\"lit-noChange\"),A=Symbol.for(\"lit-nothing\"),E=new WeakMap,C=r.createTreeWalker(r,129,null,!1);function P(t,i){if(!Array.isArray(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==e?e.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,e=[];let l,r=2===i?\"\":\"\",u=f;for(let i=0;i\"===c[0]?(u=null!=l?l:f,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,d=c[1],u=void 0===c[3]?p:'\"'===c[3]?$:g):u===$||u===g?u=p:u===_||u===m?u=f:(u=p,l=void 0);const w=u===p&&t[i+1].startsWith(\"/>\")?\" \":\"\";r+=u===f?s+h:v>=0?(e.push(d),s.slice(0,v)+o+s.slice(v)+n+w):s+n+(-2===v?(e.push(void 0),i):w)}return[P(t,r+(t[s]||\"\")+(2===i?\"\":\"\")),e]};class N{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,d=0;const c=t.length-1,v=this.parts,[a,f]=V(t,i);if(this.el=N.createElement(a,e),C.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(h=C.nextNode())&&v.length0){h.textContent=s?s.emptyScript:\"\";for(let s=0;s2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=S(this,t,i,0),n=!d(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new R(i.insertBefore(u(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l};export{j as _$LH,x as html,T as noChange,A as nothing,D as render,b as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as i}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var l,o;const r=t;class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return i}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});const h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push(\"3.3.3\");export{s as LitElement,r as UpdatingElement,h as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst i=(i,e)=>\"method\"===e.kind&&e.descriptor&&!(\"value\"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,i)}}:{kind:\"field\",key:Symbol(),placement:\"own\",descriptor:{},originalKey:e.key,initializer(){\"function\"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,i)}},e=(i,e,n)=>{e.constructor.createProperty(n,i)};function n(n){return(t,o)=>void 0!==o?e(n,t,o):i(n,t)}export{n as property};\n//# sourceMappingURL=property.js.map\n","import{property as r}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function t(t){return r({...t,state:!0})}export{t as state};\n//# sourceMappingURL=state.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst e=(e,t,o)=>{Object.defineProperty(t,o,e)},t=(e,t)=>({kind:\"method\",placement:\"prototype\",key:t.key,descriptor:e}),o=({finisher:e,descriptor:t})=>(o,n)=>{var r;if(void 0===n){const n=null!==(r=o.originalKey)&&void 0!==r?r:o.key,i=null!=t?{kind:\"method\",placement:\"prototype\",key:n,descriptor:t(o.key)}:{...o,key:n};return null!=e&&(i.finisher=function(t){e(t,n)}),i}{const r=o.constructor;void 0!==t&&Object.defineProperty(o,n,t(n)),null==e||e(r,n)}};export{o as decorateProperty,e as legacyPrototypeMethod,t as standardPrototypeMethod};\n//# sourceMappingURL=base.js.map\n","import{decorateProperty as o}from\"./base.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function i(i,n){return o({descriptor:o=>{const t={get(){var o,n;return null!==(n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(i))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(n){const n=\"symbol\"==typeof o?Symbol():\"__\"+o;t.get=function(){var o,t;return void 0===this[n]&&(this[n]=null!==(t=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(i))&&void 0!==t?t:null),this[n]}}return t}})}export{i as query};\n//# sourceMappingURL=query.js.map\n","import{decorateProperty as r}from\"./base.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e(e){return r({descriptor:r=>({get(){var r,o;return null!==(o=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelectorAll(e))&&void 0!==o?o:[]},enumerable:!0,configurable:!0})})}export{e as queryAll};\n//# sourceMappingURL=query-all.js.map\n","import{decorateProperty as o}from\"./base.js\";\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var n;const e=null!=(null===(n=window.HTMLSlotElement)||void 0===n?void 0:n.prototype.assignedElements)?(o,n)=>o.assignedElements(n):(o,n)=>o.assignedNodes(n).filter((o=>o.nodeType===Node.ELEMENT_NODE));function l(n){const{slot:l,selector:t}=null!=n?n:{};return o({descriptor:o=>({get(){var o;const r=\"slot\"+(l?`[name=${l}]`:\":not([name])\"),i=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(r),s=null!=i?e(i,n):[];return t?s.filter((o=>o.matches(t))):s},enumerable:!0,configurable:!0})})}export{l as queryAssignedElements};\n//# sourceMappingURL=query-assigned-elements.js.map\n","import { unsafeCSS } from 'lit';\n\nvar css = \".uui-h1,\\n.uui-h2,\\n.uui-h3,\\n.uui-h4,\\n.uui-h5,\\n.uui-a,\\n.uui-p,\\n.uui-p-lead,\\n.uui-small,\\n.uui-quoteblock,\\n.uui-ul,\\n.uui-ol,\\n.uui-text {\\n font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;\\n font-size: 15px;\\n line-height: calc(var(--uui-size-2,6px) * 4);\\n -webkit-font-smoothing: antialiased;\\n}\\n\\n.uui-text h1,\\n.uui-h1.uui-h1 {\\n font-size: var(--uui-type-h1-size,60px);\\n line-height: var(--uui-size-layout-4,66px);\\n font-weight: 300;\\n margin-left: -5px;\\n margin-top: var(--uui-size-layout-1,24px);\\n margin-bottom: var(--uui-size-layout-1,24px);\\n}\\n.uui-text p + h1,\\n.uui-text p + .uui-h1 {\\n margin-top: var(--uui-size-layout-4,66px);\\n}\\n.uui-text h1.--no-top-margin,\\n.uui-text h1:first-child,\\n.uui-h1.--no-top-margin,\\n.uui-h1:first-child {\\n margin-top: 0;\\n}\\n\\n.uui-text h2,\\n.uui-h2.uui-h2 {\\n font-size: var(--uui-type-h2-size,42px);\\n line-height: var(--uui-size-layout-3,42px);\\n font-weight: 300;\\n margin-left: -3px;\\n margin-top: var(--uui-size-layout-1,24px);\\n margin-bottom: var(--uui-size-layout-1,24px);\\n}\\n.uui-text p + h2,\\n.uui-text p + .uui-h2 {\\n margin-top: var(--uui-size-layout-3,42px);\\n}\\n.uui-text h2.--no-top-margin,\\n.uui-text h2:first-child,\\n.uui-h2.--no-top-margin,\\n.uui-h2:first-child {\\n margin-top: 0;\\n}\\n\\n.uui-text h3,\\n.uui-h3.uui-h3 {\\n font-size: var(--uui-type-h3-size,30px);\\n line-height: var(--uui-size-large);\\n font-weight: 300;\\n margin-left: -2px;\\n margin-top: var(--uui-size-layout-1,24px);\\n margin-bottom: var(--uui-size-layout-1,24px);\\n}\\n.uui-text h3.--no-top-margin,\\n.uui-text h3:first-child,\\n.uui-h3.--no-top-margin,\\n.uui-h3:first-child {\\n margin-top: 0;\\n}\\n\\n.uui-text h4,\\n.uui-h4.uui-h4 {\\n font-size: var(--uui-type-h4-size,21px);\\n line-height: 21px;\\n font-weight: 400;\\n margin-left: -1px;\\n margin-top: var(--uui-size-layout-1,24px);\\n margin-bottom: var(--uui-size-layout-1,24px);\\n}\\n.uui-text h4.--no-top-margin,\\n.uui-text h4:first-child,\\n.uui-h4.--no-top-margin,\\n.uui-h4:first-child {\\n margin-top: 0;\\n}\\n\\n.uui-text h5,\\n.uui-h5.uui-h5 {\\n font-size: var(--uui-type-h5-size,15px);\\n line-height: inherit;\\n font-weight: 700;\\n margin-left: 0;\\n margin-top: var(--uui-size-layout-1,24px);\\n margin-bottom: 0;\\n}\\n\\n.uui-text h5.--no-top-margin,\\n.uui-text h5:first-child,\\n.uui-h5.--no-top-margin,\\n.uui-h5:first-child {\\n margin-top: 0;\\n}\\n\\n.uui-p,\\n.uui-text p {\\n margin-top: var(--uui-size-layout-1,24px);\\n margin-bottom: var(--uui-size-layout-1,24px);\\n}\\n.uui-p-lead,\\n.uui-text p.uui-lead {\\n font-size: var(--uui-size-6,18px);\\n}\\n\\n.uui-a,\\n.uui-text a {\\n color: var(--uui-color-interactive,#1b264f);\\n}\\n\\n.uui-a:link,\\n.uui-a:active .uui-text a:link,\\n.uui-text a:active {\\n color: var(--uui-color-interactive,#1b264f);\\n}\\n.uui-a:hover,\\n.uui-text a:hover {\\n color: var(--uui-color-interactive-emphasis,#3544b1);\\n}\\n\\n.uui-small,\\n.uui-text small {\\n display: inline-block;\\n font-size: var(--uui-type-small-size,12px);\\n line-height: calc(var(--uui-size-2,6px) * 3);\\n margin-bottom: var(--uui-size-layout-1,24px);\\n}\\n\\n.uui-quoteblock,\\n.uui-text blockquote {\\n float: right;\\n font-size: 15px;\\n font-weight: 700;\\n font-style: italic;\\n margin-top: 0;\\n margin-bottom: var(--uui-size-layout-1,24px);\\n margin-right: -0.035em;\\n max-width: 16em;\\n quotes: '“' '”' '‘' '’';\\n line-height: inherit;\\n}\\n\\n.uui-quoteblock:before,\\n.uui-text blockquote:before {\\n content: open-quote;\\n margin-left: -0.4em;\\n margin-right: 0.08em;\\n vertical-align: bottom;\\n font-weight: 400;\\n font-size: 2em;\\n}\\n\\n.uui-quoteblock:after,\\n.uui-text blockquote:after {\\n content: close-quote;\\n margin-left: 0.04em;\\n margin-right: -0.4em;\\n vertical-align: bottom;\\n font-weight: 400;\\n font-size: 2em;\\n margin-bottom: -2px;\\n display: inline-block;\\n}\\n\\n.uui-ul,\\n.uui-text ul {\\n list-style-type: square;\\n padding-left: var(--uui-size-layout-1,24px);\\n margin-top: var(--uui-size-layout-1,24px);\\n margin-bottom: var(--uui-size-layout-1,24px);\\n}\\n\\n.uui-ol,\\n.uui-text ol {\\n padding-left: var(--uui-size-layout-1,24px);\\n margin-top: var(--uui-size-layout-1,24px);\\n margin-bottom: var(--uui-size-layout-1,24px);\\n}\\n\";\n\nconst UUITextStyles = unsafeCSS(css);\n\nexport { UUITextStyles };\n","import { css, unsafeCSS, html } from 'lit';\nimport { property, state } from 'lit/decorators.js';\n\nconst UUIBlinkKeyframes = css`\n @keyframes uui-blink {\n 0%,\n 100% {\n opacity: 0.5;\n }\n 50% {\n opacity: 1;\n }\n }\n`;\nconst UUIBlinkAnimationValue = unsafeCSS(\"uui-blink 0.9s infinite both\");\n\nconst UUIHorizontalPulseKeyframes = css`\n @keyframes pulse {\n 0% {\n -webkit-transform: translate(-50%, -50%) scale(0.2);\n transform: translate(-50%, -50%) scale(0.2);\n opacity: 0.9;\n }\n 80% {\n -webkit-transform: translate(-50%, -50%) scale(1.2);\n transform: translate(-50%, -50%) scale(1.2);\n opacity: 0;\n }\n 100% {\n -webkit-transform: translate(-50%, -50%) scale(2.2);\n transform: translate(-50%, -50%) scale(2.2);\n opacity: 0;\n }\n }\n`;\nconst UUIHorizontalPulseAnimationValue = unsafeCSS(\n \"pulse 0.8s ease-in-out infinite both\"\n);\n\nconst UUIHorizontalShakeKeyframes = css`\n @keyframes uui-horizontal-shake {\n 10%,\n 90% {\n transform: translateX(-1px);\n }\n\n 20%,\n 80% {\n transform: translateX(1px);\n }\n\n 30%,\n 50%,\n 70% {\n transform: translateX(-2px);\n }\n\n 40%,\n 60% {\n transform: translateX(2px);\n }\n }\n`;\nconst UUIHorizontalShakeAnimationValue = unsafeCSS(\n \"uui-horizontal-shake 600ms ease backwards\"\n);\n\nclass UUIEvent extends Event {\n constructor(evName, eventInit = {}) {\n super(evName, { ...eventInit });\n this.detail = eventInit.detail || {};\n }\n}\n\nclass UUIFormControlEvent extends UUIEvent {\n constructor(evName, eventInit = {}) {\n super(evName, {\n ...{ bubbles: true },\n ...eventInit\n });\n }\n}\nUUIFormControlEvent.VALID = \"valid\";\nUUIFormControlEvent.INVALID = \"invalid\";\n\nclass UUISelectableEvent extends UUIEvent {\n constructor(evName, eventInit = {}) {\n super(evName, {\n ...{ bubbles: true, cancelable: true },\n ...eventInit\n });\n }\n}\nUUISelectableEvent.SELECTED = \"selected\";\nUUISelectableEvent.DESELECTED = \"deselected\";\n\nvar __defProp$5 = Object.defineProperty;\nvar __decorateClass$5 = (decorators, target, key, kind) => {\n var result = void 0 ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result) __defProp$5(target, key, result);\n return result;\n};\nconst ActiveMixin = (superClass) => {\n class ActiveMixinClass extends superClass {\n constructor() {\n super(...arguments);\n this.active = false;\n }\n }\n __decorateClass$5([\n property({ type: Boolean, reflect: true })\n ], ActiveMixinClass.prototype, \"active\");\n return ActiveMixinClass;\n};\n\nvar __defProp$4 = Object.defineProperty;\nvar __decorateClass$4 = (decorators, target, key, kind) => {\n var result = void 0 ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result) __defProp$4(target, key, result);\n return result;\n};\nconst LabelMixin = (labelSlotName, superClass) => {\n class LabelMixinClass extends superClass {\n constructor() {\n super(...arguments);\n this._labelSlotHasContent = false;\n }\n connectedCallback() {\n super.connectedCallback();\n if (!this.label) {\n console.warn(this.tagName + \" needs a `label`\", this);\n }\n }\n labelSlotChanged(e) {\n this._labelSlotHasContent = e.target.assignedNodes({ flatten: true }).length > 0;\n }\n /**\n * Call in the mixed element to render the label template. It contains a slot. This is optional.\n * @method renderLabel\n * @returns {TemplateResult}\n */\n renderLabel() {\n return html`\n ${this._labelSlotHasContent === false ? html`${this.label}` : \"\"}\n \n `;\n }\n }\n __decorateClass$4([\n property({ type: String })\n ], LabelMixinClass.prototype, \"label\");\n __decorateClass$4([\n state()\n ], LabelMixinClass.prototype, \"_labelSlotHasContent\");\n return LabelMixinClass;\n};\n\nvar __defProp$3 = Object.defineProperty;\nvar __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;\nvar __typeError$2 = (msg) => {\n throw TypeError(msg);\n};\nvar __decorateClass$3 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp$3(target, key, result);\n return result;\n};\nvar __accessCheck$2 = (obj, member, msg) => member.has(obj) || __typeError$2(\"Cannot \" + msg);\nvar __privateGet$2 = (obj, member, getter) => (__accessCheck$2(obj, member, \"read from private field\"), getter ? getter.call(obj) : member.get(obj));\nvar __privateAdd$2 = (obj, member, value) => member.has(obj) ? __typeError$2(\"Cannot add the same private member more than once\") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\nvar __privateSet$2 = (obj, member, value, setter) => (__accessCheck$2(obj, member, \"write to private field\"), member.set(obj, value), value);\nvar __privateMethod$1 = (obj, member, method) => (__accessCheck$2(obj, member, \"access private method\"), method);\nconst SelectableMixin = (superClass) => {\n var _selectableTarget, _onKeydown, _onClick, _SelectableMixinClass_instances, toggleSelect_fn, select_fn, deselect_fn;\n class SelectableMixinClass extends superClass {\n constructor(...args) {\n super(...args);\n __privateAdd$2(this, _SelectableMixinClass_instances);\n this._selectable = false;\n this.deselectable = true;\n this.selected = false;\n __privateAdd$2(this, _selectableTarget, this);\n __privateAdd$2(this, _onKeydown, (e) => {\n if (e.code !== \"Space\" && e.code !== \"Enter\") return;\n if (e.composedPath().indexOf(__privateGet$2(this, _selectableTarget)) === 0) {\n __privateGet$2(this, _onClick).call(this, e);\n }\n });\n __privateAdd$2(this, _onClick, (e) => {\n const isSelectable = this._selectable || this.deselectable && this.selected;\n if (isSelectable === false) return;\n const composePath = e.composedPath();\n if (__privateGet$2(this, _selectableTarget) === this) {\n const isActionTag = composePath.some((el) => {\n const elementTagName = el.tagName;\n return elementTagName === \"A\" || elementTagName === \"BUTTON\" || elementTagName === \"INPUT\" || elementTagName === \"TEXTAREA\" || elementTagName === \"SELECT\";\n });\n if (isActionTag) return;\n }\n if (composePath.indexOf(__privateGet$2(this, _selectableTarget)) !== -1) {\n if (e.type === \"keydown\") {\n e.preventDefault();\n }\n __privateMethod$1(this, _SelectableMixinClass_instances, toggleSelect_fn).call(this);\n }\n });\n this.addEventListener(\"click\", __privateGet$2(this, _onClick));\n this.addEventListener(\"keydown\", __privateGet$2(this, _onKeydown));\n }\n get selectable() {\n return this._selectable;\n }\n set selectable(newVal) {\n const oldVal = this._selectable;\n if (oldVal === newVal) return;\n this._selectable = newVal;\n if (__privateGet$2(this, _selectableTarget) === this) {\n __privateGet$2(this, _selectableTarget).setAttribute(\n \"tabindex\",\n `${newVal ? \"0\" : \"-1\"}`\n );\n }\n this.requestUpdate(\"selectable\", oldVal);\n }\n get selectableTarget() {\n return __privateGet$2(this, _selectableTarget);\n }\n set selectableTarget(target) {\n const oldTarget = __privateGet$2(this, _selectableTarget);\n oldTarget.removeAttribute(\"tabindex\");\n oldTarget.removeEventListener(\"click\", __privateGet$2(this, _onClick));\n oldTarget.removeEventListener(\n \"keydown\",\n __privateGet$2(this, _onKeydown)\n );\n __privateSet$2(this, _selectableTarget, target);\n if (__privateGet$2(this, _selectableTarget) === this) {\n __privateGet$2(this, _selectableTarget).setAttribute(\n \"tabindex\",\n this._selectable ? \"0\" : \"-1\"\n );\n }\n target.addEventListener(\"click\", __privateGet$2(this, _onClick));\n target.addEventListener(\"keydown\", __privateGet$2(this, _onKeydown));\n }\n }\n _selectableTarget = new WeakMap();\n _onKeydown = new WeakMap();\n _onClick = new WeakMap();\n _SelectableMixinClass_instances = new WeakSet();\n toggleSelect_fn = function() {\n if (!this.selectable) return;\n if (this.deselectable === false) {\n __privateMethod$1(this, _SelectableMixinClass_instances, select_fn).call(this);\n } else {\n this.selected ? __privateMethod$1(this, _SelectableMixinClass_instances, deselect_fn).call(this) : __privateMethod$1(this, _SelectableMixinClass_instances, select_fn).call(this);\n }\n };\n select_fn = function() {\n if (!this.selectable) return;\n const selectEvent = new UUISelectableEvent(UUISelectableEvent.SELECTED);\n this.dispatchEvent(selectEvent);\n if (selectEvent.defaultPrevented) return;\n this.selected = true;\n };\n deselect_fn = function() {\n if (!this.deselectable) return;\n const selectEvent = new UUISelectableEvent(UUISelectableEvent.DESELECTED);\n this.dispatchEvent(selectEvent);\n if (selectEvent.defaultPrevented) return;\n this.selected = false;\n };\n __decorateClass$3([\n property({ type: Boolean, reflect: true })\n ], SelectableMixinClass.prototype, \"selectable\", 1);\n __decorateClass$3([\n property({ type: Boolean, reflect: true })\n ], SelectableMixinClass.prototype, \"selected\", 2);\n return SelectableMixinClass;\n};\n\nvar __defProp$2 = Object.defineProperty;\nvar __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$2 = (decorators, target, key, kind) => {\n var result = __getOwnPropDesc$1(target, key) ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result) __defProp$2(target, key, result);\n return result;\n};\nconst SelectOnlyMixin = (superClass) => {\n class SelectOnlyMixinClass extends superClass {\n constructor() {\n super(...arguments);\n this._selectOnly = false;\n }\n get selectOnly() {\n return this._selectOnly;\n }\n set selectOnly(newVal) {\n const oldVal = this._selectOnly;\n this._selectOnly = newVal;\n this.requestUpdate(\"selectOnly\", oldVal);\n }\n }\n __decorateClass$2([\n property({ type: Boolean, reflect: true, attribute: \"select-only\" })\n ], SelectOnlyMixinClass.prototype, \"selectOnly\");\n return SelectOnlyMixinClass;\n};\n\nvar __defProp$1 = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __typeError$1 = (msg) => {\n throw TypeError(msg);\n};\nvar __decorateClass$1 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp$1(target, key, result);\n return result;\n};\nvar __accessCheck$1 = (obj, member, msg) => member.has(obj) || __typeError$1(\"Cannot \" + msg);\nvar __privateGet$1 = (obj, member, getter) => (__accessCheck$1(obj, member, \"read from private field\"), getter ? getter.call(obj) : member.get(obj));\nvar __privateAdd$1 = (obj, member, value) => member.has(obj) ? __typeError$1(\"Cannot add the same private member more than once\") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\nvar __privateSet$1 = (obj, member, value, setter) => (__accessCheck$1(obj, member, \"write to private field\"), member.set(obj, value), value);\nvar __privateMethod = (obj, member, method) => (__accessCheck$1(obj, member, \"access private method\"), method);\nconst WeightedErrorFlagTypes = [\n \"customError\",\n \"valueMissing\",\n \"badInput\",\n \"typeMismatch\",\n \"patternMismatch\",\n \"rangeOverflow\",\n \"rangeUnderflow\",\n \"stepMismatch\",\n \"tooLong\",\n \"tooShort\"\n];\nconst UUIFormControlMixin = (superClass, defaultValue) => {\n var _validity, _value, _form, _validators, _formCtrlElements, _UUIFormControlMixinClass_instances, removeFormListeners_fn, dispatchValidationState_fn, _onFormSubmit;\n class UUIFormControlMixinClass extends superClass {\n constructor(...args) {\n super(...args);\n __privateAdd$1(this, _UUIFormControlMixinClass_instances);\n this.name = \"\";\n // Validation\n __privateAdd$1(this, _validity, {});\n // Will be set to true instantly to trigger the setAttribute in the setter.\n // This is to prevent an issue caused by using setAttribute in the constructor.\n this._pristine = false;\n this.required = false;\n this.requiredMessage = \"This field is required\";\n this.error = false;\n this.errorMessage = \"This field is invalid\";\n __privateAdd$1(this, _value, defaultValue);\n __privateAdd$1(this, _form, null);\n __privateAdd$1(this, _validators, []);\n __privateAdd$1(this, _formCtrlElements, []);\n __privateAdd$1(this, _onFormSubmit, () => {\n this.pristine = false;\n });\n this._internals = this.attachInternals();\n this.pristine = true;\n this.addValidator(\n \"valueMissing\",\n () => this.requiredMessage,\n () => this.hasAttribute(\"required\") && this.hasValue() === false\n );\n this.addValidator(\n \"customError\",\n () => this.errorMessage,\n () => this.error\n );\n this.addEventListener(\"blur\", () => {\n this.pristine = false;\n this.checkValidity();\n });\n }\n // Do not 'reflect' as the attribute is used as fallback.\n get value() {\n return __privateGet$1(this, _value);\n }\n set value(newValue) {\n const oldValue = __privateGet$1(this, _value);\n __privateSet$1(this, _value, newValue);\n if (\"ElementInternals\" in window && \"setFormValue\" in window.ElementInternals.prototype) {\n this._internals.setFormValue(__privateGet$1(this, _value) ?? null);\n }\n this.requestUpdate(\"value\", oldValue);\n }\n set pristine(value) {\n if (this._pristine !== value) {\n this._pristine = value;\n if (value) {\n this.setAttribute(\"pristine\", \"\");\n } else {\n this.removeAttribute(\"pristine\");\n }\n __privateMethod(this, _UUIFormControlMixinClass_instances, dispatchValidationState_fn).call(this);\n }\n }\n get pristine() {\n return this._pristine;\n }\n /**\n * Determine wether this FormControl has a value.\n * @method hasValue\n * @returns {boolean}\n */\n hasValue() {\n return this.value !== this.getDefaultValue();\n }\n /**\n * Focus first element that is invalid.\n * @method focusFirstInvalidElement\n * @returns {HTMLElement | undefined}\n */\n focusFirstInvalidElement() {\n const firstInvalid = __privateGet$1(this, _formCtrlElements).find(\n (el) => el.validity.valid === false\n );\n if (firstInvalid) {\n if (\"focusFirstInvalidElement\" in firstInvalid) {\n firstInvalid.focusFirstInvalidElement();\n } else {\n firstInvalid.focus();\n }\n } else {\n this.focus();\n }\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n __privateMethod(this, _UUIFormControlMixinClass_instances, removeFormListeners_fn).call(this);\n }\n /**\n * Add validator, to validate this Form Control.\n * See https://developer.mozilla.org/en-US/docs/Web/API/ValidityState for available Validator FlagTypes.\n *\n * @example\n * this.addValidator(\n * 'tooLong',\n * () => 'This input contains too many characters',\n * () => this._value.length > 10\n * );\n * @method hasValue\n * @param {FlagTypes} flagKey the type of validation.\n * @param {method} getMessageMethod method to retrieve relevant message. Is executed every time the validator is re-executed.\n * @param {method} checkMethod method to determine if this validator should invalidate this form control. Return true if this should prevent submission.\n */\n addValidator(flagKey, getMessageMethod, checkMethod) {\n const validator = {\n flagKey,\n getMessageMethod,\n checkMethod,\n weight: WeightedErrorFlagTypes.indexOf(flagKey)\n };\n __privateGet$1(this, _validators).push(validator);\n __privateGet$1(this, _validators).sort(\n (a, b) => a.weight > b.weight ? 1 : b.weight > a.weight ? -1 : 0\n );\n return validator;\n }\n removeValidator(validator) {\n const index = __privateGet$1(this, _validators).indexOf(validator);\n if (index !== -1) {\n __privateGet$1(this, _validators).splice(index, 1);\n }\n }\n /**\n * @method addFormControlElement\n * @description Important notice if adding a native form control then ensure that its value and thereby validity is updated when value is changed from the outside.\n * @param element {NativeFormControlElement} - element to validate and include as part of this form association.\n */\n addFormControlElement(element) {\n __privateGet$1(this, _formCtrlElements).push(element);\n element.addEventListener(UUIFormControlEvent.INVALID, () => {\n this._runValidators();\n });\n element.addEventListener(UUIFormControlEvent.VALID, () => {\n this._runValidators();\n });\n if (this._pristine === false) {\n element.checkValidity();\n this._runValidators();\n }\n }\n /**\n * @method setCustomValidity\n * @description Set custom validity state, set to empty string to remove the custom message.\n * @param message {string} - The message to be shown\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/setCustomValidity|HTMLObjectElement:setCustomValidity}\n */\n setCustomValidity(message) {\n if (this._customValidityObject) {\n this.removeValidator(this._customValidityObject);\n }\n if (message != null && message !== \"\") {\n this._customValidityObject = this.addValidator(\n \"customError\",\n () => message,\n () => true\n );\n }\n this._runValidators();\n }\n /**\n * @protected\n * @method _runValidators\n * @description Run all validators and set the validityState of this form control.\n * Run this method when you want to re-run all validators.\n * This can be relevant if you have a validators that is using values that is not triggering the Lit Updated Callback.\n * Such are mainly properties that are not declared as a Lit state and or Lit property.\n */\n _runValidators() {\n __privateSet$1(this, _validity, {});\n let message = void 0;\n let innerFormControlEl = void 0;\n __privateGet$1(this, _validators).some((validator) => {\n if (validator.checkMethod()) {\n __privateGet$1(this, _validity)[validator.flagKey] = true;\n message = validator.getMessageMethod();\n return true;\n }\n return false;\n });\n if (!message) {\n __privateGet$1(this, _formCtrlElements).some((formCtrlEl) => {\n let key;\n for (key in formCtrlEl.validity) {\n if (key !== \"valid\" && formCtrlEl.validity[key]) {\n __privateGet$1(this, _validity)[key] = true;\n message = formCtrlEl.validationMessage;\n innerFormControlEl ?? (innerFormControlEl = formCtrlEl);\n return true;\n }\n }\n return false;\n });\n }\n const hasError = Object.values(__privateGet$1(this, _validity)).includes(true);\n __privateGet$1(this, _validity).valid = !hasError;\n this._internals.setValidity(\n __privateGet$1(this, _validity),\n // Turn messages into an array and join them with a comma. [NL]:\n //[...messages].join(', '),\n message,\n innerFormControlEl ?? this.getFormElement() ?? void 0\n );\n __privateMethod(this, _UUIFormControlMixinClass_instances, dispatchValidationState_fn).call(this);\n }\n updated(changedProperties) {\n super.updated(changedProperties);\n this._runValidators();\n }\n submit() {\n __privateGet$1(this, _form)?.requestSubmit();\n }\n formAssociatedCallback() {\n __privateMethod(this, _UUIFormControlMixinClass_instances, removeFormListeners_fn).call(this);\n __privateSet$1(this, _form, this._internals.form);\n if (__privateGet$1(this, _form)) {\n if (__privateGet$1(this, _form).hasAttribute(\"submit-invalid\")) {\n this.pristine = false;\n }\n __privateGet$1(this, _form).addEventListener(\"submit\", __privateGet$1(this, _onFormSubmit));\n }\n }\n formResetCallback() {\n this.pristine = true;\n this.value = this.getInitialValue() ?? this.getDefaultValue();\n }\n getDefaultValue() {\n return defaultValue;\n }\n getInitialValue() {\n return this.getAttribute(\"value\");\n }\n checkValidity() {\n this.pristine = false;\n this._runValidators();\n for (const key in __privateGet$1(this, _formCtrlElements)) {\n if (__privateGet$1(this, _formCtrlElements)[key].checkValidity() === false) {\n return false;\n }\n }\n return this._internals?.checkValidity();\n }\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity\n get validity() {\n return __privateGet$1(this, _validity);\n }\n get validationMessage() {\n return this._internals?.validationMessage;\n }\n }\n _validity = new WeakMap();\n _value = new WeakMap();\n _form = new WeakMap();\n _validators = new WeakMap();\n _formCtrlElements = new WeakMap();\n _UUIFormControlMixinClass_instances = new WeakSet();\n removeFormListeners_fn = function() {\n if (__privateGet$1(this, _form)) {\n __privateGet$1(this, _form).removeEventListener(\"submit\", __privateGet$1(this, _onFormSubmit));\n }\n };\n dispatchValidationState_fn = function() {\n if (this._pristine === true) return;\n if (__privateGet$1(this, _validity).valid) {\n this.dispatchEvent(new UUIFormControlEvent(UUIFormControlEvent.VALID));\n } else {\n this.dispatchEvent(\n new UUIFormControlEvent(UUIFormControlEvent.INVALID)\n );\n }\n };\n _onFormSubmit = new WeakMap();\n /**\n * This is a static class field indicating that the element is can be used inside a native form and participate in its events.\n * It may require a polyfill, check support here https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals.\n * Read more about form controls here https://web.dev/more-capable-form-controls/\n * @type {boolean}\n */\n UUIFormControlMixinClass.formAssociated = true;\n __decorateClass$1([\n property({ type: String })\n ], UUIFormControlMixinClass.prototype, \"name\", 2);\n __decorateClass$1([\n property()\n ], UUIFormControlMixinClass.prototype, \"value\", 1);\n __decorateClass$1([\n property({ type: Boolean, reflect: true, attribute: \"pristine\" })\n ], UUIFormControlMixinClass.prototype, \"pristine\", 1);\n __decorateClass$1([\n property({ type: Boolean, reflect: true })\n ], UUIFormControlMixinClass.prototype, \"required\", 2);\n __decorateClass$1([\n property({ type: String, attribute: \"required-message\" })\n ], UUIFormControlMixinClass.prototype, \"requiredMessage\", 2);\n __decorateClass$1([\n property({ type: Boolean, reflect: true })\n ], UUIFormControlMixinClass.prototype, \"error\", 2);\n __decorateClass$1([\n property({ type: String, attribute: \"error-message\" })\n ], UUIFormControlMixinClass.prototype, \"errorMessage\", 2);\n return UUIFormControlMixinClass;\n};\n\nclass Timer {\n constructor(_callback, duration) {\n this._callback = _callback;\n this._timerId = null;\n this._remaining = null;\n this._onComplete = () => {\n this._remaining = null;\n this._callback();\n };\n this.setDuration(duration);\n }\n setDuration(duration) {\n this._duration = duration;\n if (this._timerId !== null) {\n this.restart();\n }\n }\n /** starts the timer */\n start() {\n if (this._timerId === null) {\n this.resume();\n }\n }\n /** restarts the timer by setting remaining time to duration. */\n restart() {\n this._remaining = this._duration;\n this.resume();\n }\n pause() {\n if (this._timerId !== null) {\n window.clearTimeout(this._timerId);\n this._timerId = null;\n if (this._remaining !== null) {\n this._remaining -= Date.now() - this._startTime;\n }\n }\n }\n resume() {\n if (this._timerId !== null) {\n window.clearTimeout(this._timerId);\n }\n if (this._remaining === null) {\n this._remaining = this._duration;\n }\n this._startTime = Date.now();\n this._timerId = window.setTimeout(this._onComplete, this._remaining);\n }\n destroy() {\n this.pause();\n }\n}\n\nconst demandCustomElement = (requester, elementName, message = `This element has to be present for ${requester.nodeName} to work appropriate.`) => {\n if (!customElements.get(elementName)) {\n console.warn(\n `%c ${requester.nodeName} requires ${elementName} element to be registered!`,\n \"font-weight: bold;\",\n message,\n requester\n );\n }\n};\n\nconst drag = (container, options) => {\n function move(event) {\n const dims = container.getBoundingClientRect();\n const defaultView = container.ownerDocument.defaultView;\n const offsetX = dims.left + defaultView.scrollX;\n const offsetY = dims.top + defaultView.scrollY;\n let pointerEvent;\n if (event instanceof TouchEvent) {\n pointerEvent = event.touches[0];\n } else {\n pointerEvent = event;\n }\n const x = pointerEvent.pageX - offsetX;\n const y = pointerEvent.pageY - offsetY;\n if (options?.onMove) {\n options.onMove(x, y);\n }\n }\n function stop() {\n document.removeEventListener(\"pointermove\", move);\n document.removeEventListener(\"pointerup\", stop);\n if (options?.onStop) {\n options.onStop();\n }\n }\n document.addEventListener(\"pointermove\", move, { passive: true });\n document.addEventListener(\"pointerup\", stop);\n if (options?.initialEvent) {\n move(options.initialEvent);\n }\n};\n\nconst clamp = (value, min, max) => {\n return Math.min(Math.max(value, min), max);\n};\nconst reverseNumberInRange = (num, min, max) => {\n return max + min - num;\n};\nconst toHex = (value) => {\n const hex = Math.round(value).toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n};\n\nconst findAncestorByAttributeValue = (startNode, attributeName, attributeValue) => {\n let currentNode = startNode;\n while (currentNode !== null) {\n const elementHasAttribute = currentNode instanceof HTMLElement && currentNode.hasAttribute(attributeName) && currentNode.getAttribute(attributeName) === attributeValue;\n const elementContainsAttribute = currentNode.querySelector(`[${attributeName}=\"${attributeValue}\"]`) !== null;\n if (elementHasAttribute) {\n return currentNode;\n } else if (elementContainsAttribute) {\n return currentNode.querySelector(\n `[${attributeName}=\"${attributeValue}\"]`\n );\n }\n currentNode = currentNode.parentElement || currentNode.parentNode || currentNode.host || null;\n }\n return null;\n};\n\nfunction slotHasContent(target) {\n return target ? target.assignedNodes({ flatten: true }).length > 0 : false;\n}\n\nvar __defProp = Object.defineProperty;\nvar __typeError = (msg) => {\n throw TypeError(msg);\n};\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = void 0 ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result) __defProp(target, key, result);\n return result;\n};\nvar __accessCheck = (obj, member, msg) => member.has(obj) || __typeError(\"Cannot \" + msg);\nvar __privateGet = (obj, member, getter) => (__accessCheck(obj, member, \"read from private field\"), member.get(obj));\nvar __privateAdd = (obj, member, value) => member.has(obj) ? __typeError(\"Cannot add the same private member more than once\") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\nvar __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, \"write to private field\"), member.set(obj, value), value);\nconst PopoverTargetMixin = (superClass) => {\n var _popoverIsOpen, _popoverListener;\n class PopoverTargetMixinClass extends superClass {\n constructor(...args) {\n super(...args);\n __privateAdd(this, _popoverIsOpen, false);\n this._togglePopover = () => {\n if (!this.popoverContainerElement) return;\n const popoverContainerElement = findAncestorByAttributeValue(\n this,\n \"id\",\n this.popoverContainerElement\n );\n if (!popoverContainerElement) return;\n __privateGet(this, _popoverIsOpen) ? (\n // @ts-ignore - This is part of the new popover API, but typescript doesn't recognize it yet.\n popoverContainerElement.hidePopover()\n ) : (\n // @ts-ignore - This is part of the new popover API, but typescript doesn't recognize it yet.\n popoverContainerElement.showPopover()\n );\n };\n __privateAdd(this, _popoverListener, (event) => {\n requestAnimationFrame(() => {\n __privateSet(this, _popoverIsOpen, event.detail.newState === \"open\");\n });\n });\n this.addEventListener(\"uui-popover-before-toggle\", __privateGet(this, _popoverListener));\n }\n }\n _popoverIsOpen = new WeakMap();\n _popoverListener = new WeakMap();\n __decorateClass([\n property({ type: String, attribute: \"popovertarget\" })\n ], PopoverTargetMixinClass.prototype, \"popoverContainerElement\");\n return PopoverTargetMixinClass;\n};\n\nfunction defineElement(name, options) {\n return (constructor) => {\n const isValidElementName = name.indexOf(\"-\") > 0;\n if (isValidElementName === false) {\n console.error(\n `${name} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`\n );\n return;\n }\n const existingElement = window.customElements.get(name);\n if (!existingElement) {\n window.customElements.define(name, constructor, options);\n }\n };\n}\n\nconst UUIInterfaceLookValues = [\n \"default\",\n \"primary\",\n \"secondary\",\n \"outline\",\n \"placeholder\"\n];\n\nconst UUIInterfaceColorValues = [\n \"default\",\n \"positive\",\n \"warning\",\n \"danger\"\n];\n\nconst UUIInterfaceHeadingValues = [\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\"\n];\n\nexport { ActiveMixin, LabelMixin, PopoverTargetMixin, SelectOnlyMixin, SelectableMixin, Timer, UUIBlinkAnimationValue, UUIBlinkKeyframes, UUIEvent, UUIFormControlEvent, UUIFormControlMixin, UUIHorizontalPulseAnimationValue, UUIHorizontalPulseKeyframes, UUIHorizontalShakeAnimationValue, UUIHorizontalShakeKeyframes, UUIInterfaceColorValues, UUIInterfaceHeadingValues, UUIInterfaceLookValues, UUISelectableEvent, clamp, defineElement, demandCustomElement, drag, findAncestorByAttributeValue, reverseNumberInRange, slotHasContent, toHex };\n","function defineElement(name, options) {\n return (constructor) => {\n const isValidElementName = name.indexOf(\"-\") > 0;\n if (isValidElementName === false) {\n console.error(\n `${name} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`\n );\n return;\n }\n const existingElement = window.customElements.get(name);\n if (!existingElement) {\n window.customElements.define(name, constructor, options);\n }\n };\n}\n\nexport { defineElement };\n","import { defineElement } from '@umbraco-ui/uui-base/lib/registration';\nimport { LitElement, html, css } from 'lit';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nlet UUIButtonGroupElement = class extends LitElement {\n render() {\n return html``;\n }\n};\nUUIButtonGroupElement.styles = [\n css`\n :host {\n display: inline-flex;\n align-items: stretch;\n }\n\n ::slotted(*) {\n --uui-button-border-radius: 0;\n flex-grow: 1;\n }\n\n ::slotted([look='outline']:not(:first-child)) {\n --uui-button-merge-border-left: 1;\n }\n ::slotted([look='placeholder']:not(:first-child)) {\n --uui-button-merge-border-left: 1;\n }\n\n ::slotted(*:first-child) {\n --uui-button-border-radius: var(--uui-border-radius,3px) 0 0\n var(--uui-border-radius,3px);\n }\n ::slotted(*:last-child) {\n --uui-button-border-radius: 0 var(--uui-border-radius,3px)\n var(--uui-border-radius,3px) 0;\n }\n\n ::slotted(*:hover) {\n z-index: 1;\n }\n `\n];\nUUIButtonGroupElement = __decorateClass([\n defineElement(\"uui-button-group\")\n], UUIButtonGroupElement);\n\nexport { UUIButtonGroupElement };\n","import { defineElement } from '@umbraco-ui/uui-base/lib/registration';\nimport { UUIButtonGroupElement } from '@umbraco-ui/uui-button-group/lib';\nimport { css } from 'lit';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nlet UUIActionBarElement = class extends UUIButtonGroupElement {\n};\nUUIActionBarElement.styles = [\n ...UUIButtonGroupElement.styles,\n css`\n ::slotted(*) {\n --uui-button-padding-left-factor: 0.5;\n --uui-button-padding-right-factor: 0.5;\n }\n\n ::slotted(*:first-child) {\n --uui-button-border-radius: 50px 0 0 50px;\n --uui-button-padding-left-factor: 2;\n }\n ::slotted(*:last-child) {\n --uui-button-border-radius: 0 50px 50px 0;\n --uui-button-padding-right-factor: 2;\n }\n ::slotted(*:first-child:last-child) {\n --uui-button-border-radius: 50px 50px 50px 50px;\n --uui-button-padding-left-factor: 2;\n --uui-button-padding-right-factor: 2;\n }\n\n ::slotted([look='outline']),\n ::slotted([look='placeholder']) {\n --uui-button-padding-left-factor: 1;\n --uui-button-padding-right-factor: 1;\n }\n\n ::slotted(uui-button[look='outline']:first-child),\n ::slotted(uui-button[look='placeholder']:first-child) {\n --uui-button-border-radius: 50px 0 0 50px;\n --uui-button-padding-left-factor: 1.5;\n }\n ::slotted(uui-button[look='outline']:last-child),\n ::slotted(uui-button[look='placeholder']:last-child) {\n --uui-button-border-radius: 0 50px 50px 0;\n --uui-button-padding-right-factor: 1.5;\n }\n ::slotted(uui-button[look='outline']:first-child:last-child),\n ::slotted(uui-button[look='placeholder']:first-child:last-child) {\n --uui-button-border-radius: 50px 50px 50px 50px;\n --uui-button-padding-left-factor: 1.5;\n --uui-button-padding-right-factor: 1.5;\n }\n `\n];\nUUIActionBarElement = __decorateClass([\n defineElement(\"uui-action-bar\")\n], UUIActionBarElement);\n\nexport { UUIActionBarElement };\n","import { defineElement } from '@umbraco-ui/uui-base/lib/registration';\nimport { LitElement, html, css } from 'lit';\nimport { queryAssignedElements, state, property } from 'lit/decorators.js';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nlet UUIAvatarGroupElement = class extends LitElement {\n constructor() {\n super(...arguments);\n this._avatarArray = [];\n this.limit = 0;\n }\n firstUpdated() {\n this._setAvatarArray();\n }\n _onSlotChange() {\n this._setAvatarArray();\n this._updateAvatarVisibility();\n }\n _setAvatarArray() {\n this._avatarArray = this._avatarNodes ? this._avatarNodes : [];\n }\n updated(changedProperties) {\n if (changedProperties.has(\"limit\")) {\n this._updateAvatarVisibility();\n }\n }\n _updateAvatarVisibility() {\n this._avatarArray.forEach((avatar, index) => {\n avatar.style.display = index < this.limit || this.limit === 0 ? \"\" : \"none\";\n });\n }\n _isLimitExceeded() {\n return this.limit !== 0 && this._avatarArray.length > this.limit;\n }\n render() {\n return html`\n \n ${this._isLimitExceeded() ? (\n //prettier-ignore\n html`+${this._avatarArray.length - this.limit}`\n ) : \"\"}\n `;\n }\n};\nUUIAvatarGroupElement.styles = [\n css`\n :host {\n display: inline-flex;\n align-items: center;\n padding-left: 3px;\n padding-right: 3px;\n }\n\n ::slotted(uui-avatar) {\n margin-left: -0.2em;\n margin-right: -0.2em;\n border: 0.1em solid var(--uui-avatar-border-color);\n }\n\n #overflow-indication {\n margin-left: 6px;\n }\n `\n];\n__decorateClass([\n queryAssignedElements({\n selector: \"uui-avatar, [uui-avatar]\",\n flatten: true\n })\n], UUIAvatarGroupElement.prototype, \"_avatarNodes\", 2);\n__decorateClass([\n state()\n], UUIAvatarGroupElement.prototype, \"_avatarArray\", 2);\n__decorateClass([\n property({ type: Number, attribute: true })\n], UUIAvatarGroupElement.prototype, \"limit\", 2);\nUUIAvatarGroupElement = __decorateClass([\n defineElement(\"uui-avatar-group\")\n], UUIAvatarGroupElement);\n\nexport { UUIAvatarGroupElement };\n","import { defineElement } from '@umbraco-ui/uui-base/lib/registration';\nimport { LitElement, html, css } from 'lit';\nimport { property, state } from 'lit/decorators.js';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nlet UUIAvatarElement = class extends LitElement {\n constructor() {\n super(...arguments);\n this.overflow = true;\n this.imgSrc = \"\";\n this.imgSrcset = \"\";\n this._name = \"\";\n this.initials = \"\";\n }\n get name() {\n return this._name;\n }\n set name(newVal) {\n const oldValue = this._name;\n this._name = newVal;\n this.initials = this.createInitials(this._name);\n this.requestUpdate(\"title\", oldValue);\n }\n connectedCallback() {\n super.connectedCallback();\n if (!this.name) {\n console.warn(this.tagName + \" needs a `name`\", this);\n }\n }\n createInitials(name) {\n let initials = \"\";\n if (!name) {\n return initials;\n }\n const words = name.match(/(\\w+)/g);\n if (!words?.length) {\n return initials;\n }\n initials = words[0].substring(0, 1);\n if (words.length > 1) {\n initials += words[words.length - 1].substring(0, 1);\n }\n return initials.toUpperCase();\n }\n renderImage() {\n return html` `;\n }\n render() {\n return html`\n ${this.imgSrc ? this.renderImage() : \"\"}\n ${!this.imgSrc ? this.initials : \"\"}\n \n `;\n }\n};\nUUIAvatarElement.styles = [\n css`\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n position: relative;\n overflow: hidden;\n border-radius: 50%;\n font-weight: 700;\n -webkit-font-smoothing: subpixel-antialiased;\n width: calc(2em + 4px);\n height: calc(2em + 4px);\n user-select: none;\n /* box-sizing: border-box; */\n aspect-ratio: 1;\n background-color: var(--uui-palette-spanish-pink,#f5c1bc);\n color: var(--uui-palette-space-cadet,#1b264f);\n }\n\n :host([overflow]) {\n overflow: unset;\n }\n\n img {\n object-fit: cover;\n height: 100%;\n width: 100%;\n overflow: hidden;\n border-radius: 50%;\n }\n `\n];\n__decorateClass([\n property({ type: Boolean, attribute: true, reflect: true })\n], UUIAvatarElement.prototype, \"overflow\", 2);\n__decorateClass([\n property({ type: String, attribute: \"img-src\" })\n], UUIAvatarElement.prototype, \"imgSrc\", 2);\n__decorateClass([\n property({ type: String, attribute: \"img-srcset\" })\n], UUIAvatarElement.prototype, \"imgSrcset\", 2);\n__decorateClass([\n property({ type: String, reflect: true })\n], UUIAvatarElement.prototype, \"name\", 1);\n__decorateClass([\n state()\n], UUIAvatarElement.prototype, \"initials\", 2);\nUUIAvatarElement = __decorateClass([\n defineElement(\"uui-avatar\")\n], UUIAvatarElement);\n\nexport { UUIAvatarElement };\n","import { defineElement } from '@umbraco-ui/uui-base/lib/registration';\nimport { LitElement, html, css } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nlet UUIBadgeElement = class extends LitElement {\n constructor() {\n super(...arguments);\n this.color = \"default\";\n this.look = \"primary\";\n this.attention = false;\n }\n render() {\n return html` `;\n }\n};\nUUIBadgeElement.styles = [\n css`\n :host {\n position: var(--uui-badge-position, absolute);\n display: flex;\n justify-content: center;\n align-items: center;\n\n padding: var(--uui-size-1,3px) var(--uui-size-2,6px);\n inset: var(--uui-badge-inset, -8px -8px auto auto);\n\n text-align: center;\n font-size: var(--uui-badge-font-size, var(--uui-type-small-size,12px));\n font-weight: 900;\n line-height: 1;\n\n margin-right: 0;\n\n min-width: var(--uui-size-8,24px);\n min-height: var(--uui-size-8,24px);\n box-sizing: border-box;\n\n border-radius: var(--uui-size-4,12px);\n border: 1px solid transparent;\n }\n\n :host {\n --color: var(--uui-color-default,#1b264f);\n --color-standalone: var(--uui-color-default-standalone,rgb(28, 35, 59));\n --color-contrast: var(--uui-color-default-contrast,#fff);\n }\n :host([color='positive']) {\n --color: var(--uui-color-positive,#0b8152);\n --color-standalone: var(--uui-color-positive-standalone,rgb(10, 115, 73));\n --color-contrast: var(--uui-color-positive-contrast,#fff);\n }\n :host([color='warning']) {\n --color: var(--uui-color-warning,#fbd142);\n --color-standalone: var(--uui-color-warning-standalone,#a17700);\n --color-contrast: var(--uui-color-warning-contrast,#000);\n }\n :host([color='danger']) {\n --color: var(--uui-color-danger,#d42054);\n --color-standalone: var(--uui-color-danger-standalone,rgb(191, 33, 78));\n --color-contrast: var(--uui-color-danger-contrast,white);\n }\n\n :host {\n background-color: var(--uui-color-surface,#fff);\n color: var(--color-standalone);\n border-color: transparent;\n }\n :host([look='primary']) {\n background-color: var(--color);\n color: var(--color-contrast);\n border-color: transparent;\n }\n :host([look='secondary']) {\n background-color: var(--uui-color-surface-alt,#f3f3f5);\n color: var(--color-standalone);\n border-color: transparent;\n }\n :host([look='outline']) {\n background-color: var(--uui-color-surface,#fff);\n color: var(--color-standalone);\n border-color: var(--color-standalone);\n }\n :host([look='placeholder']) {\n border-style: dashed;\n background-color: var(--uui-color-surface,#fff);\n color: var(--color-standalone);\n border-color: var(--uui-color-border-standalone,#c2c2c2);\n }\n\n /** TODO: we didn't want to target elements by name, but what else can we do? */\n ::slotted(uui-icon) {\n margin-left: -0.2em;\n margin-right: -0.2em;\n }\n\n @keyframes --uui-badge-bounce {\n 0% {\n transform: translateY(0);\n }\n 20% {\n transform: translateY(-6px);\n }\n 40% {\n transform: translateY(0);\n }\n 55% {\n transform: translateY(-3px);\n }\n 70% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(0);\n }\n }\n :host([attention]) {\n animation-duration: 1.4s;\n animation-iteration-count: infinite;\n animation-name: --uui-badge-bounce;\n animation-timing-function: ease;\n }\n @media (prefers-reduced-motion) {\n :host([attention]) {\n animation: none;\n }\n }\n `\n];\n__decorateClass([\n property({ reflect: true })\n], UUIBadgeElement.prototype, \"color\", 2);\n__decorateClass([\n property({ reflect: true })\n], UUIBadgeElement.prototype, \"look\", 2);\n__decorateClass([\n property({ type: Boolean, reflect: true })\n], UUIBadgeElement.prototype, \"attention\", 2);\nUUIBadgeElement = __decorateClass([\n defineElement(\"uui-badge\")\n], UUIBadgeElement);\n\nexport { UUIBadgeElement };\n","import { property, state } from 'lit/decorators.js';\nimport { html } from 'lit';\n\nvar __defProp$5 = Object.defineProperty;\nvar __decorateClass$5 = (decorators, target, key, kind) => {\n var result = void 0 ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result) __defProp$5(target, key, result);\n return result;\n};\nconst ActiveMixin = (superClass) => {\n class ActiveMixinClass extends superClass {\n constructor() {\n super(...arguments);\n this.active = false;\n }\n }\n __decorateClass$5([\n property({ type: Boolean, reflect: true })\n ], ActiveMixinClass.prototype, \"active\");\n return ActiveMixinClass;\n};\n\nvar __defProp$4 = Object.defineProperty;\nvar __decorateClass$4 = (decorators, target, key, kind) => {\n var result = void 0 ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result) __defProp$4(target, key, result);\n return result;\n};\nconst LabelMixin = (labelSlotName, superClass) => {\n class LabelMixinClass extends superClass {\n constructor() {\n super(...arguments);\n this._labelSlotHasContent = false;\n }\n connectedCallback() {\n super.connectedCallback();\n if (!this.label) {\n console.warn(this.tagName + \" needs a `label`\", this);\n }\n }\n labelSlotChanged(e) {\n this._labelSlotHasContent = e.target.assignedNodes({ flatten: true }).length > 0;\n }\n /**\n * Call in the mixed element to render the label template. It contains a slot. This is optional.\n * @method renderLabel\n * @returns {TemplateResult}\n */\n renderLabel() {\n return html`\n ${this._labelSlotHasContent === false ? html`${this.label}` : \"\"}\n \n `;\n }\n }\n __decorateClass$4([\n property({ type: String })\n ], LabelMixinClass.prototype, \"label\");\n __decorateClass$4([\n state()\n ], LabelMixinClass.prototype, \"_labelSlotHasContent\");\n return LabelMixinClass;\n};\n\nlet UUIEvent$1 = class UUIEvent extends Event {\n constructor(evName, eventInit = {}) {\n super(evName, { ...eventInit });\n this.detail = eventInit.detail || {};\n }\n};\n\nlet UUISelectableEvent$1 = class UUISelectableEvent extends UUIEvent$1 {\n constructor(evName, eventInit = {}) {\n super(evName, {\n ...{ bubbles: true, cancelable: true },\n ...eventInit\n });\n }\n};\nUUISelectableEvent$1.SELECTED = \"selected\";\nUUISelectableEvent$1.DESELECTED = \"deselected\";\n\nvar __defProp$3 = Object.defineProperty;\nvar __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;\nvar __typeError$2 = (msg) => {\n throw TypeError(msg);\n};\nvar __decorateClass$3 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp$3(target, key, result);\n return result;\n};\nvar __accessCheck$2 = (obj, member, msg) => member.has(obj) || __typeError$2(\"Cannot \" + msg);\nvar __privateGet$2 = (obj, member, getter) => (__accessCheck$2(obj, member, \"read from private field\"), getter ? getter.call(obj) : member.get(obj));\nvar __privateAdd$2 = (obj, member, value) => member.has(obj) ? __typeError$2(\"Cannot add the same private member more than once\") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\nvar __privateSet$2 = (obj, member, value, setter) => (__accessCheck$2(obj, member, \"write to private field\"), member.set(obj, value), value);\nvar __privateMethod$1 = (obj, member, method) => (__accessCheck$2(obj, member, \"access private method\"), method);\nconst SelectableMixin = (superClass) => {\n var _selectableTarget, _onKeydown, _onClick, _SelectableMixinClass_instances, toggleSelect_fn, select_fn, deselect_fn;\n class SelectableMixinClass extends superClass {\n constructor(...args) {\n super(...args);\n __privateAdd$2(this, _SelectableMixinClass_instances);\n this._selectable = false;\n this.deselectable = true;\n this.selected = false;\n __privateAdd$2(this, _selectableTarget, this);\n __privateAdd$2(this, _onKeydown, (e) => {\n if (e.code !== \"Space\" && e.code !== \"Enter\") return;\n if (e.composedPath().indexOf(__privateGet$2(this, _selectableTarget)) === 0) {\n __privateGet$2(this, _onClick).call(this, e);\n }\n });\n __privateAdd$2(this, _onClick, (e) => {\n const isSelectable = this._selectable || this.deselectable && this.selected;\n if (isSelectable === false) return;\n const composePath = e.composedPath();\n if (__privateGet$2(this, _selectableTarget) === this) {\n const isActionTag = composePath.some((el) => {\n const elementTagName = el.tagName;\n return elementTagName === \"A\" || elementTagName === \"BUTTON\" || elementTagName === \"INPUT\" || elementTagName === \"TEXTAREA\" || elementTagName === \"SELECT\";\n });\n if (isActionTag) return;\n }\n if (composePath.indexOf(__privateGet$2(this, _selectableTarget)) !== -1) {\n if (e.type === \"keydown\") {\n e.preventDefault();\n }\n __privateMethod$1(this, _SelectableMixinClass_instances, toggleSelect_fn).call(this);\n }\n });\n this.addEventListener(\"click\", __privateGet$2(this, _onClick));\n this.addEventListener(\"keydown\", __privateGet$2(this, _onKeydown));\n }\n get selectable() {\n return this._selectable;\n }\n set selectable(newVal) {\n const oldVal = this._selectable;\n if (oldVal === newVal) return;\n this._selectable = newVal;\n if (__privateGet$2(this, _selectableTarget) === this) {\n __privateGet$2(this, _selectableTarget).setAttribute(\n \"tabindex\",\n `${newVal ? \"0\" : \"-1\"}`\n );\n }\n this.requestUpdate(\"selectable\", oldVal);\n }\n get selectableTarget() {\n return __privateGet$2(this, _selectableTarget);\n }\n set selectableTarget(target) {\n const oldTarget = __privateGet$2(this, _selectableTarget);\n oldTarget.removeAttribute(\"tabindex\");\n oldTarget.removeEventListener(\"click\", __privateGet$2(this, _onClick));\n oldTarget.removeEventListener(\n \"keydown\",\n __privateGet$2(this, _onKeydown)\n );\n __privateSet$2(this, _selectableTarget, target);\n if (__privateGet$2(this, _selectableTarget) === this) {\n __privateGet$2(this, _selectableTarget).setAttribute(\n \"tabindex\",\n this._selectable ? \"0\" : \"-1\"\n );\n }\n target.addEventListener(\"click\", __privateGet$2(this, _onClick));\n target.addEventListener(\"keydown\", __privateGet$2(this, _onKeydown));\n }\n }\n _selectableTarget = new WeakMap();\n _onKeydown = new WeakMap();\n _onClick = new WeakMap();\n _SelectableMixinClass_instances = new WeakSet();\n toggleSelect_fn = function() {\n if (!this.selectable) return;\n if (this.deselectable === false) {\n __privateMethod$1(this, _SelectableMixinClass_instances, select_fn).call(this);\n } else {\n this.selected ? __privateMethod$1(this, _SelectableMixinClass_instances, deselect_fn).call(this) : __privateMethod$1(this, _SelectableMixinClass_instances, select_fn).call(this);\n }\n };\n select_fn = function() {\n if (!this.selectable) return;\n const selectEvent = new UUISelectableEvent$1(UUISelectableEvent$1.SELECTED);\n this.dispatchEvent(selectEvent);\n if (selectEvent.defaultPrevented) return;\n this.selected = true;\n };\n deselect_fn = function() {\n if (!this.deselectable) return;\n const selectEvent = new UUISelectableEvent$1(UUISelectableEvent$1.DESELECTED);\n this.dispatchEvent(selectEvent);\n if (selectEvent.defaultPrevented) return;\n this.selected = false;\n };\n __decorateClass$3([\n property({ type: Boolean, reflect: true })\n ], SelectableMixinClass.prototype, \"selectable\", 1);\n __decorateClass$3([\n property({ type: Boolean, reflect: true })\n ], SelectableMixinClass.prototype, \"selected\", 2);\n return SelectableMixinClass;\n};\n\nvar __defProp$2 = Object.defineProperty;\nvar __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$2 = (decorators, target, key, kind) => {\n var result = __getOwnPropDesc$1(target, key) ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result) __defProp$2(target, key, result);\n return result;\n};\nconst SelectOnlyMixin = (superClass) => {\n class SelectOnlyMixinClass extends superClass {\n constructor() {\n super(...arguments);\n this._selectOnly = false;\n }\n get selectOnly() {\n return this._selectOnly;\n }\n set selectOnly(newVal) {\n const oldVal = this._selectOnly;\n this._selectOnly = newVal;\n this.requestUpdate(\"selectOnly\", oldVal);\n }\n }\n __decorateClass$2([\n property({ type: Boolean, reflect: true, attribute: \"select-only\" })\n ], SelectOnlyMixinClass.prototype, \"selectOnly\");\n return SelectOnlyMixinClass;\n};\n\nclass UUIEvent extends Event {\n constructor(evName, eventInit = {}) {\n super(evName, { ...eventInit });\n this.detail = eventInit.detail || {};\n }\n}\nclass UUIFormControlEvent extends UUIEvent {\n constructor(evName, eventInit = {}) {\n super(evName, {\n ...{ bubbles: true },\n ...eventInit\n });\n }\n}\nUUIFormControlEvent.VALID = \"valid\";\nUUIFormControlEvent.INVALID = \"invalid\";\nclass UUISelectableEvent extends UUIEvent {\n constructor(evName, eventInit = {}) {\n super(evName, {\n ...{ bubbles: true, cancelable: true },\n ...eventInit\n });\n }\n}\nUUISelectableEvent.SELECTED = \"selected\";\nUUISelectableEvent.DESELECTED = \"deselected\";\n\nvar __defProp$1 = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __typeError$1 = (msg) => {\n throw TypeError(msg);\n};\nvar __decorateClass$1 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp$1(target, key, result);\n return result;\n};\nvar __accessCheck$1 = (obj, member, msg) => member.has(obj) || __typeError$1(\"Cannot \" + msg);\nvar __privateGet$1 = (obj, member, getter) => (__accessCheck$1(obj, member, \"read from private field\"), getter ? getter.call(obj) : member.get(obj));\nvar __privateAdd$1 = (obj, member, value) => member.has(obj) ? __typeError$1(\"Cannot add the same private member more than once\") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\nvar __privateSet$1 = (obj, member, value, setter) => (__accessCheck$1(obj, member, \"write to private field\"), member.set(obj, value), value);\nvar __privateMethod = (obj, member, method) => (__accessCheck$1(obj, member, \"access private method\"), method);\nconst WeightedErrorFlagTypes = [\n \"customError\",\n \"valueMissing\",\n \"badInput\",\n \"typeMismatch\",\n \"patternMismatch\",\n \"rangeOverflow\",\n \"rangeUnderflow\",\n \"stepMismatch\",\n \"tooLong\",\n \"tooShort\"\n];\nconst UUIFormControlMixin = (superClass, defaultValue) => {\n var _validity, _value, _form, _validators, _formCtrlElements, _UUIFormControlMixinClass_instances, removeFormListeners_fn, dispatchValidationState_fn, _onFormSubmit;\n class UUIFormControlMixinClass extends superClass {\n constructor(...args) {\n super(...args);\n __privateAdd$1(this, _UUIFormControlMixinClass_instances);\n this.name = \"\";\n // Validation\n __privateAdd$1(this, _validity, {});\n // Will be set to true instantly to trigger the setAttribute in the setter.\n // This is to prevent an issue caused by using setAttribute in the constructor.\n this._pristine = false;\n this.required = false;\n this.requiredMessage = \"This field is required\";\n this.error = false;\n this.errorMessage = \"This field is invalid\";\n __privateAdd$1(this, _value, defaultValue);\n __privateAdd$1(this, _form, null);\n __privateAdd$1(this, _validators, []);\n __privateAdd$1(this, _formCtrlElements, []);\n __privateAdd$1(this, _onFormSubmit, () => {\n this.pristine = false;\n });\n this._internals = this.attachInternals();\n this.pristine = true;\n this.addValidator(\n \"valueMissing\",\n () => this.requiredMessage,\n () => this.hasAttribute(\"required\") && this.hasValue() === false\n );\n this.addValidator(\n \"customError\",\n () => this.errorMessage,\n () => this.error\n );\n this.addEventListener(\"blur\", () => {\n this.pristine = false;\n this.checkValidity();\n });\n }\n // Do not 'reflect' as the attribute is used as fallback.\n get value() {\n return __privateGet$1(this, _value);\n }\n set value(newValue) {\n const oldValue = __privateGet$1(this, _value);\n __privateSet$1(this, _value, newValue);\n if (\"ElementInternals\" in window && \"setFormValue\" in window.ElementInternals.prototype) {\n this._internals.setFormValue(__privateGet$1(this, _value) ?? null);\n }\n this.requestUpdate(\"value\", oldValue);\n }\n set pristine(value) {\n if (this._pristine !== value) {\n this._pristine = value;\n if (value) {\n this.setAttribute(\"pristine\", \"\");\n } else {\n this.removeAttribute(\"pristine\");\n }\n __privateMethod(this, _UUIFormControlMixinClass_instances, dispatchValidationState_fn).call(this);\n }\n }\n get pristine() {\n return this._pristine;\n }\n /**\n * Determine wether this FormControl has a value.\n * @method hasValue\n * @returns {boolean}\n */\n hasValue() {\n return this.value !== this.getDefaultValue();\n }\n /**\n * Focus first element that is invalid.\n * @method focusFirstInvalidElement\n * @returns {HTMLElement | undefined}\n */\n focusFirstInvalidElement() {\n const firstInvalid = __privateGet$1(this, _formCtrlElements).find(\n (el) => el.validity.valid === false\n );\n if (firstInvalid) {\n if (\"focusFirstInvalidElement\" in firstInvalid) {\n firstInvalid.focusFirstInvalidElement();\n } else {\n firstInvalid.focus();\n }\n } else {\n this.focus();\n }\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n __privateMethod(this, _UUIFormControlMixinClass_instances, removeFormListeners_fn).call(this);\n }\n /**\n * Add validator, to validate this Form Control.\n * See https://developer.mozilla.org/en-US/docs/Web/API/ValidityState for available Validator FlagTypes.\n *\n * @example\n * this.addValidator(\n * 'tooLong',\n * () => 'This input contains too many characters',\n * () => this._value.length > 10\n * );\n * @method hasValue\n * @param {FlagTypes} flagKey the type of validation.\n * @param {method} getMessageMethod method to retrieve relevant message. Is executed every time the validator is re-executed.\n * @param {method} checkMethod method to determine if this validator should invalidate this form control. Return true if this should prevent submission.\n */\n addValidator(flagKey, getMessageMethod, checkMethod) {\n const validator = {\n flagKey,\n getMessageMethod,\n checkMethod,\n weight: WeightedErrorFlagTypes.indexOf(flagKey)\n };\n __privateGet$1(this, _validators).push(validator);\n __privateGet$1(this, _validators).sort(\n (a, b) => a.weight > b.weight ? 1 : b.weight > a.weight ? -1 : 0\n );\n return validator;\n }\n removeValidator(validator) {\n const index = __privateGet$1(this, _validators).indexOf(validator);\n if (index !== -1) {\n __privateGet$1(this, _validators).splice(index, 1);\n }\n }\n /**\n * @method addFormControlElement\n * @description Important notice if adding a native form control then ensure that its value and thereby validity is updated when value is changed from the outside.\n * @param element {NativeFormControlElement} - element to validate and include as part of this form association.\n */\n addFormControlElement(element) {\n __privateGet$1(this, _formCtrlElements).push(element);\n element.addEventListener(UUIFormControlEvent.INVALID, () => {\n this._runValidators();\n });\n element.addEventListener(UUIFormControlEvent.VALID, () => {\n this._runValidators();\n });\n if (this._pristine === false) {\n element.checkValidity();\n this._runValidators();\n }\n }\n /**\n * @method setCustomValidity\n * @description Set custom validity state, set to empty string to remove the custom message.\n * @param message {string} - The message to be shown\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/setCustomValidity|HTMLObjectElement:setCustomValidity}\n */\n setCustomValidity(message) {\n if (this._customValidityObject) {\n this.removeValidator(this._customValidityObject);\n }\n if (message != null && message !== \"\") {\n this._customValidityObject = this.addValidator(\n \"customError\",\n () => message,\n () => true\n );\n }\n this._runValidators();\n }\n /**\n * @protected\n * @method _runValidators\n * @description Run all validators and set the validityState of this form control.\n * Run this method when you want to re-run all validators.\n * This can be relevant if you have a validators that is using values that is not triggering the Lit Updated Callback.\n * Such are mainly properties that are not declared as a Lit state and or Lit property.\n */\n _runValidators() {\n __privateSet$1(this, _validity, {});\n let message = void 0;\n let innerFormControlEl = void 0;\n __privateGet$1(this, _validators).some((validator) => {\n if (validator.checkMethod()) {\n __privateGet$1(this, _validity)[validator.flagKey] = true;\n message = validator.getMessageMethod();\n return true;\n }\n return false;\n });\n if (!message) {\n __privateGet$1(this, _formCtrlElements).some((formCtrlEl) => {\n let key;\n for (key in formCtrlEl.validity) {\n if (key !== \"valid\" && formCtrlEl.validity[key]) {\n __privateGet$1(this, _validity)[key] = true;\n message = formCtrlEl.validationMessage;\n innerFormControlEl ?? (innerFormControlEl = formCtrlEl);\n return true;\n }\n }\n return false;\n });\n }\n const hasError = Object.values(__privateGet$1(this, _validity)).includes(true);\n __privateGet$1(this, _validity).valid = !hasError;\n this._internals.setValidity(\n __privateGet$1(this, _validity),\n // Turn messages into an array and join them with a comma. [NL]:\n //[...messages].join(', '),\n message,\n innerFormControlEl ?? this.getFormElement() ?? void 0\n );\n __privateMethod(this, _UUIFormControlMixinClass_instances, dispatchValidationState_fn).call(this);\n }\n updated(changedProperties) {\n super.updated(changedProperties);\n this._runValidators();\n }\n submit() {\n __privateGet$1(this, _form)?.requestSubmit();\n }\n formAssociatedCallback() {\n __privateMethod(this, _UUIFormControlMixinClass_instances, removeFormListeners_fn).call(this);\n __privateSet$1(this, _form, this._internals.form);\n if (__privateGet$1(this, _form)) {\n if (__privateGet$1(this, _form).hasAttribute(\"submit-invalid\")) {\n this.pristine = false;\n }\n __privateGet$1(this, _form).addEventListener(\"submit\", __privateGet$1(this, _onFormSubmit));\n }\n }\n formResetCallback() {\n this.pristine = true;\n this.value = this.getInitialValue() ?? this.getDefaultValue();\n }\n getDefaultValue() {\n return defaultValue;\n }\n getInitialValue() {\n return this.getAttribute(\"value\");\n }\n checkValidity() {\n this.pristine = false;\n this._runValidators();\n for (const key in __privateGet$1(this, _formCtrlElements)) {\n if (__privateGet$1(this, _formCtrlElements)[key].checkValidity() === false) {\n return false;\n }\n }\n return this._internals?.checkValidity();\n }\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity\n get validity() {\n return __privateGet$1(this, _validity);\n }\n get validationMessage() {\n return this._internals?.validationMessage;\n }\n }\n _validity = new WeakMap();\n _value = new WeakMap();\n _form = new WeakMap();\n _validators = new WeakMap();\n _formCtrlElements = new WeakMap();\n _UUIFormControlMixinClass_instances = new WeakSet();\n removeFormListeners_fn = function() {\n if (__privateGet$1(this, _form)) {\n __privateGet$1(this, _form).removeEventListener(\"submit\", __privateGet$1(this, _onFormSubmit));\n }\n };\n dispatchValidationState_fn = function() {\n if (this._pristine === true) return;\n if (__privateGet$1(this, _validity).valid) {\n this.dispatchEvent(new UUIFormControlEvent(UUIFormControlEvent.VALID));\n } else {\n this.dispatchEvent(\n new UUIFormControlEvent(UUIFormControlEvent.INVALID)\n );\n }\n };\n _onFormSubmit = new WeakMap();\n /**\n * This is a static class field indicating that the element is can be used inside a native form and participate in its events.\n * It may require a polyfill, check support here https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals.\n * Read more about form controls here https://web.dev/more-capable-form-controls/\n * @type {boolean}\n */\n UUIFormControlMixinClass.formAssociated = true;\n __decorateClass$1([\n property({ type: String })\n ], UUIFormControlMixinClass.prototype, \"name\", 2);\n __decorateClass$1([\n property()\n ], UUIFormControlMixinClass.prototype, \"value\", 1);\n __decorateClass$1([\n property({ type: Boolean, reflect: true, attribute: \"pristine\" })\n ], UUIFormControlMixinClass.prototype, \"pristine\", 1);\n __decorateClass$1([\n property({ type: Boolean, reflect: true })\n ], UUIFormControlMixinClass.prototype, \"required\", 2);\n __decorateClass$1([\n property({ type: String, attribute: \"required-message\" })\n ], UUIFormControlMixinClass.prototype, \"requiredMessage\", 2);\n __decorateClass$1([\n property({ type: Boolean, reflect: true })\n ], UUIFormControlMixinClass.prototype, \"error\", 2);\n __decorateClass$1([\n property({ type: String, attribute: \"error-message\" })\n ], UUIFormControlMixinClass.prototype, \"errorMessage\", 2);\n return UUIFormControlMixinClass;\n};\n\nconst findAncestorByAttributeValue = (startNode, attributeName, attributeValue) => {\n let currentNode = startNode;\n while (currentNode !== null) {\n const elementHasAttribute = currentNode instanceof HTMLElement && currentNode.hasAttribute(attributeName) && currentNode.getAttribute(attributeName) === attributeValue;\n const elementContainsAttribute = currentNode.querySelector(`[${attributeName}=\"${attributeValue}\"]`) !== null;\n if (elementHasAttribute) {\n return currentNode;\n } else if (elementContainsAttribute) {\n return currentNode.querySelector(\n `[${attributeName}=\"${attributeValue}\"]`\n );\n }\n currentNode = currentNode.parentElement || currentNode.parentNode || currentNode.host || null;\n }\n return null;\n};\n\nvar __defProp = Object.defineProperty;\nvar __typeError = (msg) => {\n throw TypeError(msg);\n};\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = void 0 ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result) __defProp(target, key, result);\n return result;\n};\nvar __accessCheck = (obj, member, msg) => member.has(obj) || __typeError(\"Cannot \" + msg);\nvar __privateGet = (obj, member, getter) => (__accessCheck(obj, member, \"read from private field\"), member.get(obj));\nvar __privateAdd = (obj, member, value) => member.has(obj) ? __typeError(\"Cannot add the same private member more than once\") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\nvar __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, \"write to private field\"), member.set(obj, value), value);\nconst PopoverTargetMixin = (superClass) => {\n var _popoverIsOpen, _popoverListener;\n class PopoverTargetMixinClass extends superClass {\n constructor(...args) {\n super(...args);\n __privateAdd(this, _popoverIsOpen, false);\n this._togglePopover = () => {\n if (!this.popoverContainerElement) return;\n const popoverContainerElement = findAncestorByAttributeValue(\n this,\n \"id\",\n this.popoverContainerElement\n );\n if (!popoverContainerElement) return;\n __privateGet(this, _popoverIsOpen) ? (\n // @ts-ignore - This is part of the new popover API, but typescript doesn't recognize it yet.\n popoverContainerElement.hidePopover()\n ) : (\n // @ts-ignore - This is part of the new popover API, but typescript doesn't recognize it yet.\n popoverContainerElement.showPopover()\n );\n };\n __privateAdd(this, _popoverListener, (event) => {\n requestAnimationFrame(() => {\n __privateSet(this, _popoverIsOpen, event.detail.newState === \"open\");\n });\n });\n this.addEventListener(\"uui-popover-before-toggle\", __privateGet(this, _popoverListener));\n }\n }\n _popoverIsOpen = new WeakMap();\n _popoverListener = new WeakMap();\n __decorateClass([\n property({ type: String, attribute: \"popovertarget\" })\n ], PopoverTargetMixinClass.prototype, \"popoverContainerElement\");\n return PopoverTargetMixinClass;\n};\n\nexport { ActiveMixin, LabelMixin, PopoverTargetMixin, SelectOnlyMixin, SelectableMixin, UUIFormControlMixin };\n","class UUIEvent extends Event {\n constructor(evName, eventInit = {}) {\n super(evName, { ...eventInit });\n this.detail = eventInit.detail || {};\n }\n}\n\nclass UUIFormControlEvent extends UUIEvent {\n constructor(evName, eventInit = {}) {\n super(evName, {\n ...{ bubbles: true },\n ...eventInit\n });\n }\n}\nUUIFormControlEvent.VALID = \"valid\";\nUUIFormControlEvent.INVALID = \"invalid\";\n\nclass UUISelectableEvent extends UUIEvent {\n constructor(evName, eventInit = {}) {\n super(evName, {\n ...{ bubbles: true, cancelable: true },\n ...eventInit\n });\n }\n}\nUUISelectableEvent.SELECTED = \"selected\";\nUUISelectableEvent.DESELECTED = \"deselected\";\n\nexport { UUIEvent, UUIFormControlEvent, UUISelectableEvent };\n","import { UUIFormControlMixin, LabelMixin } from '@umbraco-ui/uui-base/lib/mixins';\nimport { LitElement, html, css } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { UUIEvent } from '@umbraco-ui/uui-base/lib/events';\n\nclass UUIBooleanInputEvent extends UUIEvent {\n constructor(evName, eventInit = {}) {\n super(evName, {\n ...{ bubbles: true },\n ...eventInit\n });\n }\n}\nUUIBooleanInputEvent.CHANGE = \"change\";\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __typeError = (msg) => {\n throw TypeError(msg);\n};\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nvar __accessCheck = (obj, member, msg) => member.has(obj) || __typeError(\"Cannot \" + msg);\nvar __privateAdd = (obj, member, value) => member.has(obj) ? __typeError(\"Cannot add the same private member more than once\") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\nvar __privateMethod = (obj, member, method) => (__accessCheck(obj, member, \"access private method\"), method);\nvar _UUIBooleanInputElement_instances, onKeyDown_fn;\nclass UUIBooleanInputElement extends UUIFormControlMixin(\n LabelMixin(\"\", LitElement),\n \"\"\n) {\n constructor(inputRole = \"checkbox\") {\n super();\n __privateAdd(this, _UUIBooleanInputElement_instances);\n this._value = \"\";\n this.labelPosition = \"right\";\n this._checked = false;\n this.indeterminate = false;\n this.disabled = false;\n this.readonly = false;\n if (this._value === \"\") {\n this._value = \"on\";\n }\n this.inputRole = inputRole;\n this.addEventListener(\"keydown\", __privateMethod(this, _UUIBooleanInputElement_instances, onKeyDown_fn));\n }\n /** intentional overwrite of FormControlMixins value getter and setter method. */\n get value() {\n return this._value;\n }\n set value(newVal) {\n const oldValue = super.value;\n this._value = newVal;\n if (\"ElementInternals\" in window && //@ts-ignore\n \"setFormValue\" in window.ElementInternals.prototype) {\n this._internals.setFormValue(\n this._checked && this.name !== \"\" ? this._value : null\n );\n }\n this.requestUpdate(\"value\", oldValue);\n }\n // Do not 'reflect' as the attribute is used as fallback.\n get checked() {\n return this._checked;\n }\n set checked(newVal) {\n const oldValue = this._checked;\n this._checked = newVal;\n this._internals.setFormValue(\n this._checked && this.name !== \"\" ? this._value ? this._value : \"on\" : null\n );\n this.requestUpdate(\"checked\", oldValue);\n }\n getFormElement() {\n return this._input;\n }\n hasValue() {\n return this.checked;\n }\n formResetCallback() {\n super.formResetCallback();\n this.checked = this.hasAttribute(\"checked\");\n }\n firstUpdated(_changedProperties) {\n super.firstUpdated(_changedProperties);\n const labelEl = this.shadowRoot?.querySelector(\"label\");\n let hadMouseDown = false;\n this._input.addEventListener(\"blur\", () => {\n if (hadMouseDown === false) {\n this.style.setProperty(\"--uui-show-focus-outline\", \"1\");\n }\n hadMouseDown = false;\n });\n labelEl.addEventListener(\"mousedown\", () => {\n this.style.setProperty(\"--uui-show-focus-outline\", \"0\");\n hadMouseDown = true;\n });\n labelEl.addEventListener(\"mouseup\", () => {\n hadMouseDown = false;\n });\n }\n /**\n * This method enables `;\n }\n};\nUUIRefNodeMemberElement.styles = [...UUIRefNodeElement.styles];\n__decorateClass([\n property({ type: String, attribute: \"group-name\" })\n], UUIRefNodeMemberElement.prototype, \"groupName\", 2);\nUUIRefNodeMemberElement = __decorateClass([\n defineElement(\"uui-ref-node-member\")\n], UUIRefNodeMemberElement);\n\nexport { UUIRefNodeMemberElement };\n","import { UUIRefNodeElement } from '@umbraco-ui/uui-ref-node/lib';\nimport { defineElement } from '@umbraco-ui/uui-base/lib/registration';\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nlet UUIRefNodePackageElement = class extends UUIRefNodeElement {\n constructor() {\n super(...arguments);\n this.fallbackIcon = '';\n this.version = \"\";\n this.author = \"\";\n }\n renderDetail() {\n const details = [];\n if (this.detail !== \"\") {\n details.push(this.detail);\n }\n if (this.version !== \"\") {\n details.push(this.version);\n }\n if (this.author !== \"\") {\n details.push(this.author);\n }\n return html`${details.join(\" | \")}`;\n }\n};\nUUIRefNodePackageElement.styles = [...UUIRefNodeElement.styles];\n__decorateClass([\n property({ type: String })\n], UUIRefNodePackageElement.prototype, \"version\", 2);\n__decorateClass([\n property({ type: String })\n], UUIRefNodePackageElement.prototype, \"author\", 2);\nUUIRefNodePackageElement = __decorateClass([\n defineElement(\"uui-ref-node-package\")\n], UUIRefNodePackageElement);\n\nexport { UUIRefNodePackageElement };\n","import { UUIRefNodeElement } from '@umbraco-ui/uui-ref-node/lib';\nimport { defineElement } from '@umbraco-ui/uui-base/lib/registration';\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nlet UUIRefNodeUserElement = class extends UUIRefNodeElement {\n constructor() {\n super(...arguments);\n this.fallbackIcon = '';\n this.groupName = \"\";\n }\n renderDetail() {\n const details = [];\n if (this.detail !== \"\") {\n details.push(this.detail);\n }\n if (this.groupName !== \"\") {\n details.push(this.groupName);\n }\n return html`${details.join(\" | \")}`;\n }\n};\nUUIRefNodeUserElement.styles = [...UUIRefNodeElement.styles];\n__decorateClass([\n property({ type: String, attribute: \"group-name\" })\n], UUIRefNodeUserElement.prototype, \"groupName\", 2);\nUUIRefNodeUserElement = __decorateClass([\n defineElement(\"uui-ref-node-user\")\n], UUIRefNodeUserElement);\n\nexport { UUIRefNodeUserElement };\n","import { defineElement } from '@umbraco-ui/uui-base/lib/registration';\nimport { LitElement, html, css } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nlet UUIScrollContainerElement = class extends LitElement {\n constructor() {\n super(...arguments);\n this.enforceScroll = false;\n }\n connectedCallback() {\n super.connectedCallback();\n if (!this.hasAttribute(\"tabindex\")) {\n this.setAttribute(\"tabindex\", \"0\");\n }\n }\n render() {\n return html``;\n }\n};\nUUIScrollContainerElement.styles = [\n css`\n :host {\n display: block;\n scrollbar-width: thin;\n scrollbar-color: var(--uui-color-disabled-contrast,#c4c4c4)\n var(--uui-color-surface,#fff);\n overflow-y: auto;\n }\n\n :host([enforce-scroll]) {\n overflow-y: scroll;\n }\n\n :host::-webkit-scrollbar {\n width: 6px;\n height: 6px; /* needed for horizontal scrollbar */\n }\n\n :host::-webkit-scrollbar-track {\n background: var(--uui-color-surface,#fff);\n border-radius: 3px;\n }\n :host::-webkit-scrollbar-thumb {\n background-color: var(--uui-color-disabled-contrast,#c4c4c4);\n border-radius: 3px;\n }\n `\n];\n__decorateClass([\n property({ type: Boolean, reflect: true, attribute: \"enforce-scroll\" })\n], UUIScrollContainerElement.prototype, \"enforceScroll\", 2);\nUUIScrollContainerElement = __decorateClass([\n defineElement(\"uui-scroll-container\")\n], UUIScrollContainerElement);\n\nexport { UUIScrollContainerElement };\n","import { UUIFormControlMixin } from '@umbraco-ui/uui-base/lib/mixins';\nimport { defineElement } from '@umbraco-ui/uui-base/lib/registration';\nimport { LitElement, html, nothing, css } from 'lit';\nimport { property, state, query } from 'lit/decorators.js';\nimport { UUIEvent } from '@umbraco-ui/uui-base/lib/events';\n\nclass UUISelectEvent extends UUIEvent {\n constructor(evName, eventInit = {}) {\n super(evName, {\n ...{ bubbles: true },\n ...eventInit\n });\n }\n}\nUUISelectEvent.CHANGE = \"change\";\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nlet UUISelectElement = class extends UUIFormControlMixin(LitElement, \"\") {\n constructor() {\n super();\n this.placeholder = \"\";\n this.disabled = false;\n this.readonly = false;\n this.error = false;\n this.options = [];\n this._groups = [];\n this.disabledGroups = \"\";\n this._disabledGroups = [];\n this._values = [];\n this.addEventListener(\"mousedown\", () => {\n this.style.setProperty(\"--uui-show-focus-outline\", \"0\");\n });\n this.addEventListener(\"blur\", () => {\n this.style.setProperty(\"--uui-show-focus-outline\", \"\");\n });\n }\n /**\n * This method enables