"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["nav-login"],{"./lib/layout/header/nav-login.js":function(h,a,n){n.r(a),n.d(a,{default:function(){return i}});var u=n("../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),o=n("../node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("../node_modules/@babel/runtime/helpers/esm/createClass.js"),i=function(){function l(e){(0,o.Z)(this,l),this.elNavLogins=e.querySelectorAll(".js-nav-login-wrapper"),this.elNavUserBtn=e.querySelector(".js-nav-user-btn"),this.elNavUserMenu=e.querySelector(".menu--account"),this.initEvents()}return(0,r.Z)(l,[{key:"initEvents",value:function(){var s=this;(0,u.Z)(this.elNavLogins).forEach(function(t){var c=t.querySelector(".js-nav-user-btn"),v=t.querySelector(".menu--account");c.addEventListener("click",function(){s.toggleUserMenu(v)})}),document.addEventListener("click",function(t){t.target.closest(".js-nav-login-wrapper")===null&&s.closeUserMenus()})}},{key:"toggleUserMenu",value:function(s){s.classList.contains("js-show")?s.classList.remove("js-show"):s.classList.add("js-show")}},{key:"closeUserMenus",value:function(){}}]),l}()}}]);