Liferay.Loader.define("commerce-organization-web@5.0.52/js/modals/ModalProvider",["module","exports","require","@frontend-taglib-clay$clayui/modal","liferay!frontend-js-react-web$react","./AddAccountsModal","./AddOrganizationsModal","./InviteUsersModal"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function ModalProvider({active:r,closeModal:t,parentData:n,type:i}){const{observer:l,onClose:d}=(0,a.useModal)({onClose:t}),u=(0,o.useMemo)((()=>n&&e[i]),[n,i]);return r&&o.default.createElement(u,{closeModal:d,observer:l,parentData:n})};var a=t("@frontend-taglib-clay$clayui/modal"),o=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache();if(r&&r.has(e))return r.get(e);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=a?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(t,o,n):t[o]=e[o]}t.default=e,r&&r.set(e,t);return t}(t("liferay!frontend-js-react-web$react")),n=_interopRequireDefault(t("./AddAccountsModal")),i=_interopRequireDefault(t("./AddOrganizationsModal")),l=_interopRequireDefault(t("./InviteUsersModal"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}const e={account:n.default,organization:i.default,user:l.default}}}));
//# sourceMappingURL=ModalProvider.js.map