META-INF.resources.butterfaces-dist-js.butterfaces-radiobox.min.js Maven / Gradle / Ivy
var ButterFaces;!function(e){var t=(o.addStyleClassClickEvent=function(e){document.getElementById(e).addEventListener("change",function(e){console.log("Remove radio selection classes"),[].forEach.call(document.querySelectorAll(".radio"),function(e){console.log(e),e.classList.remove("butter-radio-item-selected")}),console.log("Add radio selection class to "+e.target),e.target.parentNode.classList.add("butter-radio-item-selected")})},o);function o(){}e.RadioBox=t}(ButterFaces=ButterFaces||{});
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRlcmZhY2VzLXJhZGlvYm94LnRzIl0sIm5hbWVzIjpbIkJ1dHRlckZhY2VzIiwiUmFkaW9Cb3giLCJhZGRTdHlsZUNsYXNzQ2xpY2tFdmVudCIsInJhZGlvQm94SWQiLCJkb2N1bWVudCIsImdldEVsZW1lbnRCeUlkIiwiYWRkRXZlbnRMaXN0ZW5lciIsImV2ZW50IiwiY29uc29sZSIsImxvZyIsImZvckVhY2giLCJjYWxsIiwicXVlcnlTZWxlY3RvckFsbCIsImVsIiwiY2xhc3NMaXN0IiwicmVtb3ZlIiwidGFyZ2V0IiwicGFyZW50Tm9kZSIsImFkZCJdLCJtYXBwaW5ncyI6IkFBQUEsSUFBVUEsYUFBVixTQUFVQSxHQUNOLElBQUFDLEdBRWtCQSxFQUFBQyx3QkFBZCxTQUFzQ0MsR0FDZEMsU0FBU0MsZUFBZUYsR0FFbkNHLGlCQUFpQixTQUFVLFNBQVVDLEdBQzFDQyxRQUFRQyxJQUFJLGtDQUNaLEdBQUdDLFFBQVFDLEtBQ1BQLFNBQVNRLGlCQUFpQixVQUMxQixTQUFVQyxHQUNOTCxRQUFRQyxJQUFJSSxHQUNaQSxFQUFHQyxVQUFVQyxPQUFPLGdDQUk1QlAsUUFBUUMsSUFBSSxnQ0FBa0NGLEVBQU1TLFFBQ3BEVCxFQUFNUyxPQUFPQyxXQUFXSCxVQUFVSSxJQUFJLGlDQUlsRGpCLEdBcEJBLFNBQUFBLEtBQWFELEVBQUFDLFNBQVFBLEVBRHpCLENBQVVELFlBQUFBLGFBQVciLCJmaWxlIjoiYnV0dGVyZmFjZXMtcmFkaW9ib3gubWluLmpzIiwic291cmNlc0NvbnRlbnQiOlsibmFtZXNwYWNlIEJ1dHRlckZhY2VzIHtcbiAgICBleHBvcnQgY2xhc3MgUmFkaW9Cb3gge1xuXG4gICAgICAgIHB1YmxpYyBzdGF0aWMgYWRkU3R5bGVDbGFzc0NsaWNrRXZlbnQocmFkaW9Cb3hJZDogc3RyaW5nKSB7XG4gICAgICAgICAgICBsZXQgcmFkaW9Cb3g6IGFueSA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKHJhZGlvQm94SWQpO1xuXG4gICAgICAgICAgICByYWRpb0JveC5hZGRFdmVudExpc3RlbmVyKFwiY2hhbmdlXCIsIGZ1bmN0aW9uIChldmVudDogYW55KSB7XG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJSZW1vdmUgcmFkaW8gc2VsZWN0aW9uIGNsYXNzZXNcIik7XG4gICAgICAgICAgICAgICAgW10uZm9yRWFjaC5jYWxsKFxuICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKFwiLnJhZGlvXCIpLFxuICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiAoZWw6IGFueSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coZWwpO1xuICAgICAgICAgICAgICAgICAgICAgICAgZWwuY2xhc3NMaXN0LnJlbW92ZShcImJ1dHRlci1yYWRpby1pdGVtLXNlbGVjdGVkXCIpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgKTtcblxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiQWRkIHJhZGlvIHNlbGVjdGlvbiBjbGFzcyB0byBcIiArIGV2ZW50LnRhcmdldCk7XG4gICAgICAgICAgICAgICAgZXZlbnQudGFyZ2V0LnBhcmVudE5vZGUuY2xhc3NMaXN0LmFkZChcImJ1dHRlci1yYWRpby1pdGVtLXNlbGVjdGVkXCIpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgIH1cbn0iXX0=