@fluid-topics/ft-reader-feedback 0.3.66 → 0.3.67

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.
@@ -87,7 +87,7 @@
87
87
  opacity: ${p.opacityContentOnSurfacePressed};
88
88
  transform: translate(-50%, -50%) scale(1);
89
89
  }
90
- `,y=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),m=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),$={fontFamily:m,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},w={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family",y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size",$.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",$.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height",$.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",$.textTransform,"inherit")},k={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",$.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",$.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",$.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",$.textTransform,"inherit")},_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",m),S=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",$.fontSize,"16px"),I=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",$.fontWeight,"600"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",$.letterSpacing,"0.144px"),C=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",$.lineHeight,"1.5"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",$.textTransform,"inherit"),O=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",m),R=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",$.fontSize,"14px"),N=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",$.fontWeight,"normal"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",$.letterSpacing,"0.098px"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",$.lineHeight,"1.7"),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",$.textTransform,"inherit"),j={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",$.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",$.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",$.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",$.textTransform,"inherit")},M=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",m),U=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",$.fontSize,"14px"),E=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",$.fontWeight,"normal"),F=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",$.letterSpacing,"0.252px"),L=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",$.lineHeight,"1.4"),P=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",$.textTransform,"inherit"),H={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",$.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",$.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",$.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",$.textTransform,"inherit")},W=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",m),Z=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",$.fontSize,"10px"),V=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",$.fontWeight,"normal"),G=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",$.letterSpacing,"0.33px"),K=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",$.lineHeight,"1.6"),Y=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",$.textTransform,"inherit"),q=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",m),X=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",$.fontSize,"10px"),J=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",$.fontWeight,"normal"),Q=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",$.letterSpacing,"1.5px"),tt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",$.lineHeight,"1.6"),et=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",$.textTransform,"uppercase"),it={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",$.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",$.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",$.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",$.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",$.textTransform,"uppercase")},ot=i.css`
90
+ `,y=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),m=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),$={fontFamily:m,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},w={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family",y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size",$.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",$.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height",$.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",$.textTransform,"inherit")},k={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",y),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",$.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",$.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",$.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",$.textTransform,"inherit")},_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",m),S=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",$.fontSize,"16px"),I=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",$.fontWeight,"600"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",$.letterSpacing,"0.144px"),C=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",$.lineHeight,"1.5"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",$.textTransform,"inherit"),O=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",m),R=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",$.fontSize,"14px"),N=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",$.fontWeight,"normal"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",$.letterSpacing,"0.098px"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",$.lineHeight,"1.7"),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",$.textTransform,"inherit"),j={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",$.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",$.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",$.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",$.textTransform,"inherit")},E=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",m),M=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",$.fontSize,"14px"),U=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",$.fontWeight,"normal"),F=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",$.letterSpacing,"0.252px"),L=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",$.lineHeight,"1.4"),P=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",$.textTransform,"inherit"),H={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",$.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",$.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",$.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",$.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",$.textTransform,"inherit")},W=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",m),Z=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",$.fontSize,"10px"),V=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",$.fontWeight,"normal"),G=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",$.letterSpacing,"0.33px"),K=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",$.lineHeight,"1.6"),Y=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",$.textTransform,"inherit"),q=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",m),X=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",$.fontSize,"10px"),J=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",$.fontWeight,"normal"),Q=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",$.letterSpacing,"1.5px"),tt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",$.lineHeight,"1.6"),et=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",$.textTransform,"uppercase"),it={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",$.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",$.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",$.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",$.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",$.textTransform,"uppercase")},ot=i.css`
91
91
  .ft-typography--title {
92
92
  font-family: ${w.fontFamily};
93
93
  font-size: ${w.fontSize};
@@ -135,9 +135,9 @@
135
135
  }
136
136
  `,lt=i.css`
137
137
  .ft-typography--body2 {
138
- font-family: ${M};
139
- font-size: ${U};
140
- font-weight: ${E};
138
+ font-family: ${E};
139
+ font-size: ${M};
140
+ font-weight: ${U};
141
141
  letter-spacing: ${F};
142
142
  line-height: ${L};
143
143
  text-transform: ${P};
@@ -298,7 +298,7 @@
298
298
  .ft-icon--material {
299
299
  font-family: ${bt.materialFontFamily}, "Material Icons", sans-serif;
300
300
  }
301
- `,xt=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),yt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:xt,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",it.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",xt),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`
301
+ `,xt=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),yt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:xt,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",it.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",xt),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),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 {
303
303
  display: inline-block;
304
304
  max-width: 100%;
@@ -347,7 +347,7 @@
347
347
  --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${yt.iconSize});
348
348
 
349
349
  border-radius: ${yt.borderRadius};
350
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
350
+ padding: ${yt.verticalPadding} ${yt.horizontalPadding};
351
351
  background-color: ${yt.backgroundColor};
352
352
  color: var(--ft-button-internal-color);
353
353
  -webkit-mask-image: radial-gradient(white, black);
@@ -380,7 +380,7 @@
380
380
 
381
381
  .ft-button.ft-button--outlined {
382
382
  border: 1px solid var(--ft-button-internal-color);
383
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
383
+ padding: calc(${yt.verticalPadding} - 1px) calc(${yt.horizontalPadding} - 1px);
384
384
  }
385
385
 
386
386
  .ft-button:focus {
@@ -397,7 +397,7 @@
397
397
  ${e.setVariable(it.fontSize,"1em")};
398
398
  ${e.setVariable(it.lineHeight,"var(--ft-button-internal-content-height)")};
399
399
  }
400
-
400
+
401
401
  .ft-button--label[hidden] {
402
402
  display: none;
403
403
  }
@@ -499,7 +499,7 @@
499
499
  * @license
500
500
  * Copyright 2017 Google LLC
501
501
  * SPDX-License-Identifier: BSD-3-Clause
502
- */;var zt;const Ct=window,Tt=Ct.trustedTypes,Ot=Tt?Tt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Rt=`lit$${(Math.random()+"").slice(9)}$`,Nt="?"+Rt,Dt=`<${Nt}>`,At=document,Bt=(t="")=>At.createComment(t),jt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Mt=Array.isArray,Ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Et=/-->/g,Ft=/>/g,Lt=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Pt=/'/g,Ht=/"/g,Wt=/^(?:script|style|textarea|title)$/i,Zt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Vt=Symbol.for("lit-noChange"),Gt=Symbol.for("lit-nothing"),Kt=new WeakMap,Yt=At.createTreeWalker(At,129,null,!1),qt=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=Ut;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(r.lastIndex=d,l=r.exec(i),null!==l);)d=r.lastIndex,r===Ut?"!--"===l[1]?r=Et:void 0!==l[1]?r=Ft:void 0!==l[2]?(Wt.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Lt):void 0!==l[3]&&(r=Lt):r===Lt?">"===l[0]?(r=null!=s?s:Ut,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Lt:'"'===l[3]?Ht:Pt):r===Ht||r===Pt?r=Lt:r===Et||r===Ft?r=Ut:(r=Lt,s=void 0);const p=r===Lt&&t[e+1].startsWith("/>")?" ":"";n+=r===Ut?i+Dt:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+Rt+p):i+Rt+(-2===h?(o.push(void 0),e):p)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Ot?Ot.createHTML(a):a,o]};class Xt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,h]=qt(t,e);if(this.el=Xt.createElement(l,i),Yt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Yt.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(Rt)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(Rt),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ie:"?"===e[1]?se:"@"===e[1]?ne:ee})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(Wt.test(o.tagName)){const t=o.textContent.split(Rt),e=t.length-1;if(e>0){o.textContent=Tt?Tt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Bt()),Yt.nextNode(),a.push({type:2,index:++s});o.append(t[e],Bt())}}}else if(8===o.nodeType)if(o.data===Nt)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(Rt,t+1));)a.push({type:7,index:s}),t+=Rt.length-1}s++}}static createElement(t,e){const i=At.createElement("template");return i.innerHTML=t,i}}function Jt(t,e,i=t,o){var s,n,r,a;if(e===Vt)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=jt(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=Jt(t,l._$AS(t,e.values),l,o)),e}class Qt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:At).importNode(i,!0);Yt.currentNode=s;let n=Yt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new te(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new re(n,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Yt.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class te{constructor(t,e,i,o){var s;this.type=2,this._$AH=Gt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Jt(this,t,e),jt(t)?t===Gt||null==t||""===t?(this._$AH!==Gt&&this._$AR(),this._$AH=Gt):t!==this._$AH&&t!==Vt&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Mt(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Gt&&jt(this._$AH)?this._$AA.nextSibling.data=t:this.T(At.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Xt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new Qt(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Kt.get(t.strings);return void 0===e&&Kt.set(t.strings,e=new Xt(t)),e}k(t){Mt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new te(this.O(Bt()),this.O(Bt()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ee{constructor(t,e,i,o,s){this.type=1,this._$AH=Gt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Gt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=Jt(this,t,e,0),n=!jt(t)||t!==this._$AH&&t!==Vt,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=Jt(this,o[i+r],e,r),a===Vt&&(a=this._$AH[r]),n||(n=!jt(a)||a!==this._$AH[r]),a===Gt?t=Gt:t!==Gt&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===Gt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ie extends ee{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Gt?void 0:t}}const oe=Tt?Tt.emptyScript:"";class se extends ee{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Gt?this.element.setAttribute(this.name,oe):this.element.removeAttribute(this.name)}}class ne extends ee{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Jt(this,t,e,0))&&void 0!==i?i:Gt)===Vt)return;const o=this._$AH,s=t===Gt&&o!==Gt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Gt&&(o===Gt||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class re{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){Jt(this,t)}}const ae=Ct.litHtmlPolyfillSupport;null==ae||ae(Xt,te),(null!==(zt=Ct.litHtmlVersions)&&void 0!==zt?zt:Ct.litHtmlVersions=[]).push("2.4.0");
502
+ */;var zt;const Ct=window,Tt=Ct.trustedTypes,Ot=Tt?Tt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Rt=`lit$${(Math.random()+"").slice(9)}$`,Nt="?"+Rt,Dt=`<${Nt}>`,At=document,Bt=(t="")=>At.createComment(t),jt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Et=Array.isArray,Mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ut=/-->/g,Ft=/>/g,Lt=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Pt=/'/g,Ht=/"/g,Wt=/^(?:script|style|textarea|title)$/i,Zt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Vt=Symbol.for("lit-noChange"),Gt=Symbol.for("lit-nothing"),Kt=new WeakMap,Yt=At.createTreeWalker(At,129,null,!1),qt=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=Mt;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,d=0;for(;d<i.length&&(r.lastIndex=d,l=r.exec(i),null!==l);)d=r.lastIndex,r===Mt?"!--"===l[1]?r=Ut:void 0!==l[1]?r=Ft:void 0!==l[2]?(Wt.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Lt):void 0!==l[3]&&(r=Lt):r===Lt?">"===l[0]?(r=null!=s?s:Mt,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Lt:'"'===l[3]?Ht:Pt):r===Ht||r===Pt?r=Lt:r===Ut||r===Ft?r=Mt:(r=Lt,s=void 0);const p=r===Lt&&t[e+1].startsWith("/>")?" ":"";n+=r===Mt?i+Dt:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+Rt+p):i+Rt+(-2===h?(o.push(void 0),e):p)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Ot?Ot.createHTML(a):a,o]};class Xt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,h]=qt(t,e);if(this.el=Xt.createElement(l,i),Yt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Yt.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(Rt)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(Rt),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ie:"?"===e[1]?se:"@"===e[1]?ne:ee})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(Wt.test(o.tagName)){const t=o.textContent.split(Rt),e=t.length-1;if(e>0){o.textContent=Tt?Tt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Bt()),Yt.nextNode(),a.push({type:2,index:++s});o.append(t[e],Bt())}}}else if(8===o.nodeType)if(o.data===Nt)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(Rt,t+1));)a.push({type:7,index:s}),t+=Rt.length-1}s++}}static createElement(t,e){const i=At.createElement("template");return i.innerHTML=t,i}}function Jt(t,e,i=t,o){var s,n,r,a;if(e===Vt)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=jt(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=Jt(t,l._$AS(t,e.values),l,o)),e}class Qt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:At).importNode(i,!0);Yt.currentNode=s;let n=Yt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new te(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new re(n,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Yt.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class te{constructor(t,e,i,o){var s;this.type=2,this._$AH=Gt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Jt(this,t,e),jt(t)?t===Gt||null==t||""===t?(this._$AH!==Gt&&this._$AR(),this._$AH=Gt):t!==this._$AH&&t!==Vt&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Et(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Gt&&jt(this._$AH)?this._$AA.nextSibling.data=t:this.T(At.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Xt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new Qt(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Kt.get(t.strings);return void 0===e&&Kt.set(t.strings,e=new Xt(t)),e}k(t){Et(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new te(this.O(Bt()),this.O(Bt()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ee{constructor(t,e,i,o,s){this.type=1,this._$AH=Gt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Gt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=Jt(this,t,e,0),n=!jt(t)||t!==this._$AH&&t!==Vt,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=Jt(this,o[i+r],e,r),a===Vt&&(a=this._$AH[r]),n||(n=!jt(a)||a!==this._$AH[r]),a===Gt?t=Gt:t!==Gt&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===Gt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ie extends ee{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Gt?void 0:t}}const oe=Tt?Tt.emptyScript:"";class se extends ee{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Gt?this.element.setAttribute(this.name,oe):this.element.removeAttribute(this.name)}}class ne extends ee{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Jt(this,t,e,0))&&void 0!==i?i:Gt)===Vt)return;const o=this._$AH,s=t===Gt&&o!==Gt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Gt&&(o===Gt||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class re{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){Jt(this,t)}}const ae=Ct.litHtmlPolyfillSupport;null==ae||ae(Xt,te),(null!==(zt=Ct.litHtmlVersions)&&void 0!==zt?zt:Ct.litHtmlVersions=[]).push("2.4.0");
503
503
  /**
504
504
  * @license
505
505
  * Copyright 2020 Google LLC
@@ -692,12 +692,12 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
692
692
  </ft-tooltip>
693
693
  `}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?i.html`
694
694
  <ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
695
- `:i.nothing}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}je.elementDefinitions={"ft-ripple":Re,"ft-typography":xe,"ft-tooltip":Te,"ft-icon":me},je.styles=[e.safariEllipsisFix,De],Ae([o.property()],je.prototype,"value",void 0),Ae([o.property()],je.prototype,"icon",void 0),Ae([o.property()],je.prototype,"iconVariant",void 0),Ae([o.property()],je.prototype,"label",void 0),Ae([o.property()],je.prototype,"tooltipPosition",void 0),Ae([o.property({type:Boolean,reflect:!0})],je.prototype,"selected",void 0),Ae([o.property({type:Boolean})],je.prototype,"trailingIcon",void 0),Ae([o.property({type:Boolean})],je.prototype,"unselectable",void 0),Ae([o.query(".ft-switch-option--content slot")],je.prototype,"slottedContent",void 0),Ae([o.query(".ft-switch-option--input")],je.prototype,"input",void 0);var Me=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ue extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ee extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Ue(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return i.html`
695
+ `:i.nothing}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}je.elementDefinitions={"ft-ripple":Re,"ft-typography":xe,"ft-tooltip":Te,"ft-icon":me},je.styles=[e.safariEllipsisFix,De],Ae([o.property()],je.prototype,"value",void 0),Ae([o.property()],je.prototype,"icon",void 0),Ae([o.property()],je.prototype,"iconVariant",void 0),Ae([o.property()],je.prototype,"label",void 0),Ae([o.property()],je.prototype,"tooltipPosition",void 0),Ae([o.property({type:Boolean,reflect:!0})],je.prototype,"selected",void 0),Ae([o.property({type:Boolean})],je.prototype,"trailingIcon",void 0),Ae([o.property({type:Boolean})],je.prototype,"unselectable",void 0),Ae([o.query(".ft-switch-option--content slot")],je.prototype,"slottedContent",void 0),Ae([o.query(".ft-switch-option--input")],je.prototype,"input",void 0);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 Me extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ue extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Me(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return i.html`
696
696
  <div @keydown=${this.onKeyDown} tabindex="0" class="${n.classMap(t)}">
697
697
  <slot @slotchange=${this.onSlotchange}
698
698
  @option-change=${this.onOptionChange}></slot>
699
699
  </div>
700
- `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof je&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){t.stopPropagation();let e=t.target;e.selected?this.selectedOption=e:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Ee.elementDefinitions={},Ee.styles=i.css`
700
+ `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof je&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){t.stopPropagation();let e=t.target;e.selected?this.selectedOption=e:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Ue.elementDefinitions={},Ue.styles=i.css`
701
701
  :host {
702
702
  display: inline-block;
703
703
  }
@@ -731,7 +731,7 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
731
731
  --ft-switch-internal-vertical-padding: 2px;
732
732
  --ft-switch-internal-horizontal-padding: 4px;
733
733
  }
734
- `,Me([o.property({type:Boolean})],Ee.prototype,"dense",void 0),Me([o.property({type:Boolean})],Ee.prototype,"unselectable",void 0),Me([o.query(".ft-switch slot")],Ee.prototype,"slottedContent",void 0),Me([o.state()],Ee.prototype,"selectedOption",void 0),Me([o.query(".ft-switch")],Ee.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(Ee),e.customElement("ft-switch-option")(je);const Fe=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Le=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),Pe=i.css`
734
+ `,Ee([o.property({type:Boolean})],Ue.prototype,"dense",void 0),Ee([o.property({type:Boolean})],Ue.prototype,"unselectable",void 0),Ee([o.query(".ft-switch slot")],Ue.prototype,"slottedContent",void 0),Ee([o.state()],Ue.prototype,"selectedOption",void 0),Ee([o.query(".ft-switch")],Ue.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(Ue),e.customElement("ft-switch-option")(je);const Fe=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Le=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),Pe=i.css`
735
735
  :host {
736
736
  display: block;
737
737
  }
@@ -1158,7 +1158,7 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
1158
1158
  <ft-icon>INFO</ft-icon>
1159
1159
  </ft-tooltip>
1160
1160
  </div>
1161
- `:i.nothing}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Ti.elementDefinitions={"ft-button":ii,"ft-typography":xe,"ft-icon":me,"ft-tooltip":Te,"ft-switch":Ee,"ft-switch-option":je,"ft-text-area":Qe},Ti.styles=It,Ci([o.property({type:Boolean})],Ti.prototype,"editorMode",void 0),Ci([o.property({type:Boolean})],Ti.prototype,"hideTitle",void 0),Ci([o.property({type:Boolean})],Ti.prototype,"ratingAllowed",void 0),Ci([o.property({attribute:!1})],Ti.prototype,"i18nProperties",void 0),Ci([o.property({attribute:!1})],Ti.prototype,"ratingSummary",void 0),Ci([o.property({attribute:!1})],Ti.prototype,"user",void 0),Ci([o.query(".ft-reader-feedback--feedback-input")],Ti.prototype,"feedbackInput",void 0),Ci([o.state()],Ti.prototype,"feedbackMessage",void 0),Ci([o.property()],Ti.prototype,"iconVariant",void 0),Ci([o.property()],Ti.prototype,"emptyStarIcon",void 0),Ci([o.property()],Ti.prototype,"filledStarIcon",void 0),Ci([o.property()],Ti.prototype,"emptyLikeIcon",void 0),Ci([o.property()],Ti.prototype,"filledLikeIcon",void 0),Ci([o.property()],Ti.prototype,"emptyDislikeIcon",void 0),Ci([o.property()],Ti.prototype,"filledDislikeIcon",void 0),Ci([o.property()],Ti.prototype,"feedbackMailLinkBuilder",void 0);const Oi=wi.fromGwt("server");class Ri{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,o,s){this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=s,this.subjectMetadata=o.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),s=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Oi.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${s}`}}var Ni=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Di extends(gi(h)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=be.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 Ri,this.i18nProperties={feedbackMainTitle:_i.properties.mapFeedbackMainTitle(),ratingSectionTitle:_i.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:_i.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:_i.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(ni)}render(){return null==this.map?i.nothing:i.html`
1161
+ `:i.nothing}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Ti.elementDefinitions={"ft-button":ii,"ft-typography":xe,"ft-icon":me,"ft-tooltip":Te,"ft-switch":Ue,"ft-switch-option":je,"ft-text-area":Qe},Ti.styles=It,Ci([o.property({type:Boolean})],Ti.prototype,"editorMode",void 0),Ci([o.property({type:Boolean})],Ti.prototype,"hideTitle",void 0),Ci([o.property({type:Boolean})],Ti.prototype,"ratingAllowed",void 0),Ci([o.property({attribute:!1})],Ti.prototype,"i18nProperties",void 0),Ci([o.property({attribute:!1})],Ti.prototype,"ratingSummary",void 0),Ci([o.property({attribute:!1})],Ti.prototype,"user",void 0),Ci([o.query(".ft-reader-feedback--feedback-input")],Ti.prototype,"feedbackInput",void 0),Ci([o.state()],Ti.prototype,"feedbackMessage",void 0),Ci([o.property()],Ti.prototype,"iconVariant",void 0),Ci([o.property()],Ti.prototype,"emptyStarIcon",void 0),Ci([o.property()],Ti.prototype,"filledStarIcon",void 0),Ci([o.property()],Ti.prototype,"emptyLikeIcon",void 0),Ci([o.property()],Ti.prototype,"filledLikeIcon",void 0),Ci([o.property()],Ti.prototype,"emptyDislikeIcon",void 0),Ci([o.property()],Ti.prototype,"filledDislikeIcon",void 0),Ci([o.property()],Ti.prototype,"feedbackMailLinkBuilder",void 0);const Oi=wi.fromGwt("server");class Ri{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,o,s){this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=s,this.subjectMetadata=o.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),s=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Oi.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${s}`}}var Ni=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Di extends(gi(h)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=be.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 Ri,this.i18nProperties={feedbackMainTitle:_i.properties.mapFeedbackMainTitle(),ratingSectionTitle:_i.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:_i.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:_i.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(ni)}render(){return null==this.map?i.nothing:i.html`
1162
1162
  <ft-reader-feedback
1163
1163
  ratingAllowed
1164
1164
  .i18nProperties=${this.i18nProperties}
@@ -1177,7 +1177,7 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
1177
1177
  @rate=${this.rate}
1178
1178
  @send-feedback=${this.sendFeedback}
1179
1179
  ></ft-reader-feedback>
1180
- `}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:_i.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ii.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ii.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:_i.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:_i.messages.feedbackFailure()}))}}}Di.elementDefinitions={"ft-reader-feedback":Ti},Ni([e.redux({store:ni.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Di.prototype,"user",void 0),Ni([e.redux({store:"reader"})],Di.prototype,"map",void 0),Ni([e.redux({store:ni.name})],Di.prototype,"editorMode",void 0),Ni([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Di.prototype,"configuration",void 0),Ni([o.state()],Di.prototype,"ratingSummary",void 0),Ni([o.property({type:Boolean})],Di.prototype,"hideTitle",void 0),Ni([o.property()],Di.prototype,"iconVariant",void 0),Ni([o.property()],Di.prototype,"emptyStarIcon",void 0),Ni([o.property()],Di.prototype,"filledStarIcon",void 0),Ni([o.property()],Di.prototype,"emptyLikeIcon",void 0),Ni([o.property()],Di.prototype,"filledLikeIcon",void 0),Ni([o.property()],Di.prototype,"emptyDislikeIcon",void 0),Ni([o.property()],Di.prototype,"filledDislikeIcon",void 0),Ni([o.query("ft-reader-feedback")],Di.prototype,"readerFeedback",void 0),Ni([ki(Oi.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Di.prototype,"mailSubject",void 0);var Ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Bi extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class ji 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 Bi)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return Ai([o.state()],e.prototype,"tocNode",void 0),Ai([o.state()],e.prototype,"disableContextInteractions",void 0),e}(h)){}var Mi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ui extends(gi(ji)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=be.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 Ri,this.i18nProperties={feedbackMainTitle:_i.properties.topicFeedbackMainTitle(),ratingSectionTitle:_i.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:_i.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:_i.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(ni)}render(){return null==this.map||null==this.tocNode?i.nothing:i.html`
1180
+ `}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:_i.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ii.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ii.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:_i.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:_i.messages.feedbackFailure()}))}}}Di.elementDefinitions={"ft-reader-feedback":Ti},Ni([e.redux({store:ni.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Di.prototype,"user",void 0),Ni([e.redux({store:"reader"})],Di.prototype,"map",void 0),Ni([e.redux({store:ni.name})],Di.prototype,"editorMode",void 0),Ni([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Di.prototype,"configuration",void 0),Ni([o.state()],Di.prototype,"ratingSummary",void 0),Ni([o.property({type:Boolean})],Di.prototype,"hideTitle",void 0),Ni([o.property()],Di.prototype,"iconVariant",void 0),Ni([o.property()],Di.prototype,"emptyStarIcon",void 0),Ni([o.property()],Di.prototype,"filledStarIcon",void 0),Ni([o.property()],Di.prototype,"emptyLikeIcon",void 0),Ni([o.property()],Di.prototype,"filledLikeIcon",void 0),Ni([o.property()],Di.prototype,"emptyDislikeIcon",void 0),Ni([o.property()],Di.prototype,"filledDislikeIcon",void 0),Ni([o.query("ft-reader-feedback")],Di.prototype,"readerFeedback",void 0),Ni([ki(Oi.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Di.prototype,"mailSubject",void 0);var Ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Bi extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class ji 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 Bi)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return Ai([o.state()],e.prototype,"tocNode",void 0),Ai([o.state()],e.prototype,"disableContextInteractions",void 0),e}(h)){}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 Mi extends(gi(ji)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=be.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 Ri,this.i18nProperties={feedbackMainTitle:_i.properties.topicFeedbackMainTitle(),ratingSectionTitle:_i.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:_i.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:_i.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(ni)}render(){return null==this.map||null==this.tocNode?i.nothing:i.html`
1181
1181
  <ft-reader-feedback
1182
1182
  .i18nProperties=${this.i18nProperties}
1183
1183
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1196,4 +1196,4 @@ const le=Symbol.for(""),he=t=>{if((null==t?void 0:t.r)===le)return null==t?void
1196
1196
  @rate=${this.rate}
1197
1197
  @send-feedback=${this.sendFeedback}
1198
1198
  ></ft-reader-feedback>
1199
- `}updated(t){var e,i,o;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:_i.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ii.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{!this.editorMode&&this.tocNode?(await(null===(i=this.service)||void 0===i?void 0:i.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:_i.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ii.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:_i.messages.feedbackFailure()}))}}}Ui.elementDefinitions={"ft-reader-feedback":Ti},Mi([e.redux({store:ni.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Ui.prototype,"user",void 0),Mi([e.redux({store:"reader"})],Ui.prototype,"map",void 0),Mi([e.redux({store:ni.name})],Ui.prototype,"editorMode",void 0),Mi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ui.prototype,"configuration",void 0),Mi([o.state()],Ui.prototype,"ratingSummary",void 0),Mi([o.property({type:Boolean})],Ui.prototype,"hideTitle",void 0),Mi([o.property()],Ui.prototype,"iconVariant",void 0),Mi([o.property()],Ui.prototype,"emptyStarIcon",void 0),Mi([o.property()],Ui.prototype,"filledStarIcon",void 0),Mi([o.property()],Ui.prototype,"emptyLikeIcon",void 0),Mi([o.property()],Ui.prototype,"filledLikeIcon",void 0),Mi([o.property()],Ui.prototype,"emptyDislikeIcon",void 0),Mi([o.property()],Ui.prototype,"filledDislikeIcon",void 0),Mi([o.query("ft-reader-feedback")],Ui.prototype,"readerFeedback",void 0),Mi([ki(Oi.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Ui.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Di),e.customElement("ft-reader-topic-feedback")(Ui),t.FtReaderFeedbackCssVariables=St,t.FtReaderMapFeedback=Di,t.FtReaderTopicFeedback=Ui,t.styles=It,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
1199
+ `}updated(t){var e,i,o;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:_i.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ii.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{!this.editorMode&&this.tocNode?(await(null===(i=this.service)||void 0===i?void 0:i.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:_i.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Ii.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:_i.messages.feedbackFailure()}))}}}Mi.elementDefinitions={"ft-reader-feedback":Ti},Ei([e.redux({store:ni.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Mi.prototype,"user",void 0),Ei([e.redux({store:"reader"})],Mi.prototype,"map",void 0),Ei([e.redux({store:ni.name})],Mi.prototype,"editorMode",void 0),Ei([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Mi.prototype,"configuration",void 0),Ei([o.state()],Mi.prototype,"ratingSummary",void 0),Ei([o.property({type:Boolean})],Mi.prototype,"hideTitle",void 0),Ei([o.property()],Mi.prototype,"iconVariant",void 0),Ei([o.property()],Mi.prototype,"emptyStarIcon",void 0),Ei([o.property()],Mi.prototype,"filledStarIcon",void 0),Ei([o.property()],Mi.prototype,"emptyLikeIcon",void 0),Ei([o.property()],Mi.prototype,"filledLikeIcon",void 0),Ei([o.property()],Mi.prototype,"emptyDislikeIcon",void 0),Ei([o.property()],Mi.prototype,"filledDislikeIcon",void 0),Ei([o.query("ft-reader-feedback")],Mi.prototype,"readerFeedback",void 0),Ei([ki(Oi.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Mi.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Di),e.customElement("ft-reader-topic-feedback")(Mi),t.FtReaderFeedbackCssVariables=St,t.FtReaderMapFeedback=Di,t.FtReaderTopicFeedback=Mi,t.styles=It,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
@@ -403,7 +403,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
403
403
  .ft-icon--material {
404
404
  font-family: ${So.materialFontFamily}, "Material Icons", sans-serif;
405
405
  }
406
- `,_o=xt.extend("--ft-button-color",wt.colorPrimary),Co={backgroundColor:xt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",wt.borderRadiusL),color:_o,fontSize:xt.extend("--ft-button-font-size",co.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",_o),opacityDisabled:xt.external(wt.colorOpacityDisabled,"Design system")},Eo=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",wt.colorOnPrimary)),jo={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",wt.colorPrimary)),color:Eo,rippleColor:xt.extend("--ft-button-primary-ripple-color",Eo)},Ro=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",wt.borderRadiusM)),No=[Ot,m`
406
+ `,_o=xt.extend("--ft-button-color",wt.colorPrimary),Co={backgroundColor:xt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",wt.borderRadiusL),color:_o,fontSize:xt.extend("--ft-button-font-size",co.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",_o),verticalPadding:xt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:xt.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:xt.external(wt.colorOpacityDisabled,"Design system")},Eo=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",wt.colorOnPrimary)),jo={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",wt.colorPrimary)),color:Eo,rippleColor:xt.extend("--ft-button-primary-ripple-color",Eo)},Ro=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",wt.borderRadiusM)),No=[Ot,m`
407
407
  :host {
408
408
  display: inline-block;
409
409
  max-width: 100%;
@@ -452,7 +452,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
452
452
  --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Co.iconSize});
453
453
 
454
454
  border-radius: ${Co.borderRadius};
455
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
455
+ padding: ${Co.verticalPadding} ${Co.horizontalPadding};
456
456
  background-color: ${Co.backgroundColor};
457
457
  color: var(--ft-button-internal-color);
458
458
  -webkit-mask-image: radial-gradient(white, black);
@@ -485,7 +485,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
485
485
 
486
486
  .ft-button.ft-button--outlined {
487
487
  border: 1px solid var(--ft-button-internal-color);
488
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
488
+ padding: calc(${Co.verticalPadding} - 1px) calc(${Co.horizontalPadding} - 1px);
489
489
  }
490
490
 
491
491
  .ft-button:focus {
@@ -502,7 +502,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
502
502
  ${mt(co.fontSize,"1em")};
503
503
  ${mt(co.lineHeight,"var(--ft-button-internal-content-height)")};
504
504
  }
505
-
505
+
506
506
  .ft-button--label[hidden] {
507
507
  display: none;
508
508
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-feedback",
3
- "version": "0.3.66",
3
+ "version": "0.3.67",
4
4
  "description": "Feedback forms for a map and its topics in an integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-app-context": "0.3.66",
23
- "@fluid-topics/ft-reader-context": "0.3.66",
24
- "@fluid-topics/ft-wc-utils": "0.3.66",
22
+ "@fluid-topics/ft-app-context": "0.3.67",
23
+ "@fluid-topics/ft-reader-context": "0.3.67",
24
+ "@fluid-topics/ft-wc-utils": "0.3.67",
25
25
  "lit": "2.2.8"
26
26
  },
27
- "gitHead": "cc454945c8f6b47494dc634da0613dabeed53c14"
27
+ "gitHead": "9db69a3abe84d6fb5ec11e29164f2ceaa7369352"
28
28
  }