{"version":3,"file":"accessibility-home-page.js","names":["document","addEventListener","$","each","$link","this","css","height","width","ariaLabel","data","attr","removeAttr"],"sources":["accessibility-home-page.js"],"mappings":"AAAAA,SAASC,iBAAiB,oBAAoB,WAE1CC,EAAE,uCAAuCC,MAAK,WAC1C,IAAIC,EAAQF,EAAEG,MAEd,GADyC,SAAzBD,EAAME,IAAI,YAA2C,GAAlBF,EAAMG,UAAkC,GAAjBH,EAAMI,QACjE,CACX,IAAIC,EAAYL,EAAMM,KAAK,cAC3BN,EAAMO,KAAK,aAAcF,EAC7B,MACIL,EAAMQ,WAAW,aAEzB,GACJ","sourcesContent":["document.addEventListener(\"DOMContentLoaded\", function () {\r\n // Different themes will use one of two elements within _EventDateStub.cshtml, we adjust accessibility accordingly\r\n $('.c-event-date-stub__event-wrapper a').each(function () {\r\n var $link = $(this);\r\n var isVisible = $link.css('display') !== 'none' && $link.height() != 0 && $link.width() != 0;\r\n if (isVisible) {\r\n var ariaLabel = $link.data('aria-label');\r\n $link.attr('aria-label', ariaLabel);\r\n } else {\r\n $link.removeAttr('aria-label');\r\n }\r\n });\r\n});"]}