2 lines
21 KiB
JavaScript
2 lines
21 KiB
JavaScript
|
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([[1985],{58417:function(e,c,o){o.d(c,{A:function(){return g}});var d,a,r=o(88962),t=o(71650),i=o(33368),n=o(68308),m=o(34541),h=o(47838),k=o(69205),b=(o(22859),o(97393),o(43204)),l=(o(27763),o(38103)),s=o(18601),p=o(98734),x=o(5095),u=o(95260),_=o(53180),f=o(10694),g=function(e){function c(){var e;return(0,t.Z)(this,c),(e=(0,n.Z)(this,c,arguments)).checked=!1,e.indeterminate=!1,e.disabled=!1,e.name="",e.value="on",e.reducedTouchTarget=!1,e.animationClass="",e.shouldRenderRipple=!1,e.focused=!1,e.mdcFoundationClass=void 0,e.mdcFoundation=void 0,e.rippleElement=null,e.rippleHandlers=new p.A((function(){return e.shouldRenderRipple=!0,e.ripple.then((function(c){return e.rippleElement=c})),e.ripple})),e}return(0,k.Z)(c,e),(0,i.Z)(c,[{key:"createAdapter",value:function(){return{}}},{key:"update",value:function(e){var o=e.get("indeterminate"),d=e.get("checked"),a=e.get("disabled");if(void 0!==o||void 0!==d||void 0!==a){var r=this.calculateAnimationStateName(!!d,!!o,!!a),t=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass="".concat(r,"-").concat(t)}(0,m.Z)((0,h.Z)(c.prototype),"update",this).call(this,e)}},{key:"calculateAnimationStateName",value:function(e,c,o){return o?"disabled":c?"indeterminate":e?"checked":"unchecked"}},{key:"renderRipple",value:function(){return this.shouldRenderRipple?this.renderRippleTemplate():""}},{key:"renderRippleTemplate",value:function(){return(0,x.dy)(d||(d=(0,r.Z)(['<mwc-ripple .disabled="','" unbounded></mwc-ripple>'])),this.disabled)}},{key:"render",value:function(){var e=this.indeterminate||this.checked,c={"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":e,"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,x.dy)(a||(a=(0,r.Z)([' <div class="mdc-checkbox mdc-checkbox--upgraded ','"> <input type="checkbox" class="mdc-checkbox__native-control" name="','" aria-checked="','" aria-label="','" aria-labelledby="','" aria-describedby="','" data-indeterminate="','" ?disabled="','" .indeterminate="','" .checked="','" .value="','" @change="','" @focus="','" @blur="','" @mousedown="','" @mouseenter="','" @mouseleave="','" @touchstart="','" @touchend="','" @touchcancel="','"> <div class="mdc-checkbox__background" @animationend="','"> <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> '," </div>"])),(0,_.$)(c),(0,f.o)(this.name),(0,f.o)(o),(0,f.o)(this.ariaLabel),(0,f.o)(this.ariaLabelledBy),(0,f.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())}},{key:"setFormData",value:function(e){this.name&&this.checked&&e.append(this.name,this.value)}},{key:"handleFocus",value:function(){this.focused=!0,this.handleRippleFocus()}},{key:"handleBlur",value:function(){this.focused=!1,this.handleRippleBlur()}},{key:"handleRippleMouseDown",value:function(e){var c=this;window.addEventListener("mouseup",(function e(){window.removeEventListener("mouseup",e),c.handleRippleDeactivate()})),th
|
||
|
//# sourceMappingURL=1985.mTji3MQXkI8.js.map
|