Liferay.Loader.define("data-engine-js-components-web@1.0.79/js/custom/form/renderer/PaginatedVariant.es",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$react","../../../core/components/PageRenderer/DefaultVariant.es","../../../core/hooks/useConfig.es","../components/Pagination.es","../components/PaginationControls.es"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.Container=f;var a=c(n("@frontend-taglib-clay$clayui/button")),r=c(n("liferay!frontend-js-react-web$react")),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=a?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n("../../../core/components/PageRenderer/DefaultVariant.es")),i=n("../../../core/hooks/useConfig.es"),l=n("../components/Pagination.es"),u=n("../components/PaginationControls.es");function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function f({activePage:e,children:t,pageIndex:n,pages:s,readOnly:c,strings:f}){const{showSubmitButton:d,submitLabel:g}=(0,i.useConfig)();return r.default.createElement("div",{className:"ddm-form-page-container paginated"},r.default.createElement(o.Container,{activePage:e,pageIndex:n},t),n===e&&r.default.createElement(r.default.Fragment,null,!!s.length&&r.default.createElement(r.default.Fragment,null,r.default.createElement(l.Pagination,{activePage:e,pages:s}),r.default.createElement(u.PaginationControls,{activePage:e,readOnly:c,showSubmitButton:d,strings:f,submitLabel:g,total:s.length})),!s.length&&d&&r.default.createElement(a.default,{className:"float-right",id:"ddm-form-submit",type:"submit"},g)))}f.displayName="PaginatedVariant.Container"}}));
//# sourceMappingURL=PaginatedVariant.es.js.map