@fluid-topics/ft-filterable-table 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);f(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,p),p.standInClass=c);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)s.delete(t),u(t,p,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},h=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):h(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=t;try{new e.elementClass}catch(t){h(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(At){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);f(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,p),p.standInClass=c);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)s.delete(t),u(t,p,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},h=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):h(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=t;try{new e.elementClass}catch(t){h(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(At){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -45,12 +45,12 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),f=new WeakMap;class h{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&f.set(e,t))}return t}toString(){return this.cssText}}const u=t=>new h("string"==typeof t?t:t+"",void 0,d),b=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>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.")})(i)+t[o+1]),t[0]);return new h(i,t,d)},x=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},v=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return u(e)})(t):t
48
+ const c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),f=new WeakMap;class h{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&f.set(e,t))}return t}toString(){return this.cssText}}const u=t=>new h("string"==typeof t?t:t+"",void 0,d),b=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>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.")})(i)+t[o+1]),t[0]);return new h(i,t,d)},v=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return u(e)})(t):t
49
49
  /**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */;var y;const g=window.trustedTypes,m=g?g.emptyScript:"",$=window.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){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 e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(e,this.constructor.elementStyles),e}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 e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=S){var o,n;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:w.toAttribute)(e,i.type);this._$El=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$El=null}}_$AK(t,e){var i,o;const n=this.constructor,s=n._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=n.getPropertyOptions(s),r=t.converter,l=null!==(o=null!==(i=null==r?void 0:r.fromAttribute)&&void 0!==i?i:"function"==typeof r?r:null)&&void 0!==o?o:w.fromAttribute;this._$El=s,this[s]=l(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(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,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.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,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
53
+ */;var y;const g=window.trustedTypes,m=g?g.emptyScript:"",$=window.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){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 e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return v(e,this.constructor.elementStyles),e}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 e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=S){var o,n;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:w.toAttribute)(e,i.type);this._$El=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$El=null}}_$AK(t,e){var i,o;const n=this.constructor,s=n._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=n.getPropertyOptions(s),r=t.converter,l=null!==(o=null!==(i=null==r?void 0:r.fromAttribute)&&void 0!==i?i:"function"==typeof r?r:null)&&void 0!==o?o:w.fromAttribute;this._$El=s,this[s]=l(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(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,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.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,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
54
54
  /**
55
55
  * @license
56
56
  * Copyright 2017 Google LLC
@@ -67,12 +67,12 @@ var at,pt;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
67
67
  * @license
68
68
  * Copyright 2021 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */var bt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class xt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(n,this.constructor.elementStyles),n}}}(ct)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),W`
70
+ */var bt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class vt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return v(n,this.constructor.elementStyles),n}}}(ct)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),W`
71
71
  ${t.map((t=>W`
72
72
  <style>${t}</style>
73
73
  `))}
74
74
  ${this.getTemplate()}
75
- `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,n,s,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}bt([o()],xt.prototype,"exportpartsPrefix",void 0),bt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0);const vt=b`
75
+ `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,n,s,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}bt([o()],vt.prototype,"exportpartsPrefix",void 0),bt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],vt.prototype,"exportpartsPrefixes",void 0);const xt=b`
76
76
  .ft-no-text-select {
77
77
  -webkit-touch-callout: none;
78
78
  -webkit-user-select: none;
@@ -107,7 +107,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
107
107
  * @license
108
108
  * Copyright 2018 Google LLC
109
109
  * SPDX-License-Identifier: BSD-3-Clause
110
- */var _t,Ht=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(_t||(_t={}));const Wt=ft.extend("--ft-typography-font-family",ut.titleFont),Zt=ft.extend("--ft-typography-font-family",ut.contentFont),Kt={fontFamily:Zt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Vt=ft.extend("--ft-typography-title-font-family",Wt),Jt=ft.extend("--ft-typography-title-font-size",Kt.fontSize,"20px"),qt=ft.extend("--ft-typography-title-font-weight",Kt.fontWeight,"normal"),Xt=ft.extend("--ft-typography-title-letter-spacing",Kt.letterSpacing,"0.15px"),Yt=ft.extend("--ft-typography-title-line-height",Kt.lineHeight,"1.2"),Gt=ft.extend("--ft-typography-title-text-transform",Kt.textTransform,"inherit"),Qt=ft.extend("--ft-typography-title-dense-font-family",Wt),te=ft.extend("--ft-typography-title-dense-font-size",Kt.fontSize,"14px"),ee=ft.extend("--ft-typography-title-dense-font-weight",Kt.fontWeight,"normal"),ie=ft.extend("--ft-typography-title-dense-letter-spacing",Kt.letterSpacing,"0.105px"),oe=ft.extend("--ft-typography-title-dense-line-height",Kt.lineHeight,"1.7"),ne=ft.extend("--ft-typography-title-dense-text-transform",Kt.textTransform,"inherit"),se=ft.extend("--ft-typography-subtitle1-font-family",Zt),re=ft.extend("--ft-typography-subtitle1-font-size",Kt.fontSize,"16px"),le=ft.extend("--ft-typography-subtitle1-font-weight",Kt.fontWeight,"600"),ae=ft.extend("--ft-typography-subtitle1-letter-spacing",Kt.letterSpacing,"0.144px"),pe=ft.extend("--ft-typography-subtitle1-line-height",Kt.lineHeight,"1.5"),ce=ft.extend("--ft-typography-subtitle1-text-transform",Kt.textTransform,"inherit"),de=ft.extend("--ft-typography-subtitle2-font-family",Zt),fe=ft.extend("--ft-typography-subtitle2-font-size",Kt.fontSize,"14px"),he=ft.extend("--ft-typography-subtitle2-font-weight",Kt.fontWeight,"normal"),ue=ft.extend("--ft-typography-subtitle2-letter-spacing",Kt.letterSpacing,"0.098px"),be=ft.extend("--ft-typography-subtitle2-line-height",Kt.lineHeight,"1.7"),xe=ft.extend("--ft-typography-subtitle2-text-transform",Kt.textTransform,"inherit"),ve={fontFamily:ft.extend("--ft-typography-body1-font-family",Zt),fontSize:ft.extend("--ft-typography-body1-font-size",Kt.fontSize,"16px"),fontWeight:ft.extend("--ft-typography-body1-font-weight",Kt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-body1-letter-spacing",Kt.letterSpacing,"0.496px"),lineHeight:ft.extend("--ft-typography-body1-line-height",Kt.lineHeight,"1.5"),textTransform:ft.extend("--ft-typography-body1-text-transform",Kt.textTransform,"inherit")},ye=ft.extend("--ft-typography-body2-font-family",Zt),ge=ft.extend("--ft-typography-body2-font-size",Kt.fontSize,"14px"),me=ft.extend("--ft-typography-body2-font-weight",Kt.fontWeight,"normal"),$e=ft.extend("--ft-typography-body2-letter-spacing",Kt.letterSpacing,"0.252px"),we=ft.extend("--ft-typography-body2-line-height",Kt.lineHeight,"1.4"),Oe=ft.extend("--ft-typography-body2-text-transform",Kt.textTransform,"inherit"),Se={fontFamily:ft.extend("--ft-typography-caption-font-family",Zt),fontSize:ft.extend("--ft-typography-caption-font-size",Kt.fontSize,"12px"),fontWeight:ft.extend("--ft-typography-caption-font-weight",Kt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-caption-letter-spacing",Kt.letterSpacing,"0.396px"),lineHeight:ft.extend("--ft-typography-caption-line-height",Kt.lineHeight,"1.33"),textTransform:ft.extend("--ft-typography-caption-text-transform",Kt.textTransform,"inherit")},ke=ft.extend("--ft-typography-breadcrumb-font-family",Zt),Ce=ft.extend("--ft-typography-breadcrumb-font-size",Kt.fontSize,"10px"),Ee=ft.extend("--ft-typography-breadcrumb-font-weight",Kt.fontWeight,"normal"),Ne=ft.extend("--ft-typography-breadcrumb-letter-spacing",Kt.letterSpacing,"0.33px"),Re=ft.extend("--ft-typography-breadcrumb-line-height",Kt.lineHeight,"1.6"),ze=ft.extend("--ft-typography-breadcrumb-text-transform",Kt.textTransform,"inherit"),Me=ft.extend("--ft-typography-overline-font-family",Zt),Fe=ft.extend("--ft-typography-overline-font-size",Kt.fontSize,"10px"),Ue=ft.extend("--ft-typography-overline-font-weight",Kt.fontWeight,"normal"),Be=ft.extend("--ft-typography-overline-letter-spacing",Kt.letterSpacing,"1.5px"),De=ft.extend("--ft-typography-overline-line-height",Kt.lineHeight,"1.6"),je=ft.extend("--ft-typography-overline-text-transform",Kt.textTransform,"uppercase"),Ae={fontFamily:ft.extend("--ft-typography-button-font-family",Zt),fontSize:ft.extend("--ft-typography-button-font-size",Kt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-button-font-weight",Kt.fontWeight,"600"),letterSpacing:ft.extend("--ft-typography-button-letter-spacing",Kt.letterSpacing,"1.246px"),lineHeight:ft.extend("--ft-typography-button-line-height",Kt.lineHeight,"1.15"),textTransform:ft.extend("--ft-typography-button-text-transform",Kt.textTransform,"uppercase")},Te=b`
110
+ */var _t,Ht=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(_t||(_t={}));const Wt=ft.extend("--ft-typography-font-family",ut.titleFont),Zt=ft.extend("--ft-typography-font-family",ut.contentFont),Kt={fontFamily:Zt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Vt=ft.extend("--ft-typography-title-font-family",Wt),Jt=ft.extend("--ft-typography-title-font-size",Kt.fontSize,"20px"),qt=ft.extend("--ft-typography-title-font-weight",Kt.fontWeight,"normal"),Xt=ft.extend("--ft-typography-title-letter-spacing",Kt.letterSpacing,"0.15px"),Yt=ft.extend("--ft-typography-title-line-height",Kt.lineHeight,"1.2"),Gt=ft.extend("--ft-typography-title-text-transform",Kt.textTransform,"inherit"),Qt=ft.extend("--ft-typography-title-dense-font-family",Wt),te=ft.extend("--ft-typography-title-dense-font-size",Kt.fontSize,"14px"),ee=ft.extend("--ft-typography-title-dense-font-weight",Kt.fontWeight,"normal"),ie=ft.extend("--ft-typography-title-dense-letter-spacing",Kt.letterSpacing,"0.105px"),oe=ft.extend("--ft-typography-title-dense-line-height",Kt.lineHeight,"1.7"),ne=ft.extend("--ft-typography-title-dense-text-transform",Kt.textTransform,"inherit"),se=ft.extend("--ft-typography-subtitle1-font-family",Zt),re=ft.extend("--ft-typography-subtitle1-font-size",Kt.fontSize,"16px"),le=ft.extend("--ft-typography-subtitle1-font-weight",Kt.fontWeight,"600"),ae=ft.extend("--ft-typography-subtitle1-letter-spacing",Kt.letterSpacing,"0.144px"),pe=ft.extend("--ft-typography-subtitle1-line-height",Kt.lineHeight,"1.5"),ce=ft.extend("--ft-typography-subtitle1-text-transform",Kt.textTransform,"inherit"),de=ft.extend("--ft-typography-subtitle2-font-family",Zt),fe=ft.extend("--ft-typography-subtitle2-font-size",Kt.fontSize,"14px"),he=ft.extend("--ft-typography-subtitle2-font-weight",Kt.fontWeight,"normal"),ue=ft.extend("--ft-typography-subtitle2-letter-spacing",Kt.letterSpacing,"0.098px"),be=ft.extend("--ft-typography-subtitle2-line-height",Kt.lineHeight,"1.7"),ve=ft.extend("--ft-typography-subtitle2-text-transform",Kt.textTransform,"inherit"),xe={fontFamily:ft.extend("--ft-typography-body1-font-family",Zt),fontSize:ft.extend("--ft-typography-body1-font-size",Kt.fontSize,"16px"),fontWeight:ft.extend("--ft-typography-body1-font-weight",Kt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-body1-letter-spacing",Kt.letterSpacing,"0.496px"),lineHeight:ft.extend("--ft-typography-body1-line-height",Kt.lineHeight,"1.5"),textTransform:ft.extend("--ft-typography-body1-text-transform",Kt.textTransform,"inherit")},ye=ft.extend("--ft-typography-body2-font-family",Zt),ge=ft.extend("--ft-typography-body2-font-size",Kt.fontSize,"14px"),me=ft.extend("--ft-typography-body2-font-weight",Kt.fontWeight,"normal"),$e=ft.extend("--ft-typography-body2-letter-spacing",Kt.letterSpacing,"0.252px"),we=ft.extend("--ft-typography-body2-line-height",Kt.lineHeight,"1.4"),Oe=ft.extend("--ft-typography-body2-text-transform",Kt.textTransform,"inherit"),Se={fontFamily:ft.extend("--ft-typography-caption-font-family",Zt),fontSize:ft.extend("--ft-typography-caption-font-size",Kt.fontSize,"12px"),fontWeight:ft.extend("--ft-typography-caption-font-weight",Kt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-caption-letter-spacing",Kt.letterSpacing,"0.396px"),lineHeight:ft.extend("--ft-typography-caption-line-height",Kt.lineHeight,"1.33"),textTransform:ft.extend("--ft-typography-caption-text-transform",Kt.textTransform,"inherit")},ke=ft.extend("--ft-typography-breadcrumb-font-family",Zt),Ce=ft.extend("--ft-typography-breadcrumb-font-size",Kt.fontSize,"10px"),Ee=ft.extend("--ft-typography-breadcrumb-font-weight",Kt.fontWeight,"normal"),Ne=ft.extend("--ft-typography-breadcrumb-letter-spacing",Kt.letterSpacing,"0.33px"),Re=ft.extend("--ft-typography-breadcrumb-line-height",Kt.lineHeight,"1.6"),ze=ft.extend("--ft-typography-breadcrumb-text-transform",Kt.textTransform,"inherit"),Me=ft.extend("--ft-typography-overline-font-family",Zt),Fe=ft.extend("--ft-typography-overline-font-size",Kt.fontSize,"10px"),Ue=ft.extend("--ft-typography-overline-font-weight",Kt.fontWeight,"normal"),Be=ft.extend("--ft-typography-overline-letter-spacing",Kt.letterSpacing,"1.5px"),De=ft.extend("--ft-typography-overline-line-height",Kt.lineHeight,"1.6"),je=ft.extend("--ft-typography-overline-text-transform",Kt.textTransform,"uppercase"),Ae={fontFamily:ft.extend("--ft-typography-button-font-family",Zt),fontSize:ft.extend("--ft-typography-button-font-size",Kt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-button-font-weight",Kt.fontWeight,"600"),letterSpacing:ft.extend("--ft-typography-button-letter-spacing",Kt.letterSpacing,"1.246px"),lineHeight:ft.extend("--ft-typography-button-line-height",Kt.lineHeight,"1.15"),textTransform:ft.extend("--ft-typography-button-text-transform",Kt.textTransform,"uppercase")},Te=b`
111
111
  .ft-typography--title {
112
112
  font-family: ${Vt};
113
113
  font-size: ${Jt};
@@ -141,17 +141,17 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
141
141
  font-weight: ${he};
142
142
  letter-spacing: ${ue};
143
143
  line-height: ${be};
144
- text-transform: ${xe};
144
+ text-transform: ${ve};
145
145
  }
146
146
 
147
147
  `,_e=b`
148
148
  .ft-typography--body1 {
149
- font-family: ${ve.fontFamily};
150
- font-size: ${ve.fontSize};
151
- font-weight: ${ve.fontWeight};
152
- letter-spacing: ${ve.letterSpacing};
153
- line-height: ${ve.lineHeight};
154
- text-transform: ${ve.textTransform};
149
+ font-family: ${xe.fontFamily};
150
+ font-size: ${xe.fontSize};
151
+ font-weight: ${xe.fontWeight};
152
+ letter-spacing: ${xe.letterSpacing};
153
+ line-height: ${xe.lineHeight};
154
+ text-transform: ${xe.textTransform};
155
155
  }
156
156
  `,He=b`
157
157
  .ft-typography--body2 {
@@ -198,7 +198,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
198
198
  line-height: ${Ae.lineHeight};
199
199
  text-transform: ${Ae.textTransform};
200
200
  }
201
- `;class Je extends xt{constructor(){super(...arguments),this.variant=_t.body1}render(){return this.element?Pt`
201
+ `;class Je extends vt{constructor(){super(...arguments),this.variant=_t.body1}render(){return this.element?Pt`
202
202
  <${Lt(this.element)}
203
203
  class="ft-typography ft-typography--${this.variant}">
204
204
  <slot></slot>
@@ -209,7 +209,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
209
209
  .ft-typography {
210
210
  vertical-align: inherit;
211
211
  }
212
- `],Ht([o()],Je.prototype,"element",void 0),Ht([o()],Je.prototype,"variant",void 0),p("ft-typography")(Je);var qe=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Xe={fontSize:ft.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ft.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ft.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ft.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ft.extend("--ft-input-label-border-color",ut.colorOutline),textColor:ft.extend("--ft-input-label-text-color",ut.colorOnSurfaceMedium),disabledTextColor:ft.extend("--ft-input-label-disabled-text-color",ut.colorOnSurfaceDisabled),colorSurface:ft.external(ut.colorSurface,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system")};class Ye extends xt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return W`
212
+ `],Ht([o()],Je.prototype,"element",void 0),Ht([o()],Je.prototype,"variant",void 0),p("ft-typography")(Je);var qe=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Xe={fontSize:ft.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ft.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ft.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ft.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ft.extend("--ft-input-label-border-color",ut.colorOutline),textColor:ft.extend("--ft-input-label-text-color",ut.colorOnSurfaceMedium),disabledTextColor:ft.extend("--ft-input-label-disabled-text-color",ut.colorOnSurfaceDisabled),colorSurface:ft.external(ut.colorSurface,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system")};class Ye extends vt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return W`
213
213
  <div class="${jt(t)}">
214
214
  ${this.text?W`
215
215
  <div class="ft-input-label--text ft-typography--caption">
@@ -334,7 +334,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
334
334
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
335
335
  border-top: none;
336
336
  }
337
- `],qe([o({type:String})],Ye.prototype,"text",void 0),qe([o({type:Boolean})],Ye.prototype,"raised",void 0),qe([o({type:Boolean})],Ye.prototype,"outlined",void 0),qe([o({type:Boolean})],Ye.prototype,"disabled",void 0),qe([o({type:Boolean})],Ye.prototype,"error",void 0),p("ft-input-label")(Ye);var Ge=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Qe=ft.extend("--ft-ripple-color",ut.colorContent),ti={color:Qe,backgroundColor:ft.extend("--ft-ripple-background-color",Qe),opacityContentOnSurfacePressed:ft.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(ut.opacityContentOnSurfaceSelected,"Design system")},ei=ft.extend("--ft-ripple-color",ut.colorPrimary),ii=ei,oi=ft.extend("--ft-ripple-background-color",ei),ni=ft.extend("--ft-ripple-color",ut.colorSecondary),si=ni,ri=ft.extend("--ft-ripple-background-color",ni);class li extends xt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return W`
337
+ `],qe([o({type:String})],Ye.prototype,"text",void 0),qe([o({type:Boolean})],Ye.prototype,"raised",void 0),qe([o({type:Boolean})],Ye.prototype,"outlined",void 0),qe([o({type:Boolean})],Ye.prototype,"disabled",void 0),qe([o({type:Boolean})],Ye.prototype,"error",void 0),p("ft-input-label")(Ye);var Ge=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Qe=ft.extend("--ft-ripple-color",ut.colorContent),ti={color:Qe,backgroundColor:ft.extend("--ft-ripple-background-color",Qe),opacityContentOnSurfacePressed:ft.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(ut.opacityContentOnSurfaceSelected,"Design system")},ei=ft.extend("--ft-ripple-color",ut.colorPrimary),ii=ei,oi=ft.extend("--ft-ripple-background-color",ei),ni=ft.extend("--ft-ripple-color",ut.colorSecondary),si=ni,ri=ft.extend("--ft-ripple-background-color",ni);class li extends vt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return W`
338
338
  <style>
339
339
  .ft-ripple .ft-ripple--effect,
340
340
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -440,7 +440,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
440
440
  opacity: ${ti.opacityContentOnSurfacePressed};
441
441
  transform: translate(-50%, -50%) scale(1);
442
442
  }
443
- `,Ge([o({type:Boolean})],li.prototype,"primary",void 0),Ge([o({type:Boolean})],li.prototype,"secondary",void 0),Ge([o({type:Boolean})],li.prototype,"unbounded",void 0),Ge([o({type:Boolean})],li.prototype,"activated",void 0),Ge([o({type:Boolean})],li.prototype,"selected",void 0),Ge([o({type:Boolean})],li.prototype,"disabled",void 0),Ge([n()],li.prototype,"hovered",void 0),Ge([n()],li.prototype,"focused",void 0),Ge([n()],li.prototype,"pressed",void 0),Ge([n()],li.prototype,"rippling",void 0),Ge([n()],li.prototype,"rippleSize",void 0),Ge([n()],li.prototype,"originX",void 0),Ge([n()],li.prototype,"originY",void 0),Ge([r(".ft-ripple")],li.prototype,"ripple",void 0),Ge([r(".ft-ripple--effect")],li.prototype,"rippleEffect",void 0),p("ft-ripple")(li),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(ai||(ai={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(pi||(pi={})),new Map([...["abw"].map((t=>[t,pi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,pi.AUDIO])),...["avi"].map((t=>[t,pi.AVI])),...["chm","xhs"].map((t=>[t,pi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,pi.CODE])),...["csv"].map((t=>[t,pi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,pi.DITA])),...["epub"].map((t=>[t,pi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,pi.EXCEL])),...["flac"].map((t=>[t,pi.FLAC])),...["gif"].map((t=>[t,pi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,pi.GZIP])),...["html","htm","xhtml"].map((t=>[t,pi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,pi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,pi.JPEG])),...["json"].map((t=>[t,pi.JSON])),...["m4a","m4p"].map((t=>[t,pi.M4A])),...["mov","qt"].map((t=>[t,pi.MOV])),...["mp3"].map((t=>[t,pi.MP3])),...["mp4","m4v"].map((t=>[t,pi.MP4])),...["ogg","oga"].map((t=>[t,pi.OGG])),...["pdf","ps"].map((t=>[t,pi.PDF])),...["png"].map((t=>[t,pi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,pi.POWERPOINT])),...["rar"].map((t=>[t,pi.RAR])),...["stp"].map((t=>[t,pi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,pi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,pi.VIDEO])),...["wav"].map((t=>[t,pi.WAV])),...["wma"].map((t=>[t,pi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,pi.WORD])),...["xml","xsl","rdf"].map((t=>[t,pi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,pi.YAML])),...["zip"].map((t=>[t,pi.ZIP]))]);var ci,di=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ci||(ci={}));const fi={size:ft.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ft.extend("--ft-icon-fluid-topics-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.extend("--ft-icon-file-format-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ft.extend("--ft-icon-material-font-family",ft.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class hi extends xt{constructor(){super(...arguments),this.variant=ci.fluid_topics}getStyles(){return b`
443
+ `,Ge([o({type:Boolean})],li.prototype,"primary",void 0),Ge([o({type:Boolean})],li.prototype,"secondary",void 0),Ge([o({type:Boolean})],li.prototype,"unbounded",void 0),Ge([o({type:Boolean})],li.prototype,"activated",void 0),Ge([o({type:Boolean})],li.prototype,"selected",void 0),Ge([o({type:Boolean})],li.prototype,"disabled",void 0),Ge([n()],li.prototype,"hovered",void 0),Ge([n()],li.prototype,"focused",void 0),Ge([n()],li.prototype,"pressed",void 0),Ge([n()],li.prototype,"rippling",void 0),Ge([n()],li.prototype,"rippleSize",void 0),Ge([n()],li.prototype,"originX",void 0),Ge([n()],li.prototype,"originY",void 0),Ge([r(".ft-ripple")],li.prototype,"ripple",void 0),Ge([r(".ft-ripple--effect")],li.prototype,"rippleEffect",void 0),p("ft-ripple")(li),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(ai||(ai={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(pi||(pi={})),new Map([...["abw"].map((t=>[t,pi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,pi.AUDIO])),...["avi"].map((t=>[t,pi.AVI])),...["chm","xhs"].map((t=>[t,pi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,pi.CODE])),...["csv"].map((t=>[t,pi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,pi.DITA])),...["epub"].map((t=>[t,pi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,pi.EXCEL])),...["flac"].map((t=>[t,pi.FLAC])),...["gif"].map((t=>[t,pi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,pi.GZIP])),...["html","htm","xhtml"].map((t=>[t,pi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,pi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,pi.JPEG])),...["json"].map((t=>[t,pi.JSON])),...["m4a","m4p"].map((t=>[t,pi.M4A])),...["mov","qt"].map((t=>[t,pi.MOV])),...["mp3"].map((t=>[t,pi.MP3])),...["mp4","m4v"].map((t=>[t,pi.MP4])),...["ogg","oga"].map((t=>[t,pi.OGG])),...["pdf","ps"].map((t=>[t,pi.PDF])),...["png"].map((t=>[t,pi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,pi.POWERPOINT])),...["rar"].map((t=>[t,pi.RAR])),...["stp"].map((t=>[t,pi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,pi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,pi.VIDEO])),...["wav"].map((t=>[t,pi.WAV])),...["wma"].map((t=>[t,pi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,pi.WORD])),...["xml","xsl","rdf"].map((t=>[t,pi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,pi.YAML])),...["zip"].map((t=>[t,pi.ZIP]))]);var ci,di=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ci||(ci={}));const fi={size:ft.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ft.extend("--ft-icon-fluid-topics-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.extend("--ft-icon-file-format-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ft.extend("--ft-icon-material-font-family",ft.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ft.create("--ft-icon-vertical-align","UNKNOWN","unset")};class hi extends vt{constructor(){super(...arguments),this.variant=ci.fluid_topics}getStyles(){return b`
444
444
  :host {
445
445
  display: inline-block;
446
446
  }
@@ -463,6 +463,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
463
463
  text-rendering: auto;
464
464
  -webkit-font-smoothing: antialiased;
465
465
  -moz-osx-font-smoothing: grayscale;
466
+ vertical-align: ${fi.verticalAlign};
466
467
  }
467
468
 
468
469
  .ft-icon--fluid-topics {
@@ -481,7 +482,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
481
482
  ${Dt(this.getIcon())}
482
483
  <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
483
484
  </i>
484
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===ci.file_format?null!==(t=pi[i.toUpperCase()])&&void 0!==t?t:i:this.variant===ci.fluid_topics?null!==(e=ai[i.toUpperCase()])&&void 0!==e?e:i:K}}hi.elementDefinitions={},di([o()],hi.prototype,"variant",void 0),di([r("slot")],hi.prototype,"slottedContent",void 0),p("ft-icon")(hi);var ui=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class bi extends xt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return W``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}bi.elementDefinitions={},ui([o({type:String})],bi.prototype,"label",void 0),ui([o({type:Object,converter:t=>t})],bi.prototype,"value",void 0),ui([o({type:Boolean,reflect:!0})],bi.prototype,"selected",void 0);const xi={labelSize:ft.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ft.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ft.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:ft.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ft.extend("--ft-select-selected-option-color",ut.colorOnSurface),helperColor:ft.extend("--ft-select-helper-color",ut.colorOnSurfaceMedium),optionsColor:ft.extend("--ft-select-options-color",ut.colorOnSurface),optionsZIndex:ft.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ft.external(ut.colorSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),colorPrimary:ft.external(ut.colorPrimary,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),elevation02:ft.external(ut.elevation02,"Design system"),colorError:ft.external(ut.colorError,"Design system")};class vi extends xt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,n;let s=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return W`
485
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===ci.file_format?null!==(t=pi[i.toUpperCase()])&&void 0!==t?t:i:this.variant===ci.fluid_topics?null!==(e=ai[i.toUpperCase()])&&void 0!==e?e:i:K}}hi.elementDefinitions={},di([o()],hi.prototype,"variant",void 0),di([r("slot")],hi.prototype,"slottedContent",void 0),p("ft-icon")(hi);var ui=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class bi extends vt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return W``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}bi.elementDefinitions={},ui([o({type:String})],bi.prototype,"label",void 0),ui([o({type:Object,converter:t=>t})],bi.prototype,"value",void 0),ui([o({type:Boolean,reflect:!0})],bi.prototype,"selected",void 0);const vi={labelSize:ft.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ft.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ft.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:ft.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ft.extend("--ft-select-selected-option-color",ut.colorOnSurface),helperColor:ft.extend("--ft-select-helper-color",ut.colorOnSurfaceMedium),optionsColor:ft.extend("--ft-select-options-color",ut.colorOnSurface),optionsZIndex:ft.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ft.external(ut.colorSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),colorPrimary:ft.external(ut.colorPrimary,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),elevation02:ft.external(ut.elevation02,"Design system"),colorError:ft.external(ut.colorError,"Design system")};class xi extends vt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,n;let s=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return W`
485
486
  <div class="${jt(a)}" part="container">
486
487
  <div class="ft-select--main-panel" part="main-panel">
487
488
  <ft-input-label text="${this.label}"
@@ -529,7 +530,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
529
530
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
530
531
  <span>${t.label}</span>
531
532
  </div>
532
- `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,n,s;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}vi.elementDefinitions={"ft-input-label":Ye,"ft-typography":Je,"ft-ripple":li,"ft-icon":hi},vi.styles=[He,We,b`
533
+ `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,n,s;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}xi.elementDefinitions={"ft-input-label":Ye,"ft-typography":Je,"ft-ripple":li,"ft-icon":hi},xi.styles=[He,We,b`
533
534
  *:focus {
534
535
  outline: none;
535
536
  }
@@ -543,7 +544,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
543
544
  .ft-select--main-panel {
544
545
  position: relative;
545
546
  display: flex;
546
- height: calc(4 * ${xi.verticalSpacing} + ${xi.labelSize} + ${xi.selectedOptionSize});
547
+ height: calc(4 * ${vi.verticalSpacing} + ${vi.labelSize} + ${vi.selectedOptionSize});
547
548
  }
548
549
 
549
550
  .ft-select--input-panel {
@@ -555,8 +556,8 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
555
556
  padding-left: 16px;
556
557
  padding-right: 8px;
557
558
  gap: 8px;
558
- color: ${xi.selectedOptionColor};
559
- ${ht(ti.color,xi.selectedOptionColor)};
559
+ color: ${vi.selectedOptionColor};
560
+ ${ht(ti.color,vi.selectedOptionColor)};
560
561
  }
561
562
 
562
563
  .ft-select--input-panel,
@@ -572,7 +573,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
572
573
 
573
574
  .ft-select--disabled .ft-select--input-panel,
574
575
  .ft-select--disabled .ft-select--option {
575
- color: ${xi.colorOnSurfaceDisabled};
576
+ color: ${vi.colorOnSurfaceDisabled};
576
577
  }
577
578
 
578
579
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -581,18 +582,18 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
581
582
  }
582
583
 
583
584
  ft-input-label {
584
- ${ht(Xe.fontSize,xi.selectedOptionSize)};
585
- ${ht(Xe.raisedFontSize,xi.labelSize)};
586
- ${ht(Xe.verticalSpacing,xi.verticalSpacing)};
585
+ ${ht(Xe.fontSize,vi.selectedOptionSize)};
586
+ ${ht(Xe.raisedFontSize,vi.labelSize)};
587
+ ${ht(Xe.verticalSpacing,vi.verticalSpacing)};
587
588
  }
588
589
 
589
590
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
590
- color: ${xi.colorPrimary};
591
+ color: ${vi.colorPrimary};
591
592
  }
592
593
 
593
594
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
594
- ${ht(Xe.borderColor,xi.colorPrimary)};
595
- ${ht(Xe.textColor,xi.colorPrimary)};
595
+ ${ht(Xe.borderColor,vi.colorPrimary)};
596
+ ${ht(Xe.textColor,vi.colorPrimary)};
596
597
  }
597
598
 
598
599
  .ft-select--selected-option {
@@ -602,12 +603,12 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
602
603
  overflow: hidden;
603
604
  white-space: nowrap;
604
605
  text-overflow: ellipsis;
605
- ${ht(ve.fontSize,xi.selectedOptionSize)};
606
- ${ht(ve.lineHeight,xi.selectedOptionSize)};
606
+ ${ht(xe.fontSize,vi.selectedOptionSize)};
607
+ ${ht(xe.lineHeight,vi.selectedOptionSize)};
607
608
  }
608
609
 
609
610
  .ft-select--in-error .ft-select--selected-option {
610
- color: ${xi.colorError};
611
+ color: ${vi.colorError};
611
612
  }
612
613
 
613
614
  ft-icon {
@@ -619,16 +620,16 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
619
620
  }
620
621
 
621
622
  .ft-select--filled .ft-select--input-panel {
622
- border-radius: ${xi.borderRadiusS} ${xi.borderRadiusS} 0 0;
623
+ border-radius: ${vi.borderRadiusS} ${vi.borderRadiusS} 0 0;
623
624
  }
624
625
 
625
626
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
626
627
  align-self: stretch;
627
- padding-top: calc(${xi.labelSize} + 2 * ${xi.verticalSpacing});
628
+ padding-top: calc(${vi.labelSize} + 2 * ${vi.verticalSpacing});
628
629
  }
629
630
 
630
631
  .ft-select--outlined .ft-select--input-panel {
631
- border-radius: ${xi.borderRadiusS};
632
+ border-radius: ${vi.borderRadiusS};
632
633
  }
633
634
 
634
635
  .ft-select--options {
@@ -637,10 +638,10 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
637
638
  top: 100%;
638
639
  left: 0;
639
640
  right: 0;
640
- color: ${xi.optionsColor};
641
- background: ${xi.colorSurface};
642
- z-index: ${xi.optionsZIndex};
643
- box-shadow: ${xi.elevation02};
641
+ color: ${vi.optionsColor};
642
+ background: ${vi.colorSurface};
643
+ z-index: ${vi.optionsZIndex};
644
+ box-shadow: ${vi.elevation02};
644
645
  }
645
646
 
646
647
  .ft-select--fixed .ft-select--options {
@@ -651,7 +652,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
651
652
 
652
653
  .ft-select--options-displayed .ft-select--options {
653
654
  display: block;
654
- max-height: ${xi.optionsHeight};
655
+ max-height: ${vi.optionsHeight};
655
656
  overflow-y: auto;
656
657
  }
657
658
 
@@ -670,13 +671,13 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
670
671
 
671
672
  .ft-select--helper-text {
672
673
  padding: 0 12px 0 16px;
673
- color: ${xi.helperColor};
674
+ color: ${vi.helperColor};
674
675
  }
675
676
 
676
677
  .ft-select--in-error .ft-select--helper-text {
677
- color: ${xi.colorError};
678
+ color: ${vi.colorError};
678
679
  }
679
- `],ui([o({type:String})],vi.prototype,"label",void 0),ui([o({type:String})],vi.prototype,"helper",void 0),ui([o({type:Boolean})],vi.prototype,"outlined",void 0),ui([o({type:Boolean})],vi.prototype,"disabled",void 0),ui([o({type:Boolean})],vi.prototype,"error",void 0),ui([o({type:Boolean})],vi.prototype,"fixedMenuPosition",void 0),ui([o({type:Array})],vi.prototype,"options",void 0),ui([n()],vi.prototype,"selectedOption",void 0),ui([n()],vi.prototype,"optionsDisplayed",void 0),ui([n()],vi.prototype,"focusOptions",void 0),ui([r(".ft-select")],vi.prototype,"container",void 0),ui([r(".ft-select--options")],vi.prototype,"optionsMenu",void 0),ui([r(".ft-select--input-panel")],vi.prototype,"mainPanel",void 0),ui([r(".ft-select--option:first-child")],vi.prototype,"firstOption",void 0),ui([r(".ft-select--option:focus")],vi.prototype,"focusedOption",void 0),ui([r(".ft-select--option.ft-select--option-selected")],vi.prototype,"selectedOptionElement",void 0),ui([r(".ft-select--option:last-child")],vi.prototype,"lastOption",void 0),ui([r("slot")],vi.prototype,"optionsSlot",void 0),p("ft-select")(vi),p("ft-select-option")(bi);var yi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const gi={fontSize:ft.create("--ft-text-field-font-size","SIZE","14px"),labelSize:ft.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:ft.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:ft.extend("--ft-text-field-helper-color",ut.colorOnSurfaceMedium),colorPrimary:ft.external(ut.colorPrimary,"Design system"),colorOnSurface:ft.external(ut.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system"),prefixColor:ft.extend("--ft-text-field-prefix-color",ut.colorOnSurfaceMedium),iconColor:ft.extend("--ft-text-field-icon-color",ut.colorOnSurfaceMedium)};class mi extends xt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return W`
680
+ `],ui([o({type:String})],xi.prototype,"label",void 0),ui([o({type:String})],xi.prototype,"helper",void 0),ui([o({type:Boolean})],xi.prototype,"outlined",void 0),ui([o({type:Boolean})],xi.prototype,"disabled",void 0),ui([o({type:Boolean})],xi.prototype,"error",void 0),ui([o({type:Boolean})],xi.prototype,"fixedMenuPosition",void 0),ui([o({type:Array})],xi.prototype,"options",void 0),ui([n()],xi.prototype,"selectedOption",void 0),ui([n()],xi.prototype,"optionsDisplayed",void 0),ui([n()],xi.prototype,"focusOptions",void 0),ui([r(".ft-select")],xi.prototype,"container",void 0),ui([r(".ft-select--options")],xi.prototype,"optionsMenu",void 0),ui([r(".ft-select--input-panel")],xi.prototype,"mainPanel",void 0),ui([r(".ft-select--option:first-child")],xi.prototype,"firstOption",void 0),ui([r(".ft-select--option:focus")],xi.prototype,"focusedOption",void 0),ui([r(".ft-select--option.ft-select--option-selected")],xi.prototype,"selectedOptionElement",void 0),ui([r(".ft-select--option:last-child")],xi.prototype,"lastOption",void 0),ui([r("slot")],xi.prototype,"optionsSlot",void 0),p("ft-select")(xi),p("ft-select-option")(bi);var yi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const gi={fontSize:ft.create("--ft-text-field-font-size","SIZE","14px"),labelSize:ft.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:ft.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:ft.extend("--ft-text-field-helper-color",ut.colorOnSurfaceMedium),colorPrimary:ft.external(ut.colorPrimary,"Design system"),colorOnSurface:ft.external(ut.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system"),prefixColor:ft.extend("--ft-text-field-prefix-color",ut.colorOnSurfaceMedium),iconColor:ft.extend("--ft-text-field-icon-color",ut.colorOnSurfaceMedium)};class mi extends vt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return W`
680
681
  <div class="${jt(t)}">
681
682
  <div class="ft-text-field--main-panel">
682
683
  <ft-input-label text="${this.label}"
@@ -755,8 +756,8 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
755
756
  display: flex;
756
757
  align-items: center;
757
758
 
758
- ${ht(ve.fontSize,gi.fontSize)};
759
- ${ht(ve.lineHeight,gi.fontSize)};
759
+ ${ht(xe.fontSize,gi.fontSize)};
760
+ ${ht(xe.lineHeight,gi.fontSize)};
760
761
 
761
762
  padding: 0 ${gi.horizontalSpacing};
762
763
  }
@@ -834,7 +835,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
834
835
  padding-right: ${gi.horizontalSpacing};
835
836
  color: ${gi.iconColor};
836
837
  }
837
- `],yi([o({type:String})],mi.prototype,"label",void 0),yi([o({reflect:!0})],mi.prototype,"value",void 0),yi([o({type:String})],mi.prototype,"helper",void 0),yi([o({type:Boolean})],mi.prototype,"outlined",void 0),yi([o({type:Boolean})],mi.prototype,"disabled",void 0),yi([o({type:Boolean})],mi.prototype,"error",void 0),yi([r(".ft-text-field--input")],mi.prototype,"input",void 0),yi([o({type:String})],mi.prototype,"prefix",void 0),yi([o({type:String})],mi.prototype,"icon",void 0),yi([o({type:String})],mi.prototype,"iconVariant",void 0),yi([n()],mi.prototype,"focused",void 0),p("ft-text-field")(mi);var $i=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const wi=ft.create("--ft-tooltip-distance","SIZE","4px"),Oi=ft.create("--ft-tooltip-color","COLOR","#FFFFFF"),Si=ft.create("--ft-tooltip-background-color","COLOR","#666666"),ki=ft.create("--ft-tooltip-z-index","NUMBER","1"),Ci=ft.external(ut.borderRadiusS,"Design system");class Ei extends xt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return W`
838
+ `],yi([o({type:String})],mi.prototype,"label",void 0),yi([o({reflect:!0})],mi.prototype,"value",void 0),yi([o({type:String})],mi.prototype,"helper",void 0),yi([o({type:Boolean})],mi.prototype,"outlined",void 0),yi([o({type:Boolean})],mi.prototype,"disabled",void 0),yi([o({type:Boolean})],mi.prototype,"error",void 0),yi([r(".ft-text-field--input")],mi.prototype,"input",void 0),yi([o({type:String})],mi.prototype,"prefix",void 0),yi([o({type:String})],mi.prototype,"icon",void 0),yi([o({type:String})],mi.prototype,"iconVariant",void 0),yi([n()],mi.prototype,"focused",void 0),p("ft-text-field")(mi);var $i=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const wi=ft.create("--ft-tooltip-distance","SIZE","4px"),Oi=ft.create("--ft-tooltip-color","COLOR","#FFFFFF"),Si=ft.create("--ft-tooltip-background-color","COLOR","#666666"),ki=ft.create("--ft-tooltip-z-index","NUMBER","1"),Ci=ft.external(ut.borderRadiusS,"Design system"),Ei=ft.create("--ft-tooltip-max-width","SIZE","150px");class Ni extends vt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return W`
838
839
  <div part="container"
839
840
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
840
841
  @mouseenter=${this.onHover}
@@ -844,12 +845,13 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
844
845
  @touchstart=${this.onTouch}>
845
846
  <div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
846
847
  <div part="tooltip-content" class="ft-tooltip--content">
847
- <ft-typography variant="caption">${this.text}</ft-typography>
848
+ <slot name="text"></slot>
849
+ <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
848
850
  </div>
849
851
  </div>
850
852
  <slot></slot>
851
853
  </div>
852
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=e.height+"px",n.left=o+"px";break;case"left":n.top=i+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=i+"px",n.left=e.width+"px"}n.maxWidth=Math.max(e.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ei.elementDefinitions={"ft-typography":Je},Ei.styles=b`
854
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.position){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${Ei})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ni.elementDefinitions={"ft-typography":Je},Ni.styles=b`
853
855
  .ft-tooltip--container {
854
856
  display: block;
855
857
  position: relative;
@@ -865,7 +867,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
865
867
  box-sizing: border-box;
866
868
  overflow: hidden;
867
869
  width: max-content;
868
- max-width: 150px;
870
+ max-width: ${Ei};
869
871
  text-align: center;
870
872
  padding: ${wi};
871
873
  z-index: ${ki};
@@ -881,13 +883,13 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
881
883
  position: relative;
882
884
  word-break: break-word;
883
885
  }
884
- `,$i([o()],Ei.prototype,"text",void 0),$i([o({type:Boolean})],Ei.prototype,"manual",void 0),$i([o({type:Boolean})],Ei.prototype,"inline",void 0),$i([o({type:Number})],Ei.prototype,"delay",void 0),$i([o()],Ei.prototype,"position",void 0),$i([
886
+ `,$i([o()],Ni.prototype,"text",void 0),$i([o({type:Boolean})],Ni.prototype,"manual",void 0),$i([o({type:Boolean})],Ni.prototype,"inline",void 0),$i([o({type:Number})],Ni.prototype,"delay",void 0),$i([o()],Ni.prototype,"position",void 0),$i([
885
887
  /**
886
888
  * @license
887
889
  * Copyright 2017 Google LLC
888
890
  * SPDX-License-Identifier: BSD-3-Clause
889
891
  */
890
- function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ei.prototype,"slotNodes",void 0),$i([r(".ft-tooltip--container")],Ei.prototype,"container",void 0),$i([r("slot")],Ei.prototype,"target",void 0),$i([r(".ft-tooltip")],Ei.prototype,"tooltip",void 0),$i([r(".ft-tooltip--content")],Ei.prototype,"tooltipContent",void 0),$i([n()],Ei.prototype,"visible",void 0),p("ft-tooltip")(Ei);const Ni={color:ft.extend("--ft-loader-color",ut.colorPrimary),size:ft.create("--ft-loader-size","SIZE","80px")};class Ri extends xt{static get styles(){return b`
892
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ni.prototype,"slotNodes",void 0),$i([r(".ft-tooltip--container")],Ni.prototype,"container",void 0),$i([r("slot")],Ni.prototype,"target",void 0),$i([r(".ft-tooltip")],Ni.prototype,"tooltip",void 0),$i([r(".ft-tooltip--content")],Ni.prototype,"tooltipContent",void 0),$i([n()],Ni.prototype,"visible",void 0),p("ft-tooltip")(Ni);const Ri={color:ft.extend("--ft-loader-color",ut.colorPrimary),size:ft.create("--ft-loader-size","SIZE","80px")};class zi extends vt{static get styles(){return b`
891
893
  :host {
892
894
  line-height: 0;
893
895
  }
@@ -896,8 +898,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
896
898
  display: inline-block;
897
899
  position: relative;
898
900
 
899
- width: ${Ni.size};
900
- height: ${Ni.size};
901
+ width: ${Ri.size};
902
+ height: ${Ri.size};
901
903
  }
902
904
 
903
905
  .ft-loader div {
@@ -906,7 +908,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
906
908
  width: 25%;
907
909
  height: 25%;
908
910
  border-radius: 50%;
909
- background: ${Ni.color};
911
+ background: ${Ri.color};
910
912
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
911
913
  }
912
914
 
@@ -953,7 +955,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
953
955
  transform: translate(0, 0);
954
956
  }
955
957
  100% {
956
- transform: translate(calc(0.35 * ${Ni.size}), 0);
958
+ transform: translate(calc(0.35 * ${Ri.size}), 0);
957
959
  }
958
960
  }
959
961
  `}render(){return W`
@@ -963,7 +965,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
963
965
  <div></div>
964
966
  <div></div>
965
967
  </div>
966
- `}}p("ft-loader")(Ri);var zi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Mi=ft.extend("--ft-button-color",ut.colorPrimary),Fi={backgroundColor:ft.extend("--ft-button-background-color",ut.colorSurface),borderRadius:ft.extend("--ft-button-border-radius",ut.borderRadiusL),color:Mi,fontSize:ft.extend("--ft-button-font-size",Ae.fontSize),iconSize:ft.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ft.extend("--ft-button-ripple-color",Mi),opacityDisabled:ft.external(ut.colorOpacityDisabled,"Design system")},Ui=ft.extend("--ft-button-primary-color",ft.extend("--ft-button-color",ut.colorOnPrimary)),Bi={backgroundColor:ft.extend("--ft-button-primary-background-color",ft.extend("--ft-button-background-color",ut.colorPrimary)),color:Ui,rippleColor:ft.extend("--ft-button-primary-ripple-color",Ui)},Di=ft.extend("--ft-button-dense-border-radius",ft.extend("--ft-button-border-radius",ut.borderRadiusM));class ji extends xt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[vt,b`
968
+ `}}p("ft-loader")(zi);var Mi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Fi=ft.extend("--ft-button-color",ut.colorPrimary),Ui={backgroundColor:ft.extend("--ft-button-background-color",ut.colorSurface),borderRadius:ft.extend("--ft-button-border-radius",ut.borderRadiusL),color:Fi,fontSize:ft.extend("--ft-button-font-size",Ae.fontSize),iconSize:ft.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ft.extend("--ft-button-ripple-color",Fi),opacityDisabled:ft.external(ut.colorOpacityDisabled,"Design system")},Bi=ft.extend("--ft-button-primary-color",ft.extend("--ft-button-color",ut.colorOnPrimary)),Di={backgroundColor:ft.extend("--ft-button-primary-background-color",ft.extend("--ft-button-background-color",ut.colorPrimary)),color:Bi,rippleColor:ft.extend("--ft-button-primary-ripple-color",Bi)},ji=ft.extend("--ft-button-dense-border-radius",ft.extend("--ft-button-border-radius",ut.borderRadiusM));class Ai extends vt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[xt,b`
967
969
  :host {
968
970
  display: inline-block;
969
971
  max-width: 100%;
@@ -974,7 +976,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
974
976
  box-shadow: 0px 0px 0px transparent;
975
977
  border: 0px solid transparent;
976
978
  text-shadow: 0px 0px 0px transparent;
977
- font-size: 16px;
979
+ font-size: ${Ui.fontSize};
978
980
  }
979
981
 
980
982
  button:hover {
@@ -1003,18 +1005,17 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1003
1005
  border: none;
1004
1006
  pointer-events: auto;
1005
1007
 
1006
- --ft-button-internal-font-size: ${Fi.fontSize};
1007
- --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
1008
- --ft-button-internal-color: ${Fi.color};
1009
- ${ht(fi.size,Fi.iconSize)};
1008
+ --ft-button-internal-line-height: calc(${Ui.fontSize} + 2px);
1009
+ --ft-button-internal-color: ${Ui.color};
1010
+ ${ht(fi.size,Ui.iconSize)};
1010
1011
  --ft-button-internal-vertical-padding: 6px;
1011
1012
  --ft-button-internal-horizontal-padding: 8px;
1012
- ${ht(ti.color,Fi.rippleColor)};
1013
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fi.iconSize});
1013
+ ${ht(ti.color,Ui.rippleColor)};
1014
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ui.iconSize});
1014
1015
 
1015
- border-radius: ${Fi.borderRadius};
1016
+ border-radius: ${Ui.borderRadius};
1016
1017
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
1017
- background-color: ${Fi.backgroundColor};
1018
+ background-color: ${Ui.backgroundColor};
1018
1019
  color: var(--ft-button-internal-color);
1019
1020
  -webkit-mask-image: radial-gradient(white, black);
1020
1021
  }
@@ -1026,7 +1027,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1026
1027
  .ft-button--dense {
1027
1028
  --ft-button-internal-vertical-padding: 2px;
1028
1029
  --ft-button-internal-horizontal-padding: 4px;
1029
- border-radius: ${Di};
1030
+ border-radius: ${ji};
1030
1031
  }
1031
1032
 
1032
1033
  .ft-button--round {
@@ -1035,13 +1036,13 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1035
1036
 
1036
1037
  .ft-button[disabled] {
1037
1038
  filter: grayscale(1);
1038
- opacity: ${Fi.opacityDisabled};
1039
+ opacity: ${Ui.opacityDisabled};
1039
1040
  }
1040
1041
 
1041
1042
  .ft-button.ft-button--primary {
1042
- background-color: ${Bi.backgroundColor};
1043
- --ft-button-internal-color: ${Bi.color};
1044
- ${ht(ti.color,Bi.rippleColor)};
1043
+ background-color: ${Di.backgroundColor};
1044
+ --ft-button-internal-color: ${Di.color};
1045
+ ${ht(ti.color,Di.rippleColor)};
1045
1046
  }
1046
1047
 
1047
1048
  .ft-button.ft-button--outlined {
@@ -1060,7 +1061,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1060
1061
  text-overflow: ellipsis;
1061
1062
  display: block;
1062
1063
  margin: 0 var(--ft-button-internal-horizontal-padding);
1063
- ${ht(Ae.fontSize,"var(--ft-button-internal-font-size)")};
1064
+ ${ht(Ae.fontSize,"1em")};
1064
1065
  ${ht(Ae.lineHeight,"var(--ft-button-internal-content-height)")};
1065
1066
  }
1066
1067
 
@@ -1094,8 +1095,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1094
1095
  }
1095
1096
 
1096
1097
  ft-loader {
1097
- ${ht(Ni.size,Fi.iconSize)};
1098
- ${ht(Ni.color,"var(--ft-button-internal-color)")};
1098
+ ${ht(Ri.size,Ui.iconSize)};
1099
+ ${ht(Ri.color,"var(--ft-button-internal-color)")};
1099
1100
  }
1100
1101
  `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":$t,"ft-no-text-select":!0};return this.addTooltip(W`
1101
1102
  <button part="button"
@@ -1119,7 +1120,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1119
1120
  </ft-tooltip>
1120
1121
  `}resolveIcon(){return this.loading?W`
1121
1122
  <ft-loader></ft-loader> `:this.icon?W`
1122
- <ft-icon variant="material">${this.icon}</ft-icon> `:K}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ji.elementDefinitions={"ft-ripple":li,"ft-tooltip":Ei,"ft-typography":Je,"ft-icon":hi,"ft-loader":Ri},zi([o({type:Boolean})],ji.prototype,"primary",void 0),zi([o({type:Boolean})],ji.prototype,"outlined",void 0),zi([o({type:Boolean})],ji.prototype,"disabled",void 0),zi([o({type:Boolean})],ji.prototype,"dense",void 0),zi([o({type:Boolean})],ji.prototype,"round",void 0),zi([o({type:String})],ji.prototype,"label",void 0),zi([o({type:String})],ji.prototype,"icon",void 0),zi([o({type:Boolean})],ji.prototype,"trailingIcon",void 0),zi([o({type:Boolean})],ji.prototype,"loading",void 0),zi([o({type:String})],ji.prototype,"tooltipPosition",void 0),zi([r(".ft-button")],ji.prototype,"button",void 0),zi([r(".ft-button--label slot")],ji.prototype,"slottedContent",void 0),p("ft-button")(ji);var Ai=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ti extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Li={headerBackground:ft.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:ft.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:ft.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:ft.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:ft.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:ft.external(ut.colorOnSurfaceHigh,"Design system"),titleFont:ft.external(ut.titleFont,"Design system"),contentFont:ft.external(ut.contentFont,"Design system")},Ii=t=>W`${t}`,Pi=(t,e)=>t-e;class _i extends xt{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return W`
1123
+ <ft-icon variant="material">${this.icon}</ft-icon> `:K}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ai.elementDefinitions={"ft-ripple":li,"ft-tooltip":Ni,"ft-typography":Je,"ft-icon":hi,"ft-loader":zi},Mi([o({type:Boolean})],Ai.prototype,"primary",void 0),Mi([o({type:Boolean})],Ai.prototype,"outlined",void 0),Mi([o({type:Boolean})],Ai.prototype,"disabled",void 0),Mi([o({type:Boolean})],Ai.prototype,"dense",void 0),Mi([o({type:Boolean})],Ai.prototype,"round",void 0),Mi([o({type:String})],Ai.prototype,"label",void 0),Mi([o({type:String})],Ai.prototype,"icon",void 0),Mi([o({type:Boolean})],Ai.prototype,"trailingIcon",void 0),Mi([o({type:Boolean})],Ai.prototype,"loading",void 0),Mi([o({type:String})],Ai.prototype,"tooltipPosition",void 0),Mi([r(".ft-button")],Ai.prototype,"button",void 0),Mi([r(".ft-button--label slot")],Ai.prototype,"slottedContent",void 0),p("ft-button")(Ai);var Ti=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Li extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Ii={headerBackground:ft.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:ft.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:ft.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:ft.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:ft.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:ft.external(ut.colorOnSurfaceHigh,"Design system"),titleFont:ft.external(ut.titleFont,"Design system"),contentFont:ft.external(ut.contentFont,"Design system")},Pi=t=>W`${t}`,_i=(t,e)=>t-e;class Hi extends vt{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return W`
1123
1124
  <style>
1124
1125
  .table {
1125
1126
  grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
@@ -1131,12 +1132,12 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1131
1132
  </div>
1132
1133
  ${Ut(t,((t,e)=>"row-"+e),((t,e)=>W`
1133
1134
  <div class="row"
1134
- @click=${()=>this.dispatchEvent(new Ti(t))}>
1135
+ @click=${()=>this.dispatchEvent(new Li(t))}>
1135
1136
  ${Ut(this.columns,((t,i)=>"cell-"+e+" "+i),(i=>this.renderCell(i,t,e)))}
1136
1137
  </div>
1137
1138
  `))}
1138
1139
  </div>
1139
- `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:Pi,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){const i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return W`
1140
+ `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:_i,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){const i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return W`
1140
1141
  <div class="${jt(i)}">
1141
1142
  <div class="column-title-container">
1142
1143
  <span class="column-title">${t.title}</span>
@@ -1168,9 +1169,9 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1168
1169
  <ft-select-option value="${t}" label="${t}"></ft-select-option>
1169
1170
  `))}
1170
1171
  </ft-select>
1171
- `:null}return null}renderCell(t,e,i){var o;const n=null!==(o=t.render)&&void 0!==o?o:Ii;return W`
1172
+ `:null}return null}renderCell(t,e,i){var o;const n=null!==(o=t.render)&&void 0!==o?o:Pi;return W`
1172
1173
  <div class="cell">${(t=>{const e=n(t,i);return"string"==typeof e?Dt(e):e})(this.getValue(t,e))}</div>
1173
- `}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}_i.styles=b`
1174
+ `}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}Hi.styles=b`
1174
1175
  :host {
1175
1176
  display: block;
1176
1177
  }
@@ -1186,15 +1187,15 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1186
1187
  .header-cell {
1187
1188
  display: flex;
1188
1189
  flex-direction: column;
1189
- background: ${Li.headerBackground};
1190
- color: ${Li.colorOnSurfaceHigh};
1190
+ background: ${Ii.headerBackground};
1191
+ color: ${Ii.colorOnSurfaceHigh};
1191
1192
  padding: .5rem 1rem;
1192
- font-family: ${Li.titleFont};
1193
+ font-family: ${Ii.titleFont};
1193
1194
  }
1194
1195
 
1195
1196
  .header-cell--sticky {
1196
1197
  top: 0;
1197
- z-index: ${Li.stickyHeaderZIndex};
1198
+ z-index: ${Ii.stickyHeaderZIndex};
1198
1199
  position: sticky;
1199
1200
  }
1200
1201
 
@@ -1212,8 +1213,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1212
1213
  }
1213
1214
 
1214
1215
  .column-title-container ft-button {
1215
- ${ht(Fi.backgroundColor,Li.headerBackground)};
1216
- ${ht(Fi.color,Li.colorOnSurfaceHigh)};
1216
+ ${ht(Ui.backgroundColor,Ii.headerBackground)};
1217
+ ${ht(Ui.color,Ii.colorOnSurfaceHigh)};
1217
1218
  }
1218
1219
 
1219
1220
  .column-title {
@@ -1242,29 +1243,29 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1242
1243
 
1243
1244
  .cell {
1244
1245
  padding: 1rem;
1245
- border-left: 1px solid ${Li.headerBackground};
1246
- border-bottom: 1px solid ${Li.headerBackground};
1246
+ border-left: 1px solid ${Ii.headerBackground};
1247
+ border-bottom: 1px solid ${Ii.headerBackground};
1247
1248
  overflow-x: auto;
1248
1249
  display: flex;
1249
1250
  align-items: center;
1250
- font-family: ${Li.contentFont};
1251
+ font-family: ${Ii.contentFont};
1251
1252
  }
1252
1253
 
1253
1254
  /* Even is 2n+1 and odd is 2n because of the header */
1254
1255
  .row:nth-child(2n) > .cell {
1255
- background: ${Li.oddRowBackground};
1256
+ background: ${Ii.oddRowBackground};
1256
1257
  }
1257
1258
 
1258
1259
  .row:nth-child(2n + 1) > .cell {
1259
- background: ${Li.evenRowBackground};
1260
+ background: ${Ii.evenRowBackground};
1260
1261
  }
1261
1262
 
1262
1263
  .row:hover > .cell {
1263
- background: ${Li.rowHoverBackground};
1264
+ background: ${Ii.rowHoverBackground};
1264
1265
  }
1265
1266
 
1266
1267
  .cell:last-of-type {
1267
- border-right: 1px solid ${Li.headerBackground};
1268
+ border-right: 1px solid ${Ii.headerBackground};
1268
1269
  }
1269
1270
 
1270
1271
  .row:last-of-type .cell:first-of-type {
@@ -1278,4 +1279,4 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1278
1279
  .hidden {
1279
1280
  visibility: hidden;
1280
1281
  }
1281
- `,Ai([o({attribute:!1})],_i.prototype,"data",void 0),Ai([o({attribute:!1})],_i.prototype,"columns",void 0),Ai([o({attribute:!1})],_i.prototype,"sort",void 0),Ai([o()],_i.prototype,"stickyHeaders",void 0),Ai([n()],_i.prototype,"currentSort",void 0),p("ft-filterable-table")(_i),t.FtFilterableTable=_i,t.FtFilterableTableCssVariables=Li,t.RowClickEvent=Ti,Object.defineProperty(t,"i",{value:!0})}({});
1282
+ `,Ti([o({attribute:!1})],Hi.prototype,"data",void 0),Ti([o({attribute:!1})],Hi.prototype,"columns",void 0),Ti([o({attribute:!1})],Hi.prototype,"sort",void 0),Ti([o()],Hi.prototype,"stickyHeaders",void 0),Ti([n()],Hi.prototype,"currentSort",void 0),p("ft-filterable-table")(Hi),t.FtFilterableTable=Hi,t.FtFilterableTableCssVariables=Ii,t.RowClickEvent=Li,Object.defineProperty(t,"i",{value:!0})}({});