"use strict";var KTApp=function(){var t={},e=function(t){var e=t.data("theme")?"tooltip-"+t.data("theme"):"",a="auto"==t.data("width")?"tooltop-auto-width":"",n=t.data("trigger")?t.data("trigger"):"hover";$(t).tooltip({trigger:n,template:'
'})},a=function(){$('[data-toggle="tooltip"]').each((function(){e($(this))}))},n=function(t){var e=t.data("skin")?"popover-"+t.data("skin"):"",a=t.data("trigger")?t.data("trigger"):"hover";t.popover({trigger:a,template:' '})},i=function(){$('[data-toggle="popover"]').each((function(){n($(this))}))},o=function(t,e){t=$(t),new KTCard(t[0],e)},l=function(){$('[data-card="true"]').each((function(){var t=$(this);!0!==t.data("data-card-initialized")&&(o(t,{}),t.data("data-card-initialized",!0))}))};return{init:function(e){e&&(t=e),KTApp.initComponents()},initComponents:function(){$('[data-scroll="true"]').each((function(){var t=$(this);KTUtil.scrollInit(this,{mobileNativeScroll:!0,handleWindowResize:!0,rememberPosition:"true"==t.data("remember-position")})})),a(),i(),$("body").on("click","[data-close=alert]",(function(){$(this).closest(".alert").hide()})),$(".custom-file-input").on("change",(function(){var t=$(this).val();$(this).next(".custom-file-label").addClass("selected").html(t)})),l(),"undefined"!=typeof Sticky&&new Sticky('[data-sticky="true"]'),$("body").on("show.bs.dropdown",(function(t){var e=$(t.target).find("[data-attach='body']");if(0!==e.length){var a=$(t.target).find(".dropdown-menu").detach();e.data("dropdown-menu",a),$("body").append(a),a.css("display","block"),a.position({my:"right top",at:"right bottom",of:$(t.relatedTarget)})}})),$("body").on("hide.bs.dropdown",(function(t){var e=$(t.target).find("[data-attach='body']");if(0!==e.length){var a=e.data("dropdown-menu");$(t.target).append(a.detach()),a.hide()}}))},initTooltips:function(){a()},initTooltip:function(t){e(t)},initPopovers:function(){i()},initPopover:function(t){n(t)},initCard:function(t,e){o(t,e)},initCards:function(){l()},initSticky:function(){initSticky()},initAbsoluteDropdown:function(t){!function(t){var e;t&&$("body").on("show.bs.dropdown",t,(function(t){e=$(t.target).find(".dropdown-menu"),$("body").append(e.detach()),e.css("display","block"),e.position({my:"right top",at:"right bottom",of:$(t.relatedTarget)})})).on("hide.bs.dropdown",t,(function(t){$(t.target).append(e.detach()),e.hide()}))}(t)},block:function(t,e){var a,n=$(t),i='0){var o="blockui "+(!1===e.shadow?"blockui":"");a=''+e.message+""+i+"
";n=document.createElement("div");$("body").prepend(n),KTUtil.addClass(n,o),n.innerHTML=a,e.width=KTUtil.actualWidth(n)+10,KTUtil.remove(n),"body"==t&&(a=''+e.message+""+i+"
")}else a=i;var l={message:a,centerY:e.centerY,centerX:e.centerX,css:{top:"30%",left:"50%",border:"0",padding:"0",backgroundColor:"none",width:e.width},overlayCSS:{backgroundColor:e.overlayColor,opacity:e.opacity,cursor:"wait",zIndex:"body"==t?1100:10},onUnblock:function(){n&&n[0]&&(KTUtil.css(n[0],"position",""),KTUtil.css(n[0],"zoom",""))}};"body"==t?(l.css.top="50%",$.blockUI(l)):(n=$(t)).block(l)},unblock:function(t){t&&"body"!=t?$(t).unblock():$.unblockUI()},blockPage:function(t){return KTApp.block("body",t)},unblockPage:function(){return KTApp.unblock("body")},getSettings:function(){return t}}}();"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTApp),$(document).ready((function(){KTApp.init(KTAppSettings)}));var KTCard=function(t,e){var a=this,n=KTUtil.getById(t),i=KTUtil.getBody();if(n){var o={toggleSpeed:400,sticky:{releseOnReverse:!1,offset:300,zIndex:101}},l={construct:function(t){return KTUtil.data(n).has("card")?a=KTUtil.data(n).get("card"):(l.init(t),l.build(),KTUtil.data(n).set("card",a)),a},init:function(t){a.element=n,a.events=[],a.options=KTUtil.deepExtend({},o,t),a.header=KTUtil.child(n,".card-header"),a.footer=KTUtil.child(n,".card-footer"),KTUtil.child(n,".card-body")?a.body=KTUtil.child(n,".card-body"):KTUtil.child(n,".form")&&(a.body=KTUtil.child(n,".form"))},build:function(){var t=KTUtil.find(a.header,"[data-card-tool=remove]");t&&KTUtil.addEvent(t,"click",(function(t){t.preventDefault(),l.remove()}));var e=KTUtil.find(a.header,"[data-card-tool=reload]");e&&KTUtil.addEvent(e,"click",(function(t){t.preventDefault(),l.reload()}));var n=KTUtil.find(a.header,"[data-card-tool=toggle]");n&&KTUtil.addEvent(n,"click",(function(t){t.preventDefault(),l.toggle()}))},initSticky:function(){a.options.sticky.offset;a.header&&window.addEventListener("scroll",l.onScrollSticky)},onScrollSticky:function(t){var e=a.options.sticky.offset;if(!isNaN(e)){var n=KTUtil.getScrollTop();n>=e&&!1===KTUtil.hasClass(i,"card-sticky-on")?(l.eventTrigger("stickyOn"),KTUtil.addClass(i,"card-sticky-on"),l.updateSticky()):1.5*n<=e&&KTUtil.hasClass(i,"card-sticky-on")&&(l.eventTrigger("stickyOff"),KTUtil.removeClass(i,"card-sticky-on"),l.resetSticky())}},updateSticky:function(){var t,e,n;a.header&&(KTUtil.hasClass(i,"card-sticky-on")&&(t=a.options.sticky.position.top instanceof Function?parseInt(a.options.sticky.position.top.call(this,a)):parseInt(a.options.sticky.position.top),e=a.options.sticky.position.left instanceof Function?parseInt(a.options.sticky.position.left.call(this,a)):parseInt(a.options.sticky.position.left),n=a.options.sticky.position.right instanceof Function?parseInt(a.options.sticky.position.right.call(this,a)):parseInt(a.options.sticky.position.right),KTUtil.css(a.header,"z-index",a.options.sticky.zIndex),KTUtil.css(a.header,"top",t+"px"),KTUtil.css(a.header,"left",e+"px"),KTUtil.css(a.header,"right",n+"px")))},resetSticky:function(){a.header&&!1===KTUtil.hasClass(i,"card-sticky-on")&&(KTUtil.css(a.header,"z-index",""),KTUtil.css(a.header,"top",""),KTUtil.css(a.header,"left",""),KTUtil.css(a.header,"right",""))},remove:function(){!1!==l.eventTrigger("beforeRemove")&&(KTUtil.remove(n),l.eventTrigger("afterRemove"))},setContent:function(t){t&&(a.body.innerHTML=t)},getBody:function(){return a.body},getSelf:function(){return n},reload:function(){l.eventTrigger("reload")},toggle:function(){KTUtil.hasClass(n,"card-collapse")||KTUtil.hasClass(n,"card-collapsed")?l.expand():l.collapse()},collapse:function(){!1!==l.eventTrigger("beforeCollapse")&&(KTUtil.slideUp(a.body,a.options.toggleSpeed,(function(){l.eventTrigger("afterCollapse")})),KTUtil.addClass(n,"card-collapse"))},expand:function(){!1!==l.eventTrigger("beforeExpand")&&(KTUtil.slideDown(a.body,a.options.toggleSpeed,(function(){l.eventTrigger("afterExpand")})),KTUtil.removeClass(n,"card-collapse"),KTUtil.removeClass(n,"card-collapsed"))},eventTrigger:function(t){for(var e=0;eo&&eo?(!1===i.hasAttribute("data-header-scroll")&&i.setAttribute("data-header-scroll","on"),t&&(l.eventTrigger("scrollOn",a),t=!1)):(!0===i.hasAttribute("data-header-scroll")&&i.removeAttribute("data-header-scroll"),0==t&&(l.eventTrigger("scrollOff",a),t=!0)))}))},eventTrigger:function(t,e){for(var n=0;n .menu-toggle, [data-menu-toggle="click"] > .menu-link .menu-toggle',"click",r.handleSubmenuDropdownClick),a.eventHandlers.event_5=KTUtil.on(i,'[data-menu-toggle="tab"] > .menu-toggle, [data-menu-toggle="tab"] > .menu-link .menu-toggle',"click",r.handleSubmenuDropdownTabClick)),a.eventHandlers.event_6=KTUtil.on(i,".menu-item > .menu-link:not(.menu-toggle):not(.menu-link-toggle-skip)","click",r.handleLinkClick),a.options.scroll&&a.options.scroll.height&&r.scrollInit()},reset:function(){KTUtil.off(i,"click",a.eventHandlers.event_1),KTUtil.off(i,"mouseover",a.eventHandlers.event_2),KTUtil.off(i,"mouseout",a.eventHandlers.event_3),KTUtil.off(i,"click",a.eventHandlers.event_4),KTUtil.off(i,"click",a.eventHandlers.event_5),KTUtil.off(i,"click",a.eventHandlers.event_6)},scrollInit:function(){a.options.scroll&&a.options.scroll.height?(KTUtil.scrollDestroy(i,!0),KTUtil.scrollInit(i,{mobileNativeScroll:!0,windowScroll:!1,resetHeightOnDestroy:!0,handleWindowResize:!0,height:a.options.scroll.height,rememberPosition:a.options.scroll.rememberPosition})):KTUtil.scrollDestroy(i,!0)},scrollUpdate:function(){a.options.scroll&&a.options.scroll.height&&KTUtil.scrollUpdate(i)},scrollTop:function(){a.options.scroll&&a.options.scroll.height&&KTUtil.scrollTop(i)},getSubmenuMode:function(t){return KTUtil.isBreakpointUp("lg")?t&&KTUtil.hasAttr(t,"data-menu-toggle")&&"hover"==KTUtil.attr(t,"data-menu-toggle")?"dropdown":KTUtil.isset(a.options.submenu,"desktop.state.body")?KTUtil.hasClasses(o,a.options.submenu.desktop.state.body)?a.options.submenu.desktop.state.mode:a.options.submenu.desktop.default:KTUtil.isset(a.options.submenu,"desktop")?a.options.submenu.desktop:void 0:KTUtil.isBreakpointUp("md")&&KTUtil.isBreakpointDown("lg")&&KTUtil.isset(a.options.submenu,"tablet")?a.options.submenu.tablet:!(!KTUtil.isBreakpointDown("md")||!KTUtil.isset(a.options.submenu,"mobile"))&&a.options.submenu.mobile},isConditionalSubmenuDropdown:function(){return!(!KTUtil.isBreakpointUp("lg")||!KTUtil.isset(a.options.submenu,"desktop.state.body"))},resetSubmenuProps:function(t){var e=KTUtil.findAll(i,".menu-submenu");if(e)for(var a=0,n=e.length;a0&&!1===KTUtil.hasClass(e,"menu-toggle")&&0===e.querySelectorAll(".menu-toggle").length)for(var n=0,o=a.length;n