Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.150/admin/js/components/export-form/ExportForm",["module","exports","require","@frontend-taglib-clay$clayui/modal","liferay!frontend-js-react-web$react","./ExportFormModal"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=t("@frontend-taglib-clay$clayui/modal"),a=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={},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(t,a,n):t[a]=e[a]}t.default=e,r&&r.set(e,t);return t}(t("liferay!frontend-js-react-web$react")),n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("./ExportFormModal"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}var _default=({csvExport:e,fileExtensions:r,portletNamespace:t})=>{const[l,i]=(0,a.useState)(""),[u,d]=(0,a.useState)(!1),{observer:c,onClose:f}=(0,o.useModal)({onClose:()=>d(!1)});return(0,a.useEffect)((()=>(Liferay.on("openExportFormModal",(({exportFormURL:e})=>{i(e),d(!0)})),()=>{Liferay.detach("openExportFormModal")})),[]),a.default.createElement(o.ClayModalProvider,null,u&&a.default.createElement(n.default,{csvExport:e,exportFormURL:l,fileExtensions:r,observer:c,onClose:f,portletNamespace:t}))};r.default=_default}}));
//# sourceMappingURL=ExportForm.js.map