Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.84/admin/js/components/DefaultPage",["module","exports","require","@frontend-taglib-clay$clayui/button","data-engine-js-components-web","liferay!frontend-js-react-web$react","./DefaultPage.scss","./DefaultPageHeader"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(a("@frontend-taglib-clay$clayui/button")),l=a("data-engine-js-components-web"),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();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("liferay!frontend-js-react-web$react"));a("./DefaultPage.scss");var d=o(a("./DefaultPageHeader"));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}const e=({formDescription:e,formReportDataURL:t,formTitle:a,pageDescription:u,pageTitle:o,showPartialResultsToRespondents:f,showSubmitAgainButton:i})=>{const[c,s]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const e=document.querySelector(".portal-popup");return null==e||e.classList.add("lfr-ddm__default-page-background"),()=>{null==e||e.classList.remove("lfr-ddm__default-page-background")}}),[]),n.default.createElement(n.default.Fragment,null,n.default.createElement("div",{className:"container-fluid container-fluid-max-xl lfr-ddm__default-page"},n.default.createElement(d.default,{description:e,onClickBack:c?()=>s(!1):void 0,title:a}),c?n.default.createElement(l.PartialResults,{reportDataURL:t}):n.default.createElement("div",{className:"lfr-ddm__default-page-container"},n.default.createElement("h2",{className:"lfr-ddm__default-page-title"},o),n.default.createElement("p",{className:"lfr-ddm__default-page-description"},u),n.default.createElement("div",{className:"lfr-ddm__default-page-buttons"},i&&n.default.createElement(r.default,{displayType:"secondary",onClick:()=>window.location.reload()},Liferay.Language.get("submit-again")),f&&t&&n.default.createElement(r.default,{displayType:"secondary",onClick:()=>s(!0)},Liferay.Language.get("see-partial-results"))))))};e.displayName="DefaultPage";var f=e;t.default=f}}));
//# sourceMappingURL=DefaultPage.js.map