PageSourceSearch

https://szerszampiac.hu/_next/static/chunks/pages/WebAdmin/Chats/Details/[id]-892f5315637172d3.js

js szerszampiac.hu collected 2026-10-08 02:28:46 UTC 10,413 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6e9c540c-af38-4029-b9b4-c440a59b93e9",e._sentryDebugIdIdentifier="sentry-dbid-6e9c540c-af38-4029-b9b4-c440a59b93e9")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6066],{4233:(e,t,r)=>{"use strict";r.d(t,{RJ:()=>a,X2:()=>d,oz:()=>n});var s,i,l,a=((s={}).Text="Text",s.Select="Select",s.MultiSelect="MultiSelect",s.Boolean="Boolean",s),n=((i={}).Left="Left",i.Right="Right",i),d=((l={}).Button="Button",l.Link="Link",l.Text="Text",l)},7640:(e,t,r)=>{"use strict";r.d(t,{Dy:()=>d,G0:()=>h,si:()=>c});var s=r(34401),i=r(80967),l=r(27393),a=r(55623),n=r(60854);let d=(0,s.Ay)(i.A)(()=>({borderRadius:4})),c=(0,s.Ay)(l.A)(({theme:e})=>({padding:e.spacing(2,2,.5,2),".MuiCardHeader-subheader":{fontSize:16}})),h=(0,s.Ay)(a.A)(()=>({}));(0,s.Ay)(n.A)(()=>({}))},34136:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(37876),i=r(49106),l=r(76686),a=r(82702);let n=({type:e,title:t,subTitle:r,disablePadding:n=!1})=>{let d=(0,i.A)();return(0,s.jsxs)(l.A,{sx:{display:"inline-block"},children:[(0,s.jsx)(a.A,{variant:"page"===e?"h5":"body1",textTransform:"uppercase",color:d.palette.text.secondary,sx:[{mr:1},n?{pb:0}:{pb:.5*("page"===e)}],display:"inline-block",children:t}),r&&(0,s.jsxs)(a.A,{variant:"body2",textTransform:"uppercase",color:d.palette.text.secondary,display:"inline-block",children:["(",r,")"]})]})}},56982:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>z});var s=r(37876),i=r(4522),l=r(58347),a=r(9092),n=r(23342),d=r(19135),c=r(76686),h=r(75283),o=r(48230),m=r.n(o),x=r(10841),b=r.n(x),u=r(7640),g=r(34136),f=r(47403),p=r(73892);let j={bg:"rgba(33, 150, 243, 0.10)",border:"rgba(33, 150, 243, 0.45)",label:"#1565c0"},A={bg:"rgba(76, 175, 80, 0.12)",border:"rgba(76, 175, 80, 0.50)",label:"#2e7d32"},y=j.bg,w=A.bg,I=e=>{let t=e?A:j;return{bgcolor:t.bg,color:t.label,border:`1px solid ${t.border}`,fontWeight:600}},k=()=>{let{wadminChatDetailsGet:e,userIsOwner:t,handleChatRemove:r}=(0,p.B)(),i=e.data,o=new Set((i?.members??[]).filter(e=>e.isSeller&&e.memberId).map(e=>e.memberId)),x=new Set((i?.members??[]).filter(e=>!e.isSeller&&e.memberId).map(e=>e.memberId));return(0,s.jsxs)(l.A,{container:!0,spacing:1,className:"wadmin-chat-details",children:[(0,s.jsx)(l.A,{size:12,children:(0,s.jsx)(a.A,{sx:{p:1},children:(0,s.jsx)(n.A,{sx:{display:"flex",flexDirection:"column"},children:(0,s.jsx)(g.A,{type:"page",title:"Chat details",disablePadding:!0})})})}),(0,s.jsx)(l.A,{size:12,children:(0,s.jsx)(u.Dy,{children:(0,s.jsx)(u.G0,{children:(0,s.jsxs)(n.A,{className:"wadmin-chat-details-meta",direction:{xs:"column",md:"row"},spacing:2,justifyContent:"space-between",children:[(0,s.jsxs)(n.A,{children:[(0,s.jsx)(f.H3,{children:i?.adTitle?i.adTitle:"-"}),(0,s.jsxs)(n.A,{direction:"row",alignItems:"center",spacing:1.5,flexWrap:"wrap",children:[(0,s.jsxs)(f.Oc,{children:["Chat ID: ",i?.chatId??"-"]}),t?(0,s.jsx)(d.A,{id:"wadmin-chat-remove-link",sx:{cursor:"pointer"},color:"error",underline:"hover",onClick:r,children:(0,s.jsx)(f.Oc,{children:"Chat t\xf6rl\xe9se"})}):null]})]}),(0,s.jsxs)(n.A,{spacing:.5,minWidth:220,children:[(0,s.jsxs)(n.A,{direction:"row",justifyContent:"space-between",gap:2,children:[(0,s.jsx)(f.fz,{fontWeight:"bold",children:"L\xe9trehozva:"}),(0,s.jsx)(f.fz,{children:i?.createdAt?b()(i.createdAt).format("YYYY. MM. DD. HH:mm"):"-"})]}),(0,s.jsxs)(n.A,{direction:"row",justifyContent:"space-between",gap:2,children:[(0,s.jsx)(f.fz,{fontWeight:"bold",children:"\xdczenetek sz\xe1ma:"}),(0,s.jsx)(f.fz,{children:i?.messageCount??0})]})]})]})})})}),(0,s.jsx)(l.A,{size:{xs:12,md:4},children:(0,s.jsx)(u.Dy,{children:(0,s.jsxs)(u.G0,{children:[(0,s.jsx)(g.A,{type:"content",title:"Hirdet\xe9s"}),(0,s.jsxs)(n.A,{className:"wadmin-chat-details-ad",direction:"row",spacing:1.5,alignItems:"flex-start",mt:1,children:[(0,s.jsx)(c.A,{sx:{width:72,height:72,borderRadius:1,overflow:"hidden",flexShrink:0,bgcolor:"grey.100"},children:i?.adImageUrl?(0,s.jsx)("img",{src:i.adImageUrl,alt:i.adTitle??"Hirdet\xe9s k\xe9p",width:72,height:72,style:{objectFit:"cover",width:"100%",height:"100%"}}):null}),(0,s.jsxs)(n.A,{children:[(0,s.jsx)(f.fz,{fontWeight:"bold",children:i?.adTitle??"-"}),i?.adId?(0,s.jsxs)(d.A,{component:m(),href:`/Ads/Details/${i.adId}`,underline:"always",children:["Hirdet\xe9s megnyit\xe1sa (ID: ",i.adId,")"]}):(0,s.jsx)(f.Oc,{children:"A hirdet\xe9s m\xe1r nem \xe9rhető el"}),i?.adUrl?(0,s.jsx)(d.A,{href:i.adUrl,target:"_blank",rel:"noreferrer",underline:"hover",children:(0,s.jsx)(f.Oc,{children:"Publikus oldal"})}):null]})]})]})})}),(0,s.jsx)(l.A,{size:{xs:12,md:8},children:(0,s.jsx)(u.Dy,{children:(0,s.jsxs)(u.G0,{children:[(0,s.jsx)(g.A,{type:"content",title:"R\xe9sztvevők"}),(0,s.jsx)(l.A,{className:"wadmin-chat-details-members",container:!0,spacing:2,mt:.5,children:i?.members?.length?
1i.members.map((e,t)=>{let r=e.name?.trim()||null,i=e.email?.trim()||null,a=r&&i&&r!==i;return(0,s.jsx)(l.A,{size:{xs:12,sm:6},className:"wadmin-chat-details-member",children:(0,s.jsxs)(n.A,{spacing:.25,children:[(0,s.jsxs)(n.A,{direction:"row",spacing:1,alignItems:"center",flexWrap:"wrap",children:[(0,s.jsx)(h.A,{size:"small",label:e.isSeller?"Elad\xf3 (To)":"Vevő (From)",variant:"outlined",sx:I(!!e.isSeller)}),e.memberId?(0,s.jsx)(d.A,{component:m(),href:`/Members/Details/${e.memberId}`,underline:"always",children:e.memberId}):(0,s.jsx)(f.Oc,{children:"-"})]}),i?(0,s.jsx)(f.fz,{fontWeight:"bold",children:i}):null,a?(0,s.jsx)(f.Oc,{children:r}):null]})},t)}):(0,s.jsx)(l.A,{size:12,children:(0,s.jsx)(f.fz,{children:"-"})})})]})})}),(0,s.jsx)(l.A,{size:12,children:(0,s.jsx)(u.Dy,{children:(0,s.jsxs)(u.G0,{children:[(0,s.jsx)(g.A,{type:"content",title:"\xdczenetek",subTitle:"Legfrissebbek"}),(0,s.jsxs)(n.A,{className:"wadmin-chat-details-message-legend",direction:"row",spacing:1,mt:1,mb:.5,justifyContent:"space-between",children:[(0,s.jsx)(h.A,{size:"small",label:"Vevő (From)",variant:"outlined",sx:I(!1)}),(0,s.jsx)(h.A,{size:"small",label:"Elad\xf3 (To)",variant:"outlined",sx:I(!0)})]}),(0,s.jsx)(n.A,{className:"wadmin-chat-details-messages",spacing:1,mt:1,children:i?.messages?.length?i.messages.map((e,t)=>{var r;let i=!!(e.senderMemberId&&o.has(e.senderMemberId));return(0,s.jsx)(c.A,{className:"wadmin-chat-details-message",sx:{display:"flex",justifyContent:i?"flex-end":"flex-start"},children:(0,s.jsxs)(c.A,{sx:{bgcolor:(r=e.senderMemberId)&&o.has(r)?w:r&&x.has(r)?y:"rgba(0, 0, 0, 0.04)",borderRadius:1,px:1.5,py:1,maxWidth:{xs:"90%",md:"70%"},minWidth:0},children:[(0,s.jsxs)(n.A,{direction:"row",justifyContent:"space-between",gap:2,children:[(0,s.jsx)(f.H5,{children:e.senderName??e.senderMemberId??"-"}),(0,s.jsx)(f.Oc,{children:e.date?b()(e.date).format("YYYY. MM. DD. HH:mm"):""})]}),e.text?(0,s.jsx)(f.fz,{sx:{whiteSpace:"pre-wrap"},children:e.text}):null,e.images?.length?(0,s.jsx)(n.A,{direction:"row",spacing:1,flexWrap:"wrap",mt:.5,children:e.images.map((e,t)=>(0,s.jsx)(d.A,{href:e.fullUrl,target:"_blank",rel:"noreferrer",children:(0,s.jsx)("img",{src:e.thumbUrl,alt:"Chat k\xe9p",width:e.width&&e.height?void 0:96,height:e.width&&e.height?void 0:72,style:{maxWidth:96,maxHeight:72,width:"auto",height:"auto",objectFit:"contain",borderRadius:4,display:"block",background:"#eee"}})},t))}):null,e.files?.length?(0,s.jsx)(n.A,{spacing:.25,mt:.5,children:e.files.map((e,t)=>(0,s.jsx)(d.A,{href:e.downloadUrl,target:"_blank",rel:"noreferrer",underline:"hover",children:(0,s.jsx)(f.Oc,{children:e.fileName})},t))}):null]})},e.id??t)}):(0,s.jsx)(f.fz,{children:"Nincs \xfczenet"})})]})})})]})},v=()=>(0,s.jsx)(k,{}),z=v;v.getLayout=function(e){return(0,s.jsx)(i.A,{pageTitle:"Chat details",children:e})}},65596:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/WebAdmin/Chats/Details/[id]",function(){return r(56982)}])},73892:(e,t,r)=>{"use strict";r.d(t,{B:()=>g,N:()=>u});var s=r(37876),i=r(74359),l=r(40097),a=r(14232),n=r(89099),d=r(10553),c=r(23342),h=r(63472),o=r(4233),m=r(47403),x=r(55781),b=r(95658);let u=(e,t)=>{let r=(0,x.Oc)(),s=(0,b.mL)(),[l,n]=(0,a.useState)({}),d=[{field:"memberIdFilter",label:"Member ID",filterType:o.RJ.Text},{field:"adIdFilter",label:"Ad ID",filterType:o.RJ.Text}],c=(0,i.I)({queryKey:["wadminChats.get",l],queryFn:()=>{let i=new h.tJR({...l,skip:l.page?(parseInt(l.page)-1)*t:e*t,limit:t});return r.api.wadminChatAdminList(i).then(e=>e).catch(e=>(s.errorDisplay(e),e))}}),m=c.data?.resultCount?.toLocaleString("hu")??"-";return{tableColumns:[{field:["chatId"],label:"Chat",hrefTitle:[!0],href:["/Chats/Details/{0}"],bold:[!0],colWidth:0},{field:["fromMemberName","fromMemberId"],label:"From",hrefTitle:["",!0],href:["","/Members/Details/{0}"],blank:[!1,!0]},{field:["toMemberName","toMemberId"],label:"To",hrefTitle:["",!0],href:["","/Members/Details/{0}"],blank:[!1,!0]},{field:["adTitle","adId"],label:"Ad",hrefTitle:["",!0],href:["","/Ads/Details/{0}"],blank:[!1,!0]},{field:["messageCount"],label:"\xdczenetek sz\xe1ma",centeredText:!0,colWidth:0},{field:["lastActivityDate"],label:"Utols\xf3 aktivit\xe1s",dateFormat:"YYYY. MM. DD. HH:mm",noWrap:[!0],colWidth:0}],filterColumns:d,filters:l,wadminChatsGet:c,count:m,handleFilter:e=>{n(e)}}},g=()=>{let e=(0,x.Oc)(),t=(0,b.mL)(),r=(0,n.useRouter)(),{data:a}=(0,d.useSession)(),{id:o}=r.query,u="string"==typeof o?o:void 0,g=a?.user.role===h.b_9.Owner,f=(0,i.I)({queryKey:["wadminChatDetails.get",o],queryFn:()=>
1o?e.api.wadminChatAdminDetails(o).then(e=>e).catch(e=>(t.errorDisplay(e),e)):null}),p=(0,l.n)({mutationKey:["wadminChat.remove",u],mutationFn:()=>u?e.api.wadminChatRemove(u).then(e=>(t.notifiySuccess("Chat sikeresen t\xf6r\xf6lve!"),r.push("/Chats"),e)).catch(e=>(t.errorDisplay(e),e)):Promise.reject(Error("chatId missing"))});return{wadminChatDetailsGet:f,userIsOwner:g,handleChatRemove:()=>{t.confirm("Chat t\xf6rl\xe9se",(0,s.jsxs)(c.A,{children:[(0,s.jsx)(m.fz,{fontWeight:"bold",children:u??"-"}),(0,s.jsx)(m.fz,{children:"Ez a művelet v\xe9glegesen t\xf6rli a chatet \xe9s az \xfczeneteit. A csatolt f\xe1jlok/k\xe9pek k\xe9sőbb ker\xfclnek takar\xedt\xe1sra. Ez a művelet nem vonhat\xf3 vissza!"})]}),()=>{p.mutate()},"T\xf6rl\xe9s","M\xe9gse",!0,b.Jm.Info)},isRemoving:p.isPending}}}},e=>{e.O(0,[2251,3917,5283,7404,4522,636,6593,8792],()=>e(e.s=65596)),_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.