@fluid-topics/ft-text-area 0.2.4 → 0.2.6

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,129 +4,129 @@
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- var n;const l=globalThis.trustedTypes,a=l?l.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,f="?"+p,h=`<${f}>`,d=document,c=(t="")=>d.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,b=/>/g,m=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,v=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),k=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),E=new WeakMap,O=d.createTreeWalker(d,129,null,!1),j=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=g;for(let e=0;e<i;e++){const i=t[e];let l,a,f=-1,d=0;for(;d<i.length&&(n.lastIndex=d,a=n.exec(i),null!==a);)d=n.lastIndex,n===g?"!--"===a[1]?n=y:void 0!==a[1]?n=b:void 0!==a[2]?(w.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=m):void 0!==a[3]&&(n=m):n===m?">"===a[0]?(n=null!=s?s:g,f=-1):void 0===a[1]?f=-2:(f=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?m:'"'===a[3]?$:v):n===$||n===v?n=m:n===y||n===b?n=g:(n=m,s=void 0);const c=n===m&&t[e+1].startsWith("/>")?" ":"";r+=n===g?i+h:f>=0?(o.push(l),i.slice(0,f)+"$lit$"+i.slice(f)+p+c):i+p+(-2===f?(o.push(void 0),e):c)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(l):l,o]};class N{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[h,d]=j(t,e);if(this.el=N.createElement(h,i),O.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=O.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(p)){const i=d[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(p),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?B:"@"===e[1]?M:A})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(w.test(o.tagName)){const t=o.textContent.split(p),e=t.length-1;if(e>0){o.textContent=l?l.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],c()),O.nextNode(),a.push({type:2,index:++s});o.append(t[e],c())}}}else if(8===o.nodeType)if(o.data===f)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(p,t+1));)a.push({type:7,index:s}),t+=p.length-1}s++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,o){var s,r,n,l;if(e===k)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=u(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Cl)&&void 0!==n?n:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=I(t,a._$AS(t,e.values),a,o)),e}class C{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:d).importNode(i,!0);O.currentNode=s;let r=O.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new D(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new T(r,this,t)),this.v.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=O.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class D{constructor(t,e,i,o){var s;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=I(this,t,e),u(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==k&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return x(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==S&&u(this._$AH)?this._$AA.nextSibling.data=t:this.S(d.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new C(s,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new N(t)),e}A(t){x(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new D(this.M(c()),this.M(c()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class A{constructor(t,e,i,o,s){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=I(this,t,e,0),r=!u(t)||t!==this._$AH&&t!==k,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=I(this,o[i+n],e,n),l===k&&(l=this._$AH[n]),r||(r=!u(l)||l!==this._$AH[n]),l===S?t=S:t!==S&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.k(t)}k(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends A{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===S?void 0:t}}const Z=l?l.emptyScript:"";class B extends A{constructor(){super(...arguments),this.type=4}k(t){t&&t!==S?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class M extends A{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=I(this,t,e,0))&&void 0!==i?i:S)===k)return;const o=this._$AH,s=t===S&&o!==S||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==S&&(o===S||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class T{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){I(this,t)}}const F=window.litHtmlPolyfillSupport;null==F||F(N,D),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.1.3");
7
+ var n;const l=globalThis.trustedTypes,a=l?l.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,f="?"+p,h=`<${f}>`,d=document,c=(t="")=>d.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,b=/>/g,m=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,v=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),k=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),E=new WeakMap,O=d.createTreeWalker(d,129,null,!1),j=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=y;for(let e=0;e<i;e++){const i=t[e];let l,a,f=-1,d=0;for(;d<i.length&&(n.lastIndex=d,a=n.exec(i),null!==a);)d=n.lastIndex,n===y?"!--"===a[1]?n=g:void 0!==a[1]?n=b:void 0!==a[2]?(w.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=m):void 0!==a[3]&&(n=m):n===m?">"===a[0]?(n=null!=s?s:y,f=-1):void 0===a[1]?f=-2:(f=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?m:'"'===a[3]?$:v):n===$||n===v?n=m:n===g||n===b?n=y:(n=m,s=void 0);const c=n===m&&t[e+1].startsWith("/>")?" ":"";r+=n===y?i+h:f>=0?(o.push(l),i.slice(0,f)+"$lit$"+i.slice(f)+p+c):i+p+(-2===f?(o.push(void 0),e):c)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(l):l,o]};class C{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[h,d]=j(t,e);if(this.el=C.createElement(h,i),O.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=O.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(p)){const i=d[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(p),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?B:"@"===e[1]?M:A})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(w.test(o.tagName)){const t=o.textContent.split(p),e=t.length-1;if(e>0){o.textContent=l?l.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],c()),O.nextNode(),a.push({type:2,index:++s});o.append(t[e],c())}}}else if(8===o.nodeType)if(o.data===f)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(p,t+1));)a.push({type:7,index:s}),t+=p.length-1}s++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function N(t,e,i=t,o){var s,r,n,l;if(e===k)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=u(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Cl)&&void 0!==n?n:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=N(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,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:d).importNode(i,!0);O.currentNode=s;let r=O.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new D(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new T(r,this,t)),this.v.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=O.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class D{constructor(t,e,i,o){var s;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=N(this,t,e),u(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==k&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return x(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!==S&&u(this._$AH)?this._$AA.nextSibling.data=t:this.k(d.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=C.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new I(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new C(t)),e}S(t){x(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new D(this.M(c()),this.M(c()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class A{constructor(t,e,i,o,s){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=N(this,t,e,0),r=!u(t)||t!==this._$AH&&t!==k,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=N(this,o[i+n],e,n),l===k&&(l=this._$AH[n]),r||(r=!u(l)||l!==this._$AH[n]),l===S?t=S:t!==S&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.C(t)}C(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends A{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===S?void 0:t}}const Z=l?l.emptyScript:"";class B extends A{constructor(){super(...arguments),this.type=4}C(t){t&&t!==S?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class M extends A{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=N(this,t,e,0))&&void 0!==i?i:S)===k)return;const o=this._$AH,s=t===S&&o!==S||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==S&&(o===S||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class T{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const F=window.litHtmlPolyfillSupport;null==F||F(C,D),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.2.4");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;let r,n;const l=[],a=[];let p,f=0,h=!1;for(;f<s;){for(p=e[f];f<s&&void 0!==(n=i[f],r=null===(o=n)||void 0===o?void 0:o._$litStatic$);)p+=r+e[++f],h=!0;a.push(n),l.push(p),f++}if(f===s&&l.push(e[s]),h){const t=l.join("$$lit$$");void 0===(e=W.get(t))&&(l.raw=l,W.set(t,e=l)),i=a}return t(e,...i)})(z);var H,K=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!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"}(H||(H={}));const G=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),q=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),L={fontFamily:q,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},P=e.FtCssVariable.extend("--ft-typography-title-font-family",G),V=e.FtCssVariable.extend("--ft-typography-title-font-size",L.fontSize,"20px"),X=e.FtCssVariable.extend("--ft-typography-title-font-weight",L.fontWeight,"normal"),Y=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",L.letterSpacing,"0.15px"),J=e.FtCssVariable.extend("--ft-typography-title-line-height",L.lineHeight,"24px"),Q=e.FtCssVariable.extend("--ft-typography-title-text-transform",L.textTransform,"inherit"),tt=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",G),et=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",L.fontSize,"14px"),it=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",L.fontWeight,"normal"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",L.letterSpacing,"0.105px"),st=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",L.lineHeight,"24px"),rt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",L.textTransform,"inherit"),nt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",q),lt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",L.fontSize,"16px"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",L.fontWeight,"600"),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",L.letterSpacing,"0.144px"),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"24px"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",L.textTransform,"inherit"),dt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",q),ct=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",L.fontSize,"14px"),ut=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",L.fontWeight,"normal"),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",L.letterSpacing,"0.098px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",L.lineHeight,"24px"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",L.textTransform,"inherit"),bt={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",q),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",L.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",L.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",L.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",L.lineHeight,"24px"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",L.textTransform,"inherit")},mt=e.FtCssVariable.extend("--ft-typography-body2-font-family",q),vt=e.FtCssVariable.extend("--ft-typography-body2-font-size",L.fontSize,"14px"),$t=e.FtCssVariable.extend("--ft-typography-body2-font-weight",L.fontWeight,"normal"),wt=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",L.letterSpacing,"0.252px"),zt=e.FtCssVariable.extend("--ft-typography-body2-line-height",L.lineHeight,"20px"),kt=e.FtCssVariable.extend("--ft-typography-body2-text-transform",L.textTransform,"inherit"),St={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",q),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",L.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",L.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",L.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",L.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",L.textTransform,"inherit")},Et=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",q),Ot=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",L.fontSize,"10px"),jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",L.fontWeight,"normal"),Nt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",L.letterSpacing,"0.33px"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",L.lineHeight,"16px"),Ct=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",L.textTransform,"inherit"),Dt=e.FtCssVariable.extend("--ft-typography-overline-font-family",q),At=e.FtCssVariable.extend("--ft-typography-overline-font-size",L.fontSize,"10px"),_t=e.FtCssVariable.extend("--ft-typography-overline-font-weight",L.fontWeight,"normal"),Zt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",L.letterSpacing,"1.5px"),Bt=e.FtCssVariable.extend("--ft-typography-overline-line-height",L.lineHeight,"16px"),Mt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",L.textTransform,"uppercase"),Tt=e.FtCssVariable.extend("--ft-typography-button-font-family",q),Ft=e.FtCssVariable.extend("--ft-typography-button-font-size",L.fontSize,"14px"),Ut=e.FtCssVariable.extend("--ft-typography-button-font-weight",L.fontWeight,"600"),Wt=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",L.letterSpacing,"1.246px"),Rt=e.FtCssVariable.extend("--ft-typography-button-line-height",L.lineHeight,"16px"),Ht=e.FtCssVariable.extend("--ft-typography-button-text-transform",L.textTransform,"uppercase"),Kt=i.css`
13
+ const U=Symbol.for(""),W=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$},R=t=>({_$litStatic$:t,r:U}),H=new Map,K=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(r=i[p],s=W(r));)a+=s+e[++p],f=!0;l.push(r),n.push(a),p++}if(p===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=H.get(t))&&(n.raw=n,H.set(t,e=n)),i=l}return t(e,...i)})(z);var G,q=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!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"}(G||(G={}));const L=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),P=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),V={fontFamily:P,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=e.FtCssVariable.extend("--ft-typography-title-font-family",L),Y=e.FtCssVariable.extend("--ft-typography-title-font-size",V.fontSize,"20px"),J=e.FtCssVariable.extend("--ft-typography-title-font-weight",V.fontWeight,"normal"),Q=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",V.letterSpacing,"0.15px"),tt=e.FtCssVariable.extend("--ft-typography-title-line-height",V.lineHeight,"24px"),et=e.FtCssVariable.extend("--ft-typography-title-text-transform",V.textTransform,"inherit"),it=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",L),ot=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",V.fontSize,"14px"),st=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",V.fontWeight,"normal"),rt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",V.letterSpacing,"0.105px"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",V.lineHeight,"24px"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",V.textTransform,"inherit"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",P),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",V.fontSize,"16px"),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",V.fontWeight,"600"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",V.letterSpacing,"0.144px"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",V.lineHeight,"24px"),ct=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",V.textTransform,"inherit"),ut=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",P),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",V.fontSize,"14px"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",V.fontWeight,"normal"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",V.letterSpacing,"0.098px"),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",V.lineHeight,"24px"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",V.textTransform,"inherit"),vt={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",P),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",V.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",V.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",V.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",V.lineHeight,"24px"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",V.textTransform,"inherit")},$t=e.FtCssVariable.extend("--ft-typography-body2-font-family",P),wt=e.FtCssVariable.extend("--ft-typography-body2-font-size",V.fontSize,"14px"),zt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",V.fontWeight,"normal"),kt=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",V.letterSpacing,"0.252px"),St=e.FtCssVariable.extend("--ft-typography-body2-line-height",V.lineHeight,"20px"),Et=e.FtCssVariable.extend("--ft-typography-body2-text-transform",V.textTransform,"inherit"),Ot={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",P),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",V.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",V.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",V.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",V.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",V.textTransform,"inherit")},jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",P),Ct=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",V.fontSize,"10px"),Nt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",V.fontWeight,"normal"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",V.letterSpacing,"0.33px"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",V.lineHeight,"16px"),At=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",V.textTransform,"inherit"),_t=e.FtCssVariable.extend("--ft-typography-overline-font-family",P),Zt=e.FtCssVariable.extend("--ft-typography-overline-font-size",V.fontSize,"10px"),Bt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",V.fontWeight,"normal"),Mt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",V.letterSpacing,"1.5px"),Tt=e.FtCssVariable.extend("--ft-typography-overline-line-height",V.lineHeight,"16px"),Ft=e.FtCssVariable.extend("--ft-typography-overline-text-transform",V.textTransform,"uppercase"),Ut=e.FtCssVariable.extend("--ft-typography-button-font-family",P),Wt=e.FtCssVariable.extend("--ft-typography-button-font-size",V.fontSize,"14px"),Rt=e.FtCssVariable.extend("--ft-typography-button-font-weight",V.fontWeight,"600"),Ht=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",V.letterSpacing,"1.246px"),Kt=e.FtCssVariable.extend("--ft-typography-button-line-height",V.lineHeight,"16px"),Gt=e.FtCssVariable.extend("--ft-typography-button-text-transform",V.textTransform,"uppercase"),qt=i.css`
14
14
  .ft-typography--title {
15
- font-family: ${P};
16
- font-size: ${V};
17
- font-weight: ${X};
18
- letter-spacing: ${Y};
19
- line-height: ${J};
20
- text-transform: ${Q};
15
+ font-family: ${X};
16
+ font-size: ${Y};
17
+ font-weight: ${J};
18
+ letter-spacing: ${Q};
19
+ line-height: ${tt};
20
+ text-transform: ${et};
21
21
  }
22
- `,Gt=i.css`
22
+ `,Lt=i.css`
23
23
  .ft-typography--title-dense {
24
- font-family: ${tt};
25
- font-size: ${et};
26
- font-weight: ${it};
27
- letter-spacing: ${ot};
28
- line-height: ${st};
29
- text-transform: ${rt};
24
+ font-family: ${it};
25
+ font-size: ${ot};
26
+ font-weight: ${st};
27
+ letter-spacing: ${rt};
28
+ line-height: ${nt};
29
+ text-transform: ${lt};
30
30
  }
31
- `,qt=i.css`
31
+ `,Pt=i.css`
32
32
  .ft-typography--subtitle1 {
33
- font-family: ${nt};
34
- font-size: ${lt};
35
- font-weight: ${at};
36
- letter-spacing: ${pt};
37
- line-height: ${ft};
38
- text-transform: ${ht};
33
+ font-family: ${at};
34
+ font-size: ${pt};
35
+ font-weight: ${ft};
36
+ letter-spacing: ${ht};
37
+ line-height: ${dt};
38
+ text-transform: ${ct};
39
39
  }
40
- `,Lt=i.css`
40
+ `,Vt=i.css`
41
41
  .ft-typography--subtitle2 {
42
- font-family: ${dt};
43
- font-size: ${ct};
44
- font-weight: ${ut};
45
- letter-spacing: ${xt};
46
- line-height: ${gt};
47
- text-transform: ${yt};
42
+ font-family: ${ut};
43
+ font-size: ${xt};
44
+ font-weight: ${yt};
45
+ letter-spacing: ${gt};
46
+ line-height: ${bt};
47
+ text-transform: ${mt};
48
48
  }
49
49
 
50
- `,Pt=i.css`
50
+ `,Xt=i.css`
51
51
  .ft-typography--body1 {
52
- font-family: ${bt.fontFamily};
53
- font-size: ${bt.fontSize};
54
- font-weight: ${bt.fontWeight};
55
- letter-spacing: ${bt.letterSpacing};
56
- line-height: ${bt.lineHeight};
57
- text-transform: ${bt.textTransform};
52
+ font-family: ${vt.fontFamily};
53
+ font-size: ${vt.fontSize};
54
+ font-weight: ${vt.fontWeight};
55
+ letter-spacing: ${vt.letterSpacing};
56
+ line-height: ${vt.lineHeight};
57
+ text-transform: ${vt.textTransform};
58
58
  }
59
- `,Vt=i.css`
59
+ `,Yt=i.css`
60
60
  .ft-typography--body2 {
61
- font-family: ${mt};
62
- font-size: ${vt};
63
- font-weight: ${$t};
64
- letter-spacing: ${wt};
65
- line-height: ${zt};
66
- text-transform: ${kt};
61
+ font-family: ${$t};
62
+ font-size: ${wt};
63
+ font-weight: ${zt};
64
+ letter-spacing: ${kt};
65
+ line-height: ${St};
66
+ text-transform: ${Et};
67
67
  }
68
- `,Xt=i.css`
68
+ `,Jt=i.css`
69
69
  .ft-typography--caption {
70
- font-family: ${St.fontFamily};
71
- font-size: ${St.fontSize};
72
- font-weight: ${St.fontWeight};
73
- letter-spacing: ${St.letterSpacing};
74
- line-height: ${St.lineHeight};
75
- text-transform: ${St.textTransform};
70
+ font-family: ${Ot.fontFamily};
71
+ font-size: ${Ot.fontSize};
72
+ font-weight: ${Ot.fontWeight};
73
+ letter-spacing: ${Ot.letterSpacing};
74
+ line-height: ${Ot.lineHeight};
75
+ text-transform: ${Ot.textTransform};
76
76
  }
77
- `,Yt=i.css`
77
+ `,Qt=i.css`
78
78
  .ft-typography--breadcrumb {
79
- font-family: ${Et};
80
- font-size: ${Ot};
81
- font-weight: ${jt};
82
- letter-spacing: ${Nt};
83
- line-height: ${It};
84
- text-transform: ${Ct};
79
+ font-family: ${jt};
80
+ font-size: ${Ct};
81
+ font-weight: ${Nt};
82
+ letter-spacing: ${It};
83
+ line-height: ${Dt};
84
+ text-transform: ${At};
85
85
  }
86
- `,Jt=i.css`
86
+ `,te=i.css`
87
87
  .ft-typography--overline {
88
- font-family: ${Dt};
89
- font-size: ${At};
90
- font-weight: ${_t};
91
- letter-spacing: ${Zt};
92
- line-height: ${Bt};
93
- text-transform: ${Mt};
88
+ font-family: ${_t};
89
+ font-size: ${Zt};
90
+ font-weight: ${Bt};
91
+ letter-spacing: ${Mt};
92
+ line-height: ${Tt};
93
+ text-transform: ${Ft};
94
94
  }
95
- `,Qt=i.css`
95
+ `,ee=i.css`
96
96
  .ft-typography--button {
97
- font-family: ${Tt};
98
- font-size: ${Ft};
99
- font-weight: ${Ut};
100
- letter-spacing: ${Wt};
101
- line-height: ${Rt};
102
- text-transform: ${Ht};
97
+ font-family: ${Ut};
98
+ font-size: ${Wt};
99
+ font-weight: ${Rt};
100
+ letter-spacing: ${Ht};
101
+ line-height: ${Kt};
102
+ text-transform: ${Gt};
103
103
  }
104
- `;class te extends e.FtLitElement{constructor(){super(...arguments),this.variant=H.body1}render(){return this.element?R`
105
- <${U(this.element)}
104
+ `;class ie extends e.FtLitElement{constructor(){super(...arguments),this.variant=G.body1}render(){return this.element?K`
105
+ <${R(this.element)}
106
106
  class="ft-typography ft-typography--${this.variant}">
107
107
  <slot></slot>
108
- </${U(this.element)}>
109
- `:R`
108
+ </${R(this.element)}>
109
+ `:K`
110
110
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
111
- `}}var ee,ie;te.styles=[Kt,Gt,qt,Lt,Pt,Vt,Xt,Yt,Jt,Qt,i.css`
111
+ `}}var oe,se;ie.styles=[qt,Lt,Pt,Vt,Xt,Yt,Jt,Qt,te,ee,i.css`
112
112
  .ft-typography {
113
113
  vertical-align: inherit;
114
114
  }
115
- `],K([o.property()],te.prototype,"element",void 0),K([o.property()],te.prototype,"variant",void 0),e.customElement("ft-typography")(te),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;"}(ee||(ee={})),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;"}(ie||(ie={})),new Map([...["abw"].map((t=>[t,ie.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,ie.AUDIO])),...["avi"].map((t=>[t,ie.AVI])),...["chm","xhs"].map((t=>[t,ie.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,ie.CODE])),...["csv"].map((t=>[t,ie.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ie.DITA])),...["epub"].map((t=>[t,ie.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ie.EXCEL])),...["flac"].map((t=>[t,ie.FLAC])),...["gif"].map((t=>[t,ie.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ie.GZIP])),...["html","htm","xhtml"].map((t=>[t,ie.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,ie.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ie.JPEG])),...["json"].map((t=>[t,ie.JSON])),...["m4a","m4p"].map((t=>[t,ie.M4A])),...["mov","qt"].map((t=>[t,ie.MOV])),...["mp3"].map((t=>[t,ie.MP3])),...["mp4","m4v"].map((t=>[t,ie.MP4])),...["ogg","oga"].map((t=>[t,ie.OGG])),...["pdf","ps"].map((t=>[t,ie.PDF])),...["png"].map((t=>[t,ie.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ie.POWERPOINT])),...["rar"].map((t=>[t,ie.RAR])),...["stp"].map((t=>[t,ie.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ie.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,ie.VIDEO])),...["wav"].map((t=>[t,ie.WAV])),...["wma"].map((t=>[t,ie.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ie.WORD])),...["xml","xsl","rdf"].map((t=>[t,ie.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ie.YAML])),...["zip"].map((t=>[t,ie.ZIP]))]);var oe,se=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(oe||(oe={}));const re=e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),ne=e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),le=e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ae=e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class pe extends e.FtLitElement{constructor(){super(...arguments),this.variant=oe.fluid_topics}render(){return i.html`
115
+ `],q([o.property()],ie.prototype,"element",void 0),q([o.property()],ie.prototype,"variant",void 0),e.customElement("ft-typography")(ie),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;"}(oe||(oe={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(se||(se={})),new Map([...["abw"].map((t=>[t,se.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,se.AUDIO])),...["avi"].map((t=>[t,se.AVI])),...["chm","xhs"].map((t=>[t,se.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,se.CODE])),...["csv"].map((t=>[t,se.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,se.DITA])),...["epub"].map((t=>[t,se.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,se.EXCEL])),...["flac"].map((t=>[t,se.FLAC])),...["gif"].map((t=>[t,se.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,se.GZIP])),...["html","htm","xhtml"].map((t=>[t,se.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,se.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,se.JPEG])),...["json"].map((t=>[t,se.JSON])),...["m4a","m4p"].map((t=>[t,se.M4A])),...["mov","qt"].map((t=>[t,se.MOV])),...["mp3"].map((t=>[t,se.MP3])),...["mp4","m4v"].map((t=>[t,se.MP4])),...["ogg","oga"].map((t=>[t,se.OGG])),...["pdf","ps"].map((t=>[t,se.PDF])),...["png"].map((t=>[t,se.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,se.POWERPOINT])),...["rar"].map((t=>[t,se.RAR])),...["stp"].map((t=>[t,se.STP])),...["txt","rtf","md","mdown"].map((t=>[t,se.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,se.VIDEO])),...["wav"].map((t=>[t,se.WAV])),...["wma"].map((t=>[t,se.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,se.WORD])),...["xml","xsl","rdf"].map((t=>[t,se.XML])),...["yaml","yml","x-yaml"].map((t=>[t,se.YAML])),...["zip"].map((t=>[t,se.ZIP]))]);var re,ne=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(re||(re={}));const le=e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),ae=e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),pe=e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),fe=e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class he extends e.FtLitElement{constructor(){super(...arguments),this.variant=re.fluid_topics}render(){return i.html`
116
116
  <i class="ft-icon ${"ft-icon--"+this.variant}">
117
117
  ${r.unsafeHTML(this.getIcon())}
118
118
  <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
119
119
  </i>
120
- `}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===oe.file_format?null!==(t=ie[o.toUpperCase()])&&void 0!==t?t:o:this.variant===oe.fluid_topics?null!==(e=ee[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}pe.elementDefinitions={},pe.styles=i.css`
120
+ `}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===re.file_format?null!==(t=se[o.toUpperCase()])&&void 0!==t?t:o:this.variant===re.fluid_topics?null!==(e=oe[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}he.elementDefinitions={},he.styles=i.css`
121
121
  :host, i.ft-icon {
122
122
  display: inline-block;
123
- width: ${re};
124
- height: ${re};
123
+ width: ${le};
124
+ height: ${le};
125
125
  text-align: center;
126
126
  }
127
127
 
128
128
  i.ft-icon {
129
- font-size: ${re};
129
+ font-size: ${le};
130
130
  line-height: 1;
131
131
  font-weight: normal;
132
132
  text-transform: none;
@@ -140,17 +140,17 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
140
140
  }
141
141
 
142
142
  .ft-icon--fluid-topics {
143
- font-family: ${ne}, ft-icons, fticons, sans-serif;
143
+ font-family: ${ae}, ft-icons, fticons, sans-serif;
144
144
  }
145
145
 
146
146
  .ft-icon--file-format {
147
- font-family: ${le}, ft-mime, sans-serif;
147
+ font-family: ${pe}, ft-mime, sans-serif;
148
148
  }
149
149
 
150
150
  .ft-icon--material {
151
- font-family: ${ae}, "Material Icons", sans-serif;
151
+ font-family: ${fe}, "Material Icons", sans-serif;
152
152
  }
153
- `,se([o.property()],pe.prototype,"variant",void 0),se([o.query("slot")],pe.prototype,"slottedContent",void 0),e.customElement("ft-icon")(pe);var fe=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class he extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const de=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),ce=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system");class ue extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return i.html`
153
+ `,ne([o.property()],he.prototype,"variant",void 0),ne([o.query("slot")],he.prototype,"slottedContent",void 0),e.customElement("ft-icon")(he);var de=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ce extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const ue=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),xe=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system");class ye extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return i.html`
154
154
  <style>
155
155
  .ft-resizer {
156
156
  cursor: ${i.unsafeCSS(this.cursor)}
@@ -161,7 +161,7 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
161
161
  @touchstart=${this.initDragFromTouch}>
162
162
  <ft-icon variant="material">${this.icon}</ft-icon>
163
163
  </div>
164
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new he(i,o))}}ue.elementDefinitions={"ft-icon":pe},ue.styles=[e.noTextSelect,i.css`
164
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new ce(i,o))}}ye.elementDefinitions={"ft-icon":he},ye.styles=[e.noTextSelect,i.css`
165
165
  :host {
166
166
  display: block;
167
167
  }
@@ -172,14 +172,14 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
172
172
 
173
173
  ft-icon {
174
174
  transform: rotate(-45deg);
175
- color: ${de};
175
+ color: ${ue};
176
176
  }
177
177
 
178
178
  .ft-resizer--dragging ft-icon,
179
179
  .ft-resizer:hover ft-icon {
180
- color: ${ce};
180
+ color: ${xe};
181
181
  }
182
- `],fe([o.property({type:Number})],ue.prototype,"initialWidth",void 0),fe([o.property({type:Number})],ue.prototype,"initialHeight",void 0),fe([o.property()],ue.prototype,"icon",void 0),fe([o.property()],ue.prototype,"cursor",void 0),fe([o.state()],ue.prototype,"dragging",void 0),e.customElement("ft-resizer")(ue);var xe=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const ge={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 ye 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`
182
+ `],de([o.property({type:Number})],ye.prototype,"initialWidth",void 0),de([o.property({type:Number})],ye.prototype,"initialHeight",void 0),de([o.property()],ye.prototype,"icon",void 0),de([o.property()],ye.prototype,"cursor",void 0),de([o.state()],ye.prototype,"dragging",void 0),e.customElement("ft-resizer")(ye);var ge=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const be={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 me 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`
183
183
  <div class="${s.classMap(t)}">
184
184
  ${this.text?i.html`
185
185
  <div class="ft-input-label--text ft-typography--caption">
@@ -188,7 +188,7 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
188
188
  </div>
189
189
  `:null}
190
190
  </div>
191
- `}}ye.elementDefinitions={},ye.styles=[Xt,i.css`
191
+ `}}me.elementDefinitions={},me.styles=[Jt,i.css`
192
192
  .ft-input-label {
193
193
  position: absolute;
194
194
  inset: 0;
@@ -196,11 +196,11 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
196
196
  }
197
197
 
198
198
  .ft-input-label {
199
- border-color: ${ge.borderColor};
199
+ border-color: ${be.borderColor};
200
200
  }
201
201
 
202
202
  .ft-input-label.ft-input-label--in-error {
203
- border-color: ${ge.colorError}
203
+ border-color: ${be.colorError}
204
204
  }
205
205
 
206
206
  .ft-input-label:before,
@@ -213,7 +213,7 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
213
213
  }
214
214
 
215
215
  .ft-input-label:before {
216
- width: ${ge.horizontalSpacing};
216
+ width: ${be.horizontalSpacing};
217
217
  flex-shrink: 0;
218
218
  }
219
219
 
@@ -229,18 +229,18 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
229
229
  border-bottom-width: 1px;
230
230
  border-bottom-style: solid;
231
231
  border-color: inherit;
232
- color: ${ge.textColor};
232
+ color: ${be.textColor};
233
233
  transition: font-size 250ms, line-height 250ms, color 250ms;
234
- ${e.setVariable(St.fontSize,ge.fontSize)};
235
- ${e.setVariable(St.lineHeight,ge.fontSize)};
234
+ ${e.setVariable(Ot.fontSize,be.fontSize)};
235
+ ${e.setVariable(Ot.lineHeight,be.fontSize)};
236
236
  }
237
237
 
238
238
  .ft-input-label--in-error .ft-input-label--text {
239
- color: ${ge.colorError}
239
+ color: ${be.colorError}
240
240
  }
241
241
 
242
242
  .ft-input-label--disabled .ft-input-label--text {
243
- color: ${ge.disabledTextColor};
243
+ color: ${be.disabledTextColor};
244
244
  }
245
245
 
246
246
  .ft-input-label--hidden-text {
@@ -256,17 +256,17 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
256
256
  overflow: hidden;
257
257
  white-space: nowrap;
258
258
  text-overflow: ellipsis;
259
- padding: ${ge.verticalSpacing} 4px;
260
- margin: calc(${ge.verticalSpacing} * -1) 0;
259
+ padding: ${be.verticalSpacing} 4px;
260
+ margin: calc(${be.verticalSpacing} * -1) 0;
261
261
  }
262
262
 
263
263
  .ft-input-label--raised .ft-input-label--text {
264
- ${e.setVariable(St.fontSize,ge.raisedFontSize)};
265
- ${e.setVariable(St.lineHeight,ge.raisedFontSize)};
264
+ ${e.setVariable(Ot.fontSize,be.raisedFontSize)};
265
+ ${e.setVariable(Ot.lineHeight,be.raisedFontSize)};
266
266
  }
267
267
 
268
268
  .ft-input-label--raised .ft-input-label--floating-text {
269
- top: ${ge.verticalSpacing};
269
+ top: ${be.verticalSpacing};
270
270
  }
271
271
 
272
272
  .ft-input-label--outlined .ft-input-label--text,
@@ -279,27 +279,27 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
279
279
  .ft-input-label--outlined:before {
280
280
  border-left-width: 1px;
281
281
  border-left-style: solid;
282
- border-radius: ${ge.borderRadiusS} 0 0 ${ge.borderRadiusS};
282
+ border-radius: ${be.borderRadiusS} 0 0 ${be.borderRadiusS};
283
283
  }
284
284
 
285
285
  .ft-input-label--outlined:after {
286
286
  border-right-width: 1px;
287
287
  border-right-style: solid;
288
- border-radius: 0 ${ge.borderRadiusS} ${ge.borderRadiusS} 0;
288
+ border-radius: 0 ${be.borderRadiusS} ${be.borderRadiusS} 0;
289
289
  }
290
290
 
291
291
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
292
292
  padding: 2px 4px;
293
- z-index: ${ge.raisedZIndex};
294
- background-color: ${ge.colorSurface};
295
- border-radius: ${ge.borderRadiusS};
293
+ z-index: ${be.raisedZIndex};
294
+ background-color: ${be.colorSurface};
295
+ border-radius: ${be.borderRadiusS};
296
296
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
297
297
  }
298
298
 
299
299
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
300
300
  border-top: none;
301
301
  }
302
- `],xe([o.property({type:String})],ye.prototype,"text",void 0),xe([o.property({type:Boolean})],ye.prototype,"raised",void 0),xe([o.property({type:Boolean})],ye.prototype,"outlined",void 0),xe([o.property({type:Boolean})],ye.prototype,"disabled",void 0),xe([o.property({type:Boolean})],ye.prototype,"error",void 0),e.customElement("ft-input-label")(ye);var be=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const me=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ve={color:me,backgroundColor:e.FtCssVariable.extend("--ft-ripple-background-color",me),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")},$e=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),we=$e,ze=e.FtCssVariable.extend("--ft-ripple-background-color",$e),ke=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),Se=ke,Ee=e.FtCssVariable.extend("--ft-ripple-background-color",ke);class Oe extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
302
+ `],ge([o.property({type:String})],me.prototype,"text",void 0),ge([o.property({type:Boolean})],me.prototype,"raised",void 0),ge([o.property({type:Boolean})],me.prototype,"outlined",void 0),ge([o.property({type:Boolean})],me.prototype,"disabled",void 0),ge([o.property({type:Boolean})],me.prototype,"error",void 0),e.customElement("ft-input-label")(me);var ve=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const $e=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),we={color:$e,backgroundColor:e.FtCssVariable.extend("--ft-ripple-background-color",$e),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")},ze=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),ke=ze,Se=e.FtCssVariable.extend("--ft-ripple-background-color",ze),Ee=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),Oe=Ee,je=e.FtCssVariable.extend("--ft-ripple-background-color",Ee);class Ce extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
303
303
  <style>
304
304
  .ft-ripple .ft-ripple--effect,
305
305
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -316,7 +316,7 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
316
316
  <div class="ft-ripple--background"></div>
317
317
  <div class="ft-ripple--effect"></div>
318
318
  </div>
319
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Oe.elementDefinitions={},Oe.styles=i.css`
319
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ce.elementDefinitions={},Ce.styles=i.css`
320
320
  :host {
321
321
  display: contents;
322
322
  }
@@ -338,27 +338,27 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
338
338
  }
339
339
 
340
340
  .ft-ripple .ft-ripple--background {
341
- background-color: ${ve.backgroundColor};
341
+ background-color: ${we.backgroundColor};
342
342
  }
343
343
 
344
344
  .ft-ripple .ft-ripple--effect {
345
- background-color: ${ve.color};
345
+ background-color: ${we.color};
346
346
  }
347
347
 
348
348
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
349
- background-color: ${Ee};
349
+ background-color: ${je};
350
350
  }
351
351
 
352
352
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
353
- background-color: ${Se};
353
+ background-color: ${Oe};
354
354
  }
355
355
 
356
356
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
357
- background-color: ${ze};
357
+ background-color: ${Se};
358
358
  }
359
359
 
360
360
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
361
- background-color: ${we};
361
+ background-color: ${ke};
362
362
  }
363
363
 
364
364
  .ft-ripple .ft-ripple--background {
@@ -390,25 +390,25 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
390
390
  }
391
391
 
392
392
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
393
- opacity: ${ve.opacityContentOnSurfaceHover};
393
+ opacity: ${we.opacityContentOnSurfaceHover};
394
394
  }
395
395
 
396
396
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
397
- opacity: ${ve.opacityContentOnSurfaceSelected};
397
+ opacity: ${we.opacityContentOnSurfaceSelected};
398
398
  }
399
399
 
400
400
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
401
- opacity: ${ve.opacityContentOnSurfaceFocused};
401
+ opacity: ${we.opacityContentOnSurfaceFocused};
402
402
  }
403
403
 
404
404
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
405
- opacity: ${ve.opacityContentOnSurfacePressed};
405
+ opacity: ${we.opacityContentOnSurfacePressed};
406
406
  transform: translate(-50%, -50%) scale(1);
407
407
  }
408
- `,be([o.property({type:Boolean})],Oe.prototype,"primary",void 0),be([o.property({type:Boolean})],Oe.prototype,"secondary",void 0),be([o.property({type:Boolean})],Oe.prototype,"unbounded",void 0),be([o.property({type:Boolean})],Oe.prototype,"activated",void 0),be([o.property({type:Boolean})],Oe.prototype,"selected",void 0),be([o.property({type:Boolean})],Oe.prototype,"disabled",void 0),be([o.state()],Oe.prototype,"hovered",void 0),be([o.state()],Oe.prototype,"focused",void 0),be([o.state()],Oe.prototype,"pressed",void 0),be([o.state()],Oe.prototype,"rippling",void 0),be([o.state()],Oe.prototype,"rippleSize",void 0),be([o.state()],Oe.prototype,"originX",void 0),be([o.state()],Oe.prototype,"originY",void 0),be([o.query(".ft-ripple")],Oe.prototype,"ripple",void 0),be([o.query(".ft-ripple--effect")],Oe.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Oe);var je=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Ne={fontSize:e.FtCssVariable.create("--ft-text-area-font-size","SIZE","14px"),labelSize:e.FtCssVariable.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariable.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariable.extend("--ft-text-area-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")};class Ie extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return i.html`
408
+ `,ve([o.property({type:Boolean})],Ce.prototype,"primary",void 0),ve([o.property({type:Boolean})],Ce.prototype,"secondary",void 0),ve([o.property({type:Boolean})],Ce.prototype,"unbounded",void 0),ve([o.property({type:Boolean})],Ce.prototype,"activated",void 0),ve([o.property({type:Boolean})],Ce.prototype,"selected",void 0),ve([o.property({type:Boolean})],Ce.prototype,"disabled",void 0),ve([o.state()],Ce.prototype,"hovered",void 0),ve([o.state()],Ce.prototype,"focused",void 0),ve([o.state()],Ce.prototype,"pressed",void 0),ve([o.state()],Ce.prototype,"rippling",void 0),ve([o.state()],Ce.prototype,"rippleSize",void 0),ve([o.state()],Ce.prototype,"originX",void 0),ve([o.state()],Ce.prototype,"originY",void 0),ve([o.query(".ft-ripple")],Ce.prototype,"ripple",void 0),ve([o.query(".ft-ripple--effect")],Ce.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Ce);var Ne=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Ie={fontSize:e.FtCssVariable.create("--ft-text-area-font-size","SIZE","14px"),labelSize:e.FtCssVariable.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariable.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariable.extend("--ft-text-area-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")};class De extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return i.html`
409
409
  <style>
410
410
  .ft-text-area--main-panel {
411
- height: calc(4 * ${Ne.verticalSpacing} + ${Ne.labelSize} + ${Ne.fontSize} + ${this.height}px);
411
+ height: calc(4 * ${Ie.verticalSpacing} + ${Ie.labelSize} + ${Ie.fontSize} + ${this.height}px);
412
412
  }
413
413
  </style>
414
414
  <div class="${s.classMap(t)}">
@@ -443,7 +443,7 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
443
443
  ${this.helper}
444
444
  </ft-typography>`:void 0}
445
445
  </div>
446
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Ie.elementDefinitions={"ft-input-label":ye,"ft-resizer":ue,"ft-ripple":Oe,"ft-typography":te},Ie.styles=[Pt,i.css`
446
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}De.elementDefinitions={"ft-input-label":me,"ft-resizer":ye,"ft-ripple":Ce,"ft-typography":ie},De.styles=[Xt,i.css`
447
447
  *:focus {
448
448
  outline: none;
449
449
  }
@@ -455,10 +455,10 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
455
455
  }
456
456
 
457
457
  ft-input-label {
458
- ${e.setVariable(ge.fontSize,Ne.fontSize)};
459
- ${e.setVariable(ge.raisedFontSize,Ne.labelSize)};
460
- ${e.setVariable(ge.verticalSpacing,Ne.verticalSpacing)};
461
- ${e.setVariable(ge.horizontalSpacing,i.css`calc(${Ne.horizontalSpacing} - 4px)`)};
458
+ ${e.setVariable(be.fontSize,Ie.fontSize)};
459
+ ${e.setVariable(be.raisedFontSize,Ie.labelSize)};
460
+ ${e.setVariable(be.verticalSpacing,Ie.verticalSpacing)};
461
+ ${e.setVariable(be.horizontalSpacing,i.css`calc(${Ie.horizontalSpacing} - 4px)`)};
462
462
  }
463
463
 
464
464
  .ft-text-area--main-panel {
@@ -476,8 +476,8 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
476
476
  }
477
477
 
478
478
  .ft-text-area--input-panel ft-ripple {
479
- ${e.setVariable(ve.opacityContentOnSurfaceHover,"0.08")};
480
- ${e.setVariable(ve.opacityContentOnSurfacePressed,"0.04")};
479
+ ${e.setVariable(we.opacityContentOnSurfaceHover,"0.08")};
480
+ ${e.setVariable(we.opacityContentOnSurfacePressed,"0.04")};
481
481
  }
482
482
 
483
483
  .ft-text-area--input {
@@ -489,12 +489,12 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
489
489
  align-self: stretch;
490
490
  resize: none;
491
491
 
492
- ${e.setVariable(bt.fontSize,Ne.fontSize)};
493
- ${e.setVariable(bt.lineHeight,Ne.fontSize)};
494
- color: ${Ne.colorOnSurface};
492
+ ${e.setVariable(vt.fontSize,Ie.fontSize)};
493
+ ${e.setVariable(vt.lineHeight,Ie.fontSize)};
494
+ color: ${Ie.colorOnSurface};
495
495
 
496
- padding: 0 ${Ne.horizontalSpacing};
497
- margin: calc(${Ne.verticalSpacing} + ${Ne.labelSize} / 2) 0 ${Ne.verticalSpacing} 0;
496
+ padding: 0 ${Ie.horizontalSpacing};
497
+ margin: calc(${Ie.verticalSpacing} + ${Ie.labelSize} / 2) 0 ${Ie.verticalSpacing} 0;
498
498
 
499
499
  border: none;
500
500
  background: none;
@@ -503,7 +503,7 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
503
503
  }
504
504
 
505
505
  .ft-text-area--disabled .ft-text-area--input {
506
- color: ${Ne.colorOnSurfaceDisabled};
506
+ color: ${Ie.colorOnSurfaceDisabled};
507
507
  }
508
508
 
509
509
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -511,32 +511,32 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
511
511
  }
512
512
 
513
513
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
514
- ${e.setVariable(ge.borderColor,Ne.colorPrimary)};
515
- ${e.setVariable(ge.textColor,Ne.colorPrimary)};
514
+ ${e.setVariable(be.borderColor,Ie.colorPrimary)};
515
+ ${e.setVariable(be.textColor,Ie.colorPrimary)};
516
516
  }
517
517
 
518
518
  .ft-text-area--filled .ft-text-area--input-panel {
519
- border-radius: ${Ne.borderRadiusS} ${Ne.borderRadiusS} 0 0;
519
+ border-radius: ${Ie.borderRadiusS} ${Ie.borderRadiusS} 0 0;
520
520
  }
521
521
 
522
522
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
523
523
  align-self: stretch;
524
- margin-bottom: ${Ne.verticalSpacing};
525
- margin-top: calc(${Ne.labelSize} + 2 * ${Ne.verticalSpacing});
524
+ margin-bottom: ${Ie.verticalSpacing};
525
+ margin-top: calc(${Ie.labelSize} + 2 * ${Ie.verticalSpacing});
526
526
  }
527
527
 
528
528
  .ft-text-area--outlined .ft-text-area--input-panel {
529
- border-radius: ${Ne.borderRadiusS};
529
+ border-radius: ${Ie.borderRadiusS};
530
530
  }
531
531
 
532
532
  .ft-text-area--helper-text {
533
- padding: 0 12px 0 ${Ne.horizontalSpacing};
534
- color: ${Ne.helperColor};
533
+ padding: 0 12px 0 ${Ie.horizontalSpacing};
534
+ color: ${Ie.helperColor};
535
535
  }
536
536
 
537
537
  .ft-text-area--in-error .ft-text-area--input,
538
538
  .ft-text-area--in-error .ft-text-area--helper-text {
539
- color: ${Ne.colorError};
539
+ color: ${Ie.colorError};
540
540
  }
541
541
 
542
542
  ft-resizer {
@@ -544,4 +544,4 @@ const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;
544
544
  right: 0;
545
545
  bottom: 0;
546
546
  }
547
- `],je([o.property({type:String})],Ie.prototype,"label",void 0),je([o.property({reflect:!0})],Ie.prototype,"value",void 0),je([o.property({type:String})],Ie.prototype,"helper",void 0),je([o.property({type:Boolean})],Ie.prototype,"outlined",void 0),je([o.property({type:Boolean})],Ie.prototype,"disabled",void 0),je([o.property({type:Boolean})],Ie.prototype,"error",void 0),je([o.property({type:Number,reflect:!0})],Ie.prototype,"height",void 0),je([o.query("textarea")],Ie.prototype,"textarea",void 0),je([o.state()],Ie.prototype,"focused",void 0),e.customElement("ft-text-area")(Ie),t.FtTextArea=Ie,t.FtTextAreaCssVariables=Ne,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
547
+ `],Ne([o.property({type:String})],De.prototype,"label",void 0),Ne([o.property({reflect:!0})],De.prototype,"value",void 0),Ne([o.property({type:String})],De.prototype,"helper",void 0),Ne([o.property({type:Boolean})],De.prototype,"outlined",void 0),Ne([o.property({type:Boolean})],De.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],De.prototype,"error",void 0),Ne([o.property({type:Number,reflect:!0})],De.prototype,"height",void 0),Ne([o.query("textarea")],De.prototype,"textarea",void 0),Ne([o.state()],De.prototype,"focused",void 0),e.customElement("ft-text-area")(De),t.FtTextArea=De,t.FtTextAreaCssVariables=Ie,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);