<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">function getURLVar(key){var value=[];var query=String(document.location).split('?');if(query[1]){var part=query[1].split('&amp;');for(i=0;i&lt;part.length;i++){var data=part[i].split('=');if(data[0]&amp;&amp;data[1]){value[data[0]]=data[1];}}if(value[key]){return value[key];}else{return'';}}}$(document).ready(function(){$('.text-danger').each(function(){var element=$(this).parent().parent();if(element.hasClass('form-group')){element.addClass('has-error');}});$('#currency .currency-select').on('click',function(e){e.preventDefault();$('#currency input[name=\'code\']').attr('value',$(this).attr('name'));$('#currency').submit();});$('#language a').on('click',function(e){e.preventDefault();$('#language input[name=\'code\']').attr('value',$(this).attr('href'));$('#language').submit();});$('#search input[name=\'search\']').parent().find('button').on('click',function(){url=$('base').attr('href')+'index.php?route=product/search';var value=$('header input[name=\'search\']').val();if(value){url+='&amp;search='+encodeURIComponent(value);}location=url;});$('#search input[name=\'search\']').on('keydown',function(e){if(e.keyCode==13){$('header input[name=\'search\']').parent().find('button').trigger('click');}});$('#menu .dropdown-menu').each(function(){var menu=$('#menu').offset();var dropdown=$(this).parent().offset();var i=(dropdown.left+$(this).outerWidth())-(menu.left+$('#menu').outerWidth());if(i&gt;0){$(this).css('margin-left','-'+(i+5)+'px');}});$('#list-view').click(function(){$('#content .product-grid &gt; .clearfix').remove();$('#content .product-layout').attr('class','product-layout product-list col-xs-12');localStorage.setItem('display','list');});$('#grid-view').click(function(){cols=$('#column-right, #column-left').length;if(cols==2){$('#content .product-list').attr('class','product-layout product-grid col-lg-6 col-md-6 col-sm-12 col-xs-12');}else if(cols==1){$('#content .product-list').attr('class','product-layout product-grid col-lg-4 col-md-4 col-sm-6 col-xs-12');}else{$('#content .product-list').attr('class','product-layout product-grid col-lg-3 col-md-3 col-sm-6 col-xs-12');}localStorage.setItem('display','grid');});if(localStorage.getItem('display')=='list'){$('#list-view').trigger('click');}else{$('#grid-view').trigger('click');}$(document).on('keydown','#collapse-checkout-option input[name=\'email\'], #collapse-checkout-option input[name=\'password\']',function(e){if(e.keyCode==13){$('#collapse-checkout-option #button-login').trigger('click');}});$('[data-toggle=\'tooltip\']').tooltip({container:'body'});$(document).ajaxStop(function(){$('[data-toggle=\'tooltip\']').tooltip({container:'body'});});cols=$('#column-right, #column-left').length;var productSet=$('#content .product-layout:not(.product-list), #content .product-layout:not(.product-grid)');if(cols==2){productSet.attr('class','product-layout col-lg-6 col-md-6 col-sm-12 col-xs-12');}else if(cols==1){productSet.attr('class','product-layout col-lg-4 col-md-4 col-sm-12 col-xs-12');}else{productSet.attr('class','product-layout col-lg-3 col-md-3 col-sm-12 col-xs-12');}});var cart={'add':function(product_id,quantity){$.ajax({url:'index.php?route=checkout/cart/add',type:'post',data:'product_id='+product_id+'&amp;quantity='+(typeof(quantity)!='undefined'?quantity:1),dataType:'json',beforeSend:function(){$('#cart &gt; button').button('loading');},complete:function(){$('#cart &gt; button').button('reset');},success:function(json){$('.alert, .text-danger').remove();if(json['redirect']){location=json['redirect'];}if(json['success']){$('#content').parent().before('&lt;div class="alert alert-success"&gt;&lt;i class="fa fa-check-circle"&gt;&lt;/i&gt; '+json['success']+' &lt;button type="button" class="close" data-dismiss="alert"&gt;&amp;times;&lt;/button&gt;&lt;/div&gt;');setTimeout(function(){$('#cart &gt; button').html('&lt;span id="cart-total"&gt;&lt;i class="fa fa-shopping-cart"&gt;&lt;/i&gt; '+json['total']+'&lt;/span&gt;');},100);$('html, body').animate({scrollTop:0},'slow');$('#cart &gt; ul').load('index.php?route=common/cart/info ul li');}},error:function(xhr,ajaxOptions,thrownError){alert(thrownError+"\r\n"+xhr.statusText+"\r\n"+xhr.responseText);}});},'update':function(key,quantity){$.ajax({url:'index.php?route=checkout/cart/edit',type:'post',data:'key='+key+'&amp;quantity='+(typeof(quantity)!='undefined'?quantity:1),dataType:'json',beforeSend:function(){$('#cart &gt; button').button('loading');},complete:function(){$('#cart &gt; button').button('reset');},success:function(json){setTimeout(function(){$('#cart &gt; button').html('&lt;span id="cart-total"&gt;&lt;i class="fa fa-shopping-cart"&gt;&lt;/i&gt; '+json['total']+'&lt;/span&gt;');},100);if(getURLVar('route')=='checkout/cart'||getURLVar('route')=='checkout/checkout'){location='index.php?route=checkout/cart';}else{$('#cart &gt; ul').load('index.php?route=common/cart/info ul li');}},error:function(xhr,ajaxOptions,thrownError){alert(thrownError+"\r\n"+xhr.statusText+"\r\n"+xhr.responseText);}});},'remove':function(key){$.ajax({url:'index.php?route=checkout/cart/remove',type:'post',data:'key='+key,dataType:'json',beforeSend:function(){$('#cart &gt; button').button('loading');},complete:function(){$('#cart &gt; button').button('reset');},success:function(json){setTimeout(function(){$('#cart &gt; button').html('&lt;span id="cart-total"&gt;&lt;i class="fa fa-shopping-cart"&gt;&lt;/i&gt; '+json['total']+'&lt;/span&gt;');},100);if(getURLVar('route')=='checkout/cart'||getURLVar('route')=='checkout/checkout'){location='index.php?route=checkout/cart';}else{$('#cart &gt; ul').load('index.php?route=common/cart/info ul li');}},error:function(xhr,ajaxOptions,thrownError){alert(thrownError+"\r\n"+xhr.statusText+"\r\n"+xhr.responseText);}});}}
var voucher={'add':function(){},'remove':function(key){$.ajax({url:'index.php?route=checkout/cart/remove',type:'post',data:'key='+key,dataType:'json',beforeSend:function(){$('#cart &gt; button').button('loading');},complete:function(){$('#cart &gt; button').button('reset');},success:function(json){setTimeout(function(){$('#cart &gt; button').html('&lt;span id="cart-total"&gt;&lt;i class="fa fa-shopping-cart"&gt;&lt;/i&gt; '+json['total']+'&lt;/span&gt;');},100);if(getURLVar('route')=='checkout/cart'||getURLVar('route')=='checkout/checkout'){location='index.php?route=checkout/cart';}else{$('#cart &gt; ul').load('index.php?route=common/cart/info ul li');}},error:function(xhr,ajaxOptions,thrownError){alert(thrownError+"\r\n"+xhr.statusText+"\r\n"+xhr.responseText);}});}}
var wishlist={'add':function(product_id){$.ajax({url:'index.php?route=account/wishlist/add',type:'post',data:'product_id='+product_id,dataType:'json',success:function(json){$('.alert').remove();if(json['redirect']){location=json['redirect'];}if(json['success']){$('#content').parent().before('&lt;div class="alert alert-success"&gt;&lt;i class="fa fa-check-circle"&gt;&lt;/i&gt; '+json['success']+' &lt;button type="button" class="close" data-dismiss="alert"&gt;&amp;times;&lt;/button&gt;&lt;/div&gt;');}$('#wishlist-total span').html(json['total']);$('#wishlist-total').attr('title',json['total']);$('html, body').animate({scrollTop:0},'slow');},error:function(xhr,ajaxOptions,thrownError){alert(thrownError+"\r\n"+xhr.statusText+"\r\n"+xhr.responseText);}});},'remove':function(){}}
var compare={'add':function(product_id){$.ajax({url:'index.php?route=product/compare/add',type:'post',data:'product_id='+product_id,dataType:'json',success:function(json){$('.alert').remove();if(json['success']){$('#content').parent().before('&lt;div class="alert alert-success"&gt;&lt;i class="fa fa-check-circle"&gt;&lt;/i&gt; '+json['success']+' &lt;button type="button" class="close" data-dismiss="alert"&gt;&amp;times;&lt;/button&gt;&lt;/div&gt;');$('#compare-total').html(json['total']);$('html, body').animate({scrollTop:0},'slow');}},error:function(xhr,ajaxOptions,thrownError){alert(thrownError+"\r\n"+xhr.statusText+"\r\n"+xhr.responseText);}});},'remove':function(){}}
$(document).delegate('.agree','click',function(e){e.preventDefault();$('#modal-agree').remove();var element=this;$.ajax({url:$(element).attr('href'),type:'get',dataType:'html',success:function(data){html='&lt;div id="modal-agree" class="modal"&gt;';html+='  &lt;div class="modal-dialog"&gt;';html+='    &lt;div class="modal-content"&gt;';html+='      &lt;div class="modal-header"&gt;';html+='        &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;';html+='        &lt;h4 class="modal-title"&gt;'+$(element).text()+'&lt;/h4&gt;';html+='      &lt;/div&gt;';html+='      &lt;div class="modal-body"&gt;'+data+'&lt;/div&gt;';html+='    &lt;/div';html+='  &lt;/div&gt;';html+='&lt;/div&gt;';$('body').append(html);$('#modal-agree').modal('show');}});});(function($){$.fn.autocomplete=function(option){return this.each(function(){this.timer=null;this.items=new Array();$.extend(this,option);$(this).attr('autocomplete','off');$(this).on('focus',function(){this.request();});$(this).on('blur',function(){setTimeout(function(object){object.hide();},200,this);});$(this).on('keydown',function(event){switch(event.keyCode){case 27:this.hide();break;default:this.request();break;}});this.click=function(event){event.preventDefault();value=$(event.target).parent().attr('data-value');if(value&amp;&amp;this.items[value]){this.select(this.items[value]);}}
this.show=function(){var pos=$(this).position();$(this).siblings('ul.dropdown-menu').css({top:pos.top+$(this).outerHeight(),left:pos.left});$(this).siblings('ul.dropdown-menu').show();}
this.hide=function(){$(this).siblings('ul.dropdown-menu').hide();}
this.request=function(){clearTimeout(this.timer);this.timer=setTimeout(function(object){object.source($(object).val(),$.proxy(object.response,object));},200,this);}
this.response=function(json){html='';if(json.length){for(i=0;i&lt;json.length;i++){this.items[json[i]['value']]=json[i];}for(i=0;i&lt;json.length;i++){if(!json[i]['category']){html+='&lt;li data-value="'+json[i]['value']+'"&gt;&lt;a href="#"&gt;'+json[i]['label']+'&lt;/a&gt;&lt;/li&gt;';}}var category=new Array();for(i=0;i&lt;json.length;i++){if(json[i]['category']){if(!category[json[i]['category']]){category[json[i]['category']]=new Array();category[json[i]['category']]['name']=json[i]['category'];category[json[i]['category']]['item']=new Array();}category[json[i]['category']]['item'].push(json[i]);}}for(i in category){html+='&lt;li class="dropdown-header"&gt;'+category[i]['name']+'&lt;/li&gt;';for(j=0;j&lt;category[i]['item'].length;j++){html+='&lt;li data-value="'+category[i]['item'][j]['value']+'"&gt;&lt;a href="#"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'+category[i]['item'][j]['label']+'&lt;/a&gt;&lt;/li&gt;';}}}if(html){this.show();}else{this.hide();}$(this).siblings('ul.dropdown-menu').html(html);}
$(this).after('&lt;ul class="dropdown-menu"&gt;&lt;/ul&gt;');$(this).siblings('ul.dropdown-menu').delegate('a','click',$.proxy(this.click,this));});}})(window.jQuery);</pre></body></html>