@covalent/components 1.0.10 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/action-ribbon/action-ribbon-base.d.ts +1 -1
- package/components/action-ribbon/action-ribbon-base.d.ts.map +1 -1
- package/components/action-ribbon/action-ribbon.component.d.ts.map +1 -1
- package/components/action-ribbon/foundation.d.ts.map +1 -1
- package/components/app-shell/app-shell.component.d.ts +10 -34
- package/components/app-shell/app-shell.component.d.ts.map +1 -1
- package/components/button/button.component.d.ts +10 -0
- package/components/button/button.component.d.ts.map +1 -0
- package/components/index.d.ts +6 -0
- package/components/index.d.ts.map +1 -0
- package/components/list/td-list-expansion.component.d.ts +14 -0
- package/components/list/td-list-expansion.component.d.ts.map +1 -0
- package/components/list/td-list-item.component.d.ts +12 -0
- package/components/list/td-list-item.component.d.ts.map +1 -0
- package/covalent-icons/{covalent-icons.css → lib/icons/covalent-icons/covalent-icons.css} +0 -0
- package/covalent-icons/{covalent-icons.eot → lib/icons/covalent-icons/covalent-icons.eot} +0 -0
- package/covalent-icons/{covalent-icons.svg → lib/icons/covalent-icons/covalent-icons.svg} +0 -0
- package/covalent-icons/{covalent-icons.ttf → lib/icons/covalent-icons/covalent-icons.ttf} +0 -0
- package/covalent-icons/{covalent-icons.woff → lib/icons/covalent-icons/covalent-icons.woff} +0 -0
- package/index.js +679 -0
- package/package.json +2 -80
- package/teradata-icons/lib/icons/teradata-icons/teradata-icons.css +338 -0
- package/teradata-icons/lib/icons/teradata-icons/teradata-icons.eot +0 -0
- package/teradata-icons/lib/icons/teradata-icons/teradata-icons.svg +217 -0
- package/teradata-icons/lib/icons/teradata-icons/teradata-icons.ttf +0 -0
- package/teradata-icons/lib/icons/teradata-icons/teradata-icons.woff +0 -0
- package/components/mini-list/mini-list.component.d.ts +0 -16
- package/components/mini-list/mini-list.component.d.ts.map +0 -1
- package/covalent-icons/svgs/Screen Shot 2021-09-21 at 3.33.14 PM.png +0 -0
- package/covalent-icons/svgs/alias_arrow.svg +0 -3
- package/covalent-icons/svgs/api.svg +0 -3
- package/covalent-icons/svgs/api_ondark.svg +0 -3
- package/covalent-icons/svgs/application.svg +0 -3
- package/covalent-icons/svgs/bucket.svg +0 -3
- package/covalent-icons/svgs/cluster_analysis.svg +0 -3
- package/covalent-icons/svgs/column.svg +0 -3
- package/covalent-icons/svgs/connected_identity.svg +0 -3
- package/covalent-icons/svgs/data_preparation.svg +0 -3
- package/covalent-icons/svgs/data_source.svg +0 -3
- package/covalent-icons/svgs/database.svg +0 -3
- package/covalent-icons/svgs/database_changed.svg +0 -3
- package/covalent-icons/svgs/database_edit.svg +0 -3
- package/covalent-icons/svgs/database_foreign.svg +0 -3
- package/covalent-icons/svgs/database_lab.svg +0 -3
- package/covalent-icons/svgs/database_search.svg +0 -3
- package/covalent-icons/svgs/database_synced.svg +0 -3
- package/covalent-icons/svgs/disconnect.svg +0 -3
- package/covalent-icons/svgs/dock_right.svg +0 -3
- package/covalent-icons/svgs/engine.svg +0 -3
- package/covalent-icons/svgs/file.svg +0 -3
- package/covalent-icons/svgs/file_changed.svg +0 -3
- package/covalent-icons/svgs/file_edit.svg +0 -3
- package/covalent-icons/svgs/file_foreign.svg +0 -3
- package/covalent-icons/svgs/file_lab.svg +0 -3
- package/covalent-icons/svgs/file_search.svg +0 -3
- package/covalent-icons/svgs/file_synced.svg +0 -3
- package/covalent-icons/svgs/formula.svg +0 -3
- package/covalent-icons/svgs/lab.svg +0 -3
- package/covalent-icons/svgs/loader-dots.svg +0 -31
- package/covalent-icons/svgs/machine_learning.svg +0 -3
- package/covalent-icons/svgs/machine_learning_ondark.svg +0 -3
- package/covalent-icons/svgs/model.svg +0 -3
- package/covalent-icons/svgs/model_configuration.svg +0 -3
- package/covalent-icons/svgs/model_configuration_ondark.svg +0 -3
- package/covalent-icons/svgs/model_ondark.svg +0 -3
- package/covalent-icons/svgs/no_results.svg +0 -3
- package/covalent-icons/svgs/node_branch.svg +0 -3
- package/covalent-icons/svgs/node_merge.svg +0 -3
- package/covalent-icons/svgs/node_notification.svg +0 -3
- package/covalent-icons/svgs/node_notification_ondark.svg +0 -3
- package/covalent-icons/svgs/object_storage.svg +0 -3
- package/covalent-icons/svgs/object_storage_ondark.svg +0 -3
- package/covalent-icons/svgs/operations.svg +0 -3
- package/covalent-icons/svgs/operators_divide.svg +0 -3
- package/covalent-icons/svgs/operators_equals.svg +0 -5
- package/covalent-icons/svgs/operators_greater_than.svg +0 -3
- package/covalent-icons/svgs/operators_greater_than_or_equal.svg +0 -5
- package/covalent-icons/svgs/operators_less_than.svg +0 -3
- package/covalent-icons/svgs/operators_less_than_or_equal.svg +0 -5
- package/covalent-icons/svgs/operators_multiply.svg +0 -5
- package/covalent-icons/svgs/operators_not_equal.svg +0 -5
- package/covalent-icons/svgs/operators_parentheses.svg +0 -3
- package/covalent-icons/svgs/operators_parenthesis_left.svg +0 -3
- package/covalent-icons/svgs/operators_parenthesis_right.svg +0 -3
- package/covalent-icons/svgs/operators_product_analyst.svg +0 -3
- package/covalent-icons/svgs/operators_product_console.svg +0 -3
- package/covalent-icons/svgs/operators_product_editor.svg +0 -3
- package/covalent-icons/svgs/operators_subtract.svg +0 -5
- package/covalent-icons/svgs/outbound_campaign_manager.svg +0 -3
- package/covalent-icons/svgs/resize_northeast.svg +0 -3
- package/covalent-icons/svgs/resize_northwest.svg +0 -3
- package/covalent-icons/svgs/resize_southeast.svg +0 -3
- package/covalent-icons/svgs/resize_southwest.svg +0 -3
- package/covalent-icons/svgs/rules.svg +0 -3
- package/covalent-icons/svgs/rules_insert.svg +0 -3
- package/covalent-icons/svgs/rules_insert_ondark.svg +0 -3
- package/covalent-icons/svgs/rules_ondark.svg +0 -3
- package/covalent-icons/svgs/rules_select.svg +0 -3
- package/covalent-icons/svgs/rules_select_ondark.svg +0 -3
- package/covalent-icons/svgs/script.svg +0 -3
- package/covalent-icons/svgs/script_macro.svg +0 -6
- package/covalent-icons/svgs/script_macro_ondark.svg +0 -6
- package/covalent-icons/svgs/script_ondark.svg +0 -3
- package/covalent-icons/svgs/script_sql.svg +0 -6
- package/covalent-icons/svgs/script_sql_ondark.svg +0 -6
- package/covalent-icons/svgs/script_stored_procedure.svg +0 -6
- package/covalent-icons/svgs/script_stored_procedure_ondark.svg +0 -6
- package/covalent-icons/svgs/segmentation.svg +0 -3
- package/covalent-icons/svgs/server.svg +0 -3
- package/covalent-icons/svgs/server_changed.svg +0 -3
- package/covalent-icons/svgs/server_edit.svg +0 -3
- package/covalent-icons/svgs/server_foreign.svg +0 -3
- package/covalent-icons/svgs/server_lab.svg +0 -3
- package/covalent-icons/svgs/server_search.svg +0 -3
- package/covalent-icons/svgs/server_synced.svg +0 -3
- package/covalent-icons/svgs/sftp.svg +0 -3
- package/covalent-icons/svgs/sftp_ondark.svg +0 -3
- package/covalent-icons/svgs/table.svg +0 -3
- package/covalent-icons/svgs/table_changed.svg +0 -3
- package/covalent-icons/svgs/table_edit.svg +0 -3
- package/covalent-icons/svgs/table_foreign.svg +0 -3
- package/covalent-icons/svgs/table_lab.svg +0 -3
- package/covalent-icons/svgs/table_search.svg +0 -3
- package/covalent-icons/svgs/table_synced.svg +0 -3
- package/covalent-icons/svgs/teradata-icons-v1.0.zip +0 -0
- package/covalent-icons/svgs/teradata.svg +0 -3
- package/covalent-icons/svgs/teradata_nocircle.svg +0 -3
- package/covalent-icons/svgs/text_analysis.svg +0 -3
- package/covalent-icons/svgs/undock.svg +0 -3
- package/covalent-icons/svgs/variable.svg +0 -3
- package/covalent-icons/svgs/variable_ondark.svg +0 -3
- package/covalent-icons/svgs/view_sankey.svg +0 -3
- package/covalent-icons/svgs/wand.svg +0 -3
- package/covalent-icons/svgs/workflow.svg +0 -3
- package/covalent-theme.css +0 -13
- package/covalent.js +0 -685
- package/index.d.ts +0 -4
- package/index.d.ts.map +0 -1
package/covalent.js
DELETED
@@ -1,685 +0,0 @@
|
|
1
|
-
!function(t){var e={};function i(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(r,o,function(e){return t[e]}.bind(null,o));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0)}([function(t,e,i){i(1),t.exports=i(4)},function(t,e,i){t.exports=i.p+"covalent-theme.css"},function(t,e){
|
2
|
-
/**
|
3
|
-
* @license
|
4
|
-
* Copyright 2016 Google Inc. All rights reserved.
|
5
|
-
*
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
* you may not use this file except in compliance with the License.
|
8
|
-
* You may obtain a copy of the License at
|
9
|
-
*
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
*
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
* See the License for the specific language governing permissions and
|
16
|
-
* limitations under the License.
|
17
|
-
*/
|
18
|
-
(()=>{var t,e,i;const r=Symbol(),o=Symbol(),a=Symbol(),n=Symbol(),s=Symbol(),d=Symbol(),c=Symbol(),p=Symbol(),l=Symbol(),m=Symbol(),h=Symbol(),u=Symbol(),f=Symbol();class g{constructor(){this[t]=[],this[e]=[],this[i]=new Set}destructor(){this[l](this[a]);this[r]=null,this[a]=null,this[o]=null}get top(){const t=this[r];return t[t.length-1]||null}push(t){t&&t!==this.top&&(this.remove(t),this[d](t),this[r].push(t))}remove(t){const e=this[r].indexOf(t);return-1!==e&&(this[r].splice(e,1),e===this[r].length&&this[d](this.top),!0)}pop(){const t=this.top;return t&&this.remove(t),t}has(t){return-1!==this[r].indexOf(t)}[(t=r,e=a,i=o,d)](t){const e=this[o],i=this[a];if(!t)return this[l](i),e.clear(),void(this[a]=[]);const r=this[m](t);if(r[r.length-1].parentNode!==document.body)throw Error("Non-connected element cannot be a blocking element");this[a]=r;const n=this[h](t);if(!i.length)return void this[p](r,n,e);let s=i.length-1,d=r.length-1;for(;s>0&&d>0&&i[s]===r[d];)s--,d--;i[s]!==r[d]&&this[c](i[s],r[d]),s>0&&this[l](i.slice(0,s)),d>0&&this[p](r.slice(0,d),n,null)}[c](t,e){const i=t[n];this[u](t)&&!t.inert&&(t.inert=!0,i.add(t)),i.has(e)&&(e.inert=!1,i.delete(e)),e[s]=t[s],e[n]=i,t[s]=void 0,t[n]=void 0}[l](t){for(const e of t){e[s].disconnect(),e[s]=void 0;const t=e[n];for(const e of t)e.inert=!1;e[n]=void 0}}[p](t,e,i){for(const r of t){const t=r.parentNode,o=t.children,a=new Set;for(let t=0;t<o.length;t++){const n=o[t];n===r||!this[u](n)||e&&e.has(n)||(i&&n.inert?i.add(n):(n.inert=!0,a.add(n)))}r[n]=a;const d=new MutationObserver(this[f].bind(this));r[s]=d;let c=t;const p=c;p.__shady&&p.host&&(c=p.host),d.observe(c,{childList:!0})}}[f](t){const e=this[a],i=this[o];for(const r of t){const t=r.target.host||r.target,o=t===document.body?e.length:e.indexOf(t),a=e[o-1],s=a[n];for(let t=0;t<r.removedNodes.length;t++){const e=r.removedNodes[t];if(e===a)return console.info("Detected removal of the top Blocking Element."),void this.pop();s.has(e)&&(e.inert=!1,s.delete(e))}for(let t=0;t<r.addedNodes.length;t++){const e=r.addedNodes[t];this[u](e)&&(i&&e.inert?i.add(e):(e.inert=!0,s.add(e)))}}}[u](t){return!1===/^(style|template|script)$/.test(t.localName)}[m](t){const e=[];let i=t;for(;i&&i!==document.body;)if(i.nodeType===Node.ELEMENT_NODE&&e.push(i),i.assignedSlot){for(;i=i.assignedSlot;)e.push(i);i=e.pop()}else i=i.parentNode||i.host;return e}[h](t){const e=t.shadowRoot;if(!e)return null;const i=new Set;let r,o,a;const n=e.querySelectorAll("slot");if(n.length&&n[0].assignedNodes)for(r=0;r<n.length;r++)for(a=n[r].assignedNodes({flatten:!0}),o=0;o<a.length;o++)a[o].nodeType===Node.ELEMENT_NODE&&i.add(a[o]);return i}}document.$blockingElements=new g})()},function(t,e){var i=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}!function(){if("undefined"!=typeof window){var t=Array.prototype.slice,e=Element.prototype.matches||Element.prototype.msMatchesSelector,o=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","[contenteditable]"].join(","),a=function(){function a(t,e){r(this,a),this._inertManager=e,this._rootElement=t,this._managedNodes=new Set,this._rootElement.hasAttribute("aria-hidden")?this._savedAriaHidden=this._rootElement.getAttribute("aria-hidden"):this._savedAriaHidden=null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}return i(a,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(null!==this._savedAriaHidden?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach((function(t){this._unmanageNode(t.node)}),this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(t){var e=this;c(t,(function(t){return e._visitNode(t)}));var i=document.activeElement;if(!document.body.contains(t)){for(var r=t,o=void 0;r;){if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){o=r;break}r=r.parentNode}o&&(i=o.activeElement)}t.contains(i)&&(i.blur(),i===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(t){if(t.nodeType===Node.ELEMENT_NODE){var i=t;i!==this._rootElement&&i.hasAttribute("inert")&&this._adoptInertRoot(i),(e.call(i,o)||i.hasAttribute("tabindex"))&&this._manageNode(i)}}},{key:"_manageNode",value:function(t){var e=this._inertManager.register(t,this);this._managedNodes.add(e)}},{key:"_unmanageNode",value:function(t){var e=this._inertManager.deregister(t,this);e&&this._managedNodes.delete(e)}},{key:"_unmanageSubtree",value:function(t){var e=this;c(t,(function(t){return e._unmanageNode(t)}))}},{key:"_adoptInertRoot",value:function(t){var e=this._inertManager.getInertRoot(t);e||(this._inertManager.setInert(t,!0),e=this._inertManager.getInertRoot(t)),e.managedNodes.forEach((function(t){this._manageNode(t.node)}),this)}},{key:"_onMutation",value:function(e,i){e.forEach((function(e){var i=e.target;if("childList"===e.type)t.call(e.addedNodes).forEach((function(t){this._makeSubtreeUnfocusable(t)}),this),t.call(e.removedNodes).forEach((function(t){this._unmanageSubtree(t)}),this);else if("attributes"===e.type)if("tabindex"===e.attributeName)this._manageNode(i);else if(i!==this._rootElement&&"inert"===e.attributeName&&i.hasAttribute("inert")){this._adoptInertRoot(i);var r=this._inertManager.getInertRoot(i);this._managedNodes.forEach((function(t){i.contains(t.node)&&r._manageNode(t.node)}))}}),this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return null!==this._savedAriaHidden}},{key:"savedAriaHidden",set:function(t){this._savedAriaHidden=t},get:function(){return this._savedAriaHidden}}]),a}(),n=function(){function t(e,i){r(this,t),this._node=e,this._overrodeFocusMethod=!1,this._inertRoots=new Set([i]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}return i(t,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var t=this._node;null!==this._savedTabIndex?t.setAttribute("tabindex",this._savedTabIndex):t.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete t.focus}this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var t=this.node;if(e.call(t,o)){if(-1===t.tabIndex&&this.hasSavedTabIndex)return;t.hasAttribute("tabindex")&&(this._savedTabIndex=t.tabIndex),t.setAttribute("tabindex","-1"),t.nodeType===Node.ELEMENT_NODE&&(t.focus=function(){},this._overrodeFocusMethod=!0)}else t.hasAttribute("tabindex")&&(this._savedTabIndex=t.tabIndex,t.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(t){this._throwIfDestroyed(),this._inertRoots.add(t)}},{key:"removeInertRoot",value:function(t){this._throwIfDestroyed(),this._inertRoots.delete(t),0===this._inertRoots.size&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return null!==this._savedTabIndex}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(t){this._throwIfDestroyed(),this._savedTabIndex=t},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),t}(),s=function(){function o(t){if(r(this,o),!t)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=t,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),p(t.head||t.body||t.documentElement),"loading"===t.readyState?t.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}return i(o,[{key:"setInert",value:function(t,e){if(e){if(this._inertRoots.has(t))return;var i=new a(t,this);if(t.setAttribute("inert",""),this._inertRoots.set(t,i),!this._document.body.contains(t))for(var r=t.parentNode;r;)11===r.nodeType&&p(r),r=r.parentNode}else{if(!this._inertRoots.has(t))return;this._inertRoots.get(t).destructor(),this._inertRoots.delete(t),t.removeAttribute("inert")}}},{key:"getInertRoot",value:function(t){return this._inertRoots.get(t)}},{key:"register",value:function(t,e){var i=this._managedNodes.get(t);return void 0!==i?i.addInertRoot(e):i=new n(t,e),this._managedNodes.set(t,i),i}},{key:"deregister",value:function(t,e){var i=this._managedNodes.get(t);return i?(i.removeInertRoot(e),i.destroyed&&this._managedNodes.delete(t),i):null}},{key:"_onDocumentLoaded",value:function(){t.call(this._document.querySelectorAll("[inert]")).forEach((function(t){this.setInert(t,!0)}),this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(i,r){var o=this;i.forEach((function(i){switch(i.type){case"childList":t.call(i.addedNodes).forEach((function(i){if(i.nodeType===Node.ELEMENT_NODE){var r=t.call(i.querySelectorAll("[inert]"));e.call(i,"[inert]")&&r.unshift(i),r.forEach((function(t){this.setInert(t,!0)}),o)}}),o);break;case"attributes":if("inert"!==i.attributeName)return;var r=i.target,a=r.hasAttribute("inert");o.setInert(r,a)}}),this)}}]),o}();if(!Element.prototype.hasOwnProperty("inert")){var d=new s(document);Object.defineProperty(Element.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(t){d.setInert(this,t)}})}}function c(t,e,i){if(t.nodeType==Node.ELEMENT_NODE){var r=t;e&&e(r);var o=r.shadowRoot;if(o)return void c(o,e,o);if("content"==r.localName){for(var a=r,n=a.getDistributedNodes?a.getDistributedNodes():[],s=0;s<n.length;s++)c(n[s],e,i);return}if("slot"==r.localName){for(var d=r,p=d.assignedNodes?d.assignedNodes({flatten:!0}):[],l=0;l<p.length;l++)c(p[l],e,i);return}}for(var m=t.firstChild;null!=m;)c(m,e,i),m=m.nextSibling}function p(t){if(!t.querySelector("style#inert-style, link#inert-style")){var e=document.createElement("style");e.setAttribute("id","inert-style"),e.textContent="\n[inert] {\n pointer-events: none;\n cursor: default;\n}\n\n[inert], [inert] * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n",t.appendChild(e)}}}()},function(t,e,i){"use strict";i.r(e),i.d(e,"CovalentActionRibbon",(function(){return Ft})),i.d(e,"CovalentAppShell",(function(){return Hi})),i.d(e,"CovalentMiniList",(function(){return Bi}));
|
19
|
-
/**
|
20
|
-
* @license
|
21
|
-
* Copyright 2017 Google LLC
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
23
|
-
*/
|
24
|
-
const r=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:r}=e;return{kind:i,elements:r,finisher(e){window.customElements.define(t,e)}}})(t,e)
|
25
|
-
/**
|
26
|
-
* @license
|
27
|
-
* Copyright 2017 Google LLC
|
28
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
29
|
-
*/,o=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function a(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):o(t,e)
|
30
|
-
/**
|
31
|
-
* @license
|
32
|
-
* Copyright 2017 Google LLC
|
33
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
34
|
-
*/}function n(t){return a({...t,state:!0})}
|
35
|
-
/**
|
36
|
-
* @license
|
37
|
-
* Copyright 2017 Google LLC
|
38
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
39
|
-
*/const s=({finisher:t,descriptor:e})=>(i,r)=>{var o;if(void 0===r){const r=null!==(o=i.originalKey)&&void 0!==o?o:i.key,a=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(i.key)}:{...i,key:r};return null!=t&&(a.finisher=function(e){t(e,r)}),a}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,r,e(r)),null==t||t(o,r)}}
|
40
|
-
/**
|
41
|
-
* @license
|
42
|
-
* Copyright 2017 Google LLC
|
43
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
44
|
-
*/;function d(t){return s({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}
|
45
|
-
/**
|
46
|
-
* @license
|
47
|
-
* Copyright 2017 Google LLC
|
48
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
49
|
-
*/function c(t,e){return s({descriptor:i=>{const r={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;r.get=function(){var i,r;return void 0===this[e]&&(this[e]=null!==(r=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==r?r:null),this[e]}}return r}})}
|
50
|
-
/**
|
51
|
-
* @license
|
52
|
-
* Copyright 2017 Google LLC
|
53
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
54
|
-
*/
|
55
|
-
/**
|
56
|
-
* @license
|
57
|
-
* Copyright 2017 Google LLC
|
58
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
59
|
-
*/
|
60
|
-
function p(t){return s({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})}
|
61
|
-
/**
|
62
|
-
* @license
|
63
|
-
* Copyright 2017 Google LLC
|
64
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
65
|
-
*/function l(t="",e=!1,i=""){return s({descriptor:r=>({get(){var r,o,a;const n="slot"+(t?`[name=${t}]`:":not([name])");let s=null!==(a=null===(o=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(n))||void 0===o?void 0:o.assignedNodes({flatten:e}))&&void 0!==a?a:[];return i&&(s=s.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.matches(i))),s},enumerable:!0,configurable:!0})})}
|
66
|
-
/**
|
67
|
-
* @license
|
68
|
-
* Copyright 2019 Google LLC
|
69
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
70
|
-
*/const m=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),u=new Map;class f{constructor(t,e){if(this._$cssResult$=!0,e!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=u.get(this.cssText);return m&&void 0===t&&(u.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const g=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1],t[0]);return new f(i,h)},b=m?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new f("string"==typeof t?t:t+"",h))(e)})(t):t
|
71
|
-
/**
|
72
|
-
* @license
|
73
|
-
* Copyright 2017 Google LLC
|
74
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
75
|
-
*/;var v;const y=window.reactiveElementPolyfillSupport,_={toAttribute(t,e){switch(e){case Boolean:t=t?"":null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},x=(t,e)=>e!==t&&(e==e||t==t),w={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:x};class E extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const r=this._$Eh(i,e);void 0!==r&&(this._$Eu.set(r,i),t.push(r))}),t}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(b(t))}else void 0!==t&&e.push(b(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ev=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Ep(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach(t=>t(this))}addController(t){var e,i;(null!==(e=this._$Em)&&void 0!==e?e:this._$Em=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Em)||void 0===e||e.splice(this._$Em.indexOf(t)>>>0,1)}_$Ep(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return i=e,r=this.constructor.elementStyles,m?i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):r.forEach(t=>{const e=document.createElement("style"),r=window.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,i.appendChild(e)}),e;var i,r}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Em)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Em)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$Eg(t,e,i=w){var r,o;const a=this.constructor._$Eh(t,i);if(void 0!==a&&!0===i.reflect){const n=(null!==(o=null===(r=i.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==o?o:_.toAttribute)(e,i.type);this._$Ei=t,null==n?this.removeAttribute(a):this.setAttribute(a,n),this._$Ei=null}}_$AK(t,e){var i,r,o;const a=this.constructor,n=a._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=a.getPropertyOptions(n),s=t.converter,d=null!==(o=null!==(r=null===(i=s)||void 0===i?void 0:i.fromAttribute)&&void 0!==r?r:"function"==typeof s?s:null)&&void 0!==o?o:_.fromAttribute;this._$Ei=n,this[n]=d(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||x)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$ES&&(this._$ES=new Map),this._$ES.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$Ev=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ev}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((t,e)=>this[e]=t),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Em)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)}),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Em)||void 0===e||e.forEach(t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ev}shouldUpdate(t){return!0}update(t){void 0!==this._$ES&&(this._$ES.forEach((t,e)=>this._$Eg(e,this[e],t)),this._$ES=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
76
|
-
/**
|
77
|
-
* @license
|
78
|
-
* Copyright 2017 Google LLC
|
79
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
80
|
-
*/
|
81
|
-
var A;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:E}),(null!==(v=globalThis.reactiveElementVersions)&&void 0!==v?v:globalThis.reactiveElementVersions=[]).push("1.0.1");const S=globalThis.trustedTypes,I=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,T="?"+C,R=`<${T}>`,k=document,O=(t="")=>k.createComment(t),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,F=t=>{var e;return N(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,D=/>/g,P=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,H=/'/g,M=/"/g,U=/^(?:script|style|textarea)$/i,B=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),j=B(1),V=(B(2),Symbol.for("lit-noChange")),G=Symbol.for("lit-nothing"),X=new WeakMap,q=k.createTreeWalker(k,129,null,!1),Y=(t,e)=>{const i=t.length-1,r=[];let o,a=2===e?"<svg>":"",n=z;for(let e=0;e<i;e++){const i=t[e];let s,d,c=-1,p=0;for(;p<i.length&&(n.lastIndex=p,d=n.exec(i),null!==d);)p=n.lastIndex,n===z?"!--"===d[1]?n=L:void 0!==d[1]?n=D:void 0!==d[2]?(U.test(d[2])&&(o=RegExp("</"+d[2],"g")),n=P):void 0!==d[3]&&(n=P):n===P?">"===d[0]?(n=null!=o?o:z,c=-1):void 0===d[1]?c=-2:(c=n.lastIndex-d[2].length,s=d[1],n=void 0===d[3]?P:'"'===d[3]?M:H):n===M||n===H?n=P:n===L||n===D?n=z:(n=P,o=void 0);const l=n===P&&t[e+1].startsWith("/>")?" ":"";a+=n===z?i+R:c>=0?(r.push(s),i.slice(0,c)+"$lit$"+i.slice(c)+C+l):i+C+(-2===c?(r.push(void 0),e):l)}const s=a+(t[i]||"<?>")+(2===e?"</svg>":"");return[void 0!==I?I.createHTML(s):s,r]};class K{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const n=t.length-1,s=this.parts,[d,c]=Y(t,e);if(this.el=K.createElement(d,i),q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=q.nextNode())&&s.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(C)){const i=c[a++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(i);s.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?tt:"?"===e[1]?et:"@"===e[1]?it:Q})}else s.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(U.test(r.tagName)){const t=r.textContent.split(C),e=t.length-1;if(e>0){r.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],O()),q.nextNode(),s.push({type:2,index:++o});r.append(t[e],O())}}}else if(8===r.nodeType)if(r.data===T)s.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(C,t+1));)s.push({type:7,index:o}),t+=C.length-1}o++}}static createElement(t,e){const i=k.createElement("template");return i.innerHTML=t,i}}function W(t,e,i=t,r){var o,a,n,s;if(e===V)return e;let d=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const c=$(e)?void 0:e._$litDirective$;return(null==d?void 0:d.constructor)!==c&&(null===(a=null==d?void 0:d._$AO)||void 0===a||a.call(d,!1),void 0===c?d=void 0:(d=new c(t),d._$AT(t,i,r)),void 0!==r?(null!==(n=(s=i)._$Cl)&&void 0!==n?n:s._$Cl=[])[r]=d:i._$Cu=d),void 0!==d&&(e=W(t,d._$AS(t,e.values),d,r)),e}class Z{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:k).importNode(i,!0);q.currentNode=o;let a=q.nextNode(),n=0,s=0,d=r[0];for(;void 0!==d;){if(n===d.index){let e;2===d.type?e=new J(a,a.nextSibling,this,t):1===d.type?e=new d.ctor(a,d.name,d.strings,this,t):6===d.type&&(e=new rt(a,this,t)),this.v.push(e),d=r[++s]}n!==(null==d?void 0:d.index)&&(a=q.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 J{constructor(t,e,i,r){var o;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=W(this,t,e),$(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==V&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):F(t)?this.M(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==G&&$(this._$AH)?this._$AA.nextSibling.data=t:this.S(k.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=K.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new Z(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new K(t)),e}M(t){N(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new J(this.A(O()),this.A(O()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Q{constructor(t,e,i,r,o){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let a=!1;if(void 0===o)t=W(this,t,e,0),a=!$(t)||t!==this._$AH&&t!==V,a&&(this._$AH=t);else{const r=t;let n,s;for(t=o[0],n=0;n<o.length-1;n++)s=W(this,r[i+n],e,n),s===V&&(s=this._$AH[n]),a||(a=!$(s)||s!==this._$AH[n]),s===G?t=G:t!==G&&(t+=(null!=s?s:"")+o[n+1]),this._$AH[n]=s}a&&!r&&this.k(t)}k(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===G?void 0:t}}class et extends Q{constructor(){super(...arguments),this.type=4}k(t){t&&t!==G?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}class it extends Q{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=W(this,t,e,0))&&void 0!==i?i:G)===V)return;const r=this._$AH,o=t===G&&r!==G||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==G&&(r===G||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class rt{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){W(this,t)}}const ot=window.litHtmlPolyfillSupport;
|
82
|
-
/**
|
83
|
-
* @license
|
84
|
-
* Copyright 2017 Google LLC
|
85
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
86
|
-
*/
|
87
|
-
var at,nt;null==ot||ot(K,J),(null!==(A=globalThis.litHtmlVersions)&&void 0!==A?A:globalThis.litHtmlVersions=[]).push("2.0.1");class st extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var r,o;const a=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=a._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;a._$litPart$=n=new J(e.insertBefore(O(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return V}}st.finalized=!0,st._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:st});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:st});(null!==(nt=globalThis.litElementVersions)&&void 0!==nt?nt:globalThis.litElementVersions=[]).push("3.0.1"),
|
88
|
-
/**
|
89
|
-
* @license
|
90
|
-
* Copyright 2017 Google LLC
|
91
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
92
|
-
*/
|
93
|
-
console.warn("The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. See https://lit.dev/msg/deprecated-import-path for more information.");function ct(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}let pt=!1;const lt=()=>{},mt={get passive(){return pt=!0,!1}};document.addEventListener("x",lt,mt),document.removeEventListener("x",lt);const ht=pt,ut=(t=window.document)=>{let e=t.activeElement;const i=[];if(!e)return i;for(;e&&(i.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return i};
|
94
|
-
/**
|
95
|
-
* @license
|
96
|
-
* Copyright 2018 Google LLC
|
97
|
-
* SPDX-License-Identifier: Apache-2.0
|
98
|
-
*/
|
99
|
-
class ft extends st{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()}}
|
100
|
-
/**
|
101
|
-
* @license
|
102
|
-
* Copyright 2018 Google LLC
|
103
|
-
* SPDX-License-Identifier: Apache-2.0
|
104
|
-
*/const gt=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)}
|
105
|
-
/**
|
106
|
-
* @license
|
107
|
-
* Copyright 2020 Google Inc.
|
108
|
-
*
|
109
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
110
|
-
* of this software and associated documentation files (the "Software"), to deal
|
111
|
-
* in the Software without restriction, including without limitation the rights
|
112
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
113
|
-
* copies of the Software, and to permit persons to whom the Software is
|
114
|
-
* furnished to do so, subject to the following conditions:
|
115
|
-
*
|
116
|
-
* The above copyright notice and this permission notice shall be included in
|
117
|
-
* all copies or substantial portions of the Software.
|
118
|
-
*
|
119
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
120
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
121
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
122
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
123
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
124
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
125
|
-
* THE SOFTWARE.
|
126
|
-
*/;var bt,vt=250,yt=300;!function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SECONDARY=1]="SECONDARY",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(bt||(bt={}));
|
127
|
-
/**
|
128
|
-
* @license
|
129
|
-
* Copyright 2016 Google Inc.
|
130
|
-
*
|
131
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
132
|
-
* of this software and associated documentation files (the "Software"), to deal
|
133
|
-
* in the Software without restriction, including without limitation the rights
|
134
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
135
|
-
* copies of the Software, and to permit persons to whom the Software is
|
136
|
-
* furnished to do so, subject to the following conditions:
|
137
|
-
*
|
138
|
-
* The above copyright notice and this permission notice shall be included in
|
139
|
-
* all copies or substantial portions of the Software.
|
140
|
-
*
|
141
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
142
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
143
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
144
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
145
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
146
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
147
|
-
* THE SOFTWARE.
|
148
|
-
*/
|
149
|
-
var _t=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}();
|
150
|
-
/**
|
151
|
-
* @license
|
152
|
-
* Copyright 2020 Google Inc.
|
153
|
-
*
|
154
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
155
|
-
* of this software and associated documentation files (the "Software"), to deal
|
156
|
-
* in the Software without restriction, including without limitation the rights
|
157
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
158
|
-
* copies of the Software, and to permit persons to whom the Software is
|
159
|
-
* furnished to do so, subject to the following conditions:
|
160
|
-
*
|
161
|
-
* The above copyright notice and this permission notice shall be included in
|
162
|
-
* all copies or substantial portions of the Software.
|
163
|
-
*
|
164
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
165
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
166
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
167
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
168
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
169
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
170
|
-
* THE SOFTWARE.
|
171
|
-
*/
|
172
|
-
const{OPENING:xt,OPEN:wt,CLOSING:Et}={CLOSING:"mdc-banner--closing",OPEN:"mdc-banner--open",OPENING:"mdc-banner--opening"};class At extends _t{constructor(t){super(Object.assign(Object.assign({},At.defaultAdapter),t)),this.isOpened=!1,this.animationFrame=0,this.animationTimer=0}static get defaultAdapter(){return{addClass:()=>{},getContentHeight:()=>0,notifyClosed:()=>{},notifyClosing:()=>{},notifyOpened:()=>{},notifyOpening:()=>{},releaseFocus:()=>{},removeClass:()=>{},setStyleProperty:()=>{},trapFocus:()=>{}}}destroy(){cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=0}open(){this.isOpened=!0,this.adapter.notifyOpening(),this.adapter.removeClass(Et),this.adapter.addClass(xt);const t=this.adapter.getContentHeight();this.animationFrame=requestAnimationFrame(()=>{this.adapter.addClass(wt),this.adapter.setStyleProperty("height",t+"px"),this.animationTimer=setTimeout(()=>{this.handleAnimationTimerEnd(),this.adapter.trapFocus(),this.adapter.notifyOpened()},yt)})}close(t){this.isOpened&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=0,this.isOpened=!1,this.adapter.notifyClosing(t),this.adapter.addClass(Et),this.adapter.setStyleProperty("height","0"),this.adapter.removeClass(wt),this.adapter.removeClass(xt),clearTimeout(this.animationTimer),this.animationTimer=setTimeout(()=>{this.adapter.releaseFocus(),this.handleAnimationTimerEnd(),this.adapter.notifyClosed(t)},vt))}isOpen(){return this.isOpened}handlePrimaryActionClick(){this.close(bt.PRIMARY)}handleSecondaryActionClick(){this.close(bt.SECONDARY)}layout(){const t=this.adapter.getContentHeight();console.log("he",t),this.adapter.setStyleProperty("height",t+"px")}handleAnimationTimerEnd(){this.animationTimer=0,this.adapter.removeClass(xt),this.adapter.removeClass(Et)}}var St=At;
|
173
|
-
/**
|
174
|
-
* @license
|
175
|
-
* Copyright 2017 Google LLC
|
176
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
177
|
-
*/const It=1,Ct=t=>(...e)=>({_$litDirective$:t,values:e});class Tt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
178
|
-
/**
|
179
|
-
* @license
|
180
|
-
* Copyright 2018 Google LLC
|
181
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
182
|
-
*/const Rt=Ct(class extends Tt{constructor(t){var e;if(super(t),t.type!==It||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var i,r;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const o=t.element.classList;this.st.forEach(t=>{t in e||(o.remove(t),this.st.delete(t))});for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(r=this.et)||void 0===r?void 0:r.has(t))||(i?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return V}});var kt=function(t,e,i,r){var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};class Ot extends ft{constructor(){super(...arguments),this.mdcFoundationClass=St,this.open=!1,this.labelText="",this.icon="",this.centered=!0,this.state="",this.reason=bt.UNSPECIFIED}render(){const t={"mdc-banner":!0,negative:"negative"===this.state,positive:"positive"===this.state,caution:"caution"===this.state,active:"active"===this.state,"mdc-banner--centered":this.centered};return j`
|
183
|
-
<div class="${Rt(t)}" role="banner">
|
184
|
-
<div class="mdc-banner__content"
|
185
|
-
role="alertdialog"
|
186
|
-
aria-live="assertive">
|
187
|
-
|
188
|
-
<div class="mdc-banner__graphic-text-wrapper">
|
189
|
-
${this.icon?this.renderIcon():""}
|
190
|
-
<div class="mdc-banner__text">
|
191
|
-
${this.labelText}
|
192
|
-
</div>
|
193
|
-
</div>
|
194
|
-
<div class="mdc-banner__actions">
|
195
|
-
<slot name="action-items"></slot>
|
196
|
-
</div>
|
197
|
-
</div>
|
198
|
-
</div>`}renderIcon(){return j`
|
199
|
-
<div class="mdc-banner__graphic" role="img" alt="">
|
200
|
-
<slot name="icon">
|
201
|
-
<mwc-icon class="mdc-banner__icon">
|
202
|
-
${this.icon}
|
203
|
-
</mwc-icon>
|
204
|
-
</slot>
|
205
|
-
</div>`}createAdapter(){return Object.assign(Object.assign({},ct(this.mdcRoot)),{getContentHeight:()=>this.mdcContent.offsetHeight,setStyleProperty:(t,e)=>{this.mdcRoot.style.setProperty(t,e)},trapFocus:()=>{},releaseFocus:()=>{},notifyClosed:t=>{},notifyClosing:t=>{this.open=!1},notifyOpened:()=>{},notifyOpening:()=>{this.open=!0}})}show(){this.open=!0}close(t=bt.UNSPECIFIED){this.reason=t,this.open=!1}firstUpdated(){super.firstUpdated(),this.open&&this.mdcFoundation.open()}}kt([c(".mdc-banner")],Ot.prototype,"mdcRoot",void 0),kt([c(".mdc-banner__content")],Ot.prototype,"mdcContent",void 0),kt([a({type:Boolean,reflect:!0}),gt((function(t){this.mdcFoundation&&(t?this.mdcFoundation.open():(this.mdcFoundation.close(this.reason),this.reason=bt.UNSPECIFIED))}))],Ot.prototype,"open",void 0),kt([a({type:String})],Ot.prototype,"labelText",void 0),kt([a({type:String})],Ot.prototype,"icon",void 0),kt([a({type:Boolean})],Ot.prototype,"centered",void 0),kt([a()],Ot.prototype,"state",void 0);var $t=g`.mdc-banner__graphic{color:#fff;color:var(--mdc-theme-surface,#fff)}.mdc-banner__graphic{background-color:#6200ee;background-color:var(--mdc-theme-primary,#6200ee)}.mdc-banner__content,.mdc-banner__fixed{min-width:344px}@media(max-width:480px),(max-width:344px){.mdc-banner__content,.mdc-banner__fixed{min-width:100%}}.mdc-banner__content{max-width:720px}.mdc-banner{z-index:1;border-bottom-style:solid;box-sizing:border-box;display:none;flex-shrink:0;height:0;position:relative;width:100%}@media(max-width:480px){.mdc-banner .mdc-banner__fixed{left:0;right:0}.mdc-banner .mdc-banner__text{margin-left:16px;margin-right:36px}.mdc-banner .mdc-banner__text[dir=rtl],[dir=rtl] .mdc-banner .mdc-banner__text{margin-left:36px;margin-right:16px}}@media(max-width:480px){.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__content{flex-wrap:wrap}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__graphic{margin-bottom:12px}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text{margin-left:16px;margin-right:8px;padding-bottom:4px}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text[dir=rtl],[dir=rtl] .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text{margin-left:8px;margin-right:16px}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__actions{margin-left:auto}}.mdc-banner--closing,.mdc-banner--open,.mdc-banner--opening{display:flex}.mdc-banner--open{transition:height .3s ease}.mdc-banner--open .mdc-banner__content{transition:transform .3s ease;transform:translateY(0)}.mdc-banner--closing{transition:height 250ms ease}.mdc-banner--closing .mdc-banner__content{transition:transform 250ms ease}.mdc-banner--centered .mdc-banner__content{left:0;margin-left:auto;margin-right:auto;right:0}.mdc-banner__fixed{border-bottom-style:solid;box-sizing:border-box;height:inherit;position:fixed;width:100%}.mdc-banner__content{display:flex;min-height:52px;position:absolute;transform:translateY(-100%);width:100%}.mdc-banner__graphic-text-wrapper{display:flex;width:100%}.mdc-banner__graphic{margin-left:16px;margin-right:0;flex-shrink:0;margin-top:16px;margin-bottom:16px;text-align:center}.mdc-banner__graphic[dir=rtl],[dir=rtl] .mdc-banner__graphic{margin-left:0;margin-right:16px}.mdc-banner__icon{position:relative;top:50%;transform:translateY(-50%)}.mdc-banner__text{margin-left:24px;margin-right:90px;align-self:center;flex-grow:1;padding-top:16px;padding-bottom:16px}.mdc-banner__text[dir=rtl],[dir=rtl] .mdc-banner__text{margin-left:90px;margin-right:24px}.mdc-banner__actions{padding-left:0;padding-right:8px;align-self:flex-end;display:flex;flex-shrink:0;padding-bottom:8px;padding-top:8px}.mdc-banner__actions[dir=rtl],[dir=rtl] .mdc-banner__actions{padding-left:8px;padding-right:0}.mdc-banner__secondary-action{margin-left:0;margin-right:8px}.mdc-banner__secondary-action[dir=rtl],[dir=rtl] .mdc-banner__secondary-action{margin-left:8px;margin-right:0}.mdc-banner{background-color:#fff;border-bottom-color:rgba(0,0,0,.12);border-bottom-width:1px;border-radius:0}.mdc-banner .mdc-banner__text{color:#000}.mdc-banner .mdc-banner__text{letter-spacing:.0178571429em;font-size:.875rem;font-family:Roboto,sans-serif;font-weight:400;line-height:1.25rem}.mdc-banner .mdc-banner__graphic{border-radius:50%}.mdc-banner .mdc-banner__graphic{height:40px;width:40px}.mdc-banner .mdc-banner__fixed{background-color:#fff}.mdc-banner .mdc-banner__fixed{border-bottom-color:rgba(0,0,0,.12)}.mdc-banner .mdc-banner__fixed{border-bottom-width:1px}.mdc-banner .mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-text-button-label-text-color,#6200ee)}.mdc-banner .mdc-button .mdc-button__ripple::after,.mdc-banner .mdc-button .mdc-button__ripple::before{background-color:#6200ee;background-color:var(--mdc-text-button-hover-state-layer-color,#6200ee)}.mdc-banner .mdc-button.mdc-ripple-surface--hover .mdc-button__ripple::before,.mdc-banner .mdc-button:hover .mdc-button__ripple::before{opacity:.04;opacity:var(--mdc-text-button-hover-state-layer-opacity,.04)}.mdc-banner .mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before,.mdc-banner .mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-text-button-focus-state-layer-opacity,.12)}.mdc-banner .mdc-button:not(.mdc-ripple-upgraded) .mdc-button__ripple::after{transition:opacity 150ms linear}.mdc-banner .mdc-button:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after{transition-duration:75ms;opacity:.1;opacity:var(--mdc-text-button-pressed-state-layer-opacity,.1)}.mdc-banner .mdc-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-text-button-pressed-state-layer-opacity, 0.1)}.mdc-banner__secondary-action{margin-left:0;margin-right:8px}.mdc-banner__secondary-action[dir=rtl],[dir=rtl] .mdc-banner__secondary-action{margin-left:8px;margin-right:0}.mdc-banner{background-color:var(--mdc-theme-surface);border-bottom-color:var(--mdc-theme-border);overflow:hidden}.mdc-banner .mdc-banner__content{max-width:inherit}.mdc-banner .mdc-banner__graphic,.mdc-banner .mdc-banner__text{--mdc-theme-primary:var(--mdc-theme-surface-neutral-highlight-hover);--mdc-theme-on-surface:var(--mdc-theme-text-icon-on-background);color:var(--mdc-theme-on-surface)}.mdc-banner .mdc-banner__text{--mdc-theme-on-surface:var(--mdc-theme-text-disabled-on-background);margin-left:16px}.mdc-banner.caution{--mdc-theme-surface:var(--mdc-theme-surface-caution-highlight)}.mdc-banner.caution .mdc-banner__graphic,.mdc-banner.caution .mdc-banner__text{--mdc-theme-primary:var(--mdc-theme-surface-caution-highlight-hover);--mdc-theme-on-surface:var(--mdc-theme-caution)}.mdc-banner.negative{--mdc-theme-surface:var(--mdc-theme-surface-negative-highlight)}.mdc-banner.negative .mdc-banner__graphic,.mdc-banner.negative .mdc-banner__text{--mdc-theme-primary:var(--mdc-theme-surface-negative-highlight-hover);--mdc-theme-on-surface:var(--mdc-theme-error)}.mdc-banner.active{--mdc-theme-surface:var(--mdc-theme-surface-secondary-highlight)}.mdc-banner.active .mdc-banner__graphic,.mdc-banner.active .mdc-banner__text{--mdc-theme-primary:var(--mdc-theme-surface-secondary-highlight-hover);--mdc-theme-on-surface:var(--mdc-theme-secondary)}.mdc-banner.positive{--mdc-theme-surface:var(--mdc-theme-surface-positive-highlight)}.mdc-banner.positive .mdc-banner__graphic,.mdc-banner.positive .mdc-banner__text{--mdc-theme-primary:var(--mdc-theme-surface-positive-highlight-hover);--mdc-theme-on-surface:var(--mdc-theme-positive)}::slotted(*){margin-left:8px}`,Nt=function(t,e,i,r){var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let Ft=class extends Ot{};Ft.styles=[$t],Ft=Nt([r("td-action-ribbon")],Ft);var zt=g`:host{--mdc-typography-subtitle1-font-weight:700;--mdc-typography-subtitle2-font-weight:700}.logo-text{fill:var(--covalent-theme-text-logo-on-background)}.covalent-icon{--mdc-icon-font:"covalent-icons"}mwc-drawer{--mdc-theme-surface:var(--mdc-theme-background);--mdc-typography-subtitle1-font-weight:700;--mdc-typography-subtitle2-font-weight:700;--mdc-list-vertical-padding:0}mwc-top-app-bar-fixed{--mdc-top-app-bar-width:calc(100vw)}.app-content{height:100%;overflow-x:auto;flex:1}.app-inner-content{height:100%}#drawer-app-bar{--mdc-top-app-bar-width:255px}mwc-top-app-bar-fixed{--mdc-theme-primary:var(--mdc-theme-surface);--mdc-theme-on-primary:var(--mdc-theme-on-surface)}::slotted(mwc-list-item),mwc-list-item{border-radius:0 28px 28px 0;margin-right:16px;height:48px}mwc-list-item[activated] mwc-icon{--mdc-theme-text-icon-on-background:--mdc-theme-text-icon-on-primary}.mdc-top-app-bar__title{padding-left:0}.app-content mwc-top-app-bar-fixed{display:none}.home-item,::slotted(.home-item){background-color:#f3753f;--mdc-ripple-color:#fff}.home-item .covalent-icon,::slotted(.home-item) .covalent-icon{--mdc-list-item-graphic-size:40px;--mdc-icon-size:40px;--mdc-theme-text-icon-on-background:#f3753f;--mdc-theme-text-icon-on-background:#fff;height:40px}.home-item .covalent-icon::after,::slotted(.home-item) .covalent-icon::after{background:#fff;--mdc-theme-text-icon-on-background:#fff}.home-item .covalent-icon .home-item .home-icon,::slotted(.home-item) .covalent-icon .home-item .home-icon{--mdc-theme-text-icon-on-background:#fff;--mdc-list-item-graphic-size:35px;margin-left:8px;margin-top:4px;display:none}.home-item .covalent-icon .home-item mwc-icon,::slotted(.home-item) .covalent-icon .home-item mwc-icon{position:relative;border-radius:100px}.home-item:hover .home-icon,::slotted(.home-item):hover .home-icon{display:block}.home-item:hover .covalent-icon,::slotted(.home-item):hover .covalent-icon{display:none}.logo-dark,html.dark .logo-light{display:none}html.dark .logo-dark{display:block}navigation-rail{display:flex;overflow:auto;flex-direction:column;max-width:71px;min-width:71px;border-left:1px solid var(--mdc-theme-border);text-align:center;height:100%;margin-left:0}mwc-drawer:not([type=modal]) navigation-rail.drawer-open{display:none}::slotted(mwc-list-item),navigation-rail mwc-list-item{border-radius:100%;margin:0 auto 8px;padding:0;width:48px}navigation-rail .toggle-drawer{margin-top:8px;margin-bottom:8px}navigation-rail mwc-list-item mwc-icon{margin-left:8px}@media only screen and (max-width:800px){.app-content mwc-top-app-bar-fixed{display:block}navigation-rail{display:none}}`,Lt=function(t,e){return(Lt=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])})(t,e)};
|
206
|
-
/*! *****************************************************************************
|
207
|
-
Copyright (c) Microsoft Corporation.
|
208
|
-
|
209
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
210
|
-
purpose with or without fee is hereby granted.
|
211
|
-
|
212
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
213
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
214
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
215
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
216
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
217
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
218
|
-
PERFORMANCE OF THIS SOFTWARE.
|
219
|
-
***************************************************************************** */function Dt(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}Lt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Pt=function(){return(Pt=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function Ht(t,e,i,r){var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n}Object.create;function Mt(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.")}Object.create;
|
220
|
-
/**
|
221
|
-
* @license
|
222
|
-
* Copyright 2021 Google LLC
|
223
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
224
|
-
*/
|
225
|
-
const Ut=g`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`;
|
226
|
-
/**
|
227
|
-
* @license
|
228
|
-
* Copyright 2018 Google LLC
|
229
|
-
* SPDX-License-Identifier: Apache-2.0
|
230
|
-
*/let Bt=class extends st{render(){return j`<span><slot></slot></span>`}};function jt(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Bt.styles=[Ut],Bt=Ht([r("mwc-icon")],Bt);
|
231
|
-
/**
|
232
|
-
* @license
|
233
|
-
* Copyright 2016 Google Inc.
|
234
|
-
*
|
235
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
236
|
-
* of this software and associated documentation files (the "Software"), to deal
|
237
|
-
* in the Software without restriction, including without limitation the rights
|
238
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
239
|
-
* copies of the Software, and to permit persons to whom the Software is
|
240
|
-
* furnished to do so, subject to the following conditions:
|
241
|
-
*
|
242
|
-
* The above copyright notice and this permission notice shall be included in
|
243
|
-
* all copies or substantial portions of the Software.
|
244
|
-
*
|
245
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
246
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
247
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
248
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
249
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
250
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
251
|
-
* THE SOFTWARE.
|
252
|
-
*/
|
253
|
-
var Vt={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"},Gt={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"},Xt={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
|
254
|
-
/**
|
255
|
-
* @license
|
256
|
-
* Copyright 2016 Google Inc.
|
257
|
-
*
|
258
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
259
|
-
* of this software and associated documentation files (the "Software"), to deal
|
260
|
-
* in the Software without restriction, including without limitation the rights
|
261
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
262
|
-
* copies of the Software, and to permit persons to whom the Software is
|
263
|
-
* furnished to do so, subject to the following conditions:
|
264
|
-
*
|
265
|
-
* The above copyright notice and this permission notice shall be included in
|
266
|
-
* all copies or substantial portions of the Software.
|
267
|
-
*
|
268
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
269
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
270
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
271
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
272
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
273
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
274
|
-
* THE SOFTWARE.
|
275
|
-
*/
|
276
|
-
var qt=["touchstart","pointerdown","mousedown","keydown"],Yt=["touchend","pointerup","mouseup","contextmenu"],Kt=[],Wt=function(t){function e(i){var r=t.call(this,Pt(Pt({},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 Dt(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Vt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Gt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Xt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,o=r.ROOT,a=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(a),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=Mt(qt),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=Mt(Yt),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=Mt(qt),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=Mt(Yt),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&Kt.length>0&&Kt.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(Kt.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){Kt=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,o=i.VAR_FG_TRANSLATE_END,a=e.cssClasses,n=a.FG_DEACTIVATION,s=a.FG_ACTIVATION,d=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",p="";if(!this.adapter.isUnbounded()){var l=this.getFgTranslationCoordinates(),m=l.startPoint,h=l.endPoint;c=m.x+"px, "+m.y+"px",p=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(r,c),this.adapter.updateCssVariable(o,p),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(n),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),d)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,o,a=e.x,n=e.y,s=a+i.left,d=n+i.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-s,o=c.changedTouches[0].pageY-d}else{var p=t;r=p.pageX-s,o=p.pageY-d}return{x:r,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,a=r.isActivated;(o||!a)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),Xt.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=Pt({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,o=t.VAR_TOP,a=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(a,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(_t);
|
277
|
-
/**
|
278
|
-
* @license
|
279
|
-
* Copyright 2018 Google LLC
|
280
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
281
|
-
*/
|
282
|
-
const Zt=Ct(class extends Tt{constructor(t){var e;if(super(t),t.type!==It||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,i)=>{const r=t[i];return null==r?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach(t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")});for(const t in e){const r=e[t];null!=r&&(this.ut.add(t),t.includes("-")?i.setProperty(t,r):i[t]=r)}return V}});
|
283
|
-
/**
|
284
|
-
* @license
|
285
|
-
* Copyright 2018 Google LLC
|
286
|
-
* SPDX-License-Identifier: Apache-2.0
|
287
|
-
*/class Jt extends ft{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=Wt}get isActive(){return jt(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),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return j`
|
288
|
-
<div class="mdc-ripple-surface mdc-ripple-upgraded ${Rt(i)}"
|
289
|
-
style="${Zt({"--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>`}}Ht([c(".mdc-ripple-surface")],Jt.prototype,"mdcRoot",void 0),Ht([a({type:Boolean})],Jt.prototype,"primary",void 0),Ht([a({type:Boolean})],Jt.prototype,"accent",void 0),Ht([a({type:Boolean})],Jt.prototype,"unbounded",void 0),Ht([a({type:Boolean})],Jt.prototype,"disabled",void 0),Ht([a({type:Boolean})],Jt.prototype,"activated",void 0),Ht([a({type:Boolean})],Jt.prototype,"selected",void 0),Ht([a({type:Boolean})],Jt.prototype,"internalUseStateLayerCustomProperties",void 0),Ht([n()],Jt.prototype,"hovering",void 0),Ht([n()],Jt.prototype,"bgFocused",void 0),Ht([n()],Jt.prototype,"fgActivation",void 0),Ht([n()],Jt.prototype,"fgDeactivation",void 0),Ht([n()],Jt.prototype,"fgScale",void 0),Ht([n()],Jt.prototype,"fgSize",void 0),Ht([n()],Jt.prototype,"translateStart",void 0),Ht([n()],Jt.prototype,"translateEnd",void 0),Ht([n()],Jt.prototype,"leftPos",void 0),Ht([n()],Jt.prototype,"topPos",void 0);
|
290
|
-
/**
|
291
|
-
* @license
|
292
|
-
* Copyright 2021 Google LLC
|
293
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
294
|
-
*/
|
295
|
-
const Qt=g`.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)}`;
|
296
|
-
/**
|
297
|
-
* @license
|
298
|
-
* Copyright 2018 Google LLC
|
299
|
-
* SPDX-License-Identifier: Apache-2.0
|
300
|
-
*/let te=class extends Jt{};function ee(t,e,i){if(void 0!==e)
|
301
|
-
/**
|
302
|
-
* @license
|
303
|
-
* Copyright 2021 Google LLC
|
304
|
-
* SPDX-License-Identifier: Apache-2.0
|
305
|
-
*/
|
306
|
-
return function(t,e,i){const r=t.constructor;if(!i){const t="__"+e;if(!(i=r.getPropertyDescriptor(e,t)))throw new Error("@ariaProperty must be used after a @property decorator")}const o=i;let a="";if(!o.set)throw new Error("@ariaProperty requires a setter for "+e);const n={configurable:!0,enumerable:!0,set(t){if(""===a){const t=r.getPropertyOptions(e);a=t.attribute}this.hasAttribute(a)&&this.removeAttribute(a),o.set.call(this,t)}};return o.get&&(n.get=function(){return o.get.call(this)}),n}(t,e,i);throw new Error("@ariaProperty only supports TypeScript Decorators")}
|
307
|
-
/**
|
308
|
-
* @license
|
309
|
-
* Copyright 2020 Google LLC
|
310
|
-
* SPDX-License-Identifier: Apache-2.0
|
311
|
-
*/te.styles=[Qt],te=Ht([r("mwc-ripple")],te);class ie{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()})}}}
|
312
|
-
/**
|
313
|
-
* @license
|
314
|
-
* Copyright 2018 Google LLC
|
315
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
316
|
-
*/const re=t=>null!=t?t:G
|
317
|
-
/**
|
318
|
-
* @license
|
319
|
-
* Copyright 2019 Google LLC
|
320
|
-
* SPDX-License-Identifier: Apache-2.0
|
321
|
-
*/;class oe extends st{constructor(){super(...arguments),this.raised=!1,this.unelevated=!1,this.outlined=!1,this.dense=!1,this.disabled=!1,this.trailingIcon=!1,this.fullwidth=!1,this.icon="",this.label="",this.expandContent=!1,this.shouldRenderRipple=!1,this.rippleHandlers=new ie(()=>(this.shouldRenderRipple=!0,this.ripple))}renderOverlay(){return j``}renderRipple(){const t=this.raised||this.unelevated;return this.shouldRenderRipple?j`<mwc-ripple class="ripple" .primary="${!t}" .disabled="${this.disabled}"></mwc-ripple>`:""}focus(){const t=this.buttonElement;t&&(this.rippleHandlers.startFocus(),t.focus())}blur(){const t=this.buttonElement;t&&(this.rippleHandlers.endFocus(),t.blur())}getRenderClasses(){return{"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense}}render(){return j`
|
322
|
-
<button
|
323
|
-
id="button"
|
324
|
-
class="mdc-button ${Rt(this.getRenderClasses())}"
|
325
|
-
?disabled="${this.disabled}"
|
326
|
-
aria-label="${this.label||this.icon}"
|
327
|
-
aria-haspopup="${re(this.ariaHasPopup)}"
|
328
|
-
@focus="${this.handleRippleFocus}"
|
329
|
-
@blur="${this.handleRippleBlur}"
|
330
|
-
@mousedown="${this.handleRippleActivate}"
|
331
|
-
@mouseenter="${this.handleRippleMouseEnter}"
|
332
|
-
@mouseleave="${this.handleRippleMouseLeave}"
|
333
|
-
@touchstart="${this.handleRippleActivate}"
|
334
|
-
@touchend="${this.handleRippleDeactivate}"
|
335
|
-
@touchcancel="${this.handleRippleDeactivate}">
|
336
|
-
${this.renderOverlay()}
|
337
|
-
${this.renderRipple()}
|
338
|
-
<span class="leading-icon">
|
339
|
-
<slot name="icon">
|
340
|
-
${this.icon&&!this.trailingIcon?this.renderIcon():""}
|
341
|
-
</slot>
|
342
|
-
</span>
|
343
|
-
<span class="mdc-button__label">${this.label}</span>
|
344
|
-
<span class="slot-container ${Rt({flex:this.expandContent})}">
|
345
|
-
<slot></slot>
|
346
|
-
</span>
|
347
|
-
<span class="trailing-icon">
|
348
|
-
<slot name="trailingIcon">
|
349
|
-
${this.icon&&this.trailingIcon?this.renderIcon():""}
|
350
|
-
</slot>
|
351
|
-
</span>
|
352
|
-
</button>`}renderIcon(){return j`
|
353
|
-
<mwc-icon class="mdc-button__icon">
|
354
|
-
${this.icon}
|
355
|
-
</mwc-icon>`}handleRippleActivate(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}oe.shadowRootOptions={mode:"open",delegatesFocus:!0},Ht([ee,a({type:String,attribute:"aria-haspopup"})],oe.prototype,"ariaHasPopup",void 0),Ht([a({type:Boolean,reflect:!0})],oe.prototype,"raised",void 0),Ht([a({type:Boolean,reflect:!0})],oe.prototype,"unelevated",void 0),Ht([a({type:Boolean,reflect:!0})],oe.prototype,"outlined",void 0),Ht([a({type:Boolean})],oe.prototype,"dense",void 0),Ht([a({type:Boolean,reflect:!0})],oe.prototype,"disabled",void 0),Ht([a({type:Boolean,attribute:"trailingicon"})],oe.prototype,"trailingIcon",void 0),Ht([a({type:Boolean,reflect:!0})],oe.prototype,"fullwidth",void 0),Ht([a({type:String})],oe.prototype,"icon",void 0),Ht([a({type:String})],oe.prototype,"label",void 0),Ht([a({type:Boolean})],oe.prototype,"expandContent",void 0),Ht([c("#button")],oe.prototype,"buttonElement",void 0),Ht([p("mwc-ripple")],oe.prototype,"ripple",void 0),Ht([n()],oe.prototype,"shouldRenderRipple",void 0),Ht([d({passive:!0})],oe.prototype,"handleRippleActivate",null);
|
356
|
-
/**
|
357
|
-
* @license
|
358
|
-
* Copyright 2021 Google LLC
|
359
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
360
|
-
*/
|
361
|
-
const ae=g`.mdc-button{-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)}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:transparent}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:transparent}.mdc-button{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised,.mdc-button--unelevated{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{background-color:rgba(0, 0, 0, 0.12)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--raised .mdc-button__icon,.mdc-button--unelevated .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--raised .mdc-button__ripple,.mdc-button--unelevated .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px);padding:0 15px 0 15px;border-width:1px}.mdc-button--outlined:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button--outlined:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--outlined .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--outlined .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined:disabled{border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined.mdc-button--icon-trailing{padding:0 11px 0 15px}.mdc-button--outlined.mdc-button--icon-leading{padding:0 15px 0 11px}.mdc-button--outlined .mdc-button__ripple{top:calc(-1 * 1px);left:calc(-1 * 1px);border-width:1px}.mdc-button--outlined .mdc-button__touch{left:calc(-1 * 1px);width:calc(100% + 2 * 1px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--raised:hover,.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12)}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 0px rgba(0, 0, 0, 0.14),0px 0px 0px 0px rgba(0,0,0,.12)}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent;vertical-align:top}:host([fullwidth]){width:100%}:host([raised]),:host([unelevated]){--mdc-ripple-color:#fff;--mdc-ripple-focus-opacity:0.24;--mdc-ripple-hover-opacity:0.08;--mdc-ripple-press-opacity:0.24}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon,.leading-icon ::slotted(*),.leading-icon .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,[dir=rtl] .leading-icon ::slotted(*),[dir=rtl] .leading-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl],.leading-icon ::slotted(*[dir=rtl]),.leading-icon .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}.slot-container{display:inline-flex;align-items:center;justify-content:center}.slot-container.flex{flex:auto}.mdc-button{flex:auto;overflow:hidden;padding-left:8px;padding-left:var(--mdc-button-horizontal-padding, 8px);padding-right:8px;padding-right:var(--mdc-button-horizontal-padding, 8px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-focus, var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)))}.mdc-button--raised:hover{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-active, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-disabled, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised,.mdc-button--unelevated{padding-left:16px;padding-left:var(--mdc-button-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mdc-button-horizontal-padding, 16px)}.mdc-button--outlined{border-width:1px;border-width:var(--mdc-button-outline-width, 1px);padding-left:calc(16px - 1px);padding-left:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px));padding-right:calc(16px - 1px);padding-right:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px))}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-outline-color, rgba(0, 0, 0, 0.12))}.mdc-button--outlined .ripple{top:calc(-1 * 1px);top:calc(-1 * var(--mdc-button-outline-width, 1px));left:calc(-1 * 1px);left:calc(-1 * var(--mdc-button-outline-width, 1px));right:initial;right:initial;border-width:1px;border-width:var(--mdc-button-outline-width, 1px);border-style:solid;border-color:transparent}[dir=rtl] .mdc-button--outlined .ripple,.mdc-button--outlined .ripple[dir=rtl]{left:initial;left:initial;right:calc(-1 * 1px);right:calc(-1 * var(--mdc-button-outline-width, 1px))}.mdc-button--dense{height:28px;margin-top:0;margin-bottom:0}.mdc-button--dense .mdc-button__touch{display:none}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-button{color:rgba(0, 0, 0, 0.38);color:var(--mdc-button-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-button--raised,:host([disabled]) .mdc-button--unelevated{background-color:rgba(0, 0, 0, 0.12);background-color:var(--mdc-button-disabled-fill-color, rgba(0, 0, 0, 0.12))}:host([disabled]) .mdc-button--outlined{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}`;
|
362
|
-
/**
|
363
|
-
* @license
|
364
|
-
* Copyright 2018 Google LLC
|
365
|
-
* SPDX-License-Identifier: Apache-2.0
|
366
|
-
*/let ne=class extends oe{};ne.styles=[ae],ne=Ht([r("mwc-button")],ne);i(2),i(3);var se={ANIMATE:"mdc-drawer--animate",CLOSING:"mdc-drawer--closing",DISMISSIBLE:"mdc-drawer--dismissible",MODAL:"mdc-drawer--modal",OPEN:"mdc-drawer--open",OPENING:"mdc-drawer--opening",ROOT:"mdc-drawer"},de={APP_CONTENT_SELECTOR:".mdc-drawer-app-content",CLOSE_EVENT:"MDCDrawer:closed",OPEN_EVENT:"MDCDrawer:opened",SCRIM_SELECTOR:".mdc-drawer-scrim",LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",LIST_ITEM_ACTIVATED_SELECTOR:".mdc-list-item--activated,.mdc-deprecated-list-item--activated"},ce=function(t){function e(i){var r=t.call(this,Pt(Pt({},e.defaultAdapter),i))||this;return r.animationFrame=0,r.animationTimer=0,r}return Dt(e,t),Object.defineProperty(e,"strings",{get:function(){return de},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return se},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},elementHasClass:function(){return!1},notifyClose:function(){},notifyOpen:function(){},saveFocus:function(){},restoreFocus:function(){},focusActiveNavigationItem:function(){},trapFocus:function(){},releaseFocus:function(){}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame),this.animationTimer&&clearTimeout(this.animationTimer)},e.prototype.open=function(){var t=this;this.isOpen()||this.isOpening()||this.isClosing()||(this.adapter.addClass(se.OPEN),this.adapter.addClass(se.ANIMATE),this.runNextAnimationFrame((function(){t.adapter.addClass(se.OPENING)})),this.adapter.saveFocus())},e.prototype.close=function(){!this.isOpen()||this.isOpening()||this.isClosing()||this.adapter.addClass(se.CLOSING)},e.prototype.isOpen=function(){return this.adapter.hasClass(se.OPEN)},e.prototype.isOpening=function(){return this.adapter.hasClass(se.OPENING)||this.adapter.hasClass(se.ANIMATE)},e.prototype.isClosing=function(){return this.adapter.hasClass(se.CLOSING)},e.prototype.handleKeydown=function(t){var e=t.keyCode;("Escape"===t.key||27===e)&&this.close()},e.prototype.handleTransitionEnd=function(t){var e=se.OPENING,i=se.CLOSING,r=se.OPEN,o=se.ANIMATE,a=se.ROOT;this.isElement(t.target)&&this.adapter.elementHasClass(t.target,a)&&(this.isClosing()?(this.adapter.removeClass(r),this.closed(),this.adapter.restoreFocus(),this.adapter.notifyClose()):(this.adapter.focusActiveNavigationItem(),this.opened(),this.adapter.notifyOpen()),this.adapter.removeClass(o),this.adapter.removeClass(e),this.adapter.removeClass(i))},e.prototype.opened=function(){},e.prototype.closed=function(){},e.prototype.runNextAnimationFrame=function(t){var e=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame((function(){e.animationFrame=0,clearTimeout(e.animationTimer),e.animationTimer=setTimeout(t,0)}))},e.prototype.isElement=function(t){return Boolean(t.classList)},e}(_t),pe=ce,le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dt(e,t),e.prototype.handleScrimClick=function(){this.close()},e.prototype.opened=function(){this.adapter.trapFocus()},e.prototype.closed=function(){this.adapter.releaseFocus()},e}(ce);
|
367
|
-
/**
|
368
|
-
* @license
|
369
|
-
* Copyright 2018 Google LLC
|
370
|
-
* SPDX-License-Identifier: Apache-2.0
|
371
|
-
*/
|
372
|
-
const me=document.$blockingElements;class he extends ft{constructor(){super(...arguments),this._previousFocus=null,this.open=!1,this.hasHeader=!1,this.type=""}get mdcFoundationClass(){return"modal"===this.type?le:pe}createAdapter(){return Object.assign(Object.assign({},ct(this.mdcRoot)),{elementHasClass:(t,e)=>t.classList.contains(e),saveFocus:()=>{this._previousFocus=this.getRootNode().activeElement},restoreFocus:()=>{this._previousFocus&&this._previousFocus.focus&&this._previousFocus.focus()},notifyClose:()=>{this.open=!1,this.dispatchEvent(new Event(de.CLOSE_EVENT,{bubbles:!0,cancelable:!0}))},notifyOpen:()=>{this.open=!0,this.dispatchEvent(new Event(de.OPEN_EVENT,{bubbles:!0,cancelable:!0}))},focusActiveNavigationItem:()=>{},trapFocus:()=>{me.push(this),this.appContent.inert=!0},releaseFocus:()=>{me.remove(this),this.appContent.inert=!1}})}_handleScrimClick(){this.mdcFoundation instanceof le&&this.mdcFoundation.handleScrimClick()}render(){const t="dismissible"===this.type||"modal"===this.type,e="modal"===this.type,i=this.hasHeader?j`
|
373
|
-
<div class="mdc-drawer__header">
|
374
|
-
<h3 class="mdc-drawer__title"><slot name="title"></slot></h3>
|
375
|
-
<h6 class="mdc-drawer__subtitle"><slot name="subtitle"></slot></h6>
|
376
|
-
<slot name="header"></slot>
|
377
|
-
</div>
|
378
|
-
`:"";return j`
|
379
|
-
<aside class="mdc-drawer ${Rt({"mdc-drawer--dismissible":t,"mdc-drawer--modal":e})}">
|
380
|
-
${i}
|
381
|
-
<div class="mdc-drawer__content"><slot></slot></div>
|
382
|
-
</aside>
|
383
|
-
${e?j`<div class="mdc-drawer-scrim"
|
384
|
-
@click="${this._handleScrimClick}"></div>`:""}
|
385
|
-
<div class="mdc-drawer-app-content">
|
386
|
-
<slot name="appContent"></slot>
|
387
|
-
</div>
|
388
|
-
`}firstUpdated(){this.mdcRoot.addEventListener("keydown",t=>this.mdcFoundation.handleKeydown(t)),this.mdcRoot.addEventListener("transitionend",t=>this.mdcFoundation.handleTransitionEnd(t))}updated(t){t.has("type")&&this.createFoundation()}}Ht([c(".mdc-drawer")],he.prototype,"mdcRoot",void 0),Ht([c(".mdc-drawer-app-content")],he.prototype,"appContent",void 0),Ht([gt((function(t){""!==this.type&&(t?this.mdcFoundation.open():this.mdcFoundation.close())})),a({type:Boolean,reflect:!0})],he.prototype,"open",void 0),Ht([a({type:Boolean})],he.prototype,"hasHeader",void 0),Ht([a({reflect:!0})],he.prototype,"type",void 0);
|
389
|
-
/**
|
390
|
-
* @license
|
391
|
-
* Copyright 2021 Google LLC
|
392
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
393
|
-
*/
|
394
|
-
const ue=g`.mdc-drawer{border-color:rgba(0, 0, 0, 0.12);background-color:#fff;background-color:var(--mdc-theme-surface, #fff);border-top-left-radius:0;border-top-right-radius:0;border-top-right-radius:var(--mdc-shape-large, 0);border-bottom-right-radius:0;border-bottom-right-radius:var(--mdc-shape-large, 0);border-bottom-left-radius:0;z-index:6;width:256px;display:flex;flex-direction:column;flex-shrink:0;box-sizing:border-box;height:100%;border-right-width:1px;border-right-style:solid;overflow:hidden;transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.mdc-drawer .mdc-drawer__title{color:rgba(0, 0, 0, 0.87)}.mdc-drawer .mdc-deprecated-list-group__subheader{color:rgba(0, 0, 0, 0.6)}.mdc-drawer .mdc-drawer__subtitle{color:rgba(0, 0, 0, 0.6)}.mdc-drawer .mdc-deprecated-list-item__graphic{color:rgba(0, 0, 0, 0.6)}.mdc-drawer .mdc-deprecated-list-item{color:rgba(0, 0, 0, 0.87)}.mdc-drawer .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#6200ee}.mdc-drawer .mdc-deprecated-list-item--activated{color:rgba(98, 0, 238, 0.87)}[dir=rtl] .mdc-drawer,.mdc-drawer[dir=rtl]{border-top-left-radius:0;border-top-left-radius:var(--mdc-shape-large, 0);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom-left-radius:var(--mdc-shape-large, 0)}.mdc-drawer .mdc-deprecated-list-item{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content{margin-left:256px;margin-right:0}[dir=rtl] .mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content,.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content[dir=rtl]{margin-left:0;margin-right:256px}[dir=rtl] .mdc-drawer,.mdc-drawer[dir=rtl]{border-right-width:0;border-left-width:1px;border-right-style:none;border-left-style:solid}.mdc-drawer .mdc-deprecated-list-item{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle2-font-size, 0.875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:0.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit);height:calc(48px - 2 * 4px);margin:8px 8px;padding:0 8px}.mdc-drawer .mdc-deprecated-list-item:nth-child(1){margin-top:2px}.mdc-drawer .mdc-deprecated-list-item:nth-last-child(1){margin-bottom:0}.mdc-drawer .mdc-deprecated-list-group__subheader{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin:0;padding:0 16px}.mdc-drawer .mdc-deprecated-list-group__subheader::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-drawer .mdc-deprecated-list-divider{margin:3px 0 4px}.mdc-drawer .mdc-deprecated-list-item__text,.mdc-drawer .mdc-deprecated-list-item__graphic{pointer-events:none}.mdc-drawer--animate{transform:translateX(-100%)}[dir=rtl] .mdc-drawer--animate,.mdc-drawer--animate[dir=rtl]{transform:translateX(100%)}.mdc-drawer--opening{transform:translateX(0);transition-duration:250ms}[dir=rtl] .mdc-drawer--opening,.mdc-drawer--opening[dir=rtl]{transform:translateX(0)}.mdc-drawer--closing{transform:translateX(-100%);transition-duration:200ms}[dir=rtl] .mdc-drawer--closing,.mdc-drawer--closing[dir=rtl]{transform:translateX(100%)}.mdc-drawer__header{flex-shrink:0;box-sizing:border-box;min-height:64px;padding:0 16px 4px}.mdc-drawer__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-drawer__title::before{display:inline-block;width:0;height:36px;content:"";vertical-align:0}.mdc-drawer__title::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-drawer__subtitle{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin-bottom:0}.mdc-drawer__subtitle::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-drawer__content{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}.mdc-drawer--dismissible{left:0;right:initial;display:none;position:absolute}[dir=rtl] .mdc-drawer--dismissible,.mdc-drawer--dismissible[dir=rtl]{left:initial;right:0}.mdc-drawer--dismissible.mdc-drawer--open{display:flex}.mdc-drawer-app-content{margin-left:0;margin-right:0;position:relative}[dir=rtl] .mdc-drawer-app-content,.mdc-drawer-app-content[dir=rtl]{margin-left:0;margin-right:0}.mdc-drawer--modal{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2),0px 16px 24px 2px rgba(0, 0, 0, 0.14),0px 6px 30px 5px rgba(0,0,0,.12);left:0;right:initial;display:none;position:fixed}.mdc-drawer--modal+.mdc-drawer-scrim{background-color:rgba(0, 0, 0, 0.32)}[dir=rtl] .mdc-drawer--modal,.mdc-drawer--modal[dir=rtl]{left:initial;right:0}.mdc-drawer--modal.mdc-drawer--open{display:flex}.mdc-drawer-scrim{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:5;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.mdc-drawer--open+.mdc-drawer-scrim{display:block}.mdc-drawer--animate+.mdc-drawer-scrim{opacity:0}.mdc-drawer--opening+.mdc-drawer-scrim{transition-duration:250ms;opacity:1}.mdc-drawer--closing+.mdc-drawer-scrim{transition-duration:200ms;opacity:0}.mdc-drawer-app-content{overflow:auto;flex:1}:host{display:flex;height:100%}.mdc-drawer{width:256px;width:var(--mdc-drawer-width, 256px)}.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content{margin-left:256px;margin-left:var(--mdc-drawer-width, 256px);margin-right:0}[dir=rtl] .mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content,.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content[dir=rtl]{margin-left:0;margin-right:256px;margin-right:var(--mdc-drawer-width, 256px)}`;
|
395
|
-
/**
|
396
|
-
* @license
|
397
|
-
* Copyright 2018 Google LLC
|
398
|
-
* SPDX-License-Identifier: Apache-2.0
|
399
|
-
*/let fe=class extends he{};fe.styles=[ue],fe=Ht([r("mwc-drawer")],fe);
|
400
|
-
/**
|
401
|
-
* @license
|
402
|
-
* Copyright 2018 Google Inc.
|
403
|
-
*
|
404
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
405
|
-
* of this software and associated documentation files (the "Software"), to deal
|
406
|
-
* in the Software without restriction, including without limitation the rights
|
407
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
408
|
-
* copies of the Software, and to permit persons to whom the Software is
|
409
|
-
* furnished to do so, subject to the following conditions:
|
410
|
-
*
|
411
|
-
* The above copyright notice and this permission notice shall be included in
|
412
|
-
* all copies or substantial portions of the Software.
|
413
|
-
*
|
414
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
415
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
416
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
417
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
418
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
419
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
420
|
-
* THE SOFTWARE.
|
421
|
-
*/
|
422
|
-
var ge={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item"},be={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128},ve={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"},ye=function(t){function e(i){return t.call(this,Pt(Pt({},e.defaultAdapter),i))||this}return Dt(e,t),Object.defineProperty(e,"strings",{get:function(){return ve},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return ge},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return be},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},getTopAppBarHeight:function(){return 0},notifyNavigationIconClicked:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}},enumerable:!1,configurable:!0}),e.prototype.handleTargetScroll=function(){},e.prototype.handleWindowResize=function(){},e.prototype.handleNavigationClick=function(){this.adapter.notifyNavigationIconClicked()},e}(_t),_e=function(t){function e(e){var i=t.call(this,e)||this;return i.wasDocked=!0,i.isDockedShowing=!0,i.currentAppBarOffsetTop=0,i.isCurrentlyBeingResized=!1,i.resizeThrottleId=0,i.resizeDebounceId=0,i.lastScrollPosition=i.adapter.getViewportScrollY(),i.topAppBarHeight=i.adapter.getTopAppBarHeight(),i}return Dt(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.adapter.setStyle("top","")},e.prototype.handleTargetScroll=function(){var t=Math.max(this.adapter.getViewportScrollY(),0),e=t-this.lastScrollPosition;this.lastScrollPosition=t,this.isCurrentlyBeingResized||(this.currentAppBarOffsetTop-=e,this.currentAppBarOffsetTop>0?this.currentAppBarOffsetTop=0:Math.abs(this.currentAppBarOffsetTop)>this.topAppBarHeight&&(this.currentAppBarOffsetTop=-this.topAppBarHeight),this.moveTopAppBar())},e.prototype.handleWindowResize=function(){var t=this;this.resizeThrottleId||(this.resizeThrottleId=setTimeout((function(){t.resizeThrottleId=0,t.throttledResizeHandler()}),be.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized=!0,this.resizeDebounceId&&clearTimeout(this.resizeDebounceId),this.resizeDebounceId=setTimeout((function(){t.handleTargetScroll(),t.isCurrentlyBeingResized=!1,t.resizeDebounceId=0}),be.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},e.prototype.checkForUpdate=function(){var t=-this.topAppBarHeight,e=this.currentAppBarOffsetTop<0,i=this.currentAppBarOffsetTop>t,r=e&&i;if(r)this.wasDocked=!1;else{if(!this.wasDocked)return this.wasDocked=!0,!0;if(this.isDockedShowing!==i)return this.isDockedShowing=i,!0}return r},e.prototype.moveTopAppBar=function(){if(this.checkForUpdate()){var t=this.currentAppBarOffsetTop;Math.abs(t)>=this.topAppBarHeight&&(t=-be.MAX_TOP_APP_BAR_HEIGHT),this.adapter.setStyle("top",t+"px")}},e.prototype.throttledResizeHandler=function(){var t=this.adapter.getTopAppBarHeight();this.topAppBarHeight!==t&&(this.wasDocked=!1,this.currentAppBarOffsetTop-=this.topAppBarHeight-t,this.topAppBarHeight=t),this.handleTargetScroll()},e}(ye),xe=_e;
|
423
|
-
/**
|
424
|
-
* @license
|
425
|
-
* Copyright 2019 Google LLC
|
426
|
-
* SPDX-License-Identifier: Apache-2.0
|
427
|
-
*/
|
428
|
-
const we=ht?{passive:!0}:void 0;class Ee extends ft{constructor(){super(...arguments),this.centerTitle=!1,this.handleTargetScroll=()=>{this.mdcFoundation.handleTargetScroll()},this.handleNavigationClick=()=>{this.mdcFoundation.handleNavigationClick()}}get scrollTarget(){return this._scrollTarget||window}set scrollTarget(t){this.unregisterScrollListener();const e=this.scrollTarget;this._scrollTarget=t,this.updateRootPosition(),this.requestUpdate("scrollTarget",e),this.registerScrollListener()}updateRootPosition(){if(this.mdcRoot){const t=this.scrollTarget===window;this.mdcRoot.style.position=t?"":"absolute"}}render(){let t=j`<span class="mdc-top-app-bar__title"><slot name="title"></slot></span>`;return this.centerTitle&&(t=j`<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-center">${t}</section>`),j`
|
429
|
-
<header class="mdc-top-app-bar ${Rt(this.barClasses())}">
|
430
|
-
<div class="mdc-top-app-bar__row">
|
431
|
-
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start" id="navigation">
|
432
|
-
<slot name="navigationIcon"
|
433
|
-
@click=${this.handleNavigationClick}></slot>
|
434
|
-
${this.centerTitle?null:t}
|
435
|
-
</section>
|
436
|
-
${this.centerTitle?t:null}
|
437
|
-
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end" id="actions" role="toolbar">
|
438
|
-
<slot name="actionItems"></slot>
|
439
|
-
</section>
|
440
|
-
</div>
|
441
|
-
</header>
|
442
|
-
<div class="${Rt(this.contentClasses())}">
|
443
|
-
<slot></slot>
|
444
|
-
</div>
|
445
|
-
`}createAdapter(){return Object.assign(Object.assign({},ct(this.mdcRoot)),{setStyle:(t,e)=>this.mdcRoot.style.setProperty(t,e),getTopAppBarHeight:()=>this.mdcRoot.clientHeight,notifyNavigationIconClicked:()=>{this.dispatchEvent(new Event(ve.NAVIGATION_EVENT,{bubbles:!0,cancelable:!0}))},getViewportScrollY:()=>this.scrollTarget instanceof Window?this.scrollTarget.pageYOffset:this.scrollTarget.scrollTop,getTotalActionItems:()=>this._actionItemsSlot.assignedNodes({flatten:!0}).length})}registerListeners(){this.registerScrollListener()}unregisterListeners(){this.unregisterScrollListener()}registerScrollListener(){this.scrollTarget.addEventListener("scroll",this.handleTargetScroll,we)}unregisterScrollListener(){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll)}firstUpdated(){super.firstUpdated(),this.updateRootPosition(),this.registerListeners()}disconnectedCallback(){super.disconnectedCallback(),this.unregisterListeners()}}Ht([c(".mdc-top-app-bar")],Ee.prototype,"mdcRoot",void 0),Ht([c('slot[name="actionItems"]')],Ee.prototype,"_actionItemsSlot",void 0),Ht([a({type:Boolean})],Ee.prototype,"centerTitle",void 0),Ht([a({type:Object})],Ee.prototype,"scrollTarget",null);
|
446
|
-
/**
|
447
|
-
* @license
|
448
|
-
* Copyright 2018 Google LLC
|
449
|
-
* SPDX-License-Identifier: Apache-2.0
|
450
|
-
*/
|
451
|
-
class Ae extends Ee{constructor(){super(...arguments),this.mdcFoundationClass=xe,this.prominent=!1,this.dense=!1,this.handleResize=()=>{this.mdcFoundation.handleWindowResize()}}barClasses(){return{"mdc-top-app-bar--dense":this.dense,"mdc-top-app-bar--prominent":this.prominent,"center-title":this.centerTitle}}contentClasses(){return{"mdc-top-app-bar--fixed-adjust":!this.dense&&!this.prominent,"mdc-top-app-bar--dense-fixed-adjust":this.dense&&!this.prominent,"mdc-top-app-bar--prominent-fixed-adjust":!this.dense&&this.prominent,"mdc-top-app-bar--dense-prominent-fixed-adjust":this.dense&&this.prominent}}registerListeners(){super.registerListeners(),window.addEventListener("resize",this.handleResize,we)}unregisterListeners(){super.unregisterListeners(),window.removeEventListener("resize",this.handleResize)}}Ht([a({type:Boolean,reflect:!0})],Ae.prototype,"prominent",void 0),Ht([a({type:Boolean,reflect:!0})],Ae.prototype,"dense",void 0);
|
452
|
-
/**
|
453
|
-
* @license
|
454
|
-
* Copyright 2021 Google LLC
|
455
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
456
|
-
*/
|
457
|
-
const Se=g`.mdc-top-app-bar{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);color:white;display:flex;position:fixed;flex-direction:column;justify-content:space-between;box-sizing:border-box;width:100%;z-index:4}.mdc-top-app-bar .mdc-top-app-bar__action-item,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon{color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-top-app-bar .mdc-top-app-bar__action-item::before,.mdc-top-app-bar .mdc-top-app-bar__action-item::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon::after{background-color:#fff;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-primary, #fff))}.mdc-top-app-bar .mdc-top-app-bar__action-item:hover::before,.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-surface--hover::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:hover::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-surface--hover::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-upgraded--background-focused::before,.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):focus::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-upgraded--background-focused::before,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded)::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-top-app-bar .mdc-top-app-bar__action-item:not(.mdc-ripple-upgraded):active::after,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-top-app-bar .mdc-top-app-bar__action-item.mdc-ripple-upgraded,.mdc-top-app-bar .mdc-top-app-bar__navigation-icon.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-top-app-bar__row{display:flex;position:relative;box-sizing:border-box;width:100%;height:64px}.mdc-top-app-bar__section{display:inline-flex;flex:1 1 auto;align-items:center;min-width:0;padding:8px 12px;z-index:1}.mdc-top-app-bar__section--align-start{justify-content:flex-start;order:-1}.mdc-top-app-bar__section--align-end{justify-content:flex-end;order:1}.mdc-top-app-bar__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit);padding-left:20px;padding-right:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:1}[dir=rtl] .mdc-top-app-bar__title,.mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:20px}.mdc-top-app-bar--short-collapsed{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:24px;border-bottom-left-radius:0}[dir=rtl] .mdc-top-app-bar--short-collapsed,.mdc-top-app-bar--short-collapsed[dir=rtl]{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:24px}.mdc-top-app-bar--short{top:0;right:auto;left:0;width:100%;transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-top-app-bar--short,.mdc-top-app-bar--short[dir=rtl]{right:0;left:auto}.mdc-top-app-bar--short .mdc-top-app-bar__row{height:56px}.mdc-top-app-bar--short .mdc-top-app-bar__section{padding:4px}.mdc-top-app-bar--short .mdc-top-app-bar__title{transition:opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.mdc-top-app-bar--short-collapsed{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12);width:56px;transition:width 300ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__title{display:none}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__action-item{transition:padding 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item{width:112px}.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end{padding-left:0;padding-right:12px}[dir=rtl] .mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end,.mdc-top-app-bar--short-collapsed.mdc-top-app-bar--short-has-action-item .mdc-top-app-bar__section--align-end[dir=rtl]{padding-left:12px;padding-right:0}.mdc-top-app-bar--dense .mdc-top-app-bar__row{height:48px}.mdc-top-app-bar--dense .mdc-top-app-bar__section{padding:0 4px}.mdc-top-app-bar--dense .mdc-top-app-bar__title{padding-left:12px;padding-right:0}[dir=rtl] .mdc-top-app-bar--dense .mdc-top-app-bar__title,.mdc-top-app-bar--dense .mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:12px}.mdc-top-app-bar--prominent .mdc-top-app-bar__row{height:128px}.mdc-top-app-bar--prominent .mdc-top-app-bar__title{align-self:flex-end;padding-bottom:2px}.mdc-top-app-bar--prominent .mdc-top-app-bar__action-item,.mdc-top-app-bar--prominent .mdc-top-app-bar__navigation-icon{align-self:flex-start}.mdc-top-app-bar--fixed{transition:box-shadow 200ms linear}.mdc-top-app-bar--fixed-scrolled{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12);transition:box-shadow 200ms linear}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__row{height:96px}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__section{padding:0 12px}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title{padding-left:20px;padding-right:0;padding-bottom:9px}[dir=rtl] .mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title,.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__title[dir=rtl]{padding-left:0;padding-right:20px}.mdc-top-app-bar--fixed-adjust{padding-top:64px}.mdc-top-app-bar--dense-fixed-adjust{padding-top:48px}.mdc-top-app-bar--short-fixed-adjust{padding-top:56px}.mdc-top-app-bar--prominent-fixed-adjust{padding-top:128px}.mdc-top-app-bar--dense-prominent-fixed-adjust{padding-top:96px}@media(max-width: 599px){.mdc-top-app-bar__row{height:56px}.mdc-top-app-bar__section{padding:4px}.mdc-top-app-bar--short{transition:width 200ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed{transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end{padding-left:0;padding-right:12px}[dir=rtl] .mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end,.mdc-top-app-bar--short-collapsed .mdc-top-app-bar__section--align-end[dir=rtl]{padding-left:12px;padding-right:0}.mdc-top-app-bar--prominent .mdc-top-app-bar__title{padding-bottom:6px}.mdc-top-app-bar--fixed-adjust{padding-top:56px}}:host{display:block}.mdc-top-app-bar{color:#fff;color:var(--mdc-theme-on-primary, #fff);width:100%;width:var(--mdc-top-app-bar-width, 100%)}.mdc-top-app-bar--prominent #navigation ::slotted(*),.mdc-top-app-bar--prominent #actions ::slotted(*){align-self:flex-start}#navigation ::slotted(*),#actions ::slotted(*){--mdc-icon-button-ripple-opacity: 0.24}.mdc-top-app-bar--short-collapsed #actions ::slotted(*){transition:padding 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-top-app-bar__section--align-center{justify-content:center}.mdc-top-app-bar__section--align-center .mdc-top-app-bar__title{padding-left:0;padding-right:0}.center-title .mdc-top-app-bar__section--align-start,.center-title .mdc-top-app-bar__section--align-end{flex-basis:0}.mdc-top-app-bar--dense.mdc-top-app-bar--prominent .mdc-top-app-bar__section--align-center .mdc-top-app-bar__title{padding-left:0;padding-right:0}.mdc-top-app-bar--fixed-scrolled{box-shadow:var(--mdc-top-app-bar-fixed-box-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}`;
|
458
|
-
/**
|
459
|
-
* @license
|
460
|
-
* Copyright 2018 Google LLC
|
461
|
-
* SPDX-License-Identifier: Apache-2.0
|
462
|
-
*/let Ie=class extends Ae{};Ie.styles=[Se],Ie=Ht([r("mwc-top-app-bar")],Ie);
|
463
|
-
/**
|
464
|
-
* @license
|
465
|
-
* Copyright 2018 Google Inc.
|
466
|
-
*
|
467
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
468
|
-
* of this software and associated documentation files (the "Software"), to deal
|
469
|
-
* in the Software without restriction, including without limitation the rights
|
470
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
471
|
-
* copies of the Software, and to permit persons to whom the Software is
|
472
|
-
* furnished to do so, subject to the following conditions:
|
473
|
-
*
|
474
|
-
* The above copyright notice and this permission notice shall be included in
|
475
|
-
* all copies or substantial portions of the Software.
|
476
|
-
*
|
477
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
478
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
479
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
480
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
481
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
482
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
483
|
-
* THE SOFTWARE.
|
484
|
-
*/
|
485
|
-
var Ce=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.wasScrolled=!1,e}return Dt(e,t),e.prototype.handleTargetScroll=function(){this.adapter.getViewportScrollY()<=0?this.wasScrolled&&(this.adapter.removeClass(ge.FIXED_SCROLLED_CLASS),this.wasScrolled=!1):this.wasScrolled||(this.adapter.addClass(ge.FIXED_SCROLLED_CLASS),this.wasScrolled=!0)},e}(_e);
|
486
|
-
/**
|
487
|
-
* @license
|
488
|
-
* Copyright 2019 Google LLC
|
489
|
-
* SPDX-License-Identifier: Apache-2.0
|
490
|
-
*/
|
491
|
-
class Te extends Ae{constructor(){super(...arguments),this.mdcFoundationClass=Ce}barClasses(){return Object.assign(Object.assign({},super.barClasses()),{"mdc-top-app-bar--fixed":!0})}registerListeners(){this.scrollTarget.addEventListener("scroll",this.handleTargetScroll,we)}unregisterListeners(){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll)}}
|
492
|
-
/**
|
493
|
-
* @license
|
494
|
-
* Copyright 2019 Google LLC
|
495
|
-
* SPDX-License-Identifier: Apache-2.0
|
496
|
-
*/let Re=class extends Te{};Re.styles=[Se],Re=Ht([r("mwc-top-app-bar-fixed")],Re);
|
497
|
-
/**
|
498
|
-
* @license
|
499
|
-
* Copyright 2018 Google LLC
|
500
|
-
* SPDX-License-Identifier: Apache-2.0
|
501
|
-
*/
|
502
|
-
class ke extends st{constructor(){super(...arguments),this.disabled=!1,this.icon="",this.shouldRenderRipple=!1,this.rippleHandlers=new ie(()=>(this.shouldRenderRipple=!0,this.ripple))}renderRipple(){return this.shouldRenderRipple?j`
|
503
|
-
<mwc-ripple
|
504
|
-
.disabled="${this.disabled}"
|
505
|
-
unbounded>
|
506
|
-
</mwc-ripple>`:""}focus(){const t=this.buttonElement;t&&(this.rippleHandlers.startFocus(),t.focus())}blur(){const t=this.buttonElement;t&&(this.rippleHandlers.endFocus(),t.blur())}render(){return j`<button
|
507
|
-
class="mdc-icon-button"
|
508
|
-
aria-label="${this.ariaLabel||this.icon}"
|
509
|
-
aria-haspopup="${re(this.ariaHasPopup)}"
|
510
|
-
?disabled="${this.disabled}"
|
511
|
-
@focus="${this.handleRippleFocus}"
|
512
|
-
@blur="${this.handleRippleBlur}"
|
513
|
-
@mousedown="${this.handleRippleMouseDown}"
|
514
|
-
@mouseenter="${this.handleRippleMouseEnter}"
|
515
|
-
@mouseleave="${this.handleRippleMouseLeave}"
|
516
|
-
@touchstart="${this.handleRippleTouchStart}"
|
517
|
-
@touchend="${this.handleRippleDeactivate}"
|
518
|
-
@touchcancel="${this.handleRippleDeactivate}"
|
519
|
-
>${this.renderRipple()}
|
520
|
-
<i class="material-icons">${this.icon}</i>
|
521
|
-
<span
|
522
|
-
><slot></slot
|
523
|
-
></span>
|
524
|
-
</button>`}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()}}Ht([a({type:Boolean,reflect:!0})],ke.prototype,"disabled",void 0),Ht([a({type:String})],ke.prototype,"icon",void 0),Ht([ee,a({type:String,attribute:"aria-label"})],ke.prototype,"ariaLabel",void 0),Ht([ee,a({type:String,attribute:"aria-haspopup"})],ke.prototype,"ariaHasPopup",void 0),Ht([c("button")],ke.prototype,"buttonElement",void 0),Ht([p("mwc-ripple")],ke.prototype,"ripple",void 0),Ht([n()],ke.prototype,"shouldRenderRipple",void 0),Ht([d({passive:!0})],ke.prototype,"handleRippleMouseDown",null),Ht([d({passive:!0})],ke.prototype,"handleRippleTouchStart",null);
|
525
|
-
/**
|
526
|
-
* @license
|
527
|
-
* Copyright 2021 Google LLC
|
528
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
529
|
-
*/
|
530
|
-
const Oe=g`.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-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button:disabled{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38))}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--touch{margin-top:0px;margin-bottom:0px}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--touch{margin-top:0px;margin-bottom:0px}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}:host{display:inline-block;outline:none}:host([disabled]){pointer-events:none}:host{--mdc-ripple-color: currentcolor;-webkit-tap-highlight-color:transparent}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size, 48px);height:var(--mdc-icon-button-size, 48px);padding:calc( (var(--mdc-icon-button-size, 48px) - var(--mdc-icon-size, 24px)) / 2 )}.mdc-icon-button>i{position:absolute;top:0;padding-top:inherit}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size, 24px);height:var(--mdc-icon-size, 24px)}`;
|
531
|
-
/**
|
532
|
-
* @license
|
533
|
-
* Copyright 2018 Google LLC
|
534
|
-
* SPDX-License-Identifier: Apache-2.0
|
535
|
-
*/let $e=class extends ke{};$e.styles=[Oe],$e=Ht([r("mwc-icon-button")],$e);
|
536
|
-
/**
|
537
|
-
* @license
|
538
|
-
* Copyright 2020 Google LLC
|
539
|
-
* SPDX-License-Identifier: Apache-2.0
|
540
|
-
*/
|
541
|
-
class Ne extends st{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new ie(()=>(this.shouldRenderRipple=!0,this.ripple)),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:t=>{const e=t.type;this.onDown("mousedown"===e?"mouseup":"touchend",t)}}]}get text(){const t=this.textContent;return t?t.trim():""}render(){const t=this.renderText(),e=this.graphic?this.renderGraphic():j``,i=this.hasMeta?this.renderMeta():j``;return j`
|
542
|
-
${this.renderRipple()}
|
543
|
-
${e}
|
544
|
-
${t}
|
545
|
-
${i}`}renderRipple(){return this.shouldRenderRipple?j`
|
546
|
-
<mwc-ripple
|
547
|
-
.activated=${this.activated}>
|
548
|
-
</mwc-ripple>`:this.activated?j`<div class="fake-activated-ripple"></div>`:""}renderGraphic(){const t={multi:this.multipleGraphics};return j`
|
549
|
-
<span class="mdc-deprecated-list-item__graphic material-icons ${Rt(t)}">
|
550
|
-
<slot name="graphic"></slot>
|
551
|
-
</span>`}renderMeta(){return j`
|
552
|
-
<span class="mdc-deprecated-list-item__meta material-icons">
|
553
|
-
<slot name="meta"></slot>
|
554
|
-
</span>`}renderText(){const t=this.twoline?this.renderTwoline():this.renderSingleLine();return j`
|
555
|
-
<span class="mdc-deprecated-list-item__text">
|
556
|
-
${t}
|
557
|
-
</span>`}renderSingleLine(){return j`<slot></slot>`}renderTwoline(){return j`
|
558
|
-
<span class="mdc-deprecated-list-item__primary-text">
|
559
|
-
<slot></slot>
|
560
|
-
</span>
|
561
|
-
<span class="mdc-deprecated-list-item__secondary-text">
|
562
|
-
<slot name="secondary"></slot>
|
563
|
-
</span>
|
564
|
-
`}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(t,e){const i=()=>{window.removeEventListener(t,i),this.rippleHandlers.endPress()};window.addEventListener(t,i),this.rippleHandlers.startPress(e)}fireRequestSelected(t,e){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:e,selected:t}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const t of this.listeners)for(const e of t.eventNames)t.target.addEventListener(e,t.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const t of this.listeners)for(const e of t.eventNames)t.target.removeEventListener(e,t.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const t=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(t)}}Ht([c("slot")],Ne.prototype,"slotElement",void 0),Ht([p("mwc-ripple")],Ne.prototype,"ripple",void 0),Ht([a({type:String})],Ne.prototype,"value",void 0),Ht([a({type:String,reflect:!0})],Ne.prototype,"group",void 0),Ht([a({type:Number,reflect:!0})],Ne.prototype,"tabindex",void 0),Ht([a({type:Boolean,reflect:!0}),gt((function(t){t?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],Ne.prototype,"disabled",void 0),Ht([a({type:Boolean,reflect:!0})],Ne.prototype,"twoline",void 0),Ht([a({type:Boolean,reflect:!0})],Ne.prototype,"activated",void 0),Ht([a({type:String,reflect:!0})],Ne.prototype,"graphic",void 0),Ht([a({type:Boolean})],Ne.prototype,"multipleGraphics",void 0),Ht([a({type:Boolean})],Ne.prototype,"hasMeta",void 0),Ht([a({type:Boolean,reflect:!0}),gt((function(t){t?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")}))],Ne.prototype,"noninteractive",void 0),Ht([a({type:Boolean,reflect:!0}),gt((function(t){const e=this.getAttribute("role"),i="gridcell"===e||"option"===e||"row"===e||"tab"===e;i&&t?this.setAttribute("aria-selected","true"):i&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(t,"property")}))],Ne.prototype,"selected",void 0),Ht([n()],Ne.prototype,"shouldRenderRipple",void 0),Ht([n()],Ne.prototype,"_managingList",void 0);
|
565
|
-
/**
|
566
|
-
* @license
|
567
|
-
* Copyright 2021 Google LLC
|
568
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
569
|
-
*/
|
570
|
-
const Fe=g`:host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding, 16px);padding-right:var(--mdc-list-side-padding, 16px);outline:none;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host:focus{outline:none}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary, #6200ee);--mdc-ripple-color: var( --mdc-theme-primary, #6200ee )}:host([activated]) .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12);background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-deprecated-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-deprecated-list-item__meta{width:var(--mdc-list-item-meta-size, 24px);height:var(--mdc-list-item-meta-size, 24px);margin-left:auto;margin-right:0;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-item__meta.multi{width:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size, 24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-deprecated-list-item__meta ::slotted(.material-icons),.mdc-deprecated-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px) !important}.mdc-deprecated-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}[dir=rtl] .mdc-deprecated-list-item__meta,.mdc-deprecated-list-item__meta[dir=rtl]{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text ::slotted([for]),.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-deprecated-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-list-item__secondary-text ::slotted(*){color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-deprecated-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-group__subheader ::slotted(*){color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 40px);height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px) !important}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 16px)}[dir=rtl] :host([graphic=avatar]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=medium]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=large]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=avatar]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=medium]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=large]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=control]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 16px);margin-right:0}:host([graphic=icon]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 24px);height:var(--mdc-list-item-graphic-size, 24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 32px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px) !important}[dir=rtl] :host([graphic=icon]) .mdc-deprecated-list-item__graphic,:host([graphic=icon]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=medium]:not([twoLine])),:host([graphic=large]:not([twoLine])){height:72px}:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 56px);height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic.multi,:host([graphic=large]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px) !important}:host([graphic=large]){padding-left:0px}`;
|
571
|
-
/**
|
572
|
-
* @license
|
573
|
-
* Copyright 2020 Google LLC
|
574
|
-
* SPDX-License-Identifier: Apache-2.0
|
575
|
-
*/let ze=class extends Ne{};ze.styles=[Fe],ze=Ht([r("mwc-list-item")],ze);
|
576
|
-
/**
|
577
|
-
* @license
|
578
|
-
* Copyright 2020 Google Inc.
|
579
|
-
*
|
580
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
581
|
-
* of this software and associated documentation files (the "Software"), to deal
|
582
|
-
* in the Software without restriction, including without limitation the rights
|
583
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
584
|
-
* copies of the Software, and to permit persons to whom the Software is
|
585
|
-
* furnished to do so, subject to the following conditions:
|
586
|
-
*
|
587
|
-
* The above copyright notice and this permission notice shall be included in
|
588
|
-
* all copies or substantial portions of the Software.
|
589
|
-
*
|
590
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
591
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
592
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
593
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
594
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
595
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
596
|
-
* THE SOFTWARE.
|
597
|
-
*/
|
598
|
-
var Le="Unknown",De="Backspace",Pe="Enter",He="Spacebar",Me="PageUp",Ue="PageDown",Be="End",je="Home",Ve="ArrowLeft",Ge="ArrowUp",Xe="ArrowRight",qe="ArrowDown",Ye="Delete",Ke="Escape",We="Tab",Ze=new Set;Ze.add(De),Ze.add(Pe),Ze.add(He),Ze.add(Me),Ze.add(Ue),Ze.add(Be),Ze.add(je),Ze.add(Ve),Ze.add(Ge),Ze.add(Xe),Ze.add(qe),Ze.add(Ye),Ze.add(Ke),Ze.add(We);var Je=8,Qe=13,ti=32,ei=33,ii=34,ri=35,oi=36,ai=37,ni=38,si=39,di=40,ci=46,pi=27,li=9,mi=new Map;mi.set(Je,De),mi.set(Qe,Pe),mi.set(ti,He),mi.set(ei,Me),mi.set(ii,Ue),mi.set(ri,Be),mi.set(oi,je),mi.set(ai,Ve),mi.set(ni,Ge),mi.set(si,Xe),mi.set(di,qe),mi.set(ci,Ye),mi.set(pi,Ke),mi.set(li,We);var hi,ui,fi=new Set;function gi(t){var e=t.key;if(Ze.has(e))return e;var i=mi.get(t.keyCode);return i||Le}fi.add(Me),fi.add(Ue),fi.add(Be),fi.add(je),fi.add(Ve),fi.add(Ge),fi.add(Xe),fi.add(qe);var bi="mdc-list-item--activated",vi="mdc-list-item",yi="mdc-list-item--disabled",_i="mdc-list-item--selected",xi="mdc-list-item__text",wi="mdc-list-item__primary-text",Ei="mdc-list",Ai=((hi={})[""+bi]="mdc-list-item--activated",hi[""+vi]="mdc-list-item",hi[""+yi]="mdc-list-item--disabled",hi[""+_i]="mdc-list-item--selected",hi[""+wi]="mdc-list-item__primary-text",hi[""+Ei]="mdc-list",(ui={})[""+bi]="mdc-deprecated-list-item--activated",ui[""+vi]="mdc-deprecated-list-item",ui[""+yi]="mdc-deprecated-list-item--disabled",ui[""+_i]="mdc-deprecated-list-item--selected",ui[""+xi]="mdc-deprecated-list-item__text",ui[""+wi]="mdc-deprecated-list-item__primary-text",ui[""+Ei]="mdc-deprecated-list",ui),Si={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+vi+" button:not(:disabled),\n ."+vi+" a,\n ."+Ai[vi]+" button:not(:disabled),\n ."+Ai[vi]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+vi+" button:not(:disabled),\n ."+vi+" a,\n ."+vi+' input[type="radio"]:not(:disabled),\n .'+vi+' input[type="checkbox"]:not(:disabled),\n .'+Ai[vi]+" button:not(:disabled),\n ."+Ai[vi]+" a,\n ."+Ai[vi]+' input[type="radio"]:not(:disabled),\n .'+Ai[vi]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},Ii={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};
|
599
|
-
/**
|
600
|
-
* @license
|
601
|
-
* Copyright 2020 Google LLC
|
602
|
-
* SPDX-License-Identifier: Apache-2.0
|
603
|
-
*/
|
604
|
-
const Ci=(t,e)=>t-e,Ti=["input","button","textarea","select"];function Ri(t){return t instanceof Set}const ki=t=>{const e=t===Ii.UNSET_INDEX?new Set:t;return Ri(e)?new Set(e):new Set([e])};class Oi extends _t{constructor(t){super(Object.assign(Object.assign({},Oi.defaultAdapter),t)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=Ii.UNSET_INDEX,this.focusedItemIndex_=Ii.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return Si}static get numbers(){return Ii}static get defaultAdapter(){return{focusItemAtIndex:()=>{},getFocusedElementIndex:()=>0,getListItemCount:()=>0,isFocusInsideList:()=>!1,isRootFocused:()=>!1,notifyAction:()=>{},notifySelected:()=>{},getSelectedStateForElementIndex:()=>!1,setDisabledStateForElementIndex:()=>{},getDisabledStateForElementIndex:()=>!1,setSelectedStateForElementIndex:()=>{},setActivatedStateForElementIndex:()=>{},setTabIndexForElementIndex:()=>{},setAttributeForElementIndex:()=>{},getAttributeForElementIndex:()=>null}}setWrapFocus(t){this.wrapFocus_=t}setMulti(t){this.isMulti_=t;const e=this.selectedIndex_;if(t){if(!Ri(e)){const t=e===Ii.UNSET_INDEX;this.selectedIndex_=t?new Set:new Set([e])}}else if(Ri(e))if(e.size){const t=Array.from(e).sort(Ci);this.selectedIndex_=t[0]}else this.selectedIndex_=Ii.UNSET_INDEX}setVerticalOrientation(t){this.isVertical_=t}setUseActivatedClass(t){this.useActivatedClass_=t}getSelectedIndex(){return this.selectedIndex_}setSelectedIndex(t){this.isIndexValid_(t)&&(this.isMulti_?this.setMultiSelectionAtIndex_(ki(t)):this.setSingleSelectionAtIndex_(t))}handleFocusIn(t,e){e>=0&&this.adapter.setTabIndexForElementIndex(e,0)}handleFocusOut(t,e){e>=0&&this.adapter.setTabIndexForElementIndex(e,-1),setTimeout(()=>{this.adapter.isFocusInsideList()||this.setTabindexToFirstSelectedItem_()},0)}handleKeydown(t,e,i){const r="ArrowLeft"===gi(t),o="ArrowUp"===gi(t),a="ArrowRight"===gi(t),n="ArrowDown"===gi(t),s="Home"===gi(t),d="End"===gi(t),c="Enter"===gi(t),p="Spacebar"===gi(t);if(this.adapter.isRootFocused())return void(o||d?(t.preventDefault(),this.focusLastElement()):(n||s)&&(t.preventDefault(),this.focusFirstElement()));let l,m=this.adapter.getFocusedElementIndex();if(!(-1===m&&(m=i,m<0))){if(this.isVertical_&&n||!this.isVertical_&&a)this.preventDefaultEvent(t),l=this.focusNextElement(m);else if(this.isVertical_&&o||!this.isVertical_&&r)this.preventDefaultEvent(t),l=this.focusPrevElement(m);else if(s)this.preventDefaultEvent(t),l=this.focusFirstElement();else if(d)this.preventDefaultEvent(t),l=this.focusLastElement();else if((c||p)&&e){const e=t.target;if(e&&"A"===e.tagName&&c)return;this.preventDefaultEvent(t),this.setSelectedIndexOnAction_(m,!0)}this.focusedItemIndex_=m,void 0!==l&&(this.setTabindexAtIndex_(l),this.focusedItemIndex_=l)}}handleSingleSelection(t,e,i){t!==Ii.UNSET_INDEX&&(this.setSelectedIndexOnAction_(t,e,i),this.setTabindexAtIndex_(t),this.focusedItemIndex_=t)}focusNextElement(t){let e=t+1;if(e>=this.adapter.getListItemCount()){if(!this.wrapFocus_)return t;e=0}return this.adapter.focusItemAtIndex(e),e}focusPrevElement(t){let e=t-1;if(e<0){if(!this.wrapFocus_)return t;e=this.adapter.getListItemCount()-1}return this.adapter.focusItemAtIndex(e),e}focusFirstElement(){return this.adapter.focusItemAtIndex(0),0}focusLastElement(){const t=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(t),t}setEnabled(t,e){this.isIndexValid_(t)&&this.adapter.setDisabledStateForElementIndex(t,!e)}preventDefaultEvent(t){const e=(""+t.target.tagName).toLowerCase();-1===Ti.indexOf(e)&&t.preventDefault()}setSingleSelectionAtIndex_(t,e=!0){this.selectedIndex_!==t&&(this.selectedIndex_!==Ii.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),e&&this.adapter.setSelectedStateForElementIndex(t,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(t,!0),this.setAriaForSingleSelectionAtIndex_(t),this.selectedIndex_=t,this.adapter.notifySelected(t))}setMultiSelectionAtIndex_(t,e=!0){const i=((t,e)=>{const i=Array.from(t),r=Array.from(e),o={added:[],removed:[]},a=i.sort(Ci),n=r.sort(Ci);let s=0,d=0;for(;s<a.length||d<n.length;){const t=a[s],e=n[d];t!==e?void 0!==t&&(void 0===e||t<e)?(o.removed.push(t),s++):void 0!==e&&(void 0===t||e<t)&&(o.added.push(e),d++):(s++,d++)}return o})(ki(this.selectedIndex_),t);if(i.removed.length||i.added.length){for(const t of i.removed)e&&this.adapter.setSelectedStateForElementIndex(t,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(t,!1);for(const t of i.added)e&&this.adapter.setSelectedStateForElementIndex(t,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(t,!0);this.selectedIndex_=t,this.adapter.notifySelected(t,i)}}setAriaForSingleSelectionAtIndex_(t){this.selectedIndex_===Ii.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(t,Si.ARIA_CURRENT));const e=null!==this.ariaCurrentAttrValue_,i=e?Si.ARIA_CURRENT:Si.ARIA_SELECTED;this.selectedIndex_!==Ii.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,i,"false");const r=e?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(t,i,r)}setTabindexAtIndex_(t){this.focusedItemIndex_===Ii.UNSET_INDEX&&0!==t?this.adapter.setTabIndexForElementIndex(0,-1):this.focusedItemIndex_>=0&&this.focusedItemIndex_!==t&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(t,0)}setTabindexToFirstSelectedItem_(){let t=0;"number"==typeof this.selectedIndex_&&this.selectedIndex_!==Ii.UNSET_INDEX?t=this.selectedIndex_:Ri(this.selectedIndex_)&&this.selectedIndex_.size>0&&(t=Math.min(...this.selectedIndex_)),this.setTabindexAtIndex_(t)}isIndexValid_(t){if(t instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(0===t.size)return!0;{let e=!1;for(const i of t)if(e=this.isIndexInRange_(i),e)break;return e}}if("number"==typeof t){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return t===Ii.UNSET_INDEX||this.isIndexInRange_(t)}return!1}isIndexInRange_(t){const e=this.adapter.getListItemCount();return t>=0&&t<e}setSelectedIndexOnAction_(t,e,i){if(this.adapter.getDisabledStateForElementIndex(t))return;let r=t;if(this.isMulti_&&(r=new Set([t])),this.isIndexValid_(r)){if(this.isMulti_)this.toggleMultiAtIndex(t,i,e);else if(e||i)this.setSingleSelectionAtIndex_(t,e);else{this.selectedIndex_===t&&this.setSingleSelectionAtIndex_(Ii.UNSET_INDEX)}e&&this.adapter.notifyAction(t)}}toggleMultiAtIndex(t,e,i=!0){let r=!1;r=void 0===e?!this.adapter.getSelectedStateForElementIndex(t):e;const o=ki(this.selectedIndex_);r?o.add(t):o.delete(t),this.setMultiSelectionAtIndex_(o,i)}}var $i=Oi;
|
605
|
-
/**
|
606
|
-
* @license
|
607
|
-
* Copyright 2020 Google LLC
|
608
|
-
* SPDX-License-Identifier: Apache-2.0
|
609
|
-
*/const Ni=t=>t.hasAttribute("mwc-list-item");function Fi(){const t=this.itemsReadyResolver;this.itemsReady=new Promise(t=>this.itemsReadyResolver=t),t()}class zi extends ft{constructor(){super(),this.mdcAdapter=null,this.mdcFoundationClass=$i,this.activatable=!1,this.multi=!1,this.wrapFocus=!1,this.itemRoles=null,this.innerRole=null,this.innerAriaLabel=null,this.rootTabbable=!1,this.previousTabindex=null,this.noninteractive=!1,this.itemsReadyResolver=()=>{},this.itemsReady=Promise.resolve([]),this.items_=[];const t=function(t,e=50){let i;return function(r=!0){clearTimeout(i),i=setTimeout(()=>{t(r)},e)}}(this.layout.bind(this));this.debouncedLayout=(e=!0)=>{Fi.call(this),t(e)}}async getUpdateComplete(){const t=await super.getUpdateComplete();return await this.itemsReady,t}get items(){return this.items_}updateItems(){var t;const e=null!==(t=this.assignedElements)&&void 0!==t?t:[],i=[];for(const t of e)Ni(t)&&(i.push(t),t._managingList=this),t.hasAttribute("divider")&&!t.hasAttribute("role")&&t.setAttribute("role","separator");this.items_=i;const r=new Set;if(this.items_.forEach((t,e)=>{this.itemRoles?t.setAttribute("role",this.itemRoles):t.removeAttribute("role"),t.selected&&r.add(e)}),this.multi)this.select(r);else{const t=r.size?r.entries().next().value[1]:-1;this.select(t)}const o=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(o)}get selected(){const t=this.index;if(!Ri(t))return-1===t?null:this.items[t];const e=[];for(const i of t)e.push(this.items[i]);return e}get index(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}render(){const t=null===this.innerRole?void 0:this.innerRole,e=null===this.innerAriaLabel?void 0:this.innerAriaLabel,i=this.rootTabbable?"0":"-1";return j`
|
610
|
-
<!-- @ts-ignore -->
|
611
|
-
<ul
|
612
|
-
tabindex=${i}
|
613
|
-
role="${re(t)}"
|
614
|
-
aria-label="${re(e)}"
|
615
|
-
class="mdc-deprecated-list"
|
616
|
-
@keydown=${this.onKeydown}
|
617
|
-
@focusin=${this.onFocusIn}
|
618
|
-
@focusout=${this.onFocusOut}
|
619
|
-
@request-selected=${this.onRequestSelected}
|
620
|
-
@list-item-rendered=${this.onListItemConnected}>
|
621
|
-
<slot></slot>
|
622
|
-
${this.renderPlaceholder()}
|
623
|
-
</ul>
|
624
|
-
`}renderPlaceholder(){var t;const e=null!==(t=this.assignedElements)&&void 0!==t?t:[];return void 0!==this.emptyMessage&&0===e.length?j`
|
625
|
-
<mwc-list-item noninteractive>${this.emptyMessage}</mwc-list-item>
|
626
|
-
`:null}firstUpdated(){super.firstUpdated(),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}onFocusIn(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusIn(t,e)}}onFocusOut(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t);this.mdcFoundation.handleFocusOut(t,e)}}onKeydown(t){if(this.mdcFoundation&&this.mdcRoot){const e=this.getIndexOfTarget(t),i=t.target,r=Ni(i);this.mdcFoundation.handleKeydown(t,r,e)}}onRequestSelected(t){if(this.mdcFoundation){let e=this.getIndexOfTarget(t);if(-1===e&&(this.layout(),e=this.getIndexOfTarget(t),-1===e))return;if(this.items[e].disabled)return;const i=t.detail.selected,r=t.detail.source;this.mdcFoundation.handleSingleSelection(e,"interaction"===r,i),t.stopPropagation()}}getIndexOfTarget(t){const e=this.items,i=t.composedPath();for(const t of i){let i=-1;if(t.nodeType===Node.ELEMENT_NODE&&Ni(t)&&(i=e.indexOf(t)),-1!==i)return i}return-1}createAdapter(){return this.mdcAdapter={getListItemCount:()=>this.mdcRoot?this.items.length:0,getFocusedElementIndex:this.getFocusedItemIndex,getAttributeForElementIndex:(t,e)=>{if(!this.mdcRoot)return"";const i=this.items[t];return i?i.getAttribute(e):""},setAttributeForElementIndex:(t,e,i)=>{if(!this.mdcRoot)return;const r=this.items[t];r&&r.setAttribute(e,i)},focusItemAtIndex:t=>{const e=this.items[t];e&&e.focus()},setTabIndexForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.tabindex=e)},notifyAction:t=>{const e={bubbles:!0,composed:!0};e.detail={index:t};const i=new CustomEvent("action",e);this.dispatchEvent(i)},notifySelected:(t,e)=>{const i={bubbles:!0,composed:!0};i.detail={index:t,diff:e};const r=new CustomEvent("selected",i);this.dispatchEvent(r)},isFocusInsideList:()=>(t=>{const e=ut();if(!e.length)return!1;const i=e[e.length-1],r=new Event("check-if-focused",{bubbles:!0,composed:!0});let o=[];const a=t=>{o=t.composedPath()};return document.body.addEventListener("check-if-focused",a),i.dispatchEvent(r),document.body.removeEventListener("check-if-focused",a),-1!==o.indexOf(t)})(this),isRootFocused:()=>{const t=this.mdcRoot;return t.getRootNode().activeElement===t},setDisabledStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.disabled=e)},getDisabledStateForElementIndex:t=>{const e=this.items[t];return!!e&&e.disabled},setSelectedStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.selected=e)},getSelectedStateForElementIndex:t=>{const e=this.items[t];return!!e&&e.selected},setActivatedStateForElementIndex:(t,e)=>{const i=this.items[t];i&&(i.activated=e)}},this.mdcAdapter}selectUi(t,e=!1){const i=this.items[t];i&&(i.selected=!0,i.activated=e)}deselectUi(t){const e=this.items[t];e&&(e.selected=!1,e.activated=!1)}select(t){this.mdcFoundation&&this.mdcFoundation.setSelectedIndex(t)}toggle(t,e){this.multi&&this.mdcFoundation.toggleMultiAtIndex(t,e)}onListItemConnected(t){const e=t.target;this.layout(-1===this.items.indexOf(e))}layout(t=!0){t&&this.updateItems();const e=this.items[0];for(const t of this.items)t.tabindex=-1;e&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=e):e.tabindex=0),this.itemsReadyResolver()}getFocusedItemIndex(){if(!this.mdcRoot)return-1;if(!this.items.length)return-1;const t=ut();if(!t.length)return-1;for(let e=t.length-1;e>=0;e--){const i=t[e];if(Ni(i))return this.items.indexOf(i)}return-1}focusItemAtIndex(t){for(const t of this.items)if(0===t.tabindex){t.tabindex=-1;break}this.items[t].tabindex=0,this.items[t].focus()}focus(){const t=this.mdcRoot;t&&t.focus()}blur(){const t=this.mdcRoot;t&&t.blur()}}Ht([a({type:String})],zi.prototype,"emptyMessage",void 0),Ht([c(".mdc-deprecated-list")],zi.prototype,"mdcRoot",void 0),Ht([l("",!0,"*")],zi.prototype,"assignedElements",void 0),Ht([l("",!0,'[tabindex="0"]')],zi.prototype,"tabbableElements",void 0),Ht([a({type:Boolean}),gt((function(t){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(t)}))],zi.prototype,"activatable",void 0),Ht([a({type:Boolean}),gt((function(t,e){this.mdcFoundation&&this.mdcFoundation.setMulti(t),void 0!==e&&this.layout()}))],zi.prototype,"multi",void 0),Ht([a({type:Boolean}),gt((function(t){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(t)}))],zi.prototype,"wrapFocus",void 0),Ht([a({type:String}),gt((function(t,e){void 0!==e&&this.updateItems()}))],zi.prototype,"itemRoles",void 0),Ht([a({type:String})],zi.prototype,"innerRole",void 0),Ht([a({type:String})],zi.prototype,"innerAriaLabel",void 0),Ht([a({type:Boolean})],zi.prototype,"rootTabbable",void 0),Ht([a({type:Boolean,reflect:!0}),gt((function(t){var e,i;if(t){const t=null!==(i=null===(e=this.tabbableElements)||void 0===e?void 0:e[0])&&void 0!==i?i:null;this.previousTabindex=t,t&&t.setAttribute("tabindex","-1")}else!t&&this.previousTabindex&&(this.previousTabindex.setAttribute("tabindex","0"),this.previousTabindex=null)}))],zi.prototype,"noninteractive",void 0);
|
627
|
-
/**
|
628
|
-
* @license
|
629
|
-
* Copyright 2021 Google LLC
|
630
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
631
|
-
*/
|
632
|
-
const Li=g`@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{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`;
|
633
|
-
/**
|
634
|
-
* @license
|
635
|
-
* Copyright 2020 Google LLC
|
636
|
-
* SPDX-License-Identifier: Apache-2.0
|
637
|
-
*/let Di=class extends zi{};Di.styles=[Li],Di=Ht([r("mwc-list")],Di);var Pi=function(t,e,i,r){var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let Hi=class extends st{constructor(){super(),this.appName="",this.type="modal",this.navItems=[{label:"Vantage",icon:"teradata",iconCls:"covalent-icon"},{label:"Editor",icon:"product_editor",iconCls:"covalent-icon"},{label:"Sites",icon:"server",iconCls:"covalent-icon"},{label:"Data Protections",icon:"settings_backup_restore"},{label:"Identity",icon:"contacts"}],this.resizeEvent()}resizeEvent(){const t=window.matchMedia("(max-width: 800px)");t.matches&&"modal"!==this.type?(this.type="modal",this.requestUpdate()):t.matches||"dismissible"===this.type||(this.type="dismissible",this.requestUpdate())}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",()=>{this.resizeEvent()})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.resizeEvent)}renderNavItem(t,e){return e?j`<mwc-list-item class="home-item" @click=${this._onClickItem} graphic="avatar">
|
638
|
-
<span>${t.label}</span>
|
639
|
-
<mwc-icon slot="graphic" class="covalent-icon" >teradata_nocircle</mwc-icon>
|
640
|
-
<mwc-icon slot="graphic" class="home-icon">home</mwc-icon>
|
641
|
-
</mwc-list-item>`:j`<mwc-list-item @click=${this._onClickItem} graphic="avatar">
|
642
|
-
<span>${t.label}</span>
|
643
|
-
<mwc-icon class="${t.iconCls}" slot="graphic">${t.icon}</mwc-icon>
|
644
|
-
</mwc-list-item>`}render(){return j`
|
645
|
-
<mwc-drawer id="drawer" type="${this.type}" @MDCDrawer:closed="${this._drawerClosed}">
|
646
|
-
<div class="drawer-content">
|
647
|
-
<mwc-top-app-bar-fixed id="drawer-app-bar" >
|
648
|
-
<mwc-icon-button slot="navigationIcon" @click=${this._onClick} class="toggle-drawer" onClick="" icon="menu"></mwc-icon-button>
|
649
|
-
<svg slot="title" class="logo-light" style="width:100px;" viewBox="0 0 696 133" fit="" preserveAspectRatio="xMidYMid meet" focusable="false">
|
650
|
-
<path class="logo-text" fill="#354145" d="M78.882 72.796h45.059c-3.178-11.966-12.153-17.201-22.063-17.201-9.348 0-20.005 5.609-22.996 17.201zm70.3 17.388H78.134c2.43 13.462 11.965 21.689 23.37 21.689 7.292 0 16.453-.936 23.185-12.34l22.062 4.673C138.524 123.652 121.884 133 101.504 133c-26.362 0-47.864-20.006-47.864-49.36s21.502-49.547 48.238-49.547c24.867 0 46.368 19.258 47.304 47.678v8.413zM387.843 83.64c0-17.201-13.275-28.045-26.549-28.045-14.958 0-26.176 10.844-26.176 28.045s11.218 27.858 26.176 27.858c13.274 0 26.549-10.657 26.549-27.858zm24.68 46.555h-24.68v-8.039c-7.479 6.918-17.762 10.844-30.85 10.844-23.745 0-45.807-20.006-45.807-49.36s22.062-49.547 45.807-49.547c13.088 0 23.371 3.926 30.85 10.844v-44h24.68v129.258zM630.3 92.427c0 11.966-11.406 20.941-24.493 20.941-9.536 0-15.892-4.488-15.892-11.406 0-6.356 5.234-10.656 13.088-10.656H630.3v1.121zm-15.893-55.31v-.024h-34.108v20.565h34.108c9.536 0 15.893 4.107 15.893 13.455v1.497h-26.923c-23.559 0-37.021 11.966-37.021 29.914 0 18.322 14.21 30.476 35.525 30.476 12.714 0 22.062-4.3 28.419-10.47v7.665h23.558V69.244c0-22.162-15.615-31.627-39.451-32.127zM484.378 92.427c0 11.966-11.405 20.941-24.493 20.941-9.536 0-15.893-4.488-15.893-11.406 0-6.356 5.235-10.656 13.088-10.656h27.298v1.121zm-15.893-55.31v-.024h-34.108v20.565h34.108c9.535 0 15.893 4.107 15.893 13.455v1.497h-26.924c-23.559 0-37.02 11.966-37.02 29.914 0 18.322 14.21 30.476 35.524 30.476 12.714 0 22.062-4.3 28.42-10.47v7.665h23.557V69.244c0-22.162-15.614-31.627-39.45-32.127zM279.3 92.427c0 11.966-11.406 20.941-24.493 20.941-9.536 0-15.893-4.488-15.893-11.406 0-6.356 5.236-10.656 13.089-10.656H279.3v1.121zm-15.892-55.31v-.024h-34.109v20.565h34.109c9.535 0 15.892 4.107 15.892 13.455v1.497h-26.924c-23.558 0-37.02 11.966-37.02 29.914 0 18.322 14.21 30.476 35.525 30.476 12.714 0 22.062-4.3 28.419-10.47v7.665h23.558V69.244c0-22.162-15.614-31.627-39.45-32.127zM216.11 37.026c-15.144 0-25.989 6.043-33.467 16.887V36.899h-24.68v93.298h24.68v-30.102c0-25.989 10.47-42.319 33.28-42.319h1.121V37.029a141.28 141.28 0 00-.934-.003"></path>
|
651
|
-
<path class="logo-text" fill="#354145" d="M48.982 107.707c-3.753 1.408-7.691 2.295-10.654 2.295-8.226 0-13.648-4.86-13.648-16.079V57.09h25.302V36.898H24.68V14.007H0v81.786C0 121.408 14.584 133 36.646 133c7.792 0 15.233-1.662 24.835-6.801-5.117-5.076-9.814-11.399-12.499-18.492M558.509 109.788c-.988.138-1.923.214-2.776.214-8.226 0-13.648-4.86-13.648-16.079V57.09h25.983V36.898h-25.983V14.007h-24.681v81.786c0 25.615 14.584 37.207 36.647 37.207 5.389 0 10.251-.794 15.913-2.983-7.319-5.243-10.165-13.736-11.455-20.229"></path>
|
652
|
-
<path class="logo-dot" fill="#e46c42" d="M695.029 116.028c0 8.825-6.772 15.596-16.212 15.596s-16.212-6.771-16.212-15.596c0-8.413 6.772-15.801 16.212-15.801s16.212 7.388 16.212 15.801"></path>
|
653
|
-
</svg>
|
654
|
-
</mwc-top-app-bar-fixed>
|
655
|
-
|
656
|
-
<slot name="navigation"></slot>
|
657
|
-
|
658
|
-
<div style="display:flex; flex:1;"></div>
|
659
|
-
<div divider></div>
|
660
|
-
|
661
|
-
<slot name="user-menu"></slot>
|
662
|
-
</div>
|
663
|
-
|
664
|
-
<div slot="appContent" style="display: flex; flex-direction: row; height: 100%;">
|
665
|
-
<navigation-rail>
|
666
|
-
<mwc-icon-button @click=${this._onClick} class="toggle-drawer" onClick="" icon="menu"></mwc-icon-button>
|
667
|
-
|
668
|
-
<slot name="navigation-rail"></slot>
|
669
|
-
<div style="display:flex; flex:1;"></div>
|
670
|
-
|
671
|
-
<slot name="user-menu-rail"></slot>
|
672
|
-
</navigation-rail>
|
673
|
-
<div class="app-content">
|
674
|
-
<mwc-top-app-bar-fixed centerTitle>
|
675
|
-
<mwc-icon-button @click=${this._onClick} slot="navigationIcon" icon="menu"></mwc-icon-button>
|
676
|
-
<span slot="title">${this.appName}</span>
|
677
|
-
</mwc-top-app-bar-fixed>
|
678
|
-
<div class="app-inner-content">
|
679
|
-
<slot></slot>
|
680
|
-
</div>
|
681
|
-
</div>
|
682
|
-
</div>
|
683
|
-
</mwc-drawer>`}_drawerClosed(){var t;null===(t=this.navigationRail)||void 0===t||t.classList.remove("drawer-open")}_onClick(){var t,e,i,r;this.drawer.open=!(null===(t=this.drawer)||void 0===t?void 0:t.open),(null===(e=this.drawer)||void 0===e?void 0:e.open)?null===(i=this.navigationRail)||void 0===i||i.classList.add("drawer-open"):null===(r=this.navigationRail)||void 0===r||r.classList.remove("drawer-open"),this.dispatchEvent(new CustomEvent("count-changed"))}_onClickItem(){this.dispatchEvent(new CustomEvent("navigation-item-click"))}};Hi.styles=[zt],Pi([a()],Hi.prototype,"appName",void 0),Pi([a()],Hi.prototype,"type",void 0),Pi([a()],Hi.prototype,"navItems",void 0),Pi([c("mwc-drawer")],Hi.prototype,"drawer",void 0),Pi([c("navigation-rail")],Hi.prototype,"navigationRail",void 0),Hi=Pi([r("td-app-shell")],Hi);var Mi=g`:host{display:block;width:320px;height:100%;overflow:auto;margin-left:-1px;border-left:1px solid;border-right:1px solid;border-color:var(--mdc-theme-border,rgba(0,0,0,.12))}::slotted(mwc-icon){background-color:gray;color:#fff}@media only screen and (max-width:800px){:host{display:none}}`,Ui=function(t,e,i,r){var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let Bi=class extends st{render(){return j`
|
684
|
-
<slot></slot>
|
685
|
-
`}};Bi.styles=[Mi],Bi=Ui([r("td-mini-list")],Bi)}]);
|