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 9570.b8c2a4c8a9c977b8.js.LICENSE.txt */
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["9570"],{92444:function(c,e,o){o.d(e,{A:function(){return l}});o(71695),o(47021);var d=o(9065),r=(o(16060),o(4428)),a=o(88618),t=o(91532),i=o(57243),n=o(50778),m=o(35359),h=o(20552);let k,b,s=c=>c;class l extends a.Wg{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new t.A((()=>(this.shouldRenderRipple=!0,this.ripple.then((c=>this.rippleElement=c)),this.ripple)))}createAdapter(){return{}}update(c){const e=c.get("indeterminate"),o=c.get("checked"),d=c.get("disabled");if(void 0!==e||void 0!==o||void 0!==d){const c=this.calculateAnimationStateName(!!o,!!e,!!d),r=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass=`${c}-${r}`}super.update(c)}calculateAnimationStateName(c,e,o){return o?"disabled":e?"indeterminate":c?"checked":"unchecked"}renderRipple(){return this.shouldRenderRipple?this.renderRippleTemplate():""}renderRippleTemplate(){return(0,i.dy)(k||(k=s`<mwc-ripple .disabled="${0}" unbounded></mwc-ripple>`),this.disabled)}render(){const c=this.indeterminate||this.checked,e={"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":c,"mdc-checkbox--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-checkbox--anim-checked-indeterminate":"checked-indeterminate"==this.animationClass,"mdc-checkbox--anim-checked-unchecked":"checked-unchecked"==this.animationClass,"mdc-checkbox--anim-indeterminate-checked":"indeterminate-checked"==this.animationClass,"mdc-checkbox--anim-indeterminate-unchecked":"indeterminate-unchecked"==this.animationClass,"mdc-checkbox--anim-unchecked-checked":"unchecked-checked"==this.animationClass,"mdc-checkbox--anim-unchecked-indeterminate":"unchecked-indeterminate"==this.animationClass},o=this.indeterminate?"mixed":void 0;return(0,i.dy)(b||(b=s` <div class="mdc-checkbox mdc-checkbox--upgraded ${0}"> <input type="checkbox" class="mdc-checkbox__native-control" name="${0}" aria-checked="${0}" aria-label="${0}" aria-labelledby="${0}" aria-describedby="${0}" data-indeterminate="${0}" ?disabled="${0}" .indeterminate="${0}" .checked="${0}" .value="${0}" @change="${0}" @focus="${0}" @blur="${0}" @mousedown="${0}" @mouseenter="${0}" @mouseleave="${0}" @touchstart="${0}" @touchend="${0}" @touchcancel="${0}"> <div class="mdc-checkbox__background" @animationend="${0}"> <svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24"> <path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path> </svg> <div class="mdc-checkbox__mixedmark"></div> </div> ${0} </div>`),(0,m.$)(e),(0,h.o)(this.name),(0,h.o)(o),(0,h.o)(this.ariaLabel),(0,h.o)(this.ariaLabelledBy),(0,h.o)(this.ariaDescribedBy),this.indeterminate?"true":"false",this.disabled,this.indeterminate,this.checked,this.value,this.handleChange,this.handleFocus,this.handleBlur,this.handleRippleMouseDown,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleTouchStart,this.handleRippleDeactivate,this.handleRippleDeactivate,this.resetAnimationClass,this.renderRipple())}setFormData(c){this.name&&this.checked&&c.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(c){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(c)}handleRippleTouchStart(c){this.rippleHandlers.startPress(c)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var c;return(null===(c=this.rippleElement)||void 0===c?void 0:c.isActive)||!1}}(0,d.gn)([(0,n.IO)(".mdc-checkbox")],l.prototype,"mdcRoot",void 0),(0,d.gn)([(0,n.IO)("input")],l.prototype,"formElement",void 0),(0,d.gn)([(0,n.Cb)({type:Boolean,reflect:!0})],l.prototype,"checked",void 0),(0,d.gn)([(0,n.Cb)({type:Boolean})],l.prototype,"indeterminate",void 0),(0,d.gn)([(0,n.Cb)({type:Boolean,reflect:!0})],l.prototype,"disabled",void 0),(0,d.gn)([(0,n.Cb)({type:String,reflect:!0})],l.prototype,"name",void 0),(0,d.gn)([(0,n.Cb)({type:String})],l.prototype,"value",void 0),(0,d.gn)([r.L,(0,n.Cb)({type:String,attribute:"aria-label"})],l.prototype,"ariaLabel",void 0),(0,d.gn)([r.L,(0,n.Cb)({type:String,attribute:"aria-labelledby"})],l.prototype,"ariaLabelledBy",void 0)Line truncated
//# sourceMappingURL=9570.b8c2a4c8a9c977b8.js.map