"use strict";(("undefined"!=typeof self?self:this).webpackChunkroomstay=("undefined"!=typeof self?self:this).webpackChunkroomstay||[]).push([[439],{56439:function(e,c,t){t.d(c,{G:function(){return l}});var n=t(67294),a=t(26793),r=t(79478),o=t(10675),i=t(64485),l=function(e){var c,t=e.hotel,l=e.wrapperClassName,s=e.colClassName,u=e.CheckInRender,m=e.CheckOutRender,h=e.LineRender,f=(0,a.$)().t;if(!t)return n.createElement("div",{className:l},n.createElement("div",{className:"d-flex justify-content-center align-items-center",style:{width:"100%",height:"100%"}},n.createElement(i.Z,null)));var d=t.checkInTime,k=t.checkOutTime,p=null!==(c=t.roomGroups)&&void 0!==c?c:[],v=p.some((function(e){var c=e.checkInTime,t=e.checkOutTime;return!!c||!!t})),E=[],y=[];return v?p.forEach((function(e){var c=e.groupName,t=e.checkInTime,n=e.checkOutTime,a=t?o.Z.convert24To12hr(t):d,r=n?o.Z.convert24To12hr(n):k;E.push("".concat(c,": ").concat(a)),y.push("".concat(c,": ").concat(r))})):(E.push("".concat(f(r.W.Misc.After)," ").concat(d)),y.push("".concat(f(r.W.Misc.Before)," ").concat(k))),n.createElement("div",{className:l},n.createElement("div",{className:s},n.createElement(u,null),E.map((function(e,c){return n.createElement(h,{key:"checkin-".concat(c),line:e})}))),n.createElement("div",{className:s},n.createElement(m,null),y.map((function(e,c){return n.createElement(h,{key:"checkout-".concat(c),line:e})}))))}}}]);