@fluid-topics/ft-dialog 0.3.11 → 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=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,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let h=e.call(o,t);h||(h=c(t),i.call(o,t,h)),this===window.customElements&&(r.set(n,p),p.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.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,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,h=t=>{let i=t.getRootNode();if(!p(i)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),p(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},c=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=h(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},f=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):f(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){f(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(Zi){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=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,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let h=e.call(o,t);h||(h=c(t),i.call(o,t,h)),this===window.customElements&&(r.set(n,p),p.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.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,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,h=t=>{let i=t.getRootNode();if(!p(i)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),p(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},c=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=h(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},f=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):f(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){f(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let v=[document];const g=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){v.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){v.push(this),e.set.call(this,t),v.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(Vi){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -45,12 +45,12 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const h=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),d=new WeakMap;class f{constructor(t,i,e){if(this._$cssResult$=!0,e!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(h&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=d.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&d.set(i,t))}return t}toString(){return this.cssText}}const u=t=>new f("string"==typeof t?t:t+"",void 0,c),y=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new f(e,t,c)},g=(t,i)=>{h?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},v=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return u(i)})(t):t
48
+ const h=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),d=new WeakMap;class f{constructor(t,i,e){if(this._$cssResult$=!0,e!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(h&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=d.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&d.set(i,t))}return t}toString(){return this.cssText}}const u=t=>new f("string"==typeof t?t:t+"",void 0,c),y=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new f(e,t,c)},v=(t,i)=>{h?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},g=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return u(i)})(t):t
49
49
  /**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */;var b;const x=window.trustedTypes,m=x?x.emptyScript:"",w=window.reactiveElementPolyfillSupport,$={toAttribute(t,i){switch(i){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},O=(t,i)=>i!==t&&(i==i||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=S){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(v(t))}else void 0!==t&&i.push(v(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return g(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=S){var o,n;const s=this.constructor._$Ep(t,e);if(void 0!==s&&!0===e.reflect){const r=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:$.toAttribute)(i,e.type);this._$El=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$El=null}}_$AK(t,i){var e,o;const n=this.constructor,s=n._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=n.getPropertyOptions(s),r=t.converter,a=null!==(o=null!==(e=null==r?void 0:r.fromAttribute)&&void 0!==e?e:"function"==typeof r?r:null)&&void 0!==o?o:$.fromAttribute;this._$El=s,this[s]=a(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
53
+ */;var b;const x=window.trustedTypes,m=x?x.emptyScript:"",w=window.reactiveElementPolyfillSupport,$={toAttribute(t,i){switch(i){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},O=(t,i)=>i!==t&&(i==i||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=S){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(g(t))}else void 0!==t&&i.push(g(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return v(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=S){var o,n;const s=this.constructor._$Ep(t,e);if(void 0!==s&&!0===e.reflect){const r=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:$.toAttribute)(i,e.type);this._$El=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$El=null}}_$AK(t,i){var e,o;const n=this.constructor,s=n._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=n.getPropertyOptions(s),r=t.converter,a=null!==(o=null!==(e=null==r?void 0:r.fromAttribute)&&void 0!==e?e:"function"==typeof r?r:null)&&void 0!==o?o:$.fromAttribute;this._$El=s,this[s]=a(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
54
54
  /**
55
55
  * @license
56
56
  * Copyright 2017 Google LLC
@@ -67,7 +67,7 @@ var rt,at;null==st||st(q,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
67
67
  * @license
68
68
  * Copyright 2021 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */var ft=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ut extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(n,this.constructor.elementStyles),n}}}(lt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),W`
70
+ */var ft=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ut extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return v(n,this.constructor.elementStyles),n}}}(lt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),W`
71
71
  ${t.map((t=>W`
72
72
  <style>${t}</style>
73
73
  `))}
@@ -81,279 +81,311 @@ var rt,at;null==st||st(q,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
81
81
  -ms-user-select: none;
82
82
  user-select: none;
83
83
  }
84
- `;var gt,vt,bt;const xt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(bt=null===(vt=null===(gt=window.safari)||void 0===gt?void 0:gt.pushNotification)||void 0===vt?void 0:vt.toString())&&void 0!==bt?bt:""),mt=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void 0:t._$litStatic$},$t=t=>({_$litStatic$:t,r:mt}),Ot=new Map,St=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(s=e[p],n=wt(s));)l+=n+i[++p],h=!0;a.push(s),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=Ot.get(t))&&(r.raw=r,Ot.set(t,i=r)),e=a}return t(i,...e)})(W);
84
+ `;var vt,gt,bt;const xt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(bt=null===(gt=null===(vt=window.safari)||void 0===vt?void 0:vt.pushNotification)||void 0===gt?void 0:gt.toString())&&void 0!==bt?bt:""),mt=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void 0:t._$litStatic$},$t=t=>({_$litStatic$:t,r:mt}),Ot=new Map,St=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(s=e[p],n=wt(s));)l+=n+i[++p],h=!0;a.push(s),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=Ot.get(t))&&(r.raw=r,Ot.set(t,i=r)),e=a}return t(i,...e)})(W);
85
85
  /**
86
86
  * @license
87
87
  * Copyright 2020 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
- */var kt,Ct=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(kt||(kt={}));const Nt=ht.extend("--ft-typography-font-family",dt.titleFont),Et=ht.extend("--ft-typography-font-family",dt.contentFont),Rt={fontFamily:Et,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Mt=ht.extend("--ft-typography-title-font-family",Nt),zt=ht.extend("--ft-typography-title-font-size",Rt.fontSize,"20px"),Ut=ht.extend("--ft-typography-title-font-weight",Rt.fontWeight,"normal"),Ft=ht.extend("--ft-typography-title-letter-spacing",Rt.letterSpacing,"0.15px"),jt=ht.extend("--ft-typography-title-line-height",Rt.lineHeight,"1.2"),Bt=ht.extend("--ft-typography-title-text-transform",Rt.textTransform,"inherit"),Tt=ht.extend("--ft-typography-title-dense-font-family",Nt),At=ht.extend("--ft-typography-title-dense-font-size",Rt.fontSize,"14px"),Lt=ht.extend("--ft-typography-title-dense-font-weight",Rt.fontWeight,"normal"),Pt=ht.extend("--ft-typography-title-dense-letter-spacing",Rt.letterSpacing,"0.105px"),Dt=ht.extend("--ft-typography-title-dense-line-height",Rt.lineHeight,"1.7"),It=ht.extend("--ft-typography-title-dense-text-transform",Rt.textTransform,"inherit"),_t=ht.extend("--ft-typography-subtitle1-font-family",Et),Wt=ht.extend("--ft-typography-subtitle1-font-size",Rt.fontSize,"16px"),Ht=ht.extend("--ft-typography-subtitle1-font-weight",Rt.fontWeight,"600"),Kt=ht.extend("--ft-typography-subtitle1-letter-spacing",Rt.letterSpacing,"0.144px"),Zt=ht.extend("--ft-typography-subtitle1-line-height",Rt.lineHeight,"1.5"),Vt=ht.extend("--ft-typography-subtitle1-text-transform",Rt.textTransform,"inherit"),Jt=ht.extend("--ft-typography-subtitle2-font-family",Et),qt=ht.extend("--ft-typography-subtitle2-font-size",Rt.fontSize,"14px"),Xt=ht.extend("--ft-typography-subtitle2-font-weight",Rt.fontWeight,"normal"),Yt=ht.extend("--ft-typography-subtitle2-letter-spacing",Rt.letterSpacing,"0.098px"),Gt=ht.extend("--ft-typography-subtitle2-line-height",Rt.lineHeight,"1.7"),Qt=ht.extend("--ft-typography-subtitle2-text-transform",Rt.textTransform,"inherit"),ti=ht.extend("--ft-typography-body1-font-family",Et),ii=ht.extend("--ft-typography-body1-font-size",Rt.fontSize,"16px"),ei=ht.extend("--ft-typography-body1-font-weight",Rt.fontWeight,"normal"),oi=ht.extend("--ft-typography-body1-letter-spacing",Rt.letterSpacing,"0.496px"),ni=ht.extend("--ft-typography-body1-line-height",Rt.lineHeight,"1.5"),si=ht.extend("--ft-typography-body1-text-transform",Rt.textTransform,"inherit"),ri=ht.extend("--ft-typography-body2-font-family",Et),ai=ht.extend("--ft-typography-body2-font-size",Rt.fontSize,"14px"),li=ht.extend("--ft-typography-body2-font-weight",Rt.fontWeight,"normal"),pi=ht.extend("--ft-typography-body2-letter-spacing",Rt.letterSpacing,"0.252px"),hi=ht.extend("--ft-typography-body2-line-height",Rt.lineHeight,"1.4"),ci=ht.extend("--ft-typography-body2-text-transform",Rt.textTransform,"inherit"),di=ht.extend("--ft-typography-caption-font-family",Et),fi=ht.extend("--ft-typography-caption-font-size",Rt.fontSize,"12px"),ui=ht.extend("--ft-typography-caption-font-weight",Rt.fontWeight,"normal"),yi=ht.extend("--ft-typography-caption-letter-spacing",Rt.letterSpacing,"0.396px"),gi=ht.extend("--ft-typography-caption-line-height",Rt.lineHeight,"1.33"),vi=ht.extend("--ft-typography-caption-text-transform",Rt.textTransform,"inherit"),bi=ht.extend("--ft-typography-breadcrumb-font-family",Et),xi=ht.extend("--ft-typography-breadcrumb-font-size",Rt.fontSize,"10px"),mi=ht.extend("--ft-typography-breadcrumb-font-weight",Rt.fontWeight,"normal"),wi=ht.extend("--ft-typography-breadcrumb-letter-spacing",Rt.letterSpacing,"0.33px"),$i=ht.extend("--ft-typography-breadcrumb-line-height",Rt.lineHeight,"1.6"),Oi=ht.extend("--ft-typography-breadcrumb-text-transform",Rt.textTransform,"inherit"),Si=ht.extend("--ft-typography-overline-font-family",Et),ki=ht.extend("--ft-typography-overline-font-size",Rt.fontSize,"10px"),Ci=ht.extend("--ft-typography-overline-font-weight",Rt.fontWeight,"normal"),Ni=ht.extend("--ft-typography-overline-letter-spacing",Rt.letterSpacing,"1.5px"),Ei=ht.extend("--ft-typography-overline-line-height",Rt.lineHeight,"1.6"),Ri=ht.extend("--ft-typography-overline-text-transform",Rt.textTransform,"uppercase"),Mi={fontFamily:ht.extend("--ft-typography-button-font-family",Et),fontSize:ht.extend("--ft-typography-button-font-size",Rt.fontSize,"14px"),fontWeight:ht.extend("--ft-typography-button-font-weight",Rt.fontWeight,"600"),letterSpacing:ht.extend("--ft-typography-button-letter-spacing",Rt.letterSpacing,"1.246px"),lineHeight:ht.extend("--ft-typography-button-line-height",Rt.lineHeight,"1.15"),textTransform:ht.extend("--ft-typography-button-text-transform",Rt.textTransform,"uppercase")},zi=y`
89
+ */var kt;!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"}(kt||(kt={}));const Ct=ht.extend("--ft-typography-font-family",dt.titleFont),Nt=ht.extend("--ft-typography-font-family",dt.contentFont),Et={fontFamily:Nt,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Rt=ht.extend("--ft-typography-title-font-family",Ct),Mt=ht.extend("--ft-typography-title-font-size",Et.fontSize,"20px"),zt=ht.extend("--ft-typography-title-font-weight",Et.fontWeight,"normal"),Ut=ht.extend("--ft-typography-title-letter-spacing",Et.letterSpacing,"0.15px"),Ft=ht.extend("--ft-typography-title-line-height",Et.lineHeight,"1.2"),jt=ht.extend("--ft-typography-title-text-transform",Et.textTransform,"inherit"),Bt=ht.extend("--ft-typography-title-dense-font-family",Ct),Tt=ht.extend("--ft-typography-title-dense-font-size",Et.fontSize,"14px"),At=ht.extend("--ft-typography-title-dense-font-weight",Et.fontWeight,"normal"),Lt=ht.extend("--ft-typography-title-dense-letter-spacing",Et.letterSpacing,"0.105px"),Pt=ht.extend("--ft-typography-title-dense-line-height",Et.lineHeight,"1.7"),Dt=ht.extend("--ft-typography-title-dense-text-transform",Et.textTransform,"inherit"),It=ht.extend("--ft-typography-subtitle1-font-family",Nt),_t=ht.extend("--ft-typography-subtitle1-font-size",Et.fontSize,"16px"),Wt=ht.extend("--ft-typography-subtitle1-font-weight",Et.fontWeight,"600"),Ht=ht.extend("--ft-typography-subtitle1-letter-spacing",Et.letterSpacing,"0.144px"),Kt=ht.extend("--ft-typography-subtitle1-line-height",Et.lineHeight,"1.5"),Zt=ht.extend("--ft-typography-subtitle1-text-transform",Et.textTransform,"inherit"),Vt=ht.extend("--ft-typography-subtitle2-font-family",Nt),Jt=ht.extend("--ft-typography-subtitle2-font-size",Et.fontSize,"14px"),qt=ht.extend("--ft-typography-subtitle2-font-weight",Et.fontWeight,"normal"),Xt=ht.extend("--ft-typography-subtitle2-letter-spacing",Et.letterSpacing,"0.098px"),Yt=ht.extend("--ft-typography-subtitle2-line-height",Et.lineHeight,"1.7"),Gt=ht.extend("--ft-typography-subtitle2-text-transform",Et.textTransform,"inherit"),Qt=ht.extend("--ft-typography-body1-font-family",Nt),ti=ht.extend("--ft-typography-body1-font-size",Et.fontSize,"16px"),ii=ht.extend("--ft-typography-body1-font-weight",Et.fontWeight,"normal"),ei=ht.extend("--ft-typography-body1-letter-spacing",Et.letterSpacing,"0.496px"),oi=ht.extend("--ft-typography-body1-line-height",Et.lineHeight,"1.5"),ni=ht.extend("--ft-typography-body1-text-transform",Et.textTransform,"inherit"),si=ht.extend("--ft-typography-body2-font-family",Nt),ri=ht.extend("--ft-typography-body2-font-size",Et.fontSize,"14px"),ai=ht.extend("--ft-typography-body2-font-weight",Et.fontWeight,"normal"),li=ht.extend("--ft-typography-body2-letter-spacing",Et.letterSpacing,"0.252px"),pi=ht.extend("--ft-typography-body2-line-height",Et.lineHeight,"1.4"),hi=ht.extend("--ft-typography-body2-text-transform",Et.textTransform,"inherit"),ci=ht.extend("--ft-typography-caption-font-family",Nt),di=ht.extend("--ft-typography-caption-font-size",Et.fontSize,"12px"),fi=ht.extend("--ft-typography-caption-font-weight",Et.fontWeight,"normal"),ui=ht.extend("--ft-typography-caption-letter-spacing",Et.letterSpacing,"0.396px"),yi=ht.extend("--ft-typography-caption-line-height",Et.lineHeight,"1.33"),vi=ht.extend("--ft-typography-caption-text-transform",Et.textTransform,"inherit"),gi=ht.extend("--ft-typography-breadcrumb-font-family",Nt),bi=ht.extend("--ft-typography-breadcrumb-font-size",Et.fontSize,"10px"),xi=ht.extend("--ft-typography-breadcrumb-font-weight",Et.fontWeight,"normal"),mi=ht.extend("--ft-typography-breadcrumb-letter-spacing",Et.letterSpacing,"0.33px"),wi=ht.extend("--ft-typography-breadcrumb-line-height",Et.lineHeight,"1.6"),$i=ht.extend("--ft-typography-breadcrumb-text-transform",Et.textTransform,"inherit"),Oi=ht.extend("--ft-typography-overline-font-family",Nt),Si=ht.extend("--ft-typography-overline-font-size",Et.fontSize,"10px"),ki=ht.extend("--ft-typography-overline-font-weight",Et.fontWeight,"normal"),Ci=ht.extend("--ft-typography-overline-letter-spacing",Et.letterSpacing,"1.5px"),Ni=ht.extend("--ft-typography-overline-line-height",Et.lineHeight,"1.6"),Ei=ht.extend("--ft-typography-overline-text-transform",Et.textTransform,"uppercase"),Ri={fontFamily:ht.extend("--ft-typography-button-font-family",Nt),fontSize:ht.extend("--ft-typography-button-font-size",Et.fontSize,"14px"),fontWeight:ht.extend("--ft-typography-button-font-weight",Et.fontWeight,"600"),letterSpacing:ht.extend("--ft-typography-button-letter-spacing",Et.letterSpacing,"1.246px"),lineHeight:ht.extend("--ft-typography-button-line-height",Et.lineHeight,"1.15"),textTransform:ht.extend("--ft-typography-button-text-transform",Et.textTransform,"uppercase")},Mi=y`
90
90
  .ft-typography--title {
91
- font-family: ${Mt};
92
- font-size: ${zt};
93
- font-weight: ${Ut};
94
- letter-spacing: ${Ft};
95
- line-height: ${jt};
96
- text-transform: ${Bt};
91
+ font-family: ${Rt};
92
+ font-size: ${Mt};
93
+ font-weight: ${zt};
94
+ letter-spacing: ${Ut};
95
+ line-height: ${Ft};
96
+ text-transform: ${jt};
97
97
  }
98
- `,Ui=y`
98
+ `,zi=y`
99
99
  .ft-typography--title-dense {
100
- font-family: ${Tt};
101
- font-size: ${At};
102
- font-weight: ${Lt};
103
- letter-spacing: ${Pt};
104
- line-height: ${Dt};
105
- text-transform: ${It};
100
+ font-family: ${Bt};
101
+ font-size: ${Tt};
102
+ font-weight: ${At};
103
+ letter-spacing: ${Lt};
104
+ line-height: ${Pt};
105
+ text-transform: ${Dt};
106
106
  }
107
- `,Fi=y`
107
+ `,Ui=y`
108
108
  .ft-typography--subtitle1 {
109
- font-family: ${_t};
110
- font-size: ${Wt};
111
- font-weight: ${Ht};
112
- letter-spacing: ${Kt};
113
- line-height: ${Zt};
114
- text-transform: ${Vt};
109
+ font-family: ${It};
110
+ font-size: ${_t};
111
+ font-weight: ${Wt};
112
+ letter-spacing: ${Ht};
113
+ line-height: ${Kt};
114
+ text-transform: ${Zt};
115
115
  }
116
- `,ji=y`
116
+ `,Fi=y`
117
117
  .ft-typography--subtitle2 {
118
- font-family: ${Jt};
119
- font-size: ${qt};
120
- font-weight: ${Xt};
121
- letter-spacing: ${Yt};
122
- line-height: ${Gt};
123
- text-transform: ${Qt};
118
+ font-family: ${Vt};
119
+ font-size: ${Jt};
120
+ font-weight: ${qt};
121
+ letter-spacing: ${Xt};
122
+ line-height: ${Yt};
123
+ text-transform: ${Gt};
124
124
  }
125
125
 
126
- `,Bi=y`
126
+ `,ji=y`
127
127
  .ft-typography--body1 {
128
- font-family: ${ti};
129
- font-size: ${ii};
130
- font-weight: ${ei};
131
- letter-spacing: ${oi};
132
- line-height: ${ni};
133
- text-transform: ${si};
128
+ font-family: ${Qt};
129
+ font-size: ${ti};
130
+ font-weight: ${ii};
131
+ letter-spacing: ${ei};
132
+ line-height: ${oi};
133
+ text-transform: ${ni};
134
134
  }
135
- `,Ti=y`
135
+ `,Bi=y`
136
136
  .ft-typography--body2 {
137
- font-family: ${ri};
138
- font-size: ${ai};
139
- font-weight: ${li};
140
- letter-spacing: ${pi};
141
- line-height: ${hi};
142
- text-transform: ${ci};
137
+ font-family: ${si};
138
+ font-size: ${ri};
139
+ font-weight: ${ai};
140
+ letter-spacing: ${li};
141
+ line-height: ${pi};
142
+ text-transform: ${hi};
143
143
  }
144
- `,Ai=y`
144
+ `,Ti=y`
145
145
  .ft-typography--caption {
146
- font-family: ${di};
147
- font-size: ${fi};
148
- font-weight: ${ui};
149
- letter-spacing: ${yi};
150
- line-height: ${gi};
146
+ font-family: ${ci};
147
+ font-size: ${di};
148
+ font-weight: ${fi};
149
+ letter-spacing: ${ui};
150
+ line-height: ${yi};
151
151
  text-transform: ${vi};
152
152
  }
153
- `,Li=y`
153
+ `,Ai=y`
154
154
  .ft-typography--breadcrumb {
155
- font-family: ${bi};
156
- font-size: ${xi};
157
- font-weight: ${mi};
158
- letter-spacing: ${wi};
159
- line-height: ${$i};
160
- text-transform: ${Oi};
155
+ font-family: ${gi};
156
+ font-size: ${bi};
157
+ font-weight: ${xi};
158
+ letter-spacing: ${mi};
159
+ line-height: ${wi};
160
+ text-transform: ${$i};
161
161
  }
162
- `,Pi=y`
162
+ `,Li=y`
163
163
  .ft-typography--overline {
164
- font-family: ${Si};
165
- font-size: ${ki};
166
- font-weight: ${Ci};
167
- letter-spacing: ${Ni};
168
- line-height: ${Ei};
169
- text-transform: ${Ri};
164
+ font-family: ${Oi};
165
+ font-size: ${Si};
166
+ font-weight: ${ki};
167
+ letter-spacing: ${Ci};
168
+ line-height: ${Ni};
169
+ text-transform: ${Ei};
170
170
  }
171
- `,Di=y`
171
+ `,Pi=y`
172
172
  .ft-typography--button {
173
- font-family: ${Mi.fontFamily};
174
- font-size: ${Mi.fontSize};
175
- font-weight: ${Mi.fontWeight};
176
- letter-spacing: ${Mi.letterSpacing};
177
- line-height: ${Mi.lineHeight};
178
- text-transform: ${Mi.textTransform};
179
- }
180
- `;class Ii extends ut{constructor(){super(...arguments),this.variant=kt.body1}render(){return this.element?St`
173
+ font-family: ${Ri.fontFamily};
174
+ font-size: ${Ri.fontSize};
175
+ font-weight: ${Ri.fontWeight};
176
+ letter-spacing: ${Ri.letterSpacing};
177
+ line-height: ${Ri.lineHeight};
178
+ text-transform: ${Ri.textTransform};
179
+ }
180
+ `,Di=y`
181
+ .ft-typography {
182
+ vertical-align: inherit;
183
+ }
184
+ `;var Ii=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class _i extends ut{constructor(){super(...arguments),this.variant=kt.body1}render(){return this.element?St`
181
185
  <${$t(this.element)}
182
186
  class="ft-typography ft-typography--${this.variant}">
183
187
  <slot></slot>
184
188
  </${$t(this.element)}>
185
189
  `:St`
186
190
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
187
- `}}Ii.styles=[zi,Ui,Fi,ji,Bi,Ti,Ai,Li,Pi,Di,y`
188
- .ft-typography {
189
- vertical-align: inherit;
190
- }
191
- `],Ct([o()],Ii.prototype,"element",void 0),Ct([o()],Ii.prototype,"variant",void 0),p("ft-typography")(Ii);
191
+ `}}_i.styles=[Mi,zi,Ui,Fi,ji,Bi,Ti,Ai,Li,Pi,Di],Ii([o()],_i.prototype,"element",void 0),Ii([o()],_i.prototype,"variant",void 0),p("ft-typography")(_i);
192
192
  /**
193
193
  * @license
194
194
  * Copyright 2017 Google LLC
195
195
  * SPDX-License-Identifier: BSD-3-Clause
196
196
  */
197
- const _i=1,Wi=2,Hi=t=>(...i)=>({_$litDirective$:t,values:i});class Ki{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
197
+ const Wi=1,Hi=2,Ki=t=>(...i)=>({_$litDirective$:t,values:i});class Zi{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
198
198
  /**
199
199
  * @license
200
200
  * Copyright 2017 Google LLC
201
201
  * SPDX-License-Identifier: BSD-3-Clause
202
- */class Zi extends Ki{constructor(t){if(super(t),this.it=K,t.type!==Wi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Zi.directiveName="unsafeHTML",Zi.resultType=1;const Vi=Hi(Zi);var Ji,qi;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Ji||(Ji={})),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;"}(qi||(qi={})),new Map([...["abw"].map((t=>[t,qi.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,qi.AUDIO])),...["avi"].map((t=>[t,qi.AVI])),...["chm","xhs"].map((t=>[t,qi.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,qi.CODE])),...["csv"].map((t=>[t,qi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qi.DITA])),...["epub"].map((t=>[t,qi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qi.EXCEL])),...["flac"].map((t=>[t,qi.FLAC])),...["gif"].map((t=>[t,qi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qi.GZIP])),...["html","htm","xhtml"].map((t=>[t,qi.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,qi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qi.JPEG])),...["json"].map((t=>[t,qi.JSON])),...["m4a","m4p"].map((t=>[t,qi.M4A])),...["mov","qt"].map((t=>[t,qi.MOV])),...["mp3"].map((t=>[t,qi.MP3])),...["mp4","m4v"].map((t=>[t,qi.MP4])),...["ogg","oga"].map((t=>[t,qi.OGG])),...["pdf","ps"].map((t=>[t,qi.PDF])),...["png"].map((t=>[t,qi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qi.POWERPOINT])),...["rar"].map((t=>[t,qi.RAR])),...["stp"].map((t=>[t,qi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qi.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,qi.VIDEO])),...["wav"].map((t=>[t,qi.WAV])),...["wma"].map((t=>[t,qi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qi.WORD])),...["xml","xsl","rdf"].map((t=>[t,qi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qi.YAML])),...["zip"].map((t=>[t,qi.ZIP]))]);var Xi,Yi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xi||(Xi={}));const Gi={size:ht.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ht.extend("--ft-icon-fluid-topics-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.extend("--ft-icon-file-format-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ht.extend("--ft-icon-material-font-family",ht.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ht.create("--ft-icon-vertical-align","UNKNOWN","unset")};class Qi extends ut{constructor(){super(...arguments),this.variant=Xi.fluid_topics,this.resolvedIcon=K}render(){return W`
203
- <i class="ft-icon ${"ft-icon--"+this.variant}">
204
- ${Vi(this.resolvedIcon)}
205
- <slot ?hidden=${"material"!==this.variant}></slot>
206
- </i>
207
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Xi.file_format:this.resolvedIcon=null!==(t=qi[e.toUpperCase()])&&void 0!==t?t:e;break;case Xi.fluid_topics:this.resolvedIcon=null!==(i=Ji[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=K}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Qi.elementDefinitions={},Qi.styles=y`
208
- :host {
209
- display: inline-block;
210
- }
202
+ */class Vi extends Zi{constructor(t){if(super(t),this.it=K,t.type!==Hi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Vi.directiveName="unsafeHTML",Vi.resultType=1;const Ji=Ki(Vi);var qi,Xi;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(qi||(qi={})),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;"}(Xi||(Xi={})),new Map([...["abw"].map((t=>[t,Xi.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,Xi.AUDIO])),...["avi"].map((t=>[t,Xi.AVI])),...["chm","xhs"].map((t=>[t,Xi.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,Xi.CODE])),...["csv"].map((t=>[t,Xi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Xi.DITA])),...["epub"].map((t=>[t,Xi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Xi.EXCEL])),...["flac"].map((t=>[t,Xi.FLAC])),...["gif"].map((t=>[t,Xi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Xi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Xi.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,Xi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Xi.JPEG])),...["json"].map((t=>[t,Xi.JSON])),...["m4a","m4p"].map((t=>[t,Xi.M4A])),...["mov","qt"].map((t=>[t,Xi.MOV])),...["mp3"].map((t=>[t,Xi.MP3])),...["mp4","m4v"].map((t=>[t,Xi.MP4])),...["ogg","oga"].map((t=>[t,Xi.OGG])),...["pdf","ps"].map((t=>[t,Xi.PDF])),...["png"].map((t=>[t,Xi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Xi.POWERPOINT])),...["rar"].map((t=>[t,Xi.RAR])),...["stp"].map((t=>[t,Xi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Xi.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,Xi.VIDEO])),...["wav"].map((t=>[t,Xi.WAV])),...["wma"].map((t=>[t,Xi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Xi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Xi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Xi.YAML])),...["zip"].map((t=>[t,Xi.ZIP]))]);const Yi={size:ht.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ht.extend("--ft-icon-fluid-topics-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.extend("--ft-icon-file-format-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ht.extend("--ft-icon-material-font-family",ht.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ht.create("--ft-icon-vertical-align","UNKNOWN","unset")},Gi=y`
203
+ :host {
204
+ display: inline-block;
205
+ }
211
206
 
212
- :host, i.ft-icon {
213
- width: ${Gi.size};
214
- height: ${Gi.size};
215
- text-align: center;
216
- }
207
+ :host, i.ft-icon {
208
+ width: ${Yi.size};
209
+ height: ${Yi.size};
210
+ text-align: center;
211
+ }
217
212
 
218
- i.ft-icon {
219
- font-size: ${Gi.size};
220
- line-height: 1;
221
- font-weight: normal;
222
- text-transform: none;
223
- font-style: normal;
224
- font-variant: normal;
225
- speak: none;
226
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
227
- text-rendering: auto;
228
- -webkit-font-smoothing: antialiased;
229
- -moz-osx-font-smoothing: grayscale;
230
- vertical-align: ${Gi.verticalAlign};
231
- }
213
+ i.ft-icon {
214
+ font-size: ${Yi.size};
215
+ line-height: 1;
216
+ font-weight: normal;
217
+ text-transform: none;
218
+ font-style: normal;
219
+ font-variant: normal;
220
+ speak: none;
221
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
222
+ text-rendering: auto;
223
+ -webkit-font-smoothing: antialiased;
224
+ -moz-osx-font-smoothing: grayscale;
225
+ vertical-align: ${Yi.verticalAlign};
226
+ }
232
227
 
233
- .ft-icon--fluid-topics {
234
- font-family: ${Gi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
235
- }
228
+ .ft-icon--fluid-topics {
229
+ font-family: ${Yi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
230
+ }
236
231
 
237
- .ft-icon--file-format {
238
- font-family: ${Gi.fileFormatFontFamily}, ft-mime, sans-serif;
239
- }
232
+ .ft-icon--file-format {
233
+ font-family: ${Yi.fileFormatFontFamily}, ft-mime, sans-serif;
234
+ }
240
235
 
241
- .ft-icon--material {
242
- font-family: ${Gi.materialFontFamily}, "Material Icons", sans-serif;
243
- }
244
- `,Yi([o()],Qi.prototype,"variant",void 0),Yi([o()],Qi.prototype,"value",void 0),Yi([n()],Qi.prototype,"resolvedIcon",void 0),Yi([r("slot")],Qi.prototype,"slottedContent",void 0),p("ft-icon")(Qi);
236
+ .ft-icon--material {
237
+ font-family: ${Yi.materialFontFamily}, "Material Icons", sans-serif;
238
+ }
239
+ `;var Qi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Qi||(Qi={}));var te=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ie extends ut{constructor(){super(...arguments),this.variant=Qi.fluid_topics,this.resolvedIcon=K}render(){const t="material"!==this.variant||this.value;return W`
240
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
241
+ ${Ji(this.resolvedIcon)}
242
+ <slot ?hidden=${t}></slot>
243
+ </i>
244
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Qi.file_format:this.resolvedIcon=null!==(t=Xi[e.toUpperCase()])&&void 0!==t?t:e;break;case Qi.fluid_topics:this.resolvedIcon=null!==(i=qi[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||K}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}ie.elementDefinitions={},ie.styles=Gi,te([o()],ie.prototype,"variant",void 0),te([o()],ie.prototype,"value",void 0),te([n()],ie.prototype,"resolvedIcon",void 0),te([r("slot")],ie.prototype,"slottedContent",void 0),p("ft-icon")(ie);
245
245
  /**
246
246
  * @license
247
247
  * Copyright 2018 Google LLC
248
248
  * SPDX-License-Identifier: BSD-3-Clause
249
249
  */
250
- const te=Hi(class extends Ki{constructor(t){var i;if(super(t),t.type!==_i||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const n=t.element.classList;this.nt.forEach((t=>{t in i||(n.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return H}});var ie=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const ee=ht.extend("--ft-ripple-color",dt.colorContent),oe={color:ee,backgroundColor:ht.extend("--ft-ripple-background-color",ee),opacityContentOnSurfacePressed:ht.external(dt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ht.external(dt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ht.external(dt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ht.external(dt.opacityContentOnSurfaceSelected,"Design system")},ne=ht.extend("--ft-ripple-color",dt.colorPrimary),se=ne,re=ht.extend("--ft-ripple-background-color",ne),ae=ht.extend("--ft-ripple-color",dt.colorSecondary),le=ae,pe=ht.extend("--ft-ripple-background-color",ae);class he extends ut{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return W`
251
- <style>
252
- .ft-ripple .ft-ripple--effect,
253
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
254
- width: ${this.rippleSize}px;
255
- height: ${this.rippleSize}px;
256
- }
250
+ const ee=Ki(class extends Zi{constructor(t){var i;if(super(t),t.type!==Wi||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const n=t.element.classList;this.nt.forEach((t=>{t in i||(n.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return H}}),oe=ht.extend("--ft-ripple-color",dt.colorContent),ne={color:oe,backgroundColor:ht.extend("--ft-ripple-background-color",oe),opacityContentOnSurfacePressed:ht.external(dt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ht.external(dt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ht.external(dt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ht.external(dt.opacityContentOnSurfaceSelected,"Design system")},se=ht.extend("--ft-ripple-color",dt.colorPrimary),re=se,ae=ht.extend("--ft-ripple-background-color",se),le=ht.extend("--ft-ripple-color",dt.colorSecondary),pe=le,he=ht.extend("--ft-ripple-background-color",le),ce=y`
251
+ :host {
252
+ display: contents;
253
+ }
257
254
 
258
- .ft-ripple .ft-ripple--effect {
259
- left: ${this.originX}px;
260
- top: ${this.originY}px;
261
- }
262
- </style>
263
- <div class="${te(t)}">
264
- <div class="ft-ripple--background"></div>
265
- <div class="ft-ripple--effect"></div>
266
- </div>
267
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),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",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}he.elementDefinitions={},he.styles=y`
268
- :host {
269
- display: contents;
270
- }
255
+ .ft-ripple {
256
+ position: absolute;
257
+ inset: 0;
258
+ pointer-events: none;
259
+ }
271
260
 
272
- .ft-ripple {
273
- position: absolute;
274
- inset: 0;
275
- pointer-events: none;
276
- }
261
+ .ft-ripple:not(.ft-ripple--unbounded) {
262
+ overflow: hidden;
263
+ }
277
264
 
278
- .ft-ripple:not(.ft-ripple--unbounded) {
279
- overflow: hidden;
280
- }
265
+ .ft-ripple .ft-ripple--background,
266
+ .ft-ripple .ft-ripple--effect {
267
+ position: absolute;
268
+ opacity: 0;
269
+ }
281
270
 
282
- .ft-ripple .ft-ripple--background,
283
- .ft-ripple .ft-ripple--effect {
284
- position: absolute;
285
- opacity: 0;
286
- }
271
+ .ft-ripple .ft-ripple--background {
272
+ background-color: ${ne.backgroundColor};
273
+ }
287
274
 
288
- .ft-ripple .ft-ripple--background {
289
- background-color: ${oe.backgroundColor};
290
- }
275
+ .ft-ripple .ft-ripple--effect {
276
+ background-color: ${ne.color};
277
+ }
291
278
 
292
- .ft-ripple .ft-ripple--effect {
293
- background-color: ${oe.color};
294
- }
279
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
280
+ background-color: ${he};
281
+ }
295
282
 
296
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
297
- background-color: ${pe};
298
- }
283
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
284
+ background-color: ${pe};
285
+ }
299
286
 
300
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
301
- background-color: ${le};
302
- }
287
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
288
+ background-color: ${ae};
289
+ }
303
290
 
304
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
305
- background-color: ${re};
306
- }
291
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
292
+ background-color: ${re};
293
+ }
307
294
 
308
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
309
- background-color: ${se};
310
- }
295
+ .ft-ripple .ft-ripple--background {
296
+ top: 0;
297
+ left: 0;
298
+ height: 100%;
299
+ width: 100%;
300
+ transition: opacity 75ms linear;
301
+ }
311
302
 
312
- .ft-ripple .ft-ripple--background {
313
- top: 0;
314
- left: 0;
315
- height: 100%;
316
- width: 100%;
317
- transition: opacity 75ms linear;
318
- }
303
+ .ft-ripple .ft-ripple--effect,
304
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
305
+ border-radius: 50%;
306
+ }
319
307
 
320
- .ft-ripple .ft-ripple--effect,
321
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
322
- border-radius: 50%;
323
- }
308
+ .ft-ripple .ft-ripple--effect {
309
+ transform: translate(-50%, -50%) scale(0.15);
310
+ transition: transform 300ms ease, opacity 75ms linear;
311
+ }
324
312
 
325
- .ft-ripple .ft-ripple--effect {
326
- transform: translate(-50%, -50%) scale(0.15);
327
- transition: transform 300ms ease, opacity 75ms linear;
328
- }
313
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
314
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
315
+ left: 50%;
316
+ top: 50%;
317
+ }
329
318
 
330
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
331
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
332
- left: 50%;
333
- top: 50%;
334
- }
319
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
320
+ transform: translate(-50%, -50%);
321
+ }
335
322
 
336
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
337
- transform: translate(-50%, -50%);
338
- }
323
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
324
+ opacity: ${ne.opacityContentOnSurfaceHover};
325
+ }
339
326
 
340
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
341
- opacity: ${oe.opacityContentOnSurfaceHover};
342
- }
327
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
328
+ opacity: ${ne.opacityContentOnSurfaceSelected};
329
+ }
343
330
 
344
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
345
- opacity: ${oe.opacityContentOnSurfaceSelected};
346
- }
331
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
332
+ opacity: ${ne.opacityContentOnSurfaceFocused};
333
+ }
347
334
 
348
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
349
- opacity: ${oe.opacityContentOnSurfaceFocused};
350
- }
335
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
336
+ opacity: ${ne.opacityContentOnSurfacePressed};
337
+ transform: translate(-50%, -50%) scale(1);
338
+ }
339
+ `;var de=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class fe extends ut{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return W`
340
+ <style>
341
+ .ft-ripple .ft-ripple--effect,
342
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
343
+ width: ${this.rippleSize}px;
344
+ height: ${this.rippleSize}px;
345
+ }
351
346
 
352
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
353
- opacity: ${oe.opacityContentOnSurfacePressed};
354
- transform: translate(-50%, -50%) scale(1);
355
- }
356
- `,ie([o({type:Boolean})],he.prototype,"primary",void 0),ie([o({type:Boolean})],he.prototype,"secondary",void 0),ie([o({type:Boolean})],he.prototype,"unbounded",void 0),ie([o({type:Boolean})],he.prototype,"activated",void 0),ie([o({type:Boolean})],he.prototype,"selected",void 0),ie([o({type:Boolean})],he.prototype,"disabled",void 0),ie([n()],he.prototype,"hovered",void 0),ie([n()],he.prototype,"focused",void 0),ie([n()],he.prototype,"pressed",void 0),ie([n()],he.prototype,"rippling",void 0),ie([n()],he.prototype,"rippleSize",void 0),ie([n()],he.prototype,"originX",void 0),ie([n()],he.prototype,"originY",void 0),ie([r(".ft-ripple")],he.prototype,"ripple",void 0),ie([r(".ft-ripple--effect")],he.prototype,"rippleEffect",void 0),p("ft-ripple")(he);var ce=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const de=ht.create("--ft-tooltip-distance","SIZE","4px"),fe=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),ue=ht.create("--ft-tooltip-background-color","COLOR","#666666"),ye=ht.create("--ft-tooltip-z-index","NUMBER","1"),ge=ht.external(dt.borderRadiusS,"Design system"),ve=ht.create("--ft-tooltip-max-width","SIZE","150px");class be extends ut{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return W`
347
+ .ft-ripple .ft-ripple--effect {
348
+ left: ${this.originX}px;
349
+ top: ${this.originY}px;
350
+ }
351
+ </style>
352
+ <div class="${ee(t)}">
353
+ <div class="ft-ripple--background"></div>
354
+ <div class="ft-ripple--effect"></div>
355
+ </div>
356
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),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",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}fe.elementDefinitions={},fe.styles=ce,de([o({type:Boolean})],fe.prototype,"primary",void 0),de([o({type:Boolean})],fe.prototype,"secondary",void 0),de([o({type:Boolean})],fe.prototype,"unbounded",void 0),de([o({type:Boolean})],fe.prototype,"activated",void 0),de([o({type:Boolean})],fe.prototype,"selected",void 0),de([o({type:Boolean})],fe.prototype,"disabled",void 0),de([n()],fe.prototype,"hovered",void 0),de([n()],fe.prototype,"focused",void 0),de([n()],fe.prototype,"pressed",void 0),de([n()],fe.prototype,"rippling",void 0),de([n()],fe.prototype,"rippleSize",void 0),de([n()],fe.prototype,"originX",void 0),de([n()],fe.prototype,"originY",void 0),de([r(".ft-ripple")],fe.prototype,"ripple",void 0),de([r(".ft-ripple--effect")],fe.prototype,"rippleEffect",void 0),p("ft-ripple")(fe);const ue=ht.create("--ft-tooltip-distance","SIZE","4px"),ye=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),ve=ht.create("--ft-tooltip-background-color","COLOR","#666666"),ge=ht.create("--ft-tooltip-z-index","NUMBER","1"),be=ht.external(dt.borderRadiusS,"Design system"),xe=ht.create("--ft-tooltip-max-width","SIZE","150px"),me=y`
357
+ .ft-tooltip--container {
358
+ display: block;
359
+ position: relative;
360
+ }
361
+
362
+ .ft-tooltip--inline {
363
+ display: inline-block;
364
+ max-width: 100%;
365
+ }
366
+
367
+ .ft-tooltip {
368
+ position: absolute;
369
+ box-sizing: border-box;
370
+ overflow: hidden;
371
+ width: max-content;
372
+ max-width: ${xe};
373
+ text-align: center;
374
+ padding: ${ue};
375
+ z-index: ${ge};
376
+ }
377
+
378
+ .ft-tooltip--content {
379
+ padding: 4px 8px;
380
+ border-radius: ${be};
381
+ background-color: ${ve};
382
+ color: ${ye};
383
+ top: -500px;
384
+ left: -500px;
385
+ position: relative;
386
+ word-break: break-word;
387
+ }
388
+ `;var we=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class $e extends ut{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return W`
357
389
  <div part="container"
358
390
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
359
391
  @mouseenter=${this.onHover}
@@ -369,256 +401,224 @@ const te=Hi(class extends Ki{constructor(t){var i;if(super(t),t.type!==_i||"clas
369
401
  </div>
370
402
  <slot></slot>
371
403
  </div>
372
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.position){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${ve})`}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())}}be.elementDefinitions={"ft-typography":Ii},be.styles=y`
373
- .ft-tooltip--container {
374
- display: block;
375
- position: relative;
376
- }
377
-
378
- .ft-tooltip--inline {
379
- display: inline-block;
380
- max-width: 100%;
381
- }
382
-
383
- .ft-tooltip {
384
- position: absolute;
385
- box-sizing: border-box;
386
- overflow: hidden;
387
- width: max-content;
388
- max-width: ${ve};
389
- text-align: center;
390
- padding: ${de};
391
- z-index: ${ye};
392
- }
393
-
394
- .ft-tooltip--content {
395
- padding: 4px 8px;
396
- border-radius: ${ge};
397
- background-color: ${ue};
398
- color: ${fe};
399
- top: -500px;
400
- left: -500px;
401
- position: relative;
402
- word-break: break-word;
403
- }
404
- `,ce([o()],be.prototype,"text",void 0),ce([o({type:Boolean})],be.prototype,"manual",void 0),ce([o({type:Boolean})],be.prototype,"inline",void 0),ce([o({type:Number})],be.prototype,"delay",void 0),ce([o()],be.prototype,"position",void 0),ce([
404
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.position){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${xe})`}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())}}$e.elementDefinitions={"ft-typography":_i},$e.styles=me,we([o()],$e.prototype,"text",void 0),we([o({type:Boolean})],$e.prototype,"manual",void 0),we([o({type:Boolean})],$e.prototype,"inline",void 0),we([o({type:Number})],$e.prototype,"delay",void 0),we([o()],$e.prototype,"position",void 0),we([
405
405
  /**
406
406
  * @license
407
407
  * Copyright 2017 Google LLC
408
408
  * SPDX-License-Identifier: BSD-3-Clause
409
409
  */
410
- function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],be.prototype,"slotNodes",void 0),ce([r(".ft-tooltip--container")],be.prototype,"container",void 0),ce([r("slot")],be.prototype,"target",void 0),ce([r(".ft-tooltip")],be.prototype,"tooltip",void 0),ce([r(".ft-tooltip--content")],be.prototype,"tooltipContent",void 0),ce([n()],be.prototype,"visible",void 0),p("ft-tooltip")(be);const xe={color:ht.extend("--ft-loader-color",dt.colorPrimary),size:ht.create("--ft-loader-size","SIZE","80px")};class me extends ut{static get styles(){return y`
411
- :host {
412
- line-height: 0;
413
- }
414
-
415
- .ft-loader {
416
- display: inline-block;
417
- position: relative;
418
-
419
- width: ${xe.size};
420
- height: ${xe.size};
421
- }
422
-
423
- .ft-loader div {
424
- position: absolute;
425
- top: 37.5%;
426
- width: 25%;
427
- height: 25%;
428
- border-radius: 50%;
429
- background: ${xe.color};
430
- animation-timing-function: cubic-bezier(0, 1, 1, 0);
431
- }
432
-
433
- .ft-loader div:nth-child(1) {
434
- left: 2.5%;
435
- animation: appear 0.6s infinite;
436
- }
437
-
438
- .ft-loader div:nth-child(2) {
439
- left: 2.5%;
440
- animation: move 0.6s infinite;
441
- }
442
-
443
- .ft-loader div:nth-child(3) {
444
- left: 37.5%;
445
- animation: move 0.6s infinite;
446
- }
447
-
448
- .ft-loader div:nth-child(4) {
449
- left: 72.5%;
450
- animation: disappear 0.6s infinite;
451
- }
452
-
453
- @keyframes appear {
454
- 0% {
455
- transform: scale(0);
456
- }
457
- 100% {
458
- transform: scale(1);
459
- }
460
- }
410
+ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],$e.prototype,"slotNodes",void 0),we([r(".ft-tooltip--container")],$e.prototype,"container",void 0),we([r("slot")],$e.prototype,"target",void 0),we([r(".ft-tooltip")],$e.prototype,"tooltip",void 0),we([r(".ft-tooltip--content")],$e.prototype,"tooltipContent",void 0),we([n()],$e.prototype,"visible",void 0),p("ft-tooltip")($e);const Oe={color:ht.extend("--ft-loader-color",dt.colorPrimary),size:ht.create("--ft-loader-size","SIZE","80px")},Se=y`
411
+ :host {
412
+ line-height: 0;
413
+ }
461
414
 
462
- @keyframes disappear {
463
- 0% {
464
- transform: scale(1);
465
- }
466
- 100% {
467
- transform: scale(0);
468
- }
469
- }
415
+ .ft-loader {
416
+ display: inline-block;
417
+ position: relative;
470
418
 
471
- @keyframes move {
472
- 0% {
473
- transform: translate(0, 0);
474
- }
475
- 100% {
476
- transform: translate(calc(0.35 * ${xe.size}), 0);
477
- }
478
- }
479
- `}render(){return W`
419
+ width: ${Oe.size};
420
+ height: ${Oe.size};
421
+ }
422
+
423
+ .ft-loader div {
424
+ position: absolute;
425
+ top: 37.5%;
426
+ width: 25%;
427
+ height: 25%;
428
+ border-radius: 50%;
429
+ background: ${Oe.color};
430
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
431
+ }
432
+
433
+ .ft-loader div:nth-child(1) {
434
+ left: 2.5%;
435
+ animation: appear 0.6s infinite;
436
+ }
437
+
438
+ .ft-loader div:nth-child(2) {
439
+ left: 2.5%;
440
+ animation: move 0.6s infinite;
441
+ }
442
+
443
+ .ft-loader div:nth-child(3) {
444
+ left: 37.5%;
445
+ animation: move 0.6s infinite;
446
+ }
447
+
448
+ .ft-loader div:nth-child(4) {
449
+ left: 72.5%;
450
+ animation: disappear 0.6s infinite;
451
+ }
452
+
453
+ @keyframes appear {
454
+ 0% {
455
+ transform: scale(0);
456
+ }
457
+ 100% {
458
+ transform: scale(1);
459
+ }
460
+ }
461
+
462
+ @keyframes disappear {
463
+ 0% {
464
+ transform: scale(1);
465
+ }
466
+ 100% {
467
+ transform: scale(0);
468
+ }
469
+ }
470
+
471
+ @keyframes move {
472
+ 0% {
473
+ transform: translate(0, 0);
474
+ }
475
+ 100% {
476
+ transform: translate(calc(0.35 * ${Oe.size}), 0);
477
+ }
478
+ }
479
+ `;class ke extends ut{render(){return W`
480
480
  <div class="ft-loader">
481
481
  <div></div>
482
482
  <div></div>
483
483
  <div></div>
484
484
  <div></div>
485
485
  </div>
486
- `}}p("ft-loader")(me);var we=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const $e=ht.extend("--ft-button-color",dt.colorPrimary),Oe={backgroundColor:ht.extend("--ft-button-background-color",dt.colorSurface),borderRadius:ht.extend("--ft-button-border-radius",dt.borderRadiusL),color:$e,fontSize:ht.extend("--ft-button-font-size",Mi.fontSize),iconSize:ht.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ht.extend("--ft-button-ripple-color",$e),opacityDisabled:ht.external(dt.colorOpacityDisabled,"Design system")},Se=ht.extend("--ft-button-primary-color",ht.extend("--ft-button-color",dt.colorOnPrimary)),ke={backgroundColor:ht.extend("--ft-button-primary-background-color",ht.extend("--ft-button-background-color",dt.colorPrimary)),color:Se,rippleColor:ht.extend("--ft-button-primary-ripple-color",Se)},Ce=ht.extend("--ft-button-dense-border-radius",ht.extend("--ft-button-border-radius",dt.borderRadiusM));class Ne extends ut{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Xi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[yt,y`
487
- :host {
488
- display: inline-block;
489
- max-width: 100%;
490
- pointer-events: none;
491
- }
486
+ `}}ke.styles=Se,p("ft-loader")(ke);const Ce=ht.extend("--ft-button-color",dt.colorPrimary),Ne={backgroundColor:ht.extend("--ft-button-background-color",dt.colorSurface),borderRadius:ht.extend("--ft-button-border-radius",dt.borderRadiusL),color:Ce,fontSize:ht.extend("--ft-button-font-size",Ri.fontSize),iconSize:ht.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ht.extend("--ft-button-ripple-color",Ce),opacityDisabled:ht.external(dt.colorOpacityDisabled,"Design system")},Ee=ht.extend("--ft-button-primary-color",ht.extend("--ft-button-color",dt.colorOnPrimary)),Re={backgroundColor:ht.extend("--ft-button-primary-background-color",ht.extend("--ft-button-background-color",dt.colorPrimary)),color:Ee,rippleColor:ht.extend("--ft-button-primary-ripple-color",Ee)},Me=ht.extend("--ft-button-dense-border-radius",ht.extend("--ft-button-border-radius",dt.borderRadiusM)),ze=[yt,y`
487
+ :host {
488
+ display: inline-block;
489
+ max-width: 100%;
490
+ pointer-events: none;
491
+ }
492
492
 
493
- button {
494
- box-shadow: 0px 0px 0px transparent;
495
- border: 0px solid transparent;
496
- text-shadow: 0px 0px 0px transparent;
497
- font-size: ${Oe.fontSize};
498
- }
493
+ button {
494
+ box-shadow: 0px 0px 0px transparent;
495
+ border: 0px solid transparent;
496
+ text-shadow: 0px 0px 0px transparent;
497
+ font-size: ${Ne.fontSize};
498
+ }
499
499
 
500
- button:hover {
501
- box-shadow: 0px 0px 0px transparent;
502
- border: 0px solid transparent;
503
- text-shadow: 0px 0px 0px transparent;
504
- }
500
+ button:hover {
501
+ box-shadow: 0px 0px 0px transparent;
502
+ border: 0px solid transparent;
503
+ text-shadow: 0px 0px 0px transparent;
504
+ }
505
505
 
506
- button:active {
507
- outline: none;
508
- border: none;
509
- }
506
+ button:active {
507
+ outline: none;
508
+ border: none;
509
+ }
510
510
 
511
- button:focus {
512
- outline: 0;
513
- }
511
+ button:focus {
512
+ outline: 0;
513
+ }
514
514
 
515
- .ft-button {
516
- position: relative;
517
- display: flex;
518
- justify-content: center;
519
- align-items: center;
520
- width: 100%;
521
- overflow: hidden;
522
- box-sizing: border-box;
523
- border: none;
524
- pointer-events: auto;
525
-
526
- --ft-button-internal-line-height: calc(${Oe.fontSize} + 2px);
527
- --ft-button-internal-color: ${Oe.color};
528
- ${ct(Gi.size,Oe.iconSize)};
529
- --ft-button-internal-vertical-padding: 6px;
530
- --ft-button-internal-horizontal-padding: 8px;
531
- ${ct(oe.color,Oe.rippleColor)};
532
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Oe.iconSize});
533
-
534
- border-radius: ${Oe.borderRadius};
535
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
536
- background-color: ${Oe.backgroundColor};
537
- color: var(--ft-button-internal-color);
538
- -webkit-mask-image: radial-gradient(white, black);
539
- }
515
+ .ft-button {
516
+ position: relative;
517
+ display: flex;
518
+ justify-content: center;
519
+ align-items: center;
520
+ width: 100%;
521
+ overflow: hidden;
522
+ box-sizing: border-box;
523
+ border: none;
524
+ pointer-events: auto;
525
+
526
+ --ft-button-internal-line-height: calc(${Ne.fontSize} + 2px);
527
+ --ft-button-internal-color: ${Ne.color};
528
+ ${ct(Yi.size,Ne.iconSize)};
529
+ --ft-button-internal-vertical-padding: 6px;
530
+ --ft-button-internal-horizontal-padding: 8px;
531
+ ${ct(ne.color,Ne.rippleColor)};
532
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ne.iconSize});
533
+
534
+ border-radius: ${Ne.borderRadius};
535
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
536
+ background-color: ${Ne.backgroundColor};
537
+ color: var(--ft-button-internal-color);
538
+ -webkit-mask-image: radial-gradient(white, black);
539
+ }
540
540
 
541
- .ft-button:not([disabled]):hover {
542
- cursor: pointer;
543
- }
541
+ .ft-button:not([disabled]):hover {
542
+ cursor: pointer;
543
+ }
544
544
 
545
- .ft-button--dense {
546
- --ft-button-internal-vertical-padding: 2px;
547
- --ft-button-internal-horizontal-padding: 4px;
548
- border-radius: ${Ce};
549
- }
545
+ .ft-button--dense {
546
+ --ft-button-internal-vertical-padding: 2px;
547
+ --ft-button-internal-horizontal-padding: 4px;
548
+ border-radius: ${Me};
549
+ }
550
550
 
551
- .ft-button--round {
552
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
553
- }
551
+ .ft-button--round {
552
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
553
+ }
554
554
 
555
- .ft-button[disabled] {
556
- filter: grayscale(1);
557
- opacity: ${Oe.opacityDisabled};
558
- }
555
+ .ft-button[disabled] {
556
+ filter: grayscale(1);
557
+ opacity: ${Ne.opacityDisabled};
558
+ }
559
559
 
560
- .ft-button.ft-button--primary {
561
- background-color: ${ke.backgroundColor};
562
- --ft-button-internal-color: ${ke.color};
563
- ${ct(oe.color,ke.rippleColor)};
564
- }
560
+ .ft-button.ft-button--primary {
561
+ background-color: ${Re.backgroundColor};
562
+ --ft-button-internal-color: ${Re.color};
563
+ ${ct(ne.color,Re.rippleColor)};
564
+ }
565
565
 
566
- .ft-button.ft-button--outlined {
567
- border: 1px solid var(--ft-button-internal-color);
568
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
569
- }
566
+ .ft-button.ft-button--outlined {
567
+ border: 1px solid var(--ft-button-internal-color);
568
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
569
+ }
570
570
 
571
- .ft-button:focus {
572
- outline: none;
573
- }
571
+ .ft-button:focus {
572
+ outline: none;
573
+ }
574
574
 
575
- .ft-button--label {
576
- position: relative;
577
- overflow: hidden;
578
- white-space: nowrap;
579
- text-overflow: ellipsis;
580
- display: block;
581
- margin: 0 var(--ft-button-internal-horizontal-padding);
582
- ${ct(Mi.fontSize,"1em")};
583
- ${ct(Mi.lineHeight,"var(--ft-button-internal-content-height)")};
584
- }
575
+ .ft-button--label {
576
+ position: relative;
577
+ overflow: hidden;
578
+ white-space: nowrap;
579
+ text-overflow: ellipsis;
580
+ display: block;
581
+ margin: 0 var(--ft-button-internal-horizontal-padding);
582
+ ${ct(Ri.fontSize,"1em")};
583
+ ${ct(Ri.lineHeight,"var(--ft-button-internal-content-height)")};
584
+ }
585
585
 
586
- .ft-button--safari-fix .ft-button--label {
587
- margin-right: 0;
588
- }
586
+ .ft-button--safari-fix .ft-button--label {
587
+ margin-right: 0;
588
+ }
589
589
 
590
- .ft-button--safari-fix .ft-button--label:after {
591
- content: "\\0000a0";
592
- display: inline-block;
593
- width: 0;
594
- }
590
+ .ft-button--safari-fix .ft-button--label:after {
591
+ content: "\\0000a0";
592
+ display: inline-block;
593
+ width: 0;
594
+ }
595
595
 
596
- .ft-button--label[hidden] {
597
- display: none;
598
- }
596
+ .ft-button--label[hidden] {
597
+ display: none;
598
+ }
599
599
 
600
- ft-icon {
601
- flex-shrink: 0;
602
- position: relative;
603
- }
600
+ ft-icon {
601
+ flex-shrink: 0;
602
+ position: relative;
603
+ }
604
604
 
605
- .ft-button--label[hidden] + ft-icon {
606
- margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
607
- padding: 0 var(--ft-button-internal-vertical-padding);
608
- }
605
+ .ft-button--label[hidden] + ft-icon {
606
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
607
+ padding: 0 var(--ft-button-internal-vertical-padding);
608
+ }
609
609
 
610
- .ft-button:not(.ft-button--trailing-icon) ft-icon,
611
- .ft-button:not(.ft-button--trailing-icon) ft-loader {
612
- order: -1;
613
- }
610
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
611
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
612
+ order: -1;
613
+ }
614
614
 
615
- ft-loader {
616
- ${ct(xe.size,Oe.iconSize)};
617
- ${ct(xe.color,"var(--ft-button-internal-color)")};
618
- }
619
- `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":xt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
615
+ ft-loader {
616
+ ${ct(Oe.size,Ne.iconSize)};
617
+ ${ct(Oe.color,"var(--ft-button-internal-color)")};
618
+ }
619
+ `];var Ue=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Fe extends ut{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Qi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":xt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
620
620
  <button part="button"
621
- class="${te(t)}"
621
+ class="${ee(t)}"
622
622
  aria-label="${this.getLabel()}"
623
623
  ?disabled=${this.isDisabled()}>
624
624
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -638,98 +638,98 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
638
638
  </ft-tooltip>
639
639
  `}resolveIcon(){return this.loading?W`
640
640
  <ft-loader></ft-loader> `:this.icon?W`
641
- <ft-icon .variant=${this.iconVariant} value=${this.icon}></ft-icon> `:K}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ne.elementDefinitions={"ft-ripple":he,"ft-tooltip":be,"ft-typography":Ii,"ft-icon":Qi,"ft-loader":me},we([o({type:Boolean})],Ne.prototype,"primary",void 0),we([o({type:Boolean})],Ne.prototype,"outlined",void 0),we([o({type:Boolean})],Ne.prototype,"disabled",void 0),we([o({type:Boolean})],Ne.prototype,"dense",void 0),we([o({type:Boolean})],Ne.prototype,"round",void 0),we([o({type:String})],Ne.prototype,"label",void 0),we([o({type:String})],Ne.prototype,"icon",void 0),we([o({type:String})],Ne.prototype,"iconVariant",void 0),we([o({type:Boolean})],Ne.prototype,"trailingIcon",void 0),we([o({type:Boolean})],Ne.prototype,"loading",void 0),we([o({type:String})],Ne.prototype,"tooltipPosition",void 0),we([o({type:Boolean})],Ne.prototype,"hideTooltip",void 0),we([r(".ft-button")],Ne.prototype,"button",void 0),we([r(".ft-button--label slot")],Ne.prototype,"slottedContent",void 0),p("ft-button")(Ne);var Ee=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Re={zIndex:ht.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:ht.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:ht.create("--ft-dialog-height","SIZE","unset"),width:ht.create("--ft-dialog-width","SIZE","unset"),minWidth:ht.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:ht.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:ht.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:ht.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:ht.external(dt.colorSurface,"Design system"),headingColor:ht.external(dt.colorOnSurfaceMedium,"Design system"),borderRadiusS:ht.external(dt.borderRadiusS,"Design system"),elevation24:ht.external(dt.elevation24,"Design system")};class Me extends ut{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon=""}static get styles(){return y`
642
- .ft-dialog {
643
- position: fixed;
644
- top: 0;
645
- right: 0;
646
- bottom: 0;
647
- left: 0;
648
- z-index: ${Re.zIndex};
649
-
650
- display: flex;
651
- flex-direction: column;
652
- justify-content: center;
653
- align-items: center;
654
-
655
- margin: auto;
656
- }
657
-
658
- .ft-dialog-overlay {
659
- position: fixed;
660
- top: 0;
661
- right: 0;
662
- bottom: 0;
663
- left: 0;
664
-
665
- height: 100%;
666
- width: 100%;
667
-
668
- background-color: ${Re.overlayBackgroundColor};
669
-
670
- }
671
-
672
- .ft-dialog-wrapper {
673
- position: fixed;
674
- display: flex;
675
- flex-direction: column;
676
-
677
- width: ${Re.width};
678
- height: ${Re.height};
679
- max-width: 95vw;
680
- max-height: 95vh;
681
- min-width: ${Re.minWidth};
682
-
683
- padding-top: ${Re.paddingTop};
684
- padding-right: ${Re.paddingSide};
685
- padding-left: ${Re.paddingSide};
686
-
687
- background-color: ${Re.colorSurface};
688
-
689
- border-radius: ${Re.borderRadiusS};
690
- box-shadow: ${Re.elevation24};
691
- }
692
-
693
- .ft-dialog-content {
694
- flex-grow: 2;
695
- overflow: auto;
696
- }
697
-
698
- .ft-dialog-heading {
699
- text-overflow: ellipsis;
700
- overflow: hidden;
701
- white-space: nowrap;
702
-
703
- display: flex;
704
- align-items: center;
705
- margin-bottom: 20px;
706
- gap: 8px;
707
-
708
- color: ${Re.headingColor};
709
- }
710
-
711
- .ft-dialog-buttons {
712
- padding-top: ${Re.paddingButtons};
713
- }
714
-
715
- slot[name=buttons] {
716
- display: flex;
717
- align-items: center;
718
- justify-content: flex-end;
719
- gap: 8px;
720
- }
721
-
722
- slot[name=buttons]::slotted(*) {
723
- margin-top: 8px;
724
- margin-bottom: 8px
725
- }
726
-
727
- .ft-dialog-heading ft-button {
728
- margin-left: auto;
729
- ${ct(Oe.color,Re.headingColor)};
730
- }
731
-
732
- `}render(){return this.opened?W`
641
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:K}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Fe.elementDefinitions={"ft-ripple":fe,"ft-tooltip":$e,"ft-typography":_i,"ft-icon":ie,"ft-loader":ke},Fe.styles=ze,Ue([o({type:Boolean})],Fe.prototype,"primary",void 0),Ue([o({type:Boolean})],Fe.prototype,"outlined",void 0),Ue([o({type:Boolean})],Fe.prototype,"disabled",void 0),Ue([o({type:Boolean})],Fe.prototype,"dense",void 0),Ue([o({type:Boolean})],Fe.prototype,"round",void 0),Ue([o({type:String})],Fe.prototype,"label",void 0),Ue([o({type:String})],Fe.prototype,"icon",void 0),Ue([o({type:String})],Fe.prototype,"iconVariant",void 0),Ue([o({type:Boolean})],Fe.prototype,"trailingIcon",void 0),Ue([o({type:Boolean})],Fe.prototype,"loading",void 0),Ue([o({type:String})],Fe.prototype,"tooltipPosition",void 0),Ue([o({type:Boolean})],Fe.prototype,"hideTooltip",void 0),Ue([r(".ft-button")],Fe.prototype,"button",void 0),Ue([r(".ft-button--label slot")],Fe.prototype,"slottedContent",void 0),p("ft-button")(Fe);const je={zIndex:ht.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:ht.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:ht.create("--ft-dialog-height","SIZE","unset"),width:ht.create("--ft-dialog-width","SIZE","unset"),minWidth:ht.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:ht.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:ht.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:ht.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:ht.external(dt.colorSurface,"Design system"),headingColor:ht.external(dt.colorOnSurfaceMedium,"Design system"),borderRadiusS:ht.external(dt.borderRadiusS,"Design system"),elevation24:ht.external(dt.elevation24,"Design system")},Be=y`
642
+ .ft-dialog {
643
+ position: fixed;
644
+ top: 0;
645
+ right: 0;
646
+ bottom: 0;
647
+ left: 0;
648
+ z-index: ${je.zIndex};
649
+
650
+ display: flex;
651
+ flex-direction: column;
652
+ justify-content: center;
653
+ align-items: center;
654
+
655
+ margin: auto;
656
+ }
657
+
658
+ .ft-dialog-overlay {
659
+ position: fixed;
660
+ top: 0;
661
+ right: 0;
662
+ bottom: 0;
663
+ left: 0;
664
+
665
+ height: 100%;
666
+ width: 100%;
667
+
668
+ background-color: ${je.overlayBackgroundColor};
669
+
670
+ }
671
+
672
+ .ft-dialog-wrapper {
673
+ position: fixed;
674
+ display: flex;
675
+ flex-direction: column;
676
+
677
+ width: ${je.width};
678
+ height: ${je.height};
679
+ max-width: 95vw;
680
+ max-height: 95vh;
681
+ min-width: ${je.minWidth};
682
+
683
+ padding-top: ${je.paddingTop};
684
+ padding-right: ${je.paddingSide};
685
+ padding-left: ${je.paddingSide};
686
+
687
+ background-color: ${je.colorSurface};
688
+
689
+ border-radius: ${je.borderRadiusS};
690
+ box-shadow: ${je.elevation24};
691
+ }
692
+
693
+ .ft-dialog-content {
694
+ flex-grow: 2;
695
+ overflow: auto;
696
+ }
697
+
698
+ .ft-dialog-heading {
699
+ text-overflow: ellipsis;
700
+ overflow: hidden;
701
+ white-space: nowrap;
702
+
703
+ display: flex;
704
+ align-items: center;
705
+ margin-bottom: 20px;
706
+ gap: 8px;
707
+
708
+ color: ${je.headingColor};
709
+ }
710
+
711
+ .ft-dialog-buttons {
712
+ padding-top: ${je.paddingButtons};
713
+ }
714
+
715
+ slot[name=buttons] {
716
+ display: flex;
717
+ align-items: center;
718
+ justify-content: flex-end;
719
+ gap: 8px;
720
+ }
721
+
722
+ slot[name=buttons]::slotted(*) {
723
+ margin-top: 8px;
724
+ margin-bottom: 8px
725
+ }
726
+
727
+ .ft-dialog-heading ft-button {
728
+ margin-left: auto;
729
+ ${ct(Ne.color,je.headingColor)};
730
+ }
731
+
732
+ `;var Te=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ae extends ut{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon=""}render(){return this.opened?W`
733
733
  <div class="ft-dialog">
734
734
  <div class="ft-dialog-overlay" @click="${()=>this.watchClickOutside()}"></div>
735
735
  <div class="ft-dialog-wrapper">
@@ -750,4 +750,4 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
750
750
  </div>
751
751
  </div>
752
752
  </div>
753
- `:null}updated(t){if(t.has("opened")){const t=new CustomEvent("opened-changed",{detail:{opened:this.opened}});this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.watchEscapeKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.watchEscapeKey.bind(this))}close(){this.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}Me.elementDefinitions={"ft-typography":Ii,"ft-icon":Qi,"ft-button":Ne},Ee([o({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],Me.prototype,"opened",void 0),Ee([o({type:Boolean})],Me.prototype,"closeOnEsc",void 0),Ee([o({type:Boolean})],Me.prototype,"closeOnClickOutside",void 0),Ee([o({type:Boolean})],Me.prototype,"closable",void 0),Ee([o({type:()=>Boolean})],Me.prototype,"beforeClose",void 0),Ee([o({type:String})],Me.prototype,"heading",void 0),Ee([o({type:String})],Me.prototype,"icon",void 0),p("ft-dialog")(Me),t.FtDialog=Me,t.FtDialogCssVariables=Re,t.default=Me,Object.defineProperty(t,"i",{value:!0})}({});
753
+ `:null}updated(t){if(t.has("opened")){const t=new CustomEvent("opened-changed",{detail:{opened:this.opened}});this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.watchEscapeKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.watchEscapeKey.bind(this))}close(){this.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}Ae.elementDefinitions={"ft-typography":_i,"ft-icon":ie,"ft-button":Fe},Ae.styles=Be,Te([o({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],Ae.prototype,"opened",void 0),Te([o({type:Boolean})],Ae.prototype,"closeOnEsc",void 0),Te([o({type:Boolean})],Ae.prototype,"closeOnClickOutside",void 0),Te([o({type:Boolean})],Ae.prototype,"closable",void 0),Te([o({type:()=>Boolean})],Ae.prototype,"beforeClose",void 0),Te([o({type:String})],Ae.prototype,"heading",void 0),Te([o({type:String})],Ae.prototype,"icon",void 0),p("ft-dialog")(Ae),t.FtDialog=Ae,t.FtDialogCssVariables=je,t.styles=Be,Object.defineProperty(t,"i",{value:!0})}({});