{"version":3,"names":["document","addEventListener","audio","createElement","id","src","body","appendChild","chatIcon","querySelector","radioButton","classList","add","innerHTML","setAttribute","paused","play","then","catch","e","console","error","pause","currentTime","remove","parentNode","insertBefore"],"sources":["theme-1-inline-common-head_tag-3.js"],"sourcesContent":["\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n    var audio = document.createElement(\"audio\");\n    audio.id = \"radio-stream\";\n    audio.src = \"https://usa8.fastcast4u.com/proxy/live?mp=/1&format=mp3\";\n    document.body.appendChild(audio);\n\n    var chatIcon = document.querySelector(\".header-dropdown-toggle\");\n    if (!chatIcon) return;\n\n    var radioButton = document.createElement(\"a\");\n    radioButton.id = \"radio-toggle\";\n    radioButton.classList.add(\"icon\", \"header-radio-icon\");\n    radioButton.innerHTML = '<svg class=\"d-icon d-icon-radio svg-icon\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.06c1.48-.74 2.5-2.26 2.5-4.03zM14 3.23v2.06c3.06 1.19 5 4.16 5 7.71s-1.94 6.52-5 7.71v2.06c4.45-1.3 7.5-5.38 7.5-9.77s-3.05-8.47-7.5-9.77z\"/></svg>';\n    radioButton.setAttribute(\"aria-label\", \"Radio Polski FM Chicago\");\n    radioButton.setAttribute(\"title\", \"Radio Polski FM Chicago\");\n    radioButton.setAttribute(\"data-title\", \"Radio Polski FM Chicago\");\n    radioButton.setAttribute(\"data-title-pos\", \"bottom\");\n\n    radioButton.addEventListener(\"click\", function() {\n        if (audio.paused) {\n            audio.play().then(function(){ radioButton.classList.add(\"playing\"); }).catch(function(e){ console.error(e); });\n        } else {\n            audio.pause();\n            audio.currentTime = 0;\n            radioButton.classList.remove(\"playing\");\n        }\n    });\n\n    chatIcon.parentNode.insertBefore(radioButton, chatIcon);\n});\n"],"mappings":"AACAA,QAAQ,CAACC,gBAAgB,CAAC,kBAAkB,EAAE,YAAW;EACrD,I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