{"version":3,"file":"../accessibility.js","names":["getScript","d","s","createElement","setAttribute","body","head","appendChild","$","topNavButton","one","this","addClass","document","addEventListener","removeClass","UserWay","widgetToggle","click"],"sources":["accessibility.js"],"sourcesContent":["$(function () {\r\n var topNavButton = $('.top-nav__accessibility');\r\n\r\n topNavButton.one('click', function () {\r\n $(this).addClass('top-nav__accessibility--loading');\r\n /* $.getScript(\"https://usrwy.com/widget.js\");*/\r\n\r\n getScript(document);\r\n })\r\n\r\n document.addEventListener(\"userway:render_completed\", function () {\r\n topNavButton.removeClass('top-nav__accessibility--loading');\r\n // topNavButton.addClass('top-nav__accessibility--open');\r\n UserWay.widgetToggle();\r\n\r\n topNavButton.click(function () {\r\n UserWay.widgetToggle();\r\n // $(this).toggleClass('top-nav__accessibility--open');\r\n })\r\n });\r\n})\r\n\r\nfunction getScript(d) {\r\n var s = d.createElement(\"script\");\r\n s.setAttribute(\"data-account\", \"Ddrg9YPpEb\");\r\n s.setAttribute(\"src\", \"https://cdn.userway.org/widget.js\");\r\n (d.body || d.head).appendChild(s);\r\n} "],"mappings":"AAsBA,SAASA,UAAUC,GACf,IAAIC,EAAID,EAAEE,cAAc,UACxBD,EAAEE,aAAa,eAAgB,cAC/BF,EAAEE,aAAa,MAAO,sCACrBH,EAAEI,MAAQJ,EAAEK,MAAMC,YAAYL,EACnC,CA3BAM,GAAE,WACE,IAAIC,EAAeD,EAAE,2BAErBC,EAAaC,IAAI,SAAS,WACtBF,EAAEG,MAAMC,SAAS,mCAGjBZ,UAAUa,SACd,IAEAA,SAASC,iBAAiB,4BAA4B,WAClDL,EAAaM,YAAY,mCAEzBC,QAAQC,eAERR,EAAaS,OAAM,WACfF,QAAQC,cAEZ,GACJ,GACJ"}