"use strict";function redirectTo(n){window.parent.frames.length>0?window.parent.location.href=n:window.location.href=n}window.onload=function(){document.getElementById("pageLoader")&&(document.getElementById("pageLoader").style.display="none")};$(document).ready(function(){function u(n){n.preventDefault();var t=this.href;window.open(t,"livechatwin","width=380,height=600,toolbars=no,status=no,location=no")}var i,t,r,n;for(window.parent.frames.length>0&&(document.querySelector("#bodyLight")||(document.documentElement.style.backgroundColor="transparent",document.body.style.background="transparent")),i=document.getElementsByClassName("live-chat__link"),t=0;t<i.length;t++)i[t].addEventListener("click",u);document.addEventListener("click",function(n){var t=n.target;t.matches("[data-redirect-url]")&&redirectTo(n.target.href)});document.getElementById("addAnotherFeature")&&$("#addAnotherFeature").click(function(n){n.preventDefault();$("#brandFeatures").append('<div class="col-md-3">').append('@Html.EditorFor(model => model.BrandFeatures[i], new { htmlAttributes = new { @class = "form-control"} })').append('@Html.ValidationMessageFor(model => model.BrandFeatures[i], "", new { @class = "text-danger" })').append("<\/div>")});r=window.location.href;n="mm-active";$(".app-sidebar__inner ul li a").each(function(){r.endsWith($(this).attr("href"))?($(this).addClass(n),$(this).parent("li").addClass(n)):($(this).removeClass(n),$(this).parent("li").removeClass(n))})})