@fluid-topics/ft-search-bar 0.3.19 → 0.3.21

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,60 +21,51 @@
21
21
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
22
22
  <div class="ft-size-watcher--watcher"></div>
23
23
  </div>
24
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new p(this.size,this.category)))}),this.debounceTimeout)}}f.elementDefinitions={},f.styles=a,h([o.property({type:Number})],f.prototype,"debounceTimeout",void 0),h([o.property({type:Boolean})],f.prototype,"local",void 0),h([o.property({type:Number,reflect:!0})],f.prototype,"size",void 0),h([o.property({type:String,reflect:!0})],f.prototype,"category",void 0),h([o.query(".ft-size-watcher--watcher")],f.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(f);const d=globalThis.trustedTypes,u=d?d.createPolicy("lit-html",{createHTML:t=>t}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,v="?"+b,g=`<${v}>`,x=document,y=(t="")=>x.createComment(t),m=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,S=/>/g,z=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),O=/'/g,B=/"/g,C=/^(?:script|style|textarea|title)$/i,E=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),F=new WeakMap,L=x.createTreeWalker(x,129,null,!1),j=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=w;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===w?"!--"===a[1]?n=k:void 0!==a[1]?n=S:void 0!==a[2]?(C.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=z):void 0!==a[3]&&(n=z):n===z?">"===a[0]?(n=null!=s?s:w,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?z:'"'===a[3]?B:O):n===B||n===O?n=z:n===k||n===S?n=w:(n=z,s=void 0);const p=n===z&&t[e+1].startsWith("/>")?" ":"";r+=n===w?i+g:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+b+p):i+b+(-2===c?(o.push(void 0),e):p)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==u?u.createHTML(l):l,o]};class M{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[a,c]=j(t,e);if(this.el=M.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<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(b)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(b),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(b),e=t.length-1;if(e>0){o.textContent=d?d.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],y()),L.nextNode(),l.push({type:2,index:++s});o.append(t[e],y())}}}else if(8===o.nodeType)if(o.data===v)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(b,t+1));)l.push({type:7,index:s}),t+=b.length-1}s++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function P(t,e,i=t,o){var s,r,n,l;if(e===I)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const c=m(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Cl)&&void 0!==n?n:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=P(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:x).importNode(i,!0);L.currentNode=s;let r=L.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new T(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new H(r,this,t)),this.v.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=L.nextNode(),n++)}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=D,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=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._$C_}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=P(this,t,e),m(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==I&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>$(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==D&&m(this._$AH)?this._$AA.nextSibling.data=t:this.k(x.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=M.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=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new M(t)),e}S(t){$(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.j(y()),this.j(y()),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._$C_=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=D,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=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=P(this,t,e,0),r=!m(t)||t!==this._$AH&&t!==I,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=P(this,o[i+n],e,n),l===I&&(l=this._$AH[n]),r||(r=!m(l)||l!==this._$AH[n]),l===D?t=D:t!==D&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.P(t)}P(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends N{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===D?void 0:t}}const U=d?d.emptyScript:"";class Z extends N{constructor(){super(...arguments),this.type=4}P(t){t&&t!==D?this.element.setAttribute(this.name,U):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=P(this,t,e,0))&&void 0!==i?i:D)===I)return;const o=this._$AH,s=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==D&&(o===D||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class H{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){P(this,t)}}const V=window.litHtmlPolyfillSupport;null==V||V(M,T),(null!==(c=globalThis.litHtmlVersions)&&void 0!==c?c:globalThis.litHtmlVersions=[]).push("2.2.7");
24
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new p(this.size,this.category)))}),this.debounceTimeout)}}f.elementDefinitions={},f.styles=a,h([o.property({type:Number})],f.prototype,"debounceTimeout",void 0),h([o.property({type:Boolean})],f.prototype,"local",void 0),h([o.property({type:Number,reflect:!0})],f.prototype,"size",void 0),h([o.property({type:String,reflect:!0})],f.prototype,"category",void 0),h([o.query(".ft-size-watcher--watcher")],f.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(f);const d=window,u=d.trustedTypes,b=u?u.createPolicy("lit-html",{createHTML:t=>t}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,g="?"+v,x=`<${g}>`,y=document,m=(t="")=>y.createComment(t),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,w=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,z=/>/g,O=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),B=/'/g,C=/"/g,E=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),L=new WeakMap,j=y.createTreeWalker(y,129,null,!1),M=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=k;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===k?"!--"===a[1]?n=S:void 0!==a[1]?n=z:void 0!==a[2]?(E.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=O):void 0!==a[3]&&(n=O):n===O?">"===a[0]?(n=null!=s?s:k,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?O:'"'===a[3]?C:B):n===C||n===B?n=O:n===S||n===z?n=k:(n=O,s=void 0);const p=n===O&&t[e+1].startsWith("/>")?" ":"";r+=n===k?i+x:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+v+p):i+v+(-2===c?(o.push(void 0),e):p)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(l):l,o]};class P{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[a,c]=M(t,e);if(this.el=P.createElement(a,i),j.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=j.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(v)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(v),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?U:"?"===e[1]?_:"@"===e[1]?H:R})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(E.test(o.tagName)){const t=o.textContent.split(v),e=t.length-1;if(e>0){o.textContent=u?u.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],m()),j.nextNode(),l.push({type:2,index:++s});o.append(t[e],m())}}}else if(8===o.nodeType)if(o.data===g)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(v,t+1));)l.push({type:7,index:s}),t+=v.length-1}s++}}static createElement(t,e){const i=y.createElement("template");return i.innerHTML=t,i}}function A(t,e,i=t,o){var s,r,n,l;if(e===D)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=$(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Co)&&void 0!==n?n:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=A(t,a._$AS(t,e.values),a,o)),e}class N{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:y).importNode(i,!0);j.currentNode=s;let r=j.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new T(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new V(r,this,t)),this.u.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=j.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)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=F,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}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=A(this,t,e),$(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==D&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>w(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==F&&$(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=P.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new N(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new P(t)),e}k(t){w(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.O(m()),this.O(m()),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class R{constructor(t,e,i,o,s){this.type=1,this._$AH=F,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=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=A(this,t,e,0),r=!$(t)||t!==this._$AH&&t!==D,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=A(this,o[i+n],e,n),l===D&&(l=this._$AH[n]),r||(r=!$(l)||l!==this._$AH[n]),l===F?t=F:t!==F&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class U extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}const Z=u?u.emptyScript:"";class _ extends R{constructor(){super(...arguments),this.type=4}j(t){t&&t!==F?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class H extends R{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=A(this,t,e,0))&&void 0!==i?i:F)===D)return;const o=this._$AH,s=t===F&&o!==F||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==F&&(o===F||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class V{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){A(this,t)}}const K=d.litHtmlPolyfillSupport;null==K||K(P,T),(null!==(c=d.litHtmlVersions)&&void 0!==c?c:d.litHtmlVersions=[]).push("2.4.0");
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=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t._$litStatic$},W=t=>({_$litStatic$:t,r:K}),G=new Map,X=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(r=i[c],s=q(r));)a+=s+e[++c],h=!0;l.push(r),n.push(a),c++}if(c===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=G.get(t))&&(n.raw=n,G.set(t,e=n)),i=l}return t(e,...i)})(E);var Y;!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"}(Y||(Y={}));const J=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),tt={fontFamily:Q,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",J),it=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",tt.lineHeight,"1.2"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",J),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),ct=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"1.7"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Q),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"1.5"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",Q),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"1.7"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),zt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",tt.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit")},Ot={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",tt.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit")},Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",tt.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit")},Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",Q),Et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"1.6"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),jt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",Q),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",tt.lineHeight,"1.6"),Nt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),Rt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",tt.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase")},Ut=i.css`
30
+ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t._$litStatic$},G=t=>({_$litStatic$:t,r:q}),X=new Map,Y=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(r=i[c],s=W(r));)a+=s+e[++c],h=!0;l.push(r),n.push(a),c++}if(c===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=X.get(t))&&(n.raw=n,X.set(t,e=n)),i=l}return t(e,...i)})(I);var J;!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"}(J||(J={}));const Q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),tt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),et={fontFamily:tt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},it=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",Q),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",et.fontSize,"20px"),st=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",et.fontWeight,"normal"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",et.letterSpacing,"0.15px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",et.lineHeight,"1.2"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",et.textTransform,"inherit"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",Q),ct=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",et.fontSize,"14px"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",et.fontWeight,"normal"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",et.letterSpacing,"0.105px"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",et.lineHeight,"1.7"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",et.textTransform,"inherit"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",tt),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",et.fontSize,"16px"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",et.fontWeight,"600"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",et.letterSpacing,"0.144px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",et.lineHeight,"1.5"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",et.textTransform,"inherit"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",tt),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",et.fontSize,"14px"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",et.fontWeight,"normal"),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",et.letterSpacing,"0.098px"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",et.lineHeight,"1.7"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",et.textTransform,"inherit"),Ot={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",et.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",et.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",et.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",et.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",et.textTransform,"inherit")},Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",et.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",et.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",et.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",et.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",et.textTransform,"inherit")},Ct={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",et.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",et.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",et.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",et.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",et.textTransform,"inherit")},Et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",tt),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",et.fontSize,"10px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",et.fontWeight,"normal"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",et.letterSpacing,"0.33px"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",et.lineHeight,"1.6"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",et.textTransform,"inherit"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",tt),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",et.fontSize,"10px"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",et.fontWeight,"normal"),Nt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",et.letterSpacing,"1.5px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",et.lineHeight,"1.6"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",et.textTransform,"uppercase"),Ut={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",et.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",et.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",et.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",et.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",et.textTransform,"uppercase")},Zt=i.css`
31
31
  .ft-typography--title {
32
- font-family: ${et};
33
- font-size: ${it};
34
- font-weight: ${ot};
35
- letter-spacing: ${st};
36
- line-height: ${rt};
37
- text-transform: ${nt};
38
- }
39
- `,Zt=i.css`
40
- .ft-typography--title-dense {
41
- font-family: ${lt};
42
- font-size: ${at};
43
- font-weight: ${ct};
44
- letter-spacing: ${ht};
45
- line-height: ${pt};
46
- text-transform: ${ft};
32
+ font-family: ${it};
33
+ font-size: ${ot};
34
+ font-weight: ${st};
35
+ letter-spacing: ${rt};
36
+ line-height: ${nt};
37
+ text-transform: ${lt};
47
38
  }
48
39
  `,_t=i.css`
49
- .ft-typography--subtitle1 {
50
- font-family: ${dt};
51
- font-size: ${ut};
52
- font-weight: ${bt};
53
- letter-spacing: ${vt};
54
- line-height: ${gt};
55
- text-transform: ${xt};
40
+ .ft-typography--title-dense {
41
+ font-family: ${at};
42
+ font-size: ${ct};
43
+ font-weight: ${ht};
44
+ letter-spacing: ${pt};
45
+ line-height: ${ft};
46
+ text-transform: ${dt};
56
47
  }
57
48
  `,Ht=i.css`
58
- .ft-typography--subtitle2 {
59
- font-family: ${yt};
60
- font-size: ${mt};
61
- font-weight: ${$t};
62
- letter-spacing: ${wt};
63
- line-height: ${kt};
64
- text-transform: ${St};
49
+ .ft-typography--subtitle1 {
50
+ font-family: ${ut};
51
+ font-size: ${bt};
52
+ font-weight: ${vt};
53
+ letter-spacing: ${gt};
54
+ line-height: ${xt};
55
+ text-transform: ${yt};
65
56
  }
66
-
67
57
  `,Vt=i.css`
68
- .ft-typography--body1 {
69
- font-family: ${zt.fontFamily};
70
- font-size: ${zt.fontSize};
71
- font-weight: ${zt.fontWeight};
72
- letter-spacing: ${zt.letterSpacing};
73
- line-height: ${zt.lineHeight};
74
- text-transform: ${zt.textTransform};
58
+ .ft-typography--subtitle2 {
59
+ font-family: ${mt};
60
+ font-size: ${$t};
61
+ font-weight: ${wt};
62
+ letter-spacing: ${kt};
63
+ line-height: ${St};
64
+ text-transform: ${zt};
75
65
  }
66
+
76
67
  `,Kt=i.css`
77
- .ft-typography--body2 {
68
+ .ft-typography--body1 {
78
69
  font-family: ${Ot.fontFamily};
79
70
  font-size: ${Ot.fontSize};
80
71
  font-weight: ${Ot.fontWeight};
@@ -83,7 +74,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
83
74
  text-transform: ${Ot.textTransform};
84
75
  }
85
76
  `,qt=i.css`
86
- .ft-typography--caption {
77
+ .ft-typography--body2 {
87
78
  font-family: ${Bt.fontFamily};
88
79
  font-size: ${Bt.fontSize};
89
80
  font-weight: ${Bt.fontWeight};
@@ -92,44 +83,53 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
92
83
  text-transform: ${Bt.textTransform};
93
84
  }
94
85
  `,Wt=i.css`
95
- .ft-typography--breadcrumb {
96
- font-family: ${Ct};
97
- font-size: ${Et};
98
- font-weight: ${It};
99
- letter-spacing: ${Dt};
100
- line-height: ${Ft};
101
- text-transform: ${Lt};
86
+ .ft-typography--caption {
87
+ font-family: ${Ct.fontFamily};
88
+ font-size: ${Ct.fontSize};
89
+ font-weight: ${Ct.fontWeight};
90
+ letter-spacing: ${Ct.letterSpacing};
91
+ line-height: ${Ct.lineHeight};
92
+ text-transform: ${Ct.textTransform};
102
93
  }
103
94
  `,Gt=i.css`
104
- .ft-typography--overline {
105
- font-family: ${jt};
106
- font-size: ${Mt};
107
- font-weight: ${Pt};
108
- letter-spacing: ${At};
109
- line-height: ${Tt};
110
- text-transform: ${Nt};
95
+ .ft-typography--breadcrumb {
96
+ font-family: ${Et};
97
+ font-size: ${It};
98
+ font-weight: ${Dt};
99
+ letter-spacing: ${Ft};
100
+ line-height: ${Lt};
101
+ text-transform: ${jt};
111
102
  }
112
103
  `,Xt=i.css`
113
- .ft-typography--button {
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};
104
+ .ft-typography--overline {
105
+ font-family: ${Mt};
106
+ font-size: ${Pt};
107
+ font-weight: ${At};
108
+ letter-spacing: ${Nt};
109
+ line-height: ${Tt};
110
+ text-transform: ${Rt};
120
111
  }
121
112
  `,Yt=i.css`
113
+ .ft-typography--button {
114
+ font-family: ${Ut.fontFamily};
115
+ font-size: ${Ut.fontSize};
116
+ font-weight: ${Ut.fontWeight};
117
+ letter-spacing: ${Ut.letterSpacing};
118
+ line-height: ${Ut.lineHeight};
119
+ text-transform: ${Ut.textTransform};
120
+ }
121
+ `,Jt=i.css`
122
122
  .ft-typography {
123
123
  vertical-align: inherit;
124
124
  }
125
- `;var Jt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Qt extends e.FtLitElement{constructor(){super(...arguments),this.variant=Y.body1}render(){return this.element?X`
126
- <${W(this.element)}
125
+ `;var Qt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class te extends e.FtLitElement{constructor(){super(...arguments),this.variant=J.body1}render(){return this.element?Y`
126
+ <${G(this.element)}
127
127
  class="ft-typography ft-typography--${this.variant}">
128
128
  <slot></slot>
129
- </${W(this.element)}>
130
- `:X`
129
+ </${G(this.element)}>
130
+ `:Y`
131
131
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
132
- `}}function te(t,e){return t.flatMap((t=>[t,...te(e(t),e)]))}function ee(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ie(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>ie(e,t.selected))),value:t.value}}function oe(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>ie(t,!1)))}}Qt.styles=[Ut,Zt,_t,Ht,Vt,Kt,qt,Wt,Gt,Xt,Yt],Jt([o.property()],Qt.prototype,"element",void 0),Jt([o.property()],Qt.prototype,"variant",void 0),e.customElement("ft-typography")(Qt);const se=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),re={color:se,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",se),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},ne=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),le=ne,ae=e.FtCssVariableFactory.extend("--ft-ripple-background-color",ne),ce=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),he=ce,pe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",ce),fe=i.css`
132
+ `}}function ee(t,e){return t.flatMap((t=>[t,...ee(e(t),e)]))}function ie(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function oe(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>oe(e,t.selected))),value:t.value}}function se(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>oe(t,!1)))}}te.styles=[Zt,_t,Ht,Vt,Kt,qt,Wt,Gt,Xt,Yt,Jt],Qt([o.property()],te.prototype,"element",void 0),Qt([o.property()],te.prototype,"variant",void 0),e.customElement("ft-typography")(te);const re=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ne={color:re,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",re),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},le=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),ae=le,ce=e.FtCssVariableFactory.extend("--ft-ripple-background-color",le),he=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),pe=he,fe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",he),de=i.css`
133
133
  :host {
134
134
  display: contents;
135
135
  }
@@ -151,27 +151,27 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
151
151
  }
152
152
 
153
153
  .ft-ripple .ft-ripple--background {
154
- background-color: ${re.backgroundColor};
154
+ background-color: ${ne.backgroundColor};
155
155
  }
156
156
 
157
157
  .ft-ripple .ft-ripple--effect {
158
- background-color: ${re.color};
158
+ background-color: ${ne.color};
159
159
  }
160
160
 
161
161
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
162
- background-color: ${pe};
162
+ background-color: ${fe};
163
163
  }
164
164
 
165
165
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
166
- background-color: ${he};
166
+ background-color: ${pe};
167
167
  }
168
168
 
169
169
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
170
- background-color: ${ae};
170
+ background-color: ${ce};
171
171
  }
172
172
 
173
173
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
174
- background-color: ${le};
174
+ background-color: ${ae};
175
175
  }
176
176
 
177
177
  .ft-ripple .ft-ripple--background {
@@ -203,22 +203,22 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
203
203
  }
204
204
 
205
205
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
206
- opacity: ${re.opacityContentOnSurfaceHover};
206
+ opacity: ${ne.opacityContentOnSurfaceHover};
207
207
  }
208
208
 
209
209
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
210
- opacity: ${re.opacityContentOnSurfaceSelected};
210
+ opacity: ${ne.opacityContentOnSurfaceSelected};
211
211
  }
212
212
 
213
213
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
214
- opacity: ${re.opacityContentOnSurfaceFocused};
214
+ opacity: ${ne.opacityContentOnSurfaceFocused};
215
215
  }
216
216
 
217
217
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
218
- opacity: ${re.opacityContentOnSurfacePressed};
218
+ opacity: ${ne.opacityContentOnSurfacePressed};
219
219
  transform: translate(-50%, -50%) scale(1);
220
220
  }
221
- `;var de=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ue extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
221
+ `;var ue=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class be extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
222
222
  <style>
223
223
  .ft-ripple .ft-ripple--effect,
224
224
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -235,7 +235,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
235
235
  <div class="ft-ripple--background"></div>
236
236
  <div class="ft-ripple--effect"></div>
237
237
  </div>
238
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ue.elementDefinitions={},ue.styles=fe,de([o.property({type:Boolean})],ue.prototype,"primary",void 0),de([o.property({type:Boolean})],ue.prototype,"secondary",void 0),de([o.property({type:Boolean})],ue.prototype,"unbounded",void 0),de([o.property({type:Boolean})],ue.prototype,"activated",void 0),de([o.property({type:Boolean})],ue.prototype,"selected",void 0),de([o.property({type:Boolean})],ue.prototype,"disabled",void 0),de([o.state()],ue.prototype,"hovered",void 0),de([o.state()],ue.prototype,"focused",void 0),de([o.state()],ue.prototype,"pressed",void 0),de([o.state()],ue.prototype,"rippling",void 0),de([o.state()],ue.prototype,"rippleSize",void 0),de([o.state()],ue.prototype,"originX",void 0),de([o.state()],ue.prototype,"originY",void 0),de([o.query(".ft-ripple")],ue.prototype,"ripple",void 0),de([o.query(".ft-ripple--effect")],ue.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ue);const be={distance:e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),color:e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),maxWidth:e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px")},ve=i.css`
238
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}be.elementDefinitions={},be.styles=de,ue([o.property({type:Boolean})],be.prototype,"primary",void 0),ue([o.property({type:Boolean})],be.prototype,"secondary",void 0),ue([o.property({type:Boolean})],be.prototype,"unbounded",void 0),ue([o.property({type:Boolean})],be.prototype,"activated",void 0),ue([o.property({type:Boolean})],be.prototype,"selected",void 0),ue([o.property({type:Boolean})],be.prototype,"disabled",void 0),ue([o.state()],be.prototype,"hovered",void 0),ue([o.state()],be.prototype,"focused",void 0),ue([o.state()],be.prototype,"pressed",void 0),ue([o.state()],be.prototype,"rippling",void 0),ue([o.state()],be.prototype,"rippleSize",void 0),ue([o.state()],be.prototype,"originX",void 0),ue([o.state()],be.prototype,"originY",void 0),ue([o.query(".ft-ripple")],be.prototype,"ripple",void 0),ue([o.query(".ft-ripple--effect")],be.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(be);const ve={distance:e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),color:e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),maxWidth:e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px")},ge=i.css`
239
239
  .ft-tooltip--container {
240
240
  display: block;
241
241
  position: relative;
@@ -251,23 +251,23 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
251
251
  box-sizing: border-box;
252
252
  overflow: hidden;
253
253
  width: max-content;
254
- max-width: ${be.maxWidth};
254
+ max-width: ${ve.maxWidth};
255
255
  text-align: center;
256
- padding: ${be.distance};
257
- z-index: ${be.zIndex};
256
+ padding: ${ve.distance};
257
+ z-index: ${ve.zIndex};
258
258
  }
259
259
 
260
260
  .ft-tooltip--content {
261
261
  padding: 4px 8px;
262
- border-radius: ${be.borderRadiusS};
263
- background-color: ${be.backgroundColor};
264
- color: ${be.color};
262
+ border-radius: ${ve.borderRadiusS};
263
+ background-color: ${ve.backgroundColor};
264
+ color: ${ve.color};
265
265
  top: -500px;
266
266
  left: -500px;
267
267
  position: relative;
268
268
  word-break: break-word;
269
269
  }
270
- `;var ge=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class 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`
270
+ `;var xe=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ye 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`
271
271
  <div part="container"
272
272
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
273
273
  @mouseenter=${this.onHover}
@@ -283,7 +283,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
283
283
  </div>
284
284
  <slot></slot>
285
285
  </div>
286
- `}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;let s=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,s=o;break;case"bottom":r=e.height,s=o;break;case"left":r=i,s=-this.tooltip.clientWidth;break;case"right":r=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const n=this.tooltip.style;n.left=s+"px",n.top=r+"px",n.maxWidth=`max(${e.width}px, ${be.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}xe.elementDefinitions={"ft-typography":Qt},xe.styles=ve,ge([o.property()],xe.prototype,"text",void 0),ge([o.property({type:Boolean})],xe.prototype,"manual",void 0),ge([o.property({type:Boolean})],xe.prototype,"inline",void 0),ge([o.property({type:Number})],xe.prototype,"delay",void 0),ge([o.property()],xe.prototype,"position",void 0),ge([o.queryAssignedNodes("",!0)],xe.prototype,"slotNodes",void 0),ge([o.query(".ft-tooltip--container")],xe.prototype,"container",void 0),ge([o.query("slot")],xe.prototype,"target",void 0),ge([o.query(".ft-tooltip")],xe.prototype,"tooltip",void 0),ge([o.query(".ft-tooltip--content")],xe.prototype,"tooltipContent",void 0),ge([o.state()],xe.prototype,"visible",void 0),e.customElement("ft-tooltip")(xe);const ye={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},me=i.css`
286
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.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;let s=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,s=o;break;case"bottom":r=e.height,s=o;break;case"left":r=i,s=-this.tooltip.clientWidth;break;case"right":r=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const n=this.tooltip.style;n.left=s+"px",n.top=r+"px",n.maxWidth=`max(${e.width}px, ${ve.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ye.elementDefinitions={"ft-typography":te},ye.styles=ge,xe([o.property()],ye.prototype,"text",void 0),xe([o.property({type:Boolean})],ye.prototype,"manual",void 0),xe([o.property({type:Boolean})],ye.prototype,"inline",void 0),xe([o.property({type:Number})],ye.prototype,"delay",void 0),xe([o.property()],ye.prototype,"position",void 0),xe([o.queryAssignedNodes("",!0)],ye.prototype,"slotNodes",void 0),xe([o.query(".ft-tooltip--container")],ye.prototype,"container",void 0),xe([o.query("slot")],ye.prototype,"target",void 0),xe([o.query(".ft-tooltip")],ye.prototype,"tooltip",void 0),xe([o.query(".ft-tooltip--content")],ye.prototype,"tooltipContent",void 0),xe([o.state()],ye.prototype,"visible",void 0),e.customElement("ft-tooltip")(ye);const me={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},$e=i.css`
287
287
  :host {
288
288
  line-height: 0;
289
289
  }
@@ -292,8 +292,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
292
292
  display: inline-block;
293
293
  position: relative;
294
294
 
295
- width: ${ye.size};
296
- height: ${ye.size};
295
+ width: ${me.size};
296
+ height: ${me.size};
297
297
  }
298
298
 
299
299
  .ft-loader div {
@@ -302,7 +302,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
302
302
  width: 25%;
303
303
  height: 25%;
304
304
  border-radius: 50%;
305
- background: ${ye.color};
305
+ background: ${me.color};
306
306
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
307
307
  }
308
308
 
@@ -349,29 +349,29 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
349
349
  transform: translate(0, 0);
350
350
  }
351
351
  100% {
352
- transform: translate(calc(0.35 * ${ye.size}), 0);
352
+ transform: translate(calc(0.35 * ${me.size}), 0);
353
353
  }
354
354
  }
355
- `;class $e extends e.FtLitElement{render(){return i.html`
355
+ `;class we extends e.FtLitElement{render(){return i.html`
356
356
  <div class="ft-loader">
357
357
  <div></div>
358
358
  <div></div>
359
359
  <div></div>
360
360
  <div></div>
361
361
  </div>
362
- `}}var we,ke;$e.styles=me,e.customElement("ft-loader")($e),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;"}(we||(we={})),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;"}(ke||(ke={}));const Se=new Map([...["abw"].map((t=>[t,ke.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,ke.AUDIO])),...["avi"].map((t=>[t,ke.AVI])),...["chm","xhs"].map((t=>[t,ke.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,ke.CODE])),...["csv"].map((t=>[t,ke.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ke.DITA])),...["epub"].map((t=>[t,ke.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ke.EXCEL])),...["flac"].map((t=>[t,ke.FLAC])),...["gif"].map((t=>[t,ke.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ke.GZIP])),...["html","htm","xhtml"].map((t=>[t,ke.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,ke.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ke.JPEG])),...["json"].map((t=>[t,ke.JSON])),...["m4a","m4p"].map((t=>[t,ke.M4A])),...["mov","qt"].map((t=>[t,ke.MOV])),...["mp3"].map((t=>[t,ke.MP3])),...["mp4","m4v"].map((t=>[t,ke.MP4])),...["ogg","oga"].map((t=>[t,ke.OGG])),...["pdf","ps"].map((t=>[t,ke.PDF])),...["png"].map((t=>[t,ke.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ke.POWERPOINT])),...["rar"].map((t=>[t,ke.RAR])),...["stp"].map((t=>[t,ke.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ke.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,ke.VIDEO])),...["wav"].map((t=>[t,ke.WAV])),...["wma"].map((t=>[t,ke.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ke.WORD])),...["xml","xsl","rdf"].map((t=>[t,ke.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ke.YAML])),...["zip"].map((t=>[t,ke.ZIP]))]),ze=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"]]);const Oe={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Be=i.css`
362
+ `}}var ke,Se;we.styles=$e,e.customElement("ft-loader")(we),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;"}(ke||(ke={})),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;"}(Se||(Se={}));const ze=new Map([...["abw"].map((t=>[t,Se.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,Se.AUDIO])),...["avi"].map((t=>[t,Se.AVI])),...["chm","xhs"].map((t=>[t,Se.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,Se.CODE])),...["csv"].map((t=>[t,Se.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Se.DITA])),...["epub"].map((t=>[t,Se.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Se.EXCEL])),...["flac"].map((t=>[t,Se.FLAC])),...["gif"].map((t=>[t,Se.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Se.GZIP])),...["html","htm","xhtml"].map((t=>[t,Se.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,Se.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Se.JPEG])),...["json"].map((t=>[t,Se.JSON])),...["m4a","m4p"].map((t=>[t,Se.M4A])),...["mov","qt"].map((t=>[t,Se.MOV])),...["mp3"].map((t=>[t,Se.MP3])),...["mp4","m4v"].map((t=>[t,Se.MP4])),...["ogg","oga"].map((t=>[t,Se.OGG])),...["pdf","ps"].map((t=>[t,Se.PDF])),...["png"].map((t=>[t,Se.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Se.POWERPOINT])),...["rar"].map((t=>[t,Se.RAR])),...["stp"].map((t=>[t,Se.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Se.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,Se.VIDEO])),...["wav"].map((t=>[t,Se.WAV])),...["wma"].map((t=>[t,Se.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Se.WORD])),...["xml","xsl","rdf"].map((t=>[t,Se.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Se.YAML])),...["zip"].map((t=>[t,Se.ZIP]))]),Oe=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"]]);const Be={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ce=i.css`
363
363
  :host {
364
364
  display: inline-block;
365
365
  }
366
366
 
367
367
  :host, i.ft-icon {
368
- width: ${Oe.size};
369
- height: ${Oe.size};
368
+ width: ${Be.size};
369
+ height: ${Be.size};
370
370
  text-align: center;
371
371
  }
372
372
 
373
373
  i.ft-icon {
374
- font-size: ${Oe.size};
374
+ font-size: ${Be.size};
375
375
  line-height: 1;
376
376
  font-weight: normal;
377
377
  text-transform: none;
@@ -382,26 +382,26 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
382
382
  text-rendering: auto;
383
383
  -webkit-font-smoothing: antialiased;
384
384
  -moz-osx-font-smoothing: grayscale;
385
- vertical-align: ${Oe.verticalAlign};
385
+ vertical-align: ${Be.verticalAlign};
386
386
  }
387
387
 
388
388
  .ft-icon--fluid-topics {
389
- font-family: ${Oe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
389
+ font-family: ${Be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
390
390
  }
391
391
 
392
392
  .ft-icon--file-format {
393
- font-family: ${Oe.fileFormatFontFamily}, ft-mime, sans-serif;
393
+ font-family: ${Be.fileFormatFontFamily}, ft-mime, sans-serif;
394
394
  }
395
395
 
396
396
  .ft-icon--material {
397
- font-family: ${Oe.materialFontFamily}, "Material Icons", sans-serif;
397
+ font-family: ${Be.materialFontFamily}, "Material Icons", sans-serif;
398
398
  }
399
- `;var Ce;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ce||(Ce={}));var Ee=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ie extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ce.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
399
+ `;var Ee;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ee||(Ee={}));var Ie=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class De extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ee.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
400
400
  <i class="ft-icon ${"ft-icon--"+this.variant}">
401
401
  ${n.unsafeHTML(this.resolvedIcon)}
402
402
  <slot ?hidden=${t}></slot>
403
403
  </i>
404
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Ce.file_format:this.resolvedIcon=null!==(t=ke[o.toUpperCase()])&&void 0!==t?t:o;break;case Ce.fluid_topics:this.resolvedIcon=null!==(e=we[o.toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Ie.elementDefinitions={},Ie.styles=Be,Ee([o.property()],Ie.prototype,"variant",void 0),Ee([o.property()],Ie.prototype,"value",void 0),Ee([o.state()],Ie.prototype,"resolvedIcon",void 0),Ee([o.query("slot")],Ie.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Ie);const De=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Fe={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:De,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",Rt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",De),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Le=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),je={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Le,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Le)},Me=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),Pe=[e.noTextSelect,i.css`
404
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Ee.file_format:this.resolvedIcon=null!==(t=Se[o.toUpperCase()])&&void 0!==t?t:o;break;case Ee.fluid_topics:this.resolvedIcon=null!==(e=ke[o.toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}De.elementDefinitions={},De.styles=Ce,Ie([o.property()],De.prototype,"variant",void 0),Ie([o.property()],De.prototype,"value",void 0),Ie([o.state()],De.prototype,"resolvedIcon",void 0),Ie([o.query("slot")],De.prototype,"slottedContent",void 0),e.customElement("ft-icon")(De);const Fe=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Le={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Fe,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",Ut.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",Fe),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},je=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Me={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:je,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",je)},Pe=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),Ae=[e.noTextSelect,i.css`
405
405
  :host {
406
406
  display: inline-block;
407
407
  max-width: 100%;
@@ -412,7 +412,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
412
412
  box-shadow: 0px 0px 0px transparent;
413
413
  border: 0px solid transparent;
414
414
  text-shadow: 0px 0px 0px transparent;
415
- font-size: ${Fe.fontSize};
415
+ font-size: ${Le.fontSize};
416
416
  }
417
417
 
418
418
  button:hover {
@@ -441,17 +441,17 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
441
441
  border: none;
442
442
  pointer-events: auto;
443
443
 
444
- --ft-button-internal-line-height: calc(${Fe.fontSize} + 2px);
445
- --ft-button-internal-color: ${Fe.color};
446
- ${e.setVariable(Oe.size,Fe.iconSize)};
444
+ --ft-button-internal-line-height: calc(${Le.fontSize} + 2px);
445
+ --ft-button-internal-color: ${Le.color};
446
+ ${e.setVariable(Be.size,Le.iconSize)};
447
447
  --ft-button-internal-vertical-padding: 6px;
448
448
  --ft-button-internal-horizontal-padding: 8px;
449
- ${e.setVariable(re.color,Fe.rippleColor)};
450
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fe.iconSize});
449
+ ${e.setVariable(ne.color,Le.rippleColor)};
450
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Le.iconSize});
451
451
 
452
- border-radius: ${Fe.borderRadius};
452
+ border-radius: ${Le.borderRadius};
453
453
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
454
- background-color: ${Fe.backgroundColor};
454
+ background-color: ${Le.backgroundColor};
455
455
  color: var(--ft-button-internal-color);
456
456
  -webkit-mask-image: radial-gradient(white, black);
457
457
  }
@@ -463,7 +463,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
463
463
  .ft-button--dense {
464
464
  --ft-button-internal-vertical-padding: 2px;
465
465
  --ft-button-internal-horizontal-padding: 4px;
466
- border-radius: ${Me};
466
+ border-radius: ${Pe};
467
467
  }
468
468
 
469
469
  .ft-button--round {
@@ -472,13 +472,13 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
472
472
 
473
473
  .ft-button[disabled] {
474
474
  filter: grayscale(1);
475
- opacity: ${Fe.opacityDisabled};
475
+ opacity: ${Le.opacityDisabled};
476
476
  }
477
477
 
478
478
  .ft-button.ft-button--primary {
479
- background-color: ${je.backgroundColor};
480
- --ft-button-internal-color: ${je.color};
481
- ${e.setVariable(re.color,je.rippleColor)};
479
+ background-color: ${Me.backgroundColor};
480
+ --ft-button-internal-color: ${Me.color};
481
+ ${e.setVariable(ne.color,Me.rippleColor)};
482
482
  }
483
483
 
484
484
  .ft-button.ft-button--outlined {
@@ -497,8 +497,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
497
497
  text-overflow: ellipsis;
498
498
  display: block;
499
499
  margin: 0 var(--ft-button-internal-horizontal-padding);
500
- ${e.setVariable(Rt.fontSize,"1em")};
501
- ${e.setVariable(Rt.lineHeight,"var(--ft-button-internal-content-height)")};
500
+ ${e.setVariable(Ut.fontSize,"1em")};
501
+ ${e.setVariable(Ut.lineHeight,"var(--ft-button-internal-content-height)")};
502
502
  }
503
503
 
504
504
  .ft-button--safari-fix .ft-button--label {
@@ -531,10 +531,10 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
531
531
  }
532
532
 
533
533
  ft-loader {
534
- ${e.setVariable(ye.size,Fe.iconSize)};
535
- ${e.setVariable(ye.color,"var(--ft-button-internal-color)")};
534
+ ${e.setVariable(me.size,Le.iconSize)};
535
+ ${e.setVariable(me.color,"var(--ft-button-internal-color)")};
536
536
  }
537
- `];var Ae=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Te 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.iconVariant=Ce.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":e.isSafari,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
537
+ `];var Ne=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Te 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.iconVariant=Ee.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":e.isSafari,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
538
538
  <button part="button"
539
539
  class="${r.classMap(t)}"
540
540
  aria-label="${this.getLabel()}"
@@ -556,14 +556,14 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
556
556
  </ft-tooltip>
557
557
  `:t}resolveIcon(){return this.loading?i.html`
558
558
  <ft-loader></ft-loader> `:this.icon?i.html`
559
- <ft-icon variant="${this.iconVariant}" value="${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}}Te.elementDefinitions={"ft-ripple":ue,"ft-tooltip":xe,"ft-typography":Qt,"ft-icon":Ie,"ft-loader":$e},Te.styles=Pe,Ae([o.property({type:Boolean})],Te.prototype,"primary",void 0),Ae([o.property({type:Boolean})],Te.prototype,"outlined",void 0),Ae([o.property({type:Boolean})],Te.prototype,"disabled",void 0),Ae([o.property({type:Boolean})],Te.prototype,"dense",void 0),Ae([o.property({type:Boolean})],Te.prototype,"round",void 0),Ae([o.property({type:String})],Te.prototype,"label",void 0),Ae([o.property({type:String})],Te.prototype,"icon",void 0),Ae([o.property({type:String})],Te.prototype,"iconVariant",void 0),Ae([o.property({type:Boolean})],Te.prototype,"trailingIcon",void 0),Ae([o.property({type:Boolean})],Te.prototype,"loading",void 0),Ae([o.property({type:String})],Te.prototype,"tooltipPosition",void 0),Ae([o.property({type:Boolean})],Te.prototype,"hideTooltip",void 0),Ae([o.property({type:Boolean})],Te.prototype,"forceTooltip",void 0),Ae([o.query(".ft-button")],Te.prototype,"button",void 0),Ae([o.query(".ft-button--label slot")],Te.prototype,"slottedContent",void 0),e.customElement("ft-button")(Te);const Ne=e.FtCssVariableFactory.extend("--ft-checkbox-text-color",e.designSystemVariables.colorOnSurfaceHigh),Re=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Ue=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),Ze=e.FtCssVariableFactory.extend("--ft-checkbox-border-color",e.designSystemVariables.colorOnSurfaceMedium),_e=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),He=i.css`
559
+ <ft-icon variant="${this.iconVariant}" value="${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}}Te.elementDefinitions={"ft-ripple":be,"ft-tooltip":ye,"ft-typography":te,"ft-icon":De,"ft-loader":we},Te.styles=Ae,Ne([o.property({type:Boolean})],Te.prototype,"primary",void 0),Ne([o.property({type:Boolean})],Te.prototype,"outlined",void 0),Ne([o.property({type:Boolean})],Te.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],Te.prototype,"dense",void 0),Ne([o.property({type:Boolean})],Te.prototype,"round",void 0),Ne([o.property({type:String})],Te.prototype,"label",void 0),Ne([o.property({type:String})],Te.prototype,"icon",void 0),Ne([o.property({type:String})],Te.prototype,"iconVariant",void 0),Ne([o.property({type:Boolean})],Te.prototype,"trailingIcon",void 0),Ne([o.property({type:Boolean})],Te.prototype,"loading",void 0),Ne([o.property({type:String})],Te.prototype,"tooltipPosition",void 0),Ne([o.property({type:Boolean})],Te.prototype,"hideTooltip",void 0),Ne([o.property({type:Boolean})],Te.prototype,"forceTooltip",void 0),Ne([o.query(".ft-button")],Te.prototype,"button",void 0),Ne([o.query(".ft-button--label slot")],Te.prototype,"slottedContent",void 0),e.customElement("ft-button")(Te);const Re=e.FtCssVariableFactory.extend("--ft-checkbox-text-color",e.designSystemVariables.colorOnSurfaceHigh),Ue=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Ze=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),_e=e.FtCssVariableFactory.extend("--ft-checkbox-border-color",e.designSystemVariables.colorOnSurfaceMedium),He=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),Ve=i.css`
560
560
  * {
561
561
  box-sizing: border-box;
562
562
  }
563
563
 
564
564
  .ft-checkbox {
565
565
  box-sizing: border-box;
566
- color: ${Ne};
566
+ color: ${Re};
567
567
 
568
568
  display: inline-flex;
569
569
  align-items: center;
@@ -571,7 +571,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
571
571
  }
572
572
 
573
573
  .ft-checkbox--disabled {
574
- color: ${_e};
574
+ color: ${He};
575
575
  }
576
576
 
577
577
  input {
@@ -595,26 +595,26 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
595
595
 
596
596
  .ft-checkbox--box {
597
597
  display: flex;
598
- border: 2px solid ${Ze};
598
+ border: 2px solid ${_e};
599
599
  border-radius: 2px;
600
600
 
601
601
  width: 18px;
602
602
  height: 18px;
603
603
 
604
- color: ${Ue};
604
+ color: ${Ze};
605
605
  }
606
606
 
607
607
 
608
608
  .ft-checkbox--checked .ft-checkbox--box,
609
609
  .ft-checkbox--indeterminate .ft-checkbox--box {
610
- border-color: ${Re};
611
- background-color: ${Re};
610
+ border-color: ${Ue};
611
+ background-color: ${Ue};
612
612
  }
613
613
 
614
614
  .ft-checkbox--disabled .ft-checkbox--box {
615
- border-color: ${_e};
615
+ border-color: ${He};
616
616
  background-color: transparent;
617
- color: ${_e};
617
+ color: ${He};
618
618
  }
619
619
 
620
620
  .ft-checkbox--checkmark {
@@ -633,7 +633,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
633
633
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
634
634
  opacity: 1;
635
635
  }
636
- `;var Ve=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ke 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`
636
+ `;var Ke=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class qe 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`
637
637
  <label class="${r.classMap(t)}" for="checkbox-input">
638
638
  <div class="ft-checkbox--box-container">
639
639
  <ft-ripple
@@ -659,14 +659,14 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
659
659
  <slot></slot>
660
660
  </ft-typography>
661
661
  </label>
662
- `}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)}}Ke.elementDefinitions={"ft-ripple":ue,"ft-typography":Qt},Ke.styles=He,Ve([o.property()],Ke.prototype,"name",void 0),Ve([o.property({type:Boolean,reflect:!0})],Ke.prototype,"checked",void 0),Ve([o.property({type:Boolean})],Ke.prototype,"indeterminate",void 0),Ve([o.property({type:Boolean})],Ke.prototype,"disabled",void 0),Ve([o.query(".ft-checkbox")],Ke.prototype,"container",void 0),Ve([o.query("ft-ripple")],Ke.prototype,"ripple",void 0),e.customElement("ft-checkbox")(Ke);const qe=e.FtCssVariableFactory.extend("--ft-radio-text-color",e.designSystemVariables.colorOnSurfaceHigh),We=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Ge=(e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),e.FtCssVariableFactory.extend("--ft-radio-border-color",e.designSystemVariables.colorOnSurfaceMedium)),Xe=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),Ye=i.css`
662
+ `}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)}}qe.elementDefinitions={"ft-ripple":be,"ft-typography":te},qe.styles=Ve,Ke([o.property()],qe.prototype,"name",void 0),Ke([o.property({type:Boolean,reflect:!0})],qe.prototype,"checked",void 0),Ke([o.property({type:Boolean})],qe.prototype,"indeterminate",void 0),Ke([o.property({type:Boolean})],qe.prototype,"disabled",void 0),Ke([o.query(".ft-checkbox")],qe.prototype,"container",void 0),Ke([o.query("ft-ripple")],qe.prototype,"ripple",void 0),e.customElement("ft-checkbox")(qe);const We=e.FtCssVariableFactory.extend("--ft-radio-text-color",e.designSystemVariables.colorOnSurfaceHigh),Ge=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Xe=(e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),e.FtCssVariableFactory.extend("--ft-radio-border-color",e.designSystemVariables.colorOnSurfaceMedium)),Ye=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),Je=i.css`
663
663
  * {
664
664
  box-sizing: border-box;
665
665
  }
666
666
 
667
667
  .ft-radio {
668
668
  box-sizing: border-box;
669
- color: ${qe};
669
+ color: ${We};
670
670
 
671
671
  display: inline-flex;
672
672
  align-items: center;
@@ -674,7 +674,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
674
674
  }
675
675
 
676
676
  .ft-radio--disabled {
677
- color: ${Xe};
677
+ color: ${Ye};
678
678
  }
679
679
 
680
680
  input {
@@ -697,7 +697,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
697
697
  }
698
698
 
699
699
  .ft-radio--box {
700
- border: 2px solid ${Ge};
700
+ border: 2px solid ${Xe};
701
701
  border-radius: 50%;
702
702
 
703
703
  display: flex;
@@ -710,7 +710,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
710
710
 
711
711
  .ft-radio--box:after {
712
712
  content: " ";
713
- background-color: ${We};
713
+ background-color: ${Ge};
714
714
 
715
715
  border-radius: 50%;
716
716
 
@@ -722,7 +722,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
722
722
  }
723
723
 
724
724
  .ft-radio--checked .ft-radio--box {
725
- border-color: ${We};
725
+ border-color: ${Ge};
726
726
  }
727
727
 
728
728
 
@@ -731,14 +731,14 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
731
731
  }
732
732
 
733
733
  .ft-radio--disabled .ft-radio--box {
734
- border-color: ${Xe};
734
+ border-color: ${Ye};
735
735
  background-color: transparent;
736
736
  }
737
737
 
738
738
  .ft-radio--disabled .ft-radio--box:after {
739
- background-color: ${Xe};
739
+ background-color: ${Ye};
740
740
  }
741
- `;var Je=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Qe extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class ti 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`
741
+ `;var Qe=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ti extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class ei 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`
742
742
  <div class="${r.classMap(t)}">
743
743
  <div class="ft-radio--box-container">
744
744
  <ft-ripple
@@ -763,17 +763,17 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
763
763
  </ft-typography>
764
764
  </label>
765
765
  </div>
766
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Qe(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 Qe(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}ti.elementDefinitions={"ft-ripple":ue,"ft-typography":Qt},ti.styles=Ye,Je([o.property()],ti.prototype,"value",void 0),Je([o.property()],ti.prototype,"name",void 0),Je([o.property({type:Boolean,reflect:!0})],ti.prototype,"checked",void 0),Je([o.property({type:Boolean})],ti.prototype,"disabled",void 0),Je([o.query(".ft-radio")],ti.prototype,"container",void 0),Je([o.query("ft-ripple")],ti.prototype,"ripple",void 0),Je([o.query("input")],ti.prototype,"input",void 0);const ei=i.css`
766
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new ti(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 ti(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}ei.elementDefinitions={"ft-ripple":be,"ft-typography":te},ei.styles=Je,Qe([o.property()],ei.prototype,"value",void 0),Qe([o.property()],ei.prototype,"name",void 0),Qe([o.property({type:Boolean,reflect:!0})],ei.prototype,"checked",void 0),Qe([o.property({type:Boolean})],ei.prototype,"disabled",void 0),Qe([o.query(".ft-radio")],ei.prototype,"container",void 0),Qe([o.query("ft-ripple")],ei.prototype,"ripple",void 0),Qe([o.query("input")],ei.prototype,"input",void 0);const ii=i.css`
767
767
  :host {
768
768
  display: contents;
769
769
  }
770
- `;var ii=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class oi extends e.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return i.html`
770
+ `;var oi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class si extends e.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return i.html`
771
771
  <slot @slotchange=${this.onSlotChange}
772
772
  @change=${this.onChange}
773
773
  @keydown=${this.onKeyDown}
774
774
  @focusin=${this.focusCurrentValue}
775
775
  ></slot>
776
- `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}oi.elementDefinitions={},oi.styles=ei,ii([o.property()],oi.prototype,"name",void 0),ii([o.queryAssignedElements()],oi.prototype,"radioButtons",void 0),e.customElement("ft-radio")(ti),e.customElement("ft-radio-group")(oi);const si={borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:e.FtCssVariableFactory.external(Ot.fontFamily,"Body2 typography"),fontSize:e.FtCssVariableFactory.external(Ot.fontSize,"Body2 typography"),fontWeight:e.FtCssVariableFactory.external(Ot.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariableFactory.external(Ot.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariableFactory.external(Ot.lineHeight,"Body2 typography"),textTransform:e.FtCssVariableFactory.external(Ot.textTransform,"Body2 typography")},ri=i.css`
776
+ `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}si.elementDefinitions={},si.styles=ii,oi([o.property()],si.prototype,"name",void 0),oi([o.queryAssignedElements()],si.prototype,"radioButtons",void 0),e.customElement("ft-radio")(ei),e.customElement("ft-radio-group")(si);const ri={borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:e.FtCssVariableFactory.external(Bt.fontFamily,"Body2 typography"),fontSize:e.FtCssVariableFactory.external(Bt.fontSize,"Body2 typography"),fontWeight:e.FtCssVariableFactory.external(Bt.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariableFactory.external(Bt.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariableFactory.external(Bt.lineHeight,"Body2 typography"),textTransform:e.FtCssVariableFactory.external(Bt.textTransform,"Body2 typography")},ni=i.css`
777
777
  .ft-filter-level--container {
778
778
  display: flex;
779
779
  flex-direction: column;
@@ -787,14 +787,14 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
787
787
  flex-shrink: 0;
788
788
  text-decoration: none;
789
789
  position: relative;
790
- border-radius: ${si.borderRadiusM};
790
+ border-radius: ${ri.borderRadiusM};
791
791
  overflow: hidden;
792
792
  display: flex;
793
793
  align-items: center;
794
794
  padding: 4px 4px;
795
795
  gap: 4px;
796
796
  cursor: pointer;
797
- color: ${si.colorOnSurface};
797
+ color: ${ri.colorOnSurface};
798
798
  }
799
799
 
800
800
  .ft-filter-level--go-back:focus {
@@ -823,7 +823,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
823
823
  }
824
824
 
825
825
  ft-button {
826
- ${e.setVariable(Fe.color,si.colorOnSurface)};
826
+ ${e.setVariable(Le.color,ri.colorOnSurface)};
827
827
  }
828
828
 
829
829
  ft-radio, ft-checkbox {
@@ -837,9 +837,9 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
837
837
 
838
838
  .ft-filter-level--no-values {
839
839
  margin: 10px 0;
840
- color: ${si.colorOnSurfaceMedium};
840
+ color: ${ri.colorOnSurfaceMedium};
841
841
  }
842
- `;var ni=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class li 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`
842
+ `;var li=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ai 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`
843
843
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
844
844
  ${null==this.parent?null:i.html`
845
845
  <div tabindex="0"
@@ -888,7 +888,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
888
888
  data-value="${t.value}"
889
889
  .checked=${t.selected}
890
890
  .disabled=${this.disabled}
891
- .indeterminate=${te(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
891
+ .indeterminate=${ee(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
892
892
  @change=${e=>this.optionsChanged(e,t)}>
893
893
  ${t.label}
894
894
  </ft-checkbox>
@@ -903,7 +903,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
903
903
  @change=${t=>t.stopPropagation()}>
904
904
  ${t.label}
905
905
  </ft-radio>
906
- `}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}))}}li.elementDefinitions={"ft-button":Te,"ft-ripple":ue,"ft-typography":Qt,"ft-checkbox":Ke,"ft-icon":Ie,"ft-radio":ti},li.styles=ri,ni([o.property({type:String})],li.prototype,"id",void 0),ni([o.property({type:Object})],li.prototype,"parent",void 0),ni([o.property({type:Array})],li.prototype,"options",void 0),ni([o.property({type:Boolean})],li.prototype,"multivalued",void 0),ni([o.property({type:Boolean})],li.prototype,"disabled",void 0),ni([o.property({type:Boolean})],li.prototype,"hideSelectedOptions",void 0),ni([o.property({type:Boolean})],li.prototype,"preventNavigation",void 0),ni([o.property({type:String})],li.prototype,"filter",void 0),ni([o.property({type:String})],li.prototype,"moreValuesButtonLabel",void 0),ni([o.property({type:String})],li.prototype,"noValuesLabel",void 0),ni([o.property({type:Number})],li.prototype,"displayedValuesLimit",void 0),ni([o.query(".ft-filter-level--container")],li.prototype,"container",void 0),ni([o.state()],li.prototype,"displayedPages",void 0);const ai={buttonsColor:e.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",e.designSystemVariables.colorPrimary),buttonsZIndex:e.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:e.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system")},ci=i.css`
906
+ `}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}))}}ai.elementDefinitions={"ft-button":Te,"ft-ripple":be,"ft-typography":te,"ft-checkbox":qe,"ft-icon":De,"ft-radio":ei},ai.styles=ni,li([o.property({type:String})],ai.prototype,"id",void 0),li([o.property({type:Object})],ai.prototype,"parent",void 0),li([o.property({type:Array})],ai.prototype,"options",void 0),li([o.property({type:Boolean})],ai.prototype,"multivalued",void 0),li([o.property({type:Boolean})],ai.prototype,"disabled",void 0),li([o.property({type:Boolean})],ai.prototype,"hideSelectedOptions",void 0),li([o.property({type:Boolean})],ai.prototype,"preventNavigation",void 0),li([o.property({type:String})],ai.prototype,"filter",void 0),li([o.property({type:String})],ai.prototype,"moreValuesButtonLabel",void 0),li([o.property({type:String})],ai.prototype,"noValuesLabel",void 0),li([o.property({type:Number})],ai.prototype,"displayedValuesLimit",void 0),li([o.query(".ft-filter-level--container")],ai.prototype,"container",void 0),li([o.state()],ai.prototype,"displayedPages",void 0);const ci={buttonsColor:e.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",e.designSystemVariables.colorPrimary),buttonsZIndex:e.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:e.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system")},hi=i.css`
907
907
  .ft-snap-scroll {
908
908
  box-sizing: border-box;
909
909
  position: relative;
@@ -938,7 +938,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
938
938
  flex-wrap: nowrap;
939
939
  align-items: flex-start;
940
940
  justify-content: flex-start;
941
- gap: ${ai.gap};
941
+ gap: ${ci.gap};
942
942
  }
943
943
 
944
944
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -981,11 +981,11 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
981
981
  .ft-snap-scroll--next {
982
982
  position: absolute;
983
983
  display: flex;
984
- z-index: ${ai.buttonsZIndex};
984
+ z-index: ${ci.buttonsZIndex};
985
985
  opacity: 1;
986
986
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
987
- ${e.setVariable(Fe.backgroundColor,"transparent")};
988
- ${e.setVariable(Fe.color,ai.buttonsColor)};
987
+ ${e.setVariable(Le.backgroundColor,"transparent")};
988
+ ${e.setVariable(Le.color,ci.buttonsColor)};
989
989
  }
990
990
 
991
991
  .ft-snap-scroll--previous[hidden],
@@ -998,37 +998,37 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
998
998
  top: 0;
999
999
  left: -1px;
1000
1000
  bottom: 0;
1001
- background: linear-gradient(to right, ${ai.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1001
+ background: linear-gradient(to right, ${ci.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1002
1002
  }
1003
1003
 
1004
1004
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1005
1005
  top: -1px;
1006
1006
  left: 0;
1007
1007
  right: 0;
1008
- background: linear-gradient(to bottom, ${ai.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1008
+ background: linear-gradient(to bottom, ${ci.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1009
1009
  }
1010
1010
 
1011
1011
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1012
1012
  top: 0;
1013
1013
  right: -1px;
1014
1014
  bottom: 0;
1015
- background: linear-gradient(to left, ${ai.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1015
+ background: linear-gradient(to left, ${ci.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1016
1016
  }
1017
1017
 
1018
1018
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1019
1019
  left: 0;
1020
1020
  right: 0;
1021
1021
  bottom: -1px;
1022
- background: linear-gradient(to top, ${ai.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1022
+ background: linear-gradient(to top, ${ci.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1023
1023
  }
1024
1024
 
1025
1025
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1026
1026
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1027
1027
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1028
1028
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1029
- background-color: ${ai.colorSurface};
1029
+ background-color: ${ci.colorSurface};
1030
1030
  }
1031
- `;var hi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class pi extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class fi extends e.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new e.Debouncer(200),this.updateScrollDebouncer=new e.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=r.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":e.isSafari}),o=this.controls&&this.withScroll;return i.html`
1031
+ `;var pi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class fi extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class di extends e.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new e.Debouncer(200),this.updateScrollDebouncer=new e.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=r.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":e.isSafari}),o=this.controls&&this.withScroll;return i.html`
1032
1032
  <div part="container" class="${t}">
1033
1033
  <ft-button
1034
1034
  class="ft-snap-scroll--previous"
@@ -1052,7 +1052,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1052
1052
  @click=${this.next}
1053
1053
  ></ft-button>
1054
1054
  </div>
1055
- `}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 pi(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)}}fi.elementDefinitions={"ft-button":Te},fi.styles=ci,hi([o.property({type:Boolean})],fi.prototype,"horizontal",void 0),hi([o.property({type:Boolean})],fi.prototype,"hideScrollbar",void 0),hi([o.property({type:Boolean})],fi.prototype,"controls",void 0),hi([o.property({type:Boolean})],fi.prototype,"limitSize",void 0),hi([o.state()],fi.prototype,"elements",void 0),hi([o.state()],fi.prototype,"currentElement",void 0),hi([o.state()],fi.prototype,"withScroll",void 0),hi([o.state()],fi.prototype,"startReached",void 0),hi([o.state()],fi.prototype,"endReached",void 0),hi([o.query(".ft-snap-scroll--content")],fi.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(fi);const di=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),ui=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),bi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),vi=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),gi=e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),xi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionDuration,"Design system"),yi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionTimingFunction,"Design system"),mi=[qt,i.css`
1055
+ `}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 fi(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)}}di.elementDefinitions={"ft-button":Te},di.styles=hi,pi([o.property({type:Boolean})],di.prototype,"horizontal",void 0),pi([o.property({type:Boolean})],di.prototype,"hideScrollbar",void 0),pi([o.property({type:Boolean})],di.prototype,"controls",void 0),pi([o.property({type:Boolean})],di.prototype,"limitSize",void 0),pi([o.state()],di.prototype,"elements",void 0),pi([o.state()],di.prototype,"currentElement",void 0),pi([o.state()],di.prototype,"withScroll",void 0),pi([o.state()],di.prototype,"startReached",void 0),pi([o.state()],di.prototype,"endReached",void 0),pi([o.query(".ft-snap-scroll--content")],di.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(di);const ui=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),bi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),vi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),gi=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),xi=e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),yi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionDuration,"Design system"),mi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionTimingFunction,"Design system"),$i=[Wt,i.css`
1056
1056
  :host {
1057
1057
  display: flex;
1058
1058
  max-height: 100%;
@@ -1065,7 +1065,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1065
1065
  flex-direction: column;
1066
1066
  max-height: 100%;
1067
1067
  max-width: 100%;
1068
- color: ${ui};
1068
+ color: ${bi};
1069
1069
  }
1070
1070
 
1071
1071
  .ft-filter--header {
@@ -1075,13 +1075,13 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1075
1075
  flex-shrink: 0;
1076
1076
  padding: 0 10px;
1077
1077
  margin-bottom: 8px;
1078
- ${e.setVariable(tt.fontSize,"14px")};
1078
+ ${e.setVariable(et.fontSize,"14px")};
1079
1079
  }
1080
1080
 
1081
1081
  .ft-filter--header ft-button {
1082
1082
  flex-shrink: 0;
1083
1083
  margin-left: auto;
1084
- ${e.setVariable(Fe.iconSize,"18px")};
1084
+ ${e.setVariable(Le.iconSize,"18px")};
1085
1085
  }
1086
1086
 
1087
1087
  .ft-filter--label {
@@ -1089,8 +1089,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1089
1089
  flex-shrink: 1;
1090
1090
  flex-grow: 1;
1091
1091
  word-break: break-word;
1092
- ${e.setVariable(tt.lineHeight,"22px")};
1093
- ${e.setVariable(tt.fontWeight,"bold")};
1092
+ ${e.setVariable(et.lineHeight,"22px")};
1093
+ ${e.setVariable(et.fontWeight,"bold")};
1094
1094
  }
1095
1095
 
1096
1096
  .ft-filter--filter {
@@ -1101,8 +1101,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1101
1101
  padding: 0 10px;
1102
1102
  overflow: hidden;
1103
1103
  height: 32px;
1104
- transition: height ${xi} ${yi},
1105
- margin ${xi} ${yi};
1104
+ transition: height ${yi} ${mi},
1105
+ margin ${yi} ${mi};
1106
1106
  transition-delay: 500ms;
1107
1107
  }
1108
1108
 
@@ -1115,15 +1115,15 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1115
1115
  display: block;
1116
1116
  width: 100%;
1117
1117
  border-radius: 4px;
1118
- border: 1px solid ${di};
1118
+ border: 1px solid ${ui};
1119
1119
  padding: 4px;
1120
- background-color: ${gi};
1121
- color: ${ui};
1122
- outline-color: ${vi};
1120
+ background-color: ${xi};
1121
+ color: ${bi};
1122
+ outline-color: ${gi};
1123
1123
  }
1124
1124
 
1125
1125
  input::placeholder {
1126
- color: ${bi};
1126
+ color: ${vi};
1127
1127
  }
1128
1128
 
1129
1129
  .ft-filter--values {
@@ -1135,7 +1135,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1135
1135
  }
1136
1136
 
1137
1137
  .ft-filter--separator {
1138
- border-top: 1px solid ${di};
1138
+ border-top: 1px solid ${ui};
1139
1139
  margin: 4px 10px;
1140
1140
  }
1141
1141
 
@@ -1160,7 +1160,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1160
1160
  slot {
1161
1161
  display: none;
1162
1162
  }
1163
- `];var $i=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class wi extends CustomEvent{constructor(t){super("change",{detail:t})}}class ki 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 te(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`
1163
+ `];var wi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ki extends CustomEvent{constructor(t){super("change",{detail:t})}}class Si 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 ee(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`
1164
1164
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1165
1165
  part="container">
1166
1166
  ${this.label||o?i.html`
@@ -1229,17 +1229,17 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1229
1229
  .exportpartsPrefixes=${["values","available-values"]}
1230
1230
  noValuesLabel="${this.noValuesLabel}"
1231
1231
  ></ft-filter-level>
1232
- `}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 wi(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)}}ki.elementDefinitions={"ft-button":Te,"ft-filter-level":li,"ft-snap-scroll":fi,"ft-typography":Qt},ki.styles=mi,$i([o.property({type:String})],ki.prototype,"id",void 0),$i([o.property({type:String})],ki.prototype,"label",void 0),$i([o.property({type:String})],ki.prototype,"filterPlaceHolder",void 0),$i([o.property({type:String})],ki.prototype,"clearButtonLabel",void 0),$i([o.property({type:String})],ki.prototype,"moreValuesButtonLabel",void 0),$i([o.property({type:String})],ki.prototype,"noValuesLabel",void 0),$i([e.jsonProperty([])],ki.prototype,"options",void 0),$i([o.property({type:Boolean})],ki.prototype,"multivalued",void 0),$i([o.property({type:Boolean})],ki.prototype,"disabled",void 0),$i([o.property({type:Boolean})],ki.prototype,"raiseSelectedOptions",void 0),$i([o.property({type:Number})],ki.prototype,"displayedValuesLimit",void 0),$i([o.query(".ft-filter--slot")],ki.prototype,"slotElement",void 0),$i([o.query(".ft-filter--container")],ki.prototype,"container",void 0),$i([o.query(".ft-filter--values")],ki.prototype,"valuesContainer",void 0),$i([o.query(".ft-filter--levels")],ki.prototype,"levelsContainer",void 0),$i([o.query(".ft-filter--levels ft-filter-level:last-child")],ki.prototype,"lastLevel",void 0),$i([o.query(".ft-filter--filter input")],ki.prototype,"filterInput",void 0),$i([o.queryAll(".ft-filter--levels ft-filter-level")],ki.prototype,"levels",void 0),$i([o.state()],ki.prototype,"withScroll",void 0),$i([o.state()],ki.prototype,"filter",void 0),$i([o.state()],ki.prototype,"slideIn",void 0),$i([o.state()],ki.prototype,"slideOut",void 0);var Si=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class zi extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return i.html`
1232
+ `}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 ki(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)}}Si.elementDefinitions={"ft-button":Te,"ft-filter-level":ai,"ft-snap-scroll":di,"ft-typography":te},Si.styles=$i,wi([o.property({type:String})],Si.prototype,"id",void 0),wi([o.property({type:String})],Si.prototype,"label",void 0),wi([o.property({type:String})],Si.prototype,"filterPlaceHolder",void 0),wi([o.property({type:String})],Si.prototype,"clearButtonLabel",void 0),wi([o.property({type:String})],Si.prototype,"moreValuesButtonLabel",void 0),wi([o.property({type:String})],Si.prototype,"noValuesLabel",void 0),wi([e.jsonProperty([])],Si.prototype,"options",void 0),wi([o.property({type:Boolean})],Si.prototype,"multivalued",void 0),wi([o.property({type:Boolean})],Si.prototype,"disabled",void 0),wi([o.property({type:Boolean})],Si.prototype,"raiseSelectedOptions",void 0),wi([o.property({type:Number})],Si.prototype,"displayedValuesLimit",void 0),wi([o.query(".ft-filter--slot")],Si.prototype,"slotElement",void 0),wi([o.query(".ft-filter--container")],Si.prototype,"container",void 0),wi([o.query(".ft-filter--values")],Si.prototype,"valuesContainer",void 0),wi([o.query(".ft-filter--levels")],Si.prototype,"levelsContainer",void 0),wi([o.query(".ft-filter--levels ft-filter-level:last-child")],Si.prototype,"lastLevel",void 0),wi([o.query(".ft-filter--filter input")],Si.prototype,"filterInput",void 0),wi([o.queryAll(".ft-filter--levels ft-filter-level")],Si.prototype,"levels",void 0),wi([o.state()],Si.prototype,"withScroll",void 0),wi([o.state()],Si.prototype,"filter",void 0),wi([o.state()],Si.prototype,"slideIn",void 0),wi([o.state()],Si.prototype,"slideOut",void 0);var zi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Oi extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return i.html`
1233
1233
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1234
- `}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}))}}zi.elementDefinitions={},Si([o.property({type:String})],zi.prototype,"label",void 0),Si([o.property({type:Object,converter:t=>t})],zi.prototype,"value",void 0),Si([o.property({type:Boolean,reflect:!0})],zi.prototype,"selected",void 0),Si([o.property({type:Object})],zi.prototype,"subOptions",void 0),Si([o.query(".ft-filter-option--slot")],zi.prototype,"slotElement",void 0),e.customElement("ft-filter")(ki),e.customElement("ft-filter-option")(zi);const Oi=i.css`
1234
+ `}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}))}}Oi.elementDefinitions={},zi([o.property({type:String})],Oi.prototype,"label",void 0),zi([o.property({type:Object,converter:t=>t})],Oi.prototype,"value",void 0),zi([o.property({type:Boolean,reflect:!0})],Oi.prototype,"selected",void 0),zi([o.property({type:Object})],Oi.prototype,"subOptions",void 0),zi([o.query(".ft-filter-option--slot")],Oi.prototype,"slotElement",void 0),e.customElement("ft-filter")(Si),e.customElement("ft-filter-option")(Oi);const Bi=i.css`
1235
1235
  .ft-accordion {
1236
1236
  box-sizing: border-box;
1237
1237
  }
1238
- `;var Bi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ci extends e.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return i.html`
1238
+ `;var Ci=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ei extends e.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return i.html`
1239
1239
  <div class="ft-accordion">
1240
1240
  <slot @activated=${this.onChange}></slot>
1241
1241
  </div>
1242
- `}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}Ci.elementDefinitions={},Ci.styles=Oi,Bi([o.property({type:Boolean})],Ci.prototype,"multi",void 0),Bi([o.query("slot")],Ci.prototype,"content",void 0);const Ei=e.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),Ii=e.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),Di=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Fi=i.css`
1242
+ `}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}Ei.elementDefinitions={},Ei.styles=Bi,Ci([o.property({type:Boolean})],Ei.prototype,"multi",void 0),Ci([o.query("slot")],Ei.prototype,"content",void 0);const Ii=e.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),Di=e.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),Fi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Li=i.css`
1243
1243
  .ft-accordion-item {
1244
1244
  display: flex;
1245
1245
  flex-direction: column;
@@ -1252,8 +1252,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1252
1252
  display: flex;
1253
1253
  align-items: center;
1254
1254
  cursor: pointer;
1255
- padding: ${Ii} ${Ei};
1256
- gap: calc(${Ei} / 2);
1255
+ padding: ${Di} ${Ii};
1256
+ gap: calc(${Ii} / 2);
1257
1257
  outline: none;
1258
1258
  }
1259
1259
 
@@ -1278,13 +1278,13 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1278
1278
  .ft-accordion-item--active .ft-accordion-item--content {
1279
1279
  height: initial;
1280
1280
  overflow: visible;
1281
- padding: ${Ii} ${Ei};
1281
+ padding: ${Di} ${Ii};
1282
1282
  }
1283
1283
 
1284
1284
  .ft-accordion-item--separator {
1285
- border-bottom: 1px solid ${Di};
1285
+ border-bottom: 1px solid ${Fi};
1286
1286
  }
1287
- `;var Li=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ji extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return i.html`
1287
+ `;var ji=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Mi extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return i.html`
1288
1288
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1289
1289
  <div class="ft-accordion-item--toggle"
1290
1290
  part="toggle"
@@ -1308,7 +1308,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1308
1308
  </div>
1309
1309
  <div class="ft-accordion-item--separator" part="separator"></div>
1310
1310
  </div>
1311
- `}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)}}ji.elementDefinitions={"ft-ripple":ue,"ft-typography":Qt,"ft-icon":Ie},ji.styles=Fi,Li([o.property({type:String})],ji.prototype,"icon",void 0),Li([o.property({type:String})],ji.prototype,"label",void 0),Li([o.property({type:Boolean,reflect:!0})],ji.prototype,"active",void 0),e.customElement("ft-accordion")(Ci),e.customElement("ft-accordion-item")(ji);const Mi=e.FtCssVariableFactory.extend("--ft-chip-color",e.designSystemVariables.colorOnSurface),Pi={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-background-color",e.designSystemVariables.colorSurface),color:Mi,fontSize:e.FtCssVariableFactory.extend("--ft-chip-font-size",Ot.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:e.FtCssVariableFactory.extend("--ft-chip-ripple-color",Mi),horizontalPadding:e.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:e.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Ai=e.FtCssVariableFactory.extend("--ft-chip-highlighted-color",e.FtCssVariableFactory.extend("--ft-chip-color",e.designSystemVariables.colorOnPrimary)),Ti={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",e.FtCssVariableFactory.extend("--ft-chip-background-color",e.designSystemVariables.colorPrimary)),color:Ai,rippleColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ai)},Ni=e.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Ri=e.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Ui=[e.noTextSelect,i.css`
1311
+ `}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)}}Mi.elementDefinitions={"ft-ripple":be,"ft-typography":te,"ft-icon":De},Mi.styles=Li,ji([o.property({type:String})],Mi.prototype,"icon",void 0),ji([o.property({type:String})],Mi.prototype,"label",void 0),ji([o.property({type:Boolean,reflect:!0})],Mi.prototype,"active",void 0),e.customElement("ft-accordion")(Ei),e.customElement("ft-accordion-item")(Mi);const Pi=e.FtCssVariableFactory.extend("--ft-chip-color",e.designSystemVariables.colorOnSurface),Ai={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-background-color",e.designSystemVariables.colorSurface),color:Pi,fontSize:e.FtCssVariableFactory.extend("--ft-chip-font-size",Bt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:e.FtCssVariableFactory.extend("--ft-chip-ripple-color",Pi),horizontalPadding:e.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:e.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Ni=e.FtCssVariableFactory.extend("--ft-chip-highlighted-color",e.FtCssVariableFactory.extend("--ft-chip-color",e.designSystemVariables.colorOnPrimary)),Ti={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",e.FtCssVariableFactory.extend("--ft-chip-background-color",e.designSystemVariables.colorPrimary)),color:Ni,rippleColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ni)},Ri=e.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Ui=e.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Zi=[e.noTextSelect,i.css`
1312
1312
  :host {
1313
1313
  display: inline-block;
1314
1314
  max-width: 100%;
@@ -1325,20 +1325,20 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1325
1325
  box-sizing: border-box;
1326
1326
  pointer-events: auto;
1327
1327
 
1328
- --ft-chip-internal-font-size: ${Pi.fontSize};
1328
+ --ft-chip-internal-font-size: ${Ai.fontSize};
1329
1329
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
1330
- ${e.setVariable(Oe.size,Pi.iconSize)};
1331
- --ft-chip-internal-vertical-padding: ${Pi.verticalPadding};
1332
- --ft-chip-internal-horizontal-padding: ${Pi.horizontalPadding};
1330
+ ${e.setVariable(Be.size,Ai.iconSize)};
1331
+ --ft-chip-internal-vertical-padding: ${Ai.verticalPadding};
1332
+ --ft-chip-internal-horizontal-padding: ${Ai.horizontalPadding};
1333
1333
  --ft-chip-internal-icon-padding: 3px;
1334
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Pi.iconSize});
1334
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Ai.iconSize});
1335
1335
 
1336
- border: 1px solid ${Pi.colorOutline};
1337
- color: ${Pi.color};
1338
- ${e.setVariable(re.color,Pi.rippleColor)};
1336
+ border: 1px solid ${Ai.colorOutline};
1337
+ color: ${Ai.color};
1338
+ ${e.setVariable(ne.color,Ai.rippleColor)};
1339
1339
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
1340
1340
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
1341
- background-color: ${Pi.backgroundColor};
1341
+ background-color: ${Ai.backgroundColor};
1342
1342
  line-height: var(--ft-chip-internal-content-height);
1343
1343
  }
1344
1344
 
@@ -1348,8 +1348,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1348
1348
 
1349
1349
  .ft-chip--dense {
1350
1350
  --ft-chip-internal-icon-padding: 3px;
1351
- --ft-chip-internal-vertical-padding: ${Ri};
1352
- --ft-chip-internal-horizontal-padding: ${Ni};
1351
+ --ft-chip-internal-vertical-padding: ${Ui};
1352
+ --ft-chip-internal-horizontal-padding: ${Ri};
1353
1353
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
1354
1354
  }
1355
1355
 
@@ -1361,14 +1361,14 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1361
1361
  cursor: default;
1362
1362
  pointer-events: none;
1363
1363
  filter: grayscale(1);
1364
- opacity: ${Pi.opacityDisabled};
1364
+ opacity: ${Ai.opacityDisabled};
1365
1365
  }
1366
1366
 
1367
1367
  .ft-chip--highlighted {
1368
1368
  border: none;
1369
1369
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
1370
1370
  background-color: ${Ti.backgroundColor};
1371
- ${e.setVariable(re.color,Ti.rippleColor)};
1371
+ ${e.setVariable(ne.color,Ti.rippleColor)};
1372
1372
  color: ${Ti.color};
1373
1373
  }
1374
1374
 
@@ -1402,8 +1402,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1402
1402
  vertical-align: bottom;
1403
1403
  display: block;
1404
1404
  margin: 0 var(--ft-chip-internal-horizontal-padding);
1405
- ${e.setVariable(Ot.fontSize,"var(--ft-chip-internal-font-size)")};
1406
- ${e.setVariable(Ot.lineHeight,"var(--ft-chip-internal-content-height)")};
1405
+ ${e.setVariable(Bt.fontSize,"var(--ft-chip-internal-font-size)")};
1406
+ ${e.setVariable(Bt.lineHeight,"var(--ft-chip-internal-content-height)")};
1407
1407
  }
1408
1408
 
1409
1409
  .ft-chip--safari-fix .ft-chip--label {
@@ -1438,7 +1438,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1438
1438
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
1439
1439
  order: -1;
1440
1440
  }
1441
- `];var Zi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class _i extends CustomEvent{constructor(){super("icon-click")}}class Hi 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}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":e.isSafari};return i.html`
1441
+ `];var _i=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Hi extends CustomEvent{constructor(){super("icon-click")}}class Vi 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}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":e.isSafari};return i.html`
1442
1442
  <div class="${r.classMap(t)}"
1443
1443
  aria-label="${this.getLabel()}"
1444
1444
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -1457,25 +1457,25 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1457
1457
  <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
1458
1458
  <ft-icon variant="material">${this.internalIcon}</ft-icon>
1459
1459
  </div>
1460
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new _i))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new _i))}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)}}Hi.elementDefinitions={"ft-ripple":ue,"ft-typography":Qt,"ft-icon":Ie},Hi.styles=Ui,Zi([o.property({type:Boolean})],Hi.prototype,"highlighted",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"removable",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"disabled",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"clickable",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"iconClickable",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"dense",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"multiLine",void 0),Zi([o.property({type:String})],Hi.prototype,"label",void 0),Zi([o.property({type:String})],Hi.prototype,"icon",void 0),Zi([o.property({type:Boolean})],Hi.prototype,"trailingIcon",void 0),Zi([o.query("ft-typography slot")],Hi.prototype,"slottedContent",void 0),e.customElement("ft-chip")(Hi);const Vi={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Ki=i.css`
1460
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Hi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Hi))}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)}}Vi.elementDefinitions={"ft-ripple":be,"ft-typography":te,"ft-icon":De},Vi.styles=Zi,_i([o.property({type:Boolean})],Vi.prototype,"highlighted",void 0),_i([o.property({type:Boolean})],Vi.prototype,"removable",void 0),_i([o.property({type:Boolean})],Vi.prototype,"disabled",void 0),_i([o.property({type:Boolean})],Vi.prototype,"clickable",void 0),_i([o.property({type:Boolean})],Vi.prototype,"iconClickable",void 0),_i([o.property({type:Boolean})],Vi.prototype,"dense",void 0),_i([o.property({type:Boolean})],Vi.prototype,"multiLine",void 0),_i([o.property({type:String})],Vi.prototype,"label",void 0),_i([o.property({type:String})],Vi.prototype,"icon",void 0),_i([o.property({type:Boolean})],Vi.prototype,"trailingIcon",void 0),_i([o.query("ft-typography slot")],Vi.prototype,"slottedContent",void 0),e.customElement("ft-chip")(Vi);const Ki={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},qi=i.css`
1461
1461
  .ft-input-label {
1462
1462
  position: absolute;
1463
1463
  inset: 0;
1464
1464
  display: flex;
1465
- background-color: ${Vi.colorSurface};
1466
- border-radius: ${Vi.borderRadiusS} ${Vi.borderRadiusS} 0 0;
1465
+ background-color: ${Ki.colorSurface};
1466
+ border-radius: ${Ki.borderRadiusS} ${Ki.borderRadiusS} 0 0;
1467
1467
  }
1468
1468
 
1469
1469
  .ft-input-label--outlined {
1470
- border-radius: ${Vi.borderRadiusS};
1470
+ border-radius: ${Ki.borderRadiusS};
1471
1471
  }
1472
1472
 
1473
1473
  .ft-input-label {
1474
- border-color: ${Vi.borderColor};
1474
+ border-color: ${Ki.borderColor};
1475
1475
  }
1476
1476
 
1477
1477
  .ft-input-label.ft-input-label--in-error {
1478
- border-color: ${Vi.colorError}
1478
+ border-color: ${Ki.colorError}
1479
1479
  }
1480
1480
 
1481
1481
  .ft-input-label:before,
@@ -1488,7 +1488,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1488
1488
  }
1489
1489
 
1490
1490
  .ft-input-label:before {
1491
- width: ${Vi.horizontalSpacing};
1491
+ width: ${Ki.horizontalSpacing};
1492
1492
  flex-shrink: 0;
1493
1493
  }
1494
1494
 
@@ -1504,18 +1504,18 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1504
1504
  border-bottom-width: 1px;
1505
1505
  border-bottom-style: solid;
1506
1506
  border-color: inherit;
1507
- color: ${Vi.textColor};
1507
+ color: ${Ki.textColor};
1508
1508
  transition: font-size 250ms, line-height 250ms, color 250ms;
1509
- ${e.setVariable(Bt.fontSize,Vi.fontSize)};
1510
- ${e.setVariable(Bt.lineHeight,Vi.fontSize)};
1509
+ ${e.setVariable(Ct.fontSize,Ki.fontSize)};
1510
+ ${e.setVariable(Ct.lineHeight,Ki.fontSize)};
1511
1511
  }
1512
1512
 
1513
1513
  .ft-input-label--in-error .ft-input-label--text {
1514
- color: ${Vi.colorError}
1514
+ color: ${Ki.colorError}
1515
1515
  }
1516
1516
 
1517
1517
  .ft-input-label--disabled .ft-input-label--text {
1518
- color: ${Vi.disabledTextColor};
1518
+ color: ${Ki.disabledTextColor};
1519
1519
  }
1520
1520
 
1521
1521
  .ft-input-label--hidden-text {
@@ -1530,17 +1530,17 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1530
1530
  overflow: hidden;
1531
1531
  white-space: nowrap;
1532
1532
  text-overflow: ellipsis;
1533
- padding: ${Vi.verticalSpacing} 4px;
1534
- margin: calc(${Vi.verticalSpacing} * -1) 0;
1533
+ padding: ${Ki.verticalSpacing} 4px;
1534
+ margin: calc(${Ki.verticalSpacing} * -1) 0;
1535
1535
  }
1536
1536
 
1537
1537
  .ft-input-label--raised .ft-input-label--text {
1538
- ${e.setVariable(Bt.fontSize,Vi.raisedFontSize)};
1539
- ${e.setVariable(Bt.lineHeight,Vi.raisedFontSize)};
1538
+ ${e.setVariable(Ct.fontSize,Ki.raisedFontSize)};
1539
+ ${e.setVariable(Ct.lineHeight,Ki.raisedFontSize)};
1540
1540
  }
1541
1541
 
1542
1542
  .ft-input-label--raised .ft-input-label--floating-text {
1543
- top: ${Vi.verticalSpacing};
1543
+ top: ${Ki.verticalSpacing};
1544
1544
  }
1545
1545
 
1546
1546
  .ft-input-label--outlined .ft-input-label--text,
@@ -1553,27 +1553,27 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1553
1553
  .ft-input-label--outlined:before {
1554
1554
  border-left-width: 1px;
1555
1555
  border-left-style: solid;
1556
- border-radius: ${Vi.borderRadiusS} 0 0 ${Vi.borderRadiusS};
1556
+ border-radius: ${Ki.borderRadiusS} 0 0 ${Ki.borderRadiusS};
1557
1557
  }
1558
1558
 
1559
1559
  .ft-input-label--outlined:after {
1560
1560
  border-right-width: 1px;
1561
1561
  border-right-style: solid;
1562
- border-radius: 0 ${Vi.borderRadiusS} ${Vi.borderRadiusS} 0;
1562
+ border-radius: 0 ${Ki.borderRadiusS} ${Ki.borderRadiusS} 0;
1563
1563
  }
1564
1564
 
1565
1565
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1566
1566
  padding: 2px 4px;
1567
- z-index: ${Vi.raisedZIndex};
1568
- background-color: ${Vi.colorSurface};
1569
- border-radius: ${Vi.borderRadiusS};
1567
+ z-index: ${Ki.raisedZIndex};
1568
+ background-color: ${Ki.colorSurface};
1569
+ border-radius: ${Ki.borderRadiusS};
1570
1570
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1571
1571
  }
1572
1572
 
1573
1573
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1574
1574
  border-top: none;
1575
1575
  }
1576
- `;var qi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Wi 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`
1576
+ `;var Wi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Gi extends 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`
1577
1577
  <div class="${r.classMap(t)}">
1578
1578
  ${this.text?i.html`
1579
1579
  <div class="ft-input-label--text ft-typography--caption">
@@ -1582,7 +1582,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1582
1582
  </div>
1583
1583
  `:null}
1584
1584
  </div>
1585
- `}}Wi.elementDefinitions={},Wi.styles=[qt,Ki],qi([o.property({type:String})],Wi.prototype,"text",void 0),qi([o.property({type:Boolean})],Wi.prototype,"raised",void 0),qi([o.property({type:Boolean})],Wi.prototype,"outlined",void 0),qi([o.property({type:Boolean})],Wi.prototype,"disabled",void 0),qi([o.property({type:Boolean})],Wi.prototype,"error",void 0),e.customElement("ft-input-label")(Wi);const Gi={labelSize:e.FtCssVariableFactory.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariableFactory.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:e.FtCssVariableFactory.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:e.FtCssVariableFactory.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariableFactory.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariableFactory.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariableFactory.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Xi=i.css`
1585
+ `}}Gi.elementDefinitions={},Gi.styles=[Wt,qi],Wi([o.property({type:String})],Gi.prototype,"text",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"raised",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"outlined",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"disabled",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"error",void 0),e.customElement("ft-input-label")(Gi);const Xi={labelSize:e.FtCssVariableFactory.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariableFactory.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:e.FtCssVariableFactory.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:e.FtCssVariableFactory.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariableFactory.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariableFactory.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariableFactory.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Yi=i.css`
1586
1586
  *:focus {
1587
1587
  outline: none;
1588
1588
  }
@@ -1596,7 +1596,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1596
1596
  .ft-select--main-panel {
1597
1597
  position: relative;
1598
1598
  display: flex;
1599
- height: calc(4 * ${Gi.verticalSpacing} + ${Gi.labelSize} + ${Gi.selectedOptionSize});
1599
+ height: calc(4 * ${Xi.verticalSpacing} + ${Xi.labelSize} + ${Xi.selectedOptionSize});
1600
1600
  }
1601
1601
 
1602
1602
  .ft-select--input-panel {
@@ -1608,14 +1608,14 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1608
1608
  padding-left: 16px;
1609
1609
  padding-right: 8px;
1610
1610
  gap: 8px;
1611
- color: ${Gi.selectedOptionColor};
1612
- ${e.setVariable(re.color,Gi.selectedOptionColor)};
1611
+ color: ${Xi.selectedOptionColor};
1612
+ ${e.setVariable(ne.color,Xi.selectedOptionColor)};
1613
1613
  }
1614
1614
 
1615
1615
  .ft-select--input-panel,
1616
1616
  .ft-select--option {
1617
- ${e.setVariable(re.opacityContentOnSurfaceHover,"0.08")};
1618
- ${e.setVariable(re.opacityContentOnSurfacePressed,"0.04")};
1617
+ ${e.setVariable(ne.opacityContentOnSurfaceHover,"0.08")};
1618
+ ${e.setVariable(ne.opacityContentOnSurfacePressed,"0.04")};
1619
1619
  }
1620
1620
 
1621
1621
  .ft-select--input-panel > *:not(ft-ripple),
@@ -1625,7 +1625,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1625
1625
 
1626
1626
  .ft-select--disabled .ft-select--input-panel,
1627
1627
  .ft-select--disabled .ft-select--option {
1628
- color: ${Gi.colorOnSurfaceDisabled};
1628
+ color: ${Xi.colorOnSurfaceDisabled};
1629
1629
  }
1630
1630
 
1631
1631
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -1634,18 +1634,18 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1634
1634
  }
1635
1635
 
1636
1636
  ft-input-label {
1637
- ${e.setVariable(Vi.fontSize,Gi.selectedOptionSize)};
1638
- ${e.setVariable(Vi.raisedFontSize,Gi.labelSize)};
1639
- ${e.setVariable(Vi.verticalSpacing,Gi.verticalSpacing)};
1637
+ ${e.setVariable(Ki.fontSize,Xi.selectedOptionSize)};
1638
+ ${e.setVariable(Ki.raisedFontSize,Xi.labelSize)};
1639
+ ${e.setVariable(Ki.verticalSpacing,Xi.verticalSpacing)};
1640
1640
  }
1641
1641
 
1642
1642
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1643
- color: ${Gi.colorPrimary};
1643
+ color: ${Xi.colorPrimary};
1644
1644
  }
1645
1645
 
1646
1646
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1647
- ${e.setVariable(Vi.borderColor,Gi.colorPrimary)};
1648
- ${e.setVariable(Vi.textColor,Gi.colorPrimary)};
1647
+ ${e.setVariable(Ki.borderColor,Xi.colorPrimary)};
1648
+ ${e.setVariable(Ki.textColor,Xi.colorPrimary)};
1649
1649
  }
1650
1650
 
1651
1651
  .ft-select--selected-option {
@@ -1655,12 +1655,12 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1655
1655
  overflow: hidden;
1656
1656
  white-space: nowrap;
1657
1657
  text-overflow: ellipsis;
1658
- ${e.setVariable(zt.fontSize,Gi.selectedOptionSize)};
1659
- ${e.setVariable(zt.lineHeight,Gi.selectedOptionSize)};
1658
+ ${e.setVariable(Ot.fontSize,Xi.selectedOptionSize)};
1659
+ ${e.setVariable(Ot.lineHeight,Xi.selectedOptionSize)};
1660
1660
  }
1661
1661
 
1662
1662
  .ft-select--in-error .ft-select--selected-option {
1663
- color: ${Gi.colorError};
1663
+ color: ${Xi.colorError};
1664
1664
  }
1665
1665
 
1666
1666
  ft-icon {
@@ -1672,16 +1672,16 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1672
1672
  }
1673
1673
 
1674
1674
  .ft-select--filled .ft-select--input-panel {
1675
- border-radius: ${Gi.borderRadiusS} ${Gi.borderRadiusS} 0 0;
1675
+ border-radius: ${Xi.borderRadiusS} ${Xi.borderRadiusS} 0 0;
1676
1676
  }
1677
1677
 
1678
1678
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1679
1679
  align-self: stretch;
1680
- padding-top: calc(${Gi.labelSize} + 2 * ${Gi.verticalSpacing});
1680
+ padding-top: calc(${Xi.labelSize} + 2 * ${Xi.verticalSpacing});
1681
1681
  }
1682
1682
 
1683
1683
  .ft-select--outlined .ft-select--input-panel {
1684
- border-radius: ${Gi.borderRadiusS};
1684
+ border-radius: ${Xi.borderRadiusS};
1685
1685
  }
1686
1686
 
1687
1687
  .ft-select--options {
@@ -1690,10 +1690,10 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1690
1690
  top: 100%;
1691
1691
  left: 0;
1692
1692
  right: 0;
1693
- color: ${Gi.optionsColor};
1694
- background: ${Gi.colorSurface};
1695
- z-index: ${Gi.optionsZIndex};
1696
- box-shadow: ${Gi.elevation02};
1693
+ color: ${Xi.optionsColor};
1694
+ background: ${Xi.colorSurface};
1695
+ z-index: ${Xi.optionsZIndex};
1696
+ box-shadow: ${Xi.elevation02};
1697
1697
  }
1698
1698
 
1699
1699
  .ft-select--fixed .ft-select--options {
@@ -1704,7 +1704,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1704
1704
 
1705
1705
  .ft-select--options-displayed .ft-select--options {
1706
1706
  display: block;
1707
- max-height: ${Gi.optionsHeight};
1707
+ max-height: ${Xi.optionsHeight};
1708
1708
  overflow-y: auto;
1709
1709
  }
1710
1710
 
@@ -1723,13 +1723,13 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1723
1723
 
1724
1724
  .ft-select--helper-text {
1725
1725
  padding: 0 12px 0 16px;
1726
- color: ${Gi.helperColor};
1726
+ color: ${Xi.helperColor};
1727
1727
  }
1728
1728
 
1729
1729
  .ft-select--in-error .ft-select--helper-text {
1730
- color: ${Gi.colorError};
1730
+ color: ${Xi.colorError};
1731
1731
  }
1732
- `;var Yi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ji extends e.FtLitElement{constructor(){super(...arguments),this.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}))}}Ji.elementDefinitions={},Yi([o.property({type:String})],Ji.prototype,"label",void 0),Yi([o.property({type:Object,converter:t=>t})],Ji.prototype,"value",void 0),Yi([o.property({type:Boolean,reflect:!0})],Ji.prototype,"selected",void 0);class Qi extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,o,n,l;let a=this.hasOptionsMenuOpen,c=this.disabled||!this.hasOptions;const h=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":a,"ft-select--has-option-selected":h,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
1732
+ `;var Ji=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Qi 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}))}}Qi.elementDefinitions={},Ji([o.property({type:String})],Qi.prototype,"label",void 0),Ji([o.property({type:Object,converter:t=>t})],Qi.prototype,"value",void 0),Ji([o.property({type:Boolean,reflect:!0})],Qi.prototype,"selected",void 0);class to extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,o,n,l;let a=this.hasOptionsMenuOpen,c=this.disabled||!this.hasOptions;const h=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":a,"ft-select--has-option-selected":h,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
1733
1733
  <div class="${r.classMap(p)}" part="container">
1734
1734
  <div class="ft-select--main-panel" part="main-panel">
1735
1735
  <ft-input-label text="${this.label}"
@@ -1777,34 +1777,34 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1777
1777
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
1778
1778
  <span>${t.label}</span>
1779
1779
  </div>
1780
- `}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.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,r;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(r=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){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)}}Qi.elementDefinitions={"ft-input-label":Wi,"ft-typography":Qt,"ft-ripple":ue,"ft-icon":Ie},Qi.styles=[Kt,qt,Xi],Yi([o.property({type:String})],Qi.prototype,"label",void 0),Yi([o.property({type:String})],Qi.prototype,"helper",void 0),Yi([o.property({type:Boolean})],Qi.prototype,"outlined",void 0),Yi([o.property({type:Boolean})],Qi.prototype,"disabled",void 0),Yi([o.property({type:Boolean})],Qi.prototype,"error",void 0),Yi([o.property({type:Boolean})],Qi.prototype,"fixedMenuPosition",void 0),Yi([o.property({type:Array})],Qi.prototype,"options",void 0),Yi([o.state()],Qi.prototype,"selectedOption",void 0),Yi([o.state()],Qi.prototype,"optionsDisplayed",void 0),Yi([o.state()],Qi.prototype,"focusOptions",void 0),Yi([o.query(".ft-select")],Qi.prototype,"container",void 0),Yi([o.query(".ft-select--options")],Qi.prototype,"optionsMenu",void 0),Yi([o.query(".ft-select--input-panel")],Qi.prototype,"mainPanel",void 0),Yi([o.query(".ft-select--option:first-child")],Qi.prototype,"firstOption",void 0),Yi([o.query(".ft-select--option:focus")],Qi.prototype,"focusedOption",void 0),Yi([o.query(".ft-select--option.ft-select--option-selected")],Qi.prototype,"selectedOptionElement",void 0),Yi([o.query(".ft-select--option:last-child")],Qi.prototype,"lastOption",void 0),Yi([o.query("slot")],Qi.prototype,"optionsSlot",void 0),e.customElement("ft-select")(Qi),e.customElement("ft-select-option")(Ji);const to={display:e.FtCssVariableFactory.create("--ft-skeleton--display","DISPLAY","block"),width:e.FtCssVariableFactory.create("--ft-skeleton--width","SIZE","100%"),height:e.FtCssVariableFactory.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:e.FtCssVariableFactory.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:e.FtCssVariableFactory.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:e.FtCssVariableFactory.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:e.FtCssVariableFactory.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system")},eo=i.css`
1780
+ `}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.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,r;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(r=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){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)}}to.elementDefinitions={"ft-input-label":Gi,"ft-typography":te,"ft-ripple":be,"ft-icon":De},to.styles=[qt,Wt,Yi],Ji([o.property({type:String})],to.prototype,"label",void 0),Ji([o.property({type:String})],to.prototype,"helper",void 0),Ji([o.property({type:Boolean})],to.prototype,"outlined",void 0),Ji([o.property({type:Boolean})],to.prototype,"disabled",void 0),Ji([o.property({type:Boolean})],to.prototype,"error",void 0),Ji([o.property({type:Boolean})],to.prototype,"fixedMenuPosition",void 0),Ji([o.property({type:Array})],to.prototype,"options",void 0),Ji([o.state()],to.prototype,"selectedOption",void 0),Ji([o.state()],to.prototype,"optionsDisplayed",void 0),Ji([o.state()],to.prototype,"focusOptions",void 0),Ji([o.query(".ft-select")],to.prototype,"container",void 0),Ji([o.query(".ft-select--options")],to.prototype,"optionsMenu",void 0),Ji([o.query(".ft-select--input-panel")],to.prototype,"mainPanel",void 0),Ji([o.query(".ft-select--option:first-child")],to.prototype,"firstOption",void 0),Ji([o.query(".ft-select--option:focus")],to.prototype,"focusedOption",void 0),Ji([o.query(".ft-select--option.ft-select--option-selected")],to.prototype,"selectedOptionElement",void 0),Ji([o.query(".ft-select--option:last-child")],to.prototype,"lastOption",void 0),Ji([o.query("slot")],to.prototype,"optionsSlot",void 0),e.customElement("ft-select")(to),e.customElement("ft-select-option")(Qi);const eo={display:e.FtCssVariableFactory.create("--ft-skeleton--display","DISPLAY","block"),width:e.FtCssVariableFactory.create("--ft-skeleton--width","SIZE","100%"),height:e.FtCssVariableFactory.create("--ft-skeleton--height","SIZE","20px"),backgroundColor:e.FtCssVariableFactory.create("--ft-skeleton--background-color","COLOR","#f1f1f1"),glareWidth:e.FtCssVariableFactory.create("--ft-skeleton--glare-width","SIZE","200px"),glareColor:e.FtCssVariableFactory.create("--ft-skeleton--glare-color","COLOR","rgba(255, 255, 255, .6)"),animationDuration:e.FtCssVariableFactory.create("--ft-skeleton--animation-duration","UNKNOWN","2s"),borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system")},io=i.css`
1781
1781
  :host {
1782
- width: ${to.width};
1783
- height: ${to.height};
1784
- display: ${to.display};
1782
+ width: ${eo.width};
1783
+ height: ${eo.height};
1784
+ display: ${eo.display};
1785
1785
  overflow: hidden;
1786
- border-radius: ${to.borderRadiusM};
1786
+ border-radius: ${eo.borderRadiusM};
1787
1787
  background: linear-gradient(
1788
1788
  90deg,
1789
1789
  transparent,
1790
- ${to.glareColor} calc(0.45 * ${to.glareWidth}),
1791
- ${to.glareColor} calc(0.55 * ${to.glareWidth}),
1792
- transparent ${to.glareWidth}
1793
- ), ${to.backgroundColor};
1790
+ ${eo.glareColor} calc(0.45 * ${eo.glareWidth}),
1791
+ ${eo.glareColor} calc(0.55 * ${eo.glareWidth}),
1792
+ transparent ${eo.glareWidth}
1793
+ ), ${eo.backgroundColor};
1794
1794
  background-repeat: repeat-y;
1795
1795
  background-size: 100vw 100vh;
1796
1796
  background-attachment: fixed;
1797
- background-position: calc(${to.glareWidth} * -1) 0;
1798
- animation: shine ${to.animationDuration} infinite;
1797
+ background-position: calc(${eo.glareWidth} * -1) 0;
1798
+ animation: shine ${eo.animationDuration} infinite;
1799
1799
  animation-timing-function: linear;
1800
1800
  }
1801
1801
 
1802
1802
  @keyframes shine {
1803
1803
  to {
1804
- background-position: calc(100vw + ${to.glareWidth}) 0, calc(${to.glareWidth} * -1) 0;
1804
+ background-position: calc(100vw + ${eo.glareWidth}) 0, calc(${eo.glareWidth} * -1) 0;
1805
1805
  }
1806
1806
  }
1807
- `,io={height:e.FtCssVariableFactory.create("--ft-search-bar-height","SIZE","38px"),borderRadius:e.FtCssVariableFactory.extend("--ft-search-bar-border-radius",e.designSystemVariables.borderRadiusS),mobileOpenPosition:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","SIZE","0"),desktopFiltersHeight:e.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","SIZE","350px"),floatingZIndex:e.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),buttonColor:e.FtCssVariableFactory.external(Fe.color,"Button"),buttonRippleColor:e.FtCssVariableFactory.external(Fe.rippleColor,"Button")},oo=i.css`
1807
+ `,oo={height:e.FtCssVariableFactory.create("--ft-search-bar-height","SIZE","38px"),borderRadius:e.FtCssVariableFactory.extend("--ft-search-bar-border-radius",e.designSystemVariables.borderRadiusS),mobileOpenPosition:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","SIZE","0"),desktopFiltersHeight:e.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","SIZE","350px"),floatingZIndex:e.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),buttonColor:e.FtCssVariableFactory.external(Le.color,"Button"),buttonRippleColor:e.FtCssVariableFactory.external(Le.rippleColor,"Button")},so=i.css`
1808
1808
  * {
1809
1809
  box-sizing: border-box;
1810
1810
  }
@@ -1813,7 +1813,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1813
1813
  display: flex;
1814
1814
  flex-direction: column;
1815
1815
  gap: 8px;
1816
- color: ${io.colorOnSurface};
1816
+ color: ${oo.colorOnSurface};
1817
1817
  outline: none;
1818
1818
  }
1819
1819
 
@@ -1822,21 +1822,21 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1822
1822
  }
1823
1823
 
1824
1824
  .ft-search-bar--mobile-menu-open {
1825
- position: ${io.mobileOpenPosition};
1826
- top: ${io.mobileOpenTop};
1827
- bottom: ${io.mobileOpenBottom};
1828
- left: ${io.mobileOpenLeft};
1829
- right: ${io.mobileOpenRight};
1830
- z-index: ${io.floatingZIndex};
1825
+ position: ${oo.mobileOpenPosition};
1826
+ top: ${oo.mobileOpenTop};
1827
+ bottom: ${oo.mobileOpenBottom};
1828
+ left: ${oo.mobileOpenLeft};
1829
+ right: ${oo.mobileOpenRight};
1830
+ z-index: ${oo.floatingZIndex};
1831
1831
  padding: 16px;
1832
1832
  }
1833
1833
 
1834
1834
  .ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
1835
- background: ${io.colorSurface};
1835
+ background: ${oo.colorSurface};
1836
1836
  }
1837
1837
 
1838
1838
  .ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
1839
- position: ${io.mobileOpenPosition.get("static")};
1839
+ position: ${oo.mobileOpenPosition.get("static")};
1840
1840
  }
1841
1841
 
1842
1842
  .ft-search-bar {
@@ -1844,20 +1844,20 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1844
1844
  display: flex;
1845
1845
  flex-direction: row;
1846
1846
  align-items: center;
1847
- height: ${io.height};
1847
+ height: ${oo.height};
1848
1848
 
1849
- background: ${io.colorSurface};
1850
- border: 1px solid ${io.colorOutline};
1851
- border-radius: ${io.borderRadius};
1849
+ background: ${oo.colorSurface};
1850
+ border: 1px solid ${oo.colorOutline};
1851
+ border-radius: ${oo.borderRadius};
1852
1852
  }
1853
1853
 
1854
1854
  .ft-search-bar--skeleton {
1855
- ${e.setVariable(to.height,io.height)};
1856
- ${e.setVariable(to.borderRadiusM,io.borderRadius)};
1855
+ ${e.setVariable(eo.height,oo.height)};
1856
+ ${e.setVariable(eo.borderRadiusM,oo.borderRadius)};
1857
1857
  }
1858
1858
 
1859
1859
  .ft-search-bar--floating-panel-open .ft-search-bar {
1860
- border-radius: ${io.borderRadius} ${io.borderRadius} 0 0;
1860
+ border-radius: ${oo.borderRadius} ${oo.borderRadius} 0 0;
1861
1861
  }
1862
1862
 
1863
1863
  .ft-search-bar--input-container {
@@ -1875,7 +1875,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1875
1875
  align-self: stretch;
1876
1876
  display: grid;
1877
1877
  padding: 0 8px;
1878
- border-radius: ${io.borderRadius};
1878
+ border-radius: ${oo.borderRadius};
1879
1879
  }
1880
1880
 
1881
1881
  .ft-search-bar--dense .ft-search-bar--input-outline {
@@ -1884,7 +1884,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1884
1884
  }
1885
1885
 
1886
1886
  .ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
1887
- outline: 2px solid ${io.colorPrimary};
1887
+ outline: 2px solid ${oo.colorPrimary};
1888
1888
  }
1889
1889
 
1890
1890
  .ft-search-bar--input {
@@ -1892,12 +1892,12 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1892
1892
  flex-grow: 1;
1893
1893
  border: none;
1894
1894
  background-color: transparent;
1895
- color: ${io.colorOnSurface};
1895
+ color: ${oo.colorOnSurface};
1896
1896
  outline: none;
1897
1897
  }
1898
1898
 
1899
1899
  .ft-search-bar--input::placeholder {
1900
- color: ${io.colorOnSurfaceMedium};
1900
+ color: ${oo.colorOnSurfaceMedium};
1901
1901
  }
1902
1902
 
1903
1903
  .ft-search-bar--actions {
@@ -1907,7 +1907,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1907
1907
  align-items: center;
1908
1908
  height: 100%;
1909
1909
 
1910
- ${e.setVariable(be.zIndex,`calc(${io.floatingZIndex} + 1)`)};
1910
+ ${e.setVariable(ve.zIndex,`calc(${oo.floatingZIndex} + 1)`)};
1911
1911
  }
1912
1912
 
1913
1913
  .ft-search-bar > ft-button,
@@ -1916,8 +1916,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1916
1916
  }
1917
1917
 
1918
1918
  .ft-search-bar--left-action {
1919
- ${e.setVariable(Fe.borderRadius,i.css`calc(${io.borderRadius} - 1px) 0 0 calc(${io.borderRadius} - 1px)`)};
1920
- border-right: 1px solid ${io.colorOutline};
1919
+ ${e.setVariable(Le.borderRadius,i.css`calc(${oo.borderRadius} - 1px) 0 0 calc(${oo.borderRadius} - 1px)`)};
1920
+ border-right: 1px solid ${oo.colorOutline};
1921
1921
  height: 100%;
1922
1922
  }
1923
1923
 
@@ -1926,7 +1926,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1926
1926
  }
1927
1927
 
1928
1928
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
1929
- ${e.setVariable(Fe.borderRadius,i.css`calc(${io.borderRadius} - 1px) 0 0 0`)};
1929
+ ${e.setVariable(Le.borderRadius,i.css`calc(${oo.borderRadius} - 1px) 0 0 0`)};
1930
1930
  }
1931
1931
 
1932
1932
  .ft-search-bar .ft-search-bar--launch-search,
@@ -1936,13 +1936,13 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1936
1936
 
1937
1937
  .ft-search-bar--separator {
1938
1938
  height: 20px;
1939
- border-right: 1px solid ${io.colorOutline};
1939
+ border-right: 1px solid ${oo.colorOutline};
1940
1940
  }
1941
1941
 
1942
1942
  .ft-search-bar--left-action.ft-search-bar--content-locale {
1943
- ${e.setVariable(Vi.borderColor,"transparent")};
1944
- ${e.setVariable(Vi.borderRadiusS,i.css`calc(${io.borderRadius} - 1px)`)};
1945
- ${e.setVariable(Gi.selectedOptionColor,io.buttonColor)};
1943
+ ${e.setVariable(Ki.borderColor,"transparent")};
1944
+ ${e.setVariable(Ki.borderRadiusS,i.css`calc(${oo.borderRadius} - 1px)`)};
1945
+ ${e.setVariable(Xi.selectedOptionColor,oo.buttonColor)};
1946
1946
  }
1947
1947
 
1948
1948
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -1959,17 +1959,17 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
1959
1959
  }
1960
1960
 
1961
1961
  .ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
1962
- border-radius: calc(${io.borderRadius} - 1px) 0 0 calc(${io.borderRadius} - 1px);
1962
+ border-radius: calc(${oo.borderRadius} - 1px) 0 0 calc(${oo.borderRadius} - 1px);
1963
1963
  }
1964
1964
 
1965
- `,so=i.css`
1965
+ `,ro=i.css`
1966
1966
  .ft-search-bar--desktop-menu .ft-search-bar--presets {
1967
1967
  margin-right: auto;
1968
1968
  }
1969
1969
 
1970
1970
  .ft-search-bar--desktop-menu .ft-search-bar--presets {
1971
1971
  min-width: 250px;
1972
- ${e.setVariable(Gi.optionsZIndex,"2")};
1972
+ ${e.setVariable(Xi.optionsZIndex,"2")};
1973
1973
  }
1974
1974
 
1975
1975
  .ft-search-bar--desktop-menu {
@@ -2021,7 +2021,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2021
2021
 
2022
2022
  .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
2023
2023
  display: block;
2024
- height: ${io.desktopFiltersHeight};
2024
+ height: ${oo.desktopFiltersHeight};
2025
2025
  --ft-snap-scroll-gap: 16px;
2026
2026
  }
2027
2027
 
@@ -2072,7 +2072,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2072
2072
 
2073
2073
  .ft-search-bar--filter-label > :last-child {
2074
2074
  flex-shrink: 1;
2075
- color: ${io.colorOnSurfaceMedium};
2075
+ color: ${oo.colorOnSurfaceMedium};
2076
2076
  }
2077
2077
 
2078
2078
  ft-accordion-item::part(toggle) {
@@ -2092,8 +2092,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2092
2092
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2093
2093
  margin: 0;
2094
2094
  }
2095
- `;class ro extends e.FtLitElement{render(){return i.html`
2096
- `}}ro.elementDefinitions={},ro.styles=eo,e.customElement("ft-skeleton")(ro);class no{constructor(t,i=300){this.searchBar=t,this.updateDebouncer=new e.Debouncer(i)}render(){const t=this.searchBar.recentSearches.filter((t=>t.toLowerCase().includes(this.searchBar.query.toLowerCase()))),e=this.searchBar.suggestions.length>0||t.length>0;return i.html`
2095
+ `;class no extends e.FtLitElement{render(){return i.html`
2096
+ `}}no.elementDefinitions={},no.styles=io,e.customElement("ft-skeleton")(no);class lo{constructor(t,i=300){this.searchBar=t,this.updateDebouncer=new e.Debouncer(i)}render(){const t=this.searchBar.recentSearches.filter((t=>t.toLowerCase().includes(this.searchBar.query.toLowerCase()))),e=this.searchBar.suggestions.length>0||t.length>0;return i.html`
2097
2097
  <div class="ft-search-bar--suggestions ft-word-wrap ${e?"ft-search-bar--suggestions-not-empty":""}"
2098
2098
  part="suggestions-container"
2099
2099
  @keydown=${t=>this.onSuggestKeyDown(t)}>
@@ -2127,11 +2127,11 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2127
2127
  </a>
2128
2128
  `))}
2129
2129
  </div>
2130
- `}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,i,o,s,r,n;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(n=null!==(r=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var i,o;t.preventDefault(),t.stopPropagation();let s=t.target.closest(".ft-search-bar--suggestion");const r=null!==(o=null!==(i=null==s?void 0:s.previousElementSibling)&&void 0!==i?i:null==s?void 0:s.nextElementSibling)&&void 0!==o?o:this.searchBar.input;null==r||r.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?Ce.file_format:Ce.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?we.BOOK:we.ARTICLE;break;case"DOCUMENT":o=function(t,e){var i,o,s,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[n,l]=((null!==(i=ze.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(r=null!==(s=null!==(o=Se.get(l))&&void 0!==o?o:Se.get(e))&&void 0!==s?s:Se.get(n))&&void 0!==r?r:ke.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=we.TOPICS}return i.html`
2130
+ `}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,i,o,s,r,n;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(n=null!==(r=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var i,o;t.preventDefault(),t.stopPropagation();let s=t.target.closest(".ft-search-bar--suggestion");const r=null!==(o=null!==(i=null==s?void 0:s.previousElementSibling)&&void 0!==i?i:null==s?void 0:s.nextElementSibling)&&void 0!==o?o:this.searchBar.input;null==r||r.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?Ee.file_format:Ee.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ke.BOOK:ke.ARTICLE;break;case"DOCUMENT":o=function(t,e){var i,o,s,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[n,l]=((null!==(i=Oe.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(r=null!==(s=null!==(o=ze.get(l))&&void 0!==o?o:ze.get(e))&&void 0!==s?s:ze.get(n))&&void 0!==r?r:Se.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ke.TOPICS}return i.html`
2131
2131
  <ft-icon variant="${e}" part="suggestion-icon">
2132
2132
  ${o}
2133
2133
  </ft-icon>
2134
- `}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let t=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}}no.styles=[e.wordWrap,i.css`
2134
+ `}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let t=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}}lo.styles=[e.wordWrap,i.css`
2135
2135
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2136
2136
  flex-grow: 1;
2137
2137
  flex-shrink: 1;
@@ -2140,7 +2140,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2140
2140
  }
2141
2141
 
2142
2142
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
2143
- border-top: 1px solid ${io.colorOutline};
2143
+ border-top: 1px solid ${oo.colorOutline};
2144
2144
  }
2145
2145
 
2146
2146
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
@@ -2150,15 +2150,15 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2150
2150
  .ft-search-bar--floating-panel,
2151
2151
  .ft-search-bar--desktop .ft-search-bar--suggestions {
2152
2152
  position: absolute;
2153
- z-index: ${io.floatingZIndex};
2153
+ z-index: ${oo.floatingZIndex};
2154
2154
  top: 100%;
2155
2155
  left: -1px;
2156
2156
  right: -1px;
2157
2157
  display: none;
2158
- background: ${io.colorSurface};
2159
- border: 1px solid ${io.colorOutline};
2160
- border-radius: 0 0 ${io.borderRadius} ${io.borderRadius};
2161
- box-shadow: ${io.elevation02};
2158
+ background: ${oo.colorSurface};
2159
+ border: 1px solid ${oo.colorOutline};
2160
+ border-radius: 0 0 ${oo.borderRadius} ${oo.borderRadius};
2161
+ box-shadow: ${oo.elevation02};
2162
2162
  outline: none;
2163
2163
  }
2164
2164
 
@@ -2178,7 +2178,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2178
2178
  padding: 8px;
2179
2179
  gap: 8px;
2180
2180
  cursor: pointer;
2181
- color: ${io.colorOnSurface};
2181
+ color: ${oo.colorOnSurface};
2182
2182
  min-height: 52px;
2183
2183
  }
2184
2184
 
@@ -2195,7 +2195,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2195
2195
  }
2196
2196
 
2197
2197
  .ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
2198
- border-top: 1px solid ${io.colorOutline};
2198
+ border-top: 1px solid ${oo.colorOutline};
2199
2199
  }
2200
2200
 
2201
2201
  .ft-search-bar--suggestion ft-typography {
@@ -2203,7 +2203,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2203
2203
  flex-grow: 1;
2204
2204
  flex-shrink: 1;
2205
2205
  }
2206
- `];class lo{constructor(t){this.searchBar=t}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return i.html``;const t=this.searchBar.isMobile(),e=!t&&this.searchBar.dense||t&&this.searchBar.isMobileMenuOpen(),o=i.html`
2206
+ `];class ao{constructor(t){this.searchBar=t}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return i.html``;const t=this.searchBar.isMobile(),e=!t&&this.searchBar.dense||t&&this.searchBar.isMobileMenuOpen(),o=i.html`
2207
2207
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||t)?i.html`
2208
2208
  <ft-chip part="selected-filters selected-filter-ft-locale"
2209
2209
  ?dense=${this.searchBar.dense&&!t}
@@ -2214,7 +2214,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2214
2214
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2215
2215
  </ft-chip>
2216
2216
  `:null}
2217
- ${s.repeat(this.searchBar.facets,(t=>t.key),(o=>{const r=function(t){return te(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(o);return s.repeat(r,(s=>{let n=o.label+": "+function(t){return ee(t).split("|").join(" > ")}(s);const l=o.key.replace(":","-"),a=i.html`
2217
+ ${s.repeat(this.searchBar.facets,(t=>t.key),(o=>{const r=function(t){return ee(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(o);return s.repeat(r,(s=>{let n=o.label+": "+function(t){return ie(t).split("|").join(" > ")}(s);const l=o.key.replace(":","-"),a=i.html`
2218
2218
  <ft-chip
2219
2219
  part="selected-filters selected-filter-${l}"
2220
2220
  ?dense=${this.searchBar.dense&&!t}
@@ -2227,7 +2227,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2227
2227
  @icon-click=${()=>this.searchBar.setFilter(o.key,r.filter((t=>t!==s)))}
2228
2228
  data-key="${o.key}"
2229
2229
  data-value="${s}">
2230
- ${function(t){return ee(t).split("|").pop()}(s)}
2230
+ ${function(t){return ie(t).split("|").pop()}(s)}
2231
2231
  </ft-chip>
2232
2232
  `;return e?a:i.html`
2233
2233
  <ft-tooltip inline text="${n}">
@@ -2253,7 +2253,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2253
2253
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2254
2254
  ${o}
2255
2255
  </div>
2256
- `}openMobileFilters(t){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=t)}getLocaleLabel(t){var e;return null!==(e=this.searchBar.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}}lo.styles=i.css`
2256
+ `}openMobileFilters(t){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=t)}getLocaleLabel(t){var e;return null!==(e=this.searchBar.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}}ao.styles=i.css`
2257
2257
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2258
2258
  flex-shrink: 0;
2259
2259
  display: flex;
@@ -2264,7 +2264,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2264
2264
 
2265
2265
  ft-snap-scroll.ft-search-bar--selected-filters {
2266
2266
  overflow: hidden;
2267
- ${e.setVariable(ai.gap,"4px")};
2267
+ ${e.setVariable(ci.gap,"4px")};
2268
2268
  }
2269
2269
 
2270
2270
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2272,8 +2272,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2272
2272
  }
2273
2273
 
2274
2274
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2275
- ${e.setVariable(Pi.iconSize,"17px")};
2276
- ${e.setVariable(Pi.fontSize,"12px")};
2275
+ ${e.setVariable(Ai.iconSize,"17px")};
2276
+ ${e.setVariable(Ai.fontSize,"12px")};
2277
2277
  }
2278
2278
 
2279
2279
  .ft-search-bar--selected-filters * {
@@ -2283,7 +2283,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2283
2283
  .ft-search-bar--selected-filters ft-chip {
2284
2284
  flex-grow: 0;
2285
2285
  }
2286
- `;class ao{constructor(t,e,i){this.searchBar=t,this.selectedFacetsManager=null!=e?e:new lo(t),this.suggestManager=null!=i?i:new no(t)}render(){const t={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return i.html`
2286
+ `;class co{constructor(t,e,i){this.searchBar=t,this.selectedFacetsManager=null!=e?e:new ao(t),this.suggestManager=null!=i?i:new lo(t)}render(){const t={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return i.html`
2287
2287
  <div class="${r.classMap(t)}" part="container" tabindex="-1">
2288
2288
  <div class="ft-search-bar">
2289
2289
  <div class="ft-search-bar--input-container" part="input-container">
@@ -2332,9 +2332,9 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2332
2332
  @click=${()=>{var t;return this.searchBar.isMobileMenuOpen()?this.searchBar.launchSearch():null===(t=this.searchBar.input)||void 0===t?void 0:t.focus()}}
2333
2333
  ></ft-button>
2334
2334
  </div>
2335
- `}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}ao.styles=i.css`
2335
+ `}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}co.styles=i.css`
2336
2336
 
2337
- `;class co{constructor(t,e,i){this.searchBar=t,this.selectedFacetsManager=null!=e?e:new lo(t),this.suggestManager=null!=i?i:new no(t)}render(){const t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return i.html`
2337
+ `;class ho{constructor(t,e,i){this.searchBar=t,this.selectedFacetsManager=null!=e?e:new ao(t),this.suggestManager=null!=i?i:new lo(t)}render(){const t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return i.html`
2338
2338
  <div class="${r.classMap(t)}" part="container" tabindex="-1">
2339
2339
  <div class="ft-search-bar" part="search-bar">
2340
2340
  ${this.renderSearchBarLeftAction()}
@@ -2399,9 +2399,9 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2399
2399
  @click=${()=>this.searchBar.launchSearch()}
2400
2400
  ></ft-button>
2401
2401
  </div>
2402
- `}onSearchBarKeyDown(t){var e;switch(t.key){case"Escape":this.searchBar.mobileMenuOpen=!1,null===(e=this.searchBar.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestManager.focusFirstSuggestion()}}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}co.styles=i.css`
2402
+ `}onSearchBarKeyDown(t){var e;switch(t.key){case"Escape":this.searchBar.mobileMenuOpen=!1,null===(e=this.searchBar.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestManager.focusFirstSuggestion()}}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}ho.styles=i.css`
2403
2403
 
2404
- `;var ho=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const po={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Preset",removeRecentSearch:"Remove",back:"Back"};class fo extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class uo extends CustomEvent{constructor(t){super("change",{detail:t})}}const bo=()=>{};class vo 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(po,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=t=>function(t,e){var i;const o=new URLSearchParams({"content-lang":null!==(i=e.contentLocale)&&void 0!==i?i:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");o.append("filters",t)}return new URL(`${t}/search/all?${o.toString()}`).href}(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=l.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.updateFacetsDebouncer=new e.Debouncer(500),this.suggestManager=new no(this),this.selectedFacetsManager=new lo(this),this.desktopSearchBarManager=new co(this),this.mobileSearchBarManager=new ao(this),this.initDataDebouncer=new e.Debouncer(10),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)))))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>t.values.length>0&&!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===l.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return null!=this.presets&&this.presets.length>0}get hasPriors(){return null!=this.priors&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}focusInput(){this.input?this.input.focus():setTimeout((()=>this.focusInput()),50)}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return i.html`
2404
+ `;var po=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const fo={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Preset",removeRecentSearch:"Remove",back:"Back"};class uo extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class bo extends CustomEvent{constructor(t){super("change",{detail:t})}}const vo=()=>{};class go 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(fo,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=t=>function(t,e){var i;const o=new URLSearchParams({"content-lang":null!==(i=e.contentLocale)&&void 0!==i?i:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");o.append("filters",t)}return new URL(`${t}/search/all?${o.toString()}`).href}(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=l.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.updateFacetsDebouncer=new e.Debouncer(500),this.suggestManager=new lo(this),this.selectedFacetsManager=new ao(this),this.desktopSearchBarManager=new ho(this),this.mobileSearchBarManager=new co(this),this.initDataDebouncer=new e.Debouncer(10),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)))))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>t.values.length>0&&!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===l.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return null!=this.presets&&this.presets.length>0}get hasPriors(){return null!=this.priors&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}focusInput(){this.input?this.input.focus():setTimeout((()=>this.focusInput()),50)}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return i.html`
2405
2405
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2406
2406
  ${this.renderSearchBar()}
2407
2407
  `}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():i.html`
@@ -2429,12 +2429,12 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2429
2429
  ></ft-filter>
2430
2430
  </ft-accordion-item>
2431
2431
  `:null}
2432
- ${s.repeat(this.facets,(t=>t.key),(t=>{const e=oe(t),o=t.key.replace(":","-");return t.rootNodes.length>0?i.html`
2432
+ ${s.repeat(this.facets,(t=>t.key),(t=>{const e=se(t),o=t.key.replace(":","-");return t.rootNodes.length>0?i.html`
2433
2433
  <ft-accordion-item data-facet-key="${t.key}">
2434
2434
  <div class="ft-search-bar--filter-label" slot="toggle">
2435
2435
  <ft-typography variant="button">${t.label}</ft-typography>
2436
2436
  <ft-typography variant="body2">
2437
- ${function(t){return te(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(e).join(", ")}
2437
+ ${function(t){return ee(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(e).join(", ")}
2438
2438
  </ft-typography>
2439
2439
  </div>
2440
2440
  <ft-filter
@@ -2510,7 +2510,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2510
2510
  @change=${t=>this.contentLocale=t.detail[0]}
2511
2511
  ></ft-filter>
2512
2512
  `:i.nothing}
2513
- ${s.repeat(this.facets,(t=>t.key),(t=>{const e=oe(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`
2513
+ ${s.repeat(this.facets,(t=>t.key),(t=>{const e=se(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`
2514
2514
  <ft-filter
2515
2515
  class="${o?"ft-search-bar--hierarchical-filter":""}"
2516
2516
  part="filters filter filter-${s}"
@@ -2529,10 +2529,10 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
2529
2529
  ></ft-filter>
2530
2530
  `}))}
2531
2531
  </ft-snap-scroll>
2532
- `:i.nothing}async firstUpdated(t){super.firstUpdated(t),this.initApi(),window.addEventListener("storage",(t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()}))}update(t){var i,o,s,r,n;if(t.has("labels")&&(this.labelResolver=new e.ParametrizedLabelResolver(po,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0){const e=t=>this.availableContentLocales.some((e=>e.lang===t));e(this.contentLocale)||(this.contentLocale=t.has("contentLocale")&&e(t.get("contentLocale"))?t.get("contentLocale"):null===(i=this.availableContentLocales[0])||void 0===i?void 0:i.lang)}if(t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),t.has("presets")&&(null!==(o=this.presets)&&void 0!==o?o:[]).forEach((t=>t.filters.forEach((t=>t.values=t.values.map((t=>ee(t))))))),t.has("selectedPreset")){const t=(null!==(s=this.presets)&&void 0!==s?s:[]).find((t=>t.name===this.selectedPreset));t&&!this.compareRequests(this.request,t)&&this.setFiltersFromPreset(t)}t.has("contentLocale")&&null!=this.contentLocale&&(this.knownFacetLabels=new Map),["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(n=(null!==(r=this.presets)&&void 0!==r?r:[]).find((t=>this.compareRequests(t,this.request))))||void 0===n?void 0:n.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&(this.api=void 0,this.initApi()),t.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","searchFilters","displayedFilters"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.suggestManager.update(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchEvent(new uo(this.request))}initSearchData(){this.availableContentLocalesInitialized=!1,this.facetsInitialized=!1,this.initDataDebouncer.run((()=>{var t;null===(t=this.api)||void 0===t||t.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[])).then((t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0})),this.retrieveFacetsFromSearch().then((()=>this.facetsInitialized=!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()),10))}updateFacets(){this.api&&this.facetsInitialized&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0}))):this.facets=[])}async retrieveFacetsFromSearch(){var t;const e=new Map;await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets.forEach((t=>{this.knownFacetLabels.set(t.key,t.label),e.set(t.key,t)})))).catch(bo)),this.facets=[];for(let t of this.facetsRequest)e.has(t.id)?this.facets.push(e.get(t.id)):this.knownFacetLabels.has(t.id)&&this.facets.push({key:t.id,label:this.knownFacetLabels.get(t.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.dispatchEvent(new fo(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var t;this.recentSearches=JSON.parse(null!==(t=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==t?t:"[]")}saveRecentSearches(){const t=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:t,storageArea:window.localStorage,url:window.location.href}))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&te(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=>te(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}querySelector(t){return this.shadowRoot.querySelector(t)}querySelectorAll(t){return this.shadowRoot.querySelectorAll(t)}renderDesktopFloatingMenu(){return this.forceMenuOpen?i.nothing:i.html`
2532
+ `:i.nothing}async firstUpdated(t){super.firstUpdated(t),this.initApi(),window.addEventListener("storage",(t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()}))}update(t){var i,o,s,r,n;if(t.has("labels")&&(this.labelResolver=new e.ParametrizedLabelResolver(fo,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0){const e=t=>this.availableContentLocales.some((e=>e.lang===t));e(this.contentLocale)||(this.contentLocale=t.has("contentLocale")&&e(t.get("contentLocale"))?t.get("contentLocale"):null===(i=this.availableContentLocales[0])||void 0===i?void 0:i.lang)}if(t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),t.has("presets")&&(null!==(o=this.presets)&&void 0!==o?o:[]).forEach((t=>t.filters.forEach((t=>t.values=t.values.map((t=>ie(t))))))),t.has("selectedPreset")){const t=(null!==(s=this.presets)&&void 0!==s?s:[]).find((t=>t.name===this.selectedPreset));t&&!this.compareRequests(this.request,t)&&this.setFiltersFromPreset(t)}t.has("contentLocale")&&null!=this.contentLocale&&(this.knownFacetLabels=new Map),["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(n=(null!==(r=this.presets)&&void 0!==r?r:[]).find((t=>this.compareRequests(t,this.request))))||void 0===n?void 0:n.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&(this.api=void 0,this.initApi()),t.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","searchFilters","displayedFilters"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.suggestManager.update(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchEvent(new bo(this.request))}initSearchData(){this.availableContentLocalesInitialized=!1,this.facetsInitialized=!1,this.initDataDebouncer.run((()=>{var t;null===(t=this.api)||void 0===t||t.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[])).then((t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0})),this.retrieveFacetsFromSearch().then((()=>this.facetsInitialized=!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()),10))}updateFacets(){this.api&&this.facetsInitialized&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0}))):this.facets=[])}async retrieveFacetsFromSearch(){var t;const e=new Map;await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets.forEach((t=>{this.knownFacetLabels.set(t.key,t.label),e.set(t.key,t)})))).catch(vo)),this.facets=[];for(let t of this.facetsRequest)e.has(t.id)?this.facets.push(e.get(t.id)):this.knownFacetLabels.has(t.id)&&this.facets.push({key:t.id,label:this.knownFacetLabels.get(t.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.dispatchEvent(new uo(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var t;this.recentSearches=JSON.parse(null!==(t=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==t?t:"[]")}saveRecentSearches(){const t=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:t,storageArea:window.localStorage,url:window.location.href}))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&ee(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=>ee(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}querySelector(t){return this.shadowRoot.querySelector(t)}querySelectorAll(t){return this.shadowRoot.querySelectorAll(t)}renderDesktopFloatingMenu(){return this.forceMenuOpen?i.nothing:i.html`
2533
2533
  <div class="ft-search-bar--floating-panel"
2534
2534
  @keyup=${this.onFloatingContainerKeyUp}
2535
2535
  part="floating-panel"
2536
2536
  tabindex="-1">
2537
2537
  ${this.renderDesktopMenu()}
2538
- </div>`}}vo.elementDefinitions={"ft-accordion":Ci,"ft-accordion-item":ji,"ft-button":Te,"ft-chip":Hi,"ft-filter":ki,"ft-filter-option":zi,"ft-icon":Ie,"ft-ripple":ue,"ft-select":Qi,"ft-select-option":Ji,"ft-size-watcher":f,"ft-skeleton":ro,"ft-snap-scroll":fi,"ft-tooltip":xe,"ft-typography":Qt},vo.styles=[Kt,oo,so,lo.styles,no.styles],ho([o.property({type:Boolean})],vo.prototype,"dense",void 0),ho([o.property()],vo.prototype,"mode",void 0),ho([o.property({type:Boolean})],vo.prototype,"forceMobileMenuOpen",void 0),ho([o.property({type:Boolean})],vo.prototype,"forceMenuOpen",void 0),ho([o.property()],vo.prototype,"baseUrl",void 0),ho([o.property()],vo.prototype,"apiIntegrationIdentifier",void 0),ho([o.property()],vo.prototype,"contentLocale",void 0),ho([o.state()],vo.prototype,"availableContentLocales",void 0),ho([o.state()],vo.prototype,"availableContentLocalesInitialized",void 0),ho([o.property()],vo.prototype,"uiLocale",void 0),ho([e.jsonProperty({})],vo.prototype,"labels",void 0),ho([e.jsonProperty([])],vo.prototype,"displayedFilters",void 0),ho([e.jsonProperty([])],vo.prototype,"presets",void 0),ho([o.property({type:String,reflect:!0})],vo.prototype,"selectedPreset",void 0),ho([e.jsonProperty([])],vo.prototype,"priors",void 0),ho([o.property()],vo.prototype,"searchRequestSerializer",void 0),ho([o.state()],vo.prototype,"searchFilters",void 0),ho([o.state()],vo.prototype,"sizeCategory",void 0),ho([o.state()],vo.prototype,"displayFacets",void 0),ho([o.state()],vo.prototype,"mobileMenuOpen",void 0),ho([o.state()],vo.prototype,"facets",void 0),ho([o.state()],vo.prototype,"facetsInitialized",void 0),ho([o.query(".ft-search-bar--container")],vo.prototype,"container",void 0),ho([o.query(".ft-search-bar--filters-opener")],vo.prototype,"filtersOpener",void 0),ho([o.query(".ft-search-bar--floating-panel")],vo.prototype,"floatingContainer",void 0),ho([o.query("ft-snap-scroll.ft-search-bar--filters-container")],vo.prototype,"scrollingFiltersContainer",void 0),ho([o.query(".ft-search-bar--input")],vo.prototype,"input",void 0),ho([o.state()],vo.prototype,"query",void 0),ho([o.state()],vo.prototype,"suggestions",void 0),ho([o.state()],vo.prototype,"recentSearches",void 0),ho([o.state()],vo.prototype,"scrollToFacet",void 0),ho([o.state()],vo.prototype,"api",void 0),e.customElement("ft-search-bar")(vo),t.DEFAULT_LABELS=po,t.FtSearchBar=vo,t.FtSearchBarCssVariables=io,t.LaunchSearchEvent=fo,t.SearchStateChangeEvent=uo,t.facetsCss=so,t.searchBarCss=oo,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
2538
+ </div>`}}go.elementDefinitions={"ft-accordion":Ei,"ft-accordion-item":Mi,"ft-button":Te,"ft-chip":Vi,"ft-filter":Si,"ft-filter-option":Oi,"ft-icon":De,"ft-ripple":be,"ft-select":to,"ft-select-option":Qi,"ft-size-watcher":f,"ft-skeleton":no,"ft-snap-scroll":di,"ft-tooltip":ye,"ft-typography":te},go.styles=[qt,so,ro,ao.styles,lo.styles],po([o.property({type:Boolean})],go.prototype,"dense",void 0),po([o.property()],go.prototype,"mode",void 0),po([o.property({type:Boolean})],go.prototype,"forceMobileMenuOpen",void 0),po([o.property({type:Boolean})],go.prototype,"forceMenuOpen",void 0),po([o.property()],go.prototype,"baseUrl",void 0),po([o.property()],go.prototype,"apiIntegrationIdentifier",void 0),po([o.property()],go.prototype,"contentLocale",void 0),po([o.state()],go.prototype,"availableContentLocales",void 0),po([o.state()],go.prototype,"availableContentLocalesInitialized",void 0),po([o.property()],go.prototype,"uiLocale",void 0),po([e.jsonProperty({})],go.prototype,"labels",void 0),po([e.jsonProperty([])],go.prototype,"displayedFilters",void 0),po([e.jsonProperty([])],go.prototype,"presets",void 0),po([o.property({type:String,reflect:!0})],go.prototype,"selectedPreset",void 0),po([e.jsonProperty([])],go.prototype,"priors",void 0),po([o.property()],go.prototype,"searchRequestSerializer",void 0),po([o.state()],go.prototype,"searchFilters",void 0),po([o.state()],go.prototype,"sizeCategory",void 0),po([o.state()],go.prototype,"displayFacets",void 0),po([o.state()],go.prototype,"mobileMenuOpen",void 0),po([o.state()],go.prototype,"facets",void 0),po([o.state()],go.prototype,"facetsInitialized",void 0),po([o.query(".ft-search-bar--container")],go.prototype,"container",void 0),po([o.query(".ft-search-bar--filters-opener")],go.prototype,"filtersOpener",void 0),po([o.query(".ft-search-bar--floating-panel")],go.prototype,"floatingContainer",void 0),po([o.query("ft-snap-scroll.ft-search-bar--filters-container")],go.prototype,"scrollingFiltersContainer",void 0),po([o.query(".ft-search-bar--input")],go.prototype,"input",void 0),po([o.state()],go.prototype,"query",void 0),po([o.state()],go.prototype,"suggestions",void 0),po([o.state()],go.prototype,"recentSearches",void 0),po([o.state()],go.prototype,"scrollToFacet",void 0),po([o.state()],go.prototype,"api",void 0),e.customElement("ft-search-bar")(go),t.DEFAULT_LABELS=fo,t.FtSearchBar=go,t.FtSearchBarCssVariables=oo,t.LaunchSearchEvent=uo,t.SearchStateChangeEvent=bo,t.facetsCss=ro,t.searchBarCss=so,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);