(function(){"use strict";/**
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */(function(){var c=function(s){var t=s.target,e=t,a=parseInt(e.value,10);e.classList.remove("form-select-success","form-select-danger"),a===1?e.classList.add("form-select-success"):(a===0||a===-2)&&e.classList.add("form-select-danger")},n=function r(){var s=[].slice.call(document.querySelectorAll(".form-select-color-state"));s.forEach(function(t){var e=parseInt(t.value,10);e===1?t.classList.add("form-select-success"):(e===0||e===-2)&&t.classList.add("form-select-danger"),t.addEventListener("change",c)}),document.removeEventListener("DOMContentLoaded",r,!0)};document.addEventListener("DOMContentLoaded",n,!0),document.addEventListener("joomla:updated",n,!0)})()})();
