@fluid-topics/ft-reader-feedback 1.0.51 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
opacity: ${p.opacityContentOnSurfacePressed};
|
|
89
89
|
transform: translate(-50%, -50%) scale(1);
|
|
90
90
|
}
|
|
91
|
-
`,m=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),$=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),w={fontFamily:$,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},k={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size",w.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",w.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height",w.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",w.textTransform,"inherit")},S={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",w.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",w.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",w.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",w.textTransform,"inherit")},_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",$),I=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",w.fontSize,"16px"),C=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",w.fontWeight,"600"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",w.letterSpacing,"0.144px"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",w.lineHeight,"1.5"),E=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",w.textTransform,"inherit"),O=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",$),R=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",w.fontSize,"14px"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",w.fontWeight,"normal"),N=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",w.letterSpacing,"0.098px"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",w.lineHeight,"1.7"),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",w.textTransform,"inherit"),M={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",$),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",w.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",w.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",w.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",w.textTransform,"inherit")},U=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",$),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",w.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",w.fontWeight,"normal"),L=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",w.letterSpacing,"0.252px"),P=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",w.lineHeight,"1.4"),Z=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",w.textTransform,"inherit"),H={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",$),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",w.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",w.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",w.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",w.textTransform,"inherit")},
|
|
91
|
+
`,m=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),$=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),w={fontFamily:$,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},k={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size",w.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",w.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height",w.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",w.textTransform,"inherit")},S={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",m),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",w.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",w.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",w.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",w.textTransform,"inherit")},_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",$),I=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",w.fontSize,"16px"),C=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",w.fontWeight,"600"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",w.letterSpacing,"0.144px"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",w.lineHeight,"1.5"),E=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",w.textTransform,"inherit"),O=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",$),R=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",w.fontSize,"14px"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",w.fontWeight,"normal"),N=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",w.letterSpacing,"0.098px"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",w.lineHeight,"1.7"),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",w.textTransform,"inherit"),M={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",$),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",w.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",w.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",w.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",w.textTransform,"inherit")},U=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",$),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",w.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",w.fontWeight,"normal"),L=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",w.letterSpacing,"0.252px"),P=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",w.lineHeight,"1.4"),Z=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",w.textTransform,"inherit"),H={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",$),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",w.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",w.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",w.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",w.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",w.textTransform,"inherit")},V=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",$),W=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",w.fontSize,"10px"),G=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",w.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",w.letterSpacing,"0.33px"),Y=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",w.lineHeight,"1.6"),q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",w.textTransform,"inherit"),X=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",$),J=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",w.fontSize,"10px"),Q=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",w.fontWeight,"normal"),tt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",w.letterSpacing,"1.5px"),et=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",w.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",w.textTransform,"uppercase"),ot={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",$),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",w.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",w.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",w.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",w.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",w.textTransform,"uppercase")},st=i.css`
|
|
92
92
|
.ft-typography--title {
|
|
93
93
|
font-family: ${k.fontFamily};
|
|
94
94
|
font-size: ${k.fontSize};
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
}
|
|
155
155
|
`,ft=i.css`
|
|
156
156
|
.ft-typography--breadcrumb {
|
|
157
|
-
font-family: ${
|
|
158
|
-
font-size: ${
|
|
157
|
+
font-family: ${V};
|
|
158
|
+
font-size: ${W};
|
|
159
159
|
font-weight: ${G};
|
|
160
160
|
letter-spacing: ${K};
|
|
161
161
|
line-height: ${Y};
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
* @license
|
|
516
516
|
* Copyright 2017 Google LLC
|
|
517
517
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
518
|
-
*/;var Ot;const Rt=window,Dt=Rt.trustedTypes,Nt=Dt?Dt.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",Bt=`lit$${(Math.random()+"").slice(9)}$`,Mt="?"+Bt,Ut=`<${Mt}>`,jt=document,Ft=()=>jt.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Pt=Array.isArray,Zt="[ \t\n\f\r]",Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
518
|
+
*/;var Ot;const Rt=window,Dt=Rt.trustedTypes,Nt=Dt?Dt.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",Bt=`lit$${(Math.random()+"").slice(9)}$`,Mt="?"+Bt,Ut=`<${Mt}>`,jt=document,Ft=()=>jt.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Pt=Array.isArray,Zt="[ \t\n\f\r]",Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,Wt=/>/g,Gt=RegExp(`>|${Zt}(?:([^\\s"'>=/]+)(${Zt}*=${Zt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Kt=/'/g,Yt=/"/g,qt=/^(?:script|style|textarea|title)$/i,Xt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Jt=Symbol.for("lit-noChange"),Qt=Symbol.for("lit-nothing"),te=new WeakMap,ee=jt.createTreeWalker(jt,129,null,!1),ie=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=Ht;for(let e=0;e<i;e++){const i=t[e];let a,l,d=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===Ht?"!--"===l[1]?r=Vt:void 0!==l[1]?r=Wt:void 0!==l[2]?(qt.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Gt):void 0!==l[3]&&(r=Gt):r===Gt?">"===l[0]?(r=null!=s?s:Ht,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Gt:'"'===l[3]?Yt:Kt):r===Yt||r===Kt?r=Gt:r===Vt||r===Wt?r=Ht:(r=Gt,s=void 0);const f=r===Gt&&t[e+1].startsWith("/>")?" ":"";n+=r===Ht?i+Ut:d>=0?(o.push(a),i.slice(0,d)+At+i.slice(d)+Bt+f):i+Bt+(-2===d?(o.push(void 0),e):f)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Nt?Nt.createHTML(a):a,o]};class oe{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,d]=ie(t,e);if(this.el=oe.createElement(l,i),ee.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=ee.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(At)||e.startsWith(Bt)){const i=d[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+At).split(Bt),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?le:"?"===e[1]?he:"@"===e[1]?fe:ae})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(qt.test(o.tagName)){const t=o.textContent.split(Bt),e=t.length-1;if(e>0){o.textContent=Dt?Dt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Ft()),ee.nextNode(),a.push({type:2,index:++s});o.append(t[e],Ft())}}}else if(8===o.nodeType)if(o.data===Mt)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(Bt,t+1));)a.push({type:7,index:s}),t+=Bt.length-1}s++}}static createElement(t,e){const i=jt.createElement("template");return i.innerHTML=t,i}}function se(t,e,i=t,o){var s,n,r,a;if(e===Jt)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=Lt(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=se(t,l._$AS(t,e.values),l,o)),e}class ne{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:jt).importNode(i,!0);ee.currentNode=s;let n=ee.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new re(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new pe(n,this,t)),this._$AV.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=ee.nextNode(),r++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class re{constructor(t,e,i,o){var s;this.type=2,this._$AH=Qt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=se(this,t,e),Lt(t)?t===Qt||null==t||""===t?(this._$AH!==Qt&&this._$AR(),this._$AH=Qt):t!==this._$AH&&t!==Jt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Pt(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Qt&&Lt(this._$AH)?this._$AA.nextSibling.data=t:this.$(jt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=oe.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new ne(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=te.get(t.strings);return void 0===e&&te.set(t.strings,e=new oe(t)),e}T(t){Pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new re(this.k(Ft()),this.k(Ft()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ae{constructor(t,e,i,o,s){this.type=1,this._$AH=Qt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Qt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=se(this,t,e,0),n=!Lt(t)||t!==this._$AH&&t!==Jt,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=se(this,o[i+r],e,r),a===Jt&&(a=this._$AH[r]),n||(n=!Lt(a)||a!==this._$AH[r]),a===Qt?t=Qt:t!==Qt&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===Qt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class le extends ae{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Qt?void 0:t}}const de=Dt?Dt.emptyScript:"";class he extends ae{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Qt?this.element.setAttribute(this.name,de):this.element.removeAttribute(this.name)}}class fe extends ae{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=se(this,t,e,0))&&void 0!==i?i:Qt)===Jt)return;const o=this._$AH,s=t===Qt&&o!==Qt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Qt&&(o===Qt||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class pe{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){se(this,t)}}const ce=Rt.litHtmlPolyfillSupport;null==ce||ce(oe,re),(null!==(Ot=Rt.litHtmlVersions)&&void 0!==Ot?Ot:Rt.litHtmlVersions=[]).push("2.7.3");
|
|
519
519
|
/**
|
|
520
520
|
* @license
|
|
521
521
|
* Copyright 2020 Google LLC
|
|
@@ -536,7 +536,6 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
|
|
|
536
536
|
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case we.file_format:this.resolvedIcon=null!==(t=$e[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case we.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=me[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ie.elementDefinitions={},Ie.styles=xt,_e([o.property()],Ie.prototype,"variant",void 0),_e([o.property()],Ie.prototype,"value",void 0),_e([o.state()],Ie.prototype,"resolvedIcon",void 0),_e([o.query("slot")],Ie.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Ie);const Ce=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),ze=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Te=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ee=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Oe=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Re=e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),De=i.css`
|
|
537
537
|
.ft-tooltip--container {
|
|
538
538
|
display: block;
|
|
539
|
-
position: relative;
|
|
540
539
|
}
|
|
541
540
|
|
|
542
541
|
.ft-tooltip--inline {
|
|
@@ -560,8 +559,6 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
|
|
|
560
559
|
border-radius: ${Oe};
|
|
561
560
|
background-color: ${Te};
|
|
562
561
|
color: ${ze};
|
|
563
|
-
top: -500px;
|
|
564
|
-
left: -500px;
|
|
565
562
|
position: relative;
|
|
566
563
|
word-break: break-word;
|
|
567
564
|
}
|
|
@@ -583,7 +580,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
|
|
|
583
580
|
</div>
|
|
584
581
|
</div>
|
|
585
582
|
</div>
|
|
586
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=
|
|
583
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let n=0,r=0;switch(this.validPosition){case"top":r=t.offsetTop-i,n=t.offsetLeft+s;break;case"bottom":r=t.offsetTop+t.offsetHeight,n=t.offsetLeft+s;break;case"left":r=t.offsetTop+o,n=t.offsetLeft-e;break;case"right":r=t.offsetTop+o,n=t.offsetLeft+t.offsetWidth}const a=this.tooltip.style;a.left=this.limitValueBetween(n,0,window.innerWidth-e)+"px",a.top=this.limitValueBetween(r,0,window.innerHeight-i)+"px",a.maxWidth=`max(${t.offsetWidth}px, ${Re})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}limitValueBetween(t,e,i){return Math.max(e,Math.min(t,i))}}Ae.elementDefinitions={"ft-typography":Se},Ae.styles=De,Ne([o.property()],Ae.prototype,"text",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"manual",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"inline",void 0),Ne([o.property({type:Number})],Ae.prototype,"delay",void 0),Ne([o.property()],Ae.prototype,"position",void 0),Ne([o.queryAssignedNodes("",!0)],Ae.prototype,"slotNodes",void 0),Ne([o.query(".ft-tooltip--container")],Ae.prototype,"container",void 0),Ne([o.query(".ft-tooltip")],Ae.prototype,"tooltip",void 0),Ne([o.query(".ft-tooltip--content")],Ae.prototype,"tooltipContent",void 0),Ne([o.state()],Ae.prototype,"visible",void 0),e.customElement("ft-tooltip")(Ae);var Be=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Me extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
|
|
587
584
|
<style>
|
|
588
585
|
.ft-ripple .ft-ripple--effect,
|
|
589
586
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -708,14 +705,14 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
|
|
|
708
705
|
</ft-tooltip>
|
|
709
706
|
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Le(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?i.html`
|
|
710
707
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
711
|
-
`:i.nothing}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Ze.elementDefinitions={"ft-ripple":Me,"ft-typography":Se,"ft-tooltip":Ae,"ft-icon":Ie},Ze.styles=[e.safariEllipsisFix,je],Fe([o.property()],Ze.prototype,"value",void 0),Fe([o.property()],Ze.prototype,"icon",void 0),Fe([o.property()],Ze.prototype,"iconVariant",void 0),Fe([o.property()],Ze.prototype,"label",void 0),Fe([o.property()],Ze.prototype,"tooltipPosition",void 0),Fe([o.property({type:Boolean,reflect:!0})],Ze.prototype,"selected",void 0),Fe([o.property({type:Boolean})],Ze.prototype,"trailingIcon",void 0),Fe([o.property({type:Boolean})],Ze.prototype,"unselectable",void 0),Fe([o.query(".ft-switch-option--content slot")],Ze.prototype,"slottedContent",void 0),Fe([o.query(".ft-switch-option--input")],Ze.prototype,"input",void 0);var He=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class
|
|
708
|
+
`:i.nothing}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Ze.elementDefinitions={"ft-ripple":Me,"ft-typography":Se,"ft-tooltip":Ae,"ft-icon":Ie},Ze.styles=[e.safariEllipsisFix,je],Fe([o.property()],Ze.prototype,"value",void 0),Fe([o.property()],Ze.prototype,"icon",void 0),Fe([o.property()],Ze.prototype,"iconVariant",void 0),Fe([o.property()],Ze.prototype,"label",void 0),Fe([o.property()],Ze.prototype,"tooltipPosition",void 0),Fe([o.property({type:Boolean,reflect:!0})],Ze.prototype,"selected",void 0),Fe([o.property({type:Boolean})],Ze.prototype,"trailingIcon",void 0),Fe([o.property({type:Boolean})],Ze.prototype,"unselectable",void 0),Fe([o.query(".ft-switch-option--content slot")],Ze.prototype,"slottedContent",void 0),Fe([o.query(".ft-switch-option--input")],Ze.prototype,"input",void 0);var He=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ve extends CustomEvent{constructor(t){super("change",{detail:t})}}class We extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){super.updated(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return i.html`
|
|
712
709
|
<div @keydown=${this.onKeyDown} tabindex="0" class="${n.classMap(t)}">
|
|
713
710
|
<slot @slotchange=${this.onSlotchange}
|
|
714
711
|
@option-change=${this.onOptionChangeByScript}
|
|
715
712
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
716
713
|
></slot>
|
|
717
714
|
</div>
|
|
718
|
-
`}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Ze&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new
|
|
715
|
+
`}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Ze&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new Ve(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}We.elementDefinitions={},We.styles=i.css`
|
|
719
716
|
:host {
|
|
720
717
|
display: inline-block;
|
|
721
718
|
}
|
|
@@ -749,7 +746,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
|
|
|
749
746
|
--ft-switch-internal-vertical-padding: 2px;
|
|
750
747
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
751
748
|
}
|
|
752
|
-
`,He([o.property({type:Boolean})],
|
|
749
|
+
`,He([o.property({type:Boolean})],We.prototype,"dense",void 0),He([o.property({type:Boolean})],We.prototype,"unselectable",void 0),He([o.query(".ft-switch slot")],We.prototype,"slottedContent",void 0),He([o.state()],We.prototype,"selectedOption",void 0),He([o.query(".ft-switch")],We.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(We),e.customElement("ft-switch-option")(Ze);const Ge=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Ke=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),Ye=i.css`
|
|
753
750
|
:host {
|
|
754
751
|
display: block;
|
|
755
752
|
}
|
|
@@ -1437,7 +1434,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
|
|
|
1437
1434
|
<ft-icon>INFO</ft-icon>
|
|
1438
1435
|
</ft-tooltip>
|
|
1439
1436
|
</div>
|
|
1440
|
-
`:i.nothing}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Hi.elementDefinitions={"ft-button":di,"ft-typography":Se,"ft-icon":Ie,"ft-tooltip":Ae,"ft-switch":
|
|
1437
|
+
`:i.nothing}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Hi.elementDefinitions={"ft-button":di,"ft-typography":Se,"ft-icon":Ie,"ft-tooltip":Ae,"ft-switch":We,"ft-switch-option":Ze,"ft-text-area":ri,"ft-text-field":Ui},Hi.styles=Et,Zi([o.property({type:Boolean})],Hi.prototype,"editorMode",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"hideTitle",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"ratingAllowed",void 0),Zi([o.property({attribute:!1})],Hi.prototype,"i18nProperties",void 0),Zi([o.property({attribute:!1})],Hi.prototype,"ratingSummary",void 0),Zi([o.property({attribute:!1})],Hi.prototype,"user",void 0),Zi([o.query(".ft-reader-feedback--feedback-input")],Hi.prototype,"feedbackInput",void 0),Zi([o.state()],Hi.prototype,"from",void 0),Zi([o.state()],Hi.prototype,"feedbackMessage",void 0),Zi([o.property()],Hi.prototype,"iconVariant",void 0),Zi([o.property()],Hi.prototype,"emptyStarIcon",void 0),Zi([o.property()],Hi.prototype,"filledStarIcon",void 0),Zi([o.property()],Hi.prototype,"emptyLikeIcon",void 0),Zi([o.property()],Hi.prototype,"filledLikeIcon",void 0),Zi([o.property()],Hi.prototype,"emptyDislikeIcon",void 0),Zi([o.property()],Hi.prototype,"filledDislikeIcon",void 0),Zi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Hi.prototype,"configuration",void 0),Zi([o.property()],Hi.prototype,"feedbackMailLinkBuilder",void 0);const Vi=Ti.fromGwt("server");class Wi{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,s){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=s,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const s=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Vi.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${s}&body=${n}`}}var Gi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends(Si(h)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=we.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Wi,this.i18nProperties={feedbackMainTitle:Oi.properties.mapFeedbackMainTitle(),ratingSectionTitle:Oi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Oi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Oi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(pi)}render(){return this.map&&(this.editorMode||this.componentVisible)?i.html`
|
|
1441
1438
|
<ft-reader-feedback
|
|
1442
1439
|
ratingAllowed
|
|
1443
1440
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1463,7 +1460,7 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
|
|
|
1463
1460
|
display: none !important;
|
|
1464
1461
|
}
|
|
1465
1462
|
</style>
|
|
1466
|
-
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Oi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}Ki.elementDefinitions={"ft-reader-feedback":Hi},Gi([e.redux({store:pi.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Ki.prototype,"user",void 0),Gi([e.redux({store:"reader"})],Ki.prototype,"map",void 0),Gi([e.redux({store:pi.name})],Ki.prototype,"editorMode",void 0),Gi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ki.prototype,"configuration",void 0),Gi([o.state()],Ki.prototype,"ratingSummary",void 0),Gi([o.property({type:Boolean})],Ki.prototype,"hideTitle",void 0),Gi([o.property()],Ki.prototype,"iconVariant",void 0),Gi([o.property()],Ki.prototype,"emptyStarIcon",void 0),Gi([o.property()],Ki.prototype,"filledStarIcon",void 0),Gi([o.property()],Ki.prototype,"emptyLikeIcon",void 0),Gi([o.property()],Ki.prototype,"filledLikeIcon",void 0),Gi([o.property()],Ki.prototype,"emptyDislikeIcon",void 0),Gi([o.property()],Ki.prototype,"filledDislikeIcon",void 0),Gi([o.query("ft-reader-feedback")],Ki.prototype,"readerFeedback",void 0),Gi([Ei(
|
|
1463
|
+
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Oi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}Ki.elementDefinitions={"ft-reader-feedback":Hi},Gi([e.redux({store:pi.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Ki.prototype,"user",void 0),Gi([e.redux({store:"reader"})],Ki.prototype,"map",void 0),Gi([e.redux({store:pi.name})],Ki.prototype,"editorMode",void 0),Gi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ki.prototype,"configuration",void 0),Gi([o.state()],Ki.prototype,"ratingSummary",void 0),Gi([o.property({type:Boolean})],Ki.prototype,"hideTitle",void 0),Gi([o.property()],Ki.prototype,"iconVariant",void 0),Gi([o.property()],Ki.prototype,"emptyStarIcon",void 0),Gi([o.property()],Ki.prototype,"filledStarIcon",void 0),Gi([o.property()],Ki.prototype,"emptyLikeIcon",void 0),Gi([o.property()],Ki.prototype,"filledLikeIcon",void 0),Gi([o.property()],Ki.prototype,"emptyDislikeIcon",void 0),Gi([o.property()],Ki.prototype,"filledDislikeIcon",void 0),Gi([o.query("ft-reader-feedback")],Ki.prototype,"readerFeedback",void 0),Gi([Ei(Vi.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Ki.prototype,"mailSubject",void 0);var Yi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class qi extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Xi=Symbol("registerInterval");class Ji extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Xi]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Xi]):this.dispatchEvent(new qi)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Xi,Yi([o.state()],i.prototype,"tocNode",void 0),Yi([o.state()],i.prototype,"disableContextInteractions",void 0),i}(h)){}var Qi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class to extends(Si(Ji)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=we.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Wi,this.i18nProperties={feedbackMainTitle:Oi.properties.topicFeedbackMainTitle(),ratingSectionTitle:Oi.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Oi.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Oi.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(pi)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?i.html`
|
|
1467
1464
|
<ft-reader-feedback
|
|
1468
1465
|
.i18nProperties=${this.i18nProperties}
|
|
1469
1466
|
?ratingAllowed=${this.tocNode.hasRating}
|
|
@@ -1489,4 +1486,4 @@ const ue=Symbol.for(""),ve=t=>{if((null==t?void 0:t.r)===ue)return null==t?void
|
|
|
1489
1486
|
display: none !important;
|
|
1490
1487
|
}
|
|
1491
1488
|
</style>
|
|
1492
|
-
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,o;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{!this.editorMode&&this.tocNode?(await(null===(i=this.service)||void 0===i?void 0:i.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Oi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}to.elementDefinitions={"ft-reader-feedback":Hi},Qi([e.redux({store:pi.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],to.prototype,"user",void 0),Qi([e.redux({store:"reader"})],to.prototype,"map",void 0),Qi([e.redux({store:pi.name})],to.prototype,"editorMode",void 0),Qi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],to.prototype,"configuration",void 0),Qi([o.state()],to.prototype,"ratingSummary",void 0),Qi([o.property({type:Boolean})],to.prototype,"hideTitle",void 0),Qi([o.property()],to.prototype,"iconVariant",void 0),Qi([o.property()],to.prototype,"emptyStarIcon",void 0),Qi([o.property()],to.prototype,"filledStarIcon",void 0),Qi([o.property()],to.prototype,"emptyLikeIcon",void 0),Qi([o.property()],to.prototype,"filledLikeIcon",void 0),Qi([o.property()],to.prototype,"emptyDislikeIcon",void 0),Qi([o.property()],to.prototype,"filledDislikeIcon",void 0),Qi([o.query("ft-reader-feedback")],to.prototype,"readerFeedback",void 0),Qi([Ei(
|
|
1489
|
+
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,o;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,s;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(s=this.ratingSummary)||void 0===s?void 0:s.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{!this.editorMode&&this.tocNode?(await(null===(i=this.service)||void 0===i?void 0:i.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Oi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Di.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Oi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}to.elementDefinitions={"ft-reader-feedback":Hi},Qi([e.redux({store:pi.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],to.prototype,"user",void 0),Qi([e.redux({store:"reader"})],to.prototype,"map",void 0),Qi([e.redux({store:pi.name})],to.prototype,"editorMode",void 0),Qi([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],to.prototype,"configuration",void 0),Qi([o.state()],to.prototype,"ratingSummary",void 0),Qi([o.property({type:Boolean})],to.prototype,"hideTitle",void 0),Qi([o.property()],to.prototype,"iconVariant",void 0),Qi([o.property()],to.prototype,"emptyStarIcon",void 0),Qi([o.property()],to.prototype,"filledStarIcon",void 0),Qi([o.property()],to.prototype,"emptyLikeIcon",void 0),Qi([o.property()],to.prototype,"filledLikeIcon",void 0),Qi([o.property()],to.prototype,"emptyDislikeIcon",void 0),Qi([o.property()],to.prototype,"filledDislikeIcon",void 0),Qi([o.query("ft-reader-feedback")],to.prototype,"readerFeedback",void 0),Qi([Ei(Vi.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],to.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Ki),e.customElement("ft-reader-topic-feedback")(to),t.FtReaderFeedbackCssVariables=Tt,t.FtReaderMapFeedback=Ki,t.FtReaderTopicFeedback=to,t.styles=Et}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
|
|
@@ -54,19 +54,19 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/;var E;const _=window,C=_.trustedTypes,R=C?C.emptyScript:"",j=_.reactiveElementPolyfillSupport,N={toAttribute(t,e){switch(e){case Boolean:t=t?R:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},I=(t,e)=>e!==t&&(e==e||t==t),T={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:I};let
|
|
57
|
+
*/;var E;const _=window,C=_.trustedTypes,R=C?C.emptyScript:"",j=_.reactiveElementPolyfillSupport,N={toAttribute(t,e){switch(e){case Boolean:t=t?R:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},I=(t,e)=>e!==t&&(e==e||t==t),T={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:I};let M=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=T){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||T}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(O(t))}else void 0!==t&&e.push(O(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return k(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=T){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:N).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:N;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||I)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2017 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
62
|
*/
|
|
63
|
-
var M
|
|
63
|
+
var A;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:M}),(null!==(E=_.reactiveElementVersions)&&void 0!==E?E:_.reactiveElementVersions=[]).push("1.6.1");const U=window,z=U.trustedTypes,F=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,D="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,B="?"+P,L=`<${B}>`,W=document,H=()=>W.createComment(""),Z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,K=t=>V(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),q="[ \t\n\f\r]",G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,X=/>/g,Y=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Q=/'/g,tt=/"/g,et=/^(?:script|style|textarea|title)$/i,it=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),ot=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),rt=new WeakMap,st=W.createTreeWalker(W,129,null,!1),at=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=G;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,d=0;for(;d<i.length&&(s.lastIndex=d,l=s.exec(i),null!==l);)d=s.lastIndex,s===G?"!--"===l[1]?s=J:void 0!==l[1]?s=X:void 0!==l[2]?(et.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Y):void 0!==l[3]&&(s=Y):s===Y?">"===l[0]?(s=null!=n?n:G,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Y:'"'===l[3]?tt:Q):s===tt||s===Q?s=Y:s===J||s===X?s=G:(s=Y,n=void 0);const h=s===Y&&t[e+1].startsWith("/>")?" ":"";r+=s===G?i+L:c>=0?(o.push(a),i.slice(0,c)+D+i.slice(c)+P+h):i+P+(-2===c?(o.push(void 0),e):h)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,o]};class lt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=at(t,e);if(this.el=lt.createElement(l,i),st.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=st.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(D)||e.startsWith(P)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+D).split(P),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?ut:"?"===e[1]?vt:"@"===e[1]?bt:ft})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(et.test(o.tagName)){const t=o.textContent.split(P),e=t.length-1;if(e>0){o.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],H()),st.nextNode(),a.push({type:2,index:++n});o.append(t[e],H())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(P,t+1));)a.push({type:7,index:n}),t+=P.length-1}n++}}static createElement(t,e){const i=W.createElement("template");return i.innerHTML=t,i}}function ct(t,e,i=t,o){var n,r,s,a;if(e===ot)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const c=Z(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=ct(t,l._$AS(t,e.values),l,o)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:W).importNode(i,!0);st.currentNode=n;let r=st.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ht(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new gt(r,this,t)),this._$AV.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=st.nextNode(),s++)}return n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ht=class t{constructor(t,e,i,o){var n;this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ct(this,t,e),Z(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):K(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==nt&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.$(W.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=lt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new dt(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=rt.get(t.strings);return void 0===e&&rt.set(t.strings,e=new lt(t)),e}T(e){V(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,n=0;for(const r of e)n===i.length?i.push(o=new t(this.k(H()),this.k(H()),this,this.options)):o=i[n],o._$AI(r),n++;n<i.length&&(this._$AR(o&&o._$AB.nextSibling,n),i.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ft=class{constructor(t,e,i,o,n){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=nt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=ct(this,t,e,0),r=!Z(t)||t!==this._$AH&&t!==ot,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=ct(this,o[i+s],e,s),a===ot&&(a=this._$AH[s]),r||(r=!Z(a)||a!==this._$AH[s]),a===nt?t=nt:t!==nt&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ut=class extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}};const pt=z?z.emptyScript:"";let vt=class extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==nt?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}},bt=class extends ft{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ct(this,t,e,0))&&void 0!==i?i:nt)===ot)return;const o=this._$AH,n=t===nt&&o!==nt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==nt&&(o===nt||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ct(this,t)}};const yt={O:D,P,A:B,C:1,M:at,L:dt,D:K,R:ct,I:ht,V:ft,H:vt,N:bt,U:ut,F:gt},xt=U.litHtmlPolyfillSupport;null==xt||xt(lt,ht),(null!==(A=U.litHtmlVersions)&&void 0!==A?A:U.litHtmlVersions=[]).push("2.7.3");
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var mt,wt;let $t=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new ht(e.insertBefore(H(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return ot}};$t.finalized=!0,$t._$litElement$=!0,null===(mt=globalThis.litElementHydrateSupport)||void 0===mt||mt.call(globalThis,{LitElement:$t});const St=globalThis.litElementPolyfillSupport;null==St||St({LitElement:$t}),(null!==(wt=globalThis.litElementVersions)&&void 0!==wt?wt:globalThis.litElementVersions=[]).push("3.3.2");class kt{static create(t,e,i){let o=t=>$(null!=t?t:i),n=S`var(${$(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>S`var(${$(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=S`var(${$(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>S`var(${$(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):$(null!=e?e:t.defaultValue),o=S`var(${$(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>S`var(${$(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function Ot(t,e){return $(`${t.name}: ${e}`)}const Et={colorPrimary:kt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:kt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:kt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:kt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:kt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:kt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:kt.create("--ft-color-error","COLOR","#B00020"),colorOutline:kt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:kt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:kt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:kt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:kt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:kt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:kt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:kt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:kt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:kt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:kt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:kt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:kt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:kt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:kt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:kt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:kt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:kt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:kt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:kt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:kt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:kt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:kt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:kt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:kt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:kt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:kt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:kt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:kt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:kt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:kt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:kt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:kt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:kt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:kt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:kt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:kt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:kt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:kt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:kt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:kt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:kt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:kt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:kt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:kt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:kt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:kt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:kt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:kt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:kt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:kt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:kt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:kt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:kt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:kt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class _t extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class Ct extends $t{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return k(i,t.elementStyles),i}}var Rt,jt=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};const Nt=Symbol("constructorPrototype"),It=Symbol("constructorName"),Tt=Symbol("exportpartsDebouncer");class At extends Ct{constructor(){super(),this[Rt]=new n(5),this[It]=this.constructor.name,this[Nt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[It]&&Object.setPrototypeOf(this,this[Nt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Tt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const d=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...d].join(", "))}}Rt=Tt,jt([s()],At.prototype,"exportpartsPrefix",void 0),jt([b([])],At.prototype,"exportpartsPrefixes",void 0),jt([s()],At.prototype,"customStylesheet",void 0);const Mt=S`
|
|
69
|
+
var mt,wt;let $t=class extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new ht(e.insertBefore(H(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return ot}};$t.finalized=!0,$t._$litElement$=!0,null===(mt=globalThis.litElementHydrateSupport)||void 0===mt||mt.call(globalThis,{LitElement:$t});const St=globalThis.litElementPolyfillSupport;null==St||St({LitElement:$t}),(null!==(wt=globalThis.litElementVersions)&&void 0!==wt?wt:globalThis.litElementVersions=[]).push("3.3.2");class kt{static create(t,e,i){let o=t=>$(null!=t?t:i),n=S`var(${$(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>S`var(${$(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=S`var(${$(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>S`var(${$(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):$(null!=e?e:t.defaultValue),o=S`var(${$(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>S`var(${$(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function Ot(t,e){return $(`${t.name}: ${e}`)}const Et={colorPrimary:kt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:kt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:kt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:kt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:kt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:kt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:kt.create("--ft-color-error","COLOR","#B00020"),colorOutline:kt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:kt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:kt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:kt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:kt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:kt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:kt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:kt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:kt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:kt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:kt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:kt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:kt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:kt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:kt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:kt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:kt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:kt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:kt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:kt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:kt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:kt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:kt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:kt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:kt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:kt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:kt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:kt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:kt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:kt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:kt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:kt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:kt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:kt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:kt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:kt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:kt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:kt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:kt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:kt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:kt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:kt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:kt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:kt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:kt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:kt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:kt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:kt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:kt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:kt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:kt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:kt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:kt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:kt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:kt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class _t extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class Ct extends $t{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return k(i,t.elementStyles),i}}var Rt,jt=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};const Nt=Symbol("constructorPrototype"),It=Symbol("constructorName"),Tt=Symbol("exportpartsDebouncer");class Mt extends Ct{constructor(){super(),this[Rt]=new n(5),this[It]=this.constructor.name,this[Nt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[It]&&Object.setPrototypeOf(this,this[Nt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Tt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const d=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...d].join(", "))}}Rt=Tt,jt([s()],Mt.prototype,"exportpartsPrefix",void 0),jt([b([])],Mt.prototype,"exportpartsPrefixes",void 0),jt([s()],Mt.prototype,"customStylesheet",void 0);const At=S`
|
|
70
70
|
.ft-no-text-select {
|
|
71
71
|
-webkit-touch-callout: none;
|
|
72
72
|
-webkit-user-select: none;
|
|
@@ -98,7 +98,7 @@ var mt,wt;let $t=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
98
98
|
display: inline-block;
|
|
99
99
|
width: 0;
|
|
100
100
|
}
|
|
101
|
-
`;class zt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ft(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Dt,Pt,Bt;const Lt=Symbol("internalReduxEventsUnsubscribers"),Wt=Symbol("internalStoresUnsubscribers"),Ht=Symbol("internalStores");class Zt extends At{constructor(){super(...arguments),this[Dt]=new Map,this[Pt]=new Map,this[Bt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ht].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ht].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ft(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ht].delete(e)}setupStore(t,e){this[Ht].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ht].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Wt].has(t.store):this[Wt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Wt].set(t,e.subscribe((()=>this.updateFromStores()))),Ft(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Lt].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Wt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Lt].forEach((t=>t())),this[Lt]=[]}unsubscribeFromStore(t){this[Wt].has(t)&&this[Wt].get(t)(),this[Wt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Vt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[Te]}function qt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ae}(t)||Array.isArray(t)||!!t[Ie]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ie])||te(t)||ee(t))}function Gt(t,e,i){void 0===i&&(i=!1),0===Jt(t)?(i?Object.keys:Me)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function Jt(t){var e=t[Te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:te(t)?2:ee(t)?3:0}function Xt(t,e){return 2===Jt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Yt(t,e,i){var o=Jt(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function Qt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function te(t){return Ce&&t instanceof Map}function ee(t){return Re&&t instanceof Set}function ie(t){return t.o||t.t}function oe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ue(t);delete e[Te];for(var i=Me(e),o=0;o<i.length;o++){var n=i[o],r=e[n];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[n]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function ne(t,e){return void 0===e&&(e=!1),se(t)||Kt(t)||!qt(t)||(Jt(t)>1&&(t.set=t.add=t.clear=t.delete=re),Object.freeze(t),e&&Gt(t,(function(t,e){return ne(e,!0)}),!0)),t}function re(){Vt(2)}function se(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ae(t){var e=ze[t];return e||Vt(18,t),e}function le(){return Ee}function ce(t,e){e&&(ae("Patches"),t.u=[],t.s=[],t.v=e)}function de(t){he(t),t.p.forEach(ue),t.p=null}function he(t){t===Ee&&(Ee=t.l)}function fe(t){return Ee={p:[],l:Ee,h:t,m:!0,_:0}}function ue(t){var e=t[Te];0===e.i||1===e.i?e.j():e.g=!0}function pe(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||ae("ES5").S(e,t,o),o?(i[Te].P&&(de(e),Vt(4)),qt(t)&&(t=ve(e,t),e.l||ge(e,t)),e.u&&ae("Patches").M(i[Te].t,t,e.u,e.s)):t=ve(e,i,[]),de(e),e.u&&e.v(e.u,e.s),t!==Ne?t:void 0}function ve(t,e,i){if(se(e))return e;var o=e[Te];if(!o)return Gt(e,(function(n,r){return be(t,o,e,n,r,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return ge(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=4===o.i||5===o.i?o.o=oe(o.k):o.o,r=n,s=!1;3===o.i&&(r=new Set(n),n.clear(),s=!0),Gt(r,(function(e,r){return be(t,o,n,e,r,i,s)})),ge(t,n,!1),i&&t.u&&ae("Patches").N(o,i,t.u,t.s)}return o.o}function be(t,e,i,o,n,r,s){if(Kt(n)){var a=ve(t,n,r&&e&&3!==e.i&&!Xt(e.R,o)?r.concat(o):void 0);if(Yt(i,o,a),!Kt(a))return;t.m=!1}else s&&i.add(n);if(qt(n)&&!se(n)){if(!t.h.D&&t._<1)return;ve(t,n),e&&e.A.l||ge(t,n)}}function ge(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ne(e,i)}function ye(t,e){var i=t[Te];return(i?ie(i):t)[e]}function xe(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function me(t){t.P||(t.P=!0,t.l&&me(t.l))}function we(t){t.o||(t.o=oe(t.t))}function $e(t,e,i){var o=te(e)?ae("MapSet").F(e,i):ee(e)?ae("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:le(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=o,r=Fe;i&&(n=[o],r=De);var s=Proxy.revocable(n,r),a=s.revoke,l=s.proxy;return o.k=l,o.j=a,l}(e,i):ae("ES5").J(e,i);return(i?i.A:le()).p.push(o),o}function Se(t){return Kt(t)||Vt(22,t),function t(e){if(!qt(e))return e;var i,o=e[Te],n=Jt(e);if(o){if(!o.P&&(o.i<4||!ae("ES5").K(o)))return o.t;o.I=!0,i=ke(e,n),o.I=!1}else i=ke(e,n);return Gt(i,(function(e,n){o&&function(t,e){return 2===Jt(t)?t.get(e):t[e]}(o.t,e)===n||Yt(i,e,t(n))})),3===n?new Set(i):i}(t)}function ke(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return oe(t)}Dt=Wt,Pt=Ht,Bt=Lt;var Oe,Ee,_e="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ce="undefined"!=typeof Map,Re="undefined"!=typeof Set,je="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=_e?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Ie=_e?Symbol.for("immer-draftable"):"__$immer_draftable",Te=_e?Symbol.for("immer-state"):"__$immer_state",Ae=""+Object.prototype.constructor,Me="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ue=Object.getOwnPropertyDescriptors||function(t){var e={};return Me(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},ze={},Fe={get:function(t,e){if(e===Te)return t;var i=ie(t);if(!Xt(i,e))return function(t,e,i){var o,n=xe(e,i);return n?"value"in n?n.value:null===(o=n.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!qt(o)?o:o===ye(t.t,e)?(we(t),t.o[e]=$e(t.A.h,o,t)):o},has:function(t,e){return e in ie(t)},ownKeys:function(t){return Reflect.ownKeys(ie(t))},set:function(t,e,i){var o=xe(ie(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var n=ye(ie(t),e),r=null==n?void 0:n[Te];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Qt(i,n)&&(void 0!==i||Xt(t.t,e)))return!0;we(t),me(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ye(t.t,e)||e in t.t?(t.R[e]=!1,we(t),me(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=ie(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){Vt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Vt(12)}},De={};Gt(Fe,(function(t,e){De[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),De.deleteProperty=function(t,e){return De.set.call(this,t,e,void 0)},De.set=function(t,e,i){return Fe.set.call(this,t[0],e,i,t[0])};var Pe=function(){function t(t){var e=this;this.O=je,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var n=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=n);for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Vt(6),void 0!==o&&"function"!=typeof o&&Vt(7),qt(t)){var a=fe(e),l=$e(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?de(a):he(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ce(a,o),pe(t,a)}),(function(t){throw de(a),t})):(ce(a,o),pe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ne&&(s=void 0),e.D&&ne(s,!0),o){var d=[],h=[];ae("Patches").M(t,s,d,h),o(d,h)}return s}Vt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(n))}))};var o,n,r=e.produce(t,i,(function(t,e){o=t,n=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,o,n]})):[r,o,n]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){qt(t)||Vt(8),Kt(t)&&(t=Se(t));var e=fe(this),i=$e(this,t,void 0);return i[Te].C=!0,he(e),i},e.finishDraft=function(t,e){var i=(t&&t[Te]).A;return ce(i,e),pe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!je&&Vt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var n=ae("Patches").$;return Kt(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Be=new Pe,Le=Be.produce;function We(t){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},We(t)}function He(t){var e=function(t,e){if("object"!==We(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==We(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===We(e)?e:String(e)}function Ze(t,e,i){return(e=He(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ve(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function Ke(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(i),!0).forEach((function(e){Ze(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ve(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function qe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Be.produceWithPatches.bind(Be),Be.setAutoFreeze.bind(Be),Be.setUseProxies.bind(Be),Be.applyPatches.bind(Be),Be.createDraft.bind(Be),Be.finishDraft.bind(Be);var Ge="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xe={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function Ye(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(qe(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(qe(1));return i(Ye)(t,e)}if("function"!=typeof t)throw new Error(qe(2));var n=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function d(){if(l)throw new Error(qe(3));return r}function h(t){if("function"!=typeof t)throw new Error(qe(4));if(l)throw new Error(qe(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(qe(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(qe(7));if(void 0===t.type)throw new Error(qe(8));if(l)throw new Error(qe(9));try{l=!0,r=n(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:Xe.INIT}),(o={dispatch:f,subscribe:h,getState:d,replaceReducer:function(t){if("function"!=typeof t)throw new Error(qe(10));n=t,f({type:Xe.REPLACE})}})[Ge]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(qe(11));function i(){t.next&&t.next(d())}return i(),{unsubscribe:e(i)}}})[Ge]=function(){return this},t},o}function Qe(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var n=e[o];"function"==typeof t[n]&&(i[n]=t[n])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Xe.INIT}))throw new Error(qe(12));if(void 0===i(void 0,{type:Xe.PROBE_UNKNOWN_ACTION()}))throw new Error(qe(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var o=!1,n={},a=0;a<s.length;a++){var l=s[a],c=i[l],d=t[l],h=c(d,e);if(void 0===h)throw e&&e.type,new Error(qe(14));n[l]=h,o=o||h!==d}return(o=o||s.length!==Object.keys(t).length)?n:t}}function ti(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ei(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(qe(15))},n={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},r=e.map((function(t){return t(n)}));return o=ti.apply(void 0,r)(i.dispatch),Ke(Ke({},i),{},{dispatch:o})}}}function ii(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(n){return"function"==typeof n?n(i,o,t):e(n)}}}}var oi=ii();oi.withExtraArgument=ii;var ni,ri=oi,si=(ni=function(t,e){return ni=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ni(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ni(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ai=function(t,e){var i,o,n,r,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},li=function(t,e){for(var i=0,o=e.length,n=t.length;i<o;i++,n++)t[n]=e[i];return t},ci=Object.defineProperty,di=Object.defineProperties,hi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,vi=function(t,e,i){return e in t?ci(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},bi=function(t,e){for(var i in e||(e={}))ui.call(e,i)&&vi(t,i,e[i]);if(fi)for(var o=0,n=fi(e);o<n.length;o++){i=n[o];pi.call(e,i)&&vi(t,i,e[i])}return t},gi=function(t,e){return di(t,hi(e))},yi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ti:ti.apply(null,arguments)};var xi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return si(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array),mi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return si(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array);function wi(t){return qt(t)?Le(t,(function(){})):t}function $i(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new xi;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(ri.withExtraArgument(i.extraArgument)):o.push(ri));return o}(t)}}function Si(t){var e,i=$i(),o=t||{},n=o.reducer,r=void 0===n?void 0:n,s=o.middleware,a=void 0===s?i():s,l=o.devTools,c=void 0===l||l,d=o.preloadedState,h=void 0===d?void 0:d,f=o.enhancers,u=void 0===f?void 0:f;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Qe(r)}var p=a;"function"==typeof p&&(p=p(i));var v=ei.apply(void 0,p),b=ti;c&&(b=yi(bi({trace:!1},"object"==typeof c&&c)));var g=new mi(v),y=g;return Array.isArray(u)?y=li([v],u):"function"==typeof u&&(y=u(g)),Ye(e,h,b.apply(void 0,y))}function ki(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return bi(bi({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Oi(t){var e,i={},o=[],n={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,n},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[i,o,e]}function Ei(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:wi(t.initialState),n=t.reducers||{},r=Object.keys(n),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Oi(t.extraReducers):[t.extraReducers],i=e[0],n=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,d=bi(bi({},n),a);return function(t,e,i,o){void 0===i&&(i=[]);var n,r="function"==typeof e?Oi(e):[e,i,o],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))n=function(){return wi(t())};else{var c=wi(t);n=function(){return c}}function d(t,e){void 0===t&&(t=n());var i=li([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(Kt(t))return void 0===(o=i(t,e))?t:o;if(qt(t))return Le(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return d.getInitialState=n,d}(o,(function(t){for(var e in d)t.addCase(e,d[e]);for(var i=0,o=s;i<o.length;i++){var n=o[i];t.addMatcher(n.matcher,n.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,o,r=n[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,o=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=o?ki(c,o):ki(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var _i=["name","message","stack","code"],Ci=function(t,e){this.payload=t,this.meta=e},Ri=function(t,e){this.payload=t,this.meta=e},ji=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=_i;i<o.length;i++){var n=o[i];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function Ni(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=ki(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:gi(bi({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),n=ki(t+"/pending",(function(t,e,i){return{payload:void 0,meta:gi(bi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=ki(t+"/rejected",(function(t,e,o,n,r){return{payload:n,error:(i&&i.serializeError||ji)(t||"Rejected"),meta:gi(bi({},r||{}),{arg:o,requestId:e,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var d,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),f=new s;function u(t){d=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,g,y;return ai(this,(function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(m=b)||"object"!=typeof m||"function"!=typeof m.then?[3,2]:[4,b];case 1:b=x.sent(),x.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:d||"Aborted"})}))})),a(n(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:f.signal,abort:u,rejectWithValue:function(t,e){return new Ci(t,e)},fulfillWithValue:function(t,e){return new Ri(t,e)}})).then((function(e){if(e instanceof Ci)throw e;return e instanceof Ri?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return v=x.sent(),[3,5];case 4:return y=x.sent(),v=y instanceof Ci?r(null,h,t,y.payload,y.meta):r(y,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var m}))},new Promise((function(t,e){var i=function(t){try{n(v.next(t))}catch(t){e(t)}},o=function(t){try{n(v.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};n((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Ni)}})}}),{pending:n,rejected:r,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Ii="listenerMiddleware";ki(Ii+"/add"),ki(Ii+"/removeAll"),ki(Ii+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=n[t];return i?i.enumerable=e:n[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Te];return Fe.get(e,t)},set:function(e){var i=this[Te];Fe.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Te];if(!n.P)switch(n.i){case 5:o(n)&&me(n);break;case 4:i(n)&&me(n)}}}function i(t){for(var e=t.t,i=t.k,o=Me(i),n=o.length-1;n>=0;n--){var r=o[n];if(r!==Te){var s=e[r];if(void 0===s&&!Xt(e,r))return!0;var a=i[r],l=a&&a[Te];if(l?l.t!==s:!Qt(a,s))return!0}}var c=!!e[Te];return o.length!==Me(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var n={};!function(t,e){ze[t]||(ze[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),n=function(e,i){if(e){for(var o=Array(i.length),n=0;n<i.length;n++)Object.defineProperty(o,""+n,t(n,!0));return o}var r=Ue(i);delete r[Te];for(var s=Me(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(o,e),r={i:o?5:4,A:i?i.A:le(),P:!1,I:!1,R:{},l:i,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Te,{value:r,writable:!0}),n},S:function(t,i,n){n?Kt(i)&&i[Te].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Te];if(i){var n=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Gt(r,(function(e){e!==Te&&(void 0!==n[e]||Xt(n,e)?s[e]||t(r[e]):(s[e]=!0,me(i)))})),Gt(n,(function(t){void 0!==r[t]||Xt(r,t)||(s[t]=!1,me(i))}));else if(5===a){if(o(i)&&(me(i),s.length=!0),r.length<n.length)for(var l=r.length;l<n.length;l++)s[l]=!1;else for(var c=n.length;c<r.length;c++)s[c]=!0;for(var d=Math.min(r.length,n.length),h=0;h<d;h++)r.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(r[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ti{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,n=window.ftReduxStores[i];if(Ft(n))return n;if(null==o)return;const r=Ei({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),s=Si({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Ti(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,n=t[o];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:{[o]:t}})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ai=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const n={hasChanged:(t,e)=>!p(t,e),attribute:!1,...e};s(n)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};var Mi,Ui,zi;const Fi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(zi=null===(Ui=null===(Mi=window.safari)||void 0===Mi?void 0:Mi.pushNotification)||void 0===Ui?void 0:Ui.toString())&&void 0!==zi?zi:"");var Di=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 Pi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Bi=Symbol("registerInterval");class Li extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Bi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Bi]):this.dispatchEvent(new Pi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Bi,Di([a()],i.prototype,"stateManager",void 0),i}(Zt)){}const Wi=kt.extend("--ft-ripple-color",Et.colorContent),Hi={color:Wi,backgroundColor:kt.extend("--ft-ripple-background-color",Wi),opacityContentOnSurfacePressed:kt.external(Et.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:kt.external(Et.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:kt.external(Et.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:kt.external(Et.opacityContentOnSurfaceSelected,"Design system"),borderRadius:kt.create("--ft-ripple-border-radius","SIZE","0px")},Zi=kt.extend("--ft-ripple-color",Et.colorPrimary),Vi=Zi,Ki=kt.extend("--ft-ripple-background-color",Zi),qi=kt.extend("--ft-ripple-color",Et.colorSecondary),Gi=qi,Ji=kt.extend("--ft-ripple-background-color",qi),Xi=S`
|
|
101
|
+
`;class zt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ft(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Dt,Pt,Bt;const Lt=Symbol("internalReduxEventsUnsubscribers"),Wt=Symbol("internalStoresUnsubscribers"),Ht=Symbol("internalStores");class Zt extends Mt{constructor(){super(...arguments),this[Dt]=new Map,this[Pt]=new Map,this[Bt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ht].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ht].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ft(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ht].delete(e)}setupStore(t,e){this[Ht].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ht].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Wt].has(t.store):this[Wt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Wt].set(t,e.subscribe((()=>this.updateFromStores()))),Ft(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Lt].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Wt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Lt].forEach((t=>t())),this[Lt]=[]}unsubscribeFromStore(t){this[Wt].has(t)&&this[Wt].get(t)(),this[Wt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Vt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[Te]}function qt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Me}(t)||Array.isArray(t)||!!t[Ie]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ie])||te(t)||ee(t))}function Gt(t,e,i){void 0===i&&(i=!1),0===Jt(t)?(i?Object.keys:Ae)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function Jt(t){var e=t[Te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:te(t)?2:ee(t)?3:0}function Xt(t,e){return 2===Jt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Yt(t,e,i){var o=Jt(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function Qt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function te(t){return Ce&&t instanceof Map}function ee(t){return Re&&t instanceof Set}function ie(t){return t.o||t.t}function oe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ue(t);delete e[Te];for(var i=Ae(e),o=0;o<i.length;o++){var n=i[o],r=e[n];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[n]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function ne(t,e){return void 0===e&&(e=!1),se(t)||Kt(t)||!qt(t)||(Jt(t)>1&&(t.set=t.add=t.clear=t.delete=re),Object.freeze(t),e&&Gt(t,(function(t,e){return ne(e,!0)}),!0)),t}function re(){Vt(2)}function se(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ae(t){var e=ze[t];return e||Vt(18,t),e}function le(){return Ee}function ce(t,e){e&&(ae("Patches"),t.u=[],t.s=[],t.v=e)}function de(t){he(t),t.p.forEach(ue),t.p=null}function he(t){t===Ee&&(Ee=t.l)}function fe(t){return Ee={p:[],l:Ee,h:t,m:!0,_:0}}function ue(t){var e=t[Te];0===e.i||1===e.i?e.j():e.g=!0}function pe(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||ae("ES5").S(e,t,o),o?(i[Te].P&&(de(e),Vt(4)),qt(t)&&(t=ve(e,t),e.l||ge(e,t)),e.u&&ae("Patches").M(i[Te].t,t,e.u,e.s)):t=ve(e,i,[]),de(e),e.u&&e.v(e.u,e.s),t!==Ne?t:void 0}function ve(t,e,i){if(se(e))return e;var o=e[Te];if(!o)return Gt(e,(function(n,r){return be(t,o,e,n,r,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return ge(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=4===o.i||5===o.i?o.o=oe(o.k):o.o,r=n,s=!1;3===o.i&&(r=new Set(n),n.clear(),s=!0),Gt(r,(function(e,r){return be(t,o,n,e,r,i,s)})),ge(t,n,!1),i&&t.u&&ae("Patches").N(o,i,t.u,t.s)}return o.o}function be(t,e,i,o,n,r,s){if(Kt(n)){var a=ve(t,n,r&&e&&3!==e.i&&!Xt(e.R,o)?r.concat(o):void 0);if(Yt(i,o,a),!Kt(a))return;t.m=!1}else s&&i.add(n);if(qt(n)&&!se(n)){if(!t.h.D&&t._<1)return;ve(t,n),e&&e.A.l||ge(t,n)}}function ge(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ne(e,i)}function ye(t,e){var i=t[Te];return(i?ie(i):t)[e]}function xe(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function me(t){t.P||(t.P=!0,t.l&&me(t.l))}function we(t){t.o||(t.o=oe(t.t))}function $e(t,e,i){var o=te(e)?ae("MapSet").F(e,i):ee(e)?ae("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:le(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=o,r=Fe;i&&(n=[o],r=De);var s=Proxy.revocable(n,r),a=s.revoke,l=s.proxy;return o.k=l,o.j=a,l}(e,i):ae("ES5").J(e,i);return(i?i.A:le()).p.push(o),o}function Se(t){return Kt(t)||Vt(22,t),function t(e){if(!qt(e))return e;var i,o=e[Te],n=Jt(e);if(o){if(!o.P&&(o.i<4||!ae("ES5").K(o)))return o.t;o.I=!0,i=ke(e,n),o.I=!1}else i=ke(e,n);return Gt(i,(function(e,n){o&&function(t,e){return 2===Jt(t)?t.get(e):t[e]}(o.t,e)===n||Yt(i,e,t(n))})),3===n?new Set(i):i}(t)}function ke(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return oe(t)}Dt=Wt,Pt=Ht,Bt=Lt;var Oe,Ee,_e="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ce="undefined"!=typeof Map,Re="undefined"!=typeof Set,je="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=_e?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Ie=_e?Symbol.for("immer-draftable"):"__$immer_draftable",Te=_e?Symbol.for("immer-state"):"__$immer_state",Me=""+Object.prototype.constructor,Ae="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ue=Object.getOwnPropertyDescriptors||function(t){var e={};return Ae(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},ze={},Fe={get:function(t,e){if(e===Te)return t;var i=ie(t);if(!Xt(i,e))return function(t,e,i){var o,n=xe(e,i);return n?"value"in n?n.value:null===(o=n.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!qt(o)?o:o===ye(t.t,e)?(we(t),t.o[e]=$e(t.A.h,o,t)):o},has:function(t,e){return e in ie(t)},ownKeys:function(t){return Reflect.ownKeys(ie(t))},set:function(t,e,i){var o=xe(ie(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var n=ye(ie(t),e),r=null==n?void 0:n[Te];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Qt(i,n)&&(void 0!==i||Xt(t.t,e)))return!0;we(t),me(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ye(t.t,e)||e in t.t?(t.R[e]=!1,we(t),me(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=ie(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){Vt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Vt(12)}},De={};Gt(Fe,(function(t,e){De[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),De.deleteProperty=function(t,e){return De.set.call(this,t,e,void 0)},De.set=function(t,e,i){return Fe.set.call(this,t[0],e,i,t[0])};var Pe=function(){function t(t){var e=this;this.O=je,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var n=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=n);for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Vt(6),void 0!==o&&"function"!=typeof o&&Vt(7),qt(t)){var a=fe(e),l=$e(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?de(a):he(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ce(a,o),pe(t,a)}),(function(t){throw de(a),t})):(ce(a,o),pe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ne&&(s=void 0),e.D&&ne(s,!0),o){var d=[],h=[];ae("Patches").M(t,s,d,h),o(d,h)}return s}Vt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(n))}))};var o,n,r=e.produce(t,i,(function(t,e){o=t,n=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,o,n]})):[r,o,n]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){qt(t)||Vt(8),Kt(t)&&(t=Se(t));var e=fe(this),i=$e(this,t,void 0);return i[Te].C=!0,he(e),i},e.finishDraft=function(t,e){var i=(t&&t[Te]).A;return ce(i,e),pe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!je&&Vt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var n=ae("Patches").$;return Kt(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Be=new Pe,Le=Be.produce;function We(t){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},We(t)}function He(t){var e=function(t,e){if("object"!==We(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==We(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===We(e)?e:String(e)}function Ze(t,e,i){return(e=He(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ve(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function Ke(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(i),!0).forEach((function(e){Ze(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ve(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function qe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Be.produceWithPatches.bind(Be),Be.setAutoFreeze.bind(Be),Be.setUseProxies.bind(Be),Be.applyPatches.bind(Be),Be.createDraft.bind(Be),Be.finishDraft.bind(Be);var Ge="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xe={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function Ye(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(qe(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(qe(1));return i(Ye)(t,e)}if("function"!=typeof t)throw new Error(qe(2));var n=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function d(){if(l)throw new Error(qe(3));return r}function h(t){if("function"!=typeof t)throw new Error(qe(4));if(l)throw new Error(qe(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(qe(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(qe(7));if(void 0===t.type)throw new Error(qe(8));if(l)throw new Error(qe(9));try{l=!0,r=n(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:Xe.INIT}),(o={dispatch:f,subscribe:h,getState:d,replaceReducer:function(t){if("function"!=typeof t)throw new Error(qe(10));n=t,f({type:Xe.REPLACE})}})[Ge]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(qe(11));function i(){t.next&&t.next(d())}return i(),{unsubscribe:e(i)}}})[Ge]=function(){return this},t},o}function Qe(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var n=e[o];"function"==typeof t[n]&&(i[n]=t[n])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Xe.INIT}))throw new Error(qe(12));if(void 0===i(void 0,{type:Xe.PROBE_UNKNOWN_ACTION()}))throw new Error(qe(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var o=!1,n={},a=0;a<s.length;a++){var l=s[a],c=i[l],d=t[l],h=c(d,e);if(void 0===h)throw e&&e.type,new Error(qe(14));n[l]=h,o=o||h!==d}return(o=o||s.length!==Object.keys(t).length)?n:t}}function ti(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ei(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(qe(15))},n={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},r=e.map((function(t){return t(n)}));return o=ti.apply(void 0,r)(i.dispatch),Ke(Ke({},i),{},{dispatch:o})}}}function ii(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(n){return"function"==typeof n?n(i,o,t):e(n)}}}}var oi=ii();oi.withExtraArgument=ii;var ni,ri=oi,si=(ni=function(t,e){return ni=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ni(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ni(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ai=function(t,e){var i,o,n,r,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},li=function(t,e){for(var i=0,o=e.length,n=t.length;i<o;i++,n++)t[n]=e[i];return t},ci=Object.defineProperty,di=Object.defineProperties,hi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,vi=function(t,e,i){return e in t?ci(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},bi=function(t,e){for(var i in e||(e={}))ui.call(e,i)&&vi(t,i,e[i]);if(fi)for(var o=0,n=fi(e);o<n.length;o++){i=n[o];pi.call(e,i)&&vi(t,i,e[i])}return t},gi=function(t,e){return di(t,hi(e))},yi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ti:ti.apply(null,arguments)};var xi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return si(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array),mi=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return si(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,li([void 0],t[0].concat(this)))):new(e.bind.apply(e,li([void 0],t.concat(this))))},e}(Array);function wi(t){return qt(t)?Le(t,(function(){})):t}function $i(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new xi;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(ri.withExtraArgument(i.extraArgument)):o.push(ri));return o}(t)}}function Si(t){var e,i=$i(),o=t||{},n=o.reducer,r=void 0===n?void 0:n,s=o.middleware,a=void 0===s?i():s,l=o.devTools,c=void 0===l||l,d=o.preloadedState,h=void 0===d?void 0:d,f=o.enhancers,u=void 0===f?void 0:f;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Qe(r)}var p=a;"function"==typeof p&&(p=p(i));var v=ei.apply(void 0,p),b=ti;c&&(b=yi(bi({trace:!1},"object"==typeof c&&c)));var g=new mi(v),y=g;return Array.isArray(u)?y=li([v],u):"function"==typeof u&&(y=u(g)),Ye(e,h,b.apply(void 0,y))}function ki(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return bi(bi({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Oi(t){var e,i={},o=[],n={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,n},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[i,o,e]}function Ei(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:wi(t.initialState),n=t.reducers||{},r=Object.keys(n),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Oi(t.extraReducers):[t.extraReducers],i=e[0],n=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,d=bi(bi({},n),a);return function(t,e,i,o){void 0===i&&(i=[]);var n,r="function"==typeof e?Oi(e):[e,i,o],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))n=function(){return wi(t())};else{var c=wi(t);n=function(){return c}}function d(t,e){void 0===t&&(t=n());var i=li([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(Kt(t))return void 0===(o=i(t,e))?t:o;if(qt(t))return Le(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return d.getInitialState=n,d}(o,(function(t){for(var e in d)t.addCase(e,d[e]);for(var i=0,o=s;i<o.length;i++){var n=o[i];t.addMatcher(n.matcher,n.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,o,r=n[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,o=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=o?ki(c,o):ki(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var _i=["name","message","stack","code"],Ci=function(t,e){this.payload=t,this.meta=e},Ri=function(t,e){this.payload=t,this.meta=e},ji=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=_i;i<o.length;i++){var n=o[i];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function Ni(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=ki(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:gi(bi({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),n=ki(t+"/pending",(function(t,e,i){return{payload:void 0,meta:gi(bi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=ki(t+"/rejected",(function(t,e,o,n,r){return{payload:n,error:(i&&i.serializeError||ji)(t||"Rejected"),meta:gi(bi({},r||{}),{arg:o,requestId:e,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var d,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),f=new s;function u(t){d=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,g,y;return ai(this,(function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(m=b)||"object"!=typeof m||"function"!=typeof m.then?[3,2]:[4,b];case 1:b=x.sent(),x.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:d||"Aborted"})}))})),a(n(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:f.signal,abort:u,rejectWithValue:function(t,e){return new Ci(t,e)},fulfillWithValue:function(t,e){return new Ri(t,e)}})).then((function(e){if(e instanceof Ci)throw e;return e instanceof Ri?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return v=x.sent(),[3,5];case 4:return y=x.sent(),v=y instanceof Ci?r(null,h,t,y.payload,y.meta):r(y,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var m}))},new Promise((function(t,e){var i=function(t){try{n(v.next(t))}catch(t){e(t)}},o=function(t){try{n(v.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};n((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Ni)}})}}),{pending:n,rejected:r,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Ii="listenerMiddleware";ki(Ii+"/add"),ki(Ii+"/removeAll"),ki(Ii+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=n[t];return i?i.enumerable=e:n[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Te];return Fe.get(e,t)},set:function(e){var i=this[Te];Fe.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Te];if(!n.P)switch(n.i){case 5:o(n)&&me(n);break;case 4:i(n)&&me(n)}}}function i(t){for(var e=t.t,i=t.k,o=Ae(i),n=o.length-1;n>=0;n--){var r=o[n];if(r!==Te){var s=e[r];if(void 0===s&&!Xt(e,r))return!0;var a=i[r],l=a&&a[Te];if(l?l.t!==s:!Qt(a,s))return!0}}var c=!!e[Te];return o.length!==Ae(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var n={};!function(t,e){ze[t]||(ze[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),n=function(e,i){if(e){for(var o=Array(i.length),n=0;n<i.length;n++)Object.defineProperty(o,""+n,t(n,!0));return o}var r=Ue(i);delete r[Te];for(var s=Ae(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(o,e),r={i:o?5:4,A:i?i.A:le(),P:!1,I:!1,R:{},l:i,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Te,{value:r,writable:!0}),n},S:function(t,i,n){n?Kt(i)&&i[Te].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Te];if(i){var n=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Gt(r,(function(e){e!==Te&&(void 0!==n[e]||Xt(n,e)?s[e]||t(r[e]):(s[e]=!0,me(i)))})),Gt(n,(function(t){void 0!==r[t]||Xt(r,t)||(s[t]=!1,me(i))}));else if(5===a){if(o(i)&&(me(i),s.length=!0),r.length<n.length)for(var l=r.length;l<n.length;l++)s[l]=!1;else for(var c=n.length;c<r.length;c++)s[c]=!0;for(var d=Math.min(r.length,n.length),h=0;h<d;h++)r.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(r[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ti{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,n=window.ftReduxStores[i];if(Ft(n))return n;if(null==o)return;const r=Ei({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),s=Si({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Ti(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,n=t[o];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Mi=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const n={hasChanged:(t,e)=>!p(t,e),attribute:!1,...e};s(n)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};var Ai,Ui,zi;const Fi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(zi=null===(Ui=null===(Ai=window.safari)||void 0===Ai?void 0:Ai.pushNotification)||void 0===Ui?void 0:Ui.toString())&&void 0!==zi?zi:"");var Di=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 Pi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Bi=Symbol("registerInterval");class Li extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Bi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Bi]):this.dispatchEvent(new Pi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Bi,Di([a()],i.prototype,"stateManager",void 0),i}(Zt)){}const Wi=kt.extend("--ft-ripple-color",Et.colorContent),Hi={color:Wi,backgroundColor:kt.extend("--ft-ripple-background-color",Wi),opacityContentOnSurfacePressed:kt.external(Et.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:kt.external(Et.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:kt.external(Et.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:kt.external(Et.opacityContentOnSurfaceSelected,"Design system"),borderRadius:kt.create("--ft-ripple-border-radius","SIZE","0px")},Zi=kt.extend("--ft-ripple-color",Et.colorPrimary),Vi=Zi,Ki=kt.extend("--ft-ripple-background-color",Zi),qi=kt.extend("--ft-ripple-color",Et.colorSecondary),Gi=qi,Ji=kt.extend("--ft-ripple-background-color",qi),Xi=S`
|
|
102
102
|
:host {
|
|
103
103
|
display: contents;
|
|
104
104
|
}
|
|
@@ -188,7 +188,7 @@ var mt,wt;let $t=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
188
188
|
opacity: ${Hi.opacityContentOnSurfacePressed};
|
|
189
189
|
transform: translate(-50%, -50%) scale(1);
|
|
190
190
|
}
|
|
191
|
-
`,Yi=kt.extend("--ft-typography-font-family",Et.titleFont),Qi=kt.extend("--ft-typography-font-family",Et.contentFont),to={fontFamily:Qi,fontSize:kt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:kt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:kt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:kt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:kt.create("--ft-typography-text-transform","UNKNOWN","inherit")},eo={fontFamily:kt.extend("--ft-typography-title-font-family",Yi),fontSize:kt.extend("--ft-typography-title-font-size",to.fontSize,"20px"),fontWeight:kt.extend("--ft-typography-title-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-title-letter-spacing",to.letterSpacing,"0.15px"),lineHeight:kt.extend("--ft-typography-title-line-height",to.lineHeight,"1.2"),textTransform:kt.extend("--ft-typography-title-text-transform",to.textTransform,"inherit")},io={fontFamily:kt.extend("--ft-typography-title-dense-font-family",Yi),fontSize:kt.extend("--ft-typography-title-dense-font-size",to.fontSize,"14px"),fontWeight:kt.extend("--ft-typography-title-dense-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-title-dense-letter-spacing",to.letterSpacing,"0.105px"),lineHeight:kt.extend("--ft-typography-title-dense-line-height",to.lineHeight,"1.7"),textTransform:kt.extend("--ft-typography-title-dense-text-transform",to.textTransform,"inherit")},oo=kt.extend("--ft-typography-subtitle1-font-family",Qi),no=kt.extend("--ft-typography-subtitle1-font-size",to.fontSize,"16px"),ro=kt.extend("--ft-typography-subtitle1-font-weight",to.fontWeight,"600"),so=kt.extend("--ft-typography-subtitle1-letter-spacing",to.letterSpacing,"0.144px"),ao=kt.extend("--ft-typography-subtitle1-line-height",to.lineHeight,"1.5"),lo=kt.extend("--ft-typography-subtitle1-text-transform",to.textTransform,"inherit"),co=kt.extend("--ft-typography-subtitle2-font-family",Qi),ho=kt.extend("--ft-typography-subtitle2-font-size",to.fontSize,"14px"),fo=kt.extend("--ft-typography-subtitle2-font-weight",to.fontWeight,"normal"),uo=kt.extend("--ft-typography-subtitle2-letter-spacing",to.letterSpacing,"0.098px"),po=kt.extend("--ft-typography-subtitle2-line-height",to.lineHeight,"1.7"),vo=kt.extend("--ft-typography-subtitle2-text-transform",to.textTransform,"inherit"),bo={fontFamily:kt.extend("--ft-typography-body1-font-family",Qi),fontSize:kt.extend("--ft-typography-body1-font-size",to.fontSize,"16px"),fontWeight:kt.extend("--ft-typography-body1-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-body1-letter-spacing",to.letterSpacing,"0.496px"),lineHeight:kt.extend("--ft-typography-body1-line-height",to.lineHeight,"1.5"),textTransform:kt.extend("--ft-typography-body1-text-transform",to.textTransform,"inherit")},go=kt.extend("--ft-typography-body2-font-family",Qi),yo=kt.extend("--ft-typography-body2-font-size",to.fontSize,"14px"),xo=kt.extend("--ft-typography-body2-font-weight",to.fontWeight,"normal"),mo=kt.extend("--ft-typography-body2-letter-spacing",to.letterSpacing,"0.252px"),wo=kt.extend("--ft-typography-body2-line-height",to.lineHeight,"1.4"),$o=kt.extend("--ft-typography-body2-text-transform",to.textTransform,"inherit"),So={fontFamily:kt.extend("--ft-typography-caption-font-family",Qi),fontSize:kt.extend("--ft-typography-caption-font-size",to.fontSize,"12px"),fontWeight:kt.extend("--ft-typography-caption-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-caption-letter-spacing",to.letterSpacing,"0.396px"),lineHeight:kt.extend("--ft-typography-caption-line-height",to.lineHeight,"1.33"),textTransform:kt.extend("--ft-typography-caption-text-transform",to.textTransform,"inherit")},ko=kt.extend("--ft-typography-breadcrumb-font-family",Qi),Oo=kt.extend("--ft-typography-breadcrumb-font-size",to.fontSize,"10px"),Eo=kt.extend("--ft-typography-breadcrumb-font-weight",to.fontWeight,"normal"),_o=kt.extend("--ft-typography-breadcrumb-letter-spacing",to.letterSpacing,"0.33px"),Co=kt.extend("--ft-typography-breadcrumb-line-height",to.lineHeight,"1.6"),Ro=kt.extend("--ft-typography-breadcrumb-text-transform",to.textTransform,"inherit"),jo=kt.extend("--ft-typography-overline-font-family",Qi),No=kt.extend("--ft-typography-overline-font-size",to.fontSize,"10px"),Io=kt.extend("--ft-typography-overline-font-weight",to.fontWeight,"normal"),To=kt.extend("--ft-typography-overline-letter-spacing",to.letterSpacing,"1.5px"),
|
|
191
|
+
`,Yi=kt.extend("--ft-typography-font-family",Et.titleFont),Qi=kt.extend("--ft-typography-font-family",Et.contentFont),to={fontFamily:Qi,fontSize:kt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:kt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:kt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:kt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:kt.create("--ft-typography-text-transform","UNKNOWN","inherit")},eo={fontFamily:kt.extend("--ft-typography-title-font-family",Yi),fontSize:kt.extend("--ft-typography-title-font-size",to.fontSize,"20px"),fontWeight:kt.extend("--ft-typography-title-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-title-letter-spacing",to.letterSpacing,"0.15px"),lineHeight:kt.extend("--ft-typography-title-line-height",to.lineHeight,"1.2"),textTransform:kt.extend("--ft-typography-title-text-transform",to.textTransform,"inherit")},io={fontFamily:kt.extend("--ft-typography-title-dense-font-family",Yi),fontSize:kt.extend("--ft-typography-title-dense-font-size",to.fontSize,"14px"),fontWeight:kt.extend("--ft-typography-title-dense-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-title-dense-letter-spacing",to.letterSpacing,"0.105px"),lineHeight:kt.extend("--ft-typography-title-dense-line-height",to.lineHeight,"1.7"),textTransform:kt.extend("--ft-typography-title-dense-text-transform",to.textTransform,"inherit")},oo=kt.extend("--ft-typography-subtitle1-font-family",Qi),no=kt.extend("--ft-typography-subtitle1-font-size",to.fontSize,"16px"),ro=kt.extend("--ft-typography-subtitle1-font-weight",to.fontWeight,"600"),so=kt.extend("--ft-typography-subtitle1-letter-spacing",to.letterSpacing,"0.144px"),ao=kt.extend("--ft-typography-subtitle1-line-height",to.lineHeight,"1.5"),lo=kt.extend("--ft-typography-subtitle1-text-transform",to.textTransform,"inherit"),co=kt.extend("--ft-typography-subtitle2-font-family",Qi),ho=kt.extend("--ft-typography-subtitle2-font-size",to.fontSize,"14px"),fo=kt.extend("--ft-typography-subtitle2-font-weight",to.fontWeight,"normal"),uo=kt.extend("--ft-typography-subtitle2-letter-spacing",to.letterSpacing,"0.098px"),po=kt.extend("--ft-typography-subtitle2-line-height",to.lineHeight,"1.7"),vo=kt.extend("--ft-typography-subtitle2-text-transform",to.textTransform,"inherit"),bo={fontFamily:kt.extend("--ft-typography-body1-font-family",Qi),fontSize:kt.extend("--ft-typography-body1-font-size",to.fontSize,"16px"),fontWeight:kt.extend("--ft-typography-body1-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-body1-letter-spacing",to.letterSpacing,"0.496px"),lineHeight:kt.extend("--ft-typography-body1-line-height",to.lineHeight,"1.5"),textTransform:kt.extend("--ft-typography-body1-text-transform",to.textTransform,"inherit")},go=kt.extend("--ft-typography-body2-font-family",Qi),yo=kt.extend("--ft-typography-body2-font-size",to.fontSize,"14px"),xo=kt.extend("--ft-typography-body2-font-weight",to.fontWeight,"normal"),mo=kt.extend("--ft-typography-body2-letter-spacing",to.letterSpacing,"0.252px"),wo=kt.extend("--ft-typography-body2-line-height",to.lineHeight,"1.4"),$o=kt.extend("--ft-typography-body2-text-transform",to.textTransform,"inherit"),So={fontFamily:kt.extend("--ft-typography-caption-font-family",Qi),fontSize:kt.extend("--ft-typography-caption-font-size",to.fontSize,"12px"),fontWeight:kt.extend("--ft-typography-caption-font-weight",to.fontWeight,"normal"),letterSpacing:kt.extend("--ft-typography-caption-letter-spacing",to.letterSpacing,"0.396px"),lineHeight:kt.extend("--ft-typography-caption-line-height",to.lineHeight,"1.33"),textTransform:kt.extend("--ft-typography-caption-text-transform",to.textTransform,"inherit")},ko=kt.extend("--ft-typography-breadcrumb-font-family",Qi),Oo=kt.extend("--ft-typography-breadcrumb-font-size",to.fontSize,"10px"),Eo=kt.extend("--ft-typography-breadcrumb-font-weight",to.fontWeight,"normal"),_o=kt.extend("--ft-typography-breadcrumb-letter-spacing",to.letterSpacing,"0.33px"),Co=kt.extend("--ft-typography-breadcrumb-line-height",to.lineHeight,"1.6"),Ro=kt.extend("--ft-typography-breadcrumb-text-transform",to.textTransform,"inherit"),jo=kt.extend("--ft-typography-overline-font-family",Qi),No=kt.extend("--ft-typography-overline-font-size",to.fontSize,"10px"),Io=kt.extend("--ft-typography-overline-font-weight",to.fontWeight,"normal"),To=kt.extend("--ft-typography-overline-letter-spacing",to.letterSpacing,"1.5px"),Mo=kt.extend("--ft-typography-overline-line-height",to.lineHeight,"1.6"),Ao=kt.extend("--ft-typography-overline-text-transform",to.textTransform,"uppercase"),Uo={fontFamily:kt.extend("--ft-typography-button-font-family",Qi),fontSize:kt.extend("--ft-typography-button-font-size",to.fontSize,"14px"),fontWeight:kt.extend("--ft-typography-button-font-weight",to.fontWeight,"600"),letterSpacing:kt.extend("--ft-typography-button-letter-spacing",to.letterSpacing,"1.246px"),lineHeight:kt.extend("--ft-typography-button-line-height",to.lineHeight,"1.15"),textTransform:kt.extend("--ft-typography-button-text-transform",to.textTransform,"uppercase")},zo=S`
|
|
192
192
|
.ft-typography--title {
|
|
193
193
|
font-family: ${eo.fontFamily};
|
|
194
194
|
font-size: ${eo.fontSize};
|
|
@@ -267,8 +267,8 @@ var mt,wt;let $t=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
267
267
|
font-size: ${No};
|
|
268
268
|
font-weight: ${Io};
|
|
269
269
|
letter-spacing: ${To};
|
|
270
|
-
line-height: ${
|
|
271
|
-
text-transform: ${
|
|
270
|
+
line-height: ${Mo};
|
|
271
|
+
text-transform: ${Ao};
|
|
272
272
|
}
|
|
273
273
|
`,Vo=S`
|
|
274
274
|
.ft-typography--button {
|
|
@@ -537,7 +537,7 @@ var mt,wt;let $t=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
537
537
|
${Ot(qo.size,Qo.iconSize)};
|
|
538
538
|
${Ot(qo.color,"var(--ft-button-internal-color)")};
|
|
539
539
|
}
|
|
540
|
-
`,
|
|
540
|
+
`,At],ln={textColor:kt.extend("--ft-switch-text-color",Et.colorOnSurfaceHigh),backgroundColor:kt.extend("--ft-switch-background-color",Et.colorSurface),selectedTextColor:kt.extend("--ft-switch-selected-text-color",Et.colorPrimary),selectedBackgroundColor:kt.extend("--ft-switch-selected-background-color",Et.colorPrimary),borderColor:kt.extend("--ft-switch-border-color",Et.colorOutline),borderRadius:kt.extend("--ft-switch-border-radius",Et.borderRadiusL),fontSize:kt.extend("--ft-switch-font-size",Uo.fontSize),iconSize:kt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:kt.extend("--ft-switch-text-color",Et.colorOnSurfaceMedium),rippleColor:kt.extend("--ft-switch-ripple-color",Et.colorPrimary),outlineColor:kt.extend("--ft-switch-outline-color",Et.colorPrimary)},cn={feedbackInputMinWidth:kt.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:kt.external(Et.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:kt.extend("--ft-reader-feedback-send-feedback-color",Et.colorOnPrimary),sendFeedbackBackgroundColor:kt.extend("--ft-reader-feedback-send-feedback-background-color",Et.colorPrimary),filledRatingColor:kt.extend("--ft-reader-feedback-filled-rating-color",Et.colorPrimary),emptyRatingColor:kt.extend("--ft-reader-feedback-empty-rating-color",Et.colorOnSurfaceMedium),mainTitleFontSize:kt.external(eo.fontSize,"Typography"),sectionTitleFontSize:kt.external(io.fontSize,"Typography")},dn=S`
|
|
541
541
|
.ft-reader-feedback {
|
|
542
542
|
box-sizing: border-box;
|
|
543
543
|
display: flex;
|
|
@@ -615,7 +615,7 @@ var mt,wt;let $t=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
615
615
|
* @license
|
|
616
616
|
* Copyright 2020 Google LLC
|
|
617
617
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
618
|
-
*/,hn=Symbol.for(""),fn=t=>{if((null==t?void 0:t.r)===hn)return null==t?void 0:t._$litStatic$},un=t=>({_$litStatic$:t,r:hn}),pn=new Map,vn=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,c=0,d=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],n=fn(r));)l+=n+e[++c],d=!0;c!==o&&a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),d){const t=s.join("$$lit$$");void 0===(e=pn.get(t))&&(s.raw=s,pn.set(t,e=s)),i=a}return t(e,...i)})(it);var bn;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(bn||(bn={}));var gn=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 yn extends
|
|
618
|
+
*/,hn=Symbol.for(""),fn=t=>{if((null==t?void 0:t.r)===hn)return null==t?void 0:t._$litStatic$},un=t=>({_$litStatic$:t,r:hn}),pn=new Map,vn=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,c=0,d=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],n=fn(r));)l+=n+e[++c],d=!0;c!==o&&a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),d){const t=s.join("$$lit$$");void 0===(e=pn.get(t))&&(s.raw=s,pn.set(t,e=s)),i=a}return t(e,...i)})(it);var bn;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(bn||(bn={}));var gn=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 yn extends Mt{constructor(){super(...arguments),this.variant=bn.body1}render(){return this.element?vn`
|
|
619
619
|
<${un(this.element)}
|
|
620
620
|
class="ft-typography ft-typography--${this.variant}">
|
|
621
621
|
<slot></slot>
|
|
@@ -633,15 +633,14 @@ const xn=1,mn=2,wn=t=>(...e)=>({_$litDirective$:t,values:e});class $n{constructo
|
|
|
633
633
|
* @license
|
|
634
634
|
* Copyright 2017 Google LLC
|
|
635
635
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
636
|
-
*/class Sn extends $n{constructor(t){if(super(t),this.et=nt,t.type!==mn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.ft=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Sn.directiveName="unsafeHTML",Sn.resultType=1;const kn=wn(Sn);var On,En,_n;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(On||(On={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(En||(En={})),new Map([...["abw"].map((t=>[t,En.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,En.AUDIO])),...["avi"].map((t=>[t,En.AVI])),...["chm","xhs"].map((t=>[t,En.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,En.CODE])),...["csv"].map((t=>[t,En.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,En.DITA])),...["epub"].map((t=>[t,En.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,En.EXCEL])),...["flac"].map((t=>[t,En.FLAC])),...["gif"].map((t=>[t,En.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,En.GZIP])),...["html","htm","xhtml"].map((t=>[t,En.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,En.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,En.JPEG])),...["json"].map((t=>[t,En.JSON])),...["m4a","m4p"].map((t=>[t,En.M4A])),...["mov","qt"].map((t=>[t,En.MOV])),...["mp3"].map((t=>[t,En.MP3])),...["mp4","m4v"].map((t=>[t,En.MP4])),...["ogg","oga"].map((t=>[t,En.OGG])),...["pdf","ps"].map((t=>[t,En.PDF])),...["png"].map((t=>[t,En.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,En.POWERPOINT])),...["rar"].map((t=>[t,En.RAR])),...["stp"].map((t=>[t,En.STP])),...["txt","rtf","md","mdown"].map((t=>[t,En.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,En.VIDEO])),...["wav"].map((t=>[t,En.WAV])),...["wma"].map((t=>[t,En.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,En.WORD])),...["xml","xsl","rdf"].map((t=>[t,En.XML])),...["yaml","yml","x-yaml"].map((t=>[t,En.YAML])),...["zip"].map((t=>[t,En.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(_n||(_n={}));var Cn=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 Rn extends
|
|
636
|
+
*/class Sn extends $n{constructor(t){if(super(t),this.et=nt,t.type!==mn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.ft=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Sn.directiveName="unsafeHTML",Sn.resultType=1;const kn=wn(Sn);var On,En,_n;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(On||(On={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(En||(En={})),new Map([...["abw"].map((t=>[t,En.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,En.AUDIO])),...["avi"].map((t=>[t,En.AVI])),...["chm","xhs"].map((t=>[t,En.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,En.CODE])),...["csv"].map((t=>[t,En.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,En.DITA])),...["epub"].map((t=>[t,En.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,En.EXCEL])),...["flac"].map((t=>[t,En.FLAC])),...["gif"].map((t=>[t,En.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,En.GZIP])),...["html","htm","xhtml"].map((t=>[t,En.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,En.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,En.JPEG])),...["json"].map((t=>[t,En.JSON])),...["m4a","m4p"].map((t=>[t,En.M4A])),...["mov","qt"].map((t=>[t,En.MOV])),...["mp3"].map((t=>[t,En.MP3])),...["mp4","m4v"].map((t=>[t,En.MP4])),...["ogg","oga"].map((t=>[t,En.OGG])),...["pdf","ps"].map((t=>[t,En.PDF])),...["png"].map((t=>[t,En.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,En.POWERPOINT])),...["rar"].map((t=>[t,En.RAR])),...["stp"].map((t=>[t,En.STP])),...["txt","rtf","md","mdown"].map((t=>[t,En.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,En.VIDEO])),...["wav"].map((t=>[t,En.WAV])),...["wma"].map((t=>[t,En.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,En.WORD])),...["xml","xsl","rdf"].map((t=>[t,En.XML])),...["yaml","yml","x-yaml"].map((t=>[t,En.YAML])),...["zip"].map((t=>[t,En.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(_n||(_n={}));var Cn=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 Rn extends Mt{constructor(){super(...arguments),this.resolvedIcon=nt}render(){const t=this.variant&&Object.values(_n).includes(this.variant)?this.variant:_n.fluid_topics,e=t!==_n.material||!!this.value;return it`
|
|
637
637
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
638
638
|
${kn(this.resolvedIcon)}
|
|
639
639
|
<slot ?hidden=${e}></slot>
|
|
640
640
|
</i>
|
|
641
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case _n.file_format:this.resolvedIcon=null!==(t=En[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case _n.material:this.resolvedIcon=this.value||nt;break;default:this.resolvedIcon=null!==(e=On[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Rn.elementDefinitions={},Rn.styles=Xo,Cn([s()],Rn.prototype,"variant",void 0),Cn([s()],Rn.prototype,"value",void 0),Cn([a()],Rn.prototype,"resolvedIcon",void 0),Cn([c("slot")],Rn.prototype,"slottedContent",void 0),v("ft-icon")(Rn);const jn=kt.create("--ft-tooltip-distance","SIZE","4px"),Nn=kt.create("--ft-tooltip-color","COLOR","#FFFFFF"),In=kt.create("--ft-tooltip-background-color","COLOR","#666666"),Tn=kt.create("--ft-tooltip-z-index","NUMBER","1"),
|
|
641
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case _n.file_format:this.resolvedIcon=null!==(t=En[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case _n.material:this.resolvedIcon=this.value||nt;break;default:this.resolvedIcon=null!==(e=On[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Rn.elementDefinitions={},Rn.styles=Xo,Cn([s()],Rn.prototype,"variant",void 0),Cn([s()],Rn.prototype,"value",void 0),Cn([a()],Rn.prototype,"resolvedIcon",void 0),Cn([c("slot")],Rn.prototype,"slottedContent",void 0),v("ft-icon")(Rn);const jn=kt.create("--ft-tooltip-distance","SIZE","4px"),Nn=kt.create("--ft-tooltip-color","COLOR","#FFFFFF"),In=kt.create("--ft-tooltip-background-color","COLOR","#666666"),Tn=kt.create("--ft-tooltip-z-index","NUMBER","1"),Mn=kt.external(Et.borderRadiusS,"Design system"),An=kt.create("--ft-tooltip-max-width","SIZE","150px"),Un=S`
|
|
642
642
|
.ft-tooltip--container {
|
|
643
643
|
display: block;
|
|
644
|
-
position: relative;
|
|
645
644
|
}
|
|
646
645
|
|
|
647
646
|
.ft-tooltip--inline {
|
|
@@ -654,7 +653,7 @@ const xn=1,mn=2,wn=t=>(...e)=>({_$litDirective$:t,values:e});class $n{constructo
|
|
|
654
653
|
box-sizing: border-box;
|
|
655
654
|
overflow: hidden;
|
|
656
655
|
width: max-content;
|
|
657
|
-
max-width: ${
|
|
656
|
+
max-width: ${An};
|
|
658
657
|
text-align: center;
|
|
659
658
|
padding: ${jn};
|
|
660
659
|
z-index: ${Tn};
|
|
@@ -662,15 +661,13 @@ const xn=1,mn=2,wn=t=>(...e)=>({_$litDirective$:t,values:e});class $n{constructo
|
|
|
662
661
|
|
|
663
662
|
.ft-tooltip--content {
|
|
664
663
|
padding: 4px 8px;
|
|
665
|
-
border-radius: ${
|
|
664
|
+
border-radius: ${Mn};
|
|
666
665
|
background-color: ${In};
|
|
667
666
|
color: ${Nn};
|
|
668
|
-
top: -500px;
|
|
669
|
-
left: -500px;
|
|
670
667
|
position: relative;
|
|
671
668
|
word-break: break-word;
|
|
672
669
|
}
|
|
673
|
-
`;var zn=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 Fn extends
|
|
670
|
+
`;var zn=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 Fn extends Mt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return it`
|
|
674
671
|
<div part="container"
|
|
675
672
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
676
673
|
@mouseenter=${this.onHover}
|
|
@@ -688,13 +685,13 @@ const xn=1,mn=2,wn=t=>(...e)=>({_$litDirective$:t,values:e});class $n{constructo
|
|
|
688
685
|
</div>
|
|
689
686
|
</div>
|
|
690
687
|
</div>
|
|
691
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=
|
|
688
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,n=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.validPosition){case"top":s=t.offsetTop-i,r=t.offsetLeft+n;break;case"bottom":s=t.offsetTop+t.offsetHeight,r=t.offsetLeft+n;break;case"left":s=t.offsetTop+o,r=t.offsetLeft-e;break;case"right":s=t.offsetTop+o,r=t.offsetLeft+t.offsetWidth}const a=this.tooltip.style;a.left=this.limitValueBetween(r,0,window.innerWidth-e)+"px",a.top=this.limitValueBetween(s,0,window.innerHeight-i)+"px",a.maxWidth=`max(${t.offsetWidth}px, ${An})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}limitValueBetween(t,e,i){return Math.max(e,Math.min(t,i))}}Fn.elementDefinitions={"ft-typography":yn},Fn.styles=Un,zn([s()],Fn.prototype,"text",void 0),zn([s({type:Boolean})],Fn.prototype,"manual",void 0),zn([s({type:Boolean})],Fn.prototype,"inline",void 0),zn([s({type:Number})],Fn.prototype,"delay",void 0),zn([s()],Fn.prototype,"position",void 0),zn([u("",!0)],Fn.prototype,"slotNodes",void 0),zn([c(".ft-tooltip--container")],Fn.prototype,"container",void 0),zn([c(".ft-tooltip")],Fn.prototype,"tooltip",void 0),zn([c(".ft-tooltip--content")],Fn.prototype,"tooltipContent",void 0),zn([a()],Fn.prototype,"visible",void 0),v("ft-tooltip")(Fn);
|
|
692
689
|
/**
|
|
693
690
|
* @license
|
|
694
691
|
* Copyright 2018 Google LLC
|
|
695
692
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
696
693
|
*/
|
|
697
|
-
const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return ot}});var Pn=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 Bn extends
|
|
694
|
+
const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return ot}});var Pn=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 Bn extends Mt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new n(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new n(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return it`
|
|
698
695
|
<style>
|
|
699
696
|
.ft-ripple .ft-ripple--effect,
|
|
700
697
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -795,7 +792,7 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
795
792
|
.ft-switch-option--selected ft-icon {
|
|
796
793
|
color: ${ln.selectedTextColor};
|
|
797
794
|
}
|
|
798
|
-
`;var Hn=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 Zn extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Vn extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Kn extends
|
|
795
|
+
`;var Hn=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 Zn extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Vn extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Kn extends Mt{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Vn(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(it`
|
|
799
796
|
<label part="label" for="input" class=${Dn(t)}
|
|
800
797
|
@click=${this.onChange}>
|
|
801
798
|
<div class="ft-switch-option--content">
|
|
@@ -819,7 +816,7 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
819
816
|
</ft-tooltip>
|
|
820
817
|
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Zn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?it`
|
|
821
818
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
822
|
-
`:nt}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Kn.elementDefinitions={"ft-ripple":Bn,"ft-typography":yn,"ft-tooltip":Fn,"ft-icon":Rn},Kn.styles=[Ut,Wn],Hn([s()],Kn.prototype,"value",void 0),Hn([s()],Kn.prototype,"icon",void 0),Hn([s()],Kn.prototype,"iconVariant",void 0),Hn([s()],Kn.prototype,"label",void 0),Hn([s()],Kn.prototype,"tooltipPosition",void 0),Hn([s({type:Boolean,reflect:!0})],Kn.prototype,"selected",void 0),Hn([s({type:Boolean})],Kn.prototype,"trailingIcon",void 0),Hn([s({type:Boolean})],Kn.prototype,"unselectable",void 0),Hn([c(".ft-switch-option--content slot")],Kn.prototype,"slottedContent",void 0),Hn([c(".ft-switch-option--input")],Kn.prototype,"input",void 0);var qn=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 Gn extends CustomEvent{constructor(t){super("change",{detail:t})}}class Jn extends
|
|
819
|
+
`:nt}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Kn.elementDefinitions={"ft-ripple":Bn,"ft-typography":yn,"ft-tooltip":Fn,"ft-icon":Rn},Kn.styles=[Ut,Wn],Hn([s()],Kn.prototype,"value",void 0),Hn([s()],Kn.prototype,"icon",void 0),Hn([s()],Kn.prototype,"iconVariant",void 0),Hn([s()],Kn.prototype,"label",void 0),Hn([s()],Kn.prototype,"tooltipPosition",void 0),Hn([s({type:Boolean,reflect:!0})],Kn.prototype,"selected",void 0),Hn([s({type:Boolean})],Kn.prototype,"trailingIcon",void 0),Hn([s({type:Boolean})],Kn.prototype,"unselectable",void 0),Hn([c(".ft-switch-option--content slot")],Kn.prototype,"slottedContent",void 0),Hn([c(".ft-switch-option--input")],Kn.prototype,"input",void 0);var qn=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 Gn extends CustomEvent{constructor(t){super("change",{detail:t})}}class Jn extends Mt{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){super.updated(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return it`
|
|
823
820
|
<div @keydown=${this.onKeyDown} tabindex="0" class="${Dn(t)}">
|
|
824
821
|
<slot @slotchange=${this.onSlotchange}
|
|
825
822
|
@option-change=${this.onOptionChangeByScript}
|
|
@@ -878,7 +875,7 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
878
875
|
.ft-resizer:hover ft-icon {
|
|
879
876
|
color: ${Yn};
|
|
880
877
|
}
|
|
881
|
-
`;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 CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class ir extends
|
|
878
|
+
`;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 CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class ir extends Mt{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=_n.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return it`
|
|
882
879
|
<style>
|
|
883
880
|
.ft-resizer {
|
|
884
881
|
cursor: ${$(this.cursor)}
|
|
@@ -889,7 +886,7 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
889
886
|
@touchstart=${this.initDragFromTouch}>
|
|
890
887
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
891
888
|
</div>
|
|
892
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new er(i,o))}}ir.elementDefinitions={"ft-icon":Rn},ir.styles=[
|
|
889
|
+
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new er(i,o))}}ir.elementDefinitions={"ft-icon":Rn},ir.styles=[At,Qn],tr([s({type:Number})],ir.prototype,"initialWidth",void 0),tr([s({type:Number})],ir.prototype,"initialHeight",void 0),tr([s()],ir.prototype,"icon",void 0),tr([s()],ir.prototype,"iconVariant",void 0),tr([s()],ir.prototype,"cursor",void 0),tr([a()],ir.prototype,"dragging",void 0),v("ft-resizer")(ir);const or={fontSize:kt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:kt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:kt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:kt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:kt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:kt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:kt.extend("--ft-input-label-border-color",Et.colorOutline),textColor:kt.extend("--ft-input-label-text-color",Et.colorOnSurfaceMedium),disabledTextColor:kt.extend("--ft-input-label-disabled-text-color",Et.colorOnSurfaceDisabled),colorSurface:kt.external(Et.colorSurface,"Design system"),borderRadiusS:kt.external(Et.borderRadiusS,"Design system"),colorError:kt.external(Et.colorError,"Design system")},nr=S`
|
|
893
890
|
.ft-input-label {
|
|
894
891
|
position: absolute;
|
|
895
892
|
inset: 0;
|
|
@@ -1011,7 +1008,7 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
1011
1008
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1012
1009
|
border-top: none;
|
|
1013
1010
|
}
|
|
1014
|
-
`;var rr=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 sr extends
|
|
1011
|
+
`;var rr=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 sr extends Mt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return it`
|
|
1015
1012
|
<div class="${Dn(t)}">
|
|
1016
1013
|
${this.text?it`
|
|
1017
1014
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -1120,7 +1117,7 @@ const Dn=wn(class extends $n{constructor(t){var e;if(super(t),t.type!==xn||"clas
|
|
|
1120
1117
|
position: absolute;
|
|
1121
1118
|
bottom: 0;
|
|
1122
1119
|
}
|
|
1123
|
-
`;var cr=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 dr extends
|
|
1120
|
+
`;var cr=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 dr extends Mt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return it`
|
|
1124
1121
|
<style>
|
|
1125
1122
|
.ft-text-area--main-panel {
|
|
1126
1123
|
height: calc(4 * ${ar.verticalSpacing} + ${ar.labelSize} + ${ar.fontSize} + ${this.height}px);
|
|
@@ -1173,14 +1170,14 @@ const{I:hr}=yt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1173
1170
|
* @license
|
|
1174
1171
|
* Copyright 2017 Google LLC
|
|
1175
1172
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1176
|
-
*/class xr extends
|
|
1173
|
+
*/class xr extends Mt{render(){return it`
|
|
1177
1174
|
<div class="ft-loader">
|
|
1178
1175
|
<div></div>
|
|
1179
1176
|
<div></div>
|
|
1180
1177
|
<div></div>
|
|
1181
1178
|
<div></div>
|
|
1182
1179
|
</div>
|
|
1183
|
-
`}}xr.styles=Go,v("ft-loader")(xr);var mr=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 wr extends
|
|
1180
|
+
`}}xr.styles=Go,v("ft-loader")(xr);var mr=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 wr extends Mt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(it`
|
|
1184
1181
|
<button part="button"
|
|
1185
1182
|
class="${Dn(t)}"
|
|
1186
1183
|
aria-label="${this.getLabel()}"
|
|
@@ -1205,13 +1202,13 @@ const{I:hr}=yt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1205
1202
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?it`
|
|
1206
1203
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:nt}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}}wr.elementDefinitions={"ft-ripple":Bn,"ft-tooltip":Fn,"ft-typography":yn,"ft-icon":Rn,"ft-loader":xr},wr.styles=[Ut,an],mr([s({type:String,reflect:!0})],wr.prototype,"role",void 0),mr([s({type:Boolean})],wr.prototype,"primary",void 0),mr([s({type:Boolean})],wr.prototype,"outlined",void 0),mr([s({type:Boolean})],wr.prototype,"disabled",void 0),mr([s({type:Boolean})],wr.prototype,"dense",void 0),mr([s({type:Boolean})],wr.prototype,"round",void 0),mr([s()],wr.prototype,"label",void 0),mr([s()],wr.prototype,"icon",void 0),mr([s()],wr.prototype,"iconVariant",void 0),mr([s({type:Boolean})],wr.prototype,"trailingIcon",void 0),mr([s({type:Boolean})],wr.prototype,"loading",void 0),mr([s()],wr.prototype,"tooltipPosition",void 0),mr([s({type:Boolean})],wr.prototype,"hideTooltip",void 0),mr([s({type:Boolean})],wr.prototype,"forceTooltip",void 0),mr([c(".ft-button")],wr.prototype,"button",void 0),mr([c(".ft-button--label slot")],wr.prototype,"slottedContent",void 0),v("ft-button")(wr);const $r=S`
|
|
1207
1204
|
`,Sr=S`
|
|
1208
|
-
`,kr=Ti.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 Or{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=kr.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?Or.build(t):null!==(e=Or.API)&&void 0!==e?e:Or.API=Or.build()}static await(t){return new Promise((e=>{let i=Or.get(t);if(i)e(i);else{const o=kr.subscribe((()=>{i=Or.get(t),i&&(o(),e(i))}))}}))}}var Er;const _r=Symbol("clearAfterUnitTest");class Cr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[Er]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=kr.getState().uiLocale,kr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=kr.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};p(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 zt(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,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Er=_r,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Cr((async(t,e)=>(await Or.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Cr((async(t,e)=>(await Or.await()).getCustomMessageContext(t,e))));const Rr=window.FluidTopicsI18nService,jr=window.FluidTopicsCustomI18nService;var Nr=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 Ir extends
|
|
1205
|
+
`,kr=Ti.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 Or{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=kr.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?Or.build(t):null!==(e=Or.API)&&void 0!==e?e:Or.API=Or.build()}static await(t){return new Promise((e=>{let i=Or.get(t);if(i)e(i);else{const o=kr.subscribe((()=>{i=Or.get(t),i&&(o(),e(i))}))}}))}}var Er;const _r=Symbol("clearAfterUnitTest");class Cr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[Er]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=kr.getState().uiLocale,kr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=kr.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};p(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 zt(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,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Er=_r,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Cr((async(t,e)=>(await Or.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Cr((async(t,e)=>(await Or.await()).getCustomMessageContext(t,e))));const Rr=window.FluidTopicsI18nService,jr=window.FluidTopicsCustomI18nService;var Nr=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 Ir extends Mt{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=()=>Or.get(),this.cache=new o,this.cleanSessionDebouncer=new n}render(){return it`
|
|
1209
1206
|
<slot></slot>
|
|
1210
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&kr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&kr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&kr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&kr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&kr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&kr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&kr.actions.setSession(this.session),t.has("availableUiLocales")&&kr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Rr.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()))))}}Ir.elementDefinitions={},Ir.styles=Sr,Nr([s()],Ir.prototype,"baseUrl",void 0),Nr([s()],Ir.prototype,"apiIntegrationIdentifier",void 0),Nr([s()],Ir.prototype,"uiLocale",void 0),Nr([b([])],Ir.prototype,"availableUiLocales",void 0),Nr([s({type:Boolean})],Ir.prototype,"editorMode",void 0),Nr([s({type:Boolean})],Ir.prototype,"noCustom",void 0),Nr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ir.prototype,"noCustomComponent",void 0),Nr([s({type:Boolean})],Ir.prototype,"withManualResources",void 0),Nr([b([])],Ir.prototype,"messageContexts",void 0),Nr([b(void 0)],Ir.prototype,"session",void 0),Nr([s({type:Object})],Ir.prototype,"apiProvider",void 0),v("ft-app-context")(Ir);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};const
|
|
1207
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&kr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&kr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&kr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&kr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&kr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&kr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&kr.actions.setSession(this.session),t.has("availableUiLocales")&&kr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Rr.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()))))}}Ir.elementDefinitions={},Ir.styles=Sr,Nr([s()],Ir.prototype,"baseUrl",void 0),Nr([s()],Ir.prototype,"apiIntegrationIdentifier",void 0),Nr([s()],Ir.prototype,"uiLocale",void 0),Nr([b([])],Ir.prototype,"availableUiLocales",void 0),Nr([s({type:Boolean})],Ir.prototype,"editorMode",void 0),Nr([s({type:Boolean})],Ir.prototype,"noCustom",void 0),Nr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ir.prototype,"noCustomComponent",void 0),Nr([s({type:Boolean})],Ir.prototype,"withManualResources",void 0),Nr([b([])],Ir.prototype,"messageContexts",void 0),Nr([b(void 0)],Ir.prototype,"session",void 0),Nr([s({type:Object})],Ir.prototype,"apiProvider",void 0),v("ft-app-context")(Ir);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};const Mr=Symbol("i18nProperties"),Ar=Symbol("i18nUnsubs");function Ur(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?jr:Rr}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var e;null===(e=this[Mr])||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[Mr])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Mr]&&new Set([...this[Mr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Ar].has(t)||this[Ar].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Ar].forEach((t=>t())),this[Ar].clear()}}return e=Ar,Tr([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class zr extends(Ur(Mt)){}class Fr extends(Ur(Zt)){}var Dr=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 Pr extends Fr{constructor(){super(),this.editorMode=!1,this.addStore(kr)}render(){return this.key&&this.context?it`
|
|
1211
1208
|
<span class="ft-i18n">
|
|
1212
1209
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1213
1210
|
</span>
|
|
1214
|
-
`:this.editorMode?"Select a context and a label key.":nt}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Pr.elementDefinitions={},Pr.styles=$r,Dr([
|
|
1211
|
+
`:this.editorMode?"Select a context and a label key.":nt}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Pr.elementDefinitions={},Pr.styles=$r,Dr([Mi()],Pr.prototype,"editorMode",void 0),Dr([s()],Pr.prototype,"context",void 0),Dr([s()],Pr.prototype,"key",void 0),Dr([b([])],Pr.prototype,"args",void 0),Dr([s()],Pr.prototype,"defaultMessage",void 0);class Br{static build(t){return new Br(t)}static fromGwt(t){return new Br(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Rr.resolveMessage(this.name,e,...t)})}}const Lr=(t,e)=>(i,o)=>{var n,r;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const s={...t,key:null!==(n=t.key)&&void 0!==n?n:o};i[Mr]=null!==(r=i[Mr])&&void 0!==r?r:new Map,i[Mr].set(o,s)};v("ft-i18n")(Pr);const Wr=Br.build("integratedFeedbackComponent"),Hr={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Zr=Br.build("inDesignerFeedbackComponent"),Vr={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."},Kr={fontSize:kt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:kt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:kt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:kt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:kt.extend("--ft-text-field-helper-color",Et.colorOnSurfaceMedium),colorPrimary:kt.external(Et.colorPrimary,"Design system"),colorOnSurface:kt.external(Et.colorOnSurface,"Design system"),colorOnSurfaceDisabled:kt.external(Et.colorOnSurfaceDisabled,"Design system"),borderRadiusS:kt.external(Et.borderRadiusS,"Design system"),colorError:kt.external(Et.colorError,"Design system"),prefixColor:kt.extend("--ft-text-field-prefix-color",Et.colorOnSurfaceMedium),iconColor:kt.extend("--ft-text-field-icon-color",Et.colorOnSurfaceMedium),floatingZIndex:kt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:kt.external(Et.colorSurface,"Design system"),colorOutline:kt.external(Et.colorOutline,"Design system"),elevation02:kt.external(Et.elevation02,"Design system"),suggestSize:kt.create("--ft-text-field-suggest-size","SIZE","300px")},qr=S`
|
|
1215
1212
|
*:focus {
|
|
1216
1213
|
outline: none;
|
|
1217
1214
|
}
|
|
@@ -1367,7 +1364,7 @@ const{I:hr}=yt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1367
1364
|
.ft-text-field--with-password ft-icon:hover {
|
|
1368
1365
|
cursor: pointer;
|
|
1369
1366
|
}
|
|
1370
|
-
`;var Gr=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 Jr extends
|
|
1367
|
+
`;var Gr=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 Jr extends Mt{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=On.EYE_SLASH,this.passwordRevealedIcon=On.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return it`
|
|
1371
1368
|
<div class="${Dn(t)}">
|
|
1372
1369
|
<div class="ft-text-field--main-panel"
|
|
1373
1370
|
@keydown=${this.handleKeyboardNavigation}
|
|
@@ -1443,7 +1440,7 @@ const{I:hr}=yt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1443
1440
|
slot {
|
|
1444
1441
|
pointer-events: none;
|
|
1445
1442
|
}
|
|
1446
|
-
`;var Yr=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 Qr extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class ts extends
|
|
1443
|
+
`;var Yr=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 Qr extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class ts extends Mt{render(){return it`
|
|
1447
1444
|
<div class="ft-text-field-suggestion"
|
|
1448
1445
|
tabindex="-1"
|
|
1449
1446
|
@keydown=${this.onKeyDown}
|
|
@@ -1559,7 +1556,7 @@ const{I:hr}=yt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1559
1556
|
<ft-icon>INFO</ft-icon>
|
|
1560
1557
|
</ft-tooltip>
|
|
1561
1558
|
</div>
|
|
1562
|
-
`:nt}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}is.elementDefinitions={"ft-button":wr,"ft-typography":yn,"ft-icon":Rn,"ft-tooltip":Fn,"ft-switch":Jn,"ft-switch-option":Kn,"ft-text-area":dr,"ft-text-field":Jr},is.styles=dn,es([s({type:Boolean})],is.prototype,"editorMode",void 0),es([s({type:Boolean})],is.prototype,"hideTitle",void 0),es([s({type:Boolean})],is.prototype,"ratingAllowed",void 0),es([s({attribute:!1})],is.prototype,"i18nProperties",void 0),es([s({attribute:!1})],is.prototype,"ratingSummary",void 0),es([s({attribute:!1})],is.prototype,"user",void 0),es([c(".ft-reader-feedback--feedback-input")],is.prototype,"feedbackInput",void 0),es([a()],is.prototype,"from",void 0),es([a()],is.prototype,"feedbackMessage",void 0),es([s()],is.prototype,"iconVariant",void 0),es([s()],is.prototype,"emptyStarIcon",void 0),es([s()],is.prototype,"filledStarIcon",void 0),es([s()],is.prototype,"emptyLikeIcon",void 0),es([s()],is.prototype,"filledLikeIcon",void 0),es([s()],is.prototype,"emptyDislikeIcon",void 0),es([s()],is.prototype,"filledDislikeIcon",void 0),es([
|
|
1559
|
+
`:nt}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}is.elementDefinitions={"ft-button":wr,"ft-typography":yn,"ft-icon":Rn,"ft-tooltip":Fn,"ft-switch":Jn,"ft-switch-option":Kn,"ft-text-area":dr,"ft-text-field":Jr},is.styles=dn,es([s({type:Boolean})],is.prototype,"editorMode",void 0),es([s({type:Boolean})],is.prototype,"hideTitle",void 0),es([s({type:Boolean})],is.prototype,"ratingAllowed",void 0),es([s({attribute:!1})],is.prototype,"i18nProperties",void 0),es([s({attribute:!1})],is.prototype,"ratingSummary",void 0),es([s({attribute:!1})],is.prototype,"user",void 0),es([c(".ft-reader-feedback--feedback-input")],is.prototype,"feedbackInput",void 0),es([a()],is.prototype,"from",void 0),es([a()],is.prototype,"feedbackMessage",void 0),es([s()],is.prototype,"iconVariant",void 0),es([s()],is.prototype,"emptyStarIcon",void 0),es([s()],is.prototype,"filledStarIcon",void 0),es([s()],is.prototype,"emptyLikeIcon",void 0),es([s()],is.prototype,"filledLikeIcon",void 0),es([s()],is.prototype,"emptyDislikeIcon",void 0),es([s()],is.prototype,"filledDislikeIcon",void 0),es([Mi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],is.prototype,"configuration",void 0),es([s()],is.prototype,"feedbackMailLinkBuilder",void 0);const os=Br.fromGwt("server");class ns{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,n){var r;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=n,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(r=o.bodyMetadataIds)&&void 0!==r?r:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const n=encodeURIComponent(this.subject+" "+this.subjectMetadata),r=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${os.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${n}&body=${r}`}}var rs=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 ss extends(Ur(Li)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=_n.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 ns,this.i18nProperties={feedbackMainTitle:Wr.properties.mapFeedbackMainTitle(),ratingSectionTitle:Wr.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Wr.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Wr.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(kr)}render(){return this.map&&(this.editorMode||this.componentVisible)?it`
|
|
1563
1560
|
<ft-reader-feedback
|
|
1564
1561
|
ratingAllowed
|
|
1565
1562
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1585,7 +1582,7 @@ const{I:hr}=yt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1585
1582
|
display: none !important;
|
|
1586
1583
|
}
|
|
1587
1584
|
</style>
|
|
1588
|
-
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var 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:Wr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Zr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _t({type:"info",message:Zr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new _t({type:"info",message:Wr.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _t({type:"error",message:Wr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}ss.elementDefinitions={"ft-reader-feedback":is},rs([
|
|
1585
|
+
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var 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:Wr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Zr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _t({type:"info",message:Zr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new _t({type:"info",message:Wr.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _t({type:"error",message:Wr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}ss.elementDefinitions={"ft-reader-feedback":is},rs([Mi({store:kr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],ss.prototype,"user",void 0),rs([Mi({store:"reader"})],ss.prototype,"map",void 0),rs([Mi({store:kr.name})],ss.prototype,"editorMode",void 0),rs([Mi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ss.prototype,"configuration",void 0),rs([a()],ss.prototype,"ratingSummary",void 0),rs([s({type:Boolean})],ss.prototype,"hideTitle",void 0),rs([s()],ss.prototype,"iconVariant",void 0),rs([s()],ss.prototype,"emptyStarIcon",void 0),rs([s()],ss.prototype,"filledStarIcon",void 0),rs([s()],ss.prototype,"emptyLikeIcon",void 0),rs([s()],ss.prototype,"filledLikeIcon",void 0),rs([s()],ss.prototype,"emptyDislikeIcon",void 0),rs([s()],ss.prototype,"filledDislikeIcon",void 0),rs([c("ft-reader-feedback")],ss.prototype,"readerFeedback",void 0),rs([Lr(os.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],ss.prototype,"mailSubject",void 0);var as=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 ls extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const cs=Symbol("registerInterval");class ds extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[cs]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[cs]):this.dispatchEvent(new ls)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=cs,as([a()],i.prototype,"tocNode",void 0),as([a()],i.prototype,"disableContextInteractions",void 0),i}(Li)){}var hs=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 fs extends(Ur(ds)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=_n.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 ns,this.i18nProperties={feedbackMainTitle:Wr.properties.topicFeedbackMainTitle(),ratingSectionTitle:Wr.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Wr.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Wr.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(kr)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?it`
|
|
1589
1586
|
<ft-reader-feedback
|
|
1590
1587
|
.i18nProperties=${this.i18nProperties}
|
|
1591
1588
|
?ratingAllowed=${this.tocNode.hasRating}
|
|
@@ -1611,4 +1608,4 @@ const{I:hr}=yt,fr=()=>document.createComment(""),ur=(t,e,i)=>{var o;const n=t._$
|
|
|
1611
1608
|
display: none !important;
|
|
1612
1609
|
}
|
|
1613
1610
|
</style>
|
|
1614
|
-
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,o;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var 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:Wr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Zr.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.message,t.detail.from)),this.dispatchEvent(new _t({type:"info",message:Wr.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Zr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _t({type:"error",message:Wr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}fs.elementDefinitions={"ft-reader-feedback":is},hs([
|
|
1611
|
+
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,o;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var 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:Wr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Zr.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.message,t.detail.from)),this.dispatchEvent(new _t({type:"info",message:Wr.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Zr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _t({type:"error",message:Wr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}fs.elementDefinitions={"ft-reader-feedback":is},hs([Mi({store:kr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],fs.prototype,"user",void 0),hs([Mi({store:"reader"})],fs.prototype,"map",void 0),hs([Mi({store:kr.name})],fs.prototype,"editorMode",void 0),hs([Mi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],fs.prototype,"configuration",void 0),hs([a()],fs.prototype,"ratingSummary",void 0),hs([s({type:Boolean})],fs.prototype,"hideTitle",void 0),hs([s()],fs.prototype,"iconVariant",void 0),hs([s()],fs.prototype,"emptyStarIcon",void 0),hs([s()],fs.prototype,"filledStarIcon",void 0),hs([s()],fs.prototype,"emptyLikeIcon",void 0),hs([s()],fs.prototype,"filledLikeIcon",void 0),hs([s()],fs.prototype,"emptyDislikeIcon",void 0),hs([s()],fs.prototype,"filledDislikeIcon",void 0),hs([c("ft-reader-feedback")],fs.prototype,"readerFeedback",void 0),hs([Lr(os.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]})))],fs.prototype,"mailSubject",void 0),v("ft-reader-map-feedback")(ss),v("ft-reader-topic-feedback")(fs),t.FtReaderFeedbackCssVariables=cn,t.FtReaderMapFeedback=ss,t.FtReaderTopicFeedback=fs,t.styles=dn}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-feedback",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
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": "1.0.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "1.0.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-app-context": "1.0.52",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.0.52",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "1.0.52",
|
|
25
25
|
"lit": "2.7.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "e5ca580eaeb1a17693fa8f2cf59fbdca412bf7d0"
|
|
28
28
|
}
|