You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
gzf/WebRoot/static/assets/js/app.min.js.map

1 lines
13 KiB

{"version":3,"sources":["app.js"],"names":["$","Components","prototype","initTooltipPlugin","fn","tooltip","initPopoverPlugin","popover","initSlimScrollPlugin","slimScroll","height","position","size","touchScrollStep","color","initFormValidation","on","event","this","addClass","checkValidity","preventDefault","stopPropagation","init","Constructor","window","jQuery","App","$body","$window","_resetSidebarScroll","slimscroll","wheelStep","initMenu","$this","data","toggleClass","slideToggle","width","removeClass","layout","length","MetisMenu","each","pageUrl","location","href","split","parent","prev","menuRef","addEventListener","menuClick","e","target","contains","hide","detail","shownElement","removeEventListener","document","closest","hasClass","fadeOut","delay","initLayout","feather","replace"],"mappings":"CAUA,SAAAA,GACA,aAEA,SAAAC,KAGAA,EAAAC,UAAAC,kBAAA,WACAH,EAAAI,GAAAC,SAAAL,EAAA,2BAAAK,WAIAJ,EAAAC,UAAAI,kBAAA,WACAN,EAAAI,GAAAG,SAAAP,EAAA,2BAAAO,WAIAN,EAAAC,UAAAM,qBAAA,WAEAR,EAAAI,GAAAK,YAAAT,EAAA,eAAAS,WAAA,CACAC,OAAA,OACAC,SAAA,QACAC,KAAA,MACAC,gBAAA,GACAC,MAAA,aAKAb,EAAAC,UAAAa,mBAAA,WACAf,EAAA,qBAAAgB,GAAA,SAAA,SAAAC,GAEA,OADAjB,EAAAkB,MAAAC,SAAA,kBACA,IAAAnB,EAAAkB,MAAA,GAAAE,kBACAH,EAAAI,iBACAJ,EAAAK,mBACA,MAOArB,EAAAC,UAAAqB,KAAA,WAEAL,KAAAf,oBACAe,KAAAZ,oBACAY,KAAAV,uBACAU,KAAAH,sBAGAf,EAAAC,WAAA,IAAAA,EAAAD,EAAAC,WAAAuB,YAAAvB,EAjDA,CAmDAwB,OAAAC,QAGA,SAAA1B,GACA,aAEA,SAAA2B,IACAT,KAAAU,MAAA5B,EAAA,QACAkB,KAAAW,QAAA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AAA,SAAAqC,GACAA,EAAAhC,iBACAa,EAAA+B,aACA/B,EAAAJ,wBAIAoC,QAAAC,WAGAnE,EAAA2B,IAAA,IAAAA,EAAA3B,EAAA2B,IAAAH,YAAAG,EA9LA,CAiMAF,OAAAC,QAEA,WACA,aAEAD,OAAAC,OADAC,IAAAJ,OAFA","file":"app.min.js","sourcesContent":["/*\r\nTemplate Name: Shreyu - Responsive Bootstrap 4 Admin Dashboard\r\nAuthor: CoderThemes\r\nVersion: 1.0.0\r\nWebsite: https://coderthemes.com/\r\nContact: support@coderthemes.com\r\nFile: Main Js File\r\n*/\r\n\r\n\r\n!function ($) {\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 Slimscroll\r\n Components.prototype.initSlimScrollPlugin = function () {\r\n //You can change the color of scroll bar here\r\n $.fn.slimScroll && $(\".slimscroll\").slimScroll({\r\n height: 'auto',\r\n position: 'right',\r\n size: \"4px\",\r\n touchScrollStep: 20,\r\n color: '#9ea5ab'\r\n });\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\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.initSlimScrollPlugin(),\r\n this.initFormValidation()\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 Resets the scroll\r\n */\r\n App.prototype._resetSidebarScroll = function () {\r\n // sidebar - scroll container\r\n $('.slimscroll-menu').slimscroll({\r\n height: 'auto',\r\n position: 'right',\r\n size: \"4px\",\r\n color: '#9ea5ab',\r\n wheelStep: 5,\r\n touchScrollStep: 20\r\n });\r\n },\r\n\r\n /** \r\n * Initlizes the menu - top and sidebar\r\n */\r\n App.prototype.initMenu = function () {\r\n var $this = this;\r\n\r\n // Left menu collapse\r\n $('.button-menu-mobile').on('click', function (event) {\r\n event.preventDefault();\r\n\r\n var layout = $this.$body.data('layout');\r\n if (layout === 'topnav') {\r\n $(this).toggleClass('open');\r\n $('#topnav-menu-content').slideToggle(400);\r\n } else {\r\n $this.$body.toggleClass('sidebar-enable');\r\n if ($this.$window.width() >= 768) {\r\n $this.$body.toggleClass('left-side-menu-condensed');\r\n } else {\r\n $this.$body.removeClass('left-side-menu-condensed');\r\n }\r\n\r\n // sidebar - scroll container\r\n $this._resetSidebarScroll();\r\n }\r\n });\r\n\r\n // sidebar - main menu\r\n // activate the menu in left side bar based on url\r\n var layout = $this.$body.data('layout');\r\n if ($('#menu-bar').length) {\r\n if (layout !== 'topnav') {\r\n // init menu\r\n new MetisMenu('#menu-bar');\r\n // sidebar - scroll container\r\n $this._resetSidebarScroll();\r\n\r\n $(\"#menu-bar 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().addClass(\"mm-active\"); // add active to li of the current link\r\n $(this).parent().parent().addClass(\"mm-show\");\r\n $(this).parent().parent().prev().addClass(\"active\"); // add active class to an anchor\r\n $(this).parent().parent().parent().addClass(\"mm-active\");\r\n $(this).parent().parent().parent().parent().addClass(\"mm-show\"); // add active to li of the current link\r\n $(this).parent().parent().parent().parent().parent().addClass(\"mm-active\");\r\n }\r\n });\r\n\r\n } else {\r\n var menuRef = new MetisMenu('#menu-bar').on('shown.metisMenu', function (event) {\r\n window.addEventListener('click', function menuClick(e) {\r\n if (!event.target.contains(e.target)) {\r\n menuRef.hide(event.detail.shownElement);\r\n window.removeEventListener('click', menuClick);\r\n }\r\n });\r\n });\r\n $(\"#menu-bar 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().addClass(\"active\"); // add active to li of the current link\r\n $(this).parent().parent().prev().addClass(\"active\"); // add active class to an anchor\r\n $(this).parent().parent().parent().addClass(\"active\");\r\n $(this).parent().parent().parent().parent().parent().addClass(\"active\");\r\n }\r\n });\r\n }\r\n }\r\n\r\n // right side-bar toggle\r\n $('.right-bar-toggle').on('click', function (e) {\r\n $('body').toggleClass('right-bar-enabled');\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 ($(e.target).closest('.left-side-menu, .side-nav').length > 0 || $(e.target).hasClass('button-menu-mobile')\r\n || $(e.target).closest('.button-menu-mobile').length > 0) {\r\n return;\r\n }\r\n\r\n $('body').removeClass('right-bar-enabled');\r\n $('body').removeClass('sidebar-enable');\r\n return;\r\n });\r\n\r\n \r\n // activate topnav menu\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 // // horizontal menu\r\n // $('#topnav-menu .dropdown-menu a.dropdown-toggle').on('click', function () {\r\n // console.log(\"hello\");\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 // 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 /** \r\n * Init the layout - with broad sidebar or compact side bar\r\n */\r\n App.prototype.initLayout = function () {\r\n // in case of small size, add class enlarge to have minimal menu\r\n if (this.$window.width() >= 768 && this.$window.width() <= 1024) {\r\n this.$body.addClass('left-side-menu-condensed');\r\n } else {\r\n if (this.$body.data('left-keep-condensed') != true) {\r\n this.$body.removeClass('left-side-menu-condensed');\r\n }\r\n }\r\n\r\n // if the layout is scrollable - let's remove the slimscroll class from menu\r\n if (this.$body.hasClass('scrollable-layout')) {\r\n $('#sidebar-menu').removeClass(\"slimscroll-menu\");\r\n }\r\n },\r\n\r\n //initilizing\r\n App.prototype.init = function () {\r\n var $this = this;\r\n this.initLayout();\r\n this.initMenu();\r\n $.Components.init();\r\n // on window resize, make menu flipped automatically\r\n $this.$window.on('resize', function (e) {\r\n e.preventDefault();\r\n $this.initLayout();\r\n $this._resetSidebarScroll();\r\n });\r\n\r\n // feather\r\n feather.replace();\r\n },\r\n\r\n $.App = new App, $.App.Constructor = App\r\n\r\n\r\n}(window.jQuery),\r\n//initializing main application module\r\nfunction ($) {\r\n \"use strict\";\r\n $.App.init();\r\n}(window.jQuery);"]}