PageSourceSearch

https://roami-web.vercel.app/_next/static/chunks/pages/reservations-f564ca135005bfd2.js

js roami-web.vercel.app collected 2026-10-03 07:38:47 UTC 3,840 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[669],{9597:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return w}});var s=t(2907),i=t(8682),r=t(4207),o=t(4150),c=t(29),a=t(7794),u=t.n(a),l=t(9342),d=t(6211),f=t(4506),g=t(5893),h=function(e){var n=e.reservation,t=e.isUpcoming,s=void 0!==t&&t,i=(0,f.Z)().isMobile,r=((0,l.aC)(),(0,o.mr)({id:String(n.listingId),params:{checkIn:n.checkInDateLocalized,checkOut:n.checkOutDateLocalized}},{retry:function(e){return!(e>=1)},keepPreviousData:!0})),a=(0,o.ht)();function h(){return(h=(0,c.Z)(u().mark((function e(n,t,s,i){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a.mutate({payload:{id:n,checkInDateLocalized:t,checkOutDateLocalized:s,guestsCount:i}});case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return r.isLoading?(0,g.jsxs)("span",{children:["Loading... ",(0,g.jsx)("br",{})]}):r.data?(0,g.jsx)(d.Z,{reservationStatus:n.status,id:n.id,reservationPrice:n.money,listing:r.data.listing,checkIn:n.checkInDateLocalized||"2022-10-12",checkOut:n.checkOutDateLocalized||"2022-10-13",guestsCount:n.guestsCount||0,onUpdate:function(e,n,t,s){return h.apply(this,arguments)},direction:i?"vertical":"horizontal",isUpdate:s,minimizeOnMobile:!1},n.id):null},p=function(e){var n=e.title,t=e.description,c=e.isUpcoming,a=void 0!==c&&c,u=e.guestId,l=(0,o.Pf)({params:{guestId:u,isUpcoming:a}}),d=l.data,f=l.isLoading;return(0,g.jsx)("section",{className:"pt-[96px]",children:(0,g.jsxs)(s.Z,{className:"px-[20px]",children:[(0,g.jsx)(i.Z,{type:"h3",color:"greenEagle",font:"centra",fontWeight:"medium",children:n}),(0,g.jsx)(r.Z,{font:"centra",fontWeight:"normal",color:"greenEagle",children:t}),(0,g.jsxs)("div",{children:[f&&(0,g.jsx)("span",{children:"Loading..."}),null===d||void 0===d?void 0:d.reservations.results.map((function(e){return(0,g.jsx)(h,{reservation:e,isUpcoming:a},e.id)}))]})]})})},x=t(7294),m=function(){var e=(0,l.aC)();return(0,x.useEffect)((function(){e.user||e.setAuthModalOpened(!0)}),[e.user]),(0,g.jsxs)("main",{className:"pb-[96px]",children:[(0,g.jsx)("section",{className:"bg-light_peach py-[96px]",children:(0,g.jsxs)(s.Z,{className:"px-[20px]",children:[(0,g.jsx)(i.Z,{type:"h2",font:"begum",fontWeight:"normal",color:"greenEagle",children:"My Stay"}),(0,g.jsx)(r.Z,{font:"centra",fontWeight:"normal",size:"3xl",color:"greenEagle",children:"Find past and upcoming stays"})]})}),!!e.guestId&&(0,g.jsx)(p,{title:"Upcoming stays",isUpcoming:!0,guestId:e.guestId}),!!e.guestId&&(0,g.jsx)(p,{title:"Past stays",guestId:e.guestId})]})},v=t(5154),j=t(9886),y=t(9243),w=function(){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v.Z,{canonical:"reservations",title:"My Stays",description:"My Stays"}),(0,g.jsxs)("div",{children:[(0,g.jsx)(y.Z,{theme:"light"}),(0,g.jsx)(m,{}),(0,g.jsx)(j.Z,{})]})]})}},9112:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reservations",function(){return t(9597)}])},4087:function(e,n,t){"use strict";t.d(n,{M:function(){return d}});var s=t(3234);function i(e,n,t){t.set(e&&n?e/n:0)}var r,o=t(1756),c=t(8868);function a(){return{xOffset:window.pageXOffset,yOffset:window.pageYOffset,xMaxOffset:document.body.clientWidth-window.innerWidth,yMaxOffset:document.body.clientHeight-window.innerHeight}}var u=!1;function l(){u=!0;var e=function(e,n){var t=function(){var t=n(),s=t.xOffset,r=t.yOffset,o=t.xMaxOffset,c=t.yMaxOffset;e.scrollX.set(s),e.scrollY.set(r),i(s,o,e.scrollXProgress),i(r,c,e.scrollYProgress)};return t(),t}(r,a);(0,o.E)(window,"scroll",e),(0,o.E)(window,"resize",e)}function d(){return r||(r={scrollX:(0,s.B)(0),scrollY:(0,s.B)(0),scrollXProgress:(0,s.B)(0),scrollYProgress:(0,s.B)(0)}),(0,c.L)((function(){!u&&l()}),[]),r}}},function(e){e.O(0,[779,298,784,369,772,886,143,211,774,888,179],(function(){return n=9112,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.