Liferay.Loader.define("@liferay/document-library-preview-pdf@1.0.9/document_library_preview_pdf_settings/js/PDFPreviewLimit",["module","exports","require","@frontend-taglib-clay$clayui/form","frontend-js-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=_interopRequireWildcard(r("@frontend-taglib-clay$clayui/form")),n=r("frontend-js-web"),i=(function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("liferay!frontend-js-react-web$prop-types")),_interopRequireWildcard(r("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 _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 r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}var _default=({maxLimitSize:e,namespace:t,scopeLabel:r,value:l})=>{const[u,o]=(0,i.useState)(!1),[c,f]=(0,i.useState)(l);return i.default.createElement(a.default.Group,{className:u?"has-error":""},i.default.createElement("label",{htmlFor:"".concat(t,"maxNumberOfPages")},Liferay.Language.get("maximum-number-of-pages")),i.default.createElement(a.ClayInput,{"aria-label":Liferay.Language.get("maximum-number-of-pages"),autoFocus:!0,className:"form-control",min:0,name:"".concat(t,"maxNumberOfPages"),onChange:t=>{const r=t.target.value;f(r),o(e>0&&r>e)},type:"number",value:c}),u&&i.default.createElement(a.default.FeedbackGroup,null,i.default.createElement(a.default.FeedbackItem,null,i.default.createElement(a.default.FeedbackIndicator,{symbol:"info-circle"}),i.default.createElement("span",null,(0,n.sub)(Liferay.Language.get("this-limit-is-higher-than-x-limit-enter-maximum-number-of-pages-x"),r,e)))))};t.default=_default}}));
//# sourceMappingURL=PDFPreviewLimit.js.map