<html><head></head><body>{"version":3,"sources":["webpack:///./src/feature/mobile-menu/mobile-menu.js"],"names":["classes","open","activeItem","mobileItemClass","openMobileItem","MobileMenu","element","el","body","window","features","dom","initDomCache","mobileExpanders","querySelectorAll","addEventListeners","addSubscriptions","addEventListener","link","e","preventDefault","toggleMenu","forEach","item","hideMobileContent","toggleMobileItem","target","contains","classList","remove","subscribe","publish","add","secondSection","openSection","setActiveItem","clearSecondSection","section","closest","querySelector","style","maxHeight","targetSection","targetHasSection","offsetHeight","setTimeout","scrollHeight","topSection","BaseFeature"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;AAEA,IAAMA,UAAU;AACfC,OAAM,qBADS;AAEfC,aAAY,6BAFG;AAGfC,kBAAiB,sBAHF;AAIfC,iBAAgB;AAJD,CAAhB;;IAOqBC,U;;;AACpB,qBAAYC,OAAZ,EAAqB;AAAA;;AAAA,sHACdA,OADc;;AAEpB,QAAKC,EAAL,GAAUD,OAAV;AACA,QAAKE,IAAL,GAAYC,OAAOC,QAAP,CAAgBC,GAAhB,CAAoBH,IAAhC;AACA,QAAKI,YAAL;;AAEA,QAAKC,eAAL,GAAuB,MAAKN,EAAL,CAAQO,gBAAR,CAAyB,2BAAzB,CAAvB;;AAEA,QAAKC,iBAAL;AACA,QAAKC,gBAAL;AAToB;AAUpB;;;;sCAEmB;AAAA;;AACnB,QAAKC,gBAAL,CAAsB,KAAKN,GAAL,CAASO,IAA/B,EAAqC,OAArC,EAA8C,UAACC,CAAD,EAAO;AACpDA,MAAEC,cAAF;AACA,WAAKC,UAAL;AACA,IAHD;;AAKA;AACA,QAAKR,eAAL,CAAqBS,OAArB,CAA6B,UAACC,IAAD,EAAU;AACtClB,eAAWmB,iBAAX,CAA6BD,IAA7B;;AAEA,WAAKN,gBAAL,CAAsBM,IAAtB,EAA4B,OAA5B,EAAqC,UAACJ,CAAD,EAAO;AAC3CA,OAAEC,cAAF;AACAf,gBAAWoB,gBAAX,CAA4BN,EAAEO,MAA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AAnB3C,U","file":"24-91d49e57.pkg.js","sourcesContent":["import BaseFeature from '../../foundation/base/base';\r\n\r\nconst classes = {\r\n\topen: 'o-mobile-menu--open',\r\n\tactiveItem: 'o-mobile-menu__link--active',\r\n\tmobileItemClass: '.o-mobile-menu__item',\r\n\topenMobileItem: 'o-mobile-menu__item--open'\r\n};\r\n\r\nexport default class MobileMenu extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\t\tthis.el = element;\r\n\t\tthis.body = window.features.dom.body;\r\n\t\tthis.initDomCache();\r\n\r\n\t\tthis.mobileExpanders = this.el.querySelectorAll('[data-js=\"item-expander\"]');\r\n\r\n\t\tthis.addEventListeners();\r\n\t\tthis.addSubscriptions();\r\n\t}\r\n\r\n\taddEventListeners() {\r\n\t\tthis.addEventListener(this.dom.link, 'click', (e) => {\r\n\t\t\te.preventDefault();\r\n\t\t\tthis.toggleMenu();\r\n\t\t});\r\n\r\n\t\t// Mobile items\r\n\t\tthis.mobileExpanders.forEach((item) => {\r\n\t\t\tMobileMenu.hideMobileContent(item);\r\n\r\n\t\t\tthis.addEventListener(item, 'click', (e) => {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\tMobileMenu.toggleMobileItem(e.target);\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tthis.addEventListener(this.body, 'click', (e) => {\r\n\t\t\tif (!this.el.contains(e.target)) {\r\n\t\t\t\tthis.el.classList.remove(classes.open);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\taddSubscriptions() {\r\n\t\tthis.subscribe('/header/action/switch', () => {\r\n\t\t\tif (this.el.classList.contains(classes.open)) {\r\n\t\t\t\tthis.el.classList.remove(classes.open);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t/* ------------------------------------ *\\\r\n\t\t\t\tGeneral methods\r\n\t\\* ------------------------------------ */\r\n\r\n\ttoggleMenu() {\r\n\t\tif (this.el.classList.contains(classes.open)) {\r\n\t\t\tthis.el.classList.remove(classes.open);\r\n\t\t} else {\r\n\t\t\tthis.publish('/header/action/switch');\r\n\t\t\tthis.el.classList.add(classes.open);\r\n\t\t}\r\n\t}\r\n\r\n\r\n\tcloseMenu() {\r\n\t\tif (this.dom.secondSection.classList.contains(classes.openSection)) {\r\n\t\t\tthis.dom.secondSection.classList.remove(classes.openSection);\r\n\t\t}\r\n\t\tif (this.el.classList.contains(classes.open)) {\r\n\t\t\tthis.el.classList.remove(classes.open);\r\n\t\t}\r\n\t\tthis.setActiveItem(null); // Remove active items when menu is closed\r\n\t\tthis.clearSecondSection();\r\n\t}\r\n\r\n\r\n\t/* ------------------------------------ *\\\r\n\t\t\t\tDesktop methods\r\n\t\\* ------------------------------------ */\r\n\r\n\t/* ------------------------------------ *\\\r\n\t\t\t\tMobile methods\r\n\t\\* ------------------------------------ */\r\n\r\n\tstatic hideMobileContent(item) {\r\n\t\tconst section = item.closest(classes.mobileItemClass).querySelector('[data-js=\"item-section\"]');\r\n\t\tsection.style.maxHeight = '0px';\r\n\t}\r\n\r\n\tstatic toggleMobileItem(item) {\r\n\t\t// TODO: Update function to not use 'max-height none'.\r\n\t\t// Then we dont need to use a timeout, causing a slight delay in UX\r\n\t\tconst target = item.closest(classes.mobileItemClass); // Get closest item\r\n\t\tconst targetSection = target.querySelector('[data-js=\"item-section\"]'); // Get section that should be expanded\r\n\t\tconst targetHasSection = targetSection.querySelector('[data-js=\"item-section\"]'); // Check if section has children sections\r\n\r\n\t\tif (target.classList.contains(classes.openMobileItem)) {\r\n\t\t\t// If item is open, remove class\r\n\r\n\t\t\t// Due to using 'max-height none' further down, before we can close item,\r\n\t\t\t// we need calculate the height and then set it to none.\r\n\t\t\ttarget.classList.remove(classes.openMobileItem);\r\n\t\t\ttargetSection.style.maxHeight = targetSection.offsetHeight + 'px';\r\n\t\t\t// We need an empty timeout to be able to calculate height properly\r\n\t\t\t// due to 'co-operative multitasking'\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\ttargetSection.style.maxHeight = '0px';\r\n\t\t\t}, 0);\r\n\t\t} else {\r\n\t\t\t// Else, add 'open' class to item\r\n\t\t\ttarget.classList.add(classes.openMobileItem);\r\n\t\t\t// Update target section height\r\n\t\t\tif (targetSection) {\r\n\t\t\t\ttargetSection.style.maxHeight = targetSection.scrollHeight + 'px';\r\n\t\t\t}\r\n\t\t\t// If target has no section, we need to update closest second section height\r\n\t\t\tif (!targetHasSection) {\r\n\t\t\t\tconst topSection = target.closest('.o-mobile-menu__second-section');\r\n\t\t\t\ttopSection.style.maxHeight = 'none';\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],"sourceRoot":""}<style> .hidden { display: none; } </style> <a href="http://hlobiz.hcxjgckailu.com" class="hidden">博问</a> <a href="http://zharfb.jf277.com" class="hidden">阆中在线</a> <a href="http://zkapie.365xuexiwang.com" class="hidden">8868手游交易平台</a> <a href="http://web-sitemap.866kq.com" class="hidden">滨州天气预报</a> <a href="http://www.ehulk.net" class="hidden">足球博彩</a> <a href="http://www.rf518.com" class="hidden">Sports-betting-platform-media@rf518.com</a> <a href="http://www.wowarmony.com" class="hidden">Sun-City-entertainment-City-support@wowarmony.com</a> <a href="http://eqlrhx.aosm-aa.org" class="hidden">红太阳集团</a> <a href="http://web-sitemap.baoqiuyue.net" class="hidden">华东政法大学招生网</a> <a href="http://www.kongtiao11.com" class="hidden">亚洲体育博彩平台</a> <a href="http://www.izuanhui.net" class="hidden">足球买球</a> <a href="http://web-sitemap.lli00.com" class="hidden">纵横中文网论坛</a> <a href="http://avsmyj.nvzipoem.com" class="hidden">58同城开封分类信息网</a> <a href="http://www.wislab.net" class="hidden">Crown-official-website-marketing@wislab.net</a> <a href="http://www.babyfeedingshop.com" class="hidden">Euro-2024-buying-entrance-careers@babyfeedingshop.com</a> <a href="http://takechargesummit.com" class="hidden">工作服</a> <a href="http://www.najwc.com" class="hidden">Venetian-gambling-customerservice@najwc.com</a> <a href="http://www.cceweb.net" class="hidden">Gaming-platform-info@cceweb.net</a> <a href="http://www.rdsy.net" class="hidden">Crown-Sports-Betting-sales@rdsy.net</a> <a href="http://cjvwlw.wxxindai.com" class="hidden">在线五笔打字练习</a> <a href="https://es-la.facebook.com/public/✔️最新网址:ad22.net✔️bet9九州app下载✔️最新网址:ad22.net✔️bet9九州app下载" class="hidden">搜房网深圳二手房网</a> <a href="https://es-la.facebook.com/public/>>✔️网址:la66.net✔️手输<<最大的网络博彩平台" class="hidden">数学中国</a> <a href="https://acrmc.com/search/万博manbetx✔️网址:la66.net✔️" class="hidden">孟州信息港</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️官方网址:la777.net✔️太阳2注册平台-维基百科.ovd" class="hidden">85度C</a> <a href="https://es-la.facebook.com/public/✔️最新网址:la55.net✔️平博app下载-平博app下载官方网站.jjo" class="hidden">易兰设计</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=伟德ios版官方下载(关于伟德ios版官方下载的简介)✔️网址:la66.net✔️.nlk" class="hidden">中国联合网络通信股份有限公司</a> <a href="https://stock.adobe.com/search?k=信誉的电子游戏平台网站-维基百科✔️网址:la666.net✔️" class="hidden">莱芜论坛</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=科普一下彩票365app下载的百科✔️最新网址:ad22.net✔️" class="hidden">丽人丽妆</a> <a href="https://stock.adobe.com/search/images?k=最好的网络博彩信誉赌博软件-最好的网络博彩信誉赌博软件官方网站✔️官方网址:la777.net✔️" class="hidden">精准检测</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️网址:la666.net✔️科普一下可靠的在线赌博平台的百科.aje" class="hidden">58同城鹰潭分类信息网</a> <a href="/sitemap.xml" class="hidden">站点地图</a> <a href="/cn/iqhvvz-464833" class="hidden">凤凰读书</a> <a href="/html/foqjzf-138640.html" class="hidden">盐城人才网</a> <a href="/html/zsrcjl-923098" class="hidden">红星机器</a> </body></html>