PageSourceSearch

https://www.pnp.exchange/_next/static/chunks/216-949a2fb093dd3232.js

js pnp.exchange collected 2026-10-06 12:38:23 UTC 10,149 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[216],{3194:(e,t,a)=>{a.d(t,{fn:()=>i,lm:()=>n});var l=a(5155);let n=["c-pink","c-cobalt","c-yellow","c-green"];function i(e){let{markets:t}=e,a=t.filter(e=>null!=e.yesPrice).slice(0,30);if(0===a.length)return(0,l.jsx)("div",{className:"mtape"});let i=a.length<10?[...a,...a]:a,s=Math.round(7*i.length);return(0,l.jsx)("div",{className:"mtape",children:(0,l.jsx)("div",{className:"mtape__track",style:{animationDuration:"".concat(s,"s")},children:[...i,...i].map((e,t)=>(0,l.jsx)(r,{m:e,color:n[t%n.length],hidden:t>=i.length},"".concat(e.conditionId,"-").concat(t)))})})}function r(e){var t;let{m:a,color:n,hidden:i}=e,r=Math.round((null!=(t=a.yesPrice)?t:.5)*100);return(0,l.jsxs)("a",{className:"mtick",href:a.slug?"https://polymarket.com/market/".concat(a.slug):"https://polymarket.com",target:"_blank",rel:"noopener noreferrer","aria-hidden":i||void 0,tabIndex:i?-1:void 0,title:a.question,children:[(0,l.jsx)("span",{className:"mtick__topic ".concat(n),children:function(e){for(let[t,a]of s)if(a.test(e))return t;return"Markets"}(a.question)}),(0,l.jsx)("span",{className:"mtick__q",children:a.question}),(0,l.jsxs)("span",{className:"mtick__odds",children:[(0,l.jsx)("i",{children:a.outcomes[0]}),(0,l.jsxs)("b",{children:[r,"\xa2"]}),(0,l.jsx)("i",{children:a.outcomes[1]}),(0,l.jsxs)("b",{children:[100-r,"\xa2"]})]})]})}let s=[["Crypto",/\b(bitcoin|btc|ethereum|eth|solana|xrp|dogecoin|doge|crypto|memecoin|stablecoin|coinbase|binance|microstrategy|hyperliquid)\b/i],["Fed",/\b(fed|fomc|rate cuts?|interest rates?|powell)\b/i],["Economy",/\b(cpi|inflation|gdp|recession|unemployment|jobs report|tariffs?|s&p|nasdaq|dow jones|ipo|earnings)\b/i],["Politics",/\b(elections?|president(ial)?|senate|house|congress|governor|mayor|trump|biden|harris|vance|newsom|democrats?|republicans?|parliament|prime minister|chancellor|nominee|primary|impeach\w*|supreme court)\b/i],["World",/\b(war|ceasefire|invade|invasion|military|nuclear|blockade|hormuz|sanctions|russian?|ukrain(e|ian)|israeli?|gaza|hamas|iran(ian)?|china|chinese|taiwan|nato|putin|zelensky|netanyahu|north korea)\b/i],["Tech",/\b(ai|openai|chatgpt|gpt-?\d|gemini|anthropic|nvidia|apple|google|tesla|spacex|iphone)\b/i],["Culture",/\b(movie|box office|album|grammys?|oscars?|emmys?|mrbeast|youtube|tiktok|spotify|taylor swift|netflix|billboard)\b/i],["Sports",/\b(vs\.?|spread|o\/u|nfl|nba|mlb|nhl|ufc|mls|premier league|champions league|la liga|serie a|bundesliga|ligue 1|world cup|grand prix|f1|atp|wta|super bowl|stanley cup|world series|playoffs?|draft|fc|win on \d{4}-\d{2}-\d{2})\b/i]]},5618:(e,t,a)=>{a.d(t,{Y:()=>r,z:()=>i});var l=a(5155);let n="color-mix(in srgb, var(--color-accent) 18%, var(--color-surface))";function i(e){let{src:t,size:a=22}=e;return t?(0,l.jsx)("img",{src:t,alt:"",width:a,height:a,loading:"lazy",referrerPolicy:"no-referrer",className:"shrink-0 object-cover",style:{width:a,height:a}}):(0,l.jsx)("span",{className:"inline-block shrink-0",style:{width:a,height:a,background:n}})}function r(e){let{src:t,className:a=""}=e;return t?(0,l.jsx)("img",{src:t,alt:"",loading:"lazy",referrerPolicy:"no-referrer",draggable:!1,className:"block shrink-0 object-cover ".concat(a)}):(0,l.jsx)("span",{className:"block shrink-0 ".concat(a),style:{background:n}})}},8943:(e,t,a)=>{a.d(t,{e:()=>s});var l=a(2115),n=a(3144);let i=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),l.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),r=l.forwardRef((e,t)=>
1l.createElement(n.A,{ref:t,...e,weights:i}));r.displayName="MagnifyingGlassIcon";let s=r},8983:(e,t,a)=>{a.d(t,{xl:()=>b,GO:()=>h,Qb:()=>p});var l=a(5155),n=a(2115),i=a(3278),r=a(8943),s=a(3144);let c=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),n.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),o=n.forwardRef((e,t)=>n.createElement(s.A,{ref:t,...e,weights:c}));o.displayName="CheckIcon";var d=a(5618),m=a(1733),u=a(3016);let h=e=>({id:e.eventId,title:e.title,image:e.image,conditionId:e.conditionId,question:e.question}),p=e=>e.map(e=>({event:e.id,conditionId:e.conditionId})),g=e=>/(^|\/\/|\.)polymarket\.com\//i.test(e);function b(e){let{value:t,onChange:a,className:s=""}=e,[c,h]=(0,n.useState)(""),[p,b]=(0,n.useState)(""),[k,f]=(0,n.useState)(null),[x,j]=(0,n.useState)(null),v=(0,n.useRef)(t);v.current=t,(0,n.useEffect)(()=>{let e=setTimeout(()=>b(c.trim()),300*!g(c));return()=>clearTimeout(e)},[c]),(0,n.useEffect)(()=>{let e=!0;return f(null),m.FH.catalogue({q:p||void 0,limit:12}).then(t=>{var l,n,i,r;if(!e)return;let s=null!=(l=null==t?void 0:t.events)?l:[];f(s),j(null!=(n=null==t?void 0:t.focus)?n:null);let c=g(p)?s[0]:null,o=v.current;if(c&&!o.some(e=>e.id===c.id)&&o.length<m.Aj){let e=(null==t?void 0:t.focus)?c.markets.find(e=>e.conditionId===t.focus):null;a([...o,{id:c.id,title:c.title,image:c.image,conditionId:null!=(i=null==e?void 0:e.conditionId)?i:null,question:null!=(r=null==e?void 0:e.question)?r:null}])}}),()=>{e=!1}},[p]);let y=new Set(t.map(e=>e.id)),_=t.length>=m.Aj;return(0,l.jsxs)("div",{className:"picker ".concat(s),children:[t.length?(0,l.jsx)("ul",{className:"picker__chips","aria-label":"Selected markets",children:t.map(e=>{var n;return(0,l.jsxs)("li",{className:"picker__chip",children:[(0,l.jsx)(d.z,{src:e.image,size:18}),(0,l.jsx)("span",{className:"picker__chip-name",title:null!=(n=e.question)?n:e.title,children:e.title}),(0,l.jsx)("button",{type:"button",onClick:()=>a(t.filter(t=>t.id!==e.id)),"aria-label":"Remove ".concat(e.title),children:(0,l.jsx)(i.X,{size:12,weight:"bold"})})]},e.id)})}):null,(0,l.jsxs)("label",{className:"picker__search",children:[(0,l.jsx)(r.e,{size:16,className:"shrink-0","aria-hidden":!0}),(0,l.jsx)("input",{value:c,onChange:e=>h(e.target.value),placeholder:"Search, or paste a Polymarket link","aria-label":"Search markets, or paste a Polymarket link",autoComplete:"off",spellCheck:!1}),c?(0,l.jsx)("button",{type:"button",onClick:()=>h(""),"aria-label":"Clear the search",children:(0,l.jsx)(i.X,{size:14,weight:"bold"})}):null]}),(0,l.jsx)("div",{className:"picker__list","aria-busy":null===k,children:null===k?(0,l.jsx)("p",{className:"picker__note",children:"Loading markets…"}):0===k.length?(0,l.jsx)("p",{className:"picker__note",children:g(p)?"Nothing open on Polymarket at that link.":p?"Nothing matches that.":"No markets right now."}):k.map(e=>{var n,i,r;let s=y.has(e.id),c=s?null==(n=t.find(t=>
1t.id===e.id))?void 0:n.question:null;return(0,l.jsxs)("button",{type:"button",className:"picker__row","aria-pressed":s,disabled:!s&&_,onClick:()=>(function(e){var l,n;if(y.has(e.id))return a(t.filter(t=>t.id!==e.id));if(_)return;let i=x?e.markets.find(e=>e.conditionId===x):null;a([...t,{id:e.id,title:e.title,image:e.image,conditionId:null!=(l=null==i?void 0:i.conditionId)?l:null,question:null!=(n=null==i?void 0:i.question)?n:null}])})(e),title:!s&&_?"".concat(m.Aj," at most"):e.title,children:[(0,l.jsx)(d.z,{src:null!=(r=e.image)?r:null==(i=e.markets[0])?void 0:i.image,size:32}),(0,l.jsxs)("span",{className:"picker__row-text",children:[(0,l.jsx)("span",{className:"picker__row-title",children:e.title}),(0,l.jsx)("span",{className:"picker__row-sub",children:c||"".concat(e.marketCount>1?"".concat(e.marketCount," outcomes \xb7 "):"").concat((0,u.OS)(e.volume24h)," today")})]}),(0,l.jsx)("span",{className:"picker__check","aria-hidden":!0,children:s?(0,l.jsx)(o,{size:14,weight:"bold"}):null})]},e.id)})}),_?(0,l.jsxs)("p",{className:"picker__note picker__note--full",children:[m.Aj," picked, the most. Remove one to pick another."]}):null]})}}}]);

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.