Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.105/admin/js/components/export-form/ExportFormModalBody",["module","exports","require","@frontend-taglib-clay$clayui/alert","@frontend-taglib-clay$clayui/form","liferay!frontend-js-react-web$react"],(function(e,t,a){var n;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(n=a("@frontend-taglib-clay$clayui/alert"))&&n.__esModule?n:{default:n},l=u(a("@frontend-taglib-clay$clayui/form")),i=u(a("liferay!frontend-js-react-web$react"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=n?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(a,r,l):a[r]=e[r]}return a.default=e,t&&t.set(e,a),a}var f=({csvExport:e="enabled-with-warning",fileExtensions:t,portletNamespace:a})=>{const[n,o]=(0,i.useState)(Object.keys(t)[0]);return i.default.createElement(i.default.Fragment,null,i.default.createElement(r.default,null,Liferay.Language.get("timezone-warning-message")),i.default.createElement(r.default,null,Liferay.Language.get("the-export-includes-data-from-all-fields-and-form-versions")),"csv"===n&&"enabled-with-warning"===e&&i.default.createElement(r.default,{displayType:"warning"},Liferay.Language.get("csv-warning-message")),"xls"===n&&i.default.createElement(i.default.Fragment,null,i.default.createElement(r.default,{displayType:"warning"},Liferay.Language.get("the-total-number-of-characters-that-a-cell-can-contain-is-32767-characters")),i.default.createElement(r.default,{displayType:"warning"},Liferay.Language.get("the-total-number-of-columns-that-a-worksheet-can-contain-is-256-columns"))),i.default.createElement(l.default.Group,null,i.default.createElement("label",{htmlFor:"".concat(a,"fileExtension")},Liferay.Language.get("file-extension")),i.default.createElement(l.ClaySelect,{id:"".concat(a,"fileExtension"),name:"".concat(a,"fileExtension"),onChange:({currentTarget:{value:e}})=>o(e),value:n},Object.entries(t).map((([t,a])=>"csv"===t&&"disabled"===e?null:i.default.createElement(l.ClaySelect.Option,{key:t,label:a,value:t}))))))};t.default=f}}));
//# sourceMappingURL=ExportFormModalBody.js.map