<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var q_ecom_analytics=null;function loadJSFile(t,e=!1,a=!1,i="body"){var n,r;n=document.createElement("script"),r=document.getElementsByTagName(i)[0],e&amp;&amp;(n.async=!0),n.src=t,a&amp;&amp;n.setAttribute("crossorigin","*"),r.append(n)}function loadFormElements(){$(".number-input").length&gt;0&amp;&amp;$(".number-input").numberInputFilter(function(t){return/^\d*$/.test(t)}),$(".currency-input").length&gt;0&amp;&amp;$(".currency-input").currencyInputFilter(function(t){return/^\d*$/.test(t)}),$(".form-phone-control").intlTelInput({nationalMode:!1,formatOnDisplay:!1,autoPlaceholder:"off",autoHideDialCode:!1,initialCountry:SITE_CONFIG.defaultCountry,preferredCountries:SITE_CONFIG.preferredCountries,onlyCountries:SITE_CONFIG.onlyCountries,utilsScript:SITE_CONFIG.baseUrl+"/template/smart/default/assets/plugins/tel-input-utils.js"})}function loadPlugins(){try{($(".datepicker").length&gt;0||$(".datepicker-2").length&gt;0||$(".datepicker-today").length&gt;0)&amp;&amp;(SITE_CONFIG.datepicker.load?($(".datepicker").datepicker({format:"yyyy-mm-dd",autoclose:!0,enableOnReadonly:!0,language:"tr"}),$(".datepicker-2").datepicker({format:"dd.mm.yyyy",autoclose:!0,enableOnReadonly:!0,language:"tr",startDate:"+1h"})):($("head").append($('&lt;link rel="stylesheet" type="text/css" /&gt;').attr("href",SITE_CONFIG.datepicker.css)),$.getScript({url:SITE_CONFIG.datepicker.js,cache:!0},function(){$(".datepicker").datepicker({format:"yyyy-mm-dd",autoclose:!0,enableOnReadonly:!0,language:"tr"}),$(".datepicker-2").datepicker({format:"dd.mm.yyyy",autoclose:!0,enableOnReadonly:!0,language:"tr",startDate:"+1h"}),$(".datepicker-today").datepicker({format:"dd.mm.yyyy",autoclose:!0,enableOnReadonly:!0,language:"tr",startDate:"+1h"})}),SITE_CONFIG.datepicker.load=!0)),!SITE_CONFIG.simplebar.load&amp;&amp;$("*[data-simplebar]").length&gt;0&amp;&amp;(SITE_CONFIG.simplebar.load=!0,loadJSFile(SITE_CONFIG.simplebar.js,!0)),$(".social-share").length&gt;0&amp;&amp;$(".social-share").jsSocials({showLabel:!1,showCount:!1,shares:["twitter","facebook","linkedin","whatsapp"]}),!SITE_CONFIG.fancybox.load&amp;&amp;$("*[data-fancybox]").length&gt;0&amp;&amp;(SITE_CONFIG.fancybox.load=!0,loadJSFile(SITE_CONFIG.fancybox.js,!0))}catch(t){}}function tableSelectAll(t,e){$(t).is(":checked")?($(e).find("input[type=checkbox]").attr("checked",!0),$(e).find("input[type=checkbox]").prop("checked",!0)):($(e).find("input[type=checkbox]").attr("checked",!1),$(e).find("input[type=checkbox]").prop("checked",!1))}function getTableCheckedList(t){var e=[];return $(t).find("tbody").find("input[type=checkbox]").each(function(t,a){if($(a).is(":checked")){var i=parseInt($(a).val());!isNaN(i)&amp;&amp;i&gt;0&amp;&amp;e.push(i)}}),e}function isFunction(t){return"function"==typeof window[t]}function executeFunctionByName(t,e){var a=Array.prototype.slice.call(e),i=t.split(".").pop();return window[i].apply(null,a)}function showBaseLoader(){isFunction("showLoader")&amp;&amp;showLoader()}function hideBaseLoader(){isFunction("hideLoader")&amp;&amp;hideLoader()}function baseLazyLoad(){if(isFunction("themeLazyLoad"))var t=themeLazyLoad();else var t={effect:"fadeIn",threshold:500,effectTime:parseInt(SITE_CONFIG.lazyLoadEffectTime),afterLoad:function(t){t.addClass("lazy-complete")},beforeLoad:function(t){}};t.bind="event",$(".owl-carousel .lazy-load").each(function(){$(this).removeClass("lazy-load").addClass("owl-lazy")}),$(".lazy-load").lazy(t),$(".sidebar-menu-type-2, .nav-mobile, .sidebar-menu, .sidebar-menu-type-1, .sidebar-menu-left").hover(function(){$(this).find(".lazy-mobile-menu").each(function(){$(this).attr("src",$(this).data("src")),$(this).removeClass("lazy-mobile-menu")})}),$(".btn-categories, .btn-sidebar-menu, .btn-sidebar-categories, .btn-categories-show, .icon-open").click(function(){$(".lazy-mobile-menu").each(function(){$(this).attr("src",$(this).data("src")),$(this).removeClass("lazy-mobile-menu")})}),$(".mega-menu .nav-item").hover(function(){$(this).find(".lazy-mega-menu").each(function(){$(this).attr("src",$(this).data("src")),$(this).removeClass("lazy-mega-menu")})})}function customLazyLoad(t){if(isFunction("themeLazyLoad"))var e=themeLazyLoad();else var e={effect:"fadeIn",effectTime:parseInt(SITE_CONFIG.lazyLoadEffectTime),afterLoad:function(t){t.addClass("lazy-complete")}};$(t).each(function(){$(this).attr("src",$(this).data("src")),$(this).removeClass(t)}),$(t).lazy(e)}function toType(t){return({}).toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function ajaxFormGate(t,e,a,i,n,r,o){void 0===i&amp;&amp;(i=!1),void 0===n&amp;&amp;(n=!0),void 0===r&amp;&amp;(r=void 0),void 0===o&amp;&amp;(o=!0),n&amp;&amp;i&amp;&amp;(i=$(i).serializeArray()),i||(i=""),o&amp;&amp;showBaseLoader();var s=0;if("object"==typeof q_ecom_analytics)try{s=q_ecom_analytics.getTotalTime()}catch(d){}var l=0;try{l=window.innerWidth||$(window).width()}catch(c){}var u=toType(i);return $.ajax({type:t,url:SITE_CONFIG.baseUrl+"/client/"+e.toString()+"/"+a.toString(),data:i,processData:"formdata"!=u,contentType:"formdata"!=u&amp;&amp;"application/x-www-form-urlencoded; charset=UTF-8",headers:{"Accept-Content-Token":SITE_CONFIG.token,"Time-Spent":s,"Window-Width":l,accept:SITE_CONFIG.accept},success:function(t){try{var i=JSON.parse(t);if("csrf"==i.status)return window.location.reload(),!1;o&amp;&amp;hideBaseLoader(),void 0===r?"success"==i.status?showAlert({title:LANG_HELPER.success,text:i.message,status:i.status,buttonTitle:LANG_HELPER.ok}):showAlert({title:LANG_HELPER.error,text:i.message||LANG_HELPER.errorMsg,status:i.status,buttonTitle:LANG_HELPER.ok}):(r(i),loadPlugins())}catch(n){o&amp;&amp;hideBaseLoader(),void 0===r?showAlert({title:LANG_HELPER.error,text:LANG_HELPER.errorMsg,status:"error",buttonTitle:LANG_HELPER.ok}):r({status:"error"})}try{document.dispatchEvent(new CustomEvent("client_action",{detail:{name:e.toString()+"/"+a.toString(),result:i}}))}catch(s){}},error:function(t,e,a){void 0===r?(showAlert({title:LANG_HELPER.error,text:LANG_HELPER.errorMsg,status:"error",buttonTitle:LANG_HELPER.ok}),o&amp;&amp;hideBaseLoader()):r({status:"error"})}}),!1}function showNativeModalWithPrefix(t){$("#native-modal-"+t).modal({show:!0,keyboard:!1}),$("#native-modal-"+t).on("hidden.bs.modal",function(e){$("#native-modal-"+t).modal("dispose"),$("#native-modal-"+t).remove()})}function onlyShowNativeModalWithPrefix(t){$("#native-modal-"+t).modal({show:!0,keyboard:!1})}function showNativeModal(t,e,a){void 0===e&amp;&amp;(e=[]),void 0===a&amp;&amp;(a=!1),showBaseLoader(),ajaxFormGate("POST","NativeModal",t,e,!1,function(t){"success"==t.status?($("body").append(t.html),showNativeModalWithPrefix(t.prefix),a&amp;&amp;a(t)):"auth"==t.status?showNativeModal("loginPage"):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})})}function hideNativeModal(t){$("#native-modal-"+t).modal("hide")}function userLogin(t){return ajaxFormGate("POST","User","login",t,!0,function(t){"success"==t.status?(showBaseLoader(),showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,bottons:!1}),setTimeout(function(){t.redirectUrl.length&gt;0?window.location=t.redirectUrl:window.location.reload()},1e3)):"two_factor"==t.status?showNativeModal("user2FactorLogin",[{name:"hash",value:t.message}]):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok}),void 0!==t.events&amp;&amp;submitMarketingEvents(t.events)}),!1}function userForgotPassword(t){return ajaxFormGate("POST","User","forgotPassword",t,!0,function(e){showAlert({title:"success"==e.status?LANG_HELPER.success:LANG_HELPER.error,text:e.message,status:e.status,buttonTitle:LANG_HELPER.ok}),"success"==e.status&amp;&amp;$(t).find("button[type=submit]").remove()}),!1}function userRenewPassword(t){return ajaxFormGate("POST","User","renewPassword",t,!0,function(e){"success"==e.status?(showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,buttonList:{cart:{text:LANG_HELPER.login,value:"login",visible:!0,className:"btn-success",closeModal:!1}}},function(t){"login"==t&amp;&amp;(window.location=SITE_CONFIG.url+"/uye-giris")}),$(t).find("button[type=submit]").remove()):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})}),!1}function userLogout(){return ajaxFormGate("GET","User","logout","",!1,function(t){"success"==t.status?(showBaseLoader(),setTimeout(function(){window.location.reload()},1e3)):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})}),!1}function getUserRegisterForm(t){var e,a,i=new FormData,n=$(t).serializeArray();for(e=0;e&lt;n.length;e++)a=n[e],i.append(a.name,a.value);let r=!1;return $(t).find(".file-input").each(function(t,e){if(0==$(e)[0].files.length){if($(e).data("is-required"))return showAlert({title:LANG_HELPER.error,text:LANG_HELPER.fillInRequiredFields,status:"error",buttonTitle:LANG_HELPER.ok}),r=!0,!1}else i.append("document_files["+t+"]",$(e)[0].files[0]),i.append("document_details["+t+"][description]",$(e).data("description"))}),!r&amp;&amp;i}function userRegister(t){var e=getUserRegisterForm(t);return!!e&amp;&amp;(ajaxFormGate("POST","User","register",e,!1,function(t){"success"==t.status?(showBaseLoader(),showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,bottons:!1}),setTimeout(function(){t.redirectUrl.length&gt;0?window.location=t.redirectUrl:window.location.reload()},1e3)):"two_factor"==t.status?showNativeModal("user2FactorLogin",[{name:"hash",value:t.message}]):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok}),void 0!==t.events&amp;&amp;submitMarketingEvents(t.events)}),!1)}function userRegister2(t){var e=getUserRegisterForm(t);return!!e&amp;&amp;(ajaxFormGate("POST","User","register2",e,!1,function(t){"success"==t.status?(showBaseLoader(),showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,bottons:!1}),setTimeout(function(){t.redirectUrl.length&gt;0?window.location=t.redirectUrl:window.location.reload()},1e3)):"two_factor"==t.status?showNativeModal("user2FactorLogin",[{name:"hash",value:t.message}]):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok}),void 0!==t.events&amp;&amp;submitMarketingEvents(t.events)}),!1)}function dealerRegister(t){var e=getUserRegisterForm(t);return!!e&amp;&amp;(ajaxFormGate("POST","User","dealerRegister",e,!1,function(e){"redirect"==e.status?(showBaseLoader(),showAlert({title:LANG_HELPER.success,text:e.message,status:"success",bottons:!1}),setTimeout(function(){e.redirectUrl.length&gt;0?window.location=e.redirectUrl:window.location.reload()},1e3)):"two_factor"==e.status?showNativeModal("user2FactorLogin",[{name:"hash",value:e.message}]):"success"==e.status?(showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,bottons:!1}),$(t).find('button[type="submit"]').remove(),e.redirect&amp;&amp;setTimeout(function(){e.redirectUrl.length&gt;0?window.location=e.redirectUrl:window.location.reload()},1e3)):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok}),void 0!==e.events&amp;&amp;submitMarketingEvents(e.events)}),!1)}function dealerRegister2(t){var e=getUserRegisterForm(t);return!!e&amp;&amp;(ajaxFormGate("POST","User","dealerRegister2",e,!1,function(e){"redirect"==e.status?(showBaseLoader(),showAlert({title:LANG_HELPER.success,text:e.message,status:"success",bottons:!1}),setTimeout(function(){e.redirectUrl.length&gt;0?window.location=e.redirectUrl:window.location.reload()},1e3)):"two_factor"==e.status?showNativeModal("user2FactorLogin",[{name:"hash",value:e.message}]):"success"==e.status?(showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,bottons:!1}),$(t).find('button[type="submit"]').remove(),e.redirect&amp;&amp;setTimeout(function(){e.redirectUrl.length&gt;0?window.location=e.redirectUrl:window.location.reload()},1e3)):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok}),void 0!==e.events&amp;&amp;submitMarketingEvents(e.events)}),!1)}function dealerRegister3(t){var e=getUserRegisterForm(t);return!!e&amp;&amp;(ajaxFormGate("POST","User","dealerRegister3",e,!1,function(e){"redirect"==e.status?(showBaseLoader(),showAlert({title:LANG_HELPER.success,text:e.message,status:"success",bottons:!1}),setTimeout(function(){e.redirectUrl.length&gt;0?window.location=e.redirectUrl:window.location.reload()},1e3)):"two_factor"==e.status?showNativeModal("user2FactorLogin",[{name:"hash",value:e.message}]):"success"==e.status?(showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,bottons:!1}),$(t).find('button[type="submit"]').remove(),e.redirect&amp;&amp;setTimeout(function(){e.redirectUrl.length&gt;0?window.location=e.redirectUrl:window.location.reload()},1e3)):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok}),void 0!==e.events&amp;&amp;submitMarketingEvents(e.events)}),!1)}function dealerRegister4(t){var e=getUserRegisterForm(t);return!!e&amp;&amp;(ajaxFormGate("POST","User","dealerRegister4",e,!1,function(e){"redirect"==e.status?(showBaseLoader(),showAlert({title:LANG_HELPER.success,text:e.message,status:"success",bottons:!1}),setTimeout(function(){e.redirectUrl.length&gt;0?window.location=e.redirectUrl:window.location.reload()},1e3)):"two_factor"==e.status?showNativeModal("user2FactorLogin",[{name:"hash",value:e.message}]):"success"==e.status?(showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,bottons:!1}),$(t).find('button[type="submit"]').remove(),e.redirect&amp;&amp;setTimeout(function(){e.redirectUrl.length&gt;0?window.location=e.redirectUrl:window.location.reload()},1e3)):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok}),void 0!==e.events&amp;&amp;submitMarketingEvents(e.events)}),!1)}function contactForm(t){return ajaxFormGate("POST","Visitor","contactForm",t,!0,function(e){"success"==e.status?(showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,buttonTitle:LANG_HELPER.ok}),$(t).hide()):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok}),void 0!==e.events&amp;&amp;submitMarketingEvents(e.events)}),!1}function customContactForm(t,e="hide"){for(var a=(t=$(t)).serializeArray(),i=new FormData,n=0;n&lt;a.length;n++)i.append(a[n].name,a[n].value);for(var r=["file_1","file_2"],n=0;n&lt;r.length;n++){var o=r[n];o.length&gt;0&amp;&amp;void 0!==t.find('input[type=file][name="'+o+'"]')[0]&amp;&amp;t.find('input[type=file][name="'+o+'"]')[0].files.length&gt;0&amp;&amp;(i.has(o)&amp;&amp;i.delete(o),i.append(o,t.find('input[type=file][name="'+o+'"]')[0].files[0]))}return ajaxFormGate("POST","Visitor","customContactForm",i,!1,function(a){"success"==a.status?(showAlert({title:LANG_HELPER.success,text:a.message,status:a.status,buttonTitle:LANG_HELPER.ok}),"reset"==e?($(t).trigger("reset"),$(t)[0].reset()):$(t).hide()):showAlert({title:LANG_HELPER.error,text:a.message||LANG_HELPER.errorMsg,status:a.status,buttonTitle:LANG_HELPER.ok}),void 0!==a.events&amp;&amp;submitMarketingEvents(a.events)}),!1}function bankEftForm(t){return ajaxFormGate("POST","Visitor","bankEftForm",t,!0,function(e){"success"==e.status?(showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,buttonTitle:LANG_HELPER.ok}),$(t).hide()):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})}),!1}function orderDetailForm(t,e="",a=!0){return ajaxFormGate("POST","Order","find",t,a,function(t){"success"==t.status?$(e).html(t.html):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})}),!1}function selectChangeCountry(t,e,a,i){var n=$(t).find("select[name="+e+"]").val();ajaxFormGate("POST","Visitor","countryInfo",[{name:"country",value:n}],!1,function(e){"success"==e.status?($(t).find("select[name="+a+"]").html(" "),e.cities.forEach(function(e){$(t).find("select[name="+a+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")}),$(t).find("select[name="+i+"]").html(" "),e.districts.forEach(function(e){$(t).find("select[name="+i+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")})):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})},!1)}function selectChangeCity(t,e,a){var i=$(t).find("select[name="+e+"]").val();ajaxFormGate("POST","Visitor","cityInfo",[{name:"city",value:i}],!1,function(e){"success"==e.status?($(t).find("select[name="+a+"]").html(" "),e.districts.forEach(function(e){$(t).find("select[name="+a+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")})):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})},!1)}function selectChangeCountryV2(t,e,a,i,n){var r=$(t).find("select[name="+e+"]").val();ajaxFormGate("POST","Visitor","countryInfo",[{name:"country",value:r}],!1,function(e){"success"==e.status?($(t).find("select[name="+a+"]").html(" "),e.cities.forEach(function(e){$(t).find("select[name="+a+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")}),$(t).find("select[name="+i+"]").html(" "),e.districts.forEach(function(e){$(t).find("select[name="+i+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")}),$(t).find("select[name="+n+"]").html(" "),e.neighborhoods.forEach(function(e){$(t).find("select[name="+n+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")})):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})},!1)}function selectChangeCityV2(t,e,a,i){var n=$(t).find("select[name="+e+"]").val();ajaxFormGate("POST","Visitor","cityInfo",[{name:"city",value:n}],!1,function(e){"success"==e.status?($(t).find("select[name="+a+"]").html(" "),e.districts.forEach(function(e){$(t).find("select[name="+a+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")}),$(t).find("select[name="+i+"]").html(" "),e.neighborhoods.forEach(function(e){$(t).find("select[name="+i+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")})):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})},!1)}function selectChangeDistrictV2(t,e,a){var i=$(t).find("select[name="+e+"]").val();ajaxFormGate("POST","Visitor","districtInfo",[{name:"district",value:i}],!1,function(e){"success"==e.status?($(t).find("select[name="+a+"]").html(" "),e.neighborhoods.forEach(function(e){$(t).find("select[name="+a+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")})):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})},!1)}function selectChangeCountryV3(t,e,a,i,n){var r=$(t).find("select[name="+e+"]").val();ajaxFormGate("POST","Visitor","countryInfo",[{name:"country",value:r}],!1,function(e){"success"==e.status?($(t).find('*[data-location-input="neighborhood"]').addClass("d-none"),$(t).find("select[name="+a+"]").html(" "),e.cities.forEach(function(e){$(t).find("select[name="+a+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")}),$(t).find("select[name="+i+"]").html(" "),e.districts.forEach(function(e){$(t).find("select[name="+i+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")}),$(t).find("select[name="+n+"]").html(" "),e.neighborhoods.forEach(function(e){$(t).find("select[name="+n+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")}),e.show_districts?$(t).find('*[data-location-input="district"]').removeClass("d-none"):($(t).find('*[data-location-input="district"]').addClass("d-none"),$(t).find('*[data-location-input="neighborhood"]').addClass("d-none")),e.show_zip_code?$(t).find('*[data-location-input="zip_code"]').removeClass("d-none"):$(t).find('*[data-location-input="zip_code"]').addClass("d-none"),0==e.districts.length&amp;&amp;$(t).find('*[data-location-input="district"]').addClass("d-none"),0==e.neighborhoods.length&amp;&amp;$(t).find('*[data-location-input="neighborhood"]').addClass("d-none")):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})},!1)}function selectChangeCityV3(t,e,a,i){var n=$(t).find("select[name="+e+"]").val();ajaxFormGate("POST","Visitor","cityInfo",[{name:"city",value:n}],!1,function(e){"success"==e.status?($(t).find('*[data-location-input="neighborhood"]').addClass("d-none"),$(t).find("select[name="+a+"]").html(" "),e.districts.forEach(function(e){$(t).find("select[name="+a+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")}),$(t).find("select[name="+i+"]").html(" "),e.neighborhoods.forEach(function(e){$(t).find("select[name="+i+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")}),e.show_districts?$(t).find('*[data-location-input="district"]').removeClass("d-none"):($(t).find('*[data-location-input="district"]').addClass("d-none"),$(t).find('*[data-location-input="neighborhood"]').addClass("d-none")),e.show_zip_code?$(t).find('*[data-location-input="zip_code"]').removeClass("d-none"):$(t).find('*[data-location-input="zip_code"]').addClass("d-none"),0==e.districts.length&amp;&amp;$(t).find('*[data-location-input="district"]').addClass("d-none"),0==e.neighborhoods.length&amp;&amp;$(t).find('*[data-location-input="neighborhood"]').addClass("d-none")):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})},!1)}function selectChangeDistrictV3(t,e,a){var i=$(t).find("select[name="+e+"]").val();ajaxFormGate("POST","Visitor","districtInfo",[{name:"district",value:i}],!1,function(e){"success"==e.status?($(t).find("select[name="+a+"]").html(" "),e.neighborhoods.forEach(function(e){$(t).find("select[name="+a+"]").append('&lt;option value="'+e.ID+'"&gt;'+e.name+"&lt;/option&gt;")}),e.neighborhoods.length&gt;1?$(t).find('*[data-location-input="neighborhood"]').removeClass("d-none"):$(t).find('*[data-location-input="neighborhood"]').addClass("d-none")):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})},!1)}function smartCategorySearch(t){void 0===t&amp;&amp;(t={});var e="input[data-smart-cat-search='1']";CATEGORY_PAGE_DATA.k;var a=[],i=[],n="",r="",o="";if($(e+"[name='smart-cat-markalar[]']:checked").length&gt;0&amp;&amp;$(e+"[name='smart-cat-markalar[]']:checked").each(function(t,e){a.push($(e).val())}),$(e+"[data-smart-cat-attribute='1']:checked").length&gt;0&amp;&amp;$(e+"[data-smart-cat-attribute='1']:checked").each(function(t,e){var a=$(e).data("smart-cat-attribute-id");a.toString().length&gt;0&amp;&amp;$(e).val().toString().length&gt;0&amp;&amp;i.push(a.toString()+":"+$(e).val())}),"priceRangeBtn"in t){var s=parseInt($(e+"[name='smart-cat-min-price']").val()),d=parseInt($(e+"[name='smart-cat-max-price']").val());isNaN(s)&amp;&amp;(s=0),isNaN(d)&amp;&amp;(d=0),(s&gt;0||d&gt;0)&amp;&amp;(0==d&amp;&amp;(d="uzeri"),n=s.toString()+"-"+d.toString())}else 0==n.length&amp;&amp;(n=$(e+"[name='smart-cat-fiyatlar']:checked").length&gt;0?$(e+"[name='smart-cat-fiyatlar']:checked").val():"");r=$(e+"[name='smart-cat-list']:checked").length&gt;0?$(e+"[name='smart-cat-list']:checked").val():"",o=$(e+"[name='smart-cat-siralama']:checked").length&gt;0?$(e+"[name='smart-cat-siralama']:checked").val():"",a=a.join(","),i=i.join(",");var l={};o.length&gt;0&amp;&amp;(l.siralama=o),a.length&gt;0&amp;&amp;(l.markalar=a),i.length&gt;0&amp;&amp;(l.filtreler=i),n.length&gt;0&amp;&amp;(l.fiyat=n),r.length&gt;0&amp;&amp;(l.list=r);var c="";$(e+"[name='smart-cat-text']").length&gt;0&amp;&amp;((c=$(e+"[name='smart-cat-text']").val().trim()).length&gt;0?l.k=c:CATEGORY_PAGE_DATA.url.indexOf("?k=")&gt;0&amp;&amp;(CATEGORY_PAGE_DATA.url=CATEGORY_PAGE_DATA.url.split("?k=")[0]));var u=CATEGORY_PAGE_DATA.url,m=-1!==u.indexOf("?")?"&amp;":"?";l=(l=$.param(l).split("%2C").join(",")).split("%3A").join(":"),window.location=u+m+l}function smartCategoryFilters(t){return ajaxFormGate("POST","Category","filters",[{name:"key",value:t.filtreleme}],!1,function(t){if($(".p-g-mod-t-35").hide(),$(".p-g-mod-t-25.p-g-mod-t-cat-display-0").show(),$(".p-g-mod-t-26.p-g-mod-t-cat-display-0").show(),"success"==t.status){if($(".p-g-mod-t-21").length&gt;0&amp;&amp;(t.counts.categories&gt;0?($(".p-g-mod-t-21").show(),$("*[data-smart-cat-filter='sub-categories']").html(t.html.categories)):$(".p-g-mod-t-21").hide()),$(".p-g-mod-t-21").length&gt;0&amp;&amp;(t.counts.brands&gt;0?($(".p-g-mod-t-22").show(),$("*[data-smart-cat-filter='brands']").html(t.html.brands)):$(".p-g-mod-t-22").hide()),$(".p-g-mod-t-24").length&gt;0&amp;&amp;(t.counts.prices&gt;0?($(".p-g-mod-t-24").show(),$("*[data-smart-cat-filter='price-ranges']").html(t.html.prices)):$(".p-g-mod-t-24").hide()),$(".p-g-mod-t-23").length&gt;0){if(t.counts.attributes&gt;0){$(".p-g-mod-t-23").show();for(var e=$(".p-g-mod-t-23")[0].outerHTML,a=0;a&lt;t.html.attributes.length;a++){var i=t.html.attributes[a];a&gt;0&amp;&amp;($(".p-g-mod-t-24").length&gt;0?$(e).insertBefore($(".p-g-mod-t-24")):$(".p-g-mod-t-26").length&gt;0&amp;&amp;$(e).insertBefore($(".p-g-mod-t-26"))),$(".p-g-mod-t-23:eq("+a.toString()+")").find(".p-g-m-h-i-title").html(i.name),$(".p-g-mod-t-23:eq("+a.toString()+")").find("*[data-smart-cat-filter='attributes']").html(i.html)}}else $(".p-g-mod-t-23").hide()}}else $(".p-g-mod-t-21").hide(),$(".p-g-mod-t-22").hide(),$(".p-g-mod-t-23").hide(),$(".p-g-mod-t-24").hide();isFunction("smartCategoryFiltersSuccess")&amp;&amp;smartCategoryFiltersSuccess()},!1),!1}function showSmartCategoryPopup(t){void 0===t&amp;&amp;(t="order"),$(".cat-responsive-popup").removeClass("d-none"),$(".cat-responsive-popup .c-r-p-content").html(" ");var e="";"order"==t?$(".category-filter-order").length&gt;0&amp;&amp;(e+=$(".category-filter-order")[0].outerHTML,$(".cat-responsive-popup .c-r-p-content").html(e),$(".cat-responsive-popup .c-r-p-content .category-filter-order").removeClass("category-filter-order").addClass("category-filter-list").addClass("category-filter-res-order")):"filter"==t&amp;&amp;($(".p-g-mod-t-cat-filter").length&gt;0&amp;&amp;$(".p-g-mod-t-cat-filter").each(function(t,a){e+=$(a)[0].outerHTML}),$(".cat-responsive-popup .c-r-p-content").html(e),accordionCategoryTree()),$(".p-g-mod-t-26").length&gt;0&amp;&amp;$(".cat-responsive-popup .c-r-p-bar").html($(".p-g-mod-t-26")[0].outerHTML)}function hideSmartCategoryPopup(){$(".cat-responsive-popup").addClass("d-none")}function showSmartCategoryNative(t){void 0===t&amp;&amp;(t="filter"),$(".cat-responsive-native .c-r-n-content").html(" ");var e="";$(".p-g-mod-t-cat-filter").length&gt;0&amp;&amp;$(".p-g-mod-t-cat-filter").each(function(t,a){e+=$(a)[0].outerHTML}),$(".cat-responsive-native .c-r-n-content").html(e),$(".p-g-mod-t-26").length&gt;0&amp;&amp;$(".cat-responsive-native .c-r-n-buttons").html($(".p-g-mod-t-26")[0].outerHTML)}function changeProductPageVariant(t,e,a,i,n,r,o){void 0===n&amp;&amp;(n=!1),void 0===r&amp;&amp;(r=0),void 0===o&amp;&amp;(o=!1);var s=a.replace("variant-","list-"),d=a.replace("variant-","eft-"),l=a.replace("variant-","discounted-");if(0==t.variants.count||(changeVariantImageSlider(e,i,r+1),!n))return!1;var c=$(e);if(0==r){if(3==t.variants.count){var u=t.variants.summary[i],n=!1;Object.entries(u).forEach(function(t,e){var a=!1,i=t[0];Object.entries(t[1]).forEach(function(t,e){void 0===t.in_stock&amp;&amp;(e=t[0],t=t[1]);var i=c.find("a[data-variant='2'][data-variant-value='"+e.toString()+"']");t.in_stock&amp;&amp;(a=!0),i.removeClass("sold-out").removeClass("active")});var n=c.find("a[data-variant='1'][data-variant-value='"+i.toString()+"']");a?n.removeClass("sold-out"):n.addClass("sold-out"),n.removeClass("active")}),c.find("a[data-variant='0']").removeClass("active"),c.find("a[data-variant='0'][data-variant-value='"+i.toString()+"']").addClass("active"),c.find("select[data-variant='0']").find("option").removeAttr("selected"),c.find("select[data-variant='0']").find("option[data-variant-value='"+i.toString()+"']").prop("selected",!0);var m=c.find("select[data-variant='1']").val(),f=c.find("select[data-variant='2']").val(),p=!1;if(void 0!==u[m]&amp;&amp;void 0!==u[m][f]&amp;&amp;u[m][f].in_stock){p=!0,c.find("a[data-variant='1'][data-variant-value='"+m.toString()+"']").addClass("active"),c.find("a[data-variant='2'][data-variant-value='"+f.toString()+"']").addClass("active");var v=u[m][f];v.price_dif&amp;&amp;(void 0!==t.taxExclude&amp;&amp;t.taxExclude?($(a).html(v.price_list.fiyat_kdv_haric),$(s).html(v.price_list.piyasa_fiyati_kdv_haric),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_haric)):($(a).html(v.price_list.fiyat),$(s).html(v.price_list.piyasa_fiyati),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_dahil))),o&amp;&amp;void 0!==v.barcode&amp;&amp;$(o).html(v.barcode)}p||(c.find("select[data-variant='1']").find("option").prop("selected",!1),c.find("select[data-variant='2']").find("option").prop("selected",!1),c.find("a[data-variant='1'][data-variant-value='"+m.toString()+"']").removeClass("active"),c.find("a[data-variant='2'][data-variant-value='"+f.toString()+"']").removeClass("active"))}else if(2==t.variants.count){var u=t.variants.summary[i],n=!1;Object.entries(u).forEach(function(t,e){void 0===t.in_stock&amp;&amp;(e=t[0],t=t[1]);var a=c.find("a[data-variant='1'][data-variant-value='"+e.toString()+"']");t.in_stock?(a.removeClass("sold-out"),n=!1):a.addClass("sold-out"),a.removeClass("active")}),c.find("a[data-variant='0']").removeClass("active"),c.find("a[data-variant='0'][data-variant-value='"+i.toString()+"']").addClass("active"),c.find("select[data-variant='0']").find("option").removeAttr("selected"),c.find("select[data-variant='0']").find("option[data-variant-value='"+i.toString()+"']").prop("selected",!0);var m=c.find("select[data-variant='1']").val(),p=!1;if(void 0!==u[m]&amp;&amp;u[m].in_stock){p=!0,c.find("a[data-variant='1'][data-variant-value='"+m.toString()+"']").addClass("active");var v=u[m];v.price_dif&amp;&amp;(void 0!==t.taxExclude&amp;&amp;t.taxExclude?($(a).html(v.price_list.fiyat_kdv_haric),$(s).html(v.price_list.piyasa_fiyati_kdv_haric),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_haric)):($(a).html(v.price_list.fiyat),$(s).html(v.price_list.piyasa_fiyati),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_dahil))),o&amp;&amp;void 0!==v.barcode&amp;&amp;$(o).html(v.barcode)}p||c.find("select[data-variant='1']").find("option").prop("selected",!1)}else{var v=t.variants.summary[i];v.in_stock?(c.find("*[data-variant-stock='0']").removeClass("d-none").find("*[data-quantity]").html(v.quantity),c.find("a[data-variant='0']").removeClass("active"),c.find("a[data-variant='0'][data-variant-value='"+i.toString()+"']").addClass("active"),v.price_dif?void 0!==t.taxExclude&amp;&amp;t.taxExclude?($(a).html(v.price_list.fiyat_kdv_haric),$(s).html(v.price_list.piyasa_fiyati_kdv_haric),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_haric)):($(a).html(v.price_list.fiyat),$(s).html(v.price_list.piyasa_fiyati),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_dahil)):void 0!==t.taxExclude&amp;&amp;t.taxExclude&amp;&amp;void 0!==t.priceTaxExclude?($(a).html(t.priceTaxExclude),void 0!==t.listPriceTaxExclude&amp;&amp;$(s).html(t.listPriceTaxExclude),void 0!==t.eftPriceTaxExclude&amp;&amp;$(d).html(t.eftPriceTaxExclude),void 0!==t.discountedPriceTaxExclude&amp;&amp;$(l).html(t.discountedPriceTaxExclude)):($(a).html(t.price),void 0!==t.listPrice&amp;&amp;$(s).html(t.listPrice),void 0!==t.eftPrice&amp;&amp;$(d).html(t.eftPrice),void 0!==t.discountedPrice&amp;&amp;$(l).html(t.discountedPrice)),o&amp;&amp;void 0!==v.barcode&amp;&amp;$(o).html(v.barcode),c.find("select[data-variant='0']").find("option").removeAttr("selected"),c.find("select[data-variant='0']").find("option[data-variant-value='"+i.toString()+"']").prop("selected",!0)):c.find("a[data-variant-stock='0']").addClass("d-none"),document.dispatchEvent(new CustomEvent("change_product_variant",{detail:{variant:v}}))}}else if(1==r){if(3==t.variants.count){var h=c.find("select[data-variant='0']").val(),u=t.variants.summary[h][i],n=!1;if(Object.entries(u).forEach(function(t,e){void 0===t.in_stock&amp;&amp;(e=t[0],t=t[1]);var a=c.find("a[data-variant='2'][data-variant-value='"+e.toString()+"']");t.in_stock?(n=!0,a.removeClass("sold-out")):a.addClass("sold-out"),a.removeClass("active")}),!n)return!1;c.find("a[data-variant='1']").removeClass("active"),c.find("a[data-variant='1'][data-variant-value='"+i.toString()+"']").addClass("active"),c.find("select[data-variant='1']").find("option").removeAttr("selected"),c.find("select[data-variant='1']").find("option[data-variant-value='"+i.toString()+"']").prop("selected",!0);var f=c.find("select[data-variant='2']").val(),p=!1;if(void 0!==u[f]&amp;&amp;u[f].in_stock){p=!0,c.find("a[data-variant='2'][data-variant-value='"+f.toString()+"']").addClass("active");var v=u[f];v.price_dif&amp;&amp;(void 0!==t.taxExclude&amp;&amp;t.taxExclude?($(a).html(v.price_list.fiyat_kdv_haric),$(s).html(v.price_list.piyasa_fiyati_kdv_haric),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_haric)):($(a).html(v.price_list.fiyat),$(s).html(v.price_list.piyasa_fiyati),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_dahil))),o&amp;&amp;void 0!==v.barcode&amp;&amp;$(o).html(v.barcode)}p||c.find("select[data-variant='2']").find("option").prop("selected",!1)}else if(2==t.variants.count){var g=c.find("select[data-variant='0']").val();if(g.length&gt;0){var v=t.variants.summary[g][i];if(!v.in_stock)return!1;v.price_dif?void 0!==t.taxExclude&amp;&amp;t.taxExclude?($(a).html(v.price_list.fiyat_kdv_haric),$(s).html(v.price_list.piyasa_fiyati_kdv_haric),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_haric)):($(a).html(v.price_list.fiyat),$(s).html(v.price_list.piyasa_fiyati),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_dahil)):void 0!==t.taxExclude&amp;&amp;t.taxExclude&amp;&amp;void 0!==t.priceTaxExclude?($(a).html(t.priceTaxExclude),void 0!==t.listPriceTaxExclude&amp;&amp;$(s).html(t.listPriceTaxExclude),void 0!==t.eftPriceTaxExclude&amp;&amp;$(d).html(t.eftPriceTaxExclude),void 0!==t.discountedPriceTaxExclude&amp;&amp;$(l).html(t.discountedPriceTaxExclude)):($(a).html(t.price),void 0!==t.listPrice&amp;&amp;$(s).html(t.listPrice),void 0!==t.eftPrice&amp;&amp;$(d).html(t.eftPrice),void 0!==t.discountedPrice&amp;&amp;$(l).html(t.discountedPrice)),o&amp;&amp;void 0!==v.barcode&amp;&amp;$(o).html(v.barcode)}c.find("a[data-variant='1']").removeClass("active"),c.find("a[data-variant='1'][data-variant-value='"+i.toString()+"']").addClass("active"),c.find("select[data-variant='1']").find("option").removeAttr("selected"),c.find("select[data-variant='1']").find("option[data-variant-value='"+i.toString()+"']").prop("selected",!0),document.dispatchEvent(new CustomEvent("change_product_variant",{detail:{variant:v}}))}}else if(2==r){var g=c.find("select[data-variant='0']").val(),y=c.find("select[data-variant='1']").val();if(g.length&gt;0&amp;&amp;y.length&gt;0){var v=t.variants.summary[g][y][i];if(!v.in_stock)return!1;v.price_dif?void 0!==t.taxExclude&amp;&amp;t.taxExclude?($(a).html(v.price_list.fiyat_kdv_haric),$(s).html(v.price_list.piyasa_fiyati_kdv_haric),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_haric)):($(a).html(v.price_list.fiyat),$(s).html(v.price_list.piyasa_fiyati),$(d).html(v.price_list.eft_fiyat),$(l).html(v.price_list.indirimli_fiyatlar.sabit_indirim.kdv_dahil)):void 0!==t.taxExclude&amp;&amp;t.taxExclude&amp;&amp;void 0!==t.priceTaxExclude?($(a).html(t.priceTaxExclude),void 0!==t.listPriceTaxExclude&amp;&amp;$(s).html(t.listPriceTaxExclude),void 0!==t.eftPriceTaxExclude&amp;&amp;$(d).html(t.eftPriceTaxExclude),void 0!==t.discountedPriceTaxExclude&amp;&amp;$(l).html(t.discountedPriceTaxExclude)):($(a).html(t.price),void 0!==t.listPrice&amp;&amp;$(s).html(t.listPrice),void 0!==t.eftPrice&amp;&amp;$(d).html(t.eftPrice),void 0!==t.discountedPrice&amp;&amp;$(l).html(t.discountedPrice)),o&amp;&amp;void 0!==v.barcode&amp;&amp;$(o).html(v.barcode)}c.find("a[data-variant='2']").removeClass("active"),c.find("a[data-variant='2'][data-variant-value='"+i.toString()+"']").addClass("active"),c.find("select[data-variant='2']").find("option").removeAttr("selected"),c.find("select[data-variant='2']").find("option[data-variant-value='"+i.toString()+"']").prop("selected",!0),document.dispatchEvent(new CustomEvent("change_product_variant",{detail:{variant:v}}))}document.dispatchEvent(new CustomEvent("select_product_variant",{detail:{seq:r}})),userProductQuantityAlertView()}function changeBundleProductVariant(t,e,a,i,n){if(void 0===i&amp;&amp;(i=!1),void 0===n&amp;&amp;(n=0),0==t.variants.count||!i)return!1;var r=$(e);if(0==n){if(3==t.variants.count){var o=t.variants.summary[a],i=!1;Object.entries(o).forEach(function(t,e){var a=!1,i=t[0];Object.entries(t[1]).forEach(function(t,e){void 0===t.in_stock&amp;&amp;(e=t[0],t=t[1]);var i=r.find("a[data-variant='2'][data-variant-value='"+e.toString()+"']");t.in_stock&amp;&amp;(a=!0),i.removeClass("sold-out").removeClass("active")});var n=r.find("a[data-variant='1'][data-variant-value='"+i.toString()+"']");a?n.removeClass("sold-out"):n.addClass("sold-out"),n.removeClass("active")}),r.find("a[data-variant='0']").removeClass("active"),r.find("a[data-variant='0'][data-variant-value='"+a.toString()+"']").addClass("active"),r.find("select[data-variant='0']").find("option").removeAttr("selected"),r.find("select[data-variant='0']").find("option[data-variant-value='"+a.toString()+"']").prop("selected",!0);var s=r.find("select[data-variant='1']").val(),d=r.find("select[data-variant='2']").val(),l=!1;void 0!==o[s]&amp;&amp;void 0!==o[s][d]&amp;&amp;o[s][d].in_stock&amp;&amp;(l=!0,r.find("a[data-variant='1'][data-variant-value='"+s.toString()+"']").addClass("active"),r.find("a[data-variant='2'][data-variant-value='"+d.toString()+"']").addClass("active")),l||(r.find("select[data-variant='1']").find("option").prop("selected",!1),r.find("select[data-variant='2']").find("option").prop("selected",!1),r.find("a[data-variant='1'][data-variant-value='"+s.toString()+"']").removeClass("active"),r.find("a[data-variant='2'][data-variant-value='"+d.toString()+"']").removeClass("active"))}else if(2==t.variants.count){var o=t.variants.summary[a],i=!1;Object.entries(o).forEach(function(t,e){void 0===t.in_stock&amp;&amp;(e=t[0],t=t[1]);var a=r.find("a[data-variant='1'][data-variant-value='"+e.toString()+"']");t.in_stock?(a.removeClass("sold-out"),i=!1):a.addClass("sold-out"),a.removeClass("active")}),r.find("a[data-variant='0']").removeClass("active"),r.find("a[data-variant='0'][data-variant-value='"+a.toString()+"']").addClass("active"),r.find("select[data-variant='0']").find("option").removeAttr("selected"),r.find("select[data-variant='0']").find("option[data-variant-value='"+a.toString()+"']").prop("selected",!0);var s=r.find("select[data-variant='1']").val(),l=!1;void 0!==o[s]&amp;&amp;o[s].in_stock&amp;&amp;(l=!0,r.find("a[data-variant='1'][data-variant-value='"+s.toString()+"']").addClass("active")),l||r.find("select[data-variant='1']").find("option").prop("selected",!1)}else{var c=t.variants.summary[a];c.in_stock?(r.find("*[data-variant-stock='0']").removeClass("d-none").find("*[data-quantity]").html(c.quantity),r.find("a[data-variant='0']").removeClass("active"),r.find("a[data-variant='0'][data-variant-value='"+a.toString()+"']").addClass("active"),r.find("select[data-variant='0']").find("option").removeAttr("selected"),r.find("select[data-variant='0']").find("option[data-variant-value='"+a.toString()+"']").prop("selected",!0)):r.find("a[data-variant-stock='0']").addClass("d-none")}}else if(1==n){if(3==t.variants.count){var u=r.find("select[data-variant='0']").val(),o=t.variants.summary[u][a],i=!1;if(Object.entries(o).forEach(function(t,e){void 0===t.in_stock&amp;&amp;(e=t[0],t=t[1]);var a=r.find("a[data-variant='2'][data-variant-value='"+e.toString()+"']");t.in_stock?(i=!0,a.removeClass("sold-out")):a.addClass("sold-out"),a.removeClass("active")}),!i)return!1;r.find("a[data-variant='1']").removeClass("active"),r.find("a[data-variant='1'][data-variant-value='"+a.toString()+"']").addClass("active"),r.find("select[data-variant='1']").find("option").removeAttr("selected"),r.find("select[data-variant='1']").find("option[data-variant-value='"+a.toString()+"']").prop("selected",!0);var d=r.find("select[data-variant='2']").val(),l=!1;void 0!==o[d]&amp;&amp;o[d].in_stock&amp;&amp;(l=!0,r.find("a[data-variant='2'][data-variant-value='"+d.toString()+"']").addClass("active")),l||r.find("select[data-variant='2']").find("option").prop("selected",!1)}else if(2==t.variants.count){var m=r.find("select[data-variant='0']").val();if(m.length&gt;0){var c=t.variants.summary[m][a];if(!c.in_stock)return!1}r.find("a[data-variant='1']").removeClass("active"),r.find("a[data-variant='1'][data-variant-value='"+a.toString()+"']").addClass("active"),r.find("select[data-variant='1']").find("option").removeAttr("selected"),r.find("select[data-variant='1']").find("option[data-variant-value='"+a.toString()+"']").prop("selected",!0)}}else if(2==n){var m=r.find("select[data-variant='0']").val(),f=r.find("select[data-variant='1']").val();if(m.length&gt;0&amp;&amp;f.length&gt;0){var c=t.variants.summary[m][f][a];if(!c.in_stock)return!1}r.find("a[data-variant='2']").removeClass("active"),r.find("a[data-variant='2'][data-variant-value='"+a.toString()+"']").addClass("active"),r.find("select[data-variant='2']").find("option").removeAttr("selected"),r.find("select[data-variant='2']").find("option[data-variant-value='"+a.toString()+"']").prop("selected",!0)}}function productQuantityBox(t,e,a,i,n){void 0===a&amp;&amp;(a=null),void 0===i&amp;&amp;(i="name");var r=$(e),o=1;void 0!==r.find("input["+i+"=quantity]").data("version")&amp;&amp;(o=parseInt(r.find("input["+i+"=quantity]").data("version")),isNaN(o)&amp;&amp;(o=1));var s=1,d=9999999999,l=!1,c=1,u=1,m=1;if(2===o){var f=r.find("input["+i+"=quantity]");if(void 0!==f.data("decimal")){let p=parseInt(f.data("decimal"));p&gt;0&amp;&amp;(l=!0,c=Math.pow(10,p))}void 0!==f.data("min")&amp;&amp;(s=l?parseFloat(f.data("min")):parseInt(f.data("min"))),void 0!==f.data("decimal")&amp;&amp;(u=l?parseFloat(f.data("increase")):parseInt(f.data("increase"))),void 0!==f.data("initial")&amp;&amp;(m=l?parseFloat(f.data("initial")):parseInt(f.data("initial")))}else{var v=0;void 0!==r.find("input["+i+"=quantity]").data("quantity-type")&amp;&amp;(v=parseInt(r.find("input["+i+"=quantity]").data("quantity-type")),isNaN(v)&amp;&amp;(v=0));var h=0;void 0!==r.find("input["+i+"=quantity]").data("max-quantity")&amp;&amp;(h=parseInt(r.find("input["+i+"=quantity]").data("max-quantity")),isNaN(v)&amp;&amp;(h=0)),d=parseInt(r.find("input["+i+"=quantity]").attr("max")),isNaN(d)&amp;&amp;(d=9999999999),s=parseInt(r.find("input["+i+"=quantity]").attr("min")),isNaN(s)&amp;&amp;(s=1),16==v&amp;&amp;(s=.1,l=!0,u=.1,c=10)}if("change"==t){var g=window.event?a.keyCode:a.which;return 8===a.keyCode||46===a.keyCode||37===a.keyCode||39===a.keyCode||!(48&gt;g)&amp;&amp;!(g&gt;57)}if("increment"==t){if(""==r.find("input["+i+"=quantity]").val())r.find("input["+i+"=quantity]").val(m).change();else if(r.find("input["+i+"=quantity]").val()&lt;d){if(l)var y=Math.round((parseFloat(r.find("input["+i+"=quantity]").val())+u)*c)/c;else var y=parseInt(r.find("input["+i+"=quantity]").val())+u;h&gt;0&amp;&amp;y&gt;h&amp;&amp;(y=h),r.find("input["+i+"=quantity]").val(y).change()}}else if("decrement"==t){if(""==r.find("input["+i+"=quantity]").val())r.find("input["+i+"=quantity]").val(m).change();else if(r.find("input["+i+"=quantity]").val()&gt;s){if(l)var y=Math.round((parseFloat(r.find("input["+i+"=quantity]").val())-u)*c)/c;else var y=parseInt(r.find("input["+i+"=quantity]").val())-u;if(void 0!==n&amp;&amp;!window[n](y))return!1;r.find("input["+i+"=quantity]").val(y).change()}}}function productQuantityBoxWZero(t,e,a){void 0===a&amp;&amp;(a=null);var i=$(e);if("change"==t){var n=window.event?a.keyCode:a.which;return 8===a.keyCode||46===a.keyCode||37===a.keyCode||39===a.keyCode||!(48&gt;n)&amp;&amp;!(n&gt;57)}"increment"==t?""==i.find("input[name=quantity]").val()?i.find("input[name=quantity]").val(0).change():9999&gt;i.find("input[name=quantity]").val()&amp;&amp;i.find("input[name=quantity]").val(parseInt(i.find("input[name=quantity]").val())+1).change():"decrement"==t&amp;&amp;(""==i.find("input[name=quantity]").val()?i.find("input[name=quantity]").val(0).change():i.find("input[name=quantity]").val()&gt;0&amp;&amp;i.find("input[name=quantity]").val(parseInt(i.find("input[name=quantity]").val())-1).change())}function addCart(t,e,a){void 0===e&amp;&amp;(e="account"),void 0===a&amp;&amp;(a={}),"specialFieldDiv"in a||(a.specialFieldDiv="div[data-product-special-fields="+t.toString()+"]"),"specialFieldDivV2"in a||(a.specialFieldDivV2="div[data-product-special-fields-v2="+t.toString()+"]"),"multiSpecialFieldDiv"in a||!($("div[data-product-multi-special-fields="+t.toString()+"]").length&gt;0)||(a.multiSpecialFieldDiv=$("div[data-product-multi-special-fields="+t.toString()+"]")),"pieceListDiv"in a||(a.pieceListDiv="div[data-product-piece-list-id="+t.toString()+"]"),"quantity"in a||"card"!=e||!($("div[data-product-card-quantity="+t.toString()+"]").length&gt;0)||(a.quantity=$("div[data-product-card-quantity="+t.toString()+"] input[name=quantity]").val()),a.isBundleProduct=!1,$("div[data-product-bundle="+t.toString()+"]").length&gt;0&amp;&amp;(a.isBundleProduct=!0,a.bundleProductDiv="div[data-product-bundle="+t.toString()+"]");var i=new FormData;if(i.append("id",t),"quantity"in a){var n=parseFloat(a.quantity);isNaN(n)&amp;&amp;(n=1),i.append("quantity",n)}else i.append("quantity",1);if("extraSalePrice"in a){var r=parseFloat(a.extraSalePrice);isNaN(r)&amp;&amp;(r=0),i.append("_extra_sale_price",r)}if("checkVariant"in a&amp;&amp;"variantCount"in a&amp;&amp;"variantDiv"in a&amp;&amp;a.checkVariant&amp;&amp;a.variantCount&gt;0)for(var o=$(a.variantDiv),s=0;s&lt;a.variantCount;s++){var d=o.find("select[data-variant='"+s.toString()+"']").val();if(d&amp;&amp;d.length&gt;0){i.append("variant_"+(s+1).toString(),d);continue}var l=o.find("select[data-variant='"+s.toString()+"']").data("variant-name");return showAlert({title:LANG_HELPER.error,text:LANG_HELPER.variantMsg.replace("{%x%}",l),status:"error",buttonTitle:LANG_HELPER.ok}),!1}if("specialFieldDiv"in a){var c=$(a.specialFieldDiv),u=!1,m=[];c.find(".field-input").each(function(t,e){if(!u){if("4"==$(e).data("type")){var a=$(e).data("group");m.includes(a)||m.push(a)}else if("5"==$(e).data("type")){var a=$(e).data("group");m.includes(a)||m.push(a)}else{var n=$(e).val();"1"==$(e).data("required")&amp;&amp;0==n.length&amp;&amp;(u=!0,showAlert({title:LANG_HELPER.error,text:LANG_HELPER.specialFieldMsg.replace("{%x%}",$(e).attr("name")),status:"error",buttonTitle:LANG_HELPER.ok})),n.length&gt;0&amp;&amp;("file"==$(e).attr("type")?i.append("special_field["+$(e).attr("name")+"]",$(e)[0].files[0]):i.append("special_field["+$(e).attr("name")+"]",n))}}});for(var f=found=options=null,s=0;s&lt;m.length;s++){if(f=m[s],found=!1,options=[],c.find('.field-input[data-group="'+f+'"]').each(function(t,e){$(e).is(":checked")&amp;&amp;(options.push($(e).val()),found=!0)}),!found&amp;&amp;c.find('.field-input[data-group="'+f+'"][data-required="1"]').length&gt;0){u=!0,showAlert({title:LANG_HELPER.error,text:LANG_HELPER.specialFieldMsg.replace("{%x%}",f),status:"error",buttonTitle:LANG_HELPER.ok});break}found&amp;&amp;i.append("special_field["+f+"]",options.join(", "))}if(u)return!1}if("specialFieldDivV2"in a){var c=$(a.specialFieldDivV2),u=!1,m=[];c.find(".field-input").each(function(t,e){if(!u){if("4"==$(e).data("type")){var a=$(e).data("group");m.includes(a)||m.push(a)}else if("5"==$(e).data("type")){var a=$(e).data("group");m.includes(a)||m.push(a)}else{var n=$(e).val();"1"==$(e).data("required")&amp;&amp;0==n.length&amp;&amp;(u=!0,showAlert({title:LANG_HELPER.error,text:LANG_HELPER.specialFieldMsg.replace("{%x%}",$(e).data("label")),status:"error",buttonTitle:LANG_HELPER.ok})),n.length&gt;0&amp;&amp;("file"==$(e).attr("type")?i.append("special_field_v2["+$(e).attr("name")+"]",$(e)[0].files[0]):i.append("special_field_v2["+$(e).attr("name")+"]",n))}}});for(var f=found=options=null,p="",s=0;s&lt;m.length;s++){if(f=m[s],found=!1,options=[],c.find('.field-input[data-group="'+f+'"]').each(function(t,e){$(e).is(":checked")&amp;&amp;(options.push($(e).val()),found=!0)}),!found&amp;&amp;c.find('.field-input[data-group="'+f+'"][data-required="1"]').length&gt;0){u=!0,p=c.find('.field-input[data-group="'+f+'"]').data("label"),showAlert({title:LANG_HELPER.error,text:LANG_HELPER.specialFieldMsg.replace("{%x%}",p),status:"error",buttonTitle:LANG_HELPER.ok});break}found&amp;&amp;i.append("special_field_v2["+f+"]",options.join(", "))}if(c.find("*[data-multiple-file]").each(function(t,e){var a=$(e).data("multiple-file"),n=parseInt($(e).data("uploaded")),r=parseInt($(e).data("min-limit")),o=$(e).data("label");if(r&gt;n){u=!0,showAlert({title:LANG_HELPER.error,text:LANG_HELPER.specialFieldMsg.replace("{%x%}",o),status:"error",buttonTitle:LANG_HELPER.ok});return}$(e).find("*[data-files]").find(".item").each(function(t,e){i.append("special_field_v2["+a+"]["+t+"][file]",$(e).find("input[data-file-content]").val()),i.append("special_field_v2["+a+"]["+t+"][count]",$(e).find("input[data-file-count]").val()),i.append("special_field_v2["+a+"]["+t+"][name]",$(e).find("input[data-file-name]").val())})}),u)return!1}if("multiSpecialFieldDiv"in a){var v=$(a.multiSpecialFieldDiv),h=!1,g=[];v.find(".field-input").each(function(t,e){if(!u){if("4"==$(e).data("type")){var a=$(e).data("group");g.includes(a)||g.push(a)}else{var n=$(e).val();"1"==$(e).data("required")&amp;&amp;0==n.length&amp;&amp;(h=!0,showAlert({title:LANG_HELPER.error,text:LANG_HELPER.specialFieldMsg.replace("{%x%}",$(e).attr("name")),status:"error",buttonTitle:LANG_HELPER.ok})),n.length&gt;0&amp;&amp;("file"==$(e).attr("type")?i.append("multi_special_field["+$(e).attr("name")+"][]",$(e)[0].files[0]):i.append("multi_special_field["+$(e).attr("name")+"][]",n))}}});for(var y=mulsp_found=mulsp_options=null,s=0;s&lt;g.length;s++){if(y=g[s],mulsp_found=!1,mulsp_options=[],v.find('.field-input[data-group="'+y+'"]').each(function(t,e){$(e).is(":checked")&amp;&amp;(mulsp_options.push($(e).val()),mulsp_found=!0)}),!mulsp_found&amp;&amp;v.find('.field-input[data-group="'+y+'"][data-required="1"]').length&gt;0){h=!0,showAlert({title:LANG_HELPER.error,text:LANG_HELPER.specialFieldMsg.replace("{%x%}",y),status:"error",buttonTitle:LANG_HELPER.ok});break}mulsp_found&amp;&amp;i.append("multi_special_field["+y+"][]",mulsp_options.join(", "))}if(h)return!1}if("pieceListDiv"in a&amp;&amp;$(a.pieceListDiv).length&gt;0&amp;&amp;$(a.pieceListDiv+" form").serializeArray().forEach(function(t,e){i.append("piece_"+t.name,t.value)}),a.isBundleProduct){var b=$(a.bundleProductDiv),_=!0;if(b.find(".bpb-item").each(function(t,e){var a=$(e).data("bundle-product-id");if(i.append("bundle["+t+"][id]",a),$(e).find(".bpb-variants").length&gt;0)for(var n=$(e).find(".bpb-variants"),r=$(e).find(".bpb-variants").find(".variant").length,o=0;o&lt;r;o++){var s=n.find("select[data-variant='"+o.toString()+"']").val();if(s&amp;&amp;s.length&gt;0){i.append("bundle["+t+"][variant_"+(o+1).toString()+"]",s);continue}var d=n.find("select[data-variant='"+o.toString()+"']").data("variant-name");return showAlert({title:LANG_HELPER.error,text:LANG_HELPER.variantMsg.replace("{%x%}",d),status:"error",buttonTitle:LANG_HELPER.ok}),_=!1,!1}}),!_)return!1}return ajaxFormGate("POST","Cart","add",i,!1,function(n){if("success"==n.status){void 0!==n.events&amp;&amp;submitMarketingEvents(n.events);try{document.dispatchEvent(new Event("add_to_cart"))}catch(r){}try{"object"==typeof q_ecom_analytics&amp;&amp;q_ecom_analytics.event("cart")}catch(o){}if("redirectPayment"in a&amp;&amp;a.redirectPayment)return showAlert({title:LANG_HELPER.success,text:n.message,status:n.status,bottons:!1}),setTimeout(function(){window.location=SITE_CONFIG.paymentUrl},1e3),!0;if("redirectCart"in a&amp;&amp;a.redirectCart)return showAlert({title:LANG_HELPER.success,text:n.message,status:n.status,bottons:!1}),setTimeout(function(){window.location=SITE_CONFIG.cartUrl},1e3),!0;"hideNativeModal"in a&amp;&amp;hideNativeModal(a.hideNativeModal),isFunction("addCartSuccessEvent")?addCartSuccessEvent(t,e,a,i,n):showAlert({title:LANG_HELPER.success,text:n.message,status:n.status,buttonList:{confirm:{text:LANG_HELPER.keepShopping,value:"confirm",visible:!0,className:"btn-primary btn-theme-3",closeModal:!0},cart:{text:LANG_HELPER.goCart,value:"cart",visible:!0,className:"btn-success btn-theme-4",closeModal:!1}}},function(t){"cart"==t&amp;&amp;(window.location=SITE_CONFIG.cartUrl)}),$("*[data-cart-count]").html(n.summary.urun),$("*[data-cart-quantity]").html(n.summary.adet),$("*[data-cart-total]").html(n.summary.tutar)}else"show-variant-box"==n.status?showNativeModal("productVariantBox",i):(hideBaseLoader(),showAlert({title:LANG_HELPER.error,text:n.message||LANG_HELPER.errorMsg,status:n.status,buttonTitle:LANG_HELPER.ok}))}),!1}function addListToCart(t,e,a,i=!1){void 0===e&amp;&amp;(e="account"),void 0===a&amp;&amp;(a={});var n=new FormData;return t.forEach(function(t){n.append("id_list[]",t.id),void 0!==t.quantity&amp;&amp;n.append("quantity_list[]",t.quantity)}),i&amp;&amp;n.append("clear_cart","1"),ajaxFormGate("POST","Cart","addList",n,!1,function(i){if("success"==i.status){try{"object"==typeof q_ecom_analytics&amp;&amp;q_ecom_analytics.event("cart")}catch(r){}if("redirectPayment"in a&amp;&amp;a.redirectPayment)return showAlert({title:LANG_HELPER.success,text:i.message,status:i.status,bottons:!1}),setTimeout(function(){window.location=SITE_CONFIG.paymentUrl},1e3),!0;if("redirectCart"in a&amp;&amp;a.redirectCart)return showAlert({title:LANG_HELPER.success,text:i.message,status:i.status,bottons:!1}),setTimeout(function(){window.location=SITE_CONFIG.cartUrl},1e3),!0;"hideNativeModal"in a&amp;&amp;hideNativeModal(a.hideNativeModal),isFunction("addCartSuccessEvent")?addCartSuccessEvent(t,e,a,n,i):showAlert({title:LANG_HELPER.success,text:i.message,status:i.status,buttonList:{confirm:{text:LANG_HELPER.keepShopping,value:"confirm",visible:!0,className:"btn-primary btn-theme-3",closeModal:!0},cart:{text:LANG_HELPER.goCart,value:"cart",visible:!0,className:"btn-success btn-theme-4",closeModal:!1}}},function(t){"cart"==t&amp;&amp;(window.location=SITE_CONFIG.cartUrl)}),$("*[data-cart-count]").html(i.summary.urun),$("*[data-cart-quantity]").html(i.summary.adet),$("*[data-cart-total]").html(i.summary.tutar)}else"show-variant-box"==i.status?showNativeModal("productVariantBox",n):(hideBaseLoader(),showAlert({title:LANG_HELPER.error,text:i.message||LANG_HELPER.errorMsg,status:i.status,buttonTitle:LANG_HELPER.ok}))}),!1}function showCartBox(t){return showNativeModal("productVariantBox",[{name:"id",value:t}]),!1}function userProductFavourite(t,e,a){void 0===a&amp;&amp;(a="product"),ajaxFormGate("POST","User","add"==t?"addFavoriteProduct":"removeFavouriteProduct",[{name:"id",value:e}],!1,function(i){"success"==i.status?"product"==a?"add"==t?($("*[data-favourite-product-id='"+e.toString()+"']").find(".add-favorite").removeClass("d-block").addClass("d-none"),$("*[data-favourite-product-id='"+e.toString()+"']").find(".remove-favorite").removeClass("d-none").addClass("d-block")):($("*[data-favourite-product-id='"+e.toString()+"']").find(".remove-favorite").removeClass("d-block").addClass("d-none"),$("*[data-favourite-product-id='"+e.toString()+"']").find(".add-favorite").removeClass("d-none").addClass("d-block")):"account"==a?($("*[data-user-product-id='"+e.toString()+"']").remove(),0===$("*[data-user-product-id]").length&amp;&amp;window.location.reload()):showAlert({title:LANG_HELPER.success,text:i.message,status:i.status,bottons:!1}):"auth"==i.status?showNativeModal("loginPage"):showAlert({title:LANG_HELPER.error,text:i.message||LANG_HELPER.errorMsg,status:i.status,buttonTitle:LANG_HELPER.ok}),"add"==t&amp;&amp;void 0!==i.events&amp;&amp;submitMarketingEvents(i.events)},!1)}function commentProduct(t,e,a=!1){var i=$(t).serializeArray();i[i.length]={name:"id",value:e};for(var n=new FormData,r=0;r&lt;i.length;r++)n.append(i[r].name,i[r].value);return $(t).find("input[data-file-uploader]").each(function(t,e){n.append("file_"+(t+1),$(e)[0].files[0])}),ajaxFormGate("POST","User","commentProduct",n,!1,function(e){"success"==e.status?(showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,buttonTitle:LANG_HELPER.ok}),$(t).hide(),a&amp;&amp;hideNativeModal(a)):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})}),!1}function productCommentStars(t,e,a){var i="form[data-product-comment-form='"+t.toString()+"']";if(0==a){$(i).find("input[name=score]").val(e),$(i).find(".product-comment-stars a").removeClass("active");for(var n=e;n&lt;=5;n++)$(i).find(".product-comment-stars .star-"+n.toString()).removeClass("active");for(var n=1;n&lt;=parseInt(e);n++)$(i).find(".product-comment-stars .star-"+n.toString()).addClass("active")}else if(1==a){$(i).find(".product-comment-stars a").removeClass("active");for(var n=e;n&lt;=5;n++)$(i).find(".product-comment-stars .star-"+n.toString()).removeClass("active");for(var n=1;n&lt;=parseInt(e);n++)$(i).find(".product-comment-stars .star-"+n.toString()).addClass("active")}else if(2==a){e=parseInt($(i).find("input[name=score]").val()),$(i).find(".product-comment-stars a").removeClass("active");for(var n=e;n&lt;=5;n++)$(i).find(".product-comment-stars .star-"+n.toString()).removeClass("active");for(var n=1;n&lt;=parseInt(e);n++)$(i).find(".product-comment-stars .star-"+n.toString()).addClass("active")}}function adultsOnly(t){t?($("#native-modal-adults-only").modal("hide"),$(".modal-backdrop").remove(),ajaxFormGate("POST","Visitor","adultsOnly",[],!1,function(t){},!1)):window.location=SITE_CONFIG.url}function removeCart(t,e){return void 0===e&amp;&amp;(e="refresh-page"),ajaxFormGate("POST","Cart","remove",[{name:"id",value:t},{name:"success_action",value:e}],!1,function(t){"success"==t.status?(void 0!==t.events&amp;&amp;submitMarketingEvents(t.events),"refresh-page"==e?(showBaseLoader(),window.location.reload()):"fetch-cart-ajax"==e?(showBaseLoader(),fetchCartAjax(),$("*[data-cart-count]").html(t.summary.urun),$("*[data-cart-quantity]").html(t.summary.adet),$("*[data-cart-total]").html(t.summary.tutar)):showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,buttonTitle:LANG_HELPER.ok})):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})}),!1}$(function(){baseLazyLoad(),$('a[href="javascript:;"]').length&gt;0&amp;&amp;$('a[href="javascript:;"]').click(function(t){var e=!1;if($.each(this.attributes,function(){this.specified&amp;&amp;this.name.indexOf("data")&gt;-1&amp;&amp;(e=!0)}),!e)return t.preventDefault(),!1});try{q_ecom_analytics=QEcomAnalytics(SITE_CONFIG.analytics)}catch(t){}if(smartProductSearchForm(),smartMobileProductSearchForm(),advancedProductSearchForm(),$(document).on("click",".lag-checkbox label",function(){if($(this).parent().find("input").is(":checked")){if("radio"==$(this).parent().find("input").attr("type"))$("input[name='"+$(this).parent().find("input").attr("name")+"']").attr("checked",!1),$("input[name='"+$(this).parent().find("input").attr("name")+"']").prop("checked",!1);else{var t=0;try{t=window.innerWidth||$(window).width()}catch(e){}t&lt;991&amp;&amp;($(this).parent().find("input").attr("checked",!1),$(this).parent().find("input").prop("checked",!1))}}}),$(document).on("click","input[data-smart-cat-search='1'][type=checkbox], input[data-smart-cat-search='1'][type=radio]",function(){$(this).is(":radio")&amp;&amp;void 0!==$(this).data("checked")&amp;&amp;($(this).attr("checked",!1),$(this).prop("checked",!1)),smartCategorySearch()}),$(document).on("click","*[data-smart-cat-price-button]",function(){smartCategorySearch({priceRangeBtn:!0})}),$(document).on("click","*[data-smart-search-button]",function(){smartCategorySearch()}),$("#native-modal-adults-only").length&gt;0&amp;&amp;$("#native-modal-adults-only").modal({backdrop:"static",keyboard:!1}),$(document).on("change","*[data-payment-box-form='address-info'] select, *[data-payment-box-form='shipping-info'] input, *[data-payment-box-form='order-info'] input",function(){onChangePaymentBoxInfo(this)}),$('*[data-payment-box-form="address-info"]').length&gt;0&amp;&amp;fetchPaymentShipmentInfo(!0),$('*[data-payment-box-form="payment-info"]').length&gt;0&amp;&amp;fetchPaymentMethods(),$(document).on("keydown","*[data-payment-input] .form-control",function(){removePaymentFormError($(this))}),$(document).on("change","*[data-payment-input] .form-control",function(){removePaymentFormError($(this))}),disableAutoComplete(),$(".sticky-sidebar-992-1").length&gt;0&amp;&amp;document.documentElement.clientWidth&gt;=992&amp;&amp;$(".sticky-sidebar-992-1 .p-g-b-c-1 .p-g-b-c-wrapper").height()&gt;$(".sticky-sidebar-992-1 .p-g-b-c-0 .p-g-b-c-wrapper").height()){var e=new StickySidebar(".sticky-sidebar-992-1 .p-g-b-c-0 .p-g-b-c-wrapper",{topSpacing:10,bottomSpacing:20,stickyClass:"is-affixed",resizeSensor:!0,containerSelector:".sticky-sidebar-992-1",innerWrapperSelector:".p-g-b-c-inner"}),a=!1;window.onresize=function(t){document.documentElement.clientWidth&lt;991&amp;&amp;!a&amp;&amp;(e.destroy(),a=!0)}}if($(".sticky-sidebar-992-2").length&gt;0&amp;&amp;document.documentElement.clientWidth&gt;=992&amp;&amp;$(".sticky-sidebar-992-2 .p-g-b-c-0 .p-g-b-c-wrapper").height()&gt;$(".sticky-sidebar-992-2 .p-g-b-c-1 .p-g-b-c-wrapper").height()){var e=new StickySidebar(".sticky-sidebar-992-2 .p-g-b-c-1 .p-g-b-c-wrapper",{topSpacing:10,bottomSpacing:20,stickyClass:"is-affixed",resizeSensor:!0,containerSelector:".sticky-sidebar-992-2",innerWrapperSelector:".p-g-b-c-inner"}),a=!1;window.onresize=function(t){document.documentElement.clientWidth&lt;991&amp;&amp;!a&amp;&amp;(e.destroy(),a=!0)}}var i=null;$(".carousel").each(function(){var t=$(this);$(this).on("touchstart",function(t){var e=t.originalEvent;1==e.touches.length&amp;&amp;(i=e.touches[0].pageX)}).on("touchmove",function(e){var a=e.originalEvent;if(null!=i){var n=a.changedTouches[0].pageX;n-i&gt;60?(i=null,t.carousel("prev")):i-n&gt;60&amp;&amp;(i=null,t.carousel("next"))}}).on("touchend",function(){i=null})}),$(document).on("change","*[data-shipping-locations-form] .form-control",function(){removeShippingLocationFormError($(this))}),accordionCategoryTree(),loadFormElements(),loadPlugins(),variantImageSlider(),$('*[data-toggle="tooltip"]').length&gt;0&amp;&amp;$('*[data-toggle="tooltip"]').each(function(){var t=$(this).attr("title");(void 0==t||""==t)&amp;&amp;$(this).removeAttr("data-toggle")}),$(document).on({mouseenter:function(){let t=$(this).parent().find(".cpi-video");if(0==t.length)return;t.removeClass("d-none");let e=t.data("video-url"),a=t.data("video-type");t.html(' &lt;video muted="" onloadeddata="this.play();"loop="" autoplay="" playsinline=""webkit-playsinline=""&gt;    &lt;source src="'+e+'" type="'+a+'"&gt;    &lt;/source&gt;&lt;/video&gt;')}},".mouse-over-video"),$(document).on({mouseleave:function(){$(this).addClass("d-none"),$(this).html(" ")}},"*[data-mouse-over-video]"),qCarousel()}),function(t){t.fn.numberInputFilter=function(t){return this.on("input keydown keyup mousedown mouseup select contextmenu drop",function(){t(this.value)?(this.oldValue=this.value,this.oldSelectionStart=this.selectionStart,this.oldSelectionEnd=this.selectionEnd):this.hasOwnProperty("oldValue")?(this.value=this.oldValue,this.setSelectionRange(this.oldSelectionStart,this.oldSelectionEnd)):this.value=""})},t.fn.currencyInputFilter=function(){return t(this).on("paste",function(t){var e=/[a-zA-Z]+/g,a=t.originalEvent.clipboardData.getData("text");return null==a.match(e)&amp;&amp;-1==a.indexOf(",")}).on("keydown",function(t){var e=t.which?t.which:t.keyCode,a=t.metaKey||t.ctrlKey||t.shiftKey,i=-1!=[46,8,37,38,39,40].indexOf(e),n=e&gt;=48&amp;&amp;e&lt;=58||e&gt;=96&amp;&amp;e&lt;=105||190==e||9==e||45==e||189==e||173==e,r=86,o=67,s=65;switch(!0){case i:case!1==a&amp;&amp;n:case(t.metaKey||t.ctrlKey)&amp;&amp;-1!=[r,o,s].indexOf(e):break;default:t.preventDefault()}}),t(this)}}(jQuery);var updateCartQuantity_Process=!1;function updateCartQuantity(t,e,a,i){if(void 0===i&amp;&amp;(i="refresh-page"),updateCartQuantity_Process)return!1;updateCartQuantity_Process=!0;var n=[{name:"id",value:t}],r=0;r="table"==e?$(a).val():a,n.push({name:"quantity",value:r}),ajaxFormGate("POST","Cart","updateQuantity",n,!1,function(t){updateCartQuantity_Process=!1,"success"==t.status?(void 0!==t.events&amp;&amp;submitMarketingEvents(t.events),"refresh-page"==i?(showBaseLoader(),window.location.reload()):"fetch-cart-ajax"==i?(showBaseLoader(),fetchCartAjax()):showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,buttonTitle:LANG_HELPER.ok})):("table"==e&amp;&amp;$(a).val($(a).data("base-value")),showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok}))})}function fetchCartSummary(){return showBaseLoader(),ajaxFormGate("POST","Cart","summary",[],!1,function(t){hideBaseLoader(),"success"==t.status?$("*[data-cart-summary]").html(t.html):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})},!1),!1}function updateCartQuantityVId(t,e,a,i){void 0===i&amp;&amp;(i="refresh-page");var n=[{name:"id",value:t}],r=0;r="table"==e?$(a).val():a,n.push({name:"quantity",value:r}),ajaxFormGate("POST","Cart","updateQuantityViaProductId",n,!1,function(n){"success"==n.status?"refresh-page"==i?(showBaseLoader(),window.location.reload()):"reload-cart-summary"==i?fetchCartSummary():showAlert({title:LANG_HELPER.success,text:n.message,status:n.status,buttonTitle:LANG_HELPER.ok}):("table"==e&amp;&amp;$(a).val($(a).data("base-value")),showAlert({title:LANG_HELPER.error,text:n.message||LANG_HELPER.errorMsg,status:n.status,buttonTitle:LANG_HELPER.ok})),void 0!==n.cart&amp;&amp;($('*[data-product-id="'+t.toString()+'"] *[data-product-total-price]').html(n.cart.total_price),$('*[data-product-id="'+t.toString()+'"] *[data-data-product-quantity]').val(n.cart.quantity))})}function useVoucherCode(t,e){return void 0===e&amp;&amp;(e="refresh-page"),ajaxFormGate("POST","Cart","useVoucherCode",t,!0,function(t){"success"==t.status?"refresh-page"==e?(showBaseLoader(),window.location.reload()):"reload-cart-summary"==e?fetchCartSummary():"fetch-cart-ajax"==e?fetchCartAjax():showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,buttonTitle:LANG_HELPER.ok}):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})}),!1}function removeVoucherCode(t){return void 0===t&amp;&amp;(t="refresh-page"),ajaxFormGate("POST","Cart","removeVoucherCode",[{name:"success_action",value:t}],!1,function(e){"success"==e.status?"refresh-page"==t?(showBaseLoader(),window.location.reload()):"reload-cart-summary"==t?fetchCartSummary():"fetch-cart-ajax"==t?fetchCartAjax():showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,buttonTitle:LANG_HELPER.ok}):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})}),!1}function fetchPaymentCartSummary(t){void 0===t&amp;&amp;(t=1);var e=[{name:"payment_step",value:t}];if(1==t){var a=$("*[data-payment-box-form='address-info']").serializeArray(),i=$("*[data-payment-box-form='shipping-info']").serializeArray(),n=$("*[data-payment-box-form='order-info']").serializeArray();e=(e=(e=e.concat(a)).concat(i)).concat(n)}else if(2==t){var r=$('*[data-payment-box-form="payment-info"]').data("active-payment-method"),o=$("*[data-payment-box-form='payment-info']").find('form[data-payment-method-form="'+r.toString()+'"]').serializeArray();e=e.concat(o)}return ajaxFormGate("POST","Payment","cartSummary",e,!1,function(t){"success"==t.status?$('*[data-payment-cart="summary"]').html(t.html):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})},!1),!1}function fetchPaymentShipmentInfo(t){if(void 0===t&amp;&amp;(t=!1),"in_cart"==SITE_CONFIG.cartShippingType)return t&amp;&amp;fetchPaymentCartSummary(),!1;var e=[],a=$("*[data-payment-box-form='address-info']").serializeArray(),i=$("*[data-payment-box-form='shipping-info']").serializeArray();e=(e=e.concat(a)).concat(i);var n=!0;return $("*[data-payment-box-form='shipping-info']").find(".method").length&gt;0?n=!1:showBaseLoader(),ajaxFormGate("POST","Payment","shipmentInfo",e,!1,function(e){$(".payment-shipping-info").addClass("d-none"),$("*[data-payment-box-form='shipping-info']").html(" "),"success"==e.status?"order"==e.type?($(".payment-shipping-times").length&gt;0&amp;&amp;(e.shipping_times?$(".payment-shipping-times").addClass("has-shipping-times"):$(".payment-shipping-times").removeClass("has-shipping-times")),$(".payment-shipping-info").removeClass("d-none"),$("*[data-payment-box-form='shipping-info']").html(e.html)):t&amp;&amp;fetchPaymentCartSummary():t?fetchPaymentCartSummary():showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})},n),!1}function fetchPaymentShipmentTimes(){if(0==$(".payment-shipping-times").length)return!1;var t=[],e=$("*[data-payment-box-form='address-info']").serializeArray(),a=$("*[data-payment-box-form='shipping-info']").serializeArray(),i=$("*[data-payment-box-form='shipping-times']").serializeArray();return t=(t=(t=t.concat(e)).concat(a)).concat(i),$(".payment-shipping-times").addClass("d-none"),$("*[data-payment-box-form='shipping-times']").html(" "),0!=$(".payment-shipping-times.has-shipping-times").length&amp;&amp;(ajaxFormGate("POST","Payment","shipmentTimes",t,!1,function(t){"success"==t.status?t.show&amp;&amp;($(".payment-shipping-times").removeClass("d-none"),$("*[data-payment-box-form='shipping-times']").html(t.html)):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})},!1),!1)}function fetchPaymentMethodsV1(){return showBaseLoader(),fetchPaymentCartSummary(2),setTimeout(function(){var t=$('*[data-payment-box-form="payment-info"]').data("active-payment-method"),e=[];e.push({name:"payment_method",value:t}),ajaxFormGate("POST","Payment","paymentMethod",e,!1,function(e){"success"==e.status?($('*[data-payment-method-content="'+t.toString()+'"]').data("payment-method-initialize","1"),$('*[data-payment-method-content="'+t.toString()+'"]').html(e.html)):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok}),fetchPaymentCartSummary(2)},!0)},1e3),!1}function fetchPaymentMethods(){return showBaseLoader(),fetchPaymentCartSummary(2),setTimeout(function(){var t=$('*[data-payment-box-form="payment-info"]').data("active-payment-method"),e=[];e.push({name:"payment_method",value:t}),ajaxFormGate("POST","Payment","paymentMethodV2",e,!1,function(e){"success"==e.status?($('*[data-payment-method-content="'+t.toString()+'"]').data("payment-method-initialize","1"),$('*[data-payment-method-content="'+t.toString()+'"]').html(e.html)):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok}),fetchPaymentCartSummary(2)},!0)},1e3),!1}function onChangePaymentBoxInfo(t){var e=$(t).attr("name");return -1!==$.inArray(e,["country","city","district","neighborhood"])&amp;&amp;fetchPaymentShipmentInfo(),-1!==$.inArray(e,["shipment_method","gift_pack"])&amp;&amp;(fetchPaymentCartSummary(),fetchPaymentShipmentTimes()),!1}function removePaymentFormError(t){t.hasClass("form-phone-control")?(t.parent().parent().find("span.error").remove(),t.parent().parent().find(".form-control").removeClass("error")):(t.parent().find("span.error").remove(),t.parent().find(".form-control").removeClass("error"))}function addPaymentFormError(t,e){t.parent().find("span.error").remove(),t.parent().find(".form-control").addClass("error"),t.hasClass("form-phone-control")?t.parent().parent().append('&lt;span class="error"&gt;'+e+"&lt;/span&gt;"):t.parent().append('&lt;span class="error"&gt;'+e+"&lt;/span&gt;")}function showOrderPaymentButtons(){$(".payment-final-buttons-1").show()}function hideOrderPaymentButtons(){$(".payment-final-buttons-1").hide()}function completePaymentStep(step){if(void 0===step&amp;&amp;(step=1),showBaseLoader(),isFunction("completeBeforePaymentStep")&amp;&amp;completeBeforePaymentStep(step),1==step){var data=[{name:"payment_step",value:step}],address_info=$("*[data-payment-box-form='address-info']").serializeArray(),shipping_info=$("*[data-payment-box-form='shipping-info']").serializeArray(),shipping_times=$("*[data-payment-box-form='shipping-times']").serializeArray(),order_info=$("*[data-payment-box-form='order-info']").serializeArray();if(data=(data=(data=(data=data.concat(address_info)).concat(shipping_info)).concat(shipping_times)).concat(order_info),$("*[data-payment-box-form='extra-info']").length&gt;0){var extra_info=$("*[data-payment-box-form='extra-info']").serializeArray();data=data.concat(extra_info)}var file_exists=!1,files=[];if($("*[data-payment-box-form='shipping-template'] #orderShipmentfile").length&gt;0){var input_file=$("*[data-payment-box-form='shipping-template'] #orderShipmentfile")[0].files[0];void 0!==input_file&amp;&amp;(file_exists=!0,files.push({name:"shipment_file",value:input_file}))}if($("*[data-payment-box-form='shipping-template'] #orderInvoicefile").length&gt;0){var input_file=$("*[data-payment-box-form='shipping-template'] #orderInvoicefile")[0].files[0];void 0!==input_file&amp;&amp;(file_exists=!0,files.push({name:"invoice_file",value:input_file}))}if(file_exists){for(var fdata=new FormData,i=0;i&lt;data.length;i++)fdata.append(data[i].name,data[i].value);for(var i=0;i&lt;files.length;i++)fdata.append(files[i].name,files[i].value);data=fdata}ajaxFormGate("POST","Payment","complete",data,!1,function(t){if(1==step){if("success"==t.status)showBaseLoader(),window.location=t.redirect;else if("empty_fields"==t.status){var e="",a=0,i="";for(var n in t.fields){var r=t.fields[n];r.status?(0==a&amp;&amp;(e=n),i=i+""+r.message+". ",addPaymentFormError($("*[data-payment-input='"+n+"']").find(".form-control"),r.message),a++):removePaymentFormError($("*[data-payment-input='"+n+"']").find(".form-control"))}var o=0;$("header.mobile").length&gt;0&amp;&amp;"none"!=$("header.mobile").css("display")&amp;&amp;(o=$("header.mobile").height()),$("html, body").animate({scrollTop:$("*[data-payment-input='"+e+"']").offset().top-o}),isFunction("showInputAlert")&amp;&amp;showInputAlert({title:LANG_HELPER.error,text:i||LANG_HELPER.errorMsg,status:"error",buttonTitle:LANG_HELPER.ok})}else{var s=!1;void 0!==t.cart_changed&amp;&amp;t.cart_changed&amp;&amp;(s=!0),s?(showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonList:{cart:{text:LANG_HELPER.goCart,value:"cart",visible:!0,className:"btn-success btn-theme-4",closeModal:!1}}},function(t){window.location=SITE_CONFIG.cartUrl}),setTimeout(function(){window.location=SITE_CONFIG.cartUrl},1e4)):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})}}},!0)}else if(2==step){var paymentId,func="paymentContentComplete"+$('*[data-payment-box-form="payment-info"]').data("active-payment-method").toString();isFunction(func)?eval(func+"()"):(hideBaseLoader(),showAlert({title:LANG_HELPER.error,text:LANG_HELPER.errorMsg,status:"error",buttonTitle:LANG_HELPER.ok}))}return!1}function changePaymentMethod(paymentId){if(showOrderPaymentButtons(),$('*[data-payment-box-form="payment-info"]').data("active-payment-method",paymentId),"1"==$('*[data-payment-method-content="'+paymentId.toString()+'"]').data("payment-method-initialize")){fetchPaymentCartSummary(2);var func="paymentContentMethod"+paymentId.toString();isFunction(func)&amp;&amp;eval(func+"()")}else fetchPaymentMethods();var temp=0;$("header.mobile").length&gt;0&amp;&amp;"none"!=$("header.mobile").css("display")&amp;&amp;(temp=$("header.mobile").height()),$("html, body").animate({scrollTop:$(".p-g-mod-t-32").offset().top-temp})}var creditCardInstallmentsBin=[];function creditCardInstallments(t,e){var a="",i=$(a="FastPay"==t?".fastpay-payment-form":"Dealer"==t?".user-account-balance-deposit-step-2":".payment-method-form-"+e).find("input[name=card_number]").val();if(6===(i=(i=i.replace(" ","").replace(" ","").replace(" ","").replace(" ","")).substring(0,6)).length&amp;&amp;(void 0===creditCardInstallmentsBin[e]||creditCardInstallmentsBin[e]!==i)){creditCardInstallmentsBin[e]=i;var n=$(a).find("input[name=payment_method]").val(),r=[{name:"bin",value:i},{name:"payment_method",value:n}];if("Dealer"==t){var o=$(a).serializeArray();r=r.concat(o)}else if("FastPay"==t){var s=$(a).serializeArray();r=r.concat(s)}ajaxFormGate("POST",t,"ccInstallments",r,!1,function(t){$(a).find(".cc-installments").addClass("d-none"),$(a).find(".cc-installments .methods").html(" "),"success"==t.status&amp;&amp;($(a).find(".cc-installments").removeClass("d-none"),t.data.installments.forEach(function(t,i){var n="";n=0==i?n+'&lt;div class="method cc-installment-'+i+' active" onclick="changeCreditCardInstallment('+e+", "+i+')"&gt;':n+'&lt;div class="method cc-installment-'+i+'" onclick="changeCreditCardInstallment('+e+", "+i+')"&gt;',n+='&lt;div class="checkbox"&gt;',n+='&lt;div class="form-check form-check-inline"&gt;',n=0==i?n+'&lt;input class="form-check-input" type="radio" name="card_installment" value="'+t.installment+'" checked /&gt;':n+'&lt;input class="form-check-input" type="radio" name="card_installment" value="'+t.installment+'" /&gt;',n+="&lt;/div&gt;",n+="&lt;/div&gt;",n=n+'&lt;div class="name"&gt;&lt;div class="info"&gt;'+t.label+"&lt;/div&gt;&lt;/div&gt;",0==i?n+='&lt;div class="price-1"&gt;-&lt;/div&gt;':n=n+'&lt;div class="price-1"&gt;'+t.monthly_price_label+"&lt;/div&gt;",n=n+'&lt;div class="price-2"&gt;'+t.total_price_label+"&lt;/div&gt;",n+="&lt;/div&gt;",$(a).find(".cc-installments .methods").append(n)}))},!1)}}function changeCreditCardInstallment(t,e){var a=$(".credit-card-form-"+t);a.find(".cc-installments .methods .method").removeClass("active"),a.find(".cc-installments .methods .cc-installment-"+e).addClass("active"),a.find(".cc-installments .methods .cc-installment-"+e).find("input").prop("checked",!0),a.find(".cc-installments .methods .cc-installment-"+e).find("input").attr("checked",!0)}function completePaymentSuccess(t){showBaseLoader(),window.location=t.redirect}function printById(t,e){var a=document.getElementById(t).innerHTML,i=window.open("","Print","height=600,width=800");return i.document.write("&lt;html&gt;&lt;head&gt;&lt;title&gt;"+e+"&lt;/title&gt;"),i.document.write("&lt;/head&gt;&lt;body &gt;"),i.document.write(a),i.document.write("&lt;/body&gt;&lt;/html&gt;"),i.document.close(),i.focus(),i.print(),i.close(),!0}function createOwlCarousel(t,e){if(isFunction("owlCarouselData"))var a=owlCarouselData(e);else var a={loop:!1,nav:!0,responsiveClass:!0,dots:!0,autoplay:!0,margin:20,autoplayTimeout:1e4,autoplayHoverPause:!0,lazyLoad:!0,animateOut:"fadeOut",responsive:e};var i=$("."+t);i.on("initialized.owl.carousel",function(e){e.item.count&gt;e.page.size&amp;&amp;$("."+t+"-next").addClass("active")}),i.owlCarousel(a),$("."+t+"-prev button").click(function(){i.trigger("prev.owl.carousel")}),$("."+t+"-next button").click(function(){i.trigger("next.owl.carousel")}),i.on("changed.owl.carousel",function(e){var a=e.item.count,i=e.page.size,n=e.item.index;0==a-(i+n)?$("."+t+"-next").removeClass("active"):$("."+t+"-next").addClass("active"),0==n?$("."+t+"-prev").removeClass("active"):$("."+t+"-prev").addClass("active"),baseLazyLoad()})}function shipmentDesiCalculation(t){return ajaxFormGate("POST","Cart","shipmentDesiCalculation",t,!0,function(t){"success"==t.status?$("*[data-shipment-calculation-desi]").html(t.desi):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})}),!1}function shipmentPriceCalculation(t){return ajaxFormGate("POST","Cart","shipmentPriceCalculation",t,!0,function(t){"success"==t.status?($("*[data-shipment-calculation-min-price]").html(t.price),$("*[data-shipment-calculation-firms]").html(t.firms)):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})}),!1}function smartProductSearchForm(){if($("form[data-smart-product-search]").length&gt;0){var t=parseInt($("form[data-smart-product-search]").data("items"));(isNaN(t)||void 0===t||""==t||"undefined"==t)&amp;&amp;(t=10),t&lt;=0&amp;&amp;(t=10),t&gt;50&amp;&amp;(t=50);var e=$("form[data-smart-product-search]").data("choose-action");(void 0===e||""==e||"undefined"==e)&amp;&amp;(e="default");var a=$("form[data-smart-product-search]").data("product-code");(void 0===a||""==a||"undefined"==a)&amp;&amp;(a=!1),$("form[data-smart-product-search]").easyAutocomplete({url:function(e){return SITE_CONFIG.baseUrl+"/client/Visitor/search?length="+t},getValue:function(t){return a?t.code+" - "+t.name:t.name},ajaxSettings:{dataType:"json",method:"POST",data:{dataType:"json"},headers:{"Accept-Content-Token":SITE_CONFIG.token}},preparePostData:function(t){return t.phrase=$("form[data-smart-product-search] input[name=k]").val(),t},requestDelay:300,list:{maxNumberOfElements:t,onChooseEvent:function(){if("redirect"==e){var t=$("form[data-smart-product-search]").getSelectedItemData().link;window.location=t}else{var a=$("form[data-smart-product-search]").getSelectedItemData().name;$("form[data-smart-product-search] input[type=text]").val(a),$("form[data-smart-product-search]").submit()}}}})}if($("form[data-smart-product-search-image]").length&gt;0){var t=parseInt($("form[data-smart-product-search-image]").data("items"));(isNaN(t)||void 0===t||""==t||"undefined"==t)&amp;&amp;(t=10),t&lt;=0&amp;&amp;(t=10),t&gt;50&amp;&amp;(t=50);var e=$("form[data-smart-product-search-image]").data("choose-action");(void 0===e||""==e||"undefined"==e)&amp;&amp;(e="default");var a=$("form[data-smart-product-search-image]").data("product-code");(void 0===a||""==a||"undefined"==a)&amp;&amp;(a=!1),$("form[data-smart-product-search-image]").easyAutocomplete({url:function(e){return SITE_CONFIG.baseUrl+"/client/Visitor/search?length="+t},getValue:function(t){return a?t.code+" - "+t.name:t.name},ajaxSettings:{dataType:"json",method:"POST",data:{dataType:"json"},headers:{"Accept-Content-Token":SITE_CONFIG.token}},preparePostData:function(t){return t.phrase=$("form[data-smart-product-search-image] input[name=k]").val(),t},requestDelay:300,list:{maxNumberOfElements:t,onChooseEvent:function(){if("redirect"==e){var t=$("form[data-smart-product-search-image]").getSelectedItemData().link;window.location=t}else{var a=$("form[data-smart-product-search-image]").getSelectedItemData().name;$("form[data-smart-product-search-image] input[type=text]").val(a),$("form[data-smart-product-search-image]").submit()}}},template:{type:"custom",method:function(t,e){return"&lt;div class='spsi-item'&gt;&lt;img src='"+e.image+"' /&gt; "+t+"&lt;/div&gt;"}}})}}function smartMobileProductSearchForm(){if($("form[data-smart-mobile-product-search]").length&gt;0){var t=$("form[data-smart-mobile-product-search]").data("choose-action");(void 0===t||""==t||"undefined"==t)&amp;&amp;(t="default"),$("form[data-smart-mobile-product-search]").easyAutocomplete({url:function(t){return SITE_CONFIG.baseUrl+"/client/Visitor/search"},getValue:function(t){return t.name},ajaxSettings:{dataType:"json",method:"POST",data:{dataType:"json"},headers:{"Accept-Content-Token":SITE_CONFIG.token}},preparePostData:function(t){return t.phrase=$("form[data-smart-mobile-product-search] input[name=k]").val(),t},requestDelay:300,list:{maxNumberOfElements:10,onChooseEvent:function(){if("redirect"==t){var e=$("form[data-smart-mobile-product-search]").getSelectedItemData().link;window.location=e}else{var a=$("form[data-smart-mobile-product-search]").getSelectedItemData().name;$("form[data-smart-mobile-product-search] input[type=text]").val(a),$("form[data-smart-mobile-product-search]").submit()}}}})}if($("form[data-smart-mobile-product-search-image]").length&gt;0){var t=$("form[data-smart-mobile-product-search-image]").data("choose-action");(void 0===t||""==t||"undefined"==t)&amp;&amp;(t="default"),$("form[data-smart-mobile-product-search-image]").easyAutocomplete({url:function(t){return SITE_CONFIG.baseUrl+"/client/Visitor/search"},getValue:function(t){return t.name},ajaxSettings:{dataType:"json",method:"POST",data:{dataType:"json"},headers:{"Accept-Content-Token":SITE_CONFIG.token}},preparePostData:function(t){return t.phrase=$("form[data-smart-mobile-product-search-image] input[name=k]").val(),t},requestDelay:300,list:{maxNumberOfElements:10,onChooseEvent:function(){if("redirect"==t){var e=$("form[data-smart-mobile-product-search-image]").getSelectedItemData().link;window.location=e}else{var a=$("form[data-smart-mobile-product-search-image]").getSelectedItemData().name;$("form[data-smart-mobile-product-search-image] input[type=text]").val(a),$("form[data-smart-mobile-product-search-image]").submit()}}},template:{type:"custom",method:function(t,e){return"&lt;div class='spsi-item'&gt;&lt;img src='"+e.image+"' /&gt; "+t+"&lt;/div&gt;"}}})}}var advancedProductSearchForm_run=!1;function advancedProductSearchForm(){var t=$("form[data-advanced-product-search]");if(0==t.length||advancedProductSearchForm_run)return!1;advancedProductSearchForm_run=!0,t.on("focus",":input",function(){$(this).attr("autocomplete","off")});var e=50,a=15,i=parseInt(t.data("products"));isNaN(i)||(e=i);var n=parseInt(t.data("categories"));isNaN(n)||(a=n);var r=1;$(".advanced-product-search").length&gt;0&amp;&amp;(r=0);var o="",s=function(){var i=t.find("input").val().trim();if(i.length&lt;=0&amp;&amp;i.length&gt;=2||i==o)return!1;o=i;var n=[{name:"keyword",value:i},{name:"max_products",value:e},{name:"max_categories",value:a},{name:"template",value:r},];ajaxFormGate("POST","Visitor","advancedSearch",n,!1,function(e){"success"==e.status&amp;&amp;advancedProductSearchAction(e,t)},!1)};t.find("input").keypress(function(){setTimeout(s,800)}),t.find("input").focus(function(){$(".advanced-product-search .aps-results .aps-content .items").length&gt;0&amp;&amp;$(".advanced-product-search").css("display","block")}),t.find("input").click(function(){$(".advanced-product-search .aps-results .aps-content .items").length&gt;0&amp;&amp;$(".advanced-product-search").css("display","block")}),$(window).scroll(function(){$(".advanced-product-search").css("display","none")})}var advancedProductSearchAction_result=[];function advancedProductSearchAction(t,e){if(advancedProductSearchAction_result=t,0==t.categories.length)return $(".advanced-product-search").length&gt;0&amp;&amp;($(".advanced-product-search .aps-results").html(" "),$(".advanced-product-search").css("display","none")),!1;0==$(".advanced-product-search").length&amp;&amp;$("body").append(t.template);var a=$(".advanced-product-search"),i=a.find(".aps-template"),n=a.find(".aps-results");n.html(i.html()),n.find("*[data-category-list]").html(" "),n.find("*[data-content]").find("*[data-list]").html(" ");var r=e.offset().top,o=e.outerHeight();o&lt;=3&amp;&amp;(o=e.find("input").outerHeight()+2),r+=o;var s=e.offset().left,d=e.width(),l=s-(a.width()-d)/2;a.css({display:"block",top:r.toString()+"px",left:l.toString()+"px"});var c=i.find("*[data-category-list]").find("*[data-item]").prop("outerHTML"),u="",m=0;for(let f of t.categories)u=(u=c).replace("{url}",f.url).replace("{index}",m).replace("{id}",f.id).replace("{name}",f.name).replace("{path}",f.path),n.find("*[data-category-list]").append(u),m++;var p=function(t){var e=advancedProductSearchAction_result.categories;if(t&gt;e.length)return!1;var a=e[t];n.find("*[data-content]").find("*[data-list]").html(" "),n.find("*[data-content]").find("*[data-category-name]").html(a.name),n.find("*[data-content]").find("*[data-category-path]").html(a.path);var r=i.find("*[data-content]").find("*[data-list]").find("*[data-item]").prop("outerHTML"),o="";for(let s of a.products)o=(o=r).replace("{url}",s.url).replace("{id}",s.id).replace("{name}",s.name).replace("{url}",s.url).replace("{price}",s.price).replace("{list_price}",s.list_price).replace("{image}",s.image).replace("{category_name}",a.name).replace("{category_path}",a.path),s.discount_rate&lt;=0&amp;&amp;(o=o.replace("list-price","list-price d-none")),n.find("*[data-content]").find("*[data-list]").append(o)};p(0),n.find("*[data-category-list]").find("*[data-item]").hover(function(){p($(this).data("index"))})}function fetchCartAjax(t="data-cart-products",e="data-cart-summary"){return ajaxFormGate("POST","Cart","listSummary",[],!1,function(t){hideBaseLoader(),"success"==t.status&amp;&amp;($("*[data-cart-products]").html(t.products),$("*[data-cart-summary]").html(t.summary))},!1),!1}function fetchAttributeValues(t,e){return ajaxFormGate("POST","Visitor","attributeValues",[{name:"attribute_id",value:t}],!1,function(t){"success"==t.status&amp;&amp;($(e).html(" "),t.values.forEach(function(t){$(e).append('&lt;option value="'+t.ID+'"&gt;'+t.adi+"&lt;/option&gt;")}))},!0),!1}function changeCustomCookie(t,e){return ajaxFormGate("POST","Visitor","changeCustomCookie",t,!1,e,!0),!1}function productPieceListDecrementControl(t){if(0==t){var e=0;return $('#product-piece-list tr[data-piece="1"]').each(function(){var t=parseInt($(this).find('input[data-type="quantity"]').val());isNaN(t)&amp;&amp;(t=0),t&gt;0&amp;&amp;(e+=1)}),e&gt;1}return!0}function productPieceListPriceCalculate(t,e,a){$(a+" input[data-type=quantity]").on("change",function(i){var n=$(a+" form").serializeArray();n[n.length]={name:"productId",value:t},ajaxFormGate("POST","Category","calculateProductListPrice",n,!1,function(t){"success"==t.status&amp;&amp;($(e+" .sale-price").html(t.price),$(a+" .sale-price").html(t.price),t.list_price.length&gt;0&amp;&amp;($(e+" .list-price").html(t.list_price),$(a+" .list-price").html(t.list_price)),$(e+" .sale-eft-price").html(t.eft_price),t.installments.length&gt;0&amp;&amp;($(".product-page-installments").addClass("d-none"),$(t.installments).insertAfter(".product-page-installments"),$(".product-page-installments.d-none").remove()))},!1)})}function browserAlert(t){var e=$("title").text();$(window).blur(function(){$("title").text(t)}),$(window).focus(function(){$("title").text(e)})}function selectCompatibilityFilter(t,e,a){if(1&gt;parseInt(a)){var i=$(t).serializeArray(),n=$(t).data("success-action");if((void 0===n||""==n||"undefined"==n)&amp;&amp;(n="default"),"default"==n){for(var r=[],o=0,s=0;s&lt;i.length;s++){if(-1!==i[s].name.indexOf("compatibility_id")){o=i[s].value;continue}if(-1!==i[s].name.indexOf("specs")){if(0==i[s].value.trim().length)break;r.push(i[s].value)}}if(0==o||0==r.length)return!1;var d=r.join("|");if(0==d.trim().length)return!1;d=o.toString()+"|"+d;var l=$(t).attr("action"),c=-1!==l.indexOf("?")?"&amp;":"?";l=l+c+"cpv="+d,window.location=l}else executeFunctionByName(n,[i])}else{var i=$(t).serializeArray();i[i.length]={name:"current_seq",value:e},i[i.length]={name:"next_seq",value:a},ajaxFormGate("POST","Visitor","compatibilityValues",i,!1,function(e){"success"==e.status&amp;&amp;$(t).find("*[data-filter-seq]").each(function(){var a=$(this),i=a.data("filter-seq");if(parseInt(i)==parseInt(e.uyumluluk.sira)){a.removeClass("d-none");var n="";e.uyumluluk.tamamlandi?selectCompatibilityFilter(t,e.uyumluluk.sira,-1):(e.uyumluluk.ozellik.toplam&gt;1&amp;&amp;(n=n+'&lt;option value=""&gt;'+LANG_HELPER.select+"&lt;/option&gt;"),e.uyumluluk.ozellik.liste.forEach(t=&gt;{n=n+'&lt;option value="'+t.adi_alt+'"&gt;'+t.adi+"&lt;/option&gt;"}),a.find("select").html(n),1==e.uyumluluk.ozellik.toplam&amp;&amp;selectCompatibilityFilter(t,e.uyumluluk.sira,e.uyumluluk.sonraki_sira))}else parseInt(i)&gt;=parseInt(e.uyumluluk.sira)&amp;&amp;(a.addClass("d-none"),a.find("select").html(" "))})},!1)}}function orderPaymentCompleteResponse(t,e){if("success"==e.status)"redirect"==e.return_type?(showBaseLoader(),window.location=e.redirect):"html"==e.return_type?(showBaseLoader(),$('*[data-payment-final-form="'+t.toString()+'"]').html(e.html),$('*[data-payment-final-form="'+t.toString()+'"] form').submit()):"threed_verification"==e.return_type&amp;&amp;showNativeModal("paymentThreedVerification",[{name:"payment_id",value:t}],function(t){$("#threed-verifiication-content").html(e.html)});else if("redirect"==e.status)showBaseLoader(),window.location=e.redirect;else if("verification"==e.status)showNativeModal(e.type,[{name:"payment_id",value:t}]);else{var a=!1;void 0!==e.cart_changed&amp;&amp;e.cart_changed&amp;&amp;(a=!0),a?(showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonList:{cart:{text:LANG_HELPER.goCart,value:"cart",visible:!0,className:"btn-success btn-theme-4",closeModal:!1}}},function(t){window.location=SITE_CONFIG.cartUrl}),setTimeout(function(){window.location=SITE_CONFIG.cartUrl},1e4)):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})}}function emailNewsletter(t,e,a){if(void 0===e&amp;&amp;(e="1"),void 0===a&amp;&amp;(a="-1"),1==parseInt(e)){var i="email-newsletter-form-"+Math.floor(1e4*Math.random());return $(t).addClass(i),showNativeModal("kvkkRuleApprove",[{name:"action",value:"emailNewsletter"},{name:"param1",value:"$('."+i+"')"},{name:"param2",value:"'0'"},{name:"param3",value:"'"+a+"'"},]),!1}var n=$(t).serializeArray();return n[n.length]={name:"group_id",value:a},ajaxFormGate("POST","Visitor","emailNewsletter",n,!1,function(e){"success"==e.status?($(t).find("input").val(""),showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,buttonTitle:LANG_HELPER.ok})):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})})}function smsNewsletter(t,e,a){if(void 0===e&amp;&amp;(e="1"),void 0===a&amp;&amp;(a="-1"),1==parseInt(e)){var i="sms-newsletter-form-"+Math.floor(1e4*Math.random());return $(t).addClass(i),showNativeModal("kvkkRuleApprove",[{name:"action",value:"smsNewsletter"},{name:"param1",value:"$('."+i+"')"},{name:"param2",value:"'0'"},{name:"param3",value:"'"+a+"'"},]),!1}var n=$(t).serializeArray();return n[n.length]={name:"group_id",value:a},ajaxFormGate("POST","Visitor","smsNewsletter",n,!1,function(e){"success"==e.status?($(t).find("input").val(""),showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,buttonTitle:LANG_HELPER.ok})):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})})}function visitorProductRecommend(t){showNativeModal("visitorProductRecommend",[{name:"product_id",value:t}])}function visitorProductRecommendAction(t,e){return void 0===e&amp;&amp;(e=!1),ajaxFormGate("POST","Visitor","productRecommend",t,!0,function(t){"success"==t.status?(e&amp;&amp;hideNativeModal(e),showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,buttonTitle:LANG_HELPER.ok})):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})})}function userProductComment(t){showNativeModal("userProductComment",[{name:"product_id",value:t}])}function userProductPriceAlert(t,e=!1){if(!SITE_CONFIG.userIsLogin)return showNativeModal("loginPage");e||(e='div[data-product-id="'+t+'"] .variant-box');var a=[{name:"product_id",value:t}];if(e&amp;&amp;(e=$(e)).length&gt;0)for(var i=0;i&lt;3;i++){var n=e.find("select[data-variant='"+i.toString()+"']");if(0!=n.length){if((n=n.val())&amp;&amp;n.length&gt;0){a.push({name:"variant_"+(i+1).toString(),value:n});continue}var r=e.find("select[data-variant='"+i.toString()+"']").data("variant-name");return showAlert({title:LANG_HELPER.error,text:LANG_HELPER.priceAlertVariantMsg.replace("{%x%}",r),status:"error",buttonTitle:LANG_HELPER.ok}),!1}}showNativeModal("userProductPriceAlert",a),loadFormElements()}function userProductPriceAlertAction(t,e){return(void 0===e&amp;&amp;(e=!1),SITE_CONFIG.userIsLogin)?ajaxFormGate("POST","User","productPriceAlert",t,!0,function(t){"success"==t.status?(e&amp;&amp;hideNativeModal(e),showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,buttonTitle:LANG_HELPER.ok})):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok}),void 0!==t.events&amp;&amp;submitMarketingEvents(t.events)}):showNativeModal("loginPage")}function userDeleteProductPriceAlert(t,e="account"){ajaxFormGate("POST","User","deleteProductPriceAlert",[{name:"id",value:t}],!1,function(a){"success"==a.status?"modal"==e?$("*[data-user-product-alert-list='"+t.toString()+"']").remove():"account"==e&amp;&amp;($("*[data-user-product-alert-id='"+t.toString()+"']").remove(),0===$("*[data-user-product-alert-id]").length&amp;&amp;window.location.reload()):"auth"==a.status?showNativeModal("loginPage"):showAlert({title:LANG_HELPER.error,text:a.message||LANG_HELPER.errorMsg,status:a.status,buttonTitle:LANG_HELPER.ok})},!1)}function userProductQuantityAlertView(){var t=$("*[data-user-product-quantity-alert]");if(0==t.length)return!1;var e="div[data-product-id] .variant-box",a="hide";e&amp;&amp;(e=$(e)).find(".sold-out[data-variant]").length&gt;0&amp;&amp;(a="show"),"show"==a?t.removeClass("d-none"):t.addClass("d-none")}function userProductQuantityAlert(t,e=!1,a=!1){return SITE_CONFIG.userIsLogin?showNativeModal("userProductQuantityAlert",[{name:"product_id",value:t}]):showNativeModal("loginPage")}function userProductQuantityAlertCheckbox(t,e,a){if(void 0===a&amp;&amp;(a=""),!SITE_CONFIG.userIsLogin)return showNativeModal("loginPage");var i="remove";$(t).is(":checked")&amp;&amp;(i="add"),userProductQuantityAlertAction(e,a,i,!1)}function userProductQuantityAlertAction(t,e="",a="add",i=!1){return SITE_CONFIG.userIsLogin?ajaxFormGate("POST","User","productQuantityAlert",[{name:"product_id",value:t},{name:"variants",value:e},{name:"action",value:a}],!1,function(t){"success"==t.status?i&amp;&amp;showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,buttonTitle:LANG_HELPER.ok}):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok}),"add"==a&amp;&amp;void 0!==t.events&amp;&amp;submitMarketingEvents(t.events)},!1):showNativeModal("loginPage")}function preCompareList(t,e,a){void 0===e&amp;&amp;(e="add"),void 0===a&amp;&amp;(a=!1),a&amp;&amp;hideNativeModal(a),showNativeModal("preCompareList",[{name:"product_id",value:t},{name:"action",value:e}],function(t){if("success"==t.status){var e=parseInt(t.compare_list_count);isNaN(e)&amp;&amp;(e=0),0==e?$("*[data-compare-list-count]").html(""):$("*[data-compare-list-count]").html("("+e.toString()+")")}})}function compareList(t,e,a){void 0===t&amp;&amp;(t=""),void 0===e&amp;&amp;(e="show"),void 0===a&amp;&amp;(a=!1),a&amp;&amp;hideNativeModal(a),showNativeModal("compareList",[{name:"product_id",value:t},{name:"action",value:e}],function(t){if("success"==t.status){var e=parseInt(t.compare_list_count);isNaN(e)&amp;&amp;(e=0),0==e?$("*[data-compare-list-count]").html(""):$("*[data-compare-list-count]").html("("+e.toString()+")")}})}function shippingLocations(){showNativeModal("shippingLocations")}function saveShippingLocation(t,e){void 0===e&amp;&amp;(e=!1),showBaseLoader();var a=$(t).serializeArray();return ajaxFormGate("POST","Visitor","updateLocation",a,!1,function(t){"success"==t.status?(e&amp;&amp;hideNativeModal(e),t.location.length&gt;0&amp;&amp;($("*[data-shipping-location]").html(t.location),$("*[data-shipping-location-tooltip]").attr("title",t.location),$("*[data-shipping-location-tooltip]").attr("data-original-title",t.location))):"empty_country"==t.status?addShippingLocationError($("*[data-location-input='country']").find(".form-control"),t.message):"empty_city"==t.status?addShippingLocationError($("*[data-location-input='city']").find(".form-control"),t.message):"empty_district"==t.status?addShippingLocationError($("*[data-location-input='district']").find(".form-control"),t.message):"empty_neighborhood"==t.status?addShippingLocationError($("*[data-location-input='neighborhood']").find(".form-control"),t.message):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})}),!1}function addShippingLocationError(t,e){t.parent().find("span.error").remove(),t.parent().find(".form-control").addClass("error"),t.parent().append('&lt;span class="error"&gt;'+e+"&lt;/span&gt;")}function removeShippingLocationFormError(t){t.parent().find("span.error").remove(),t.parent().find(".form-control").removeClass("error")}function accordionCategoryTree(){if(0==$(".accordion-category-tree").length)return!1;var t,e=$(".accordion-category-tree").find(".parent-cat");for(t=0;t&lt;e.length;t++)e[t].addEventListener("click",function(){this.parentElement.querySelector(".sub-tree").classList.toggle("active"),this.classList.toggle("active")})}function phoneOrderRequest(t){showNativeModal("phoneOrderRequest",[{name:"product_id",value:t}])}function phoneOrderRequestAction(t,e){return void 0===e&amp;&amp;(e=!1),ajaxFormGate("POST","Visitor","phoneOrderRequest",t,!0,function(t){"success"==t.status?(e&amp;&amp;hideNativeModal(e),showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,buttonTitle:LANG_HELPER.ok})):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})})}function productSuggestion(t){showNativeModal("productSuggestion",[{name:"product_id",value:t}])}function productSuggestionAction(t,e){return void 0===e&amp;&amp;(e=!1),ajaxFormGate("POST","Visitor","productSuggestion",t,!0,function(t){"success"==t.status?(e&amp;&amp;hideNativeModal(e),showAlert({title:LANG_HELPER.success,text:t.message,status:t.status,buttonTitle:LANG_HELPER.ok})):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})})}function fastPaymentForm(t){showBaseLoader();var e=$(t).serializeArray();return ajaxFormGate("POST","FastPay","payment",e,!1,function(t){"success"==t.status?$("main .container").html(t.html):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})},!0),!1}function approveAdultContent(t,e,a){if(!$(t).find("input[name=rule]").is(":checked")){showAlert({title:e,text:a,status:"warning",buttonTitle:LANG_HELPER.ok});return}$(t).remove(),ajaxFormGate("POST","Visitor","approveAdultContent",[],!1,function(t){},!1)}function selectAdultContentAge(t,e){e=parseInt(e),!isNaN(e)&amp;&amp;!(e&lt;=0)&amp;&amp;($(t).remove(),ajaxFormGate("POST","Visitor","approveAdultContent",[],!1,function(t){},!1))}function showCustomThemeFile(t,e,a=!0,i=!0){void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=!1),ajaxFormGate("POST","Visitor","customThemeFile",t,!1,function(t){"success"==t.status?e&amp;&amp;e(t):a&amp;&amp;showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})},i)}function variantImageSlider(){if(0==$('*[data-variant-slide="active"]').length||0==$('*[data-variant-slide="active"]').find(".carousel-outer").length)return!1;$('*[data-variant-slide="active"]').on("slide.bs.carousel",function(t){if($(t.relatedTarget).hasClass("hide")){if("left"==t.direction){var e=-1;$(this).find(".carousel-outer .carousel-item").each(function(a,i){a&gt;=t.to&amp;&amp;-1==e&amp;&amp;!$(this).hasClass("hide")&amp;&amp;(e=a)}),e&gt;-1?$(this).carousel(e):$(this).carousel(0)}else if("right"==t.direction){var e=-1;if($(this).find(".carousel-outer .carousel-item").each(function(a,i){a&lt;=t.to&amp;&amp;!$(this).hasClass("hide")&amp;&amp;(e=a)}),e&gt;-1)$(this).carousel(e);else{var a=$(this).find(".carousel-outer .carousel-item").not(".hide").last(),i=$(this).find(".carousel-outer .carousel-item").index(a);$(this).carousel(i)}}return!1}return!0})}function changeVariantImageSlider(t,e,a){if(0==$('*[data-variant-slide="active"]').length)return!1;var i=$(t.replace(".variant-box","")+' *[data-variant-slide="active"]'),n="carousel",r=".carousel-outer",o=".carousel-item",s=".carousel-indicators";$('*[data-variant-slide-type="row"]').length&gt;0&amp;&amp;(n="row",r=".variant-row-outer",o=".variant-row-item",s=".variant-row-indicators");var d=$(t);if(i.find(r).find(o+'[data-variant-index="'+a+'"][data-variant-value="'+e+'"]').length&gt;0)i.find(r+" "+o).addClass("hide").removeClass("active"),i.find(s+" li").addClass("hide").removeClass("active"),i.find(r).find(o+'[data-variant-index="'+a+'"][data-variant-value="'+e+'"]').removeClass("hide"),i.find(s).find('li[data-variant-index="'+a+'"][data-variant-value="'+e+'"]').removeClass("hide"),i.find(r).find(o).not(".hide").first().addClass("active"),i.find(s).find("li").not(".hide").first().addClass("active");else{var l=!1;if(a&gt;1)for(var c=0;c&lt;a-1;c++){var u=d.find("select[data-variant='"+c.toString()+"']");if(0!=u.length){var m=u.val();if(m.length&gt;0){if(i.find(r).find(o+'[data-variant-index="'+(c+1)+'"][data-variant-value="'+m+'"]').first().hasClass("hide")){if(i.find(r).find(o+'[data-variant-index="'+(c+1)+'"][data-variant-value="'+m+'"]').length&gt;0){i.find(r+" "+o).addClass("hide").removeClass("active"),i.find(s+" li").addClass("hide").removeClass("active"),i.find(r).find(o+'[data-variant-index="'+(c+1)+'"][data-variant-value="'+m+'"]').removeClass("hide"),i.find(s).find('li[data-variant-index="'+(c+1)+'"][data-variant-value="'+m+'"]').removeClass("hide"),i.find(r).find(o).not(".hide").first().addClass("active"),i.find(s).find("li").not(".hide").first().addClass("active"),l=!0;break}}else{l=!0;break}}}}l||i.find(r).find(o).length===i.find(r).find(o+'[data-variant-index=""][data-variant-value=""]').length||(i.find(r+" "+o).addClass("hide").removeClass("active"),i.find(s+" li").addClass("hide").removeClass("active"),i.find(r).find(o+'[data-variant-index=""][data-variant-value=""]').removeClass("hide"),i.find(s).find('li[data-variant-index=""][data-variant-value=""]').removeClass("hide"),i.find(r).find(o).not(".hide").first().addClass("active"),i.find(s).find("li").not(".hide").first().addClass("active"))}}function productShipmentPrices(t,e,a){$(a).html(" ");var i=parseFloat($(e).val());if(isNaN(i)||i&lt;=0)return!1;var n=[{name:"id",value:t},{name:"quantity",value:i}];return ajaxFormGate("POST","Cart","productShipmentPrices",n,!1,function(t){"success"==t.status&amp;&amp;"order"==t.type&amp;&amp;$(a).html(t.html)},!1),!1}function newsletterForm(t){showBaseLoader();var e=$(t).serializeArray();return ajaxFormGate("POST","Visitor","newsletterForm",e,!1),!1}function loginUser2FactorAction(t,e){return void 0===e&amp;&amp;(e=!1),ajaxFormGate("POST","User","login2fa",t,!0,function(t){void 0!==t.events&amp;&amp;submitMarketingEvents(t.events),"success"==t.status?(showBaseLoader(),setTimeout(function(){window.location.reload()},1e3)):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok}),void 0!==t.events&amp;&amp;submitMarketingEvents(t.events)})}function copyElement(t,e=!1){var a=document.getElementById(t);navigator.clipboard.writeText(a.innerHTML),e&amp;&amp;showAlert({title:LANG_HELPER.copySuccess,text:" ",status:"success",buttonTitle:LANG_HELPER.ok})}function usePromotion(t){return ajaxFormGate("POST","Cart","usePromotion",[{name:"id",value:t}],!1,function(t){"success"==t.status?(showBaseLoader(),window.location.reload()):showAlert({title:LANG_HELPER.error,text:t.message||LANG_HELPER.errorMsg,status:t.status,buttonTitle:LANG_HELPER.ok})}),!1}function changeLanguage(t,e){return ajaxFormGate("POST","Visitor","changeLanguage",[{name:"code",value:t}],!1,function(t){window.location=e},!1),!1}function changeCurrency(t){return ajaxFormGate("POST","Visitor","changeCurrency",[{name:"code",value:t}],!1,function(t){window.location.reload()},!1),!1}function changeLocalization(t,e,a=!1){return ajaxFormGate("POST","Visitor","changeLocalization",[{name:"language",value:t},{name:"currency",value:e},],!1,function(t){a?window.location=a:window.location.reload()},!1),!1}function commentBlog(t,e){var a=$(t).serializeArray();return a[a.length]={name:"id",value:e},ajaxFormGate("POST","User","commentBlog",a,!1,function(e){"success"==e.status?(showAlert({title:LANG_HELPER.success,text:e.message,status:e.status,buttonTitle:LANG_HELPER.ok}),$(t)[0].reset()):showAlert({title:LANG_HELPER.error,text:e.message||LANG_HELPER.errorMsg,status:e.status,buttonTitle:LANG_HELPER.ok})}),!1}function answerBlogComment(t){var e="&lt;div class='blog-comment-form'&gt;"+$(".blog-comment-form.main-answer").html()+"&lt;/div&gt;";$(".blog-comment-list .comment-box[data-comment-id="+t+"] .answer-form").toggleClass("d-none").html(e),$(".blog-comment-list .comment-box[data-comment-id="+t+"] .answer-form").find("input[name=parent_id]").val(t),$(".blog-comment-list .comment-box[data-comment-id="+t+"] .answer-form").find("textarea").val(" "),$(".blog-comment-list .comment-box[data-comment-id="+t+"] .answer-form .title").addClass("d-none")}function loadPatternGroupCol(t,e,a){!$("div[data-pattern-key="+t+"]").data("pattern-loaded")&amp;&amp;($("div[data-pattern-key="+t+"]").data("pattern-loaded",!0),$("div[data-pattern-key="+t+"]").html('&lt;div class="p-g-b-c-loader"&gt;&lt;div class="spinner-border pgbcl-spin" role="status"&gt;&lt;span class="sr-only"&gt; &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;'),ajaxFormGate("POST","Visitor","loadCol",[{name:"page_key",value:SITE_CONFIG.pageKey},{name:"group_id",value:e},{name:"col_id",value:a},],!1,function(e){"success"==e.status&amp;&amp;$("div[data-pattern-key="+t+"]").html(e.html)},!1))}function specialFieldMultipleFileUpload(t){SITE_CONFIG.imageupload.load?isFunction("baseImageUpload")?baseImageUpload(t):setTimeout(function(){specialFieldMultipleFileUpload(t)},100):($.getScript({url:SITE_CONFIG.imageupload.js,cache:!0},function(){baseImageUpload(t)}),SITE_CONFIG.imageupload.load=!0)}function fileUploader(t){var e,a=$(t),i=$(a).data("accept");if(!(a.find('.file[data-uploaded="1"]').length&gt;=a.data("limit"))){a.find('.file[data-uploaded="0"]').remove();var n='&lt;div class="box file d-none" data-uploaded="0"&gt;';n=n+'&lt;input type="file" class="d-none" accept="'+i+'" onchange="fileUploaderAction(this, \'upload\')" value="" onchange="" data-file-uploader&gt;',n+='&lt;img src="" alt="" /&gt;',n+='&lt;span class="btn-trash" onclick="fileUploaderAction(this, \'remove\')" &gt;&lt;i class="fa fa-trash-alt"&gt;&lt;/i&gt;&lt;/span&gt;',$(n+="&lt;/div&gt;").insertBefore(t+" .btn-upload"),$(a).find(".file").last().find("input").click()}}function fileUploaderAction(t,e="upload"){var a=$(t).closest(".file"),i=a.closest(".file-uploader").find('.file[data-uploaded="1"]').length;if("upload"==e){if(t.files&amp;&amp;t.files[0]){var n=new FileReader;a.attr("data-uploaded",1),a.removeClass("d-none"),n.onload=function(t){a.find("img").attr("src",t.target.result)},n.readAsDataURL(t.files[0]),i++}}else i--;i&gt;=a.closest(".file-uploader").data("limit")?a.closest(".file-uploader").find(".btn-upload").addClass("d-none"):a.closest(".file-uploader").find(".btn-upload").removeClass("d-none"),"remove"==e&amp;&amp;a.remove()}function cookieProcess(t,e,a){void 0===e.value&amp;&amp;(e.value=""),void 0===e.minutes&amp;&amp;(e.minutes=1);var i=[{name:"name",value:e.name},{name:"value",value:e.value},{name:"minutes",value:e.minutes},],n="getCookie";"set"==t?n="setCookie":"delete"==t&amp;&amp;(n="eraseCookie"),ajaxFormGate("POST","Visitor",n,i,!1,function(t){void 0!==a&amp;&amp;a(t.value)},!1)}function customAppEffects(t,e){try{if(0===parseInt(t.trigger_status)||"page_load"===t.trigger_type){e();return}if("time_on_page"===t.trigger_type)setTimeout(e,1e3*parseInt(t.trigger_time_on_page_value));else if("exit_intent"===t.trigger_type){let a=document.querySelector("body"),i,n=!1;a.addEventListener("mouseleave",t=&gt;{(i=t.clientY)&lt;0&amp;&amp;!n&amp;&amp;(e(),n=!0)})}else if("add_to_cart"===t.trigger_type)document.addEventListener("add_to_cart",t=&gt;{e()},{once:!0});else if("scroll"===t.trigger_type){let r=window.innerHeight||document.documentElement.clientHeight,o=parseFloat(t.trigger_scroll_value);if("percentage"===t.trigger_scroll_type&amp;&amp;o&gt;0&amp;&amp;(o=r*(o/100)),document.documentElement.scrollTop&gt;=o)e();else{var s=!1;window.addEventListener("scroll",t=&gt;{this.scrollY&gt;o&amp;&amp;!s&amp;&amp;(s=!0,e())})}}else"click_button"===t.trigger_type?$(t.trigger_click_button_label).on("click",function(){e()}):"custom_event"===t.trigger_type&amp;&amp;document.addEventListener(t.trigger_custom_event_value,t=&gt;{e()},{once:!0})}catch(d){}}function customAppScreenPosition(t){"html_element"===$(t).data("position-type")&amp;&amp;$($(t).data("position-element")).length&gt;0?("after"===$(t).data("position-element-location")?$(t).insertAfter($($(t).data("position-element"))):"before"===$(t).data("position-element-location")?$(t).insertBefore($($(t).data("position-element"))):"inside_top"===$(t).data("position-element-location")?$($(t).data("position-element")).prepend($(t)):"inside_bottom"===$(t).data("position-element-location")?$($(t).data("position-element")).append($(t)):$($(t).data("position-element")).html($(t)),$(t).css("display","flex")):"html_element"!==$(t).data("position-type")&amp;&amp;$(t).css("display","flex"),"header"==$(t).data("position-type")?$("body").prepend($(t)):"footer"==$(t).data("position-type")&amp;&amp;$("body").append($(t))}function disableAutoComplete(){let t=["country","city","district","invoice_country","invoice_city","invoice_district"],e,a,i;for(let n in t)a="select[name="+(e=t[n])+"]",i="input[name="+e+"]",$(a).length&gt;0&amp;&amp;$(a).prop("autocomplete","ecom-"+e.substring(0,3)),$(i).length&gt;0&amp;&amp;$(i).prop("autocomplete","ecom-"+e.substring(0,3))}function formEmptyFields(t,e=[]){$(t).find(".message").remove(),$(t).find(".q-form-group").removeClass("form-error");let a,i;for(let n in e)a=e[n].name,i=e[n].message,$(t).find("*[data-input='"+a+"']").addClass("form-error"),$(t).find("*[data-input='"+a+"']").append('&lt;span class="message"&gt;'+i+"&lt;/span&gt;"),$(t).find("*[data-input='"+a+"']").find(".form-control").on("change",function(){$(this).closest(".q-form-group").removeClass("form-error"),$(this).closest(".q-form-group").find(".message").remove()})}function downloadFile(t,e){var a=new XMLHttpRequest;a.open("GET",t,!0),a.responseType="blob",a.onload=function(t){var i=a.response;console.log(i.size);var n=document.createElement("a");n.href=window.URL.createObjectURL(i),n.download=e,n.click()},a.send()}function qCarousel(){$(document).on("click",'.q-carousel a[role="button"]',function(){let t=$(this).parent(".q-carousel"),e=t.data("current-image"),a=t.data("images").split(","),i=a.length;"next"===$(this).data("slide")?e+=1:e-=1,e&gt;i-1?e=0:e&lt;0&amp;&amp;(e=i-1),t.data("current-image",e);let n=a[e];t.find("img").attr("src",n)});let t=0;$(document).on("touchstart",".q-carousel",function(e){t=e.touches[0].clientX}),$(document).on("touchend",".q-carousel",function(e){let a=e.changedTouches[0].clientX;t&gt;a&amp;&amp;$(this).find('a[data-slide="next"]').click(),t&lt;a&amp;&amp;$(this).find('a[data-slide="prev"]').click()})}function submitMarketingEvents(t){if(0===t.length)return;let e=[],a,i,n,r;for(let o=0;o&lt;t.length;o++){a=t[o].platform,i=t[o].event_name,n=t[o].params,r=t[o].event_id,encryptedData=t[o].encrypted_data;try{"google"===a?"undefined"!=typeof gtag&amp;&amp;gtag("event",i,n):"facebook"===a?"undefined"!=typeof fbq&amp;&amp;(r.length&gt;2?fbq("track",i,n,{eventID:r}):fbq("track",i,n)):"tiktok"===a&amp;&amp;"undefined"!=typeof ttq&amp;&amp;(r.length&gt;2?ttq.track(i,n,{event_id:r}):ttq.track(i,n)),encryptedData.length&gt;2&amp;&amp;e.push({name:a,value:encryptedData}),"debug"===SITE_CONFIG.mode&amp;&amp;(console.log(a+" -&gt; "+i),console.log(n),r.length&gt;2&amp;&amp;console.log("event_id: "+r))}catch(s){console.log(s)}}e.length&gt;0&amp;&amp;setTimeout(function(){ajaxFormGate("POST","Visitor","conversionEvents",e,!1,function(t){},!1)},500)}</pre></body></html>