(function($,w){'use strict';if(!w.jQuery){throw 'IdeaApp: jQuery not found'}
w.IdeaTheme={init:function(){IdeaTheme.navigationMenu.init();IdeaTheme.cart.init();this.eventListener();this.afterInit()},afterInit:function(){this.cart.updateCartContainer();this.initLazyLoad();if(this[IdeaApp.helpers.getRouteGroup()]!==undefined){this[IdeaApp.helpers.getRouteGroup()].init()}
this.login.init();this.dropBox.init();this.bannerTitle();if(IdeaApp.helpers.getRouteGroup()=='product-list'||IdeaApp.helpers.getRouteGroup()=='combine-list'){this.hasFilterOption()}
this.entrySlider('#entry-slider > div');this.solutionsSlider('.sectoral-solutions-slider')},solutionsSlider:function(element){if($(element).length==0){return}
$(element).slick({autoplay:!0,autoplaySpeed:6000,arrows:!0,dots:!1,infinite:!1,speed:300,slidesToShow:6,slidesToScroll:6,prevArrow:`
                    <button type="button" class="slick-prev" aria-label="Previous">
                        <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path fill-rule="evenodd" clip-rule="evenodd" d="M11.1055 2.28169C11.3789 2.55505 11.3789 2.99827 11.1055 3.27163L6.37657 8.00058L11.1041 12.7281C11.3775 13.0015 11.3775 13.4447 11.1041 13.7181C10.8307 13.9914 10.3875 13.9914 10.1141 13.7181L4.89429 8.4982C4.71926 8.32317 4.6563 8.07852 4.7054 7.8534C4.7322 7.72446 4.79564 7.60161 4.89572 7.50154L10.1156 2.28169C10.3889 2.00832 10.8322 2.00832 11.1055 2.28169Z" fill="#272727"/>
                        </svg>                    
                    </button>
                `,nextArrow:`
                    <button type="button" class="slick-next" aria-label="Next">
                        <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path fill-rule="evenodd" clip-rule="evenodd" d="M4.89423 2.28169C4.62087 2.55505 4.62087 2.99827 4.89423 3.27163L9.62318 8.00058L4.89567 12.7281C4.6223 13.0015 4.6223 13.4447 4.89567 13.7181C5.16903 13.9914 5.61225 13.9914 5.88562 13.7181L11.1055 8.4982C11.2805 8.32317 11.3435 8.07852 11.2944 7.8534C11.2676 7.72446 11.2041 7.60161 11.104 7.50154L5.88418 2.28169C5.61082 2.00832 5.1676 2.00832 4.89423 2.28169Z" fill="#272727"/>
                        </svg>                    
                    </button>
                `,responsive:[{breakpoint:1199,settings:{slidesToShow:4,slidesToScroll:4,arrows:!1,dots:!0}},{breakpoint:767,settings:{slidesToShow:3,slidesToScroll:3,arrows:!1,dots:!0}},{breakpoint:575,settings:{slidesToShow:2,slidesToScroll:2,arrows:!1,dots:!0}}]});$(element).on('afterChange',function(event,slick,currentSlide){if((slick.$slides.length-slick.options.slidesToShow)<=currentSlide){$(element).slick('slickPause');setTimeout(function(){$(element).slick('slickGoTo',0);$(element).slick('slickPlay')},$(element).slick('slickGetOption','autoplaySpeed'))}})},entrySlider:function(element){if($(element).length==0){return}
$(element).not('.slick-initialized').slick({slidesToShow:1,slidesToScroll:1,infinite:!1,autoplay:!1,autoplaySpeed:6000,arrows:!0,dots:!0,swipe:!0,speed:300,fade:!0,prevArrow:`
                    <button type="button" class="slick-prev" aria-label="Previous">
                        <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path fill-rule="evenodd" clip-rule="evenodd" d="M11.1055 2.28181C11.3789 2.55517 11.3789 2.99839 11.1055 3.27176L6.37657 8.00071L11.1041 12.7282C11.3775 13.0016 11.3775 13.4448 11.1041 13.7182C10.8307 13.9915 10.3875 13.9915 10.1141 13.7182L4.89429 8.49832C4.71926 8.3233 4.6563 8.07864 4.7054 7.85352C4.7322 7.72458 4.79564 7.60174 4.89572 7.50166L10.1156 2.28181C10.3889 2.00844 10.8322 2.00844 11.1055 2.28181Z" fill="#272727"/>
                        </svg>                    
                    </button>
                `,nextArrow:`
                    <button type="button" class="slick-next" aria-label="Next">
                        <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path fill-rule="evenodd" clip-rule="evenodd" d="M4.89423 2.28181C4.62087 2.55517 4.62087 2.99839 4.89423 3.27176L9.62318 8.00071L4.89567 12.7282C4.6223 13.0016 4.6223 13.4448 4.89567 13.7182C5.16903 13.9915 5.61225 13.9915 5.88562 13.7182L11.1055 8.49832C11.2805 8.3233 11.3435 8.07864 11.2944 7.85352C11.2676 7.72458 11.2041 7.60174 11.104 7.50166L5.88418 2.28181C5.61082 2.00844 5.1676 2.00844 4.89423 2.28181Z" fill="#272727"/>
                        </svg>                    
                    </button>
                `,responsive:[{breakpoint:1099,settings:{arrows:!1,dots:!1}}]});$(element).on('afterChange',function(event,slick,currentSlide){if((slick.$slides.length-slick.options.slidesToShow)<=currentSlide){$(element).slick('slickPause');setTimeout(function(){$(element).slick('slickGoTo',0);$(element).slick('slickPlay')},$(element).slick('slickGetOption','autoplaySpeed'))}})},hasFilterOption:function(){IdeaApp[IdeaApp.helpers.getRouteGroup()].filter.checkFilterMenu=function(){if(!IdeaApp.helpers.matchMedia('(max-width: 991px)')){$('.filter-options-title').parents('#filter-wrapper').removeClass('has-filter-option');return}
if($('.filter-menu .filter-menu-groups').length>0||$('.horizontal-filter-menu .filter-menu-groups').length>0){$('.filter-options-title').parents('#filter-wrapper').addClass('has-filter-option');var selectedItemCount=$('.filter-menu-selected-item').length;if(selectedItemCount>0){$('.filter-options-title span').text('('+selectedItemCount+')')}}}},dropBox:{selector:'.dropbox',speed:200,activeClass:'active',targetClass:'dropbox-content',closeClass:'dropbox-close',activeBox:null,init:function(){this.mouseup();this.eventListener()},click:function(element){let self=this,target=$('.'+element.data('target'));$('body').find('.dropbox-overlay').remove();if(element.hasClass(this.activeClass)){this.reset()}else{switch(element.attr('data-mode')){case 'fade':this.show(target);break;default:this.slideDown(target);break}
this.reset();this.mouseup();this.addClasses(element);this.activeBox=element;if(element.data('close')){target.append('<div class="'+self.closeClass+'" />')}
if(element.data('overlay')){$('body').append('<div class="dropbox-overlay" />');$('.dropbox-overlay').show()}}},mouseup:function(){var self=this;$(document).bind('mouseup tap',function(e){if(!$('.'+self.targetClass).is(e.target)&&$('.'+self.targetClass).has(e.target).length==0&&!$(self.selector).is(e.target)&&!$(self.selector).find('*').is(e.target)){self.reset()}})},addClasses:function(element){$(this.selector).removeClass(this.activeClass);$('body').addClass(element.data('target')+'-active');element.addClass(this.activeClass)},show:function(element){element.stop(!0,!0).fadeIn(100)},hide:function(element){element.stop(!0).fadeOut(100)},slideDown:function(element){element.stop(!0,!0).slideDown(100)},slideUp:function(element){element.stop(!0).slideUp(100)},reset:function(){if(this.activeBox){var target=this.activeBox.data('target');switch(this.activeBox.data('mode')){case 'fade':this.hide($('.'+target));break;default:this.slideUp($('.'+target));break}
$('body').removeClass(target+'-active');this.activeBox=null}
$(this.selector).removeClass(this.activeClass);$('.dropbox-overlay').hide();$(document).unbind('mouseup')},eventListener:function(){var self=this;$(document).on('click tap',self.selector,function(){self.click($(this));if($(this).parents('.showcase').length>0){$(this).parents('.showcase').find('.showcase-variant-single-group-parent').parents('.showcase-variant-content').addClass('variant-loading');IdeaTheme.variant.firstVariantClickControl($(this))}});$(document).on('click tap','.'+self.closeClass,function(){self.reset()})}},initSlider:function(element){if($(element).length==0){return}
$(element).slick({autoplay:!0,autoplaySpeed:6000,arrows:!0,dots:!1,infinite:!1,speed:300,slidesToShow:4,slidesToScroll:4,prevArrow:`
                    <button type="button" class="slick-prev" aria-label="Previous">
                        <svg width="6.333" height="11.503" viewBox="0 0 6.333 11.503">
                            <path id="icon-arrow-left" d="M60.278,5.341,55.105.17a.581.581,0,0,0-.822.821l4.762,4.761-4.762,4.761a.581.581,0,0,0,.822.821l5.173-5.171A.586.586,0,0,0,60.278,5.341Z" transform="translate(60.446 11.503) rotate(180)" fill="#323232"/>
                        </svg>
                    </button>
                `,nextArrow:`
                    <button type="button" class="slick-next" aria-label="Next">
                        <svg width="6.333" height="11.503" viewBox="0 0 6.333 11.503">
                            <path id="icon-arrow-right" d="M60.278,5.341,55.105.17a.581.581,0,0,0-.822.821l4.762,4.761-4.762,4.761a.581.581,0,0,0,.822.821l5.173-5.171A.586.586,0,0,0,60.278,5.341Z" transform="translate(-54.113 0)" fill="#323232"/>
                        </svg>
                    </button>
                `,responsive:[{breakpoint:1199,settings:{slidesToShow:3,slidesToScroll:3,arrows:!1,dots:!0}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2,arrows:!1,dots:!0}},{breakpoint:575,settings:{slidesToShow:2,slidesToScroll:2,arrows:!1,dots:!0}}]});$(element).on('afterChange',function(event,slick,currentSlide){if((slick.$slides.length-slick.options.slidesToShow)<=currentSlide){$(element).slick('slickPause');setTimeout(function(){$(element).slick('slickGoTo',0);$(element).slick('slickPlay')},$(element).slick('slickGetOption','autoplaySpeed'))}})},bannerTitle:function(){$('[data-selector="banner-title"] .banner').each(function(){if($(this).find('.banner-title-img').length>0){return}
var elementImg=$(this).find('img');elementImg.wrap('<div class="banner-title-img"></div>');elementImg.parent().after('<div class="banner-title-text">'+elementImg.attr('alt')+'</div>')})},scrollTop:function(){$("html, body").animate({scrollTop:0},400)},scrollToggle:function(element){if(element.scrollTop()>200){$("#scroll-top").stop().fadeIn()}else{$("#scroll-top").stop().fadeOut()}},login:{init:function(){this.eventListener();this.validateLoginForm()},validateLoginForm:function(){var form='[data-selector="login-panel"]';$(form).validate({errorElement:"div",validClass:'validate',errorClass:'validate-error',rules:{email:{required:!0,email:!0,maxlength:255},pass:{required:!0,minlength:2,maxlength:255},},messages:{email:{required:" "+IdeaApp.helpers.getFormValidateMessage(form+' input[name="email"]','placeholder')+" .",email:""+IdeaApp.helpers.getFormValidateMessage(form+' input[name="email"]','placeholder')+" .",maxlength:""+IdeaApp.helpers.getFormValidateMessage(form+' input[name="email"]','placeholder')+" ."},pass:{required:" "+IdeaApp.helpers.getFormValidateMessage(form+' input[name="pass"]','placeholder')+" .",minlength:""+IdeaApp.helpers.getFormValidateMessage(form+' input[name="pass"]','placeholder')+" .",maxlength:""+IdeaApp.helpers.getFormValidateMessage(form+' input[name="pass"]','placeholder')+" ."}},errorPlacement:function(error,element){element.parents('.user-menu-input').append(error)}});$.validator.addMethod('email',function(email){return IdeaApp.helpers.checkEmail(email)})},eventListener:function(){$(document).on('click','[data-selector="login-panel-button"]',function(){var memberLoginForm=$('[data-selector="login-panel"]');if(memberLoginForm.valid()){$(this).addClass('btn-loading')}})}},cart:{init:function(){this.updateCartContainer();this.overrideListeners()},updateCartContainer:function(){this.cartContent();$('[data-selector="cart-item-count"]').html(IdeaCart.itemCount);$('[data-selector="cart-total-price"]').html(IdeaApp.helpers.formatMoney(IdeaCart.totalPrice)+' '+mainCurrency)},cartItemDelete:function(element){IdeaCart.deleteItem(element,element.attr('data-id'))},cartContent:function(){var items=IdeaCart.items;if(items.length>0){var output='<div class="cart-content-title"></div>';output+='<div class="cart-content-subtitle"> <span>'+IdeaCart.itemCount+' </span> .</div>';output+='<div class="cart-list">';for(var i=0;i<items.length;i++){output+='<div class="cart-list-item">';if(items[i].product.imageUrl==""){output+='<div class="cart-list-item-image"><a href="'+items[i].product.url+'"><img src="//ideacdn.net/idea/dn/74/themes/selftpl_655f4db62ec90/assets/images/nopic_image.png?revision=1711559504" /></a></div>'}else{output+='<div class="cart-list-item-image"><a href="'+items[i].product.url+'"><img src="'+items[i].product.imageUrl+'" /></a></div>'}
output+='<div class="cart-list-item-content">';output+='<div>';if(items[i].product.brandName!==null){output+='<a class="cart-list-item-brand" href="'+items[i].product.brandUrl+'">'+items[i].product.brandName+'</a>'}
output+='<a class="cart-list-item-title" href="'+items[i].product.url+'">'+items[i].product.fullName+'</a>';output+='</div><div>';output+='<div class="cart-list-item-price">';output+='<a href="javascript:void(0);" class="cart-list-item-delete" data-product-id="'+items[i].product.id+'" data-id="'+items[i].id+'" data-toggle="modal" data-target="#modal-cart-delete-'+items[i].product.id+'" data-backdrop="false"><svg width="28" height="28" viewBox="0 0 28 28" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.3931 8.37755C12.5068 8.26387 12.6609 8.2 12.8217 8.2H15.2341C15.3949 8.2 15.5491 8.26387 15.6628 8.37755C15.7765 8.49124 15.8403 8.64543 15.8403 8.80621V9.41241H12.2155V8.80621C12.2155 8.64543 12.2794 8.49124 12.3931 8.37755ZM11.0155 9.41241V8.80621C11.0155 8.32717 11.2058 7.86775 11.5445 7.52903C11.8833 7.1903 12.3427 7 12.8217 7H15.2341C15.7132 7 16.1726 7.1903 16.5113 7.52903C16.85 7.86775 17.0403 8.32717 17.0403 8.80621V9.41241H18.2496H19.4559C19.7872 9.41241 20.0559 9.68104 20.0559 10.0124C20.0559 10.3438 19.7872 10.6124 19.4559 10.6124H18.8496V18.4559C18.8496 18.9349 18.6594 19.3943 18.3206 19.733C17.9819 20.0718 17.5225 20.2621 17.0434 20.2621H11.0124C10.5334 20.2621 10.074 20.0718 9.73523 19.733C9.3965 19.3943 9.20621 18.9349 9.20621 18.4559V10.6124H8.6C8.26863 10.6124 8 10.3438 8 10.0124C8 9.68104 8.26863 9.41241 8.6 9.41241H9.80621H11.0155ZM10.4062 10.6124V18.4559C10.4062 18.6166 10.4701 18.7708 10.5838 18.8845C10.6974 18.9982 10.8516 19.0621 11.0124 19.0621H17.0434C17.2042 19.0621 17.3584 18.9982 17.4721 18.8845C17.5858 18.7708 17.6496 18.6166 17.6496 18.4559V10.6124H10.4062ZM12.8217 12.4279C13.1531 12.4279 13.4217 12.6966 13.4217 13.0279V16.6465C13.4217 16.9779 13.1531 17.2465 12.8217 17.2465C12.4904 17.2465 12.2217 16.9779 12.2217 16.6465V13.0279C12.2217 12.6966 12.4904 12.4279 12.8217 12.4279ZM15.8341 13.0279C15.8341 12.6966 15.5655 12.4279 15.2341 12.4279C14.9028 12.4279 14.6341 12.6966 14.6341 13.0279V16.6465C14.6341 16.9779 14.9028 17.2465 15.2341 17.2465C15.5655 17.2465 15.8341 16.9779 15.8341 16.6465V13.0279Z" fill="#110F21"/></svg></a>';output+='<div class="modal-cart-delete modal fade" id="modal-cart-delete-'+items[i].product.id+'" tabindex="-1" role="dialog" aria-labelledby="modal-cart-delete-label" aria-hidden="true"><div class="modal-dialog" role="document"><div class="modal-content"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button><div class="modal-body"><svg width="52" height="52" viewBox="0 0 52 52" fill="none"><path d="M4.36232 41.1576C4.36394 40.578 4.51664 40.0089 4.80529 39.5065L23.1497 8.88192C23.1502 8.88113 23.1506 8.88034 23.1511 8.87956C23.4481 8.39079 23.8659 7.98666 24.3644 7.70606C24.8636 7.425 25.4268 7.27734 25.9997 7.27734C26.5726 7.27734 27.1358 7.425 27.635 7.70606C28.1334 7.98666 28.5512 8.39079 28.8483 8.87956C28.8487 8.88034 28.8492 8.88113 28.8497 8.88192L47.194 39.5064C47.4827 40.0089 47.6354 40.578 47.637 41.1576C47.6387 41.7396 47.4879 42.3119 47.1996 42.8176C46.9114 43.3232 46.4958 43.7446 45.9942 44.0398C45.494 44.3341 44.9257 44.4927 44.3455 44.5H7.65382C7.07362 44.4927 6.50533 44.3341 6.00518 44.0398C5.50355 43.7446 5.08794 43.3232 4.79971 42.8176C4.51149 42.3119 4.36069 41.7396 4.36232 41.1576Z" stroke="#F15E5E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M26 19.5V28.1667" stroke="#F15E5E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M26 36.8334H26.0217" stroke="#F15E5E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg><span></span></div><div class="modal-footer"><button type="button" class="btn btn-block cart-button-continue" data-dismiss="modal"></button><button type="button" class="btn btn-primary" data-dismiss="modal" data-product-id="'+items[i].product.id+'" data-id="'+items[i].id+'" data-selector="cart-item-delete"></button></div></div></div></div>';output+='<span class="cart-list-item-amount">'+items[i].quantity+' '+items[i].product.stockType+' - </span>'+IdeaApp.helpers.formatMoney(items[i].price)+' '+mainCurrency+'</div>';output+='</div>';output+='</div></div>'}
output+='</div>';output+='<div class="cart-content-total-price"><span></span><div>'+IdeaApp.helpers.formatMoney(IdeaCart.totalPrice)+' '+mainCurrency+'</div></div>';output+='<div class="cart-content-button"><a href="'+IdeaApp.routing.generate('/sepet')+'" class="btn btn-primary btn-block"></a></div>';output+='<div class="cart-content-button mb-0"><a href="javascript:void(0);" class="btn btn-block cart-button-continue" data-selector="openbox-close"></a></div>'}else{var output='<div class="cart-content-empty">';output+='<div class="cart-content-title"></div>';output+='<div class="cart-content-subtitle"></div>';output+=`
                        <div class="cart-content-empty-icon">
                            <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <path fill-rule="evenodd" clip-rule="evenodd" d="M18 4.50003C10.5442 4.50003 4.50002 10.5442 4.50002 18C4.50002 25.4559 10.5442 31.5 18 31.5C25.4559 31.5 31.5 25.4559 31.5 18C31.5 10.5442 25.4559 4.50003 18 4.50003ZM1.50002 18C1.50002 8.88734 8.88732 1.50003 18 1.50003C27.1127 1.50003 34.5 8.88734 34.5 18C34.5 27.1127 27.1127 34.5 18 34.5C8.88732 34.5 1.50002 27.1127 1.50002 18Z" fill="#2E2E2E"/>
                                <path fill-rule="evenodd" clip-rule="evenodd" d="M34.0607 1.93934C34.6464 2.52513 34.6464 3.47487 34.0607 4.06067L4.06066 34.0607C3.47487 34.6464 2.52513 34.6464 1.93933 34.0607C1.35355 33.4749 1.35355 32.5251 1.93933 31.9394L31.9394 1.93934C32.5251 1.35355 33.4749 1.35355 34.0607 1.93934Z" fill="#2E2E2E"/>
                            </svg>
                        </div>
                    `;output+='<div class="cart-content-button mb-0"><a href="javascript:void(0);" class="btn btn-primary btn-block" data-selector="openbox-close"></a></div>';output+='</div>'}
$('[data-selector="cart-content"]').html(output)},showCartButtons:function(productId){$('[data-selector="add-to-cart"][data-product-id="'+productId+'"]').each(function(){var context=$(this).attr('data-context');if(context=='quick'){$(this).attr('href','javascript:void(0);').removeAttr('data-disabled')}else{IdeaApp.helpers.enableElement($(this));if(context=='detail'){$(this).html('Sepete Ekle').addClass('add-to-cart-button').removeClass('no-stock-button');$('.quick-order-button').parent().show()}}})},hideCartButtons:function(productId){$('[data-selector="add-to-cart"][data-product-id="'+productId+'"]').each(function(){var context=$(this).attr('data-context');if(context=='quick'){$(this).attr('href',IdeaApp.routing.generate('/sepet')).attr('data-disabled','true')}else{IdeaApp.helpers.disableElement($(this));if(context=='detail'){$(this).html('Stokta Yok').removeClass('add-to-cart-button').addClass('no-stock-button');$('.quick-order-button').parent().hide()}}})},showYourCartLabel:function(element,response){var self=this;const itemStockAmount=response.item.product.stockAmount;const itemRealAmount=itemStockAmount-response.item.quantity;if(itemRealAmount==0){element.toggleClass('add-to-cart-button no-stock-button')}},overrideListeners:function(){var self=this;IdeaCart.listeners.prePersist=function(element){element.addClass('btn-loading')};IdeaCart.listeners.postPersist=function(element,response){element.removeClass('btn-loading');if(!response.success){return}
self.updateCartContainer();if(IdeaCart.validContextList.indexOf(element.attr('data-context'))!==-1){self.showYourCartLabel(element,response);if(response.item.product.stockAmount<=IdeaCart.helpers.getItemTotalQuantity(response.item.product.id)){self.hideCartButtons(response.item.product.id)}
$("body").append('<div class="shopping-information-cart"><div class="shopping-information-cart-inside"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 52"><circle cx="26" cy="26" r="25" fill="none"/><path fill="none" d="M14.1 27.2l7.1 7.2 16.7-16.8"/></svg>SEPETİNİZE EKLENMİŞTİR</div></div>');setTimeout(function(){$('.shopping-information-cart').fadeOut(200).remove()},2000)}};IdeaCart.listeners.postUpdate=function(element,response){if(!response.success){return}
if(response.item.product.stockAmount<=IdeaCart.helpers.getItemTotalQuantity(response.item.product.id)){self.hideCartButtons(response.item.product.id)}else{self.showCartButtons(response.item.product.id)}
self.updateCartContainer()};IdeaCart.listeners.preRemove=function(element){element.addClass('btn-loading')};IdeaCart.listeners.postRemove=function(element,response){element.removeClass('btn-loading');if(!response.success){return}
self.showCartButtons(element.attr('data-product-id'));self.updateCartContainer()}}},initLazyLoad:function(){if(typeof lazyload!='function'){return}
if($('.tabbed-midblocks-container').length>0){$(document).ajaxComplete(function(event,xhr,settings){if(settings.url=='/tabli-vitrin'){lazyload()}})}else{lazyload()}},footerMenu:function(element){var parentElement=element.parent();var containerElement=element.parents('.footer-menu-container');if(parentElement.hasClass('active')){containerElement.find('.footer-menu').removeClass('active');parentElement.removeClass('active')}else{containerElement.find('.footer-menu').removeClass('active');parentElement.addClass('active')}},eventListener:function(){var self=this;$(document).on('click','#scroll-top',function(){self.scrollTop()});$(window).scroll(function(){self.scrollToggle($(this))});$(document).on('click tap','[data-selector="cart-item-delete"]',function(){self.cart.cartItemDelete($(this))});$(document).on('click tap','[data-selector="openbox-close"]',function(){openBox.reset()});$(document).on('click tap','.search > a',function(){setTimeout(function(){$('.search-content input').focus()},100)});$(document).on('click tap','[data-menu-type="accordion"] .footer-menu-title',function(){self.footerMenu($(this))})}}})(jQuery,window);$(function(){IdeaTheme.init()})