@fluid-topics/ft-search-bar 0.2.8 → 0.2.11

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.
@@ -66,7 +66,7 @@ var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prot
66
66
  * Copyright 2017 Google LLC
67
67
  * SPDX-License-Identifier: BSD-3-Clause
68
68
  */
69
- var E;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:z}),(null!==(m=globalThis.reactiveElementVersions)&&void 0!==m?m:globalThis.reactiveElementVersions=[]).push("1.3.2");const B=globalThis.trustedTypes,M=B?B.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,F="?"+N,R=`<${F}>`,L=document,D=(t="")=>L.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,U=t=>{var e;return I(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,A=/>/g,_=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,H=/'/g,Z=/"/g,K=/^(?:script|style|textarea|title)$/i,W=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),J=new WeakMap,X=L.createTreeWalker(L,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=T;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,a=r.exec(i),null!==a);)h=r.lastIndex,r===T?"!--"===a[1]?r=P:void 0!==a[1]?r=A:void 0!==a[2]?(K.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=_):void 0!==a[3]&&(r=_):r===_?">"===a[0]?(r=null!=s?s:T,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?_:'"'===a[3]?Z:H):r===Z||r===H?r=_:r===P||r===A?r=T:(r=_,s=void 0);const p=r===_&&t[e+1].startsWith("/>")?" ":"";n+=r===T?i+R:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+N+p):i+N+(-2===c?(o.push(void 0),e):p)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==M?M.createHTML(l):l,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,c]=Y(t,e);if(this.el=Q.createElement(a,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(N)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(N),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?nt:"@"===e[1]?rt:it})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(N),e=t.length-1;if(e>0){o.textContent=B?B.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],D()),X.nextNode(),l.push({type:2,index:++s});o.append(t[e],D())}}}else if(8===o.nodeType)if(o.data===F)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(N,t+1));)l.push({type:7,index:s}),t+=N.length-1}s++}}static createElement(t,e){const i=L.createElement("template");return i.innerHTML=t,i}}function G(t,e,i=t,o){var s,n,r,l;if(e===V)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const c=j(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=G(t,a._$AS(t,e.values),a,o)),e}class tt{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:L).importNode(i,!0);X.currentNode=s;let n=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new et(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new lt(n,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=X.nextNode(),r++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,o){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),j(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==V&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):U(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==q&&j(this._$AH)?this._$AA.nextSibling.data=t:this.k(L.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new tt(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=J.get(t.strings);return void 0===e&&J.set(t.strings,e=new Q(t)),e}S(t){I(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new et(this.M(D()),this.M(D()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,o,s){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=G(this,t,e,0),n=!j(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=G(this,o[i+r],e,r),l===V&&(l=this._$AH[r]),n||(n=!j(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.C(t)}C(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===q?void 0:t}}const st=B?B.emptyScript:"";class nt extends it{constructor(){super(...arguments),this.type=4}C(t){t&&t!==q?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class rt extends it{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=G(this,t,e,0))&&void 0!==i?i:q)===V)return;const o=this._$AH,s=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==q&&(o===q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const at={L:"$lit$",P:N,V:F,I:1,N:Y,R:tt,j:U,D:G,H:et,F:it,O:nt,W:rt,B:ot,Z:lt},ct=window.litHtmlPolyfillSupport;
69
+ var E;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:z}),(null!==(m=globalThis.reactiveElementVersions)&&void 0!==m?m:globalThis.reactiveElementVersions=[]).push("1.3.2");const B=globalThis.trustedTypes,N=B?B.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,R="?"+M,F=`<${R}>`,L=document,D=(t="")=>L.createComment(t),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,U=t=>{var e;return j(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,A=/>/g,_=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,H=/'/g,Z=/"/g,K=/^(?:script|style|textarea|title)$/i,W=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),J=new WeakMap,X=L.createTreeWalker(L,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=P;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,a=r.exec(i),null!==a);)h=r.lastIndex,r===P?"!--"===a[1]?r=T:void 0!==a[1]?r=A:void 0!==a[2]?(K.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=_):void 0!==a[3]&&(r=_):r===_?">"===a[0]?(r=null!=s?s:P,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?_:'"'===a[3]?Z:H):r===Z||r===H?r=_:r===T||r===A?r=P:(r=_,s=void 0);const p=r===_&&t[e+1].startsWith("/>")?" ":"";n+=r===P?i+F:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+M+p):i+M+(-2===c?(o.push(void 0),e):p)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(l):l,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,c]=Y(t,e);if(this.el=Q.createElement(a,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(M)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?nt:"@"===e[1]?rt:it})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=B?B.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],D()),X.nextNode(),l.push({type:2,index:++s});o.append(t[e],D())}}}else if(8===o.nodeType)if(o.data===R)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)l.push({type:7,index:s}),t+=M.length-1}s++}}static createElement(t,e){const i=L.createElement("template");return i.innerHTML=t,i}}function G(t,e,i=t,o){var s,n,r,l;if(e===V)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const c=I(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=G(t,a._$AS(t,e.values),a,o)),e}class tt{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:L).importNode(i,!0);X.currentNode=s;let n=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new et(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new lt(n,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=X.nextNode(),r++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,o){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),I(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==V&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):U(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==q&&I(this._$AH)?this._$AA.nextSibling.data=t:this.k(L.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new tt(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=J.get(t.strings);return void 0===e&&J.set(t.strings,e=new Q(t)),e}S(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new et(this.M(D()),this.M(D()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,o,s){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=G(this,t,e,0),n=!I(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=G(this,o[i+r],e,r),l===V&&(l=this._$AH[r]),n||(n=!I(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.C(t)}C(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===q?void 0:t}}const st=B?B.emptyScript:"";class nt extends it{constructor(){super(...arguments),this.type=4}C(t){t&&t!==q?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class rt extends it{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=G(this,t,e,0))&&void 0!==i?i:q)===V)return;const o=this._$AH,s=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==q&&(o===q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const at={L:"$lit$",P:M,V:R,I:1,N:Y,R:tt,j:U,D:G,H:et,F:it,O:nt,W:rt,B:ot,Z:lt},ct=window.litHtmlPolyfillSupport;
70
70
  /**
71
71
  * @license
72
72
  * Copyright 2017 Google LLC
@@ -101,16 +101,16 @@ var ht,pt;null==ct||ct(Q,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
101
101
  * @license
102
102
  * Copyright 2020 Google LLC
103
103
  * SPDX-License-Identifier: BSD-3-Clause
104
- */const{H:Et}=at,Bt=()=>document.createComment(""),Mt=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Bt(),n),o=s.insertBefore(Bt(),n);i=new Et(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Nt=(t,e,i=t)=>(t._$AI(e,i),t),Ft={},Rt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Lt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Dt=Ct(class extends zt{constructor(t){if(super(t),t.type!==Ot)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],c=[];let h,p,d=0,f=n.length-1,u=0,b=r.length-1;for(;d<=f&&u<=b;)if(null===n[d])d++;else if(null===n[f])f--;else if(a[d]===l[u])c[u]=Nt(n[d],r[u]),d++,u++;else if(a[f]===l[b])c[b]=Nt(n[f],r[b]),f--,b--;else if(a[d]===l[b])c[b]=Nt(n[d],r[b]),Mt(t,c[b+1],n[d]),d++,b--;else if(a[f]===l[u])c[u]=Nt(n[f],r[u]),Mt(t,n[d],n[f]),f--,u++;else if(void 0===h&&(h=Lt(l,u,b),p=Lt(a,d,f)),h.has(a[d]))if(h.has(a[f])){const e=p.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Mt(t,n[d]);Nt(e,r[u]),c[u]=e}else c[u]=Nt(i,r[u]),Mt(t,n[d],i),n[e]=null;u++}else Rt(n[f]),f--;else Rt(n[d]),d++;for(;u<=b;){const e=Mt(t,c[b+1]);Nt(e,r[u]),c[u++]=e}for(;d<=f;){const t=n[d++];null!==t&&Rt(t)}return this.ut=l,((t,e=Ft)=>{t._$AH=e})(t,c),V}}),jt=Ct(class extends zt{constructor(t){var e;if(super(t),t.type!==St||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.et.add(t);return this.render(e)}const s=t.element.classList;this.et.forEach((t=>{t in e||(s.remove(t),this.et.delete(t))}));for(const t in e){const i=!!e[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.et.add(t)):(s.remove(t),this.et.delete(t)))}return V}});
104
+ */const{H:Et}=at,Bt=()=>document.createComment(""),Nt=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Bt(),n),o=s.insertBefore(Bt(),n);i=new Et(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Mt=(t,e,i=t)=>(t._$AI(e,i),t),Rt={},Ft=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Lt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Dt=Ct(class extends zt{constructor(t){if(super(t),t.type!==Ot)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],c=[];let h,p,d=0,f=n.length-1,u=0,b=r.length-1;for(;d<=f&&u<=b;)if(null===n[d])d++;else if(null===n[f])f--;else if(a[d]===l[u])c[u]=Mt(n[d],r[u]),d++,u++;else if(a[f]===l[b])c[b]=Mt(n[f],r[b]),f--,b--;else if(a[d]===l[b])c[b]=Mt(n[d],r[b]),Nt(t,c[b+1],n[d]),d++,b--;else if(a[f]===l[u])c[u]=Mt(n[f],r[u]),Nt(t,n[d],n[f]),f--,u++;else if(void 0===h&&(h=Lt(l,u,b),p=Lt(a,d,f)),h.has(a[d]))if(h.has(a[f])){const e=p.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Nt(t,n[d]);Mt(e,r[u]),c[u]=e}else c[u]=Mt(i,r[u]),Nt(t,n[d],i),n[e]=null;u++}else Ft(n[f]),f--;else Ft(n[d]),d++;for(;u<=b;){const e=Nt(t,c[b+1]);Mt(e,r[u]),c[u++]=e}for(;d<=f;){const t=n[d++];null!==t&&Ft(t)}return this.ut=l,((t,e=Rt)=>{t._$AH=e})(t,c),V}}),It=Ct(class extends zt{constructor(t){var e;if(super(t),t.type!==St||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.et.add(t);return this.render(e)}const s=t.element.classList;this.et.forEach((t=>{t in e||(s.remove(t),this.et.delete(t))}));for(const t in e){const i=!!e[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.et.add(t)):(s.remove(t),this.et.delete(t)))}return V}});
105
105
  /**
106
106
  * @license
107
107
  * Copyright 2017 Google LLC
108
108
  * SPDX-License-Identifier: BSD-3-Clause
109
- */var It,Ut=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(It||(It={}));class Tt extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class Pt extends gt{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=It.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e}render(){return W`
109
+ */var jt,Ut=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(jt||(jt={}));class Pt extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class Tt extends gt{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=jt.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e}render(){return W`
110
110
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
111
111
  <div class="ft-size-watcher--watcher"></div>
112
112
  </div>
113
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=It.S:this.size<976?this.category=It.M:this.size<1024?this.category=It.L:this.size<1440?this.category=It.XL:this.category=It.XXL,this.dispatchEvent(new Tt(this.size,this.category)))}),this.debounceTimeout)}}Pt.elementDefinitions={},Pt.styles=g`
113
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=jt.S:this.size<976?this.category=jt.M:this.size<1024?this.category=jt.L:this.size<1440?this.category=jt.XL:this.category=jt.XXL,this.dispatchEvent(new Pt(this.size,this.category)))}),this.debounceTimeout)}}Tt.elementDefinitions={},Tt.styles=g`
114
114
  .ft-size-watcher--pixel {
115
115
  width: 0;
116
116
  height: 0;
@@ -129,13 +129,13 @@ var ht,pt;null==ct||ct(Q,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
129
129
  .ft-size-watcher--local .ft-size-watcher--watcher {
130
130
  width: 100%;
131
131
  }
132
- `,Ut([o({type:Number})],Pt.prototype,"debounceTimeout",void 0),Ut([o({type:Boolean})],Pt.prototype,"local",void 0),Ut([o({type:Number,reflect:!0})],Pt.prototype,"size",void 0),Ut([o({type:String,reflect:!0})],Pt.prototype,"category",void 0),Ut([r(".ft-size-watcher--watcher")],Pt.prototype,"watcher",void 0),h("ft-size-watcher")(Pt);
132
+ `,Ut([o({type:Number})],Tt.prototype,"debounceTimeout",void 0),Ut([o({type:Boolean})],Tt.prototype,"local",void 0),Ut([o({type:Number,reflect:!0})],Tt.prototype,"size",void 0),Ut([o({type:String,reflect:!0})],Tt.prototype,"category",void 0),Ut([r(".ft-size-watcher--watcher")],Tt.prototype,"watcher",void 0),h("ft-size-watcher")(Tt);
133
133
  /**
134
134
  * @license
135
135
  * Copyright 2020 Google LLC
136
136
  * SPDX-License-Identifier: BSD-3-Clause
137
137
  */
138
- const At=Symbol.for(""),_t=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===At)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Ht=t=>({_$litStatic$:t,r:At}),Zt=new Map,Kt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(n=i[c],s=_t(n));)a+=s+e[++c],h=!0;l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=Zt.get(t))&&(r.raw=r,Zt.set(t,e=r)),i=l}return t(e,...i)})(W);var Wt,Vt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!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"}(Wt||(Wt={}));const qt=ut.extend("--ft-typography-font-family",vt.titleFont),Jt=ut.extend("--ft-typography-font-family",vt.contentFont),Xt={fontFamily:Jt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","SIZE","24px"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Yt=ut.extend("--ft-typography-title-font-family",qt),Qt=ut.extend("--ft-typography-title-font-size",Xt.fontSize,"20px"),Gt=ut.extend("--ft-typography-title-font-weight",Xt.fontWeight,"normal"),te=ut.extend("--ft-typography-title-letter-spacing",Xt.letterSpacing,"0.15px"),ee=ut.extend("--ft-typography-title-line-height",Xt.lineHeight,"24px"),ie=ut.extend("--ft-typography-title-text-transform",Xt.textTransform,"inherit"),oe=ut.extend("--ft-typography-title-dense-font-family",qt),se=ut.extend("--ft-typography-title-dense-font-size",Xt.fontSize,"14px"),ne=ut.extend("--ft-typography-title-dense-font-weight",Xt.fontWeight,"normal"),re=ut.extend("--ft-typography-title-dense-letter-spacing",Xt.letterSpacing,"0.105px"),le=ut.extend("--ft-typography-title-dense-line-height",Xt.lineHeight,"24px"),ae=ut.extend("--ft-typography-title-dense-text-transform",Xt.textTransform,"inherit"),ce=ut.extend("--ft-typography-subtitle1-font-family",Jt),he=ut.extend("--ft-typography-subtitle1-font-size",Xt.fontSize,"16px"),pe=ut.extend("--ft-typography-subtitle1-font-weight",Xt.fontWeight,"600"),de=ut.extend("--ft-typography-subtitle1-letter-spacing",Xt.letterSpacing,"0.144px"),fe=ut.extend("--ft-typography-subtitle1-line-height",Xt.lineHeight,"24px"),ue=ut.extend("--ft-typography-subtitle1-text-transform",Xt.textTransform,"inherit"),be=ut.extend("--ft-typography-subtitle2-font-family",Jt),ve=ut.extend("--ft-typography-subtitle2-font-size",Xt.fontSize,"14px"),ge=ut.extend("--ft-typography-subtitle2-font-weight",Xt.fontWeight,"normal"),xe=ut.extend("--ft-typography-subtitle2-letter-spacing",Xt.letterSpacing,"0.098px"),ye=ut.extend("--ft-typography-subtitle2-line-height",Xt.lineHeight,"24px"),me=ut.extend("--ft-typography-subtitle2-text-transform",Xt.textTransform,"inherit"),$e={fontFamily:ut.extend("--ft-typography-body1-font-family",Jt),fontSize:ut.extend("--ft-typography-body1-font-size",Xt.fontSize,"16px"),fontWeight:ut.extend("--ft-typography-body1-font-weight",Xt.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body1-letter-spacing",Xt.letterSpacing,"0.496px"),lineHeight:ut.extend("--ft-typography-body1-line-height",Xt.lineHeight,"24px"),textTransform:ut.extend("--ft-typography-body1-text-transform",Xt.textTransform,"inherit")},we={fontFamily:ut.extend("--ft-typography-body2-font-family",Jt),fontSize:ut.extend("--ft-typography-body2-font-size",Xt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-body2-font-weight",Xt.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body2-letter-spacing",Xt.letterSpacing,"0.252px"),lineHeight:ut.extend("--ft-typography-body2-line-height",Xt.lineHeight,"20px"),textTransform:ut.extend("--ft-typography-body2-text-transform",Xt.textTransform,"inherit")},ke={fontFamily:ut.extend("--ft-typography-caption-font-family",Jt),fontSize:ut.extend("--ft-typography-caption-font-size",Xt.fontSize,"12px"),fontWeight:ut.extend("--ft-typography-caption-font-weight",Xt.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-caption-letter-spacing",Xt.letterSpacing,"0.396px"),lineHeight:ut.extend("--ft-typography-caption-line-height",Xt.lineHeight,"16px"),textTransform:ut.extend("--ft-typography-caption-text-transform",Xt.textTransform,"inherit")},Se=ut.extend("--ft-typography-breadcrumb-font-family",Jt),Oe=ut.extend("--ft-typography-breadcrumb-font-size",Xt.fontSize,"10px"),Ce=ut.extend("--ft-typography-breadcrumb-font-weight",Xt.fontWeight,"normal"),ze=ut.extend("--ft-typography-breadcrumb-letter-spacing",Xt.letterSpacing,"0.33px"),Ee=ut.extend("--ft-typography-breadcrumb-line-height",Xt.lineHeight,"16px"),Be=ut.extend("--ft-typography-breadcrumb-text-transform",Xt.textTransform,"inherit"),Me=ut.extend("--ft-typography-overline-font-family",Jt),Ne=ut.extend("--ft-typography-overline-font-size",Xt.fontSize,"10px"),Fe=ut.extend("--ft-typography-overline-font-weight",Xt.fontWeight,"normal"),Re=ut.extend("--ft-typography-overline-letter-spacing",Xt.letterSpacing,"1.5px"),Le=ut.extend("--ft-typography-overline-line-height",Xt.lineHeight,"16px"),De=ut.extend("--ft-typography-overline-text-transform",Xt.textTransform,"uppercase"),je={fontFamily:ut.extend("--ft-typography-button-font-family",Jt),fontSize:ut.extend("--ft-typography-button-font-size",Xt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",Xt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",Xt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",Xt.lineHeight,"16px"),textTransform:ut.extend("--ft-typography-button-text-transform",Xt.textTransform,"uppercase")},Ie=g`
138
+ const At=Symbol.for(""),_t=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===At)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Ht=t=>({_$litStatic$:t,r:At}),Zt=new Map,Kt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(n=i[c],s=_t(n));)a+=s+e[++c],h=!0;l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=Zt.get(t))&&(r.raw=r,Zt.set(t,e=r)),i=l}return t(e,...i)})(W);var Wt,Vt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!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"}(Wt||(Wt={}));const qt=ut.extend("--ft-typography-font-family",vt.titleFont),Jt=ut.extend("--ft-typography-font-family",vt.contentFont),Xt={fontFamily:Jt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","SIZE","24px"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Yt=ut.extend("--ft-typography-title-font-family",qt),Qt=ut.extend("--ft-typography-title-font-size",Xt.fontSize,"20px"),Gt=ut.extend("--ft-typography-title-font-weight",Xt.fontWeight,"normal"),te=ut.extend("--ft-typography-title-letter-spacing",Xt.letterSpacing,"0.15px"),ee=ut.extend("--ft-typography-title-line-height",Xt.lineHeight,"24px"),ie=ut.extend("--ft-typography-title-text-transform",Xt.textTransform,"inherit"),oe=ut.extend("--ft-typography-title-dense-font-family",qt),se=ut.extend("--ft-typography-title-dense-font-size",Xt.fontSize,"14px"),ne=ut.extend("--ft-typography-title-dense-font-weight",Xt.fontWeight,"normal"),re=ut.extend("--ft-typography-title-dense-letter-spacing",Xt.letterSpacing,"0.105px"),le=ut.extend("--ft-typography-title-dense-line-height",Xt.lineHeight,"24px"),ae=ut.extend("--ft-typography-title-dense-text-transform",Xt.textTransform,"inherit"),ce=ut.extend("--ft-typography-subtitle1-font-family",Jt),he=ut.extend("--ft-typography-subtitle1-font-size",Xt.fontSize,"16px"),pe=ut.extend("--ft-typography-subtitle1-font-weight",Xt.fontWeight,"600"),de=ut.extend("--ft-typography-subtitle1-letter-spacing",Xt.letterSpacing,"0.144px"),fe=ut.extend("--ft-typography-subtitle1-line-height",Xt.lineHeight,"24px"),ue=ut.extend("--ft-typography-subtitle1-text-transform",Xt.textTransform,"inherit"),be=ut.extend("--ft-typography-subtitle2-font-family",Jt),ve=ut.extend("--ft-typography-subtitle2-font-size",Xt.fontSize,"14px"),ge=ut.extend("--ft-typography-subtitle2-font-weight",Xt.fontWeight,"normal"),xe=ut.extend("--ft-typography-subtitle2-letter-spacing",Xt.letterSpacing,"0.098px"),ye=ut.extend("--ft-typography-subtitle2-line-height",Xt.lineHeight,"24px"),me=ut.extend("--ft-typography-subtitle2-text-transform",Xt.textTransform,"inherit"),$e={fontFamily:ut.extend("--ft-typography-body1-font-family",Jt),fontSize:ut.extend("--ft-typography-body1-font-size",Xt.fontSize,"16px"),fontWeight:ut.extend("--ft-typography-body1-font-weight",Xt.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body1-letter-spacing",Xt.letterSpacing,"0.496px"),lineHeight:ut.extend("--ft-typography-body1-line-height",Xt.lineHeight,"24px"),textTransform:ut.extend("--ft-typography-body1-text-transform",Xt.textTransform,"inherit")},we={fontFamily:ut.extend("--ft-typography-body2-font-family",Jt),fontSize:ut.extend("--ft-typography-body2-font-size",Xt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-body2-font-weight",Xt.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body2-letter-spacing",Xt.letterSpacing,"0.252px"),lineHeight:ut.extend("--ft-typography-body2-line-height",Xt.lineHeight,"20px"),textTransform:ut.extend("--ft-typography-body2-text-transform",Xt.textTransform,"inherit")},ke={fontFamily:ut.extend("--ft-typography-caption-font-family",Jt),fontSize:ut.extend("--ft-typography-caption-font-size",Xt.fontSize,"12px"),fontWeight:ut.extend("--ft-typography-caption-font-weight",Xt.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-caption-letter-spacing",Xt.letterSpacing,"0.396px"),lineHeight:ut.extend("--ft-typography-caption-line-height",Xt.lineHeight,"16px"),textTransform:ut.extend("--ft-typography-caption-text-transform",Xt.textTransform,"inherit")},Se=ut.extend("--ft-typography-breadcrumb-font-family",Jt),Oe=ut.extend("--ft-typography-breadcrumb-font-size",Xt.fontSize,"10px"),Ce=ut.extend("--ft-typography-breadcrumb-font-weight",Xt.fontWeight,"normal"),ze=ut.extend("--ft-typography-breadcrumb-letter-spacing",Xt.letterSpacing,"0.33px"),Ee=ut.extend("--ft-typography-breadcrumb-line-height",Xt.lineHeight,"16px"),Be=ut.extend("--ft-typography-breadcrumb-text-transform",Xt.textTransform,"inherit"),Ne=ut.extend("--ft-typography-overline-font-family",Jt),Me=ut.extend("--ft-typography-overline-font-size",Xt.fontSize,"10px"),Re=ut.extend("--ft-typography-overline-font-weight",Xt.fontWeight,"normal"),Fe=ut.extend("--ft-typography-overline-letter-spacing",Xt.letterSpacing,"1.5px"),Le=ut.extend("--ft-typography-overline-line-height",Xt.lineHeight,"16px"),De=ut.extend("--ft-typography-overline-text-transform",Xt.textTransform,"uppercase"),Ie={fontFamily:ut.extend("--ft-typography-button-font-family",Jt),fontSize:ut.extend("--ft-typography-button-font-size",Xt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",Xt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",Xt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",Xt.lineHeight,"16px"),textTransform:ut.extend("--ft-typography-button-text-transform",Xt.textTransform,"uppercase")},je=g`
139
139
  .ft-typography--title {
140
140
  font-family: ${Yt};
141
141
  font-size: ${Qt};
@@ -153,7 +153,7 @@ const At=Symbol.for(""),_t=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
153
153
  line-height: ${le};
154
154
  text-transform: ${ae};
155
155
  }
156
- `,Te=g`
156
+ `,Pe=g`
157
157
  .ft-typography--subtitle1 {
158
158
  font-family: ${ce};
159
159
  font-size: ${he};
@@ -162,7 +162,7 @@ const At=Symbol.for(""),_t=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
162
162
  line-height: ${fe};
163
163
  text-transform: ${ue};
164
164
  }
165
- `,Pe=g`
165
+ `,Te=g`
166
166
  .ft-typography--subtitle2 {
167
167
  font-family: ${be};
168
168
  font-size: ${ve};
@@ -210,21 +210,21 @@ const At=Symbol.for(""),_t=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
210
210
  }
211
211
  `,Ke=g`
212
212
  .ft-typography--overline {
213
- font-family: ${Me};
214
- font-size: ${Ne};
215
- font-weight: ${Fe};
216
- letter-spacing: ${Re};
213
+ font-family: ${Ne};
214
+ font-size: ${Me};
215
+ font-weight: ${Re};
216
+ letter-spacing: ${Fe};
217
217
  line-height: ${Le};
218
218
  text-transform: ${De};
219
219
  }
220
220
  `,We=g`
221
221
  .ft-typography--button {
222
- font-family: ${je.fontFamily};
223
- font-size: ${je.fontSize};
224
- font-weight: ${je.fontWeight};
225
- letter-spacing: ${je.letterSpacing};
226
- line-height: ${je.lineHeight};
227
- text-transform: ${je.textTransform};
222
+ font-family: ${Ie.fontFamily};
223
+ font-size: ${Ie.fontSize};
224
+ font-weight: ${Ie.fontWeight};
225
+ letter-spacing: ${Ie.letterSpacing};
226
+ line-height: ${Ie.lineHeight};
227
+ text-transform: ${Ie.textTransform};
228
228
  }
229
229
  `;class Ve extends gt{constructor(){super(...arguments),this.variant=Wt.body1}render(){return this.element?Kt`
230
230
  <${Ht(this.element)}
@@ -233,7 +233,7 @@ const At=Symbol.for(""),_t=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
233
233
  </${Ht(this.element)}>
234
234
  `:Kt`
235
235
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
236
- `}}function qe(t,e){return t.flatMap((t=>[t,...qe(e(t),e)]))}function Je(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Xe(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>Xe(e,t.selected))),value:t.value}}function Ye(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>Xe(t,!1)))}}Ve.styles=[Ie,Ue,Te,Pe,Ae,_e,He,Ze,Ke,We,g`
236
+ `}}function qe(t,e){return t.flatMap((t=>[t,...qe(e(t),e)]))}function Je(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Xe(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>Xe(e,t.selected))),value:t.value}}function Ye(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>Xe(t,!1)))}}Ve.styles=[je,Ue,Pe,Te,Ae,_e,He,Ze,Ke,We,g`
237
237
  .ft-typography {
238
238
  vertical-align: inherit;
239
239
  }
@@ -250,7 +250,7 @@ const At=Symbol.for(""),_t=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
250
250
  top: ${this.originY}px;
251
251
  }
252
252
  </style>
253
- <div class="${jt(t)}">
253
+ <div class="${It(t)}">
254
254
  <div class="ft-ripple--background"></div>
255
255
  <div class="ft-ripple--effect"></div>
256
256
  </div>
@@ -510,7 +510,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
510
510
  .ft-icon--material {
511
511
  font-family: ${Oi.materialFontFamily}, "Material Icons", sans-serif;
512
512
  }
513
- `,Si([o()],Ci.prototype,"variant",void 0),Si([r("slot")],Ci.prototype,"slottedContent",void 0),h("ft-icon")(Ci);var zi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ei=ut.extend("--ft-button-color",vt.colorPrimary),Bi={backgroundColor:ut.extend("--ft-button-background-color",vt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",vt.borderRadiusL),color:Ei,fontSize:ut.extend("--ft-button-font-size",je.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Ei),opacityDisabled:ut.external(vt.colorOpacityDisabled,"Design system")},Mi=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",vt.colorOnPrimary)),Ni={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",vt.colorPrimary)),color:Mi,rippleColor:ut.extend("--ft-button-primary-ripple-color",Mi)},Fi=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",vt.borderRadiusM));class Ri extends gt{constructor(){super(...arguments),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.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[xt,g`
513
+ `,Si([o()],Ci.prototype,"variant",void 0),Si([r("slot")],Ci.prototype,"slottedContent",void 0),h("ft-icon")(Ci);var zi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ei=ut.extend("--ft-button-color",vt.colorPrimary),Bi={backgroundColor:ut.extend("--ft-button-background-color",vt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",vt.borderRadiusL),color:Ei,fontSize:ut.extend("--ft-button-font-size",Ie.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Ei),opacityDisabled:ut.external(vt.colorOpacityDisabled,"Design system")},Ni=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",vt.colorOnPrimary)),Mi={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",vt.colorPrimary)),color:Ni,rippleColor:ut.extend("--ft-button-primary-ripple-color",Ni)},Ri=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",vt.borderRadiusM));class Fi extends gt{constructor(){super(...arguments),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.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[xt,g`
514
514
  :host {
515
515
  display: inline-block;
516
516
  max-width: 100%;
@@ -572,7 +572,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
572
572
  .ft-button--dense {
573
573
  --ft-button-internal-vertical-padding: 2px;
574
574
  --ft-button-internal-horizontal-padding: 4px;
575
- border-radius: ${Fi};
575
+ border-radius: ${Ri};
576
576
  }
577
577
 
578
578
  .ft-button--round {
@@ -585,9 +585,9 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
585
585
  }
586
586
 
587
587
  .ft-button.ft-button--primary {
588
- background-color: ${Ni.backgroundColor};
589
- --ft-button-internal-color: ${Ni.color};
590
- ${bt(ti.color,Ni.rippleColor)};
588
+ background-color: ${Mi.backgroundColor};
589
+ --ft-button-internal-color: ${Mi.color};
590
+ ${bt(ti.color,Mi.rippleColor)};
591
591
  }
592
592
 
593
593
  .ft-button.ft-button--outlined {
@@ -606,8 +606,8 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
606
606
  text-overflow: ellipsis;
607
607
  display: block;
608
608
  margin: 0 var(--ft-button-internal-horizontal-padding);
609
- ${bt(je.fontSize,"var(--ft-button-internal-font-size)")};
610
- ${bt(je.lineHeight,"var(--ft-button-internal-content-height)")};
609
+ ${bt(Ie.fontSize,"var(--ft-button-internal-font-size)")};
610
+ ${bt(Ie.lineHeight,"var(--ft-button-internal-content-height)")};
611
611
  }
612
612
 
613
613
  .ft-button--safari-fix .ft-button--label {
@@ -645,7 +645,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
645
645
  }
646
646
  `]}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-button--safari-fix":kt,"ft-no-text-select":!0};return this.addTooltip(W`
647
647
  <button part="button"
648
- class="${jt(t)}"
648
+ class="${It(t)}"
649
649
  aria-label="${this.getLabel()}"
650
650
  ?disabled=${this.isDisabled()}>
651
651
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -665,8 +665,8 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
665
665
  </ft-tooltip>
666
666
  `}resolveIcon(){return this.loading?W`
667
667
  <ft-loader></ft-loader> `:this.icon?W`
668
- <ft-icon variant="material">${this.icon}</ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ri.elementDefinitions={"ft-ripple":li,"ft-tooltip":ui,"ft-typography":Ve,"ft-icon":Ci,"ft-loader":vi},zi([o({type:Boolean})],Ri.prototype,"primary",void 0),zi([o({type:Boolean})],Ri.prototype,"outlined",void 0),zi([o({type:Boolean})],Ri.prototype,"disabled",void 0),zi([o({type:Boolean})],Ri.prototype,"dense",void 0),zi([o({type:Boolean})],Ri.prototype,"round",void 0),zi([o({type:String})],Ri.prototype,"label",void 0),zi([o({type:String})],Ri.prototype,"icon",void 0),zi([o({type:Boolean})],Ri.prototype,"trailingIcon",void 0),zi([o({type:Boolean})],Ri.prototype,"loading",void 0),zi([o({type:String})],Ri.prototype,"tooltipPosition",void 0),zi([r(".ft-button")],Ri.prototype,"button",void 0),zi([r(".ft-button--label slot")],Ri.prototype,"slottedContent",void 0),h("ft-button")(Ri);var Li=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Di=ut.extend("--ft-checkbox-text-color",vt.colorOnSurfaceHigh),ji=ut.external(vt.colorPrimary,"Design system"),Ii=ut.external(vt.colorOnPrimary,"Design system"),Ui=ut.extend("--ft-checkbox-border-color",vt.colorOnSurfaceMedium),Ti=ut.external(vt.colorOnSurfaceDisabled,"Design system");class Pi extends gt{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return W`
669
- <label class="${jt(t)}">
668
+ <ft-icon variant="material">${this.icon}</ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Fi.elementDefinitions={"ft-ripple":li,"ft-tooltip":ui,"ft-typography":Ve,"ft-icon":Ci,"ft-loader":vi},zi([o({type:Boolean})],Fi.prototype,"primary",void 0),zi([o({type:Boolean})],Fi.prototype,"outlined",void 0),zi([o({type:Boolean})],Fi.prototype,"disabled",void 0),zi([o({type:Boolean})],Fi.prototype,"dense",void 0),zi([o({type:Boolean})],Fi.prototype,"round",void 0),zi([o({type:String})],Fi.prototype,"label",void 0),zi([o({type:String})],Fi.prototype,"icon",void 0),zi([o({type:Boolean})],Fi.prototype,"trailingIcon",void 0),zi([o({type:Boolean})],Fi.prototype,"loading",void 0),zi([o({type:String})],Fi.prototype,"tooltipPosition",void 0),zi([r(".ft-button")],Fi.prototype,"button",void 0),zi([r(".ft-button--label slot")],Fi.prototype,"slottedContent",void 0),h("ft-button")(Fi);var Li=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Di=ut.extend("--ft-checkbox-text-color",vt.colorOnSurfaceHigh),Ii=ut.external(vt.colorPrimary,"Design system"),ji=ut.external(vt.colorOnPrimary,"Design system"),Ui=ut.extend("--ft-checkbox-border-color",vt.colorOnSurfaceMedium),Pi=ut.external(vt.colorOnSurfaceDisabled,"Design system");class Ti extends gt{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return W`
669
+ <label class="${It(t)}">
670
670
  <div class="ft-checkbox--box-container">
671
671
  <input type="checkbox"
672
672
  name=${this.name}
@@ -690,7 +690,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
690
690
  <slot></slot>
691
691
  </ft-typography>
692
692
  </label>
693
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Pi.elementDefinitions={"ft-ripple":li,"ft-typography":Ve},Pi.styles=g`
693
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Ti.elementDefinitions={"ft-ripple":li,"ft-typography":Ve},Ti.styles=g`
694
694
  * {
695
695
  box-sizing: border-box;
696
696
  }
@@ -705,7 +705,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
705
705
  }
706
706
 
707
707
  .ft-checkbox--disabled {
708
- color: ${Ti};
708
+ color: ${Pi};
709
709
  }
710
710
 
711
711
  input {
@@ -735,20 +735,20 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
735
735
  width: 18px;
736
736
  height: 18px;
737
737
 
738
- color: ${Ii};
738
+ color: ${ji};
739
739
  }
740
740
 
741
741
 
742
742
  .ft-checkbox--checked .ft-checkbox--box,
743
743
  .ft-checkbox--indeterminate .ft-checkbox--box {
744
- border-color: ${ji};
745
- background-color: ${ji};
744
+ border-color: ${Ii};
745
+ background-color: ${Ii};
746
746
  }
747
747
 
748
748
  .ft-checkbox--disabled .ft-checkbox--box {
749
- border-color: ${Ti};
749
+ border-color: ${Pi};
750
750
  background-color: transparent;
751
- color: ${Ti};
751
+ color: ${Pi};
752
752
  }
753
753
 
754
754
  .ft-checkbox--checkmark {
@@ -767,8 +767,8 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
767
767
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
768
768
  opacity: 1;
769
769
  }
770
- `,Li([o()],Pi.prototype,"name",void 0),Li([o({type:Boolean})],Pi.prototype,"checked",void 0),Li([o({type:Boolean})],Pi.prototype,"indeterminate",void 0),Li([o({type:Boolean})],Pi.prototype,"disabled",void 0),Li([r(".ft-checkbox")],Pi.prototype,"container",void 0),Li([r("ft-ripple")],Pi.prototype,"ripple",void 0),h("ft-checkbox")(Pi);var Ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const _i=ut.extend("--ft-radio-text-color",vt.colorOnSurfaceHigh),Hi=ut.external(vt.colorPrimary,"Design system"),Zi=(ut.external(vt.colorOnPrimary,"Design system"),ut.extend("--ft-radio-border-color",vt.colorOnSurfaceMedium)),Ki=ut.external(vt.colorOnSurfaceDisabled,"Design system");class Wi extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Vi extends gt{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return W`
771
- <div class="${jt(t)}">
770
+ `,Li([o()],Ti.prototype,"name",void 0),Li([o({type:Boolean})],Ti.prototype,"checked",void 0),Li([o({type:Boolean})],Ti.prototype,"indeterminate",void 0),Li([o({type:Boolean})],Ti.prototype,"disabled",void 0),Li([r(".ft-checkbox")],Ti.prototype,"container",void 0),Li([r("ft-ripple")],Ti.prototype,"ripple",void 0),h("ft-checkbox")(Ti);var Ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const _i=ut.extend("--ft-radio-text-color",vt.colorOnSurfaceHigh),Hi=ut.external(vt.colorPrimary,"Design system"),Zi=(ut.external(vt.colorOnPrimary,"Design system"),ut.extend("--ft-radio-border-color",vt.colorOnSurfaceMedium)),Ki=ut.external(vt.colorOnSurfaceDisabled,"Design system");class Wi extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Vi extends gt{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return W`
771
+ <div class="${It(t)}">
772
772
  <div class="ft-radio--box-container">
773
773
  <input id="radio-button"
774
774
  type="radio"
@@ -934,7 +934,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
934
934
 
935
935
  ${t.label}
936
936
  </ft-radio>
937
- `}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}))}}Qi.elementDefinitions={"ft-button":Ri,"ft-ripple":li,"ft-typography":Ve,"ft-checkbox":Pi,"ft-icon":Ci,"ft-radio":Vi},Qi.styles=[g`
937
+ `}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}))}}Qi.elementDefinitions={"ft-button":Fi,"ft-ripple":li,"ft-typography":Ve,"ft-checkbox":Ti,"ft-icon":Ci,"ft-radio":Vi},Qi.styles=[g`
938
938
  .ft-filter-level--container {
939
939
  display: flex;
940
940
  flex-direction: column;
@@ -995,7 +995,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
995
995
  margin-left: -10px;
996
996
  word-break: break-word;
997
997
  }
998
- `],Xi([o({type:String})],Qi.prototype,"id",void 0),Xi([o({type:Object})],Qi.prototype,"parent",void 0),Xi([o({type:Array})],Qi.prototype,"options",void 0),Xi([o({type:Boolean})],Qi.prototype,"multivalued",void 0),Xi([o({type:Boolean})],Qi.prototype,"disabled",void 0),Xi([o({type:Boolean})],Qi.prototype,"hideSelectedOptions",void 0),Xi([o({type:Boolean})],Qi.prototype,"preventNavigation",void 0),Xi([o({type:String})],Qi.prototype,"filter",void 0),Xi([o({type:String})],Qi.prototype,"moreValuesButtonLabel",void 0),Xi([o({type:Number})],Qi.prototype,"displayedValuesLimit",void 0),Xi([r(".ft-filter-level--container")],Qi.prototype,"container",void 0),Xi([s()],Qi.prototype,"displayedPages",void 0);var Gi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const to={buttonsColor:ut.extend("--ft-snap-scroll-buttons-color",vt.colorPrimary),buttonsZIndex:ut.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:ut.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:ut.external(vt.colorSurface,"Design system")};class eo extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class io extends gt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new e(200),this.updateScrollDebouncer=new e(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=jt({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":kt}),e=this.controls&&this.withScroll;return W`
998
+ `],Xi([o({type:String})],Qi.prototype,"id",void 0),Xi([o({type:Object})],Qi.prototype,"parent",void 0),Xi([o({type:Array})],Qi.prototype,"options",void 0),Xi([o({type:Boolean})],Qi.prototype,"multivalued",void 0),Xi([o({type:Boolean})],Qi.prototype,"disabled",void 0),Xi([o({type:Boolean})],Qi.prototype,"hideSelectedOptions",void 0),Xi([o({type:Boolean})],Qi.prototype,"preventNavigation",void 0),Xi([o({type:String})],Qi.prototype,"filter",void 0),Xi([o({type:String})],Qi.prototype,"moreValuesButtonLabel",void 0),Xi([o({type:Number})],Qi.prototype,"displayedValuesLimit",void 0),Xi([r(".ft-filter-level--container")],Qi.prototype,"container",void 0),Xi([s()],Qi.prototype,"displayedPages",void 0);var Gi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const to={buttonsColor:ut.extend("--ft-snap-scroll-buttons-color",vt.colorPrimary),buttonsZIndex:ut.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:ut.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:ut.external(vt.colorSurface,"Design system")};class eo extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class io extends gt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new e(200),this.updateScrollDebouncer=new e(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=It({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":kt}),e=this.controls&&this.withScroll;return W`
999
999
  <div part="container" class="${t}">
1000
1000
  <ft-button
1001
1001
  class="ft-snap-scroll--previous"
@@ -1019,7 +1019,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1019
1019
  @click=${this.next}
1020
1020
  ></ft-button>
1021
1021
  </div>
1022
- `}updated(t){var e;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===(e=this.listenedContainer)||void 0===e||e.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 eo(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);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 e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}io.elementDefinitions={"ft-button":Ri},io.styles=g`
1022
+ `}updated(t){var e;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===(e=this.listenedContainer)||void 0===e||e.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 eo(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);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 e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}io.elementDefinitions={"ft-button":Fi},io.styles=g`
1023
1023
  .ft-snap-scroll {
1024
1024
  box-sizing: border-box;
1025
1025
  position: relative;
@@ -1164,6 +1164,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1164
1164
  class="ft-typography--caption"
1165
1165
  ?disabled=${!o}
1166
1166
  placeholder="${this.filterPlaceHolder.replace("{0}",this.label)}"
1167
+ @search=${this.onFilterChange}
1167
1168
  @keyup=${this.onFilterChange}>
1168
1169
  </div>
1169
1170
  <div class="ft-filter--values">
@@ -1209,7 +1210,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1209
1210
  @display-level=${this.onDisplayLevel}
1210
1211
  part="values"
1211
1212
  ></ft-filter-level>
1212
- `}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;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new po(e)),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(t){const e=t.composedPath()[0];this.filter=e.value}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}fo.elementDefinitions={"ft-button":Ri,"ft-filter-level":Qi,"ft-snap-scroll":io,"ft-typography":Ve},fo.styles=[He,g`
1213
+ `}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;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new po(e)),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)}}fo.elementDefinitions={"ft-button":Fi,"ft-filter-level":Qi,"ft-snap-scroll":io,"ft-typography":Ve},fo.styles=[He,g`
1213
1214
  :host {
1214
1215
  display: flex;
1215
1216
  max-height: 100%;
@@ -1314,7 +1315,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1314
1315
  slot {
1315
1316
  display: none;
1316
1317
  }
1317
- `],oo([o({type:String})],fo.prototype,"id",void 0),oo([o({type:String})],fo.prototype,"label",void 0),oo([o({type:String})],fo.prototype,"filterPlaceHolder",void 0),oo([o({type:String})],fo.prototype,"clearButtonLabel",void 0),oo([o({type:String})],fo.prototype,"moreValuesButtonLabel",void 0),oo([p([])],fo.prototype,"options",void 0),oo([o({type:Boolean})],fo.prototype,"multivalued",void 0),oo([o({type:Boolean})],fo.prototype,"disabled",void 0),oo([o({type:Boolean})],fo.prototype,"raiseSelectedOptions",void 0),oo([o({type:Number})],fo.prototype,"displayedValuesLimit",void 0),oo([r(".ft-filter--slot")],fo.prototype,"slotElement",void 0),oo([r(".ft-filter--container")],fo.prototype,"container",void 0),oo([r(".ft-filter--values")],fo.prototype,"valuesContainer",void 0),oo([r(".ft-filter--levels")],fo.prototype,"levelsContainer",void 0),oo([r(".ft-filter--levels ft-filter-level:last-child")],fo.prototype,"lastLevel",void 0),oo([function(t){return n({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")],fo.prototype,"levels",void 0),oo([s()],fo.prototype,"withScroll",void 0),oo([s()],fo.prototype,"filter",void 0),oo([s()],fo.prototype,"slideIn",void 0),oo([s()],fo.prototype,"slideOut",void 0);var uo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class bo extends gt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return W`
1318
+ `],oo([o({type:String})],fo.prototype,"id",void 0),oo([o({type:String})],fo.prototype,"label",void 0),oo([o({type:String})],fo.prototype,"filterPlaceHolder",void 0),oo([o({type:String})],fo.prototype,"clearButtonLabel",void 0),oo([o({type:String})],fo.prototype,"moreValuesButtonLabel",void 0),oo([p([])],fo.prototype,"options",void 0),oo([o({type:Boolean})],fo.prototype,"multivalued",void 0),oo([o({type:Boolean})],fo.prototype,"disabled",void 0),oo([o({type:Boolean})],fo.prototype,"raiseSelectedOptions",void 0),oo([o({type:Number})],fo.prototype,"displayedValuesLimit",void 0),oo([r(".ft-filter--slot")],fo.prototype,"slotElement",void 0),oo([r(".ft-filter--container")],fo.prototype,"container",void 0),oo([r(".ft-filter--values")],fo.prototype,"valuesContainer",void 0),oo([r(".ft-filter--levels")],fo.prototype,"levelsContainer",void 0),oo([r(".ft-filter--levels ft-filter-level:last-child")],fo.prototype,"lastLevel",void 0),oo([r(".ft-filter--filter input")],fo.prototype,"filterInput",void 0),oo([function(t){return n({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")],fo.prototype,"levels",void 0),oo([s()],fo.prototype,"withScroll",void 0),oo([s()],fo.prototype,"filter",void 0),oo([s()],fo.prototype,"slideIn",void 0),oo([s()],fo.prototype,"slideOut",void 0);var uo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class bo extends gt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return W`
1318
1319
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1319
1320
  `}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}))}}bo.elementDefinitions={},uo([o({type:String})],bo.prototype,"label",void 0),uo([o({type:Object,converter:t=>t})],bo.prototype,"value",void 0),uo([o({type:Boolean,reflect:!0})],bo.prototype,"selected",void 0),uo([o({type:Object})],bo.prototype,"subOptions",void 0),uo([r(".ft-filter-option--slot")],bo.prototype,"slotElement",void 0),h("ft-filter")(fo),h("ft-filter-option")(bo);var vo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class go extends gt{constructor(){super(...arguments),this.multi=!1}render(){return W`
1320
1321
  <div class="ft-accordion">
@@ -1393,7 +1394,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1393
1394
  .ft-accordion-item--separator {
1394
1395
  border-bottom: 1px solid ${$o};
1395
1396
  }
1396
- `,xo([o({type:String})],wo.prototype,"icon",void 0),xo([o({type:String})],wo.prototype,"label",void 0),xo([o({type:Boolean,reflect:!0})],wo.prototype,"active",void 0),h("ft-accordion")(go),h("ft-accordion-item")(wo);var ko=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const So=ut.extend("--ft-chip-color",vt.colorOnSurface),Oo={backgroundColor:ut.extend("--ft-chip-background-color",vt.colorSurface),color:So,fontSize:ut.extend("--ft-chip-font-size",we.fontSize),iconSize:ut.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:ut.extend("--ft-chip-ripple-color",So),horizontalPadding:ut.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:ut.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:ut.external(vt.colorOutline,"Design system"),opacityDisabled:ut.external(vt.colorOpacityDisabled,"Design system")},Co=ut.extend("--ft-chip-highlighted-color",ut.extend("--ft-chip-color",vt.colorOnPrimary)),zo={backgroundColor:ut.extend("--ft-chip-highlighted-background-color",ut.extend("--ft-chip-background-color",vt.colorPrimary)),color:Co,rippleColor:ut.extend("--ft-chip-highlighted-ripple-color",Co)},Eo=ut.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Bo=ut.create("--ft-chip-dense-vertical-padding","SIZE","4px");class Mo extends CustomEvent{constructor(){super("icon-click")}}class No extends gt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[xt,g`
1397
+ `,xo([o({type:String})],wo.prototype,"icon",void 0),xo([o({type:String})],wo.prototype,"label",void 0),xo([o({type:Boolean,reflect:!0})],wo.prototype,"active",void 0),h("ft-accordion")(go),h("ft-accordion-item")(wo);var ko=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const So=ut.extend("--ft-chip-color",vt.colorOnSurface),Oo={backgroundColor:ut.extend("--ft-chip-background-color",vt.colorSurface),color:So,fontSize:ut.extend("--ft-chip-font-size",we.fontSize),iconSize:ut.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:ut.extend("--ft-chip-ripple-color",So),horizontalPadding:ut.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:ut.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:ut.external(vt.colorOutline,"Design system"),opacityDisabled:ut.external(vt.colorOpacityDisabled,"Design system")},Co=ut.extend("--ft-chip-highlighted-color",ut.extend("--ft-chip-color",vt.colorOnPrimary)),zo={backgroundColor:ut.extend("--ft-chip-highlighted-background-color",ut.extend("--ft-chip-background-color",vt.colorPrimary)),color:Co,rippleColor:ut.extend("--ft-chip-highlighted-ripple-color",Co)},Eo=ut.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Bo=ut.create("--ft-chip-dense-vertical-padding","SIZE","4px");class No extends CustomEvent{constructor(){super("icon-click")}}class Mo extends gt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[xt,g`
1397
1398
  :host {
1398
1399
  display: inline-block;
1399
1400
  max-width: 100%;
@@ -1524,7 +1525,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1524
1525
  order: -1;
1525
1526
  }
1526
1527
  `]}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":kt};return W`
1527
- <div class="${jt(t)}"
1528
+ <div class="${It(t)}"
1528
1529
  aria-label="${this.getLabel()}"
1529
1530
  tabindex="${this.interactionsOnChip?0:-1}"
1530
1531
  @keyup=${this.onKeyUp}>
@@ -1542,8 +1543,8 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1542
1543
  <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
1543
1544
  <ft-icon variant="material">${this.internalIcon}</ft-icon>
1544
1545
  </div>
1545
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Mo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Mo))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}No.elementDefinitions={"ft-ripple":li,"ft-typography":Ve,"ft-icon":Ci},ko([o({type:Boolean})],No.prototype,"highlighted",void 0),ko([o({type:Boolean})],No.prototype,"removable",void 0),ko([o({type:Boolean})],No.prototype,"disabled",void 0),ko([o({type:Boolean})],No.prototype,"clickable",void 0),ko([o({type:Boolean})],No.prototype,"iconClickable",void 0),ko([o({type:Boolean})],No.prototype,"dense",void 0),ko([o({type:Boolean})],No.prototype,"multiLine",void 0),ko([o({type:String})],No.prototype,"label",void 0),ko([o({type:String})],No.prototype,"icon",void 0),ko([o({type:Boolean})],No.prototype,"trailingIcon",void 0),ko([r("ft-typography slot")],No.prototype,"slottedContent",void 0),h("ft-chip")(No);var Fo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ro={fontSize:ut.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ut.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ut.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ut.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ut.extend("--ft-input-label-border-color",vt.colorOutline),textColor:ut.extend("--ft-input-label-text-color",vt.colorOnSurfaceMedium),disabledTextColor:ut.extend("--ft-input-label-disabled-text-color",vt.colorOnSurfaceDisabled),colorSurface:ut.external(vt.colorSurface,"Design system"),borderRadiusS:ut.external(vt.borderRadiusS,"Design system"),colorError:ut.external(vt.colorError,"Design system")};class Lo extends gt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return W`
1546
- <div class="${jt(t)}">
1546
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new No))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new No))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Mo.elementDefinitions={"ft-ripple":li,"ft-typography":Ve,"ft-icon":Ci},ko([o({type:Boolean})],Mo.prototype,"highlighted",void 0),ko([o({type:Boolean})],Mo.prototype,"removable",void 0),ko([o({type:Boolean})],Mo.prototype,"disabled",void 0),ko([o({type:Boolean})],Mo.prototype,"clickable",void 0),ko([o({type:Boolean})],Mo.prototype,"iconClickable",void 0),ko([o({type:Boolean})],Mo.prototype,"dense",void 0),ko([o({type:Boolean})],Mo.prototype,"multiLine",void 0),ko([o({type:String})],Mo.prototype,"label",void 0),ko([o({type:String})],Mo.prototype,"icon",void 0),ko([o({type:Boolean})],Mo.prototype,"trailingIcon",void 0),ko([r("ft-typography slot")],Mo.prototype,"slottedContent",void 0),h("ft-chip")(Mo);var Ro=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Fo={fontSize:ut.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ut.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ut.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ut.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ut.extend("--ft-input-label-border-color",vt.colorOutline),textColor:ut.extend("--ft-input-label-text-color",vt.colorOnSurfaceMedium),disabledTextColor:ut.extend("--ft-input-label-disabled-text-color",vt.colorOnSurfaceDisabled),colorSurface:ut.external(vt.colorSurface,"Design system"),borderRadiusS:ut.external(vt.borderRadiusS,"Design system"),colorError:ut.external(vt.colorError,"Design system")};class Lo extends gt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return W`
1547
+ <div class="${It(t)}">
1547
1548
  ${this.text?W`
1548
1549
  <div class="ft-input-label--text ft-typography--caption">
1549
1550
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -1559,11 +1560,11 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1559
1560
  }
1560
1561
 
1561
1562
  .ft-input-label {
1562
- border-color: ${Ro.borderColor};
1563
+ border-color: ${Fo.borderColor};
1563
1564
  }
1564
1565
 
1565
1566
  .ft-input-label.ft-input-label--in-error {
1566
- border-color: ${Ro.colorError}
1567
+ border-color: ${Fo.colorError}
1567
1568
  }
1568
1569
 
1569
1570
  .ft-input-label:before,
@@ -1576,7 +1577,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1576
1577
  }
1577
1578
 
1578
1579
  .ft-input-label:before {
1579
- width: ${Ro.horizontalSpacing};
1580
+ width: ${Fo.horizontalSpacing};
1580
1581
  flex-shrink: 0;
1581
1582
  }
1582
1583
 
@@ -1592,18 +1593,18 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1592
1593
  border-bottom-width: 1px;
1593
1594
  border-bottom-style: solid;
1594
1595
  border-color: inherit;
1595
- color: ${Ro.textColor};
1596
+ color: ${Fo.textColor};
1596
1597
  transition: font-size 250ms, line-height 250ms, color 250ms;
1597
- ${bt(ke.fontSize,Ro.fontSize)};
1598
- ${bt(ke.lineHeight,Ro.fontSize)};
1598
+ ${bt(ke.fontSize,Fo.fontSize)};
1599
+ ${bt(ke.lineHeight,Fo.fontSize)};
1599
1600
  }
1600
1601
 
1601
1602
  .ft-input-label--in-error .ft-input-label--text {
1602
- color: ${Ro.colorError}
1603
+ color: ${Fo.colorError}
1603
1604
  }
1604
1605
 
1605
1606
  .ft-input-label--disabled .ft-input-label--text {
1606
- color: ${Ro.disabledTextColor};
1607
+ color: ${Fo.disabledTextColor};
1607
1608
  }
1608
1609
 
1609
1610
  .ft-input-label--hidden-text {
@@ -1619,17 +1620,17 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1619
1620
  overflow: hidden;
1620
1621
  white-space: nowrap;
1621
1622
  text-overflow: ellipsis;
1622
- padding: ${Ro.verticalSpacing} 4px;
1623
- margin: calc(${Ro.verticalSpacing} * -1) 0;
1623
+ padding: ${Fo.verticalSpacing} 4px;
1624
+ margin: calc(${Fo.verticalSpacing} * -1) 0;
1624
1625
  }
1625
1626
 
1626
1627
  .ft-input-label--raised .ft-input-label--text {
1627
- ${bt(ke.fontSize,Ro.raisedFontSize)};
1628
- ${bt(ke.lineHeight,Ro.raisedFontSize)};
1628
+ ${bt(ke.fontSize,Fo.raisedFontSize)};
1629
+ ${bt(ke.lineHeight,Fo.raisedFontSize)};
1629
1630
  }
1630
1631
 
1631
1632
  .ft-input-label--raised .ft-input-label--floating-text {
1632
- top: ${Ro.verticalSpacing};
1633
+ top: ${Fo.verticalSpacing};
1633
1634
  }
1634
1635
 
1635
1636
  .ft-input-label--outlined .ft-input-label--text,
@@ -1642,28 +1643,28 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1642
1643
  .ft-input-label--outlined:before {
1643
1644
  border-left-width: 1px;
1644
1645
  border-left-style: solid;
1645
- border-radius: ${Ro.borderRadiusS} 0 0 ${Ro.borderRadiusS};
1646
+ border-radius: ${Fo.borderRadiusS} 0 0 ${Fo.borderRadiusS};
1646
1647
  }
1647
1648
 
1648
1649
  .ft-input-label--outlined:after {
1649
1650
  border-right-width: 1px;
1650
1651
  border-right-style: solid;
1651
- border-radius: 0 ${Ro.borderRadiusS} ${Ro.borderRadiusS} 0;
1652
+ border-radius: 0 ${Fo.borderRadiusS} ${Fo.borderRadiusS} 0;
1652
1653
  }
1653
1654
 
1654
1655
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1655
1656
  padding: 2px 4px;
1656
- z-index: ${Ro.raisedZIndex};
1657
- background-color: ${Ro.colorSurface};
1658
- border-radius: ${Ro.borderRadiusS};
1657
+ z-index: ${Fo.raisedZIndex};
1658
+ background-color: ${Fo.colorSurface};
1659
+ border-radius: ${Fo.borderRadiusS};
1659
1660
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1660
1661
  }
1661
1662
 
1662
1663
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1663
1664
  border-top: none;
1664
1665
  }
1665
- `],Fo([o({type:String})],Lo.prototype,"text",void 0),Fo([o({type:Boolean})],Lo.prototype,"raised",void 0),Fo([o({type:Boolean})],Lo.prototype,"outlined",void 0),Fo([o({type:Boolean})],Lo.prototype,"disabled",void 0),Fo([o({type:Boolean})],Lo.prototype,"error",void 0),h("ft-input-label")(Lo);var Do=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class jo extends gt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return W``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}jo.elementDefinitions={},Do([o({type:String})],jo.prototype,"label",void 0),Do([o({type:Object,converter:t=>t})],jo.prototype,"value",void 0),Do([o({type:Boolean,reflect:!0})],jo.prototype,"selected",void 0);const Io={labelSize:ut.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ut.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ut.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:ut.extend("--ft-select-selected-option-color",vt.colorOnSurface),helperColor:ut.extend("--ft-select-helper-color",vt.colorOnSurfaceMedium),optionsColor:ut.extend("--ft-select-options-color",vt.colorOnSurface),optionsZIndex:ut.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ut.external(vt.colorSurface,"Design system"),colorOnSurfaceDisabled:ut.external(vt.colorOnSurfaceDisabled,"Design system"),colorPrimary:ut.external(vt.colorPrimary,"Design system"),borderRadiusS:ut.external(vt.borderRadiusS,"Design system"),elevation02:ut.external(vt.elevation02,"Design system"),colorError:ut.external(vt.colorError,"Design system")};class Uo extends gt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return W`
1666
- <div class="${jt(a)}" part="container">
1666
+ `],Ro([o({type:String})],Lo.prototype,"text",void 0),Ro([o({type:Boolean})],Lo.prototype,"raised",void 0),Ro([o({type:Boolean})],Lo.prototype,"outlined",void 0),Ro([o({type:Boolean})],Lo.prototype,"disabled",void 0),Ro([o({type:Boolean})],Lo.prototype,"error",void 0),h("ft-input-label")(Lo);var Do=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Io extends gt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return W``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Io.elementDefinitions={},Do([o({type:String})],Io.prototype,"label",void 0),Do([o({type:Object,converter:t=>t})],Io.prototype,"value",void 0),Do([o({type:Boolean,reflect:!0})],Io.prototype,"selected",void 0);const jo={labelSize:ut.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ut.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ut.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:ut.extend("--ft-select-selected-option-color",vt.colorOnSurface),helperColor:ut.extend("--ft-select-helper-color",vt.colorOnSurfaceMedium),optionsColor:ut.extend("--ft-select-options-color",vt.colorOnSurface),optionsZIndex:ut.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ut.external(vt.colorSurface,"Design system"),colorOnSurfaceDisabled:ut.external(vt.colorOnSurfaceDisabled,"Design system"),colorPrimary:ut.external(vt.colorPrimary,"Design system"),borderRadiusS:ut.external(vt.borderRadiusS,"Design system"),elevation02:ut.external(vt.elevation02,"Design system"),colorError:ut.external(vt.colorError,"Design system")};class Uo extends gt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return W`
1667
+ <div class="${It(a)}" part="container">
1667
1668
  <div class="ft-select--main-panel" part="main-panel">
1668
1669
  <ft-input-label text="${this.label}"
1669
1670
  part="label"
@@ -1701,9 +1702,10 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1701
1702
  @option-change=${this.updateOptionsFromSlot}
1702
1703
  ></slot>
1703
1704
  `}renderOption(t){let e=this.selectedOption===t;return W`
1704
- <div class="${jt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
1705
+ <div class="${It({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
1705
1706
  part="option"
1706
1707
  tabindex="0"
1708
+ data-value="${t.value}"
1707
1709
  @keydown=${e=>this.onOptionKeyDown(e,t)}
1708
1710
  @click=${()=>this.selectOption(t)}>
1709
1711
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
@@ -1723,7 +1725,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1723
1725
  .ft-select--main-panel {
1724
1726
  position: relative;
1725
1727
  display: flex;
1726
- height: calc(4 * ${Io.verticalSpacing} + ${Io.labelSize} + ${Io.selectedOptionSize});
1728
+ height: calc(4 * ${jo.verticalSpacing} + ${jo.labelSize} + ${jo.selectedOptionSize});
1727
1729
  }
1728
1730
 
1729
1731
  .ft-select--input-panel {
@@ -1735,8 +1737,8 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1735
1737
  padding-left: 16px;
1736
1738
  padding-right: 8px;
1737
1739
  gap: 8px;
1738
- color: ${Io.selectedOptionColor};
1739
- ${bt(ti.color,Io.selectedOptionColor)};
1740
+ color: ${jo.selectedOptionColor};
1741
+ ${bt(ti.color,jo.selectedOptionColor)};
1740
1742
  }
1741
1743
 
1742
1744
  .ft-select--input-panel,
@@ -1752,7 +1754,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1752
1754
 
1753
1755
  .ft-select--disabled .ft-select--input-panel,
1754
1756
  .ft-select--disabled .ft-select--option {
1755
- color: ${Io.colorOnSurfaceDisabled};
1757
+ color: ${jo.colorOnSurfaceDisabled};
1756
1758
  }
1757
1759
 
1758
1760
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -1761,18 +1763,18 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1761
1763
  }
1762
1764
 
1763
1765
  ft-input-label {
1764
- ${bt(Ro.fontSize,Io.selectedOptionSize)};
1765
- ${bt(Ro.raisedFontSize,Io.labelSize)};
1766
- ${bt(Ro.verticalSpacing,Io.verticalSpacing)};
1766
+ ${bt(Fo.fontSize,jo.selectedOptionSize)};
1767
+ ${bt(Fo.raisedFontSize,jo.labelSize)};
1768
+ ${bt(Fo.verticalSpacing,jo.verticalSpacing)};
1767
1769
  }
1768
1770
 
1769
1771
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1770
- color: ${Io.colorPrimary};
1772
+ color: ${jo.colorPrimary};
1771
1773
  }
1772
1774
 
1773
1775
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1774
- ${bt(Ro.borderColor,Io.colorPrimary)};
1775
- ${bt(Ro.textColor,Io.colorPrimary)};
1776
+ ${bt(Fo.borderColor,jo.colorPrimary)};
1777
+ ${bt(Fo.textColor,jo.colorPrimary)};
1776
1778
  }
1777
1779
 
1778
1780
  .ft-select--selected-option {
@@ -1782,12 +1784,12 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1782
1784
  overflow: hidden;
1783
1785
  white-space: nowrap;
1784
1786
  text-overflow: ellipsis;
1785
- ${bt($e.fontSize,Io.selectedOptionSize)};
1786
- ${bt($e.lineHeight,Io.selectedOptionSize)};
1787
+ ${bt($e.fontSize,jo.selectedOptionSize)};
1788
+ ${bt($e.lineHeight,jo.selectedOptionSize)};
1787
1789
  }
1788
1790
 
1789
1791
  .ft-select--in-error .ft-select--selected-option {
1790
- color: ${Io.colorError};
1792
+ color: ${jo.colorError};
1791
1793
  }
1792
1794
 
1793
1795
  ft-icon {
@@ -1799,16 +1801,16 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1799
1801
  }
1800
1802
 
1801
1803
  .ft-select--filled .ft-select--input-panel {
1802
- border-radius: ${Io.borderRadiusS} ${Io.borderRadiusS} 0 0;
1804
+ border-radius: ${jo.borderRadiusS} ${jo.borderRadiusS} 0 0;
1803
1805
  }
1804
1806
 
1805
1807
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1806
1808
  align-self: stretch;
1807
- padding-top: calc(${Io.labelSize} + 2 * ${Io.verticalSpacing});
1809
+ padding-top: calc(${jo.labelSize} + 2 * ${jo.verticalSpacing});
1808
1810
  }
1809
1811
 
1810
1812
  .ft-select--outlined .ft-select--input-panel {
1811
- border-radius: ${Io.borderRadiusS};
1813
+ border-radius: ${jo.borderRadiusS};
1812
1814
  }
1813
1815
 
1814
1816
  .ft-select--options {
@@ -1817,10 +1819,10 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1817
1819
  top: 100%;
1818
1820
  left: 0;
1819
1821
  right: 0;
1820
- color: ${Io.optionsColor};
1821
- background: ${Io.colorSurface};
1822
- z-index: ${Io.optionsZIndex};
1823
- box-shadow: ${Io.elevation02};
1822
+ color: ${jo.optionsColor};
1823
+ background: ${jo.colorSurface};
1824
+ z-index: ${jo.optionsZIndex};
1825
+ box-shadow: ${jo.elevation02};
1824
1826
  }
1825
1827
 
1826
1828
  .ft-select--fixed .ft-select--options {
@@ -1843,13 +1845,41 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1843
1845
 
1844
1846
  .ft-select--helper-text {
1845
1847
  padding: 0 12px 0 16px;
1846
- color: ${Io.helperColor};
1848
+ color: ${jo.helperColor};
1847
1849
  }
1848
1850
 
1849
1851
  .ft-select--in-error .ft-select--helper-text {
1850
- color: ${Io.colorError};
1852
+ color: ${jo.colorError};
1851
1853
  }
1852
- `],Do([o({type:String})],Uo.prototype,"label",void 0),Do([o({type:String})],Uo.prototype,"helper",void 0),Do([o({type:Boolean})],Uo.prototype,"outlined",void 0),Do([o({type:Boolean})],Uo.prototype,"disabled",void 0),Do([o({type:Boolean})],Uo.prototype,"error",void 0),Do([o({type:Boolean})],Uo.prototype,"fixedMenuPosition",void 0),Do([o({type:Array})],Uo.prototype,"options",void 0),Do([s()],Uo.prototype,"selectedOption",void 0),Do([s()],Uo.prototype,"optionsDisplayed",void 0),Do([s()],Uo.prototype,"focusOptions",void 0),Do([r(".ft-select")],Uo.prototype,"container",void 0),Do([r(".ft-select--options")],Uo.prototype,"optionsMenu",void 0),Do([r(".ft-select--input-panel")],Uo.prototype,"mainPanel",void 0),Do([r(".ft-select--option:first-child")],Uo.prototype,"firstOption",void 0),Do([r(".ft-select--option:focus")],Uo.prototype,"focusedOption",void 0),Do([r(".ft-select--option.ft-select--option-selected")],Uo.prototype,"selectedOptionElement",void 0),Do([r(".ft-select--option:last-child")],Uo.prototype,"lastOption",void 0),Do([r("slot")],Uo.prototype,"optionsSlot",void 0),h("ft-select")(Uo),h("ft-select-option")(jo);const To={height:ut.create("--ft-search-bar-height","SIZE","38px"),borderRadius:ut.extend("--ft-search-bar-border-radius",vt.borderRadiusS),mobileOpenPosition:ut.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:ut.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:ut.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:ut.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:ut.create("--ft-search-bar-mobile-open-right","SIZE","0"),floatingZIndex:ut.create("--ft-search-bar-floating-components-z-index","NUMBER","2"),colorSurface:ut.external(vt.colorSurface,"Design system"),colorOnSurface:ut.external(vt.colorOnSurface,"Design system"),colorOnSurfaceMedium:ut.external(vt.colorOnSurfaceMedium,"Design system"),colorOutline:ut.external(vt.colorOutline,"Design system"),colorPrimary:ut.external(vt.colorPrimary,"Design system"),elevation02:ut.external(vt.elevation02,"Design system"),buttonColor:ut.external(Bi.color,"Button"),buttonRippleColor:ut.external(Bi.rippleColor,"Button")},Po=g`
1854
+ `],Do([o({type:String})],Uo.prototype,"label",void 0),Do([o({type:String})],Uo.prototype,"helper",void 0),Do([o({type:Boolean})],Uo.prototype,"outlined",void 0),Do([o({type:Boolean})],Uo.prototype,"disabled",void 0),Do([o({type:Boolean})],Uo.prototype,"error",void 0),Do([o({type:Boolean})],Uo.prototype,"fixedMenuPosition",void 0),Do([o({type:Array})],Uo.prototype,"options",void 0),Do([s()],Uo.prototype,"selectedOption",void 0),Do([s()],Uo.prototype,"optionsDisplayed",void 0),Do([s()],Uo.prototype,"focusOptions",void 0),Do([r(".ft-select")],Uo.prototype,"container",void 0),Do([r(".ft-select--options")],Uo.prototype,"optionsMenu",void 0),Do([r(".ft-select--input-panel")],Uo.prototype,"mainPanel",void 0),Do([r(".ft-select--option:first-child")],Uo.prototype,"firstOption",void 0),Do([r(".ft-select--option:focus")],Uo.prototype,"focusedOption",void 0),Do([r(".ft-select--option.ft-select--option-selected")],Uo.prototype,"selectedOptionElement",void 0),Do([r(".ft-select--option:last-child")],Uo.prototype,"lastOption",void 0),Do([r("slot")],Uo.prototype,"optionsSlot",void 0),h("ft-select")(Uo),h("ft-select-option")(Io);const Po={display:ut.create("--ft-skeleton--display","DISPLAY","block"),width:ut.create("--ft-skeleton--width","SIZE","100%"),height:ut.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:ut.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:ut.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:ut.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:ut.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:ut.external(vt.borderRadiusM,"Design system")};class To extends gt{render(){return W`
1855
+ `}}To.elementDefinitions={},To.styles=g`
1856
+ :host {
1857
+ width: ${Po.width};
1858
+ height: ${Po.height};
1859
+ display: ${Po.display};
1860
+ overflow: hidden;
1861
+ border-radius: ${Po.borderRadiusM};
1862
+ background: linear-gradient(
1863
+ 90deg,
1864
+ transparent,
1865
+ ${Po.glareColor} calc(0.45 * ${Po.glareWidth}),
1866
+ ${Po.glareColor} calc(0.55 * ${Po.glareWidth}),
1867
+ transparent ${Po.glareWidth}
1868
+ ), ${Po.backgroundColor};
1869
+ background-repeat: repeat-y;
1870
+ background-size: 100vw 100vh;
1871
+ background-attachment: fixed;
1872
+ background-position: calc(${Po.glareWidth} * -1) 0;
1873
+ animation: shine ${Po.animationDuration} infinite;
1874
+ animation-timing-function: linear;
1875
+ }
1876
+
1877
+ @keyframes shine {
1878
+ to {
1879
+ background-position: calc(100vw + ${Po.glareWidth}) 0, calc(${Po.glareWidth} * -1) 0;
1880
+ }
1881
+ }
1882
+ `,h("ft-skeleton")(To);const Ao={height:ut.create("--ft-search-bar-height","SIZE","38px"),borderRadius:ut.extend("--ft-search-bar-border-radius",vt.borderRadiusS),mobileOpenPosition:ut.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:ut.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:ut.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:ut.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:ut.create("--ft-search-bar-mobile-open-right","SIZE","0"),floatingZIndex:ut.create("--ft-search-bar-floating-components-z-index","NUMBER","2"),colorSurface:ut.external(vt.colorSurface,"Design system"),colorOnSurface:ut.external(vt.colorOnSurface,"Design system"),colorOnSurfaceMedium:ut.external(vt.colorOnSurfaceMedium,"Design system"),colorOutline:ut.external(vt.colorOutline,"Design system"),colorPrimary:ut.external(vt.colorPrimary,"Design system"),elevation02:ut.external(vt.elevation02,"Design system"),buttonColor:ut.external(Bi.color,"Button"),buttonRippleColor:ut.external(Bi.rippleColor,"Button")},_o=g`
1853
1883
  * {
1854
1884
  box-sizing: border-box;
1855
1885
  }
@@ -1858,7 +1888,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1858
1888
  display: flex;
1859
1889
  flex-direction: column;
1860
1890
  gap: 8px;
1861
- color: ${To.colorOnSurface};
1891
+ color: ${Ao.colorOnSurface};
1862
1892
  outline: none;
1863
1893
  }
1864
1894
 
@@ -1867,14 +1897,14 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1867
1897
  }
1868
1898
 
1869
1899
  .ft-search-bar--mobile-menu-open {
1870
- position: ${To.mobileOpenPosition};
1871
- top: ${To.mobileOpenTop};
1872
- bottom: ${To.mobileOpenBottom};
1873
- left: ${To.mobileOpenLeft};
1874
- right: ${To.mobileOpenRight};
1875
- z-index: ${To.floatingZIndex};
1900
+ position: ${Ao.mobileOpenPosition};
1901
+ top: ${Ao.mobileOpenTop};
1902
+ bottom: ${Ao.mobileOpenBottom};
1903
+ left: ${Ao.mobileOpenLeft};
1904
+ right: ${Ao.mobileOpenRight};
1905
+ z-index: ${Ao.floatingZIndex};
1876
1906
  padding: 16px;
1877
- background: ${To.colorSurface};
1907
+ background: ${Ao.colorSurface};
1878
1908
  }
1879
1909
 
1880
1910
  .ft-search-bar {
@@ -1882,15 +1912,20 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1882
1912
  display: flex;
1883
1913
  flex-direction: row;
1884
1914
  align-items: center;
1885
- height: ${To.height};
1915
+ height: ${Ao.height};
1916
+
1917
+ background: ${Ao.colorSurface};
1918
+ border: 1px solid ${Ao.colorOutline};
1919
+ border-radius: ${Ao.borderRadius};
1920
+ }
1886
1921
 
1887
- background: ${To.colorSurface};
1888
- border: 1px solid ${To.colorOutline};
1889
- border-radius: ${To.borderRadius};
1922
+ .ft-search-bar--skeleton {
1923
+ ${bt(Po.height,Ao.height)};
1924
+ ${bt(Po.borderRadiusM,Ao.borderRadius)};
1890
1925
  }
1891
1926
 
1892
1927
  .ft-search-bar--floating-panel-open .ft-search-bar {
1893
- border-radius: ${To.borderRadius} ${To.borderRadius} 0 0;
1928
+ border-radius: ${Ao.borderRadius} ${Ao.borderRadius} 0 0;
1894
1929
  }
1895
1930
 
1896
1931
  .ft-search-bar--input-container {
@@ -1908,7 +1943,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1908
1943
  align-self: stretch;
1909
1944
  display: grid;
1910
1945
  padding: 0 8px;
1911
- border-radius: ${To.borderRadius};
1946
+ border-radius: ${Ao.borderRadius};
1912
1947
  }
1913
1948
 
1914
1949
  .ft-search-bar--dense .ft-search-bar--input-outline {
@@ -1917,7 +1952,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1917
1952
  }
1918
1953
 
1919
1954
  .ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
1920
- outline: 2px solid ${To.colorPrimary};
1955
+ outline: 2px solid ${Ao.colorPrimary};
1921
1956
  }
1922
1957
 
1923
1958
  .ft-search-bar--input {
@@ -1949,8 +1984,8 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1949
1984
  }
1950
1985
 
1951
1986
  .ft-search-bar--left-action {
1952
- ${bt(Bi.borderRadius,g`calc(${To.borderRadius} - 1px) 0 0 calc(${To.borderRadius} - 1px)`)};
1953
- border-right: 1px solid ${To.colorOutline};
1987
+ ${bt(Bi.borderRadius,g`calc(${Ao.borderRadius} - 1px) 0 0 calc(${Ao.borderRadius} - 1px)`)};
1988
+ border-right: 1px solid ${Ao.colorOutline};
1954
1989
  height: 100%;
1955
1990
  }
1956
1991
 
@@ -1959,7 +1994,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1959
1994
  }
1960
1995
 
1961
1996
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
1962
- ${bt(Bi.borderRadius,g`calc(${To.borderRadius} - 1px) 0 0 0`)};
1997
+ ${bt(Bi.borderRadius,g`calc(${Ao.borderRadius} - 1px) 0 0 0`)};
1963
1998
  }
1964
1999
 
1965
2000
  .ft-search-bar .ft-search-bar--launch-search,
@@ -1969,13 +2004,13 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1969
2004
 
1970
2005
  .ft-search-bar--separator {
1971
2006
  height: 20px;
1972
- border-right: 1px solid ${To.colorOutline};
2007
+ border-right: 1px solid ${Ao.colorOutline};
1973
2008
  }
1974
2009
 
1975
2010
  .ft-search-bar--left-action.ft-search-bar--content-locale {
1976
- ${bt(Ro.borderColor,"transparent")};
1977
- ${bt(Ro.borderRadiusS,g`calc(${To.borderRadius} - 1px)`)};
1978
- ${bt(Io.selectedOptionColor,To.buttonColor)};
2011
+ ${bt(Fo.borderColor,"transparent")};
2012
+ ${bt(Fo.borderRadiusS,g`calc(${Ao.borderRadius} - 1px)`)};
2013
+ ${bt(jo.selectedOptionColor,Ao.buttonColor)};
1979
2014
  }
1980
2015
 
1981
2016
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -1992,17 +2027,17 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
1992
2027
  }
1993
2028
 
1994
2029
  .ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
1995
- border-radius: calc(${To.borderRadius} - 1px) 0 0 calc(${To.borderRadius} - 1px);
2030
+ border-radius: calc(${Ao.borderRadius} - 1px) 0 0 calc(${Ao.borderRadius} - 1px);
1996
2031
  }
1997
2032
 
1998
- `,Ao=g`
2033
+ `,Ho=g`
1999
2034
  .ft-search-bar--floating-panel .ft-search-bar--presets {
2000
2035
  margin-right: auto;
2001
2036
  }
2002
2037
 
2003
2038
  .ft-search-bar--floating-panel .ft-search-bar--presets {
2004
2039
  min-width: 250px;
2005
- ${bt(Io.optionsZIndex,"2")};
2040
+ ${bt(jo.optionsZIndex,"2")};
2006
2041
  }
2007
2042
 
2008
2043
  .ft-search-bar--floating-panel {
@@ -2094,7 +2129,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
2094
2129
 
2095
2130
  .ft-search-bar--filter-label > :last-child {
2096
2131
  flex-shrink: 1;
2097
- color: ${To.colorOnSurfaceMedium};
2132
+ color: ${Ao.colorOnSurfaceMedium};
2098
2133
  }
2099
2134
 
2100
2135
  ft-accordion-item::part(toggle) {
@@ -2114,7 +2149,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
2114
2149
  .ft-search-bar--floating-panel .ft-search-bar--launch-search {
2115
2150
  margin: 0;
2116
2151
  }
2117
- `,_o=g`
2152
+ `,Zo=g`
2118
2153
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2119
2154
  flex-shrink: 0;
2120
2155
  display: flex;
@@ -2144,7 +2179,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
2144
2179
  .ft-search-bar--selected-filters ft-chip {
2145
2180
  flex-grow: 0;
2146
2181
  }
2147
- `,Ho=g`
2182
+ `,Ko=g`
2148
2183
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2149
2184
  flex-grow: 1;
2150
2185
  flex-shrink: 1;
@@ -2153,7 +2188,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
2153
2188
  }
2154
2189
 
2155
2190
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
2156
- border-top: 1px solid ${To.colorOutline};
2191
+ border-top: 1px solid ${Ao.colorOutline};
2157
2192
  }
2158
2193
 
2159
2194
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
@@ -2168,10 +2203,10 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
2168
2203
  left: -1px;
2169
2204
  right: -1px;
2170
2205
  display: none;
2171
- background: ${To.colorSurface};
2172
- border: 1px solid ${To.colorOutline};
2173
- border-radius: 0 0 ${To.borderRadius} ${To.borderRadius};
2174
- box-shadow: ${To.elevation02};
2206
+ background: ${Ao.colorSurface};
2207
+ border: 1px solid ${Ao.colorOutline};
2208
+ border-radius: 0 0 ${Ao.borderRadius} ${Ao.borderRadius};
2209
+ box-shadow: ${Ao.elevation02};
2175
2210
  outline: none;
2176
2211
  }
2177
2212
 
@@ -2186,7 +2221,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
2186
2221
  .ft-search-bar--no-suggestions {
2187
2222
  text-align: center;
2188
2223
  padding: 8px;
2189
- color: ${To.colorOnSurface};
2224
+ color: ${Ao.colorOnSurface};
2190
2225
  }
2191
2226
 
2192
2227
  .ft-search-bar--suggestion {
@@ -2197,7 +2232,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
2197
2232
  padding: 8px;
2198
2233
  gap: 8px;
2199
2234
  cursor: pointer;
2200
- color: ${To.colorOnSurface};
2235
+ color: ${Ao.colorOnSurface};
2201
2236
  min-height: 52px;
2202
2237
  }
2203
2238
 
@@ -2214,7 +2249,7 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
2214
2249
  }
2215
2250
 
2216
2251
  .ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
2217
- border-top: 1px solid ${To.colorOutline};
2252
+ border-top: 1px solid ${Ao.colorOutline};
2218
2253
  }
2219
2254
 
2220
2255
  .ft-search-bar--suggestion ft-typography {
@@ -2222,11 +2257,15 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
2222
2257
  flex-grow: 1;
2223
2258
  flex-shrink: 1;
2224
2259
  }
2225
- `;var Zo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const Ko={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",searchButton:"Search",noSuggestions:"No results found…",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Preset",removeRecentSearch:"Remove",back:"Back"};class Wo extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class Vo extends CustomEvent{constructor(t){super("change",{detail:t})}}class qo extends gt{constructor(){super(...arguments),this.dense=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.labels={},this.labelResolver=new yt(Ko,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=t=>function(t,e){var i;const o=new URLSearchParams({"content-lang":null!==(i=e.contentLocale)&&void 0!==i?i:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");o.append("filters",t)}return new URL(`${t}/search/all?${o.toString()}`).href}(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=It.S,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.knownFacetLabels={},this.query="",this.suggestions=[],this.suggestionsLoaded=!0,this.recentSearches=[],this.updateFacetsDebouncer=new e(500),this.suggestDebouncer=new e(300),this.facetsLoaded=!1,this.closeFloatingContainer=t=>{this.isMobile||(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))},this.compareFilters=(t,e)=>t.key===e.key&&t.negative==e.negative&&t.values.length===e.values.length&&t.values.every((t=>e.values.includes(t))),this.compareRequests=(t,e)=>(null==t.contentLocale||null==e.contentLocale||t.contentLocale===e.contentLocale)&&t.filters.length===e.filters.length&&t.filters.every((t=>e.filters.some((e=>this.compareFilters(t,e)))))}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}get isMobile(){return this.sizeCategory===It.S}get hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return null!=this.presets&&this.presets.length>0}get hasPriors(){return null!=this.priors&&this.priors.length>0}get hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){const t={"ft-search-bar--container":!0,"ft-search-bar--dense":!this.isMobile&&this.dense,"ft-search-bar--mobile":this.isMobile,"ft-search-bar--desktop":!this.isMobile,"ft-search-bar--floating-panel-open":!this.isMobile&&this.displayFacets,"ft-search-bar--mobile-menu-open":this.mobileMenuOpen};return W`
2260
+ `;var Wo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const Vo={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",searchButton:"Search",noSuggestions:"No results found…",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Preset",removeRecentSearch:"Remove",back:"Back"};class qo extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class Jo extends CustomEvent{constructor(t){super("change",{detail:t})}}class Xo extends gt{constructor(){super(...arguments),this.dense=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new yt(Vo,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=t=>function(t,e){var i;const o=new URLSearchParams({"content-lang":null!==(i=e.contentLocale)&&void 0!==i?i:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");o.append("filters",t)}return new URL(`${t}/search/all?${o.toString()}`).href}(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=jt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels={},this.query="",this.suggestions=[],this.suggestionsLoaded=!0,this.recentSearches=[],this.updateFacetsDebouncer=new e(500),this.suggestDebouncer=new e(300),this.facetsLoaded=!1,this.closeFloatingContainer=t=>{this.isMobile||(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))},this.compareFilters=(t,e)=>t.key===e.key&&t.negative==e.negative&&t.values.length===e.values.length&&t.values.every((t=>e.values.includes(t))),this.compareRequests=(t,e)=>(null==t.contentLocale||null==e.contentLocale||t.contentLocale===e.contentLocale)&&t.filters.length===e.filters.length&&t.filters.every((t=>e.filters.some((e=>this.compareFilters(t,e)))))}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}get isMobile(){return this.sizeCategory===jt.S}get hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return null!=this.presets&&this.presets.length>0}get hasPriors(){return null!=this.priors&&this.priors.length>0}get hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return W`
2226
2261
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2227
- <div class="${jt(t)}" part="container" tabindex="-1">
2262
+ ${this.renderSearchBar()}
2263
+ `}renderSearchBar(){const t={"ft-search-bar--container":!0,"ft-search-bar--dense":!this.isMobile&&this.dense,"ft-search-bar--mobile":this.isMobile,"ft-search-bar--desktop":!this.isMobile,"ft-search-bar--floating-panel-open":!this.isMobile&&this.displayFacets,"ft-search-bar--mobile-menu-open":this.mobileMenuOpen};return this.facetsInitialized&&this.availableContentLocalesInitialized?W`
2264
+ <div class="${It(t)}" part="container" tabindex="-1">
2228
2265
  ${this.isMobile?this.renderMobileSearchBar():this.renderDesktopSearchBar()}
2229
2266
  </div>
2267
+ `:W`
2268
+ <ft-skeleton class="ft-search-bar--skeleton"></ft-skeleton>
2230
2269
  `}renderMobileSearchBar(){return W`
2231
2270
  <div class="ft-search-bar">
2232
2271
  <div class="ft-search-bar--input-container" part="input-container">
@@ -2532,4 +2571,4 @@ class gi extends zt{constructor(t){if(super(t),this.it=q,t.type!==Ot)throw Error
2532
2571
  <ft-icon variant="${e}" part="suggestion-icon">
2533
2572
  ${i}
2534
2573
  </ft-icon>
2535
- `}openMobileFilters(t){this.isMobile&&(this.mobileMenuOpen=!0,this.displayFacets=!0,this.scrollToFacet=t)}async firstUpdated(t){var e,i;super.firstUpdated(t),this.initApi(),this.availableContentLocales=null!==(i=await(null===(e=this.api)||void 0===e?void 0:e.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[]))))&&void 0!==i?i:[]}update(t){var e,i,o,s,n;if(t.has("labels")&&(this.labelResolver=new yt(Ko,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0){const i=t=>this.availableContentLocales.some((e=>e.lang===t));i(this.contentLocale)||(this.contentLocale=t.has("contentLocale")&&i(t.get("contentLocale"))?t.get("contentLocale"):null===(e=this.availableContentLocales[0])||void 0===e?void 0:e.lang)}if(t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.recentSearches=JSON.parse(null!==(i=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==i?i:"[]")),t.has("selectedPreset")){const t=(null!==(o=this.presets)&&void 0!==o?o:[]).find((t=>t.name===this.selectedPreset));t&&!this.compareRequests(this.request,t)&&this.setFiltersFromPreset(t)}["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(n=(null!==(s=this.presets)&&void 0!==s?s:[]).find((t=>this.compareRequests(t,this.request))))||void 0===n?void 0:n.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&this.setApi(),["uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateSuggestions(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchEvent(new Vo(this.request))}contentAvailableCallback(t){var e,i,o;if(super.contentAvailableCallback(t),t.has("displayFacets")&&this.displayFacets&&(null===(e=this.floatingContainer)||void 0===e||e.focus()),null!=this.scrollToFacet&&this.facetsLoaded){null===(i=this.scrollingFiltersContainer)||void 0===i||i.scrollIndexIntoView(this.facets.findIndex((t=>t.key===this.scrollToFacet)));const t=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);t&&(t.active=!0),this.scrollToFacet=void 0}}initApi(){null==this.api&&(this.setApi(),setTimeout((()=>this.initApi()),100))}setApi(){this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{var t,e;this.facets=null!==(e=await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets)).catch((()=>[]))))&&void 0!==e?e:[],this.facets.forEach((t=>this.knownFacetLabels[t.key]=t.label)),this.facetsLoaded=!0}))):this.facets=[]}updateSuggestions(){this.suggestionsLoaded=!1,this.suggestDebouncer.run((async()=>{this.suggestions=this.api&&this.query.length>2?await this.api.getSuggestions(this.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],this.suggestionsLoaded=!0}))}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.query=e.value,"Enter"===t.key&&this.launchSearch()}onSearchBarKeyDown(t){var e,i;switch(t.key){case"Escape":this.mobileMenuOpen=!1,null===(e=this.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),null===(i=this.firstSuggestion)||void 0===i||i.focus()}}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.setQuery(e),this.launchSearch()}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.dispatchEvent(new Wo(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}saveRecentSearches(){window.localStorage.setItem(this.recentSearchesStorageKey,JSON.stringify(this.recentSearches))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}getLocaleLabel(t){var e;return null!==(e=this.availableContentLocales.filter((e=>{var i;return(null!==(i=e.lang)&&void 0!==i?i:"").toLowerCase()===(null!=t?t:"").toLowerCase()})).map((t=>t.label)).pop())&&void 0!==e?e:t}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&qe(i.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=e.includes(t.value)))})),e.length&&i.push({key:t,negative:!1,values:e}),this.searchFilters=i,this.scrollToFacet=t}setFiltersFromPreset(t){null!=t&&(null!=t.contentLocale&&(this.contentLocale=t.contentLocale),this.searchFilters=t.filters)}clearFilters(){this.facets.forEach((t=>qe(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}removeRecentSearch(t,e){var i,o,s,n;t.preventDefault(),t.stopPropagation();const r=null!==(n=null!==(o=null===(i=this.focusedSuggestion)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:null===(s=this.focusedSuggestion)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.input;null==r||r.focus(),this.recentSearches=this.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.saveRecentSearches()}onSuggestKeyDown(t){var e,i,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.focusedSuggestion)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastSuggestion)||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.focusedSuggestion)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstSuggestion)||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}}qo.elementDefinitions={"ft-accordion":go,"ft-accordion-item":wo,"ft-button":Ri,"ft-chip":No,"ft-filter":fo,"ft-filter-option":bo,"ft-icon":Ci,"ft-ripple":li,"ft-select":Uo,"ft-select-option":jo,"ft-size-watcher":Pt,"ft-snap-scroll":io,"ft-tooltip":ui,"ft-typography":Ve},qo.styles=[_e,Po,Ao,_o,Ho],Zo([o({type:Boolean})],qo.prototype,"dense",void 0),Zo([o({type:String})],qo.prototype,"baseUrl",void 0),Zo([o({type:String})],qo.prototype,"apiIntegrationIdentifier",void 0),Zo([o({type:String})],qo.prototype,"contentLocale",void 0),Zo([s()],qo.prototype,"availableContentLocales",void 0),Zo([o({type:String})],qo.prototype,"uiLocale",void 0),Zo([p({})],qo.prototype,"labels",void 0),Zo([p([])],qo.prototype,"displayedFilters",void 0),Zo([p([])],qo.prototype,"presets",void 0),Zo([o({type:String,reflect:!0})],qo.prototype,"selectedPreset",void 0),Zo([p([])],qo.prototype,"priors",void 0),Zo([o()],qo.prototype,"searchRequestSerializer",void 0),Zo([s()],qo.prototype,"searchFilters",void 0),Zo([s()],qo.prototype,"sizeCategory",void 0),Zo([s()],qo.prototype,"displayFacets",void 0),Zo([s()],qo.prototype,"mobileMenuOpen",void 0),Zo([s()],qo.prototype,"facets",void 0),Zo([r(".ft-search-bar--container")],qo.prototype,"container",void 0),Zo([r(".ft-search-bar--filters-opener")],qo.prototype,"filtersOpener",void 0),Zo([r(".ft-search-bar--floating-panel")],qo.prototype,"floatingContainer",void 0),Zo([r("ft-snap-scroll.ft-search-bar--filters-container")],qo.prototype,"scrollingFiltersContainer",void 0),Zo([r(".ft-search-bar--input")],qo.prototype,"input",void 0),Zo([s()],qo.prototype,"query",void 0),Zo([s()],qo.prototype,"suggestions",void 0),Zo([s()],qo.prototype,"suggestionsLoaded",void 0),Zo([s()],qo.prototype,"recentSearches",void 0),Zo([s()],qo.prototype,"scrollToFacet",void 0),Zo([r(".ft-search-bar--suggestion:first-child")],qo.prototype,"firstSuggestion",void 0),Zo([r(".ft-search-bar--suggestion:focus-within")],qo.prototype,"focusedSuggestion",void 0),Zo([r(".ft-search-bar--suggestion:last-child")],qo.prototype,"lastSuggestion",void 0),Zo([s()],qo.prototype,"api",void 0),h("ft-search-bar")(qo),t.DEFAULT_LABELS=Ko,t.FtSearchBar=qo,t.FtSearchBarCssVariables=To,t.LaunchSearchEvent=Wo,t.SearchStateChangeEvent=Vo,Object.defineProperty(t,"t",{value:!0})}({});
2574
+ `}openMobileFilters(t){this.isMobile&&(this.mobileMenuOpen=!0,this.displayFacets=!0,this.scrollToFacet=t)}async firstUpdated(t){super.firstUpdated(t),this.initApi()}update(t){var e,i,o,s,n,r;if(t.has("labels")&&(this.labelResolver=new yt(Vo,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0){const i=t=>this.availableContentLocales.some((e=>e.lang===t));i(this.contentLocale)||(this.contentLocale=t.has("contentLocale")&&i(t.get("contentLocale"))?t.get("contentLocale"):null===(e=this.availableContentLocales[0])||void 0===e?void 0:e.lang)}if(t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.recentSearches=JSON.parse(null!==(i=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==i?i:"[]")),t.has("presets")&&(null!==(o=this.presets)&&void 0!==o?o:[]).forEach((t=>t.filters.forEach((t=>t.values=t.values.map((t=>Je(t))))))),t.has("selectedPreset")){const t=(null!==(s=this.presets)&&void 0!==s?s:[]).find((t=>t.name===this.selectedPreset));t&&!this.compareRequests(this.request,t)&&this.setFiltersFromPreset(t)}["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(r=(null!==(n=this.presets)&&void 0!==n?n:[]).find((t=>this.compareRequests(t,this.request))))||void 0===r?void 0:r.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&(this.api=void 0,this.initApi(),this.availableContentLocalesInitialized=!1,this.facetsInitialized=!1),t.has("api")&&this.updateAvailableContentLocales(),["uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateSuggestions(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchEvent(new Jo(this.request))}async updateAvailableContentLocales(){this.api&&(this.availableContentLocales=await this.api.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[])),this.availableContentLocalesInitialized=!0)}contentAvailableCallback(t){var e,i,o;if(super.contentAvailableCallback(t),t.has("displayFacets")&&this.displayFacets&&(null===(e=this.floatingContainer)||void 0===e||e.focus()),null!=this.scrollToFacet&&this.facetsLoaded){null===(i=this.scrollingFiltersContainer)||void 0===i||i.scrollIndexIntoView(this.facets.findIndex((t=>t.key===this.scrollToFacet)));const t=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);t&&(t.active=!0),this.scrollToFacet=void 0}}initApi(){null==this.api&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout((()=>this.initApi()),100))}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{var t,e;this.facets=null!==(e=await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets)).catch((()=>[]))))&&void 0!==e?e:[],this.facets.forEach((t=>this.knownFacetLabels[t.key]=t.label)),this.facetsLoaded=!0,this.facetsInitialized=!0}))):(this.facets=[],this.facetsInitialized=!0))}updateSuggestions(){this.suggestionsLoaded=!1,this.suggestDebouncer.run((async()=>{this.suggestions=this.api&&this.query.length>2?await this.api.getSuggestions(this.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],this.suggestionsLoaded=!0}))}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.query=e.value,"Enter"===t.key&&this.launchSearch()}onSearchBarKeyDown(t){var e,i;switch(t.key){case"Escape":this.mobileMenuOpen=!1,null===(e=this.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),null===(i=this.firstSuggestion)||void 0===i||i.focus()}}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.setQuery(e),this.launchSearch()}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.dispatchEvent(new qo(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}saveRecentSearches(){window.localStorage.setItem(this.recentSearchesStorageKey,JSON.stringify(this.recentSearches))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}getLocaleLabel(t){var e;return null!==(e=this.availableContentLocales.filter((e=>{var i;return(null!==(i=e.lang)&&void 0!==i?i:"").toLowerCase()===(null!=t?t:"").toLowerCase()})).map((t=>t.label)).pop())&&void 0!==e?e:t}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&qe(i.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=e.includes(t.value)))})),e.length&&i.push({key:t,negative:!1,values:e}),this.searchFilters=i,this.scrollToFacet=t}setFiltersFromPreset(t){null!=t&&(null!=t.contentLocale&&(this.contentLocale=t.contentLocale),this.searchFilters=t.filters)}clearFilters(){this.facets.forEach((t=>qe(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}removeRecentSearch(t,e){var i,o,s,n;t.preventDefault(),t.stopPropagation();const r=null!==(n=null!==(o=null===(i=this.focusedSuggestion)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:null===(s=this.focusedSuggestion)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.input;null==r||r.focus(),this.recentSearches=this.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.saveRecentSearches()}onSuggestKeyDown(t){var e,i,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.focusedSuggestion)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastSuggestion)||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.focusedSuggestion)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstSuggestion)||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}}Xo.elementDefinitions={"ft-accordion":go,"ft-accordion-item":wo,"ft-button":Fi,"ft-chip":Mo,"ft-filter":fo,"ft-filter-option":bo,"ft-icon":Ci,"ft-ripple":li,"ft-select":Uo,"ft-select-option":Io,"ft-size-watcher":Tt,"ft-skeleton":To,"ft-snap-scroll":io,"ft-tooltip":ui,"ft-typography":Ve},Xo.styles=[_e,_o,Ho,Zo,Ko],Wo([o({type:Boolean})],Xo.prototype,"dense",void 0),Wo([o({type:String})],Xo.prototype,"baseUrl",void 0),Wo([o({type:String})],Xo.prototype,"apiIntegrationIdentifier",void 0),Wo([o({type:String})],Xo.prototype,"contentLocale",void 0),Wo([s()],Xo.prototype,"availableContentLocales",void 0),Wo([s()],Xo.prototype,"availableContentLocalesInitialized",void 0),Wo([o({type:String})],Xo.prototype,"uiLocale",void 0),Wo([p({})],Xo.prototype,"labels",void 0),Wo([p([])],Xo.prototype,"displayedFilters",void 0),Wo([p([])],Xo.prototype,"presets",void 0),Wo([o({type:String,reflect:!0})],Xo.prototype,"selectedPreset",void 0),Wo([p([])],Xo.prototype,"priors",void 0),Wo([o()],Xo.prototype,"searchRequestSerializer",void 0),Wo([s()],Xo.prototype,"searchFilters",void 0),Wo([s()],Xo.prototype,"sizeCategory",void 0),Wo([s()],Xo.prototype,"displayFacets",void 0),Wo([s()],Xo.prototype,"mobileMenuOpen",void 0),Wo([s()],Xo.prototype,"facets",void 0),Wo([s()],Xo.prototype,"facetsInitialized",void 0),Wo([r(".ft-search-bar--container")],Xo.prototype,"container",void 0),Wo([r(".ft-search-bar--filters-opener")],Xo.prototype,"filtersOpener",void 0),Wo([r(".ft-search-bar--floating-panel")],Xo.prototype,"floatingContainer",void 0),Wo([r("ft-snap-scroll.ft-search-bar--filters-container")],Xo.prototype,"scrollingFiltersContainer",void 0),Wo([r(".ft-search-bar--input")],Xo.prototype,"input",void 0),Wo([s()],Xo.prototype,"query",void 0),Wo([s()],Xo.prototype,"suggestions",void 0),Wo([s()],Xo.prototype,"suggestionsLoaded",void 0),Wo([s()],Xo.prototype,"recentSearches",void 0),Wo([s()],Xo.prototype,"scrollToFacet",void 0),Wo([r(".ft-search-bar--suggestion:first-child")],Xo.prototype,"firstSuggestion",void 0),Wo([r(".ft-search-bar--suggestion:focus-within")],Xo.prototype,"focusedSuggestion",void 0),Wo([r(".ft-search-bar--suggestion:last-child")],Xo.prototype,"lastSuggestion",void 0),Wo([s()],Xo.prototype,"api",void 0),h("ft-search-bar")(Xo),t.DEFAULT_LABELS=Vo,t.FtSearchBar=Xo,t.FtSearchBarCssVariables=Ao,t.LaunchSearchEvent=qo,t.SearchStateChangeEvent=Jo,Object.defineProperty(t,"t",{value:!0})}({});