@fluid-topics/ft-search-bar 0.2.14 → 0.2.17

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.
@@ -21,13 +21,13 @@
21
21
  .ft-size-watcher--local .ft-size-watcher--watcher {
22
22
  width: 100%;
23
23
  }
24
- `,c([o.property({type:Number})],p.prototype,"debounceTimeout",void 0),c([o.property({type:Boolean})],p.prototype,"local",void 0),c([o.property({type:Number,reflect:!0})],p.prototype,"size",void 0),c([o.property({type:String,reflect:!0})],p.prototype,"category",void 0),c([o.query(".ft-size-watcher--watcher")],p.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(p);const f=globalThis.trustedTypes,d=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,u=`lit$${(Math.random()+"").slice(9)}$`,b="?"+u,v=`<${b}>`,g=document,x=(t="")=>g.createComment(t),y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,k=/>/g,S=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,z=/'/g,O=/"/g,C=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),E=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),D=new WeakMap,L=g.createTreeWalker(g,129,null,!1),F=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=$;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===$?"!--"===a[1]?r=w:void 0!==a[1]?r=k:void 0!==a[2]?(C.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=S):void 0!==a[3]&&(r=S):r===S?">"===a[0]?(r=null!=s?s:$,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?S:'"'===a[3]?O:z):r===O||r===z?r=S:r===w||r===k?r=$:(r=S,s=void 0);const p=r===S&&t[e+1].startsWith("/>")?" ":"";n+=r===$?i+v:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+u+p):i+u+(-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!==d?d.createHTML(l):l,o]};class j{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]=F(t,e);if(this.el=j.createElement(a,i),L.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=L.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(u)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(u),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?R:"?"===e[1]?Z:"@"===e[1]?_:N})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(C.test(o.tagName)){const t=o.textContent.split(u),e=t.length-1;if(e>0){o.textContent=f?f.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],x()),L.nextNode(),l.push({type:2,index:++s});o.append(t[e],x())}}}else if(8===o.nodeType)if(o.data===b)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(u,t+1));)l.push({type:7,index:s}),t+=u.length-1}s++}}static createElement(t,e){const i=g.createElement("template");return i.innerHTML=t,i}}function M(t,e,i=t,o){var s,n,r,l;if(e===E)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const c=y(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=M(t,a._$AS(t,e.values),a,o)),e}class A{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:g).importNode(i,!0);L.currentNode=s;let n=L.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new T(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new U(n,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=L.nextNode(),r++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class T{constructor(t,e,i,o){var s;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),y(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==E&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return m(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==I&&y(this._$AH)?this._$AA.nextSibling.data=t:this.k(g.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=j.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new A(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new j(t)),e}S(t){m(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 T(this.M(x()),this.M(x()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class N{constructor(t,e,i,o,s){this.type=1,this._$AH=I,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=I}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=M(this,t,e,0),n=!y(t)||t!==this._$AH&&t!==E,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=M(this,o[i+r],e,r),l===E&&(l=this._$AH[r]),n||(n=!y(l)||l!==this._$AH[r]),l===I?t=I:t!==I&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.C(t)}C(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends N{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===I?void 0:t}}const P=f?f.emptyScript:"";class Z extends N{constructor(){super(...arguments),this.type=4}C(t){t&&t!==I?this.element.setAttribute(this.name,P):this.element.removeAttribute(this.name)}}class _ extends N{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=M(this,t,e,0))&&void 0!==i?i:I)===E)return;const o=this._$AH,s=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==I&&(o===I||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var 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 U{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){M(this,t)}}const H=window.litHtmlPolyfillSupport;null==H||H(j,T),(null!==(a=globalThis.litHtmlVersions)&&void 0!==a?a:globalThis.litHtmlVersions=[]).push("2.2.4");
24
+ `,c([o.property({type:Number})],p.prototype,"debounceTimeout",void 0),c([o.property({type:Boolean})],p.prototype,"local",void 0),c([o.property({type:Number,reflect:!0})],p.prototype,"size",void 0),c([o.property({type:String,reflect:!0})],p.prototype,"category",void 0),c([o.query(".ft-size-watcher--watcher")],p.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(p);const f=globalThis.trustedTypes,d=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,u=`lit$${(Math.random()+"").slice(9)}$`,b="?"+u,v=`<${b}>`,g=document,x=(t="")=>g.createComment(t),y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,w=/>/g,S=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,z=/'/g,O=/"/g,C=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),E=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),L=new WeakMap,D=g.createTreeWalker(g,129,null,!1),F=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=$;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===$?"!--"===a[1]?r=k:void 0!==a[1]?r=w:void 0!==a[2]?(C.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=S):void 0!==a[3]&&(r=S):r===S?">"===a[0]?(r=null!=s?s:$,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?S:'"'===a[3]?O:z):r===O||r===z?r=S:r===k||r===w?r=$:(r=S,s=void 0);const p=r===S&&t[e+1].startsWith("/>")?" ":"";n+=r===$?i+v:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+u+p):i+u+(-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!==d?d.createHTML(l):l,o]};class j{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]=F(t,e);if(this.el=j.createElement(a,i),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=D.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(u)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(u),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?T:"?"===e[1]?Z:"@"===e[1]?U:N})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(C.test(o.tagName)){const t=o.textContent.split(u),e=t.length-1;if(e>0){o.textContent=f?f.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],x()),D.nextNode(),l.push({type:2,index:++s});o.append(t[e],x())}}}else if(8===o.nodeType)if(o.data===b)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(u,t+1));)l.push({type:7,index:s}),t+=u.length-1}s++}}static createElement(t,e){const i=g.createElement("template");return i.innerHTML=t,i}}function M(t,e,i=t,o){var s,n,r,l;if(e===E)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const c=y(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=M(t,a._$AS(t,e.values),a,o)),e}class P{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:g).importNode(i,!0);D.currentNode=s;let n=D.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new A(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new _(n,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=D.nextNode(),r++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class A{constructor(t,e,i,o){var s;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),y(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==E&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return m(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==I&&y(this._$AH)?this._$AA.nextSibling.data=t:this.k(g.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=j.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new P(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new j(t)),e}S(t){m(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 A(this.M(x()),this.M(x()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class N{constructor(t,e,i,o,s){this.type=1,this._$AH=I,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=I}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=M(this,t,e,0),n=!y(t)||t!==this._$AH&&t!==E,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=M(this,o[i+r],e,r),l===E&&(l=this._$AH[r]),n||(n=!y(l)||l!==this._$AH[r]),l===I?t=I:t!==I&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.C(t)}C(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class T extends N{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===I?void 0:t}}const R=f?f.emptyScript:"";class Z extends N{constructor(){super(...arguments),this.type=4}C(t){t&&t!==I?this.element.setAttribute(this.name,R):this.element.removeAttribute(this.name)}}class U extends N{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=M(this,t,e,0))&&void 0!==i?i:I)===E)return;const o=this._$AH,s=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==I&&(o===I||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var 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 _{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){M(this,t)}}const H=window.litHtmlPolyfillSupport;null==H||H(j,A),(null!==(a=globalThis.litHtmlVersions)&&void 0!==a?a:globalThis.litHtmlVersions=[]).push("2.2.4");
25
25
  /**
26
26
  * @license
27
27
  * Copyright 2020 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
29
  */
30
- const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===K)return null===(i=t)||void 0===i?void 0:i._$litStatic$},V=t=>({_$litStatic$:t,r:K}),W=new Map,G=(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=q(n));)a+=s+e[++c],h=!0;l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=W.get(t))&&(r.raw=r,W.set(t,e=r)),i=l}return t(e,...i)})(B);var X,Y=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(X||(X={}));const J=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Q=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),tt={fontFamily:Q,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=e.FtCssVariable.extend("--ft-typography-title-font-family",J),it=e.FtCssVariable.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=e.FtCssVariable.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),st=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),nt=e.FtCssVariable.extend("--ft-typography-title-line-height",tt.lineHeight,"24px"),rt=e.FtCssVariable.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",J),at=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),ct=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),ht=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),pt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"24px"),ft=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",Q),ut=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),bt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),vt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"24px"),xt=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",Q),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),wt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),kt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"24px"),St=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),zt={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",Q),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",tt.lineHeight,"24px"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit")},Ot={fontFamily:e.FtCssVariable.extend("--ft-typography-body2-font-family",Q),fontSize:e.FtCssVariable.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body2-line-height",tt.lineHeight,"20px"),textTransform:e.FtCssVariable.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit")},Ct={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",Q),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",tt.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit")},Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",Q),Et=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Lt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"16px"),Ft=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),jt=e.FtCssVariable.extend("--ft-typography-overline-font-family",Q),Mt=e.FtCssVariable.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),At=e.FtCssVariable.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),Tt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),Nt=e.FtCssVariable.extend("--ft-typography-overline-line-height",tt.lineHeight,"16px"),Rt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),Pt={fontFamily:e.FtCssVariable.extend("--ft-typography-button-font-family",Q),fontSize:e.FtCssVariable.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),fontWeight:e.FtCssVariable.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),letterSpacing:e.FtCssVariable.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),lineHeight:e.FtCssVariable.extend("--ft-typography-button-line-height",tt.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase")},Zt=i.css`
30
+ const V=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===V)return null===(i=t)||void 0===i?void 0:i._$litStatic$},q=t=>({_$litStatic$:t,r:V}),W=new Map,G=(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=K(n));)a+=s+e[++c],h=!0;l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=W.get(t))&&(r.raw=r,W.set(t,e=r)),i=l}return t(e,...i)})(B);var X,Y=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(X||(X={}));const J=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Q=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),tt={fontFamily:Q,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=e.FtCssVariable.extend("--ft-typography-title-font-family",J),it=e.FtCssVariable.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=e.FtCssVariable.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),st=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),nt=e.FtCssVariable.extend("--ft-typography-title-line-height",tt.lineHeight,"1.2"),rt=e.FtCssVariable.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",J),at=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),ct=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),ht=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),pt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"1.7"),ft=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",Q),ut=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),bt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),vt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"1.5"),xt=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",Q),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),kt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),wt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"1.7"),St=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),zt={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",Q),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",tt.lineHeight,"1.5"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit")},Ot={fontFamily:e.FtCssVariable.extend("--ft-typography-body2-font-family",Q),fontSize:e.FtCssVariable.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body2-line-height",tt.lineHeight,"1.4"),textTransform:e.FtCssVariable.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit")},Ct={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",Q),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",tt.lineHeight,"1.33"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit")},Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",Q),Et=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Lt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"1.6"),Ft=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),jt=e.FtCssVariable.extend("--ft-typography-overline-font-family",Q),Mt=e.FtCssVariable.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Pt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),At=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),Nt=e.FtCssVariable.extend("--ft-typography-overline-line-height",tt.lineHeight,"1.6"),Tt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),Rt={fontFamily:e.FtCssVariable.extend("--ft-typography-button-font-family",Q),fontSize:e.FtCssVariable.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),fontWeight:e.FtCssVariable.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),letterSpacing:e.FtCssVariable.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),lineHeight:e.FtCssVariable.extend("--ft-typography-button-line-height",tt.lineHeight,"1.15"),textTransform:e.FtCssVariable.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase")},Zt=i.css`
31
31
  .ft-typography--title {
32
32
  font-family: ${et};
33
33
  font-size: ${it};
@@ -36,7 +36,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
36
36
  line-height: ${nt};
37
37
  text-transform: ${rt};
38
38
  }
39
- `,_t=i.css`
39
+ `,Ut=i.css`
40
40
  .ft-typography--title-dense {
41
41
  font-family: ${lt};
42
42
  font-size: ${at};
@@ -45,7 +45,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
45
45
  line-height: ${pt};
46
46
  text-transform: ${ft};
47
47
  }
48
- `,Ut=i.css`
48
+ `,_t=i.css`
49
49
  .ft-typography--subtitle1 {
50
50
  font-family: ${dt};
51
51
  font-size: ${ut};
@@ -59,12 +59,12 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
59
59
  font-family: ${yt};
60
60
  font-size: ${mt};
61
61
  font-weight: ${$t};
62
- letter-spacing: ${wt};
63
- line-height: ${kt};
62
+ letter-spacing: ${kt};
63
+ line-height: ${wt};
64
64
  text-transform: ${St};
65
65
  }
66
66
 
67
- `,Kt=i.css`
67
+ `,Vt=i.css`
68
68
  .ft-typography--body1 {
69
69
  font-family: ${zt.fontFamily};
70
70
  font-size: ${zt.fontSize};
@@ -73,7 +73,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
73
73
  line-height: ${zt.lineHeight};
74
74
  text-transform: ${zt.textTransform};
75
75
  }
76
- `,qt=i.css`
76
+ `,Kt=i.css`
77
77
  .ft-typography--body2 {
78
78
  font-family: ${Ot.fontFamily};
79
79
  font-size: ${Ot.fontSize};
@@ -82,7 +82,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
82
82
  line-height: ${Ot.lineHeight};
83
83
  text-transform: ${Ot.textTransform};
84
84
  }
85
- `,Vt=i.css`
85
+ `,qt=i.css`
86
86
  .ft-typography--caption {
87
87
  font-family: ${Ct.fontFamily};
88
88
  font-size: ${Ct.fontSize};
@@ -96,36 +96,36 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
96
96
  font-family: ${Bt};
97
97
  font-size: ${Et};
98
98
  font-weight: ${It};
99
- letter-spacing: ${Dt};
100
- line-height: ${Lt};
99
+ letter-spacing: ${Lt};
100
+ line-height: ${Dt};
101
101
  text-transform: ${Ft};
102
102
  }
103
103
  `,Gt=i.css`
104
104
  .ft-typography--overline {
105
105
  font-family: ${jt};
106
106
  font-size: ${Mt};
107
- font-weight: ${At};
108
- letter-spacing: ${Tt};
107
+ font-weight: ${Pt};
108
+ letter-spacing: ${At};
109
109
  line-height: ${Nt};
110
- text-transform: ${Rt};
110
+ text-transform: ${Tt};
111
111
  }
112
112
  `,Xt=i.css`
113
113
  .ft-typography--button {
114
- font-family: ${Pt.fontFamily};
115
- font-size: ${Pt.fontSize};
116
- font-weight: ${Pt.fontWeight};
117
- letter-spacing: ${Pt.letterSpacing};
118
- line-height: ${Pt.lineHeight};
119
- text-transform: ${Pt.textTransform};
114
+ font-family: ${Rt.fontFamily};
115
+ font-size: ${Rt.fontSize};
116
+ font-weight: ${Rt.fontWeight};
117
+ letter-spacing: ${Rt.letterSpacing};
118
+ line-height: ${Rt.lineHeight};
119
+ text-transform: ${Rt.textTransform};
120
120
  }
121
121
  `;class Yt extends e.FtLitElement{constructor(){super(...arguments),this.variant=X.body1}render(){return this.element?G`
122
- <${V(this.element)}
122
+ <${q(this.element)}
123
123
  class="ft-typography ft-typography--${this.variant}">
124
124
  <slot></slot>
125
- </${V(this.element)}>
125
+ </${q(this.element)}>
126
126
  `:G`
127
127
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
128
- `}}function Jt(t,e){return t.flatMap((t=>[t,...Jt(e(t),e)]))}function Qt(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function te(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>te(e,t.selected))),value:t.value}}function ee(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>te(t,!1)))}}Yt.styles=[Zt,_t,Ut,Ht,Kt,qt,Vt,Wt,Gt,Xt,i.css`
128
+ `}}function Jt(t,e){return t.flatMap((t=>[t,...Jt(e(t),e)]))}function Qt(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function te(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>te(e,t.selected))),value:t.value}}function ee(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>te(t,!1)))}}Yt.styles=[Zt,Ut,_t,Ht,Vt,Kt,qt,Wt,Gt,Xt,i.css`
129
129
  .ft-typography {
130
130
  vertical-align: inherit;
131
131
  }
@@ -235,7 +235,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
235
235
  opacity: ${se.opacityContentOnSurfacePressed};
236
236
  transform: translate(-50%, -50%) scale(1);
237
237
  }
238
- `,ie([o.property({type:Boolean})],pe.prototype,"primary",void 0),ie([o.property({type:Boolean})],pe.prototype,"secondary",void 0),ie([o.property({type:Boolean})],pe.prototype,"unbounded",void 0),ie([o.property({type:Boolean})],pe.prototype,"activated",void 0),ie([o.property({type:Boolean})],pe.prototype,"selected",void 0),ie([o.property({type:Boolean})],pe.prototype,"disabled",void 0),ie([o.state()],pe.prototype,"hovered",void 0),ie([o.state()],pe.prototype,"focused",void 0),ie([o.state()],pe.prototype,"pressed",void 0),ie([o.state()],pe.prototype,"rippling",void 0),ie([o.state()],pe.prototype,"rippleSize",void 0),ie([o.state()],pe.prototype,"originX",void 0),ie([o.state()],pe.prototype,"originY",void 0),ie([o.query(".ft-ripple")],pe.prototype,"ripple",void 0),ie([o.query(".ft-ripple--effect")],pe.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(pe);var fe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const de=e.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),ue=e.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),be=e.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),ve=e.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),ge=e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system");class xe extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}render(){return i.html`
238
+ `,ie([o.property({type:Boolean})],pe.prototype,"primary",void 0),ie([o.property({type:Boolean})],pe.prototype,"secondary",void 0),ie([o.property({type:Boolean})],pe.prototype,"unbounded",void 0),ie([o.property({type:Boolean})],pe.prototype,"activated",void 0),ie([o.property({type:Boolean})],pe.prototype,"selected",void 0),ie([o.property({type:Boolean})],pe.prototype,"disabled",void 0),ie([o.state()],pe.prototype,"hovered",void 0),ie([o.state()],pe.prototype,"focused",void 0),ie([o.state()],pe.prototype,"pressed",void 0),ie([o.state()],pe.prototype,"rippling",void 0),ie([o.state()],pe.prototype,"rippleSize",void 0),ie([o.state()],pe.prototype,"originX",void 0),ie([o.state()],pe.prototype,"originY",void 0),ie([o.query(".ft-ripple")],pe.prototype,"ripple",void 0),ie([o.query(".ft-ripple--effect")],pe.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(pe);var fe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const de={distance:e.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),color:e.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:e.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:e.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system")};class ue extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}render(){return i.html`
239
239
  <div part="container"
240
240
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
241
241
  @mouseenter=${this.onHover}
@@ -250,7 +250,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
250
250
  </div>
251
251
  <slot></slot>
252
252
  </div>
253
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=e.height+"px",s.left=o+"px";break;case"left":s.top=i+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=i+"px",s.left=e.width+"px"}s.maxWidth=Math.max(e.width,150)+"px"}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())}}xe.elementDefinitions={"ft-typography":Yt},xe.styles=i.css`
253
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=e.height+"px",s.left=o+"px";break;case"left":s.top=i+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=i+"px",s.left=e.width+"px"}s.maxWidth=Math.max(e.width,150)+"px"}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())}}ue.elementDefinitions={"ft-typography":Yt},ue.styles=i.css`
254
254
  .ft-tooltip--container {
255
255
  display: block;
256
256
  position: relative;
@@ -268,21 +268,21 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
268
268
  width: max-content;
269
269
  max-width: 150px;
270
270
  text-align: center;
271
- padding: ${de};
272
- z-index: ${ve};
271
+ padding: ${de.distance};
272
+ z-index: ${de.zIndex};
273
273
  }
274
274
 
275
275
  .ft-tooltip--content {
276
276
  padding: 4px 8px;
277
- border-radius: ${ge};
278
- background-color: ${be};
279
- color: ${ue};
277
+ border-radius: ${de.borderRadiusS};
278
+ background-color: ${de.backgroundColor};
279
+ color: ${de.color};
280
280
  top: -500px;
281
281
  left: -500px;
282
282
  position: relative;
283
283
  word-break: break-word;
284
284
  }
285
- `,fe([o.property()],xe.prototype,"text",void 0),fe([o.property({type:Boolean})],xe.prototype,"manual",void 0),fe([o.property({type:Boolean})],xe.prototype,"inline",void 0),fe([o.property({type:Number})],xe.prototype,"delay",void 0),fe([o.property()],xe.prototype,"position",void 0),fe([o.queryAssignedNodes("",!0)],xe.prototype,"slotNodes",void 0),fe([o.query(".ft-tooltip--container")],xe.prototype,"container",void 0),fe([o.query("slot")],xe.prototype,"target",void 0),fe([o.query(".ft-tooltip")],xe.prototype,"tooltip",void 0),fe([o.query(".ft-tooltip--content")],xe.prototype,"tooltipContent",void 0),fe([o.state()],xe.prototype,"visible",void 0),e.customElement("ft-tooltip")(xe);const ye={color:e.FtCssVariable.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class me extends e.FtLitElement{static get styles(){return i.css`
285
+ `,fe([o.property()],ue.prototype,"text",void 0),fe([o.property({type:Boolean})],ue.prototype,"manual",void 0),fe([o.property({type:Boolean})],ue.prototype,"inline",void 0),fe([o.property({type:Number})],ue.prototype,"delay",void 0),fe([o.property()],ue.prototype,"position",void 0),fe([o.queryAssignedNodes("",!0)],ue.prototype,"slotNodes",void 0),fe([o.query(".ft-tooltip--container")],ue.prototype,"container",void 0),fe([o.query("slot")],ue.prototype,"target",void 0),fe([o.query(".ft-tooltip")],ue.prototype,"tooltip",void 0),fe([o.query(".ft-tooltip--content")],ue.prototype,"tooltipContent",void 0),fe([o.state()],ue.prototype,"visible",void 0),e.customElement("ft-tooltip")(ue);const be={color:e.FtCssVariable.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class ve extends e.FtLitElement{static get styles(){return i.css`
286
286
  :host {
287
287
  line-height: 0;
288
288
  }
@@ -291,8 +291,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
291
291
  display: inline-block;
292
292
  position: relative;
293
293
 
294
- width: ${ye.size};
295
- height: ${ye.size};
294
+ width: ${be.size};
295
+ height: ${be.size};
296
296
  }
297
297
 
298
298
  .ft-loader div {
@@ -301,7 +301,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
301
301
  width: 25%;
302
302
  height: 25%;
303
303
  border-radius: 50%;
304
- background: ${ye.color};
304
+ background: ${be.color};
305
305
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
306
306
  }
307
307
 
@@ -348,7 +348,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
348
348
  transform: translate(0, 0);
349
349
  }
350
350
  100% {
351
- transform: translate(calc(0.35 * ${ye.size}), 0);
351
+ transform: translate(calc(0.35 * ${be.size}), 0);
352
352
  }
353
353
  }
354
354
  `}render(){return i.html`
@@ -358,21 +358,23 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
358
358
  <div></div>
359
359
  <div></div>
360
360
  </div>
361
- `}}var $e,we;e.customElement("ft-loader")(me),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}($e||($e={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(we||(we={}));const ke=new Map([...["abw"].map((t=>[t,we.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,we.AUDIO])),...["avi"].map((t=>[t,we.AVI])),...["chm","xhs"].map((t=>[t,we.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,we.CODE])),...["csv"].map((t=>[t,we.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,we.DITA])),...["epub"].map((t=>[t,we.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,we.EXCEL])),...["flac"].map((t=>[t,we.FLAC])),...["gif"].map((t=>[t,we.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,we.GZIP])),...["html","htm","xhtml"].map((t=>[t,we.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,we.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,we.JPEG])),...["json"].map((t=>[t,we.JSON])),...["m4a","m4p"].map((t=>[t,we.M4A])),...["mov","qt"].map((t=>[t,we.MOV])),...["mp3"].map((t=>[t,we.MP3])),...["mp4","m4v"].map((t=>[t,we.MP4])),...["ogg","oga"].map((t=>[t,we.OGG])),...["pdf","ps"].map((t=>[t,we.PDF])),...["png"].map((t=>[t,we.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,we.POWERPOINT])),...["rar"].map((t=>[t,we.RAR])),...["stp"].map((t=>[t,we.STP])),...["txt","rtf","md","mdown"].map((t=>[t,we.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,we.VIDEO])),...["wav"].map((t=>[t,we.WAV])),...["wma"].map((t=>[t,we.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,we.WORD])),...["xml","xsl","rdf"].map((t=>[t,we.XML])),...["yaml","yml","x-yaml"].map((t=>[t,we.YAML])),...["zip"].map((t=>[t,we.ZIP]))]),Se=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var ze,Oe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ze||(ze={}));const Ce={size:e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class Be extends e.FtLitElement{constructor(){super(...arguments),this.variant=ze.fluid_topics}render(){return i.html`
361
+ `}}var ge,xe;e.customElement("ft-loader")(ve),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(ge||(ge={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(xe||(xe={}));const ye=new Map([...["abw"].map((t=>[t,xe.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,xe.AUDIO])),...["avi"].map((t=>[t,xe.AVI])),...["chm","xhs"].map((t=>[t,xe.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,xe.CODE])),...["csv"].map((t=>[t,xe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xe.DITA])),...["epub"].map((t=>[t,xe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xe.EXCEL])),...["flac"].map((t=>[t,xe.FLAC])),...["gif"].map((t=>[t,xe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xe.GZIP])),...["html","htm","xhtml"].map((t=>[t,xe.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,xe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xe.JPEG])),...["json"].map((t=>[t,xe.JSON])),...["m4a","m4p"].map((t=>[t,xe.M4A])),...["mov","qt"].map((t=>[t,xe.MOV])),...["mp3"].map((t=>[t,xe.MP3])),...["mp4","m4v"].map((t=>[t,xe.MP4])),...["ogg","oga"].map((t=>[t,xe.OGG])),...["pdf","ps"].map((t=>[t,xe.PDF])),...["png"].map((t=>[t,xe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xe.POWERPOINT])),...["rar"].map((t=>[t,xe.RAR])),...["stp"].map((t=>[t,xe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xe.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,xe.VIDEO])),...["wav"].map((t=>[t,xe.WAV])),...["wma"].map((t=>[t,xe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xe.WORD])),...["xml","xsl","rdf"].map((t=>[t,xe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xe.YAML])),...["zip"].map((t=>[t,xe.ZIP]))]),me=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var $e,ke=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}($e||($e={}));const we={size:e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class Se extends e.FtLitElement{constructor(){super(...arguments),this.variant=$e.fluid_topics}render(){return i.html`
362
362
  <i class="ft-icon ${"ft-icon--"+this.variant}">
363
363
  ${r.unsafeHTML(this.getIcon())}
364
364
  <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
365
365
  </i>
366
- `}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:""}getIcon(){var t,e;let o=this.textContent;return this.variant===ze.file_format?null!==(t=we[o.toUpperCase()])&&void 0!==t?t:o:this.variant===ze.fluid_topics?null!==(e=$e[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}Be.elementDefinitions={},Be.styles=i.css`
367
- :host, i.ft-icon {
366
+ `}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:""}getIcon(){var t,e;let o=this.textContent;return this.variant===$e.file_format?null!==(t=xe[o.toUpperCase()])&&void 0!==t?t:o:this.variant===$e.fluid_topics?null!==(e=ge[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}Se.elementDefinitions={},Se.styles=i.css`
367
+ :host {
368
368
  display: inline-block;
369
- width: ${Ce.size};
370
- height: ${Ce.size};
369
+ }
370
+ :host, i.ft-icon {
371
+ width: ${we.size};
372
+ height: ${we.size};
371
373
  text-align: center;
372
374
  }
373
375
 
374
376
  i.ft-icon {
375
- font-size: ${Ce.size};
377
+ font-size: ${we.size};
376
378
  line-height: 1;
377
379
  font-weight: normal;
378
380
  text-transform: none;
@@ -386,17 +388,17 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
386
388
  }
387
389
 
388
390
  .ft-icon--fluid-topics {
389
- font-family: ${Ce.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
391
+ font-family: ${we.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
390
392
  }
391
393
 
392
394
  .ft-icon--file-format {
393
- font-family: ${Ce.fileFormatFontFamily}, ft-mime, sans-serif;
395
+ font-family: ${we.fileFormatFontFamily}, ft-mime, sans-serif;
394
396
  }
395
397
 
396
398
  .ft-icon--material {
397
- font-family: ${Ce.materialFontFamily}, "Material Icons", sans-serif;
399
+ font-family: ${we.materialFontFamily}, "Material Icons", sans-serif;
398
400
  }
399
- `,Oe([o.property()],Be.prototype,"variant",void 0),Oe([o.query("slot")],Be.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Be);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};const Ie=e.FtCssVariable.extend("--ft-button-color",e.designSystemVariables.colorPrimary),De={backgroundColor:e.FtCssVariable.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariable.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Ie,fontSize:e.FtCssVariable.extend("--ft-button-font-size",Pt.fontSize),iconSize:e.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariable.extend("--ft-button-ripple-color",Ie),opacityDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Le=e.FtCssVariable.extend("--ft-button-primary-color",e.FtCssVariable.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Fe={backgroundColor:e.FtCssVariable.extend("--ft-button-primary-background-color",e.FtCssVariable.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Le,rippleColor:e.FtCssVariable.extend("--ft-button-primary-ripple-color",Le)},je=e.FtCssVariable.extend("--ft-button-dense-border-radius",e.FtCssVariable.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM));class Me extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[e.noTextSelect,i.css`
401
+ `,ke([o.property()],Se.prototype,"variant",void 0),ke([o.query("slot")],Se.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Se);var ze=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Oe=e.FtCssVariable.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Ce={backgroundColor:e.FtCssVariable.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariable.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Oe,fontSize:e.FtCssVariable.extend("--ft-button-font-size",Rt.fontSize),iconSize:e.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariable.extend("--ft-button-ripple-color",Oe),opacityDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Be=e.FtCssVariable.extend("--ft-button-primary-color",e.FtCssVariable.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Ee={backgroundColor:e.FtCssVariable.extend("--ft-button-primary-background-color",e.FtCssVariable.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Be,rippleColor:e.FtCssVariable.extend("--ft-button-primary-ripple-color",Be)},Ie=e.FtCssVariable.extend("--ft-button-dense-border-radius",e.FtCssVariable.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM));class Le extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[e.noTextSelect,i.css`
400
402
  :host {
401
403
  display: inline-block;
402
404
  max-width: 100%;
@@ -435,19 +437,20 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
435
437
  box-sizing: border-box;
436
438
  border: none;
437
439
  pointer-events: auto;
440
+ line-height: 0;
438
441
 
439
- --ft-button-internal-font-size: ${De.fontSize};
442
+ --ft-button-internal-font-size: ${Ce.fontSize};
440
443
  --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
441
- --ft-button-internal-color: ${De.color};
442
- ${e.setVariable(Ce.size,De.iconSize)};
444
+ --ft-button-internal-color: ${Ce.color};
445
+ ${e.setVariable(we.size,Ce.iconSize)};
443
446
  --ft-button-internal-vertical-padding: 6px;
444
447
  --ft-button-internal-horizontal-padding: 8px;
445
- ${e.setVariable(se.color,De.rippleColor)};
446
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${De.iconSize});
448
+ ${e.setVariable(se.color,Ce.rippleColor)};
449
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ce.iconSize});
447
450
 
448
- border-radius: ${De.borderRadius};
451
+ border-radius: ${Ce.borderRadius};
449
452
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
450
- background-color: ${De.backgroundColor};
453
+ background-color: ${Ce.backgroundColor};
451
454
  color: var(--ft-button-internal-color);
452
455
  -webkit-mask-image: radial-gradient(white, black);
453
456
  }
@@ -459,7 +462,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
459
462
  .ft-button--dense {
460
463
  --ft-button-internal-vertical-padding: 2px;
461
464
  --ft-button-internal-horizontal-padding: 4px;
462
- border-radius: ${je};
465
+ border-radius: ${Ie};
463
466
  }
464
467
 
465
468
  .ft-button--round {
@@ -468,13 +471,13 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
468
471
 
469
472
  .ft-button[disabled] {
470
473
  filter: grayscale(1);
471
- opacity: ${De.opacityDisabled};
474
+ opacity: ${Ce.opacityDisabled};
472
475
  }
473
476
 
474
477
  .ft-button.ft-button--primary {
475
- background-color: ${Fe.backgroundColor};
476
- --ft-button-internal-color: ${Fe.color};
477
- ${e.setVariable(se.color,Fe.rippleColor)};
478
+ background-color: ${Ee.backgroundColor};
479
+ --ft-button-internal-color: ${Ee.color};
480
+ ${e.setVariable(se.color,Ee.rippleColor)};
478
481
  }
479
482
 
480
483
  .ft-button.ft-button--outlined {
@@ -493,8 +496,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
493
496
  text-overflow: ellipsis;
494
497
  display: block;
495
498
  margin: 0 var(--ft-button-internal-horizontal-padding);
496
- ${e.setVariable(Pt.fontSize,"var(--ft-button-internal-font-size)")};
497
- ${e.setVariable(Pt.lineHeight,"var(--ft-button-internal-content-height)")};
499
+ ${e.setVariable(Rt.fontSize,"var(--ft-button-internal-font-size)")};
500
+ ${e.setVariable(Rt.lineHeight,"var(--ft-button-internal-content-height)")};
498
501
  }
499
502
 
500
503
  .ft-button--safari-fix .ft-button--label {
@@ -527,8 +530,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
527
530
  }
528
531
 
529
532
  ft-loader {
530
- ${e.setVariable(ye.size,De.iconSize)};
531
- ${e.setVariable(ye.color,"var(--ft-button-internal-color)")};
533
+ ${e.setVariable(be.size,Ce.iconSize)};
534
+ ${e.setVariable(be.color,"var(--ft-button-internal-color)")};
532
535
  }
533
536
  `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":e.isSafari,"ft-no-text-select":!0};return this.addTooltip(i.html`
534
537
  <button part="button"
@@ -552,7 +555,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
552
555
  </ft-tooltip>
553
556
  `}resolveIcon(){return this.loading?i.html`
554
557
  <ft-loader></ft-loader> `:this.icon?i.html`
555
- <ft-icon variant="material">${this.icon}</ft-icon> `:i.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Me.elementDefinitions={"ft-ripple":pe,"ft-tooltip":xe,"ft-typography":Yt,"ft-icon":Be,"ft-loader":me},Ee([o.property({type:Boolean})],Me.prototype,"primary",void 0),Ee([o.property({type:Boolean})],Me.prototype,"outlined",void 0),Ee([o.property({type:Boolean})],Me.prototype,"disabled",void 0),Ee([o.property({type:Boolean})],Me.prototype,"dense",void 0),Ee([o.property({type:Boolean})],Me.prototype,"round",void 0),Ee([o.property({type:String})],Me.prototype,"label",void 0),Ee([o.property({type:String})],Me.prototype,"icon",void 0),Ee([o.property({type:Boolean})],Me.prototype,"trailingIcon",void 0),Ee([o.property({type:Boolean})],Me.prototype,"loading",void 0),Ee([o.property({type:String})],Me.prototype,"tooltipPosition",void 0),Ee([o.query(".ft-button")],Me.prototype,"button",void 0),Ee([o.query(".ft-button--label slot")],Me.prototype,"slottedContent",void 0),e.customElement("ft-button")(Me);var Ae=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Te=e.FtCssVariable.extend("--ft-checkbox-text-color",e.designSystemVariables.colorOnSurfaceHigh),Ne=e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),Re=e.FtCssVariable.external(e.designSystemVariables.colorOnPrimary,"Design system"),Pe=e.FtCssVariable.extend("--ft-checkbox-border-color",e.designSystemVariables.colorOnSurfaceMedium),Ze=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system");class _e 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`
558
+ <ft-icon variant="material">${this.icon}</ft-icon> `:i.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Le.elementDefinitions={"ft-ripple":pe,"ft-tooltip":ue,"ft-typography":Yt,"ft-icon":Se,"ft-loader":ve},ze([o.property({type:Boolean})],Le.prototype,"primary",void 0),ze([o.property({type:Boolean})],Le.prototype,"outlined",void 0),ze([o.property({type:Boolean})],Le.prototype,"disabled",void 0),ze([o.property({type:Boolean})],Le.prototype,"dense",void 0),ze([o.property({type:Boolean})],Le.prototype,"round",void 0),ze([o.property({type:String})],Le.prototype,"label",void 0),ze([o.property({type:String})],Le.prototype,"icon",void 0),ze([o.property({type:Boolean})],Le.prototype,"trailingIcon",void 0),ze([o.property({type:Boolean})],Le.prototype,"loading",void 0),ze([o.property({type:String})],Le.prototype,"tooltipPosition",void 0),ze([o.query(".ft-button")],Le.prototype,"button",void 0),ze([o.query(".ft-button--label slot")],Le.prototype,"slottedContent",void 0),e.customElement("ft-button")(Le);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};const Fe=e.FtCssVariable.extend("--ft-checkbox-text-color",e.designSystemVariables.colorOnSurfaceHigh),je=e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),Me=e.FtCssVariable.external(e.designSystemVariables.colorOnPrimary,"Design system"),Pe=e.FtCssVariable.extend("--ft-checkbox-border-color",e.designSystemVariables.colorOnSurfaceMedium),Ae=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system");class Ne 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`
556
559
  <label class="${n.classMap(t)}">
557
560
  <div class="ft-checkbox--box-container">
558
561
  <input type="checkbox"
@@ -577,14 +580,14 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
577
580
  <slot></slot>
578
581
  </ft-typography>
579
582
  </label>
580
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}_e.elementDefinitions={"ft-ripple":pe,"ft-typography":Yt},_e.styles=i.css`
583
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Ne.elementDefinitions={"ft-ripple":pe,"ft-typography":Yt},Ne.styles=i.css`
581
584
  * {
582
585
  box-sizing: border-box;
583
586
  }
584
587
 
585
588
  .ft-checkbox {
586
589
  box-sizing: border-box;
587
- color: ${Te};
590
+ color: ${Fe};
588
591
 
589
592
  display: inline-flex;
590
593
  align-items: center;
@@ -592,7 +595,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
592
595
  }
593
596
 
594
597
  .ft-checkbox--disabled {
595
- color: ${Ze};
598
+ color: ${Ae};
596
599
  }
597
600
 
598
601
  input {
@@ -622,20 +625,20 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
622
625
  width: 18px;
623
626
  height: 18px;
624
627
 
625
- color: ${Re};
628
+ color: ${Me};
626
629
  }
627
630
 
628
631
 
629
632
  .ft-checkbox--checked .ft-checkbox--box,
630
633
  .ft-checkbox--indeterminate .ft-checkbox--box {
631
- border-color: ${Ne};
632
- background-color: ${Ne};
634
+ border-color: ${je};
635
+ background-color: ${je};
633
636
  }
634
637
 
635
638
  .ft-checkbox--disabled .ft-checkbox--box {
636
- border-color: ${Ze};
639
+ border-color: ${Ae};
637
640
  background-color: transparent;
638
- color: ${Ze};
641
+ color: ${Ae};
639
642
  }
640
643
 
641
644
  .ft-checkbox--checkmark {
@@ -654,7 +657,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
654
657
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
655
658
  opacity: 1;
656
659
  }
657
- `,Ae([o.property()],_e.prototype,"name",void 0),Ae([o.property({type:Boolean})],_e.prototype,"checked",void 0),Ae([o.property({type:Boolean})],_e.prototype,"indeterminate",void 0),Ae([o.property({type:Boolean})],_e.prototype,"disabled",void 0),Ae([o.query(".ft-checkbox")],_e.prototype,"container",void 0),Ae([o.query("ft-ripple")],_e.prototype,"ripple",void 0),e.customElement("ft-checkbox")(_e);var Ue=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const He=e.FtCssVariable.extend("--ft-radio-text-color",e.designSystemVariables.colorOnSurfaceHigh),Ke=e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),qe=(e.FtCssVariable.external(e.designSystemVariables.colorOnPrimary,"Design system"),e.FtCssVariable.extend("--ft-radio-border-color",e.designSystemVariables.colorOnSurfaceMedium)),Ve=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system");class We extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Ge 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`
660
+ `,De([o.property()],Ne.prototype,"name",void 0),De([o.property({type:Boolean})],Ne.prototype,"checked",void 0),De([o.property({type:Boolean})],Ne.prototype,"indeterminate",void 0),De([o.property({type:Boolean})],Ne.prototype,"disabled",void 0),De([o.query(".ft-checkbox")],Ne.prototype,"container",void 0),De([o.query("ft-ripple")],Ne.prototype,"ripple",void 0),e.customElement("ft-checkbox")(Ne);var Te=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Re=e.FtCssVariable.extend("--ft-radio-text-color",e.designSystemVariables.colorOnSurfaceHigh),Ze=e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),Ue=(e.FtCssVariable.external(e.designSystemVariables.colorOnPrimary,"Design system"),e.FtCssVariable.extend("--ft-radio-border-color",e.designSystemVariables.colorOnSurfaceMedium)),_e=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system");class He extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Ve 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`
658
661
  <div class="${n.classMap(t)}">
659
662
  <div class="ft-radio--box-container">
660
663
  <input id="radio-button"
@@ -679,14 +682,14 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
679
682
  </ft-typography>
680
683
  </label>
681
684
  </div>
682
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new We(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 We(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Ge.elementDefinitions={"ft-ripple":pe,"ft-typography":Yt},Ge.styles=i.css`
685
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new He(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 He(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Ve.elementDefinitions={"ft-ripple":pe,"ft-typography":Yt},Ve.styles=i.css`
683
686
  * {
684
687
  box-sizing: border-box;
685
688
  }
686
689
 
687
690
  .ft-radio {
688
691
  box-sizing: border-box;
689
- color: ${He};
692
+ color: ${Re};
690
693
 
691
694
  display: inline-flex;
692
695
  align-items: center;
@@ -694,7 +697,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
694
697
  }
695
698
 
696
699
  .ft-radio--disabled {
697
- color: ${Ve};
700
+ color: ${_e};
698
701
  }
699
702
 
700
703
  input {
@@ -717,7 +720,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
717
720
  }
718
721
 
719
722
  .ft-radio--box {
720
- border: 2px solid ${qe};
723
+ border: 2px solid ${Ue};
721
724
  border-radius: 50%;
722
725
 
723
726
  display: flex;
@@ -730,7 +733,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
730
733
 
731
734
  .ft-radio--box:after {
732
735
  content: " ";
733
- background-color: ${Ke};
736
+ background-color: ${Ze};
734
737
 
735
738
  border-radius: 50%;
736
739
 
@@ -742,7 +745,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
742
745
  }
743
746
 
744
747
  .ft-radio--checked .ft-radio--box {
745
- border-color: ${Ke};
748
+ border-color: ${Ze};
746
749
  }
747
750
 
748
751
 
@@ -751,27 +754,28 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
751
754
  }
752
755
 
753
756
  .ft-radio--disabled .ft-radio--box {
754
- border-color: ${Ve};
757
+ border-color: ${_e};
755
758
  background-color: transparent;
756
759
  }
757
760
 
758
761
  .ft-radio--disabled .ft-radio--box:after {
759
- background-color: ${Ve};
762
+ background-color: ${_e};
760
763
  }
761
- `,Ue([o.property()],Ge.prototype,"value",void 0),Ue([o.property()],Ge.prototype,"name",void 0),Ue([o.property({type:Boolean})],Ge.prototype,"checked",void 0),Ue([o.property({type:Boolean})],Ge.prototype,"disabled",void 0),Ue([o.query(".ft-radio")],Ge.prototype,"container",void 0),Ue([o.query("ft-ripple")],Ge.prototype,"ripple",void 0),Ue([o.query("input")],Ge.prototype,"input",void 0);var Xe=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 Ye extends e.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return i.html`
764
+ `,Te([o.property()],Ve.prototype,"value",void 0),Te([o.property()],Ve.prototype,"name",void 0),Te([o.property({type:Boolean})],Ve.prototype,"checked",void 0),Te([o.property({type:Boolean})],Ve.prototype,"disabled",void 0),Te([o.query(".ft-radio")],Ve.prototype,"container",void 0),Te([o.query("ft-ripple")],Ve.prototype,"ripple",void 0),Te([o.query("input")],Ve.prototype,"input",void 0);var Ke=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 qe extends e.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return i.html`
762
765
  <slot @slotchange=${this.onSlotChange}
763
766
  @change=${this.onChange}
764
767
  @keydown=${this.onKeyDown}
765
768
  @focusin=${this.onFocusIn}
766
769
  ></slot>
767
- `}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}))}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))}onFocusIn(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}Ye.elementDefinitions={},Ye.styles=i.css`
770
+ `}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}))}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))}onFocusIn(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}qe.elementDefinitions={},qe.styles=i.css`
768
771
  :host {
769
772
  display: contents;
770
773
  }
771
- `,Xe([o.property()],Ye.prototype,"name",void 0),Xe([o.queryAssignedElements()],Ye.prototype,"radioButtons",void 0),e.customElement("ft-radio")(Ge),e.customElement("ft-radio-group")(Ye);var Je=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Qe={borderRadiusM:e.FtCssVariable.external(e.designSystemVariables.borderRadiusM,"Design system"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:e.FtCssVariable.external(e.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:e.FtCssVariable.external(Ot.fontFamily,"Body2 typography"),fontSize:e.FtCssVariable.external(Ot.fontSize,"Body2 typography"),fontWeight:e.FtCssVariable.external(Ot.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariable.external(Ot.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariable.external(Ot.lineHeight,"Body2 typography"),textTransform:e.FtCssVariable.external(Ot.textTransform,"Body2 typography")};class ti 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`
774
+ `,Ke([o.property()],qe.prototype,"name",void 0),Ke([o.queryAssignedElements()],qe.prototype,"radioButtons",void 0),e.customElement("ft-radio")(Ve),e.customElement("ft-radio-group")(qe);var We=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ge={borderRadiusM:e.FtCssVariable.external(e.designSystemVariables.borderRadiusM,"Design system"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:e.FtCssVariable.external(e.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:e.FtCssVariable.external(Ot.fontFamily,"Body2 typography"),fontSize:e.FtCssVariable.external(Ot.fontSize,"Body2 typography"),fontWeight:e.FtCssVariable.external(Ot.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariable.external(Ot.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariable.external(Ot.lineHeight,"Body2 typography"),textTransform:e.FtCssVariable.external(Ot.textTransform,"Body2 typography")};class Xe 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`
772
775
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
773
776
  ${null==this.parent?null:i.html`
774
777
  <div tabindex="0"
778
+ part="controls go-back"
775
779
  class="ft-filter-level--go-back"
776
780
  ?disabled=${this.disabled}
777
781
  @keyup=${this.goBackOnKeyPress}
@@ -781,11 +785,17 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
781
785
  <ft-typography variant="body2">${this.parent.label}</ft-typography>
782
786
  </div>
783
787
  `}
788
+ ${0===this.options.length&&this.noValuesLabel?i.html`
789
+ <ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
790
+ ${this.noValuesLabel}
791
+ </ft-typography>
792
+ `:i.nothing}
784
793
  ${s.repeat(e,(t=>t.value),(t=>{var e;return i.html`
785
794
  <div class="ft-filter-level--option" part="options">
786
795
  ${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
787
796
  ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?i.nothing:i.html`
788
797
  <ft-button icon="chevron_right"
798
+ part="controls navigate-hierarchy"
789
799
  label="${t.label}"
790
800
  ?disabled=${this.disabled}
791
801
  tooltipPosition="left"
@@ -798,6 +808,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
798
808
  class="ft-filter-level--display-more"
799
809
  icon="expand_more"
800
810
  dense trailingIcon
811
+ part="controls display-more"
801
812
  @click=${this.displayMore}>
802
813
  ${this.moreValuesButtonLabel}
803
814
  </ft-button>
@@ -805,6 +816,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
805
816
  </div>
806
817
  `}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return i.html`
807
818
  <ft-checkbox name="${this.id}"
819
+ part="multivalued-option"
808
820
  .checked=${t.selected}
809
821
  .disabled=${this.disabled}
810
822
  .indeterminate=${Jt(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
@@ -813,6 +825,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
813
825
  </ft-checkbox>
814
826
  `}buildMonoValuedOption(t){return i.html`
815
827
  <ft-radio name="${this.id+Math.round(1e6*Math.random())}"
828
+ part="monovalued-option"
816
829
  .checked=${t.selected}
817
830
  ?disabled=${this.disabled}
818
831
  @click=${e=>this.optionsChanged(e,t)}
@@ -821,7 +834,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
821
834
 
822
835
  ${t.label}
823
836
  </ft-radio>
824
- `}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}))}}ti.elementDefinitions={"ft-button":Me,"ft-ripple":pe,"ft-typography":Yt,"ft-checkbox":_e,"ft-icon":Be,"ft-radio":Ge},ti.styles=[i.css`
837
+ `}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}))}}Xe.elementDefinitions={"ft-button":Le,"ft-ripple":pe,"ft-typography":Yt,"ft-checkbox":Ne,"ft-icon":Se,"ft-radio":Ve},Xe.styles=[i.css`
825
838
  .ft-filter-level--container {
826
839
  display: flex;
827
840
  flex-direction: column;
@@ -835,14 +848,14 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
835
848
  flex-shrink: 0;
836
849
  text-decoration: none;
837
850
  position: relative;
838
- border-radius: ${Qe.borderRadiusM};
851
+ border-radius: ${Ge.borderRadiusM};
839
852
  overflow: hidden;
840
853
  display: flex;
841
854
  align-items: center;
842
855
  padding: 4px 4px;
843
856
  gap: 4px;
844
857
  cursor: pointer;
845
- color: ${Qe.colorOnSurface};
858
+ color: ${Ge.colorOnSurface};
846
859
  }
847
860
 
848
861
  .ft-filter-level--go-back:focus {
@@ -871,7 +884,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
871
884
  }
872
885
 
873
886
  ft-button {
874
- ${e.setVariable(De.color,Qe.colorOnSurface)};
887
+ ${e.setVariable(Ce.color,Ge.colorOnSurface)};
875
888
  }
876
889
 
877
890
  ft-radio, ft-checkbox {
@@ -882,7 +895,12 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
882
895
  margin-left: -10px;
883
896
  word-break: break-word;
884
897
  }
885
- `],Je([o.property({type:String})],ti.prototype,"id",void 0),Je([o.property({type:Object})],ti.prototype,"parent",void 0),Je([o.property({type:Array})],ti.prototype,"options",void 0),Je([o.property({type:Boolean})],ti.prototype,"multivalued",void 0),Je([o.property({type:Boolean})],ti.prototype,"disabled",void 0),Je([o.property({type:Boolean})],ti.prototype,"hideSelectedOptions",void 0),Je([o.property({type:Boolean})],ti.prototype,"preventNavigation",void 0),Je([o.property({type:String})],ti.prototype,"filter",void 0),Je([o.property({type:String})],ti.prototype,"moreValuesButtonLabel",void 0),Je([o.property({type:Number})],ti.prototype,"displayedValuesLimit",void 0),Je([o.query(".ft-filter-level--container")],ti.prototype,"container",void 0),Je([o.state()],ti.prototype,"displayedPages",void 0);var ei=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const ii={buttonsColor:e.FtCssVariable.extend("--ft-snap-scroll-buttons-color",e.designSystemVariables.colorPrimary),buttonsZIndex:e.FtCssVariable.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:e.FtCssVariable.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system")};class oi extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class si 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`
898
+
899
+ .ft-filter-level--no-values {
900
+ margin: 10px 0;
901
+ color: ${Ge.colorOnSurfaceMedium};
902
+ }
903
+ `],We([o.property({type:String})],Xe.prototype,"id",void 0),We([o.property({type:Object})],Xe.prototype,"parent",void 0),We([o.property({type:Array})],Xe.prototype,"options",void 0),We([o.property({type:Boolean})],Xe.prototype,"multivalued",void 0),We([o.property({type:Boolean})],Xe.prototype,"disabled",void 0),We([o.property({type:Boolean})],Xe.prototype,"hideSelectedOptions",void 0),We([o.property({type:Boolean})],Xe.prototype,"preventNavigation",void 0),We([o.property({type:String})],Xe.prototype,"filter",void 0),We([o.property({type:String})],Xe.prototype,"moreValuesButtonLabel",void 0),We([o.property({type:String})],Xe.prototype,"noValuesLabel",void 0),We([o.property({type:Number})],Xe.prototype,"displayedValuesLimit",void 0),We([o.query(".ft-filter-level--container")],Xe.prototype,"container",void 0),We([o.state()],Xe.prototype,"displayedPages",void 0);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};const Je={buttonsColor:e.FtCssVariable.extend("--ft-snap-scroll-buttons-color",e.designSystemVariables.colorPrimary),buttonsZIndex:e.FtCssVariable.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:e.FtCssVariable.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system")};class Qe extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class ti 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`
886
904
  <div part="container" class="${t}">
887
905
  <ft-button
888
906
  class="ft-snap-scroll--previous"
@@ -906,7 +924,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
906
924
  @click=${this.next}
907
925
  ></ft-button>
908
926
  </div>
909
- `}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new oi(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}si.elementDefinitions={"ft-button":Me},si.styles=i.css`
927
+ `}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Qe(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}ti.elementDefinitions={"ft-button":Le},ti.styles=i.css`
910
928
  .ft-snap-scroll {
911
929
  box-sizing: border-box;
912
930
  position: relative;
@@ -941,7 +959,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
941
959
  flex-wrap: nowrap;
942
960
  align-items: flex-start;
943
961
  justify-content: flex-start;
944
- gap: ${ii.gap};
962
+ gap: ${Je.gap};
945
963
  }
946
964
 
947
965
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -984,11 +1002,11 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
984
1002
  .ft-snap-scroll--next {
985
1003
  position: absolute;
986
1004
  display: flex;
987
- z-index: ${ii.buttonsZIndex};
1005
+ z-index: ${Je.buttonsZIndex};
988
1006
  opacity: 1;
989
1007
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
990
- ${e.setVariable(De.backgroundColor,"transparent")};
991
- ${e.setVariable(De.color,ii.buttonsColor)};
1008
+ ${e.setVariable(Ce.backgroundColor,"transparent")};
1009
+ ${e.setVariable(Ce.color,Je.buttonsColor)};
992
1010
  }
993
1011
 
994
1012
  .ft-snap-scroll--previous[hidden],
@@ -1001,37 +1019,37 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1001
1019
  top: 0;
1002
1020
  left: -1px;
1003
1021
  bottom: 0;
1004
- background: linear-gradient(to right, ${ii.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1022
+ background: linear-gradient(to right, ${Je.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1005
1023
  }
1006
1024
 
1007
1025
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1008
1026
  top: -1px;
1009
1027
  left: 0;
1010
1028
  right: 0;
1011
- background: linear-gradient(to bottom, ${ii.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1029
+ background: linear-gradient(to bottom, ${Je.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1012
1030
  }
1013
1031
 
1014
1032
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1015
1033
  top: 0;
1016
1034
  right: -1px;
1017
1035
  bottom: 0;
1018
- background: linear-gradient(to left, ${ii.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1036
+ background: linear-gradient(to left, ${Je.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1019
1037
  }
1020
1038
 
1021
1039
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1022
1040
  left: 0;
1023
1041
  right: 0;
1024
1042
  bottom: -1px;
1025
- background: linear-gradient(to top, ${ii.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1043
+ background: linear-gradient(to top, ${Je.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1026
1044
  }
1027
1045
 
1028
1046
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1029
1047
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1030
1048
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1031
1049
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1032
- background-color: ${ii.colorSurface};
1050
+ background-color: ${Je.colorSurface};
1033
1051
  }
1034
- `,ei([o.property({type:Boolean})],si.prototype,"horizontal",void 0),ei([o.property({type:Boolean})],si.prototype,"hideScrollbar",void 0),ei([o.property({type:Boolean})],si.prototype,"controls",void 0),ei([o.property({type:Boolean})],si.prototype,"limitSize",void 0),ei([o.state()],si.prototype,"elements",void 0),ei([o.state()],si.prototype,"currentElement",void 0),ei([o.state()],si.prototype,"withScroll",void 0),ei([o.state()],si.prototype,"startReached",void 0),ei([o.state()],si.prototype,"endReached",void 0),ei([o.query(".ft-snap-scroll--content")],si.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(si);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};const ri=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),li=e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),ai=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),ci=e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),hi=e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),pi=e.FtCssVariable.external(e.designSystemVariables.transitionDuration,"Design system"),fi=e.FtCssVariable.external(e.designSystemVariables.transitionTimingFunction,"Design system");class di extends CustomEvent{constructor(t){super("change",{detail:t})}}class ui extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,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 Jt(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}render(){var t,e;const o=this.flatOptions.some((t=>t.selected));let s=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e;return i.html`
1052
+ `,Ye([o.property({type:Boolean})],ti.prototype,"horizontal",void 0),Ye([o.property({type:Boolean})],ti.prototype,"hideScrollbar",void 0),Ye([o.property({type:Boolean})],ti.prototype,"controls",void 0),Ye([o.property({type:Boolean})],ti.prototype,"limitSize",void 0),Ye([o.state()],ti.prototype,"elements",void 0),Ye([o.state()],ti.prototype,"currentElement",void 0),Ye([o.state()],ti.prototype,"withScroll",void 0),Ye([o.state()],ti.prototype,"startReached",void 0),Ye([o.state()],ti.prototype,"endReached",void 0),Ye([o.query(".ft-snap-scroll--content")],ti.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(ti);var ei=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const ii=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),oi=e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),si=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),ni=e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),ri=e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),li=e.FtCssVariable.external(e.designSystemVariables.transitionDuration,"Design system"),ai=e.FtCssVariable.external(e.designSystemVariables.transitionTimingFunction,"Design system");class ci extends CustomEvent{constructor(t){super("change",{detail:t})}}class hi 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.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 Jt(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}render(){var t,e;const o=this.flatOptions.some((t=>t.selected));let s=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e;return i.html`
1035
1053
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1036
1054
  part="container">
1037
1055
  ${this.label||o?i.html`
@@ -1070,7 +1088,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1070
1088
  preventNavigation
1071
1089
  .options=${e}
1072
1090
  @change=${this.onChange}
1073
- part="selected-values"
1091
+ part="values selected-values"
1092
+ .exportpartsPrefixes=${["values","selected-values"]}
1074
1093
  ></ft-filter-level>
1075
1094
  <div class="ft-filter--separator">
1076
1095
  `:null}
@@ -1095,9 +1114,11 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1095
1114
  @change=${this.onChange}
1096
1115
  @go-back=${this.goBack}
1097
1116
  @display-level=${this.onDisplayLevel}
1098
- part="values"
1117
+ part="values available-values"
1118
+ .exportpartsPrefixes=${["values","available-values"]}
1119
+ noValuesLabel="${this.noValuesLabel}"
1099
1120
  ></ft-filter-level>
1100
- `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new di(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}ui.elementDefinitions={"ft-button":Me,"ft-filter-level":ti,"ft-snap-scroll":si,"ft-typography":Yt},ui.styles=[Vt,i.css`
1121
+ `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new ci(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}hi.elementDefinitions={"ft-button":Le,"ft-filter-level":Xe,"ft-snap-scroll":ti,"ft-typography":Yt},hi.styles=[qt,i.css`
1101
1122
  :host {
1102
1123
  display: flex;
1103
1124
  max-height: 100%;
@@ -1110,8 +1131,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1110
1131
  flex-direction: column;
1111
1132
  max-height: 100%;
1112
1133
  max-width: 100%;
1113
- color: ${li};
1114
- background: ${hi};
1134
+ color: ${oi};
1135
+ background: ${ri};
1115
1136
  }
1116
1137
 
1117
1138
  .ft-filter--header {
@@ -1127,7 +1148,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1127
1148
  .ft-filter--header ft-button {
1128
1149
  flex-shrink: 0;
1129
1150
  margin-left: auto;
1130
- ${e.setVariable(De.iconSize,"18px")};
1151
+ ${e.setVariable(Ce.iconSize,"18px")};
1131
1152
  }
1132
1153
 
1133
1154
  .ft-filter--label {
@@ -1147,8 +1168,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1147
1168
  padding: 0 10px;
1148
1169
  overflow: hidden;
1149
1170
  height: 32px;
1150
- transition: height ${pi} ${fi},
1151
- margin ${pi} ${fi};
1171
+ transition: height ${li} ${ai},
1172
+ margin ${li} ${ai};
1152
1173
  transition-delay: 500ms;
1153
1174
  }
1154
1175
 
@@ -1161,11 +1182,11 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1161
1182
  display: block;
1162
1183
  width: 100%;
1163
1184
  border-radius: 4px;
1164
- border: 1px solid ${ri};
1185
+ border: 1px solid ${ii};
1165
1186
  padding: 4px;
1166
- background-color: ${hi};
1167
- color: ${ai};
1168
- outline-color: ${ci};
1187
+ background-color: ${ri};
1188
+ color: ${si};
1189
+ outline-color: ${ni};
1169
1190
  }
1170
1191
 
1171
1192
  .ft-filter--values {
@@ -1177,7 +1198,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1177
1198
  }
1178
1199
 
1179
1200
  .ft-filter--separator {
1180
- border-top: 1px solid ${ri};
1201
+ border-top: 1px solid ${ii};
1181
1202
  margin: 4px 10px;
1182
1203
  }
1183
1204
 
@@ -1202,17 +1223,17 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1202
1223
  slot {
1203
1224
  display: none;
1204
1225
  }
1205
- `],ni([o.property({type:String})],ui.prototype,"id",void 0),ni([o.property({type:String})],ui.prototype,"label",void 0),ni([o.property({type:String})],ui.prototype,"filterPlaceHolder",void 0),ni([o.property({type:String})],ui.prototype,"clearButtonLabel",void 0),ni([o.property({type:String})],ui.prototype,"moreValuesButtonLabel",void 0),ni([e.jsonProperty([])],ui.prototype,"options",void 0),ni([o.property({type:Boolean})],ui.prototype,"multivalued",void 0),ni([o.property({type:Boolean})],ui.prototype,"disabled",void 0),ni([o.property({type:Boolean})],ui.prototype,"raiseSelectedOptions",void 0),ni([o.property({type:Number})],ui.prototype,"displayedValuesLimit",void 0),ni([o.query(".ft-filter--slot")],ui.prototype,"slotElement",void 0),ni([o.query(".ft-filter--container")],ui.prototype,"container",void 0),ni([o.query(".ft-filter--values")],ui.prototype,"valuesContainer",void 0),ni([o.query(".ft-filter--levels")],ui.prototype,"levelsContainer",void 0),ni([o.query(".ft-filter--levels ft-filter-level:last-child")],ui.prototype,"lastLevel",void 0),ni([o.query(".ft-filter--filter input")],ui.prototype,"filterInput",void 0),ni([o.queryAll(".ft-filter--levels ft-filter-level")],ui.prototype,"levels",void 0),ni([o.state()],ui.prototype,"withScroll",void 0),ni([o.state()],ui.prototype,"filter",void 0),ni([o.state()],ui.prototype,"slideIn",void 0),ni([o.state()],ui.prototype,"slideOut",void 0);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 vi extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return i.html`
1226
+ `],ei([o.property({type:String})],hi.prototype,"id",void 0),ei([o.property({type:String})],hi.prototype,"label",void 0),ei([o.property({type:String})],hi.prototype,"filterPlaceHolder",void 0),ei([o.property({type:String})],hi.prototype,"clearButtonLabel",void 0),ei([o.property({type:String})],hi.prototype,"moreValuesButtonLabel",void 0),ei([o.property({type:String})],hi.prototype,"noValuesLabel",void 0),ei([e.jsonProperty([])],hi.prototype,"options",void 0),ei([o.property({type:Boolean})],hi.prototype,"multivalued",void 0),ei([o.property({type:Boolean})],hi.prototype,"disabled",void 0),ei([o.property({type:Boolean})],hi.prototype,"raiseSelectedOptions",void 0),ei([o.property({type:Number})],hi.prototype,"displayedValuesLimit",void 0),ei([o.query(".ft-filter--slot")],hi.prototype,"slotElement",void 0),ei([o.query(".ft-filter--container")],hi.prototype,"container",void 0),ei([o.query(".ft-filter--values")],hi.prototype,"valuesContainer",void 0),ei([o.query(".ft-filter--levels")],hi.prototype,"levelsContainer",void 0),ei([o.query(".ft-filter--levels ft-filter-level:last-child")],hi.prototype,"lastLevel",void 0),ei([o.query(".ft-filter--filter input")],hi.prototype,"filterInput",void 0),ei([o.queryAll(".ft-filter--levels ft-filter-level")],hi.prototype,"levels",void 0),ei([o.state()],hi.prototype,"withScroll",void 0),ei([o.state()],hi.prototype,"filter",void 0),ei([o.state()],hi.prototype,"slideIn",void 0),ei([o.state()],hi.prototype,"slideOut",void 0);var pi=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`
1206
1227
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1207
- `}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}))}}vi.elementDefinitions={},bi([o.property({type:String})],vi.prototype,"label",void 0),bi([o.property({type:Object,converter:t=>t})],vi.prototype,"value",void 0),bi([o.property({type:Boolean,reflect:!0})],vi.prototype,"selected",void 0),bi([o.property({type:Object})],vi.prototype,"subOptions",void 0),bi([o.query(".ft-filter-option--slot")],vi.prototype,"slotElement",void 0),e.customElement("ft-filter")(ui),e.customElement("ft-filter-option")(vi);var gi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class xi extends e.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return i.html`
1228
+ `}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={},pi([o.property({type:String})],fi.prototype,"label",void 0),pi([o.property({type:Object,converter:t=>t})],fi.prototype,"value",void 0),pi([o.property({type:Boolean,reflect:!0})],fi.prototype,"selected",void 0),pi([o.property({type:Object})],fi.prototype,"subOptions",void 0),pi([o.query(".ft-filter-option--slot")],fi.prototype,"slotElement",void 0),e.customElement("ft-filter")(hi),e.customElement("ft-filter-option")(fi);var di=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 ui extends e.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return i.html`
1208
1229
  <div class="ft-accordion">
1209
1230
  <slot @activated=${this.onChange}></slot>
1210
1231
  </div>
1211
- `}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}xi.elementDefinitions={},xi.styles=i.css`
1232
+ `}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}ui.elementDefinitions={},ui.styles=i.css`
1212
1233
  .ft-accordion {
1213
1234
  box-sizing: border-box;
1214
1235
  }
1215
- `,gi([o.property({type:Boolean})],xi.prototype,"multi",void 0),gi([o.query("slot")],xi.prototype,"content",void 0);var yi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const mi=e.FtCssVariable.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),$i=e.FtCssVariable.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),wi=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system");class ki extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return i.html`
1236
+ `,di([o.property({type:Boolean})],ui.prototype,"multi",void 0),di([o.query("slot")],ui.prototype,"content",void 0);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};const vi=e.FtCssVariable.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),gi=e.FtCssVariable.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),xi=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system");class yi extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return i.html`
1216
1237
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1217
1238
  <div class="ft-accordion-item--toggle"
1218
1239
  part="toggle"
@@ -1236,7 +1257,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1236
1257
  </div>
1237
1258
  <div class="ft-accordion-item--separator" part="separator"></div>
1238
1259
  </div>
1239
- `}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}ki.elementDefinitions={"ft-ripple":pe,"ft-typography":Yt,"ft-icon":Be},ki.styles=i.css`
1260
+ `}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}yi.elementDefinitions={"ft-ripple":pe,"ft-typography":Yt,"ft-icon":Se},yi.styles=i.css`
1240
1261
  .ft-accordion-item {
1241
1262
  display: flex;
1242
1263
  flex-direction: column;
@@ -1249,8 +1270,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1249
1270
  display: flex;
1250
1271
  align-items: center;
1251
1272
  cursor: pointer;
1252
- padding: ${$i} ${mi};
1253
- gap: calc(${mi} / 2);
1273
+ padding: ${gi} ${vi};
1274
+ gap: calc(${vi} / 2);
1254
1275
  outline: none;
1255
1276
  }
1256
1277
 
@@ -1275,13 +1296,13 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1275
1296
  .ft-accordion-item--active .ft-accordion-item--content {
1276
1297
  height: initial;
1277
1298
  overflow: visible;
1278
- padding: ${$i} ${mi};
1299
+ padding: ${gi} ${vi};
1279
1300
  }
1280
1301
 
1281
1302
  .ft-accordion-item--separator {
1282
- border-bottom: 1px solid ${wi};
1303
+ border-bottom: 1px solid ${xi};
1283
1304
  }
1284
- `,yi([o.property({type:String})],ki.prototype,"icon",void 0),yi([o.property({type:String})],ki.prototype,"label",void 0),yi([o.property({type:Boolean,reflect:!0})],ki.prototype,"active",void 0),e.customElement("ft-accordion")(xi),e.customElement("ft-accordion-item")(ki);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};const zi=e.FtCssVariable.extend("--ft-chip-color",e.designSystemVariables.colorOnSurface),Oi={backgroundColor:e.FtCssVariable.extend("--ft-chip-background-color",e.designSystemVariables.colorSurface),color:zi,fontSize:e.FtCssVariable.extend("--ft-chip-font-size",Ot.fontSize),iconSize:e.FtCssVariable.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:e.FtCssVariable.extend("--ft-chip-ripple-color",zi),horizontalPadding:e.FtCssVariable.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:e.FtCssVariable.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),opacityDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Ci=e.FtCssVariable.extend("--ft-chip-highlighted-color",e.FtCssVariable.extend("--ft-chip-color",e.designSystemVariables.colorOnPrimary)),Bi={backgroundColor:e.FtCssVariable.extend("--ft-chip-highlighted-background-color",e.FtCssVariable.extend("--ft-chip-background-color",e.designSystemVariables.colorPrimary)),color:Ci,rippleColor:e.FtCssVariable.extend("--ft-chip-highlighted-ripple-color",Ci)},Ei=e.FtCssVariable.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Ii=e.FtCssVariable.create("--ft-chip-dense-vertical-padding","SIZE","4px");class Di extends CustomEvent{constructor(){super("icon-click")}}class Li 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.icon=void 0,this.trailingIcon=!1}static get styles(){return[e.noTextSelect,i.css`
1305
+ `,bi([o.property({type:String})],yi.prototype,"icon",void 0),bi([o.property({type:String})],yi.prototype,"label",void 0),bi([o.property({type:Boolean,reflect:!0})],yi.prototype,"active",void 0),e.customElement("ft-accordion")(ui),e.customElement("ft-accordion-item")(yi);var mi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const $i=e.FtCssVariable.extend("--ft-chip-color",e.designSystemVariables.colorOnSurface),ki={backgroundColor:e.FtCssVariable.extend("--ft-chip-background-color",e.designSystemVariables.colorSurface),color:$i,fontSize:e.FtCssVariable.extend("--ft-chip-font-size",Ot.fontSize),iconSize:e.FtCssVariable.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:e.FtCssVariable.extend("--ft-chip-ripple-color",$i),horizontalPadding:e.FtCssVariable.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:e.FtCssVariable.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),opacityDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},wi=e.FtCssVariable.extend("--ft-chip-highlighted-color",e.FtCssVariable.extend("--ft-chip-color",e.designSystemVariables.colorOnPrimary)),Si={backgroundColor:e.FtCssVariable.extend("--ft-chip-highlighted-background-color",e.FtCssVariable.extend("--ft-chip-background-color",e.designSystemVariables.colorPrimary)),color:wi,rippleColor:e.FtCssVariable.extend("--ft-chip-highlighted-ripple-color",wi)},zi=e.FtCssVariable.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Oi=e.FtCssVariable.create("--ft-chip-dense-vertical-padding","SIZE","4px");class Ci extends CustomEvent{constructor(){super("icon-click")}}class Bi 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.icon=void 0,this.trailingIcon=!1}static get styles(){return[e.noTextSelect,i.css`
1285
1306
  :host {
1286
1307
  display: inline-block;
1287
1308
  max-width: 100%;
@@ -1298,20 +1319,20 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1298
1319
  box-sizing: border-box;
1299
1320
  pointer-events: auto;
1300
1321
 
1301
- --ft-chip-internal-font-size: ${Oi.fontSize};
1322
+ --ft-chip-internal-font-size: ${ki.fontSize};
1302
1323
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
1303
- ${e.setVariable(Ce.size,Oi.iconSize)};
1304
- --ft-chip-internal-vertical-padding: ${Oi.verticalPadding};
1305
- --ft-chip-internal-horizontal-padding: ${Oi.horizontalPadding};
1324
+ ${e.setVariable(we.size,ki.iconSize)};
1325
+ --ft-chip-internal-vertical-padding: ${ki.verticalPadding};
1326
+ --ft-chip-internal-horizontal-padding: ${ki.horizontalPadding};
1306
1327
  --ft-chip-internal-icon-padding: 3px;
1307
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Oi.iconSize});
1328
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ki.iconSize});
1308
1329
 
1309
- border: 1px solid ${Oi.colorOutline};
1310
- color: ${Oi.color};
1311
- ${e.setVariable(se.color,Oi.rippleColor)};
1330
+ border: 1px solid ${ki.colorOutline};
1331
+ color: ${ki.color};
1332
+ ${e.setVariable(se.color,ki.rippleColor)};
1312
1333
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
1313
1334
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
1314
- background-color: ${Oi.backgroundColor};
1335
+ background-color: ${ki.backgroundColor};
1315
1336
  line-height: var(--ft-chip-internal-content-height);
1316
1337
  }
1317
1338
 
@@ -1321,8 +1342,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1321
1342
 
1322
1343
  .ft-chip--dense {
1323
1344
  --ft-chip-internal-icon-padding: 3px;
1324
- --ft-chip-internal-vertical-padding: ${Ii};
1325
- --ft-chip-internal-horizontal-padding: ${Ei};
1345
+ --ft-chip-internal-vertical-padding: ${Oi};
1346
+ --ft-chip-internal-horizontal-padding: ${zi};
1326
1347
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
1327
1348
  }
1328
1349
 
@@ -1334,15 +1355,15 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1334
1355
  cursor: default;
1335
1356
  pointer-events: none;
1336
1357
  filter: grayscale(1);
1337
- opacity: ${Oi.opacityDisabled};
1358
+ opacity: ${ki.opacityDisabled};
1338
1359
  }
1339
1360
 
1340
1361
  .ft-chip--highlighted {
1341
1362
  border: none;
1342
1363
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
1343
- background-color: ${Bi.backgroundColor};
1344
- ${e.setVariable(se.color,Bi.rippleColor)};
1345
- color: ${Bi.color};
1364
+ background-color: ${Si.backgroundColor};
1365
+ ${e.setVariable(se.color,Si.rippleColor)};
1366
+ color: ${Si.color};
1346
1367
  }
1347
1368
 
1348
1369
  .ft-chip--clickable {
@@ -1430,7 +1451,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1430
1451
  <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
1431
1452
  <ft-icon variant="material">${this.internalIcon}</ft-icon>
1432
1453
  </div>
1433
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Di))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Di))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Li.elementDefinitions={"ft-ripple":pe,"ft-typography":Yt,"ft-icon":Be},Si([o.property({type:Boolean})],Li.prototype,"highlighted",void 0),Si([o.property({type:Boolean})],Li.prototype,"removable",void 0),Si([o.property({type:Boolean})],Li.prototype,"disabled",void 0),Si([o.property({type:Boolean})],Li.prototype,"clickable",void 0),Si([o.property({type:Boolean})],Li.prototype,"iconClickable",void 0),Si([o.property({type:Boolean})],Li.prototype,"dense",void 0),Si([o.property({type:Boolean})],Li.prototype,"multiLine",void 0),Si([o.property({type:String})],Li.prototype,"label",void 0),Si([o.property({type:String})],Li.prototype,"icon",void 0),Si([o.property({type:Boolean})],Li.prototype,"trailingIcon",void 0),Si([o.query("ft-typography slot")],Li.prototype,"slottedContent",void 0),e.customElement("ft-chip")(Li);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};const ji={fontSize:e.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariable.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariable.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariable.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class Mi 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`
1454
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ci))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ci))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Bi.elementDefinitions={"ft-ripple":pe,"ft-typography":Yt,"ft-icon":Se},mi([o.property({type:Boolean})],Bi.prototype,"highlighted",void 0),mi([o.property({type:Boolean})],Bi.prototype,"removable",void 0),mi([o.property({type:Boolean})],Bi.prototype,"disabled",void 0),mi([o.property({type:Boolean})],Bi.prototype,"clickable",void 0),mi([o.property({type:Boolean})],Bi.prototype,"iconClickable",void 0),mi([o.property({type:Boolean})],Bi.prototype,"dense",void 0),mi([o.property({type:Boolean})],Bi.prototype,"multiLine",void 0),mi([o.property({type:String})],Bi.prototype,"label",void 0),mi([o.property({type:String})],Bi.prototype,"icon",void 0),mi([o.property({type:Boolean})],Bi.prototype,"trailingIcon",void 0),mi([o.query("ft-typography slot")],Bi.prototype,"slottedContent",void 0),e.customElement("ft-chip")(Bi);var Ei=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ii={fontSize:e.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariable.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariable.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariable.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class Li 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`
1434
1455
  <div class="${n.classMap(t)}">
1435
1456
  ${this.text?i.html`
1436
1457
  <div class="ft-input-label--text ft-typography--caption">
@@ -1439,7 +1460,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1439
1460
  </div>
1440
1461
  `:null}
1441
1462
  </div>
1442
- `}}Mi.elementDefinitions={},Mi.styles=[Vt,i.css`
1463
+ `}}Li.elementDefinitions={},Li.styles=[qt,i.css`
1443
1464
  .ft-input-label {
1444
1465
  position: absolute;
1445
1466
  inset: 0;
@@ -1447,11 +1468,11 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1447
1468
  }
1448
1469
 
1449
1470
  .ft-input-label {
1450
- border-color: ${ji.borderColor};
1471
+ border-color: ${Ii.borderColor};
1451
1472
  }
1452
1473
 
1453
1474
  .ft-input-label.ft-input-label--in-error {
1454
- border-color: ${ji.colorError}
1475
+ border-color: ${Ii.colorError}
1455
1476
  }
1456
1477
 
1457
1478
  .ft-input-label:before,
@@ -1464,7 +1485,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1464
1485
  }
1465
1486
 
1466
1487
  .ft-input-label:before {
1467
- width: ${ji.horizontalSpacing};
1488
+ width: ${Ii.horizontalSpacing};
1468
1489
  flex-shrink: 0;
1469
1490
  }
1470
1491
 
@@ -1480,18 +1501,18 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1480
1501
  border-bottom-width: 1px;
1481
1502
  border-bottom-style: solid;
1482
1503
  border-color: inherit;
1483
- color: ${ji.textColor};
1504
+ color: ${Ii.textColor};
1484
1505
  transition: font-size 250ms, line-height 250ms, color 250ms;
1485
- ${e.setVariable(Ct.fontSize,ji.fontSize)};
1486
- ${e.setVariable(Ct.lineHeight,ji.fontSize)};
1506
+ ${e.setVariable(Ct.fontSize,Ii.fontSize)};
1507
+ ${e.setVariable(Ct.lineHeight,Ii.fontSize)};
1487
1508
  }
1488
1509
 
1489
1510
  .ft-input-label--in-error .ft-input-label--text {
1490
- color: ${ji.colorError}
1511
+ color: ${Ii.colorError}
1491
1512
  }
1492
1513
 
1493
1514
  .ft-input-label--disabled .ft-input-label--text {
1494
- color: ${ji.disabledTextColor};
1515
+ color: ${Ii.disabledTextColor};
1495
1516
  }
1496
1517
 
1497
1518
  .ft-input-label--hidden-text {
@@ -1507,17 +1528,17 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1507
1528
  overflow: hidden;
1508
1529
  white-space: nowrap;
1509
1530
  text-overflow: ellipsis;
1510
- padding: ${ji.verticalSpacing} 4px;
1511
- margin: calc(${ji.verticalSpacing} * -1) 0;
1531
+ padding: ${Ii.verticalSpacing} 4px;
1532
+ margin: calc(${Ii.verticalSpacing} * -1) 0;
1512
1533
  }
1513
1534
 
1514
1535
  .ft-input-label--raised .ft-input-label--text {
1515
- ${e.setVariable(Ct.fontSize,ji.raisedFontSize)};
1516
- ${e.setVariable(Ct.lineHeight,ji.raisedFontSize)};
1536
+ ${e.setVariable(Ct.fontSize,Ii.raisedFontSize)};
1537
+ ${e.setVariable(Ct.lineHeight,Ii.raisedFontSize)};
1517
1538
  }
1518
1539
 
1519
1540
  .ft-input-label--raised .ft-input-label--floating-text {
1520
- top: ${ji.verticalSpacing};
1541
+ top: ${Ii.verticalSpacing};
1521
1542
  }
1522
1543
 
1523
1544
  .ft-input-label--outlined .ft-input-label--text,
@@ -1530,27 +1551,27 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1530
1551
  .ft-input-label--outlined:before {
1531
1552
  border-left-width: 1px;
1532
1553
  border-left-style: solid;
1533
- border-radius: ${ji.borderRadiusS} 0 0 ${ji.borderRadiusS};
1554
+ border-radius: ${Ii.borderRadiusS} 0 0 ${Ii.borderRadiusS};
1534
1555
  }
1535
1556
 
1536
1557
  .ft-input-label--outlined:after {
1537
1558
  border-right-width: 1px;
1538
1559
  border-right-style: solid;
1539
- border-radius: 0 ${ji.borderRadiusS} ${ji.borderRadiusS} 0;
1560
+ border-radius: 0 ${Ii.borderRadiusS} ${Ii.borderRadiusS} 0;
1540
1561
  }
1541
1562
 
1542
1563
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1543
1564
  padding: 2px 4px;
1544
- z-index: ${ji.raisedZIndex};
1545
- background-color: ${ji.colorSurface};
1546
- border-radius: ${ji.borderRadiusS};
1565
+ z-index: ${Ii.raisedZIndex};
1566
+ background-color: ${Ii.colorSurface};
1567
+ border-radius: ${Ii.borderRadiusS};
1547
1568
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1548
1569
  }
1549
1570
 
1550
1571
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1551
1572
  border-top: none;
1552
1573
  }
1553
- `],Fi([o.property({type:String})],Mi.prototype,"text",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"raised",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"outlined",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"disabled",void 0),Fi([o.property({type:Boolean})],Mi.prototype,"error",void 0),e.customElement("ft-input-label")(Mi);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 Ti 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}))}}Ti.elementDefinitions={},Ai([o.property({type:String})],Ti.prototype,"label",void 0),Ai([o.property({type:Object,converter:t=>t})],Ti.prototype,"value",void 0),Ai([o.property({type:Boolean,reflect:!0})],Ti.prototype,"selected",void 0);const Ni={labelSize:e.FtCssVariable.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariable.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariable.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:e.FtCssVariable.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariable.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariable.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariable.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariable.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class Ri 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`
1574
+ `],Ei([o.property({type:String})],Li.prototype,"text",void 0),Ei([o.property({type:Boolean})],Li.prototype,"raised",void 0),Ei([o.property({type:Boolean})],Li.prototype,"outlined",void 0),Ei([o.property({type:Boolean})],Li.prototype,"disabled",void 0),Ei([o.property({type:Boolean})],Li.prototype,"error",void 0),e.customElement("ft-input-label")(Li);var Di=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}render(){return i.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Fi.elementDefinitions={},Di([o.property({type:String})],Fi.prototype,"label",void 0),Di([o.property({type:Object,converter:t=>t})],Fi.prototype,"value",void 0),Di([o.property({type:Boolean,reflect:!0})],Fi.prototype,"selected",void 0);const ji={labelSize:e.FtCssVariable.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariable.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariable.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:e.FtCssVariable.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:e.FtCssVariable.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariable.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariable.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariable.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariable.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class Mi 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`
1554
1575
  <div class="${n.classMap(p)}" part="container">
1555
1576
  <div class="ft-select--main-panel" part="main-panel">
1556
1577
  <ft-input-label text="${this.label}"
@@ -1598,7 +1619,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1598
1619
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
1599
1620
  ${t.label}
1600
1621
  </div>
1601
- `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),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.minWidth=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){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ri.elementDefinitions={"ft-input-label":Mi,"ft-typography":Yt,"ft-ripple":pe,"ft-icon":Be},Ri.styles=[qt,Vt,i.css`
1622
+ `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),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.minWidth=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){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Mi.elementDefinitions={"ft-input-label":Li,"ft-typography":Yt,"ft-ripple":pe,"ft-icon":Se},Mi.styles=[Kt,qt,i.css`
1602
1623
  *:focus {
1603
1624
  outline: none;
1604
1625
  }
@@ -1612,7 +1633,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1612
1633
  .ft-select--main-panel {
1613
1634
  position: relative;
1614
1635
  display: flex;
1615
- height: calc(4 * ${Ni.verticalSpacing} + ${Ni.labelSize} + ${Ni.selectedOptionSize});
1636
+ height: calc(4 * ${ji.verticalSpacing} + ${ji.labelSize} + ${ji.selectedOptionSize});
1616
1637
  }
1617
1638
 
1618
1639
  .ft-select--input-panel {
@@ -1624,8 +1645,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1624
1645
  padding-left: 16px;
1625
1646
  padding-right: 8px;
1626
1647
  gap: 8px;
1627
- color: ${Ni.selectedOptionColor};
1628
- ${e.setVariable(se.color,Ni.selectedOptionColor)};
1648
+ color: ${ji.selectedOptionColor};
1649
+ ${e.setVariable(se.color,ji.selectedOptionColor)};
1629
1650
  }
1630
1651
 
1631
1652
  .ft-select--input-panel,
@@ -1641,7 +1662,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1641
1662
 
1642
1663
  .ft-select--disabled .ft-select--input-panel,
1643
1664
  .ft-select--disabled .ft-select--option {
1644
- color: ${Ni.colorOnSurfaceDisabled};
1665
+ color: ${ji.colorOnSurfaceDisabled};
1645
1666
  }
1646
1667
 
1647
1668
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -1650,18 +1671,18 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1650
1671
  }
1651
1672
 
1652
1673
  ft-input-label {
1653
- ${e.setVariable(ji.fontSize,Ni.selectedOptionSize)};
1654
- ${e.setVariable(ji.raisedFontSize,Ni.labelSize)};
1655
- ${e.setVariable(ji.verticalSpacing,Ni.verticalSpacing)};
1674
+ ${e.setVariable(Ii.fontSize,ji.selectedOptionSize)};
1675
+ ${e.setVariable(Ii.raisedFontSize,ji.labelSize)};
1676
+ ${e.setVariable(Ii.verticalSpacing,ji.verticalSpacing)};
1656
1677
  }
1657
1678
 
1658
1679
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1659
- color: ${Ni.colorPrimary};
1680
+ color: ${ji.colorPrimary};
1660
1681
  }
1661
1682
 
1662
1683
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1663
- ${e.setVariable(ji.borderColor,Ni.colorPrimary)};
1664
- ${e.setVariable(ji.textColor,Ni.colorPrimary)};
1684
+ ${e.setVariable(Ii.borderColor,ji.colorPrimary)};
1685
+ ${e.setVariable(Ii.textColor,ji.colorPrimary)};
1665
1686
  }
1666
1687
 
1667
1688
  .ft-select--selected-option {
@@ -1671,12 +1692,12 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1671
1692
  overflow: hidden;
1672
1693
  white-space: nowrap;
1673
1694
  text-overflow: ellipsis;
1674
- ${e.setVariable(zt.fontSize,Ni.selectedOptionSize)};
1675
- ${e.setVariable(zt.lineHeight,Ni.selectedOptionSize)};
1695
+ ${e.setVariable(zt.fontSize,ji.selectedOptionSize)};
1696
+ ${e.setVariable(zt.lineHeight,ji.selectedOptionSize)};
1676
1697
  }
1677
1698
 
1678
1699
  .ft-select--in-error .ft-select--selected-option {
1679
- color: ${Ni.colorError};
1700
+ color: ${ji.colorError};
1680
1701
  }
1681
1702
 
1682
1703
  ft-icon {
@@ -1688,16 +1709,16 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1688
1709
  }
1689
1710
 
1690
1711
  .ft-select--filled .ft-select--input-panel {
1691
- border-radius: ${Ni.borderRadiusS} ${Ni.borderRadiusS} 0 0;
1712
+ border-radius: ${ji.borderRadiusS} ${ji.borderRadiusS} 0 0;
1692
1713
  }
1693
1714
 
1694
1715
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1695
1716
  align-self: stretch;
1696
- padding-top: calc(${Ni.labelSize} + 2 * ${Ni.verticalSpacing});
1717
+ padding-top: calc(${ji.labelSize} + 2 * ${ji.verticalSpacing});
1697
1718
  }
1698
1719
 
1699
1720
  .ft-select--outlined .ft-select--input-panel {
1700
- border-radius: ${Ni.borderRadiusS};
1721
+ border-radius: ${ji.borderRadiusS};
1701
1722
  }
1702
1723
 
1703
1724
  .ft-select--options {
@@ -1706,10 +1727,10 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1706
1727
  top: 100%;
1707
1728
  left: 0;
1708
1729
  right: 0;
1709
- color: ${Ni.optionsColor};
1710
- background: ${Ni.colorSurface};
1711
- z-index: ${Ni.optionsZIndex};
1712
- box-shadow: ${Ni.elevation02};
1730
+ color: ${ji.optionsColor};
1731
+ background: ${ji.colorSurface};
1732
+ z-index: ${ji.optionsZIndex};
1733
+ box-shadow: ${ji.elevation02};
1713
1734
  }
1714
1735
 
1715
1736
  .ft-select--fixed .ft-select--options {
@@ -1720,6 +1741,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1720
1741
 
1721
1742
  .ft-select--options-displayed .ft-select--options {
1722
1743
  display: block;
1744
+ max-height: ${ji.optionsHeight};
1745
+ overflow-y: auto;
1723
1746
  }
1724
1747
 
1725
1748
  .ft-select--option {
@@ -1732,14 +1755,14 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1732
1755
 
1733
1756
  .ft-select--helper-text {
1734
1757
  padding: 0 12px 0 16px;
1735
- color: ${Ni.helperColor};
1758
+ color: ${ji.helperColor};
1736
1759
  }
1737
1760
 
1738
1761
  .ft-select--in-error .ft-select--helper-text {
1739
- color: ${Ni.colorError};
1762
+ color: ${ji.colorError};
1740
1763
  }
1741
- `],Ai([o.property({type:String})],Ri.prototype,"label",void 0),Ai([o.property({type:String})],Ri.prototype,"helper",void 0),Ai([o.property({type:Boolean})],Ri.prototype,"outlined",void 0),Ai([o.property({type:Boolean})],Ri.prototype,"disabled",void 0),Ai([o.property({type:Boolean})],Ri.prototype,"error",void 0),Ai([o.property({type:Boolean})],Ri.prototype,"fixedMenuPosition",void 0),Ai([o.property({type:Array})],Ri.prototype,"options",void 0),Ai([o.state()],Ri.prototype,"selectedOption",void 0),Ai([o.state()],Ri.prototype,"optionsDisplayed",void 0),Ai([o.state()],Ri.prototype,"focusOptions",void 0),Ai([o.query(".ft-select")],Ri.prototype,"container",void 0),Ai([o.query(".ft-select--options")],Ri.prototype,"optionsMenu",void 0),Ai([o.query(".ft-select--input-panel")],Ri.prototype,"mainPanel",void 0),Ai([o.query(".ft-select--option:first-child")],Ri.prototype,"firstOption",void 0),Ai([o.query(".ft-select--option:focus")],Ri.prototype,"focusedOption",void 0),Ai([o.query(".ft-select--option.ft-select--option-selected")],Ri.prototype,"selectedOptionElement",void 0),Ai([o.query(".ft-select--option:last-child")],Ri.prototype,"lastOption",void 0),Ai([o.query("slot")],Ri.prototype,"optionsSlot",void 0),e.customElement("ft-select")(Ri),e.customElement("ft-select-option")(Ti);const Pi={display:e.FtCssVariable.create("--ft-skeleton--display","DISPLAY","block"),width:e.FtCssVariable.create("--ft-skeleton--width","SIZE","100%"),height:e.FtCssVariable.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:e.FtCssVariable.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:e.FtCssVariable.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:e.FtCssVariable.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:e.FtCssVariable.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:e.FtCssVariable.external(e.designSystemVariables.borderRadiusM,"Design system")};class Zi extends e.FtLitElement{render(){return i.html`
1742
- `}}Zi.elementDefinitions={},Zi.styles=i.css`
1764
+ `],Di([o.property({type:String})],Mi.prototype,"label",void 0),Di([o.property({type:String})],Mi.prototype,"helper",void 0),Di([o.property({type:Boolean})],Mi.prototype,"outlined",void 0),Di([o.property({type:Boolean})],Mi.prototype,"disabled",void 0),Di([o.property({type:Boolean})],Mi.prototype,"error",void 0),Di([o.property({type:Boolean})],Mi.prototype,"fixedMenuPosition",void 0),Di([o.property({type:Array})],Mi.prototype,"options",void 0),Di([o.state()],Mi.prototype,"selectedOption",void 0),Di([o.state()],Mi.prototype,"optionsDisplayed",void 0),Di([o.state()],Mi.prototype,"focusOptions",void 0),Di([o.query(".ft-select")],Mi.prototype,"container",void 0),Di([o.query(".ft-select--options")],Mi.prototype,"optionsMenu",void 0),Di([o.query(".ft-select--input-panel")],Mi.prototype,"mainPanel",void 0),Di([o.query(".ft-select--option:first-child")],Mi.prototype,"firstOption",void 0),Di([o.query(".ft-select--option:focus")],Mi.prototype,"focusedOption",void 0),Di([o.query(".ft-select--option.ft-select--option-selected")],Mi.prototype,"selectedOptionElement",void 0),Di([o.query(".ft-select--option:last-child")],Mi.prototype,"lastOption",void 0),Di([o.query("slot")],Mi.prototype,"optionsSlot",void 0),e.customElement("ft-select")(Mi),e.customElement("ft-select-option")(Fi);const Pi={display:e.FtCssVariable.create("--ft-skeleton--display","DISPLAY","block"),width:e.FtCssVariable.create("--ft-skeleton--width","SIZE","100%"),height:e.FtCssVariable.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:e.FtCssVariable.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:e.FtCssVariable.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:e.FtCssVariable.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:e.FtCssVariable.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:e.FtCssVariable.external(e.designSystemVariables.borderRadiusM,"Design system")};class Ai extends e.FtLitElement{render(){return i.html`
1765
+ `}}Ai.elementDefinitions={},Ai.styles=i.css`
1743
1766
  :host {
1744
1767
  width: ${Pi.width};
1745
1768
  height: ${Pi.height};
@@ -1766,7 +1789,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1766
1789
  background-position: calc(100vw + ${Pi.glareWidth}) 0, calc(${Pi.glareWidth} * -1) 0;
1767
1790
  }
1768
1791
  }
1769
- `,e.customElement("ft-skeleton")(Zi);const _i={height:e.FtCssVariable.create("--ft-search-bar-height","SIZE","38px"),borderRadius:e.FtCssVariable.extend("--ft-search-bar-border-radius",e.designSystemVariables.borderRadiusS),mobileOpenPosition:e.FtCssVariable.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:e.FtCssVariable.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:e.FtCssVariable.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:e.FtCssVariable.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:e.FtCssVariable.create("--ft-search-bar-mobile-open-right","SIZE","0"),floatingZIndex:e.FtCssVariable.create("--ft-search-bar-floating-components-z-index","NUMBER","2"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurface:e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),elevation02:e.FtCssVariable.external(e.designSystemVariables.elevation02,"Design system"),buttonColor:e.FtCssVariable.external(De.color,"Button"),buttonRippleColor:e.FtCssVariable.external(De.rippleColor,"Button")},Ui=i.css`
1792
+ `,e.customElement("ft-skeleton")(Ai);const Ni={height:e.FtCssVariable.create("--ft-search-bar-height","SIZE","38px"),borderRadius:e.FtCssVariable.extend("--ft-search-bar-border-radius",e.designSystemVariables.borderRadiusS),mobileOpenPosition:e.FtCssVariable.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:e.FtCssVariable.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:e.FtCssVariable.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:e.FtCssVariable.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:e.FtCssVariable.create("--ft-search-bar-mobile-open-right","SIZE","0"),desktopFiltersHeight:e.FtCssVariable.create("--ft-search-bar-desktop-filters-height","SIZE","350px"),floatingZIndex:e.FtCssVariable.create("--ft-search-bar-floating-components-z-index","NUMBER","3"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurface:e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),elevation02:e.FtCssVariable.external(e.designSystemVariables.elevation02,"Design system"),buttonColor:e.FtCssVariable.external(Ce.color,"Button"),buttonRippleColor:e.FtCssVariable.external(Ce.rippleColor,"Button")},Ti=i.css`
1770
1793
  * {
1771
1794
  box-sizing: border-box;
1772
1795
  }
@@ -1775,7 +1798,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1775
1798
  display: flex;
1776
1799
  flex-direction: column;
1777
1800
  gap: 8px;
1778
- color: ${_i.colorOnSurface};
1801
+ color: ${Ni.colorOnSurface};
1779
1802
  outline: none;
1780
1803
  }
1781
1804
 
@@ -1784,14 +1807,18 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1784
1807
  }
1785
1808
 
1786
1809
  .ft-search-bar--mobile-menu-open {
1787
- position: ${_i.mobileOpenPosition};
1788
- top: ${_i.mobileOpenTop};
1789
- bottom: ${_i.mobileOpenBottom};
1790
- left: ${_i.mobileOpenLeft};
1791
- right: ${_i.mobileOpenRight};
1792
- z-index: ${_i.floatingZIndex};
1810
+ position: ${Ni.mobileOpenPosition};
1811
+ top: ${Ni.mobileOpenTop};
1812
+ bottom: ${Ni.mobileOpenBottom};
1813
+ left: ${Ni.mobileOpenLeft};
1814
+ right: ${Ni.mobileOpenRight};
1815
+ z-index: ${Ni.floatingZIndex};
1793
1816
  padding: 16px;
1794
- background: ${_i.colorSurface};
1817
+ background: ${Ni.colorSurface};
1818
+ }
1819
+
1820
+ .ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
1821
+ position: ${Ni.mobileOpenPosition.get("static")};
1795
1822
  }
1796
1823
 
1797
1824
  .ft-search-bar {
@@ -1799,20 +1826,20 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1799
1826
  display: flex;
1800
1827
  flex-direction: row;
1801
1828
  align-items: center;
1802
- height: ${_i.height};
1829
+ height: ${Ni.height};
1803
1830
 
1804
- background: ${_i.colorSurface};
1805
- border: 1px solid ${_i.colorOutline};
1806
- border-radius: ${_i.borderRadius};
1831
+ background: ${Ni.colorSurface};
1832
+ border: 1px solid ${Ni.colorOutline};
1833
+ border-radius: ${Ni.borderRadius};
1807
1834
  }
1808
1835
 
1809
1836
  .ft-search-bar--skeleton {
1810
- ${e.setVariable(Pi.height,_i.height)};
1811
- ${e.setVariable(Pi.borderRadiusM,_i.borderRadius)};
1837
+ ${e.setVariable(Pi.height,Ni.height)};
1838
+ ${e.setVariable(Pi.borderRadiusM,Ni.borderRadius)};
1812
1839
  }
1813
1840
 
1814
1841
  .ft-search-bar--floating-panel-open .ft-search-bar {
1815
- border-radius: ${_i.borderRadius} ${_i.borderRadius} 0 0;
1842
+ border-radius: ${Ni.borderRadius} ${Ni.borderRadius} 0 0;
1816
1843
  }
1817
1844
 
1818
1845
  .ft-search-bar--input-container {
@@ -1830,7 +1857,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1830
1857
  align-self: stretch;
1831
1858
  display: grid;
1832
1859
  padding: 0 8px;
1833
- border-radius: ${_i.borderRadius};
1860
+ border-radius: ${Ni.borderRadius};
1834
1861
  }
1835
1862
 
1836
1863
  .ft-search-bar--dense .ft-search-bar--input-outline {
@@ -1839,7 +1866,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1839
1866
  }
1840
1867
 
1841
1868
  .ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
1842
- outline: 2px solid ${_i.colorPrimary};
1869
+ outline: 2px solid ${Ni.colorPrimary};
1843
1870
  }
1844
1871
 
1845
1872
  .ft-search-bar--input {
@@ -1862,7 +1889,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1862
1889
  align-items: center;
1863
1890
  height: 100%;
1864
1891
 
1865
- --ft-tooltip-z-index: 3;
1892
+ ${e.setVariable(de.zIndex,`calc(${Ni.floatingZIndex} + 1)`)};
1866
1893
  }
1867
1894
 
1868
1895
  .ft-search-bar > ft-button,
@@ -1871,8 +1898,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1871
1898
  }
1872
1899
 
1873
1900
  .ft-search-bar--left-action {
1874
- ${e.setVariable(De.borderRadius,i.css`calc(${_i.borderRadius} - 1px) 0 0 calc(${_i.borderRadius} - 1px)`)};
1875
- border-right: 1px solid ${_i.colorOutline};
1901
+ ${e.setVariable(Ce.borderRadius,i.css`calc(${Ni.borderRadius} - 1px) 0 0 calc(${Ni.borderRadius} - 1px)`)};
1902
+ border-right: 1px solid ${Ni.colorOutline};
1876
1903
  height: 100%;
1877
1904
  }
1878
1905
 
@@ -1881,7 +1908,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1881
1908
  }
1882
1909
 
1883
1910
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
1884
- ${e.setVariable(De.borderRadius,i.css`calc(${_i.borderRadius} - 1px) 0 0 0`)};
1911
+ ${e.setVariable(Ce.borderRadius,i.css`calc(${Ni.borderRadius} - 1px) 0 0 0`)};
1885
1912
  }
1886
1913
 
1887
1914
  .ft-search-bar .ft-search-bar--launch-search,
@@ -1891,13 +1918,13 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1891
1918
 
1892
1919
  .ft-search-bar--separator {
1893
1920
  height: 20px;
1894
- border-right: 1px solid ${_i.colorOutline};
1921
+ border-right: 1px solid ${Ni.colorOutline};
1895
1922
  }
1896
1923
 
1897
1924
  .ft-search-bar--left-action.ft-search-bar--content-locale {
1898
- ${e.setVariable(ji.borderColor,"transparent")};
1899
- ${e.setVariable(ji.borderRadiusS,i.css`calc(${_i.borderRadius} - 1px)`)};
1900
- ${e.setVariable(Ni.selectedOptionColor,_i.buttonColor)};
1925
+ ${e.setVariable(Ii.borderColor,"transparent")};
1926
+ ${e.setVariable(Ii.borderRadiusS,i.css`calc(${Ni.borderRadius} - 1px)`)};
1927
+ ${e.setVariable(ji.selectedOptionColor,Ni.buttonColor)};
1901
1928
  }
1902
1929
 
1903
1930
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -1914,27 +1941,35 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1914
1941
  }
1915
1942
 
1916
1943
  .ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
1917
- border-radius: calc(${_i.borderRadius} - 1px) 0 0 calc(${_i.borderRadius} - 1px);
1944
+ border-radius: calc(${Ni.borderRadius} - 1px) 0 0 calc(${Ni.borderRadius} - 1px);
1918
1945
  }
1919
1946
 
1920
- `,Hi=i.css`
1921
- .ft-search-bar--floating-panel .ft-search-bar--presets {
1947
+ `,Ri=i.css`
1948
+ .ft-search-bar--desktop-menu .ft-search-bar--presets {
1922
1949
  margin-right: auto;
1923
1950
  }
1924
1951
 
1925
- .ft-search-bar--floating-panel .ft-search-bar--presets {
1952
+ .ft-search-bar--desktop-menu .ft-search-bar--presets {
1926
1953
  min-width: 250px;
1927
- ${e.setVariable(Ni.optionsZIndex,"2")};
1954
+ ${e.setVariable(ji.optionsZIndex,"2")};
1928
1955
  }
1929
1956
 
1930
- .ft-search-bar--floating-panel {
1957
+ .ft-search-bar--desktop-menu {
1958
+ display: flex;
1931
1959
  flex-direction: column;
1932
1960
  gap: 16px;
1961
+ }
1962
+
1963
+ .ft-search-bar + .ft-search-bar--desktop-menu {
1964
+ margin-top: 8px;
1965
+ }
1966
+
1967
+ .ft-search-bar--floating-panel {
1933
1968
  padding: 16px;
1934
1969
  }
1935
1970
 
1936
1971
  .ft-search-bar--floating-panel-open .ft-search-bar--floating-panel {
1937
- display: flex;
1972
+ display: block;
1938
1973
  }
1939
1974
 
1940
1975
  .ft-search-bar--desktop .ft-search-bar--facets-actions {
@@ -1942,6 +1977,9 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1942
1977
  align-items: center;
1943
1978
  justify-content: flex-end;
1944
1979
  gap: 8px;
1980
+ }
1981
+
1982
+ .ft-search-bar--floating-panel .ft-search-bar--facets-actions {
1945
1983
  padding: 0 10px;
1946
1984
  }
1947
1985
 
@@ -1963,13 +2001,13 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1963
2001
  display: none;
1964
2002
  }
1965
2003
 
1966
- .ft-search-bar--floating-panel .ft-search-bar--filters-container {
2004
+ .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
1967
2005
  display: block;
1968
- height: 350px;
2006
+ height: ${Ni.desktopFiltersHeight};
1969
2007
  --ft-snap-scroll-gap: 16px;
1970
2008
  }
1971
2009
 
1972
- .ft-search-bar--floating-panel ft-filter {
2010
+ .ft-search-bar--desktop-menu ft-filter {
1973
2011
  display: flex;
1974
2012
  flex-grow: 0;
1975
2013
  max-height: 100%;
@@ -2016,7 +2054,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2016
2054
 
2017
2055
  .ft-search-bar--filter-label > :last-child {
2018
2056
  flex-shrink: 1;
2019
- color: ${_i.colorOnSurfaceMedium};
2057
+ color: ${Ni.colorOnSurfaceMedium};
2020
2058
  }
2021
2059
 
2022
2060
  ft-accordion-item::part(toggle) {
@@ -2033,10 +2071,10 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2033
2071
  padding-right: 0;
2034
2072
  }
2035
2073
 
2036
- .ft-search-bar--floating-panel .ft-search-bar--launch-search {
2074
+ .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2037
2075
  margin: 0;
2038
2076
  }
2039
- `,Ki=i.css`
2077
+ `,Zi=i.css`
2040
2078
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2041
2079
  flex-shrink: 0;
2042
2080
  display: flex;
@@ -2047,7 +2085,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2047
2085
 
2048
2086
  ft-snap-scroll.ft-search-bar--selected-filters {
2049
2087
  overflow: hidden;
2050
- ${e.setVariable(ii.gap,"4px")};
2088
+ ${e.setVariable(Je.gap,"4px")};
2051
2089
  }
2052
2090
 
2053
2091
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2055,8 +2093,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2055
2093
  }
2056
2094
 
2057
2095
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2058
- ${e.setVariable(Oi.iconSize,"17px")};
2059
- ${e.setVariable(Oi.fontSize,"12px")};
2096
+ ${e.setVariable(ki.iconSize,"17px")};
2097
+ ${e.setVariable(ki.fontSize,"12px")};
2060
2098
  }
2061
2099
 
2062
2100
  .ft-search-bar--selected-filters * {
@@ -2066,7 +2104,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2066
2104
  .ft-search-bar--selected-filters ft-chip {
2067
2105
  flex-grow: 0;
2068
2106
  }
2069
- `,qi=i.css`
2107
+ `,Ui=i.css`
2070
2108
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2071
2109
  flex-grow: 1;
2072
2110
  flex-shrink: 1;
@@ -2075,7 +2113,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2075
2113
  }
2076
2114
 
2077
2115
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
2078
- border-top: 1px solid ${_i.colorOutline};
2116
+ border-top: 1px solid ${Ni.colorOutline};
2079
2117
  }
2080
2118
 
2081
2119
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
@@ -2085,15 +2123,15 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2085
2123
  .ft-search-bar--floating-panel,
2086
2124
  .ft-search-bar--desktop .ft-search-bar--suggestions {
2087
2125
  position: absolute;
2088
- z-index: var(--ft-search-bar-floating-components-z-index, 1);
2126
+ z-index: ${Ni.floatingZIndex};
2089
2127
  top: 100%;
2090
2128
  left: -1px;
2091
2129
  right: -1px;
2092
2130
  display: none;
2093
- background: ${_i.colorSurface};
2094
- border: 1px solid ${_i.colorOutline};
2095
- border-radius: 0 0 ${_i.borderRadius} ${_i.borderRadius};
2096
- box-shadow: ${_i.elevation02};
2131
+ background: ${Ni.colorSurface};
2132
+ border: 1px solid ${Ni.colorOutline};
2133
+ border-radius: 0 0 ${Ni.borderRadius} ${Ni.borderRadius};
2134
+ box-shadow: ${Ni.elevation02};
2097
2135
  outline: none;
2098
2136
  }
2099
2137
 
@@ -2108,7 +2146,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2108
2146
  .ft-search-bar--no-suggestions {
2109
2147
  text-align: center;
2110
2148
  padding: 8px;
2111
- color: ${_i.colorOnSurface};
2149
+ color: ${Ni.colorOnSurface};
2112
2150
  }
2113
2151
 
2114
2152
  .ft-search-bar--suggestion {
@@ -2119,7 +2157,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2119
2157
  padding: 8px;
2120
2158
  gap: 8px;
2121
2159
  cursor: pointer;
2122
- color: ${_i.colorOnSurface};
2160
+ color: ${Ni.colorOnSurface};
2123
2161
  min-height: 52px;
2124
2162
  }
2125
2163
 
@@ -2136,7 +2174,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2136
2174
  }
2137
2175
 
2138
2176
  .ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
2139
- border-top: 1px solid ${_i.colorOutline};
2177
+ border-top: 1px solid ${Ni.colorOutline};
2140
2178
  }
2141
2179
 
2142
2180
  .ft-search-bar--suggestion ft-typography {
@@ -2144,10 +2182,10 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2144
2182
  flex-grow: 1;
2145
2183
  flex-shrink: 1;
2146
2184
  }
2147
- `;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};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 Wi={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",searchButton:"Search",noSuggestions:"No results found…",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Preset",removeRecentSearch:"Remove",back:"Back"};class Gi extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class Xi extends CustomEvent{constructor(t){super("change",{detail:t})}}class Yi extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new e.ParametrizedLabelResolver(Wi,{}),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={},this.query="",this.suggestions=[],this.suggestionsLoaded=!0,this.recentSearches=[],this.updateFacetsDebouncer=new e.Debouncer(500),this.suggestDebouncer=new e.Debouncer(300),this.facetsLoaded=!1,this.closeFloatingContainer=t=>{this.isMobile||(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))},this.compareFilters=(t,e)=>t.key===e.key&&t.negative==e.negative&&t.values.length===e.values.length&&t.values.every((t=>e.values.includes(t))),this.compareRequests=(t,e)=>(null==t.contentLocale||null==e.contentLocale||t.contentLocale===e.contentLocale)&&t.filters.length===e.filters.length&&t.filters.every((t=>e.filters.some((e=>this.compareFilters(t,e)))))}get isMobileMenuOpen(){return this.forceMobileMenuOpen||this.mobileMenuOpen}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}get isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===l.S}}get hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return null!=this.presets&&this.presets.length>0}get hasPriors(){return null!=this.priors&&this.priors.length>0}get hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return i.html`
2185
+ `;var _i=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 Hi={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",noSuggestions:"No results found…",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Preset",removeRecentSearch:"Remove",back:"Back"};class Vi extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class Ki extends CustomEvent{constructor(t){super("change",{detail:t})}}const qi=()=>{};class Wi 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(Hi,{}),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.suggestionsLoaded=!0,this.recentSearches=[],this.updateFacetsDebouncer=new e.Debouncer(500),this.suggestDebouncer=new e.Debouncer(300),this.facetsLoaded=!1,this.closeFloatingContainer=t=>{this.isMobile||(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))},this.compareFilters=(t,e)=>t.key===e.key&&t.negative==e.negative&&t.values.length===e.values.length&&t.values.every((t=>e.values.includes(t))),this.compareRequests=(t,e)=>(null==t.contentLocale||null==e.contentLocale||t.contentLocale===e.contentLocale)&&t.filters.length===e.filters.length&&t.filters.every((t=>e.filters.some((e=>this.compareFilters(t,e)))))}get isMobileMenuOpen(){return this.isMobile&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}get isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===l.S}}get hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return null!=this.presets&&this.presets.length>0}get hasPriors(){return null!=this.priors&&this.priors.length>0}get hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return i.html`
2148
2186
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2149
2187
  ${this.renderSearchBar()}
2150
- `}renderSearchBar(){const t={"ft-search-bar--container":!0,"ft-search-bar--dense":!this.isMobile&&this.dense,"ft-search-bar--mobile":this.isMobile,"ft-search-bar--desktop":!this.isMobile,"ft-search-bar--floating-panel-open":!this.isMobile&&this.displayFacets,"ft-search-bar--mobile-menu-open":this.isMobileMenuOpen};return this.facetsInitialized&&this.availableContentLocalesInitialized?i.html`
2188
+ `}renderSearchBar(){const t={"ft-search-bar--container":!0,"ft-search-bar--dense":!this.isMobile&&this.dense,"ft-search-bar--mobile":this.isMobile,"ft-search-bar--desktop":!this.isMobile,"ft-search-bar--floating-panel-open":!this.isMobile&&this.displayFacets&&!this.forceMenuOpen,"ft-search-bar--mobile-menu-open":this.isMobileMenuOpen,"ft-search-bar--forced-open":this.forceMenuOpen||this.forceMobileMenuOpen};return this.facetsInitialized&&this.availableContentLocalesInitialized?i.html`
2151
2189
  <div class="${n.classMap(t)}" part="container" tabindex="-1">
2152
2190
  ${this.isMobile?this.renderMobileSearchBar():this.renderDesktopSearchBar()}
2153
2191
  </div>
@@ -2178,7 +2216,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2178
2216
  ${this.labelResolver.resolve("searchButton")}
2179
2217
  </ft-button>
2180
2218
  `:i.nothing}
2181
- `}renderMobileSearchBarButtons(){return this.query||this.isMobileMenuOpen?i.html`
2219
+ `}renderMobileSearchBarButtons(){const t=this.query||this.isMobileMenuOpen&&!this.forceMobileMenuOpen;return i.html`
2220
+ ${t?i.html`
2182
2221
  <div class="ft-search-bar--actions"
2183
2222
  part="search-bar-actions">
2184
2223
  <ft-button class="ft-search-bar--clear-query"
@@ -2186,10 +2225,11 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2186
2225
  icon="close"
2187
2226
  round
2188
2227
  label="${this.labelResolver.resolve("clearInputButton")}"
2228
+ tooltipPosition="left"
2189
2229
  @click=${()=>{this.setQuery(""),this.mobileMenuOpen=!1,this.displayFacets=!1}}
2190
2230
  ></ft-button>
2191
2231
  </div>
2192
- `:i.html`
2232
+ `:i.nothing}
2193
2233
  <div class="ft-search-bar--actions"
2194
2234
  part="search-bar-actions">
2195
2235
  <ft-button class="ft-search-bar--launch-search"
@@ -2197,7 +2237,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2197
2237
  icon="search"
2198
2238
  round
2199
2239
  label="${this.labelResolver.resolve("searchButton")}"
2200
- @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}
2240
+ tooltipPosition="left"
2241
+ @click=${()=>{var t;return this.isMobileMenuOpen?this.launchSearch():null===(t=this.input)||void 0===t?void 0:t.focus()}}
2201
2242
  ></ft-button>
2202
2243
  </div>
2203
2244
  `}renderMobileFacets(){var t;const e=this.availableContentLocales.filter((t=>t.lang===this.contentLocale)).pop();return i.html`
@@ -2212,7 +2253,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2212
2253
  </ft-typography>
2213
2254
  </div>
2214
2255
  <ft-filter
2215
- part="filters"
2256
+ part="filters filter-ft-locale"
2257
+ .exportpartsPrefixes=${["filter","filter-ft-locale"]}
2216
2258
  class="ft-search-bar--content-locale"
2217
2259
  filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",this.labelResolver.resolve("contentLocaleSelector"))}"
2218
2260
  .options=${this.contentLocalesAsFilterOptions()}
@@ -2220,7 +2262,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2220
2262
  ></ft-filter>
2221
2263
  </ft-accordion-item>
2222
2264
  `:null}
2223
- ${s.repeat(this.facets,(t=>t.key),(t=>{const e=ee(t);return i.html`
2265
+ ${s.repeat(this.facets,(t=>t.key),(t=>{const e=ee(t),o=t.key.replace(":","-");return t.rootNodes.length>0?i.html`
2224
2266
  <ft-accordion-item data-facet-key="${t.key}">
2225
2267
  <div class="ft-search-bar--filter-label" slot="toggle">
2226
2268
  <ft-typography variant="button">${t.label}</ft-typography>
@@ -2229,11 +2271,13 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2229
2271
  </ft-typography>
2230
2272
  </div>
2231
2273
  <ft-filter
2232
- part="filters"
2274
+ part="filters filter filter-${o}"
2275
+ .exportpartsPrefixes=${["filter","filter-"+o]}
2233
2276
  id="${e.id}"
2234
2277
  filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",e.label)}"
2235
2278
  clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
2236
2279
  moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
2280
+ noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
2237
2281
  ?multivalued=${e.multivalued}
2238
2282
  raiseSelectedOptions
2239
2283
  .options=${e.options}
@@ -2241,7 +2285,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2241
2285
  @change=${t=>this.setFilter(e.id,t.detail)}
2242
2286
  ></ft-filter>
2243
2287
  </ft-accordion-item>
2244
- `}))}
2288
+ `:i.nothing}))}
2245
2289
  </ft-accordion>
2246
2290
  `}contentLocalesAsFilterOptions(){return this.availableContentLocales.map((t=>({value:t.lang,label:t.label,selected:t.lang==this.contentLocale})))}renderDesktopSearchBar(){return i.html`
2247
2291
  <div class="ft-search-bar" part="search-bar">
@@ -2260,21 +2304,28 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2260
2304
  ${this.renderSuggestions()}
2261
2305
  </div>
2262
2306
  ${this.renderDesktopSearchBarButtons()}
2263
- <div class="ft-search-bar--floating-panel" @keyup=${this.onFloatingContainerKeyUp} tabindex="-1">
2264
- ${this.renderFacetsActions()}
2265
- ${this.renderDesktopFacets()}
2266
- <div class="ft-search-bar--facets-actions">
2267
- <ft-button class="ft-search-bar--launch-search"
2268
- part="launch-search-in-panel"
2269
- icon="search"
2270
- @click=${this.launchSearch}>
2271
- ${this.labelResolver.resolve("searchButton")}
2272
- </ft-button>
2273
- </div>
2307
+ ${this.forceMenuOpen?i.nothing:i.html`
2308
+ <div class="ft-search-bar--floating-panel" @keyup=${this.onFloatingContainerKeyUp}
2309
+ tabindex="-1">
2310
+ ${this.renderDesktopMenu()}
2311
+ </div>`}
2312
+ </div>
2313
+ ${this.dense||this.forceMenuOpen?this.forceMenuOpen?this.renderDesktopMenu():i.nothing:this.renderSelectedFacets()}
2314
+ `}renderDesktopMenu(){return this.hasFacets?i.html`
2315
+ <div class="ft-search-bar--desktop-menu">
2316
+ ${this.renderFacetsActions()}
2317
+ ${this.renderDesktopFacets()}
2318
+ <div class="ft-search-bar--facets-actions">
2319
+ ${this.forceMenuOpen?this.renderDesktopClearFilters():i.nothing}
2320
+ <ft-button class="ft-search-bar--launch-search"
2321
+ part="launch-search-in-panel"
2322
+ icon="search"
2323
+ @click=${this.launchSearch}>
2324
+ ${this.labelResolver.resolve("searchButton")}
2325
+ </ft-button>
2274
2326
  </div>
2275
2327
  </div>
2276
- ${this.dense?i.nothing:this.renderSelectedFacets()}
2277
- `}renderSearchBarLeftAction(){return this.hasFacets?i.html`
2328
+ `:i.nothing}renderSearchBarLeftAction(){return this.hasFacets?this.forceMenuOpen?i.nothing:i.html`
2278
2329
  <ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
2279
2330
  part="filters-opener"
2280
2331
  trailingIcon
@@ -2333,36 +2384,40 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2333
2384
  `))}
2334
2385
  </ft-select>
2335
2386
  `:i.nothing}
2336
- ${this.searchFilters.length>0?i.html`
2337
- <ft-button part="facets-actions"
2338
- @click=${this.clearFilters}>
2339
- ${this.labelResolver.resolve("clearFilters")}
2340
- </ft-button>
2341
- `:i.nothing}
2342
2387
  <slot name="facets-actions"></slot>
2388
+ ${this.forceMenuOpen&&!this.isMobile?i.nothing:this.renderDesktopClearFilters()}
2343
2389
  </div>
2344
- `}renderDesktopFacets(){return this.hasFacets?i.html`
2390
+ `}renderDesktopClearFilters(){return this.searchFilters.length>0?i.html`
2391
+ <ft-button part="facets-actions"
2392
+ @click=${this.clearFilters}>
2393
+ ${this.labelResolver.resolve("clearFilters")}
2394
+ </ft-button>
2395
+ `:i.nothing}renderDesktopFacets(){return this.hasFacets?i.html`
2345
2396
  <ft-snap-scroll horizontal limitSize controls
2346
2397
  class="ft-search-bar--filters-container"
2347
- part="filters-container">
2398
+ part="filters-container"
2399
+ exportpartsPrefix="filters-container">
2348
2400
  ${this.hasLocaleSelector?i.html`
2349
- <ft-filter part="filters"
2350
- class="ft-search-bar--content-locale"
2401
+ <ft-filter class="ft-search-bar--content-locale"
2402
+ part="filters filter-ft-locale"
2403
+ .exportpartsPrefixes=${["filter","filter-ft-locale"]}
2351
2404
  label="${this.labelResolver.resolve("contentLocaleSelector")}"
2352
2405
  filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",this.labelResolver.resolve("contentLocaleSelector"))}"
2353
2406
  .options=${this.contentLocalesAsFilterOptions()}
2354
2407
  @change=${t=>this.contentLocale=t.detail[0]}
2355
2408
  ></ft-filter>
2356
2409
  `:i.nothing}
2357
- ${s.repeat(this.facets,(t=>t.key),(t=>{const e=ee(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}));return i.html`
2410
+ ${s.repeat(this.facets,(t=>t.key),(t=>{const e=ee(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`
2358
2411
  <ft-filter
2359
2412
  class="${o?"ft-search-bar--hierarchical-filter":""}"
2360
- part="filters"
2413
+ part="filters filter filter-${s}"
2414
+ .exportpartsPrefixes=${["filter","filter-"+s]}
2361
2415
  id="${e.id}"
2362
2416
  label="${e.label}"
2363
2417
  filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",e.label)}"
2364
2418
  clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
2365
2419
  moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
2420
+ noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
2366
2421
  ?multivalued=${e.multivalued}
2367
2422
  raiseSelectedOptions
2368
2423
  .options=${e.options}
@@ -2373,16 +2428,16 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2373
2428
  </ft-snap-scroll>
2374
2429
  `:i.nothing}renderSelectedFacets(){if(!this.hasLocaleSelector&&!this.hasFacets)return null;const t=!this.isMobile&&this.dense||this.isMobile&&this.isMobileMenuOpen,e=i.html`
2375
2430
  ${this.hasLocaleSelector&&(this.hasFacets||this.isMobile)?i.html`
2376
- <ft-chip part="selected-filters"
2431
+ <ft-chip part="selected-filters selected-filter-ft-locale"
2377
2432
  ?dense=${this.dense&&!this.isMobile}
2378
2433
  ?clickable=${this.isMobile}
2379
2434
  @click=${()=>this.openMobileFilters("ft:contentLocale")}>
2380
2435
  ${this.getLocaleLabel(this.contentLocale)}
2381
2436
  </ft-chip>
2382
2437
  `:null}
2383
- ${s.repeat(this.facets,(t=>t.key),(e=>{const o=function(t){return Jt(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(e);return s.repeat(o,(s=>{let n=e.label+": "+function(t){return Qt(t).split("|").join(" > ")}(s);const r=i.html`
2438
+ ${s.repeat(this.facets,(t=>t.key),(e=>{const o=function(t){return Jt(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(e);return s.repeat(o,(s=>{let n=e.label+": "+function(t){return Qt(t).split("|").join(" > ")}(s);const r=e.key.replace(":","-"),l=i.html`
2384
2439
  <ft-chip
2385
- part="selected-filters"
2440
+ part="selected-filters selected-filter-${r}"
2386
2441
  ?dense=${this.dense&&!this.isMobile}
2387
2442
  ?clickable=${this.isMobile}
2388
2443
  ?removable=${!this.isMobile}
@@ -2393,13 +2448,13 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2393
2448
  @icon-click=${()=>this.setFilter(e.key,o.filter((t=>t!==s)))}>
2394
2449
  ${function(t){return Qt(t).split("|").pop()}(s)}
2395
2450
  </ft-chip>
2396
- `;return t?r:i.html`
2451
+ `;return t?l:i.html`
2397
2452
  <ft-tooltip inline text="${n}">
2398
- ${r}
2453
+ ${l}
2399
2454
  </ft-tooltip>
2400
2455
  `}))}))}
2401
2456
  ${this.isMobile?i.html`
2402
- <ft-chip part="selected-filters"
2457
+ <ft-chip part="selected-filters mobile-filters-opener"
2403
2458
  icon="add"
2404
2459
  clickable
2405
2460
  @click=${()=>{this.mobileMenuOpen=!0,this.displayFacets=!0}}>
@@ -2409,7 +2464,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2409
2464
  `;return t?i.html`
2410
2465
  <ft-snap-scroll horizontal controls hideScrollbar limitSize
2411
2466
  class="ft-search-bar--selected-filters"
2412
- part="selected-filters-container">
2467
+ part="selected-filters-container"
2468
+ exportpartsPrefix="selected-filters-container">
2413
2469
  ${e}
2414
2470
  </ft-snap-scroll>
2415
2471
  `:i.html`
@@ -2433,6 +2489,7 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2433
2489
  part="remove-suggestion"
2434
2490
  ?dense=${!this.isMobile}
2435
2491
  label="${this.labelResolver.resolve("removeRecentSearch")}"
2492
+ tooltipPosition="left"
2436
2493
  @click=${e=>this.removeRecentSearch(e,t)}></ft-button>
2437
2494
  </a>
2438
2495
  `))}
@@ -2454,8 +2511,8 @@ const K=Symbol.for(""),q=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
2454
2511
  </ft-typography>
2455
2512
  `:null}
2456
2513
  </div>
2457
- `}getIcon(t){const e="DOCUMENT"===t.type?ze.file_format:ze.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?$e.BOOK:$e.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=Se.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(n=null!==(s=null!==(o=ke.get(l))&&void 0!==o?o:ke.get(e))&&void 0!==s?s:ke.get(r))&&void 0!==n?n:we.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=$e.TOPICS}return i.html`
2514
+ `}getIcon(t){const e="DOCUMENT"===t.type?$e.file_format:$e.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ge.BOOK:ge.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=me.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(n=null!==(s=null!==(o=ye.get(l))&&void 0!==o?o:ye.get(e))&&void 0!==s?s:ye.get(r))&&void 0!==n?n:xe.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ge.TOPICS}return i.html`
2458
2515
  <ft-icon variant="${e}" part="suggestion-icon">
2459
2516
  ${o}
2460
2517
  </ft-icon>
2461
- `}openMobileFilters(t){this.isMobile&&(this.mobileMenuOpen=!0,this.displayFacets=!0,this.scrollToFacet=t)}async firstUpdated(t){super.firstUpdated(t),this.initApi()}update(t){var i,o,s,n,r,l;if(t.has("labels")&&(this.labelResolver=new e.ParametrizedLabelResolver(Wi,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.recentSearches=JSON.parse(null!==(o=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==o?o:"[]")),t.has("presets")&&(null!==(s=this.presets)&&void 0!==s?s:[]).forEach((t=>t.filters.forEach((t=>t.values=t.values.map((t=>Qt(t))))))),t.has("selectedPreset")){const t=(null!==(n=this.presets)&&void 0!==n?n:[]).find((t=>t.name===this.selectedPreset));t&&!this.compareRequests(this.request,t)&&this.setFiltersFromPreset(t)}["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(l=(null!==(r=this.presets)&&void 0!==r?r:[]).find((t=>this.compareRequests(t,this.request))))||void 0===l?void 0:l.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&(this.api=void 0,this.initApi(),this.availableContentLocalesInitialized=!1,this.facetsInitialized=!1),t.has("api")&&this.updateAvailableContentLocales(),["uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateSuggestions(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchEvent(new Xi(this.request))}async updateAvailableContentLocales(){this.api&&(this.availableContentLocales=await this.api.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[])),this.availableContentLocalesInitialized=!0)}contentAvailableCallback(t){var e,i,o;if(super.contentAvailableCallback(t),t.has("displayFacets")&&this.displayFacets&&(null===(e=this.floatingContainer)||void 0===e||e.focus()),null!=this.scrollToFacet&&this.facetsLoaded){null===(i=this.scrollingFiltersContainer)||void 0===i||i.scrollIndexIntoView(this.facets.findIndex((t=>t.key===this.scrollToFacet)));const t=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);t&&(t.active=!0),this.scrollToFacet=void 0}}initApi(){null==this.api&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout((()=>this.initApi()),100))}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{var t,e;this.facets=null!==(e=await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets)).catch((()=>[]))))&&void 0!==e?e:[],this.facets.forEach((t=>this.knownFacetLabels[t.key]=t.label)),this.facetsLoaded=!0,this.facetsInitialized=!0}))):(this.facets=[],this.facetsInitialized=!0))}updateSuggestions(){this.suggestionsLoaded=!1,this.suggestDebouncer.run((async()=>{this.suggestions=this.api&&this.query.length>2?await this.api.getSuggestions(this.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],this.suggestionsLoaded=!0}))}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.query=e.value,"Enter"===t.key&&this.launchSearch()}onSearchBarKeyDown(t){var e,i;switch(t.key){case"Escape":this.mobileMenuOpen=!1,null===(e=this.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),null===(i=this.firstSuggestion)||void 0===i||i.focus()}}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.setQuery(e),this.launchSearch()}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.dispatchEvent(new Gi(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}saveRecentSearches(){window.localStorage.setItem(this.recentSearchesStorageKey,JSON.stringify(this.recentSearches))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}getLocaleLabel(t){var e;return null!==(e=this.availableContentLocales.filter((e=>{var i;return(null!==(i=e.lang)&&void 0!==i?i:"").toLowerCase()===(null!=t?t:"").toLowerCase()})).map((t=>t.label)).pop())&&void 0!==e?e:t}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&Jt(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=>Jt(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}removeRecentSearch(t,e){var i,o,s,n;t.preventDefault(),t.stopPropagation();const r=null!==(n=null!==(o=null===(i=this.focusedSuggestion)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:null===(s=this.focusedSuggestion)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.input;null==r||r.focus(),this.recentSearches=this.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.saveRecentSearches()}onSuggestKeyDown(t){var e,i,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.focusedSuggestion)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastSuggestion)||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.focusedSuggestion)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstSuggestion)||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}}Yi.elementDefinitions={"ft-accordion":xi,"ft-accordion-item":ki,"ft-button":Me,"ft-chip":Li,"ft-filter":ui,"ft-filter-option":vi,"ft-icon":Be,"ft-ripple":pe,"ft-select":Ri,"ft-select-option":Ti,"ft-size-watcher":p,"ft-skeleton":Zi,"ft-snap-scroll":si,"ft-tooltip":xe,"ft-typography":Yt},Yi.styles=[qt,Ui,Hi,Ki,qi],Vi([o.property({type:Boolean})],Yi.prototype,"dense",void 0),Vi([o.property()],Yi.prototype,"mode",void 0),Vi([o.property({type:Boolean})],Yi.prototype,"forceMobileMenuOpen",void 0),Vi([o.property()],Yi.prototype,"baseUrl",void 0),Vi([o.property()],Yi.prototype,"apiIntegrationIdentifier",void 0),Vi([o.property()],Yi.prototype,"contentLocale",void 0),Vi([o.state()],Yi.prototype,"availableContentLocales",void 0),Vi([o.state()],Yi.prototype,"availableContentLocalesInitialized",void 0),Vi([o.property()],Yi.prototype,"uiLocale",void 0),Vi([e.jsonProperty({})],Yi.prototype,"labels",void 0),Vi([e.jsonProperty([])],Yi.prototype,"displayedFilters",void 0),Vi([e.jsonProperty([])],Yi.prototype,"presets",void 0),Vi([o.property({type:String,reflect:!0})],Yi.prototype,"selectedPreset",void 0),Vi([e.jsonProperty([])],Yi.prototype,"priors",void 0),Vi([o.property()],Yi.prototype,"searchRequestSerializer",void 0),Vi([o.state()],Yi.prototype,"searchFilters",void 0),Vi([o.state()],Yi.prototype,"sizeCategory",void 0),Vi([o.state()],Yi.prototype,"displayFacets",void 0),Vi([o.state()],Yi.prototype,"mobileMenuOpen",void 0),Vi([o.state()],Yi.prototype,"facets",void 0),Vi([o.state()],Yi.prototype,"facetsInitialized",void 0),Vi([o.query(".ft-search-bar--container")],Yi.prototype,"container",void 0),Vi([o.query(".ft-search-bar--filters-opener")],Yi.prototype,"filtersOpener",void 0),Vi([o.query(".ft-search-bar--floating-panel")],Yi.prototype,"floatingContainer",void 0),Vi([o.query("ft-snap-scroll.ft-search-bar--filters-container")],Yi.prototype,"scrollingFiltersContainer",void 0),Vi([o.query(".ft-search-bar--input")],Yi.prototype,"input",void 0),Vi([o.state()],Yi.prototype,"query",void 0),Vi([o.state()],Yi.prototype,"suggestions",void 0),Vi([o.state()],Yi.prototype,"suggestionsLoaded",void 0),Vi([o.state()],Yi.prototype,"recentSearches",void 0),Vi([o.state()],Yi.prototype,"scrollToFacet",void 0),Vi([o.query(".ft-search-bar--suggestion:first-child")],Yi.prototype,"firstSuggestion",void 0),Vi([o.query(".ft-search-bar--suggestion:focus-within")],Yi.prototype,"focusedSuggestion",void 0),Vi([o.query(".ft-search-bar--suggestion:last-child")],Yi.prototype,"lastSuggestion",void 0),Vi([o.state()],Yi.prototype,"api",void 0),e.customElement("ft-search-bar")(Yi),t.DEFAULT_LABELS=Wi,t.FtSearchBar=Yi,t.FtSearchBarCssVariables=_i,t.LaunchSearchEvent=Gi,t.SearchStateChangeEvent=Xi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
2518
+ `}openMobileFilters(t){this.isMobile&&(this.mobileMenuOpen=!0,this.displayFacets=!0,this.scrollToFacet=t)}async firstUpdated(t){super.firstUpdated(t),this.initApi()}update(t){var i,o,s,n,r,l;if(t.has("labels")&&(this.labelResolver=new e.ParametrizedLabelResolver(Hi,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.recentSearches=JSON.parse(null!==(o=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==o?o:"[]")),t.has("presets")&&(null!==(s=this.presets)&&void 0!==s?s:[]).forEach((t=>t.filters.forEach((t=>t.values=t.values.map((t=>Qt(t))))))),t.has("selectedPreset")){const t=(null!==(n=this.presets)&&void 0!==n?n:[]).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===(l=(null!==(r=this.presets)&&void 0!==r?r:[]).find((t=>this.compareRequests(t,this.request))))||void 0===l?void 0:l.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&(this.api=void 0,this.initApi(),this.availableContentLocalesInitialized=!1,this.facetsInitialized=!1),t.has("api")&&this.updateAvailableContentLocales(),["uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateSuggestions(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchEvent(new Ki(this.request))}async updateAvailableContentLocales(){this.api&&(this.availableContentLocales=await this.api.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[])),this.availableContentLocalesInitialized=!0)}contentAvailableCallback(t){var e,i,o;if(super.contentAvailableCallback(t),t.has("displayFacets")&&this.displayFacets&&(null===(e=this.floatingContainer)||void 0===e||e.focus()),null!=this.scrollToFacet&&this.facetsLoaded){null===(i=this.scrollingFiltersContainer)||void 0===i||i.scrollIndexIntoView(this.facets.findIndex((t=>t.key===this.scrollToFacet)));const t=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);t&&(t.active=!0),this.scrollToFacet=void 0}}initApi(){null==this.api&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout((()=>this.initApi()),100))}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{var t;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(qi)),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});this.facetsLoaded=!0,this.facetsInitialized=!0}))):(this.facets=[],this.facetsInitialized=!0))}updateSuggestions(){this.suggestionsLoaded=!1,this.suggestDebouncer.run((async()=>{this.suggestions=this.api&&this.query.length>2?await this.api.getSuggestions(this.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],this.suggestionsLoaded=!0}))}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.query=e.value,"Enter"===t.key&&this.launchSearch()}onSearchBarKeyDown(t){var e,i;switch(t.key){case"Escape":this.mobileMenuOpen=!1,null===(e=this.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),null===(i=this.firstSuggestion)||void 0===i||i.focus()}}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.setQuery(e),this.launchSearch()}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.dispatchEvent(new Vi(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}saveRecentSearches(){window.localStorage.setItem(this.recentSearchesStorageKey,JSON.stringify(this.recentSearches))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}getLocaleLabel(t){var e;return null!==(e=this.availableContentLocales.filter((e=>{var i;return(null!==(i=e.lang)&&void 0!==i?i:"").toLowerCase()===(null!=t?t:"").toLowerCase()})).map((t=>t.label)).pop())&&void 0!==e?e:t}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&Jt(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=>Jt(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}removeRecentSearch(t,e){var i,o,s,n;t.preventDefault(),t.stopPropagation();const r=null!==(n=null!==(o=null===(i=this.focusedSuggestion)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:null===(s=this.focusedSuggestion)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.input;null==r||r.focus(),this.recentSearches=this.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.saveRecentSearches()}onSuggestKeyDown(t){var e,i,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.focusedSuggestion)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastSuggestion)||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.focusedSuggestion)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstSuggestion)||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}}Wi.elementDefinitions={"ft-accordion":ui,"ft-accordion-item":yi,"ft-button":Le,"ft-chip":Bi,"ft-filter":hi,"ft-filter-option":fi,"ft-icon":Se,"ft-ripple":pe,"ft-select":Mi,"ft-select-option":Fi,"ft-size-watcher":p,"ft-skeleton":Ai,"ft-snap-scroll":ti,"ft-tooltip":ue,"ft-typography":Yt},Wi.styles=[Kt,Ti,Ri,Zi,Ui],_i([o.property({type:Boolean})],Wi.prototype,"dense",void 0),_i([o.property()],Wi.prototype,"mode",void 0),_i([o.property({type:Boolean})],Wi.prototype,"forceMobileMenuOpen",void 0),_i([o.property({type:Boolean})],Wi.prototype,"forceMenuOpen",void 0),_i([o.property()],Wi.prototype,"baseUrl",void 0),_i([o.property()],Wi.prototype,"apiIntegrationIdentifier",void 0),_i([o.property()],Wi.prototype,"contentLocale",void 0),_i([o.state()],Wi.prototype,"availableContentLocales",void 0),_i([o.state()],Wi.prototype,"availableContentLocalesInitialized",void 0),_i([o.property()],Wi.prototype,"uiLocale",void 0),_i([e.jsonProperty({})],Wi.prototype,"labels",void 0),_i([e.jsonProperty([])],Wi.prototype,"displayedFilters",void 0),_i([e.jsonProperty([])],Wi.prototype,"presets",void 0),_i([o.property({type:String,reflect:!0})],Wi.prototype,"selectedPreset",void 0),_i([e.jsonProperty([])],Wi.prototype,"priors",void 0),_i([o.property()],Wi.prototype,"searchRequestSerializer",void 0),_i([o.state()],Wi.prototype,"searchFilters",void 0),_i([o.state()],Wi.prototype,"sizeCategory",void 0),_i([o.state()],Wi.prototype,"displayFacets",void 0),_i([o.state()],Wi.prototype,"mobileMenuOpen",void 0),_i([o.state()],Wi.prototype,"facets",void 0),_i([o.state()],Wi.prototype,"facetsInitialized",void 0),_i([o.query(".ft-search-bar--container")],Wi.prototype,"container",void 0),_i([o.query(".ft-search-bar--filters-opener")],Wi.prototype,"filtersOpener",void 0),_i([o.query(".ft-search-bar--floating-panel")],Wi.prototype,"floatingContainer",void 0),_i([o.query("ft-snap-scroll.ft-search-bar--filters-container")],Wi.prototype,"scrollingFiltersContainer",void 0),_i([o.query(".ft-search-bar--input")],Wi.prototype,"input",void 0),_i([o.state()],Wi.prototype,"query",void 0),_i([o.state()],Wi.prototype,"suggestions",void 0),_i([o.state()],Wi.prototype,"suggestionsLoaded",void 0),_i([o.state()],Wi.prototype,"recentSearches",void 0),_i([o.state()],Wi.prototype,"scrollToFacet",void 0),_i([o.query(".ft-search-bar--suggestion:first-child")],Wi.prototype,"firstSuggestion",void 0),_i([o.query(".ft-search-bar--suggestion:focus-within")],Wi.prototype,"focusedSuggestion",void 0),_i([o.query(".ft-search-bar--suggestion:last-child")],Wi.prototype,"lastSuggestion",void 0),_i([o.state()],Wi.prototype,"api",void 0),e.customElement("ft-search-bar")(Wi),t.DEFAULT_LABELS=Hi,t.FtSearchBar=Wi,t.FtSearchBarCssVariables=Ni,t.LaunchSearchEvent=Vi,t.SearchStateChangeEvent=Ki,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);