{"version":3,"file":"app-632114cd.js","sources":["../../../app/javascript/mining/js/app.js"],"sourcesContent":["// import \"../css/main.css\";\n\nimport { modalInit } from './modal'\n\ndocument.querySelectorAll('.miningItem').forEach((item) => {\n item.addEventListener('click', () => {\n item.classList.toggle('active')\n })\n})\n\n// const currencyHeader = document.querySelector('.customHeaderSelect')\n// currencyHeader?.addEventListener('click', () =>\n// currencyHeader.classList.toggle('selected')\n// )\n\nconst radios = document.querySelectorAll(\n 'input[type=radio][name=\"headerDropdown\"]'\n)\nradios.forEach((radio) =>\n radio.addEventListener('change', () => {\n window.location.href = new URL(radio.value, window.location.href).href\n // `${window.location.origin}${radio.value === 'eth' ? new URL(\"eth\", window.location.href).href : new URL(\"btc\", window.location.href).href}`;\n })\n)\n\nconsole.log('mining app loading!!')\n"],"names":["document","querySelectorAll","forEach","item","addEventListener","classList","toggle","radios","radio","window","location","href","URL","value","console","log"],"mappings":"4GAIAA,SAASC,iBAAiB,aAAa,EAAEC,QAASC,GAAS,CACzDA,EAAKC,iBAAiB,QAAS,IAAM,CACnCD,EAAKE,UAAUC,OAAO,QAAQ,CAChC,CAAC,CACH,CAAC,EAOD,MAAMC,EAASP,SAASC,iBACtB,0CACF,EACAM,EAAOL,QAASM,GACdA,EAAMJ,iBAAiB,SAAU,IAAM,CACrCK,OAAOC,SAASC,KAAO,IAAIC,IAAIJ,EAAMK,MAAOJ,OAAOC,SAASC,IAAI,EAAEA,IAEpE,CAAC,CACH,EAEAG,QAAQC,IAAI,sBAAsB"}