!function(e){"use strict";var t={init:function(n){t.config={responsive_menu_width:1199,header_menu:e(".lawyer-header__inner"),header:e(".default-blog-header")},e.extend(t.config,n),t.setup()},setup:function(){t.offcanvas(),t.woo()},offcanvas:function(){let e=document.querySelector(".offcanvas__area"),t=document.querySelector(".info-default-offcanvas"),n=document.querySelector(".offcanvas__close");t&&t.addEventListener("click",()=>{e.classList.add("show")}),n&&n.addEventListener("click",()=>{e.classList.remove("show")}),document.addEventListener("click",n=>{if(e){let a=e.contains(n.target)||t.contains(n.target);a||e.classList.remove("show")}});let a=document.querySelectorAll(".arolax-mb-menu-items li > a");a.forEach(e=>{let t=e.nextElementSibling;t&&"UL"===t.tagName&&t.classList.contains("dp-menu")&&(e.querySelector(".nav-direction-icon").setAttribute("data-icon","+"),e.querySelector(".nav-direction-icon").addEventListener("click",function(e){let t=this.parentElement.nextElementSibling;if(t&&"UL"===t.tagName&&t.classList.contains("dp-menu")){e.preventDefault();let n="true"===t.getAttribute("aria-expanded");t.setAttribute("aria-expanded",!n),t.style.display=n?"none":"block",n?this.setAttribute("data-icon","+"):this.setAttribute("data-icon","-")}}))}),document.querySelectorAll(".hello-animation-mb-menu-items a").forEach(e=>{e.addEventListener("keydown",function(e){if("ArrowDown"===e.key){e.preventDefault();let t=e.target.parentElement.nextElementSibling;t&&t.querySelector("a").focus()}if("ArrowUp"===e.key){e.preventDefault();let n=e.target.parentElement.previousElementSibling;n&&n.querySelector("a").focus()}})})},woo:function(){let t=0,n=null;e(document).on("click",".quantity .plus",function(){n=e(this).parents(".quantity").find("input"),t=parseInt(n.val()),n.val(++t),jQuery("[name='update_cart']").prop("disabled",!1),arolax_obj.cart_update_qty_change&&jQuery("[name='update_cart']").trigger("click")}),e(document).on("click",".quantity .minus",function(){n=e(this).parents(".quantity").find("input"),t=parseInt(n.val()),0==(t=--t)&&(t=1),n.val(t),jQuery("[name='update_cart']").prop("disabled",!1),arolax_obj.cart_update_qty_change&&jQuery("[name='update_cart']").trigger("click")})}};e(document).ready(t.init)}(jQuery);