(("undefined"!=typeof self?self:this).webpackChunkroomstay=("undefined"!=typeof self?self:this).webpackChunkroomstay||[]).push([[625],{91625:function(e,o,n){"use strict";n.r(o),n.d(o,{default:function(){return C}});var r=n(89331),t=n(23115),l=n(67294),a=n(64854),i=n(78886),A=n(39605),d=n(13010),c=n(89089),s=n(33744),m=n.n(s);function C(e){var o=(0,l.useRef)(null),n=(0,r.SQ)().onBodyClickExcept;return(0,l.useEffect)((function(){if(null!=o&&o.current){var r=n((function(){var o;null===(o=e.onClose)||void 0===o||o.call(e)}),o.current).remove;return function(){r()}}}),[e.open,o,e.onClose]),l.createElement(c.a,{preventScroll:!0,usePortal:!0,placement:"auto",open:e.open,onClose:e.onClose,strategy:"fixed",className:m().overlay,containerClassName:m()["overlay-container"]},l.createElement("div",{className:m().modal,ref:o},e.icon&&l.createElement("div",{className:m()["modal-icon"]},l.createElement(i.ZP,{icon:e.icon,size:"48px",color:t.Il.Danger})),l.createElement("div",{className:m()["modal-content"]},l.createElement("div",{className:"u-marg-bottom"},l.createElement(d.Z,{size:"large",bold:!0,align:A.P.Center},e.title)),l.createElement("div",{className:"u-marg-bottom"},e.children)),l.createElement(a.Z,{icon:i.Tu.Close,filled:!0,danger:!0,stopIconAnimation:!0,onClick:e.onClose,wide:!0},e.closeButtonText||"Close")))}},22965:function(e,o,n){(o=n(23645)(!0)).push([e.id,".ErrorModal-module__overlay___3gDkL{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);-webkit-tap-highlight-color:rgba(0,0,0,0);display:flex;justify-content:center;align-items:center}.ErrorModal-module__overlay-container___3HjHU{transform:none !important}.ErrorModal-module__modal___1NGf9{background-color:#fff;border-radius:4px;overflow:hidden;max-width:450px}.ErrorModal-module__modal-icon___1c23O{justify-content:center;display:flex;padding:16px 16px 0}.ErrorModal-module__modal-content___1tCl4{padding:24px;text-align:center}","",{version:3,sources:["ErrorModal.module.scss"],names:[],mappings:"AAAA,oCAAS,kBAAkB,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC,yCAAyC,CAAC,YAAY,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,8CAAmB,yBAAyB,CAAC,kCAAO,qBAAqB,CAAC,iBAAiB,CAAC,eAAe,CAAC,eAAe,CAAC,uCAAY,sBAAsB,CAAC,YAAY,CAAC,mBAAmB,CAAC,0CAAe,YAAY,CAAC,iBAAiB",file:"ErrorModal.module.scss",sourcesContent:[".overlay{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);-webkit-tap-highlight-color:rgba(0,0,0,0);display:flex;justify-content:center;align-items:center}.overlay-container{transform:none !important}.modal{background-color:#fff;border-radius:4px;overflow:hidden;max-width:450px}.modal-icon{justify-content:center;display:flex;padding:16px 16px 0}.modal-content{padding:24px;text-align:center}"]}]),o.locals={overlay:"ErrorModal-module__overlay___3gDkL","overlay-container":"ErrorModal-module__overlay-container___3HjHU",modal:"ErrorModal-module__modal___1NGf9","modal-icon":"ErrorModal-module__modal-icon___1c23O","modal-content":"ErrorModal-module__modal-content___1tCl4"},e.exports=o},33744:function(e,o,n){var r=n(93379),t=n(22965);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);r(t,{insert:"head",singleton:!1}),e.exports=t.locals||{}}}]);