',n=(e=e+(""+t.text+"")+"",'");3===o.length&&"sell"===t.item?$(".bottom-menu").append(n):t.isConditional&&!t.condition()||$(".bottom-menu").append(e)}),loadMenuActive()}function loadMenuActive(){""===window.location.pathname.split("/").pop()||"buy"===window.location.pathname.split("/").pop()?$(".bottom-menu .menu-home").addClass("active"):"sell"===window.location.pathname.split("/").pop()?$(".bottom-menu .menu-sell").addClass("active"):"golden-pashu"===window.location.pathname.split("/").pop()?($(".bottom-menu").addClass("dark"),$(".bottom-menu .menu-goldenpashu").addClass("active")):"mart"===window.location.pathname.split("/").pop()&&$(".bottom-menu .menu-mart").addClass("active")}function redirectToGoldenPashu(){var t=getCookie("jaanchShowedCount")||0;!getCookie("jaanchShowed")&&"golden-pashu"!==window.location.pathname.split("/").pop()&&t<=3&&(setCookie("jaanchShowedCount",parseInt(t)+1,30),setCookie("jaanchShowed",new Date,1),window.location.href="/golden-pashu?source=autoRedirect")}function isAmartRegionUserMenu(){var t="FARIDABAD",e="GHAZIABAD",n="MUZAFFARNAGAR",o="JHUNJHUNU",t={PALWAL:t,FARIDABAD:t,"GAUTAM BUDDH NAGAR":e,"GAUTAMBUDDHA NAGAR":e,HAPUR:e,BULANDSHAHR:e,GHAZIABAD:e,MUZAFFARNAGAR:n,SHAMLI:n,JHUNJHUNU:o,"NEEM KA THANA":o},e=(getCookie("district")||"").toUpperCase(),n=e?t[e]:null,o="amartZone";return getCookie("accessToken")&&n&&e?(sessionStorage.setItem(o,n),!0):(sessionStorage.getItem(o)&&sessionStorage.removeItem(o),!1)}function showHideAmartNewTag(){var t="amartNewTag",e="new-tag",n=sessionStorage.getItem(t);!getCookie(t)||n?(sessionStorage.setItem(t,!0),n=((24-(new Date).getHours())/24).toFixed(2),setCookie(t,!0,n),$(".menu-mart").addClass(e)):$(".menu-mart").removeClass(e)}document.addEventListener("DOMContentLoaded",function(){renderMenu(),getCookie("userState")&&"bihar"!==getCookie("userState").toLowerCase()&&$(".free-vet").hide()}),document.addEventListener("userLocationChange",function(){renderMenu(!0)})