$(document).ready(function(){$(".CallInsuranceForm").on("click",function(){let e=$(this);let ft=e.attr("data-form");$.ajax({url:"/Ajax/InsuranceForm.html?Form="+ft,type:"GET",success:function(a){$("#InsuranceForm").html(a)}})});$('[data-toggle="popover"]').popover();$("#UserConsentOK").on("click",function(){let e=$(this);let f=$(".ConsentForm").serialize();let rc=$("#UserConsentResult");rc.addClass("alert-warning").removeClass("d-none alert-success alert-danger").html("Lütfen bekleyin.");$.ajax({url:"/UserPanel/UserConsentOK/",data:f,type:"POST",dataType:"json",success:function(a){if(a.result===true){rc.removeClass("alert-warning").addClass("alert-success");setTimeout(function(){window.location.href="/Auth/?_noref=true"},2000)}else{rc.removeClass("alert-warning").addClass("alert-danger")}rc.html(a.message)}})})});