@fluid-topics/ft-text-area 0.1.16 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,71 +1,71 @@
1
- !function(t,e,i,r,a,o){
1
+ !function(t,e,i,o,s,r){
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- var s;const p=globalThis.trustedTypes,n=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,c=`lit$${(Math.random()+"").slice(9)}$`,l="?"+c,d=`<${l}>`,f=document,u=(t="")=>f.createComment(t),h=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,v=/>/g,b=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,x=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),S=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),A=new WeakMap,O=f.createTreeWalker(f,129,null,!1),T=(t,e)=>{const i=t.length-1,r=[];let a,o=2===e?"<svg>":"",s=y;for(let e=0;e<i;e++){const i=t[e];let p,n,l=-1,f=0;for(;f<i.length&&(s.lastIndex=f,n=s.exec(i),null!==n);)f=s.lastIndex,s===y?"!--"===n[1]?s=g:void 0!==n[1]?s=v:void 0!==n[2]?(w.test(n[2])&&(a=RegExp("</"+n[2],"g")),s=b):void 0!==n[3]&&(s=b):s===b?">"===n[0]?(s=null!=a?a:y,l=-1):void 0===n[1]?l=-2:(l=s.lastIndex-n[2].length,p=n[1],s=void 0===n[3]?b:'"'===n[3]?$:x):s===$||s===x?s=b:s===g||s===v?s=y:(s=b,a=void 0);const u=s===b&&t[e+1].startsWith("/>")?" ":"";o+=s===y?i+d:l>=0?(r.push(p),i.slice(0,l)+"$lit$"+i.slice(l)+c+u):i+c+(-2===l?(r.push(void 0),e):u)}const p=o+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==n?n.createHTML(p):p,r]};class _{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let a=0,o=0;const s=t.length-1,n=this.parts,[d,f]=T(t,e);if(this.el=_.createElement(d,i),O.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=O.nextNode())&&n.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(c)){const i=f[o++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(c),e=/([.?@])?(.*)/.exec(i);n.push({type:1,index:a,name:e[2],strings:t,ctor:"."===e[1]?F:"?"===e[1]?R:"@"===e[1]?N:C})}else n.push({type:6,index:a})}for(const e of t)r.removeAttribute(e)}if(w.test(r.tagName)){const t=r.textContent.split(c),e=t.length-1;if(e>0){r.textContent=p?p.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],u()),O.nextNode(),n.push({type:2,index:++a});r.append(t[e],u())}}}else if(8===r.nodeType)if(r.data===l)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(c,t+1));)n.push({type:7,index:a}),t+=c.length-1}a++}}static createElement(t,e){const i=f.createElement("template");return i.innerHTML=t,i}}function E(t,e,i=t,r){var a,o,s,p;if(e===S)return e;let n=void 0!==r?null===(a=i._$Cl)||void 0===a?void 0:a[r]:i._$Cu;const c=h(e)?void 0:e._$litDirective$;return(null==n?void 0:n.constructor)!==c&&(null===(o=null==n?void 0:n._$AO)||void 0===o||o.call(n,!1),void 0===c?n=void 0:(n=new c(t),n._$AT(t,i,r)),void 0!==r?(null!==(s=(p=i)._$Cl)&&void 0!==s?s:p._$Cl=[])[r]=n:i._$Cu=n),void 0!==n&&(e=E(t,n._$AS(t,e.values),n,r)),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:r}=this._$AD,a=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:f).importNode(i,!0);O.currentNode=a;let o=O.nextNode(),s=0,p=0,n=r[0];for(;void 0!==n;){if(s===n.index){let e;2===n.type?e=new D(o,o.nextSibling,this,t):1===n.type?e=new n.ctor(o,n.name,n.strings,this,t):6===n.type&&(e=new B(o,this,t)),this.v.push(e),n=r[++p]}s!==(null==n?void 0:n.index)&&(o=O.nextNode(),s++)}return a}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,r){var a;this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(a=null==r?void 0:r.isConnected)||void 0===a||a}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=E(this,t,e),h(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==S&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return m(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!==k&&h(this._$AH)?this._$AA.nextSibling.data=t:this.S(f.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,a="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=_.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===a)this._$AH.m(i);else{const t=new I(a,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=A.get(t.strings);return void 0===e&&A.set(t.strings,e=new _(t)),e}A(t){m(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const a of t)r===e.length?e.push(i=new D(this.M(u()),this.M(u()),this,this.options)):i=e[r],i._$AI(a),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 C{constructor(t,e,i,r,a){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=a,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=k}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const a=this.strings;let o=!1;if(void 0===a)t=E(this,t,e,0),o=!h(t)||t!==this._$AH&&t!==S,o&&(this._$AH=t);else{const r=t;let s,p;for(t=a[0],s=0;s<a.length-1;s++)p=E(this,r[i+s],e,s),p===S&&(p=this._$AH[s]),o||(o=!h(p)||p!==this._$AH[s]),p===k?t=k:t!==k&&(t+=(null!=p?p:"")+a[s+1]),this._$AH[s]=p}o&&!r&&this.k(t)}k(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class F extends C{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===k?void 0:t}}const j=p?p.emptyScript:"";class R extends C{constructor(){super(...arguments),this.type=4}k(t){t&&t!==k?this.element.setAttribute(this.name,j):this.element.removeAttribute(this.name)}}class N extends C{constructor(t,e,i,r,a){super(t,e,i,r,a),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=E(this,t,e,0))&&void 0!==i?i:k)===S)return;const r=this._$AH,a=t===k&&r!==k||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==k&&(r===k||a);a&&this.element.removeEventListener(this.name,this,r),o&&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 B{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){E(this,t)}}const H=window.litHtmlPolyfillSupport;null==H||H(_,D),(null!==(s=globalThis.litHtmlVersions)&&void 0!==s?s: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)}$`,h="?"+p,f=`<${h}>`,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,m=/>/g,b=/>|[ \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),S=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),O=new WeakMap,j=d.createTreeWalker(d,129,null,!1),E=(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,h=-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=m:void 0!==a[2]?(w.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=b):void 0!==a[3]&&(n=b):n===b?">"===a[0]?(n=null!=s?s:y,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?b:'"'===a[3]?$:v):n===$||n===v?n=b:n===g||n===m?n=y:(n=b,s=void 0);const c=n===b&&t[e+1].startsWith("/>")?" ":"";r+=n===y?i+f:h>=0?(o.push(l),i.slice(0,h)+"$lit$"+i.slice(h)+p+c):i+p+(-2===h?(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,[f,d]=E(t,e);if(this.el=N.createElement(f,i),j.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=j.nextNode())&&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]?M:"@"===e[1]?T: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()),j.nextNode(),a.push({type:2,index:++s});o.append(t[e],c())}}}else if(8===o.nodeType)if(o.data===h)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===S)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);j.currentNode=s;let r=j.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new 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 B(r,this,t)),this.v.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=j.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=k,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===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==S&&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!==k&&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=O.get(t.strings);return void 0===e&&O.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=k,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=k}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!==S,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===S&&(l=this._$AH[n]),r||(r=!u(l)||l!==this._$AH[n]),l===k?t=k:t!==k&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.k(t)}k(t){t===k?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===k?void 0:t}}const Z=l?l.emptyScript:"";class M extends A{constructor(){super(...arguments),this.type=4}k(t){t&&t!==k?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class T 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:k)===S)return;const o=this._$AH,s=t===k&&o!==k||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==k&&(o===k||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 B{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");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const M=t=>({_$litStatic$:t}),U=new Map,V=(t=>(e,...i)=>{var r;const a=i.length;let o,s;const p=[],n=[];let c,l=0,d=!1;for(;l<a;){for(c=e[l];l<a&&void 0!==(s=i[l],o=null===(r=s)||void 0===r?void 0:r._$litStatic$);)c+=o+e[++l],d=!0;n.push(s),p.push(c),l++}if(l===a&&p.push(e[a]),d){const t=p.join("$$lit$$");void 0===(e=U.get(t))&&(p.raw=p,U.set(t,e=p)),i=n}return t(e,...i)})(z);var P,G=function(t,e,i,r){for(var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(a=t[p])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>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 Z=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.titleFont),L=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.contentFont),W={fontFamily:L,fontSize:a.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:a.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:a.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:a.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:a.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},q=a.FtCssVariable.extend("--ft-typography-title-font-family",Z),K=a.FtCssVariable.extend("--ft-typography-title-font-size",W.fontSize,"20px"),X=a.FtCssVariable.extend("--ft-typography-title-font-weight",W.fontWeight,"normal"),Y=a.FtCssVariable.extend("--ft-typography-title-letter-spacing",W.letterSpacing,"0.15px"),J=a.FtCssVariable.extend("--ft-typography-title-line-height",W.lineHeight,"24px"),Q=a.FtCssVariable.extend("--ft-typography-title-text-transform",W.textTransform,"inherit"),tt=a.FtCssVariable.extend("--ft-typography-title-dense-font-family",Z),et=a.FtCssVariable.extend("--ft-typography-title-dense-font-size",W.fontSize,"14px"),it=a.FtCssVariable.extend("--ft-typography-title-dense-font-weight",W.fontWeight,"normal"),rt=a.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",W.letterSpacing,"0.105px"),at=a.FtCssVariable.extend("--ft-typography-title-dense-line-height",W.lineHeight,"24px"),ot=a.FtCssVariable.extend("--ft-typography-title-dense-text-transform",W.textTransform,"inherit"),st=a.FtCssVariable.extend("--ft-typography-subtitle1-font-family",L),pt=a.FtCssVariable.extend("--ft-typography-subtitle1-font-size",W.fontSize,"16px"),nt=a.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",W.fontWeight,"600"),ct=a.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",W.letterSpacing,"0.144px"),lt=a.FtCssVariable.extend("--ft-typography-subtitle1-line-height",W.lineHeight,"24px"),dt=a.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",W.textTransform,"inherit"),ft=a.FtCssVariable.extend("--ft-typography-subtitle2-font-family",L),ut=a.FtCssVariable.extend("--ft-typography-subtitle2-font-size",W.fontSize,"14px"),ht=a.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",W.fontWeight,"normal"),mt=a.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",W.letterSpacing,"0.098px"),yt=a.FtCssVariable.extend("--ft-typography-subtitle2-line-height",W.lineHeight,"24px"),gt=a.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",W.textTransform,"inherit"),vt={fontFamily:a.FtCssVariable.extend("--ft-typography-body1-font-family",L),fontSize:a.FtCssVariable.extend("--ft-typography-body1-font-size",W.fontSize,"16px"),fontWeight:a.FtCssVariable.extend("--ft-typography-body1-font-weight",W.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-body1-letter-spacing",W.letterSpacing,"0.496px"),lineHeight:a.FtCssVariable.extend("--ft-typography-body1-line-height",W.lineHeight,"24px"),textTransform:a.FtCssVariable.extend("--ft-typography-body1-text-transform",W.textTransform,"inherit")},bt=a.FtCssVariable.extend("--ft-typography-body2-font-family",L),xt=a.FtCssVariable.extend("--ft-typography-body2-font-size",W.fontSize,"14px"),$t=a.FtCssVariable.extend("--ft-typography-body2-font-weight",W.fontWeight,"normal"),wt=a.FtCssVariable.extend("--ft-typography-body2-letter-spacing",W.letterSpacing,"0.252px"),zt=a.FtCssVariable.extend("--ft-typography-body2-line-height",W.lineHeight,"20px"),St=a.FtCssVariable.extend("--ft-typography-body2-text-transform",W.textTransform,"inherit"),kt={fontFamily:a.FtCssVariable.extend("--ft-typography-caption-font-family",L),fontSize:a.FtCssVariable.extend("--ft-typography-caption-font-size",W.fontSize,"12px"),fontWeight:a.FtCssVariable.extend("--ft-typography-caption-font-weight",W.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-caption-letter-spacing",W.letterSpacing,"0.396px"),lineHeight:a.FtCssVariable.extend("--ft-typography-caption-line-height",W.lineHeight,"16px"),textTransform:a.FtCssVariable.extend("--ft-typography-caption-text-transform",W.textTransform,"inherit")},At=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",L),Ot=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",W.fontSize,"10px"),Tt=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",W.fontWeight,"normal"),_t=a.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",W.letterSpacing,"0.33px"),Et=a.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",W.lineHeight,"16px"),It=a.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",W.textTransform,"inherit"),Dt=a.FtCssVariable.extend("--ft-typography-overline-font-family",L),Ct=a.FtCssVariable.extend("--ft-typography-overline-font-size",W.fontSize,"10px"),Ft=a.FtCssVariable.extend("--ft-typography-overline-font-weight",W.fontWeight,"normal"),jt=a.FtCssVariable.extend("--ft-typography-overline-letter-spacing",W.letterSpacing,"1.5px"),Rt=a.FtCssVariable.extend("--ft-typography-overline-line-height",W.lineHeight,"16px"),Nt=a.FtCssVariable.extend("--ft-typography-overline-text-transform",W.textTransform,"uppercase"),Bt=a.FtCssVariable.extend("--ft-typography-button-font-family",L),Ht=a.FtCssVariable.extend("--ft-typography-button-font-size",W.fontSize,"14px"),Mt=a.FtCssVariable.extend("--ft-typography-button-font-weight",W.fontWeight,"600"),Ut=a.FtCssVariable.extend("--ft-typography-button-letter-spacing",W.letterSpacing,"1.246px"),Vt=a.FtCssVariable.extend("--ft-typography-button-line-height",W.lineHeight,"16px"),Pt=a.FtCssVariable.extend("--ft-typography-button-text-transform",W.textTransform,"uppercase"),Gt=e.css`
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,h=0,f=!1;for(;h<s;){for(p=e[h];h<s&&void 0!==(n=i[h],r=null===(o=n)||void 0===o?void 0:o._$litStatic$);)p+=r+e[++h],f=!0;a.push(n),l.push(p),h++}if(h===s&&l.push(e[s]),f){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"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"24px"),ft=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"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",L.lineHeight,"24px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",L.textTransform,"inherit"),mt={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")},bt=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"),St=e.FtCssVariable.extend("--ft-typography-body2-text-transform",L.textTransform,"inherit"),kt={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")},Ot=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",q),jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",L.fontSize,"10px"),Et=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"),Mt=e.FtCssVariable.extend("--ft-typography-overline-line-height",L.lineHeight,"16px"),Tt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",L.textTransform,"uppercase"),Bt=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`
14
14
  .ft-typography--title {
15
- font-family: ${q};
16
- font-size: ${K};
15
+ font-family: ${P};
16
+ font-size: ${V};
17
17
  font-weight: ${X};
18
18
  letter-spacing: ${Y};
19
19
  line-height: ${J};
20
20
  text-transform: ${Q};
21
21
  }
22
- `,Zt=e.css`
22
+ `,Gt=i.css`
23
23
  .ft-typography--title-dense {
24
24
  font-family: ${tt};
25
25
  font-size: ${et};
26
26
  font-weight: ${it};
27
- letter-spacing: ${rt};
28
- line-height: ${at};
29
- text-transform: ${ot};
27
+ letter-spacing: ${ot};
28
+ line-height: ${st};
29
+ text-transform: ${rt};
30
30
  }
31
- `,Lt=e.css`
31
+ `,qt=i.css`
32
32
  .ft-typography--subtitle1 {
33
- font-family: ${st};
34
- font-size: ${pt};
35
- font-weight: ${nt};
36
- letter-spacing: ${ct};
37
- line-height: ${lt};
38
- text-transform: ${dt};
33
+ font-family: ${nt};
34
+ font-size: ${lt};
35
+ font-weight: ${at};
36
+ letter-spacing: ${pt};
37
+ line-height: ${ht};
38
+ text-transform: ${ft};
39
39
  }
40
- `,Wt=e.css`
40
+ `,Lt=i.css`
41
41
  .ft-typography--subtitle2 {
42
- font-family: ${ft};
43
- font-size: ${ut};
44
- font-weight: ${ht};
45
- letter-spacing: ${mt};
42
+ font-family: ${dt};
43
+ font-size: ${ct};
44
+ font-weight: ${ut};
45
+ letter-spacing: ${xt};
46
46
  line-height: ${yt};
47
47
  text-transform: ${gt};
48
48
  }
49
49
 
50
- `,qt=e.css`
50
+ `,Pt=i.css`
51
51
  .ft-typography--body1 {
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};
52
+ font-family: ${mt.fontFamily};
53
+ font-size: ${mt.fontSize};
54
+ font-weight: ${mt.fontWeight};
55
+ letter-spacing: ${mt.letterSpacing};
56
+ line-height: ${mt.lineHeight};
57
+ text-transform: ${mt.textTransform};
58
58
  }
59
- `,Kt=e.css`
59
+ `,Vt=i.css`
60
60
  .ft-typography--body2 {
61
61
  font-family: ${bt};
62
- font-size: ${xt};
62
+ font-size: ${vt};
63
63
  font-weight: ${$t};
64
64
  letter-spacing: ${wt};
65
65
  line-height: ${zt};
66
66
  text-transform: ${St};
67
67
  }
68
- `,Xt=e.css`
68
+ `,Xt=i.css`
69
69
  .ft-typography--caption {
70
70
  font-family: ${kt.fontFamily};
71
71
  font-size: ${kt.fontSize};
@@ -74,458 +74,322 @@ const M=t=>({_$litStatic$:t}),U=new Map,V=(t=>(e,...i)=>{var r;const a=i.length;
74
74
  line-height: ${kt.lineHeight};
75
75
  text-transform: ${kt.textTransform};
76
76
  }
77
- `,Yt=e.css`
77
+ `,Yt=i.css`
78
78
  .ft-typography--breadcrumb {
79
- font-family: ${At};
80
- font-size: ${Ot};
81
- font-weight: ${Tt};
82
- letter-spacing: ${_t};
83
- line-height: ${Et};
84
- text-transform: ${It};
79
+ font-family: ${Ot};
80
+ font-size: ${jt};
81
+ font-weight: ${Et};
82
+ letter-spacing: ${Nt};
83
+ line-height: ${It};
84
+ text-transform: ${Ct};
85
85
  }
86
- `,Jt=e.css`
86
+ `,Jt=i.css`
87
87
  .ft-typography--overline {
88
88
  font-family: ${Dt};
89
- font-size: ${Ct};
90
- font-weight: ${Ft};
91
- letter-spacing: ${jt};
92
- line-height: ${Rt};
93
- text-transform: ${Nt};
89
+ font-size: ${At};
90
+ font-weight: ${_t};
91
+ letter-spacing: ${Zt};
92
+ line-height: ${Mt};
93
+ text-transform: ${Tt};
94
94
  }
95
- `,Qt=e.css`
95
+ `,Qt=i.css`
96
96
  .ft-typography--button {
97
97
  font-family: ${Bt};
98
- font-size: ${Ht};
99
- font-weight: ${Mt};
100
- letter-spacing: ${Ut};
101
- line-height: ${Vt};
102
- text-transform: ${Pt};
98
+ font-size: ${Ft};
99
+ font-weight: ${Ut};
100
+ letter-spacing: ${Wt};
101
+ line-height: ${Rt};
102
+ text-transform: ${Ht};
103
103
  }
104
- `;let te=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=P.body1}getStyles(){return[Gt,Zt,Lt,Wt,qt,Kt,Xt,Yt,Jt,Qt,e.css`
105
- .ft-typography {
106
- vertical-align: inherit;
107
- }
108
- `]}getTemplate(){return this.element?V`
109
- <${M(this.element)}
104
+ `;class te extends e.FtLitElement{constructor(){super(...arguments),this.variant=H.body1}render(){return this.element?R`
105
+ <${U(this.element)}
110
106
  class="ft-typography ft-typography--${this.variant}">
111
107
  <slot></slot>
112
- </${M(this.element)}>
113
- `:V`
108
+ </${U(this.element)}>
109
+ `:R`
114
110
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
115
- `}};G([i.property()],te.prototype,"element",void 0),G([i.property()],te.prototype,"variant",void 0),te=G([a.customElement("ft-typography")],te);
116
- /*! *****************************************************************************
117
- Copyright (c) Microsoft Corporation.
118
-
119
- Permission to use, copy, modify, and/or distribute this software for any
120
- purpose with or without fee is hereby granted.
121
-
122
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
123
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
124
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
125
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
126
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
127
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
128
- PERFORMANCE OF THIS SOFTWARE.
129
- ***************************************************************************** */
130
- var ee=function(t,e){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ee(t,e)};var ie=function(){return ie=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},ie.apply(this,arguments)};function re(t,e,i,r){for(var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(a=t[p])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s}function ae(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
131
- /**
132
- * @license
133
- * Copyright 2021 Google LLC
134
- * SPDX-LIcense-Identifier: Apache-2.0
135
- */const oe=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
136
- /**
137
- * @license
138
- * Copyright 2018 Google LLC
139
- * SPDX-License-Identifier: Apache-2.0
140
- */;let se=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};se.styles=[oe],se=re([i.customElement("mwc-icon")],se);var pe=function(t,e,i,r){for(var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(a=t[p])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class ne extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const ce=a.FtCssVariable.external(a.designSystemVariables.colorOutline,"Design system"),le=a.FtCssVariable.external(a.designSystemVariables.colorOnSurfaceMedium,"Design system");let de=class extends a.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)}}getStyles(){return[a.noTextSelect,e.css`
141
- :host {
142
- display: block;
143
- }
144
-
111
+ `}}var ee,ie;te.styles=[Kt,Gt,qt,Lt,Pt,Vt,Xt,Yt,Jt,Qt,i.css`
112
+ .ft-typography {
113
+ vertical-align: inherit;
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`
116
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
117
+ ${r.unsafeHTML(this.getIcon())}
118
+ <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
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`
121
+ :host, i.ft-icon {
122
+ display: inline-block;
123
+ width: ${re};
124
+ height: ${re};
125
+ text-align: center;
126
+ }
127
+
128
+ i.ft-icon {
129
+ font-size: ${re};
130
+ line-height: 1;
131
+ font-weight: normal;
132
+ text-transform: none;
133
+ font-style: normal;
134
+ font-variant: normal;
135
+ speak: none;
136
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
137
+ text-rendering: auto;
138
+ -webkit-font-smoothing: antialiased;
139
+ -moz-osx-font-smoothing: grayscale;
140
+ }
141
+
142
+ .ft-icon--fluid-topics {
143
+ font-family: ${ne}, ft-icons, fticons, sans-serif;
144
+ }
145
+
146
+ .ft-icon--file-format {
147
+ font-family: ${le}, ft-mime, sans-serif;
148
+ }
149
+
150
+ .ft-icon--material {
151
+ font-family: ${ae}, "Material Icons", sans-serif;
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 he=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 fe 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`
154
+ <style>
145
155
  .ft-resizer {
146
- display: flex;
147
- cursor: ${e.unsafeCSS(this.cursor)}
156
+ cursor: ${i.unsafeCSS(this.cursor)}
148
157
  }
149
-
150
- mwc-icon {
151
- transform: rotate(-45deg);
152
- color: ${ce};
153
- }
154
-
155
- .ft-resizer--dragging mwc-icon,
156
- .ft-resizer:hover mwc-icon {
157
- color: ${le};
158
- }
159
- `]}getTemplate(){return e.html`
158
+ </style>
160
159
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
161
160
  @mousedown=${this.initDragFromMouse}
162
161
  @touchstart=${this.initDragFromTouch}>
163
- <mwc-icon>${this.icon}</mwc-icon>
162
+ <ft-icon variant="material">${this.icon}</ft-icon>
164
163
  </div>
165
- `}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,r=this.fixedHeight+e-this.startY;this.dispatchEvent(new ne(i,r))}};de.elementDefinitions={"mwc-icon":se},pe([i.property({type:Number})],de.prototype,"initialWidth",void 0),pe([i.property({type:Number})],de.prototype,"initialHeight",void 0),pe([i.property()],de.prototype,"icon",void 0),pe([i.property()],de.prototype,"cursor",void 0),pe([i.state()],de.prototype,"dragging",void 0),de=pe([i.customElement("ft-resizer")],de);var fe=function(t,e,i,r){for(var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(a=t[p])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const ue={fontSize:a.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:a.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:a.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:a.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:a.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:a.FtCssVariable.extend("--ft-input-label-border-color",a.designSystemVariables.colorOutline),textColor:a.FtCssVariable.extend("--ft-input-label-text-color",a.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:a.FtCssVariable.extend("--ft-input-label-disabled-text-color",a.designSystemVariables.colorOnSurfaceDisabled),colorSurface:a.FtCssVariable.external(a.designSystemVariables.colorSurface,"Design system"),borderRadiusS:a.FtCssVariable.external(a.designSystemVariables.borderRadiusS,"Design system")};let he=class extends a.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}getStyles(){return[Xt,e.css`
166
- .ft-input-label {
167
- position: absolute;
168
- inset: 0;
169
- display: flex;
170
- }
171
-
172
- .ft-input-label {
173
- border-color: ${ue.borderColor};
174
- }
175
-
176
- .ft-input-label:before,
177
- .ft-input-label:after {
178
- content: "";
179
- display: flex;
180
- border-bottom-width: 1px;
181
- border-bottom-style: solid;
182
- border-color: inherit;
183
- }
184
-
185
- .ft-input-label:before {
186
- width: ${ue.horizontalSpacing};
187
- flex-shrink: 0;
188
- }
189
-
190
- .ft-input-label:after {
191
- flex-grow: 1;
192
- flex-shrink: 1;
193
- }
194
-
195
- .ft-input-label--text {
196
- display: flex;
197
- flex-shrink: 1;
198
- position: relative;
199
- border-bottom-width: 1px;
200
- border-bottom-style: solid;
201
- border-color: inherit;
202
- color: ${ue.textColor};
203
- transition: font-size 250ms, line-height 250ms, color 250ms;
204
- ${a.setVariable(kt.fontSize,ue.fontSize)};
205
- ${a.setVariable(kt.lineHeight,ue.fontSize)};
206
- }
207
-
208
- .ft-input-label--disabled .ft-input-label--text {
209
- color: ${ue.disabledTextColor};
210
- }
211
-
212
- .ft-input-label--hidden-text {
213
- padding: 0 4px;
214
- opacity: 0;
215
- }
216
-
217
- .ft-input-label--floating-text {
218
- position: absolute;
219
- top: calc(50% - var(--ft-typography-caption-line-height) / 2);
220
- transition: top 250ms;
221
- width: calc(100% - 8px);
222
- overflow: hidden;
223
- white-space: nowrap;
224
- text-overflow: ellipsis;
225
- padding: ${ue.verticalSpacing} 4px;
226
- margin: calc(${ue.verticalSpacing} * -1) 0;
227
- }
228
-
229
- .ft-input-label--raised .ft-input-label--text {
230
- ${a.setVariable(kt.fontSize,ue.raisedFontSize)};
231
- ${a.setVariable(kt.lineHeight,ue.raisedFontSize)};
232
- }
233
-
234
- .ft-input-label--raised .ft-input-label--floating-text {
235
- top: ${ue.verticalSpacing};
236
- }
237
-
238
- .ft-input-label--outlined .ft-input-label--text,
239
- .ft-input-label--outlined:before,
240
- .ft-input-label--outlined:after {
241
- border-top-width: 1px;
242
- border-top-style: solid;
243
- }
244
-
245
- .ft-input-label--outlined:before {
246
- border-left-width: 1px;
247
- border-left-style: solid;
248
- border-radius: ${ue.borderRadiusS} 0 0 ${ue.borderRadiusS};
249
- }
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 fe(i,o))}}ue.elementDefinitions={"ft-icon":pe},ue.styles=[e.noTextSelect,i.css`
165
+ :host {
166
+ display: block;
167
+ }
250
168
 
251
- .ft-input-label--outlined:after {
252
- border-right-width: 1px;
253
- border-right-style: solid;
254
- border-radius: 0 ${ue.borderRadiusS} ${ue.borderRadiusS} 0;
255
- }
169
+ .ft-resizer {
170
+ display: flex;
171
+ }
256
172
 
257
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
258
- padding: 2px 4px;
259
- z-index: ${ue.raisedZIndex};
260
- background-color: ${ue.colorSurface};
261
- border-radius: ${ue.borderRadiusS};
262
- top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
263
- }
173
+ ft-icon {
174
+ transform: rotate(-45deg);
175
+ color: ${de};
176
+ }
264
177
 
265
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
266
- border-top: none;
267
- }
268
- `]}getTemplate(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return e.html`
269
- <div class="${r.classMap(t)}">
270
- ${this.text?e.html`
178
+ .ft-resizer--dragging ft-icon,
179
+ .ft-resizer:hover ft-icon {
180
+ color: ${ce};
181
+ }
182
+ `],he([o.property({type:Number})],ue.prototype,"initialWidth",void 0),he([o.property({type:Number})],ue.prototype,"initialHeight",void 0),he([o.property()],ue.prototype,"icon",void 0),he([o.property()],ue.prototype,"cursor",void 0),he([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 ye={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")};class ge extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!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};return i.html`
183
+ <div class="${s.classMap(t)}">
184
+ ${this.text?i.html`
271
185
  <div class="ft-input-label--text ft-typography--caption">
272
186
  <span class="ft-input-label--floating-text">${this.text}</span>
273
187
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
274
188
  </div>
275
189
  `:null}
276
190
  </div>
277
- `}};he.elementDefinitions={},fe([i.property({type:String})],he.prototype,"text",void 0),fe([i.property({type:Boolean})],he.prototype,"raised",void 0),fe([i.property({type:Boolean})],he.prototype,"outlined",void 0),fe([i.property({type:Boolean})],he.prototype,"disabled",void 0),he=fe([a.customElement("ft-input-label")],he);
278
- /**
279
- * @license
280
- * Copyright 2018 Google LLC
281
- * SPDX-License-Identifier: Apache-2.0
282
- */
283
- const me=()=>{},ye={get passive(){return!1}};document.addEventListener("x",me,ye),document.removeEventListener("x",me);
284
- /**
285
- * @license
286
- * Copyright 2018 Google LLC
287
- * SPDX-License-Identifier: Apache-2.0
288
- */
289
- class ge extends e.LitElement{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
290
- /**
291
- * @license
292
- * Copyright 2016 Google Inc.
293
- *
294
- * Permission is hereby granted, free of charge, to any person obtaining a copy
295
- * of this software and associated documentation files (the "Software"), to deal
296
- * in the Software without restriction, including without limitation the rights
297
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
298
- * copies of the Software, and to permit persons to whom the Software is
299
- * furnished to do so, subject to the following conditions:
300
- *
301
- * The above copyright notice and this permission notice shall be included in
302
- * all copies or substantial portions of the Software.
303
- *
304
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
305
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
306
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
307
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
308
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
309
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
310
- * THE SOFTWARE.
311
- */var ve=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),be={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},xe={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},$e={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
312
- /**
313
- * @license
314
- * Copyright 2016 Google Inc.
315
- *
316
- * Permission is hereby granted, free of charge, to any person obtaining a copy
317
- * of this software and associated documentation files (the "Software"), to deal
318
- * in the Software without restriction, including without limitation the rights
319
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
320
- * copies of the Software, and to permit persons to whom the Software is
321
- * furnished to do so, subject to the following conditions:
322
- *
323
- * The above copyright notice and this permission notice shall be included in
324
- * all copies or substantial portions of the Software.
325
- *
326
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
327
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
328
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
329
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
330
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
331
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
332
- * THE SOFTWARE.
333
- */
334
- /**
335
- * @license
336
- * Copyright 2016 Google Inc.
337
- *
338
- * Permission is hereby granted, free of charge, to any person obtaining a copy
339
- * of this software and associated documentation files (the "Software"), to deal
340
- * in the Software without restriction, including without limitation the rights
341
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
342
- * copies of the Software, and to permit persons to whom the Software is
343
- * furnished to do so, subject to the following conditions:
344
- *
345
- * The above copyright notice and this permission notice shall be included in
346
- * all copies or substantial portions of the Software.
347
- *
348
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
349
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
350
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
351
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
352
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
353
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
354
- * THE SOFTWARE.
355
- */
356
- var we=["touchstart","pointerdown","mousedown","keydown"],ze=["touchend","pointerup","mouseup","contextmenu"],Se=[],ke=function(t){function e(i){var r=t.call(this,ie(ie({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ee(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return be},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return xe},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return $e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,a=r.ROOT,o=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(a),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,a=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(a),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=ae(we),a=r.next();!a.done;a=r.next()){var o=a.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=ae(ze),a=r.next();!a.done;a=r.next()){var o=a.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=ae(we),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=ae(ze),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&Se.length>0&&Se.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(Se.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){Se=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,a=i.VAR_FG_TRANSLATE_END,o=e.cssClasses,s=o.FG_DEACTIVATION,p=o.FG_ACTIVATION,n=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",l="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,u=d.endPoint;c=f.x+"px, "+f.y+"px",l=u.x+"px, "+u.y+"px"}this.adapter.updateCssVariable(r,c),this.adapter.updateCssVariable(a,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(p),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),n)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,a,o=e.x,s=e.y,p=o+i.left,n=s+i.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-p,a=c.changedTouches[0].pageY-n}else{var l=t;r=l.pageX-p,a=l.pageY-n}return{x:r,y:a}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,a=r.hasDeactivationUXRun,o=r.isActivated;(a||!o)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),$e.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=ie({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,a=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(o,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(a,this.unboundedCoords.top+"px"))},e}(ve),Ae=ke;
357
- /**
358
- * @license
359
- * Copyright 2018 Google LLC
360
- * SPDX-License-Identifier: Apache-2.0
361
- */
362
- class Oe extends ge{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=Ae}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);
363
- /**
364
- * @license
365
- * Copyright 2018 Google Inc.
366
- *
367
- * Permission is hereby granted, free of charge, to any person obtaining a copy
368
- * of this software and associated documentation files (the "Software"), to deal
369
- * in the Software without restriction, including without limitation the rights
370
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
371
- * copies of the Software, and to permit persons to whom the Software is
372
- * furnished to do so, subject to the following conditions:
373
- *
374
- * The above copyright notice and this permission notice shall be included in
375
- * all copies or substantial portions of the Software.
376
- *
377
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
378
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
379
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
380
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
381
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
382
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
383
- * THE SOFTWARE.
384
- */
385
- var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),i=this.selected&&(this.primary||!this.accent),a={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":i,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return e.html`
386
- <div class="mdc-ripple-surface mdc-ripple-upgraded ${r.classMap(a)}"
387
- style="${o.styleMap({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}re([i.query(".mdc-ripple-surface")],Oe.prototype,"mdcRoot",void 0),re([i.property({type:Boolean})],Oe.prototype,"primary",void 0),re([i.property({type:Boolean})],Oe.prototype,"accent",void 0),re([i.property({type:Boolean})],Oe.prototype,"unbounded",void 0),re([i.property({type:Boolean})],Oe.prototype,"disabled",void 0),re([i.property({type:Boolean})],Oe.prototype,"activated",void 0),re([i.property({type:Boolean})],Oe.prototype,"selected",void 0),re([i.property({type:Boolean})],Oe.prototype,"internalUseStateLayerCustomProperties",void 0),re([i.state()],Oe.prototype,"hovering",void 0),re([i.state()],Oe.prototype,"bgFocused",void 0),re([i.state()],Oe.prototype,"fgActivation",void 0),re([i.state()],Oe.prototype,"fgDeactivation",void 0),re([i.state()],Oe.prototype,"fgScale",void 0),re([i.state()],Oe.prototype,"fgSize",void 0),re([i.state()],Oe.prototype,"translateStart",void 0),re([i.state()],Oe.prototype,"translateEnd",void 0),re([i.state()],Oe.prototype,"leftPos",void 0),re([i.state()],Oe.prototype,"topPos",void 0);
388
- /**
389
- * @license
390
- * Copyright 2021 Google LLC
391
- * SPDX-LIcense-Identifier: Apache-2.0
392
- */
393
- const Te=e.css`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
394
- /**
395
- * @license
396
- * Copyright 2018 Google LLC
397
- * SPDX-License-Identifier: Apache-2.0
398
- */;let _e=class extends Oe{};_e.styles=[Te],_e=re([i.customElement("mwc-ripple")],_e);
399
- /**
400
- * @license
401
- * Copyright 2020 Google LLC
402
- * SPDX-License-Identifier: Apache-2.0
403
- */
404
- class Ee{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var Ie=function(t,e,i,r){for(var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(a=t[p])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const De={color:a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorContent),primaryColor:a.FtCssVariable.extend("--ft-ripple-primary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorPrimary)),secondaryColor:a.FtCssVariable.extend("--ft-ripple-secondary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceDragged,"Design system")};let Ce=class extends a.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return e.css`
405
- :host {
406
- display: contents;
407
-
408
- --mdc-ripple-color: ${De.color};
409
- --mdc-ripple-press-opacity: ${De.opacityContentOnSurfacePressed};
410
- --mdc-ripple-hover-opacity: ${De.opacityContentOnSurfaceHover};
411
- --mdc-ripple-focus-opacity: ${De.opacityContentOnSurfaceFocused};
412
- --mdc-ripple-selected-opacity: ${De.opacityContentOnSurfaceSelected};
413
- --mdc-ripple-activated-opacity: ${De.opacityContentOnSurfaceDragged};
414
- }
415
-
416
- mwc-ripple.ft-ripple--secondary {
417
- --mdc-ripple-color: ${De.secondaryColor};
418
- }
419
-
420
- mwc-ripple.ft-ripple--primary {
421
- --mdc-ripple-color: ${De.primaryColor};
422
- }
423
- `}getTemplate(){return e.html`
424
- <mwc-ripple
425
- class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
426
- ?unbounded=${this.unbounded}
427
- ?activated=${this.activated}
428
- ?selected=${this.selected}
429
- ?disabled=${this.disabled}
430
- ></mwc-ripple>
431
- `}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple()}endRipple(){var t,e,i;null===(t=this.rippleHandlers)||void 0===t||t.endHover(),null===(e=this.rippleHandlers)||void 0===e||e.endFocus(),null===(i=this.rippleHandlers)||void 0===i||i.endPress()}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentNode;if(e){const t=new Ee((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},r=i("mouseup"),a=i("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",r),e.addEventListener("touchstart",a),e.addEventListener("keydown",o),e.addEventListener("focus",t.startFocus),e.addEventListener("blur",t.endFocus),this.onDisconnect=()=>{e.removeEventListener("mouseenter",t.startHover),e.removeEventListener("mouseleave",t.endHover),e.removeEventListener("mousedown",r),e.removeEventListener("touchstart",a),e.removeEventListener("keydown",o),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Ce.elementDefinitions={"mwc-ripple":_e},Ie([i.property({type:Boolean})],Ce.prototype,"primary",void 0),Ie([i.property({type:Boolean})],Ce.prototype,"secondary",void 0),Ie([i.property({type:Boolean})],Ce.prototype,"unbounded",void 0),Ie([i.property({type:Boolean})],Ce.prototype,"activated",void 0),Ie([i.property({type:Boolean})],Ce.prototype,"selected",void 0),Ie([i.property({type:Boolean})],Ce.prototype,"disabled",void 0),Ie([i.query("mwc-ripple")],Ce.prototype,"mwcRipple",void 0),Ce=Ie([a.customElement("ft-ripple")],Ce);var Fe=function(t,e,i,r){for(var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(a=t[p])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const je={fontSize:a.FtCssVariable.create("--ft-text-area-font-size","SIZE","14px"),labelSize:a.FtCssVariable.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:a.FtCssVariable.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:a.FtCssVariable.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:a.FtCssVariable.extend("--ft-text-area-helper-color",a.designSystemVariables.colorOnSurfaceMedium),colorPrimary:a.FtCssVariable.external(a.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:a.FtCssVariable.external(a.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:a.FtCssVariable.external(a.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:a.FtCssVariable.external(a.designSystemVariables.borderRadiusS,"Design system")};t.FtTextArea=class extends a.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.height=50,this.focused=!1}getStyles(){return[qt,e.css`
432
- *:focus {
433
- outline: none;
434
- }
435
-
436
- .ft-text-area {
437
- display: flex;
438
- flex-direction: column;
439
- align-items: stretch;
440
- }
441
-
442
- ft-input-label {
443
- ${a.setVariable(ue.fontSize,je.fontSize)};
444
- ${a.setVariable(ue.raisedFontSize,je.labelSize)};
445
- ${a.setVariable(ue.verticalSpacing,je.verticalSpacing)};
446
- ${a.setVariable(ue.horizontalSpacing,e.css`calc(${je.horizontalSpacing} - 4px)`)};
447
- }
448
-
449
- .ft-text-area--main-panel {
450
- position: relative;
451
- display: flex;
452
- height: calc(4 * ${je.verticalSpacing} + ${je.labelSize} + ${je.fontSize} + ${this.height}px);
453
- }
191
+ `}}ge.elementDefinitions={},ge.styles=[Xt,i.css`
192
+ .ft-input-label {
193
+ position: absolute;
194
+ inset: 0;
195
+ display: flex;
196
+ }
454
197
 
455
- .ft-text-area--input-panel {
456
- flex-grow: 1;
457
- position: relative;
458
- display: flex;
459
- align-items: center;
460
- overflow: hidden;
461
- gap: 8px;
462
- }
198
+ .ft-input-label {
199
+ border-color: ${ye.borderColor};
200
+ }
463
201
 
464
- .ft-text-area--input-panel ft-ripple {
465
- ${a.setVariable(De.opacityContentOnSurfaceHover,"0.08")};
466
- ${a.setVariable(De.opacityContentOnSurfaceDragged,"0.04")};
467
- }
202
+ .ft-input-label:before,
203
+ .ft-input-label:after {
204
+ content: "";
205
+ display: flex;
206
+ border-bottom-width: 1px;
207
+ border-bottom-style: solid;
208
+ border-color: inherit;
209
+ }
468
210
 
469
- .ft-text-area--input {
470
- display: block;
471
- flex-grow: 1;
472
- flex-shrink: 1;
473
- min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
474
- align-self: stretch;
475
- resize: none;
211
+ .ft-input-label:before {
212
+ width: ${ye.horizontalSpacing};
213
+ flex-shrink: 0;
214
+ }
476
215
 
477
- ${a.setVariable(vt.fontSize,je.fontSize)};
478
- ${a.setVariable(vt.lineHeight,je.fontSize)};
479
- color: ${je.colorOnSurface};
216
+ .ft-input-label:after {
217
+ flex-grow: 1;
218
+ flex-shrink: 1;
219
+ }
480
220
 
481
- padding: 0 ${je.horizontalSpacing};
482
- margin: calc(${je.verticalSpacing} + ${je.labelSize} / 2) 0 ${je.verticalSpacing} 0;
221
+ .ft-input-label--text {
222
+ display: flex;
223
+ flex-shrink: 1;
224
+ position: relative;
225
+ border-bottom-width: 1px;
226
+ border-bottom-style: solid;
227
+ border-color: inherit;
228
+ color: ${ye.textColor};
229
+ transition: font-size 250ms, line-height 250ms, color 250ms;
230
+ ${e.setVariable(kt.fontSize,ye.fontSize)};
231
+ ${e.setVariable(kt.lineHeight,ye.fontSize)};
232
+ }
483
233
 
484
- border: none;
485
- background: none;
234
+ .ft-input-label--disabled .ft-input-label--text {
235
+ color: ${ye.disabledTextColor};
236
+ }
486
237
 
487
- line-height: 1.4;
488
- }
238
+ .ft-input-label--hidden-text {
239
+ padding: 0 4px;
240
+ opacity: 0;
241
+ }
489
242
 
490
- .ft-text-area--disabled .ft-text-area--input {
491
- color: ${je.colorOnSurfaceDisabled};
492
- }
243
+ .ft-input-label--floating-text {
244
+ position: absolute;
245
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
246
+ transition: top 250ms;
247
+ width: calc(100% - 8px);
248
+ overflow: hidden;
249
+ white-space: nowrap;
250
+ text-overflow: ellipsis;
251
+ padding: ${ye.verticalSpacing} 4px;
252
+ margin: calc(${ye.verticalSpacing} * -1) 0;
253
+ }
493
254
 
494
- .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
495
- cursor: pointer;
496
- }
255
+ .ft-input-label--raised .ft-input-label--text {
256
+ ${e.setVariable(kt.fontSize,ye.raisedFontSize)};
257
+ ${e.setVariable(kt.lineHeight,ye.raisedFontSize)};
258
+ }
497
259
 
498
- .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
499
- ${a.setVariable(ue.borderColor,je.colorPrimary)};
500
- ${a.setVariable(ue.textColor,je.colorPrimary)};
501
- }
260
+ .ft-input-label--raised .ft-input-label--floating-text {
261
+ top: ${ye.verticalSpacing};
262
+ }
502
263
 
503
- .ft-text-area--filled .ft-text-area--input-panel {
504
- border-radius: ${je.borderRadiusS} ${je.borderRadiusS} 0 0;
505
- }
264
+ .ft-input-label--outlined .ft-input-label--text,
265
+ .ft-input-label--outlined:before,
266
+ .ft-input-label--outlined:after {
267
+ border-top-width: 1px;
268
+ border-top-style: solid;
269
+ }
506
270
 
507
- .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
508
- align-self: stretch;
509
- margin-bottom: ${je.verticalSpacing};
510
- margin-top: calc(${je.labelSize} + 2 * ${je.verticalSpacing});
511
- }
271
+ .ft-input-label--outlined:before {
272
+ border-left-width: 1px;
273
+ border-left-style: solid;
274
+ border-radius: ${ye.borderRadiusS} 0 0 ${ye.borderRadiusS};
275
+ }
512
276
 
513
- .ft-text-area--outlined .ft-text-area--input-panel {
514
- border-radius: ${je.borderRadiusS};
515
- }
277
+ .ft-input-label--outlined:after {
278
+ border-right-width: 1px;
279
+ border-right-style: solid;
280
+ border-radius: 0 ${ye.borderRadiusS} ${ye.borderRadiusS} 0;
281
+ }
516
282
 
517
- .ft-text-area--helper-text {
518
- padding: 0 12px 0 ${je.horizontalSpacing};
519
- color: ${je.helperColor};
520
- }
283
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
284
+ padding: 2px 4px;
285
+ z-index: ${ye.raisedZIndex};
286
+ background-color: ${ye.colorSurface};
287
+ border-radius: ${ye.borderRadiusS};
288
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
289
+ }
521
290
 
522
- ft-resizer {
523
- position: absolute;
524
- right: 0;
525
- bottom: 0;
291
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
292
+ border-top: none;
293
+ }
294
+ `],xe([o.property({type:String})],ge.prototype,"text",void 0),xe([o.property({type:Boolean})],ge.prototype,"raised",void 0),xe([o.property({type:Boolean})],ge.prototype,"outlined",void 0),xe([o.property({type:Boolean})],ge.prototype,"disabled",void 0),e.customElement("ft-input-label")(ge);var me=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={color:e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),primaryColor:e.FtCssVariable.extend("--ft-ripple-primary-color",e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary)),secondaryColor:e.FtCssVariable.extend("--ft-ripple-secondary-color",e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary)),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")};class ve 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.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},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`
295
+ <style>
296
+ .ft-ripple .ft-ripple--effect,
297
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
298
+ width: ${this.rippleSize}px;
299
+ height: ${this.rippleSize}px;
300
+ }
301
+
302
+ .ft-ripple .ft-ripple--effect {
303
+ left: ${this.originX}px;
304
+ top: ${this.originY}px;
305
+ }
306
+ </style>
307
+ <div class="${s.classMap(t)}">
308
+ <div class="ft-ripple--background"></div>
309
+ <div class="ft-ripple--effect"></div>
310
+ </div>
311
+ `}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),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()}}ve.elementDefinitions={},ve.styles=i.css`
312
+ :host {
313
+ display: contents;
314
+ }
315
+
316
+ .ft-ripple {
317
+ position: absolute;
318
+ inset: 0;
319
+ pointer-events: none;
320
+ }
321
+
322
+ .ft-ripple:not(.ft-ripple--unbounded) {
323
+ overflow: hidden;
324
+ }
325
+
326
+ .ft-ripple .ft-ripple--background,
327
+ .ft-ripple .ft-ripple--effect {
328
+ position: absolute;
329
+ opacity: 0;
330
+ background-color: ${be.color};
331
+ }
332
+
333
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background,
334
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
335
+ background-color: ${be.secondaryColor};
336
+ }
337
+
338
+ .ft-ripple.ft-ripple--primary .ft-ripple--background,
339
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
340
+ background-color: ${be.primaryColor};
341
+ }
342
+
343
+ .ft-ripple .ft-ripple--background {
344
+ top: 0;
345
+ left: 0;
346
+ height: 100%;
347
+ width: 100%;
348
+ }
349
+
350
+ .ft-ripple .ft-ripple--effect,
351
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
352
+ border-radius: 50%;
353
+ }
354
+
355
+ .ft-ripple .ft-ripple--effect {
356
+ transform: translate(-50%, -50%) scale(0.15);
357
+ transition: transform 300ms ease, opacity 75ms linear;
358
+ }
359
+
360
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
361
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
362
+ left: 50%;
363
+ top: 50%;
364
+ }
365
+
366
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
367
+ transform: translate(-50%, -50%);
368
+ }
369
+
370
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
371
+ opacity: ${be.opacityContentOnSurfaceHover};
372
+ }
373
+
374
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
375
+ opacity: ${be.opacityContentOnSurfaceSelected};
376
+ }
377
+
378
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
379
+ opacity: ${be.opacityContentOnSurfaceFocused};
380
+ }
381
+
382
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
383
+ opacity: ${be.opacityContentOnSurfacePressed};
384
+ transform: translate(-50%, -50%) scale(1);
385
+ }
386
+ `,me([o.property({type:Boolean})],ve.prototype,"primary",void 0),me([o.property({type:Boolean})],ve.prototype,"secondary",void 0),me([o.property({type:Boolean})],ve.prototype,"unbounded",void 0),me([o.property({type:Boolean})],ve.prototype,"activated",void 0),me([o.property({type:Boolean})],ve.prototype,"selected",void 0),me([o.property({type:Boolean})],ve.prototype,"disabled",void 0),me([o.state()],ve.prototype,"hovered",void 0),me([o.state()],ve.prototype,"focused",void 0),me([o.state()],ve.prototype,"pressed",void 0),me([o.state()],ve.prototype,"rippling",void 0),me([o.state()],ve.prototype,"rippleSize",void 0),me([o.state()],ve.prototype,"originX",void 0),me([o.state()],ve.prototype,"originY",void 0),me([o.query(".ft-ripple")],ve.prototype,"ripple",void 0),me([o.query(".ft-ripple--effect")],ve.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ve);var $e=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 we={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")};class ze extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!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};return i.html`
387
+ <style>
388
+ .ft-text-area--main-panel {
389
+ height: calc(4 * ${we.verticalSpacing} + ${we.labelSize} + ${we.fontSize} + ${this.height}px);
526
390
  }
527
- `]}getTemplate(){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};return e.html`
528
- <div class="${r.classMap(t)}">
391
+ </style>
392
+ <div class="${s.classMap(t)}">
529
393
  <div class="ft-text-area--main-panel">
530
394
  <ft-input-label text="${this.label}"
531
395
  ?disabled=${this.disabled}
@@ -534,7 +398,7 @@ class Ee{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))}
534
398
  ></ft-input-label>
535
399
  <div class="ft-text-area--input-panel"
536
400
  aria-label="${this.label}">
537
- ${this.outlined?null:e.html`
401
+ ${this.outlined?null:i.html`
538
402
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
539
403
  `}
540
404
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -551,9 +415,104 @@ class Ee{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))}
551
415
  initialHeight="${this.height}"
552
416
  cursor="ns-resize"></ft-resizer>
553
417
  </div>
554
- ${this.helper?e.html`
418
+ ${this.helper?i.html`
555
419
  <ft-typography class="ft-text-area--helper-text" variant="caption">
556
420
  ${this.helper}
557
421
  </ft-typography>`:void 0}
558
422
  </div>
559
- `}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)}},t.FtTextArea.elementDefinitions={"ft-input-label":he,"ft-resizer":de,"ft-ripple":Ce,"ft-typography":te},Fe([i.property({type:String})],t.FtTextArea.prototype,"label",void 0),Fe([i.property({reflect:!0})],t.FtTextArea.prototype,"value",void 0),Fe([i.property({type:String})],t.FtTextArea.prototype,"helper",void 0),Fe([i.property({type:Boolean})],t.FtTextArea.prototype,"outlined",void 0),Fe([i.property({type:Boolean})],t.FtTextArea.prototype,"disabled",void 0),Fe([i.property({type:Number,reflect:!0})],t.FtTextArea.prototype,"height",void 0),Fe([i.query("textarea")],t.FtTextArea.prototype,"textarea",void 0),Fe([i.state()],t.FtTextArea.prototype,"focused",void 0),t.FtTextArea=Fe([a.customElement("ft-text-area")],t.FtTextArea),t.FtTextAreaCssVariables=je,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.wcUtils,ftGlobals.litStyleMap);
423
+ `}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)}}ze.elementDefinitions={"ft-input-label":ge,"ft-resizer":ue,"ft-ripple":ve,"ft-typography":te},ze.styles=[Pt,i.css`
424
+ *:focus {
425
+ outline: none;
426
+ }
427
+
428
+ .ft-text-area {
429
+ display: flex;
430
+ flex-direction: column;
431
+ align-items: stretch;
432
+ }
433
+
434
+ ft-input-label {
435
+ ${e.setVariable(ye.fontSize,we.fontSize)};
436
+ ${e.setVariable(ye.raisedFontSize,we.labelSize)};
437
+ ${e.setVariable(ye.verticalSpacing,we.verticalSpacing)};
438
+ ${e.setVariable(ye.horizontalSpacing,i.css`calc(${we.horizontalSpacing} - 4px)`)};
439
+ }
440
+
441
+ .ft-text-area--main-panel {
442
+ position: relative;
443
+ display: flex;
444
+ }
445
+
446
+ .ft-text-area--input-panel {
447
+ flex-grow: 1;
448
+ position: relative;
449
+ display: flex;
450
+ align-items: center;
451
+ overflow: hidden;
452
+ gap: 8px;
453
+ }
454
+
455
+ .ft-text-area--input-panel ft-ripple {
456
+ ${e.setVariable(be.opacityContentOnSurfaceHover,"0.08")};
457
+ ${e.setVariable(be.opacityContentOnSurfacePressed,"0.04")};
458
+ }
459
+
460
+ .ft-text-area--input {
461
+ display: block;
462
+ flex-grow: 1;
463
+ flex-shrink: 1;
464
+ min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
465
+ align-self: stretch;
466
+ resize: none;
467
+
468
+ ${e.setVariable(mt.fontSize,we.fontSize)};
469
+ ${e.setVariable(mt.lineHeight,we.fontSize)};
470
+ color: ${we.colorOnSurface};
471
+
472
+ padding: 0 ${we.horizontalSpacing};
473
+ margin: calc(${we.verticalSpacing} + ${we.labelSize} / 2) 0 ${we.verticalSpacing} 0;
474
+
475
+ border: none;
476
+ background: none;
477
+
478
+ line-height: 1.4;
479
+ }
480
+
481
+ .ft-text-area--disabled .ft-text-area--input {
482
+ color: ${we.colorOnSurfaceDisabled};
483
+ }
484
+
485
+ .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
486
+ cursor: pointer;
487
+ }
488
+
489
+ .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
490
+ ${e.setVariable(ye.borderColor,we.colorPrimary)};
491
+ ${e.setVariable(ye.textColor,we.colorPrimary)};
492
+ }
493
+
494
+ .ft-text-area--filled .ft-text-area--input-panel {
495
+ border-radius: ${we.borderRadiusS} ${we.borderRadiusS} 0 0;
496
+ }
497
+
498
+ .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
499
+ align-self: stretch;
500
+ margin-bottom: ${we.verticalSpacing};
501
+ margin-top: calc(${we.labelSize} + 2 * ${we.verticalSpacing});
502
+ }
503
+
504
+ .ft-text-area--outlined .ft-text-area--input-panel {
505
+ border-radius: ${we.borderRadiusS};
506
+ }
507
+
508
+ .ft-text-area--helper-text {
509
+ padding: 0 12px 0 ${we.horizontalSpacing};
510
+ color: ${we.helperColor};
511
+ }
512
+
513
+ ft-resizer {
514
+ position: absolute;
515
+ right: 0;
516
+ bottom: 0;
517
+ }
518
+ `],$e([o.property({type:String})],ze.prototype,"label",void 0),$e([o.property({reflect:!0})],ze.prototype,"value",void 0),$e([o.property({type:String})],ze.prototype,"helper",void 0),$e([o.property({type:Boolean})],ze.prototype,"outlined",void 0),$e([o.property({type:Boolean})],ze.prototype,"disabled",void 0),$e([o.property({type:Number,reflect:!0})],ze.prototype,"height",void 0),$e([o.query("textarea")],ze.prototype,"textarea",void 0),$e([o.state()],ze.prototype,"focused",void 0),e.customElement("ft-text-area")(ze),t.FtTextArea=ze,t.FtTextAreaCssVariables=we,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);