PageSourceSearch

https://core.app/assets/ConfettiProvider-Dx5XSmB1.js

js core.app collected 2026-10-01 12:19:42 UTC 1,935 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`v1.297.1-d19e27b`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:core-web":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`bc2a225d-d64e-4486-9add-b9db9b804377`,e._sentryDebugIdIdentifier=`sentry-dbid-bc2a225d-d64e-4486-9add-b9db9b804377`)}catch{}})();import{G as e,et as t}from"./chunk-EVOBXE3Y-Doh-rKuW.js";import{t as n}from"./jsx-runtime-ChA2zI2a.js";import{do as r}from"./useCurrentWallet-BZctRcZa.js";import{t as i}from"./react-confetti-B0YPjjBH.js";var a=t(e(),1),o=n(),s=(0,a.createContext)(void 0),c=6e3,l=()=>{let[e,t]=(0,a.useState)({width:0,height:0});return(0,a.useEffect)(()=>{if(!r())return;let e=()=>t({width:window.innerWidth,height:window.innerHeight});e();let n=new ResizeObserver(e);return n.observe(document.body),()=>n.disconnect()},[]),e},u=({children:e})=>{let[t,n]=(0,a.useState)(!1),{width:r,height:u}=l(),d=(0,a.useCallback)(()=>{n(!0),setTimeout(()=>n(!1),c)},[]);return(0,o.jsxs)(s.Provider,{value:{triggerConfetti:d},children:[e,t&&r>0&&u>0&&(0,o.jsx)(i,{width:r,height:u,style:{position:`fixed`,top:0,left:0,zIndex:9999,pointerEvents:`none`},numberOfPieces:800,recycle:!1,gravity:.15,initialVelocityX:15,initialVelocityY:40,tweenDuration:100,colors:[`#098F69`,`#1FC626`,`#42C49F`],confettiSource:{x:0,y:0,w:r,h:0},onConfettiComplete:()=>n(!1)})]})},d=()=>{let e=(0,a.useContext)(s);if(!e)throw Error(`useConfetti must be used within a ConfettiProvider`);return e};export{d as n,u as t};
2//# sourceMappingURL=ConfettiProvider-Dx5XSmB1.js.map

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.