PageSourceSearch

https://coinness.com/static/SearchResult-Y34kbLk_.js

js coinness.com collected 2026-10-01 12:36:18 UTC 10,613 bytes, 1 lines download raw bytes

1import{j as e,z as l,r as E}from"./vendor-react-BAPsjU3S.js";import{L as k,u as P}from"./vendor-router-CShG477X.js";import{u as h,ab as T,ac as $,ad as F,a as y,U as z,ae as M,af as W,E as U,b as C,c as H,d as D,Q as w,K as A,ag as G,S,h as I,R as v,ah as K,ai as Q,aj as q,y as J,z as O,C as V,ak as X,D as Y,al as Z,J as ee,M as se,am as ne}from"./main-BT3GxRjs.js";import{u as m}from"./vendor-i18n-BvsFtJyE.js";import{u as te}from"./vendor-query-CEq1LORh.js";import{T as re}from"./Ticker-DTveDhvj.js";import{C as ie,a as ae,b as oe,P as ce,c as le,N as de,S as xe,d as he}from"./search-CCrnEmD6.js";import{u as pe}from"./useEnBreakingNewsPollStatus-G5gLdwOJ.js";import{N as me}from"./NewsBlock-DKWCbGuy.js";import{u as ue}from"./useStockBullStatus-CXyPmizl.js";import{S as ge}from"./StockNewsBlock-CeuXbzRC.js";const fe="/static/airdrop-dark-_-Bbz1iC.png",je="/static/airdrop-light-RlXLDsCf.png",be="/static/airdrop-origin-C0s0fIhH.png";function _e(){const{isDark:s}=T();return e.jsx("img",{src:s?fe:je,alt:"bag with coins"})}function Ye({isEnglish:s=!1,isJapanese:t=!1,onClick:n,type:c="normal"}){const{t:i}=m(),{currMainPrefix:r}
1=h(),o=`${r}/rewards/airdrop`;return c==="slim"?e.jsx(k,{to:o,onClick:n,children:e.jsxs(we,{children:[e.jsx(ke,{children:i("web_airdrop_banner_title")}),e.jsx(Ce,{children:e.jsx(_e,{})})]})}):e.jsx(k,{to:o,onClick:n,children:e.jsxs(Ne,{isEnglish:s,children:[e.jsxs(Le,{children:[e.jsx(Se,{isJapanese:t,children:i("web_airdrop_banner_title")}),e.jsxs(ve,{children:[e.jsxs(Ie,{children:[" ",i("web_airdrop_banner_link_text")]})," ",e.jsx(Re,{})]})]}),e.jsx(Be,{children:e.jsx("img",{src:be,alt:"bag with coins"})})]})})}const we=l.div.withConfig({displayName:"SlimWrapper",componentId:"sc-1nkxmbr-0"})(["display:flex;justify-content:center;align-items:center;gap:25px;width:1000px;height:50px;background:var(--tinted-blue-tinted,#ecf2ff);border-radius:8px;"]),ke=l.h1.withConfig({displayName:"SlimTitle",componentId:"sc-1nkxmbr-1"})(["color:var(--keycolor-primary-color,#445cf2);font-size:16px;font-weight:600;line-height:24px;"]),Ce=l.div.withConfig({displayName:"SlimImageWrapper",componentId:"sc-1nkxmbr-2"})(["position:relative;bottom:12px;width:95px;& > img{display:inline-block;width:100%;height:100%;}"]),Ne=l.div.withConfig({displayName:"Wrapper",componentId:"sc-1nkxmbr-3"})(["position:absolute;bottom:100px;left:50%;transform:translateX(-50%);display:flex;justify-content:space-between;align-items:center;padding:",";width:700px;height:100px;background:#5b84ff;border-radius:12px;box-sizing:border-box;"],s=>s.isEnglish?"25px 40px 25px 40px":"25px 100px 25px 80px"),Le=l.div.withConfig({displayName:"LeftSide",componentId:"sc-1nkxmbr-4"})([""]),Se=l.h1.withConfig({displayName:"Title",componentId:"sc-1nkxmbr-5"})(["margin-bottom:7px;font-size:",";font-weight:600;line-height:22px;color:var(--text-txt-01,#fff);white-space:pre;"],s=>s.isJapanese?"18px":"20px"),Ie=l.span.withConfig({displayName:"LinkText",componentId:"sc-1nkxmbr-6"})(["font-size:14px;font-weight:400;line-height:22px;color:var(--text-txt-01,#fff);"]),ve=l.button.withConfig({displayName:"LinkButton",componentId:"sc-1nkxmbr-7"})(["display:flex;align-items:center;"]),Re=l($).withConfig({displayName:"ArrowIcon",componentId:"sc-1nkxmbr-8"})(["path{fill:#fff;}"]),Be=l.div.withConfig({displayName:"ImageWrapper",componentId:"sc-1nkxmbr-9"})(["position:relative;bottom:10.5px;width:140px;& > img{display:inline-block;width:100%;height:100%;}"]);function Ze({searchKeyword:s,totalCount:t}){const{currLanguage:n}=h();return e.jsxs(Ae,{children:[e.jsx(Fe,{children:F(n,{en:e.jsxs(e.Fragment,{children:["Results for `",e.jsx(L,{children:s}),"`"]}),ko:e.jsxs(e.Fragment,{children:[e.jsx(L,{children:s})," 검색 결과에요."]}),ja:e.jsxs(e.Fragment,{children:["`",e.jsx(L,{children:s}),"` の検索結果"]})})}),e.jsxs(Ee,{hasPlus:t>999,children:[t>=999?999:t,t>999&&"+"]})]})}const Ae=l.h1.withConfig({displayName:"ResultTitle",componentId:"sc-u4xur4-0"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;margin-top:28px;color:var(--text-txt-06,#0a0e15);font-size:20px;font-weight:500;"]),Fe=l.div.withConfig({displayName:"SearchResultText",componentId:"sc-u4xur4-1"})(["display:flex;align-items:center;"]),L=l.span.withConfig({displayName:"SearchKeyword",componentId:"sc-u4xur4-2"})(["max-width:700px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),Ee=l.div.withConfig({displayName:"ResultCount",componentId:"sc-u4xur4-3"})(["display:flex;align-items:center;margin-left:8px;padding:0 8px;height:30px;background:var(--tinted-green-tinted,#effbef);border-radius:30px;color:var(--text-txt-green,#01b207);font-size:16px;font-weight:500;box-sizing:border-box;",""],({hasPlus:s})=>s&&"padding-right: 6px;"),Pe={[W]:"$",[M]:"¥"};function Te({coinResult:s}){const{currMainPrefix:t,currLanguage:n}=h(),{riseColor:c,fallColor:i}=y();return!s||s.length===0?e.jsx(e.Fragment,{}):e.jsx(e.Fragment,{children:s==null?void 0:s.map(r=>{if(!r)return e.jsx(e.Fragment,{});const o=r.changeRate>0?c.main:i.main;return e.jsx(ie,{children:e.jsx(k,{to:`${t}/market/coin/${r.originCode}`,children:e.jsx(ae,{overZero:r.changeRate>=0,children:e.jsxs(e.Fragment,{children:[e.jsx(re,{symbolImage:r.symbolImage,title:r.name,subtitle:r.code}),e.jsxs(oe,{children:[e.jsx(z,{value:r.changeRate}),e.jsxs(ce,{color:r.changeRate!==0?o:void 0,children:[e.jsx(le,{children:Pe[n]}),r.tradePriceFormat]})]})]})})})},r.originCode)})})}function $e({keyword:s}){const{t}=m(),{currLanguage:n}=h();return e.jsx(U,{children:e.jsx(C,{title:e.jsx(D,{children:n==="en"?e.jsxs(e.Fragment,{children:[t("web_no_result_search_title"),e.jsxs("div",{children:[e.jsx(w,{children:"`"}),e.jsx(A,{children:s}),e.jsx(w,{children:"`"})]})," "]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx(w,{children:"`"}),e.jsx(A,{children:s}),e.jsx(w,{children:"`"})]})," ",t("web_no_result_search_title")]})}
1),body:e.jsxs(H,{children:["∙ ",t("web_no_result_serach_text_1"),e.jsx("br",{}),"∙ ",t("web_no_result_serach_text_2"),e.jsx("br",{}),"∙ ",t("web_no_result_serach_text_3")]}),padding:"0"})})}function ye({article:s,total:t,keyword:n}){const{t:c}=m(),{currLanguage:i}=h(),r=(s==null?void 0:s.flatMap(a=>a.records))??[],{cache:o,onRowResize:d}=G(r,{defaultHeight:150,fixedWidth:!0,getKey:a=>String(a.id)});return t===0?e.jsx(S,{children:e.jsx(C,{title:e.jsxs(I,{children:[i==="en"?e.jsxs(e.Fragment,{children:[c("web_no_result_search_news_title")," ",e.jsxs("span",{children:["‘",n,"’"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("span",{children:["‘",n,"’"]})," ",c("web_no_result_search_news_title")]})," "]}),padding:"0"})}):e.jsx(v,{isBorder:!0,isOverflowHidden:!0,children:e.jsx(K,{rowCount:r.length,rowHeight:o.rowHeight,customWidth:1e3,cache:o,rowRenderer:({index:a,style:p})=>{const x=r[a];return e.jsx("div",{style:p,children:e.jsx(Q,{index:a,onResize:d,children:e.jsx(q,{news:x,searchKeyword:n})})},`${x.id} ${a}`)}})})}function ze({news:s,total:t,keyword:n}){const{t:c}=m(),{currLanguage:i}=h(),{polls:r}=pe({breakingNewsItems:(s==null?void 0:s.map(o=>o.records))??[]});return t===0?e.jsx(S,{children:e.jsx(C,{title:e.jsx(I,{children:i==="en"?e.jsxs(e.Fragment,{children:[c("web_no_result_search_livefeed_title")," ",e.jsxs("span",{children:["‘",n,"’"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("span",{children:["‘",n,"’"]})," ",c("web_no_result_search_livefeed_title")]})}),padding:"0"})}):e.jsx(v,{isBorder:!0,isOverflowHidden:!0,children:s==null?void 0:s.map((o,d)=>o.records.map(a=>e.jsx(me,{news:a,pollStatus:r==null?void 0:r[a.id]},`${a.id} ${d}`)))})}function Me({news:s,total:t,keyword:n}){const{t:c}=m(),{currLanguage:i}=h(),{bulls:r}=ue({breakingNewsItems:(s==null?void 0:s.map(o=>o.records))??[]});return t===0?e.jsx(S,{children:e.jsx(C,{title:e.jsx(I,{children:i==="en"?e.jsxs(e.Fragment,{children:[c("search_result_no_data_economic_news_title")," ",e.jsxs("span",{children:["'",n,"'"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("span",{children:["'",n,"'"]})," ",c("search_result_no_data_economic_news_title")]})}),padding:"0"})}):e.jsx(e.Fragment,{children:e.jsx(v,{isBorder:!0,children:s==null?void 0:s.map((o,d)=>o.records.map(a=>e.jsx(ge,{news:a,pollStatus:r==null?void 0:r[a.id]},`${a.id} ${d}`)))})})}function We({newsCount:s,breakingNewsCount:t,nicknameCount:n,isBreakingNewsActive:c}){const i=P(),{t:r}=m(),o=i.state,a=new URLSearchParams(i.search).get("category"),p=new URLSearchParams(i.search),x=new URLSearchParams(i.search),u=new URLSearchParams(i.search);p.set("category","article"),x.set("category","news"),u.set("category","nickname");const f=`${i.pathname}?${p.toString()}`,j=`${i.pathname}?${x.toString()}`,b=`${i.pathname}?${u.toString()}`,_=[{link:j,text:r("nav_news_feed"),count:t,isActive:c??a==="news"},{link:f,text:r("nav_article"),count:s,isActive:a==="article"},{link:b,text:r("nickname_search_tab"),count:n,isActive:a==="nickname"}];return e.jsx(J,{children:_.map(({link:g,text:R,count:N,isActive:B})=>e.jsx(k,{to:g,state:o,replace:!0,children:e.jsxs(O,{isActive:B,children:[R,e.jsxs(V,{isActive:B,children:[N>=999?999:N,N>999&&"+"]})]})},R))})}function es({keyword:s,category:t,categoryState:n,allCategoryTotalCount:c}){var p,x,u,f,j,b,_;const{isLoggedIn:i}=X(),{currLanguage:r}=h(),{data:o}=te({queryKey:Y.currency["coin-global"]({keyword:s,languageCode:r}).queryKey,queryFn:()=>ne({keyword:s,languageCode:r}),enabled:!!s&&s.length>=2});E.useEffect(()=>{i&&Z({actionType:"content-search",actionData:s,languageCode:r})},[s,i]);const d=(x=(p=n[t].data)==null?void 0:p.pages.map(g=>g.records).flat(1))==null?void 0:x.length,a=n[t].total;return e.jsx(ee,{children:c===0?e.jsx($e,{keyword:s}):e.jsxs(e.Fragment,{children:[e.jsx(We,{newsCount:n.article.total,breakingNewsCount:n.news.total+n["stock-news"].total,nicknameCount:n.nickname.total,isBreakingNewsActive:t==="news"||t==="stock-news"}),e.jsx(Te,{coinResult:o}),(t==="news"||t==="stock-news")&&e.jsx(de,{category:t}),t==="news"&&e.jsx(ze,{news:(u=n.news.data)==null?void 0:u.pages,total:n.news.total,keyword:s}),t==="stock-news"&&e.jsx(Me,{news:(f=n["stock-news"].data)==null?void 0:f.pages,total:n["stock-news"].total,keyword:s}),t==="article"&&F(r,{en:e.jsx(ye,{article:(j=n.article.data)==null?void 0:j.pages,total:n.article.total,keyword:s}),ja:e.jsx(xe,{article:(b=n.article.data)==null?void 0:b.pages,total:n.article.total,keyword:s})}),t==="nickname"&&e.jsx(he,{nicknameList:(_=n.nickname.data)==null?void 0:_.pages.flatMap(g=>g.records),total:n.nickname.total,keyword:s}),t&&!!d&&d<a&&e.jsx(se,{onClick:n[t].fetchNextPage,disabled:n[t].isFetching})]})})}export{Ye as A,Ze as S,es as a};

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.