@fluid-topics/ft-filter 1.0.59 → 1.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,118 +1,127 @@
1
- !function(t,i,e,o,s,n,r){
1
+ !function(t,o,e,i,r,a,n){
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- var l;const a=window,h=a.trustedTypes,p=h?h.createPolicy("lit-html",{createHTML:t=>t}):void 0,f="$lit$",c=`lit$${(Math.random()+"").slice(9)}$`,d="?"+c,u=`<${d}>`,v=document,x=()=>v.createComment(""),b=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,y="[ \t\n\f\r]",m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,k=/>/g,w=RegExp(`>|${y}(?:([^\\s"'>=/]+)(${y}*=${y}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),z=/'/g,S=/"/g,O=/^(?:script|style|textarea|title)$/i,C=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),B=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),E=new WeakMap,I=v.createTreeWalker(v,129,null,!1),T=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=m;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,a=r.exec(e),null!==a);)p=r.lastIndex,r===m?"!--"===a[1]?r=$:void 0!==a[1]?r=k:void 0!==a[2]?(O.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=w):void 0!==a[3]&&(r=w):r===w?">"===a[0]?(r=null!=s?s:m,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?w:'"'===a[3]?S:z):r===S||r===z?r=w:r===$||r===k?r=m:(r=w,s=void 0);const d=r===w&&t[i+1].startsWith("/>")?" ":"";n+=r===m?e+u:h>=0?(o.push(l),e.slice(0,h)+f+e.slice(h)+c+d):e+c+(-2===h?(o.push(void 0),i):d)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==p?p.createHTML(l):l,o]};class N{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=T(t,i);if(this.el=N.createElement(a,e),I.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=I.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(f)||i.startsWith(c)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+f).split(c),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?R:"?"===i[1]?L:"@"===i[1]?H:F})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(O.test(o.tagName)){const t=o.textContent.split(c),i=t.length-1;if(i>0){o.textContent=h?h.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],x()),I.nextNode(),l.push({type:2,index:++s});o.append(t[i],x())}}}else if(8===o.nodeType)if(o.data===d)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(c,t+1));)l.push({type:7,index:s}),t+=c.length-1}s++}}static createElement(t,i){const e=v.createElement("template");return e.innerHTML=t,e}}function D(t,i,e=t,o){var s,n,r,l;if(i===B)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=b(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=D(t,a._$AS(t,i.values),a,o)),i}class A{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:v).importNode(e,!0);I.currentNode=s;let n=I.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new M(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new U(n,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=I.nextNode(),r++)}return s}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class M{constructor(t,i,e,o){var s;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=D(this,t,i),b(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==B&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>g(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==j&&b(this._$AH)?this._$AA.nextSibling.data=t:this.$(v.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new A(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=E.get(t.strings);return void 0===i&&E.set(t.strings,i=new N(t)),i}T(t){g(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new M(this.k(x()),this.k(x()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class F{constructor(t,i,e,o,s){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=j}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=D(this,t,i,0),n=!b(t)||t!==this._$AH&&t!==B,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=D(this,o[e+r],i,r),l===B&&(l=this._$AH[r]),n||(n=!b(l)||l!==this._$AH[r]),l===j?t=j:t!==j&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends F{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}}const _=h?h.emptyScript:"";class L extends F{constructor(){super(...arguments),this.type=4}j(t){t&&t!==j?this.element.setAttribute(this.name,_):this.element.removeAttribute(this.name)}}class H extends F{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=D(this,t,i,0))&&void 0!==e?e:j)===B)return;const o=this._$AH,s=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==j&&(o===j||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class U{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const V=a.litHtmlPolyfillSupport;null==V||V(N,M),(null!==(l=a.litHtmlVersions)&&void 0!==l?l:a.litHtmlVersions=[]).push("2.7.3");
7
+ var l;const s=window,c=s.trustedTypes,p=c?c.createPolicy("lit-html",{createHTML:t=>t}):void 0,f="$lit$",h=`lit$${(Math.random()+"").slice(9)}$`,d="?"+h,g=`<${d}>`,y=document,u=()=>y.createComment(""),b=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,x="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,N=/>/g,$=RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),S=/'/g,w=/"/g,C=/^(?:script|style|textarea|title)$/i,k=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),I=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),W=new WeakMap,U=y.createTreeWalker(y,129,null,!1),E=(t,o)=>{const e=t.length-1,i=[];let r,a=2===o?"<svg>":"",n=v;for(let o=0;o<e;o++){const e=t[o];let l,s,c=-1,p=0;for(;p<e.length&&(n.lastIndex=p,s=n.exec(e),null!==s);)p=n.lastIndex,n===v?"!--"===s[1]?n=O:void 0!==s[1]?n=N:void 0!==s[2]?(C.test(s[2])&&(r=RegExp("</"+s[2],"g")),n=$):void 0!==s[3]&&(n=$):n===$?">"===s[0]?(n=null!=r?r:v,c=-1):void 0===s[1]?c=-2:(c=n.lastIndex-s[2].length,l=s[1],n=void 0===s[3]?$:'"'===s[3]?w:S):n===w||n===S?n=$:n===O||n===N?n=v:(n=$,r=void 0);const d=n===$&&t[o+1].startsWith("/>")?" ":"";a+=n===v?e+g:c>=0?(i.push(l),e.slice(0,c)+f+e.slice(c)+h+d):e+h+(-2===c?(i.push(void 0),o):d)}const l=a+(t[e]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==p?p.createHTML(l):l,i]};class L{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,a=0;const n=t.length-1,l=this.parts,[s,p]=E(t,o);if(this.el=L.createElement(s,e),U.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(i=U.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const o of i.getAttributeNames())if(o.endsWith(f)||o.startsWith(h)){const e=p[a++];if(t.push(o),void 0!==e){const t=i.getAttribute(e.toLowerCase()+f).split(h),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:o[2],strings:t,ctor:"."===o[1]?F:"?"===o[1]?H:"@"===o[1]?A:B})}else l.push({type:6,index:r})}for(const o of t)i.removeAttribute(o)}if(C.test(i.tagName)){const t=i.textContent.split(h),o=t.length-1;if(o>0){i.textContent=c?c.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],u()),U.nextNode(),l.push({type:2,index:++r});i.append(t[o],u())}}}else if(8===i.nodeType)if(i.data===d)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(h,t+1));)l.push({type:7,index:r}),t+=h.length-1}r++}}static createElement(t,o){const e=y.createElement("template");return e.innerHTML=t,e}}function z(t,o,e=t,i){var r,a,n,l;if(o===I)return o;let s=void 0!==i?null===(r=e._$Co)||void 0===r?void 0:r[i]:e._$Cl;const c=b(o)?void 0:o._$litDirective$;return(null==s?void 0:s.constructor)!==c&&(null===(a=null==s?void 0:s._$AO)||void 0===a||a.call(s,!1),void 0===c?s=void 0:(s=new c(t),s._$AT(t,e,i)),void 0!==i?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[i]=s:e._$Cl=s),void 0!==s&&(o=z(t,s._$AS(t,o.values),s,i)),o}class K{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:i}=this._$AD,r=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:y).importNode(e,!0);U.currentNode=r;let a=U.nextNode(),n=0,l=0,s=i[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new Z(a,a.nextSibling,this,t):1===s.type?o=new s.ctor(a,s.name,s.strings,this,t):6===s.type&&(o=new j(a,this,t)),this._$AV.push(o),s=i[++l]}n!==(null==s?void 0:s.index)&&(a=U.nextNode(),n++)}return r}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class Z{constructor(t,o,e,i){var r;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=z(this,t,o),b(t)?t===R||null==t||""===t?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==I&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>m(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==R&&b(this._$AH)?this._$AA.nextSibling.data=t:this.$(y.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=L.createElement(i.h,this.options)),i);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===r)this._$AH.v(e);else{const t=new K(r,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=W.get(t.strings);return void 0===o&&W.set(t.strings,o=new L(t)),o}T(t){m(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new Z(this.k(u()),this.k(u()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class B{constructor(t,o,e,i,r){this.type=1,this._$AH=R,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,i){const r=this.strings;let a=!1;if(void 0===r)t=z(this,t,o,0),a=!b(t)||t!==this._$AH&&t!==I,a&&(this._$AH=t);else{const i=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=z(this,i[e+n],o,n),l===I&&(l=this._$AH[n]),a||(a=!b(l)||l!==this._$AH[n]),l===R?t=R:t!==R&&(t+=(null!=l?l:"")+r[n+1]),this._$AH[n]=l}a&&!i&&this.j(t)}j(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class F extends B{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}}const D=c?c.emptyScript:"";class H extends B{constructor(){super(...arguments),this.type=4}j(t){t&&t!==R?this.element.setAttribute(this.name,D):this.element.removeAttribute(this.name)}}class A extends B{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=z(this,t,o,0))&&void 0!==e?e:R)===I)return;const i=this._$AH,r=t===R&&i!==R||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==R&&(i===R||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class j{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t)}}const G=s.litHtmlPolyfillSupport;null==G||G(L,Z),(null!==(l=s.litHtmlVersions)&&void 0!==l?l:s.litHtmlVersions=[]).push("2.7.3");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t._$litStatic$},P=t=>({_$litStatic$:t,r:W}),K=new Map,G=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=Z(n));)a+=s+i[++h],p=!0;h!==o&&l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=K.get(t))&&(r.raw=r,K.set(t,i=r)),e=l}return t(i,...e)})(C);var q;!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"}(q||(q={}));const X=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),Y=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),J={fontFamily:Y,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},Q=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",X),tt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",J.fontSize,"20px"),it=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",J.fontWeight,"normal"),et=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",J.letterSpacing,"0.15px"),ot=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",J.lineHeight,"1.2"),st=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",J.textTransform,"inherit"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",X),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",J.fontSize,"14px"),lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",J.fontWeight,"normal"),at=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",J.letterSpacing,"0.105px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",J.lineHeight,"1.7"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",J.textTransform,"inherit"),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Y),ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",J.fontSize,"16px"),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",J.fontWeight,"600"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",J.letterSpacing,"0.144px"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",J.lineHeight,"1.5"),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",J.textTransform,"inherit"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",Y),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",J.fontSize,"14px"),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",J.fontWeight,"normal"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",J.letterSpacing,"0.098px"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",J.lineHeight,"1.7"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",J.textTransform,"inherit"),wt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",Y),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",J.fontSize,"16px"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",J.fontWeight,"normal"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",J.letterSpacing,"0.496px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",J.lineHeight,"1.5"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",J.textTransform,"inherit"),jt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",Y),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",J.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",J.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",J.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",J.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",J.textTransform,"inherit")},Et=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",Y),It=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",J.fontSize,"12px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",J.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",J.letterSpacing,"0.396px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",J.lineHeight,"1.33"),At=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",J.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",Y),Ft=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",J.fontSize,"10px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",J.fontWeight,"normal"),_t=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",J.letterSpacing,"0.33px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",J.lineHeight,"1.6"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",J.textTransform,"inherit"),Ut=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",Y),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",J.fontSize,"10px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",J.fontWeight,"normal"),Zt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",J.letterSpacing,"1.5px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",J.lineHeight,"1.6"),Kt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",J.textTransform,"uppercase"),Gt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",Y),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",J.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",J.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",J.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",J.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",J.textTransform,"uppercase")},qt=e.css`
13
+ const M=Symbol.for(""),T=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t._$litStatic$},P=t=>({_$litStatic$:t,r:M}),_=new Map,V=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],l=[];let s,c=0,p=!1;for(;c<i;){for(s=o[c];c<i&&void 0!==(a=e[c],r=T(a));)s+=r+o[++c],p=!0;c!==i&&l.push(a),n.push(s),c++}if(c===i&&n.push(o[i]),p){const t=n.join("$$lit$$");void 0===(o=_.get(t))&&(n.raw=n,_.set(t,o=n)),e=l}return t(o,...e)})(k);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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Y||(Y={}));const q=t=>"string"==typeof t?e.unsafeCSS(t):t;class X{static create(t,o,i,r){const a=t=>q(null!=t?t:r),n=e.css`var(${q(t)}, ${a(r)})`;return n.name=t,n.description=t,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${q(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,i,r){const a=t=>i.get(null!=t?t:r),n=e.css`var(${q(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${q(t)}, ${a(o)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):q(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${q(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${q(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const J={colorWhite:X.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:X.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:X.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:X.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:X.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:X.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:X.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:X.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:X.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:X.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:X.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:X.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:X.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:X.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:X.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:X.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:X.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:X.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:X.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:X.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:X.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:X.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:X.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:X.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:X.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:X.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:X.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:X.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:X.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:X.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:X.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:X.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:X.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:X.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:X.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:X.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:X.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:X.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:X.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:X.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:X.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:X.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:X.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:X.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:X.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:X.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:X.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:X.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:X.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:X.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:X.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:X.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:X.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:X.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:X.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:X.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:X.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:X.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:X.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:X.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:X.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:X.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:X.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:X.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:X.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:X.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:X.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:X.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:X.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:X.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:X.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:X.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:X.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:X.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:X.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:X.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:X.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:X.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:X.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:X.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:X.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:X.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:X.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:X.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:X.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:X.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:X.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:X.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:X.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:X.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:X.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:X.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:X.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:X.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:X.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:X.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:X.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:X.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:X.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:X.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:X.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:X.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:X.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:X.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:X.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:X.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:X.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:X.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:X.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:X.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:X.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:X.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:X.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:X.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:X.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:X.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:X.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:X.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:X.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:X.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:X.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:X.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:X.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:X.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:X.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:X.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:X.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:X.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:X.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:X.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:X.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:X.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:X.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:X.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:X.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:X.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:X.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:X.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:X.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:X.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:X.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:X.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:X.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:X.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:X.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:X.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:X.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:X.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:X.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:X.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:X.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:X.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:X.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:X.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:X.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:X.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:X.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:X.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:X.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:X.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:X.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:X.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:X.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:X.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:X.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:X.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:X.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:X.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:X.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:X.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:X.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:X.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:X.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:X.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:X.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:X.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:X.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:X.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:X.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:X.create("--ft-icon-size-6","","SIZE","48px"),opacity0:X.create("--ft-opacity-0","","NUMBER","0"),opacity8:X.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:X.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:X.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:X.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:X.create("--ft-opacity-80","","NUMBER","0.8")},Q={display:{fontFamily:X.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:X.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:X.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:X.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:X.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:X.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:X.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:X.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:X.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:X.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:X.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:X.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:X.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:X.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:X.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:X.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:X.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:X.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:X.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:X.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:X.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:X.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:X.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:X.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:X.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:X.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:X.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:X.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:X.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},tt={backgroundActionPrimary:X.extend("--ft-background-action-primary","Used as backgorund of primary action components.",J.colorBrand0),backgroundErrorPrimary:X.extend("--ft-background-error-primary","Used as background of error components.",J.colorRed0),backgroundErrorSubtle:X.extend("--ft-background-error-subtle","Used as background of subtle error components.",J.colorRed10),backgroundInfoPrimary:X.extend("--ft-background-info-primary","Used as background of information components.",J.colorCyan200),backgroundInfoSubtle:X.extend("--ft-background-info-subtle","Used as background of subtle information components.",J.colorCyan10),backgroundWarningPrimary:X.extend("--ft-background-warning-primary","Used as background of warning components.",J.colorOrange300),backgroundWarningSubtle:X.extend("--ft-background-warning-subtle","Used as background of subtle information components.",J.colorOrange10),backgroundSuccessPrimary:X.extend("--ft-background-success-primary","Used as background of success components.",J.colorGreen200),backgroundSuccessSubtle:X.extend("--ft-background-success-subtle","Used as background of subtle success components.",J.colorGreen10),backgroundGlobalSurface:X.extend("--ft-background-global-surface","Used as app background.",J.colorWhite),backgroundGlobalOnSurface:X.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",J.colorGray10),backgroundGlobalOnSurfaceDark:X.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",J.colorGray30),contentActionPrimary:X.extend("--ft-content-action-primary","Used on label of primary action on light surface.",J.colorBrand0),contentWarningPrimary:X.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",J.colorOrange300),contentWarningIconOnly:X.extend("--ft-content-warning-icon-only","Used on warning status icons alone",J.colorOrange0),contentErrorPrimary:X.extend("--ft-content-error-primary","Used on label of error messages on light surface.",J.colorRed0),contentErrorIconOnly:X.extend("--ft-content-error-icon-only","Used on error status icons alone",J.colorRed0),contentInfoPrimary:X.extend("--ft-content-info-primary","Used on label of information messages on light surface.",J.colorCyan200),contentInfoIconOnly:X.extend("--ft-content-info-icon-only","Used on info status icons alone",J.colorCyan0),contentSuccessIconOnly:X.extend("--ft-content-success-icon-only","Used on success status icons alone",J.colorGreen0),contentSuccessPrimary:X.extend("--ft-content-success-primary","Used on label of success messages on light surface.",J.colorGreen200),contentGlobalPrimary:X.extend("--ft-content-global-primary","Used for main content on the page.",J.colorGray500),contentGlobalSecondary:X.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",J.colorGray200),contentGlobalSubtle:X.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",J.colorGray0),contentGlobalOnColor:X.extend("--ft-content-global-on-color","Used for content on a dominant color.",J.colorWhite),borderActionPrimary:X.extend("--ft-border-action-primary","Used as border for primary action components.",J.colorBrand0),borderActionFocusRing:X.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",J.colorCyan0),borderWarningPrimary:X.extend("--ft-border-warning-primary","Used as border for warning components.",J.colorOrange30),borderSuccessPrimary:X.extend("--ft-border-success-primary","Used as border for success components.",J.colorGreen30),borderErrorPrimary:X.extend("--ft-border-error-primary","Used as border for error components.",J.colorRed30),borderInfoPrimary:X.extend("--ft-border-info-primary","Used as border for information components.",J.colorCyan30),borderGlobalSubtle:X.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",J.colorGray30),borderGlobalPrimary:X.extend("--ft-border-global-primary","Used as border for element like input.",J.colorGray50),borderInputPrimary:X.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",J.colorGray80)},ot={largeHeight:X.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:X.extend("--ft-button-large-horizontal-padding","",J.spacing4),largeGap:X.extend("--ft-button-large-gap","",J.spacing2),largeBorderRadius:X.extend("--ft-button-large-border-radius","",J.borderRadiusS),largeIconSize:X.extend("--ft-button-large-icon-size","",J.iconSize3),largeBorderWidth:X.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:X.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:X.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:X.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:X.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:X.extend("--ft-button-small-horizontal-padding","",J.spacing3),smallGap:X.extend("--ft-button-small-gap","",J.spacing2),smallBorderRadius:X.extend("--ft-button-small-border-radius","",J.borderRadiusS),smallIconSize:X.extend("--ft-button-small-icon-size","",J.iconSize2),smallBorderWidth:X.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:X.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:X.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:X.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:X.extend("--ft-button-primary-background-color","",tt.backgroundActionPrimary),primaryColor:X.extend("--ft-button-primary-color","",tt.contentGlobalOnColor),primaryIconColor:X.extend("--ft-button-primary-icon-color","",tt.contentGlobalOnColor),primaryStateLayerColor:X.extend("--ft-button-primary-state-layer-color","",tt.contentGlobalOnColor),primaryStateLayerOpacityHover:X.extend("--ft-button-primary-state-layer-opacity-hover","",J.opacity16),primaryStateLayerOpacityFocus:X.extend("--ft-button-primary-state-layer-opacity-focus","",J.opacity16),primaryStateLayerOpacityActive:X.extend("--ft-button-primary-state-layer-opacity-active","",J.opacity24),primaryComponentOpacityDisabled:X.extend("--ft-button-primary-component-opacity-disabled","",J.opacity40),focusFocusRingColor:X.extend("--ft-button-focus-focus-ring-color","",tt.borderActionFocusRing),tertiaryBackgroundColor:X.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:X.extend("--ft-button-tertiary-color","",tt.contentActionPrimary),tertiaryIconColor:X.extend("--ft-button-tertiary-icon-color","",tt.contentActionPrimary),tertiaryStateLayerColor:X.extend("--ft-button-tertiary-state-layer-color","",tt.contentActionPrimary),tertiaryStateLayerOpacityHover:X.extend("--ft-button-tertiary-state-layer-opacity-hover","",J.opacity8),tertiaryStateLayerOpacityFocus:X.extend("--ft-button-tertiary-state-layer-opacity-focus","",J.opacity8),tertiaryStateLayerOpacityActive:X.extend("--ft-button-tertiary-state-layer-opacity-active","",J.opacity16),tertiaryComponentOpacityDisabled:X.extend("--ft-button-tertiary-component-opacity-disabled","",J.opacity40),secondaryBackgroundColor:X.extend("--ft-button-secondary-background-color","",J.colorWhite),secondaryColor:X.extend("--ft-button-secondary-color","",tt.contentActionPrimary),secondaryIconColor:X.extend("--ft-button-secondary-icon-color","",tt.contentActionPrimary),secondaryStateLayerColor:X.extend("--ft-button-secondary-state-layer-color","",tt.contentActionPrimary),secondaryStateLayerOpacityHover:X.extend("--ft-button-secondary-state-layer-opacity-hover","",J.opacity8),secondaryStateLayerOpacityFocus:X.extend("--ft-button-secondary-state-layer-opacity-focus","",J.opacity8),secondaryStateLayerOpacityActive:X.extend("--ft-button-secondary-state-layer-opacity-active","",J.opacity16),secondaryComponentOpacityDisabled:X.extend("--ft-button-secondary-component-opacity-disabled","",J.opacity40),secondaryBorderColor:X.extend("--ft-button-secondary-border-color","",tt.borderActionPrimary),neutralBackgroundColor:X.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:X.extend("--ft-button-neutral-icon-color","",tt.contentGlobalSecondary),neutralColor:X.extend("--ft-button-neutral-color","",tt.contentGlobalSecondary),neutralStateLayerColor:X.extend("--ft-button-neutral-state-layer-color","",tt.contentGlobalSecondary),neutralStateLayerOpacityHover:X.extend("--ft-button-neutral-state-layer-opacity-hover","",J.opacity8),neutralStateLayerOpacityFocus:X.extend("--ft-button-neutral-state-layer-opacity-focus","",J.opacity8),neutralStateLayerOpacityActive:X.extend("--ft-button-neutral-state-layer-opacity-active","",J.opacity16),neutralComponentOpacityDisabled:X.extend("--ft-button-neutral-component-opacity-disabled","",J.opacity40)};X.extend("--ft-tabs-top-left-border-radius","",J.borderRadiusS),X.extend("--ft-tabs-top-right-border-radius","",J.borderRadiusS),X.extend("--ft-tabs-label-horizontal-padding","",J.spacing4),X.extend("--ft-tabs-label-vertical-padding","",J.spacing3),X.extend("--ft-tabs-label-gap","",J.spacing1),X.extend("--ft-switch-group-horizontal-padding","",J.spacing1),X.extend("--ft-switch-group-vertical-padding","",J.spacing1),X.extend("--ft-switch-group-gap","",J.spacing1),X.extend("--ft-switch-group-background-color","",tt.backgroundGlobalSurface),X.extend("--ft-switch-group-border-color","",tt.borderGlobalSubtle),X.create("--ft-switch-group-border-radius","","SIZE","6px"),X.extend("--ft-switch-label-horizontal-padding","",J.spacing2),X.extend("--ft-switch-label-vertical-padding","",J.spacing1),X.extend("--ft-switch-icon-horizontal-padding","",J.spacing1),X.extend("--ft-switch-icon-vertical-padding","",J.spacing1),X.create("--ft-switch-focus-outline-width","","SIZE","2px"),X.extend("--ft-switch-focus-focus-ring-color","",tt.borderActionFocusRing),X.extend("--ft-switch-option-border-radius","",J.borderRadiusS),X.extend("--ft-switch-off-state-layer-opacity-hover","",J.opacity8),X.extend("--ft-switch-off-state-layer-opacity-focus","",J.opacity8),X.extend("--ft-switch-off-state-layer-opacity-active","",J.opacity16),X.extend("--ft-switch-off-component-opacity-disabled","",J.opacity40),X.extend("--ft-switch-off-color","",tt.contentGlobalSubtle),X.extend("--ft-switch-off-state-layer-color","",tt.contentGlobalSubtle),X.extend("--ft-chart-1-light","for area color charts",J.colorBrand40),X.extend("--ft-chart-1-base","for line charts",J.colorBrand0),X.extend("--ft-chart-2-light","for area color charts",J.colorYellow60),X.extend("--ft-chart-2-base","for line charts",J.colorYellow100),X.extend("--ft-chart-3-light","",J.colorUltramarine40),X.extend("--ft-chart-3-base","",J.colorUltramarine70),X.extend("--ft-chart-4-light","",J.colorCyan50),X.extend("--ft-chart-4-base","",J.colorCyan100),X.extend("--ft-chart-5-light","",J.colorRed40),X.extend("--ft-chart-5-base","",J.colorRed60),X.extend("--ft-chart-6-light","",J.colorGreen40),X.extend("--ft-chart-6-base","",J.colorGreen70),X.extend("--ft-chart-7-light","",J.colorOrange70),X.extend("--ft-chart-7-base","",J.colorOrange100),X.extend("--ft-chart-8-light","",J.colorAvocado70),X.extend("--ft-chart-8-base","",J.colorAvocado200),X.extend("--ft-chart-9-light","",J.colorBrown50),X.extend("--ft-chart-9-base","",J.colorBrown200),X.extend("--ft-chart-10-light","",J.colorGray50),X.extend("--ft-chart-10-base","",J.colorGray80),X.extend("--ft-chart-monochrome-10","",J.colorBrand10),X.extend("--ft-chart-monochrome-20","",J.colorBrand20),X.extend("--ft-chart-monochrome-30","",J.colorBrand40),X.extend("--ft-chart-monochrome-40","",J.colorBrand60),X.extend("--ft-chart-monochrome-50","",J.colorBrand0),X.extend("--ft-chart-monochrome-60","",J.colorBrand200),X.extend("--ft-chip-large-horizontal-padding","",J.spacing4),X.extend("--ft-chip-large-vertical-padding","",J.spacing2),X.extend("--ft-chip-large-gap","",J.spacing1),X.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-large-border-radius","",J.borderRadiusPill),X.create("--ft-chip-large-border-width","","SIZE","1px"),X.extend("--ft-chip-large-icon-size","",J.iconSize3),X.extend("--ft-chip-medium-horizontal-padding","",J.spacing3),X.extend("--ft-chip-medium-vertical-padding","",J.spacing1),X.extend("--ft-chip-medium-gap","",J.spacing1),X.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-medium-border-radius","",J.borderRadiusPill),X.create("--ft-chip-medium-border-width","","SIZE","1px"),X.extend("--ft-chip-medium-icon-size","",J.iconSize2),X.extend("--ft-chip-small-horizontal-padding","",J.spacing2),X.extend("--ft-chip-small-vertical-padding","",J.spacing05),X.extend("--ft-chip-small-gap","",J.spacing1),X.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-small-border-radius","",J.borderRadiusPill),X.create("--ft-chip-small-border-width","","SIZE","1px"),X.extend("--ft-chip-small-icon-size","",J.iconSize1),X.extend("--ft-chip-neutral-background-color","",tt.backgroundGlobalOnSurface),X.extend("--ft-chip-neutral-color","",tt.contentGlobalPrimary),X.extend("--ft-chip-neutral-border-color","",tt.borderGlobalSubtle),X.extend("--ft-chip-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-chip-info-color","",tt.contentInfoPrimary),X.extend("--ft-chip-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-chip-success-background-color","",tt.backgroundSuccessSubtle),X.extend("--ft-chip-success-color","",tt.contentSuccessPrimary),X.extend("--ft-chip-success-border-color","",tt.borderSuccessPrimary),X.extend("--ft-chip-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-chip-warning-color","",tt.contentWarningPrimary),X.extend("--ft-chip-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-chip-error-background-color","",tt.backgroundErrorSubtle),X.extend("--ft-chip-error-color","",tt.contentErrorPrimary),X.extend("--ft-chip-error-border-color","",tt.borderErrorPrimary),X.create("--ft-notice-border-width","","SIZE","1px"),X.extend("--ft-notice-horizontal-padding","",J.spacing2),X.extend("--ft-notice-vertical-padding","",J.spacing1),X.extend("--ft-notice-border-radius","",J.borderRadiusS),X.extend("--ft-notice-gap","",J.spacing2),X.extend("--ft-notice-icon-size","",J.iconSize3),X.extend("--ft-notice-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-notice-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-notice-info-color","",tt.contentInfoPrimary),X.extend("--ft-notice-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-notice-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-notice-warning-color","",tt.contentWarningPrimary),X.extend("--ft-checkbox-label-color","",tt.contentGlobalPrimary),X.extend("--ft-checkbox-checked-background-color","",tt.contentActionPrimary),X.extend("--ft-checkbox-checked-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-checkbox-checked-color","",tt.contentGlobalOnColor),X.extend("--ft-checkbox-checked-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-checkbox-checked-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-checkbox-checked-state-layer-opacity-active","",J.opacity24),X.extend("--ft-checkbox-checked-component-opacity-disabled","",J.opacity40),X.extend("--ft-checkbox-unchecked-border-color","",J.colorGray80),X.extend("--ft-checkbox-unchecked-state-layer-color","",J.colorGray80),X.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",J.opacity24),X.extend("--ft-checkbox-unchecked-component-opacity-disabled","",J.opacity40),X.extend("--ft-checkbox-focus-focus-ring-color","",tt.borderActionFocusRing),X.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),X.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),X.extend("--ft-checkbox-gap","",J.spacing3),X.extend("--ft-toggle-off-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-toggle-off-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-toggle-off-state-layer-opacity-active","",J.opacity24),X.extend("--ft-toggle-off-component-opacity-disabled","",J.opacity40),X.extend("--ft-toggle-off-background-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-off-icon-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-off-state-layer-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-on-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-toggle-on-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-toggle-on-state-layer-opacity-active","",J.opacity24),X.extend("--ft-toggle-on-component-opacity-disabled","",J.opacity40),X.extend("--ft-toggle-on-background-color","",tt.contentActionPrimary),X.extend("--ft-toggle-on-icon-color","",tt.contentActionPrimary),X.extend("--ft-toggle-on-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-toggle-label-color","",tt.contentGlobalPrimary),X.extend("--ft-toggle-focus-focus-ring-color","",tt.borderActionFocusRing),X.extend("--ft-toggle-gap","",J.spacing3),X.extend("--ft-radio-label-color","",tt.contentGlobalPrimary),X.extend("--ft-radio-selected-color","",tt.contentActionPrimary),X.extend("--ft-radio-selected-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-radio-selected-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-radio-selected-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-radio-selected-state-layer-opacity-active","",J.opacity24),X.extend("--ft-radio-selected-component-opacity-disabled","",J.opacity40),X.extend("--ft-radio-unselected-state-layer-color","",J.colorGray80),X.extend("--ft-radio-unselected-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-radio-unselected-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-radio-unselected-state-layer-opacity-active","",J.opacity24),X.extend("--ft-radio-unselected-component-opacity-disabled","",J.opacity40),X.extend("--ft-radio-focus-focus-ring-color","",tt.borderActionFocusRing),X.create("--ft-radio-focus-outline-offset","","SIZE","3px"),X.create("--ft-radio-focus-outline-width","","SIZE","2px"),X.extend("--ft-radio-gap","",J.spacing3),X.extend("--ft-notification-icon-size","",J.iconSize4),X.extend("--ft-notification-horizontal-padding","",J.spacing4),X.extend("--ft-notification-vertical-padding","",J.spacing4),X.extend("--ft-notification-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-notification-info-color","",tt.contentInfoPrimary),X.extend("--ft-notification-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-notification-success-background-color","",tt.backgroundSuccessSubtle),X.extend("--ft-notification-success-color","",tt.contentSuccessPrimary),X.extend("--ft-notification-success-border-color","",tt.borderSuccessPrimary),X.extend("--ft-notification-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-notification-warning-color","",tt.contentWarningPrimary),X.extend("--ft-notification-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-notification-error-background-color","",tt.backgroundErrorSubtle),X.extend("--ft-notification-error-color","",tt.contentErrorPrimary),X.extend("--ft-notification-error-border-color","",tt.borderErrorPrimary),X.extend("--ft-notification-border-radius","",J.borderRadiusPill),X.create("--ft-notification-border-width","","SIZE","1px"),X.extend("--ft-notification-gap-leading","",J.spacing2),X.extend("--ft-notification-gap-trailing","",J.spacing8);const et=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),it=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),rt={fontFamily:it,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},at=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",et),nt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",rt.fontSize,"20px"),lt=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",rt.fontWeight,"normal"),st=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",rt.letterSpacing,"0.15px"),ct=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",rt.lineHeight,"1.2"),pt=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",rt.textTransform,"inherit"),ft=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",et),ht=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",rt.fontSize,"14px"),dt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",rt.fontWeight,"normal"),gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",rt.letterSpacing,"0.105px"),yt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",rt.lineHeight,"1.7"),ut=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",rt.textTransform,"inherit"),bt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",it),mt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",rt.fontSize,"16px"),xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",rt.fontWeight,"600"),vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",rt.letterSpacing,"0.144px"),Ot=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",rt.lineHeight,"1.5"),Nt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",rt.textTransform,"inherit"),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",it),St=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",rt.fontSize,"14px"),wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",rt.fontWeight,"normal"),Ct=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",rt.letterSpacing,"0.098px"),kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",rt.lineHeight,"1.7"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",rt.textTransform,"inherit"),Rt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",it),Wt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",rt.fontSize,"16px"),Ut=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",rt.fontWeight,"normal"),Et=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",rt.letterSpacing,"0.496px"),Lt=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",rt.lineHeight,"1.5"),zt=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",rt.textTransform,"inherit"),Kt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",rt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",rt.letterSpacing,"0.252px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",rt.lineHeight,"1.4"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",rt.textTransform,"inherit")},Zt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",it),Bt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",rt.fontSize,"12px"),Ft=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",rt.fontWeight,"normal"),Dt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",rt.letterSpacing,"0.396px"),Ht=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",rt.lineHeight,"1.33"),At=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",rt.textTransform,"inherit"),jt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",it),Gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",rt.fontSize,"10px"),Mt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",rt.fontWeight,"normal"),Tt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",rt.letterSpacing,"0.33px"),Pt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",rt.lineHeight,"1.6"),_t=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",rt.textTransform,"inherit"),Vt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",it),Yt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",rt.fontSize,"10px"),qt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",rt.fontWeight,"normal"),Xt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",rt.letterSpacing,"1.5px"),Jt=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",rt.lineHeight,"1.6"),Qt=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",rt.textTransform,"uppercase"),to={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",rt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",rt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",rt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",rt.textTransform,"uppercase")},oo=e.css`
14
14
  .ft-typography--title {
15
- font-family: ${Q};
16
- font-size: ${tt};
17
- font-weight: ${it};
18
- letter-spacing: ${et};
19
- line-height: ${ot};
20
- text-transform: ${st};
21
- }
22
- `,Xt=e.css`
23
- .ft-typography--title-dense {
24
- font-family: ${nt};
25
- font-size: ${rt};
15
+ font-family: ${at};
16
+ font-size: ${nt};
26
17
  font-weight: ${lt};
27
- letter-spacing: ${at};
28
- line-height: ${ht};
18
+ letter-spacing: ${st};
19
+ line-height: ${ct};
29
20
  text-transform: ${pt};
30
21
  }
31
- `,Yt=e.css`
32
- .ft-typography--subtitle1 {
22
+ `,eo=e.css`
23
+ .ft-typography--title-dense {
33
24
  font-family: ${ft};
34
- font-size: ${ct};
25
+ font-size: ${ht};
35
26
  font-weight: ${dt};
36
- letter-spacing: ${ut};
37
- line-height: ${vt};
38
- text-transform: ${xt};
27
+ letter-spacing: ${gt};
28
+ line-height: ${yt};
29
+ text-transform: ${ut};
39
30
  }
40
- `,Jt=e.css`
41
- .ft-typography--subtitle2 {
31
+ `,io=e.css`
32
+ .ft-typography--subtitle1 {
42
33
  font-family: ${bt};
43
- font-size: ${gt};
44
- font-weight: ${yt};
45
- letter-spacing: ${mt};
46
- line-height: ${$t};
47
- text-transform: ${kt};
34
+ font-size: ${mt};
35
+ font-weight: ${xt};
36
+ letter-spacing: ${vt};
37
+ line-height: ${Ot};
38
+ text-transform: ${Nt};
39
+ }
40
+ `,ro=e.css`
41
+ .ft-typography--subtitle2 {
42
+ font-family: ${$t};
43
+ font-size: ${St};
44
+ font-weight: ${wt};
45
+ letter-spacing: ${Ct};
46
+ line-height: ${kt};
47
+ text-transform: ${It};
48
48
  }
49
49
 
50
- `,Qt=e.css`
50
+ `,ao=e.css`
51
51
  .ft-typography--body1 {
52
- font-family: ${wt};
53
- font-size: ${zt};
54
- font-weight: ${St};
55
- letter-spacing: ${Ot};
56
- line-height: ${Ct};
57
- text-transform: ${Bt};
58
- }
59
- `,ti=e.css`
52
+ font-family: ${Rt};
53
+ font-size: ${Wt};
54
+ font-weight: ${Ut};
55
+ letter-spacing: ${Et};
56
+ line-height: ${Lt};
57
+ text-transform: ${zt};
58
+ }
59
+ `,no=e.css`
60
60
  .ft-typography--body2 {
61
- font-family: ${jt.fontFamily};
62
- font-size: ${jt.fontSize};
63
- font-weight: ${jt.fontWeight};
64
- letter-spacing: ${jt.letterSpacing};
65
- line-height: ${jt.lineHeight};
66
- text-transform: ${jt.textTransform};
67
- }
68
- `,ii=e.css`
61
+ font-family: ${Kt.fontFamily};
62
+ font-size: ${Kt.fontSize};
63
+ font-weight: ${Kt.fontWeight};
64
+ letter-spacing: ${Kt.letterSpacing};
65
+ line-height: ${Kt.lineHeight};
66
+ text-transform: ${Kt.textTransform};
67
+ }
68
+ `,lo=e.css`
69
69
  .ft-typography--caption {
70
- font-family: ${Et};
71
- font-size: ${It};
72
- font-weight: ${Tt};
73
- letter-spacing: ${Nt};
74
- line-height: ${Dt};
70
+ font-family: ${Zt};
71
+ font-size: ${Bt};
72
+ font-weight: ${Ft};
73
+ letter-spacing: ${Dt};
74
+ line-height: ${Ht};
75
75
  text-transform: ${At};
76
76
  }
77
- `,ei=e.css`
77
+ `,so=e.css`
78
78
  .ft-typography--breadcrumb {
79
- font-family: ${Mt};
80
- font-size: ${Ft};
81
- font-weight: ${Rt};
82
- letter-spacing: ${_t};
83
- line-height: ${Lt};
84
- text-transform: ${Ht};
85
- }
86
- `,oi=e.css`
87
- .ft-typography--overline {
88
- font-family: ${Ut};
89
- font-size: ${Vt};
90
- font-weight: ${Wt};
91
- letter-spacing: ${Zt};
79
+ font-family: ${jt};
80
+ font-size: ${Gt};
81
+ font-weight: ${Mt};
82
+ letter-spacing: ${Tt};
92
83
  line-height: ${Pt};
93
- text-transform: ${Kt};
84
+ text-transform: ${_t};
94
85
  }
95
- `,si=e.css`
86
+ `,co=e.css`
87
+ .ft-typography--overline {
88
+ font-family: ${Vt};
89
+ font-size: ${Yt};
90
+ font-weight: ${qt};
91
+ letter-spacing: ${Xt};
92
+ line-height: ${Jt};
93
+ text-transform: ${Qt};
94
+ }
95
+ `,po=e.css`
96
96
  .ft-typography--button {
97
- font-family: ${Gt.fontFamily};
98
- font-size: ${Gt.fontSize};
99
- font-weight: ${Gt.fontWeight};
100
- letter-spacing: ${Gt.letterSpacing};
101
- line-height: ${Gt.lineHeight};
102
- text-transform: ${Gt.textTransform};
103
- }
104
- `,ni=e.css`
97
+ font-family: ${to.fontFamily};
98
+ font-size: ${to.fontSize};
99
+ font-weight: ${to.fontWeight};
100
+ letter-spacing: ${to.letterSpacing};
101
+ line-height: ${to.lineHeight};
102
+ text-transform: ${to.textTransform};
103
+ }
104
+ `,fo=e.css`
105
105
  .ft-typography {
106
106
  vertical-align: inherit;
107
107
  }
108
- `;var ri=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class li extends i.FtLitElement{constructor(){super(...arguments),this.variant=q.body1}render(){return this.element?G`
108
+ `,ho=[Object.keys(Q).map((t=>function(t){const o=Q[t];return e.css`
109
+ .ft-typography--${e.unsafeCSS(t)} {
110
+ font-family: ${o.fontFamily};
111
+ font-size: ${o.fontSize};
112
+ font-weight: ${o.fontWeight};
113
+ letter-spacing: ${o.letterSpacing};
114
+ line-height: ${o.lineHeight};
115
+ text-transform: ${o.textCase};
116
+ }
117
+ `}(t)))];var go=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class yo extends o.FtLitElement{constructor(){super(...arguments),this.variant=Y.body1}render(){return this.element?V`
109
118
  <${P(this.element)}
110
- class="ft-typography ft-typography--${this.variant}">
119
+ class="ft-typography ft-typography--${this.variant}">
111
120
  <slot></slot>
112
121
  </${P(this.element)}>
113
- `:G`
122
+ `:V`
114
123
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
115
- `}}li.styles=[qt,Xt,Yt,Jt,Qt,ti,ii,ei,oi,si,ni],ri([o.property()],li.prototype,"element",void 0),ri([o.property()],li.prototype,"variant",void 0),i.customElement("ft-typography")(li);const ai=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),hi={color:ai,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",ai),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},pi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),fi=pi,ci=i.FtCssVariableFactory.extend("--ft-ripple-background-color",pi),di=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),ui=di,vi=i.FtCssVariableFactory.extend("--ft-ripple-background-color",di),xi=e.css`
124
+ `}}yo.styles=[oo,eo,io,ro,ao,no,lo,so,co,po,fo,...ho],go([i.property()],yo.prototype,"element",void 0),go([i.property()],yo.prototype,"variant",void 0),o.customElement("ft-typography")(yo);const uo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),bo={color:uo,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",uo),opacityContentOnSurfacePressed:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},mo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),xo=mo,vo=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",mo),Oo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),No=Oo,$o=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Oo),So=e.css`
116
125
  :host {
117
126
  display: contents;
118
127
  }
@@ -125,7 +134,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
125
134
 
126
135
  .ft-ripple:not(.ft-ripple--unbounded) {
127
136
  overflow: hidden;
128
- border-radius: ${hi.borderRadius};
137
+ border-radius: ${bo.borderRadius};
129
138
  }
130
139
 
131
140
  .ft-ripple .ft-ripple--background,
@@ -159,27 +168,27 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
159
168
  }
160
169
 
161
170
  .ft-ripple .ft-ripple--background {
162
- background-color: ${hi.backgroundColor};
171
+ background-color: ${bo.backgroundColor};
163
172
  }
164
173
 
165
174
  .ft-ripple .ft-ripple--effect {
166
- background-color: ${hi.color};
175
+ background-color: ${bo.color};
167
176
  }
168
177
 
169
178
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
170
- background-color: ${vi};
179
+ background-color: ${$o};
171
180
  }
172
181
 
173
182
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
174
- background-color: ${ui};
183
+ background-color: ${No};
175
184
  }
176
185
 
177
186
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
178
- background-color: ${ci};
187
+ background-color: ${vo};
179
188
  }
180
189
 
181
190
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
182
- background-color: ${fi};
191
+ background-color: ${xo};
183
192
  }
184
193
 
185
194
  .ft-ripple .ft-ripple--background {
@@ -209,80 +218,22 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
209
218
  }
210
219
 
211
220
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
212
- opacity: ${hi.opacityContentOnSurfaceHover};
221
+ opacity: ${bo.opacityContentOnSurfaceHover};
213
222
  }
214
223
 
215
224
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
216
- opacity: ${hi.opacityContentOnSurfaceSelected};
225
+ opacity: ${bo.opacityContentOnSurfaceSelected};
217
226
  }
218
227
 
219
228
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
220
- opacity: ${hi.opacityContentOnSurfaceFocused};
229
+ opacity: ${bo.opacityContentOnSurfaceFocused};
221
230
  }
222
231
 
223
232
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
224
- opacity: ${hi.opacityContentOnSurfacePressed};
233
+ opacity: ${bo.opacityContentOnSurfacePressed};
225
234
  transform: translate(-50%, -50%) scale(1);
226
235
  }
227
- `;var bi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class gi extends i.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.originX=0,this.originY=0,this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!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 e.html`
228
- <style>
229
- .ft-ripple .ft-ripple--effect {
230
- left: ${this.originX}px;
231
- top: ${this.originY}px;
232
- }
233
- </style>
234
- <div class="${n.classMap(t)}">
235
- <div class="ft-ripple--background"></div>
236
- <div class="ft-ripple--effect"></div>
237
- </div>
238
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}gi.elementDefinitions={},gi.styles=xi,bi([o.property({type:Boolean})],gi.prototype,"primary",void 0),bi([o.property({type:Boolean})],gi.prototype,"secondary",void 0),bi([o.property({type:Boolean})],gi.prototype,"unbounded",void 0),bi([o.property({type:Boolean})],gi.prototype,"activated",void 0),bi([o.property({type:Boolean})],gi.prototype,"selected",void 0),bi([o.property({type:Boolean})],gi.prototype,"disabled",void 0),bi([o.state()],gi.prototype,"hovered",void 0),bi([o.state()],gi.prototype,"focused",void 0),bi([o.state()],gi.prototype,"pressed",void 0),bi([o.state()],gi.prototype,"rippling",void 0),bi([o.state()],gi.prototype,"originX",void 0),bi([o.state()],gi.prototype,"originY",void 0),bi([o.query(".ft-ripple")],gi.prototype,"ripple",void 0),bi([o.query(".ft-ripple--effect")],gi.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(gi);const yi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),mi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),$i=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),ki=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),wi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),zi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Si=e.css`
239
- .ft-tooltip--container {
240
- display: block;
241
- }
242
-
243
- .ft-tooltip--inline {
244
- display: inline-block;
245
- max-width: 100%;
246
- }
247
-
248
- .ft-tooltip {
249
- position: absolute;
250
- box-sizing: border-box;
251
- overflow: hidden;
252
- width: max-content;
253
- max-width: ${zi};
254
- text-align: center;
255
- padding: ${yi};
256
- z-index: ${ki};
257
- }
258
-
259
- .ft-tooltip--content {
260
- padding: 4px 8px;
261
- border-radius: ${wi};
262
- background-color: ${$i};
263
- color: ${mi};
264
- position: relative;
265
- word-break: break-word;
266
- }
267
- `;var Oi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ci extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
268
- <div part="container"
269
- class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
270
- @mouseenter=${this.onHover}
271
- @mouseleave=${this.onOut}
272
- @focusin=${this.onHover}
273
- @focusout=${this.onOut}
274
- @touchstart=${this.onTouch}>
275
- <slot></slot>
276
- <div part="tooltip" role="tooltip" inert
277
- class="ft-tooltip ft-tooltip--${this.validPosition}"
278
- ?hidden=${!this.visible}>
279
- <div part="tooltip-content" class="ft-tooltip--content">
280
- <slot name="text"></slot>
281
- <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
282
- </div>
283
- </div>
284
- </div>
285
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,s=(t.offsetWidth-i)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=n+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let h=-a.x,p=a.x+a.width-window.innerWidth;l.left=n+Math.round(this.correctOutOfWindowPixels(h,p))+"px";let f=-a.y,c=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(f,c))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${zi})`}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())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}Ci.elementDefinitions={"ft-typography":li},Ci.styles=Si,Oi([o.property()],Ci.prototype,"text",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"manual",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"inline",void 0),Oi([o.property({type:Number})],Ci.prototype,"delay",void 0),Oi([o.property()],Ci.prototype,"position",void 0),Oi([o.queryAssignedNodes("",!0)],Ci.prototype,"slotNodes",void 0),Oi([o.query(".ft-tooltip--container")],Ci.prototype,"container",void 0),Oi([o.query(".ft-tooltip")],Ci.prototype,"tooltip",void 0),Oi([o.query(".ft-tooltip--content")],Ci.prototype,"tooltipContent",void 0),Oi([o.state()],Ci.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ci);const Bi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},ji=e.css`
236
+ `,wo={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Co=e.css`
286
237
  :host {
287
238
  line-height: 0;
288
239
  }
@@ -291,8 +242,8 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
291
242
  display: inline-block;
292
243
  position: relative;
293
244
 
294
- width: ${Bi.size};
295
- height: ${Bi.size};
245
+ width: ${wo.size};
246
+ height: ${wo.size};
296
247
  }
297
248
 
298
249
  .ft-loader div {
@@ -301,7 +252,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
301
252
  width: 25%;
302
253
  height: 25%;
303
254
  border-radius: 50%;
304
- background: ${Bi.color};
255
+ background: ${wo.color};
305
256
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
306
257
  }
307
258
 
@@ -348,17 +299,10 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
348
299
  transform: translate(0, 0);
349
300
  }
350
301
  100% {
351
- transform: translate(calc(0.35 * ${Bi.size}), 0);
302
+ transform: translate(calc(0.35 * ${wo.size}), 0);
352
303
  }
353
304
  }
354
- `;class Ei extends i.FtLitElement{render(){return e.html`
355
- <div class="ft-loader">
356
- <div></div>
357
- <div></div>
358
- <div></div>
359
- <div></div>
360
- </div>
361
- `}}var Ii,Ti;Ei.styles=ji,i.customElement("ft-loader")(Ei),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",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.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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",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="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Ii||(Ii={})),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;"}(Ti||(Ti={})),new Map([...["abw"].map((t=>[t,Ti.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,Ti.AUDIO])),...["avi"].map((t=>[t,Ti.AVI])),...["chm","xhs"].map((t=>[t,Ti.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,Ti.CODE])),...["csv"].map((t=>[t,Ti.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ti.DITA])),...["epub"].map((t=>[t,Ti.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ti.EXCEL])),...["flac"].map((t=>[t,Ti.FLAC])),...["gif"].map((t=>[t,Ti.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ti.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ti.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,Ti.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ti.JPEG])),...["json"].map((t=>[t,Ti.JSON])),...["m4a","m4p"].map((t=>[t,Ti.M4A])),...["mov","qt"].map((t=>[t,Ti.MOV])),...["mp3"].map((t=>[t,Ti.MP3])),...["mp4","m4v"].map((t=>[t,Ti.MP4])),...["ogg","oga"].map((t=>[t,Ti.OGG])),...["pdf","ps"].map((t=>[t,Ti.PDF])),...["png"].map((t=>[t,Ti.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ti.POWERPOINT])),...["rar"].map((t=>[t,Ti.RAR])),...["stp"].map((t=>[t,Ti.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ti.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,Ti.VIDEO])),...["wav"].map((t=>[t,Ti.WAV])),...["wma"].map((t=>[t,Ti.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ti.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ti.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ti.YAML])),...["zip"].map((t=>[t,Ti.ZIP]))]);const Ni={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Di=e.css`
305
+ `,ko={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Io=e.css`
362
306
  :host, i.ft-icon {
363
307
  display: inline-flex;
364
308
  align-items: center;
@@ -367,14 +311,14 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
367
311
  }
368
312
 
369
313
  :host {
370
- width: ${Ni.size};
371
- height: ${Ni.size};
314
+ width: ${ko.size};
315
+ height: ${ko.size};
372
316
  }
373
317
 
374
318
  i.ft-icon {
375
319
  width: 100%;
376
320
  height: 100%;
377
- font-size: ${Ni.size};
321
+ font-size: ${ko.size};
378
322
  line-height: 1;
379
323
  font-weight: normal;
380
324
  text-transform: none;
@@ -385,33 +329,28 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
385
329
  text-rendering: auto;
386
330
  -webkit-font-smoothing: antialiased;
387
331
  -moz-osx-font-smoothing: grayscale;
388
- vertical-align: ${Ni.verticalAlign};
332
+ vertical-align: ${ko.verticalAlign};
389
333
  }
390
334
 
391
335
  i.ft-icon.ft-icon--fluid-topics {
392
- font-family: ${Ni.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
336
+ font-family: ${ko.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
393
337
 
394
338
  /* Ugly fix because font is broken */
395
- font-size: calc(0.75 * ${Ni.size});
396
- line-height: ${Ni.size};
339
+ font-size: calc(0.75 * ${ko.size});
340
+ line-height: ${ko.size};
397
341
  position: relative;
398
342
  top: -4%;
399
343
  justify-content: center;
400
344
  }
401
345
 
402
346
  .ft-icon--file-format {
403
- font-family: ${Ni.fileFormatFontFamily}, ft-mime, sans-serif;
347
+ font-family: ${ko.fileFormatFontFamily}, ft-mime, sans-serif;
404
348
  }
405
349
 
406
350
  .ft-icon--material {
407
- font-family: ${Ni.materialFontFamily}, "Material Icons", sans-serif;
351
+ font-family: ${ko.materialFontFamily}, "Material Icons", sans-serif;
408
352
  }
409
- `;var Ai;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ai||(Ai={}));var Mi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Fi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Ai).includes(this.variant)?this.variant:Ai.fluid_topics,i=t!==Ai.material||!!this.value;return e.html`
410
- <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
411
- ${r.unsafeHTML(this.resolvedIcon)}
412
- <slot ?hidden=${i}></slot>
413
- </i>
414
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Ai.file_format:this.resolvedIcon=null!==(t=Ti[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ai.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Ii[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Fi.elementDefinitions={},Fi.styles=Di,Mi([o.property()],Fi.prototype,"variant",void 0),Mi([o.property()],Fi.prototype,"value",void 0),Mi([o.state()],Fi.prototype,"resolvedIcon",void 0),Mi([o.query("slot")],Fi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Fi);const Ri=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),_i={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ri,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",Gt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Ri),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Li=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Li,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Li)},Ui=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Vi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Wi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Zi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Pi=[e.css`
353
+ `,Ro=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),Wo={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:Ro,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",to.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ro),verticalPadding:o.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},Uo=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),Eo={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Uo,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Uo)},Lo=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),zo=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Ko=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Zo=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Bo=[e.css`
415
354
  :host {
416
355
  display: inline-block;
417
356
  max-width: 100%;
@@ -422,7 +361,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
422
361
  box-shadow: 0px 0px 0px transparent;
423
362
  border: 0px solid transparent;
424
363
  text-shadow: 0px 0px 0px transparent;
425
- font-size: ${_i.fontSize};
364
+ font-size: ${Wo.fontSize};
426
365
  }
427
366
 
428
367
  button:hover {
@@ -451,31 +390,31 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
451
390
  border: none;
452
391
  pointer-events: auto;
453
392
 
454
- --ft-button-internal-line-height: max(calc(${_i.fontSize} + 2px), ${_i.iconSize});
455
- --ft-button-internal-color: ${_i.color};
456
- ${i.setVariable(Ni.size,_i.iconSize)};
457
- ${i.setVariable(hi.color,_i.rippleColor)};
393
+ --ft-button-internal-line-height: max(calc(${Wo.fontSize} + 2px), ${Wo.iconSize});
394
+ --ft-button-internal-color: ${Wo.color};
395
+ ${o.setVariable(ko.size,Wo.iconSize)};
396
+ ${o.setVariable(bo.color,Wo.rippleColor)};
458
397
 
459
- border-radius: ${_i.borderRadius};
460
- padding: ${_i.verticalPadding} ${_i.horizontalPadding};
461
- background-color: ${_i.backgroundColor};
398
+ border-radius: ${Wo.borderRadius};
399
+ padding: ${Wo.verticalPadding} ${Wo.horizontalPadding};
400
+ background-color: ${Wo.backgroundColor};
462
401
  color: var(--ft-button-internal-color);
463
402
  -webkit-mask-image: radial-gradient(white, black);
464
403
  }
465
404
 
466
405
  .ft-button.ft-button--outlined {
467
406
  border: 1px solid var(--ft-button-internal-color);
468
- padding: calc(${_i.verticalPadding} - 1px) calc(${_i.horizontalPadding} - 1px);
407
+ padding: calc(${Wo.verticalPadding} - 1px) calc(${Wo.horizontalPadding} - 1px);
469
408
  }
470
409
 
471
410
  .ft-button.ft-button--dense {
472
- padding: ${Vi} ${Wi};
473
- border-radius: ${Ui};
474
- gap: ${Zi};
411
+ padding: ${zo} ${Ko};
412
+ border-radius: ${Lo};
413
+ gap: ${Zo};
475
414
  }
476
415
 
477
416
  .ft-button.ft-button--dense.ft-button--outlined {
478
- padding: calc(${Vi} - 1px) calc(${Wi} - 1px);
417
+ padding: calc(${zo} - 1px) calc(${Ko} - 1px);
479
418
  }
480
419
 
481
420
  .ft-button:not([disabled]):hover {
@@ -483,22 +422,22 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
483
422
  }
484
423
 
485
424
  .ft-button--round {
486
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${_i.verticalPadding});
425
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Wo.verticalPadding});
487
426
  }
488
427
 
489
428
  .ft-button--round.ft-button--dense {
490
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Vi});
429
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${zo});
491
430
  }
492
431
 
493
432
  .ft-button[disabled] {
494
433
  filter: grayscale(1);
495
- opacity: ${_i.opacityDisabled};
434
+ opacity: ${Wo.opacityDisabled};
496
435
  }
497
436
 
498
437
  .ft-button.ft-button--primary {
499
- background-color: ${Hi.backgroundColor};
500
- --ft-button-internal-color: ${Hi.color};
501
- ${i.setVariable(hi.color,Hi.rippleColor)};
438
+ background-color: ${Eo.backgroundColor};
439
+ --ft-button-internal-color: ${Eo.color};
440
+ ${o.setVariable(bo.color,Eo.rippleColor)};
502
441
  }
503
442
 
504
443
  .ft-button:focus {
@@ -511,13 +450,13 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
511
450
  white-space: nowrap;
512
451
  text-overflow: ellipsis;
513
452
  display: block;
514
- margin: 0 ${_i.iconPadding};
515
- ${i.setVariable(Gt.fontSize,"1em")};
516
- ${i.setVariable(Gt.lineHeight,"var(--ft-button-internal-line-height)")};
453
+ margin: 0 ${Wo.iconPadding};
454
+ ${o.setVariable(to.fontSize,"1em")};
455
+ ${o.setVariable(to.lineHeight,"var(--ft-button-internal-line-height)")};
517
456
  }
518
457
 
519
458
  .ft-button--dense .ft-button--label {
520
- margin: 0 ${Zi};
459
+ margin: 0 ${Zo};
521
460
  }
522
461
 
523
462
  .ft-button--label[hidden] {
@@ -530,13 +469,13 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
530
469
  }
531
470
 
532
471
  .ft-button--label[hidden] + ft-icon {
533
- margin: 0 calc(${_i.horizontalPadding} * -1);
534
- padding: 0 ${_i.verticalPadding};
472
+ margin: 0 calc(${Wo.horizontalPadding} * -1);
473
+ padding: 0 ${Wo.verticalPadding};
535
474
  }
536
475
 
537
476
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
538
- margin: 0 calc(${Wi} * -1);
539
- padding: 0 ${Vi};
477
+ margin: 0 calc(${Ko} * -1);
478
+ padding: 0 ${zo};
540
479
  }
541
480
 
542
481
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -545,19 +484,89 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
545
484
  }
546
485
 
547
486
  ft-loader {
548
- ${i.setVariable(Bi.size,_i.iconSize)};
549
- ${i.setVariable(Bi.color,"var(--ft-button-internal-color)")};
487
+ ${o.setVariable(wo.size,Wo.iconSize)};
488
+ ${o.setVariable(wo.color,"var(--ft-button-internal-color)")};
550
489
  }
551
- `,i.noTextSelect];var Ki=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Gi extends(i.toFtFormComponent(i.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var i;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(i=this.form)||void 0===i||i.requestSubmit())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
490
+ `,o.noTextSelect];var Fo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Do extends o.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.originX=0,this.originY=0,this.debouncer=new o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-a.x:a.width/2),this.originY=Math.round(null!=r?r-a.y:a.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.isFocusVisible(null==t?void 0:t.target)&&!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 e.html`
491
+ <style>
492
+ .ft-ripple .ft-ripple--effect {
493
+ left: ${this.originX}px;
494
+ top: ${this.originY}px;
495
+ }
496
+ </style>
497
+ <div class="${a.classMap(t)}">
498
+ <div class="ft-ripple--background"></div>
499
+ <div class="ft-ripple--effect"></div>
500
+ </div>
501
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Do.elementDefinitions={},Do.styles=So,Fo([i.property({type:Boolean})],Do.prototype,"primary",void 0),Fo([i.property({type:Boolean})],Do.prototype,"secondary",void 0),Fo([i.property({type:Boolean})],Do.prototype,"unbounded",void 0),Fo([i.property({type:Boolean})],Do.prototype,"activated",void 0),Fo([i.property({type:Boolean})],Do.prototype,"selected",void 0),Fo([i.property({type:Boolean})],Do.prototype,"disabled",void 0),Fo([i.state()],Do.prototype,"hovered",void 0),Fo([i.state()],Do.prototype,"focused",void 0),Fo([i.state()],Do.prototype,"pressed",void 0),Fo([i.state()],Do.prototype,"rippling",void 0),Fo([i.state()],Do.prototype,"originX",void 0),Fo([i.state()],Do.prototype,"originY",void 0),Fo([i.query(".ft-ripple")],Do.prototype,"ripple",void 0),Fo([i.query(".ft-ripple--effect")],Do.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Do);const Ho=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Ao=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),jo=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),Go=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),Mo=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),To=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),Po=e.css`
502
+ .ft-tooltip--container {
503
+ display: block;
504
+ }
505
+
506
+ .ft-tooltip--inline {
507
+ display: inline-block;
508
+ max-width: 100%;
509
+ }
510
+
511
+ .ft-tooltip {
512
+ position: absolute;
513
+ box-sizing: border-box;
514
+ overflow: hidden;
515
+ width: max-content;
516
+ max-width: ${To};
517
+ text-align: center;
518
+ padding: ${Ho};
519
+ z-index: ${Go};
520
+ }
521
+
522
+ .ft-tooltip--content {
523
+ padding: 4px 8px;
524
+ border-radius: ${Mo};
525
+ background-color: ${jo};
526
+ color: ${Ao};
527
+ position: relative;
528
+ word-break: break-word;
529
+ }
530
+ `;var _o,Vo,Yo,qo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Xo extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
531
+ <div part="container"
532
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
533
+ @mouseenter=${this.onHover}
534
+ @mouseleave=${this.onOut}
535
+ @focusin=${this.onHover}
536
+ @focusout=${this.onOut}
537
+ @touchstart=${this.onTouch}>
538
+ <slot></slot>
539
+ <div part="tooltip" role="tooltip" inert
540
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
541
+ ?hidden=${!this.visible}>
542
+ <div part="tooltip-content" class="ft-tooltip--content">
543
+ <slot name="text"></slot>
544
+ <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
545
+ </div>
546
+ </div>
547
+ </div>
548
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=a+"px",l.top=n+"px";const s=this.tooltip.getBoundingClientRect();let c=-s.x,p=s.x+s.width-window.innerWidth;l.left=a+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-s.y,h=s.y+s.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(f,h))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${To})`}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())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Xo.elementDefinitions={"ft-typography":yo},Xo.styles=Po,qo([i.property()],Xo.prototype,"text",void 0),qo([i.property({type:Boolean})],Xo.prototype,"manual",void 0),qo([i.property({type:Boolean})],Xo.prototype,"inline",void 0),qo([i.property({type:Number})],Xo.prototype,"delay",void 0),qo([i.property()],Xo.prototype,"position",void 0),qo([i.queryAssignedNodes("",!0)],Xo.prototype,"slotNodes",void 0),qo([i.query(".ft-tooltip--container")],Xo.prototype,"container",void 0),qo([i.query(".ft-tooltip")],Xo.prototype,"tooltip",void 0),qo([i.query(".ft-tooltip--content")],Xo.prototype,"tooltipContent",void 0),qo([i.state()],Xo.prototype,"visible",void 0),o.customElement("ft-tooltip")(Xo),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",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.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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",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="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(_o||(_o={})),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;"}(Vo||(Vo={})),new Map([...["abw"].map((t=>[t,Vo.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,Vo.AUDIO])),...["avi"].map((t=>[t,Vo.AVI])),...["chm","xhs"].map((t=>[t,Vo.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,Vo.CODE])),...["csv"].map((t=>[t,Vo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Vo.DITA])),...["epub"].map((t=>[t,Vo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Vo.EXCEL])),...["flac"].map((t=>[t,Vo.FLAC])),...["gif"].map((t=>[t,Vo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Vo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Vo.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,Vo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Vo.JPEG])),...["json"].map((t=>[t,Vo.JSON])),...["m4a","m4p"].map((t=>[t,Vo.M4A])),...["mov","qt"].map((t=>[t,Vo.MOV])),...["mp3"].map((t=>[t,Vo.MP3])),...["mp4","m4v"].map((t=>[t,Vo.MP4])),...["ogg","oga"].map((t=>[t,Vo.OGG])),...["pdf","ps"].map((t=>[t,Vo.PDF])),...["png"].map((t=>[t,Vo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Vo.POWERPOINT])),...["rar"].map((t=>[t,Vo.RAR])),...["stp"].map((t=>[t,Vo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Vo.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,Vo.VIDEO])),...["wav"].map((t=>[t,Vo.WAV])),...["wma"].map((t=>[t,Vo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Vo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Vo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Vo.YAML])),...["zip"].map((t=>[t,Vo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Yo||(Yo={}));var Jo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Qo extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Yo).includes(this.variant)?this.variant:Yo.fluid_topics,o=t!==Yo.material||!!this.value;return e.html`
549
+ <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
550
+ ${n.unsafeHTML(this.resolvedIcon)}
551
+ <slot ?hidden=${o}></slot>
552
+ </i>
553
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case Yo.file_format:this.resolvedIcon=null!==(t=Vo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Yo.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=_o[i.replace("-","_").toUpperCase()])&&void 0!==o?o:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Qo.elementDefinitions={},Qo.styles=Io,Jo([i.property()],Qo.prototype,"variant",void 0),Jo([i.property()],Qo.prototype,"value",void 0),Jo([i.state()],Qo.prototype,"resolvedIcon",void 0),Jo([i.query("slot")],Qo.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Qo);class te extends o.FtLitElement{render(){return e.html`
554
+ <div class="ft-loader">
555
+ <div></div>
556
+ <div></div>
557
+ <div></div>
558
+ <div></div>
559
+ </div>
560
+ `}}te.styles=Co,o.customElement("ft-loader")(te);var oe=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ee extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
552
561
  <button part="button"
553
- class="${n.classMap(t)}"
562
+ class="${a.classMap(this.buttonClasses)}"
554
563
  aria-label="${this.getLabel()}"
555
564
  ?disabled=${this.isDisabled()}>
556
565
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
557
566
  <ft-typography part="label"
558
- variant="button"
567
+ variant=${this.typographyVariant}
559
568
  element="span"
560
- class="ft-button--label ${i.isSafari?"ft-safari-ellipsis-fix":""}"
569
+ class="ft-button--label ${o.isSafari?"ft-safari-ellipsis-fix":""}"
561
570
  ?hidden=${!this.hasTextContent()}>
562
571
  <slot @slotchange=${this.onSlotchange}></slot>
563
572
  </ft-typography>
@@ -571,14 +580,232 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
571
580
  </ft-tooltip>
572
581
  `:t}resolveIcon(){return this.loading?e.html`
573
582
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
574
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Gi.elementDefinitions={"ft-ripple":gi,"ft-tooltip":Ci,"ft-typography":li,"ft-icon":Fi,"ft-loader":Ei},Gi.styles=[i.safariEllipsisFix,Pi],Ki([o.property({type:String,reflect:!0})],Gi.prototype,"role",void 0),Ki([o.property()],Gi.prototype,"type",void 0),Ki([o.property({type:Boolean})],Gi.prototype,"primary",void 0),Ki([o.property({type:Boolean})],Gi.prototype,"outlined",void 0),Ki([o.property({type:Boolean})],Gi.prototype,"disabled",void 0),Ki([o.property({type:Boolean})],Gi.prototype,"dense",void 0),Ki([o.property({type:Boolean})],Gi.prototype,"round",void 0),Ki([o.property()],Gi.prototype,"label",void 0),Ki([o.property()],Gi.prototype,"icon",void 0),Ki([o.property()],Gi.prototype,"iconVariant",void 0),Ki([o.property({type:Boolean})],Gi.prototype,"trailingIcon",void 0),Ki([o.property({type:Boolean})],Gi.prototype,"loading",void 0),Ki([o.property()],Gi.prototype,"tooltipPosition",void 0),Ki([o.property({type:Boolean})],Gi.prototype,"hideTooltip",void 0),Ki([o.property({type:Boolean})],Gi.prototype,"forceTooltip",void 0),Ki([o.query(".ft-button")],Gi.prototype,"button",void 0),Ki([o.query(".ft-button--label slot")],Gi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Gi);const qi=i.FtCssVariableFactory.extend("--ft-checkbox-text-color",i.designSystemVariables.colorOnSurfaceHigh),Xi=i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),Yi=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),Ji=i.FtCssVariableFactory.extend("--ft-checkbox-border-color",i.designSystemVariables.colorOnSurfaceMedium),Qi=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),te=e.css`
583
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ee.elementDefinitions={"ft-ripple":Do,"ft-tooltip":Xo,"ft-typography":yo,"ft-icon":Qo,"ft-loader":te},oe([i.property({type:String,reflect:!0})],ee.prototype,"role",void 0),oe([i.property()],ee.prototype,"type",void 0),oe([i.property({type:Boolean})],ee.prototype,"disabled",void 0),oe([i.property()],ee.prototype,"label",void 0),oe([i.property()],ee.prototype,"icon",void 0),oe([i.property()],ee.prototype,"iconVariant",void 0),oe([i.property({type:Boolean})],ee.prototype,"trailingIcon",void 0),oe([i.property({type:Boolean})],ee.prototype,"loading",void 0),oe([i.property()],ee.prototype,"tooltipPosition",void 0),oe([i.property({type:Boolean})],ee.prototype,"hideTooltip",void 0),oe([i.property({type:Boolean})],ee.prototype,"forceTooltip",void 0),oe([i.query(".ft-button")],ee.prototype,"button",void 0),oe([i.query(".ft-button--label slot")],ee.prototype,"slottedContent",void 0);var ie=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class re extends ee{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}re.styles=[o.safariEllipsisFix,Bo],ie([i.property({type:Boolean})],re.prototype,"primary",void 0),ie([i.property({type:Boolean})],re.prototype,"outlined",void 0),ie([i.property({type:Boolean})],re.prototype,"disabled",void 0),ie([i.property({type:Boolean})],re.prototype,"dense",void 0),ie([i.property({type:Boolean})],re.prototype,"round",void 0);const ae=[e.css`
584
+ :host {
585
+ display: inline-block;
586
+ max-width: 100%;
587
+ pointer-events: none;
588
+ }
589
+
590
+ /** Remove default button styles **/
591
+
592
+ button {
593
+ box-shadow: 0 0 0 transparent;
594
+ border: 0 solid transparent;
595
+ text-shadow: 0 0 0 transparent;
596
+ }
597
+
598
+ button:hover {
599
+ box-shadow: 0 0 0 transparent;
600
+ text-shadow: 0 0 0 transparent;
601
+ }
602
+
603
+ button:active {
604
+ outline: none;
605
+ }
606
+
607
+ button:focus {
608
+ outline: 0;
609
+ }
610
+
611
+ /** Base styles **/
612
+
613
+ .ft-button {
614
+ position: relative;
615
+ display: flex;
616
+ justify-content: center;
617
+ align-items: center;
618
+ width: 100%;
619
+ overflow: hidden;
620
+ box-sizing: border-box;
621
+ pointer-events: auto;
622
+ }
623
+
624
+ .ft-button:not([disabled]):hover {
625
+ cursor: pointer;
626
+ }
627
+
628
+ .ft-button:focus {
629
+ outline: none;
630
+ }
631
+
632
+ .ft-button:focus-visible {
633
+ outline-color: ${ot.focusFocusRingColor};
634
+ outline-style: solid;
635
+ }
636
+
637
+ ft-icon {
638
+ flex-shrink: 0;
639
+ position: relative;
640
+ }
641
+
642
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
643
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
644
+ order: -1;
645
+ }
646
+
647
+ .ft-button--label {
648
+ position: relative;
649
+ overflow: hidden;
650
+ white-space: nowrap;
651
+ text-overflow: ellipsis;
652
+ display: block;
653
+ }
654
+
655
+ .ft-button--label[hidden] {
656
+ display: none;
657
+ }
658
+
659
+ /** Primary styles **/
660
+
661
+ .ft-button--primary {
662
+ ${o.setVariable(wo.color,ot.primaryIconColor)};
663
+
664
+ ${o.setVariable(bo.color,ot.primaryStateLayerColor)};
665
+ ${o.setVariable(bo.opacityContentOnSurfaceHover,ot.primaryStateLayerOpacityHover)};
666
+ ${o.setVariable(bo.opacityContentOnSurfaceFocused,ot.primaryStateLayerOpacityFocus)};
667
+ ${o.setVariable(bo.opacityContentOnSurfaceSelected,ot.primaryStateLayerOpacityActive)};
668
+ ${o.setVariable(bo.opacityContentOnSurfacePressed,ot.primaryStateLayerOpacityActive)};
669
+
670
+ background-color: ${ot.primaryBackgroundColor};
671
+ color: ${ot.primaryColor};
672
+ border-style: none;
673
+ }
674
+
675
+ .ft-button--primary[disabled] {
676
+ opacity: ${ot.primaryComponentOpacityDisabled};
677
+ }
678
+
679
+ .ft-button--primary ft-icon {
680
+ color: ${ot.primaryIconColor};
681
+ }
682
+
683
+ /** Secondary styles **/
684
+
685
+ .ft-button--secondary {
686
+ ${o.setVariable(wo.color,ot.secondaryIconColor)};
687
+
688
+ ${o.setVariable(bo.color,ot.secondaryStateLayerColor)};
689
+ ${o.setVariable(bo.opacityContentOnSurfaceHover,ot.secondaryStateLayerOpacityHover)};
690
+ ${o.setVariable(bo.opacityContentOnSurfaceFocused,ot.secondaryStateLayerOpacityFocus)};
691
+ ${o.setVariable(bo.opacityContentOnSurfaceSelected,ot.secondaryStateLayerOpacityActive)};
692
+ ${o.setVariable(bo.opacityContentOnSurfacePressed,ot.secondaryStateLayerOpacityActive)};
693
+
694
+ background-color: ${ot.secondaryBackgroundColor};
695
+ color: ${ot.secondaryColor};
696
+ border-color: ${ot.secondaryBorderColor};
697
+ border-style: solid;
698
+ }
699
+
700
+ .ft-button--secondary[disabled] {
701
+ opacity: ${ot.secondaryComponentOpacityDisabled};
702
+ }
703
+
704
+ .ft-button--secondary ft-icon {
705
+ color: ${ot.secondaryIconColor};
706
+ }
707
+
708
+ /** Tertiary styles **/
709
+
710
+ .ft-button--tertiary {
711
+ ${o.setVariable(wo.color,ot.tertiaryIconColor)};
712
+
713
+ ${o.setVariable(bo.color,ot.tertiaryStateLayerColor)};
714
+ ${o.setVariable(bo.opacityContentOnSurfaceHover,ot.tertiaryStateLayerOpacityHover)};
715
+ ${o.setVariable(bo.opacityContentOnSurfaceFocused,ot.tertiaryStateLayerOpacityFocus)};
716
+ ${o.setVariable(bo.opacityContentOnSurfaceSelected,ot.tertiaryStateLayerOpacityActive)};
717
+ ${o.setVariable(bo.opacityContentOnSurfacePressed,ot.tertiaryStateLayerOpacityActive)};
718
+
719
+ background-color: ${ot.tertiaryBackgroundColor};
720
+ color: ${ot.tertiaryColor};
721
+ border-style: none;
722
+ }
723
+
724
+ .ft-button--tertiary[disabled] {
725
+ opacity: ${ot.tertiaryComponentOpacityDisabled};
726
+ }
727
+
728
+ .ft-button--tertiary ft-icon {
729
+ color: ${ot.tertiaryIconColor};
730
+ }
731
+
732
+ /** Neutral styles **/
733
+
734
+ .ft-button--neutral {
735
+ ${o.setVariable(wo.color,ot.neutralIconColor)};
736
+
737
+ ${o.setVariable(bo.backgroundColor,ot.neutralStateLayerColor)};
738
+ ${o.setVariable(bo.opacityContentOnSurfaceHover,ot.neutralStateLayerOpacityHover)};
739
+ ${o.setVariable(bo.opacityContentOnSurfaceFocused,ot.neutralStateLayerOpacityFocus)};
740
+ ${o.setVariable(bo.opacityContentOnSurfaceSelected,ot.neutralStateLayerOpacityActive)};
741
+ ${o.setVariable(bo.opacityContentOnSurfacePressed,ot.neutralStateLayerOpacityActive)};
742
+
743
+ background-color: ${ot.neutralBackgroundColor};
744
+ color: ${ot.neutralColor};
745
+ border-style: none;
746
+ }
747
+
748
+ .ft-button--neutral[disabled] {
749
+ opacity: ${ot.neutralComponentOpacityDisabled};
750
+ }
751
+
752
+ .ft-button--neutral ft-icon {
753
+ color: ${ot.neutralIconColor};
754
+ }
755
+
756
+ /** Large styles **/
757
+
758
+ .ft-button--large {
759
+ ${o.setVariable(ko.size,ot.largeIconSize)};
760
+ ${o.setVariable(wo.size,ot.largeIconSize)};
761
+
762
+ height: ${ot.largeHeight};
763
+ padding: 0 ${ot.largeHorizontalPadding};
764
+ gap: ${ot.largeGap};
765
+ border-radius: ${ot.largeBorderRadius};
766
+ border-width: ${ot.largeBorderWidth};
767
+ }
768
+
769
+ .ft-button--large:focus-visible {
770
+ outline-width: ${ot.largeFocusOutlineWidth};
771
+ outline-offset: ${ot.largeFocusOutlineOffset};
772
+ }
773
+
774
+ .ft-button--large.ft-button--icon-only {
775
+ width: ${ot.largeIconOnlyWidth};
776
+ padding: unset;
777
+ }
778
+
779
+ /** Small styles **/
780
+
781
+ .ft-button--small {
782
+ ${o.setVariable(ko.size,ot.smallIconSize)};
783
+ ${o.setVariable(wo.size,ot.smallIconSize)};
784
+
785
+ height: ${ot.smallHeight};
786
+ padding: 0 ${ot.smallHorizontalPadding};
787
+ gap: ${ot.smallGap};
788
+ border-radius: ${ot.smallBorderRadius};
789
+ border-width: ${ot.smallBorderWidth};
790
+ }
791
+
792
+ .ft-button--small:focus-visible {
793
+ outline-width: ${ot.smallFocusOutlineWidth};
794
+ outline-offset: ${ot.smallFocusOutlineOffset};
795
+ }
796
+
797
+ .ft-button--small.ft-button--icon-only {
798
+ width: ${ot.smallIconOnlyWidth};
799
+ padding: unset;
800
+ }
801
+ `,o.noTextSelect];var ne=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class le extends ee{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Y.caption1medium:Y.body2medium}}le.styles=[o.safariEllipsisFix,ae],ne([i.property({type:Boolean})],le.prototype,"primary",void 0),ne([i.property({type:Boolean})],le.prototype,"secondary",void 0),ne([i.property({type:Boolean})],le.prototype,"tertiary",void 0),ne([i.property({type:Boolean})],le.prototype,"neutral",void 0),ne([i.property({type:Boolean})],le.prototype,"small",void 0),o.customElement("ft-button")(re),o.customElement("ftds-button")(le);const se=o.FtCssVariableFactory.extend("--ft-checkbox-text-color","",o.designSystemVariables.colorOnSurfaceHigh),ce=o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),pe=o.FtCssVariableFactory.external(o.designSystemVariables.colorOnPrimary,"Design system"),fe=o.FtCssVariableFactory.extend("--ft-checkbox-border-color","",o.designSystemVariables.colorOnSurfaceMedium),he=o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),de=e.css`
575
802
  * {
576
803
  box-sizing: border-box;
577
804
  }
578
805
 
579
806
  .ft-checkbox {
580
807
  box-sizing: border-box;
581
- color: ${qi};
808
+ color: ${se};
582
809
 
583
810
  display: inline-flex;
584
811
  align-items: center;
@@ -586,7 +813,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
586
813
  }
587
814
 
588
815
  .ft-checkbox--disabled {
589
- color: ${Qi};
816
+ color: ${he};
590
817
  }
591
818
 
592
819
  input {
@@ -610,26 +837,26 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
610
837
 
611
838
  .ft-checkbox--box {
612
839
  display: flex;
613
- border: 2px solid ${Ji};
840
+ border: 2px solid ${fe};
614
841
  border-radius: 2px;
615
842
 
616
843
  width: 18px;
617
844
  height: 18px;
618
845
 
619
- color: ${Yi};
846
+ color: ${pe};
620
847
  }
621
848
 
622
849
 
623
850
  .ft-checkbox--checked .ft-checkbox--box,
624
851
  .ft-checkbox--indeterminate .ft-checkbox--box {
625
- border-color: ${Xi};
626
- background-color: ${Xi};
852
+ border-color: ${ce};
853
+ background-color: ${ce};
627
854
  }
628
855
 
629
856
  .ft-checkbox--disabled .ft-checkbox--box {
630
- border-color: ${Qi};
857
+ border-color: ${he};
631
858
  background-color: transparent;
632
- color: ${Qi};
859
+ color: ${he};
633
860
  }
634
861
 
635
862
  .ft-checkbox--checkmark {
@@ -648,8 +875,8 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
648
875
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
649
876
  opacity: 1;
650
877
  }
651
- `;var ie=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ee extends i.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 e.html`
652
- <label class="${n.classMap(t)}" for="checkbox-input">
878
+ `;var ge=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ye extends o.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 e.html`
879
+ <label class="${a.classMap(t)}" for="checkbox-input">
653
880
  <div class="ft-checkbox--box-container">
654
881
  <ft-ripple
655
882
  ?disabled=${this.disabled}
@@ -674,14 +901,14 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
674
901
  <slot></slot>
675
902
  </ft-typography>
676
903
  </label>
677
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var i;super.contentAvailableCallback(t),null===(i=this.ripple)||void 0===i||i.setupFor(this.container)}}ee.elementDefinitions={"ft-ripple":gi,"ft-typography":li},ee.styles=te,ie([o.property()],ee.prototype,"name",void 0),ie([o.property({type:Boolean,reflect:!0})],ee.prototype,"checked",void 0),ie([o.property({type:Boolean})],ee.prototype,"indeterminate",void 0),ie([o.property({type:Boolean})],ee.prototype,"disabled",void 0),ie([o.query(".ft-checkbox")],ee.prototype,"container",void 0),ie([o.query("ft-ripple")],ee.prototype,"ripple",void 0),i.customElement("ft-checkbox")(ee);const oe=i.FtCssVariableFactory.extend("--ft-radio-text-color",i.designSystemVariables.colorOnSurfaceHigh),se=i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),ne=(i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),i.FtCssVariableFactory.extend("--ft-radio-border-color",i.designSystemVariables.colorOnSurfaceMedium)),re=i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),le=e.css`
904
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var o;super.contentAvailableCallback(t),null===(o=this.ripple)||void 0===o||o.setupFor(this.container)}}ye.elementDefinitions={"ft-ripple":Do,"ft-typography":yo},ye.styles=de,ge([i.property()],ye.prototype,"name",void 0),ge([i.property({type:Boolean,reflect:!0})],ye.prototype,"checked",void 0),ge([i.property({type:Boolean})],ye.prototype,"indeterminate",void 0),ge([i.property({type:Boolean})],ye.prototype,"disabled",void 0),ge([i.query(".ft-checkbox")],ye.prototype,"container",void 0),ge([i.query("ft-ripple")],ye.prototype,"ripple",void 0),o.customElement("ft-checkbox")(ye);const ue=o.FtCssVariableFactory.extend("--ft-radio-text-color","",o.designSystemVariables.colorOnSurfaceHigh),be=o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),me=(o.FtCssVariableFactory.external(o.designSystemVariables.colorOnPrimary,"Design system"),o.FtCssVariableFactory.extend("--ft-radio-border-color","",o.designSystemVariables.colorOnSurfaceMedium)),xe=o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),ve=e.css`
678
905
  * {
679
906
  box-sizing: border-box;
680
907
  }
681
908
 
682
909
  .ft-radio {
683
910
  box-sizing: border-box;
684
- color: ${oe};
911
+ color: ${ue};
685
912
 
686
913
  display: inline-flex;
687
914
  align-items: center;
@@ -689,7 +916,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
689
916
  }
690
917
 
691
918
  .ft-radio--disabled {
692
- color: ${re};
919
+ color: ${xe};
693
920
  }
694
921
 
695
922
  input {
@@ -712,7 +939,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
712
939
  }
713
940
 
714
941
  .ft-radio--box {
715
- border: 2px solid ${ne};
942
+ border: 2px solid ${me};
716
943
  border-radius: 50%;
717
944
 
718
945
  display: flex;
@@ -725,7 +952,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
725
952
 
726
953
  .ft-radio--box:after {
727
954
  content: " ";
728
- background-color: ${se};
955
+ background-color: ${be};
729
956
 
730
957
  border-radius: 50%;
731
958
 
@@ -737,7 +964,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
737
964
  }
738
965
 
739
966
  .ft-radio--checked .ft-radio--box {
740
- border-color: ${se};
967
+ border-color: ${be};
741
968
  }
742
969
 
743
970
 
@@ -746,15 +973,15 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
746
973
  }
747
974
 
748
975
  .ft-radio--disabled .ft-radio--box {
749
- border-color: ${re};
976
+ border-color: ${xe};
750
977
  background-color: transparent;
751
978
  }
752
979
 
753
980
  .ft-radio--disabled .ft-radio--box:after {
754
- background-color: ${re};
981
+ background-color: ${xe};
755
982
  }
756
- `;var ae=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class he extends CustomEvent{constructor(t,i){super("change",{detail:{value:t,checked:i},bubbles:!0,composed:!0})}}class pe extends i.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 e.html`
757
- <div class="${n.classMap(t)}">
983
+ `;var Oe=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ne extends CustomEvent{constructor(t,o){super("change",{detail:{value:t,checked:o},bubbles:!0,composed:!0})}}class $e extends o.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 e.html`
984
+ <div class="${a.classMap(t)}">
758
985
  <div class="ft-radio--box-container">
759
986
  <ft-ripple
760
987
  ?disabled=${this.disabled}
@@ -778,16 +1005,16 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
778
1005
  </ft-typography>
779
1006
  </label>
780
1007
  </div>
781
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new he(this.value,this.checked))}contentAvailableCallback(t){var i;super.contentAvailableCallback(t),null===(i=this.ripple)||void 0===i||i.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new he(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}pe.elementDefinitions={"ft-ripple":gi,"ft-typography":li},pe.styles=le,ae([o.property()],pe.prototype,"value",void 0),ae([o.property()],pe.prototype,"name",void 0),ae([o.property({type:Boolean,reflect:!0})],pe.prototype,"checked",void 0),ae([o.property({type:Boolean})],pe.prototype,"disabled",void 0),ae([o.query(".ft-radio")],pe.prototype,"container",void 0),ae([o.query("ft-ripple")],pe.prototype,"ripple",void 0),ae([o.query("input")],pe.prototype,"input",void 0);const fe=e.css`
1008
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Ne(this.value,this.checked))}contentAvailableCallback(t){var o;super.contentAvailableCallback(t),null===(o=this.ripple)||void 0===o||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Ne(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}$e.elementDefinitions={"ft-ripple":Do,"ft-typography":yo},$e.styles=ve,Oe([i.property()],$e.prototype,"value",void 0),Oe([i.property()],$e.prototype,"name",void 0),Oe([i.property({type:Boolean,reflect:!0})],$e.prototype,"checked",void 0),Oe([i.property({type:Boolean})],$e.prototype,"disabled",void 0),Oe([i.query(".ft-radio")],$e.prototype,"container",void 0),Oe([i.query("ft-ripple")],$e.prototype,"ripple",void 0),Oe([i.query("input")],$e.prototype,"input",void 0);const Se=e.css`
782
1009
  :host {
783
1010
  display: contents;
784
1011
  }
785
- `;var ce=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class de extends i.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return e.html`
1012
+ `;var we=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ce extends o.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return e.html`
786
1013
  <slot @slotchange=${this.onSlotChange}
787
1014
  @change=${this.onChange}
788
1015
  @keydown=${this.onKeyDown}
789
1016
  ></slot>
790
- `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((i=>i.checked=t.detail.value===i.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let i=this.findFtRadio(t),e=this.radioButtons.indexOf(i)-1;this.radioButtons[e<0?this.radioButtons.length-1:e].select();break}case"ArrowDown":case"ArrowRight":{let i=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}de.elementDefinitions={},de.styles=fe,ce([o.property()],de.prototype,"name",void 0),ce([o.queryAssignedElements()],de.prototype,"radioButtons",void 0),i.customElement("ft-radio")(pe),i.customElement("ft-radio-group")(de);const ue={borderRadiusM:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusM,"Design system"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:i.FtCssVariableFactory.external(jt.fontFamily,"Body2 typography"),fontSize:i.FtCssVariableFactory.external(jt.fontSize,"Body2 typography"),fontWeight:i.FtCssVariableFactory.external(jt.fontWeight,"Body2 typography"),letterSpacing:i.FtCssVariableFactory.external(jt.letterSpacing,"Body2 typography"),lineHeight:i.FtCssVariableFactory.external(jt.lineHeight,"Body2 typography"),textTransform:i.FtCssVariableFactory.external(jt.textTransform,"Body2 typography")},ve=e.css`
1017
+ `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((o=>o.checked=t.detail.value===o.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let o=this.findFtRadio(t),e=this.radioButtons.indexOf(o)-1;this.radioButtons[e<0?this.radioButtons.length-1:e].select();break}case"ArrowDown":case"ArrowRight":{let o=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[o>this.radioButtons.length-1?0:o].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)}}Ce.elementDefinitions={},Ce.styles=Se,we([i.property()],Ce.prototype,"name",void 0),we([i.queryAssignedElements()],Ce.prototype,"radioButtons",void 0),o.customElement("ft-radio")($e),o.customElement("ft-radio-group")(Ce);const ke={borderRadiusM:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusM,"Design system"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),colorOnSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:o.FtCssVariableFactory.external(Kt.fontFamily,"Body2 typography"),fontSize:o.FtCssVariableFactory.external(Kt.fontSize,"Body2 typography"),fontWeight:o.FtCssVariableFactory.external(Kt.fontWeight,"Body2 typography"),letterSpacing:o.FtCssVariableFactory.external(Kt.letterSpacing,"Body2 typography"),lineHeight:o.FtCssVariableFactory.external(Kt.lineHeight,"Body2 typography"),textTransform:o.FtCssVariableFactory.external(Kt.textTransform,"Body2 typography")},Ie=e.css`
791
1018
  .ft-filter-level--container {
792
1019
  display: flex;
793
1020
  flex-direction: column;
@@ -801,14 +1028,14 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
801
1028
  flex-shrink: 0;
802
1029
  text-decoration: none;
803
1030
  position: relative;
804
- border-radius: ${ue.borderRadiusM};
1031
+ border-radius: ${ke.borderRadiusM};
805
1032
  overflow: hidden;
806
1033
  display: flex;
807
1034
  align-items: center;
808
1035
  padding: 4px 4px;
809
1036
  gap: 4px;
810
1037
  cursor: pointer;
811
- color: ${ue.colorOnSurface};
1038
+ color: ${ke.colorOnSurface};
812
1039
  }
813
1040
 
814
1041
  .ft-filter-level--go-back:focus {
@@ -837,7 +1064,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
837
1064
  }
838
1065
 
839
1066
  ft-button {
840
- ${i.setVariable(_i.color,ue.colorOnSurface)};
1067
+ ${o.setVariable(Wo.color,ke.colorOnSurface)};
841
1068
  }
842
1069
 
843
1070
  ft-radio, ft-checkbox {
@@ -851,9 +1078,9 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
851
1078
 
852
1079
  .ft-filter-level--no-values {
853
1080
  margin: 10px 0;
854
- color: ${ue.colorOnSurfaceMedium};
1081
+ color: ${ke.colorOnSurfaceMedium};
855
1082
  }
856
- `;var xe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class be extends i.FtLitElement{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,i;return null!==(i=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==i?i:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const i=t.slice(0,this.limit);return e.html`
1083
+ `;var Re=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class We extends o.FtLitElement{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,o;return null!==(o=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==o?o: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 o=t.slice(0,this.limit);return e.html`
857
1084
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
858
1085
  ${null==this.parent?null:e.html`
859
1086
  <div tabindex="0"
@@ -872,10 +1099,10 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
872
1099
  ${this.noValuesLabel}
873
1100
  </ft-typography>
874
1101
  `:e.nothing}
875
- ${s.repeat(i,(t=>t.value),(t=>{var i;return e.html`
1102
+ ${r.repeat(o,(t=>t.value),(t=>{var o;return e.html`
876
1103
  <div class="ft-filter-level--option" part="options">
877
1104
  ${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
878
- ${this.preventNavigation||t.selected||0===(null!==(i=t.subOptions)&&void 0!==i?i:[]).length?e.nothing:e.html`
1105
+ ${this.preventNavigation||t.selected||0===(null!==(o=t.subOptions)&&void 0!==o?o:[]).length?e.nothing:e.html`
879
1106
  <ft-button icon="thin_arrow_right"
880
1107
  part="controls navigate-hierarchy"
881
1108
  label="${t.label}"
@@ -885,7 +1112,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
885
1112
  `}
886
1113
  </div>
887
1114
  `}))}
888
- ${i.length<t.length?e.html`
1115
+ ${o.length<t.length?e.html`
889
1116
  <ft-button
890
1117
  class="ft-filter-level--display-more"
891
1118
  icon="thin_arrow"
@@ -896,14 +1123,14 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
896
1123
  </ft-button>
897
1124
  `:e.nothing}
898
1125
  </div>
899
- `}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var o;return e.html`
1126
+ `}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var i;return e.html`
900
1127
  <ft-checkbox name="${this.filterId}"
901
1128
  part="multivalued-option"
902
1129
  data-value="${t.value}"
903
1130
  .checked=${t.selected}
904
1131
  .disabled=${this.disabled}
905
- .indeterminate=${i.flatDeep(null!==(o=t.subOptions)&&void 0!==o?o:[],(t=>{var i;return null!==(i=t.subOptions)&&void 0!==i?i:[]})).some((t=>t.selected))}
906
- @change=${i=>this.optionsChanged(i,t)}>
1132
+ .indeterminate=${o.flatDeep(null!==(i=t.subOptions)&&void 0!==i?i:[],(t=>{var o;return null!==(o=t.subOptions)&&void 0!==o?o:[]})).some((t=>t.selected))}
1133
+ @change=${o=>this.optionsChanged(o,t)}>
907
1134
  ${t.renderOption?t.renderOption:t.label}
908
1135
  </ft-checkbox>
909
1136
  `}buildMonoValuedOption(t){return e.html`
@@ -912,12 +1139,12 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
912
1139
  data-value="${t.value}"
913
1140
  .checked=${t.selected}
914
1141
  .disabled=${this.disabled}
915
- @click=${i=>this.optionsChanged(i,t)}
916
- @keyup=${i=>this.onRadioKeyUp(i,t)}
1142
+ @click=${o=>this.optionsChanged(o,t)}
1143
+ @keyup=${o=>this.onRadioKeyUp(o,t)}
917
1144
  @change=${t=>t.stopPropagation()}>
918
1145
  ${t.renderOption?t.renderOption:t.label}
919
1146
  </ft-radio>
920
- `}onRadioKeyUp(t,i){i.selected&&" "===t.key&&this.optionsChanged(t,i)}optionsChanged(t,i){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:i}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}be.elementDefinitions={"ft-button":Gi,"ft-ripple":gi,"ft-typography":li,"ft-checkbox":ee,"ft-icon":Fi,"ft-radio":pe},be.styles=ve,xe([o.property({type:String})],be.prototype,"filterId",void 0),xe([o.property({type:Object})],be.prototype,"parent",void 0),xe([o.property({type:Array})],be.prototype,"options",void 0),xe([o.property({type:Boolean})],be.prototype,"multivalued",void 0),xe([o.property({type:Boolean})],be.prototype,"disabled",void 0),xe([o.property({type:Boolean})],be.prototype,"hideSelectedOptions",void 0),xe([o.property({type:Boolean})],be.prototype,"preventNavigation",void 0),xe([o.property({type:String})],be.prototype,"filter",void 0),xe([o.property({type:String})],be.prototype,"moreValuesButtonLabel",void 0),xe([o.property({type:String})],be.prototype,"noValuesLabel",void 0),xe([o.property({type:Number})],be.prototype,"displayedValuesLimit",void 0),xe([o.query(".ft-filter-level--container")],be.prototype,"container",void 0),xe([o.state()],be.prototype,"displayedPages",void 0);const ge={buttonsColor:i.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",i.designSystemVariables.colorPrimary),buttonsZIndex:i.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:i.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system")},ye=e.css`
1147
+ `}onRadioKeyUp(t,o){o.selected&&" "===t.key&&this.optionsChanged(t,o)}optionsChanged(t,o){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}We.elementDefinitions={"ft-button":re,"ft-ripple":Do,"ft-typography":yo,"ft-checkbox":ye,"ft-icon":Qo,"ft-radio":$e},We.styles=Ie,Re([i.property({type:String})],We.prototype,"filterId",void 0),Re([i.property({type:Object})],We.prototype,"parent",void 0),Re([i.property({type:Array})],We.prototype,"options",void 0),Re([i.property({type:Boolean})],We.prototype,"multivalued",void 0),Re([i.property({type:Boolean})],We.prototype,"disabled",void 0),Re([i.property({type:Boolean})],We.prototype,"hideSelectedOptions",void 0),Re([i.property({type:Boolean})],We.prototype,"preventNavigation",void 0),Re([i.property({type:String})],We.prototype,"filter",void 0),Re([i.property({type:String})],We.prototype,"moreValuesButtonLabel",void 0),Re([i.property({type:String})],We.prototype,"noValuesLabel",void 0),Re([i.property({type:Number})],We.prototype,"displayedValuesLimit",void 0),Re([i.query(".ft-filter-level--container")],We.prototype,"container",void 0),Re([i.state()],We.prototype,"displayedPages",void 0);const Ue={buttonsColor:o.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",o.designSystemVariables.colorPrimary),buttonsZIndex:o.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:o.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system")},Ee=e.css`
921
1148
  .ft-snap-scroll {
922
1149
  box-sizing: border-box;
923
1150
  position: relative;
@@ -952,7 +1179,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
952
1179
  flex-wrap: nowrap;
953
1180
  align-items: flex-start;
954
1181
  justify-content: flex-start;
955
- gap: ${ge.gap};
1182
+ gap: ${Ue.gap};
956
1183
  }
957
1184
 
958
1185
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -995,11 +1222,11 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
995
1222
  .ft-snap-scroll--next {
996
1223
  position: absolute;
997
1224
  display: flex;
998
- z-index: ${ge.buttonsZIndex};
1225
+ z-index: ${Ue.buttonsZIndex};
999
1226
  opacity: 1;
1000
1227
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1001
- ${i.setVariable(_i.backgroundColor,"transparent")};
1002
- ${i.setVariable(_i.color,ge.buttonsColor)};
1228
+ ${o.setVariable(Wo.backgroundColor,"transparent")};
1229
+ ${o.setVariable(Wo.color,Ue.buttonsColor)};
1003
1230
  }
1004
1231
 
1005
1232
  .ft-snap-scroll--previous[hidden],
@@ -1012,45 +1239,45 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1012
1239
  top: 0;
1013
1240
  left: -1px;
1014
1241
  bottom: 0;
1015
- background: linear-gradient(to right, ${ge.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1242
+ background: linear-gradient(to right, ${Ue.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1016
1243
  }
1017
1244
 
1018
1245
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1019
1246
  top: -1px;
1020
1247
  left: 0;
1021
1248
  right: 0;
1022
- background: linear-gradient(to bottom, ${ge.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1249
+ background: linear-gradient(to bottom, ${Ue.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1023
1250
  }
1024
1251
 
1025
1252
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1026
1253
  top: 0;
1027
1254
  right: -1px;
1028
1255
  bottom: 0;
1029
- background: linear-gradient(to left, ${ge.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1256
+ background: linear-gradient(to left, ${Ue.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1030
1257
  }
1031
1258
 
1032
1259
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1033
1260
  left: 0;
1034
1261
  right: 0;
1035
1262
  bottom: -1px;
1036
- background: linear-gradient(to top, ${ge.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1263
+ background: linear-gradient(to top, ${Ue.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1037
1264
  }
1038
1265
 
1039
1266
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1040
1267
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1041
1268
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1042
1269
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1043
- background-color: ${ge.colorSurface};
1270
+ background-color: ${Ue.colorSurface};
1044
1271
  }
1045
- `;var me=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class $e extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class ke extends i.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 i.Debouncer(200),this.updateScrollDebouncer=new i.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=n.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":i.isSafari}),o=this.controls&&this.withScroll;return e.html`
1272
+ `;var Le=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ze extends CustomEvent{constructor(t,o){super("current-element-change",{detail:{index:t,element:o}})}}class Ke extends o.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 o.Debouncer(200),this.updateScrollDebouncer=new o.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let o=this.elements[t];if(o){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(o[this.offsetAttribute]<e||o[this.offsetAttribute]+o[this.sizeAttribute]>t)&&this.scrollToElement(o)}}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=a.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":o.isSafari}),i=this.controls&&this.withScroll;return e.html`
1046
1273
  <div part="container" class="${t}">
1047
1274
  <ft-button
1048
1275
  class="ft-snap-scroll--previous"
1049
1276
  part="controls"
1050
1277
  primary
1051
1278
  icon="${this.horizontal?"THIN_ARROW_LEFT":"THIN_ARROW_UP"}"
1052
- ?hidden=${!o||this.startReached}
1053
- ?disabled=${!o||this.startReached}
1279
+ ?hidden=${!i||this.startReached}
1280
+ ?disabled=${!i||this.startReached}
1054
1281
  @click=${this.previous}
1055
1282
  ></ft-button>
1056
1283
  <slot class="ft-snap-scroll--content"
@@ -1061,12 +1288,12 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1061
1288
  part="controls"
1062
1289
  primary
1063
1290
  icon="${this.horizontal?"THIN_ARROW_RIGHT":"THIN_ARROW"}"
1064
- ?hidden=${!o||this.endReached}
1065
- ?disabled=${!o||this.endReached}
1291
+ ?hidden=${!i||this.endReached}
1292
+ ?disabled=${!i||this.endReached}
1066
1293
  @click=${this.next}
1067
1294
  ></ft-button>
1068
1295
  </div>
1069
- `}update(t){super.update(t),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 $e(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var i;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}ke.elementDefinitions={"ft-button":Gi},ke.styles=ye,me([o.property({type:Boolean})],ke.prototype,"horizontal",void 0),me([o.property({type:Boolean})],ke.prototype,"hideScrollbar",void 0),me([o.property({type:Boolean})],ke.prototype,"controls",void 0),me([o.property({type:Boolean})],ke.prototype,"limitSize",void 0),me([o.state()],ke.prototype,"elements",void 0),me([o.state()],ke.prototype,"currentElement",void 0),me([o.state()],ke.prototype,"withScroll",void 0),me([o.state()],ke.prototype,"startReached",void 0),me([o.state()],ke.prototype,"endReached",void 0),me([o.query(".ft-snap-scroll--content")],ke.prototype,"contentSlot",void 0),i.customElement("ft-snap-scroll")(ke);const we={colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),transitionDuration:i.FtCssVariableFactory.external(i.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:i.FtCssVariableFactory.external(i.designSystemVariables.transitionTimingFunction,"Design system")},ze=[ii,e.css`
1296
+ `}update(t){super.update(t),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 ze(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var o;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(o=this.listenedContainer)||void 0===o||o.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const o=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<o&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var o,e;t&&(this.horizontal?null===(o=this.contentSlot)||void 0===o||o.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,o;this.elements=null!==(o=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==o?o:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let o=0;o<this.elements.length;o++)(t<0||this.getDistanceFromStart(this.elements[o])<this.getDistanceFromStart(this.elements[t]))&&(t=o);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 o=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-o)}}Ke.elementDefinitions={"ft-button":re},Ke.styles=Ee,Le([i.property({type:Boolean})],Ke.prototype,"horizontal",void 0),Le([i.property({type:Boolean})],Ke.prototype,"hideScrollbar",void 0),Le([i.property({type:Boolean})],Ke.prototype,"controls",void 0),Le([i.property({type:Boolean})],Ke.prototype,"limitSize",void 0),Le([i.state()],Ke.prototype,"elements",void 0),Le([i.state()],Ke.prototype,"currentElement",void 0),Le([i.state()],Ke.prototype,"withScroll",void 0),Le([i.state()],Ke.prototype,"startReached",void 0),Le([i.state()],Ke.prototype,"endReached",void 0),Le([i.query(".ft-snap-scroll--content")],Ke.prototype,"contentSlot",void 0),o.customElement("ft-snap-scroll")(Ke);const Ze={colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),colorOnSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),transitionDuration:o.FtCssVariableFactory.external(o.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:o.FtCssVariableFactory.external(o.designSystemVariables.transitionTimingFunction,"Design system")},Be=[lo,e.css`
1070
1297
  :host {
1071
1298
  display: flex;
1072
1299
  max-height: 100%;
@@ -1079,7 +1306,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1079
1306
  flex-direction: column;
1080
1307
  max-height: 100%;
1081
1308
  max-width: 100%;
1082
- color: ${we.colorOnSurface};
1309
+ color: ${Ze.colorOnSurface};
1083
1310
  }
1084
1311
 
1085
1312
  .ft-filter--header {
@@ -1089,13 +1316,13 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1089
1316
  flex-shrink: 0;
1090
1317
  padding: 0 10px;
1091
1318
  margin-bottom: 8px;
1092
- ${i.setVariable(J.fontSize,"14px")};
1319
+ ${o.setVariable(rt.fontSize,"14px")};
1093
1320
  }
1094
1321
 
1095
1322
  .ft-filter--header ft-button {
1096
1323
  flex-shrink: 0;
1097
1324
  margin-left: auto;
1098
- ${i.setVariable(_i.iconSize,"18px")};
1325
+ ${o.setVariable(Wo.iconSize,"18px")};
1099
1326
  }
1100
1327
 
1101
1328
  .ft-filter--label {
@@ -1103,8 +1330,8 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1103
1330
  flex-shrink: 1;
1104
1331
  flex-grow: 1;
1105
1332
  word-break: break-word;
1106
- ${i.setVariable(J.lineHeight,"22px")};
1107
- ${i.setVariable(J.fontWeight,"bold")};
1333
+ ${o.setVariable(rt.lineHeight,"22px")};
1334
+ ${o.setVariable(rt.fontWeight,"bold")};
1108
1335
  }
1109
1336
 
1110
1337
  .ft-filter--filter {
@@ -1115,8 +1342,8 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1115
1342
  padding: 0 10px;
1116
1343
  overflow: hidden;
1117
1344
  height: 32px;
1118
- transition: height ${we.transitionDuration} ${we.transitionTimingFunction},
1119
- margin ${we.transitionDuration} ${we.transitionTimingFunction};
1345
+ transition: height ${Ze.transitionDuration} ${Ze.transitionTimingFunction},
1346
+ margin ${Ze.transitionDuration} ${Ze.transitionTimingFunction};
1120
1347
  transition-delay: 500ms;
1121
1348
  }
1122
1349
 
@@ -1129,15 +1356,15 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1129
1356
  display: block;
1130
1357
  width: 100%;
1131
1358
  border-radius: 4px;
1132
- border: 1px solid ${we.colorOutline};
1359
+ border: 1px solid ${Ze.colorOutline};
1133
1360
  padding: 4px;
1134
- background-color: ${we.colorSurface};
1135
- color: ${we.colorOnSurface};
1136
- outline-color: ${we.colorPrimary};
1361
+ background-color: ${Ze.colorSurface};
1362
+ color: ${Ze.colorOnSurface};
1363
+ outline-color: ${Ze.colorPrimary};
1137
1364
  }
1138
1365
 
1139
1366
  input::placeholder {
1140
- color: ${we.colorOnSurfaceMedium};
1367
+ color: ${Ze.colorOnSurfaceMedium};
1141
1368
  }
1142
1369
 
1143
1370
  input:placeholder-shown {
@@ -1153,7 +1380,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1153
1380
  }
1154
1381
 
1155
1382
  .ft-filter--separator {
1156
- border-top: 1px solid ${we.colorOutline};
1383
+ border-top: 1px solid ${Ze.colorOutline};
1157
1384
  margin: 4px 10px;
1158
1385
  }
1159
1386
 
@@ -1178,7 +1405,7 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1178
1405
  slot:not([name]) {
1179
1406
  display: none;
1180
1407
  }
1181
- `];var Se=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Oe extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ce extends i.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new i.Debouncer(300),this.changeDebouncer=new i.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return i.flatDeep(this.options,(t=>{var i;return null!==(i=t.subOptions)&&void 0!==i?i:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),i=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return e.html`
1408
+ `];var Fe=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class De extends CustomEvent{constructor(t){super("change",{detail:t})}}class He extends o.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new o.Debouncer(300),this.changeDebouncer=new o.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return o.flatDeep(this.options,(t=>{var o;return null!==(o=t.subOptions)&&void 0!==o?o:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),o=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return e.html`
1182
1409
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1183
1410
  part="container">
1184
1411
  ${this.label||t?e.html`
@@ -1194,13 +1421,13 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1194
1421
  `:null}
1195
1422
  </div>
1196
1423
  `:null}
1197
- <div class="ft-filter--filter" ?hidden=${!i}>
1424
+ <div class="ft-filter--filter" ?hidden=${!o}>
1198
1425
  <input type="search"
1199
1426
  part="input"
1200
1427
  class="ft-typography--caption"
1201
- ?disabled=${!i}
1202
- placeholder="${o}"
1203
- size="${i?o.length:0}"
1428
+ ?disabled=${!o}
1429
+ placeholder="${i}"
1430
+ size="${o?i.length:0}"
1204
1431
  @search=${this.onFilterChange}
1205
1432
  @keyup=${this.onFilterChange}>
1206
1433
  </div>
@@ -1211,14 +1438,14 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1211
1438
  @slotchange=${this.updateOptionsFromSlot}
1212
1439
  @option-change=${this.optionsChanged}></slot>
1213
1440
  </div>
1214
- `}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((i=>t.has(i))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var i,e,o,s,n;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(i=this.levelsContainer)||void 0===i||i.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(e=this.levelsContainer)||void 0===e||e.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(n=null===(s=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===s?void 0:s.hasHiddenValues)&&void 0!==n&&n}renderLevels(){const t=this.flatOptions,i=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=o<0?"ft-filter--level-center":"ft-filter--level-left";return e.html`
1215
- ${this.raiseSelectedOptions&&i.length>0?e.html`
1441
+ `}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((o=>t.has(o))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var o,e,i,r,a;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(o=this.levelsContainer)||void 0===o||o.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(e=this.levelsContainer)||void 0===e||e.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(a=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===r?void 0:r.hasHiddenValues)&&void 0!==a&&a}renderLevels(){const t=this.flatOptions,o=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,r=i<0?"ft-filter--level-center":"ft-filter--level-left";return e.html`
1442
+ ${this.raiseSelectedOptions&&o.length>0?e.html`
1216
1443
  <ft-filter-level
1217
1444
  filterId="${this.id}"
1218
1445
  ?multivalued=${this.multivalued}
1219
1446
  ?disabled=${this.disabled}
1220
1447
  preventNavigation
1221
- .options=${i}
1448
+ .options=${o}
1222
1449
  @change=${this.onChange}
1223
1450
  part="values selected-values"
1224
1451
  .exportpartsPrefixes=${["values","selected-values"]}
@@ -1228,10 +1455,10 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1228
1455
  <ft-snap-scroll horizontal hideScrollbar
1229
1456
  class="ft-filter--levels"
1230
1457
  @current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
1231
- ${this.renderLevel(s,this.options)}
1232
- ${this.displayedLevels.map((i=>t.find((t=>t.value===i)))).map(((t,i)=>{var e;const s=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":i===o?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(s,null!==(e=null==t?void 0:t.subOptions)&&void 0!==e?e:[],t)}))}
1458
+ ${this.renderLevel(r,this.options)}
1459
+ ${this.displayedLevels.map((o=>t.find((t=>t.value===o)))).map(((t,o)=>{var e;const r=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(r,null!==(e=null==t?void 0:t.subOptions)&&void 0!==e?e:[],t)}))}
1233
1460
  </ft-snap-scroll>
1234
- `}renderLevel(t,i,o){return e.html`
1461
+ `}renderLevel(t,o,i){return e.html`
1235
1462
  <ft-filter-level
1236
1463
  class="${t}"
1237
1464
  filterId="${this.id}"
@@ -1240,8 +1467,8 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1240
1467
  ?multivalued=${this.multivalued}
1241
1468
  ?disabled=${this.disabled||"ft-filter--level-center"!==t}
1242
1469
  ?hideSelectedOptions=${this.raiseSelectedOptions}
1243
- .parent=${o}
1244
- .options=${i}
1470
+ .parent=${i}
1471
+ .options=${o}
1245
1472
  .displayedValuesLimit=${this.displayedValuesLimit}
1246
1473
  @change=${this.onChange}
1247
1474
  @go-back=${this.goBack}
@@ -1250,6 +1477,6 @@ const W=Symbol.for(""),Z=t=>{if((null==t?void 0:t.r)===W)return null==t?void 0:t
1250
1477
  .exportpartsPrefixes=${["values","available-values"]}
1251
1478
  noValuesLabel="${this.noValuesLabel}"
1252
1479
  ></ft-filter-level>
1253
- `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var i;t.stopPropagation();const e=this.flatOptions.find((i=>i.value===t.detail.value));e.selected=!e.selected;const o=t=>{var i;t!==e&&(t.selected=!1),null===(i=t.subOptions)||void 0===i||i.forEach(o)};this.multivalued?null===(i=e.subOptions)||void 0===i||i.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;i.deepEqual(this.lastDispatchedValues,t)||(this.dispatchEvent(new Oe(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,i;this.filter=null!==(i=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==i?i:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Ce.elementDefinitions={"ft-button":Gi,"ft-filter-level":be,"ft-snap-scroll":ke,"ft-typography":li},Ce.styles=ze,Se([o.property({type:String})],Ce.prototype,"id",void 0),Se([o.property({type:String})],Ce.prototype,"label",void 0),Se([o.property({type:String})],Ce.prototype,"filterPlaceHolder",void 0),Se([o.property({type:String})],Ce.prototype,"clearButtonLabel",void 0),Se([o.property({type:String})],Ce.prototype,"moreValuesButtonLabel",void 0),Se([o.property({type:String})],Ce.prototype,"noValuesLabel",void 0),Se([i.jsonProperty([])],Ce.prototype,"options",void 0),Se([o.property({type:Boolean})],Ce.prototype,"multivalued",void 0),Se([o.property({type:Boolean})],Ce.prototype,"disabled",void 0),Se([o.property({type:Boolean})],Ce.prototype,"raiseSelectedOptions",void 0),Se([o.property({type:Number})],Ce.prototype,"displayedValuesLimit",void 0),Se([o.property({type:Boolean})],Ce.prototype,"hideClearButton",void 0),Se([o.query(".ft-filter--slot")],Ce.prototype,"slotElement",void 0),Se([o.query(".ft-filter--container")],Ce.prototype,"container",void 0),Se([o.query(".ft-filter--values")],Ce.prototype,"valuesContainer",void 0),Se([o.query(".ft-filter--levels")],Ce.prototype,"levelsContainer",void 0),Se([o.state()],Ce.prototype,"lastLevelHasHiddenvalues",void 0),Se([o.query(".ft-filter--filter input")],Ce.prototype,"filterInput",void 0),Se([o.queryAll(".ft-filter--levels ft-filter-level")],Ce.prototype,"levels",void 0),Se([o.state()],Ce.prototype,"withScroll",void 0),Se([o.state()],Ce.prototype,"filter",void 0),Se([o.state()],Ce.prototype,"slideIn",void 0),Se([o.state()],Ce.prototype,"slideOut",void 0);var Be=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class je extends i.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return e.html`
1480
+ `}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 o;t.stopPropagation();const e=this.flatOptions.find((o=>o.value===t.detail.value));e.selected=!e.selected;const i=t=>{var o;t!==e&&(t.selected=!1),null===(o=t.subOptions)||void 0===o||o.forEach(i)};this.multivalued?null===(o=e.subOptions)||void 0===o||o.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;o.deepEqual(this.lastDispatchedValues,t)||(this.dispatchEvent(new De(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,o;this.filter=null!==(o=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==o?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}He.elementDefinitions={"ft-button":re,"ft-filter-level":We,"ft-snap-scroll":Ke,"ft-typography":yo},He.styles=Be,Fe([i.property({type:String})],He.prototype,"id",void 0),Fe([i.property({type:String})],He.prototype,"label",void 0),Fe([i.property({type:String})],He.prototype,"filterPlaceHolder",void 0),Fe([i.property({type:String})],He.prototype,"clearButtonLabel",void 0),Fe([i.property({type:String})],He.prototype,"moreValuesButtonLabel",void 0),Fe([i.property({type:String})],He.prototype,"noValuesLabel",void 0),Fe([o.jsonProperty([])],He.prototype,"options",void 0),Fe([i.property({type:Boolean})],He.prototype,"multivalued",void 0),Fe([i.property({type:Boolean})],He.prototype,"disabled",void 0),Fe([i.property({type:Boolean})],He.prototype,"raiseSelectedOptions",void 0),Fe([i.property({type:Number})],He.prototype,"displayedValuesLimit",void 0),Fe([i.property({type:Boolean})],He.prototype,"hideClearButton",void 0),Fe([i.query(".ft-filter--slot")],He.prototype,"slotElement",void 0),Fe([i.query(".ft-filter--container")],He.prototype,"container",void 0),Fe([i.query(".ft-filter--values")],He.prototype,"valuesContainer",void 0),Fe([i.query(".ft-filter--levels")],He.prototype,"levelsContainer",void 0),Fe([i.state()],He.prototype,"lastLevelHasHiddenvalues",void 0),Fe([i.query(".ft-filter--filter input")],He.prototype,"filterInput",void 0),Fe([i.queryAll(".ft-filter--levels ft-filter-level")],He.prototype,"levels",void 0),Fe([i.state()],He.prototype,"withScroll",void 0),Fe([i.state()],He.prototype,"filter",void 0),Fe([i.state()],He.prototype,"slideIn",void 0),Fe([i.state()],He.prototype,"slideOut",void 0);var Ae=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class je extends o.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return e.html`
1254
1481
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1255
- `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}je.elementDefinitions={},Be([o.property({type:String})],je.prototype,"label",void 0),Be([o.property({type:Object,converter:t=>t})],je.prototype,"value",void 0),Be([o.property({type:Boolean,reflect:!0})],je.prototype,"selected",void 0),Be([o.property({type:Object})],je.prototype,"subOptions",void 0),Be([i.jsonProperty({})],je.prototype,"renderOption",void 0),Be([o.query(".ft-filter-option--slot")],je.prototype,"slotElement",void 0),i.customElement("ft-filter")(Ce),i.customElement("ft-filter-option")(je),t.FtFilter=Ce,t.FtFilterChangeEvent=Oe,t.FtFilterCssVariables=we,t.FtFilterLevelCssVariables=ue,t.FtFilterOption=je,t.levelStyles=ve,t.styles=ze}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
1482
+ `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}je.elementDefinitions={},Ae([i.property({type:String})],je.prototype,"label",void 0),Ae([i.property({type:Object,converter:t=>t})],je.prototype,"value",void 0),Ae([i.property({type:Boolean,reflect:!0})],je.prototype,"selected",void 0),Ae([i.property({type:Object})],je.prototype,"subOptions",void 0),Ae([o.jsonProperty({})],je.prototype,"renderOption",void 0),Ae([i.query(".ft-filter-option--slot")],je.prototype,"slotElement",void 0),o.customElement("ft-filter")(He),o.customElement("ft-filter-option")(je),t.FtFilter=He,t.FtFilterChangeEvent=De,t.FtFilterCssVariables=Ze,t.FtFilterLevelCssVariables=ke,t.FtFilterOption=je,t.levelStyles=Ie,t.styles=Be}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);