@fluid-topics/ft-reader-feedback 0.3.57 → 0.3.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(t,e,i,o,s,n,r){var a=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class h extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return a([o.state()],e.prototype,"stateManager",void 0),e}(e.FtLitElementRedux)){}const d=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),p={color:d,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",d),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},f=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),c=f,u=e.FtCssVariableFactory.extend("--ft-ripple-background-color",f),b=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),g=b,v=e.FtCssVariableFactory.extend("--ft-ripple-background-color",b),x=i.css`
1
+ !function(t,e,i,o,s,n,r){var a=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class h extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return a([o.state()],e.prototype,"stateManager",void 0),e}(e.FtLitElementRedux)){}const d=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),p={color:d,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",d),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},f=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),c=f,u=e.FtCssVariableFactory.extend("--ft-ripple-background-color",f),b=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),v=b,g=e.FtCssVariableFactory.extend("--ft-ripple-background-color",b),x=i.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -28,11 +28,11 @@
28
28
  }
29
29
 
30
30
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
31
- background-color: ${v};
31
+ background-color: ${g};
32
32
  }
33
33
 
34
34
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
35
- background-color: ${g};
35
+ background-color: ${v};
36
36
  }
37
37
 
38
38
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
@@ -251,7 +251,7 @@
251
251
  transform: translate(calc(0.35 * ${ut.size}), 0);
252
252
  }
253
253
  }
254
- `,gt={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},vt=i.css`
254
+ `,vt={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},gt=i.css`
255
255
  :host, i.ft-icon {
256
256
  display: inline-flex;
257
257
  align-items: center;
@@ -260,14 +260,14 @@
260
260
  }
261
261
 
262
262
  :host {
263
- width: ${gt.size};
264
- height: ${gt.size};
263
+ width: ${vt.size};
264
+ height: ${vt.size};
265
265
  }
266
266
 
267
267
  i.ft-icon {
268
268
  width: 100%;
269
269
  height: 100%;
270
- font-size: ${gt.size};
270
+ font-size: ${vt.size};
271
271
  line-height: 1;
272
272
  font-weight: normal;
273
273
  text-transform: none;
@@ -278,25 +278,25 @@
278
278
  text-rendering: auto;
279
279
  -webkit-font-smoothing: antialiased;
280
280
  -moz-osx-font-smoothing: grayscale;
281
- vertical-align: ${gt.verticalAlign};
281
+ vertical-align: ${vt.verticalAlign};
282
282
  }
283
283
 
284
284
  i.ft-icon.ft-icon--fluid-topics {
285
- font-family: ${gt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
285
+ font-family: ${vt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
286
286
 
287
287
  /* Ugly fix because font is broken */
288
- font-size: calc(0.9 * ${gt.size});
288
+ font-size: calc(0.9 * ${vt.size});
289
289
  position: relative;
290
290
  top: -5%;
291
291
  justify-content: center;
292
292
  }
293
293
 
294
294
  .ft-icon--file-format {
295
- font-family: ${gt.fileFormatFontFamily}, ft-mime, sans-serif;
295
+ font-family: ${vt.fileFormatFontFamily}, ft-mime, sans-serif;
296
296
  }
297
297
 
298
298
  .ft-icon--material {
299
- font-family: ${gt.materialFontFamily}, "Material Icons", sans-serif;
299
+ font-family: ${vt.materialFontFamily}, "Material Icons", sans-serif;
300
300
  }
301
301
  `,xt=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),yt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:xt,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",it.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",xt),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},mt=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),$t={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:mt,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",mt)},wt=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),kt=[e.noTextSelect,i.css`
302
302
  :host {
@@ -340,7 +340,7 @@
340
340
 
341
341
  --ft-button-internal-line-height: calc(${yt.fontSize} + 2px);
342
342
  --ft-button-internal-color: ${yt.color};
343
- ${e.setVariable(gt.size,yt.iconSize)};
343
+ ${e.setVariable(vt.size,yt.iconSize)};
344
344
  --ft-button-internal-vertical-padding: 6px;
345
345
  --ft-button-internal-horizontal-padding: 8px;
346
346
  ${e.setVariable(p.color,yt.rippleColor)};
@@ -505,19 +505,19 @@
505
505
  * Copyright 2020 Google LLC
506
506
  * SPDX-License-Identifier: BSD-3-Clause
507
507
  */
508
- const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void 0:t._$litStatic$},de=t=>({_$litStatic$:t,r:le}),pe=new Map,fe=(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=he(n));)l+=s+e[++h],d=!0;a.push(n),r.push(l),h++}if(h===o&&r.push(e[o]),d){const t=r.join("$$lit$$");void 0===(e=pe.get(t))&&(r.raw=r,pe.set(t,e=r)),i=a}return t(e,...i)})(Pt);var ce;!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"}(ce||(ce={}));var ue,be,ge,ve=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class xe extends e.FtLitElement{constructor(){super(...arguments),this.variant=ce.body1}render(){return this.element?fe`
508
+ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void 0:t._$litStatic$},de=t=>({_$litStatic$:t,r:le}),pe=new Map,fe=(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=he(n));)l+=s+e[++h],d=!0;a.push(n),r.push(l),h++}if(h===o&&r.push(e[o]),d){const t=r.join("$$lit$$");void 0===(e=pe.get(t))&&(r.raw=r,pe.set(t,e=r)),i=a}return t(e,...i)})(Pt);var ce;!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"}(ce||(ce={}));var ue,be,ve,ge=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class xe extends e.FtLitElement{constructor(){super(...arguments),this.variant=ce.body1}render(){return this.element?fe`
509
509
  <${de(this.element)}
510
510
  class="ft-typography ft-typography--${this.variant}">
511
511
  <slot></slot>
512
512
  </${de(this.element)}>
513
513
  `:fe`
514
514
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
515
- `}}xe.styles=[ot,st,nt,rt,at,lt,ht,dt,pt,ft,ct],ve([o.property()],xe.prototype,"element",void 0),ve([o.property()],xe.prototype,"variant",void 0),e.customElement("ft-typography")(xe),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(ue||(ue={})),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;"}(be||(be={})),new Map([...["abw"].map((t=>[t,be.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,be.AUDIO])),...["avi"].map((t=>[t,be.AVI])),...["chm","xhs"].map((t=>[t,be.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,be.CODE])),...["csv"].map((t=>[t,be.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,be.DITA])),...["epub"].map((t=>[t,be.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,be.EXCEL])),...["flac"].map((t=>[t,be.FLAC])),...["gif"].map((t=>[t,be.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,be.GZIP])),...["html","htm","xhtml"].map((t=>[t,be.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,be.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,be.JPEG])),...["json"].map((t=>[t,be.JSON])),...["m4a","m4p"].map((t=>[t,be.M4A])),...["mov","qt"].map((t=>[t,be.MOV])),...["mp3"].map((t=>[t,be.MP3])),...["mp4","m4v"].map((t=>[t,be.MP4])),...["ogg","oga"].map((t=>[t,be.OGG])),...["pdf","ps"].map((t=>[t,be.PDF])),...["png"].map((t=>[t,be.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,be.POWERPOINT])),...["rar"].map((t=>[t,be.RAR])),...["stp"].map((t=>[t,be.STP])),...["txt","rtf","md","mdown"].map((t=>[t,be.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,be.VIDEO])),...["wav"].map((t=>[t,be.WAV])),...["wma"].map((t=>[t,be.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,be.WORD])),...["xml","xsl","rdf"].map((t=>[t,be.XML])),...["yaml","yml","x-yaml"].map((t=>[t,be.YAML])),...["zip"].map((t=>[t,be.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ge||(ge={}));var ye=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class me extends e.FtLitElement{constructor(){super(...arguments),this.variant=ge.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
516
- <i class="ft-icon ${"ft-icon--"+this.variant}">
515
+ `}}xe.styles=[ot,st,nt,rt,at,lt,ht,dt,pt,ft,ct],ge([o.property()],xe.prototype,"element",void 0),ge([o.property()],xe.prototype,"variant",void 0),e.customElement("ft-typography")(xe),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(ue||(ue={})),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;"}(be||(be={})),new Map([...["abw"].map((t=>[t,be.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,be.AUDIO])),...["avi"].map((t=>[t,be.AVI])),...["chm","xhs"].map((t=>[t,be.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,be.CODE])),...["csv"].map((t=>[t,be.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,be.DITA])),...["epub"].map((t=>[t,be.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,be.EXCEL])),...["flac"].map((t=>[t,be.FLAC])),...["gif"].map((t=>[t,be.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,be.GZIP])),...["html","htm","xhtml"].map((t=>[t,be.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,be.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,be.JPEG])),...["json"].map((t=>[t,be.JSON])),...["m4a","m4p"].map((t=>[t,be.M4A])),...["mov","qt"].map((t=>[t,be.MOV])),...["mp3"].map((t=>[t,be.MP3])),...["mp4","m4v"].map((t=>[t,be.MP4])),...["ogg","oga"].map((t=>[t,be.OGG])),...["pdf","ps"].map((t=>[t,be.PDF])),...["png"].map((t=>[t,be.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,be.POWERPOINT])),...["rar"].map((t=>[t,be.RAR])),...["stp"].map((t=>[t,be.STP])),...["txt","rtf","md","mdown"].map((t=>[t,be.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,be.VIDEO])),...["wav"].map((t=>[t,be.WAV])),...["wma"].map((t=>[t,be.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,be.WORD])),...["xml","xsl","rdf"].map((t=>[t,be.XML])),...["yaml","yml","x-yaml"].map((t=>[t,be.YAML])),...["zip"].map((t=>[t,be.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ve||(ve={}));var ye=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class me extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:ve.fluid_topics,o="material"!==e||this.value;return i.html`
516
+ <i class="ft-icon ${"ft-icon--"+e}">
517
517
  ${s.unsafeHTML(this.resolvedIcon)}
518
- <slot ?hidden=${t}></slot>
518
+ <slot ?hidden=${o}></slot>
519
519
  </i>
520
- `}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 ge.file_format:this.resolvedIcon=null!==(t=be[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ge.fluid_topics:this.resolvedIcon=null!==(e=ue[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}me.elementDefinitions={},me.styles=vt,ye([o.property()],me.prototype,"variant",void 0),ye([o.property()],me.prototype,"value",void 0),ye([o.state()],me.prototype,"resolvedIcon",void 0),ye([o.query("slot")],me.prototype,"slottedContent",void 0),e.customElement("ft-icon")(me);const $e=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),we=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),ke=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),_e=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Se=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),ze=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ie=i.css`
520
+ `}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 ve.file_format:this.resolvedIcon=null!==(t=be[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ve.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=ue[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}me.elementDefinitions={},me.styles=gt,ye([o.property()],me.prototype,"variant",void 0),ye([o.property()],me.prototype,"value",void 0),ye([o.state()],me.prototype,"resolvedIcon",void 0),ye([o.query("slot")],me.prototype,"slottedContent",void 0),e.customElement("ft-icon")(me);const $e=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),we=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),ke=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),_e=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Se=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),ze=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ie=i.css`
521
521
  .ft-tooltip--container {
522
522
  display: block;
523
523
  position: relative;
@@ -609,7 +609,7 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
609
609
  align-items: center;
610
610
  justify-content: center;
611
611
  overflow: hidden;
612
- ${e.setVariable(gt.size,_t.iconSize)};
612
+ ${e.setVariable(vt.size,_t.iconSize)};
613
613
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
614
614
  background-color: ${_t.backgroundColor};
615
615
  -webkit-mask-image: radial-gradient(white, black);
@@ -668,7 +668,7 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
668
668
  .ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
669
669
  color: ${_t.selectedTextColor};
670
670
  }
671
- `;var Ee=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ae extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Be extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.iconVariant=ge.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Ae)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(i.html`
671
+ `;var Ee=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ae extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Be extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.iconVariant=ve.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Ae)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(i.html`
672
672
  <label part="label" for="input" class=${n.classMap(t)}
673
673
  @click=${this.onChange}>
674
674
  <input id="input" type="radio" class="ft-switch-option--input"
@@ -1037,7 +1037,7 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
1037
1037
  <div></div>
1038
1038
  <div></div>
1039
1039
  </div>
1040
- `}}ti.styles=bt,e.customElement("ft-loader")(ti);var ei=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ii extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=ge.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
1040
+ `}}ti.styles=bt,e.customElement("ft-loader")(ti);var ei=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ii extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=ve.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
1041
1041
  <button part="button"
1042
1042
  class="${n.classMap(t)}"
1043
1043
  aria-label="${this.getLabel()}"
@@ -1060,7 +1060,7 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
1060
1060
  </ft-tooltip>
1061
1061
  `:t}resolveIcon(){return this.loading?i.html`
1062
1062
  <ft-loader></ft-loader> `:this.icon?i.html`
1063
- <ft-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}}ii.elementDefinitions={"ft-ripple":Ce,"ft-tooltip":Oe,"ft-typography":xe,"ft-icon":me,"ft-loader":ti},ii.styles=[e.safariEllipsisFix,kt],ei([o.property({type:Boolean})],ii.prototype,"primary",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,"dense",void 0),ei([o.property({type:Boolean})],ii.prototype,"round",void 0),ei([o.property({type:String})],ii.prototype,"label",void 0),ei([o.property({type:String})],ii.prototype,"icon",void 0),ei([o.property({type:String})],ii.prototype,"iconVariant",void 0),ei([o.property({type:Boolean})],ii.prototype,"trailingIcon",void 0),ei([o.property({type:Boolean})],ii.prototype,"loading",void 0),ei([o.property({type:String})],ii.prototype,"tooltipPosition",void 0),ei([o.property({type:Boolean})],ii.prototype,"hideTooltip",void 0),ei([o.property({type:Boolean})],ii.prototype,"forceTooltip",void 0),ei([o.query(".ft-button")],ii.prototype,"button",void 0),ei([o.query(".ft-button--label slot")],ii.prototype,"slottedContent",void 0),e.customElement("ft-button")(ii);var oi=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 si extends e.FtLitElement{constructor(){super(...arguments),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.iconVariant=ge.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"}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`
1063
+ <ft-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}}ii.elementDefinitions={"ft-ripple":Ce,"ft-tooltip":Oe,"ft-typography":xe,"ft-icon":me,"ft-loader":ti},ii.styles=[e.safariEllipsisFix,kt],ei([o.property({type:Boolean})],ii.prototype,"primary",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,"dense",void 0),ei([o.property({type:Boolean})],ii.prototype,"round",void 0),ei([o.property({type:String})],ii.prototype,"label",void 0),ei([o.property({type:String})],ii.prototype,"icon",void 0),ei([o.property({type:String})],ii.prototype,"iconVariant",void 0),ei([o.property({type:Boolean})],ii.prototype,"trailingIcon",void 0),ei([o.property({type:Boolean})],ii.prototype,"loading",void 0),ei([o.property({type:String})],ii.prototype,"tooltipPosition",void 0),ei([o.property({type:Boolean})],ii.prototype,"hideTooltip",void 0),ei([o.property({type:Boolean})],ii.prototype,"forceTooltip",void 0),ei([o.query(".ft-button")],ii.prototype,"button",void 0),ei([o.query(".ft-button--label slot")],ii.prototype,"slottedContent",void 0),e.customElement("ft-button")(ii);var oi=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 si extends e.FtLitElement{constructor(){super(...arguments),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.iconVariant=ve.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"}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`
1064
1064
  <div class="ft-reader-feedback">
1065
1065
  ${this.hideTitle?i.nothing:i.html`
1066
1066
  <ft-typography variant="title" part="main-title">
@@ -1152,7 +1152,7 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
1152
1152
  <ft-icon>INFO</ft-icon>
1153
1153
  </ft-tooltip>
1154
1154
  </div>
1155
- `:i.nothing}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}si.elementDefinitions={"ft-button":ii,"ft-typography":xe,"ft-icon":me,"ft-tooltip":Oe,"ft-switch":Me,"ft-switch-option":Be,"ft-text-area":Qe},si.styles=zt,oi([o.property({attribute:!0})],si.prototype,"editorMode",void 0),oi([o.property({type:Boolean})],si.prototype,"hideTitle",void 0),oi([o.property({type:Boolean})],si.prototype,"ratingAllowed",void 0),oi([o.property({attribute:!1})],si.prototype,"labelResolver",void 0),oi([o.property({attribute:!1})],si.prototype,"ratingSummary",void 0),oi([o.property({attribute:!1})],si.prototype,"user",void 0),oi([o.query(".ft-reader-feedback--feedback-input")],si.prototype,"feedbackInput",void 0),oi([o.state()],si.prototype,"feedbackMessage",void 0),oi([o.property()],si.prototype,"iconVariant",void 0),oi([o.property()],si.prototype,"emptyStarIcon",void 0),oi([o.property()],si.prototype,"filledStarIcon",void 0),oi([o.property()],si.prototype,"emptyLikeIcon",void 0),oi([o.property()],si.prototype,"filledLikeIcon",void 0),oi([o.property()],si.prototype,"emptyDislikeIcon",void 0),oi([o.property()],si.prototype,"filledDislikeIcon",void 0),oi([o.property()],si.prototype,"feedbackMailLinkBuilder",void 0);const ni={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.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."},ri={...ni,feedbackMainTitle:"Send feedback",ratingSectionTitle:"Rate this document",dichotomousRatingSectionTitle:"Did it solve your problem?",feedbackSectionTitle:"Write your review",mailSubject:"Feedback about “{0}”"},ai={...ni,feedbackMainTitle:"Send feedback",ratingSectionTitle:"Rate this content",dichotomousRatingSectionTitle:"Did this content solve your problem?",feedbackSectionTitle:"Write your review",mailSubject:"Feedback about “{0}” in “{1}”"},li=new e.ParametrizedLabelResolver(ai,{}),hi=new e.ParametrizedLabelResolver(ri,{});class di{constructor(t){this.disclaimer=t,this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,o,s){this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=s,this.subjectMetadata=o.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),s=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${this.disclaimer}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${s}`}}var pi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class fi extends h{constructor(){super(...arguments),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=ge.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 di(hi.resolve("mailDisclaimer")),this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500)}render(){return null==this.map?i.nothing:i.html`
1155
+ `:i.nothing}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}si.elementDefinitions={"ft-button":ii,"ft-typography":xe,"ft-icon":me,"ft-tooltip":Oe,"ft-switch":Me,"ft-switch-option":Be,"ft-text-area":Qe},si.styles=zt,oi([o.property({attribute:!0})],si.prototype,"editorMode",void 0),oi([o.property({type:Boolean})],si.prototype,"hideTitle",void 0),oi([o.property({type:Boolean})],si.prototype,"ratingAllowed",void 0),oi([o.property({attribute:!1})],si.prototype,"labelResolver",void 0),oi([o.property({attribute:!1})],si.prototype,"ratingSummary",void 0),oi([o.property({attribute:!1})],si.prototype,"user",void 0),oi([o.query(".ft-reader-feedback--feedback-input")],si.prototype,"feedbackInput",void 0),oi([o.state()],si.prototype,"feedbackMessage",void 0),oi([o.property()],si.prototype,"iconVariant",void 0),oi([o.property()],si.prototype,"emptyStarIcon",void 0),oi([o.property()],si.prototype,"filledStarIcon",void 0),oi([o.property()],si.prototype,"emptyLikeIcon",void 0),oi([o.property()],si.prototype,"filledLikeIcon",void 0),oi([o.property()],si.prototype,"emptyDislikeIcon",void 0),oi([o.property()],si.prototype,"filledDislikeIcon",void 0),oi([o.property()],si.prototype,"feedbackMailLinkBuilder",void 0);const ni={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.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."},ri={...ni,feedbackMainTitle:"Send feedback",ratingSectionTitle:"Rate this document",dichotomousRatingSectionTitle:"Did it solve your problem?",feedbackSectionTitle:"Write your review",mailSubject:"Feedback about “{0}”"},ai={...ni,feedbackMainTitle:"Send feedback",ratingSectionTitle:"Rate this content",dichotomousRatingSectionTitle:"Did this content solve your problem?",feedbackSectionTitle:"Write your review",mailSubject:"Feedback about “{0}” in “{1}”"},li=new e.ParametrizedLabelResolver(ai,{}),hi=new e.ParametrizedLabelResolver(ri,{});class di{constructor(t){this.disclaimer=t,this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,o,s){this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=s,this.subjectMetadata=o.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),s=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${this.disclaimer}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${s}`}}var pi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class fi extends h{constructor(){super(...arguments),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=ve.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 di(hi.resolve("mailDisclaimer")),this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500)}render(){return null==this.map?i.nothing:i.html`
1156
1156
  <ft-reader-feedback
1157
1157
  ratingAllowed
1158
1158
  .editorMode=${this.editorMode}
@@ -1171,7 +1171,7 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
1171
1171
  @rate=${this.rate}
1172
1172
  @send-feedback=${this.sendFeedback}
1173
1173
  ></ft-reader-feedback>
1174
- `}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(hi.resolve("mailSubject",this.map.title),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,i;this.user=await(null===(t=this.service)||void 0===t?void 0:t.getSession().then((t=>t.profile))),this.map&&((null===(e=this.user)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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:hi.resolve("ratingFailure")}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:hi.resolve("feedbackAndRatingDisabledInEditor")}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:hi.resolve("feedbackAndRatingDisabledInEditor")})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:hi.resolve("feedbackSuccess")}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:hi.resolve("feedbackFailure")}))}}}fi.elementDefinitions={"ft-reader-feedback":si},pi([e.redux()],fi.prototype,"map",void 0),pi([o.property({attribute:!1})],fi.prototype,"editorMode",void 0),pi([e.redux((t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}))],fi.prototype,"configuration",void 0),pi([o.state()],fi.prototype,"ratingSummary",void 0),pi([o.state()],fi.prototype,"user",void 0),pi([o.property({type:Boolean})],fi.prototype,"hideTitle",void 0),pi([o.property()],fi.prototype,"iconVariant",void 0),pi([o.property()],fi.prototype,"emptyStarIcon",void 0),pi([o.property()],fi.prototype,"filledStarIcon",void 0),pi([o.property()],fi.prototype,"emptyLikeIcon",void 0),pi([o.property()],fi.prototype,"filledLikeIcon",void 0),pi([o.property()],fi.prototype,"emptyDislikeIcon",void 0),pi([o.property()],fi.prototype,"filledDislikeIcon",void 0),pi([o.query("ft-reader-feedback")],fi.prototype,"readerFeedback",void 0);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 ui extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class bi extends(function(t){class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new ui)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return ci([o.state()],e.prototype,"tocNode",void 0),ci([o.state()],e.prototype,"disableContextInteractions",void 0),e}(h)){}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 vi extends bi{constructor(){super(...arguments),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=ge.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 di(li.resolve("mailDisclaimer")),this.sendRatingDebouncer=new e.Debouncer(500)}render(){return null==this.map||null==this.tocNode?i.nothing:i.html`
1174
+ `}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(hi.resolve("mailSubject",this.map.title),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,i;this.user=await(null===(t=this.service)||void 0===t?void 0:t.getSession().then((t=>t.profile))),this.map&&((null===(e=this.user)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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:hi.resolve("ratingFailure")}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:hi.resolve("feedbackAndRatingDisabledInEditor")}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:hi.resolve("feedbackAndRatingDisabledInEditor")})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:hi.resolve("feedbackSuccess")}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:hi.resolve("feedbackFailure")}))}}}fi.elementDefinitions={"ft-reader-feedback":si},pi([e.redux()],fi.prototype,"map",void 0),pi([o.property({attribute:!1})],fi.prototype,"editorMode",void 0),pi([e.redux((t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}))],fi.prototype,"configuration",void 0),pi([o.state()],fi.prototype,"ratingSummary",void 0),pi([o.state()],fi.prototype,"user",void 0),pi([o.property({type:Boolean})],fi.prototype,"hideTitle",void 0),pi([o.property()],fi.prototype,"iconVariant",void 0),pi([o.property()],fi.prototype,"emptyStarIcon",void 0),pi([o.property()],fi.prototype,"filledStarIcon",void 0),pi([o.property()],fi.prototype,"emptyLikeIcon",void 0),pi([o.property()],fi.prototype,"filledLikeIcon",void 0),pi([o.property()],fi.prototype,"emptyDislikeIcon",void 0),pi([o.property()],fi.prototype,"filledDislikeIcon",void 0),pi([o.query("ft-reader-feedback")],fi.prototype,"readerFeedback",void 0);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 ui extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class bi extends(function(t){class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new ui)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return ci([o.state()],e.prototype,"tocNode",void 0),ci([o.state()],e.prototype,"disableContextInteractions",void 0),e}(h)){}var vi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class gi extends bi{constructor(){super(...arguments),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=ve.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 di(li.resolve("mailDisclaimer")),this.sendRatingDebouncer=new e.Debouncer(500)}render(){return null==this.map||null==this.tocNode?i.nothing:i.html`
1175
1175
  <ft-reader-feedback
1176
1176
  ?ratingAllowed=${this.tocNode.hasRating}
1177
1177
  .editorMode=${this.editorMode}
@@ -1190,4 +1190,4 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
1190
1190
  @rate=${this.rate}
1191
1191
  @send-feedback=${this.sendFeedback}
1192
1192
  ></ft-reader-feedback>
1193
- `}updated(t){var e,i,o;super.updated(t),t.has("tocNode")&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(li.resolve("mailSubject",this.tocNode.title,this.map.title),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()}async updateData(){var t,e,i;this.user=await(null===(t=this.service)||void 0===t?void 0:t.getSession().then((t=>t.profile))),this.tocNode&&((null===(e=this.user)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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:li.resolve("ratingFailure")}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:li.resolve("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:li.resolve("feedbackSuccess")})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:li.resolve("feedbackAndRatingDisabledInEditor")}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:li.resolve("feedbackFailure")}))}}}vi.elementDefinitions={"ft-reader-feedback":si},gi([e.redux()],vi.prototype,"map",void 0),gi([o.property({attribute:!1})],vi.prototype,"editorMode",void 0),gi([e.redux((t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}))],vi.prototype,"configuration",void 0),gi([o.state()],vi.prototype,"ratingSummary",void 0),gi([o.state()],vi.prototype,"user",void 0),gi([o.property({type:Boolean})],vi.prototype,"hideTitle",void 0),gi([o.property()],vi.prototype,"iconVariant",void 0),gi([o.property()],vi.prototype,"emptyStarIcon",void 0),gi([o.property()],vi.prototype,"filledStarIcon",void 0),gi([o.property()],vi.prototype,"emptyLikeIcon",void 0),gi([o.property()],vi.prototype,"filledLikeIcon",void 0),gi([o.property()],vi.prototype,"emptyDislikeIcon",void 0),gi([o.property()],vi.prototype,"filledDislikeIcon",void 0),gi([o.query("ft-reader-feedback")],vi.prototype,"readerFeedback",void 0),e.customElement("ft-reader-map-feedback")(fi),e.customElement("ft-reader-topic-feedback")(vi),t.FtReaderFeedbackCssVariables=St,t.FtReaderMapFeedback=fi,t.FtReaderTopicFeedback=vi,t.styles=zt,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
1193
+ `}updated(t){var e,i,o;super.updated(t),t.has("tocNode")&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(li.resolve("mailSubject",this.tocNode.title,this.map.title),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()}async updateData(){var t,e,i;this.user=await(null===(t=this.service)||void 0===t?void 0:t.getSession().then((t=>t.profile))),this.tocNode&&((null===(e=this.user)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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:li.resolve("ratingFailure")}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:li.resolve("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:li.resolve("feedbackSuccess")})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:li.resolve("feedbackAndRatingDisabledInEditor")}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:li.resolve("feedbackFailure")}))}}}gi.elementDefinitions={"ft-reader-feedback":si},vi([e.redux()],gi.prototype,"map",void 0),vi([o.property({attribute:!1})],gi.prototype,"editorMode",void 0),vi([e.redux((t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}))],gi.prototype,"configuration",void 0),vi([o.state()],gi.prototype,"ratingSummary",void 0),vi([o.state()],gi.prototype,"user",void 0),vi([o.property({type:Boolean})],gi.prototype,"hideTitle",void 0),vi([o.property()],gi.prototype,"iconVariant",void 0),vi([o.property()],gi.prototype,"emptyStarIcon",void 0),vi([o.property()],gi.prototype,"filledStarIcon",void 0),vi([o.property()],gi.prototype,"emptyLikeIcon",void 0),vi([o.property()],gi.prototype,"filledLikeIcon",void 0),vi([o.property()],gi.prototype,"emptyDislikeIcon",void 0),vi([o.property()],gi.prototype,"filledDislikeIcon",void 0),vi([o.query("ft-reader-feedback")],gi.prototype,"readerFeedback",void 0),e.customElement("ft-reader-map-feedback")(fi),e.customElement("ft-reader-topic-feedback")(gi),t.FtReaderFeedbackCssVariables=St,t.FtReaderMapFeedback=fi,t.FtReaderTopicFeedback=gi,t.styles=zt,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
@@ -39,29 +39,30 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
39
39
  * @license
40
40
  * Copyright 2021 Google LLC
41
41
  * SPDX-License-Identifier: BSD-3-Clause
42
- */var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function c(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!c(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!c(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var s=n[o];if(!c(t[s],e[s]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}
42
+ */var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!h(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!h(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var s=n[o];if(!h(t[s],e[s]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const c=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const d=window,p=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),u=new WeakMap;class b{constructor(t,e,i){if(this._$cssResult$=!0,i!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(p&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}}const v=t=>new b("string"==typeof t?t:t+"",void 0,f),g=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new b(i,t,f)},y=(t,e)=>{p?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=d.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(t):t
47
+ */
48
+ const d=window,p=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),u=new WeakMap;class b{constructor(t,e,i){if(this._$cssResult$=!0,i!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(p&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}}const v=t=>new b("string"==typeof t?t:t+"",void 0,f),g=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new b(i,t,f)},y=(t,e)=>{p?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=d.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(t):t
48
49
  /**
49
50
  * @license
50
51
  * Copyright 2017 Google LLC
51
52
  * SPDX-License-Identifier: BSD-3-Clause
52
- */;var m;const $=window,w=$.trustedTypes,k=w?w.emptyScript:"",S=$.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?k:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},_=(t,e)=>e!==t&&(e==e||t==t),R={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:_};class C extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=R){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||R}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return y(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=R){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:O).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:O;this._$El=n,this[n]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||_)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
53
+ */;var m;const $=window,w=$.trustedTypes,k=w?w.emptyScript:"",S=$.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?k:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},_=(t,e)=>e!==t&&(e==e||t==t),C={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:_};class R extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=C){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||C}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return y(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=C){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:O).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:O;this._$El=n,this[n]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||_)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
53
54
  /**
54
55
  * @license
55
56
  * Copyright 2017 Google LLC
56
57
  * SPDX-License-Identifier: BSD-3-Clause
57
58
  */
58
- var N;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:C}),(null!==(m=$.reactiveElementVersions)&&void 0!==m?m:$.reactiveElementVersions=[]).push("1.4.1");const E=window,M=E.trustedTypes,T=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,I=`lit$${(Math.random()+"").slice(9)}$`,z="?"+I,F=`<${z}>`,D=document,U=(t="")=>D.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,B=t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,H=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),K=/'/g,Z=/"/g,V=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),Y=new WeakMap,X=D.createTreeWalker(D,129,null,!1),Q=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=L;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===L?"!--"===l[1]?r=P:void 0!==l[1]?r=H:void 0!==l[2]?(V.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=W):void 0!==l[3]&&(r=W):r===W?">"===l[0]?(r=null!=n?n:L,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?W:'"'===l[3]?Z:K):r===Z||r===K?r=W:r===P||r===H?r=L:(r=W,n=void 0);const d=r===W&&t[e+1].startsWith("/>")?" ":"";s+=r===L?i+F:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+I+d):i+I+(-2===h?(o.push(void 0),e):d)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==T?T.createHTML(a):a,o]};class tt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=Q(t,e);if(this.el=tt.createElement(l,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(I)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(I),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?st:"?"===e[1]?at:"@"===e[1]?lt:nt})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(V.test(o.tagName)){const t=o.textContent.split(I),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),X.nextNode(),a.push({type:2,index:++n});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===z)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(I,t+1));)a.push({type:7,index:n}),t+=I.length-1}n++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function et(t,e,i=t,o){var n,s,r,a;if(e===J)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=j(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.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=et(t,l._$AS(t,e.values),l,o)),e}class it{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:D).importNode(i,!0);X.currentNode=n;let s=X.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new ot(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new ht(s,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=X.nextNode(),r++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class ot{constructor(t,e,i,o){var n;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),j(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):B(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==q&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=tt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new it(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new tt(t)),e}k(t){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new ot(this.O(U()),this.O(U()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class nt{constructor(t,e,i,o,n){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=et(this,t,e,0),s=!j(t)||t!==this._$AH&&t!==J,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=et(this,o[i+r],e,r),a===J&&(a=this._$AH[r]),s||(s=!j(a)||a!==this._$AH[r]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const rt=M?M.emptyScript:"";class at extends nt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class lt extends nt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=et(this,t,e,0))&&void 0!==i?i:q)===J)return;const o=this._$AH,n=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==q&&(o===q||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 ht{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){et(this,t)}}const ct={P:"$lit$",A:I,M:z,C:1,L:Q,R:it,D:B,V:et,I:ot,H:nt,N:at,U:lt,B:st,F:ht},dt=E.litHtmlPolyfillSupport;null==dt||dt(tt,ot),(null!==(N=E.litHtmlVersions)&&void 0!==N?N:E.litHtmlVersions=[]).push("2.4.0");
59
+ var N;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:R}),(null!==(m=$.reactiveElementVersions)&&void 0!==m?m:$.reactiveElementVersions=[]).push("1.4.1");const E=window,M=E.trustedTypes,T=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,I=`lit$${(Math.random()+"").slice(9)}$`,z="?"+I,F=`<${z}>`,D=document,U=(t="")=>D.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,B=t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,H=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),K=/'/g,Z=/"/g,V=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),Y=new WeakMap,X=D.createTreeWalker(D,129,null,!1),Q=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=L;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===L?"!--"===l[1]?r=P:void 0!==l[1]?r=H:void 0!==l[2]?(V.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=W):void 0!==l[3]&&(r=W):r===W?">"===l[0]?(r=null!=n?n:L,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?W:'"'===l[3]?Z:K):r===Z||r===K?r=W:r===P||r===H?r=L:(r=W,n=void 0);const d=r===W&&t[e+1].startsWith("/>")?" ":"";s+=r===L?i+F:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+I+d):i+I+(-2===h?(o.push(void 0),e):d)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==T?T.createHTML(a):a,o]};class tt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=Q(t,e);if(this.el=tt.createElement(l,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(I)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(I),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?st:"?"===e[1]?at:"@"===e[1]?lt:nt})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(V.test(o.tagName)){const t=o.textContent.split(I),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),X.nextNode(),a.push({type:2,index:++n});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===z)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(I,t+1));)a.push({type:7,index:n}),t+=I.length-1}n++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function et(t,e,i=t,o){var n,s,r,a;if(e===J)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=j(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.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=et(t,l._$AS(t,e.values),l,o)),e}class it{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:D).importNode(i,!0);X.currentNode=n;let s=X.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new ot(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new ht(s,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=X.nextNode(),r++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class ot{constructor(t,e,i,o){var n;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),j(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):B(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==q&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=tt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new it(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new tt(t)),e}k(t){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new ot(this.O(U()),this.O(U()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class nt{constructor(t,e,i,o,n){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=et(this,t,e,0),s=!j(t)||t!==this._$AH&&t!==J,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=et(this,o[i+r],e,r),a===J&&(a=this._$AH[r]),s||(s=!j(a)||a!==this._$AH[r]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const rt=M?M.emptyScript:"";class at extends nt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class lt extends nt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=et(this,t,e,0))&&void 0!==i?i:q)===J)return;const o=this._$AH,n=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==q&&(o===q||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 ht{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){et(this,t)}}const ct={P:"$lit$",A:I,M:z,C:1,L:Q,R:it,D:B,V:et,I:ot,H:nt,N:at,U:lt,B:st,F:ht},dt=E.litHtmlPolyfillSupport;null==dt||dt(tt,ot),(null!==(N=E.litHtmlVersions)&&void 0!==N?N:E.litHtmlVersions=[]).push("2.4.0");
59
60
  /**
60
61
  * @license
61
62
  * Copyright 2017 Google LLC
62
63
  * SPDX-License-Identifier: BSD-3-Clause
63
64
  */
64
- var pt,ft;class ut extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new ot(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}ut.finalized=!0,ut._$litElement$=!0,null===(pt=globalThis.litElementHydrateSupport)||void 0===pt||pt.call(globalThis,{LitElement:ut});const bt=globalThis.litElementPolyfillSupport;null==bt||bt({LitElement:ut}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.2.2");class vt{static create(t,e,i){let o=t=>v(null!=t?t:i),n=g`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>g`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=g`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>g`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):v(null!=e?e:t.defaultValue),o=g`var(${v(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>g`var(${v(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function gt(t,e){return v(`${t.name}: ${e}`)}const yt={colorPrimary:vt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:vt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:vt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:vt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:vt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:vt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:vt.create("--ft-color-error","COLOR","#B00020"),colorOutline:vt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:vt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:vt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:vt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:vt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:vt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:vt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:vt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:vt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:vt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:vt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:vt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:vt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:vt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:vt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:vt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:vt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:vt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:vt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:vt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:vt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:vt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:vt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:vt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:vt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:vt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:vt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:vt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:vt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:vt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:vt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:vt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:vt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:vt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:vt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:vt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:vt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:vt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:vt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:vt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:vt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:vt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:vt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:vt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:vt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:vt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:vt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:vt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:vt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:vt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:vt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:vt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:vt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:vt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:vt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class xt extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
65
+ var pt,ft;class ut extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new ot(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}ut.finalized=!0,ut._$litElement$=!0,null===(pt=globalThis.litElementHydrateSupport)||void 0===pt||pt.call(globalThis,{LitElement:ut});const bt=globalThis.litElementPolyfillSupport;null==bt||bt({LitElement:ut}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.2.2");class vt{static create(t,e,i){let o=t=>v(null!=t?t:i),n=g`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>g`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=g`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>g`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):v(null!=e?e:t.defaultValue),o=g`var(${v(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>g`var(${v(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function gt(t,e){return v(`${t.name}: ${e}`)}const yt={colorPrimary:vt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:vt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:vt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:vt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:vt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:vt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:vt.create("--ft-color-error","COLOR","#B00020"),colorOutline:vt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:vt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:vt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:vt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:vt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:vt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:vt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:vt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:vt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:vt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:vt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:vt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:vt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:vt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:vt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:vt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:vt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:vt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:vt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:vt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:vt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:vt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:vt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:vt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:vt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:vt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:vt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:vt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:vt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:vt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:vt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:vt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:vt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:vt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:vt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:vt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:vt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:vt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:vt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:vt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:vt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:vt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:vt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:vt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:vt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:vt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:vt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:vt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:vt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:vt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:vt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:vt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:vt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:vt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:vt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class xt extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
65
66
  /**
66
67
  * @license
67
68
  * Copyright 2021 Google LLC
@@ -71,7 +72,7 @@ var pt,ft;class ut extends C{constructor(){super(...arguments),this.renderOption
71
72
  <style>${t}</style>
72
73
  `))}
73
74
  ${this.getTemplate()}
74
- `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}mt([o()],$t.prototype,"exportpartsPrefix",void 0),mt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],$t.prototype,"exportpartsPrefixes",void 0),mt([o()],$t.prototype,"customStylesheet",void 0);const wt=g`
75
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}mt([o()],$t.prototype,"exportpartsPrefix",void 0),mt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}([])],$t.prototype,"exportpartsPrefixes",void 0),mt([o()],$t.prototype,"customStylesheet",void 0);const wt=g`
75
76
  .ft-no-text-select {
76
77
  -webkit-touch-callout: none;
77
78
  -webkit-user-select: none;
@@ -103,7 +104,7 @@ var pt,ft;class ut extends C{constructor(){super(...arguments),this.renderOption
103
104
  display: inline-block;
104
105
  width: 0;
105
106
  }
106
- `;class St{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${t}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):t}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const Ot=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged),_t=(t,e)=>{var i;const o=Ot(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!c(t,e),(i,n)=>{var s;i.constructor.createProperty(n,{attribute:!1,hasChanged:e});const r=i;r.reduxProperties=r.reduxProperties||new Map;const a=null!==(s=Ot(t)?o.selector:t)&&void 0!==s?s:t=>t[n];r.reduxProperties.set(n,{selector:a,store:o.store})}};class Rt extends $t{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:Ct(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:Ct(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Ct(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var Nt,Et,Mt;const Tt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mt=null===(Et=null===(Nt=window.safari)||void 0===Nt?void 0:Nt.pushNotification)||void 0===Et?void 0:Et.toString())&&void 0!==Mt?Mt:"");var It=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class zt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Ft extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new zt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return It([n()],e.prototype,"stateManager",void 0),e}(Rt)){}const Dt=vt.extend("--ft-ripple-color",yt.colorContent),Ut={color:Dt,backgroundColor:vt.extend("--ft-ripple-background-color",Dt),opacityContentOnSurfacePressed:vt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:vt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:vt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:vt.external(yt.opacityContentOnSurfaceSelected,"Design system")},jt=vt.extend("--ft-ripple-color",yt.colorPrimary),At=jt,Bt=vt.extend("--ft-ripple-background-color",jt),Lt=vt.extend("--ft-ripple-color",yt.colorSecondary),Pt=Lt,Ht=vt.extend("--ft-ripple-background-color",Lt),Wt=g`
107
+ `;class St{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:t;return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${t}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):t}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const Ot=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged||null!=t.attribute),_t=(t,e)=>{var i;const o=Ot(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!h(t,e),(i,n)=>{var s,r;i.constructor.createProperty(n,{hasChanged:e,attribute:null!==(s=o.attribute)&&void 0!==s&&s});const a=i;a.reduxProperties=a.reduxProperties||new Map;const l=null!==(r=Ot(t)?o.selector:t)&&void 0!==r?r:t=>t[n];a.reduxProperties.set(n,{selector:l,store:o.store})}};class Ct extends $t{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:Rt(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:Rt(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Rt(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var Nt,Et,Mt;const Tt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mt=null===(Et=null===(Nt=window.safari)||void 0===Nt?void 0:Nt.pushNotification)||void 0===Et?void 0:Et.toString())&&void 0!==Mt?Mt:"");var It=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class zt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Ft extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new zt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return It([n()],e.prototype,"stateManager",void 0),e}(Ct)){}const Dt=vt.extend("--ft-ripple-color",yt.colorContent),Ut={color:Dt,backgroundColor:vt.extend("--ft-ripple-background-color",Dt),opacityContentOnSurfacePressed:vt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:vt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:vt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:vt.external(yt.opacityContentOnSurfaceSelected,"Design system")},jt=vt.extend("--ft-ripple-color",yt.colorPrimary),At=jt,Bt=vt.extend("--ft-ripple-background-color",jt),Lt=vt.extend("--ft-ripple-color",yt.colorSecondary),Pt=Lt,Ht=vt.extend("--ft-ripple-background-color",Lt),Wt=g`
107
108
  :host {
108
109
  display: contents;
109
110
  }
@@ -192,7 +193,7 @@ var pt,ft;class ut extends C{constructor(){super(...arguments),this.renderOption
192
193
  opacity: ${Ut.opacityContentOnSurfacePressed};
193
194
  transform: translate(-50%, -50%) scale(1);
194
195
  }
195
- `,Kt=vt.extend("--ft-typography-font-family",yt.titleFont),Zt=vt.extend("--ft-typography-font-family",yt.contentFont),Vt={fontFamily:Zt,fontSize:vt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:vt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:vt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:vt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:vt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Gt={fontFamily:vt.extend("--ft-typography-title-font-family",Kt),fontSize:vt.extend("--ft-typography-title-font-size",Vt.fontSize,"20px"),fontWeight:vt.extend("--ft-typography-title-font-weight",Vt.fontWeight,"normal"),letterSpacing:vt.extend("--ft-typography-title-letter-spacing",Vt.letterSpacing,"0.15px"),lineHeight:vt.extend("--ft-typography-title-line-height",Vt.lineHeight,"1.2"),textTransform:vt.extend("--ft-typography-title-text-transform",Vt.textTransform,"inherit")},Jt={fontFamily:vt.extend("--ft-typography-title-dense-font-family",Kt),fontSize:vt.extend("--ft-typography-title-dense-font-size",Vt.fontSize,"14px"),fontWeight:vt.extend("--ft-typography-title-dense-font-weight",Vt.fontWeight,"normal"),letterSpacing:vt.extend("--ft-typography-title-dense-letter-spacing",Vt.letterSpacing,"0.105px"),lineHeight:vt.extend("--ft-typography-title-dense-line-height",Vt.lineHeight,"1.7"),textTransform:vt.extend("--ft-typography-title-dense-text-transform",Vt.textTransform,"inherit")},qt=vt.extend("--ft-typography-subtitle1-font-family",Zt),Yt=vt.extend("--ft-typography-subtitle1-font-size",Vt.fontSize,"16px"),Xt=vt.extend("--ft-typography-subtitle1-font-weight",Vt.fontWeight,"600"),Qt=vt.extend("--ft-typography-subtitle1-letter-spacing",Vt.letterSpacing,"0.144px"),te=vt.extend("--ft-typography-subtitle1-line-height",Vt.lineHeight,"1.5"),ee=vt.extend("--ft-typography-subtitle1-text-transform",Vt.textTransform,"inherit"),ie=vt.extend("--ft-typography-subtitle2-font-family",Zt),oe=vt.extend("--ft-typography-subtitle2-font-size",Vt.fontSize,"14px"),ne=vt.extend("--ft-typography-subtitle2-font-weight",Vt.fontWeight,"normal"),se=vt.extend("--ft-typography-subtitle2-letter-spacing",Vt.letterSpacing,"0.098px"),re=vt.extend("--ft-typography-subtitle2-line-height",Vt.lineHeight,"1.7"),ae=vt.extend("--ft-typography-subtitle2-text-transform",Vt.textTransform,"inherit"),le={fontFamily:vt.extend("--ft-typography-body1-font-family",Zt),fontSize:vt.extend("--ft-typography-body1-font-size",Vt.fontSize,"16px"),fontWeight:vt.extend("--ft-typography-body1-font-weight",Vt.fontWeight,"normal"),letterSpacing:vt.extend("--ft-typography-body1-letter-spacing",Vt.letterSpacing,"0.496px"),lineHeight:vt.extend("--ft-typography-body1-line-height",Vt.lineHeight,"1.5"),textTransform:vt.extend("--ft-typography-body1-text-transform",Vt.textTransform,"inherit")},he=vt.extend("--ft-typography-body2-font-family",Zt),ce=vt.extend("--ft-typography-body2-font-size",Vt.fontSize,"14px"),de=vt.extend("--ft-typography-body2-font-weight",Vt.fontWeight,"normal"),pe=vt.extend("--ft-typography-body2-letter-spacing",Vt.letterSpacing,"0.252px"),fe=vt.extend("--ft-typography-body2-line-height",Vt.lineHeight,"1.4"),ue=vt.extend("--ft-typography-body2-text-transform",Vt.textTransform,"inherit"),be={fontFamily:vt.extend("--ft-typography-caption-font-family",Zt),fontSize:vt.extend("--ft-typography-caption-font-size",Vt.fontSize,"12px"),fontWeight:vt.extend("--ft-typography-caption-font-weight",Vt.fontWeight,"normal"),letterSpacing:vt.extend("--ft-typography-caption-letter-spacing",Vt.letterSpacing,"0.396px"),lineHeight:vt.extend("--ft-typography-caption-line-height",Vt.lineHeight,"1.33"),textTransform:vt.extend("--ft-typography-caption-text-transform",Vt.textTransform,"inherit")},ve=vt.extend("--ft-typography-breadcrumb-font-family",Zt),ge=vt.extend("--ft-typography-breadcrumb-font-size",Vt.fontSize,"10px"),ye=vt.extend("--ft-typography-breadcrumb-font-weight",Vt.fontWeight,"normal"),xe=vt.extend("--ft-typography-breadcrumb-letter-spacing",Vt.letterSpacing,"0.33px"),me=vt.extend("--ft-typography-breadcrumb-line-height",Vt.lineHeight,"1.6"),$e=vt.extend("--ft-typography-breadcrumb-text-transform",Vt.textTransform,"inherit"),we=vt.extend("--ft-typography-overline-font-family",Zt),ke=vt.extend("--ft-typography-overline-font-size",Vt.fontSize,"10px"),Se=vt.extend("--ft-typography-overline-font-weight",Vt.fontWeight,"normal"),Oe=vt.extend("--ft-typography-overline-letter-spacing",Vt.letterSpacing,"1.5px"),_e=vt.extend("--ft-typography-overline-line-height",Vt.lineHeight,"1.6"),Re=vt.extend("--ft-typography-overline-text-transform",Vt.textTransform,"uppercase"),Ce={fontFamily:vt.extend("--ft-typography-button-font-family",Zt),fontSize:vt.extend("--ft-typography-button-font-size",Vt.fontSize,"14px"),fontWeight:vt.extend("--ft-typography-button-font-weight",Vt.fontWeight,"600"),letterSpacing:vt.extend("--ft-typography-button-letter-spacing",Vt.letterSpacing,"1.246px"),lineHeight:vt.extend("--ft-typography-button-line-height",Vt.lineHeight,"1.15"),textTransform:vt.extend("--ft-typography-button-text-transform",Vt.textTransform,"uppercase")},Ne=g`
196
+ `,Kt=vt.extend("--ft-typography-font-family",yt.titleFont),Zt=vt.extend("--ft-typography-font-family",yt.contentFont),Vt={fontFamily:Zt,fontSize:vt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:vt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:vt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:vt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:vt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Gt={fontFamily:vt.extend("--ft-typography-title-font-family",Kt),fontSize:vt.extend("--ft-typography-title-font-size",Vt.fontSize,"20px"),fontWeight:vt.extend("--ft-typography-title-font-weight",Vt.fontWeight,"normal"),letterSpacing:vt.extend("--ft-typography-title-letter-spacing",Vt.letterSpacing,"0.15px"),lineHeight:vt.extend("--ft-typography-title-line-height",Vt.lineHeight,"1.2"),textTransform:vt.extend("--ft-typography-title-text-transform",Vt.textTransform,"inherit")},Jt={fontFamily:vt.extend("--ft-typography-title-dense-font-family",Kt),fontSize:vt.extend("--ft-typography-title-dense-font-size",Vt.fontSize,"14px"),fontWeight:vt.extend("--ft-typography-title-dense-font-weight",Vt.fontWeight,"normal"),letterSpacing:vt.extend("--ft-typography-title-dense-letter-spacing",Vt.letterSpacing,"0.105px"),lineHeight:vt.extend("--ft-typography-title-dense-line-height",Vt.lineHeight,"1.7"),textTransform:vt.extend("--ft-typography-title-dense-text-transform",Vt.textTransform,"inherit")},qt=vt.extend("--ft-typography-subtitle1-font-family",Zt),Yt=vt.extend("--ft-typography-subtitle1-font-size",Vt.fontSize,"16px"),Xt=vt.extend("--ft-typography-subtitle1-font-weight",Vt.fontWeight,"600"),Qt=vt.extend("--ft-typography-subtitle1-letter-spacing",Vt.letterSpacing,"0.144px"),te=vt.extend("--ft-typography-subtitle1-line-height",Vt.lineHeight,"1.5"),ee=vt.extend("--ft-typography-subtitle1-text-transform",Vt.textTransform,"inherit"),ie=vt.extend("--ft-typography-subtitle2-font-family",Zt),oe=vt.extend("--ft-typography-subtitle2-font-size",Vt.fontSize,"14px"),ne=vt.extend("--ft-typography-subtitle2-font-weight",Vt.fontWeight,"normal"),se=vt.extend("--ft-typography-subtitle2-letter-spacing",Vt.letterSpacing,"0.098px"),re=vt.extend("--ft-typography-subtitle2-line-height",Vt.lineHeight,"1.7"),ae=vt.extend("--ft-typography-subtitle2-text-transform",Vt.textTransform,"inherit"),le={fontFamily:vt.extend("--ft-typography-body1-font-family",Zt),fontSize:vt.extend("--ft-typography-body1-font-size",Vt.fontSize,"16px"),fontWeight:vt.extend("--ft-typography-body1-font-weight",Vt.fontWeight,"normal"),letterSpacing:vt.extend("--ft-typography-body1-letter-spacing",Vt.letterSpacing,"0.496px"),lineHeight:vt.extend("--ft-typography-body1-line-height",Vt.lineHeight,"1.5"),textTransform:vt.extend("--ft-typography-body1-text-transform",Vt.textTransform,"inherit")},he=vt.extend("--ft-typography-body2-font-family",Zt),ce=vt.extend("--ft-typography-body2-font-size",Vt.fontSize,"14px"),de=vt.extend("--ft-typography-body2-font-weight",Vt.fontWeight,"normal"),pe=vt.extend("--ft-typography-body2-letter-spacing",Vt.letterSpacing,"0.252px"),fe=vt.extend("--ft-typography-body2-line-height",Vt.lineHeight,"1.4"),ue=vt.extend("--ft-typography-body2-text-transform",Vt.textTransform,"inherit"),be={fontFamily:vt.extend("--ft-typography-caption-font-family",Zt),fontSize:vt.extend("--ft-typography-caption-font-size",Vt.fontSize,"12px"),fontWeight:vt.extend("--ft-typography-caption-font-weight",Vt.fontWeight,"normal"),letterSpacing:vt.extend("--ft-typography-caption-letter-spacing",Vt.letterSpacing,"0.396px"),lineHeight:vt.extend("--ft-typography-caption-line-height",Vt.lineHeight,"1.33"),textTransform:vt.extend("--ft-typography-caption-text-transform",Vt.textTransform,"inherit")},ve=vt.extend("--ft-typography-breadcrumb-font-family",Zt),ge=vt.extend("--ft-typography-breadcrumb-font-size",Vt.fontSize,"10px"),ye=vt.extend("--ft-typography-breadcrumb-font-weight",Vt.fontWeight,"normal"),xe=vt.extend("--ft-typography-breadcrumb-letter-spacing",Vt.letterSpacing,"0.33px"),me=vt.extend("--ft-typography-breadcrumb-line-height",Vt.lineHeight,"1.6"),$e=vt.extend("--ft-typography-breadcrumb-text-transform",Vt.textTransform,"inherit"),we=vt.extend("--ft-typography-overline-font-family",Zt),ke=vt.extend("--ft-typography-overline-font-size",Vt.fontSize,"10px"),Se=vt.extend("--ft-typography-overline-font-weight",Vt.fontWeight,"normal"),Oe=vt.extend("--ft-typography-overline-letter-spacing",Vt.letterSpacing,"1.5px"),_e=vt.extend("--ft-typography-overline-line-height",Vt.lineHeight,"1.6"),Ce=vt.extend("--ft-typography-overline-text-transform",Vt.textTransform,"uppercase"),Re={fontFamily:vt.extend("--ft-typography-button-font-family",Zt),fontSize:vt.extend("--ft-typography-button-font-size",Vt.fontSize,"14px"),fontWeight:vt.extend("--ft-typography-button-font-weight",Vt.fontWeight,"600"),letterSpacing:vt.extend("--ft-typography-button-letter-spacing",Vt.letterSpacing,"1.246px"),lineHeight:vt.extend("--ft-typography-button-line-height",Vt.lineHeight,"1.15"),textTransform:vt.extend("--ft-typography-button-text-transform",Vt.textTransform,"uppercase")},Ne=g`
196
197
  .ft-typography--title {
197
198
  font-family: ${Gt.fontFamily};
198
199
  font-size: ${Gt.fontSize};
@@ -272,16 +273,16 @@ var pt,ft;class ut extends C{constructor(){super(...arguments),this.renderOption
272
273
  font-weight: ${Se};
273
274
  letter-spacing: ${Oe};
274
275
  line-height: ${_e};
275
- text-transform: ${Re};
276
+ text-transform: ${Ce};
276
277
  }
277
278
  `,je=g`
278
279
  .ft-typography--button {
279
- font-family: ${Ce.fontFamily};
280
- font-size: ${Ce.fontSize};
281
- font-weight: ${Ce.fontWeight};
282
- letter-spacing: ${Ce.letterSpacing};
283
- line-height: ${Ce.lineHeight};
284
- text-transform: ${Ce.textTransform};
280
+ font-family: ${Re.fontFamily};
281
+ font-size: ${Re.fontSize};
282
+ font-weight: ${Re.fontWeight};
283
+ letter-spacing: ${Re.letterSpacing};
284
+ line-height: ${Re.lineHeight};
285
+ text-transform: ${Re.textTransform};
285
286
  }
286
287
  `,Ae=g`
287
288
  .ft-typography {
@@ -403,7 +404,7 @@ var pt,ft;class ut extends C{constructor(){super(...arguments),this.renderOption
403
404
  .ft-icon--material {
404
405
  font-family: ${Pe.materialFontFamily}, "Material Icons", sans-serif;
405
406
  }
406
- `,We=vt.extend("--ft-button-color",yt.colorPrimary),Ke={backgroundColor:vt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:vt.extend("--ft-button-border-radius",yt.borderRadiusL),color:We,fontSize:vt.extend("--ft-button-font-size",Ce.fontSize),iconSize:vt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:vt.extend("--ft-button-ripple-color",We),opacityDisabled:vt.external(yt.colorOpacityDisabled,"Design system")},Ze=vt.extend("--ft-button-primary-color",vt.extend("--ft-button-color",yt.colorOnPrimary)),Ve={backgroundColor:vt.extend("--ft-button-primary-background-color",vt.extend("--ft-button-background-color",yt.colorPrimary)),color:Ze,rippleColor:vt.extend("--ft-button-primary-ripple-color",Ze)},Ge=vt.extend("--ft-button-dense-border-radius",vt.extend("--ft-button-border-radius",yt.borderRadiusM)),Je=[wt,g`
407
+ `,We=vt.extend("--ft-button-color",yt.colorPrimary),Ke={backgroundColor:vt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:vt.extend("--ft-button-border-radius",yt.borderRadiusL),color:We,fontSize:vt.extend("--ft-button-font-size",Re.fontSize),iconSize:vt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:vt.extend("--ft-button-ripple-color",We),opacityDisabled:vt.external(yt.colorOpacityDisabled,"Design system")},Ze=vt.extend("--ft-button-primary-color",vt.extend("--ft-button-color",yt.colorOnPrimary)),Ve={backgroundColor:vt.extend("--ft-button-primary-background-color",vt.extend("--ft-button-background-color",yt.colorPrimary)),color:Ze,rippleColor:vt.extend("--ft-button-primary-ripple-color",Ze)},Ge=vt.extend("--ft-button-dense-border-radius",vt.extend("--ft-button-border-radius",yt.borderRadiusM)),Je=[wt,g`
407
408
  :host {
408
409
  display: inline-block;
409
410
  max-width: 100%;
@@ -499,8 +500,8 @@ var pt,ft;class ut extends C{constructor(){super(...arguments),this.renderOption
499
500
  text-overflow: ellipsis;
500
501
  display: block;
501
502
  margin: 0 var(--ft-button-internal-horizontal-padding);
502
- ${gt(Ce.fontSize,"1em")};
503
- ${gt(Ce.lineHeight,"var(--ft-button-internal-content-height)")};
503
+ ${gt(Re.fontSize,"1em")};
504
+ ${gt(Re.lineHeight,"var(--ft-button-internal-content-height)")};
504
505
  }
505
506
 
506
507
  .ft-button--label[hidden] {
@@ -526,7 +527,7 @@ var pt,ft;class ut extends C{constructor(){super(...arguments),this.renderOption
526
527
  ${gt(Be.size,Ke.iconSize)};
527
528
  ${gt(Be.color,"var(--ft-button-internal-color)")};
528
529
  }
529
- `],qe={textColor:vt.extend("--ft-switch-text-color",yt.colorOnSurfaceHigh),backgroundColor:vt.extend("--ft-switch-background-color",yt.colorSurface),selectedTextColor:vt.extend("--ft-switch-selected-text-color",yt.colorPrimary),selectedBackgroundColor:vt.extend("--ft-switch-selected-background-color",yt.colorPrimary),borderColor:vt.extend("--ft-switch-border-color",yt.colorOutline),borderRadius:vt.extend("--ft-switch-border-radius",yt.borderRadiusL),fontSize:vt.extend("--ft-switch-font-size",Ce.fontSize),iconSize:vt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:vt.extend("--ft-switch-text-color",yt.colorOnSurfaceMedium),rippleColor:vt.extend("--ft-switch-ripple-color",yt.colorPrimary),outlineColor:vt.extend("--ft-switch-outline-color",yt.colorPrimary)},Ye={feedbackInputMinWidth:vt.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:vt.external(yt.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:vt.extend("--ft-reader-feedback-send-feedback-color",yt.colorOnPrimary),sendFeedbackBackgroundColor:vt.extend("--ft-reader-feedback-send-feedback-background-color",yt.colorPrimary),filledRatingColor:vt.extend("--ft-reader-feedback-filled-rating-color",yt.colorPrimary),emptyRatingColor:vt.extend("--ft-reader-feedback-empty-rating-color",yt.colorOnSurfaceMedium),mainTitleFontSize:vt.external(Gt.fontSize,"Typography"),sectionTitleFontSize:vt.external(Jt.fontSize,"Typography")},Xe=g`
530
+ `],qe={textColor:vt.extend("--ft-switch-text-color",yt.colorOnSurfaceHigh),backgroundColor:vt.extend("--ft-switch-background-color",yt.colorSurface),selectedTextColor:vt.extend("--ft-switch-selected-text-color",yt.colorPrimary),selectedBackgroundColor:vt.extend("--ft-switch-selected-background-color",yt.colorPrimary),borderColor:vt.extend("--ft-switch-border-color",yt.colorOutline),borderRadius:vt.extend("--ft-switch-border-radius",yt.borderRadiusL),fontSize:vt.extend("--ft-switch-font-size",Re.fontSize),iconSize:vt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:vt.extend("--ft-switch-text-color",yt.colorOnSurfaceMedium),rippleColor:vt.extend("--ft-switch-ripple-color",yt.colorPrimary),outlineColor:vt.extend("--ft-switch-outline-color",yt.colorPrimary)},Ye={feedbackInputMinWidth:vt.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:vt.external(yt.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:vt.extend("--ft-reader-feedback-send-feedback-color",yt.colorOnPrimary),sendFeedbackBackgroundColor:vt.extend("--ft-reader-feedback-send-feedback-background-color",yt.colorPrimary),filledRatingColor:vt.extend("--ft-reader-feedback-filled-rating-color",yt.colorPrimary),emptyRatingColor:vt.extend("--ft-reader-feedback-empty-rating-color",yt.colorOnSurfaceMedium),mainTitleFontSize:vt.external(Gt.fontSize,"Typography"),sectionTitleFontSize:vt.external(Jt.fontSize,"Typography")},Xe=g`
530
531
  .ft-reader-feedback {
531
532
  box-sizing: border-box;
532
533
  display: flex;
@@ -611,7 +612,7 @@ var pt,ft;class ut extends C{constructor(){super(...arguments),this.renderOption
611
612
  </${ei(this.element)}>
612
613
  `:oi`
613
614
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
614
- `}}ri.styles=[Ne,Ee,Me,Te,Ie,ze,Fe,De,Ue,je,Ae],si([o()],ri.prototype,"element",void 0),si([o()],ri.prototype,"variant",void 0),h("ft-typography")(ri);
615
+ `}}ri.styles=[Ne,Ee,Me,Te,Ie,ze,Fe,De,Ue,je,Ae],si([o()],ri.prototype,"element",void 0),si([o()],ri.prototype,"variant",void 0),c("ft-typography")(ri);
615
616
  /**
616
617
  * @license
617
618
  * Copyright 2017 Google LLC
@@ -622,12 +623,12 @@ const ai=1,li=2,hi=t=>(...e)=>({_$litDirective$:t,values:e});class ci{constructo
622
623
  * @license
623
624
  * Copyright 2017 Google LLC
624
625
  * SPDX-License-Identifier: BSD-3-Clause
625
- */class di extends ci{constructor(t){if(super(t),this.it=q,t.type!==li)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const pi=hi(di);var fi,ui,bi;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(fi||(fi={})),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;"}(ui||(ui={})),new Map([...["abw"].map((t=>[t,ui.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,ui.AUDIO])),...["avi"].map((t=>[t,ui.AVI])),...["chm","xhs"].map((t=>[t,ui.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,ui.CODE])),...["csv"].map((t=>[t,ui.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ui.DITA])),...["epub"].map((t=>[t,ui.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ui.EXCEL])),...["flac"].map((t=>[t,ui.FLAC])),...["gif"].map((t=>[t,ui.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ui.GZIP])),...["html","htm","xhtml"].map((t=>[t,ui.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,ui.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ui.JPEG])),...["json"].map((t=>[t,ui.JSON])),...["m4a","m4p"].map((t=>[t,ui.M4A])),...["mov","qt"].map((t=>[t,ui.MOV])),...["mp3"].map((t=>[t,ui.MP3])),...["mp4","m4v"].map((t=>[t,ui.MP4])),...["ogg","oga"].map((t=>[t,ui.OGG])),...["pdf","ps"].map((t=>[t,ui.PDF])),...["png"].map((t=>[t,ui.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ui.POWERPOINT])),...["rar"].map((t=>[t,ui.RAR])),...["stp"].map((t=>[t,ui.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ui.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,ui.VIDEO])),...["wav"].map((t=>[t,ui.WAV])),...["wma"].map((t=>[t,ui.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ui.WORD])),...["xml","xsl","rdf"].map((t=>[t,ui.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ui.YAML])),...["zip"].map((t=>[t,ui.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(bi||(bi={}));var vi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class gi extends $t{constructor(){super(...arguments),this.variant=bi.fluid_topics,this.resolvedIcon=q}render(){const t="material"!==this.variant||this.value;return G`
626
- <i class="ft-icon ${"ft-icon--"+this.variant}">
626
+ */class di extends ci{constructor(t){if(super(t),this.it=q,t.type!==li)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const pi=hi(di);var fi,ui,bi;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(fi||(fi={})),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;"}(ui||(ui={})),new Map([...["abw"].map((t=>[t,ui.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,ui.AUDIO])),...["avi"].map((t=>[t,ui.AVI])),...["chm","xhs"].map((t=>[t,ui.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,ui.CODE])),...["csv"].map((t=>[t,ui.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ui.DITA])),...["epub"].map((t=>[t,ui.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ui.EXCEL])),...["flac"].map((t=>[t,ui.FLAC])),...["gif"].map((t=>[t,ui.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ui.GZIP])),...["html","htm","xhtml"].map((t=>[t,ui.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,ui.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ui.JPEG])),...["json"].map((t=>[t,ui.JSON])),...["m4a","m4p"].map((t=>[t,ui.M4A])),...["mov","qt"].map((t=>[t,ui.MOV])),...["mp3"].map((t=>[t,ui.MP3])),...["mp4","m4v"].map((t=>[t,ui.MP4])),...["ogg","oga"].map((t=>[t,ui.OGG])),...["pdf","ps"].map((t=>[t,ui.PDF])),...["png"].map((t=>[t,ui.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ui.POWERPOINT])),...["rar"].map((t=>[t,ui.RAR])),...["stp"].map((t=>[t,ui.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ui.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,ui.VIDEO])),...["wav"].map((t=>[t,ui.WAV])),...["wma"].map((t=>[t,ui.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ui.WORD])),...["xml","xsl","rdf"].map((t=>[t,ui.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ui.YAML])),...["zip"].map((t=>[t,ui.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(bi||(bi={}));var vi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class gi extends $t{constructor(){super(...arguments),this.resolvedIcon=q}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:bi.fluid_topics,i="material"!==e||this.value;return G`
627
+ <i class="ft-icon ${"ft-icon--"+e}">
627
628
  ${pi(this.resolvedIcon)}
628
- <slot ?hidden=${t}></slot>
629
+ <slot ?hidden=${i}></slot>
629
630
  </i>
630
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case bi.file_format:this.resolvedIcon=null!==(t=ui[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case bi.fluid_topics:this.resolvedIcon=null!==(e=fi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}gi.elementDefinitions={},gi.styles=He,vi([o()],gi.prototype,"variant",void 0),vi([o()],gi.prototype,"value",void 0),vi([n()],gi.prototype,"resolvedIcon",void 0),vi([r("slot")],gi.prototype,"slottedContent",void 0),h("ft-icon")(gi);const yi=vt.create("--ft-tooltip-distance","SIZE","4px"),xi=vt.create("--ft-tooltip-color","COLOR","#FFFFFF"),mi=vt.create("--ft-tooltip-background-color","COLOR","#666666"),$i=vt.create("--ft-tooltip-z-index","NUMBER","1"),wi=vt.external(yt.borderRadiusS,"Design system"),ki=vt.create("--ft-tooltip-max-width","SIZE","150px"),Si=g`
631
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case bi.file_format:this.resolvedIcon=null!==(t=ui[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case bi.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(e=fi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}gi.elementDefinitions={},gi.styles=He,vi([o()],gi.prototype,"variant",void 0),vi([o()],gi.prototype,"value",void 0),vi([n()],gi.prototype,"resolvedIcon",void 0),vi([r("slot")],gi.prototype,"slottedContent",void 0),c("ft-icon")(gi);const yi=vt.create("--ft-tooltip-distance","SIZE","4px"),xi=vt.create("--ft-tooltip-color","COLOR","#FFFFFF"),mi=vt.create("--ft-tooltip-background-color","COLOR","#666666"),$i=vt.create("--ft-tooltip-z-index","NUMBER","1"),wi=vt.external(yt.borderRadiusS,"Design system"),ki=vt.create("--ft-tooltip-max-width","SIZE","150px"),Si=g`
631
632
  .ft-tooltip--container {
632
633
  display: block;
633
634
  position: relative;
@@ -683,13 +684,13 @@ const ai=1,li=2,hi=t=>(...e)=>({_$litDirective$:t,values:e});class ci{constructo
683
684
  * Copyright 2017 Google LLC
684
685
  * SPDX-License-Identifier: BSD-3-Clause
685
686
  */
686
- function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],_i.prototype,"slotNodes",void 0),Oi([r(".ft-tooltip--container")],_i.prototype,"container",void 0),Oi([r("slot")],_i.prototype,"target",void 0),Oi([r(".ft-tooltip")],_i.prototype,"tooltip",void 0),Oi([r(".ft-tooltip--content")],_i.prototype,"tooltipContent",void 0),Oi([n()],_i.prototype,"visible",void 0),h("ft-tooltip")(_i);
687
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],_i.prototype,"slotNodes",void 0),Oi([r(".ft-tooltip--container")],_i.prototype,"container",void 0),Oi([r("slot")],_i.prototype,"target",void 0),Oi([r(".ft-tooltip")],_i.prototype,"tooltip",void 0),Oi([r(".ft-tooltip--content")],_i.prototype,"tooltipContent",void 0),Oi([n()],_i.prototype,"visible",void 0),c("ft-tooltip")(_i);
687
688
  /**
688
689
  * @license
689
690
  * Copyright 2018 Google LLC
690
691
  * SPDX-License-Identifier: BSD-3-Clause
691
692
  */
692
- const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}});var Ci=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ni extends $t{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(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(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return G`
693
+ const Ci=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}});var Ri=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ni extends $t{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(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(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return G`
693
694
  <style>
694
695
  .ft-ripple .ft-ripple--effect,
695
696
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -702,11 +703,11 @@ const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"clas
702
703
  top: ${this.originY}px;
703
704
  }
704
705
  </style>
705
- <div class="${Ri(t)}">
706
+ <div class="${Ci(t)}">
706
707
  <div class="ft-ripple--background"></div>
707
708
  <div class="ft-ripple--effect"></div>
708
709
  </div>
709
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ni.elementDefinitions={},Ni.styles=Wt,Ci([o({type:Boolean})],Ni.prototype,"primary",void 0),Ci([o({type:Boolean})],Ni.prototype,"secondary",void 0),Ci([o({type:Boolean})],Ni.prototype,"unbounded",void 0),Ci([o({type:Boolean})],Ni.prototype,"activated",void 0),Ci([o({type:Boolean})],Ni.prototype,"selected",void 0),Ci([o({type:Boolean})],Ni.prototype,"disabled",void 0),Ci([n()],Ni.prototype,"hovered",void 0),Ci([n()],Ni.prototype,"focused",void 0),Ci([n()],Ni.prototype,"pressed",void 0),Ci([n()],Ni.prototype,"rippling",void 0),Ci([n()],Ni.prototype,"rippleSize",void 0),Ci([n()],Ni.prototype,"originX",void 0),Ci([n()],Ni.prototype,"originY",void 0),Ci([r(".ft-ripple")],Ni.prototype,"ripple",void 0),Ci([r(".ft-ripple--effect")],Ni.prototype,"rippleEffect",void 0),h("ft-ripple")(Ni);const Ei={borderRadiusLeft:vt.extend("--ft-switch-option-border-radius-left",yt.borderRadiusL),borderRadiusRight:vt.extend("--ft-switch-option-border-radius-right",yt.borderRadiusL),borderWidthLeft:vt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:vt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:vt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Mi=g`
710
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ni.elementDefinitions={},Ni.styles=Wt,Ri([o({type:Boolean})],Ni.prototype,"primary",void 0),Ri([o({type:Boolean})],Ni.prototype,"secondary",void 0),Ri([o({type:Boolean})],Ni.prototype,"unbounded",void 0),Ri([o({type:Boolean})],Ni.prototype,"activated",void 0),Ri([o({type:Boolean})],Ni.prototype,"selected",void 0),Ri([o({type:Boolean})],Ni.prototype,"disabled",void 0),Ri([n()],Ni.prototype,"hovered",void 0),Ri([n()],Ni.prototype,"focused",void 0),Ri([n()],Ni.prototype,"pressed",void 0),Ri([n()],Ni.prototype,"rippling",void 0),Ri([n()],Ni.prototype,"rippleSize",void 0),Ri([n()],Ni.prototype,"originX",void 0),Ri([n()],Ni.prototype,"originY",void 0),Ri([r(".ft-ripple")],Ni.prototype,"ripple",void 0),Ri([r(".ft-ripple--effect")],Ni.prototype,"rippleEffect",void 0),c("ft-ripple")(Ni);const Ei={borderRadiusLeft:vt.extend("--ft-switch-option-border-radius-left",yt.borderRadiusL),borderRadiusRight:vt.extend("--ft-switch-option-border-radius-right",yt.borderRadiusL),borderWidthLeft:vt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:vt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:vt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Mi=g`
710
711
  .ft-switch-option {
711
712
  position: relative;
712
713
  display: inline-block;
@@ -758,8 +759,8 @@ const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"clas
758
759
  text-overflow: ellipsis;
759
760
  display: block;
760
761
  margin: 0 8px;
761
- ${gt(Ce.fontSize,qe.fontSize)};
762
- ${gt(Ce.lineHeight,"var(--ft-switch-option-internal-content-height)")}
762
+ ${gt(Re.fontSize,qe.fontSize)};
763
+ ${gt(Re.lineHeight,"var(--ft-switch-option-internal-content-height)")}
763
764
  }
764
765
 
765
766
  .ft-switch-option--input:checked + .ft-switch-option--content .ft-switch-option--label {
@@ -791,7 +792,7 @@ const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"clas
791
792
  color: ${qe.selectedTextColor};
792
793
  }
793
794
  `;var Ti=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ii extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class zi extends $t{constructor(){super(...arguments),this.value="",this.iconVariant=bi.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Ii)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(G`
794
- <label part="label" for="input" class=${Ri(t)}
795
+ <label part="label" for="input" class=${Ci(t)}
795
796
  @click=${this.onChange}>
796
797
  <input id="input" type="radio" class="ft-switch-option--input"
797
798
  .checked=${this.selected}>
@@ -815,7 +816,7 @@ const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"clas
815
816
  `}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?G`
816
817
  <ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
817
818
  `:q}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()}}zi.elementDefinitions={"ft-ripple":Ni,"ft-typography":ri,"ft-tooltip":_i,"ft-icon":gi},zi.styles=[kt,Mi],Ti([o()],zi.prototype,"value",void 0),Ti([o()],zi.prototype,"icon",void 0),Ti([o()],zi.prototype,"iconVariant",void 0),Ti([o()],zi.prototype,"label",void 0),Ti([o()],zi.prototype,"tooltipPosition",void 0),Ti([o({type:Boolean,reflect:!0})],zi.prototype,"selected",void 0),Ti([o({type:Boolean})],zi.prototype,"trailingIcon",void 0),Ti([o({type:Boolean})],zi.prototype,"unselectable",void 0),Ti([r(".ft-switch-option--content slot")],zi.prototype,"slottedContent",void 0),Ti([r(".ft-switch-option--input")],zi.prototype,"input",void 0);var Fi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Di extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ui extends $t{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Di(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return G`
818
- <div @keydown=${this.onKeyDown} tabindex="0" class="${Ri(t)}">
819
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${Ci(t)}">
819
820
  <slot @slotchange=${this.onSlotchange}
820
821
  @option-change=${this.onOptionChange}></slot>
821
822
  </div>
@@ -853,7 +854,7 @@ const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"clas
853
854
  --ft-switch-internal-vertical-padding: 2px;
854
855
  --ft-switch-internal-horizontal-padding: 4px;
855
856
  }
856
- `,Fi([o({type:Boolean})],Ui.prototype,"dense",void 0),Fi([o({type:Boolean})],Ui.prototype,"unselectable",void 0),Fi([r(".ft-switch slot")],Ui.prototype,"slottedContent",void 0),Fi([n()],Ui.prototype,"selectedOption",void 0),Fi([r(".ft-switch")],Ui.prototype,"ftSwitchDiv",void 0),h("ft-switch")(Ui),h("ft-switch-option")(zi);const ji=vt.external(yt.colorOutline,"Design system"),Ai=vt.external(yt.colorOnSurfaceMedium,"Design system"),Bi=g`
857
+ `,Fi([o({type:Boolean})],Ui.prototype,"dense",void 0),Fi([o({type:Boolean})],Ui.prototype,"unselectable",void 0),Fi([r(".ft-switch slot")],Ui.prototype,"slottedContent",void 0),Fi([n()],Ui.prototype,"selectedOption",void 0),Fi([r(".ft-switch")],Ui.prototype,"ftSwitchDiv",void 0),c("ft-switch")(Ui),c("ft-switch-option")(zi);const ji=vt.external(yt.colorOutline,"Design system"),Ai=vt.external(yt.colorOnSurfaceMedium,"Design system"),Bi=g`
857
858
  :host {
858
859
  display: block;
859
860
  }
@@ -882,7 +883,7 @@ const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"clas
882
883
  @touchstart=${this.initDragFromTouch}>
883
884
  <ft-icon variant="material">${this.icon}</ft-icon>
884
885
  </div>
885
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new Pi(i,o))}}Hi.elementDefinitions={"ft-icon":gi},Hi.styles=[wt,Bi],Li([o({type:Number})],Hi.prototype,"initialWidth",void 0),Li([o({type:Number})],Hi.prototype,"initialHeight",void 0),Li([o()],Hi.prototype,"icon",void 0),Li([o()],Hi.prototype,"cursor",void 0),Li([n()],Hi.prototype,"dragging",void 0),h("ft-resizer")(Hi);const Wi={fontSize:vt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:vt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:vt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:vt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:vt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:vt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:vt.extend("--ft-input-label-border-color",yt.colorOutline),textColor:vt.extend("--ft-input-label-text-color",yt.colorOnSurfaceMedium),disabledTextColor:vt.extend("--ft-input-label-disabled-text-color",yt.colorOnSurfaceDisabled),colorSurface:vt.external(yt.colorSurface,"Design system"),borderRadiusS:vt.external(yt.borderRadiusS,"Design system"),colorError:vt.external(yt.colorError,"Design system")},Ki=g`
886
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new Pi(i,o))}}Hi.elementDefinitions={"ft-icon":gi},Hi.styles=[wt,Bi],Li([o({type:Number})],Hi.prototype,"initialWidth",void 0),Li([o({type:Number})],Hi.prototype,"initialHeight",void 0),Li([o()],Hi.prototype,"icon",void 0),Li([o()],Hi.prototype,"cursor",void 0),Li([n()],Hi.prototype,"dragging",void 0),c("ft-resizer")(Hi);const Wi={fontSize:vt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:vt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:vt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:vt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:vt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:vt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:vt.extend("--ft-input-label-border-color",yt.colorOutline),textColor:vt.extend("--ft-input-label-text-color",yt.colorOnSurfaceMedium),disabledTextColor:vt.extend("--ft-input-label-disabled-text-color",yt.colorOnSurfaceDisabled),colorSurface:vt.external(yt.colorSurface,"Design system"),borderRadiusS:vt.external(yt.borderRadiusS,"Design system"),colorError:vt.external(yt.colorError,"Design system")},Ki=g`
886
887
  .ft-input-label {
887
888
  position: absolute;
888
889
  inset: 0;
@@ -1005,7 +1006,7 @@ const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"clas
1005
1006
  border-top: none;
1006
1007
  }
1007
1008
  `;var Zi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Vi extends $t{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return G`
1008
- <div class="${Ri(t)}">
1009
+ <div class="${Ci(t)}">
1009
1010
  ${this.text?G`
1010
1011
  <div class="ft-input-label--text ft-typography--caption">
1011
1012
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -1013,7 +1014,7 @@ const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"clas
1013
1014
  </div>
1014
1015
  `:null}
1015
1016
  </div>
1016
- `}}Vi.elementDefinitions={},Vi.styles=[Fe,Ki],Zi([o({type:String})],Vi.prototype,"text",void 0),Zi([o({type:Boolean})],Vi.prototype,"raised",void 0),Zi([o({type:Boolean})],Vi.prototype,"outlined",void 0),Zi([o({type:Boolean})],Vi.prototype,"disabled",void 0),Zi([o({type:Boolean})],Vi.prototype,"error",void 0),h("ft-input-label")(Vi);const Gi={fontSize:vt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:vt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:vt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:vt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:vt.extend("--ft-text-area-helper-color",yt.colorOnSurfaceMedium),colorPrimary:vt.external(yt.colorPrimary,"Design system"),colorOnSurface:vt.external(yt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:vt.external(yt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:vt.external(yt.borderRadiusS,"Design system"),colorError:vt.external(yt.colorError,"Design system")},Ji=g`
1017
+ `}}Vi.elementDefinitions={},Vi.styles=[Fe,Ki],Zi([o({type:String})],Vi.prototype,"text",void 0),Zi([o({type:Boolean})],Vi.prototype,"raised",void 0),Zi([o({type:Boolean})],Vi.prototype,"outlined",void 0),Zi([o({type:Boolean})],Vi.prototype,"disabled",void 0),Zi([o({type:Boolean})],Vi.prototype,"error",void 0),c("ft-input-label")(Vi);const Gi={fontSize:vt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:vt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:vt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:vt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:vt.extend("--ft-text-area-helper-color",yt.colorOnSurfaceMedium),colorPrimary:vt.external(yt.colorPrimary,"Design system"),colorOnSurface:vt.external(yt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:vt.external(yt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:vt.external(yt.borderRadiusS,"Design system"),colorError:vt.external(yt.colorError,"Design system")},Ji=g`
1017
1018
  *:focus {
1018
1019
  outline: none;
1019
1020
  }
@@ -1120,7 +1121,7 @@ const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"clas
1120
1121
  height: calc(4 * ${Gi.verticalSpacing} + ${Gi.labelSize} + ${Gi.fontSize} + ${this.height}px);
1121
1122
  }
1122
1123
  </style>
1123
- <div class="${Ri(t)}">
1124
+ <div class="${Ci(t)}">
1124
1125
  <div class="ft-text-area--main-panel">
1125
1126
  <ft-input-label text="${this.label}"
1126
1127
  ?disabled=${this.disabled}
@@ -1152,7 +1153,7 @@ const Ri=hi(class extends ci{constructor(t){var e;if(super(t),t.type!==ai||"clas
1152
1153
  ${this.helper}
1153
1154
  </ft-typography>`:void 0}
1154
1155
  </div>
1155
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Yi.elementDefinitions={"ft-input-label":Vi,"ft-resizer":Hi,"ft-ripple":Ni,"ft-typography":ri},Yi.styles=[Ie,Ji],qi([o({type:String})],Yi.prototype,"label",void 0),qi([o({reflect:!0})],Yi.prototype,"value",void 0),qi([o({type:String})],Yi.prototype,"helper",void 0),qi([o({type:Boolean})],Yi.prototype,"outlined",void 0),qi([o({type:Boolean})],Yi.prototype,"disabled",void 0),qi([o({type:Boolean})],Yi.prototype,"error",void 0),qi([o({type:Number,reflect:!0})],Yi.prototype,"height",void 0),qi([r("textarea")],Yi.prototype,"textarea",void 0),qi([n()],Yi.prototype,"focused",void 0),h("ft-text-area")(Yi);
1156
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Yi.elementDefinitions={"ft-input-label":Vi,"ft-resizer":Hi,"ft-ripple":Ni,"ft-typography":ri},Yi.styles=[Ie,Ji],qi([o({type:String})],Yi.prototype,"label",void 0),qi([o({reflect:!0})],Yi.prototype,"value",void 0),qi([o({type:String})],Yi.prototype,"helper",void 0),qi([o({type:Boolean})],Yi.prototype,"outlined",void 0),qi([o({type:Boolean})],Yi.prototype,"disabled",void 0),qi([o({type:Boolean})],Yi.prototype,"error",void 0),qi([o({type:Number,reflect:!0})],Yi.prototype,"height",void 0),qi([r("textarea")],Yi.prototype,"textarea",void 0),qi([n()],Yi.prototype,"focused",void 0),c("ft-text-area")(Yi);
1156
1157
  /**
1157
1158
  * @license
1158
1159
  * Copyright 2020 Google LLC
@@ -1170,9 +1171,9 @@ const{I:Xi}=ct,Qi=()=>document.createComment(""),to=(t,e,i)=>{var o;const n=t._$
1170
1171
  <div></div>
1171
1172
  <div></div>
1172
1173
  </div>
1173
- `}}ro.styles=Le,h("ft-loader")(ro);var ao=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class lo extends $t{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=bi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(G`
1174
+ `}}ro.styles=Le,c("ft-loader")(ro);var ao=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class lo extends $t{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=bi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(G`
1174
1175
  <button part="button"
1175
- class="${Ri(t)}"
1176
+ class="${Ci(t)}"
1176
1177
  aria-label="${this.getLabel()}"
1177
1178
  ?disabled=${this.isDisabled()}>
1178
1179
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -1193,7 +1194,7 @@ const{I:Xi}=ct,Qi=()=>document.createComment(""),to=(t,e,i)=>{var o;const n=t._$
1193
1194
  </ft-tooltip>
1194
1195
  `:t}resolveIcon(){return this.loading?G`
1195
1196
  <ft-loader></ft-loader> `:this.icon?G`
1196
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}lo.elementDefinitions={"ft-ripple":Ni,"ft-tooltip":_i,"ft-typography":ri,"ft-icon":gi,"ft-loader":ro},lo.styles=[kt,Je],ao([o({type:Boolean})],lo.prototype,"primary",void 0),ao([o({type:Boolean})],lo.prototype,"outlined",void 0),ao([o({type:Boolean})],lo.prototype,"disabled",void 0),ao([o({type:Boolean})],lo.prototype,"dense",void 0),ao([o({type:Boolean})],lo.prototype,"round",void 0),ao([o({type:String})],lo.prototype,"label",void 0),ao([o({type:String})],lo.prototype,"icon",void 0),ao([o({type:String})],lo.prototype,"iconVariant",void 0),ao([o({type:Boolean})],lo.prototype,"trailingIcon",void 0),ao([o({type:Boolean})],lo.prototype,"loading",void 0),ao([o({type:String})],lo.prototype,"tooltipPosition",void 0),ao([o({type:Boolean})],lo.prototype,"hideTooltip",void 0),ao([o({type:Boolean})],lo.prototype,"forceTooltip",void 0),ao([r(".ft-button")],lo.prototype,"button",void 0),ao([r(".ft-button--label slot")],lo.prototype,"slottedContent",void 0),h("ft-button")(lo);var ho=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class co extends $t{constructor(){super(...arguments),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.iconVariant=bi.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"}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,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?G`
1197
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}lo.elementDefinitions={"ft-ripple":Ni,"ft-tooltip":_i,"ft-typography":ri,"ft-icon":gi,"ft-loader":ro},lo.styles=[kt,Je],ao([o({type:Boolean})],lo.prototype,"primary",void 0),ao([o({type:Boolean})],lo.prototype,"outlined",void 0),ao([o({type:Boolean})],lo.prototype,"disabled",void 0),ao([o({type:Boolean})],lo.prototype,"dense",void 0),ao([o({type:Boolean})],lo.prototype,"round",void 0),ao([o({type:String})],lo.prototype,"label",void 0),ao([o({type:String})],lo.prototype,"icon",void 0),ao([o({type:String})],lo.prototype,"iconVariant",void 0),ao([o({type:Boolean})],lo.prototype,"trailingIcon",void 0),ao([o({type:Boolean})],lo.prototype,"loading",void 0),ao([o({type:String})],lo.prototype,"tooltipPosition",void 0),ao([o({type:Boolean})],lo.prototype,"hideTooltip",void 0),ao([o({type:Boolean})],lo.prototype,"forceTooltip",void 0),ao([r(".ft-button")],lo.prototype,"button",void 0),ao([r(".ft-button--label slot")],lo.prototype,"slottedContent",void 0),c("ft-button")(lo);var ho=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class co extends $t{constructor(){super(...arguments),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.iconVariant=bi.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"}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,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?G`
1197
1198
  <div class="ft-reader-feedback">
1198
1199
  ${this.hideTitle?q:G`
1199
1200
  <ft-typography variant="title" part="main-title">
@@ -1323,4 +1324,4 @@ const{I:Xi}=ct,Qi=()=>document.createComment(""),to=(t,e,i)=>{var o;const n=t._$
1323
1324
  @rate=${this.rate}
1324
1325
  @send-feedback=${this.sendFeedback}
1325
1326
  ></ft-reader-feedback>
1326
- `}updated(t){var e,i,o;super.updated(t),t.has("tocNode")&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(uo.resolve("mailSubject",this.tocNode.title,this.map.title),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()}async updateData(){var t,e,i;this.user=await(null===(t=this.service)||void 0===t?void 0:t.getSession().then((t=>t.profile))),this.tocNode&&((null===(e=this.user)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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 e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new xt({type:"error",message:uo.resolve("ratingFailure")}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new xt({type:"info",message:uo.resolve("feedbackAndRatingDisabledInEditor")}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new xt({type:"info",message:uo.resolve("feedbackSuccess")})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new xt({type:"info",message:uo.resolve("feedbackAndRatingDisabledInEditor")}))}catch{this.dispatchEvent(new xt({type:"error",message:uo.resolve("feedbackFailure")}))}}}ko.elementDefinitions={"ft-reader-feedback":co},wo([_t()],ko.prototype,"map",void 0),wo([o({attribute:!1})],ko.prototype,"editorMode",void 0),wo([_t((t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}))],ko.prototype,"configuration",void 0),wo([n()],ko.prototype,"ratingSummary",void 0),wo([n()],ko.prototype,"user",void 0),wo([o({type:Boolean})],ko.prototype,"hideTitle",void 0),wo([o()],ko.prototype,"iconVariant",void 0),wo([o()],ko.prototype,"emptyStarIcon",void 0),wo([o()],ko.prototype,"filledStarIcon",void 0),wo([o()],ko.prototype,"emptyLikeIcon",void 0),wo([o()],ko.prototype,"filledLikeIcon",void 0),wo([o()],ko.prototype,"emptyDislikeIcon",void 0),wo([o()],ko.prototype,"filledDislikeIcon",void 0),wo([r("ft-reader-feedback")],ko.prototype,"readerFeedback",void 0),h("ft-reader-map-feedback")(yo),h("ft-reader-topic-feedback")(ko),t.FtReaderFeedbackCssVariables=Ye,t.FtReaderMapFeedback=yo,t.FtReaderTopicFeedback=ko,t.styles=Xe,Object.defineProperty(t,"i",{value:!0})}({});
1327
+ `}updated(t){var e,i,o;super.updated(t),t.has("tocNode")&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(uo.resolve("mailSubject",this.tocNode.title,this.map.title),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()}async updateData(){var t,e,i;this.user=await(null===(t=this.service)||void 0===t?void 0:t.getSession().then((t=>t.profile))),this.tocNode&&((null===(e=this.user)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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 e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new xt({type:"error",message:uo.resolve("ratingFailure")}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new xt({type:"info",message:uo.resolve("feedbackAndRatingDisabledInEditor")}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new xt({type:"info",message:uo.resolve("feedbackSuccess")})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new xt({type:"info",message:uo.resolve("feedbackAndRatingDisabledInEditor")}))}catch{this.dispatchEvent(new xt({type:"error",message:uo.resolve("feedbackFailure")}))}}}ko.elementDefinitions={"ft-reader-feedback":co},wo([_t()],ko.prototype,"map",void 0),wo([o({attribute:!1})],ko.prototype,"editorMode",void 0),wo([_t((t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}))],ko.prototype,"configuration",void 0),wo([n()],ko.prototype,"ratingSummary",void 0),wo([n()],ko.prototype,"user",void 0),wo([o({type:Boolean})],ko.prototype,"hideTitle",void 0),wo([o()],ko.prototype,"iconVariant",void 0),wo([o()],ko.prototype,"emptyStarIcon",void 0),wo([o()],ko.prototype,"filledStarIcon",void 0),wo([o()],ko.prototype,"emptyLikeIcon",void 0),wo([o()],ko.prototype,"filledLikeIcon",void 0),wo([o()],ko.prototype,"emptyDislikeIcon",void 0),wo([o()],ko.prototype,"filledDislikeIcon",void 0),wo([r("ft-reader-feedback")],ko.prototype,"readerFeedback",void 0),c("ft-reader-map-feedback")(yo),c("ft-reader-topic-feedback")(ko),t.FtReaderFeedbackCssVariables=Ye,t.FtReaderMapFeedback=yo,t.FtReaderTopicFeedback=ko,t.styles=Xe,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-feedback",
3
- "version": "0.3.57",
3
+ "version": "0.3.58",
4
4
  "description": "Feedback forms for a map and its topics in an integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "0.3.57",
22
+ "@fluid-topics/ft-wc-utils": "0.3.58",
23
23
  "lit": "2.2.8"
24
24
  },
25
- "gitHead": "1c7db3887ac108c59c27a6b4af04dd6f1ecd061b"
25
+ "gitHead": "c053ee1216238ba6b2c62e5add329343f735c77e"
26
26
  }