"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[123],{831:function(e,t,l){var n=l(1799),s=l(5893),i=l(1194),a=l.n(i),r=function(e){var t=e.className,l=e.disabled,i=e.fontSize,r=e.label,o=e.labelColor,c=e.loading,d=e.moreStyles,u=e.onClick;return(0,s.jsx)("div",{className:"".concat(t," py-2 px-7 rounded ").concat(l?"opacity-40 cursor-not-allowed":"cursor-pointer"," flex items-center justify-center"),style:(0,n.Z)({},d),onClick:function(){return!l&&u()},children:c?(0,s.jsx)(a(),{color:"#FA7C25",loading:c,cssOverride:{display:"block",margin:"0 auto",borderColor:"red"},size:25,"aria-label":"Loading Spinner","data-testid":"loader"}):(0,s.jsx)("p",{style:{color:o,fontSize:i},children:r})})};t.Z=r},8985:function(e,t,l){var n=l(7568),s=l(1799),i=l(9396),a=l(655),r=l(5893),o=l(831),c=l(8618),d=l(7294);l(1163);var u=l(3801),m=l(381),x=l.n(m);t.Z=function(e){var t=e.router,l=(0,u.bp)(),m=(0,d.useState)(!1),f=m[0],h=m[1],g=x()(),p=x()();p.add(1,"days");var b=(0,d.useState)({dateIn:"".concat(g.year(),"-").concat(g.month()+1<10?"0"+(g.month()+1):g.month()+1,"-").concat(10>g.date()?"0"+g.date():g.date()),dateOut:"".concat(p.year(),"-").concat(10>p.month()?"0"+(p.month()+1):p.month()+1,"-").concat(10>p.date()?"0"+p.date():p.date())}),j=b[0],v=b[1],w=(0,d.useState)("1 Adult"),N=w[0],y=w[1];return(0,r.jsxs)("div",{className:"flex lg:flex-row flex-col font-inter w-full",children:[(0,r.jsxs)("div",{className:"flex lg:flex-row flex-col rounded border border-[#bdbdbd] w-full p-2 lg:mr-3 lg:w-2/3",children:[(0,r.jsxs)("div",{className:"flex w-full justify-between",children:[(0,r.jsxs)("div",{className:"lg:mr-2.5",children:[(0,r.jsx)("p",{className:"text-xs opacity-50 mb-1",children:"Check-in"}),(0,r.jsx)("input",{type:"date",className:"text-sm font-medium outline-none bg-transparent",onChange:function(e){console.log(e.target.value),v((0,i.Z)((0,s.Z)({},j),{dateIn:e.target.value}))},value:j.dateIn})]}),(0,r.jsxs)("div",{className:"lg:mr-2.5",children:[(0,r.jsx)("p",{className:"text-xs opacity-50 mb-1",children:"Check-out"}),(0,r.jsx)("input",{type:"date",className:"text-sm font-medium outline-none bg-transparent",onChange:function(e){return v((0,i.Z)((0,s.Z)({},j),{dateOut:e.target.value}))},value:j.dateOut})]})]}),(0,r.jsxs)("div",{className:"pl-2 lg:border-l lg:border-l-[#bdbdbd] lg:border-t-0 border-t border-t-[#bdbdbd]",children:[(0,r.jsx)("p",{className:"text-xs opacity-50 mb-1",children:"Occupancy"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(c.Z,{fontSize:"small",sx:{color:"black",opacity:.5}}),(0,r.jsxs)("select",{className:"text-sm font-medium outline-none bg-transparent",onChange:function(e){console.log(e.target.value),y(e.target.value)},children:[(0,r.jsx)("option",{children:"1 Adult"}),(0,r.jsx)("option",{children:"2-4 Adults"}),(0,r.jsx)("option",{children:"5+ Adults"})]})]})]})]}),(0,r.jsx)("div",{className:"lg:w-1/3 mt-3 lg:mt-0",children:(0,r.jsx)(o.Z,{label:"Check Availability",fontSize:14,backgroundColor:"#1B1F23",className:"bg-black text-white h-full",onClick:(0,n.Z)(function(){return(0,a.__generator)(this,function(e){switch(e.label){case 0:return h(!0),[4,fetch("https://api.ibomwaterfallsuites.com/check-availability",{method:"POST",body:JSON.stringify((0,i.Z)((0,s.Z)({},j),{numOccupants:N[0]})),headers:{"Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){e.hasOwnProperty("error")?(h(!1),console.log(e),alert(e.error)):(null==l||l.setCheckout((0,i.Z)((0,s.Z)({},null==l?void 0:l.checkout,j),{roomtype:N,bookingType:parseInt(N[0])>4?"hall":"bedroom",numDays:x()(j.dateOut).diff(j.dateIn,"days")})),console.log(e),null==l||l.setAvailableRooms(e),h(!1),t.push("/rooms/results"))})];case 1:return e.sent(),[2]}})}),loading:f})})]})}},8191:function(e,t,l){var n=l(5893),s=l(1664),i=l.n(s),a=l(5290),r=l(2759),o=l(4232),c=l(3801),d=l(1163);t.Z=function(){var e=(0,c.bp)(),t=(0,d.useRouter)(),l=["Privacy-Policy","Login","Rooms","Restaurant-and-Bar","Gallery",];return(0,n.jsxs)("div",{className:"flex flex-col items-center font-inter",children:[(0,n.jsxs)("div",{className:"w-full flex lg:flex-row flex-col items-center justify-center pt-10 pb-1 lg:px-24",children:[(0,n.jsxs)("div",{className:"lg:w-1/4 h-full px-7 flex flex-col items-center lg:items-start",children:[(0,n.jsx)("img",{src:"/images/ibw-logo.png",className:"lg:w-[35%] w-1/4 mb-2"}),(0,n.jsx)("h1",{className:"font-quincy font-semibold lg:text-left text-center text-4xl lg:text-3xl tracking-wide leading-normal lg:pb-0 pb-10",children:"Ibom Waterfall Resort and Suites"})]}),(0,n.jsxs)("div",{className:"lg:border-x lg:border-x-[#E6E6E6] lg:border-y-0 border-y border-y-[#E6E6E6] h-full px-14 py-8 w-full lg:w-2/5 font-inter",children:[(0,n.jsx)("p",{className:"mb-7 font-medium",children:"More Information"}),(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsxs)("div",{children:[l.slice(0,3).map(function(l){return(0,n.jsx)("div",{onClick:function(){null==e||e.setlegal(l),t.push("/".concat("Login"===l?"portal":"legal"))},children:(0,n.jsx)("p",{className:"leading-9 cursor-pointer",children:l.replace(/-/g," ")})},l)}),(0,n.jsx)(i(),{href:"/hotel-policies.pdf",className:"w-fit",children:(0,n.jsx)("a",{target:"_blank",className:"leading-9 cursor-pointer outline-none",href:"/hotel-policies.pdf",children:"Key Information"})})]}),(0,n.jsx)("div",{children:l.slice(3).map(function(e){return(0,n.jsx)(i(),{href:"/".concat(e.toLowerCase()),children:(0,n.jsx)("p",{className:"leading-9 cursor-pointer",children:e.replace(/-/g," ")})},e)})})]})]}),(0,n.jsxs)("div",{className:"flex flex-col h-full pt-8 lg:px-7 lg:items-start items-center font-inter w-full lg:w-1/4",children:[(0,n.jsx)("p",{className:"mb-7 font-medium",children:"Contact Us"}),(0,n.jsxs)("div",{className:"flex items-center w-2/3 justify-between mb-4",children:[(0,n.jsx)(a.Z,{fontSize:"medium"}),(0,n.jsx)(r.Z,{fontSize:"medium"}),(0,n.jsx)(o.Z,{fontSize:"medium"})]}),(0,n.jsxs)("div",{className:"flex-col lg:flex",children:[(0,n.jsx)("a",{href:"mailto:iwaterfallsuites@gmail.com",className:"leading-7 cursor-pointer text-sm font-light mb-2 mr-4",children:"iwaterfallsuites@gmail.com"}),(0,n.jsx)("a",{href:"tel:+2348084945237",className:"leading-7 cursor-pointer text-sm font-light",children:"+234 808 494 5237"})]})]})]}),(0,n.jsx)("p",{className:"text-center text-xs py-7 font-medium",children:"POWERED BY ONNIT"})]})}},9720:function(e,t,l){var n=l(5893),s=l(1664),i=l.n(s),a=l(7294),r=l(1163),o=l(6236),c=l(3801);t.Z=function(){var e=(0,c.bp)(),t=(0,r.useRouter)(),l=["home","rooms","gallery","restaurant-and-bar"],s=(0,a.useState)(!1),d=s[0],u=s[1];return(0,n.jsxs)("div",{className:"w-full relative",children:[(0,n.jsxs)("div",{className:"w-full flex items-center justify-between px-8 lg:px-32 py-4 font-inter font-normal",children:[(0,n.jsx)("img",{src:"/images/ibw-logo.png",className:"lg:w-[6%] md:w-[10%] w-[16%] cursor-pointer",onClick:function(){return t.push("/")}}),(0,n.jsx)("div",{className:"lg:flex hidden items-center gap-12",children:l.map(function(t){return(0,n.jsx)(i(),{href:"/".concat("home"!==t?t.toLowerCase():""),children:(0,n.jsx)("p",{className:"capitalize cursor-pointer ".concat((null==e?void 0:e.active)===t&&"font-bold"),onClick:function(){return null==e?void 0:e.setactive(t)},children:t.replace(/-/g," ")})},t)})}),(0,n.jsx)(i(),{href:"/portal/login",className:"",children:(0,n.jsx)("p",{className:"w-[5%] lg:block hidden cursor-pointer",children:"Login"})}),(0,n.jsx)("div",{className:"lg:hidden flex-row items-center justify-end w-[12%] h-full flex",onClick:function(){return u(!d)},children:(0,n.jsx)(o.Z,{className:"text-black cursor-pointer",fontSize:"large"})})]}),(0,n.jsx)("div",{className:"lg:hidden ".concat(d?"h-48 px-5 py-7":"h-0"," w-full absolute transition-all duration-500 ease-in-out bg-white"),children:l.map(function(t,l){var s=t.replace(/-/g," ");return(0,n.jsx)(i(),{href:"/".concat("home"!==t?t.toLowerCase():""),children:(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.active)===t&&""," mb-3 transition-colors ease-in-out duration-500 cursor-pointer ").concat(d?"block":"hidden"),onClick:function(){u(!d),null==e||e.setactive(t)},children:(0,n.jsx)("p",{className:"capitalize ".concat(d?"visible":"invisible"," transition duration-500 ease-out delay-1000 font-semibold text-[15px] font-montserrat"),children:s})})},l)})})]})}},7099:function(e,t,l){var n=l(5893);t.Z=function(){return(0,n.jsx)("div",{className:"bg-dark w-full ",children:(0,n.jsx)("div",{className:"w-full lg:h-[26rem] h-64 bg-cover bg-center lg:bg-fixed pl-16 lg:pl-60 pt-16 ",style:{backgroundImage:'url("https://firebasestorage.googleapis.com/v0/b/ibw-hotel.appspot.com/o/main-images%2Fhome-images%2Fibom%20outside%402x.png?alt=media&token=6091916c-863b-4c76-b431-2b4d2ccf19ca")'}})})}},1071:function(e,t,l){l.d(t,{Z:function(){return a}});var n=l(5893),s=l(831),i=function(e){var t=e.icon,l=e.description,s=e.distance,i=e.title;return(0,n.jsxs)("div",{className:"p-8 border border-[#9B9FA3] flex flex-col items-center font-inter w-60 h-80",children:[(0,n.jsx)("img",{src:t,className:"w-[13%]"}),(0,n.jsx)("p",{className:"py-2 text-sm font-medium text-center",children:i}),(0,n.jsx)("p",{className:"mb-7 text-xs text-[#9B9FA3]",children:s}),(0,n.jsx)("p",{className:"text-xs text-center leading-5",children:l})]})},a=function(){return(0,n.jsxs)("div",{className:"w-full flex lg:flex-row flex-col p-12 lg:p-32 gap-10 lg:items-start items-center",children:[(0,n.jsxs)("div",{className:"lg:w-1/4 flex flex-col items-center lg:items-start",children:[(0,n.jsx)("h2",{className:"lg:text-left text-center text-4xl font-quincy mb-4",children:"Nearby Attractions"}),(0,n.jsx)("p",{className:"lg:text-left text-center text-sm leading-6 font-inter mb-8",children:"There's so much to see and do conveniently close to our welcoming accommodation. Explore the local area around our hotel, including fascinating local landmarks, cultural highlights and key business destinations, so you'll make the most of your visit here."}),(0,n.jsx)(s.Z,{label:"Book a Room",fontSize:18,moreStyles:{color:"white",height:60,backgroundColor:"#1B1F23"}})]}),(0,n.jsx)("div",{className:"md:grid flex overflow-scroll w-full lg:grid-cols-3 md:grid-cols-2 lg:w-[70%] gap-8",children:[{title:"Victor Attah International Airport",description:"The first phase of airport construction began in 2006 and was completed in the year 2009, Victor Attah International Airport is the airport serving Uyo, the capital of Akwa Ibom State in Nigeria.",distance:"90 mins by Car",icon:"/images/musuem-icon.png"},{title:"Ibom Waterfalls",description:"It is located in Ibom village in Arochukwu kingdom in Arochukwu local government area in Abia state. It's serves as both a tourist center and leisure spot for all. Since it's discovery it's seen as a suitable place for sight seeing in Arochukwu kingdom.",distance:"10 mins walk",icon:"/images/musuem-icon.png"},{title:"Ancient City of Arochukwu",description:"Arochukwu is a principal historic town in Igbo land. It is the third largest local government area in Abia State (after Aba and Umuahia) in southeastern Nigeria and homeland of the Igbo subgroup, Aro people.",icon:"/images/musuem-icon.png"}].map(function(e,t){return(0,n.jsx)("div",{children:(0,n.jsx)(i,{description:e.description,distance:e.distance,icon:e.icon,title:e.title})},t)})})]})}},123:function(e,t,l){var n=l(5893),s=l(1163),i=l(8985),a=l(8191),r=l(9720),o=l(7099),c=l(1071);t.Z=function(e){var t=e.children,l=e.heading,d=e.subheading,u=e.noWidget,m=(0,s.useRouter)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.Z,{}),(0,n.jsxs)("div",{className:"flex flex-col items-center py-7 w-full",children:[(0,n.jsxs)("div",{className:"px-5 mb-8",children:[(0,n.jsx)("h2",{className:"text-center font-quincy font-semibold text-5xl md:text-5xl lg:text-6xl tracking-wide",children:l}),void 0!==d&&(0,n.jsx)("p",{className:"text-center lg:text-2xl text-lg font-inter mt-2",children:d})]}),(0,n.jsx)("div",{className:"lg:w-[50%] flex w-full px-5 md:px-36 lg:px-0 justify-center",children:!u&&(0,n.jsx)(i.Z,{router:m})}),t,(0,n.jsx)(c.Z,{}),(0,n.jsx)(o.Z,{})]}),(0,n.jsx)(a.Z,{})]})}}}]);