{"version":3,"sources":["app.js"],"names":["$","Components","prototype","initBootstrapTooltip","fn","tooltip","initBootstrapPopover","popover","initContentMenu","on","css","show","hide","init","this","Constructor","window","jQuery","App","body","initSidebar","$this","toggleClass","hasClass","attr","initLayoutFunctions","removeClass","addClass","innerWidth","navbarHeight","footerHeight","defaultLayout","innerHeight","length","e","parent","preventDefault","stopPropagation","animate","width","initRightSidebarToggle"],"mappings":"CAQA,SAAAA,GAGA,IAAAC,EAAA,aAKAA,EAAAC,UAAAC,qBAAA,WACAH,EAAAI,GAAAC,SAAAL,EAAA,2BAAAK,WAMAJ,EAAAC,UAAAI,qBAAA,WACAN,EAAAI,GAAAG,SAAAP,EAAA,2BAAAO,WAOAN,EAAAC,UAAAM,gBAAA,WACAR,EAAA,0BAAAS,GAAA,QAAA,WACAT,EAAA,sBAAAU,IAAA,OAAA,KAGAV,EAAA,2BAAAS,GAAA,QAAA,WACAT,EAAA,sBAAAU,IAAA,QAAA,OAGAV,EAAA,4BAAAS,GAAA,QAAA,WACAT,EAAA,kBAAAW,KAAA,YAGAX,EAAA,4BAAAS,GAAA,QAAA,WACAT,EAAA,kBAAAY,KAAA,aAOAX,EAAAC,UAAAW,KAAA,WAEAC,KAAAX,uBACAW,KAAAR,uBACAQ,KAAAN,mBAGAR,EAAAC,WAAA,IAAAA,EAAAD,EAAAC,WAAAc,YAAAd,EAnDA,CAqDAe,OAAAC,QAEA,SAAAjB,GACA,aAEA,IAAAkB,EAAA,WACAJ,KAAAK,KAAAnB,EAAA,QACAc,KAAAE,OAAAhB,EAAA,WAOAkB,EAAAhB,UAAAkB,YAAA,WACA,IAAAC,EAAAP,KAEAd,EAAA,wBAAAS,GAAA,QAAA,WACAY,EAAAF,KAAAG,YAAA,oBAGAtB,EAAA,QAAAuB,SAAA,oBACAvB,EAAA,2BAAAwB,KAAA,cAAA,IAEAxB,EAAA,2BAAAwB,KAAA,cAAA,eASAN,EAAAhB,UAAAuB,oBAAA,WAEAzB,EAAA,yBAAAS,GAA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c,MAAAqB,SAAAb,YAAA,QACAY,EAAAE,iBACAF,EAAAG,sBAKArC,EAAA,mCACAS,GAAA,QAAA,WACAT,EAAAc,MAAAwB,QAAA,CACAC,MAAA,UACA,OAEA9B,GAAA,WAAA,WACAT,EAAAc,MAAAwB,QAAA,CACAC,MAAA,UACA,QAUArB,EAAAhB,UAAAsC,uBAAA,WACAxC,EAAA,4BAAAS,GAAA,QAAA,WACAT,EAAA,kBAAAuB,SAAA,UAGAvB,EAAA,kBAAA0B,YAAA,UAFA1B,EAAA,kBAAA2B,SAAA,aAOAT,EAAAhB,UAAAW,KAAA,WAEAC,KAAAM,cACAN,KAAAW,sBACAX,KAAA0B,yBACAxC,EAAAC,WAAAY,QAGAb,EAAAkB,IAAA,IAAAA,EACAlB,EAAAkB,IAAAH,YAAAG,EApJA,CAsJAF,OAAAC,QAIA,SAAAjB,GACA,aAEAgB,OAAAC,OADAC,IAAAL,OAFA","file":"app.min.js","sourcesContent":["/*\nTemplate Name: Klorofil Pro - Bootstrap 4 Admin Dashboard Template\nAuthor: The Develovers\nVersion: 2.0.0\nWebsite: https://themeineed.com/\nContact: support@themeineed.com\n*/\n\n!function ($) {\n \"user strict\";\n\n var Components = function () { };\n\n /**\n Initialize tooltip\n */\n Components.prototype.initBootstrapTooltip = function () {\n $.fn.tooltip && $('[data-toggle=\"tooltip\"]').tooltip()\n },\n\n /**\n Initialize Popover\n */\n Components.prototype.initBootstrapPopover = function () {\n $.fn.popover && $('[data-toggle=\"popover\"]').popover()\n },\n\n /**\n Initialize Content Menu\n */\n\n Components.prototype.initContentMenu = function () {\n $('.btn-open-content-menu').on('click', function() {\n\t\t\t$('.content-menu-left').css('left', 0);\n\t\t});\n\n\t\t$('.btn-close-content-menu').on('click', function() {\n\t\t\t$('.content-menu-left').css('left', -300);\n\t\t});\n\n\t\t$('.inbox-list-message > li').on('click', function() {\n\t\t\t$('.content-right').show('medium');\n\t\t});\n\n\t\t$('.btn-close-content-right').on('click', function() {\n\t\t\t$('.content-right').hide('medium');\n\t\t});\n }\n\n /**\n Initialize all\n */\n Components.prototype.init = function () {\n var $this = this;\n this.initBootstrapTooltip();\n this.initBootstrapPopover();\n this.initContentMenu();\n },\n\n $.Components = new Components, $.Components.Constructor = Components\n\n}(window.jQuery),\n\nfunction ($) {\n \"use strict\";\n\n var App = function () {\n this.body = $('body'),\n this.window = $('window')\n };\n\n /**\n Initialize sidebar\n */\n\n App.prototype.initSidebar = function () {\n var $this = this;\n\n $('.btn-toggle-minified').on('click', function() {\n $this.body.toggleClass('sidebar-minified');\n \n // toggle collapse functionality\n if($('body').hasClass('sidebar-minified')) {\n $('.sidebar a[data-toggle]').attr('data-toggle', \"\");\n } else {\n $('.sidebar a[data-toggle]').attr('data-toggle', \"collapse\");\n }\n });\n },\n\n /**\n Initialize layout functions\n */\n\n App.prototype.initLayoutFunctions = function () {\n // toggle fullwidth\n $('.btn-toggle-fullwidth').on('click', function() {\n if(!$('body').hasClass('layout-fullwidth')) {\n $('body').addClass('layout-default');\n $('body').addClass('layout-fullwidth');\n } else {\n $('body').removeClass('layout-fullwidth');\n $('body').removeClass('layout-default');\n }\n\n if($(window).innerWidth() < 1025) {\n if(!$('body').hasClass('offcanvas-active')) {\n $('body').addClass('offcanvas-active');\n } else {\n $('body').removeClass('offcanvas-active');\n }\n }\n });\n\n var defaultLayout = '', navbarHeight, footerHeight;\n \n // check if layout origin/default is minified\n if($('body').hasClass('sidebar-minified')) {\n defaultLayout = 'minified';\n $('.sidebar a[data-toggle=\"collapse\"]').attr('data-toggle', \"\");\n }\n\n $(window).on('load', function() {\n // adjust right sidebar top position\n $('.right-sidebar').css('top', $('.navbar').innerHeight());\n \n // if page has content-menu, set top padding of main-content\n if($('.has-content-menu').length > 0) {\n $('.navbar + .main-content').css('padding-top', $('.navbar').innerHeight());\n }\n \n // for shorter main content\n if($('.main').innerHeight() < $('#sidebar-nav').innerHeight()) {\n $('.main').css('min-height', $('#sidebar-nav').innerHeight());\n navbarHeight = $('.navbar').innerHeight();\n $('.main-content').css('height', 'calc(100vh - ' + navbarHeight + 'px)');\n $('footer').css('position', 'absolute');\n }\n \n // make full height for layout top navigation\n if($('body').hasClass('layout-topnav')) {\n footerHeight = $('footer').innerHeight();\n $('.main').css('min-height', 'calc(100vh - ' + footerHeight + 'px)');\n }\n });\n\n $(window).on('load resize', function() {\n if($(this).innerWidth() < 1025) {\n if(defaultLayout === 'minified'){\n // remove minified sidebar mode\n $('body').removeClass('sidebar-minified'); \n $('.brand img.logo').attr('src', 'assets/images/logo-white.png');\n $('.sidebar a[data-toggle=\"\"]').attr('data-toggle', \"collapse\");\n }\n } else if(!$('body').hasClass('layout-default')){\n $('body').removeClass('layout-fullwidth');\n \n if(defaultLayout === 'minified') {\n // set back to minified sidebar mode\n $('body').addClass('sidebar-minified');\n $('.sidebar a[data-toggle=\"collapse\"]').attr('data-toggle', \"\");\n }\n }\n \n // handle navbar dropdown submenu on mobile view\n $('.navbar-nav .dropdown-sub [data-toggle=\"dropdown\"]').on('click', function(e) {\n $(this).parent().toggleClass('open');\n e.preventDefault();\n e.stopPropagation();\n });\n });\n\n // search form\n $('.search-form input[type=\"text\"]')\n .on('focus', function() {\n $(this).animate({\n width: '+=50px'\n }, 300);\n })\n .on('focusout', function() {\n $(this).animate({\n width: '-=50px'\n }, 300);\n });\n\n },\n\n\n /**\n Initialize right sidebar toggle\n */\n \n App.prototype.initRightSidebarToggle = function () {\n $('.btn-toggle-rightsidebar').on('click', function() {\n if(!$('.right-sidebar').hasClass('active')) {\n $('.right-sidebar').addClass('active');\n } else {\n $('.right-sidebar').removeClass('active');\n }\n });\n },\n\n App.prototype.init = function () {\n var $this = this;\n this.initSidebar();\n this.initLayoutFunctions();\n this.initRightSidebarToggle();\n $.Components.init();\n },\n\n $.App = new App, \n $.App.Constructor = App\n\n}(window.jQuery),\n\n\n// init main app module\nfunction ($) {\n \"use strict\";\n $.App.init();\n}(window.jQuery);"]}