1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6183],{859881:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/perks",function(){return s(960812)}])},960812:function(e,l,s){"use strict";s.r(l);var t=s(785893),n=s(667294),i=s(811163),r=s(345022),a=s(457827),d=s(953287),o=s(796399),u=s(782533),c=s(509201),p=s(645249),h=s(706514);l.default=()=>{let e=(0,i.useRouter)(),{isFilterOpen:l}=(0,h.bN)(),[s,T]=(0,n.useState)("All NFTs"),[w,f]=(0,n.useState)({selectedTabOption:"live",selectedRewardTypes:[],selectedChain:null}),{chainDetails:C}=(0,n.useContext)(a.p),{address:_}=(0,c.w)(),{data:b=[],isLoading:N,error:O}=(0,p.UJ)(null,_,!!_),{data:F=[],isLoading:R,error:g}=(0,p.Z0)(null,!0),m=(0,n.useMemo)(()=>null==b?void 0:b.map(e=>{let l=null==C?void 0:C.find(l=>Number(l.chain_id)===Number(e.chain_id));return{...e,chainDetail:l}}),[b,C]),y=(0,n.useMemo)(()=>null==F?void 0:F.map(e=>{let l=null==C?void 0:C.find(l=>Number(l.chain_id)===Number(e.chain_id));return{...e,chainDetail:l}}),[F,C]);return((0,n.useEffect)(()=>{r.n.track("On Perks landing Page")},[]),e.isReady&&(null==C?void 0:C.length))?(0,t.jsx)(n.Fragment,{children:(0,t.jsx)(d.Z,{baseRoute:"/perks",filterOptions:["All NFTs","My NFTs","Rewards","Quests"],activeFilter:s,onFilterChange:T,showFilterButton:!0,onRewardsFiltersChange:e=>{f(e)},children:"Rewards"===s?(0,t.jsx)(u.Z,{selectedTabOption:w.selectedTabOption,selectedRewardTypes:w.selectedRewardTypes,selectedChain:w.selectedChain,filterType:"rewards",isFilterOpened:l}):"Quests"===s?(0,t.jsx)(u.Z,{selectedTabOption:w.selectedTabOption,selectedRewardTypes:w.selectedRewardTypes,selectedChain:w.selectedChain,filterType:"quest",isFilterOpened:l}):(0,t.jsx)(o.Z,{filterTab:s,userCollections:m,allCollections:y,isLoadingUserCollections:N,isLoadingAllCollections:R,userCollectionsError:O,allCollectionsError:g,isFilterOpened:l})})}):null}}},function(e){e.O(0,[4738,7473,1174,4817,7511,7536,7594,6440,9183,3287,7690,5544,239,9774,2888,179],function(){return e(e.s=859881)}),_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.