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