@fluid-topics/ft-reader-navigation-button 0.3.56 → 0.3.58

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.
@@ -15,7 +15,7 @@
15
15
  ft-reader-internal-link {
16
16
  ${i.setVariable(r.outlineColor,"transparent")}
17
17
  }
18
- `,p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),h={color:p,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),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")},f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),d=f,c=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),u=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),x=u,v=i.FtCssVariableFactory.extend("--ft-ripple-background-color",u),g=e.css`
18
+ `,p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),h={color:p,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),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")},f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),d=f,c=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),u=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),v=u,x=i.FtCssVariableFactory.extend("--ft-ripple-background-color",u),g=e.css`
19
19
  :host {
20
20
  display: contents;
21
21
  }
@@ -45,11 +45,11 @@
45
45
  }
46
46
 
47
47
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
48
- background-color: ${v};
48
+ background-color: ${x};
49
49
  }
50
50
 
51
51
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
52
- background-color: ${x};
52
+ background-color: ${v};
53
53
  }
54
54
 
55
55
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
@@ -127,18 +127,18 @@
127
127
  * Copyright 2020 Google LLC
128
128
  * SPDX-License-Identifier: BSD-3-Clause
129
129
  */
130
- const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void 0:t._$litStatic$},ot=t=>({_$litStatic$:t,r:it}),nt=new Map,st=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=et(s));)a+=n+i[++p],h=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=nt.get(t))&&(r.raw=r,nt.set(t,i=r)),e=l}return t(i,...e)})(U);var rt;!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"}(rt||(rt={}));const lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),at=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),pt={fontFamily:at,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")},ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",lt),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",pt.fontSize,"20px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",pt.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",pt.letterSpacing,"0.15px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",pt.lineHeight,"1.2"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",pt.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",lt),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",pt.fontSize,"14px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",pt.fontWeight,"normal"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",pt.letterSpacing,"0.105px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",pt.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",pt.textTransform,"inherit"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",at),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",pt.fontSize,"16px"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",pt.fontWeight,"600"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",pt.letterSpacing,"0.144px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",pt.lineHeight,"1.5"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",pt.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",at),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",pt.fontSize,"14px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",pt.fontWeight,"normal"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",pt.letterSpacing,"0.098px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",pt.lineHeight,"1.7"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",pt.textTransform,"inherit"),Et=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",at),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",pt.fontSize,"16px"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",pt.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",pt.letterSpacing,"0.496px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",pt.lineHeight,"1.5"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",pt.textTransform,"inherit"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",at),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",pt.fontSize,"14px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",pt.fontWeight,"normal"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",pt.letterSpacing,"0.252px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",pt.lineHeight,"1.4"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",pt.textTransform,"inherit"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",at),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",pt.fontSize,"12px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",pt.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",pt.letterSpacing,"0.396px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",pt.lineHeight,"1.33"),Yt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",pt.textTransform,"inherit"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",at),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",pt.fontSize,"10px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",pt.fontWeight,"normal"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",pt.letterSpacing,"0.33px"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",pt.lineHeight,"1.6"),oi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",pt.textTransform,"inherit"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",at),si=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",pt.fontSize,"10px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",pt.fontWeight,"normal"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",pt.letterSpacing,"1.5px"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",pt.lineHeight,"1.6"),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",pt.textTransform,"uppercase"),hi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",at),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",pt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",pt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",pt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",pt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",pt.textTransform,"uppercase")},fi=e.css`
130
+ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void 0:t._$litStatic$},ot=t=>({_$litStatic$:t,r:it}),nt=new Map,st=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=et(s));)a+=n+i[++p],h=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=nt.get(t))&&(r.raw=r,nt.set(t,i=r)),e=l}return t(i,...e)})(U);var rt;!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"}(rt||(rt={}));const lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),at=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),pt={fontFamily:at,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")},ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",lt),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",pt.fontSize,"20px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",pt.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",pt.letterSpacing,"0.15px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",pt.lineHeight,"1.2"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",pt.textTransform,"inherit"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",lt),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",pt.fontSize,"14px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",pt.fontWeight,"normal"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",pt.letterSpacing,"0.105px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",pt.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",pt.textTransform,"inherit"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",at),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",pt.fontSize,"16px"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",pt.fontWeight,"600"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",pt.letterSpacing,"0.144px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",pt.lineHeight,"1.5"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",pt.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",at),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",pt.fontSize,"14px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",pt.fontWeight,"normal"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",pt.letterSpacing,"0.098px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",pt.lineHeight,"1.7"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",pt.textTransform,"inherit"),Et=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",at),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",pt.fontSize,"16px"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",pt.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",pt.letterSpacing,"0.496px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",pt.lineHeight,"1.5"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",pt.textTransform,"inherit"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",at),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",pt.fontSize,"14px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",pt.fontWeight,"normal"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",pt.letterSpacing,"0.252px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",pt.lineHeight,"1.4"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",pt.textTransform,"inherit"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",at),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",pt.fontSize,"12px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",pt.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",pt.letterSpacing,"0.396px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",pt.lineHeight,"1.33"),Yt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",pt.textTransform,"inherit"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",at),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",pt.fontSize,"10px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",pt.fontWeight,"normal"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",pt.letterSpacing,"0.33px"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",pt.lineHeight,"1.6"),oi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",pt.textTransform,"inherit"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",at),si=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",pt.fontSize,"10px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",pt.fontWeight,"normal"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",pt.letterSpacing,"1.5px"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",pt.lineHeight,"1.6"),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",pt.textTransform,"uppercase"),hi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",at),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",pt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",pt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",pt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",pt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",pt.textTransform,"uppercase")},fi=e.css`
131
131
  .ft-typography--title {
132
132
  font-family: ${ht};
133
133
  font-size: ${ft};
134
134
  font-weight: ${dt};
135
135
  letter-spacing: ${ct};
136
136
  line-height: ${ut};
137
- text-transform: ${xt};
137
+ text-transform: ${vt};
138
138
  }
139
139
  `,di=e.css`
140
140
  .ft-typography--title-dense {
141
- font-family: ${vt};
141
+ font-family: ${xt};
142
142
  font-size: ${gt};
143
143
  font-weight: ${yt};
144
144
  letter-spacing: ${bt};
@@ -164,7 +164,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
164
164
  text-transform: ${At};
165
165
  }
166
166
 
167
- `,xi=e.css`
167
+ `,vi=e.css`
168
168
  .ft-typography--body1 {
169
169
  font-family: ${Et};
170
170
  font-size: ${Mt};
@@ -173,7 +173,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
173
173
  line-height: ${Ut};
174
174
  text-transform: ${Rt};
175
175
  }
176
- `,vi=e.css`
176
+ `,xi=e.css`
177
177
  .ft-typography--body2 {
178
178
  font-family: ${Wt};
179
179
  font-size: ${Zt};
@@ -229,7 +229,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
229
229
  </${ot(this.element)}>
230
230
  `:st`
231
231
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
232
- `}}ki.styles=[fi,di,ci,ui,xi,vi,gi,yi,bi,mi,$i],wi([o.property()],ki.prototype,"element",void 0),wi([o.property()],ki.prototype,"variant",void 0),i.customElement("ft-typography")(ki);const zi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Si=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Oi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),ji=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ci=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Ni=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ti=e.css`
232
+ `}}ki.styles=[fi,di,ci,ui,vi,xi,gi,yi,bi,mi,$i],wi([o.property()],ki.prototype,"element",void 0),wi([o.property()],ki.prototype,"variant",void 0),i.customElement("ft-typography")(ki);const zi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Si=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Oi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),ji=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ci=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Ni=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ti=e.css`
233
233
  .ft-tooltip--container {
234
234
  display: block;
235
235
  position: relative;
@@ -402,12 +402,12 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
402
402
  .ft-icon--material {
403
403
  font-family: ${Ui.materialFontFamily}, "Material Icons", sans-serif;
404
404
  }
405
- `;var Wi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Wi||(Wi={}));var Zi=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 Di extends i.FtLitElement{constructor(){super(...arguments),this.variant=Wi.fluid_topics,this.resolvedIcon=e.nothing}render(){const t="material"!==this.variant||this.value;return e.html`
406
- <i class="ft-icon ${"ft-icon--"+this.variant}">
405
+ `;var Wi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Wi||(Wi={}));var Zi=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 Di extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Wi.fluid_topics,o="material"!==i||this.value;return e.html`
406
+ <i class="ft-icon ${"ft-icon--"+i}">
407
407
  ${s.unsafeHTML(this.resolvedIcon)}
408
- <slot ?hidden=${t}></slot>
408
+ <slot ?hidden=${o}></slot>
409
409
  </i>
410
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Wi.file_format:this.resolvedIcon=null!==(t=Fi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Wi.fluid_topics:this.resolvedIcon=null!==(i=_i[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||e.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Di.elementDefinitions={},Di.styles=Ri,Zi([o.property()],Di.prototype,"variant",void 0),Zi([o.property()],Di.prototype,"value",void 0),Zi([o.state()],Di.prototype,"resolvedIcon",void 0),Zi([o.query("slot")],Di.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Di);const Pi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Pi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",hi.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Pi),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ki=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Li={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Ki,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Ki)},Gi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Vi=[i.noTextSelect,e.css`
410
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Wi.file_format:this.resolvedIcon=null!==(t=Fi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Wi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=_i[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Di.elementDefinitions={},Di.styles=Ri,Zi([o.property()],Di.prototype,"variant",void 0),Zi([o.property()],Di.prototype,"value",void 0),Zi([o.state()],Di.prototype,"resolvedIcon",void 0),Zi([o.query("slot")],Di.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Di);const Pi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Pi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",hi.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Pi),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ki=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Li={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Ki,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Ki)},Gi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Vi=[i.noTextSelect,e.css`
411
411
  :host {
412
412
  display: inline-block;
413
413
  max-width: 100%;
@@ -39,12 +39,13 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
39
39
  * @license
40
40
  * Copyright 2021 Google LLC
41
41
  * SPDX-License-Identifier: BSD-3-Clause
42
- */var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function c(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!c(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!c(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var r=n[o];if(!c(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}
42
+ */var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!h(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!h(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var r=n[o];if(!h(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const c=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),u=new WeakMap;class v{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(f&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}}const y=t=>new v("string"==typeof t?t:t+"",void 0,d),b=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new v(i,t,d)},x=(t,e)=>{f?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},g=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return y(e)})(t):t
47
+ */
48
+ const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),u=new WeakMap;class v{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(f&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}}const y=t=>new v("string"==typeof t?t:t+"",void 0,d),b=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new v(i,t,d)},x=(t,e)=>{f?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},g=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return y(e)})(t):t
48
49
  /**
49
50
  * @license
50
51
  * Copyright 2017 Google LLC
@@ -71,7 +72,7 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
71
72
  <style>${t}</style>
72
73
  `))}
73
74
  ${this.getTemplate()}
74
- `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}bt([o()],xt.prototype,"exportpartsPrefix",void 0),bt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0),bt([o()],xt.prototype,"customStylesheet",void 0);const gt=b`
75
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}bt([o()],xt.prototype,"exportpartsPrefix",void 0),bt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0),bt([o()],xt.prototype,"customStylesheet",void 0);const gt=b`
75
76
  .ft-no-text-select {
76
77
  -webkit-touch-callout: none;
77
78
  -webkit-user-select: none;
@@ -103,7 +104,7 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
103
104
  display: inline-block;
104
105
  width: 0;
105
106
  }
106
- `,wt=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged);class $t extends xt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:Ot(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:Ot(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Ot(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var St,kt,Ct;const Nt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ct=null===(kt=null===(St=window.safari)||void 0===St?void 0:St.pushNotification)||void 0===kt?void 0:kt.toString())&&void 0!==Ct?Ct:""),Et={outlineColor:ut.extend("--ft-reader-internal-link-outline-color",yt.colorPrimary)},Rt=b`
107
+ `,wt=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged||null!=t.attribute);class $t extends xt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:Ot(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:Ot(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}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&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Ot(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var St,kt,Ct;const Nt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ct=null===(kt=null===(St=window.safari)||void 0===St?void 0:St.pushNotification)||void 0===kt?void 0:kt.toString())&&void 0!==Ct?Ct:""),Et={outlineColor:ut.extend("--ft-reader-internal-link-outline-color",yt.colorPrimary)},Rt=b`
107
108
  :host {
108
109
  display: contents;
109
110
  }
@@ -236,7 +237,7 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
236
237
  <div class="ft-ripple--background"></div>
237
238
  <div class="ft-ripple--effect"></div>
238
239
  </div>
239
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Zt.elementDefinitions={},Zt.styles=Ht,Kt([o({type:Boolean})],Zt.prototype,"primary",void 0),Kt([o({type:Boolean})],Zt.prototype,"secondary",void 0),Kt([o({type:Boolean})],Zt.prototype,"unbounded",void 0),Kt([o({type:Boolean})],Zt.prototype,"activated",void 0),Kt([o({type:Boolean})],Zt.prototype,"selected",void 0),Kt([o({type:Boolean})],Zt.prototype,"disabled",void 0),Kt([n()],Zt.prototype,"hovered",void 0),Kt([n()],Zt.prototype,"focused",void 0),Kt([n()],Zt.prototype,"pressed",void 0),Kt([n()],Zt.prototype,"rippling",void 0),Kt([n()],Zt.prototype,"rippleSize",void 0),Kt([n()],Zt.prototype,"originX",void 0),Kt([n()],Zt.prototype,"originY",void 0),Kt([s(".ft-ripple")],Zt.prototype,"ripple",void 0),Kt([s(".ft-ripple--effect")],Zt.prototype,"rippleEffect",void 0),h("ft-ripple")(Zt);
240
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Zt.elementDefinitions={},Zt.styles=Ht,Kt([o({type:Boolean})],Zt.prototype,"primary",void 0),Kt([o({type:Boolean})],Zt.prototype,"secondary",void 0),Kt([o({type:Boolean})],Zt.prototype,"unbounded",void 0),Kt([o({type:Boolean})],Zt.prototype,"activated",void 0),Kt([o({type:Boolean})],Zt.prototype,"selected",void 0),Kt([o({type:Boolean})],Zt.prototype,"disabled",void 0),Kt([n()],Zt.prototype,"hovered",void 0),Kt([n()],Zt.prototype,"focused",void 0),Kt([n()],Zt.prototype,"pressed",void 0),Kt([n()],Zt.prototype,"rippling",void 0),Kt([n()],Zt.prototype,"rippleSize",void 0),Kt([n()],Zt.prototype,"originX",void 0),Kt([n()],Zt.prototype,"originY",void 0),Kt([s(".ft-ripple")],Zt.prototype,"ripple",void 0),Kt([s(".ft-ripple--effect")],Zt.prototype,"rippleEffect",void 0),c("ft-ripple")(Zt);
240
241
  /**
241
242
  * @license
242
243
  * Copyright 2020 Google LLC
@@ -344,7 +345,7 @@ const Vt=Symbol.for(""),Jt=t=>{if((null==t?void 0:t.r)===Vt)return null==t?void
344
345
  </${qt(this.element)}>
345
346
  `:Yt`
346
347
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
347
- `}}vi.styles=[oi,ni,ri,si,ai,li,hi,ci,pi,fi,di],ui([o()],vi.prototype,"element",void 0),ui([o()],vi.prototype,"variant",void 0),h("ft-typography")(vi);const yi=ut.create("--ft-tooltip-distance","SIZE","4px"),bi=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),xi=ut.create("--ft-tooltip-background-color","COLOR","#666666"),gi=ut.create("--ft-tooltip-z-index","NUMBER","1"),mi=ut.external(yt.borderRadiusS,"Design system"),wi=ut.create("--ft-tooltip-max-width","SIZE","150px"),$i=b`
348
+ `}}vi.styles=[oi,ni,ri,si,ai,li,hi,ci,pi,fi,di],ui([o()],vi.prototype,"element",void 0),ui([o()],vi.prototype,"variant",void 0),c("ft-typography")(vi);const yi=ut.create("--ft-tooltip-distance","SIZE","4px"),bi=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),xi=ut.create("--ft-tooltip-background-color","COLOR","#666666"),gi=ut.create("--ft-tooltip-z-index","NUMBER","1"),mi=ut.external(yt.borderRadiusS,"Design system"),wi=ut.create("--ft-tooltip-max-width","SIZE","150px"),$i=b`
348
349
  .ft-tooltip--container {
349
350
  display: block;
350
351
  position: relative;
@@ -400,7 +401,7 @@ const Vt=Symbol.for(""),Jt=t=>{if((null==t?void 0:t.r)===Vt)return null==t?void
400
401
  * Copyright 2017 Google LLC
401
402
  * SPDX-License-Identifier: BSD-3-Clause
402
403
  */
403
- function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Si.prototype,"slotNodes",void 0),Oi([s(".ft-tooltip--container")],Si.prototype,"container",void 0),Oi([s("slot")],Si.prototype,"target",void 0),Oi([s(".ft-tooltip")],Si.prototype,"tooltip",void 0),Oi([s(".ft-tooltip--content")],Si.prototype,"tooltipContent",void 0),Oi([n()],Si.prototype,"visible",void 0),h("ft-tooltip")(Si);const ki={color:ut.extend("--ft-loader-color",yt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},Ci=b`
404
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Si.prototype,"slotNodes",void 0),Oi([s(".ft-tooltip--container")],Si.prototype,"container",void 0),Oi([s("slot")],Si.prototype,"target",void 0),Oi([s(".ft-tooltip")],Si.prototype,"tooltip",void 0),Oi([s(".ft-tooltip--content")],Si.prototype,"tooltipContent",void 0),Oi([n()],Si.prototype,"visible",void 0),c("ft-tooltip")(Si);const ki={color:ut.extend("--ft-loader-color",yt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},Ci=b`
404
405
  :host {
405
406
  line-height: 0;
406
407
  }
@@ -476,7 +477,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
476
477
  <div></div>
477
478
  <div></div>
478
479
  </div>
479
- `}}Ni.styles=Ci,h("ft-loader")(Ni);
480
+ `}}Ni.styles=Ci,c("ft-loader")(Ni);
480
481
  /**
481
482
  * @license
482
483
  * Copyright 2017 Google LLC
@@ -529,12 +530,12 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
529
530
  .ft-icon--material {
530
531
  font-family: ${Fi.materialFontFamily}, "Material Icons", sans-serif;
531
532
  }
532
- `;var zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(zi||(zi={}));var Bi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ti extends xt{constructor(){super(...arguments),this.variant=zi.fluid_topics,this.resolvedIcon=q}render(){const t="material"!==this.variant||this.value;return V`
533
- <i class="ft-icon ${"ft-icon--"+this.variant}">
533
+ `;var zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(zi||(zi={}));var Bi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ti extends xt{constructor(){super(...arguments),this.resolvedIcon=q}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:zi.fluid_topics,i="material"!==e||this.value;return V`
534
+ <i class="ft-icon ${"ft-icon--"+e}">
534
535
  ${Ri(this.resolvedIcon)}
535
- <slot ?hidden=${t}></slot>
536
+ <slot ?hidden=${i}></slot>
536
537
  </i>
537
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case zi.file_format:this.resolvedIcon=null!==(t=ji[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case zi.fluid_topics:this.resolvedIcon=null!==(e=Mi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ti.elementDefinitions={},Ti.styles=Ui,Bi([o()],Ti.prototype,"variant",void 0),Bi([o()],Ti.prototype,"value",void 0),Bi([n()],Ti.prototype,"resolvedIcon",void 0),Bi([s("slot")],Ti.prototype,"slottedContent",void 0),h("ft-icon")(Ti);const Ai=ut.extend("--ft-button-color",yt.colorPrimary),Li={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Ai,fontSize:ut.extend("--ft-button-font-size",ii.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Ai),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},Pi=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),_i={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:Pi,rippleColor:ut.extend("--ft-button-primary-ripple-color",Pi)},Di=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM)),Ii=[gt,b`
538
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case zi.file_format:this.resolvedIcon=null!==(t=ji[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case zi.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(e=Mi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ti.elementDefinitions={},Ti.styles=Ui,Bi([o()],Ti.prototype,"variant",void 0),Bi([o()],Ti.prototype,"value",void 0),Bi([n()],Ti.prototype,"resolvedIcon",void 0),Bi([s("slot")],Ti.prototype,"slottedContent",void 0),c("ft-icon")(Ti);const Ai=ut.extend("--ft-button-color",yt.colorPrimary),Li={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Ai,fontSize:ut.extend("--ft-button-font-size",ii.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Ai),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},Pi=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),_i={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:Pi,rippleColor:ut.extend("--ft-button-primary-ripple-color",Pi)},Di=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM)),Ii=[gt,b`
538
539
  :host {
539
540
  display: inline-block;
540
541
  max-width: 100%;
@@ -680,13 +681,13 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
680
681
  </ft-tooltip>
681
682
  `:t}resolveIcon(){return this.loading?V`
682
683
  <ft-loader></ft-loader> `:this.icon?V`
683
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Hi.elementDefinitions={"ft-ripple":Zt,"ft-tooltip":Si,"ft-typography":vi,"ft-icon":Ti,"ft-loader":Ni},Hi.styles=[mt,Ii],Wi([o({type:Boolean})],Hi.prototype,"primary",void 0),Wi([o({type:Boolean})],Hi.prototype,"outlined",void 0),Wi([o({type:Boolean})],Hi.prototype,"disabled",void 0),Wi([o({type:Boolean})],Hi.prototype,"dense",void 0),Wi([o({type:Boolean})],Hi.prototype,"round",void 0),Wi([o({type:String})],Hi.prototype,"label",void 0),Wi([o({type:String})],Hi.prototype,"icon",void 0),Wi([o({type:String})],Hi.prototype,"iconVariant",void 0),Wi([o({type:Boolean})],Hi.prototype,"trailingIcon",void 0),Wi([o({type:Boolean})],Hi.prototype,"loading",void 0),Wi([o({type:String})],Hi.prototype,"tooltipPosition",void 0),Wi([o({type:Boolean})],Hi.prototype,"hideTooltip",void 0),Wi([o({type:Boolean})],Hi.prototype,"forceTooltip",void 0),Wi([s(".ft-button")],Hi.prototype,"button",void 0),Wi([s(".ft-button--label slot")],Hi.prototype,"slottedContent",void 0),h("ft-button")(Hi);var Ki=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Zi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Vi extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}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.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Zi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Ki([n()],e.prototype,"stateManager",void 0),e}($t)){}var Ji=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class qi extends Vi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Bt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return V`
684
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Hi.elementDefinitions={"ft-ripple":Zt,"ft-tooltip":Si,"ft-typography":vi,"ft-icon":Ti,"ft-loader":Ni},Hi.styles=[mt,Ii],Wi([o({type:Boolean})],Hi.prototype,"primary",void 0),Wi([o({type:Boolean})],Hi.prototype,"outlined",void 0),Wi([o({type:Boolean})],Hi.prototype,"disabled",void 0),Wi([o({type:Boolean})],Hi.prototype,"dense",void 0),Wi([o({type:Boolean})],Hi.prototype,"round",void 0),Wi([o({type:String})],Hi.prototype,"label",void 0),Wi([o({type:String})],Hi.prototype,"icon",void 0),Wi([o({type:String})],Hi.prototype,"iconVariant",void 0),Wi([o({type:Boolean})],Hi.prototype,"trailingIcon",void 0),Wi([o({type:Boolean})],Hi.prototype,"loading",void 0),Wi([o({type:String})],Hi.prototype,"tooltipPosition",void 0),Wi([o({type:Boolean})],Hi.prototype,"hideTooltip",void 0),Wi([o({type:Boolean})],Hi.prototype,"forceTooltip",void 0),Wi([s(".ft-button")],Hi.prototype,"button",void 0),Wi([s(".ft-button--label slot")],Hi.prototype,"slottedContent",void 0),c("ft-button")(Hi);var Ki=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Zi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Vi extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}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.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Zi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Ki([n()],e.prototype,"stateManager",void 0),e}($t)){}var Ji=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class qi extends Vi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Bt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return V`
684
685
  <a class=${e}
685
686
  href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
686
687
  @click=${t=>this.onLinkClick(t)}>
687
688
  <slot></slot>
688
689
  </a>
689
- `}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}qi.styles=Rt,Ji([o()],qi.prototype,"tocId",void 0),Ji([o()],qi.prototype,"section",void 0),Ji([o({type:Number})],qi.prototype,"pageNumber",void 0),Ji([o({type:Boolean})],qi.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(qi);var Xi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Yi extends Vi{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=zi.fluid_topics,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new e(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Mi.THIN_ARROW_RIGHT:Mi.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return q;const r=V`
690
+ `}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}qi.styles=Rt,Ji([o()],qi.prototype,"tocId",void 0),Ji([o()],qi.prototype,"section",void 0),Ji([o({type:Number})],qi.prototype,"pageNumber",void 0),Ji([o({type:Boolean})],qi.prototype,"removeStyle",void 0),c("ft-reader-internal-link")(qi);var Xi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Yi extends Vi{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=zi.fluid_topics,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new e(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Mi.THIN_ARROW_RIGHT:Mi.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return q;const r=V`
690
691
  <ft-button ?forceTooltip=${!this.hideTooltip}
691
692
  ?hideTooltip=${this.hideTooltip}
692
693
  ?trailingIcon=${this.trailingIcon}
@@ -700,4 +701,4 @@ class Ei extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ft)throw Error
700
701
  <ft-reader-internal-link .tocId=${null===(n=this.targetPage)||void 0===n?void 0:n.rootTocId} removestyle>
701
702
  ${r}
702
703
  </ft-reader-internal-link>
703
- `}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}Yi.elementDefinitions={"ft-button":Hi,"ft-reader-internal-link":qi},Yi.styles=Mt,Xi([o()],Yi.prototype,"target",void 0),Xi([o()],Yi.prototype,"content",void 0),Xi([o()],Yi.prototype,"tooltipPosition",void 0),Xi([o({type:Boolean})],Yi.prototype,"hideTooltip",void 0),Xi([o()],Yi.prototype,"iconVariant",void 0),Xi([o()],Yi.prototype,"icon",void 0),Xi([o({type:Boolean})],Yi.prototype,"trailingIcon",void 0),Xi([o({type:Boolean,attribute:!1})],Yi.prototype,"editorMode",void 0),Xi([((t,e)=>{var i;const o=wt(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!c(t,e),(i,n)=>{var r;i.constructor.createProperty(n,{attribute:!1,hasChanged:e});const s=i;s.reduxProperties=s.reduxProperties||new Map;const a=null!==(r=wt(t)?o.selector:t)&&void 0!==r?r:t=>t[n];s.reduxProperties.set(n,{selector:a,store:o.store})}})()],Yi.prototype,"currentPage",void 0),Xi([n()],Yi.prototype,"targetPage",void 0),h("ft-reader-navigation-button")(Yi),t.FtReaderNavigationButton=Yi,t.FtReaderNavigationButtonCssVariables={},t.styles=Mt,Object.defineProperty(t,"i",{value:!0})}({});
704
+ `}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}Yi.elementDefinitions={"ft-button":Hi,"ft-reader-internal-link":qi},Yi.styles=Mt,Xi([o()],Yi.prototype,"target",void 0),Xi([o()],Yi.prototype,"content",void 0),Xi([o()],Yi.prototype,"tooltipPosition",void 0),Xi([o({type:Boolean})],Yi.prototype,"hideTooltip",void 0),Xi([o()],Yi.prototype,"iconVariant",void 0),Xi([o()],Yi.prototype,"icon",void 0),Xi([o({type:Boolean})],Yi.prototype,"trailingIcon",void 0),Xi([o({type:Boolean,attribute:!1})],Yi.prototype,"editorMode",void 0),Xi([((t,e)=>{var i;const o=wt(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!h(t,e),(i,n)=>{var r,s;i.constructor.createProperty(n,{hasChanged:e,attribute:null!==(r=o.attribute)&&void 0!==r&&r});const a=i;a.reduxProperties=a.reduxProperties||new Map;const l=null!==(s=wt(t)?o.selector:t)&&void 0!==s?s:t=>t[n];a.reduxProperties.set(n,{selector:l,store:o.store})}})()],Yi.prototype,"currentPage",void 0),Xi([n()],Yi.prototype,"targetPage",void 0),c("ft-reader-navigation-button")(Yi),t.FtReaderNavigationButton=Yi,t.FtReaderNavigationButtonCssVariables={},t.styles=Mt,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-navigation-button",
3
- "version": "0.3.56",
3
+ "version": "0.3.58",
4
4
  "description": "Button used to navigate between pages in an integrated reader context.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "0.3.56",
23
- "@fluid-topics/ft-reader-context": "0.3.56",
24
- "@fluid-topics/ft-reader-internal-link": "0.3.56",
25
- "@fluid-topics/ft-tooltip": "0.3.56",
26
- "@fluid-topics/ft-wc-utils": "0.3.56",
22
+ "@fluid-topics/ft-button": "0.3.58",
23
+ "@fluid-topics/ft-reader-context": "0.3.58",
24
+ "@fluid-topics/ft-reader-internal-link": "0.3.58",
25
+ "@fluid-topics/ft-tooltip": "0.3.58",
26
+ "@fluid-topics/ft-wc-utils": "0.3.58",
27
27
  "lit": "2.2.8"
28
28
  },
29
- "gitHead": "e86edee2b2660d806320bacca5c5156bb94ca2d6"
29
+ "gitHead": "c053ee1216238ba6b2c62e5add329343f735c77e"
30
30
  }