@fluid-topics/ft-file-drop 0.1.15 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,300 +1,240 @@
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 p=function(){return p=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},p.apply(this,arguments)};function c(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(o=t[p])&&(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 s(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 h=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}(),u={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=[],$=function(t){function e(i){var r=t.call(this,p(p({},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 u},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=s(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=s(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=s(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=s(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,p=a.FG_ACTIVATION,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var s="",l="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,h=d.endPoint;s=f.x+"px, "+f.y+"px",l=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(r,s),this.adapter.updateCssVariable(o,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(n),this.adapter.computeBoundingRect(),this.adapter.addClass(p),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},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,p=a+i.left,c=n+i.top;if("touchstart"===t.type){var s=t;r=s.changedTouches[0].pageX-p,o=s.changedTouches[0].pageY-c}else{var l=t;r=l.pageX-p,o=l.pageY-c}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=p({},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}(h),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=x}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),r={"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 ${o.classMap(r)}"
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>`}}c([i.query(".mdc-ripple-surface")],w.prototype,"mdcRoot",void 0),c([i.property({type:Boolean})],w.prototype,"primary",void 0),c([i.property({type:Boolean})],w.prototype,"accent",void 0),c([i.property({type:Boolean})],w.prototype,"unbounded",void 0),c([i.property({type:Boolean})],w.prototype,"disabled",void 0),c([i.property({type:Boolean})],w.prototype,"activated",void 0),c([i.property({type:Boolean})],w.prototype,"selected",void 0),c([i.property({type:Boolean})],w.prototype,"internalUseStateLayerCustomProperties",void 0),c([i.state()],w.prototype,"hovering",void 0),c([i.state()],w.prototype,"bgFocused",void 0),c([i.state()],w.prototype,"fgActivation",void 0),c([i.state()],w.prototype,"fgDeactivation",void 0),c([i.state()],w.prototype,"fgScale",void 0),c([i.state()],w.prototype,"fgSize",void 0),c([i.state()],w.prototype,"translateStart",void 0),c([i.state()],w.prototype,"translateEnd",void 0),c([i.state()],w.prototype,"leftPos",void 0),c([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=c([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,p=t.length-1;p>=0;p--)(o=t[p])&&(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:r.FtCssVariable.extend("--ft-ripple-color",r.designSystemVariables.colorContent),primaryColor:r.FtCssVariable.extend("--ft-ripple-primary-color",r.FtCssVariable.extend("--ft-ripple-color",r.designSystemVariables.colorPrimary)),secondaryColor:r.FtCssVariable.extend("--ft-ripple-secondary-color",r.FtCssVariable.extend("--ft-ripple-color",r.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:r.FtCssVariable.external(r.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.FtCssVariable.external(r.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.FtCssVariable.external(r.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.FtCssVariable.external(r.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:r.FtCssVariable.external(r.designSystemVariables.opacityContentOnSurfaceDragged,"Design system")};let C=class extends r.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
- }
1
+ !function(t,i,e,o,n){var r=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const s={color:i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),primaryColor:i.FtCssVariable.extend("--ft-ripple-primary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary)),secondaryColor:i.FtCssVariable.extend("--ft-ripple-secondary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")};class l extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
2
+ <style>
3
+ .ft-ripple .ft-ripple--effect,
4
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
5
+ width: ${this.rippleSize}px;
6
+ height: ${this.rippleSize}px;
7
+ }
157
8
 
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()}};
9
+ .ft-ripple .ft-ripple--effect {
10
+ left: ${this.originX}px;
11
+ top: ${this.originY}px;
12
+ }
13
+ </style>
14
+ <div class="${n.classMap(t)}">
15
+ <div class="ft-ripple--background"></div>
16
+ <div class="ft-ripple--effect"></div>
17
+ </div>
18
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
170
19
  /**
171
20
  * @license
172
21
  * Copyright 2017 Google LLC
173
22
  * SPDX-License-Identifier: BSD-3-Clause
174
23
  */
175
- var T;C.elementDefinitions={"mwc-ripple":z},S([i.property({type:Boolean})],C.prototype,"primary",void 0),S([i.property({type:Boolean})],C.prototype,"secondary",void 0),S([i.property({type:Boolean})],C.prototype,"unbounded",void 0),S([i.property({type:Boolean})],C.prototype,"activated",void 0),S([i.property({type:Boolean})],C.prototype,"selected",void 0),S([i.property({type:Boolean})],C.prototype,"disabled",void 0),S([i.query("mwc-ripple")],C.prototype,"mwcRipple",void 0),C=S([r.customElement("ft-ripple")],C);const I=globalThis.trustedTypes,E=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,_=`lit$${(Math.random()+"").slice(9)}$`,D="?"+_,B=`<${D}>`,j=document,R=(t="")=>j.createComment(t),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,U=/>/g,P=/>|[ \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=j.createTreeWalker(j,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 p,c,s=-1,l=0;for(;l<i.length&&(n.lastIndex=l,c=n.exec(i),null!==c);)l=n.lastIndex,n===M?"!--"===c[1]?n=H:void 0!==c[1]?n=U:void 0!==c[2]?(L.test(c[2])&&(o=RegExp("</"+c[2],"g")),n=P):void 0!==c[3]&&(n=P):n===P?">"===c[0]?(n=null!=o?o:M,s=-1):void 0===c[1]?s=-2:(s=n.lastIndex-c[2].length,p=c[1],n=void 0===c[3]?P:'"'===c[3]?V:G):n===V||n===G?n=P:n===H||n===U?n=M:(n=P,o=void 0);const d=n===P&&t[e+1].startsWith("/>")?" ":"";a+=n===M?i+B:s>=0?(r.push(p),i.slice(0,s)+"$lit$"+i.slice(s)+_+d):i+_+(-2===s?(r.push(void 0),e):d)}const p=a+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(p):p,r]};class J{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const n=t.length-1,p=this.parts,[c,s]=Y(t,e);if(this.el=J.createElement(c,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())&&p.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(_)){const i=s[a++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(_),e=/([.?@])?(.*)/.exec(i);p.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?at:"@"===e[1]?nt:it})}else p.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(L.test(r.tagName)){const t=r.textContent.split(_),e=t.length-1;if(e>0){r.textContent=I?I.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],R()),X.nextNode(),p.push({type:2,index:++o});r.append(t[e],R())}}}else if(8===r.nodeType)if(r.data===D)p.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(_,t+1));)p.push({type:7,index:o}),t+=_.length-1}o++}}static createElement(t,e){const i=j.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,r){var o,a,n,p;if(e===q)return e;let c=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const s=F(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==s&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===s?c=void 0:(c=new s(t),c._$AT(t,i,r)),void 0!==r?(null!==(n=(p=i)._$Cl)&&void 0!==n?n:p._$Cl=[])[r]=c:i._$Cu=c),void 0!==c&&(e=Q(t,c._$AS(t,e.values),c,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:j).importNode(i,!0);X.currentNode=o;let a=X.nextNode(),n=0,p=0,c=r[0];for(;void 0!==c;){if(n===c.index){let e;2===c.type?e=new et(a,a.nextSibling,this,t):1===c.type?e=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(e=new pt(a,this,t)),this.v.push(e),c=r[++p]}n!==(null==c?void 0:c.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),F(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&&F(this._$AH)?this._$AA.nextSibling.data=t:this.S(j.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(R()),this.M(R()),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=!F(t)||t!==this._$AH&&t!==q,a&&(this._$AH=t);else{const r=t;let n,p;for(t=o[0],n=0;n<o.length-1;n++)p=Q(this,r[i+n],e,n),p===q&&(p=this._$AH[n]),a||(a=!F(p)||p!==this._$AH[n]),p===W?t=W:t!==W&&(t+=(null!=p?p:"")+o[n+1]),this._$AH[n]=p}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=I?I.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 pt{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 ct=window.litHtmlPolyfillSupport;null==ct||ct(J,et),(null!==(T=globalThis.litHtmlVersions)&&void 0!==T?T:globalThis.litHtmlVersions=[]).push("2.1.3");
24
+ var p;l.elementDefinitions={},l.styles=e.css`
25
+ :host {
26
+ display: contents;
27
+ }
28
+
29
+ .ft-ripple {
30
+ position: absolute;
31
+ inset: 0;
32
+ pointer-events: none;
33
+ }
34
+
35
+ .ft-ripple:not(.ft-ripple--unbounded) {
36
+ overflow: hidden;
37
+ }
38
+
39
+ .ft-ripple .ft-ripple--background,
40
+ .ft-ripple .ft-ripple--effect {
41
+ position: absolute;
42
+ opacity: 0;
43
+ background-color: ${s.color};
44
+ }
45
+
46
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background,
47
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
48
+ background-color: ${s.secondaryColor};
49
+ }
50
+
51
+ .ft-ripple.ft-ripple--primary .ft-ripple--background,
52
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
53
+ background-color: ${s.primaryColor};
54
+ }
55
+
56
+ .ft-ripple .ft-ripple--background {
57
+ top: 0;
58
+ left: 0;
59
+ height: 100%;
60
+ width: 100%;
61
+ }
62
+
63
+ .ft-ripple .ft-ripple--effect,
64
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
65
+ border-radius: 50%;
66
+ }
67
+
68
+ .ft-ripple .ft-ripple--effect {
69
+ transform: translate(-50%, -50%) scale(0.15);
70
+ transition: transform 300ms ease, opacity 75ms linear;
71
+ }
72
+
73
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
74
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
75
+ left: 50%;
76
+ top: 50%;
77
+ }
78
+
79
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
80
+ transform: translate(-50%, -50%);
81
+ }
82
+
83
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
84
+ opacity: ${s.opacityContentOnSurfaceHover};
85
+ }
86
+
87
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
88
+ opacity: ${s.opacityContentOnSurfaceSelected};
89
+ }
90
+
91
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
92
+ opacity: ${s.opacityContentOnSurfaceFocused};
93
+ }
94
+
95
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
96
+ opacity: ${s.opacityContentOnSurfacePressed};
97
+ transform: translate(-50%, -50%) scale(1);
98
+ }
99
+ `,r([o.property({type:Boolean})],l.prototype,"primary",void 0),r([o.property({type:Boolean})],l.prototype,"secondary",void 0),r([o.property({type:Boolean})],l.prototype,"unbounded",void 0),r([o.property({type:Boolean})],l.prototype,"activated",void 0),r([o.property({type:Boolean})],l.prototype,"selected",void 0),r([o.property({type:Boolean})],l.prototype,"disabled",void 0),r([o.state()],l.prototype,"hovered",void 0),r([o.state()],l.prototype,"focused",void 0),r([o.state()],l.prototype,"pressed",void 0),r([o.state()],l.prototype,"rippling",void 0),r([o.state()],l.prototype,"rippleSize",void 0),r([o.state()],l.prototype,"originX",void 0),r([o.state()],l.prototype,"originY",void 0),r([o.query(".ft-ripple")],l.prototype,"ripple",void 0),r([o.query(".ft-ripple--effect")],l.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(l);const h=globalThis.trustedTypes,a=h?h.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,c="?"+f,d=`<${c}>`,g=document,y=(t="")=>g.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,v=Array.isArray,b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,m=/>/g,x=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,w=/'/g,k=/"/g,z=/^(?:script|style|textarea|title)$/i,C=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),S=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),O=new WeakMap,I=g.createTreeWalker(g,129,null,!1),B=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=b;for(let i=0;i<e;i++){const e=t[i];let l,p,h=-1,a=0;for(;a<e.length&&(s.lastIndex=a,p=s.exec(e),null!==p);)a=s.lastIndex,s===b?"!--"===p[1]?s=$:void 0!==p[1]?s=m:void 0!==p[2]?(z.test(p[2])&&(n=RegExp("</"+p[2],"g")),s=x):void 0!==p[3]&&(s=x):s===x?">"===p[0]?(s=null!=n?n:b,h=-1):void 0===p[1]?h=-2:(h=s.lastIndex-p[2].length,l=p[1],s=void 0===p[3]?x:'"'===p[3]?k:w):s===k||s===w?s=x:s===$||s===m?s=b:(s=x,n=void 0);const c=s===x&&t[i+1].startsWith("/>")?" ":"";r+=s===b?e+d:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+f+c):e+f+(-2===h?(o.push(void 0),i):c)}const l=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(l):l,o]};class A{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,l=this.parts,[p,a]=B(t,i);if(this.el=A.createElement(p,e),I.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=I.nextNode())&&l.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(f)){const e=a[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(f),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?N:"?"===i[1]?Z:"@"===i[1]?U:D})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(z.test(o.tagName)){const t=o.textContent.split(f),i=t.length-1;if(i>0){o.textContent=h?h.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],y()),I.nextNode(),l.push({type:2,index:++n});o.append(t[i],y())}}}else if(8===o.nodeType)if(o.data===c)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)l.push({type:7,index:n}),t+=f.length-1}n++}}static createElement(t,i){const e=g.createElement("template");return e.innerHTML=t,e}}function _(t,i,e=t,o){var n,r,s,l;if(i===S)return i;let p=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const h=u(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==h&&(null===(r=null==p?void 0:p._$AO)||void 0===r||r.call(p,!1),void 0===h?p=void 0:(p=new h(t),p._$AT(t,e,o)),void 0!==o?(null!==(s=(l=e)._$Cl)&&void 0!==s?s:l._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=_(t,p._$AS(t,i.values),p,o)),i}class j{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:g).importNode(e,!0);I.currentNode=n;let r=I.nextNode(),s=0,l=0,p=o[0];for(;void 0!==p;){if(s===p.index){let i;2===p.type?i=new T(r,r.nextSibling,this,t):1===p.type?i=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(i=new R(r,this,t)),this.v.push(i),p=o[++l]}s!==(null==p?void 0:p.index)&&(r=I.nextNode(),s++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class T{constructor(t,i,e,o){var n;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=_(this,t,i),u(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==S&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return v(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==E&&u(this._$AH)?this._$AA.nextSibling.data=t:this.S(g.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=A.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new j(n,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=O.get(t.strings);return void 0===i&&O.set(t.strings,i=new A(t)),i}A(t){v(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new T(this.M(y()),this.M(y()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class D{constructor(t,i,e,o,n){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=E}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=_(this,t,i,0),r=!u(t)||t!==this._$AH&&t!==S,r&&(this._$AH=t);else{const o=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=_(this,o[e+s],i,s),l===S&&(l=this._$AH[s]),r||(r=!u(l)||l!==this._$AH[s]),l===E?t=E:t!==E&&(t+=(null!=l?l:"")+n[s+1]),this._$AH[s]=l}r&&!o&&this.k(t)}k(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class N extends D{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===E?void 0:t}}const M=h?h.emptyScript:"";class Z extends D{constructor(){super(...arguments),this.type=4}k(t){t&&t!==E?this.element.setAttribute(this.name,M):this.element.removeAttribute(this.name)}}class U extends D{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=_(this,t,i,0))&&void 0!==e?e:E)===S)return;const o=this._$AH,n=t===E&&o!==E||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==E&&(o===E||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class R{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){_(this,t)}}const L=window.litHtmlPolyfillSupport;null==L||L(A,T),(null!==(p=globalThis.litHtmlVersions)&&void 0!==p?p:globalThis.litHtmlVersions=[]).push("2.1.3");
176
100
  /**
177
101
  * @license
178
102
  * Copyright 2020 Google LLC
179
103
  * SPDX-License-Identifier: BSD-3-Clause
180
104
  */
181
- const st=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const o=i.length;let a,n;const p=[],c=[];let s,l=0,d=!1;for(;l<o;){for(s=e[l];l<o&&void 0!==(n=i[l],a=null===(r=n)||void 0===r?void 0:r._$litStatic$);)s+=a+e[++l],d=!0;c.push(n),p.push(s),l++}if(l===o&&p.push(e[o]),d){const t=p.join("$$lit$$");void 0===(e=lt.get(t))&&(p.raw=p,lt.set(t,e=p)),i=c}return t(e,...i)})(Z);var ft,ht=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(o=t[p])&&(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 ut=r.FtCssVariable.extend("--ft-typography-font-family",r.designSystemVariables.titleFont),mt=r.FtCssVariable.extend("--ft-typography-font-family",r.designSystemVariables.contentFont),yt={fontFamily:mt,fontSize:r.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:r.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:r.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:r.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:r.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},gt=r.FtCssVariable.extend("--ft-typography-title-font-family",ut),vt=r.FtCssVariable.extend("--ft-typography-title-font-size",yt.fontSize,"20px"),bt=r.FtCssVariable.extend("--ft-typography-title-font-weight",yt.fontWeight,"normal"),$t=r.FtCssVariable.extend("--ft-typography-title-letter-spacing",yt.letterSpacing,"0.15px"),xt=r.FtCssVariable.extend("--ft-typography-title-line-height",yt.lineHeight,"24px"),wt=r.FtCssVariable.extend("--ft-typography-title-text-transform",yt.textTransform,"inherit"),kt=r.FtCssVariable.extend("--ft-typography-title-dense-font-family",ut),zt=r.FtCssVariable.extend("--ft-typography-title-dense-font-size",yt.fontSize,"14px"),At=r.FtCssVariable.extend("--ft-typography-title-dense-font-weight",yt.fontWeight,"normal"),St=r.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",yt.letterSpacing,"0.105px"),Ot=r.FtCssVariable.extend("--ft-typography-title-dense-line-height",yt.lineHeight,"24px"),Ct=r.FtCssVariable.extend("--ft-typography-title-dense-text-transform",yt.textTransform,"inherit"),Tt=r.FtCssVariable.extend("--ft-typography-subtitle1-font-family",mt),It=r.FtCssVariable.extend("--ft-typography-subtitle1-font-size",yt.fontSize,"16px"),Et=r.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",yt.fontWeight,"600"),_t=r.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",yt.letterSpacing,"0.144px"),Dt=r.FtCssVariable.extend("--ft-typography-subtitle1-line-height",yt.lineHeight,"24px"),Bt=r.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",yt.textTransform,"inherit"),jt=r.FtCssVariable.extend("--ft-typography-subtitle2-font-family",mt),Rt=r.FtCssVariable.extend("--ft-typography-subtitle2-font-size",yt.fontSize,"14px"),Ft=r.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",yt.fontWeight,"normal"),Nt=r.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",yt.letterSpacing,"0.098px"),Mt=r.FtCssVariable.extend("--ft-typography-subtitle2-line-height",yt.lineHeight,"24px"),Ht=r.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",yt.textTransform,"inherit"),Ut=r.FtCssVariable.extend("--ft-typography-body1-font-family",mt),Pt=r.FtCssVariable.extend("--ft-typography-body1-font-size",yt.fontSize,"16px"),Gt=r.FtCssVariable.extend("--ft-typography-body1-font-weight",yt.fontWeight,"normal"),Vt=r.FtCssVariable.extend("--ft-typography-body1-letter-spacing",yt.letterSpacing,"0.496px"),Lt=r.FtCssVariable.extend("--ft-typography-body1-line-height",yt.lineHeight,"24px"),Zt=r.FtCssVariable.extend("--ft-typography-body1-text-transform",yt.textTransform,"inherit"),qt={fontFamily:r.FtCssVariable.extend("--ft-typography-body2-font-family",mt),fontSize:r.FtCssVariable.extend("--ft-typography-body2-font-size",yt.fontSize,"14px"),fontWeight:r.FtCssVariable.extend("--ft-typography-body2-font-weight",yt.fontWeight,"normal"),letterSpacing:r.FtCssVariable.extend("--ft-typography-body2-letter-spacing",yt.letterSpacing,"0.252px"),lineHeight:r.FtCssVariable.extend("--ft-typography-body2-line-height",yt.lineHeight,"20px"),textTransform:r.FtCssVariable.extend("--ft-typography-body2-text-transform",yt.textTransform,"inherit")},Wt=r.FtCssVariable.extend("--ft-typography-caption-font-family",mt),Kt=r.FtCssVariable.extend("--ft-typography-caption-font-size",yt.fontSize,"12px"),Xt=r.FtCssVariable.extend("--ft-typography-caption-font-weight",yt.fontWeight,"normal"),Yt=r.FtCssVariable.extend("--ft-typography-caption-letter-spacing",yt.letterSpacing,"0.396px"),Jt=r.FtCssVariable.extend("--ft-typography-caption-line-height",yt.lineHeight,"16px"),Qt=r.FtCssVariable.extend("--ft-typography-caption-text-transform",yt.textTransform,"inherit"),te=r.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",mt),ee=r.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",yt.fontSize,"10px"),ie=r.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",yt.fontWeight,"normal"),re=r.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",yt.letterSpacing,"0.33px"),oe=r.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",yt.lineHeight,"16px"),ae=r.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",yt.textTransform,"inherit"),ne=r.FtCssVariable.extend("--ft-typography-overline-font-family",mt),pe=r.FtCssVariable.extend("--ft-typography-overline-font-size",yt.fontSize,"10px"),ce=r.FtCssVariable.extend("--ft-typography-overline-font-weight",yt.fontWeight,"normal"),se=r.FtCssVariable.extend("--ft-typography-overline-letter-spacing",yt.letterSpacing,"1.5px"),le=r.FtCssVariable.extend("--ft-typography-overline-line-height",yt.lineHeight,"16px"),de=r.FtCssVariable.extend("--ft-typography-overline-text-transform",yt.textTransform,"uppercase"),fe=r.FtCssVariable.extend("--ft-typography-button-font-family",mt),he=r.FtCssVariable.extend("--ft-typography-button-font-size",yt.fontSize,"14px"),ue=r.FtCssVariable.extend("--ft-typography-button-font-weight",yt.fontWeight,"600"),me=r.FtCssVariable.extend("--ft-typography-button-letter-spacing",yt.letterSpacing,"1.246px"),ye=r.FtCssVariable.extend("--ft-typography-button-line-height",yt.lineHeight,"16px"),ge=r.FtCssVariable.extend("--ft-typography-button-text-transform",yt.textTransform,"uppercase"),ve=e.css`
105
+ const W=t=>({_$litStatic$:t}),H=new Map,F=(t=>(i,...e)=>{var o;const n=e.length;let r,s;const l=[],p=[];let h,a=0,f=!1;for(;a<n;){for(h=i[a];a<n&&void 0!==(s=e[a],r=null===(o=s)||void 0===o?void 0:o._$litStatic$);)h+=r+i[++a],f=!0;p.push(s),l.push(h),a++}if(a===n&&l.push(i[n]),f){const t=l.join("$$lit$$");void 0===(i=H.get(t))&&(l.raw=l,H.set(t,i=l)),e=p}return t(i,...e)})(C);var G,K=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(G||(G={}));const P=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),X=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Y={fontFamily:X,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},q=i.FtCssVariable.extend("--ft-typography-title-font-family",P),J=i.FtCssVariable.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),Q=i.FtCssVariable.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),V=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),tt=i.FtCssVariable.extend("--ft-typography-title-line-height",Y.lineHeight,"24px"),it=i.FtCssVariable.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),et=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",P),ot=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),nt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),rt=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),st=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"24px"),lt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),pt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",X),ht=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),at=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),ft=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),ct=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"24px"),dt=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",X),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),ut=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),vt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),bt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"24px"),$t=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),mt=i.FtCssVariable.extend("--ft-typography-body1-font-family",X),xt=i.FtCssVariable.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),wt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),kt=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),zt=i.FtCssVariable.extend("--ft-typography-body1-line-height",Y.lineHeight,"24px"),Ct=i.FtCssVariable.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit"),St={fontFamily:i.FtCssVariable.extend("--ft-typography-body2-font-family",X),fontSize:i.FtCssVariable.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),letterSpacing:i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),lineHeight:i.FtCssVariable.extend("--ft-typography-body2-line-height",Y.lineHeight,"20px"),textTransform:i.FtCssVariable.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit")},Et=i.FtCssVariable.extend("--ft-typography-caption-font-family",X),Ot=i.FtCssVariable.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),It=i.FtCssVariable.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),Bt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),At=i.FtCssVariable.extend("--ft-typography-caption-line-height",Y.lineHeight,"16px"),_t=i.FtCssVariable.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit"),jt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",X),Tt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),Dt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Nt=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),Mt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"16px"),Zt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),Ut=i.FtCssVariable.extend("--ft-typography-overline-font-family",X),Rt=i.FtCssVariable.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),Lt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Wt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Ht=i.FtCssVariable.extend("--ft-typography-overline-line-height",Y.lineHeight,"16px"),Ft=i.FtCssVariable.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),Gt=i.FtCssVariable.extend("--ft-typography-button-font-family",X),Kt=i.FtCssVariable.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),Pt=i.FtCssVariable.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),Xt=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),Yt=i.FtCssVariable.extend("--ft-typography-button-line-height",Y.lineHeight,"16px"),qt=i.FtCssVariable.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase"),Jt=e.css`
182
106
  .ft-typography--title {
183
- font-family: ${gt};
184
- font-size: ${vt};
185
- font-weight: ${bt};
186
- letter-spacing: ${$t};
187
- line-height: ${xt};
188
- text-transform: ${wt};
107
+ font-family: ${q};
108
+ font-size: ${J};
109
+ font-weight: ${Q};
110
+ letter-spacing: ${V};
111
+ line-height: ${tt};
112
+ text-transform: ${it};
189
113
  }
190
- `,be=e.css`
114
+ `,Qt=e.css`
191
115
  .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: ${Ct};
116
+ font-family: ${et};
117
+ font-size: ${ot};
118
+ font-weight: ${nt};
119
+ letter-spacing: ${rt};
120
+ line-height: ${st};
121
+ text-transform: ${lt};
198
122
  }
199
- `,$e=e.css`
123
+ `,Vt=e.css`
200
124
  .ft-typography--subtitle1 {
201
- font-family: ${Tt};
202
- font-size: ${It};
203
- font-weight: ${Et};
204
- letter-spacing: ${_t};
205
- line-height: ${Dt};
206
- text-transform: ${Bt};
125
+ font-family: ${pt};
126
+ font-size: ${ht};
127
+ font-weight: ${at};
128
+ letter-spacing: ${ft};
129
+ line-height: ${ct};
130
+ text-transform: ${dt};
207
131
  }
208
- `,xe=e.css`
132
+ `,ti=e.css`
209
133
  .ft-typography--subtitle2 {
210
- font-family: ${jt};
211
- font-size: ${Rt};
212
- font-weight: ${Ft};
213
- letter-spacing: ${Nt};
214
- line-height: ${Mt};
215
- text-transform: ${Ht};
134
+ font-family: ${gt};
135
+ font-size: ${yt};
136
+ font-weight: ${ut};
137
+ letter-spacing: ${vt};
138
+ line-height: ${bt};
139
+ text-transform: ${$t};
216
140
  }
217
141
 
218
- `,we=e.css`
142
+ `,ii=e.css`
219
143
  .ft-typography--body1 {
220
- font-family: ${Ut};
221
- font-size: ${Pt};
222
- font-weight: ${Gt};
223
- letter-spacing: ${Vt};
224
- line-height: ${Lt};
225
- text-transform: ${Zt};
144
+ font-family: ${mt};
145
+ font-size: ${xt};
146
+ font-weight: ${wt};
147
+ letter-spacing: ${kt};
148
+ line-height: ${zt};
149
+ text-transform: ${Ct};
226
150
  }
227
- `,ke=e.css`
151
+ `,ei=e.css`
228
152
  .ft-typography--body2 {
229
- font-family: ${qt.fontFamily};
230
- font-size: ${qt.fontSize};
231
- font-weight: ${qt.fontWeight};
232
- letter-spacing: ${qt.letterSpacing};
233
- line-height: ${qt.lineHeight};
234
- text-transform: ${qt.textTransform};
153
+ font-family: ${St.fontFamily};
154
+ font-size: ${St.fontSize};
155
+ font-weight: ${St.fontWeight};
156
+ letter-spacing: ${St.letterSpacing};
157
+ line-height: ${St.lineHeight};
158
+ text-transform: ${St.textTransform};
235
159
  }
236
- `,ze=e.css`
160
+ `,oi=e.css`
237
161
  .ft-typography--caption {
238
- font-family: ${Wt};
239
- font-size: ${Kt};
240
- font-weight: ${Xt};
241
- letter-spacing: ${Yt};
242
- line-height: ${Jt};
243
- text-transform: ${Qt};
162
+ font-family: ${Et};
163
+ font-size: ${Ot};
164
+ font-weight: ${It};
165
+ letter-spacing: ${Bt};
166
+ line-height: ${At};
167
+ text-transform: ${_t};
244
168
  }
245
- `,Ae=e.css`
169
+ `,ni=e.css`
246
170
  .ft-typography--breadcrumb {
247
- font-family: ${te};
248
- font-size: ${ee};
249
- font-weight: ${ie};
250
- letter-spacing: ${re};
251
- line-height: ${oe};
252
- text-transform: ${ae};
171
+ font-family: ${jt};
172
+ font-size: ${Tt};
173
+ font-weight: ${Dt};
174
+ letter-spacing: ${Nt};
175
+ line-height: ${Mt};
176
+ text-transform: ${Zt};
253
177
  }
254
- `,Se=e.css`
178
+ `,ri=e.css`
255
179
  .ft-typography--overline {
256
- font-family: ${ne};
257
- font-size: ${pe};
258
- font-weight: ${ce};
259
- letter-spacing: ${se};
260
- line-height: ${le};
261
- text-transform: ${de};
180
+ font-family: ${Ut};
181
+ font-size: ${Rt};
182
+ font-weight: ${Lt};
183
+ letter-spacing: ${Wt};
184
+ line-height: ${Ht};
185
+ text-transform: ${Ft};
262
186
  }
263
- `,Oe=e.css`
187
+ `,si=e.css`
264
188
  .ft-typography--button {
265
- font-family: ${fe};
266
- font-size: ${he};
267
- font-weight: ${ue};
268
- letter-spacing: ${me};
269
- line-height: ${ye};
270
- text-transform: ${ge};
189
+ font-family: ${Gt};
190
+ font-size: ${Kt};
191
+ font-weight: ${Pt};
192
+ letter-spacing: ${Xt};
193
+ line-height: ${Yt};
194
+ text-transform: ${qt};
271
195
  }
272
- `;let Ce=class extends r.FtLitElement{constructor(){super(...arguments),this.variant=ft.body1}getStyles(){return[ve,be,$e,xe,we,ke,ze,Ae,Se,Oe,e.css`
273
- .ft-typography {
274
- vertical-align: inherit;
275
- }
276
- `]}getTemplate(){return this.element?dt`
277
- <${st(this.element)}
196
+ `;class li extends i.FtLitElement{constructor(){super(...arguments),this.variant=G.body1}render(){return this.element?F`
197
+ <${W(this.element)}
278
198
  class="ft-typography ft-typography--${this.variant}">
279
199
  <slot></slot>
280
- </${st(this.element)}>
281
- `:dt`
200
+ </${W(this.element)}>
201
+ `:F`
282
202
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
283
- `}};ht([i.property()],Ce.prototype,"element",void 0),ht([i.property()],Ce.prototype,"variant",void 0),Ce=ht([r.customElement("ft-typography")],Ce);
203
+ `}}li.styles=[Jt,Qt,Vt,ti,ii,ei,oi,ni,ri,si,e.css`
204
+ .ft-typography {
205
+ vertical-align: inherit;
206
+ }
207
+ `],K([o.property()],li.prototype,"element",void 0),K([o.property()],li.prototype,"variant",void 0),i.customElement("ft-typography")(li);
284
208
  /**
285
209
  * @license
286
210
  * Copyright 2021 Google LLC
287
211
  * SPDX-LIcense-Identifier: Apache-2.0
288
212
  */
289
- const Te=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"}`
213
+ const pi=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
214
  /**
291
215
  * @license
292
216
  * Copyright 2018 Google LLC
293
217
  * SPDX-License-Identifier: Apache-2.0
294
- */;let Ie=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};Ie.styles=[Te],Ie=c([i.customElement("mwc-icon")],Ie);var Ee=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(o=t[p])&&(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 _e=r.FtCssVariable.extend("--ft-chip-color",r.designSystemVariables.colorOnSurface),De={backgroundColor:r.FtCssVariable.extend("--ft-chip-background-color",r.designSystemVariables.colorSurface),color:_e,fontSize:r.FtCssVariable.extend("--ft-chip-font-size",qt.fontSize),iconSize:r.FtCssVariable.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:r.FtCssVariable.extend("--ft-chip-ripple-color",_e),horizontalPadding:r.FtCssVariable.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:r.FtCssVariable.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:r.FtCssVariable.external(r.designSystemVariables.colorOutline,"Design system"),opacityDisabled:r.FtCssVariable.external(r.designSystemVariables.colorOpacityDisabled,"Design system")},Be=r.FtCssVariable.extend("--ft-chip-highlighted-color",r.FtCssVariable.extend("--ft-chip-color",r.designSystemVariables.colorOnPrimary)),je={backgroundColor:r.FtCssVariable.extend("--ft-chip-highlighted-background-color",r.FtCssVariable.extend("--ft-chip-background-color",r.designSystemVariables.colorPrimary)),color:Be,rippleColor:r.FtCssVariable.extend("--ft-chip-highlighted-ripple-color",Be)},Re=r.FtCssVariable.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Fe=r.FtCssVariable.create("--ft-chip-dense-vertical-padding","SIZE","4px");class Ne extends CustomEvent{constructor(){super("icon-click")}}let Me=class extends r.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}getStyles(){return[r.noTextSelect,e.css`
218
+ */;let hi=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};hi.styles=[pi],hi=
219
+ /*! *****************************************************************************
220
+ Copyright (c) Microsoft Corporation.
221
+
222
+ Permission to use, copy, modify, and/or distribute this software for any
223
+ purpose with or without fee is hereby granted.
224
+
225
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
226
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
227
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
228
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
229
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
230
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
231
+ PERFORMANCE OF THIS SOFTWARE.
232
+ ***************************************************************************** */
233
+ function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s}([o.customElement("mwc-icon")],hi);var ai=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const fi=i.FtCssVariable.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),ci={backgroundColor:i.FtCssVariable.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:fi,fontSize:i.FtCssVariable.extend("--ft-chip-font-size",St.fontSize),iconSize:i.FtCssVariable.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariable.extend("--ft-chip-ripple-color",fi),horizontalPadding:i.FtCssVariable.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariable.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariable.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},di=i.FtCssVariable.extend("--ft-chip-highlighted-color",i.FtCssVariable.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),gi={backgroundColor:i.FtCssVariable.extend("--ft-chip-highlighted-background-color",i.FtCssVariable.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:di,rippleColor:i.FtCssVariable.extend("--ft-chip-highlighted-ripple-color",di)},yi=i.FtCssVariable.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),ui=i.FtCssVariable.create("--ft-chip-dense-vertical-padding","SIZE","4px");class vi extends CustomEvent{constructor(){super("icon-click")}}class bi extends i.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[i.noTextSelect,e.css`
295
234
  :host {
296
235
  display: inline-block;
297
236
  max-width: 100%;
237
+ pointer-events: none;
298
238
  }
299
239
 
300
240
  .ft-chip {
@@ -305,28 +245,29 @@ const Te=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
305
245
  width: 100%;
306
246
  overflow: hidden;
307
247
  box-sizing: border-box;
248
+ pointer-events: auto;
308
249
 
309
- --ft-chip-internal-font-size: ${De.fontSize};
250
+ --ft-chip-internal-font-size: ${ci.fontSize};
310
251
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
311
- --mdc-icon-size: ${De.iconSize};
312
- --ft-chip-internal-vertical-padding: ${De.verticalPadding};
313
- --ft-chip-internal-horizontal-padding: ${De.horizontalPadding};
252
+ --mdc-icon-size: ${ci.iconSize};
253
+ --ft-chip-internal-vertical-padding: ${ci.verticalPadding};
254
+ --ft-chip-internal-horizontal-padding: ${ci.horizontalPadding};
314
255
  --ft-chip-internal-icon-padding: 3px;
315
256
  --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), var(--mdc-icon-size));
316
257
 
317
- border: 1px solid ${De.colorOutline};
318
- color: ${De.color};
319
- ${r.setVariable(O.color,De.rippleColor)};
258
+ border: 1px solid ${ci.colorOutline};
259
+ color: ${ci.color};
260
+ ${i.setVariable(s.color,ci.rippleColor)};
320
261
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
321
262
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
322
- background-color: ${De.backgroundColor};
263
+ background-color: ${ci.backgroundColor};
323
264
  line-height: var(--ft-chip-internal-content-height);
324
265
  }
325
266
 
326
267
  .ft-chip--dense {
327
268
  --ft-chip-internal-icon-padding: 3px;
328
- --ft-chip-internal-vertical-padding: ${Fe};
329
- --ft-chip-internal-horizontal-padding: ${Re};
269
+ --ft-chip-internal-vertical-padding: ${ui};
270
+ --ft-chip-internal-horizontal-padding: ${yi};
330
271
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
331
272
  }
332
273
 
@@ -338,15 +279,15 @@ const Te=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
338
279
  cursor: default;
339
280
  pointer-events: none;
340
281
  filter: grayscale(1);
341
- opacity: ${De.opacityDisabled};
282
+ opacity: ${ci.opacityDisabled};
342
283
  }
343
284
 
344
285
  .ft-chip--highlighted {
345
286
  border: none;
346
287
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
347
- background-color: ${je.backgroundColor};
348
- ${r.setVariable(O.color,je.rippleColor)};
349
- color: ${je.color};
288
+ background-color: ${gi.backgroundColor};
289
+ ${i.setVariable(s.color,gi.rippleColor)};
290
+ color: ${gi.color};
350
291
  }
351
292
 
352
293
  .ft-chip--clickable {
@@ -375,8 +316,8 @@ const Te=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
375
316
  vertical-align: bottom;
376
317
  display: block;
377
318
  margin: 0 var(--ft-chip-internal-horizontal-padding);
378
- ${r.setVariable(qt.fontSize,"var(--ft-chip-internal-font-size)")};
379
- ${r.setVariable(qt.lineHeight,"var(--ft-chip-internal-content-height)")};
319
+ ${i.setVariable(St.fontSize,"var(--ft-chip-internal-font-size)")};
320
+ ${i.setVariable(St.lineHeight,"var(--ft-chip-internal-content-height)")};
380
321
  }
381
322
 
382
323
  .ft-chip--safari-fix .ft-chip--label {
@@ -411,8 +352,8 @@ const Te=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
411
352
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
412
353
  order: -1;
413
354
  }
414
- `]}getTemplate(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":r.isSafari};return e.html`
415
- <div class="${o.classMap(t)}"
355
+ `]}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":i.isSafari};return e.html`
356
+ <div class="${n.classMap(t)}"
416
357
  aria-label="${this.getLabel()}"
417
358
  tabindex="${this.interactionsOnChip?0:-1}"
418
359
  @keyup=${this.onKeyUp}>
@@ -430,87 +371,9 @@ const Te=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
430
371
  <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
431
372
  <mwc-icon>${this.internalIcon}</mwc-icon>
432
373
  </div>
433
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ne))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ne))}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()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}};Me.elementDefinitions={"ft-ripple":C,"ft-typography":Ce,"mwc-icon":Ie},Ee([i.property({type:Boolean})],Me.prototype,"highlighted",void 0),Ee([i.property({type:Boolean})],Me.prototype,"removable",void 0),Ee([i.property({type:Boolean})],Me.prototype,"disabled",void 0),Ee([i.property({type:Boolean})],Me.prototype,"clickable",void 0),Ee([i.property({type:Boolean})],Me.prototype,"iconClickable",void 0),Ee([i.property({type:Boolean})],Me.prototype,"dense",void 0),Ee([i.property({type:Boolean})],Me.prototype,"multiLine",void 0),Ee([i.property({type:String})],Me.prototype,"label",void 0),Ee([i.property({type:String})],Me.prototype,"icon",void 0),Ee([i.property({type:Boolean})],Me.prototype,"trailingIcon",void 0),Ee([i.query("ft-typography slot")],Me.prototype,"slottedContent",void 0),Me=Ee([r.customElement("ft-chip")],Me);var He=function(t,e,i,r){for(var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(o=t[p])&&(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={zIndex:r.FtCssVariable.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:r.FtCssVariable.extend("--ft-file-drop-hint-background-color",r.designSystemVariables.colorSurface),hintColor:r.FtCssVariable.extend("--ft-file-drop-hint-color",r.designSystemVariables.colorPrimary),errorColor:r.FtCssVariable.extend("--ft-file-drop-error-color",r.designSystemVariables.colorError),borderRadius:r.FtCssVariable.extend("--ft-file-drop-border-radius",r.designSystemVariables.borderRadiusL),borderWidth:r.FtCssVariable.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:r.FtCssVariable.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:r.FtCssVariable.extend("--ft-file-drop-visible-border-color",r.designSystemVariables.colorOutline),activeBorderColor:r.FtCssVariable.extend("--ft-file-drop-active-border-color",r.designSystemVariables.colorPrimary)};class Pe extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}t.FtFileDrop=class extends r.FtLitElement{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}getStyles(){return e.css`
434
- :host {
435
- display: block;
436
- position: relative;
437
- }
438
-
439
- #container {
440
- position: absolute;
441
- inset: 0;
442
- border: dashed ${Ue.borderWidth} ${Ue.borderColor};
443
- border-radius: ${Ue.borderRadius};
444
- }
445
-
446
- #container.visible {
447
- border-color: ${Ue.visibleBorderColor}
448
- }
449
-
450
- #container.dragging {
451
- border-color: ${Ue.activeBorderColor}
452
- }
453
-
454
- slot {
455
- position: absolute;
456
- inset: 0;
457
- display: block;
458
- overflow: auto;
459
- }
460
-
461
- #overlay {
462
- display: none;
463
- position: absolute;
464
- inset: 0;
465
- z-index: ${Ue.zIndex};
466
- }
467
-
468
- #container.dragging #overlay {
469
- display: block;
470
- }
471
-
472
- #overlay-background {
473
- z-index: 1;
474
- position: absolute;
475
- inset: 0;
476
- background-color: ${Ue.activeBorderColor};
477
- opacity: 0.20;
478
- border-radius: ${Ue.borderRadius};
479
- }
480
-
481
- #overlay-drop {
482
- z-index: 2;
483
- position: absolute;
484
- inset: 0;
485
- }
486
-
487
- #overlay-content {
488
- z-index: 1;
489
- position: absolute;
490
- inset: 0;
491
- display: flex;
492
- align-items: flex-end;
493
- justify-content: center;
494
- }
495
-
496
- #overlay-content ft-chip {
497
- margin-bottom: 10%;
498
- ${r.setVariable(De.color,Ue.hintColor)};
499
- ${r.setVariable(De.iconSize,"32px")};
500
- ${r.setVariable(De.colorOutline,"transparent")};
501
- }
502
-
503
- #overlay-content xft-chip[icon=error] {
504
- ${r.setVariable(De.color,Ue.errorColor)};
505
- ${r.setVariable(De.backgroundColor,Ue.hintBackgroundColor)};
506
- }
507
-
508
- [hidden] {
509
- display: none;
510
- }
511
- `}getTemplate(){let t={dragging:this.dragging,visible:this.visible};return e.html`
374
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new vi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new vi))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}bi.elementDefinitions={"ft-ripple":l,"ft-typography":li,"mwc-icon":hi},ai([o.property({type:Boolean})],bi.prototype,"highlighted",void 0),ai([o.property({type:Boolean})],bi.prototype,"removable",void 0),ai([o.property({type:Boolean})],bi.prototype,"disabled",void 0),ai([o.property({type:Boolean})],bi.prototype,"clickable",void 0),ai([o.property({type:Boolean})],bi.prototype,"iconClickable",void 0),ai([o.property({type:Boolean})],bi.prototype,"dense",void 0),ai([o.property({type:Boolean})],bi.prototype,"multiLine",void 0),ai([o.property({type:String})],bi.prototype,"label",void 0),ai([o.property({type:String})],bi.prototype,"icon",void 0),ai([o.property({type:Boolean})],bi.prototype,"trailingIcon",void 0),ai([o.query("ft-typography slot")],bi.prototype,"slottedContent",void 0),i.customElement("ft-chip")(bi);var $i=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const mi={zIndex:i.FtCssVariable.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:i.FtCssVariable.extend("--ft-file-drop-hint-background-color",i.designSystemVariables.colorSurface),hintColor:i.FtCssVariable.extend("--ft-file-drop-hint-color",i.designSystemVariables.colorPrimary),errorColor:i.FtCssVariable.extend("--ft-file-drop-error-color",i.designSystemVariables.colorError),borderRadius:i.FtCssVariable.extend("--ft-file-drop-border-radius",i.designSystemVariables.borderRadiusL),borderWidth:i.FtCssVariable.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:i.FtCssVariable.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:i.FtCssVariable.extend("--ft-file-drop-visible-border-color",i.designSystemVariables.colorOutline),activeBorderColor:i.FtCssVariable.extend("--ft-file-drop-active-border-color",i.designSystemVariables.colorPrimary)};class xi extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}class wi extends i.FtLitElement{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return e.html`
512
375
  <div id="container"
513
- class="${o.classMap(t)}"
376
+ class="${n.classMap(t)}"
514
377
  @dragenter=${this.onDragEnter}
515
378
  @dragover=${this.onDragOver}
516
379
  @drop=${this.onDrop}>
@@ -526,4 +389,82 @@ const Te=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
526
389
  </div>
527
390
  <slot></slot>
528
391
  </div>
529
- `}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let e=t.dataTransfer.files[0];!function(t,e,i){if(0==t.length)return!0;let r=t.replace(/\*/g,".*").replace(/,/g,"|").replace(/\./g,"\\."),o=new RegExp(r),a=e.includes(".")?"."+e.split(".").pop():void 0;return!(!a||!o.test(a))||o.test(i)}(this.accept,e.name,e.type)?(this.fileError=!0,setTimeout((()=>{this.dragging=!1,this.fileError=!1}),2e3)):(this.dragging=!1,this.dispatchEvent(new Pe(e)))}}},t.FtFileDrop.elementDefinitions={"ft-chip":Me},He([i.property()],t.FtFileDrop.prototype,"dropHint",void 0),He([i.property()],t.FtFileDrop.prototype,"accept",void 0),He([i.property()],t.FtFileDrop.prototype,"fileTypeError",void 0),He([i.property({type:Boolean})],t.FtFileDrop.prototype,"visible",void 0),He([i.state()],t.FtFileDrop.prototype,"dragging",void 0),He([i.state()],t.FtFileDrop.prototype,"fileError",void 0),t.FtFileDrop=He([r.customElement("ft-file-drop")],t.FtFileDrop),t.FileDropEvent=Pe,t.FtFileDropCssVariables=Ue,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.wcUtils,ftGlobals.litClassMap,ftGlobals.litStyleMap);
392
+ `}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let i=t.dataTransfer.files[0];!function(t,i,e){if(0==t.length)return!0;let o=t.replace(/\*/g,".*").replace(/,/g,"|").replace(/\./g,"\\."),n=new RegExp(o),r=i.includes(".")?"."+i.split(".").pop():void 0;return!(!r||!n.test(r))||n.test(e)}(this.accept,i.name,i.type)?(this.fileError=!0,setTimeout((()=>{this.dragging=!1,this.fileError=!1}),2e3)):(this.dragging=!1,this.dispatchEvent(new xi(i)))}}}wi.elementDefinitions={"ft-chip":bi},wi.styles=e.css`
393
+ :host {
394
+ display: block;
395
+ position: relative;
396
+ }
397
+
398
+ #container {
399
+ position: absolute;
400
+ inset: 0;
401
+ border: dashed ${mi.borderWidth} ${mi.borderColor};
402
+ border-radius: ${mi.borderRadius};
403
+ }
404
+
405
+ #container.visible {
406
+ border-color: ${mi.visibleBorderColor}
407
+ }
408
+
409
+ #container.dragging {
410
+ border-color: ${mi.activeBorderColor}
411
+ }
412
+
413
+ slot {
414
+ position: absolute;
415
+ inset: 0;
416
+ display: block;
417
+ overflow: auto;
418
+ }
419
+
420
+ #overlay {
421
+ display: none;
422
+ position: absolute;
423
+ inset: 0;
424
+ z-index: ${mi.zIndex};
425
+ }
426
+
427
+ #container.dragging #overlay {
428
+ display: block;
429
+ }
430
+
431
+ #overlay-background {
432
+ z-index: 1;
433
+ position: absolute;
434
+ inset: 0;
435
+ background-color: ${mi.activeBorderColor};
436
+ opacity: 0.20;
437
+ border-radius: ${mi.borderRadius};
438
+ }
439
+
440
+ #overlay-drop {
441
+ z-index: 2;
442
+ position: absolute;
443
+ inset: 0;
444
+ }
445
+
446
+ #overlay-content {
447
+ z-index: 1;
448
+ position: absolute;
449
+ inset: 0;
450
+ display: flex;
451
+ align-items: flex-end;
452
+ justify-content: center;
453
+ }
454
+
455
+ #overlay-content ft-chip {
456
+ margin-bottom: 10%;
457
+ ${i.setVariable(ci.color,mi.hintColor)};
458
+ ${i.setVariable(ci.iconSize,"32px")};
459
+ ${i.setVariable(ci.colorOutline,"transparent")};
460
+ }
461
+
462
+ #overlay-content xft-chip[icon=error] {
463
+ ${i.setVariable(ci.color,mi.errorColor)};
464
+ ${i.setVariable(ci.backgroundColor,mi.hintBackgroundColor)};
465
+ }
466
+
467
+ [hidden] {
468
+ display: none;
469
+ }
470
+ `,$i([o.property()],wi.prototype,"dropHint",void 0),$i([o.property()],wi.prototype,"accept",void 0),$i([o.property()],wi.prototype,"fileTypeError",void 0),$i([o.property({type:Boolean})],wi.prototype,"visible",void 0),$i([o.state()],wi.prototype,"dragging",void 0),$i([o.state()],wi.prototype,"fileError",void 0),i.customElement("ft-file-drop")(wi),t.FileDropEvent=xi,t.FtFileDrop=wi,t.FtFileDropCssVariables=mi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);