1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9509],{67312:function(e,s,l){"use strict";l.d(s,{Z:function(){return r}});var t=l(57437);l(2265);var a=l(78693),n=l(39155),i=l(49457);function r(e){let{currentHours:s,setOpenHourModal:l}=e,{searchFilter:r,setHourFilter:c}=(0,i.Z)(),o=e=>{l(e),c(e)},d=["1 Hour","2 Hours","3 Hours","4 Hours","5 Hours","6 Hours","7 Hours","8 Hours","9 Hours","10 Hours","11 Hours","12 Hours"];return(0,t.jsx)(a.Z,{sx:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:1,padding:"8px 16px"},children:null==d?void 0:d.map(e=>(0,t.jsx)(n.Z,{onClick:()=>o(e),sx:{color:s===e?"#007FFF":"#0C142A",border:s===e?"2px solid #CA6B1B":"2px solid transparent",borderRadius:"5px",fontSize:"small",fontWeight:"600","&:hover":{border:"2px solid #CA6B1B",backgroundColor:"#f5f5f5"}},children:e},e))})}},89913:function(e,s,l){"use strict";l.d(s,{Z:function(){return h}});var t=l(57437),a=l(49457),n=l(78693),i=l(96723),r=l(26156),c=l(39155),o=l(2265);let d=(e,s)=>e.getFullYear()===s.getFullYear()&&e.getMonth()===s.getMonth()&&e.getDate()===s.getDate();function h(e){let{setOpenTimeModal:s,selectedTime:l,dateSE:h}=e,x=d(new Date(h[0].startDate),new Date),{searchFilter:u,setTimeFilter:p}=(0,a.Z)(),[f,g]=(0,o.useState)("AM");(0,o.useEffect)(()=>{g(new Date().getHours()>=12?"PM":"AM")},[]);let Z="AM"===f?["12:00 AM","01:00 AM","02:00 AM","03:00 AM","04:00 AM","05:00 AM","06:00 AM","07:00 AM","08:00 AM","09:00 AM","10:00 AM","11:00 AM"]:["12:00 PM","01:00 PM","02:00 PM","03:00 PM","04:00 PM","05:00 PM","06:00 PM","07:00 PM","08:00 PM","09:00 PM","10:00 PM","11:00 PM"],j=e=>{s(e),p(e)};(()=>{let e=new Date,s=e.getHours(),l=e.getMinutes();return"".concat(s%12||12,":").concat(l<10?"0".concat(l):l," ").concat(s>=12?"PM":"AM")})();let m=e=>{if(!x&&new Date(u.checkin).setHours(0,0,0,0)!==new Date().setHours(0,0,0,0))return!1;let s=new Date,[l,t]=e.split(" "),[a,n]=l.split(":").map(Number),i=new Date;return i.setHours("PM"===t&&12!==a?a+12:"AM"===t&&12===a?0:a),i.setMinutes(n),i.setSeconds(0),i.setMilliseconds(0),i<s};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(n.Z,{sx:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:2,padding:"8px 16px",alignItems:"center"},children:[(0,t.jsx)(n.Z,{sx:{gridColumn:"span 4",textAlign:"center"},children:(0,t.jsxs)(i.Z,{value:f,exclusive:!0,onChange:(e,s)=>{null!==s&&g(s)},sx:{backgroundColor:"#F0F0F0",borderRadius:"12px",padding:"4px",boxShadow:"0px 4px 12px rgba(0, 0, 0, 0.1)"},children:[(0,t.jsx)(r.Z,{value:"AM",selected:"AM"===f,sx:{fontWeight:"600",padding:"6px 16px",color:"AM"===f?"#fff":"#000",backgroundColor:"AM"===f?"#CA6B1B":"#fff",borderRadius:"8px","&.Mui-selected":{backgroundColor:"#CA6B1B",color:"#fff"},"&:hover":{backgroundColor:"AM"===f?"#CA6B1B":"#E0E0E0"}},children:"AM"}),(0,t.jsx)(r.Z,{value:"PM",selected:"PM"===f,sx:{fontWeight:"600",padding:"6px 16px",color:"PM"===f?"#fff":"#000",backgroundColor:"PM"===f?"#CA6B1B":"#fff",borderRadius:"8px","&.Mui-selected":{backgroundColor:"#CA6B1B",color:"#fff"},"&:hover":{backgroundColor:"PM"===f?"#CA6B1B":"#E0E0E0"}},children:"PM"})]})}),Z.map(e=>(0,t.jsx)(c.Z,{onClick:()=>j(e),disabled:m(e),sx:{color:l===e?"#fff":"#000",backgroundColor:l===e?"#CA6B1B":"#fff",fontWeight:"600",borderRadius:"8px",border:"1px solid #E0E0E0",boxShadow:"0px 4px 12px rgba(0, 0, 0, 0.1)","&:hover":{backgroundColor:l===e?"#CA6B1B":"#E0E0E0"}},children:e},e))]})})}},47369:function(e,s,l){"use strict";l.d(s,{w:function(){return u}});var t=l(57437),a=l(2265),n=l(78693),i=l(95576),r=l(46387),c=l(8182),o=l(50290),d=l(39155),h=l(49457);let x=e=>{let{value:s,min:l,max:a,onChange:c}=e;return(0,t.jsxs)(n.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,t.jsx)(i.Z,{onClick:()=>s>l&&c(s-1),sx:{width:28,height:28,border:"1px solid #ff7a00",borderRadius:"8px",color:"#ff7a00",fontSize:"18px"},children:"-"}),(0,t.jsx)(r.Z,{sx:{fontSize:"16px",fontWeight:600,minWidth:"20px",textAlign:"center",color:"#ff7a00"},children:s}),(0,t.jsx)(i.Z,{onClick:()=>s<a&&c(s+1),sx:{width:28,height:28,border:"1px solid #ff7a00",borderRadius:"8px",color:"#ff7a00",fontSize:"18px"},children:"+"})]})},u=e=>{var s,l,i,u,p;let{onHideModal:f,handleGuestDateChangeBooking:g}=e,{searchFilter:Z,setGuestUpdatesValue:j}=(0,h.Z)(),[m,M]=(0,a.useState)((null==Z?void 0:null===(s=Z.guestdetail)||void 0===s?void 0:s.roomCount)||1),[y,v]=(0,a.useState)((null==Z?void 0:null===(l=Z.guestdetail)||void 0===l?void 0:l.guestCount)||2),[C,b]=(0,a.useState)((null==Z?void 0:null===(u=Z.guestdetail)||void 0===u?void 0:null===(i=u.childs)||void 0===i?void 0:i.length)||0),[k,w]=(0,a.useState)((null==Z?void 0:null===(p=Z.guestdetail)||void 0===p?void 0:p.childs)||[]),N=(e,s)=>{let l=[...k];l[e]=s,w(l)};return(0,t.jsxs)(n.Z,{sx:{p:2},children:[[{label:"Rooms",sub:"Minimum 1",value:m,setValue:M,min:1},{label:"Adults",sub:"13 years & above",value:y,setValue:v,min:m},{label:"Children",sub:"0-12 years",value:C,setValue:e=>{b(e),w(s=>{let l=[...s];for(;l.length<e;)l.push(0);return l.slice(0,e)})},min:0}].map(e=>{let{label:s,sub:l,value:a,setValue:i,min:c}=e;return(0,t.jsxs)(n.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",py:1.5,borderBottom:"1px solid #e5e5e5"},children:[(0,t.jsxs)(n.Z,{children:[(0,t.jsx)(r.Z,{sx:{fontWeight:600},children:s}),(0,t.jsx)(r.Z,{sx:{fontSize:"13px",color:"#777"},children:l})]}),(0,t.jsx)(x,{value:a,min:c,max:40,onChange:i})]},s)}),k.length>0&&(0,t.jsx)(n.Z,{sx:{mt:1.5,display:"flex",flexWrap:"wrap",gap:2},children:k.map((e,s)=>(0,t.jsxs)(n.Z,{children:[(0,t.jsxs)(r.Z,{sx:{fontSize:"13px",fontWeight:600,mb:.5},children:["Child ",s+1]}
1),(0,t.jsx)(c.Z,{value:e,onChange:e=>N(s,e.target.value),sx:{width:100,height:30,borderRadius:"10px",border:"1px solid #ff7a00"},children:[...Array(13).keys()].map(e=>(0,t.jsxs)(o.Z,{value:e,children:[e," years"]},e))})]},s))}),(0,t.jsx)(d.Z,{fullWidth:!0,sx:{backgroundImage:"linear-gradient(to right, #C55C04, #F5C10C)",color:"black",fontWeight:"600",padding:"8px 5px",fontSize:"large",mt:2},onClick:()=>{j({roomCount:m,guestCount:y,childs:k.filter(e=>e>0)}),f(),g()},children:"Done"})]})}},32630:function(e,s,l){"use strict";l.d(s,{y:function(){return x}});var t=l(57437),a=l(37685),n=l(77584),i=l(46387),r=l(11741),c=l(53431),o=l(93153),d=l(49457),h=l(2265);let x=e=>{let{setsearchCity:s,searchCity:l,data:x,defaultCities:u,setOpenCityModal:p}=e,{searchFilter:f,setDateFilter:g,setSearchValue:Z,searchCollection:j,resetSearchFilter:m}=(0,d.Z)(),[M,y]=(0,h.useState)(!1),[v,C]=(0,h.useState)((null==f?void 0:f.search)||null),b=e=>{Z(e),C(e),s(""),y(!1),p(!1)},k=e=>{b(e),y(!1)};return(0,h.useEffect)(()=>{""===l&&y(!1)},[l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Z,{value:v,options:x,getOptionLabel:e=>e.name,renderOption:(e,s)=>(0,t.jsxs)("li",{...e,children:[(0,t.jsx)(o.Z,{sx:{marginRight:"8px"}}),s.name]}),popupIcon:!1,noOptionsText:"",onInputChange:(e,l)=>{s(l),y(l.length>0&&x.length>0)},onChange:(e,s)=>{s?b(s):y(!1)},onClose:()=>y(!1),renderInput:e=>(0,t.jsx)(n.Z,{...e,placeholder:"Search Hotel/City"})}),(0,t.jsx)(i.Z,{variant:"body2",sx:{mt:2},children:"Most Popular"}),u.slice(0,4).map((e,s)=>(0,t.jsxs)(r.Z,{onClick:()=>k(e),sx:{display:"flex",mt:1,cursor:"pointer"},children:[(0,t.jsx)(c.Z,{sx:{minWidth:"25px"},children:(0,t.jsx)(o.Z,{})}),(0,t.jsx)(i.Z,{variant:"body2",sx:{color:"gray",fontSize:"medium",ml:.5},children:e.name})]},s))]})}},19509:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return R}});var t=l(57437),a=l(1e4),n=l(2265),i=l(45593),r=l(78693),c=l(46387),o=l(35791),d=l(79507),h=l(95576),x=l(17972),u=l(8350),p=l(22643),f=l(48387),g=l(5134),Z=l(20712),j=l(79895),m=l(65187),M=l(81705);l(58453),l(48700);var y=l(32630);l(47369);var v=l(49457),C=l(68575),b=l(54080),k=l(82776),w=l(27210),N=l(27648),S=l(39167),D=l(61699),A=l(89913),P=l(99376),H=l(67312),E=l(7082),B=l(12536);function R(e){var s,l,R,_;let{searchHandle:W,onCloseModal:I}=e,T=(0,P.usePathname)(),[z,F]=(0,n.useState)(!1),O=new Date,{searchFilter:V,setDateFilter:L,handleBookingType:K,searchCollection:U}=(0,v.Z)(),G=(0,C.oR)(),[Y,X]=(0,n.useState)(""),[q,J]=(0,n.useState)(""),[Q,$]=(0,n.useState)((null==V?void 0:V.bookingType)||"dayBase"),[ee,es]=(0,n.useState)([new Date(V.checkin),new Date(V.checkout)]),[el,et]=(0,n.useState)(""),[ea,en]=(0,n.useState)([{startDate:V.checkin||O,endDate:new Date(V.checkin?new Date(V.checkin).setDate(new Date(V.checkin).getDate()+1):O.setDate(O.getDate()+1)),key:"selection"}]),[ei,er]=(0,n.useState)({cityModal:!1,dateRangeModal:!1,guestModal:!1,timeModal:!1,hourModal:!1}),[ec,eo]=(0,n.useState)([]),[ed,eh]=(0,n.useState)([]),[ex,eu]=(0,n.use
1State)(null),{setLoginModal:ep}=(0,S.Z)(),ef=(0,C.v9)(e=>e.authDetail),eg=async()=>{try{F(!0),U(G.getState().searchFilter),F(!1),I()}catch(e){console.error("Error while searching:",e),F(!1)}},eZ=async e=>{try{let s=await (0,k.Z)().fetchSearchSuggestion(e,"hourlyBase");s.data.locations.length>0&&eo(s.data.locations),s.data.defaultCities.length>0&&eh(s.data.defaultCities)}catch(e){eo([]),eh([])}};(0,n.useEffect)(()=>{null!==ex&&""!==ex&&eZ(ex)},[ex]),(0,n.useEffect)(()=>{V&&(X((null==V?void 0:V.selectedTime)||"11:00 AM"),J((null==V?void 0:V.selectedHours)||"3 Hours")),"/hotels"===T&&"dayBase"!==Q?($("dayBase"),K("dayBase")):"/hourly-hotels"===T&&"hourlyBase"!==Q&&($("hourlyBase"),K("hourlyBase"))},[V,T,Q]);let ej=(null==V?void 0:null===(s=V.guestdetail)||void 0===s?void 0:s.roomCount)||1,em=(null==V?void 0:null===(l=V.guestdetail)||void 0===l?void 0:l.guestCount)||2,eM=(null==V?void 0:null===(_=V.guestdetail)||void 0===_?void 0:null===(R=_.childs)||void 0===R?void 0:R.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Z,{sx:{backgroundColor:"#fff",color:"black"},children:(0,t.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",p:1,paddingX:2},children:[(0,t.jsx)(r.Z,{className:"svg-component-mobile",style:{paddingTop:"16px"},children:(0,t.jsx)(N.default,{href:"/",style:{textDecoration:"none",color:"inherit",fontFamily:"inherit"},children:(0,t.jsx)(w.Z,{color:{herader:"#C55C04",footer:"#0C142A"}})})}),ef&&Object.keys(ef).length>0?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(r.Z,{})}):(0,t.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",color:"black"},onClick:()=>ep(!0),children:[(0,t.jsx)(a.Z,{sx:{mr:1,color:"#C55C04"}}),(0,t.jsx)(c.Z,{variant:"h7",sx:{color:"#C55C04"},children:"Login"})]})]})}),(0,t.jsxs)(r.Z,{sx:{paddingY:2,mt:5},children:[(0,t.jsxs)(r.Z,{sx:{mt:2},children:[(0,t.jsxs)(r.Z,{className:"searchfld",onClick:()=>er({...ei,cityModal:!0}),children:[(0,t.jsx)(r.Z,{className:"searchfld_icon",children:(0,t.jsx)(f.Z,{})}),(0,t.jsxs)(r.Z,{className:"locationfld",children:[(0,t.jsx)(c.Z,{className:"searchfld_title",children:"Select Destination"}),V.search&&(0,t.jsx)(c.Z,{className:"searchfld_city",sx:{textTransform:"capitalize"},children:V.search.name}),(0,t.jsx)(c.Z,{className:"searchfld_country",children:"India"})]})]}),(0,t.jsxs)(o.Z,{open:ei.cityModal,onClose:()=>er({...ei,cityModal:!1}),transitionDuration:300,keepMounted:!0,fullScreen:!0,PaperProps:{sx:{position:"absolute",bottom:0,left:0,right:0,margin:"auto"}},children:[(0,t.jsx)(d.Z,{children:"SEARCH CITY/HOTEL"}),(0,t.jsx)(h.Z,{"aria-label":"close",onClick:()=>er({...ei,cityModal:!1}),sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,t.jsx)(M.Z,{})}),(0,t.jsx)(x.Z,{children:(0,t.jsx)(y.y,{setsearchCity:eu,searchCity:ex,data:ec,defaultCities:ed,setOpenCityModal:()=>{er(e=>({...e,cityModal:!1,dateRangeModal:!0}))}})})]})]}),(0,t.jsxs)(r.Z,{className:"searchfld",onClick:()=>er({...ei,dateRangeModal:!0}),children:[(0,t.jsx)(r.Z,{className:"searchfld_icon",children:(0,t.jsx)(g.Z,{})}),(0,t.jsx)(r.Z,{className:"checkinfld",children:(0,t.jsxs)(r.Z,{className:"checkinfld_chkin",children:[(0,t.jsx)(c.Z,{className:"checkinfld_title",children:"Check In"}),(0,t.jsx)(c.Z,{className:"checkinfld_date",children:(0,t.jsx)(b.Z,{dateString:null==V?void 0:V.checkin})})]})})]}),(0,t.jsxs)(o.Z,{open:ei.dateRangeModal,onClose:()=>er({...ei,dateRangeModal:!1}),transitionDuration:300,keepMounted:!0,fullScreen:!0,PaperProps:{sx:{position:"absolute",bottom:0,left:0,right:0,margin:"auto"}},children:[(0,t.jsxs)(d.Z,{children:["Select Date",(0,t.jsx)(h.Z,{"aria-label":"close",onClick:()=>er({...ei,dateRangeModal:!1}),sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,t.jsx)(M.Z,{})})]}),(0,t.jsx)(u.Z,{}),(0,t.jsx)(x.Z,{sx:{mt:3},children:(0,t.jsx)(E.Z,{selectionMode:"single",prices:{"2025-01-03":"â¹10216","2025-01-04":"â¹9901","2025-01-05":"â¹10528","2025-01-06":"â¹10183"},selectedDates:ee,selectedOption:el,setSelectedOption:et,displayMonths:12,onDateChange:e=>{if(Array.isArray(e)&&2===e.length){let[s,l]=e;es([new Date(s),l?new Date(l):null]),et(e),L({startDate:new Date(s),endDate:l?new Date(l):null})}else e instanceof Date&&(es([e,null]),et(e),L({startDate:new Date(start),endDate:end?new Date(end):null}))},handleGuestClose:()=>er({...ei,dateRangeModal:!1})})}),(0,t.jsx)(p.Z,{children:(0,t.jsx)(D.Z,{size:"small",onClick:()=>{er(e=>({...e,dateRangeModal:!1,timeModal:!0}))},useGradient:!0,fontSize:"large",width:100,padding:"10px 5px",fontWeight:"600",children:"Next"})})]}),(0,t.jsxs)(r.Z,{sx:{display:"flex"},children:[(0,t.jsxs)(r.Z,{className:"searchfld",onClick:()=>er({...ei,timeModal:!0}),sx:{width:"50%"},children:[(0,t.jsx)(r.Z,{className:"searchfld_icon",children:(0,t.jsx)(Z.Z,{})}),(0,t.jsx)(r.Z,{className:"checkinfld",children:(0,t.jsxs)(r.Z,{className:"checkinfld_chkin",children:[(0,t.jsx)(c.Z,{className:"checkinfld_title",children:"Check In Time"}),(0,t.jsx)(c.Z,{className:"checkinfld_date",children:null==V?void 0:V.selectedTime})]})})]}),(0,t.jsxs)(o.Z,{open:ei.timeModal,onClose:()=>er({...ei,timeModal:!1}),transitionDuration:500,keepMounted:!0,sx:{width:"100%"},PaperProps:{sx:{position:"absolute",bottom:0,left:0,right:0,margin:"auto"}},children:[(0,t.jsx)(d.Z,{children:"CHECKIN-TIME"}),(0,t.jsx)(h.Z,{"aria-label":"close",onClick:()=>er({...ei,timeModal:!1}),sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,t.jsx)(M.Z,{})}),(0,t.jsx)(x.Z,{children:(0,t.jsx)(A.Z,{dateSE:ea,selectedTime:Y,setOpenTimeModal:()=>{er(e=>({...e,timeModal:!1,hourModal:!0}))}})})]}),(0,t.jsxs)(r.Z,{className:"searchfld",onClick:()=>er({...ei,hourModal:!0}),sx:{width:"50%"},children:[(0,t.jsx)(r.Z,{className:"searchfld_icon",children:(0,t.jsx)(j.Z,{})}),(0,t.jsx)(r.Z,{className:"checkinfld",children:(0,t.jsxs)(r.Z,{className:"checkinfld_chkin",children:[(0,t.jsx)(c.Z,{className:"checkinfld_title",children:"Hours"}),(0,t.jsx)(c.Z,{className:"checkinfld_date",children:null==V?void 0:V.selectedHours})]})})]}),(0,t.jsxs)(o.Z,{open:ei.hourModal,onClose:()=>er({...ei,hourModal:!1}),transitionDuration:500,keepMounted:!0,sx:{width:"100%"},PaperProps:{sx:{position:"absolute",bottom:0,left:0,right:0,margin:"auto"}},children:[(0,t.jsx)(d.Z,{children:"CHOOSE HOURS"}),(0,t.jsx)(h.Z,{"aria-label":"close",onClick:()=>er({...ei,hourModal:!1}),sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,t.jsx)(M.Z,{})}),(0,t.jsx)(x.Z,{children:(0,t.jsx)(H.Z,{currentHours:q,setOpenHourModal:()=>{er(e=>
1({...e,hourModal:!1,guestModal:!0}))}})})]})]}),(0,t.jsxs)(r.Z,{children:[(0,t.jsxs)(r.Z,{className:"searchfld",onClick:()=>er({...ei,guestModal:!0}),children:[(0,t.jsx)(r.Z,{className:"searchfld_icon",children:(0,t.jsx)(m.Z,{})}),(0,t.jsxs)(r.Z,{className:"guestfld",children:[(0,t.jsx)(c.Z,{className:"searchfld_title",children:"Guests & Rooms"}),(0,t.jsxs)(c.Z,{className:"searchfld_guest",children:[em," Adults,",eM>0&&(0,t.jsxs)("span",{style:{fontSize:"large",fontWeight:"600",marginLeft:"4px"},children:[eM," Child,"]}),(0,t.jsxs)("span",{style:{color:"#747474",fontSize:"small",fontWeight:"200",marginLeft:"4px"},children:[ej," Room"]})]})]})]}),(0,t.jsxs)(o.Z,{open:ei.guestModal,onClose:()=>er({...ei,guestModal:!1}),transitionDuration:500,keepMounted:!0,sx:{width:"100%"},PaperProps:{sx:{position:"absolute",bottom:0,left:0,right:0,margin:"auto"}},children:[(0,t.jsx)(d.Z,{children:"GUESTS/ROOMS"}),(0,t.jsx)(h.Z,{"aria-label":"close",onClick:()=>er({...ei,guestModal:!1}),sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,t.jsx)(M.Z,{})}),(0,t.jsx)(x.Z,{children:(0,t.jsx)(B.Z,{handleClose:()=>{er(e=>({...e,guestModal:!1}))}})})]})]}),(0,t.jsx)(r.Z,{children:(0,t.jsx)(D.Z,{size:"small",onClick:()=>{eg(),W()},useGradient:!0,fontSize:"large",width:100,padding:"8px 5px",fontWeight:"600",children:"Search"})})]})]})}},73946:function(e,s,l){"use strict";l.d(s,{AppProvider:function(){return i},I:function(){return n}});var t=l(57437),a=l(2265);let n=(0,a.createContext)({loginModal:!1,setLoginModal:()=>{},isMobile:!1,setIsMobile:()=>{},token:null,setToken:()=>{}});function i(e){let{children:s}=e,[l,i]=(0,a.useState)(!1),[r,c]=(0,a.useState)(!1);return(0,t.jsx)(n.Provider,{value:{loginModal:r,setLoginModal:c,isMobile:l,setIsMobile:i,token:null,setToken:()=>{}},children:s})}},39167:function(e,s,l){"use strict";var t=l(2265),a=l(73946);s.Z=function(){let{isMobile:e,setIsMobile:s,loginModal:l,setLoginModal:n,token:i,setToken:r}=(0,t.useContext)(a.I);return{isMobile:e,setIsMobile:s,loginModal:l,setLoginModal:n,token:i,setToken:r}}},7082:function(e,s,l){"use strict";l.d(s,{Z:function(){return m}});var t=l(57437),a=l(78693),n=l(46387),i=l(39155),r=l(62069),c=l(56739),o=l(8971),d=l(78986),h=l(38549),x=l(26062),u=l(48700),p=l(71131),f=l(63650),g=l(6496),Z=l(92362),j=l(2265);function m(e){let{prices:s={},displayMonths:l=1,selectionMode:m,onDateChange:M,selectedDates:y,handleGuestClose:v}=e,[C,b]=(0,j.useState)((0,c.N)(new Date)),[k,w]=(0,j.useState)(null),N=new Date,S=()=>b((0,o.z)(C,1)),D=()=>{(0,d.R)((0,h.W)(C,1),(0,c.N)(new Date))||b((0,h.W)(C,1))},A=e=>{let s=(0,c.N)(e),l=(0,x.V)(e),t=s.getDay(),a=0===t?6:t-1,n=[];for(let e=0;e<a;e++)n.push(null);let i=s;for(;i<=l;)n.push(i),i=(0,u.E)(i,1);return n},P=e=>{if(!(0,d.R)(e,(0,u.E)(N,-1))){if("range"===m){let[s,l]=y||[];!s||s&&l?M([e,null]):e<s?M([e,s]):M([s,e])}else if("single"===m){let s=(0,u.E)(e,1);M([e,s])}b((0,c.N)(e))}};(0,j.useEffect)(()=>{console.log("Selected Dates:",y)},[y]);let H=()=>"range"===m&&y[0]&&y[1]?(0,p.w)(y[1],y[0]):1,E=e=>A(e).map((e,l)=>{if(null===e)return(0,t.jsx)(a.Z,{sx:{textAlign:"center",padding:"8px",height:"50px",width:"50px",opacity:0}},l);let i="range"===m?y[0]&&y[1]?(0,f._)(e,{start:y[0],end:y[1]})||(0,g.K)(e,y[0])||(0,g.K)(e,y[1]):(0,g.K)(e,y[0]):"single"===m&&(0,g.K)(e,y[0]),r=s[(0,Z.WU)(e,"yyyy-MM-dd")],c=(0,d.R)(e,(0,u.E)(N,-1)),o=k&&(0,g.K)(e,k),h=(0,g.K)(e,y[0]),x=(0,g.K)(e,y[1]),p=y[0]&&y[1]&&!h&&!x&&(0,f._)(e,{start:y[0],end:y[1]}),j="transparent";return h||x?j="primary.main":p&&(j="primary.light"),(0,t.jsxs)(a.Z,{sx:{textAlign:"center",padding:"8px",borderRadius:"50%",backgroundColor:i?j:o?"primary.light":"transparent",color:i||o?"white":"inherit",cursor:c?"not-allowed":"pointer",opacity:c?.5:1,transition:"background-color 0.3s",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"50px",width:"50px"},onClick:()=>!c&&P(e),onMouseEnter:()=>!c&&w(e),onMouseLeave:()=>w(null),children:[(0,t.jsx)(n.Z,{variant:"body2",children:(0,Z.WU)(e,"d")}),r&&(0,t.jsx)(n.Z,{variant:"caption",color:r>1e4?"error":"success",children:r})]},e.toISOString())}),B=e=>(0,t.jsxs)(a.Z,{sx:{margin:"0 8px",width:"100%"},children:[(0,t.jsxs)(a.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[(0,t.jsx)(i.Z,{onClick:D,children:"<"}),(0,t.jsx)(n.Z,{variant:"h6",children:(0,Z.WU)(e,"MMMM yyyy")}),(0,t.jsx)(i.Z,{onClick:S,children:">"})]}),(0,t.jsxs)(r.ZP,{container:!0,spacing:1,children:[["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map((e,s)=>(0,t.jsx)(r.ZP,{item:!0,xs:1.71,children:(0,t.jsx)(n.Z,{variant:"subtitle2",align:"center",children:e})},s)),E(e).map((e,s)=>(0,t.jsx)(r.ZP,{item:!0,xs:1.71,children:e},s))]})]});return(0,t.jsxs)(t.Fragment,{children:["range"===m&&(0,t.jsxs)(a.Z,{sx:{position:"fixed",top:70,left:20,display:"flex",zIndex:99,bgcolor:"white",justifyContent:"space-between",width:"-webkit-fill-available"},children:[(0,t.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,t.jsx)(n.Z,{sx:{color:"gray"},children:"Check-in:"}),(0,t.jsx)(n.Z,{variant:"body2",sx:{mr:1},children:y[0]?(0,Z.WU)(y[0],"MMM dd, yyyy"):"Select Date"})]}),(0,t.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,t.jsx)(n.Z,{sx:{color:"gray"},children:"Check-out:"}),(0,t.jsx)(n.Z,{variant:"body2",children:y[1]?(0,Z.WU)(y[1],"MMM dd, yyyy"):"Select Date"})]}),H()>0&&(0,t.jsx)(a.Z,{sx:{mr:2,mt:2},children:(0,t.jsxs)(n.Z,{variant:"body2",children:[" Nights: ",H()," "]})})]}),"single"===m&&y&&(0,t.jsxs)(a.Z,{sx:{position:"fixed",top:70,left:20,display:"flex",zIndex:99,bgcolor:"white",justifyContent:"space-between",width:"-webkit-fill-available",pb:1,pt:1},children:[(0,t.jsxs)(n.Z,{variant:"body2",children:[(0,t.jsx)("span",{style:{color:"gray"},children:"Selected Date:"})," ",y?(0,Z.WU)(y[0],"MMM dd, yyyy"):"Select Date"]}),H()>0&&(0,t.jsx)(a.Z,{sx:{pr:2},children:(0,t.jsxs)(n.Z,{variant:"body2",children:[" Nights: ",H()," "]})})]}),(0,t.jsxs)(a.Z,{sx:{display:"flex",justifyContent:"center",flexWrap:"nowrap",flexDirection:"column",mt:2},children:[B(C),l>1&&(0,t.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column",marginTop:2},children:[...Array(l-1).keys()].map((e,s)=>B((0,o.z)(C,s+1)))})]})]})}},27210:function(e,s,l){"use strict";var t=l(57437);l(2265),s.Z=e=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 463 90.9",...e,children:[(0,t.jsx)("defs",{children:(0,t.jsx)("style",{children:".cls-1{fill:".concat(e.color.header,"}.cls-2{fill:").concat(e.color.footer,"}.cls-3{fill:#f16028}")})}),(0,t.jsx)("g",{id:"Layer_2","data-name":"Layer 2",children:(0,t.jsxs)("g",{id:"Layer_1-2","data-name":"Layer 1",children:[(0,t.jsx)("path",{d:"M83.4 90.5v-9.8l-7.2-13.2h3.4l3.2 6.3c.9 1.7 1.6 3.1 2.3 4.7h.1a50.2 50.2 0 0 1 2.3-4.7l3.3-6.3h3.4l-7.7 13.2v9.8ZM110.2 90.5l-.2-2.1h-.1a6.12 6.12 0 0 1-5 2.5 4.7 4.7 0 0 1-5-4.7c0-4 3.5-6.2 9.9-6.1v-.3c0-1.4-.4-3.8-3.8-3.8a8.94 8.94 0 0 0-4.3 1.2l-.7-2a10.09 10.09 0 0 1 5.4-1.5c5 0 6.3 3.4 6.3 6.8v6.2a25 25 0 0 0 .3 4h-2.8Zm-.4-8.4c-3.3-.1-7 .5-7 3.7a2.7 2.7 0 0 0 2.8 2.9 4.22 4.22 0 0 0 4-2.8 3 3 0 0 0 .2-1ZM133.5 90.5l-.2-2.1h-.1a6.12 6.12 0 0 1-5 2.5 4.7 4.7 0 0 1-5-4.7c0-4 3.5-6.2 9.9-6.1v-.3c0-1.4-.4-3.8-3.8-3.8a8.94 8.94 0 0 0-4.3 1.2l-.7-2a10.09 10.09 0 0 1 5.4-1.5c5 0 6.3 3.4 6.3 6.8v6.2a25 25 0 0 0 .3 4h-2.8Zm-.5-8.4c-3.3-.1-7 .5-7 3.7a2.7 2.7 0 0 0 2.8 2.9 4.22 4.22 0 0 0 4-2.8 3 3 0 0 0 .2-1ZM161.8 66.3v19.9c0 1.5 0 3.1.1 4.3h-2.7l-.1-2.9h-.1a6.08 6.08 0 0 1-5.6 3.2c-4 0-7.1-3.4-7.1-8.4 0-5.5 3.4-8.9 7.4-8.9a5.7 5.7 0 0 1 5 2.5h.1v-9.9h3Zm-3 14.4a5.7 5.7 0 0 0-.1-1.3 4.41 4.41 0 0 0-4.3-3.5c-3.1 0-4.9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-1.6 19.15 19.15 0 0 0-4.1-.5H.1v28.3a5.86 5.86 0 0 1 3.7-1.2 7.27 7.27 0 0 1 2.9.7v-7h6.2a11.73 11.73 0 0 1 6 1.2 4.39 4.39 0 0 1 2 4.1 5 5 0 0 1-.8 2.9 5.51 5.51 0 0 1-2 1.7 10.67 10.67 0 0 1-2.7.8c-1 .1-1.9.2-2.7.2H10a6.26 6.26 0 0 1-.9 5.6h4.5a23.06 23.06 0 0 0 5.2-.6 15.14 15.14 0 0 0 4.5-1.8 9.21 9.21 0 0 0 3.2-3.3 10.13 10.13 0 0 0 1.2-5.1 9.33 9.33 0 0 0-2.5-6.3Zm-7.6-6.5a8 8 0 0 1-5 1.3H6.7V7.2H12a11.66 11.66 0 0 1 5.6 1 3.82 3.82 0 0 1 1.8 3.6 4.9 4.9 0 0 1-1.8 3.7Z",className:"cls-2"}),(0,t.jsx)("circle",{cx:3.8,cy:35.1,r:3.8,className:"cls-3"}),(0,t.jsx)("path",{d:"m306.3 28.8-4-6.5a11.42 11.42 0 0 0 6.2-3.4 9.64 9.64 0 0 0 2.3-6.6 9.74 9.74 0 0 0-1.2-5 9 9 0 0 0-3.1-3.3 14.52 14.52 0 0 0-4.4-1.8 21 21 0 0 0-5.1-.5h-12.9v37.1h6.6V23h4.8l4.9 9a6.53 6.53 0 0 1 5.5-3.3.76.76 0 0 0 .4.1ZM299 17.4a26.35 26.35 0 0 1-2.8.2h-5.4V7.2h6a24.62 24.62 0 0 1 2.6.2 6.19
16.19 0 0 1 2.4.8 5 5 0 0 1 1.7 1.5 3.9 3.9 0 0 1 .7 2.5 4.53 4.53 0 0 1-.7 2.7 4.21 4.21 0 0 1-1.9 1.6 8 8 0 0 1-2.6.9Z",className:"cls-2"}),(0,t.jsx)("circle",{cx:306.1,cy:35.1,r:3.8,className:"cls-2"}),(0,t.jsx)("path",{d:"M182.5 29.6a5.71 5.71 0 0 1 3.2-.9 6.74 6.74 0 0 1 3.4 1v-7.2l13.9-21h-7.6l-9.5 14.8-9.5-14.8h-7.8l13.9 21v7.1Z",className:"cls-2"}),(0,t.jsx)("circle",{cx:185.7,cy:35.1,r:3.8,className:"cls-3"}),(0,t.jsx)("path",{d:"M270.2 9.8v14.3a11.24 11.24 0 0 1-.4 3.2 7.81 7.81 0 0 1-1.4 2.9 6.7 6.7 0 0 1-2.6 2 10.4 10.4 0 0 1-8 0 7.53 7.53 0 0 1-2.6-2 8.7 8.7 0 0 1-1.4-2.9 11.7 11.7 0 0 1-.4-3.2V.9h-6.6v23.5a16 16 0 0 0 1.1 6A14.9 14.9 0 0 0 251 35a13.29 13.29 0 0 0 4.7 2.9 17.91 17.91 0 0 0 11.8 0 13.12 13.12 0 0 0 7.8-7.5 14.61 14.61 0 0 0 1.2-6V9.7a6.39 6.39 0 0 1-3.3 1 5.53 5.53 0 0 1-3-.9Z",className:"cls-2"}),(0,t.jsx)("circle",{cx:273.4,cy:4.4,r:3.8,className:"cls-2"}),(0,t.jsx)("path",{d:"M416.2 9.8 411 29h-.1l-8-27.2h-6.8L387.9 29h-.1l-7.1-27.2h-7.2l10.8 37.1h6.4l8.7-27.8h.1l8.7 27.8h6.4l8.1-27.6a6.28 6.28 0 0 1-1.9.3 6 6 0 0 1-4.6-1.8Z",className:"cls-2"}),(0,t.jsx)("circle",{cx:420.7,cy:5.3,r:3.8,className:"cls-2"}),(0,t.jsx)("path",{d:"M455.8 10.8v18.8h-.1L438.5 1.8h-8.7v37.1h6.6V10.3h.1L454.1 39h8.4V10.9a6.29 6.29 0 0 1-3.3.9 6.74 6.74 0 0 1-3.4-1Z",className:"cls-2"}),(0,t.jsx)("circle",{cx:459.2,cy:5.4,r:3.8,className:"cls-2"}),(0,t.jsx)("path",{d:"M149 38.8 130.6 19l17.3-17.1H139l-15.5 16h-.2v-7.2a6.39 6.39 0 0 1-3.3 1 6.29 6.29 0 0 1-3.3-.9V39h6.6V20.3h.2l16.3 18.6h9.1a.1.1 0 0 0 .1-.1Z",className:"cls-2"}),(0,t.jsx)("circle",{cx:120.1,cy:5.3,r:3.8,className:"cls-2"}),(0,t.jsx)("circle",{cx:353.8,cy:13.1,r:2.5,className:"cls-3"}),(0,t.jsx)("path",{d:"M353.8.3a12.8 12.8 0 1 0 12.8 12.8A12.89 12.89 0 0 0 353.8.3Zm0 21.1a8.4 8.4 0 1 1 8.4-8.4 8.39 8.39 0 0 1-8.4 8.4Z",className:"cls-2"}),(0,t.jsx)("circle",{cx:49.4,cy:19.4,r:3.8,className:"cls-2"}),(0,t.jsx)("path",{d:"M49.4 0a19.5 19.5 0 1 0 19.5 19.5A19.46 19.46 0 0 0 49.4 0Zm0 32.2a12.8 12.8 0 1 1 12.9-12.8 12.91 12.91 0 0 1-12.9 12.8Z",className:"cls-2"}),(0,t.jsx)("circle",{cx:91.7,cy:19.4,r:3.8,className:"cls-2"}),(0,t.jsx)("path",{d:"M91.7 0a19.5 19.5 0 1 0 19.5 19.5A19.46 19.46 0 0 0 91.7 0Zm0 32.2a12.8 12.8 0 1 1 12.8-12.8 12.76 12.76 0 0 1-12.8 12.8Z",className:"cls-2"}),(0,t.jsx)("circle",{cx:221.6,cy:19.4,r:3.8,className:"cls-2"}),(0,t.jsx)("path",{d:"M221.6 0a19.5 19.5 0 1 0 19.5 19.5A19.46 19.46 0 0 0 221.6 0Zm0 32.2a12.8 12.8 0 1 1 12.8-12.8 12.89 12.89 0 0 1-12.8 12.8ZM353.8.3a13.87 13.87 0 0 0-13.9 13.9c0 11.7 13.9 25.3 13.9 25.3s13.9-13.5 13.9-25.3A13.87 13.87 0 0 0 353.8.3Zm0 23.1a9.3 9.3 0 1 1 9.3-9.3 9.35 9.35 0 0 1-9.3 9.3Z",className:"cls-2"})]})})]})},58453:function(){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.