PageSourceSearch

https://nftshowroom.com/_nuxt/discover.7087ef93.js

js nftshowroom.com collected 2026-10-03 19:57:14 UTC 2,788 bytes, 1 lines download raw bytes

1import{o as s,c,a as o,u as x,n as q,a_ as B,r as p,a$ as A,s as S,v as C,P as M,b as N,h as n,z as R,a6 as V,l as z,aw as D,g as w,F as g,i as F,k as K,x as $,E as j}from"./entry.1e51a0d0.js";import{_ as E}from"./Card.20e79745.js";import"./Hive.a629411e.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./Timeago.e462dde5.js";import"./AudioHover.ed386bbd.js";function L(k,r){return s(),c("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])}const P={class:"container px-4 mx-auto"},T=o("h1",{class:"py-1.5 mt-3 text-3xl text-center text-white uppercase bg-black dark:bg-slate-700 font-raleway"}," Discover Awesome Art ",-1),U=o("p",{class:"mt-5 mb-10"}," Search all of the tokenized art on NFT Showroom by keywords, tags, artists, or interests to find your favorite work from thousands of creators around the world. ",-1),H={class:"flex gap-2 items-center p-4 shadow-md dark:bg-slate-700"},O={class:"flex justify-end items-center p-2 w-auto text-grey"},G=["onKeydown"],I={key:0,class:"grid grid-cols-1 gap-6 mt-8 sm:grid-cols-2 lg:grid-cols-4"},ee={__name:"discover",async setup(k){let r,_;x({title:"Discover"});const{$api:m}=j(),e=q(),v=B(),d=p(!1),t=p(""),l=p([]);if(e.query.q&&e.query.q.length)t.value=e.query.q;else{const a=["updated","newest","oldest","price_asc","price_desc"],i=A("sortBy",()=>a[Math.floor(Math.random()*a.length)]),h=([r,_]=S(()=>m.get("market/listings",{params:{limit:12,sort_by:i.value}})),r=await r,_(),r);l.value=h}const y=async()=>{t.value.length<=0||await v.push({name:e.name,query:{q:t.value}})},f=async()=>{if(d.value=!0,e.query.q&&e.query.q.length)try{const a=await m.post("search",{q:t.value});l.value=a}catch{}d.value=!1};return C(()=>e.fullPath,async a=>{await f()}),M(async()=>{await f()}),(a,i)=>{const h=$,b=E;return s(),c("div",P,[T,U,o("div",H,[o("span",O,[N(n(L),{class:"w-7 h-7"})]),R(o("input",{"onUpdate:modelValue":i[0]||(i[0]=u=>z(t)?t.value=u:null),class:"w-full border-0 border-b-2 transition-colors duration-300 border-b-gray-300 dark:border-b-gray-900 focus:border-b-black dark:focus:border-b-white focus:outline-none focus:ring-0 focus:placeholder:text-transparent dark:focus:placeholder:text-slate-700",autocomplete:"false",type:"search",placeholder:"Search...",onKeydown:D(y,["enter"])},null,40,G),[[V,n(t)]]),o("button",{class:"button",onClick:y},"Search")]),n(d)?(s(),w(h,{key:0})):(s(),c(g,{key:1},[n(l).length?(s(),c("div",I,[(s(!0),c(g,null,F(n(l),u=>(s(),w(b,{series:u,route:"gallery-item",key:`${u.art_series}`},null,8,["series"]))),128))])):K("",!0)],64))])}}};export{ee as default};

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.