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