1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3172],{72686:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/messages/rooms/[room_id]",function(){return i(53924)}])},53924:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return g},default:function(){return I}});var r=i(85893),t=i(67294),o=i(68856),u=i(27484),l=i.n(u),a=i(84110),d=i.n(a),s=i(11163),c=i(31955),v=i(85245),_=i(68854),f=i(95640),m=i(34117),p=i(77837),y=i(83819),h=i(12989);l().extend(d());var g=!0;function I(){var e,n,i;let{t:u}=(0,o.$G)("common"),l=(0,s.useRouter)(),{isFetching:a,data:d,refetch:g,isRefetching:I}=(0,p.a)({cacheTime:0,queryKey:["messages"],queryFn:async()=>{var e;let n=JSON.parse(c.Z.get("userInfo")||"{}");return await m.al.fetchMessages({userId:null==n?void 0:n._id,roomId:null==l?void 0:null===(e=l.query)||void 0===e?void 0:e.room_id})}}),{isFetched:q,isFetching:E,data:w}=(0,p.a)({cacheTime:0,queryKey:["adDetail"],queryFn:async()=>{var e,n;let{data:i}=await m.P.fetchById({adId:null===(e=null==d?void 0:d.items[0])||void 0===e?void 0:e.contentId});return{...i,imageUrl:null==i?void 0:i.images[0],lastUpdatedDate:null==i?void 0:null===(n=i.properties)||void 0===n?void 0:n.adDate,price:(0,f.T4)({price:null==i?void 0:i.price,currency:null==i?void 0:i.currency})}},enabled:!a&&!!(null==d?void 0:null===(e=d.items)||void 0===e?void 0:e.length)});return(0,t.useEffect)(()=>{g()},[l.query.room_id]),(0,t.useEffect)(()=>{let e=0,n=setInterval(()=>{if(l.query.room_id){if((e+=1)>24){clearInterval(n);return}g()}},5e3);return()=>clearInterval(n)},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.Z,{}),(0,r.jsxs)(y.Z,{title:u("MESSAGES"),hasBackButton:!0,children:[!w&&(E||a&&!I)&&(0,r.jsx)(h.Z,{count:2}),q&&w&&d&&!(a&&!I)&&(0,r.jsx)(_.Z,{adDetail:w,roomId:null==l?void 0:null===(n=l.query)||void 0===n?void 0:n.room_id,currentMessages:null==d?void 0:d.items,participants:null==d?void 0:d.participants},null==l?void 0:null===(i=l.query)||void 0===i?void 0:i.room_id)]})]})}}},function(e){e.O(0,[1155,9774,2888,179],function(){return e(e.s=72686)}),_N_E=e.O()}]);
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.