@fluid-topics/ft-filterable-table 0.2.22 → 0.3.2

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.
@@ -4,13 +4,13 @@
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- var r;const a=globalThis.trustedTypes,p=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,d="?"+f,h=`<${d}>`,c=document,u=(t="")=>c.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,y=/>/g,m=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,$=/'/g,w=/"/g,k=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),S=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),C=new WeakMap,E=c.createTreeWalker(c,129,null,!1),D=(t,e)=>{const i=t.length-1,o=[];let n,l=2===e?"<svg>":"",s=v;for(let e=0;e<i;e++){const i=t[e];let r,a,p=-1,d=0;for(;d<i.length&&(s.lastIndex=d,a=s.exec(i),null!==a);)d=s.lastIndex,s===v?"!--"===a[1]?s=g:void 0!==a[1]?s=y:void 0!==a[2]?(k.test(a[2])&&(n=RegExp("</"+a[2],"g")),s=m):void 0!==a[3]&&(s=m):s===m?">"===a[0]?(s=null!=n?n:v,p=-1):void 0===a[1]?p=-2:(p=s.lastIndex-a[2].length,r=a[1],s=void 0===a[3]?m:'"'===a[3]?w:$):s===w||s===$?s=m:s===g||s===y?s=v:(s=m,n=void 0);const c=s===m&&t[e+1].startsWith("/>")?" ":"";l+=s===v?i+h:p>=0?(o.push(r),i.slice(0,p)+"$lit$"+i.slice(p)+f+c):i+f+(-2===p?(o.push(void 0),e):c)}const r=l+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==p?p.createHTML(r):r,o]};class B{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,l=0;const s=t.length-1,r=this.parts,[p,h]=D(t,e);if(this.el=B.createElement(p,i),E.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=E.nextNode())&&r.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(f)){const i=h[l++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(f),e=/([.?@])?(.*)/.exec(i);r.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?A:"?"===e[1]?T:"@"===e[1]?Z:N})}else r.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(k.test(o.tagName)){const t=o.textContent.split(f),e=t.length-1;if(e>0){o.textContent=a?a.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],u()),E.nextNode(),r.push({type:2,index:++n});o.append(t[e],u())}}}else if(8===o.nodeType)if(o.data===d)r.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)r.push({type:7,index:n}),t+=f.length-1}n++}}static createElement(t,e){const i=c.createElement("template");return i.innerHTML=t,i}}function F(t,e,i=t,o){var n,l,s,r;if(e===S)return e;let a=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=x(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(l=null==a?void 0:a._$AO)||void 0===l||l.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(s=(r=i)._$Cl)&&void 0!==s?s:r._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=F(t,a._$AS(t,e.values),a,o)),e}class I{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:c).importNode(i,!0);E.currentNode=n;let l=E.nextNode(),s=0,r=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new j(l,l.nextSibling,this,t):1===a.type?e=new a.ctor(l,a.name,a.strings,this,t):6===a.type&&(e=new R(l,this,t)),this.v.push(e),a=o[++r]}s!==(null==a?void 0:a.index)&&(l=E.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class j{constructor(t,e,i,o){var n;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=F(this,t,e),x(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==S&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return b(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==O&&x(this._$AH)?this._$AA.nextSibling.data=t:this.k(c.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=B.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new I(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=C.get(t.strings);return void 0===e&&C.set(t.strings,e=new B(t)),e}S(t){b(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new j(this.M(u()),this.M(u()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class N{constructor(t,e,i,o,n){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let l=!1;if(void 0===n)t=F(this,t,e,0),l=!x(t)||t!==this._$AH&&t!==S,l&&(this._$AH=t);else{const o=t;let s,r;for(t=n[0],s=0;s<n.length-1;s++)r=F(this,o[i+s],e,s),r===S&&(r=this._$AH[s]),l||(l=!x(r)||r!==this._$AH[s]),r===O?t=O:t!==O&&(t+=(null!=r?r:"")+n[s+1]),this._$AH[s]=r}l&&!o&&this.C(t)}C(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class A extends N{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===O?void 0:t}}const M=a?a.emptyScript:"";class T extends N{constructor(){super(...arguments),this.type=4}C(t){t&&t!==O?this.element.setAttribute(this.name,M):this.element.removeAttribute(this.name)}}class Z extends N{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=F(this,t,e,0))&&void 0!==i?i:O)===S)return;const o=this._$AH,n=t===O&&o!==O||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,l=t!==O&&(o===O||n);n&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class R{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const _=window.litHtmlPolyfillSupport;null==_||_(B,j),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.2.4");
7
+ var r;const a=globalThis.trustedTypes,p=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,d="?"+f,h=`<${d}>`,c=document,u=(t="")=>c.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,y=/>/g,m=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),$=/'/g,w=/"/g,k=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),S=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),C=new WeakMap,E=c.createTreeWalker(c,129,null,!1),D=(t,e)=>{const i=t.length-1,o=[];let n,l=2===e?"<svg>":"",s=g;for(let e=0;e<i;e++){const i=t[e];let r,a,p=-1,d=0;for(;d<i.length&&(s.lastIndex=d,a=s.exec(i),null!==a);)d=s.lastIndex,s===g?"!--"===a[1]?s=v:void 0!==a[1]?s=y:void 0!==a[2]?(k.test(a[2])&&(n=RegExp("</"+a[2],"g")),s=m):void 0!==a[3]&&(s=m):s===m?">"===a[0]?(s=null!=n?n:g,p=-1):void 0===a[1]?p=-2:(p=s.lastIndex-a[2].length,r=a[1],s=void 0===a[3]?m:'"'===a[3]?w:$):s===w||s===$?s=m:s===v||s===y?s=g:(s=m,n=void 0);const c=s===m&&t[e+1].startsWith("/>")?" ":"";l+=s===g?i+h:p>=0?(o.push(r),i.slice(0,p)+"$lit$"+i.slice(p)+f+c):i+f+(-2===p?(o.push(void 0),e):c)}const r=l+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==p?p.createHTML(r):r,o]};class B{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,l=0;const s=t.length-1,r=this.parts,[p,h]=D(t,e);if(this.el=B.createElement(p,i),E.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=E.nextNode())&&r.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(f)){const i=h[l++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(f),e=/([.?@])?(.*)/.exec(i);r.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?A:"?"===e[1]?M:"@"===e[1]?R:N})}else r.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(k.test(o.tagName)){const t=o.textContent.split(f),e=t.length-1;if(e>0){o.textContent=a?a.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],u()),E.nextNode(),r.push({type:2,index:++n});o.append(t[e],u())}}}else if(8===o.nodeType)if(o.data===d)r.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)r.push({type:7,index:n}),t+=f.length-1}n++}}static createElement(t,e){const i=c.createElement("template");return i.innerHTML=t,i}}function F(t,e,i=t,o){var n,l,s,r;if(e===S)return e;let a=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=x(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(l=null==a?void 0:a._$AO)||void 0===l||l.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(s=(r=i)._$Cl)&&void 0!==s?s:r._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=F(t,a._$AS(t,e.values),a,o)),e}class j{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:c).importNode(i,!0);E.currentNode=n;let l=E.nextNode(),s=0,r=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new I(l,l.nextSibling,this,t):1===a.type?e=new a.ctor(l,a.name,a.strings,this,t):6===a.type&&(e=new Z(l,this,t)),this.v.push(e),a=o[++r]}s!==(null==a?void 0:a.index)&&(l=E.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class I{constructor(t,e,i,o){var n;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=F(this,t,e),x(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==S&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>b(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==O&&x(this._$AH)?this._$AA.nextSibling.data=t:this.k(c.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=B.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new j(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=C.get(t.strings);return void 0===e&&C.set(t.strings,e=new B(t)),e}S(t){b(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new I(this.j(u()),this.j(u()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class N{constructor(t,e,i,o,n){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let l=!1;if(void 0===n)t=F(this,t,e,0),l=!x(t)||t!==this._$AH&&t!==S,l&&(this._$AH=t);else{const o=t;let s,r;for(t=n[0],s=0;s<n.length-1;s++)r=F(this,o[i+s],e,s),r===S&&(r=this._$AH[s]),l||(l=!x(r)||r!==this._$AH[s]),r===O?t=O:t!==O&&(t+=(null!=r?r:"")+n[s+1]),this._$AH[s]=r}l&&!o&&this.P(t)}P(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class A extends N{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===O?void 0:t}}const T=a?a.emptyScript:"";class M extends N{constructor(){super(...arguments),this.type=4}P(t){t&&t!==O?this.element.setAttribute(this.name,T):this.element.removeAttribute(this.name)}}class R extends N{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=F(this,t,e,0))&&void 0!==i?i:O)===S)return;const o=this._$AH,n=t===O&&o!==O||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,l=t!==O&&(o===O||n);n&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const _=window.litHtmlPolyfillSupport;null==_||_(B,I),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.2.7");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===U)return null===(i=t)||void 0===i?void 0:i._$litStatic$},W=t=>({_$litStatic$:t,r:U}),L=new Map,K=(t=>(e,...i)=>{const o=i.length;let n,l;const s=[],r=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(l=i[p],n=H(l));)a+=n+e[++p],f=!0;r.push(l),s.push(a),p++}if(p===o&&s.push(e[o]),f){const t=s.join("$$lit$$");void 0===(e=L.get(t))&&(s.raw=s,L.set(t,e=s)),i=r}return t(e,...i)})(z);var P,G=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};!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"}(P||(P={}));const V=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),q=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),X={fontFamily:q,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},Y=e.FtCssVariable.extend("--ft-typography-title-font-family",V),J=e.FtCssVariable.extend("--ft-typography-title-font-size",X.fontSize,"20px"),Q=e.FtCssVariable.extend("--ft-typography-title-font-weight",X.fontWeight,"normal"),tt=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",X.letterSpacing,"0.15px"),et=e.FtCssVariable.extend("--ft-typography-title-line-height",X.lineHeight,"1.2"),it=e.FtCssVariable.extend("--ft-typography-title-text-transform",X.textTransform,"inherit"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",V),nt=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",X.fontSize,"14px"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",X.fontWeight,"normal"),st=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",X.letterSpacing,"0.105px"),rt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",X.lineHeight,"1.7"),at=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",X.textTransform,"inherit"),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",q),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",X.fontSize,"16px"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",X.fontWeight,"600"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",X.letterSpacing,"0.144px"),ct=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",X.lineHeight,"1.5"),ut=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",X.textTransform,"inherit"),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",q),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",X.fontSize,"14px"),vt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",X.fontWeight,"normal"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",X.letterSpacing,"0.098px"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",X.lineHeight,"1.7"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",X.textTransform,"inherit"),$t={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",q),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",X.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",X.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",X.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",X.lineHeight,"1.5"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",X.textTransform,"inherit")},wt=e.FtCssVariable.extend("--ft-typography-body2-font-family",q),kt=e.FtCssVariable.extend("--ft-typography-body2-font-size",X.fontSize,"14px"),zt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",X.fontWeight,"normal"),St=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",X.letterSpacing,"0.252px"),Ot=e.FtCssVariable.extend("--ft-typography-body2-line-height",X.lineHeight,"1.4"),Ct=e.FtCssVariable.extend("--ft-typography-body2-text-transform",X.textTransform,"inherit"),Et={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",q),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",X.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",X.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",X.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",X.lineHeight,"1.33"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",X.textTransform,"inherit")},Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",q),Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",X.fontSize,"10px"),Ft=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",X.fontWeight,"normal"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",X.letterSpacing,"0.33px"),jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",X.lineHeight,"1.6"),Nt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",X.textTransform,"inherit"),At=e.FtCssVariable.extend("--ft-typography-overline-font-family",q),Mt=e.FtCssVariable.extend("--ft-typography-overline-font-size",X.fontSize,"10px"),Tt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",X.fontWeight,"normal"),Zt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",X.letterSpacing,"1.5px"),Rt=e.FtCssVariable.extend("--ft-typography-overline-line-height",X.lineHeight,"1.6"),_t=e.FtCssVariable.extend("--ft-typography-overline-text-transform",X.textTransform,"uppercase"),Ut={fontFamily:e.FtCssVariable.extend("--ft-typography-button-font-family",q),fontSize:e.FtCssVariable.extend("--ft-typography-button-font-size",X.fontSize,"14px"),fontWeight:e.FtCssVariable.extend("--ft-typography-button-font-weight",X.fontWeight,"600"),letterSpacing:e.FtCssVariable.extend("--ft-typography-button-letter-spacing",X.letterSpacing,"1.246px"),lineHeight:e.FtCssVariable.extend("--ft-typography-button-line-height",X.lineHeight,"1.15"),textTransform:e.FtCssVariable.extend("--ft-typography-button-text-transform",X.textTransform,"uppercase")},Ht=i.css`
13
+ const U=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t._$litStatic$},P=t=>({_$litStatic$:t,r:U}),W=new Map,L=(t=>(e,...i)=>{const o=i.length;let n,l;const s=[],r=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(l=i[p],n=H(l));)a+=n+e[++p],f=!0;r.push(l),s.push(a),p++}if(p===o&&s.push(e[o]),f){const t=s.join("$$lit$$");void 0===(e=W.get(t))&&(s.raw=s,W.set(t,e=s)),i=r}return t(e,...i)})(z);var K,G=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};!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"}(K||(K={}));const V=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),X={fontFamily:q,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},Y=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",V),J=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",X.fontSize,"20px"),Q=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",X.fontWeight,"normal"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",X.letterSpacing,"0.15px"),et=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",X.lineHeight,"1.2"),it=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",X.textTransform,"inherit"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",V),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",X.fontSize,"14px"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",X.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",X.letterSpacing,"0.105px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",X.lineHeight,"1.7"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",X.textTransform,"inherit"),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",q),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",X.fontSize,"16px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",X.fontWeight,"600"),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",X.letterSpacing,"0.144px"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",X.lineHeight,"1.5"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",X.textTransform,"inherit"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",q),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",X.fontSize,"14px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",X.fontWeight,"normal"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",X.letterSpacing,"0.098px"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",X.lineHeight,"1.7"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",X.textTransform,"inherit"),$t={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",X.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",X.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",X.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",X.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",X.textTransform,"inherit")},wt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",q),kt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",X.fontSize,"14px"),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",X.fontWeight,"normal"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",X.letterSpacing,"0.252px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",X.lineHeight,"1.4"),Ct=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",X.textTransform,"inherit"),Et={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",X.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",X.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",X.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",X.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",X.textTransform,"inherit")},Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",q),Bt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",X.fontSize,"10px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",X.fontWeight,"normal"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",X.letterSpacing,"0.33px"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",X.lineHeight,"1.6"),Nt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",X.textTransform,"inherit"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",q),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",X.fontSize,"10px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",X.fontWeight,"normal"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",X.letterSpacing,"1.5px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",X.lineHeight,"1.6"),_t=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",X.textTransform,"uppercase"),Ut={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",X.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",X.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",X.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",X.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",X.textTransform,"uppercase")},Ht=i.css`
14
14
  .ft-typography--title {
15
15
  font-family: ${Y};
16
16
  font-size: ${J};
@@ -19,7 +19,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
19
19
  line-height: ${et};
20
20
  text-transform: ${it};
21
21
  }
22
- `,Wt=i.css`
22
+ `,Pt=i.css`
23
23
  .ft-typography--title-dense {
24
24
  font-family: ${ot};
25
25
  font-size: ${nt};
@@ -28,7 +28,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
28
28
  line-height: ${rt};
29
29
  text-transform: ${at};
30
30
  }
31
- `,Lt=i.css`
31
+ `,Wt=i.css`
32
32
  .ft-typography--subtitle1 {
33
33
  font-family: ${pt};
34
34
  font-size: ${ft};
@@ -37,17 +37,17 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
37
37
  line-height: ${ct};
38
38
  text-transform: ${ut};
39
39
  }
40
- `,Kt=i.css`
40
+ `,Lt=i.css`
41
41
  .ft-typography--subtitle2 {
42
42
  font-family: ${xt};
43
43
  font-size: ${bt};
44
- font-weight: ${vt};
45
- letter-spacing: ${gt};
44
+ font-weight: ${gt};
45
+ letter-spacing: ${vt};
46
46
  line-height: ${yt};
47
47
  text-transform: ${mt};
48
48
  }
49
49
 
50
- `,Pt=i.css`
50
+ `,Kt=i.css`
51
51
  .ft-typography--body1 {
52
52
  font-family: ${$t.fontFamily};
53
53
  font-size: ${$t.fontSize};
@@ -79,17 +79,17 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
79
79
  font-family: ${Dt};
80
80
  font-size: ${Bt};
81
81
  font-weight: ${Ft};
82
- letter-spacing: ${It};
83
- line-height: ${jt};
82
+ letter-spacing: ${jt};
83
+ line-height: ${It};
84
84
  text-transform: ${Nt};
85
85
  }
86
86
  `,Xt=i.css`
87
87
  .ft-typography--overline {
88
88
  font-family: ${At};
89
- font-size: ${Mt};
90
- font-weight: ${Tt};
91
- letter-spacing: ${Zt};
92
- line-height: ${Rt};
89
+ font-size: ${Tt};
90
+ font-weight: ${Mt};
91
+ letter-spacing: ${Rt};
92
+ line-height: ${Zt};
93
93
  text-transform: ${_t};
94
94
  }
95
95
  `,Yt=i.css`
@@ -101,18 +101,18 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
101
101
  line-height: ${Ut.lineHeight};
102
102
  text-transform: ${Ut.textTransform};
103
103
  }
104
- `;class Jt extends e.FtLitElement{constructor(){super(...arguments),this.variant=P.body1}render(){return this.element?K`
105
- <${W(this.element)}
104
+ `;class Jt extends e.FtLitElement{constructor(){super(...arguments),this.variant=K.body1}render(){return this.element?L`
105
+ <${P(this.element)}
106
106
  class="ft-typography ft-typography--${this.variant}">
107
107
  <slot></slot>
108
- </${W(this.element)}>
109
- `:K`
108
+ </${P(this.element)}>
109
+ `:L`
110
110
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
111
- `}}Jt.styles=[Ht,Wt,Lt,Kt,Pt,Gt,Vt,qt,Xt,Yt,i.css`
111
+ `}}Jt.styles=[Ht,Pt,Wt,Lt,Kt,Gt,Vt,qt,Xt,Yt,i.css`
112
112
  .ft-typography {
113
113
  vertical-align: inherit;
114
114
  }
115
- `],G([o.property()],Jt.prototype,"element",void 0),G([o.property()],Jt.prototype,"variant",void 0),e.customElement("ft-typography")(Jt);var Qt=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const te={fontSize:e.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariable.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariable.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariable.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class ee extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return i.html`
115
+ `],G([o.property()],Jt.prototype,"element",void 0),G([o.property()],Jt.prototype,"variant",void 0),e.customElement("ft-typography")(Jt);var Qt=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const te={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")};class ee extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return i.html`
116
116
  <div class="${s.classMap(t)}">
117
117
  ${this.text?i.html`
118
118
  <div class="ft-input-label--text ft-typography--caption">
@@ -237,7 +237,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
237
237
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
238
238
  border-top: none;
239
239
  }
240
- `],Qt([o.property({type:String})],ee.prototype,"text",void 0),Qt([o.property({type:Boolean})],ee.prototype,"raised",void 0),Qt([o.property({type:Boolean})],ee.prototype,"outlined",void 0),Qt([o.property({type:Boolean})],ee.prototype,"disabled",void 0),Qt([o.property({type:Boolean})],ee.prototype,"error",void 0),e.customElement("ft-input-label")(ee);var ie=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const oe=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ne={color:oe,backgroundColor:e.FtCssVariable.extend("--ft-ripple-background-color",oe),opacityContentOnSurfacePressed:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},le=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),se=le,re=e.FtCssVariable.extend("--ft-ripple-background-color",le),ae=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),pe=ae,fe=e.FtCssVariable.extend("--ft-ripple-background-color",ae);class de extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),l=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-l.x:l.width/2),this.originY=Math.round(null!=n?n-l.y:l.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
240
+ `],Qt([o.property({type:String})],ee.prototype,"text",void 0),Qt([o.property({type:Boolean})],ee.prototype,"raised",void 0),Qt([o.property({type:Boolean})],ee.prototype,"outlined",void 0),Qt([o.property({type:Boolean})],ee.prototype,"disabled",void 0),Qt([o.property({type:Boolean})],ee.prototype,"error",void 0),e.customElement("ft-input-label")(ee);var ie=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const oe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ne={color:oe,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",oe),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},le=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),se=le,re=e.FtCssVariableFactory.extend("--ft-ripple-background-color",le),ae=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),pe=ae,fe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",ae);class de extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),l=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-l.x:l.width/2),this.originY=Math.round(null!=n?n-l.y:l.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
241
241
  <style>
242
242
  .ft-ripple .ft-ripple--effect,
243
243
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -343,47 +343,48 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
343
343
  opacity: ${ne.opacityContentOnSurfacePressed};
344
344
  transform: translate(-50%, -50%) scale(1);
345
345
  }
346
- `,ie([o.property({type:Boolean})],de.prototype,"primary",void 0),ie([o.property({type:Boolean})],de.prototype,"secondary",void 0),ie([o.property({type:Boolean})],de.prototype,"unbounded",void 0),ie([o.property({type:Boolean})],de.prototype,"activated",void 0),ie([o.property({type:Boolean})],de.prototype,"selected",void 0),ie([o.property({type:Boolean})],de.prototype,"disabled",void 0),ie([o.state()],de.prototype,"hovered",void 0),ie([o.state()],de.prototype,"focused",void 0),ie([o.state()],de.prototype,"pressed",void 0),ie([o.state()],de.prototype,"rippling",void 0),ie([o.state()],de.prototype,"rippleSize",void 0),ie([o.state()],de.prototype,"originX",void 0),ie([o.state()],de.prototype,"originY",void 0),ie([o.query(".ft-ripple")],de.prototype,"ripple",void 0),ie([o.query(".ft-ripple--effect")],de.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(de),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(he||(he={})),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;"}(ce||(ce={})),new Map([...["abw"].map((t=>[t,ce.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,ce.AUDIO])),...["avi"].map((t=>[t,ce.AVI])),...["chm","xhs"].map((t=>[t,ce.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,ce.CODE])),...["csv"].map((t=>[t,ce.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ce.DITA])),...["epub"].map((t=>[t,ce.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ce.EXCEL])),...["flac"].map((t=>[t,ce.FLAC])),...["gif"].map((t=>[t,ce.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ce.GZIP])),...["html","htm","xhtml"].map((t=>[t,ce.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,ce.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ce.JPEG])),...["json"].map((t=>[t,ce.JSON])),...["m4a","m4p"].map((t=>[t,ce.M4A])),...["mov","qt"].map((t=>[t,ce.MOV])),...["mp3"].map((t=>[t,ce.MP3])),...["mp4","m4v"].map((t=>[t,ce.MP4])),...["ogg","oga"].map((t=>[t,ce.OGG])),...["pdf","ps"].map((t=>[t,ce.PDF])),...["png"].map((t=>[t,ce.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ce.POWERPOINT])),...["rar"].map((t=>[t,ce.RAR])),...["stp"].map((t=>[t,ce.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ce.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,ce.VIDEO])),...["wav"].map((t=>[t,ce.WAV])),...["wma"].map((t=>[t,ce.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ce.WORD])),...["xml","xsl","rdf"].map((t=>[t,ce.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ce.YAML])),...["zip"].map((t=>[t,ce.ZIP]))]);var ue,xe=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ue||(ue={}));const be={size:e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class ve extends e.FtLitElement{constructor(){super(...arguments),this.variant=ue.fluid_topics}render(){return i.html`
347
- <i class="ft-icon ${"ft-icon--"+this.variant}">
348
- ${l.unsafeHTML(this.getIcon())}
349
- <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
350
- </i>
351
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let o=this.textContent;return this.variant===ue.file_format?null!==(t=ce[o.toUpperCase()])&&void 0!==t?t:o:this.variant===ue.fluid_topics?null!==(e=he[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}ve.elementDefinitions={},ve.styles=i.css`
352
- :host {
353
- display: inline-block;
354
- }
355
- :host, i.ft-icon {
356
- width: ${be.size};
357
- height: ${be.size};
358
- text-align: center;
359
- }
346
+ `,ie([o.property({type:Boolean})],de.prototype,"primary",void 0),ie([o.property({type:Boolean})],de.prototype,"secondary",void 0),ie([o.property({type:Boolean})],de.prototype,"unbounded",void 0),ie([o.property({type:Boolean})],de.prototype,"activated",void 0),ie([o.property({type:Boolean})],de.prototype,"selected",void 0),ie([o.property({type:Boolean})],de.prototype,"disabled",void 0),ie([o.state()],de.prototype,"hovered",void 0),ie([o.state()],de.prototype,"focused",void 0),ie([o.state()],de.prototype,"pressed",void 0),ie([o.state()],de.prototype,"rippling",void 0),ie([o.state()],de.prototype,"rippleSize",void 0),ie([o.state()],de.prototype,"originX",void 0),ie([o.state()],de.prototype,"originY",void 0),ie([o.query(".ft-ripple")],de.prototype,"ripple",void 0),ie([o.query(".ft-ripple--effect")],de.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(de),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(he||(he={})),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;"}(ce||(ce={})),new Map([...["abw"].map((t=>[t,ce.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,ce.AUDIO])),...["avi"].map((t=>[t,ce.AVI])),...["chm","xhs"].map((t=>[t,ce.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,ce.CODE])),...["csv"].map((t=>[t,ce.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ce.DITA])),...["epub"].map((t=>[t,ce.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ce.EXCEL])),...["flac"].map((t=>[t,ce.FLAC])),...["gif"].map((t=>[t,ce.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ce.GZIP])),...["html","htm","xhtml"].map((t=>[t,ce.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,ce.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ce.JPEG])),...["json"].map((t=>[t,ce.JSON])),...["m4a","m4p"].map((t=>[t,ce.M4A])),...["mov","qt"].map((t=>[t,ce.MOV])),...["mp3"].map((t=>[t,ce.MP3])),...["mp4","m4v"].map((t=>[t,ce.MP4])),...["ogg","oga"].map((t=>[t,ce.OGG])),...["pdf","ps"].map((t=>[t,ce.PDF])),...["png"].map((t=>[t,ce.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ce.POWERPOINT])),...["rar"].map((t=>[t,ce.RAR])),...["stp"].map((t=>[t,ce.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ce.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,ce.VIDEO])),...["wav"].map((t=>[t,ce.WAV])),...["wma"].map((t=>[t,ce.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ce.WORD])),...["xml","xsl","rdf"].map((t=>[t,ce.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ce.YAML])),...["zip"].map((t=>[t,ce.ZIP]))]);var ue,xe=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ue||(ue={}));const be={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class ge extends e.FtLitElement{constructor(){super(...arguments),this.variant=ue.fluid_topics}getStyles(){return i.css`
347
+ :host {
348
+ display: inline-block;
349
+ }
360
350
 
361
- i.ft-icon {
362
- font-size: ${be.size};
363
- line-height: 1;
364
- font-weight: normal;
365
- text-transform: none;
366
- font-style: normal;
367
- font-variant: normal;
368
- speak: none;
369
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
370
- text-rendering: auto;
371
- -webkit-font-smoothing: antialiased;
372
- -moz-osx-font-smoothing: grayscale;
373
- }
351
+ :host, i.ft-icon {
352
+ width: ${be.size};
353
+ height: ${be.size};
354
+ text-align: center;
355
+ }
374
356
 
375
- .ft-icon--fluid-topics {
376
- font-family: ${be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
377
- }
357
+ i.ft-icon {
358
+ font-size: ${be.size};
359
+ line-height: 1;
360
+ font-weight: normal;
361
+ text-transform: none;
362
+ font-style: normal;
363
+ font-variant: normal;
364
+ speak: none;
365
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
366
+ text-rendering: auto;
367
+ -webkit-font-smoothing: antialiased;
368
+ -moz-osx-font-smoothing: grayscale;
369
+ }
378
370
 
379
- .ft-icon--file-format {
380
- font-family: ${be.fileFormatFontFamily}, ft-mime, sans-serif;
381
- }
371
+ .ft-icon--fluid-topics {
372
+ font-family: ${be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
373
+ }
382
374
 
383
- .ft-icon--material {
384
- font-family: ${be.materialFontFamily}, "Material Icons", sans-serif;
385
- }
386
- `,xe([o.property()],ve.prototype,"variant",void 0),xe([o.query("slot")],ve.prototype,"slottedContent",void 0),e.customElement("ft-icon")(ve);var ge=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class ye extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return i.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}ye.elementDefinitions={},ge([o.property({type:String})],ye.prototype,"label",void 0),ge([o.property({type:Object,converter:t=>t})],ye.prototype,"value",void 0),ge([o.property({type:Boolean,reflect:!0})],ye.prototype,"selected",void 0);const me={labelSize:e.FtCssVariable.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariable.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariable.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:e.FtCssVariable.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:e.FtCssVariable.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariable.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariable.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariable.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariable.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class $e extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,o,l,r;let a=this.hasOptionsMenuOpen,p=this.disabled||!this.hasOptions;const f=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,d={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":p,"ft-select--options-displayed":a,"ft-select--has-option-selected":f,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
375
+ .ft-icon--file-format {
376
+ font-family: ${be.fileFormatFontFamily}, ft-mime, sans-serif;
377
+ }
378
+
379
+ .ft-icon--material {
380
+ font-family: ${be.materialFontFamily}, "Material Icons", sans-serif;
381
+ }
382
+ `}getTemplate(){return i.html`
383
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
384
+ ${l.unsafeHTML(this.getIcon())}
385
+ <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
386
+ </i>
387
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let o=this.textContent;return this.variant===ue.file_format?null!==(t=ce[o.toUpperCase()])&&void 0!==t?t:o:this.variant===ue.fluid_topics?null!==(e=he[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}ge.elementDefinitions={},xe([o.property()],ge.prototype,"variant",void 0),xe([o.query("slot")],ge.prototype,"slottedContent",void 0),e.customElement("ft-icon")(ge);var ve=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class ye extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return i.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}ye.elementDefinitions={},ve([o.property({type:String})],ye.prototype,"label",void 0),ve([o.property({type:Object,converter:t=>t})],ye.prototype,"value",void 0),ve([o.property({type:Boolean,reflect:!0})],ye.prototype,"selected",void 0);const me={labelSize:e.FtCssVariableFactory.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariableFactory.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:e.FtCssVariableFactory.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:e.FtCssVariableFactory.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariableFactory.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariableFactory.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariableFactory.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")};class $e extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,o,l,r;let a=this.hasOptionsMenuOpen,p=this.disabled||!this.hasOptions;const f=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,d={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":p,"ft-select--options-displayed":a,"ft-select--has-option-selected":f,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
387
388
  <div class="${s.classMap(d)}" part="container">
388
389
  <div class="ft-select--main-panel" part="main-panel">
389
390
  <ft-input-label text="${this.label}"
@@ -431,7 +432,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
431
432
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
432
433
  ${t.label}
433
434
  </div>
434
- `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,n,l;let s;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),s=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),s=null!==(l=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==l?l:this.firstOption}null==s||s.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}$e.elementDefinitions={"ft-input-label":ee,"ft-typography":Jt,"ft-ripple":de,"ft-icon":ve},$e.styles=[Gt,Vt,i.css`
435
+ `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,n,l;let s;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),s=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),s=null!==(l=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==l?l:this.firstOption}null==s||s.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}$e.elementDefinitions={"ft-input-label":ee,"ft-typography":Jt,"ft-ripple":de,"ft-icon":ge},$e.styles=[Gt,Vt,i.css`
435
436
  *:focus {
436
437
  outline: none;
437
438
  }
@@ -573,7 +574,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
573
574
  .ft-select--in-error .ft-select--helper-text {
574
575
  color: ${me.colorError};
575
576
  }
576
- `],ge([o.property({type:String})],$e.prototype,"label",void 0),ge([o.property({type:String})],$e.prototype,"helper",void 0),ge([o.property({type:Boolean})],$e.prototype,"outlined",void 0),ge([o.property({type:Boolean})],$e.prototype,"disabled",void 0),ge([o.property({type:Boolean})],$e.prototype,"error",void 0),ge([o.property({type:Boolean})],$e.prototype,"fixedMenuPosition",void 0),ge([o.property({type:Array})],$e.prototype,"options",void 0),ge([o.state()],$e.prototype,"selectedOption",void 0),ge([o.state()],$e.prototype,"optionsDisplayed",void 0),ge([o.state()],$e.prototype,"focusOptions",void 0),ge([o.query(".ft-select")],$e.prototype,"container",void 0),ge([o.query(".ft-select--options")],$e.prototype,"optionsMenu",void 0),ge([o.query(".ft-select--input-panel")],$e.prototype,"mainPanel",void 0),ge([o.query(".ft-select--option:first-child")],$e.prototype,"firstOption",void 0),ge([o.query(".ft-select--option:focus")],$e.prototype,"focusedOption",void 0),ge([o.query(".ft-select--option.ft-select--option-selected")],$e.prototype,"selectedOptionElement",void 0),ge([o.query(".ft-select--option:last-child")],$e.prototype,"lastOption",void 0),ge([o.query("slot")],$e.prototype,"optionsSlot",void 0),e.customElement("ft-select")($e),e.customElement("ft-select-option")(ye);var we=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const ke={fontSize:e.FtCssVariable.create("--ft-text-field-font-size","SIZE","14px"),labelSize:e.FtCssVariable.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariable.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariable.extend("--ft-text-field-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariable.extend("--ft-text-field-prefix-color",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariable.extend("--ft-text-field-icon-color",e.designSystemVariables.colorOnSurfaceMedium)};class ze extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return i.html`
577
+ `],ve([o.property({type:String})],$e.prototype,"label",void 0),ve([o.property({type:String})],$e.prototype,"helper",void 0),ve([o.property({type:Boolean})],$e.prototype,"outlined",void 0),ve([o.property({type:Boolean})],$e.prototype,"disabled",void 0),ve([o.property({type:Boolean})],$e.prototype,"error",void 0),ve([o.property({type:Boolean})],$e.prototype,"fixedMenuPosition",void 0),ve([o.property({type:Array})],$e.prototype,"options",void 0),ve([o.state()],$e.prototype,"selectedOption",void 0),ve([o.state()],$e.prototype,"optionsDisplayed",void 0),ve([o.state()],$e.prototype,"focusOptions",void 0),ve([o.query(".ft-select")],$e.prototype,"container",void 0),ve([o.query(".ft-select--options")],$e.prototype,"optionsMenu",void 0),ve([o.query(".ft-select--input-panel")],$e.prototype,"mainPanel",void 0),ve([o.query(".ft-select--option:first-child")],$e.prototype,"firstOption",void 0),ve([o.query(".ft-select--option:focus")],$e.prototype,"focusedOption",void 0),ve([o.query(".ft-select--option.ft-select--option-selected")],$e.prototype,"selectedOptionElement",void 0),ve([o.query(".ft-select--option:last-child")],$e.prototype,"lastOption",void 0),ve([o.query("slot")],$e.prototype,"optionsSlot",void 0),e.customElement("ft-select")($e),e.customElement("ft-select-option")(ye);var we=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const ke={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color",e.designSystemVariables.colorOnSurfaceMedium)};class ze extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return i.html`
577
578
  <div class="${s.classMap(t)}">
578
579
  <div class="ft-text-field--main-panel">
579
580
  <ft-input-label text="${this.label}"
@@ -608,7 +609,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
608
609
  <ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
609
610
  </ft-typography>`:void 0}
610
611
  </div>
611
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}ze.elementDefinitions={"ft-input-label":ee,"ft-ripple":de,"ft-typography":Jt,"ft-icon":ve},ze.styles=[Pt,i.css`
612
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}ze.elementDefinitions={"ft-input-label":ee,"ft-ripple":de,"ft-typography":Jt,"ft-icon":ge},ze.styles=[Kt,i.css`
612
613
  *:focus {
613
614
  outline: none;
614
615
  }
@@ -660,7 +661,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
660
661
 
661
662
  .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
662
663
  align-items: flex-end;
663
- padding: 0 ${ke.horizontalSpacing} ${ke.verticalSpacing} ${ke.horizontalSpacing};
664
+ padding: 0 ${ke.horizontalSpacing} ${ke.verticalSpacing} ${ke.horizontalSpacing};
664
665
  }
665
666
 
666
667
  .ft-text-field--prefix {
@@ -731,7 +732,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
731
732
  padding-right: ${ke.horizontalSpacing};
732
733
  color: ${ke.iconColor};
733
734
  }
734
- `],we([o.property({type:String})],ze.prototype,"label",void 0),we([o.property({reflect:!0})],ze.prototype,"value",void 0),we([o.property({type:String})],ze.prototype,"helper",void 0),we([o.property({type:Boolean})],ze.prototype,"outlined",void 0),we([o.property({type:Boolean})],ze.prototype,"disabled",void 0),we([o.property({type:Boolean})],ze.prototype,"error",void 0),we([o.query(".ft-text-field--input")],ze.prototype,"input",void 0),we([o.property({type:String})],ze.prototype,"prefix",void 0),we([o.property({type:String})],ze.prototype,"icon",void 0),we([o.property({type:String})],ze.prototype,"iconVariant",void 0),we([o.state()],ze.prototype,"focused",void 0),e.customElement("ft-text-field")(ze);var Se=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const Oe=e.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),Ce=e.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ee=e.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),De=e.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),Be=e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system");class Fe extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}render(){return i.html`
735
+ `],we([o.property({type:String})],ze.prototype,"label",void 0),we([o.property({reflect:!0})],ze.prototype,"value",void 0),we([o.property({type:String})],ze.prototype,"helper",void 0),we([o.property({type:Boolean})],ze.prototype,"outlined",void 0),we([o.property({type:Boolean})],ze.prototype,"disabled",void 0),we([o.property({type:Boolean})],ze.prototype,"error",void 0),we([o.query(".ft-text-field--input")],ze.prototype,"input",void 0),we([o.property({type:String})],ze.prototype,"prefix",void 0),we([o.property({type:String})],ze.prototype,"icon",void 0),we([o.property({type:String})],ze.prototype,"iconVariant",void 0),we([o.state()],ze.prototype,"focused",void 0),e.customElement("ft-text-field")(ze);var Se=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const Oe=e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ce=e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ee=e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),De=e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Be=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system");class Fe extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}render(){return i.html`
735
736
  <div part="container"
736
737
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
737
738
  @mouseenter=${this.onHover}
@@ -778,7 +779,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
778
779
  position: relative;
779
780
  word-break: break-word;
780
781
  }
781
- `,Se([o.property()],Fe.prototype,"text",void 0),Se([o.property({type:Boolean})],Fe.prototype,"manual",void 0),Se([o.property({type:Boolean})],Fe.prototype,"inline",void 0),Se([o.property({type:Number})],Fe.prototype,"delay",void 0),Se([o.property()],Fe.prototype,"position",void 0),Se([o.queryAssignedNodes("",!0)],Fe.prototype,"slotNodes",void 0),Se([o.query(".ft-tooltip--container")],Fe.prototype,"container",void 0),Se([o.query("slot")],Fe.prototype,"target",void 0),Se([o.query(".ft-tooltip")],Fe.prototype,"tooltip",void 0),Se([o.query(".ft-tooltip--content")],Fe.prototype,"tooltipContent",void 0),Se([o.state()],Fe.prototype,"visible",void 0),e.customElement("ft-tooltip")(Fe);const Ie={color:e.FtCssVariable.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class je extends e.FtLitElement{static get styles(){return i.css`
782
+ `,Se([o.property()],Fe.prototype,"text",void 0),Se([o.property({type:Boolean})],Fe.prototype,"manual",void 0),Se([o.property({type:Boolean})],Fe.prototype,"inline",void 0),Se([o.property({type:Number})],Fe.prototype,"delay",void 0),Se([o.property()],Fe.prototype,"position",void 0),Se([o.queryAssignedNodes("",!0)],Fe.prototype,"slotNodes",void 0),Se([o.query(".ft-tooltip--container")],Fe.prototype,"container",void 0),Se([o.query("slot")],Fe.prototype,"target",void 0),Se([o.query(".ft-tooltip")],Fe.prototype,"tooltip",void 0),Se([o.query(".ft-tooltip--content")],Fe.prototype,"tooltipContent",void 0),Se([o.state()],Fe.prototype,"visible",void 0),e.customElement("ft-tooltip")(Fe);const je={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")};class Ie extends e.FtLitElement{static get styles(){return i.css`
782
783
  :host {
783
784
  line-height: 0;
784
785
  }
@@ -787,8 +788,8 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
787
788
  display: inline-block;
788
789
  position: relative;
789
790
 
790
- width: ${Ie.size};
791
- height: ${Ie.size};
791
+ width: ${je.size};
792
+ height: ${je.size};
792
793
  }
793
794
 
794
795
  .ft-loader div {
@@ -797,7 +798,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
797
798
  width: 25%;
798
799
  height: 25%;
799
800
  border-radius: 50%;
800
- background: ${Ie.color};
801
+ background: ${je.color};
801
802
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
802
803
  }
803
804
 
@@ -844,7 +845,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
844
845
  transform: translate(0, 0);
845
846
  }
846
847
  100% {
847
- transform: translate(calc(0.35 * ${Ie.size}), 0);
848
+ transform: translate(calc(0.35 * ${je.size}), 0);
848
849
  }
849
850
  }
850
851
  `}render(){return i.html`
@@ -854,7 +855,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
854
855
  <div></div>
855
856
  <div></div>
856
857
  </div>
857
- `}}e.customElement("ft-loader")(je);var Ne=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const Ae=e.FtCssVariable.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Me={backgroundColor:e.FtCssVariable.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariable.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Ae,fontSize:e.FtCssVariable.extend("--ft-button-font-size",Ut.fontSize),iconSize:e.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariable.extend("--ft-button-ripple-color",Ae),opacityDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Te=e.FtCssVariable.extend("--ft-button-primary-color",e.FtCssVariable.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Ze={backgroundColor:e.FtCssVariable.extend("--ft-button-primary-background-color",e.FtCssVariable.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Te,rippleColor:e.FtCssVariable.extend("--ft-button-primary-ripple-color",Te)},Re=e.FtCssVariable.extend("--ft-button-dense-border-radius",e.FtCssVariable.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM));class _e extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[e.noTextSelect,i.css`
858
+ `}}e.customElement("ft-loader")(Ie);var Ne=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};const Ae=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Te={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Ae,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",Ut.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",Ae),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Me=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Re={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:Me,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Me)},Ze=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM));class _e extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[e.noTextSelect,i.css`
858
859
  :host {
859
860
  display: inline-block;
860
861
  max-width: 100%;
@@ -894,18 +895,18 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
894
895
  border: none;
895
896
  pointer-events: auto;
896
897
 
897
- --ft-button-internal-font-size: ${Me.fontSize};
898
+ --ft-button-internal-font-size: ${Te.fontSize};
898
899
  --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
899
- --ft-button-internal-color: ${Me.color};
900
- ${e.setVariable(be.size,Me.iconSize)};
900
+ --ft-button-internal-color: ${Te.color};
901
+ ${e.setVariable(be.size,Te.iconSize)};
901
902
  --ft-button-internal-vertical-padding: 6px;
902
903
  --ft-button-internal-horizontal-padding: 8px;
903
- ${e.setVariable(ne.color,Me.rippleColor)};
904
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Me.iconSize});
904
+ ${e.setVariable(ne.color,Te.rippleColor)};
905
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Te.iconSize});
905
906
 
906
- border-radius: ${Me.borderRadius};
907
+ border-radius: ${Te.borderRadius};
907
908
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
908
- background-color: ${Me.backgroundColor};
909
+ background-color: ${Te.backgroundColor};
909
910
  color: var(--ft-button-internal-color);
910
911
  -webkit-mask-image: radial-gradient(white, black);
911
912
  }
@@ -917,7 +918,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
917
918
  .ft-button--dense {
918
919
  --ft-button-internal-vertical-padding: 2px;
919
920
  --ft-button-internal-horizontal-padding: 4px;
920
- border-radius: ${Re};
921
+ border-radius: ${Ze};
921
922
  }
922
923
 
923
924
  .ft-button--round {
@@ -926,13 +927,13 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
926
927
 
927
928
  .ft-button[disabled] {
928
929
  filter: grayscale(1);
929
- opacity: ${Me.opacityDisabled};
930
+ opacity: ${Te.opacityDisabled};
930
931
  }
931
932
 
932
933
  .ft-button.ft-button--primary {
933
- background-color: ${Ze.backgroundColor};
934
- --ft-button-internal-color: ${Ze.color};
935
- ${e.setVariable(ne.color,Ze.rippleColor)};
934
+ background-color: ${Re.backgroundColor};
935
+ --ft-button-internal-color: ${Re.color};
936
+ ${e.setVariable(ne.color,Re.rippleColor)};
936
937
  }
937
938
 
938
939
  .ft-button.ft-button--outlined {
@@ -985,8 +986,8 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
985
986
  }
986
987
 
987
988
  ft-loader {
988
- ${e.setVariable(Ie.size,Me.iconSize)};
989
- ${e.setVariable(Ie.color,"var(--ft-button-internal-color)")};
989
+ ${e.setVariable(je.size,Te.iconSize)};
990
+ ${e.setVariable(je.color,"var(--ft-button-internal-color)")};
990
991
  }
991
992
  `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":e.isSafari,"ft-no-text-select":!0};return this.addTooltip(i.html`
992
993
  <button part="button"
@@ -1010,7 +1011,7 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1010
1011
  </ft-tooltip>
1011
1012
  `}resolveIcon(){return this.loading?i.html`
1012
1013
  <ft-loader></ft-loader> `:this.icon?i.html`
1013
- <ft-icon variant="material">${this.icon}</ft-icon> `:i.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}_e.elementDefinitions={"ft-ripple":de,"ft-tooltip":Fe,"ft-typography":Jt,"ft-icon":ve,"ft-loader":je},Ne([o.property({type:Boolean})],_e.prototype,"primary",void 0),Ne([o.property({type:Boolean})],_e.prototype,"outlined",void 0),Ne([o.property({type:Boolean})],_e.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],_e.prototype,"dense",void 0),Ne([o.property({type:Boolean})],_e.prototype,"round",void 0),Ne([o.property({type:String})],_e.prototype,"label",void 0),Ne([o.property({type:String})],_e.prototype,"icon",void 0),Ne([o.property({type:Boolean})],_e.prototype,"trailingIcon",void 0),Ne([o.property({type:Boolean})],_e.prototype,"loading",void 0),Ne([o.property({type:String})],_e.prototype,"tooltipPosition",void 0),Ne([o.query(".ft-button")],_e.prototype,"button",void 0),Ne([o.query(".ft-button--label slot")],_e.prototype,"slottedContent",void 0),e.customElement("ft-button")(_e);var Ue=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class He extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const We={headerBackground:e.FtCssVariable.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:e.FtCssVariable.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:e.FtCssVariable.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:e.FtCssVariable.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:e.FtCssVariable.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleFont:e.FtCssVariable.external(e.designSystemVariables.titleFont,"Design system"),contentFont:e.FtCssVariable.external(e.designSystemVariables.contentFont,"Design system")},Le=t=>i.html`${t}`,Ke=(t,e)=>t-e;class Pe extends e.FtLitElement{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return i.html`
1014
+ <ft-icon variant="material">${this.icon}</ft-icon> `:i.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}_e.elementDefinitions={"ft-ripple":de,"ft-tooltip":Fe,"ft-typography":Jt,"ft-icon":ge,"ft-loader":Ie},Ne([o.property({type:Boolean})],_e.prototype,"primary",void 0),Ne([o.property({type:Boolean})],_e.prototype,"outlined",void 0),Ne([o.property({type:Boolean})],_e.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],_e.prototype,"dense",void 0),Ne([o.property({type:Boolean})],_e.prototype,"round",void 0),Ne([o.property({type:String})],_e.prototype,"label",void 0),Ne([o.property({type:String})],_e.prototype,"icon",void 0),Ne([o.property({type:Boolean})],_e.prototype,"trailingIcon",void 0),Ne([o.property({type:Boolean})],_e.prototype,"loading",void 0),Ne([o.property({type:String})],_e.prototype,"tooltipPosition",void 0),Ne([o.query(".ft-button")],_e.prototype,"button",void 0),Ne([o.query(".ft-button--label slot")],_e.prototype,"slottedContent",void 0),e.customElement("ft-button")(_e);var Ue=function(t,e,i,o){for(var n,l=arguments.length,s=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(s=(l<3?n(s):l>3?n(e,i,s):n(e,i))||s);return l>3&&s&&Object.defineProperty(e,i,s),s};class He extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Pe={headerBackground:e.FtCssVariableFactory.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:e.FtCssVariableFactory.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:e.FtCssVariableFactory.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:e.FtCssVariableFactory.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:e.FtCssVariableFactory.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleFont:e.FtCssVariableFactory.external(e.designSystemVariables.titleFont,"Design system"),contentFont:e.FtCssVariableFactory.external(e.designSystemVariables.contentFont,"Design system")},We=t=>i.html`${t}`,Le=(t,e)=>t-e;class Ke extends e.FtLitElement{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return i.html`
1014
1015
  <style>
1015
1016
  .table {
1016
1017
  grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
@@ -1027,16 +1028,16 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1027
1028
  </div>
1028
1029
  `))}
1029
1030
  </div>
1030
- `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:Ke,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){const o={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return i.html`
1031
+ `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:Le,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){const o={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return i.html`
1031
1032
  <div class="${s.classMap(o)}">
1032
1033
  <div class="column-title-container">
1033
1034
  <span class="column-title">${t.title}</span>
1034
1035
  ${this.renderColumnSort(t,e)}
1035
1036
  </div>
1036
- ${t.filter?i.html`
1037
- <div class="column-filter">
1038
- ${this.renderColumnFilter(t,e)}
1039
- </div>`:null}
1037
+ ${t.filter?i.html`
1038
+ <div class="column-filter">
1039
+ ${this.renderColumnFilter(t,e)}
1040
+ </div>`:null}
1040
1041
  </div>
1041
1042
  `}renderColumnSort(t,e){var o;const n=this.currentSort&&this.currentSort.column===e,l=n?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return i.html`
1042
1043
  <ft-button
@@ -1059,9 +1060,9 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1059
1060
  <ft-select-option value="${t}" label="${t}"></ft-select-option>
1060
1061
  `))}
1061
1062
  </ft-select>
1062
- `:null}return null}renderCell(t,e,o){var n;const s=null!==(n=t.render)&&void 0!==n?n:Le;return i.html`
1063
+ `:null}return null}renderCell(t,e,o){var n;const s=null!==(n=t.render)&&void 0!==n?n:We;return i.html`
1063
1064
  <div class="cell">${(t=>{const e=s(t,o);return"string"==typeof e?l.unsafeHTML(e):e})(this.getValue(t,e))}</div>
1064
- `}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}Pe.styles=i.css`
1065
+ `}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}Ke.styles=i.css`
1065
1066
  :host {
1066
1067
  display: block;
1067
1068
  }
@@ -1077,15 +1078,15 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1077
1078
  .header-cell {
1078
1079
  display: flex;
1079
1080
  flex-direction: column;
1080
- background: ${We.headerBackground};
1081
- color: ${We.colorOnSurfaceHigh};
1081
+ background: ${Pe.headerBackground};
1082
+ color: ${Pe.colorOnSurfaceHigh};
1082
1083
  padding: .5rem 1rem;
1083
- font-family: ${We.titleFont};
1084
+ font-family: ${Pe.titleFont};
1084
1085
  }
1085
-
1086
+
1086
1087
  .header-cell--sticky {
1087
1088
  top: 0;
1088
- z-index: ${We.stickyHeaderZIndex};
1089
+ z-index: ${Pe.stickyHeaderZIndex};
1089
1090
  position: sticky;
1090
1091
  }
1091
1092
 
@@ -1103,8 +1104,8 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1103
1104
  }
1104
1105
 
1105
1106
  .column-title-container ft-button {
1106
- ${e.setVariable(Me.backgroundColor,We.headerBackground)};
1107
- ${e.setVariable(Me.color,We.colorOnSurfaceHigh)};
1107
+ ${e.setVariable(Te.backgroundColor,Pe.headerBackground)};
1108
+ ${e.setVariable(Te.color,Pe.colorOnSurfaceHigh)};
1108
1109
  }
1109
1110
 
1110
1111
  .column-title {
@@ -1133,29 +1134,29 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1133
1134
 
1134
1135
  .cell {
1135
1136
  padding: 1rem;
1136
- border-left: 1px solid ${We.headerBackground};
1137
- border-bottom: 1px solid ${We.headerBackground};
1137
+ border-left: 1px solid ${Pe.headerBackground};
1138
+ border-bottom: 1px solid ${Pe.headerBackground};
1138
1139
  overflow-x: auto;
1139
1140
  display: flex;
1140
1141
  align-items: center;
1141
- font-family: ${We.contentFont};
1142
+ font-family: ${Pe.contentFont};
1142
1143
  }
1143
1144
 
1144
1145
  /* Even is 2n+1 and odd is 2n because of the header */
1145
1146
  .row:nth-child(2n) > .cell {
1146
- background: ${We.oddRowBackground};
1147
+ background: ${Pe.oddRowBackground};
1147
1148
  }
1148
1149
 
1149
1150
  .row:nth-child(2n + 1) > .cell {
1150
- background: ${We.evenRowBackground};
1151
+ background: ${Pe.evenRowBackground};
1151
1152
  }
1152
1153
 
1153
1154
  .row:hover > .cell {
1154
- background: ${We.rowHoverBackground};
1155
+ background: ${Pe.rowHoverBackground};
1155
1156
  }
1156
1157
 
1157
1158
  .cell:last-of-type {
1158
- border-right: 1px solid ${We.headerBackground};
1159
+ border-right: 1px solid ${Pe.headerBackground};
1159
1160
  }
1160
1161
 
1161
1162
  .row:last-of-type .cell:first-of-type {
@@ -1169,4 +1170,4 @@ const U=Symbol.for(""),H=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
1169
1170
  .hidden {
1170
1171
  visibility: hidden;
1171
1172
  }
1172
- `,Ue([o.property({attribute:!1})],Pe.prototype,"data",void 0),Ue([o.property({attribute:!1})],Pe.prototype,"columns",void 0),Ue([o.property({attribute:!1})],Pe.prototype,"sort",void 0),Ue([o.property()],Pe.prototype,"stickyHeaders",void 0),Ue([o.state()],Pe.prototype,"currentSort",void 0),e.customElement("ft-filterable-table")(Pe),t.FtFilterableTable=Pe,t.FtFilterableTableCssVariables=We,t.RowClickEvent=He,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
1173
+ `,Ue([o.property({attribute:!1})],Ke.prototype,"data",void 0),Ue([o.property({attribute:!1})],Ke.prototype,"columns",void 0),Ue([o.property({attribute:!1})],Ke.prototype,"sort",void 0),Ue([o.property()],Ke.prototype,"stickyHeaders",void 0),Ue([o.state()],Ke.prototype,"currentSort",void 0),e.customElement("ft-filterable-table")(Ke),t.FtFilterableTable=Ke,t.FtFilterableTableCssVariables=Pe,t.RowClickEvent=He,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);