text: function CharYearServer(e,a){var o=/^\d{1,2}-\d{1,2}-\d{4}$/;if(o.test(e)){var t=a.split("-"),n=parseInt(t[2]),s=parseInt(t[1]),i=parseInt(t[0]),r=e.split("-"),l=parseInt(r[2]),d=parseInt(r[1]),c=parseInt(r[0]);return 100>n&&(n+=1900),yearAge=n-l,d>=s&&(d>s?yearAge--:c>i&&yearAge--),yearAge}return null}var App=function(){var isRTL=!1,isIE8=!1,isIE9=!1,isIE10=!1,sidebarWidth=225,sidebarCollapsedWidth=35,responsiveHandlers=[],layoutColorCodes={blue:"#4b8df8",red:"#e02222",green:"#35aa47",purple:"#852b99",grey:"#555555","light-grey":"#fafafa",yellow:"#ffb848"},_getViewPort=function(){var e=window,a="inner";return"innerWidth"in window||(a="client",e=document.documentElement||document.body),{width:e[a+"Width"],height:e[a+"Height"]}},handleInit=function(){"rtl"===$("body").css("direction")&&(isRTL=!0),isIE8=!!navigator.userAgent.match(/MSIE 8.0/),isIE9=!!navigator.userAgent.match(/MSIE 9.0/),isIE10=!!navigator.userAgent.match(/MSIE 10.0/),isIE10&&jQuery("html").addClass("ie10"),(isIE10||isIE9||isIE8)&&jQuery("html").addClass("ie");var e=navigator.userAgent.toLowerCase();e.match(/(iphone|ipod|ipad)/)&&($(document).on("focus","input, textarea",function(){$(".page-header").hide(),$(".page-footer").hide()}),$(document).on("blur","input, textarea",function(){$(".page-header").show(),$(".page-footer").show()}))},handleSidebarState=function(){var e=_getViewPort();e.width<992&&$("body").removeClass("page-sidebar-closed")},runResponsiveHandlers=function(){for(var e=0;e<responsiveHandlers.length;e++){var a=responsiveHandlers[e];a.call()}},handleResponsive=function(){handleSidebarState(),handleSidebarAndContentHeight(),handleFixedSidebar(),runResponsiveHandlers()},handleResponsiveOnInit=function(){handleSidebarState(),handleSidebarAndContentHeight()},handleResponsiveOnResize=function(){var e;if(isIE8){var a;$(window).resize(function(){a!=document.documentElement.clientHeight&&(e&&clearTimeout(e),e=setTimeout(function(){handleResponsive()},50),a=document.documentElement.clientHeight)})}else $(window).resize(function(){e&&clearTimeout(e),e=setTimeout(function(){handleResponsive()},50)})},handleSidebarAndContentHeight=function(){var e,a=$(".page-content"),o=$(".page-sidebar"),t=$("body");if(t.hasClass("page-footer-fixed")===!0&&t.hasClass("page-sidebar-fixed")===!1){var n=$(window).height()-$(".footer").outerHeight()-$(".header").outerHeight();a.height()<n&&a.attr("style","min-height:"+n+"px !important")}else{if(t.hasClass("page-sidebar-fixed"))e=_calculateFixedSidebarViewportHeight();else{e=o.height()+20;var s=$(".header").outerHeight(),i=$(".footer").outerHeight();$(window).width()>1024&&e+s+i<$(window).height()&&(e=$(window).height()-s-i)}e>=a.height()&&a.attr("style","min-height:"+e+"px !important")}},handleSidebarMenu=function(){jQuery(".page-sidebar").on("click","li > a",function(e){if(0==$(this).next().hasClass("sub-menu"))return void(0==$(".btn-navbar").hasClass("collapsed")&&$(".btn-navbar").click());if(!$(this).next().hasClass("sub-menu always-open")){var a=$(this).parent().parent(),o=$(this),t=$(".page-sidebar-menu"),n=jQuery(this).next(),s=t.data("auto-scroll")?t.data("auto-scroll"):!0,i=t.data("slide-speed")?parseInt(t.data("slide-speed")):200;a.children("li.open").children("a").children(".arrow").removeClass("open"),a.children("li.open").children(".sub-menu:not(.always-open)").slideUp(200),a.children("li.open").removeClass("open");var r=-200;n.is(":visible")?(jQuery(".arrow",jQuery(this)).removeClass("open"),jQuery(this).parent().removeClass("open"),n.slideUp(i,function(){1==s&&0==$("body").hasClass("page-sidebar-closed")&&($("body").hasClass("page-sidebar-fixed")?t.slimScroll({scrollTo:o.position().top}):App.scrollTo(o,r)),handleSidebarAndContentHeight()})):(jQuery(".arrow",jQuery(this)).addClass("open"),jQuery(this).parent().addClass("open"),n.slideDown(i,function(){1==s&&0==$("body").hasClass("page-sidebar-closed")&&($("body").hasClass("page-sidebar-fixed")?t.slimScroll({scrollTo:o.position().top}):App.scrollTo(o,r)),handleSidebarAndContentHeight()})),e.preventDefault()}}),jQuery(".page-sidebar").on("click"," li > a.ajaxify",function(e){e.preventDefault(),App.scrollTop();var a=$(this).attr("href"),o=jQuery(".page-sidebar ul"),t=($(".page-content"),$(".page-content .page-content-body"));o.children("li.active").removeClass("active"),o.children("arrow.open").removeClass("open"),$(this).parents("li").each(function(){$(this).addClass("active"),$(this).children("a > span.arrow").addClass("open")}),$(this).parents("li").addClass("active"),App.blockUI({boxed:!0,message:"Harap Tunggu"}),$(window).width()<=991&&$(".page-sidebar").hasClass("in")&&$(".navbar-toggle").click(),$.ajax({type:"GET",cache:!1,url:a,dataType:"html",success:function(e){App.unblockUI(),t.html(e),App.fixContentHeight(),App.initAjax()},error:function(){t.html("<h4>Could not load the requested content.</h4>"),App.unblockUI()}})}),jQuery(".page-content , .header").on("click",".ajaxify",function(e){e.preventDefault(),App.scrollTop();var a=$(this).attr("href"),o=($(".page-content"),$("#"+$(this).data("target"))),t="";$(this).data("hidden")&&(t=$(this).data("hidden")),App.blockUI({boxed:!0,message:"Harap Tunggu"}),$(window).width()<=991&&$(".page-sidebar").hasClass("in")&&$(".navbar-toggle").click(),$.ajax({type:"GET",cache:!1,url:a,dataType:"html",success:function(e){App.unblockUI(),""!=t&&$("#"+t).hide(),o.html(e),o.show(),App.fixContentHeight(),App.initAjax()},error:function(){o.html("<h4>Could not load the requested content.</h4>"),App.unblockUI()}})}),jQuery(document).on("click",".kembali",function(e){e.preventDefault(),App.blockUI({boxed:!0,message:"Harap Tunggu"}),$("#"+$(this).data("target")).show(),$("#"+$(this).data("hidden")).hide(),App.unblockUI()}),jQuery(".page-content").on("click",".hapus",function(e){e.preventDefault();var refresh=$(this).data("refresh"),url=$(this).attr("href"),pesan=$(this).data("msg");dialog_confirm=bootbox.confirm({title:"PESAN",className:"konfirmasi-simpan",message:'<div class="row"><div class="col-md-12"><div class="col-md-2"><i class="fa fa-3x fa-question-circle"></i></div><div class="col-md-10"><ul class="text-warning no-bullets"><label><li>'+pesan+"</li></label></ul></div></div></div>",buttons:{confirm:{label:"Ya",className:"btn btn-success min-width margin-right btn-sm btn-focus"},cancel:{label:"Batal",className:"btn btn-danger pull-right btn-sm"}},callback:function(result){result&&(App.blockUI({boxed:!0,message:"Harap Tunggu"}),$.ajax({type:"GET",cache:!1,url:url,dataType:"html",success:function(res){if(App.unblockUI(),"{"==res.charAt(0)){var json=$.parseJSON(res);"1"==json.status?(dialog_alert=bootbox.alert({title:"PESAN",className:"konfirmasi-simpan",message:'<div class="row"><div class="col-md-12"><div class="col-md-2"><i class="fa fa-3x fa-check"></i></div><div class="col-md-10"><ul class="text-success no-bullets"><label><li>'+json.pesan+"</li></label></ul></div></div></div>",buttons:{ok:{label:"Ya",className:"btn btn-success btn-sm btn-focus"}}}),dialog_alert.find(".modal-body").addClass("alert-success"),dialog_alert.find(".modal-body").addClass("portlet-body"),"undefined"!=typeof json.javascript&&eval(json.javascript),$("#"+refresh).submit()):(dialog_alert=bootbox.alert({title:"PESAN",className:"konfirmasi-simpan",message:'<div class="row"><div class="col-md-12"><div class="col-md-2"><i class="fa fa-3x fa-warning"></i></div><div class="col-md-10"><ul class="text-danger no-bullets"><label class="error"><li>'+json.pesan+"</li></label></ul></div></div></div>",buttons:{ok:{label:"Tutup",className:"btn btn-danger btn-sm btn-focus"}}}),dialog_alert.find(".modal-body").addClass("alert-danger"),dialog_alert.find(".modal-body").addClass("portlet-body"),"undefined"!=typeof json.javascript&&eval(json.javascript)),dialog_alert.find(".modal-body").addClass("portlet-body"),$(dialog_alert).on("shown.bs.modal",function(){dialog_alert.find(".btn-focus:last").focus()})}}}))}}),dialog_confirm.find(".modal-body").addClass("alert-warning"),dialog_confirm.find(".modal-dialog").css("width","34%"),$(dialog_confirm).on("shown.bs.modal",function(){dialog_confirm.find(".btn-focus:last").focus()})}),jQuery(".page-content").on("click","ul.dropdown-menu [data-toggle=dropdown]",function(e){e.preventDefault(),e.stopPropagation(),$(this).parent().siblings().removeClass("open"),$(this).parent().toggleClass("open")})},_calculateFixedSidebarViewportHeight=function(){var e=$(window).height()-$(".header").height()+1;return $("body").hasClass("page-footer-fixed")&&(e-=$(".footer").outerHeight()),e},handleFixedSidebar=function(){var e=$(".page-sidebar-menu");if(1===e.parent(".slimScrollDiv").size()&&(e.slimScroll({destroy:!0}),e.removeAttr("style"),$(".page-sidebar").removeAttr("style")),0===$(".page-sidebar-fixed").size())return void handleSidebarAndContentHeight();var a=_getViewPort();if(a.width>=992){var o=_calculateFixedSidebarViewportHeight();e.slimScroll({size:"7px",color:"#a1b2bd",opacity:.3,position:isRTL?"left":"right",height:o,allowPageScroll:!1,disableFadeOut:!1}),handleSidebarAndContentHeight()}},handleFixedSidebarHoverable=function(){$("body").hasClass("page-sidebar-fixed")!==!1&&($(".page-sidebar").off("mouseenter").on("mouseenter",function(){var e=$("body");e.hasClass("page-sidebar-closed")===!1||e.hasClass("page-sidebar-fixed")===!1||$(this).hasClass("page-sidebar-hovering")||(e.removeClass("page-sidebar-closed").addClass("page-sidebar-hover-on"),e.hasClass("page-sidebar-reversed")?$(this).width(sidebarWidth):($(this).addClass("page-sidebar-hovering"),$(this).animate({width:sidebarWidth},400,"",function(){$(this).removeClass("page-sidebar-hovering")})))}),$(".page-sidebar").off("mouseleave").on("mouseleave",function(){var e=$("body");e.hasClass("page-sidebar-hover-on")===!1||e.hasClass("page-sidebar-fixed")===!1||$(this).hasClass("page-sidebar-hovering")||(e.hasClass("page-sidebar-reversed")?($("body").addClass("page-sidebar-closed").removeClass("page-sidebar-hover-on"),$(this).width(sidebarCollapsedWidth)):($(this).addClass("page-sidebar-hovering"),$(this).animate({width:sidebarCollapsedWidth},400,"",function(){$("body").addClass("page-sidebar-closed").removeClass("page-sidebar-hover-on"),$(this).removeClass("page-sidebar-hovering")})))}))},handleSidebarToggler=function(){var e=_getViewPort();$.cookie&&"1"===$.cookie("sidebar_closed")&&e.width>=992&&$("body").addClass("page-sidebar-closed"),$(".page-sidebar, .header").on("click",".sidebar-toggler",function(e){var a=$("body"),o=$(".page-sidebar");return a.hasClass("page-sidebar-hover-on")&&a.hasClass("page-sidebar-fixed")||o.hasClass("page-sidebar-hovering")?(a.removeClass("page-sidebar-hover-on"),o.css("width","").hide().show(),handleSidebarAndContentHeight(),$.cookie&&$.cookie("sidebar_closed","0"),e.stopPropagation(),void runResponsiveHandlers()):($(".sidebar-search",o).removeClass("open"),a.hasClass("page-sidebar-closed")?(a.removeClass("page-sidebar-closed"),a.hasClass("page-sidebar-fixed")&&o.css("width",""),$.cookie&&$.cookie("sidebar_closed","0")):(a.addClass("page-sidebar-closed"),$.cookie&&$.cookie("sidebar_closed","1")),handleSidebarAndContentHeight(),void runResponsiveHandlers())}),$(".page-sidebar").on("click",".sidebar-search .remove",function(e){e.preventDefault(),$(".sidebar-search").removeClass("open")}),$(".page-sidebar .sidebar-search").on("keypress","input.form-control",function(e){return 13==e.which?($(".sidebar-search").submit(),!1):void 0}),$(".sidebar-search .submit").on("click",function(e){e.preventDefault(),$("body").hasClass("page-sidebar-closed")&&0==$(".sidebar-search").hasClass("open")?(1===$(".page-sidebar-fixed").size()&&$(".page-sidebar .sidebar-toggler").click(),$(".sidebar-search").addClass("open")):$(".sidebar-search").submit()}),$(".header .search-form").on("keypress","input.form-control",function(e){return 13==e.which?($(".sidebar-search").submit(),!1):void 0}),$(".header .search-form .submit").on("click",function(e){e.preventDefault(),$(".header .search-form").submit()})},handleHorizontalMenu=function(){$(".header").on("click",".hor-menu .hor-menu-search-form-toggler",function(e){$(this).hasClass("off")?($(this).removeClass("off"),$(".header .hor-menu .search-form").hide()):($(this).addClass("off"),$(".header .hor-menu .search-form").show()),e.preventDefault()}),$(".header").on("click",'.hor-menu a[data-toggle="tab"]',function(e){e.preventDefault();var a=$(".hor-menu .nav"),o=a.find("li.current");$("li.active",o).removeClass("active"),$(".selected",o).remove();var t=$(this).parents("li").last();t.addClass("current"),t.find("a:first").append('<span class="selected"></span>')}),$(".header").on("click",".hor-menu .search-form .btn",function(e){$(".form-search").submit(),e.preventDefault()}),$(".header").on("keypress",".hor-menu .search-form input",function(e){return 13==e.which?($(".form-search").submit(),!1):void 0})},handleGoTop=function(){jQuery(".footer").on("click",".go-top",function(e){App.scrollTo(),e.preventDefault()})},handlePortletTools=function(){jQuery("body").on("click",".portlet > .portlet-title > .tools > a.remove",function(e){e.preventDefault(),jQuery(this).closest(".portlet").remove()}),jQuery("body").on("click",".portlet > .portlet-title > .tools > a.reload",function(e){e.preventDefault();var a=jQuery(this).closest(".portlet").children(".portlet-body"),o=jQuery(this).attr("data-url"),t=$(this).attr("data-error-display");o?(App.blockUI({target:a,iconOnly:!0}),$.ajax({type:"GET",cache:!1,url:o,dataType:"html",success:function(e){App.unblockUI(a),a.html(e)},error:function(){App.unblockUI(a);var e="Error on reloading the content. Please check your connection and try again.";"toastr"==t&&toastr?toastr.error(e):"notific8"==t&&$.notific8?($.notific8("zindex",11500),$.notific8(e,{theme:"ruby",life:3e3})):alert(e)}})):(App.blockUI({target:a,iconOnly:!0}),window.setTimeout(function(){App.unblockUI(a)},1e3))}),$('.portlet .portlet-title a.reload[data-load="true"]').click(),jQuery("body").on("click",".portlet > .portlet-title > .tools > .collapse, .portlet .portlet-title > .tools > .expand",function(e){e.preventDefault();var a=jQuery(this).closest(".portlet").children(".portlet-body");jQuery(this).hasClass("collapse")?(jQuery(this).removeClass("collapse").addClass("expand"),a.slideUp(200)):(jQuery(this).removeClass("expand").addClass("collapse"),a.slideDown(200))})},handleUniform=function(){if(jQuery().uniform){var e=$("input[type=checkbox]:not(.toggle, .make-switch), input[type=radio]:not(.toggle, .star, .make-switch)");e.size()>0&&e.each(function(){0==$(this).parents(".checker").size()&&($(this).show(),$(this).uniform())})}},handleBootstrapSwitch=function(){jQuery().bootstrapSwitch&&$(".make-switch").bootstrapSwitch()},handleAccordions=function(){jQuery("body").on("shown.bs.collapse",".accordion.scrollable",function(e){App.scrollTo($(e.target))})},handleTabs=function(){if($("body").on("shown.bs.tab",".nav.nav-tabs",function(){handleSidebarAndContentHeight()}),location.hash){var e=location.hash.substr(1);$('a[href="#'+e+'"]').parents(".tab-pane:hidden").each(function(){var e=$(this).attr("id");$('a[href="#'+e+'"]').click()}),$('a[href="#'+e+'"]').click()}},handleModals=function(){$("body").on("hide.bs.modal",function(){$(".modal:visible").size()>1&&0==$("html").hasClass("modal-open")?$("html").addClass("modal-open"):$(".modal:visible").size()<=1&&$("html").removeClass("modal-open")}),$("body").on("show.bs.modal",".modal",function(){$(this).hasClass("modal-scroll")&&$("body").addClass("modal-open-noscroll")}),$("body").on("hide.bs.modal",".modal",function(){$("body").removeClass("modal-open-noscroll")})},handleTooltips=function(){jQuery(".tooltips").tooltip()},handleDropdowns=function(){$("body").on("click",".dropdown-menu.hold-on-click",function(e){e.stopPropagation()})},handleDropdownHover=function(){},handleAlerts=function(){$("body").on("click",'[data-close="alert"]',function(e){$(this).parent(".alert").hide(),e.preventDefault()})},lastPopedPopover,handlePopovers=function(){jQuery(".popovers").popover(),$(document).on("click.bs.popover.data-api",function(){lastPopedPopover&&lastPopedPopover.popover("hide")})},handleScrollers=function(){$(".scroller").each(function(){var e;e=$(this).attr("data-height")?$(this).attr("data-height"):$(this).css("height"),$(this).slimScroll({allowPageScroll:!0,size:"7px",color:$(this).attr("data-handle-color")?$(this).attr("data-handle-color"):"#bbb",railColor:$(this).attr("data-rail-color")?$(this).attr("data-rail-color"):"#eaeaea",position:isRTL?"left":"right",height:e,alwaysVisible:"1"==$(this).attr("data-always-visible")?!0:!1,railVisible:"1"==$(this).attr("data-rail-visible")?!0:!1,disableFadeOut:!0})})},handleFancybox=function(){jQuery.fancybox&&jQuery(".fancybox-button").size()>0&&jQuery(".fancybox-button").fancybox({groupAttr:"data-rel",prevEffect:"none",nextEffect:"none",closeBtn:!0,helpers:{title:{type:"inside"}}})},handleFixInputPlaceholderForIE=function(){(isIE8||isIE9)&&jQuery("input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)").each(function(){var e=jQuery(this);""==e.val()&&""!=e.attr("placeholder")&&e.addClass("placeholder").val(e.attr("placeholder")),e.focus(function(){e.val()==e.attr("placeholder")&&e.val("")}),e.blur(function(){(""==e.val()||e.val()==e.attr("placeholder"))&&e.val(e.attr("placeholder"))})})},handleFullScreenMode=function(){function e(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}$("#trigger_fullscreen").click(function(){e()})},handleSelect2=function(){jQuery().select2&&$(".select2me").select2({placeholder:"Select",allowClear:!0})},handleTheme=function(){var e=$(".theme-panel");0==$("body").hasClass("page-boxed")&&$(".layout-option",e).val("fluid"),$(".sidebar-option",e).val("default"),$(".header-option",e).val("fixed"),$(".footer-option",e).val("default"),$(".sidebar-pos-option").attr("disabled")===!1&&$(".sidebar-pos-option",e).val(App.isRTL()?"right":"left");var a=function(){$("body").removeClass("page-boxed").removeClass("page-footer-fixed").removeClass("page-sidebar-fixed").removeClass("page-header-fixed").removeClass("page-sidebar-reversed"),$(".header > .header-inner").removeClass("container"),1===$(".page-container").parent(".container").size()&&$(".page-container").insertAfter("body > .clearfix"),1===$(".footer > .container").size()?$(".footer").html($(".footer > .container").html()):1===$(".footer").parent(".container").size()&&$(".footer").insertAfter(".page-container"),$("body > .container").remove()},o="",t=function(){var t=$(".layout-option",e).val(),n=$(".sidebar-option",e).val(),s=$(".header-option",e).val(),i=$(".footer-option",e).val(),r=$(".sidebar-pos-option",e).val();if("fixed"==n&&"default"==s&&(alert("Default Header with Fixed Sidebar option is not supported. Proceed with Fixed Header with Fixed Sidebar."),$(".header-option",e).val("fixed"),$(".sidebar-option",e).val("fixed"),n="fixed",s="fixed"),a(),"boxed"===t){$("body").addClass("page-boxed"),$(".header > .header-inner").addClass("container");{$("body > .clearfix").after('<div class="container"></div>')}$(".page-container").appendTo("body > .container"),"fixed"===i?$(".footer").html('<div class="container">'+$(".footer").html()+"</div>"):$(".footer").appendTo("body > .container")}o!=t&&runResponsiveHandlers(),o=t,"fixed"===s?($("body").addClass("page-header-fixed"),$(".header").removeClass("navbar-static-top").addClass("navbar-fixed-top")):($("body").removeClass("page-header-fixed"),$(".header").removeClass("navbar-fixed-top").addClass("navbar-static-top")),$("body").hasClass("page-full-width")===!1&&("fixed"===n?$("body").addClass("page-sidebar-fixed"):$("body").removeClass("page-sidebar-fixed")),"fixed"===i?$("body").addClass("page-footer-fixed"):$("body").removeClass("page-footer-fixed"),App.isRTL()?"left"===r?($("body").addClass("page-sidebar-reversed"),$("#frontend-link").tooltip("destroy").tooltip({placement:"right"})):($("body").removeClass("page-sidebar-reversed"),$("#frontend-link").tooltip("destroy").tooltip({placement:"left"})):"right"===r?($("body").addClass("page-sidebar-reversed"),$("#frontend-link").tooltip("destroy").tooltip({placement:"left"})):($("body").removeClass("page-sidebar-reversed"),$("#frontend-link").tooltip("destroy").tooltip({placement:"right"})),handleSidebarAndContentHeight(),handleFixedSidebar(),handleFixedSidebarHoverable()},n=function(e){var a=App.isRTL()?e+"-rtl":e;$("#style_color").attr("href","assets/css/themes/"+a+".css"),$.cookie&&$.cookie("style_color",e)};$(".toggler",e).click(function(){$(".toggler").hide(),$(".toggler-close").show(),$(".theme-panel > .theme-options").show()}),$(".toggler-close",e).click(function(){$(".toggler").show(),$(".toggler-close").hide(),$(".theme-panel > .theme-options").hide()}),$(".theme-colors > ul > li",e).click(function(){var a=$(this).attr("data-style");n(a),$("ul > li",e).removeClass("current"),$(this).addClass("current")}),$(".layout-option, .header-option, .sidebar-option, .footer-option, .sidebar-pos-option",e).change(t),$.cookie&&$.cookie("style_color")&&n($.cookie("style_color"))};return{init:function(){handleInit(),handleResponsiveOnResize(),handleUniform(),handleBootstrapSwitch(),handleScrollers(),handleResponsiveOnInit(),handleFixedSidebar(),handleFixedSidebarHoverable(),handleSidebarMenu(),handleHorizontalMenu(),handleSidebarToggler(),handleFixInputPlaceholderForIE(),handleGoTop(),handleTheme(),handleFancybox(),handleSelect2(),handlePortletTools(),handleAlerts(),handleDropdowns(),handleTabs(),handleTooltips(),handlePopovers(),handleAccordions(),handleModals(),handleFullScreenMode()},initAjax:function(){handleScrollers(),handleSelect2(),handleDropdowns(),handleTooltips(),handlePopovers(),handleAccordions(),handleUniform(),handleBootstrapSwitch(),handleDropdownHover(),$("select.readonly").select_readonly()},fixContentHeight:function(){handleSidebarAndContentHeight()},setLastPopedPopover:function(e){lastPopedPopover=e},addResponsiveHandler:function(e){responsiveHandlers.push(e)},setEqualHeight:function(e){var a=0;e=jQuery(e),e.each(function(){var e=$(this).height();e>a&&(tallestColumn=e)}),e.height(a)},scrollTo:function(e,a){var o=e&&e.size()>0?e.offset().top:0;e&&($("body").hasClass("page-header-fixed")&&(o-=$(".header").height()),o+=a?a:-1*e.height()),jQuery("html,body").animate({scrollTop:o},"slow")},scrollTop:function(){App.scrollTo()},blockUI:function(e){var e=$.extend(!0,{},e),a="";if(a=e.iconOnly?'<div class="loading-message '+(e.boxed?"loading-message-boxed":"")+'"><img style="" src="'+(e.image?e.image:"assets/img/loading-spinner-grey.gif")+'" align=""></div>':e.textOnly?'<div class="loading-message '+(e.boxed?"loading-message-boxed":"")+'"><span>&nbsp;&nbsp;'+(e.message?e.message:"LOADING...")+"</span></div>":'<div class="loading-message '+(e.boxed?"loading-message-boxed":"")+'"><img style="" src="'+(e.image?e.image:"assets/img/loading-spinner-grey.gif")+'" align=""><span>&nbsp;&nbsp;'+(e.message?e.message:"LOADING...")+"</span></div>",e.target){var o=jQuery(e.target);o.height()<=$(window).height()&&(e.cenrerY=!0),o.block({message:a,baseZ:e.zIndex?e.zIndex:1e3,centerY:void 0!=e.cenrerY?e.cenrerY:!1,css:{top:"10%",border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:e.overlayColor?e.overlayColor:"#000",opacity:e.boxed?.05:.1,cursor:"wait"}})}else $.blockUI({message:a,baseZ:e.zIndex?e.zIndex:1e3,css:{border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:e.overlayColor?e.overlayColor:"#000",opacity:e.boxed?.05:.1,cursor:"wait"}})},unblockUI:function(e){e?jQuery(e).unblock({onUnblock:function(){jQuery(e).css("position",""),jQuery(e).css("zoom","")}}):$.unblockUI()},startPageLoading:function(e){$(".page-loading").remove(),$("body").append('<div class="page-loading"><img src="assets/img/loading-spinner-grey.gif"/>&nbsp;&nbsp;<span>'+(e?e:"Loading...")+"</span></div>")},stopPageLoading:function(){$(".page-loading").remove()},initUniform:function(e){e?jQuery(e).each(function(){0==$(this).parents(".checker").size()&&($(this).show(),$(this).uniform())}):handleUniform()},updateUniform:function(e){$.uniform.update(e)},initFancybox:function(){handleFancybox()},getActualVal:function(e){var e=jQuery(e);return e.val()===e.attr("placeholder")?"":e.val()},getURLParameter:function(e){var a,o,t=window.location.search.substring(1),n=t.split("&");for(a=0;a<n.length;a++)if(o=n[a].split("="),o[0]==e)return unescape(o[1]);return null},isTouchDevice:function(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}},getUniqueID:function(){return"prefix_"+Math.floor(Math.random()*(new Date).getTime())},alert:function(e){e=$.extend(!0,{container:"",place:"append",type:"success",message:"",close:!0,reset:!0,focus:!0,closeInSeconds:0,icon:""},e);var a=App.getUniqueID("app_alert"),o='<div id="'+a+'" class="app-alerts alert alert-'+e.type+' fade in">'+(e.close?'<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>':"")+(""!=e.icon?'<i class="fa-lg fa fa-'+e.icon+'"></i>  ':"")+e.message+"</div>";e.reset&&$(".app-alerts").remove(),e.container?"append"==e.place?$(e.container).append(o):$(e.container).prepend(o):$(".page-breadcrumb").after(o),e.focus&&App.scrollTo($("#"+a)),e.closeInSeconds>0&&setTimeout(function(){$("#"+a).remove()},1e3*e.closeInSeconds)},isIE8:function(){return isIE8},isIE9:function(){return isIE9},isRTL:function(){return isRTL},getLayoutColorCode:function(e){return layoutColorCodes[e]?layoutColorCodes[e]:""}}}();