PageSourceSearch

https://www.spl.com.sa/en/_next/static/chunks/3zy47gdjm9ni9.js

js spl.com.sa collected 2026-09-24 09:59:35 UTC 35,590 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,311260,e=>{"use strict";var t=e.i(843476),a=e.i(987028),l=e.i(652219),s=e.i(499913),i=e.i(253996),r=e.i(597325),n=e.i(795414);let o=({size:e})=>{let a={width:"100%",height:"100%"};return e&&(a.width="number"==typeof e?`${e}px`:e,a.height="number"==typeof e?`${e}px`:e),(0,t.jsx)("svg",{...a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("circle",{cx:"12",cy:"12",r:"4",fill:"currentColor"})})};var c=e.i(51174);let d=(0,c.prependAssetPrefix)("/assets/icons.svg");class h{cache={};context=new Map;loadingPromises=new Map;MAX_CACHE_SIZE=10;CACHE_TTL_MS=18e5;hasDocument(){return"u">typeof document}registerContext(e,t){let a=!!t.pathOrUrl&&URL.canParse(t.pathOrUrl);this.context.set(e,{...t,isCdn:a})}async loadContext(e){if(this.loadingPromises.has(e))return this.loadingPromises.get(e);let t=this.cache[e]?.lastAccessed,a=(Date.now()-t||0)>this.CACHE_TTL_MS;if(this.cache[e]?.loaded&&!a)return!0;let l=this.context.get(e);if(!l)return console.warn(`Context configuration not found: ${e}`),!1;let s=this.loadContextContent(e,l,a);this.loadingPromises.set(e,s);try{return await s}finally{this.loadingPromises.delete(e)}}validateIdIcon(e,t){return!!(t.prefix&&e.startsWith(t.prefix)&&t.suffix&&e.endsWith(t.suffix))||(!t.prefix||!!e.startsWith(t.prefix))&&(!t.suffix||!!e.endsWith(t.suffix))}getIconIdWithAffixes(e,t){return`${t?.prefix||""}${e}${t?.variation||""}${t?.suffix||""}`}generateHash(e){let t=0;for(let a of e)t=(t<<5)-t+(a.codePointAt(0)??0),t&=t;return Math.abs(t).toString(36)}parseSvgContent(e){return new DOMParser().parseFromString(e,"image/svg+xml")}extractSymbols(e,t){let a=e.querySelectorAll("symbol[id]"),l=new Set,s=[];return a.forEach(e=>{let a=e.getAttribute("id");this.validateIdIcon(a,t)&&(l.add(a),s.push(e))}),{symbolIds:l,filteredSymbols:s}}updateCache(e,t,a){this.cache[e]={loaded:!0,symbols:t,dom:a,lastAccessed:Date.now()}}getDocumentContext(e,t,a){if(!this.hasDocument())return{existingContext:null,storedUrlHash:null,forceReload:t};let l=document.getElementById(e);if(l){let e=l.dataset.sourceHash;return{existingContext:l,storedUrlHash:e,forceReload:t||e!==a}}return{existingContext:null,storedUrlHash:null,forceReload:t}}async loadContextContentEmbedded(e,t,a,l){let{existingContext:s,storedUrlHash:i}=this.getDocumentContext(e,!1,a);if(s&&i===a){let a=this.parseSvgContent(s.outerHTML),{symbolIds:l}=this.extractSymbols(a,t);this.updateCache(e,l,a),console.log(`Context ${e} found in DOM, using existing content.`);return}let r=decodeURIComponent(l.split(",")[1]),n=this.parseSvgContent(r),{symbolIds:o,filteredSymbols:c}=this.extractSymbols(n,t);this.updateCache(e,o,n),await this.injectFilteredSymbolsIntoDOM(e,c,t,a,null),this.cleanupCache(),console.log(`Loaded context ${e} with ${o.size} symbols from embedded data`)}async loadContextContentFetch(e,t,a,l,s){let{existingContext:i,forceReload:r}=this.getDocumentContext(e,s,l);if(i&&!r){let a=this.parseSvgContent(i.outerHTML),{symbolIds:l}=this.extractSymbols(a,t);return this.updateCache(e,l,a),console.log(`Context ${e} found in DOM, using existing content.`),!0}let n=await fetch(a);if(!n.ok)return console.warn(`Failed to fetch context ${e}: ${n.status} ${n.statusText}`),!1;let o=await n.text(),c=this.parseSvgContent(o),{symbolIds:d,filteredSymbols:h}=this.extractSymbols(c,t);return this.updateCache(e,d,c),await this.injectFilteredSymbolsIntoDOM(e,h,t,l,i),console.log(`Loaded context ${e} with ${d.size} symbols from ${t.isCdn?"CDN":"local"}`),this.cleanupCache(),!0}async loadContextContent(e,t,a=!1){try{var l;let s=(l=t.pathOrUrl)?l.startsWith("data:")?{type:"embedded",data:l}:{type:"fetch",url:l}:{type:"fetch",url:d};if("embedded"===s.type)return await this.loadContextContentEmbedded(e,t,this.generateHash(s.data),s.data),!0;let i=this.generateHash(s.url);return await this.loadContextContentFetch(e,t,s.url,i,a)}catch(t){return console.warn(`Failed to load context ${e}:`,t),!1}}getTargetContainer(e){if(!this.hasDocument())return null;if((e.isGlobalSVGIconContext??!0)||!e.containerId)return document.head;let t=document.getElementById(e.containerId);return t||document.head}async injectFilteredSymbolsIntoDOM(e,t,a,l,s){if(!this.hasDocument())return void console.warn("IconsRegistry: document is undefined, skipping DOM injection");s&&s.remove();let i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("id",e),i.setAttribute("style","display: none; position: absolute;"),i.setAttribute("aria-hidden","true"),i.dataset.sourceHash=l,t.forEach(e
1=>i.appendChild(e.cloneNode(!0)));let r=document.createElement("div");r.innerHTML=i.outerHTML;let n=r.querySelector("svg");this.getTargetContainer(a).appendChild(n),await new Promise(e=>requestAnimationFrame(()=>e(void 0)))}getIconFromDOM(e,t,a){if(!this.hasDocument())return null;let l=document.querySelector(`#${e}`);if(l){if(l.querySelector(`#${this.getIconIdWithAffixes(t,a)}`))return t;if(a?.variation){let e=this.getIconIdWithAffixes(t,{...a,variation:""});if(l.querySelector(`#${e}`))return e}}return null}async getIconReference(e,t){if(!await this.loadContext(e))return null;let a=this.context.get(e);if(!a)return null;let l=this.cache[e];if(!l)return null;let s=this.getIconIdWithAffixes(t,a);if(l.symbols.has(s))return s;if(a.variation){let e=this.getIconIdWithAffixes(t,{...a,variation:""});if(l.symbols.has(e))return e}return null}cleanupCache(){let e=Object.entries(this.cache);if(!(e.length<=this.MAX_CACHE_SIZE))for(let[t]of(e.sort((e,t)=>e[1].lastAccessed-t[1].lastAccessed),e.slice(0,e.length-this.MAX_CACHE_SIZE))){if(delete this.cache[t],this.hasDocument()){let e=document.getElementById(t);e&&e.remove()}console.log(`Cleaned up cached context: ${t}`)}}async preloadContext(e){let t=e.map(e=>this.loadContext(e));await Promise.all(t)}clearCache(){if(!this.hasDocument()){console.warn("IconsRegistry: document is undefined, skipping clearCache DOM operations"),this.cache={},this.loadingPromises.clear(),console.log("Cache cleared (SSR mode)");return}Object.keys(this.cache).forEach(e=>{let t=document.getElementById(e);t&&t.remove()}),this.cache={},this.loadingPromises.clear(),console.log("Cache cleared")}getCacheStats(){let e=Object.values(this.cache).filter(e=>e.loaded).length,t=Object.values(this.cache).reduce((e,t)=>e+t.symbols.size,0);return{totalContexts:this.context.size,loadedContexts:e,totalIcons:t}}}let f=new h;var m=e.i(271645);let g=e=>{let t=(0,m.useRef)(e);return(0,m.useEffect)(()=>{t.current=e},[e]),(0,m.useCallback)((...e)=>{t.current?.(...e)},[])},p=({contextId:e,iconId:a,config:l,className:s="",size:i,style:r={},alt:n,fallback:c,showLoading:d=!0,onLoad:h,onError:p})=>{let{context:u,config:x}=((e,t,a)=>{let l=`${e}-football-icons`,{containerId:s,iconSVGPath:i,isGlobalSVGIconContext:r=!0}=t,n=s?`${s}-${l}`:l,o={...a,pathOrUrl:a.pathOrUrl||i,isGlobalSVGIconContext:a.isGlobalSVGIconContext||r};return{context:r?n:l,config:o}})(e,(0,m.useMemo)(()=>({iconSVGPath:l.pathOrUrl,isGlobalSVGIconContext:l.isGlobalSVGIconContext,containerId:l.containerId}),[l.containerId,l.isGlobalSVGIconContext,l.pathOrUrl]),l),[y,j]=(0,m.useState)(!1),[w,v]=(0,m.useState)(!1),b=f.getIconFromDOM(u,a,x),[N,I]=(0,m.useState)(b),S=g(()=>h?.()),C=g(e=>p?.(e)),M=(0,m.useMemo)(()=>{let e={display:"inline-block",...r};return i&&(e.width="number"==typeof i?`${i}px`:i,e.height="number"==typeof i?`${i}px`:i),e},[i,r]);if((0,m.useEffect)(()=>{let e=!0;return(async()=>{try{b||j(!0),v(!1),f.registerContext(u,x);let t=b;if(b?(t=await f.getIconReference(u,a),I(t)):await f.preloadContext([u]),!e)return;if(t)S();else{let e=`Icon not found: ${a} in context ${u}`;v(!0),C(e)}}catch(l){if(!e)return;let t=`Failed to load icon: ${a} from ${u}`;console.warn(t,l),v(!0),C(t)}finally{e&&!b&&j(!1)}})(),()=>{e=!1}},[u,a,l,x,C,S,b]),y&&!N&&d)return(0,t.jsx)("div",{className:`dfw:inline-block dfw:animate-pulse dfw:bg-gray-200 dfw:rounded ${s}`,style:M,"aria-label":"Loading icon...","aria-live":"polite"});if(w||!N)return c?(0,m.isValidElement)(c)?c:(0,t.jsx)(c,{}):(0,t.jsx)("div",{className:`dfw:inline-flex dfw:items-center dfw:justify-center dfw:text-xs ${s}`,style:M,title:`Icon not found: ${a}`,"aria-label":n||`Missing icon: ${a}`,children:(0,t.jsx)(o,{})});let T=""===n;return(0,t.jsx)("svg",{className:s,style:M,"aria-label":T?void 0:n||a,"aria-hidden":T?"true":void 0,role:T?void 0:"img",focu
1sable:"false",children:(0,t.jsx)("use",{href:`#${N}`,xlinkHref:`#${N}`})})},u={goal:{id:"goal"},corner:{id:"corner_shot"},substitution:{id:"substitution"},"yellow-card":{id:"yellow_card"},"official-yellow-card":{id:"yellow_card"},"red-card":{id:"red_card"},"official-red-card":{id:"red_card"},"start-first-half":{id:"first_half_start"},"first-half":{id:"first_half_start"},"end-first-half":{id:"first_half_end"},"half-time-break":{id:"first_half_end"},"start-second-half":{id:"second_half_start"},"second-half":{id:"second_half_start"},"end-second-half":{id:"second_half_end"},lineup:{id:"lineup"},"extra-time-first-half":{id:"first_extra_time_start"},"extra-time-break":{id:"first_extra_time_end"},"extra-time-second-half":{id:"second_extra_time_start"},"end-extra-time-second-half":{id:"second_extra_time_end"},"full-time":{id:"suspension"},"official-second-yellow-card":{id:"second_yellow_card"},"second-yellow-card":{id:"second_yellow_card"},foul:{id:"foul"},"injury-event":{id:"injury"},"substitution-in":{id:"substitution_on"},"substitution-out":{id:"substitution_off"},"attempt-saved":{id:"save",class:"dfw:dark:[--dfw-color-svg-save-events:black]"},"penalty-shoot-out-saved":{id:"save",class:"dfw:dark:[--dfw-color-svg-save-events:black]"},"attempt-missed":{id:"shot_on_target",class:"dfw:dark:[--dfw-color-svg-shot-on-target-events:black]"},"own-goal":{id:"own_goal",class:"dfw:dark:[--dfw-color-svg-own-goal-events:black]"},assist:{id:"assist",class:"dfw:dark:[--dfw-color-svg-assist-events:black]"},penalties:{id:"penalty_start"},"end-penalties":{id:"penalty_end"},"penalty-goal":{id:"penalty_goal",class:"dfw:dark:[--dfw-color-svg-penalty-goal-events:black]"},"penalty-shoot-out":{id:"penalty_shot"},"penalty-shoot-out-missed":{id:"phase_penalty_wrong"},"action-disallowed":{id:"phase_penalty_wrong"},"penalty-shoot-out-scored":{id:"phase_penalty_goal",class:"dfw:dark:[--dfw-color-svg-phase-penalty-goal-events:black]"},live:{id:"live"},default:{id:"default"}};var x=e.i(271649),y=e.i(919056);let j={goal:"Goal scored","penalty-goal":"Penalty goal scored","own-goal":"Own goal","yellow-card":"Yellow card shown","red-card":"Red card shown","second-yellow-card":"Second yellow card (red card)",substitution:"Player substitution",var:"VAR review","action-disallowed":"Disallowed goal",injury:"Player injury",offside:"Offside",corner:"Corner kick","free-kick":"Free kick",penalty:"Penalty","penalty-missed":"Penalty missed","penalty-saved":"Penalty saved",shot:"Shot","shot-on-target":"Shot on target","shot-off-target":"Shot off target",assist:"Assist","kick-off":"Kick off","half-time":"Half time","full-time":"Full time","extra-time":"Extra time",start:"Match started",end:"Match ended"},w=({eventType:e,alt:a,iconPathOrUrl:l,eventAltTextMap:s,colorSchemaKey:i=x.ColorSchemaKeys.light,...r})=>{let n=e?.toLowerCase()||"default",o=u[n]||u.default,c="events",d=o||{id:"default",class:""},h=(0,m.useMemo)(()=>({pathOrUrl:l,suffix:`_${c}`,variation:i===x.ColorSchemaKeys.dark?"_dark":"_light"}),[l,i]);return(0,t.jsx)(p,{...r,contextId:c,config:h,iconId:d.id,alt:a||(s?.[n]?s[n]:j[n]?j[n]:`${e} event`),className:(0,y.twMerge)("size-4",d.class||"",r.className||"")})};var v=e.i(460771),b=e.i(607256),N=x,I=e.i(191440);let S=({player:e,staff:a,className:l,isReverse:s=!1,colorSchemaKey:i=N.ColorSchemaKeys.light})=>{let n=(0,b.default)(),o=I.colorSchemas[i].matchLineups;if(!e&&!a)return null;let c=[...e?.events?.filter(e=>e?.type)??[]].sort((e,t)=>(e?.time??0)-(t?.time??0)),d=c.slice(Math.max(0,c.length-3));return a?(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-full items-center justify-start border-b pb-2","gap-4 xl:gap-3 2xl:gap-4",o.border,l,s&&"flex-row-reverse"),children:[(0,t.jsx)(v.default,{playerImage:a?.staffImage,pictureClassName:(0,y.twMerge)("size-14 object-contain object-center rounded-full overflow-hidden border",o.border,o.playerBadgeBackgroun
1d)}),(0,t.jsx)("div",{className:(0,y.twMerge)("flex flex-col items-start justify-center gap-1","xl:origin-left xl:scale-[0.8] 2xl:scale-100",s&&"items-end"),children:(0,t.jsx)(r.default,{as:"h6",className:(0,y.twMerge)(s&&"text-end"),variant:r.TypographyVariant.h6,translate:"no",children:a?.shortName})})]}):(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-full items-center justify-start border-b pb-2 lg:min-h-[72px]","gap-4 xl:gap-3 2xl:gap-4",o.border,l,s&&"flex-row-reverse"),children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(v.default,{playerImage:e?.playerImage,pictureClassName:(0,y.twMerge)("relative block size-14 object-contain object-center rounded-full overflow-hidden border",o.border,o.playerBadgeBackground)}),e?.points&&(0,t.jsx)(r.default,{as:"div",variant:r.TypographyVariant["navigation-3-uppercase"],className:(0,y.twMerge)("performance-index-badge","absolute inset-s-1/2 bottom-0 z-10 -translate-x-1/2 rtl:translate-x-1/2"),children:e?.points})]}),(0,t.jsxs)("div",{className:(0,y.twMerge)("flex flex-col items-start justify-center gap-1","xl:origin-left xl:scale-[0.8] 2xl:scale-100",s&&"items-end"),children:[(0,t.jsx)(r.default,{as:"h6",className:(0,y.twMerge)(s&&"text-end"),variant:r.TypographyVariant.h6,translate:"no",children:s?`${e?.shortName} ${e?.bibNumber}`:`${e?.bibNumber} ${e?.shortName}`}),(0,t.jsx)("div",{className:(0,y.twMerge)("flex items-center justify-center gap-1.5",s&&"flex-row-reverse"),children:(0,t.jsx)(r.default,{as:"p",variant:r.TypographyVariant["body-5"],children:n(`player-role-${e?.roleLabel.toLowerCase()}`)})}),d.length>0&&(0,t.jsx)("div",{className:(0,y.twMerge)("flex items-center justify-center gap-2"),children:d.map((e,a)=>(0,t.jsxs)(m.Fragment,{children:[0!==a&&(0,t.jsx)("div",{className:(0,y.twMerge)("h-2 w-px",o.divider)}),(0,t.jsxs)("div",{className:(0,y.twMerge)("flex items-center justify-center gap-1"),children:[(0,t.jsx)("div",{title:`event-${e?.type}`,className:"flex size-4 items-center justify-center",children:(0,t.jsx)(w,{eventType:e?.type||"",colorSchemaKey:i})}),(0,t.jsx)(r.default,{as:"p",variant:r.TypographyVariant["navigation-3"],children:`(${e?.time}')`})]})]},`event-${e?.type}-${e?.time}-${a}`))})]})]})};var C=x;let M=({homeTeam:e,awayTeam:a,colorSchemaKey:l=C.ColorSchemaKeys.light})=>{let s=(0,b.default)();return(0,t.jsxs)("div",{className:"hidden w-full flex-col items-center justify-center gap-6 lg:flex",children:[e?.fielded&&e?.fielded?.length>0&&a?.fielded&&a?.fielded?.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{as:"h4",variant:r.TypographyVariant["h4-uppercase"],children:s("match-lineup-widget_title")}),(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-full items-start justify-center gap-4 lg:gap-6"),children:[(0,t.jsx)("div",{className:"flex w-1/2 flex-col gap-4",children:e?.fielded?.map(e=>(0,t.jsx)(S,{player:e,colorSchemaKey:l},e.playerId))}),(0,t.jsx)("div",{className:"flex w-1/2 flex-col gap-4",children:a?.fielded?.map(e=>(0,t.jsx)("div",{className:"flex w-full items-center justify-end",children:(0,t.jsx)(S,{isReverse:!0,player:e,colorSchemaKey:l},e.playerId)},e.playerId))})]})]}),e?.benched&&e?.benched?.length>0&&a?.benched&&a?.benched?.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{as:"h4",variant:r.TypographyVariant["h4-uppercase"],children:s("match-lineup-widget_bench-title")}),(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-full items-start justify-center gap-4 lg:gap-6"),children:[(0,t.jsx)("div",{className:"flex w-1/2 flex-col gap-4",children:e?.benched?.map(e=>(0,t.jsx)(S,{player:e,colorSchemaKey:l},e.playerId))}),(0,t.jsx)("div",{className:"flex w-1/2 flex-col gap-4",children:a?.benched?.map(e=>(0,t.jsx)("div",{className:"flex w-full items-center justify-end",children:(0,t.jsx)(S,{isReverse:!0,player:e,colorSchemaKey:l},e.playerId)},e.playerId))})]})]}),e?.staff&&e?.staff.length>0&&a?.staff&&a?.staff.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{as:"h4",variant:r.TypographyVariant["h4-uppercase"],children:s("match-lineup-widget_coaches")}),(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-full items-start justify-center gap-4 lg:gap-6"),children:[(0,t.jsx)("div",{className:"flex w-1/2 flex-col gap-4",children:e?.
1staff?.map((a,s)=>(0,t.jsx)(S,{staff:a,colorSchemaKey:l,className:s>(e?.staff?.length??0)-2?"border-b-0":""},a.staffId))}),(0,t.jsx)("div",{className:"flex w-1/2 flex-col gap-4",children:a?.staff?.map((e,s)=>(0,t.jsx)(S,{isReverse:!0,staff:e,colorSchemaKey:l,className:s>(a?.staff?.length??0)-2?"border-b-0":""},e.staffId))})]})]})]})};var T=e.i(906673),_=x;let k=({homeTeam:e,awayTeam:a,colorSchemaKey:l=_.ColorSchemaKeys.light})=>{let s=(0,b.default)(),i=e=>(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-4",children:[e?.fielded&&e?.fielded?.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{as:"h4",variant:r.TypographyVariant["h4-uppercase"],children:s("match-lineup-widget_title")}),e?.fielded?.map(e=>(0,t.jsx)(S,{player:e,colorSchemaKey:l},e.playerId))]}),e?.benched&&e?.benched?.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{as:"h4",variant:r.TypographyVariant["h4-uppercase"],children:s("match-lineup-widget_bench-title")}),e?.benched?.map(e=>(0,t.jsx)(S,{player:e,colorSchemaKey:l},e.playerId))]}),e?.staff&&e?.staff.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{as:"h4",variant:r.TypographyVariant["h4-uppercase"],children:s("match-lineup-widget_coaches")}),e?.staff?.map((a,s)=>(0,t.jsx)(S,{staff:a,colorSchemaKey:l,className:(0,y.twMerge)(s>(e?.staff?.length??0)-2?"border-b-0":"")},a.staffId))]})]}),n=[{trigger:{label:(0,t.jsx)("span",{translate:"no",children:e?.officialName||e?.mediaName||""}),value:"home"},disabled:!1,defaultValue:!0,content:i(e)},{trigger:{label:(0,t.jsx)("span",{translate:"no",children:a?.officialName||a?.mediaName||""}),value:"away"},disabled:!1,defaultValue:!1,content:i(a)}];return(0,t.jsx)("div",{className:"flex w-full lg:hidden",children:(0,t.jsx)(T.default,{items:n,className:"w-full gap-6 lg:gap-9",ariaLabel:"Match Line Ups List Teams Tabs",colorSchemaKey:l})})};var $=x;let P=({homeTeam:e,awayTeam:a,tooltip:l,performanceIndexTitle:o,colorSchemaKey:c=$.ColorSchemaKeys.light})=>{let d=I.colorSchemas[c].matchLineups;return e?.fielded?.length&&a?.fielded?.length&&e?.benched?.length&&a?.benched?.length?(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-full flex-col items-center justify-center gap-4 lg:gap-6"),children:[l&&o&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(r.default,{as:"p",className:"performance-index-badge",variant:r.TypographyVariant["navigation-3-uppercase"],children:"00"}),(0,t.jsx)(s.default,{tooltipText:l,colorSchemaKey:c,className:"ms-1 inline-block",children:(0,t.jsxs)(r.default,{as:"p",className:(0,y.twMerge)(d.link,"flex cursor-pointer items-center underline lg:gap-2"),variant:r.TypographyVariant["body-2"],children:[(0,t.jsx)(i.default,{translationTermKey:o}),(0,n.renderSvgIcon)("InfoCircle",{className:"size-6"})]})})]}),(0,t.jsx)(k,{homeTeam:e,awayTeam:a,colorSchemaKey:c}),(0,t.jsx)(M,{homeTeam:e,awayTeam:a,colorSchemaKey:c})]}):null};var V=e.i(936540),K=e.i(885252),L=x;let z=({player:e,className:a,badgeClassName:l,colorSchemaKey:s=L.ColorSchemaKeys.light})=>{let i=I.colorSchemas[s].matchLineups;if(!e)return null;let n=[...e?.events?.filter(e=>e?.type)??[]].sort((e,t)=>(e?.time??0)-(t?.time??0)),o=n.slice(Math.max(0,n.length-3));return(0,t.jsxs)("div",{className:(0,y.twMerge)("relative flex h-[70px] w-[80px] flex-col items-center justify-start gap-1.5 md:h-[100px] md:w-[120px]",i.border,a),children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(v.default,{playerImage:e?.playerImage,pictureClassName:(0,y.twMerge)("relative block size-8 overflow-hidden rounded-full border object-contain object-center md:size-14",i.border,i.playerBadgeBackgroun
1d)}),e?.points&&(0,t.jsx)(r.default,{as:"div",variant:r.TypographyVariant["navigation-3-uppercase"],className:(0,y.twMerge)("performance-index-badge","h-[12px] w-[26px] md:h-[18px] md:w-[36px]","absolute inset-s-1/2 bottom-0 z-10 -translate-x-1/2 rtl:translate-x-1/2"),children:e?.points}),o?.map((e,a)=>(0,t.jsx)("div",{title:`event-${e?.type}`,className:(0,y.twMerge)("absolute -top-1 flex size-3 items-center justify-center md:size-4"),style:{zIndex:10-a,insetInlineEnd:o?.length===1?"0":`${10*a-5}px`},children:(0,t.jsx)(w,{eventType:e?.type||"",colorSchemaKey:s,className:(0,y.twMerge)("size-full rounded-full border",i.border,i.playerBadgeBackground)})},`event-${e?.type}-${e?.time}-${a}`))]}),(0,t.jsxs)("div",{className:(0,y.twMerge)("flex h-auto w-full flex-col items-center justify-center",l),children:[(0,t.jsx)(r.default,{as:"p",translate:"no",className:"w-full text-center text-pretty",variant:r.TypographyVariant["navigation-3"],children:e?.shortName}),(0,t.jsx)(r.default,{as:"p",variant:r.TypographyVariant["numbers-3"],children:e?.bibNumber})]})]})};var F=e.i(343087),A=x;let D=({homeTeam:e,awayTeam:a,tooltip:l,performanceIndexTitle:o,colorSchemaKey:d=A.ColorSchemaKeys.light})=>{let h=(0,b.default)(),f=I.colorSchemas[d].matchLineups;return e?.fielded?.length&&a?.fielded?.length&&e?.benched?.length&&a?.benched?.length?(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-[708px] max-w-[708px] min-w-[708px] shrink-0 flex-col items-center justify-center gap-6 rounded-2xl border p-6",f.pitch),children:[(0,t.jsx)(r.default,{as:"h5",variant:r.TypographyVariant["h5-uppercase"],children:h("match-lineup-widget_title")}),l&&o&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(r.default,{as:"p",className:"performance-index-badge",variant:r.TypographyVariant["navigation-3-uppercase"],children:"00"}),(0,t.jsx)(s.default,{tooltipText:l,colorSchemaKey:d,className:"ms-1 inline-block",children:(0,t.jsxs)(r.default,{as:"p",className:(0,y.twMerge)(f.link,"flex cursor-pointer items-center underline lg:gap-2"),variant:r.TypographyVariant["body-2"],children:[(0,t.jsx)(i.default,{translationTermKey:o}),(0,n.renderSvgIcon)("InfoCircle",{className:"size-6"})]})})]}),(0,t.jsxs)("div",{className:(0,y.twMerge)("relative aspect-660/988 w-full","bg-size-[100%_100%] bg-center bg-no-repeat"),style:{backgroundImage:`url(${(0,c.prependAssetPrefix)("/assets/background/line-ups/pitch_full.svg")})`},children:[(0,t.jsx)(K.default,{clubImage:e?.teamLogo,alt:e?.officialName||e?.mediaName||"",className:(0,y.twMerge)("absolute inset-s-5 top-5 size-14 object-contain object-center")}),(0,t.jsx)("div",{className:"relative z-10 flex h-[494px] flex-col items-center justify-around",children:e?.fielded?.map((a,l)=>(0,t.jsx)("div",{"data-tactical-x":a.tacticalXPosition,"data-tactical-y":a.tacticalYPosition,style:(0,F.getPlayerPositionFromCoordinates)({player:{x:a.tacticalXPosition||"0",y:a.tacticalYPosition||"0"},teamPosition:"top",tacticalFormation:e?.tacticalFormation,isHomeTeam:!0}
1),children:(0,t.jsx)(z,{player:a,badgeClassName:f.teamHomeplayerBadge})},`${a?.playerId}-${l}`))}),(0,t.jsx)("div",{className:"relative z-10 flex h-[494px] flex-col-reverse items-center justify-around",children:a?.fielded?.map((e,l)=>(0,t.jsx)("div",{"data-tactical-x":e.tacticalXPosition,"data-tactical-y":e.tacticalYPosition,style:(0,F.getPlayerPositionFromCoordinates)({player:{x:e.tacticalXPosition||"0",y:e.tacticalYPosition||"0"},teamPosition:"bottom",tacticalFormation:a?.tacticalFormation,isHomeTeam:!1}),children:(0,t.jsx)(z,{player:e,badgeClassName:f.teamAwayplayerBadge})},`${e?.playerId}-${l}`))}),(0,t.jsx)(K.default,{clubImage:a?.teamLogo,alt:a?.officialName||a?.mediaName||"",className:(0,y.twMerge)("absolute inset-e-5 bottom-5 size-14 object-contain object-center")})]})]}):null};var H=x;let O=({homeTeam:e,awayTeam:a,tooltip:l,performanceIndexTitle:o,colorSchemaKey:d=H.ColorSchemaKeys.light})=>{let h=(0,b.default)(),f=I.colorSchemas[d].matchLineups;if(!e?.fielded?.length||!a?.fielded?.length||!e?.benched?.length||!a?.benched?.length)return null;let m=[{trigger:{label:(0,t.jsx)("span",{translate:"no",children:e?.officialName||e?.mediaName||""}),value:"home"},disabled:!1,defaultValue:!0,content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,y.twMerge)("relative aspect-724/655 w-full"),children:[(0,t.jsx)("div",{className:"absolute inset-0 z-0 rotate-180 bg-size-[100%_100%] bg-center bg-no-repeat",style:{backgroundImage:`url(${(0,c.prependAssetPrefix)("/assets/background/line-ups/pitch_half.svg")})`}}),(0,t.jsx)(K.default,{clubImage:e?.teamLogo,alt:e?.officialName||e?.mediaName||"",className:(0,y.twMerge)("absolute inset-s-2 top-2 size-8 object-contain object-center")}),(0,t.jsx)("div",{className:"relative z-10 flex h-full flex-col items-center justify-around",children:e?.fielded?.map((a,l)=>(0,t.jsx)("div",{"data-tactical-x":a.tacticalXPosition,"data-tactical-y":a.tacticalYPosition,style:(0,F.getPlayerPositionFromCoordinates)({player:{x:a.tacticalXPosition||"0",y:a.tacticalYPosition||"0"},teamPosition:"top",tacticalFormation:e?.tacticalFormation,isHomeTeam:!0}
1),children:(0,t.jsx)(z,{player:a,badgeClassName:f.teamHomeplayerBadge})},`${a?.playerId}-${l}`))})]}),e?.staff&&e?.staff.length>0&&(0,t.jsx)("div",{className:"mt-4 flex w-full flex-col items-center justify-center gap-2",children:e?.staff?.map((a,l)=>(0,t.jsx)(S,{staff:a,colorSchemaKey:d,className:(0,y.twMerge)("items-center justify-center",l>(e?.staff?.length??0)-2?"border-b-0":"")},a.staffId))})]})},{trigger:{label:(0,t.jsx)("span",{translate:"no",children:a?.officialName||a?.mediaName||""}),value:"away"},disabled:!1,defaultValue:!1,content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,y.twMerge)("relative aspect-724/655 w-full"),children:[(0,t.jsx)("div",{className:"absolute inset-0 z-0 bg-size-[100%_100%] bg-center bg-no-repeat",style:{backgroundImage:`url(${(0,c.prependAssetPrefix)("/assets/background/line-ups/pitch_half.svg")})`}}),(0,t.jsxs)("div",{className:"relative z-10 flex h-full flex-col-reverse items-center justify-around",children:[(0,t.jsx)(K.default,{clubImage:a?.teamLogo,alt:a?.officialName||a?.mediaName||"",className:(0,y.twMerge)("absolute inset-e-2 bottom-2 size-8 object-contain object-center")}),a?.fielded?.map((e,l)=>(0,t.jsx)("div",{"data-tactical-x":e.tacticalXPosition,"data-tactical-y":e.tacticalYPosition,style:(0,F.getPlayerPositionFromCoordinates)({player:{x:e.tacticalXPosition||"0",y:e.tacticalYPosition||"0"},teamPosition:"bottom",tacticalFormation:a?.tacticalFormation,isHomeTeam:!1}),children:(0,t.jsx)(z,{player:e,badgeClassName:f.teamAwayplayerBadge})},`${e?.playerId}-${l}`))]})]}),a?.staff&&a?.staff.length>0&&(0,t.jsx)("div",{className:"mt-4 flex w-full flex-col items-center justify-center gap-2",children:a?.staff?.map((e,l)=>(0,t.jsx)(S,{staff:e,colorSchemaKey:d,className:(0,y.twMerge)("items-center justify-center",l>(a?.staff?.length??0)-2?"border-b-0":"")},e.staffId))})]})}];return(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-4",children:[(0,t.jsx)(r.default,{as:"h5",variant:r.TypographyVariant["h5-uppercase"],children:h("match-lineup-widget_title")}),l&&o&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(r.default,{as:"p",className:"performance-index-badge",variant:r.TypographyVariant["navigation-3-uppercase"],children:"00"}),(0,t.jsx)(s.default,{tooltipText:l,colorSchemaKey:d,className:"ms-1 inline-block",children:(0,t.jsxs)(r.default,{as:"p",className:(0,y.twMerge)(f.link,"flex cursor-pointer items-center underline lg:gap-2"),variant:r.TypographyVariant["body-2"],children:[(0,t.jsx)(i.default,{translationTermKey:o}),(0,n.renderSvgIcon)("InfoCircle",{className:"size-6"})]})})]}),(0,t.jsx)(T.default,{items:m,className:"w-full gap-6 lg:gap-9",ariaLabel:"Match Line Ups Pitch Teams Tabs",colorSchemaKey:d})]})};var E=x;let B=({homeTeam:e,awayTeam:a,ctaLink:l,tooltip:s,performanceIndexTitle:i,colorSchemaKey:n=E.ColorSchemaKeys.light})=>{let o=(0,b.default)(),c=(a,l=!0)=>{let s=a.teamId===e.teamId,i=l?s?"xl:pe-2 2xl:pe-6":"xl:ps-2 2xl:ps-6":"";return(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-full min-w-0 flex-col items-center justify-center",l?"xl:gap-3 xl:py-3 2xl:gap-6 2xl:py-6":"gap-6 py-6",i),children:[(0,t.jsx)(r.default,{as:"h5",className:(0,y.twMerge)(l&&"xl:scale-[0.8] 2xl:scale-100"),variant:r.TypographyVariant["h5-uppercase"],children:o("match-lineup-widget_bench-title")}),(0,t.jsx)("div",{className:(0,y.twMerge)("flex w-full flex-col",l?"xl:gap-3 2xl:gap-4":"gap-4"),children:a?.benched?.map((e,l)=>(0,t.jsx)(S,{player:e,colorSchemaKey:n,className:l>(a?.benched?.length??0)-2?"border-b-0":""},e.playerId))}),a?.staff&&a?.staff.length>0&&(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-4",children:[(0,t.jsx)(r.default,{as:"h5",className:(0,y.twMerge)(l&&"xl:scale-[0.8] 2xl:scale-100"),variant:r.TypographyVariant["h5-uppercase"],children:o("match-lineup-widget_coaches")}),(0,t.jsx)("div",{className:(0,y.twMerge)("flex w-full flex-col",l?"xl:gap-3 2xl:gap-4":"gap-4"),children:a.staff?.map((e,l)=>(0,t.jsx)(S,{staff:e,colorSchemaKey:n,className:l>(a?.staff?.length??0)-2?"border-b-0":""},e.staffId))})]})]})};return e?.fielded?.length&&a?.fielded?.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,y.twMerge)("match-lineups-pitch-list-mobile lg:hidden","flex w-full flex-col items-center justify-center gap-4 lg:gap-6"),children:[(0,t.jsx)(O,{homeTeam:e,awayTeam:a,tooltip:s,performanceIndexTitle:i,colorSchemaKey:n}),l&&(0,t.jsx)(V.default,{size:"large",variant:"link",url:l,icon:"CaretRight",className:"block lg:hidden",iconClassName:"rtl:rotate-180",text:o("match-lineup-widget_go-to-complete-lineup")})]}),(0,t.jsxs)("div",{className:(0,y.twMerge)("match-lineups-pitch-list-desktop hidden lg:flex","w-full flex-col items-center gap-4 lg:gap-6"),children:[(0,t.jsxs)("div",{className:"hidden w-full flex-col items-center gap-4 px-4 lg:flex lg:gap-6 lg:px-6 xl:hidden",children:[(0,t.jsx)(D,{homeTeam:e,awayTeam:a,tooltip:s,performanceIndexTitle:i,colorSchemaKey:n}),(0,t.jsxs)("div",{className:"grid w-full grid-cols-2 gap-4 lg:gap-6",children:[c(e,!1),c(a,!1)]})]}),(0,t.jsxs)("div",{className:"hidden w-full items-start justify-center gap-4 xl:flex 2xl:gap-6",children:[c(e),(0,t.jsx)(D,{homeTeam:e,awayTeam:a,tooltip:s,performanceIndexTitle:i,colorSchemaKey:n}),c(a)]})]})]}):null};var R=e.i(994132),U=x;let G=({homeTeam:e,awayTeam:a,colorSchemaKey:l=U.ColorSchemaKeys.light})=>{let s=(0,b.default)(),i=I.colorSchemas[l].matchLineups,n=e?.stats?.find(e=>"rank"===e.statsId)?.statsValue||null,o=a?.stats?.find(e=>"rank"===e.statsId)?.statsValue||null;return(0,t.jsxs)("div",{className:(0,y.twMerge)("hidden w-full items-start justify-center gap-4 lg:flex"),children:[(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-1/2 items-center justify-between gap-2 rounded-lg border-s-4 px-4 py-2",i.teamBackgroun
1d,i.teamHomeBorder),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(K.default,{clubImage:e?.teamLogo,alt:e?.officialName||e?.mediaName||"",className:(0,y.twMerge)("size-14 object-contain object-center")}),(0,t.jsxs)("div",{children:[(0,t.jsx)(r.default,{as:"h4",variant:r.TypographyVariant.h4,translate:"no",children:e?.officialName||e?.mediaName}),(0,t.jsx)(r.default,{as:"p",variant:r.TypographyVariant["numbers-2"],children:e.tacticalFormation})]})]}),n&&("number"==typeof n||"string"==typeof n)&&(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(r.default,{as:"p",variant:r.TypographyVariant["body-5"],children:s("match-lineup-widget_position")}),(0,t.jsx)("div",{className:(0,y.twMerge)("h-5.5 w-px",i.divider)}),(0,t.jsx)(r.default,{as:"h5",variant:r.TypographyVariant.h5,children:(0,R.getRankOrdinal)(parseInt(String(n)))})]})]}),(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-1/2 items-center justify-between gap-2 rounded-lg border-e-4 px-4 py-2",i.teamBackground,i.teamAwayBorder),children:[o&&("number"==typeof o||"string"==typeof o)&&(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(r.default,{as:"h5",variant:r.TypographyVariant.h5,children:(0,R.getRankOrdinal)(parseInt(String(o)))}),(0,t.jsx)("div",{className:(0,y.twMerge)("h-5.5 w-px",i.divider)}),(0,t.jsx)(r.default,{as:"p",variant:r.TypographyVariant["body-5"],children:s("match-lineup-widget_position")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(r.default,{as:"h4",variant:r.TypographyVariant.h4,translate:"no",children:a?.officialName||a?.mediaName}),(0,t.jsx)(r.default,{as:"p",className:(0,y.twMerge)("text-end"),variant:r.TypographyVariant["numbers-2"],children:a.tacticalFormation})]}),(0,t.jsx)(K.default,{clubImage:a?.teamLogo,alt:a?.officialName||a?.mediaName||"",className:(0,y.twMerge)("size-14 object-contain object-center")})]})]})]})};var W=e.i(161024),X=e.i(912050),Y=e.i(479255),q=x;let Z=(e,t,a)=>e&&t?e.map(e=>{let l=t?.find(t=>e?.providerId?.includes(t?.statsperformId));return{...e,points:l?.points&&l?.points!==0?l?.points.toString():"",playerImage:(0,W.getSDPImage)(e?.imagery?.playerImage_home_middle,a)||void 0}}):e,J=(e,t)=>e?e.map(e=>({...e,staffImage:(0,W.getSDPImage)(e?.imagery?.coachImage,t)||void 0})):e;e.s(["default",0,({data:e,fantasyStateData:s,ctaLink:i,showListOnly:r,tooltip:n,performanceIndexTitle:o,isFullWidth:c=!1,colorSchemaKey:d=q.ColorSchemaKeys.light})=>{let{SDP_IMAGERY_BASE_URL:h}=(0,X.useEnvVars)(),[f]=(0,m.useState)(()=>e||null),[g,p]=(0,m.useState)(!0);if((0,m.useEffect)(()=>{let e=setTimeout(()=>{p(!(f?.home&&f?.away))},300);return()=>clearTimeout(e)},[f?.home,f?.away]),g)return(0,t.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,t.jsx)(l.default,{})});if(!f?.home||!f?.away)return null;let u={...f.home,teamLogo:(0,W.getSDPImage)(f?.home?.imagery?.teamLogo,h),teamLogoLight:(0,W.getSDPImage)(f?.home?.imagery?.teamLogoLight,h),staff:f?.home?.staff?J(f?.home?.staff,h):[],fielded:f?.home?.fielded?Z(f?.home?.fielded,s?.players,h):[],benched:f?.home?.benched?Z(f?.home?.benched,s?.players,h):[]},x={...f.away,teamLogo:(0,W.getSDPImage)(f?.away?.imagery?.teamLogo,h),teamLogoLight:(0,W.getSDPImage)(f?.away?.imagery?.teamLogoLight,h),staff:f?.away?.staff?J(f?.away?.staff,h):[],fielded:f?.away?.fielded?Z(f?.away?.fielded,s?.players,h):[],benched:f?.away?.benched?Z(f?.away?.benched,s?.players,h):[]},j=I.colorSchemas[d].matchLineups;return(0,t.jsx)(t.Fragment,{children:r?(0,t.jsx)(a.default,{isFullWidth:c,horizontalSpacing:c?Y.ContainerHorizontalSpacing.fullWidth:Y.ContainerHorizontalSpacing.container,className:(0,y.twMerge)("py-8 lg:py-16",j.text),children:(0,t.jsx)(P,{homeTeam:u,awayTeam:x,tooltip:n,performanceIndexTitle:o,colorSchemaKey:d})}):(0,t.jsx)(a.default,{isFullWidth:c,horizontalSpacing:c?Y.ContainerHorizontalSpacing.fullWidth:Y.ContainerHorizontalSpacing.container,children:(0,t.jsxs)("div",{className:(0,y.twMerge)("flex w-full flex-wrap items-center justify-center gap-4 roun
1ded-lg border p-4 lg:rounded-2xl",j.background,j.border),children:[(0,t.jsx)(G,{homeTeam:u,awayTeam:x}),(0,t.jsx)(B,{homeTeam:u,awayTeam:x,ctaLink:i,tooltip:n,performanceIndexTitle:o,colorSchemaKey:d})]})})})}],311260)}]);

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.