Liferay.Loader.define("@liferay/document-library-web@6.0.154/document_library/js/checkin/Checkin.es",["module","exports","require","@frontend-taglib-clay$clayui/modal","liferay!frontend-js-react-web$react","./CheckinModal.es"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function Checkin({checkedOut:e,dlVersionNumberIncreaseValues:r,portletNamespace:t}){const[c,l]=(0,a.useState)(!1),[i,u]=(0,a.useState)(),{observer:d,onClose:f}=(0,n.useModal)({onClose:()=>{l(!1)}});return(0,a.useEffect)((()=>{const e="".concat(t,"DocumentLibraryCheckinModal");return Liferay.component(e)||Liferay.component(e,{open:e=>{u((()=>e)),l(!0)}},{destroyOnNavigate:!0}),()=>{Liferay.destroyComponent(e)}}),[t]),a.default.createElement(a.default.Fragment,null,c&&a.default.createElement(o.default,{callback:i,checkedOut:e,dlVersionNumberIncreaseValues:r,observer:d,onModalClose:f}))};var n=t("@frontend-taglib-clay$clayui/modal"),a=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache();if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(t,a,o):t[a]=e[a]}t.default=e,r&&r.set(e,t);return t}(t("liferay!frontend-js-react-web$react")),o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("./CheckinModal.es"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=Checkin.es.js.map