/*! phoscon-app 2024-02-26 */

function onFeedbackIconClicked(){var index=$(this).index();$(this).hasClass("glyphicon-remove")&&($(this).parent().find("input:nth-child("+index+")").val(""),$(this).parent().find("input:nth-child("+index+")").focus())}function updateFeedbackIcon($parent){var $feedback=$(".form-control-feedback",$parent);$parent.hasClass("has-error")?($feedback.removeClass("glyphicon-remove"),$feedback.addClass("glyphicon-exclamation-sign")):($feedback.removeClass("glyphicon-exclamation-sign"),$feedback.addClass("glyphicon-remove"))}$(function(){$("input[data-validator-cb]").each(function(){var validatorCallback=window[$(this).attr("data-validator-cb")];$(this).on("keyup",_.debounce(validatorCallback,300)),$(this).on("input",_.debounce(validatorCallback,300)),$(this).on("change blur focus",_.debounce(validatorCallback,10))})}),document.body.addEventListener("click",function(ev){let elem=ev.target;elem&&elem.classList.contains("glyphicon-remove")&&(elem.parentElement.querySelector("input").value="",elem.parentElement.querySelector("input").focus())});