Initial Commit

This commit is contained in:
francop committed 2026-06-11 11:50:50 -04:00
commit d4a69c41be
2748 files changed
+80489

No files matched your search

@@ -0,0 +1,3 @@
/*! For license information please see 5385.507031145c8c6e16.js.LICENSE.txt */
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["5385"],{78611:function(e,t,i){i.d(t,{P:function(){return o}});i(71695),i(39527),i(41360),i(47021);const o=e=>(t,i)=>{if(t.constructor._observers){if(!t.constructor.hasOwnProperty("_observers")){const e=t.constructor._observers;t.constructor._observers=new Map,e.forEach(((e,i)=>t.constructor._observers.set(i,e)))}}else{t.constructor._observers=new Map;const e=t.updated;t.updated=function(t){e.call(this,t),t.forEach(((e,t)=>{const i=this.constructor._observers.get(t);void 0!==i&&i.call(this,this[t],e)}))}}t.constructor._observers.set(i,e)}},67840:function(e,t,i){i.d(t,{A:()=>b});var o=i("9065"),n=i("50778"),s=(i("19083"),i("71695"),i("92745"),i("40251"),i("61006"),i("47021"),i("1231"),i("57243")),a=i("35359"),r=i("13823"),l=i("79679"),d=i("88854");let c,h,p=e=>e;const u=(0,r.T)(s.oi);class g extends u{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute("open",""),this.show()):(this.removeAttribute("open"),this.close()))}constructor(){super(),this.quick=!1,this.returnValue="",this.noFocusTrap=!1,this.getOpenAnimation=()=>d.I,this.getCloseAnimation=()=>d.G,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.escapePressedWithoutCancel=!1,this.treewalker=s.sk?null:document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT),s.sk||this.addEventListener("submit",this.handleSubmit)}async show(){var e;this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;const t=this.dialog;if(t.open||!this.isOpening)return void(this.isOpening=!1);if(!this.dispatchEvent(new Event("open",{cancelable:!0})))return this.open=!1,void(this.isOpening=!1);t.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),null===(e=this.querySelector("[autofocus]"))||void 0===e||e.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event("opened")),this.isOpening=!1}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected)return void(this.open=!1);await this.updateComplete;const t=this.dialog;if(!t.open||this.isOpening)return void(this.open=!1);const i=this.returnValue;this.returnValue=e;this.dispatchEvent(new Event("close",{cancelable:!0}))?(await this.animateDialog(this.getCloseAnimation()),t.close(e),this.open=!1,this.dispatchEvent(new Event("closed"))):this.returnValue=i}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){const e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),t={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},i=this.open&&!this.noFocusTrap,o=(0,s.dy)(c||(c=p` <div class="focus-trap" tabindex="0" aria-hidden="true" @focus="${0}"></div> `),this.handleFocusTrapFocus),{ariaLabel:n}=this;return(0,s.dy)(h||(h=p` <div class="scrim"></div> <dialog class="${0}" aria-label="${0}" aria-labelledby="${0}" role="${0}" @cancel="${0}" @click="${0}" @close="${0}" @keydown="${0}" .returnValue="${0}"> ${0} <div class="container" @click="${0}"> <div class="headline"> <div class="icon" aria-hidden="true"> <slot name="icon" @slotchange="${0}"></slot> </div> <h2 id="headline" aria-hidden="${0}"> <slot name="headline" @slotchange="${0}"></slot> </h2> <md-divider></md-divider> </div> <div class="scroller"> <div class="content"> <div class="top anchor"></div> <slot name="content"></slot> <div class="bottom anchor"></div> </div> </div> <div class="actions"> <md-divider></md-divider> <slot name="actions" @slotchange="${0}"></slot> </div> </div> ${0} </dialog> `),(0,a.$)(t),n||s.Ld,this.hasHeadline?"headline":s.Ld,"alert"===this.type?"alertdialog":s.Ld,this.handleCancel,this.handleDialogClick,this.handleClose,this.handleKeydown,this.returnValue||s.Ld,i?o:s.Ld,this.handleContentClick,this.handleIconChange,!this.hasHeadline||s.Ld,this.handleHeadlineChange,this.handleActionsChange,i?o:s.Ld)}firstUpdated(){this.intersectionObserver=new IntersectionObserver((e=>{for(const t of e)this.handleAnchorIntersection(t)}),{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){if(this.nextClickIsFromContent)return void(this.nextClickIsFromContent=!1);!this.dispatchEvent(new Event("cancel",{cancelable:!0}))||this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){var t;const i=e.target,{submitter:o}=e;"dialog"===i.method&&o&&this.close(null!==(t=o.getAttribute("value"))&&void 0!==t?t:this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;const t=!(0,l.e)(this,e)Line truncated
//# sourceMappingURL=5385.507031145c8c6e16.js.map