@fluid-topics/ft-tabs 0.2.20 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,377 +1,306 @@
1
- !function(t,e,i,r,a,c,n){var o,s=function(t,e,i,r){for(var a,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,o=t.length-1;o>=0;o--)(a=t[o])&&(n=(c<3?a(n):c>3?a(e,i,n):a(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.before="before",t.current="current",t.after="after"}(o||(o={}));class d extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.icon="",this.visible=!1,this.disabled=!1}static get styles(){return i.css`
1
+ !function(t,e,i,s,o,r,n){var l,a;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(l||(l={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(a||(a={})),new Map([...["abw"].map((t=>[t,a.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,a.AUDIO])),...["avi"].map((t=>[t,a.AVI])),...["chm","xhs"].map((t=>[t,a.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,a.CODE])),...["csv"].map((t=>[t,a.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,a.DITA])),...["epub"].map((t=>[t,a.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,a.EXCEL])),...["flac"].map((t=>[t,a.FLAC])),...["gif"].map((t=>[t,a.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,a.GZIP])),...["html","htm","xhtml"].map((t=>[t,a.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,a.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,a.JPEG])),...["json"].map((t=>[t,a.JSON])),...["m4a","m4p"].map((t=>[t,a.M4A])),...["mov","qt"].map((t=>[t,a.MOV])),...["mp3"].map((t=>[t,a.MP3])),...["mp4","m4v"].map((t=>[t,a.MP4])),...["ogg","oga"].map((t=>[t,a.OGG])),...["pdf","ps"].map((t=>[t,a.PDF])),...["png"].map((t=>[t,a.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,a.POWERPOINT])),...["rar"].map((t=>[t,a.RAR])),...["stp"].map((t=>[t,a.STP])),...["txt","rtf","md","mdown"].map((t=>[t,a.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,a.VIDEO])),...["wav"].map((t=>[t,a.WAV])),...["wma"].map((t=>[t,a.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,a.WORD])),...["xml","xsl","rdf"].map((t=>[t,a.XML])),...["yaml","yml","x-yaml"].map((t=>[t,a.YAML])),...["zip"].map((t=>[t,a.ZIP]))]);var p,h=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(p||(p={}));const f=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),c=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),d=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),y=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class x extends e.FtLitElement{constructor(){super(...arguments),this.variant=p.fluid_topics}getStyles(){return i.css`
2
2
  :host {
3
- width: 100%;
4
- position: absolute;
3
+ display: inline-block;
5
4
  }
6
- `}render(){return i.html`
5
+
6
+ :host, i.ft-icon {
7
+ width: ${f};
8
+ height: ${f};
9
+ text-align: center;
10
+ }
11
+
12
+ i.ft-icon {
13
+ font-size: ${f};
14
+ line-height: 1;
15
+ font-weight: normal;
16
+ text-transform: none;
17
+ font-style: normal;
18
+ font-variant: normal;
19
+ speak: none;
20
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
21
+ text-rendering: auto;
22
+ -webkit-font-smoothing: antialiased;
23
+ -moz-osx-font-smoothing: grayscale;
24
+ }
25
+
26
+ .ft-icon--fluid-topics {
27
+ font-family: ${c}, ft-icons, fticons, sans-serif;
28
+ }
29
+
30
+ .ft-icon--file-format {
31
+ font-family: ${d}, ft-mime, sans-serif;
32
+ }
33
+
34
+ .ft-icon--material {
35
+ font-family: ${y}, "Material Icons", sans-serif;
36
+ }
37
+ `}getTemplate(){return i.html`
38
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
39
+ ${o.unsafeHTML(this.getIcon())}
40
+ <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
41
+ </i>
42
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let s=this.textContent;return this.variant===p.file_format?null!==(t=a[s.toUpperCase()])&&void 0!==t?t:s:this.variant===p.fluid_topics?null!==(e=l[s.toUpperCase()])&&void 0!==e?e:s:i.nothing}}x.elementDefinitions={},h([s.property()],x.prototype,"variant",void 0),h([s.query("slot")],x.prototype,"slottedContent",void 0),e.customElement("ft-icon")(x);var u=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class g extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=p.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0"),this.id="tab-content-"+this.uniqueId,this.ariaLabelledBy="tab-"+this.uniqueId}render(){return i.html`
7
43
  <style>
8
44
  :host {
9
- display: ${i.unsafeCSS(this.visible?"block":"none")};
45
+ display: ${i.unsafeCSS(this.active?"block":"none")};
10
46
  }
11
47
  </style>
12
48
  <slot></slot>
13
- `}updated(t){super.updated(t),this.dispatchEvent(new Event("updated"))}}d.elementDefinitions={},s([r.property({type:String})],d.prototype,"label",void 0),s([r.property({type:String})],d.prototype,"icon",void 0),s([r.property({type:Boolean})],d.prototype,"visible",void 0),s([r.property({type:Boolean})],d.prototype,"disabled",void 0);var l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},l(t,e)};function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var u=function(){return u=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},u.apply(this,arguments)};function f(t,e,i,r){for(var a,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,o=t.length-1;o>=0;o--)(a=t[o])&&(n=(c<3?a(n):c>3?a(e,i,n):a(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n}function h(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
14
- /**
15
- * @license
16
- * Copyright 2018 Google LLC
17
- * SPDX-License-Identifier: Apache-2.0
18
- */
19
- function m(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}const b=()=>{},v={get passive(){return!1}};document.addEventListener("x",b,v),document.removeEventListener("x",b);
20
- /**
21
- * @license
22
- * Copyright 2018 Google LLC
23
- * SPDX-License-Identifier: Apache-2.0
24
- */
25
- class g extends i.LitElement{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
26
- /**
27
- * @license
28
- * Copyright 2016 Google Inc.
29
- *
30
- * Permission is hereby granted, free of charge, to any person obtaining a copy
31
- * of this software and associated documentation files (the "Software"), to deal
32
- * in the Software without restriction, including without limitation the rights
33
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
34
- * copies of the Software, and to permit persons to whom the Software is
35
- * furnished to do so, subject to the following conditions:
36
- *
37
- * The above copyright notice and this permission notice shall be included in
38
- * all copies or substantial portions of the Software.
39
- *
40
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
43
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
46
- * THE SOFTWARE.
47
- */var y=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),_={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},w={CONTENT_SELECTOR:".mdc-tab-indicator__content"},x=function(t){function e(i){return t.call(this,u(u({},e.defaultAdapter),i))||this}return p(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return w},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},e}(y),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.activate=function(){this.adapter.addClass(x.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(x.cssClasses.ACTIVE)},e}(x),T=A,C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.activate=function(t){if(t){var e=this.computeContentClientRect(),i=t.width/e.width,r=t.left-e.left;this.adapter.addClass(x.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+r+"px) scaleX("+i+")"),this.computeContentClientRect(),this.adapter.removeClass(x.cssClasses.NO_TRANSITION),this.adapter.addClass(x.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(x.cssClasses.ACTIVE)},e.prototype.deactivate=function(){this.adapter.removeClass(x.cssClasses.ACTIVE)},e}(x),S=C;
48
- /**
49
- * @license
50
- * Copyright 2018 Google Inc.
51
- *
52
- * Permission is hereby granted, free of charge, to any person obtaining a copy
53
- * of this software and associated documentation files (the "Software"), to deal
54
- * in the Software without restriction, including without limitation the rights
55
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
56
- * copies of the Software, and to permit persons to whom the Software is
57
- * furnished to do so, subject to the following conditions:
58
- *
59
- * The above copyright notice and this permission notice shall be included in
60
- * all copies or substantial portions of the Software.
61
- *
62
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
66
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
67
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
68
- * THE SOFTWARE.
69
- */
70
- /**
71
- * @license
72
- * Copyright 2018 Google LLC
73
- * SPDX-License-Identifier: Apache-2.0
74
- */
75
- class O extends g{constructor(){super(...arguments),this.icon="",this.fade=!1}get mdcFoundationClass(){return this.fade?T:S}render(){const t={"mdc-tab-indicator__content--icon":this.icon,"material-icons":this.icon,"mdc-tab-indicator__content--underline":!this.icon};return i.html`
76
- <span class="mdc-tab-indicator ${c.classMap({"mdc-tab-indicator--fade":this.fade})}">
77
- <span class="mdc-tab-indicator__content ${c.classMap(t)}">${this.icon}</span>
78
- </span>
79
- `}updated(t){t.has("fade")&&this.createFoundation()}createAdapter(){return Object.assign(Object.assign({},m(this.mdcRoot)),{computeContentClientRect:()=>this.contentElement.getBoundingClientRect(),setContentStyleProperty:(t,e)=>this.contentElement.style.setProperty(t,e)})}computeContentClientRect(){return this.mdcFoundation.computeContentClientRect()}activate(t){this.mdcFoundation.activate(t)}deactivate(){this.mdcFoundation.deactivate()}}f([r.query(".mdc-tab-indicator")],O.prototype,"mdcRoot",void 0),f([r.query(".mdc-tab-indicator__content")],O.prototype,"contentElement",void 0),f([r.property()],O.prototype,"icon",void 0),f([r.property({type:Boolean})],O.prototype,"fade",void 0);
80
- /**
81
- * @license
82
- * Copyright 2021 Google LLC
83
- * SPDX-LIcense-Identifier: Apache-2.0
84
- */
85
- const E=i.css`.material-icons{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"}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}`
86
- /**
87
- * @license
88
- * Copyright 2018 Google LLC
89
- * SPDX-License-Identifier: Apache-2.0
90
- */;let k=class extends O{};
91
- /**
92
- * @license
93
- * Copyright 2018 Google Inc.
94
- *
95
- * Permission is hereby granted, free of charge, to any person obtaining a copy
96
- * of this software and associated documentation files (the "Software"), to deal
97
- * in the Software without restriction, including without limitation the rights
98
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99
- * copies of the Software, and to permit persons to whom the Software is
100
- * furnished to do so, subject to the following conditions:
101
- *
102
- * The above copyright notice and this permission notice shall be included in
103
- * all copies or substantial portions of the Software.
104
- *
105
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
106
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
107
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
108
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
109
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
110
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
111
- * THE SOFTWARE.
112
- */
113
- function R(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}
114
- /**
115
- * @license
116
- * Copyright 2016 Google Inc.
117
- *
118
- * Permission is hereby granted, free of charge, to any person obtaining a copy
119
- * of this software and associated documentation files (the "Software"), to deal
120
- * in the Software without restriction, including without limitation the rights
121
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
122
- * copies of the Software, and to permit persons to whom the Software is
123
- * furnished to do so, subject to the following conditions:
124
- *
125
- * The above copyright notice and this permission notice shall be included in
126
- * all copies or substantial portions of the Software.
127
- *
128
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
129
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
130
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
131
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
132
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
133
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
134
- * THE SOFTWARE.
135
- */k.styles=[E],k=f([r.customElement("mwc-tab-indicator")],k);var I={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},z={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},L={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
136
- /**
137
- * @license
138
- * Copyright 2016 Google Inc.
139
- *
140
- * Permission is hereby granted, free of charge, to any person obtaining a copy
141
- * of this software and associated documentation files (the "Software"), to deal
142
- * in the Software without restriction, including without limitation the rights
143
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
144
- * copies of the Software, and to permit persons to whom the Software is
145
- * furnished to do so, subject to the following conditions:
146
- *
147
- * The above copyright notice and this permission notice shall be included in
148
- * all copies or substantial portions of the Software.
149
- *
150
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
151
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
152
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
153
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
154
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
155
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
156
- * THE SOFTWARE.
157
- */
158
- var D=["touchstart","pointerdown","mousedown","keydown"],M=["touchend","pointerup","mouseup","contextmenu"],$=[],j=function(t){function e(i){var r=t.call(this,u(u({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return p(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return I},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return z},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return L},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,a=r.ROOT,c=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(a),t.adapter.isUnbounded()&&(t.adapter.addClass(c),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,a=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(a),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=h(D),a=r.next();!a.done;a=r.next()){var c=a.value;this.adapter.registerInteractionHandler(c,this.activateHandler)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=h(M),a=r.next();!a.done;a=r.next()){var c=a.value;this.adapter.registerDocumentInteractionHandler(c,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=h(D),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=h(M),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&$.length>0&&$.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&($.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){$=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,a=i.VAR_FG_TRANSLATE_END,c=e.cssClasses,n=c.FG_DEACTIVATION,o=c.FG_ACTIVATION,s=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var d="",l="";if(!this.adapter.isUnbounded()){var p=this.getFgTranslationCoordinates(),u=p.startPoint,f=p.endPoint;d=u.x+"px, "+u.y+"px",l=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(r,d),this.adapter.updateCssVariable(a,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(n),this.adapter.computeBoundingRect(),this.adapter.addClass(o),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),s)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,a,c=e.x,n=e.y,o=c+i.left,s=n+i.top;if("touchstart"===t.type){var d=t;r=d.changedTouches[0].pageX-o,a=d.changedTouches[0].pageY-s}else{var l=t;r=l.pageX-o,a=l.pageY-s}return{x:r,y:a}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,a=r.hasDeactivationUXRun,c=r.isActivated;(a||!c)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),L.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=u({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,a=t.VAR_TOP,c=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(c,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(a,this.unboundedCoords.top+"px"))},e}(y);
159
- /**
160
- * @license
161
- * Copyright 2018 Google LLC
162
- * SPDX-License-Identifier: Apache-2.0
163
- */
164
- class P extends g{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=j}get isActive(){return R(this.parentElement||this,":active")}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),r={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":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 i.html`
165
- <div class="mdc-ripple-surface mdc-ripple-upgraded ${c.classMap(r)}"
166
- style="${n.styleMap({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}f([r.query(".mdc-ripple-surface")],P.prototype,"mdcRoot",void 0),f([r.property({type:Boolean})],P.prototype,"primary",void 0),f([r.property({type:Boolean})],P.prototype,"accent",void 0),f([r.property({type:Boolean})],P.prototype,"unbounded",void 0),f([r.property({type:Boolean})],P.prototype,"disabled",void 0),f([r.property({type:Boolean})],P.prototype,"activated",void 0),f([r.property({type:Boolean})],P.prototype,"selected",void 0),f([r.property({type:Boolean})],P.prototype,"internalUseStateLayerCustomProperties",void 0),f([r.state()],P.prototype,"hovering",void 0),f([r.state()],P.prototype,"bgFocused",void 0),f([r.state()],P.prototype,"fgActivation",void 0),f([r.state()],P.prototype,"fgDeactivation",void 0),f([r.state()],P.prototype,"fgScale",void 0),f([r.state()],P.prototype,"fgSize",void 0),f([r.state()],P.prototype,"translateStart",void 0),f([r.state()],P.prototype,"translateEnd",void 0),f([r.state()],P.prototype,"leftPos",void 0),f([r.state()],P.prototype,"topPos",void 0);
167
- /**
168
- * @license
169
- * Copyright 2021 Google LLC
170
- * SPDX-LIcense-Identifier: Apache-2.0
171
- */
172
- const B=i.css`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
173
- /**
174
- * @license
175
- * Copyright 2018 Google LLC
176
- * SPDX-License-Identifier: Apache-2.0
177
- */;let F=class extends P{};F.styles=[B],F=f([r.customElement("mwc-ripple")],F);
49
+ `}updated(t){super.updated(t),this.dispatchEvent(new Event("updated"))}}g.elementDefinitions={},u([s.property({type:String})],g.prototype,"label",void 0),u([s.property({type:String})],g.prototype,"icon",void 0),u([s.property()],g.prototype,"iconVariant",void 0),u([s.property({type:Boolean})],g.prototype,"active",void 0),u([s.property({type:Boolean})],g.prototype,"disabled",void 0),u([s.property({type:String,reflect:!0})],g.prototype,"id",void 0),u([s.property({type:String,reflect:!0,attribute:"aria-labelledby"})],g.prototype,"ariaLabelledBy",void 0);var v=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const b=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),m=b,$=e.FtCssVariableFactory.extend("--ft-ripple-background-color",b),w=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),k=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),z=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),j=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),N=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),S=N,O=e.FtCssVariableFactory.extend("--ft-ripple-background-color",N),A=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),I=A,_=e.FtCssVariableFactory.extend("--ft-ripple-background-color",A);class M extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:s,y:o}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=s?s-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
50
+ <style>
51
+ .ft-ripple .ft-ripple--effect,
52
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
53
+ width: ${this.rippleSize}px;
54
+ height: ${this.rippleSize}px;
55
+ }
56
+
57
+ .ft-ripple .ft-ripple--effect {
58
+ left: ${this.originX}px;
59
+ top: ${this.originY}px;
60
+ }
61
+ </style>
62
+ <div class="${n.classMap(t)}">
63
+ <div class="ft-ripple--background"></div>
64
+ <div class="ft-ripple--effect"></div>
65
+ </div>
66
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),s=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",s),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let s,o;return null!=e.x?({x:s,y:o}=e):null!=i.touches&&(s=i.touches[0].clientX,o=i.touches[0].clientY),{x:s,y:o}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
178
67
  /**
179
68
  * @license
180
- * Copyright 2018 Google LLC
181
- * SPDX-License-Identifier: Apache-2.0
69
+ * Copyright 2017 Google LLC
70
+ * SPDX-License-Identifier: BSD-3-Clause
182
71
  */
183
- const N=t=>(e,i)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const t=e.constructor._observers;e.constructor._observers=new Map,t.forEach(((t,i)=>e.constructor._observers.set(i,t)))}}else{e.constructor._observers=new Map;const t=e.updated;e.updated=function(e){t.call(this,e),e.forEach(((t,e)=>{const i=this.constructor._observers.get(e);void 0!==i&&i.call(this,this[e],t)}))}}e.constructor._observers.set(i,t)}
72
+ var T;M.elementDefinitions={},M.styles=i.css`
73
+ :host {
74
+ display: contents;
75
+ }
76
+
77
+ .ft-ripple {
78
+ position: absolute;
79
+ inset: 0;
80
+ pointer-events: none;
81
+ }
82
+
83
+ .ft-ripple:not(.ft-ripple--unbounded) {
84
+ overflow: hidden;
85
+ }
86
+
87
+ .ft-ripple .ft-ripple--background,
88
+ .ft-ripple .ft-ripple--effect {
89
+ position: absolute;
90
+ opacity: 0;
91
+ }
92
+
93
+ .ft-ripple .ft-ripple--background {
94
+ background-color: ${$};
95
+ }
96
+
97
+ .ft-ripple .ft-ripple--effect {
98
+ background-color: ${m};
99
+ }
100
+
101
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
102
+ background-color: ${_};
103
+ }
104
+
105
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
106
+ background-color: ${I};
107
+ }
108
+
109
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
110
+ background-color: ${O};
111
+ }
112
+
113
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
114
+ background-color: ${S};
115
+ }
116
+
117
+ .ft-ripple .ft-ripple--background {
118
+ top: 0;
119
+ left: 0;
120
+ height: 100%;
121
+ width: 100%;
122
+ transition: opacity 75ms linear;
123
+ }
124
+
125
+ .ft-ripple .ft-ripple--effect,
126
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
127
+ border-radius: 50%;
128
+ }
129
+
130
+ .ft-ripple .ft-ripple--effect {
131
+ transform: translate(-50%, -50%) scale(0.15);
132
+ transition: transform 300ms ease, opacity 75ms linear;
133
+ }
134
+
135
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
136
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
137
+ left: 50%;
138
+ top: 50%;
139
+ }
140
+
141
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
142
+ transform: translate(-50%, -50%);
143
+ }
144
+
145
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
146
+ opacity: ${k};
147
+ }
148
+
149
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
150
+ opacity: ${j};
151
+ }
152
+
153
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
154
+ opacity: ${z};
155
+ }
156
+
157
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
158
+ opacity: ${w};
159
+ transform: translate(-50%, -50%) scale(1);
160
+ }
161
+ `,v([s.property({type:Boolean})],M.prototype,"primary",void 0),v([s.property({type:Boolean})],M.prototype,"secondary",void 0),v([s.property({type:Boolean})],M.prototype,"unbounded",void 0),v([s.property({type:Boolean})],M.prototype,"activated",void 0),v([s.property({type:Boolean})],M.prototype,"selected",void 0),v([s.property({type:Boolean})],M.prototype,"disabled",void 0),v([s.state()],M.prototype,"hovered",void 0),v([s.state()],M.prototype,"focused",void 0),v([s.state()],M.prototype,"pressed",void 0),v([s.state()],M.prototype,"rippling",void 0),v([s.state()],M.prototype,"rippleSize",void 0),v([s.state()],M.prototype,"originX",void 0),v([s.state()],M.prototype,"originY",void 0),v([s.query(".ft-ripple")],M.prototype,"ripple",void 0),v([s.query(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(M);const C=globalThis.trustedTypes,B=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,U="?"+E,D=`<${U}>`,R=document,W=(t="")=>R.createComment(t),G=t=>null===t||"object"!=typeof t&&"function"!=typeof t,K=Array.isArray,Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,q=/>/g,F=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,L=/"/g,V=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Q=new WeakMap,tt=R.createTreeWalker(R,129,null,!1),et=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",n=Z;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===Z?"!--"===a[1]?n=P:void 0!==a[1]?n=q:void 0!==a[2]?(V.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=F):void 0!==a[3]&&(n=F):n===F?">"===a[0]?(n=null!=o?o:Z,p=-1):void 0===a[1]?p=-2:(p=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?F:'"'===a[3]?L:H):n===L||n===H?n=F:n===P||n===q?n=Z:(n=F,o=void 0);const f=n===F&&t[e+1].startsWith("/>")?" ":"";r+=n===Z?i+D:p>=0?(s.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+E+f):i+E+(-2===p?(s.push(void 0),e):f)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==B?B.createHTML(l):l,s]};class it{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[a,p]=et(t,e);if(this.el=it.createElement(a,i),tt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=tt.nextNode())&&l.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=p[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?pt:"@"===e[1]?ht:nt})}else l.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(V.test(s.tagName)){const t=s.textContent.split(E),e=t.length-1;if(e>0){s.textContent=C?C.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],W()),tt.nextNode(),l.push({type:2,index:++o});s.append(t[e],W())}}}else if(8===s.nodeType)if(s.data===U)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(E,t+1));)l.push({type:7,index:o}),t+=E.length-1}o++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function st(t,e,i=t,s){var o,r,n,l;if(e===Y)return e;let a=void 0!==s?null===(o=i._$Cl)||void 0===o?void 0:o[s]:i._$Cu;const p=G(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,s)),void 0!==s?(null!==(n=(l=i)._$Cl)&&void 0!==n?n:l._$Cl=[])[s]=a:i._$Cu=a),void 0!==a&&(e=st(t,a._$AS(t,e.values),a,s)),e}class ot{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:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);tt.currentNode=o;let r=tt.nextNode(),n=0,l=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new rt(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new ft(r,this,t)),this.v.push(e),a=s[++l]}n!==(null==a?void 0:a.index)&&(r=tt.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 rt{constructor(t,e,i,s){var o;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$C_=null===(o=null==s?void 0:s.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._$C_}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=st(this,t,e),G(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==Y&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>K(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==J&&G(this._$AH)?this._$AA.nextSibling.data=t:this.k(R.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=it.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new ot(o,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new it(t)),e}S(t){K(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new rt(this.j(W()),this.j(W()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$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._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class nt{constructor(t,e,i,s,o){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,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,s){const o=this.strings;let r=!1;if(void 0===o)t=st(this,t,e,0),r=!G(t)||t!==this._$AH&&t!==Y,r&&(this._$AH=t);else{const s=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=st(this,s[i+n],e,n),l===Y&&(l=this._$AH[n]),r||(r=!G(l)||l!==this._$AH[n]),l===J?t=J:t!==J&&(t+=(null!=l?l:"")+o[n+1]),this._$AH[n]=l}r&&!s&&this.P(t)}P(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends nt{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===J?void 0:t}}const at=C?C.emptyScript:"";class pt extends nt{constructor(){super(...arguments),this.type=4}P(t){t&&t!==J?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends nt{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=st(this,t,e,0))&&void 0!==i?i:J)===Y)return;const s=this._$AH,o=t===J&&s!==J||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==J&&(s===J||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ft{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){st(this,t)}}const ct=window.litHtmlPolyfillSupport;null==ct||ct(it,rt),(null!==(T=globalThis.litHtmlVersions)&&void 0!==T?T:globalThis.litHtmlVersions=[]).push("2.2.7");
184
162
  /**
185
163
  * @license
186
164
  * Copyright 2020 Google LLC
187
- * SPDX-License-Identifier: Apache-2.0
188
- */;class H{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()}))}}}
189
- /**
190
- * @license
191
- * Copyright 2018 Google Inc.
192
- *
193
- * Permission is hereby granted, free of charge, to any person obtaining a copy
194
- * of this software and associated documentation files (the "Software"), to deal
195
- * in the Software without restriction, including without limitation the rights
196
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
197
- * copies of the Software, and to permit persons to whom the Software is
198
- * furnished to do so, subject to the following conditions:
199
- *
200
- * The above copyright notice and this permission notice shall be included in
201
- * all copies or substantial portions of the Software.
202
- *
203
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
204
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
205
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
206
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
207
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
208
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
209
- * THE SOFTWARE.
210
- */var V={ACTIVE:"mdc-tab--active"},W={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"},G=function(t){function e(i){var r=t.call(this,u(u({},e.defaultAdapter),i))||this;return r.focusOnActivate=!0,r}return p(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return V},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return W},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),e.prototype.handleClick=function(){this.adapter.notifyInteracted()},e.prototype.isActive=function(){return this.adapter.hasClass(V.ACTIVE)},e.prototype.setFocusOnActivate=function(t){this.focusOnActivate=t},e.prototype.activate=function(t){this.adapter.addClass(V.ACTIVE),this.adapter.setAttr(W.ARIA_SELECTED,"true"),this.adapter.setAttr(W.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate&&this.adapter.focus()},e.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(V.ACTIVE),this.adapter.setAttr(W.ARIA_SELECTED,"false"),this.adapter.setAttr(W.TABINDEX,"-1"),this.adapter.deactivateIndicator())},e.prototype.computeDimensions=function(){var t=this.adapter.getOffsetWidth(),e=this.adapter.getOffsetLeft(),i=this.adapter.getContentOffsetWidth(),r=this.adapter.getContentOffsetLeft();return{contentLeft:e+r,contentRight:e+r+i,rootLeft:e,rootRight:e+t}},e}(y);
211
- /**
212
- * @license
213
- * Copyright 2018 Google LLC
214
- * SPDX-License-Identifier: Apache-2.0
215
- */
216
- let U=0;class K extends g{constructor(){super(...arguments),this.mdcFoundationClass=G,this.label="",this.icon="",this.hasImageIcon=!1,this.isFadingIndicator=!1,this.minWidth=!1,this.isMinWidthIndicator=!1,this.indicatorIcon="",this.stacked=!1,this.focusOnActivate=!0,this._active=!1,this.initFocus=!1,this.shouldRenderRipple=!1,this.useStateLayerCustomProperties=!1,this.rippleElement=null,this.rippleHandlers=new H((()=>(this.shouldRenderRipple=!0,this.ripple.then((t=>this.rippleElement=t)),this.ripple)))}get active(){return this._active}connectedCallback(){this.dir=document.dir,super.connectedCallback()}firstUpdated(){super.firstUpdated(),this.id=this.id||"mdc-tab-"+ ++U}render(){const t={"mdc-tab--min-width":this.minWidth,"mdc-tab--stacked":this.stacked};let e=i.html``;(this.hasImageIcon||this.icon)&&(e=i.html`
217
- <span class="mdc-tab__icon material-icons"><slot name="icon">${this.icon}</slot></span>`);let r=i.html``;return this.label&&(r=i.html`
218
- <span class="mdc-tab__text-label">${this.label}</span>`),i.html`
219
- <button
220
- @click="${this.handleClick}"
221
- class="mdc-tab ${c.classMap(t)}"
222
- role="tab"
223
- aria-selected="false"
224
- tabindex="-1"
225
- @focus="${this.focus}"
226
- @blur="${this.handleBlur}"
227
- @mousedown="${this.handleRippleMouseDown}"
228
- @mouseenter="${this.handleRippleMouseEnter}"
229
- @mouseleave="${this.handleRippleMouseLeave}"
230
- @touchstart="${this.handleRippleTouchStart}"
231
- @touchend="${this.handleRippleDeactivate}"
232
- @touchcancel="${this.handleRippleDeactivate}">
233
- <span class="mdc-tab__content">
234
- ${e}
235
- ${r}
236
- ${this.isMinWidthIndicator?this.renderIndicator():""}
237
- </span>
238
- ${this.isMinWidthIndicator?"":this.renderIndicator()}
239
- ${this.renderRipple()}
240
- </button>`}renderIndicator(){return i.html`<mwc-tab-indicator
241
- .icon="${this.indicatorIcon}"
242
- .fade="${this.isFadingIndicator}"></mwc-tab-indicator>`}renderRipple(){return this.shouldRenderRipple?i.html`<mwc-ripple primary
243
- .internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"></mwc-ripple>`:""}createAdapter(){return Object.assign(Object.assign({},m(this.mdcRoot)),{setAttr:(t,e)=>this.mdcRoot.setAttribute(t,e),activateIndicator:async t=>{await this.tabIndicator.updateComplete,this.tabIndicator.activate(t)},deactivateIndicator:async()=>{await this.tabIndicator.updateComplete,this.tabIndicator.deactivate()},notifyInteracted:()=>this.dispatchEvent(new CustomEvent(G.strings.INTERACTED_EVENT,{detail:{tabId:this.id},bubbles:!0,composed:!0,cancelable:!0})),getOffsetLeft:()=>this.offsetLeft,getOffsetWidth:()=>this.mdcRoot.offsetWidth,getContentOffsetLeft:()=>this._contentElement.offsetLeft,getContentOffsetWidth:()=>this._contentElement.offsetWidth,focus:()=>{this.initFocus?this.initFocus=!1:this.mdcRoot.focus()}})}activate(t){t||(this.initFocus=!0),this.mdcFoundation?(this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())):this.updateComplete.then((()=>{this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())}))}deactivate(){this.mdcFoundation.deactivate(),this.setActive(this.mdcFoundation.isActive())}setActive(t){const e=this.active;e!==t&&(this._active=t,this.requestUpdate("active",e))}computeDimensions(){return this.mdcFoundation.computeDimensions()}computeIndicatorClientRect(){return this.tabIndicator.computeContentClientRect()}focus(){this.mdcRoot.focus(),this.handleFocus()}handleClick(){this.handleFocus(),this.mdcFoundation.handleClick()}handleFocus(){this.handleRippleFocus()}handleBlur(){this.handleRippleBlur()}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}get isRippleActive(){var t;return(null===(t=this.rippleElement)||void 0===t?void 0:t.isActive)||!1}}K.shadowRootOptions={mode:"open",delegatesFocus:!0},f([r.query(".mdc-tab")],K.prototype,"mdcRoot",void 0),f([r.query("mwc-tab-indicator")],K.prototype,"tabIndicator",void 0),f([r.property()],K.prototype,"label",void 0),f([r.property()],K.prototype,"icon",void 0),f([r.property({type:Boolean})],K.prototype,"hasImageIcon",void 0),f([r.property({type:Boolean})],K.prototype,"isFadingIndicator",void 0),f([r.property({type:Boolean})],K.prototype,"minWidth",void 0),f([r.property({type:Boolean})],K.prototype,"isMinWidthIndicator",void 0),f([r.property({type:Boolean,reflect:!0,attribute:"active"})],K.prototype,"active",null),f([r.property()],K.prototype,"indicatorIcon",void 0),f([r.property({type:Boolean})],K.prototype,"stacked",void 0),f([N((async function(t){await this.updateComplete,this.mdcFoundation.setFocusOnActivate(t)})),r.property({type:Boolean})],K.prototype,"focusOnActivate",void 0),f([r.query(".mdc-tab__content")],K.prototype,"_contentElement",void 0),f([r.state()],K.prototype,"shouldRenderRipple",void 0),f([r.state()],K.prototype,"useStateLayerCustomProperties",void 0),f([r.queryAsync("mwc-ripple")],K.prototype,"ripple",void 0),f([r.eventOptions({passive:!0})],K.prototype,"handleRippleTouchStart",null);
244
- /**
245
- * @license
246
- * Copyright 2021 Google LLC
247
- * SPDX-LIcense-Identifier: Apache-2.0
248
- */
249
- const Y=i.css`.material-icons{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"}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase);position:relative}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab__content{position:relative}.mdc-tab__icon{width:24px;height:24px;font-size:24px}.mdc-tab--active .mdc-tab__text-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tab--active .mdc-tab__icon{color:#6200ee;color:var(--mdc-theme-primary, #6200ee);fill:currentColor}.mdc-tab{background:none}.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}@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}}.mdc-tab{--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)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::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-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform,opacity}:host{outline:none;flex:1 0 auto;display:flex;justify-content:center;-webkit-tap-highlight-color:transparent}.mdc-tab{height:var(--mdc-tab-height, 48px);margin-left:0;margin-right:0;padding-right:var(--mdc-tab-horizontal-padding, 24px);padding-left:var(--mdc-tab-horizontal-padding, 24px)}.mdc-tab--stacked{height:var(--mdc-tab-stacked-height, 72px)}.mdc-tab::-moz-focus-inner{border:0}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mdc-tab-text-label-color-default, rgba(0, 0, 0, 0.6))}.mdc-tab:not(.mdc-tab--active) .mdc-tab__icon{color:var(--mdc-tab-color-default, rgba(0, 0, 0, 0.54))}`
250
- /**
251
- * @license
252
- * Copyright 2018 Google LLC
253
- * SPDX-License-Identifier: Apache-2.0
254
- */;let q=class extends K{};q.styles=[Y],q=f([r.customElement("mwc-tab")],q);
255
- /**
256
- * @license
257
- * Copyright 2018 Google Inc.
258
- *
259
- * Permission is hereby granted, free of charge, to any person obtaining a copy
260
- * of this software and associated documentation files (the "Software"), to deal
261
- * in the Software without restriction, including without limitation the rights
262
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
263
- * copies of the Software, and to permit persons to whom the Software is
264
- * furnished to do so, subject to the following conditions:
265
- *
266
- * The above copyright notice and this permission notice shall be included in
267
- * all copies or substantial portions of the Software.
268
- *
269
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
270
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
271
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
272
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
273
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
274
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
275
- * THE SOFTWARE.
276
- */
277
- var X={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},Z={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},J=function(t){this.adapter=t},Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getScrollPositionRTL=function(){var t=this.adapter.getScrollAreaScrollLeft(),e=this.calculateScrollEdges().right;return Math.round(e-t)},e.prototype.scrollToRTL=function(t){var e=this.calculateScrollEdges(),i=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(e.right-t);return{finalScrollPosition:r,scrollDelta:r-i}},e.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),i=this.clampScrollValue(e-t);return{finalScrollPosition:i,scrollDelta:i-e}},e.prototype.getAnimatingScrollPosition=function(t){return t},e.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},e.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.left,t),e.right)},e}(J),tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getScrollPositionRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft();return Math.round(t-e)},e.prototype.scrollToRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),i=this.clampScrollValue(-t);return{finalScrollPosition:i,scrollDelta:i-e}},e.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),i=this.clampScrollValue(e-t);return{finalScrollPosition:i,scrollDelta:i-e}},e.prototype.getAnimatingScrollPosition=function(t,e){return t-e},e.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-t,right:0}},e.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.max(Math.min(e.right,t),e.left)},e}(J),et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getScrollPositionRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft();return Math.round(e-t)},e.prototype.scrollToRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),i=this.clampScrollValue(t);return{finalScrollPosition:i,scrollDelta:e-i}},e.prototype.incrementScrollRTL=function(t){var e=this.adapter.getScrollAreaScrollLeft(),i=this.clampScrollValue(e+t);return{finalScrollPosition:i,scrollDelta:e-i}},e.prototype.getAnimatingScrollPosition=function(t,e){return t+e},e.prototype.calculateScrollEdges=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},e.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.right,t),e.left)},e}(J),it=function(t){function e(i){var r=t.call(this,u(u({},e.defaultAdapter),i))||this;return r.isAnimating=!1,r}return p(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return X},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Z},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-t+"px"),this.adapter.addScrollAreaClass(e.cssClasses.SCROLL_AREA_SCROLL)},e.prototype.getScrollPosition=function(){if(this.isRTL())return this.computeCurrentScrollPositionRTL();var t=this.calculateCurrentTranslateX();return this.adapter.getScrollAreaScrollLeft()-t},e.prototype.handleInteraction=function(){this.isAnimating&&this.stopScrollAnimation()},e.prototype.handleTransitionEnd=function(t){var i=t.target;this.isAnimating&&this.adapter.eventTargetMatchesSelector(i,e.strings.CONTENT_SELECTOR)&&(this.isAnimating=!1,this.adapter.removeClass(e.cssClasses.ANIMATING))},e.prototype.incrementScroll=function(t){0!==t&&this.animate(this.getIncrementScrollOperation(t))},e.prototype.incrementScrollImmediate=function(t){if(0!==t){var e=this.getIncrementScrollOperation(t);0!==e.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(e.finalScrollPosition))}},e.prototype.scrollTo=function(t){this.isRTL()?this.scrollToImplRTL(t):this.scrollToImpl(t)},e.prototype.getRTLScroller=function(){return this.rtlScrollerInstance||(this.rtlScrollerInstance=this.rtlScrollerFactory()),this.rtlScrollerInstance},e.prototype.calculateCurrentTranslateX=function(){var t=this.adapter.getScrollContentStyleValue("transform");if("none"===t)return 0;var e=/\((.+?)\)/.exec(t);if(!e)return 0;var i=function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,a,c=i.call(t),n=[];try{for(;(void 0===e||e-- >0)&&!(r=c.next()).done;)n.push(r.value)}catch(t){a={error:t}}finally{try{r&&!r.done&&(i=c.return)&&i.call(c)}finally{if(a)throw a.error}}return n}(e[1].split(","),6);i[0],i[1],i[2],i[3];var r=i[4];return i[5],parseFloat(r)},e.prototype.clampScrollValue=function(t){var e=this.calculateScrollEdges();return Math.min(Math.max(e.left,t),e.right)},e.prototype.computeCurrentScrollPositionRTL=function(){var t=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(t)},e.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},e.prototype.scrollToImpl=function(t){var e=this.getScrollPosition(),i=this.clampScrollValue(t),r=i-e;this.animate({finalScrollPosition:i,scrollDelta:r})},e.prototype.scrollToImplRTL=function(t){var e=this.getRTLScroller().scrollToRTL(t);this.animate(e)},e.prototype.getIncrementScrollOperation=function(t){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(t);var e=this.getScrollPosition(),i=t+e,r=this.clampScrollValue(i);return{finalScrollPosition:r,scrollDelta:r-e}},e.prototype.animate=function(t){var i=this;0!==t.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame((function(){i.adapter.addClass(e.cssClasses.ANIMATING),i.adapter.setScrollContentStyleProperty("transform","none")})),this.isAnimating=!0)},e.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var t=this.getAnimatingScrollPosition();this.adapter.removeClass(e.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(t)},e.prototype.getAnimatingScrollPosition=function(){var t=this.calculateCurrentTranslateX(),e=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(e,t):e-t},e.prototype.rtlScrollerFactory=function(){var t=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(t-1);var e=this.adapter.getScrollAreaScrollLeft();if(e<0)return this.adapter.setScrollAreaScrollLeft(t),new tt(this.adapter);var i=this.adapter.computeScrollAreaClientRect(),r=this.adapter.computeScrollContentClientRect(),a=Math.round(r.right-i.right);return this.adapter.setScrollAreaScrollLeft(t),a===e?new et(this.adapter):new Q(this.adapter)},e.prototype.isRTL=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},e}(y);
278
- /**
279
- * @license
280
- * Copyright 2018 Google LLC
281
- * SPDX-License-Identifier: Apache-2.0
282
- */
283
- class rt extends g{constructor(){super(...arguments),this.mdcFoundationClass=it,this._scrollbarHeight=-1}_handleInteraction(){this.mdcFoundation.handleInteraction()}_handleTransitionEnd(t){this.mdcFoundation.handleTransitionEnd(t)}render(){return i.html`
284
- <div class="mdc-tab-scroller">
285
- <div class="mdc-tab-scroller__scroll-area"
286
- @wheel="${this._handleInteraction}"
287
- @touchstart="${this._handleInteraction}"
288
- @pointerdown="${this._handleInteraction}"
289
- @mousedown="${this._handleInteraction}"
290
- @keydown="${this._handleInteraction}"
291
- @transitionend="${this._handleTransitionEnd}">
292
- <div class="mdc-tab-scroller__scroll-content"><slot></slot></div>
293
- </div>
294
- </div>
295
- `}createAdapter(){return Object.assign(Object.assign({},m(this.mdcRoot)),{eventTargetMatchesSelector:(t,e)=>R(t,e),addScrollAreaClass:t=>this.scrollAreaElement.classList.add(t),setScrollAreaStyleProperty:(t,e)=>this.scrollAreaElement.style.setProperty(t,e),setScrollContentStyleProperty:(t,e)=>this.scrollContentElement.style.setProperty(t,e),getScrollContentStyleValue:t=>window.getComputedStyle(this.scrollContentElement).getPropertyValue(t),setScrollAreaScrollLeft:t=>this.scrollAreaElement.scrollLeft=t,getScrollAreaScrollLeft:()=>this.scrollAreaElement.scrollLeft,getScrollContentOffsetWidth:()=>this.scrollContentElement.offsetWidth,getScrollAreaOffsetWidth:()=>this.scrollAreaElement.offsetWidth,computeScrollAreaClientRect:()=>this.scrollAreaElement.getBoundingClientRect(),computeScrollContentClientRect:()=>this.scrollContentElement.getBoundingClientRect(),computeHorizontalScrollbarHeight:()=>(-1===this._scrollbarHeight&&(this.scrollAreaElement.style.overflowX="scroll",this._scrollbarHeight=this.scrollAreaElement.offsetHeight-this.scrollAreaElement.clientHeight,this.scrollAreaElement.style.overflowX=""),this._scrollbarHeight)})}getScrollPosition(){return this.mdcFoundation.getScrollPosition()}getScrollContentWidth(){return this.scrollContentElement.offsetWidth}incrementScrollPosition(t){this.mdcFoundation.incrementScroll(t)}scrollToPosition(t){this.mdcFoundation.scrollTo(t)}}f([r.query(".mdc-tab-scroller")],rt.prototype,"mdcRoot",void 0),f([r.query(".mdc-tab-scroller__scroll-area")],rt.prototype,"scrollAreaElement",void 0),f([r.query(".mdc-tab-scroller__scroll-content")],rt.prototype,"scrollContentElement",void 0),f([r.eventOptions({passive:!0})],rt.prototype,"_handleInteraction",null);
296
- /**
297
- * @license
298
- * Copyright 2021 Google LLC
299
- * SPDX-LIcense-Identifier: Apache-2.0
300
- */
301
- const at=i.css`.mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:flex;flex:1 0 auto;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}:host{display:flex}.mdc-tab-scroller{flex:1}`
302
- /**
303
- * @license
304
- * Copyright 2018 Google LLC
305
- * SPDX-License-Identifier: Apache-2.0
306
- */;let ct=class extends rt{};ct.styles=[at],ct=f([r.customElement("mwc-tab-scroller")],ct);
307
- /**
308
- * @license
309
- * Copyright 2018 Google Inc.
310
- *
311
- * Permission is hereby granted, free of charge, to any person obtaining a copy
312
- * of this software and associated documentation files (the "Software"), to deal
313
- * in the Software without restriction, including without limitation the rights
314
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
315
- * copies of the Software, and to permit persons to whom the Software is
316
- * furnished to do so, subject to the following conditions:
317
- *
318
- * The above copyright notice and this permission notice shall be included in
319
- * all copies or substantial portions of the Software.
320
- *
321
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
322
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
323
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
324
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
325
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
326
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
327
- * THE SOFTWARE.
328
- */
329
- var nt={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},ot={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},st=new Set;st.add(nt.ARROW_LEFT_KEY),st.add(nt.ARROW_RIGHT_KEY),st.add(nt.END_KEY),st.add(nt.HOME_KEY),st.add(nt.ENTER_KEY),st.add(nt.SPACE_KEY);var dt=new Map;dt.set(ot.ARROW_LEFT_KEYCODE,nt.ARROW_LEFT_KEY),dt.set(ot.ARROW_RIGHT_KEYCODE,nt.ARROW_RIGHT_KEY),dt.set(ot.END_KEYCODE,nt.END_KEY),dt.set(ot.HOME_KEYCODE,nt.HOME_KEY),dt.set(ot.ENTER_KEYCODE,nt.ENTER_KEY),dt.set(ot.SPACE_KEYCODE,nt.SPACE_KEY);var lt=function(t){function e(i){var r=t.call(this,u(u({},e.defaultAdapter),i))||this;return r.useAutomaticActivation=!1,r}return p(e,t),Object.defineProperty(e,"strings",{get:function(){return nt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ot},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),e.prototype.setUseAutomaticActivation=function(t){this.useAutomaticActivation=t},e.prototype.activateTab=function(t){var e,i=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(t)&&t!==i&&(-1!==i&&(this.adapter.deactivateTabAtIndex(i),e=this.adapter.getTabIndicatorClientRectAtIndex(i)),this.adapter.activateTabAtIndex(t,e),this.scrollIntoView(t),this.adapter.notifyTabActivated(t))},e.prototype.handleKeyDown=function(t){var e=this.getKeyFromEvent(t);if(void 0!==e)if(this.isActivationKey(e)||t.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(e))return;var i=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),e);this.adapter.setActiveTab(i),this.scrollIntoView(i)}else{var r=this.adapter.getFocusedTabIndex();if(this.isActivationKey(e))this.adapter.setActiveTab(r);else{i=this.determineTargetFromKey(r,e);this.adapter.focusTabAtIndex(i),this.scrollIntoView(i)}}},e.prototype.handleTabInteraction=function(t){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(t.detail.tabId))},e.prototype.scrollIntoView=function(t){this.indexIsInRange(t)&&(0!==t?t!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(t):this.scrollIntoViewImpl(t):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},e.prototype.determineTargetFromKey=function(t,e){var i=this.isRTL(),r=this.adapter.getTabListLength()-1,a=t;return e===nt.END_KEY?a=r:e===nt.ARROW_LEFT_KEY&&!i||e===nt.ARROW_RIGHT_KEY&&i?a-=1:e===nt.ARROW_RIGHT_KEY&&!i||e===nt.ARROW_LEFT_KEY&&i?a+=1:a=0,a<0?a=r:a>r&&(a=0),a},e.prototype.calculateScrollIncrement=function(t,e,i,r){var a=this.adapter.getTabDimensionsAtIndex(e),c=a.contentLeft-i-r,n=a.contentRight-i-ot.EXTRA_SCROLL_AMOUNT,o=c+ot.EXTRA_SCROLL_AMOUNT;return e<t?Math.min(n,0):Math.max(o,0)},e.prototype.calculateScrollIncrementRTL=function(t,e,i,r,a){var c=this.adapter.getTabDimensionsAtIndex(e),n=a-c.contentLeft-i,o=a-c.contentRight-i-r+ot.EXTRA_SCROLL_AMOUNT,s=n-ot.EXTRA_SCROLL_AMOUNT;return e>t?Math.max(o,0):Math.min(s,0)},e.prototype.findAdjacentTabIndexClosestToEdge=function(t,e,i,r){var a=e.rootLeft-i,c=e.rootRight-i-r,n=a+c;return a<0||n<0?t-1:c>0||n>0?t+1:-1},e.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(t,e,i,r,a){var c=a-e.rootLeft-r-i,n=a-e.rootRight-i,o=c+n;return c>0||o>0?t+1:n<0||o<0?t-1:-1},e.prototype.getKeyFromEvent=function(t){return st.has(t.key)?t.key:dt.get(t.keyCode)},e.prototype.isActivationKey=function(t){return t===nt.SPACE_KEY||t===nt.ENTER_KEY},e.prototype.indexIsInRange=function(t){return t>=0&&t<this.adapter.getTabListLength()},e.prototype.isRTL=function(){return this.adapter.isRTL()},e.prototype.scrollIntoViewImpl=function(t){var e=this.adapter.getScrollPosition(),i=this.adapter.getOffsetWidth(),r=this.adapter.getTabDimensionsAtIndex(t),a=this.findAdjacentTabIndexClosestToEdge(t,r,e,i);if(this.indexIsInRange(a)){var c=this.calculateScrollIncrement(t,a,e,i);this.adapter.incrementScroll(c)}},e.prototype.scrollIntoViewImplRTL=function(t){var e=this.adapter.getScrollPosition(),i=this.adapter.getOffsetWidth(),r=this.adapter.getTabDimensionsAtIndex(t),a=this.adapter.getScrollContentWidth(),c=this.findAdjacentTabIndexClosestToEdgeRTL(t,r,e,i,a);if(this.indexIsInRange(c)){var n=this.calculateScrollIncrementRTL(t,c,e,i,a);this.adapter.incrementScroll(n)}},e}(y);
330
- /**
331
- * @license
332
- * Copyright 2018 Google LLC
333
- * SPDX-License-Identifier: Apache-2.0
165
+ * SPDX-License-Identifier: BSD-3-Clause
334
166
  */
335
- class pt extends g{constructor(){super(...arguments),this.mdcFoundationClass=lt,this.activeIndex=0,this._previousActiveIndex=-1}_handleTabInteraction(t){this.mdcFoundation.handleTabInteraction(t)}_handleKeydown(t){this.mdcFoundation.handleKeyDown(t)}render(){return i.html`
336
- <div class="mdc-tab-bar" role="tablist"
337
- @MDCTab:interacted="${this._handleTabInteraction}"
338
- @keydown="${this._handleKeydown}">
339
- <mwc-tab-scroller><slot></slot></mwc-tab-scroller>
340
- </div>
341
- `}_getTabs(){return this.tabsSlot.assignedNodes({flatten:!0}).filter((t=>t instanceof K))}_getTab(t){return this._getTabs()[t]}createAdapter(){return{scrollTo:t=>this.scrollerElement.scrollToPosition(t),incrementScroll:t=>this.scrollerElement.incrementScrollPosition(t),getScrollPosition:()=>this.scrollerElement.getScrollPosition(),getScrollContentWidth:()=>this.scrollerElement.getScrollContentWidth(),getOffsetWidth:()=>this.mdcRoot.offsetWidth,isRTL:()=>"rtl"===window.getComputedStyle(this.mdcRoot).getPropertyValue("direction"),setActiveTab:t=>this.mdcFoundation.activateTab(t),activateTabAtIndex:(t,e)=>{const i=this._getTab(t);void 0!==i&&i.activate(e),this._previousActiveIndex=t},deactivateTabAtIndex:t=>{const e=this._getTab(t);void 0!==e&&e.deactivate()},focusTabAtIndex:t=>{const e=this._getTab(t);void 0!==e&&e.focus()},getTabIndicatorClientRectAtIndex:t=>{const e=this._getTab(t);return void 0!==e?e.computeIndicatorClientRect():new DOMRect},getTabDimensionsAtIndex:t=>{const e=this._getTab(t);return void 0!==e?e.computeDimensions():{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:()=>this._previousActiveIndex,getFocusedTabIndex:()=>{const t=this._getTabs(),e=this.getRootNode().activeElement;return t.indexOf(e)},getIndexOfTabById:t=>{const e=this._getTabs();for(let i=0;i<e.length;i++)if(e[i].id===t)return i;return-1},getTabListLength:()=>this._getTabs().length,notifyTabActivated:t=>{this.activeIndex=t,this.dispatchEvent(new CustomEvent(lt.strings.TAB_ACTIVATED_EVENT,{detail:{index:t},bubbles:!0,cancelable:!0}))}}}firstUpdated(){}async getUpdateComplete(){const t=await super.getUpdateComplete();return await this.scrollerElement.updateComplete,void 0===this.mdcFoundation&&this.createFoundation(),t}scrollIndexIntoView(t){this.mdcFoundation.scrollIntoView(t)}}f([r.query(".mdc-tab-bar")],pt.prototype,"mdcRoot",void 0),f([r.query("mwc-tab-scroller")],pt.prototype,"scrollerElement",void 0),f([r.query("slot")],pt.prototype,"tabsSlot",void 0),f([N((async function(){await this.updateComplete,this.activeIndex!==this._previousActiveIndex&&this.mdcFoundation.activateTab(this.activeIndex)})),r.property({type:Number})],pt.prototype,"activeIndex",void 0);
342
- /**
343
- * @license
344
- * Copyright 2021 Google LLC
345
- * SPDX-LIcense-Identifier: Apache-2.0
346
- */
347
- const ut=i.css`.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}:host{display:block}.mdc-tab-bar{flex:1}mwc-tab{--mdc-tab-height: 48px;--mdc-tab-stacked-height: 72px}`
348
- /**
349
- * @license
350
- * Copyright 2018 Google LLC
351
- * SPDX-License-Identifier: Apache-2.0
352
- */;let ft=class extends pt{};ft.styles=[ut],ft=f([r.customElement("mwc-tab-bar")],ft);var ht=function(t,e,i,r){for(var a,c=arguments.length,n=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,o=t.length-1;o>=0;o--)(a=t[o])&&(n=(c<3?a(n):c>3?a(e,i,n):a(e,i))||n);return c>3&&n&&Object.defineProperty(e,i,n),n};const mt={colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurfaceMedium:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system")};class bt extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class vt extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.tabs=[],this.activeIndex=0,this.resizeObserver=new ResizeObserver((()=>this.resize())),this.updateDebouncer=new e.Debouncer(20),this.resizeDebouncer=new e.Debouncer(50)}get currentTab(){return this.tabs[this.activeIndex]}render(){const t={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore};return i.html`
353
- <div class="${c.classMap(t)}">
354
- <mwc-tab-bar @MDCTabBar:activated=${this.onTabChange} .activeIndex=${this.activeIndex}>
355
- ${a.repeat(this.tabs,(t=>i.html`
356
- <mwc-tab label="${this.dense&&t.icon?"":t.label}"
357
- title="${this.dense&&t.icon?t.label:""}"
358
- aria-label="${t.label}"
359
- icon="${t.icon}"
360
- ?stacked=${!this.dense}
361
- ?disabled=${t.disabled}></mwc-tab>
167
+ const dt=Symbol.for(""),yt=t=>{if((null==t?void 0:t.r)===dt)return null==t?void 0:t._$litStatic$},xt=t=>({_$litStatic$:t,r:dt}),ut=new Map,gt=(t=>(e,...i)=>{const s=i.length;let o,r;const n=[],l=[];let a,p=0,h=!1;for(;p<s;){for(a=e[p];p<s&&void 0!==(r=i[p],o=yt(r));)a+=o+e[++p],h=!0;l.push(r),n.push(a),p++}if(p===s&&n.push(e[s]),h){const t=n.join("$$lit$$");void 0===(e=ut.get(t))&&(n.raw=n,ut.set(t,e=n)),i=l}return t(e,...i)})(X);var vt,bt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(vt||(vt={}));const mt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),$t=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),wt={fontFamily:$t,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},kt=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",mt),zt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",wt.fontSize,"20px"),jt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",wt.fontWeight,"normal"),Nt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",wt.letterSpacing,"0.15px"),St=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",wt.lineHeight,"1.2"),Ot=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",wt.textTransform,"inherit"),At=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",mt),It=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",wt.fontSize,"14px"),_t=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",wt.fontWeight,"normal"),Mt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",wt.letterSpacing,"0.105px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",wt.lineHeight,"1.7"),Ct=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",wt.textTransform,"inherit"),Bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",$t),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",wt.fontSize,"16px"),Ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",wt.fontWeight,"600"),Dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",wt.letterSpacing,"0.144px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",wt.lineHeight,"1.5"),Wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",wt.textTransform,"inherit"),Gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",$t),Kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",wt.fontSize,"14px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",wt.fontWeight,"normal"),Pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",wt.letterSpacing,"0.098px"),qt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",wt.lineHeight,"1.7"),Ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",wt.textTransform,"inherit"),Ht=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",$t),Lt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",wt.fontSize,"16px"),Vt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",wt.fontWeight,"normal"),Xt=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",wt.letterSpacing,"0.496px"),Yt=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",wt.lineHeight,"1.5"),Jt=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",wt.textTransform,"inherit"),Qt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",$t),te=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",wt.fontSize,"14px"),ee=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",wt.fontWeight,"normal"),ie=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",wt.letterSpacing,"0.252px"),se=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",wt.lineHeight,"1.4"),oe=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",wt.textTransform,"inherit"),re=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",$t),ne=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",wt.fontSize,"12px"),le=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",wt.fontWeight,"normal"),ae=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",wt.letterSpacing,"0.396px"),pe=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",wt.lineHeight,"1.33"),he=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",wt.textTransform,"inherit"),fe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",$t),ce=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",wt.fontSize,"10px"),de=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",wt.fontWeight,"normal"),ye=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",wt.letterSpacing,"0.33px"),xe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",wt.lineHeight,"1.6"),ue=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",wt.textTransform,"inherit"),ge=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",$t),ve=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",wt.fontSize,"10px"),be=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",wt.fontWeight,"normal"),me=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",wt.letterSpacing,"1.5px"),$e=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",wt.lineHeight,"1.6"),we=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",wt.textTransform,"uppercase"),ke=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",$t),ze=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",wt.fontSize,"14px"),je=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",wt.fontWeight,"600"),Ne=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",wt.letterSpacing,"1.246px"),Se=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",wt.lineHeight,"1.15"),Oe=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",wt.textTransform,"uppercase"),Ae=i.css`
168
+ .ft-typography--title {
169
+ font-family: ${kt};
170
+ font-size: ${zt};
171
+ font-weight: ${jt};
172
+ letter-spacing: ${Nt};
173
+ line-height: ${St};
174
+ text-transform: ${Ot};
175
+ }
176
+ `,Ie=i.css`
177
+ .ft-typography--title-dense {
178
+ font-family: ${At};
179
+ font-size: ${It};
180
+ font-weight: ${_t};
181
+ letter-spacing: ${Mt};
182
+ line-height: ${Tt};
183
+ text-transform: ${Ct};
184
+ }
185
+ `,_e=i.css`
186
+ .ft-typography--subtitle1 {
187
+ font-family: ${Bt};
188
+ font-size: ${Et};
189
+ font-weight: ${Ut};
190
+ letter-spacing: ${Dt};
191
+ line-height: ${Rt};
192
+ text-transform: ${Wt};
193
+ }
194
+ `,Me=i.css`
195
+ .ft-typography--subtitle2 {
196
+ font-family: ${Gt};
197
+ font-size: ${Kt};
198
+ font-weight: ${Zt};
199
+ letter-spacing: ${Pt};
200
+ line-height: ${qt};
201
+ text-transform: ${Ft};
202
+ }
203
+
204
+ `,Te=i.css`
205
+ .ft-typography--body1 {
206
+ font-family: ${Ht};
207
+ font-size: ${Lt};
208
+ font-weight: ${Vt};
209
+ letter-spacing: ${Xt};
210
+ line-height: ${Yt};
211
+ text-transform: ${Jt};
212
+ }
213
+ `,Ce=i.css`
214
+ .ft-typography--body2 {
215
+ font-family: ${Qt};
216
+ font-size: ${te};
217
+ font-weight: ${ee};
218
+ letter-spacing: ${ie};
219
+ line-height: ${se};
220
+ text-transform: ${oe};
221
+ }
222
+ `,Be=i.css`
223
+ .ft-typography--caption {
224
+ font-family: ${re};
225
+ font-size: ${ne};
226
+ font-weight: ${le};
227
+ letter-spacing: ${ae};
228
+ line-height: ${pe};
229
+ text-transform: ${he};
230
+ }
231
+ `,Ee=i.css`
232
+ .ft-typography--breadcrumb {
233
+ font-family: ${fe};
234
+ font-size: ${ce};
235
+ font-weight: ${de};
236
+ letter-spacing: ${ye};
237
+ line-height: ${xe};
238
+ text-transform: ${ue};
239
+ }
240
+ `,Ue=i.css`
241
+ .ft-typography--overline {
242
+ font-family: ${ge};
243
+ font-size: ${ve};
244
+ font-weight: ${be};
245
+ letter-spacing: ${me};
246
+ line-height: ${$e};
247
+ text-transform: ${we};
248
+ }
249
+ `,De=i.css`
250
+ .ft-typography--button {
251
+ font-family: ${ke};
252
+ font-size: ${ze};
253
+ font-weight: ${je};
254
+ letter-spacing: ${Ne};
255
+ line-height: ${Se};
256
+ text-transform: ${Oe};
257
+ }
258
+ `;class Re extends e.FtLitElement{constructor(){super(...arguments),this.variant=vt.body1}render(){return this.element?gt`
259
+ <${xt(this.element)}
260
+ class="ft-typography ft-typography--${this.variant}">
261
+ <slot></slot>
262
+ </${xt(this.element)}>
263
+ `:gt`
264
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
265
+ `}}Re.styles=[Ae,Ie,_e,Me,Te,Ce,Be,Ee,Ue,De,i.css`
266
+ .ft-typography {
267
+ vertical-align: inherit;
268
+ }
269
+ `],bt([s.property()],Re.prototype,"element",void 0),bt([s.property()],Re.prototype,"variant",void 0),e.customElement("ft-typography")(Re);var We,Ge=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};t.FtTabsAlignment=void 0,(We=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",We.right="right",We.justify="justify";const Ke={colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system")};class Ze extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class Pe extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new e.Debouncer(20),this.scheduleRequestUpdate=()=>this.updateDebouncer.run((()=>this.requestUpdate())),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){const t={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense};return i.html`
270
+ <div class="${n.classMap(t)}">
271
+ <div class="ft-tabs--align-${this.alignTabs}" role="tablist">
272
+ ${r.repeat(this.ftTabs,((t,e)=>i.html`
273
+ <button class="${n.classMap({"ft-tabs--tab-with-icon":!!t.icon,"ft-tabs--tab-with-label":!!t.label})}"
274
+ title="${t.label}"
275
+ ?disabled=${t.disabled}
276
+ @click=${()=>this.activeIndex=e}
277
+ role="tab"
278
+ id="${t.ariaLabelledBy}"
279
+ aria-label="${t.label}"
280
+ aria-selected="${t.active?"true":"false"}"
281
+ tabindex="${t.disabled?"-1":"0"}"
282
+ aria-controls="${t.id}"
283
+ >
284
+ <ft-ripple primary ?disabled=${t.disabled}></ft-ripple>
285
+ <ft-icon class="ft-tabs--tab-icon" variant="${t.iconVariant}">
286
+ ${t.icon}
287
+ </ft-icon>
288
+ <ft-typography class="ft-tabs--tab-label" variant="${vt.body2}">
289
+ ${t.label}
290
+ </ft-typography>
291
+ </button>
362
292
  `))}
363
- </mwc-tab-bar>
293
+ <div class="ft-tabs--active-tab-indicator"></div>
294
+ </div>
364
295
  <div class="ft-tabs--content">
365
- <div class="ft-tabs--resizable">
366
- <slot @slotchange=${this.onContentChange}></slot>
367
- </div>
296
+ <slot @slotchange=${this.onContentChange}></slot>
368
297
  </div>
369
298
  </div>
370
- `}onTabChange(t){this.activeIndex=t.detail.index}onContentChange(t){const e=t.composedPath()[0];this.tabs=e.assignedElements().map((t=>t)),this.resizeObserver.disconnect(),this.tabs.forEach((t=>{this.resizeObserver.observe(t),t.addEventListener("updated",(()=>this.updateDebouncer.run((()=>this.requestUpdate()))))}))}updated(t){super.updated(t),(t.has("tabs")||t.has("activeIndex"))&&this.placeTabs(),t.has("activeIndex")&&this.dispatchEvent(new bt(this.activeIndex))}placeTabs(){this.tabs.forEach(((t,e)=>{t.visible=e==this.activeIndex})),this.resize()}resize(){this.resizeDebouncer.run((()=>{this.resizable&&this.currentTab&&(this.resizable.style.height=this.currentTab.scrollHeight+"px")}))}}vt.elementDefinitions={"ft-tab":d,"mwc-tab":q,"mwc-tab-bar":ft},vt.styles=i.css`
299
+ `}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("tabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new Ze(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,e,i,s,o,r,n,l,a,p;this.activeTabIndicator&&(this.activeTabIndicator.style.width=(null!==(e=null===(t=this.activeTab)||void 0===t?void 0:t.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(s=null===(i=this.activeTab)||void 0===i?void 0:i.offsetLeft)&&void 0!==s?s:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(r=null===(o=this.activeTab)||void 0===o?void 0:o.offsetTop)&&void 0!==r?r:0)+"px":this.activeTabIndicator.style.top=(null!==(l=null===(n=this.activeTab)||void 0===n?void 0:n.offsetTop)&&void 0!==l?l:0)+(null!==(p=null===(a=this.activeTab)||void 0===a?void 0:a.clientHeight)&&void 0!==p?p:0)-this.activeTabIndicator.clientHeight+"px")}updateTabs(){this.ftTabs.forEach(((t,e)=>{t.active=e==this.activeIndex}))}}Pe.elementDefinitions={"ft-tab":g,"ft-ripple":M,"ft-typography":Re,"ft-icon":x},Pe.styles=i.css`
371
300
  .ft-tabs {
372
301
  display: flex;
373
302
  flex-direction: column;
374
- background-color: ${mt.colorSurface};
303
+ background-color: ${Ke.colorSurface};
375
304
  height: 100%;
376
305
  }
377
306
 
@@ -379,28 +308,80 @@ const ut=i.css`.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{he
379
308
  flex-direction: column-reverse;
380
309
  }
381
310
 
382
- mwc-tab-bar {
383
- display: block;
311
+ [role="tablist"] {
384
312
  flex-shrink: 0;
385
313
  flex-grow: 0;
386
- --mdc-theme-primary: ${mt.colorPrimary};
387
- --mdc-tab-color-default: ${mt.colorOnSurfaceMedium};
314
+ display: flex;
315
+ position: relative;
316
+ flex-wrap: wrap;
388
317
  }
389
318
 
390
- .ft-tabs--content {
391
- flex-shrink: 1;
392
- flex-grow: 1;
393
- overflow: auto;
319
+ .ft-tabs--align-right {
320
+ justify-content: flex-end;
321
+ }
322
+
323
+ .ft-tabs--align-justify {
324
+ justify-content: space-evenly;
394
325
  }
395
326
 
396
- .ft-tabs--resizable {
327
+ [role='tab'] {
397
328
  position: relative;
329
+ display: flex;
398
330
  overflow: hidden;
331
+ flex-direction: column;
332
+ align-items: center;
333
+ justify-content: center;
334
+ padding: 8px 16px;
335
+ background: none;
336
+ box-shadow: 0px 0px 0px transparent;
337
+ border: 0px solid transparent;
338
+ text-shadow: 0px 0px 0px transparent;
339
+ cursor: pointer;
340
+ outline: none;
341
+ font-size: 16px;
342
+ line-height: 1;
343
+ color: ${Ke.colorOnSurfaceMedium};
344
+ }
345
+
346
+ [role='tab'][aria-selected='true'] {
347
+ color: ${Ke.colorPrimary};
348
+ }
349
+
350
+ [role='tab'][disabled] {
351
+ color: ${Ke.colorOnSurfaceDisabled};
352
+ }
353
+
354
+ .ft-tabs--align-justify [role='tab'] {
355
+ flex-grow: 1;
356
+ }
357
+
358
+ [role='tab'] .ft-tabs--tab-label {
399
359
  width: 100%;
360
+ white-space: nowrap;
361
+ overflow: hidden;
362
+ text-overflow: ellipsis;
400
363
  }
401
364
 
402
- mwc-tab[disabled] {
403
- pointer-events: none;
404
- --mdc-tab-color-default: ${mt.colorOnSurfaceDisabled};
365
+ [role='tab']:not(.ft-tabs--tab-with-label) .ft-tabs--tab-label,
366
+ .ft-tabs--dense .ft-tabs--tab-with-icon .ft-tabs--tab-label {
367
+ display: none;
368
+ }
369
+
370
+ [role='tab']:not(.ft-tabs--tab-with-icon) .ft-tabs--tab-icon {
371
+ display: none;
372
+ }
373
+
374
+ .ft-tabs--active-tab-indicator {
375
+ position: absolute;
376
+ height: 3px;
377
+ border-radius: 2px;
378
+ background-color: ${Ke.colorPrimary};
379
+ transition: width 200ms ease, left 200ms ease, top 200ms ease;
380
+ }
381
+
382
+ .ft-tabs--content {
383
+ flex-shrink: 1;
384
+ flex-grow: 1;
385
+ overflow: auto;
405
386
  }
406
- `,ht([r.property({type:Boolean})],vt.prototype,"dense",void 0),ht([r.property({type:Boolean})],vt.prototype,"contentBefore",void 0),ht([r.state()],vt.prototype,"tabs",void 0),ht([r.property({type:Number,reflect:!0})],vt.prototype,"activeIndex",void 0),ht([r.query(".ft-tabs--resizable")],vt.prototype,"resizable",void 0),e.customElement("ft-tab")(d),e.customElement("ft-tabs")(vt),t.FtTab=d,t.FtTabs=vt,t.FtTabsCssVariables=mt,t.IndexChangeEvent=bt,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litStyleMap);
387
+ `,Ge([s.property({type:Boolean})],Pe.prototype,"dense",void 0),Ge([s.property({type:Boolean})],Pe.prototype,"contentBefore",void 0),Ge([s.property()],Pe.prototype,"alignTabs",void 0),Ge([s.state()],Pe.prototype,"ftTabs",void 0),Ge([s.query("[role='tablist']")],Pe.prototype,"tabsContainer",void 0),Ge([s.query("[aria-selected='true']")],Pe.prototype,"activeTab",void 0),Ge([s.query(".ft-tabs--active-tab-indicator")],Pe.prototype,"activeTabIndicator",void 0),Ge([s.property({type:Number,reflect:!0})],Pe.prototype,"activeIndex",void 0),e.customElement("ft-tab")(g),e.customElement("ft-tabs")(Pe),t.FtTab=g,t.FtTabs=Pe,t.FtTabsCssVariables=Ke,t.IndexChangeEvent=Ze,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat,ftGlobals.litClassMap);