{"version":3,"sources":["app.js"],"names":["fullScreen","isfullscreen","docBrowserElem","document","documentElement","requestFullscreen","mozRequestFullScreen","webkitRequestFullscreen","msRequestFullscreen","exitFullScreen","exitFullscreen","mozCancelFullScreen","webkitExitFullscreen","msExitFullscreen","initializeRadioTabs","$","on","id","this","attr","addClass","siblings","removeClass","megaDDSlider","owlCarousel","loop","margin","nav","dots","autoplay","autoplayTimeout","responsive","0","items","600","1000","scrollBarCont","text","Date","getFullYear","setTimeout","length","e","stopPropagation","toggleClass","next","hasClass","parents","first","find","target","closest","Waves","init","querySelectorAll","forEach","tooltip","bootstrap","Tooltip","popover","Popover","getElementById","Scrollbar","metisMenu","event","update","flatpickr","convertModelValue","mode","dateFormat","bodyclass","classList","body","value","trim","localStorage","setItem","children","preventDefault","window","width","icon","lang","toUpperCase","val","parent","each","pageUrl","location","href","split","jQuery"],"mappings":"AA+JA,SAAAA,WAAAC,GACA,IAAAC,EAAAC,SAAAC,gBAWA,OAVAF,EAAAG,kBACAH,EAAAG,kBAAA,EACAH,EAAAI,qBACAJ,EAAAI,qBAAA,EACAJ,EAAAK,wBACAL,EAAAK,wBAAA,EACAL,EAAAM,qBACAN,EAAAM,oBAAA,EAEA,CAAA,CAEA,CAKA,SAAAC,eAAAR,GAWA,OAVAE,SAAAO,eACAP,SAAAO,eAAA,EACAP,SAAAQ,oBACAR,SAAAQ,oBAAA,EACAR,SAAAS,qBACAT,SAAAS,qBAAA,EACAT,SAAAU,kBACAV,SAAAU,iBAAA,EAEA,CAAA,CAEA,CAOA,SAAAC,sBACAC,EAAA,2BAAA,EAAAC,GAAA,SAAA,WACA,IAAAC,EAAAF,EAAAG,IAAA,EAAAC,KAAA,WAAA,EACAJ,EAAAE,CAAA,EAAAG,SAAA,aAAA,EAAAC,SAAA,EAAAC,YAAA,aAAA,CACA,CAAA,CACA,CAKA,SAAAC,eACA,OAAAR,EAAA,+BAAA,EAAAS,YAAA,CACAC,KAAA,CAAA,EACAC,OAAA,EACAC,IAAA,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YAAA,EAAA7B,SAAA,QAAA,CACA,CAAA,EAEAL,EAAA,2BAAA,EAAAC,GAAA,WAAA,WACAD,EAAAG,IAAA,EAAAmE,OAAA,EAAApC,KAAA,YAAA,EAAA3B,YAAA,QAAA,CACA,CAAA,EAGAP,EAAA,cAAA,EAAAuE,KAAA,WACA,IAAAC,EAAAR,OAAAS,SAAAC,KAAAC,MAAA,MAAA,EAAA,GACAxE,KAAAuE,MAAAF,IACAxE,EAAAG,IAAA,EAAAE,SAAA,QAAA,EACAL,EAAAG,IAAA,EAAA6B,QAAA,cAAA,EAAA3B,SAAA,SAAA,EACAL,EAAAG,IAAA,EAAA6B,QAAA,cAAA,EAAAsC,OAAA,IAAA,EAAAjE,SAAA,WAAA,EAEA,CAAA,EAEAN,oBAAA,CACA,EAAA6E,MAAA,CAAA","file":"app.min.js","sourcesContent":["$(function () {\r\n\tvar scrollBarCont, isfullscreen = false, ddSliderIns;\r\n\t$(\"#date\").text(new Date().getFullYear())\r\n\tsetTimeout(function(){\r\n\t\t$(\".preloader\").addClass(\"d-none\");\r\n\t}, 1000)\r\n\t$(\"#layout\").on(\"click\", function(){\r\n\t\t$(\".setting-sidebar\").addClass(\"show\");\r\n\t})\r\n\t$(\".setting-sidebar .mdi-close\").on(\"click\", function(){\r\n\t\t$(\".setting-sidebar\").removeClass(\"show\");\r\n\t})\r\n\t$('[data-effect=\"wave\"]').addClass(\"waves-effect waves-light\");\r\n\t$('[data-effect=\"wave-dark\"]').addClass(\"waves-effect waves-float\");\r\n\tif($('[data-toggle=\"sidebar\"]').length){\r\n\t\t$('[data-toggle=\"sidebar\"]').on(\"click\", function(e){\r\n\t\t\te.stopPropagation();\r\n\t\t\t$('[data-sidebar=\"mobile\"]').toggleClass(\"show-mobile-sidebar\");\r\n\t\t})\r\n\t}\r\n\r\n\t$('.dropdown-menu a.dropdown-toggle').on('click', function(e) {\r\n\t\tif (!$(this).next().hasClass('show')) {\r\n\t\t\t$(this).parents('.dropdown-menu').first().find('.show').removeClass(\"show\");\r\n\t\t}\r\n\t\tvar $subMenu = $(this).next(\".dropdown-menu\");\r\n\t\t$subMenu.toggleClass('show');\r\n\r\n\t\treturn false;\r\n});\r\n\t$(\"body\").on(\"click\", function(e) {\r\n\t\tif ($(e.target).closest('.side-navbar').length > 0 || $(e.target).closest('[data-sidebar=\"mobile\"]').length > 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$(\"body\").removeClass(\"show-sidebar\");\r\n\t\tif($('[data-sidebar=\"mobile\"]').length){\r\n\t\t\t$('[data-sidebar=\"mobile\"]').removeClass(\"show-mobile-sidebar\")\r\n\t\t}\r\n\t});\r\n\tWaves.init();\r\n\tif($('[data-bs-toggle=\"tooltip\"]').length){\r\n\t\tconst tooltips = document.querySelectorAll(\"[data-bs-toggle='tooltip']\");\r\n\t\ttooltips.forEach(function(tooltip) {\r\n\t\t\tnew bootstrap.Tooltip(tooltip) \r\n\t\t})\r\n\t\t// $('[data-bs-toggle=\"tooltip\"]').tooltip()\r\n\t}\r\n\tif($('[data-bs-toggle=\"popover\"]').length){\r\n\t\tconst popovers = document.querySelectorAll(\"[data-bs-toggle='popover']\");\r\n\t\tpopovers.forEach(function(popover) {\r\n\t\t\tnew bootstrap.Popover(popover) \r\n\t\t})\r\n\t}\r\n\tif (!$(\"body\").hasClass(\"horizontal-navbar\")) {\r\n\t\tif (document.getElementById(\"metismenu\")) {\r\n\t\t\tscrollBarCont = Scrollbar.init(document.getElementById(\"metismenu\"));\r\n\t\t}\r\n\t}\r\n\t$('header .dropdown-mega').on('show.bs.dropdown', function () {\r\n\t\tif(!ddSliderIns){\r\n\t\t\tsetTimeout(function(){\r\n\t\t\t\t//Mega dropdown slider\r\n\t\t\t\tmegaDDSlider();\r\n\t\t\t}, 200)\r\n\t\t}\r\n\t})\r\n\tif (document.getElementById(\"notify-scrollbar\")) {\r\n\t\tScrollbar.init(document.getElementById(\"notify-scrollbar\"));\r\n\t}\r\n\t$('#side-menu').metisMenu().on('shown.metisMenu', function (event) {\r\n\t\tif (scrollBarCont) scrollBarCont.update()\r\n\t}).on('hidden.metisMenu', function (event) {\r\n\t\tif (scrollBarCont) scrollBarCont.update()\r\n\t})\r\n\tif ($(\"#dashdaterange\").length) {\r\n\t\t$(\"#dashdaterange\").flatpickr({\r\n\t\t\tconvertModelValue: true,\r\n\t\t\tmode: \"range\",\r\n\t\t\tdateFormat: 'd-m-y'\r\n\t\t});\r\n\t}\r\n\r\n\t$(\".layout-nav .side-nav-link\").on(\"click\", function () {\r\n\t\tvar bodyclass = $(this).attr(\"data-class\");\r\n\t\t$('body').removeClass().addClass(\"pace-done \" + bodyclass);\r\n\t\tvar classList = document.body.classList.value.trim();\r\n\t\tlocalStorage.setItem(\"classes\", classList);\r\n\t})\r\n\r\n\t$(\"#full-screen\").on(\"click\", function () {\r\n\t\t$(this).children().toggleClass(\"bx-fullscreen bx-exit-fullscreen\");\r\n\t\tif (!isfullscreen) {\r\n\t\t\tisfullscreen = fullScreen(isfullscreen);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tisfullscreen = exitFullScreen(isfullscreen);\r\n\t\t}\r\n\t});\r\n\t$(\"#vertical-menu-btn\").on(\"click\", function (e) {\r\n\t\te.preventDefault();\r\n\t\te.stopPropagation();\r\n\t\tif($(window).width() > 1024) {\r\n\t\t\tif ($(\"body\").hasClass(\"left-side-menu-condensed\")) {\r\n\t\t\t\t$(\"body\").removeClass(\"left-side-menu-condensed\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$(\"body\").addClass('left-side-menu-condensed');\r\n\t\t\t}\r\n\t\t\tvar classList = document.body.classList.value.trim();\r\n\t\t\tlocalStorage.setItem(\"classes\", classList);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$(\"body\").toggleClass(\"show-sidebar\");\r\n\t\t}\r\n\t});\r\n\r\n\t$(\"#countries .dropdown-item\").on(\"click\", function () {\r\n\t\tvar icon = $(this).children(\"img\").attr(\"src\");\r\n\t\tvar lang = $(this).children(\"span\").attr(\"data-lang\");\r\n\t\tlang = lang.toUpperCase()\r\n\t\t$(\"#page-header-country-dropdown\").children(\"img\").attr(\"src\", icon)\r\n\t\t$(\"#page-header-country-dropdown\").children(\"span\").text(lang)\r\n\t})\r\n\r\n\t$(\".floating-label .form-control\").on(\"change\", function () {\r\n\t\tif ($(this).val() !== \"\") {\r\n\t\t\t$(this).parents(\".floating-label\").addClass(\"enable-floating-label\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (!$(this).parent().hasClass(\"show-label\")) {\r\n\t\t\t\t$(this).parents(\".floating-label\").removeClass(\"enable-floating-label\");\r\n\t\t\t}\r\n\t\t}\r\n\t})\r\n\r\n\t$(\".input-date .form-control\").on(\"focus\", function () {\r\n\t\t$(this).parent().find(\".date-icon\").addClass(\"active\")\r\n\t})\r\n\r\n\t$(\".input-date .form-control\").on(\"focusout\", function () {\r\n\t\t$(this).parent().find(\".date-icon\").removeClass(\"active\")\r\n\t})\r\n\r\n\t// activate the menu in left side bar (Vertical Menu) based on url\r\n\t$(\"#side-menu a\").each(function () {\r\n\t\tvar pageUrl = window.location.href.split(/[?#]/)[0];\r\n\t\tif (this.href == pageUrl) {\r\n\t\t\t$(this).addClass(\"active\");\r\n\t\t\t$(this).parents('.mm-collapse').addClass(\"mm-show\");\r\n\t\t\t$(this).parents('.mm-collapse').parent(\"li\").addClass(\"mm-active\");\r\n\t\t}\r\n\t});\r\n\t//Initialize radio tab fn call\r\n\tinitializeRadioTabs();\r\n}(jQuery));\r\n\r\n/**\r\n * Enter into full screen\r\n */\r\nfunction fullScreen(isfullscreen) {\r\n\tvar docBrowserElem = document.documentElement\r\n\tif (docBrowserElem.requestFullscreen) {\r\n\t\tdocBrowserElem.requestFullscreen();\r\n\t} else if (docBrowserElem.mozRequestFullScreen) { /* Firefox */\r\n\t\tdocBrowserElem.mozRequestFullScreen();\r\n\t} else if (docBrowserElem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */\r\n\t\tdocBrowserElem.webkitRequestFullscreen();\r\n\t} else if (docBrowserElem.msRequestFullscreen) { /* IE/Edge */\r\n\t\tdocBrowserElem.msRequestFullscreen();\r\n\t}\r\n\tisfullscreen = true;\r\n\treturn isfullscreen\r\n}\r\n\r\n/**\r\n* Exit from full screen\r\n*/\r\nfunction exitFullScreen(isfullscreen) {\r\n\tif (document.exitFullscreen) {\r\n\t\tdocument.exitFullscreen();\r\n\t} else if (document.mozCancelFullScreen) {\r\n\t\tdocument.mozCancelFullScreen();\r\n\t} else if (document.webkitExitFullscreen) {\r\n\t\tdocument.webkitExitFullscreen();\r\n\t} else if (document.msExitFullscreen) {\r\n\t\tdocument.msExitFullscreen();\r\n\t}\r\n\tisfullscreen = false;\r\n\treturn isfullscreen\r\n}\r\n\r\n/**\r\n* ----------------------------------------------\r\n* Initialize radio tab fn\r\n* ----------------------------------------------\r\n*/\r\nfunction initializeRadioTabs() {\r\n\t$(\".radios-tabs .radio-input\").on(\"change\", function () {\r\n\t\tvar id = $(this).attr(\"data-href\");\r\n\t\t$(id).addClass(\"show active\").siblings().removeClass(\"show active\");\r\n\t})\r\n}\r\n\r\n/**\r\n * Mega DD slider\r\n */\r\nfunction megaDDSlider() {\r\n\treturn $(\".mega-dd-slider .owl-carousel\").owlCarousel({\r\n\t\tloop: true,\r\n\t\tmargin: 0,\r\n\t\tnav: false,\r\n\t\tdots: false,\r\n\t\tautoplay: true,\r\n\t\tautoplayTimeout: 2000,\r\n\t\tresponsive: {\r\n\t\t\t0: {\r\n\t\t\t\titems: 1\r\n\t\t\t},\r\n\t\t\t600: {\r\n\t\t\t\titems: 1\r\n\t\t\t},\r\n\t\t\t1000: {\r\n\t\t\t\titems: 1\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}"]}