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E,OAcStE,EAAC,iBAdmC,CAC7DuE,MAAO,CACLC,QAAS,oDACTC,UAAW,oDACb,CACF,EACAC,aAAc,QACd3E,KAAM,cACN4E,QAAS,IACTC,UAAW,CAAC,EACZC,cAAe,oCACjB,yDCdK,IAAMC,EAAM,CAACC,EAAK3E,KACvB,IAAI4E,EAAID,EAAM,GACd,KAAOC,EAAElC,MAAM,CAAG1C,GAAM4E,EAAI,IAAMA,EAClC,OAAOA,CACT,EAAE,EAEwB,GACjBC,EAAKC,MAAM,CAAC,GAAGC,WAAW,GAAKF,EAAKG,KAAK,CAAC","sources":["webpack://_N_E/?9b80","webpack://_N_E/./app/page.js","webpack://_N_E/./components/Footer.js","webpack://_N_E/./components/util/DeveloperWrapper.js","webpack://_N_E/./components/util/ToggleableLink.js","webpack://_N_E/./components/Header.js","webpack://_N_E/./components/PlayButton.js","webpack://_N_E/./hooks/use-web3-constants.js","webpack://_N_E/./util/strings.js"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src644217717/src/hangman/game/app/page.js\");\n","\"use client\";\n\nimport PlayButton from \"@/components/PlayButton\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nimport Footer from \"../components/Footer\";\nimport Header from \"../components/Header\";\nimport {readTutorialMatchStatus} from \"./(main)/(header)/(currency-header)/select/page\";\n\nconst DividerSection = () => (\n
\n
\n \n
\n

\n Compete\n

\n \n
\n
\n
\n \n
\n

Win

\n \n
\n
\n
\n \n
\n

\n Get Paid\n

\n \n
\n
\n
\n);\n\nconst rankToIcon = (rank) => {\n switch (rank) {\n case 1: {\n return \"/ui/leaderboards/medal-gold.svg\";\n }\n case 2: {\n return \"/ui/leaderboards/medal-silver.svg\";\n }\n case 3: {\n return \"/ui/leaderboards/medal-bronze.svg\";\n }\n default: {\n return \"/ui/leaderboards/medal-unranked.svg\";\n }\n }\n};\n\nconst fakeLeaderboardData = [\n {rank: 1, name: \"GustavTheGreat\", winnings: 1152},\n {rank: 2, name: \"__hippo__\", winnings: 944},\n {rank: 3, name: \"FanglessBat\", winnings: 935},\n {rank: 4, name: \"king_of_the_hang\", winnings: 930},\n {rank: 5, name: \"bentooon\", winnings: 930},\n];\n\nconst LeaderboardEntry = ({rank, name, winnings}) => (\n
\n
\n \n
\n

{name}

\n

\n ${winnings}\n

\n
\n
\n
\n);\n\nconst LeaderboardSection = () => (\n
\n

\n Leaderboards\n

\n

\n Compete to win daily, weekly, and monthly leaderboard prizes!\n

\n\n
\n \n
\n\n
\n {fakeLeaderboardData.map((entry) => {\n return (\n \n );\n })}\n
\n\n
\n \n \n \n
\n
\n);\n\nexport function AboutTheGame() {\n return (\n
\n
\n

About The Game

\n

\n {`Hangman Clash is a skill-based, PVP word game built on the Movement\n network and played in a browser. Don't be fooled: gameplay is easy to\n learn, but difficult to master.`}\n

\n Players are pitted against each other and use timing and boost\n elements to solve mystery words. Maximize your score with timing,\n correctness, and boost strategy.\n

\n

\n Enter free or paid tournaments to win on-chain prizes.\n

\n
\n
\n );\n}\n\nfunction Trailer() {\n // video with specific cover image\n return (\n
\n
\n \n \n Your browser does not support the video tag.\n \n
\n
\n );\n}\n\nexport default function Splash() {\n const tutorialStatus = readTutorialMatchStatus();\n\n return (\n
\n
\n
\n\n
\n {/* Text */}\n
\n

\n Last Mech Standing\n

\n

\n Compete in head-to-head tournaments and win cash prizes!\n

\n
\n \n
\n
\n\n {/* Mech image */}\n \n
\n
\n\n \n \n
\n );\n}\n","\"use client\";\n\nimport useWeb3Constants from \"@/hooks/use-web3-constants\";\nimport {GIT_BRANCH, GIT_REV} from \"@/util/gen-git\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nimport {usePathname} from \"next/navigation\";\n\nconst shouldShowFooterFor = (pathName) =>\n [\"/demo\", \"/game\", \"/buy-moon\"].findIndex((path) =>\n pathName.startsWith(path),\n ) === -1;\n\nconst Footer = () => {\n const pathName = usePathname();\n const {name} = useWeb3Constants();\n\n if (!shouldShowFooterFor(pathName)) {\n return null;\n }\n\n const size = 26;\n\n return (\n
\n
\n \n\n

Copyright © 2025

\n

SpyreIO, Inc

\n
\n\n
\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n
\n\n
\n \n \"spyre-logo\"\n \n
\n \n

Privacy

\n \n \n

Terms

\n \n \n

Cookies

\n \n
\n\n \n

\n Whitepaper\n

\n \n
\n\n
\n

{`${GIT_BRANCH === \"master\" ? \"main\" : GIT_BRANCH} (${name})`}

\n

{`${GIT_REV}`}

\n
\n
\n );\n};\n\nexport default Footer;\n","\"use client\";\n\nimport {useAccount, useAccountRefresh, useRpcCall} from \"@spyre-io/js\";\nimport mixpanel from \"mixpanel-browser\";\nimport {useCallback, useMemo, useState} from \"react\";\n\nconst DeveloperWrapper = ({className, children}) => {\n const [numTimesClicked, setNumTimesClicked] = useState(0);\n\n const refresh = useAccountRefresh();\n const {mutateAsync: rpc} = useRpcCall(\"account/mark-developer\");\n\n const {isPending, data: account} = useAccount();\n const {developer} = useMemo(() => {\n if (isPending) {\n return {developer: false};\n }\n\n const meta = JSON.parse(account?.metadata || \"{}\");\n\n // make sure developer flag is set\n if (meta.developer) {\n mixpanel.people.set({developer: true});\n }\n\n return meta;\n }, [isPending, account]);\n\n const incrementSecretClick = useCallback(async () => {\n if (developer) {\n return;\n }\n\n setNumTimesClicked(numTimesClicked + 1);\n\n if (numTimesClicked >= 4) {\n mixpanel.people.set({developer: true});\n\n await rpc({});\n await refresh();\n\n console.log(\"Hello.\");\n }\n }, [numTimesClicked, developer, rpc, refresh]);\n\n return (\n \n {children}\n \n );\n};\n\nexport default DeveloperWrapper;\n","import Link from \"next/link\";\n\nconst ToggleableLink = ({\n children,\n href,\n target,\n isInMaintenanceMode,\n ...props\n}) => {\n if (isInMaintenanceMode) {\n const className = (props.className || \"\") + \" cursor-not-allowed\";\n return (\n
\n {children}\n
\n );\n }\n\n return (\n \n {children}\n \n );\n};\n\nexport default ToggleableLink;\n","\"use client\";\n\nimport {selectIsInMaintenanceMode} from \"@/store/index\";\nimport {globalSelectors} from \"@/store/reducers/global\";\nimport {Dialog, Popover} from \"@headlessui/react\";\nimport {Bars3Icon, XMarkIcon} from \"@heroicons/react/24/outline\";\nimport Link from \"next/link\";\nimport {useState} from \"react\";\nimport {NotificationContainer} from \"react-notifications\";\nimport \"react-notifications/lib/notifications.css\";\nimport {useSelector} from \"react-redux\";\nimport {NotifCodeMatchReady} from \"./NakamaProvider\";\nimport PlayButton from \"./PlayButton\";\nimport DeveloperWrapper from \"./util/DeveloperWrapper\";\nimport ToggleableLink from \"./util/ToggleableLink\";\n\nexport default function Header() {\n const [mobileMenuOpen, setMobileMenuOpen] = useState(false);\n\n const notifs = useSelector(globalSelectors.selectNotifs);\n const isInMaintenanceMode = useSelector(selectIsInMaintenanceMode);\n const matchReadyCount = notifs[NotifCodeMatchReady]?.length || 0;\n\n return (\n <>\n \n\n
\n
\n \n\n {/* Mobile */}\n \n
\n \n
\n setMobileMenuOpen(false)}\n >\n Close menu\n \n \n
\n
\n
\n
\n setMobileMenuOpen(false)}\n >\n Play\n \n
\n setMobileMenuOpen(false)}\n >\n History\n {matchReadyCount > 0 && (\n
\n {matchReadyCount}\n
\n )}\n \n
\n setMobileMenuOpen(false)}\n >\n Leaderboards\n \n
\n setMobileMenuOpen(false)}\n >\n Raffles\n \n
\n setMobileMenuOpen(false)}\n >\n Account\n \n
\n
\n
\n \n \n
\n
\n \n );\n}\n","import {PlayIcon} from \"@heroicons/react/24/solid\";\nimport {useRouter} from \"next/navigation\";\n\nexport default function PlayButton({\n message = \"Play\",\n href = \"/select\",\n onClick,\n className,\n disabled,\n}) {\n const router = useRouter();\n\n return (\n {}\n : onClick\n ? onClick\n : href\n ? () => router.push(href)\n : () => {}\n }\n >\n {message}\n \n \n );\n}\n","const useWeb3Constants = () => {\n return {\n providerConfig: {\n publishableKey: process.env.NEXT_PUBLIC_MAGIC_PUBLISHABLE_KEY,\n aptos: {\n nodeUrl: \"https://aptos.testnet.bardock.movementlabs.xyz/v1\",\n faucetUrl: \"https://faucet.testnet.bardock.movementnetwork.xyz\",\n },\n },\n providerType: \"magic\",\n name: \"Move Bardok\",\n chainId: 250,\n contracts: {},\n blockExplorer: \"https://explorer.movementlabs.xyz\",\n };\n};\n\nexport default useWeb3Constants;\n","export const pad = (num, size) => {\n let s = num + \"\";\n while (s.length < size) s = \"0\" + s;\n return s;\n};\n\nexport const capitalize = (word) => {\n return word.charAt(0).toUpperCase() + word.slice(1);\n};\n"],"names":["DividerSection","div","className","img","src","alt","p","AboutTheGame","Trailer","video","controls","poster","width","height","source","type","Splash","readTutorialMatchStatus","Header","PlayButton","href","message","Footer","shouldShowFooterFor","findIndex","pathName","startsWith","path","usePathname","name","useWeb3Constants","Image","Link","target","size","GIT_BRANCH","GIT_REV","children","DeveloperWrapper","numTimesClicked","setNumTimesClicked","useState","refresh","useAccountRefresh","mutateAsync","rpc","useRpcCall","isPending","data","account","useAccount","developer","useMemo","meta","JSON","parse","metadata","mixpanel","set","incrementSecretClick","useCallback","console","log","onClick","ToggleableLink","isInMaintenanceMode","props","notifs","mobileMenuOpen","setMobileMenuOpen","useSelector","globalSelectors","selectNotifs","selectIsInMaintenanceMode","matchReadyCount","NotifCodeMatchReady","length","NotificationContainer","header","nav","button","span","Bars3Icon","aria-hidden","Popover","Group","prefetch","Dialog","as","open","onClose","Panel","XMarkIcon","disabled","router","useRouter","push","PlayIcon","providerConfig","publishableKey","process","aptos","nodeUrl","faucetUrl","providerType","chainId","contracts","blockExplorer","pad","num","s","word","charAt","toUpperCase","slice"],"sourceRoot":"","ignoreList":[]}