{"version":3,"sources":["App.tsx","serviceWorker.ts","index.tsx"],"names":["App","CTA","key","nextScore","useState","word","setWord","letter","setLetter","number","setNumber","index","setIndex","score","setScore","wiggle","setWiggle","totalCount","setTotalCount","getRandomInt","max","Math","floor","random","useEffect","console","log","className","style","animation","data-score","width","onClick","newNumber","newLetter","newScore","randNumber","length","handleButtonPress","href","Boolean","window","location","hostname","match","ReactDOM","render","document","getElementById","navigator","serviceWorker","ready","then","registration","unregister","catch","error","message"],"mappings":"8JA4GeA,MAtGf,WACI,IAAMC,EAAM,CACR,CAACC,IAAK,8BAAqBC,UAAW,GACtC,CAACD,IAAK,YAAaC,UAAW,GAC9B,CAACD,IAAK,oBAAqBC,UAAW,GAGtC,CAACD,IAAK,aAAcC,UAAW,GAC/B,CAACD,IAAK,cAAeC,UAAW,GAChC,CAACD,IAAK,wDAA2BC,UAAW,IAE5C,CAACD,IAAK,0BAA2BC,UAAW,GAC5C,CAACD,IAAK,cAAeC,UAAW,GAChC,CAACD,IAAK,aAAcC,UAAW,GAC/B,CAACD,IAAK,qBAAsBC,UAAW,GACvC,CAACD,IAAK,yBAA0BC,UAAW,IAfpC,EAiBaC,mBAAS,CAACF,IAAK,8BAAqBC,UAAW,IAjB5D,mBAiBJE,EAjBI,KAiBEC,EAjBF,OAkBiBF,mBAAS,IAlB1B,mBAkBJG,EAlBI,KAkBIC,EAlBJ,OAmBgBJ,mBAAS,GAnBzB,mBAmBJK,EAnBI,KAmBGC,EAnBH,OAoBeN,mBAAS,GApBxB,mBAoBJO,EApBI,KAoBGC,EApBH,OAqBeR,mBAAS,GArBxB,mBAqBJS,EArBI,KAqBGC,EArBH,OAsBiBV,mBAAS,KAtB1B,mBAsBJW,EAtBI,KAsBIC,EAtBJ,OAuByBZ,mBAAS,GAvBlC,mBAuBJa,EAvBI,KAuBQC,EAvBR,KAwBX,SAASC,EAAaC,GAClB,OAAOC,KAAKC,MAAMD,KAAKE,SAAWH,GAuDtC,OApDAI,qBAAU,WACNC,QAAQ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,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MACvB,2DCZJC,IAASC,OAAO,cAAC,EAAD,IAASC,SAASC,eAAe,SDqI3C,kBAAmBC,WACrBA,UAAUC,cAAcC,MACrBC,MAAK,SAAAC,GACJA,EAAaC,gBAEdC,OAAM,SAAAC,GACL/B,QAAQ+B,MAAMA,EAAMC,a","file":"static/js/main.8730593e.chunk.js","sourcesContent":["import React, {useContext, useEffect, useState} from 'react';\n\n\n\nlet letters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n\nfunction App() {\n const CTA = [\n {key: \"Make it Better 🔥\", nextScore: 1},\n {key: \"Innovate!\", nextScore: 1},\n {key: \"Raise More Money!\", nextScore: 1},\n // {key: \"Promise To Stop Astro-turfing!\", nextScore: -1},\n // {key: \"Fire The Founder, Hire a Serial CEO!\", nextScore: -1},\n {key: \"Synergize!\", nextScore: 1},\n {key: \"Free Egress\", nextScore: 1},\n {key: \"Free Storage!!!! 🔥🔥🔥\", nextScore: 10},\n // {key: \"Realize You Gave Away Too Much Free Egress\", nextScore: -5},\n {key: \"Talk About Brand Value!\", nextScore: 1},\n {key: \"Strategize!\", nextScore: 1},\n {key: \"Integrate!\", nextScore: 1},\n {key: \"Content Marketing!\", nextScore: 1},\n {key: \"Think Outside The Box!\", nextScore: 1},\n ]\n const [word, setWord] = useState({key: \"Make it Better 🔥\", nextScore: 1})\n const [letter, setLetter] = useState(18)\n const [number,setNumber] = useState(3)\n const [index, setIndex] = useState(1)\n const [score, setScore] = useState(0)\n const [wiggle, setWiggle] = useState(100000)\n const [totalCount, setTotalCount] = useState(0)\n function getRandomInt(max: number) {\n return Math.floor(Math.random() * max);\n }\n\n useEffect(() => {\n console.log(\"Fixed the bug, Thank you tdeck\")\n }, [])\n\n const handleButtonPress = () => {\n let newNumber = number - word.nextScore\n setNumber(() => newNumber)\n let newLetter = letter - word.nextScore\n if(newLetter > 25){\n newLetter = newLetter - 26\n }\n if(newLetter < 0){\n newLetter = newLetter + 26\n }\n setLetter(newLetter)\n let newScore = score + word.nextScore\n setScore(() => newScore)\n let randNumber = getRandomInt(CTA.length)\n while (randNumber === index){\n randNumber = getRandomInt(CTA.length)\n }\n setIndex(randNumber)\n setWord(() => CTA[index])\n setTotalCount(() => totalCount + 1)\n }\n\n useEffect(() =>{\n if(totalCount === 69){\n setNumber(-420)\n }\n }, [totalCount])\n\n useEffect(() => {\n if(score < 5){\n setWiggle(10000)\n }\n if (score > 5) {\n setWiggle(.5)\n }\n if (score > 10) {\n setWiggle(.3)\n }\n if (score > 15) {\n setWiggle(.1)\n }\n if (score > 25) {\n setWiggle(.03)\n }\n }, [score])\n\n\n\n return (\n \n

Object Storage Name Generator

\n

Level of Goodness

\n
\n
\n
\n {/*

That's like... Pretty Good

*/}\n

{letters[letter]}{number}

\n {}\n \n
\n

Made with love by the team at Taloflow. Inspired by the not-so-subtle move taken by Cloudflare

\n
\n \n );\n}\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\ntype Config = {\n onSuccess?: (registration: ServiceWorkerRegistration) => void;\n onUpdate?: (registration: ServiceWorkerRegistration) => void;\n};\n\nexport function register(config?: Config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(\n process.env.PUBLIC_URL,\n window.location.href\n );\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl: string, config?: Config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl: string, config?: Config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' }\n })\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready\n .then(registration => {\n registration.unregister();\n })\n .catch(error => {\n console.error(error.message);\n });\n }\n}","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './styles/index.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}