PageSourceSearch

https://www.grtwines.com/_next/static/chunks/pages/notifications-9914afe906a67327.js

js grtwines.com collected 2026-10-06 21:38:47 UTC 2,791 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8769],{35242:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications",function(){return n(99174)}])},99174:function(e,t,n){"use strict";n.r(t);var i=n(52322),r=n(53965),s=n(96428),o=n(23985),a=n(43532),c=n(3471),l=n(5632),u=n(50336),d=n(2994),x=n(77776),f=n(11100),h=n(84431),p=n(7480),m=n(68771),g=n(82936),j=n(62940),k=n(15955),b=n(66715);const y=(0,s.m$)(r.kC,{shouldForwardProp:e=>!["isLight"].includes(e),baseStyle(e){let{isLight:t}=e;return{m:"50px",flexDir:"column",maxW:"600px",w:"100%",bgColor:t?"primaryLight.300":"primaryDark.300",borderRadius:"9px"}}}),v=(0,s.m$)(o.zx,{baseStyle:{h:"fit-content",mx:"auto",my:"20px"}}),C=(0,s.m$)(a.Ee,{baseStyle:{maxW:"60px",objectFit:"cover",borderRadius:"9px"}});t.default=()=>{const e=(0,l.useRouter)(),{isLight:t}=(0,m.Z)(),{walletAddress:n}=(0,g.S)(),{user:s}=(0,h.S)(),o=null===s||void 0===s?void 0:s.sub,{data:a,fetchNextPage:_,hasNextPage:w,isFetchingNextPage:N,isFetched:P}=(0,c.useInfiniteQuery)([k.S8.GetUserNotifications,o,n],(e=>{let{pageParam:t=1}=e;return(0,d.TH)(n,t.toString(),4..toString())}
1),{enabled:!!o&&!!n,getNextPageParam:(e,t)=>e.hasMore&&t.length+1,retry:2}),S=null===a||void 0===a?void 0:a.pages.flatMap((e=>e.notificationData)),L=t=>{e.push("/marketplace/".concat(t.token.onChainId))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.default,{}),(0,i.jsx)(r.xu,{children:(0,i.jsx)(j.ov,{fontWeight:"700",children:"My Notifications"})}),P?(0,i.jsxs)(y,{isLight:t,children:[n&&(null===S||void 0===S?void 0:S.map((e=>(0,i.jsxs)(r.kC,{as:"a",onClick:L,flexDir:"row",gap:"20px",maxH:"100px",py:"8px",px:"16px",borderRadius:"9px",_hover:{cursor:"pointer",background:t?(0,u.m4)("#000",.1):(0,u.m4)("#fff",.1)},children:[(0,i.jsx)(C,{src:(0,b.c)(e.token.liquidImage)}),(0,i.jsxs)(r.kC,{flexDir:"column",justifyContent:"space-around",children:[(0,i.jsx)(j.ov,{noOfLines:1,children:e.token.name}),(0,i.jsx)(j.sk,{textColor:"primaryAccent.500",children:e.message}),(0,i.jsx)(j.sk,{color:"grey",children:(0,p.p)(e.createdAt)})]})]},e._id)))),w&&(0,i.jsx)(v,{variant:"unstyled",onClick:()=>{!N&&w&&_()},children:(0,i.jsx)(j.sk,{textColor:"primaryAccent.500",children:"Load more"})})]}):(0,i.jsx)(r.M5,{boxSize:"500px",children:(0,i.jsxs)(r.kC,{flexDir:"column",justifyContent:"space-around",children:[(0,i.jsx)(x.Z,{}),(0,i.jsx)(j.sk,{mt:2,children:"Please connect wallet to see notifications"})]})})]})}},92228:function(e,t,n){"use strict";function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return i}})}},function(e){e.O(0,[6525,8898,2123,4424,4872,8461,6577,1596,9793,9542,8259,1100,9774,2888,179],(function(){return t=35242,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.