!function(){"use strict";rey.hooks.addAction("first_interaction",(function(){document.querySelectorAll(".js-rey-headerSearch-form").forEach((e=>{var n=e.parentElement,t=function(){n.classList.remove("--active"),rey.frontend.panels.reset(),rey.frontend.overlay.close()};e.addEventListener("click",(function(e){e.preventDefault(),n.classList.contains("--active")?t():(rey.frontend.panels.init(t.bind(this)),rey.frontend.overlay.open(),n.classList.add("--active"))}))}))}))}();