@fluid-topics/ft-reader-feedback 0.3.60 → 0.3.61
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=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),m=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),$={fontFamily:m,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},w={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-title-font-family",y),fontSize:i.FtCssVariableFactory.extend("--ft-typography-title-font-size",$.fontSize,"20px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",$.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",$.letterSpacing,"0.15px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-title-line-height",$.lineHeight,"1.2"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",$.textTransform,"inherit")},k={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",y),fontSize:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",$.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",$.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",$.letterSpacing,"0.105px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",$.lineHeight,"1.7"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",$.textTransform,"inherit")},_=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",m),S=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",$.fontSize,"16px"),I=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",$.fontWeight,"600"),z=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",$.letterSpacing,"0.144px"),C=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",$.lineHeight,"1.5"),T=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",$.textTransform,"inherit"),O=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",m),R=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",$.fontSize,"14px"),N=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",$.fontWeight,"normal"),D=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",$.letterSpacing,"0.098px"),A=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",$.lineHeight,"1.7"),B=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",$.textTransform,"inherit"),
|
|
90
|
+
`,y=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),m=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),$={fontFamily:m,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},w={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-title-font-family",y),fontSize:i.FtCssVariableFactory.extend("--ft-typography-title-font-size",$.fontSize,"20px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",$.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",$.letterSpacing,"0.15px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-title-line-height",$.lineHeight,"1.2"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",$.textTransform,"inherit")},k={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",y),fontSize:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",$.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",$.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",$.letterSpacing,"0.105px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",$.lineHeight,"1.7"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",$.textTransform,"inherit")},_=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",m),S=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",$.fontSize,"16px"),I=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",$.fontWeight,"600"),z=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",$.letterSpacing,"0.144px"),C=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",$.lineHeight,"1.5"),T=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",$.textTransform,"inherit"),O=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",m),R=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",$.fontSize,"14px"),N=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",$.fontWeight,"normal"),D=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",$.letterSpacing,"0.098px"),A=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",$.lineHeight,"1.7"),B=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",$.textTransform,"inherit"),U={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",m),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",$.fontSize,"16px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",$.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",$.letterSpacing,"0.496px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",$.lineHeight,"1.5"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",$.textTransform,"inherit")},j=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",m),E=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",$.fontSize,"14px"),M=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",$.fontWeight,"normal"),F=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",$.letterSpacing,"0.252px"),L=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",$.lineHeight,"1.4"),P=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",$.textTransform,"inherit"),H={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",m),fontSize:i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",$.fontSize,"12px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",$.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",$.letterSpacing,"0.396px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",$.lineHeight,"1.33"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",$.textTransform,"inherit")},W=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",m),Z=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",$.fontSize,"10px"),V=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",$.fontWeight,"normal"),G=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",$.letterSpacing,"0.33px"),K=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",$.lineHeight,"1.6"),Y=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",$.textTransform,"inherit"),q=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",m),X=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",$.fontSize,"10px"),J=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",$.fontWeight,"normal"),Q=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",$.letterSpacing,"1.5px"),tt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",$.lineHeight,"1.6"),it=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",$.textTransform,"uppercase"),et={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",m),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",$.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",$.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",$.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",$.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",$.textTransform,"uppercase")},ot=e.css`
|
|
91
91
|
.ft-typography--title {
|
|
92
92
|
font-family: ${w.fontFamily};
|
|
93
93
|
font-size: ${w.fontSize};
|
|
@@ -126,18 +126,18 @@
|
|
|
126
126
|
|
|
127
127
|
`,at=e.css`
|
|
128
128
|
.ft-typography--body1 {
|
|
129
|
-
font-family: ${
|
|
130
|
-
font-size: ${
|
|
131
|
-
font-weight: ${
|
|
132
|
-
letter-spacing: ${
|
|
133
|
-
line-height: ${
|
|
134
|
-
text-transform: ${
|
|
129
|
+
font-family: ${U.fontFamily};
|
|
130
|
+
font-size: ${U.fontSize};
|
|
131
|
+
font-weight: ${U.fontWeight};
|
|
132
|
+
letter-spacing: ${U.letterSpacing};
|
|
133
|
+
line-height: ${U.lineHeight};
|
|
134
|
+
text-transform: ${U.textTransform};
|
|
135
135
|
}
|
|
136
136
|
`,lt=e.css`
|
|
137
137
|
.ft-typography--body2 {
|
|
138
|
-
font-family: ${
|
|
139
|
-
font-size: ${
|
|
140
|
-
font-weight: ${
|
|
138
|
+
font-family: ${j};
|
|
139
|
+
font-size: ${E};
|
|
140
|
+
font-weight: ${M};
|
|
141
141
|
letter-spacing: ${F};
|
|
142
142
|
line-height: ${L};
|
|
143
143
|
text-transform: ${P};
|
|
@@ -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),
|
|
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),Ut=t=>null===t||"object"!=typeof t&&"function"!=typeof t,jt=Array.isArray,Et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mt=/-->/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=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),Vt=Symbol.for("lit-noChange"),Gt=Symbol.for("lit-nothing"),Kt=new WeakMap,Yt=At.createTreeWalker(At,129,null,!1),qt=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=Et;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,d=0;for(;d<e.length&&(r.lastIndex=d,l=r.exec(e),null!==l);)d=r.lastIndex,r===Et?"!--"===l[1]?r=Mt: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:Et,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===Mt||r===Ft?r=Et:(r=Lt,s=void 0);const p=r===Lt&&t[i+1].startsWith("/>")?" ":"";n+=r===Et?e+Dt:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+Rt+p):e+Rt+(-2===h?(o.push(void 0),i):p)}const a=n+(t[e]||"<?>")+(2===i?"</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$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,h]=qt(t,i);if(this.el=Xt.createElement(l,e),Yt.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Yt.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(Rt)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(Rt),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?ei:"?"===i[1]?si:"@"===i[1]?ni:ii})}else a.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(Wt.test(o.tagName)){const t=o.textContent.split(Rt),i=t.length-1;if(i>0){o.textContent=Tt?Tt.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],Bt()),Yt.nextNode(),a.push({type:2,index:++s});o.append(t[i],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,i){const e=At.createElement("template");return e.innerHTML=t,e}}function Jt(t,i,e=t,o){var s,n,r,a;if(i===Vt)return i;let l=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=Ut(i)?void 0:i._$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,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=Jt(t,l._$AS(t,i.values),l,o)),i}class Qt{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:At).importNode(e,!0);Yt.currentNode=s;let n=Yt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new ti(n,n.nextSibling,this,t):1===l.type?i=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(i=new ri(n,this,t)),this.u.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=Yt.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class ti{constructor(t,i,e,o){var s;this.type=2,this._$AH=Gt,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Jt(this,t,i),Ut(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=>jt(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Gt&&Ut(this._$AH)?this._$AA.nextSibling.data=t:this.T(At.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$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===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new Qt(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=Kt.get(t.strings);return void 0===i&&Kt.set(t.strings,i=new Xt(t)),i}k(t){jt(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new ti(this.O(Bt()),this.O(Bt()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ii{constructor(t,i,e,o,s){this.type=1,this._$AH=Gt,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Gt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=Jt(this,t,i,0),n=!Ut(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[e+r],i,r),a===Vt&&(a=this._$AH[r]),n||(n=!Ut(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 ei extends ii{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Gt?void 0:t}}const oi=Tt?Tt.emptyScript:"";class si extends ii{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Gt?this.element.setAttribute(this.name,oi):this.element.removeAttribute(this.name)}}class ni extends ii{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Jt(this,t,i,0))&&void 0!==e?e: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 i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ri{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Jt(this,t)}}const ai=Ct.litHtmlPolyfillSupport;null==ai||ai(Xt,ti),(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
|
|
@@ -668,7 +668,7 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)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 Ai=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Bi extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class
|
|
671
|
+
`;var Ai=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Bi extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Ui extends i.FtLitElement{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 Bi)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(e.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"
|
|
@@ -692,12 +692,12 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)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?e.html`
|
|
694
694
|
<ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
|
|
695
|
-
`:e.nothing}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}
|
|
695
|
+
`:e.nothing}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Ui.elementDefinitions={"ft-ripple":Ri,"ft-typography":xi,"ft-tooltip":Ti,"ft-icon":mi},Ui.styles=[i.safariEllipsisFix,Di],Ai([o.property()],Ui.prototype,"value",void 0),Ai([o.property()],Ui.prototype,"icon",void 0),Ai([o.property()],Ui.prototype,"iconVariant",void 0),Ai([o.property()],Ui.prototype,"label",void 0),Ai([o.property()],Ui.prototype,"tooltipPosition",void 0),Ai([o.property({type:Boolean,reflect:!0})],Ui.prototype,"selected",void 0),Ai([o.property({type:Boolean})],Ui.prototype,"trailingIcon",void 0),Ai([o.property({type:Boolean})],Ui.prototype,"unselectable",void 0),Ai([o.query(".ft-switch-option--content slot")],Ui.prototype,"slottedContent",void 0),Ai([o.query(".ft-switch-option--input")],Ui.prototype,"input",void 0);var ji=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ei extends CustomEvent{constructor(t){super("change",{detail:t})}}class Mi extends i.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 i;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Ei(null===(i=this.selectedOption)||void 0===i?void 0:i.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return e.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 i;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=i&&(t.preventDefault(),this.options[this.fixIndex(i)].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
|
|
700
|
+
`}onKeyDown(t){let i;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=i&&(t.preventDefault(),this.options[this.fixIndex(i)].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 Ui&&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 i=t.target;i.selected?this.selectedOption=i:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Mi.elementDefinitions={},Mi.styles=e.css`
|
|
701
701
|
:host {
|
|
702
702
|
display: inline-block;
|
|
703
703
|
}
|
|
@@ -731,7 +731,7 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)return null==t?void
|
|
|
731
731
|
--ft-switch-internal-vertical-padding: 2px;
|
|
732
732
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
733
733
|
}
|
|
734
|
-
`,
|
|
734
|
+
`,ji([o.property({type:Boolean})],Mi.prototype,"dense",void 0),ji([o.property({type:Boolean})],Mi.prototype,"unselectable",void 0),ji([o.query(".ft-switch slot")],Mi.prototype,"slottedContent",void 0),ji([o.state()],Mi.prototype,"selectedOption",void 0),ji([o.query(".ft-switch")],Mi.prototype,"ftSwitchDiv",void 0),i.customElement("ft-switch")(Mi),i.customElement("ft-switch-option")(Ui);const Fi=i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),Li=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),Pi=e.css`
|
|
735
735
|
:host {
|
|
736
736
|
display: block;
|
|
737
737
|
}
|
|
@@ -937,8 +937,8 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)return null==t?void
|
|
|
937
937
|
align-self: stretch;
|
|
938
938
|
resize: none;
|
|
939
939
|
|
|
940
|
-
${i.setVariable(
|
|
941
|
-
${i.setVariable(
|
|
940
|
+
${i.setVariable(U.fontSize,qi.fontSize)};
|
|
941
|
+
${i.setVariable(U.lineHeight,qi.fontSize)};
|
|
942
942
|
color: ${qi.colorOnSurface};
|
|
943
943
|
|
|
944
944
|
padding: 0 ${qi.horizontalSpacing};
|
|
@@ -1062,11 +1062,11 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)return null==t?void
|
|
|
1062
1062
|
<ft-loader></ft-loader> `:this.icon?e.html`
|
|
1063
1063
|
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:e.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}}ee.elementDefinitions={"ft-ripple":Ri,"ft-tooltip":Ti,"ft-typography":xi,"ft-icon":mi,"ft-loader":te},ee.styles=[i.safariEllipsisFix,kt],ie([o.property({type:Boolean})],ee.prototype,"primary",void 0),ie([o.property({type:Boolean})],ee.prototype,"outlined",void 0),ie([o.property({type:Boolean})],ee.prototype,"disabled",void 0),ie([o.property({type:Boolean})],ee.prototype,"dense",void 0),ie([o.property({type:Boolean})],ee.prototype,"round",void 0),ie([o.property({type:String})],ee.prototype,"label",void 0),ie([o.property({type:String})],ee.prototype,"icon",void 0),ie([o.property({type:String})],ee.prototype,"iconVariant",void 0),ie([o.property({type:Boolean})],ee.prototype,"trailingIcon",void 0),ie([o.property({type:Boolean})],ee.prototype,"loading",void 0),ie([o.property({type:String})],ee.prototype,"tooltipPosition",void 0),ie([o.property({type:Boolean})],ee.prototype,"hideTooltip",void 0),ie([o.property({type:Boolean})],ee.prototype,"forceTooltip",void 0),ie([o.query(".ft-button")],ee.prototype,"button",void 0),ie([o.query(".ft-button--label slot")],ee.prototype,"slottedContent",void 0),i.customElement("ft-button")(ee);const oe=e.css`
|
|
1064
1064
|
`,se=e.css`
|
|
1065
|
-
`,ne=i.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,i)=>{t.baseUrl=i.payload},setApiIntegrationIdentifier:(t,i)=>{t.apiIntegrationIdentifier=i.payload},setUiLocale:(t,i)=>{t.uiLocale=i.payload},setAvailableUiLocales:(t,i)=>{t.availableUiLocales=i.payload},setEditorMode:(t,i)=>{t.editorMode=i.payload},setNoCustom:(t,i)=>{t.noCustom=i.payload},setNoCustomComponent:(t,i)=>{t.noCustomComponent=i.payload},setSession:(t,i)=>{t.session=i.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});var re;const ae=Symbol("clearAfterUnitTest");class
|
|
1065
|
+
`,ne=i.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,i)=>{t.baseUrl=i.payload},setApiIntegrationIdentifier:(t,i)=>{t.apiIntegrationIdentifier=i.payload},setUiLocale:(t,i)=>{t.uiLocale=i.payload},setAvailableUiLocales:(t,i)=>{t.availableUiLocales=i.payload},setEditorMode:(t,i)=>{t.editorMode=i.payload},setNoCustom:(t,i)=>{t.noCustom=i.payload},setNoCustomComponent:(t,i)=>{t.noCustomComponent=i.payload},setSession:(t,i)=>{t.session=i.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class re{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=ne.getState(),o=null!=t?t:e;if(i&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,o,!0)}static get(t){var i;return null!=t?re.build(t):null!==(i=re.API)&&void 0!==i?i:re.API=re.build()}static await(t){return new Promise((i=>{let e=re.get(t);if(e)i(e);else{const o=ne.subscribe((()=>{e=re.get(t),e&&(o(),i(e))}))}}))}}var ae;const le=Symbol("clearAfterUnitTest");class he{constructor(t){this.apiProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[ae]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=ne.getState().uiLocale,ne.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ne.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const i=t.name.toLowerCase();this.cache.setFinal(i,t),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const s={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};i.deepEqual(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var s,n,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(s=this.cache.getNow(t))||void 0===s?void 0:s.messages)&&void 0!==n?n:{};return new i.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(async()=>{var i;return await(null===(i=this.apiProvider())||void 0===i?void 0:i.getFluidTopicsMessageContext(this.currentUiLocale,t))})),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,i){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(i),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(i)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>i.delay(0).then((()=>t())).catch((()=>null)))))}}ae=le,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new he(re.get));const de=window.FluidTopicsI18nService;var pe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ce extends i.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>re.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
|
|
1066
1066
|
<slot></slot>
|
|
1067
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&ne.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ne.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ne.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ne.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ne.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ne.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ne.actions.setSession(this.session),t.has("availableUiLocales")&&ne.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>
|
|
1067
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&ne.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ne.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ne.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ne.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ne.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ne.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ne.actions.setSession(this.session),t.has("availableUiLocales")&&ne.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>de.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const i=await t.getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),i.idleTimeoutInMillis),i}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}ce.elementDefinitions={},ce.styles=se,pe([o.property()],ce.prototype,"baseUrl",void 0),pe([o.property()],ce.prototype,"apiIntegrationIdentifier",void 0),pe([o.property()],ce.prototype,"uiLocale",void 0),pe([i.jsonProperty([])],ce.prototype,"availableUiLocales",void 0),pe([o.property({type:Boolean})],ce.prototype,"editorMode",void 0),pe([o.property({type:Boolean})],ce.prototype,"noCustom",void 0),pe([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ce.prototype,"noCustomComponent",void 0),pe([o.property({type:Boolean})],ce.prototype,"withManualResources",void 0),pe([i.jsonProperty([])],ce.prototype,"messageContexts",void 0),pe([i.jsonProperty(void 0)],ce.prototype,"session",void 0),pe([o.property({type:Object})],ce.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(ce);const fe=Symbol("i18nProperties"),ue=Symbol("i18nUnsubs");function ve(t){var i;return i=ue,class extends t{constructor(){super(...arguments),this[i]=new Map}i18n(t,i,...e){var o;if("string"==typeof t)return de.resolveMessage(t,i,...e);const s=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return de.resolveMessage(t.context,t.key,...s)}onI18nUpdate(t){var i;null===(i=this[fe])||void 0===i||i.forEach(((i,e)=>{i.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(i))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var i;super.updated(t),null===(i=this[fe])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[fe]&&new Set([...this[fe].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[ue].has(t)||this[ue].set(t,de.subscribe(t,(()=>this.onI18nUpdate(t)))),de.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[ue].forEach((t=>t())),this[ue].clear()}}}class be extends(ve(i.FtLitElement)){}class ge extends(ve(i.FtLitElementRedux)){}var xe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ye extends be{render(){return this.key&&this.context?e.html`
|
|
1068
1068
|
<span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
|
|
1069
|
-
`:e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}
|
|
1069
|
+
`:e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ye.elementDefinitions={},ye.styles=oe,xe([o.property()],ye.prototype,"context",void 0),xe([o.property()],ye.prototype,"key",void 0),xe([i.jsonProperty([])],ye.prototype,"args",void 0),xe([o.property()],ye.prototype,"defaultMessage",void 0);class me{constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,i)=>{const e=i;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,i)=>(...t)=>de.resolveMessage(this.name,i,...t)})}static build(t){return new me(t)}static fromGwt(t){return new me(t)}}const $e=t=>(i,e)=>{var o,s;i.constructor.createProperty(e,{attribute:!1,type:String});const n={...t,key:null!==(o=t.key)&&void 0!==o?o:e};i[fe]=null!==(s=i[fe])&&void 0!==s?s:new Map,i[fe].set(e,n)};i.customElement("ft-i18n")(ye);const we=me.build("integratedFeedbackComponent"),ke={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},_e=me.build("inDesignerFeedbackComponent"),Se={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Ie=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ze extends be{constructor(){super(),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",this.addI18nContext(we,ke),this.addI18nContext(_e,Se)}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,i;return null!==(i=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==i?i:"NO_RATING"}get ratingType(){var t,i,e;return null!==(e=null===(i=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===i?void 0:i.type)&&void 0!==e?e:"NO_RATING"}get ratingValue(){var t,i,e;return null!==(e=null===(i=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===i?void 0:i.value)&&void 0!==e?e:-1}get ratingDate(){var t,e;const o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof o?i.parseDate(o):o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?e.html`
|
|
1070
1070
|
<div class="ft-reader-feedback">
|
|
1071
1071
|
${this.hideTitle?e.nothing:e.html`
|
|
1072
1072
|
<ft-typography variant="title" part="main-title">
|
|
@@ -1086,11 +1086,11 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)return null==t?void
|
|
|
1086
1086
|
${this.renderRatingDate()}
|
|
1087
1087
|
</ft-typography>
|
|
1088
1088
|
</div>
|
|
1089
|
-
`:this.placeholderInEditor(this.userHasRatingRole?
|
|
1089
|
+
`:this.placeholderInEditor(this.userHasRatingRole?_e.messages.ratingNotConfigured():_e.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return we.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return we.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?we.messages.ratedToday():we.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return e.html`
|
|
1090
1090
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1091
1091
|
${r.repeat(new Array(5),((t,i)=>i),((t,i)=>{let o="STARS"===this.ratingType&&this.ratingValue>i;const s=i+1;return e.html`
|
|
1092
1092
|
<ft-button round part="rating-stars-${s}"
|
|
1093
|
-
label="${
|
|
1093
|
+
label="${we.messages.starsRating(s)}"
|
|
1094
1094
|
tooltipPosition="top"
|
|
1095
1095
|
.iconVariant=${this.iconVariant}
|
|
1096
1096
|
icon="${o?this.filledStarIcon:this.emptyStarIcon}"
|
|
@@ -1105,13 +1105,13 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)return null==t?void
|
|
|
1105
1105
|
?selected=${i}
|
|
1106
1106
|
.iconVariant=${this.iconVariant}
|
|
1107
1107
|
icon="${i?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1108
|
-
${
|
|
1108
|
+
${we.messages.like()}
|
|
1109
1109
|
</ft-switch-option>
|
|
1110
1110
|
<ft-switch-option .value=${0}
|
|
1111
1111
|
?selected=${t}
|
|
1112
1112
|
.iconVariant=${this.iconVariant}
|
|
1113
1113
|
icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1114
|
-
${
|
|
1114
|
+
${we.messages.dislike()}
|
|
1115
1115
|
</ft-switch-option>
|
|
1116
1116
|
</ft-switch>
|
|
1117
1117
|
`;case"DICHOTOMOUS":const o="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,s="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return e.html`
|
|
@@ -1119,11 +1119,11 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)return null==t?void
|
|
|
1119
1119
|
part="rating rating-dichotomous">
|
|
1120
1120
|
<ft-switch-option .value=${1}
|
|
1121
1121
|
?selected=${s}>
|
|
1122
|
-
${
|
|
1122
|
+
${we.messages.dichotomousYes()}
|
|
1123
1123
|
</ft-switch-option>
|
|
1124
1124
|
<ft-switch-option .value=${0}
|
|
1125
1125
|
?selected=${o}>
|
|
1126
|
-
${
|
|
1126
|
+
${we.messages.dichotomousNo()}
|
|
1127
1127
|
</ft-switch-option>
|
|
1128
1128
|
</ft-switch>
|
|
1129
1129
|
`}return e.nothing}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){if(this.canAccessFeedback){const t=this.feedbackMailLinkBuilder(this.feedbackMessage);let i=e.html`
|
|
@@ -1132,7 +1132,7 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)return null==t?void
|
|
|
1132
1132
|
?disabled=${!this.feedbackMessage}
|
|
1133
1133
|
@click=${()=>t?this.clearFeedbackInput():this.sendFeedback()}
|
|
1134
1134
|
part="send-feedback">
|
|
1135
|
-
${
|
|
1135
|
+
${we.messages.okButton()}
|
|
1136
1136
|
</ft-button>
|
|
1137
1137
|
`;return t&&(i=e.html`
|
|
1138
1138
|
<a class="ft-reader-feedback--feedback-link" href="${t}">
|
|
@@ -1145,20 +1145,20 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)return null==t?void
|
|
|
1145
1145
|
</ft-typography>
|
|
1146
1146
|
<ft-text-area outlined
|
|
1147
1147
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1148
|
-
label="${
|
|
1148
|
+
label="${we.messages.feedbackInputLabel()}"
|
|
1149
1149
|
@live-change=${t=>this.feedbackMessage=t.detail.trim()}
|
|
1150
1150
|
></ft-text-area>
|
|
1151
1151
|
${i}
|
|
1152
1152
|
</div>
|
|
1153
|
-
`}return this.placeholderInEditor(
|
|
1153
|
+
`}return this.placeholderInEditor(_e.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?e.html`
|
|
1154
1154
|
<div class="ft-reader-feedback--placeholder">
|
|
1155
1155
|
<ft-typography variant="caption">${t}</ft-typography>
|
|
1156
1156
|
<ft-tooltip position="left"
|
|
1157
|
-
text="${
|
|
1157
|
+
text="${_e.messages.inDesignerOnlyNotice()}">
|
|
1158
1158
|
<ft-icon>INFO</ft-icon>
|
|
1159
1159
|
</ft-tooltip>
|
|
1160
1160
|
</div>
|
|
1161
|
-
`:e.nothing}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}
|
|
1161
|
+
`:e.nothing}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}ze.elementDefinitions={"ft-button":ee,"ft-typography":xi,"ft-icon":mi,"ft-tooltip":Ti,"ft-switch":Mi,"ft-switch-option":Ui,"ft-text-area":Qi},ze.styles=It,Ie([o.property({type:Boolean})],ze.prototype,"editorMode",void 0),Ie([o.property({type:Boolean})],ze.prototype,"hideTitle",void 0),Ie([o.property({type:Boolean})],ze.prototype,"ratingAllowed",void 0),Ie([o.property({attribute:!1})],ze.prototype,"i18nProperties",void 0),Ie([o.property({attribute:!1})],ze.prototype,"ratingSummary",void 0),Ie([o.property({attribute:!1})],ze.prototype,"user",void 0),Ie([o.query(".ft-reader-feedback--feedback-input")],ze.prototype,"feedbackInput",void 0),Ie([o.state()],ze.prototype,"feedbackMessage",void 0),Ie([o.property()],ze.prototype,"iconVariant",void 0),Ie([o.property()],ze.prototype,"emptyStarIcon",void 0),Ie([o.property()],ze.prototype,"filledStarIcon",void 0),Ie([o.property()],ze.prototype,"emptyLikeIcon",void 0),Ie([o.property()],ze.prototype,"filledLikeIcon",void 0),Ie([o.property()],ze.prototype,"emptyDislikeIcon",void 0),Ie([o.property()],ze.prototype,"filledDislikeIcon",void 0),Ie([o.property()],ze.prototype,"feedbackMailLinkBuilder",void 0);const Ce=me.fromGwt("server");class Te{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,i,e,o,s){this.subject=t,this.url=i,this.configuration=o,this.isAuthenticated=s,this.subjectMetadata=o.subjectMetadataIds.map((t=>e.find((i=>i.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=e.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var i,e;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),s=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Ce.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(e=this.configuration)||void 0===e?void 0:e.recipients.join(",")}?subject=${o}&body=${s}`}}var Oe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Re extends(ve(h)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,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",this.feedbackLinkBuilder=new Te,this.i18nProperties={feedbackMainTitle:we.properties.mapFeedbackMainTitle(),ratingSectionTitle:we.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:we.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:we.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new i.Debouncer(100),this.sendRatingDebouncer=new i.Debouncer(500),this.addStore(ne)}render(){return null==this.map?e.nothing:e.html`
|
|
1162
1162
|
<ft-reader-feedback
|
|
1163
1163
|
ratingAllowed
|
|
1164
1164
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1177,7 +1177,7 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)return null==t?void
|
|
|
1177
1177
|
@rate=${this.rate}
|
|
1178
1178
|
@send-feedback=${this.sendFeedback}
|
|
1179
1179
|
></ft-reader-feedback>
|
|
1180
|
-
`}updated(t){var i,e,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((i=>t.has(i)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(e=null===(i=this.service)||void 0===i?void 0:i.getLink())&&void 0!==e?e:"",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,i;this.map&&((null===(t=this.user)||void 0===t?void 0:t.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 e,o,s;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.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 i.FtNotificationEvent({type:"error",message
|
|
1180
|
+
`}updated(t){var i,e,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((i=>t.has(i)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(e=null===(i=this.service)||void 0===i?void 0:i.getLink())&&void 0!==e?e:"",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,i;this.map&&((null===(t=this.user)||void 0===t?void 0:t.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 e,o,s;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.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 i.FtNotificationEvent({type:"error",message:we.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new i.FtNotificationEvent({type:"info",message:_e.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new i.FtNotificationEvent({type:"info",message:_e.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail)),this.dispatchEvent(new i.FtNotificationEvent({type:"info",message:we.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new i.FtNotificationEvent({type:"error",message:we.messages.feedbackFailure()}))}}}Re.elementDefinitions={"ft-reader-feedback":ze},Oe([i.redux({store:ne.name,selector:t=>{var i;return null===(i=t.session)||void 0===i?void 0:i.profile}})],Re.prototype,"user",void 0),Oe([i.redux({store:"reader"})],Re.prototype,"map",void 0),Oe([i.redux({store:ne.name})],Re.prototype,"editorMode",void 0),Oe([i.redux({store:"reader",selector:t=>{var i;return null===(i=t.configuration)||void 0===i?void 0:i.feedback}})],Re.prototype,"configuration",void 0),Oe([o.state()],Re.prototype,"ratingSummary",void 0),Oe([o.property({type:Boolean})],Re.prototype,"hideTitle",void 0),Oe([o.property()],Re.prototype,"iconVariant",void 0),Oe([o.property()],Re.prototype,"emptyStarIcon",void 0),Oe([o.property()],Re.prototype,"filledStarIcon",void 0),Oe([o.property()],Re.prototype,"emptyLikeIcon",void 0),Oe([o.property()],Re.prototype,"filledLikeIcon",void 0),Oe([o.property()],Re.prototype,"emptyDislikeIcon",void 0),Oe([o.property()],Re.prototype,"filledDislikeIcon",void 0),Oe([o.query("ft-reader-feedback")],Re.prototype,"readerFeedback",void 0),Oe([$e(Ce.properties["mail.map_feedback.subject"]((t=>{var i;return[null===(i=t.map)||void 0===i?void 0:i.title]})))],Re.prototype,"mailSubject",void 0);var Ne=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class De extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class Ae extends(function(t){class i 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 De)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return Ne([o.state()],i.prototype,"tocNode",void 0),Ne([o.state()],i.prototype,"disableContextInteractions",void 0),i}(h)){}var Be=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ue extends(ve(Ae)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,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",this.feedbackLinkBuilder=new Te,this.i18nProperties={feedbackMainTitle:we.properties.topicFeedbackMainTitle(),ratingSectionTitle:we.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:we.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:we.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new i.Debouncer(100),this.sendRatingDebouncer=new i.Debouncer(500),this.addStore(ne)}render(){return null==this.map||null==this.tocNode?e.nothing:e.html`
|
|
1181
1181
|
<ft-reader-feedback
|
|
1182
1182
|
.i18nProperties=${this.i18nProperties}
|
|
1183
1183
|
?ratingAllowed=${this.tocNode.hasRating}
|
|
@@ -1196,4 +1196,4 @@ const li=Symbol.for(""),hi=t=>{if((null==t?void 0:t.r)===li)return null==t?void
|
|
|
1196
1196
|
@rate=${this.rate}
|
|
1197
1197
|
@send-feedback=${this.sendFeedback}
|
|
1198
1198
|
></ft-reader-feedback>
|
|
1199
|
-
`}updated(t){var i,e,o;super.updated(t),["tocNode","user"].some((i=>t.has(i)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((i=>t.has(i)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(e=null===(i=this.service)||void 0===i?void 0:i.getLink(this.tocNode.tocId))&&void 0!==e?e:"",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,i;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.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,o,s;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===(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 i.FtNotificationEvent({type:"error",message
|
|
1199
|
+
`}updated(t){var i,e,o;super.updated(t),["tocNode","user"].some((i=>t.has(i)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((i=>t.has(i)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(e=null===(i=this.service)||void 0===i?void 0:i.getLink(this.tocNode.tocId))&&void 0!==e?e:"",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,i;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.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,o,s;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===(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 i.FtNotificationEvent({type:"error",message:we.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new i.FtNotificationEvent({type:"info",message:_e.messages.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 i.FtNotificationEvent({type:"info",message:we.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new i.FtNotificationEvent({type:"info",message:_e.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new i.FtNotificationEvent({type:"error",message:we.messages.feedbackFailure()}))}}}Ue.elementDefinitions={"ft-reader-feedback":ze},Be([i.redux({store:ne.name,selector:t=>{var i;return null===(i=t.session)||void 0===i?void 0:i.profile}})],Ue.prototype,"user",void 0),Be([i.redux({store:"reader"})],Ue.prototype,"map",void 0),Be([i.redux({store:ne.name})],Ue.prototype,"editorMode",void 0),Be([i.redux({store:"reader",selector:t=>{var i;return null===(i=t.configuration)||void 0===i?void 0:i.feedback}})],Ue.prototype,"configuration",void 0),Be([o.state()],Ue.prototype,"ratingSummary",void 0),Be([o.property({type:Boolean})],Ue.prototype,"hideTitle",void 0),Be([o.property()],Ue.prototype,"iconVariant",void 0),Be([o.property()],Ue.prototype,"emptyStarIcon",void 0),Be([o.property()],Ue.prototype,"filledStarIcon",void 0),Be([o.property()],Ue.prototype,"emptyLikeIcon",void 0),Be([o.property()],Ue.prototype,"filledLikeIcon",void 0),Be([o.property()],Ue.prototype,"emptyDislikeIcon",void 0),Be([o.property()],Ue.prototype,"filledDislikeIcon",void 0),Be([o.query("ft-reader-feedback")],Ue.prototype,"readerFeedback",void 0),Be([$e(Ce.properties["mail.feedback.subject"]((t=>{var i,e;return[null===(i=t.tocNode)||void 0===i?void 0:i.title,null===(e=t.map)||void 0===e?void 0:e.title]})))],Ue.prototype,"mailSubject",void 0),i.customElement("ft-reader-map-feedback")(Re),i.customElement("ft-reader-topic-feedback")(Ue),t.FtReaderFeedbackCssVariables=St,t.FtReaderMapFeedback=Re,t.FtReaderTopicFeedback=Ue,t.styles=It,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
|
|
@@ -1195,11 +1195,11 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
|
|
|
1195
1195
|
<ft-loader></ft-loader> `:this.icon?X`
|
|
1196
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}}Kn.elementDefinitions={"ft-ripple":fn,"ft-tooltip":cn,"ft-typography":Lo,"ft-icon":Qo,"ft-loader":Wn},Kn.styles=[_t,No],Hn([r({type:Boolean})],Kn.prototype,"primary",void 0),Hn([r({type:Boolean})],Kn.prototype,"outlined",void 0),Hn([r({type:Boolean})],Kn.prototype,"disabled",void 0),Hn([r({type:Boolean})],Kn.prototype,"dense",void 0),Hn([r({type:Boolean})],Kn.prototype,"round",void 0),Hn([r({type:String})],Kn.prototype,"label",void 0),Hn([r({type:String})],Kn.prototype,"icon",void 0),Hn([r({type:String})],Kn.prototype,"iconVariant",void 0),Hn([r({type:Boolean})],Kn.prototype,"trailingIcon",void 0),Hn([r({type:Boolean})],Kn.prototype,"loading",void 0),Hn([r({type:String})],Kn.prototype,"tooltipPosition",void 0),Hn([r({type:Boolean})],Kn.prototype,"hideTooltip",void 0),Hn([r({type:Boolean})],Kn.prototype,"forceTooltip",void 0),Hn([l(".ft-button")],Kn.prototype,"button",void 0),Hn([l(".ft-button--label slot")],Kn.prototype,"slottedContent",void 0),f("ft-button")(Kn);const Zn=m`
|
|
1197
1197
|
`,Vn=m`
|
|
1198
|
-
`,Gn=ci.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});var Jn;const qn=Symbol("clearAfterUnitTest");class
|
|
1198
|
+
`,Gn=ci.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Jn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Gn.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?Jn.build(t):null!==(e=Jn.API)&&void 0!==e?e:Jn.API=Jn.build()}static await(t){return new Promise((e=>{let i=Jn.get(t);if(i)e(i);else{const o=Gn.subscribe((()=>{i=Jn.get(t),i&&(o(),e(i))}))}}))}}var qn;const Xn=Symbol("clearAfterUnitTest");class Yn{constructor(t){this.apiProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[qn]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=Gn.getState().uiLocale,Gn.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Gn.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};d(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,n,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==n?n:{};return new Ct(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(async()=>{var e;return await(null===(e=this.apiProvider())||void 0===e?void 0:e.getFluidTopicsMessageContext(this.currentUiLocale,t))})),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}qn=Xn,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Yn(Jn.get));const Qn=window.FluidTopicsI18nService;var tr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class er extends St{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Jn.get(),this.cache=new i,this.cleanSessionDebouncer=new o}render(){return X`
|
|
1199
1199
|
<slot></slot>
|
|
1200
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&Gn.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Gn.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Gn.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Gn.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Gn.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Gn.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Gn.actions.setSession(this.session),t.has("availableUiLocales")&&Gn.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>
|
|
1200
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&Gn.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Gn.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Gn.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Gn.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Gn.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Gn.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Gn.actions.setSession(this.session),t.has("availableUiLocales")&&Gn.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Qn.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}er.elementDefinitions={},er.styles=Vn,tr([r()],er.prototype,"baseUrl",void 0),tr([r()],er.prototype,"apiIntegrationIdentifier",void 0),tr([r()],er.prototype,"uiLocale",void 0),tr([u([])],er.prototype,"availableUiLocales",void 0),tr([r({type:Boolean})],er.prototype,"editorMode",void 0),tr([r({type:Boolean})],er.prototype,"noCustom",void 0),tr([r({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],er.prototype,"noCustomComponent",void 0),tr([r({type:Boolean})],er.prototype,"withManualResources",void 0),tr([u([])],er.prototype,"messageContexts",void 0),tr([u(void 0)],er.prototype,"session",void 0),tr([r({type:Object})],er.prototype,"apiProvider",void 0),f("ft-app-context")(er);const ir=Symbol("i18nProperties"),or=Symbol("i18nUnsubs");function nr(t){var e;return e=or,class extends t{constructor(){super(...arguments),this[e]=new Map}i18n(t,e,...i){var o;if("string"==typeof t)return Qn.resolveMessage(t,e,...i);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return Qn.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var e;null===(e=this[ir])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[ir])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ir]&&new Set([...this[ir].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[or].has(t)||this[or].set(t,Qn.subscribe(t,(()=>this.onI18nUpdate(t)))),Qn.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[or].forEach((t=>t())),this[or].clear()}}}class rr extends(nr(St)){}class sr extends(nr(ai)){}var ar=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class lr extends rr{render(){return this.key&&this.context?X`
|
|
1201
1201
|
<span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
|
|
1202
|
-
`:Q}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}
|
|
1202
|
+
`:Q}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}lr.elementDefinitions={},lr.styles=Zn,ar([r()],lr.prototype,"context",void 0),ar([r()],lr.prototype,"key",void 0),ar([u([])],lr.prototype,"args",void 0),ar([r()],lr.prototype,"defaultMessage",void 0);class cr{constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Qn.resolveMessage(this.name,e,...t)})}static build(t){return new cr(t)}static fromGwt(t){return new cr(t)}}const hr=t=>(e,i)=>{var o,n;e.constructor.createProperty(i,{attribute:!1,type:String});const r={...t,key:null!==(o=t.key)&&void 0!==o?o:i};e[ir]=null!==(n=e[ir])&&void 0!==n?n:new Map,e[ir].set(i,r)};f("ft-i18n")(lr);const dr=cr.build("integratedFeedbackComponent"),fr={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},ur=cr.build("inDesignerFeedbackComponent"),pr={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var vr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class br extends rr{constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.iconVariant=Xo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(dr,fr),this.addI18nContext(ur,pr)}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?X`
|
|
1203
1203
|
<div class="ft-reader-feedback">
|
|
1204
1204
|
${this.hideTitle?Q:X`
|
|
1205
1205
|
<ft-typography variant="title" part="main-title">
|
|
@@ -1219,11 +1219,11 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
|
|
|
1219
1219
|
${this.renderRatingDate()}
|
|
1220
1220
|
</ft-typography>
|
|
1221
1221
|
</div>
|
|
1222
|
-
`:this.placeholderInEditor(this.userHasRatingRole?
|
|
1222
|
+
`:this.placeholderInEditor(this.userHasRatingRole?ur.messages.ratingNotConfigured():ur.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return dr.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return dr.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?dr.messages.ratedToday():dr.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return X`
|
|
1223
1223
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1224
1224
|
${Ln(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return X`
|
|
1225
1225
|
<ft-button round part="rating-stars-${o}"
|
|
1226
|
-
label="${
|
|
1226
|
+
label="${dr.messages.starsRating(o)}"
|
|
1227
1227
|
tooltipPosition="top"
|
|
1228
1228
|
.iconVariant=${this.iconVariant}
|
|
1229
1229
|
icon="${i?this.filledStarIcon:this.emptyStarIcon}"
|
|
@@ -1238,13 +1238,13 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
|
|
|
1238
1238
|
?selected=${e}
|
|
1239
1239
|
.iconVariant=${this.iconVariant}
|
|
1240
1240
|
icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1241
|
-
${
|
|
1241
|
+
${dr.messages.like()}
|
|
1242
1242
|
</ft-switch-option>
|
|
1243
1243
|
<ft-switch-option .value=${0}
|
|
1244
1244
|
?selected=${t}
|
|
1245
1245
|
.iconVariant=${this.iconVariant}
|
|
1246
1246
|
icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1247
|
-
${
|
|
1247
|
+
${dr.messages.dislike()}
|
|
1248
1248
|
</ft-switch-option>
|
|
1249
1249
|
</ft-switch>
|
|
1250
1250
|
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return X`
|
|
@@ -1252,11 +1252,11 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
|
|
|
1252
1252
|
part="rating rating-dichotomous">
|
|
1253
1253
|
<ft-switch-option .value=${1}
|
|
1254
1254
|
?selected=${o}>
|
|
1255
|
-
${
|
|
1255
|
+
${dr.messages.dichotomousYes()}
|
|
1256
1256
|
</ft-switch-option>
|
|
1257
1257
|
<ft-switch-option .value=${0}
|
|
1258
1258
|
?selected=${i}>
|
|
1259
|
-
${
|
|
1259
|
+
${dr.messages.dichotomousNo()}
|
|
1260
1260
|
</ft-switch-option>
|
|
1261
1261
|
</ft-switch>
|
|
1262
1262
|
`}return Q}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){if(this.canAccessFeedback){const t=this.feedbackMailLinkBuilder(this.feedbackMessage);let e=X`
|
|
@@ -1265,7 +1265,7 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
|
|
|
1265
1265
|
?disabled=${!this.feedbackMessage}
|
|
1266
1266
|
@click=${()=>t?this.clearFeedbackInput():this.sendFeedback()}
|
|
1267
1267
|
part="send-feedback">
|
|
1268
|
-
${
|
|
1268
|
+
${dr.messages.okButton()}
|
|
1269
1269
|
</ft-button>
|
|
1270
1270
|
`;return t&&(e=X`
|
|
1271
1271
|
<a class="ft-reader-feedback--feedback-link" href="${t}">
|
|
@@ -1278,20 +1278,20 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
|
|
|
1278
1278
|
</ft-typography>
|
|
1279
1279
|
<ft-text-area outlined
|
|
1280
1280
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1281
|
-
label="${
|
|
1281
|
+
label="${dr.messages.feedbackInputLabel()}"
|
|
1282
1282
|
@live-change=${t=>this.feedbackMessage=t.detail.trim()}
|
|
1283
1283
|
></ft-text-area>
|
|
1284
1284
|
${e}
|
|
1285
1285
|
</div>
|
|
1286
|
-
`}return this.placeholderInEditor(
|
|
1286
|
+
`}return this.placeholderInEditor(ur.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?X`
|
|
1287
1287
|
<div class="ft-reader-feedback--placeholder">
|
|
1288
1288
|
<ft-typography variant="caption">${t}</ft-typography>
|
|
1289
1289
|
<ft-tooltip position="left"
|
|
1290
|
-
text="${
|
|
1290
|
+
text="${ur.messages.inDesignerOnlyNotice()}">
|
|
1291
1291
|
<ft-icon>INFO</ft-icon>
|
|
1292
1292
|
</ft-tooltip>
|
|
1293
1293
|
</div>
|
|
1294
|
-
`:Q}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}
|
|
1294
|
+
`:Q}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}br.elementDefinitions={"ft-button":Kn,"ft-typography":Lo,"ft-icon":Qo,"ft-tooltip":cn,"ft-switch":mn,"ft-switch-option":yn,"ft-text-area":Tn},br.styles=To,vr([r({type:Boolean})],br.prototype,"editorMode",void 0),vr([r({type:Boolean})],br.prototype,"hideTitle",void 0),vr([r({type:Boolean})],br.prototype,"ratingAllowed",void 0),vr([r({attribute:!1})],br.prototype,"i18nProperties",void 0),vr([r({attribute:!1})],br.prototype,"ratingSummary",void 0),vr([r({attribute:!1})],br.prototype,"user",void 0),vr([l(".ft-reader-feedback--feedback-input")],br.prototype,"feedbackInput",void 0),vr([s()],br.prototype,"feedbackMessage",void 0),vr([r()],br.prototype,"iconVariant",void 0),vr([r()],br.prototype,"emptyStarIcon",void 0),vr([r()],br.prototype,"filledStarIcon",void 0),vr([r()],br.prototype,"emptyLikeIcon",void 0),vr([r()],br.prototype,"filledLikeIcon",void 0),vr([r()],br.prototype,"emptyDislikeIcon",void 0),vr([r()],br.prototype,"filledDislikeIcon",void 0),vr([r()],br.prototype,"feedbackMailLinkBuilder",void 0);const yr=cr.fromGwt("server");class gr{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,o,n){this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=n,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),n=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${yr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${n}`}}var xr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class mr extends(nr(bi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Xo.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 gr,this.i18nProperties={feedbackMainTitle:dr.properties.mapFeedbackMainTitle(),ratingSectionTitle:dr.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:dr.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:dr.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Gn)}render(){return null==this.map?Q:X`
|
|
1295
1295
|
<ft-reader-feedback
|
|
1296
1296
|
ratingAllowed
|
|
1297
1297
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1310,7 +1310,7 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
|
|
|
1310
1310
|
@rate=${this.rate}
|
|
1311
1311
|
@send-feedback=${this.sendFeedback}
|
|
1312
1312
|
></ft-reader-feedback>
|
|
1313
|
-
`}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 e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new $t({type:"error",message:
|
|
1313
|
+
`}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 e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new $t({type:"error",message:dr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new $t({type:"info",message:ur.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new $t({type:"info",message:ur.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail)),this.dispatchEvent(new $t({type:"info",message:dr.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new $t({type:"error",message:dr.messages.feedbackFailure()}))}}}mr.elementDefinitions={"ft-reader-feedback":br},xr([si({store:Gn.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],mr.prototype,"user",void 0),xr([si({store:"reader"})],mr.prototype,"map",void 0),xr([si({store:Gn.name})],mr.prototype,"editorMode",void 0),xr([si({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],mr.prototype,"configuration",void 0),xr([s()],mr.prototype,"ratingSummary",void 0),xr([r({type:Boolean})],mr.prototype,"hideTitle",void 0),xr([r()],mr.prototype,"iconVariant",void 0),xr([r()],mr.prototype,"emptyStarIcon",void 0),xr([r()],mr.prototype,"filledStarIcon",void 0),xr([r()],mr.prototype,"emptyLikeIcon",void 0),xr([r()],mr.prototype,"filledLikeIcon",void 0),xr([r()],mr.prototype,"emptyDislikeIcon",void 0),xr([r()],mr.prototype,"filledDislikeIcon",void 0),xr([l("ft-reader-feedback")],mr.prototype,"readerFeedback",void 0),xr([hr(yr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],mr.prototype,"mailSubject",void 0);var wr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class $r extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class kr 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 $r)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return wr([s()],e.prototype,"tocNode",void 0),wr([s()],e.prototype,"disableContextInteractions",void 0),e}(bi)){}var Sr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Or extends(nr(kr)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Xo.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 gr,this.i18nProperties={feedbackMainTitle:dr.properties.topicFeedbackMainTitle(),ratingSectionTitle:dr.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:dr.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:dr.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Gn)}render(){return null==this.map||null==this.tocNode?Q:X`
|
|
1314
1314
|
<ft-reader-feedback
|
|
1315
1315
|
.i18nProperties=${this.i18nProperties}
|
|
1316
1316
|
?ratingAllowed=${this.tocNode.hasRating}
|
|
@@ -1329,4 +1329,4 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
|
|
|
1329
1329
|
@rate=${this.rate}
|
|
1330
1330
|
@send-feedback=${this.sendFeedback}
|
|
1331
1331
|
></ft-reader-feedback>
|
|
1332
|
-
`}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 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 $t({type:"error",message:
|
|
1332
|
+
`}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 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 $t({type:"error",message:dr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new $t({type:"info",message:ur.messages.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 $t({type:"info",message:dr.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new $t({type:"info",message:ur.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new $t({type:"error",message:dr.messages.feedbackFailure()}))}}}Or.elementDefinitions={"ft-reader-feedback":br},Sr([si({store:Gn.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Or.prototype,"user",void 0),Sr([si({store:"reader"})],Or.prototype,"map",void 0),Sr([si({store:Gn.name})],Or.prototype,"editorMode",void 0),Sr([si({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Or.prototype,"configuration",void 0),Sr([s()],Or.prototype,"ratingSummary",void 0),Sr([r({type:Boolean})],Or.prototype,"hideTitle",void 0),Sr([r()],Or.prototype,"iconVariant",void 0),Sr([r()],Or.prototype,"emptyStarIcon",void 0),Sr([r()],Or.prototype,"filledStarIcon",void 0),Sr([r()],Or.prototype,"emptyLikeIcon",void 0),Sr([r()],Or.prototype,"filledLikeIcon",void 0),Sr([r()],Or.prototype,"emptyDislikeIcon",void 0),Sr([r()],Or.prototype,"filledDislikeIcon",void 0),Sr([l("ft-reader-feedback")],Or.prototype,"readerFeedback",void 0),Sr([hr(yr.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]})))],Or.prototype,"mailSubject",void 0),f("ft-reader-map-feedback")(mr),f("ft-reader-topic-feedback")(Or),t.FtReaderFeedbackCssVariables=Io,t.FtReaderMapFeedback=mr,t.FtReaderTopicFeedback=Or,t.styles=To,Object.defineProperty(t,"W",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-feedback",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.61",
|
|
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.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "0.3.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-app-context": "0.3.61",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "0.3.61",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "0.3.61",
|
|
25
25
|
"lit": "2.2.8"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "12a4024fb3084b17772a3aef10723d22ae56c877"
|
|
28
28
|
}
|