Liferay.Loader.define("@liferay/document-library-web@6.0.111/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=f(t("@frontend-taglib-clay$clayui/button")),l=i(t("@frontend-taglib-clay$clayui/form")),n=f(t("@frontend-taglib-clay$clayui/modal")),u=(f(t("liferay!frontend-js-react-web$prop-types")),i(t("liferay!frontend-js-react-web$react")));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=o();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 f(e){return e&&e.__esModule?e:{default:e}}const e=()=>{};var c=({checkedOut:a,observer:t,onModalClose:o=e,callback:i=e,dlVersionNumberIncreaseValues:f})=>{const{MAJOR:c,MINOR:d,NONE:s}=f,[y,g]=(0,u.useState)(""),[m,b]=(0,u.useState)(a?c:d);return u.default.createElement(n.default,{observer:t,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(m,y)}},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:b,value:m},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:s})),m!==s&&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=>{g(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:o},Liferay.Language.get("cancel")),u.default.createElement(r.default,{displayType:"primary",type:"submit"},Liferay.Language.get("save")))})))};a.default=c}}));
//# sourceMappingURL=CheckinModal.es.js.map