@fluid-topics/ft-search-facet 1.0.3 → 1.0.5

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.
@@ -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,j=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),B=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),E=new WeakMap,M=b.createTreeWalker(b,129,null,!1),N=(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 T{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]=N(t,i);if(this.el=T.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 A(t,i,e=t,o){var s,n,r,l;if(i===B)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=A(t,a._$AS(t,i.values),a,o)),i}class L{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 V(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=I,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=A(this,t,i),g(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==B&&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!==I&&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=T.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 L(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 T(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=I,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=I}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=A(this,t,i,0),n=!g(t)||t!==this._$AH&&t!==B,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=A(this,o[e+r],i,r),l===B&&(l=this._$AH[r]),n||(n=!g(l)||l!==this._$AH[r]),l===I?t=I:t!==I&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===I?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===I?void 0:t}}const F=p?p.emptyScript:"";class _ extends U{constructor(){super(...arguments),this.type=4}j(t){t&&t!==I?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=A(this,t,i,0))&&void 0!==e?e:I)===B)return;const o=this._$AH,s=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==I&&(o===I||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 V{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){A(this,t)}}const H=h.litHtmlPolyfillSupport;null==H||H(T,D),(null!==(a=h.litHtmlVersions)&&void 0!==a?a:h.litHtmlVersions=[]).push("2.7.3");
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),N=(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 T{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]=N(t,i);if(this.el=T.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 A(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=A(t,a._$AS(t,i.values),a,o)),i}class L{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=A(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=T.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 L(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 T(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=A(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=A(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=A(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){A(this,t)}}const V=h.litHtmlPolyfillSupport;null==V||V(T,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)})(j);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"),jt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",Q.lineHeight,"1.5"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",Q.textTransform,"inherit"),It={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"),Nt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",Q.fontWeight,"normal"),Tt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",Q.letterSpacing,"0.396px"),At=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",Q.lineHeight,"1.33"),Lt=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"),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",J),Ht=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`
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"),Nt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",Q.fontWeight,"normal"),Tt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",Q.letterSpacing,"0.396px"),At=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",Q.lineHeight,"1.33"),Lt=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};
@@ -53,17 +53,17 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
53
53
  font-size: ${zt};
54
54
  font-weight: ${Ot};
55
55
  letter-spacing: ${Ct};
56
- line-height: ${jt};
57
- text-transform: ${Bt};
56
+ line-height: ${It};
57
+ text-transform: ${jt};
58
58
  }
59
59
  `,ii=e.css`
60
60
  .ft-typography--body2 {
61
- font-family: ${It.fontFamily};
62
- font-size: ${It.fontSize};
63
- font-weight: ${It.fontWeight};
64
- letter-spacing: ${It.letterSpacing};
65
- line-height: ${It.lineHeight};
66
- text-transform: ${It.textTransform};
61
+ font-family: ${Bt.fontFamily};
62
+ font-size: ${Bt.fontSize};
63
+ font-weight: ${Bt.fontWeight};
64
+ letter-spacing: ${Bt.letterSpacing};
65
+ line-height: ${Bt.lineHeight};
66
+ text-transform: ${Bt.textTransform};
67
67
  }
68
68
  `,ei=e.css`
69
69
  .ft-typography--caption {
@@ -85,8 +85,8 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
85
85
  }
86
86
  `,si=e.css`
87
87
  .ft-typography--overline {
88
- font-family: ${Vt};
89
- font-size: ${Ht};
88
+ font-family: ${Ht};
89
+ font-size: ${Vt};
90
90
  font-weight: ${Wt};
91
91
  letter-spacing: ${Zt};
92
92
  line-height: ${Kt};
@@ -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((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const 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()}}mi.elementDefinitions={},mi.styles=gi,yi([o.property({type:Boolean})],mi.prototype,"primary",void 0),yi([o.property({type:Boolean})],mi.prototype,"secondary",void 0),yi([o.property({type:Boolean})],mi.prototype,"unbounded",void 0),yi([o.property({type:Boolean})],mi.prototype,"activated",void 0),yi([o.property({type:Boolean})],mi.prototype,"selected",void 0),yi([o.property({type:Boolean})],mi.prototype,"disabled",void 0),yi([o.state()],mi.prototype,"hovered",void 0),yi([o.state()],mi.prototype,"focused",void 0),yi([o.state()],mi.prototype,"pressed",void 0),yi([o.state()],mi.prototype,"rippling",void 0),yi([o.state()],mi.prototype,"rippleSize",void 0),yi([o.state()],mi.prototype,"originX",void 0),yi([o.state()],mi.prototype,"originY",void 0),yi([o.query(".ft-ripple")],mi.prototype,"ripple",void 0),yi([o.query(".ft-ripple--effect")],mi.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(mi);const $i=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),wi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),ki=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Si=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),zi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Oi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ci=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}}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()}}mi.elementDefinitions={},mi.styles=gi,yi([o.property({type:Boolean})],mi.prototype,"primary",void 0),yi([o.property({type:Boolean})],mi.prototype,"secondary",void 0),yi([o.property({type:Boolean})],mi.prototype,"unbounded",void 0),yi([o.property({type:Boolean})],mi.prototype,"activated",void 0),yi([o.property({type:Boolean})],mi.prototype,"selected",void 0),yi([o.property({type:Boolean})],mi.prototype,"disabled",void 0),yi([o.state()],mi.prototype,"hovered",void 0),yi([o.state()],mi.prototype,"focused",void 0),yi([o.state()],mi.prototype,"pressed",void 0),yi([o.state()],mi.prototype,"rippling",void 0),yi([o.state()],mi.prototype,"rippleSize",void 0),yi([o.state()],mi.prototype,"originX",void 0),yi([o.state()],mi.prototype,"originY",void 0),yi([o.query(".ft-ripple")],mi.prototype,"ripple",void 0),yi([o.query(".ft-ripple--effect")],mi.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(mi);const $i=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),wi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),ki=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Si=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),zi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Oi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ci=e.css`
223
223
  .ft-tooltip--container {
224
224
  display: block;
225
225
  position: relative;
@@ -251,7 +251,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
251
251
  position: relative;
252
252
  word-break: break-word;
253
253
  }
254
- `;var ji=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,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 Bi extends i.FtLitElement{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 i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
254
+ `;var Ii=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 ji extends i.FtLitElement{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 i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
255
255
  <div part="container"
256
256
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
257
257
  @mouseenter=${this.onHover}
@@ -269,7 +269,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
269
269
  </div>
270
270
  </div>
271
271
  </div>
272
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&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 i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${Oi})`}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())}}Bi.elementDefinitions={"ft-typography":ai},Bi.styles=Ci,ji([o.property()],Bi.prototype,"text",void 0),ji([o.property({type:Boolean})],Bi.prototype,"manual",void 0),ji([o.property({type:Boolean})],Bi.prototype,"inline",void 0),ji([o.property({type:Number})],Bi.prototype,"delay",void 0),ji([o.property()],Bi.prototype,"position",void 0),ji([o.queryAssignedNodes("",!0)],Bi.prototype,"slotNodes",void 0),ji([o.query(".ft-tooltip--container")],Bi.prototype,"container",void 0),ji([o.query("slot")],Bi.prototype,"target",void 0),ji([o.query(".ft-tooltip")],Bi.prototype,"tooltip",void 0),ji([o.query(".ft-tooltip--content")],Bi.prototype,"tooltipContent",void 0),ji([o.state()],Bi.prototype,"visible",void 0),i.customElement("ft-tooltip")(Bi);const Ii={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ei=e.css`
272
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&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 i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${Oi})`}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())}}ji.elementDefinitions={"ft-typography":ai},ji.styles=Ci,Ii([o.property()],ji.prototype,"text",void 0),Ii([o.property({type:Boolean})],ji.prototype,"manual",void 0),Ii([o.property({type:Boolean})],ji.prototype,"inline",void 0),Ii([o.property({type:Number})],ji.prototype,"delay",void 0),Ii([o.property()],ji.prototype,"position",void 0),Ii([o.queryAssignedNodes("",!0)],ji.prototype,"slotNodes",void 0),Ii([o.query(".ft-tooltip--container")],ji.prototype,"container",void 0),Ii([o.query("slot")],ji.prototype,"target",void 0),Ii([o.query(".ft-tooltip")],ji.prototype,"tooltip",void 0),Ii([o.query(".ft-tooltip--content")],ji.prototype,"tooltipContent",void 0),Ii([o.state()],ji.prototype,"visible",void 0),i.customElement("ft-tooltip")(ji);const Bi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ei=e.css`
273
273
  :host {
274
274
  line-height: 0;
275
275
  }
@@ -278,8 +278,8 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
278
278
  display: inline-block;
279
279
  position: relative;
280
280
 
281
- width: ${Ii.size};
282
- height: ${Ii.size};
281
+ width: ${Bi.size};
282
+ height: ${Bi.size};
283
283
  }
284
284
 
285
285
  .ft-loader div {
@@ -288,7 +288,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
288
288
  width: 25%;
289
289
  height: 25%;
290
290
  border-radius: 50%;
291
- background: ${Ii.color};
291
+ background: ${Bi.color};
292
292
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
293
293
  }
294
294
 
@@ -335,7 +335,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
335
335
  transform: translate(0, 0);
336
336
  }
337
337
  100% {
338
- transform: translate(calc(0.35 * ${Ii.size}), 0);
338
+ transform: translate(calc(0.35 * ${Bi.size}), 0);
339
339
  }
340
340
  }
341
341
  `;class Mi extends i.FtLitElement{render(){return e.html`
@@ -398,7 +398,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0: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 Di.file_format:this.resolvedIcon=null!==(t=Ti[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Di.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Ni[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ri.elementDefinitions={},Ri.styles=Li,Ui([o.property()],Ri.prototype,"variant",void 0),Ui([o.property()],Ri.prototype,"value",void 0),Ui([o.state()],Ri.prototype,"resolvedIcon",void 0),Ui([o.query("slot")],Ri.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ri);const Fi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),_i={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Fi,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",Fi),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")},Pi=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Vi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Pi,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Pi)},Hi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Wi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Zi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Ki=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Gi=[e.css`
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 Di.file_format:this.resolvedIcon=null!==(t=Ti[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Di.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Ni[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ri.elementDefinitions={},Ri.styles=Li,Ui([o.property()],Ri.prototype,"variant",void 0),Ui([o.property()],Ri.prototype,"value",void 0),Ui([o.state()],Ri.prototype,"resolvedIcon",void 0),Ui([o.query("slot")],Ri.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ri);const Fi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),_i={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Fi,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",Fi),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")},Pi=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Pi,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Pi)},Vi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Wi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Zi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Ki=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Gi=[e.css`
402
402
  :host {
403
403
  display: inline-block;
404
404
  max-width: 100%;
@@ -457,7 +457,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
457
457
 
458
458
  .ft-button.ft-button--dense {
459
459
  padding: ${Wi} ${Zi};
460
- border-radius: ${Hi};
460
+ border-radius: ${Vi};
461
461
  gap: ${Ki};
462
462
  }
463
463
 
@@ -483,9 +483,9 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
483
483
  }
484
484
 
485
485
  .ft-button.ft-button--primary {
486
- background-color: ${Vi.backgroundColor};
487
- --ft-button-internal-color: ${Vi.color};
488
- ${i.setVariable(ci.color,Vi.rippleColor)};
486
+ background-color: ${Hi.backgroundColor};
487
+ --ft-button-internal-color: ${Hi.color};
488
+ ${i.setVariable(ci.color,Hi.rippleColor)};
489
489
  }
490
490
 
491
491
  .ft-button:focus {
@@ -532,8 +532,8 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
532
532
  }
533
533
 
534
534
  ft-loader {
535
- ${i.setVariable(Ii.size,_i.iconSize)};
536
- ${i.setVariable(Ii.color,"var(--ft-button-internal-color)")};
535
+ ${i.setVariable(Bi.size,_i.iconSize)};
536
+ ${i.setVariable(Bi.color,"var(--ft-button-internal-color)")};
537
537
  }
538
538
  `,i.noTextSelect];var qi=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 Xi extends i.FtLitElement{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(e.html`
539
539
  <button part="button"
@@ -558,7 +558,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0: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
- <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}}Xi.elementDefinitions={"ft-ripple":mi,"ft-tooltip":Bi,"ft-typography":ai,"ft-icon":Ri,"ft-loader":Mi},Xi.styles=[i.safariEllipsisFix,Gi],qi([o.property({type:String,reflect:!0})],Xi.prototype,"role",void 0),qi([o.property({type:Boolean})],Xi.prototype,"primary",void 0),qi([o.property({type:Boolean})],Xi.prototype,"outlined",void 0),qi([o.property({type:Boolean})],Xi.prototype,"disabled",void 0),qi([o.property({type:Boolean})],Xi.prototype,"dense",void 0),qi([o.property({type:Boolean})],Xi.prototype,"round",void 0),qi([o.property()],Xi.prototype,"label",void 0),qi([o.property()],Xi.prototype,"icon",void 0),qi([o.property()],Xi.prototype,"iconVariant",void 0),qi([o.property({type:Boolean})],Xi.prototype,"trailingIcon",void 0),qi([o.property({type:Boolean})],Xi.prototype,"loading",void 0),qi([o.property()],Xi.prototype,"tooltipPosition",void 0),qi([o.property({type:Boolean})],Xi.prototype,"hideTooltip",void 0),qi([o.property({type:Boolean})],Xi.prototype,"forceTooltip",void 0),qi([o.query(".ft-button")],Xi.prototype,"button",void 0),qi([o.query(".ft-button--label slot")],Xi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Xi);const Yi=i.FtCssVariableFactory.extend("--ft-checkbox-text-color",i.designSystemVariables.colorOnSurfaceHigh),Ji=i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),Qi=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),te=i.FtCssVariableFactory.extend("--ft-checkbox-border-color",i.designSystemVariables.colorOnSurfaceMedium),ie=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),ee=e.css`
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}}Xi.elementDefinitions={"ft-ripple":mi,"ft-tooltip":ji,"ft-typography":ai,"ft-icon":Ri,"ft-loader":Mi},Xi.styles=[i.safariEllipsisFix,Gi],qi([o.property({type:String,reflect:!0})],Xi.prototype,"role",void 0),qi([o.property({type:Boolean})],Xi.prototype,"primary",void 0),qi([o.property({type:Boolean})],Xi.prototype,"outlined",void 0),qi([o.property({type:Boolean})],Xi.prototype,"disabled",void 0),qi([o.property({type:Boolean})],Xi.prototype,"dense",void 0),qi([o.property({type:Boolean})],Xi.prototype,"round",void 0),qi([o.property()],Xi.prototype,"label",void 0),qi([o.property()],Xi.prototype,"icon",void 0),qi([o.property()],Xi.prototype,"iconVariant",void 0),qi([o.property({type:Boolean})],Xi.prototype,"trailingIcon",void 0),qi([o.property({type:Boolean})],Xi.prototype,"loading",void 0),qi([o.property()],Xi.prototype,"tooltipPosition",void 0),qi([o.property({type:Boolean})],Xi.prototype,"hideTooltip",void 0),qi([o.property({type:Boolean})],Xi.prototype,"forceTooltip",void 0),qi([o.query(".ft-button")],Xi.prototype,"button",void 0),qi([o.query(".ft-button--label slot")],Xi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Xi);const Yi=i.FtCssVariableFactory.extend("--ft-checkbox-text-color",i.designSystemVariables.colorOnSurfaceHigh),Ji=i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),Qi=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),te=i.FtCssVariableFactory.extend("--ft-checkbox-border-color",i.designSystemVariables.colorOnSurfaceMedium),ie=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),ee=e.css`
562
562
  * {
563
563
  box-sizing: border-box;
564
564
  }
@@ -775,7 +775,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
775
775
  @keydown=${this.onKeyDown}
776
776
  @focusin=${this.focusCurrentValue}
777
777
  ></slot>
778
- `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((i=>i.checked=t.detail.value===i.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let i=this.findFtRadio(t),e=this.radioButtons.indexOf(i)-1;this.radioButtons[e<0?this.radioButtons.length-1:e].select();break}case"ArrowDown":case"ArrowRight":{let i=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}ve.elementDefinitions={},ve.styles=fe,ue([o.property()],ve.prototype,"name",void 0),ue([o.queryAssignedElements()],ve.prototype,"radioButtons",void 0),i.customElement("ft-radio")(de),i.customElement("ft-radio-group")(ve);const be={borderRadiusM:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusM,"Design system"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:i.FtCssVariableFactory.external(It.fontFamily,"Body2 typography"),fontSize:i.FtCssVariableFactory.external(It.fontSize,"Body2 typography"),fontWeight:i.FtCssVariableFactory.external(It.fontWeight,"Body2 typography"),letterSpacing:i.FtCssVariableFactory.external(It.letterSpacing,"Body2 typography"),lineHeight:i.FtCssVariableFactory.external(It.lineHeight,"Body2 typography"),textTransform:i.FtCssVariableFactory.external(It.textTransform,"Body2 typography")},xe=e.css`
778
+ `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((i=>i.checked=t.detail.value===i.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let i=this.findFtRadio(t),e=this.radioButtons.indexOf(i)-1;this.radioButtons[e<0?this.radioButtons.length-1:e].select();break}case"ArrowDown":case"ArrowRight":{let i=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}ve.elementDefinitions={},ve.styles=fe,ue([o.property()],ve.prototype,"name",void 0),ue([o.queryAssignedElements()],ve.prototype,"radioButtons",void 0),i.customElement("ft-radio")(de),i.customElement("ft-radio-group")(ve);const be={borderRadiusM:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusM,"Design system"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:i.FtCssVariableFactory.external(Bt.fontFamily,"Body2 typography"),fontSize:i.FtCssVariableFactory.external(Bt.fontSize,"Body2 typography"),fontWeight:i.FtCssVariableFactory.external(Bt.fontWeight,"Body2 typography"),letterSpacing:i.FtCssVariableFactory.external(Bt.letterSpacing,"Body2 typography"),lineHeight:i.FtCssVariableFactory.external(Bt.lineHeight,"Body2 typography"),textTransform:i.FtCssVariableFactory.external(Bt.textTransform,"Body2 typography")},xe=e.css`
779
779
  .ft-filter-level--container {
780
780
  display: flex;
781
781
  flex-direction: column;
@@ -841,7 +841,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
841
841
  margin: 10px 0;
842
842
  color: ${be.colorOnSurfaceMedium};
843
843
  }
844
- `;var ge=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 ye extends i.FtLitElement{constructor(){super(...arguments),this.id="",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
+ `;var ge=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 ye 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`
845
845
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
846
846
  ${null==this.parent?null:e.html`
847
847
  <div tabindex="0"
@@ -885,7 +885,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
885
885
  `:e.nothing}
886
886
  </div>
887
887
  `}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 i;return e.html`
888
- <ft-checkbox name="${this.id}"
888
+ <ft-checkbox name="${this.filterId}"
889
889
  part="multivalued-option"
890
890
  data-value="${t.value}"
891
891
  .checked=${t.selected}
@@ -895,7 +895,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
895
895
  ${t.renderOption?t.renderOption:t.label}
896
896
  </ft-checkbox>
897
897
  `}buildMonoValuedOption(t){return e.html`
898
- <ft-radio name="${this.id+Math.round(1e6*Math.random())}"
898
+ <ft-radio name="${this.filterId+Math.round(1e6*Math.random())}"
899
899
  part="monovalued-option"
900
900
  data-value="${t.value}"
901
901
  .checked=${t.selected}
@@ -905,7 +905,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
905
905
  @change=${t=>t.stopPropagation()}>
906
906
  ${t.renderOption?t.renderOption:t.label}
907
907
  </ft-radio>
908
- `}onRadioKeyUp(t,i){i.selected&&" "===t.key&&this.optionsChanged(t,i)}optionsChanged(t,i){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:i}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}ye.elementDefinitions={"ft-button":Xi,"ft-ripple":mi,"ft-typography":ai,"ft-checkbox":se,"ft-icon":Ri,"ft-radio":de},ye.styles=xe,ge([o.property({type:String})],ye.prototype,"id",void 0),ge([o.property({type:Object})],ye.prototype,"parent",void 0),ge([o.property({type:Array})],ye.prototype,"options",void 0),ge([o.property({type:Boolean})],ye.prototype,"multivalued",void 0),ge([o.property({type:Boolean})],ye.prototype,"disabled",void 0),ge([o.property({type:Boolean})],ye.prototype,"hideSelectedOptions",void 0),ge([o.property({type:Boolean})],ye.prototype,"preventNavigation",void 0),ge([o.property({type:String})],ye.prototype,"filter",void 0),ge([o.property({type:String})],ye.prototype,"moreValuesButtonLabel",void 0),ge([o.property({type:String})],ye.prototype,"noValuesLabel",void 0),ge([o.property({type:Number})],ye.prototype,"displayedValuesLimit",void 0),ge([o.query(".ft-filter-level--container")],ye.prototype,"container",void 0),ge([o.state()],ye.prototype,"displayedPages",void 0);const me={buttonsColor:i.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",i.designSystemVariables.colorPrimary),buttonsZIndex:i.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:i.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system")},$e=e.css`
908
+ `}onRadioKeyUp(t,i){i.selected&&" "===t.key&&this.optionsChanged(t,i)}optionsChanged(t,i){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:i}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}ye.elementDefinitions={"ft-button":Xi,"ft-ripple":mi,"ft-typography":ai,"ft-checkbox":se,"ft-icon":Ri,"ft-radio":de},ye.styles=xe,ge([o.property({type:String})],ye.prototype,"filterId",void 0),ge([o.property({type:Object})],ye.prototype,"parent",void 0),ge([o.property({type:Array})],ye.prototype,"options",void 0),ge([o.property({type:Boolean})],ye.prototype,"multivalued",void 0),ge([o.property({type:Boolean})],ye.prototype,"disabled",void 0),ge([o.property({type:Boolean})],ye.prototype,"hideSelectedOptions",void 0),ge([o.property({type:Boolean})],ye.prototype,"preventNavigation",void 0),ge([o.property({type:String})],ye.prototype,"filter",void 0),ge([o.property({type:String})],ye.prototype,"moreValuesButtonLabel",void 0),ge([o.property({type:String})],ye.prototype,"noValuesLabel",void 0),ge([o.property({type:Number})],ye.prototype,"displayedValuesLimit",void 0),ge([o.query(".ft-filter-level--container")],ye.prototype,"container",void 0),ge([o.state()],ye.prototype,"displayedPages",void 0);const me={buttonsColor:i.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",i.designSystemVariables.colorPrimary),buttonsZIndex:i.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:i.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system")},$e=e.css`
909
909
  .ft-snap-scroll {
910
910
  box-sizing: border-box;
911
911
  position: relative;
@@ -1054,7 +1054,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1054
1054
  @click=${this.next}
1055
1055
  ></ft-button>
1056
1056
  </div>
1057
- `}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new ke(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}Se.elementDefinitions={"ft-button":Xi},Se.styles=$e,we([o.property({type:Boolean})],Se.prototype,"horizontal",void 0),we([o.property({type:Boolean})],Se.prototype,"hideScrollbar",void 0),we([o.property({type:Boolean})],Se.prototype,"controls",void 0),we([o.property({type:Boolean})],Se.prototype,"limitSize",void 0),we([o.state()],Se.prototype,"elements",void 0),we([o.state()],Se.prototype,"currentElement",void 0),we([o.state()],Se.prototype,"withScroll",void 0),we([o.state()],Se.prototype,"startReached",void 0),we([o.state()],Se.prototype,"endReached",void 0),we([o.query(".ft-snap-scroll--content")],Se.prototype,"contentSlot",void 0),i.customElement("ft-snap-scroll")(Se);const ze=i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),Oe=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),Ce=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),je=i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),Be=i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),Ie=i.FtCssVariableFactory.external(i.designSystemVariables.transitionDuration,"Design system"),Ee=i.FtCssVariableFactory.external(i.designSystemVariables.transitionTimingFunction,"Design system"),Me=[ei,e.css`
1057
+ `}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new ke(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}Se.elementDefinitions={"ft-button":Xi},Se.styles=$e,we([o.property({type:Boolean})],Se.prototype,"horizontal",void 0),we([o.property({type:Boolean})],Se.prototype,"hideScrollbar",void 0),we([o.property({type:Boolean})],Se.prototype,"controls",void 0),we([o.property({type:Boolean})],Se.prototype,"limitSize",void 0),we([o.state()],Se.prototype,"elements",void 0),we([o.state()],Se.prototype,"currentElement",void 0),we([o.state()],Se.prototype,"withScroll",void 0),we([o.state()],Se.prototype,"startReached",void 0),we([o.state()],Se.prototype,"endReached",void 0),we([o.query(".ft-snap-scroll--content")],Se.prototype,"contentSlot",void 0),i.customElement("ft-snap-scroll")(Se);const ze=i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),Oe=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),Ce=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),Ie=i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),je=i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),Be=i.FtCssVariableFactory.external(i.designSystemVariables.transitionDuration,"Design system"),Ee=i.FtCssVariableFactory.external(i.designSystemVariables.transitionTimingFunction,"Design system"),Me=[ei,e.css`
1058
1058
  :host {
1059
1059
  display: flex;
1060
1060
  max-height: 100%;
@@ -1103,8 +1103,8 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1103
1103
  padding: 0 10px;
1104
1104
  overflow: hidden;
1105
1105
  height: 32px;
1106
- transition: height ${Ie} ${Ee},
1107
- margin ${Ie} ${Ee};
1106
+ transition: height ${Be} ${Ee},
1107
+ margin ${Be} ${Ee};
1108
1108
  transition-delay: 500ms;
1109
1109
  }
1110
1110
 
@@ -1119,9 +1119,9 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1119
1119
  border-radius: 4px;
1120
1120
  border: 1px solid ${ze};
1121
1121
  padding: 4px;
1122
- background-color: ${Be};
1122
+ background-color: ${je};
1123
1123
  color: ${Oe};
1124
- outline-color: ${je};
1124
+ outline-color: ${Ie};
1125
1125
  }
1126
1126
 
1127
1127
  input::placeholder {
@@ -1163,30 +1163,32 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1163
1163
  height: 0;
1164
1164
  }
1165
1165
 
1166
- slot {
1166
+ slot:not([name]) {
1167
1167
  display: none;
1168
1168
  }
1169
- `];var Ne=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,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 Ae 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.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new i.Debouncer(300),this.changeDebouncer=new i.Debouncer(10)}get flatOptions(){return hi(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(){var t,i;const o=this.flatOptions.some((t=>t.selected)),s=this.withScroll||this.filter||null!==(i=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==i&&i,n=this.filterPlaceHolder.replace("{0}",this.label);return e.html`
1169
+ `];var Ne=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,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 Ae 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 hi(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`
1170
1170
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1171
1171
  part="container">
1172
- ${this.label||o?e.html`
1172
+ ${this.label||t?e.html`
1173
1173
  <div class="ft-filter--header" part="header">
1174
- <ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}
1174
+ <ft-typography class="ft-filter--label" variant="overline" part="label">
1175
+ ${this.label}
1175
1176
  </ft-typography>
1176
- ${o&&!this.hideClearButton?e.html`
1177
+ <slot name="label"></slot>
1178
+ ${t&&!this.hideClearButton?e.html`
1177
1179
  <ft-button icon="close" dense @click=${this.clear} part="clear-button">
1178
1180
  ${this.clearButtonLabel}
1179
1181
  </ft-button>
1180
1182
  `:null}
1181
1183
  </div>
1182
1184
  `:null}
1183
- <div class="ft-filter--filter" ?hidden=${!s}>
1185
+ <div class="ft-filter--filter" ?hidden=${!i}>
1184
1186
  <input type="search"
1185
1187
  part="input"
1186
1188
  class="ft-typography--caption"
1187
- ?disabled=${!s}
1188
- placeholder="${n}"
1189
- size="${s?n.length:0}"
1189
+ ?disabled=${!i}
1190
+ placeholder="${o}"
1191
+ size="${i?o.length:0}"
1190
1192
  @search=${this.onFilterChange}
1191
1193
  @keyup=${this.onFilterChange}>
1192
1194
  </div>
@@ -1197,10 +1199,10 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1197
1199
  @slotchange=${this.updateOptionsFromSlot}
1198
1200
  @option-change=${this.optionsChanged}></slot>
1199
1201
  </div>
1200
- `}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)))}}contentAvailableCallback(t){var i,e;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))}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
+ `}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)))}}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`
1201
1203
  ${this.raiseSelectedOptions&&i.length>0?e.html`
1202
1204
  <ft-filter-level
1203
- id="${this.id}"
1205
+ filterId="${this.id}"
1204
1206
  ?multivalued=${this.multivalued}
1205
1207
  ?disabled=${this.disabled}
1206
1208
  preventNavigation
@@ -1220,7 +1222,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1220
1222
  `}renderLevel(t,i,o){return e.html`
1221
1223
  <ft-filter-level
1222
1224
  class="${t}"
1223
- id="${this.id}"
1225
+ filterId="${this.id}"
1224
1226
  .filter="${this.filter}"
1225
1227
  moreValuesButtonLabel="${this.moreValuesButtonLabel}"
1226
1228
  ?multivalued=${this.multivalued}
@@ -1236,15 +1238,15 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1236
1238
  .exportpartsPrefixes=${["values","available-values"]}
1237
1239
  noValuesLabel="${this.noValuesLabel}"
1238
1240
  ></ft-filter-level>
1239
- `}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.dispatchEvent(new Te(this.selectedValues)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}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)}}Ae.elementDefinitions={"ft-button":Xi,"ft-filter-level":ye,"ft-snap-scroll":Se,"ft-typography":ai},Ae.styles=Me,Ne([o.property({type:String})],Ae.prototype,"id",void 0),Ne([o.property({type:String})],Ae.prototype,"label",void 0),Ne([o.property({type:String})],Ae.prototype,"filterPlaceHolder",void 0),Ne([o.property({type:String})],Ae.prototype,"clearButtonLabel",void 0),Ne([o.property({type:String})],Ae.prototype,"moreValuesButtonLabel",void 0),Ne([o.property({type:String})],Ae.prototype,"noValuesLabel",void 0),Ne([i.jsonProperty([])],Ae.prototype,"options",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"multivalued",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"raiseSelectedOptions",void 0),Ne([o.property({type:Number})],Ae.prototype,"displayedValuesLimit",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"hideClearButton",void 0),Ne([o.query(".ft-filter--slot")],Ae.prototype,"slotElement",void 0),Ne([o.query(".ft-filter--container")],Ae.prototype,"container",void 0),Ne([o.query(".ft-filter--values")],Ae.prototype,"valuesContainer",void 0),Ne([o.query(".ft-filter--levels")],Ae.prototype,"levelsContainer",void 0),Ne([o.query(".ft-filter--levels ft-filter-level:last-child")],Ae.prototype,"lastLevel",void 0),Ne([o.query(".ft-filter--filter input")],Ae.prototype,"filterInput",void 0),Ne([o.queryAll(".ft-filter--levels ft-filter-level")],Ae.prototype,"levels",void 0),Ne([o.state()],Ae.prototype,"withScroll",void 0),Ne([o.state()],Ae.prototype,"filter",void 0),Ne([o.state()],Ae.prototype,"slideIn",void 0),Ne([o.state()],Ae.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 De extends i.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return e.html`
1241
+ `}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)}}Ae.elementDefinitions={"ft-button":Xi,"ft-filter-level":ye,"ft-snap-scroll":Se,"ft-typography":ai},Ae.styles=Me,Ne([o.property({type:String})],Ae.prototype,"id",void 0),Ne([o.property({type:String})],Ae.prototype,"label",void 0),Ne([o.property({type:String})],Ae.prototype,"filterPlaceHolder",void 0),Ne([o.property({type:String})],Ae.prototype,"clearButtonLabel",void 0),Ne([o.property({type:String})],Ae.prototype,"moreValuesButtonLabel",void 0),Ne([o.property({type:String})],Ae.prototype,"noValuesLabel",void 0),Ne([i.jsonProperty([])],Ae.prototype,"options",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"multivalued",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"raiseSelectedOptions",void 0),Ne([o.property({type:Number})],Ae.prototype,"displayedValuesLimit",void 0),Ne([o.property({type:Boolean})],Ae.prototype,"hideClearButton",void 0),Ne([o.query(".ft-filter--slot")],Ae.prototype,"slotElement",void 0),Ne([o.query(".ft-filter--container")],Ae.prototype,"container",void 0),Ne([o.query(".ft-filter--values")],Ae.prototype,"valuesContainer",void 0),Ne([o.query(".ft-filter--levels")],Ae.prototype,"levelsContainer",void 0),Ne([o.state()],Ae.prototype,"lastLevelHasHiddenvalues",void 0),Ne([o.query(".ft-filter--filter input")],Ae.prototype,"filterInput",void 0),Ne([o.queryAll(".ft-filter--levels ft-filter-level")],Ae.prototype,"levels",void 0),Ne([o.state()],Ae.prototype,"withScroll",void 0),Ne([o.state()],Ae.prototype,"filter",void 0),Ne([o.state()],Ae.prototype,"slideIn",void 0),Ne([o.state()],Ae.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 De extends i.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return e.html`
1240
1242
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1241
1243
  `}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}))}}De.elementDefinitions={},Le([o.property({type:String})],De.prototype,"label",void 0),Le([o.property({type:Object,converter:t=>t})],De.prototype,"value",void 0),Le([o.property({type:Boolean,reflect:!0})],De.prototype,"selected",void 0),Le([o.property({type:Object})],De.prototype,"subOptions",void 0),Le([i.jsonProperty({})],De.prototype,"renderOption",void 0),Le([o.query(".ft-filter-option--slot")],De.prototype,"slotElement",void 0),i.customElement("ft-filter")(Ae),i.customElement("ft-filter-option")(De);const Ue=e.css`
1242
- `,Re=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 Fe{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=Re.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?Fe.build(t):null!==(i=Fe.API)&&void 0!==i?i:Fe.API=Fe.build()}static await(t){return new Promise((i=>{let e=Fe.get(t);if(e)i(e);else{const o=Re.subscribe((()=>{e=Fe.get(t),e&&(o(),i(e))}))}}))}}var _e;const Pe=Symbol("clearAfterUnitTest");class Ve{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[_e]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=Re.getState().uiLocale,Re.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Re.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)))))}}_e=Pe,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ve((async(t,i)=>(await Fe.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ve((async(t,i)=>(await Fe.await()).getCustomMessageContext(t,i))));const He=window.FluidTopicsI18nService,We=window.FluidTopicsCustomI18nService;var Ze=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 Ke 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=()=>Fe.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
1244
+ `,Re=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 Fe{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=Re.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?Fe.build(t):null!==(i=Fe.API)&&void 0!==i?i:Fe.API=Fe.build()}static await(t){return new Promise((i=>{let e=Fe.get(t);if(e)i(e);else{const o=Re.subscribe((()=>{e=Fe.get(t),e&&(o(),i(e))}))}}))}}var _e;const Pe=Symbol("clearAfterUnitTest");class He{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[_e]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=Re.getState().uiLocale,Re.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Re.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)))))}}_e=Pe,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new He((async(t,i)=>(await Fe.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new He((async(t,i)=>(await Fe.await()).getCustomMessageContext(t,i))));const Ve=window.FluidTopicsI18nService,We=window.FluidTopicsCustomI18nService;var Ze=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 Ke 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=()=>Fe.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
1243
1245
  <slot></slot>
1244
- `}updated(t){super.updated(t),t.has("baseUrl")&&Re.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Re.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Re.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Re.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Re.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Re.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Re.actions.setSession(this.session),t.has("availableUiLocales")&&Re.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()))))}}Ke.elementDefinitions={},Ke.styles=Ue,Ze([o.property()],Ke.prototype,"baseUrl",void 0),Ze([o.property()],Ke.prototype,"apiIntegrationIdentifier",void 0),Ze([o.property()],Ke.prototype,"uiLocale",void 0),Ze([i.jsonProperty([])],Ke.prototype,"availableUiLocales",void 0),Ze([o.property({type:Boolean})],Ke.prototype,"editorMode",void 0),Ze([o.property({type:Boolean})],Ke.prototype,"noCustom",void 0),Ze([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ke.prototype,"noCustomComponent",void 0),Ze([o.property({type:Boolean})],Ke.prototype,"withManualResources",void 0),Ze([i.jsonProperty([])],Ke.prototype,"messageContexts",void 0),Ze([i.jsonProperty(void 0)],Ke.prototype,"session",void 0),Ze([o.property({type:Object})],Ke.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(Ke);var Ge=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 qe extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Xe=Symbol("registerInterval");class Ye 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[Xe]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Xe]):this.dispatchEvent(new qe)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=Xe,Ge([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}function Je(t){return t.rootNodes.map((t=>Qe(t)))}function Qe(t){return{label:t.label,value:t.value,selected:t.selected,subOptions:t.childNodes.map((t=>Qe(t)))}}const to=e.css`
1245
- `;var io=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 eo=Symbol("i18nProperties"),oo=Symbol("i18nUnsubs");function so(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?We: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[eo])||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[eo])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[eo]&&new Set([...this[eo].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[oo].has(t)||this[oo].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[oo].forEach((t=>t())),this[oo].clear()}}return i=oo,io([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class no extends(so(i.FtLitElement)){}class ro extends(so(i.FtLitElementRedux)){}var lo=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 ao extends ro{constructor(){super(),this.editorMode=!1,this.addStore(Re)}render(){return this.key&&this.context?e.html`
1246
+ `}updated(t){super.updated(t),t.has("baseUrl")&&Re.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Re.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Re.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Re.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Re.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Re.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Re.actions.setSession(this.session),t.has("availableUiLocales")&&Re.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ve.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()))))}}Ke.elementDefinitions={},Ke.styles=Ue,Ze([o.property()],Ke.prototype,"baseUrl",void 0),Ze([o.property()],Ke.prototype,"apiIntegrationIdentifier",void 0),Ze([o.property()],Ke.prototype,"uiLocale",void 0),Ze([i.jsonProperty([])],Ke.prototype,"availableUiLocales",void 0),Ze([o.property({type:Boolean})],Ke.prototype,"editorMode",void 0),Ze([o.property({type:Boolean})],Ke.prototype,"noCustom",void 0),Ze([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ke.prototype,"noCustomComponent",void 0),Ze([o.property({type:Boolean})],Ke.prototype,"withManualResources",void 0),Ze([i.jsonProperty([])],Ke.prototype,"messageContexts",void 0),Ze([i.jsonProperty(void 0)],Ke.prototype,"session",void 0),Ze([o.property({type:Object})],Ke.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(Ke);var Ge=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 qe extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Xe=Symbol("registerInterval");class Ye 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[Xe]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Xe]):this.dispatchEvent(new qe)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=Xe,Ge([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}function Je(t){return t.rootNodes.map((t=>Qe(t)))}function Qe(t){return{label:t.label,value:t.value,selected:t.selected,subOptions:t.childNodes.map((t=>Qe(t)))}}const to=e.css`
1247
+ `;var io=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 eo=Symbol("i18nProperties"),oo=Symbol("i18nUnsubs");function so(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?We:Ve}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[eo])||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[eo])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[eo]&&new Set([...this[eo].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[oo].has(t)||this[oo].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[oo].forEach((t=>t())),this[oo].clear()}}return i=oo,io([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class no extends(so(i.FtLitElement)){}class ro extends(so(i.FtLitElementRedux)){}var lo=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 ao extends ro{constructor(){super(),this.editorMode=!1,this.addStore(Re)}render(){return this.key&&this.context?e.html`
1246
1248
  <span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
1247
- `: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})}}ao.elementDefinitions={},ao.styles=to,lo([i.redux()],ao.prototype,"editorMode",void 0),lo([o.property()],ao.prototype,"context",void 0),lo([o.property()],ao.prototype,"key",void 0),lo([i.jsonProperty([])],ao.prototype,"args",void 0),lo([o.property()],ao.prototype,"defaultMessage",void 0);class ho{static build(t){return new ho(t)}static fromGwt(t){return new ho(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")(ao);const po=ho.build("designedSearchFacet");var co=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 fo extends(so(Ye)){constructor(){super(...arguments),this.facetId="",this.maxValues=7,this.raiseSelectedOptions=!1,this.facets=[]}setSearchStateManager(t){super.setSearchStateManager(t),this.facetId&&t.addFacet(this.facetId),this.addI18nContext(po),this.addStore(Re)}render(){let t=this.facets.find((t=>t.key==this.facetId));return t?e.html`
1249
+ `: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})}}ao.elementDefinitions={},ao.styles=to,lo([i.redux()],ao.prototype,"editorMode",void 0),lo([o.property()],ao.prototype,"context",void 0),lo([o.property()],ao.prototype,"key",void 0),lo([i.jsonProperty([])],ao.prototype,"args",void 0),lo([o.property()],ao.prototype,"defaultMessage",void 0);class ho{static build(t){return new ho(t)}static fromGwt(t){return new ho(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)=>Ve.resolveMessage(this.name,i,...t)})}}i.customElement("ft-i18n")(ao);const po=ho.build("designedSearchFacet");var co=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 fo extends(so(Ye)){constructor(){super(...arguments),this.facetId="",this.maxValues=7,this.raiseSelectedOptions=!1,this.facets=[]}setSearchStateManager(t){super.setSearchStateManager(t),this.facetId&&t.addFacet(this.facetId),this.addI18nContext(po),this.addStore(Re)}render(){let t=this.facets.find((t=>t.key==this.facetId));return t?e.html`
1248
1250
  <ft-filter
1249
1251
  part="filter"
1250
1252
  label="${t.label}"
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);u(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=f(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?p(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Fn){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);u(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=f(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?p(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Fn){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t]),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,null!=o&&(this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -334,7 +334,7 @@ var xt,mt;let wt=class extends P{constructor(){super(...arguments),this.renderOp
334
334
  <div class="ft-ripple--background"></div>
335
335
  <div class="ft-ripple--effect"></div>
336
336
  </div>
337
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Sn.elementDefinitions={},Sn.styles=On,kn([s({type:Boolean})],Sn.prototype,"primary",void 0),kn([s({type:Boolean})],Sn.prototype,"secondary",void 0),kn([s({type:Boolean})],Sn.prototype,"unbounded",void 0),kn([s({type:Boolean})],Sn.prototype,"activated",void 0),kn([s({type:Boolean})],Sn.prototype,"selected",void 0),kn([s({type:Boolean})],Sn.prototype,"disabled",void 0),kn([a()],Sn.prototype,"hovered",void 0),kn([a()],Sn.prototype,"focused",void 0),kn([a()],Sn.prototype,"pressed",void 0),kn([a()],Sn.prototype,"rippling",void 0),kn([a()],Sn.prototype,"rippleSize",void 0),kn([a()],Sn.prototype,"originX",void 0),kn([a()],Sn.prototype,"originY",void 0),kn([c(".ft-ripple")],Sn.prototype,"ripple",void 0),kn([c(".ft-ripple--effect")],Sn.prototype,"rippleEffect",void 0),p("ft-ripple")(Sn);const jn=Ot.create("--ft-tooltip-distance","SIZE","4px"),Cn=Ot.create("--ft-tooltip-color","COLOR","#FFFFFF"),En=Ot.create("--ft-tooltip-background-color","COLOR","#666666"),Nn=Ot.create("--ft-tooltip-z-index","NUMBER","1"),Rn=Ot.external(St.borderRadiusS,"Design system"),Mn=Ot.create("--ft-tooltip-max-width","SIZE","150px"),An=$`
337
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),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 e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Sn.elementDefinitions={},Sn.styles=On,kn([s({type:Boolean})],Sn.prototype,"primary",void 0),kn([s({type:Boolean})],Sn.prototype,"secondary",void 0),kn([s({type:Boolean})],Sn.prototype,"unbounded",void 0),kn([s({type:Boolean})],Sn.prototype,"activated",void 0),kn([s({type:Boolean})],Sn.prototype,"selected",void 0),kn([s({type:Boolean})],Sn.prototype,"disabled",void 0),kn([a()],Sn.prototype,"hovered",void 0),kn([a()],Sn.prototype,"focused",void 0),kn([a()],Sn.prototype,"pressed",void 0),kn([a()],Sn.prototype,"rippling",void 0),kn([a()],Sn.prototype,"rippleSize",void 0),kn([a()],Sn.prototype,"originX",void 0),kn([a()],Sn.prototype,"originY",void 0),kn([c(".ft-ripple")],Sn.prototype,"ripple",void 0),kn([c(".ft-ripple--effect")],Sn.prototype,"rippleEffect",void 0),p("ft-ripple")(Sn);const jn=Ot.create("--ft-tooltip-distance","SIZE","4px"),Cn=Ot.create("--ft-tooltip-color","COLOR","#FFFFFF"),En=Ot.create("--ft-tooltip-background-color","COLOR","#666666"),Nn=Ot.create("--ft-tooltip-z-index","NUMBER","1"),Rn=Ot.external(St.borderRadiusS,"Design system"),Mn=Ot.create("--ft-tooltip-max-width","SIZE","150px"),An=$`
338
338
  .ft-tooltip--container {
339
339
  display: block;
340
340
  position: relative;
@@ -962,7 +962,7 @@ class Fn extends rn{constructor(t){if(super(t),this.et=ot,t.type!==on)throw Erro
962
962
  margin: 10px 0;
963
963
  color: ${Or.colorOnSurfaceMedium};
964
964
  }
965
- `;var Sr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class jr extends At{constructor(){super(...arguments),this.id="",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,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e: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 e=t.slice(0,this.limit);return et`
965
+ `;var Sr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class jr extends At{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,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e: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 e=t.slice(0,this.limit);return et`
966
966
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
967
967
  ${null==this.parent?null:et`
968
968
  <div tabindex="0"
@@ -1006,7 +1006,7 @@ class Fn extends rn{constructor(t){if(super(t),this.et=ot,t.type!==on)throw Erro
1006
1006
  `:ot}
1007
1007
  </div>
1008
1008
  `}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 e;return et`
1009
- <ft-checkbox name="${this.id}"
1009
+ <ft-checkbox name="${this.filterId}"
1010
1010
  part="multivalued-option"
1011
1011
  data-value="${t.value}"
1012
1012
  .checked=${t.selected}
@@ -1016,7 +1016,7 @@ class Fn extends rn{constructor(t){if(super(t),this.et=ot,t.type!==on)throw Erro
1016
1016
  ${t.renderOption?t.renderOption:t.label}
1017
1017
  </ft-checkbox>
1018
1018
  `}buildMonoValuedOption(t){return et`
1019
- <ft-radio name="${this.id+Math.round(1e6*Math.random())}"
1019
+ <ft-radio name="${this.filterId+Math.round(1e6*Math.random())}"
1020
1020
  part="monovalued-option"
1021
1021
  data-value="${t.value}"
1022
1022
  .checked=${t.selected}
@@ -1026,7 +1026,7 @@ class Fn extends rn{constructor(t){if(super(t),this.et=ot,t.type!==on)throw Erro
1026
1026
  @change=${t=>t.stopPropagation()}>
1027
1027
  ${t.renderOption?t.renderOption:t.label}
1028
1028
  </ft-radio>
1029
- `}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}jr.elementDefinitions={"ft-button":or,"ft-ripple":Sn,"ft-typography":Qo,"ft-checkbox":fr,"ft-icon":Kn,"ft-radio":xr},jr.styles=kr,Sr([s({type:String})],jr.prototype,"id",void 0),Sr([s({type:Object})],jr.prototype,"parent",void 0),Sr([s({type:Array})],jr.prototype,"options",void 0),Sr([s({type:Boolean})],jr.prototype,"multivalued",void 0),Sr([s({type:Boolean})],jr.prototype,"disabled",void 0),Sr([s({type:Boolean})],jr.prototype,"hideSelectedOptions",void 0),Sr([s({type:Boolean})],jr.prototype,"preventNavigation",void 0),Sr([s({type:String})],jr.prototype,"filter",void 0),Sr([s({type:String})],jr.prototype,"moreValuesButtonLabel",void 0),Sr([s({type:String})],jr.prototype,"noValuesLabel",void 0),Sr([s({type:Number})],jr.prototype,"displayedValuesLimit",void 0),Sr([c(".ft-filter-level--container")],jr.prototype,"container",void 0),Sr([a()],jr.prototype,"displayedPages",void 0);const Cr={buttonsColor:Ot.extend("--ft-snap-scroll-buttons-color",St.colorPrimary),buttonsZIndex:Ot.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:Ot.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:Ot.external(St.colorSurface,"Design system")},Er=$`
1029
+ `}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}jr.elementDefinitions={"ft-button":or,"ft-ripple":Sn,"ft-typography":Qo,"ft-checkbox":fr,"ft-icon":Kn,"ft-radio":xr},jr.styles=kr,Sr([s({type:String})],jr.prototype,"filterId",void 0),Sr([s({type:Object})],jr.prototype,"parent",void 0),Sr([s({type:Array})],jr.prototype,"options",void 0),Sr([s({type:Boolean})],jr.prototype,"multivalued",void 0),Sr([s({type:Boolean})],jr.prototype,"disabled",void 0),Sr([s({type:Boolean})],jr.prototype,"hideSelectedOptions",void 0),Sr([s({type:Boolean})],jr.prototype,"preventNavigation",void 0),Sr([s({type:String})],jr.prototype,"filter",void 0),Sr([s({type:String})],jr.prototype,"moreValuesButtonLabel",void 0),Sr([s({type:String})],jr.prototype,"noValuesLabel",void 0),Sr([s({type:Number})],jr.prototype,"displayedValuesLimit",void 0),Sr([c(".ft-filter-level--container")],jr.prototype,"container",void 0),Sr([a()],jr.prototype,"displayedPages",void 0);const Cr={buttonsColor:Ot.extend("--ft-snap-scroll-buttons-color",St.colorPrimary),buttonsZIndex:Ot.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:Ot.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:Ot.external(St.colorSurface,"Design system")},Er=$`
1030
1030
  .ft-snap-scroll {
1031
1031
  box-sizing: border-box;
1032
1032
  position: relative;
@@ -1284,30 +1284,32 @@ class Fn extends rn{constructor(t){if(super(t),this.et=ot,t.type!==on)throw Erro
1284
1284
  height: 0;
1285
1285
  }
1286
1286
 
1287
- slot {
1287
+ slot:not([name]) {
1288
1288
  display: none;
1289
1289
  }
1290
- `];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 Dr extends CustomEvent{constructor(t){super("change",{detail:t})}}class _r extends At{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.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new n(300),this.changeDebouncer=new n(10)}get flatOptions(){return tn(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){var t,e;const i=this.flatOptions.some((t=>t.selected)),o=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e,n=this.filterPlaceHolder.replace("{0}",this.label);return et`
1290
+ `];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 Dr extends CustomEvent{constructor(t){super("change",{detail:t})}}class _r extends At{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 n(300),this.changeDebouncer=new n(10),this.lastDispatchedValues=[]}get flatOptions(){return tn(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return et`
1291
1291
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1292
1292
  part="container">
1293
- ${this.label||i?et`
1293
+ ${this.label||t?et`
1294
1294
  <div class="ft-filter--header" part="header">
1295
- <ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}
1295
+ <ft-typography class="ft-filter--label" variant="overline" part="label">
1296
+ ${this.label}
1296
1297
  </ft-typography>
1297
- ${i&&!this.hideClearButton?et`
1298
+ <slot name="label"></slot>
1299
+ ${t&&!this.hideClearButton?et`
1298
1300
  <ft-button icon="close" dense @click=${this.clear} part="clear-button">
1299
1301
  ${this.clearButtonLabel}
1300
1302
  </ft-button>
1301
1303
  `:null}
1302
1304
  </div>
1303
1305
  `:null}
1304
- <div class="ft-filter--filter" ?hidden=${!o}>
1306
+ <div class="ft-filter--filter" ?hidden=${!e}>
1305
1307
  <input type="search"
1306
1308
  part="input"
1307
1309
  class="ft-typography--caption"
1308
- ?disabled=${!o}
1309
- placeholder="${n}"
1310
- size="${o?n.length:0}"
1310
+ ?disabled=${!e}
1311
+ placeholder="${i}"
1312
+ size="${e?i.length:0}"
1311
1313
  @search=${this.onFilterChange}
1312
1314
  @keyup=${this.onFilterChange}>
1313
1315
  </div>
@@ -1318,10 +1320,10 @@ class Fn extends rn{constructor(t){if(super(t),this.et=ot,t.type!==on)throw Erro
1318
1320
  @slotchange=${this.updateOptionsFromSlot}
1319
1321
  @option-change=${this.optionsChanged}></slot>
1320
1322
  </div>
1321
- `}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.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===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300))}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return et`
1323
+ `}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i,o,n,r;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.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===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(r=null===(n=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===n?void 0:n.hasHiddenValues)&&void 0!==r&&r}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return et`
1322
1324
  ${this.raiseSelectedOptions&&e.length>0?et`
1323
1325
  <ft-filter-level
1324
- id="${this.id}"
1326
+ filterId="${this.id}"
1325
1327
  ?multivalued=${this.multivalued}
1326
1328
  ?disabled=${this.disabled}
1327
1329
  preventNavigation
@@ -1341,7 +1343,7 @@ class Fn extends rn{constructor(t){if(super(t),this.et=ot,t.type!==on)throw Erro
1341
1343
  `}renderLevel(t,e,i){return et`
1342
1344
  <ft-filter-level
1343
1345
  class="${t}"
1344
- id="${this.id}"
1346
+ filterId="${this.id}"
1345
1347
  .filter="${this.filter}"
1346
1348
  moreValuesButtonLabel="${this.moreValuesButtonLabel}"
1347
1349
  ?multivalued=${this.multivalued}
@@ -1357,7 +1359,7 @@ class Fn extends rn{constructor(t){if(super(t),this.et=ot,t.type!==on)throw Erro
1357
1359
  .exportpartsPrefixes=${["values","available-values"]}
1358
1360
  noValuesLabel="${this.noValuesLabel}"
1359
1361
  ></ft-filter-level>
1360
- `}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 e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.dispatchEvent(new Dr(this.selectedValues)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}_r.elementDefinitions={"ft-button":or,"ft-filter-level":jr,"ft-snap-scroll":Mr,"ft-typography":Qo},_r.styles=Lr,Tr([s({type:String})],_r.prototype,"id",void 0),Tr([s({type:String})],_r.prototype,"label",void 0),Tr([s({type:String})],_r.prototype,"filterPlaceHolder",void 0),Tr([s({type:String})],_r.prototype,"clearButtonLabel",void 0),Tr([s({type:String})],_r.prototype,"moreValuesButtonLabel",void 0),Tr([s({type:String})],_r.prototype,"noValuesLabel",void 0),Tr([v([])],_r.prototype,"options",void 0),Tr([s({type:Boolean})],_r.prototype,"multivalued",void 0),Tr([s({type:Boolean})],_r.prototype,"disabled",void 0),Tr([s({type:Boolean})],_r.prototype,"raiseSelectedOptions",void 0),Tr([s({type:Number})],_r.prototype,"displayedValuesLimit",void 0),Tr([s({type:Boolean})],_r.prototype,"hideClearButton",void 0),Tr([c(".ft-filter--slot")],_r.prototype,"slotElement",void 0),Tr([c(".ft-filter--container")],_r.prototype,"container",void 0),Tr([c(".ft-filter--values")],_r.prototype,"valuesContainer",void 0),Tr([c(".ft-filter--levels")],_r.prototype,"levelsContainer",void 0),Tr([c(".ft-filter--levels ft-filter-level:last-child")],_r.prototype,"lastLevel",void 0),Tr([c(".ft-filter--filter input")],_r.prototype,"filterInput",void 0),Tr([function(t){return l({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],_r.prototype,"levels",void 0),Tr([a()],_r.prototype,"withScroll",void 0),Tr([a()],_r.prototype,"filter",void 0),Tr([a()],_r.prototype,"slideIn",void 0),Tr([a()],_r.prototype,"slideOut",void 0);var Wr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Hr extends At{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return et`
1362
+ `}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 e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.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;d(this.lastDispatchedValues,t)||(this.dispatchEvent(new Dr(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}_r.elementDefinitions={"ft-button":or,"ft-filter-level":jr,"ft-snap-scroll":Mr,"ft-typography":Qo},_r.styles=Lr,Tr([s({type:String})],_r.prototype,"id",void 0),Tr([s({type:String})],_r.prototype,"label",void 0),Tr([s({type:String})],_r.prototype,"filterPlaceHolder",void 0),Tr([s({type:String})],_r.prototype,"clearButtonLabel",void 0),Tr([s({type:String})],_r.prototype,"moreValuesButtonLabel",void 0),Tr([s({type:String})],_r.prototype,"noValuesLabel",void 0),Tr([v([])],_r.prototype,"options",void 0),Tr([s({type:Boolean})],_r.prototype,"multivalued",void 0),Tr([s({type:Boolean})],_r.prototype,"disabled",void 0),Tr([s({type:Boolean})],_r.prototype,"raiseSelectedOptions",void 0),Tr([s({type:Number})],_r.prototype,"displayedValuesLimit",void 0),Tr([s({type:Boolean})],_r.prototype,"hideClearButton",void 0),Tr([c(".ft-filter--slot")],_r.prototype,"slotElement",void 0),Tr([c(".ft-filter--container")],_r.prototype,"container",void 0),Tr([c(".ft-filter--values")],_r.prototype,"valuesContainer",void 0),Tr([c(".ft-filter--levels")],_r.prototype,"levelsContainer",void 0),Tr([a()],_r.prototype,"lastLevelHasHiddenvalues",void 0),Tr([c(".ft-filter--filter input")],_r.prototype,"filterInput",void 0),Tr([function(t){return l({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],_r.prototype,"levels",void 0),Tr([a()],_r.prototype,"withScroll",void 0),Tr([a()],_r.prototype,"filter",void 0),Tr([a()],_r.prototype,"slideIn",void 0),Tr([a()],_r.prototype,"slideOut",void 0);var Wr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Hr extends At{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return et`
1361
1363
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1362
1364
  `}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}))}}Hr.elementDefinitions={},Wr([s({type:String})],Hr.prototype,"label",void 0),Wr([s({type:Object,converter:t=>t})],Hr.prototype,"value",void 0),Wr([s({type:Boolean,reflect:!0})],Hr.prototype,"selected",void 0),Wr([s({type:Object})],Hr.prototype,"subOptions",void 0),Wr([v({})],Hr.prototype,"renderOption",void 0),Wr([c(".ft-filter-option--slot")],Hr.prototype,"slotElement",void 0),p("ft-filter")(_r),p("ft-filter-option")(Hr);const Vr=$`
1363
1365
  `,Kr=Ni.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 Zr{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?Zr.build(t):null!==(e=Zr.API)&&void 0!==e?e:Zr.API=Zr.build()}static await(t){return new Promise((e=>{let i=Zr.get(t);if(i)e(i);else{const o=Kr.subscribe((()=>{i=Zr.get(t),i&&(o(),e(i))}))}}))}}var qr;const Jr=Symbol("clearAfterUnitTest");class Xr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[qr]=()=>{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};d(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,n,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==n?n:{};return new Ut(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})))}}qr=Jr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Xr((async(t,e)=>(await Zr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Xr((async(t,e)=>(await Zr.await()).getCustomMessageContext(t,e))));const Gr=window.FluidTopicsI18nService,Yr=window.FluidTopicsCustomI18nService;var Qr=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 ts extends At{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=()=>Zr.get(),this.cache=new o,this.cleanSessionDebouncer=new n}render(){return et`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-facet",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Search facet for integrated search component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,18 +19,18 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-filter": "1.0.3",
23
- "@fluid-topics/ft-i18n": "1.0.3",
24
- "@fluid-topics/ft-search-context": "1.0.3",
25
- "@fluid-topics/ft-typography": "1.0.3",
26
- "@fluid-topics/ft-wc-utils": "1.0.3",
22
+ "@fluid-topics/ft-filter": "1.0.5",
23
+ "@fluid-topics/ft-i18n": "1.0.5",
24
+ "@fluid-topics/ft-search-context": "1.0.5",
25
+ "@fluid-topics/ft-typography": "1.0.5",
26
+ "@fluid-topics/ft-wc-utils": "1.0.5",
27
27
  "lit": "2.7.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@fluid-topics/public-api": "1.0.33"
30
+ "@fluid-topics/public-api": "1.0.34"
31
31
  },
32
32
  "peerDependencies": {
33
- "@fluid-topics/public-api": "1.0.33"
33
+ "@fluid-topics/public-api": "1.0.34"
34
34
  },
35
- "gitHead": "8c7b95fa60f5ac8dd10301abb40dd62ff4f9b335"
35
+ "gitHead": "a4987091424b3c8b5e36193a8b854eddfe44d439"
36
36
  }