{"version":3,"file":"Src_Scripts_components_checkbox_js.85f48f1b223f18030e16.js","sources":["webpack://Boerneraadet/./Src/Scripts/components/checkbox.js"],"sourcesContent":["export default class Checkbox {\r\n    constructor(elm) {\r\n        var checkBoxes = document.querySelectorAll('.checkbox__box');\r\n\r\n        for (let i = 0; i < checkBoxes.length; i++) {\r\n            checkBoxes[i].addEventListener('change', function () {\r\n                toggleAriaChecked(checkBoxes[i]);\r\n            });\r\n        }\r\n\r\n        function toggleAriaChecked(checkbox) {\r\n            if (checkbox.checked) {\r\n                checkbox.setAttribute('aria-checked', 'true');\r\n            } else {\r\n                checkbox.setAttribute('aria-checked', 'false');\r\n            }\r\n        }\r\n    }\r\n}   \r\n\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlBA;AACA;A;;A;;A","sourceRoot":""}