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