{"version":3,"sources":["webpack:///./LeLab.Gcv.Web/src/atomic/molecule/m-dropdown/m-dropdown.chunk.js","webpack:///./LeLab.Gcv.Web/src/atomic/molecule/m-dropdown/m-dropdown.scss"],"names":["require","$","isTouchEvent","isVisible","$document","document","openCartSubNav","$link","$dropdown","find","stop","addClass","on","closeCartSubNav","removeClass"],"mappings":";;;;;;;;AAAA,mBAAAA,CAAQ,GAAR;;AAEA,IAAIC,IAAI,mBAAAD,CAAQ,CAAR,CAAR;AAAA,IACIE,eAAe,mBAAAF,CAAQ,GAAR,CADnB;AAAA,IAEIG,YAAY,KAFhB;AAAA,IAGIC,YAAYH,EAAEI,QAAF,CAHhB;;AAKA;AACA;;;;;;;;;AASA,SAASC,cAAT,GAA0B;AACtB,QAAIC,QAAQN,EAAE,IAAF,CAAZ;AAAA,QACIO,YAAYD,MAAME,IAAN,CAAW,cAAX,CADhB;;AAGA,QAAI,CAACN,SAAD,IAAc,CAACD,cAAnB,EAAmC;AAC/B;AACAM,kBAAUE,IAAV,CAAe,IAAf,EAAqB,IAArB,EAA2BC,QAA3B,CAAoC,kBAApC;AACAR,oBAAY,IAAZ;AACH;AACJ;;AAEDF,EAAEI,QAAF,EAAYO,EAAZ,CAAe,qBAAf,EAAsC,mBAAtC,EAA2DN,cAA3D;AACAL,EAAEI,QAAF,EAAYO,EAAZ,CAAe,kBAAf,EAAmC,mBAAnC,EAAwDN,cAAxD;;AAGA,SAASO,eAAT,GAA2B;AACvB,QAAIN,QAAQN,EAAE,IAAF,CAAZ;AAAA,QACIO,YAAYD,MAAME,IAAN,CAAW,cAAX,CADhB;;AAGA,QAAIN,aAAa,CAACD,cAAlB,EAAkC;AAC9B;AACAM,kBAAUM,WAAV,CAAsB,kBAAtB;AACAX,oBAAY,KAAZ;AACH;AACJ;;AAEDF,EAAEI,QAAF,EAAYO,EAAZ,CAAe,qBAAf,EAAsC,mBAAtC,EAA2DC,eAA3D;AACAZ,EAAEI,QAAF,EAAYO,EAAZ,CAAe,eAAf,EAAgC,mBAAhC,EAAqDC,eAArD;;AAGA;;;;;;;;;;;;;AC/CA,yC","file":"m-dropdown.js","sourcesContent":["require(\"./m-dropdown.scss\");\r\n\r\nvar $ = require('jquery'),\r\n isTouchEvent = require(\"../../../utils/is-touch-event\"),\r\n isVisible = false,\r\n $document = $(document);\r\n\r\n// Dropdown\r\n/*$(document).on(\"click.dropdown\", \".js-dropdown-open\", function(e) {\r\n var $link = $(this),\r\n $dropdown = $link.find(\".js-dropdown\");\r\n\r\n if (isTouchEvent()) {\r\n e.stopPropagation();\r\n $dropdown.slideToggle(200);\r\n }\r\n});*/\r\nfunction openCartSubNav() {\r\n var $link = $(this),\r\n $dropdown = $link.find(\".js-dropdown\");\r\n\r\n if (!isVisible && !isTouchEvent()) {\r\n //$dropdown.stop(true, true).slideDown(200);\r\n $dropdown.stop(true, true).addClass('m-dropdown--open');\r\n isVisible = true;\r\n }\r\n}\r\n\r\n$(document).on(\"mouseenter.dropdown\", \".js-dropdown-open\", openCartSubNav);\r\n$(document).on(\"focusin.dropdown\", \".js-dropdown-open\", openCartSubNav);\r\n\r\n\r\nfunction closeCartSubNav() {\r\n var $link = $(this),\r\n $dropdown = $link.find(\".js-dropdown\");\r\n\r\n if (isVisible && !isTouchEvent()) {\r\n //$dropdown.slideUp(200);\r\n $dropdown.removeClass('m-dropdown--open');\r\n isVisible = false;\r\n }\r\n}\r\n\r\n$(document).on(\"mouseleave.dropdown\", \".js-dropdown-open\", closeCartSubNav);\r\n$(document).on(\"blur.dropdown\", \".js-dropdown-open\", closeCartSubNav);\r\n\r\n\r\n/*$document.on('click.dropdown', function () {\r\n var $dropdown = $link.find(\".js-dropdown\");\r\n if (isTouchEvent()) {\r\n //$('.js-dropdown').slideUp(200);\r\n $dropdown.removeClass('m-dropdown--open');\r\n }\r\n});*/\n\n\n// WEBPACK FOOTER //\n// ./LeLab.Gcv.Web/src/atomic/molecule/m-dropdown/m-dropdown.chunk.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./LeLab.Gcv.Web/src/atomic/molecule/m-dropdown/m-dropdown.scss\n// module id = 374\n// module chunks = 146"],"sourceRoot":""}