function locationsHeadingBindings(){$("body").on("mouseover",".locations-heading-widget",function(){$(".outside-controls").hide();$(this).parent().find(".outside-controls").show()});$("body").on("mouseout",".locations-heading-widget",function(){$(".outside-controls").hide()})}function bindings(){console.log("APPLY BINDING: text.widget - V1.0");$("body").on("mouseover",".text-widget",function(){$(".outside-controls").hide();$(this).parent().find(".outside-controls").show()});$("body").on("mouseout",".text-widget",function(){$(".outside-controls").hide()})}$(document).ready(function(){$('.contact-form .tags input[type="checkbox"]').off("click").on("click",function(){var n=$(this).closest("form"),i=n.find(".tags-input"),r=n.find('.tags input[type="checkbox"]:checked'),t="";$.each(r,function(n,i){t+=$(i).val()+";"});i.val(t)});$('.contact-form button[type="submit"]').off("click").on("click",function(){var i=$(this).closest("form"),n=!0,e=$(document).find("#name"),r,u,t,f;return(e.val()==""&&($(document).find(".error-name").css("display","block"),n=!1),r=$(document).find("#email"),r.val()==""&&($(document).find(".error-email").css("display","block"),n=!1),u=$(document).find("#phone"),u.val()==""&&($(document).find(".error-phone").css("display","block"),n=!1),t=$(document).find("#details"),(t.val()==""||t.text==" ")&&($(document).find(".error-details").css("display","block"),n=!1),f=$(document).find("#location"),f.val()=="default"&&($(document).find(".error-location").css("display","block"),n=!1),!n)?!1:($.ajax({type:"POST",url:"ContactFormWidget/SubmitContactForm",data:$(i).serialize(),success:function(){$(i).parent().find(".success-overlay").addClass("overlay-visible")},error:function(){}}),!1)})});$(document).ready(function(){function n(){var n=$(".content-hub-grid .grid");window.innerWidth>1921?n.masonry({itemSelector:".grid-item",columnWidth:330}):n.masonry({itemSelector:".grid-item",columnWidth:275})}function t(){var i=$(".content-hub-grid .grid");i.length==0?setTimeout(t,100):n();window.onresize=function(){n()}}$(".content-hub-grid-widget").length>0&&$(".page-content").addClass("off-white-bg");t()});console.log("Admin >> load >> toggle 4 card flip >> v1.1");$(document).ready(function(){$(".discover-more-button").click(function(){var t=$(this).closest(".ovato-widget"),n=t.find(".row-four-cards"),r=t.find(".col-md-6"),i;t.find(".chevron.down").toggleClass("up");n.hasClass("open")?(n.removeClass("open"),n.height(0),$(this).find(".discover-more").text("Discover all our capabilities")):(i=1,i=$(".col-md-6").width()<400?4:2,n.addClass("open"),n.height(r.outerHeight(!0)*i),$(this).find(".discover-more").text("Less"))});$(".four-cards-slideout .card-body").click(function(){console.log("Admin >> click >> toggle 4 card flip >> v1.1");$(this).parentsUntil().find(".col-md-6").css("z-index","");$(this).parentsUntil().closest(".col-md-6").css("z-index","900001");var n=$(this).closest(".card-flip");return n.toggleClass("card-flipped"),!1});$(".four-cards-slideout .card-content").mCustomScrollbar();$(".card-link a").click(function(){console.log("Admin >> click >> link click >> v1.1");$(this).prop("href")!=""&&event.stopPropagation()})});$(document).ready(function(){var n=$(".video-arrow").parent().parent();n.on("click",function(){bootbox.dialog({className:"vimeoModal modal-center",message:$("#VideoContainer"),onEscape:!0,backdrop:!0,size:"large",show:!1}).on("shown.bs.modal",function(){$("#VideoContainer").show()}).on("hide.bs.modal",function(){$("#VideoContainer").hide().appendTo("body")}).modal("show");$(".vimeoModal .modal-dialog").addClass("modal-dialog-centered")})});$(document).ready(function(){$(".investor-card").off("click").click(function(){var n=$(this).find(".card-flip");return n.toggleClass("card-flipped"),!1});$(".investor-card .investor-bio").mCustomScrollbar()});$(document).ready(function(){function n(){var t=$(".investor-document-folder .expanding-folder");if(t.length==0)setTimeout(n,100);else t.off("click").on("click",function(){$(this).find(".expanding-arrow .arrow").toggleClass("expand")})}n()});document.readyState==="loading"?document.addEventListener("DOMContentLoaded",function(){locationsHeadingBindings()}):locationsHeadingBindings();document.readyState==="loading"?document.addEventListener("DOMContentLoaded",function(){bindings()}):bindings();$(".learn-more-button").click(function(){console.log("Toggle 3 column show more - v1.0");var t=$(this).closest(".three-column"),n=t.find(".card-content"),i=t.find(".card-content-inner");t.find(".chevron.down").toggleClass("up");n.hasClass("open")?(n.removeClass("open"),n.height(0)):(n.addClass("open"),n.height(i.outerHeight(!0)))})