Liferay.Loader.define("@liferay/document-library-web@6.0.111/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,c]=(0,o.useState)(!1),[u,i]=(0,o.useState)(),{observer:f,onClose:d}=(0,a.useModal)({onClose:()=>{c(!1)}});return(0,o.useEffect)((()=>{const e="".concat(r,"DocumentLibraryCheckinModal");return Liferay.component(e)||Liferay.component(e,{open:e=>{i((()=>e)),c(!0)}},{destroyOnNavigate:!0}),()=>{Liferay.destroyComponent(e)}}),[r]),o.default.createElement(o.default.Fragment,null,n&&o.default.createElement(l.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=c();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")),l=(n=r("./CheckinModal.es"))&&n.__esModule?n:{default:n};function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}}}));
//# sourceMappingURL=Checkin.es.js.map