@fluid-topics/ft-reader-feedback 1.0.54 → 1.0.56

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})}}const d=Symbol("registerInterval");class h 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[d]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[d]):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=d,a([o.state()],i.prototype,"stateManager",void 0),i}(e.FtLitElementRedux)){}const f=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),c={color:f,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",f),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"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},p=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),u=p,v=e.FtCssVariableFactory.extend("--ft-ripple-background-color",p),b=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),g=b,x=e.FtCssVariableFactory.extend("--ft-ripple-background-color",b),y=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 f=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),c={color:f,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",f),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"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},p=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),u=p,v=e.FtCssVariableFactory.extend("--ft-ripple-background-color",p),b=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),g=b,x=e.FtCssVariableFactory.extend("--ft-ripple-background-color",b),y=i.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -20,6 +20,30 @@
20
20
  opacity: 0;
21
21
  }
22
22
 
23
+ .ft-ripple .ft-ripple--effect {
24
+ aspect-ratio: 1;
25
+ width: auto;
26
+ height: auto;
27
+ min-width: 170%;
28
+ min-height: 170%;
29
+ }
30
+
31
+ .ft-ripple .ft-ripple--background{
32
+ width: 100%;
33
+ height: 100%;
34
+ }
35
+
36
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
37
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
38
+ aspect-ratio: 1;
39
+ width: auto;
40
+ height: auto;
41
+ max-width: unset;
42
+ max-height: unset;
43
+ min-width: 100%;
44
+ min-height: 100%;
45
+ }
46
+
23
47
  .ft-ripple .ft-ripple--background {
24
48
  background-color: ${c.backgroundColor};
25
49
  }
@@ -47,8 +71,6 @@
47
71
  .ft-ripple .ft-ripple--background {
48
72
  top: 0;
49
73
  left: 0;
50
- height: 100%;
51
- width: 100%;
52
74
  transition: opacity 75ms linear;
53
75
  }
54
76
 
@@ -88,7 +110,7 @@
88
110
  opacity: ${c.opacityContentOnSurfacePressed};
89
111
  transform: translate(-50%, -50%) scale(1);
90
112
  }
91
- `,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")},S={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")},_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",$),I=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",w.fontSize,"16px"),C=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",w.fontWeight,"600"),z=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"),E=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",$),R=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",w.fontSize,"14px"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",w.fontWeight,"normal"),N=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"),M={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")},U=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",$),j=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"),Z=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",w.textTransform,"inherit"),H={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`
113
+ `,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")},S={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")},_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",$),E=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",w.fontSize,"16px"),I=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",w.fontWeight,"600"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",w.letterSpacing,"0.144px"),R=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",w.lineHeight,"1.5"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",w.textTransform,"inherit"),O=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",$),C=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",w.fontSize,"14px"),N=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",w.fontWeight,"normal"),U=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",w.letterSpacing,"0.098px"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",w.lineHeight,"1.7"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",w.textTransform,"inherit"),B={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",$),F=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",w.fontSize,"14px"),L=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",w.fontWeight,"normal"),P=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",w.letterSpacing,"0.252px"),j=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")},K=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"),W=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",w.letterSpacing,"0.33px"),X=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",w.lineHeight,"1.6"),Y=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",w.textTransform,"inherit"),q=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`
92
114
  .ft-typography--title {
93
115
  font-family: ${k.fontFamily};
94
116
  font-size: ${k.fontSize};
@@ -109,61 +131,61 @@
109
131
  `,rt=i.css`
110
132
  .ft-typography--subtitle1 {
111
133
  font-family: ${_};
112
- font-size: ${I};
113
- font-weight: ${C};
114
- letter-spacing: ${z};
115
- line-height: ${T};
116
- text-transform: ${O};
134
+ font-size: ${E};
135
+ font-weight: ${I};
136
+ letter-spacing: ${T};
137
+ line-height: ${R};
138
+ text-transform: ${A};
117
139
  }
118
140
  `,at=i.css`
119
141
  .ft-typography--subtitle2 {
120
- font-family: ${E};
121
- font-size: ${R};
122
- font-weight: ${D};
123
- letter-spacing: ${N};
124
- line-height: ${A};
125
- text-transform: ${B};
142
+ font-family: ${O};
143
+ font-size: ${C};
144
+ font-weight: ${N};
145
+ letter-spacing: ${U};
146
+ line-height: ${D};
147
+ text-transform: ${z};
126
148
  }
127
149
 
128
150
  `,lt=i.css`
129
151
  .ft-typography--body1 {
130
- font-family: ${M.fontFamily};
131
- font-size: ${M.fontSize};
132
- font-weight: ${M.fontWeight};
133
- letter-spacing: ${M.letterSpacing};
134
- line-height: ${M.lineHeight};
135
- text-transform: ${M.textTransform};
152
+ font-family: ${B.fontFamily};
153
+ font-size: ${B.fontSize};
154
+ font-weight: ${B.fontWeight};
155
+ letter-spacing: ${B.letterSpacing};
156
+ line-height: ${B.lineHeight};
157
+ text-transform: ${B.textTransform};
136
158
  }
137
- `,dt=i.css`
159
+ `,ht=i.css`
138
160
  .ft-typography--body2 {
139
- font-family: ${U};
140
- font-size: ${j};
141
- font-weight: ${F};
142
- letter-spacing: ${L};
143
- line-height: ${P};
144
- text-transform: ${Z};
161
+ font-family: ${M};
162
+ font-size: ${F};
163
+ font-weight: ${L};
164
+ letter-spacing: ${P};
165
+ line-height: ${j};
166
+ text-transform: ${H};
145
167
  }
146
- `,ht=i.css`
168
+ `,dt=i.css`
147
169
  .ft-typography--caption {
148
- font-family: ${H.fontFamily};
149
- font-size: ${H.fontSize};
150
- font-weight: ${H.fontWeight};
151
- letter-spacing: ${H.letterSpacing};
152
- line-height: ${H.lineHeight};
153
- text-transform: ${H.textTransform};
170
+ font-family: ${Z.fontFamily};
171
+ font-size: ${Z.fontSize};
172
+ font-weight: ${Z.fontWeight};
173
+ letter-spacing: ${Z.letterSpacing};
174
+ line-height: ${Z.lineHeight};
175
+ text-transform: ${Z.textTransform};
154
176
  }
155
177
  `,ft=i.css`
156
178
  .ft-typography--breadcrumb {
157
- font-family: ${W};
179
+ font-family: ${K};
158
180
  font-size: ${V};
159
181
  font-weight: ${G};
160
- letter-spacing: ${K};
161
- line-height: ${Y};
162
- text-transform: ${q};
182
+ letter-spacing: ${W};
183
+ line-height: ${X};
184
+ text-transform: ${Y};
163
185
  }
164
186
  `,ct=i.css`
165
187
  .ft-typography--overline {
166
- font-family: ${X};
188
+ font-family: ${q};
167
189
  font-size: ${J};
168
190
  font-weight: ${Q};
169
191
  letter-spacing: ${tt};
@@ -300,7 +322,7 @@
300
322
  .ft-icon--material {
301
323
  font-family: ${gt.materialFontFamily}, "Material Icons", sans-serif;
302
324
  }
303
- `,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)),St=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),_t=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),It=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Ct=[i.css`
325
+ `,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)),St=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),_t=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Et=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),It=[i.css`
304
326
  :host {
305
327
  display: inline-block;
306
328
  max-width: 100%;
@@ -360,7 +382,7 @@
360
382
  .ft-button.ft-button--dense {
361
383
  padding: ${St} ${_t};
362
384
  border-radius: ${kt};
363
- gap: ${It};
385
+ gap: ${Et};
364
386
  }
365
387
 
366
388
  .ft-button.ft-button--dense.ft-button--outlined {
@@ -406,7 +428,7 @@
406
428
  }
407
429
 
408
430
  .ft-button--dense .ft-button--label {
409
- margin: 0 ${It};
431
+ margin: 0 ${Et};
410
432
  }
411
433
 
412
434
  .ft-button--label[hidden] {
@@ -437,7 +459,7 @@
437
459
  ${e.setVariable(vt.size,mt.iconSize)};
438
460
  ${e.setVariable(vt.color,"var(--ft-button-internal-color)")};
439
461
  }
440
- `,e.noTextSelect],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",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(S.fontSize,"Typography")},Ot=i.css`
462
+ `,e.noTextSelect],Tt={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)},Rt={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(S.fontSize,"Typography")},At=i.css`
441
463
  .ft-reader-feedback {
442
464
  box-sizing: border-box;
443
465
  display: flex;
@@ -483,14 +505,14 @@
483
505
  }
484
506
 
485
507
  .ft-reader-feedback--rating {
486
- ${e.setVariable(mt.color,Tt.emptyRatingColor)};
487
- ${e.setVariable(mt.rippleColor,Tt.filledRatingColor)};
488
- ${e.setVariable(zt.textColor,Tt.emptyRatingColor)};
489
- ${e.setVariable(zt.selectedTextColor,Tt.filledRatingColor)};
508
+ ${e.setVariable(mt.color,Rt.emptyRatingColor)};
509
+ ${e.setVariable(mt.rippleColor,Rt.filledRatingColor)};
510
+ ${e.setVariable(Tt.textColor,Rt.emptyRatingColor)};
511
+ ${e.setVariable(Tt.selectedTextColor,Rt.filledRatingColor)};
490
512
  }
491
513
 
492
514
  .ft-reader-feedback--rating .ft-reader-feedback--active {
493
- ${e.setVariable(mt.color,Tt.filledRatingColor)};
515
+ ${e.setVariable(mt.color,Rt.filledRatingColor)};
494
516
  }
495
517
 
496
518
  .ft-reader-feedback--feedback {
@@ -498,42 +520,42 @@
498
520
  }
499
521
 
500
522
  .ft-reader-feedback--rating-date {
501
- color: ${Tt.ratedDateColor};
523
+ color: ${Rt.ratedDateColor};
502
524
  }
503
525
 
504
526
  .ft-reader-feedback--feedback ft-text-area {
505
- min-width: ${Tt.feedbackInputMinWidth};
527
+ min-width: ${Rt.feedbackInputMinWidth};
506
528
  }
507
529
 
508
530
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
509
531
  align-self: flex-end;
510
- ${e.setVariable(mt.color,Tt.sendFeedbackColor)};
511
- ${e.setVariable(mt.backgroundColor,Tt.sendFeedbackBackgroundColor)};
532
+ ${e.setVariable(mt.color,Rt.sendFeedbackColor)};
533
+ ${e.setVariable(mt.backgroundColor,Rt.sendFeedbackBackgroundColor)};
512
534
  }
513
- `
535
+ `;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function f(t){var e=new FileReader,i=d(e);return e.readAsArrayBuffer(t),i}function c(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=c(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=c(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t,e,i,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,i=d(e),e.readAsText(t),i;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=r(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=r(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),a(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var i,o,s=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,s||null==t._bodyInit||(s=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),u.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(s)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),s=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(s))}})),e}function g(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},p.call(v.prototype),p.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];g.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function y(t,o){return new Promise((function(s,n){var r=new v(t,o);if(r.signal&&r.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function h(){a.abort()}a.onload=function(){var t,e,i={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),o=i.shift().trim();if(o){var s=i.join(":").trim();e.append(o,s)}})),e)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;s(new g(o,i))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(r.method,r.url,!0),"include"===r.credentials?a.withCredentials=!0:"omit"===r.credentials&&(a.withCredentials=!1),"responseType"in a&&i.blob&&(a.responseType="blob"),r.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),r.signal&&(r.signal.addEventListener("abort",h),a.onreadystatechange=function(){4===a.readyState&&r.signal.removeEventListener("abort",h)}),a.send(void 0===r._bodyInit?null:r._bodyInit)}))}y.polyfill=!0,t.fetch||(t.fetch=y,t.Headers=l,t.Request=v,t.Response=g),e.Headers=l,e.Request=v,e.Response=g,e.fetch=y,Object.defineProperty(e,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0);const Ot=t=>"object"==typeof t&&null!=t,Ct=t=>"string"==typeof t;var Nt,Ut,Dt,zt,Bt,Mt,Ft,Lt,Pt,jt,Ht,Zt;!function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Nt||(Nt={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ut||(Ut={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Dt||(Dt={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(zt||(zt={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Bt||(Bt={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Mt||(Mt={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ft||(Ft={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(Lt||(Lt={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Pt||(Pt={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(jt||(jt={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Ht||(Ht={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Zt||(Zt={}));const Kt=t=>Ot(t)&&(null==t.authenticationIdentifier||(t=>Ot(t)&&Ct(t.identifier)&&Ct(t.realm))(t.authenticationIdentifier))&&(t=>"number"==typeof t)(t.idleTimeoutInMillis)&&Vt(t.profile)&&(t=>"boolean"==typeof t)(t.sessionAuthenticated),Vt=t=>Ot(t)&&(null==t.emailAddress||Ct(t.emailAddress))&&(null==t.displayName||Ct(t.displayName))&&Array.isArray(t.roles)&&t.roles.every((t=>(t=>["PERSONAL_BOOK_USER","PERSONAL_BOOK_SHARE_USER","HTML_EXPORT_USER","PDF_EXPORT_USER","SAVED_SEARCH_USER","COLLECTION_USER","OFFLINE_USER","ANALYTICS_USER","BETA_USER","DEBUG_USER","PRINT_USER","RATING_USER","FEEDBACK_USER","CONTENT_PUBLISHER","KHUB_ADMIN","USERS_ADMIN","PORTAL_ADMIN","ADMIN","DEVELOPER"].includes(t))(t)))&&(null==t.userId||Ct(t.userId)),Gt={[Zt.PERSONAL_BOOK_SHARE_USER]:[Zt.PERSONAL_BOOK_USER],[Zt.HTML_EXPORT_USER]:[Zt.PERSONAL_BOOK_USER],[Zt.PDF_EXPORT_USER]:[Zt.PERSONAL_BOOK_USER],[Zt.KHUB_ADMIN]:[Zt.CONTENT_PUBLISHER],[Zt.ADMIN]:[Zt.KHUB_ADMIN,Zt.USERS_ADMIN,Zt.PORTAL_ADMIN],[Zt.DEVELOPER]:[Zt.BETA_USER,Zt.DEBUG_USER]};function Wt(t,e){return t===e||(Gt[t]??[]).some((t=>Wt(t,e)))}function Xt(t,e){return(Kt(t)?t.profile.roles:Vt(t)?t.roles:t).some((t=>Wt(t,e)))}
514
536
  /**
515
537
  * @license
516
538
  * Copyright 2017 Google LLC
517
539
  * SPDX-License-Identifier: BSD-3-Clause
518
- */;var Et;const Rt=window,Dt=Rt.trustedTypes,Nt=Dt?Dt.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",Bt=`lit$${(Math.random()+"").slice(9)}$`,Mt="?"+Bt,Ut=`<${Mt}>`,jt=document,Ft=()=>jt.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Pt=Array.isArray,Zt="[ \t\n\f\r]",Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wt=/-->/g,Vt=/>/g,Gt=RegExp(`>|${Zt}(?:([^\\s"'>=/]+)(${Zt}*=${Zt}*(?:[^ \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=jt.createTreeWalker(jt,129,null,!1),ie=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=Ht;for(let e=0;e<i;e++){const i=t[e];let a,l,d=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===Ht?"!--"===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:Ht,d=-1):void 0===l[1]?d=-2:(d=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=Ht:(r=Gt,s=void 0);const f=r===Gt&&t[e+1].startsWith("/>")?" ":"";n+=r===Ht?i+Ut:d>=0?(o.push(a),i.slice(0,d)+At+i.slice(d)+Bt+f):i+Bt+(-2===d?(o.push(void 0),e):f)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Nt?Nt.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,d]=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=d[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]?he:"@"===e[1]?fe: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===Mt)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=jt.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 d=Lt(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(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:jt).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.$(jt.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 de=Dt?Dt.emptyScript:"";class he extends ae{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Qt?this.element.setAttribute(this.name,de):this.element.removeAttribute(this.name)}}class fe 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 pe=Rt.litHtmlPolyfillSupport;null==pe||pe(oe,re),(null!==(Et=Rt.litHtmlVersions)&&void 0!==Et?Et:Rt.litHtmlVersions=[]).push("2.7.3");
540
+ */var Yt;const qt=window,Jt=qt.trustedTypes,Qt=Jt?Jt.createPolicy("lit-html",{createHTML:t=>t}):void 0,te="$lit$",ee=`lit$${(Math.random()+"").slice(9)}$`,ie="?"+ee,oe=`<${ie}>`,se=document,ne=()=>se.createComment(""),re=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ae=Array.isArray,le="[ \t\n\f\r]",he=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,de=/-->/g,fe=/>/g,ce=RegExp(`>|${le}(?:([^\\s"'>=/]+)(${le}*=${le}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),pe=/'/g,ue=/"/g,ve=/^(?:script|style|textarea|title)$/i,be=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),ge=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),ye=new WeakMap,me=se.createTreeWalker(se,129,null,!1),$e=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=he;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===he?"!--"===l[1]?r=de:void 0!==l[1]?r=fe:void 0!==l[2]?(ve.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=ce):void 0!==l[3]&&(r=ce):r===ce?">"===l[0]?(r=null!=s?s:he,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?ce:'"'===l[3]?ue:pe):r===ue||r===pe?r=ce:r===de||r===fe?r=he:(r=ce,s=void 0);const f=r===ce&&t[e+1].startsWith("/>")?" ":"";n+=r===he?i+oe:h>=0?(o.push(a),i.slice(0,h)+te+i.slice(h)+ee+f):i+ee+(-2===h?(o.push(void 0),e):f)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Qt?Qt.createHTML(a):a,o]};class we{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]=$e(t,e);if(this.el=we.createElement(l,i),me.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=me.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(te)||e.startsWith(ee)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+te).split(ee),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Ie:"?"===e[1]?Re:"@"===e[1]?Ae:Ee})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(ve.test(o.tagName)){const t=o.textContent.split(ee),e=t.length-1;if(e>0){o.textContent=Jt?Jt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],ne()),me.nextNode(),a.push({type:2,index:++s});o.append(t[e],ne())}}}else if(8===o.nodeType)if(o.data===ie)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(ee,t+1));)a.push({type:7,index:s}),t+=ee.length-1}s++}}static createElement(t,e){const i=se.createElement("template");return i.innerHTML=t,i}}function ke(t,e,i=t,o){var s,n,r,a;if(e===ge)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=re(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=ke(t,l._$AS(t,e.values),l,o)),e}class Se{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:se).importNode(i,!0);me.currentNode=s;let n=me.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new _e(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new Oe(n,this,t)),this._$AV.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=me.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 _e{constructor(t,e,i,o){var s;this.type=2,this._$AH=xe,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=ke(this,t,e),re(t)?t===xe||null==t||""===t?(this._$AH!==xe&&this._$AR(),this._$AH=xe):t!==this._$AH&&t!==ge&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ae(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!==xe&&re(this._$AH)?this._$AA.nextSibling.data=t:this.$(se.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=we.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 Se(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=ye.get(t.strings);return void 0===e&&ye.set(t.strings,e=new we(t)),e}T(t){ae(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 _e(this.k(ne()),this.k(ne()),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 Ee{constructor(t,e,i,o,s){this.type=1,this._$AH=xe,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=xe}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=ke(this,t,e,0),n=!re(t)||t!==this._$AH&&t!==ge,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=ke(this,o[i+r],e,r),a===ge&&(a=this._$AH[r]),n||(n=!re(a)||a!==this._$AH[r]),a===xe?t=xe:t!==xe&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Ie extends Ee{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===xe?void 0:t}}const Te=Jt?Jt.emptyScript:"";class Re extends Ee{constructor(){super(...arguments),this.type=4}j(t){t&&t!==xe?this.element.setAttribute(this.name,Te):this.element.removeAttribute(this.name)}}class Ae extends Ee{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=ke(this,t,e,0))&&void 0!==i?i:xe)===ge)return;const o=this._$AH,s=t===xe&&o!==xe||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==xe&&(o===xe||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 Oe{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){ke(this,t)}}const Ce=qt.litHtmlPolyfillSupport;null==Ce||Ce(we,_e),(null!==(Yt=qt.litHtmlVersions)&&void 0!==Yt?Yt:qt.litHtmlVersions=[]).push("2.7.3");
519
541
  /**
520
542
  * @license
521
543
  * Copyright 2020 Google LLC
522
544
  * SPDX-License-Identifier: BSD-3-Clause
523
545
  */
524
- const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void 0:t._$litStatic$},be=t=>({_$litStatic$:t,r:ue}),ge=new Map,xe=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],a=[];let l,d=0,h=!1;for(;d<o;){for(l=e[d];d<o&&void 0!==(n=i[d],s=ve(n));)l+=s+e[++d],h=!0;d!==o&&a.push(n),r.push(l),d++}if(d===o&&r.push(e[o]),h){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 Se extends e.FtLitElement{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?xe`
525
- <${be(this.element)}
546
+ const Ne=Symbol.for(""),Ue=t=>{if((null==t?void 0:t.r)===Ne)return null==t?void 0:t._$litStatic$},De=t=>({_$litStatic$:t,r:Ne}),ze=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=Ue(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=ze.get(t))&&(r.raw=r,ze.set(t,e=r)),i=a}return t(e,...i)})(be);var Me;!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"}(Me||(Me={}));var Fe,Le,Pe,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 He extends e.FtLitElement{constructor(){super(...arguments),this.variant=Me.body1}render(){return this.element?Be`
547
+ <${De(this.element)}
526
548
  class="ft-typography ft-typography--${this.variant}">
527
549
  <slot></slot>
528
- </${be(this.element)}>
529
- `:xe`
550
+ </${De(this.element)}>
551
+ `:Be`
530
552
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
531
- `}}Se.styles=[st,nt,rt,at,lt,dt,ht,ft,ct,pt,ut],ke([o.property()],Se.prototype,"element",void 0),ke([o.property()],Se.prototype,"variant",void 0),e.customElement("ft-typography")(Se),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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(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 _e=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`
553
+ `}}He.styles=[st,nt,rt,at,lt,ht,dt,ft,ct,pt,ut],je([o.property()],He.prototype,"element",void 0),je([o.property()],He.prototype,"variant",void 0),e.customElement("ft-typography")(He),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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Fe||(Fe={})),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;"}(Le||(Le={})),new Map([...["abw"].map((t=>[t,Le.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,Le.AUDIO])),...["avi"].map((t=>[t,Le.AVI])),...["chm","xhs"].map((t=>[t,Le.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,Le.CODE])),...["csv"].map((t=>[t,Le.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Le.DITA])),...["epub"].map((t=>[t,Le.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Le.EXCEL])),...["flac"].map((t=>[t,Le.FLAC])),...["gif"].map((t=>[t,Le.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Le.GZIP])),...["html","htm","xhtml"].map((t=>[t,Le.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,Le.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Le.JPEG])),...["json"].map((t=>[t,Le.JSON])),...["m4a","m4p"].map((t=>[t,Le.M4A])),...["mov","qt"].map((t=>[t,Le.MOV])),...["mp3"].map((t=>[t,Le.MP3])),...["mp4","m4v"].map((t=>[t,Le.MP4])),...["ogg","oga"].map((t=>[t,Le.OGG])),...["pdf","ps"].map((t=>[t,Le.PDF])),...["png"].map((t=>[t,Le.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Le.POWERPOINT])),...["rar"].map((t=>[t,Le.RAR])),...["stp"].map((t=>[t,Le.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Le.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,Le.VIDEO])),...["wav"].map((t=>[t,Le.WAV])),...["wma"].map((t=>[t,Le.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Le.WORD])),...["xml","xsl","rdf"].map((t=>[t,Le.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Le.YAML])),...["zip"].map((t=>[t,Le.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Pe||(Pe={}));var Ze=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(){const t=this.variant&&Object.values(Pe).includes(this.variant)?this.variant:Pe.fluid_topics,e=t!==Pe.material||!!this.value;return i.html`
532
554
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
533
555
  ${s.unsafeHTML(this.resolvedIcon)}
534
556
  <slot ?hidden=${e}></slot>
535
557
  </i>
536
- `}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,_e([o.property()],Ie.prototype,"variant",void 0),_e([o.property()],Ie.prototype,"value",void 0),_e([o.state()],Ie.prototype,"resolvedIcon",void 0),_e([o.query("slot")],Ie.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Ie);const Ce=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),ze=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","100"),Ee=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Re=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),De=i.css`
558
+ `}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 Pe.file_format:this.resolvedIcon=null!==(t=Le[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Pe.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=Fe[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ke.elementDefinitions={},Ke.styles=xt,Ze([o.property()],Ke.prototype,"variant",void 0),Ze([o.property()],Ke.prototype,"value",void 0),Ze([o.state()],Ke.prototype,"resolvedIcon",void 0),Ze([o.query("slot")],Ke.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Ke);const Ve=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ge=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),We=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Xe=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),Ye=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),qe=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Je=i.css`
537
559
  .ft-tooltip--container {
538
560
  display: block;
539
561
  }
@@ -548,21 +570,21 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
548
570
  box-sizing: border-box;
549
571
  overflow: hidden;
550
572
  width: max-content;
551
- max-width: ${Re};
573
+ max-width: ${qe};
552
574
  text-align: center;
553
- padding: ${Ce};
554
- z-index: ${Oe};
575
+ padding: ${Ve};
576
+ z-index: ${Xe};
555
577
  }
556
578
 
557
579
  .ft-tooltip--content {
558
580
  padding: 4px 8px;
559
- border-radius: ${Ee};
560
- background-color: ${Te};
561
- color: ${ze};
581
+ border-radius: ${Ye};
582
+ background-color: ${We};
583
+ color: ${Ge};
562
584
  position: relative;
563
585
  word-break: break-word;
564
586
  }
565
- `;var Ne=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`
587
+ `;var Qe=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 ti 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`
566
588
  <div part="container"
567
589
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
568
590
  @mouseenter=${this.onHover}
@@ -580,14 +602,8 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
580
602
  </div>
581
603
  </div>
582
604
  </div>
583
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=n+"px",a.top=r+"px";const l=this.tooltip.getBoundingClientRect();let d=-l.x,h=l.x+l.width-window.innerWidth;a.left=n+Math.round(this.correctOutOfWindowPixels(d,h))+"px";let f=-l.y,c=l.y+l.height-window.innerHeight;a.top=r+Math.round(this.correctOutOfWindowPixels(f,c))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${Re})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Ae.elementDefinitions={"ft-typography":Se},Ae.styles=De,Ne([o.property()],Ae.prototype,"text",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"manual",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"inline",void 0),Ne([o.property({type:Number})],Ae.prototype,"delay",void 0),Ne([o.property()],Ae.prototype,"position",void 0),Ne([o.queryAssignedNodes("",!0)],Ae.prototype,"slotNodes",void 0),Ne([o.query(".ft-tooltip--container")],Ae.prototype,"container",void 0),Ne([o.query(".ft-tooltip")],Ae.prototype,"tooltip",void 0),Ne([o.query(".ft-tooltip--content")],Ae.prototype,"tooltipContent",void 0),Ne([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 Me 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.isFocusVisible(null==t?void 0:t.target)&&!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`
605
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=n+"px",a.top=r+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,d=l.x+l.width-window.innerWidth;a.left=n+Math.round(this.correctOutOfWindowPixels(h,d))+"px";let f=-l.y,c=l.y+l.height-window.innerHeight;a.top=r+Math.round(this.correctOutOfWindowPixels(f,c))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${qe})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ti.elementDefinitions={"ft-typography":He},ti.styles=Je,Qe([o.property()],ti.prototype,"text",void 0),Qe([o.property({type:Boolean})],ti.prototype,"manual",void 0),Qe([o.property({type:Boolean})],ti.prototype,"inline",void 0),Qe([o.property({type:Number})],ti.prototype,"delay",void 0),Qe([o.property()],ti.prototype,"position",void 0),Qe([o.queryAssignedNodes("",!0)],ti.prototype,"slotNodes",void 0),Qe([o.query(".ft-tooltip--container")],ti.prototype,"container",void 0),Qe([o.query(".ft-tooltip")],ti.prototype,"tooltip",void 0),Qe([o.query(".ft-tooltip--content")],ti.prototype,"tooltipContent",void 0),Qe([o.state()],ti.prototype,"visible",void 0),e.customElement("ft-tooltip")(ti);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.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.originX=0,this.originY=0,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.isFocusVisible(null==t?void 0:t.target)&&!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`
584
606
  <style>
585
- .ft-ripple .ft-ripple--effect,
586
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
587
- width: ${this.rippleSize}px;
588
- height: ${this.rippleSize}px;
589
- }
590
-
591
607
  .ft-ripple .ft-ripple--effect {
592
608
  left: ${this.originX}px;
593
609
  top: ${this.originY}px;
@@ -597,7 +613,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
597
613
  <div class="ft-ripple--background"></div>
598
614
  <div class="ft-ripple--effect"></div>
599
615
  </div>
600
- `}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((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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()}}Me.elementDefinitions={},Me.styles=y,Be([o.property({type:Boolean})],Me.prototype,"primary",void 0),Be([o.property({type:Boolean})],Me.prototype,"secondary",void 0),Be([o.property({type:Boolean})],Me.prototype,"unbounded",void 0),Be([o.property({type:Boolean})],Me.prototype,"activated",void 0),Be([o.property({type:Boolean})],Me.prototype,"selected",void 0),Be([o.property({type:Boolean})],Me.prototype,"disabled",void 0),Be([o.state()],Me.prototype,"hovered",void 0),Be([o.state()],Me.prototype,"focused",void 0),Be([o.state()],Me.prototype,"pressed",void 0),Be([o.state()],Me.prototype,"rippling",void 0),Be([o.state()],Me.prototype,"rippleSize",void 0),Be([o.state()],Me.prototype,"originX",void 0),Be([o.state()],Me.prototype,"originY",void 0),Be([o.query(".ft-ripple")],Me.prototype,"ripple",void 0),Be([o.query(".ft-ripple--effect")],Me.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Me);const Ue={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")},je=i.css`
616
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}ii.elementDefinitions={},ii.styles=y,ei([o.property({type:Boolean})],ii.prototype,"primary",void 0),ei([o.property({type:Boolean})],ii.prototype,"secondary",void 0),ei([o.property({type:Boolean})],ii.prototype,"unbounded",void 0),ei([o.property({type:Boolean})],ii.prototype,"activated",void 0),ei([o.property({type:Boolean})],ii.prototype,"selected",void 0),ei([o.property({type:Boolean})],ii.prototype,"disabled",void 0),ei([o.state()],ii.prototype,"hovered",void 0),ei([o.state()],ii.prototype,"focused",void 0),ei([o.state()],ii.prototype,"pressed",void 0),ei([o.state()],ii.prototype,"rippling",void 0),ei([o.state()],ii.prototype,"originX",void 0),ei([o.state()],ii.prototype,"originY",void 0),ei([o.query(".ft-ripple")],ii.prototype,"ripple",void 0),ei([o.query(".ft-ripple--effect")],ii.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ii);const oi={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")},si=i.css`
601
617
  .ft-switch-option {
602
618
  position: relative;
603
619
  display: inline-block;
@@ -611,20 +627,20 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
611
627
  }
612
628
 
613
629
  .ft-switch-option--content {
614
- --ft-switch-option-internal-line-height: calc(${zt.fontSize} + 2px);
615
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${zt.iconSize});
630
+ --ft-switch-option-internal-line-height: calc(${Tt.fontSize} + 2px);
631
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Tt.iconSize});
616
632
 
617
633
  border-style: solid;
618
- border-color: ${zt.borderColor};
619
- border-width: ${Ue.borderWidthVertical} ${Ue.borderWidthRight} ${Ue.borderWidthVertical} ${Ue.borderWidthLeft};
620
- border-radius: ${Ue.borderRadiusLeft} ${Ue.borderRadiusRight} ${Ue.borderRadiusRight} ${Ue.borderRadiusLeft};
634
+ border-color: ${Tt.borderColor};
635
+ border-width: ${oi.borderWidthVertical} ${oi.borderWidthRight} ${oi.borderWidthVertical} ${oi.borderWidthLeft};
636
+ border-radius: ${oi.borderRadiusLeft} ${oi.borderRadiusRight} ${oi.borderRadiusRight} ${oi.borderRadiusLeft};
621
637
  display: flex;
622
638
  align-items: center;
623
639
  justify-content: center;
624
640
  overflow: hidden;
625
- ${e.setVariable(gt.size,zt.iconSize)};
641
+ ${e.setVariable(gt.size,Tt.iconSize)};
626
642
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
627
- background-color: ${zt.backgroundColor};
643
+ background-color: ${Tt.backgroundColor};
628
644
  -webkit-mask-image: radial-gradient(white, black);
629
645
  }
630
646
 
@@ -633,8 +649,8 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
633
649
  }
634
650
 
635
651
  .ft-switch-option--selected .ft-switch-option--content:before {
636
- background-color: ${zt.selectedBackgroundColor};
637
- border-radius: ${Ue.borderRadiusLeft} ${Ue.borderRadiusRight} ${Ue.borderRadiusRight} ${Ue.borderRadiusLeft};
652
+ background-color: ${Tt.selectedBackgroundColor};
653
+ border-radius: ${oi.borderRadiusLeft} ${oi.borderRadiusRight} ${oi.borderRadiusRight} ${oi.borderRadiusLeft};
638
654
  position: absolute;
639
655
  inset: 0;
640
656
  content: "";
@@ -643,18 +659,18 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
643
659
  }
644
660
 
645
661
  .ft-switch-option--label {
646
- color: ${zt.textColor};
662
+ color: ${Tt.textColor};
647
663
  overflow: hidden;
648
664
  white-space: nowrap;
649
665
  text-overflow: ellipsis;
650
666
  display: block;
651
667
  margin: 0 8px;
652
- ${e.setVariable(ot.fontSize,zt.fontSize)};
668
+ ${e.setVariable(ot.fontSize,Tt.fontSize)};
653
669
  ${e.setVariable(ot.lineHeight,"var(--ft-switch-option-internal-content-height)")}
654
670
  }
655
671
 
656
672
  .ft-switch-option--selected .ft-switch-option--label {
657
- color: ${zt.selectedTextColor};
673
+ color: ${Tt.selectedTextColor};
658
674
  }
659
675
 
660
676
  .ft-switch-option--label[hidden] {
@@ -662,7 +678,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
662
678
  }
663
679
 
664
680
  .ft-switch-option--ripple {
665
- ${e.setVariable(c.color,zt.rippleColor)};
681
+ ${e.setVariable(c.color,Tt.rippleColor)};
666
682
  }
667
683
 
668
684
  ft-icon, ft-ripple, ft-typography {
@@ -675,13 +691,13 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
675
691
 
676
692
  ft-icon {
677
693
  flex-shrink: 0;
678
- color: ${zt.iconColor};
694
+ color: ${Tt.iconColor};
679
695
  }
680
696
 
681
697
  .ft-switch-option--selected ft-icon {
682
- color: ${zt.selectedTextColor};
698
+ color: ${Tt.selectedTextColor};
683
699
  }
684
- `;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("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Pe extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Ze 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 Pe(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(i.html`
700
+ `;var ni=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 ri extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class ai extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class li 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()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new ai(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(i.html`
685
701
  <label part="label" for="input" class=${n.classMap(t)}
686
702
  @click=${this.onChange}>
687
703
  <div class="ft-switch-option--content">
@@ -703,23 +719,23 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
703
719
  position="${this.tooltipPosition}">
704
720
  ${t}
705
721
  </ft-tooltip>
706
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Le(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?i.html`
722
+ `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new ri(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?i.html`
707
723
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
708
- `: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()}}Ze.elementDefinitions={"ft-ripple":Me,"ft-typography":Se,"ft-tooltip":Ae,"ft-icon":Ie},Ze.styles=[e.safariEllipsisFix,je],Fe([o.property()],Ze.prototype,"value",void 0),Fe([o.property()],Ze.prototype,"icon",void 0),Fe([o.property()],Ze.prototype,"iconVariant",void 0),Fe([o.property()],Ze.prototype,"label",void 0),Fe([o.property()],Ze.prototype,"tooltipPosition",void 0),Fe([o.property({type:Boolean,reflect:!0})],Ze.prototype,"selected",void 0),Fe([o.property({type:Boolean})],Ze.prototype,"trailingIcon",void 0),Fe([o.property({type:Boolean})],Ze.prototype,"unselectable",void 0),Fe([o.query(".ft-switch-option--content slot")],Ze.prototype,"slottedContent",void 0),Fe([o.query(".ft-switch-option--input")],Ze.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 We extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ve 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){super.updated(t),t.has("selectedOption")&&this.updateOptions(),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`
724
+ `: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()}}li.elementDefinitions={"ft-ripple":ii,"ft-typography":He,"ft-tooltip":ti,"ft-icon":Ke},li.styles=[e.safariEllipsisFix,si],ni([o.property()],li.prototype,"value",void 0),ni([o.property()],li.prototype,"icon",void 0),ni([o.property()],li.prototype,"iconVariant",void 0),ni([o.property()],li.prototype,"label",void 0),ni([o.property()],li.prototype,"tooltipPosition",void 0),ni([o.property({type:Boolean,reflect:!0})],li.prototype,"selected",void 0),ni([o.property({type:Boolean})],li.prototype,"trailingIcon",void 0),ni([o.property({type:Boolean})],li.prototype,"unselectable",void 0),ni([o.query(".ft-switch-option--content slot")],li.prototype,"slottedContent",void 0),ni([o.query(".ft-switch-option--input")],li.prototype,"input",void 0);var hi=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 di extends CustomEvent{constructor(t){super("change",{detail:t})}}class fi 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}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),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
725
  <div @keydown=${this.onKeyDown} tabindex="0" class="${n.classMap(t)}">
710
726
  <slot @slotchange=${this.onSlotchange}
711
727
  @option-change=${this.onOptionChangeByScript}
712
728
  @option-change-by-user=${this.onOptionChangeByUser}
713
729
  ></slot>
714
730
  </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 Ze&&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)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new We(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}Ve.elementDefinitions={},Ve.styles=i.css`
731
+ `}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 li&&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)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new di(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}fi.elementDefinitions={},fi.styles=i.css`
716
732
  :host {
717
733
  display: inline-block;
718
734
  }
719
735
 
720
736
  .ft-switch {
721
- border-radius: ${zt.borderRadius};
722
- outline-color: ${zt.outlineColor};
737
+ border-radius: ${Tt.borderRadius};
738
+ outline-color: ${Tt.outlineColor};
723
739
  }
724
740
 
725
741
  .ft-switch slot {
@@ -728,25 +744,25 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
728
744
  }
729
745
 
730
746
  .ft-switch slot::slotted(ft-switch-option) {
731
- ${e.setVariable(Ue.borderRadiusLeft,"0")};
732
- ${e.setVariable(Ue.borderRadiusRight,"0")};
733
- ${e.setVariable(Ue.borderWidthLeft,"0")};
747
+ ${e.setVariable(oi.borderRadiusLeft,"0")};
748
+ ${e.setVariable(oi.borderRadiusRight,"0")};
749
+ ${e.setVariable(oi.borderWidthLeft,"0")};
734
750
  }
735
751
 
736
752
  .ft-switch slot::slotted(ft-switch-option:first-child) {
737
- ${e.setVariable(Ue.borderRadiusLeft,zt.borderRadius)};
738
- ${e.setVariable(Ue.borderWidthLeft,"1px")};
753
+ ${e.setVariable(oi.borderRadiusLeft,Tt.borderRadius)};
754
+ ${e.setVariable(oi.borderWidthLeft,"1px")};
739
755
  }
740
756
 
741
757
  .ft-switch slot::slotted(ft-switch-option:last-child) {
742
- ${e.setVariable(Ue.borderRadiusRight,zt.borderRadius)};
758
+ ${e.setVariable(oi.borderRadiusRight,Tt.borderRadius)};
743
759
  }
744
760
 
745
761
  .ft-switch--dense slot::slotted(ft-switch-option) {
746
762
  --ft-switch-internal-vertical-padding: 2px;
747
763
  --ft-switch-internal-horizontal-padding: 4px;
748
764
  }
749
- `,He([o.property({type:Boolean})],Ve.prototype,"dense",void 0),He([o.property({type:Boolean})],Ve.prototype,"unselectable",void 0),He([o.query(".ft-switch slot")],Ve.prototype,"slottedContent",void 0),He([o.state()],Ve.prototype,"selectedOption",void 0),He([o.query(".ft-switch")],Ve.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(Ve),e.customElement("ft-switch-option")(Ze);const Ge=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Ke=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),Ye=i.css`
765
+ `,hi([o.property({type:Boolean})],fi.prototype,"dense",void 0),hi([o.property({type:Boolean})],fi.prototype,"unselectable",void 0),hi([o.query(".ft-switch slot")],fi.prototype,"slottedContent",void 0),hi([o.state()],fi.prototype,"selectedOption",void 0),hi([o.query(".ft-switch")],fi.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(fi),e.customElement("ft-switch-option")(li);const ci=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),pi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),ui=i.css`
750
766
  :host {
751
767
  display: block;
752
768
  }
@@ -757,14 +773,14 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
757
773
 
758
774
  ft-icon {
759
775
  transform: rotate(-45deg);
760
- color: ${Ge};
776
+ color: ${ci};
761
777
  }
762
778
 
763
779
  .ft-resizer--dragging ft-icon,
764
780
  .ft-resizer:hover ft-icon {
765
- color: ${Ke};
781
+ color: ${pi};
766
782
  }
767
- `;var qe=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 Xe extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Je 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`
783
+ `;var vi=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 CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class gi extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Pe.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
784
  <style>
769
785
  .ft-resizer {
770
786
  cursor: ${i.unsafeCSS(this.cursor)}
@@ -775,25 +791,25 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
775
791
  @touchstart=${this.initDragFromTouch}>
776
792
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
777
793
  </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 Xe(i,o))}}Je.elementDefinitions={"ft-icon":Ie},Je.styles=[e.noTextSelect,Ye],qe([o.property({type:Number})],Je.prototype,"initialWidth",void 0),qe([o.property({type:Number})],Je.prototype,"initialHeight",void 0),qe([o.property()],Je.prototype,"icon",void 0),qe([o.property()],Je.prototype,"iconVariant",void 0),qe([o.property()],Je.prototype,"cursor",void 0),qe([o.state()],Je.prototype,"dragging",void 0),e.customElement("ft-resizer")(Je);const Qe={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")},ti=i.css`
794
+ `}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 bi(i,o))}}gi.elementDefinitions={"ft-icon":Ke},gi.styles=[e.noTextSelect,ui],vi([o.property({type:Number})],gi.prototype,"initialWidth",void 0),vi([o.property({type:Number})],gi.prototype,"initialHeight",void 0),vi([o.property()],gi.prototype,"icon",void 0),vi([o.property()],gi.prototype,"iconVariant",void 0),vi([o.property()],gi.prototype,"cursor",void 0),vi([o.state()],gi.prototype,"dragging",void 0),e.customElement("ft-resizer")(gi);const xi={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")},yi=i.css`
779
795
  .ft-input-label {
780
796
  position: absolute;
781
797
  inset: 0;
782
798
  display: flex;
783
- background-color: ${Qe.colorSurface};
784
- border-radius: ${Qe.borderRadiusS} ${Qe.borderRadiusS} 0 0;
799
+ background-color: ${xi.colorSurface};
800
+ border-radius: ${xi.borderRadiusS} ${xi.borderRadiusS} 0 0;
785
801
  }
786
802
 
787
803
  .ft-input-label--outlined {
788
- border-radius: ${Qe.borderRadiusS};
804
+ border-radius: ${xi.borderRadiusS};
789
805
  }
790
806
 
791
807
  .ft-input-label {
792
- border-color: ${Qe.borderColor};
808
+ border-color: ${xi.borderColor};
793
809
  }
794
810
 
795
811
  .ft-input-label.ft-input-label--in-error {
796
- border-color: ${Qe.colorError}
812
+ border-color: ${xi.colorError}
797
813
  }
798
814
 
799
815
  .ft-input-label:before,
@@ -806,7 +822,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
806
822
  }
807
823
 
808
824
  .ft-input-label:before {
809
- width: calc(${Qe.horizontalSpacing} - 4px);
825
+ width: calc(${xi.horizontalSpacing} - 4px);
810
826
  flex-shrink: 0;
811
827
  }
812
828
 
@@ -822,20 +838,20 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
822
838
  border-bottom-width: 1px;
823
839
  border-bottom-style: solid;
824
840
  border-color: inherit;
825
- color: ${Qe.textColor};
841
+ color: ${xi.textColor};
826
842
  transition: font-size 250ms, line-height 250ms, color 250ms;
827
- max-width: calc(${Qe.labelMaxWidth} - 2 * (${Qe.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
843
+ max-width: calc(${xi.labelMaxWidth} - 2 * (${xi.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
828
844
  text-overflow: ellipsis;
829
- ${e.setVariable(H.fontSize,Qe.fontSize)};
830
- ${e.setVariable(H.lineHeight,Qe.fontSize)};
845
+ ${e.setVariable(Z.fontSize,xi.fontSize)};
846
+ ${e.setVariable(Z.lineHeight,xi.fontSize)};
831
847
  }
832
848
 
833
849
  .ft-input-label--in-error .ft-input-label--text {
834
- color: ${Qe.colorError}
850
+ color: ${xi.colorError}
835
851
  }
836
852
 
837
853
  .ft-input-label--disabled .ft-input-label--text {
838
- color: ${Qe.disabledTextColor};
854
+ color: ${xi.disabledTextColor};
839
855
  }
840
856
 
841
857
  .ft-input-label--hidden-text {
@@ -852,19 +868,19 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
852
868
  overflow: hidden;
853
869
  white-space: nowrap;
854
870
  text-overflow: ellipsis;
855
- padding: ${Qe.verticalSpacing} 4px;
856
- margin: calc(${Qe.verticalSpacing} * -1) 0;
871
+ padding: ${xi.verticalSpacing} 4px;
872
+ margin: calc(${xi.verticalSpacing} * -1) 0;
857
873
  max-width: 100%;
858
874
  box-sizing: border-box;
859
875
  }
860
876
 
861
877
  .ft-input-label--raised .ft-input-label--text {
862
- ${e.setVariable(H.fontSize,Qe.raisedFontSize)};
863
- ${e.setVariable(H.lineHeight,Qe.raisedFontSize)};
878
+ ${e.setVariable(Z.fontSize,xi.raisedFontSize)};
879
+ ${e.setVariable(Z.lineHeight,xi.raisedFontSize)};
864
880
  }
865
881
 
866
882
  .ft-input-label--raised .ft-input-label--floating-text {
867
- top: ${Qe.verticalSpacing};
883
+ top: ${xi.verticalSpacing};
868
884
  }
869
885
 
870
886
  .ft-input-label--outlined .ft-input-label--text,
@@ -877,27 +893,27 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
877
893
  .ft-input-label--outlined:before {
878
894
  border-left-width: 1px;
879
895
  border-left-style: solid;
880
- border-radius: ${Qe.borderRadiusS} 0 0 ${Qe.borderRadiusS};
896
+ border-radius: ${xi.borderRadiusS} 0 0 ${xi.borderRadiusS};
881
897
  }
882
898
 
883
899
  .ft-input-label--outlined:after {
884
900
  border-right-width: 1px;
885
901
  border-right-style: solid;
886
- border-radius: 0 ${Qe.borderRadiusS} ${Qe.borderRadiusS} 0;
902
+ border-radius: 0 ${xi.borderRadiusS} ${xi.borderRadiusS} 0;
887
903
  }
888
904
 
889
905
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
890
906
  padding: 2px 4px;
891
- z-index: ${Qe.raisedZIndex};
892
- background-color: ${Qe.colorSurface};
893
- border-radius: ${Qe.borderRadiusS};
907
+ z-index: ${xi.raisedZIndex};
908
+ background-color: ${xi.colorSurface};
909
+ border-radius: ${xi.borderRadiusS};
894
910
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
895
911
  }
896
912
 
897
913
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
898
914
  border-top: none;
899
915
  }
900
- `;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.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`
916
+ `;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 $i 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
917
  <div class="${n.classMap(t)}">
902
918
  ${this.text?i.html`
903
919
  <div class="ft-input-label--text ft-typography--caption">
@@ -906,7 +922,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
906
922
  </div>
907
923
  `:null}
908
924
  </div>
909
- `}}ii.elementDefinitions={},ii.styles=[ht,ti],ei([o.property({type:String})],ii.prototype,"text",void 0),ei([o.property({type:Boolean})],ii.prototype,"raised",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),e.customElement("ft-input-label")(ii);const oi={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")},si=i.css`
925
+ `}}$i.elementDefinitions={},$i.styles=[dt,yi],mi([o.property({type:String})],$i.prototype,"text",void 0),mi([o.property({type:Boolean})],$i.prototype,"raised",void 0),mi([o.property({type:Boolean})],$i.prototype,"outlined",void 0),mi([o.property({type:Boolean})],$i.prototype,"disabled",void 0),mi([o.property({type:Boolean})],$i.prototype,"error",void 0),e.customElement("ft-input-label")($i);const wi={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")},ki=i.css`
910
926
  *:focus {
911
927
  outline: none;
912
928
  }
@@ -918,10 +934,10 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
918
934
  }
919
935
 
920
936
  ft-input-label {
921
- ${e.setVariable(Qe.fontSize,oi.fontSize)};
922
- ${e.setVariable(Qe.raisedFontSize,oi.labelSize)};
923
- ${e.setVariable(Qe.verticalSpacing,oi.verticalSpacing)};
924
- ${e.setVariable(Qe.horizontalSpacing,oi.horizontalSpacing)};
937
+ ${e.setVariable(xi.fontSize,wi.fontSize)};
938
+ ${e.setVariable(xi.raisedFontSize,wi.labelSize)};
939
+ ${e.setVariable(xi.verticalSpacing,wi.verticalSpacing)};
940
+ ${e.setVariable(xi.horizontalSpacing,wi.horizontalSpacing)};
925
941
  }
926
942
 
927
943
  .ft-text-area--main-panel {
@@ -952,12 +968,12 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
952
968
  align-self: stretch;
953
969
  resize: none;
954
970
 
955
- ${e.setVariable(M.fontSize,oi.fontSize)};
956
- ${e.setVariable(M.lineHeight,oi.fontSize)};
957
- color: ${oi.colorOnSurface};
971
+ ${e.setVariable(B.fontSize,wi.fontSize)};
972
+ ${e.setVariable(B.lineHeight,wi.fontSize)};
973
+ color: ${wi.colorOnSurface};
958
974
 
959
- padding: 0 ${oi.horizontalSpacing};
960
- margin: calc(${oi.verticalSpacing} + ${oi.labelSize} / 2) 0 ${oi.verticalSpacing} 0;
975
+ padding: 0 ${wi.horizontalSpacing};
976
+ margin: calc(${wi.verticalSpacing} + ${wi.labelSize} / 2) 0 ${wi.verticalSpacing} 0;
961
977
 
962
978
  border: none;
963
979
  background: none;
@@ -966,7 +982,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
966
982
  }
967
983
 
968
984
  .ft-text-area--disabled .ft-text-area--input {
969
- color: ${oi.colorOnSurfaceDisabled};
985
+ color: ${wi.colorOnSurfaceDisabled};
970
986
  }
971
987
 
972
988
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -974,42 +990,42 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
974
990
  }
975
991
 
976
992
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
977
- ${e.setVariable(Qe.borderColor,oi.colorPrimary)};
978
- ${e.setVariable(Qe.textColor,oi.colorPrimary)};
993
+ ${e.setVariable(xi.borderColor,wi.colorPrimary)};
994
+ ${e.setVariable(xi.textColor,wi.colorPrimary)};
979
995
  }
980
996
 
981
997
  .ft-text-area--filled .ft-text-area--input-panel {
982
- border-radius: ${oi.borderRadiusS} ${oi.borderRadiusS} 0 0;
998
+ border-radius: ${wi.borderRadiusS} ${wi.borderRadiusS} 0 0;
983
999
  }
984
1000
 
985
1001
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
986
1002
  align-self: stretch;
987
- margin-bottom: ${oi.verticalSpacing};
988
- margin-top: calc(${oi.labelSize} + 2 * ${oi.verticalSpacing});
1003
+ margin-bottom: ${wi.verticalSpacing};
1004
+ margin-top: calc(${wi.labelSize} + 2 * ${wi.verticalSpacing});
989
1005
  }
990
1006
 
991
1007
  .ft-text-area--outlined .ft-text-area--input-panel {
992
- border-radius: ${oi.borderRadiusS};
1008
+ border-radius: ${wi.borderRadiusS};
993
1009
  }
994
1010
 
995
1011
  .ft-text-area--helper-text {
996
- padding: 0 12px 0 ${oi.horizontalSpacing};
997
- color: ${oi.helperColor};
1012
+ padding: 0 12px 0 ${wi.horizontalSpacing};
1013
+ color: ${wi.helperColor};
998
1014
  }
999
1015
 
1000
1016
  .ft-text-area--in-error .ft-text-area--input,
1001
1017
  .ft-text-area--in-error .ft-text-area--helper-text {
1002
- color: ${oi.colorError};
1018
+ color: ${wi.colorError};
1003
1019
  }
1004
1020
 
1005
1021
  ft-resizer {
1006
1022
  position: absolute;
1007
1023
  bottom: 0;
1008
1024
  }
1009
- `;var ni=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 ri 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`
1025
+ `;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 _i 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
1026
  <style>
1011
1027
  .ft-text-area--main-panel {
1012
- height: calc(4 * ${oi.verticalSpacing} + ${oi.labelSize} + ${oi.fontSize} + ${this.height}px);
1028
+ height: calc(4 * ${wi.verticalSpacing} + ${wi.labelSize} + ${wi.fontSize} + ${this.height}px);
1013
1029
  }
1014
1030
 
1015
1031
  ft-resizer {
@@ -1048,14 +1064,14 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1048
1064
  ${this.helper}
1049
1065
  </ft-typography>`:void 0}
1050
1066
  </div>
1051
- `}setValue(t,e=!1){this.value=t,e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}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)||"",this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}ri.elementDefinitions={"ft-input-label":ii,"ft-resizer":Je,"ft-ripple":Me,"ft-typography":Se},ri.styles=[lt,si],ni([o.property({type:String})],ri.prototype,"label",void 0),ni([o.property({reflect:!0})],ri.prototype,"value",void 0),ni([o.property({type:String})],ri.prototype,"helper",void 0),ni([o.property({type:Boolean})],ri.prototype,"outlined",void 0),ni([o.property({type:Boolean})],ri.prototype,"disabled",void 0),ni([o.property({type:Boolean})],ri.prototype,"error",void 0),ni([o.property({type:Number,reflect:!0})],ri.prototype,"height",void 0),ni([o.query("textarea")],ri.prototype,"textarea",void 0),ni([o.state()],ri.prototype,"focused",void 0),e.customElement("ft-text-area")(ri);class ai extends e.FtLitElement{render(){return i.html`
1067
+ `}setValue(t,e=!1){this.value=t,e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}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)||"",this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}_i.elementDefinitions={"ft-input-label":$i,"ft-resizer":gi,"ft-ripple":ii,"ft-typography":He},_i.styles=[lt,ki],Si([o.property({type:String})],_i.prototype,"label",void 0),Si([o.property({reflect:!0})],_i.prototype,"value",void 0),Si([o.property({type:String})],_i.prototype,"helper",void 0),Si([o.property({type:Boolean})],_i.prototype,"outlined",void 0),Si([o.property({type:Boolean})],_i.prototype,"disabled",void 0),Si([o.property({type:Boolean})],_i.prototype,"error",void 0),Si([o.property({type:Number,reflect:!0})],_i.prototype,"height",void 0),Si([o.query("textarea")],_i.prototype,"textarea",void 0),Si([o.state()],_i.prototype,"focused",void 0),e.customElement("ft-text-area")(_i);class Ei extends e.FtLitElement{render(){return i.html`
1052
1068
  <div class="ft-loader">
1053
1069
  <div></div>
1054
1070
  <div></div>
1055
1071
  <div></div>
1056
1072
  <div></div>
1057
1073
  </div>
1058
- `}}ai.styles=bt,e.customElement("ft-loader")(ai);var li=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 di 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`
1074
+ `}}Ei.styles=bt,e.customElement("ft-loader")(Ei);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 Ti 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`
1059
1075
  <button part="button"
1060
1076
  class="${n.classMap(t)}"
1061
1077
  aria-label="${this.getLabel()}"
@@ -1078,15 +1094,15 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1078
1094
  </ft-tooltip>
1079
1095
  `:t}resolveIcon(){return this.loading?i.html`
1080
1096
  <ft-loader part="loader icon"></ft-loader> `:this.icon?i.html`
1081
- <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}}di.elementDefinitions={"ft-ripple":Me,"ft-tooltip":Ae,"ft-typography":Se,"ft-icon":Ie,"ft-loader":ai},di.styles=[e.safariEllipsisFix,Ct],li([o.property({type:String,reflect:!0})],di.prototype,"role",void 0),li([o.property({type:Boolean})],di.prototype,"primary",void 0),li([o.property({type:Boolean})],di.prototype,"outlined",void 0),li([o.property({type:Boolean})],di.prototype,"disabled",void 0),li([o.property({type:Boolean})],di.prototype,"dense",void 0),li([o.property({type:Boolean})],di.prototype,"round",void 0),li([o.property()],di.prototype,"label",void 0),li([o.property()],di.prototype,"icon",void 0),li([o.property()],di.prototype,"iconVariant",void 0),li([o.property({type:Boolean})],di.prototype,"trailingIcon",void 0),li([o.property({type:Boolean})],di.prototype,"loading",void 0),li([o.property()],di.prototype,"tooltipPosition",void 0),li([o.property({type:Boolean})],di.prototype,"hideTooltip",void 0),li([o.property({type:Boolean})],di.prototype,"forceTooltip",void 0),li([o.query(".ft-button")],di.prototype,"button",void 0),li([o.query(".ft-button--label slot")],di.prototype,"slottedContent",void 0),e.customElement("ft-button")(di);const hi=i.css`
1082
- `,fi=i.css`
1083
- `,ci=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 pi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=ci.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?pi.build(t):null!==(e=pi.API)&&void 0!==e?e:pi.API=pi.build()}static await(t){return new Promise((e=>{let i=pi.get(t);if(i)e(i);else{const o=ci.subscribe((()=>{i=pi.get(t),i&&(o(),e(i))}))}}))}}var ui;const vi=Symbol("clearAfterUnitTest");class bi{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[ui]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=ci.getState().uiLocale,ci.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ci.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)))))}}ui=vi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new bi((async(t,e)=>(await pi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new bi((async(t,e)=>(await pi.await()).getCustomMessageContext(t,e))));const gi=window.FluidTopicsI18nService,xi=window.FluidTopicsCustomI18nService;var yi=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 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=()=>pi.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return i.html`
1097
+ <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}}Ti.elementDefinitions={"ft-ripple":ii,"ft-tooltip":ti,"ft-typography":He,"ft-icon":Ke,"ft-loader":Ei},Ti.styles=[e.safariEllipsisFix,It],Ii([o.property({type:String,reflect:!0})],Ti.prototype,"role",void 0),Ii([o.property({type:Boolean})],Ti.prototype,"primary",void 0),Ii([o.property({type:Boolean})],Ti.prototype,"outlined",void 0),Ii([o.property({type:Boolean})],Ti.prototype,"disabled",void 0),Ii([o.property({type:Boolean})],Ti.prototype,"dense",void 0),Ii([o.property({type:Boolean})],Ti.prototype,"round",void 0),Ii([o.property()],Ti.prototype,"label",void 0),Ii([o.property()],Ti.prototype,"icon",void 0),Ii([o.property()],Ti.prototype,"iconVariant",void 0),Ii([o.property({type:Boolean})],Ti.prototype,"trailingIcon",void 0),Ii([o.property({type:Boolean})],Ti.prototype,"loading",void 0),Ii([o.property()],Ti.prototype,"tooltipPosition",void 0),Ii([o.property({type:Boolean})],Ti.prototype,"hideTooltip",void 0),Ii([o.property({type:Boolean})],Ti.prototype,"forceTooltip",void 0),Ii([o.query(".ft-button")],Ti.prototype,"button",void 0),Ii([o.query(".ft-button--label slot")],Ti.prototype,"slottedContent",void 0),e.customElement("ft-button")(Ti);const Ri=i.css`
1098
+ `,Ai=i.css`
1099
+ `,Oi=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}=Oi.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=Oi.subscribe((()=>{i=Ci.get(t),i&&(o(),e(i))}))}}))}}var Ni;const Ui=Symbol("clearAfterUnitTest");class Di{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Ni]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=Oi.getState().uiLocale,Oi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Oi.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)))))}}Ni=Ui,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Di((async(t,e)=>(await Ci.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Di((async(t,e)=>(await Ci.await()).getCustomMessageContext(t,e))));const zi=window.FluidTopicsI18nService,Bi=window.FluidTopicsCustomI18nService;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 Fi 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`
1084
1100
  <slot></slot>
1085
- `}updated(t){super.updated(t),t.has("baseUrl")&&ci.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ci.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ci.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ci.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ci.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ci.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ci.actions.setSession(this.session),t.has("availableUiLocales")&&ci.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>gi.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()))))}}mi.elementDefinitions={},mi.styles=fi,yi([o.property()],mi.prototype,"baseUrl",void 0),yi([o.property()],mi.prototype,"apiIntegrationIdentifier",void 0),yi([o.property()],mi.prototype,"uiLocale",void 0),yi([e.jsonProperty([])],mi.prototype,"availableUiLocales",void 0),yi([o.property({type:Boolean})],mi.prototype,"editorMode",void 0),yi([o.property({type:Boolean})],mi.prototype,"noCustom",void 0),yi([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],mi.prototype,"noCustomComponent",void 0),yi([o.property({type:Boolean})],mi.prototype,"withManualResources",void 0),yi([e.jsonProperty([])],mi.prototype,"messageContexts",void 0),yi([e.jsonProperty(void 0)],mi.prototype,"session",void 0),yi([o.property({type:Object})],mi.prototype,"apiProvider",void 0);class $i{async listMySearches(){var t;return(null===(t=ci.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await pi.await()).listMySearches(ci.getState().session.profile.userId):[]}}const wi=new e.CacheRegistry;class ki{async listMyBookmarks(){return wi.get("bookmarks",(async()=>(await pi.await()).listMyBookmarks(ci.getState().session.profile.userId)))}clearCache(){wi.clear("bookmarks")}}const Si=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=ci.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ki,ci.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:i}=ci.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==i?void 0:i.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Si.actions.savedSearches(void 0)}clearMyBookmarks(){Si.actions.bookmarks(void 0)}async reloadMySearches(){const t=new $i,e=await t.listMySearches();Si.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Si.actions.bookmarks(e)}}},e.customElement("ft-app-context")(mi);var _i=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 Ii=Symbol("i18nProperties"),Ci=Symbol("i18nUnsubs");function zi(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?xi:gi}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[Ii])||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[Ii])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ii]&&new Set([...this[Ii].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Ci].has(t)||this[Ci].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[Ci].forEach((t=>t())),this[Ci].clear()}}return e=Ci,_i([o.property({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Ti extends(zi(e.FtLitElement)){}class Oi extends(zi(e.FtLitElementRedux)){}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 Ri extends Oi{constructor(){super(),this.editorMode=!1,this.addStore(ci)}render(){return this.key&&this.context?i.html`
1101
+ `}update(t){super.update(t),t.has("baseUrl")&&Oi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Oi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Oi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Oi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Oi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Oi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Oi.actions.setSession(this.session),t.has("availableUiLocales")&&Oi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>zi.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()))))}}Fi.elementDefinitions={},Fi.styles=Ai,Mi([o.property()],Fi.prototype,"baseUrl",void 0),Mi([o.property()],Fi.prototype,"apiIntegrationIdentifier",void 0),Mi([o.property()],Fi.prototype,"uiLocale",void 0),Mi([e.jsonProperty([])],Fi.prototype,"availableUiLocales",void 0),Mi([o.property({type:Boolean})],Fi.prototype,"editorMode",void 0),Mi([o.property({type:Boolean})],Fi.prototype,"noCustom",void 0),Mi([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Fi.prototype,"noCustomComponent",void 0),Mi([o.property({type:Boolean})],Fi.prototype,"withManualResources",void 0),Mi([e.jsonProperty([])],Fi.prototype,"messageContexts",void 0),Mi([e.jsonProperty(void 0)],Fi.prototype,"session",void 0),Mi([o.property({type:Object})],Fi.prototype,"apiProvider",void 0);class Li{async listMySearches(){var t;return(null===(t=Oi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Ci.await()).listMySearches(Oi.getState().session.profile.userId):[]}}const Pi=new e.CacheRegistry;class ji{async listMyBookmarks(){return Pi.get("bookmarks",(async()=>(await Ci.await()).listMyBookmarks(Oi.getState().session.profile.userId)))}clearCache(){Pi.clear("bookmarks")}}const Hi=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Oi.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ji,Oi.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:i}=Oi.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==i?void 0:i.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Hi.actions.savedSearches(void 0)}clearMyBookmarks(){Hi.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Li,e=await t.listMySearches();Hi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Hi.actions.bookmarks(e)}}},e.customElement("ft-app-context")(Fi);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};const Ki=Symbol("i18nProperties"),Vi=Symbol("i18nUnsubs");function Gi(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Bi:zi}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[Ki])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ki])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ki]&&new Set([...this[Ki].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Vi].has(t)||this[Vi].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[Vi].forEach((t=>t())),this[Vi].clear()}}return e=Vi,Zi([o.property({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Wi extends(Gi(e.FtLitElement)){}class Xi extends(Gi(e.FtLitElementRedux)){}var Yi=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 qi extends Xi{constructor(){super(),this.editorMode=!1,this.addStore(Oi)}render(){return this.key&&this.context?i.html`
1086
1102
  <span class="ft-i18n">
1087
1103
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1088
1104
  </span>
1089
- `: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})}}Ri.elementDefinitions={},Ri.styles=hi,Ei([e.redux()],Ri.prototype,"editorMode",void 0),Ei([o.property()],Ri.prototype,"context",void 0),Ei([o.property()],Ri.prototype,"key",void 0),Ei([e.jsonProperty([])],Ri.prototype,"args",void 0),Ei([o.property()],Ri.prototype,"defaultMessage",void 0);class Di{static build(t){return new Di(t)}static fromGwt(t){return new Di(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)=>gi.resolveMessage(this.name,e,...t)})}}const Ni=(t,e)=>(i,o)=>{var s,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const r={...t,key:null!==(s=t.key)&&void 0!==s?s:o};i[Ii]=null!==(n=i[Ii])&&void 0!==n?n:new Map,i[Ii].set(o,r)};e.customElement("ft-i18n")(Ri);const Ai=Di.build("integratedFeedbackComponent"),Bi={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?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",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"},Mi=Di.build("inDesignerFeedbackComponent"),Ui={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."},ji={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-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"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","SIZE","300px")},Fi=i.css`
1105
+ `: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})}}qi.elementDefinitions={},qi.styles=Ri,Yi([e.redux()],qi.prototype,"editorMode",void 0),Yi([o.property()],qi.prototype,"context",void 0),Yi([o.property()],qi.prototype,"key",void 0),Yi([e.jsonProperty([])],qi.prototype,"args",void 0),Yi([o.property()],qi.prototype,"defaultMessage",void 0);class Ji{static build(t){return new Ji(t)}static fromGwt(t){return new Ji(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)=>zi.resolveMessage(this.name,e,...t)})}}const Qi=(t,e)=>(i,o)=>{var s,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const r={...t,key:null!==(s=t.key)&&void 0!==s?s:o};i[Ki]=null!==(n=i[Ki])&&void 0!==n?n:new Map,i[Ki].set(o,r)};e.customElement("ft-i18n")(qi);const to=Ji.build("integratedFeedbackComponent"),eo={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?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",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"},io=Ji.build("inDesignerFeedbackComponent"),oo={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."},so={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-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"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","SIZE","300px")},no=i.css`
1090
1106
  *:focus {
1091
1107
  outline: none;
1092
1108
  }
@@ -1099,16 +1115,16 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1099
1115
  }
1100
1116
 
1101
1117
  ft-input-label {
1102
- ${e.setVariable(Qe.fontSize,ji.fontSize)};
1103
- ${e.setVariable(Qe.raisedFontSize,ji.labelSize)};
1104
- ${e.setVariable(Qe.verticalSpacing,ji.verticalSpacing)};
1105
- ${e.setVariable(Qe.horizontalSpacing,ji.horizontalSpacing)};
1118
+ ${e.setVariable(xi.fontSize,so.fontSize)};
1119
+ ${e.setVariable(xi.raisedFontSize,so.labelSize)};
1120
+ ${e.setVariable(xi.verticalSpacing,so.verticalSpacing)};
1121
+ ${e.setVariable(xi.horizontalSpacing,so.horizontalSpacing)};
1106
1122
  }
1107
1123
 
1108
1124
  .ft-text-field--main-panel {
1109
1125
  position: relative;
1110
1126
  display: flex;
1111
- height: calc(4 * ${ji.verticalSpacing} + ${ji.labelSize} + ${ji.fontSize});
1127
+ height: calc(4 * ${so.verticalSpacing} + ${so.labelSize} + ${so.fontSize});
1112
1128
  }
1113
1129
 
1114
1130
  .ft-text-field--input-panel {
@@ -1117,10 +1133,10 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1117
1133
  display: flex;
1118
1134
  align-items: center;
1119
1135
  overflow: hidden;
1120
- padding: 0 ${ji.horizontalSpacing};
1136
+ padding: 0 ${so.horizontalSpacing};
1121
1137
 
1122
- ${e.setVariable(M.fontSize,ji.fontSize)};
1123
- ${e.setVariable(M.lineHeight,ji.fontSize)};
1138
+ ${e.setVariable(B.fontSize,so.fontSize)};
1139
+ ${e.setVariable(B.lineHeight,so.fontSize)};
1124
1140
  }
1125
1141
 
1126
1142
  .ft-text-field--input-panel ft-ripple {
@@ -1130,11 +1146,11 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1130
1146
 
1131
1147
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1132
1148
  align-items: flex-end;
1133
- padding: 0 ${ji.horizontalSpacing} ${ji.verticalSpacing} ${ji.horizontalSpacing};
1149
+ padding: 0 ${so.horizontalSpacing} ${so.verticalSpacing} ${so.horizontalSpacing};
1134
1150
  }
1135
1151
 
1136
1152
  .ft-text-field--prefix {
1137
- color: ${ji.prefixColor};
1153
+ color: ${so.prefixColor};
1138
1154
  margin-right: 2px;
1139
1155
  flex-shrink: 1;
1140
1156
  overflow: hidden;
@@ -1153,15 +1169,15 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1153
1169
  flex-shrink: 1;
1154
1170
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1155
1171
 
1156
- color: ${ji.colorOnSurface};
1157
- padding: calc(2 * ${ji.verticalSpacing}) 0;
1172
+ color: ${so.colorOnSurface};
1173
+ padding: calc(2 * ${so.verticalSpacing}) 0;
1158
1174
  border: none;
1159
1175
  background: none;
1160
1176
  }
1161
1177
 
1162
1178
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1163
1179
  padding-bottom: 0;
1164
- padding-top: calc(${ji.labelSize} + 2 * ${ji.verticalSpacing});
1180
+ padding-top: calc(${so.labelSize} + 2 * ${so.verticalSpacing});
1165
1181
  }
1166
1182
 
1167
1183
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1170,37 +1186,37 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1170
1186
  }
1171
1187
 
1172
1188
  .ft-text-field--disabled .ft-text-field--input {
1173
- color: ${ji.colorOnSurfaceDisabled};
1189
+ color: ${so.colorOnSurfaceDisabled};
1174
1190
  }
1175
1191
 
1176
1192
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1177
- ${e.setVariable(Qe.borderColor,ji.colorPrimary)};
1178
- ${e.setVariable(Qe.textColor,ji.colorPrimary)};
1193
+ ${e.setVariable(xi.borderColor,so.colorPrimary)};
1194
+ ${e.setVariable(xi.textColor,so.colorPrimary)};
1179
1195
  }
1180
1196
 
1181
1197
  .ft-text-field--filled .ft-text-field--input-panel {
1182
- border-radius: ${ji.borderRadiusS} ${ji.borderRadiusS} 0 0;
1198
+ border-radius: ${so.borderRadiusS} ${so.borderRadiusS} 0 0;
1183
1199
  }
1184
1200
 
1185
1201
  .ft-text-field--outlined .ft-text-field--input-panel {
1186
- border-radius: ${ji.borderRadiusS};
1202
+ border-radius: ${so.borderRadiusS};
1187
1203
  }
1188
1204
 
1189
1205
  .ft-text-field--helper-text {
1190
- padding: 0 12px 0 ${ji.horizontalSpacing};
1191
- color: ${ji.helperColor};
1206
+ padding: 0 12px 0 ${so.horizontalSpacing};
1207
+ color: ${so.helperColor};
1192
1208
  }
1193
1209
 
1194
1210
  .ft-text-field--in-error .ft-text-field--input,
1195
1211
  .ft-text-field--in-error .ft-text-field--helper-text,
1196
1212
  .ft-text-field--in-error .ft-text-field--prefix {
1197
- color: ${ji.colorError};
1213
+ color: ${so.colorError};
1198
1214
  }
1199
1215
 
1200
1216
  .ft-text-field--icon {
1201
1217
  align-self: center;
1202
1218
  margin-left: 8px;
1203
- color: ${ji.iconColor};
1219
+ color: ${so.iconColor};
1204
1220
  }
1205
1221
 
1206
1222
  .ft-text-field--container {
@@ -1213,13 +1229,13 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1213
1229
  position: absolute;
1214
1230
  left: 0;
1215
1231
  right: 0;
1216
- z-index: ${ji.floatingZIndex};
1217
- background: ${ji.colorSurface};
1218
- border: 1px solid ${ji.colorOutline};
1219
- border-radius: 0 0 ${ji.borderRadiusS} ${ji.borderRadiusS};
1220
- box-shadow: ${ji.elevation02};
1232
+ z-index: ${so.floatingZIndex};
1233
+ background: ${so.colorSurface};
1234
+ border: 1px solid ${so.colorOutline};
1235
+ border-radius: 0 0 ${so.borderRadiusS} ${so.borderRadiusS};
1236
+ box-shadow: ${so.elevation02};
1221
1237
  outline: none;
1222
- max-height: ${ji.suggestSize};
1238
+ max-height: ${so.suggestSize};
1223
1239
  overflow-y: auto;
1224
1240
  }
1225
1241
 
@@ -1236,13 +1252,13 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1236
1252
  }
1237
1253
 
1238
1254
  .ft-text-field--with-icon {
1239
- ${e.setVariable(Qe.labelMaxWidth,`calc(100% - ${gt.size} - ${Qe.horizontalSpacing})`)};
1255
+ ${e.setVariable(xi.labelMaxWidth,`calc(100% - ${gt.size} - ${xi.horizontalSpacing})`)};
1240
1256
  }
1241
1257
 
1242
1258
  .ft-text-field--with-password ft-icon:hover {
1243
1259
  cursor: pointer;
1244
1260
  }
1245
- `;var Li=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 Pi extends e.FtLitElement{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=me.EYE_SLASH,this.passwordRevealedIcon=me.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return i.html`
1261
+ `;var ro=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 ao extends e.FtLitElement{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Fe.EYE_SLASH,this.passwordRevealedIcon=Fe.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return i.html`
1246
1262
  <div class="${n.classMap(t)}">
1247
1263
  <div class="ft-text-field--main-panel"
1248
1264
  @keydown=${this.handleKeyboardNavigation}
@@ -1262,7 +1278,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1262
1278
  </ft-typography>
1263
1279
  `:i.nothing}
1264
1280
  <input type=${this.password&&this.hidePassword?"password":"text"}
1265
- maxlength=${(t=>null!=t?t:Qt)(this.maxLength||void 0)}
1281
+ maxlength=${(t=>null!=t?t:xe)(this.maxLength||void 0)}
1266
1282
  aria-label="${this.label}"
1267
1283
  class="ft-typography--body1 ft-text-field--input"
1268
1284
  ?disabled=${this.disabled}
@@ -1293,7 +1309,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1293
1309
  .variant=${this.iconVariant}
1294
1310
  .value=${this.icon}
1295
1311
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1296
- `:i.nothing}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Pi.elementDefinitions={"ft-input-label":ii,"ft-ripple":Me,"ft-typography":Se,"ft-icon":Ie},Pi.styles=[lt,Fi],Li([o.property()],Pi.prototype,"label",void 0),Li([o.property({noAccessor:!0})],Pi.prototype,"value",null),Li([o.state()],Pi.prototype,"dispatchedValue",void 0),Li([o.property()],Pi.prototype,"helper",void 0),Li([o.property({type:Boolean})],Pi.prototype,"outlined",void 0),Li([o.property({type:Boolean})],Pi.prototype,"disabled",void 0),Li([o.property({type:Boolean})],Pi.prototype,"error",void 0),Li([o.property()],Pi.prototype,"prefix",void 0),Li([o.property()],Pi.prototype,"icon",void 0),Li([o.property()],Pi.prototype,"passwordHiddenIcon",void 0),Li([o.property()],Pi.prototype,"passwordRevealedIcon",void 0),Li([o.property()],Pi.prototype,"iconVariant",void 0),Li([o.property({type:Boolean})],Pi.prototype,"filterSuggestions",void 0),Li([o.property({type:Number})],Pi.prototype,"maxLength",void 0),Li([o.property({type:Boolean})],Pi.prototype,"password",void 0),Li([o.state()],Pi.prototype,"focused",void 0),Li([o.state()],Pi.prototype,"hidePassword",void 0),Li([o.state()],Pi.prototype,"suggestionsOnTop",void 0),Li([o.state()],Pi.prototype,"hideSuggestions",void 0),Li([o.state()],Pi.prototype,"visibleSuggestions",void 0),Li([o.query(".ft-text-field--main-panel")],Pi.prototype,"mainPanel",void 0),Li([o.query(".ft-text-field--input")],Pi.prototype,"input",void 0),Li([o.query(".ft-text-field--suggestions")],Pi.prototype,"suggestionsContainer",void 0),Li([o.queryAssignedElements({selector:"ft-text-field-suggestion"})],Pi.prototype,"suggestions",void 0);const Zi=i.css`
1312
+ `:i.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}ao.elementDefinitions={"ft-input-label":$i,"ft-ripple":ii,"ft-typography":He,"ft-icon":Ke},ao.styles=[lt,no],ro([o.property()],ao.prototype,"label",void 0),ro([o.property({noAccessor:!0})],ao.prototype,"value",null),ro([o.state()],ao.prototype,"dispatchedValue",void 0),ro([o.property()],ao.prototype,"helper",void 0),ro([o.property({type:Boolean})],ao.prototype,"outlined",void 0),ro([o.property({type:Boolean})],ao.prototype,"disabled",void 0),ro([o.property({type:Boolean})],ao.prototype,"error",void 0),ro([o.property()],ao.prototype,"prefix",void 0),ro([o.property()],ao.prototype,"icon",void 0),ro([o.property()],ao.prototype,"passwordHiddenIcon",void 0),ro([o.property()],ao.prototype,"passwordRevealedIcon",void 0),ro([o.property()],ao.prototype,"iconVariant",void 0),ro([o.property({type:Boolean})],ao.prototype,"filterSuggestions",void 0),ro([o.property({type:Number})],ao.prototype,"maxLength",void 0),ro([o.property({type:Boolean})],ao.prototype,"password",void 0),ro([o.state()],ao.prototype,"focused",void 0),ro([o.state()],ao.prototype,"hidePassword",void 0),ro([o.state()],ao.prototype,"suggestionsOnTop",void 0),ro([o.state()],ao.prototype,"hideSuggestions",void 0),ro([o.state()],ao.prototype,"visibleSuggestions",void 0),ro([o.query(".ft-text-field--main-panel")],ao.prototype,"mainPanel",void 0),ro([o.query(".ft-text-field--input")],ao.prototype,"input",void 0),ro([o.query(".ft-text-field--suggestions")],ao.prototype,"suggestionsContainer",void 0),ro([o.queryAssignedElements({selector:"ft-text-field-suggestion"})],ao.prototype,"suggestions",void 0);const lo=i.css`
1297
1313
  .ft-text-field-suggestion {
1298
1314
  position: relative;
1299
1315
  padding: 8px 16px;
@@ -1318,7 +1334,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1318
1334
  slot {
1319
1335
  pointer-events: none;
1320
1336
  }
1321
- `;var Hi=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 CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Vi extends e.FtLitElement{render(){return i.html`
1337
+ `;var ho,fo=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 co extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class po extends e.FtLitElement{render(){return i.html`
1322
1338
  <div class="ft-text-field-suggestion"
1323
1339
  tabindex="-1"
1324
1340
  @keydown=${this.onKeyDown}
@@ -1330,7 +1346,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1330
1346
  <slot></slot>
1331
1347
  </ft-typography>
1332
1348
  </div>
1333
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Wi(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Vi.elementDefinitions={"ft-ripple":Me,"ft-typography":Se,"ft-icon":Ie},Vi.styles=Zi,Hi([o.property()],Vi.prototype,"value",void 0),Hi([o.query(".ft-text-field-suggestion")],Vi.prototype,"container",void 0),Hi([o.queryAssignedNodes()],Vi.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(Pi),e.customElement("ft-text-field-suggestion")(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};class Ki extends(zi(h)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",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(Ai,Bi),this.addI18nContext(Mi,Ui)}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`
1349
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new co(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}po.elementDefinitions={"ft-ripple":ii,"ft-typography":He,"ft-icon":Ke},po.styles=lo,fo([o.property()],po.prototype,"value",void 0),fo([o.query(".ft-text-field-suggestion")],po.prototype,"container",void 0),fo([o.queryAssignedNodes()],po.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(ao),e.customElement("ft-text-field-suggestion")(po),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(ho||(ho={}));var uo=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 vo extends(Gi(d)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",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(to,eo),this.addI18nContext(io,oo)}get canAccessFeedback(){var t;return this.user&&Xt(this.user.roles,"FEEDBACK_USER")&&(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(ho.FEEDBACK))}get canAccessRating(){var t;return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType&&(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(ho.RATING))}get userHasRatingRole(){return this.user&&Xt(this.user.roles,"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`
1334
1350
  <div class="ft-reader-feedback">
1335
1351
  ${this.hideTitle?i.nothing:i.html`
1336
1352
  <ft-typography variant="title" part="main-title">
@@ -1350,11 +1366,11 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1350
1366
  ${this.renderRatingDate()}
1351
1367
  </ft-typography>
1352
1368
  </div>
1353
- `:this.placeholderInEditor(this.userHasRatingRole?Mi.messages.ratingNotConfigured():Mi.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Ai.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Ai.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Ai.messages.ratedToday():Ai.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return i.html`
1369
+ `:this.placeholderInEditor(this.userHasRatingRole?io.messages.ratingNotConfigured():io.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return to.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return to.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?to.messages.ratedToday():to.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return i.html`
1354
1370
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1355
1371
  ${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`
1356
1372
  <ft-button round part="rating-stars-${s}"
1357
- label="${Ai.messages.starsRating(s)}"
1373
+ label="${to.messages.starsRating(s)}"
1358
1374
  tooltipPosition="top"
1359
1375
  .iconVariant=${this.iconVariant}
1360
1376
  icon="${o?this.filledStarIcon:this.emptyStarIcon}"
@@ -1371,13 +1387,13 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1371
1387
  ?selected=${e}
1372
1388
  .iconVariant=${this.iconVariant}
1373
1389
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1374
- ${Ai.messages.like()}
1390
+ ${to.messages.like()}
1375
1391
  </ft-switch-option>
1376
1392
  <ft-switch-option .value=${0}
1377
1393
  ?selected=${t}
1378
1394
  .iconVariant=${this.iconVariant}
1379
1395
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1380
- ${Ai.messages.dislike()}
1396
+ ${to.messages.dislike()}
1381
1397
  </ft-switch-option>
1382
1398
  </ft-switch>
1383
1399
  `;case"DICHOTOMOUS":const o="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,s="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return i.html`
@@ -1386,11 +1402,11 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1386
1402
  part="rating rating-dichotomous">
1387
1403
  <ft-switch-option .value=${1}
1388
1404
  ?selected=${s}>
1389
- ${Ai.messages.dichotomousYes()}
1405
+ ${to.messages.dichotomousYes()}
1390
1406
  </ft-switch-option>
1391
1407
  <ft-switch-option .value=${0}
1392
1408
  ?selected=${o}>
1393
- ${Ai.messages.dichotomousNo()}
1409
+ ${to.messages.dichotomousNo()}
1394
1410
  </ft-switch-option>
1395
1411
  </ft-switch>
1396
1412
  `}return i.nothing}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e;if(this.canAccessFeedback){const o=this.feedbackMailLinkBuilder(this.feedbackMessage);let s=i.html`
@@ -1399,7 +1415,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1399
1415
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1400
1416
  @click=${()=>o?this.onMailerFeedbackSent():this.sendFeedback()}
1401
1417
  part="send-feedback">
1402
- ${Ai.messages.okButton()}
1418
+ ${to.messages.okButton()}
1403
1419
  </ft-button>
1404
1420
  `;return o&&(s=i.html`
1405
1421
  <a class="ft-reader-feedback--feedback-link" href="${o}">
@@ -1411,30 +1427,30 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1411
1427
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1412
1428
  </ft-typography>
1413
1429
  ${null==(null===(t=this.user)||void 0===t?void 0:t.userId)&&(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)?i.html`
1414
- <ft-text-field
1430
+ <ft-text-field outlined
1415
1431
  class="ft-reader-feedback--from-input"
1416
- label=${Ai.messages.feedbackfromEmail()}
1432
+ label=${to.messages.feedbackfromEmail()}
1417
1433
  @live-change=${t=>this.from=t.detail.trim()}
1418
1434
  ?error=${this.from&&!this.validFromEmail()}
1419
- helper=${this.from&&!this.validFromEmail()?Ai.messages.feedbackfromEmailInvalid():""}
1435
+ helper=${this.from&&!this.validFromEmail()?to.messages.feedbackfromEmailInvalid():""}
1420
1436
  />
1421
1437
  `:i.nothing}
1422
1438
  <ft-text-area outlined
1423
1439
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1424
- label="${Ai.messages.feedbackInputLabel()}"
1440
+ label="${to.messages.feedbackInputLabel()}"
1425
1441
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1426
1442
  ></ft-text-area>
1427
1443
  ${s}
1428
1444
  </div>
1429
- `}return this.placeholderInEditor(Mi.messages.missingFeedbackRole())}validFromEmail(){var t,e;return!(null==(null===(t=this.user)||void 0===t?void 0:t.userId)&&(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?i.html`
1445
+ `}return this.placeholderInEditor(io.messages.missingFeedbackRole())}validFromEmail(){var t,e;return!(null==(null===(t=this.user)||void 0===t?void 0:t.userId)&&(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?i.html`
1430
1446
  <div class="ft-reader-feedback--placeholder">
1431
1447
  <ft-typography variant="caption">${t}</ft-typography>
1432
1448
  <ft-tooltip position="left"
1433
- text="${Mi.messages.inDesignerOnlyNotice()}">
1449
+ text="${io.messages.inDesignerOnlyNotice()}">
1434
1450
  <ft-icon>INFO</ft-icon>
1435
1451
  </ft-tooltip>
1436
1452
  </div>
1437
- `:i.nothing}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Ki.elementDefinitions={"ft-button":di,"ft-typography":Se,"ft-icon":Ie,"ft-tooltip":Ae,"ft-switch":Ve,"ft-switch-option":Ze,"ft-text-area":ri,"ft-text-field":Pi},Ki.styles=Ot,Gi([o.property({type:Boolean})],Ki.prototype,"editorMode",void 0),Gi([o.property({type:Boolean})],Ki.prototype,"hideTitle",void 0),Gi([o.property({type:Boolean})],Ki.prototype,"ratingAllowed",void 0),Gi([o.property({attribute:!1})],Ki.prototype,"i18nProperties",void 0),Gi([o.property({attribute:!1})],Ki.prototype,"ratingSummary",void 0),Gi([o.property({attribute:!1})],Ki.prototype,"user",void 0),Gi([o.query(".ft-reader-feedback--feedback-input")],Ki.prototype,"feedbackInput",void 0),Gi([o.state()],Ki.prototype,"from",void 0),Gi([o.state()],Ki.prototype,"feedbackMessage",void 0),Gi([o.property()],Ki.prototype,"iconVariant",void 0),Gi([o.property()],Ki.prototype,"emptyStarIcon",void 0),Gi([o.property()],Ki.prototype,"filledStarIcon",void 0),Gi([o.property()],Ki.prototype,"emptyLikeIcon",void 0),Gi([o.property()],Ki.prototype,"filledLikeIcon",void 0),Gi([o.property()],Ki.prototype,"emptyDislikeIcon",void 0),Gi([o.property()],Ki.prototype,"filledDislikeIcon",void 0),Gi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ki.prototype,"configuration",void 0),Gi([o.property()],Ki.prototype,"feedbackMailLinkBuilder",void 0);const Yi=Di.fromGwt("server");class qi{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,s){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=s,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const s=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Yi.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${s}&body=${n}`}}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 Ji extends(zi(h)){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 qi,this.i18nProperties={feedbackMainTitle:Ai.properties.mapFeedbackMainTitle(),ratingSectionTitle:Ai.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Ai.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Ai.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(ci)}render(){return this.map&&(this.editorMode||this.componentVisible)?i.html`
1453
+ `:i.nothing}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}vo.elementDefinitions={"ft-button":Ti,"ft-typography":He,"ft-icon":Ke,"ft-tooltip":ti,"ft-switch":fi,"ft-switch-option":li,"ft-text-area":_i,"ft-text-field":ao},vo.styles=At,uo([o.property({type:Boolean})],vo.prototype,"editorMode",void 0),uo([o.property({type:Boolean})],vo.prototype,"hideTitle",void 0),uo([o.property({type:Boolean})],vo.prototype,"ratingAllowed",void 0),uo([o.property({attribute:!1})],vo.prototype,"i18nProperties",void 0),uo([o.property({attribute:!1})],vo.prototype,"ratingSummary",void 0),uo([o.property({attribute:!1})],vo.prototype,"user",void 0),uo([o.query(".ft-reader-feedback--feedback-input")],vo.prototype,"feedbackInput",void 0),uo([o.state()],vo.prototype,"from",void 0),uo([o.state()],vo.prototype,"feedbackMessage",void 0),uo([o.property()],vo.prototype,"iconVariant",void 0),uo([o.property()],vo.prototype,"emptyStarIcon",void 0),uo([o.property()],vo.prototype,"filledStarIcon",void 0),uo([o.property()],vo.prototype,"emptyLikeIcon",void 0),uo([o.property()],vo.prototype,"filledLikeIcon",void 0),uo([o.property()],vo.prototype,"emptyDislikeIcon",void 0),uo([o.property()],vo.prototype,"filledDislikeIcon",void 0),uo([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],vo.prototype,"configuration",void 0),uo([o.property()],vo.prototype,"feedbackMailLinkBuilder",void 0);const bo=Ji.fromGwt("server");class go{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,s){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=s,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const s=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${bo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${s}&body=${n}`}}var xo=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 yo extends(Gi(d)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Pe.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 go,this.i18nProperties={feedbackMainTitle:to.properties.mapFeedbackMainTitle(),ratingSectionTitle:to.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:to.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:to.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Oi)}render(){return this.map&&(this.editorMode||this.componentVisible)?i.html`
1438
1454
  <ft-reader-feedback
1439
1455
  ratingAllowed
1440
1456
  .i18nProperties=${this.i18nProperties}
@@ -1460,7 +1476,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1460
1476
  display: none !important;
1461
1477
  }
1462
1478
  </style>
1463
- `}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}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:Ai.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Mi.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Mi.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ai.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Ai.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}Ji.elementDefinitions={"ft-reader-feedback":Ki},Xi([e.redux({store:ci.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Ji.prototype,"user",void 0),Xi([e.redux({store:"reader"})],Ji.prototype,"map",void 0),Xi([e.redux({store:ci.name})],Ji.prototype,"editorMode",void 0),Xi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ji.prototype,"configuration",void 0),Xi([o.state()],Ji.prototype,"ratingSummary",void 0),Xi([o.property({type:Boolean})],Ji.prototype,"hideTitle",void 0),Xi([o.property()],Ji.prototype,"iconVariant",void 0),Xi([o.property()],Ji.prototype,"emptyStarIcon",void 0),Xi([o.property()],Ji.prototype,"filledStarIcon",void 0),Xi([o.property()],Ji.prototype,"emptyLikeIcon",void 0),Xi([o.property()],Ji.prototype,"filledLikeIcon",void 0),Xi([o.property()],Ji.prototype,"emptyDislikeIcon",void 0),Xi([o.property()],Ji.prototype,"filledDislikeIcon",void 0),Xi([o.query("ft-reader-feedback")],Ji.prototype,"readerFeedback",void 0),Xi([Ni(Yi.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Ji.prototype,"mailSubject",void 0);var Qi=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 to extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const eo=Symbol("registerInterval");class io extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[eo]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[eo]):this.dispatchEvent(new to)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=eo,Qi([o.state()],i.prototype,"tocNode",void 0),Qi([o.state()],i.prototype,"disableContextInteractions",void 0),i}(h)){}var oo=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 so extends(zi(io)){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 qi,this.i18nProperties={feedbackMainTitle:Ai.properties.topicFeedbackMainTitle(),ratingSectionTitle:Ai.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Ai.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Ai.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(ci)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?i.html`
1479
+ `}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}update(t){var e,i,o;super.update(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:to.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:io.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:io.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:to.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:to.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}yo.elementDefinitions={"ft-reader-feedback":vo},xo([e.redux({store:Oi.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],yo.prototype,"user",void 0),xo([e.redux({store:"reader"})],yo.prototype,"map",void 0),xo([e.redux({store:Oi.name})],yo.prototype,"editorMode",void 0),xo([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],yo.prototype,"configuration",void 0),xo([o.state()],yo.prototype,"ratingSummary",void 0),xo([o.property({type:Boolean})],yo.prototype,"hideTitle",void 0),xo([o.property()],yo.prototype,"iconVariant",void 0),xo([o.property()],yo.prototype,"emptyStarIcon",void 0),xo([o.property()],yo.prototype,"filledStarIcon",void 0),xo([o.property()],yo.prototype,"emptyLikeIcon",void 0),xo([o.property()],yo.prototype,"filledLikeIcon",void 0),xo([o.property()],yo.prototype,"emptyDislikeIcon",void 0),xo([o.property()],yo.prototype,"filledDislikeIcon",void 0),xo([o.query("ft-reader-feedback")],yo.prototype,"readerFeedback",void 0),xo([Qi(bo.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],yo.prototype,"mailSubject",void 0);var mo=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 $o extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const wo=Symbol("registerInterval");class ko extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[wo]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[wo]):this.dispatchEvent(new $o)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=wo,mo([o.state()],i.prototype,"tocNode",void 0),mo([o.state()],i.prototype,"disableContextInteractions",void 0),i}(d)){}var So=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 _o extends(Gi(ko)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Pe.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 go,this.i18nProperties={feedbackMainTitle:to.properties.topicFeedbackMainTitle(),ratingSectionTitle:to.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:to.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:to.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Oi)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?i.html`
1464
1480
  <ft-reader-feedback
1465
1481
  .i18nProperties=${this.i18nProperties}
1466
1482
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1486,4 +1502,4 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1486
1502
  display: none !important;
1487
1503
  }
1488
1504
  </style>
1489
- `}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}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:Ai.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Mi.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.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ai.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Mi.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Ai.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}so.elementDefinitions={"ft-reader-feedback":Ki},oo([e.redux({store:ci.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],so.prototype,"user",void 0),oo([e.redux({store:"reader"})],so.prototype,"map",void 0),oo([e.redux({store:ci.name})],so.prototype,"editorMode",void 0),oo([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],so.prototype,"configuration",void 0),oo([o.state()],so.prototype,"ratingSummary",void 0),oo([o.property({type:Boolean})],so.prototype,"hideTitle",void 0),oo([o.property()],so.prototype,"iconVariant",void 0),oo([o.property()],so.prototype,"emptyStarIcon",void 0),oo([o.property()],so.prototype,"filledStarIcon",void 0),oo([o.property()],so.prototype,"emptyLikeIcon",void 0),oo([o.property()],so.prototype,"filledLikeIcon",void 0),oo([o.property()],so.prototype,"emptyDislikeIcon",void 0),oo([o.property()],so.prototype,"filledDislikeIcon",void 0),oo([o.query("ft-reader-feedback")],so.prototype,"readerFeedback",void 0),oo([Ni(Yi.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]})))],so.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Ji),e.customElement("ft-reader-topic-feedback")(so),t.FtReaderFeedbackCssVariables=Tt,t.FtReaderMapFeedback=Ji,t.FtReaderTopicFeedback=so,t.styles=Ot}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
1505
+ `}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}update(t){var e,i,o;super.update(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:to.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:io.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.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:to.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:io.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:to.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}_o.elementDefinitions={"ft-reader-feedback":vo},So([e.redux({store:Oi.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],_o.prototype,"user",void 0),So([e.redux({store:"reader"})],_o.prototype,"map",void 0),So([e.redux({store:Oi.name})],_o.prototype,"editorMode",void 0),So([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],_o.prototype,"configuration",void 0),So([o.state()],_o.prototype,"ratingSummary",void 0),So([o.property({type:Boolean})],_o.prototype,"hideTitle",void 0),So([o.property()],_o.prototype,"iconVariant",void 0),So([o.property()],_o.prototype,"emptyStarIcon",void 0),So([o.property()],_o.prototype,"filledStarIcon",void 0),So([o.property()],_o.prototype,"emptyLikeIcon",void 0),So([o.property()],_o.prototype,"filledLikeIcon",void 0),So([o.property()],_o.prototype,"emptyDislikeIcon",void 0),So([o.property()],_o.prototype,"filledDislikeIcon",void 0),So([o.query("ft-reader-feedback")],_o.prototype,"readerFeedback",void 0),So([Qi(bo.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]})))],_o.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(yo),e.customElement("ft-reader-topic-feedback")(_o),t.FtReaderFeedbackCssVariables=Rt,t.FtReaderMapFeedback=yo,t.FtReaderTopicFeedback=_o,t.styles=At}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);