PageSourceSearch

https://kamernet.nl/_next/static/chunks/pages/my-messages/[inboxType]-21feba23def92786.js

js kamernet.nl collected 2026-09-25 14:57:34 UTC 26,765 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="da7a3f81-5798-4c92-88d5-560a143ce5c1",e._sentryDebugIdIdentifier="sentry-dbid-da7a3f81-5798-4c92-88d5-560a143ce5c1")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9944],{13518:e=>{e.exports={contrastDivider:"ConversationsList_contrastDivider__5Vuh2"}},19820:e=>{e.exports={root:"SafetyAdvice_root__2zdkC",header:"SafetyAdvice_header__JHO8_"}},21165:e=>{e.exports={secondaryDetails:"ListingsConversationsList_secondaryDetails__B8rrH"}},32126:(e,s,a)=>{"use strict";a.d(s,{l:()=>n});var t=a(65066);let n=()=>{let{getRequiredTargetPageProps:e}=t.NQ.useContext();return e()}},37938:e=>{e.exports={root:"ListActions_root__nfYhv",section:"ListActions_section__tx8T1"}},38818:e=>{e.exports={root:"RowsPerPageSelect_root__YncGu"}},42777:e=>{e.exports={root:"OtherParticipant_root__VfFvb",profileImage:"OtherParticipant_profileImage__rSiBr",sendDate:"OtherParticipant_sendDate__ofSnj",captionIcon:"OtherParticipant_captionIcon__82nga"}},43432:e=>{e.exports={root:"MatchScoreDetails_root__gxYC0",dialogTitle:"MatchScoreDetails_dialogTitle__k84bU",matchScoreItem:"MatchScoreDetails_matchScoreItem__FVKw_",dialogSkeleton:"MatchScoreDetails_dialogSkeleton__2tNoV"}},46319:(e,s,a)=>{"use strict";a.d(s,{A:()=>i});var t=a(38213),n=a(6029);let i=(0,t.A)([(0,n.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,n.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"CameraAlt")},48643:e=>{e.exports={messagesBucket:"MyConversations_messagesBucket__0Koag",safetyAdvice:"MyConversations_safetyAdvice__nzllI",safetyAdviceHeader:"MyConversations_safetyAdviceHeader__9z_qQ"}},56565:e=>{e.exports={listingDetails:"MessagePreview_listingDetails__ND6vP"}},59433:(e,s,a)=>{"use strict";a.r(s),a.d(s,{__N_SSP:()=>e3,default:()=>e2});var t=a(6029),n=a(55729),i=a(967),r=a(1085),l=a(36283),o=a(43387),c=a(21570),d=a(79385),_=a(62321),h=a(83119),u=a(32849),A=a(61210),x=a(62526),m=a(95143),v=a(32559),j=a(89129),g=a(81278),C=a(38213);let L=(0,C.A)((0,t.jsx)("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"}),"DeleteOutlined"),p=(0,C.A)((0,t.jsx)("path",{d:"M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2zm-2 0v.01L12 13 4 8l8-4.68zM4 18v-7.66l8 5.02 7.99-4.99L20 18z"}),"DraftsOutlined"),S=(0,C.A)((0,t.jsx)("path",{d:"M22 8.98V18c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2l.01-12c0-1.1.89-2 1.99-2h10.1c-.06.32-.1.66-.1 1s.04.68.1 1H4l8 5 3.67-2.29c.47.43 1.02.76 1.63.98L12 13 4 8v10h16V9.9c.74-.15 1.42-.48 2-.92M16 5c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3"}),"MarkEmailUnreadOutlined"),b=(0,C.A)((0,t.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),E=(0,C.A)((0,t.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"Restore");var M=a(54687),y=a(78624),N=a(73542),I=a(88351),k=a(32126);let R=(0,a(39006).R)("ConversationsListContext"),D=(0,C.A)((0,t.jsx)("path",{d:"M7 8V5l-7 7 7 7v-3l-4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11"}),"ReplyAllOutlined");var B=a(56188),f=a(39649),z=a(67463),T=a(74886),P=a(50972),O=a(17966),w=a(66441),Y=a(31780),V=a(43044),G=a(6186),U=a(34555),K=a(70215),F=a.n(K);let H=()=>{let{T:e}=(0,c.tz)(),{replyToSelectedConversations:s}=R.useContext(),[a,i]=n.useState(!1),r=n.useCallback(()=>{i(!0)},[]),l=n.useCallback(()=>{i(!1)},[]),o=n.useCallback(async s=>{let a={};return(0,V.m4)(s.message)&&(a.message=e("LBL_REQUIRED_FIELD")),(0,V.xh)(s.message,10)&&(a.message=e("LBL_AUTOREPLY_MINIMUM_CHARACTERS",10)),a},[e]),d=n.useCallback(async e=>{try{await s(e.message),l()}catch(e){(0,w.N7)(Error("Failed to send bulk reply in conversation list"),{extra:{cause:e},tags:{[Y.dR.KN_Module]:Y.ky.MyDashboard}})}},[s,l]);return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(N.A,{title:(0,t.jsx)(v.A,{variant:"subtitle3",children:e("LBL_MY_MESSAGES_ACTION_BLOCK_REPLAY")}),children:(0,t.jsx)(I.A,{onClick:r,children:(0,t.jsx)(D,{color:"secondary"})})}),(0,t.jsxs)(f.A,{open:a,onClose:l,children:[(0,t.jsx)(z.A,{children:(0,t.jsx)(v.A,{variant:"h4",className:j.C.margin_top_2,children:e("LBL_MY_MESSAGES_REPLY_TEXTAREA_HINT")})}),(0,t.jsx)(U.l,{className:F().form,validate:o,subscription:{submitting:!0},onSubmit:d,children:({submitting:s})=>(0,t.jsxs)(n.Fragment,{children:[(0,t.jsxs)(T.A,{children:[(0,t.jsx)(G.vE,{name:"message",rows:8,variant:"outlined",size:"small",fullWidth:!0}),(0,t.jsx)(G.sG,{name:"message"})]}),(0,t.jsxs)(P.A,{children:[(0,t.jsx)(O.A,{onClick:l,children:e("LBL_CANCEL")}),(0,t.jsx)(B.A,{variant:"contained",color:"secondary",type:"submit",loading:s,children:e("LBL_SEND")})]})]})})]})]})};var $=a(41811),X=a(68507),q=a(6371),Q=a(50203),W=a(13050),J=a(90722),Z=a(68293),ee=a(35409);let es=()=>{let[e,s]=n.useState(null),{T:a}=(0,c.tz)(),{conversations:i,markSelectedConversations:r}=R.useContext(),l=i.filter(e=>e.isSelected),d=!1,_=!1,h=!1,u=!1;for(let e of l)e.isRead&&(u=!0),e.isRead||(h=!0),e.isFavorite&&(_=!0),e.isFavorite||(d=!0);let A=n.useCallback(e=>{s(e.currentTarget)},[]),x=n.useCallback(()=>{s(null)},[]),m=n.useCallback(()=>{r(o.Ez.Favorite)},[r]),v=n.useCallback(()=>{r(o.Ez.Unfavorite)},[r]),j=n.useCallback(()=>{r(o.Ez.Read)},[r]),g=n.useCallback(()=>{r(o.Ez.Unread)},[r]);return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(Q.x,{touchEvent:!1,onClickAway:x,children:(0,t.jsx)(I.A,{color:"secondary",onClick:A,children:(0,t.jsx)($.A,{})})}),(0,t.jsxs)(W.A,{anchorEl:e,open:!!e,transitionDuration:0,onClose:x,children:[d&&(0,t.jsxs)(J.A,{onClick:m,children:[(0,t.jsx)(Z.A,{children:(0,t.jsx)(X.A,{color:"warning",fontSize:"small"})}),(0,t.jsx)(ee.A,{children:a("LBL_MY_MESSAGES_MARK_FAVORITE")})]}),_&&(0,t.jsxs)(J.A,{onClick:v,children:[(0,t.jsx)(Z.A,{children:(0,t.jsx)(q.A,{color:"secondary",fontSize:"small"})}),(0,t.jsx)(ee.A,{children:a("LBL_MY_MESSAGES_MARK_NOT_FAVORITE")})]}),h&&(0,t.jsxs)(J.A,{onClick:j,children:[(0,t.jsx)(Z.A,{children:(0,t.jsx)(p,{color:"secondary",fontSize:"small"})}),(0,t.jsx)(ee.A,{children:a("LBL_MY_MESSAGES_MARK_READ")})]}),u&&(0,t.jsxs)(J.A,{onClick:g,children:[(0,t.jsx)(Z.A,{children:(0,t.jsx)(S,{color:"secondary",fontSize:"small"})}),(0,t.jsx)(ee.A,{children:a("LBL_MY_MESSAGES_MARK_UNREAD")})]})]})]})};var ea=a(73297),et=a(84228),en=a(11247),ei=a(65066);let er=()=>{let{getRequiredTargetPageProps:e}=ei.NQ.useContext();return e()};var el=a(90291),eo=a.n(el);let ec=()=>{let{T:e,locale:s}
1=(0,c.tz)(),a=(0,g.useRouter)(),{routeParams:i}=er(),r=n.useCallback(e=>{a.push(h.b.MyConversations.getURL({...i,sortBy:e.target.value},s)).catch(()=>{})},[s,i,a]),l=n.useCallback(s=>(0,t.jsx)(v.A,{component:"span",variant:"body2",children:e(en.m[s])}),[e]);return(0,t.jsx)(et.l,{id:"sort-by-select",size:"small",className:eo().root,value:i.sortBy,renderValue:l,onChange:r,children:ea.g.values(o.qt).map(s=>(0,t.jsx)(J.A,{selected:!0,value:s,children:(0,t.jsx)(v.A,{variant:"body2",children:e(en.m[s])})},s))})};var ed=a(37938),e_=a.n(ed);let eh=()=>{let{T:e,locale:s}=(0,c.tz)(),a=(0,g.useRouter)(),{routeParams:i}=(0,k.l)(),{canRestoreConversation:r,conversations:l,selectAllConversations:d,unselectAllConversations:_,markSelectedConversations:u}=R.useContext(),A=!1,x=!0,C=!1;for(let e of(0===l.length&&(x=!1),l))e.isSelected&&(A=!0),e.isSelected||(x=!1),e.isSelected&&!e.isRead&&(C=!0);let D=n.useCallback(e=>{e.target.checked?d():_()},[d,_]),B=n.useCallback(()=>{a.push(h.b.MyConversations.getURL(i,s)).catch(()=>{})},[s,i,a]),f=n.useCallback(()=>{u(o.Ez.Delete)},[u]),z=n.useCallback(()=>{u(o.Ez.Trash)},[u]),T=n.useCallback(()=>{u(o.Ez.Read)},[u]),P=n.useCallback(()=>{u(o.Ez.Unread)},[u]),O=n.useCallback(()=>{u(o.Ez.Restore)},[u]);return(0,t.jsxs)(M.Ay,{className:e_().root,children:[(0,t.jsxs)("div",{className:e_().section,children:[(0,t.jsx)(y.A,{size:"small",checked:x,className:j.C.padding_0,onChange:D}),(0,t.jsx)(m.A,{orientation:"vertical",flexItem:!0}),A?(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(H,{}),(0,t.jsx)(N.A,{title:(0,t.jsx)(v.A,{variant:"subtitle3",children:e("LBL_MY_MESSAGES_ACTION_BLOCK_MARK_AS_DELETE")}),children:(0,t.jsx)(I.A,{color:"secondary",onClick:r?f:z,children:(0,t.jsx)(L,{})})}),r&&(0,t.jsx)(N.A,{title:(0,t.jsx)(v.A,{variant:"subtitle3",children:e("LBL_MY_MESSAGES_ACTION_BLOCK_MARK_AS_RESTORE")}),children:(0,t.jsx)(I.A,{color:"secondary",onClick:O,children:(0,t.jsx)(E,{})})}),C?(0,t.jsx)(N.A,{title:(0,t.jsx)(v.A,{variant:"subtitle3",children:e("LBL_MY_MESSAGES_ACTION_BLOCK_MARK_AS_READ")}),children:(0,t.jsx)(I.A,{color:"secondary",onClick:T,children:(0,t.jsx)(p,{color:"secondary"})})}):(0,t.jsx)(N.A,{title:(0,t.jsx)(v.A,{variant:"subtitle3",children:e("LBL_MY_MESSAGES_ACTION_BLOCK_MARK_AS_UNREAD")}),children:(0,t.jsx)(I.A,{color:"secondary",onClick:P,children:(0,t.jsx)(S,{color:"secondary"})})}),(0,t.jsx)(es,{})]}):(0,t.jsx)(I.A,{color:"secondary",onClick:B,children:(0,t.jsx)(b,{})})]}),(0,t.jsx)("div",{className:e_().section,children:(0,t.jsx)(ec,{})})]})};var eu=a(30118),eA=a(90931),ex=a(62644),em=a(75828),ev=a.n(em),ej=a(31323),eg=a(96887),eC=a(91502),eL=a(66571),ep=a(61082),eS=a.n(ep);let eb=({conversation:e})=>{let{locale:s,T:a}=(0,c.tz)(),i=(0,g.useRouter)(),r=(0,eA.A)(),l=(0,ex.A)(r.breakpoints.up("sm")),{inboxType:d,listingID:_}=h.b.MyConversations.parseRouteParams(i.query,s),{canRestoreConversation:u,markConversation:A,toggleSelectConversation:x}=R.useContext(),m=n.useCallback(()=>{A(e.conversationID,o.Ez.Delete)},[e.conversationID,A]),C=n.useCallback(()=>{A(e.conversationID,o.Ez.Trash)},[e.conversationID,A]),L=n.useCallback(()=>{A(e.conversationID,o.Ez.Read)},[e.conversationID,A]),b=n.useCallback(()=>{A(e.conversationID,o.Ez.Unread)},[e.conversationID,A]),k=n.useCallback(()=>{A(e.conversationID,o.Ez.Restore)},[e.conversationID,A]),D=n.useCallback(()=>{A(e.conversationID,o.Ez.Favorite)},[e.conversationID,A]),B=n.useCallback(()=>{A(e.conversationID,o.Ez.Unfavorite)},[e.conversationID,A]),f=n.useCallback(()=>{x(e.conversationID)},[e.conversationID,x]),z=h.b.Conversation.getURL({conversationID:e.conversationID,inboxType:d,fromListingID:_},s,"prefix"),T=(0,t.jsxs)("div",{className:eS().endActions,children:[(0,t.jsx)(N.A,{title:(0,t.jsx)(v.A,{variant:"subtitle3",children:a("LBL_MY_MESSAGES_ACTION_BLOCK_MARK_AS_DELETE")}),children:(0,t.jsx)(I.A,{color:"secondary",onClick:u?m:C,children:(0,t.jsx)(eu.A,{})})}),u&&(0,t.jsx)(N.A,{title:(0,t.jsx)(v.A,{variant:"subtitle3",children:a("LBL_MY_MESSAGES_ACTION_BLOCK_MARK_AS_RESTORE")}),children:(0,t.jsx)(I.A,{color:"secondary",onClick:k,children:(0,t.jsx)(E,{})})}),e.isRead?(0,t.jsx)(N.A,{title:(0,t.jsx)(v.A,{variant:"subtitle3",children:a("LBL_MY_MESSAGES_ACTION_BLOCK_MARK_AS_UNREAD")}),children:(0,t.jsx)(I.A,{color:"secondary",onClick:b,children:(0,t.jsx)(S,{})})}):(0,t.jsx)(N.A,{title:(0,t.jsx)(v.A,{variant:"subtitle3",children:a("LBL_MY_MESSAGES_ACTION_BLOCK_MARK_AS_READ")}),children:(0,t.jsx)(I.A,{color:"secondary",onClick:L,children:(0,t.jsx)(p,{})})})]});return(0,t.jsxs)(M.Ay,{className:ev()(eS().root,e.isRead?"":eS().isRead),children:[(0,t.jsxs)("div",{className:eS().startActions,children:[(0,t.jsx)(y.A,{checked:e.isSelected,size:"small",className:j.C.padding_0,onChange:f}),(0,t.jsx)(I.A,{className:j.C.padding_0,color:e.isFavorite?"warning":"secondary",onClick:e.isFavorite?B:D,children:e.isFavorite?(0,t.jsx)(X.A,{}):(0,t.jsx)(q.A,{})})]}),(0,t.jsxs)("div",{className:eS().links,children:[(0,t.jsx)(ej.k.Native,{className:eS().link,underline:"none",target:"_blank",href:z,children:(0,t.jsx)(eL.u,{conversation:e})}),(0,t.jsxs)("div",{className:eS().messagePreview,children:[(0,t.jsx)(ej.k.Native,{className:eS().link,underline:"none",target:"_blank",href:z,children:(0,t.jsx)(eC.Y,{conversation:e})}),l&&T]})]}),(0,t.jsxs)("div",{className:eS().matchScoreLevelContainer,children:[!l&&T,(0,t.jsx)(eg.M,{conversationID:e.conversationID,level:e.matchScoreLevel})]})]})};var eE=a(13518),eM=a.n(eE);let ey=()=>{let{conversations:e}=R.useContext(),{T:s}=(0,c.tz)();return(0,t.jsxs)(x.A,{disablePadding:!0,children:[(0,t.jsx)(eh,{}),e.length>0?e.map(e=>(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(m.A,{className:e.isRead?"":eM().contrastDivider,component:"li"}),(0,t.jsx)(eb,{conversation:e})]},e.conversationID)):(0,t.jsx)(v.A,{variant:"body1Bold",className:j.C.textCenter,children:s("LBL_JOBS_NO_RESULTS")})]})};var eN=a(25995);let eI=e=>e.map(e=>({...e,isSelected:!1})),ek=({conversations:e,canRestoreConversation:s,children:a})=>
1{let{routeParams:r}=er(),[d,_]=n.useState(eI(e)),{locale:u}=(0,c.tz)(),{apiClient:A}=eN.n.useContext(),x=(0,g.useRouter)();n.useEffect(()=>{_(eI(e))},[e]);let m=n.useCallback(()=>{let e=[];for(let s of d)s.isSelected&&e.push(s.conversationID);return e},[d]),v=n.useCallback((e,s)=>{0!==e.length&&A.conversation.markAs({markConversationsRequest:{conversationIDs:e,action:s}}).catch(()=>{})},[A]),j=n.useCallback((e,s)=>{for(let a of(_(a=>{let t=[];for(let n of a)if(e.some(e=>n.conversationID===e)){let e={...n};s===o.Ez.Read&&(e.isRead=!0),s===o.Ez.Unread&&(e.isRead=!1),s===o.Ez.Favorite&&(e.isFavorite=!0),s===o.Ez.Unfavorite&&(e.isFavorite=!1),s!==o.Ez.Delete&&s!==o.Ez.Trash&&s!==o.Ez.Restore&&t.push(e)}else t.push(n);return t}),e))(0,i.track)((0,l.QH)(s),(0,l.pd)(a))},[]),C=n.useCallback((e,s)=>{j([e],s),v([e],s)},[j,v]),L=n.useCallback(e=>{let s=m();j(s,e),v(s,e)},[m,j,v]),p=n.useCallback(e=>{_(s=>s.map(s=>s.conversationID===e?{...s,isSelected:!s.isSelected}:s))},[]),S=n.useCallback(()=>{_(e=>e.map(e=>({...e,isSelected:!0})))},[]),b=n.useCallback(()=>{_(e=>e.map(e=>({...e,isSelected:!1})))},[]),E=n.useCallback(async e=>{let s=m();0!==s.length&&(await A.conversation.sendMessage({sendMessageRequest:{message:e,conversationIDsList:s,imageKeys:[]}}),await x.push(h.b.MyConversations.getURL(r,u)))},[A.conversation,m,u,r,x]),M=n.useMemo(()=>({canRestoreConversation:s,conversations:d,markConversation:C,markSelectedConversations:L,toggleSelectConversation:p,selectAllConversations:S,unselectAllConversations:b,replyToSelectedConversations:E}),[s,d,C,L,p,S,b,E]);return(0,t.jsx)(R.Provider,{value:M,children:a})},eR=(0,C.A)((0,t.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Mail");var eD=a(9927),eB=a(40345),ef=a(33112),ez=a(21165),eT=a.n(ez);let eP=({listingsConversations:e})=>{let{T:s,locale:a}=(0,c.tz)(),{routeParams:i}=er();return(0,t.jsx)(x.A,{disablePadding:!0,children:e.length>0?e.map(e=>{let{listingDetails:r,unreadConversationsCount:l}=e;return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(m.A,{component:"li"}),(0,t.jsxs)(eD.A,{component:ej.k.Anchor,href:h.b.MyConversations.getURL({...i,inboxType:o.j0.All,listingID:r.listingID},a),children:[(0,t.jsx)(Z.A,{children:(0,t.jsx)(eB.A,{showZero:!0,color:"error",badgeContent:l,children:(0,t.jsx)(eR,{})})}),(0,t.jsx)(ee.A,{primary:(0,t.jsx)(v.A,{variant:"body3Bold",children:`${r.street} ${r.houseNumber} ${r.houseNumberAddition??""}, ${r.city}`}),secondary:(0,t.jsxs)(v.A,{variant:"body3",className:eT().secondaryDetails,children:[(0,t.jsx)("span",{children:s(ef.Co[r.listingType])}),(0,t.jsx)("span",{children:`${r.surfaceArea}m\xb2`}),(0,t.jsx)("span",{children:`€${r.totalRentalPrice}`})]})})]})]},r.listingID)}):(0,t.jsx)(v.A,{variant:"body1Bold",className:j.C.textCenter,children:s("LBL_JOBS_NO_RESULTS")})})};var eO=a(43643),ew=a(29718),eY=a(79616),eV=a.n(eY);let eG=({totalCount:e})=>{let{locale:s}=(0,c.tz)(),a=(0,g.useRouter)(),i=(0,ew.A)(),{routeParams:r}=er(),l=Math.ceil(e/r.rowsPerPage),o=n.useCallback((e,t)=>{a.push(h.b.MyConversations.getURL({...r,pageNo:t},s)).catch(()=>{})},[s,r,a]);return(0,t.jsx)(eO.A,{className:eV().root,size:i?"medium":"small",count:l,page:r.pageNo,shape:"rounded",onChange:o})};var eU=a(2189),eK=a(38818),eF=a.n(eK);let eH=[eU.KG,50,100],e$=()=>{let{T:e,locale:s}=(0,c.tz)(),a=(0,eA.A)(),i=(0,ex.A)(a.breakpoints.up("sm")),r=(0,g.useRouter)(),{routeParams:l}=er(),o=n.useCallback(e=>{r.push(h.b.MyConversations.getURL({...l,rowsPerPage:e.target.value},s)).catch(()=>{})},[s,l,r]),d=n.useCallback(e=>(0,t.jsx)(v.A,{variant:"body2",children:e}),[]);return(0,t.jsxs)("div",{className:eF().root,children:[i&&(0,t.jsx)(v.A,{variant:"body2",children:e("my_conversations_page.pagination.rows_per_page")}),(0,t.jsx)(et.l,{id:"rows-per-page-select",size:"small",value:l.rowsPerPage,renderValue:d,onChange:o,children:eH.map(e=>(0,t.jsx)(J.A,{value:e,children:(0,t.jsx)(v.A,{variant:"body2",children:e})},e))})]})},eX=(0,C.A)((0,t.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var eq=a(60369),eQ=a(19820),eW=a.n(eQ);let eJ=()=>{let{T:e}=(0,c.tz)();return(0,t.jsxs)(eq.A,{className:eW().root,variant:"outlined",children:[(0,t.jsxs)("div",{className:eW().header,children:[(0,t.jsx)(eX,{fontSize:"large"}),(0,t.jsx)(v.A,{variant:"h5",children:e("LBL_MSG_USP_HEADER")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(v.A,{variant:"body3",className:j.C.padding_top_2,children:e("LBL_MSG_USP_LINE1")}),(0,t.jsx)(v.A,{variant:"body3",className:j.C.padding_top_2,children:e("LBL_MSG_USP_LINE2")}),(0,t.jsx)(v.A,{variant:"body3",className:j.C.padding_top_2,dangerouslySetInnerHTML:{__html:e("LBL_MSG_USP_LINE3")}})]})]})};var eZ=a(48643),e0=a.n(eZ);let e1={[o.qt.Recommended]:"",[o.qt.MostRecent]:"Most Recent",[o.qt.HighToLow]:"Highe
1st Match",[o.qt.LowToHigh]:"Lowest Match"};(0,d.S)(async({locale:e,query:s,apiClient:a})=>{let t=h.b.MyConversations.parseRouteParams(s,e),{inboxType:n,pageNo:i,rowsPerPage:r,sortBy:c,listingID:d}=t,_=(0,l.jg)(n);if(n===o.j0.ActiveListings||n===o.j0.InactiveListings){let{listingsConversations:e,totalCount:s}=await a.conversation.getMyListingsConversations({inboxType:n,pageNo:i,rowsPerPage:r});return{routeParams:t,listingsConversations:e||[],totalCount:s,analytics:{name:_}}}let{conversations:u,selectedListingAddress:A,total:x}=await a.conversation.getMyConversations({inboxType:n,pageNo:i,rowsPerPage:r,sortBy:c,...(d??0)>0&&{listingID:d}});return{routeParams:t,conversations:u||[],selectedListingAddress:A,totalCount:x,analytics:{name:_}}});let e2=({routeParams:e,totalCount:s,...a})=>{let{T:l}=(0,c.tz)();n.useEffect(()=>{(0,i.track)(r.XN.MyConversationsSortBy,{"Sort by option selected":e1[e.sortBy]})},[e.sortBy]);let d="conversations"in a?a.selectedListingAddress:void 0,h=d?`${d.street} ${d.houseNumber} ${d.houseNumberAddition||""}`:"";return(0,t.jsx)(_.M,{pageTitle:l("LBL_PAGETITLE_MY_MESSAGES"),children:(0,t.jsx)(u.P,{breadcrumbsProps:{currentPageText:l("LBL_BREADCRUMB_MYMESSAGES")},children:(0,t.jsxs)("div",{children:[(0,t.jsx)(A.l,{title:l("LBL_MY_MESSAGES_LEFT_PANEL_TITLE",h),quickActions:(0,t.jsx)(e$,{}),children:(0,t.jsxs)("div",{className:e0().messagesBucket,children:["conversations"in a?(0,t.jsx)(ek,{canRestoreConversation:e.inboxType===o.j0.Trash,conversations:a.conversations,children:(0,t.jsx)(ey,{})}):(0,t.jsx)(eP,{listingsConversations:a.listingsConversations}),(0,t.jsx)(eG,{totalCount:s})]})}),(0,t.jsx)(eJ,{})]})})})};var e3=!0},61082:e=>{e.exports={root:"ListItem_root__1f4AI",isRead:"ListItem_isRead__iJLu7",links:"ListItem_links__xLmdQ",link:"ListItem_link__1sKxO",startActions:"ListItem_startActions__y_VKL",messagePreview:"ListItem_messagePreview__BW2vo",endActions:"ListItem_endActions__AzQQC",matchScoreLevelContainer:"ListItem_matchScoreLevelContainer__B3Rw_"}},66571:(e,s,a)=>{"use strict";a.d(s,{u:()=>u});var t=a(6029),n=a(46319),i=a(51208),r=a(73542),l=a(32559),o=a(74312),c=a.n(o),d=a(11725),_=a(42777),h=a.n(_);let u=({conversation:e})=>(0,t.jsxs)("div",{className:h().root,children:[(0,t.jsx)(d.G,{imageKey:e.participantProfilePhotoKey,className:h().profileImage,width:30,height:30}),(0,t.jsxs)("div",{children:[(0,t.jsx)(l.A,{variant:e.isRead?"body3":"body3Bold",children:`${e.participantFirstName} ${e.participantLastName}`}),(0,t.jsxs)("div",{className:h().sendDate,children:[(0,t.jsx)(l.A,{variant:"body4",color:"text.secondary",children:c()(e.messageSendDate).format("D MMM YYYY hh:mm")}),e.studentHouseName&&(0,t.jsx)(r.A,{title:(0,t.jsx)(l.A,{variant:"subtitle3",children:e.studentHouseName}),children:(0,t.jsx)(i.A,{className:h().captionIcon})}),e.messageImagesCount?(0,t.jsx)(n.A,{className:h().captionIcon}):null]})]})]})},70215:e=>{e.exports={form:"BulkReply_form__qOev_"}},77921:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-messages/[inboxType]",function(){return a(59433)}])},79616:e=>{e.exports={root:"Pagination_root__8pNLp"}},90291:e=>{e.exports={root:"SortBySelect_root__OkNdd"}},91502:(e,s,a)=>{"use strict";a.d(s,{Y:()=>u});var t=a(6029),n=a(55729),i=a(32559),r=a(43387),l=a(26865),o=a(21570),c=a(89129),d=a(56565),_=a.n(d);let h=e=>`(${e})`,u=({conversation:e})=>{let s,{T:a}=(0,o.tz)(),{userProfile:d}=l.c.useContext(),{listingDetails:u}=e,A=u?.listingStatusTypeId===r.Mz.Deleted||u?.listingStatusTypeId===r.Mz.Inactive,x=e.conversationStatusID===r.YH.PossibleAbuse,m=u?.totalRentalPrice?` - €${u.totalRentalPrice}`:"",v=u?.surfaceArea?`- ${u?.surfaceArea}m\xb2`:"";s=d?.userid&&d.userid===e.listingUserID?.toString()?`${u?.street||""} ${u?.houseNumber||""} ${u?.houseNumberAddition||""} ${m} ${v}`:`${u?.street||""} ${m} ${v}`;let j=e.isRead?"body3":"body3Bold",g=n.useMemo(()=>(e.obpRentalTransactionID?a("LBL_MESSAGE_PAYMENT_REQUEST"):e.message?e.message:a("LBL_MESSAGE_IMAGE_ONLY")).replace(/(<([^>]+)>)/gi," "),[a,e.message,e.obpRentalTransactionID]);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:_().listingDetails,children:[A&&(0,t.jsx)(i.A,{className:c.C.padding_right_1,color:"warning.light",variant:j,children:h(a("LBL_INACTIVE"))}),x&&(0,t.jsx)(i.A,{className:c.C.padding_right_1,color:"danger.light",variant:j,children:h(a("LBL_BLOCK"))}),(0,t.jsx)(i.A,{className:c.C.textEllipsis,variant:j,children:s})]}),(0,t.jsx)(i.A,{className:c.C.textEllipsis,variant:"body3",color:"text.secondary",children:g})]})}},96887:(e,s,a)=>{"use strict";a.d(s,{M:()=>f});var t=a(6029),n=a(55729),i=a(9),r=a(10485),l=a(73542),o=a(83730),c=a(39649),d=a(67463),_=a(88351),h=a(74886),u=a(17966),A=a(19997),x=a(32559),m=a(74312),v=a.n(m),j=a(967),g=a(1085),C=a(43387),L=a(25995),p=a(21570),S=a(31323),b=a(83119),E=a(89129),M=a(33112),y=a(11725),N=a(41786);let I={[C.Yc.None]:(0,N.X3)("LBL_MSU_BADGE_NA"),[C.Yc.Low]:(0,N.X3)("LBL_MSU_BADGE_LOW"),[C.Yc.Medium]:(0,N.X3)("LBL_MSU_BADGE_MEDIUM"),[C.Yc.High]:(0,N.X3)("LBL_MSU_BADGE_HIGH")},k={[C.Yc.None]:(0,N.X3)("my_conversations_page.match_score_level.tooltip.na"),[C.Yc.Low]:(0,N.X3)("my_conversations_page.match_score_level.tooltip.low"),[C.Yc.Medium]:(0,N.X3)("my_conversations_page.match_score_level.tooltip.medium"),[C.Yc.High]:(0,N.X3)("my_conversations_page.match_score_level.tooltip.high")};var R=a(43432),D=a.n(R);let B={[C.Yc.None]:"default",[C.Yc.Low]:"default",[C.Yc.Medium]:"warning",[C.Yc.High]:"success"},f=({level:e,conversationID:s})=>{let{T:a,locale:m}=(0,p.tz)(),{apiClient:N}=L.n.useContext(),R=e??C.Yc.None,[f,z]=n.useState(!1),[T,P]=n.useState(),O=n.useCallback(()=>
1{e!==C.Yc.None&&(z(!0),N.conversation.getMatchScoreDetails({conversationID:s}).then(e=>{P(e)}).catch(()=>{}),(0,j.track)(g.XN.MyConversationsClickMatchScoreBadge,{ConversationID:s,"Context of Click":"Inbox page"}))},[N.conversation,s,e]),w=n.useCallback(()=>{z(!1)},[]),Y=n.useMemo(()=>{let e=[];return T&&(T.ageIsShown&&e.push({name:a("LBL_AGE"),isCompatible:T.ageIsCompatible,serialisedValue:T.ageValue.toString()}),T.genderIsShown&&e.push({name:a("LBL_GLOBAL_GENDER"),isCompatible:T.genderIsCompatible,serialisedValue:T.genderValue?a(M.CU[T.genderValue]):""}),T.occupationIsShown&&e.push({name:a("LBL_OCCUPATION"),isCompatible:T.occupationIsCompatible,serialisedValue:T.occupationValue?a(M.S7[T.occupationValue]):""}),T.languagesIsShown&&e.push({name:a("LBL_LANGUAGES"),isCompatible:T.languagesIsCompatible,serialisedValue:T.languagesValue?T.languagesValue.map(e=>a(M.tz[e])).join(", "):""}),T.petIsShown&&e.push({name:a("LBL_PETS"),isCompatible:T.petIsCompatible,serialisedValue:T.petValue?a("LBL_YES"):a("LBL_NO")}),T.rentalPeriodIsShown&&e.push({name:a("LBL_RENTAL_PERIOD"),isCompatible:T.rentalPeriodIsCompatible,serialisedValue:T.rentalPeriodValue?a(M.TG[T.rentalPeriodValue]):""}),T.moveInDateIsShown&&e.push({name:a("LBL_MOVE_IN_DATE"),isCompatible:T.moveInDateIsCompatible,serialisedValue:T.moveInDateValue?v()(T.moveInDateValue).format("D MMM YYYY"):""}),T.numberOfTenantsIsShown&&e.push({name:a("LBL_NUMBER_OF_TENANTS"),isCompatible:T.numberOfTenantsIsCompatible,serialisedValue:T.numberOfTenantsValue.toString()})),e},[a,T]);return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(l.A,{title:(0,t.jsx)(x.A,{variant:"subtitle3",children:a(k[R])}),children:(0,t.jsx)(o.A,{className:D().root,color:B[R],size:"small",label:(0,t.jsx)(x.A,{variant:"body4Bold",children:a(I[R])}),clickable:!0,onClick:O})}),(0,t.jsx)(c.A,{open:f,onClose:w,children:T?(0,t.jsxs)(n.Fragment,{children:[(0,t.jsxs)(d.A,{className:D().dialogTitle,children:[(0,t.jsx)(y.G,{imageKey:T.userImageKey,width:65,height:65}),(0,t.jsx)(x.A,{variant:"h5",children:`${T.userFirstName} ${T.userLastName}`}),(0,t.jsx)(_.A,{onClick:w,children:(0,t.jsx)(r.A,{})})]}),(0,t.jsxs)(h.A,{children:[Y.map(e=>(0,t.jsxs)("div",{className:D().matchScoreItem,children:[e.isCompatible?(0,t.jsx)(i.A,{fontSize:"small",color:"success"}):(0,t.jsx)(r.A,{fontSize:"small",color:"error"}),(0,t.jsx)(x.A,{variant:"body2",children:e.name}),(0,t.jsx)(x.A,{variant:"body2Bold",children:e.serialisedValue})]},e.name)),(0,t.jsx)(u.A,{className:E.C.margin_top_2,component:S.k.Native,variant:"contained",color:"secondary",href:b.b.TenantPublicProfile.getURL({tenantID:T.userID,source:"mymessages"},m,"prefix"),target:"_blank",fullWidth:!0,children:a("LBL_VIEW_PROFILE")})]})]}):(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(d.A,{children:(0,t.jsx)(A.A,{className:D().dialogSkeleton,variant:"rectangular",height:70})}),(0,t.jsxs)(h.A,{children:[(0,t.jsx)(A.A,{className:D().dialogSkeleton,variant:"rectangular",height:300}),(0,t.jsx)(u.A,{className:E.C.margin_top_2,variant:"outlined",fullWidth:!0,onClick:w,children:a("LBL_CANCEL")})]})]})})]})}}},e=>{e.O(0,[455,8482,3730,6038,4687,1718,8624,9285,5928,9626,3542,5995,9221,71,9385,6186,8202,8367,636,6593,8792],()=>e(e.s=77921)),_N_E=e.O()}]);
2//# sourceMappingURL=[inboxType]-21feba23def92786.js.map

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.