Liferay.Loader.define("@liferay/document-library-web@6.0.163/document_library/js/checkin/CheckinModal.es",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/modal","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=_interopRequireDefault(t("@frontend-taglib-clay$clayui/button")),l=_interopRequireWildcard(t("@frontend-taglib-clay$clayui/form")),n=_interopRequireDefault(t("@frontend-taglib-clay$clayui/modal")),u=(_interopRequireDefault(t("liferay!frontend-js-react-web$prop-types")),_interopRequireWildcard(t("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 a=_getRequireWildcardCache();if(a&&a.has(e))return a.get(e);var t={},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(t,l,n):t[l]=e[l]}return t.default=e,a&&a.set(e,t),t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const noop=()=>{};var _default=({checkedOut:e,observer:a,onModalClose:t=noop,callback:i=noop,dlVersionNumberIncreaseValues:o})=>{const{MAJOR:c,MINOR:d,NONE:f}=o,[s,y]=(0,u.useState)(""),[g,p]=(0,u.useState)(e?c:d);return u.default.createElement(n.default,{observer:a,size:"md"},u.default.createElement(n.default.Header,null,Liferay.Language.get("describe-your-changes")),u.default.createElement("form",{"aria-label":Liferay.Language.get("increment-version"),onSubmit:e=>{e.preventDefault(),i(g,s)}},u.default.createElement(n.default.Body,null,u.default.createElement("fieldset",{className:"fieldset"},u.default.createElement("div",{className:"h5"},Liferay.Language.get("select-whether-this-is-a-major-or-minor-version")),u.default.createElement(l.ClayRadioGroup,{name:"versionIncrease",onChange:p,value:g},u.default.createElement(l.ClayRadio,{label:Liferay.Language.get("major-version"),value:c}),u.default.createElement(l.ClayRadio,{label:Liferay.Language.get("minor-version"),value:d}),u.default.createElement(l.ClayRadio,{label:Liferay.Language.get("keep-current-version-number"),value:f})),g!==f&&u.default.createElement(l.default.Group,null,u.default.createElement("label",{htmlFor:"changeLog"},Liferay.Language.get("version-notes")),u.default.createElement(l.ClayInput,{id:"changeLog",label:Liferay.Language.get("version-notes"),name:"changeLog",onChange:e=>{y(e.target.value)},type:"text"})))),u.default.createElement(n.default.Footer,{last:u.default.createElement(r.default.Group,{spaced:!0},u.default.createElement(r.default,{displayType:"secondary",onClick:t},Liferay.Language.get("cancel")),u.default.createElement(r.default,{displayType:"primary",type:"submit"},Liferay.Language.get("save")))})))};a.default=_default}}));
//# sourceMappingURL=CheckinModal.es.js.map