Liferay.Loader.define("@liferay/content-dashboard-web@2.0.69/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 l=d(a("@frontend-taglib-clay$clayui/button")),n=d(a("@frontend-taglib-clay$clayui/loading-indicator")),r=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 a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=l?Object.getOwnPropertyDescriptor(e,n):null;r&&(r.get||r.set)?Object.defineProperty(a,n,r):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("@frontend-taglib-clay$clayui/modal")),o=(d(a("liferay!frontend-js-react-web$prop-types")),d(a("liferay!frontend-js-react-web$react")));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}const e=({disableSecondaryButton:e,secondaryButtonClickCallback:t,secondaryButtonText:a,setVisibilityCallback:i,show:d})=>{const{observer:u,onClose:c}=(0,r.useModal)({onClose:()=>i(!1)});return o.default.createElement(o.default.Fragment,null,d&&o.default.createElement(r.default,{center:!0,observer:u,status:"info",zIndex:2040},o.default.createElement(r.default.Header,null,Liferay.Language.get("file-generation-in-progress")),o.default.createElement(r.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(r.default.Footer,{last:o.default.createElement(l.default.Group,{spaced:!0},o.default.createElement(l.default,{className:"align-items-center d-flex",disabled:e,displayType:"secondary",onClick:()=>t(c)},e&&o.default.createElement(n.default,{className:"m-0 mr-2",small:!0})," ".concat(a)),o.default.createElement(l.default,{displayType:"info",onClick:c},Liferay.Language.get("wait")))})))};e.defaultProps={disableSecondaryButton:!1,secondaryButtonClickCallback:()=>{},secondaryButtonText:"",setVisibilityCallback:()=>{}};var u=e;t.default=u}}));
//# sourceMappingURL=DownloadSpreadsheetModal.js.map