{"version":3,"file":"hide_flash.js","mappings":"AAAAA,SAASC,eAAe,eAAiBD,SAASC,eAAe,cAAcC,iBAAiB,SAAS,WACvG,MAAMC,EAAQH,SAASC,eAAe,SAClCE,GAAOA,EAAMC,QACnB,IAEAJ,SAASE,iBAAiB,oBAAoB,WAC5C,MAAMG,EAAeL,SAASC,eAAe,SAEzCI,GACFC,YAAW,IAIf,SAAqBD,GACnBA,EAAaE,MAAMC,WAAa,eAChCH,EAAaE,MAAME,QAAU,IAE7BH,YAAW,KACLD,GAAgBA,EAAaK,YAC/BL,EAAaK,WAAWC,YAAYN,EACtC,GACC,KACL,CAbqBO,CAAYP,IAAe,IAEhD","sources":["webpack://trace_taiwan/./app/javascript/packs/hide_flash.js"],"sourcesContent":["document.getElementById('hide-flash') && document.getElementById('hide-flash').addEventListener('click', function () {\n const flash = document.getElementById('flash');\n if (flash) flash.remove();\n});\n\ndocument.addEventListener('DOMContentLoaded', function() {\n const flashElement = document.getElementById('flash')\n \n if (flashElement) {\n setTimeout(() => clearNotice(flashElement), 3000);\n }\n});\n\nfunction clearNotice(flashElement){\n flashElement.style.transition = 'opacity 1.5s';\n flashElement.style.opacity = '0';\n \n setTimeout(() => {\n if (flashElement && flashElement.parentNode) {\n flashElement.parentNode.removeChild(flashElement);\n }\n }, 1500);\n}\n\n"],"names":["document","getElementById","addEventListener","flash","remove","flashElement","setTimeout","style","transition","opacity","parentNode","removeChild","clearNotice"],"sourceRoot":""}