@fluid-topics/ft-file-button 0.1.18 → 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,4 +1,4 @@
1
- !function(t,i,o,e,n){var r=function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,o,s):n(i,o))||s);return r>3&&s&&Object.defineProperty(i,o,s),s};const s={color:i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),primaryColor:i.FtCssVariable.extend("--ft-ripple-primary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary)),secondaryColor:i.FtCssVariable.extend("--ft-ripple-secondary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")};class l extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.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 i,o;let{x:e,y:n}=this.getCoordinates(t),r=null!==(o=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=e?e-r.x:r.width/2),this.originY=Math.round(null!=n?n-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 o.html`
1
+ !function(t,i,e,o,n,s){var r=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const l={color:i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),primaryColor:i.FtCssVariable.extend("--ft-ripple-primary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary)),secondaryColor:i.FtCssVariable.extend("--ft-ripple-secondary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")};class a extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.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 i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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 e.html`
2
2
  <style>
3
3
  .ft-ripple .ft-ripple--effect,
4
4
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -15,13 +15,13 @@
15
15
  <div class="ft-ripple--background"></div>
16
16
  <div class="ft-ripple--effect"></div>
17
17
  </div>
18
- `}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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},o=i("mouseup","contextmenu"),e=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",e),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",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",o),t.removeEventListener("touchstart",e),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,o=t;let e,n;return null!=i.x?({x:e,y:n}=i):null!=o.touches&&(e=o.touches[0].clientX,n=o.touches[0].clientY),{x:e,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
18
+ `}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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),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 i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
19
19
  /**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
23
  */
24
- var a;l.elementDefinitions={},l.styles=o.css`
24
+ var p;a.elementDefinitions={},a.styles=e.css`
25
25
  :host {
26
26
  display: contents;
27
27
  }
@@ -40,17 +40,17 @@ var a;l.elementDefinitions={},l.styles=o.css`
40
40
  .ft-ripple .ft-ripple--effect {
41
41
  position: absolute;
42
42
  opacity: 0;
43
- background-color: ${s.color};
43
+ background-color: ${l.color};
44
44
  }
45
45
 
46
46
  .ft-ripple.ft-ripple--secondary .ft-ripple--background,
47
47
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
48
- background-color: ${s.secondaryColor};
48
+ background-color: ${l.secondaryColor};
49
49
  }
50
50
 
51
51
  .ft-ripple.ft-ripple--primary .ft-ripple--background,
52
52
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
53
- background-color: ${s.primaryColor};
53
+ background-color: ${l.primaryColor};
54
54
  }
55
55
 
56
56
  .ft-ripple .ft-ripple--background {
@@ -81,57 +81,57 @@ var a;l.elementDefinitions={},l.styles=o.css`
81
81
  }
82
82
 
83
83
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
84
- opacity: ${s.opacityContentOnSurfaceHover};
84
+ opacity: ${l.opacityContentOnSurfaceHover};
85
85
  }
86
86
 
87
87
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
88
- opacity: ${s.opacityContentOnSurfaceSelected};
88
+ opacity: ${l.opacityContentOnSurfaceSelected};
89
89
  }
90
90
 
91
91
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
92
- opacity: ${s.opacityContentOnSurfaceFocused};
92
+ opacity: ${l.opacityContentOnSurfaceFocused};
93
93
  }
94
94
 
95
95
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
96
- opacity: ${s.opacityContentOnSurfacePressed};
96
+ opacity: ${l.opacityContentOnSurfacePressed};
97
97
  transform: translate(-50%, -50%) scale(1);
98
98
  }
99
- `,r([e.property({type:Boolean})],l.prototype,"primary",void 0),r([e.property({type:Boolean})],l.prototype,"secondary",void 0),r([e.property({type:Boolean})],l.prototype,"unbounded",void 0),r([e.property({type:Boolean})],l.prototype,"activated",void 0),r([e.property({type:Boolean})],l.prototype,"selected",void 0),r([e.property({type:Boolean})],l.prototype,"disabled",void 0),r([e.state()],l.prototype,"hovered",void 0),r([e.state()],l.prototype,"focused",void 0),r([e.state()],l.prototype,"pressed",void 0),r([e.state()],l.prototype,"rippling",void 0),r([e.state()],l.prototype,"rippleSize",void 0),r([e.state()],l.prototype,"originX",void 0),r([e.state()],l.prototype,"originY",void 0),r([e.query(".ft-ripple")],l.prototype,"ripple",void 0),r([e.query(".ft-ripple--effect")],l.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(l);const p=globalThis.trustedTypes,h=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,d="?"+f,c=`<${d}>`,u=document,y=(t="")=>u.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,$=/>/g,x=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,w=/'/g,k=/"/g,z=/^(?:script|style|textarea|title)$/i,S=(t=>(i,...o)=>({_$litType$:t,strings:i,values:o}))(1),C=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),A=new WeakMap,B=u.createTreeWalker(u,129,null,!1),T=(t,i)=>{const o=t.length-1,e=[];let n,r=2===i?"<svg>":"",s=v;for(let i=0;i<o;i++){const o=t[i];let l,a,p=-1,h=0;for(;h<o.length&&(s.lastIndex=h,a=s.exec(o),null!==a);)h=s.lastIndex,s===v?"!--"===a[1]?s=m:void 0!==a[1]?s=$:void 0!==a[2]?(z.test(a[2])&&(n=RegExp("</"+a[2],"g")),s=x):void 0!==a[3]&&(s=x):s===x?">"===a[0]?(s=null!=n?n:v,p=-1):void 0===a[1]?p=-2:(p=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?x:'"'===a[3]?k:w):s===k||s===w?s=x:s===m||s===$?s=v:(s=x,n=void 0);const d=s===x&&t[i+1].startsWith("/>")?" ":"";r+=s===v?o+c:p>=0?(e.push(l),o.slice(0,p)+"$lit$"+o.slice(p)+f+d):o+f+(-2===p?(e.push(void 0),i):d)}const l=r+(t[o]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==h?h.createHTML(l):l,e]};class E{constructor({strings:t,_$litType$:i},o){let e;this.parts=[];let n=0,r=0;const s=t.length-1,l=this.parts,[a,h]=T(t,i);if(this.el=E.createElement(a,o),B.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=B.nextNode())&&l.length<s;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(f)){const o=h[r++];if(t.push(i),void 0!==o){const t=e.getAttribute(o.toLowerCase()+"$lit$").split(f),i=/([.?@])?(.*)/.exec(o);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?M:"?"===i[1]?R:"@"===i[1]?D:N})}else l.push({type:6,index:n})}for(const i of t)e.removeAttribute(i)}if(z.test(e.tagName)){const t=e.textContent.split(f),i=t.length-1;if(i>0){e.textContent=p?p.emptyScript:"";for(let o=0;o<i;o++)e.append(t[o],y()),B.nextNode(),l.push({type:2,index:++n});e.append(t[i],y())}}}else if(8===e.nodeType)if(e.data===d)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=e.data.indexOf(f,t+1));)l.push({type:7,index:n}),t+=f.length-1}n++}}static createElement(t,i){const o=u.createElement("template");return o.innerHTML=t,o}}function I(t,i,o=t,e){var n,r,s,l;if(i===C)return i;let a=void 0!==e?null===(n=o._$Cl)||void 0===n?void 0:n[e]:o._$Cu;const p=g(i)?void 0:i._$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,o,e)),void 0!==e?(null!==(s=(l=o)._$Cl)&&void 0!==s?s:l._$Cl=[])[e]=a:o._$Cu=a),void 0!==a&&(i=I(t,a._$AS(t,i.values),a,e)),i}class _{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:o},parts:e}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:u).importNode(o,!0);B.currentNode=n;let r=B.nextNode(),s=0,l=0,a=e[0];for(;void 0!==a;){if(s===a.index){let i;2===a.type?i=new j(r,r.nextSibling,this,t):1===a.type?i=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(i=new Z(r,this,t)),this.v.push(i),a=e[++l]}s!==(null==a?void 0:a.index)&&(r=B.nextNode(),s++)}return n}m(t){let i=0;for(const o of this.v)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}}class j{constructor(t,i,o,e){var n;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=e,this._$Cg=null===(n=null==e?void 0:e.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=I(this,t,i),g(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==C&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return b(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==O&&g(this._$AH)?this._$AA.nextSibling.data=t:this.S(u.createTextNode(t)),this._$AH=t}T(t){var i;const{values:o,_$litType$:e}=t,n="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=E.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(o);else{const t=new _(n,this),i=t.p(this.options);t.m(o),this.S(i),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new E(t)),i}A(t){b(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,e=0;for(const n of t)e===i.length?i.push(o=new j(this.M(y()),this.M(y()),this,this.options)):o=i[e],o._$AI(n),e++;e<i.length&&(this._$AR(o&&o._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class N{constructor(t,i,o,e,n){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,o,e){const n=this.strings;let r=!1;if(void 0===n)t=I(this,t,i,0),r=!g(t)||t!==this._$AH&&t!==C,r&&(this._$AH=t);else{const e=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=I(this,e[o+s],i,s),l===C&&(l=this._$AH[s]),r||(r=!g(l)||l!==this._$AH[s]),l===O?t=O:t!==O&&(t+=(null!=l?l:"")+n[s+1]),this._$AH[s]=l}r&&!e&&this.k(t)}k(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class M extends N{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===O?void 0:t}}const F=p?p.emptyScript:"";class R extends N{constructor(){super(...arguments),this.type=4}k(t){t&&t!==O?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}}class D extends N{constructor(t,i,o,e,n){super(t,i,o,e,n),this.type=5}_$AI(t,i=this){var o;if((t=null!==(o=I(this,t,i,0))&&void 0!==o?o:O)===C)return;const e=this._$AH,n=t===O&&e!==O||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==O&&(e===O||n);n&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const U=window.litHtmlPolyfillSupport;null==U||U(E,j),(null!==(a=globalThis.litHtmlVersions)&&void 0!==a?a:globalThis.litHtmlVersions=[]).push("2.1.3");
99
+ `,r([o.property({type:Boolean})],a.prototype,"primary",void 0),r([o.property({type:Boolean})],a.prototype,"secondary",void 0),r([o.property({type:Boolean})],a.prototype,"unbounded",void 0),r([o.property({type:Boolean})],a.prototype,"activated",void 0),r([o.property({type:Boolean})],a.prototype,"selected",void 0),r([o.property({type:Boolean})],a.prototype,"disabled",void 0),r([o.state()],a.prototype,"hovered",void 0),r([o.state()],a.prototype,"focused",void 0),r([o.state()],a.prototype,"pressed",void 0),r([o.state()],a.prototype,"rippling",void 0),r([o.state()],a.prototype,"rippleSize",void 0),r([o.state()],a.prototype,"originX",void 0),r([o.state()],a.prototype,"originY",void 0),r([o.query(".ft-ripple")],a.prototype,"ripple",void 0),r([o.query(".ft-ripple--effect")],a.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(a);const h=globalThis.trustedTypes,f=h?h.createPolicy("lit-html",{createHTML:t=>t}):void 0,d=`lit$${(Math.random()+"").slice(9)}$`,c="?"+d,u=`<${c}>`,x=document,y=(t="")=>x.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,$=/>/g,w=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,k=/'/g,z=/"/g,S=/^(?:script|style|textarea|title)$/i,C=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),O=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),N=new WeakMap,A=x.createTreeWalker(x,129,null,!1),I=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=v;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===v?"!--"===a[1]?r=m:void 0!==a[1]?r=$:void 0!==a[2]?(S.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=w):void 0!==a[3]&&(r=w):r===w?">"===a[0]?(r=null!=n?n:v,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?w:'"'===a[3]?z:k):r===z||r===k?r=w:r===m||r===$?r=v:(r=w,n=void 0);const f=r===w&&t[i+1].startsWith("/>")?" ":"";s+=r===v?e+u:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+d+f):e+d+(-2===p?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==f?f.createHTML(l):l,o]};class T{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=I(t,i);if(this.el=T.createElement(a,e),A.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=A.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(d)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(d),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?M:"?"===i[1]?R:"@"===i[1]?Z:_})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(S.test(o.tagName)){const t=o.textContent.split(d),i=t.length-1;if(i>0){o.textContent=h?h.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],y()),A.nextNode(),l.push({type:2,index:++n});o.append(t[i],y())}}}else if(8===o.nodeType)if(o.data===c)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(d,t+1));)l.push({type:7,index:n}),t+=d.length-1}n++}}static createElement(t,i){const e=x.createElement("template");return e.innerHTML=t,e}}function B(t,i,e=t,o){var n,s,r,l;if(i===O)return i;let a=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const p=g(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=B(t,a._$AS(t,i.values),a,o)),i}class F{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:x).importNode(e,!0);A.currentNode=n;let s=A.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new E(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new D(s,this,t)),this.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=A.nextNode(),r++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class E{constructor(t,i,e,o){var n;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=B(this,t,i),g(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==O&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return b(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==j&&g(this._$AH)?this._$AA.nextSibling.data=t:this.S(x.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=T.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new F(n,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=N.get(t.strings);return void 0===i&&N.set(t.strings,i=new T(t)),i}A(t){b(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new E(this.M(y()),this.M(y()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class _{constructor(t,i,e,o,n){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=j}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=B(this,t,i,0),s=!g(t)||t!==this._$AH&&t!==O,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=B(this,o[e+r],i,r),l===O&&(l=this._$AH[r]),s||(s=!g(l)||l!==this._$AH[r]),l===j?t=j:t!==j&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.k(t)}k(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class M extends _{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===j?void 0:t}}const U=h?h.emptyScript:"";class R extends _{constructor(){super(...arguments),this.type=4}k(t){t&&t!==j?this.element.setAttribute(this.name,U):this.element.removeAttribute(this.name)}}class Z extends _{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=B(this,t,i,0))&&void 0!==e?e:j)===O)return;const o=this._$AH,n=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==j&&(o===j||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class D{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){B(this,t)}}const W=window.litHtmlPolyfillSupport;null==W||W(T,E),(null!==(p=globalThis.litHtmlVersions)&&void 0!==p?p:globalThis.litHtmlVersions=[]).push("2.1.3");
100
100
  /**
101
101
  * @license
102
102
  * Copyright 2020 Google LLC
103
103
  * SPDX-License-Identifier: BSD-3-Clause
104
104
  */
105
- const H=t=>({_$litStatic$:t}),L=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;let r,s;const l=[],a=[];let p,h=0,f=!1;for(;h<n;){for(p=i[h];h<n&&void 0!==(s=o[h],r=null===(e=s)||void 0===e?void 0:e._$litStatic$);)p+=r+i[++h],f=!0;a.push(s),l.push(p),h++}if(h===n&&l.push(i[n]),f){const t=l.join("$$lit$$");void 0===(i=L.get(t))&&(l.raw=l,L.set(t,i=l)),o=a}return t(i,...o)})(S);var G,K=function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,o,s):n(i,o))||s);return r>3&&s&&Object.defineProperty(i,o,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"}(G||(G={}));const P=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),X=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Y={fontFamily:X,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},q=i.FtCssVariable.extend("--ft-typography-title-font-family",P),J=i.FtCssVariable.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),Q=i.FtCssVariable.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),V=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),tt=i.FtCssVariable.extend("--ft-typography-title-line-height",Y.lineHeight,"24px"),it=i.FtCssVariable.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),ot=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",P),et=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),nt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),rt=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),st=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"24px"),lt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),at=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",X),pt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),ht=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),ft=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),dt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"24px"),ct=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),ut=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",X),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),bt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),vt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"24px"),mt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),$t=i.FtCssVariable.extend("--ft-typography-body1-font-family",X),xt=i.FtCssVariable.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),wt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),kt=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),zt=i.FtCssVariable.extend("--ft-typography-body1-line-height",Y.lineHeight,"24px"),St=i.FtCssVariable.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit"),Ct=i.FtCssVariable.extend("--ft-typography-body2-font-family",X),Ot=i.FtCssVariable.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),At=i.FtCssVariable.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),Bt=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),Tt=i.FtCssVariable.extend("--ft-typography-body2-line-height",Y.lineHeight,"20px"),Et=i.FtCssVariable.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit"),It=i.FtCssVariable.extend("--ft-typography-caption-font-family",X),_t=i.FtCssVariable.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),jt=i.FtCssVariable.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),Nt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),Mt=i.FtCssVariable.extend("--ft-typography-caption-line-height",Y.lineHeight,"16px"),Ft=i.FtCssVariable.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit"),Rt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",X),Dt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),Zt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Ut=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),Ht=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"16px"),Lt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),Wt=i.FtCssVariable.extend("--ft-typography-overline-font-family",X),Gt=i.FtCssVariable.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),Kt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Pt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Xt=i.FtCssVariable.extend("--ft-typography-overline-line-height",Y.lineHeight,"16px"),Yt=i.FtCssVariable.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),qt={fontFamily:i.FtCssVariable.extend("--ft-typography-button-font-family",X),fontSize:i.FtCssVariable.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),letterSpacing:i.FtCssVariable.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),lineHeight:i.FtCssVariable.extend("--ft-typography-button-line-height",Y.lineHeight,"16px"),textTransform:i.FtCssVariable.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase")},Jt=o.css`
105
+ const H=t=>({_$litStatic$:t}),G=new Map,K=(t=>(i,...e)=>{var o;const n=e.length;let s,r;const l=[],a=[];let p,h=0,f=!1;for(;h<n;){for(p=i[h];h<n&&void 0!==(r=e[h],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)p+=s+i[++h],f=!0;a.push(r),l.push(p),h++}if(h===n&&l.push(i[n]),f){const t=l.join("$$lit$$");void 0===(i=G.get(t))&&(l.raw=l,G.set(t,i=l)),e=a}return t(i,...e)})(C);var L,q=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!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"}(L||(L={}));const P=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),X=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Y={fontFamily:X,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},J=i.FtCssVariable.extend("--ft-typography-title-font-family",P),Q=i.FtCssVariable.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),V=i.FtCssVariable.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),tt=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),it=i.FtCssVariable.extend("--ft-typography-title-line-height",Y.lineHeight,"24px"),et=i.FtCssVariable.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),ot=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",P),nt=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),st=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),rt=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),lt=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"24px"),at=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),pt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",X),ht=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),ft=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),dt=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),ct=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"24px"),ut=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),xt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",X),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),bt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),vt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"24px"),mt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),$t=i.FtCssVariable.extend("--ft-typography-body1-font-family",X),wt=i.FtCssVariable.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),kt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),zt=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),St=i.FtCssVariable.extend("--ft-typography-body1-line-height",Y.lineHeight,"24px"),Ct=i.FtCssVariable.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit"),Ot=i.FtCssVariable.extend("--ft-typography-body2-font-family",X),jt=i.FtCssVariable.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),Nt=i.FtCssVariable.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),At=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),It=i.FtCssVariable.extend("--ft-typography-body2-line-height",Y.lineHeight,"20px"),Tt=i.FtCssVariable.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit"),Bt=i.FtCssVariable.extend("--ft-typography-caption-font-family",X),Ft=i.FtCssVariable.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),Et=i.FtCssVariable.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),_t=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),Mt=i.FtCssVariable.extend("--ft-typography-caption-line-height",Y.lineHeight,"16px"),Ut=i.FtCssVariable.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit"),Rt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",X),Zt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),Dt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Wt=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),Ht=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"16px"),Gt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),Kt=i.FtCssVariable.extend("--ft-typography-overline-font-family",X),Lt=i.FtCssVariable.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),qt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Pt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Xt=i.FtCssVariable.extend("--ft-typography-overline-line-height",Y.lineHeight,"16px"),Yt=i.FtCssVariable.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),Jt={fontFamily:i.FtCssVariable.extend("--ft-typography-button-font-family",X),fontSize:i.FtCssVariable.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),letterSpacing:i.FtCssVariable.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),lineHeight:i.FtCssVariable.extend("--ft-typography-button-line-height",Y.lineHeight,"16px"),textTransform:i.FtCssVariable.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase")},Qt=e.css`
106
106
  .ft-typography--title {
107
- font-family: ${q};
108
- font-size: ${J};
109
- font-weight: ${Q};
110
- letter-spacing: ${V};
111
- line-height: ${tt};
112
- text-transform: ${it};
107
+ font-family: ${J};
108
+ font-size: ${Q};
109
+ font-weight: ${V};
110
+ letter-spacing: ${tt};
111
+ line-height: ${it};
112
+ text-transform: ${et};
113
113
  }
114
- `,Qt=o.css`
114
+ `,Vt=e.css`
115
115
  .ft-typography--title-dense {
116
116
  font-family: ${ot};
117
- font-size: ${et};
118
- font-weight: ${nt};
117
+ font-size: ${nt};
118
+ font-weight: ${st};
119
119
  letter-spacing: ${rt};
120
- line-height: ${st};
121
- text-transform: ${lt};
120
+ line-height: ${lt};
121
+ text-transform: ${at};
122
122
  }
123
- `,Vt=o.css`
123
+ `,ti=e.css`
124
124
  .ft-typography--subtitle1 {
125
- font-family: ${at};
126
- font-size: ${pt};
127
- font-weight: ${ht};
128
- letter-spacing: ${ft};
129
- line-height: ${dt};
130
- text-transform: ${ct};
125
+ font-family: ${pt};
126
+ font-size: ${ht};
127
+ font-weight: ${ft};
128
+ letter-spacing: ${dt};
129
+ line-height: ${ct};
130
+ text-transform: ${ut};
131
131
  }
132
- `,ti=o.css`
132
+ `,ii=e.css`
133
133
  .ft-typography--subtitle2 {
134
- font-family: ${ut};
134
+ font-family: ${xt};
135
135
  font-size: ${yt};
136
136
  font-weight: ${gt};
137
137
  letter-spacing: ${bt};
@@ -139,98 +139,72 @@ const H=t=>({_$litStatic$:t}),L=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;
139
139
  text-transform: ${mt};
140
140
  }
141
141
 
142
- `,ii=o.css`
142
+ `,ei=e.css`
143
143
  .ft-typography--body1 {
144
144
  font-family: ${$t};
145
- font-size: ${xt};
146
- font-weight: ${wt};
147
- letter-spacing: ${kt};
148
- line-height: ${zt};
149
- text-transform: ${St};
145
+ font-size: ${wt};
146
+ font-weight: ${kt};
147
+ letter-spacing: ${zt};
148
+ line-height: ${St};
149
+ text-transform: ${Ct};
150
150
  }
151
- `,oi=o.css`
151
+ `,oi=e.css`
152
152
  .ft-typography--body2 {
153
- font-family: ${Ct};
154
- font-size: ${Ot};
155
- font-weight: ${At};
156
- letter-spacing: ${Bt};
157
- line-height: ${Tt};
158
- text-transform: ${Et};
153
+ font-family: ${Ot};
154
+ font-size: ${jt};
155
+ font-weight: ${Nt};
156
+ letter-spacing: ${At};
157
+ line-height: ${It};
158
+ text-transform: ${Tt};
159
159
  }
160
- `,ei=o.css`
160
+ `,ni=e.css`
161
161
  .ft-typography--caption {
162
- font-family: ${It};
163
- font-size: ${_t};
164
- font-weight: ${jt};
165
- letter-spacing: ${Nt};
162
+ font-family: ${Bt};
163
+ font-size: ${Ft};
164
+ font-weight: ${Et};
165
+ letter-spacing: ${_t};
166
166
  line-height: ${Mt};
167
- text-transform: ${Ft};
167
+ text-transform: ${Ut};
168
168
  }
169
- `,ni=o.css`
169
+ `,si=e.css`
170
170
  .ft-typography--breadcrumb {
171
171
  font-family: ${Rt};
172
- font-size: ${Dt};
173
- font-weight: ${Zt};
174
- letter-spacing: ${Ut};
172
+ font-size: ${Zt};
173
+ font-weight: ${Dt};
174
+ letter-spacing: ${Wt};
175
175
  line-height: ${Ht};
176
- text-transform: ${Lt};
176
+ text-transform: ${Gt};
177
177
  }
178
- `,ri=o.css`
178
+ `,ri=e.css`
179
179
  .ft-typography--overline {
180
- font-family: ${Wt};
181
- font-size: ${Gt};
182
- font-weight: ${Kt};
180
+ font-family: ${Kt};
181
+ font-size: ${Lt};
182
+ font-weight: ${qt};
183
183
  letter-spacing: ${Pt};
184
184
  line-height: ${Xt};
185
185
  text-transform: ${Yt};
186
186
  }
187
- `,si=o.css`
187
+ `,li=e.css`
188
188
  .ft-typography--button {
189
- font-family: ${qt.fontFamily};
190
- font-size: ${qt.fontSize};
191
- font-weight: ${qt.fontWeight};
192
- letter-spacing: ${qt.letterSpacing};
193
- line-height: ${qt.lineHeight};
194
- text-transform: ${qt.textTransform};
189
+ font-family: ${Jt.fontFamily};
190
+ font-size: ${Jt.fontSize};
191
+ font-weight: ${Jt.fontWeight};
192
+ letter-spacing: ${Jt.letterSpacing};
193
+ line-height: ${Jt.lineHeight};
194
+ text-transform: ${Jt.textTransform};
195
195
  }
196
- `;class li extends i.FtLitElement{constructor(){super(...arguments),this.variant=G.body1}render(){return this.element?W`
196
+ `;class ai extends i.FtLitElement{constructor(){super(...arguments),this.variant=L.body1}render(){return this.element?K`
197
197
  <${H(this.element)}
198
198
  class="ft-typography ft-typography--${this.variant}">
199
199
  <slot></slot>
200
200
  </${H(this.element)}>
201
- `:W`
201
+ `:K`
202
202
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
203
- `}}li.styles=[Jt,Qt,Vt,ti,ii,oi,ei,ni,ri,si,o.css`
203
+ `}}ai.styles=[Qt,Vt,ti,ii,ei,oi,ni,si,ri,li,e.css`
204
204
  .ft-typography {
205
205
  vertical-align: inherit;
206
206
  }
207
- `],K([e.property()],li.prototype,"element",void 0),K([e.property()],li.prototype,"variant",void 0),i.customElement("ft-typography")(li);
208
- /**
209
- * @license
210
- * Copyright 2021 Google LLC
211
- * SPDX-LIcense-Identifier: Apache-2.0
212
- */
213
- const ai=o.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"}`
214
- /**
215
- * @license
216
- * Copyright 2018 Google LLC
217
- * SPDX-License-Identifier: Apache-2.0
218
- */;let pi=class extends o.LitElement{render(){return o.html`<span><slot></slot></span>`}};pi.styles=[ai],pi=
219
- /*! *****************************************************************************
220
- Copyright (c) Microsoft Corporation.
221
-
222
- Permission to use, copy, modify, and/or distribute this software for any
223
- purpose with or without fee is hereby granted.
224
-
225
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
226
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
227
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
228
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
229
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
230
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
231
- PERFORMANCE OF THIS SOFTWARE.
232
- ***************************************************************************** */
233
- function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,o,s):n(i,o))||s);return r>3&&s&&Object.defineProperty(i,o,s),s}([e.customElement("mwc-icon")],pi);var hi=function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,o,s):n(i,o))||s);return r>3&&s&&Object.defineProperty(i,o,s),s};const fi=i.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),di=i.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),ci=i.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),ui=i.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),yi=i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system");class gi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}render(){return o.html`
207
+ `],q([o.property()],ai.prototype,"element",void 0),q([o.property()],ai.prototype,"variant",void 0),i.customElement("ft-typography")(ai);var pi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const hi=i.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),fi=i.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),di=i.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),ci=i.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),ui=i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system");class xi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}render(){return e.html`
234
208
  <div part="container"
235
209
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
236
210
  @mouseenter=${this.onHover}
@@ -245,7 +219,7 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
245
219
  </div>
246
220
  <slot></slot>
247
221
  </div>
248
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),o=(i.height-this.tooltip.clientHeight)/2,e=(i.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=e+"px";break;case"bottom":n.top=i.height+"px",n.left=e+"px";break;case"left":n.top=o+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=o+"px",n.left=i.width+"px"}n.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}gi.elementDefinitions={"ft-typography":li},gi.styles=o.css`
222
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=i.height+"px",n.left=o+"px";break;case"left":n.top=e+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=e+"px",n.left=i.width+"px"}n.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}xi.elementDefinitions={"ft-typography":ai},xi.styles=e.css`
249
223
  .ft-tooltip--container {
250
224
  display: block;
251
225
  position: relative;
@@ -263,21 +237,21 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
263
237
  width: max-content;
264
238
  max-width: 150px;
265
239
  text-align: center;
266
- padding: ${fi};
267
- z-index: ${ui};
240
+ padding: ${hi};
241
+ z-index: ${ci};
268
242
  }
269
243
 
270
244
  .ft-tooltip--content {
271
245
  padding: 4px 8px;
272
- border-radius: ${yi};
273
- background-color: ${ci};
274
- color: ${di};
246
+ border-radius: ${ui};
247
+ background-color: ${di};
248
+ color: ${fi};
275
249
  top: -500px;
276
250
  left: -500px;
277
251
  position: relative;
278
252
  word-break: break-word;
279
253
  }
280
- `,hi([e.property()],gi.prototype,"text",void 0),hi([e.property({type:Boolean})],gi.prototype,"manual",void 0),hi([e.property({type:Boolean})],gi.prototype,"inline",void 0),hi([e.property({type:Number})],gi.prototype,"delay",void 0),hi([e.property()],gi.prototype,"position",void 0),hi([e.queryAssignedNodes("",!0)],gi.prototype,"slotNodes",void 0),hi([e.query(".ft-tooltip--container")],gi.prototype,"container",void 0),hi([e.query("slot")],gi.prototype,"target",void 0),hi([e.query(".ft-tooltip")],gi.prototype,"tooltip",void 0),hi([e.query(".ft-tooltip--content")],gi.prototype,"tooltipContent",void 0),hi([e.state()],gi.prototype,"visible",void 0),i.customElement("ft-tooltip")(gi);const bi={color:i.FtCssVariable.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class vi extends i.FtLitElement{static get styles(){return o.css`
254
+ `,pi([o.property()],xi.prototype,"text",void 0),pi([o.property({type:Boolean})],xi.prototype,"manual",void 0),pi([o.property({type:Boolean})],xi.prototype,"inline",void 0),pi([o.property({type:Number})],xi.prototype,"delay",void 0),pi([o.property()],xi.prototype,"position",void 0),pi([o.queryAssignedNodes("",!0)],xi.prototype,"slotNodes",void 0),pi([o.query(".ft-tooltip--container")],xi.prototype,"container",void 0),pi([o.query("slot")],xi.prototype,"target",void 0),pi([o.query(".ft-tooltip")],xi.prototype,"tooltip",void 0),pi([o.query(".ft-tooltip--content")],xi.prototype,"tooltipContent",void 0),pi([o.state()],xi.prototype,"visible",void 0),i.customElement("ft-tooltip")(xi);const yi={color:i.FtCssVariable.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class gi extends i.FtLitElement{static get styles(){return e.css`
281
255
  :host {
282
256
  line-height: 0;
283
257
  }
@@ -286,8 +260,8 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
286
260
  display: inline-block;
287
261
  position: relative;
288
262
 
289
- width: ${bi.size};
290
- height: ${bi.size};
263
+ width: ${yi.size};
264
+ height: ${yi.size};
291
265
  }
292
266
 
293
267
  .ft-loader div {
@@ -296,7 +270,7 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
296
270
  width: 25%;
297
271
  height: 25%;
298
272
  border-radius: 50%;
299
- background: ${bi.color};
273
+ background: ${yi.color};
300
274
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
301
275
  }
302
276
 
@@ -343,17 +317,55 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
343
317
  transform: translate(0, 0);
344
318
  }
345
319
  100% {
346
- transform: translate(calc(0.35 * ${bi.size}), 0);
320
+ transform: translate(calc(0.35 * ${yi.size}), 0);
347
321
  }
348
322
  }
349
- `}render(){return o.html`
323
+ `}render(){return e.html`
350
324
  <div class="ft-loader">
351
325
  <div></div>
352
326
  <div></div>
353
327
  <div></div>
354
328
  <div></div>
355
329
  </div>
356
- `}}i.customElement("ft-loader")(vi);var mi=function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,o,s):n(i,o))||s);return r>3&&s&&Object.defineProperty(i,o,s),s};const $i=i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorPrimary),xi={backgroundColor:i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:$i,fontSize:i.FtCssVariable.extend("--ft-button-font-size",qt.fontSize),iconSize:i.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariable.extend("--ft-button-ripple-color",$i),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},wi=i.FtCssVariable.extend("--ft-button-primary-color",i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),ki={backgroundColor:i.FtCssVariable.extend("--ft-button-primary-background-color",i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:wi,rippleColor:i.FtCssVariable.extend("--ft-button-primary-ripple-color",wi)},zi=i.FtCssVariable.extend("--ft-button-dense-border-radius",i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM));class Si extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[i.noTextSelect,o.css`
330
+ `}}var bi,vi;i.customElement("ft-loader")(gi),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;"}(bi||(bi={})),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;"}(vi||(vi={})),new Map([...["abw"].map((t=>[t,vi.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,vi.AUDIO])),...["avi"].map((t=>[t,vi.AVI])),...["chm","xhs"].map((t=>[t,vi.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,vi.CODE])),...["csv"].map((t=>[t,vi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,vi.DITA])),...["epub"].map((t=>[t,vi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,vi.EXCEL])),...["flac"].map((t=>[t,vi.FLAC])),...["gif"].map((t=>[t,vi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,vi.GZIP])),...["html","htm","xhtml"].map((t=>[t,vi.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,vi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,vi.JPEG])),...["json"].map((t=>[t,vi.JSON])),...["m4a","m4p"].map((t=>[t,vi.M4A])),...["mov","qt"].map((t=>[t,vi.MOV])),...["mp3"].map((t=>[t,vi.MP3])),...["mp4","m4v"].map((t=>[t,vi.MP4])),...["ogg","oga"].map((t=>[t,vi.OGG])),...["pdf","ps"].map((t=>[t,vi.PDF])),...["png"].map((t=>[t,vi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,vi.POWERPOINT])),...["rar"].map((t=>[t,vi.RAR])),...["stp"].map((t=>[t,vi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,vi.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,vi.VIDEO])),...["wav"].map((t=>[t,vi.WAV])),...["wma"].map((t=>[t,vi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,vi.WORD])),...["xml","xsl","rdf"].map((t=>[t,vi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,vi.YAML])),...["zip"].map((t=>[t,vi.ZIP]))]);var mi,$i=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(mi||(mi={}));const wi={size:i.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariable.extend("--ft-icon-file-format-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariable.extend("--ft-icon-material-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class ki extends i.FtLitElement{constructor(){super(...arguments),this.variant=mi.fluid_topics}render(){return e.html`
331
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
332
+ ${s.unsafeHTML(this.getIcon())}
333
+ <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
334
+ </i>
335
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let o=this.textContent;return this.variant===mi.file_format?null!==(t=vi[o.toUpperCase()])&&void 0!==t?t:o:this.variant===mi.fluid_topics?null!==(i=bi[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}ki.elementDefinitions={},ki.styles=e.css`
336
+ :host, i.ft-icon {
337
+ display: inline-block;
338
+ width: ${wi.size};
339
+ height: ${wi.size};
340
+ text-align: center;
341
+ }
342
+
343
+ i.ft-icon {
344
+ font-size: ${wi.size};
345
+ line-height: 1;
346
+ font-weight: normal;
347
+ text-transform: none;
348
+ font-style: normal;
349
+ font-variant: normal;
350
+ speak: none;
351
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
352
+ text-rendering: auto;
353
+ -webkit-font-smoothing: antialiased;
354
+ -moz-osx-font-smoothing: grayscale;
355
+ }
356
+
357
+ .ft-icon--fluid-topics {
358
+ font-family: ${wi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
359
+ }
360
+
361
+ .ft-icon--file-format {
362
+ font-family: ${wi.fileFormatFontFamily}, ft-mime, sans-serif;
363
+ }
364
+
365
+ .ft-icon--material {
366
+ font-family: ${wi.materialFontFamily}, "Material Icons", sans-serif;
367
+ }
368
+ `,$i([o.property()],ki.prototype,"variant",void 0),$i([o.query("slot")],ki.prototype,"slottedContent",void 0),i.customElement("ft-icon")(ki);var zi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Si=i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Ci={backgroundColor:i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Si,fontSize:i.FtCssVariable.extend("--ft-button-font-size",Jt.fontSize),iconSize:i.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariable.extend("--ft-button-ripple-color",Si),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Oi=i.FtCssVariable.extend("--ft-button-primary-color",i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),ji={backgroundColor:i.FtCssVariable.extend("--ft-button-primary-background-color",i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Oi,rippleColor:i.FtCssVariable.extend("--ft-button-primary-ripple-color",Oi)},Ni=i.FtCssVariable.extend("--ft-button-dense-border-radius",i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM));class Ai extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[i.noTextSelect,e.css`
357
369
  :host {
358
370
  display: inline-block;
359
371
  max-width: 100%;
@@ -392,18 +404,18 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
392
404
  border: none;
393
405
  pointer-events: auto;
394
406
 
395
- --ft-button-internal-font-size: ${xi.fontSize};
407
+ --ft-button-internal-font-size: ${Ci.fontSize};
396
408
  --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
397
- --ft-button-internal-color: ${xi.color};
398
- --mdc-icon-size: ${xi.iconSize};
409
+ --ft-button-internal-color: ${Ci.color};
410
+ ${i.setVariable(wi.size,Ci.iconSize)};
399
411
  --ft-button-internal-vertical-padding: 6px;
400
412
  --ft-button-internal-horizontal-padding: 8px;
401
- ${i.setVariable(s.color,xi.rippleColor)};
402
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), var(--mdc-icon-size));
413
+ ${i.setVariable(l.color,Ci.rippleColor)};
414
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ci.iconSize});
403
415
 
404
- border-radius: ${xi.borderRadius};
416
+ border-radius: ${Ci.borderRadius};
405
417
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
406
- background-color: ${xi.backgroundColor};
418
+ background-color: ${Ci.backgroundColor};
407
419
  color: var(--ft-button-internal-color);
408
420
  -webkit-mask-image: radial-gradient(white, black);
409
421
  }
@@ -415,7 +427,7 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
415
427
  .ft-button--dense {
416
428
  --ft-button-internal-vertical-padding: 2px;
417
429
  --ft-button-internal-horizontal-padding: 4px;
418
- border-radius: ${zi};
430
+ border-radius: ${Ni};
419
431
  }
420
432
 
421
433
  .ft-button--round {
@@ -424,13 +436,13 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
424
436
 
425
437
  .ft-button[disabled] {
426
438
  filter: grayscale(1);
427
- opacity: ${xi.opacityDisabled};
439
+ opacity: ${Ci.opacityDisabled};
428
440
  }
429
441
 
430
442
  .ft-button.ft-button--primary {
431
- background-color: ${ki.backgroundColor};
432
- --ft-button-internal-color: ${ki.color};
433
- ${i.setVariable(s.color,ki.rippleColor)};
443
+ background-color: ${ji.backgroundColor};
444
+ --ft-button-internal-color: ${ji.color};
445
+ ${i.setVariable(l.color,ji.rippleColor)};
434
446
  }
435
447
 
436
448
  .ft-button.ft-button--outlined {
@@ -448,8 +460,8 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
448
460
  text-overflow: ellipsis;
449
461
  display: block;
450
462
  margin: 0 var(--ft-button-internal-horizontal-padding);
451
- ${i.setVariable(qt.fontSize,"var(--ft-button-internal-font-size)")};
452
- ${i.setVariable(qt.lineHeight,"var(--ft-button-internal-content-height)")};
463
+ ${i.setVariable(Jt.fontSize,"var(--ft-button-internal-font-size)")};
464
+ ${i.setVariable(Jt.lineHeight,"var(--ft-button-internal-content-height)")};
453
465
  }
454
466
 
455
467
  .ft-button--safari-fix .ft-button--label {
@@ -466,26 +478,25 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
466
478
  display: none;
467
479
  }
468
480
 
469
- mwc-icon {
481
+ ft-icon {
470
482
  flex-shrink: 0;
471
- width: var(--mdc-icon-size);
472
483
  }
473
484
 
474
- .ft-button--label[hidden] + mwc-icon {
485
+ .ft-button--label[hidden] + ft-icon {
475
486
  margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
476
487
  padding: 0 var(--ft-button-internal-vertical-padding);
477
488
  }
478
489
 
479
- .ft-button:not(.ft-button--trailing-icon) mwc-icon,
490
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
480
491
  .ft-button:not(.ft-button--trailing-icon) ft-loader {
481
492
  order: -1;
482
493
  }
483
494
 
484
495
  ft-loader {
485
- ${i.setVariable(bi.size,xi.iconSize)};
486
- ${i.setVariable(bi.color,"var(--ft-button-internal-color)")};
496
+ ${i.setVariable(yi.size,Ci.iconSize)};
497
+ ${i.setVariable(yi.color,"var(--ft-button-internal-color)")};
487
498
  }
488
- `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":i.isSafari,"ft-no-text-select":!0};return this.addTooltip(o.html`
499
+ `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":i.isSafari,"ft-no-text-select":!0};return this.addTooltip(e.html`
489
500
  <button part="button"
490
501
  class="${n.classMap(t)}"
491
502
  aria-label="${this.getLabel()}"
@@ -499,18 +510,18 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
499
510
  </ft-typography>
500
511
  ${this.resolveIcon()}
501
512
  </button>
502
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:o.html`
513
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:e.html`
503
514
  <ft-tooltip part="tooltip"
504
515
  text="${this.getLabel()}"
505
516
  position="${this.tooltipPosition}">
506
517
  ${t}
507
518
  </ft-tooltip>
508
- `}resolveIcon(){return this.loading?o.html`
509
- <ft-loader></ft-loader> `:this.icon?o.html`
510
- <mwc-icon>${this.icon}</mwc-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Si.elementDefinitions={"ft-ripple":l,"ft-tooltip":gi,"ft-typography":li,"mwc-icon":pi,"ft-loader":vi},mi([e.property({type:Boolean})],Si.prototype,"primary",void 0),mi([e.property({type:Boolean})],Si.prototype,"outlined",void 0),mi([e.property({type:Boolean})],Si.prototype,"disabled",void 0),mi([e.property({type:Boolean})],Si.prototype,"dense",void 0),mi([e.property({type:Boolean})],Si.prototype,"round",void 0),mi([e.property({type:String})],Si.prototype,"label",void 0),mi([e.property({type:String})],Si.prototype,"icon",void 0),mi([e.property({type:Boolean})],Si.prototype,"trailingIcon",void 0),mi([e.property({type:Boolean})],Si.prototype,"loading",void 0),mi([e.property({type:String})],Si.prototype,"tooltipPosition",void 0),mi([e.query(".ft-button")],Si.prototype,"button",void 0),mi([e.query(".ft-button--label slot")],Si.prototype,"slottedContent",void 0),i.customElement("ft-button")(Si);var Ci=function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,o,s):n(i,o))||s);return r>3&&s&&Object.defineProperty(i,o,s),s};class Oi extends CustomEvent{constructor(t){super("change",{detail:{file:t}})}}class Ai extends i.FtLitElement{constructor(){super(...arguments),this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.accept=""}static get styles(){return o.css`
519
+ `}resolveIcon(){return this.loading?e.html`
520
+ <ft-loader></ft-loader> `:this.icon?e.html`
521
+ <ft-icon variant="material">${this.icon}</ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ai.elementDefinitions={"ft-ripple":a,"ft-tooltip":xi,"ft-typography":ai,"ft-icon":ki,"ft-loader":gi},zi([o.property({type:Boolean})],Ai.prototype,"primary",void 0),zi([o.property({type:Boolean})],Ai.prototype,"outlined",void 0),zi([o.property({type:Boolean})],Ai.prototype,"disabled",void 0),zi([o.property({type:Boolean})],Ai.prototype,"dense",void 0),zi([o.property({type:Boolean})],Ai.prototype,"round",void 0),zi([o.property({type:String})],Ai.prototype,"label",void 0),zi([o.property({type:String})],Ai.prototype,"icon",void 0),zi([o.property({type:Boolean})],Ai.prototype,"trailingIcon",void 0),zi([o.property({type:Boolean})],Ai.prototype,"loading",void 0),zi([o.property({type:String})],Ai.prototype,"tooltipPosition",void 0),zi([o.query(".ft-button")],Ai.prototype,"button",void 0),zi([o.query(".ft-button--label slot")],Ai.prototype,"slottedContent",void 0),i.customElement("ft-button")(Ai);var Ii=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ti extends CustomEvent{constructor(t){super("change",{detail:{file:t}})}}class Bi extends i.FtLitElement{constructor(){super(...arguments),this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.accept=""}static get styles(){return e.css`
511
522
  .ft-file-button {
512
523
  }
513
- `}render(){return o.html`
524
+ `}render(){return e.html`
514
525
  <div class="ft-file-button">
515
526
  <ft-button ?disabled=${this.disabled}
516
527
  label="${this.label}"
@@ -525,4 +536,4 @@ function(t,i,o,e){for(var n,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnP
525
536
  @change=${this.onFileChange}
526
537
  hidden/>
527
538
  </div>
528
- `}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new Oi(this.input.files.item(0)))}clear(){this.input.value=""}}Ai.elementDefinitions={"ft-button":Si},Ci([e.property({type:Boolean})],Ai.prototype,"disabled",void 0),Ci([e.property({type:String})],Ai.prototype,"label",void 0),Ci([e.property({type:String})],Ai.prototype,"icon",void 0),Ci([e.property({type:Boolean})],Ai.prototype,"trailingIcon",void 0),Ci([e.property({type:String})],Ai.prototype,"accept",void 0),Ci([e.query(".ft-file-button--input")],Ai.prototype,"input",void 0),i.customElement("ft-file-button")(Ai),t.FileChangeEvent=Oi,t.FtFileButton=Ai,t.FtFileButtonCssVariables={},Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);
539
+ `}onFileChange(){var t;(null===(t=this.input.files)||void 0===t?void 0:t.length)>0&&this.dispatchEvent(new Ti(this.input.files.item(0)))}clear(){this.input.value=""}}Bi.elementDefinitions={"ft-button":Ai},Ii([o.property({type:Boolean})],Bi.prototype,"disabled",void 0),Ii([o.property({type:String})],Bi.prototype,"label",void 0),Ii([o.property({type:String})],Bi.prototype,"icon",void 0),Ii([o.property({type:Boolean})],Bi.prototype,"trailingIcon",void 0),Ii([o.property({type:String})],Bi.prototype,"accept",void 0),Ii([o.query(".ft-file-button--input")],Bi.prototype,"input",void 0),i.customElement("ft-file-button")(Bi),t.FileChangeEvent=Ti,t.FtFileButton=Bi,t.FtFileButtonCssVariables={},Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);