1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0cd7d-9bfb-77c1-97a7-c60f04cae0de")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66158],{4463:(e,t,a)=>{"use strict";a.d(t,{l:()=>r});let r="/app-api"},38112:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>V,default:()=>H});var r,n,c=a(37876),i=a(89099),o=a(14232),l=a(64357),s=a(61932),u=a(69241),d=a(59250),m=a(75784),x=a(31753),h=a(32277),p=a(75839),f=a(44529),g=a(4463),v=a(88969);function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let b=function(e){return o.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:360,height:700,fill:"none"},e),r||(r=o.createElement("defs",null,o.createElement("clipPath",{id:"racket_svg__a"},o.createElement("ellipse",{cx:180,cy:172,rx:112,ry:142})))),n||(n=o.createElement("g",{stroke:"#fff"},o.createElement("ellipse",{cx:180,cy:172,strokeOpacity:.1,strokeWidth:9,rx:126,ry:156}),o.createElement("ellipse",{cx:180,cy:172,strokeOpacity:.08,strokeWidth:3,rx:112,ry:142}),o.createElement("g",{strokeOpacity:.06,strokeWidth:2.4,clipPath:"url(#racket_svg__a)"},o.createElement("path",{d:"M80 20v310M110 20v310M140 20v310M170 20v310M200 20v310M230 20v310M260 20v310M60 72h240M60 107h240M60 142h240M60 177h240M60 212h240M60 247h240"})),o.createElement("path",{strokeLinecap:"round",strokeOpacity:.1,strokeWidth:8,d:"m150 310 16 42m44-42-16 42"}),o.createElement("rect",{width:28,height:320,x:166,y:348,strokeOpacity:.1,strokeWidth:8,rx:14}))))},y=e=>{let{className:t}=e;return(0,c.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:t,"aria-hidden":"true",focusable:"false",children:[(0,c.jsx)("ellipse",{cx:"9",cy:"9",rx:"6.2",ry:"7",stroke:"currentColor",strokeWidth:"1.6"}),(0,c.jsx)("path",{d:"M4.4 6.2h9.2M4.4 9h9.2M4.4 11.8h9.2M6.6 3.2v11.6M9 2.7v12.6M11.4 3.2v11.6",stroke:"currentColor",strokeWidth:"0.9",opacity:"0.75"}),(0,c.jsx)("path",{d:"m13.2 13.4 3.1 3.1c.9.9.9 2.3 0 3.2-.9.9-2.3.9-3.2 0l-3.1-3.1",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]})},j=[300,500,700],k=[{outcome:"none",weight:35},{outcome:"win100",weight:30},{outcome:"prize",weight:20},{outcome:"freebet",weight:15}],C=[{kind:"cash",amount:50},{kind:"cash",amount:100},{kind:"cash",amount:150},{kind:"cash",amount:200},{kind:"freebet",amount:300},{kind:"freebet",amount:500},{kind:"freebet",amount:700}],N=e=>e[Math.floor(Math.random()*e.length)],M=(e,t)=>{let a=t?C.filter(e=>!((e,t)=>e.kind===t.kind&&e.amount===t.amount)(e,t)):C,r=[],n=new Map;for(;r.length<e;){var c;let e=N(a),t="".concat(e.kind,"-").concat(e.amount),i=null!=(c=n.get(t))?c:0;i>=2||(n.set(t,i+1),r.push(e))}return r},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=>{if(e&&"random"!==e)return e;let t=Math.random()*k.reduce((e,t)=>e+t.weight,0);for(let e of k)if((t-=e.weight)<=0)return e.outcome;return"none"})(e.outcome);if("none"===t)return{tiles:M(6,null),isWin:!1,winningIndices:[]};let a=((e,t)=>{var a,r,n;switch(e){case"win100":return{kind:"cash",amount:null!=(a=t.prize)?a:100};case"prize":let c;return{kind:"cash",amount:null!=(r=t.prize)?r:10*(Math.floor(Math.random()*(20-(c=5)+1))+c)};case"freebet":return{kind:"freebet",amount:null!=(n=t.freebet)?n:N(j)}}})(t,e),r=[...Array.from({length:3},()=>({...a})),...M(3,a)],n=(e=>{let t=[...e];for(let e=t.length-1;e>0;e-=1){let a=Math.floor(Math.random()*(e+1));[t[e],t[a]]=[t[a],t[e]]}return t})(r.map((e,t)=>t)),c=n.map(e=>r[e]),i=n.reduce((e,t,a)=>(t<3&&e.push(a),e),[]);return{tiles:c,isWin:!0,rewardType:a.kind,rewardAmount:a.amount,winningIndices:i}},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return"".concat(t).concat(e.toLocaleString("en-US"))},A=["#F5C26B","#DD8318","#DFFD51","#FFF0C8","#8D52DA"],R=e=>{let{className:t}=e,a=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=a.current;if(!e)return;let t=e.getContext("2d");if(!t)return;let{width:r,height:n}=e.getBoundingClientRect();e.width=r,e.height=n;let c=r/2,i=.32*n,o=Array.from({length:90},()=>{let e=Math.random()*Math.PI*2,t=3+6*Math.random();return{x:c,y:i,vx:Math.cos(e)*t,vy:Math.sin(e)*t-2,rotation:Math.random()*Math.PI,vr:(Math.random()-.5)*.3,size:5+6*Math.random(),color:A[Math.floor(Math.random()*A.length)]}}),l=performance.now(),s=0,u=a=>{let r=a-l,n=r/1800;
1t.clearRect(0,0,e.width,e.height),o.forEach(e=>{e.vy+=.12,e.x+=e.vx,e.y+=e.vy,e.rotation+=e.vr,t.save(),t.globalAlpha=Math.max(0,1-n),t.translate(e.x,e.y),t.rotate(e.rotation),t.fillStyle=e.color,t.fillRect(-e.size/2,-e.size/2,e.size,.6*e.size),t.restore()}),r<1800?s=requestAnimationFrame(u):t.clearRect(0,0,e.width,e.height)};return s=requestAnimationFrame(u),()=>cancelAnimationFrame(s)},[]),(0,c.jsx)("canvas",{ref:a,className:t,"aria-hidden":"true"})},E=[[0,"#6e4310"],[.2,"#c7821f"],[.45,"#f3c66e"],[.6,"#fff0c8"],[.8,"#efba53"],[1,"#7a4a12"]],P=e=>{let{symbol:t,currency:a,forceRevealed:r,isWinningHighlight:n,disabled:i,onReveal:l,onScratch:s,onRevealSound:m}=e,{t:h}=(0,x.Bd)("common"),p=(0,o.useRef)(null),f=(0,o.useRef)(null),g=(0,o.useRef)(!1),v=(0,o.useRef)(!1),w=(0,o.useRef)(0),[b,j]=(0,o.useState)(!1),k=(0,o.useCallback)(()=>{v.current||(v.current=!0,j(!0),m(),l())},[l,m]),C=(0,o.useCallback)(()=>{let e=p.current;if(!e)return;let t=e.getContext("2d");null==t||t.clearRect(0,0,e.width,e.height)},[]),N=(0,o.useCallback)(()=>{let e=p.current,t=f.current;if(!e||!t)return;let{width:a,height:r}=t.getBoundingClientRect();a&&r&&(e.width=Math.round(a),e.height=Math.round(r),v.current?C():(e=>{let t=e.getContext("2d");if(!t)return;let{width:a,height:r}=e,n=t.createLinearGradient(0,0,a,r);E.forEach(e=>{let[t,a]=e;return n.addColorStop(t,a)}),t.globalCompositeOperation="source-over",t.fillStyle=n,t.fillRect(0,0,a,r),t.save(),t.translate(a/2,r/2),t.rotate(-Math.PI/4),t.fillStyle="rgba(255, 255, 255, 0.22)",t.font="700 ".concat(Math.round(.13*a),"px Inter, sans-serif"),t.textAlign="center",t.textBaseline="middle",t.fillText("SCRATCH",0,0),t.restore()})(e))},[C]);(0,o.useEffect)(()=>{N();let e=f.current;if(!e||"undefined"==typeof ResizeObserver)return;let t=new ResizeObserver(()=>N());return t.observe(e),()=>t.disconnect()},[N]),(0,o.useEffect)(()=>{r&&!v.current&&(C(),k())},[r,C,k]);let M=(0,o.useCallback)((e,t)=>{let a=p.current;if(!a||v.current)return;let r=a.getContext("2d");if(!r)return;let n=a.getBoundingClientRect(),c=(e-n.left)/n.width*a.width,i=(t-n.top)/n.height*a.height,o=.18*a.width;r.globalCompositeOperation="destination-out",r.beginPath(),r.arc(c,i,o,0,2*Math.PI),r.fill(),s();let l=Date.now();!(l-w.current<120)&&(w.current=l,(e=>{let t=e.getContext("2d");if(!t)return 0;let{width:a,height:r}=e;if(!a||!r)return 0;let{data:n}=t.getImageData(0,0,a,r),c=0,i=0;for(let e=3;e<n.length;e+=64)i+=1,0===n[e]&&(c+=1);return i?c/i:0})(a)>=.45&&(C(),k()))},[C,s,k]),_=(0,o.useCallback)(e=>{i||v.current||(g.current=!0,e.currentTarget.setPointerCapture(e.pointerId),M(e.clientX,e.clientY))},[i,M]),A=(0,o.useCallback)(e=>{g.current&&M(e.clientX,e.clientY)},[M]),R=(0,o.useCallback)(()=>{g.current=!1},[]),P="freebet"===t.kind,z=S(t.amount,a);return(0,c.jsxs)("div",{ref:f,className:(0,u.A)("relative w-full overflow-hidden rounded-[15px]","bg-gradient-to-br from-[#241b2c] to-[#171320]","ring-1 ring-inset transition-shadow duration-300",n?"ring-2 ring-[color:var(--acc-main)] shadow-[0_0_18px_rgba(245,194,107,0.45)]":"ring-white/5"),children:[(0,c.jsx)("div",{"aria-hidden":"true",className:"block w-full pt-[100%]"}),(0,c.jsxs)(d.P.div,{className:"absolute inset-0 flex flex-col items-center justify-center gap-0.5 px-1 text-center",initial:!1,animate:b?{scale:[.7,1.12,1],opacity:1}:{scale:1,opacity:1},transition:{duration:.45,ease:"easeOut"},children:[P&&(0,c.jsx)(y,{className:"h-[17px] w-[17px] text-[color:var(--acc-main)]"}),(0,c.jsx)("span",{className:(0,u.A)("font-inter font-extrabold text-[color:var(--acc-main)]","text-[clamp(16px,5vw,26px)] leading-none","[text-shadow:0_0_12px_rgba(245,194,107,0.55)]"),children:z}),P&&(0,c.jsx)("span",{className:"font-inter text-[8px] font-bold uppercase tracking-wide text-[color:var(--acc-main)]/85",children:h("common.scratchcard.freeBetLabel")})]}),(0,c.jsx)("canvas",{ref:p,onPointerDown:_,onPointerMove:A,onPointerUp:R,onPointerLeave:R,onPointerCancel:R,className:(0,u.A)("absolute inset-0 h-full w-full touch-none transition-opacity duration-[350ms]",b?"pointer-events-none opacity-0":"cursor-pointer opacity-100")})]})},z={gold:{"--acc-main":"#F5C26B","--acc-glow":"#DD8318","--acc-deep":"#7a4a12"},diamond:{"--acc-main":"#9FF0F4","--acc-glow":"#00D5DB","--acc-deep":"#0c4b4d"},royal:{"--acc-main":"#D7B8FF","--acc-glow":"#8D52DA","--acc-deep":"#3a2358"}},F=e=>{let{managerName:t,currency:a,accent:r,config:n,onClose:i}=e,{t:l}=(0,x.Bd)("common"),[w,j]=(0,o.useState)(0),[k,C]=(0,o.useState)(null),[N,M]=(0,o.useState)(!0),[A,E]=(0,o.useState)(!1),[F,T]=(0,o.useState)(0),[O,D]=(0,o.useState)(!1),[B,W]=(0,o.useState)("playing"),[q,I]=(0,o.useState)(!1),[L,V]=(0,o.useState)(!1),{unlock:H,playScratch:$,playReveal:X,playWin:G,playLose:Q,playClaim:U}=(e=>{let t=(0,o.useRef)(null),a=(0,o.useRef)(0),r=(0,o.useCallback)(()=>
1{if(!t.current){var e;let a=null!=(e=window.AudioContext)?e:window.webkitAudioContext;if(!a)return null;t.current=new a}return"suspended"===t.current.state&&t.current.resume(),t.current},[]),n=(0,o.useCallback)(function(t,a){let{type:n="sine",gain:c=.05,startAt:i=0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return;let o=r();if(!o)return;let l=o.currentTime+i,s=o.createOscillator(),u=o.createGain();s.type=n,s.frequency.setValueAtTime(t,l),u.gain.setValueAtTime(1e-4,l),u.gain.exponentialRampToValueAtTime(c,l+.01),u.gain.exponentialRampToValueAtTime(1e-4,l+a),s.connect(u),u.connect(o.destination),s.start(l),s.stop(l+a+.02)},[r,e]),c=(0,o.useCallback)(()=>{r()},[r]),i=(0,o.useCallback)(()=>{let e=Date.now();e-a.current<55||(a.current=e,n(120+60*Math.random(),.04,{type:"triangle",gain:.02}))},[n]),l=(0,o.useCallback)(()=>{n(660,.09,{type:"triangle",gain:.05})},[n]),s=(0,o.useCallback)(()=>{[523.25,659.25,783.99,1046.5].forEach((e,t)=>{n(e,.28,{type:"triangle",gain:.07,startAt:.12*t})})},[n]),u=(0,o.useCallback)(()=>{n(392,.28,{type:"sine",gain:.05}),n(293.66,.34,{type:"sine",gain:.05,startAt:.16})},[n]),d=(0,o.useCallback)(()=>{n(659.25,.16,{type:"sine",gain:.06}),n(987.77,.22,{type:"sine",gain:.06,startAt:.1})},[n]);return(0,o.useEffect)(()=>()=>{var e;null==(e=t.current)||e.close(),t.current=null},[]),{unlock:c,playScratch:i,playReveal:l,playWin:s,playLose:u,playClaim:d}})(L),Y=(0,o.useCallback)(async()=>{M(!0),E(!1);let e=new URLSearchParams;n.outcome&&e.set("outcome",n.outcome),void 0!==n.prize&&e.set("prize",String(n.prize)),void 0!==n.freebet&&e.set("freebet",String(n.freebet));let t=e.toString();try{let e=await fetch("".concat(g.l,"/scratch").concat(t?"?".concat(t):""));if(!e.ok)throw Error("Request failed with status ".concat(e.status));let a=await e.json();C(_((e=>"win"!==e.result?{outcome:"none"}:"freebet"===e.rewardType?{outcome:"freebet",freebet:e.amount}:{outcome:"prize",prize:e.amount})(a)))}catch(e){v.v.error("[Scratchcard] Failed to load card:",e),E(!0)}finally{M(!1)}},[n]);(0,o.useEffect)(()=>{Y()},[Y]);let J=(0,o.useMemo)(()=>z[r],[r]),K=(0,o.useCallback)(()=>{T(e=>e+1)},[]),Z=(0,o.useCallback)(()=>{T(0),D(!1),W("playing"),I(!1),j(e=>e+1),Y()},[Y]),ee=(0,o.useCallback)(()=>{H(),D(!0)},[H]),et=(0,o.useCallback)(()=>{I(!0),U()},[U]),ea=(0,o.useCallback)(()=>{V(e=>{let t=!e;return t||H(),t})},[H]);(0,o.useEffect)(()=>{if(!k||"playing"!==B||F<6)return;let e=setTimeout(()=>{k.isWin?(W("win"),G()):(W("lose"),Q())},450);return()=>clearTimeout(e)},[k,B,F,G,Q]);let er=(null==k?void 0:k.rewardAmount)!==void 0?S(k.rewardAmount,a):"",en=(null==k?void 0:k.rewardType)==="freebet",ec="win"===B;return(0,c.jsx)("div",{style:J,className:(0,u.A)("relative isolate w-full overflow-hidden rounded-[32px] p-1","bg-gradient-to-b from-[#241733] via-[#191320] to-[#120f18]","shadow-[0_30px_80px_-20px_rgba(0,0,0,0.8)]","ring-1 ring-white/10"),children:(0,c.jsxs)("div",{className:"relative overflow-hidden rounded-[30px] px-5 pb-6 pt-5 sm:px-7 sm:pb-8",children:[(0,c.jsx)(b,{className:"pointer-events-none absolute right-0 top-1/2 h-[115%] w-auto -translate-y-1/2"}),(0,c.jsxs)("div",{className:"relative flex items-center justify-between",children:[(0,c.jsx)(f.g,{variant:f.t.Core,colorClassName:"text-white",sizeClassName:"w-[120px]",className:"opacity-90"}),(0,c.jsx)("button",{type:"button",onClick:ea,className:"rounded-full border border-white/15 px-3 py-1 font-inter text-[11px] font-semibold text-on-surface-2 transition-colors hover:border-white/30 hover:text-on-surface-1","aria-label":"Toggle sound",children:l(L?"common.scratchcard.soundOff":"common.scratchcard.soundOn")})]}),(0,c.jsxs)("div",{className:"relative mt-5 text-center",children:[(0,c.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,c.jsx)(d.P.span,{"aria-hidden":"true",className:"h-[7px] w-[7px] rotate-45 bg-[color:var(--acc-main)]",animate:{y:[0,-3,0]},transition:{duration:2.4,repeat:1/0,ease:"easeInOut"}}),(0,c.jsx)("span",{className:"font-inter text-[11px] font-bold uppercase tracking-[0.22em] text-[color:var(--acc-main)]",children:l("common.scratchcard.kicker")}),(0,c.jsx)(d.P.span,{"aria-hidden":"true",className:"h-[7px] w-[7px] rotate-45 bg-[color:var(--acc-main)]",animate:{y:[0,-3,0]},transition:{duration:2.4,repeat:1/0,ease:"easeInOut",delay:.6}})]}),(0,c.jsx)("h1",{className:"mt-2 font-midnight text-[clamp(32px,8.5vw,46px)] font-extrabold uppercase leading-[0.95] text-on-surface-1",children:l("common.scratchcard.title")}),(0,c.jsx)("p",{className:"mx-auto mt-2 max-w-[360px] font-inter text-[13px] leading-snug text-on-surface-3",children:l("common.scratchcard.subtitle")})]}),A?(0,c.jsxs)("div",{className:"relative mt-5 flex min-h-[220px] flex-col items-center justify-center gap-4 text-center",children:[(0,c.jsx)("p",{className:"font-inter text-[13px] leading-snug text-on-surface-2",children:l("common.descriptions.errorBoundaryDescription")}),(0,c.jsx)("div",{className:"w-full max-w-[200px]",children:(0,c.jsx)(h.$n,{type:h.VQ.Secondary,size:h.Mp.M,onClick:()=>void Y(),text:l("sports.error.retry")})})]}):N||!k?(0,c.jsx)("div",{className:"relative mt-5 flex min-h-[220px] flex-col items-center justify-center gap-3",children:(0,c.jsx)(s.a,{})}):(0,c.jsx)("div",{className:"relative mt-5 grid grid-cols-3 gap-3",children:k.tiles.map((e,t)=>(0,c.jsx)(P,{symbol:e,currency:a,forceRevealed:O,isWinningHighlight:ec&&k.winningIndices.includes(t),disabled:"playing"!==B,onReveal:K,onScratch:$,onRevealSound:X},"".concat(w,"-").concat(t)))},w),(0,c.jsxs)("div",{className:"relative mt-4 flex items-center justify-between",children:[(0,c.jsx)("span",{className:"font-inter text-[12px] text-on-surface-3",children:l("common.scratchcard.scratchToPlay")}),(0,c.jsx)("button",{type:"button",onClick:ee,disabled:!k||O||"playing"!==B,className:"font-inter text-[12px] font-semibold text-[color:var(--acc-main)] transition-opacity hover:opacity-80 disabled:opacity-40",children:l("common.scratchcard.revealAll")})]}),(0,c.jsx)(m.N,{children:"playing"!==B&&(0,c.jsxs)(d.P.div,{initial:{opacity:0,scale:.96}
1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.45,ease:"easeOut"},className:"absolute inset-0 z-20 flex flex-col items-center justify-center rounded-[30px] bg-black/75 px-6 text-center backdrop-blur-md",children:["win"===B&&(0,c.jsx)(R,{className:"pointer-events-none absolute inset-0 h-full w-full"}),"win"===B?(0,c.jsxs)("div",{className:"relative flex flex-col items-center",children:[(0,c.jsx)("span",{className:"font-inter text-[12px] font-bold uppercase tracking-[0.22em] text-[color:var(--acc-main)]",children:l(en?"common.scratchcard.riskFreeBet":"common.scratchcard.winner")}),(0,c.jsx)(d.P.span,{className:"font-midnight text-[clamp(56px,17vw,92px)] font-extrabold leading-none text-[color:var(--acc-main)] [text-shadow:0_0_28px_var(--acc-glow)]",animate:{textShadow:["0 0 22px var(--acc-glow)","0 0 40px var(--acc-glow)","0 0 22px var(--acc-glow)"]},transition:{duration:2,repeat:1/0},children:er}),en&&(0,c.jsxs)("span",{className:"mt-2 inline-flex items-center gap-1.5 rounded-full border border-[color:var(--acc-main)]/50 px-3 py-1 font-inter text-[12px] font-semibold text-[color:var(--acc-main)]",children:[(0,c.jsx)(y,{className:"h-3.5 w-3.5"}),l("common.scratchcard.riskFreeBetPill")]}),(0,c.jsx)("p",{className:"mx-auto mt-3 max-w-[320px] font-inter text-[13px] leading-snug text-on-surface-2",children:en?l("common.scratchcard.winFreebetCopy",{amount:er}):l("common.scratchcard.winCashCopy")}),q?(0,c.jsxs)("div",{className:"mt-5 flex flex-col items-center",children:[(0,c.jsxs)("span",{className:"inline-flex items-center gap-2 font-inter text-[15px] font-semibold text-[#55A370]",children:[(0,c.jsx)(p.T,{name:"check-circle",className:"h-5 w-5"}),l("common.scratchcard.claimed")]}),(0,c.jsx)("p",{className:"mx-auto mt-2 max-w-[320px] font-inter text-[13px] leading-snug text-on-surface-3",children:l("common.scratchcard.claimedMessage",{manager:t,reward:en?l("common.scratchcard.rewardFreebet",{amount:er}):er})})]}):(0,c.jsx)("div",{className:"mt-5 w-full max-w-[300px]",children:(0,c.jsx)(h.$n,{type:h.VQ.Primary,size:h.Mp.M,onClick:et,text:l(en?"common.scratchcard.claimFreebet":"common.scratchcard.claimCash",{amount:er})})}),(0,c.jsx)("button",{type:"button",onClick:Z,className:"mt-4 font-inter text-[12px] font-semibold text-on-surface-3 transition-colors hover:text-on-surface-1",children:l("common.scratchcard.newCard")})]}):(0,c.jsxs)("div",{className:"relative flex flex-col items-center",children:[(0,c.jsx)("span",{className:"font-inter text-[12px] font-bold uppercase tracking-[0.22em] text-on-surface-3",children:l("common.scratchcard.noMatch")}),(0,c.jsx)("h2",{className:"mt-1 font-midnight text-[clamp(40px,12vw,64px)] font-extrabold uppercase leading-[0.95] text-on-surface-1",children:l("common.scratchcard.notThisTime")}),(0,c.jsx)("p",{className:"mx-auto mt-3 max-w-[320px] font-inter text-[13px] leading-snug text-on-surface-2",children:l("common.scratchcard.loseCopy")}),(0,c.jsx)("div",{className:"mt-5 w-full max-w-[220px]",children:(0,c.jsx)(h.$n,{type:h.VQ.Tertiary,size:h.Mp.M,onClick:i,text:l("common.scratchcard.close")})}),(0,c.jsx)("button",{type:"button",onClick:Z,className:"mt-4 font-inter text-[12px] font-semibold text-on-surface-3 transition-colors hover:text-on-surface-1",children:l("common.scratchcard.newCard")})]})]},B)})]})})};var T=a(22866),O=a(54692),D=a(56622);let B=["gold","diamond","royal"],W=["win100","prize","freebet","none","random"],q=e=>Array.isArray(e)?e[0]:e,I=e=>{if(void 0===e)return;let t=Number(e);return Number.isFinite(t)?t:void 0},L=()=>{let e=(0,i.useRouter)(),t=(0,D.H1)(e=>e.isLoaded),a=(0,D.H1)(e=>e.showScratchCard);(0,o.useEffect)(()=>{t&&!a&&e.replace("/")},[t,a,e]);let{managerName:r,currency:n,accent:l,config:u}=(0,o.useMemo)(()=>{var t,a;let r=q(e.query.accent),n=q(e.query.outcome);return{managerName:null!=(t=q(e.query.manager))?t:"Kevin",currency:null!=(a=q(e.query.currency))?a:"$",accent:r&&B.includes(r)?r:"gold",config:{outcome:n&&W.includes(n)?n:void 0,prize:I(q(e.query.prize)),freebet:I(q(e.query.freebet))}}},[e.query]);return e.isReady&&t&&a?(0,c.jsx)("div",{className:"flex min-h-[70vh] w-full items-center justify-center px-3 py-6",children:(0,c.jsx)("div",{className:"w-full max-w-[500px]",children:(0,c.jsx)(F,{managerName:r,currency:n,accent:l,config:u,onClose:()=>void e.push("/")})})}):(0,c.jsx)(s.a,{})};L.getLayout=function(e){return(0,c.jsxs)(O.y,{children:[(0,c.jsx)(l.t,{}),(0,c.jsx)(T.H,{isSSR:!0,children:e})]})};var V=!0;let H=L},49008:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/scratch",function(){return a(38112)}])},64357:(e,t,a)=>{"use strict";a.d(t,{t:()=>s});var r=a(37876),n=a(77328),c=a.n(n),i=a(89099),o=a(31753),l=a(34438);let s=()=>{let{t:e}=(0,o.Bd)(["common"]),{asPath:t}=(0,i.useRouter)(),a=t.split("?")[0],n=(0,l.J)({includeBasePath:!0,includeLocale:!0}),s="".concat(n).concat(a);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(c(),{children:[(0,r.jsx)("title",{children:e("common.application.sitemap.pages.common.root.title",{brand:"Cloudbet"})}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1,user-scalable=0"}),(0,r.jsx)("meta",{name:"description",content:e("common.application.sitemap.pages.common.root.description",{brand:"Cloudbet",year:"2013",bonus:"5"})},"description"),(0,r.jsx)("link",{rel:"canonical",href:s},"canonical")]})})}}},e=>{e.O(0,[22325,82712,6694,86324,31438,86062,41790,33509,68870,83762,31048,67376,73620,23273,42078,54692,5914,51406,91317,89308,8998,54175,95809,485,90636,46593,38792],()=>e(e.s=49008)),_N_E=e.O()}]); 2//# chunkId=01a0cd7d-9bfb-77c1-97a7-c60f04cae0de
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.