@fluid-topics/ft-floating-menu 1.1.0 → 1.1.2

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.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=f(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(Qi){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=f(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(tr){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -81,7 +81,11 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
81
81
  * @license
82
82
  * Copyright 2019 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
- */class Uo extends bo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Ro.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var ko,Io=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Wo=Symbol("constructorPrototype"),Lo=Symbol("constructorName"),Ko=Symbol("exportpartsDebouncer");class zo extends Uo{constructor(){super(),this[ko]=new o(5),this[Lo]=this.constructor.name,this[Wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Lo]&&Object.setPrototypeOf(this,this[Wo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ko].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}ko=Ko,Io([C()],zo.prototype,"exportpartsPrefix",void 0),Io([I([])],zo.prototype,"exportpartsPrefixes",void 0),Io([C()],zo.prototype,"customStylesheet",void 0);const Zo=mt`
84
+ */class Uo extends bo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Ro.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var ko,Io=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Wo=Symbol("constructorPrototype"),Lo=Symbol("constructorName"),Ko=Symbol("exportpartsDebouncer");class zo extends Uo{constructor(){super(),this[ko]=new o(5),this[Lo]=this.constructor.name,this[Wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Lo]&&Object.setPrototypeOf(this,this[Wo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ko].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}ko=Ko,Io([C()],zo.prototype,"exportpartsPrefix",void 0),Io([I([])],zo.prototype,"exportpartsPrefixes",void 0),Io([C()],zo.prototype,"customStylesheet",void 0);const Zo=Oo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");mt`
85
+ .highlight-html-match {
86
+ background: ${Zo};
87
+ }
88
+ `;const Fo=mt`
85
89
  .ft-no-text-select {
86
90
  -webkit-touch-callout: none;
87
91
  -webkit-user-select: none;
@@ -102,7 +106,7 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
102
106
  -webkit-hyphens: auto;
103
107
  hyphens: auto
104
108
  }
105
- `;const Fo=mt`
109
+ `;const Bo=mt`
106
110
  .ft-safari-ellipsis-fix {
107
111
  margin-right: 0;
108
112
 
@@ -113,9 +117,9 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
113
117
  display: inline-block;
114
118
  width: 0;
115
119
  }
116
- `;window.ftReduxStores||(window.ftReduxStores={});const Bo=Symbol("elementInternals");var Mo,Ao,Do;const Po=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Do=null===(Ao=null===(Mo=window.safari)||void 0===Mo?void 0:Mo.pushNotification)||void 0===Ao?void 0:Ao.toString())&&void 0!==Do?Do:""),Ho={zIndex:Oo.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:Oo.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:Oo.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:Oo.extend("--ft-floating-menu-text-color","",$o.colorOnSurfaceHigh),colorSurface:Oo.external($o.colorSurface,"Design system"),menuElevation:Oo.external($o.elevation02,"Design system"),borderRadiusS:Oo.external($o.borderRadiusS,"Design system")},jo=mt`
120
+ `;window.ftReduxStores||(window.ftReduxStores={});const Mo=Symbol("elementInternals");var Ao,Do,Po;const Ho=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Po=null===(Do=null===(Ao=window.safari)||void 0===Ao?void 0:Ao.pushNotification)||void 0===Do?void 0:Do.toString())&&void 0!==Po?Po:""),jo={zIndex:Oo.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:Oo.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:Oo.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:Oo.extend("--ft-floating-menu-text-color","",$o.colorOnSurfaceHigh),colorSurface:Oo.external($o.colorSurface,"Design system"),menuElevation:Oo.external($o.elevation02,"Design system"),borderRadiusS:Oo.external($o.borderRadiusS,"Design system")},To=mt`
117
121
  .ft-floating-menu {
118
- color: ${Ho.textColor};
122
+ color: ${jo.textColor};
119
123
  display: inline-block;
120
124
  }
121
125
 
@@ -132,19 +136,19 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
132
136
  display: none;
133
137
  position: relative;
134
138
  overflow: auto;
135
- max-width: ${Ho.maxWidth};
136
- max-height: ${Ho.maxHeight};
137
- box-shadow: ${Ho.menuElevation};
138
- background-color: ${Ho.colorSurface};
139
- border-radius: ${Ho.borderRadiusS};
140
- color: ${Ho.textColor};
141
- z-index: ${Ho.zIndex};
139
+ max-width: ${jo.maxWidth};
140
+ max-height: ${jo.maxHeight};
141
+ box-shadow: ${jo.menuElevation};
142
+ background-color: ${jo.colorSurface};
143
+ border-radius: ${jo.borderRadiusS};
144
+ color: ${jo.textColor};
145
+ z-index: ${jo.zIndex};
142
146
  }
143
147
 
144
148
  .ft-floating-menu--open .ft-floating-menu--options {
145
149
  display: block;
146
150
  }
147
- `,To=Oo.extend("--ft-ripple-color","",$o.colorContent),_o={color:To,backgroundColor:Oo.extend("--ft-ripple-background-color","",To),opacityContentOnSurfacePressed:Oo.external($o.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Oo.external($o.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Oo.external($o.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Oo.external($o.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Oo.create("--ft-ripple-border-radius","","SIZE","0px")},Go=Oo.extend("--ft-ripple-color","",$o.colorPrimary),Yo=Go,Vo=Oo.extend("--ft-ripple-background-color","",Go),Jo=Oo.extend("--ft-ripple-color","",$o.colorSecondary),qo=Jo,Xo=Oo.extend("--ft-ripple-background-color","",Jo),Qo=mt`
151
+ `,_o=Oo.extend("--ft-ripple-color","",$o.colorContent),Go={color:_o,backgroundColor:Oo.extend("--ft-ripple-background-color","",_o),opacityContentOnSurfacePressed:Oo.external($o.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Oo.external($o.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Oo.external($o.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Oo.external($o.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Oo.create("--ft-ripple-border-radius","","SIZE","0px")},Yo=Oo.extend("--ft-ripple-color","",$o.colorPrimary),Vo=Yo,Jo=Oo.extend("--ft-ripple-background-color","",Yo),qo=Oo.extend("--ft-ripple-color","",$o.colorSecondary),Xo=qo,Qo=Oo.extend("--ft-ripple-background-color","",qo),te=mt`
148
152
  :host {
149
153
  display: contents;
150
154
  }
@@ -157,7 +161,7 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
157
161
 
158
162
  .ft-ripple:not(.ft-ripple--unbounded) {
159
163
  overflow: hidden;
160
- border-radius: ${_o.borderRadius};
164
+ border-radius: ${Go.borderRadius};
161
165
  }
162
166
 
163
167
  .ft-ripple .ft-ripple--background,
@@ -191,27 +195,27 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
191
195
  }
192
196
 
193
197
  .ft-ripple .ft-ripple--background {
194
- background-color: ${_o.backgroundColor};
198
+ background-color: ${Go.backgroundColor};
195
199
  }
196
200
 
197
201
  .ft-ripple .ft-ripple--effect {
198
- background-color: ${_o.color};
202
+ background-color: ${Go.color};
199
203
  }
200
204
 
201
205
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
202
- background-color: ${Xo};
206
+ background-color: ${Qo};
203
207
  }
204
208
 
205
209
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
206
- background-color: ${qo};
210
+ background-color: ${Xo};
207
211
  }
208
212
 
209
213
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
210
- background-color: ${Vo};
214
+ background-color: ${Jo};
211
215
  }
212
216
 
213
217
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
214
- background-color: ${Yo};
218
+ background-color: ${Vo};
215
219
  }
216
220
 
217
221
  .ft-ripple .ft-ripple--background {
@@ -241,117 +245,117 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
241
245
  }
242
246
 
243
247
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
244
- opacity: ${_o.opacityContentOnSurfaceHover};
248
+ opacity: ${Go.opacityContentOnSurfaceHover};
245
249
  }
246
250
 
247
251
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
248
- opacity: ${_o.opacityContentOnSurfaceSelected};
252
+ opacity: ${Go.opacityContentOnSurfaceSelected};
249
253
  }
250
254
 
251
255
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
252
- opacity: ${_o.opacityContentOnSurfaceFocused};
256
+ opacity: ${Go.opacityContentOnSurfaceFocused};
253
257
  }
254
258
 
255
259
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
256
- opacity: ${_o.opacityContentOnSurfacePressed};
260
+ opacity: ${Go.opacityContentOnSurfacePressed};
257
261
  transform: translate(-50%, -50%) scale(1);
258
262
  }
259
- `;const te=Oo.extend("--ft-typography-font-family","",$o.titleFont),oe=Oo.extend("--ft-typography-font-family","",$o.contentFont),ee={fontFamily:oe,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ie=Oo.extend("--ft-typography-title-font-family","",te),re=Oo.extend("--ft-typography-title-font-size","",ee.fontSize,"20px"),ne=Oo.extend("--ft-typography-title-font-weight","",ee.fontWeight,"normal"),ae=Oo.extend("--ft-typography-title-letter-spacing","",ee.letterSpacing,"0.15px"),se=Oo.extend("--ft-typography-title-line-height","",ee.lineHeight,"1.2"),le=Oo.extend("--ft-typography-title-text-transform","",ee.textTransform,"inherit"),ce=Oo.extend("--ft-typography-title-dense-font-family","",te),pe=Oo.extend("--ft-typography-title-dense-font-size","",ee.fontSize,"14px"),fe=Oo.extend("--ft-typography-title-dense-font-weight","",ee.fontWeight,"normal"),he=Oo.extend("--ft-typography-title-dense-letter-spacing","",ee.letterSpacing,"0.105px"),de=Oo.extend("--ft-typography-title-dense-line-height","",ee.lineHeight,"1.7"),ue=Oo.extend("--ft-typography-title-dense-text-transform","",ee.textTransform,"inherit"),ye=Oo.extend("--ft-typography-subtitle1-font-family","",oe),ge=Oo.extend("--ft-typography-subtitle1-font-size","",ee.fontSize,"16px"),be=Oo.extend("--ft-typography-subtitle1-font-weight","",ee.fontWeight,"600"),me=Oo.extend("--ft-typography-subtitle1-letter-spacing","",ee.letterSpacing,"0.144px"),xe=Oo.extend("--ft-typography-subtitle1-line-height","",ee.lineHeight,"1.5"),Oe=Oo.extend("--ft-typography-subtitle1-text-transform","",ee.textTransform,"inherit"),ve=Oo.extend("--ft-typography-subtitle2-font-family","",oe),Ne=Oo.extend("--ft-typography-subtitle2-font-size","",ee.fontSize,"14px"),Se=Oo.extend("--ft-typography-subtitle2-font-weight","",ee.fontWeight,"normal"),we=Oo.extend("--ft-typography-subtitle2-letter-spacing","",ee.letterSpacing,"0.098px"),Ce=Oo.extend("--ft-typography-subtitle2-line-height","",ee.lineHeight,"1.7"),$e=Oo.extend("--ft-typography-subtitle2-text-transform","",ee.textTransform,"inherit"),Re=Oo.extend("--ft-typography-body1-font-family","",oe),Ee=Oo.extend("--ft-typography-body1-font-size","",ee.fontSize,"16px"),Ue=Oo.extend("--ft-typography-body1-font-weight","",ee.fontWeight,"normal"),ke=Oo.extend("--ft-typography-body1-letter-spacing","",ee.letterSpacing,"0.496px"),Ie=Oo.extend("--ft-typography-body1-line-height","",ee.lineHeight,"1.5"),We=Oo.extend("--ft-typography-body1-text-transform","",ee.textTransform,"inherit"),Le=Oo.extend("--ft-typography-body2-font-family","",oe),Ke=Oo.extend("--ft-typography-body2-font-size","",ee.fontSize,"14px"),ze=Oo.extend("--ft-typography-body2-font-weight","",ee.fontWeight,"normal"),Ze=Oo.extend("--ft-typography-body2-letter-spacing","",ee.letterSpacing,"0.252px"),Fe=Oo.extend("--ft-typography-body2-line-height","",ee.lineHeight,"1.4"),Be=Oo.extend("--ft-typography-body2-text-transform","",ee.textTransform,"inherit"),Me=Oo.extend("--ft-typography-caption-font-family","",oe),Ae=Oo.extend("--ft-typography-caption-font-size","",ee.fontSize,"12px"),De=Oo.extend("--ft-typography-caption-font-weight","",ee.fontWeight,"normal"),Pe=Oo.extend("--ft-typography-caption-letter-spacing","",ee.letterSpacing,"0.396px"),He=Oo.extend("--ft-typography-caption-line-height","",ee.lineHeight,"1.33"),je=Oo.extend("--ft-typography-caption-text-transform","",ee.textTransform,"inherit"),Te=Oo.extend("--ft-typography-breadcrumb-font-family","",oe),_e=Oo.extend("--ft-typography-breadcrumb-font-size","",ee.fontSize,"10px"),Ge=Oo.extend("--ft-typography-breadcrumb-font-weight","",ee.fontWeight,"normal"),Ye=Oo.extend("--ft-typography-breadcrumb-letter-spacing","",ee.letterSpacing,"0.33px"),Ve=Oo.extend("--ft-typography-breadcrumb-line-height","",ee.lineHeight,"1.6"),Je=Oo.extend("--ft-typography-breadcrumb-text-transform","",ee.textTransform,"inherit"),qe=Oo.extend("--ft-typography-overline-font-family","",oe),Xe=Oo.extend("--ft-typography-overline-font-size","",ee.fontSize,"10px"),Qe=Oo.extend("--ft-typography-overline-font-weight","",ee.fontWeight,"normal"),ti=Oo.extend("--ft-typography-overline-letter-spacing","",ee.letterSpacing,"1.5px"),oi=Oo.extend("--ft-typography-overline-line-height","",ee.lineHeight,"1.6"),ei=Oo.extend("--ft-typography-overline-text-transform","",ee.textTransform,"uppercase"),ii={fontFamily:Oo.extend("--ft-typography-button-font-family","",oe),fontSize:Oo.extend("--ft-typography-button-font-size","",ee.fontSize,"14px"),fontWeight:Oo.extend("--ft-typography-button-font-weight","",ee.fontWeight,"600"),letterSpacing:Oo.extend("--ft-typography-button-letter-spacing","",ee.letterSpacing,"1.246px"),lineHeight:Oo.extend("--ft-typography-button-line-height","",ee.lineHeight,"1.15"),textTransform:Oo.extend("--ft-typography-button-text-transform","",ee.textTransform,"uppercase")},ri=mt`
263
+ `;const oe=Oo.extend("--ft-typography-font-family","",$o.titleFont),ee=Oo.extend("--ft-typography-font-family","",$o.contentFont),ie={fontFamily:ee,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},re=Oo.extend("--ft-typography-title-font-family","",oe),ne=Oo.extend("--ft-typography-title-font-size","",ie.fontSize,"20px"),ae=Oo.extend("--ft-typography-title-font-weight","",ie.fontWeight,"normal"),se=Oo.extend("--ft-typography-title-letter-spacing","",ie.letterSpacing,"0.15px"),le=Oo.extend("--ft-typography-title-line-height","",ie.lineHeight,"1.2"),ce=Oo.extend("--ft-typography-title-text-transform","",ie.textTransform,"inherit"),pe=Oo.extend("--ft-typography-title-dense-font-family","",oe),fe=Oo.extend("--ft-typography-title-dense-font-size","",ie.fontSize,"14px"),he=Oo.extend("--ft-typography-title-dense-font-weight","",ie.fontWeight,"normal"),de=Oo.extend("--ft-typography-title-dense-letter-spacing","",ie.letterSpacing,"0.105px"),ue=Oo.extend("--ft-typography-title-dense-line-height","",ie.lineHeight,"1.7"),ye=Oo.extend("--ft-typography-title-dense-text-transform","",ie.textTransform,"inherit"),ge=Oo.extend("--ft-typography-subtitle1-font-family","",ee),be=Oo.extend("--ft-typography-subtitle1-font-size","",ie.fontSize,"16px"),me=Oo.extend("--ft-typography-subtitle1-font-weight","",ie.fontWeight,"600"),xe=Oo.extend("--ft-typography-subtitle1-letter-spacing","",ie.letterSpacing,"0.144px"),Oe=Oo.extend("--ft-typography-subtitle1-line-height","",ie.lineHeight,"1.5"),ve=Oo.extend("--ft-typography-subtitle1-text-transform","",ie.textTransform,"inherit"),Ne=Oo.extend("--ft-typography-subtitle2-font-family","",ee),Se=Oo.extend("--ft-typography-subtitle2-font-size","",ie.fontSize,"14px"),we=Oo.extend("--ft-typography-subtitle2-font-weight","",ie.fontWeight,"normal"),Ce=Oo.extend("--ft-typography-subtitle2-letter-spacing","",ie.letterSpacing,"0.098px"),$e=Oo.extend("--ft-typography-subtitle2-line-height","",ie.lineHeight,"1.7"),Re=Oo.extend("--ft-typography-subtitle2-text-transform","",ie.textTransform,"inherit"),Ee=Oo.extend("--ft-typography-body1-font-family","",ee),Ue=Oo.extend("--ft-typography-body1-font-size","",ie.fontSize,"16px"),ke=Oo.extend("--ft-typography-body1-font-weight","",ie.fontWeight,"normal"),Ie=Oo.extend("--ft-typography-body1-letter-spacing","",ie.letterSpacing,"0.496px"),We=Oo.extend("--ft-typography-body1-line-height","",ie.lineHeight,"1.5"),Le=Oo.extend("--ft-typography-body1-text-transform","",ie.textTransform,"inherit"),Ke=Oo.extend("--ft-typography-body2-font-family","",ee),ze=Oo.extend("--ft-typography-body2-font-size","",ie.fontSize,"14px"),Ze=Oo.extend("--ft-typography-body2-font-weight","",ie.fontWeight,"normal"),Fe=Oo.extend("--ft-typography-body2-letter-spacing","",ie.letterSpacing,"0.252px"),Be=Oo.extend("--ft-typography-body2-line-height","",ie.lineHeight,"1.4"),Me=Oo.extend("--ft-typography-body2-text-transform","",ie.textTransform,"inherit"),Ae=Oo.extend("--ft-typography-caption-font-family","",ee),De=Oo.extend("--ft-typography-caption-font-size","",ie.fontSize,"12px"),Pe=Oo.extend("--ft-typography-caption-font-weight","",ie.fontWeight,"normal"),He=Oo.extend("--ft-typography-caption-letter-spacing","",ie.letterSpacing,"0.396px"),je=Oo.extend("--ft-typography-caption-line-height","",ie.lineHeight,"1.33"),Te=Oo.extend("--ft-typography-caption-text-transform","",ie.textTransform,"inherit"),_e=Oo.extend("--ft-typography-breadcrumb-font-family","",ee),Ge=Oo.extend("--ft-typography-breadcrumb-font-size","",ie.fontSize,"10px"),Ye=Oo.extend("--ft-typography-breadcrumb-font-weight","",ie.fontWeight,"normal"),Ve=Oo.extend("--ft-typography-breadcrumb-letter-spacing","",ie.letterSpacing,"0.33px"),Je=Oo.extend("--ft-typography-breadcrumb-line-height","",ie.lineHeight,"1.6"),qe=Oo.extend("--ft-typography-breadcrumb-text-transform","",ie.textTransform,"inherit"),Xe=Oo.extend("--ft-typography-overline-font-family","",ee),Qe=Oo.extend("--ft-typography-overline-font-size","",ie.fontSize,"10px"),ti=Oo.extend("--ft-typography-overline-font-weight","",ie.fontWeight,"normal"),oi=Oo.extend("--ft-typography-overline-letter-spacing","",ie.letterSpacing,"1.5px"),ei=Oo.extend("--ft-typography-overline-line-height","",ie.lineHeight,"1.6"),ii=Oo.extend("--ft-typography-overline-text-transform","",ie.textTransform,"uppercase"),ri={fontFamily:Oo.extend("--ft-typography-button-font-family","",ee),fontSize:Oo.extend("--ft-typography-button-font-size","",ie.fontSize,"14px"),fontWeight:Oo.extend("--ft-typography-button-font-weight","",ie.fontWeight,"600"),letterSpacing:Oo.extend("--ft-typography-button-letter-spacing","",ie.letterSpacing,"1.246px"),lineHeight:Oo.extend("--ft-typography-button-line-height","",ie.lineHeight,"1.15"),textTransform:Oo.extend("--ft-typography-button-text-transform","",ie.textTransform,"uppercase")},ni=mt`
260
264
  .ft-typography--title {
261
- font-family: ${ie};
262
- font-size: ${re};
263
- font-weight: ${ne};
264
- letter-spacing: ${ae};
265
- line-height: ${se};
266
- text-transform: ${le};
265
+ font-family: ${re};
266
+ font-size: ${ne};
267
+ font-weight: ${ae};
268
+ letter-spacing: ${se};
269
+ line-height: ${le};
270
+ text-transform: ${ce};
267
271
  }
268
- `,ni=mt`
272
+ `,ai=mt`
269
273
  .ft-typography--title-dense {
270
- font-family: ${ce};
271
- font-size: ${pe};
272
- font-weight: ${fe};
273
- letter-spacing: ${he};
274
- line-height: ${de};
275
- text-transform: ${ue};
274
+ font-family: ${pe};
275
+ font-size: ${fe};
276
+ font-weight: ${he};
277
+ letter-spacing: ${de};
278
+ line-height: ${ue};
279
+ text-transform: ${ye};
276
280
  }
277
- `,ai=mt`
281
+ `,si=mt`
278
282
  .ft-typography--subtitle1 {
279
- font-family: ${ye};
280
- font-size: ${ge};
281
- font-weight: ${be};
282
- letter-spacing: ${me};
283
- line-height: ${xe};
284
- text-transform: ${Oe};
283
+ font-family: ${ge};
284
+ font-size: ${be};
285
+ font-weight: ${me};
286
+ letter-spacing: ${xe};
287
+ line-height: ${Oe};
288
+ text-transform: ${ve};
285
289
  }
286
- `,si=mt`
290
+ `,li=mt`
287
291
  .ft-typography--subtitle2 {
288
- font-family: ${ve};
289
- font-size: ${Ne};
290
- font-weight: ${Se};
291
- letter-spacing: ${we};
292
- line-height: ${Ce};
293
- text-transform: ${$e};
292
+ font-family: ${Ne};
293
+ font-size: ${Se};
294
+ font-weight: ${we};
295
+ letter-spacing: ${Ce};
296
+ line-height: ${$e};
297
+ text-transform: ${Re};
294
298
  }
295
299
 
296
- `,li=mt`
300
+ `,ci=mt`
297
301
  .ft-typography--body1 {
298
- font-family: ${Re};
299
- font-size: ${Ee};
300
- font-weight: ${Ue};
301
- letter-spacing: ${ke};
302
- line-height: ${Ie};
303
- text-transform: ${We};
302
+ font-family: ${Ee};
303
+ font-size: ${Ue};
304
+ font-weight: ${ke};
305
+ letter-spacing: ${Ie};
306
+ line-height: ${We};
307
+ text-transform: ${Le};
304
308
  }
305
- `,ci=mt`
309
+ `,pi=mt`
306
310
  .ft-typography--body2 {
307
- font-family: ${Le};
308
- font-size: ${Ke};
309
- font-weight: ${ze};
310
- letter-spacing: ${Ze};
311
- line-height: ${Fe};
312
- text-transform: ${Be};
311
+ font-family: ${Ke};
312
+ font-size: ${ze};
313
+ font-weight: ${Ze};
314
+ letter-spacing: ${Fe};
315
+ line-height: ${Be};
316
+ text-transform: ${Me};
313
317
  }
314
- `,pi=mt`
318
+ `,fi=mt`
315
319
  .ft-typography--caption {
316
- font-family: ${Me};
317
- font-size: ${Ae};
318
- font-weight: ${De};
319
- letter-spacing: ${Pe};
320
- line-height: ${He};
321
- text-transform: ${je};
320
+ font-family: ${Ae};
321
+ font-size: ${De};
322
+ font-weight: ${Pe};
323
+ letter-spacing: ${He};
324
+ line-height: ${je};
325
+ text-transform: ${Te};
322
326
  }
323
- `,fi=mt`
327
+ `,hi=mt`
324
328
  .ft-typography--breadcrumb {
325
- font-family: ${Te};
326
- font-size: ${_e};
327
- font-weight: ${Ge};
328
- letter-spacing: ${Ye};
329
- line-height: ${Ve};
330
- text-transform: ${Je};
329
+ font-family: ${_e};
330
+ font-size: ${Ge};
331
+ font-weight: ${Ye};
332
+ letter-spacing: ${Ve};
333
+ line-height: ${Je};
334
+ text-transform: ${qe};
331
335
  }
332
- `,hi=mt`
336
+ `,di=mt`
333
337
  .ft-typography--overline {
334
- font-family: ${qe};
335
- font-size: ${Xe};
336
- font-weight: ${Qe};
337
- letter-spacing: ${ti};
338
- line-height: ${oi};
339
- text-transform: ${ei};
338
+ font-family: ${Xe};
339
+ font-size: ${Qe};
340
+ font-weight: ${ti};
341
+ letter-spacing: ${oi};
342
+ line-height: ${ei};
343
+ text-transform: ${ii};
340
344
  }
341
- `,di=mt`
345
+ `,ui=mt`
342
346
  .ft-typography--button {
343
- font-family: ${ii.fontFamily};
344
- font-size: ${ii.fontSize};
345
- font-weight: ${ii.fontWeight};
346
- letter-spacing: ${ii.letterSpacing};
347
- line-height: ${ii.lineHeight};
348
- text-transform: ${ii.textTransform};
347
+ font-family: ${ri.fontFamily};
348
+ font-size: ${ri.fontSize};
349
+ font-weight: ${ri.fontWeight};
350
+ letter-spacing: ${ri.letterSpacing};
351
+ line-height: ${ri.lineHeight};
352
+ text-transform: ${ri.textTransform};
349
353
  }
350
- `,ui=mt`
354
+ `,yi=mt`
351
355
  .ft-typography {
352
356
  vertical-align: inherit;
353
357
  }
354
- `,yi=[Object.keys(So).map((t=>function(t){const o=So[t];return mt`
358
+ `,gi=[Object.keys(So).map((t=>function(t){const o=So[t];return mt`
355
359
  .ft-typography--${bt(t)} {
356
360
  font-family: ${o.fontFamily};
357
361
  font-size: ${o.fontSize};
@@ -360,7 +364,7 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
360
364
  line-height: ${o.lineHeight};
361
365
  text-transform: ${o.textCase};
362
366
  }
363
- `}(t)))],gi={color:Oo.extend("--ft-loader-color","",$o.colorPrimary),size:Oo.create("--ft-loader-size","","SIZE","80px")},bi=mt`
367
+ `}(t)))],bi={color:Oo.extend("--ft-loader-color","",$o.colorPrimary),size:Oo.create("--ft-loader-size","","SIZE","80px")},mi=mt`
364
368
  :host {
365
369
  line-height: 0;
366
370
  }
@@ -369,8 +373,8 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
369
373
  display: inline-block;
370
374
  position: relative;
371
375
 
372
- width: ${gi.size};
373
- height: ${gi.size};
376
+ width: ${bi.size};
377
+ height: ${bi.size};
374
378
  }
375
379
 
376
380
  .ft-loader div {
@@ -379,7 +383,7 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
379
383
  width: 25%;
380
384
  height: 25%;
381
385
  border-radius: 50%;
382
- background: ${gi.color};
386
+ background: ${bi.color};
383
387
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
384
388
  }
385
389
 
@@ -426,10 +430,10 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
426
430
  transform: translate(0, 0);
427
431
  }
428
432
  100% {
429
- transform: translate(calc(0.35 * ${gi.size}), 0);
433
+ transform: translate(calc(0.35 * ${bi.size}), 0);
430
434
  }
431
435
  }
432
- `,mi={size:Oo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Oo.extend("--ft-icon-fluid-topics-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Oo.extend("--ft-icon-file-format-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Oo.extend("--ft-icon-material-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Oo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},xi=mt`
436
+ `,xi={size:Oo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Oo.extend("--ft-icon-fluid-topics-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Oo.extend("--ft-icon-file-format-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Oo.extend("--ft-icon-material-font-family","",Oo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Oo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Oi=mt`
433
437
  :host, i.ft-icon {
434
438
  display: inline-flex;
435
439
  align-items: center;
@@ -438,14 +442,14 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
438
442
  }
439
443
 
440
444
  :host {
441
- width: ${mi.size};
442
- height: ${mi.size};
445
+ width: ${xi.size};
446
+ height: ${xi.size};
443
447
  }
444
448
 
445
449
  i.ft-icon {
446
450
  width: 100%;
447
451
  height: 100%;
448
- font-size: ${mi.size};
452
+ font-size: ${xi.size};
449
453
  line-height: 1;
450
454
  font-weight: normal;
451
455
  text-transform: none;
@@ -456,28 +460,28 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
456
460
  text-rendering: auto;
457
461
  -webkit-font-smoothing: antialiased;
458
462
  -moz-osx-font-smoothing: grayscale;
459
- vertical-align: ${mi.verticalAlign};
463
+ vertical-align: ${xi.verticalAlign};
460
464
  }
461
465
 
462
466
  i.ft-icon.ft-icon--fluid-topics {
463
- font-family: ${mi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
467
+ font-family: ${xi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
464
468
 
465
469
  /* Ugly fix because font is broken */
466
- font-size: calc(0.75 * ${mi.size});
467
- line-height: ${mi.size};
470
+ font-size: calc(0.75 * ${xi.size});
471
+ line-height: ${xi.size};
468
472
  position: relative;
469
473
  top: -4%;
470
474
  justify-content: center;
471
475
  }
472
476
 
473
477
  .ft-icon--file-format {
474
- font-family: ${mi.fileFormatFontFamily}, ft-mime, sans-serif;
478
+ font-family: ${xi.fileFormatFontFamily}, ft-mime, sans-serif;
475
479
  }
476
480
 
477
481
  .ft-icon--material {
478
- font-family: ${mi.materialFontFamily}, "Material Icons", sans-serif;
482
+ font-family: ${xi.materialFontFamily}, "Material Icons", sans-serif;
479
483
  }
480
- `,Oi=Oo.extend("--ft-button-color","",$o.colorPrimary),vi={backgroundColor:Oo.extend("--ft-button-background-color","",$o.colorSurface),borderRadius:Oo.extend("--ft-button-border-radius","",$o.borderRadiusL),color:Oi,fontSize:Oo.extend("--ft-button-font-size","",ii.fontSize),iconSize:Oo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Oo.extend("--ft-button-ripple-color","",Oi),verticalPadding:Oo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Oo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Oo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Oo.external($o.colorOpacityDisabled,"Design system")},Ni=Oo.extend("--ft-button-primary-color","",Oo.extend("--ft-button-color","",$o.colorOnPrimary)),Si={backgroundColor:Oo.extend("--ft-button-primary-background-color","",Oo.extend("--ft-button-background-color","",$o.colorPrimary)),color:Ni,rippleColor:Oo.extend("--ft-button-primary-ripple-color","",Ni)},wi=Oo.extend("--ft-button-dense-border-radius","",Oo.extend("--ft-button-border-radius","",$o.borderRadiusM)),Ci=Oo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),$i=Oo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Ri=Oo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Ei=[mt`
484
+ `,vi=Oo.extend("--ft-button-color","",$o.colorPrimary),Ni={backgroundColor:Oo.extend("--ft-button-background-color","",$o.colorSurface),borderRadius:Oo.extend("--ft-button-border-radius","",$o.borderRadiusL),color:vi,fontSize:Oo.extend("--ft-button-font-size","",ri.fontSize),iconSize:Oo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Oo.extend("--ft-button-ripple-color","",vi),verticalPadding:Oo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Oo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Oo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Oo.external($o.colorOpacityDisabled,"Design system")},Si=Oo.extend("--ft-button-primary-color","",Oo.extend("--ft-button-color","",$o.colorOnPrimary)),wi={backgroundColor:Oo.extend("--ft-button-primary-background-color","",Oo.extend("--ft-button-background-color","",$o.colorPrimary)),color:Si,rippleColor:Oo.extend("--ft-button-primary-ripple-color","",Si)},Ci=Oo.extend("--ft-button-dense-border-radius","",Oo.extend("--ft-button-border-radius","",$o.borderRadiusM)),$i=Oo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Ri=Oo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Ei=Oo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Ui=[mt`
481
485
  :host {
482
486
  display: inline-block;
483
487
  max-width: 100%;
@@ -488,7 +492,7 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
488
492
  box-shadow: 0px 0px 0px transparent;
489
493
  border: 0px solid transparent;
490
494
  text-shadow: 0px 0px 0px transparent;
491
- font-size: ${vi.fontSize};
495
+ font-size: ${Ni.fontSize};
492
496
  }
493
497
 
494
498
  button:hover {
@@ -517,31 +521,31 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
517
521
  border: none;
518
522
  pointer-events: auto;
519
523
 
520
- --ft-button-internal-line-height: max(calc(${vi.fontSize} + 2px), ${vi.iconSize});
521
- --ft-button-internal-color: ${vi.color};
522
- ${vo(mi.size,vi.iconSize)};
523
- ${vo(_o.color,vi.rippleColor)};
524
+ --ft-button-internal-line-height: max(calc(${Ni.fontSize} + 2px), ${Ni.iconSize});
525
+ --ft-button-internal-color: ${Ni.color};
526
+ ${vo(xi.size,Ni.iconSize)};
527
+ ${vo(Go.color,Ni.rippleColor)};
524
528
 
525
- border-radius: ${vi.borderRadius};
526
- padding: ${vi.verticalPadding} ${vi.horizontalPadding};
527
- background-color: ${vi.backgroundColor};
529
+ border-radius: ${Ni.borderRadius};
530
+ padding: ${Ni.verticalPadding} ${Ni.horizontalPadding};
531
+ background-color: ${Ni.backgroundColor};
528
532
  color: var(--ft-button-internal-color);
529
533
  -webkit-mask-image: radial-gradient(white, black);
530
534
  }
531
535
 
532
536
  .ft-button.ft-button--outlined {
533
537
  border: 1px solid var(--ft-button-internal-color);
534
- padding: calc(${vi.verticalPadding} - 1px) calc(${vi.horizontalPadding} - 1px);
538
+ padding: calc(${Ni.verticalPadding} - 1px) calc(${Ni.horizontalPadding} - 1px);
535
539
  }
536
540
 
537
541
  .ft-button.ft-button--dense {
538
- padding: ${Ci} ${$i};
539
- border-radius: ${wi};
540
- gap: ${Ri};
542
+ padding: ${$i} ${Ri};
543
+ border-radius: ${Ci};
544
+ gap: ${Ei};
541
545
  }
542
546
 
543
547
  .ft-button.ft-button--dense.ft-button--outlined {
544
- padding: calc(${Ci} - 1px) calc(${$i} - 1px);
548
+ padding: calc(${$i} - 1px) calc(${Ri} - 1px);
545
549
  }
546
550
 
547
551
  .ft-button:not([disabled]):hover {
@@ -549,22 +553,22 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
549
553
  }
550
554
 
551
555
  .ft-button--round {
552
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${vi.verticalPadding});
556
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ni.verticalPadding});
553
557
  }
554
558
 
555
559
  .ft-button--round.ft-button--dense {
556
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ci});
560
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${$i});
557
561
  }
558
562
 
559
563
  .ft-button[disabled] {
560
564
  filter: grayscale(1);
561
- opacity: ${vi.opacityDisabled};
565
+ opacity: ${Ni.opacityDisabled};
562
566
  }
563
567
 
564
568
  .ft-button.ft-button--primary {
565
- background-color: ${Si.backgroundColor};
566
- --ft-button-internal-color: ${Si.color};
567
- ${vo(_o.color,Si.rippleColor)};
569
+ background-color: ${wi.backgroundColor};
570
+ --ft-button-internal-color: ${wi.color};
571
+ ${vo(Go.color,wi.rippleColor)};
568
572
  }
569
573
 
570
574
  .ft-button:focus {
@@ -577,13 +581,13 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
577
581
  white-space: nowrap;
578
582
  text-overflow: ellipsis;
579
583
  display: block;
580
- margin: 0 ${vi.iconPadding};
581
- ${vo(ii.fontSize,"1em")};
582
- ${vo(ii.lineHeight,"var(--ft-button-internal-line-height)")};
584
+ margin: 0 ${Ni.iconPadding};
585
+ ${vo(ri.fontSize,"1em")};
586
+ ${vo(ri.lineHeight,"var(--ft-button-internal-line-height)")};
583
587
  }
584
588
 
585
589
  .ft-button--dense .ft-button--label {
586
- margin: 0 ${Ri};
590
+ margin: 0 ${Ei};
587
591
  }
588
592
 
589
593
  .ft-button--label[hidden] {
@@ -596,13 +600,13 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
596
600
  }
597
601
 
598
602
  .ft-button--label[hidden] + ft-icon {
599
- margin: 0 calc(${vi.horizontalPadding} * -1);
600
- padding: 0 ${vi.verticalPadding};
603
+ margin: 0 calc(${Ni.horizontalPadding} * -1);
604
+ padding: 0 ${Ni.verticalPadding};
601
605
  }
602
606
 
603
607
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
604
- margin: 0 calc(${$i} * -1);
605
- padding: 0 ${Ci};
608
+ margin: 0 calc(${Ri} * -1);
609
+ padding: 0 ${$i};
606
610
  }
607
611
 
608
612
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -611,39 +615,39 @@ class bo extends Kt{constructor(){super(...arguments),this.renderOptions={host:t
611
615
  }
612
616
 
613
617
  ft-loader {
614
- ${vo(gi.size,vi.iconSize)};
615
- ${vo(gi.color,"var(--ft-button-internal-color)")};
618
+ ${vo(bi.size,Ni.iconSize)};
619
+ ${vo(bi.color,"var(--ft-button-internal-color)")};
616
620
  }
617
- `,Zo],Ui=1,ki=2,Ii=t=>(...o)=>({_$litDirective$:t,values:o});let Wi=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
621
+ `,Fo],ki=1,Ii=2,Wi=t=>(...o)=>({_$litDirective$:t,values:o});let Li=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
618
622
  /**
619
623
  * @license
620
624
  * Copyright 2018 Google LLC
621
625
  * SPDX-License-Identifier: BSD-3-Clause
622
- */const Li=Ii(class extends Wi{constructor(t){if(super(t),t.type!==Ui||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return X}});var Ki=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class zi extends zo{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 o(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 o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-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 to`
626
+ */const Ki=Wi(class extends Li{constructor(t){if(super(t),t.type!==ki||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return X}});var zi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Zi extends zo{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 o(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 o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-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 to`
623
627
  <style>
624
628
  .ft-ripple .ft-ripple--effect {
625
629
  left: ${this.originX}px;
626
630
  top: ${this.originY}px;
627
631
  }
628
632
  </style>
629
- <div class="${Li(t)}">
633
+ <div class="${Ki(t)}">
630
634
  <div class="ft-ripple--background"></div>
631
635
  <div class="ft-ripple--effect"></div>
632
636
  </div>
633
- `}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 o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}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 o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),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 o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}zi.elementDefinitions={},zi.styles=Qo,Ki([C({type:Boolean})],zi.prototype,"primary",void 0),Ki([C({type:Boolean})],zi.prototype,"secondary",void 0),Ki([C({type:Boolean})],zi.prototype,"unbounded",void 0),Ki([C({type:Boolean})],zi.prototype,"activated",void 0),Ki([C({type:Boolean})],zi.prototype,"selected",void 0),Ki([C({type:Boolean})],zi.prototype,"disabled",void 0),Ki([$()],zi.prototype,"hovered",void 0),Ki([$()],zi.prototype,"focused",void 0),Ki([$()],zi.prototype,"pressed",void 0),Ki([$()],zi.prototype,"rippling",void 0),Ki([$()],zi.prototype,"originX",void 0),Ki([$()],zi.prototype,"originY",void 0),Ki([E(".ft-ripple")],zi.prototype,"ripple",void 0),Ki([E(".ft-ripple--effect")],zi.prototype,"rippleEffect",void 0),k("ft-ripple")(zi);
637
+ `}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 o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}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 o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),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 o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Zi.elementDefinitions={},Zi.styles=te,zi([C({type:Boolean})],Zi.prototype,"primary",void 0),zi([C({type:Boolean})],Zi.prototype,"secondary",void 0),zi([C({type:Boolean})],Zi.prototype,"unbounded",void 0),zi([C({type:Boolean})],Zi.prototype,"activated",void 0),zi([C({type:Boolean})],Zi.prototype,"selected",void 0),zi([C({type:Boolean})],Zi.prototype,"disabled",void 0),zi([$()],Zi.prototype,"hovered",void 0),zi([$()],Zi.prototype,"focused",void 0),zi([$()],Zi.prototype,"pressed",void 0),zi([$()],Zi.prototype,"rippling",void 0),zi([$()],Zi.prototype,"originX",void 0),zi([$()],Zi.prototype,"originY",void 0),zi([E(".ft-ripple")],Zi.prototype,"ripple",void 0),zi([E(".ft-ripple--effect")],Zi.prototype,"rippleEffect",void 0),k("ft-ripple")(Zi);
634
638
  /**
635
639
  * @license
636
640
  * Copyright 2020 Google LLC
637
641
  * SPDX-License-Identifier: BSD-3-Clause
638
642
  */
639
- const Zi=Symbol.for(""),Fi=t=>{if(t?.r===Zi)return t?._$litStatic$},Bi=t=>({_$litStatic$:t,r:Zi}),Mi=new Map,Ai=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=Fi(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=Mi.get(t))&&(a.raw=a,Mi.set(t,o=a)),e=s}return t(o,...e)})(q);var Di;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Di||(Di={}));var Pi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Hi extends zo{constructor(){super(...arguments),this.variant=Di.body1}render(){return this.element?Ai`
640
- <${Bi(this.element)}
643
+ const Fi=Symbol.for(""),Bi=t=>{if(t?.r===Fi)return t?._$litStatic$},Mi=t=>({_$litStatic$:t,r:Fi}),Ai=new Map,Di=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=Bi(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=Ai.get(t))&&(a.raw=a,Ai.set(t,o=a)),e=s}return t(o,...e)})(q);var Pi;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Pi||(Pi={}));var Hi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ji extends zo{constructor(){super(...arguments),this.variant=Pi.body1}render(){return this.element?Di`
644
+ <${Mi(this.element)}
641
645
  class="ft-typography ft-typography--${this.variant}">
642
646
  <slot></slot>
643
- </${Bi(this.element)}>
644
- `:Ai`
647
+ </${Mi(this.element)}>
648
+ `:Di`
645
649
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
646
- `}}Hi.styles=[ri,ni,ai,si,li,ci,pi,fi,hi,di,ui,...yi],Pi([C()],Hi.prototype,"element",void 0),Pi([C()],Hi.prototype,"variant",void 0),k("ft-typography")(Hi);const ji=Oo.create("--ft-tooltip-distance","","SIZE","4px"),Ti=Oo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),_i=Oo.create("--ft-tooltip-background-color","","COLOR","#666666"),Gi=Oo.create("--ft-tooltip-z-index","","NUMBER","100"),Yi=Oo.external($o.borderRadiusS,"Design system"),Vi=Oo.create("--ft-tooltip-max-width","","SIZE","150px"),Ji=mt`
650
+ `}}ji.styles=[ni,ai,si,li,ci,pi,fi,hi,di,ui,yi,...gi],Hi([C()],ji.prototype,"element",void 0),Hi([C()],ji.prototype,"variant",void 0),k("ft-typography")(ji);const Ti=Oo.create("--ft-tooltip-distance","","SIZE","4px"),_i=Oo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Gi=Oo.create("--ft-tooltip-background-color","","COLOR","#666666"),Yi=Oo.create("--ft-tooltip-z-index","","NUMBER","100"),Vi=Oo.external($o.borderRadiusS,"Design system"),Ji=Oo.create("--ft-tooltip-max-width","","SIZE","150px"),qi=mt`
647
651
  .ft-tooltip--container {
648
652
  display: block;
649
653
  }
@@ -658,21 +662,21 @@ const Zi=Symbol.for(""),Fi=t=>{if(t?.r===Zi)return t?._$litStatic$},Bi=t=>({_$li
658
662
  box-sizing: border-box;
659
663
  overflow: hidden;
660
664
  width: max-content;
661
- max-width: ${Vi};
665
+ max-width: ${Ji};
662
666
  text-align: center;
663
- padding: ${ji};
664
- z-index: ${Gi};
667
+ padding: ${Ti};
668
+ z-index: ${Yi};
665
669
  }
666
670
 
667
671
  .ft-tooltip--content {
668
672
  padding: 4px 8px;
669
- border-radius: ${Yi};
670
- background-color: ${_i};
671
- color: ${Ti};
673
+ border-radius: ${Vi};
674
+ background-color: ${Gi};
675
+ color: ${_i};
672
676
  position: relative;
673
677
  word-break: break-word;
674
678
  }
675
- `;var qi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Xi extends zo{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 o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return to`
679
+ `;var Xi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Qi extends zo{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 o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return to`
676
680
  <div part="container"
677
681
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
678
682
  @mouseenter=${this.onHover}
@@ -690,34 +694,34 @@ const Zi=Symbol.for(""),Fi=t=>{if(t?.r===Zi)return t?._$litStatic$},Bi=t=>({_$li
690
694
  </div>
691
695
  </div>
692
696
  </div>
693
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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 o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Vi})`}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,o){return Math.max(t,Math.min(0,-o))}}Xi.elementDefinitions={"ft-typography":Hi},Xi.styles=Ji,qi([C()],Xi.prototype,"text",void 0),qi([C({type:Boolean})],Xi.prototype,"manual",void 0),qi([C({type:Boolean})],Xi.prototype,"inline",void 0),qi([C({type:Number})],Xi.prototype,"delay",void 0),qi([C()],Xi.prototype,"position",void 0),qi([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],Xi.prototype,"slotNodes",void 0),qi([E(".ft-tooltip--container")],Xi.prototype,"container",void 0),qi([E(".ft-tooltip")],Xi.prototype,"tooltip",void 0),qi([E(".ft-tooltip--content")],Xi.prototype,"tooltipContent",void 0),qi([$()],Xi.prototype,"visible",void 0),k("ft-tooltip")(Xi);
697
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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 o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Ji})`}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,o){return Math.max(t,Math.min(0,-o))}}Qi.elementDefinitions={"ft-typography":ji},Qi.styles=qi,Xi([C()],Qi.prototype,"text",void 0),Xi([C({type:Boolean})],Qi.prototype,"manual",void 0),Xi([C({type:Boolean})],Qi.prototype,"inline",void 0),Xi([C({type:Number})],Qi.prototype,"delay",void 0),Xi([C()],Qi.prototype,"position",void 0),Xi([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],Qi.prototype,"slotNodes",void 0),Xi([E(".ft-tooltip--container")],Qi.prototype,"container",void 0),Xi([E(".ft-tooltip")],Qi.prototype,"tooltip",void 0),Xi([E(".ft-tooltip--content")],Qi.prototype,"tooltipContent",void 0),Xi([$()],Qi.prototype,"visible",void 0),k("ft-tooltip")(Qi);
694
698
  /**
695
699
  * @license
696
700
  * Copyright 2017 Google LLC
697
701
  * SPDX-License-Identifier: BSD-3-Clause
698
702
  */
699
- class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.vt=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Qi.directiveName="unsafeHTML",Qi.resultType=1;const tr=Ii(Qi);var or,er,ir;!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;"}(or||(or={})),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;"}(er||(er={})),new Map([...["abw"].map((t=>[t,er.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,er.AUDIO])),...["avi"].map((t=>[t,er.AVI])),...["chm","xhs"].map((t=>[t,er.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,er.CODE])),...["csv"].map((t=>[t,er.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,er.DITA])),...["epub"].map((t=>[t,er.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,er.EXCEL])),...["flac"].map((t=>[t,er.FLAC])),...["gif"].map((t=>[t,er.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,er.GZIP])),...["html","htm","xhtml"].map((t=>[t,er.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,er.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,er.JPEG])),...["json"].map((t=>[t,er.JSON])),...["m4a","m4p"].map((t=>[t,er.M4A])),...["mov","qt"].map((t=>[t,er.MOV])),...["mp3"].map((t=>[t,er.MP3])),...["mp4","m4v"].map((t=>[t,er.MP4])),...["ogg","oga"].map((t=>[t,er.OGG])),...["pdf","ps"].map((t=>[t,er.PDF])),...["png"].map((t=>[t,er.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,er.POWERPOINT])),...["rar"].map((t=>[t,er.RAR])),...["stp"].map((t=>[t,er.STP])),...["txt","rtf","md","mdown"].map((t=>[t,er.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,er.VIDEO])),...["wav"].map((t=>[t,er.WAV])),...["wma"].map((t=>[t,er.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,er.WORD])),...["xml","xsl","rdf"].map((t=>[t,er.XML])),...["yaml","yml","x-yaml"].map((t=>[t,er.YAML])),...["zip"].map((t=>[t,er.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ir||(ir={}));var rr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class nr extends zo{constructor(){super(...arguments),this.resolvedIcon=eo}render(){const t=this.variant&&Object.values(ir).includes(this.variant)?this.variant:ir.fluid_topics,o=t!==ir.material||!!this.value;return to`
703
+ class tr extends Li{constructor(t){if(super(t),this.et=Q,t.type!==Ii)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.vt=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}tr.directiveName="unsafeHTML",tr.resultType=1;const or=Wi(tr);var er,ir,rr;!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;"}(er||(er={})),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;"}(ir||(ir={})),new Map([...["abw"].map((t=>[t,ir.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,ir.AUDIO])),...["avi"].map((t=>[t,ir.AVI])),...["chm","xhs"].map((t=>[t,ir.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,ir.CODE])),...["csv"].map((t=>[t,ir.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ir.DITA])),...["epub"].map((t=>[t,ir.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ir.EXCEL])),...["flac"].map((t=>[t,ir.FLAC])),...["gif"].map((t=>[t,ir.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ir.GZIP])),...["html","htm","xhtml"].map((t=>[t,ir.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,ir.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ir.JPEG])),...["json"].map((t=>[t,ir.JSON])),...["m4a","m4p"].map((t=>[t,ir.M4A])),...["mov","qt"].map((t=>[t,ir.MOV])),...["mp3"].map((t=>[t,ir.MP3])),...["mp4","m4v"].map((t=>[t,ir.MP4])),...["ogg","oga"].map((t=>[t,ir.OGG])),...["pdf","ps"].map((t=>[t,ir.PDF])),...["png"].map((t=>[t,ir.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ir.POWERPOINT])),...["rar"].map((t=>[t,ir.RAR])),...["stp"].map((t=>[t,ir.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ir.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,ir.VIDEO])),...["wav"].map((t=>[t,ir.WAV])),...["wma"].map((t=>[t,ir.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ir.WORD])),...["xml","xsl","rdf"].map((t=>[t,ir.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ir.YAML])),...["zip"].map((t=>[t,ir.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(rr||(rr={}));var nr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ar extends zo{constructor(){super(...arguments),this.resolvedIcon=eo}render(){const t=this.variant&&Object.values(rr).includes(this.variant)?this.variant:rr.fluid_topics,o=t!==rr.material||!!this.value;return to`
700
704
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
701
- ${tr(this.resolvedIcon)}
705
+ ${or(this.resolvedIcon)}
702
706
  <slot ?hidden=${o}></slot>
703
707
  </i>
704
- `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case ir.file_format:this.resolvedIcon=null!==(t=er[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case ir.material:this.resolvedIcon=this.value||eo;break;default:this.resolvedIcon=null!==(o=or[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}nr.elementDefinitions={},nr.styles=xi,rr([C()],nr.prototype,"variant",void 0),rr([C()],nr.prototype,"value",void 0),rr([$()],nr.prototype,"resolvedIcon",void 0),rr([E("slot")],nr.prototype,"slottedContent",void 0),k("ft-icon")(nr);class ar extends zo{render(){return to`
708
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case rr.file_format:this.resolvedIcon=null!==(t=ir[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case rr.material:this.resolvedIcon=this.value||eo;break;default:this.resolvedIcon=null!==(o=er[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ar.elementDefinitions={},ar.styles=Oi,nr([C()],ar.prototype,"variant",void 0),nr([C()],ar.prototype,"value",void 0),nr([$()],ar.prototype,"resolvedIcon",void 0),nr([E("slot")],ar.prototype,"slottedContent",void 0),k("ft-icon")(ar);class sr extends zo{render(){return to`
705
709
  <div class="ft-loader">
706
710
  <div></div>
707
711
  <div></div>
708
712
  <div></div>
709
713
  <div></div>
710
714
  </div>
711
- `}}ar.styles=bi,k("ft-loader")(ar);var sr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class lr extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Bo].form}constructor(...t){super(t),this[Bo]=this.attachInternals(),this[Bo].role=o}setFormValue(t){this[Bo].setFormValue(t)}}}(zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!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 o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(to`
715
+ `}}sr.styles=mi,k("ft-loader")(sr);var lr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class cr extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Mo].form}constructor(...t){super(t),this[Mo]=this.attachInternals(),this[Mo].role=o}setFormValue(t){this[Mo].setFormValue(t)}}}(zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!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 o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(to`
712
716
  <button part="button"
713
- class="${Li(this.buttonClasses)}"
717
+ class="${Ki(this.buttonClasses)}"
714
718
  aria-label="${this.getLabel()}"
715
719
  ?disabled=${this.isDisabled()}>
716
720
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
717
721
  <ft-typography part="label"
718
722
  variant=${this.typographyVariant}
719
723
  element="span"
720
- class="ft-button--label ${Po?"ft-safari-ellipsis-fix":""}"
724
+ class="ft-button--label ${Ho?"ft-safari-ellipsis-fix":""}"
721
725
  ?hidden=${!this.hasTextContent()}>
722
726
  <slot @slotchange=${this.onSlotchange}></slot>
723
727
  </ft-typography>
@@ -731,7 +735,7 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
731
735
  </ft-tooltip>
732
736
  `:t}resolveIcon(){return this.loading?to`
733
737
  <ft-loader part="loader icon"></ft-loader> `:this.icon?to`
734
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}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}}lr.elementDefinitions={"ft-ripple":zi,"ft-tooltip":Xi,"ft-typography":Hi,"ft-icon":nr,"ft-loader":ar},sr([C({type:String,reflect:!0})],lr.prototype,"role",void 0),sr([C()],lr.prototype,"type",void 0),sr([C({type:Boolean})],lr.prototype,"disabled",void 0),sr([C()],lr.prototype,"label",void 0),sr([C()],lr.prototype,"icon",void 0),sr([C()],lr.prototype,"iconVariant",void 0),sr([C({type:Boolean})],lr.prototype,"trailingIcon",void 0),sr([C({type:Boolean})],lr.prototype,"loading",void 0),sr([C()],lr.prototype,"tooltipPosition",void 0),sr([C({type:Boolean})],lr.prototype,"hideTooltip",void 0),sr([C({type:Boolean})],lr.prototype,"forceTooltip",void 0),sr([E(".ft-button")],lr.prototype,"button",void 0),sr([E(".ft-button--label slot")],lr.prototype,"slottedContent",void 0);var cr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class pr extends lr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}pr.styles=[Fo,Ei],cr([C({type:Boolean})],pr.prototype,"primary",void 0),cr([C({type:Boolean})],pr.prototype,"outlined",void 0),cr([C({type:Boolean})],pr.prototype,"dense",void 0),cr([C({type:Boolean})],pr.prototype,"round",void 0);const fr=[mt`
738
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}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}}cr.elementDefinitions={"ft-ripple":Zi,"ft-tooltip":Qi,"ft-typography":ji,"ft-icon":ar,"ft-loader":sr},lr([C({type:String,reflect:!0})],cr.prototype,"role",void 0),lr([C()],cr.prototype,"type",void 0),lr([C({type:Boolean})],cr.prototype,"disabled",void 0),lr([C()],cr.prototype,"label",void 0),lr([C()],cr.prototype,"icon",void 0),lr([C()],cr.prototype,"iconVariant",void 0),lr([C({type:Boolean})],cr.prototype,"trailingIcon",void 0),lr([C({type:Boolean})],cr.prototype,"loading",void 0),lr([C()],cr.prototype,"tooltipPosition",void 0),lr([C({type:Boolean})],cr.prototype,"hideTooltip",void 0),lr([C({type:Boolean})],cr.prototype,"forceTooltip",void 0),lr([E(".ft-button")],cr.prototype,"button",void 0),lr([E(".ft-button--label slot")],cr.prototype,"slottedContent",void 0);var pr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class fr extends cr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}fr.styles=[Bo,Ui],pr([C({type:Boolean})],fr.prototype,"primary",void 0),pr([C({type:Boolean})],fr.prototype,"outlined",void 0),pr([C({type:Boolean})],fr.prototype,"dense",void 0),pr([C({type:Boolean})],fr.prototype,"round",void 0);const hr=[mt`
735
739
  :host {
736
740
  display: inline-block;
737
741
  max-width: 100%;
@@ -810,13 +814,13 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
810
814
  /** Primary styles **/
811
815
 
812
816
  .ft-button--primary {
813
- ${vo(gi.color,Co.primaryIconColor)};
817
+ ${vo(bi.color,Co.primaryIconColor)};
814
818
 
815
- ${vo(_o.color,Co.primaryStateLayerColor)};
816
- ${vo(_o.opacityContentOnSurfaceHover,Co.primaryStateLayerOpacityHover)};
817
- ${vo(_o.opacityContentOnSurfaceFocused,Co.primaryStateLayerOpacityFocus)};
818
- ${vo(_o.opacityContentOnSurfaceSelected,Co.primaryStateLayerOpacityActive)};
819
- ${vo(_o.opacityContentOnSurfacePressed,Co.primaryStateLayerOpacityActive)};
819
+ ${vo(Go.color,Co.primaryStateLayerColor)};
820
+ ${vo(Go.opacityContentOnSurfaceHover,Co.primaryStateLayerOpacityHover)};
821
+ ${vo(Go.opacityContentOnSurfaceFocused,Co.primaryStateLayerOpacityFocus)};
822
+ ${vo(Go.opacityContentOnSurfaceSelected,Co.primaryStateLayerOpacityActive)};
823
+ ${vo(Go.opacityContentOnSurfacePressed,Co.primaryStateLayerOpacityActive)};
820
824
 
821
825
  background-color: ${Co.primaryBackgroundColor};
822
826
  color: ${Co.primaryColor};
@@ -834,13 +838,13 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
834
838
  /** Secondary styles **/
835
839
 
836
840
  .ft-button--secondary {
837
- ${vo(gi.color,Co.secondaryIconColor)};
841
+ ${vo(bi.color,Co.secondaryIconColor)};
838
842
 
839
- ${vo(_o.color,Co.secondaryStateLayerColor)};
840
- ${vo(_o.opacityContentOnSurfaceHover,Co.secondaryStateLayerOpacityHover)};
841
- ${vo(_o.opacityContentOnSurfaceFocused,Co.secondaryStateLayerOpacityFocus)};
842
- ${vo(_o.opacityContentOnSurfaceSelected,Co.secondaryStateLayerOpacityActive)};
843
- ${vo(_o.opacityContentOnSurfacePressed,Co.secondaryStateLayerOpacityActive)};
843
+ ${vo(Go.color,Co.secondaryStateLayerColor)};
844
+ ${vo(Go.opacityContentOnSurfaceHover,Co.secondaryStateLayerOpacityHover)};
845
+ ${vo(Go.opacityContentOnSurfaceFocused,Co.secondaryStateLayerOpacityFocus)};
846
+ ${vo(Go.opacityContentOnSurfaceSelected,Co.secondaryStateLayerOpacityActive)};
847
+ ${vo(Go.opacityContentOnSurfacePressed,Co.secondaryStateLayerOpacityActive)};
844
848
 
845
849
  background-color: ${Co.secondaryBackgroundColor};
846
850
  color: ${Co.secondaryColor};
@@ -859,13 +863,13 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
859
863
  /** Tertiary styles **/
860
864
 
861
865
  .ft-button--tertiary {
862
- ${vo(gi.color,Co.tertiaryIconColor)};
866
+ ${vo(bi.color,Co.tertiaryIconColor)};
863
867
 
864
- ${vo(_o.color,Co.tertiaryStateLayerColor)};
865
- ${vo(_o.opacityContentOnSurfaceHover,Co.tertiaryStateLayerOpacityHover)};
866
- ${vo(_o.opacityContentOnSurfaceFocused,Co.tertiaryStateLayerOpacityFocus)};
867
- ${vo(_o.opacityContentOnSurfaceSelected,Co.tertiaryStateLayerOpacityActive)};
868
- ${vo(_o.opacityContentOnSurfacePressed,Co.tertiaryStateLayerOpacityActive)};
868
+ ${vo(Go.color,Co.tertiaryStateLayerColor)};
869
+ ${vo(Go.opacityContentOnSurfaceHover,Co.tertiaryStateLayerOpacityHover)};
870
+ ${vo(Go.opacityContentOnSurfaceFocused,Co.tertiaryStateLayerOpacityFocus)};
871
+ ${vo(Go.opacityContentOnSurfaceSelected,Co.tertiaryStateLayerOpacityActive)};
872
+ ${vo(Go.opacityContentOnSurfacePressed,Co.tertiaryStateLayerOpacityActive)};
869
873
 
870
874
  background-color: ${Co.tertiaryBackgroundColor};
871
875
  color: ${Co.tertiaryColor};
@@ -883,13 +887,13 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
883
887
  /** Neutral styles **/
884
888
 
885
889
  .ft-button--neutral {
886
- ${vo(gi.color,Co.neutralIconColor)};
890
+ ${vo(bi.color,Co.neutralIconColor)};
887
891
 
888
- ${vo(_o.backgroundColor,Co.neutralStateLayerColor)};
889
- ${vo(_o.opacityContentOnSurfaceHover,Co.neutralStateLayerOpacityHover)};
890
- ${vo(_o.opacityContentOnSurfaceFocused,Co.neutralStateLayerOpacityFocus)};
891
- ${vo(_o.opacityContentOnSurfaceSelected,Co.neutralStateLayerOpacityActive)};
892
- ${vo(_o.opacityContentOnSurfacePressed,Co.neutralStateLayerOpacityActive)};
892
+ ${vo(Go.backgroundColor,Co.neutralStateLayerColor)};
893
+ ${vo(Go.opacityContentOnSurfaceHover,Co.neutralStateLayerOpacityHover)};
894
+ ${vo(Go.opacityContentOnSurfaceFocused,Co.neutralStateLayerOpacityFocus)};
895
+ ${vo(Go.opacityContentOnSurfaceSelected,Co.neutralStateLayerOpacityActive)};
896
+ ${vo(Go.opacityContentOnSurfacePressed,Co.neutralStateLayerOpacityActive)};
893
897
 
894
898
  background-color: ${Co.neutralBackgroundColor};
895
899
  color: ${Co.neutralColor};
@@ -907,8 +911,8 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
907
911
  /** Large styles **/
908
912
 
909
913
  .ft-button--large {
910
- ${vo(mi.size,Co.largeIconSize)};
911
- ${vo(gi.size,Co.largeIconSize)};
914
+ ${vo(xi.size,Co.largeIconSize)};
915
+ ${vo(bi.size,Co.largeIconSize)};
912
916
 
913
917
  height: ${Co.largeHeight};
914
918
  padding: 0 ${Co.largeHorizontalPadding};
@@ -930,8 +934,8 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
930
934
  /** Small styles **/
931
935
 
932
936
  .ft-button--small {
933
- ${vo(mi.size,Co.smallIconSize)};
934
- ${vo(gi.size,Co.smallIconSize)};
937
+ ${vo(xi.size,Co.smallIconSize)};
938
+ ${vo(bi.size,Co.smallIconSize)};
935
939
 
936
940
  height: ${Co.smallHeight};
937
941
  padding: 0 ${Co.smallHorizontalPadding};
@@ -949,7 +953,7 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
949
953
  width: ${Co.smallIconOnlyWidth};
950
954
  padding: unset;
951
955
  }
952
- `,Zo];var hr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class dr extends lr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Di.caption1medium:Di.body2medium}}dr.styles=[Fo,fr],hr([C({type:Boolean})],dr.prototype,"primary",void 0),hr([C({type:Boolean})],dr.prototype,"secondary",void 0),hr([C({type:Boolean})],dr.prototype,"tertiary",void 0),hr([C({type:Boolean})],dr.prototype,"neutral",void 0),hr([C({type:Boolean})],dr.prototype,"small",void 0),k("ft-button")(pr),k("ftds-button")(dr);const ur={iconColor:Oo.extend("--ft-floating-menu-icon-color","",$o.colorOnSurfaceMedium)},yr=mt`
956
+ `,Fo];var dr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ur extends cr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Pi.caption1medium:Pi.body2medium}}ur.styles=[Bo,hr],dr([C({type:Boolean})],ur.prototype,"primary",void 0),dr([C({type:Boolean})],ur.prototype,"secondary",void 0),dr([C({type:Boolean})],ur.prototype,"tertiary",void 0),dr([C({type:Boolean})],ur.prototype,"neutral",void 0),dr([C({type:Boolean})],ur.prototype,"small",void 0),k("ft-button")(fr),k("ftds-button")(ur);const yr={iconColor:Oo.extend("--ft-floating-menu-icon-color","",$o.colorOnSurfaceMedium)},gr=mt`
953
957
  .ft-floating-menu-item {
954
958
  cursor: pointer;
955
959
  display: flex;
@@ -964,7 +968,7 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
964
968
  }
965
969
 
966
970
  .ft-floating-menu-item ft-icon {
967
- color: ${ur.iconColor};
971
+ color: ${yr.iconColor};
968
972
  margin-left: 0;
969
973
  flex-shrink: 0;
970
974
  flex-grow: 0;
@@ -979,7 +983,7 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
979
983
  word-break: break-word;
980
984
  hyphens: auto;
981
985
  }
982
- `;var gr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class br extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class mr extends zo{constructor(){super(...arguments),this.value=""}render(){return to`
986
+ `;var br=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class mr extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class xr extends zo{constructor(){super(...arguments),this.value=""}render(){return to`
983
987
  <div class="ft-floating-menu-item"
984
988
  @click=${this.onClick}>
985
989
  <ft-ripple></ft-ripple>
@@ -990,8 +994,8 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
990
994
  <slot></slot>
991
995
  </ft-typography>
992
996
  </div>
993
- `}onClick(t){this.dispatchEvent(new br(this.value))}}mr.elementDefinitions={"ft-icon":nr,"ft-ripple":zi,"ft-typography":Hi},mr.styles=yr,gr([C()],mr.prototype,"iconVariant",void 0),gr([C()],mr.prototype,"icon",void 0),gr([C()],mr.prototype,"value",void 0);var xr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Or extends zo{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=ir.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return to`
994
- <div class="${Li(t)}">
997
+ `}onClick(t){this.dispatchEvent(new mr(this.value))}}xr.elementDefinitions={"ft-icon":ar,"ft-ripple":Zi,"ft-typography":ji},xr.styles=gr,br([C()],xr.prototype,"iconVariant",void 0),br([C()],xr.prototype,"icon",void 0),br([C()],xr.prototype,"value",void 0);var Or=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vr extends zo{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=rr.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return to`
998
+ <div class="${Ki(t)}">
995
999
 
996
1000
  <slot name="toggle"
997
1001
  part="toggle"
@@ -1026,4 +1030,4 @@ class Qi extends Wi{constructor(t){if(super(t),this.et=Q,t.type!==ki)throw Error
1026
1030
  </div>
1027
1031
  </div>
1028
1032
  </div>
1029
- `}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){(function(t,o,e){if(o.length>0){const i=t.composedPath();for(let t of i){if(t===e)return!1;if(t.matches&&o.some((o=>t.matches(o))))return!0}}return!1})(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((o=>t.has(o)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){const t=this.menuContent.offsetWidth,o=this.menuContent.offsetHeight,e=this.actionButton.offsetWidth,i=this.actionButton.offsetHeight;let r=0,n=0;switch(this.menuWrapper.style.left="0",this.menuWrapper.style.top="0",this.horizontalAlignment){case"left":r=this.actionButton.offsetLeft-this.menuWrapper.offsetLeft;break;case"right":r=this.actionButton.offsetLeft+e-t-this.menuWrapper.offsetLeft;break;case"center":r=this.actionButton.offsetLeft+e/2-t/2-this.menuWrapper.offsetLeft}switch(this.verticalAlignment){case"bottom":n=this.actionButton.offsetTop+i+4-this.menuWrapper.offsetTop;break;case"top":n=this.actionButton.offsetTop-o-4-this.menuWrapper.offsetTop}const a=this.menuWrapper.style;a.left=r+"px",a.top=n+"px";const s=this.menuWrapper.getBoundingClientRect();let l=-s.x,c=s.x+s.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(l,c))+"px";let p=-s.y,f=s.y+s.height-window.innerHeight;a.top=n+Math.round(this.correctOutOfWindowPixels(p,f))+"px",this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Or.elementDefinitions={"ft-floating-menu-item":mr},xr([$()],Or.prototype,"menuOpen",void 0),xr([$()],Or.prototype,"forceMenuOpen",void 0),xr([E(".ft-floating-menu")],Or.prototype,"container",void 0),xr([E(".ft-floating-menu--wrapper")],Or.prototype,"menuWrapper",void 0),xr([E("#ft-floating-menu-options")],Or.prototype,"menuContent",void 0),xr([E("#actions-button")],Or.prototype,"actionButton",void 0),xr([C({type:Boolean})],Or.prototype,"primary",void 0),xr([C({type:Boolean})],Or.prototype,"secondary",void 0),xr([C({type:Boolean})],Or.prototype,"tertiary",void 0),xr([C({type:Boolean})],Or.prototype,"neutral",void 0),xr([C({type:Boolean})],Or.prototype,"small",void 0),xr([C()],Or.prototype,"label",void 0),xr([C()],Or.prototype,"tooltipPosition",void 0),xr([C()],Or.prototype,"iconVariant",void 0),xr([C()],Or.prototype,"icon",void 0),xr([C()],Or.prototype,"text",void 0),xr([C()],Or.prototype,"horizontalAlignment",void 0),xr([C()],Or.prototype,"verticalAlignment",void 0),xr([C({type:Boolean})],Or.prototype,"disabled",void 0),xr([I([])],Or.prototype,"closeMenuMatchers",void 0);class vr extends Or{}vr.elementDefinitions={"ft-or-ftds-button":pr},vr.styles=jo;class Nr extends Or{}Nr.elementDefinitions={"ft-or-ftds-button":dr},Nr.styles=jo,k("ft-floating-menu")(vr),k("ftds-floating-menu")(Nr),k("ft-floating-menu-item")(mr),t.FtFloatingMenu=vr,t.FtFloatingMenuCssVariables=Ho,t.FtFloatingMenuItem=mr,t.FtFloatingMenuItemCssVariables=ur,t.FtFloatingMenuItemSelect=br,t.FtdsFloatingMenu=Nr,t.itemStyles=yr,t.styles=jo}({});
1033
+ `}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){(function(t,o,e){if(o.length>0){const i=t.composedPath();for(let t of i){if(t===e)return!1;if(t.matches&&o.some((o=>t.matches(o))))return!0}}return!1})(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((o=>t.has(o)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){const t=this.menuContent.offsetWidth,o=this.menuContent.offsetHeight,e=this.actionButton.offsetWidth,i=this.actionButton.offsetHeight;let r=0,n=0;switch(this.menuWrapper.style.left="0",this.menuWrapper.style.top="0",this.horizontalAlignment){case"left":r=this.actionButton.offsetLeft-this.menuWrapper.offsetLeft;break;case"right":r=this.actionButton.offsetLeft+e-t-this.menuWrapper.offsetLeft;break;case"center":r=this.actionButton.offsetLeft+e/2-t/2-this.menuWrapper.offsetLeft}switch(this.verticalAlignment){case"bottom":n=this.actionButton.offsetTop+i+4-this.menuWrapper.offsetTop;break;case"top":n=this.actionButton.offsetTop-o-4-this.menuWrapper.offsetTop}const a=this.menuWrapper.style;a.left=r+"px",a.top=n+"px";const s=this.menuWrapper.getBoundingClientRect();let l=-s.x,c=s.x+s.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(l,c))+"px";let p=-s.y,f=s.y+s.height-window.innerHeight;a.top=n+Math.round(this.correctOutOfWindowPixels(p,f))+"px",this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}vr.elementDefinitions={"ft-floating-menu-item":xr},Or([$()],vr.prototype,"menuOpen",void 0),Or([$()],vr.prototype,"forceMenuOpen",void 0),Or([E(".ft-floating-menu")],vr.prototype,"container",void 0),Or([E(".ft-floating-menu--wrapper")],vr.prototype,"menuWrapper",void 0),Or([E("#ft-floating-menu-options")],vr.prototype,"menuContent",void 0),Or([E("#actions-button")],vr.prototype,"actionButton",void 0),Or([C({type:Boolean})],vr.prototype,"primary",void 0),Or([C({type:Boolean})],vr.prototype,"secondary",void 0),Or([C({type:Boolean})],vr.prototype,"tertiary",void 0),Or([C({type:Boolean})],vr.prototype,"neutral",void 0),Or([C({type:Boolean})],vr.prototype,"small",void 0),Or([C()],vr.prototype,"label",void 0),Or([C()],vr.prototype,"tooltipPosition",void 0),Or([C()],vr.prototype,"iconVariant",void 0),Or([C()],vr.prototype,"icon",void 0),Or([C()],vr.prototype,"text",void 0),Or([C()],vr.prototype,"horizontalAlignment",void 0),Or([C()],vr.prototype,"verticalAlignment",void 0),Or([C({type:Boolean})],vr.prototype,"disabled",void 0),Or([I([])],vr.prototype,"closeMenuMatchers",void 0);class Nr extends vr{}Nr.elementDefinitions={"ft-or-ftds-button":fr},Nr.styles=To;class Sr extends vr{}Sr.elementDefinitions={"ft-or-ftds-button":ur},Sr.styles=To,k("ft-floating-menu")(Nr),k("ftds-floating-menu")(Sr),k("ft-floating-menu-item")(xr),t.FtFloatingMenu=Nr,t.FtFloatingMenuCssVariables=jo,t.FtFloatingMenuItem=xr,t.FtFloatingMenuItemCssVariables=yr,t.FtFloatingMenuItemSelect=mr,t.FtdsFloatingMenu=Sr,t.itemStyles=gr,t.styles=To}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-floating-menu",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Floating menu component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "1.1.0",
23
- "@fluid-topics/ft-icon": "1.1.0",
24
- "@fluid-topics/ft-ripple": "1.1.0",
25
- "@fluid-topics/ft-typography": "1.1.0",
26
- "@fluid-topics/ft-wc-utils": "1.1.0",
22
+ "@fluid-topics/ft-button": "1.1.2",
23
+ "@fluid-topics/ft-icon": "1.1.2",
24
+ "@fluid-topics/ft-ripple": "1.1.2",
25
+ "@fluid-topics/ft-typography": "1.1.2",
26
+ "@fluid-topics/ft-wc-utils": "1.1.2",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "3f2a051fc84a0e27b942f311efee39954f6d2883"
29
+ "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
30
30
  }