1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4918],{8828:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/search/artist",function(){return t(16115)}])},16115:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>x});var r=t(37876),l=t(14232),a=t(45105),i=t.n(a),n=t(77328),d=t.n(n),c=t(86615),o=t(7051),h=t(13666),u=t(93007),m=t(64228),j=t(45701);let f=` 2query qryNftBiker($search: String = "", $limit: Int = 100) { 3 holder( 4 where: {_or: [{alias: {_ilike: $search}}, {description: {_ilike: $search}}], flag: {_neq: "banned"}}, 5 limit: $limit, 6 order_by: {inserted_at: asc_nulls_last, listings_sold_aggregate: {count: desc}} 7 ) { 8 address 9 name: alias 10 description 11 flag 12 flag_reason 13 inserted_at 14 last_metadata_update 15 logo 16 twitter 17 tzdomain 18 website 19 sales_stats(where: {interval_days: {_eq: 3650}}) { 20 interval_days 21 rank 22 volume 23 type 24 } 25 } 26} 27`;async function _(e,s){await h.FP.load({storage_only:!0});let t=RegExp(s,"gi");for(let s of h.FP.getWallets()){if(e[s])continue;let r=h.FP.get(s);r.match(t)&&(e[s]={address:s,name:r,bookmarked:!0})}}function x(){let[e,s]=(0,l.useState)(),[t,a]=(0,l.useState)(),[n,x]=(0,l.useState)();(0,l.useEffect)(()=>{let e=h._S.get("search");if(!(0,h.Ie)(e)){let s=document.getElementById("search");s&&(s.value=e)}s(e)},[]),(0,l.useEffect)(()=>{g()},[e]);let p=e=>{if(e&&("Enter"===e.key||"onBlur"==e._reactName)){let t=e.target.value.trim();h._S.set("search",t),(0,h.wQ)(),s(t||"")}};async function g(){(0,h.Lq)(!0);let s=[];if(!(0,h.Ie)(e))for(let t of e.split(/[,;\.\s]+/im))!(0,h.Ie)(t)&&t.length>=3&&s.push(t);if((0,h.Ie)(s)){a("You must use words of at least 3 characters"),(0,h.Vw)();return}if(1==s.length&&String(s[0]).match(/^(tz|kt)[0-9a-z]{30,}/im)){window.location.href="/artist?wallet="+s[0];return}let t={limit:100,search:`%${s.join("%")}%`},{errors:r,data:l}=await (0,h.R_)(f,"qryNftBiker",t);if(r)return(0,h.Qg)(r);let i={};l.holder.forEach(e=>{e.sales=0,i[e.address]=e}),_(i,s.join(".*"));var n=i;for(let e of Object.keys(n)){let s=n[e];for(let e of(s.artist_sales=0,s.buys=0,s.sales=0,s.sales_stats))"artist"==e.type?s.artist_sales=(e.volume/j.Pv).round(0):"seller"==e.type?s.sales=(e.volume/j.Pv).round(0):"buyer"==e.type&&(s.buys=(e.volume/j.Pv).round(0));if((0,h.Ie)(s.name)){let t=h.FP.get(e);(0,h.Ie)(t)||(s.name=t)}n[e]=s}i=Object.values(i).sort(function(e,s){return s.sales-e.sales}),(0,h.Vw)(),a(null),x(i)}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{id:"input",className:"block",children:[(0,r.jsx)(d(),{children:(0,r.jsx)("title",{children:"Search wallet - Tezos NFT Tools"})}),(0,r.jsx)(o.w,{title:"Search wallets"}),(0,r.jsx)(i(),{src:"/js/sorttable.js"}),(0,r.jsx)("b",{children:"Search a wallet by name or from description"}),(0,r.jsx)(c.A.Control,{id:"search",placeholder:"artist name or description",onKeyDown:e=>p(e),onBlur:e=>p(e)})]}),(0,r.jsx)(m.Q,{children:(0,r.jsxs)("div",{children:[t&&(0,r.jsx)("p",{className:"error",children:t}),n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:(0,r.jsxs)("b",{children:["Total artists found : ",n.length]})}),(0,r.jsxs)("table",{id:"profiles",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Artist"}),(0,r.jsx)("th",{children:"Buys"}),(0,r.jsx)("th",{children:"Sales"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Wallet"})]})}),(0,r.jsx)("tbody",{children:n.map((e,s)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,u.GV)({address:e.address,name:e.name.slice(0,40)})}),(0,r.jsxs)("td",{className:"right",children:[e.artist_sales,"\xa0tz"]}),(0,r.jsxs)("td",{className:"right",children:[e.buys,"\xa0tz"]}),(0,r.jsxs)("td",{className:"right",children:[e.sales,"\xa0tz"]}),(0,r.jsx)("td",{children:e.bookmarked?"wallet in your monitoring list":String(e.description).slice(0,250)}),(0,r.jsx)("td",{children:(0,u.x$)({address:e.address,name:e.addres})})]},s))})]}),(0,r.jsx)("p",{id:"help",children:(0,r.jsx)("b",{children:"Help"})}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"Minted : number of NFTs created"}),(0,r.jsx)("li",{children:"Sales : number of sales (primary or secondary) made"})]})]})]})})]})}x.layout="skip_result",x.acl="public"},45105:(e,s,t)=>{e.exports=t(13209)}},e=>{e.O(0,[8802,636,6593,8792],()=>e(e.s=8828)),_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.