@vandeurenglenn/lite-elements 0.3.23 → 0.3.25

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.
@@ -0,0 +1 @@
1
+ import{F as e}from"./row-DNgwBcX5.js";customElements.define("flex-column",class FlexColumn extends e{constructor(){super(),this.direction="column"}});
@@ -1,4 +1,4 @@
1
- import{_ as t,a as e,e as o}from"./custom-element-BMhVvZjf.js";import{j as s,v as i,D as m}from"./property-Do5-bKhz.js";import{t as a}from"./query-D-PG8Oyh.js";import"./demo-icons.js";import"./section.js";import"./card.js";import"./theme.js";import"./divider.js";import"./button.js";import"./banner.js";import"./selector.js";import"./pages.js";import"./drawer.js";import"./drawer-button.js";import"./drawer-item.js";import"./section2.js";import"./drawer-layout.js";import"./top-app-bar-DZJ8jFM2.js";import"./icon.js";import"./typography.js";import"./pane.js";import"./supporting-pane.js";import"./tabs.js";import"./root.js";import"./dialog.js";import"./icon-set.js";import"./list-item.js";import"./menu.js";import"./icon-button.js";import"./dropdown-menu.js";import"./dropdown.js";import"./toggle.js";import"./toggle-button.js";import"./time-picker.js";import"./code.js";import"./elevation.js";import"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./scroll-mixin.js";import"./index-B3uz3f8C.js";import"./tab.js";import"./input.js";let c=(()=>{let c,u,n,r,l=[o("demo-shell")],p=[],d=m,g=[],b=[],y=[],w=[];return class extends d{static{u=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[a("custom-selector")],r=[a("custom-pages")],t(this,null,n,{kind:"accessor",name:"selector",static:!1,private:!1,access:{has:t=>"selector"in t,get:t=>t.selector,set:(t,e)=>{t.selector=e}},metadata:e},g,b),t(this,null,r,{kind:"accessor",name:"pages",static:!1,private:!1,access:{has:t=>"pages"in t,get:t=>t.pages,set:(t,e)=>{t.pages=e}},metadata:e},y,w),t(null,c={value:u},l,{kind:"class",name:u.name,metadata:e},null,p),u=c.value,e&&Object.defineProperty(u,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,g,void 0);get selector(){return this.#t}set selector(t){this.#t=t}#e=(e(this,b),e(this,y,void 0));get pages(){return this.#e}set pages(t){this.#e=t}connectedCallback(){this.selector.addEventListener("selected",(async({detail:t})=>{document.dispatchEvent(new CustomEvent("custom-scroll",{detail:{scrolling:!1}})),this.pages.select(t),localStorage.setItem("last-selected",t)}));const t=localStorage.getItem("last-selected");t&&(customElements.get("custom-serlector")?this.selector.select(t):(this.selector.select(t),this.pages.select(t)))}static styles=[s`
1
+ import{_ as t,a as e,e as o}from"./custom-element-BMhVvZjf.js";import{j as s,v as i,D as m}from"./property-Do5-bKhz.js";import{t as a}from"./query-D-PG8Oyh.js";import"./demo-icons.js";import"./section.js";import"./card.js";import"./theme.js";import"./divider.js";import"./button.js";import"./banner.js";import"./selector.js";import"./pages.js";import"./drawer.js";import"./drawer-button.js";import"./drawer-item.js";import"./section2.js";import"./drawer-layout.js";import"./top-app-bar.js";import"./icon.js";import"./typography.js";import"./pane.js";import"./supporting-pane.js";import"./tabs.js";import"./root.js";import"./dialog.js";import"./icon-set.js";import"./list-item.js";import"./menu.js";import"./icon-button.js";import"./dropdown-menu.js";import"./dropdown.js";import"./toggle.js";import"./toggle-button.js";import"./time-picker.js";import"./notification-Dwr0-l4e.js";import"./notifications.js";import"./code.js";import"./elevation.js";import"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./scroll-mixin.js";import"./column-D2XB0lDz.js";import"./row-DNgwBcX5.js";import"./index-B3uz3f8C.js";import"./tab.js";import"./input.js";let c=(()=>{let c,u,n,r,l=[o("demo-shell")],p=[],d=m,g=[],b=[],y=[],w=[];return class extends d{static{u=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[a("custom-selector")],r=[a("custom-pages")],t(this,null,n,{kind:"accessor",name:"selector",static:!1,private:!1,access:{has:t=>"selector"in t,get:t=>t.selector,set:(t,e)=>{t.selector=e}},metadata:e},g,b),t(this,null,r,{kind:"accessor",name:"pages",static:!1,private:!1,access:{has:t=>"pages"in t,get:t=>t.pages,set:(t,e)=>{t.pages=e}},metadata:e},y,w),t(null,c={value:u},l,{kind:"class",name:u.name,metadata:e},null,p),u=c.value,e&&Object.defineProperty(u,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,g,void 0);get selector(){return this.#t}set selector(t){this.#t=t}#e=(e(this,b),e(this,y,void 0));get pages(){return this.#e}set pages(t){this.#e=t}connectedCallback(){this.selector.addEventListener("selected",(async({detail:t})=>{document.dispatchEvent(new CustomEvent("custom-scroll",{detail:{scrolling:!1}})),this.pages.select(t),localStorage.setItem("last-selected",t)}));const t=localStorage.getItem("last-selected");t&&(customElements.get("custom-serlector")?this.selector.select(t):(this.selector.select(t),this.pages.select(t)))}static styles=[s`
2
2
  custom-drawer-layout {
3
3
  height: 100%;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{_ as e,a as t,e as a}from"./custom-element-BMhVvZjf.js";import{t as r,v as s,D as o}from"./property-Do5-bKhz.js";import"./drawer.js";import"./drawer-button.js";import"./drawer-item.js";import{F as n}from"./top-app-bar-DZJ8jFM2.js";import"./elevation.js";import"./button.js";import"./pane.js";import"./icon.js";import"./index-B3uz3f8C.js";import"./it-Dft_Rjy-.js";customElements.define("flex-column",class FlexColumn extends n{constructor(){super(),this.direction="column"}});let i=(()=>{let n,i,d,c,p,l,m,w,h=[a("custom-drawer-layout")],u=[],y=o,g=[],_=[],b=[],f=[],k=[],v=[],O=[],T=[],x=[],D=[],j=[],I=[];return class extends y{static{i=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;d=[r({type:Boolean,reflect:!0,attribute:"drawer-open"})],c=[r({type:Boolean,reflect:!0,attribute:"keep-closed"})],p=[r({type:Boolean,reflect:!0})],l=[r({type:String})],m=[r({type:String})],w=[r({type:String})],e(this,null,d,{kind:"accessor",name:"drawerOpen",static:!1,private:!1,access:{has:e=>"drawerOpen"in e,get:e=>e.drawerOpen,set:(e,t)=>{e.drawerOpen=t}},metadata:a},g,_),e(this,null,c,{kind:"accessor",name:"keepClosed",static:!1,private:!1,access:{has:e=>"keepClosed"in e,get:e=>e.keepClosed,set:(e,t)=>{e.keepClosed=t}},metadata:a},b,f),e(this,null,p,{kind:"accessor",name:"narrow",static:!1,private:!1,access:{has:e=>"narrow"in e,get:e=>e.narrow,set:(e,t)=>{e.narrow=t}},metadata:a},k,v),e(this,null,l,{kind:"accessor",name:"drawerType",static:!1,private:!1,access:{has:e=>"drawerType"in e,get:e=>e.drawerType,set:(e,t)=>{e.drawerType=t}},metadata:a},O,T),e(this,null,m,{kind:"accessor",name:"appBarType",static:!1,private:!1,access:{has:e=>"appBarType"in e,get:e=>e.appBarType,set:(e,t)=>{e.appBarType=t}},metadata:a},x,D),e(this,null,w,{kind:"accessor",name:"mainDrawerId",static:!1,private:!1,access:{has:e=>"mainDrawerId"in e,get:e=>e.mainDrawerId,set:(e,t)=>{e.mainDrawerId=t}},metadata:a},j,I),e(null,n={value:i},h,{kind:"class",name:i.name,metadata:a},null,u),i=n.value,a&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),t(i,u)}#e=t(this,g,!1);get drawerOpen(){return this.#e}set drawerOpen(e){this.#e=e}#t=(t(this,_),t(this,b,!1));get keepClosed(){return this.#t}set keepClosed(e){this.#t=e}#a=(t(this,f),t(this,k,!1));get narrow(){return this.#a}set narrow(e){this.#a=e}#r=(t(this,v),t(this,O,"modal"));get drawerType(){return this.#r}set drawerType(e){this.#r=e}#s=(t(this,T),t(this,x,"center-aligned"));get appBarType(){return this.#s}set appBarType(e){this.#s=e}#o=(t(this,D),t(this,j,crypto.randomUUID()));get mainDrawerId(){return this.#o}set mainDrawerId(e){this.#o=e}connectedCallback(){const e=matchMedia("(max-width: 860px)");this._onnarrow({detail:e.matches}),document.addEventListener("custom-pane-close",(({detail:e})=>{this.mainDrawerId===e&&(this.drawerOpen=!1)})),document.addEventListener("custom-pane-open",(({detail:e})=>{this.mainDrawerId!==e||this.keepClosed||(this.drawerOpen=!0)})),document.addEventListener("custom-theme-narrow",this._onnarrow)}_onnarrow({detail:e}){if(this.narrow=e,this.keepClosed)return this.drawerOpen=!1;this.drawerOpen=!e}_click=(t(this,I),()=>{this.narrow&&(this.drawerOpen=!this.drawerOpen)});render(){return s`<style>
1
+ import{_ as e,a as t,e as a}from"./custom-element-BMhVvZjf.js";import{t as r,v as s,D as o}from"./property-Do5-bKhz.js";import"./drawer.js";import"./drawer-button.js";import"./drawer-item.js";import"./top-app-bar.js";import"./column-D2XB0lDz.js";import"./elevation.js";import"./button.js";import"./pane.js";import"./icon.js";import"./index-B3uz3f8C.js";import"./it-Dft_Rjy-.js";import"./row-DNgwBcX5.js";let n=(()=>{let n,i,d,c,p,l,m,w,h=[a("custom-drawer-layout")],u=[],y=o,g=[],_=[],b=[],k=[],f=[],v=[],O=[],T=[],j=[],x=[],D=[],I=[];return class extends y{static{i=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;d=[r({type:Boolean,reflect:!0,attribute:"drawer-open"})],c=[r({type:Boolean,reflect:!0,attribute:"keep-closed"})],p=[r({type:Boolean,reflect:!0})],l=[r({type:String})],m=[r({type:String})],w=[r({type:String})],e(this,null,d,{kind:"accessor",name:"drawerOpen",static:!1,private:!1,access:{has:e=>"drawerOpen"in e,get:e=>e.drawerOpen,set:(e,t)=>{e.drawerOpen=t}},metadata:a},g,_),e(this,null,c,{kind:"accessor",name:"keepClosed",static:!1,private:!1,access:{has:e=>"keepClosed"in e,get:e=>e.keepClosed,set:(e,t)=>{e.keepClosed=t}},metadata:a},b,k),e(this,null,p,{kind:"accessor",name:"narrow",static:!1,private:!1,access:{has:e=>"narrow"in e,get:e=>e.narrow,set:(e,t)=>{e.narrow=t}},metadata:a},f,v),e(this,null,l,{kind:"accessor",name:"drawerType",static:!1,private:!1,access:{has:e=>"drawerType"in e,get:e=>e.drawerType,set:(e,t)=>{e.drawerType=t}},metadata:a},O,T),e(this,null,m,{kind:"accessor",name:"appBarType",static:!1,private:!1,access:{has:e=>"appBarType"in e,get:e=>e.appBarType,set:(e,t)=>{e.appBarType=t}},metadata:a},j,x),e(this,null,w,{kind:"accessor",name:"mainDrawerId",static:!1,private:!1,access:{has:e=>"mainDrawerId"in e,get:e=>e.mainDrawerId,set:(e,t)=>{e.mainDrawerId=t}},metadata:a},D,I),e(null,n={value:i},h,{kind:"class",name:i.name,metadata:a},null,u),i=n.value,a&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),t(i,u)}#e=t(this,g,!1);get drawerOpen(){return this.#e}set drawerOpen(e){this.#e=e}#t=(t(this,_),t(this,b,!1));get keepClosed(){return this.#t}set keepClosed(e){this.#t=e}#a=(t(this,k),t(this,f,!1));get narrow(){return this.#a}set narrow(e){this.#a=e}#r=(t(this,v),t(this,O,"modal"));get drawerType(){return this.#r}set drawerType(e){this.#r=e}#s=(t(this,T),t(this,j,"center-aligned"));get appBarType(){return this.#s}set appBarType(e){this.#s=e}#o=(t(this,x),t(this,D,crypto.randomUUID()));get mainDrawerId(){return this.#o}set mainDrawerId(e){this.#o=e}connectedCallback(){const e=matchMedia("(max-width: 860px)");this._onnarrow({detail:e.matches}),document.addEventListener("custom-pane-close",(({detail:e})=>{this.mainDrawerId===e&&(this.drawerOpen=!1)})),document.addEventListener("custom-pane-open",(({detail:e})=>{this.mainDrawerId!==e||this.keepClosed||(this.drawerOpen=!0)})),document.addEventListener("custom-theme-narrow",this._onnarrow)}_onnarrow({detail:e}){if(this.narrow=e,this.keepClosed)return this.drawerOpen=!1;this.drawerOpen=!e}_click=(t(this,I),()=>{this.narrow&&(this.drawerOpen=!this.drawerOpen)});render(){return s`<style>
2
2
  :host {
3
3
  --custom-drawer-width: 320px;
4
4
  display: flex;
@@ -93,4 +93,4 @@ import{_ as e,a as t,e as a}from"./custom-element-BMhVvZjf.js";import{t as r,v a
93
93
  <slot></slot>
94
94
  </main>
95
95
  </slot>
96
- </flex-column> `}},i})();export{i as CustomDrawerLayout};
96
+ </flex-column> `}},i})();export{n as CustomDrawerLayout};
@@ -1 +1 @@
1
- export{CustomCard}from"./card.js";export{CustomTheme}from"./theme.js";export{CustomDivider}from"./divider.js";export{CustomButton}from"./button.js";export{CustomBanner}from"./banner.js";export{CustomSelector}from"./selector.js";export{CustomPages}from"./pages.js";export{CustomDrawer}from"./drawer.js";export{CustomDrawerButton}from"./drawer-button.js";export{CustomDrawerItem}from"./drawer-item.js";export{CustomSection}from"./section2.js";export{CustomDrawerLayout}from"./drawer-layout.js";export{C as CustomTopAppBar}from"./top-app-bar-DZJ8jFM2.js";export{Icon as CustomIcon}from"./icon.js";export{CustomTypography}from"./typography.js";export{CustomPane}from"./pane.js";export{CustomSupportingPane}from"./supporting-pane.js";export{CustomTabs}from"./tabs.js";export{CustomRoot}from"./root.js";export{CustomDialog}from"./dialog.js";export{CustomIconSet}from"./icon-set.js";export{CustomListItem}from"./list-item.js";export{CustomMenu}from"./menu.js";export{CustomIconButton}from"./icon-button.js";export{CustomDropdownMenu}from"./dropdown-menu.js";export{CustomDropdown}from"./dropdown.js";export{CustomToggle}from"./toggle.js";export{CustomToggleButton}from"./toggle-button.js";export{CustomTimePicker}from"./time-picker.js";import"./custom-element-BMhVvZjf.js";import"./property-Do5-bKhz.js";import"./elevation.js";import"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./scroll-mixin.js";import"./index-B3uz3f8C.js";import"./query-D-PG8Oyh.js";import"./tab.js";import"./input.js";
1
+ export{CustomCard}from"./card.js";export{CustomTheme}from"./theme.js";export{CustomDivider}from"./divider.js";export{CustomButton}from"./button.js";export{CustomBanner}from"./banner.js";export{CustomSelector}from"./selector.js";export{CustomPages}from"./pages.js";export{CustomDrawer}from"./drawer.js";export{CustomDrawerButton}from"./drawer-button.js";export{CustomDrawerItem}from"./drawer-item.js";export{CustomSection}from"./section2.js";export{CustomDrawerLayout}from"./drawer-layout.js";export{CustomTopAppBar}from"./top-app-bar.js";export{Icon as CustomIcon}from"./icon.js";export{CustomTypography}from"./typography.js";export{CustomPane}from"./pane.js";export{CustomSupportingPane}from"./supporting-pane.js";export{CustomTabs}from"./tabs.js";export{CustomRoot}from"./root.js";export{CustomDialog}from"./dialog.js";export{CustomIconSet}from"./icon-set.js";export{CustomListItem}from"./list-item.js";export{CustomMenu}from"./menu.js";export{CustomIconButton}from"./icon-button.js";export{CustomDropdownMenu}from"./dropdown-menu.js";export{CustomDropdown}from"./dropdown.js";export{CustomToggle}from"./toggle.js";export{CustomToggleButton}from"./toggle-button.js";export{CustomTimePicker}from"./time-picker.js";export{C as CustomNotification}from"./notification-Dwr0-l4e.js";export{CustomNotifications}from"./notifications.js";import"./custom-element-BMhVvZjf.js";import"./property-Do5-bKhz.js";import"./elevation.js";import"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./scroll-mixin.js";import"./column-D2XB0lDz.js";import"./row-DNgwBcX5.js";import"./index-B3uz3f8C.js";import"./query-D-PG8Oyh.js";import"./tab.js";import"./input.js";
@@ -0,0 +1,91 @@
1
+ import{e as t,_ as e,a as i}from"./custom-element-BMhVvZjf.js";import{L as o}from"./index-B3uz3f8C.js";import{t as r,j as a,v as h,D as c}from"./property-Do5-bKhz.js";import"./column-D2XB0lDz.js";import"./row-DNgwBcX5.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2019 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */const l=globalThis,d=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),u=new WeakMap;let _=class n{constructor(t,e,i){if(this._$cssResult$=!0,i!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}};const m=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new _("string"==typeof t?t:t+"",void 0,p))(e)})(t):t
7
+ /**
8
+ * @license
9
+ * Copyright 2017 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */,{is:f,defineProperty:$,getOwnPropertyDescriptor:g,getOwnPropertyNames:y,getOwnPropertySymbols:v,getPrototypeOf:A}=Object,E=globalThis,w=E.trustedTypes,P=w?w.emptyScript:"",C=E.reactiveElementPolyfillSupport,U=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?P: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}},O=(t,e)=>!f(t,e),T={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:O};Symbol.metadata??=Symbol("metadata"),E.litPropertyMetadata??=new WeakMap;let N=class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=T){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&$(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=g(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const a=o?.call(this);r.call(this,e),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??T}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;const t=A(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(U("properties"))){const t=this.properties,e=[...y(t),...v(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}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(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(d)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=l.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:x).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??O)(this[t],e))return;this.P(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),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._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}};N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[U("elementProperties")]=new Map,N[U("finalized")]=new Map,C?.({ReactiveElement:N}),(E.reactiveElementVersions??=[]).push("2.0.4");
12
+ /**
13
+ * @license
14
+ * Copyright 2017 Google LLC
15
+ * SPDX-License-Identifier: BSD-3-Clause
16
+ */
17
+ const z=globalThis,j=z.trustedTypes,D=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",W=`lit$${(Math.random()+"").slice(9)}$`,q="?"+W,J=`<${q}>`,K=document,Z=()=>K.createComment(""),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,Q="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Y=/-->/g,tt=/>/g,et=RegExp(`>|${Q}(?:([^\\s"'>=/]+)(${Q}*=${Q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),st=/'/g,it=/"/g,ot=/^(?:script|style|textarea|title)$/i,rt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),nt=Symbol.for("lit-noChange"),at=Symbol.for("lit-nothing"),ht=new WeakMap,ct=K.createTreeWalker(K,129);function lt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==D?D.createHTML(e):e}const dt=(t,e)=>{const i=t.length-1,o=[];let r,a=2===e?"<svg>":"",h=X;for(let e=0;e<i;e++){const i=t[e];let c,l,d=-1,p=0;for(;p<i.length&&(h.lastIndex=p,l=h.exec(i),null!==l);)p=h.lastIndex,h===X?"!--"===l[1]?h=Y:void 0!==l[1]?h=tt:void 0!==l[2]?(ot.test(l[2])&&(r=RegExp("</"+l[2],"g")),h=et):void 0!==l[3]&&(h=et):h===et?">"===l[0]?(h=r??X,d=-1):void 0===l[1]?d=-2:(d=h.lastIndex-l[2].length,c=l[1],h=void 0===l[3]?et:'"'===l[3]?it:st):h===it||h===st?h=et:h===Y||h===tt?h=X:(h=et,r=void 0);const u=h===et&&t[e+1].startsWith("/>")?" ":"";a+=h===X?i+J:d>=0?(o.push(c),i.slice(0,d)+B+i.slice(d)+W+u):i+W+(-2===d?e:u)}return[lt(t,a+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};class V{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,a=0;const h=t.length-1,c=this.parts,[l,d]=dt(t,e);if(this.el=V.createElement(l,i),ct.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=ct.nextNode())&&c.length<h;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(B)){const e=d[a++],i=o.getAttribute(t).split(W),h=/([.?@])?(.*)/.exec(e);c.push({type:1,index:r,name:h[2],strings:i,ctor:"."===h[1]?k:"?"===h[1]?H:"@"===h[1]?I:R}),o.removeAttribute(t)}else t.startsWith(W)&&(c.push({type:6,index:r}),o.removeAttribute(t));if(ot.test(o.tagName)){const t=o.textContent.split(W),e=t.length-1;if(e>0){o.textContent=j?j.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Z()),ct.nextNode(),c.push({type:2,index:++r});o.append(t[e],Z())}}}else if(8===o.nodeType)if(o.data===q)c.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(W,t+1));)c.push({type:7,index:r}),t+=W.length-1}r++}}static createElement(t,e){const i=K.createElement("template");return i.innerHTML=t,i}}function pt(t,e,i=t,o){if(e===nt)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const a=F(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=pt(t,r._$AS(t,e.values),r,o)),e}let ut=class S{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??K).importNode(e,!0);ct.currentNode=o;let r=ct.nextNode(),a=0,h=0,c=i[0];for(;void 0!==c;){if(a===c.index){let e;2===c.type?e=new M(r,r.nextSibling,this,t):1===c.type?e=new c.ctor(r,c.name,c.strings,this,t):6===c.type&&(e=new L(r,this,t)),this._$AV.push(e),c=i[++h]}a!==c?.index&&(r=ct.nextNode(),a++)}return ct.currentNode=K,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}};class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=at,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}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=pt(this,t,e),F(t)?t===at||null==t||""===t?(this._$AH!==at&&this._$AR(),this._$AH=at):t!==this._$AH&&t!==nt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>G(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==at&&F(this._$AH)?this._$AA.nextSibling.data=t:this.T(K.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=V.createElement(lt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new ut(o,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=ht.get(t.strings);return void 0===e&&ht.set(t.strings,e=new V(t)),e}k(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new M(this.S(Z()),this.S(Z()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=at,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=at}_$AI(t,e=this,i,o){const r=this.strings;let a=!1;if(void 0===r)t=pt(this,t,e,0),a=!F(t)||t!==this._$AH&&t!==nt,a&&(this._$AH=t);else{const o=t;let h,c;for(t=r[0],h=0;h<r.length-1;h++)c=pt(this,o[i+h],e,h),c===nt&&(c=this._$AH[h]),a||=!F(c)||c!==this._$AH[h],c===at?t=at:t!==at&&(t+=(c??"")+r[h+1]),this._$AH[h]=c}a&&!o&&this.j(t)}j(t){t===at?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class k extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===at?void 0:t}}class H extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==at)}}class I extends R{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=pt(this,t,e,0)??at)===nt)return;const i=this._$AH,o=t===at&&i!==at||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==at&&(i===at||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class L{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){pt(this,t)}}const _t=z.litHtmlPolyfillSupport;_t?.(V,M),(z.litHtmlVersions??=[]).push("3.1.2");const mt=globalThis,ft=mt.ShadowRoot&&(void 0===mt.ShadyCSS||mt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$t=Symbol(),gt=new WeakMap;
18
+ /**
19
+ * @license
20
+ * Copyright 2019 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */let yt=class n{constructor(t,e,i){if(this._$cssResult$=!0,i!==$t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ft&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=gt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&gt.set(e,t))}return t}toString(){return this.cssText}};const vt=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>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[o+1]),t[0]);return new yt(i,t,$t)},bt=ft?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new yt("string"==typeof t?t:t+"",void 0,$t))(e)})(t):t
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */,{is:At,defineProperty:Et,getOwnPropertyDescriptor:St,getOwnPropertyNames:wt,getOwnPropertySymbols:Pt,getPrototypeOf:Ct}=Object,Ut=globalThis,xt=Ut.trustedTypes,Ot=xt?xt.emptyScript:"",Tt=Ut.reactiveElementPolyfillSupport,Rt=(t,e)=>t,Mt={toAttribute(t,e){switch(e){case Boolean:t=t?Ot: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}},Nt=(t,e)=>!At(t,e),kt={attribute:!0,type:String,converter:Mt,reflect:!1,hasChanged:Nt};Symbol.metadata??=Symbol("metadata"),Ut.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=kt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Et(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=St(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const a=o?.call(this);r.call(this,e),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??kt}static _$Ei(){if(this.hasOwnProperty(Rt("elementProperties")))return;const t=Ct(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Rt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Rt("properties"))){const t=this.properties,e=[...wt(t),...Pt(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}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(bt(t))}else void 0!==t&&e.push(bt(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(ft)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=mt.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:Mt).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Mt;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Nt)(this[t],e))return;this.P(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),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._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[Rt("elementProperties")]=new Map,b[Rt("finalized")]=new Map,Tt?.({ReactiveElement:b}),(Ut.reactiveElementVersions??=[]).push("2.0.4");
28
+ /**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */
33
+ class s extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new M(e.insertBefore(Z(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return nt}}s._$litElement$=!0,s.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:s});const Ht=globalThis.litElementPolyfillSupport;Ht?.({LitElement:s}),(globalThis.litElementVersions??=[]).push("4.0.4");
34
+ /**
35
+ * @license
36
+ * Copyright 2017 Google LLC
37
+ * SPDX-License-Identifier: BSD-3-Clause
38
+ */
39
+ const zt=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)}
40
+ /**
41
+ * @license
42
+ * Copyright 2017 Google LLC
43
+ * SPDX-License-Identifier: BSD-3-Clause
44
+ */,jt={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:O},Lt=(t=jt,e,i)=>{const{kind:o,metadata:r}=i;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=new Map),a.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function Dt(t){return(e,i)=>"object"==typeof i?Lt(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}function It(t,e,i,o,r,a){function h(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var c,l=o.kind,d="getter"===l?"get":"setter"===l?"set":"value",p=!e&&t?o.static?t:t.prototype:null,u=e||(p?Object.getOwnPropertyDescriptor(p,o.name):{}),_=!1,m=i.length-1;m>=0;m--){var f={};for(var $ in o)f[$]="access"===$?{}:o[$];for(var $ in o.access)f.access[$]=o.access[$];f.addInitializer=function(t){if(_)throw new TypeError("Cannot add initializers after decoration has completed");a.push(h(t||null))};var g=(0,i[m])("accessor"===l?{get:u.get,set:u.set}:u[d],f);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(c=h(g.get))&&(u.get=c),(c=h(g.set))&&(u.set=c),(c=h(g.init))&&r.unshift(c)}else(c=h(g))&&("field"===l?r.unshift(c):u[d]=c)}p&&Object.defineProperty(p,o.name,u),_=!0}function Bt(t,e,i){for(var o=arguments.length>2,r=0;r<e.length;r++)i=o?e[r].call(t,i):e[r].call(t);return o?i:void 0}"function"==typeof SuppressedError&&SuppressedError,globalThis.pubsub=globalThis.pubsub||new o(!0),(()=>{let e,i,o,l,d,p,u=[t("custom-icon")],_=[],m=c,f=[],$=[],g=[],y=[],v=[],A=[],E=[],w=[];(class extends m{static{i=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;o=[r()],l=[r({attribute:"icon"})],d=[r()],p=[r()],It(this,null,o,{kind:"accessor",name:"host",static:!1,private:!1,access:{has:t=>"host"in t,get:t=>t.host,set:(t,e)=>{t.host=e}},metadata:t},f,$),It(this,null,l,{kind:"accessor",name:"icon",static:!1,private:!1,access:{has:t=>"icon"in t,get:t=>t.icon,set:(t,e)=>{t.icon=e}},metadata:t},g,y),It(this,null,d,{kind:"accessor",name:"setName",static:!1,private:!1,access:{has:t=>"setName"in t,get:t=>t.setName,set:(t,e)=>{t.setName=e}},metadata:t},v,A),It(this,null,p,{kind:"accessor",name:"_icon",static:!1,private:!1,access:{has:t=>"_icon"in t,get:t=>t._icon,set:(t,e)=>{t._icon=e}},metadata:t},E,w),It(null,e={value:i},u,{kind:"class",name:i.name,metadata:t},null,_),i=e.value,t&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#t=Bt(this,f,void 0);get host(){return this.#t}set host(t){this.#t=t}#e=(Bt(this,$),Bt(this,g,this.innerHTML));get icon(){return this.#e}set icon(t){this.#e=t}#s=(Bt(this,y),Bt(this,v,void 0));get setName(){return this.#s}set setName(t){this.#s=t}#i=(Bt(this,A),Bt(this,E,void 0));get _icon(){return this.#i}set _icon(t){this.#i=t}onChange(t,e){"setName"===t&&(this.host=globalThis.pubsub.subscribers[`custom-icon-set-${e}-connected`]?.value,this.host||globalThis.pubsub.subscribe(`custom-icon-set-${e}-connected`,(t=>{t&&(this.host=t)}))),"icon"!==t&&"host"!==t||this.host&&this.icon&&(this._icon=this.host.getIcon(this.icon))}static styles=[a`
45
+ :host {
46
+ --__custom-icon-size: var(--custom-icon-size, 24px);
47
+ --custom-icon-color: var(--md-sys-color-on-surface);
48
+ display: flex;
49
+ height: var(--custom-icon-size, 24px);
50
+ width: var(--custom-icon-size, 24px);
51
+ }
52
+
53
+ svg {
54
+ fill: var(--custom-icon-color);
55
+ height: inherit;
56
+ width: inherit;
57
+ pointer-events: none;
58
+ }
59
+ `];connectedCallback(){this.setName=this.getAttribute("set-name")||"icons"}render(){return h` ${this._icon} `}constructor(){super(...arguments),Bt(this,w)}static{Bt(i,_)}})})();let Vt=(()=>{let t,o,r,a,h,c,l=[zt("custom-notification")],d=[],p=s,u=[],_=[],m=[],f=[],$=[],g=[],y=[],v=[];return class extends p{static{o=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;r=[Dt()],a=[Dt()],h=[Dt()],c=[Dt()],e(this,null,r,{kind:"accessor",name:"title",static:!1,private:!1,access:{has:t=>"title"in t,get:t=>t.title,set:(t,e)=>{t.title=e}},metadata:i},u,_),e(this,null,a,{kind:"accessor",name:"message",static:!1,private:!1,access:{has:t=>"message"in t,get:t=>t.message,set:(t,e)=>{t.message=e}},metadata:i},m,f),e(this,null,h,{kind:"accessor",name:"image",static:!1,private:!1,access:{has:t=>"image"in t,get:t=>t.image,set:(t,e)=>{t.image=e}},metadata:i},$,g),e(this,null,c,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:t=>"type"in t,get:t=>t.type,set:(t,e)=>{t.type=e}},metadata:i},y,v),e(null,t={value:o},l,{kind:"class",name:o.name,metadata:i},null,d),o=t.value,i&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})}#o=i(this,u,void 0);get title(){return this.#o}set title(t){this.#o=t}#r=(i(this,_),i(this,m,void 0));get message(){return this.#r}set message(t){this.#r=t}#n=(i(this,f),i(this,$,void 0));get image(){return this.#n}set image(t){this.#n=t}#a=(i(this,g),i(this,y,void 0));get type(){return this.#a}set type(t){this.#a=t}#h=(i(this,v),()=>{this.parentElement.removeChild(this)});static styles=vt`
60
+ :host {
61
+ display: flex;
62
+ align-items: flex-start;
63
+ font-size: 13px;
64
+ border: 1px solid;
65
+ border-radius: 12px;
66
+ padding: 6px 12px;
67
+ box-sizing: border-box;
68
+ margin-bottom: 12px;
69
+ }
70
+
71
+ flex-row {
72
+ height: 24px;
73
+ box-sizing: border-box;
74
+ align-items: center;
75
+ }
76
+
77
+ strong {
78
+ font-size: 14px;
79
+ }
80
+ `;render(){return rt`
81
+ ${this.image?rt`<img src=${this.image} />`:""}
82
+ <flex-column>
83
+ <flex-row>
84
+ <strong>${this.title}</strong>
85
+ <flex-it></flex-it>
86
+ <custom-icon icon="close" @click=${this.#h}></custom-icon>
87
+ </flex-row>
88
+
89
+ <p>${this.message}</p>
90
+ </flex-column>
91
+ `}static{i(o,d)}},o})();export{Vt as C,It as _,Bt as a};
@@ -0,0 +1 @@
1
+ import"./custom-element-BMhVvZjf.js";export{C as CustomNotification}from"./notification-Dwr0-l4e.js";import"./column-D2XB0lDz.js";import"./row-DNgwBcX5.js";import"./index-B3uz3f8C.js";import"./property-Do5-bKhz.js";
@@ -0,0 +1,359 @@
1
+ import{e,_ as t,a as s}from"./custom-element-BMhVvZjf.js";import{t as a,v as o,D as l,j as i}from"./property-Do5-bKhz.js";import{_ as r,a as n}from"./notification-Dwr0-l4e.js";import"./row-DNgwBcX5.js";import"./index-B3uz3f8C.js";import"./column-D2XB0lDz.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2022 Google LLC
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */(()=>{let t,s,i,c=[e("custom-elevation")],d=[],h=l,m=[],p=[];(class extends h{static{s=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;i=[a({type:Number,renders:!1})],r(this,null,i,{kind:"accessor",name:"level",static:!1,private:!1,access:{has:e=>"level"in e,get:e=>e.level,set:(e,t)=>{e.level=t}},metadata:e},m,p),r(null,t={value:s},c,{kind:"class",name:s.name,metadata:e},null,d),s=t.value,e&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),n(s,d)}#e=n(this,m,void 0);get level(){return this.#e}set level(e){this.#e=e}onChange(e,t){"level"===e&&this.style.setProperty("--md-elevation-level",String(t))}render(){return o`
7
+ <style>
8
+ :host {
9
+ --_level: var(--md-elevation-level, 0);
10
+ --_shadow-color: var(--md-sys-color-shadow);
11
+ display: flex;
12
+ pointer-events: none;
13
+ }
14
+
15
+ :host,
16
+ .shadow,
17
+ .shadow::before,
18
+ .shadow::after {
19
+ border-radius: inherit;
20
+ inset: 0;
21
+ position: absolute;
22
+ transition-duration: inherit;
23
+ transition-timing-function: inherit;
24
+ }
25
+
26
+ .shadow::before,
27
+ .shadow::after {
28
+ content: '';
29
+ transition-property: box-shadow, opacity;
30
+ }
31
+
32
+ .shadow::before {
33
+ box-shadow: 0px
34
+ calc(
35
+ 1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 3, 1) + 2 * clamp(0, var(--_level) - 4, 1))
36
+ )
37
+ calc(
38
+ 1px * (2 * clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 2, 1) + clamp(0, var(--_level) - 4, 1))
39
+ )
40
+ 0px var(--_shadow-color);
41
+ opacity: 0.3;
42
+ }
43
+
44
+ .shadow::after {
45
+ box-shadow: 0px
46
+ calc(
47
+ 1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 1, 1) + 2 * clamp(0, var(--_level) - 2, 3))
48
+ )
49
+ calc(1px * (3 * clamp(0, var(--_level), 2) + 2 * clamp(0, var(--_level) - 2, 3)))
50
+ calc(1px * (clamp(0, var(--_level), 4) + 2 * clamp(0, var(--_level) - 4, 1))) var(--_shadow-color);
51
+ opacity: 0.15;
52
+ }
53
+ </style>
54
+
55
+ <span class="shadow"></span>
56
+ `}constructor(){super(...arguments),n(this,p)}})})(),(()=>{let t,s,c,d,h,m,p=[e("custom-button")],u=[],v=l,y=[],g=[],b=[],f=[],_=[],x=[],w=[],k=[];(class extends v{static{s=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(v[Symbol.metadata]??null):void 0;c=[a({attribute:"has-icon",reflect:!0})],d=[a({attribute:"has-label",reflect:!0})],h=[a({attribute:"type",reflect:!0})],m=[a()],r(this,null,c,{kind:"accessor",name:"hasIcon",static:!1,private:!1,access:{has:e=>"hasIcon"in e,get:e=>e.hasIcon,set:(e,t)=>{e.hasIcon=t}},metadata:e},y,g),r(this,null,d,{kind:"accessor",name:"hasLabel",static:!1,private:!1,access:{has:e=>"hasLabel"in e,get:e=>e.hasLabel,set:(e,t)=>{e.hasLabel=t}},metadata:e},b,f),r(this,null,h,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:e},_,x),r(this,null,m,{kind:"accessor",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:e},w,k),r(null,t={value:s},p,{kind:"class",name:s.name,metadata:e},null,u),s=t.value,e&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=n(this,y,void 0);get hasIcon(){return this.#t}set hasIcon(e){this.#t=e}#s=(n(this,g),n(this,b,void 0));get hasLabel(){return this.#s}set hasLabel(e){this.#s=e}#a=(n(this,f),n(this,_,"text"));get type(){return this.#a}set type(e){this.#a=e}#o=(n(this,x),n(this,w,void 0));get label(){return this.#o}set label(e){this.#o=e}static styles=[i`
57
+ :host {
58
+ color: var(--custom-button-color, --md-sys-color-on-background);
59
+ display: flex;
60
+
61
+ height: 40px;
62
+ border-radius: 20px;
63
+ position: relative;
64
+ pointer-events: auto;
65
+ cursor: pointer;
66
+
67
+ --elevation-level: 0;
68
+ }
69
+
70
+ button {
71
+ box-sizing: border-box;
72
+ border: none;
73
+ background: transparent;
74
+ color: inherit;
75
+ align-items: center;
76
+ justify-content: center;
77
+ user-select: none;
78
+ outline: none;
79
+ cursor: pointer;
80
+ border-radius: inherit;
81
+ padding: none;
82
+ width: inherit;
83
+ height: inherit;
84
+ display: flex;
85
+ pointer-events: none;
86
+ }
87
+
88
+ .label,
89
+ ::slotted(*) {
90
+ font-family: var(--md-sys-typescale-label-large-font-family-name);
91
+ font-style: var(--md-sys-typescale-label-large-font-family-style);
92
+ font-weight: var(--md-sys-typescale-label-large-font-weight);
93
+ font-size: var(--md-sys-typescale-label-large-font-size);
94
+ letter-spacing: var(--md-sys-typescale-label-large-tracking);
95
+ line-height: var(--md-sys-typescale-label-large-height);
96
+ text-transform: var(--md-sys-typescale-label-large-text-transform);
97
+ text-decoration: var(--md-sys-typescale-label-large-text-decoration);
98
+ }
99
+
100
+ :host([type='filled']),
101
+ :host([type='filled']) ::slotted(*) {
102
+ color: var(--md-sys-color-on-primary);
103
+ fill: var(--md-sys-color-on-primary);
104
+ background: var(--md-sys-color-primary);
105
+ }
106
+
107
+ :host([type='outlined']),
108
+ :host([type='outlined']) ::slotted(*) {
109
+ color: var(--md-sys-color-on-surface);
110
+ fill: var(--md-sys-color-on-surface);
111
+ background: var(--md-sys-color-surface);
112
+ border: solid 1px;
113
+ border-color: var(--md-sys-color-outline);
114
+ }
115
+
116
+ :host([type='elevated']),
117
+ :host([type='elevated']) ::slotted(*) {
118
+ color: var(--md-sys-color-primary);
119
+ fill: var(--md-sys-color-primary);
120
+ background: var(--md-sys-color-surface-container-low);
121
+ }
122
+
123
+ :host([type='tertiary']),
124
+ :host([type='tertiary']) ::slotted(*) {
125
+ background: var(--md-sys-color-tertiary);
126
+ color: var(--md-sys-color-on-tertiary);
127
+ fill: var(--md-sys-color-on-tertiary);
128
+ }
129
+
130
+ :host([type='tonal']),
131
+ :host([type='tonal']) ::slotted(*) {
132
+ background: var(--md-sys-color-secondary-container);
133
+ color: var(--md-sys-color-on-seconday-container);
134
+ fill: var(--md-sys-color-on-seconday-container);
135
+ }
136
+
137
+ custom-elevation {
138
+ --md-elevation-level: var(--elevation-level);
139
+ }
140
+
141
+ :host([type='elevated']) custom-elevation {
142
+ --elevation-level: 1;
143
+ }
144
+
145
+ :host([type='filled']),
146
+ :host([type='outlined']),
147
+ :host([type='text']),
148
+ :host([type='tonal']) {
149
+ --elevation-level: 0;
150
+ }
151
+
152
+ :host([has-label]) .label {
153
+ padding-left: 24px;
154
+ padding-right: 24px;
155
+ }
156
+
157
+ :host([has-icon]:not([has-label])) {
158
+ border-radius: 50%;
159
+ width: 40px;
160
+ align-items: center;
161
+ justify-content: center;
162
+ }
163
+
164
+ :host([has-icon][has-label]) .label {
165
+ padding-left: 8px;
166
+ padding-right: 24px;
167
+ }
168
+ :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
169
+ padding-left: 16px;
170
+ }
171
+
172
+ :host([disabled]) .label,
173
+ :host([disabled]) slot[name='icon']::slotted(*) {
174
+ opacity: 0.38;
175
+ }
176
+
177
+ ::slotted(*) {
178
+ pointer-events: none;
179
+ }
180
+
181
+ :host(:focus),
182
+ :host(:hover) {
183
+ --elevation-level: 2;
184
+ }
185
+
186
+ :host(:active) {
187
+ --elevation-level: 0;
188
+ }
189
+
190
+ button * {
191
+ pointer-events: none;
192
+ }
193
+ `];connectedCallback(){const e=Array.from(this.shadowRoot.querySelectorAll("slot"));for(const t of e)t.addEventListener("slotchange",(()=>this.#l(t)));this.#l(e[0])}onChange(e,t){"label"===e&&(this.hasLabel=!!t)}#l=(n(this,k),e=>{"icon"===e.getAttribute("name")&&(this.hasIcon=0!==Array.from(e?.assignedNodes()||[]).length)});render(){return o`
194
+ <button label=${this.label}>
195
+ <custom-elevation></custom-elevation>
196
+ <slot name="icon"></slot>
197
+ <span class="label">${this.label}</span>
198
+ </button>
199
+ `}static{n(s,u)}})})(),(()=>{let t,s,i,c,d,h,m,p,u=[e("custom-pane")],v=[],y=l,g=[],b=[],f=[],_=[],x=[],w=[],k=[],S=[],j=[],z=[],L=[],I=[];(class extends y{static{s=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;i=[a({type:Boolean,reflect:!0})],c=[a({type:Boolean,reflect:!0})],d=[a({type:String,reflect:!0})],h=[a({type:Boolean,reflect:!0})],m=[a({type:Boolean,reflect:!0})],p=[a({type:String})],r(this,null,i,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:e=>"open"in e,get:e=>e.open,set:(e,t)=>{e.open=t}},metadata:e},g,b),r(this,null,c,{kind:"accessor",name:"mobile",static:!1,private:!1,access:{has:e=>"mobile"in e,get:e=>e.mobile,set:(e,t)=>{e.mobile=t}},metadata:e},f,_),r(this,null,d,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:e},x,w),r(this,null,h,{kind:"accessor",name:"left",static:!1,private:!1,access:{has:e=>"left"in e,get:e=>e.left,set:(e,t)=>{e.left=t}},metadata:e},k,S),r(this,null,m,{kind:"accessor",name:"right",static:!1,private:!1,access:{has:e=>"right"in e,get:e=>e.right,set:(e,t)=>{e.right=t}},metadata:e},j,z),r(this,null,p,{kind:"accessor",name:"id",static:!1,private:!1,access:{has:e=>"id"in e,get:e=>e.id,set:(e,t)=>{e.id=t}},metadata:e},L,I),r(null,t={value:s},u,{kind:"class",name:s.name,metadata:e},null,v),s=t.value,e&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),n(s,v)}#i=n(this,g,!1);get open(){return this.#i}set open(e){this.#i=e}#r=(n(this,b),n(this,f,!1));get mobile(){return this.#r}set mobile(e){this.#r=e}#a=(n(this,_),n(this,x,void 0));get type(){return this.#a}set type(e){this.#a=e}#n=(n(this,w),n(this,k,!0));get left(){return this.#n}set left(e){this.#n=e}#c=(n(this,S),n(this,j,!1));get right(){return this.#c}set right(e){this.#c=e}#d=(n(this,z),n(this,L,void 0));get id(){return this.#d}set id(e){this.#d=e}closePane(e){e.stopPropagation(),this.open=!1,document.dispatchEvent(new CustomEvent("custom-pane-close",{detail:this.id||""+(this.left?"left":"right")}))}render(){return o`<style>
200
+ :host {
201
+ --custom-pane-width: 100%;
202
+ display: flex;
203
+ flex-direction: column;
204
+ height: 100%;
205
+ background: var(--md-sys-color-surface);
206
+ color: var(--md-sys-color-on-surface);
207
+ position: relative;
208
+ /* border-radius: 12px; */
209
+
210
+ --md-elevation-level: 0;
211
+
212
+ pointer-events: none;
213
+ opacity: 0;
214
+ width: 100%;
215
+ max-width: var(--custom-pane-width);
216
+ transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
217
+ var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
218
+ }
219
+
220
+ :host([left]) {
221
+ border-radius: var(--md-sys-shape-corner-large-end);
222
+ transform: translateX(-100%);
223
+ z-index: 1002;
224
+ }
225
+
226
+ :host([right]) {
227
+ border-radius: var(--md-sys-shape-corner-large-start);
228
+ transform: translateX(100%);
229
+ z-index: 1001;
230
+ }
231
+
232
+ :host([mobile]) {
233
+ inset: 0;
234
+ position: fixed;
235
+ z-index: 1001;
236
+ }
237
+
238
+ :host([type='modal']) {
239
+ --md-elevation-level: 1;
240
+ }
241
+
242
+ :host([open]) {
243
+ transform: translateX(0);
244
+ opacity: 1;
245
+ pointer-events: auto;
246
+ transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
247
+ var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
248
+ }
249
+
250
+ :host([open]) {
251
+ position: relative;
252
+ }
253
+
254
+ :host([open][mobile]) {
255
+ position: fixed;
256
+ }
257
+
258
+ aside {
259
+ width: 100%;
260
+ height: 100%;
261
+ }
262
+
263
+ .content {
264
+ height: calc(100% - 54px);
265
+ width: 100%;
266
+ overflow-y: auto;
267
+ }
268
+
269
+ .footer {
270
+ height: 54px;
271
+ }
272
+
273
+ :host([right]) custom-button {
274
+ transform: rotateZ(180deg);
275
+ }
276
+ </style>
277
+ <custom-elevation></custom-elevation>
278
+ <aside>
279
+ <slot name="header">
280
+ <flex-row center>
281
+ <slot name="headline"></slot>
282
+ <flex-it></flex-it>
283
+ <custom-button @click=${e=>this.closePane(e)} .id=${this.id}>
284
+ <custom-icon slot="icon">menu_open</custom-icon>
285
+ </custom-button>
286
+ </flex-row>
287
+ </slot>
288
+ <flex-column class="content">
289
+ <slot name="content"></slot>
290
+ </flex-column>
291
+ <flex-row class="footer">
292
+ <slot name="footer"></slot>
293
+ </flex-row>
294
+ </aside> `}constructor(){super(...arguments),n(this,I)}})})();let c=(()=>{let r,n,c,d=[e("custom-notifications")],h=[],m=l,p=[],u=[];return class extends m{static{n=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;c=[a({type:Boolean,reflect:!0})],t(this,null,c,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:e=>"open"in e,get:e=>e.open,set:(e,t)=>{e.open=t}},metadata:e},p,u),t(null,r={value:n},d,{kind:"class",name:n.name,metadata:e},null,h),n=r.value,e&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#i=s(this,p,void 0);get open(){return this.#i}set open(e){this.#i=e}get#h(){return this.shadowRoot.querySelector(".list")}createNotification({title:e,message:t,image:s},a=3e3){const o=document.createElement("custom-notification");o.title=e,o.message=t,o.image=s,a&&setTimeout((()=>{this.removeChild(o);const a=document.createElement("custom-notification");a.image=s,a.title=e,a.message=t,this.#h.appendChild(a)}),a),this.appendChild(o)}#m(){const e=Array.from(this.#h.querySelectorAll("custom-notification"));for(const t of e)this.#h.removeChild(t);this.open=!1}static styles=[i`
295
+ :host {
296
+ display: flex;
297
+ flex-direction: column;
298
+ pointer-events: auto;
299
+ z-index: 10001;
300
+ position: absolute;
301
+ right: 0;
302
+ top: 0;
303
+ overflow: hidden;
304
+ width: 100%;
305
+ max-width: 320px;
306
+ height: auto;
307
+ box-sizing: border-box;
308
+ color: #eee;
309
+ pointer-events: none;
310
+ height: 100%;
311
+ }
312
+
313
+ :host([open]) {
314
+ background: rgb(51, 55, 80);
315
+ }
316
+
317
+ .recents {
318
+ display: block;
319
+ position: relative;
320
+ top: 12px;
321
+ right: 12px;
322
+ width: 100%;
323
+ pointer-events: none;
324
+
325
+ box-sizing: border-box;
326
+ padding: 12px;
327
+ }
328
+
329
+ .list {
330
+ padding: 24px;
331
+ height: 100%;
332
+ }
333
+
334
+ custom-icon {
335
+ pointer-events: auto;
336
+ }
337
+ `];render(){return o`
338
+ <flex-row style="margin-top: 12px;margin-right: 12px;">
339
+ <flex-it></flex-it>
340
+ <custom-icon
341
+ icon="notifications"
342
+ @click=${()=>{0!==this.#h.childElementCount&&(this.open=!this.open)}}
343
+ ></custom-icon>
344
+ </flex-row>
345
+
346
+ <span class="recents">
347
+ <slot></slot>
348
+ </span>
349
+
350
+ <custom-pane ?open=${this.open} right top>
351
+ <span slot="header"></span>
352
+ <flex-column class="list" slot="content"> </flex-column>
353
+
354
+ <flex-row slot="footer" width="100%">
355
+ <flex-it></flex-it>
356
+ <custom-icon style="margin-right: 24px;" icon="clear-all" @click="${this.#m}"></custom-icon>
357
+ </flex-row>
358
+ </custom-pane>
359
+ `}constructor(){super(...arguments),s(this,u)}static{s(n,h)}},n})();export{c as CustomNotifications};