@fluid-topics/ft-search-bar 1.0.0 → 1.0.3

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.
@@ -1,4 +1,4 @@
1
- !function(t,e,i,o,s,n,r){var l;!function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(l||(l={}));const a=i.css`
1
+ !function(t,e,i,o,s,r,n){var l;!function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(l||(l={}));const a=i.css`
2
2
  .ft-size-watcher--pixel {
3
3
  width: 0;
4
4
  height: 0;
@@ -17,21 +17,21 @@
17
17
  .ft-size-watcher--local .ft-size-watcher--watcher {
18
18
  width: 100%;
19
19
  }
20
- `;var c,h=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 p extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class f extends e.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=l.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e.Debouncer}render(){return i.html`
20
+ `;var c,h=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class p extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class f extends e.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=l.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e.Debouncer}render(){return i.html`
21
21
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
22
22
  <div class="ft-size-watcher--watcher"></div>
23
23
  </div>
24
- `}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=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new p(this.size,this.category)))}),this.debounceTimeout)}}f.elementDefinitions={},f.styles=a,h([o.property({type:Number})],f.prototype,"debounceTimeout",void 0),h([o.property({type:Boolean})],f.prototype,"local",void 0),h([o.property({type:Number,reflect:!0})],f.prototype,"size",void 0),h([o.property({type:String,reflect:!0})],f.prototype,"category",void 0),h([o.query(".ft-size-watcher--watcher")],f.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(f);const d=window,u=d.trustedTypes,b=u?u.createPolicy("lit-html",{createHTML:t=>t}):void 0,v="$lit$",g=`lit$${(Math.random()+"").slice(9)}$`,x="?"+g,y=`<${x}>`,m=document,$=()=>m.createComment(""),w=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,S="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,B=/>/g,E=RegExp(`>|${S}(?:([^\\s"'>=/]+)(${S}*=${S}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),C=/'/g,I=/"/g,F=/^(?:script|style|textarea|title)$/i,D=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),L=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),M=new WeakMap,R=m.createTreeWalker(m,129,null,!1),P=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=z;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===z?"!--"===a[1]?r=O:void 0!==a[1]?r=B:void 0!==a[2]?(F.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=E):void 0!==a[3]&&(r=E):r===E?">"===a[0]?(r=null!=s?s:z,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?E:'"'===a[3]?I:C):r===I||r===C?r=E:r===O||r===B?r=z:(r=E,s=void 0);const p=r===E&&t[e+1].startsWith("/>")?" ":"";n+=r===z?i+y:c>=0?(o.push(l),i.slice(0,c)+v+i.slice(c)+g+p):i+g+(-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!==b?b.createHTML(l):l,o]};class A{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]=P(t,e);if(this.el=A.createElement(a,i),R.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=R.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(v)||e.startsWith(g)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+v).split(g),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?V:"@"===e[1]?W:U})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(F.test(o.tagName)){const t=o.textContent.split(g),e=t.length-1;if(e>0){o.textContent=u?u.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],$()),R.nextNode(),l.push({type:2,index:++s});o.append(t[e],$())}}}else if(8===o.nodeType)if(o.data===x)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(g,t+1));)l.push({type:7,index:s}),t+=g.length-1}s++}}static createElement(t,e){const i=m.createElement("template");return i.innerHTML=t,i}}function N(t,e,i=t,o){var s,n,r,l;if(e===L)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=w(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)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=N(t,a._$AS(t,e.values),a,o)),e}class T{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:m).importNode(i,!0);R.currentNode=s;let n=R.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new Z(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new K(n,this,t)),this._$AV.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=R.nextNode(),r++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Z{constructor(t,e,i,o){var s;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=N(this,t,e),w(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==L&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==j&&w(this._$AH)?this._$AA.nextSibling.data=t:this.$(m.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=A.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new T(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=M.get(t.strings);return void 0===e&&M.set(t.strings,e=new A(t)),e}T(t){k(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 Z(this.k($()),this.k($()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class U{constructor(t,e,i,o,s){this.type=1,this._$AH=j,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=j}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=N(this,t,e,0),n=!w(t)||t!==this._$AH&&t!==L,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=N(this,o[i+r],e,r),l===L&&(l=this._$AH[r]),n||(n=!w(l)||l!==this._$AH[r]),l===j?t=j:t!==j&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}}const H=u?u.emptyScript:"";class V extends U{constructor(){super(...arguments),this.type=4}j(t){t&&t!==j?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class W extends U{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=N(this,t,e,0))&&void 0!==i?i:j)===L)return;const o=this._$AH,s=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==j&&(o===j||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 K{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){N(this,t)}}const q=d.litHtmlPolyfillSupport;null==q||q(A,Z),(null!==(c=d.litHtmlVersions)&&void 0!==c?c:d.litHtmlVersions=[]).push("2.7.3");
24
+ `}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=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new p(this.size,this.category)))}),this.debounceTimeout)}}f.elementDefinitions={},f.styles=a,h([o.property({type:Number})],f.prototype,"debounceTimeout",void 0),h([o.property({type:Boolean})],f.prototype,"local",void 0),h([o.property({type:Number,reflect:!0})],f.prototype,"size",void 0),h([o.property({type:String,reflect:!0})],f.prototype,"category",void 0),h([o.query(".ft-size-watcher--watcher")],f.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(f);const d=window,u=d.trustedTypes,b=u?u.createPolicy("lit-html",{createHTML:t=>t}):void 0,v="$lit$",g=`lit$${(Math.random()+"").slice(9)}$`,x="?"+g,y=`<${x}>`,m=document,$=()=>m.createComment(""),w=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,S="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,B=/>/g,E=RegExp(`>|${S}(?:([^\\s"'>=/]+)(${S}*=${S}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),C=/'/g,I=/"/g,F=/^(?:script|style|textarea|title)$/i,D=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),L=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),M=new WeakMap,R=m.createTreeWalker(m,129,null,!1),P=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=z;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===z?"!--"===a[1]?n=O:void 0!==a[1]?n=B:void 0!==a[2]?(F.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=E):void 0!==a[3]&&(n=E):n===E?">"===a[0]?(n=null!=s?s:z,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?E:'"'===a[3]?I:C):n===I||n===C?n=E:n===O||n===B?n=z:(n=E,s=void 0);const p=n===E&&t[e+1].startsWith("/>")?" ":"";r+=n===z?i+y:c>=0?(o.push(l),i.slice(0,c)+v+i.slice(c)+g+p):i+g+(-2===c?(o.push(void 0),e):p)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(l):l,o]};class A{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[a,c]=P(t,e);if(this.el=A.createElement(a,i),R.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=R.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(v)||e.startsWith(g)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+v).split(g),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?V:"@"===e[1]?W:U})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(F.test(o.tagName)){const t=o.textContent.split(g),e=t.length-1;if(e>0){o.textContent=u?u.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],$()),R.nextNode(),l.push({type:2,index:++s});o.append(t[e],$())}}}else if(8===o.nodeType)if(o.data===x)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(g,t+1));)l.push({type:7,index:s}),t+=g.length-1}s++}}static createElement(t,e){const i=m.createElement("template");return i.innerHTML=t,i}}function N(t,e,i=t,o){var s,r,n,l;if(e===L)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=w(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Co)&&void 0!==n?n:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=N(t,a._$AS(t,e.values),a,o)),e}class T{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:m).importNode(i,!0);R.currentNode=s;let r=R.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new Z(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new K(r,this,t)),this._$AV.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=R.nextNode(),n++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Z{constructor(t,e,i,o){var s;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=N(this,t,e),w(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==L&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==j&&w(this._$AH)?this._$AA.nextSibling.data=t:this.$(m.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=A.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new T(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=M.get(t.strings);return void 0===e&&M.set(t.strings,e=new A(t)),e}T(t){k(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 Z(this.k($()),this.k($()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class U{constructor(t,e,i,o,s){this.type=1,this._$AH=j,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=j}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=N(this,t,e,0),r=!w(t)||t!==this._$AH&&t!==L,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=N(this,o[i+n],e,n),l===L&&(l=this._$AH[n]),r||(r=!w(l)||l!==this._$AH[n]),l===j?t=j:t!==j&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}}const H=u?u.emptyScript:"";class V extends U{constructor(){super(...arguments),this.type=4}j(t){t&&t!==j?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class W extends U{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=N(this,t,e,0))&&void 0!==i?i:j)===L)return;const o=this._$AH,s=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==j&&(o===j||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class K{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){N(this,t)}}const q=d.litHtmlPolyfillSupport;null==q||q(A,Z),(null!==(c=d.litHtmlVersions)&&void 0!==c?c:d.litHtmlVersions=[]).push("2.7.3");
25
25
  /**
26
26
  * @license
27
27
  * Copyright 2020 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
29
  */
30
- const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t._$litStatic$},Y=t=>({_$litStatic$:t,r:G}),J=new Map,Q=(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=X(n));)a+=s+e[++c],h=!0;c!==o&&l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=J.get(t))&&(r.raw=r,J.set(t,e=r)),i=l}return t(e,...i)})(D);var tt;!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"}(tt||(tt={}));const et=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),it=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),ot={fontFamily:it,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},st=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",et),nt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",ot.fontSize,"20px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ot.fontWeight,"normal"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ot.letterSpacing,"0.15px"),at=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",ot.lineHeight,"1.2"),ct=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ot.textTransform,"inherit"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",et),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ot.fontSize,"14px"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ot.fontWeight,"normal"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ot.letterSpacing,"0.105px"),ut=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ot.lineHeight,"1.7"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ot.textTransform,"inherit"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",it),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ot.fontSize,"16px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ot.fontWeight,"600"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ot.letterSpacing,"0.144px"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ot.lineHeight,"1.5"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ot.textTransform,"inherit"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",it),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ot.fontSize,"14px"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ot.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ot.letterSpacing,"0.098px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ot.lineHeight,"1.7"),Bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ot.textTransform,"inherit"),Et={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ot.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ot.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ot.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ot.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ot.textTransform,"inherit")},Ct={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ot.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ot.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ot.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ot.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ot.textTransform,"inherit")},It={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ot.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ot.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ot.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ot.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ot.textTransform,"inherit")},Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",it),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ot.fontSize,"10px"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ot.fontWeight,"normal"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ot.letterSpacing,"0.33px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ot.lineHeight,"1.6"),Rt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ot.textTransform,"inherit"),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",it),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ot.fontSize,"10px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ot.fontWeight,"normal"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ot.letterSpacing,"1.5px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ot.lineHeight,"1.6"),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ot.textTransform,"uppercase"),_t={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",ot.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ot.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ot.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",ot.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ot.textTransform,"uppercase")},Ht=i.css`
30
+ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t._$litStatic$},Y=t=>({_$litStatic$:t,r:G}),J=new Map,Q=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(r=i[c],s=X(r));)a+=s+e[++c],h=!0;c!==o&&l.push(r),n.push(a),c++}if(c===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=J.get(t))&&(n.raw=n,J.set(t,e=n)),i=l}return t(e,...i)})(D);var tt;!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"}(tt||(tt={}));const et=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),it=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),ot={fontFamily:it,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},st=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",et),rt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",ot.fontSize,"20px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ot.fontWeight,"normal"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ot.letterSpacing,"0.15px"),at=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",ot.lineHeight,"1.2"),ct=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ot.textTransform,"inherit"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",et),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ot.fontSize,"14px"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ot.fontWeight,"normal"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ot.letterSpacing,"0.105px"),ut=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ot.lineHeight,"1.7"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ot.textTransform,"inherit"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",it),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ot.fontSize,"16px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ot.fontWeight,"600"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ot.letterSpacing,"0.144px"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ot.lineHeight,"1.5"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ot.textTransform,"inherit"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",it),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ot.fontSize,"14px"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ot.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ot.letterSpacing,"0.098px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ot.lineHeight,"1.7"),Bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ot.textTransform,"inherit"),Et={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ot.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ot.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ot.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ot.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ot.textTransform,"inherit")},Ct={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ot.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ot.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ot.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ot.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ot.textTransform,"inherit")},It={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ot.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ot.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ot.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ot.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ot.textTransform,"inherit")},Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",it),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ot.fontSize,"10px"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ot.fontWeight,"normal"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ot.letterSpacing,"0.33px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ot.lineHeight,"1.6"),Rt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ot.textTransform,"inherit"),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",it),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ot.fontSize,"10px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ot.fontWeight,"normal"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ot.letterSpacing,"1.5px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ot.lineHeight,"1.6"),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ot.textTransform,"uppercase"),_t={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",ot.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ot.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ot.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",ot.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ot.textTransform,"uppercase")},Ht=i.css`
31
31
  .ft-typography--title {
32
32
  font-family: ${st};
33
- font-size: ${nt};
34
- font-weight: ${rt};
33
+ font-size: ${rt};
34
+ font-weight: ${nt};
35
35
  letter-spacing: ${lt};
36
36
  line-height: ${at};
37
37
  text-transform: ${ct};
@@ -122,14 +122,14 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
122
122
  .ft-typography {
123
123
  vertical-align: inherit;
124
124
  }
125
- `;var ee=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 ie extends e.FtLitElement{constructor(){super(...arguments),this.variant=tt.body1}render(){return this.element?Q`
125
+ `;var ee=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ie extends e.FtLitElement{constructor(){super(...arguments),this.variant=tt.body1}render(){return this.element?Q`
126
126
  <${Y(this.element)}
127
127
  class="ft-typography ft-typography--${this.variant}">
128
128
  <slot></slot>
129
129
  </${Y(this.element)}>
130
130
  `:Q`
131
131
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
132
- `}}function oe(t,e){return t.flatMap((t=>[t,...oe(e(t),e)]))}function se(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ne(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>ne(e,t.selected))),value:t.value}}function re(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>ne(t,!1)))}}ie.styles=[Ht,Vt,Wt,Kt,qt,Gt,Xt,Yt,Jt,Qt,te],ee([o.property()],ie.prototype,"element",void 0),ee([o.property()],ie.prototype,"variant",void 0),e.customElement("ft-typography")(ie);const le=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ae={color:le,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",le),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},ce=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),he=ce,pe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",ce),fe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),de=fe,ue=e.FtCssVariableFactory.extend("--ft-ripple-background-color",fe),be=i.css`
132
+ `}}function oe(t,e){return t.flatMap((t=>[t,...oe(e(t),e)]))}function se(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function re(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>re(e,t.selected))),value:t.value}}function ne(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>re(t,!1)))}}ie.styles=[Ht,Vt,Wt,Kt,qt,Gt,Xt,Yt,Jt,Qt,te],ee([o.property()],ie.prototype,"element",void 0),ee([o.property()],ie.prototype,"variant",void 0),e.customElement("ft-typography")(ie);const le=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ae={color:le,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",le),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},ce=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),he=ce,pe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",ce),fe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),de=fe,ue=e.FtCssVariableFactory.extend("--ft-ripple-background-color",fe),be=i.css`
133
133
  :host {
134
134
  display: contents;
135
135
  }
@@ -219,7 +219,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
219
219
  opacity: ${ae.opacityContentOnSurfacePressed};
220
220
  transform: translate(-50%, -50%) scale(1);
221
221
  }
222
- `;var ve=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 ge extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
222
+ `;var ve=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ge extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
223
223
  <style>
224
224
  .ft-ripple .ft-ripple--effect,
225
225
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -232,7 +232,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
232
232
  top: ${this.originY}px;
233
233
  }
234
234
  </style>
235
- <div class="${n.classMap(t)}">
235
+ <div class="${r.classMap(t)}">
236
236
  <div class="ft-ripple--background"></div>
237
237
  <div class="ft-ripple--effect"></div>
238
238
  </div>
@@ -268,7 +268,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
268
268
  position: relative;
269
269
  word-break: break-word;
270
270
  }
271
- `;var me=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 $e extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return i.html`
271
+ `;var me=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class $e extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return i.html`
272
272
  <div part="container"
273
273
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
274
274
  @mouseenter=${this.onHover}
@@ -286,7 +286,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
286
286
  </div>
287
287
  </div>
288
288
  </div>
289
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=e.height,s=o;break;case"left":n=i,s=-this.tooltip.clientWidth;break;case"right":n=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${e.width}px, ${xe.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}$e.elementDefinitions={"ft-typography":ie},$e.styles=ye,me([o.property()],$e.prototype,"text",void 0),me([o.property({type:Boolean})],$e.prototype,"manual",void 0),me([o.property({type:Boolean})],$e.prototype,"inline",void 0),me([o.property({type:Number})],$e.prototype,"delay",void 0),me([o.property()],$e.prototype,"position",void 0),me([o.queryAssignedNodes("",!0)],$e.prototype,"slotNodes",void 0),me([o.query(".ft-tooltip--container")],$e.prototype,"container",void 0),me([o.query("slot")],$e.prototype,"target",void 0),me([o.query(".ft-tooltip")],$e.prototype,"tooltip",void 0),me([o.query(".ft-tooltip--content")],$e.prototype,"tooltipContent",void 0),me([o.state()],$e.prototype,"visible",void 0),e.customElement("ft-tooltip")($e);const we={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},ke=i.css`
289
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,s=o;break;case"bottom":r=e.height,s=o;break;case"left":r=i,s=-this.tooltip.clientWidth;break;case"right":r=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const n=this.tooltip.style;n.left=s+"px",n.top=r+"px",n.maxWidth=`max(${e.width}px, ${xe.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}$e.elementDefinitions={"ft-typography":ie},$e.styles=ye,me([o.property()],$e.prototype,"text",void 0),me([o.property({type:Boolean})],$e.prototype,"manual",void 0),me([o.property({type:Boolean})],$e.prototype,"inline",void 0),me([o.property({type:Number})],$e.prototype,"delay",void 0),me([o.property()],$e.prototype,"position",void 0),me([o.queryAssignedNodes("",!0)],$e.prototype,"slotNodes",void 0),me([o.query(".ft-tooltip--container")],$e.prototype,"container",void 0),me([o.query("slot")],$e.prototype,"target",void 0),me([o.query(".ft-tooltip")],$e.prototype,"tooltip",void 0),me([o.query(".ft-tooltip--content")],$e.prototype,"tooltipContent",void 0),me([o.state()],$e.prototype,"visible",void 0),e.customElement("ft-tooltip")($e);const we={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},ke=i.css`
290
290
  :host {
291
291
  line-height: 0;
292
292
  }
@@ -410,9 +410,9 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
410
410
  .ft-icon--material {
411
411
  font-family: ${Ce.materialFontFamily}, "Material Icons", sans-serif;
412
412
  }
413
- `;var Fe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Fe||(Fe={}));var De=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 Le extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,e=t!==Fe.material||!!this.value;return i.html`
413
+ `;var Fe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Fe||(Fe={}));var De=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Le extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,e=t!==Fe.material||!!this.value;return i.html`
414
414
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
415
- ${r.unsafeHTML(this.resolvedIcon)}
415
+ ${n.unsafeHTML(this.resolvedIcon)}
416
416
  <slot ?hidden=${e}></slot>
417
417
  </i>
418
418
  `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Fe.file_format:this.resolvedIcon=null!==(t=Oe[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Fe.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=ze[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Le.elementDefinitions={},Le.styles=Ie,De([o.property()],Le.prototype,"variant",void 0),De([o.property()],Le.prototype,"value",void 0),De([o.state()],Le.prototype,"resolvedIcon",void 0),De([o.query("slot")],Le.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Le);const je=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Me={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:je,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",_t.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",je),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Re=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Pe={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Re,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Re)},Ae=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),Ne=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Te=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Ze=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Ue=[i.css`
@@ -552,9 +552,9 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
552
552
  ${e.setVariable(we.size,Me.iconSize)};
553
553
  ${e.setVariable(we.color,"var(--ft-button-internal-color)")};
554
554
  }
555
- `,e.noTextSelect];var _e=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 He extends e.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
555
+ `,e.noTextSelect];var _e=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class He extends e.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
556
556
  <button part="button"
557
- class="${n.classMap(t)}"
557
+ class="${r.classMap(t)}"
558
558
  aria-label="${this.getLabel()}"
559
559
  ?disabled=${this.isDisabled()}>
560
560
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -652,8 +652,8 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
652
652
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
653
653
  opacity: 1;
654
654
  }
655
- `;var Ye=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 Je extends e.FtLitElement{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 i.html`
656
- <label class="${n.classMap(t)}" for="checkbox-input">
655
+ `;var Ye=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Je extends e.FtLitElement{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 i.html`
656
+ <label class="${r.classMap(t)}" for="checkbox-input">
657
657
  <div class="ft-checkbox--box-container">
658
658
  <ft-ripple
659
659
  ?disabled=${this.disabled}
@@ -757,8 +757,8 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
757
757
  .ft-radio--disabled .ft-radio--box:after {
758
758
  background-color: ${ii};
759
759
  }
760
- `;var si=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 ni extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class ri extends e.FtLitElement{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 i.html`
761
- <div class="${n.classMap(t)}">
760
+ `;var si=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ri extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class ni extends e.FtLitElement{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 i.html`
761
+ <div class="${r.classMap(t)}">
762
762
  <div class="ft-radio--box-container">
763
763
  <ft-ripple
764
764
  ?disabled=${this.disabled}
@@ -782,17 +782,17 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
782
782
  </ft-typography>
783
783
  </label>
784
784
  </div>
785
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new ni(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ni(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}ri.elementDefinitions={"ft-ripple":ge,"ft-typography":ie},ri.styles=oi,si([o.property()],ri.prototype,"value",void 0),si([o.property()],ri.prototype,"name",void 0),si([o.property({type:Boolean,reflect:!0})],ri.prototype,"checked",void 0),si([o.property({type:Boolean})],ri.prototype,"disabled",void 0),si([o.query(".ft-radio")],ri.prototype,"container",void 0),si([o.query("ft-ripple")],ri.prototype,"ripple",void 0),si([o.query("input")],ri.prototype,"input",void 0);const li=i.css`
785
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new ri(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ri(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}ni.elementDefinitions={"ft-ripple":ge,"ft-typography":ie},ni.styles=oi,si([o.property()],ni.prototype,"value",void 0),si([o.property()],ni.prototype,"name",void 0),si([o.property({type:Boolean,reflect:!0})],ni.prototype,"checked",void 0),si([o.property({type:Boolean})],ni.prototype,"disabled",void 0),si([o.query(".ft-radio")],ni.prototype,"container",void 0),si([o.query("ft-ripple")],ni.prototype,"ripple",void 0),si([o.query("input")],ni.prototype,"input",void 0);const li=i.css`
786
786
  :host {
787
787
  display: contents;
788
788
  }
789
- `;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};class ci extends e.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return i.html`
789
+ `;var ai=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ci extends e.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return i.html`
790
790
  <slot @slotchange=${this.onSlotChange}
791
791
  @change=${this.onChange}
792
792
  @keydown=${this.onKeyDown}
793
793
  @focusin=${this.focusCurrentValue}
794
794
  ></slot>
795
- `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}ci.elementDefinitions={},ci.styles=li,ai([o.property()],ci.prototype,"name",void 0),ai([o.queryAssignedElements()],ci.prototype,"radioButtons",void 0),e.customElement("ft-radio")(ri),e.customElement("ft-radio-group")(ci);const hi={borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:e.FtCssVariableFactory.external(Ct.fontFamily,"Body2 typography"),fontSize:e.FtCssVariableFactory.external(Ct.fontSize,"Body2 typography"),fontWeight:e.FtCssVariableFactory.external(Ct.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariableFactory.external(Ct.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariableFactory.external(Ct.lineHeight,"Body2 typography"),textTransform:e.FtCssVariableFactory.external(Ct.textTransform,"Body2 typography")},pi=i.css`
795
+ `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}ci.elementDefinitions={},ci.styles=li,ai([o.property()],ci.prototype,"name",void 0),ai([o.queryAssignedElements()],ci.prototype,"radioButtons",void 0),e.customElement("ft-radio")(ni),e.customElement("ft-radio-group")(ci);const hi={borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:e.FtCssVariableFactory.external(Ct.fontFamily,"Body2 typography"),fontSize:e.FtCssVariableFactory.external(Ct.fontSize,"Body2 typography"),fontWeight:e.FtCssVariableFactory.external(Ct.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariableFactory.external(Ct.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariableFactory.external(Ct.lineHeight,"Body2 typography"),textTransform:e.FtCssVariableFactory.external(Ct.textTransform,"Body2 typography")},pi=i.css`
796
796
  .ft-filter-level--container {
797
797
  display: flex;
798
798
  flex-direction: column;
@@ -858,7 +858,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
858
858
  margin: 10px 0;
859
859
  color: ${hi.colorOnSurfaceMedium};
860
860
  }
861
- `;var fi=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 di extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return i.html`
861
+ `;var fi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class di extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return i.html`
862
862
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
863
863
  ${null==this.parent?null:i.html`
864
864
  <div tabindex="0"
@@ -922,7 +922,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
922
922
  @change=${t=>t.stopPropagation()}>
923
923
  ${t.renderOption?t.renderOption:t.label}
924
924
  </ft-radio>
925
- `}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}))}}di.elementDefinitions={"ft-button":He,"ft-ripple":ge,"ft-typography":ie,"ft-checkbox":Je,"ft-icon":Le,"ft-radio":ri},di.styles=pi,fi([o.property({type:String})],di.prototype,"id",void 0),fi([o.property({type:Object})],di.prototype,"parent",void 0),fi([o.property({type:Array})],di.prototype,"options",void 0),fi([o.property({type:Boolean})],di.prototype,"multivalued",void 0),fi([o.property({type:Boolean})],di.prototype,"disabled",void 0),fi([o.property({type:Boolean})],di.prototype,"hideSelectedOptions",void 0),fi([o.property({type:Boolean})],di.prototype,"preventNavigation",void 0),fi([o.property({type:String})],di.prototype,"filter",void 0),fi([o.property({type:String})],di.prototype,"moreValuesButtonLabel",void 0),fi([o.property({type:String})],di.prototype,"noValuesLabel",void 0),fi([o.property({type:Number})],di.prototype,"displayedValuesLimit",void 0),fi([o.query(".ft-filter-level--container")],di.prototype,"container",void 0),fi([o.state()],di.prototype,"displayedPages",void 0);const ui={buttonsColor:e.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",e.designSystemVariables.colorPrimary),buttonsZIndex:e.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:e.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system")},bi=i.css`
925
+ `}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}))}}di.elementDefinitions={"ft-button":He,"ft-ripple":ge,"ft-typography":ie,"ft-checkbox":Je,"ft-icon":Le,"ft-radio":ni},di.styles=pi,fi([o.property({type:String})],di.prototype,"id",void 0),fi([o.property({type:Object})],di.prototype,"parent",void 0),fi([o.property({type:Array})],di.prototype,"options",void 0),fi([o.property({type:Boolean})],di.prototype,"multivalued",void 0),fi([o.property({type:Boolean})],di.prototype,"disabled",void 0),fi([o.property({type:Boolean})],di.prototype,"hideSelectedOptions",void 0),fi([o.property({type:Boolean})],di.prototype,"preventNavigation",void 0),fi([o.property({type:String})],di.prototype,"filter",void 0),fi([o.property({type:String})],di.prototype,"moreValuesButtonLabel",void 0),fi([o.property({type:String})],di.prototype,"noValuesLabel",void 0),fi([o.property({type:Number})],di.prototype,"displayedValuesLimit",void 0),fi([o.query(".ft-filter-level--container")],di.prototype,"container",void 0),fi([o.state()],di.prototype,"displayedPages",void 0);const ui={buttonsColor:e.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",e.designSystemVariables.colorPrimary),buttonsZIndex:e.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:e.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system")},bi=i.css`
926
926
  .ft-snap-scroll {
927
927
  box-sizing: border-box;
928
928
  position: relative;
@@ -1047,7 +1047,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1047
1047
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1048
1048
  background-color: ${ui.colorSurface};
1049
1049
  }
1050
- `;var vi=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 gi extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class xi extends e.FtLitElement{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.Debouncer(200),this.updateScrollDebouncer=new e.Debouncer(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=n.classMap({"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":e.isSafari}),o=this.controls&&this.withScroll;return i.html`
1050
+ `;var vi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class gi extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class xi extends e.FtLitElement{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.Debouncer(200),this.updateScrollDebouncer=new e.Debouncer(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=r.classMap({"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":e.isSafari}),o=this.controls&&this.withScroll;return i.html`
1051
1051
  <div part="container" class="${t}">
1052
1052
  <ft-button
1053
1053
  class="ft-snap-scroll--previous"
@@ -1183,7 +1183,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1183
1183
  slot {
1184
1184
  display: none;
1185
1185
  }
1186
- `];var Bi=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 Ei extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ci extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e.Debouncer(300),this.changeDebouncer=new e.Debouncer(10)}get flatOptions(){return oe(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){var t,e;const o=this.flatOptions.some((t=>t.selected)),s=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e,n=this.filterPlaceHolder.replace("{0}",this.label);return i.html`
1186
+ `];var Bi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ei extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ci extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e.Debouncer(300),this.changeDebouncer=new e.Debouncer(10)}get flatOptions(){return oe(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){var t,e;const o=this.flatOptions.some((t=>t.selected)),s=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e,r=this.filterPlaceHolder.replace("{0}",this.label);return i.html`
1187
1187
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1188
1188
  part="container">
1189
1189
  ${this.label||o?i.html`
@@ -1202,8 +1202,8 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1202
1202
  part="input"
1203
1203
  class="ft-typography--caption"
1204
1204
  ?disabled=${!s}
1205
- placeholder="${n}"
1206
- size="${s?n.length:0}"
1205
+ placeholder="${r}"
1206
+ size="${s?r.length:0}"
1207
1207
  @search=${this.onFilterChange}
1208
1208
  @keyup=${this.onFilterChange}>
1209
1209
  </div>
@@ -1253,13 +1253,13 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1253
1253
  .exportpartsPrefixes=${["values","available-values"]}
1254
1254
  noValuesLabel="${this.noValuesLabel}"
1255
1255
  ></ft-filter-level>
1256
- `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.dispatchEvent(new Ei(this.selectedValues)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Ci.elementDefinitions={"ft-button":He,"ft-filter-level":di,"ft-snap-scroll":xi,"ft-typography":ie},Ci.styles=Oi,Bi([o.property({type:String})],Ci.prototype,"id",void 0),Bi([o.property({type:String})],Ci.prototype,"label",void 0),Bi([o.property({type:String})],Ci.prototype,"filterPlaceHolder",void 0),Bi([o.property({type:String})],Ci.prototype,"clearButtonLabel",void 0),Bi([o.property({type:String})],Ci.prototype,"moreValuesButtonLabel",void 0),Bi([o.property({type:String})],Ci.prototype,"noValuesLabel",void 0),Bi([e.jsonProperty([])],Ci.prototype,"options",void 0),Bi([o.property({type:Boolean})],Ci.prototype,"multivalued",void 0),Bi([o.property({type:Boolean})],Ci.prototype,"disabled",void 0),Bi([o.property({type:Boolean})],Ci.prototype,"raiseSelectedOptions",void 0),Bi([o.property({type:Number})],Ci.prototype,"displayedValuesLimit",void 0),Bi([o.property({type:Boolean})],Ci.prototype,"hideClearButton",void 0),Bi([o.query(".ft-filter--slot")],Ci.prototype,"slotElement",void 0),Bi([o.query(".ft-filter--container")],Ci.prototype,"container",void 0),Bi([o.query(".ft-filter--values")],Ci.prototype,"valuesContainer",void 0),Bi([o.query(".ft-filter--levels")],Ci.prototype,"levelsContainer",void 0),Bi([o.query(".ft-filter--levels ft-filter-level:last-child")],Ci.prototype,"lastLevel",void 0),Bi([o.query(".ft-filter--filter input")],Ci.prototype,"filterInput",void 0),Bi([o.queryAll(".ft-filter--levels ft-filter-level")],Ci.prototype,"levels",void 0),Bi([o.state()],Ci.prototype,"withScroll",void 0),Bi([o.state()],Ci.prototype,"filter",void 0),Bi([o.state()],Ci.prototype,"slideIn",void 0),Bi([o.state()],Ci.prototype,"slideOut",void 0);var Ii=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 Fi extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return i.html`
1256
+ `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.dispatchEvent(new Ei(this.selectedValues)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Ci.elementDefinitions={"ft-button":He,"ft-filter-level":di,"ft-snap-scroll":xi,"ft-typography":ie},Ci.styles=Oi,Bi([o.property({type:String})],Ci.prototype,"id",void 0),Bi([o.property({type:String})],Ci.prototype,"label",void 0),Bi([o.property({type:String})],Ci.prototype,"filterPlaceHolder",void 0),Bi([o.property({type:String})],Ci.prototype,"clearButtonLabel",void 0),Bi([o.property({type:String})],Ci.prototype,"moreValuesButtonLabel",void 0),Bi([o.property({type:String})],Ci.prototype,"noValuesLabel",void 0),Bi([e.jsonProperty([])],Ci.prototype,"options",void 0),Bi([o.property({type:Boolean})],Ci.prototype,"multivalued",void 0),Bi([o.property({type:Boolean})],Ci.prototype,"disabled",void 0),Bi([o.property({type:Boolean})],Ci.prototype,"raiseSelectedOptions",void 0),Bi([o.property({type:Number})],Ci.prototype,"displayedValuesLimit",void 0),Bi([o.property({type:Boolean})],Ci.prototype,"hideClearButton",void 0),Bi([o.query(".ft-filter--slot")],Ci.prototype,"slotElement",void 0),Bi([o.query(".ft-filter--container")],Ci.prototype,"container",void 0),Bi([o.query(".ft-filter--values")],Ci.prototype,"valuesContainer",void 0),Bi([o.query(".ft-filter--levels")],Ci.prototype,"levelsContainer",void 0),Bi([o.query(".ft-filter--levels ft-filter-level:last-child")],Ci.prototype,"lastLevel",void 0),Bi([o.query(".ft-filter--filter input")],Ci.prototype,"filterInput",void 0),Bi([o.queryAll(".ft-filter--levels ft-filter-level")],Ci.prototype,"levels",void 0),Bi([o.state()],Ci.prototype,"withScroll",void 0),Bi([o.state()],Ci.prototype,"filter",void 0),Bi([o.state()],Ci.prototype,"slideIn",void 0),Bi([o.state()],Ci.prototype,"slideOut",void 0);var Ii=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Fi extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return i.html`
1257
1257
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1258
1258
  `}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}))}}Fi.elementDefinitions={},Ii([o.property({type:String})],Fi.prototype,"label",void 0),Ii([o.property({type:Object,converter:t=>t})],Fi.prototype,"value",void 0),Ii([o.property({type:Boolean,reflect:!0})],Fi.prototype,"selected",void 0),Ii([o.property({type:Object})],Fi.prototype,"subOptions",void 0),Ii([e.jsonProperty({})],Fi.prototype,"renderOption",void 0),Ii([o.query(".ft-filter-option--slot")],Fi.prototype,"slotElement",void 0),e.customElement("ft-filter")(Ci),e.customElement("ft-filter-option")(Fi);const Di=i.css`
1259
1259
  .ft-accordion {
1260
1260
  box-sizing: border-box;
1261
1261
  }
1262
- `;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};class ji extends e.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return i.html`
1262
+ `;var Li=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ji extends e.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return i.html`
1263
1263
  <div class="ft-accordion">
1264
1264
  <slot @activated=${this.onChange}></slot>
1265
1265
  </div>
@@ -1308,7 +1308,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1308
1308
  .ft-accordion-item--separator {
1309
1309
  border-bottom: 1px solid ${Pi};
1310
1310
  }
1311
- `;var Ni=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 Ti extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return i.html`
1311
+ `;var Ni=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ti extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return i.html`
1312
1312
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1313
1313
  <div class="ft-accordion-item--toggle"
1314
1314
  part="toggle"
@@ -1475,8 +1475,8 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1475
1475
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1476
1476
  order: -1;
1477
1477
  }
1478
- `];var qi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,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 Gi extends CustomEvent{constructor(){super("icon-click")}}class Xi extends e.FtLitElement{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.iconLabel="",this.icon=void 0,this.trailingIcon=!1}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":e.isSafari};return i.html`
1479
- <div class="${n.classMap(t)}"
1478
+ `];var qi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Gi extends CustomEvent{constructor(){super("icon-click")}}class Xi extends e.FtLitElement{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.iconLabel="",this.icon=void 0,this.trailingIcon=!1}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":e.isSafari};return i.html`
1479
+ <div class="${r.classMap(t)}"
1480
1480
  aria-label="${this.getLabel()}"
1481
1481
  tabindex="${this.interactionsOnChip?0:-1}"
1482
1482
  @keyup=${this.onKeyUp}>
@@ -1620,8 +1620,8 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1620
1620
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1621
1621
  border-top: none;
1622
1622
  }
1623
- `;var Qi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,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 to extends e.FtLitElement{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 i.html`
1624
- <div class="${n.classMap(t)}">
1623
+ `;var Qi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class to extends e.FtLitElement{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 i.html`
1624
+ <div class="${r.classMap(t)}">
1625
1625
  ${this.text?i.html`
1626
1626
  <div class="ft-input-label--text ft-typography--caption">
1627
1627
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -1778,8 +1778,8 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1778
1778
  .ft-select--in-error .ft-select--helper-text {
1779
1779
  color: ${eo.colorError};
1780
1780
  }
1781
- `;var oo=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 so extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return i.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}so.elementDefinitions={},oo([o.property({type:String})],so.prototype,"label",void 0),oo([o.property({type:Object,converter:t=>t})],so.prototype,"value",void 0),oo([o.property({type:Boolean,reflect:!0})],so.prototype,"selected",void 0);class no extends e.FtLitElement{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,o,r,l;let a=this.hasOptionsMenuOpen,c=this.disabled||!this.hasOptions;const h=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":a,"ft-select--has-option-selected":h,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
1782
- <div class="${n.classMap(p)}" part="container">
1781
+ `;var oo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class so extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return i.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}so.elementDefinitions={},oo([o.property({type:String})],so.prototype,"label",void 0),oo([o.property({type:Object,converter:t=>t})],so.prototype,"value",void 0),oo([o.property({type:Boolean,reflect:!0})],so.prototype,"selected",void 0);class ro extends e.FtLitElement{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,o,n,l;let a=this.hasOptionsMenuOpen,c=this.disabled||!this.hasOptions;const h=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":a,"ft-select--has-option-selected":h,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
1782
+ <div class="${r.classMap(p)}" part="container">
1783
1783
  <div class="ft-select--main-panel" part="main-panel">
1784
1784
  <ft-input-label text="${this.label}"
1785
1785
  part="label"
@@ -1798,7 +1798,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1798
1798
  aria-expanded="${a}">
1799
1799
  <ft-ripple ?disabled=${c} ?activated=${!this.outlined}></ft-ripple>
1800
1800
  <ft-typography variant="body1" class="ft-select--selected-option">
1801
- ${null!==(l=null===(r=this.selectedOption)||void 0===r?void 0:r.label)&&void 0!==l?l:""}
1801
+ ${null!==(l=null===(n=this.selectedOption)||void 0===n?void 0:n.label)&&void 0!==l?l:""}
1802
1802
  </ft-typography>
1803
1803
  <ft-icon>${a?"thin_arrow_up":"thin_arrow"}</ft-icon>
1804
1804
  </div>
@@ -1817,7 +1817,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1817
1817
  @option-change=${this.updateOptionsFromSlot}
1818
1818
  ></slot>
1819
1819
  `}renderOption(t){let e=this.selectedOption===t;const o={"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0};return i.html`
1820
- <div class="${n.classMap(o)}"
1820
+ <div class="${r.classMap(o)}"
1821
1821
  part="option"
1822
1822
  tabindex="0"
1823
1823
  data-value="${t.value}"
@@ -1826,31 +1826,31 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1826
1826
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
1827
1827
  <span>${t.label}</span>
1828
1828
  </div>
1829
- `}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,n;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var i,o;if(!e.deepEqual(null===(i=this.selectedOption)||void 0===i?void 0:i.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(o=this.selectedOption)||void 0===o?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}no.elementDefinitions={"ft-input-label":to,"ft-typography":ie,"ft-ripple":ge,"ft-icon":Le},no.styles=[Gt,Xt,io],oo([o.property({type:String})],no.prototype,"label",void 0),oo([o.property({type:String})],no.prototype,"helper",void 0),oo([o.property({type:Boolean})],no.prototype,"outlined",void 0),oo([o.property({type:Boolean})],no.prototype,"disabled",void 0),oo([o.property({type:Boolean})],no.prototype,"error",void 0),oo([o.property({type:Boolean})],no.prototype,"fixedMenuPosition",void 0),oo([o.property({type:Array})],no.prototype,"options",void 0),oo([o.state()],no.prototype,"selectedOption",void 0),oo([o.state()],no.prototype,"optionsDisplayed",void 0),oo([o.state()],no.prototype,"focusOptions",void 0),oo([o.query(".ft-select")],no.prototype,"container",void 0),oo([o.query(".ft-select--options")],no.prototype,"optionsMenu",void 0),oo([o.query(".ft-select--input-panel")],no.prototype,"mainPanel",void 0),oo([o.query(".ft-select--option:first-child")],no.prototype,"firstOption",void 0),oo([o.query(".ft-select--option:focus")],no.prototype,"focusedOption",void 0),oo([o.query(".ft-select--option.ft-select--option-selected")],no.prototype,"selectedOptionElement",void 0),oo([o.query(".ft-select--option:last-child")],no.prototype,"lastOption",void 0),oo([o.query("slot")],no.prototype,"optionsSlot",void 0),e.customElement("ft-select")(no),e.customElement("ft-select-option")(so);const ro={display:e.FtCssVariableFactory.create("--ft-skeleton--display","DISPLAY","block"),width:e.FtCssVariableFactory.create("--ft-skeleton--width","SIZE","100%"),height:e.FtCssVariableFactory.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:e.FtCssVariableFactory.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:e.FtCssVariableFactory.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:e.FtCssVariableFactory.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:e.FtCssVariableFactory.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system")},lo=i.css`
1829
+ `}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,r;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(r=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var i,o;if(!e.deepEqual(null===(i=this.selectedOption)||void 0===i?void 0:i.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(o=this.selectedOption)||void 0===o?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}ro.elementDefinitions={"ft-input-label":to,"ft-typography":ie,"ft-ripple":ge,"ft-icon":Le},ro.styles=[Gt,Xt,io],oo([o.property({type:String})],ro.prototype,"label",void 0),oo([o.property({type:String})],ro.prototype,"helper",void 0),oo([o.property({type:Boolean})],ro.prototype,"outlined",void 0),oo([o.property({type:Boolean})],ro.prototype,"disabled",void 0),oo([o.property({type:Boolean})],ro.prototype,"error",void 0),oo([o.property({type:Boolean})],ro.prototype,"fixedMenuPosition",void 0),oo([o.property({type:Array})],ro.prototype,"options",void 0),oo([o.state()],ro.prototype,"selectedOption",void 0),oo([o.state()],ro.prototype,"optionsDisplayed",void 0),oo([o.state()],ro.prototype,"focusOptions",void 0),oo([o.query(".ft-select")],ro.prototype,"container",void 0),oo([o.query(".ft-select--options")],ro.prototype,"optionsMenu",void 0),oo([o.query(".ft-select--input-panel")],ro.prototype,"mainPanel",void 0),oo([o.query(".ft-select--option:first-child")],ro.prototype,"firstOption",void 0),oo([o.query(".ft-select--option:focus")],ro.prototype,"focusedOption",void 0),oo([o.query(".ft-select--option.ft-select--option-selected")],ro.prototype,"selectedOptionElement",void 0),oo([o.query(".ft-select--option:last-child")],ro.prototype,"lastOption",void 0),oo([o.query("slot")],ro.prototype,"optionsSlot",void 0),e.customElement("ft-select")(ro),e.customElement("ft-select-option")(so);const no={display:e.FtCssVariableFactory.create("--ft-skeleton--display","DISPLAY","block"),width:e.FtCssVariableFactory.create("--ft-skeleton--width","SIZE","100%"),height:e.FtCssVariableFactory.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:e.FtCssVariableFactory.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:e.FtCssVariableFactory.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:e.FtCssVariableFactory.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:e.FtCssVariableFactory.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system")},lo=i.css`
1830
1830
  :host {
1831
- width: ${ro.width};
1832
- height: ${ro.height};
1833
- display: ${ro.display};
1831
+ width: ${no.width};
1832
+ height: ${no.height};
1833
+ display: ${no.display};
1834
1834
  overflow: hidden;
1835
- border-radius: ${ro.borderRadiusM};
1835
+ border-radius: ${no.borderRadiusM};
1836
1836
  background: linear-gradient(
1837
1837
  90deg,
1838
1838
  transparent,
1839
- ${ro.glareColor} calc(0.45 * ${ro.glareWidth}),
1840
- ${ro.glareColor} calc(0.55 * ${ro.glareWidth}),
1841
- transparent ${ro.glareWidth}
1842
- ), ${ro.backgroundColor};
1839
+ ${no.glareColor} calc(0.45 * ${no.glareWidth}),
1840
+ ${no.glareColor} calc(0.55 * ${no.glareWidth}),
1841
+ transparent ${no.glareWidth}
1842
+ ), ${no.backgroundColor};
1843
1843
  background-repeat: repeat-y;
1844
1844
  background-size: 100vw 100vh;
1845
1845
  background-attachment: fixed;
1846
- background-position: calc(${ro.glareWidth} * -1) 0;
1847
- animation: shine ${ro.animationDuration} infinite;
1846
+ background-position: calc(${no.glareWidth} * -1) 0;
1847
+ animation: shine ${no.animationDuration} infinite;
1848
1848
  animation-timing-function: linear;
1849
1849
  }
1850
1850
 
1851
1851
  @keyframes shine {
1852
1852
  to {
1853
- background-position: calc(100vw + ${ro.glareWidth}) 0, calc(${ro.glareWidth} * -1) 0;
1853
+ background-position: calc(100vw + ${no.glareWidth}) 0, calc(${no.glareWidth} * -1) 0;
1854
1854
  }
1855
1855
  }
1856
1856
  `,ao={height:e.FtCssVariableFactory.create("--ft-search-bar-height","SIZE","38px"),borderRadius:e.FtCssVariableFactory.extend("--ft-search-bar-border-radius",e.designSystemVariables.borderRadiusS),mobileOpenPosition:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","SIZE","0"),desktopFiltersHeight:e.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","SIZE","350px"),floatingZIndex:e.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),buttonColor:e.FtCssVariableFactory.external(Me.color,"Button"),buttonRippleColor:e.FtCssVariableFactory.external(Me.rippleColor,"Button")},co=i.css`
@@ -1901,8 +1901,8 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
1901
1901
  }
1902
1902
 
1903
1903
  .ft-search-bar--skeleton {
1904
- ${e.setVariable(ro.height,ao.height)};
1905
- ${e.setVariable(ro.borderRadiusM,ao.borderRadius)};
1904
+ ${e.setVariable(no.height,ao.height)};
1905
+ ${e.setVariable(no.borderRadiusM,ao.borderRadius)};
1906
1906
  }
1907
1907
 
1908
1908
  .ft-search-bar--floating-panel-open .ft-search-bar {
@@ -2208,7 +2208,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
2208
2208
  </a>
2209
2209
  `))}
2210
2210
  </div>
2211
- `}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,i,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var i,o;t.preventDefault(),t.stopPropagation();let s=t.target.closest(".ft-search-bar--suggestion");const n=null!==(o=null!==(i=null==s?void 0:s.previousElementSibling)&&void 0!==i?i:null==s?void 0:s.nextElementSibling)&&void 0!==o?o:this.searchBar.input;null==n||n.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?Fe.file_format:Fe.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ze.BOOK:ze.ARTICLE;break;case"DOCUMENT":o=function(t,e){var i,o,s,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[r,l]=((null!==(i=Ee.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(n=null!==(s=null!==(o=Be.get(l))&&void 0!==o?o:Be.get(e))&&void 0!==s?s:Be.get(r))&&void 0!==n?n:Oe.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ze.TOPICS}return i.html`
2211
+ `}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,i,o,s,r,n;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(n=null!==(r=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var i,o;t.preventDefault(),t.stopPropagation();let s=t.target.closest(".ft-search-bar--suggestion");const r=null!==(o=null!==(i=null==s?void 0:s.previousElementSibling)&&void 0!==i?i:null==s?void 0:s.nextElementSibling)&&void 0!==o?o:this.searchBar.input;null==r||r.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?Fe.file_format:Fe.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ze.BOOK:ze.ARTICLE;break;case"DOCUMENT":o=function(t,e){var i,o,s,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[n,l]=((null!==(i=Ee.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(r=null!==(s=null!==(o=Be.get(l))&&void 0!==o?o:Be.get(e))&&void 0!==s?s:Be.get(n))&&void 0!==r?r:Oe.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ze.TOPICS}return i.html`
2212
2212
  <ft-icon .variant="${e}" .value="${o}" part="suggestion-icon"></ft-icon>
2213
2213
  `}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let t=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}}fo.styles=[e.wordWrap,i.css`
2214
2214
  .ft-search-bar--mobile .ft-search-bar--suggestions {
@@ -2293,29 +2293,29 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
2293
2293
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2294
2294
  </ft-chip>
2295
2295
  `:null}
2296
- ${s.repeat(this.searchBar.facets,(t=>t.key),(o=>{const n=function(t){return oe(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(o);return s.repeat(n,(s=>{let r=o.label+": "+function(t){return se(t).split("|").join(" > ")}(s);const l=o.key.replace(":","-"),a=i.html`
2296
+ ${s.repeat(this.searchBar.facets,(t=>t.key),(o=>{const r=function(t){return oe(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(o);return s.repeat(r,(s=>{let n=o.label+": "+function(t){return se(t).split("|").join(" > ")}(s);const l=o.key.replace(":","-"),a=i.html`
2297
2297
  <ft-chip
2298
2298
  part="selected-filters selected-filter-${l}"
2299
2299
  ?dense=${this.searchBar.dense&&!t}
2300
2300
  ?clickable=${t}
2301
2301
  ?removable=${!t}
2302
2302
  icon=${t?i.nothing:"close"}
2303
- label="${r}"
2304
- title=${e?r:i.nothing}
2303
+ label="${n}"
2304
+ title=${e?n:i.nothing}
2305
2305
  @click=${()=>this.openMobileFilters(o.key)}
2306
- @icon-click=${()=>this.searchBar.setFilter(o.key,n.filter((t=>t!==s)))}
2306
+ @icon-click=${()=>this.searchBar.setFilter(o.key,r.filter((t=>t!==s)))}
2307
2307
  data-key="${o.key}"
2308
2308
  data-value="${s}">
2309
2309
  ${function(t){return se(t).split("|").pop()}(s)}
2310
2310
  </ft-chip>
2311
2311
  `;return e?a:i.html`
2312
- <ft-tooltip inline text="${r}">
2312
+ <ft-tooltip inline text="${n}">
2313
2313
  ${a}
2314
2314
  </ft-tooltip>
2315
2315
  `}))}))}
2316
2316
  ${t?i.html`
2317
2317
  <ft-chip part="selected-filters mobile-filters-opener"
2318
- icon="add"
2318
+ icon="plus"
2319
2319
  clickable
2320
2320
  @click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
2321
2321
  ${this.searchBar.labelResolver.resolve("filtersButton")}
@@ -2363,7 +2363,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
2363
2363
  flex-grow: 0;
2364
2364
  }
2365
2365
  `;class bo{constructor(t,e,i){this.searchBar=t,this.selectedFacetsManager=null!=e?e:new uo(t),this.suggestManager=null!=i?i:new fo(t)}render(){const t={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return i.html`
2366
- <div class="${n.classMap(t)}" part="container" tabindex="-1">
2366
+ <div class="${r.classMap(t)}" part="container" tabindex="-1">
2367
2367
  <div class="ft-search-bar">
2368
2368
  <div class="ft-search-bar--input-container" part="input-container">
2369
2369
  <div class="ft-search-bar--input-outline" part="input-outline">
@@ -2414,7 +2414,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
2414
2414
  `}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}bo.styles=i.css`
2415
2415
 
2416
2416
  `;class vo{constructor(t,e,i){this.searchBar=t,this.selectedFacetsManager=null!=e?e:new uo(t),this.suggestManager=null!=i?i:new fo(t)}render(){const t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return i.html`
2417
- <div class="${n.classMap(t)}" part="container" tabindex="-1">
2417
+ <div class="${r.classMap(t)}" part="container" tabindex="-1">
2418
2418
  <div class="ft-search-bar" part="search-bar">
2419
2419
  ${this.renderSearchBarLeftAction()}
2420
2420
  <div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
@@ -2482,7 +2482,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
2482
2482
  </div>
2483
2483
  `}onSearchBarKeyDown(t){var e;switch(t.key){case"Escape":this.searchBar.mobileMenuOpen=!1,null===(e=this.searchBar.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestManager.focusFirstSuggestion()}}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}vo.styles=i.css`
2484
2484
 
2485
- `;var go=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 xo={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove",back:"Back"};class yo extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class mo extends CustomEvent{constructor(t){super("change",{detail:t})}}const $o=()=>{};class wo extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new e.ParametrizedLabelResolver(xo,{}),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=l.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.suggestManager=new fo(this),this.selectedFacetsManager=new uo(this),this.desktopSearchBarManager=new vo(this),this.mobileSearchBarManager=new bo(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new e.Debouncer(10),this.updateLocalesDebouncer=new e.Debouncer(10),this.facetsLoaded=!1,this.updateFacetsDebouncer=new e.Debouncer(500),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)))))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}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=>t.values.length>0&&!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:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===l.S}}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}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}focusInput(){this.input?this.input.focus():setTimeout((()=>this.focusInput()),50)}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return i.html`
2485
+ `;var go=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};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 xo={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove",back:"Back"};class yo extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class mo extends CustomEvent{constructor(t){super("change",{detail:t})}}const $o=()=>{};class wo extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new e.ParametrizedLabelResolver(xo,{}),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=l.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.suggestManager=new fo(this),this.selectedFacetsManager=new uo(this),this.desktopSearchBarManager=new vo(this),this.mobileSearchBarManager=new bo(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new e.Debouncer(10),this.updateLocalesDebouncer=new e.Debouncer(10),this.facetsLoaded=!1,this.updateFacetsDebouncer=new e.Debouncer(500),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)))))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}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=>t.values.length>0&&!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:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===l.S}}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}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}focusInput(){this.input?this.input.focus():setTimeout((()=>this.focusInput()),50)}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return i.html`
2486
2486
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2487
2487
  ${this.renderSearchBar()}
2488
2488
  `}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():i.html`
@@ -2512,7 +2512,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
2512
2512
  ></ft-filter>
2513
2513
  </ft-accordion-item>
2514
2514
  `:null}
2515
- ${s.repeat(this.facets,(t=>t.key),(t=>{const e=re(t),o=t.key.replace(":","-"),s=function(t){return oe(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(e);return t.rootNodes.length>0?i.html`
2515
+ ${s.repeat(this.facets,(t=>t.key),(t=>{const e=ne(t),o=t.key.replace(":","-"),s=function(t){return oe(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(e);return t.rootNodes.length>0?i.html`
2516
2516
  <ft-accordion-item data-facet-key="${t.key}">
2517
2517
  <div class="ft-search-bar--filter-label" slot="toggle">
2518
2518
  <ft-typography variant="button">${t.label}</ft-typography>
@@ -2596,7 +2596,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
2596
2596
  @change=${t=>this.contentLocale=t.detail[0]}
2597
2597
  ></ft-filter>
2598
2598
  `:i.nothing}
2599
- ${s.repeat(this.facets,(t=>t.key),(t=>{const e=re(t),o=e.options.some((t=>{var e,i;return(null!==(i=null===(e=t.subOptions)||void 0===e?void 0:e.length)&&void 0!==i?i:0)>0})),s=t.key.replace(":","-");return i.html`
2599
+ ${s.repeat(this.facets,(t=>t.key),(t=>{const e=ne(t),o=e.options.some((t=>{var e,i;return(null!==(i=null===(e=t.subOptions)||void 0===e?void 0:e.length)&&void 0!==i?i:0)>0})),s=t.key.replace(":","-");return i.html`
2600
2600
  <ft-filter
2601
2601
  class="${o?"ft-search-bar--hierarchical-filter":""}"
2602
2602
  part="filters filter filter-${s}"
@@ -2615,11 +2615,11 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
2615
2615
  ></ft-filter>
2616
2616
  `}))}
2617
2617
  </ft-snap-scroll>
2618
- `:i.nothing}async firstUpdated(t){super.firstUpdated(t),this.initApi(),window.addEventListener("storage",(t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()}))}update(t){var i,o,s,n,r;if(t.has("labels")&&(this.labelResolver=new e.ParametrizedLabelResolver(xo,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 e=t=>this.availableContentLocales.some((e=>e.lang===t));e(this.contentLocale)||(this.contentLocale=t.has("contentLocale")&&e(t.get("contentLocale"))?t.get("contentLocale"):null===(i=this.availableContentLocales[0])||void 0===i?void 0:i.lang)}if(t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),t.has("presets")&&(null!==(o=this.presets)&&void 0!==o?o:[]).forEach((t=>t.filters.forEach((t=>t.values=t.values.map((t=>se(t))))))),t.has("presets")||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)}t.has("contentLocale")&&null!=this.contentLocale&&(this.knownFacetLabels=new Map),["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()),t.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","searchFilters","displayedFilters"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.suggestManager.update(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run((()=>this.dispatchEvent(new mo(this.request))))}initSearchData(){this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run((()=>{var t;null===(t=this.api)||void 0===t||t.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[])).then((t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0}))})),this.updateFacetsDebouncer.run((()=>{this.retrieveFacetsFromSearch().then((()=>{this.facetsLoaded=!0,this.facetsInitialized=!0}))}),this.facetsInitialized?500:10)}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0}),this.facetsInitialized?500:10)):this.facets=[])}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()),10))}async retrieveFacetsFromSearch(){var t;const e=new Map;await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets.forEach((t=>{this.knownFacetLabels.set(t.key,t.label),e.set(t.key,t)})))).catch($o)),this.facets=[];for(let t of this.facetsRequest)e.has(t.id)?this.facets.push(e.get(t.id)):this.knownFacetLabels.has(t.id)&&this.facets.push({key:t.id,label:this.knownFacetLabels.get(t.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}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}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 yo(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var t;this.recentSearches=JSON.parse(null!==(t=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==t?t:"[]")}saveRecentSearches(){const t=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:t,storageArea:window.localStorage,url:window.location.href}))}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}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&oe(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=>oe(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}querySelector(t){return this.shadowRoot.querySelector(t)}querySelectorAll(t){return this.shadowRoot.querySelectorAll(t)}renderDesktopFloatingMenu(){return this.forceMenuOpen?i.nothing:i.html`
2618
+ `:i.nothing}async firstUpdated(t){super.firstUpdated(t),this.initApi(),window.addEventListener("storage",(t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()}))}update(t){var i,o,s,r,n;if(t.has("labels")&&(this.labelResolver=new e.ParametrizedLabelResolver(xo,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 e=t=>this.availableContentLocales.some((e=>e.lang===t));e(this.contentLocale)||(this.contentLocale=t.has("contentLocale")&&e(t.get("contentLocale"))?t.get("contentLocale"):null===(i=this.availableContentLocales[0])||void 0===i?void 0:i.lang)}if(t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),t.has("presets")&&(null!==(o=this.presets)&&void 0!==o?o:[]).forEach((t=>t.filters.forEach((t=>t.values=t.values.map((t=>se(t))))))),t.has("presets")||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)}t.has("contentLocale")&&null!=this.contentLocale&&(this.knownFacetLabels=new Map),["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(n=(null!==(r=this.presets)&&void 0!==r?r:[]).find((t=>this.compareRequests(t,this.request))))||void 0===n?void 0:n.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&(this.api=void 0,this.initApi()),t.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","searchFilters","displayedFilters"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.suggestManager.update(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run((()=>this.dispatchEvent(new mo(this.request))))}initSearchData(){this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run((()=>{var t;null===(t=this.api)||void 0===t||t.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[])).then((t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0}))})),this.updateFacetsDebouncer.run((()=>{this.retrieveFacetsFromSearch().then((()=>{this.facetsLoaded=!0,this.facetsInitialized=!0}))}),this.facetsInitialized?500:10)}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0}),this.facetsInitialized?500:10)):this.facets=[])}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()),10))}async retrieveFacetsFromSearch(){var t;const e=new Map;await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets.forEach((t=>{this.knownFacetLabels.set(t.key,t.label),e.set(t.key,t)})))).catch($o)),this.facets=[];for(let t of this.facetsRequest)e.has(t.id)?this.facets.push(e.get(t.id)):this.knownFacetLabels.has(t.id)&&this.facets.push({key:t.id,label:this.knownFacetLabels.get(t.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}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}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 yo(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var t;this.recentSearches=JSON.parse(null!==(t=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==t?t:"[]")}saveRecentSearches(){const t=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:t,storageArea:window.localStorage,url:window.location.href}))}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}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&oe(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=>oe(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}querySelector(t){return this.shadowRoot.querySelector(t)}querySelectorAll(t){return this.shadowRoot.querySelectorAll(t)}renderDesktopFloatingMenu(){return this.forceMenuOpen?i.nothing:i.html`
2619
2619
  <div class="ft-search-bar--floating-panel"
2620
2620
  id="ft-search-bar-floating-panel"
2621
2621
  @keyup=${this.onFloatingContainerKeyUp}
2622
2622
  part="floating-panel"
2623
2623
  tabindex="-1">
2624
2624
  ${this.renderDesktopMenu()}
2625
- </div>`}}wo.elementDefinitions={"ft-accordion":ji,"ft-accordion-item":Ti,"ft-button":He,"ft-chip":Xi,"ft-filter":Ci,"ft-filter-option":Fi,"ft-icon":Le,"ft-ripple":ge,"ft-select":no,"ft-select-option":so,"ft-size-watcher":f,"ft-skeleton":po,"ft-snap-scroll":xi,"ft-tooltip":$e,"ft-typography":ie},wo.styles=[Gt,co,ho,uo.styles,fo.styles],go([o.property({type:Boolean})],wo.prototype,"dense",void 0),go([o.property()],wo.prototype,"mode",void 0),go([o.property({type:Boolean})],wo.prototype,"forceMobileMenuOpen",void 0),go([o.property({type:Boolean})],wo.prototype,"forceMenuOpen",void 0),go([o.property()],wo.prototype,"baseUrl",void 0),go([o.property()],wo.prototype,"apiIntegrationIdentifier",void 0),go([o.property()],wo.prototype,"contentLocale",void 0),go([o.state()],wo.prototype,"availableContentLocales",void 0),go([o.state()],wo.prototype,"availableContentLocalesInitialized",void 0),go([o.property()],wo.prototype,"uiLocale",void 0),go([e.jsonProperty({})],wo.prototype,"labels",void 0),go([e.jsonProperty([])],wo.prototype,"displayedFilters",void 0),go([e.jsonProperty([])],wo.prototype,"presets",void 0),go([o.property({type:String,reflect:!0})],wo.prototype,"selectedPreset",void 0),go([e.jsonProperty([])],wo.prototype,"priors",void 0),go([o.property()],wo.prototype,"searchRequestSerializer",void 0),go([o.state()],wo.prototype,"searchFilters",void 0),go([o.state()],wo.prototype,"sizeCategory",void 0),go([o.state()],wo.prototype,"displayFacets",void 0),go([o.state()],wo.prototype,"mobileMenuOpen",void 0),go([o.state()],wo.prototype,"facets",void 0),go([o.state()],wo.prototype,"facetsInitialized",void 0),go([o.query(".ft-search-bar--container")],wo.prototype,"container",void 0),go([o.query(".ft-search-bar--filters-opener")],wo.prototype,"filtersOpener",void 0),go([o.query(".ft-search-bar--floating-panel")],wo.prototype,"floatingContainer",void 0),go([o.query("ft-snap-scroll.ft-search-bar--filters-container")],wo.prototype,"scrollingFiltersContainer",void 0),go([o.query(".ft-search-bar--input")],wo.prototype,"input",void 0),go([o.state()],wo.prototype,"query",void 0),go([o.state()],wo.prototype,"suggestions",void 0),go([o.state()],wo.prototype,"recentSearches",void 0),go([o.state()],wo.prototype,"scrollToFacet",void 0),go([o.state()],wo.prototype,"api",void 0),go([o.state()],wo.prototype,"facetsLoaded",void 0),e.customElement("ft-search-bar")(wo),t.DEFAULT_LABELS=xo,t.FtSearchBar=wo,t.FtSearchBarCssVariables=ao,t.LaunchSearchEvent=yo,t.SearchStateChangeEvent=mo,t.facetsCss=ho,t.searchBarCss=co}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
2625
+ </div>`}}wo.elementDefinitions={"ft-accordion":ji,"ft-accordion-item":Ti,"ft-button":He,"ft-chip":Xi,"ft-filter":Ci,"ft-filter-option":Fi,"ft-icon":Le,"ft-ripple":ge,"ft-select":ro,"ft-select-option":so,"ft-size-watcher":f,"ft-skeleton":po,"ft-snap-scroll":xi,"ft-tooltip":$e,"ft-typography":ie},wo.styles=[Gt,co,ho,uo.styles,fo.styles],go([o.property({type:Boolean})],wo.prototype,"dense",void 0),go([o.property()],wo.prototype,"mode",void 0),go([o.property({type:Boolean})],wo.prototype,"forceMobileMenuOpen",void 0),go([o.property({type:Boolean})],wo.prototype,"forceMenuOpen",void 0),go([o.property()],wo.prototype,"baseUrl",void 0),go([o.property()],wo.prototype,"apiIntegrationIdentifier",void 0),go([o.property()],wo.prototype,"contentLocale",void 0),go([o.state()],wo.prototype,"availableContentLocales",void 0),go([o.state()],wo.prototype,"availableContentLocalesInitialized",void 0),go([o.property()],wo.prototype,"uiLocale",void 0),go([e.jsonProperty({})],wo.prototype,"labels",void 0),go([e.jsonProperty([])],wo.prototype,"displayedFilters",void 0),go([e.jsonProperty([])],wo.prototype,"presets",void 0),go([o.property({type:String,reflect:!0})],wo.prototype,"selectedPreset",void 0),go([e.jsonProperty([])],wo.prototype,"priors",void 0),go([o.property()],wo.prototype,"searchRequestSerializer",void 0),go([o.state()],wo.prototype,"searchFilters",void 0),go([o.state()],wo.prototype,"sizeCategory",void 0),go([o.state()],wo.prototype,"displayFacets",void 0),go([o.state()],wo.prototype,"mobileMenuOpen",void 0),go([o.state()],wo.prototype,"facets",void 0),go([o.state()],wo.prototype,"facetsInitialized",void 0),go([o.query(".ft-search-bar--container")],wo.prototype,"container",void 0),go([o.query(".ft-search-bar--filters-opener")],wo.prototype,"filtersOpener",void 0),go([o.query(".ft-search-bar--floating-panel")],wo.prototype,"floatingContainer",void 0),go([o.query("ft-snap-scroll.ft-search-bar--filters-container")],wo.prototype,"scrollingFiltersContainer",void 0),go([o.query(".ft-search-bar--input")],wo.prototype,"input",void 0),go([o.state()],wo.prototype,"query",void 0),go([o.state()],wo.prototype,"suggestions",void 0),go([o.state()],wo.prototype,"recentSearches",void 0),go([o.state()],wo.prototype,"scrollToFacet",void 0),go([o.state()],wo.prototype,"api",void 0),go([o.state()],wo.prototype,"facetsLoaded",void 0),e.customElement("ft-search-bar")(wo),t.DEFAULT_LABELS=xo,t.FtSearchBar=wo,t.FtSearchBarCssVariables=ao,t.LaunchSearchEvent=yo,t.SearchStateChangeEvent=mo,t.facetsCss=ho,t.searchBarCss=co}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
@@ -413,7 +413,7 @@ const fi=At(class extends Tt{constructor(t){var e;if(super(t),t.type!==Pt||"clas
413
413
  </div>
414
414
  </div>
415
415
  </div>
416
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,s=o;break;case"bottom":r=e.height,s=o;break;case"left":r=i,s=-this.tooltip.clientWidth;break;case"right":r=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const n=this.tooltip.style;n.left=s+"px",n.top=r+"px",n.maxWidth=`max(${e.width}px, ${Oi.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}zi.elementDefinitions={"ft-typography":ai},zi.styles=Ei,Ci([o()],zi.prototype,"text",void 0),Ci([o({type:Boolean})],zi.prototype,"manual",void 0),Ci([o({type:Boolean})],zi.prototype,"inline",void 0),Ci([o({type:Number})],zi.prototype,"delay",void 0),Ci([o()],zi.prototype,"position",void 0),Ci([function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?c({slot:s,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],zi.prototype,"slotNodes",void 0),Ci([n(".ft-tooltip--container")],zi.prototype,"container",void 0),Ci([n("slot")],zi.prototype,"target",void 0),Ci([n(".ft-tooltip")],zi.prototype,"tooltip",void 0),Ci([n(".ft-tooltip--content")],zi.prototype,"tooltipContent",void 0),Ci([s()],zi.prototype,"visible",void 0),p("ft-tooltip")(zi);const Bi={color:mt.extend("--ft-loader-color",wt.colorPrimary),size:mt.create("--ft-loader-size","SIZE","80px")},Ri=y`
416
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,s=o;break;case"bottom":r=e.height,s=o;break;case"left":r=i,s=-this.tooltip.clientWidth;break;case"right":r=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const n=this.tooltip.style;n.left=s+"px",n.top=r+"px",n.maxWidth=`max(${e.width}px, ${Oi.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}zi.elementDefinitions={"ft-typography":ai},zi.styles=Ei,Ci([o()],zi.prototype,"text",void 0),Ci([o({type:Boolean})],zi.prototype,"manual",void 0),Ci([o({type:Boolean})],zi.prototype,"inline",void 0),Ci([o({type:Number})],zi.prototype,"delay",void 0),Ci([o()],zi.prototype,"position",void 0),Ci([function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?c({slot:s,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],zi.prototype,"slotNodes",void 0),Ci([n(".ft-tooltip--container")],zi.prototype,"container",void 0),Ci([n("slot")],zi.prototype,"target",void 0),Ci([n(".ft-tooltip")],zi.prototype,"tooltip",void 0),Ci([n(".ft-tooltip--content")],zi.prototype,"tooltipContent",void 0),Ci([s()],zi.prototype,"visible",void 0),p("ft-tooltip")(zi);const Bi={color:mt.extend("--ft-loader-color",wt.colorPrimary),size:mt.create("--ft-loader-size","SIZE","80px")},Ri=y`
417
417
  :host {
418
418
  line-height: 0;
419
419
  }
@@ -1959,7 +1959,7 @@ class Mi extends Tt{constructor(t){if(super(t),this.et=tt,t.type!==Ut)throw Erro
1959
1959
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
1960
1960
  <span>${t.label}</span>
1961
1961
  </div>
1962
- `}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,r;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(r=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var e,i;if(!h(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}bs.elementDefinitions={"ft-input-label":hs,"ft-typography":ai,"ft-ripple":Si,"ft-icon":_i},bs.styles=[ei,ii,ds],fs([o({type:String})],bs.prototype,"label",void 0),fs([o({type:String})],bs.prototype,"helper",void 0),fs([o({type:Boolean})],bs.prototype,"outlined",void 0),fs([o({type:Boolean})],bs.prototype,"disabled",void 0),fs([o({type:Boolean})],bs.prototype,"error",void 0),fs([o({type:Boolean})],bs.prototype,"fixedMenuPosition",void 0),fs([o({type:Array})],bs.prototype,"options",void 0),fs([s()],bs.prototype,"selectedOption",void 0),fs([s()],bs.prototype,"optionsDisplayed",void 0),fs([s()],bs.prototype,"focusOptions",void 0),fs([n(".ft-select")],bs.prototype,"container",void 0),fs([n(".ft-select--options")],bs.prototype,"optionsMenu",void 0),fs([n(".ft-select--input-panel")],bs.prototype,"mainPanel",void 0),fs([n(".ft-select--option:first-child")],bs.prototype,"firstOption",void 0),fs([n(".ft-select--option:focus")],bs.prototype,"focusedOption",void 0),fs([n(".ft-select--option.ft-select--option-selected")],bs.prototype,"selectedOptionElement",void 0),fs([n(".ft-select--option:last-child")],bs.prototype,"lastOption",void 0),fs([n("slot")],bs.prototype,"optionsSlot",void 0),p("ft-select")(bs),p("ft-select-option")(us);const vs={display:mt.create("--ft-skeleton--display","DISPLAY","block"),width:mt.create("--ft-skeleton--width","SIZE","100%"),height:mt.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:mt.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:mt.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:mt.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:mt.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:mt.external(wt.borderRadiusM,"Design system")},gs=y`
1962
+ `}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,r;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(r=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var e,i;if(!h(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}bs.elementDefinitions={"ft-input-label":hs,"ft-typography":ai,"ft-ripple":Si,"ft-icon":_i},bs.styles=[ei,ii,ds],fs([o({type:String})],bs.prototype,"label",void 0),fs([o({type:String})],bs.prototype,"helper",void 0),fs([o({type:Boolean})],bs.prototype,"outlined",void 0),fs([o({type:Boolean})],bs.prototype,"disabled",void 0),fs([o({type:Boolean})],bs.prototype,"error",void 0),fs([o({type:Boolean})],bs.prototype,"fixedMenuPosition",void 0),fs([o({type:Array})],bs.prototype,"options",void 0),fs([s()],bs.prototype,"selectedOption",void 0),fs([s()],bs.prototype,"optionsDisplayed",void 0),fs([s()],bs.prototype,"focusOptions",void 0),fs([n(".ft-select")],bs.prototype,"container",void 0),fs([n(".ft-select--options")],bs.prototype,"optionsMenu",void 0),fs([n(".ft-select--input-panel")],bs.prototype,"mainPanel",void 0),fs([n(".ft-select--option:first-child")],bs.prototype,"firstOption",void 0),fs([n(".ft-select--option:focus")],bs.prototype,"focusedOption",void 0),fs([n(".ft-select--option.ft-select--option-selected")],bs.prototype,"selectedOptionElement",void 0),fs([n(".ft-select--option:last-child")],bs.prototype,"lastOption",void 0),fs([n("slot")],bs.prototype,"optionsSlot",void 0),p("ft-select")(bs),p("ft-select-option")(us);const vs={display:mt.create("--ft-skeleton--display","DISPLAY","block"),width:mt.create("--ft-skeleton--width","SIZE","100%"),height:mt.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:mt.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:mt.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:mt.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:mt.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:mt.external(wt.borderRadiusM,"Design system")},gs=y`
1963
1963
  :host {
1964
1964
  width: ${vs.width};
1965
1965
  height: ${vs.height};
@@ -2448,7 +2448,7 @@ class Mi extends Tt{constructor(t){if(super(t),this.et=tt,t.type!==Ut)throw Erro
2448
2448
  `}))}))}
2449
2449
  ${t?Q`
2450
2450
  <ft-chip part="selected-filters mobile-filters-opener"
2451
- icon="add"
2451
+ icon="plus"
2452
2452
  clickable
2453
2453
  @click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
2454
2454
  ${this.searchBar.labelResolver.resolve("filtersButton")}
@@ -55,7 +55,7 @@ class FacetsChipsManager {
55
55
  })}
56
56
  ${isMobile ? html `
57
57
  <ft-chip part="selected-filters mobile-filters-opener"
58
- icon="add"
58
+ icon="plus"
59
59
  clickable
60
60
  @click=${() => {
61
61
  this.searchBar.mobileMenuOpen = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-bar",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "Search bar component using Fluid Topics public API",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,18 +19,18 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-accordion": "1.0.0",
23
- "@fluid-topics/ft-button": "1.0.0",
24
- "@fluid-topics/ft-chip": "1.0.0",
25
- "@fluid-topics/ft-filter": "1.0.0",
26
- "@fluid-topics/ft-icon": "1.0.0",
27
- "@fluid-topics/ft-select": "1.0.0",
28
- "@fluid-topics/ft-size-watcher": "1.0.0",
29
- "@fluid-topics/ft-skeleton": "1.0.0",
30
- "@fluid-topics/ft-snap-scroll": "1.0.0",
31
- "@fluid-topics/ft-tooltip": "1.0.0",
32
- "@fluid-topics/ft-typography": "1.0.0",
33
- "@fluid-topics/ft-wc-utils": "1.0.0",
22
+ "@fluid-topics/ft-accordion": "1.0.3",
23
+ "@fluid-topics/ft-button": "1.0.3",
24
+ "@fluid-topics/ft-chip": "1.0.3",
25
+ "@fluid-topics/ft-filter": "1.0.3",
26
+ "@fluid-topics/ft-icon": "1.0.3",
27
+ "@fluid-topics/ft-select": "1.0.3",
28
+ "@fluid-topics/ft-size-watcher": "1.0.3",
29
+ "@fluid-topics/ft-skeleton": "1.0.3",
30
+ "@fluid-topics/ft-snap-scroll": "1.0.3",
31
+ "@fluid-topics/ft-tooltip": "1.0.3",
32
+ "@fluid-topics/ft-typography": "1.0.3",
33
+ "@fluid-topics/ft-wc-utils": "1.0.3",
34
34
  "lit": "2.7.2"
35
35
  },
36
36
  "devDependencies": {
@@ -39,5 +39,5 @@
39
39
  "peerDependencies": {
40
40
  "@fluid-topics/public-api": "1.0.33"
41
41
  },
42
- "gitHead": "90895771e0ea740f1a0d972b9fd3796051757255"
42
+ "gitHead": "8c7b95fa60f5ac8dd10301abb40dd62ff4f9b335"
43
43
  }