@fluid-topics/ft-tooltip 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(Ko){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(Zo){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -83,7 +83,11 @@ class go extends $t{constructor(){super(...arguments),this.renderOptions={host:t
83
83
  * @license
84
84
  * Copyright 2019 Google LLC
85
85
  * SPDX-License-Identifier: BSD-3-Clause
86
- */class Co extends go{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{vo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=wo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Ro,Uo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Eo=Symbol("constructorPrototype"),Io=Symbol("constructorName"),Wo=Symbol("exportpartsDebouncer");class Lo extends Co{constructor(){super(),this[Ro]=new o(5),this[Io]=this.constructor.name,this[Eo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Io]&&Object.setPrototypeOf(this,this[Eo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Wo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}var $o,ko;Ro=Wo,Uo([C()],Lo.prototype,"exportpartsPrefix",void 0),Uo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!E(t,o),...null!=o?o:{}})}([])],Lo.prototype,"exportpartsPrefixes",void 0),Uo([C()],Lo.prototype,"customStylesheet",void 0),ut`
86
+ */class Co extends go{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{vo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=wo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Ro,Uo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Eo=Symbol("constructorPrototype"),Io=Symbol("constructorName"),Wo=Symbol("exportpartsDebouncer");class Lo extends Co{constructor(){super(),this[Ro]=new o(5),this[Io]=this.constructor.name,this[Eo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Io]&&Object.setPrototypeOf(this,this[Eo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Wo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Ro=Wo,Uo([C()],Lo.prototype,"exportpartsPrefix",void 0),Uo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!E(t,o),...null!=o?o:{}})}([])],Lo.prototype,"exportpartsPrefixes",void 0),Uo([C()],Lo.prototype,"customStylesheet",void 0);const $o=mo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var ko,Ko;ut`
87
+ .highlight-html-match {
88
+ background: ${$o};
89
+ }
90
+ `,ut`
87
91
  .ft-no-text-select {
88
92
  -webkit-touch-callout: none;
89
93
  -webkit-user-select: none;
@@ -115,108 +119,108 @@ class go extends $t{constructor(){super(...arguments),this.renderOptions={host:t
115
119
  display: inline-block;
116
120
  width: 0;
117
121
  }
118
- `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ko=null===($o=window.safari)||void 0===$o?void 0:$o.pushNotification)||void 0===ko||ko.toString());
122
+ `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Ko=null===(ko=window.safari)||void 0===ko?void 0:ko.pushNotification)||void 0===Ko||Ko.toString());
119
123
  /**
120
124
  * @license
121
125
  * Copyright 2020 Google LLC
122
126
  * SPDX-License-Identifier: BSD-3-Clause
123
127
  */
124
- const Ko=Symbol.for(""),Zo=t=>{if(t?.r===Ko)return t?._$litStatic$},Fo=t=>({_$litStatic$:t,r:Ko}),zo=new Map,Mo=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],s=[];let c,l=0,p=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(a=e[l],i=Zo(a));)c+=i+o[++l],p=!0;l!==r&&s.push(a),n.push(c),l++}if(l===r&&n.push(o[r]),p){const t=n.join("$$lit$$");void 0===(o=zo.get(t))&&(n.raw=n,zo.set(t,o=n)),e=s}return t(o,...e)})(J);var Ao;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Ao||(Ao={}));const Do=mo.extend("--ft-typography-font-family","",xo.titleFont),Bo=mo.extend("--ft-typography-font-family","",xo.contentFont),Po={fontFamily:Bo,fontSize:mo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:mo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:mo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:mo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:mo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ho=mo.extend("--ft-typography-title-font-family","",Do),_o=mo.extend("--ft-typography-title-font-size","",Po.fontSize,"20px"),To=mo.extend("--ft-typography-title-font-weight","",Po.fontWeight,"normal"),Go=mo.extend("--ft-typography-title-letter-spacing","",Po.letterSpacing,"0.15px"),jo=mo.extend("--ft-typography-title-line-height","",Po.lineHeight,"1.2"),Yo=mo.extend("--ft-typography-title-text-transform","",Po.textTransform,"inherit"),Jo=mo.extend("--ft-typography-title-dense-font-family","",Do),Vo=mo.extend("--ft-typography-title-dense-font-size","",Po.fontSize,"14px"),qo=mo.extend("--ft-typography-title-dense-font-weight","",Po.fontWeight,"normal"),Xo=mo.extend("--ft-typography-title-dense-letter-spacing","",Po.letterSpacing,"0.105px"),Qo=mo.extend("--ft-typography-title-dense-line-height","",Po.lineHeight,"1.7"),te=mo.extend("--ft-typography-title-dense-text-transform","",Po.textTransform,"inherit"),oe=mo.extend("--ft-typography-subtitle1-font-family","",Bo),ee=mo.extend("--ft-typography-subtitle1-font-size","",Po.fontSize,"16px"),re=mo.extend("--ft-typography-subtitle1-font-weight","",Po.fontWeight,"600"),ie=mo.extend("--ft-typography-subtitle1-letter-spacing","",Po.letterSpacing,"0.144px"),ae=mo.extend("--ft-typography-subtitle1-line-height","",Po.lineHeight,"1.5"),ne=mo.extend("--ft-typography-subtitle1-text-transform","",Po.textTransform,"inherit"),se=mo.extend("--ft-typography-subtitle2-font-family","",Bo),ce=mo.extend("--ft-typography-subtitle2-font-size","",Po.fontSize,"14px"),le=mo.extend("--ft-typography-subtitle2-font-weight","",Po.fontWeight,"normal"),pe=mo.extend("--ft-typography-subtitle2-letter-spacing","",Po.letterSpacing,"0.098px"),fe=mo.extend("--ft-typography-subtitle2-line-height","",Po.lineHeight,"1.7"),he=mo.extend("--ft-typography-subtitle2-text-transform","",Po.textTransform,"inherit"),de=mo.extend("--ft-typography-body1-font-family","",Bo),ye=mo.extend("--ft-typography-body1-font-size","",Po.fontSize,"16px"),ge=mo.extend("--ft-typography-body1-font-weight","",Po.fontWeight,"normal"),ue=mo.extend("--ft-typography-body1-letter-spacing","",Po.letterSpacing,"0.496px"),be=mo.extend("--ft-typography-body1-line-height","",Po.lineHeight,"1.5"),me=mo.extend("--ft-typography-body1-text-transform","",Po.textTransform,"inherit"),Oe=mo.extend("--ft-typography-body2-font-family","",Bo),Ne=mo.extend("--ft-typography-body2-font-size","",Po.fontSize,"14px"),Se=mo.extend("--ft-typography-body2-font-weight","",Po.fontWeight,"normal"),xe=mo.extend("--ft-typography-body2-letter-spacing","",Po.letterSpacing,"0.252px"),we=mo.extend("--ft-typography-body2-line-height","",Po.lineHeight,"1.4"),ve=mo.extend("--ft-typography-body2-text-transform","",Po.textTransform,"inherit"),Ce=mo.extend("--ft-typography-caption-font-family","",Bo),Re=mo.extend("--ft-typography-caption-font-size","",Po.fontSize,"12px"),Ue=mo.extend("--ft-typography-caption-font-weight","",Po.fontWeight,"normal"),Ee=mo.extend("--ft-typography-caption-letter-spacing","",Po.letterSpacing,"0.396px"),Ie=mo.extend("--ft-typography-caption-line-height","",Po.lineHeight,"1.33"),We=mo.extend("--ft-typography-caption-text-transform","",Po.textTransform,"inherit"),Le=mo.extend("--ft-typography-breadcrumb-font-family","",Bo),$e=mo.extend("--ft-typography-breadcrumb-font-size","",Po.fontSize,"10px"),ke=mo.extend("--ft-typography-breadcrumb-font-weight","",Po.fontWeight,"normal"),Ke=mo.extend("--ft-typography-breadcrumb-letter-spacing","",Po.letterSpacing,"0.33px"),Ze=mo.extend("--ft-typography-breadcrumb-line-height","",Po.lineHeight,"1.6"),Fe=mo.extend("--ft-typography-breadcrumb-text-transform","",Po.textTransform,"inherit"),ze=mo.extend("--ft-typography-overline-font-family","",Bo),Me=mo.extend("--ft-typography-overline-font-size","",Po.fontSize,"10px"),Ae=mo.extend("--ft-typography-overline-font-weight","",Po.fontWeight,"normal"),De=mo.extend("--ft-typography-overline-letter-spacing","",Po.letterSpacing,"1.5px"),Be=mo.extend("--ft-typography-overline-line-height","",Po.lineHeight,"1.6"),Pe=mo.extend("--ft-typography-overline-text-transform","",Po.textTransform,"uppercase"),He=mo.extend("--ft-typography-button-font-family","",Bo),_e=mo.extend("--ft-typography-button-font-size","",Po.fontSize,"14px"),Te=mo.extend("--ft-typography-button-font-weight","",Po.fontWeight,"600"),Ge=mo.extend("--ft-typography-button-letter-spacing","",Po.letterSpacing,"1.246px"),je=mo.extend("--ft-typography-button-line-height","",Po.lineHeight,"1.15"),Ye=mo.extend("--ft-typography-button-text-transform","",Po.textTransform,"uppercase"),Je=ut`
128
+ const Zo=Symbol.for(""),Fo=t=>{if(t?.r===Zo)return t?._$litStatic$},zo=t=>({_$litStatic$:t,r:Zo}),Mo=new Map,Ao=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],s=[];let c,l=0,p=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(a=e[l],i=Fo(a));)c+=i+o[++l],p=!0;l!==r&&s.push(a),n.push(c),l++}if(l===r&&n.push(o[r]),p){const t=n.join("$$lit$$");void 0===(o=Mo.get(t))&&(n.raw=n,Mo.set(t,o=n)),e=s}return t(o,...e)})(J);var Do;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Do||(Do={}));const Bo=mo.extend("--ft-typography-font-family","",xo.titleFont),Po=mo.extend("--ft-typography-font-family","",xo.contentFont),Ho={fontFamily:Po,fontSize:mo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:mo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:mo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:mo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:mo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},_o=mo.extend("--ft-typography-title-font-family","",Bo),To=mo.extend("--ft-typography-title-font-size","",Ho.fontSize,"20px"),Go=mo.extend("--ft-typography-title-font-weight","",Ho.fontWeight,"normal"),jo=mo.extend("--ft-typography-title-letter-spacing","",Ho.letterSpacing,"0.15px"),Yo=mo.extend("--ft-typography-title-line-height","",Ho.lineHeight,"1.2"),Jo=mo.extend("--ft-typography-title-text-transform","",Ho.textTransform,"inherit"),Vo=mo.extend("--ft-typography-title-dense-font-family","",Bo),qo=mo.extend("--ft-typography-title-dense-font-size","",Ho.fontSize,"14px"),Xo=mo.extend("--ft-typography-title-dense-font-weight","",Ho.fontWeight,"normal"),Qo=mo.extend("--ft-typography-title-dense-letter-spacing","",Ho.letterSpacing,"0.105px"),te=mo.extend("--ft-typography-title-dense-line-height","",Ho.lineHeight,"1.7"),oe=mo.extend("--ft-typography-title-dense-text-transform","",Ho.textTransform,"inherit"),ee=mo.extend("--ft-typography-subtitle1-font-family","",Po),re=mo.extend("--ft-typography-subtitle1-font-size","",Ho.fontSize,"16px"),ie=mo.extend("--ft-typography-subtitle1-font-weight","",Ho.fontWeight,"600"),ae=mo.extend("--ft-typography-subtitle1-letter-spacing","",Ho.letterSpacing,"0.144px"),ne=mo.extend("--ft-typography-subtitle1-line-height","",Ho.lineHeight,"1.5"),se=mo.extend("--ft-typography-subtitle1-text-transform","",Ho.textTransform,"inherit"),ce=mo.extend("--ft-typography-subtitle2-font-family","",Po),le=mo.extend("--ft-typography-subtitle2-font-size","",Ho.fontSize,"14px"),pe=mo.extend("--ft-typography-subtitle2-font-weight","",Ho.fontWeight,"normal"),fe=mo.extend("--ft-typography-subtitle2-letter-spacing","",Ho.letterSpacing,"0.098px"),he=mo.extend("--ft-typography-subtitle2-line-height","",Ho.lineHeight,"1.7"),de=mo.extend("--ft-typography-subtitle2-text-transform","",Ho.textTransform,"inherit"),ye=mo.extend("--ft-typography-body1-font-family","",Po),ge=mo.extend("--ft-typography-body1-font-size","",Ho.fontSize,"16px"),ue=mo.extend("--ft-typography-body1-font-weight","",Ho.fontWeight,"normal"),be=mo.extend("--ft-typography-body1-letter-spacing","",Ho.letterSpacing,"0.496px"),me=mo.extend("--ft-typography-body1-line-height","",Ho.lineHeight,"1.5"),Oe=mo.extend("--ft-typography-body1-text-transform","",Ho.textTransform,"inherit"),Ne=mo.extend("--ft-typography-body2-font-family","",Po),Se=mo.extend("--ft-typography-body2-font-size","",Ho.fontSize,"14px"),xe=mo.extend("--ft-typography-body2-font-weight","",Ho.fontWeight,"normal"),we=mo.extend("--ft-typography-body2-letter-spacing","",Ho.letterSpacing,"0.252px"),ve=mo.extend("--ft-typography-body2-line-height","",Ho.lineHeight,"1.4"),Ce=mo.extend("--ft-typography-body2-text-transform","",Ho.textTransform,"inherit"),Re=mo.extend("--ft-typography-caption-font-family","",Po),Ue=mo.extend("--ft-typography-caption-font-size","",Ho.fontSize,"12px"),Ee=mo.extend("--ft-typography-caption-font-weight","",Ho.fontWeight,"normal"),Ie=mo.extend("--ft-typography-caption-letter-spacing","",Ho.letterSpacing,"0.396px"),We=mo.extend("--ft-typography-caption-line-height","",Ho.lineHeight,"1.33"),Le=mo.extend("--ft-typography-caption-text-transform","",Ho.textTransform,"inherit"),$e=mo.extend("--ft-typography-breadcrumb-font-family","",Po),ke=mo.extend("--ft-typography-breadcrumb-font-size","",Ho.fontSize,"10px"),Ke=mo.extend("--ft-typography-breadcrumb-font-weight","",Ho.fontWeight,"normal"),Ze=mo.extend("--ft-typography-breadcrumb-letter-spacing","",Ho.letterSpacing,"0.33px"),Fe=mo.extend("--ft-typography-breadcrumb-line-height","",Ho.lineHeight,"1.6"),ze=mo.extend("--ft-typography-breadcrumb-text-transform","",Ho.textTransform,"inherit"),Me=mo.extend("--ft-typography-overline-font-family","",Po),Ae=mo.extend("--ft-typography-overline-font-size","",Ho.fontSize,"10px"),De=mo.extend("--ft-typography-overline-font-weight","",Ho.fontWeight,"normal"),Be=mo.extend("--ft-typography-overline-letter-spacing","",Ho.letterSpacing,"1.5px"),Pe=mo.extend("--ft-typography-overline-line-height","",Ho.lineHeight,"1.6"),He=mo.extend("--ft-typography-overline-text-transform","",Ho.textTransform,"uppercase"),_e=mo.extend("--ft-typography-button-font-family","",Po),Te=mo.extend("--ft-typography-button-font-size","",Ho.fontSize,"14px"),Ge=mo.extend("--ft-typography-button-font-weight","",Ho.fontWeight,"600"),je=mo.extend("--ft-typography-button-letter-spacing","",Ho.letterSpacing,"1.246px"),Ye=mo.extend("--ft-typography-button-line-height","",Ho.lineHeight,"1.15"),Je=mo.extend("--ft-typography-button-text-transform","",Ho.textTransform,"uppercase"),Ve=ut`
125
129
  .ft-typography--title {
126
- font-family: ${Ho};
127
- font-size: ${_o};
128
- font-weight: ${To};
129
- letter-spacing: ${Go};
130
- line-height: ${jo};
131
- text-transform: ${Yo};
130
+ font-family: ${_o};
131
+ font-size: ${To};
132
+ font-weight: ${Go};
133
+ letter-spacing: ${jo};
134
+ line-height: ${Yo};
135
+ text-transform: ${Jo};
132
136
  }
133
- `,Ve=ut`
137
+ `,qe=ut`
134
138
  .ft-typography--title-dense {
135
- font-family: ${Jo};
136
- font-size: ${Vo};
137
- font-weight: ${qo};
138
- letter-spacing: ${Xo};
139
- line-height: ${Qo};
140
- text-transform: ${te};
139
+ font-family: ${Vo};
140
+ font-size: ${qo};
141
+ font-weight: ${Xo};
142
+ letter-spacing: ${Qo};
143
+ line-height: ${te};
144
+ text-transform: ${oe};
141
145
  }
142
- `,qe=ut`
146
+ `,Xe=ut`
143
147
  .ft-typography--subtitle1 {
144
- font-family: ${oe};
145
- font-size: ${ee};
146
- font-weight: ${re};
147
- letter-spacing: ${ie};
148
- line-height: ${ae};
149
- text-transform: ${ne};
148
+ font-family: ${ee};
149
+ font-size: ${re};
150
+ font-weight: ${ie};
151
+ letter-spacing: ${ae};
152
+ line-height: ${ne};
153
+ text-transform: ${se};
150
154
  }
151
- `,Xe=ut`
155
+ `,Qe=ut`
152
156
  .ft-typography--subtitle2 {
153
- font-family: ${se};
154
- font-size: ${ce};
155
- font-weight: ${le};
156
- letter-spacing: ${pe};
157
- line-height: ${fe};
158
- text-transform: ${he};
157
+ font-family: ${ce};
158
+ font-size: ${le};
159
+ font-weight: ${pe};
160
+ letter-spacing: ${fe};
161
+ line-height: ${he};
162
+ text-transform: ${de};
159
163
  }
160
164
 
161
- `,Qe=ut`
165
+ `,tr=ut`
162
166
  .ft-typography--body1 {
163
- font-family: ${de};
164
- font-size: ${ye};
165
- font-weight: ${ge};
166
- letter-spacing: ${ue};
167
- line-height: ${be};
168
- text-transform: ${me};
167
+ font-family: ${ye};
168
+ font-size: ${ge};
169
+ font-weight: ${ue};
170
+ letter-spacing: ${be};
171
+ line-height: ${me};
172
+ text-transform: ${Oe};
169
173
  }
170
- `,tr=ut`
174
+ `,or=ut`
171
175
  .ft-typography--body2 {
172
- font-family: ${Oe};
173
- font-size: ${Ne};
174
- font-weight: ${Se};
175
- letter-spacing: ${xe};
176
- line-height: ${we};
177
- text-transform: ${ve};
176
+ font-family: ${Ne};
177
+ font-size: ${Se};
178
+ font-weight: ${xe};
179
+ letter-spacing: ${we};
180
+ line-height: ${ve};
181
+ text-transform: ${Ce};
178
182
  }
179
- `,or=ut`
183
+ `,er=ut`
180
184
  .ft-typography--caption {
181
- font-family: ${Ce};
182
- font-size: ${Re};
183
- font-weight: ${Ue};
184
- letter-spacing: ${Ee};
185
- line-height: ${Ie};
186
- text-transform: ${We};
185
+ font-family: ${Re};
186
+ font-size: ${Ue};
187
+ font-weight: ${Ee};
188
+ letter-spacing: ${Ie};
189
+ line-height: ${We};
190
+ text-transform: ${Le};
187
191
  }
188
- `,er=ut`
192
+ `,rr=ut`
189
193
  .ft-typography--breadcrumb {
190
- font-family: ${Le};
191
- font-size: ${$e};
192
- font-weight: ${ke};
193
- letter-spacing: ${Ke};
194
- line-height: ${Ze};
195
- text-transform: ${Fe};
194
+ font-family: ${$e};
195
+ font-size: ${ke};
196
+ font-weight: ${Ke};
197
+ letter-spacing: ${Ze};
198
+ line-height: ${Fe};
199
+ text-transform: ${ze};
196
200
  }
197
- `,rr=ut`
201
+ `,ir=ut`
198
202
  .ft-typography--overline {
199
- font-family: ${ze};
200
- font-size: ${Me};
201
- font-weight: ${Ae};
202
- letter-spacing: ${De};
203
- line-height: ${Be};
204
- text-transform: ${Pe};
203
+ font-family: ${Me};
204
+ font-size: ${Ae};
205
+ font-weight: ${De};
206
+ letter-spacing: ${Be};
207
+ line-height: ${Pe};
208
+ text-transform: ${He};
205
209
  }
206
- `,ir=ut`
210
+ `,ar=ut`
207
211
  .ft-typography--button {
208
- font-family: ${He};
209
- font-size: ${_e};
210
- font-weight: ${Te};
211
- letter-spacing: ${Ge};
212
- line-height: ${je};
213
- text-transform: ${Ye};
212
+ font-family: ${_e};
213
+ font-size: ${Te};
214
+ font-weight: ${Ge};
215
+ letter-spacing: ${je};
216
+ line-height: ${Ye};
217
+ text-transform: ${Je};
214
218
  }
215
- `,ar=ut`
219
+ `,nr=ut`
216
220
  .ft-typography {
217
221
  vertical-align: inherit;
218
222
  }
219
- `,nr=[Object.keys(No).map((t=>function(t){const o=No[t];return ut`
223
+ `,sr=[Object.keys(No).map((t=>function(t){const o=No[t];return ut`
220
224
  .ft-typography--${gt(t)} {
221
225
  font-family: ${o.fontFamily};
222
226
  font-size: ${o.fontSize};
@@ -225,14 +229,14 @@ const Ko=Symbol.for(""),Zo=t=>{if(t?.r===Ko)return t?._$litStatic$},Fo=t=>({_$li
225
229
  line-height: ${o.lineHeight};
226
230
  text-transform: ${o.textCase};
227
231
  }
228
- `}(t)))];var sr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class cr extends Lo{constructor(){super(...arguments),this.variant=Ao.body1}render(){return this.element?Mo`
229
- <${Fo(this.element)}
232
+ `}(t)))];var cr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class lr extends Lo{constructor(){super(...arguments),this.variant=Do.body1}render(){return this.element?Ao`
233
+ <${zo(this.element)}
230
234
  class="ft-typography ft-typography--${this.variant}">
231
235
  <slot></slot>
232
- </${Fo(this.element)}>
233
- `:Mo`
236
+ </${zo(this.element)}>
237
+ `:Ao`
234
238
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
235
- `}}cr.styles=[Je,Ve,qe,Xe,Qe,tr,or,er,rr,ir,ar,...nr],sr([C()],cr.prototype,"element",void 0),sr([C()],cr.prototype,"variant",void 0),I("ft-typography")(cr);const lr={distance:mo.create("--ft-tooltip-distance","","SIZE","4px"),color:mo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:mo.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:mo.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:mo.external(xo.borderRadiusS,"Design system"),maxWidth:mo.create("--ft-tooltip-max-width","","SIZE","150px")},pr=ut`
239
+ `}}lr.styles=[Ve,qe,Xe,Qe,tr,or,er,rr,ir,ar,nr,...sr],cr([C()],lr.prototype,"element",void 0),cr([C()],lr.prototype,"variant",void 0),I("ft-typography")(lr);const pr={distance:mo.create("--ft-tooltip-distance","","SIZE","4px"),color:mo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:mo.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:mo.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:mo.external(xo.borderRadiusS,"Design system"),maxWidth:mo.create("--ft-tooltip-max-width","","SIZE","150px")},fr=ut`
236
240
  .ft-tooltip--container {
237
241
  display: block;
238
242
  }
@@ -247,21 +251,21 @@ const Ko=Symbol.for(""),Zo=t=>{if(t?.r===Ko)return t?._$litStatic$},Fo=t=>({_$li
247
251
  box-sizing: border-box;
248
252
  overflow: hidden;
249
253
  width: max-content;
250
- max-width: ${lr.maxWidth};
254
+ max-width: ${pr.maxWidth};
251
255
  text-align: center;
252
- padding: ${lr.distance};
253
- z-index: ${lr.zIndex};
256
+ padding: ${pr.distance};
257
+ z-index: ${pr.zIndex};
254
258
  }
255
259
 
256
260
  .ft-tooltip--content {
257
261
  padding: 4px 8px;
258
- border-radius: ${lr.borderRadiusS};
259
- background-color: ${lr.backgroundColor};
260
- color: ${lr.color};
262
+ border-radius: ${pr.borderRadiusS};
263
+ background-color: ${pr.backgroundColor};
264
+ color: ${pr.color};
261
265
  position: relative;
262
266
  word-break: break-word;
263
267
  }
264
- `;var fr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class hr extends Lo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Xt`
268
+ `;var hr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class dr extends Lo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Xt`
265
269
  <div part="container"
266
270
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
267
271
  @mouseenter=${this.onHover}
@@ -279,4 +283,4 @@ const Ko=Symbol.for(""),Zo=t=>{if(t?.r===Ko)return t?._$litStatic$},Fo=t=>({_$li
279
283
  </div>
280
284
  </div>
281
285
  </div>
282
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,r=(t.offsetHeight-e)/2,i=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=a+"px",s.top=n+"px";const c=this.tooltip.getBoundingClientRect();let l=-c.x,p=c.x+c.width-window.innerWidth;s.left=a+Math.round(this.correctOutOfWindowPixels(l,p))+"px";let f=-c.y,h=c.y+c.height-window.innerHeight;s.top=n+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${lr.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}hr.elementDefinitions={"ft-typography":cr},hr.styles=pr,fr([C()],hr.prototype,"text",void 0),fr([C({type:Boolean})],hr.prototype,"manual",void 0),fr([C({type:Boolean})],hr.prototype,"inline",void 0),fr([C({type:Number})],hr.prototype,"delay",void 0),fr([C()],hr.prototype,"position",void 0),fr([function(t){return(o,e)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(i);return o?.assignedNodes(t)??[]}})}}()],hr.prototype,"slotNodes",void 0),fr([U(".ft-tooltip--container")],hr.prototype,"container",void 0),fr([U(".ft-tooltip")],hr.prototype,"tooltip",void 0),fr([U(".ft-tooltip--content")],hr.prototype,"tooltipContent",void 0),fr([function(t){return C({...t,state:!0,attribute:!1})}()],hr.prototype,"visible",void 0),I("ft-tooltip")(hr),t.FtTooltip=hr,t.FtTooltipCssVariables=lr,t.styles=pr}({});
286
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,r=(t.offsetHeight-e)/2,i=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=a+"px",s.top=n+"px";const c=this.tooltip.getBoundingClientRect();let l=-c.x,p=c.x+c.width-window.innerWidth;s.left=a+Math.round(this.correctOutOfWindowPixels(l,p))+"px";let f=-c.y,h=c.y+c.height-window.innerHeight;s.top=n+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${pr.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}dr.elementDefinitions={"ft-typography":lr},dr.styles=fr,hr([C()],dr.prototype,"text",void 0),hr([C({type:Boolean})],dr.prototype,"manual",void 0),hr([C({type:Boolean})],dr.prototype,"inline",void 0),hr([C({type:Number})],dr.prototype,"delay",void 0),hr([C()],dr.prototype,"position",void 0),hr([function(t){return(o,e)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(i);return o?.assignedNodes(t)??[]}})}}()],dr.prototype,"slotNodes",void 0),hr([U(".ft-tooltip--container")],dr.prototype,"container",void 0),hr([U(".ft-tooltip")],dr.prototype,"tooltip",void 0),hr([U(".ft-tooltip--content")],dr.prototype,"tooltipContent",void 0),hr([function(t){return C({...t,state:!0,attribute:!1})}()],dr.prototype,"visible",void 0),I("ft-tooltip")(dr),t.FtTooltip=dr,t.FtTooltipCssVariables=pr,t.styles=fr}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-tooltip",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A simple tooltip component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-typography": "1.1.1",
23
- "@fluid-topics/ft-wc-utils": "1.1.1",
22
+ "@fluid-topics/ft-typography": "1.1.2",
23
+ "@fluid-topics/ft-wc-utils": "1.1.2",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
26
+ "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
27
27
  }