@fluid-topics/ft-filterable-table 1.0.58 → 1.0.59

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,s=new WeakMap,n=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,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);h(s,a,l);const c={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,c),this._definitionsByClass.set(s,c);let d=i.call(o,t);d||(d=p(t),e.call(o,t,d)),this===window.customElements&&(r.set(s,c),c.standInClass=d);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),u(t,c,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,d=t=>{let e=t.getRootNode();if(!c(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=d(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(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)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const b=(t,e,i=void 0)=>{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}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const g=(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(g(Element,"innerHTML"),g(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!==s.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 n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),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=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Yt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=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,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);h(s,a,l);const c={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,c),this._definitionsByClass.set(s,c);let d=i.call(o,t);d||(d=p(t),e.call(o,t,d)),this===window.customElements&&(r.set(s,c),c.standInClass=d);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),u(t,c,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,d=t=>{let e=t.getRootNode();if(!c(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=d(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(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)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const b=(t,e,i=void 0)=>{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}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const g=(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(g(Element,"innerHTML"),g(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!==s.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 n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),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=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Qt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -99,17 +99,17 @@ var vt,bt;let gt=class extends M{constructor(){super(...arguments),this.renderOp
99
99
  display: inline-block;
100
100
  width: 0;
101
101
  }
102
- `;var Ft,Ut,jt;window.ftReduxStores||(window.ftReduxStores={});const Bt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(jt=null===(Ut=null===(Ft=window.safari)||void 0===Ft?void 0:Ft.pushNotification)||void 0===Ut?void 0:Ut.toString())&&void 0!==jt?jt:""),Dt=1,It=2,At=t=>(...e)=>({_$litDirective$:t,values:e});
102
+ `;window.ftReduxStores||(window.ftReduxStores={});const Ft=Symbol("elementInternals");function Ut(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Ft].form}constructor(...t){super(t),this[Ft]=this.attachInternals(),this[Ft].role=e}setFormValue(t){this[Ft].setFormValue(t)}}}var jt,Bt,Dt;const It=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Dt=null===(Bt=null===(jt=window.safari)||void 0===jt?void 0:jt.pushNotification)||void 0===Bt?void 0:Bt.toString())&&void 0!==Dt?Dt:""),At=1,Pt=2,Lt=t=>(...e)=>({_$litDirective$:t,values:e});
103
103
  /**
104
104
  * @license
105
105
  * Copyright 2017 Google LLC
106
106
  * SPDX-License-Identifier: BSD-3-Clause
107
- */class Pt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
107
+ */class Tt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
108
108
  /**
109
109
  * @license
110
110
  * Copyright 2020 Google LLC
111
111
  * SPDX-License-Identifier: BSD-3-Clause
112
- */const{I:Lt}=ut,Tt=()=>document.createComment(""),_t=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Tt(),n),o=s.insertBefore(Tt(),n);i=new Lt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Zt=(t,e,i=t)=>(t._$AI(e,i),t),Ht={},Wt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Kt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Vt=At(class extends Pt{constructor(t){if(super(t),t.type!==It)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.ht=l,r;const a=null!==(s=this.ht)&&void 0!==s?s:this.ht=[],c=[];let d,p,h=0,f=n.length-1,u=0,x=r.length-1;for(;h<=f&&u<=x;)if(null===n[h])h++;else if(null===n[f])f--;else if(a[h]===l[u])c[u]=Zt(n[h],r[u]),h++,u++;else if(a[f]===l[x])c[x]=Zt(n[f],r[x]),f--,x--;else if(a[h]===l[x])c[x]=Zt(n[h],r[x]),_t(t,c[x+1],n[h]),h++,x--;else if(a[f]===l[u])c[u]=Zt(n[f],r[u]),_t(t,n[h],n[f]),f--,u++;else if(void 0===d&&(d=Kt(l,u,x),p=Kt(a,h,f)),d.has(a[h]))if(d.has(a[f])){const e=p.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=_t(t,n[h]);Zt(e,r[u]),c[u]=e}else c[u]=Zt(i,r[u]),_t(t,n[h],i),n[e]=null;u++}else Wt(n[f]),f--;else Wt(n[h]),h++;for(;u<=x;){const e=_t(t,c[x+1]);Zt(e,r[u]),c[u++]=e}for(;h<=f;){const t=n[h++];null!==t&&Wt(t)}return this.ht=l,((t,e=Ht)=>{t._$AH=e})(t,c),Q}});
112
+ */const{I:_t}=ut,Zt=()=>document.createComment(""),Ht=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Zt(),n),o=s.insertBefore(Zt(),n);i=new _t(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Wt=(t,e,i=t)=>(t._$AI(e,i),t),Kt={},Vt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Jt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},qt=Lt(class extends Tt{constructor(t){if(super(t),t.type!==Pt)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.ht=l,r;const a=null!==(s=this.ht)&&void 0!==s?s:this.ht=[],c=[];let d,p,h=0,f=n.length-1,u=0,x=r.length-1;for(;h<=f&&u<=x;)if(null===n[h])h++;else if(null===n[f])f--;else if(a[h]===l[u])c[u]=Wt(n[h],r[u]),h++,u++;else if(a[f]===l[x])c[x]=Wt(n[f],r[x]),f--,x--;else if(a[h]===l[x])c[x]=Wt(n[h],r[x]),Ht(t,c[x+1],n[h]),h++,x--;else if(a[f]===l[u])c[u]=Wt(n[f],r[u]),Ht(t,n[h],n[f]),f--,u++;else if(void 0===d&&(d=Jt(l,u,x),p=Jt(a,h,f)),d.has(a[h]))if(d.has(a[f])){const e=p.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Ht(t,n[h]);Wt(e,r[u]),c[u]=e}else c[u]=Wt(i,r[u]),Ht(t,n[h],i),n[e]=null;u++}else Vt(n[f]),f--;else Vt(n[h]),h++;for(;u<=x;){const e=Ht(t,c[x+1]);Wt(e,r[u]),c[u++]=e}for(;h<=f;){const t=n[h++];null!==t&&Vt(t)}return this.ht=l,((t,e=Kt)=>{t._$AH=e})(t,c),Q}});
113
113
  /**
114
114
  * @license
115
115
  * Copyright 2017 Google LLC
@@ -120,132 +120,132 @@ var vt,bt;let gt=class extends M{constructor(){super(...arguments),this.renderOp
120
120
  * Copyright 2017 Google LLC
121
121
  * SPDX-License-Identifier: BSD-3-Clause
122
122
  */
123
- let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this.ft=void 0,this.et=t;if(t===Q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Jt.directiveName="unsafeHTML",Jt.resultType=1;const qt=At(Jt),Xt=At(class extends Pt{constructor(t){var e;if(super(t),t.type!==Dt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Q}}),Yt=Symbol.for(""),Gt=t=>{if((null==t?void 0:t.r)===Yt)return null==t?void 0:t._$litStatic$},Qt=t=>({_$litStatic$:t,r:Yt}),te=new Map,ee=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,c=0,d=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(n=i[c],s=Gt(n));)a+=s+e[++c],d=!0;c!==o&&l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),d){const t=r.join("$$lit$$");void 0===(e=te.get(t))&&(r.raw=r,te.set(t,e=r)),i=l}return t(e,...i)})(G);
123
+ let Xt=class extends Tt{constructor(t){if(super(t),this.et=tt,t.type!==Pt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this.ft=void 0,this.et=t;if(t===Q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Xt.directiveName="unsafeHTML",Xt.resultType=1;const Yt=Lt(Xt),Gt=Lt(class extends Tt{constructor(t){var e;if(super(t),t.type!==At||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Q}}),Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void 0:t._$litStatic$},ee=t=>({_$litStatic$:t,r:Qt}),ie=new Map,oe=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,c=0,d=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(n=i[c],s=te(n));)a+=s+e[++c],d=!0;c!==o&&l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),d){const t=r.join("$$lit$$");void 0===(e=ie.get(t))&&(r.raw=r,ie.set(t,e=r)),i=l}return t(e,...i)})(G);
124
124
  /**
125
125
  * @license
126
126
  * Copyright 2018 Google LLC
127
127
  * SPDX-License-Identifier: BSD-3-Clause
128
- */var ie;!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"}(ie||(ie={}));const oe=mt.extend("--ft-typography-font-family",wt.titleFont),se=mt.extend("--ft-typography-font-family",wt.contentFont),ne={fontFamily:se,fontSize:mt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:mt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:mt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:mt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:mt.create("--ft-typography-text-transform","UNKNOWN","inherit")},re=mt.extend("--ft-typography-title-font-family",oe),le=mt.extend("--ft-typography-title-font-size",ne.fontSize,"20px"),ae=mt.extend("--ft-typography-title-font-weight",ne.fontWeight,"normal"),ce=mt.extend("--ft-typography-title-letter-spacing",ne.letterSpacing,"0.15px"),de=mt.extend("--ft-typography-title-line-height",ne.lineHeight,"1.2"),pe=mt.extend("--ft-typography-title-text-transform",ne.textTransform,"inherit"),he=mt.extend("--ft-typography-title-dense-font-family",oe),fe=mt.extend("--ft-typography-title-dense-font-size",ne.fontSize,"14px"),ue=mt.extend("--ft-typography-title-dense-font-weight",ne.fontWeight,"normal"),xe=mt.extend("--ft-typography-title-dense-letter-spacing",ne.letterSpacing,"0.105px"),ve=mt.extend("--ft-typography-title-dense-line-height",ne.lineHeight,"1.7"),be=mt.extend("--ft-typography-title-dense-text-transform",ne.textTransform,"inherit"),ge=mt.extend("--ft-typography-subtitle1-font-family",se),ye=mt.extend("--ft-typography-subtitle1-font-size",ne.fontSize,"16px"),me=mt.extend("--ft-typography-subtitle1-font-weight",ne.fontWeight,"600"),$e=mt.extend("--ft-typography-subtitle1-letter-spacing",ne.letterSpacing,"0.144px"),we=mt.extend("--ft-typography-subtitle1-line-height",ne.lineHeight,"1.5"),Oe=mt.extend("--ft-typography-subtitle1-text-transform",ne.textTransform,"inherit"),Se=mt.extend("--ft-typography-subtitle2-font-family",se),ke=mt.extend("--ft-typography-subtitle2-font-size",ne.fontSize,"14px"),Ee=mt.extend("--ft-typography-subtitle2-font-weight",ne.fontWeight,"normal"),Ce=mt.extend("--ft-typography-subtitle2-letter-spacing",ne.letterSpacing,"0.098px"),Ne=mt.extend("--ft-typography-subtitle2-line-height",ne.lineHeight,"1.7"),Re=mt.extend("--ft-typography-subtitle2-text-transform",ne.textTransform,"inherit"),Me={fontFamily:mt.extend("--ft-typography-body1-font-family",se),fontSize:mt.extend("--ft-typography-body1-font-size",ne.fontSize,"16px"),fontWeight:mt.extend("--ft-typography-body1-font-weight",ne.fontWeight,"normal"),letterSpacing:mt.extend("--ft-typography-body1-letter-spacing",ne.letterSpacing,"0.496px"),lineHeight:mt.extend("--ft-typography-body1-line-height",ne.lineHeight,"1.5"),textTransform:mt.extend("--ft-typography-body1-text-transform",ne.textTransform,"inherit")},ze=mt.extend("--ft-typography-body2-font-family",se),Fe=mt.extend("--ft-typography-body2-font-size",ne.fontSize,"14px"),Ue=mt.extend("--ft-typography-body2-font-weight",ne.fontWeight,"normal"),je=mt.extend("--ft-typography-body2-letter-spacing",ne.letterSpacing,"0.252px"),Be=mt.extend("--ft-typography-body2-line-height",ne.lineHeight,"1.4"),De=mt.extend("--ft-typography-body2-text-transform",ne.textTransform,"inherit"),Ie={fontFamily:mt.extend("--ft-typography-caption-font-family",se),fontSize:mt.extend("--ft-typography-caption-font-size",ne.fontSize,"12px"),fontWeight:mt.extend("--ft-typography-caption-font-weight",ne.fontWeight,"normal"),letterSpacing:mt.extend("--ft-typography-caption-letter-spacing",ne.letterSpacing,"0.396px"),lineHeight:mt.extend("--ft-typography-caption-line-height",ne.lineHeight,"1.33"),textTransform:mt.extend("--ft-typography-caption-text-transform",ne.textTransform,"inherit")},Ae=mt.extend("--ft-typography-breadcrumb-font-family",se),Pe=mt.extend("--ft-typography-breadcrumb-font-size",ne.fontSize,"10px"),Le=mt.extend("--ft-typography-breadcrumb-font-weight",ne.fontWeight,"normal"),Te=mt.extend("--ft-typography-breadcrumb-letter-spacing",ne.letterSpacing,"0.33px"),_e=mt.extend("--ft-typography-breadcrumb-line-height",ne.lineHeight,"1.6"),Ze=mt.extend("--ft-typography-breadcrumb-text-transform",ne.textTransform,"inherit"),He=mt.extend("--ft-typography-overline-font-family",se),We=mt.extend("--ft-typography-overline-font-size",ne.fontSize,"10px"),Ke=mt.extend("--ft-typography-overline-font-weight",ne.fontWeight,"normal"),Ve=mt.extend("--ft-typography-overline-letter-spacing",ne.letterSpacing,"1.5px"),Je=mt.extend("--ft-typography-overline-line-height",ne.lineHeight,"1.6"),qe=mt.extend("--ft-typography-overline-text-transform",ne.textTransform,"uppercase"),Xe={fontFamily:mt.extend("--ft-typography-button-font-family",se),fontSize:mt.extend("--ft-typography-button-font-size",ne.fontSize,"14px"),fontWeight:mt.extend("--ft-typography-button-font-weight",ne.fontWeight,"600"),letterSpacing:mt.extend("--ft-typography-button-letter-spacing",ne.letterSpacing,"1.246px"),lineHeight:mt.extend("--ft-typography-button-line-height",ne.lineHeight,"1.15"),textTransform:mt.extend("--ft-typography-button-text-transform",ne.textTransform,"uppercase")},Ye=y`
128
+ */var se;!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"}(se||(se={}));const ne=mt.extend("--ft-typography-font-family",wt.titleFont),re=mt.extend("--ft-typography-font-family",wt.contentFont),le={fontFamily:re,fontSize:mt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:mt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:mt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:mt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:mt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ae=mt.extend("--ft-typography-title-font-family",ne),ce=mt.extend("--ft-typography-title-font-size",le.fontSize,"20px"),de=mt.extend("--ft-typography-title-font-weight",le.fontWeight,"normal"),pe=mt.extend("--ft-typography-title-letter-spacing",le.letterSpacing,"0.15px"),he=mt.extend("--ft-typography-title-line-height",le.lineHeight,"1.2"),fe=mt.extend("--ft-typography-title-text-transform",le.textTransform,"inherit"),ue=mt.extend("--ft-typography-title-dense-font-family",ne),xe=mt.extend("--ft-typography-title-dense-font-size",le.fontSize,"14px"),ve=mt.extend("--ft-typography-title-dense-font-weight",le.fontWeight,"normal"),be=mt.extend("--ft-typography-title-dense-letter-spacing",le.letterSpacing,"0.105px"),ge=mt.extend("--ft-typography-title-dense-line-height",le.lineHeight,"1.7"),ye=mt.extend("--ft-typography-title-dense-text-transform",le.textTransform,"inherit"),me=mt.extend("--ft-typography-subtitle1-font-family",re),$e=mt.extend("--ft-typography-subtitle1-font-size",le.fontSize,"16px"),we=mt.extend("--ft-typography-subtitle1-font-weight",le.fontWeight,"600"),Oe=mt.extend("--ft-typography-subtitle1-letter-spacing",le.letterSpacing,"0.144px"),Se=mt.extend("--ft-typography-subtitle1-line-height",le.lineHeight,"1.5"),ke=mt.extend("--ft-typography-subtitle1-text-transform",le.textTransform,"inherit"),Ee=mt.extend("--ft-typography-subtitle2-font-family",re),Ce=mt.extend("--ft-typography-subtitle2-font-size",le.fontSize,"14px"),Ne=mt.extend("--ft-typography-subtitle2-font-weight",le.fontWeight,"normal"),Re=mt.extend("--ft-typography-subtitle2-letter-spacing",le.letterSpacing,"0.098px"),Me=mt.extend("--ft-typography-subtitle2-line-height",le.lineHeight,"1.7"),ze=mt.extend("--ft-typography-subtitle2-text-transform",le.textTransform,"inherit"),Fe={fontFamily:mt.extend("--ft-typography-body1-font-family",re),fontSize:mt.extend("--ft-typography-body1-font-size",le.fontSize,"16px"),fontWeight:mt.extend("--ft-typography-body1-font-weight",le.fontWeight,"normal"),letterSpacing:mt.extend("--ft-typography-body1-letter-spacing",le.letterSpacing,"0.496px"),lineHeight:mt.extend("--ft-typography-body1-line-height",le.lineHeight,"1.5"),textTransform:mt.extend("--ft-typography-body1-text-transform",le.textTransform,"inherit")},Ue=mt.extend("--ft-typography-body2-font-family",re),je=mt.extend("--ft-typography-body2-font-size",le.fontSize,"14px"),Be=mt.extend("--ft-typography-body2-font-weight",le.fontWeight,"normal"),De=mt.extend("--ft-typography-body2-letter-spacing",le.letterSpacing,"0.252px"),Ie=mt.extend("--ft-typography-body2-line-height",le.lineHeight,"1.4"),Ae=mt.extend("--ft-typography-body2-text-transform",le.textTransform,"inherit"),Pe={fontFamily:mt.extend("--ft-typography-caption-font-family",re),fontSize:mt.extend("--ft-typography-caption-font-size",le.fontSize,"12px"),fontWeight:mt.extend("--ft-typography-caption-font-weight",le.fontWeight,"normal"),letterSpacing:mt.extend("--ft-typography-caption-letter-spacing",le.letterSpacing,"0.396px"),lineHeight:mt.extend("--ft-typography-caption-line-height",le.lineHeight,"1.33"),textTransform:mt.extend("--ft-typography-caption-text-transform",le.textTransform,"inherit")},Le=mt.extend("--ft-typography-breadcrumb-font-family",re),Te=mt.extend("--ft-typography-breadcrumb-font-size",le.fontSize,"10px"),_e=mt.extend("--ft-typography-breadcrumb-font-weight",le.fontWeight,"normal"),Ze=mt.extend("--ft-typography-breadcrumb-letter-spacing",le.letterSpacing,"0.33px"),He=mt.extend("--ft-typography-breadcrumb-line-height",le.lineHeight,"1.6"),We=mt.extend("--ft-typography-breadcrumb-text-transform",le.textTransform,"inherit"),Ke=mt.extend("--ft-typography-overline-font-family",re),Ve=mt.extend("--ft-typography-overline-font-size",le.fontSize,"10px"),Je=mt.extend("--ft-typography-overline-font-weight",le.fontWeight,"normal"),qe=mt.extend("--ft-typography-overline-letter-spacing",le.letterSpacing,"1.5px"),Xe=mt.extend("--ft-typography-overline-line-height",le.lineHeight,"1.6"),Ye=mt.extend("--ft-typography-overline-text-transform",le.textTransform,"uppercase"),Ge={fontFamily:mt.extend("--ft-typography-button-font-family",re),fontSize:mt.extend("--ft-typography-button-font-size",le.fontSize,"14px"),fontWeight:mt.extend("--ft-typography-button-font-weight",le.fontWeight,"600"),letterSpacing:mt.extend("--ft-typography-button-letter-spacing",le.letterSpacing,"1.246px"),lineHeight:mt.extend("--ft-typography-button-line-height",le.lineHeight,"1.15"),textTransform:mt.extend("--ft-typography-button-text-transform",le.textTransform,"uppercase")},Qe=y`
129
129
  .ft-typography--title {
130
- font-family: ${re};
131
- font-size: ${le};
132
- font-weight: ${ae};
133
- letter-spacing: ${ce};
134
- line-height: ${de};
135
- text-transform: ${pe};
136
- }
137
- `,Ge=y`
138
- .ft-typography--title-dense {
139
- font-family: ${he};
140
- font-size: ${fe};
141
- font-weight: ${ue};
142
- letter-spacing: ${xe};
143
- line-height: ${ve};
144
- text-transform: ${be};
145
- }
146
- `,Qe=y`
147
- .ft-typography--subtitle1 {
148
- font-family: ${ge};
149
- font-size: ${ye};
150
- font-weight: ${me};
151
- letter-spacing: ${$e};
152
- line-height: ${we};
153
- text-transform: ${Oe};
130
+ font-family: ${ae};
131
+ font-size: ${ce};
132
+ font-weight: ${de};
133
+ letter-spacing: ${pe};
134
+ line-height: ${he};
135
+ text-transform: ${fe};
154
136
  }
155
137
  `,ti=y`
156
- .ft-typography--subtitle2 {
157
- font-family: ${Se};
158
- font-size: ${ke};
159
- font-weight: ${Ee};
160
- letter-spacing: ${Ce};
161
- line-height: ${Ne};
162
- text-transform: ${Re};
138
+ .ft-typography--title-dense {
139
+ font-family: ${ue};
140
+ font-size: ${xe};
141
+ font-weight: ${ve};
142
+ letter-spacing: ${be};
143
+ line-height: ${ge};
144
+ text-transform: ${ye};
163
145
  }
164
-
165
146
  `,ei=y`
166
- .ft-typography--body1 {
167
- font-family: ${Me.fontFamily};
168
- font-size: ${Me.fontSize};
169
- font-weight: ${Me.fontWeight};
170
- letter-spacing: ${Me.letterSpacing};
171
- line-height: ${Me.lineHeight};
172
- text-transform: ${Me.textTransform};
147
+ .ft-typography--subtitle1 {
148
+ font-family: ${me};
149
+ font-size: ${$e};
150
+ font-weight: ${we};
151
+ letter-spacing: ${Oe};
152
+ line-height: ${Se};
153
+ text-transform: ${ke};
173
154
  }
174
155
  `,ii=y`
175
- .ft-typography--body2 {
176
- font-family: ${ze};
177
- font-size: ${Fe};
178
- font-weight: ${Ue};
179
- letter-spacing: ${je};
180
- line-height: ${Be};
181
- text-transform: ${De};
156
+ .ft-typography--subtitle2 {
157
+ font-family: ${Ee};
158
+ font-size: ${Ce};
159
+ font-weight: ${Ne};
160
+ letter-spacing: ${Re};
161
+ line-height: ${Me};
162
+ text-transform: ${ze};
182
163
  }
164
+
183
165
  `,oi=y`
184
- .ft-typography--caption {
185
- font-family: ${Ie.fontFamily};
186
- font-size: ${Ie.fontSize};
187
- font-weight: ${Ie.fontWeight};
188
- letter-spacing: ${Ie.letterSpacing};
189
- line-height: ${Ie.lineHeight};
190
- text-transform: ${Ie.textTransform};
166
+ .ft-typography--body1 {
167
+ font-family: ${Fe.fontFamily};
168
+ font-size: ${Fe.fontSize};
169
+ font-weight: ${Fe.fontWeight};
170
+ letter-spacing: ${Fe.letterSpacing};
171
+ line-height: ${Fe.lineHeight};
172
+ text-transform: ${Fe.textTransform};
191
173
  }
192
174
  `,si=y`
193
- .ft-typography--breadcrumb {
194
- font-family: ${Ae};
195
- font-size: ${Pe};
196
- font-weight: ${Le};
197
- letter-spacing: ${Te};
198
- line-height: ${_e};
199
- text-transform: ${Ze};
175
+ .ft-typography--body2 {
176
+ font-family: ${Ue};
177
+ font-size: ${je};
178
+ font-weight: ${Be};
179
+ letter-spacing: ${De};
180
+ line-height: ${Ie};
181
+ text-transform: ${Ae};
200
182
  }
201
183
  `,ni=y`
202
- .ft-typography--overline {
203
- font-family: ${He};
204
- font-size: ${We};
205
- font-weight: ${Ke};
206
- letter-spacing: ${Ve};
207
- line-height: ${Je};
208
- text-transform: ${qe};
184
+ .ft-typography--caption {
185
+ font-family: ${Pe.fontFamily};
186
+ font-size: ${Pe.fontSize};
187
+ font-weight: ${Pe.fontWeight};
188
+ letter-spacing: ${Pe.letterSpacing};
189
+ line-height: ${Pe.lineHeight};
190
+ text-transform: ${Pe.textTransform};
209
191
  }
210
192
  `,ri=y`
211
- .ft-typography--button {
212
- font-family: ${Xe.fontFamily};
213
- font-size: ${Xe.fontSize};
214
- font-weight: ${Xe.fontWeight};
215
- letter-spacing: ${Xe.letterSpacing};
216
- line-height: ${Xe.lineHeight};
217
- text-transform: ${Xe.textTransform};
193
+ .ft-typography--breadcrumb {
194
+ font-family: ${Le};
195
+ font-size: ${Te};
196
+ font-weight: ${_e};
197
+ letter-spacing: ${Ze};
198
+ line-height: ${He};
199
+ text-transform: ${We};
218
200
  }
219
201
  `,li=y`
202
+ .ft-typography--overline {
203
+ font-family: ${Ke};
204
+ font-size: ${Ve};
205
+ font-weight: ${Je};
206
+ letter-spacing: ${qe};
207
+ line-height: ${Xe};
208
+ text-transform: ${Ye};
209
+ }
210
+ `,ai=y`
211
+ .ft-typography--button {
212
+ font-family: ${Ge.fontFamily};
213
+ font-size: ${Ge.fontSize};
214
+ font-weight: ${Ge.fontWeight};
215
+ letter-spacing: ${Ge.letterSpacing};
216
+ line-height: ${Ge.lineHeight};
217
+ text-transform: ${Ge.textTransform};
218
+ }
219
+ `,ci=y`
220
220
  .ft-typography {
221
221
  vertical-align: inherit;
222
222
  }
223
- `;var ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ci extends Rt{constructor(){super(...arguments),this.variant=ie.body1}render(){return this.element?ee`
224
- <${Qt(this.element)}
223
+ `;var di=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class pi extends Rt{constructor(){super(...arguments),this.variant=se.body1}render(){return this.element?oe`
224
+ <${ee(this.element)}
225
225
  class="ft-typography ft-typography--${this.variant}">
226
226
  <slot></slot>
227
- </${Qt(this.element)}>
228
- `:ee`
227
+ </${ee(this.element)}>
228
+ `:oe`
229
229
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
230
- `}}ci.styles=[Ye,Ge,Qe,ti,ei,ii,oi,si,ni,ri,li],ai([o()],ci.prototype,"element",void 0),ai([o()],ci.prototype,"variant",void 0),h("ft-typography")(ci);const di={fontSize:mt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:mt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:mt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:mt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:mt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:mt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:mt.extend("--ft-input-label-border-color",wt.colorOutline),textColor:mt.extend("--ft-input-label-text-color",wt.colorOnSurfaceMedium),disabledTextColor:mt.extend("--ft-input-label-disabled-text-color",wt.colorOnSurfaceDisabled),colorSurface:mt.external(wt.colorSurface,"Design system"),borderRadiusS:mt.external(wt.borderRadiusS,"Design system"),colorError:mt.external(wt.colorError,"Design system")},pi=y`
230
+ `}}pi.styles=[Qe,ti,ei,ii,oi,si,ni,ri,li,ai,ci],di([o()],pi.prototype,"element",void 0),di([o()],pi.prototype,"variant",void 0),h("ft-typography")(pi);const hi={fontSize:mt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:mt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:mt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:mt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:mt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:mt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:mt.extend("--ft-input-label-border-color",wt.colorOutline),textColor:mt.extend("--ft-input-label-text-color",wt.colorOnSurfaceMedium),disabledTextColor:mt.extend("--ft-input-label-disabled-text-color",wt.colorOnSurfaceDisabled),colorSurface:mt.external(wt.colorSurface,"Design system"),borderRadiusS:mt.external(wt.borderRadiusS,"Design system"),colorError:mt.external(wt.colorError,"Design system")},fi=y`
231
231
  .ft-input-label {
232
232
  position: absolute;
233
233
  inset: 0;
234
234
  display: flex;
235
- background-color: ${di.colorSurface};
236
- border-radius: ${di.borderRadiusS} ${di.borderRadiusS} 0 0;
235
+ background-color: ${hi.colorSurface};
236
+ border-radius: ${hi.borderRadiusS} ${hi.borderRadiusS} 0 0;
237
237
  }
238
238
 
239
239
  .ft-input-label--outlined {
240
- border-radius: ${di.borderRadiusS};
240
+ border-radius: ${hi.borderRadiusS};
241
241
  }
242
242
 
243
243
  .ft-input-label {
244
- border-color: ${di.borderColor};
244
+ border-color: ${hi.borderColor};
245
245
  }
246
246
 
247
247
  .ft-input-label.ft-input-label--in-error {
248
- border-color: ${di.colorError}
248
+ border-color: ${hi.colorError}
249
249
  }
250
250
 
251
251
  .ft-input-label:before,
@@ -258,7 +258,7 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
258
258
  }
259
259
 
260
260
  .ft-input-label:before {
261
- width: calc(${di.horizontalSpacing} - 4px);
261
+ width: calc(${hi.horizontalSpacing} - 4px);
262
262
  flex-shrink: 0;
263
263
  }
264
264
 
@@ -274,20 +274,20 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
274
274
  border-bottom-width: 1px;
275
275
  border-bottom-style: solid;
276
276
  border-color: inherit;
277
- color: ${di.textColor};
277
+ color: ${hi.textColor};
278
278
  transition: font-size 250ms, line-height 250ms, color 250ms;
279
- max-width: calc(${di.labelMaxWidth} - 2 * (${di.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
279
+ max-width: calc(${hi.labelMaxWidth} - 2 * (${hi.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
280
280
  text-overflow: ellipsis;
281
- ${$t(Ie.fontSize,di.fontSize)};
282
- ${$t(Ie.lineHeight,di.fontSize)};
281
+ ${$t(Pe.fontSize,hi.fontSize)};
282
+ ${$t(Pe.lineHeight,hi.fontSize)};
283
283
  }
284
284
 
285
285
  .ft-input-label--in-error .ft-input-label--text {
286
- color: ${di.colorError}
286
+ color: ${hi.colorError}
287
287
  }
288
288
 
289
289
  .ft-input-label--disabled .ft-input-label--text {
290
- color: ${di.disabledTextColor};
290
+ color: ${hi.disabledTextColor};
291
291
  }
292
292
 
293
293
  .ft-input-label--hidden-text {
@@ -304,19 +304,19 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
304
304
  overflow: hidden;
305
305
  white-space: nowrap;
306
306
  text-overflow: ellipsis;
307
- padding: ${di.verticalSpacing} 4px;
308
- margin: calc(${di.verticalSpacing} * -1) 0;
307
+ padding: ${hi.verticalSpacing} 4px;
308
+ margin: calc(${hi.verticalSpacing} * -1) 0;
309
309
  max-width: 100%;
310
310
  box-sizing: border-box;
311
311
  }
312
312
 
313
313
  .ft-input-label--raised .ft-input-label--text {
314
- ${$t(Ie.fontSize,di.raisedFontSize)};
315
- ${$t(Ie.lineHeight,di.raisedFontSize)};
314
+ ${$t(Pe.fontSize,hi.raisedFontSize)};
315
+ ${$t(Pe.lineHeight,hi.raisedFontSize)};
316
316
  }
317
317
 
318
318
  .ft-input-label--raised .ft-input-label--floating-text {
319
- top: ${di.verticalSpacing};
319
+ top: ${hi.verticalSpacing};
320
320
  }
321
321
 
322
322
  .ft-input-label--outlined .ft-input-label--text,
@@ -329,28 +329,28 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
329
329
  .ft-input-label--outlined:before {
330
330
  border-left-width: 1px;
331
331
  border-left-style: solid;
332
- border-radius: ${di.borderRadiusS} 0 0 ${di.borderRadiusS};
332
+ border-radius: ${hi.borderRadiusS} 0 0 ${hi.borderRadiusS};
333
333
  }
334
334
 
335
335
  .ft-input-label--outlined:after {
336
336
  border-right-width: 1px;
337
337
  border-right-style: solid;
338
- border-radius: 0 ${di.borderRadiusS} ${di.borderRadiusS} 0;
338
+ border-radius: 0 ${hi.borderRadiusS} ${hi.borderRadiusS} 0;
339
339
  }
340
340
 
341
341
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
342
342
  padding: 2px 4px;
343
- z-index: ${di.raisedZIndex};
344
- background-color: ${di.colorSurface};
345
- border-radius: ${di.borderRadiusS};
343
+ z-index: ${hi.raisedZIndex};
344
+ background-color: ${hi.colorSurface};
345
+ border-radius: ${hi.borderRadiusS};
346
346
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
347
347
  }
348
348
 
349
349
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
350
350
  border-top: none;
351
351
  }
352
- `;var hi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class fi extends Rt{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 G`
353
- <div class="${Xt(t)}">
352
+ `;var ui=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class xi extends Rt{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 G`
353
+ <div class="${Gt(t)}">
354
354
  ${this.text?G`
355
355
  <div class="ft-input-label--text ft-typography--caption">
356
356
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -358,7 +358,7 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
358
358
  </div>
359
359
  `:null}
360
360
  </div>
361
- `}}fi.elementDefinitions={},fi.styles=[oi,pi],hi([o({type:String})],fi.prototype,"text",void 0),hi([o({type:Boolean})],fi.prototype,"raised",void 0),hi([o({type:Boolean})],fi.prototype,"outlined",void 0),hi([o({type:Boolean})],fi.prototype,"disabled",void 0),hi([o({type:Boolean})],fi.prototype,"error",void 0),h("ft-input-label")(fi);const ui=mt.extend("--ft-ripple-color",wt.colorContent),xi={color:ui,backgroundColor:mt.extend("--ft-ripple-background-color",ui),opacityContentOnSurfacePressed:mt.external(wt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:mt.external(wt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:mt.external(wt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:mt.external(wt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:mt.create("--ft-ripple-border-radius","SIZE","0px")},vi=mt.extend("--ft-ripple-color",wt.colorPrimary),bi=vi,gi=mt.extend("--ft-ripple-background-color",vi),yi=mt.extend("--ft-ripple-color",wt.colorSecondary),mi=yi,$i=mt.extend("--ft-ripple-background-color",yi),wi=y`
361
+ `}}xi.elementDefinitions={},xi.styles=[ni,fi],ui([o({type:String})],xi.prototype,"text",void 0),ui([o({type:Boolean})],xi.prototype,"raised",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),h("ft-input-label")(xi);const vi=mt.extend("--ft-ripple-color",wt.colorContent),bi={color:vi,backgroundColor:mt.extend("--ft-ripple-background-color",vi),opacityContentOnSurfacePressed:mt.external(wt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:mt.external(wt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:mt.external(wt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:mt.external(wt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:mt.create("--ft-ripple-border-radius","SIZE","0px")},gi=mt.extend("--ft-ripple-color",wt.colorPrimary),yi=gi,mi=mt.extend("--ft-ripple-background-color",gi),$i=mt.extend("--ft-ripple-color",wt.colorSecondary),wi=$i,Oi=mt.extend("--ft-ripple-background-color",$i),Si=y`
362
362
  :host {
363
363
  display: contents;
364
364
  }
@@ -371,7 +371,7 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
371
371
 
372
372
  .ft-ripple:not(.ft-ripple--unbounded) {
373
373
  overflow: hidden;
374
- border-radius: ${xi.borderRadius};
374
+ border-radius: ${bi.borderRadius};
375
375
  }
376
376
 
377
377
  .ft-ripple .ft-ripple--background,
@@ -405,27 +405,27 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
405
405
  }
406
406
 
407
407
  .ft-ripple .ft-ripple--background {
408
- background-color: ${xi.backgroundColor};
408
+ background-color: ${bi.backgroundColor};
409
409
  }
410
410
 
411
411
  .ft-ripple .ft-ripple--effect {
412
- background-color: ${xi.color};
412
+ background-color: ${bi.color};
413
413
  }
414
414
 
415
415
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
416
- background-color: ${$i};
416
+ background-color: ${Oi};
417
417
  }
418
418
 
419
419
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
420
- background-color: ${mi};
420
+ background-color: ${wi};
421
421
  }
422
422
 
423
423
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
424
- background-color: ${gi};
424
+ background-color: ${mi};
425
425
  }
426
426
 
427
427
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
428
- background-color: ${bi};
428
+ background-color: ${yi};
429
429
  }
430
430
 
431
431
  .ft-ripple .ft-ripple--background {
@@ -455,33 +455,33 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
455
455
  }
456
456
 
457
457
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
458
- opacity: ${xi.opacityContentOnSurfaceHover};
458
+ opacity: ${bi.opacityContentOnSurfaceHover};
459
459
  }
460
460
 
461
461
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
462
- opacity: ${xi.opacityContentOnSurfaceSelected};
462
+ opacity: ${bi.opacityContentOnSurfaceSelected};
463
463
  }
464
464
 
465
465
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
466
- opacity: ${xi.opacityContentOnSurfaceFocused};
466
+ opacity: ${bi.opacityContentOnSurfaceFocused};
467
467
  }
468
468
 
469
469
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
470
- opacity: ${xi.opacityContentOnSurfacePressed};
470
+ opacity: ${bi.opacityContentOnSurfacePressed};
471
471
  transform: translate(-50%, -50%) scale(1);
472
472
  }
473
- `;var Oi,Si,ki=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ei extends Rt{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.originX=0,this.originY=0,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.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.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.isFocusVisible(null==t?void 0:t.target)&&!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 G`
473
+ `;var ki,Ei,Ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ni extends Rt{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.originX=0,this.originY=0,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.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.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.isFocusVisible(null==t?void 0:t.target)&&!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 G`
474
474
  <style>
475
475
  .ft-ripple .ft-ripple--effect {
476
476
  left: ${this.originX}px;
477
477
  top: ${this.originY}px;
478
478
  }
479
479
  </style>
480
- <div class="${Xt(t)}">
480
+ <div class="${Gt(t)}">
481
481
  <div class="ft-ripple--background"></div>
482
482
  <div class="ft-ripple--effect"></div>
483
483
  </div>
484
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ei.elementDefinitions={},Ei.styles=wi,ki([o({type:Boolean})],Ei.prototype,"primary",void 0),ki([o({type:Boolean})],Ei.prototype,"secondary",void 0),ki([o({type:Boolean})],Ei.prototype,"unbounded",void 0),ki([o({type:Boolean})],Ei.prototype,"activated",void 0),ki([o({type:Boolean})],Ei.prototype,"selected",void 0),ki([o({type:Boolean})],Ei.prototype,"disabled",void 0),ki([s()],Ei.prototype,"hovered",void 0),ki([s()],Ei.prototype,"focused",void 0),ki([s()],Ei.prototype,"pressed",void 0),ki([s()],Ei.prototype,"rippling",void 0),ki([s()],Ei.prototype,"originX",void 0),ki([s()],Ei.prototype,"originY",void 0),ki([r(".ft-ripple")],Ei.prototype,"ripple",void 0),ki([r(".ft-ripple--effect")],Ei.prototype,"rippleEffect",void 0),h("ft-ripple")(Ei),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",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.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="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",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="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Oi||(Oi={})),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;"}(Si||(Si={})),new Map([...["abw"].map((t=>[t,Si.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,Si.AUDIO])),...["avi"].map((t=>[t,Si.AVI])),...["chm","xhs"].map((t=>[t,Si.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,Si.CODE])),...["csv"].map((t=>[t,Si.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Si.DITA])),...["epub"].map((t=>[t,Si.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Si.EXCEL])),...["flac"].map((t=>[t,Si.FLAC])),...["gif"].map((t=>[t,Si.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Si.GZIP])),...["html","htm","xhtml"].map((t=>[t,Si.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,Si.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Si.JPEG])),...["json"].map((t=>[t,Si.JSON])),...["m4a","m4p"].map((t=>[t,Si.M4A])),...["mov","qt"].map((t=>[t,Si.MOV])),...["mp3"].map((t=>[t,Si.MP3])),...["mp4","m4v"].map((t=>[t,Si.MP4])),...["ogg","oga"].map((t=>[t,Si.OGG])),...["pdf","ps"].map((t=>[t,Si.PDF])),...["png"].map((t=>[t,Si.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Si.POWERPOINT])),...["rar"].map((t=>[t,Si.RAR])),...["stp"].map((t=>[t,Si.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Si.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,Si.VIDEO])),...["wav"].map((t=>[t,Si.WAV])),...["wma"].map((t=>[t,Si.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Si.WORD])),...["xml","xsl","rdf"].map((t=>[t,Si.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Si.YAML])),...["zip"].map((t=>[t,Si.ZIP]))]);const Ci={size:mt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:mt.extend("--ft-icon-fluid-topics-font-family",mt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:mt.extend("--ft-icon-file-format-font-family",mt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:mt.extend("--ft-icon-material-font-family",mt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:mt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ni=y`
484
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ni.elementDefinitions={},Ni.styles=Si,Ci([o({type:Boolean})],Ni.prototype,"primary",void 0),Ci([o({type:Boolean})],Ni.prototype,"secondary",void 0),Ci([o({type:Boolean})],Ni.prototype,"unbounded",void 0),Ci([o({type:Boolean})],Ni.prototype,"activated",void 0),Ci([o({type:Boolean})],Ni.prototype,"selected",void 0),Ci([o({type:Boolean})],Ni.prototype,"disabled",void 0),Ci([s()],Ni.prototype,"hovered",void 0),Ci([s()],Ni.prototype,"focused",void 0),Ci([s()],Ni.prototype,"pressed",void 0),Ci([s()],Ni.prototype,"rippling",void 0),Ci([s()],Ni.prototype,"originX",void 0),Ci([s()],Ni.prototype,"originY",void 0),Ci([r(".ft-ripple")],Ni.prototype,"ripple",void 0),Ci([r(".ft-ripple--effect")],Ni.prototype,"rippleEffect",void 0),h("ft-ripple")(Ni),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",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.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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",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="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(ki||(ki={})),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;"}(Ei||(Ei={})),new Map([...["abw"].map((t=>[t,Ei.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,Ei.AUDIO])),...["avi"].map((t=>[t,Ei.AVI])),...["chm","xhs"].map((t=>[t,Ei.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,Ei.CODE])),...["csv"].map((t=>[t,Ei.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ei.DITA])),...["epub"].map((t=>[t,Ei.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ei.EXCEL])),...["flac"].map((t=>[t,Ei.FLAC])),...["gif"].map((t=>[t,Ei.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ei.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ei.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,Ei.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ei.JPEG])),...["json"].map((t=>[t,Ei.JSON])),...["m4a","m4p"].map((t=>[t,Ei.M4A])),...["mov","qt"].map((t=>[t,Ei.MOV])),...["mp3"].map((t=>[t,Ei.MP3])),...["mp4","m4v"].map((t=>[t,Ei.MP4])),...["ogg","oga"].map((t=>[t,Ei.OGG])),...["pdf","ps"].map((t=>[t,Ei.PDF])),...["png"].map((t=>[t,Ei.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ei.POWERPOINT])),...["rar"].map((t=>[t,Ei.RAR])),...["stp"].map((t=>[t,Ei.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ei.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,Ei.VIDEO])),...["wav"].map((t=>[t,Ei.WAV])),...["wma"].map((t=>[t,Ei.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ei.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ei.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ei.YAML])),...["zip"].map((t=>[t,Ei.ZIP]))]);const Ri={size:mt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:mt.extend("--ft-icon-fluid-topics-font-family",mt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:mt.extend("--ft-icon-file-format-font-family",mt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:mt.extend("--ft-icon-material-font-family",mt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:mt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Mi=y`
485
485
  :host, i.ft-icon {
486
486
  display: inline-flex;
487
487
  align-items: center;
@@ -490,14 +490,14 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
490
490
  }
491
491
 
492
492
  :host {
493
- width: ${Ci.size};
494
- height: ${Ci.size};
493
+ width: ${Ri.size};
494
+ height: ${Ri.size};
495
495
  }
496
496
 
497
497
  i.ft-icon {
498
498
  width: 100%;
499
499
  height: 100%;
500
- font-size: ${Ci.size};
500
+ font-size: ${Ri.size};
501
501
  line-height: 1;
502
502
  font-weight: normal;
503
503
  text-transform: none;
@@ -508,33 +508,33 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
508
508
  text-rendering: auto;
509
509
  -webkit-font-smoothing: antialiased;
510
510
  -moz-osx-font-smoothing: grayscale;
511
- vertical-align: ${Ci.verticalAlign};
511
+ vertical-align: ${Ri.verticalAlign};
512
512
  }
513
513
 
514
514
  i.ft-icon.ft-icon--fluid-topics {
515
- font-family: ${Ci.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
515
+ font-family: ${Ri.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
516
516
 
517
517
  /* Ugly fix because font is broken */
518
- font-size: calc(0.75 * ${Ci.size});
519
- line-height: ${Ci.size};
518
+ font-size: calc(0.75 * ${Ri.size});
519
+ line-height: ${Ri.size};
520
520
  position: relative;
521
521
  top: -4%;
522
522
  justify-content: center;
523
523
  }
524
524
 
525
525
  .ft-icon--file-format {
526
- font-family: ${Ci.fileFormatFontFamily}, ft-mime, sans-serif;
526
+ font-family: ${Ri.fileFormatFontFamily}, ft-mime, sans-serif;
527
527
  }
528
528
 
529
529
  .ft-icon--material {
530
- font-family: ${Ci.materialFontFamily}, "Material Icons", sans-serif;
530
+ font-family: ${Ri.materialFontFamily}, "Material Icons", sans-serif;
531
531
  }
532
- `;var Ri;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ri||(Ri={}));var Mi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class zi extends Rt{constructor(){super(...arguments),this.resolvedIcon=tt}render(){const t=this.variant&&Object.values(Ri).includes(this.variant)?this.variant:Ri.fluid_topics,e=t!==Ri.material||!!this.value;return G`
532
+ `;var zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(zi||(zi={}));var Fi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ui extends Rt{constructor(){super(...arguments),this.resolvedIcon=tt}render(){const t=this.variant&&Object.values(zi).includes(this.variant)?this.variant:zi.fluid_topics,e=t!==zi.material||!!this.value;return G`
533
533
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
534
- ${qt(this.resolvedIcon)}
534
+ ${Yt(this.resolvedIcon)}
535
535
  <slot ?hidden=${e}></slot>
536
536
  </i>
537
- `}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ri.file_format:this.resolvedIcon=null!==(t=Si[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ri.material:this.resolvedIcon=this.value||tt;break;default:this.resolvedIcon=null!==(e=Oi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}zi.elementDefinitions={},zi.styles=Ni,Mi([o()],zi.prototype,"variant",void 0),Mi([o()],zi.prototype,"value",void 0),Mi([s()],zi.prototype,"resolvedIcon",void 0),Mi([r("slot")],zi.prototype,"slottedContent",void 0),h("ft-icon")(zi);const Fi={labelSize:mt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:mt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:mt.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:mt.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:mt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:mt.extend("--ft-select-selected-option-color",wt.colorOnSurface),helperColor:mt.extend("--ft-select-helper-color",wt.colorOnSurfaceMedium),optionsColor:mt.extend("--ft-select-options-color",wt.colorOnSurface),optionsZIndex:mt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:mt.external(wt.colorSurface,"Design system"),colorOnSurfaceDisabled:mt.external(wt.colorOnSurfaceDisabled,"Design system"),colorPrimary:mt.external(wt.colorPrimary,"Design system"),borderRadiusS:mt.external(wt.borderRadiusS,"Design system"),elevation02:mt.external(wt.elevation02,"Design system"),colorError:mt.external(wt.colorError,"Design system")},Ui=y`
537
+ `}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case zi.file_format:this.resolvedIcon=null!==(t=Ei[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case zi.material:this.resolvedIcon=this.value||tt;break;default:this.resolvedIcon=null!==(e=ki[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ui.elementDefinitions={},Ui.styles=Mi,Fi([o()],Ui.prototype,"variant",void 0),Fi([o()],Ui.prototype,"value",void 0),Fi([s()],Ui.prototype,"resolvedIcon",void 0),Fi([r("slot")],Ui.prototype,"slottedContent",void 0),h("ft-icon")(Ui);const ji={labelSize:mt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:mt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:mt.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:mt.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:mt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:mt.extend("--ft-select-selected-option-color",wt.colorOnSurface),helperColor:mt.extend("--ft-select-helper-color",wt.colorOnSurfaceMedium),optionsColor:mt.extend("--ft-select-options-color",wt.colorOnSurface),optionsZIndex:mt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:mt.external(wt.colorSurface,"Design system"),colorOnSurfaceDisabled:mt.external(wt.colorOnSurfaceDisabled,"Design system"),colorPrimary:mt.external(wt.colorPrimary,"Design system"),borderRadiusS:mt.external(wt.borderRadiusS,"Design system"),elevation02:mt.external(wt.elevation02,"Design system"),colorError:mt.external(wt.colorError,"Design system")},Bi=y`
538
538
  *:focus {
539
539
  outline: none;
540
540
  }
@@ -548,7 +548,7 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
548
548
  .ft-select--main-panel {
549
549
  position: relative;
550
550
  display: flex;
551
- height: calc(4 * ${Fi.verticalSpacing} + ${Fi.labelSize} + ${Fi.selectedOptionSize});
551
+ height: calc(4 * ${ji.verticalSpacing} + ${ji.labelSize} + ${ji.selectedOptionSize});
552
552
  }
553
553
 
554
554
  .ft-select--input-panel {
@@ -557,17 +557,17 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
557
557
  display: flex;
558
558
  align-items: center;
559
559
  overflow: hidden;
560
- padding-left: ${Fi.horizontalSpacing};
561
- padding-right: ${Fi.horizontalSpacing};
560
+ padding-left: ${ji.horizontalSpacing};
561
+ padding-right: ${ji.horizontalSpacing};
562
562
  gap: 8px;
563
- color: ${Fi.selectedOptionColor};
564
- ${$t(xi.color,Fi.selectedOptionColor)};
563
+ color: ${ji.selectedOptionColor};
564
+ ${$t(bi.color,ji.selectedOptionColor)};
565
565
  }
566
566
 
567
567
  .ft-select--input-panel,
568
568
  .ft-select--option {
569
- ${$t(xi.opacityContentOnSurfaceHover,"0.08")};
570
- ${$t(xi.opacityContentOnSurfacePressed,"0.04")};
569
+ ${$t(bi.opacityContentOnSurfaceHover,"0.08")};
570
+ ${$t(bi.opacityContentOnSurfacePressed,"0.04")};
571
571
  }
572
572
 
573
573
  .ft-select--input-panel > *:not(ft-ripple),
@@ -577,7 +577,7 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
577
577
 
578
578
  .ft-select--disabled .ft-select--input-panel,
579
579
  .ft-select--disabled .ft-select--option {
580
- color: ${Fi.colorOnSurfaceDisabled};
580
+ color: ${ji.colorOnSurfaceDisabled};
581
581
  }
582
582
 
583
583
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -586,20 +586,20 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
586
586
  }
587
587
 
588
588
  ft-input-label {
589
- ${$t(di.fontSize,Fi.selectedOptionSize)};
590
- ${$t(di.raisedFontSize,Fi.labelSize)};
591
- ${$t(di.verticalSpacing,Fi.verticalSpacing)};
592
- ${$t(di.horizontalSpacing,Fi.horizontalSpacing)};
593
- ${$t(di.labelMaxWidth,`calc(100% - ${Ci.size} - 8px)`)};
589
+ ${$t(hi.fontSize,ji.selectedOptionSize)};
590
+ ${$t(hi.raisedFontSize,ji.labelSize)};
591
+ ${$t(hi.verticalSpacing,ji.verticalSpacing)};
592
+ ${$t(hi.horizontalSpacing,ji.horizontalSpacing)};
593
+ ${$t(hi.labelMaxWidth,`calc(100% - ${Ri.size} - 8px)`)};
594
594
  }
595
595
 
596
596
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
597
- color: ${Fi.colorPrimary};
597
+ color: ${ji.colorPrimary};
598
598
  }
599
599
 
600
600
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
601
- ${$t(di.borderColor,Fi.colorPrimary)};
602
- ${$t(di.textColor,Fi.colorPrimary)};
601
+ ${$t(hi.borderColor,ji.colorPrimary)};
602
+ ${$t(hi.textColor,ji.colorPrimary)};
603
603
  }
604
604
 
605
605
  .ft-select--selected-option {
@@ -609,12 +609,12 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
609
609
  overflow: hidden;
610
610
  white-space: nowrap;
611
611
  text-overflow: ellipsis;
612
- ${$t(Me.fontSize,Fi.selectedOptionSize)};
613
- ${$t(Me.lineHeight,Fi.selectedOptionSize)};
612
+ ${$t(Fe.fontSize,ji.selectedOptionSize)};
613
+ ${$t(Fe.lineHeight,ji.selectedOptionSize)};
614
614
  }
615
615
 
616
616
  .ft-select--in-error .ft-select--selected-option {
617
- color: ${Fi.colorError};
617
+ color: ${ji.colorError};
618
618
  }
619
619
 
620
620
  ft-icon {
@@ -626,16 +626,16 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
626
626
  }
627
627
 
628
628
  .ft-select--filled .ft-select--input-panel {
629
- border-radius: ${Fi.borderRadiusS} ${Fi.borderRadiusS} 0 0;
629
+ border-radius: ${ji.borderRadiusS} ${ji.borderRadiusS} 0 0;
630
630
  }
631
631
 
632
632
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
633
633
  align-self: stretch;
634
- padding-top: calc(${Fi.labelSize} + 2 * ${Fi.verticalSpacing});
634
+ padding-top: calc(${ji.labelSize} + 2 * ${ji.verticalSpacing});
635
635
  }
636
636
 
637
637
  .ft-select--outlined .ft-select--input-panel {
638
- border-radius: ${Fi.borderRadiusS};
638
+ border-radius: ${ji.borderRadiusS};
639
639
  }
640
640
 
641
641
  .ft-select--options {
@@ -644,10 +644,10 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
644
644
  top: 100%;
645
645
  left: 0;
646
646
  right: 0;
647
- color: ${Fi.optionsColor};
648
- background: ${Fi.colorSurface};
649
- z-index: ${Fi.optionsZIndex};
650
- box-shadow: ${Fi.elevation02};
647
+ color: ${ji.optionsColor};
648
+ background: ${ji.colorSurface};
649
+ z-index: ${ji.optionsZIndex};
650
+ box-shadow: ${ji.elevation02};
651
651
  }
652
652
 
653
653
  .ft-select--fixed .ft-select--options {
@@ -658,13 +658,13 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
658
658
 
659
659
  .ft-select--options-displayed .ft-select--options {
660
660
  display: block;
661
- max-height: ${Fi.optionsHeight};
661
+ max-height: ${ji.optionsHeight};
662
662
  overflow-y: auto;
663
663
  }
664
664
 
665
665
  .ft-select--option {
666
666
  position: relative;
667
- padding: 4px ${Fi.horizontalSpacing};
667
+ padding: 4px ${ji.horizontalSpacing};
668
668
  min-height: 32px;
669
669
  display: flex;
670
670
  align-items: center;
@@ -676,15 +676,15 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
676
676
  }
677
677
 
678
678
  .ft-select--helper-text {
679
- padding: 0 ${Fi.horizontalSpacing};
680
- color: ${Fi.helperColor};
679
+ padding: 0 ${ji.horizontalSpacing};
680
+ color: ${ji.helperColor};
681
681
  }
682
682
 
683
683
  .ft-select--in-error .ft-select--helper-text {
684
- color: ${Fi.colorError};
684
+ color: ${ji.colorError};
685
685
  }
686
- `;var ji=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Bi extends Rt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return G``}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Bi.elementDefinitions={},ji([o({type:String})],Bi.prototype,"label",void 0),ji([o({type:Object,converter:t=>t})],Bi.prototype,"value",void 0),ji([o({type:Boolean,reflect:!0})],Bi.prototype,"selected",void 0);class Di extends Rt{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,s;let n=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":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return G`
687
- <div class="${Xt(a)}" part="container">
686
+ `;var Di=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ii extends Rt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return G``}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ii.elementDefinitions={},Di([o({type:String})],Ii.prototype,"label",void 0),Di([o({type:Object,converter:t=>t})],Ii.prototype,"value",void 0),Di([o({type:Boolean,reflect:!0})],Ii.prototype,"selected",void 0);class Ai extends Rt{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,s;let n=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":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return G`
687
+ <div class="${Gt(a)}" part="container">
688
688
  <div class="ft-select--main-panel" part="main-panel">
689
689
  <ft-input-label text="${this.label}"
690
690
  part="label"
@@ -711,7 +711,7 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
711
711
  part="options"
712
712
  @keydown=${this.onOptionsKeyDown}
713
713
  innerrole="listbox">
714
- ${Vt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
714
+ ${qt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
715
715
  </div>
716
716
  </div>
717
717
  ${this.helper?G`
@@ -722,7 +722,7 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
722
722
  @option-change=${this.updateOptionsFromSlot}
723
723
  ></slot>
724
724
  `}renderOption(t){let e=this.selectedOption===t;return G`
725
- <div class="${Xt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
725
+ <div class="${Gt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
726
726
  part="option"
727
727
  tabindex="0"
728
728
  data-value="${t.value}"
@@ -731,13 +731,13 @@ let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==It)throw
731
731
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
732
732
  <span>${t.label}</span>
733
733
  </div>
734
- `}update(t){super.update(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),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;super.contentAvailableCallback(t),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,s,n;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!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n: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){var e,i;if(!p(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Di.elementDefinitions={"ft-input-label":fi,"ft-typography":ci,"ft-ripple":Ei,"ft-icon":zi},Di.styles=[ii,oi,Ui],ji([o({type:String})],Di.prototype,"label",void 0),ji([o({type:String})],Di.prototype,"helper",void 0),ji([o({type:Boolean})],Di.prototype,"outlined",void 0),ji([o({type:Boolean})],Di.prototype,"disabled",void 0),ji([o({type:Boolean})],Di.prototype,"error",void 0),ji([o({type:Boolean})],Di.prototype,"fixedMenuPosition",void 0),ji([o({type:Array})],Di.prototype,"options",void 0),ji([s()],Di.prototype,"selectedOption",void 0),ji([s()],Di.prototype,"optionsDisplayed",void 0),ji([s()],Di.prototype,"focusOptions",void 0),ji([r(".ft-select")],Di.prototype,"container",void 0),ji([r(".ft-select--options")],Di.prototype,"optionsMenu",void 0),ji([r(".ft-select--input-panel")],Di.prototype,"mainPanel",void 0),ji([r(".ft-select--option:first-child")],Di.prototype,"firstOption",void 0),ji([r(".ft-select--option:focus")],Di.prototype,"focusedOption",void 0),ji([r(".ft-select--option.ft-select--option-selected")],Di.prototype,"selectedOptionElement",void 0),ji([r(".ft-select--option:last-child")],Di.prototype,"lastOption",void 0),ji([r("slot")],Di.prototype,"optionsSlot",void 0),h("ft-select")(Di),h("ft-select-option")(Bi);
734
+ `}update(t){super.update(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),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;super.contentAvailableCallback(t),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,s,n;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!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n: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){var e,i;if(!p(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ai.elementDefinitions={"ft-input-label":xi,"ft-typography":pi,"ft-ripple":Ni,"ft-icon":Ui},Ai.styles=[si,ni,Bi],Di([o({type:String})],Ai.prototype,"label",void 0),Di([o({type:String})],Ai.prototype,"helper",void 0),Di([o({type:Boolean})],Ai.prototype,"outlined",void 0),Di([o({type:Boolean})],Ai.prototype,"disabled",void 0),Di([o({type:Boolean})],Ai.prototype,"error",void 0),Di([o({type:Boolean})],Ai.prototype,"fixedMenuPosition",void 0),Di([o({type:Array})],Ai.prototype,"options",void 0),Di([s()],Ai.prototype,"selectedOption",void 0),Di([s()],Ai.prototype,"optionsDisplayed",void 0),Di([s()],Ai.prototype,"focusOptions",void 0),Di([r(".ft-select")],Ai.prototype,"container",void 0),Di([r(".ft-select--options")],Ai.prototype,"optionsMenu",void 0),Di([r(".ft-select--input-panel")],Ai.prototype,"mainPanel",void 0),Di([r(".ft-select--option:first-child")],Ai.prototype,"firstOption",void 0),Di([r(".ft-select--option:focus")],Ai.prototype,"focusedOption",void 0),Di([r(".ft-select--option.ft-select--option-selected")],Ai.prototype,"selectedOptionElement",void 0),Di([r(".ft-select--option:last-child")],Ai.prototype,"lastOption",void 0),Di([r("slot")],Ai.prototype,"optionsSlot",void 0),h("ft-select")(Ai),h("ft-select-option")(Ii);
735
735
  /**
736
736
  * @license
737
737
  * Copyright 2018 Google LLC
738
738
  * SPDX-License-Identifier: BSD-3-Clause
739
739
  */
740
- const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:mt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:mt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:mt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:mt.extend("--ft-text-field-helper-color",wt.colorOnSurfaceMedium),colorPrimary:mt.external(wt.colorPrimary,"Design system"),colorOnSurface:mt.external(wt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:mt.external(wt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:mt.external(wt.borderRadiusS,"Design system"),colorError:mt.external(wt.colorError,"Design system"),prefixColor:mt.extend("--ft-text-field-prefix-color",wt.colorOnSurfaceMedium),iconColor:mt.extend("--ft-text-field-icon-color",wt.colorOnSurfaceMedium),floatingZIndex:mt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:mt.external(wt.colorSurface,"Design system"),colorOutline:mt.external(wt.colorOutline,"Design system"),elevation02:mt.external(wt.elevation02,"Design system"),suggestSize:mt.create("--ft-text-field-suggest-size","SIZE","300px")},Ai=y`
740
+ const Pi={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:mt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:mt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:mt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:mt.extend("--ft-text-field-helper-color",wt.colorOnSurfaceMedium),colorPrimary:mt.external(wt.colorPrimary,"Design system"),colorOnSurface:mt.external(wt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:mt.external(wt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:mt.external(wt.borderRadiusS,"Design system"),colorError:mt.external(wt.colorError,"Design system"),prefixColor:mt.extend("--ft-text-field-prefix-color",wt.colorOnSurfaceMedium),iconColor:mt.extend("--ft-text-field-icon-color",wt.colorOnSurfaceMedium),floatingZIndex:mt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:mt.external(wt.colorSurface,"Design system"),colorOutline:mt.external(wt.colorOutline,"Design system"),elevation02:mt.external(wt.elevation02,"Design system"),suggestSize:mt.create("--ft-text-field-suggest-size","SIZE","300px")},Li=y`
741
741
  *:focus {
742
742
  outline: none;
743
743
  }
@@ -750,16 +750,16 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
750
750
  }
751
751
 
752
752
  ft-input-label {
753
- ${$t(di.fontSize,Ii.fontSize)};
754
- ${$t(di.raisedFontSize,Ii.labelSize)};
755
- ${$t(di.verticalSpacing,Ii.verticalSpacing)};
756
- ${$t(di.horizontalSpacing,Ii.horizontalSpacing)};
753
+ ${$t(hi.fontSize,Pi.fontSize)};
754
+ ${$t(hi.raisedFontSize,Pi.labelSize)};
755
+ ${$t(hi.verticalSpacing,Pi.verticalSpacing)};
756
+ ${$t(hi.horizontalSpacing,Pi.horizontalSpacing)};
757
757
  }
758
758
 
759
759
  .ft-text-field--main-panel {
760
760
  position: relative;
761
761
  display: flex;
762
- height: calc(4 * ${Ii.verticalSpacing} + ${Ii.labelSize} + ${Ii.fontSize});
762
+ height: calc(4 * ${Pi.verticalSpacing} + ${Pi.labelSize} + ${Pi.fontSize});
763
763
  }
764
764
 
765
765
  .ft-text-field--input-panel {
@@ -768,24 +768,24 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
768
768
  display: flex;
769
769
  align-items: center;
770
770
  overflow: hidden;
771
- padding: 0 ${Ii.horizontalSpacing};
771
+ padding: 0 ${Pi.horizontalSpacing};
772
772
 
773
- ${$t(Me.fontSize,Ii.fontSize)};
774
- ${$t(Me.lineHeight,Ii.fontSize)};
773
+ ${$t(Fe.fontSize,Pi.fontSize)};
774
+ ${$t(Fe.lineHeight,Pi.fontSize)};
775
775
  }
776
776
 
777
777
  .ft-text-field--input-panel ft-ripple {
778
- ${$t(xi.opacityContentOnSurfaceHover,"0.08")};
779
- ${$t(xi.opacityContentOnSurfacePressed,"0.04")};
778
+ ${$t(bi.opacityContentOnSurfaceHover,"0.08")};
779
+ ${$t(bi.opacityContentOnSurfacePressed,"0.04")};
780
780
  }
781
781
 
782
782
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
783
783
  align-items: flex-end;
784
- padding: 0 ${Ii.horizontalSpacing} ${Ii.verticalSpacing} ${Ii.horizontalSpacing};
784
+ padding: 0 ${Pi.horizontalSpacing} ${Pi.verticalSpacing} ${Pi.horizontalSpacing};
785
785
  }
786
786
 
787
787
  .ft-text-field--prefix {
788
- color: ${Ii.prefixColor};
788
+ color: ${Pi.prefixColor};
789
789
  margin-right: 2px;
790
790
  flex-shrink: 1;
791
791
  overflow: hidden;
@@ -804,15 +804,15 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
804
804
  flex-shrink: 1;
805
805
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
806
806
 
807
- color: ${Ii.colorOnSurface};
808
- padding: calc(2 * ${Ii.verticalSpacing}) 0;
807
+ color: ${Pi.colorOnSurface};
808
+ padding: calc(2 * ${Pi.verticalSpacing}) 0;
809
809
  border: none;
810
810
  background: none;
811
811
  }
812
812
 
813
813
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
814
814
  padding-bottom: 0;
815
- padding-top: calc(${Ii.labelSize} + 2 * ${Ii.verticalSpacing});
815
+ padding-top: calc(${Pi.labelSize} + 2 * ${Pi.verticalSpacing});
816
816
  }
817
817
 
818
818
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -821,37 +821,37 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
821
821
  }
822
822
 
823
823
  .ft-text-field--disabled .ft-text-field--input {
824
- color: ${Ii.colorOnSurfaceDisabled};
824
+ color: ${Pi.colorOnSurfaceDisabled};
825
825
  }
826
826
 
827
827
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
828
- ${$t(di.borderColor,Ii.colorPrimary)};
829
- ${$t(di.textColor,Ii.colorPrimary)};
828
+ ${$t(hi.borderColor,Pi.colorPrimary)};
829
+ ${$t(hi.textColor,Pi.colorPrimary)};
830
830
  }
831
831
 
832
832
  .ft-text-field--filled .ft-text-field--input-panel {
833
- border-radius: ${Ii.borderRadiusS} ${Ii.borderRadiusS} 0 0;
833
+ border-radius: ${Pi.borderRadiusS} ${Pi.borderRadiusS} 0 0;
834
834
  }
835
835
 
836
836
  .ft-text-field--outlined .ft-text-field--input-panel {
837
- border-radius: ${Ii.borderRadiusS};
837
+ border-radius: ${Pi.borderRadiusS};
838
838
  }
839
839
 
840
840
  .ft-text-field--helper-text {
841
- padding: 0 12px 0 ${Ii.horizontalSpacing};
842
- color: ${Ii.helperColor};
841
+ padding: 0 12px 0 ${Pi.horizontalSpacing};
842
+ color: ${Pi.helperColor};
843
843
  }
844
844
 
845
845
  .ft-text-field--in-error .ft-text-field--input,
846
846
  .ft-text-field--in-error .ft-text-field--helper-text,
847
847
  .ft-text-field--in-error .ft-text-field--prefix {
848
- color: ${Ii.colorError};
848
+ color: ${Pi.colorError};
849
849
  }
850
850
 
851
851
  .ft-text-field--icon {
852
852
  align-self: center;
853
853
  margin-left: 8px;
854
- color: ${Ii.iconColor};
854
+ color: ${Pi.iconColor};
855
855
  }
856
856
 
857
857
  .ft-text-field--container {
@@ -864,13 +864,13 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
864
864
  position: absolute;
865
865
  left: 0;
866
866
  right: 0;
867
- z-index: ${Ii.floatingZIndex};
868
- background: ${Ii.colorSurface};
869
- border: 1px solid ${Ii.colorOutline};
870
- border-radius: 0 0 ${Ii.borderRadiusS} ${Ii.borderRadiusS};
871
- box-shadow: ${Ii.elevation02};
867
+ z-index: ${Pi.floatingZIndex};
868
+ background: ${Pi.colorSurface};
869
+ border: 1px solid ${Pi.colorOutline};
870
+ border-radius: 0 0 ${Pi.borderRadiusS} ${Pi.borderRadiusS};
871
+ box-shadow: ${Pi.elevation02};
872
872
  outline: none;
873
- max-height: ${Ii.suggestSize};
873
+ max-height: ${Pi.suggestSize};
874
874
  overflow-y: auto;
875
875
  }
876
876
 
@@ -887,14 +887,14 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
887
887
  }
888
888
 
889
889
  .ft-text-field--with-icon {
890
- ${$t(di.labelMaxWidth,`calc(100% - ${Ci.size} - ${di.horizontalSpacing})`)};
890
+ ${$t(hi.labelMaxWidth,`calc(100% - ${Ri.size} - ${hi.horizontalSpacing})`)};
891
891
  }
892
892
 
893
893
  .ft-text-field--with-password ft-icon:hover {
894
894
  cursor: pointer;
895
895
  }
896
- `;var Pi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Li extends Rt{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Oi.EYE_SLASH,this.passwordRevealedIcon=Oi.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.requestUpdate("value",e)}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--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return G`
897
- <div class="${Xt(t)}">
896
+ `;var Ti=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class _i extends(Ut(Rt,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=ki.EYE_SLASH,this.passwordRevealedIcon=ki.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}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--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return G`
897
+ <div class="${Gt(t)}">
898
898
  <div class="ft-text-field--main-panel"
899
899
  @keydown=${this.handleKeyboardNavigation}
900
900
  @focusout=${this.onMainPanelBlur}>
@@ -908,10 +908,10 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
908
908
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
909
909
  `}
910
910
  ${this.prefix?G`
911
- <ft-typography class="ft-text-field--prefix" vaiant="body1">
912
- ${this.prefix}
913
- </ft-typography>
914
- `:tt}
911
+ <ft-typography class="ft-text-field--prefix" vaiant="body1">
912
+ ${this.prefix}
913
+ </ft-typography>
914
+ `:tt}
915
915
  <input type=${this.password&&this.hidePassword?"password":"text"}
916
916
  maxlength=${(t=>null!=t?t:tt)(this.maxLength||void 0)}
917
917
  aria-label="${this.label}"
@@ -944,7 +944,7 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
944
944
  .variant=${this.iconVariant}
945
945
  .value=${this.icon}
946
946
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
947
- `:tt}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Li.elementDefinitions={"ft-input-label":fi,"ft-ripple":Ei,"ft-typography":ci,"ft-icon":zi},Li.styles=[ei,Ai],Pi([o()],Li.prototype,"label",void 0),Pi([o({noAccessor:!0})],Li.prototype,"value",null),Pi([s()],Li.prototype,"dispatchedValue",void 0),Pi([o()],Li.prototype,"helper",void 0),Pi([o({type:Boolean})],Li.prototype,"outlined",void 0),Pi([o({type:Boolean})],Li.prototype,"disabled",void 0),Pi([o({type:Boolean})],Li.prototype,"error",void 0),Pi([o()],Li.prototype,"prefix",void 0),Pi([o()],Li.prototype,"icon",void 0),Pi([o()],Li.prototype,"passwordHiddenIcon",void 0),Pi([o()],Li.prototype,"passwordRevealedIcon",void 0),Pi([o()],Li.prototype,"iconVariant",void 0),Pi([o({type:Boolean})],Li.prototype,"filterSuggestions",void 0),Pi([o({type:Number})],Li.prototype,"maxLength",void 0),Pi([o({type:Boolean})],Li.prototype,"password",void 0),Pi([s()],Li.prototype,"focused",void 0),Pi([s()],Li.prototype,"hidePassword",void 0),Pi([s()],Li.prototype,"suggestionsOnTop",void 0),Pi([s()],Li.prototype,"hideSuggestions",void 0),Pi([s()],Li.prototype,"visibleSuggestions",void 0),Pi([r(".ft-text-field--main-panel")],Li.prototype,"mainPanel",void 0),Pi([r(".ft-text-field--input")],Li.prototype,"input",void 0),Pi([r(".ft-text-field--suggestions")],Li.prototype,"suggestionsContainer",void 0),Pi([c({selector:"ft-text-field-suggestion"})],Li.prototype,"suggestions",void 0);const Ti=y`
947
+ `:tt}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}_i.elementDefinitions={"ft-input-label":xi,"ft-ripple":Ni,"ft-typography":pi,"ft-icon":Ui},_i.styles=[oi,Li],Ti([o()],_i.prototype,"label",void 0),Ti([o({noAccessor:!0})],_i.prototype,"value",null),Ti([s()],_i.prototype,"dispatchedValue",void 0),Ti([o()],_i.prototype,"helper",void 0),Ti([o({type:Boolean})],_i.prototype,"outlined",void 0),Ti([o({type:Boolean})],_i.prototype,"disabled",void 0),Ti([o({type:Boolean})],_i.prototype,"error",void 0),Ti([o()],_i.prototype,"prefix",void 0),Ti([o()],_i.prototype,"icon",void 0),Ti([o()],_i.prototype,"passwordHiddenIcon",void 0),Ti([o()],_i.prototype,"passwordRevealedIcon",void 0),Ti([o()],_i.prototype,"iconVariant",void 0),Ti([o({type:Boolean})],_i.prototype,"filterSuggestions",void 0),Ti([o({type:Number})],_i.prototype,"maxLength",void 0),Ti([o({type:Boolean})],_i.prototype,"password",void 0),Ti([s()],_i.prototype,"focused",void 0),Ti([s()],_i.prototype,"hidePassword",void 0),Ti([s()],_i.prototype,"suggestionsOnTop",void 0),Ti([s()],_i.prototype,"hideSuggestions",void 0),Ti([s()],_i.prototype,"visibleSuggestions",void 0),Ti([r(".ft-text-field--main-panel")],_i.prototype,"mainPanel",void 0),Ti([r(".ft-text-field--input")],_i.prototype,"input",void 0),Ti([r(".ft-text-field--suggestions")],_i.prototype,"suggestionsContainer",void 0),Ti([c({selector:"ft-text-field-suggestion"})],_i.prototype,"suggestions",void 0);const Zi=y`
948
948
  .ft-text-field-suggestion {
949
949
  position: relative;
950
950
  padding: 8px 16px;
@@ -969,7 +969,7 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
969
969
  slot {
970
970
  pointer-events: none;
971
971
  }
972
- `;var _i=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Zi extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Hi extends Rt{render(){return G`
972
+ `;var Hi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Wi extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Ki extends Rt{render(){return G`
973
973
  <div class="ft-text-field-suggestion"
974
974
  tabindex="-1"
975
975
  @keydown=${this.onKeyDown}
@@ -981,7 +981,7 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
981
981
  <slot></slot>
982
982
  </ft-typography>
983
983
  </div>
984
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Zi(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Hi.elementDefinitions={"ft-ripple":Ei,"ft-typography":ci,"ft-icon":zi},Hi.styles=Ti,_i([o()],Hi.prototype,"value",void 0),_i([r(".ft-text-field-suggestion")],Hi.prototype,"container",void 0),_i([d()],Hi.prototype,"assignedNodes",void 0),h("ft-text-field")(Li),h("ft-text-field-suggestion")(Hi);const Wi=mt.create("--ft-tooltip-distance","SIZE","4px"),Ki=mt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Vi=mt.create("--ft-tooltip-background-color","COLOR","#666666"),Ji=mt.create("--ft-tooltip-z-index","NUMBER","100"),qi=mt.external(wt.borderRadiusS,"Design system"),Xi=mt.create("--ft-tooltip-max-width","SIZE","150px"),Yi=y`
984
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Wi(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Ki.elementDefinitions={"ft-ripple":Ni,"ft-typography":pi,"ft-icon":Ui},Ki.styles=Zi,Hi([o()],Ki.prototype,"value",void 0),Hi([r(".ft-text-field-suggestion")],Ki.prototype,"container",void 0),Hi([d()],Ki.prototype,"assignedNodes",void 0),h("ft-text-field")(_i),h("ft-text-field-suggestion")(Ki);const Vi=mt.create("--ft-tooltip-distance","SIZE","4px"),Ji=mt.create("--ft-tooltip-color","COLOR","#FFFFFF"),qi=mt.create("--ft-tooltip-background-color","COLOR","#666666"),Xi=mt.create("--ft-tooltip-z-index","NUMBER","100"),Yi=mt.external(wt.borderRadiusS,"Design system"),Gi=mt.create("--ft-tooltip-max-width","SIZE","150px"),Qi=y`
985
985
  .ft-tooltip--container {
986
986
  display: block;
987
987
  }
@@ -996,21 +996,21 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
996
996
  box-sizing: border-box;
997
997
  overflow: hidden;
998
998
  width: max-content;
999
- max-width: ${Xi};
999
+ max-width: ${Gi};
1000
1000
  text-align: center;
1001
- padding: ${Wi};
1002
- z-index: ${Ji};
1001
+ padding: ${Vi};
1002
+ z-index: ${Xi};
1003
1003
  }
1004
1004
 
1005
1005
  .ft-tooltip--content {
1006
1006
  padding: 4px 8px;
1007
- border-radius: ${qi};
1008
- background-color: ${Vi};
1009
- color: ${Ki};
1007
+ border-radius: ${Yi};
1008
+ background-color: ${qi};
1009
+ color: ${Ji};
1010
1010
  position: relative;
1011
1011
  word-break: break-word;
1012
1012
  }
1013
- `;var Gi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Qi extends Rt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return G`
1013
+ `;var to=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class eo extends Rt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return G`
1014
1014
  <div part="container"
1015
1015
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
1016
1016
  @mouseenter=${this.onHover}
@@ -1028,7 +1028,7 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1028
1028
  </div>
1029
1029
  </div>
1030
1030
  </div>
1031
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&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.validPosition){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=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=n+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let c=-a.x,d=a.x+a.width-window.innerWidth;l.left=n+Math.round(this.correctOutOfWindowPixels(c,d))+"px";let p=-a.y,h=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(p,h))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Xi})`}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())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Qi.elementDefinitions={"ft-typography":ci},Qi.styles=Yi,Gi([o()],Qi.prototype,"text",void 0),Gi([o({type:Boolean})],Qi.prototype,"manual",void 0),Gi([o({type:Boolean})],Qi.prototype,"inline",void 0),Gi([o({type:Number})],Qi.prototype,"delay",void 0),Gi([o()],Qi.prototype,"position",void 0),Gi([d("",!0)],Qi.prototype,"slotNodes",void 0),Gi([r(".ft-tooltip--container")],Qi.prototype,"container",void 0),Gi([r(".ft-tooltip")],Qi.prototype,"tooltip",void 0),Gi([r(".ft-tooltip--content")],Qi.prototype,"tooltipContent",void 0),Gi([s()],Qi.prototype,"visible",void 0),h("ft-tooltip")(Qi);const to={color:mt.extend("--ft-loader-color",wt.colorPrimary),size:mt.create("--ft-loader-size","SIZE","80px")},eo=y`
1031
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&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.validPosition){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=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=n+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let c=-a.x,d=a.x+a.width-window.innerWidth;l.left=n+Math.round(this.correctOutOfWindowPixels(c,d))+"px";let p=-a.y,h=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(p,h))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Gi})`}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())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}eo.elementDefinitions={"ft-typography":pi},eo.styles=Qi,to([o()],eo.prototype,"text",void 0),to([o({type:Boolean})],eo.prototype,"manual",void 0),to([o({type:Boolean})],eo.prototype,"inline",void 0),to([o({type:Number})],eo.prototype,"delay",void 0),to([o()],eo.prototype,"position",void 0),to([d("",!0)],eo.prototype,"slotNodes",void 0),to([r(".ft-tooltip--container")],eo.prototype,"container",void 0),to([r(".ft-tooltip")],eo.prototype,"tooltip",void 0),to([r(".ft-tooltip--content")],eo.prototype,"tooltipContent",void 0),to([s()],eo.prototype,"visible",void 0),h("ft-tooltip")(eo);const io={color:mt.extend("--ft-loader-color",wt.colorPrimary),size:mt.create("--ft-loader-size","SIZE","80px")},oo=y`
1032
1032
  :host {
1033
1033
  line-height: 0;
1034
1034
  }
@@ -1037,8 +1037,8 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1037
1037
  display: inline-block;
1038
1038
  position: relative;
1039
1039
 
1040
- width: ${to.size};
1041
- height: ${to.size};
1040
+ width: ${io.size};
1041
+ height: ${io.size};
1042
1042
  }
1043
1043
 
1044
1044
  .ft-loader div {
@@ -1047,7 +1047,7 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1047
1047
  width: 25%;
1048
1048
  height: 25%;
1049
1049
  border-radius: 50%;
1050
- background: ${to.color};
1050
+ background: ${io.color};
1051
1051
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
1052
1052
  }
1053
1053
 
@@ -1094,17 +1094,17 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1094
1094
  transform: translate(0, 0);
1095
1095
  }
1096
1096
  100% {
1097
- transform: translate(calc(0.35 * ${to.size}), 0);
1097
+ transform: translate(calc(0.35 * ${io.size}), 0);
1098
1098
  }
1099
1099
  }
1100
- `;class io extends Rt{render(){return G`
1100
+ `;class so extends Rt{render(){return G`
1101
1101
  <div class="ft-loader">
1102
1102
  <div></div>
1103
1103
  <div></div>
1104
1104
  <div></div>
1105
1105
  <div></div>
1106
1106
  </div>
1107
- `}}io.styles=eo,h("ft-loader")(io);const oo=mt.extend("--ft-button-color",wt.colorPrimary),so={backgroundColor:mt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:mt.extend("--ft-button-border-radius",wt.borderRadiusL),color:oo,fontSize:mt.extend("--ft-button-font-size",Xe.fontSize),iconSize:mt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:mt.extend("--ft-button-ripple-color",oo),verticalPadding:mt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:mt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:mt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:mt.external(wt.colorOpacityDisabled,"Design system")},no=mt.extend("--ft-button-primary-color",mt.extend("--ft-button-color",wt.colorOnPrimary)),ro={backgroundColor:mt.extend("--ft-button-primary-background-color",mt.extend("--ft-button-background-color",wt.colorPrimary)),color:no,rippleColor:mt.extend("--ft-button-primary-ripple-color",no)},lo=mt.extend("--ft-button-dense-border-radius",mt.extend("--ft-button-border-radius",wt.borderRadiusM)),ao=mt.create("--ft-button-dense-vertical-padding","SIZE","2px"),co=mt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),po=mt.create("--ft-button-dense-icon-padding","SIZE","4px"),ho=[y`
1107
+ `}}so.styles=oo,h("ft-loader")(so);const no=mt.extend("--ft-button-color",wt.colorPrimary),ro={backgroundColor:mt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:mt.extend("--ft-button-border-radius",wt.borderRadiusL),color:no,fontSize:mt.extend("--ft-button-font-size",Ge.fontSize),iconSize:mt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:mt.extend("--ft-button-ripple-color",no),verticalPadding:mt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:mt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:mt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:mt.external(wt.colorOpacityDisabled,"Design system")},lo=mt.extend("--ft-button-primary-color",mt.extend("--ft-button-color",wt.colorOnPrimary)),ao={backgroundColor:mt.extend("--ft-button-primary-background-color",mt.extend("--ft-button-background-color",wt.colorPrimary)),color:lo,rippleColor:mt.extend("--ft-button-primary-ripple-color",lo)},co=mt.extend("--ft-button-dense-border-radius",mt.extend("--ft-button-border-radius",wt.borderRadiusM)),po=mt.create("--ft-button-dense-vertical-padding","SIZE","2px"),ho=mt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),fo=mt.create("--ft-button-dense-icon-padding","SIZE","4px"),uo=[y`
1108
1108
  :host {
1109
1109
  display: inline-block;
1110
1110
  max-width: 100%;
@@ -1115,7 +1115,7 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1115
1115
  box-shadow: 0px 0px 0px transparent;
1116
1116
  border: 0px solid transparent;
1117
1117
  text-shadow: 0px 0px 0px transparent;
1118
- font-size: ${so.fontSize};
1118
+ font-size: ${ro.fontSize};
1119
1119
  }
1120
1120
 
1121
1121
  button:hover {
@@ -1144,31 +1144,31 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1144
1144
  border: none;
1145
1145
  pointer-events: auto;
1146
1146
 
1147
- --ft-button-internal-line-height: max(calc(${so.fontSize} + 2px), ${so.iconSize});
1148
- --ft-button-internal-color: ${so.color};
1149
- ${$t(Ci.size,so.iconSize)};
1150
- ${$t(xi.color,so.rippleColor)};
1147
+ --ft-button-internal-line-height: max(calc(${ro.fontSize} + 2px), ${ro.iconSize});
1148
+ --ft-button-internal-color: ${ro.color};
1149
+ ${$t(Ri.size,ro.iconSize)};
1150
+ ${$t(bi.color,ro.rippleColor)};
1151
1151
 
1152
- border-radius: ${so.borderRadius};
1153
- padding: ${so.verticalPadding} ${so.horizontalPadding};
1154
- background-color: ${so.backgroundColor};
1152
+ border-radius: ${ro.borderRadius};
1153
+ padding: ${ro.verticalPadding} ${ro.horizontalPadding};
1154
+ background-color: ${ro.backgroundColor};
1155
1155
  color: var(--ft-button-internal-color);
1156
1156
  -webkit-mask-image: radial-gradient(white, black);
1157
1157
  }
1158
1158
 
1159
1159
  .ft-button.ft-button--outlined {
1160
1160
  border: 1px solid var(--ft-button-internal-color);
1161
- padding: calc(${so.verticalPadding} - 1px) calc(${so.horizontalPadding} - 1px);
1161
+ padding: calc(${ro.verticalPadding} - 1px) calc(${ro.horizontalPadding} - 1px);
1162
1162
  }
1163
1163
 
1164
1164
  .ft-button.ft-button--dense {
1165
- padding: ${ao} ${co};
1166
- border-radius: ${lo};
1167
- gap: ${po};
1165
+ padding: ${po} ${ho};
1166
+ border-radius: ${co};
1167
+ gap: ${fo};
1168
1168
  }
1169
1169
 
1170
1170
  .ft-button.ft-button--dense.ft-button--outlined {
1171
- padding: calc(${ao} - 1px) calc(${co} - 1px);
1171
+ padding: calc(${po} - 1px) calc(${ho} - 1px);
1172
1172
  }
1173
1173
 
1174
1174
  .ft-button:not([disabled]):hover {
@@ -1176,22 +1176,22 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1176
1176
  }
1177
1177
 
1178
1178
  .ft-button--round {
1179
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${so.verticalPadding});
1179
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ro.verticalPadding});
1180
1180
  }
1181
1181
 
1182
1182
  .ft-button--round.ft-button--dense {
1183
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ao});
1183
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${po});
1184
1184
  }
1185
1185
 
1186
1186
  .ft-button[disabled] {
1187
1187
  filter: grayscale(1);
1188
- opacity: ${so.opacityDisabled};
1188
+ opacity: ${ro.opacityDisabled};
1189
1189
  }
1190
1190
 
1191
1191
  .ft-button.ft-button--primary {
1192
- background-color: ${ro.backgroundColor};
1193
- --ft-button-internal-color: ${ro.color};
1194
- ${$t(xi.color,ro.rippleColor)};
1192
+ background-color: ${ao.backgroundColor};
1193
+ --ft-button-internal-color: ${ao.color};
1194
+ ${$t(bi.color,ao.rippleColor)};
1195
1195
  }
1196
1196
 
1197
1197
  .ft-button:focus {
@@ -1204,13 +1204,13 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1204
1204
  white-space: nowrap;
1205
1205
  text-overflow: ellipsis;
1206
1206
  display: block;
1207
- margin: 0 ${so.iconPadding};
1208
- ${$t(Xe.fontSize,"1em")};
1209
- ${$t(Xe.lineHeight,"var(--ft-button-internal-line-height)")};
1207
+ margin: 0 ${ro.iconPadding};
1208
+ ${$t(Ge.fontSize,"1em")};
1209
+ ${$t(Ge.lineHeight,"var(--ft-button-internal-line-height)")};
1210
1210
  }
1211
1211
 
1212
1212
  .ft-button--dense .ft-button--label {
1213
- margin: 0 ${po};
1213
+ margin: 0 ${fo};
1214
1214
  }
1215
1215
 
1216
1216
  .ft-button--label[hidden] {
@@ -1223,13 +1223,13 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1223
1223
  }
1224
1224
 
1225
1225
  .ft-button--label[hidden] + ft-icon {
1226
- margin: 0 calc(${so.horizontalPadding} * -1);
1227
- padding: 0 ${so.verticalPadding};
1226
+ margin: 0 calc(${ro.horizontalPadding} * -1);
1227
+ padding: 0 ${ro.verticalPadding};
1228
1228
  }
1229
1229
 
1230
1230
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
1231
- margin: 0 calc(${co} * -1);
1232
- padding: 0 ${ao};
1231
+ margin: 0 calc(${ho} * -1);
1232
+ padding: 0 ${po};
1233
1233
  }
1234
1234
 
1235
1235
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -1238,33 +1238,33 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1238
1238
  }
1239
1239
 
1240
1240
  ft-loader {
1241
- ${$t(to.size,so.iconSize)};
1242
- ${$t(to.color,"var(--ft-button-internal-color)")};
1241
+ ${$t(io.size,ro.iconSize)};
1242
+ ${$t(io.color,"var(--ft-button-internal-color)")};
1243
1243
  }
1244
- `,Mt];var fo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class uo extends Rt{constructor(){super(...arguments),this.role="button",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.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}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-no-text-select":!0};return this.addTooltipIfNeeded(G`
1244
+ `,Mt];var xo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class vo extends(Ut(Rt,"button")){constructor(){super(...arguments),this.role="button",this.type="button",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.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}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-no-text-select":!0};return this.addTooltipIfNeeded(G`
1245
1245
  <button part="button"
1246
- class="${Xt(t)}"
1246
+ class="${Gt(t)}"
1247
1247
  aria-label="${this.getLabel()}"
1248
1248
  ?disabled=${this.isDisabled()}>
1249
1249
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1250
1250
  <ft-typography part="label"
1251
1251
  variant="button"
1252
1252
  element="span"
1253
- class="ft-button--label ${Bt?"ft-safari-ellipsis-fix":""}"
1253
+ class="ft-button--label ${It?"ft-safari-ellipsis-fix":""}"
1254
1254
  ?hidden=${!this.hasTextContent()}>
1255
1255
  <slot @slotchange=${this.onSlotchange}></slot>
1256
1256
  </ft-typography>
1257
1257
  ${this.resolveIcon()}
1258
1258
  </button>
1259
1259
  `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?G`
1260
- <ft-tooltip part="tooltip"
1261
- text="${this.getLabel()}"
1262
- position="${this.tooltipPosition}">
1263
- ${t}
1264
- </ft-tooltip>
1260
+ <ft-tooltip part="tooltip"
1261
+ text="${this.getLabel()}"
1262
+ position="${this.tooltipPosition}">
1263
+ ${t}
1264
+ </ft-tooltip>
1265
1265
  `:t}resolveIcon(){return this.loading?G`
1266
1266
  <ft-loader part="loader icon"></ft-loader> `:this.icon?G`
1267
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:tt}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}}uo.elementDefinitions={"ft-ripple":Ei,"ft-tooltip":Qi,"ft-typography":ci,"ft-icon":zi,"ft-loader":io},uo.styles=[zt,ho],fo([o({type:String,reflect:!0})],uo.prototype,"role",void 0),fo([o({type:Boolean})],uo.prototype,"primary",void 0),fo([o({type:Boolean})],uo.prototype,"outlined",void 0),fo([o({type:Boolean})],uo.prototype,"disabled",void 0),fo([o({type:Boolean})],uo.prototype,"dense",void 0),fo([o({type:Boolean})],uo.prototype,"round",void 0),fo([o()],uo.prototype,"label",void 0),fo([o()],uo.prototype,"icon",void 0),fo([o()],uo.prototype,"iconVariant",void 0),fo([o({type:Boolean})],uo.prototype,"trailingIcon",void 0),fo([o({type:Boolean})],uo.prototype,"loading",void 0),fo([o()],uo.prototype,"tooltipPosition",void 0),fo([o({type:Boolean})],uo.prototype,"hideTooltip",void 0),fo([o({type:Boolean})],uo.prototype,"forceTooltip",void 0),fo([r(".ft-button")],uo.prototype,"button",void 0),fo([r(".ft-button--label slot")],uo.prototype,"slottedContent",void 0),h("ft-button")(uo);class xo extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const vo={headerBackground:mt.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:mt.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:mt.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:mt.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:mt.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),cellVerticalBorderWidth:mt.create("--ft-filterable-table-cell-vertical-border-width","SIZE","1px"),colorOnSurfaceHigh:mt.external(wt.colorOnSurfaceHigh,"Design system"),titleFont:mt.external(wt.titleFont,"Design system"),contentFont:mt.external(wt.contentFont,"Design system")},bo=y`
1267
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:tt}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}}vo.elementDefinitions={"ft-ripple":Ni,"ft-tooltip":eo,"ft-typography":pi,"ft-icon":Ui,"ft-loader":so},vo.styles=[zt,uo],xo([o({type:String,reflect:!0})],vo.prototype,"role",void 0),xo([o()],vo.prototype,"type",void 0),xo([o({type:Boolean})],vo.prototype,"primary",void 0),xo([o({type:Boolean})],vo.prototype,"outlined",void 0),xo([o({type:Boolean})],vo.prototype,"disabled",void 0),xo([o({type:Boolean})],vo.prototype,"dense",void 0),xo([o({type:Boolean})],vo.prototype,"round",void 0),xo([o()],vo.prototype,"label",void 0),xo([o()],vo.prototype,"icon",void 0),xo([o()],vo.prototype,"iconVariant",void 0),xo([o({type:Boolean})],vo.prototype,"trailingIcon",void 0),xo([o({type:Boolean})],vo.prototype,"loading",void 0),xo([o()],vo.prototype,"tooltipPosition",void 0),xo([o({type:Boolean})],vo.prototype,"hideTooltip",void 0),xo([o({type:Boolean})],vo.prototype,"forceTooltip",void 0),xo([r(".ft-button")],vo.prototype,"button",void 0),xo([r(".ft-button--label slot")],vo.prototype,"slottedContent",void 0),h("ft-button")(vo);class bo extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const go={headerBackground:mt.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:mt.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:mt.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:mt.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:mt.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),cellVerticalBorderWidth:mt.create("--ft-filterable-table-cell-vertical-border-width","SIZE","1px"),colorOnSurfaceHigh:mt.external(wt.colorOnSurfaceHigh,"Design system"),titleFont:mt.external(wt.titleFont,"Design system"),contentFont:mt.external(wt.contentFont,"Design system")},yo=y`
1268
1268
  :host {
1269
1269
  display: block;
1270
1270
  }
@@ -1280,15 +1280,15 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1280
1280
  .header-cell {
1281
1281
  display: flex;
1282
1282
  flex-direction: column;
1283
- background: ${vo.headerBackground};
1284
- color: ${vo.colorOnSurfaceHigh};
1283
+ background: ${go.headerBackground};
1284
+ color: ${go.colorOnSurfaceHigh};
1285
1285
  padding: .5rem 1rem;
1286
- font-family: ${vo.titleFont};
1286
+ font-family: ${go.titleFont};
1287
1287
  }
1288
1288
 
1289
1289
  .header-cell--sticky {
1290
1290
  top: 0;
1291
- z-index: ${vo.stickyHeaderZIndex};
1291
+ z-index: ${go.stickyHeaderZIndex};
1292
1292
  position: sticky;
1293
1293
  }
1294
1294
 
@@ -1306,8 +1306,8 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1306
1306
  }
1307
1307
 
1308
1308
  .column-title-container ft-button {
1309
- ${$t(so.backgroundColor,vo.headerBackground)};
1310
- ${$t(so.color,vo.colorOnSurfaceHigh)};
1309
+ ${$t(ro.backgroundColor,go.headerBackground)};
1310
+ ${$t(ro.color,go.colorOnSurfaceHigh)};
1311
1311
  }
1312
1312
 
1313
1313
  .column-title {
@@ -1336,31 +1336,31 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1336
1336
 
1337
1337
  .cell {
1338
1338
  padding: 1rem;
1339
- border-left-color: ${vo.headerBackground};
1339
+ border-left-color: ${go.headerBackground};
1340
1340
  border-left-style: solid;
1341
- border-left-width: ${vo.cellVerticalBorderWidth};
1342
- border-bottom: 1px solid ${vo.headerBackground};
1341
+ border-left-width: ${go.cellVerticalBorderWidth};
1342
+ border-bottom: 1px solid ${go.headerBackground};
1343
1343
  overflow-x: auto;
1344
1344
  display: flex;
1345
1345
  align-items: center;
1346
- font-family: ${vo.contentFont};
1346
+ font-family: ${go.contentFont};
1347
1347
  }
1348
1348
 
1349
1349
  /* Even is 2n+1 and odd is 2n because of the header */
1350
1350
  .row:nth-child(2n) > .cell {
1351
- background: ${vo.oddRowBackground};
1351
+ background: ${go.oddRowBackground};
1352
1352
  }
1353
1353
 
1354
1354
  .row:nth-child(2n + 1) > .cell {
1355
- background: ${vo.evenRowBackground};
1355
+ background: ${go.evenRowBackground};
1356
1356
  }
1357
1357
 
1358
1358
  .row:hover > .cell {
1359
- background: ${vo.rowHoverBackground};
1359
+ background: ${go.rowHoverBackground};
1360
1360
  }
1361
1361
 
1362
1362
  .cell:last-of-type {
1363
- border-right: 1px solid ${vo.headerBackground};
1363
+ border-right: 1px solid ${go.headerBackground};
1364
1364
  }
1365
1365
 
1366
1366
  .row:last-of-type .cell:first-of-type {
@@ -1374,7 +1374,7 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1374
1374
  .hidden {
1375
1375
  visibility: hidden;
1376
1376
  }
1377
- `;var go=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const yo=t=>G`${t}`,mo=(t,e)=>t-e;class $o extends Rt{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 G`
1377
+ `;var mo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const $o=t=>G`${t}`,wo=(t,e)=>t-e;class Oo extends Rt{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 G`
1378
1378
  <style>
1379
1379
  .table {
1380
1380
  grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
@@ -1382,17 +1382,17 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1382
1382
  </style>
1383
1383
  <div class="table">
1384
1384
  <div class="header">
1385
- ${Vt(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
1385
+ ${qt(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
1386
1386
  </div>
1387
- ${Vt(t,((t,e)=>"row-"+e),((t,e)=>G`
1387
+ ${qt(t,((t,e)=>"row-"+e),((t,e)=>G`
1388
1388
  <div class="row"
1389
- @click=${()=>this.dispatchEvent(new xo(t))}>
1390
- ${Vt(this.columns,((t,i)=>"cell-"+i+"-"+e),((i,o)=>this.renderCell(i,o,t,e)))}
1389
+ @click=${()=>this.dispatchEvent(new bo(t))}>
1390
+ ${qt(this.columns,((t,i)=>"cell-"+i+"-"+e),((i,o)=>this.renderCell(i,o,t,e)))}
1391
1391
  </div>
1392
1392
  `))}
1393
1393
  </div>
1394
- `}filterData(){return this.filters.reduce(((t,e,i)=>{var o;const s=this.columns[i];if(e&&e.value)switch(null!==(o=s.filter)&&void 0!==o?o:"text"){case"text":return t.filter((t=>this.getValueAsString(s,t,i).toLowerCase().includes(e.value.toLowerCase())));case"select":return t.filter((t=>this.getValueAsString(s,t,i)===e.value))}return t}),this.data)}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:mo,s="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return[...t].sort(((t,e)=>s(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 G`
1395
- <div class="${Xt(i)}"
1394
+ `}filterData(){return this.filters.reduce(((t,e,i)=>{var o;const s=this.columns[i];if(e&&e.value)switch(null!==(o=s.filter)&&void 0!==o?o:"text"){case"text":return t.filter((t=>this.getValueAsString(s,t,i).toLowerCase().includes(e.value.toLowerCase())));case"select":return t.filter((t=>this.getValueAsString(s,t,i)===e.value))}return t}),this.data)}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:wo,s="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return[...t].sort(((t,e)=>s(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 G`
1395
+ <div class="${Gt(i)}"
1396
1396
  part="${this.columnPart("header-cell",e)}">
1397
1397
  <div class="column-title-container">
1398
1398
  <span class="column-title"
@@ -1433,9 +1433,9 @@ const Ii={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
1433
1433
  `))}
1434
1434
  </ft-select>
1435
1435
  </div>
1436
- `:tt}return tt}columnPart(t,e){return`${t} ${t}-column-${e}`}renderCell(t,e,i,o){var s;const n=null!==(s=t.render)&&void 0!==s?s:yo;return G`
1436
+ `:tt}return tt}columnPart(t,e){return`${t} ${t}-column-${e}`}renderCell(t,e,i,o){var s;const n=null!==(s=t.render)&&void 0!==s?s:$o;return G`
1437
1437
  <div class="cell"
1438
1438
  part="${this.columnPart("cell",e)} cell-row-${o} cell-column-${e}-row-${o}">
1439
- ${(t=>{const e=n(t,o);return"string"==typeof e?qt(e):e})(this.getValue(t,i))}
1439
+ ${(t=>{const e=n(t,o);return"string"==typeof e?Yt(e):e})(this.getValue(t,i))}
1440
1440
  </div>
1441
- `}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)}}$o.styles=bo,go([o({attribute:!1})],$o.prototype,"data",void 0),go([o({attribute:!1})],$o.prototype,"columns",void 0),go([o({attribute:!1})],$o.prototype,"sort",void 0),go([o()],$o.prototype,"stickyHeaders",void 0),go([s()],$o.prototype,"currentSort",void 0),h("ft-filterable-table")($o),t.FtFilterableTable=$o,t.FtFilterableTableCssVariables=vo,t.RowClickEvent=xo,t.styles=bo}({});
1441
+ `}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)}}Oo.styles=yo,mo([o({attribute:!1})],Oo.prototype,"data",void 0),mo([o({attribute:!1})],Oo.prototype,"columns",void 0),mo([o({attribute:!1})],Oo.prototype,"sort",void 0),mo([o()],Oo.prototype,"stickyHeaders",void 0),mo([s()],Oo.prototype,"currentSort",void 0),h("ft-filterable-table")(Oo),t.FtFilterableTable=Oo,t.FtFilterableTableCssVariables=go,t.RowClickEvent=bo,t.styles=yo}({});