{"version":3,"sources":["../../jspm_packages/npm/core-js@1.2.7/library/modules/$.js","../../jspm_packages/npm/core-js@1.2.7/library/fn/object/define-property.js","../../jspm_packages/npm/babel-runtime@5.8.38/core-js/object/define-property.js","../../jspm_packages/npm/babel-runtime@5.8.38/helpers/create-class.js","../../jspm_packages/npm/babel-runtime@5.8.38/helpers/class-call-check.js","navigation-menu.js","layout.js","app.js"],"names":["$Object","Object","module","exports","create","getProto","getPrototypeOf","isEnum","propertyIsEnumerable","getDesc","getOwnPropertyDescriptor","setDesc","defineProperty","setDescs","defineProperties","getKeys","keys","getNames","getOwnPropertyNames","getSymbols","getOwnPropertySymbols","each","forEach","$","require","it","key","desc","__esModule","_Object$defineProperty","target","props","i","length","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","instance","TypeError"],"mappings":";;;;;;;AAAA;AACA,MAAIA,UAAUC,MAAd;AACAC,SAAOC,OAAP,GAAiB;AACfC,YAAYJ,QAAQI,MADL;AAEfC,cAAYL,QAAQM,cAFL;AAGfC,YAAY,GAAGC,oBAHA;AAIfC,aAAYT,QAAQU,wBAJL;AAKfC,aAAYX,QAAQY,cALL;AAMfC,cAAYb,QAAQc,gBANL;AAOfC,aAAYf,QAAQgB,IAPL;AAQfC,cAAYjB,QAAQkB,mBARL;AASfC,gBAAYnB,QAAQoB,qBATL;AAUfC,UAAY,GAAGC;AAVA,GAAjB;;;;;ACFA;AACA,MAAIC,IAAIC,WAAQ,GAAR,CAAR;AACAtB,SAAOC,OAAP,GAAiB,SAASS,cAAT,CAAwBa,EAAxB,EAA4BC,GAA5B,EAAiCC,IAAjC,EAAuC;AACtD,WAAOJ,EAAEZ,OAAF,CAAUc,EAAV,EAAcC,GAAd,EAAmBC,IAAnB,CAAP;AACD,GAFD;;;;;ACFA;AACAzB,SAAOC,OAAP,GAAiB,EAAE,WAAWqB,WAAQ,GAAR,CAAb,EAAmEI,YAAY,IAA/E,EAAjB;;;ACDA;AACA;;;;AACA,MAAIC,yBAAyB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,CAAC,CAAC;qBAEN;;;uBARC,UAAU;;;kCAUR,UAAU;;;;;;;kBCVd,IAAI;;;qBAFA,UAAU;;;AAEd,UAAI,GAAG,IAAI,UAAU,EAAE;;AAC3B,UAAI,CAAC,GAAG,EAAE,CAAC","file":"app.js","sourcesContent":["/* */ \nvar $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};","/* */ \nvar $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc) {\n return $.setDesc(it, key, desc);\n};\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };","/* */ \n\"use strict\";\nvar _Object$defineProperty = require('../core-js/object/define-property')[\"default\"];\nexports[\"default\"] = (function() {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor)\n descriptor.writable = true;\n _Object$defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps)\n defineProperties(Constructor.prototype, protoProps);\n if (staticProps)\n defineProperties(Constructor, staticProps);\n return Constructor;\n };\n})();\nexports.__esModule = true;\n","/* */ \n\"use strict\";\n\nexports[\"default\"] = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nexports.__esModule = true;","class NavigationMenu {\r\n static pageHasNavigationMenu() {\r\n return $('.header-nav').length > 0;\r\n \r\n }\r\n\r\n static run(){\r\n if (NavigationMenu.pageHasNavigationMenu()) {\r\n NavigationMenu.initialize();\r\n }\r\n\r\n }\r\n static initialize() {\r\n NavigationMenu.subMenu();\r\n NavigationMenu.nav();\r\n NavigationMenu.navBars();\r\n NavigationMenu.initScroll();\r\n NavigationMenu.heightMobile()\r\n //NavigationMenu.openSubMenu();\r\n //NavigationMenu.contentMenu();\r\n $(window).resize(function(){\r\n NavigationMenu.nav();\r\n //NavigationMenu.openSubMenu();\r\n NavigationMenu.heightMobile();\r\n NavigationMenu.contentMenu();\r\n });\r\n $(window).load(function(){\r\n NavigationMenu.heightMobile();\r\n });\r\n\r\n }\r\n\r\n static nav(){\r\n\r\n if ($(window).width() > 870) {\r\n\r\n $(\"body\").removeClass(\"mobile\");\r\n $(\"body\").addClass(\"desktop\");\r\n\r\n\r\n }else{\r\n $(\"body\").removeClass(\"desktop\");\r\n $(\"body\").addClass(\"mobile\");\r\n }\r\n }\r\n\r\n static navBars(){\r\n var statuss = true;\r\n $(\".bars\").on(\"click\",function(){\r\n if (statuss) {\r\n $(this).add(\".header-nav, .overlay_menu\").addClass(\"open\");\r\n $(\".mobile\").addClass(\"noscroll\");\r\n $(\".sub-menu\").removeClass(\"open\");\r\n statuss = false;\r\n NavigationMenu.openSubMenu();\r\n }else{\r\n $(this).add(\".header-nav, .overlay_menu\").removeClass(\"open\");\r\n $(\".mobile\").removeClass(\"noscroll\");\r\n $(\".header-nav\").removeClass(\"ov_hidden\").removeAttr(\"style\");\r\n statuss = true;\r\n }\r\n });\r\n NavigationMenu.contentMenu();\r\n }\r\n\r\n static initScroll(){\r\n $(window).on(\"scroll\",function(){\r\n NavigationMenu.verifyScroll();\r\n });\r\n $(window).resize(function(){\r\n setTimeout(function(){\r\n NavigationMenu.verifyScroll();\r\n },200);\r\n });\r\n setTimeout(function(){\r\n NavigationMenu.verifyScroll();\r\n },1700);\r\n }\r\n\r\n static verifyScroll(){\r\n var navTop = $(\".pos_menu\").offset().top;\r\n //console.log(navTop);\r\n var scroll_top = $(window).scrollTop();\r\n var isMobile = $(\".mobile\").length > 0;\r\n //console.log(isMobile)\r\n\r\n function setuNav(){\r\n\r\n if (scroll_top > 90 && isMobile) {\r\n $(\".mobile\").addClass(\"show_scroll\");\r\n }else{\r\n $(\"body\").removeClass(\"show_scroll\");\r\n }\r\n }\r\n setuNav();\r\n //setTimeout(function(){\r\n //setuNav();\r\n //},100);\r\n }\r\n\r\n static heightMobile(){\r\n let hMobile = $(window).innerHeight();\r\n let wMobile = $(window).innerWidth();\r\n let foot = $(\"footer\").innerHeight();\r\n let isHome = $(\".is-home\").length > 0;\r\n //console.log(isHome)\r\n if(isHome){\r\n if(window.matchMedia !== undefined){\r\n if(window.matchMedia(\"(max-width: 870px) and (orientation:portrait)\").matches){\r\n $(\".container-body\").css(\"height\",(hMobile - foot) + \"px\");\r\n }else if(window.matchMedia(\"(max-width: 870px) and (orientation:landscape)\").matches){\r\n $(\".container-body\").css(\"height\",(wMobile - foot) + \"px\");\r\n }else{\r\n $(\".container-body\").removeAttr(\"style\");\r\n }\r\n }\r\n }\r\n }\r\n\r\n static subMenu(){\r\n $(\".header-nav > ul > li\").each(function(){\r\n let sMenu = $(this).children(\"ul\").length > 0;\r\n let $this = $(this);\r\n //console.log(sMenu);\r\n\r\n if (sMenu) {\r\n $this.removeClass(\"sub-menu\");\r\n $this.addClass(\"sub-menu\");\r\n }\r\n });\r\n \r\n }\r\n\r\n static openSubMenu(){\r\n let status = false;\r\n let statusSubMenu = false;\r\n $(\".sub-menu > a\").on(\"click\", function(e){\r\n e.preventDefault();\r\n if ($(window).width() < 871){\r\n if (!status) {\r\n $(this).parent().addClass(\"open\");\r\n NavigationMenu.contentMenu();\r\n status = true;\r\n }else{\r\n $(\".sub-menu\").removeClass(\"open\");\r\n $(\".sub-menu >ul >li\").removeClass(\"open\");\r\n NavigationMenu.contentMenu();\r\n status = false;\r\n }\r\n }else{\r\n $(\".sub-menu\").removeClass(\"open\");\r\n $(\".sub-menu >ul >li\").removeClass(\"open\");\r\n }\r\n\r\n });\r\n\r\n $(\".sub-menu >ul >li >a\").on(\"click\", function(e){\r\n e.preventDefault();\r\n if ($(window).width() < 871){\r\n $(\".sub-menu >ul >li\").removeClass(\"open\");\r\n $(this).parent().addClass(\"open\");\r\n NavigationMenu.contentMenu();\r\n // if (!statusSubMenu) {\r\n // $(this).parent().addClass(\"open\");\r\n // NavigationMenu.contentMenu();\r\n // //statusSubMenu = true;\r\n // }else{\r\n // $(\".sub-menu >ul >li\").removeClass(\"open\");\r\n // NavigationMenu.contentMenu();\r\n // //statusSubMenu = false;\r\n // }\r\n }\r\n });\r\n\r\n /*\r\n if ($(window).width() < 871){\r\n let status = false;\r\n $(\".sub-menu > a\").on(\"click\", function(e){\r\n e.preventDefault();\r\n if (!status) {\r\n $(this).parent().addClass(\"open\");\r\n NavigationMenu.contentMenu();\r\n status = true;\r\n }else{\r\n $(\".sub-menu\").removeClass(\"open\");\r\n NavigationMenu.contentMenu();\r\n status = false;\r\n }\r\n console.log(status);\r\n });\r\n }else{\r\n $(\".sub-menu\").removeClass(\"open\");\r\n }\r\n */\r\n }\r\n\r\n static contentMenu(){\r\n var hc = $(\".header-nav.open ul\").height();\r\n var H = $(window).height();\r\n //alert(hc + \" / \" + H);\r\n\r\n if (H > hc) {\r\n $(\".header-nav.open\").addClass(\"tp\").height(hc);\r\n $(\".header-nav.open\").removeClass(\"ov_hidden\");\r\n\r\n }else{\r\n $(\".header-nav.open\").removeClass(\"tp\").height(H);\r\n $(\".header-nav.open\").addClass(\"ov_hidden\");\r\n }\r\n }\r\n\r\n}\r\nexport {NavigationMenu};","import {NavigationMenu} from './navigation-menu';\r\n\r\nclass PageLayout {\r\n constructor() {}\r\n \r\n run() {\r\n $(function () {\r\n NavigationMenu.run();\r\n });\r\n\r\n }\r\n}\r\nexport {PageLayout};\r\n","import {PageLayout} from './layout';\r\n\r\nvar init = new PageLayout();\r\ninit.run();"]}