{"version":3,"sources":["webpack:///menu/menu.js","webpack:///webpack/bootstrap 4a81f45e611e7f404202?1600************","webpack:///./src/store-modules/menu/menu.ts"],"names":[],"mappings":"AAAA,SAAS,CAAC,SAAS,SAAS;;UCC5B;;;UAGA;;;WAGA;YACA;;;WAGA;YACA;YACA;YACA;;;;WAIA;;;WAGA;;;WAGA;;;;;UAKA;;;UAGA;;;UAGA,0CAA2C;;;UAG3C;WACA;YACA;aACA;aACA;aACA;;;;;;UAMA;WACA;YACA,wBAA2B;YAC3B,8BAAiC;WACjC;WACA;;;;UAIA,qDAAsD;;;UAGtD;;;UAGA;;;UDIU;;MAEJ;OACC,SAAS,QAAQ,SAAS;;AErEjC,EAAE,UAAU,MAAM;IACjB,IAAI,UAAU,SAAS,qBAAqB,YAAY;IAExD,IAAI,WAAW,CAAC;QACf,IAAI,WAAW,EAAE,aAChB,gBAAgB,SAAS,KAAK,mBAC9B,eAAe,cAAc,KAAK,kBAClC,oBAAoB,aAAa,KAAK,OACtC,qBAAqB,cAAc,SACnC,oBAAoB,aAAa,SACjC,aAAa,SAAS,KAAK,iBAC3B,YAAY,SAAS,KAAK,gBAC1B,UAAU,GACV,MAAM;QAEP,IAAI,OAAO,CAAC;YACX,aAAa,IAAI,aAAa;YAE9B,MAAM,KAAK,OAAO,gBAAgB;YAClC,UAAU;YAIV;;QAGD;YACC,IAAI,aAAa;YACjB,kBAAkB,KAAK;gBACtB,IAAI,YAAY,EAAE,MAAM;gBACxB,cAAc;;YAEf,OAAO;;QAGR;YACC,IAAI,aAAa;YACjB,kBAAkB,KAAK;gBACtB,IAAI,YAAY,EAAE,MAAM;gBACxB,cAAc;gBACd,IAAI,cAAc,oBAAoB;oBACrC,OAAO;;;YAIT,OAAO;;QAGR;YACC,QAAQ,CAAC,SAAS,gBAAgB,gBAAgB;;QAGnD;YACC,OAAO,aAAa,WAAW;;QAGhC;YACC,IAAI,gBAAgB,oBAAoB;gBACvC,UAAU;;YAEX,IAAI,UAAU,KAAK,UAA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EAAE,SAAS,GAAG,SAAS,gBAAgB;QACtC,IAAI,SAAS,EAAE,MAAM;QACrB,MAAM;QACN,IAAI,EAAE,MAAM,SAAS,sBAAsB;YAC1C,EAAE,MAAM,YAAY,qBAAqB,SAAS;YAClD,EAAE,MAAM,SAAS,SAAS,KAAK,MAAM;;aAC/B;YACN,EAAE,MAAM,YAAY,qBAAqB,SAAS;YAClD,EAAE,MAAM,SAAS,SAAS,KAAK,MAAM","file":"menu/menu.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 441);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 441:\n/***/ (function(module, exports) {\n\n$(document).ready(function () {\r\n var element = document.getElementsByTagName('ecb-menu')[0];\r\n var megaMenu = (function () {\r\n var megaMenu = $('.mg-menu'), megaMenuInner = megaMenu.find('.mg-menu-inner'), megaMenuList = megaMenuInner.find('.mg-menu-list'), megaMenuListItems = megaMenuList.find(\"li\"), megaMenuInnerWidth = megaMenuInner.width(), megaMenuListWidth = megaMenuList.width(), arrowRight = megaMenu.find('.arrow-right'), arrowLeft = megaMenu.find('.arrow-left'), counter = 0, mid = 0;\r\n var init = (function () {\r\n megaMenuList.css(\"min-width\", widthOfList());\r\n mid = Math.floor((widthOfList() / megaMenuInnerWidth));\r\n counter = mid;\r\n reAdjust();\r\n })();\r\n function widthOfList() {\r\n var itemsWidth = 0;\r\n megaMenuListItems.each(function () {\r\n var itemWidth = $(this).outerWidth();\r\n itemsWidth += itemWidth;\r\n });\r\n return itemsWidth;\r\n }\r\n function widthOfShow() {\r\n var itemsWidth = 0;\r\n megaMenuListItems.each(function () {\r\n var itemWidth = $(this).outerWidth();\r\n itemsWidth += itemWidth;\r\n if (itemsWidth >= megaMenuInnerWidth) {\r\n return false;\r\n }\r\n });\r\n return itemsWidth;\r\n }\r\n function widthOfHidden() {\r\n return ((megaMenu.outerWidth()) - widthOfList() - getLeftPos());\r\n }\r\n function getLeftPos() {\r\n return megaMenuList.position().left;\r\n }\r\n function reAdjust() {\r\n if (widthOfList() > megaMenuInnerWidth) {\r\n arrowLeft.show();\r\n }\r\n if (counter > 0 && counter < mid) {\r\n arrowLeft.show();\r\n arrowRight.show();\r\n }\r\n if (counter === mid) {\r\n arrowLeft.show();\r\n arrowRight.hide();\r\n }\r\n if (widthOfList() <= megaMenuInnerWidth) {\r\n arrowLeft.hide();\r\n arrowRight.hide();\r\n }\r\n if (counter === 0) {\r\n arrowLeft.hide();\r\n }\r\n }\r\n $(window).on('resize', function (e) {\r\n reAdjust();\r\n });\r\n arrowRight.on(\"click\", function (e) {\r\n e.preventDefault();\r\n counter++;\r\n reAdjust();\r\n megaMenuList.animate({\r\n marginRight: \"-=\" + Math.abs(megaMenuInnerWidth) * -1 + \"px\"\r\n }, 'slow', 'linear');\r\n });\r\n arrowLeft.on(\"click\", function (e) {\r\n e.preventDefault();\r\n --counter;\r\n arrowRight.show();\r\n reAdjust();\r\n megaMenuList.animate({\r\n marginRight: \"-=\" + megaMenuInnerWidth + \"px\"\r\n }, 'slow', 'linear');\r\n });\r\n })();\r\n $('.masonry').masonry({\r\n // options\r\n isOriginLeft: false,\r\n itemSelector: '.grid',\r\n columnWidth: '.grid'\r\n });\r\n $(element).on('click', '.togelmenu', function () {\r\n $('.mobile-nav').slideToggle(\"fast\");\r\n var menuBackDoor = '
';\r\n $('body').append(menuBackDoor);\r\n $('#store-menu-backdoor').on('click', function () {\r\n $(this).detach();\r\n $('.mobile-nav').slideToggle(\"fast\");\r\n });\r\n });\r\n var $menu = $(\"#ecb_megamenu\");\r\n var $menuItems = $menu.find(\".ecb_gomenu > ul > li\");\r\n var $menuLinks = $menu.find(\".ecb_gomenu > ul > li > a\");\r\n $menuLinks.on(\"click\", function (e) {\r\n // if touch event not supported then exit\r\n if (!Modernizr.touchevents) {\r\n return;\r\n }\r\n var parent = $(this).parent();\r\n if (parent.hasClass('hovered')) {\r\n return true;\r\n }\r\n else {\r\n // touched for two\r\n e.preventDefault();\r\n $menuItems.each(function () {\r\n $(this).removeClass('hovered');\r\n });\r\n parent.addClass('hovered');\r\n }\r\n });\r\n $(document).on(\"click\", function (e) {\r\n if (!$(e.target).parents().hasClass('hovered')) {\r\n $menuItems.each(function () {\r\n $(this).removeClass('hovered');\r\n });\r\n }\r\n });\r\n $(element).on('click', '.zmdi i.zmdi', function () {\r\n var target = $(event.target);\r\n event.preventDefault();\r\n if ($(this).hasClass(\"zmdi-chevron-left\")) {\r\n $(this).removeClass('zmdi-chevron-left').addClass('zmdi-chevron-down');\r\n $(this).parent().parent().next('ul').slideDown();\r\n }\r\n else {\r\n $(this).removeClass('zmdi-chevron-down').addClass('zmdi-chevron-left');\r\n $(this).parent().parent().next('ul').slideUp();\r\n }\r\n });\r\n});\r\n\n\n/***/ })\n\n/******/ });\n\n\n// WEBPACK FOOTER //\n// menu/menu.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 441);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 4a81f45e611e7f404202","\r\n\r\n$(document).ready(() => {\r\n\tvar element = document.getElementsByTagName('ecb-menu')[0]\r\n\r\n\tvar megaMenu = (function () {\r\n\t\tvar megaMenu = $('.mg-menu'),\r\n\t\t\tmegaMenuInner = megaMenu.find('.mg-menu-inner'),\r\n\t\t\tmegaMenuList = megaMenuInner.find('.mg-menu-list'),\r\n\t\t\tmegaMenuListItems = megaMenuList.find(\"li\"),\r\n\t\t\tmegaMenuInnerWidth = megaMenuInner.width(),\r\n\t\t\tmegaMenuListWidth = megaMenuList.width(),\r\n\t\t\tarrowRight = megaMenu.find('.arrow-right'),\r\n\t\t\tarrowLeft = megaMenu.find('.arrow-left'),\r\n\t\t\tcounter = 0,\r\n\t\t\tmid = 0;\r\n\r\n\t\tvar init = (function () {\r\n\t\t\tmegaMenuList.css(\"min-width\", widthOfList());\r\n\r\n\t\t\tmid = Math.floor((widthOfList() / megaMenuInnerWidth));\r\n\t\t\tcounter = mid;\r\n\r\n\r\n\r\n\t\t\treAdjust();\r\n\t\t})();\r\n\r\n\t\tfunction widthOfList() {\r\n\t\t\tvar itemsWidth = 0;\r\n\t\t\tmegaMenuListItems.each(function () {\r\n\t\t\t\tvar itemWidth = $(this).outerWidth();\r\n\t\t\t\titemsWidth += itemWidth;\r\n\t\t\t});\r\n\t\t\treturn itemsWidth;\r\n\t\t}\r\n\r\n\t\tfunction widthOfShow() {\r\n\t\t\tvar itemsWidth = 0;\r\n\t\t\tmegaMenuListItems.each(function () {\r\n\t\t\t\tvar itemWidth = $(this).outerWidth();\r\n\t\t\t\titemsWidth += itemWidth;\r\n\t\t\t\tif (itemsWidth >= megaMenuInnerWidth) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\treturn itemsWidth;\r\n\t\t}\r\n\r\n\t\tfunction widthOfHidden() {\r\n\t\t\treturn ((megaMenu.outerWidth()) - widthOfList() - getLeftPos());\r\n\t\t}\r\n\r\n\t\tfunction getLeftPos() {\r\n\t\t\treturn megaMenuList.position().left;\r\n\t\t}\r\n\r\n\t\tfunction reAdjust() {\r\n\t\t\tif (widthOfList() > megaMenuInnerWidth) {\r\n\t\t\t\tarrowLeft.show();\r\n\t\t\t}\r\n\t\t\tif (counter > 0 && counter < mid) {\r\n\t\t\t\tarrowLeft.show();\r\n\t\t\t\tarrowRight.show();\r\n\t\t\t}\r\n\t\t\tif (counter === mid) {\r\n\t\t\t\tarrowLeft.show();\r\n\t\t\t\tarrowRight.hide();\r\n\t\t\t}\r\n\t\t\tif (widthOfList() <= megaMenuInnerWidth) {\r\n\r\n\t\t\t\tarrowLeft.hide();\r\n\t\t\t\tarrowRight.hide();\r\n\t\t\t}\r\n\t\t\tif (counter === 0) {\r\n\t\t\t\tarrowLeft.hide();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$(window).on('resize', function (e) {\r\n\t\t\treAdjust();\r\n\t\t});\r\n\r\n\t\tarrowRight.on(\"click\", function (e) {\r\n\t\t\te.preventDefault();\r\n\r\n\t\t\tcounter++;\r\n\t\t\treAdjust();\r\n\r\n\t\t\tmegaMenuList.animate({\r\n\t\t\t\tmarginRight: \"-=\" + Math.abs(megaMenuInnerWidth) * -1 + \"px\"\r\n\t\t\t}, 'slow', 'linear');\r\n\t\t});\r\n\r\n\t\tarrowLeft.on(\"click\", function (e) {\r\n\t\t\te.preventDefault();\r\n\r\n\t\t\t--counter;\r\n\t\t\tarrowRight.show();\r\n\t\t\treAdjust();\r\n\r\n\t\t\tmegaMenuList.animate({\r\n\t\t\t\tmarginRight: \"-=\" + megaMenuInnerWidth + \"px\"\r\n\t\t\t}, 'slow', 'linear');\r\n\t\t});\r\n\t})();\r\n\r\n\t$('.masonry').masonry({\r\n\t\t// options\r\n\t\tisOriginLeft: false,\r\n\t\titemSelector: '.grid',\r\n\t\tcolumnWidth: '.grid'\r\n\t});\r\n\r\n\t$(element).on('click', '.togelmenu', function () {\r\n\t\t$('.mobile-nav').slideToggle(\"fast\");\r\n\t\tvar menuBackDoor = ''\r\n $('body').append(menuBackDoor)\r\n $('#store-menu-backdoor').on('click', function () {\r\n $(this).detach()\r\n $('.mobile-nav').slideToggle(\"fast\");\r\n })\r\n\t})\r\n\r\n\tvar $menu = $(\"#ecb_megamenu\")\r\n\tvar $menuItems = $menu.find(\".ecb_gomenu > ul > li\")\r\n\tvar $menuLinks = $menu.find(\".ecb_gomenu > ul > li > a\");\r\n\r\n\t$menuLinks.on(\"click\", function (e) {\r\n\t\t// if touch event not supported then exit\r\n\r\n\t\tif (!Modernizr.touchevents) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tvar parent = $(this).parent();\r\n\t\tif (parent.hasClass('hovered')) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// touched for two\r\n\t\t\te.preventDefault();\r\n\t\t\t$menuItems.each(function () {\r\n\t\t\t\t$(this).removeClass('hovered');\r\n\t\t\t});\r\n\t\t\tparent.addClass('hovered');\r\n\t\t}\r\n\r\n\t});\r\n\r\n\t$(document).on(\"click\", function (e) {\r\n\t\tif (!$(e.target).parents().hasClass('hovered')) {\r\n\t\t\t$menuItems.each(function () {\r\n\t\t\t\t$(this).removeClass('hovered');\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n\r\n\t$(element).on('click', '.zmdi i.zmdi', function () {\r\n\t\tvar target = $(event.target);\r\n\t\tevent.preventDefault();\r\n\t\tif ($(this).hasClass(\"zmdi-chevron-left\")) {\r\n\t\t\t$(this).removeClass('zmdi-chevron-left').addClass('zmdi-chevron-down')\r\n\t\t\t$(this).parent().parent().next('ul').slideDown()\r\n\t\t} else {\r\n\t\t\t$(this).removeClass('zmdi-chevron-down').addClass('zmdi-chevron-left')\r\n\t\t\t$(this).parent().parent().next('ul').slideUp()\r\n\t\t}\r\n\t});\r\n})\n\n\n// WEBPACK FOOTER //\n// ./src/store-modules/menu/menu.ts"],"sourceRoot":""}