{"version":3,"sources":["../../../../dev/j/v3/pages/cleanup-mac.js"],"names":["collapselinks","document","querySelectorAll","buttons","forEach","button","addEventListener","e","querySelector","currentTarget","getAttribute","scrollIntoView"],"mappings":"CAAA,WACC,YACA,IACCA,GAAgBC,SAASC,iBAAiB,0BACzB,SAASC,GACzBA,EAAQC,QAAQ,SAASC,GACxBA,EAAOC,iBAAiB,QAAQ,SAASC,GACxCN,SAASO,cAAcD,EAAEE,cAAcC,aAAa,mBAAmBC,sBAK3DX","file":"cleanup-mac.js","sourcesContent":["(function() {\n\t'use strict';\n\tvar\n\t\tcollapselinks = document.querySelectorAll('.collapse-btn.hae-btn'),\n\t\tscrollToTarget = function(buttons){\n\t\t\tbuttons.forEach(function(button) {\n\t\t\t\tbutton.addEventListener(\"click\",function(e) {\n\t\t\t\t\tdocument.querySelector(e.currentTarget.getAttribute('data-bs-target')).scrollIntoView();\n\t\t\t\t});\n\t\t\t});\n\t\t};\n\n\t\tscrollToTarget(collapselinks);\n\n\t// // VIDEO AUTOPLAY FIX GLOWEB-9377\n\t// // Select all elements with the class `.icon-play-l`\n\t// var playIcons = document.querySelectorAll('.icon-play-l');\n\n\t// // Add a click event listener to each selected element\n\t// playIcons.forEach(function(playIcon) {\n\t// \tplayIcon.addEventListener('click', function() {\n\t// \t\t// Select the first element with the class `.modal-video`\n\t// \t\tconst video = document.querySelector('.modal-video');\n\n\t// \t\t// Check if the video element exists\n\t// \t\tif (video) {\n\t// \t\t\t// Get the current `src` attribute of the video\n\t// \t\t\tconst videoSrc = video.getAttribute('src');\n\n\t// \t\t\t// Add `autoplay=1` to the `src` to enable autoplay when clicked\n\t// \t\t\tvideo.setAttribute('src', videoSrc + '&autoplay=1');\n\t// \t\t}\n\t// \t});\n\t// });\n\t\n})();\n"]}