$(document).on("cameraImagesInitialized camListResize",function(){function e(){setTimeout(()=>{var e=null!=(e=$(".imgCol .text-center:first").outerHeight())?e+5:0,t=235,a=(a=s($(".cctvImage")))<t?t:a,e=($(".cctvImage").css("max-height",a+"px"),$(".imgContainer").css("height",a+e+n+"px"),$(".optionsDropdown").css("top",a+e+n+"px"),s(i)),a=(i.css("height",(e=2.5*a<e?a+100:e)+"px"),this.height<t?t:this.height);$(".camera-options-dropdown").css("max-height",a-20+"px")})}var t=Modernizr.mq("(max-width: 767px)")?(a=1,21.5):Modernizr.mq("(max-width: 992px)")?(a=2,45):Modernizr.mq("(max-width: 1300px)")?(a=3,65):Modernizr.mq("(max-width: 1750px)")?(a=4,97):(a=5,120),t=($(".newCamDesign .dataTables_wrapper").outerWidth()-t)/a,i=$(".newCamDesign .dataTables_wrapper .table tbody td"),a=(i.attr("style","width:"+t+"px;"),0<".newCamDesign .cctvCameraCarousel".length&&($(".newCamDesign .table tbody td .cctvCameraCarousel").attr("style","width:"+t+"px;"),$(".slick-slider").slick("setPosition")),$(".newCamDesign .dataTables_wrapper img")[0]),t=$(".newCamDesign .dataTables_wrapper .text-center.small")[0],n=t?t.offsetHeight+20:0;function s(e){return Math.max.apply(null,e.map(function(){return $(this).height()}).get())}a&&(a.complete?e.call(a):a.onload=e)});
