import{_ as e,a as t,M as n,b as r}from"./p-816ec46a.js";var i={ROOT:"mdc-form-field"},a={LABEL_SELECTOR:".mdc-form-field > label"},u=function(n){function r(e){var i=n.call(this,t({},r.defaultAdapter,e))||this;return i.clickHandler_=function(){return i.handleClick_()},i}return e(r,n),Object.defineProperty(r,"cssClasses",{get:function(){return i},enumerable:!0,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return a},enumerable:!0,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),r.prototype.init=function(){this.adapter_.registerInteractionHandler("click",this.clickHandler_)},r.prototype.destroy=function(){this.adapter_.deregisterInteractionHandler("click",this.clickHandler_)},r.prototype.handleClick_=function(){var e=this;this.adapter_.activateInputRipple(),requestAnimationFrame(function(){return e.adapter_.deactivateInputRipple()})},r}(n),c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.attachTo=function(e){return new n(e)},Object.defineProperty(n.prototype,"input",{get:function(){return this.input_},set:function(e){this.input_=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"label_",{get:function(){return this.root_.querySelector(u.strings.LABEL_SELECTOR)},enumerable:!0,configurable:!0}),n.prototype.getDefaultFoundation=function(){var e=this;return new u({activateInputRipple:function(){e.input_&&e.input_.ripple&&e.input_.ripple.activate()},deactivateInputRipple:function(){e.input_&&e.input_.ripple&&e.input_.ripple.deactivate()},deregisterInteractionHandler:function(t,n){e.label_&&e.label_.removeEventListener(t,n)},registerInteractionHandler:function(t,n){e.label_&&e.label_.addEventListener(t,n)}})},n}(r);export{c as M};