@fluid-topics/ft-reader-feedback 1.0.50 → 1.0.52

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 h=Symbol("registerInterval");class d extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[h]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[h]):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=h,a([o.state()],i.prototype,"stateManager",void 0),i}(e.FtLitElementRedux)){}const p=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),c={color:p,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",p),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},f=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),u=f,b=e.FtCssVariableFactory.extend("--ft-ripple-background-color",f),v=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),g=v,x=e.FtCssVariableFactory.extend("--ft-ripple-background-color",v),y=i.css`
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),p={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")},c=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),u=c,v=e.FtCssVariableFactory.extend("--ft-ripple-background-color",c),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
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  .ft-ripple:not(.ft-ripple--unbounded) {
13
13
  overflow: hidden;
14
- border-radius: ${c.borderRadius};
14
+ border-radius: ${p.borderRadius};
15
15
  }
16
16
 
17
17
  .ft-ripple .ft-ripple--background,
@@ -21,11 +21,11 @@
21
21
  }
22
22
 
23
23
  .ft-ripple .ft-ripple--background {
24
- background-color: ${c.backgroundColor};
24
+ background-color: ${p.backgroundColor};
25
25
  }
26
26
 
27
27
  .ft-ripple .ft-ripple--effect {
28
- background-color: ${c.color};
28
+ background-color: ${p.color};
29
29
  }
30
30
 
31
31
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -37,7 +37,7 @@
37
37
  }
38
38
 
39
39
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
40
- background-color: ${b};
40
+ background-color: ${v};
41
41
  }
42
42
 
43
43
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
@@ -73,22 +73,22 @@
73
73
  }
74
74
 
75
75
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
76
- opacity: ${c.opacityContentOnSurfaceHover};
76
+ opacity: ${p.opacityContentOnSurfaceHover};
77
77
  }
78
78
 
79
79
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
80
- opacity: ${c.opacityContentOnSurfaceSelected};
80
+ opacity: ${p.opacityContentOnSurfaceSelected};
81
81
  }
82
82
 
83
83
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
84
- opacity: ${c.opacityContentOnSurfaceFocused};
84
+ opacity: ${p.opacityContentOnSurfaceFocused};
85
85
  }
86
86
 
87
87
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
88
- opacity: ${c.opacityContentOnSurfacePressed};
88
+ opacity: ${p.opacityContentOnSurfacePressed};
89
89
  transform: translate(-50%, -50%) scale(1);
90
90
  }
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")},_={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",w.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",w.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",w.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",w.textTransform,"inherit")},S=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",$),I=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",w.fontSize,"16px"),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"),R=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",$),E=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",w.fontSize,"14px"),N=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",w.fontWeight,"normal"),A=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"),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",$),F=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",w.fontSize,"14px"),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",w.fontWeight,"normal"),L=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",w.letterSpacing,"0.252px"),P=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",w.lineHeight,"1.4"),H=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",w.textTransform,"inherit"),Z={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",$),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",w.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",w.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",w.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",w.textTransform,"inherit")},W=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",$),V=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",w.fontSize,"10px"),G=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",w.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",w.letterSpacing,"0.33px"),Y=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",w.lineHeight,"1.6"),q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",w.textTransform,"inherit"),X=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",$),J=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",w.fontSize,"10px"),Q=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",w.fontWeight,"normal"),tt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",w.letterSpacing,"1.5px"),et=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",w.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",w.textTransform,"uppercase"),ot={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",$),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",w.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",w.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",w.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",w.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",w.textTransform,"uppercase")},st=i.css`
91
+ `,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"),E=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",w.textTransform,"inherit"),O=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")},V=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",$),W=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`
92
92
  .ft-typography--title {
93
93
  font-family: ${k.fontFamily};
94
94
  font-size: ${k.fontSize};
@@ -99,29 +99,29 @@
99
99
  }
100
100
  `,nt=i.css`
101
101
  .ft-typography--title-dense {
102
- font-family: ${_.fontFamily};
103
- font-size: ${_.fontSize};
104
- font-weight: ${_.fontWeight};
105
- letter-spacing: ${_.letterSpacing};
106
- line-height: ${_.lineHeight};
107
- text-transform: ${_.textTransform};
102
+ font-family: ${S.fontFamily};
103
+ font-size: ${S.fontSize};
104
+ font-weight: ${S.fontWeight};
105
+ letter-spacing: ${S.letterSpacing};
106
+ line-height: ${S.lineHeight};
107
+ text-transform: ${S.textTransform};
108
108
  }
109
109
  `,rt=i.css`
110
110
  .ft-typography--subtitle1 {
111
- font-family: ${S};
111
+ font-family: ${_};
112
112
  font-size: ${I};
113
113
  font-weight: ${C};
114
114
  letter-spacing: ${z};
115
115
  line-height: ${T};
116
- text-transform: ${O};
116
+ text-transform: ${E};
117
117
  }
118
118
  `,at=i.css`
119
119
  .ft-typography--subtitle2 {
120
- font-family: ${R};
121
- font-size: ${E};
122
- font-weight: ${N};
123
- letter-spacing: ${A};
124
- line-height: ${D};
120
+ font-family: ${O};
121
+ font-size: ${R};
122
+ font-weight: ${D};
123
+ letter-spacing: ${N};
124
+ line-height: ${A};
125
125
  text-transform: ${B};
126
126
  }
127
127
 
@@ -134,34 +134,34 @@
134
134
  line-height: ${M.lineHeight};
135
135
  text-transform: ${M.textTransform};
136
136
  }
137
- `,ht=i.css`
137
+ `,dt=i.css`
138
138
  .ft-typography--body2 {
139
139
  font-family: ${U};
140
- font-size: ${F};
141
- font-weight: ${j};
140
+ font-size: ${j};
141
+ font-weight: ${F};
142
142
  letter-spacing: ${L};
143
143
  line-height: ${P};
144
- text-transform: ${H};
144
+ text-transform: ${Z};
145
145
  }
146
- `,dt=i.css`
146
+ `,ht=i.css`
147
147
  .ft-typography--caption {
148
- font-family: ${Z.fontFamily};
149
- font-size: ${Z.fontSize};
150
- font-weight: ${Z.fontWeight};
151
- letter-spacing: ${Z.letterSpacing};
152
- line-height: ${Z.lineHeight};
153
- text-transform: ${Z.textTransform};
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};
154
154
  }
155
- `,pt=i.css`
155
+ `,ft=i.css`
156
156
  .ft-typography--breadcrumb {
157
- font-family: ${W};
158
- font-size: ${V};
157
+ font-family: ${V};
158
+ font-size: ${W};
159
159
  font-weight: ${G};
160
160
  letter-spacing: ${K};
161
161
  line-height: ${Y};
162
162
  text-transform: ${q};
163
163
  }
164
- `,ct=i.css`
164
+ `,pt=i.css`
165
165
  .ft-typography--overline {
166
166
  font-family: ${X};
167
167
  font-size: ${J};
@@ -170,7 +170,7 @@
170
170
  line-height: ${et};
171
171
  text-transform: ${it};
172
172
  }
173
- `,ft=i.css`
173
+ `,ct=i.css`
174
174
  .ft-typography--button {
175
175
  font-family: ${ot.fontFamily};
176
176
  font-size: ${ot.fontSize};
@@ -183,7 +183,7 @@
183
183
  .ft-typography {
184
184
  vertical-align: inherit;
185
185
  }
186
- `,bt={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},vt=i.css`
186
+ `,vt={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},bt=i.css`
187
187
  :host {
188
188
  line-height: 0;
189
189
  }
@@ -192,8 +192,8 @@
192
192
  display: inline-block;
193
193
  position: relative;
194
194
 
195
- width: ${bt.size};
196
- height: ${bt.size};
195
+ width: ${vt.size};
196
+ height: ${vt.size};
197
197
  }
198
198
 
199
199
  .ft-loader div {
@@ -202,7 +202,7 @@
202
202
  width: 25%;
203
203
  height: 25%;
204
204
  border-radius: 50%;
205
- background: ${bt.color};
205
+ background: ${vt.color};
206
206
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
207
207
  }
208
208
 
@@ -249,7 +249,7 @@
249
249
  transform: translate(0, 0);
250
250
  }
251
251
  100% {
252
- transform: translate(calc(0.35 * ${bt.size}), 0);
252
+ transform: translate(calc(0.35 * ${vt.size}), 0);
253
253
  }
254
254
  }
255
255
  `,gt={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},xt=i.css`
@@ -300,7 +300,7 @@
300
300
  .ft-icon--material {
301
301
  font-family: ${gt.materialFontFamily}, "Material Icons", sans-serif;
302
302
  }
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)),_t=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),St=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),It=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Ct=[i.css`
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`
304
304
  :host {
305
305
  display: inline-block;
306
306
  max-width: 100%;
@@ -343,7 +343,7 @@
343
343
  --ft-button-internal-line-height: max(calc(${mt.fontSize} + 2px), ${mt.iconSize});
344
344
  --ft-button-internal-color: ${mt.color};
345
345
  ${e.setVariable(gt.size,mt.iconSize)};
346
- ${e.setVariable(c.color,mt.rippleColor)};
346
+ ${e.setVariable(p.color,mt.rippleColor)};
347
347
 
348
348
  border-radius: ${mt.borderRadius};
349
349
  padding: ${mt.verticalPadding} ${mt.horizontalPadding};
@@ -358,13 +358,13 @@
358
358
  }
359
359
 
360
360
  .ft-button.ft-button--dense {
361
- padding: ${_t} ${St};
361
+ padding: ${St} ${_t};
362
362
  border-radius: ${kt};
363
363
  gap: ${It};
364
364
  }
365
365
 
366
366
  .ft-button.ft-button--dense.ft-button--outlined {
367
- padding: calc(${_t} - 1px) calc(${St} - 1px);
367
+ padding: calc(${St} - 1px) calc(${_t} - 1px);
368
368
  }
369
369
 
370
370
  .ft-button:not([disabled]):hover {
@@ -376,7 +376,7 @@
376
376
  }
377
377
 
378
378
  .ft-button--round.ft-button--dense {
379
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${_t});
379
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${St});
380
380
  }
381
381
 
382
382
  .ft-button[disabled] {
@@ -387,7 +387,7 @@
387
387
  .ft-button.ft-button--primary {
388
388
  background-color: ${wt.backgroundColor};
389
389
  --ft-button-internal-color: ${wt.color};
390
- ${e.setVariable(c.color,wt.rippleColor)};
390
+ ${e.setVariable(p.color,wt.rippleColor)};
391
391
  }
392
392
 
393
393
  .ft-button:focus {
@@ -424,8 +424,8 @@
424
424
  }
425
425
 
426
426
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
427
- margin: 0 calc(${St} * -1);
428
- padding: 0 ${_t};
427
+ margin: 0 calc(${_t} * -1);
428
+ padding: 0 ${St};
429
429
  }
430
430
 
431
431
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -434,10 +434,10 @@
434
434
  }
435
435
 
436
436
  ft-loader {
437
- ${e.setVariable(bt.size,mt.iconSize)};
438
- ${e.setVariable(bt.color,"var(--ft-button-internal-color)")};
437
+ ${e.setVariable(vt.size,mt.iconSize)};
438
+ ${e.setVariable(vt.color,"var(--ft-button-internal-color)")};
439
439
  }
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(_.fontSize,"Typography")},Ot=i.css`
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")},Et=i.css`
441
441
  .ft-reader-feedback {
442
442
  box-sizing: border-box;
443
443
  display: flex;
@@ -515,28 +515,27 @@
515
515
  * @license
516
516
  * Copyright 2017 Google LLC
517
517
  * SPDX-License-Identifier: BSD-3-Clause
518
- */;var Rt;const Et=window,Nt=Et.trustedTypes,At=Nt?Nt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Dt="$lit$",Bt=`lit$${(Math.random()+"").slice(9)}$`,Mt="?"+Bt,Ut=`<${Mt}>`,Ft=document,jt=()=>Ft.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Pt=Array.isArray,Ht="[ \t\n\f\r]",Zt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wt=/-->/g,Vt=/>/g,Gt=RegExp(`>|${Ht}(?:([^\\s"'>=/]+)(${Ht}*=${Ht}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Kt=/'/g,Yt=/"/g,qt=/^(?:script|style|textarea|title)$/i,Xt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Jt=Symbol.for("lit-noChange"),Qt=Symbol.for("lit-nothing"),te=new WeakMap,ee=Ft.createTreeWalker(Ft,129,null,!1),ie=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=Zt;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(r.lastIndex=d,l=r.exec(i),null!==l);)d=r.lastIndex,r===Zt?"!--"===l[1]?r=Wt:void 0!==l[1]?r=Vt:void 0!==l[2]?(qt.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Gt):void 0!==l[3]&&(r=Gt):r===Gt?">"===l[0]?(r=null!=s?s:Zt,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Gt:'"'===l[3]?Yt:Kt):r===Yt||r===Kt?r=Gt:r===Wt||r===Vt?r=Zt:(r=Gt,s=void 0);const p=r===Gt&&t[e+1].startsWith("/>")?" ":"";n+=r===Zt?i+Ut:h>=0?(o.push(a),i.slice(0,h)+Dt+i.slice(h)+Bt+p):i+Bt+(-2===h?(o.push(void 0),e):p)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==At?At.createHTML(a):a,o]};class oe{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,h]=ie(t,e);if(this.el=oe.createElement(l,i),ee.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=ee.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(Dt)||e.startsWith(Bt)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+Dt).split(Bt),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?le:"?"===e[1]?de:"@"===e[1]?pe:ae})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(qt.test(o.tagName)){const t=o.textContent.split(Bt),e=t.length-1;if(e>0){o.textContent=Nt?Nt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],jt()),ee.nextNode(),a.push({type:2,index:++s});o.append(t[e],jt())}}}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=Ft.createElement("template");return i.innerHTML=t,i}}function se(t,e,i=t,o){var s,n,r,a;if(e===Jt)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=Lt(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=se(t,l._$AS(t,e.values),l,o)),e}class ne{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:Ft).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.$(Ft.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(jt()),this.k(jt()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ae{constructor(t,e,i,o,s){this.type=1,this._$AH=Qt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Qt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=se(this,t,e,0),n=!Lt(t)||t!==this._$AH&&t!==Jt,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=se(this,o[i+r],e,r),a===Jt&&(a=this._$AH[r]),n||(n=!Lt(a)||a!==this._$AH[r]),a===Qt?t=Qt:t!==Qt&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===Qt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class le extends ae{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Qt?void 0:t}}const he=Nt?Nt.emptyScript:"";class de extends ae{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Qt?this.element.setAttribute(this.name,he):this.element.removeAttribute(this.name)}}class pe extends ae{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=se(this,t,e,0))&&void 0!==i?i:Qt)===Jt)return;const o=this._$AH,s=t===Qt&&o!==Qt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Qt&&(o===Qt||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ce{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){se(this,t)}}const fe=Et.litHtmlPolyfillSupport;null==fe||fe(oe,re),(null!==(Rt=Et.litHtmlVersions)&&void 0!==Rt?Rt:Et.litHtmlVersions=[]).push("2.7.3");
518
+ */;var Ot;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,Vt=/-->/g,Wt=/>/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=Vt:void 0!==l[1]?r=Wt: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===Vt||r===Wt?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 pe(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 pe{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 ce=Rt.litHtmlPolyfillSupport;null==ce||ce(oe,re),(null!==(Ot=Rt.litHtmlVersions)&&void 0!==Ot?Ot:Rt.litHtmlVersions=[]).push("2.7.3");
519
519
  /**
520
520
  * @license
521
521
  * Copyright 2020 Google LLC
522
522
  * SPDX-License-Identifier: BSD-3-Clause
523
523
  */
524
- const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void 0:t._$litStatic$},ve=t=>({_$litStatic$:t,r:ue}),ge=new Map,xe=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],a=[];let l,h=0,d=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(n=i[h],s=be(n));)l+=s+e[++h],d=!0;h!==o&&a.push(n),r.push(l),h++}if(h===o&&r.push(e[o]),d){const t=r.join("$$lit$$");void 0===(e=ge.get(t))&&(r.raw=r,ge.set(t,e=r)),i=a}return t(e,...i)})(Xt);var ye;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ye||(ye={}));var me,$e,we,ke=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class _e extends e.FtLitElement{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?xe`
525
- <${ve(this.element)}
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)}
526
526
  class="ft-typography ft-typography--${this.variant}">
527
527
  <slot></slot>
528
- </${ve(this.element)}>
528
+ </${be(this.element)}>
529
529
  `:xe`
530
530
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
531
- `}}_e.styles=[st,nt,rt,at,lt,ht,dt,pt,ct,ft,ut],ke([o.property()],_e.prototype,"element",void 0),ke([o.property()],_e.prototype,"variant",void 0),e.customElement("ft-typography")(_e),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.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 Se=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ie extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(we).includes(this.variant)?this.variant:we.fluid_topics,e=t!==we.material||!!this.value;return i.html`
531
+ `}}Se.styles=[st,nt,rt,at,lt,dt,ht,ft,pt,ct,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`
532
532
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
533
533
  ${s.unsafeHTML(this.resolvedIcon)}
534
534
  <slot ?hidden=${e}></slot>
535
535
  </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,Se([o.property()],Ie.prototype,"variant",void 0),Se([o.property()],Ie.prototype,"value",void 0),Se([o.state()],Ie.prototype,"resolvedIcon",void 0),Se([o.query("slot")],Ie.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Ie);const 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","1"),Re=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Ee=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ne=i.css`
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"),Ee=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Oe=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Re=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),De=i.css`
537
537
  .ft-tooltip--container {
538
538
  display: block;
539
- position: relative;
540
539
  }
541
540
 
542
541
  .ft-tooltip--inline {
@@ -549,23 +548,21 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
549
548
  box-sizing: border-box;
550
549
  overflow: hidden;
551
550
  width: max-content;
552
- max-width: ${Ee};
551
+ max-width: ${Re};
553
552
  text-align: center;
554
553
  padding: ${Ce};
555
- z-index: ${Oe};
554
+ z-index: ${Ee};
556
555
  }
557
556
 
558
557
  .ft-tooltip--content {
559
558
  padding: 4px 8px;
560
- border-radius: ${Re};
559
+ border-radius: ${Oe};
561
560
  background-color: ${Te};
562
561
  color: ${ze};
563
- top: -500px;
564
- left: -500px;
565
562
  position: relative;
566
563
  word-break: break-word;
567
564
  }
568
- `;var Ae=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 De 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`
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`
569
566
  <div part="container"
570
567
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
571
568
  @mouseenter=${this.onHover}
@@ -583,7 +580,7 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
583
580
  </div>
584
581
  </div>
585
582
  </div>
586
- `}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=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=e.height,s=o;break;case"left":n=i,s=-this.tooltip.clientWidth;break;case"right":n=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=4-e.left);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${e.width}px, ${Ee})`}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())}}De.elementDefinitions={"ft-typography":_e},De.styles=Ne,Ae([o.property()],De.prototype,"text",void 0),Ae([o.property({type:Boolean})],De.prototype,"manual",void 0),Ae([o.property({type:Boolean})],De.prototype,"inline",void 0),Ae([o.property({type:Number})],De.prototype,"delay",void 0),Ae([o.property()],De.prototype,"position",void 0),Ae([o.queryAssignedNodes("",!0)],De.prototype,"slotNodes",void 0),Ae([o.query(".ft-tooltip--container")],De.prototype,"container",void 0),Ae([o.query("slot")],De.prototype,"target",void 0),Ae([o.query(".ft-tooltip")],De.prototype,"tooltip",void 0),Ae([o.query(".ft-tooltip--content")],De.prototype,"tooltipContent",void 0),Ae([o.state()],De.prototype,"visible",void 0),e.customElement("ft-tooltip")(De);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`
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.validPosition){case"top":r=t.offsetTop-i,n=t.offsetLeft+s;break;case"bottom":r=t.offsetTop+t.offsetHeight,n=t.offsetLeft+s;break;case"left":r=t.offsetTop+o,n=t.offsetLeft-e;break;case"right":r=t.offsetTop+o,n=t.offsetLeft+t.offsetWidth}const a=this.tooltip.style;a.left=this.limitValueBetween(n,0,window.innerWidth-e)+"px",a.top=this.limitValueBetween(r,0,window.innerHeight-i)+"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())}limitValueBetween(t,e,i){return Math.max(e,Math.min(t,i))}}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`
587
584
  <style>
588
585
  .ft-ripple .ft-ripple--effect,
589
586
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -600,7 +597,7 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
600
597
  <div class="ft-ripple--background"></div>
601
598
  <div class="ft-ripple--effect"></div>
602
599
  </div>
603
- `}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")},Fe=i.css`
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`
604
601
  .ft-switch-option {
605
602
  position: relative;
606
603
  display: inline-block;
@@ -665,7 +662,7 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
665
662
  }
666
663
 
667
664
  .ft-switch-option--ripple {
668
- ${e.setVariable(c.color,zt.rippleColor)};
665
+ ${e.setVariable(p.color,zt.rippleColor)};
669
666
  }
670
667
 
671
668
  ft-icon, ft-ripple, ft-typography {
@@ -684,7 +681,7 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
684
681
  .ft-switch-option--selected ft-icon {
685
682
  color: ${zt.selectedTextColor};
686
683
  }
687
- `;var je=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class 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 He 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`
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`
688
685
  <label part="label" for="input" class=${n.classMap(t)}
689
686
  @click=${this.onChange}>
690
687
  <div class="ft-switch-option--content">
@@ -708,14 +705,14 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
708
705
  </ft-tooltip>
709
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`
710
707
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
711
- `: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()}}He.elementDefinitions={"ft-ripple":Me,"ft-typography":_e,"ft-tooltip":De,"ft-icon":Ie},He.styles=[e.safariEllipsisFix,Fe],je([o.property()],He.prototype,"value",void 0),je([o.property()],He.prototype,"icon",void 0),je([o.property()],He.prototype,"iconVariant",void 0),je([o.property()],He.prototype,"label",void 0),je([o.property()],He.prototype,"tooltipPosition",void 0),je([o.property({type:Boolean,reflect:!0})],He.prototype,"selected",void 0),je([o.property({type:Boolean})],He.prototype,"trailingIcon",void 0),je([o.property({type:Boolean})],He.prototype,"unselectable",void 0),je([o.query(".ft-switch-option--content slot")],He.prototype,"slottedContent",void 0),je([o.query(".ft-switch-option--input")],He.prototype,"input",void 0);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 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`
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 Ve extends CustomEvent{constructor(t){super("change",{detail:t})}}class We extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){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`
712
709
  <div @keydown=${this.onKeyDown} tabindex="0" class="${n.classMap(t)}">
713
710
  <slot @slotchange=${this.onSlotchange}
714
711
  @option-change=${this.onOptionChangeByScript}
715
712
  @option-change-by-user=${this.onOptionChangeByUser}
716
713
  ></slot>
717
714
  </div>
718
- `}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 He&&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`
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 Ve(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}))}}We.elementDefinitions={},We.styles=i.css`
719
716
  :host {
720
717
  display: inline-block;
721
718
  }
@@ -749,7 +746,7 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
749
746
  --ft-switch-internal-vertical-padding: 2px;
750
747
  --ft-switch-internal-horizontal-padding: 4px;
751
748
  }
752
- `,Ze([o.property({type:Boolean})],Ve.prototype,"dense",void 0),Ze([o.property({type:Boolean})],Ve.prototype,"unselectable",void 0),Ze([o.query(".ft-switch slot")],Ve.prototype,"slottedContent",void 0),Ze([o.state()],Ve.prototype,"selectedOption",void 0),Ze([o.query(".ft-switch")],Ve.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(Ve),e.customElement("ft-switch-option")(He);const Ge=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Ke=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),Ye=i.css`
749
+ `,He([o.property({type:Boolean})],We.prototype,"dense",void 0),He([o.property({type:Boolean})],We.prototype,"unselectable",void 0),He([o.query(".ft-switch slot")],We.prototype,"slottedContent",void 0),He([o.state()],We.prototype,"selectedOption",void 0),He([o.query(".ft-switch")],We.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(We),e.customElement("ft-switch-option")(Ze);const Ge=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Ke=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),Ye=i.css`
753
750
  :host {
754
751
  display: block;
755
752
  }
@@ -829,8 +826,8 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
829
826
  transition: font-size 250ms, line-height 250ms, color 250ms;
830
827
  max-width: calc(${Qe.labelMaxWidth} - 2 * (${Qe.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
831
828
  text-overflow: ellipsis;
832
- ${e.setVariable(Z.fontSize,Qe.fontSize)};
833
- ${e.setVariable(Z.lineHeight,Qe.fontSize)};
829
+ ${e.setVariable(H.fontSize,Qe.fontSize)};
830
+ ${e.setVariable(H.lineHeight,Qe.fontSize)};
834
831
  }
835
832
 
836
833
  .ft-input-label--in-error .ft-input-label--text {
@@ -862,8 +859,8 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
862
859
  }
863
860
 
864
861
  .ft-input-label--raised .ft-input-label--text {
865
- ${e.setVariable(Z.fontSize,Qe.raisedFontSize)};
866
- ${e.setVariable(Z.lineHeight,Qe.raisedFontSize)};
862
+ ${e.setVariable(H.fontSize,Qe.raisedFontSize)};
863
+ ${e.setVariable(H.lineHeight,Qe.raisedFontSize)};
867
864
  }
868
865
 
869
866
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -909,7 +906,7 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
909
906
  </div>
910
907
  `:null}
911
908
  </div>
912
- `}}ii.elementDefinitions={},ii.styles=[dt,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`
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`
913
910
  *:focus {
914
911
  outline: none;
915
912
  }
@@ -942,8 +939,8 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
942
939
  }
943
940
 
944
941
  .ft-text-area--input-panel ft-ripple {
945
- ${e.setVariable(c.opacityContentOnSurfaceHover,"0.08")};
946
- ${e.setVariable(c.opacityContentOnSurfacePressed,"0.04")};
942
+ ${e.setVariable(p.opacityContentOnSurfaceHover,"0.08")};
943
+ ${e.setVariable(p.opacityContentOnSurfacePressed,"0.04")};
947
944
  }
948
945
 
949
946
  .ft-text-area--input {
@@ -1051,14 +1048,14 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1051
1048
  ${this.helper}
1052
1049
  </ft-typography>`:void 0}
1053
1050
  </div>
1054
- `}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":_e},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`
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`
1055
1052
  <div class="ft-loader">
1056
1053
  <div></div>
1057
1054
  <div></div>
1058
1055
  <div></div>
1059
1056
  <div></div>
1060
1057
  </div>
1061
- `}}ai.styles=vt,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 hi 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`
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`
1062
1059
  <button part="button"
1063
1060
  class="${n.classMap(t)}"
1064
1061
  aria-label="${this.getLabel()}"
@@ -1081,15 +1078,259 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1081
1078
  </ft-tooltip>
1082
1079
  `:t}resolveIcon(){return this.loading?i.html`
1083
1080
  <ft-loader part="loader icon"></ft-loader> `:this.icon?i.html`
1084
- <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}}hi.elementDefinitions={"ft-ripple":Me,"ft-tooltip":De,"ft-typography":_e,"ft-icon":Ie,"ft-loader":ai},hi.styles=[e.safariEllipsisFix,Ct],li([o.property({type:String,reflect:!0})],hi.prototype,"role",void 0),li([o.property({type:Boolean})],hi.prototype,"primary",void 0),li([o.property({type:Boolean})],hi.prototype,"outlined",void 0),li([o.property({type:Boolean})],hi.prototype,"disabled",void 0),li([o.property({type:Boolean})],hi.prototype,"dense",void 0),li([o.property({type:Boolean})],hi.prototype,"round",void 0),li([o.property()],hi.prototype,"label",void 0),li([o.property()],hi.prototype,"icon",void 0),li([o.property()],hi.prototype,"iconVariant",void 0),li([o.property({type:Boolean})],hi.prototype,"trailingIcon",void 0),li([o.property({type:Boolean})],hi.prototype,"loading",void 0),li([o.property()],hi.prototype,"tooltipPosition",void 0),li([o.property({type:Boolean})],hi.prototype,"hideTooltip",void 0),li([o.property({type:Boolean})],hi.prototype,"forceTooltip",void 0),li([o.query(".ft-button")],hi.prototype,"button",void 0),li([o.query(".ft-button--label slot")],hi.prototype,"slottedContent",void 0),e.customElement("ft-button")(hi);const di=i.css`
1085
- `,pi=i.css`
1086
- `,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 fi{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?fi.build(t):null!==(e=fi.API)&&void 0!==e?e:fi.API=fi.build()}static await(t){return new Promise((e=>{let i=fi.get(t);if(i)e(i);else{const o=ci.subscribe((()=>{i=fi.get(t),i&&(o(),e(i))}))}}))}}var ui;const bi=Symbol("clearAfterUnitTest");class vi{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=bi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new vi((async(t,e)=>(await fi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new vi((async(t,e)=>(await fi.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=()=>fi.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return 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
+ `,pi=e.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class ci{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=pi.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?ci.build(t):null!==(e=ci.API)&&void 0!==e?e:ci.API=ci.build()}static await(t){return new Promise((e=>{let i=ci.get(t);if(i)e(i);else{const o=pi.subscribe((()=>{i=ci.get(t),i&&(o(),e(i))}))}}))}}var 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=pi.getState().uiLocale,pi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=pi.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,i){var o;if(t=t.toLowerCase(),Object.keys(i).length>0){const s={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...i};e.deepEqual(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,i,...o){var s,n,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(s=this.cache.getNow(t))||void 0===s?void 0:s.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},a).resolve(i,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}ui=vi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new bi((async(t,e)=>(await ci.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new bi((async(t,e)=>(await ci.await()).getCustomMessageContext(t,e))));const 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=()=>ci.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return i.html`
1087
1084
  <slot></slot>
1088
- `}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=pi,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),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 wi=Symbol("i18nProperties"),ki=Symbol("i18nUnsubs");function _i(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[wi])||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[wi])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[wi]&&new Set([...this[wi].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ki].has(t)||this[ki].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[ki].forEach((t=>t())),this[ki].clear()}}return e=ki,$i([o.property({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Si extends(_i(e.FtLitElement)){}class Ii extends(_i(e.FtLitElementRedux)){}var Ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class zi extends Ii{constructor(){super(),this.editorMode=!1,this.addStore(ci)}render(){return this.key&&this.context?i.html`
1085
+ `}updated(t){super.updated(t),t.has("baseUrl")&&pi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&pi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&pi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&pi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&pi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&pi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&pi.actions.setSession(this.session),t.has("availableUiLocales")&&pi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>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),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 wi=Symbol("i18nProperties"),ki=Symbol("i18nUnsubs");function Si(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[wi])||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[wi])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[wi]&&new Set([...this[wi].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ki].has(t)||this[ki].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[ki].forEach((t=>t())),this[ki].clear()}}return e=ki,$i([o.property({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class _i extends(Si(e.FtLitElement)){}class Ii extends(Si(e.FtLitElementRedux)){}var Ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class zi extends Ii{constructor(){super(),this.editorMode=!1,this.addStore(pi)}render(){return this.key&&this.context?i.html`
1089
1086
  <span class="ft-i18n">
1090
1087
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1091
1088
  </span>
1092
- `:this.editorMode?"Select a context and a label key.":i.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}zi.elementDefinitions={},zi.styles=di,Ci([e.redux()],zi.prototype,"editorMode",void 0),Ci([o.property()],zi.prototype,"context",void 0),Ci([o.property()],zi.prototype,"key",void 0),Ci([e.jsonProperty([])],zi.prototype,"args",void 0),Ci([o.property()],zi.prototype,"defaultMessage",void 0);class Ti{static build(t){return new Ti(t)}static fromGwt(t){return new Ti(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 Oi=(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[wi]=null!==(n=i[wi])&&void 0!==n?n:new Map,i[wi].set(o,r)};e.customElement("ft-i18n")(zi);const Ri=Ti.build("integratedFeedbackComponent"),Ei={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Ni=Ti.build("inDesignerFeedbackComponent"),Ai={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Di=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 Si{constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Ri,Ei),this.addI18nContext(Ni,Ai)}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`
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})}}zi.elementDefinitions={},zi.styles=hi,Ci([e.redux()],zi.prototype,"editorMode",void 0),Ci([o.property()],zi.prototype,"context",void 0),Ci([o.property()],zi.prototype,"key",void 0),Ci([e.jsonProperty([])],zi.prototype,"args",void 0),Ci([o.property()],zi.prototype,"defaultMessage",void 0);class Ti{static build(t){return new Ti(t)}static fromGwt(t){return new Ti(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 Ei=(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[wi]=null!==(n=i[wi])&&void 0!==n?n:new Map,i[wi].set(o,r)};e.customElement("ft-i18n")(zi);const Oi=Ti.build("integratedFeedbackComponent"),Ri={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",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"},Di=Ti.build("inDesignerFeedbackComponent"),Ni={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."},Ai={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")},Bi=i.css`
1090
+ *:focus {
1091
+ outline: none;
1092
+ }
1093
+
1094
+ .ft-text-field {
1095
+ display: flex;
1096
+ flex-direction: column;
1097
+ align-items: stretch;
1098
+ position: relative;
1099
+ }
1100
+
1101
+ ft-input-label {
1102
+ ${e.setVariable(Qe.fontSize,Ai.fontSize)};
1103
+ ${e.setVariable(Qe.raisedFontSize,Ai.labelSize)};
1104
+ ${e.setVariable(Qe.verticalSpacing,Ai.verticalSpacing)};
1105
+ ${e.setVariable(Qe.horizontalSpacing,Ai.horizontalSpacing)};
1106
+ }
1107
+
1108
+ .ft-text-field--main-panel {
1109
+ position: relative;
1110
+ display: flex;
1111
+ height: calc(4 * ${Ai.verticalSpacing} + ${Ai.labelSize} + ${Ai.fontSize});
1112
+ }
1113
+
1114
+ .ft-text-field--input-panel {
1115
+ flex-grow: 1;
1116
+ position: relative;
1117
+ display: flex;
1118
+ align-items: center;
1119
+ overflow: hidden;
1120
+ padding: 0 ${Ai.horizontalSpacing};
1121
+
1122
+ ${e.setVariable(M.fontSize,Ai.fontSize)};
1123
+ ${e.setVariable(M.lineHeight,Ai.fontSize)};
1124
+ }
1125
+
1126
+ .ft-text-field--input-panel ft-ripple {
1127
+ ${e.setVariable(p.opacityContentOnSurfaceHover,"0.08")};
1128
+ ${e.setVariable(p.opacityContentOnSurfacePressed,"0.04")};
1129
+ }
1130
+
1131
+ .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1132
+ align-items: flex-end;
1133
+ padding: 0 ${Ai.horizontalSpacing} ${Ai.verticalSpacing} ${Ai.horizontalSpacing};
1134
+ }
1135
+
1136
+ .ft-text-field--prefix {
1137
+ color: ${Ai.prefixColor};
1138
+ margin-right: 2px;
1139
+ flex-shrink: 1;
1140
+ overflow: hidden;
1141
+ white-space: nowrap;
1142
+ text-overflow: ellipsis;
1143
+ }
1144
+
1145
+ .ft-text-field--with-label:not(.ft-text-field--raised-label) .ft-text-field--prefix {
1146
+ display: none;
1147
+ }
1148
+
1149
+ .ft-text-field--input {
1150
+ display: block;
1151
+ position: relative;
1152
+ flex-grow: 1;
1153
+ flex-shrink: 1;
1154
+ min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1155
+
1156
+ color: ${Ai.colorOnSurface};
1157
+ padding: calc(2 * ${Ai.verticalSpacing}) 0;
1158
+ border: none;
1159
+ background: none;
1160
+ }
1161
+
1162
+ .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1163
+ padding-bottom: 0;
1164
+ padding-top: calc(${Ai.labelSize} + 2 * ${Ai.verticalSpacing});
1165
+ }
1166
+
1167
+ .ft-text-field--input::-webkit-calendar-picker-indicator,
1168
+ .ft-text-field--input::-webkit-list-button {
1169
+ display: none !important;
1170
+ }
1171
+
1172
+ .ft-text-field--disabled .ft-text-field--input {
1173
+ color: ${Ai.colorOnSurfaceDisabled};
1174
+ }
1175
+
1176
+ .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1177
+ ${e.setVariable(Qe.borderColor,Ai.colorPrimary)};
1178
+ ${e.setVariable(Qe.textColor,Ai.colorPrimary)};
1179
+ }
1180
+
1181
+ .ft-text-field--filled .ft-text-field--input-panel {
1182
+ border-radius: ${Ai.borderRadiusS} ${Ai.borderRadiusS} 0 0;
1183
+ }
1184
+
1185
+ .ft-text-field--outlined .ft-text-field--input-panel {
1186
+ border-radius: ${Ai.borderRadiusS};
1187
+ }
1188
+
1189
+ .ft-text-field--helper-text {
1190
+ padding: 0 12px 0 ${Ai.horizontalSpacing};
1191
+ color: ${Ai.helperColor};
1192
+ }
1193
+
1194
+ .ft-text-field--in-error .ft-text-field--input,
1195
+ .ft-text-field--in-error .ft-text-field--helper-text,
1196
+ .ft-text-field--in-error .ft-text-field--prefix {
1197
+ color: ${Ai.colorError};
1198
+ }
1199
+
1200
+ .ft-text-field--icon {
1201
+ align-self: center;
1202
+ margin-left: 8px;
1203
+ color: ${Ai.iconColor};
1204
+ }
1205
+
1206
+ .ft-text-field--container {
1207
+ position: relative;
1208
+ }
1209
+
1210
+ .ft-text-field--suggestions {
1211
+ display: none;
1212
+ flex-direction: column;
1213
+ position: absolute;
1214
+ left: 0;
1215
+ right: 0;
1216
+ z-index: ${Ai.floatingZIndex};
1217
+ background: ${Ai.colorSurface};
1218
+ border: 1px solid ${Ai.colorOutline};
1219
+ border-radius: 0 0 ${Ai.borderRadiusS} ${Ai.borderRadiusS};
1220
+ box-shadow: ${Ai.elevation02};
1221
+ outline: none;
1222
+ max-height: ${Ai.suggestSize};
1223
+ overflow-y: auto;
1224
+ }
1225
+
1226
+ .ft-text-field--suggestions:not(.ft-text-field--suggestions-on-top) {
1227
+ top: 100%;
1228
+ }
1229
+
1230
+ .ft-text-field--suggestions.ft-text-field--suggestions-on-top {
1231
+ bottom: 100%;
1232
+ }
1233
+
1234
+ .ft-text-field:not(.ft-text-field--hide-suggestions):focus-within .ft-text-field--suggestions {
1235
+ display: flex;
1236
+ }
1237
+
1238
+ .ft-text-field--with-icon {
1239
+ ${e.setVariable(Qe.labelMaxWidth,`calc(100% - ${gt.size} - ${Qe.horizontalSpacing})`)};
1240
+ }
1241
+
1242
+ .ft-text-field--with-password ft-icon:hover {
1243
+ cursor: pointer;
1244
+ }
1245
+ `;var Mi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ui extends 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`
1246
+ <div class="${n.classMap(t)}">
1247
+ <div class="ft-text-field--main-panel"
1248
+ @keydown=${this.handleKeyboardNavigation}
1249
+ @focusout=${this.onMainPanelBlur}>
1250
+ <ft-input-label text="${this.label}"
1251
+ ?disabled=${this.disabled}
1252
+ ?outlined=${this.outlined}
1253
+ ?raised=${this.focused||""!=this.value}
1254
+ ?error=${this.error}></ft-input-label>
1255
+ <div class="ft-text-field--input-panel">
1256
+ ${this.outlined?i.nothing:i.html`
1257
+ <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1258
+ `}
1259
+ ${this.prefix?i.html`
1260
+ <ft-typography class="ft-text-field--prefix" vaiant="body1">
1261
+ ${this.prefix}
1262
+ </ft-typography>
1263
+ `:i.nothing}
1264
+ <input type=${this.password&&this.hidePassword?"password":"text"}
1265
+ maxlength=${(t=>null!=t?t:Qt)(this.maxLength||void 0)}
1266
+ aria-label="${this.label}"
1267
+ class="ft-typography--body1 ft-text-field--input"
1268
+ ?disabled=${this.disabled}
1269
+ .value=${this.value}
1270
+ @click=${this.handleClick}
1271
+ @keyup=${this.handleInput}
1272
+ @focus=${this.onFocus}/>
1273
+ ${this.renderIcon()}
1274
+ </div>
1275
+ <div class="ft-text-field--suggestions ${this.suggestionsOnTop?"ft-text-field--suggestions-on-top":""}"
1276
+ @suggestion-selected=${this.onSuggestionSelected}>
1277
+ <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1278
+ </div>
1279
+ </div>
1280
+ ${this.helper?i.html`
1281
+ <ft-typography class="ft-text-field--helper-text" variant="caption">
1282
+ ${this.helper}
1283
+ </ft-typography>
1284
+ `:i.nothing}
1285
+ </div>
1286
+ `}renderPasswordIcon(){return i.html`
1287
+ <ft-icon class="ft-text-field--icon"
1288
+ .variant=${this.iconVariant}
1289
+ .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1290
+ @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1291
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?i.html`
1292
+ <ft-icon class="ft-text-field--icon"
1293
+ .variant=${this.iconVariant}
1294
+ .value=${this.icon}
1295
+ @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}}Ui.elementDefinitions={"ft-input-label":ii,"ft-ripple":Me,"ft-typography":Se,"ft-icon":Ie},Ui.styles=[lt,Bi],Mi([o.property()],Ui.prototype,"label",void 0),Mi([o.property({noAccessor:!0})],Ui.prototype,"value",null),Mi([o.state()],Ui.prototype,"dispatchedValue",void 0),Mi([o.property()],Ui.prototype,"helper",void 0),Mi([o.property({type:Boolean})],Ui.prototype,"outlined",void 0),Mi([o.property({type:Boolean})],Ui.prototype,"disabled",void 0),Mi([o.property({type:Boolean})],Ui.prototype,"error",void 0),Mi([o.property()],Ui.prototype,"prefix",void 0),Mi([o.property()],Ui.prototype,"icon",void 0),Mi([o.property()],Ui.prototype,"passwordHiddenIcon",void 0),Mi([o.property()],Ui.prototype,"passwordRevealedIcon",void 0),Mi([o.property()],Ui.prototype,"iconVariant",void 0),Mi([o.property({type:Boolean})],Ui.prototype,"filterSuggestions",void 0),Mi([o.property({type:Number})],Ui.prototype,"maxLength",void 0),Mi([o.property({type:Boolean})],Ui.prototype,"password",void 0),Mi([o.state()],Ui.prototype,"focused",void 0),Mi([o.state()],Ui.prototype,"hidePassword",void 0),Mi([o.state()],Ui.prototype,"suggestionsOnTop",void 0),Mi([o.state()],Ui.prototype,"hideSuggestions",void 0),Mi([o.state()],Ui.prototype,"visibleSuggestions",void 0),Mi([o.query(".ft-text-field--main-panel")],Ui.prototype,"mainPanel",void 0),Mi([o.query(".ft-text-field--input")],Ui.prototype,"input",void 0),Mi([o.query(".ft-text-field--suggestions")],Ui.prototype,"suggestionsContainer",void 0),Mi([o.queryAssignedElements({selector:"ft-text-field-suggestion"})],Ui.prototype,"suggestions",void 0);const ji=i.css`
1297
+ .ft-text-field-suggestion {
1298
+ position: relative;
1299
+ padding: 8px 16px;
1300
+ cursor: pointer;
1301
+ min-height: 44px;
1302
+ box-sizing: border-box;
1303
+ outline: none;
1304
+ }
1305
+
1306
+ .ft-text-field-suggestion,
1307
+ .ft-text-field-suggestion--label {
1308
+ display: flex;
1309
+ align-items: center;
1310
+ gap: 8px;
1311
+ }
1312
+
1313
+ .ft-text-field-suggestion--label {
1314
+ flex-grow: 1;
1315
+ flex-shrink: 1;
1316
+ }
1317
+
1318
+ slot {
1319
+ pointer-events: none;
1320
+ }
1321
+ `;var Fi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Li extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Pi extends e.FtLitElement{render(){return i.html`
1322
+ <div class="ft-text-field-suggestion"
1323
+ tabindex="-1"
1324
+ @keydown=${this.onKeyDown}
1325
+ @click=${this.confirmSuggestion}>
1326
+ <ft-ripple></ft-ripple>
1327
+ <ft-typography part="label"
1328
+ variant="body1"
1329
+ class="ft-text-field-suggestion--label">
1330
+ <slot></slot>
1331
+ </ft-typography>
1332
+ </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 Li(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())}}Pi.elementDefinitions={"ft-ripple":Me,"ft-typography":Se,"ft-icon":Ie},Pi.styles=ji,Fi([o.property()],Pi.prototype,"value",void 0),Fi([o.query(".ft-text-field-suggestion")],Pi.prototype,"container",void 0),Fi([o.queryAssignedNodes()],Pi.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(Ui),e.customElement("ft-text-field-suggestion")(Pi);var Zi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Hi extends(Si(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(Oi,Ri),this.addI18nContext(Di,Ni)}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`
1093
1334
  <div class="ft-reader-feedback">
1094
1335
  ${this.hideTitle?i.nothing:i.html`
1095
1336
  <ft-typography variant="title" part="main-title">
@@ -1109,11 +1350,11 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1109
1350
  ${this.renderRatingDate()}
1110
1351
  </ft-typography>
1111
1352
  </div>
1112
- `:this.placeholderInEditor(this.userHasRatingRole?Ni.messages.ratingNotConfigured():Ni.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Ri.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Ri.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Ri.messages.ratedToday():Ri.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return i.html`
1353
+ `:this.placeholderInEditor(this.userHasRatingRole?Di.messages.ratingNotConfigured():Di.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Oi.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Oi.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Oi.messages.ratedToday():Oi.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return i.html`
1113
1354
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1114
1355
  ${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`
1115
1356
  <ft-button round part="rating-stars-${s}"
1116
- label="${Ri.messages.starsRating(s)}"
1357
+ label="${Oi.messages.starsRating(s)}"
1117
1358
  tooltipPosition="top"
1118
1359
  .iconVariant=${this.iconVariant}
1119
1360
  icon="${o?this.filledStarIcon:this.emptyStarIcon}"
@@ -1130,13 +1371,13 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1130
1371
  ?selected=${e}
1131
1372
  .iconVariant=${this.iconVariant}
1132
1373
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1133
- ${Ri.messages.like()}
1374
+ ${Oi.messages.like()}
1134
1375
  </ft-switch-option>
1135
1376
  <ft-switch-option .value=${0}
1136
1377
  ?selected=${t}
1137
1378
  .iconVariant=${this.iconVariant}
1138
1379
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1139
- ${Ri.messages.dislike()}
1380
+ ${Oi.messages.dislike()}
1140
1381
  </ft-switch-option>
1141
1382
  </ft-switch>
1142
1383
  `;case"DICHOTOMOUS":const o="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,s="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return i.html`
@@ -1145,46 +1386,55 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1145
1386
  part="rating rating-dichotomous">
1146
1387
  <ft-switch-option .value=${1}
1147
1388
  ?selected=${s}>
1148
- ${Ri.messages.dichotomousYes()}
1389
+ ${Oi.messages.dichotomousYes()}
1149
1390
  </ft-switch-option>
1150
1391
  <ft-switch-option .value=${0}
1151
1392
  ?selected=${o}>
1152
- ${Ri.messages.dichotomousNo()}
1393
+ ${Oi.messages.dichotomousNo()}
1153
1394
  </ft-switch-option>
1154
1395
  </ft-switch>
1155
- `}return i.nothing}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){if(this.canAccessFeedback){const t=this.feedbackMailLinkBuilder(this.feedbackMessage);let e=i.html`
1396
+ `}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`
1156
1397
  <ft-button primary
1157
1398
  class="ft-reader-feedback--send-feedback"
1158
- ?disabled=${!this.feedbackMessage}
1159
- @click=${()=>t?this.onMailerFeedbackSent():this.sendFeedback()}
1399
+ ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1400
+ @click=${()=>o?this.onMailerFeedbackSent():this.sendFeedback()}
1160
1401
  part="send-feedback">
1161
- ${Ri.messages.okButton()}
1402
+ ${Oi.messages.okButton()}
1162
1403
  </ft-button>
1163
- `;return t&&(e=i.html`
1164
- <a class="ft-reader-feedback--feedback-link" href="${t}">
1165
- ${e}
1404
+ `;return o&&(s=i.html`
1405
+ <a class="ft-reader-feedback--feedback-link" href="${o}">
1406
+ ${s}
1166
1407
  </a>
1167
1408
  `),i.html`
1168
1409
  <div class="ft-reader-feedback--feedback" part="feedback-container">
1169
1410
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1170
1411
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1171
1412
  </ft-typography>
1413
+ ${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
1415
+ class="ft-reader-feedback--from-input"
1416
+ label=${Oi.messages.feedbackfromEmail()}
1417
+ @live-change=${t=>this.from=t.detail.trim()}
1418
+ ?error=${this.from&&!this.validFromEmail()}
1419
+ helper=${this.from&&!this.validFromEmail()?Oi.messages.feedbackfromEmailInvalid():""}
1420
+ />
1421
+ `:i.nothing}
1172
1422
  <ft-text-area outlined
1173
1423
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1174
- label="${Ri.messages.feedbackInputLabel()}"
1424
+ label="${Oi.messages.feedbackInputLabel()}"
1175
1425
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1176
1426
  ></ft-text-area>
1177
- ${e}
1427
+ ${s}
1178
1428
  </div>
1179
- `}return this.placeholderInEditor(Ni.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?i.html`
1429
+ `}return this.placeholderInEditor(Di.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`
1180
1430
  <div class="ft-reader-feedback--placeholder">
1181
1431
  <ft-typography variant="caption">${t}</ft-typography>
1182
1432
  <ft-tooltip position="left"
1183
- text="${Ni.messages.inDesignerOnlyNotice()}">
1433
+ text="${Di.messages.inDesignerOnlyNotice()}">
1184
1434
  <ft-icon>INFO</ft-icon>
1185
1435
  </ft-tooltip>
1186
1436
  </div>
1187
- `:i.nothing}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Bi.elementDefinitions={"ft-button":hi,"ft-typography":_e,"ft-icon":Ie,"ft-tooltip":De,"ft-switch":Ve,"ft-switch-option":He,"ft-text-area":ri},Bi.styles=Ot,Di([o.property({type:Boolean})],Bi.prototype,"editorMode",void 0),Di([o.property({type:Boolean})],Bi.prototype,"hideTitle",void 0),Di([o.property({type:Boolean})],Bi.prototype,"ratingAllowed",void 0),Di([o.property({attribute:!1})],Bi.prototype,"i18nProperties",void 0),Di([o.property({attribute:!1})],Bi.prototype,"ratingSummary",void 0),Di([o.property({attribute:!1})],Bi.prototype,"user",void 0),Di([o.query(".ft-reader-feedback--feedback-input")],Bi.prototype,"feedbackInput",void 0),Di([o.state()],Bi.prototype,"feedbackMessage",void 0),Di([o.property()],Bi.prototype,"iconVariant",void 0),Di([o.property()],Bi.prototype,"emptyStarIcon",void 0),Di([o.property()],Bi.prototype,"filledStarIcon",void 0),Di([o.property()],Bi.prototype,"emptyLikeIcon",void 0),Di([o.property()],Bi.prototype,"filledLikeIcon",void 0),Di([o.property()],Bi.prototype,"emptyDislikeIcon",void 0),Di([o.property()],Bi.prototype,"filledDislikeIcon",void 0),Di([o.property()],Bi.prototype,"feedbackMailLinkBuilder",void 0);const Mi=Ti.fromGwt("server");class Ui{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;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),s=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Mi.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${s}`}}var Fi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ji extends(_i(d)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=we.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Ui,this.i18nProperties={feedbackMainTitle:Ri.properties.mapFeedbackMainTitle(),ratingSectionTitle:Ri.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Ri.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Ri.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`
1437
+ `:i.nothing}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Hi.elementDefinitions={"ft-button":di,"ft-typography":Se,"ft-icon":Ie,"ft-tooltip":Ae,"ft-switch":We,"ft-switch-option":Ze,"ft-text-area":ri,"ft-text-field":Ui},Hi.styles=Et,Zi([o.property({type:Boolean})],Hi.prototype,"editorMode",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"hideTitle",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"ratingAllowed",void 0),Zi([o.property({attribute:!1})],Hi.prototype,"i18nProperties",void 0),Zi([o.property({attribute:!1})],Hi.prototype,"ratingSummary",void 0),Zi([o.property({attribute:!1})],Hi.prototype,"user",void 0),Zi([o.query(".ft-reader-feedback--feedback-input")],Hi.prototype,"feedbackInput",void 0),Zi([o.state()],Hi.prototype,"from",void 0),Zi([o.state()],Hi.prototype,"feedbackMessage",void 0),Zi([o.property()],Hi.prototype,"iconVariant",void 0),Zi([o.property()],Hi.prototype,"emptyStarIcon",void 0),Zi([o.property()],Hi.prototype,"filledStarIcon",void 0),Zi([o.property()],Hi.prototype,"emptyLikeIcon",void 0),Zi([o.property()],Hi.prototype,"filledLikeIcon",void 0),Zi([o.property()],Hi.prototype,"emptyDislikeIcon",void 0),Zi([o.property()],Hi.prototype,"filledDislikeIcon",void 0),Zi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Hi.prototype,"configuration",void 0),Zi([o.property()],Hi.prototype,"feedbackMailLinkBuilder",void 0);const Vi=Ti.fromGwt("server");class Wi{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${Vi.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${s}&body=${n}`}}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(Si(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 Wi,this.i18nProperties={feedbackMainTitle:Oi.properties.mapFeedbackMainTitle(),ratingSectionTitle:Oi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Oi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Oi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(pi)}render(){return this.map&&(this.editorMode||this.componentVisible)?i.html`
1188
1438
  <ft-reader-feedback
1189
1439
  ratingAllowed
1190
1440
  .i18nProperties=${this.i18nProperties}
@@ -1210,7 +1460,7 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1210
1460
  display: none !important;
1211
1461
  }
1212
1462
  </style>
1213
- `}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:Ri.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ni.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ni.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ri.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Ri.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}ji.elementDefinitions={"ft-reader-feedback":Bi},Fi([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),Fi([e.redux({store:"reader"})],ji.prototype,"map",void 0),Fi([e.redux({store:ci.name})],ji.prototype,"editorMode",void 0),Fi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ji.prototype,"configuration",void 0),Fi([o.state()],ji.prototype,"ratingSummary",void 0),Fi([o.property({type:Boolean})],ji.prototype,"hideTitle",void 0),Fi([o.property()],ji.prototype,"iconVariant",void 0),Fi([o.property()],ji.prototype,"emptyStarIcon",void 0),Fi([o.property()],ji.prototype,"filledStarIcon",void 0),Fi([o.property()],ji.prototype,"emptyLikeIcon",void 0),Fi([o.property()],ji.prototype,"filledLikeIcon",void 0),Fi([o.property()],ji.prototype,"emptyDislikeIcon",void 0),Fi([o.property()],ji.prototype,"filledDislikeIcon",void 0),Fi([o.query("ft-reader-feedback")],ji.prototype,"readerFeedback",void 0),Fi([Oi(Mi.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 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 Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Hi=Symbol("registerInterval");class Zi extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Hi]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Hi]):this.dispatchEvent(new Pi)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Hi,Li([o.state()],i.prototype,"tocNode",void 0),Li([o.state()],i.prototype,"disableContextInteractions",void 0),i}(d)){}var Wi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Vi extends(_i(Zi)){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 Ui,this.i18nProperties={feedbackMainTitle:Ri.properties.topicFeedbackMainTitle(),ratingSectionTitle:Ri.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Ri.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Ri.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`
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:Oi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.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:Oi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}Ki.elementDefinitions={"ft-reader-feedback":Hi},Gi([e.redux({store:pi.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Ki.prototype,"user",void 0),Gi([e.redux({store:"reader"})],Ki.prototype,"map",void 0),Gi([e.redux({store:pi.name})],Ki.prototype,"editorMode",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.state()],Ki.prototype,"ratingSummary",void 0),Gi([o.property({type:Boolean})],Ki.prototype,"hideTitle",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([o.query("ft-reader-feedback")],Ki.prototype,"readerFeedback",void 0),Gi([Ei(Vi.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Ki.prototype,"mailSubject",void 0);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 Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Xi=Symbol("registerInterval");class Ji extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Xi]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Xi]):this.dispatchEvent(new qi)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Xi,Yi([o.state()],i.prototype,"tocNode",void 0),Yi([o.state()],i.prototype,"disableContextInteractions",void 0),i}(h)){}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(Si(Ji)){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 Wi,this.i18nProperties={feedbackMainTitle:Oi.properties.topicFeedbackMainTitle(),ratingSectionTitle:Oi.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Oi.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Oi.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(pi)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?i.html`
1214
1464
  <ft-reader-feedback
1215
1465
  .i18nProperties=${this.i18nProperties}
1216
1466
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1236,4 +1486,4 @@ const ue=Symbol.for(""),be=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
1236
1486
  display: none !important;
1237
1487
  }
1238
1488
  </style>
1239
- `}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:Ri.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ni.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{!this.editorMode&&this.tocNode?(await(null===(i=this.service)||void 0===i?void 0:i.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ri.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ni.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Ri.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}Vi.elementDefinitions={"ft-reader-feedback":Bi},Wi([e.redux({store:ci.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Vi.prototype,"user",void 0),Wi([e.redux({store:"reader"})],Vi.prototype,"map",void 0),Wi([e.redux({store:ci.name})],Vi.prototype,"editorMode",void 0),Wi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Vi.prototype,"configuration",void 0),Wi([o.state()],Vi.prototype,"ratingSummary",void 0),Wi([o.property({type:Boolean})],Vi.prototype,"hideTitle",void 0),Wi([o.property()],Vi.prototype,"iconVariant",void 0),Wi([o.property()],Vi.prototype,"emptyStarIcon",void 0),Wi([o.property()],Vi.prototype,"filledStarIcon",void 0),Wi([o.property()],Vi.prototype,"emptyLikeIcon",void 0),Wi([o.property()],Vi.prototype,"filledLikeIcon",void 0),Wi([o.property()],Vi.prototype,"emptyDislikeIcon",void 0),Wi([o.property()],Vi.prototype,"filledDislikeIcon",void 0),Wi([o.query("ft-reader-feedback")],Vi.prototype,"readerFeedback",void 0),Wi([Oi(Mi.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]})))],Vi.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(ji),e.customElement("ft-reader-topic-feedback")(Vi),t.FtReaderFeedbackCssVariables=Tt,t.FtReaderMapFeedback=ji,t.FtReaderTopicFeedback=Vi,t.styles=Ot}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
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:Oi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.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:Oi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}to.elementDefinitions={"ft-reader-feedback":Hi},Qi([e.redux({store:pi.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],to.prototype,"user",void 0),Qi([e.redux({store:"reader"})],to.prototype,"map",void 0),Qi([e.redux({store:pi.name})],to.prototype,"editorMode",void 0),Qi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],to.prototype,"configuration",void 0),Qi([o.state()],to.prototype,"ratingSummary",void 0),Qi([o.property({type:Boolean})],to.prototype,"hideTitle",void 0),Qi([o.property()],to.prototype,"iconVariant",void 0),Qi([o.property()],to.prototype,"emptyStarIcon",void 0),Qi([o.property()],to.prototype,"filledStarIcon",void 0),Qi([o.property()],to.prototype,"emptyLikeIcon",void 0),Qi([o.property()],to.prototype,"filledLikeIcon",void 0),Qi([o.property()],to.prototype,"emptyDislikeIcon",void 0),Qi([o.property()],to.prototype,"filledDislikeIcon",void 0),Qi([o.query("ft-reader-feedback")],to.prototype,"readerFeedback",void 0),Qi([Ei(Vi.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]})))],to.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Ki),e.customElement("ft-reader-topic-feedback")(to),t.FtReaderFeedbackCssVariables=Tt,t.FtReaderMapFeedback=Ki,t.FtReaderTopicFeedback=to,t.styles=Et}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);