@fluid-topics/ft-reader-feedback 0.3.71 → 1.0.0-alpha.0

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.
@@ -1,4 +1,4 @@
1
- !function(t,e,i,o,s,n,r){var a=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class h extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=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.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return a([o.state()],e.prototype,"stateManager",void 0),e}(e.FtLitElementRedux)){}const d=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),p={color:d,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",d),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},c=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),f=c,u=e.FtCssVariableFactory.extend("--ft-ripple-background-color",c),b=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),v=b,g=e.FtCssVariableFactory.extend("--ft-ripple-background-color",b),x=i.css`
1
+ !function(t,e,i,o,s,n,r){var a=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const h=Symbol("registerInterval");class d 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[h]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[h]):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=h,a([o.state()],i.prototype,"stateManager",void 0),i}(e.FtLitElementRedux)){}const p=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),c={color:p,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",p),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},f=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),u=f,b=e.FtCssVariableFactory.extend("--ft-ripple-background-color",f),v=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),g=v,x=e.FtCssVariableFactory.extend("--ft-ripple-background-color",v),y=i.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -20,27 +20,27 @@
20
20
  }
21
21
 
22
22
  .ft-ripple .ft-ripple--background {
23
- background-color: ${p.backgroundColor};
23
+ background-color: ${c.backgroundColor};
24
24
  }
25
25
 
26
26
  .ft-ripple .ft-ripple--effect {
27
- background-color: ${p.color};
27
+ background-color: ${c.color};
28
28
  }
29
29
 
30
30
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
31
- background-color: ${g};
31
+ background-color: ${x};
32
32
  }
33
33
 
34
34
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
35
- background-color: ${v};
35
+ background-color: ${g};
36
36
  }
37
37
 
38
38
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
39
- background-color: ${u};
39
+ background-color: ${b};
40
40
  }
41
41
 
42
42
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
43
- background-color: ${f};
43
+ background-color: ${u};
44
44
  }
45
45
 
46
46
  .ft-ripple .ft-ripple--background {
@@ -72,32 +72,23 @@
72
72
  }
73
73
 
74
74
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
75
- opacity: ${p.opacityContentOnSurfaceHover};
75
+ opacity: ${c.opacityContentOnSurfaceHover};
76
76
  }
77
77
 
78
78
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
79
- opacity: ${p.opacityContentOnSurfaceSelected};
79
+ opacity: ${c.opacityContentOnSurfaceSelected};
80
80
  }
81
81
 
82
82
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
83
- opacity: ${p.opacityContentOnSurfaceFocused};
83
+ opacity: ${c.opacityContentOnSurfaceFocused};
84
84
  }
85
85
 
86
86
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
87
- opacity: ${p.opacityContentOnSurfacePressed};
87
+ opacity: ${c.opacityContentOnSurfacePressed};
88
88
  transform: translate(-50%, -50%) scale(1);
89
89
  }
90
- `,y=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),m=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),$={fontFamily:m,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},w={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family",y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size",$.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",$.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height",$.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",$.textTransform,"inherit")},k={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",$.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",$.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",$.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",$.textTransform,"inherit")},_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",m),S=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",$.fontSize,"16px"),I=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",$.fontWeight,"600"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",$.letterSpacing,"0.144px"),C=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",$.lineHeight,"1.5"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",$.textTransform,"inherit"),O=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",m),R=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",$.fontSize,"14px"),N=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",$.fontWeight,"normal"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",$.letterSpacing,"0.098px"),E=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",$.lineHeight,"1.7"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",$.textTransform,"inherit"),B={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",$.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",$.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",$.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",$.textTransform,"inherit")},j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",m),M=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",$.fontSize,"14px"),U=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",$.fontWeight,"normal"),F=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",$.letterSpacing,"0.252px"),L=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",$.lineHeight,"1.4"),P=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",$.textTransform,"inherit"),H={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",$.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",$.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",$.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",$.textTransform,"inherit")},Z=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",m),W=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",$.fontSize,"10px"),V=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",$.fontWeight,"normal"),G=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",$.letterSpacing,"0.33px"),K=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",$.lineHeight,"1.6"),Y=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",$.textTransform,"inherit"),q=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",m),X=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",$.fontSize,"10px"),J=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",$.fontWeight,"normal"),Q=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",$.letterSpacing,"1.5px"),tt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",$.lineHeight,"1.6"),et=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",$.textTransform,"uppercase"),it={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",$.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",$.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",$.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",$.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",$.textTransform,"uppercase")},ot=i.css`
90
+ `,m=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),$=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),w={fontFamily:$,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},k={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size",w.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",w.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height",w.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",w.textTransform,"inherit")},_={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",w.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",w.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",w.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",w.textTransform,"inherit")},S=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",$),I=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",w.fontSize,"16px"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",w.fontWeight,"600"),C=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",w.letterSpacing,"0.144px"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",w.lineHeight,"1.5"),O=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",w.textTransform,"inherit"),R=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",$),N=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",w.fontSize,"14px"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",w.fontWeight,"normal"),E=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",w.letterSpacing,"0.098px"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",w.lineHeight,"1.7"),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",w.textTransform,"inherit"),j={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",$),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",w.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",w.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",w.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",w.textTransform,"inherit")},M=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",$),U=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",w.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",w.fontWeight,"normal"),L=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",w.letterSpacing,"0.252px"),P=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",w.lineHeight,"1.4"),H=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",w.textTransform,"inherit"),Z={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",$),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",w.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",w.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",w.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",w.textTransform,"inherit")},W=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",$),V=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",w.fontSize,"10px"),G=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",w.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",w.letterSpacing,"0.33px"),Y=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",w.lineHeight,"1.6"),q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",w.textTransform,"inherit"),X=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",$),J=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",w.fontSize,"10px"),Q=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",w.fontWeight,"normal"),tt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",w.letterSpacing,"1.5px"),et=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",w.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",w.textTransform,"uppercase"),ot={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",$),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",w.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",w.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",w.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",w.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",w.textTransform,"uppercase")},st=i.css`
91
91
  .ft-typography--title {
92
- font-family: ${w.fontFamily};
93
- font-size: ${w.fontSize};
94
- font-weight: ${w.fontWeight};
95
- letter-spacing: ${w.letterSpacing};
96
- line-height: ${w.lineHeight};
97
- text-transform: ${w.textTransform};
98
- }
99
- `,st=i.css`
100
- .ft-typography--title-dense {
101
92
  font-family: ${k.fontFamily};
102
93
  font-size: ${k.fontSize};
103
94
  font-weight: ${k.fontWeight};
@@ -106,83 +97,92 @@
106
97
  text-transform: ${k.textTransform};
107
98
  }
108
99
  `,nt=i.css`
109
- .ft-typography--subtitle1 {
110
- font-family: ${_};
111
- font-size: ${S};
112
- font-weight: ${I};
113
- letter-spacing: ${z};
114
- line-height: ${C};
115
- text-transform: ${T};
100
+ .ft-typography--title-dense {
101
+ font-family: ${_.fontFamily};
102
+ font-size: ${_.fontSize};
103
+ font-weight: ${_.fontWeight};
104
+ letter-spacing: ${_.letterSpacing};
105
+ line-height: ${_.lineHeight};
106
+ text-transform: ${_.textTransform};
116
107
  }
117
108
  `,rt=i.css`
118
- .ft-typography--subtitle2 {
119
- font-family: ${O};
120
- font-size: ${R};
121
- font-weight: ${N};
122
- letter-spacing: ${D};
123
- line-height: ${E};
124
- text-transform: ${A};
109
+ .ft-typography--subtitle1 {
110
+ font-family: ${S};
111
+ font-size: ${I};
112
+ font-weight: ${z};
113
+ letter-spacing: ${C};
114
+ line-height: ${T};
115
+ text-transform: ${O};
125
116
  }
126
-
127
117
  `,at=i.css`
128
- .ft-typography--body1 {
129
- font-family: ${B.fontFamily};
130
- font-size: ${B.fontSize};
131
- font-weight: ${B.fontWeight};
132
- letter-spacing: ${B.letterSpacing};
133
- line-height: ${B.lineHeight};
134
- text-transform: ${B.textTransform};
118
+ .ft-typography--subtitle2 {
119
+ font-family: ${R};
120
+ font-size: ${N};
121
+ font-weight: ${D};
122
+ letter-spacing: ${E};
123
+ line-height: ${A};
124
+ text-transform: ${B};
135
125
  }
126
+
136
127
  `,lt=i.css`
137
- .ft-typography--body2 {
138
- font-family: ${j};
139
- font-size: ${M};
140
- font-weight: ${U};
141
- letter-spacing: ${F};
142
- line-height: ${L};
143
- text-transform: ${P};
128
+ .ft-typography--body1 {
129
+ font-family: ${j.fontFamily};
130
+ font-size: ${j.fontSize};
131
+ font-weight: ${j.fontWeight};
132
+ letter-spacing: ${j.letterSpacing};
133
+ line-height: ${j.lineHeight};
134
+ text-transform: ${j.textTransform};
144
135
  }
145
136
  `,ht=i.css`
146
- .ft-typography--caption {
147
- font-family: ${H.fontFamily};
148
- font-size: ${H.fontSize};
149
- font-weight: ${H.fontWeight};
150
- letter-spacing: ${H.letterSpacing};
151
- line-height: ${H.lineHeight};
152
- text-transform: ${H.textTransform};
137
+ .ft-typography--body2 {
138
+ font-family: ${M};
139
+ font-size: ${U};
140
+ font-weight: ${F};
141
+ letter-spacing: ${L};
142
+ line-height: ${P};
143
+ text-transform: ${H};
153
144
  }
154
145
  `,dt=i.css`
155
- .ft-typography--breadcrumb {
156
- font-family: ${Z};
157
- font-size: ${W};
158
- font-weight: ${V};
159
- letter-spacing: ${G};
160
- line-height: ${K};
161
- text-transform: ${Y};
146
+ .ft-typography--caption {
147
+ font-family: ${Z.fontFamily};
148
+ font-size: ${Z.fontSize};
149
+ font-weight: ${Z.fontWeight};
150
+ letter-spacing: ${Z.letterSpacing};
151
+ line-height: ${Z.lineHeight};
152
+ text-transform: ${Z.textTransform};
162
153
  }
163
154
  `,pt=i.css`
164
- .ft-typography--overline {
165
- font-family: ${q};
166
- font-size: ${X};
167
- font-weight: ${J};
168
- letter-spacing: ${Q};
169
- line-height: ${tt};
170
- text-transform: ${et};
155
+ .ft-typography--breadcrumb {
156
+ font-family: ${W};
157
+ font-size: ${V};
158
+ font-weight: ${G};
159
+ letter-spacing: ${K};
160
+ line-height: ${Y};
161
+ text-transform: ${q};
171
162
  }
172
163
  `,ct=i.css`
173
- .ft-typography--button {
174
- font-family: ${it.fontFamily};
175
- font-size: ${it.fontSize};
176
- font-weight: ${it.fontWeight};
177
- letter-spacing: ${it.letterSpacing};
178
- line-height: ${it.lineHeight};
179
- text-transform: ${it.textTransform};
164
+ .ft-typography--overline {
165
+ font-family: ${X};
166
+ font-size: ${J};
167
+ font-weight: ${Q};
168
+ letter-spacing: ${tt};
169
+ line-height: ${et};
170
+ text-transform: ${it};
180
171
  }
181
172
  `,ft=i.css`
173
+ .ft-typography--button {
174
+ font-family: ${ot.fontFamily};
175
+ font-size: ${ot.fontSize};
176
+ font-weight: ${ot.fontWeight};
177
+ letter-spacing: ${ot.letterSpacing};
178
+ line-height: ${ot.lineHeight};
179
+ text-transform: ${ot.textTransform};
180
+ }
181
+ `,ut=i.css`
182
182
  .ft-typography {
183
183
  vertical-align: inherit;
184
184
  }
185
- `,ut={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},bt=i.css`
185
+ `,bt={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},vt=i.css`
186
186
  :host {
187
187
  line-height: 0;
188
188
  }
@@ -191,8 +191,8 @@
191
191
  display: inline-block;
192
192
  position: relative;
193
193
 
194
- width: ${ut.size};
195
- height: ${ut.size};
194
+ width: ${bt.size};
195
+ height: ${bt.size};
196
196
  }
197
197
 
198
198
  .ft-loader div {
@@ -201,7 +201,7 @@
201
201
  width: 25%;
202
202
  height: 25%;
203
203
  border-radius: 50%;
204
- background: ${ut.color};
204
+ background: ${bt.color};
205
205
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
206
206
  }
207
207
 
@@ -248,10 +248,10 @@
248
248
  transform: translate(0, 0);
249
249
  }
250
250
  100% {
251
- transform: translate(calc(0.35 * ${ut.size}), 0);
251
+ transform: translate(calc(0.35 * ${bt.size}), 0);
252
252
  }
253
253
  }
254
- `,vt={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},gt=i.css`
254
+ `,gt={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},xt=i.css`
255
255
  :host, i.ft-icon {
256
256
  display: inline-flex;
257
257
  align-items: center;
@@ -260,14 +260,14 @@
260
260
  }
261
261
 
262
262
  :host {
263
- width: ${vt.size};
264
- height: ${vt.size};
263
+ width: ${gt.size};
264
+ height: ${gt.size};
265
265
  }
266
266
 
267
267
  i.ft-icon {
268
268
  width: 100%;
269
269
  height: 100%;
270
- font-size: ${vt.size};
270
+ font-size: ${gt.size};
271
271
  line-height: 1;
272
272
  font-weight: normal;
273
273
  text-transform: none;
@@ -278,27 +278,27 @@
278
278
  text-rendering: auto;
279
279
  -webkit-font-smoothing: antialiased;
280
280
  -moz-osx-font-smoothing: grayscale;
281
- vertical-align: ${vt.verticalAlign};
281
+ vertical-align: ${gt.verticalAlign};
282
282
  }
283
283
 
284
284
  i.ft-icon.ft-icon--fluid-topics {
285
- font-family: ${vt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
285
+ font-family: ${gt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
286
286
 
287
287
  /* Ugly fix because font is broken */
288
- font-size: calc(0.9 * ${vt.size});
288
+ font-size: calc(0.75 * ${gt.size});
289
289
  position: relative;
290
- top: -5%;
290
+ top: -4%;
291
291
  justify-content: center;
292
292
  }
293
293
 
294
294
  .ft-icon--file-format {
295
- font-family: ${vt.fileFormatFontFamily}, ft-mime, sans-serif;
295
+ font-family: ${gt.fileFormatFontFamily}, ft-mime, sans-serif;
296
296
  }
297
297
 
298
298
  .ft-icon--material {
299
- font-family: ${vt.materialFontFamily}, "Material Icons", sans-serif;
299
+ font-family: ${gt.materialFontFamily}, "Material Icons", sans-serif;
300
300
  }
301
- `,xt=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),yt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:xt,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",it.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",xt),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},mt=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),$t={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:mt,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",mt)},wt=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),kt=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),_t=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),St=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),It=[e.noTextSelect,i.css`
301
+ `,yt=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),mt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:yt,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",ot.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",yt),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},$t=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),wt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:$t,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",$t)},kt=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),_t=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),St=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),It=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),zt=[e.noTextSelect,i.css`
302
302
  :host {
303
303
  display: inline-block;
304
304
  max-width: 100%;
@@ -309,7 +309,7 @@
309
309
  box-shadow: 0px 0px 0px transparent;
310
310
  border: 0px solid transparent;
311
311
  text-shadow: 0px 0px 0px transparent;
312
- font-size: ${yt.fontSize};
312
+ font-size: ${mt.fontSize};
313
313
  }
314
314
 
315
315
  button:hover {
@@ -338,32 +338,32 @@
338
338
  border: none;
339
339
  pointer-events: auto;
340
340
 
341
- --ft-button-internal-line-height: calc(${yt.fontSize} + 2px);
342
- --ft-button-internal-color: ${yt.color};
343
- ${e.setVariable(vt.size,yt.iconSize)};
344
- ${e.setVariable(p.color,yt.rippleColor)};
345
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${yt.iconSize});
341
+ --ft-button-internal-line-height: calc(${mt.fontSize} + 2px);
342
+ --ft-button-internal-color: ${mt.color};
343
+ ${e.setVariable(gt.size,mt.iconSize)};
344
+ ${e.setVariable(c.color,mt.rippleColor)};
345
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${mt.iconSize});
346
346
 
347
- border-radius: ${yt.borderRadius};
348
- padding: ${yt.verticalPadding} ${yt.horizontalPadding};
349
- background-color: ${yt.backgroundColor};
347
+ border-radius: ${mt.borderRadius};
348
+ padding: ${mt.verticalPadding} ${mt.horizontalPadding};
349
+ background-color: ${mt.backgroundColor};
350
350
  color: var(--ft-button-internal-color);
351
351
  -webkit-mask-image: radial-gradient(white, black);
352
352
  }
353
353
 
354
354
  .ft-button.ft-button--outlined {
355
355
  border: 1px solid var(--ft-button-internal-color);
356
- padding: calc(${yt.verticalPadding} - 1px) calc(${yt.horizontalPadding} - 1px);
356
+ padding: calc(${mt.verticalPadding} - 1px) calc(${mt.horizontalPadding} - 1px);
357
357
  }
358
358
 
359
359
  .ft-button.ft-button--dense {
360
- padding: ${kt} ${_t};
361
- border-radius: ${wt};
362
- gap: ${St};
360
+ padding: ${_t} ${St};
361
+ border-radius: ${kt};
362
+ gap: ${It};
363
363
  }
364
364
 
365
365
  .ft-button.ft-button--dense.ft-button--outlined {
366
- padding: calc(${kt} - 1px) calc(${_t} - 1px);
366
+ padding: calc(${_t} - 1px) calc(${St} - 1px);
367
367
  }
368
368
 
369
369
  .ft-button:not([disabled]):hover {
@@ -371,22 +371,22 @@
371
371
  }
372
372
 
373
373
  .ft-button--round {
374
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${yt.verticalPadding});
374
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${mt.verticalPadding});
375
375
  }
376
376
 
377
377
  .ft-button--round.ft-button--dense {
378
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${kt});
378
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${_t});
379
379
  }
380
380
 
381
381
  .ft-button[disabled] {
382
382
  filter: grayscale(1);
383
- opacity: ${yt.opacityDisabled};
383
+ opacity: ${mt.opacityDisabled};
384
384
  }
385
385
 
386
386
  .ft-button.ft-button--primary {
387
- background-color: ${$t.backgroundColor};
388
- --ft-button-internal-color: ${$t.color};
389
- ${e.setVariable(p.color,$t.rippleColor)};
387
+ background-color: ${wt.backgroundColor};
388
+ --ft-button-internal-color: ${wt.color};
389
+ ${e.setVariable(c.color,wt.rippleColor)};
390
390
  }
391
391
 
392
392
  .ft-button:focus {
@@ -399,13 +399,13 @@
399
399
  white-space: nowrap;
400
400
  text-overflow: ellipsis;
401
401
  display: block;
402
- margin: 0 ${yt.iconPadding};
403
- ${e.setVariable(it.fontSize,"1em")};
404
- ${e.setVariable(it.lineHeight,"var(--ft-button-internal-content-height)")};
402
+ margin: 0 ${mt.iconPadding};
403
+ ${e.setVariable(ot.fontSize,"1em")};
404
+ ${e.setVariable(ot.lineHeight,"var(--ft-button-internal-content-height)")};
405
405
  }
406
406
 
407
407
  .ft-button--dense .ft-button--label {
408
- margin: 0 ${St};
408
+ margin: 0 ${It};
409
409
  }
410
410
 
411
411
  .ft-button--label[hidden] {
@@ -418,13 +418,13 @@
418
418
  }
419
419
 
420
420
  .ft-button--label[hidden] + ft-icon {
421
- margin: 0 calc(${yt.horizontalPadding} * -1);
422
- padding: 0 ${yt.verticalPadding};
421
+ margin: 0 calc(${mt.horizontalPadding} * -1);
422
+ padding: 0 ${mt.verticalPadding};
423
423
  }
424
424
 
425
425
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
426
- margin: 0 calc(${_t} * -1);
427
- padding: 0 ${kt};
426
+ margin: 0 calc(${St} * -1);
427
+ padding: 0 ${_t};
428
428
  }
429
429
 
430
430
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -433,10 +433,10 @@
433
433
  }
434
434
 
435
435
  ft-loader {
436
- ${e.setVariable(ut.size,yt.iconSize)};
437
- ${e.setVariable(ut.color,"var(--ft-button-internal-color)")};
436
+ ${e.setVariable(bt.size,mt.iconSize)};
437
+ ${e.setVariable(bt.color,"var(--ft-button-internal-color)")};
438
438
  }
439
- `],zt={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size",it.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color",e.designSystemVariables.colorPrimary)},Ct={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(w.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(k.fontSize,"Typography")},Tt=i.css`
439
+ `],Ct={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size",ot.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color",e.designSystemVariables.colorPrimary)},Tt={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(k.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(_.fontSize,"Typography")},Ot=i.css`
440
440
  .ft-reader-feedback {
441
441
  box-sizing: border-box;
442
442
  display: flex;
@@ -482,14 +482,14 @@
482
482
  }
483
483
 
484
484
  .ft-reader-feedback--rating {
485
- ${e.setVariable(yt.color,Ct.emptyRatingColor)};
486
- ${e.setVariable(yt.rippleColor,Ct.filledRatingColor)};
487
- ${e.setVariable(zt.textColor,Ct.emptyRatingColor)};
488
- ${e.setVariable(zt.selectedTextColor,Ct.filledRatingColor)};
485
+ ${e.setVariable(mt.color,Tt.emptyRatingColor)};
486
+ ${e.setVariable(mt.rippleColor,Tt.filledRatingColor)};
487
+ ${e.setVariable(Ct.textColor,Tt.emptyRatingColor)};
488
+ ${e.setVariable(Ct.selectedTextColor,Tt.filledRatingColor)};
489
489
  }
490
490
 
491
491
  .ft-reader-feedback--rating .ft-reader-feedback--active {
492
- ${e.setVariable(yt.color,Ct.filledRatingColor)};
492
+ ${e.setVariable(mt.color,Tt.filledRatingColor)};
493
493
  }
494
494
 
495
495
  .ft-reader-feedback--feedback {
@@ -497,42 +497,42 @@
497
497
  }
498
498
 
499
499
  .ft-reader-feedback--rating-date {
500
- color: ${Ct.ratedDateColor};
500
+ color: ${Tt.ratedDateColor};
501
501
  }
502
502
 
503
503
  .ft-reader-feedback--feedback ft-text-area {
504
- min-width: ${Ct.feedbackInputMinWidth};
504
+ min-width: ${Tt.feedbackInputMinWidth};
505
505
  }
506
506
 
507
507
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
508
508
  align-self: flex-end;
509
- ${e.setVariable(yt.color,Ct.sendFeedbackColor)};
510
- ${e.setVariable(yt.backgroundColor,Ct.sendFeedbackBackgroundColor)};
509
+ ${e.setVariable(mt.color,Tt.sendFeedbackColor)};
510
+ ${e.setVariable(mt.backgroundColor,Tt.sendFeedbackBackgroundColor)};
511
511
  }
512
512
  `
513
513
  /**
514
514
  * @license
515
515
  * Copyright 2017 Google LLC
516
516
  * SPDX-License-Identifier: BSD-3-Clause
517
- */;var Ot;const Rt=window,Nt=Rt.trustedTypes,Dt=Nt?Nt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Et=`lit$${(Math.random()+"").slice(9)}$`,At="?"+Et,Bt=`<${At}>`,jt=document,Mt=(t="")=>jt.createComment(t),Ut=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ft=Array.isArray,Lt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pt=/-->/g,Ht=/>/g,Zt=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Wt=/'/g,Vt=/"/g,Gt=/^(?:script|style|textarea|title)$/i,Kt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Yt=Symbol.for("lit-noChange"),qt=Symbol.for("lit-nothing"),Xt=new WeakMap,Jt=jt.createTreeWalker(jt,129,null,!1),Qt=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=Lt;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(r.lastIndex=d,l=r.exec(i),null!==l);)d=r.lastIndex,r===Lt?"!--"===l[1]?r=Pt:void 0!==l[1]?r=Ht:void 0!==l[2]?(Gt.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Zt):void 0!==l[3]&&(r=Zt):r===Zt?">"===l[0]?(r=null!=s?s:Lt,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Zt:'"'===l[3]?Vt:Wt):r===Vt||r===Wt?r=Zt:r===Pt||r===Ht?r=Lt:(r=Zt,s=void 0);const p=r===Zt&&t[e+1].startsWith("/>")?" ":"";n+=r===Lt?i+Bt:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+Et+p):i+Et+(-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!==Dt?Dt.createHTML(a):a,o]};class te{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,h]=Qt(t,e);if(this.el=te.createElement(l,i),Jt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Jt.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(Et)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(Et),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ne:"?"===e[1]?ae:"@"===e[1]?le:se})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(Gt.test(o.tagName)){const t=o.textContent.split(Et),e=t.length-1;if(e>0){o.textContent=Nt?Nt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Mt()),Jt.nextNode(),a.push({type:2,index:++s});o.append(t[e],Mt())}}}else if(8===o.nodeType)if(o.data===At)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(Et,t+1));)a.push({type:7,index:s}),t+=Et.length-1}s++}}static createElement(t,e){const i=jt.createElement("template");return i.innerHTML=t,i}}function ee(t,e,i=t,o){var s,n,r,a;if(e===Yt)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=Ut(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!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=ee(t,l._$AS(t,e.values),l,o)),e}class ie{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:jt).importNode(i,!0);Jt.currentNode=s;let n=Jt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new oe(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new he(n,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Jt.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class oe{constructor(t,e,i,o){var s;this.type=2,this._$AH=qt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ee(this,t,e),Ut(t)?t===qt||null==t||""===t?(this._$AH!==qt&&this._$AR(),this._$AH=qt):t!==this._$AH&&t!==Yt&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Ft(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==qt&&Ut(this._$AH)?this._$AA.nextSibling.data=t:this.T(jt.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=te.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new ie(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Xt.get(t.strings);return void 0===e&&Xt.set(t.strings,e=new te(t)),e}k(t){Ft(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new oe(this.O(Mt()),this.O(Mt()),this,this.options)):i=e[o],i._$AI(s),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class se{constructor(t,e,i,o,s){this.type=1,this._$AH=qt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=qt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=ee(this,t,e,0),n=!Ut(t)||t!==this._$AH&&t!==Yt,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=ee(this,o[i+r],e,r),a===Yt&&(a=this._$AH[r]),n||(n=!Ut(a)||a!==this._$AH[r]),a===qt?t=qt:t!==qt&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===qt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ne extends se{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===qt?void 0:t}}const re=Nt?Nt.emptyScript:"";class ae extends se{constructor(){super(...arguments),this.type=4}j(t){t&&t!==qt?this.element.setAttribute(this.name,re):this.element.removeAttribute(this.name)}}class le extends se{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ee(this,t,e,0))&&void 0!==i?i:qt)===Yt)return;const o=this._$AH,s=t===qt&&o!==qt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==qt&&(o===qt||s);s&&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 he{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){ee(this,t)}}const de=Rt.litHtmlPolyfillSupport;null==de||de(te,oe),(null!==(Ot=Rt.litHtmlVersions)&&void 0!==Ot?Ot:Rt.litHtmlVersions=[]).push("2.4.0");
517
+ */;var Rt;const Nt=window,Dt=Nt.trustedTypes,Et=Dt?Dt.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",Bt=`lit$${(Math.random()+"").slice(9)}$`,jt="?"+Bt,Mt=`<${jt}>`,Ut=document,Ft=()=>Ut.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Pt=Array.isArray,Ht="[ \t\n\f\r]",Zt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wt=/-->/g,Vt=/>/g,Gt=RegExp(`>|${Ht}(?:([^\\s"'>=/]+)(${Ht}*=${Ht}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Kt=/'/g,Yt=/"/g,qt=/^(?:script|style|textarea|title)$/i,Xt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Jt=Symbol.for("lit-noChange"),Qt=Symbol.for("lit-nothing"),te=new WeakMap,ee=Ut.createTreeWalker(Ut,129,null,!1),ie=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=Zt;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(r.lastIndex=d,l=r.exec(i),null!==l);)d=r.lastIndex,r===Zt?"!--"===l[1]?r=Wt:void 0!==l[1]?r=Vt:void 0!==l[2]?(qt.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Gt):void 0!==l[3]&&(r=Gt):r===Gt?">"===l[0]?(r=null!=s?s:Zt,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Gt:'"'===l[3]?Yt:Kt):r===Yt||r===Kt?r=Gt:r===Wt||r===Vt?r=Zt:(r=Gt,s=void 0);const p=r===Gt&&t[e+1].startsWith("/>")?" ":"";n+=r===Zt?i+Mt:h>=0?(o.push(a),i.slice(0,h)+At+i.slice(h)+Bt+p):i+Bt+(-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!==Et?Et.createHTML(a):a,o]};class oe{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,h]=ie(t,e);if(this.el=oe.createElement(l,i),ee.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=ee.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(At)||e.startsWith(Bt)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+At).split(Bt),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?le:"?"===e[1]?de:"@"===e[1]?pe:ae})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(qt.test(o.tagName)){const t=o.textContent.split(Bt),e=t.length-1;if(e>0){o.textContent=Dt?Dt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Ft()),ee.nextNode(),a.push({type:2,index:++s});o.append(t[e],Ft())}}}else if(8===o.nodeType)if(o.data===jt)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(Bt,t+1));)a.push({type:7,index:s}),t+=Bt.length-1}s++}}static createElement(t,e){const i=Ut.createElement("template");return i.innerHTML=t,i}}function se(t,e,i=t,o){var s,n,r,a;if(e===Jt)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=Lt(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!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=se(t,l._$AS(t,e.values),l,o)),e}class ne{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,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:Ut).importNode(i,!0);ee.currentNode=s;let n=ee.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new re(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new ce(n,this,t)),this._$AV.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=ee.nextNode(),r++)}return s}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 re{constructor(t,e,i,o){var s;this.type=2,this._$AH=Qt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}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=se(this,t,e),Lt(t)?t===Qt||null==t||""===t?(this._$AH!==Qt&&this._$AR(),this._$AH=Qt):t!==this._$AH&&t!==Jt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Pt(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!==Qt&&Lt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ut.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=oe.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new ne(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=te.get(t.strings);return void 0===e&&te.set(t.strings,e=new oe(t)),e}T(t){Pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new re(this.k(Ft()),this.k(Ft()),this,this.options)):i=e[o],i._$AI(s),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 ae{constructor(t,e,i,o,s){this.type=1,this._$AH=Qt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Qt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=se(this,t,e,0),n=!Lt(t)||t!==this._$AH&&t!==Jt,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=se(this,o[i+r],e,r),a===Jt&&(a=this._$AH[r]),n||(n=!Lt(a)||a!==this._$AH[r]),a===Qt?t=Qt:t!==Qt&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===Qt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class le extends ae{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Qt?void 0:t}}const he=Dt?Dt.emptyScript:"";class de extends ae{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Qt?this.element.setAttribute(this.name,he):this.element.removeAttribute(this.name)}}class pe extends ae{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=se(this,t,e,0))&&void 0!==i?i:Qt)===Jt)return;const o=this._$AH,s=t===Qt&&o!==Qt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Qt&&(o===Qt||s);s&&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 ce{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){se(this,t)}}const fe=Nt.litHtmlPolyfillSupport;null==fe||fe(oe,re),(null!==(Rt=Nt.litHtmlVersions)&&void 0!==Rt?Rt:Nt.litHtmlVersions=[]).push("2.7.3");
518
518
  /**
519
519
  * @license
520
520
  * Copyright 2020 Google LLC
521
521
  * SPDX-License-Identifier: BSD-3-Clause
522
522
  */
523
- const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void 0:t._$litStatic$},fe=t=>({_$litStatic$:t,r:pe}),ue=new Map,be=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],a=[];let l,h=0,d=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(n=i[h],s=ce(n));)l+=s+e[++h],d=!0;a.push(n),r.push(l),h++}if(h===o&&r.push(e[o]),d){const t=r.join("$$lit$$");void 0===(e=ue.get(t))&&(r.raw=r,ue.set(t,e=r)),i=a}return t(e,...i)})(Kt);var ve;!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"}(ve||(ve={}));var ge,xe,ye,me=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class $e extends e.FtLitElement{constructor(){super(...arguments),this.variant=ve.body1}render(){return this.element?be`
524
- <${fe(this.element)}
523
+ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void 0:t._$litStatic$},ve=t=>({_$litStatic$:t,r:ue}),ge=new Map,xe=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],a=[];let l,h=0,d=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(n=i[h],s=be(n));)l+=s+e[++h],d=!0;h!==o&&a.push(n),r.push(l),h++}if(h===o&&r.push(e[o]),d){const t=r.join("$$lit$$");void 0===(e=ge.get(t))&&(r.raw=r,ge.set(t,e=r)),i=a}return t(e,...i)})(Xt);var ye;!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"}(ye||(ye={}));var me,$e,we,ke=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class _e extends e.FtLitElement{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?xe`
524
+ <${ve(this.element)}
525
525
  class="ft-typography ft-typography--${this.variant}">
526
526
  <slot></slot>
527
- </${fe(this.element)}>
528
- `:be`
527
+ </${ve(this.element)}>
528
+ `:xe`
529
529
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
530
- `}}$e.styles=[ot,st,nt,rt,at,lt,ht,dt,pt,ct,ft],me([o.property()],$e.prototype,"element",void 0),me([o.property()],$e.prototype,"variant",void 0),e.customElement("ft-typography")($e),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(ge||(ge={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(xe||(xe={})),new Map([...["abw"].map((t=>[t,xe.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,xe.AUDIO])),...["avi"].map((t=>[t,xe.AVI])),...["chm","xhs"].map((t=>[t,xe.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,xe.CODE])),...["csv"].map((t=>[t,xe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xe.DITA])),...["epub"].map((t=>[t,xe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xe.EXCEL])),...["flac"].map((t=>[t,xe.FLAC])),...["gif"].map((t=>[t,xe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xe.GZIP])),...["html","htm","xhtml"].map((t=>[t,xe.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,xe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xe.JPEG])),...["json"].map((t=>[t,xe.JSON])),...["m4a","m4p"].map((t=>[t,xe.M4A])),...["mov","qt"].map((t=>[t,xe.MOV])),...["mp3"].map((t=>[t,xe.MP3])),...["mp4","m4v"].map((t=>[t,xe.MP4])),...["ogg","oga"].map((t=>[t,xe.OGG])),...["pdf","ps"].map((t=>[t,xe.PDF])),...["png"].map((t=>[t,xe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xe.POWERPOINT])),...["rar"].map((t=>[t,xe.RAR])),...["stp"].map((t=>[t,xe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xe.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,xe.VIDEO])),...["wav"].map((t=>[t,xe.WAV])),...["wma"].map((t=>[t,xe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xe.WORD])),...["xml","xsl","rdf"].map((t=>[t,xe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xe.YAML])),...["zip"].map((t=>[t,xe.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ye||(ye={}));var we=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ke extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:ye.fluid_topics,o="material"!==e||this.value;return i.html`
531
- <i class="ft-icon ${"ft-icon--"+e}">
530
+ `}}_e.styles=[st,nt,rt,at,lt,ht,dt,pt,ct,ft,ut],ke([o.property()],_e.prototype,"element",void 0),ke([o.property()],_e.prototype,"variant",void 0),e.customElement("ft-typography")(_e),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(me||(me={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}($e||($e={})),new Map([...["abw"].map((t=>[t,$e.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,$e.AUDIO])),...["avi"].map((t=>[t,$e.AVI])),...["chm","xhs"].map((t=>[t,$e.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,$e.CODE])),...["csv"].map((t=>[t,$e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,$e.DITA])),...["epub"].map((t=>[t,$e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,$e.EXCEL])),...["flac"].map((t=>[t,$e.FLAC])),...["gif"].map((t=>[t,$e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,$e.GZIP])),...["html","htm","xhtml"].map((t=>[t,$e.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,$e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,$e.JPEG])),...["json"].map((t=>[t,$e.JSON])),...["m4a","m4p"].map((t=>[t,$e.M4A])),...["mov","qt"].map((t=>[t,$e.MOV])),...["mp3"].map((t=>[t,$e.MP3])),...["mp4","m4v"].map((t=>[t,$e.MP4])),...["ogg","oga"].map((t=>[t,$e.OGG])),...["pdf","ps"].map((t=>[t,$e.PDF])),...["png"].map((t=>[t,$e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,$e.POWERPOINT])),...["rar"].map((t=>[t,$e.RAR])),...["stp"].map((t=>[t,$e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,$e.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,$e.VIDEO])),...["wav"].map((t=>[t,$e.WAV])),...["wma"].map((t=>[t,$e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,$e.WORD])),...["xml","xsl","rdf"].map((t=>[t,$e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,$e.YAML])),...["zip"].map((t=>[t,$e.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(we||(we={}));var Se=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ie extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(we).includes(this.variant)?this.variant:we.fluid_topics,e=t!==we.material||!!this.value;return i.html`
531
+ <i class="ft-icon ${"ft-icon--"+t}">
532
532
  ${s.unsafeHTML(this.resolvedIcon)}
533
- <slot ?hidden=${o}></slot>
533
+ <slot ?hidden=${e}></slot>
534
534
  </i>
535
- `}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 o=this.value||this.textContent;switch(this.variant){case ye.file_format:this.resolvedIcon=null!==(t=xe[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ye.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=ge[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ke.elementDefinitions={},ke.styles=gt,we([o.property()],ke.prototype,"variant",void 0),we([o.property()],ke.prototype,"value",void 0),we([o.state()],ke.prototype,"resolvedIcon",void 0),we([o.query("slot")],ke.prototype,"slottedContent",void 0),e.customElement("ft-icon")(ke);const _e=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Se=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ie=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),ze=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ce=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Te=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Oe=i.css`
535
+ `}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 o=this.value||this.textContent;switch(this.variant){case we.file_format:this.resolvedIcon=null!==(t=$e[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case we.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=me[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ie.elementDefinitions={},Ie.styles=xt,Se([o.property()],Ie.prototype,"variant",void 0),Se([o.property()],Ie.prototype,"value",void 0),Se([o.state()],Ie.prototype,"resolvedIcon",void 0),Se([o.query("slot")],Ie.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Ie);const ze=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ce=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Te=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Oe=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Re=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Ne=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),De=i.css`
536
536
  .ft-tooltip--container {
537
537
  display: block;
538
538
  position: relative;
@@ -548,23 +548,23 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
548
548
  box-sizing: border-box;
549
549
  overflow: hidden;
550
550
  width: max-content;
551
- max-width: ${Te};
551
+ max-width: ${Ne};
552
552
  text-align: center;
553
- padding: ${_e};
554
- z-index: ${ze};
553
+ padding: ${ze};
554
+ z-index: ${Oe};
555
555
  }
556
556
 
557
557
  .ft-tooltip--content {
558
558
  padding: 4px 8px;
559
- border-radius: ${Ce};
560
- background-color: ${Ie};
561
- color: ${Se};
559
+ border-radius: ${Re};
560
+ background-color: ${Te};
561
+ color: ${Ce};
562
562
  top: -500px;
563
563
  left: -500px;
564
564
  position: relative;
565
565
  word-break: break-word;
566
566
  }
567
- `;var Re=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ne extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return i.html`
567
+ `;var Ee=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ae extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return i.html`
568
568
  <div part="container"
569
569
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
570
570
  @mouseenter=${this.onHover}
@@ -582,7 +582,7 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
582
582
  </div>
583
583
  </div>
584
584
  </div>
585
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=e.height,s=o;break;case"left":n=i,s=-this.tooltip.clientWidth;break;case"right":n=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${e.width}px, ${Te})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ne.elementDefinitions={"ft-typography":$e},Ne.styles=Oe,Re([o.property()],Ne.prototype,"text",void 0),Re([o.property({type:Boolean})],Ne.prototype,"manual",void 0),Re([o.property({type:Boolean})],Ne.prototype,"inline",void 0),Re([o.property({type:Number})],Ne.prototype,"delay",void 0),Re([o.property()],Ne.prototype,"position",void 0),Re([o.queryAssignedNodes("",!0)],Ne.prototype,"slotNodes",void 0),Re([o.query(".ft-tooltip--container")],Ne.prototype,"container",void 0),Re([o.query("slot")],Ne.prototype,"target",void 0),Re([o.query(".ft-tooltip")],Ne.prototype,"tooltip",void 0),Re([o.query(".ft-tooltip--content")],Ne.prototype,"tooltipContent",void 0),Re([o.state()],Ne.prototype,"visible",void 0),e.customElement("ft-tooltip")(Ne);var De=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ee extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
585
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=e.height,s=o;break;case"left":n=i,s=-this.tooltip.clientWidth;break;case"right":n=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${e.width}px, ${Ne})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ae.elementDefinitions={"ft-typography":_e},Ae.styles=De,Ee([o.property()],Ae.prototype,"text",void 0),Ee([o.property({type:Boolean})],Ae.prototype,"manual",void 0),Ee([o.property({type:Boolean})],Ae.prototype,"inline",void 0),Ee([o.property({type:Number})],Ae.prototype,"delay",void 0),Ee([o.property()],Ae.prototype,"position",void 0),Ee([o.queryAssignedNodes("",!0)],Ae.prototype,"slotNodes",void 0),Ee([o.query(".ft-tooltip--container")],Ae.prototype,"container",void 0),Ee([o.query("slot")],Ae.prototype,"target",void 0),Ee([o.query(".ft-tooltip")],Ae.prototype,"tooltip",void 0),Ee([o.query(".ft-tooltip--content")],Ae.prototype,"tooltipContent",void 0),Ee([o.state()],Ae.prototype,"visible",void 0),e.customElement("ft-tooltip")(Ae);var Be=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class je extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
586
586
  <style>
587
587
  .ft-ripple .ft-ripple--effect,
588
588
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -599,7 +599,7 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
599
599
  <div class="ft-ripple--background"></div>
600
600
  <div class="ft-ripple--effect"></div>
601
601
  </div>
602
- `}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"),s=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",s),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",s),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,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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()}}Ee.elementDefinitions={},Ee.styles=x,De([o.property({type:Boolean})],Ee.prototype,"primary",void 0),De([o.property({type:Boolean})],Ee.prototype,"secondary",void 0),De([o.property({type:Boolean})],Ee.prototype,"unbounded",void 0),De([o.property({type:Boolean})],Ee.prototype,"activated",void 0),De([o.property({type:Boolean})],Ee.prototype,"selected",void 0),De([o.property({type:Boolean})],Ee.prototype,"disabled",void 0),De([o.state()],Ee.prototype,"hovered",void 0),De([o.state()],Ee.prototype,"focused",void 0),De([o.state()],Ee.prototype,"pressed",void 0),De([o.state()],Ee.prototype,"rippling",void 0),De([o.state()],Ee.prototype,"rippleSize",void 0),De([o.state()],Ee.prototype,"originX",void 0),De([o.state()],Ee.prototype,"originY",void 0),De([o.query(".ft-ripple")],Ee.prototype,"ripple",void 0),De([o.query(".ft-ripple--effect")],Ee.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Ee);const Ae={borderRadiusLeft:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left",e.designSystemVariables.borderRadiusL),borderRadiusRight:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right",e.designSystemVariables.borderRadiusL),borderWidthLeft:e.FtCssVariableFactory.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:e.FtCssVariableFactory.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:e.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Be=i.css`
602
+ `}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"),s=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",s),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",s),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,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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()}}je.elementDefinitions={},je.styles=y,Be([o.property({type:Boolean})],je.prototype,"primary",void 0),Be([o.property({type:Boolean})],je.prototype,"secondary",void 0),Be([o.property({type:Boolean})],je.prototype,"unbounded",void 0),Be([o.property({type:Boolean})],je.prototype,"activated",void 0),Be([o.property({type:Boolean})],je.prototype,"selected",void 0),Be([o.property({type:Boolean})],je.prototype,"disabled",void 0),Be([o.state()],je.prototype,"hovered",void 0),Be([o.state()],je.prototype,"focused",void 0),Be([o.state()],je.prototype,"pressed",void 0),Be([o.state()],je.prototype,"rippling",void 0),Be([o.state()],je.prototype,"rippleSize",void 0),Be([o.state()],je.prototype,"originX",void 0),Be([o.state()],je.prototype,"originY",void 0),Be([o.query(".ft-ripple")],je.prototype,"ripple",void 0),Be([o.query(".ft-ripple--effect")],je.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(je);const Me={borderRadiusLeft:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left",e.designSystemVariables.borderRadiusL),borderRadiusRight:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right",e.designSystemVariables.borderRadiusL),borderWidthLeft:e.FtCssVariableFactory.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:e.FtCssVariableFactory.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:e.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Ue=i.css`
603
603
  .ft-switch-option {
604
604
  position: relative;
605
605
  display: inline-block;
@@ -613,20 +613,20 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
613
613
  }
614
614
 
615
615
  .ft-switch-option--content {
616
- --ft-switch-option-internal-line-height: calc(${zt.fontSize} + 2px);
617
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${zt.iconSize});
616
+ --ft-switch-option-internal-line-height: calc(${Ct.fontSize} + 2px);
617
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Ct.iconSize});
618
618
 
619
619
  border-style: solid;
620
- border-color: ${zt.borderColor};
621
- border-width: ${Ae.borderWidthVertical} ${Ae.borderWidthRight} ${Ae.borderWidthVertical} ${Ae.borderWidthLeft};
622
- border-radius: ${Ae.borderRadiusLeft} ${Ae.borderRadiusRight} ${Ae.borderRadiusRight} ${Ae.borderRadiusLeft};
620
+ border-color: ${Ct.borderColor};
621
+ border-width: ${Me.borderWidthVertical} ${Me.borderWidthRight} ${Me.borderWidthVertical} ${Me.borderWidthLeft};
622
+ border-radius: ${Me.borderRadiusLeft} ${Me.borderRadiusRight} ${Me.borderRadiusRight} ${Me.borderRadiusLeft};
623
623
  display: flex;
624
624
  align-items: center;
625
625
  justify-content: center;
626
626
  overflow: hidden;
627
- ${e.setVariable(vt.size,zt.iconSize)};
627
+ ${e.setVariable(gt.size,Ct.iconSize)};
628
628
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
629
- background-color: ${zt.backgroundColor};
629
+ background-color: ${Ct.backgroundColor};
630
630
  -webkit-mask-image: radial-gradient(white, black);
631
631
  }
632
632
 
@@ -635,8 +635,8 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
635
635
  }
636
636
 
637
637
  .ft-switch-option--input:checked + .ft-switch-option--content:before {
638
- background-color: ${zt.selectedBackgroundColor};
639
- border-radius: ${Ae.borderRadiusLeft} ${Ae.borderRadiusRight} ${Ae.borderRadiusRight} ${Ae.borderRadiusLeft};
638
+ background-color: ${Ct.selectedBackgroundColor};
639
+ border-radius: ${Me.borderRadiusLeft} ${Me.borderRadiusRight} ${Me.borderRadiusRight} ${Me.borderRadiusLeft};
640
640
  position: absolute;
641
641
  inset: 0;
642
642
  content: "";
@@ -645,18 +645,18 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
645
645
  }
646
646
 
647
647
  .ft-switch-option--label {
648
- color: ${zt.textColor};
648
+ color: ${Ct.textColor};
649
649
  overflow: hidden;
650
650
  white-space: nowrap;
651
651
  text-overflow: ellipsis;
652
652
  display: block;
653
653
  margin: 0 8px;
654
- ${e.setVariable(it.fontSize,zt.fontSize)};
655
- ${e.setVariable(it.lineHeight,"var(--ft-switch-option-internal-content-height)")}
654
+ ${e.setVariable(ot.fontSize,Ct.fontSize)};
655
+ ${e.setVariable(ot.lineHeight,"var(--ft-switch-option-internal-content-height)")}
656
656
  }
657
657
 
658
658
  .ft-switch-option--input:checked + .ft-switch-option--content .ft-switch-option--label {
659
- color: ${zt.selectedTextColor};
659
+ color: ${Ct.selectedTextColor};
660
660
  }
661
661
 
662
662
  .ft-switch-option--label[hidden] {
@@ -664,7 +664,7 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
664
664
  }
665
665
 
666
666
  .ft-switch-option--ripple {
667
- ${e.setVariable(p.color,zt.rippleColor)};
667
+ ${e.setVariable(c.color,Ct.rippleColor)};
668
668
  }
669
669
 
670
670
  ft-icon, ft-ripple, ft-typography {
@@ -677,13 +677,13 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
677
677
 
678
678
  ft-icon {
679
679
  flex-shrink: 0;
680
- color: ${zt.iconColor};
680
+ color: ${Ct.iconColor};
681
681
  }
682
682
 
683
683
  .ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
684
- color: ${zt.selectedTextColor};
684
+ color: ${Ct.selectedTextColor};
685
685
  }
686
- `;var je=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Me extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Ue extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.iconVariant=ye.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Me)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(i.html`
686
+ `;var Fe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Le extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Pe extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Le)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(i.html`
687
687
  <label part="label" for="input" class=${n.classMap(t)}
688
688
  @click=${this.onChange}>
689
689
  <input id="input" type="radio" class="ft-switch-option--input"
@@ -706,20 +706,20 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
706
706
  ${t}
707
707
  </ft-tooltip>
708
708
  `}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?i.html`
709
- <ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
710
- `:i.nothing}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Ue.elementDefinitions={"ft-ripple":Ee,"ft-typography":$e,"ft-tooltip":Ne,"ft-icon":ke},Ue.styles=[e.safariEllipsisFix,Be],je([o.property()],Ue.prototype,"value",void 0),je([o.property()],Ue.prototype,"icon",void 0),je([o.property()],Ue.prototype,"iconVariant",void 0),je([o.property()],Ue.prototype,"label",void 0),je([o.property()],Ue.prototype,"tooltipPosition",void 0),je([o.property({type:Boolean,reflect:!0})],Ue.prototype,"selected",void 0),je([o.property({type:Boolean})],Ue.prototype,"trailingIcon",void 0),je([o.property({type:Boolean})],Ue.prototype,"unselectable",void 0),je([o.query(".ft-switch-option--content slot")],Ue.prototype,"slottedContent",void 0),je([o.query(".ft-switch-option--input")],Ue.prototype,"input",void 0);var Fe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Le extends CustomEvent{constructor(t){super("change",{detail:t})}}class Pe extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Le(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return i.html`
709
+ <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
710
+ `:i.nothing}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Pe.elementDefinitions={"ft-ripple":je,"ft-typography":_e,"ft-tooltip":Ae,"ft-icon":Ie},Pe.styles=[e.safariEllipsisFix,Ue],Fe([o.property()],Pe.prototype,"value",void 0),Fe([o.property()],Pe.prototype,"icon",void 0),Fe([o.property()],Pe.prototype,"iconVariant",void 0),Fe([o.property()],Pe.prototype,"label",void 0),Fe([o.property()],Pe.prototype,"tooltipPosition",void 0),Fe([o.property({type:Boolean,reflect:!0})],Pe.prototype,"selected",void 0),Fe([o.property({type:Boolean})],Pe.prototype,"trailingIcon",void 0),Fe([o.property({type:Boolean})],Pe.prototype,"unselectable",void 0),Fe([o.query(".ft-switch-option--content slot")],Pe.prototype,"slottedContent",void 0),Fe([o.query(".ft-switch-option--input")],Pe.prototype,"input",void 0);var He=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ze extends CustomEvent{constructor(t){super("change",{detail:t})}}class We extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Ze(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return i.html`
711
711
  <div @keydown=${this.onKeyDown} tabindex="0" class="${n.classMap(t)}">
712
712
  <slot @slotchange=${this.onSlotchange}
713
713
  @option-change=${this.onOptionChange}></slot>
714
714
  </div>
715
- `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Ue&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){t.stopPropagation();let e=t.target;e.selected?this.selectedOption=e:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Pe.elementDefinitions={},Pe.styles=i.css`
715
+ `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Pe&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){t.stopPropagation();let e=t.target;e.selected?this.selectedOption=e:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}We.elementDefinitions={},We.styles=i.css`
716
716
  :host {
717
717
  display: inline-block;
718
718
  }
719
719
 
720
720
  .ft-switch {
721
- border-radius: ${zt.borderRadius};
722
- outline-color: ${zt.outlineColor};
721
+ border-radius: ${Ct.borderRadius};
722
+ outline-color: ${Ct.outlineColor};
723
723
  }
724
724
 
725
725
  .ft-switch slot {
@@ -728,25 +728,25 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
728
728
  }
729
729
 
730
730
  .ft-switch slot::slotted(ft-switch-option) {
731
- ${e.setVariable(Ae.borderRadiusLeft,"0")};
732
- ${e.setVariable(Ae.borderRadiusRight,"0")};
733
- ${e.setVariable(Ae.borderWidthLeft,"0")};
731
+ ${e.setVariable(Me.borderRadiusLeft,"0")};
732
+ ${e.setVariable(Me.borderRadiusRight,"0")};
733
+ ${e.setVariable(Me.borderWidthLeft,"0")};
734
734
  }
735
735
 
736
736
  .ft-switch slot::slotted(ft-switch-option:first-child) {
737
- ${e.setVariable(Ae.borderRadiusLeft,zt.borderRadius)};
738
- ${e.setVariable(Ae.borderWidthLeft,"1px")};
737
+ ${e.setVariable(Me.borderRadiusLeft,Ct.borderRadius)};
738
+ ${e.setVariable(Me.borderWidthLeft,"1px")};
739
739
  }
740
740
 
741
741
  .ft-switch slot::slotted(ft-switch-option:last-child) {
742
- ${e.setVariable(Ae.borderRadiusRight,zt.borderRadius)};
742
+ ${e.setVariable(Me.borderRadiusRight,Ct.borderRadius)};
743
743
  }
744
744
 
745
745
  .ft-switch--dense slot::slotted(ft-switch-option) {
746
746
  --ft-switch-internal-vertical-padding: 2px;
747
747
  --ft-switch-internal-horizontal-padding: 4px;
748
748
  }
749
- `,Fe([o.property({type:Boolean})],Pe.prototype,"dense",void 0),Fe([o.property({type:Boolean})],Pe.prototype,"unselectable",void 0),Fe([o.query(".ft-switch slot")],Pe.prototype,"slottedContent",void 0),Fe([o.state()],Pe.prototype,"selectedOption",void 0),Fe([o.query(".ft-switch")],Pe.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(Pe),e.customElement("ft-switch-option")(Ue);const He=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Ze=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),We=i.css`
749
+ `,He([o.property({type:Boolean})],We.prototype,"dense",void 0),He([o.property({type:Boolean})],We.prototype,"unselectable",void 0),He([o.query(".ft-switch slot")],We.prototype,"slottedContent",void 0),He([o.state()],We.prototype,"selectedOption",void 0),He([o.query(".ft-switch")],We.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(We),e.customElement("ft-switch-option")(Pe);const Ve=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Ge=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),Ke=i.css`
750
750
  :host {
751
751
  display: block;
752
752
  }
@@ -757,14 +757,14 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
757
757
 
758
758
  ft-icon {
759
759
  transform: rotate(-45deg);
760
- color: ${He};
760
+ color: ${Ve};
761
761
  }
762
762
 
763
763
  .ft-resizer--dragging ft-icon,
764
764
  .ft-resizer:hover ft-icon {
765
- color: ${Ze};
765
+ color: ${Ge};
766
766
  }
767
- `;var Ve=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ge extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Ke extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return i.html`
767
+ `;var Ye=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class qe extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Xe extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=we.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return i.html`
768
768
  <style>
769
769
  .ft-resizer {
770
770
  cursor: ${i.unsafeCSS(this.cursor)}
@@ -773,27 +773,27 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
773
773
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
774
774
  @mousedown=${this.initDragFromMouse}
775
775
  @touchstart=${this.initDragFromTouch}>
776
- <ft-icon variant="material">${this.icon}</ft-icon>
776
+ <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
777
777
  </div>
778
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new Ge(i,o))}}Ke.elementDefinitions={"ft-icon":ke},Ke.styles=[e.noTextSelect,We],Ve([o.property({type:Number})],Ke.prototype,"initialWidth",void 0),Ve([o.property({type:Number})],Ke.prototype,"initialHeight",void 0),Ve([o.property()],Ke.prototype,"icon",void 0),Ve([o.property()],Ke.prototype,"cursor",void 0),Ve([o.state()],Ke.prototype,"dragging",void 0),e.customElement("ft-resizer")(Ke);const Ye={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},qe=i.css`
778
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new qe(i,o))}}Xe.elementDefinitions={"ft-icon":Ie},Xe.styles=[e.noTextSelect,Ke],Ye([o.property({type:Number})],Xe.prototype,"initialWidth",void 0),Ye([o.property({type:Number})],Xe.prototype,"initialHeight",void 0),Ye([o.property()],Xe.prototype,"icon",void 0),Ye([o.property()],Xe.prototype,"iconVariant",void 0),Ye([o.property()],Xe.prototype,"cursor",void 0),Ye([o.state()],Xe.prototype,"dragging",void 0),e.customElement("ft-resizer")(Xe);const Je={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Qe=i.css`
779
779
  .ft-input-label {
780
780
  position: absolute;
781
781
  inset: 0;
782
782
  display: flex;
783
- background-color: ${Ye.colorSurface};
784
- border-radius: ${Ye.borderRadiusS} ${Ye.borderRadiusS} 0 0;
783
+ background-color: ${Je.colorSurface};
784
+ border-radius: ${Je.borderRadiusS} ${Je.borderRadiusS} 0 0;
785
785
  }
786
786
 
787
787
  .ft-input-label--outlined {
788
- border-radius: ${Ye.borderRadiusS};
788
+ border-radius: ${Je.borderRadiusS};
789
789
  }
790
790
 
791
791
  .ft-input-label {
792
- border-color: ${Ye.borderColor};
792
+ border-color: ${Je.borderColor};
793
793
  }
794
794
 
795
795
  .ft-input-label.ft-input-label--in-error {
796
- border-color: ${Ye.colorError}
796
+ border-color: ${Je.colorError}
797
797
  }
798
798
 
799
799
  .ft-input-label:before,
@@ -806,7 +806,7 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
806
806
  }
807
807
 
808
808
  .ft-input-label:before {
809
- width: calc(${Ye.horizontalSpacing} - 4px);
809
+ width: calc(${Je.horizontalSpacing} - 4px);
810
810
  flex-shrink: 0;
811
811
  }
812
812
 
@@ -822,20 +822,20 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
822
822
  border-bottom-width: 1px;
823
823
  border-bottom-style: solid;
824
824
  border-color: inherit;
825
- color: ${Ye.textColor};
825
+ color: ${Je.textColor};
826
826
  transition: font-size 250ms, line-height 250ms, color 250ms;
827
- max-width: calc(${Ye.labelMaxWidth} - 2 * (${Ye.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
827
+ max-width: calc(${Je.labelMaxWidth} - 2 * (${Je.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
828
828
  text-overflow: ellipsis;
829
- ${e.setVariable(H.fontSize,Ye.fontSize)};
830
- ${e.setVariable(H.lineHeight,Ye.fontSize)};
829
+ ${e.setVariable(Z.fontSize,Je.fontSize)};
830
+ ${e.setVariable(Z.lineHeight,Je.fontSize)};
831
831
  }
832
832
 
833
833
  .ft-input-label--in-error .ft-input-label--text {
834
- color: ${Ye.colorError}
834
+ color: ${Je.colorError}
835
835
  }
836
836
 
837
837
  .ft-input-label--disabled .ft-input-label--text {
838
- color: ${Ye.disabledTextColor};
838
+ color: ${Je.disabledTextColor};
839
839
  }
840
840
 
841
841
  .ft-input-label--hidden-text {
@@ -852,19 +852,19 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
852
852
  overflow: hidden;
853
853
  white-space: nowrap;
854
854
  text-overflow: ellipsis;
855
- padding: ${Ye.verticalSpacing} 4px;
856
- margin: calc(${Ye.verticalSpacing} * -1) 0;
855
+ padding: ${Je.verticalSpacing} 4px;
856
+ margin: calc(${Je.verticalSpacing} * -1) 0;
857
857
  max-width: 100%;
858
858
  box-sizing: border-box;
859
859
  }
860
860
 
861
861
  .ft-input-label--raised .ft-input-label--text {
862
- ${e.setVariable(H.fontSize,Ye.raisedFontSize)};
863
- ${e.setVariable(H.lineHeight,Ye.raisedFontSize)};
862
+ ${e.setVariable(Z.fontSize,Je.raisedFontSize)};
863
+ ${e.setVariable(Z.lineHeight,Je.raisedFontSize)};
864
864
  }
865
865
 
866
866
  .ft-input-label--raised .ft-input-label--floating-text {
867
- top: ${Ye.verticalSpacing};
867
+ top: ${Je.verticalSpacing};
868
868
  }
869
869
 
870
870
  .ft-input-label--outlined .ft-input-label--text,
@@ -877,27 +877,27 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
877
877
  .ft-input-label--outlined:before {
878
878
  border-left-width: 1px;
879
879
  border-left-style: solid;
880
- border-radius: ${Ye.borderRadiusS} 0 0 ${Ye.borderRadiusS};
880
+ border-radius: ${Je.borderRadiusS} 0 0 ${Je.borderRadiusS};
881
881
  }
882
882
 
883
883
  .ft-input-label--outlined:after {
884
884
  border-right-width: 1px;
885
885
  border-right-style: solid;
886
- border-radius: 0 ${Ye.borderRadiusS} ${Ye.borderRadiusS} 0;
886
+ border-radius: 0 ${Je.borderRadiusS} ${Je.borderRadiusS} 0;
887
887
  }
888
888
 
889
889
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
890
890
  padding: 2px 4px;
891
- z-index: ${Ye.raisedZIndex};
892
- background-color: ${Ye.colorSurface};
893
- border-radius: ${Ye.borderRadiusS};
891
+ z-index: ${Je.raisedZIndex};
892
+ background-color: ${Je.colorSurface};
893
+ border-radius: ${Je.borderRadiusS};
894
894
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
895
895
  }
896
896
 
897
897
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
898
898
  border-top: none;
899
899
  }
900
- `;var Xe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Je extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return i.html`
900
+ `;var ti=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ei extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return i.html`
901
901
  <div class="${n.classMap(t)}">
902
902
  ${this.text?i.html`
903
903
  <div class="ft-input-label--text ft-typography--caption">
@@ -906,7 +906,7 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
906
906
  </div>
907
907
  `:null}
908
908
  </div>
909
- `}}Je.elementDefinitions={},Je.styles=[ht,qe],Xe([o.property({type:String})],Je.prototype,"text",void 0),Xe([o.property({type:Boolean})],Je.prototype,"raised",void 0),Xe([o.property({type:Boolean})],Je.prototype,"outlined",void 0),Xe([o.property({type:Boolean})],Je.prototype,"disabled",void 0),Xe([o.property({type:Boolean})],Je.prototype,"error",void 0),e.customElement("ft-input-label")(Je);const Qe={fontSize:e.FtCssVariableFactory.create("--ft-text-area-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-area-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},ti=i.css`
909
+ `}}ei.elementDefinitions={},ei.styles=[dt,Qe],ti([o.property({type:String})],ei.prototype,"text",void 0),ti([o.property({type:Boolean})],ei.prototype,"raised",void 0),ti([o.property({type:Boolean})],ei.prototype,"outlined",void 0),ti([o.property({type:Boolean})],ei.prototype,"disabled",void 0),ti([o.property({type:Boolean})],ei.prototype,"error",void 0),e.customElement("ft-input-label")(ei);const ii={fontSize:e.FtCssVariableFactory.create("--ft-text-area-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-area-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},oi=i.css`
910
910
  *:focus {
911
911
  outline: none;
912
912
  }
@@ -918,10 +918,10 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
918
918
  }
919
919
 
920
920
  ft-input-label {
921
- ${e.setVariable(Ye.fontSize,Qe.fontSize)};
922
- ${e.setVariable(Ye.raisedFontSize,Qe.labelSize)};
923
- ${e.setVariable(Ye.verticalSpacing,Qe.verticalSpacing)};
924
- ${e.setVariable(Ye.horizontalSpacing,Qe.horizontalSpacing)};
921
+ ${e.setVariable(Je.fontSize,ii.fontSize)};
922
+ ${e.setVariable(Je.raisedFontSize,ii.labelSize)};
923
+ ${e.setVariable(Je.verticalSpacing,ii.verticalSpacing)};
924
+ ${e.setVariable(Je.horizontalSpacing,ii.horizontalSpacing)};
925
925
  }
926
926
 
927
927
  .ft-text-area--main-panel {
@@ -939,8 +939,8 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
939
939
  }
940
940
 
941
941
  .ft-text-area--input-panel ft-ripple {
942
- ${e.setVariable(p.opacityContentOnSurfaceHover,"0.08")};
943
- ${e.setVariable(p.opacityContentOnSurfacePressed,"0.04")};
942
+ ${e.setVariable(c.opacityContentOnSurfaceHover,"0.08")};
943
+ ${e.setVariable(c.opacityContentOnSurfacePressed,"0.04")};
944
944
  }
945
945
 
946
946
  .ft-text-area--input {
@@ -952,12 +952,12 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
952
952
  align-self: stretch;
953
953
  resize: none;
954
954
 
955
- ${e.setVariable(B.fontSize,Qe.fontSize)};
956
- ${e.setVariable(B.lineHeight,Qe.fontSize)};
957
- color: ${Qe.colorOnSurface};
955
+ ${e.setVariable(j.fontSize,ii.fontSize)};
956
+ ${e.setVariable(j.lineHeight,ii.fontSize)};
957
+ color: ${ii.colorOnSurface};
958
958
 
959
- padding: 0 ${Qe.horizontalSpacing};
960
- margin: calc(${Qe.verticalSpacing} + ${Qe.labelSize} / 2) 0 ${Qe.verticalSpacing} 0;
959
+ padding: 0 ${ii.horizontalSpacing};
960
+ margin: calc(${ii.verticalSpacing} + ${ii.labelSize} / 2) 0 ${ii.verticalSpacing} 0;
961
961
 
962
962
  border: none;
963
963
  background: none;
@@ -966,7 +966,7 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
966
966
  }
967
967
 
968
968
  .ft-text-area--disabled .ft-text-area--input {
969
- color: ${Qe.colorOnSurfaceDisabled};
969
+ color: ${ii.colorOnSurfaceDisabled};
970
970
  }
971
971
 
972
972
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -974,32 +974,32 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
974
974
  }
975
975
 
976
976
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
977
- ${e.setVariable(Ye.borderColor,Qe.colorPrimary)};
978
- ${e.setVariable(Ye.textColor,Qe.colorPrimary)};
977
+ ${e.setVariable(Je.borderColor,ii.colorPrimary)};
978
+ ${e.setVariable(Je.textColor,ii.colorPrimary)};
979
979
  }
980
980
 
981
981
  .ft-text-area--filled .ft-text-area--input-panel {
982
- border-radius: ${Qe.borderRadiusS} ${Qe.borderRadiusS} 0 0;
982
+ border-radius: ${ii.borderRadiusS} ${ii.borderRadiusS} 0 0;
983
983
  }
984
984
 
985
985
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
986
986
  align-self: stretch;
987
- margin-bottom: ${Qe.verticalSpacing};
988
- margin-top: calc(${Qe.labelSize} + 2 * ${Qe.verticalSpacing});
987
+ margin-bottom: ${ii.verticalSpacing};
988
+ margin-top: calc(${ii.labelSize} + 2 * ${ii.verticalSpacing});
989
989
  }
990
990
 
991
991
  .ft-text-area--outlined .ft-text-area--input-panel {
992
- border-radius: ${Qe.borderRadiusS};
992
+ border-radius: ${ii.borderRadiusS};
993
993
  }
994
994
 
995
995
  .ft-text-area--helper-text {
996
- padding: 0 12px 0 ${Qe.horizontalSpacing};
997
- color: ${Qe.helperColor};
996
+ padding: 0 12px 0 ${ii.horizontalSpacing};
997
+ color: ${ii.helperColor};
998
998
  }
999
999
 
1000
1000
  .ft-text-area--in-error .ft-text-area--input,
1001
1001
  .ft-text-area--in-error .ft-text-area--helper-text {
1002
- color: ${Qe.colorError};
1002
+ color: ${ii.colorError};
1003
1003
  }
1004
1004
 
1005
1005
  ft-resizer {
@@ -1007,10 +1007,10 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
1007
1007
  right: 0;
1008
1008
  bottom: 0;
1009
1009
  }
1010
- `;var ei=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ii extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return i.html`
1010
+ `;var si=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ni extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return i.html`
1011
1011
  <style>
1012
1012
  .ft-text-area--main-panel {
1013
- height: calc(4 * ${Qe.verticalSpacing} + ${Qe.labelSize} + ${Qe.fontSize} + ${this.height}px);
1013
+ height: calc(4 * ${ii.verticalSpacing} + ${ii.labelSize} + ${ii.fontSize} + ${this.height}px);
1014
1014
  }
1015
1015
  </style>
1016
1016
  <div class="${n.classMap(t)}">
@@ -1045,14 +1045,14 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
1045
1045
  ${this.helper}
1046
1046
  </ft-typography>`:void 0}
1047
1047
  </div>
1048
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}ii.elementDefinitions={"ft-input-label":Je,"ft-resizer":Ke,"ft-ripple":Ee,"ft-typography":$e},ii.styles=[at,ti],ei([o.property({type:String})],ii.prototype,"label",void 0),ei([o.property({reflect:!0})],ii.prototype,"value",void 0),ei([o.property({type:String})],ii.prototype,"helper",void 0),ei([o.property({type:Boolean})],ii.prototype,"outlined",void 0),ei([o.property({type:Boolean})],ii.prototype,"disabled",void 0),ei([o.property({type:Boolean})],ii.prototype,"error",void 0),ei([o.property({type:Number,reflect:!0})],ii.prototype,"height",void 0),ei([o.query("textarea")],ii.prototype,"textarea",void 0),ei([o.state()],ii.prototype,"focused",void 0),e.customElement("ft-text-area")(ii);class oi extends e.FtLitElement{render(){return i.html`
1048
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}ni.elementDefinitions={"ft-input-label":ei,"ft-resizer":Xe,"ft-ripple":je,"ft-typography":_e},ni.styles=[lt,oi],si([o.property({type:String})],ni.prototype,"label",void 0),si([o.property({reflect:!0})],ni.prototype,"value",void 0),si([o.property({type:String})],ni.prototype,"helper",void 0),si([o.property({type:Boolean})],ni.prototype,"outlined",void 0),si([o.property({type:Boolean})],ni.prototype,"disabled",void 0),si([o.property({type:Boolean})],ni.prototype,"error",void 0),si([o.property({type:Number,reflect:!0})],ni.prototype,"height",void 0),si([o.query("textarea")],ni.prototype,"textarea",void 0),si([o.state()],ni.prototype,"focused",void 0),e.customElement("ft-text-area")(ni);class ri extends e.FtLitElement{render(){return i.html`
1049
1049
  <div class="ft-loader">
1050
1050
  <div></div>
1051
1051
  <div></div>
1052
1052
  <div></div>
1053
1053
  <div></div>
1054
1054
  </div>
1055
- `}}oi.styles=bt,e.customElement("ft-loader")(oi);var si=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ni extends e.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=ye.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
1055
+ `}}ri.styles=vt,e.customElement("ft-loader")(ri);var ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class li extends e.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
1056
1056
  <button part="button"
1057
1057
  class="${n.classMap(t)}"
1058
1058
  aria-label="${this.getLabel()}"
@@ -1075,13 +1075,13 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
1075
1075
  </ft-tooltip>
1076
1076
  `:t}resolveIcon(){return this.loading?i.html`
1077
1077
  <ft-loader part="loader icon"></ft-loader> `:this.icon?i.html`
1078
- <ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.nothing}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}}ni.elementDefinitions={"ft-ripple":Ee,"ft-tooltip":Ne,"ft-typography":$e,"ft-icon":ke,"ft-loader":oi},ni.styles=[e.safariEllipsisFix,It],si([o.property({type:String,reflect:!0})],ni.prototype,"role",void 0),si([o.property({type:Boolean})],ni.prototype,"primary",void 0),si([o.property({type:Boolean})],ni.prototype,"outlined",void 0),si([o.property({type:Boolean})],ni.prototype,"disabled",void 0),si([o.property({type:Boolean})],ni.prototype,"dense",void 0),si([o.property({type:Boolean})],ni.prototype,"round",void 0),si([o.property({type:String})],ni.prototype,"label",void 0),si([o.property({type:String})],ni.prototype,"icon",void 0),si([o.property({type:String})],ni.prototype,"iconVariant",void 0),si([o.property({type:Boolean})],ni.prototype,"trailingIcon",void 0),si([o.property({type:Boolean})],ni.prototype,"loading",void 0),si([o.property({type:String})],ni.prototype,"tooltipPosition",void 0),si([o.property({type:Boolean})],ni.prototype,"hideTooltip",void 0),si([o.property({type:Boolean})],ni.prototype,"forceTooltip",void 0),si([o.query(".ft-button")],ni.prototype,"button",void 0),si([o.query(".ft-button--label slot")],ni.prototype,"slottedContent",void 0),e.customElement("ft-button")(ni);const ri=i.css`
1079
- `,ai=i.css`
1080
- `,li=e.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class hi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=li.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?hi.build(t):null!==(e=hi.API)&&void 0!==e?e:hi.API=hi.build()}static await(t){return new Promise((e=>{let i=hi.get(t);if(i)e(i);else{const o=li.subscribe((()=>{i=hi.get(t),i&&(o(),e(i))}))}}))}}var di;const pi=Symbol("clearAfterUnitTest");class ci{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[di]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=li.getState().uiLocale,li.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=li.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,i){var o;if(t=t.toLowerCase(),Object.keys(i).length>0){const s={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...i};e.deepEqual(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,i,...o){var s,n,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(s=this.cache.getNow(t))||void 0===s?void 0:s.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},a).resolve(i,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}di=pi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new ci((async(t,e)=>(await hi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new ci((async(t,e)=>(await hi.await()).getCustomMessageContext(t,e))));const fi=window.FluidTopicsI18nService,ui=window.FluidTopicsCustomI18nService;var bi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class vi extends e.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>hi.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return i.html`
1078
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:i.nothing}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}}li.elementDefinitions={"ft-ripple":je,"ft-tooltip":Ae,"ft-typography":_e,"ft-icon":Ie,"ft-loader":ri},li.styles=[e.safariEllipsisFix,zt],ai([o.property({type:String,reflect:!0})],li.prototype,"role",void 0),ai([o.property({type:Boolean})],li.prototype,"primary",void 0),ai([o.property({type:Boolean})],li.prototype,"outlined",void 0),ai([o.property({type:Boolean})],li.prototype,"disabled",void 0),ai([o.property({type:Boolean})],li.prototype,"dense",void 0),ai([o.property({type:Boolean})],li.prototype,"round",void 0),ai([o.property()],li.prototype,"label",void 0),ai([o.property()],li.prototype,"icon",void 0),ai([o.property()],li.prototype,"iconVariant",void 0),ai([o.property({type:Boolean})],li.prototype,"trailingIcon",void 0),ai([o.property({type:Boolean})],li.prototype,"loading",void 0),ai([o.property()],li.prototype,"tooltipPosition",void 0),ai([o.property({type:Boolean})],li.prototype,"hideTooltip",void 0),ai([o.property({type:Boolean})],li.prototype,"forceTooltip",void 0),ai([o.query(".ft-button")],li.prototype,"button",void 0),ai([o.query(".ft-button--label slot")],li.prototype,"slottedContent",void 0),e.customElement("ft-button")(li);const hi=i.css`
1079
+ `,di=i.css`
1080
+ `,pi=e.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class ci{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=pi.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?ci.build(t):null!==(e=ci.API)&&void 0!==e?e:ci.API=ci.build()}static await(t){return new Promise((e=>{let i=ci.get(t);if(i)e(i);else{const o=pi.subscribe((()=>{i=ci.get(t),i&&(o(),e(i))}))}}))}}var fi;const ui=Symbol("clearAfterUnitTest");class bi{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[fi]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=pi.getState().uiLocale,pi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=pi.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,i){var o;if(t=t.toLowerCase(),Object.keys(i).length>0){const s={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...i};e.deepEqual(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,i,...o){var s,n,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(s=this.cache.getNow(t))||void 0===s?void 0:s.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},a).resolve(i,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}fi=ui,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new bi((async(t,e)=>(await ci.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new bi((async(t,e)=>(await ci.await()).getCustomMessageContext(t,e))));const vi=window.FluidTopicsI18nService,gi=window.FluidTopicsCustomI18nService;var xi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class yi extends e.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ci.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return i.html`
1081
1081
  <slot></slot>
1082
- `}updated(t){super.updated(t),t.has("baseUrl")&&li.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&li.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&li.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&li.actions.setNoCustom(this.noCustom),t.has("editorMode")&&li.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&li.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&li.actions.setSession(this.session),t.has("availableUiLocales")&&li.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>fi.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}vi.elementDefinitions={},vi.styles=ai,bi([o.property()],vi.prototype,"baseUrl",void 0),bi([o.property()],vi.prototype,"apiIntegrationIdentifier",void 0),bi([o.property()],vi.prototype,"uiLocale",void 0),bi([e.jsonProperty([])],vi.prototype,"availableUiLocales",void 0),bi([o.property({type:Boolean})],vi.prototype,"editorMode",void 0),bi([o.property({type:Boolean})],vi.prototype,"noCustom",void 0),bi([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],vi.prototype,"noCustomComponent",void 0),bi([o.property({type:Boolean})],vi.prototype,"withManualResources",void 0),bi([e.jsonProperty([])],vi.prototype,"messageContexts",void 0),bi([e.jsonProperty(void 0)],vi.prototype,"session",void 0),bi([o.property({type:Object})],vi.prototype,"apiProvider",void 0),e.customElement("ft-app-context")(vi);var gi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const xi=Symbol("i18nProperties"),yi=Symbol("i18nUnsubs");function mi(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?ui:fi}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const s=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...s)}onI18nUpdate(t){var e;null===(e=this[xi])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[xi])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[xi]&&new Set([...this[xi].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[yi].has(t)||this[yi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[yi].forEach((t=>t())),this[yi].clear()}}return e=yi,gi([o.property({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class $i extends(mi(e.FtLitElement)){}class wi extends(mi(e.FtLitElementRedux)){}var ki=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class _i extends wi{constructor(){super(),this.editorMode=!1,this.addStore(li)}render(){return this.key&&this.context?i.html`
1082
+ `}updated(t){super.updated(t),t.has("baseUrl")&&pi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&pi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&pi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&pi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&pi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&pi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&pi.actions.setSession(this.session),t.has("availableUiLocales")&&pi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>vi.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}yi.elementDefinitions={},yi.styles=di,xi([o.property()],yi.prototype,"baseUrl",void 0),xi([o.property()],yi.prototype,"apiIntegrationIdentifier",void 0),xi([o.property()],yi.prototype,"uiLocale",void 0),xi([e.jsonProperty([])],yi.prototype,"availableUiLocales",void 0),xi([o.property({type:Boolean})],yi.prototype,"editorMode",void 0),xi([o.property({type:Boolean})],yi.prototype,"noCustom",void 0),xi([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],yi.prototype,"noCustomComponent",void 0),xi([o.property({type:Boolean})],yi.prototype,"withManualResources",void 0),xi([e.jsonProperty([])],yi.prototype,"messageContexts",void 0),xi([e.jsonProperty(void 0)],yi.prototype,"session",void 0),xi([o.property({type:Object})],yi.prototype,"apiProvider",void 0),e.customElement("ft-app-context")(yi);var mi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const $i=Symbol("i18nProperties"),wi=Symbol("i18nUnsubs");function ki(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?gi:vi}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const s=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...s)}onI18nUpdate(t){var e;null===(e=this[$i])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[$i])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[$i]&&new Set([...this[$i].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[wi].has(t)||this[wi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[wi].forEach((t=>t())),this[wi].clear()}}return e=wi,mi([o.property({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class _i extends(ki(e.FtLitElement)){}class Si extends(ki(e.FtLitElementRedux)){}var Ii=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class zi extends Si{constructor(){super(),this.editorMode=!1,this.addStore(pi)}render(){return this.key&&this.context?i.html`
1083
1083
  <span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
1084
- `:this.editorMode?"Select a context and a label key.":i.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}_i.elementDefinitions={},_i.styles=ri,ki([e.redux()],_i.prototype,"editorMode",void 0),ki([o.property()],_i.prototype,"context",void 0),ki([o.property()],_i.prototype,"key",void 0),ki([e.jsonProperty([])],_i.prototype,"args",void 0),ki([o.property()],_i.prototype,"defaultMessage",void 0);class Si{constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>fi.resolveMessage(this.name,e,...t)})}static build(t){return new Si(t)}static fromGwt(t){return new Si(t)}}const Ii=t=>(e,i)=>{var o,s;e.constructor.createProperty(i,{attribute:!1,type:String});const n={...t,key:null!==(o=t.key)&&void 0!==o?o:i};e[xi]=null!==(s=e[xi])&&void 0!==s?s:new Map,e[xi].set(i,n)};e.customElement("ft-i18n")(_i);const zi=Si.build("integratedFeedbackComponent"),Ci={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Ti=Si.build("inDesignerFeedbackComponent"),Oi={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Ri=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ni extends $i{constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.iconVariant=ye.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(zi,Ci),this.addI18nContext(Ti,Oi)}get canAccessFeedback(){return this.user&&this.user.roles.includes("FEEDBACK_USER")}get canAccessRating(){return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType}get userHasRatingRole(){return this.user&&this.user.roles.includes("RATING_USER")}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,i;const o=null===(i=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===i?void 0:i.date;return"string"==typeof o?e.parseDate(o):o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?i.html`
1084
+ `:this.editorMode?"Select a context and a label key.":i.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}zi.elementDefinitions={},zi.styles=hi,Ii([e.redux()],zi.prototype,"editorMode",void 0),Ii([o.property()],zi.prototype,"context",void 0),Ii([o.property()],zi.prototype,"key",void 0),Ii([e.jsonProperty([])],zi.prototype,"args",void 0),Ii([o.property()],zi.prototype,"defaultMessage",void 0);class Ci{static build(t){return new Ci(t)}static fromGwt(t){return new Ci(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>vi.resolveMessage(this.name,e,...t)})}}const Ti=t=>(e,i)=>{var o,s;e.constructor.createProperty(i,{attribute:!1,type:String});const n={...t,key:null!==(o=t.key)&&void 0!==o?o:i};e[$i]=null!==(s=e[$i])&&void 0!==s?s:new Map,e[$i].set(i,n)};e.customElement("ft-i18n")(zi);const Oi=Ci.build("integratedFeedbackComponent"),Ri={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Ni=Ci.build("inDesignerFeedbackComponent"),Di={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Ei=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ai extends _i{constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Oi,Ri),this.addI18nContext(Ni,Di)}get canAccessFeedback(){return this.user&&this.user.roles.includes("FEEDBACK_USER")}get canAccessRating(){return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType}get userHasRatingRole(){return this.user&&this.user.roles.includes("RATING_USER")}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,i;const o=null===(i=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===i?void 0:i.date;return"string"==typeof o?e.parseDate(o):o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?i.html`
1085
1085
  <div class="ft-reader-feedback">
1086
1086
  ${this.hideTitle?i.nothing:i.html`
1087
1087
  <ft-typography variant="title" part="main-title">
@@ -1101,11 +1101,11 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
1101
1101
  ${this.renderRatingDate()}
1102
1102
  </ft-typography>
1103
1103
  </div>
1104
- `:this.placeholderInEditor(this.userHasRatingRole?Ti.messages.ratingNotConfigured():Ti.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return zi.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return zi.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?zi.messages.ratedToday():zi.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return i.html`
1104
+ `:this.placeholderInEditor(this.userHasRatingRole?Ni.messages.ratingNotConfigured():Ni.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Oi.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Oi.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Oi.messages.ratedToday():Oi.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return i.html`
1105
1105
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1106
1106
  ${r.repeat(new Array(5),((t,e)=>e),((t,e)=>{let o="STARS"===this.ratingType&&this.ratingValue>e;const s=e+1;return i.html`
1107
1107
  <ft-button round part="rating-stars-${s}"
1108
- label="${zi.messages.starsRating(s)}"
1108
+ label="${Oi.messages.starsRating(s)}"
1109
1109
  tooltipPosition="top"
1110
1110
  .iconVariant=${this.iconVariant}
1111
1111
  icon="${o?this.filledStarIcon:this.emptyStarIcon}"
@@ -1120,13 +1120,13 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
1120
1120
  ?selected=${e}
1121
1121
  .iconVariant=${this.iconVariant}
1122
1122
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1123
- ${zi.messages.like()}
1123
+ ${Oi.messages.like()}
1124
1124
  </ft-switch-option>
1125
1125
  <ft-switch-option .value=${0}
1126
1126
  ?selected=${t}
1127
1127
  .iconVariant=${this.iconVariant}
1128
1128
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1129
- ${zi.messages.dislike()}
1129
+ ${Oi.messages.dislike()}
1130
1130
  </ft-switch-option>
1131
1131
  </ft-switch>
1132
1132
  `;case"DICHOTOMOUS":const o="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,s="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return i.html`
@@ -1134,11 +1134,11 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
1134
1134
  part="rating rating-dichotomous">
1135
1135
  <ft-switch-option .value=${1}
1136
1136
  ?selected=${s}>
1137
- ${zi.messages.dichotomousYes()}
1137
+ ${Oi.messages.dichotomousYes()}
1138
1138
  </ft-switch-option>
1139
1139
  <ft-switch-option .value=${0}
1140
1140
  ?selected=${o}>
1141
- ${zi.messages.dichotomousNo()}
1141
+ ${Oi.messages.dichotomousNo()}
1142
1142
  </ft-switch-option>
1143
1143
  </ft-switch>
1144
1144
  `}return i.nothing}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){if(this.canAccessFeedback){const t=this.feedbackMailLinkBuilder(this.feedbackMessage);let e=i.html`
@@ -1147,7 +1147,7 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
1147
1147
  ?disabled=${!this.feedbackMessage}
1148
1148
  @click=${()=>t?this.clearFeedbackInput():this.sendFeedback()}
1149
1149
  part="send-feedback">
1150
- ${zi.messages.okButton()}
1150
+ ${Oi.messages.okButton()}
1151
1151
  </ft-button>
1152
1152
  `;return t&&(e=i.html`
1153
1153
  <a class="ft-reader-feedback--feedback-link" href="${t}">
@@ -1160,20 +1160,20 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
1160
1160
  </ft-typography>
1161
1161
  <ft-text-area outlined
1162
1162
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1163
- label="${zi.messages.feedbackInputLabel()}"
1163
+ label="${Oi.messages.feedbackInputLabel()}"
1164
1164
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1165
1165
  ></ft-text-area>
1166
1166
  ${e}
1167
1167
  </div>
1168
- `}return this.placeholderInEditor(Ti.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?i.html`
1168
+ `}return this.placeholderInEditor(Ni.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?i.html`
1169
1169
  <div class="ft-reader-feedback--placeholder">
1170
1170
  <ft-typography variant="caption">${t}</ft-typography>
1171
1171
  <ft-tooltip position="left"
1172
- text="${Ti.messages.inDesignerOnlyNotice()}">
1172
+ text="${Ni.messages.inDesignerOnlyNotice()}">
1173
1173
  <ft-icon>INFO</ft-icon>
1174
1174
  </ft-tooltip>
1175
1175
  </div>
1176
- `:i.nothing}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Ni.elementDefinitions={"ft-button":ni,"ft-typography":$e,"ft-icon":ke,"ft-tooltip":Ne,"ft-switch":Pe,"ft-switch-option":Ue,"ft-text-area":ii},Ni.styles=Tt,Ri([o.property({type:Boolean})],Ni.prototype,"editorMode",void 0),Ri([o.property({type:Boolean})],Ni.prototype,"hideTitle",void 0),Ri([o.property({type:Boolean})],Ni.prototype,"ratingAllowed",void 0),Ri([o.property({attribute:!1})],Ni.prototype,"i18nProperties",void 0),Ri([o.property({attribute:!1})],Ni.prototype,"ratingSummary",void 0),Ri([o.property({attribute:!1})],Ni.prototype,"user",void 0),Ri([o.query(".ft-reader-feedback--feedback-input")],Ni.prototype,"feedbackInput",void 0),Ri([o.state()],Ni.prototype,"feedbackMessage",void 0),Ri([o.property()],Ni.prototype,"iconVariant",void 0),Ri([o.property()],Ni.prototype,"emptyStarIcon",void 0),Ri([o.property()],Ni.prototype,"filledStarIcon",void 0),Ri([o.property()],Ni.prototype,"emptyLikeIcon",void 0),Ri([o.property()],Ni.prototype,"filledLikeIcon",void 0),Ri([o.property()],Ni.prototype,"emptyDislikeIcon",void 0),Ri([o.property()],Ni.prototype,"filledDislikeIcon",void 0),Ri([o.property()],Ni.prototype,"feedbackMailLinkBuilder",void 0);const Di=Si.fromGwt("server");class Ei{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,o,s){this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=s,this.subjectMetadata=o.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),s=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Di.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${s}`}}var Ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Bi extends(mi(h)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=ye.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Ei,this.i18nProperties={feedbackMainTitle:zi.properties.mapFeedbackMainTitle(),ratingSectionTitle:zi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:zi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:zi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(li)}render(){return null==this.map?i.nothing:i.html`
1176
+ `:i.nothing}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Ai.elementDefinitions={"ft-button":li,"ft-typography":_e,"ft-icon":Ie,"ft-tooltip":Ae,"ft-switch":We,"ft-switch-option":Pe,"ft-text-area":ni},Ai.styles=Ot,Ei([o.property({type:Boolean})],Ai.prototype,"editorMode",void 0),Ei([o.property({type:Boolean})],Ai.prototype,"hideTitle",void 0),Ei([o.property({type:Boolean})],Ai.prototype,"ratingAllowed",void 0),Ei([o.property({attribute:!1})],Ai.prototype,"i18nProperties",void 0),Ei([o.property({attribute:!1})],Ai.prototype,"ratingSummary",void 0),Ei([o.property({attribute:!1})],Ai.prototype,"user",void 0),Ei([o.query(".ft-reader-feedback--feedback-input")],Ai.prototype,"feedbackInput",void 0),Ei([o.state()],Ai.prototype,"feedbackMessage",void 0),Ei([o.property()],Ai.prototype,"iconVariant",void 0),Ei([o.property()],Ai.prototype,"emptyStarIcon",void 0),Ei([o.property()],Ai.prototype,"filledStarIcon",void 0),Ei([o.property()],Ai.prototype,"emptyLikeIcon",void 0),Ei([o.property()],Ai.prototype,"filledLikeIcon",void 0),Ei([o.property()],Ai.prototype,"emptyDislikeIcon",void 0),Ei([o.property()],Ai.prototype,"filledDislikeIcon",void 0),Ei([o.property()],Ai.prototype,"feedbackMailLinkBuilder",void 0);const Bi=Ci.fromGwt("server");class ji{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,o,s){this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=s,this.subjectMetadata=o.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),s=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Bi.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${s}`}}var Mi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ui extends(ki(d)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=we.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ji,this.i18nProperties={feedbackMainTitle:Oi.properties.mapFeedbackMainTitle(),ratingSectionTitle:Oi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Oi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Oi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(pi)}render(){return null==this.map?i.nothing:i.html`
1177
1177
  <ft-reader-feedback
1178
1178
  ratingAllowed
1179
1179
  .i18nProperties=${this.i18nProperties}
@@ -1192,7 +1192,7 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
1192
1192
  @rate=${this.rate}
1193
1193
  @send-feedback=${this.sendFeedback}
1194
1194
  ></ft-reader-feedback>
1195
- `}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:zi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ti.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ti.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:zi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:zi.messages.feedbackFailure()}))}}}Bi.elementDefinitions={"ft-reader-feedback":Ni},Ai([e.redux({store:li.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Bi.prototype,"user",void 0),Ai([e.redux({store:"reader"})],Bi.prototype,"map",void 0),Ai([e.redux({store:li.name})],Bi.prototype,"editorMode",void 0),Ai([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Bi.prototype,"configuration",void 0),Ai([o.state()],Bi.prototype,"ratingSummary",void 0),Ai([o.property({type:Boolean})],Bi.prototype,"hideTitle",void 0),Ai([o.property()],Bi.prototype,"iconVariant",void 0),Ai([o.property()],Bi.prototype,"emptyStarIcon",void 0),Ai([o.property()],Bi.prototype,"filledStarIcon",void 0),Ai([o.property()],Bi.prototype,"emptyLikeIcon",void 0),Ai([o.property()],Bi.prototype,"filledLikeIcon",void 0),Ai([o.property()],Bi.prototype,"emptyDislikeIcon",void 0),Ai([o.property()],Bi.prototype,"filledDislikeIcon",void 0),Ai([o.query("ft-reader-feedback")],Bi.prototype,"readerFeedback",void 0),Ai([Ii(Di.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Bi.prototype,"mailSubject",void 0);var ji=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Mi extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class Ui extends(function(t){class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new Mi)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return ji([o.state()],e.prototype,"tocNode",void 0),ji([o.state()],e.prototype,"disableContextInteractions",void 0),e}(h)){}var Fi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Li extends(mi(Ui)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=ye.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Ei,this.i18nProperties={feedbackMainTitle:zi.properties.topicFeedbackMainTitle(),ratingSectionTitle:zi.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:zi.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:zi.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(li)}render(){return null==this.map||null==this.tocNode?i.nothing:i.html`
1195
+ `}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ni.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ni.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Oi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.feedbackFailure()}))}}}Ui.elementDefinitions={"ft-reader-feedback":Ai},Mi([e.redux({store:pi.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Ui.prototype,"user",void 0),Mi([e.redux({store:"reader"})],Ui.prototype,"map",void 0),Mi([e.redux({store:pi.name})],Ui.prototype,"editorMode",void 0),Mi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ui.prototype,"configuration",void 0),Mi([o.state()],Ui.prototype,"ratingSummary",void 0),Mi([o.property({type:Boolean})],Ui.prototype,"hideTitle",void 0),Mi([o.property()],Ui.prototype,"iconVariant",void 0),Mi([o.property()],Ui.prototype,"emptyStarIcon",void 0),Mi([o.property()],Ui.prototype,"filledStarIcon",void 0),Mi([o.property()],Ui.prototype,"emptyLikeIcon",void 0),Mi([o.property()],Ui.prototype,"filledLikeIcon",void 0),Mi([o.property()],Ui.prototype,"emptyDislikeIcon",void 0),Mi([o.property()],Ui.prototype,"filledDislikeIcon",void 0),Mi([o.query("ft-reader-feedback")],Ui.prototype,"readerFeedback",void 0),Mi([Ti(Bi.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Ui.prototype,"mailSubject",void 0);var Fi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Li extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Pi=Symbol("registerInterval");class Hi extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Pi]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Pi]):this.dispatchEvent(new Li)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Pi,Fi([o.state()],i.prototype,"tocNode",void 0),Fi([o.state()],i.prototype,"disableContextInteractions",void 0),i}(d)){}var Zi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Wi extends(ki(Hi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=we.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ji,this.i18nProperties={feedbackMainTitle:Oi.properties.topicFeedbackMainTitle(),ratingSectionTitle:Oi.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Oi.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Oi.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(pi)}render(){return null==this.map||null==this.tocNode?i.nothing:i.html`
1196
1196
  <ft-reader-feedback
1197
1197
  .i18nProperties=${this.i18nProperties}
1198
1198
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1211,4 +1211,4 @@ const pe=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===pe)return null==t?void
1211
1211
  @rate=${this.rate}
1212
1212
  @send-feedback=${this.sendFeedback}
1213
1213
  ></ft-reader-feedback>
1214
- `}updated(t){var e,i,o;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:zi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ti.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{!this.editorMode&&this.tocNode?(await(null===(i=this.service)||void 0===i?void 0:i.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:zi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ti.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:zi.messages.feedbackFailure()}))}}}Li.elementDefinitions={"ft-reader-feedback":Ni},Fi([e.redux({store:li.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Li.prototype,"user",void 0),Fi([e.redux({store:"reader"})],Li.prototype,"map",void 0),Fi([e.redux({store:li.name})],Li.prototype,"editorMode",void 0),Fi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Li.prototype,"configuration",void 0),Fi([o.state()],Li.prototype,"ratingSummary",void 0),Fi([o.property({type:Boolean})],Li.prototype,"hideTitle",void 0),Fi([o.property()],Li.prototype,"iconVariant",void 0),Fi([o.property()],Li.prototype,"emptyStarIcon",void 0),Fi([o.property()],Li.prototype,"filledStarIcon",void 0),Fi([o.property()],Li.prototype,"emptyLikeIcon",void 0),Fi([o.property()],Li.prototype,"filledLikeIcon",void 0),Fi([o.property()],Li.prototype,"emptyDislikeIcon",void 0),Fi([o.property()],Li.prototype,"filledDislikeIcon",void 0),Fi([o.query("ft-reader-feedback")],Li.prototype,"readerFeedback",void 0),Fi([Ii(Di.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Li.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Bi),e.customElement("ft-reader-topic-feedback")(Li),t.FtReaderFeedbackCssVariables=Ct,t.FtReaderMapFeedback=Bi,t.FtReaderTopicFeedback=Li,t.styles=Tt,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
1214
+ `}updated(t){var e,i,o;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ni.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{!this.editorMode&&this.tocNode?(await(null===(i=this.service)||void 0===i?void 0:i.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Oi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ni.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.feedbackFailure()}))}}}Wi.elementDefinitions={"ft-reader-feedback":Ai},Zi([e.redux({store:pi.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Wi.prototype,"user",void 0),Zi([e.redux({store:"reader"})],Wi.prototype,"map",void 0),Zi([e.redux({store:pi.name})],Wi.prototype,"editorMode",void 0),Zi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Wi.prototype,"configuration",void 0),Zi([o.state()],Wi.prototype,"ratingSummary",void 0),Zi([o.property({type:Boolean})],Wi.prototype,"hideTitle",void 0),Zi([o.property()],Wi.prototype,"iconVariant",void 0),Zi([o.property()],Wi.prototype,"emptyStarIcon",void 0),Zi([o.property()],Wi.prototype,"filledStarIcon",void 0),Zi([o.property()],Wi.prototype,"emptyLikeIcon",void 0),Zi([o.property()],Wi.prototype,"filledLikeIcon",void 0),Zi([o.property()],Wi.prototype,"emptyDislikeIcon",void 0),Zi([o.property()],Wi.prototype,"filledDislikeIcon",void 0),Zi([o.query("ft-reader-feedback")],Wi.prototype,"readerFeedback",void 0),Zi([Ti(Bi.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Wi.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Ui),e.customElement("ft-reader-topic-feedback")(Wi),t.FtReaderFeedbackCssVariables=Tt,t.FtReaderMapFeedback=Ui,t.FtReaderTopicFeedback=Wi,t.styles=Ot}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);