1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2465,8379],{74552:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var i=t(59499),o=t(67294),r=t(86010),a=t(24905),s=t(301),l=t(62370),c=t(97839),d=t(54592),u=t.n(d),v=t(85893),_=function(e){var n=e.classname;return(0,v.jsx)("div",{className:(0,r.Z)(u().container,n),children:(0,v.jsx)(l.Z,{src:(0,c.B)("images/marketplace/explore/mavia-logo.png"),alt:"mavia-logo",layout:"fill",priority:!0})})},m=o.memo(_),x=t(81593),p=t(30994),f=t.n(p),h=t(86947);function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=function(e){var n=e.onSelected,t=void 0===n?function(e){}:n,o=e.isCustom,l=void 0!==o&&o,c=e.selected,d=void 0===c?"":c,u=(0,a.p)(),_=u.queries,p=u.onFilter;return l?(0,v.jsxs)("div",{className:f().container,children:[(0,v.jsx)("div",{className:(0,r.Z)(f().maviaBox,(0,i.Z)({},f().isActived,h.VolumnChartTypes.MAVIA===d))}),(0,v.jsx)("div",{className:(0,r.Z)(f().rubyBox,(0,i.Z)({},f().isActived,h.VolumnChartTypes.RUBY===d))}),(0,v.jsxs)("div",{className:f().content,children:[(0,v.jsxs)("div",{className:(0,r.Z)(f().mavia,{}),onClick:function(){t(h.VolumnChartTypes.MAVIA)},children:[(0,v.jsx)(m,{}),(0,v.jsx)("span",{className:f().label,children:s.qQ.tokens.mavia.toLowerCase()})]}),(0,v.jsxs)("div",{className:(0,r.Z)(f().ruby),onClick:function(){t(h.VolumnChartTypes.RUBY)},children:[(0,v.jsx)(x.Z,{}),(0,v.jsx)("span",{className:f().label,children:s.qQ.tokens.ruby.toLowerCase()})]})]})]}):(0,v.jsxs)("div",{className:f().container,children:[(0,v.jsx)("div",{className:(0,r.Z)(f().maviaBox,(0,i.Z)({},f().isActived,s.qQ.tokens.mavia===(null===_||void 0===_?void 0:_.token)))}),(0,v.jsx)("div",{className:(0,r.Z)(f().rubyBox,(0,i.Z)({},f().isActived,s.qQ.tokens.ruby===(null===_||void 0===_?void 0:_.token)))}),(0,v.jsxs)("div",{className:f().content,children:[(0,v.jsxs)("div",{className:(0,r.Z)(f().mavia,{}),onClick:function(){p(b(b({},_),{},{token:s.qQ.tokens.mavia}))},children:[(0,v.jsx)(m,{}),(0,v.jsx)("span",{className:f().label,children:s.qQ.tokens.mavia.toLowerCase()})]}),(0,v.jsxs)("div",{className:(0,r.Z)(f().ruby),onClick:function(){p(b(b({},_),{},{token:s.qQ.tokens.ruby}))},children:[(0,v.jsx)(x.Z,{}),(0,v.jsx)("span",{className:f().label,children:s.qQ.tokens.ruby.toLowerCase()})]})]})]})},C=o.memo(g)},39402:function(e,n,t){"use strict";t.d(n,{D:function(){return _}});var i=t(59499),o=t(67294),r=t(86010),a=t(11163),s=t(82986),l=t(24902),c=t(63125),d=t(52769),u=t.n(d),v=t(85893),_=function(e){var n=e.children,t=e.classname,d=void 0===t?"":t,_=(0,a.useRouter)(),m=(0,l.C)(c.w.wallet.getAccount),x=(0,l.C)(c.w.wallet.getIsAuth),p=(Boolean(m),(0,o.useMemo)((function(){return s.Hc.includes(null===_||void 0===_?void 0:_.pathname)}),[null===_||void 0===_?void 0:_.pathname]));return(0,v.jsx)("div",{className:(0,r.Z)(u().container,d,(0,i.Z)({},u().noTabBar,p)),children:n})}},17581:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var i=t(16835),o=t(67294);function r(e,n){var t=o.useState(e),r=(0,i.Z)(t,2),a=r[0],s=r[1],l=o.useRef(null),c=function(e){l.current&&!l.current.contains(e.target)&&(s(!1),n&&n(!1))};return o.useEffect((function(){return document.addEventListener("click",c,!0),function(){document.removeEventListener("click",c,!0)}}),[a]),{ref:l,isComponentVisible:a,setIsComponentVisible:s}}},80731:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return Zn},default:function(){return kn}});var i,o=t(44459),r=t(51969),a=t(25715),s=t(36923),l=t(8008),c=t(63624),d=t(97839),u=t(67294),v=t(86010),_=t(39402),m=t(73923),x=t(59499),p=t(50029),f=t(87794),h=t.n(f),j=t(41664),b=t.n(j),g=t(96486),C=t(62370),w=t(24415),y=t.n(w),L=t(85893),T=function(e){var n=e.wrappedClass,t=e.children;return(0,L.jsx)("div",{className:(0,v.Z)(y().container,n),children:(0,L.jsx)("div",{className:y().content,children:t})})},N=u.memo(T),Z=t(28632),k=t.n(Z),O=function(e){var n=e.classname;return(0,L.jsx)("div",{className:(0,v.Z)(k().container,n),children:(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16em",height:"16em",viewBox:"0 0 16 16",fill:"none",children:[(0,L.jsxs)("g",{clipPath:"url(#clip0_7315_144572)",children:[(0,L.jsx)("circle",{cx:"8.48279",cy:"8",r:"6.875",stroke:"#61D591",strokeOpacity:"0.3",strokeWidth:"1.25"}),(0,L.jsx)("circle",{cx:"8.48279",cy:"8",r:"3.75",fill:"#61D591"})]}),(0,L.jsx)("defs",{children:(0,L.jsx)("clipPath",{id:"clip0_7315_144572",children:(0,L.jsx)("rect",{x:"0.982788",y:"0.5",width:"15",height:"15",rx:"7.5",fill:"white"})})})]})})},B=u.memo(O),I=t(69859),E=t.n(I),D=function(){return(0,L.jsx)("div",{className:E().container,children:(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"5em",height:"7em",viewBox:"0 0 5 7",fill:"none",children:[(0,L.jsx)("path",{d:"M0.355469 0.875195L1.23066 0L4.73145 3.50078L3.85625 4.37598L0.355469 0.875195Z",fill:"#588AF0"}),(0,L.jsx)("path",{d:"M1.23066 7.00156L0.355469 6.12637L3.85625 2.62559L4.73145 3.50078L1.23066 7.00156Z",fill:"#588AF0"})]})})},A=u.memo(D),P=t(53977),S=t.n(P),M=function(e){var n=e.classname;return(0,L.jsx)("div",{className:(0,v.Z)(S().container,n),children:(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12em",height:"12em",viewBox:"0 0 12 12",fill:"none",children:[(0,L.jsx)("path",{d:"M7.25735 4.2617C7.25735 4.51188 7.03904 4.7147 6.76974 4.7147C6.50045 4.7147 6.28214 4.51188 6.28214 4.2617C6.28214 4.01151 6.50045 3.8087 6.76974 3.8087C7.03904 3.8087 7.25735 4.01151 7.25735 4.2617Z",fill:"#D7DEF9"}),(0,L.jsx)("path",{d:"M5.24842 4.7147C5.51771 4.7147 5.73602 4.51188 5.73602 4.2617C5.73602 4.01151 5.51771 3.8087 5.24842 3.8087C4.97912 3.8087 4.76081 4.01151 4.76081 4.2617C4.76081 4.51188 4.97912 4.7147 5.24842 4.7147Z",fill:"#D7DEF9"}),(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.21222 8.96774L0.546802 5.67551C0.391097 5.3677 0.647551 5.00426 0.95398 5.09845L2.6704 5.6261C2.91413 5.70102 3.15218 5.47836 3.16109 5.19774C3.20313 3.87307 3.79838 2 6.00829 2C8.21133 2 8.80484 3.87279 8.84683 5.19745C8.85573 5.47815 9.09398 5.70073 9.33773 5.62558L11.0455 5.09899C11.3518 5.00455 11.6085 5.36757 11.4532 5.67551L9.79283 8.96774H2.21222ZM7.06231 5.72942V5.24018H7.58892C7.63547 5.24018 7.68012 5.223 7.71304 5.19241C7.74596 5.16183 7.76446 5.12035 7.76446 5.0771V4.2617C7.76446 3.36101 6.97857 2.6309 6.00908 2.6309C5.03959 2.6309 4.25371 3.36101 4.25371 4.2617V5.0771C4.25371 5.12035 4.2722 5.16183 4.30512 5.19241C4.33804 5.223 4.38269 5.24018 4.42924 5.24018H4.95586V5.72942C4.95586 5.77267 4.97435 5.81415 5.00727 5.84473C5.04019 5.87531 5.08484 5.8925 5.13139 5.8925H6.88677C6.93332 5.8925 6.97797 5.87531 7.01089 5.84473C7.04381 5.81415 7.06231 5.77267 7.06231 5.72942ZM3.9251 6.41589C4.05434 6.36831 4.11757 6.23241 4.06632 6.11235C4.01508 5.99228 4.07831 5.85638 4.20755 5.8088L4.26821 5.78646C4.43096 5.72654 4.6152 5.80053 4.67972 5.95171L4.78773 6.20477C4.80318 6.24095 4.81365 6.27781 4.81947 6.31471L6.00044 6.78893L7.1814 6.31471C7.18722 6.27781 7.19769 6.24095 7.21314 6.20477L7.32115 5.95171C7.38567 5.80053 7.56992 5.72654 7.73266 5.78646L7.79332 5.8088C7.92256 5.85638 7.98579 5.99228 7.93455 6.11235C7.88331 6.23241 7.94654 6.36831 8.07578 6.41589C8.20501 6.46347 8.26824 6.59937 8.217 6.71944L8.19295 6.7758C8.12842 6.92698 7.94418 7.00096 7.78144 6.94104L7.50903 6.84074C7.46019 6.82276 7.41586 6.79876 7.37663 6.77003L6.63871 7.06634L7.37663 7.36266C7.41586 7.33392 7.46019 7.30993 7.50903 7.29195L7.78144 7.19164C7.94418 7.13173 8.12842 7.20571 8.19295 7.35689L8.217 7.41325C8.26824 7.53331 8.20501 7.66921 8.07578 7.7168C7.94654 7.76438 7.88331 7.90028 7.93455 8.02034C7.98579 8.1404 7.92256 8.2763 7.79332 8.32389L7.73266 8.34623C7.56992 8.40614 7.38567 8.33216 7.32115 8.18098L7.21314 7.92792C7.19769 7.89174 7.18722 7.85488 7.1814 7.81798L6.00044 7.34375L4.81947 7.81798C4.81365 7.85488 4.80318 7.89174 4.78773 7.92792L4.67972 8.18098C4.6152 8.33216 4.43096 8.40614 4.26821 8.34623L4.20755 8.32389C4.07831 8.2763 4.01508 8.1404 4.06632 8.02034C4.11757 7.90028 4.05434 7.76438 3.9251 7.7168C3.79586 7.66921 3.73263 7.53331 3.78387 7.41325L3.80793 7.35689C3.87245 7.20571 4.05669 7.13173 4.21943 7.19164L4.49185 7.29195C4.54068 7.30993 4.58501 7.33392 4.62424 7.36266L5.36216 7.06634L4.62424 6.77003C4.58501 6.79876 4.54068 6.82276 4.49185 6.84074L4.21943 6.94104C4.05669 7.00096 3.87245 6.92698 3.80793 6.7758L3.78387 6.71944C3.73263 6.59937 3.79586 6.46347 3.9251 6.41589Z",fill:"#D7DEF9"}),(0,L.jsx)("path",{d:"M2.24988 9.22581H9.74988V10H2.24988V9.22581Z",fill:"#D7DEF9"})]})})},F=u.memo(M),R=t(67557),V=t(81593),q=t(79944),H=t(49023),U=t(66348),Y=t(5144),Q=t(27812),G=t(53920),J=function(){return(0,G.ZP)("".concat("https://be.nexira.ai"),{transportOptions:{polling:{withCredentials:!0,extraHeaders:{}}}})},K=t(12611),z=t(49675),X=t.n(z),W=function(){return(0,L.jsx)("div",{className:(0,v.Z)(X().loader)})},$=t(62137),ee=t(21321),ne=t.n(ee),te=function(){var e=(0,u.useState)([]),n=e[0],t=e[1],i=(0,u.useState)(!1),o=i[0],r=i[1],a=(0,u.useState)(!1),s=a[0],l=a[1],c=function(){var e=(0,p.Z)(h().mark((function e(){var n,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r(!0),e.next=4,(0,Y.GR)();case 4:i=e.sent,t(null===i||void 0===i||null===(n=i.data)||void 0===n?void 0:n.results),e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(0),new Error("failed");case 11:return e.prev=11,l(!0),r(!1),e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[0,8,11,15]])})));return function(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){c()}),[]);var _=function(e){var n=e.isTrigger,t=e.onChange,i=(0,u.useState)(!1),o=i[0],r=i[1];return(0,u.useEffect)((function(){if(n){var e,i=J();return i.on("connect",(function(){i.emit("connect_marketplace")})),i.on("live-trade:marketplace:new",(function(n){t((function(e){return[n].concat((0,Q.Z)(e))})),r(!0),e=setTimeout((function(){r(!1)}),15e3)})),function(){i.disconnect(),clearTimeout(e)}}}),[n]),{hasNewTrading:o}}({isTrigger:s,onChange:t}),m=_.hasNewTrading,f=(0,u.useMemo)((function(){return(0,g.isEmpty)(n)?[]:n.slice(0,5)}),[n]);return(0,L.jsx)(N,{children:(0,L.jsxs)("div",{className:ne().container,children:[(0,L.jsxs)("header",{className:ne().header,children:[(0,L.jsxs)("div",{className:ne().titleBox,children:[(0,L.jsx)(B,{}),(0,L.jsx)("h2",{className:ne().titleBox_title,children:"Live Trades"})]}),(0,L.jsx)(b(),{href:"".concat(K.H.RUBY_TRANSACTIONS,"?type=Ruby"),children:(0,L.jsxs)("a",{className:ne().linkBox,children:[(0,L.jsx)("span",{className:ne().text,children:"View All"}),(0,L.jsx)(A,{})]})})]}),o?(0,L.jsx)(oe,{}):(0,L.jsx)("div",{className:(0,v.Z)(ne().tradesBox,(0,x.Z)({},ne().fadeIn,m)),children:null===f||void 0===f?void 0:f.map((function(e){var n,t,i,o,r,a,s,l,c,u,_,p,f,h,j,g,w;return(0,L.jsxs)("div",{className:(0,v.Z)(ne().tradeItem,(0,x.Z)({},ne().fadeIn,m)),children:[(0,L.jsxs)("div",{className:ne().collectionInfo,children:[(0,L.jsx)(b(),{href:"".concat(K.H.RUBY_TRANSACTION_DETAIL,"/").concat(null===e||void 0===e?void 0:e.transactionId),children:(0,L.jsx)("a",{className:(0,v.Z)(ne().methodBox,(n={},(0,x.Z)(n,ne().isBuy,(null===e||void 0===e?void 0:e.tradeType)===q.xz.BUY),(0,x.Z)(n,ne().isSell,(null===e||void 0===e?void 0:e.tradeType)===q.xz.SELL),n)),children:(0,L.jsx)("p",{className:(0,v.Z)(ne().label,(t={},(0,x.Z)(t,ne().isBuy,(null===e||void 0===e?void 0:e.tradeType)===q.xz.BUY),(0,x.Z)(t,ne().isSell,(null===e||void 0===e?void 0:e.tradeType)===q.xz.SELL),t)),children:null===e||void 0===e||null===(i=e.tradeType)||void 0===i?void 0:i.toLowerCase()})})}),(0,L.jsx)(H.Z,{isDefault:!(null!==e&&void 0!==e&&null!==(o=e.collection)&&void 0!==o&&null!==(r=o.iconImages)&&void 0!==r&&r[0])||(null===e||void 0===e||null===(a=e.collection)||void 0===a||null===(s=a.iconImages)||void 0===s?void 0:s[0].includes("Default")),children:(0,L.jsx)(b(),{href:"".concat(K.H.MARKETPLACE_ITEM,"/").concat(null===e||void 0===e||null===(l=e.collection)||void 0===l?void 0:l.id),children:(0,L.jsx)("a",{className:ne().avatarBox,children:null===e||void 0===e||null===(c=e.collection)||void 0===c||null===(u=c.iconImages)||void 0===u||!u[0]||null!==e&&void 0!==e&&null!==(_=e.collection)&&void 0!==_&&null!==(p=_.iconImages)&&void 0!==p&&p[0].includes("Default")?(0,L.jsx)("div",{className:ne().avatarImgDefault,children:(0,L.jsx)(C.Z,{src:(0,d.B)("images/marketplace/common/collection-default.png"),alt:"live-icon",layout:"fill",priority:!0,objectFit:"cover",showPlaceholder:!0})}):(0,L.jsx)("div",{className:ne().avatarImg,children:(0,L.jsx)(C.Z,{src:(0,d.B)(null===e||void 0===e||null===(f=e.collection)||void 0===f?void 0:f.iconImages[0]),alt:"live-icon",layout:"fill",priority:!0,objectFit:"cover",showPlaceholder:!0})})})})}),(0,L.jsx)(b(),{href:"".concat(K.H.MARKETPLACE_ITEM,"/").concat(null===e||void 0===e||null===(h=e.collection)||void 0===h?void 0:h.id),children:(0,L.jsx)("a",{className:ne().nameText,children:null===e||void 0===e||null===(j=e.collection)||void 0===j?void 0:j.name})}),(0,L.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"2em"},children:"DEFAULT"===(null===e||void 0===e||null===(g=e.collection)||void 0===g?void 0:g.theme)?null:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(F,{}),(0,L.jsx)("p",{className:ne().typeText,children:null===e||void 0===e||null===(w=e.collection)||void 0===w?void 0:w.theme})]})})]}),(0,L.jsxs)("div",{className:ne().collectionPrice,children:[ie[(null===e||void 0===e?void 0:e.tokenType)||"RUBY"],(0,L.jsx)(b(),{href:"".concat(K.H.RUBY_TRANSACTION_DETAIL,"/").concat(null===e||void 0===e?void 0:e.transactionId),children:(0,L.jsx)("a",{className:ne().priceText,children:(0,U.ZP)(null===e||void 0===e?void 0:e.price,{thousandsSeparator:",",hideZeroThous
1ands:!0})})})]})]},null===e||void 0===e?void 0:e.transactionId)}))})]})})},ie=(i={},(0,x.Z)(i,q.n3.MAVIA,(0,L.jsx)(R.Z,{size_12:!0})),(0,x.Z)(i,q.n3.RUBY,(0,L.jsx)(V.Z,{size_12:!0})),i),oe=function(){var e="dark"===(0,$.v)().colorTheme?"/images/marketplace/explore/live-trade-blur.png":"/images/marketplace/explore/live-trade-light-blur.png";return(0,L.jsxs)("div",{className:ne().loading,children:[(0,L.jsx)("div",{className:ne().blur,style:{background:"url(".concat((0,d.B)(e),") no-repeat 100% / 100%")}}),(0,L.jsx)("div",{className:ne().dot,children:(0,L.jsx)(W,{})})]})},re=t(36492),ae=t(30381),se=t.n(ae),le=t(93626),ce=t.n(le),de=function(e){var n=e.index,t=e.bio,i=(e.like,e.date),o=e.avatar;return(0,u.useEffect)((function(){document.getElementsByClassName("".concat(ce().bio))[n].innerHTML=t}),[t,n]),(0,L.jsxs)("div",{className:ce().container,children:[(0,L.jsxs)("div",{className:ce().content,children:[(0,L.jsx)(ue,{avatar:o}),(0,L.jsx)("div",{className:ce().tweetInfo,children:(0,L.jsx)("p",{className:ce().bio})})]}),(0,L.jsx)("div",{className:ce().tweetCreation,children:(0,L.jsx)("p",{className:ce().date,children:i})})]})},ue=function(e){var n=e.avatar;return(0,L.jsx)("div",{className:ce().thumbnailImg,children:(0,L.jsx)(C.Z,{src:(0,d.B)(n||"images/marketplace/explore/nexira-tweet.png"),alt:"avatar",layout:"fill",priority:!0})})},ve=t(81579),_e=t(16835),me=t(89382),xe=t(73935),pe=t(77451),fe=t(37507),he=t.n(fe),je=function(e){var n=e.selected,t=e.onClick;return(0,L.jsx)("button",{className:(0,v.Z)(he().emblaDot,n?he().emblaDotSelected:""),type:"button",onClick:t,"aria-label":"carousel-dot"})},be={delay:1e4,rootNode:function(e){return e.parentElement}},ge=function(e){var n=e.element,t=e.options,i=e.isDotPostionDefault,o=e.getIndex,r=(0,me.Z)(t,[(0,pe.Z)(be)]),a=(0,_e.Z)(r,2),s=a[0],l=a[1],c=(0,u.useState)([])[1],d=(0,u.useRef)(null),_=(0,u.useState)(0),m=_[0],x=_[1],p=(0,u.useState)([]),f=p[0],h=p[1],j=(0,u.useCallback)((function(e){return l&&l.scrollTo(e)}),[l]),b=(0,u.useCallback)((function(e){h(e.scrollSnapList())}),[]),g=(0,u.useCallback)((function(e){x(e.selectedScrollSnap()),o(e.selectedScrollSnap())}),[]),C=(0,u.useCallback)((function(){if(l){var e=l.internalEngine(),n=l.scrollProgress(),t=l.scrollSnapList().map((function(t,i){var o=t-n;e.options.loop&&e.slideLooper.loopPoints.forEach((function(e){var r=e.target();if(i===e.index&&0!==r){var a=Math.sign(r);-1===a&&(o=t-(1+n)),1===a&&(o=t+(1-n))}}));var r,a,s,l=1-Math.abs(3*o);return r=l,a=1,s=1,Math.min(Math.max(r,a),s)}));c(t)}}),[l,c]);return(0,u.useEffect)((function(){l&&(C(),l.on("scroll",(function(){(0,xe.flushSync)((function(){return C()}))})),l.on("reInit",C))}),[l,C]),(0,u.useEffect)((function(){l&&(b(l),g(l),l.on("reInit",b),l.on("reInit",g),l.on("select",g))}),[l,b,g]),(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:(0,v.Z)(he().container),children:[(0,L.jsx)("div",{className:(0,v.Z)(he().embla,"z-[10]"),ref:d,children:(0,L.jsx)("div",{className:he().embla__viewport,ref:s,children:(0,L.jsx)("div",{className:(0,v.Z)(he().embla__container),children:n})})}),(0,L.jsx)("div",{className:(0,v.Z)(he().dotContainer,i&&he().changeDefault),children:f.map((function(e,n){return(0,L.jsx)(je,{selected:n===m,onClick:function(){return j(n)}},n)}))})]})})},Ce=t(89718),we=t.n(Ce),ye={align:"start",loop:!1},Le=function(){var e,n=(0,u.useState)(0),t=n[0],i=n[1],o=(0,re.a)({queryKey:["tweets"],queryFn:function(){return(0,Y.ZJ)({limit:10,order:"DESC"})},enabled:!0,refetchOnWindowFocus:!1}),r=o.data,a=o.isLoading,s=(0,u.useMemo)((function(){var e,n;return(0,g.isEmpty)(null===r||void 0===r||null===(e=r.data)||void 0===e?void 0:e.results)?[]:null===r||void 0===r||null===(n=r.data)||void 0===n?void 0:n.results.slice(0,3)}),[null===r||void 0===r||null===(e=r.data)||void 0===e?void 0:e.results]),l=(null===s||void 0===s?void 0:s.length)||0,c=Array.from(Array(l).keys()),d=((0,u.useMemo)((function(){var e;return(0,g.isEmpty)(s)?"#":null===(e=s[t])||void 0===e?void 0:e.url}),[s,t]),(0,u.useCallback)((function(){return(0,g.isEmpty)(s)?[]:null===s||void 0===s?void 0:s.map((function(e,n){return(0,L.jsx)(u.Fragment,{children:(0,L.jsx)(de,{index:n,id:null===e||void 0===e?void 0:e.id,bio:null===e||void 0===e?void 0:e.description,like:null===e||void 0===e?void 0:e.likeCount,date:"".concat(se()(null===e||void 0===e?void 0:e.publishedAt).format("h:mm A \u2022 MMM DD, YYYY")),avatar:null===e||void 0===e?void 0:e.ownerImage,url:null===e||void 0===e?void 0:e.url})},null===e||void 0===e?void 0:e.id)}
1))}),[s]));return(0,L.jsx)(N,{children:(0,L.jsx)("div",{className:we().container,children:a?(0,L.jsx)(Te,{}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("header",{className:we().header,children:(0,L.jsxs)("div",{className:we().infoBox,children:[(0,L.jsx)(Ne,{}),(0,L.jsx)("p",{className:we().title,children:"Sterling's Announcements"})]})}),(0,L.jsx)(ge,{element:d(),slides:c,options:ye,getIndex:i})]})})})},Te=function(){return(0,L.jsx)("div",{className:we().loading,children:(0,L.jsx)("div",{className:we().dot,children:(0,L.jsx)(ve.k,{})})})},Ne=function(){return(0,L.jsx)("div",{className:we().avatarImg,children:(0,L.jsx)(C.Z,{src:(0,d.B)("images/marketplace/explore/sterling.png"),alt:"avatar",layout:"fill",objectFit:"cover",priority:!0})})},Ze=t(86996),ke=t.n(Ze),Oe=function(){return(0,L.jsxs)("div",{className:ke().container,children:[(0,L.jsx)(te,{}),(0,L.jsx)(Le,{})]})},Be=u.memo(Oe),Ie=t(4730),Ee=t(24905),De=t(3888),Ae=t.n(De),Pe=["onSearch","wrapperClass","inputClass","placeholder","loading","iconSVG"];function Se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Se(Object(t),!0).forEach((function(n){(0,x.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Fe=function(e){var n=e.onSearch,t=(e.wrapperClass,e.inputClass),i=e.placeholder,o=void 0===i?"Search":i,r=(e.loading,e.iconSVG,(0,Ie.Z)(e,Pe)),a=(0,u.useState)(""),s=a[0],l=a[1],c=(0,Ee.p)().queries,d=null===c||void 0===c?void 0:c.search;return(0,u.useEffect)((function(){l(d?"".concat(d):"")}),[d]),(0,L.jsxs)("div",{className:Ae().container,children:[(0,L.jsx)(Ve,{}),(0,L.jsx)("input",Me({value:s,onChange:function(e){l(e.target.value),n(e)},type:"text",placeholder:o,className:(0,v.Z)(Ae().input,t),autoComplete:"off"},r))]})},Re=u.memo(Fe),Ve=function(){return(0,L.jsx)("div",{className:Ae().searchIcon,children:(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14em",height:"14em",viewBox:"0 0 14 14",fill:"none",children:[(0,L.jsx)("path",{d:"M9.46018 1.88293C7.48748 -0.0979307 4.2784 -0.0948548 2.3057 1.88293C0.332997 3.86071 0.332997 7.07807 2.3057 9.05586C3.29358 10.0463 4.58826 10.5415 5.88294 10.5415C6.93832 10.5415 7.9937 10.2124 8.87727 9.55722C9.08282 9.40958 9.27611 9.24041 9.46018 9.05586C9.64426 8.8713 9.813 8.67752 9.96026 8.47144C11.4175 6.4875 11.2519 3.67616 9.46018 1.88293V1.88293ZM3.38869 7.97007C2.01424 6.59208 2.01424 4.3467 3.38869 2.96871C4.07898 2.27972 4.98096 1.93522 5.88294 1.93522C6.78492 1.93522 7.68997 2.27972 8.37719 2.96871C9.75164 4.3467 9.75164 6.59208 8.37719 7.97007C7.00275 9.34806 4.7662 9.34806 3.38869 7.97007V7.97007Z",fill:"#D7DEF9"}),(0,L.jsx)("path",{d:"M9.46359 7.9672L8.37891 9.05469L10.1578 10.8382L11.2425 9.75068L9.46359 7.9672Z",fill:"#D7DEF9"}),(0,L.jsx)("path",{d:"M14.0013 12.6144L13.0104 13.6079H11.8446L9.03125 10.7873L11.188 8.625L14.0013 11.4456V12.6144V12.6144Z",fill:"#D7DEF9"})]})})},qe=t(74552),He=t(24902),Ue=t(63125),Ye=t(83158),Qe=t.n(Ye),Ge=function(e){var n=e.isActived,t=void 0!==n&&n;return(0,L.jsx)("div",{className:(0,v.Z)(Qe().container,(0,x.Z)({},Qe().isActived,t)),children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9em",height:"6em",viewBox:"0 0 9 6",fill:"none",children:(0,L.jsx)("path",{d:"M4.5 5.99989L0 1.49989L1.50071 0.000244141L4.5 3.0006L7.49929 0.000244141L9 1.49989L4.5 5.99989Z",fill:"white"})})})},Je=u.memo(Ge),Ke=t(301),ze=t(17581),Xe=t(27073),We=t.n(Xe);function $e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function en(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?$e(Object(t),!0).forEach((function(n){(0,x.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$e(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var nn=Ke.qQ.sorts,tn=function(){var e,n=(0,Ee.p)(),t=n.queries,i=n.onFilter,o=(0,ze.Z)(!1),r=o.ref,a=o.isComponentVisible,s=o.setIsComponentVisible,l=null===t||void 0===t?void 0:t.sort,c=null===(e=nn.find((function(e){return e.id===l})))||void 0===e?void 0:e.Icon;return(0,L.jsxs)("div",{className:We().container,ref:r,children:[(0,L.jsxs)("div",{className:We().dropdownButton,onClick:function(){s(!a)},children:[(0,L.jsxs)("div",{className:We().left,children:[(0,L.jsx)(c,{isActived:!0}),(0,L.jsx)("span",{className:(0,v.Z)(We().label,(0,x.Z)({},We().isActived,!0)),children:Ke.KO["".concat(l)]})]}),(0,L.jsx)("div",{className:We().right,children:(0,L.jsx)(Je,{isActived:a})})]}),a?(0,L.jsx)("div",{className:We().dropdownList,children:Ke.qQ.sorts.map((function(e){var n=e.Icon;return(0,L.jsx)("div",{onClick:function(){i(en(en({},t),{},{sort:e.id,page:1}))},children:(0,L.jsxs)("a",{className:(0,v.Z)(We().dropdownItem,(0,x.Z)({},We().isActived,e.id===l)),onClick:function(){s(!a)},children:[(0,L.jsx)(n,{isActived:!1,isHover:!1}),(0,L.jsx)("span",{className:(0,v.Z)(We().label),children:e.label})]})},e.id)}))}):null]})};function on(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function rn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?on(Object(t),!0).forEach((function(n){(0,x.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):on(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var an=function(){var e=(0,Ee.p)(),n=e.queries,t=e.onFilter,i=(0,u.useState)(""),o=i[0],r=i[1];return(0,L.jsx)("div",{className:We().container,children:Ke.qQ.sorts.map((function(e){var i=e.Icon;return(0,L.jsx)("div",{onClick:function(){t(rn(rn({},n),{},{sort:e.id,page:1}))},children:(0,L.jsxs)("a",{className:(0,v.Z)(We().sortItem,(0,x.Z)({},We().isActived,e.id===(null===n||void 0===n?void 0:n.sort))),onMouseEnter:function(){return r(e.id)},onMouseLeave:function(){return r("")},children:[(0,L.jsx)(i,{isActived:e.id===(null===n||void 0===n?void 0:n.sort),isHover:o===e.id}),(0,L.jsx)("span",{className:(0,v.Z)(We().label,(0,x.Z)({},We().isActived,e.id===(null===n||void 0===n?void 0:n.sort))),children:e.label})]})},e.id)}))})},sn=function(){return(0,He.C)(Ue.w.app.getIsMobile)?(0,L.jsx)(tn,{}):(0,L.jsx)(an,{})},ln=u.memo(sn),cn=t(37984),dn=t.n(cn);function un(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function vn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?un(Object(t),!0).forEach((function(n){(0,x.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):un(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _n=function(){var e=(0,Ee.p)(),n=e.queries,t=e.onFilter,i=(0,u.useCallback)((0,g.debounce)((function(e){e?e.length>2&&t(vn(vn({},n),{},{page:1,search:e})):t({sort:null===n||void 0===n?void 0:n.sort,token:null===n||void 0===n?void 0:n.token,page:1})}),350),[n]);return(0,L.jsxs)("div",{className:dn().container,children:[(0,L.jsx)("div",{className:dn().tabBox,children:(0,L.jsx)(ln,{})}),(0,L.jsx)("div",{className:dn().searchBox,children:(0,L.jsx)(Re,{onSearch:function(e){var n=e.target.value;i(n)}})}),(0,L.jsx)("div",{className:dn().tokenBox,children:(0,L.jsx)(qe.Z,{})})]})},mn=u.memo(_n),xn=t(834),pn=t(11464),fn=t.n(pn),hn=function(){return(0,L.jsxs)("div",{className:fn().container,children:[(0,L.jsx)(mn,{}),(0,L.jsx)(xn.ZP,{})]})},jn=u.memo(hn),bn=t(5585),gn=t.n(bn),Cn=function(){return(0,L.jsxs)("div",{className:gn().container,children:[(0,L.jsx)(m.Z,{}),(0,L.jsx)(Be,{}),(0,L.jsx)(jn,{})]})},wn=u.memo(Cn),yn=t(67142),Ln=t.n(yn),Tn=function(){return(0,L.jsx)("div",{className:(0,v.Z)(Ln().container),children:(0,L.jsx)(_.D,{children:(0,L.jsx)(wn,{})})})},Nn=t(72132),Zn=!0,kn=(0,l.Z)((function(){var e=(0,o.$G)().t,n=(0,He.C)(Ue.w.wallet.getAccount),t=(0,He.C)(Ue.w.wallet.getIsAuth),i=Boolean(n)&&t;return(0,u.useEffect)((function(){var e=setTimeout((function(){var e;!i||null!==n&&void 0!==n&&null!==(e=n.account)&&void 0!==e&&e.firebaseProvider||Nn.toast.error("You need to link a social account first.")}),5e3);return function(){return clearTimeout(e)}}),[i,n]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(s.Z,{title:"Explorer | Ruby Marketplace",description:e("common:meta.marketplace.desc"),keywords:e("common:meta.keywords"),previewImg:(0,d.B)("images/marketplace/marketplace-preview.jpg")}),(0,L.jsx)(r.o,{children:(0,L.jsx)(Tn,{})}),(0,L.jsx)(a.$,{})]})}),c.h6.MARKETPLACE,"/")},87984:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/marketplace",function(){return t(80731)}])},67142:function(e){e.exports={container:"Explore_container__yoALp",noTabBar:"Explore_noTabBar__fObt4"}},11464:function(e){e.exports={container:"Collections_container__25WSQ"}},37984:function(e){e.exports={container:"Filters_container__OrwXr",tabBox:"Filters_tabBox__50vTU",searchBox:"Filters_searchBox__r1pR4",tokenBox:"Filters_tokenBox__TOVQh"}},5585:function(e){e.exports={container:"Main_container__3IoIC"}},21321:function(e){e.exports={container:"LiveTrades_container__0ABUu",loading:"LiveTrades_loading__n7Ap3",blur:"LiveTrades_blur__GQZfy",dot:"LiveTrades_dot__loGo4",header:"LiveTrades_header__gopZE",titleBox:"LiveTrades_titleBox__ZFC87",titleBox_title:"LiveTrades_titleBox_title__49IgU",linkBox:"LiveTrades_linkBox__57iub",text:"LiveTrades_text__8_laU",tradesBox:"LiveTrades_tradesBox__hbx7q",tradeItem:"LiveTrades_tradeItem__jaY0j",fadeIn:"LiveTrades_fadeIn__pHvFS","horizontal-shaking":"LiveTrades_horizontal-shaking__Upxa3",collectionInfo:"LiveTrades_collectionInfo__vo6je",collectionPrice:"LiveTrades_collectionPrice__ls_eJ",methodBox:"LiveTrades_methodBox__Yj7B8",isBuy:"LiveTrades_isBuy__jIKyL",isSell:"LiveTrades_isSell__gCfpY",label:"LiveTrades_label__JOBDN",avatarBox:"LiveTrades_avatarBox__DWCbJ",avatarImgDefault:"LiveTrades_avatarImgDefault__tqjlb",avatarImg:"LiveTrades_avatarImg__I_IH_",nameText:"LiveTrades_nameText__1M97R",typeText:"LiveTrades_typeText__JPGH4",priceLabel:"LiveTrades_priceLabel__0yMp3",priceText:"LiveTrades_priceText__clmM7",gradient:"LiveTrades_gradient__Ss8DO"}},86996:function(e){e.exports={container:"News_container__BSiiU"}},93626:function(e){e.exports={container:"Item_container__8drLa",content:"Item_content__pGniO",thumbnailImg:"Item_thumbnailImg__oGK_7",tweetInfo:"Item_tweetInfo__OmUqo",bio:"Item_bio__v_p6L",tweetCreation:"Item_tweetCreation__bHChh",likeBox:"Item_likeBox__dQXKJ",likeIcon:"Item_likeIcon__F8hga",likeNumber:"Item_likeNumber__4Nq_r",date:"Item_date__2q9rY"}},89718:function(e){e.exports={container:"Tweets_container__iEBZK",header:"Tweets_header__nurTQ",title:"Tweets_title__8kPdT",avatarImg:"Tweets_avatarImg__4tyo6",infoBox:"Tweets_infoBox__OpwEd",linkBox:"Tweets_linkBox__ZQFl2",text:"Tweets_text__jb93_",loading:"Tweets_loading__xZjkD",blur:"Tweets_blur__DZskr",dot:"Tweets_dot__lPuGu"}},83158:function(e){e.exports={container:"DropdownIcon_container__SpJR9",isActived:"DropdownIcon_isActived__4FhT7"}},28632:function(e){e.exports={container:"Live_container__77apW",blink:"Live_blink__tG86Z"}},54592:function(e){e.exports={container:"MaviaLogo_container__lnwvb"}},53977:function(e){e.exports={container:"Pirate_container__KU1yV"}},69859:function(e){e.exports={container:"RightArrow_container__Bnh6J"}},49675:function(e){e.exports={loader:"LiveLoading_loader__dqMcQ",animation:"LiveLoading_animation__v0HJY"}},24415:function(e){e.exports={container:"NewsBox_container__4hUie",content:"NewsBox_content__IM8Xr"}},3888:function(e){e.exports={container:"Search_container__TsfW7",input:"Search_input__gYpRJ",searchIcon:"Search_searchIcon__XJ_Ax"}},27073:function(e){e.exports={container:"Tabs_container__evwNi",dropdownButton:"Tabs_dropdownButton__FFEVC",left:"Tabs_left__1jQlU",label:"Tabs_label___K_bl",dropdownList:"Tabs_dropdownList__GQciu",dropdownItem:"Tabs_dropdownItem__wedEd",sortItem:"Tabs_s
1ortItem__gG96M",isActived:"Tabs_isActived__PwnzC"}},30994:function(e){e.exports={container:"TokenBox_container__jLTYx",content:"TokenBox_content__FLTTF",maviaBox:"TokenBox_maviaBox__hRx4X",isActived:"TokenBox_isActived__t5DbE",maviaBoxAnim:"TokenBox_maviaBoxAnim__rrjrL",rubyBox:"TokenBox_rubyBox__z1OVp",rubyBoxAnim:"TokenBox_rubyBoxAnim__tBI_t",mavia:"TokenBox_mavia___NEA_",isDisabled:"TokenBox_isDisabled__ANaii",label:"TokenBox_label__RwvSF",ruby:"TokenBox_ruby__GpawT"}},37507:function(e){e.exports={container:"ExploreCarousel_container__bwluI",embla:"ExploreCarousel_embla__Eh3cS",embla__viewport:"ExploreCarousel_embla__viewport__eFLgt",embla__container:"ExploreCarousel_embla__container__fFrJU",embla__scale:"ExploreCarousel_embla__scale__b40aD",emblaDot:"ExploreCarousel_emblaDot__KYAmI",emblaDots:"ExploreCarousel_emblaDots__ZIOvh",emblaDotSelected:"ExploreCarousel_emblaDotSelected__ZuXtq",dotContainer:"ExploreCarousel_dotContainer__jGyVA",changeDefault:"ExploreCarousel_changeDefault__nDUrm"}},52769:function(e){e.exports={container:"ContentLayout_container__Aidyt",noConnected:"ContentLayout_noConnected__eR3i_",noTabBar:"ContentLayout_noTabBar__1iIEk"}},8379:function(e){e.exports=function(){const e=["a","b","c","d","e","f","0","1","2","3","4","5","6","7","8","9"];let n=[];for(let t=0;t<36;t++)n[t]=8===t||13===t||18===t||23===t?"-":e[Math.ceil(Math.random()*e.length-1)];return n.join("")}}},function(e){e.O(0,[7509,5278,5669,8621,1175,5360,1969,3923,9774,2888,179],(function(){return n=87984,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.