@fluid-topics/ft-button 0.1.6 → 0.1.9

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.
@@ -203,11 +203,15 @@ let FtButton = class FtButton extends FtLitElement {
203
203
  "ft-no-text-select": true,
204
204
  };
205
205
  return this.addTooltip(html `
206
- <button class="${classMap(classes)}"
206
+ <button part="button"
207
+ class="${classMap(classes)}"
207
208
  aria-label="${this.getLabel()}"
208
209
  ?disabled=${this.isDisabled()}>
209
- <ft-ripple ?disabled=${this.isDisabled()}></ft-ripple>
210
- <ft-typography variant="button" class="ft-button--label" ?hidden=${!this.hasTextContent()}>
210
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
211
+ <ft-typography part="label"
212
+ variant="button"
213
+ class="ft-button--label"
214
+ ?hidden=${!this.hasTextContent()}>
211
215
  <slot @slotchange=${this.onSlotchange}></slot>
212
216
  </ft-typography>
213
217
  ${this.resolveIcon()}
@@ -216,7 +220,8 @@ let FtButton = class FtButton extends FtLitElement {
216
220
  }
217
221
  addTooltip(button) {
218
222
  return this.hasTextContent() || this.getLabel().trim().length === 0 ? button : html `
219
- <ft-tooltip text="${this.getLabel()}"
223
+ <ft-tooltip part="tooltip"
224
+ text="${this.getLabel()}"
220
225
  position="${this.tooltipPosition}">
221
226
  ${button}
222
227
  </ft-tooltip>
@@ -0,0 +1,568 @@
1
+ !function(t,e,i,r,o,a){
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */
16
+ var n=function(t,e){return n=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])},n(t,e)};var s=function(){return s=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},s.apply(this,arguments)};function p(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n}function c(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.")}
17
+ /**
18
+ * @license
19
+ * Copyright 2018 Google Inc.
20
+ *
21
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
22
+ * of this software and associated documentation files (the "Software"), to deal
23
+ * in the Software without restriction, including without limitation the rights
24
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25
+ * copies of the Software, and to permit persons to whom the Software is
26
+ * furnished to do so, subject to the following conditions:
27
+ *
28
+ * The above copyright notice and this permission notice shall be included in
29
+ * all copies or substantial portions of the Software.
30
+ *
31
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
37
+ * THE SOFTWARE.
38
+ */
39
+ /**
40
+ * @license
41
+ * Copyright 2018 Google LLC
42
+ * SPDX-License-Identifier: Apache-2.0
43
+ */
44
+ const l=()=>{},d={get passive(){return!1}};document.addEventListener("x",l,d),document.removeEventListener("x",l);
45
+ /**
46
+ * @license
47
+ * Copyright 2018 Google LLC
48
+ * SPDX-License-Identifier: Apache-2.0
49
+ */
50
+ class f 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()}}
51
+ /**
52
+ * @license
53
+ * Copyright 2016 Google Inc.
54
+ *
55
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
56
+ * of this software and associated documentation files (the "Software"), to deal
57
+ * in the Software without restriction, including without limitation the rights
58
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
59
+ * copies of the Software, and to permit persons to whom the Software is
60
+ * furnished to do so, subject to the following conditions:
61
+ *
62
+ * The above copyright notice and this permission notice shall be included in
63
+ * all copies or substantial portions of the Software.
64
+ *
65
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
67
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
68
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
69
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
70
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
71
+ * THE SOFTWARE.
72
+ */var u=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}(),h={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"},m={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"},y={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
73
+ /**
74
+ * @license
75
+ * Copyright 2016 Google Inc.
76
+ *
77
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
78
+ * of this software and associated documentation files (the "Software"), to deal
79
+ * in the Software without restriction, including without limitation the rights
80
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
81
+ * copies of the Software, and to permit persons to whom the Software is
82
+ * furnished to do so, subject to the following conditions:
83
+ *
84
+ * The above copyright notice and this permission notice shall be included in
85
+ * all copies or substantial portions of the Software.
86
+ *
87
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
88
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
89
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
90
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
91
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
92
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
93
+ * THE SOFTWARE.
94
+ */
95
+ /**
96
+ * @license
97
+ * Copyright 2016 Google Inc.
98
+ *
99
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
100
+ * of this software and associated documentation files (the "Software"), to deal
101
+ * in the Software without restriction, including without limitation the rights
102
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
103
+ * copies of the Software, and to permit persons to whom the Software is
104
+ * furnished to do so, subject to the following conditions:
105
+ *
106
+ * The above copyright notice and this permission notice shall be included in
107
+ * all copies or substantial portions of the Software.
108
+ *
109
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
110
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
111
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
112
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
113
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
114
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
115
+ * THE SOFTWARE.
116
+ */
117
+ var g=["touchstart","pointerdown","mousedown","keydown"],v=["touchend","pointerup","mouseup","contextmenu"],b=[],x=function(t){function e(i){var r=t.call(this,s(s({},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}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return y},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,o=r.ROOT,a=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(a),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,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(o),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=c(g),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.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=c(v),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=c(g),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,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=c(v),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,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&&b.length>0&&b.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(b.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){b=[],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,o=i.VAR_FG_TRANSLATE_END,a=e.cssClasses,n=a.FG_DEACTIVATION,s=a.FG_ACTIVATION,p=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(o,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(n),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),p)},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,o,a=e.x,n=e.y,s=a+i.left,p=n+i.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-s,o=c.changedTouches[0].pageY-p}else{var l=t;r=l.pageX-s,o=l.pageY-p}return{x:r,y:o}}(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,o=r.hasDeactivationUXRun,a=r.isActivated;(o||!a)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),y.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=s({},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,o=t.VAR_TOP,a=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(a,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(o,this.unboundedCoords.top+"px"))},e}(u),$=x;
118
+ /**
119
+ * @license
120
+ * Copyright 2018 Google LLC
121
+ * SPDX-License-Identifier: Apache-2.0
122
+ */
123
+ class w extends f{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=$}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);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),o={"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`
124
+ <div class="mdc-ripple-surface mdc-ripple-upgraded ${r.classMap(o)}"
125
+ style="${a.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>`}}p([i.query(".mdc-ripple-surface")],w.prototype,"mdcRoot",void 0),p([i.property({type:Boolean})],w.prototype,"primary",void 0),p([i.property({type:Boolean})],w.prototype,"accent",void 0),p([i.property({type:Boolean})],w.prototype,"unbounded",void 0),p([i.property({type:Boolean})],w.prototype,"disabled",void 0),p([i.property({type:Boolean})],w.prototype,"activated",void 0),p([i.property({type:Boolean})],w.prototype,"selected",void 0),p([i.property({type:Boolean})],w.prototype,"internalUseStateLayerCustomProperties",void 0),p([i.state()],w.prototype,"hovering",void 0),p([i.state()],w.prototype,"bgFocused",void 0),p([i.state()],w.prototype,"fgActivation",void 0),p([i.state()],w.prototype,"fgDeactivation",void 0),p([i.state()],w.prototype,"fgScale",void 0),p([i.state()],w.prototype,"fgSize",void 0),p([i.state()],w.prototype,"translateStart",void 0),p([i.state()],w.prototype,"translateEnd",void 0),p([i.state()],w.prototype,"leftPos",void 0),p([i.state()],w.prototype,"topPos",void 0);
126
+ /**
127
+ * @license
128
+ * Copyright 2021 Google LLC
129
+ * SPDX-LIcense-Identifier: Apache-2.0
130
+ */
131
+ const k=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)}`
132
+ /**
133
+ * @license
134
+ * Copyright 2018 Google LLC
135
+ * SPDX-License-Identifier: Apache-2.0
136
+ */;let z=class extends w{};z.styles=[k],z=p([i.customElement("mwc-ripple")],z);
137
+ /**
138
+ * @license
139
+ * Copyright 2020 Google LLC
140
+ * SPDX-License-Identifier: Apache-2.0
141
+ */
142
+ class A{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 S=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const O={color:o.FtCssVariable.extend("--ft-ripple-color",o.designSystemVariables.colorContent),primaryColor:o.FtCssVariable.extend("--ft-ripple-primary-color",o.FtCssVariable.extend("--ft-ripple-color",o.designSystemVariables.colorPrimary)),secondaryColor:o.FtCssVariable.extend("--ft-ripple-secondary-color",o.FtCssVariable.extend("--ft-ripple-color",o.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:o.FtCssVariable.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariable.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariable.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariable.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:o.FtCssVariable.external(o.designSystemVariables.opacityContentOnSurfaceDragged,"Design system")};let T=class extends o.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`
143
+ :host {
144
+ display: contents;
145
+
146
+ --mdc-ripple-color: ${O.color};
147
+ --mdc-ripple-press-opacity: ${O.opacityContentOnSurfacePressed};
148
+ --mdc-ripple-hover-opacity: ${O.opacityContentOnSurfaceHover};
149
+ --mdc-ripple-focus-opacity: ${O.opacityContentOnSurfaceFocused};
150
+ --mdc-ripple-selected-opacity: ${O.opacityContentOnSurfaceSelected};
151
+ --mdc-ripple-activated-opacity: ${O.opacityContentOnSurfaceDragged};
152
+ }
153
+
154
+ mwc-ripple.ft-ripple--secondary {
155
+ --mdc-ripple-color: ${O.secondaryColor};
156
+ }
157
+
158
+ mwc-ripple.ft-ripple--primary {
159
+ --mdc-ripple-color: ${O.primaryColor};
160
+ }
161
+ `}getTemplate(){return e.html`
162
+ <mwc-ripple
163
+ class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
164
+ ?unbounded=${this.unbounded}
165
+ ?activated=${this.activated}
166
+ ?selected=${this.selected}
167
+ ?disabled=${this.disabled}
168
+ ></mwc-ripple>
169
+ `}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 A((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},r=i("mouseup"),o=i("touchend","touchcancel"),a=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",r),e.addEventListener("touchstart",o),e.addEventListener("keydown",a),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",o),e.removeEventListener("keydown",a),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};
170
+ /**
171
+ * @license
172
+ * Copyright 2017 Google LLC
173
+ * SPDX-License-Identifier: BSD-3-Clause
174
+ */
175
+ var _;T.elementDefinitions={"mwc-ripple":z},S([i.property({type:Boolean})],T.prototype,"primary",void 0),S([i.property({type:Boolean})],T.prototype,"secondary",void 0),S([i.property({type:Boolean})],T.prototype,"unbounded",void 0),S([i.property({type:Boolean})],T.prototype,"activated",void 0),S([i.property({type:Boolean})],T.prototype,"selected",void 0),S([i.property({type:Boolean})],T.prototype,"disabled",void 0),S([i.query("mwc-ripple")],T.prototype,"mwcRipple",void 0),T=S([o.customElement("ft-ripple")],T);const C=globalThis.trustedTypes,I=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,F="?"+E,j=`<${F}>`,R=document,B=(t="")=>R.createComment(t),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,P=/>/g,U=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,G=/'/g,V=/"/g,L=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),K=new WeakMap,X=R.createTreeWalker(R,129,null,!1),Y=(t,e)=>{const i=t.length-1,r=[];let o,a=2===e?"<svg>":"",n=M;for(let e=0;e<i;e++){const i=t[e];let s,p,c=-1,l=0;for(;l<i.length&&(n.lastIndex=l,p=n.exec(i),null!==p);)l=n.lastIndex,n===M?"!--"===p[1]?n=H:void 0!==p[1]?n=P:void 0!==p[2]?(L.test(p[2])&&(o=RegExp("</"+p[2],"g")),n=U):void 0!==p[3]&&(n=U):n===U?">"===p[0]?(n=null!=o?o:M,c=-1):void 0===p[1]?c=-2:(c=n.lastIndex-p[2].length,s=p[1],n=void 0===p[3]?U:'"'===p[3]?V:G):n===V||n===G?n=U:n===H||n===P?n=M:(n=U,o=void 0);const d=n===U&&t[e+1].startsWith("/>")?" ":"";a+=n===M?i+j:c>=0?(r.push(s),i.slice(0,c)+"$lit$"+i.slice(c)+E+d):i+E+(-2===c?(r.push(void 0),e):d)}const s=a+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==I?I.createHTML(s):s,r]};class J{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const n=t.length-1,s=this.parts,[p,c]=Y(t,e);if(this.el=J.createElement(p,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=X.nextNode())&&s.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=c[a++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);s.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?at:"@"===e[1]?nt:it})}else s.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(L.test(r.tagName)){const t=r.textContent.split(E),e=t.length-1;if(e>0){r.textContent=C?C.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],B()),X.nextNode(),s.push({type:2,index:++o});r.append(t[e],B())}}}else if(8===r.nodeType)if(r.data===F)s.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(E,t+1));)s.push({type:7,index:o}),t+=E.length-1}o++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,r){var o,a,n,s;if(e===q)return e;let p=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const c=D(e)?void 0:e._$litDirective$;return(null==p?void 0:p.constructor)!==c&&(null===(a=null==p?void 0:p._$AO)||void 0===a||a.call(p,!1),void 0===c?p=void 0:(p=new c(t),p._$AT(t,i,r)),void 0!==r?(null!==(n=(s=i)._$Cl)&&void 0!==n?n:s._$Cl=[])[r]=p:i._$Cu=p),void 0!==p&&(e=Q(t,p._$AS(t,e.values),p,r)),e}class tt{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,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);X.currentNode=o;let a=X.nextNode(),n=0,s=0,p=r[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new et(a,a.nextSibling,this,t):1===p.type?e=new p.ctor(a,p.name,p.strings,this,t):6===p.type&&(e=new st(a,this,t)),this.v.push(e),p=r[++s]}n!==(null==p?void 0:p.index)&&(a=X.nextNode(),n++)}return o}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 et{constructor(t,e,i,r){var o;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}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=Q(this,t,e),D(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==q&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return N(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!==W&&D(this._$AH)?this._$AA.nextSibling.data=t:this.S(R.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=J.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new tt(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new J(t)),e}A(t){N(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new et(this.M(B()),this.M(B()),this,this.options)):i=e[r],i._$AI(o),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 it{constructor(t,e,i,r,o){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let a=!1;if(void 0===o)t=Q(this,t,e,0),a=!D(t)||t!==this._$AH&&t!==q,a&&(this._$AH=t);else{const r=t;let n,s;for(t=o[0],n=0;n<o.length-1;n++)s=Q(this,r[i+n],e,n),s===q&&(s=this._$AH[n]),a||(a=!D(s)||s!==this._$AH[n]),s===W?t=W:t!==W&&(t+=(null!=s?s:"")+o[n+1]),this._$AH[n]=s}a&&!r&&this.k(t)}k(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends it{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===W?void 0:t}}const ot=C?C.emptyScript:"";class at extends it{constructor(){super(...arguments),this.type=4}k(t){t&&t!==W?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class nt extends it{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Q(this,t,e,0))&&void 0!==i?i:W)===q)return;const r=this._$AH,o=t===W&&r!==W||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==W&&(r===W||o);o&&this.element.removeEventListener(this.name,this,r),a&&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 st{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){Q(this,t)}}const pt=window.litHtmlPolyfillSupport;null==pt||pt(J,et),(null!==(_=globalThis.litHtmlVersions)&&void 0!==_?_:globalThis.litHtmlVersions=[]).push("2.1.3");
176
+ /**
177
+ * @license
178
+ * Copyright 2020 Google LLC
179
+ * SPDX-License-Identifier: BSD-3-Clause
180
+ */
181
+ const ct=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const o=i.length;let a,n;const s=[],p=[];let c,l=0,d=!1;for(;l<o;){for(c=e[l];l<o&&void 0!==(n=i[l],a=null===(r=n)||void 0===r?void 0:r._$litStatic$);)c+=a+e[++l],d=!0;p.push(n),s.push(c),l++}if(l===o&&s.push(e[o]),d){const t=s.join("$$lit$$");void 0===(e=lt.get(t))&&(s.raw=s,lt.set(t,e=s)),i=p}return t(e,...i)})(Z);var ft,ut=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>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"}(ft||(ft={}));const ht=o.FtCssVariable.extend("--ft-typography-font-family",o.designSystemVariables.titleFont),mt=o.FtCssVariable.extend("--ft-typography-font-family",o.designSystemVariables.contentFont),yt={fontFamily:mt,fontSize:o.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:o.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:o.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:o.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:o.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},gt=o.FtCssVariable.extend("--ft-typography-title-font-family",ht),vt=o.FtCssVariable.extend("--ft-typography-title-font-size",yt.fontSize,"20px"),bt=o.FtCssVariable.extend("--ft-typography-title-font-weight",yt.fontWeight,"normal"),xt=o.FtCssVariable.extend("--ft-typography-title-letter-spacing",yt.letterSpacing,"0.15px"),$t=o.FtCssVariable.extend("--ft-typography-title-line-height",yt.lineHeight,"24px"),wt=o.FtCssVariable.extend("--ft-typography-title-text-transform",yt.textTransform,"inherit"),kt=o.FtCssVariable.extend("--ft-typography-title-dense-font-family",ht),zt=o.FtCssVariable.extend("--ft-typography-title-dense-font-size",yt.fontSize,"14px"),At=o.FtCssVariable.extend("--ft-typography-title-dense-font-weight",yt.fontWeight,"normal"),St=o.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",yt.letterSpacing,"0.105px"),Ot=o.FtCssVariable.extend("--ft-typography-title-dense-line-height",yt.lineHeight,"24px"),Tt=o.FtCssVariable.extend("--ft-typography-title-dense-text-transform",yt.textTransform,"inherit"),_t=o.FtCssVariable.extend("--ft-typography-subtitle1-font-family",mt),Ct=o.FtCssVariable.extend("--ft-typography-subtitle1-font-size",yt.fontSize,"16px"),It=o.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",yt.fontWeight,"600"),Et=o.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",yt.letterSpacing,"0.144px"),Ft=o.FtCssVariable.extend("--ft-typography-subtitle1-line-height",yt.lineHeight,"24px"),jt=o.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",yt.textTransform,"inherit"),Rt=o.FtCssVariable.extend("--ft-typography-subtitle2-font-family",mt),Bt=o.FtCssVariable.extend("--ft-typography-subtitle2-font-size",yt.fontSize,"14px"),Dt=o.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",yt.fontWeight,"normal"),Nt=o.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",yt.letterSpacing,"0.098px"),Mt=o.FtCssVariable.extend("--ft-typography-subtitle2-line-height",yt.lineHeight,"24px"),Ht=o.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",yt.textTransform,"inherit"),Pt=o.FtCssVariable.extend("--ft-typography-body1-font-family",mt),Ut=o.FtCssVariable.extend("--ft-typography-body1-font-size",yt.fontSize,"16px"),Gt=o.FtCssVariable.extend("--ft-typography-body1-font-weight",yt.fontWeight,"normal"),Vt=o.FtCssVariable.extend("--ft-typography-body1-letter-spacing",yt.letterSpacing,"0.496px"),Lt=o.FtCssVariable.extend("--ft-typography-body1-line-height",yt.lineHeight,"24px"),Zt=o.FtCssVariable.extend("--ft-typography-body1-text-transform",yt.textTransform,"inherit"),qt=o.FtCssVariable.extend("--ft-typography-body2-font-family",mt),Wt=o.FtCssVariable.extend("--ft-typography-body2-font-size",yt.fontSize,"14px"),Kt=o.FtCssVariable.extend("--ft-typography-body2-font-weight",yt.fontWeight,"normal"),Xt=o.FtCssVariable.extend("--ft-typography-body2-letter-spacing",yt.letterSpacing,"0.252px"),Yt=o.FtCssVariable.extend("--ft-typography-body2-line-height",yt.lineHeight,"20px"),Jt=o.FtCssVariable.extend("--ft-typography-body2-text-transform",yt.textTransform,"inherit"),Qt=o.FtCssVariable.extend("--ft-typography-caption-font-family",mt),te=o.FtCssVariable.extend("--ft-typography-caption-font-size",yt.fontSize,"12px"),ee=o.FtCssVariable.extend("--ft-typography-caption-font-weight",yt.fontWeight,"normal"),ie=o.FtCssVariable.extend("--ft-typography-caption-letter-spacing",yt.letterSpacing,"0.396px"),re=o.FtCssVariable.extend("--ft-typography-caption-line-height",yt.lineHeight,"16px"),oe=o.FtCssVariable.extend("--ft-typography-caption-text-transform",yt.textTransform,"inherit"),ae=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",mt),ne=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",yt.fontSize,"10px"),se=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",yt.fontWeight,"normal"),pe=o.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",yt.letterSpacing,"0.33px"),ce=o.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",yt.lineHeight,"16px"),le=o.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",yt.textTransform,"inherit"),de=o.FtCssVariable.extend("--ft-typography-overline-font-family",mt),fe=o.FtCssVariable.extend("--ft-typography-overline-font-size",yt.fontSize,"10px"),ue=o.FtCssVariable.extend("--ft-typography-overline-font-weight",yt.fontWeight,"normal"),he=o.FtCssVariable.extend("--ft-typography-overline-letter-spacing",yt.letterSpacing,"1.5px"),me=o.FtCssVariable.extend("--ft-typography-overline-line-height",yt.lineHeight,"16px"),ye=o.FtCssVariable.extend("--ft-typography-overline-text-transform",yt.textTransform,"uppercase"),ge={fontFamily:o.FtCssVariable.extend("--ft-typography-button-font-family",mt),fontSize:o.FtCssVariable.extend("--ft-typography-button-font-size",yt.fontSize,"14px"),fontWeight:o.FtCssVariable.extend("--ft-typography-button-font-weight",yt.fontWeight,"600"),letterSpacing:o.FtCssVariable.extend("--ft-typography-button-letter-spacing",yt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariable.extend("--ft-typography-button-line-height",yt.lineHeight,"16px"),textTransform:o.FtCssVariable.extend("--ft-typography-button-text-transform",yt.textTransform,"uppercase")},ve=e.css`
182
+ .ft-typography--title {
183
+ font-family: ${gt};
184
+ font-size: ${vt};
185
+ font-weight: ${bt};
186
+ letter-spacing: ${xt};
187
+ line-height: ${$t};
188
+ text-transform: ${wt};
189
+ }
190
+ `,be=e.css`
191
+ .ft-typography--title-dense {
192
+ font-family: ${kt};
193
+ font-size: ${zt};
194
+ font-weight: ${At};
195
+ letter-spacing: ${St};
196
+ line-height: ${Ot};
197
+ text-transform: ${Tt};
198
+ }
199
+ `,xe=e.css`
200
+ .ft-typography--subtitle1 {
201
+ font-family: ${_t};
202
+ font-size: ${Ct};
203
+ font-weight: ${It};
204
+ letter-spacing: ${Et};
205
+ line-height: ${Ft};
206
+ text-transform: ${jt};
207
+ }
208
+ `,$e=e.css`
209
+ .ft-typography--subtitle2 {
210
+ font-family: ${Rt};
211
+ font-size: ${Bt};
212
+ font-weight: ${Dt};
213
+ letter-spacing: ${Nt};
214
+ line-height: ${Mt};
215
+ text-transform: ${Ht};
216
+ }
217
+
218
+ `,we=e.css`
219
+ .ft-typography--body1 {
220
+ font-family: ${Pt};
221
+ font-size: ${Ut};
222
+ font-weight: ${Gt};
223
+ letter-spacing: ${Vt};
224
+ line-height: ${Lt};
225
+ text-transform: ${Zt};
226
+ }
227
+ `,ke=e.css`
228
+ .ft-typography--body2 {
229
+ font-family: ${qt};
230
+ font-size: ${Wt};
231
+ font-weight: ${Kt};
232
+ letter-spacing: ${Xt};
233
+ line-height: ${Yt};
234
+ text-transform: ${Jt};
235
+ }
236
+ `,ze=e.css`
237
+ .ft-typography--caption {
238
+ font-family: ${Qt};
239
+ font-size: ${te};
240
+ font-weight: ${ee};
241
+ letter-spacing: ${ie};
242
+ line-height: ${re};
243
+ text-transform: ${oe};
244
+ }
245
+ `,Ae=e.css`
246
+ .ft-typography--breadcrumb {
247
+ font-family: ${ae};
248
+ font-size: ${ne};
249
+ font-weight: ${se};
250
+ letter-spacing: ${pe};
251
+ line-height: ${ce};
252
+ text-transform: ${le};
253
+ }
254
+ `,Se=e.css`
255
+ .ft-typography--overline {
256
+ font-family: ${de};
257
+ font-size: ${fe};
258
+ font-weight: ${ue};
259
+ letter-spacing: ${he};
260
+ line-height: ${me};
261
+ text-transform: ${ye};
262
+ }
263
+ `,Oe=e.css`
264
+ .ft-typography--button {
265
+ font-family: ${ge.fontFamily};
266
+ font-size: ${ge.fontSize};
267
+ font-weight: ${ge.fontWeight};
268
+ letter-spacing: ${ge.letterSpacing};
269
+ line-height: ${ge.lineHeight};
270
+ text-transform: ${ge.textTransform};
271
+ }
272
+ `;let Te=class extends o.FtLitElement{constructor(){super(...arguments),this.variant=ft.body1}getStyles(){return[ve,be,xe,$e,we,ke,ze,Ae,Se,Oe,e.css`
273
+ .ft-typography {
274
+ vertical-align: inherit;
275
+ }
276
+ `]}getTemplate(){return this.element?dt`
277
+ <${ct(this.element)}
278
+ class="ft-typography ft-typography--${this.variant}">
279
+ <slot></slot>
280
+ </${ct(this.element)}>
281
+ `:dt`
282
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
283
+ `}};ut([i.property()],Te.prototype,"element",void 0),ut([i.property()],Te.prototype,"variant",void 0),Te=ut([o.customElement("ft-typography")],Te);
284
+ /**
285
+ * @license
286
+ * Copyright 2021 Google LLC
287
+ * SPDX-LIcense-Identifier: Apache-2.0
288
+ */
289
+ const _e=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"}`
290
+ /**
291
+ * @license
292
+ * Copyright 2018 Google LLC
293
+ * SPDX-License-Identifier: Apache-2.0
294
+ */;let Ce=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};Ce.styles=[_e],Ce=p([i.customElement("mwc-icon")],Ce);var Ie=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const Ee=o.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),Fe=o.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),je=o.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),Re=o.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),Be=o.FtCssVariable.external(o.designSystemVariables.borderRadiusS,"Design system");let De=class extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}getStyles(){return e.css`
295
+ .ft-tooltip--container {
296
+ display: block;
297
+ position: relative;
298
+ }
299
+
300
+ .ft-tooltip--inline {
301
+ display: inline-block;
302
+ max-width: 100%;
303
+ }
304
+
305
+ .ft-tooltip {
306
+ position: absolute;
307
+ box-sizing: border-box;
308
+ overflow: hidden;
309
+ width: max-content;
310
+ max-width: 150px;
311
+ text-align: center;
312
+ padding: ${Ee};
313
+ z-index: ${Re};
314
+ }
315
+
316
+ .ft-tooltip--content {
317
+ padding: 4px 8px;
318
+ border-radius: ${Be};
319
+ background-color: ${je};
320
+ color: ${Fe};
321
+ top: -500px;
322
+ left: -500px;
323
+ position: relative;
324
+ word-break: break-word;
325
+ }
326
+ `}getTemplate(){return e.html`
327
+ <div part="container"
328
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
329
+ @mouseenter=${this.onHover}
330
+ @mouseleave=${this.onOut}
331
+ @focusin=${this.onHover}
332
+ @focusout=${this.onOut}
333
+ @touchstart=${this.onTouch}>
334
+ <div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
335
+ <div part="tooltip-content" class="ft-tooltip--content">
336
+ <ft-typography variant="caption">${this.text}</ft-typography>
337
+ </div>
338
+ </div>
339
+ <slot></slot>
340
+ </div>
341
+ `}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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,r=(e.width-this.tooltip.clientWidth)/2,o=this.tooltip.style;switch(this.position){case"top":o.top=-this.tooltip.clientHeight+"px",o.left=r+"px";break;case"bottom":o.top=e.height+"px",o.left=r+"px";break;case"left":o.top=i+"px",o.left=-this.tooltip.clientWidth+"px";break;case"right":o.top=i+"px",o.left=e.width+"px"}o.maxWidth=Math.max(e.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())}};De.elementDefinitions={"ft-typography":Te},Ie([i.property()],De.prototype,"text",void 0),Ie([i.property({type:Boolean})],De.prototype,"manual",void 0),Ie([i.property({type:Boolean})],De.prototype,"inline",void 0),Ie([i.property({type:Number})],De.prototype,"delay",void 0),Ie([i.property()],De.prototype,"position",void 0),Ie([i.queryAssignedNodes("",!0)],De.prototype,"slotNodes",void 0),Ie([i.query(".ft-tooltip--container")],De.prototype,"container",void 0),Ie([i.query("slot")],De.prototype,"target",void 0),Ie([i.query(".ft-tooltip")],De.prototype,"tooltip",void 0),Ie([i.query(".ft-tooltip--content")],De.prototype,"tooltipContent",void 0),Ie([i.state()],De.prototype,"visible",void 0),De=Ie([o.customElement("ft-tooltip")],De);var Ne=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const Me={color:o.FtCssVariable.extend("--ft-loader-color",o.designSystemVariables.colorPrimary),size:o.FtCssVariable.create("--ft-loader-size","SIZE","80px")};let He=class extends o.FtLitElement{getStyles(){return e.css`
342
+ :host {
343
+ line-height: 0;
344
+ }
345
+
346
+ .ft-loader {
347
+ display: inline-block;
348
+ position: relative;
349
+
350
+ width: ${Me.size};
351
+ height: ${Me.size};
352
+ }
353
+
354
+ .ft-loader div {
355
+ position: absolute;
356
+ top: 37.5%;
357
+ width: 25%;
358
+ height: 25%;
359
+ border-radius: 50%;
360
+ background: ${Me.color};
361
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
362
+ }
363
+
364
+ .ft-loader div:nth-child(1) {
365
+ left: 2.5%;
366
+ animation: appear 0.6s infinite;
367
+ }
368
+
369
+ .ft-loader div:nth-child(2) {
370
+ left: 2.5%;
371
+ animation: move 0.6s infinite;
372
+ }
373
+
374
+ .ft-loader div:nth-child(3) {
375
+ left: 37.5%;
376
+ animation: move 0.6s infinite;
377
+ }
378
+
379
+ .ft-loader div:nth-child(4) {
380
+ left: 72.5%;
381
+ animation: disappear 0.6s infinite;
382
+ }
383
+
384
+ @keyframes appear {
385
+ 0% {
386
+ transform: scale(0);
387
+ }
388
+ 100% {
389
+ transform: scale(1);
390
+ }
391
+ }
392
+
393
+ @keyframes disappear {
394
+ 0% {
395
+ transform: scale(1);
396
+ }
397
+ 100% {
398
+ transform: scale(0);
399
+ }
400
+ }
401
+
402
+ @keyframes move {
403
+ 0% {
404
+ transform: translate(0, 0);
405
+ }
406
+ 100% {
407
+ transform: translate(calc(0.35 * ${Me.size}), 0);
408
+ }
409
+ }
410
+ `}getTemplate(){return e.html`
411
+ <div class="ft-loader">
412
+ <div></div>
413
+ <div></div>
414
+ <div></div>
415
+ <div></div>
416
+ </div>
417
+ `}};He=Ne([o.customElement("ft-loader")],He);var Pe=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const Ue=o.FtCssVariable.extend("--ft-button-color",o.designSystemVariables.colorPrimary),Ge={backgroundColor:o.FtCssVariable.extend("--ft-button-background-color",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariable.extend("--ft-button-border-radius",o.designSystemVariables.borderRadiusL),color:Ue,fontSize:o.FtCssVariable.extend("--ft-button-font-size",ge.fontSize),iconSize:o.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:o.FtCssVariable.extend("--ft-button-ripple-color",Ue),opacityDisabled:o.FtCssVariable.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},Ve=o.FtCssVariable.extend("--ft-button-primary-color",o.FtCssVariable.extend("--ft-button-color",o.designSystemVariables.colorOnPrimary)),Le={backgroundColor:o.FtCssVariable.extend("--ft-button-primary-background-color",o.FtCssVariable.extend("--ft-button-background-color",o.designSystemVariables.colorPrimary)),color:Ve,rippleColor:o.FtCssVariable.extend("--ft-button-primary-ripple-color",Ve)},Ze={borderRadius:o.FtCssVariable.extend("--ft-button-dense-border-radius",o.FtCssVariable.extend("--ft-button-border-radius",o.designSystemVariables.borderRadiusM))};t.FtButton=class extends o.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())}}getStyles(){return[o.noTextSelect,e.css`
418
+ :host {
419
+ display: inline-block;
420
+ max-width: 100%;
421
+ }
422
+
423
+ button {
424
+ box-shadow: 0px 0px 0px transparent;
425
+ border: 0px solid transparent;
426
+ text-shadow: 0px 0px 0px transparent;
427
+ }
428
+
429
+ button:hover {
430
+ box-shadow: 0px 0px 0px transparent;
431
+ border: 0px solid transparent;
432
+ text-shadow: 0px 0px 0px transparent;
433
+ }
434
+
435
+ button:active {
436
+ outline: none;
437
+ border: none;
438
+ }
439
+
440
+ button:focus {
441
+ outline: 0;
442
+ }
443
+
444
+ .ft-button {
445
+ position: relative;
446
+ display: flex;
447
+ justify-content: center;
448
+ align-items: center;
449
+ width: 100%;
450
+ overflow: hidden;
451
+ box-sizing: border-box;
452
+ border: none;
453
+
454
+ --ft-button-internal-font-size: ${Ge.fontSize};
455
+ --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
456
+ --ft-button-internal-color: ${Ge.color};
457
+ --mdc-icon-size: ${Ge.iconSize};
458
+ --ft-button-internal-vertical-padding: 6px;
459
+ --ft-button-internal-horizontal-padding: 8px;
460
+ ${o.setVariable(O.color,Ge.rippleColor)};
461
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), var(--mdc-icon-size));
462
+
463
+ border-radius: ${Ge.borderRadius};
464
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
465
+ background-color: ${Ge.backgroundColor};
466
+ color: var(--ft-button-internal-color);
467
+ -webkit-mask-image: radial-gradient(white, black);
468
+ }
469
+
470
+ .ft-button:not([disabled]):hover {
471
+ cursor: pointer;
472
+ }
473
+
474
+ .ft-button--dense {
475
+ --ft-button-internal-vertical-padding: 2px;
476
+ --ft-button-internal-horizontal-padding: 4px;
477
+ border-radius: ${Ze.borderRadius};
478
+ }
479
+
480
+ .ft-button--round {
481
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
482
+ }
483
+
484
+ .ft-button[disabled] {
485
+ filter: grayscale(1);
486
+ opacity: ${Ge.opacityDisabled};
487
+ }
488
+
489
+ .ft-button.ft-button--primary {
490
+ background-color: ${Le.backgroundColor};
491
+ --ft-button-internal-color: ${Le.color};
492
+ }
493
+
494
+ .ft-button.ft-button--outlined {
495
+ border: 1px solid var(--ft-button-internal-color);
496
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
497
+ }
498
+
499
+ .ft-button:focus {
500
+ outline: none;
501
+ }
502
+
503
+ .ft-button--label {
504
+ overflow: hidden;
505
+ white-space: nowrap;
506
+ text-overflow: ellipsis;
507
+ display: block;
508
+ margin: 0 var(--ft-button-internal-horizontal-padding);
509
+ ${o.setVariable(ge.fontSize,"var(--ft-button-internal-font-size)")};
510
+ ${o.setVariable(ge.lineHeight,"var(--ft-button-internal-content-height)")};
511
+ }
512
+
513
+ .ft-button--safari-fix .ft-button--label {
514
+ margin-right: 0;
515
+ }
516
+
517
+ .ft-button--safari-fix .ft-button--label:after {
518
+ content: "\\0000a0";
519
+ display: inline-block;
520
+ width: 0;
521
+ }
522
+
523
+ .ft-button--label[hidden] {
524
+ display: none;
525
+ }
526
+
527
+ mwc-icon {
528
+ flex-shrink: 0;
529
+ width: var(--mdc-icon-size);
530
+ }
531
+
532
+ .ft-button--label[hidden] + mwc-icon {
533
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
534
+ padding: 0 var(--ft-button-internal-vertical-padding);
535
+ }
536
+
537
+ .ft-button:not(.ft-button--trailing-icon) mwc-icon,
538
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
539
+ order: -1;
540
+ }
541
+
542
+ ft-loader {
543
+ ${o.setVariable(Me.size,Ge.iconSize)};
544
+ ${o.setVariable(Me.color,"var(--ft-button-internal-color)")};
545
+ }
546
+ `]}getTemplate(){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":o.isSafari,"ft-no-text-select":!0};return this.addTooltip(e.html`
547
+ <button part="button"
548
+ class="${r.classMap(t)}"
549
+ aria-label="${this.getLabel()}"
550
+ ?disabled=${this.isDisabled()}>
551
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
552
+ <ft-typography part="label"
553
+ variant="button"
554
+ class="ft-button--label"
555
+ ?hidden=${!this.hasTextContent()}>
556
+ <slot @slotchange=${this.onSlotchange}></slot>
557
+ </ft-typography>
558
+ ${this.resolveIcon()}
559
+ </button>
560
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:e.html`
561
+ <ft-tooltip part="tooltip"
562
+ text="${this.getLabel()}"
563
+ position="${this.tooltipPosition}">
564
+ ${t}
565
+ </ft-tooltip>
566
+ `}resolveIcon(){return this.loading?e.html`
567
+ <ft-loader></ft-loader> `:this.icon?e.html`
568
+ <mwc-icon>${this.icon}</mwc-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}},t.FtButton.elementDefinitions={"ft-ripple":T,"ft-tooltip":De,"ft-typography":Te,"mwc-icon":Ce,"ft-loader":He},Pe([i.property({type:Boolean})],t.FtButton.prototype,"primary",void 0),Pe([i.property({type:Boolean})],t.FtButton.prototype,"outlined",void 0),Pe([i.property({type:Boolean})],t.FtButton.prototype,"disabled",void 0),Pe([i.property({type:Boolean})],t.FtButton.prototype,"dense",void 0),Pe([i.property({type:Boolean})],t.FtButton.prototype,"round",void 0),Pe([i.property({type:String})],t.FtButton.prototype,"label",void 0),Pe([i.property({type:String})],t.FtButton.prototype,"icon",void 0),Pe([i.property({type:Boolean})],t.FtButton.prototype,"trailingIcon",void 0),Pe([i.property({type:Boolean})],t.FtButton.prototype,"loading",void 0),Pe([i.property({type:String})],t.FtButton.prototype,"tooltipPosition",void 0),Pe([i.query(".ft-button")],t.FtButton.prototype,"button",void 0),Pe([i.query(".ft-button--label slot")],t.FtButton.prototype,"slottedContent",void 0),t.FtButton=Pe([o.customElement("ft-button")],t.FtButton),t.FtButtonCssVariables=Ge,t.FtButtonDenseCssVariables=Ze,t.FtButtonPrimaryCssVariables=Le,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.wcUtils,ftGlobals.litStyleMap);
@@ -68,7 +68,21 @@ const pt=1,lt=t=>(...e)=>({_$litDirective$:t,values:e});class dt{constructor(t){
68
68
  * @license
69
69
  * Copyright 2021 Google LLC
70
70
  * SPDX-License-Identifier: BSD-3-Clause
71
- */class gt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:r}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...r,customElements:t.registry});return s(o,this.constructor.elementStyles),o}}}(Q)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),T`${t.map((t=>T`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const bt=a`.ft-no-text-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`;var xt,wt,Ot;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ot=null===(wt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===wt?void 0:wt.toString())&&void 0!==Ot?Ot:"");
71
+ */class gt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:r}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...r,customElements:t.registry});return s(o,this.constructor.elementStyles),o}}}(Q)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),T`
72
+ ${t.map((t=>T`
73
+ <style>${t}</style>
74
+ `))}
75
+ ${this.getTemplate()}
76
+ `}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const bt=a`
77
+ .ft-no-text-select {
78
+ -webkit-touch-callout: none;
79
+ -webkit-user-select: none;
80
+ -khtml-user-select: none;
81
+ -moz-user-select: none;
82
+ -ms-user-select: none;
83
+ user-select: none;
84
+ }
85
+ `;var xt,wt,Ot;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ot=null===(wt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===wt?void 0:wt.toString())&&void 0!==Ot?Ot:"");
72
86
  /*! *****************************************************************************
73
87
  Copyright (c) Microsoft Corporation.
74
88
 
@@ -194,13 +208,15 @@ const Lt=lt(class extends dt{constructor(t){var e;if(super(t),t.type!==pt||"styl
194
208
  * @license
195
209
  * Copyright 2018 Google LLC
196
210
  * SPDX-License-Identifier: Apache-2.0
197
- */class Pt extends At{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=Dt}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);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),e=this.selected&&(this.primary||!this.accent),i={"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":e,"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 T`<div class="mdc-ripple-surface mdc-ripple-upgraded ${ut(i)}" style="${Lt({"--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>`}}Ct([at(".mdc-ripple-surface")],Pt.prototype,"mdcRoot",void 0),Ct([rt({type:Boolean})],Pt.prototype,"primary",void 0),Ct([rt({type:Boolean})],Pt.prototype,"accent",void 0),Ct([rt({type:Boolean})],Pt.prototype,"unbounded",void 0),Ct([rt({type:Boolean})],Pt.prototype,"disabled",void 0),Ct([rt({type:Boolean})],Pt.prototype,"activated",void 0),Ct([rt({type:Boolean})],Pt.prototype,"selected",void 0),Ct([rt({type:Boolean})],Pt.prototype,"internalUseStateLayerCustomProperties",void 0),Ct([ot()],Pt.prototype,"hovering",void 0),Ct([ot()],Pt.prototype,"bgFocused",void 0),Ct([ot()],Pt.prototype,"fgActivation",void 0),Ct([ot()],Pt.prototype,"fgDeactivation",void 0),Ct([ot()],Pt.prototype,"fgScale",void 0),Ct([ot()],Pt.prototype,"fgSize",void 0),Ct([ot()],Pt.prototype,"translateStart",void 0),Ct([ot()],Pt.prototype,"translateEnd",void 0),Ct([ot()],Pt.prototype,"leftPos",void 0),Ct([ot()],Pt.prototype,"topPos",void 0);
211
+ */class Pt extends At{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=Dt}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);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),e=this.selected&&(this.primary||!this.accent),i={"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":e,"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 T`
212
+ <div class="mdc-ripple-surface mdc-ripple-upgraded ${ut(i)}"
213
+ style="${Lt({"--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>`}}Ct([at(".mdc-ripple-surface")],Pt.prototype,"mdcRoot",void 0),Ct([rt({type:Boolean})],Pt.prototype,"primary",void 0),Ct([rt({type:Boolean})],Pt.prototype,"accent",void 0),Ct([rt({type:Boolean})],Pt.prototype,"unbounded",void 0),Ct([rt({type:Boolean})],Pt.prototype,"disabled",void 0),Ct([rt({type:Boolean})],Pt.prototype,"activated",void 0),Ct([rt({type:Boolean})],Pt.prototype,"selected",void 0),Ct([rt({type:Boolean})],Pt.prototype,"internalUseStateLayerCustomProperties",void 0),Ct([ot()],Pt.prototype,"hovering",void 0),Ct([ot()],Pt.prototype,"bgFocused",void 0),Ct([ot()],Pt.prototype,"fgActivation",void 0),Ct([ot()],Pt.prototype,"fgDeactivation",void 0),Ct([ot()],Pt.prototype,"fgScale",void 0),Ct([ot()],Pt.prototype,"fgSize",void 0),Ct([ot()],Pt.prototype,"translateStart",void 0),Ct([ot()],Pt.prototype,"translateEnd",void 0),Ct([ot()],Pt.prototype,"leftPos",void 0),Ct([ot()],Pt.prototype,"topPos",void 0);
198
214
  /**
199
215
  * @license
200
216
  * Copyright 2021 Google LLC
201
217
  * SPDX-LIcense-Identifier: Apache-2.0
202
218
  */
203
- const It=a`.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:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{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::after,.mdc-ripple-surface::before{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]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{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::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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(.4,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::after,.mdc-ripple-surface--primary::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.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:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--primary--activated::after,.mdc-ripple-surface--primary--activated::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.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:.24;opacity:var(--mdc-ripple-focus-opacity,.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:.24;opacity:var(--mdc-ripple-press-opacity,.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:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--primary--selected::after,.mdc-ripple-surface--primary--selected::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.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:.2;opacity:var(--mdc-ripple-focus-opacity,.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:.2;opacity:var(--mdc-ripple-press-opacity,.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::after,.mdc-ripple-surface--accent::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.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:.12;opacity:var(--mdc-ripple-focus-opacity,.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:.12;opacity:var(--mdc-ripple-press-opacity,.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:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--accent--activated::after,.mdc-ripple-surface--accent--activated::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.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:.24;opacity:var(--mdc-ripple-focus-opacity,.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:.24;opacity:var(--mdc-ripple-press-opacity,.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:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--accent--selected::after,.mdc-ripple-surface--accent--selected::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.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:.2;opacity:var(--mdc-ripple-focus-opacity,.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:.2;opacity:var(--mdc-ripple-press-opacity,.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::after,.mdc-ripple-surface--internal-use-state-layer-custom-properties::before{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color,#000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-state-layer-opacity,.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:.12;opacity:var(--mdc-ripple-focus-state-layer-opacity,.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:.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity,.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)}`
219
+ const It=a`.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)}`
204
220
  /**
205
221
  * @license
206
222
  * Copyright 2018 Google LLC
@@ -211,7 +227,34 @@ const It=a`.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-
211
227
  * Copyright 2020 Google LLC
212
228
  * SPDX-License-Identifier: Apache-2.0
213
229
  */
214
- class Wt{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 Vt=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Kt={color:mt.extend("--ft-ripple-color",vt.colorContent),primaryColor:mt.extend("--ft-ripple-primary-color",mt.extend("--ft-ripple-color",vt.colorPrimary)),secondaryColor:mt.extend("--ft-ripple-secondary-color",mt.extend("--ft-ripple-color",vt.colorSecondary)),opacityContentOnSurfacePressed:mt.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:mt.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:mt.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:mt.external(vt.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:mt.external(vt.opacityContentOnSurfaceDragged,"Design system")};let Zt=class extends gt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return a`:host{display:contents;--mdc-ripple-color:${Kt.color}--mdc-ripple-press-opacity:${Kt.opacityContentOnSurfacePressed}--mdc-ripple-hover-opacity:${Kt.opacityContentOnSurfaceHover}--mdc-ripple-focus-opacity:${Kt.opacityContentOnSurfaceFocused}--mdc-ripple-selected-opacity:${Kt.opacityContentOnSurfaceSelected}--mdc-ripple-activated-opacity:${Kt.opacityContentOnSurfaceDragged}}mwc-ripple.ft-ripple--secondary{--mdc-ripple-color:${Kt.secondaryColor}}mwc-ripple.ft-ripple--primary{--mdc-ripple-color:${Kt.primaryColor}}`}getTemplate(){return T`<mwc-ripple class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}" ?unbounded="${this.unbounded}" ?activated="${this.activated}" ?selected="${this.selected}" ?disabled="${this.disabled}"></mwc-ripple>`}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 Wt((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},r=i("mouseup"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",r),e.addEventListener("touchstart",o),e.addEventListener("keydown",n),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",o),e.removeEventListener("keydown",n),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Zt.elementDefinitions={"mwc-ripple":Ht},Vt([rt({type:Boolean})],Zt.prototype,"primary",void 0),Vt([rt({type:Boolean})],Zt.prototype,"secondary",void 0),Vt([rt({type:Boolean})],Zt.prototype,"unbounded",void 0),Vt([rt({type:Boolean})],Zt.prototype,"activated",void 0),Vt([rt({type:Boolean})],Zt.prototype,"selected",void 0),Vt([rt({type:Boolean})],Zt.prototype,"disabled",void 0),Vt([at("mwc-ripple")],Zt.prototype,"mwcRipple",void 0),Zt=Vt([ht("ft-ripple")],Zt);
230
+ class Wt{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 Vt=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Kt={color:mt.extend("--ft-ripple-color",vt.colorContent),primaryColor:mt.extend("--ft-ripple-primary-color",mt.extend("--ft-ripple-color",vt.colorPrimary)),secondaryColor:mt.extend("--ft-ripple-secondary-color",mt.extend("--ft-ripple-color",vt.colorSecondary)),opacityContentOnSurfacePressed:mt.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:mt.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:mt.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:mt.external(vt.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:mt.external(vt.opacityContentOnSurfaceDragged,"Design system")};let Zt=class extends gt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return a`
231
+ :host {
232
+ display: contents;
233
+
234
+ --mdc-ripple-color: ${Kt.color};
235
+ --mdc-ripple-press-opacity: ${Kt.opacityContentOnSurfacePressed};
236
+ --mdc-ripple-hover-opacity: ${Kt.opacityContentOnSurfaceHover};
237
+ --mdc-ripple-focus-opacity: ${Kt.opacityContentOnSurfaceFocused};
238
+ --mdc-ripple-selected-opacity: ${Kt.opacityContentOnSurfaceSelected};
239
+ --mdc-ripple-activated-opacity: ${Kt.opacityContentOnSurfaceDragged};
240
+ }
241
+
242
+ mwc-ripple.ft-ripple--secondary {
243
+ --mdc-ripple-color: ${Kt.secondaryColor};
244
+ }
245
+
246
+ mwc-ripple.ft-ripple--primary {
247
+ --mdc-ripple-color: ${Kt.primaryColor};
248
+ }
249
+ `}getTemplate(){return T`
250
+ <mwc-ripple
251
+ class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
252
+ ?unbounded=${this.unbounded}
253
+ ?activated=${this.activated}
254
+ ?selected=${this.selected}
255
+ ?disabled=${this.disabled}
256
+ ></mwc-ripple>
257
+ `}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 Wt((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},r=i("mouseup"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",r),e.addEventListener("touchstart",o),e.addEventListener("keydown",n),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",o),e.removeEventListener("keydown",n),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Zt.elementDefinitions={"mwc-ripple":Ht},Vt([rt({type:Boolean})],Zt.prototype,"primary",void 0),Vt([rt({type:Boolean})],Zt.prototype,"secondary",void 0),Vt([rt({type:Boolean})],Zt.prototype,"unbounded",void 0),Vt([rt({type:Boolean})],Zt.prototype,"activated",void 0),Vt([rt({type:Boolean})],Zt.prototype,"selected",void 0),Vt([rt({type:Boolean})],Zt.prototype,"disabled",void 0),Vt([at("mwc-ripple")],Zt.prototype,"mwcRipple",void 0),Zt=Vt([ht("ft-ripple")],Zt);
215
258
  /**
216
259
  * @license
217
260
  * Copyright 2020 Google LLC
@@ -308,7 +351,11 @@ const qt=t=>({_$litStatic$:t}),Gt=new Map,Xt=(t=>(e,...i)=>{var r;const o=i.leng
308
351
  line-height: ${ii.lineHeight};
309
352
  text-transform: ${ii.textTransform};
310
353
  }
311
- `;let fi=class extends gt{constructor(){super(...arguments),this.variant=Jt.body1}getStyles(){return[ri,oi,ni,ai,si,ci,pi,li,di,ui]}getTemplate(){return this.element?Xt`
354
+ `;let fi=class extends gt{constructor(){super(...arguments),this.variant=Jt.body1}getStyles(){return[ri,oi,ni,ai,si,ci,pi,li,di,ui,a`
355
+ .ft-typography {
356
+ vertical-align: inherit;
357
+ }
358
+ `]}getTemplate(){return this.element?Xt`
312
359
  <${qt(this.element)}
313
360
  class="ft-typography ft-typography--${this.variant}">
314
361
  <slot></slot>
@@ -321,15 +368,289 @@ const qt=t=>({_$litStatic$:t}),Gt=new Map,Xt=(t=>(e,...i)=>{var r;const o=i.leng
321
368
  * Copyright 2021 Google LLC
322
369
  * SPDX-LIcense-Identifier: Apache-2.0
323
370
  */
324
- const hi=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:400;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"}`
371
+ const hi=a`: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"}`
325
372
  /**
326
373
  * @license
327
374
  * Copyright 2018 Google LLC
328
375
  * SPDX-License-Identifier: Apache-2.0
329
- */;let mi=class extends Q{render(){return T`<span><slot></slot></span>`}};mi.styles=[hi],mi=Ct([et("mwc-icon")],mi);var yi=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const vi=mt.create("--ft-tooltip-distance","SIZE","4px"),gi=mt.create("--ft-tooltip-color","COLOR","#FFFFFF"),bi=mt.create("--ft-tooltip-background-color","COLOR","#666666"),xi=mt.create("--ft-tooltip-z-index","NUMBER","1"),wi=mt.external(vt.borderRadiusS,"Design system");let Oi=class extends gt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new ft,this.revealDebouncer=new ft}getStyles(){return a`.ft-tooltip--container{display:block;position:relative}.ft-tooltip--inline{display:inline-block;max-width:100%}.ft-tooltip{position:absolute;box-sizing:border-box;overflow:hidden;width:max-content;max-width:150px;text-align:center;padding:${vi};z-index:${xi}}.ft-tooltip--content{padding:4px 8px;border-radius:${wi};background-color:${bi};color:${gi};top:-500px;left:-500px;position:relative;word-break:break-word}`}getTemplate(){return T`<div part="container" class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}" @mouseenter="${this.onHover}" @mouseleave="${this.onOut}" @focusin="${this.onHover}" @focusout="${this.onOut}" @touchstart="${this.onTouch}"><div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden="${!this.visible}"><div part="tooltip-content" class="ft-tooltip--content"><ft-typography variant="caption">${this.text}</ft-typography></div></div><slot></slot></div>`}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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,r=(e.width-this.tooltip.clientWidth)/2,o=this.tooltip.style;switch(this.position){case"top":o.top=-this.tooltip.clientHeight+"px",o.left=r+"px";break;case"bottom":o.top=e.height+"px",o.left=r+"px";break;case"left":o.top=i+"px",o.left=-this.tooltip.clientWidth+"px";break;case"right":o.top=i+"px",o.left=e.width+"px"}o.maxWidth=Math.max(e.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())}};Oi.elementDefinitions={"ft-typography":fi},yi([rt()],Oi.prototype,"text",void 0),yi([rt({type:Boolean})],Oi.prototype,"manual",void 0),yi([rt({type:Boolean})],Oi.prototype,"inline",void 0),yi([rt({type:Number})],Oi.prototype,"delay",void 0),yi([rt()],Oi.prototype,"position",void 0),yi([
376
+ */;let mi=class extends Q{render(){return T`<span><slot></slot></span>`}};mi.styles=[hi],mi=Ct([et("mwc-icon")],mi);var yi=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const vi=mt.create("--ft-tooltip-distance","SIZE","4px"),gi=mt.create("--ft-tooltip-color","COLOR","#FFFFFF"),bi=mt.create("--ft-tooltip-background-color","COLOR","#666666"),xi=mt.create("--ft-tooltip-z-index","NUMBER","1"),wi=mt.external(vt.borderRadiusS,"Design system");let Oi=class extends gt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new ft,this.revealDebouncer=new ft}getStyles(){return a`
377
+ .ft-tooltip--container {
378
+ display: block;
379
+ position: relative;
380
+ }
381
+
382
+ .ft-tooltip--inline {
383
+ display: inline-block;
384
+ max-width: 100%;
385
+ }
386
+
387
+ .ft-tooltip {
388
+ position: absolute;
389
+ box-sizing: border-box;
390
+ overflow: hidden;
391
+ width: max-content;
392
+ max-width: 150px;
393
+ text-align: center;
394
+ padding: ${vi};
395
+ z-index: ${xi};
396
+ }
397
+
398
+ .ft-tooltip--content {
399
+ padding: 4px 8px;
400
+ border-radius: ${wi};
401
+ background-color: ${bi};
402
+ color: ${gi};
403
+ top: -500px;
404
+ left: -500px;
405
+ position: relative;
406
+ word-break: break-word;
407
+ }
408
+ `}getTemplate(){return T`
409
+ <div part="container"
410
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
411
+ @mouseenter=${this.onHover}
412
+ @mouseleave=${this.onOut}
413
+ @focusin=${this.onHover}
414
+ @focusout=${this.onOut}
415
+ @touchstart=${this.onTouch}>
416
+ <div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
417
+ <div part="tooltip-content" class="ft-tooltip--content">
418
+ <ft-typography variant="caption">${this.text}</ft-typography>
419
+ </div>
420
+ </div>
421
+ <slot></slot>
422
+ </div>
423
+ `}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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,r=(e.width-this.tooltip.clientWidth)/2,o=this.tooltip.style;switch(this.position){case"top":o.top=-this.tooltip.clientHeight+"px",o.left=r+"px";break;case"bottom":o.top=e.height+"px",o.left=r+"px";break;case"left":o.top=i+"px",o.left=-this.tooltip.clientWidth+"px";break;case"right":o.top=i+"px",o.left=e.width+"px"}o.maxWidth=Math.max(e.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())}};Oi.elementDefinitions={"ft-typography":fi},yi([rt()],Oi.prototype,"text",void 0),yi([rt({type:Boolean})],Oi.prototype,"manual",void 0),yi([rt({type:Boolean})],Oi.prototype,"inline",void 0),yi([rt({type:Number})],Oi.prototype,"delay",void 0),yi([rt()],Oi.prototype,"position",void 0),yi([
330
424
  /**
331
425
  * @license
332
426
  * Copyright 2017 Google LLC
333
427
  * SPDX-License-Identifier: BSD-3-Clause
334
428
  */
335
- function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return nt({descriptor:r=>({get(){var r;const o="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(o),a=null!=n?ct(n,t):[];return i?a.filter((t=>t.matches(i))):a},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):nt({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(r))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Oi.prototype,"slotNodes",void 0),yi([at(".ft-tooltip--container")],Oi.prototype,"container",void 0),yi([at("slot")],Oi.prototype,"target",void 0),yi([at(".ft-tooltip")],Oi.prototype,"tooltip",void 0),yi([at(".ft-tooltip--content")],Oi.prototype,"tooltipContent",void 0),yi([ot()],Oi.prototype,"visible",void 0),Oi=yi([ht("ft-tooltip")],Oi);var $i=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Si={color:mt.extend("--ft-loader-color",vt.colorPrimary),size:mt.create("--ft-loader-size","SIZE","80px")};let ki=class extends gt{getStyles(){return a`:host{line-height:0}.ft-loader{display:inline-block;position:relative;width:${Si.size};height:${Si.size}}.ft-loader div{position:absolute;top:37.5%;width:25%;height:25%;border-radius:50%;background:${Si.color};animation-timing-function:cubic-bezier(0,1,1,0)}.ft-loader div:nth-child(1){left:2.5%;animation:appear .6s infinite}.ft-loader div:nth-child(2){left:2.5%;animation:move .6s infinite}.ft-loader div:nth-child(3){left:37.5%;animation:move .6s infinite}.ft-loader div:nth-child(4){left:72.5%;animation:disappear .6s infinite}@keyframes appear{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes disappear{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes move{0%{transform:translate(0,0)}100%{transform:translate(calc(.35 * ${Si.size}),0)}}`}getTemplate(){return T`<div class="ft-loader"><div></div><div></div><div></div><div></div></div>`}};ki=$i([ht("ft-loader")],ki);var Ci=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Ri=mt.extend("--ft-button-color",vt.colorPrimary),Ei={backgroundColor:mt.extend("--ft-button-background-color",vt.colorSurface),borderRadius:mt.extend("--ft-button-border-radius",vt.borderRadiusL),color:Ri,fontSize:mt.extend("--ft-button-font-size",ii.fontSize),iconSize:mt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:mt.extend("--ft-button-ripple-color",Ri),opacityDisabled:mt.external(vt.colorOpacityDisabled,"Design system")},Ni=mt.extend("--ft-button-primary-color",mt.extend("--ft-button-color",vt.colorOnPrimary)),Ai={backgroundColor:mt.extend("--ft-button-primary-background-color",mt.extend("--ft-button-background-color",vt.colorPrimary)),color:Ni,rippleColor:mt.extend("--ft-button-primary-ripple-color",Ni)},Mi={borderRadius:mt.extend("--ft-button-dense-border-radius",mt.extend("--ft-button-border-radius",vt.borderRadiusM))};t.FtButton=class extends gt{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())}}getStyles(){return[bt,a`:host{display:inline-block;max-width:100%}button{box-shadow:0 0 0 transparent;border:0 solid transparent;text-shadow:0 0 0 transparent}button:hover{box-shadow:0 0 0 transparent;border:0 solid transparent;text-shadow:0 0 0 transparent}button:active{outline:0;border:none}button:focus{outline:0}.ft-button{position:relative;display:flex;justify-content:center;align-items:center;width:100%;overflow:hidden;box-sizing:border-box;border:none;--ft-button-internal-font-size:${Ei.fontSize}--ft-button-internal-line-height:calc(var(--ft-button-internal-font-size) + 2px);--ft-button-internal-color:${Ei.color}--mdc-icon-size:${Ei.iconSize}--ft-button-internal-vertical-padding:6px;--ft-button-internal-horizontal-padding:8px;${yt(Kt.color,Ei.rippleColor)}--ft-button-internal-content-height:max(var(--ft-button-internal-line-height), var(--mdc-icon-size));border-radius:${Ei.borderRadius};padding:var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);background-color:${Ei.backgroundColor};color:var(--ft-button-internal-color);-webkit-mask-image:radial-gradient(white,#000)}.ft-button:not([disabled]):hover{cursor:pointer}.ft-button--dense{--ft-button-internal-vertical-padding:2px;--ft-button-internal-horizontal-padding:4px;border-radius:${Mi.borderRadius}}.ft-button--round{border-radius:calc(var(--ft-button-internal-content-height)/ 2 + var(--ft-button-internal-vertical-padding))}.ft-button[disabled]{filter:grayscale(1);opacity:${Ei.opacityDisabled}}.ft-button.ft-button--primary{background-color:${Ai.backgroundColor};--ft-button-internal-color:${Ai.color}}.ft-button.ft-button--outlined{border:1px solid var(--ft-button-internal-color);padding:calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px)}.ft-button:focus{outline:0}.ft-button--label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;margin:0 var(--ft-button-internal-horizontal-padding);${yt(ii.fontSize,"var(--ft-button-internal-font-size)")}${yt(ii.lineHeight,"var(--ft-button-internal-content-height)")}}.ft-button--safari-fix .ft-button--label{margin-right:0}.ft-button--safari-fix .ft-button--label:after{content:"\\0000a0";display:inline-block;width:0}.ft-button--label[hidden]{display:none}mwc-icon{flex-shrink:0;width:var(--mdc-icon-size)}.ft-button--label[hidden]+mwc-icon{margin:0 calc(var(--ft-button-internal-horizontal-padding) * -1);padding:0 var(--ft-button-internal-vertical-padding)}.ft-button:not(.ft-button--trailing-icon) ft-loader,.ft-button:not(.ft-button--trailing-icon) mwc-icon{order:-1}ft-loader{${yt(Si.size,Ei.iconSize)}${yt(Si.color,"var(--ft-button-internal-color)")}}`]}getTemplate(){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":$t,"ft-no-text-select":!0};return this.addTooltip(T`<button class="${ut(t)}" aria-label="${this.getLabel()}" ?disabled="${this.isDisabled()}"><ft-ripple ?disabled="${this.isDisabled()}"></ft-ripple><ft-typography variant="button" class="ft-button--label" ?hidden="${!this.hasTextContent()}"><slot @slotchange="${this.onSlotchange}"></slot></ft-typography>${this.resolveIcon()}</button>`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:T`<ft-tooltip text="${this.getLabel()}" position="${this.tooltipPosition}">${t}</ft-tooltip>`}resolveIcon(){return this.loading?T`<ft-loader></ft-loader>`:this.icon?T`<mwc-icon>${this.icon}</mwc-icon>`:U}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}},t.FtButton.elementDefinitions={"ft-ripple":Zt,"ft-tooltip":Oi,"ft-typography":fi,"mwc-icon":mi,"ft-loader":ki},Ci([rt({type:Boolean})],t.FtButton.prototype,"primary",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"outlined",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"disabled",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"dense",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"round",void 0),Ci([rt({type:String})],t.FtButton.prototype,"label",void 0),Ci([rt({type:String})],t.FtButton.prototype,"icon",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"trailingIcon",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"loading",void 0),Ci([rt({type:String})],t.FtButton.prototype,"tooltipPosition",void 0),Ci([at(".ft-button")],t.FtButton.prototype,"button",void 0),Ci([at(".ft-button--label slot")],t.FtButton.prototype,"slottedContent",void 0),t.FtButton=Ci([ht("ft-button")],t.FtButton),t.FtButtonCssVariables=Ei,t.FtButtonDenseCssVariables=Mi,t.FtButtonPrimaryCssVariables=Ai,Object.defineProperty(t,"t",{value:!0})}({});
429
+ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return nt({descriptor:r=>({get(){var r;const o="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(o),a=null!=n?ct(n,t):[];return i?a.filter((t=>t.matches(i))):a},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):nt({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(r))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Oi.prototype,"slotNodes",void 0),yi([at(".ft-tooltip--container")],Oi.prototype,"container",void 0),yi([at("slot")],Oi.prototype,"target",void 0),yi([at(".ft-tooltip")],Oi.prototype,"tooltip",void 0),yi([at(".ft-tooltip--content")],Oi.prototype,"tooltipContent",void 0),yi([ot()],Oi.prototype,"visible",void 0),Oi=yi([ht("ft-tooltip")],Oi);var $i=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Si={color:mt.extend("--ft-loader-color",vt.colorPrimary),size:mt.create("--ft-loader-size","SIZE","80px")};let ki=class extends gt{getStyles(){return a`
430
+ :host {
431
+ line-height: 0;
432
+ }
433
+
434
+ .ft-loader {
435
+ display: inline-block;
436
+ position: relative;
437
+
438
+ width: ${Si.size};
439
+ height: ${Si.size};
440
+ }
441
+
442
+ .ft-loader div {
443
+ position: absolute;
444
+ top: 37.5%;
445
+ width: 25%;
446
+ height: 25%;
447
+ border-radius: 50%;
448
+ background: ${Si.color};
449
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
450
+ }
451
+
452
+ .ft-loader div:nth-child(1) {
453
+ left: 2.5%;
454
+ animation: appear 0.6s infinite;
455
+ }
456
+
457
+ .ft-loader div:nth-child(2) {
458
+ left: 2.5%;
459
+ animation: move 0.6s infinite;
460
+ }
461
+
462
+ .ft-loader div:nth-child(3) {
463
+ left: 37.5%;
464
+ animation: move 0.6s infinite;
465
+ }
466
+
467
+ .ft-loader div:nth-child(4) {
468
+ left: 72.5%;
469
+ animation: disappear 0.6s infinite;
470
+ }
471
+
472
+ @keyframes appear {
473
+ 0% {
474
+ transform: scale(0);
475
+ }
476
+ 100% {
477
+ transform: scale(1);
478
+ }
479
+ }
480
+
481
+ @keyframes disappear {
482
+ 0% {
483
+ transform: scale(1);
484
+ }
485
+ 100% {
486
+ transform: scale(0);
487
+ }
488
+ }
489
+
490
+ @keyframes move {
491
+ 0% {
492
+ transform: translate(0, 0);
493
+ }
494
+ 100% {
495
+ transform: translate(calc(0.35 * ${Si.size}), 0);
496
+ }
497
+ }
498
+ `}getTemplate(){return T`
499
+ <div class="ft-loader">
500
+ <div></div>
501
+ <div></div>
502
+ <div></div>
503
+ <div></div>
504
+ </div>
505
+ `}};ki=$i([ht("ft-loader")],ki);var Ci=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Ri=mt.extend("--ft-button-color",vt.colorPrimary),Ei={backgroundColor:mt.extend("--ft-button-background-color",vt.colorSurface),borderRadius:mt.extend("--ft-button-border-radius",vt.borderRadiusL),color:Ri,fontSize:mt.extend("--ft-button-font-size",ii.fontSize),iconSize:mt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:mt.extend("--ft-button-ripple-color",Ri),opacityDisabled:mt.external(vt.colorOpacityDisabled,"Design system")},Ni=mt.extend("--ft-button-primary-color",mt.extend("--ft-button-color",vt.colorOnPrimary)),Ai={backgroundColor:mt.extend("--ft-button-primary-background-color",mt.extend("--ft-button-background-color",vt.colorPrimary)),color:Ni,rippleColor:mt.extend("--ft-button-primary-ripple-color",Ni)},Mi={borderRadius:mt.extend("--ft-button-dense-border-radius",mt.extend("--ft-button-border-radius",vt.borderRadiusM))};t.FtButton=class extends gt{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())}}getStyles(){return[bt,a`
506
+ :host {
507
+ display: inline-block;
508
+ max-width: 100%;
509
+ }
510
+
511
+ button {
512
+ box-shadow: 0px 0px 0px transparent;
513
+ border: 0px solid transparent;
514
+ text-shadow: 0px 0px 0px transparent;
515
+ }
516
+
517
+ button:hover {
518
+ box-shadow: 0px 0px 0px transparent;
519
+ border: 0px solid transparent;
520
+ text-shadow: 0px 0px 0px transparent;
521
+ }
522
+
523
+ button:active {
524
+ outline: none;
525
+ border: none;
526
+ }
527
+
528
+ button:focus {
529
+ outline: 0;
530
+ }
531
+
532
+ .ft-button {
533
+ position: relative;
534
+ display: flex;
535
+ justify-content: center;
536
+ align-items: center;
537
+ width: 100%;
538
+ overflow: hidden;
539
+ box-sizing: border-box;
540
+ border: none;
541
+
542
+ --ft-button-internal-font-size: ${Ei.fontSize};
543
+ --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
544
+ --ft-button-internal-color: ${Ei.color};
545
+ --mdc-icon-size: ${Ei.iconSize};
546
+ --ft-button-internal-vertical-padding: 6px;
547
+ --ft-button-internal-horizontal-padding: 8px;
548
+ ${yt(Kt.color,Ei.rippleColor)};
549
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), var(--mdc-icon-size));
550
+
551
+ border-radius: ${Ei.borderRadius};
552
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
553
+ background-color: ${Ei.backgroundColor};
554
+ color: var(--ft-button-internal-color);
555
+ -webkit-mask-image: radial-gradient(white, black);
556
+ }
557
+
558
+ .ft-button:not([disabled]):hover {
559
+ cursor: pointer;
560
+ }
561
+
562
+ .ft-button--dense {
563
+ --ft-button-internal-vertical-padding: 2px;
564
+ --ft-button-internal-horizontal-padding: 4px;
565
+ border-radius: ${Mi.borderRadius};
566
+ }
567
+
568
+ .ft-button--round {
569
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
570
+ }
571
+
572
+ .ft-button[disabled] {
573
+ filter: grayscale(1);
574
+ opacity: ${Ei.opacityDisabled};
575
+ }
576
+
577
+ .ft-button.ft-button--primary {
578
+ background-color: ${Ai.backgroundColor};
579
+ --ft-button-internal-color: ${Ai.color};
580
+ }
581
+
582
+ .ft-button.ft-button--outlined {
583
+ border: 1px solid var(--ft-button-internal-color);
584
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
585
+ }
586
+
587
+ .ft-button:focus {
588
+ outline: none;
589
+ }
590
+
591
+ .ft-button--label {
592
+ overflow: hidden;
593
+ white-space: nowrap;
594
+ text-overflow: ellipsis;
595
+ display: block;
596
+ margin: 0 var(--ft-button-internal-horizontal-padding);
597
+ ${yt(ii.fontSize,"var(--ft-button-internal-font-size)")};
598
+ ${yt(ii.lineHeight,"var(--ft-button-internal-content-height)")};
599
+ }
600
+
601
+ .ft-button--safari-fix .ft-button--label {
602
+ margin-right: 0;
603
+ }
604
+
605
+ .ft-button--safari-fix .ft-button--label:after {
606
+ content: "\\0000a0";
607
+ display: inline-block;
608
+ width: 0;
609
+ }
610
+
611
+ .ft-button--label[hidden] {
612
+ display: none;
613
+ }
614
+
615
+ mwc-icon {
616
+ flex-shrink: 0;
617
+ width: var(--mdc-icon-size);
618
+ }
619
+
620
+ .ft-button--label[hidden] + mwc-icon {
621
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
622
+ padding: 0 var(--ft-button-internal-vertical-padding);
623
+ }
624
+
625
+ .ft-button:not(.ft-button--trailing-icon) mwc-icon,
626
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
627
+ order: -1;
628
+ }
629
+
630
+ ft-loader {
631
+ ${yt(Si.size,Ei.iconSize)};
632
+ ${yt(Si.color,"var(--ft-button-internal-color)")};
633
+ }
634
+ `]}getTemplate(){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":$t,"ft-no-text-select":!0};return this.addTooltip(T`
635
+ <button part="button"
636
+ class="${ut(t)}"
637
+ aria-label="${this.getLabel()}"
638
+ ?disabled=${this.isDisabled()}>
639
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
640
+ <ft-typography part="label"
641
+ variant="button"
642
+ class="ft-button--label"
643
+ ?hidden=${!this.hasTextContent()}>
644
+ <slot @slotchange=${this.onSlotchange}></slot>
645
+ </ft-typography>
646
+ ${this.resolveIcon()}
647
+ </button>
648
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:T`
649
+ <ft-tooltip part="tooltip"
650
+ text="${this.getLabel()}"
651
+ position="${this.tooltipPosition}">
652
+ ${t}
653
+ </ft-tooltip>
654
+ `}resolveIcon(){return this.loading?T`
655
+ <ft-loader></ft-loader> `:this.icon?T`
656
+ <mwc-icon>${this.icon}</mwc-icon> `:U}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}},t.FtButton.elementDefinitions={"ft-ripple":Zt,"ft-tooltip":Oi,"ft-typography":fi,"mwc-icon":mi,"ft-loader":ki},Ci([rt({type:Boolean})],t.FtButton.prototype,"primary",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"outlined",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"disabled",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"dense",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"round",void 0),Ci([rt({type:String})],t.FtButton.prototype,"label",void 0),Ci([rt({type:String})],t.FtButton.prototype,"icon",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"trailingIcon",void 0),Ci([rt({type:Boolean})],t.FtButton.prototype,"loading",void 0),Ci([rt({type:String})],t.FtButton.prototype,"tooltipPosition",void 0),Ci([at(".ft-button")],t.FtButton.prototype,"button",void 0),Ci([at(".ft-button--label slot")],t.FtButton.prototype,"slottedContent",void 0),t.FtButton=Ci([ht("ft-button")],t.FtButton),t.FtButtonCssVariables=Ei,t.FtButtonDenseCssVariables=Mi,t.FtButtonPrimaryCssVariables=Ai,Object.defineProperty(t,"t",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-button",
3
- "version": "0.1.6",
3
+ "version": "0.1.9",
4
4
  "description": "A generic Fluid Topics tag",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,13 +19,13 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-loader": "^0.1.6",
23
- "@fluid-topics/ft-ripple": "^0.1.6",
24
- "@fluid-topics/ft-tooltip": "^0.1.6",
25
- "@fluid-topics/ft-typography": "^0.1.6",
26
- "@fluid-topics/ft-wc-utils": "^0.1.6",
22
+ "@fluid-topics/ft-loader": "^0.1.9",
23
+ "@fluid-topics/ft-ripple": "^0.1.9",
24
+ "@fluid-topics/ft-tooltip": "^0.1.9",
25
+ "@fluid-topics/ft-typography": "^0.1.9",
26
+ "@fluid-topics/ft-wc-utils": "^0.1.9",
27
27
  "@material/mwc-icon": "^0.25.3",
28
28
  "lit": "^2.0.2"
29
29
  },
30
- "gitHead": "c441937eb1375dc40ff477dec50b917f2adf3b38"
30
+ "gitHead": "9f649211936b1529bf691190603f2f721d2a72bd"
31
31
  }