PageSourceSearch

https://www.dimers.com/chunk-RANT5V3V.js

js dimers.com collected 2026-09-24 18:40:54 UTC 2,757 bytes, 1 lines download raw bytes

1import{c as u}from"./chunk-L435M7MP.js";import{g as p}from"./chunk-EAJDRVGJ.js";var f=[{title:"Hub",href:"/sports",pageCode:"hub"},{title:"Best Bets",href:"/best-bets",pageCode:"best-bets"},{title:"Props",href:"/props",pageCode:"best-props",aliases:["/prop-bets","/best-props"]},{title:"Picks",href:"/picks",pageCode:"picks",aliases:["/sports/picks"]},{title:"Parlays",href:"/parlays",pageCode:"parlay-picker"},{title:"News",href:"/news",pageCode:"news"}],c=f.filter(e=>e.pageCode!=="hub").map(S),h={visible:!1,currentSportLabel:"",mobileToolLabel:"",toolPanelTitle:"",toolLinks:[],sportOptions:[]};function N(e,o){let t=new URL(e||"/","https://www.dimers.com"),r=l(t.pathname);if(r==="/sports")return{visible:!0,scope:"all-sports",currentPageCode:"hub",currentSportLabel:"All Sports",mobileToolLabel:"Hub",toolPanelTitle:"All Sports",toolLinks:c,sportOptions:s(o)};if(u(r)){let i=C(o,p(r.split("/")[1]));if(i)return d(i,o,"news")}let n=m(r,t.searchParams,o);if(n)return d(n.sport,o,n.page.pageCode);let a=g(r,t.searchParams);return a?{visible:!0,scope:"all-sports",currentPageCode:a.pageCode,currentSportLabel:"All Sports",mobileToolLabel:a.mobileToolLabel||a.title,toolPanelTitle:"All Sports Tools",toolLinks:c,sportOptions:s(o,a.pageCode)}:h}function d(e,o,t){let n=(t?e.navigablePages.find(a=>a.pageCode===t):void 0)?.name??e.shortName;return{visible:!0,scope:"sport",sportCode:e.code,currentPageCode:t,currentSportLabel:e.shortName,mobileToolLabel:n,toolPanelTitle:e.shortName,toolLinks:e.navigablePages.filter(a=>a.pageCode!=="hub").map(a=>({title:a.name,href:a.path,queryParams:a.queryParams,pageCode:a.pageCode})),sportOptions:s(o,t)}}function s(e,o){return e.filter(t=>t.navigablePages?.length).map(t=>{let r=t.navigablePages.find(n=>n.pageCode===o)||t.navigablePages[0];return{code:t.code,shortName:t.shortName,title:t.shortName,href:r.path,queryParams:r.queryParams,pageCode:r.pageCode,sportCode:t.code}})}function m(e,o,t){for(let r of t)for(let n of r.navigablePages||[])if(b(e,n)&&P(n.queryParams,o))return{sport:r,page:n};return null}function b(e,o){let t=l(o.path);return t===e?!0:o.pageCode==="schedule"&&e.startsWith(`${t}/`)}function g(e,o){if(e==="/news"&&o.has("sport"))return null;for(let t of f)if([t.href,...t.aliases||[]].map(l).includes(e))return t;return null}function P(e,o){return e?Object.entries(e).every(([t,r])=>(o.get(t)||"").toLowerCase()===r.toLowerCase()):!0}function C(e,o){let t=o.toUpperCase();return e.find(r=>r.code.toUpperCase()===t)??null}function l(e){if(!e)return"/";let o=e.startsWith("/")?e:`/${e}`;return o.length>1&&o.endsWith("/")?o.slice(0,-1):o}function S(e){return{title:e.title,href:e.href,queryParams:e.queryParams,pageCode:e.pageCode}}var v=new Set(["BUN","LUN","SRA"]);export{c as a,N as b,v as c};

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.