Liferay.Loader.define("account-admin-web@2.0.71/account_entries_admin/js/AccountEntriesAdminPortlet.es",["module","exports","require","frontend-js-web"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("frontend-js-web");class AccountEntriesAdminPortlet extends i.PortletBase{created(){this._handleTypeSelectChange=this._handleTypeSelectChange.bind(this)}attached(){const e=this.one("#type");e&&(this._updateVisibility(e),e.addEventListener("change",this._handleTypeSelectChange))}_handleTypeSelectChange(e){this._updateVisibility(e.currentTarget)}_updateVisibility(e){const t=this.one(".business-account-only");t&&t.classList.toggle("hide","person"===e.value)}detached(){super.detached();const e=this.one("#type");e&&e.removeEventListener("change",this._handleTypeSelectChange)}}var s=AccountEntriesAdminPortlet;t.default=s}}));
//# sourceMappingURL=AccountEntriesAdminPortlet.es.js.map