PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
dist
/
js
/
custom
/
site
"use strict";$("#itemSearch").autocomplete({delay:500,position:{my:"left top",at:"left bottom",collision:"flip"},source:function(a,b){$.ajax({url:SITE_URL+"/get-search-data",dataType:"json",type:"POST",data:{_token:token,search:$("#itemSearch").val()},success:function(a){if(1==a.status){let d=JSON.parse(a.searchData),e=[];for(var c=0;c<d.length;c++)e[c+1]=d[c];e={0:jsLang("Search History"),...e},d=Object.keys(e).map(a=>e[a]),b(d)}else b(null)}})},select:function(a,b){let c=b.item;window.location.href=SITE_URL+"/search-products?keyword="+encodeURI(c.value).replace(/%20/g,"+")},minLength:0,autoFocus:!1}).focus(function(){$(this).autocomplete("search",$(this).val())}),$(document).ready(function(){function a(a,b,c){const e=new Date;e.setTime(e.getTime()+1e3*(60*(60*(24*c))));let d="expires="+e.toUTCString();document.cookie=a+"="+b+";"+d+";path=/"}function b(a){let b=a+"=",d=document.cookie.split(";");for(let e,c=0;c<d.length;c++){for(e=d[c];" "==e.charAt(0);)e=e.substring(1);if(0==e.indexOf(b))return e.substring(b.length,e.length)}return""}$(".custom-modal-over .close-modal").each(function(){var c=$(this).attr("data-popupName"),d=$(this).attr("data-loginRequired"),e=$(this).attr("data-isLogin"),f=$(this).attr("data-popupShowAfter"),g=$(this).attr("data-popupPage");b(c)||"true"!=g||("1"==d?"true"==e&&setTimeout(()=>{$(this).closest(".custom-modal-over").show()},1e3*f):setTimeout(()=>{$(this).closest(".custom-modal-over").show()},1e3*f)),$(".custom-modal-over .close-modal").on("click",function(){$(this).closest(".custom-modal-over").hide()}),$(".custom-modal-over .close-popup-window").on("click",function(){setTimeout(()=>{$(this).closest(".custom-modal-over").hide()},5e3),a(c,!0,1)})})}),$(document).on("submit","#subscribe",function(a){a.preventDefault(),$(".send-btn").css("display","none"),$(".subscribe-loader").css("display","inline"),$(".subscribe-message").text(""),$.ajax({type:"post",url:subscribeUrl,data:new FormData(this),dataType:"JSON",contentType:!1,cache:!1,processData:!1,success:function(a){$(".subscribe-message").text(a.message),$(".subscribe-loader").css("display","none"),$(".send-btn").css("display","block")},error:function(a){$(".subscribe-message").text(a.responseJSON.errors.email[0]),$(".subscribe-loader").css("display","none"),$(".send-btn").css("display","block")}})}),$(document).ready(function(){const a=Swal.mixin({toast:!0,position:"bottom-start",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:a=>{a.addEventListener("mouseenter",Swal.stopTimer),a.addEventListener("mouseleave",Swal.resumeTimer)}});""!=sessionFail&&a.fire({icon:"error",title:sessionFail}),""!=sessionSuccess&&a.fire({icon:"success",title:sessionSuccess}),$(".menu.dropdown-enable").each(function(){0<$(this).find("button .primary-bg-color").length&&$(this).closest("li").find("a").first().addClass("active-border-bottom")})});let titles=document.querySelectorAll(".accordion__header");for(let a=0;a<titles.length;a++)titles[a].addEventListener("click",a=>{for(let b of titles)b!==a.target&&(b.classList.remove("accordion__header--active"),b.nextElementSibling.style.maxHeight=0,b.nextElementSibling.style.padding=0);a.target.classList.toggle("accordion__header--active");let b=a.target.nextElementSibling;a.target.classList.contains("accordion__header--active")?b.style.maxHeight=b.scrollHeight+"px":(b.style.maxHeight=0,b.style.padding=0)});
[-] checkout.js
[edit]
[-] be-seller.min.js
[edit]
[-] res-filter.min.js
[edit]
[-] sign_up.js
[edit]
[-] wishlist.min.js
[edit]
[-] filter.min.js
[edit]
[-] home.js
[edit]
[-] notification-popup.js
[edit]
[-] order-track.js
[edit]
[-] notification-popup.min.js
[edit]
[-] wishlist.js
[edit]
[-] description-tabs.js
[edit]
[-] vendor-profile.js
[edit]
[-] seller-registration.min.js
[edit]
[-] formatting.min.js
[edit]
[-] product-details.js
[edit]
[+]
..
[-] cart.min.js
[edit]
[-] be-seller.js
[edit]
[-] animation.min.js
[edit]
[-] product-view.min.js
[edit]
[-] address.js
[edit]
[-] lang.js
[edit]
[-] alpine.js
[edit]
[-] product-details.min.js
[edit]
[-] common.min.js
[edit]
[-] res-filter.js
[edit]
[-] order-track.min.js
[edit]
[-] common.js
[edit]
[-] drawer.js
[edit]
[-] seller.min.js
[edit]
[-] settings.js
[edit]
[-] checkout.min.js
[edit]
[-] coupon.js
[edit]
[-] login.js
[edit]
[-] seller.js
[edit]
[-] user_download.js
[edit]
[-] site.min.js
[edit]
[-] lang.min.js
[edit]
[-] seller-registration.js
[edit]
[-] password-validation.js
[edit]
[-] drawer.min.js
[edit]
[-] login.min.js
[edit]
[-] delivery-address.min.js
[edit]
[-] home.min.js
[edit]
[-] compare.js
[edit]
[-] description-tabs.min.js
[edit]
[-] all-categories.min.js
[edit]
[-] flatpickr.min.js
[edit]
[-] filter.js
[edit]
[-] cart.js
[edit]
[-] site.js
[edit]
[-] compare.min.js
[edit]
[-] animation.js
[edit]
[-] user_download.min.js
[edit]
[-] settings.min.js
[edit]
[-] vendor-profile.min.js
[edit]
[-] product-view.js
[edit]
[-] password-validation.min.js
[edit]
[-] address.min.js
[edit]
[-] formatting.js
[edit]
[-] coupon.min.js
[edit]
[-] delivery-address.js
[edit]
[-] sign_up.min.js
[edit]
[-] all-categories.js
[edit]