{"version":3,"sources":["layout.js","hyper.js"],"names":["$","LeftSidebar","this","body","window","menuContainer","prototype","_reset","removeAttr","attr","activateCondensedSidebar","deactivateCondensedSidebar","activateScrollableSidebar","deactivateScrollableSidebar","activateDefaultTheme","activateLightTheme","activateDarkTheme","initMenu","self","metisMenu","document","on","e","preventDefault","toggleClass","each","pageUrl","location","href","split","addClass","parent","prev","init","Constructor","jQuery","Topbar","$body","$window","slideToggle","next","hasClass","parents","first","find","removeClass","RightBar","_selectOptionsFromConfig","config","App","getLayoutConfig","sideBarTheme","prop","isBoxed","isCondensed","isScrollable","isDarkModeEnabled","layout","toggleRightSideBar","target","closest","length","change","val","activateFluid","activateBoxed","activateDefaultSidebarTheme","activateLightSidebarTheme","activateDarkSidebarTheme","deactivateDarkMode","activateDarkMode","resetLayout","LayoutThemeApp","_config","defaultSelectedStyle","SIDEBAR_THEME_DEFAULT","SIDEBAR_THEME_LIGHT","SIDEBAR_THEME_DARK","DEFAULT_CONFIG","_saveConfig","newConfig","extend","sessionStorage","setItem","JSON","stringify","_getStoredConfig","getItem","parse","_applyConfig","_adjustLayout","width","ignoreToStore","clearSavedConfig","removeItem","getConfig","reset","callback","data","Portlet","$portletIdentifier","$portletCloser","$portletRefresher","$this","ev","$portlet","$portlet_parent","remove","children","append","$pd","setTimeout","fadeOut","Math","random","AdvanceFormApp","initSelect2","select2","initMask","idx","obj","maskFormat","reverse","mask","initDateRange","defaultOptions","cancelClass","applyButtonClasses","objOptions","daterangepicker","defaultRangeOptions","startDate","moment","subtract","endDate","ranges","Today","Yesterday","Last 7 Days","Last 30 Days","This Month","startOf","endOf","Last Month","start","end","html","format","initTimePicker","showSeconds","icons","up","down","timepicker","initTouchspin","TouchSpin","initMaxlength","warningClass","limitReachedClass","separator","preText","postText","placement","maxlength","NotificationApp","send","heading","position","loaderBgColor","icon","hideAfter","stack","showHideTransition","options","text","loaderBg","toast","Components","initTooltipPlugin","fn","tooltip","initPopoverPlugin","popover","initToastPlugin","initFormValidation","event","checkValidity","stopPropagation","initSyntaxHighlight","ready","querySelectorAll","forEach","element","n","classList","contains","innerText","to_kill","Infinity","lines","replace","trimRight","i","trim","min","search","out","push","RegExp","join","block","hljs","highlightBlock","delay"],"mappings":"CAWA,SAAAA,GACA,aAEA,SAAAC,IACAC,KAAAC,KAAAH,EAAA,QACAE,KAAAE,OAAAJ,EAAAI,QACAF,KAAAG,cAAAL,EAAA,6BAMAC,EAAAK,UAAAC,OAAA,WACAL,KAAAC,KAAAK,WAAA,sBACAR,EAAA,mBAAAS,KAAA,MAAA,0BACAT,EAAA,sBAAAS,KAAA,MAAA,8BAMAR,EAAAK,UAAAI,yBAAA,WACAR,KAAAC,KAAAM,KAAA,4BAAA,cAMAR,EAAAK,UAAAK,2BAAA,WACAT,KAAAC,KAAAK,WAAA,8BAMAP,EAAAK,UAAAM,0BAAA,WACAV,KAAAC,KAAAM,KAAA,4BAAA,eAMAR,EAAAK,UAAAO,4BAAA,WACAX,KAAAC,KAAAK,WAAA,8BAMAP,EAAAK,UAAAQ,qBAAA,WACAZ,KAAAK,UAMAN,EAAAK,UAAAS,mBAAA,WACAb,KAAAK,SACAP,EAAA,mBAAAS,KAAA,MAAA,+BACAT,EAAA,sBAAAS,KAAA,MAAA,kCACAP,KAAAC,KAAAM,KAAA,qBAAA,UAMAR,EAAAK,UAAAU,kBAAA,WACAd,KAAAK,SACAL,KAAAC,KAAAM,KAAA,qBAAA,SAMAR,EAAAK,UAAAW,SAAA,WACA,IAAAC,EAAAhB,KAGAA,KAAAK,SAGAP,EAAA,aAAAmB,YAIAnB,EAAAoB,UAAAC,GAAA,QAAA,sBAAA,SAAAC,GACAA,EAAAC,iBACAL,EAAAf,KAAAqB,YAAA,oBAUAxB,EAAA,eAAAyB,KAAA,WACA,IAAAC,EAAAtB,OAAAuB,SAAAC,KAAAC,MAAA,QAAA,GACA3B,KAAA0B,MAAAF,IACA1B,EAAAE,MAAA4B,SAAA,UACA9B,EAAAE,MACA6B,SACAD,SAAA,aACA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wE,eAAAvC,OAGA8E,WAAA,WACA3F,SAAAjB,KAAA+L,UAAAvF,OAAA,YACA,KAEA3G,EAAA8C,SAAAb,OAGA7B,OAAA8E,iBACAA,eAAAK,QAAA,qBAEAvF,EAAA8C,SAAAY,qBACAwB,eAAAC,QAAA,mBAAA,KAKAnF,EAAAmG,QAAAlE,OACAjC,EAAAmH,eAAAlF,OACAjC,EAAAiL,WAAAhJ,OAGAjC,EAAAI,QAAAiB,GAAA,OAAA,WACArB,EAAA,WAAAgH,UACAhH,EAAA,cAAAqN,MAAA,KAAArG,QAAA,WAIAhH,EAAAiD,IAAA,IAAAA,EAAAjD,EAAAiD,IAAAf,YAAAe,EA5IA,CA6IA7C,OAAA+B,QAGA,WACA,aAEA/B,OAAA+B,OADAc,IAAAhB,OAFA","file":"app.min.js","sourcesContent":["/**\r\n * Theme: Hyper - Responsive Bootstrap 4 Admin Dashboard\r\n * Author: Coderthemes\r\n * Module/App: Layout Js\r\n */\r\n\r\n\r\n/**\r\n * LeftSidebar\r\n * @param {*} $ \r\n */\r\n!function ($) {\r\n 'use strict';\r\n\r\n var LeftSidebar = function () {\r\n this.body = $('body'),\r\n this.window = $(window),\r\n this.menuContainer = $('#left-side-menu-container');\r\n };\r\n\r\n /**\r\n * Reset the theme\r\n */\r\n LeftSidebar.prototype._reset = function() {\r\n this.body.removeAttr('data-leftbar-theme');\r\n $('#side-main-logo').attr('src', 'assets/images/logo.png');\r\n $('#side-sm-main-logo').attr('src', 'assets/images/logo_sm.png');\r\n },\r\n\r\n /**\r\n * Activates the condensed side bar\r\n */\r\n LeftSidebar.prototype.activateCondensedSidebar = function () {\r\n this.body.attr('data-leftbar-compact-mode', 'condensed');\r\n },\r\n\r\n /**\r\n * Deactivates the condensed side bar\r\n */\r\n LeftSidebar.prototype.deactivateCondensedSidebar = function() {\r\n this.body.removeAttr('data-leftbar-compact-mode');\r\n },\r\n \r\n /**\r\n * Activates the scrollable sidenar\r\n */\r\n LeftSidebar.prototype.activateScrollableSidebar = function() {\r\n this.body.attr('data-leftbar-compact-mode', 'scrollable');\r\n },\r\n\r\n /**\r\n * Deactivates the scrollbar\r\n */\r\n LeftSidebar.prototype.deactivateScrollableSidebar = function() {\r\n this.body.removeAttr('data-leftbar-compact-mode');\r\n },\r\n\r\n /**\r\n * Activates the default theme\r\n */\r\n LeftSidebar.prototype.activateDefaultTheme = function () {\r\n this._reset();\r\n },\r\n \r\n /**\r\n * Activates the light theme\r\n */\r\n LeftSidebar.prototype.activateLightTheme = function() {\r\n this._reset();\r\n $('#side-main-logo').attr('src', 'assets/images/logo-dark.png');\r\n $('#side-sm-main-logo').attr('src', 'assets/images/logo_sm_dark.png');\r\n this.body.attr('data-leftbar-theme', 'light');\r\n },\r\n\r\n /**\r\n * Activates the dark theme\r\n */\r\n LeftSidebar.prototype.activateDarkTheme = function() {\r\n this._reset();\r\n this.body.attr('data-leftbar-theme', 'dark');\r\n },\r\n\r\n /**\r\n * Initilizes the menu\r\n */\r\n LeftSidebar.prototype.initMenu = function() {\r\n var self = this;\r\n\r\n // resets everything\r\n this._reset();\r\n\r\n // sidebar - main menu\r\n $('.side-nav').metisMenu();\r\n\r\n // click events\r\n // Left menu collapse\r\n $(document).on('click', '.button-menu-mobile', function(e) {\r\n e.preventDefault();\r\n self.body.toggleClass('sidebar-enable');\r\n\r\n // if (self.window.width() >= 768) {\r\n // self.body.toggleClass('enlarged');\r\n // } else {\r\n // self.body.removeClass('enlarged');\r\n // }\r\n });\r\n\r\n // activate the menu in left side bar based on url\r\n $('.side-nav a').each(function() {\r\n var pageUrl = window.location.href.split(/[?#]/)[0];\r\n if (this.href == pageUrl) {\r\n $(this).addClass('active');\r\n $(this)\r\n .parent()\r\n .addClass('mm-active'); // add active to li of the current link\r\n $(this)\r\n .parent()\r\n .parent()\r\n .addClass('mm-show');\r\n $(this)\r\n .parent()\r\n .parent()\r\n .prev()\r\n .addClass('active'); // add active class to an anchor\r\n $(this)\r\n .parent()\r\n .parent()\r\n .parent()\r\n .addClass('mm-active');\r\n $(this)\r\n .parent()\r\n .parent()\r\n .parent()\r\n .parent()\r\n .addClass('mm-show'); // add active to li of the current link\r\n $(this)\r\n .parent()\r\n .parent()\r\n .parent()\r\n .parent()\r\n .parent()\r\n .addClass('mm-active');\r\n $(this)\r\n .parent()\r\n .parent()\r\n .parent()\r\n .parent()\r\n .parent()\r\n .parent()\r\n .addClass('mm-show');\r\n $(this)\r\n .parent()\r\n .parent()\r\n .parent()\r\n .parent()\r\n .parent()\r\n .parent()\r\n .parent()\r\n .addClass('mm-active'); // add active to li of the current link\r\n }\r\n });\r\n },\r\n\r\n /**\r\n * Initilizes the menu\r\n */\r\n LeftSidebar.prototype.init = function() {\r\n this.initMenu();\r\n },\r\n \r\n $.LeftSidebar = new LeftSidebar, $.LeftSidebar.Constructor = LeftSidebar\r\n}(window.jQuery),\r\n\r\n\r\n/**\r\n * Topbar\r\n * @param {*} $ \r\n */\r\nfunction ($) {\r\n 'use strict';\r\n\r\n var Topbar = function () {\r\n this.$body = $('body'),\r\n this.$window = $(window)\r\n };\r\n\r\n /**\r\n * Initilizes the menu\r\n */\r\n Topbar.prototype.initMenu = function() {\r\n $('.topnav-menu li a').each(function () {\r\n var pageUrl = window.location.href.split(/[?#]/)[0];\r\n if (this.href == pageUrl) {\r\n $(this).addClass('active');\r\n $(this).parent().parent().addClass('active'); // add active to li of the current link\r\n $(this).parent().parent().parent().parent().addClass('active');\r\n $(this).parent().parent().parent().parent().parent().parent().addClass('active');\r\n }\r\n });\r\n\r\n // Topbar - main menu\r\n $('.navbar-toggle').on('click', function () {\r\n $(this).toggleClass('open');\r\n $('#navigation').slideToggle(400);\r\n });\r\n\r\n $('.dropdown-menu a.dropdown-toggle').on('click', function () {\r\n if (\r\n !$(this)\r\n .next()\r\n .hasClass('show')\r\n ) {\r\n $(this)\r\n .parents('.dropdown-menu')\r\n .first()\r\n .find('.show')\r\n .removeClass('show');\r\n }\r\n var $subMenu = $(this).next('.dropdown-menu');\r\n $subMenu.toggleClass('show');\r\n\r\n return false;\r\n });\r\n },\r\n\r\n /**\r\n * Initilizes the menu\r\n */\r\n Topbar.prototype.init = function() {\r\n this.initMenu();\r\n },\r\n $.Topbar = new Topbar, $.Topbar.Constructor = Topbar\r\n}(window.jQuery),\r\n\r\n\r\n/**\r\n * RightBar\r\n * @param {*} $ \r\n */\r\nfunction ($) {\r\n 'use strict';\r\n\r\n var RightBar = function () {\r\n this.body = $('body'),\r\n this.window = $(window)\r\n };\r\n\r\n /** \r\n * Select the option based on saved config\r\n */\r\n RightBar.prototype._selectOptionsFromConfig = function() {\r\n var config = $.App.getLayoutConfig();\r\n if (config) {\r\n // sideBarTheme\r\n switch (config.sideBarTheme) {\r\n case 'default':\r\n $('#default-check').prop('checked', true);\r\n break;\r\n case 'light':\r\n $('#light-check').prop('checked', true);\r\n break;\r\n case 'dark':\r\n $('#dark-check').prop('checked', true);\r\n break;\r\n }\r\n\r\n if (config.isBoxed) {\r\n $('#boxed-check').prop('checked', true);\r\n } else {\r\n $('#fluid-check').prop('checked', true);\r\n }\r\n if (config.isCondensed) $('#condensed-check').prop('checked', true);\r\n if (config.isScrollable) $('#scrollable-check').prop('checked', true);\r\n if (!config.isScrollable && !config.isCondensed) $('#fixed-check').prop('checked', true);\r\n\r\n // overall color scheme\r\n if (!config.isDarkModeEnabled) {\r\n $('#light-mode-check').prop('checked', true);\r\n if (config.layout === 'vertical')\r\n $('input[type=radio][name=theme]').prop('disabled', false);\r\n } \r\n if (config.isDarkModeEnabled) {\r\n $('#dark-mode-check').prop('checked', true);\r\n if (config.layout === 'vertical')\r\n $('input[type=radio][name=theme]').prop('disabled', false);\r\n }\r\n }\r\n },\r\n \r\n /**\r\n * Toggles the right sidebar\r\n */\r\n RightBar.prototype.toggleRightSideBar = function() {\r\n var self = this;\r\n self.body.toggleClass('right-bar-enabled');\r\n self._selectOptionsFromConfig();\r\n },\r\n\r\n /**\r\n * Initilizes the right side bar\r\n */\r\n RightBar.prototype.init = function() {\r\n var self = this;\r\n\r\n // right side-bar toggle\r\n $(document).on('click', '.right-bar-toggle', function () {\r\n self.toggleRightSideBar();\r\n });\r\n\r\n $(document).on('click', 'body', function (e) {\r\n if ($(e.target).closest('.right-bar-toggle, .right-bar').length > 0) {\r\n return;\r\n }\r\n\r\n if (\r\n $(e.target).closest('.left-side-menu, .side-nav').length > 0 ||\r\n $(e.target).hasClass('button-menu-mobile') ||\r\n $(e.target).closest('.button-menu-mobile').length > 0\r\n ) {\r\n return;\r\n }\r\n $('body').removeClass('right-bar-enabled');\r\n $('body').removeClass('sidebar-enable');\r\n return;\r\n });\r\n\r\n // width mode\r\n $('input[type=radio][name=width]').change(function () {\r\n switch ($(this).val()) {\r\n case 'fluid':\r\n $.App.activateFluid();\r\n break;\r\n case 'boxed':\r\n $.App.activateBoxed();\r\n break;\r\n }\r\n });\r\n\r\n // theme\r\n $('input[type=radio][name=theme]').change(function () {\r\n switch ($(this).val()) {\r\n case 'default':\r\n $.App.activateDefaultSidebarTheme();\r\n break;\r\n case 'light':\r\n $.App.activateLightSidebarTheme();\r\n break;\r\n case 'dark':\r\n $.App.activateDarkSidebarTheme();\r\n break;\r\n }\r\n });\r\n\r\n // compact\r\n $('input[type=radio][name=compact]').change(function () {\r\n switch ($(this).val()) {\r\n case 'fixed':\r\n $.App.deactivateCondensedSidebar();\r\n $.App.deactivateScrollableSidebar();\r\n break;\r\n case 'scrollable':\r\n $.App.activateScrollableSidebar();\r\n break;\r\n case 'condensed':\r\n $.App.activateCondensedSidebar();\r\n break;\r\n }\r\n });\r\n\r\n // overall color scheme\r\n $('input[type=radio][name=color-scheme-mode]').change(function () {\r\n switch ($(this).val()) {\r\n case 'light':\r\n $.App.deactivateDarkMode();\r\n $.App.activateDefaultSidebarTheme();\r\n $('#default-check').prop('checked', true);\r\n $('input[type=radio][name=theme]').prop('disabled', false);\r\n break;\r\n case 'dark':\r\n $.App.activateDarkMode();\r\n $('#dark-check').prop('checked', true);\r\n // $('input[type=radio][name=theme]').prop('disabled', true);\r\n break;\r\n }\r\n }); \r\n\r\n // reset\r\n $('#resetBtn').on('click', function (e) {\r\n e.preventDefault();\r\n // reset to default\r\n $.App.resetLayout(function() {\r\n self._selectOptionsFromConfig();\r\n });\r\n });\r\n },\r\n\r\n $.RightBar = new RightBar, $.RightBar.Constructor = RightBar\r\n}(window.jQuery),\r\n\r\n\r\n/**\r\n * Layout and theme manager\r\n * @param {*} $ \r\n */\r\n\r\nfunction ($) {\r\n 'use strict';\r\n\r\n // Layout and theme manager\r\n var SIDEBAR_THEME_DEFAULT = 'default';\r\n var SIDEBAR_THEME_LIGHT = 'light';\r\n var SIDEBAR_THEME_DARK = 'dark';\r\n\r\n var DEFAULT_CONFIG = {\r\n sideBarTheme: SIDEBAR_THEME_DEFAULT,\r\n isBoxed: false,\r\n isCondensed: false,\r\n isScrollable: false,\r\n isDarkModeEnabled: false\r\n };\r\n\r\n var LayoutThemeApp = function () {\r\n this.body = $('body'),\r\n this.window = $(window),\r\n this._config = {};\r\n this.defaultSelectedStyle = null;\r\n };\r\n\r\n /**\r\n * Preserves the config\r\n */\r\n LayoutThemeApp.prototype._saveConfig = function(newConfig) {\r\n $.extend(this._config, newConfig);\r\n sessionStorage.setItem('_HYPER_CONFIG_', JSON.stringify(this._config));\r\n },\r\n\r\n /**\r\n * Get the stored config\r\n */\r\n LayoutThemeApp.prototype._getStoredConfig = function() {\r\n // getting the saved config if available\r\n var config = sessionStorage.getItem('_HYPER_CONFIG_');\r\n return !config ? DEFAULT_CONFIG : JSON.parse(config);\r\n },\r\n\r\n /**\r\n * Apply the given config and sets the layout and theme\r\n */\r\n LayoutThemeApp.prototype._applyConfig = function() {\r\n var self = this;\r\n\r\n // getting the saved config if available\r\n this._config = this._getStoredConfig();\r\n\r\n // activate menus\r\n $.LeftSidebar.init();\r\n\r\n // sets the theme\r\n switch (self._config.sideBarTheme) {\r\n case SIDEBAR_THEME_DARK: {\r\n self.activateDarkSidebarTheme();\r\n break;\r\n }\r\n case SIDEBAR_THEME_LIGHT: {\r\n self.activateLightSidebarTheme();\r\n break;\r\n }\r\n }\r\n\r\n // enable or disable the dark mode\r\n if (self._config.isDarkModeEnabled)\r\n self.activateDarkMode();\r\n else\r\n self.deactivateDarkMode();\r\n\r\n // sets the boxed\r\n if (self._config.isBoxed) self.activateBoxed();\r\n\r\n // sets condensed view\r\n if (self._config.isCondensed) self.activateCondensedSidebar();\r\n\r\n // sets scrollable navbar\r\n if (self._config.isScrollable) self.activateScrollableSidebar();\r\n },\r\n\r\n /**\r\n * Initilizes the layout\r\n */\r\n LayoutThemeApp.prototype._adjustLayout = function() {\r\n // in case of small size, add class enlarge to have minimal menu\r\n if (this.window.width() >= 767 && this.window.width() <= 1028) {\r\n this.activateCondensedSidebar(true);\r\n } else {\r\n var config = this._getStoredConfig();\r\n if (!config.isCondensed && !config.isScrollable)\r\n this.deactivateCondensedSidebar();\r\n }\r\n },\r\n\r\n /**\r\n * Activate fluid mode\r\n */\r\n LayoutThemeApp.prototype.activateFluid = function() {\r\n this._saveConfig({ isBoxed: false });\r\n this.body.attr('data-layout-mode', 'fluid');\r\n },\r\n\r\n /**\r\n * Activate boxed mode\r\n */\r\n LayoutThemeApp.prototype.activateBoxed = function() {\r\n this._saveConfig({ isBoxed: true });\r\n this.body.attr('data-layout-mode', 'boxed');\r\n },\r\n\r\n /**\r\n * Activates the condensed side bar\r\n */\r\n LayoutThemeApp.prototype.activateCondensedSidebar = function(ignoreToStore) {\r\n if (!ignoreToStore) {\r\n this._saveConfig({\r\n isCondensed: true,\r\n isScrollable: false\r\n });\r\n }\r\n $.LeftSidebar.activateCondensedSidebar();\r\n },\r\n\r\n /**\r\n * Deactivates the condensed side bar\r\n */\r\n LayoutThemeApp.prototype.deactivateCondensedSidebar = function() {\r\n this._saveConfig({ isCondensed: false });\r\n $.LeftSidebar.deactivateCondensedSidebar();\r\n }\r\n\r\n /**\r\n * Activates the scrollable sidenar\r\n */\r\n LayoutThemeApp.prototype.activateScrollableSidebar = function() {\r\n this._saveConfig({ isScrollable: true, isCondensed: false });\r\n $.LeftSidebar.activateScrollableSidebar();\r\n },\r\n\r\n /**\r\n * Deactivates the scrollable sidenar\r\n */\r\n LayoutThemeApp.prototype.deactivateScrollableSidebar = function() {\r\n this._saveConfig({ isScrollable: false });\r\n $.LeftSidebar.deactivateScrollableSidebar();\r\n },\r\n\r\n /**\r\n * Activates the default theme\r\n */\r\n LayoutThemeApp.prototype.activateDefaultSidebarTheme = function() {\r\n $.LeftSidebar.activateDefaultTheme();\r\n this._saveConfig({ sideBarTheme: SIDEBAR_THEME_DEFAULT });\r\n },\r\n\r\n /**\r\n * Activates the light theme\r\n */\r\n LayoutThemeApp.prototype.activateLightSidebarTheme = function() {\r\n // this._resetLayout();\r\n $.LeftSidebar.activateLightTheme();\r\n this._saveConfig({ sideBarTheme: SIDEBAR_THEME_LIGHT });\r\n },\r\n\r\n /**\r\n * Activates the dark theme\r\n */\r\n LayoutThemeApp.prototype.activateDarkSidebarTheme = function() {\r\n // this._resetLayout();\r\n $.LeftSidebar.activateDarkTheme();\r\n this._saveConfig({ sideBarTheme: SIDEBAR_THEME_DARK });\r\n },\r\n\r\n /**\r\n * toggle the dark mode\r\n */\r\n LayoutThemeApp.prototype.activateDarkMode = function() {\r\n $(\"#light-style\").attr(\"disabled\", true);\r\n $(\"#dark-style\").attr(\"disabled\", false);\r\n $.LeftSidebar.activateDarkTheme();\r\n this._saveConfig({ isDarkModeEnabled: true, sideBarTheme: SIDEBAR_THEME_DARK });\r\n }\r\n\r\n /**\r\n * Deactivate the dark mode\r\n */\r\n LayoutThemeApp.prototype.deactivateDarkMode = function() {\r\n $(\"#light-style\").attr(\"disabled\", false);\r\n $(\"#dark-style\").attr(\"disabled\", true);\r\n this._saveConfig({ isDarkModeEnabled: false });\r\n }\r\n\r\n /**\r\n * Clear out the saved config\r\n */\r\n LayoutThemeApp.prototype.clearSavedConfig = function() {\r\n sessionStorage.removeItem('_HYPER_CONFIG_');\r\n this._config = DEFAULT_CONFIG;\r\n },\r\n\r\n /**\r\n * Gets the config\r\n */\r\n LayoutThemeApp.prototype.getConfig = function() {\r\n return this._config;\r\n },\r\n\r\n /**\r\n * Reset to default\r\n */\r\n LayoutThemeApp.prototype.reset = function(callback) {\r\n this.clearSavedConfig();\r\n \r\n var self = this;\r\n if($(\"#main-style-container\").length) {\r\n self.defaultSelectedStyle = $(\"#main-style-container\").attr('href');\r\n }\r\n self.deactivateCondensedSidebar();\r\n self.deactivateDarkMode();\r\n self.activateDefaultSidebarTheme();\r\n self.activateFluid();\r\n // calling the call back to let the caller know that it's done\r\n callback();\r\n },\r\n\r\n /**\r\n * \r\n */\r\n LayoutThemeApp.prototype.init = function() {\r\n var self = this;\r\n\r\n if($(\"#main-style-container\").length) {\r\n self.defaultSelectedStyle = $(\"#main-style-container\").attr('href');\r\n }\r\n \r\n // initilize the menu\r\n this._applyConfig();\r\n\r\n // adjust layout based on width\r\n this._adjustLayout();\r\n\r\n // on window resize, make menu flipped automatically\r\n this.window.on('resize', function (e) {\r\n e.preventDefault();\r\n self._adjustLayout();\r\n });\r\n\r\n // if horizontal layout - activate topbar\r\n var layout = $('body').data('layout');\r\n if (layout && layout === 'topnav') {\r\n $.Topbar.init();\r\n }\r\n },\r\n\r\n $.LayoutThemeApp = new LayoutThemeApp, $.LayoutThemeApp.Constructor = LayoutThemeApp\r\n}(window.jQuery);","/**\r\n * Theme: Hyper - Responsive Bootstrap 4 Admin Dashboard\r\n * Author: Coderthemes\r\n * Module/App: Main Js\r\n */\r\n\r\n\r\n!function($) {\r\n \"use strict\";\r\n\r\n /**\r\n Portlet Widget\r\n */\r\n var Portlet = function() {\r\n this.$body = $(\"body\"),\r\n this.$portletIdentifier = \".card\",\r\n this.$portletCloser = '.card a[data-toggle=\"remove\"]',\r\n this.$portletRefresher = '.card a[data-toggle=\"reload\"]'\r\n };\r\n\r\n //on init\r\n Portlet.prototype.init = function() {\r\n // Panel closest\r\n var $this = this;\r\n $(document).on(\"click\",this.$portletCloser, function (ev) {\r\n ev.preventDefault();\r\n var $portlet = $(this).closest($this.$portletIdentifier);\r\n var $portlet_parent = $portlet.parent();\r\n $portlet.remove();\r\n if ($portlet_parent.children().length == 0) {\r\n $portlet_parent.remove();\r\n }\r\n });\r\n\r\n // Panel Reload\r\n $(document).on(\"click\",this.$portletRefresher, function (ev) {\r\n ev.preventDefault();\r\n var $portlet = $(this).closest($this.$portletIdentifier);\r\n // This is just a simulation, nothing is going to be reloaded\r\n $portlet.append('
');\r\n var $pd = $portlet.find('.card-disabled');\r\n setTimeout(function () {\r\n $pd.fadeOut('fast', function () {\r\n $pd.remove();\r\n });\r\n }, 500 + 300 * (Math.random() * 5));\r\n });\r\n },\r\n //\r\n $.Portlet = new Portlet, $.Portlet.Constructor = Portlet\r\n \r\n}(window.jQuery),\r\n\r\nfunction($) {\r\n 'use strict';\r\n\r\n var AdvanceFormApp = function() {\r\n this.$body = $('body'),\r\n this.$window = $(window)\r\n };\r\n\r\n\r\n /** \r\n * Initlizes the select2\r\n */\r\n AdvanceFormApp.prototype.initSelect2 = function() {\r\n // Select2\r\n $('[data-toggle=\"select2\"]').select2();\r\n },\r\n\r\n /** \r\n * Initlized mask\r\n */\r\n AdvanceFormApp.prototype.initMask = function() {\r\n $('[data-toggle=\"input-mask\"]').each(function (idx, obj) {\r\n var maskFormat = $(obj).data(\"maskFormat\");\r\n var reverse = $(obj).data(\"reverse\");\r\n if (reverse != null)\r\n $(obj).mask(maskFormat, {'reverse': reverse});\r\n else\r\n $(obj).mask(maskFormat);\r\n });\r\n },\r\n\r\n // Datetime and date range picker\r\n AdvanceFormApp.prototype.initDateRange = function() {\r\n var defaultOptions = {\r\n \"cancelClass\": \"btn-light\",\r\n \"applyButtonClasses\": \"btn-success\"\r\n };\r\n\r\n // date pickers\r\n $('[data-toggle=\"date-picker\"]').each(function (idx, obj) {\r\n var objOptions = $.extend({}, defaultOptions, $(obj).data());\r\n $(obj).daterangepicker(objOptions);\r\n });\r\n\r\n //date pickers ranges only\r\n var start = moment().subtract(29, 'days');\r\n var end = moment();\r\n var defaultRangeOptions = {\r\n startDate: start,\r\n endDate: end,\r\n ranges: {\r\n 'Today': [moment(), moment()],\r\n 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],\r\n 'Last 7 Days': [moment().subtract(6, 'days'), moment()],\r\n 'Last 30 Days': [moment().subtract(29, 'days'), moment()],\r\n 'This Month': [moment().startOf('month'), moment().endOf('month')],\r\n 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]\r\n }\r\n };\r\n\r\n $('[data-toggle=\"date-picker-range\"]').each(function (idx, obj) {\r\n var objOptions = $.extend({}, defaultRangeOptions, $(obj).data());\r\n var target = objOptions[\"targetDisplay\"];\r\n //rendering\r\n $(obj).daterangepicker(objOptions, function(start, end) {\r\n if (target)\r\n $(target).html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));\r\n });\r\n });\r\n },\r\n\r\n // time picker\r\n AdvanceFormApp.prototype.initTimePicker = function() {\r\n var defaultOptions = {\r\n \"showSeconds\": true,\r\n \"icons\": {\r\n \"up\": \"mdi mdi-chevron-up\",\r\n \"down\": \"mdi mdi-chevron-down\"\r\n }\r\n };\r\n\r\n // time picker\r\n $('[data-toggle=\"timepicker\"]').each(function (idx, obj) {\r\n var objOptions = $.extend({}, defaultOptions, $(obj).data());\r\n $(obj).timepicker(objOptions);\r\n });\r\n },\r\n\r\n // touchspin\r\n AdvanceFormApp.prototype.initTouchspin = function() {\r\n var defaultOptions = {\r\n };\r\n\r\n // touchspin\r\n $('[data-toggle=\"touchspin\"]').each(function (idx, obj) {\r\n var objOptions = $.extend({}, defaultOptions, $(obj).data());\r\n $(obj).TouchSpin(objOptions);\r\n });\r\n },\r\n\r\n // maxlength\r\n AdvanceFormApp.prototype.initMaxlength = function() {\r\n var defaultOptions = {\r\n warningClass: \"badge badge-success\",\r\n limitReachedClass: \"badge badge-danger\",\r\n separator: ' out of ',\r\n preText: 'You typed ',\r\n postText: ' chars available.',\r\n placement: 'bottom',\r\n };\r\n\r\n // maxlength\r\n $('[data-toggle=\"maxlength\"]').each(function (idx, obj) {\r\n var objOptions = $.extend({}, defaultOptions, $(obj).data());\r\n $(obj).maxlength(objOptions);\r\n });\r\n },\r\n\r\n /** \r\n * Initilize\r\n */\r\n AdvanceFormApp.prototype.init = function() {\r\n var $this = this;\r\n this.initSelect2();\r\n this.initMask();\r\n this.initDateRange();\r\n this.initTimePicker();\r\n this.initTouchspin();\r\n this.initMaxlength();\r\n },\r\n\r\n $.AdvanceFormApp = new AdvanceFormApp, $.AdvanceFormApp.Constructor = AdvanceFormApp\r\n\r\n\r\n}(window.jQuery),\r\n\r\nfunction($) {\r\n 'use strict';\r\n\r\n var NotificationApp = function() {\r\n };\r\n\r\n\r\n /**\r\n * Send Notification\r\n * @param {*} heading heading text\r\n * @param {*} body body text\r\n * @param {*} position position e.g top-right, top-left, bottom-left, etc\r\n * @param {*} loaderBgColor loader background color\r\n * @param {*} icon icon which needs to be displayed\r\n * @param {*} hideAfter automatically hide after seconds\r\n * @param {*} stack \r\n */\r\n NotificationApp.prototype.send = function(heading, body, position, loaderBgColor, icon, hideAfter, stack, showHideTransition) {\r\n // default \r\n if (!hideAfter)\r\n hideAfter = 3000;\r\n if (!stack)\r\n stack = 1;\r\n\r\n var options = {\r\n heading: heading,\r\n text: body,\r\n position: position,\r\n loaderBg: loaderBgColor,\r\n icon: icon,\r\n hideAfter: hideAfter,\r\n stack: stack\r\n };\r\n\r\n if(showHideTransition)\r\n options.showHideTransition = showHideTransition;\r\n else\r\n options.showHideTransition = 'fade';\r\n\r\n $.toast().reset('all');\r\n $.toast(options);\r\n },\r\n\r\n $.NotificationApp = new NotificationApp, $.NotificationApp.Constructor = NotificationApp\r\n\r\n}(window.jQuery),\r\n\r\nfunction($) {\r\n \"use strict\";\r\n\r\n var Components = function() {};\r\n\r\n //initializing tooltip\r\n Components.prototype.initTooltipPlugin = function() {\r\n $.fn.tooltip && $('[data-toggle=\"tooltip\"]').tooltip()\r\n },\r\n\r\n //initializing popover\r\n Components.prototype.initPopoverPlugin = function() {\r\n $.fn.popover && $('[data-toggle=\"popover\"]').popover()\r\n },\r\n\r\n //initializing toast\r\n Components.prototype.initToastPlugin = function() {\r\n $.fn.toast && $('[data-toggle=\"toast\"]').toast()\r\n },\r\n\r\n //initializing form validation\r\n Components.prototype.initFormValidation = function() {\r\n $(\".needs-validation\").on('submit', function (event) {\r\n $(this).addClass('was-validated');\r\n if ($(this)[0].checkValidity() === false) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n return false;\r\n }\r\n return true;\r\n });\r\n },\r\n Components.prototype.initSyntaxHighlight = function() {\r\n //syntax\r\n var entityMap = {\r\n \"&\": \"&\",\r\n \"<\": \"<\",\r\n \">\": \">\",\r\n '\"': '"',\r\n \"'\": ''',\r\n \"/\": '/'\r\n };\r\n function escapeHtml(string) {\r\n return String(string).replace(/[&<>\"'\\/]/g, function (s) {\r\n return entityMap[s];\r\n });\r\n }\r\n\r\n $(document).ready(function(e) {\r\n document.querySelectorAll(\"pre span.escape\").forEach(function (element, n) {\r\n if (element.classList.contains(\"escape\")) {\r\n var text = element.innerText;\r\n } else {\r\n var text = element.innerText;\r\n }\r\n text = text.replace(/^\\n/, '').trimRight();// goodbye starting whitespace\r\n var to_kill = Infinity;\r\n var lines = text.split(\"\\n\");\r\n for (var i = 0; i < lines.length; i++) {\r\n if (!lines[i].trim()) { continue; }\r\n to_kill = Math.min(lines[i].search(/\\S/), to_kill);\r\n }\r\n var out = [];\r\n for (var i = 0; i < lines.length; i++) {\r\n out.push(lines[i].replace(new RegExp(\"^ {\" + to_kill + \"}\", \"g\"), \"\"));\r\n }\r\n element.innerText = out.join(\"\\n\");\r\n });\r\n \r\n document.querySelectorAll('pre span.escape').forEach(function(block) {\r\n hljs.highlightBlock(block);\r\n });\r\n });\r\n },\r\n\r\n\r\n //initilizing\r\n Components.prototype.init = function() {\r\n var $this = this;\r\n this.initTooltipPlugin(),\r\n this.initPopoverPlugin(),\r\n this.initToastPlugin(),\r\n this.initFormValidation(),\r\n this.initSyntaxHighlight();\r\n },\r\n\r\n $.Components = new Components, $.Components.Constructor = Components\r\n\r\n}(window.jQuery),\r\n\r\n\r\nfunction ($) {\r\n 'use strict';\r\n\r\n var App = function () {\r\n this.$body = $('body'),\r\n this.$window = $(window)\r\n };\r\n\r\n /**\r\n * Activates the default theme\r\n */\r\n App.prototype.activateDefaultSidebarTheme = function() {\r\n $.LayoutThemeApp.activateDefaultSidebarTheme();\r\n },\r\n\r\n /**\r\n * Activates the light theme\r\n */\r\n App.prototype.activateLightSidebarTheme = function() {\r\n $.LayoutThemeApp.activateLightSidebarTheme();\r\n },\r\n\r\n /**\r\n * Activates the dark theme\r\n */\r\n App.prototype.activateDarkSidebarTheme = function() {\r\n $.LayoutThemeApp.activateDarkSidebarTheme();\r\n },\r\n\r\n /**\r\n * Activates the condensed sidebar\r\n */\r\n App.prototype.activateCondensedSidebar = function() {\r\n $.LayoutThemeApp.activateCondensedSidebar();\r\n },\r\n\r\n /**\r\n * Deactivates the condensed sidebar\r\n */\r\n App.prototype.deactivateCondensedSidebar = function() {\r\n $.LayoutThemeApp.deactivateCondensedSidebar();\r\n },\r\n\r\n /**\r\n * Activates the scrollable sidebar\r\n */\r\n App.prototype.activateScrollableSidebar = function() {\r\n $.LayoutThemeApp.activateScrollableSidebar();\r\n },\r\n\r\n /**\r\n * Deactivates the scrollable\r\n */\r\n App.prototype.deactivateScrollableSidebar = function() {\r\n $.LayoutThemeApp.deactivateScrollableSidebar();\r\n },\r\n\r\n /**\r\n * Activates the boxed mode\r\n */\r\n App.prototype.activateBoxed = function() {\r\n $.LayoutThemeApp.activateBoxed();\r\n },\r\n\r\n /**\r\n * Activate the fluid mode\r\n */\r\n App.prototype.activateFluid = function() {\r\n $.LayoutThemeApp.activateFluid();\r\n },\r\n\r\n /**\r\n * Toggle the dark mode\r\n */\r\n App.prototype.activateDarkMode = function() {\r\n $.LayoutThemeApp.activateDarkMode();\r\n },\r\n\r\n /**\r\n * Deactivate the dark mode\r\n */\r\n App.prototype.deactivateDarkMode = function() {\r\n $.LayoutThemeApp.deactivateDarkMode();\r\n },\r\n\r\n /**\r\n * clear the saved layout related settings\r\n */\r\n App.prototype.clearSavedConfig = function() {\r\n $.LayoutThemeApp.clearSavedConfig();\r\n },\r\n\r\n /**\r\n * Gets the layout config\r\n */\r\n App.prototype.getLayoutConfig = function() {\r\n return $.LayoutThemeApp.getConfig();\r\n }\r\n\r\n /**\r\n * Reset the layout\r\n */\r\n App.prototype.resetLayout = function(callback) {\r\n $.LayoutThemeApp.reset(callback);\r\n },\r\n \r\n /**\r\n * initilizing\r\n */\r\n App.prototype.init = function () {\r\n $.LayoutThemeApp.init();\r\n\r\n // remove loading\r\n setTimeout(function() {\r\n document.body.classList.remove('loading');\r\n }, 400);\r\n\r\n $.RightBar.init();\r\n\r\n // showing the sidebar on load if user is visiting the page first time only\r\n if (window.sessionStorage) {\r\n var alreadyVisited = sessionStorage.getItem(\"_HYPER_VISITED_\");\r\n if (!alreadyVisited) {\r\n $.RightBar.toggleRightSideBar();\r\n sessionStorage.setItem(\"_HYPER_VISITED_\", true);\r\n }\r\n }\r\n \r\n //creating portles\r\n $.Portlet.init();\r\n $.AdvanceFormApp.init();\r\n $.Components.init();\r\n\r\n // loader - Preloader\r\n $(window).on('load', function () {\r\n $('#status').fadeOut();\r\n $('#preloader').delay(350).fadeOut('slow');\r\n });\r\n },\r\n\r\n $.App = new App, $.App.Constructor = App\r\n}(window.jQuery),\r\n\r\n//initializing main application module\r\nfunction ($) {\r\n \"use strict\";\r\n $.App.init();\r\n}(window.jQuery);"]}