PageSourceSearch

https://gembet.com.au/assets/index-By3Eb581.js

js gembet.com.au collected 2026-10-07 03:18:54 UTC 10,676 bytes, 1 lines download raw bytes

1import{fi as J,w as N,fj as D,dd as W,j as e,fk as o,f8 as g,I,eg as F,ad as A,fl as B,ae as C,fm as U,U as V,fn as L,fo as Y}from"./client-Bai4VJA1.js";import{O as j}from"./index-Cp8Jui2_.js";import{J as z}from"./Jersey-B4aPkXu9.js";import{u as T,I as R,_ as q,l as G}from"./FeaturedSgmWidgetHeader-Bs5pMGp9.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"97808a5afbf047a0a6f7534b79e8c9b165448d38"};var d=new n.Error().stack;d&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[d]="a3326752-213e-4e21-a8e7-d84b30f910b2",n._sentryDebugIdIdentifier="sentry-dbid-a3326752-213e-4e21-a8e7-d84b30f910b2")}catch{}})();var K=J(function(n,d,a){n[a?0:1].push(d)},function(){return[[],[]]});const _=4;function Q({outcomes:n,searchPhrase:d,hasValidSearch:a,isExpanded:f,minSearchLength:i=0}){const r=N.useMemo(()=>{if(!a)return n;const[l,t]=K(n,x=>x.name.toLowerCase().includes(d.toLowerCase()));return[...l,...t]},[n,d,a]),c=N.useMemo(()=>{if(d.length<i)return _;const l=r.filter(t=>t.name.toLowerCase().includes(d.toLowerCase())).length;return a&&l>0?l:_},[r,d,a,_]),p=N.useMemo(()=>f?r:r.slice(0,c),[f,r,c]);return{sortedOutcomes:r,matchedOutcomesCount:c,displayedOutcomes:p,DefaultVisibleCount:_}}function X({outcomes:n,leagueName:d,jerseys:a,metadata:f,variant:i="default",isSgm:r,analytics:c}){const{t:p}=T(),[l,t,x]=N.useMemo(()=>D(n),[n]),b=N.useMemo(()=>n.length===2&&n.some(s=>!!s.lineTotal||!!s.margins),[n]),v=N.useCallback(s=>{const[m,w]=W(d,s?.teamName||s?.name||"");return e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex w-32 flex-shrink-0 overflow-hidden md:w-80",children:[a&&e.jsx(z,{size:"lg",name:m,fallback:w}),e.jsx("span",{className:"text-text-primary truncate font-medium",children:s.name})]}),e.jsxs("div",{className:"flex h-12 w-full gap-2",children:[e.jsx("div",{className:"flex w-16 overflow-hidden md:w-full",children:e.jsx(j,{fullWidth:!0,disabled:!g(s),odds:o(s)?p("oddsSuspension",{ns:"sports"}):s.odds,name:s.name,eventId:s.eventId,marketId:s.marketId,id:s.id||"",leagueName:d,metadata:f,isSgm:r,externalId:s.externalId,allowMultipleSelection:s.allowMultipleSelection,teamName:s.teamName,analytics:c})}),s.lineTotal?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex w-16 overflow-hidden md:w-full",children:e.jsx(j,{fullWidth:!0,disabled:!g(s),...o(s)?{odds:p("oddsSuspension",{ns:"sports"})}:s.lineTotal.line??{odds:""},eventId:s.eventId,marketId:s.marketId,id:s.id||"",leagueName:d,metadata:f,isSgm:r,externalId:s.externalId,allowMultipleSelection:s.allowMultipleSelection,teamName:s.teamName})}),e.jsx("div",{className:"flex w-16 overflow-hidden md:w-full",children:e.jsx(j,{fullWidth:!0,disabled:!g(s),...o(s)?{odds:p("oddsSuspension",{ns:"sports"})}:s.lineTotal.total??{odds:""},eventId:s.eventId,marketId:s.marketId,id:s.id||"",leagueName:d,metadata:f,isSgm:r,externalId:s.externalId,allowMultipleSelection:s.allowMultipleSelection,teamName:s.teamName})})]}):s.margins?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex w-16 overflow-hidden md:w-full",children:e.jsx(j,{disabled:!g(s),...o(s)?{odds:p("oddsSuspension",{ns:"sports"})}:s.margins.inclusive??{odds:""},eventId:s.eventId,marketId:s.marketId,id:s.id||"",leagueName:d,metadata:f,isSgm:r,externalId:s.externalId,allowMultipleSelection:s.allowMultipleSelection,teamName:s.teamName})}),e.jsx("div",{className:"flex w-16 overflow-hidden md:w-full",children:e.jsx(j,{disabled:!g(s),...o(s)?{odds:p("oddsSuspension",{ns:"sports"})}:s.margins.over??{odds:""},eventId:s.eventId,marketId:s.marketId,id:s.id||"",leagueName:d,metadata:f,isSgm:r,externalId:s.externalId,allowMultipleSelection:s.allowMultipleSelection,teamName:s.teamName})})]}):null]})]})},[d,a,p,f,r]);return b?e.jsxs("div",{className:"flex flex-col px-3 pb-4",children:[v(n[0]),e.jsxs("div",{className:"flex w-32 items-center gap-5 md:w-80",children:[e.jsx("span",{className:"text-text-tertiary text-sm font-bold",children:"VS"}),e.jsx("div",{className:"border-border-primary w-full border-t"})]}),v(n[1])]}):e.jsxs("div",{className:I("flex gap-2 ",{"p-3":i==="widget","p-4 pt-3":i!=="widget"}),children:[!!l&&e.jsx(j,{fullWidth:!0,name:l.name,disabled:!g(l),odds:o(l)?p("oddsSuspension",{ns:"sports"}):l.odds,label:l.name,jersey:a?"left":void 0,leagueName:d,eventId:l.eventId,marketId:l.marketId,id:l.id||"",metadata:f,compact:i==="widget",className:I({"min-w-[6rem] flex-1 sm:min-w-[6.5rem]":i==="widget"&&!!x}),isSgm:r,externalId:l.externalId,allowMultipleSelection:l.allowMultipleSelection,teamName:l.teamName,analytics:c}),!!x&&e.jsx(j,{fullWidth:!0,name:x.name,disabled:!g(x),odds:o(x)?p("oddsSuspension",{ns:"sports"}
1):x.odds,label:x.name,eventId:x.eventId,marketId:x.marketId,id:x.id||"",leagueName:d,metadata:f,compact:i==="widget",className:I({"max-w-[5.25rem] sm:max-w-[7rem]":i==="widget"&&a,"max-sm:max-w-[7rem]":i!=="widget"&&a}),isSgm:r,externalId:x.externalId,allowMultipleSelection:x.allowMultipleSelection,analytics:c}),!!t&&e.jsx(j,{fullWidth:!0,name:t.name,disabled:!g(t),odds:o(t)?p("oddsSuspension",{ns:"sports"}):t.odds,label:t.name,jersey:a?"right":void 0,eventId:t.eventId,marketId:t.marketId,id:t.id||"",leagueName:d,metadata:f,compact:i==="widget",className:I({"min-w-[6rem] flex-1 sm:min-w-[6.5rem]":i==="widget"&&!!x}),isSgm:r,externalId:t.externalId,allowMultipleSelection:t.allowMultipleSelection,teamName:t.teamName,analytics:c})]})}const O=({startTime:n,sportName:d,leagueName:a,matchName:f,marketName:i,sgmAvailable:r,promoAvailable:c,status:p,variant:l="default",eventRound:t})=>{const{t:x}=T(),{highlightText:b}=F(),[v,s,m]=A(f),w=B(t),u=M=>b(M,(y,S)=>e.jsx("span",{className:"bg-bg-search-highlight text-text-search-highlight",children:y},`highlight-${S}`));return e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:I("flex items-center justify-between gap-1 px-4 py-2",{"h-[2.5rem] !px-3":l==="widget"}),children:[e.jsxs("div",{className:"flex items-center gap-1 overflow-hidden",children:[!!d&&e.jsx(R,{name:`sport-${C.kebabCase(d)}`,size:"sm"}),e.jsx("div",{className:"text-xxs truncate",children:a}),w&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"border-text-tertiary h-3 border-l"}),e.jsx("div",{className:"text-xxs shrink-0",children:w})]}),(r||c)&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"border-text-tertiary h-3 border-l"}),e.jsx(q,{sgmAvailable:r,promoAvailable:c})]})]}),!!n&&e.jsx(G,{startTime:n,status:p})]}),l==="widget"?e.jsxs("div",{className:"text-text-primary flex min-h-[2.75rem] flex-col gap-0.5 px-3 text-sm font-semibold ",children:[e.jsxs("div",{className:"flex flex-1 gap-1 overflow-hidden",children:[e.jsx("span",{className:I("truncate",{"line-clamp-2":!s}),children:u(v??"")}),m&&e.jsx("span",{children:m})]}),s&&e.jsx("div",{className:"flex items-center overflow-hidden",children:e.jsx("span",{className:"truncate",children:u(s)})})]}):e.jsx("div",{className:"w-full px-4 text-sm font-semibold",children:u(f??"")}),i&&e.jsx("div",{className:I("text-text-secondary w-full px-4 pt-1 text-xs",{"!px-3":l==="widget"}),children:x(C.kebabCase(C.titleize(i)),{ns:"sports",defaultValue:C.titleize(i)})})]})},Z=({LinkComponent:n,linkDetails:d,...a})=>d?e.jsx(n,{...d,children:e.jsx(O,{linkDetails:d,LinkComponent:n,...a})}):e.jsx(O,{linkDetails:d,LinkComponent:n,...a});function P({outcomes:n,leagueName:d,jerseys:a,metadata:f,variant:i="default",linkDetails:r,isSgm:c,LinkComponent:p,analytics:l}){const{t}=T(),{searchPhrase:x,highlightText:b,hasValidSearch:v,MinSearchLength:s}=F(),[m,w]=N.useState(!1),{matchedOutcomesCount:u,displayedOutcomes:M}=Q({outcomes:n,searchPhrase:x,hasValidSearch:v,isExpanded:m,minSearchLength:s});N.useEffect(()=>{w(!1)},[x]);const y=U({marketName:f?.market_name}),S=(h,k)=>{const[E]=a&&!y?W(d,h.teamName||h.name||""):["",""];return e.jsxs("div",{className:I("flex justify-between gap-1 px-4 py-2",{"border-border-secondary border-b":i==="widget"}),children:[e.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[a&&e.jsx(z,{fallback:E,name:E,size:"lg"}),e.jsx("span",{children:b(h.name,($,H)=>e.jsx("span",{className:"bg-bg-search-highlight text-text-search-highlight",children:$},`highlight-${H}`))})]}),e.jsx(j,{name:h.name,disabled:!g(h),odds:o(h)?t("oddsSuspension",{ns:"sports"}):h.odds,id:h.id,eventId:h.eventId,marketId:h.marketId,leagueName:d,metadata:f,isSgm:c,externalId:h.externalId,allowMultipleSelection:h.allowMultipleSelection,teamName:h.teamName,analytics:l})]},`outcome-${V(h.name)}-${k}`)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col",children:M.map(S)}),i==="default"&&n.length>u&&e.jsxs("button",{onClick:()=>w(h=>!h),className:"border-border-primary mt-2 flex w-full items-center justify-center gap-1 border-t py-4",children:[e.jsx("span",{className:"text-xs font-bold uppercase",children:t(m?"hide":"showMore",{ns:"sports"})}),e.jsx(R,{name:m?"caret-up":"caret-down",size:"sm"})]}),i==="widget"&&r&&e.jsx(p,{...r,children:e.jsx("span",{className:"text-text-link flex w-full items-center justify-center gap-1 px-3 py-4 text-sm font-semibold",children:t("viewEvent",{ns:"sports"})})})]})}const ne=({matchName:n,leagueName:d,marketTypeId:a,sportName:f,marketName:i,sgmAvailable:r,promoAvailable:c,startTime:p,outcomes:l,jerseys:t,status:x,linkDetail
1s:b,header:v,eventId:s,variant:m="default",isSgm:w,forceListView:u,eventRound:M,LinkComponent:y,analytics:S})=>{const{t:h}=T(),k={market_name:i,match_name:n,sport_name:f,start_date:p,market_type_id:a};return l?e.jsxs("div",{className:I("bg-core-primary flex w-full flex-grow-0 flex-col justify-between",m==="widget"?"rounded-lg":"rounded"),children:[v&&e.jsx(Z,{LinkComponent:y,linkDetails:b,leagueName:d,sportName:f,matchName:n,status:x,sgmAvailable:r,marketName:i,promoAvailable:c,startTime:p,variant:m,eventRound:M}),l.length===0?e.jsx("div",{className:"h-2"}):l.length===1&&(m==="widget"||L(i))?e.jsx("div",{className:"flex w-full p-3",children:e.jsx(j,{fullWidth:!0,disabled:!g(l[0]),odds:o(l[0])?h("oddsSuspension",{ns:"sports"}):l[0].odds,name:l[0].name,eventId:l[0].eventId,marketId:l[0].marketId,id:l[0].id||"",leagueName:d,metadata:k,label:l[0].name,isSgm:w,externalId:l[0].externalId,allowMultipleSelection:l[0].allowMultipleSelection,teamName:l[0].teamName,analytics:S})}):u||!L(i)&&(l.length===1||l.length>3||m!=="widget"&&Y(l))?e.jsx(P,{LinkComponent:y,outcomes:l,leagueName:d??"",eventId:s,jerseys:t,metadata:k,variant:m,linkDetails:b,isSgm:w,analytics:S}):e.jsx(X,{outcomes:l,leagueName:d??"",eventId:s,jerseys:t,metadata:k,variant:m,isSgm:w,analytics:S})]}):null};export{ne as S};

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.