@fluid-topics/ft-file-drop 0.1.8 → 0.1.11
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.
- package/README.md +1 -1
- package/build/ft-file-drop.d.ts +13 -4
- package/build/ft-file-drop.js +35 -12
- package/build/ft-file-drop.light.js +49 -31
- package/build/ft-file-drop.min.js +43 -25
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ import { FileDropEvent } from "@fluid-topics/ft-file-drop"
|
|
|
16
16
|
|
|
17
17
|
function render() {
|
|
18
18
|
return html`
|
|
19
|
-
<ft-file-drop @file-drop=${ (e: FileDropEvent) => console.log(e.detail) }></ft-file-drop>
|
|
19
|
+
<ft-file-drop @file-drop=${ (e: FileDropEvent) => console.log(e.detail) } style="height: 300px;"></ft-file-drop>
|
|
20
20
|
`
|
|
21
21
|
}
|
|
22
22
|
```
|
package/build/ft-file-drop.d.ts
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { ElementDefinitionsMap, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
2
2
|
export interface FtFileDropProperties {
|
|
3
|
-
dropHint
|
|
3
|
+
dropHint: string;
|
|
4
|
+
accept: string;
|
|
5
|
+
fileTypeError: string;
|
|
6
|
+
visible: boolean;
|
|
4
7
|
}
|
|
5
8
|
export declare const FtFileDropCssVariables: {
|
|
6
9
|
zIndex: FtCssVariable;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
hintBackgroundColor: FtCssVariable;
|
|
11
|
+
hintColor: FtCssVariable;
|
|
12
|
+
errorColor: FtCssVariable;
|
|
13
|
+
borderRadius: FtCssVariable;
|
|
14
|
+
borderWidth: FtCssVariable;
|
|
15
|
+
borderColor: FtCssVariable;
|
|
16
|
+
visibleBorderColor: FtCssVariable;
|
|
17
|
+
activeBorderColor: FtCssVariable;
|
|
10
18
|
};
|
|
11
19
|
export declare class FileDropEvent extends CustomEvent<{
|
|
12
20
|
file: File;
|
|
@@ -19,6 +27,7 @@ export declare class FtFileDrop extends FtLitElement implements FtFileDropProper
|
|
|
19
27
|
dropHint: string;
|
|
20
28
|
accept: string;
|
|
21
29
|
fileTypeError: string;
|
|
30
|
+
visible: boolean;
|
|
22
31
|
private dragging;
|
|
23
32
|
private fileError;
|
|
24
33
|
protected getTemplate(): import("lit-html").TemplateResult<1>;
|
package/build/ft-file-drop.js
CHANGED
|
@@ -12,9 +12,14 @@ import { matchAccept } from "./match-accept";
|
|
|
12
12
|
import { FtChip, FtChipCssVariables } from "@fluid-topics/ft-chip";
|
|
13
13
|
export const FtFileDropCssVariables = {
|
|
14
14
|
zIndex: FtCssVariable.create("--ft-file-drop-z-index", "NUMBER", "10"),
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
hintBackgroundColor: FtCssVariable.extend("--ft-file-drop-hint-background-color", designSystemVariables.colorSurface),
|
|
16
|
+
hintColor: FtCssVariable.extend("--ft-file-drop-hint-color", designSystemVariables.colorPrimary),
|
|
17
|
+
errorColor: FtCssVariable.extend("--ft-file-drop-error-color", designSystemVariables.colorError),
|
|
18
|
+
borderRadius: FtCssVariable.extend("--ft-file-drop-border-radius", designSystemVariables.borderRadiusL),
|
|
19
|
+
borderWidth: FtCssVariable.create("--ft-file-drop-border-width", "SIZE", "4px"),
|
|
20
|
+
borderColor: FtCssVariable.create("--ft-file-drop-border-color", "COLOR", "transparent"),
|
|
21
|
+
visibleBorderColor: FtCssVariable.extend("--ft-file-drop-visible-border-color", designSystemVariables.colorOutline),
|
|
22
|
+
activeBorderColor: FtCssVariable.extend("--ft-file-drop-active-border-color", designSystemVariables.colorPrimary),
|
|
18
23
|
};
|
|
19
24
|
export class FileDropEvent extends CustomEvent {
|
|
20
25
|
constructor(file) {
|
|
@@ -27,15 +32,31 @@ let FtFileDrop = class FtFileDrop extends FtLitElement {
|
|
|
27
32
|
this.dropHint = "Drop your file here";
|
|
28
33
|
this.accept = "";
|
|
29
34
|
this.fileTypeError = "Unsupported file type";
|
|
35
|
+
this.visible = false;
|
|
30
36
|
this.dragging = false;
|
|
31
37
|
this.fileError = false;
|
|
32
38
|
}
|
|
33
39
|
// language=CSS
|
|
34
40
|
getStyles() {
|
|
35
41
|
return css `
|
|
42
|
+
:host {
|
|
43
|
+
display: block;
|
|
44
|
+
position: relative;
|
|
45
|
+
}
|
|
46
|
+
|
|
36
47
|
#container {
|
|
37
48
|
position: absolute;
|
|
38
49
|
inset: 0;
|
|
50
|
+
border: dashed ${FtFileDropCssVariables.borderWidth} ${FtFileDropCssVariables.borderColor};
|
|
51
|
+
border-radius: ${FtFileDropCssVariables.borderRadius};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
#container.visible {
|
|
55
|
+
border-color: ${FtFileDropCssVariables.visibleBorderColor}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#container.dragging {
|
|
59
|
+
border-color: ${FtFileDropCssVariables.activeBorderColor}
|
|
39
60
|
}
|
|
40
61
|
|
|
41
62
|
slot {
|
|
@@ -60,9 +81,9 @@ let FtFileDrop = class FtFileDrop extends FtLitElement {
|
|
|
60
81
|
z-index: 1;
|
|
61
82
|
position: absolute;
|
|
62
83
|
inset: 0;
|
|
63
|
-
background-color: ${FtFileDropCssVariables.
|
|
84
|
+
background-color: ${FtFileDropCssVariables.activeBorderColor};
|
|
64
85
|
opacity: 0.20;
|
|
65
|
-
border-radius:
|
|
86
|
+
border-radius: ${FtFileDropCssVariables.borderRadius};
|
|
66
87
|
}
|
|
67
88
|
|
|
68
89
|
#overlay-drop {
|
|
@@ -75,8 +96,6 @@ let FtFileDrop = class FtFileDrop extends FtLitElement {
|
|
|
75
96
|
z-index: 1;
|
|
76
97
|
position: absolute;
|
|
77
98
|
inset: 0;
|
|
78
|
-
border: dashed 4px ${FtFileDropCssVariables.colorPrimary};
|
|
79
|
-
border-radius: 10px;
|
|
80
99
|
display: flex;
|
|
81
100
|
align-items: flex-end;
|
|
82
101
|
justify-content: center;
|
|
@@ -84,14 +103,14 @@ let FtFileDrop = class FtFileDrop extends FtLitElement {
|
|
|
84
103
|
|
|
85
104
|
#overlay-content ft-chip {
|
|
86
105
|
margin-bottom: 10%;
|
|
87
|
-
${setVariable(FtChipCssVariables.color, FtFileDropCssVariables.
|
|
106
|
+
${setVariable(FtChipCssVariables.color, FtFileDropCssVariables.hintColor)};
|
|
88
107
|
${setVariable(FtChipCssVariables.iconSize, "32px")};
|
|
89
108
|
${setVariable(FtChipCssVariables.colorOutline, "transparent")};
|
|
90
109
|
}
|
|
91
110
|
|
|
92
|
-
|
|
93
|
-
${setVariable(FtChipCssVariables.color, FtFileDropCssVariables.
|
|
94
|
-
${setVariable(FtChipCssVariables.backgroundColor, FtFileDropCssVariables.
|
|
111
|
+
#overlay-content xft-chip[icon=error] {
|
|
112
|
+
${setVariable(FtChipCssVariables.color, FtFileDropCssVariables.errorColor)};
|
|
113
|
+
${setVariable(FtChipCssVariables.backgroundColor, FtFileDropCssVariables.hintBackgroundColor)};
|
|
95
114
|
}
|
|
96
115
|
|
|
97
116
|
[hidden] {
|
|
@@ -101,7 +120,8 @@ let FtFileDrop = class FtFileDrop extends FtLitElement {
|
|
|
101
120
|
}
|
|
102
121
|
getTemplate() {
|
|
103
122
|
let contentClasses = {
|
|
104
|
-
dragging: this.dragging
|
|
123
|
+
dragging: this.dragging,
|
|
124
|
+
visible: this.visible,
|
|
105
125
|
};
|
|
106
126
|
return html `
|
|
107
127
|
<div id="container"
|
|
@@ -164,6 +184,9 @@ __decorate([
|
|
|
164
184
|
__decorate([
|
|
165
185
|
property()
|
|
166
186
|
], FtFileDrop.prototype, "fileTypeError", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
property({ type: Boolean })
|
|
189
|
+
], FtFileDrop.prototype, "visible", void 0);
|
|
167
190
|
__decorate([
|
|
168
191
|
state()
|
|
169
192
|
], FtFileDrop.prototype, "dragging", void 0);
|
|
@@ -139,7 +139,7 @@ const k=e.css`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;-
|
|
|
139
139
|
* Copyright 2020 Google LLC
|
|
140
140
|
* SPDX-License-Identifier: Apache-2.0
|
|
141
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
|
|
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
143
|
:host {
|
|
144
144
|
display: contents;
|
|
145
145
|
|
|
@@ -172,13 +172,13 @@ class A{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},
|
|
|
172
172
|
* Copyright 2017 Google LLC
|
|
173
173
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
174
174
|
*/
|
|
175
|
-
var
|
|
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");
|
|
176
176
|
/**
|
|
177
177
|
* @license
|
|
178
178
|
* Copyright 2020 Google LLC
|
|
179
179
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
180
180
|
*/
|
|
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"),
|
|
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`
|
|
182
182
|
.ft-typography--title {
|
|
183
183
|
font-family: ${gt};
|
|
184
184
|
font-size: ${vt};
|
|
@@ -194,22 +194,22 @@ const st=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
194
194
|
font-weight: ${At};
|
|
195
195
|
letter-spacing: ${St};
|
|
196
196
|
line-height: ${Ot};
|
|
197
|
-
text-transform: ${
|
|
197
|
+
text-transform: ${Ct};
|
|
198
198
|
}
|
|
199
199
|
`,$e=e.css`
|
|
200
200
|
.ft-typography--subtitle1 {
|
|
201
|
-
font-family: ${
|
|
201
|
+
font-family: ${Tt};
|
|
202
202
|
font-size: ${It};
|
|
203
|
-
font-weight: ${
|
|
204
|
-
letter-spacing: ${
|
|
203
|
+
font-weight: ${Et};
|
|
204
|
+
letter-spacing: ${_t};
|
|
205
205
|
line-height: ${Dt};
|
|
206
|
-
text-transform: ${
|
|
206
|
+
text-transform: ${Bt};
|
|
207
207
|
}
|
|
208
208
|
`,xe=e.css`
|
|
209
209
|
.ft-typography--subtitle2 {
|
|
210
|
-
font-family: ${
|
|
211
|
-
font-size: ${
|
|
212
|
-
font-weight: ${
|
|
210
|
+
font-family: ${jt};
|
|
211
|
+
font-size: ${Rt};
|
|
212
|
+
font-weight: ${Ft};
|
|
213
213
|
letter-spacing: ${Nt};
|
|
214
214
|
line-height: ${Mt};
|
|
215
215
|
text-transform: ${Ht};
|
|
@@ -269,25 +269,29 @@ const st=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
269
269
|
line-height: ${ye};
|
|
270
270
|
text-transform: ${ge};
|
|
271
271
|
}
|
|
272
|
-
`;let
|
|
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`
|
|
273
277
|
<${st(this.element)}
|
|
274
278
|
class="ft-typography ft-typography--${this.variant}">
|
|
275
279
|
<slot></slot>
|
|
276
280
|
</${st(this.element)}>
|
|
277
281
|
`:dt`
|
|
278
282
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
279
|
-
`}};ht([i.property()],
|
|
283
|
+
`}};ht([i.property()],Ce.prototype,"element",void 0),ht([i.property()],Ce.prototype,"variant",void 0),Ce=ht([r.customElement("ft-typography")],Ce);
|
|
280
284
|
/**
|
|
281
285
|
* @license
|
|
282
286
|
* Copyright 2021 Google LLC
|
|
283
287
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
284
288
|
*/
|
|
285
|
-
const
|
|
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"}`
|
|
286
290
|
/**
|
|
287
291
|
* @license
|
|
288
292
|
* Copyright 2018 Google LLC
|
|
289
293
|
* SPDX-License-Identifier: Apache-2.0
|
|
290
|
-
*/;let Ie=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};Ie.styles=[
|
|
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`
|
|
291
295
|
:host {
|
|
292
296
|
display: inline-block;
|
|
293
297
|
max-width: 100%;
|
|
@@ -321,8 +325,8 @@ const Ee=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
321
325
|
|
|
322
326
|
.ft-chip--dense {
|
|
323
327
|
--ft-chip-internal-icon-padding: 3px;
|
|
324
|
-
--ft-chip-internal-vertical-padding: ${
|
|
325
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
328
|
+
--ft-chip-internal-vertical-padding: ${Fe};
|
|
329
|
+
--ft-chip-internal-horizontal-padding: ${Re};
|
|
326
330
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
327
331
|
}
|
|
328
332
|
|
|
@@ -340,9 +344,9 @@ const Ee=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
340
344
|
.ft-chip--highlighted {
|
|
341
345
|
border: none;
|
|
342
346
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
343
|
-
background-color: ${
|
|
344
|
-
${r.setVariable(O.color,
|
|
345
|
-
color: ${
|
|
347
|
+
background-color: ${je.backgroundColor};
|
|
348
|
+
${r.setVariable(O.color,je.rippleColor)};
|
|
349
|
+
color: ${je.color};
|
|
346
350
|
}
|
|
347
351
|
|
|
348
352
|
.ft-chip--clickable {
|
|
@@ -368,6 +372,7 @@ const Ee=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
368
372
|
}
|
|
369
373
|
|
|
370
374
|
.ft-chip--label {
|
|
375
|
+
vertical-align: bottom;
|
|
371
376
|
display: block;
|
|
372
377
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
373
378
|
${r.setVariable(qt.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
@@ -425,10 +430,25 @@ const Ee=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
425
430
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
426
431
|
<mwc-icon>${this.internalIcon}</mwc-icon>
|
|
427
432
|
</div>
|
|
428
|
-
`}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":
|
|
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
|
+
|
|
429
439
|
#container {
|
|
430
440
|
position: absolute;
|
|
431
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}
|
|
432
452
|
}
|
|
433
453
|
|
|
434
454
|
slot {
|
|
@@ -453,9 +473,9 @@ const Ee=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
453
473
|
z-index: 1;
|
|
454
474
|
position: absolute;
|
|
455
475
|
inset: 0;
|
|
456
|
-
background-color: ${Ue.
|
|
476
|
+
background-color: ${Ue.activeBorderColor};
|
|
457
477
|
opacity: 0.20;
|
|
458
|
-
border-radius:
|
|
478
|
+
border-radius: ${Ue.borderRadius};
|
|
459
479
|
}
|
|
460
480
|
|
|
461
481
|
#overlay-drop {
|
|
@@ -468,8 +488,6 @@ const Ee=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
468
488
|
z-index: 1;
|
|
469
489
|
position: absolute;
|
|
470
490
|
inset: 0;
|
|
471
|
-
border: dashed 4px ${Ue.colorPrimary};
|
|
472
|
-
border-radius: 10px;
|
|
473
491
|
display: flex;
|
|
474
492
|
align-items: flex-end;
|
|
475
493
|
justify-content: center;
|
|
@@ -477,20 +495,20 @@ const Ee=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
477
495
|
|
|
478
496
|
#overlay-content ft-chip {
|
|
479
497
|
margin-bottom: 10%;
|
|
480
|
-
${r.setVariable(De.color,Ue.
|
|
498
|
+
${r.setVariable(De.color,Ue.hintColor)};
|
|
481
499
|
${r.setVariable(De.iconSize,"32px")};
|
|
482
500
|
${r.setVariable(De.colorOutline,"transparent")};
|
|
483
501
|
}
|
|
484
502
|
|
|
485
|
-
|
|
486
|
-
${r.setVariable(De.color,Ue.
|
|
487
|
-
${r.setVariable(De.backgroundColor,Ue.
|
|
503
|
+
#overlay-content xft-chip[icon=error] {
|
|
504
|
+
${r.setVariable(De.color,Ue.errorColor)};
|
|
505
|
+
${r.setVariable(De.backgroundColor,Ue.hintBackgroundColor)};
|
|
488
506
|
}
|
|
489
507
|
|
|
490
508
|
[hidden] {
|
|
491
509
|
display: none;
|
|
492
510
|
}
|
|
493
|
-
`}getTemplate(){let t={dragging:this.dragging};return e.html`
|
|
511
|
+
`}getTemplate(){let t={dragging:this.dragging,visible:this.visible};return e.html`
|
|
494
512
|
<div id="container"
|
|
495
513
|
class="${o.classMap(t)}"
|
|
496
514
|
@dragenter=${this.onDragEnter}
|
|
@@ -508,4 +526,4 @@ const Ee=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
508
526
|
</div>
|
|
509
527
|
<slot></slot>
|
|
510
528
|
</div>
|
|
511
|
-
`}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.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);
|
|
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);
|
|
@@ -15,7 +15,7 @@ const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad
|
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
var v;y.finalized=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:y}),(null!==(p=globalThis.reactiveElementVersions)&&void 0!==p?p:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,b=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,$=`<${w}>`,O=document,S=(t="")=>O.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,
|
|
18
|
+
var v;y.finalized=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:y}),(null!==(p=globalThis.reactiveElementVersions)&&void 0!==p?p:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,b=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,$=`<${w}>`,O=document,S=(t="")=>O.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,N=/>/g,z=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,A=/'/g,M=/"/g,T=/^(?:script|style|textarea|title)$/i,F=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),U=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),_=new WeakMap,B=O.createTreeWalker(O,129,null,!1),D=(t,e)=>{const i=t.length-1,r=[];let o,n=2===e?"<svg>":"",a=E;for(let e=0;e<i;e++){const i=t[e];let s,c,p=-1,l=0;for(;l<i.length&&(a.lastIndex=l,c=a.exec(i),null!==c);)l=a.lastIndex,a===E?"!--"===c[1]?a=R:void 0!==c[1]?a=N:void 0!==c[2]?(T.test(c[2])&&(o=RegExp("</"+c[2],"g")),a=z):void 0!==c[3]&&(a=z):a===z?">"===c[0]?(a=null!=o?o:E,p=-1):void 0===c[1]?p=-2:(p=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?z:'"'===c[3]?M:A):a===M||a===A?a=z:a===R||a===N?a=E:(a=z,o=void 0);const d=a===z&&t[e+1].startsWith("/>")?" ":"";n+=a===E?i+$:p>=0?(r.push(s),i.slice(0,p)+"$lit$"+i.slice(p)+x+d):i+x+(-2===p?(r.push(void 0),e):d)}const s=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(s):s,r]};class I{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const a=t.length-1,s=this.parts,[c,p]=D(t,e);if(this.el=I.createElement(c,i),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=B.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=p[n++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);s.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?V:"?"===e[1]?Z:"@"===e[1]?G:W})}else s.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(T.test(r.tagName)){const t=r.textContent.split(x),e=t.length-1;if(e>0){r.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],S()),B.nextNode(),s.push({type:2,index:++o});r.append(t[e],S())}}}else if(8===r.nodeType)if(r.data===w)s.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)s.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const i=O.createElement("template");return i.innerHTML=t,i}}function L(t,e,i=t,r){var o,n,a,s;if(e===U)return e;let c=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const p=k(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==p&&(null===(n=null==c?void 0:c._$AO)||void 0===n||n.call(c,!1),void 0===p?c=void 0:(c=new p(t),c._$AT(t,i,r)),void 0!==r?(null!==(a=(s=i)._$Cl)&&void 0!==a?a:s._$Cl=[])[r]=c:i._$Cu=c),void 0!==c&&(e=L(t,c._$AS(t,e.values),c,r)),e}class P{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:O).importNode(i,!0);B.currentNode=o;let n=B.nextNode(),a=0,s=0,c=r[0];for(;void 0!==c;){if(a===c.index){let e;2===c.type?e=new H(n,n.nextSibling,this,t):1===c.type?e=new c.ctor(n,c.name,c.strings,this,t):6===c.type&&(e=new q(n,this,t)),this.v.push(e),c=r[++s]}a!==(null==c?void 0:c.index)&&(n=B.nextNode(),a++)}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 H{constructor(t,e,i,r){var o;this.type=2,this._$AH=j,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=L(this,t,e),k(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==U&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return C(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!==j&&k(this._$AH)?this._$AA.nextSibling.data=t:this.S(O.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=I.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 P(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=_.get(t.strings);return void 0===e&&_.set(t.strings,e=new I(t)),e}A(t){C(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 H(this.M(S()),this.M(S()),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 W{constructor(t,e,i,r,o){this.type=1,this._$AH=j,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=j}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(void 0===o)t=L(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==U,n&&(this._$AH=t);else{const r=t;let a,s;for(t=o[0],a=0;a<o.length-1;a++)s=L(this,r[i+a],e,a),s===U&&(s=this._$AH[a]),n||(n=!k(s)||s!==this._$AH[a]),s===j?t=j:t!==j&&(t+=(null!=s?s:"")+o[a+1]),this._$AH[a]=s}n&&!r&&this.k(t)}k(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===j?void 0:t}}const K=g?g.emptyScript:"";class Z extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==j?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class G extends W{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=L(this,t,e,0))&&void 0!==i?i:j)===U)return;const r=this._$AH,o=t===j&&r!==j||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==j&&(r===j||o);o&&this.element.removeEventListener(this.name,this,r),n&&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 q{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){L(this,t)}}const X=window.litHtmlPolyfillSupport;
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
@@ -53,7 +53,7 @@ function nt(t,e){return(({finisher:t,descriptor:e})=>(i,r)=>{var o;if(void 0===r
|
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2021 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/var at;null===(at=window.HTMLSlotElement)||void 0===at||at.prototype.assignedElements,function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,r=[];!(i=t.next()).done;)r.push(i.value);t=r}return t}var r="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,n=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),a=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,r){return e=t(e,i),r&&Reflect.setPrototypeOf(e,r.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=r(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var s;t:{var c={};try{c.__proto__={a:!0},s=c.a;break t}catch(t){}s=!1}o=s?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var p=o;if(!ShadowRoot.prototype.createElement){var l,d=window.HTMLElement,h=window.customElements.define,u=window.customElements.get,f=window.customElements,m=new WeakMap,y=new WeakMap,v=new WeakMap,g=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var r=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(x(i,o,r),r={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:r,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:o},this.l.set(t,r),this.o.set(i,r),(o=u.call(f,t))||(o=b(t),h.call(f,t,o)),this===window.customElements&&(v.set(i,r),r.s=o),o=this.h.get(t)){this.h.delete(t);for(var n=(o=e(o)).next();!n.done;n=o.next())n=n.value,y.delete(n),$(n,r,!0)}return void 0!==(r=this.i.get(t))&&(r.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){S.push(this),f.upgrade.apply(f,arguments),S.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var r=this.h.get(e);r||this.h.set(e,r=new Set),i?r.add(t):r.delete(t)},window.HTMLElement=function(){var t=l;if(t)return l=void 0,t;var e=v.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(d,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),m.set(t,e),t},window.HTMLElement.prototype=d.prototype;var b=function(t){function e(){var e=Reflect.construct(d,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=S[S.length-1])instanceof CustomElementRegistry){var r=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(r=g.get(i))?void 0:r.getRootNode())||document)}r=i.customElements}return(i=(r=r||window.customElements).j(t))?$(e,i):y.set(e,r),e}return n.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=m.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):y.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=m.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):y.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=m.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=m.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},x=function(t,e,i){if(0!==e.size&&void 0!==i){var r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);r.call(this,t,o),i.call(this,t,n,o)}else r.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);o.call(this,t),i.call(this,t,r,null)}else o.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===d?Object.setPrototypeOf(t,window.HTMLElement):w(e)},$=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),l=t;try{new e.g}catch(t){w(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=O.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var S=[document],k=function(t,e,i){var r=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){S.push(this);var t=r.apply(i||this,arguments);return void 0!==t&&g.set(t,this),S.pop(),t}};k(ShadowRoot,"createElement",document),k(ShadowRoot,"importNode",document),k(Element,"insertAdjacentHTML");var E=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){S.push(this),e.set.call(this,t),S.pop()}}))};if(E(Element),E(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var C=new WeakMap,R=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=R.call.apply(R,[this].concat(i(e))),C.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,r=e[t];e[t]=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];if(o=C.get(this),!0!==m.get(o).formAssociated)throw new DOMException("Failed to execute "+r+" on 'ElementInternals': The target element is not a form-associated custom element.");null==r||r.call.apply(r,[this].concat(i(e)))}}));var N=function(t){var e=a(Array,[].concat(i(t)),this.constructor);return e.h=t,e},z=N,A=Array;if(z.prototype=r(A.prototype),z.prototype.constructor=z,p)p(z,A);else for(var M in A)if("prototype"!=M)if(Object.defineProperties){var T=Object.getOwnPropertyDescriptor(A,M);T&&Object.defineProperty(z,M,T)}else z[M]=A[M];z.u=A.prototype,n.Object.defineProperty(N.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var F=function(t){var e=this,i=new Map;t.forEach((function(t,r){var o=t.getAttribute("name"),n=i.get(o)||[];e[+r]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new N(t))}))};F.prototype.namedItem=function(t){return this[t]};var U=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=U.get.call(this,[]),i=[],r=(t=e(t)).next();!r.done;r=t.next()){r=r.value;var o=m.get(r);o&&!0!==o.formAssociated||i.push(r)}return new F(i)}})}}}.call(self);try{window.customElements.define("custom-element",null)}catch(gt){const t=window.customElements.define;window.customElements.define=(e,i,r)=>{try{t.bind(window.customElements)(e,i,r)}catch(t){console.warn(e,i,r,t)}}}const st=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class ct{constructor(t,e,i,r,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=r,this.context=o,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new ct(t,e,void 0,i)}static extend(t,e,i){return new ct(t,e.category,e,i)}static external(t,e){return new ct(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return a`var(${n(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):n(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function pt(t,e){return n(`${t.name}: ${e}`)}const lt={colorPrimary:ct.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ct.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ct.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ct.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ct.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ct.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ct.create("--ft-color-error","COLOR","#B00020"),colorOutline:ct.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ct.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ct.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ct.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ct.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ct.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ct.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ct.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ct.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ct.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ct.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ct.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ct.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ct.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ct.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ct.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ct.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ct.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ct.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ct.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ct.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ct.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ct.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ct.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ct.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ct.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ct.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ct.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ct.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ct.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ct.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ct.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ct.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ct.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ct.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ct.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ct.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ct.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ct.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ct.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ct.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ct.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ct.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ct.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ct.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ct.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ct.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ct.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ct.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ct.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ct.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ct.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ct.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ct.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ct.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
56
|
+
*/var at;null===(at=window.HTMLSlotElement)||void 0===at||at.prototype.assignedElements,function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,r=[];!(i=t.next()).done;)r.push(i.value);t=r}return t}var r="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,n=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),a=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,r){return e=t(e,i),r&&Reflect.setPrototypeOf(e,r.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=r(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var s;t:{var c={};try{c.__proto__={a:!0},s=c.a;break t}catch(t){}s=!1}o=s?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var p=o;if(!ShadowRoot.prototype.createElement){var l,d=window.HTMLElement,h=window.customElements.define,u=window.customElements.get,f=window.customElements,m=new WeakMap,y=new WeakMap,v=new WeakMap,g=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var r=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(x(i,o,r),r={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:r,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:o},this.l.set(t,r),this.o.set(i,r),(o=u.call(f,t))||(o=b(t),h.call(f,t,o)),this===window.customElements&&(v.set(i,r),r.s=o),o=this.h.get(t)){this.h.delete(t);for(var n=(o=e(o)).next();!n.done;n=o.next())n=n.value,y.delete(n),$(n,r,!0)}return void 0!==(r=this.i.get(t))&&(r.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){S.push(this),f.upgrade.apply(f,arguments),S.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var r=this.h.get(e);r||this.h.set(e,r=new Set),i?r.add(t):r.delete(t)},window.HTMLElement=function(){var t=l;if(t)return l=void 0,t;var e=v.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(d,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),m.set(t,e),t},window.HTMLElement.prototype=d.prototype;var b=function(t){function e(){var e=Reflect.construct(d,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=S[S.length-1])instanceof CustomElementRegistry){var r=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(r=g.get(i))?void 0:r.getRootNode())||document)}r=i.customElements}return(i=(r=r||window.customElements).j(t))?$(e,i):y.set(e,r),e}return n.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=m.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):y.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=m.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):y.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=m.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=m.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},x=function(t,e,i){if(0!==e.size&&void 0!==i){var r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);r.call(this,t,o),i.call(this,t,n,o)}else r.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);o.call(this,t),i.call(this,t,r,null)}else o.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===d?Object.setPrototypeOf(t,window.HTMLElement):w(e)},$=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),l=t;try{new e.g}catch(t){w(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=O.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var S=[document],k=function(t,e,i){var r=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){S.push(this);var t=r.apply(i||this,arguments);return void 0!==t&&g.set(t,this),S.pop(),t}};k(ShadowRoot,"createElement",document),k(ShadowRoot,"importNode",document),k(Element,"insertAdjacentHTML");var C=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){S.push(this),e.set.call(this,t),S.pop()}}))};if(C(Element),C(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var E=new WeakMap,R=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=R.call.apply(R,[this].concat(i(e))),E.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,r=e[t];e[t]=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];if(o=E.get(this),!0!==m.get(o).formAssociated)throw new DOMException("Failed to execute "+r+" on 'ElementInternals': The target element is not a form-associated custom element.");null==r||r.call.apply(r,[this].concat(i(e)))}}));var N=function(t){var e=a(Array,[].concat(i(t)),this.constructor);return e.h=t,e},z=N,A=Array;if(z.prototype=r(A.prototype),z.prototype.constructor=z,p)p(z,A);else for(var M in A)if("prototype"!=M)if(Object.defineProperties){var T=Object.getOwnPropertyDescriptor(A,M);T&&Object.defineProperty(z,M,T)}else z[M]=A[M];z.u=A.prototype,n.Object.defineProperty(N.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var F=function(t){var e=this,i=new Map;t.forEach((function(t,r){var o=t.getAttribute("name"),n=i.get(o)||[];e[+r]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new N(t))}))};F.prototype.namedItem=function(t){return this[t]};var U=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=U.get.call(this,[]),i=[],r=(t=e(t)).next();!r.done;r=t.next()){r=r.value;var o=m.get(r);o&&!0!==o.formAssociated||i.push(r)}return new F(i)}})}}}.call(self);try{window.customElements.define("custom-element",null)}catch(gt){const t=window.customElements.define;window.customElements.define=(e,i,r)=>{try{t.bind(window.customElements)(e,i,r)}catch(t){console.warn(e,i,r,t)}}}const st=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class ct{constructor(t,e,i,r,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=r,this.context=o,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new ct(t,e,void 0,i)}static extend(t,e,i){return new ct(t,e.category,e,i)}static external(t,e){return new ct(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return a`var(${n(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):n(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function pt(t,e){return n(`${t.name}: ${e}`)}const lt={colorPrimary:ct.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ct.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ct.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ct.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ct.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ct.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ct.create("--ft-color-error","COLOR","#B00020"),colorOutline:ct.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ct.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ct.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ct.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ct.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ct.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ct.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ct.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ct.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ct.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ct.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ct.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ct.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ct.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ct.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ct.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ct.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ct.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ct.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ct.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ct.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ct.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ct.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ct.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ct.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ct.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ct.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ct.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ct.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ct.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ct.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ct.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ct.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ct.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ct.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ct.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ct.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ct.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ct.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ct.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ct.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ct.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ct.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ct.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ct.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ct.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ct.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ct.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ct.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ct.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ct.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ct.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ct.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ct.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ct.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
57
57
|
/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2021 Google LLC
|
|
@@ -125,13 +125,13 @@ var wt=function(t,e){return wt=Object.setPrototypeOf||{__proto__:[]}instanceof A
|
|
|
125
125
|
* Copyright 2018 Google LLC
|
|
126
126
|
* SPDX-License-Identifier: Apache-2.0
|
|
127
127
|
*/
|
|
128
|
-
const kt=()=>{},
|
|
128
|
+
const kt=()=>{},Ct={get passive(){return!1}};document.addEventListener("x",kt,Ct),document.removeEventListener("x",kt);
|
|
129
129
|
/**
|
|
130
130
|
* @license
|
|
131
131
|
* Copyright 2018 Google LLC
|
|
132
132
|
* SPDX-License-Identifier: Apache-2.0
|
|
133
133
|
*/
|
|
134
|
-
class
|
|
134
|
+
class Et extends Q{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()}}
|
|
135
135
|
/**
|
|
136
136
|
* @license
|
|
137
137
|
* Copyright 2016 Google Inc.
|
|
@@ -209,20 +209,20 @@ const _t=gt(class extends bt{constructor(t){var e;if(super(t),t.type!==vt||"styl
|
|
|
209
209
|
* @license
|
|
210
210
|
* Copyright 2018 Google LLC
|
|
211
211
|
* SPDX-License-Identifier: Apache-2.0
|
|
212
|
-
*/class
|
|
212
|
+
*/class Bt extends Et{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=jt}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return F`
|
|
213
213
|
<div class="mdc-ripple-surface mdc-ripple-upgraded ${xt(i)}"
|
|
214
|
-
style="${_t({"--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>`}}Ot([nt(".mdc-ripple-surface")],
|
|
214
|
+
style="${_t({"--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>`}}Ot([nt(".mdc-ripple-surface")],Bt.prototype,"mdcRoot",void 0),Ot([rt({type:Boolean})],Bt.prototype,"primary",void 0),Ot([rt({type:Boolean})],Bt.prototype,"accent",void 0),Ot([rt({type:Boolean})],Bt.prototype,"unbounded",void 0),Ot([rt({type:Boolean})],Bt.prototype,"disabled",void 0),Ot([rt({type:Boolean})],Bt.prototype,"activated",void 0),Ot([rt({type:Boolean})],Bt.prototype,"selected",void 0),Ot([rt({type:Boolean})],Bt.prototype,"internalUseStateLayerCustomProperties",void 0),Ot([ot()],Bt.prototype,"hovering",void 0),Ot([ot()],Bt.prototype,"bgFocused",void 0),Ot([ot()],Bt.prototype,"fgActivation",void 0),Ot([ot()],Bt.prototype,"fgDeactivation",void 0),Ot([ot()],Bt.prototype,"fgScale",void 0),Ot([ot()],Bt.prototype,"fgSize",void 0),Ot([ot()],Bt.prototype,"translateStart",void 0),Ot([ot()],Bt.prototype,"translateEnd",void 0),Ot([ot()],Bt.prototype,"leftPos",void 0),Ot([ot()],Bt.prototype,"topPos",void 0);
|
|
215
215
|
/**
|
|
216
216
|
* @license
|
|
217
217
|
* Copyright 2021 Google LLC
|
|
218
218
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
219
219
|
*/
|
|
220
|
-
const Bt=a`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
|
|
220
|
+
const Dt=a`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
|
|
221
221
|
/**
|
|
222
222
|
* @license
|
|
223
223
|
* Copyright 2018 Google LLC
|
|
224
224
|
* SPDX-License-Identifier: Apache-2.0
|
|
225
|
-
*/;let It=class extends
|
|
225
|
+
*/;let It=class extends Bt{};It.styles=[Dt],It=Ot([et("mwc-ripple")],It);
|
|
226
226
|
/**
|
|
227
227
|
* @license
|
|
228
228
|
* Copyright 2020 Google LLC
|
|
@@ -261,7 +261,7 @@ class Lt{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))}
|
|
|
261
261
|
* Copyright 2020 Google LLC
|
|
262
262
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
263
263
|
*/
|
|
264
|
-
const Vt=t=>({_$litStatic$:t}),Kt=new Map,Zt=(t=>(e,...i)=>{var r;const o=i.length;let n,a;const s=[],c=[];let p,l=0,d=!1;for(;l<o;){for(p=e[l];l<o&&void 0!==(a=i[l],n=null===(r=a)||void 0===r?void 0:r._$litStatic$);)p+=n+e[++l],d=!0;c.push(a),s.push(p),l++}if(l===o&&s.push(e[o]),d){const t=s.join("$$lit$$");void 0===(e=Kt.get(t))&&(s.raw=s,Kt.set(t,e=s)),i=c}return t(e,...i)})(F);var Gt,qt=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};!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"}(Gt||(Gt={}));const Xt=ct.extend("--ft-typography-font-family",lt.titleFont),Jt=ct.extend("--ft-typography-font-family",lt.contentFont),Yt={fontFamily:Jt,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","SIZE","24px"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},Qt=ct.extend("--ft-typography-title-font-family",Xt),te=ct.extend("--ft-typography-title-font-size",Yt.fontSize,"20px"),ee=ct.extend("--ft-typography-title-font-weight",Yt.fontWeight,"normal"),ie=ct.extend("--ft-typography-title-letter-spacing",Yt.letterSpacing,"0.15px"),re=ct.extend("--ft-typography-title-line-height",Yt.lineHeight,"24px"),oe=ct.extend("--ft-typography-title-text-transform",Yt.textTransform,"inherit"),ne=ct.extend("--ft-typography-title-dense-font-family",Xt),ae=ct.extend("--ft-typography-title-dense-font-size",Yt.fontSize,"14px"),se=ct.extend("--ft-typography-title-dense-font-weight",Yt.fontWeight,"normal"),ce=ct.extend("--ft-typography-title-dense-letter-spacing",Yt.letterSpacing,"0.105px"),pe=ct.extend("--ft-typography-title-dense-line-height",Yt.lineHeight,"24px"),le=ct.extend("--ft-typography-title-dense-text-transform",Yt.textTransform,"inherit"),de=ct.extend("--ft-typography-subtitle1-font-family",Jt),he=ct.extend("--ft-typography-subtitle1-font-size",Yt.fontSize,"16px"),ue=ct.extend("--ft-typography-subtitle1-font-weight",Yt.fontWeight,"600"),fe=ct.extend("--ft-typography-subtitle1-letter-spacing",Yt.letterSpacing,"0.144px"),me=ct.extend("--ft-typography-subtitle1-line-height",Yt.lineHeight,"24px"),ye=ct.extend("--ft-typography-subtitle1-text-transform",Yt.textTransform,"inherit"),ve=ct.extend("--ft-typography-subtitle2-font-family",Jt),ge=ct.extend("--ft-typography-subtitle2-font-size",Yt.fontSize,"14px"),be=ct.extend("--ft-typography-subtitle2-font-weight",Yt.fontWeight,"normal"),xe=ct.extend("--ft-typography-subtitle2-letter-spacing",Yt.letterSpacing,"0.098px"),we=ct.extend("--ft-typography-subtitle2-line-height",Yt.lineHeight,"24px"),$e=ct.extend("--ft-typography-subtitle2-text-transform",Yt.textTransform,"inherit"),Oe=ct.extend("--ft-typography-body1-font-family",Jt),Se=ct.extend("--ft-typography-body1-font-size",Yt.fontSize,"16px"),ke=ct.extend("--ft-typography-body1-font-weight",Yt.fontWeight,"normal"),
|
|
264
|
+
const Vt=t=>({_$litStatic$:t}),Kt=new Map,Zt=(t=>(e,...i)=>{var r;const o=i.length;let n,a;const s=[],c=[];let p,l=0,d=!1;for(;l<o;){for(p=e[l];l<o&&void 0!==(a=i[l],n=null===(r=a)||void 0===r?void 0:r._$litStatic$);)p+=n+e[++l],d=!0;c.push(a),s.push(p),l++}if(l===o&&s.push(e[o]),d){const t=s.join("$$lit$$");void 0===(e=Kt.get(t))&&(s.raw=s,Kt.set(t,e=s)),i=c}return t(e,...i)})(F);var Gt,qt=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};!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"}(Gt||(Gt={}));const Xt=ct.extend("--ft-typography-font-family",lt.titleFont),Jt=ct.extend("--ft-typography-font-family",lt.contentFont),Yt={fontFamily:Jt,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","SIZE","24px"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},Qt=ct.extend("--ft-typography-title-font-family",Xt),te=ct.extend("--ft-typography-title-font-size",Yt.fontSize,"20px"),ee=ct.extend("--ft-typography-title-font-weight",Yt.fontWeight,"normal"),ie=ct.extend("--ft-typography-title-letter-spacing",Yt.letterSpacing,"0.15px"),re=ct.extend("--ft-typography-title-line-height",Yt.lineHeight,"24px"),oe=ct.extend("--ft-typography-title-text-transform",Yt.textTransform,"inherit"),ne=ct.extend("--ft-typography-title-dense-font-family",Xt),ae=ct.extend("--ft-typography-title-dense-font-size",Yt.fontSize,"14px"),se=ct.extend("--ft-typography-title-dense-font-weight",Yt.fontWeight,"normal"),ce=ct.extend("--ft-typography-title-dense-letter-spacing",Yt.letterSpacing,"0.105px"),pe=ct.extend("--ft-typography-title-dense-line-height",Yt.lineHeight,"24px"),le=ct.extend("--ft-typography-title-dense-text-transform",Yt.textTransform,"inherit"),de=ct.extend("--ft-typography-subtitle1-font-family",Jt),he=ct.extend("--ft-typography-subtitle1-font-size",Yt.fontSize,"16px"),ue=ct.extend("--ft-typography-subtitle1-font-weight",Yt.fontWeight,"600"),fe=ct.extend("--ft-typography-subtitle1-letter-spacing",Yt.letterSpacing,"0.144px"),me=ct.extend("--ft-typography-subtitle1-line-height",Yt.lineHeight,"24px"),ye=ct.extend("--ft-typography-subtitle1-text-transform",Yt.textTransform,"inherit"),ve=ct.extend("--ft-typography-subtitle2-font-family",Jt),ge=ct.extend("--ft-typography-subtitle2-font-size",Yt.fontSize,"14px"),be=ct.extend("--ft-typography-subtitle2-font-weight",Yt.fontWeight,"normal"),xe=ct.extend("--ft-typography-subtitle2-letter-spacing",Yt.letterSpacing,"0.098px"),we=ct.extend("--ft-typography-subtitle2-line-height",Yt.lineHeight,"24px"),$e=ct.extend("--ft-typography-subtitle2-text-transform",Yt.textTransform,"inherit"),Oe=ct.extend("--ft-typography-body1-font-family",Jt),Se=ct.extend("--ft-typography-body1-font-size",Yt.fontSize,"16px"),ke=ct.extend("--ft-typography-body1-font-weight",Yt.fontWeight,"normal"),Ce=ct.extend("--ft-typography-body1-letter-spacing",Yt.letterSpacing,"0.496px"),Ee=ct.extend("--ft-typography-body1-line-height",Yt.lineHeight,"24px"),Re=ct.extend("--ft-typography-body1-text-transform",Yt.textTransform,"inherit"),Ne={fontFamily:ct.extend("--ft-typography-body2-font-family",Jt),fontSize:ct.extend("--ft-typography-body2-font-size",Yt.fontSize,"14px"),fontWeight:ct.extend("--ft-typography-body2-font-weight",Yt.fontWeight,"normal"),letterSpacing:ct.extend("--ft-typography-body2-letter-spacing",Yt.letterSpacing,"0.252px"),lineHeight:ct.extend("--ft-typography-body2-line-height",Yt.lineHeight,"20px"),textTransform:ct.extend("--ft-typography-body2-text-transform",Yt.textTransform,"inherit")},ze=ct.extend("--ft-typography-caption-font-family",Jt),Ae=ct.extend("--ft-typography-caption-font-size",Yt.fontSize,"12px"),Me=ct.extend("--ft-typography-caption-font-weight",Yt.fontWeight,"normal"),Te=ct.extend("--ft-typography-caption-letter-spacing",Yt.letterSpacing,"0.396px"),Fe=ct.extend("--ft-typography-caption-line-height",Yt.lineHeight,"16px"),Ue=ct.extend("--ft-typography-caption-text-transform",Yt.textTransform,"inherit"),je=ct.extend("--ft-typography-breadcrumb-font-family",Jt),_e=ct.extend("--ft-typography-breadcrumb-font-size",Yt.fontSize,"10px"),Be=ct.extend("--ft-typography-breadcrumb-font-weight",Yt.fontWeight,"normal"),De=ct.extend("--ft-typography-breadcrumb-letter-spacing",Yt.letterSpacing,"0.33px"),Ie=ct.extend("--ft-typography-breadcrumb-line-height",Yt.lineHeight,"16px"),Le=ct.extend("--ft-typography-breadcrumb-text-transform",Yt.textTransform,"inherit"),Pe=ct.extend("--ft-typography-overline-font-family",Jt),He=ct.extend("--ft-typography-overline-font-size",Yt.fontSize,"10px"),We=ct.extend("--ft-typography-overline-font-weight",Yt.fontWeight,"normal"),Ve=ct.extend("--ft-typography-overline-letter-spacing",Yt.letterSpacing,"1.5px"),Ke=ct.extend("--ft-typography-overline-line-height",Yt.lineHeight,"16px"),Ze=ct.extend("--ft-typography-overline-text-transform",Yt.textTransform,"uppercase"),Ge=ct.extend("--ft-typography-button-font-family",Jt),qe=ct.extend("--ft-typography-button-font-size",Yt.fontSize,"14px"),Xe=ct.extend("--ft-typography-button-font-weight",Yt.fontWeight,"600"),Je=ct.extend("--ft-typography-button-letter-spacing",Yt.letterSpacing,"1.246px"),Ye=ct.extend("--ft-typography-button-line-height",Yt.lineHeight,"16px"),Qe=ct.extend("--ft-typography-button-text-transform",Yt.textTransform,"uppercase"),ti=a`
|
|
265
265
|
.ft-typography--title {
|
|
266
266
|
font-family: ${Qt};
|
|
267
267
|
font-size: ${te};
|
|
@@ -303,8 +303,8 @@ const Vt=t=>({_$litStatic$:t}),Kt=new Map,Zt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
303
303
|
font-family: ${Oe};
|
|
304
304
|
font-size: ${Se};
|
|
305
305
|
font-weight: ${ke};
|
|
306
|
-
letter-spacing: ${
|
|
307
|
-
line-height: ${
|
|
306
|
+
letter-spacing: ${Ce};
|
|
307
|
+
line-height: ${Ee};
|
|
308
308
|
text-transform: ${Re};
|
|
309
309
|
}
|
|
310
310
|
`,ni=a`
|
|
@@ -329,8 +329,8 @@ const Vt=t=>({_$litStatic$:t}),Kt=new Map,Zt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
329
329
|
.ft-typography--breadcrumb {
|
|
330
330
|
font-family: ${je};
|
|
331
331
|
font-size: ${_e};
|
|
332
|
-
font-weight: ${
|
|
333
|
-
letter-spacing: ${
|
|
332
|
+
font-weight: ${Be};
|
|
333
|
+
letter-spacing: ${De};
|
|
334
334
|
line-height: ${Ie};
|
|
335
335
|
text-transform: ${Le};
|
|
336
336
|
}
|
|
@@ -352,7 +352,11 @@ const Vt=t=>({_$litStatic$:t}),Kt=new Map,Zt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
352
352
|
line-height: ${Ye};
|
|
353
353
|
text-transform: ${Qe};
|
|
354
354
|
}
|
|
355
|
-
`;let li=class extends dt{constructor(){super(...arguments),this.variant=Gt.body1}getStyles(){return[ti,ei,ii,ri,oi,ni,ai,si,ci,pi
|
|
355
|
+
`;let li=class extends dt{constructor(){super(...arguments),this.variant=Gt.body1}getStyles(){return[ti,ei,ii,ri,oi,ni,ai,si,ci,pi,a`
|
|
356
|
+
.ft-typography {
|
|
357
|
+
vertical-align: inherit;
|
|
358
|
+
}
|
|
359
|
+
`]}getTemplate(){return this.element?Zt`
|
|
356
360
|
<${Vt(this.element)}
|
|
357
361
|
class="ft-typography ft-typography--${this.variant}">
|
|
358
362
|
<slot></slot>
|
|
@@ -451,6 +455,7 @@ const di=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
451
455
|
}
|
|
452
456
|
|
|
453
457
|
.ft-chip--label {
|
|
458
|
+
vertical-align: bottom;
|
|
454
459
|
display: block;
|
|
455
460
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
456
461
|
${pt(Ne.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
@@ -508,10 +513,25 @@ const di=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
508
513
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
509
514
|
<mwc-icon>${this.internalIcon}</mwc-icon>
|
|
510
515
|
</div>
|
|
511
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new xi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new xi))}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)}};wi.elementDefinitions={"ft-ripple":Wt,"ft-typography":li,"mwc-icon":hi},ui([rt({type:Boolean})],wi.prototype,"highlighted",void 0),ui([rt({type:Boolean})],wi.prototype,"removable",void 0),ui([rt({type:Boolean})],wi.prototype,"disabled",void 0),ui([rt({type:Boolean})],wi.prototype,"clickable",void 0),ui([rt({type:Boolean})],wi.prototype,"iconClickable",void 0),ui([rt({type:Boolean})],wi.prototype,"dense",void 0),ui([rt({type:Boolean})],wi.prototype,"multiLine",void 0),ui([rt({type:String})],wi.prototype,"label",void 0),ui([rt({type:String})],wi.prototype,"icon",void 0),ui([rt({type:Boolean})],wi.prototype,"trailingIcon",void 0),ui([nt("ft-typography slot")],wi.prototype,"slottedContent",void 0),wi=ui([st("ft-chip")],wi);var $i=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Oi={zIndex:ct.create("--ft-file-drop-z-index","NUMBER","10"),
|
|
516
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new xi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new xi))}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)}};wi.elementDefinitions={"ft-ripple":Wt,"ft-typography":li,"mwc-icon":hi},ui([rt({type:Boolean})],wi.prototype,"highlighted",void 0),ui([rt({type:Boolean})],wi.prototype,"removable",void 0),ui([rt({type:Boolean})],wi.prototype,"disabled",void 0),ui([rt({type:Boolean})],wi.prototype,"clickable",void 0),ui([rt({type:Boolean})],wi.prototype,"iconClickable",void 0),ui([rt({type:Boolean})],wi.prototype,"dense",void 0),ui([rt({type:Boolean})],wi.prototype,"multiLine",void 0),ui([rt({type:String})],wi.prototype,"label",void 0),ui([rt({type:String})],wi.prototype,"icon",void 0),ui([rt({type:Boolean})],wi.prototype,"trailingIcon",void 0),ui([nt("ft-typography slot")],wi.prototype,"slottedContent",void 0),wi=ui([st("ft-chip")],wi);var $i=function(t,e,i,r){for(var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Oi={zIndex:ct.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:ct.extend("--ft-file-drop-hint-background-color",lt.colorSurface),hintColor:ct.extend("--ft-file-drop-hint-color",lt.colorPrimary),errorColor:ct.extend("--ft-file-drop-error-color",lt.colorError),borderRadius:ct.extend("--ft-file-drop-border-radius",lt.borderRadiusL),borderWidth:ct.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:ct.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:ct.extend("--ft-file-drop-visible-border-color",lt.colorOutline),activeBorderColor:ct.extend("--ft-file-drop-active-border-color",lt.colorPrimary)};class Si extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}t.FtFileDrop=class extends dt{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 a`
|
|
517
|
+
:host {
|
|
518
|
+
display: block;
|
|
519
|
+
position: relative;
|
|
520
|
+
}
|
|
521
|
+
|
|
512
522
|
#container {
|
|
513
523
|
position: absolute;
|
|
514
524
|
inset: 0;
|
|
525
|
+
border: dashed ${Oi.borderWidth} ${Oi.borderColor};
|
|
526
|
+
border-radius: ${Oi.borderRadius};
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
#container.visible {
|
|
530
|
+
border-color: ${Oi.visibleBorderColor}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
#container.dragging {
|
|
534
|
+
border-color: ${Oi.activeBorderColor}
|
|
515
535
|
}
|
|
516
536
|
|
|
517
537
|
slot {
|
|
@@ -536,9 +556,9 @@ const di=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
536
556
|
z-index: 1;
|
|
537
557
|
position: absolute;
|
|
538
558
|
inset: 0;
|
|
539
|
-
background-color: ${Oi.
|
|
559
|
+
background-color: ${Oi.activeBorderColor};
|
|
540
560
|
opacity: 0.20;
|
|
541
|
-
border-radius:
|
|
561
|
+
border-radius: ${Oi.borderRadius};
|
|
542
562
|
}
|
|
543
563
|
|
|
544
564
|
#overlay-drop {
|
|
@@ -551,8 +571,6 @@ const di=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
551
571
|
z-index: 1;
|
|
552
572
|
position: absolute;
|
|
553
573
|
inset: 0;
|
|
554
|
-
border: dashed 4px ${Oi.colorPrimary};
|
|
555
|
-
border-radius: 10px;
|
|
556
574
|
display: flex;
|
|
557
575
|
align-items: flex-end;
|
|
558
576
|
justify-content: center;
|
|
@@ -560,20 +578,20 @@ const di=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
560
578
|
|
|
561
579
|
#overlay-content ft-chip {
|
|
562
580
|
margin-bottom: 10%;
|
|
563
|
-
${pt(mi.color,Oi.
|
|
581
|
+
${pt(mi.color,Oi.hintColor)};
|
|
564
582
|
${pt(mi.iconSize,"32px")};
|
|
565
583
|
${pt(mi.colorOutline,"transparent")};
|
|
566
584
|
}
|
|
567
585
|
|
|
568
|
-
|
|
569
|
-
${pt(mi.color,Oi.
|
|
570
|
-
${pt(mi.backgroundColor,Oi.
|
|
586
|
+
#overlay-content xft-chip[icon=error] {
|
|
587
|
+
${pt(mi.color,Oi.errorColor)};
|
|
588
|
+
${pt(mi.backgroundColor,Oi.hintBackgroundColor)};
|
|
571
589
|
}
|
|
572
590
|
|
|
573
591
|
[hidden] {
|
|
574
592
|
display: none;
|
|
575
593
|
}
|
|
576
|
-
`}getTemplate(){let t={dragging:this.dragging};return F`
|
|
594
|
+
`}getTemplate(){let t={dragging:this.dragging,visible:this.visible};return F`
|
|
577
595
|
<div id="container"
|
|
578
596
|
class="${xt(t)}"
|
|
579
597
|
@dragenter=${this.onDragEnter}
|
|
@@ -591,4 +609,4 @@ const di=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
591
609
|
</div>
|
|
592
610
|
<slot></slot>
|
|
593
611
|
</div>
|
|
594
|
-
`}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),n=e.includes(".")?"."+e.split(".").pop():void 0;return!(!n||!o.test(n))||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 Si(e)))}}},t.FtFileDrop.elementDefinitions={"ft-chip":wi},$i([rt()],t.FtFileDrop.prototype,"dropHint",void 0),$i([rt()],t.FtFileDrop.prototype,"accept",void 0),$i([rt()],t.FtFileDrop.prototype,"fileTypeError",void 0),$i([ot()],t.FtFileDrop.prototype,"dragging",void 0),$i([ot()],t.FtFileDrop.prototype,"fileError",void 0),t.FtFileDrop=$i([st("ft-file-drop")],t.FtFileDrop),t.FileDropEvent=Si,t.FtFileDropCssVariables=Oi,Object.defineProperty(t,"t",{value:!0})}({});
|
|
612
|
+
`}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),n=e.includes(".")?"."+e.split(".").pop():void 0;return!(!n||!o.test(n))||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 Si(e)))}}},t.FtFileDrop.elementDefinitions={"ft-chip":wi},$i([rt()],t.FtFileDrop.prototype,"dropHint",void 0),$i([rt()],t.FtFileDrop.prototype,"accept",void 0),$i([rt()],t.FtFileDrop.prototype,"fileTypeError",void 0),$i([rt({type:Boolean})],t.FtFileDrop.prototype,"visible",void 0),$i([ot()],t.FtFileDrop.prototype,"dragging",void 0),$i([ot()],t.FtFileDrop.prototype,"fileError",void 0),t.FtFileDrop=$i([st("ft-file-drop")],t.FtFileDrop),t.FileDropEvent=Si,t.FtFileDropCssVariables=Oi,Object.defineProperty(t,"t",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-file-drop",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Container that accepts dropping files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-chip": "^0.1.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "^0.1.
|
|
22
|
+
"@fluid-topics/ft-chip": "^0.1.11",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "^0.1.11",
|
|
24
24
|
"lit": "^2.0.2"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "58da96e373802fca9767059a895dc5e525f743ae"
|
|
27
27
|
}
|