@fluid-topics/ft-reader-topic-metadata 0.3.47 → 0.3.49

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.
@@ -2,18 +2,18 @@
2
2
  :host {
3
3
  display: inline-block;
4
4
  }
5
- `;var l=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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 p extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class a extends(function(t){class i extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new p)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return l([o.state()],i.prototype,"stateManager",void 0),i}(i.FtLitElementRedux)){}var h,f=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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 c extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class d extends(function(t){class i extends t{constructor(){super(...arguments),this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new c)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return f([o.state()],i.prototype,"tocNode",void 0),i}(a)){}
5
+ `;var l=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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 p extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class a extends(function(t){class i extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new p)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return l([o.state()],i.prototype,"stateManager",void 0),i}(i.FtLitElementRedux)){}var h,f=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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 c extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class d extends(function(t){class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new c)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return f([o.state()],i.prototype,"tocNode",void 0),f([o.state()],i.prototype,"disableContextInteractions",void 0),i}(a)){}
6
6
  /**
7
7
  * @license
8
8
  * Copyright 2017 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
- */const u=window,g=u.trustedTypes,x=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,v="?"+y,m=`<${v}>`,b=document,$=(t="")=>b.createComment(t),w=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,O=/>/g,S=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),j=/'/g,N=/"/g,E=/^(?:script|style|textarea|title)$/i,I=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),T=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),B=new WeakMap,_=b.createTreeWalker(b,129,null,!1),F=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=z;for(let i=0;i<e;i++){const e=t[i];let l,p,a=-1,h=0;for(;h<e.length&&(r.lastIndex=h,p=r.exec(e),null!==p);)h=r.lastIndex,r===z?"!--"===p[1]?r=C:void 0!==p[1]?r=O:void 0!==p[2]?(E.test(p[2])&&(n=RegExp("</"+p[2],"g")),r=S):void 0!==p[3]&&(r=S):r===S?">"===p[0]?(r=null!=n?n:z,a=-1):void 0===p[1]?a=-2:(a=r.lastIndex-p[2].length,l=p[1],r=void 0===p[3]?S:'"'===p[3]?N:j):r===N||r===j?r=S:r===C||r===O?r=z:(r=S,n=void 0);const f=r===S&&t[i+1].startsWith("/>")?" ":"";s+=r===z?e+m:a>=0?(o.push(l),e.slice(0,a)+"$lit$"+e.slice(a)+y+f):e+y+(-2===a?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==x?x.createHTML(l):l,o]};class M{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[p,a]=F(t,i);if(this.el=M.createElement(p,e),_.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=_.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(y)){const e=a[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(y),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?D:"?"===i[1]?G:"@"===i[1]?H:W})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(E.test(o.tagName)){const t=o.textContent.split(y),i=t.length-1;if(i>0){o.textContent=g?g.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],$()),_.nextNode(),l.push({type:2,index:++n});o.append(t[i],$())}}}else if(8===o.nodeType)if(o.data===v)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(y,t+1));)l.push({type:7,index:n}),t+=y.length-1}n++}}static createElement(t,i){const e=b.createElement("template");return e.innerHTML=t,e}}function U(t,i,e=t,o){var n,s,r,l;if(i===T)return i;let p=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const a=w(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=p:e._$Cl=p),void 0!==p&&(i=U(t,p._$AS(t,i.values),p,o)),i}class R{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:b).importNode(e,!0);_.currentNode=n;let s=_.nextNode(),r=0,l=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new Z(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new L(s,this,t)),this.u.push(i),p=o[++l]}r!==(null==p?void 0:p.index)&&(s=_.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class Z{constructor(t,i,e,o){var n;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=U(this,t,i),w(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==T&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==A&&w(this._$AH)?this._$AA.nextSibling.data=t:this.T(b.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=M.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new R(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=B.get(t.strings);return void 0===i&&B.set(t.strings,i=new M(t)),i}k(t){k(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new Z(this.O($()),this.O($()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class W{constructor(t,i,e,o,n){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=U(this,t,i,0),s=!w(t)||t!==this._$AH&&t!==T,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=U(this,o[e+r],i,r),l===T&&(l=this._$AH[r]),s||(s=!w(l)||l!==this._$AH[r]),l===A?t=A:t!==A&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class D extends W{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}const K=g?g.emptyScript:"";class G extends W{constructor(){super(...arguments),this.type=4}j(t){t&&t!==A?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class H extends W{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=U(this,t,i,0))&&void 0!==e?e:A)===T)return;const o=this._$AH,n=t===A&&o!==A||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==A&&(o===A||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const P=u.litHtmlPolyfillSupport;null==P||P(M,Z),(null!==(h=u.litHtmlVersions)&&void 0!==h?h:u.litHtmlVersions=[]).push("2.4.0");
10
+ */const u=window,g=u.trustedTypes,x=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,v="?"+y,m=`<${v}>`,b=document,$=(t="")=>b.createComment(t),w=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,O=/>/g,S=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),j=/'/g,N=/"/g,I=/^(?:script|style|textarea|title)$/i,E=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),T=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),B=new WeakMap,_=b.createTreeWalker(b,129,null,!1),F=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=z;for(let i=0;i<e;i++){const e=t[i];let l,p,a=-1,h=0;for(;h<e.length&&(r.lastIndex=h,p=r.exec(e),null!==p);)h=r.lastIndex,r===z?"!--"===p[1]?r=C:void 0!==p[1]?r=O:void 0!==p[2]?(I.test(p[2])&&(n=RegExp("</"+p[2],"g")),r=S):void 0!==p[3]&&(r=S):r===S?">"===p[0]?(r=null!=n?n:z,a=-1):void 0===p[1]?a=-2:(a=r.lastIndex-p[2].length,l=p[1],r=void 0===p[3]?S:'"'===p[3]?N:j):r===N||r===j?r=S:r===C||r===O?r=z:(r=S,n=void 0);const f=r===S&&t[i+1].startsWith("/>")?" ":"";s+=r===z?e+m:a>=0?(o.push(l),e.slice(0,a)+"$lit$"+e.slice(a)+y+f):e+y+(-2===a?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==x?x.createHTML(l):l,o]};class M{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[p,a]=F(t,i);if(this.el=M.createElement(p,e),_.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=_.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(y)){const e=a[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(y),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?D:"?"===i[1]?G:"@"===i[1]?H:W})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(I.test(o.tagName)){const t=o.textContent.split(y),i=t.length-1;if(i>0){o.textContent=g?g.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],$()),_.nextNode(),l.push({type:2,index:++n});o.append(t[i],$())}}}else if(8===o.nodeType)if(o.data===v)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(y,t+1));)l.push({type:7,index:n}),t+=y.length-1}n++}}static createElement(t,i){const e=b.createElement("template");return e.innerHTML=t,e}}function U(t,i,e=t,o){var n,s,r,l;if(i===T)return i;let p=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const a=w(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=p:e._$Cl=p),void 0!==p&&(i=U(t,p._$AS(t,i.values),p,o)),i}class R{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:b).importNode(e,!0);_.currentNode=n;let s=_.nextNode(),r=0,l=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new Z(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new L(s,this,t)),this.u.push(i),p=o[++l]}r!==(null==p?void 0:p.index)&&(s=_.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class Z{constructor(t,i,e,o){var n;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=U(this,t,i),w(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==T&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==A&&w(this._$AH)?this._$AA.nextSibling.data=t:this.T(b.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=M.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new R(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=B.get(t.strings);return void 0===i&&B.set(t.strings,i=new M(t)),i}k(t){k(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new Z(this.O($()),this.O($()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class W{constructor(t,i,e,o,n){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=U(this,t,i,0),s=!w(t)||t!==this._$AH&&t!==T,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=U(this,o[e+r],i,r),l===T&&(l=this._$AH[r]),s||(s=!w(l)||l!==this._$AH[r]),l===A?t=A:t!==A&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class D extends W{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}const K=g?g.emptyScript:"";class G extends W{constructor(){super(...arguments),this.type=4}j(t){t&&t!==A?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class H extends W{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=U(this,t,i,0))&&void 0!==e?e:A)===T)return;const o=this._$AH,n=t===A&&o!==A||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==A&&(o===A||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const P=u.litHtmlPolyfillSupport;null==P||P(M,Z),(null!==(h=u.litHtmlVersions)&&void 0!==h?h:u.litHtmlVersions=[]).push("2.4.0");
11
11
  /**
12
12
  * @license
13
13
  * Copyright 2020 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
15
  */
16
- const q=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t._$litStatic$},Y=t=>({_$litStatic$:t,r:q}),J=new Map,Q=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let p,a=0,h=!1;for(;a<o;){for(p=i[a];a<o&&void 0!==(s=e[a],n=X(s));)p+=n+i[++a],h=!0;l.push(s),r.push(p),a++}if(a===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=J.get(t))&&(r.raw=r,J.set(t,i=r)),e=l}return t(i,...e)})(I);var V;!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"}(V||(V={}));const tt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),it=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),et={fontFamily:it,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},ot=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",tt),nt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",et.fontSize,"20px"),st=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",et.fontWeight,"normal"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",et.letterSpacing,"0.15px"),lt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",et.lineHeight,"1.2"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",et.textTransform,"inherit"),at=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",tt),ht=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",et.fontSize,"14px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",et.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",et.letterSpacing,"0.105px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",et.lineHeight,"1.7"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",et.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",it),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",et.fontSize,"16px"),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",et.fontWeight,"600"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",et.letterSpacing,"0.144px"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",et.lineHeight,"1.5"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",et.textTransform,"inherit"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",it),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",et.fontSize,"14px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",et.fontWeight,"normal"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",et.letterSpacing,"0.098px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",et.lineHeight,"1.7"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",et.textTransform,"inherit"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",it),jt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",et.fontSize,"16px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",et.fontWeight,"normal"),Et=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",et.letterSpacing,"0.496px"),It=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",et.lineHeight,"1.5"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",et.textTransform,"inherit"),At={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",it),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",et.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",et.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",et.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",et.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",et.textTransform,"inherit")},Bt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",it),_t=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",et.fontSize,"12px"),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",et.fontWeight,"normal"),Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",et.letterSpacing,"0.396px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",et.lineHeight,"1.33"),Rt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",et.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",it),Wt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",et.fontSize,"10px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",et.fontWeight,"normal"),Kt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",et.letterSpacing,"0.33px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",et.lineHeight,"1.6"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",et.textTransform,"inherit"),Lt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",it),Pt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",et.fontSize,"10px"),qt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",et.fontWeight,"normal"),Xt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",et.letterSpacing,"1.5px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",et.lineHeight,"1.6"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",et.textTransform,"uppercase"),Qt=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",it),Vt=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",et.fontSize,"14px"),ti=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",et.fontWeight,"600"),ii=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",et.letterSpacing,"1.246px"),ei=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",et.lineHeight,"1.15"),oi=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",et.textTransform,"uppercase"),ni=e.css`
16
+ const q=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t._$litStatic$},Y=t=>({_$litStatic$:t,r:q}),J=new Map,Q=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let p,a=0,h=!1;for(;a<o;){for(p=i[a];a<o&&void 0!==(s=e[a],n=X(s));)p+=n+i[++a],h=!0;l.push(s),r.push(p),a++}if(a===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=J.get(t))&&(r.raw=r,J.set(t,i=r)),e=l}return t(i,...e)})(E);var V;!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"}(V||(V={}));const tt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),it=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),et={fontFamily:it,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},ot=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",tt),nt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",et.fontSize,"20px"),st=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",et.fontWeight,"normal"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",et.letterSpacing,"0.15px"),lt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",et.lineHeight,"1.2"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",et.textTransform,"inherit"),at=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",tt),ht=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",et.fontSize,"14px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",et.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",et.letterSpacing,"0.105px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",et.lineHeight,"1.7"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",et.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",it),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",et.fontSize,"16px"),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",et.fontWeight,"600"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",et.letterSpacing,"0.144px"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",et.lineHeight,"1.5"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",et.textTransform,"inherit"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",it),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",et.fontSize,"14px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",et.fontWeight,"normal"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",et.letterSpacing,"0.098px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",et.lineHeight,"1.7"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",et.textTransform,"inherit"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",it),jt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",et.fontSize,"16px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",et.fontWeight,"normal"),It=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",et.letterSpacing,"0.496px"),Et=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",et.lineHeight,"1.5"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",et.textTransform,"inherit"),At={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",it),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",et.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",et.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",et.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",et.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",et.textTransform,"inherit")},Bt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",it),_t=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",et.fontSize,"12px"),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",et.fontWeight,"normal"),Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",et.letterSpacing,"0.396px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",et.lineHeight,"1.33"),Rt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",et.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",it),Wt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",et.fontSize,"10px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",et.fontWeight,"normal"),Kt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",et.letterSpacing,"0.33px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",et.lineHeight,"1.6"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",et.textTransform,"inherit"),Lt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",it),Pt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",et.fontSize,"10px"),qt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",et.fontWeight,"normal"),Xt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",et.letterSpacing,"1.5px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",et.lineHeight,"1.6"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",et.textTransform,"uppercase"),Qt=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",it),Vt=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",et.fontSize,"14px"),ti=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",et.fontWeight,"600"),ii=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",et.letterSpacing,"1.246px"),ei=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",et.lineHeight,"1.15"),oi=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",et.textTransform,"uppercase"),ni=e.css`
17
17
  .ft-typography--title {
18
18
  font-family: ${ot};
19
19
  font-size: ${nt};
@@ -55,8 +55,8 @@ const q=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
55
55
  font-family: ${St};
56
56
  font-size: ${jt};
57
57
  font-weight: ${Nt};
58
- letter-spacing: ${Et};
59
- line-height: ${It};
58
+ letter-spacing: ${It};
59
+ line-height: ${Et};
60
60
  text-transform: ${Tt};
61
61
  }
62
62
  `,ai=e.css`
@@ -165,7 +165,7 @@ const q=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
165
165
  </div>
166
166
  </div>
167
167
  </div>
168
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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 i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){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, ${wi})`}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())}}Ci.elementDefinitions={"ft-typography":xi},Ci.styles=ki,zi([o.property()],Ci.prototype,"text",void 0),zi([o.property({type:Boolean})],Ci.prototype,"manual",void 0),zi([o.property({type:Boolean})],Ci.prototype,"inline",void 0),zi([o.property({type:Number})],Ci.prototype,"delay",void 0),zi([o.property()],Ci.prototype,"position",void 0),zi([o.queryAssignedNodes("",!0)],Ci.prototype,"slotNodes",void 0),zi([o.query(".ft-tooltip--container")],Ci.prototype,"container",void 0),zi([o.query("slot")],Ci.prototype,"target",void 0),zi([o.query(".ft-tooltip")],Ci.prototype,"tooltip",void 0),zi([o.query(".ft-tooltip--content")],Ci.prototype,"tooltipContent",void 0),zi([o.state()],Ci.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ci);const Oi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),Si={color:Oi,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",Oi),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},ji=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),Ni=ji,Ei=i.FtCssVariableFactory.extend("--ft-ripple-background-color",ji),Ii=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),Ti=Ii,Ai=i.FtCssVariableFactory.extend("--ft-ripple-background-color",Ii),Bi=e.css`
168
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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 i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){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, ${wi})`}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())}}Ci.elementDefinitions={"ft-typography":xi},Ci.styles=ki,zi([o.property()],Ci.prototype,"text",void 0),zi([o.property({type:Boolean})],Ci.prototype,"manual",void 0),zi([o.property({type:Boolean})],Ci.prototype,"inline",void 0),zi([o.property({type:Number})],Ci.prototype,"delay",void 0),zi([o.property()],Ci.prototype,"position",void 0),zi([o.queryAssignedNodes("",!0)],Ci.prototype,"slotNodes",void 0),zi([o.query(".ft-tooltip--container")],Ci.prototype,"container",void 0),zi([o.query("slot")],Ci.prototype,"target",void 0),zi([o.query(".ft-tooltip")],Ci.prototype,"tooltip",void 0),zi([o.query(".ft-tooltip--content")],Ci.prototype,"tooltipContent",void 0),zi([o.state()],Ci.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ci);const Oi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),Si={color:Oi,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",Oi),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},ji=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),Ni=ji,Ii=i.FtCssVariableFactory.extend("--ft-ripple-background-color",ji),Ei=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),Ti=Ei,Ai=i.FtCssVariableFactory.extend("--ft-ripple-background-color",Ei),Bi=e.css`
169
169
  :host {
170
170
  display: contents;
171
171
  }
@@ -203,7 +203,7 @@ const q=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
203
203
  }
204
204
 
205
205
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
206
- background-color: ${Ei};
206
+ background-color: ${Ii};
207
207
  }
208
208
 
209
209
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
@@ -97,7 +97,7 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
97
97
  :host {
98
98
  display: inline-block;
99
99
  }
100
- `;var St=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 Ct extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Nt extends(function(t){class i extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Ct)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return St([n()],i.prototype,"stateManager",void 0),i}(bt)){}var Et=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 Rt extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class Mt extends(function(t){class i extends t{constructor(){super(...arguments),this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new Rt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return Et([n()],i.prototype,"tocNode",void 0),i}(Nt)){}
100
+ `;var St=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 Ct extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Nt extends(function(t){class i extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Ct)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return St([n()],i.prototype,"stateManager",void 0),i}(bt)){}var Et=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 Rt extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class Mt extends(function(t){class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new Rt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return Et([n()],i.prototype,"tocNode",void 0),Et([n()],i.prototype,"disableContextInteractions",void 0),i}(Nt)){}
101
101
  /**
102
102
  * @license
103
103
  * Copyright 2020 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-metadata",
3
- "version": "0.3.47",
3
+ "version": "0.3.49",
4
4
  "description": "Metadata of a topic in integrated reader.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "0.3.47",
22
+ "@fluid-topics/ft-wc-utils": "0.3.49",
23
23
  "lit": "2.2.8"
24
24
  },
25
- "gitHead": "80e65714b25d4e681f722ff7a064af63e63b3b77"
25
+ "gitHead": "3584a4f0b3edc500a360c2afe2ef3e5cdbb604b6"
26
26
  }