@fluid-topics/ft-reader-title 1.0.57 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-title.light.js +73 -73
- package/build/ft-reader-title.min.js +78 -78
- package/package.json +4 -4
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
!function(t,i,e,o){var n=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class
|
|
1
|
+
!function(t,i,e,o){var n;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(n||(n={}));var r=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class s extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const h=Symbol("registerInterval");class a extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[h]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[h]):this.dispatchEvent(new s)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=h,r([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/var
|
|
6
|
+
*/var l;const f=window,p=f.trustedTypes,y=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,g="$lit$",c=`lit$${(Math.random()+"").slice(9)}$`,d="?"+c,u=`<${d}>`,v=document,$=()=>v.createComment(""),m=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,x="[ \t\n\f\r]",w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,A=/>/g,S=RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,_=/"/g,T=/^(?:script|style|textarea|title)$/i,E=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),O=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),I=new WeakMap,C=v.createTreeWalker(v,129,null,!1),M=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=w;for(let i=0;i<e;i++){const e=t[i];let h,a,l=-1,f=0;for(;f<e.length&&(s.lastIndex=f,a=s.exec(e),null!==a);)f=s.lastIndex,s===w?"!--"===a[1]?s=z:void 0!==a[1]?s=A:void 0!==a[2]?(T.test(a[2])&&(n=RegExp("</"+a[2],"g")),s=S):void 0!==a[3]&&(s=S):s===S?">"===a[0]?(s=null!=n?n:w,l=-1):void 0===a[1]?l=-2:(l=s.lastIndex-a[2].length,h=a[1],s=void 0===a[3]?S:'"'===a[3]?_:N):s===_||s===N?s=S:s===z||s===A?s=w:(s=S,n=void 0);const p=s===S&&t[i+1].startsWith("/>")?" ":"";r+=s===w?e+u:l>=0?(o.push(h),e.slice(0,l)+g+e.slice(l)+c+p):e+c+(-2===l?(o.push(void 0),i):p)}const h=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(h):h,o]};class R{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,h=this.parts,[a,l]=M(t,i);if(this.el=R.createElement(a,e),C.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=C.nextNode())&&h.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(g)||i.startsWith(c)){const e=l[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+g).split(c),i=/([.?@])?(.*)/.exec(e);h.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?G:"?"===i[1]?B:"@"===i[1]?F:k})}else h.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(T.test(o.tagName)){const t=o.textContent.split(c),i=t.length-1;if(i>0){o.textContent=p?p.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],$()),C.nextNode(),h.push({type:2,index:++n});o.append(t[i],$())}}}else if(8===o.nodeType)if(o.data===d)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(c,t+1));)h.push({type:7,index:n}),t+=c.length-1}n++}}static createElement(t,i){const e=v.createElement("template");return e.innerHTML=t,e}}function U(t,i,e=t,o){var n,r,s,h;if(i===O)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const l=m(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,e,o)),void 0!==o?(null!==(s=(h=e)._$Co)&&void 0!==s?s:h._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=U(t,a._$AS(t,i.values),a,o)),i}class K{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:v).importNode(e,!0);C.currentNode=n;let r=C.nextNode(),s=0,h=0,a=o[0];for(;void 0!==a;){if(s===a.index){let i;2===a.type?i=new W(r,r.nextSibling,this,t):1===a.type?i=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(i=new H(r,this,t)),this._$AV.push(i),a=o[++h]}s!==(null==a?void 0:a.index)&&(r=C.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class W{constructor(t,i,e,o){var n;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0: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),m(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==O&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>b(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==j&&m(this._$AH)?this._$AA.nextSibling.data=t:this.$(v.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=R.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new K(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=I.get(t.strings);return void 0===i&&I.set(t.strings,i=new R(t)),i}T(t){b(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 W(this.k($()),this.k($()),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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class k{constructor(t,i,e,o,n){this.type=1,this._$AH=j,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=j}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=U(this,t,i,0),r=!m(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const o=t;let s,h;for(t=n[0],s=0;s<n.length-1;s++)h=U(this,o[e+s],i,s),h===O&&(h=this._$AH[s]),r||(r=!m(h)||h!==this._$AH[s]),h===j?t=j:t!==j&&(t+=(null!=h?h:"")+n[s+1]),this._$AH[s]=h}r&&!o&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}}const Z=p?p.emptyScript:"";class B extends k{constructor(){super(...arguments),this.type=4}j(t){t&&t!==j?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class F extends k{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:j)===O)return;const o=this._$AH,n=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==j&&(o===j||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 H{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 L=f.litHtmlPolyfillSupport;null==L||L(R,W),(null!==(l=f.litHtmlVersions)&&void 0!==l?l:f.litHtmlVersions=[]).push("2.7.3");
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2020 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
const
|
|
12
|
+
const D=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t._$litStatic$},q=t=>({_$litStatic$:t,r:D}),J=new Map,Q=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],h=[];let a,l=0,f=!1;for(;l<o;){for(a=i[l];l<o&&void 0!==(r=e[l],n=P(r));)a+=n+i[++l],f=!0;l!==o&&h.push(r),s.push(a),l++}if(l===o&&s.push(i[o]),f){const t=s.join("$$lit$$");void 0===(i=J.get(t))&&(s.raw=s,J.set(t,i=s)),e=h}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 X=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),Y=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),tt={fontFamily:Y,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")},it={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-title-font-family",X),fontSize:i.FtCssVariableFactory.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-title-line-height",tt.lineHeight,"1.2"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit")},et=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",X),ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),st=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"1.7"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),at=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Y),lt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"1.5"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",Y),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"1.7"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",Y),xt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",tt.lineHeight,"1.5"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",Y),_t=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),Et=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",tt.lineHeight,"1.4"),jt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit"),It=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",Y),Ct=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),Rt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",tt.lineHeight,"1.33"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit"),Wt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",Y),kt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Zt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"1.6"),Ft=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),Ht=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",Y),Lt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),Pt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),qt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",tt.lineHeight,"1.6"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),Qt=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",Y),Vt=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),Yt=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),ti=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",tt.lineHeight,"1.15"),ii=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase"),ei=e.css`
|
|
13
13
|
.ft-typography--title {
|
|
14
|
-
font-family: ${
|
|
15
|
-
font-size: ${
|
|
16
|
-
font-weight: ${
|
|
17
|
-
letter-spacing: ${
|
|
18
|
-
line-height: ${
|
|
19
|
-
text-transform: ${
|
|
14
|
+
font-family: ${it.fontFamily};
|
|
15
|
+
font-size: ${it.fontSize};
|
|
16
|
+
font-weight: ${it.fontWeight};
|
|
17
|
+
letter-spacing: ${it.letterSpacing};
|
|
18
|
+
line-height: ${it.lineHeight};
|
|
19
|
+
text-transform: ${it.textTransform};
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,oi=e.css`
|
|
22
22
|
.ft-typography--title-dense {
|
|
23
|
-
font-family: ${
|
|
24
|
-
font-size: ${
|
|
25
|
-
font-weight: ${
|
|
26
|
-
letter-spacing: ${
|
|
27
|
-
line-height: ${
|
|
28
|
-
text-transform: ${
|
|
23
|
+
font-family: ${et};
|
|
24
|
+
font-size: ${ot};
|
|
25
|
+
font-weight: ${nt};
|
|
26
|
+
letter-spacing: ${rt};
|
|
27
|
+
line-height: ${st};
|
|
28
|
+
text-transform: ${ht};
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,ni=e.css`
|
|
31
31
|
.ft-typography--subtitle1 {
|
|
32
|
-
font-family: ${
|
|
33
|
-
font-size: ${
|
|
34
|
-
font-weight: ${
|
|
35
|
-
letter-spacing: ${
|
|
36
|
-
line-height: ${
|
|
37
|
-
text-transform: ${
|
|
32
|
+
font-family: ${at};
|
|
33
|
+
font-size: ${lt};
|
|
34
|
+
font-weight: ${ft};
|
|
35
|
+
letter-spacing: ${pt};
|
|
36
|
+
line-height: ${yt};
|
|
37
|
+
text-transform: ${gt};
|
|
38
38
|
}
|
|
39
|
-
`,
|
|
39
|
+
`,ri=e.css`
|
|
40
40
|
.ft-typography--subtitle2 {
|
|
41
|
-
font-family: ${
|
|
42
|
-
font-size: ${
|
|
43
|
-
font-weight: ${
|
|
44
|
-
letter-spacing: ${
|
|
45
|
-
line-height: ${
|
|
46
|
-
text-transform: ${
|
|
41
|
+
font-family: ${ct};
|
|
42
|
+
font-size: ${dt};
|
|
43
|
+
font-weight: ${ut};
|
|
44
|
+
letter-spacing: ${vt};
|
|
45
|
+
line-height: ${$t};
|
|
46
|
+
text-transform: ${mt};
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
`,
|
|
49
|
+
`,si=e.css`
|
|
50
50
|
.ft-typography--body1 {
|
|
51
|
-
font-family: ${
|
|
52
|
-
font-size: ${
|
|
53
|
-
font-weight: ${
|
|
54
|
-
letter-spacing: ${
|
|
55
|
-
line-height: ${
|
|
51
|
+
font-family: ${bt};
|
|
52
|
+
font-size: ${xt};
|
|
53
|
+
font-weight: ${wt};
|
|
54
|
+
letter-spacing: ${zt};
|
|
55
|
+
line-height: ${At};
|
|
56
56
|
text-transform: ${St};
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
58
|
+
`,hi=e.css`
|
|
59
59
|
.ft-typography--body2 {
|
|
60
|
-
font-family: ${
|
|
60
|
+
font-family: ${Nt};
|
|
61
61
|
font-size: ${_t};
|
|
62
|
-
font-weight: ${
|
|
63
|
-
letter-spacing: ${
|
|
64
|
-
line-height: ${
|
|
65
|
-
text-transform: ${
|
|
62
|
+
font-weight: ${Tt};
|
|
63
|
+
letter-spacing: ${Et};
|
|
64
|
+
line-height: ${Ot};
|
|
65
|
+
text-transform: ${jt};
|
|
66
66
|
}
|
|
67
|
-
`,
|
|
67
|
+
`,ai=e.css`
|
|
68
68
|
.ft-typography--caption {
|
|
69
|
-
font-family: ${
|
|
70
|
-
font-size: ${
|
|
71
|
-
font-weight: ${
|
|
72
|
-
letter-spacing: ${
|
|
73
|
-
line-height: ${
|
|
74
|
-
text-transform: ${
|
|
69
|
+
font-family: ${It};
|
|
70
|
+
font-size: ${Ct};
|
|
71
|
+
font-weight: ${Mt};
|
|
72
|
+
letter-spacing: ${Rt};
|
|
73
|
+
line-height: ${Ut};
|
|
74
|
+
text-transform: ${Kt};
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`,li=e.css`
|
|
77
77
|
.ft-typography--breadcrumb {
|
|
78
78
|
font-family: ${Wt};
|
|
79
79
|
font-size: ${kt};
|
|
80
|
-
font-weight: ${
|
|
81
|
-
letter-spacing: ${
|
|
82
|
-
line-height: ${
|
|
80
|
+
font-weight: ${Gt};
|
|
81
|
+
letter-spacing: ${Zt};
|
|
82
|
+
line-height: ${Bt};
|
|
83
83
|
text-transform: ${Ft};
|
|
84
84
|
}
|
|
85
|
-
`,
|
|
85
|
+
`,fi=e.css`
|
|
86
86
|
.ft-typography--overline {
|
|
87
|
-
font-family: ${
|
|
88
|
-
font-size: ${
|
|
89
|
-
font-weight: ${
|
|
90
|
-
letter-spacing: ${
|
|
91
|
-
line-height: ${
|
|
87
|
+
font-family: ${Ht};
|
|
88
|
+
font-size: ${Lt};
|
|
89
|
+
font-weight: ${Dt};
|
|
90
|
+
letter-spacing: ${Pt};
|
|
91
|
+
line-height: ${qt};
|
|
92
92
|
text-transform: ${Jt};
|
|
93
93
|
}
|
|
94
|
-
`,
|
|
94
|
+
`,pi=e.css`
|
|
95
95
|
.ft-typography--button {
|
|
96
|
-
font-family: ${
|
|
97
|
-
font-size: ${
|
|
98
|
-
font-weight: ${
|
|
99
|
-
letter-spacing: ${
|
|
100
|
-
line-height: ${
|
|
101
|
-
text-transform: ${
|
|
96
|
+
font-family: ${Qt};
|
|
97
|
+
font-size: ${Vt};
|
|
98
|
+
font-weight: ${Xt};
|
|
99
|
+
letter-spacing: ${Yt};
|
|
100
|
+
line-height: ${ti};
|
|
101
|
+
text-transform: ${ii};
|
|
102
102
|
}
|
|
103
|
-
`,
|
|
103
|
+
`,yi=e.css`
|
|
104
104
|
.ft-typography {
|
|
105
105
|
vertical-align: inherit;
|
|
106
106
|
}
|
|
107
|
-
`;var
|
|
108
|
-
<${
|
|
107
|
+
`;var gi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}render(){return this.element?Q`
|
|
108
|
+
<${q(this.element)}
|
|
109
109
|
class="ft-typography ft-typography--${this.variant}">
|
|
110
110
|
<slot></slot>
|
|
111
|
-
</${
|
|
112
|
-
`:
|
|
111
|
+
</${q(this.element)}>
|
|
112
|
+
`:Q`
|
|
113
113
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
114
|
-
`}}
|
|
114
|
+
`}}ci.styles=[ei,oi,ni,ri,si,hi,ai,li,fi,pi,yi],gi([o.property()],ci.prototype,"element",void 0),gi([o.property()],ci.prototype,"variant",void 0),i.customElement("ft-typography")(ci);var di=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ui extends a{render(){return this.mapTitle?e.html`
|
|
115
115
|
<ft-typography variant="title" part="text">${this.mapTitle}</ft-typography>
|
|
116
|
-
`:e.nothing}}
|
|
116
|
+
`:e.nothing}}ui.elementDefinitions={"ft-typography":ci},di([i.redux({selector:t=>{var i;return null===(i=t.map)||void 0===i?void 0:i.title}})],ui.prototype,"mapTitle",void 0);const vi={fontSize:i.FtCssVariableFactory.extend("--ft-reader-metadata-font-size",it.fontSize)};i.customElement("ft-reader-title")(ui),t.FtReaderTitle=ui,t.FtReaderTitleCssVariables=vi}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);u(r,l,a);const h={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(r,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(r,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,r=o._getDefinition(e);return r?d(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const v=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);u(r,l,a);const h={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(r,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(r,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)n.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,r=o._getDefinition(e);return r?d(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const v=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(zt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -46,7 +46,7 @@ const l=window,h=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"
|
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
var C;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:N}),(null!==(v=b.reactiveElementVersions)&&void 0!==v?v:b.reactiveElementVersions=[]).push("1.6.1");const E=window,R=E.trustedTypes,M=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,F="?"+k,
|
|
49
|
+
var C;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:N}),(null!==(v=b.reactiveElementVersions)&&void 0!==v?v:b.reactiveElementVersions=[]).push("1.6.1");const E=window,R=E.trustedTypes,M=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,F="?"+k,A=`<${F}>`,j=document,L=()=>j.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,T="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,_=/>/g,D=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,H=/"/g,I=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),q=new WeakMap,X=j.createTreeWalker(j,129,null,!1),G=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",s=B;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===B?"!--"===l[1]?s=W:void 0!==l[1]?s=_:void 0!==l[2]?(I.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=D):void 0!==l[3]&&(s=D):s===D?">"===l[0]?(s=null!=r?r:B,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?D:'"'===l[3]?H:K):s===H||s===K?s=D:s===W||s===_?s=B:(s=D,r=void 0);const p=s===D&&t[e+1].startsWith("/>")?" ":"";n+=s===B?i+A:h>=0?(o.push(a),i.slice(0,h)+U+i.slice(h)+k+p):i+k+(-2===h?(o.push(void 0),e):p)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==M?M.createHTML(a):a,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,h]=G(t,e);if(this.el=Q.createElement(l,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(U)||e.startsWith(k)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+U).split(k),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?nt:"@"===e[1]?st:it})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(I.test(o.tagName)){const t=o.textContent.split(k),e=t.length-1;if(e>0){o.textContent=R?R.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],L()),X.nextNode(),a.push({type:2,index:++r});o.append(t[e],L())}}}else if(8===o.nodeType)if(o.data===F)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(k,t+1));)a.push({type:7,index:r}),t+=k.length-1}r++}}static createElement(t,e){const i=j.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var r,n,s,a;if(e===V)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const h=P(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=Y(t,l._$AS(t,e.values),l,o)),e}class tt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:j).importNode(i,!0);X.currentNode=r;let n=X.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new et(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new at(n,this,t)),this._$AV.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(n=X.nextNode(),s++)}return r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,o){var r;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),P(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>z(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==J&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(j.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new tt(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new Q(t)),e}T(t){z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new et(this.k(L()),this.k(L()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,o,r){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=Y(this,t,e,0),n=!P(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const o=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=Y(this,o[i+s],e,s),a===V&&(a=this._$AH[s]),n||(n=!P(a)||a!==this._$AH[s]),a===J?t=J:t!==J&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!o&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const rt=R?R.emptyScript:"";class nt extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class st extends it{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Y(this,t,e,0))&&void 0!==i?i:J)===V)return;const o=this._$AH,r=t===J&&o!==J||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==J&&(o===J||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const lt=E.litHtmlPolyfillSupport;null==lt||lt(Q,et),(null!==(C=E.litHtmlVersions)&&void 0!==C?C:E.litHtmlVersions=[]).push("2.7.3");
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
@@ -84,113 +84,113 @@ var ht,ct;let pt=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
84
84
|
display: inline-block;
|
|
85
85
|
width: 0;
|
|
86
86
|
}
|
|
87
|
-
`;const Ct=Symbol("internalReduxEventsUnsubscribers"),Et=Symbol("internalStoresUnsubscribers"),Rt=Symbol("internalStores");class Mt extends wt{constructor(){super(...arguments),this[St]=new Map,this[$t]=new Map,this[Nt]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Rt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Rt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ot(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Rt].delete(e)}setupStore(t,e){this[Rt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Rt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Et].has(t.store):this[Et].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Et].set(t,e.subscribe((()=>this.updateFromStores()))),Ot(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Ct].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Et].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ct].forEach((t=>t())),this[Ct]=[]}unsubscribeFromStore(t){this[Et].has(t)&&this[Et].get(t)(),this[Et].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}St=Et,$t=Rt,Nt=Ct,window.ftReduxStores||(window.ftReduxStores={});var Ut,kt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(kt=null===(Ut=window.safari)||void 0===Ut?void 0:Ut.pushNotification)||void 0===kt||kt.toString());var
|
|
87
|
+
`;const Ct=Symbol("internalReduxEventsUnsubscribers"),Et=Symbol("internalStoresUnsubscribers"),Rt=Symbol("internalStores");class Mt extends wt{constructor(){super(...arguments),this[St]=new Map,this[$t]=new Map,this[Nt]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Rt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Rt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ot(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Rt].delete(e)}setupStore(t,e){this[Rt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Rt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Et].has(t.store):this[Et].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Et].set(t,e.subscribe((()=>this.updateFromStores()))),Ot(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Ct].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Et].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ct].forEach((t=>t())),this[Ct]=[]}unsubscribeFromStore(t){this[Et].has(t)&&this[Et].get(t)(),this[Et].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}St=Et,$t=Rt,Nt=Ct,window.ftReduxStores||(window.ftReduxStores={});var Ut,kt,Ft;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(kt=null===(Ut=window.safari)||void 0===Ut?void 0:Ut.pushNotification)||void 0===kt||kt.toString()),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(Ft||(Ft={}));var At=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class jt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Lt=Symbol("registerInterval");class Pt extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Lt]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Lt]):this.dispatchEvent(new jt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Lt,At([r()],i.prototype,"stateManager",void 0),i}(Mt)){}
|
|
88
88
|
/**
|
|
89
89
|
* @license
|
|
90
90
|
* Copyright 2020 Google LLC
|
|
91
91
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
92
|
-
*/const
|
|
92
|
+
*/const zt=Symbol.for(""),Tt=t=>{if((null==t?void 0:t.r)===zt)return null==t?void 0:t._$litStatic$},Bt=t=>({_$litStatic$:t,r:zt}),Wt=new Map,_t=(t=>(e,...i)=>{const o=i.length;let r,n;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(n=i[h],r=Tt(n));)l+=r+e[++h],c=!0;h!==o&&a.push(n),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=Wt.get(t))&&(s.raw=s,Wt.set(t,e=s)),i=a}return t(e,...i)})(Z);var Dt;!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"}(Dt||(Dt={}));const Kt=ft.extend("--ft-typography-font-family",dt.titleFont),Ht=ft.extend("--ft-typography-font-family",dt.contentFont),It={fontFamily:Ht,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Zt={fontFamily:ft.extend("--ft-typography-title-font-family",Kt),fontSize:ft.extend("--ft-typography-title-font-size",It.fontSize,"20px"),fontWeight:ft.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),lineHeight:ft.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),textTransform:ft.extend("--ft-typography-title-text-transform",It.textTransform,"inherit")},Vt=ft.extend("--ft-typography-title-dense-font-family",Kt),Jt=ft.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),qt=ft.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Xt=ft.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Gt=ft.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),Qt=ft.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),Yt=ft.extend("--ft-typography-subtitle1-font-family",Ht),te=ft.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),ee=ft.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),ie=ft.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),oe=ft.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),re=ft.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),ne=ft.extend("--ft-typography-subtitle2-font-family",Ht),se=ft.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),ae=ft.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),le=ft.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),he=ft.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),ce=ft.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),pe=ft.extend("--ft-typography-body1-font-family",Ht),ue=ft.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),fe=ft.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),de=ft.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),ye=ft.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),ge=ft.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit"),ve=ft.extend("--ft-typography-body2-font-family",Ht),be=ft.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),me=ft.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),xe=ft.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),we=ft.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),Oe=ft.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit"),Se=ft.extend("--ft-typography-caption-font-family",Ht),$e=ft.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),Ne=ft.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),Ce=ft.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),Ee=ft.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),Re=ft.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit"),Me=ft.extend("--ft-typography-breadcrumb-font-family",Ht),Ue=ft.extend("--ft-typography-breadcrumb-font-size",It.fontSize,"10px"),ke=ft.extend("--ft-typography-breadcrumb-font-weight",It.fontWeight,"normal"),Fe=ft.extend("--ft-typography-breadcrumb-letter-spacing",It.letterSpacing,"0.33px"),Ae=ft.extend("--ft-typography-breadcrumb-line-height",It.lineHeight,"1.6"),je=ft.extend("--ft-typography-breadcrumb-text-transform",It.textTransform,"inherit"),Le=ft.extend("--ft-typography-overline-font-family",Ht),Pe=ft.extend("--ft-typography-overline-font-size",It.fontSize,"10px"),ze=ft.extend("--ft-typography-overline-font-weight",It.fontWeight,"normal"),Te=ft.extend("--ft-typography-overline-letter-spacing",It.letterSpacing,"1.5px"),Be=ft.extend("--ft-typography-overline-line-height",It.lineHeight,"1.6"),We=ft.extend("--ft-typography-overline-text-transform",It.textTransform,"uppercase"),_e=ft.extend("--ft-typography-button-font-family",Ht),De=ft.extend("--ft-typography-button-font-size",It.fontSize,"14px"),Ke=ft.extend("--ft-typography-button-font-weight",It.fontWeight,"600"),He=ft.extend("--ft-typography-button-letter-spacing",It.letterSpacing,"1.246px"),Ie=ft.extend("--ft-typography-button-line-height",It.lineHeight,"1.15"),Ze=ft.extend("--ft-typography-button-text-transform",It.textTransform,"uppercase"),Ve=d`
|
|
93
93
|
.ft-typography--title {
|
|
94
|
-
font-family: ${
|
|
95
|
-
font-size: ${
|
|
96
|
-
font-weight: ${
|
|
97
|
-
letter-spacing: ${
|
|
98
|
-
line-height: ${
|
|
99
|
-
text-transform: ${
|
|
94
|
+
font-family: ${Zt.fontFamily};
|
|
95
|
+
font-size: ${Zt.fontSize};
|
|
96
|
+
font-weight: ${Zt.fontWeight};
|
|
97
|
+
letter-spacing: ${Zt.letterSpacing};
|
|
98
|
+
line-height: ${Zt.lineHeight};
|
|
99
|
+
text-transform: ${Zt.textTransform};
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`,Je=d`
|
|
102
102
|
.ft-typography--title-dense {
|
|
103
|
-
font-family: ${
|
|
104
|
-
font-size: ${
|
|
105
|
-
font-weight: ${
|
|
106
|
-
letter-spacing: ${
|
|
107
|
-
line-height: ${
|
|
108
|
-
text-transform: ${
|
|
103
|
+
font-family: ${Vt};
|
|
104
|
+
font-size: ${Jt};
|
|
105
|
+
font-weight: ${qt};
|
|
106
|
+
letter-spacing: ${Xt};
|
|
107
|
+
line-height: ${Gt};
|
|
108
|
+
text-transform: ${Qt};
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`,qe=d`
|
|
111
111
|
.ft-typography--subtitle1 {
|
|
112
|
-
font-family: ${
|
|
113
|
-
font-size: ${
|
|
114
|
-
font-weight: ${
|
|
115
|
-
letter-spacing: ${
|
|
116
|
-
line-height: ${
|
|
117
|
-
text-transform: ${
|
|
112
|
+
font-family: ${Yt};
|
|
113
|
+
font-size: ${te};
|
|
114
|
+
font-weight: ${ee};
|
|
115
|
+
letter-spacing: ${ie};
|
|
116
|
+
line-height: ${oe};
|
|
117
|
+
text-transform: ${re};
|
|
118
118
|
}
|
|
119
|
-
`,
|
|
119
|
+
`,Xe=d`
|
|
120
120
|
.ft-typography--subtitle2 {
|
|
121
|
-
font-family: ${
|
|
122
|
-
font-size: ${
|
|
123
|
-
font-weight: ${
|
|
124
|
-
letter-spacing: ${
|
|
125
|
-
line-height: ${
|
|
126
|
-
text-transform: ${
|
|
121
|
+
font-family: ${ne};
|
|
122
|
+
font-size: ${se};
|
|
123
|
+
font-weight: ${ae};
|
|
124
|
+
letter-spacing: ${le};
|
|
125
|
+
line-height: ${he};
|
|
126
|
+
text-transform: ${ce};
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
`,
|
|
129
|
+
`,Ge=d`
|
|
130
130
|
.ft-typography--body1 {
|
|
131
|
-
font-family: ${
|
|
132
|
-
font-size: ${
|
|
133
|
-
font-weight: ${
|
|
134
|
-
letter-spacing: ${
|
|
135
|
-
line-height: ${
|
|
136
|
-
text-transform: ${
|
|
131
|
+
font-family: ${pe};
|
|
132
|
+
font-size: ${ue};
|
|
133
|
+
font-weight: ${fe};
|
|
134
|
+
letter-spacing: ${de};
|
|
135
|
+
line-height: ${ye};
|
|
136
|
+
text-transform: ${ge};
|
|
137
137
|
}
|
|
138
|
-
`,
|
|
138
|
+
`,Qe=d`
|
|
139
139
|
.ft-typography--body2 {
|
|
140
|
-
font-family: ${
|
|
141
|
-
font-size: ${
|
|
142
|
-
font-weight: ${
|
|
143
|
-
letter-spacing: ${
|
|
144
|
-
line-height: ${
|
|
145
|
-
text-transform: ${
|
|
140
|
+
font-family: ${ve};
|
|
141
|
+
font-size: ${be};
|
|
142
|
+
font-weight: ${me};
|
|
143
|
+
letter-spacing: ${xe};
|
|
144
|
+
line-height: ${we};
|
|
145
|
+
text-transform: ${Oe};
|
|
146
146
|
}
|
|
147
|
-
`,
|
|
147
|
+
`,Ye=d`
|
|
148
148
|
.ft-typography--caption {
|
|
149
|
-
font-family: ${
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
152
|
-
letter-spacing: ${
|
|
153
|
-
line-height: ${
|
|
154
|
-
text-transform: ${
|
|
149
|
+
font-family: ${Se};
|
|
150
|
+
font-size: ${$e};
|
|
151
|
+
font-weight: ${Ne};
|
|
152
|
+
letter-spacing: ${Ce};
|
|
153
|
+
line-height: ${Ee};
|
|
154
|
+
text-transform: ${Re};
|
|
155
155
|
}
|
|
156
|
-
`,
|
|
156
|
+
`,ti=d`
|
|
157
157
|
.ft-typography--breadcrumb {
|
|
158
|
-
font-family: ${
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
161
|
-
letter-spacing: ${
|
|
162
|
-
line-height: ${
|
|
158
|
+
font-family: ${Me};
|
|
159
|
+
font-size: ${Ue};
|
|
160
|
+
font-weight: ${ke};
|
|
161
|
+
letter-spacing: ${Fe};
|
|
162
|
+
line-height: ${Ae};
|
|
163
163
|
text-transform: ${je};
|
|
164
164
|
}
|
|
165
|
-
`,
|
|
165
|
+
`,ei=d`
|
|
166
166
|
.ft-typography--overline {
|
|
167
|
-
font-family: ${
|
|
168
|
-
font-size: ${
|
|
169
|
-
font-weight: ${
|
|
170
|
-
letter-spacing: ${
|
|
171
|
-
line-height: ${
|
|
172
|
-
text-transform: ${
|
|
167
|
+
font-family: ${Le};
|
|
168
|
+
font-size: ${Pe};
|
|
169
|
+
font-weight: ${ze};
|
|
170
|
+
letter-spacing: ${Te};
|
|
171
|
+
line-height: ${Be};
|
|
172
|
+
text-transform: ${We};
|
|
173
173
|
}
|
|
174
|
-
`,
|
|
174
|
+
`,ii=d`
|
|
175
175
|
.ft-typography--button {
|
|
176
|
-
font-family: ${
|
|
177
|
-
font-size: ${
|
|
178
|
-
font-weight: ${
|
|
176
|
+
font-family: ${_e};
|
|
177
|
+
font-size: ${De};
|
|
178
|
+
font-weight: ${Ke};
|
|
179
179
|
letter-spacing: ${He};
|
|
180
|
-
line-height: ${
|
|
181
|
-
text-transform: ${
|
|
180
|
+
line-height: ${Ie};
|
|
181
|
+
text-transform: ${Ze};
|
|
182
182
|
}
|
|
183
|
-
`,
|
|
183
|
+
`,oi=d`
|
|
184
184
|
.ft-typography {
|
|
185
185
|
vertical-align: inherit;
|
|
186
186
|
}
|
|
187
|
-
`;var
|
|
188
|
-
<${
|
|
187
|
+
`;var ri=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class ni extends wt{constructor(){super(...arguments),this.variant=Dt.body1}render(){return this.element?_t`
|
|
188
|
+
<${Bt(this.element)}
|
|
189
189
|
class="ft-typography ft-typography--${this.variant}">
|
|
190
190
|
<slot></slot>
|
|
191
|
-
</${
|
|
192
|
-
`:
|
|
191
|
+
</${Bt(this.element)}>
|
|
192
|
+
`:_t`
|
|
193
193
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
194
|
-
`}}
|
|
194
|
+
`}}ni.styles=[Ve,Je,qe,Xe,Ge,Qe,Ye,ti,ei,ii,oi],ri([o()],ni.prototype,"element",void 0),ri([o()],ni.prototype,"variant",void 0),a("ft-typography")(ni);var si=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class ai extends Pt{render(){return this.mapTitle?Z`
|
|
195
195
|
<ft-typography variant="title" part="text">${this.mapTitle}</ft-typography>
|
|
196
|
-
`:J}}
|
|
196
|
+
`:J}}ai.elementDefinitions={"ft-typography":ni},si([(t=>{const e=null!=t?t:{};return(t,i)=>{var r;const n={hasChanged:(t,e)=>!s(t,e),attribute:!1,...e};o(n)(t,i);const a=t;a.reduxProperties=a.reduxProperties||new Map,a.reduxProperties.set(i,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[i],store:e.store})}})({selector:t=>{var e;return null===(e=t.map)||void 0===e?void 0:e.title}})],ai.prototype,"mapTitle",void 0);const li={fontSize:ft.extend("--ft-reader-metadata-font-size",Zt.fontSize)};a("ft-reader-title")(ai),t.FtReaderTitle=ai,t.FtReaderTitleCssVariables=li}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-title",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"description": "Title for integrated reader",
|
|
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-reader-context": "1.0.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-reader-context": "1.0.59",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.0.59",
|
|
24
24
|
"lit": "2.7.2"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "9412dc7c29ebc722b1b133bba63b1744f4bfdf60"
|
|
27
27
|
}
|