1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b49c6ee9-f6c3-407f-9cc2-3097e346ec79",e._sentryDebugIdIdentifier="sentry-dbid-b49c6ee9-f6c3-407f-9cc2-3097e346ec79")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7898],{16881:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var a=s(26401),n=s(65811),l=s(39828),r=s(88791),i=s(26101),o=s(20389),c=s(16683);let d=(e,t,s)=>(0,a.jsxs)("div",{className:(0,c.cn)("flex flex-col items-center grow px-1 py-0-5 rounded-sm text-center background-blurred text-sm md:text-md w-[52px]",s),"data-sentry-component":"countdownNumber","data-sentry-source-file":"CountdownTimer.tsx",children:[(0,a.jsx)("span",{className:"font-bold",children:e}),(0,a.jsx)("span",{className:"text-xs",children:t})]}),m=e=>{let t,s,m,x,u,f,h,p,g,y,b,j,v,w,N=(0,n.c)(65),{tournament:k,titleClassName:I,countdownItemClassName:P}=e,{t:z}=(0,r.B)(),S=(0,l.s)(k.isLive?k.endDate:k.startDate),[_,T]=(0,o.useState)(!1);if(N[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{T(!0)},s=[],N[0]=t,N[1]=s):(t=N[0],s=N[1]),(0,o.useEffect)(t,s),!S||!_){let e,t,s,n,l,r,o,c,m,x,u;return N[2]!==z||N[3]!==k.isLive?(e=z(k.isLive?"tournaments.endsIn":"tournaments.startsIn"),N[2]=z,N[3]=k.isLive,N[4]=e):e=N[4],N[5]!==e?(t=(0,a.jsxs)(i.Title,{level:3,className:"w-full text-left text-sm sm:text-sm font-regular",children:[e,":"]}),N[5]=e,N[6]=t):t=N[6],N[7]!==P||N[8]!==z?(s=d("--",z("tournaments.days"),P),N[7]=P,N[8]=z,N[9]=s):s=N[9],N[10]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("div",{className:"p-1",children:":"}),N[10]=n):n=N[10],N[11]!==P||N[12]!==z?(l=d("--",z("tournaments.hours"),P),N[11]=P,N[12]=z,N[13]=l):l=N[13],N[14]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)("div",{className:"p-1",children:":"}),N[14]=r):r=N[14],N[15]!==P||N[16]!==z?(o=d("--",z("tournaments.mins"),P),N[15]=P,N[16]=z,N[17]=o):o=N[17],N[18]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)("div",{className:"p-1",children:":"}),N[18]=c):c=N[18],N[19]!==P||N[20]!==z?(m=d("--",z("tournaments.secs"),P),N[19]=P,N[20]=z,N[21]=m):m=N[21],N[22]!==m||N[23]!==s||N[24]!==l||N[25]!==o?(x=(0,a.jsxs)("div",{className:"flex items-center justify-center w-full",children:[s,n,l,r,o,c,m]}),N[22]=m,N[23]=s,N[24]=l,N[25]=o,N[26]=x):x=N[26],N[27]!==x||N[28]!==t?(u=(0,a.jsxs)(a.Fragment,{children:[t,x]}),N[27]=x,N[28]=t,N[29]=u):u=N[29],u}return N[30]!==I?(m=(0,c.cn)("w-full text-left text-sm sm:text-sm font-regular",I),N[30]=I,N[31]=m):m=N[31],N[32]!==z||N[33]!==k.isLive?(x=z(k.isLive?"tournaments.endsIn":"tournaments.startsIn"),N[32]=z,N[33]=k.isLive,N[34]=x):x=N[34],N[35]!==m||N[36]!==x?(u=(0,a.jsxs)(i.Title,{level:3,className:m,"data-sentry-element":"Title","data-sentry-source-file":"CountdownTimer.tsx",children:[x,":"]}),N[35]=m,N[36]=x,N[37]=u):u=N[37],N[38]!==P||N[39]!==z||N[40]!==S?.days?(f=d(S?.days.toString().padStart(2,"0")??"--",z("tournaments.days"),P),N[38]=P,N[39]=z,N[40]=S?.days,N[41]=f):f=N[41],N[42]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)("div",{className:"p-1",children:":"}),N[42]=h):h=N[42],N[43]!==P||N[44]!==z||N[45]!==S?.hours?(p=d(S?.hours.toString().padStart(2,"0")??"--",z("tournaments.hours"),P),N[43]=P,N[44]=z,N[45]=S?.hours,N[46]=p):p=N[46],N[47]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsx)("div",{className:"p-1",children:":"}),N[47]=g):g=N[47],N[48]!==P||N[49]!==z||N[50]!==S?.minutes?(y=d(S?.minutes.toString().padStart(2,"0")??"--",z("tournaments.mins"),P),N[48]=P,N[49]=z,N[50]=S?.minutes,N[51]=y):y=N[51],N[52]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsx)("div",{className:"p-1",children:":"}),N[52]=b):b=N[52],N[53]!==P||N[54]!==z||N[55]!==S?.seconds?(j=d(S?.seconds.toString().padStart(2,"0")??"--",z("tournaments.secs"),P),N[53]=P,N[54]=z,N[55]=S?.seconds,N[56]=j):j=N[56],N[57]!==y||N[58]!==j||N[59]!==f||N[60]!==p?(v=(0,a.jsxs)("div",{className:"flex items-center justify-center w-full",children:[f,h,p,g,y,b,j]}),N[57]=y,N[58]=j,N[59]=f,N[60]=p,N[61]=v):v=N[61],N[62]!==v||N[63]!==u?(w=(0,a.jsxs)(a.Fragment,{children:[u,v]}),N[62]=v,N[63]=u,N[64]=w):w=N[64],w}},39553:(e,t,s)=>{s.d(t,{A:()=>I});var a=s(26401),n=s(65811),l=s(20389),r=s(16683),i=s(58871),o=s(91424),c=s(70758),d=s(88791),m=s(37943),x=s(72745),u=s(26101),f=s(15932),h=s(93195),p=s(72321),g=s(14908),y=s(53446);let b=e=>{let[t,s]=e.split("-"),a=Number.parseInt(t?.trim()??"",10),n=Number.parseInt(s?.trim()??"",10),l=Number.isNaN(a)?1/0:a,r=Number.isNaN(n)?l:n;return[l,r]},j=e=>{let t,s,l,i,o,c,m,x,f,h,p=(0,n.c)(40),{tournament:b,hideBadge:j}=e,N=void 0!==j&&j,{t:k}=(0,d.B)();e:{let e;if(!b.prizePoolList){let e;p[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],p[0]=e):e=p[0],t=e;break e}p[1]!==b.prizePoolList?(e=[...b.prizePoolList].sort(v),p[1]=b.prizePoolList,p[2]=e):e=p[2],t=e}let I=t;p[3]!==I?(s=I.slice(0,3),p[3]=I,p[4]=s):s=p[4];let P=s,z=P.length>0||b.totalPlayers||b.prizePool;t:{let e,t;p[5]!==P?(e=P.map(w),p[5]=P,p[6]=e):e=p[6];let s=e;if(s.length<2){l=s;break t}if(2===s.length){let e;p[7]!==s[0]||p[8]!==s[1]?(e=[s[0],s[1]],p[7]=s[0],p[8]=s[1],p[9]=e):e=p[9],l=e;break t}p[10]!==s[0]||p[11]!==s[1]||p[12]!==s[2]?(t=[s[1],s[0],s[2]],p[10]=s[0],p[11]=s[1],p[12]=s[2],p[13]=t):t=p[13],l=t}let S=l;return p[14]!==N||p[15]!==b.tournamentLabel?(i=!N&&(0,a.jsx)(g.E,{text:b.tournamentLabel,type:"lightbox",intent:"primary",size:"xs",className:"md:mb-1 xl:mb-0",icon:(0,a.jsx)(u.Icon,{name:"icons-corg-font/trophy-star",size:8,className:"w-[12px] h-[12px]"})}),p[14]=N,p[15]=b.tournamentLabel,p[16]=i):i=p[16],p[17]!==b.name?(o=(0,a.jsx)(u.Typography,{as:"p",className:"text-md font-bold text-center md:text-left max-w-[320px] md:max-w-none xl:max-w-[400px]","data-sentry-element":"Typography","data-sentry-source-file":"TournamentInfo.tsx",children:b.name}),p[17]=b.name,p[18]=o):o=p[18],p[19]!==S||p[20]!==z||p[21]!==k||p[22]!==P.length||p[23]!==b.prizePool||p[24]!==b.totalPlayers?(c=z?(0,a.jsxs)("div",{className:(0,r.cn)("mt-1-5 flex flex-col md:flex-row xl:flex-col gap-section-xs md:gap-section-lg xl:gap-section-xs"),children:[(0,a.jsxs)("div",{className:"hidden md:flex md:flex-col xl:hidden gap-1",children:[b.totalPlayers?(0,a.jsxs)(u.Typography,{as:"p",className:"text-xs",children:[k("tournaments.totalPlayers"),":"," ",(0,a.jsx)("span",{className:"font-bold",children:b.totalPlayers.toLocaleStr
1ing()})]}):null,b.prizePool?(0,a.jsxs)(u.Typography,{as:"p",className:"text-xs",children:[k("tournaments.prizePool"),":"," ",(0,a.jsx)("span",{className:"font-bold",children:b.prizePool})]}):null]}),P.length>0?(0,a.jsx)("div",{className:"flex w-full flex-nowrap justify-start gap-2xs",children:S.map((e,t)=>{var s,n;let{prize:l,rank:i}=e,o=y.Z[i.toString()]??y.Z.default,c=1===t&&3===S.length;return(0,a.jsxs)("div",{className:(0,r.cn)("flex justify-center items-center gap-2xs rounded-xl px-1-5 py-1 bg-[rgba(255,255,255,0.08)] relative h-[42px] w-[102px]",...o.borderClass),style:{top:c?"-8px":void 0},children:[o.leaderboardIcon,(0,a.jsxs)("div",{className:"leading-none",children:[(0,a.jsx)("p",{className:"text-xs text-fg-on-dark-light whitespace-nowrap",children:(s=i-1,n=l.range,["1st Place","2nd Place","3rd Place"][s]??n)}),(0,a.jsx)("p",{className:"text-sm font-semibold",children:l.prize})]})]},`${l.range}-${l.prize}`)})}):null]}):null,p[19]=S,p[20]=z,p[21]=k,p[22]=P.length,p[23]=b.prizePool,p[24]=b.totalPlayers,p[25]=c):c=p[25],p[26]!==k||p[27]!==b.totalPlayers?(m=b.totalPlayers?(0,a.jsxs)(u.Typography,{as:"p",className:"text-xs md:text-xs",children:[k("tournaments.totalPlayers"),":"," ",(0,a.jsx)("span",{className:"font-bold",children:b.totalPlayers.toLocaleString()})]}):null,p[26]=k,p[27]=b.totalPlayers,p[28]=m):m=p[28],p[29]!==k||p[30]!==b.prizePool?(x=b.prizePool?(0,a.jsxs)(u.Typography,{as:"p",className:"text-xs md:text-xs",children:[k("tournaments.prizePool"),":"," ",(0,a.jsx)("span",{className:"font-bold",children:b.prizePool})]}):null,p[29]=k,p[30]=b.prizePool,p[31]=x):x=p[31],p[32]!==m||p[33]!==x?(f=(0,a.jsxs)("div",{className:"flex md:hidden xl:flex gap-section-2xs items-center md:items-start",children:[m,x]}),p[32]=m,p[33]=x,p[34]=f):f=p[34],p[35]!==f||p[36]!==i||p[37]!==o||p[38]!==c?(h=(0,a.jsxs)("div",{className:"flex flex-col w-full xl:max-w-1/2 items-center md:items-start gap-section-xs","data-sentry-component":"TournamentInfo","data-sentry-source-file":"TournamentInfo.tsx",children:[i,o,c,f]}),p[35]=f,p[36]=i,p[37]=o,p[38]=c,p[39]=h):h=p[39],h};function v(e,t){let[s,a]=b(e.range),[n,l]=b(t.range);return s!==n?s-n:a!==l?a-l:e.range.localeCompare(t.range)}function w(e,t){return{prize:e,rank:t+1}}var N=s(16881);let k=(0,p.default)(()=>s.e(9254).then(s.bind(s,79254)),{loadableGenerated:{webpack:()=>[79254]},ssr:!1}),I=e=>{let t,s,p,y,b,v,w,I,z,S,_,T,C,L,B,D,E,M,F=(0,n.c)(71),{tournament:A,compactMode:R,isMobileView:$,showPlayButton:U}=e,V=void 0!==R&&R,Y=void 0!==$&&$,Z=void 0===U||U,{t:q}=(0,d.B)(),G=(0,m.f)(),{isBot:H}=x.a.getState(),{isAuthenticated:J,sessionInitialised:K}=(0,i.J)(),O=(0,o.usePathname)(),[Q,W]=(0,l.useState)(!1),[X,ee]=(0,l.useState)("front"),et=(0,l.useRef)(null),[es,ea]=(0,l.useState)(0);F[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{et.current&&ea(et.current.offsetHeight)},s=[],F[0]=t,F[1]=s):(t=F[0],s=F[1]),(0,l.useEffect)(t,s);let en="front"!==X,{isPlayDisabled:el,playHref:er}=(0,f.Lt)({tournamentId:A.tournamentId,isAuthenticated:J,sessionInitialised:K,isBot:H});F[2]!==V||F[3]!==es||F[4]!==J||F[5]!==H||F[6]!==en||F[7]!==G||F[8]!==el||F[9]!==X||F[10]!==O||F[11]!==er||F[12]!==ee||F[13]!==Z||F[14]!==q||F[15]!==A?(p=!V&&(0,a.jsx)("div",{className:"md:hidden relative [-webkit-perspective:1000px]",style:{perspective:"1000px",height:en&&es>0?`${es}px`:void 0,overflow:en?"hidden":void 0},children:(0,a.jsxs)("div",{className:"w-full [-webkit-transform-style:preserve-3d]",style:{transformStyle:"preserve-3d",transition:G?"none":"transform 0.5s ease",transform:G?"none":en?"rotateY(180deg)":"rotateY(0deg)"},children:[(0,a.jsxs)("div",{ref:et,className:"[-webkit-backface-visibility:hidden]",style:{backfaceVisibility:"hidden",visibility:G?"visible":en?"hidden":"visible",opacity:G?+!en:void 0,transition:G?"opacity 0.2s ease":void 0,pointerEvents:en?"none":void 0},children:[(0,a.jsxs)("div",{className:"relative w-full h-[152px] overflow-hidden rounded-t-lg",children:[!!A.cardBackgroundImage&&(0,a.jsx)(h.default,{src:A.cardBackgroundImage,alt:A.name,fill:!0,className:"object-cover",priority:!0}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-start justify-end p-3 z-10",children:(0,a.jsx)(g.E,{text:A.tournamentLabel,type:"lightbox",intent:"primary",size:"xs",icon:(0,a.jsx)(u.Icon,{name:"icons-corg-font/trophy-star",size:8,className:"w-[12px] h-[12px]"})})})]}),(0,a.jsxs)("div",{className:"relative z-10 px-4 pt-3 pb-2 flex flex-col items-center gap-section-sm",children:[(0,a.jsx)(j,{tournament:A,hideBadge:!0}),Z?(0,a.jsx)(u.Button,{asChild:!0,intent:"solid",className:"w-full",children:(0,a.jsx)(u.ArianaLink,{rel:H?"nofollow":void 0,href:er,onClick:e=>{el?e.preventDefault():J||(0,c.R)("sessionStorage").setItem("redirect",O)},"aria-disabled":el,"data-aac-tracker":"tournament-play-button",children:q(J?"global.playNow":"tournaments.playForFree")})}):null,(0,a.jsx)("div",{className:"w-full flex flex-col items-center gap-1",children:(0,a.jsx)(N.default,{tournament:A})})]}),(0,a.jsxs)("div",{className:"flex p-md pt-0",children:[(0,a.jsx)(u.Button,{intent:"mute",onDark:!0,size:"small",className:"flex flex-1 justify-start text-neutral-white!",onClick:()=>ee("info"),icon:(0,a.jsx)(u.Icon,{name:"icons-corg-font/gift",size:14}),iconPosition:"left",children:q("tournaments.infoAndPrizes")}),(0,a.jsx)(u.Button,{intent:"mute",onDark:!0,size:"small",className:"flex flex-1 justify-end",onClick:()=>ee("leaderboard"),icon:(0,a.jsx)(u.Icon,{name:"icons-corg-font/ranking-winner-ribbon",size:14,className:"order-[-1]"}),iconPosition:"left",children:q("tournaments.leaderboard")})]})]}),(0,a.jsx)("div",{className:"absolute inset-0 rounded-lg [-webkit-backface-visibility:hidden]",style:{backfaceVisibility:"hidden",visibility:G||en?"visible":"hidden",opacity:G?+!!en:void 0,transition:G?"opacity 0.2s ease":void 0,transform:G?"none":"rotateY(180deg)",pointerEvents:en?void 0:"none"},children:(0,a.jsxs)("div",{className:"h-full p-lg flex flex-col gap-sm",style:{display:"grid",gridTemplateRows:"min-content 1fr"},children:[(0,a.jsx)(u.Button,{intent:"mute",onDark:!0,size:"small",className:"justify-start p-0",onClick:()=>ee("front"),icon:(0,a.jsx)(u.Icon,{name:"icons-corg-font/arrow-left-alt",size:14}),iconPosition:"left",children:q("global.backButton")}),(0,a.jsx)("div",{className:"overflow-y-auto min-h-0 h-full",children:(0,a.jsx)(k,{showInfo:!0,mobileFullHeight:!0,tournament:A,view:"info"===X?"info":"leaderboard"})})]})})]})}),F[2]=V,F[3]=es,F[4]=J,F[5]=H,F[6]=en,F[7]=G,F[8]=el,F[9]=X,F[10]=O,F[11]=er,F[12]=ee,F[13]=Z,F[14]=q,F[15]=A,F[16]=p):p=F[16];let ei=V?"":"hidden md:block";F[17]!==ei?(y=(0,r.cn)("text-white w-full mx-auto z-10",ei),F[17]=ei,F[18]=y):y=F[18];let eo=V?"flex-row justify-start":"flex-col xl:flex-row justify-between",ec=Y?"justify-center xl:justify-start":"";F[19]!==ec||F[20]!==eo?(b=(0,r.cn)("flex p-2-5 items-center gap-sm md:gap-section-lg xl:gap-section-lg",eo,ec),F[19]=ec,F[20]=eo,F[21]=b):b=F[21];let ed=V?"flex-row":"w-full xl:w-auto flex-col md:flex-row grow",em=Y?"flex-col xl:flex-row":"";F[22]!==ed||F[23]!==em?(v=(0,r.cn)("flex items-center gap-section-md md:gap-section-lg",ed,em),F[22]=ed,F[23]=em,F[24]=v):v=F[24],F[25]!==A.logoImage||F[26]!==A.name?(w=!!A.logoImage&&(0,a.jsx)(h.default,{src:A.logoImage,height:156,width:208,alt:A.name,className:"rounded-md max-h-[156px] max-w-[208px] object-contain"}),F[25]=A.logoImage,F[26]=A.name,F[27]=w):w=F[27],F[28]!==w?(I=(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsx)("div",{className:"w-[208px] h-[156px] flex items-center justify-center",children:w})}),F[28]=w,F[29]=I):I=F[29];let ex=V?"flex-col":"flex-col xl:flex-row w-full";return F[30]!==ex?(z=(0,r.cn)("flex gap-section-sm xl:gap-content-block-md justify-between",ex),F[30]=ex,F[31]=z):z=F[31],F[32]!==A?(S=(0,a.jsx)(j,{tournament:A,"data-sentry-element":"TournamentInfo","data-sentry-source-file":"PragmaticPlayItem.tsx"}),F[32]=A,F[33]=S):S=F[33],F[34]!==V||F[35]!==A?(_=!V&&(0,a.jsxs)("div",{className:"flex w-full gap-content-block-md",children:[(0,a.jsx)("div",{className:"hidden xl:block border-l-sm border-grey-20 opacity-20"}),(0,a.jsx)("div",{className:"flex justify-start grow items-center",children:(0,a.jsx)("div",{className:"w-full md:w-auto flex flex-col items-start justify-center gap-section-2xs",children:(0,a.jsx)(N.default,{tournament:A})})})]}),F[34]=V,F[35]=A,F[36]=_):_=F[36],F[37]!==z||F[38]!==S||F[39]!==_?(T=(0,a.jsxs)("div",{className:z,children:[S,_]}),F[37]=z,F[38]=S,F[39]=_,F[40]=T):T=F[40],F[41]!==v||F[42]!==I||F[43]!==T?(C=(0,a.jsxs)("div",{className:v,children:[I,T]}),F[41]=v,F[42]=I,F[43]=T,F[44]=C):C=F[44],F[45]!==V||F[46]!==J||F[47]!==H||F[48]!==el||F[49]!==O||F[50]!==er||F[51]!==W||F[52]!==Q||F[53]!==Z||F[54]!==q?(L=!V&&(0,a.jsxs)("div",{className:"flex flex-col md:flex-row xl:flex-col items-center gap-xs w-full xl:w-auto z-10",children:[Z?(0,a.jsx)(u.Button,{asChild:!0,intent:"solid",className:"w-full xl:w-auto min-w-40",children:(0,a.jsx)(u.ArianaLink,{rel:H?"nofollow":void 0,href:er,onClick:e=>{el?e.preventDefault():J||(0,c.R)("sessionStorage").setItem("redirect",O)},"aria-disabled":el,"data-aac-tracker":"tournament-play-button",children:q(J?"global.playNow":"tournaments.playForFree")})}):null,(0,a.jsx)(u.Button,{intent:"ghost",onDark:!0,className:"w-full",onClick:()=>W(P),icon:(0,a.jsx)(u.Icon,{name:"icons-corg-font/chevron-down",className:(0,r.cn)("duration-200 shrink-0",Q?"rotate-180":"rotate-0")}),children:q("tournaments.moreInfo")})]}),F[45]=V,F[46]=J,F[47]=H,F[48]=el,F[49]=O,F[50]=er,F[51]=W,F[52]=Q,F[53]=Z,F[54]=q,F[55]=L):L=F[55],F[56]!==b||F[57]!==C||F[58]!==L?(B=(0,a.jsxs)("div",{className:b,children:[C,L]}),F[56]=b,F[57]=C,F[58]=L,F[59]=B):B=F[59],F[60]!==V||F[61]!==Q||F[62]!==A?(D=!V&&(0,a.jsx)(k,{tournament:A,showInfo:Q}),F[60]=V,F[61]=Q,F[62]=A,F[63]=D):D=F[63],F[64]!==B||F[65]!==D||F[66]!==y?(E=(0,a.jsxs)("div",{className:y,children:[B,D]}),F[64]=B,F[65]=D,F[66]=y,F[67]=E):E=F[67],F[68]!==E||F[69]!==p?(M=(0,a.jsxs)("div",{className:"background-gradient-tournament-card rounded-lg text-neutral-white relative","data-sentry-component":"TournamentItem","data-sentry-source-file":"PragmaticPlayItem.tsx",children:[p,E]}),F[68]=E,F[69]=p,F[70]=M):M=F[70],M};function P(e){return!e}},53446:(e,t,s)=>{s.d(t,{Z:()=>l});var a=s(26401);s(20389);var n=s(93195);let l={1:{prizeIcon:(0,a.jsx)(n.default,{src:"/images/other/tourn
1aments/medal-1st-small.svg",alt:"1st place",width:17,height:19,className:"shrink-0 mr-1-5"}),leaderboardIcon:(0,a.jsx)(n.default,{src:"/images/other/tournaments/medal-1st.svg",alt:"1st place",width:28,height:28,className:"shrink-0"}),borderClass:["border-b-sm","border-bg-gold"],color:"#B88209"},2:{prizeIcon:(0,a.jsx)(n.default,{src:"/images/other/tournaments/medal-3rd-small.svg",alt:"2nd place",width:17,height:19,className:"shrink-0 mr-1-5"}),leaderboardIcon:(0,a.jsx)(n.default,{src:"/images/other/tournaments/medal-3rd.svg",alt:"2nd place",width:28,height:28,className:"shrink-0"}),borderClass:["border-b-sm","border-bg-silver"],color:"#808080"},3:{prizeIcon:(0,a.jsx)(n.default,{src:"/images/other/tournaments/medal-2nd-small.svg",alt:"3rd place",width:17,height:19,className:"shrink-0 mr-1-5"}),leaderboardIcon:(0,a.jsx)(n.default,{src:"/images/other/tournaments/medal-2nd.svg",alt:"3rd place",width:28,height:28,className:"shrink-0"}),borderClass:["border-b-sm","border-bg-bronze"],color:"#C97A3B"},default:{prizeIcon:null,leaderboardIcon:null,borderClass:[],color:"inherit"}}},94394:(e,t,s)=>{s.r(t),s.d(t,{default:()=>u});var a=s(26401),n=s(65811),l=s(20389),r=s(26101),i=s(70758),o=s(88791),c=s(58871),d=s(41219),m=s(43875);let x=e=>{if(!e)return null;let t=(e instanceof Date?e:new Date(e)).getTime();return Number.isNaN(t)?null:t},u=e=>{let t,s,u,f,h,p,g,y,b,j,v,w,N,k,I,P,z,S,_,T,C,L=(0,n.c)(57),{message:B,showFromDate:D,hideFromDate:E,storageKeySuffix:M,displayGroup:F}=e,A=void 0===F?"signedOut":F,{t:R}=(0,o.B)(),{isAuthenticated:$,sessionInitialised:U}=(0,c.J)(),V=(0,l.useRef)(null),Y=(0,l.useRef)(null),[Z,q]=(0,l.useState)(!1),[G,H]=(0,l.useState)(!1),[J,K]=(0,l.useState)(20);L[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,d.Nu)(),L[0]=t):t=L[0];let O=t;L[1]!==B||L[2]!==R?(s=R("tournaments.notificationMTSMigrationText"),u=B??s.replace(/<[^>]+>/g,""),L[1]=B,L[2]=R,L[3]=s,L[4]=u):(s=L[3],u=L[4]);let Q=u,W=M&&M.trim().length>0?M:"notificationMTSMigration",X=`tournaments-notification:${W}`;L[5]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.R)("localStorage"),L[5]=f):f=L[5];let ee=f;if(L[6]!==E||L[7]!==D){let e=Date.now();h=(e=>{let{currentTime:t,showFromTimestamp:s,hideFromTimestamp:a}=e;return(null===s||!(t<s))&&(null===a||!(t>=a))})({currentTime:e,showFromTimestamp:x(D),hideFromTimestamp:x(E)}),L[6]=E,L[7]=D,L[8]=h}else h=L[8];let et=h;L[9]!==A||L[10]!==$||L[11]!==U?(p=(e=>{let{displayGroup:t,isAuthenticated:s,sessionInitialised:a}=e;return"all"===t||!!a&&("signedIn"===t?s:!s)})({displayGroup:A,isAuthenticated:$,sessionInitialised:U}),L[9]=A,L[10]=$,L[11]=U,L[12]=p):p=L[12];let es=p;L[13]!==X?(g=()=>{ee.setItem(X,"true"),q(!1)},L[13]=X,L[14]=g):g=L[14];let ea=g;if(L[15]!==es||L[16]!==et||L[17]!==X?(y=()=>{es&&et?ee.getItem(X)?q(!1):q(!0):q(!1)},L[15]=es,L[16]=et,L[17]=X,L[18]=y):y=L[18],L[19]!==es||L[20]!==s||L[21]!==et||L[22]!==B||L[23]!==X?(b=[es,s,B,X,ee,et],L[19]=es,L[20]=s,L[21]=et,L[22]=B,L[23]=X,L[24]=b):b=L[24],(0,l.useEffect)(y,b),L[25]!==Z?(j=()=>{if(!Z)return;let e=null,t=()=>{e=window.requestAnimationFrame(()=>{let e=Y.current?.getBoundingClientRect().width,t=V.current?.querySelector("[data-message]");if(!e||!t)return void H(!1);let s=t.getBoundingClientRect().width,a=s>e;H(a),a&&K(Math.max(20,Math.round(s/35)))})};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),null!==e&&window.cancelAnimationFrame(e)}},L[25]=Z,L[26]=j):j=L[26],L[27]!==s||L[28]!==Z||L[29]!==B?(v=[Z,s,B],L[27]=s,L[28]=Z,L[29]=B,L[30]=v):v=L[30],(0,l.useEffect)(j,v),!es||!et||!Z)return null;let en=`inline-flex whitespace-nowrap ${G?"animate-ticker":""}`;return L[31]!==J||L[32]!==G?(w=G?{animationDuration:`${J}s`}:{},L[31]=J,L[32]=G,L[33]=w):w=L[33],L[34]!==B?(N=B??(0,a.jsx)(m.Trans,{i18nKey:"tournaments.notificationMTSMigrationText",components:{a:(0,a.jsx)(r.ArianaLink,{href:O,className:"underline text-primary-70"})}}),L[34]=B,L[35]=N):N=L[35],L[36]!==N?(k=(0,a.jsx)("span",{"data-message":!0,className:"text-sm md:text-md pe-4xl",children:N}),L[36]=N,L[37]=k):k=L[37],L[38]!==B||L[39]!==G?(I=G?(0,a.jsx)("span",{"aria-hidden":"true",className:"text-sm md:text-md pe-4xl",children:B??(0,a.jsx)(m.Trans,{i18nKey:"tournaments.notificationMTSMigrationText",components:{a:(0,a.jsx)(r.ArianaLink,{href:O,className:"underline text-primary-70"})}})}):null,L[38]=B,L[39]=G,L[40]=I):I=L[40],L[41]!==en||L[42]!==w||L[43]!==k||L[44]!==I?(P=(0,a.jsxs)("div",{ref:V,className:en,style:w,children:[k,I]}),L[41]=en,L[42]=w,L[43]=k,L[44]=I,L[45]=P):P=L[45],L[46]!==Q?(z=(0,a.jsx)("div",{className:"sr-only",role:"status","aria-live":"polite",children:Q}),L[46]=Q,L[47]=z):z=L[47],L[48]!==P||L[49]!==z?(S=(0,a.jsxs)("div",{className:"flex-1 overflow-hidden pe-xl",ref:Y,children:[P,z]}),L[48]=P,L[49]=z,L[50]=S):S=L[50],L[51]===Symbol.for("react.memo_cache_sentinel")?(_=(0,a.jsx)(r.Icon,{name:"icons-corg-font/close-tiny",size:14,"data-sentry-element":"Icon","data-sentry-source-file":"PragmaticPlaysUpdateNotification.tsx"}),L[51]=_):_=L[51],L[52]!==ea?(T=(0,a.jsx)(r.Button,{size:"small",intent:"link",onClick:ea,"aria-label":"Close notification",className:"shrink-0 text-neutral-grey-100","data-sentry-element":"Button","data-sentry-source-file":"PragmaticPlaysUpdateNotification.tsx",children:_}),L[52]=ea,L[53]=T):T=L[53],L[54]!==S||L[55]!==T?(C=(0,a.jsx)("div",{className:"w-full bg-bg-light text-neutral-grey-100","data-sentry-component":"PragmaticPlaysUpdateNotification","data-sentry-source-file":"PragmaticPlaysUpdateNotification.tsx",children:(0,a.jsxs)(r.Container,{className:"flex items-center justify-between h-12","data-sentry-element":"Container","data-sentry-source-file":"PragmaticPlaysUpdateNotification.tsx",children:[S,T]})}),L[54]=S,L[55]=T,L[56]=C):C=L[56],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.