homeassistant/custom_components/hacs/hacs_frontend_experimental/frontend_es5/7098.iMdGN77LUOM.js

3 lines
48 KiB
JavaScript
Raw Normal View History

2025-01-10 21:08:35 -08:00
/*! For license information please see 7098.iMdGN77LUOM.js.LICENSE.txt */
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([[7098],{8485:function(e,r,t){t.d(r,{a:function(){return x}});var i,o=t(88962),a=t(99312),n=t(81043),c=t(71650),d=t(33368),l=t(68308),s=t(69205),u=t(43204),p=t(72774),h={ROOT:"mdc-form-field"},v={LABEL_SELECTOR:".mdc-form-field > label"},m=function(e){function r(t){var i=e.call(this,(0,u.__assign)((0,u.__assign)({},r.defaultAdapter),t))||this;return i.click=function(){i.handleClick()},i}return(0,u.__extends)(r,e),Object.defineProperty(r,"cssClasses",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return v},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},r.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},r.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){e.adapter.deactivateInputRipple()}))},r}(p.K),b=t(78220),f=t(18601),g=t(14114),_=t(5095),y=t(95260),k=t(53180),x=function(e){function r(){var e;return(0,c.Z)(this,r),(e=(0,l.Z)(this,r,arguments)).alignEnd=!1,e.spaceBetween=!1,e.nowrap=!1,e.label="",e.mdcFoundationClass=m,e}return(0,s.Z)(r,e),(0,d.Z)(r,[{key:"createAdapter",value:function(){var e,r,t=this;return{registerInteractionHandler:function(e,r){t.labelEl.addEventListener(e,r)},deregisterInteractionHandler:function(e,r){t.labelEl.removeEventListener(e,r)},activateInputRipple:(r=(0,n.Z)((0,a.Z)().mark((function e(){var r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((r=t.input)instanceof f.Wg)){e.next=6;break}return e.next=4,r.ripple;case 4:(i=e.sent)&&i.startPress();case 6:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)}),deactivateInputRipple:(e=(0,n.Z)((0,a.Z)().mark((function e(){var r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((r=t.input)instanceof f.Wg)){e.next=6;break}return e.next=4,r.ripple;case 4:(i=e.sent)&&i.endPress();case 6:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}}},{key:"input",get:function(){var e,r;return null!==(r=null===(e=this.slottedInputs)||void 0===e?void 0:e[0])&&void 0!==r?r:null}},{key:"render",value:function(){var e={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return(0,_.dy)(i||(i=(0,o.Z)([' <div class="mdc-form-field ','"> <slot></slot> <label class="mdc-label" @click="','">',"</label> </div>"])),(0,k.$)(e),this._labelClick,this.label)}},{key:"click",value:function(){this._labelClick()}},{key:"_labelClick",value:function(){var e=this.input;e&&(e.focus(),e.click())}}]),r}(b.H);(0,u.__decorate)([(0,y.Cb)({type:Boolean})],x.prototype,"alignEnd",void 0),(0,u.__decorate)([(0,y.Cb)({type:Boolean})],x.prototype,"spaceBetween",void 0),(0,u.__decorate)([(0,y.Cb)({type:Boolean})],x.prototype,"nowrap",void 0),(0,u.__decorate)([(0,y.Cb)({type:String}),(0,g.P)(function(){var e=(0,n.Z)((0,a.Z)().mark((function e(r){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(t=this.input)||void 0===t||t.setAttribute("aria-label",r);case 1:case"end":return e.stop()}}),e,this)})));return function(r){return e.apply(this,arguments)}}())],x.prototype,"label",void 0),(0,u.__decorate)([(0,y.IO)(".mdc-form-field")],x.prototype,"mdcRoot",void 0),(0,u.__decorate)([(0,y.vZ)("",!0,"*")],x.prototype,"slottedInputs",void 0),(0,u.__decorate)([(0,y.IO)("label")],x.prototype,"labelEl",void 0)},92038:function(e,r,t){t.d(r,{W:function(){return a}});var i,o=t(88962),a=(0,t(5095).iv)(i||(i=(0,o.Z)([".mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-fam
//# sourceMappingURL=7098.iMdGN77LUOM.js.map