Liferay.Loader.define("account-admin-web@2.0.54/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 e 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 a=e;t.default=a}}));
//# sourceMappingURL=AccountEntriesAdminPortlet.es.js.map