PageSourceSearch

https://www.alltop.com/_next/static/chunks/7534-759d233dc3896968.js

js alltop.com collected 2026-09-24 08:26:37 UTC 14,087 bytes, 20 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7534],{7534:(e,a,r)=>{r.d(a,{BinaryMarketPage:()=>h});var i=r(97506),t=r(32534),n=r(74602),s=r(17562),l=r(55925),o=r(47677),d=r(54617),p=r(58707),c=r(72134),b=r(64584);function h({board:e,markets:a,dataStatus:r,title:d,description:c,breadcrumbs:j=[]}){let N=a[0],w=!N,k=N?.state==="preview",z=N?.state==="settled",C=N?.state==="closed",{oddsFormat:Y,setOddsFormat:M}=(0,s.nm)(),[I,F]=(0,n.useState)("30D"),L=(0,b.rF)(N?{kind:"boardOutcome",boardSlug:e.slug,outcomeSlug:N.slug}:{kind:"market"},I),A=(0,n.useMemo)(()=>N?.prices.filter(e=>e.yes>0||e.no>0)??[],[N]),E=A.length>0||!!(N?.bestYes.price&&N.bestYes.price>0),S=A.length>0?function(e){if(0===e.length)return 0;let a=[...e].sort((e,a)=>e-a),r=Math.floor(a.length/2);return a.length%2==0?(a[r-1]+a[r])/2:a[r]}(A.map(e=>e.yes)):N?.bestYes.price??0,U=E?100-S:0,O=w||!k&&!z&&!C&&!E,[$,D]=(0,n.useState)(()=>u({unavailable:O,preview:k,concluded:z,closed:C,dataStatus:r}));return(0,n.useEffect)(()=>{let e=()=>D(u({unavailable:O,preview:k,concluded:z,closed:C,dataStatus:r}));if(e(),O||k||z||C)return;let a=window.setInterval(e,3e4);return()=>window.clearInterval(a)},[C,z,r,k,O]),(0,i.jsxs)("main",{className:"binary-page",children:[(0,i.jsx)("section",{className:"binary-hero-band",children:(0,i.jsxs)("div",{className:"container-1280 binary-hero",children:[j.length>0&&(0,i.jsx)("nav",{className:"breadcrumb",children:j.map((e,a)=>(0,i.jsxs)(n.Fragment,{children:[a>0&&(0,i.jsx)("span",{className:"sep",children:"/"}),e.href&&a<j.length-1?(0,i.jsx)(t.default,{href:e.href,children:e.label}):(0,i.jsx)("span",{className:"current",children:e.label})]},`${e.label}-${a}`))}),(0,i.jsxs)("div",{className:"binary-hero-grid",children:[(0,i.jsxs)("div",{className:"binary-copy",children:[(0,i.jsxs)("div",{className:"binary-kicker",children:[(0,i.jsx)("span",{className:O||k||C||z?"status-dot":"live-dot"}),$]}),(0,i.jsx)("h1",{"data-overlay-field":"heading",children:d}),(0,i.jsx)("p",{"data-overlay-field":"intro",children:c||(w?"Current market prices are unavailable.":k?"Trading has not opened yet.":z?"This market has resolved. Final venue prices are shown below.":C?"Trading is closed. Last available venue prices are shown below.":"Live Yes and No prices across available prediction-market venues.")}),N&&(0,i.jsxs)("div",{className:"binary-actions",children:[(0,i.jsx)(o.y,{marketSlug:N.slug,marketTitle:d,variant:"icon-label",size:"md",currentPrice:S}),N.resolvesAt&&(0,i.jsxs)("span",{children:["Resolves ",v(N.resolvesAt)]})]})]}),(0,i.jsxs)("section",{className:"binary-probability","aria-label":"Current Yes and No probabilities",children:[(0,i.jsxs)("div",{className:"binary-probability-head",children:[(0,i.jsx)("span",{children:w||k?"Market probability":z?"Final result":"Current probability"}),(0,i.jsx)("small",{children:A.length>1?`Median of ${A.length} venue quotes`:1===A.length?"Current venue quote":"No current quote"})]}),(0,i.jsxs)("div",{className:"binary-sides",children:[(0,i.jsx)(x,{label:"Yes",probability:S,oddsFormat:Y,tone:"yes",unavailable:w||k||!E}),(0,i.jsx)(x,{label:"No",probability:U,oddsFormat:Y,tone:"no",unavailable:w||k||!E})]}),(0,i.jsx)("div",{className:"binary-probability-bar","aria-hidden":!0,children:(0,i.jsx)("span",{style:{width:`${Math.max(0,Math.min(100,S))}%`}})})]})]}),(0,i.jsxs)("div",{className:"binary-stats",children:[(0,i.jsx)(m,{label:"24H volume",value:N?(0,p.YI)(N.volume24h):"--"}),(0,i.jsx)(m,{label:"Open interest",value:N?(0,p._E)(N.openInterest):"--"}),(0,i.jsx)(m,{label:"Venue spread",value:N&&N.spread>0?`${N.spread.toFixed(N.spread<1?2:1)}pp`:"--"}),(0,i.jsx)(m,{label:"Available venues",value:A.length?A.length.toLocaleString():"--"})]})]})}),(0,i.jsxs)("div",{className:"container-1280 binary-body",children:[(0,i.jsxs)("section",{className:"binary-prices-section",children:[(0,i.jsxs)("div",{className:"binary-section-head",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{children:"Live prices"}),(0,i.jsx)("h2",{children:"Compare Yes and No"})]}),(0,i.jsx)(g,{value:Y,onChange:M})]}),(0,i.jsx)("div",{className:"binary-price-table-wrap",children:(0,i.jsxs)("table",{className:"binary-price-table",children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Venue"}),(0,i.jsx)("th",{className:"num",children:"Yes"}),(0,i.jsx)("th",{className:"num",children:"No"}),(0,i.jsx)("th",{children:"Bid / ask"}),(0,i.jsx)("th",{className:"num",children:"24H volume"}),(0,i.jsx)("th",{className:"num",children:"Open interest"})]})}),(0,i.jsx)("tbody",{children:0===A.length?(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:6,className:"binary-empty",children:"Current venue prices are unavailable."})}):A.map(e=>(0,i.jsx)(y,{quote:e,oddsFormat:Y},`${e.operator}-${e.providerMarketId??""}`))})]})})]}),N&&(0,i.jsxs)("div",{className:"binary-lower-grid",children:[(0,i.jsxs)("section",{className:"binary-chart-panel",children:[(0,i.jsx)("div",{className:"binary-section-head",children:(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{children:"Price history"}),(0,i.jsx)("h2",{children:"Yes probability"})]})}),L.data.length>=2?(0,i.jsx)(l.w,{data:L.data,color:"var(--alltop-rust)",fillColor:"color-mix(in srgb, var(--alltop-rust) 12%, transparent)",abbr:"Yes",range:I,onRange:F,showEvents:!1,stats:{open:L.data[0],low:Math.min(...L.data),high:Math.max(...L.data),vol:N.volume24h,trades:N.tradeCount}}):(0,i.jsx)("div",{className:"binary-chart-empty",children:L.loading?"Loading price history...":"No price history is available yet."})]}),(0,i.jsxs)("section",{className:"binary-details",children:[(0,i.jsx)("span",{children:"Market details"}),(0,i.jsx)("h2",{children:"Resolution"}),(0,i.jsxs)("dl",{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("dt",{children:"Resolution date"}),(0,i.jsx)("dd",{children:N.resolvesAt?v(N.resolvesAt):"Not specified"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("dt",{children:"Market state"}),(0,i.jsx)("dd",{children:z?"Resolved":C?"Closed":k?"Upcoming":"Open"})]})]}),N.resolutionCriteria&&(0,i.jsx)("p",{children:N.resolutionCriteria})]})]})]}),(0,i.jsx)("style",{children:f})]})}function x({label:e,probability:a,oddsFormat:r,tone:t,unavailable:n}){return(0,i.jsxs)("div",{className:"binary-side","data-tone":t,children:[(0,i.jsx)("span",{children:e}),(0,i.jsx)("strong",{children:n?"--":(0,p.YB)(a,r)}),(0,i.jsx)("small",{children:n?"Unavailable":`${a.toFixed(+(a<1))}% probability`})]})}function m({label:e,value:a}){return(0,i.jsxs)("div",{className:"binary-stat",children:[(0,i.jsx)("span",{children:e}),(0,i.jsx)("strong",{children:a})]})}function y({quote:e,oddsFormat:a}){let r=c.II[e.operator],t=(0,p.Mu)(e.bid,e.ask,e.yes),n=e.marketUrl?(0,i.jsx)("a",{href:e.marketUrl,target:"_blank",rel:"noreferrer",children:r.name}):(0,i.jsx)("strong",{children:r.name});return(0,i.jsxs)("tr",{children:[(0,i.jsxs)("td",{className:"binary-venue",children:[(0,i.jsx)("span",{style:{background:r.color},children:r.shortName.slice(0,1)}),(0,i.jsxs)("div",{children:[n,(0,i.jsx)("small",{children:e.freshness})]})]}),(0,i.jsx)("td",{className:"num yes",children:(0,p.YB)(e.yes,a)}),(0,i.jsx)("td",{className:"num",children:(0,p.YB)(e.no,a)}),(0,i.jsx)("td",{className:t.muted?"muted":"",children:t.label}),(0,i.jsx)("td",{className:"num muted",children:(0,p.YI)(e.volume24h)}),(0,i.jsx)("td",{className:"num muted",children:(0,p._E)(e.openInterest)})]})}
1function g({value:e,onChange:a}){return(0,i.jsx)("div",{className:"binary-format","aria-label":"Odds format",children:[["percent","%"],["american","Am."],["decimal","Dec."]].map(([r,t])=>(0,i.jsx)("button",{type:"button","data-active":e===r,onClick:()=>a(r),children:t},r))})}function u({unavailable:e,preview:a,concluded:r,closed:i,dataStatus:t}){return e?"UNAVAILABLE":r?"CONCLUDED":i?"CLOSED":a?"UPCOMING":(0,d.g)(t,"Live odds")}function v(e){let a=new Date(e);return Number.isNaN(a.getTime())?e:new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"}).format(a)}let f=`
2  .binary-page{min-height:100vh;background:var(--paper);color:var(--t-ink)}
3  .binary-hero-band{border-bottom:1px solid var(--t-hairline)}
4  .binary-hero{padding-top:18px;padding-bottom:22px}.binary-hero .breadcrumb{margin-bottom:18px;flex-wrap:wrap}
5  .binary-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,460px);gap:32px;align-items:end}
6  .binary-kicker{display:inline-flex;align-items:center;gap:7px;height:25px;padding:0 10px;border-radius:999px;background:var(--t-green-soft);color:var(--t-green);font-size:11px;font-weight:720;text-transform:uppercase;margin-bottom:12px}
7  .binary-copy h1{margin:0;font-size:38px;line-height:1.08;font-weight:790;letter-spacing:0}.binary-copy>p{max-width:760px;margin:11px 0 0;color:var(--t-muted);font-size:15px;line-height:1.55}
8  .binary-actions{display:flex;align-items:center;gap:12px;margin-top:18px;color:var(--t-muted);font-size:12px}
9  .binary-probability{padding:18px;border:1px solid var(--t-hairline);border-radius:var(--t-r-lg);background:var(--paper)}
10  .binary-probability-head{display:flex;justify-content:space-between;gap:16px;color:var(--t-muted);font-size:11px;font-weight:740;text-transform:uppercase}.binary-probability-head small{font-weight:600;text-transform:none}
11  .binary-sides{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}.binary-side{min-width:0}.binary-side:last-child{text-align:right}.binary-side>span{display:block;font-size:12px;font-weight:760;text-transform:uppercase}.binary-side[data-tone=yes]>span,.binary-side[data-tone=yes]>strong{color:var(--t-green)}.binary-side>strong{display:block;margin-top:4px;font-family:var(--t-mono);font-size:32px;line-height:1.05}.binary-side>small{display:block;margin-top:5px;color:var(--t-muted);font-size:11px}
12  .binary-probability-bar{height:8px;margin-top:18px;overflow:hidden;border-radius:999px;background:var(--paper-3)}.binary-probability-bar span{display:block;height:100%;background:var(--t-green)}
13  .binary-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:22px;border-top:1px solid var(--t-hairline);border-bottom:1px solid var(--t-hairline)}.binary-stat{padding:14px 18px;border-right:1px solid var(--t-hairline)}.binary-stat:first-child{padding-left:0}.binary-stat:last-child{border-right:0}.binary-stat span{display:block;color:var(--t-muted);font-size:11px;font-weight:720;text-transform:uppercase}.binary-stat strong{display:block;margin-top:6px;font-family:var(--t-mono);font-size:20px}
14  .binary-body{padding-top:28px;padding-bottom:72px}.binary-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:12px}.binary-section-head span,.binary-details>span{color:var(--t-muted);font-size:11px;font-weight:740;text-transform:uppercase}.binary-section-head h2,.binary-details h2{margin:5px 0 0;font-size:23px;line-height:1.2}
15  .binary-format{display:inline-flex;padding:3px;border:1px solid var(--t-hairline);border-radius:var(--t-r-lg)}.binary-format button{height:30px;padding:0 11px;border:0;border-radius:var(--t-r);background:transparent;color:var(--t-muted);font-size:12px;font-weight:700;cursor:pointer}.binary-format button[data-active=true]{background:var(--t-indigo);color:#fff}
16  .binary-price-table-wrap{overflow-x:auto;border:1px solid var(--t-hairline);border-radius:var(--t-r-lg)}.binary-price-table{width:100%;min-width:760px;border-collapse:collapse}.binary-price-table th{height:42px;padding:0 14px;border-bottom:1px solid var(--t-hairline);color:var(--t-muted);font-size:11px;text-align:left;text-transform:uppercase}.binary-price-table td{height:64px;padding:8px 14px;border-bottom:1px solid var(--t-hairline);font-size:13px}.binary-price-table tr:last-child td{border-bottom:0}.binary-price-table .num{text-align:right;font-family:var(--t-mono)}.binary-price-table .yes{color:var(--t-green);font-size:16px;font-weight:760}.binary-price-table .muted{color:var(--t-muted)}.binary-venue{display:flex;align-items:center;gap:10px}.binary-venue>span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:var(--t-r);color:white;font-family:var(--t-mono);font-size:11px;font-weight:800}.binary-venue strong,.binary-venue a,.binary-venue small{display:block}.binary-venue a{color:var(--t-ink);font-weight:700;text-decoration:none}.binary-venue a:hover{color:var(--alltop-rust)}.binary-venue small{margin-top:3px;color:var(--t-muted);font-size:10px}.binary-empty{padding:42px!important;text-align:center;color:var(--t-muted)}
17  .binary-lower-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);gap:20px;margin-top:28px}.binary-chart-panel,.binary-details{min-width:0;padding:20px;border:1px solid var(--t-hairline);border-radius:var(--t-r-lg)}.binary-chart-empty{display:flex;min-height:280px;align-items:center;justify-content:center;color:var(--t-muted);font-size:13px}.binary-details dl{margin:20px 0 0}.binary-details dl>div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-top:1px solid var(--t-hairline);font-size:12px}.binary-details dt{color:var(--t-muted)}.binary-details dd{margin:0;text-align:right;font-weight:680}.binary-details p{margin:18px 0 0;padding-top:18px;border-top:1px solid var(--t-hairline);color:var(--t-muted);font-size:13px;line-height:1.55}
18  @media(max-width:900px){.binary-hero-grid{grid-template-columns:1fr}.binary-stats{grid-template-columns:repeat(2,1fr)}.binary-stat:nth-child(2){border-right:0}.binary-stat:nth-child(-n+2){border-bottom:1px solid var(--t-hairline)}.binary-lower-grid{grid-template-columns:1fr}}
19  @media(max-width:640px){.binary-copy h1{font-size:31px}.binary-probability-head{display:block}.binary-probability-head small{display:block;margin-top:4px}.binary-stats{margin-top:18px}.binary-stat{padding:12px}.binary-stat:first-child{padding-left:12px}.binary-stat strong{font-size:17px}.binary-section-head{align-items:flex-start;flex-direction:column}.binary-price-table{min-width:680px}.binary-lower-grid{gap:14px}.binary-chart-panel,.binary-details{padding:16px}}
20`}}]);

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.