@fluid-topics/ft-search-facet 1.0.35 → 1.0.37
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.
- package/build/ft-search-facet.light.js +81 -79
- package/build/ft-search-facet.min.js +123 -121
- package/package.json +7 -7
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2017 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
*/;var a;const h=window,p=h.trustedTypes,c=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,d="$lit$",f=`lit$${(Math.random()+"").slice(9)}$`,u="?"+f,v=`<${u}>`,b=document,x=()=>b.createComment(""),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,m="[ \t\n\f\r]",$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,k=/>/g,S=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),z=/'/g,O=/"/g,C=/^(?:script|style|textarea|title)$/i,I=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),j=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),E=new WeakMap,M=b.createTreeWalker(b,129,null,!1),
|
|
7
|
+
*/;var a;const h=window,p=h.trustedTypes,c=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,d="$lit$",f=`lit$${(Math.random()+"").slice(9)}$`,u="?"+f,v=`<${u}>`,b=document,x=()=>b.createComment(""),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,m="[ \t\n\f\r]",$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,k=/>/g,S=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),z=/'/g,O=/"/g,C=/^(?:script|style|textarea|title)$/i,I=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),j=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),E=new WeakMap,M=b.createTreeWalker(b,129,null,!1),T=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=$;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,a=r.exec(e),null!==a);)p=r.lastIndex,r===$?"!--"===a[1]?r=w:void 0!==a[1]?r=k:void 0!==a[2]?(C.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=S):void 0!==a[3]&&(r=S):r===S?">"===a[0]?(r=null!=s?s:$,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?S:'"'===a[3]?O:z):r===O||r===z?r=S:r===w||r===k?r=$:(r=S,s=void 0);const c=r===S&&t[i+1].startsWith("/>")?" ":"";n+=r===$?e+v:h>=0?(o.push(l),e.slice(0,h)+d+e.slice(h)+f+c):e+f+(-2===h?(o.push(void 0),i):c)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==c?c.createHTML(l):l,o]};class N{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=T(t,i);if(this.el=N.createElement(a,e),M.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=M.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(d)||i.startsWith(f)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+d).split(f),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?R:"?"===i[1]?_:"@"===i[1]?P:U})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(C.test(o.tagName)){const t=o.textContent.split(f),i=t.length-1;if(i>0){o.textContent=p?p.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],x()),M.nextNode(),l.push({type:2,index:++s});o.append(t[i],x())}}}else if(8===o.nodeType)if(o.data===u)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)l.push({type:7,index:s}),t+=f.length-1}s++}}static createElement(t,i){const e=b.createElement("template");return e.innerHTML=t,e}}function L(t,i,e=t,o){var s,n,r,l;if(i===j)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=g(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=L(t,a._$AS(t,i.values),a,o)),i}class A{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:b).importNode(e,!0);M.currentNode=s;let n=M.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new D(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new H(n,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=M.nextNode(),r++)}return s}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class D{constructor(t,i,e,o){var s;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=L(this,t,i),g(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==j&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>y(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!==B&&g(this._$AH)?this._$AA.nextSibling.data=t:this.$(b.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new A(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=E.get(t.strings);return void 0===i&&E.set(t.strings,i=new N(t)),i}T(t){y(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new D(this.k(x()),this.k(x()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class U{constructor(t,i,e,o,s){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=B}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=L(this,t,i,0),n=!g(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=L(this,o[e+r],i,r),l===j&&(l=this._$AH[r]),n||(n=!g(l)||l!==this._$AH[r]),l===B?t=B:t!==B&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===B?void 0:t}}const F=p?p.emptyScript:"";class _ extends U{constructor(){super(...arguments),this.type=4}j(t){t&&t!==B?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}}class P extends U{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=L(this,t,i,0))&&void 0!==e?e:B)===j)return;const o=this._$AH,s=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==B&&(o===B||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class H{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const V=h.litHtmlPolyfillSupport;null==V||V(N,D),(null!==(a=h.litHtmlVersions)&&void 0!==a?a:h.litHtmlVersions=[]).push("2.7.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t._$litStatic$},K=t=>({_$litStatic$:t,r:W}),G=new Map,q=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=Z(n));)a+=s+i[++h],p=!0;h!==o&&l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=G.get(t))&&(r.raw=r,G.set(t,i=r)),e=l}return t(i,...e)})(I);var X;!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"}(X||(X={}));const Y=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),J=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Q={fontFamily:J,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},tt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",Y),it=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",Q.fontSize,"20px"),et=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Q.fontWeight,"normal"),ot=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Q.letterSpacing,"0.15px"),st=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",Q.lineHeight,"1.2"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Q.textTransform,"inherit"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",Y),lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Q.fontSize,"14px"),at=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Q.fontWeight,"normal"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Q.letterSpacing,"0.105px"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Q.lineHeight,"1.7"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Q.textTransform,"inherit"),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",J),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Q.fontSize,"16px"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Q.fontWeight,"600"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Q.letterSpacing,"0.144px"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Q.lineHeight,"1.5"),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Q.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",J),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Q.fontSize,"14px"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Q.fontWeight,"normal"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",Q.letterSpacing,"0.098px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",Q.lineHeight,"1.7"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",Q.textTransform,"inherit"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",J),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",Q.fontSize,"16px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",Q.fontWeight,"normal"),Ct=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",Q.letterSpacing,"0.496px"),It=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",Q.lineHeight,"1.5"),jt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",Q.textTransform,"inherit"),Bt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",J),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",Q.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",Q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",Q.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",Q.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",Q.textTransform,"inherit")},Et=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",J),Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",Q.fontSize,"12px"),
|
|
13
|
+
const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t._$litStatic$},K=t=>({_$litStatic$:t,r:W}),G=new Map,q=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=Z(n));)a+=s+i[++h],p=!0;h!==o&&l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=G.get(t))&&(r.raw=r,G.set(t,i=r)),e=l}return t(i,...e)})(I);var X;!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"}(X||(X={}));const Y=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),J=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Q={fontFamily:J,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},tt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",Y),it=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",Q.fontSize,"20px"),et=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Q.fontWeight,"normal"),ot=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Q.letterSpacing,"0.15px"),st=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",Q.lineHeight,"1.2"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Q.textTransform,"inherit"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",Y),lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Q.fontSize,"14px"),at=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Q.fontWeight,"normal"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Q.letterSpacing,"0.105px"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Q.lineHeight,"1.7"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Q.textTransform,"inherit"),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",J),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Q.fontSize,"16px"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Q.fontWeight,"600"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Q.letterSpacing,"0.144px"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Q.lineHeight,"1.5"),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Q.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",J),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Q.fontSize,"14px"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Q.fontWeight,"normal"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",Q.letterSpacing,"0.098px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",Q.lineHeight,"1.7"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",Q.textTransform,"inherit"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",J),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",Q.fontSize,"16px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",Q.fontWeight,"normal"),Ct=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",Q.letterSpacing,"0.496px"),It=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",Q.lineHeight,"1.5"),jt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",Q.textTransform,"inherit"),Bt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",J),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",Q.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",Q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",Q.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",Q.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",Q.textTransform,"inherit")},Et=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",J),Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",Q.fontSize,"12px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",Q.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",Q.letterSpacing,"0.396px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",Q.lineHeight,"1.33"),At=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",Q.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",J),Ut=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",Q.fontSize,"10px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",Q.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",Q.letterSpacing,"0.33px"),_t=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",Q.lineHeight,"1.6"),Pt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",Q.textTransform,"inherit"),Ht=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",J),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",Q.fontSize,"10px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",Q.fontWeight,"normal"),Zt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",Q.letterSpacing,"1.5px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",Q.lineHeight,"1.6"),Gt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",Q.textTransform,"uppercase"),qt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",J),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",Q.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",Q.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",Q.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",Q.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",Q.textTransform,"uppercase")},Xt=e.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${tt};
|
|
16
16
|
font-size: ${it};
|
|
@@ -69,10 +69,10 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
69
69
|
.ft-typography--caption {
|
|
70
70
|
font-family: ${Et};
|
|
71
71
|
font-size: ${Mt};
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
72
|
+
font-weight: ${Tt};
|
|
73
|
+
letter-spacing: ${Nt};
|
|
74
|
+
line-height: ${Lt};
|
|
75
|
+
text-transform: ${At};
|
|
76
76
|
}
|
|
77
77
|
`,oi=e.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
@@ -202,7 +202,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
202
202
|
opacity: ${pi.opacityContentOnSurfacePressed};
|
|
203
203
|
transform: translate(-50%, -50%) scale(1);
|
|
204
204
|
}
|
|
205
|
-
`;var gi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class yi extends i.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 i.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 i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{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
|
|
205
|
+
`;var gi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class yi extends i.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 i.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 i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{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 e.html`
|
|
206
206
|
<style>
|
|
207
207
|
.ft-ripple .ft-ripple--effect,
|
|
208
208
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -219,7 +219,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
219
219
|
<div class="ft-ripple--background"></div>
|
|
220
220
|
<div class="ft-ripple--effect"></div>
|
|
221
221
|
</div>
|
|
222
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}yi.elementDefinitions={},yi.styles=xi,gi([o.property({type:Boolean})],yi.prototype,"primary",void 0),gi([o.property({type:Boolean})],yi.prototype,"secondary",void 0),gi([o.property({type:Boolean})],yi.prototype,"unbounded",void 0),gi([o.property({type:Boolean})],yi.prototype,"activated",void 0),gi([o.property({type:Boolean})],yi.prototype,"selected",void 0),gi([o.property({type:Boolean})],yi.prototype,"disabled",void 0),gi([o.state()],yi.prototype,"hovered",void 0),gi([o.state()],yi.prototype,"focused",void 0),gi([o.state()],yi.prototype,"pressed",void 0),gi([o.state()],yi.prototype,"rippling",void 0),gi([o.state()],yi.prototype,"rippleSize",void 0),gi([o.state()],yi.prototype,"originX",void 0),gi([o.state()],yi.prototype,"originY",void 0),gi([o.query(".ft-ripple")],yi.prototype,"ripple",void 0),gi([o.query(".ft-ripple--effect")],yi.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(yi);const mi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),$i=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),wi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),ki=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Si=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),zi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Oi=e.css`
|
|
222
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}yi.elementDefinitions={},yi.styles=xi,gi([o.property({type:Boolean})],yi.prototype,"primary",void 0),gi([o.property({type:Boolean})],yi.prototype,"secondary",void 0),gi([o.property({type:Boolean})],yi.prototype,"unbounded",void 0),gi([o.property({type:Boolean})],yi.prototype,"activated",void 0),gi([o.property({type:Boolean})],yi.prototype,"selected",void 0),gi([o.property({type:Boolean})],yi.prototype,"disabled",void 0),gi([o.state()],yi.prototype,"hovered",void 0),gi([o.state()],yi.prototype,"focused",void 0),gi([o.state()],yi.prototype,"pressed",void 0),gi([o.state()],yi.prototype,"rippling",void 0),gi([o.state()],yi.prototype,"rippleSize",void 0),gi([o.state()],yi.prototype,"originX",void 0),gi([o.state()],yi.prototype,"originY",void 0),gi([o.query(".ft-ripple")],yi.prototype,"ripple",void 0),gi([o.query(".ft-ripple--effect")],yi.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(yi);const mi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),$i=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),wi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),ki=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Si=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),zi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Oi=e.css`
|
|
223
223
|
.ft-tooltip--container {
|
|
224
224
|
display: block;
|
|
225
225
|
position: relative;
|
|
@@ -261,7 +261,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
261
261
|
@touchstart=${this.onTouch}>
|
|
262
262
|
<slot></slot>
|
|
263
263
|
<div part="tooltip" role="tooltip" inert
|
|
264
|
-
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
264
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
265
265
|
?hidden=${!this.visible}>
|
|
266
266
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
267
267
|
<slot name="text"></slot>
|
|
@@ -345,7 +345,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
345
345
|
<div></div>
|
|
346
346
|
<div></div>
|
|
347
347
|
</div>
|
|
348
|
-
`}}var Mi,
|
|
348
|
+
`}}var Mi,Ti;Ei.styles=Bi,i.customElement("ft-loader")(Ei),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",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=""}(Mi||(Mi={})),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=""}(Ti||(Ti={})),new Map([...["abw"].map((t=>[t,Ti.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,Ti.AUDIO])),...["avi"].map((t=>[t,Ti.AVI])),...["chm","xhs"].map((t=>[t,Ti.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,Ti.CODE])),...["csv"].map((t=>[t,Ti.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ti.DITA])),...["epub"].map((t=>[t,Ti.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ti.EXCEL])),...["flac"].map((t=>[t,Ti.FLAC])),...["gif"].map((t=>[t,Ti.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ti.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ti.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,Ti.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ti.JPEG])),...["json"].map((t=>[t,Ti.JSON])),...["m4a","m4p"].map((t=>[t,Ti.M4A])),...["mov","qt"].map((t=>[t,Ti.MOV])),...["mp3"].map((t=>[t,Ti.MP3])),...["mp4","m4v"].map((t=>[t,Ti.MP4])),...["ogg","oga"].map((t=>[t,Ti.OGG])),...["pdf","ps"].map((t=>[t,Ti.PDF])),...["png"].map((t=>[t,Ti.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ti.POWERPOINT])),...["rar"].map((t=>[t,Ti.RAR])),...["stp"].map((t=>[t,Ti.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ti.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,Ti.VIDEO])),...["wav"].map((t=>[t,Ti.WAV])),...["wma"].map((t=>[t,Ti.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ti.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ti.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ti.YAML])),...["zip"].map((t=>[t,Ti.ZIP]))]);const Ni={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Li=e.css`
|
|
349
349
|
:host, i.ft-icon {
|
|
350
350
|
display: inline-flex;
|
|
351
351
|
align-items: center;
|
|
@@ -354,14 +354,14 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
:host {
|
|
357
|
-
width: ${
|
|
358
|
-
height: ${
|
|
357
|
+
width: ${Ni.size};
|
|
358
|
+
height: ${Ni.size};
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
i.ft-icon {
|
|
362
362
|
width: 100%;
|
|
363
363
|
height: 100%;
|
|
364
|
-
font-size: ${
|
|
364
|
+
font-size: ${Ni.size};
|
|
365
365
|
line-height: 1;
|
|
366
366
|
font-weight: normal;
|
|
367
367
|
text-transform: none;
|
|
@@ -372,33 +372,33 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
372
372
|
text-rendering: auto;
|
|
373
373
|
-webkit-font-smoothing: antialiased;
|
|
374
374
|
-moz-osx-font-smoothing: grayscale;
|
|
375
|
-
vertical-align: ${
|
|
375
|
+
vertical-align: ${Ni.verticalAlign};
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
i.ft-icon.ft-icon--fluid-topics {
|
|
379
|
-
font-family: ${
|
|
380
|
-
|
|
379
|
+
font-family: ${Ni.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
380
|
+
|
|
381
381
|
/* Ugly fix because font is broken */
|
|
382
|
-
font-size: calc(0.75 * ${
|
|
383
|
-
line-height: ${
|
|
382
|
+
font-size: calc(0.75 * ${Ni.size});
|
|
383
|
+
line-height: ${Ni.size};
|
|
384
384
|
position: relative;
|
|
385
385
|
top: -4%;
|
|
386
386
|
justify-content: center;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
.ft-icon--file-format {
|
|
390
|
-
font-family: ${
|
|
390
|
+
font-family: ${Ni.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
.ft-icon--material {
|
|
394
|
-
font-family: ${
|
|
394
|
+
font-family: ${Ni.materialFontFamily}, "Material Icons", sans-serif;
|
|
395
395
|
}
|
|
396
|
-
`;var
|
|
396
|
+
`;var Ai;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ai||(Ai={}));var Di=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ui extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Ai).includes(this.variant)?this.variant:Ai.fluid_topics,i=t!==Ai.material||!!this.value;return e.html`
|
|
397
397
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
398
398
|
${r.unsafeHTML(this.resolvedIcon)}
|
|
399
399
|
<slot ?hidden=${i}></slot>
|
|
400
400
|
</i>
|
|
401
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case
|
|
401
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Ai.file_format:this.resolvedIcon=null!==(t=Ti[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ai.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Mi[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ui.elementDefinitions={},Ui.styles=Li,Di([o.property()],Ui.prototype,"variant",void 0),Di([o.property()],Ui.prototype,"value",void 0),Di([o.state()],Ui.prototype,"resolvedIcon",void 0),Di([o.query("slot")],Ui.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ui);const Ri=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Fi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ri,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",qt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Ri),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},_i=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Pi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:_i,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",_i)},Hi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Vi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Wi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Zi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Ki=[e.css`
|
|
402
402
|
:host {
|
|
403
403
|
display: inline-block;
|
|
404
404
|
max-width: 100%;
|
|
@@ -440,7 +440,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
440
440
|
|
|
441
441
|
--ft-button-internal-line-height: max(calc(${Fi.fontSize} + 2px), ${Fi.iconSize});
|
|
442
442
|
--ft-button-internal-color: ${Fi.color};
|
|
443
|
-
${i.setVariable(
|
|
443
|
+
${i.setVariable(Ni.size,Fi.iconSize)};
|
|
444
444
|
${i.setVariable(pi.color,Fi.rippleColor)};
|
|
445
445
|
|
|
446
446
|
border-radius: ${Fi.borderRadius};
|
|
@@ -454,7 +454,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
454
454
|
border: 1px solid var(--ft-button-internal-color);
|
|
455
455
|
padding: calc(${Fi.verticalPadding} - 1px) calc(${Fi.horizontalPadding} - 1px);
|
|
456
456
|
}
|
|
457
|
-
|
|
457
|
+
|
|
458
458
|
.ft-button.ft-button--dense {
|
|
459
459
|
padding: ${Vi} ${Wi};
|
|
460
460
|
border-radius: ${Hi};
|
|
@@ -464,7 +464,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
464
464
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
465
465
|
padding: calc(${Vi} - 1px) calc(${Wi} - 1px);
|
|
466
466
|
}
|
|
467
|
-
|
|
467
|
+
|
|
468
468
|
.ft-button:not([disabled]):hover {
|
|
469
469
|
cursor: pointer;
|
|
470
470
|
}
|
|
@@ -556,7 +556,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
556
556
|
position="${this.tooltipPosition}">
|
|
557
557
|
${t}
|
|
558
558
|
</ft-tooltip>
|
|
559
|
-
|
|
559
|
+
`:t}resolveIcon(){return this.loading?e.html`
|
|
560
560
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
561
561
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}qi.elementDefinitions={"ft-ripple":yi,"ft-tooltip":Ii,"ft-typography":ai,"ft-icon":Ui,"ft-loader":Ei},qi.styles=[i.safariEllipsisFix,Ki],Gi([o.property({type:String,reflect:!0})],qi.prototype,"role",void 0),Gi([o.property({type:Boolean})],qi.prototype,"primary",void 0),Gi([o.property({type:Boolean})],qi.prototype,"outlined",void 0),Gi([o.property({type:Boolean})],qi.prototype,"disabled",void 0),Gi([o.property({type:Boolean})],qi.prototype,"dense",void 0),Gi([o.property({type:Boolean})],qi.prototype,"round",void 0),Gi([o.property()],qi.prototype,"label",void 0),Gi([o.property()],qi.prototype,"icon",void 0),Gi([o.property()],qi.prototype,"iconVariant",void 0),Gi([o.property({type:Boolean})],qi.prototype,"trailingIcon",void 0),Gi([o.property({type:Boolean})],qi.prototype,"loading",void 0),Gi([o.property()],qi.prototype,"tooltipPosition",void 0),Gi([o.property({type:Boolean})],qi.prototype,"hideTooltip",void 0),Gi([o.property({type:Boolean})],qi.prototype,"forceTooltip",void 0),Gi([o.query(".ft-button")],qi.prototype,"button",void 0),Gi([o.query(".ft-button--label slot")],qi.prototype,"slottedContent",void 0),i.customElement("ft-button")(qi);const Xi=i.FtCssVariableFactory.extend("--ft-checkbox-text-color",i.designSystemVariables.colorOnSurfaceHigh),Yi=i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),Ji=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),Qi=i.FtCssVariableFactory.extend("--ft-checkbox-border-color",i.designSystemVariables.colorOnSurfaceMedium),te=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),ie=e.css`
|
|
562
562
|
* {
|
|
@@ -843,45 +843,45 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
843
843
|
`;var xe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ge extends i.FtLitElement{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,i;return null!==(i=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==i?i:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const i=t.slice(0,this.limit);return e.html`
|
|
844
844
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
845
845
|
${null==this.parent?null:e.html`
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
846
|
+
<div tabindex="0"
|
|
847
|
+
part="controls go-back"
|
|
848
|
+
class="ft-filter-level--go-back"
|
|
849
|
+
?disabled=${this.disabled}
|
|
850
|
+
@keyup=${this.goBackOnKeyPress}
|
|
851
|
+
@click=${this.goBackOnClick}>
|
|
852
|
+
<ft-ripple></ft-ripple>
|
|
853
|
+
<ft-icon>thin_arrow_left</ft-icon>
|
|
854
|
+
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
855
|
+
</div>
|
|
856
|
+
`}
|
|
857
857
|
${0===this.options.length&&this.noValuesLabel?e.html`
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
858
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
859
|
+
${this.noValuesLabel}
|
|
860
|
+
</ft-typography>
|
|
861
|
+
`:e.nothing}
|
|
862
862
|
${s.repeat(i,(t=>t.value),(t=>{var i;return e.html`
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
863
|
+
<div class="ft-filter-level--option" part="options">
|
|
864
|
+
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
865
|
+
${this.preventNavigation||t.selected||0===(null!==(i=t.subOptions)&&void 0!==i?i:[]).length?e.nothing:e.html`
|
|
866
|
+
<ft-button icon="thin_arrow_right"
|
|
867
|
+
part="controls navigate-hierarchy"
|
|
868
|
+
label="${t.label}"
|
|
869
|
+
?disabled=${this.disabled}
|
|
870
|
+
tooltipPosition="left"
|
|
871
|
+
@click=${()=>this.displayLevel(t)}></ft-button>
|
|
872
|
+
`}
|
|
873
|
+
</div>
|
|
874
|
+
`}))}
|
|
875
875
|
${i.length<t.length?e.html`
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
876
|
+
<ft-button
|
|
877
|
+
class="ft-filter-level--display-more"
|
|
878
|
+
icon="thin_arrow"
|
|
879
|
+
dense trailingIcon
|
|
880
|
+
part="controls display-more"
|
|
881
|
+
@click=${this.displayMore}>
|
|
882
|
+
${this.moreValuesButtonLabel}
|
|
883
|
+
</ft-button>
|
|
884
|
+
`:e.nothing}
|
|
885
885
|
</div>
|
|
886
886
|
`}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var o;return e.html`
|
|
887
887
|
<ft-checkbox name="${this.filterId}"
|
|
@@ -1165,7 +1165,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
1165
1165
|
slot:not([name]) {
|
|
1166
1166
|
display: none;
|
|
1167
1167
|
}
|
|
1168
|
-
`];var Me=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class
|
|
1168
|
+
`];var Me=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Te extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ne extends i.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new i.Debouncer(300),this.changeDebouncer=new i.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return i.flatDeep(this.options,(t=>{var i;return null!==(i=t.subOptions)&&void 0!==i?i:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),i=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return e.html`
|
|
1169
1169
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1170
1170
|
part="container">
|
|
1171
1171
|
${this.label||t?e.html`
|
|
@@ -1200,18 +1200,18 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
1200
1200
|
</div>
|
|
1201
1201
|
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((i=>t.has(i))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var i,e,o,s,n;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(i=this.levelsContainer)||void 0===i||i.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(e=this.levelsContainer)||void 0===e||e.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(n=null===(s=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===s?void 0:s.hasHiddenValues)&&void 0!==n&&n}renderLevels(){const t=this.flatOptions,i=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=o<0?"ft-filter--level-center":"ft-filter--level-left";return e.html`
|
|
1202
1202
|
${this.raiseSelectedOptions&&i.length>0?e.html`
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1203
|
+
<ft-filter-level
|
|
1204
|
+
filterId="${this.id}"
|
|
1205
|
+
?multivalued=${this.multivalued}
|
|
1206
|
+
?disabled=${this.disabled}
|
|
1207
|
+
preventNavigation
|
|
1208
|
+
.options=${i}
|
|
1209
|
+
@change=${this.onChange}
|
|
1210
|
+
part="values selected-values"
|
|
1211
|
+
.exportpartsPrefixes=${["values","selected-values"]}
|
|
1212
|
+
></ft-filter-level>
|
|
1213
|
+
<div class="ft-filter--separator">
|
|
1214
|
+
`:null}
|
|
1215
1215
|
<ft-snap-scroll horizontal hideScrollbar
|
|
1216
1216
|
class="ft-filter--levels"
|
|
1217
1217
|
@current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
|
|
@@ -1237,14 +1237,16 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
1237
1237
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1238
1238
|
noValuesLabel="${this.noValuesLabel}"
|
|
1239
1239
|
></ft-filter-level>
|
|
1240
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var i;t.stopPropagation();const e=this.flatOptions.find((i=>i.value===t.detail.value));e.selected=!e.selected;const o=t=>{var i;t!==e&&(t.selected=!1),null===(i=t.subOptions)||void 0===i||i.forEach(o)};this.multivalued?null===(i=e.subOptions)||void 0===i||i.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;i.deepEqual(this.lastDispatchedValues,t)||(this.dispatchEvent(new
|
|
1240
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var i;t.stopPropagation();const e=this.flatOptions.find((i=>i.value===t.detail.value));e.selected=!e.selected;const o=t=>{var i;t!==e&&(t.selected=!1),null===(i=t.subOptions)||void 0===i||i.forEach(o)};this.multivalued?null===(i=e.subOptions)||void 0===i||i.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;i.deepEqual(this.lastDispatchedValues,t)||(this.dispatchEvent(new Te(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,i;this.filter=null!==(i=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==i?i:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Ne.elementDefinitions={"ft-button":qi,"ft-filter-level":ge,"ft-snap-scroll":ke,"ft-typography":ai},Ne.styles=Ee,Me([o.property({type:String})],Ne.prototype,"id",void 0),Me([o.property({type:String})],Ne.prototype,"label",void 0),Me([o.property({type:String})],Ne.prototype,"filterPlaceHolder",void 0),Me([o.property({type:String})],Ne.prototype,"clearButtonLabel",void 0),Me([o.property({type:String})],Ne.prototype,"moreValuesButtonLabel",void 0),Me([o.property({type:String})],Ne.prototype,"noValuesLabel",void 0),Me([i.jsonProperty([])],Ne.prototype,"options",void 0),Me([o.property({type:Boolean})],Ne.prototype,"multivalued",void 0),Me([o.property({type:Boolean})],Ne.prototype,"disabled",void 0),Me([o.property({type:Boolean})],Ne.prototype,"raiseSelectedOptions",void 0),Me([o.property({type:Number})],Ne.prototype,"displayedValuesLimit",void 0),Me([o.property({type:Boolean})],Ne.prototype,"hideClearButton",void 0),Me([o.query(".ft-filter--slot")],Ne.prototype,"slotElement",void 0),Me([o.query(".ft-filter--container")],Ne.prototype,"container",void 0),Me([o.query(".ft-filter--values")],Ne.prototype,"valuesContainer",void 0),Me([o.query(".ft-filter--levels")],Ne.prototype,"levelsContainer",void 0),Me([o.state()],Ne.prototype,"lastLevelHasHiddenvalues",void 0),Me([o.query(".ft-filter--filter input")],Ne.prototype,"filterInput",void 0),Me([o.queryAll(".ft-filter--levels ft-filter-level")],Ne.prototype,"levels",void 0),Me([o.state()],Ne.prototype,"withScroll",void 0),Me([o.state()],Ne.prototype,"filter",void 0),Me([o.state()],Ne.prototype,"slideIn",void 0),Me([o.state()],Ne.prototype,"slideOut",void 0);var Le=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ae extends i.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return e.html`
|
|
1241
1241
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1242
|
-
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}
|
|
1242
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ae.elementDefinitions={},Le([o.property({type:String})],Ae.prototype,"label",void 0),Le([o.property({type:Object,converter:t=>t})],Ae.prototype,"value",void 0),Le([o.property({type:Boolean,reflect:!0})],Ae.prototype,"selected",void 0),Le([o.property({type:Object})],Ae.prototype,"subOptions",void 0),Le([i.jsonProperty({})],Ae.prototype,"renderOption",void 0),Le([o.query(".ft-filter-option--slot")],Ae.prototype,"slotElement",void 0),i.customElement("ft-filter")(Ne),i.customElement("ft-filter-option")(Ae);const De=e.css`
|
|
1243
1243
|
`,Ue=i.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,i)=>{t.baseUrl=i.payload},setApiIntegrationIdentifier:(t,i)=>{t.apiIntegrationIdentifier=i.payload},setUiLocale:(t,i)=>{t.uiLocale=i.payload},setAvailableUiLocales:(t,i)=>{t.availableUiLocales=i.payload},setEditorMode:(t,i)=>{t.editorMode=i.payload},setNoCustom:(t,i)=>{t.noCustom=i.payload},setNoCustomComponent:(t,i)=>{t.noCustomComponent=i.payload},setSession:(t,i)=>{t.session=i.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Re{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=Ue.getState(),o=null!=t?t:e;if(i&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,o,!0)}static get(t){var i;return null!=t?Re.build(t):null!==(i=Re.API)&&void 0!==i?i:Re.API=Re.build()}static await(t){return new Promise((i=>{let e=Re.get(t);if(e)i(e);else{const o=Ue.subscribe((()=>{e=Re.get(t),e&&(o(),i(e))}))}}))}}var Fe;const _e=Symbol("clearAfterUnitTest");class Pe{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Fe]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=Ue.getState().uiLocale,Ue.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ue.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const i=t.name.toLowerCase();this.cache.setFinal(i,t),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const s={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};i.deepEqual(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var s,n,r;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(n=null===(s=this.cache.getNow(t))||void 0===s?void 0:s.messages)&&void 0!==n?n:{};return new i.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},l).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,i){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(i),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(i)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>i.delay(0).then((()=>t())).catch((()=>null)))))}}Fe=_e,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Pe((async(t,i)=>(await Re.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Pe((async(t,i)=>(await Re.await()).getCustomMessageContext(t,i))));const He=window.FluidTopicsI18nService,Ve=window.FluidTopicsCustomI18nService;var We=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ze extends i.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Re.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
|
|
1244
1244
|
<slot></slot>
|
|
1245
1245
|
`}updated(t){super.updated(t),t.has("baseUrl")&&Ue.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Ue.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ue.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Ue.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Ue.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Ue.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Ue.actions.setSession(this.session),t.has("availableUiLocales")&&Ue.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>He.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const i=await t.getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),i.idleTimeoutInMillis),i}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Ze.elementDefinitions={},Ze.styles=De,We([o.property()],Ze.prototype,"baseUrl",void 0),We([o.property()],Ze.prototype,"apiIntegrationIdentifier",void 0),We([o.property()],Ze.prototype,"uiLocale",void 0),We([i.jsonProperty([])],Ze.prototype,"availableUiLocales",void 0),We([o.property({type:Boolean})],Ze.prototype,"editorMode",void 0),We([o.property({type:Boolean})],Ze.prototype,"noCustom",void 0),We([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ze.prototype,"noCustomComponent",void 0),We([o.property({type:Boolean})],Ze.prototype,"withManualResources",void 0),We([i.jsonProperty([])],Ze.prototype,"messageContexts",void 0),We([i.jsonProperty(void 0)],Ze.prototype,"session",void 0),We([o.property({type:Object})],Ze.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(Ze);var Ke=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ge extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const qe=Symbol("registerInterval");class Xe extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[qe]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[qe]):this.dispatchEvent(new Ge)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=qe,Ke([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}function Ye(t){return t.rootNodes.map((t=>Je(t)))}function Je(t){return{label:t.label,value:t.value,selected:t.selected,subOptions:t.childNodes.map((t=>Je(t)))}}const Qe=e.css`
|
|
1246
1246
|
`;var to=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const io=Symbol("i18nProperties"),eo=Symbol("i18nUnsubs");function oo(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?Ve:He}i18n(t,i,...e){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,i,...e);const s=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...s)}onI18nUpdate(t){var i;null===(i=this[io])||void 0===i||i.forEach(((i,e)=>{i.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(i))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var i;super.updated(t),null===(i=this[io])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[io]&&new Set([...this[io].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[eo].has(t)||this[eo].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[eo].forEach((t=>t())),this[eo].clear()}}return i=eo,to([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class so extends(oo(i.FtLitElement)){}class no extends(oo(i.FtLitElementRedux)){}var ro=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class lo extends no{constructor(){super(),this.editorMode=!1,this.addStore(Ue)}render(){return this.key&&this.context?e.html`
|
|
1247
|
-
<span class="ft-i18n"
|
|
1247
|
+
<span class="ft-i18n">
|
|
1248
|
+
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1249
|
+
</span>
|
|
1248
1250
|
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}lo.elementDefinitions={},lo.styles=Qe,ro([i.redux()],lo.prototype,"editorMode",void 0),ro([o.property()],lo.prototype,"context",void 0),ro([o.property()],lo.prototype,"key",void 0),ro([i.jsonProperty([])],lo.prototype,"args",void 0),ro([o.property()],lo.prototype,"defaultMessage",void 0);class ao{static build(t){return new ao(t)}static fromGwt(t){return new ao(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,i)=>{const e=i;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,i)=>(...t)=>He.resolveMessage(this.name,i,...t)})}}i.customElement("ft-i18n")(lo);const ho=ao.build("designedSearchFacet");var po=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class co extends(oo(Xe)){constructor(){super(...arguments),this.facetId="",this.maxValues=7,this.raiseSelectedOptions=!1}setSearchStateManager(t){super.setSearchStateManager(t),this.facetId&&t.addFacet(this.facetId),this.addI18nContext(ho),this.addStore(Ue)}render(){var t;let i=null===(t=this.facets)||void 0===t?void 0:t.find((t=>t.key==this.facetId));return i?e.html`
|
|
1249
1251
|
<ft-filter
|
|
1250
1252
|
part="filter"
|
|
@@ -1261,4 +1263,4 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
|
|
|
1261
1263
|
noValuesLabel="${ho.messages.noFilterValuesAvailable()}"
|
|
1262
1264
|
@change=${this.onFacetValueSelected}
|
|
1263
1265
|
></ft-filter>
|
|
1264
|
-
`:!this.facetId&&this.editorMode?e.html`${ho.messages.noMetadataSelected()}`:e.nothing}updated(t){var i;super.updated(t),t.has("facetId")&&(null===(i=this.stateManager)||void 0===i||i.replaceFacet(t.get("facetId"),this.facetId))}onFacetValueSelected(t){var i;null===(i=this.stateManager)||void 0===i||i.setFilter(this.facetId,t.detail)}}co.elementDefinitions={"ft-filter":
|
|
1266
|
+
`:!this.facetId&&this.editorMode?e.html`${ho.messages.noMetadataSelected()}`:e.nothing}updated(t){var i;super.updated(t),t.has("facetId")&&(null===(i=this.stateManager)||void 0===i||i.replaceFacet(t.get("facetId"),this.facetId))}onFacetValueSelected(t){var i;null===(i=this.stateManager)||void 0===i||i.setFilter(this.facetId,t.detail)}}co.elementDefinitions={"ft-filter":Ne,"ft-typography":ai},co.styles=l,po([o.property()],co.prototype,"facetId",void 0),po([o.property({type:Number})],co.prototype,"maxValues",void 0),po([o.property({type:Boolean})],co.prototype,"raiseSelectedOptions",void 0),po([i.redux({store:"search"})],co.prototype,"request",void 0),po([i.redux({store:"search"})],co.prototype,"facets",void 0),po([i.redux({store:Ue.name})],co.prototype,"editorMode",void 0),i.customElement("ft-search-facet")(co),t.FtSearchFacet=co,t.FtSearchFacetCssVariables={},t.styles=l}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|