Liferay.Loader.define("@liferay/content-dashboard-web@2.0.85/js/components/DownloadSpreadsheetButton/DownloadSpreadsheetModal",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/loading-indicator","@frontend-taglib-clay$clayui/modal","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_interopRequireDefault(a("@frontend-taglib-clay$clayui/button")),l=_interopRequireDefault(a("@frontend-taglib-clay$clayui/loading-indicator")),n=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=r?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(a,l,n):a[l]=e[l]}a.default=e,t&&t.set(e,a);return a}(a("@frontend-taglib-clay$clayui/modal")),o=(_interopRequireDefault(a("liferay!frontend-js-react-web$prop-types")),_interopRequireDefault(a("liferay!frontend-js-react-web$react")));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const DownloadSpreadsheetModal=({disableSecondaryButton:e,secondaryButtonClickCallback:t,secondaryButtonText:a,setVisibilityCallback:i,show:u})=>{const{observer:d,onClose:c}=(0,n.useModal)({onClose:()=>i(!1)});return o.default.createElement(o.default.Fragment,null,u&&o.default.createElement(n.default,{center:!0,observer:d,status:"info",zIndex:2040},o.default.createElement(n.default.Header,null,Liferay.Language.get("file-generation-in-progress")),o.default.createElement(n.default.Body,null,o.default.createElement("p",null,Liferay.Language.get("your-xls-file-is-being-generated.-leaving-this-page-will-cancel-the-process.-do-you-want-to-wait-for-the-file"))),o.default.createElement(n.default.Footer,{last:o.default.createElement(r.default.Group,{spaced:!0},o.default.createElement(r.default,{className:"align-items-center d-flex",disabled:e,displayType:"secondary",onClick:()=>t(c)},e&&o.default.createElement(l.default,{className:"m-0 mr-2",small:!0})," ".concat(a)),o.default.createElement(r.default,{displayType:"info",onClick:c},Liferay.Language.get("wait")))})))};DownloadSpreadsheetModal.defaultProps={disableSecondaryButton:!1,secondaryButtonClickCallback:()=>{},secondaryButtonText:"",setVisibilityCallback:()=>{}};var i=DownloadSpreadsheetModal;t.default=i}}));
//# sourceMappingURL=DownloadSpreadsheetModal.js.map