1import{u as G,j as T,r as w}from"./index-Xdzx-C5F.js";import{P as f,G as M}from"./GameModal-YU_zLKtR.js";import{G as p,a as b,o as A,w as R,c as y,b as S,d as F,p as v,s as D,e as z,f as U,g as _,h as Y,i as H,j as V,k as N,l as I,r as P}from"./background-clam-XCL8iUd1.js";import{d as j,g as W,c as Q,a as X,b as $}from"./RewardScreen-DMuKGAC2.js";const K={size:{width:p,height:b},theme:{background:"#052849",deep:"#062f58",darker:"#031a31",panel:"#0a4f86",panelDark:"#07345f",gold:"#f6cf68",goldLight:"#fff0a8",text:"#fff8d7",blueText:"#dcf8ff",headerText:"#fff3ba",headerStroke:"#155f83",headerGlow:"#7eefff"},background:{texture:"background",tintAlpha:.38,glowAlpha:.11},assets:{images:{background:A,welcomeLogo:R,rewardLogo:y,clamClosed:S,clamOpen:y,loadingIcon:F,playIcon:v,seaweed:D,starfish:z,"ocean-bg":A,"clam-closed":S,"clam-open":y,"coin-shell":F,"play-icon":v}},layout:{boardX:10,boardY:143,boardW:370,boardH:532},header:{title:"LUCKY CLAM",remainingLabel:"CLAMS LEFT",soundButtonSize:32},welcome:{logoTexture:"welcomeLogo",logoScale:.3,kicker:"OCEAN BONUS",title:"LUCKY CLAM",subtitle:`Pick one clam and reveal 2the hidden prize inside.`,buttons:{width:190,height:34,radius:10,gap:10,fontSize:12,start:{text:"START NOW",fill:"#ffbd36",border:"#fff0a8",textColor:"#06182d",iconTexture:"playIcon",iconSize:20},later:{text:"LATER",fill:"#23384b",border:"#8aa3b8",textColor:"#ffffff"}},buttonIconTexture:"playIcon",buttonFill:"#ffbd36",buttonTextColor:"#06182d",buttonIconSize:20,showRays:!0,frameGlowColor:"#7eefff",frameGlowAlpha:.16,frameGoldAlpha:.38,panelHighlightAlpha:.09,panelInnerGlowAlpha:.05,panelShineAlpha:.1,logoHaloAlpha:.12,logoRingAlpha:.44,logoRingGlowAlpha:.1,burstAlpha:.68,burstAltColor:"#8ff2ff",sparkleColor:"#fff0a8",sparkleAltColor:"#8ff2ff",sparkleAlpha:.9,buttonGlowAlpha:.18,buttonShineAlpha:.18},game:{itemCount:15,columns:3,closedTexture:"clamClosed",openTexture:"clamOpen",itemScale:.23,position:{startXOffset:60,startYOffset:101,columnGap:125,maxRowGap:90,bottomPadding:160}},loading:{iconTexture:"loadingIcon",iconScale:.18,text:"Checking reward..."},reward:{logoTexture:"rewardLogo",logoMaxWidth:78,logoMaxHeight:78,title:"REWARD REVEALED",rarity:"CASH BONUS",prizeName:"Bonus Credit",subtitle:"Your hidden prize has been revealed.",claimButtonText:"CLAIM",amountPrefix:"WIN RM",backdropColor:"#03162c",backdropAlpha:.62,cardHeight:430,cardY:-232,titleY:-196,rarityY:-196,logoY:-82,winLabelY:-170,prizeBarY:6,amountPanelY:45,amountY:81,subtitleY:130,claimY:170,cardFill:"#9ed5f7",cardAlpha:.22,cardBorder:"#a8edff",cardBorderAlpha:.8,cardHighlightFill:"#ffffff",cardHighlightAlpha:.11,cardTopShineAlpha:.08,frameGlowColor:"#7eefff",frameOuterGlowAlpha:.16,frameGoldAlpha:.42,shineAlpha:.18,amountPanelFill:"#031b34",amountPanelAlpha:.48,amountPanelGlowAlpha:.08,rarityFill:"#e2f4ff",rarityTextColor:"#06182d",winLabel:"Congratulations!",winLabelFill:"#ffcf5a",winLabelAlp
2ha:.22,winLabelBorderAlpha:.58,winLabelColor:"#fff8d7",winLabelStroke:"#8c5a00",winLabelGlow:"#ffd86d",raysColor:"#eef7ca",raysAlpha:.34,glowColor:"#8fe6ff",glowAlpha:.24,iconHaloAlpha:.12,burstColor:"#ffe66d",burstAltColor:"#7ef2ff",burstAlpha:.8,sparkleColor:"#fff0a8",sparkleAltColor:"#9ff6ff",sparkleAlpha:.95,iconCircleFill:"#f3fbff",iconColor:"#062844",prizeBarFill:"#123d63",prizeBarBorder:"#9adfff",prizeBarAccent:"#ffdf72",amountColor:"#ffffff",amountStroke:"#426684",amountGlow:"#d6f4ff",subtitleColor:"#f4fbff",subtitleStroke:"#133957",claimButtonFill:"#ffa425",claimButtonBorder:"#fff0a8",claimTextColor:"#06182d",claimIconColor:"#062844"},decorations:[{x:36,y:184,texture:"rewardLogo",scale:.18,alpha:.72},{x:348,y:188,texture:"rewardLogo",scale:.2,alpha:.72},{x:66,y:625,texture:"seaweed",scale:.2,alpha:.55},{x:326,y:620,texture:"seaweed",scale:.2,alpha:.5},{x:54,y:465,texture:"starfish",scale:.14,alpha:.58},{x:334,y:482,texture:"starfish",scale:.14,alpha:.54}]},B=(e,t)=>{const a=Number(e);return Number.isFinite(a)&&a>0?a:t},q=e=>!e||typeof e!="object"||Array.isArray(e)?e:Object.entries(e).reduce((t,[a,o])=>{if(o==null||o==="")return t;const r=q(o);return r&&typeof r=="object"&&!Array.isArray(r)&&Object.keys(r).length===0||(t[a]=r),t},{}),Z=e=>{var t,a,o,r,l,d,s,n,i,u;return q({background:{texture:e.backgroundTexture??((t=e.background)==null?void 0:t.texture)},welcome:{logoTexture:e.welcomeLogoTexture??((a=e.welcome)==null?void 0:a.logoTexture),buttonIconTexture:e.buttonIconTexture??((o=e.welcome)==null?void 0:o.buttonIconTexture)},game:{closedTexture:e.clamClosedTexture??e.closedTexture??((r=e.game)==null?void 0:r.closedTexture),openTexture:e.clamOpenTexture??e.openTexture??((l=e.game)==null?void 0:l.openTexture)},loading:{iconTexture:e.loadingIconTexture??((d=e.loading)==null?void 0:d.iconTexture),text:e.loadingText??((s=e.loading)==null?void 0:s.text)},reward:{logoTexture:e.rewardLogoTexture??((n=e.reward)==null?void 0:n.logoTexture)},assets:{images:{background:e.backgroundImage??e.backgroundUrl,welcomeLogo:e.welcomeLogoImage??e.welcomeLogo??((i=e.welcome)==null?void 0:i.logoUrl),rewardLogo:e.rewardLogoImage??e.rewardLogo??e.rewardIconImage??((u=e.reward)==null?void 0:u.logoUrl),clamClosed:e.clamClosedImage,clamOpen:e.clamOpenImage,loadingIcon:e.loadingIconImage??e.coinShellImage,playIcon:e.playIconImage??e.buttonIconImage,seaweed:e.seaweedImage,starfish:e.starfishImage,"ocean-bg":e.backgroundImage??e.backgroundUrl,"clam-closed":e.clamClosedImage,"clam-open":e.clamOpenImage,"coin-shell":e.coinShellImage??e.rewardIconImage??e.loadingIconImage,"play-icon":e.playIconImage}}})},x=e=>j(Q(e,K),Z(W(e))),O=e=>{var a,o;const t=x(e);return{width:B((a=t.size)==null?void 0:a.width,p),height:B((o=t.size)==null?void 0:o.height,b)}},J=([e,t])=>{if(!e||!t)return null;if(typeof t=="string")return{key:e,source:t};if(typeof t=="object"){const a=t.source??t.src??t.url;return a?{key:t.key??e,source:a}:null}return null},ee=e=>{var t;return Object.entries(((t=e.assets)==null?void 0:t.images)??{}).map(J).filter(Boolean)},te=(e,t)=>{ee(t).forEach(({key:a,source:o})=>{e.textures.exists(a)||e.load.image(a,o)})},ae=(e,t)=>{var l,d;if(e._rewardClosing||!e.sys.isActive())return;e._rewardClosing=!0;const{width:a,height:o}=e.scale,r=e.add.rectangle(a/2,o/2,a,o,133138,0);r.setDepth(40),(d=(l=e.soundManager)==null?void 0:l.fadeOutSeaAmbience)==null||d.call(l,500,!0),e.tweens.add({targets:t.dimOverlay,alpha:.08,duration:240,ease:"Quad.out"}),e.tweens.add({targets:t.panel,alpha:0,y:"-=18",duration:260,ease:"Quad.in"}),e.tweens.add({targets:r,alpha:1,delay:80,duration:340,ease:"Quad.inOut",onComplete:()=>{r.destroy(),e.destroy(),e.onClose()}})},oe=(e,t)=>{var u,h,m;if(!e.activeClam)return;e._rewardClosing=!1;const{width:a,height:o}=e.scale,r=e.activeClam.x,l=e.activeClam.y,d=X(e.gameUiConfig),s=e.add.rectangle(a/2,o/2,a,o,d.color,0);s.setDepth(18),(u=e.clams)==null||u.forEach(c=>{e.tweens.add({targets:c,alpha:c===e.activeClam?.52:.14,scale:c.scale*(c===e.activeClam?1.06:.92),duration:260,ease:"Quad.out"})}),(h=e.decorations)==null||h.forEach(c=>{e.tweens.add({targets:c,alpha:Math.max(.08,c.alpha*.3),duration:260,ease:"Quad.out"})}),e.tweens.add({targets:[e.topChrome,...e.headerBlinkDots??[],e.statusChrome,e.boardChrome,e.titleText,e.leftCountText,e.soundButton,e.claimedText,e.resetText,e.shellIcon].filter(
2Boolean),alpha:.34,duration:260,ease:"Quad.out"}),e.tweens.add({targets:s,alpha:d.alpha,duration:280,ease:"Quad.out"}),e.activeClam.setDepth(20),e.cameras.main.shake(160,.0028),e.cameras.main.flash(200,210,244,255,!1);const n=e.add.circle(r,l,46,10414335,.38);n.setBlendMode(f.BlendModes.ADD),n.setDepth(21),e.tweens.add({targets:n,scale:4.5,alpha:0,duration:600,ease:"Quad.out",onComplete:()=>n.destroy()});const i=$(e,t,e.gameUiConfig);i.claimZone.on("pointerdown",()=>{ae(e,{dimOverlay:s,panel:i.box})}),e.tweens.add({targets:i.box,alpha:1,scale:1,duration:430,delay:80,ease:"Back.out"}),e.tweens.add({targets:i.rays,angle:24,duration:1500,ease:"Sine.inOut",yoyo:!0,repeat:-1}),e.tweens.add({targets:i.burst,angle:360,duration:8800,ease:"Linear",repeat:-1}),e.tweens.add({targets:[i.glow,i.iconHalo,i.gift],scale:"+=0.04",duration:760,ease:"Sine.inOut",yoyo:!0,repeat:-1}),e.tweens.add({targets:[i.cardGlow,i.winRibbon,i.congratulationLabel],alpha:.68,duration:520,ease:"Sine.inOut",yoyo:!0,repeat:-1}),e.tweens.add({targets:i.shine,x:{from:i.shine.getData("sweepFrom")??-190,to:i.shine.getData("sweepTo")??190},alpha:{from:0,to:.22},duration:1150,delay:280,repeatDelay:820,ease:"Sine.inOut",repeat:-1}),e.tweens.add({targets:i.burstDots,scale:{from:.7,to:1.22},alpha:{from:.32,to:.95},duration:840,ease:"Sine.inOut",yoyo:!0,repeat:-1}),(m=i.sparkles)==null||m.forEach((c,g)=>{e.tweens.add({targets:c,scale:{from:.45,to:1.25},alpha:{from:.18,to:1},angle:c.angle+28,duration:460+g%3*120,delay:g*80,ease:"Sine.inOut",yoyo:!0,repeat:-1})}),e.tweens.add({targets:[i.claimBg,i.claimIcon,i.claimText],alpha:.88,duration:760,ease:"Sine.inOut",yoyo:!0,repeat:-1})},k=typeof globalThis>"u"?new Set:(globalThis.__clamBackgroundTracks||(globalThis.__clamBackgroundTracks=new Set),globalThis.__clamBackgroundTracks),L=(e,t=!1)=>{if(e&&(e.muted=!0,e.volume=0,e.pause(),t))try{e.currentTime=0}catch{}},C=(e=!1)=>{k.forEach(t=>{L(t,e)})};class re{constructor(){this.enabled=!0,this.audioContext=null,this.backgroundTrack=null,this.backgroundVolume=.18,this.backgroundFadeFrame=null}setEnabled(t){var a;if(this.enabled=t,t){this.backgroundTrack&&(this.backgroundTrack.muted=!1,this.backgroundTrack.volume=this.backgroundVolume);return}this.cancelBackgroundFade(),this.stopSeaAmbience(!0),C(!0),(a=this.audioContext)==null||a.close().catch(()=>{}),this.audioContext=null}cancelBackgroundFade(){this.backgroundFadeFrame&&typeof window<"u"&&(window.cancelAnimationFrame(this.backgroundFadeFrame),this.backgroundFadeFrame=null)}ensureBackgroundTrack(){if(this.backgroundTrack||typeof Audio>"u")return;const t=new Audio(U);t.loop=!0,t.preload="auto",t.volume=this.backgroundVolume,t.muted=!this.enabled,this.backgroundTrack=t,k.add(t)}initAudio(){if(this.audioContext||typeof window>"u")return;const t=window.AudioContext||window.webkitAudioContext;t&&(this.audioContext=new t)}async ensureReady(){if(!this.enabled||(this.initAudio(),!this.audioContext))return!1;if(this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")try{await this.audioContext.resume()}catch{return!1}return this.enabled?(this.prime(),this.audioContext.state==="running"):!1}prime(){if(!this.audioContext)return;const t=this.audioContext.createBuffer(1,1,22050),a=this.audioContext.createBufferSource(),o=this.audioContext.createGain();a.buffer=t,o.gain.value=1e-4,a.connect(o),o.connect(this.audioContext.destination),a.start(0)}playTone(t,a,o,r,l=0,d=.12,s={}){if(!this.enabled||!this.audioContext)return;const n=this.audioContext.currentTime+l,i=n+o+d,u=this.audioContext.createOscillator(),h=this.audioContext.createGain(),m=this.audioContext.createBiquadFilter(),{endFrequency:c=t,filterFrequency:g=1800,q:E=.6}=s;u.type=r,u.frequency.setValueAtTime(t,n),u.frequency.exponentialRampToValueAtTime(Math.max(c,1),i),m.type="lowpass",m.frequency.setValueAtTime(g,n),m.Q.setValueAtTime(E,n),h.gain.setValueAtTime(1e-4,n),h.gain.exponentialRampToValueAtTime(a,n+.01),h.gain.exponentialRampToValueAtTime(1e-4,i),u.connect(m),m.connect(h),h.connect(this.audioContext.destination),u.start(n),u.stop(i)}async startSeaAmbience(){if(!this.enabled||(this.ensureBackgroun
2dTrack(),!this.backgroundTrack))return!1;if(this.cancelBackgroundFade(),!this.backgroundTrack.paused)return this.backgroundTrack.muted=!1,this.backgroundTrack.volume=this.backgroundVolume,!0;this.backgroundTrack.muted=!1,this.backgroundTrack.volume=this.backgroundVolume;try{return await this.backgroundTrack.play(),this.enabled?!0:(this.stopSeaAmbience(!0),C(!0),!1)}catch{return!1}}stopSeaAmbience(t=!1){this.cancelBackgroundFade(),this.backgroundTrack&&L(this.backgroundTrack,t)}fadeOutSeaAmbience(t=650,a=!0){if(!this.backgroundTrack)return;if(this.cancelBackgroundFade(),!this.enabled){this.stopSeaAmbience(a),C(a);return}if(this.backgroundTrack.paused){this.stopSeaAmbience(a);return}const o=this.backgroundTrack.volume,r=typeof performance<"u"?performance.now():Date.now(),l=d=>{const s=typeof performance<"u"?d:Date.now(),n=Math.min(1,(s-r)/t),i=1-(1-n)*(1-n);if(this.backgroundTrack.volume=Math.max(0,o*(1-i)),n>=1){this.backgroundFadeFrame=null,this.stopSeaAmbience(a),this.enabled&&this.backgroundTrack&&(this.backgroundTrack.muted=!1,this.backgroundTrack.volume=this.backgroundVolume);return}this.backgroundFadeFrame=window.requestAnimationFrame(l)};this.backgroundFadeFrame=window.requestAnimationFrame(l)}playClamOpen(){this.audioContext&&(this.playTone(220,.18,.05,"triangle",0,.08,{endFrequency:110,filterFrequency:900,q:1.2}),this.playTone(740,.12,.045,"square",.012,.09,{endFrequency:440,filterFrequency:2200,q:.8}),this.playTone(1046.5,.08,.09,"sine",.03,.14,{endFrequency:1567.98,filterFrequency:3200,q:.4}),this.playTone(1318.51,.05,.12,"triangle",.07,.16,{endFrequency:1760,filterFrequency:3600,q:.3}))}playWelcomeFanfare(){this.audioContext&&(this.playTone(96,.32,.18,"sawtooth",0,.18,{endFrequency:54,filterFrequency:700,q:1.4}),this.playTone(196,.2,.22,"triangle",.03,.16,{endFrequency:392,filterFrequency:1600,q:.8}),[523.25,659.25,783.99,1046.5,1318.51].forEach((t,a)=>{const o=.08+a*.055;this.playTone(t,.12,.09,"square",o,.08,{endFrequency:t*1.22,filterFrequency:3800,q:3.2})}),this.playTone(1567.98,.16,.36,"sine",.28,.18,{endFrequency:2093,filterFrequency:5200,q:.5}),[.34,.42,.5,.58].forEach((t,a)=>{this.playTone(1760+a*220,.08,.055,"triangle",t,.05,{endFrequency:2200+a*260,filterFrequency:6200,q:4.5})}))}playRewardBoom(){this.audioContext&&(this.playTone(440,.4,.6,"square",0,.15,{endFrequency:880,filterFrequency:2e3,q:1.5}),this.playTone(659,.3,.6,"triangle",.05,.2,{endFrequency:1318,filterFrequency:3e3,q:2}),this.playTone(1760,.2,.8,"sine",.1,.05,{endFrequency:2200,filterFrequency:5e3,q:.5}),[.15,.25,.35].forEach((t,a)=>{this.playTone(880+a*220,.15,.1,"square",t,.05,{endFrequency:1e3+a*300,filterFrequency:4e3,q:5})}))}destroy(){var t;this.cancelBackgroundFade(),this.stopSeaAmbience(!0),this.backgroundTrack&&(k.delete(this.backgroundTrack),this.backgroundTrack.removeAttribute("src"),this.backgroundTrack.load()),this.backgroundTrack=null,(t=this.audioContext)==null||t.close().catch(()=>{}),this.audioContext=null}}class ie extends f.Scene{constructor(){super("ClaimScene"),this.hasOpened=!1,this.activeClam=null,this.clams=[],this.bobTweens=[],this.loadingTweens=[],this.soundManager=new re,this.welcomeOverlay=null,this._soundEnabled=!0,this.gameUiConfig=x()}init(t){this.handleClaimCTC=t==null?void 0:t.handleClaimCTC,this.onClose=(t==null?void 0:t.onClose)??(()=>{}),this.selectedGamingAnimationData=t==null?void 0:t.selectedGamingAnimationData,this.gameUiConfig=x(this.selectedGamingAnimationData)}preload(){te(this,this.gameUiConfig)}create(){const{width:t,height:a}=this.scale;_(this),Y(this),H(this,t,a,o=>{this.hasOpened||this.openClam(o)}),V(this,t,a),this.startBobAnimation(),this.clams.forEach(o=>o.disableInteractive()),this.showWelcomeMessage(),this.scale.on("resize",this.handleResize,this)}tryStartSeaAmbience(t=!0){this._soundEnabled&&this.soundManager.ensureReady().then(a=>{a&&this._soundEnabled&&(this.soundManager.startSeaAmbience(),t&&this.soundManager.playWelcomeFanfare())}).catch(()=>{})}showWelcomeMessage(){N(this,()=>{this.welcomeOverlay=null,this.clams.forEach(t=>t.setInteractive({useHandCursor:!0}))})}startBobAnimation(){this.bobTweens=this.clams.map((t,a)=>this.tweens.add({targets:t,y:t.y-this.scale.height*.015,duration:1300+a*45,ease:"Sine.inOut",yoyo:!0,repeat:-1}))}openClam(t){this.hasOpened=!0,this.activeClam=t;const a=this.soundManager.ensureReady();
2this.clams.forEach(o=>o.disableInteractive()),this.bobTweens.forEach(o=>o==null?void 0:o.stop()),this.tweens.add({targets:t,scaleX:t.scaleX*1.08,scaleY:t.scaleY*.92,duration:130,yoyo:!0,ease:"Quad.out",onComplete:async()=>{var r,l;t.setTexture(((l=(r=this.gameUiConfig)==null?void 0:r.game)==null?void 0:l.openTexture)??"clamOpen"),a.then(d=>{d&&this._soundEnabled&&(this.soundManager.startSeaAmbience(),this.soundManager.playClamOpen())}).catch(()=>{}),this.tweens.add({targets:t,scaleX:I(this)*1.12,scaleY:I(this)*1.12,duration:180,yoyo:!0,ease:"Back.out"}),this.showLoadingState();const o=await this.handleClaimCTC({clamIndex:t.getData("clam-index")});if(this.sys.isActive()){if(this.hideLoadingState(),!(o!=null&&o.success)){this.showErrorState();return}this.showReward(o.amount??0)}}})}showErrorState(){this.activeClam&&(this.rewardText.setText("Unable to claim bonus"),this.rewardText.setPosition(this.activeClam.x,this.activeClam.y),this.rewardText.setAlpha(1),this.rewardText.setScale(.9),this.time.delayedCall(1600,()=>{this.onClose()}))}showLoadingState(){var o,r;if(!this.activeClam)return;this.hideLoadingState();const t=Math.max(.2,this.scale.width/1700),a=this.activeClam.y;this.coinShell.setPosition(this.activeClam.x,a),this.coinShell.setScale(t),this.coinShell.setAlpha(.85),this.loadingText.setText(((r=(o=this.gameUiConfig)==null?void 0:o.loading)==null?void 0:r.text)??"Checking reward..."),this.loadingText.setPosition(this.activeClam.x,a),this.loadingText.setAlpha(1),this.loadingTweens=[this.tweens.add({targets:this.coinShell,scale:t*1.18,alpha:1,duration:700,ease:"Sine.inOut",yoyo:!0,repeat:-1}),this.tweens.add({targets:this.coinShell,y:a-this.scale.height*.015,duration:850,ease:"Sine.inOut",yoyo:!0,repeat:-1}),this.tweens.add({targets:this.loadingText,alpha:.45,duration:650,ease:"Sine.inOut",yoyo:!0,repeat:-1})]}hideLoadingState(){this.loadingTweens.forEach(t=>t==null?void 0:t.stop()),this.loadingTweens=[],this.loadingText&&this.loadingText.setAlpha(0),this.coinShell&&this.coinShell.setAlpha(0)}showReward(t){this.activeClam&&(this.soundManager.ensureReady().then(a=>{a&&this._soundEnabled&&this.soundManager.playRewardBoom()}).catch(()=>{}),oe(this,t))}handleResize(t){const{width:a,height:o}=t;P(this,a,o)}shutdown(){this.scale.off("resize",this.handleResize,this)}destroy(){var t;this.shutdown(),this.hideLoadingState(),(t=this.welcomeOverlay)==null||t.destroy(!0),this.welcomeOverlay=null,this.soundManager.destroy()}}const ne=(e,t={})=>{const{width:a,height:o}=O(t.selectedGamingAnimationData);return{type:f.AUTO,parent:e,width:a||p,height:o||b,transparent:!0,backgroundColor:"#022b52",scale:{mode:f.Scale.FIT,autoCenter:f.Scale.CENTER_BOTH,width:a||p,height:o||b},scene:ie,callbacks:{preBoot:r=>{r.scene.start("ClaimScene",t)}},physics:{default:"arcade"},render:{antialias:!0,pixelArt:!1},input:{activePointers:3,touch:{capture:!0},mouse:{preventDefaultDown:!0,preventDefaultMove:!0,preventDefaultUp:!0}}}},se=G.div` 3 width: ${({$width:e})=>`min(100%, ${e}px)`}; 4 border-radius: 0; 5 overflow: hidden; 6 background: #041b2b; 7 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); 8 9 canvas { 10 display: block; 11 width: 100% !important; 12 height: auto !important; 13 touch-action: manipulation; 14 } 15`,le=({handleClaimCTC:e,onClose:t,selectedGamingAnimationData:a})=>{const o=w.useRef(null),r=w.useRef(null),{width:l}=O(a);return w.useEffect(()=>{if(!r.current)return;const d=new f.Game(ne(r.current,{handleClaimCTC:e,onClose:t,selectedGamingAnimationData:a})),s=d.canvas,n=i=>{i.preventDefault()};return s.style.touchAction="none",s.style.webkitTapHighlightColor="transparent",s.style.webkitTouchCallout="none",s.style.webkitUserSelect="none",s.style.userSelect="none",s.addEventListener("touchstart",n,{passive:!1}),s.addEventListener("touchmove",n,{passive:!1}),o.current=d,()=>{s.removeEventListener("touchstart",n),s.removeEventListener("touchmove",n),d.destroy(!0),o.current=null}},[]),T.jsx(se,{ref:r,$width:l})},me=({isOpen:e,onClose:t,handleClaimCTC:a,selectedGamingAnimationData:o})=>T.jsx(M,{isOpen:e,children:e&&T.jsx(le,{onClose:t,handleClaimCTC:a,selectedGamingAnimationData:o})});export{me as default};
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.