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