PageSourceSearch

https://www.tana.al/public/index.php?url=js-css/js-common&f=myapp-min.js&min=0&sid=1743598167

js tana.al collected 2026-10-02 01:12:52 UTC 5,763 bytes, 1 lines download raw bytes

1/* */var isAjaxRunning=!1,cart={add:function(e,t,a){a=void 0!==a;var r="selprod_id="+e+"&quantity="+(void 0!==t?t:1);0<$(".list-addons--js").length&&"undefined"!=typeof mainSelprodId&&mainSelprodId==e&&$(".list-addons--js").find("input").each(function(e){$(this).val()>0&&!$(this).closest(".addon--js").hasClass("cancelled--js")&&(r=r+"&"+$(this).attr("data-lang")+"="+$(this).val())}),fcom.updateWithAjax(fcom.makeUrl("Cart","add"),r,function(e){fcom.closeProcessing(),fcom.removeLoader(),e.redirect&&(location=e.redirect),fcom.displaySuccessMessage(e.msg),productData=[];var t=0;$.each(e.cartItems,function(e,a){t+=a.theprice,productData.push({item_id:a.selprod_id,item_name:a.selprod_title,discount:a.selprod_price-a.theprice,index:e,item_brand:a.brand_name,item_category:a.prodcat_name,price:a.theprice,quantity:a.addedQty})}),ykevents.addToCart({currency:currencyCode,value:t,items:productData}),a?setTimeout(function(){window.location=fcom.makeUrl("Checkout")},300):($("span.cartQuantity").html(e.total),cart.loadCartSummary())})},remove:function(e,t,a){if(confirm(langLbl.confirmRemove)){var r="key="+e+"&saveForLater="+a;fcom.updateWithAjax(fcom.makeUrl("Cart","remove"),r,function(e){fcom.removeLoader(),removedItems=[];var a=0;$.each(e.cartItems,function(e,t){a+=t.theprice,removedItems.push({item_id:t.selprod_id,item_name:t.selprod_title,discount:t.selprod_price-t.theprice,index:e,item_brand:t.brand_name,item_category:t.prodcat_name,price:t.theprice,quantity:t.addedQty})}),ykevents.removeFromCart({currency:currencyCode,value:a,items:removedItems}),"checkout"==t?(e.status&&(loadFinancialSummary(),resetCheckoutDiv()),0==e.total&&(window.location=fcom.makeUrl("Cart"))):"cart"==t?(e.status&&(listCartProducts(),cart.loadCartSummary()),0==e.total&&$(".emtyCartBtn-js").hide()):cart.loadCartSummary(),$.ykmsg.close()})}},update:function(e,t,a=0){if(!0===isAjaxRunning)return!1;isAjaxRunning=!0;var r="key="+e+"&quantity="+$("input[name='qty_"+e+"']").val();fcom.ajax(fcom.makeUrl("Cart","update"),r,function(e){if(fcom.removeLoader(),!e.status)return fcom.displayErrorMessage(e.msg),void("function"==typeof cart.addCallBackFn&&cart.addCallBackFn(e));isAjaxRunning=!1,e.status&&(null!=t?($(financialSummary).prepend(fcom.getLoader(!0)),loadFinancialSummary(),(1>$("#hasAddress").length||$("#hasAddress").length>0&&0<$("#hasAddress").val())&&resetCheckoutDiv()):0<a?listCartProducts(a):listCartProducts())},{fOutMode:"json"})},updateGroup:function(e){$.ykmsg.close();var t="prodgroup_id="+e+"&quantity="+$("input[name='qty_"+e+"']").val();fcom.updateWithAjax(fcom.makeUrl("Cart","updateGroup"),t,function(e){fcom.removeLoader(),e.status&&listCartProducts()})},addGroup:function(e,t){t=void 0!==t;var a="prodgroup_id="+e;fcom.updateWithAjax(fcom.makeUrl("Cart","addGroup"),a,function(e){fcom.removeLoader(),setTimeout(function(){fcom.closeProcessing()},3e3),$(".cart-item-counts-js").html(e.total),t&&setTimeout(function(){window.location=fcom.makeUrl("Cart")},300)})},removeGroup:function(e){if(confirm(langLbl.confirmRemove)){var t="prodgroup_id="+e;fcom.updateWithAjax(fcom.makeUrl("Cart","removeGroup"),t,function(e){fcom.removeLoader(),e.status&&listCartProducts(),$.ykmsg.close()})}},clear:function(){confirm(langLbl.confirmRemove)&&fcom.updateWithAjax(fcom.makeUrl("Cart","clear"),"",function(e){if(fcom.removeLoader(),e.status){removedItems=[];var t=0;$.each(e.cartItems,function(e,a){t+=a.theprice,removedItems.push({item_id:a.selprod_id,item_name:a.selprod_title,discount:a.selprod_price-a.theprice,index:e,item_brand:a.brand_name,item_category:a.prodcat_name,price:a.theprice,quantity:a.addedQty})}),ykevents.removeFromCart({currency:currencyCode,value:t,items:removedItems}),"function"==typeof listCartProducts&&listCartProducts(),$("span.cartQuantity").html(e.total),cart.loadCartSummary(),$("body").removeClass("side-cart--on")}$.ykmsg.close()})},loadCartSummary:function(e=!0){var t=0<$("#sideCartJs.offcanvas").length;!0===e&&t&&$("#sideCartJs").prepend(fcom.getLoader()).offcanvas("hide"),fcom.updateWithAjax(fcom.makeUrl("Cart","getCartSummary"),"",function(a){!0===e&&t&&(fcom.removeLoader(),$("#cartSummaryJs").html(a.buttonHtml),$("#sideCartJs").replaceWith(a.offCanvasHtml),$("#sideCartJs").offcanvas("show"))})},addCallBackFn:null},ykevents={_validateAndTrigger:function(e,t,a=""){1==e&&"undefined"!=typeof fbPixel&&1==fbPixel&&fbq("track",t,a),2==e&&"undefined"!=typeof gtag&&""!=a&&gtag("event",t,a)},viewItem:function(e){ykevents._validateAndTrigger(2,"view_item",e)},addToCart:function(e){ykevents._validateAndTrigger(1,"AddToCart"),ykevents._validateAndTrigger(2,"add_to_cart",e)},viewCart:function(e){ykevents._validateAndTrigger(2,"view_cart",e)},removeFromCart:function(e){ykevents._validateAndTrigger(2,"remove_from_cart",e)},addToWishList:function(){ykevents._validateAndTrigger(1,"AddToWishlist")},contactUs:function(){ykevents._validateAndTrigger(1,"Contact")},customizeProduct:function(){ykevents._validateAndTrigger(1,"CustomizeProduct")},initiateCheckout:function(e){ykevents._validateAndTrigger(1,"InitiateCheckout"),ykevents._validateAndTrigger(2,"begin_checkout",e)},search:function(){ykevents._validateAndTrigger(1,"search")},purchase:function(e){ykevents._validateAndTrigger(1,"Purchase",e),ykevents._validateAndTrigger(2,"purchase",e)},viewContent:function(){ykevents._validateAndTrigger(1,"viewContent")},newsLetterSubscription:function(){ykevents._validateAndTrigger(1,"CompleteRegistration")}};$(document).on("click",".resetModalFormJs",function(e){$.ykmodal.isSideBarView()&&$.ykmodal(f
1com.getLoader());var onClear=$(".modalFormJs").data("onclear");void 0!==onClear?eval(onClear):0<$("."+$.ykmodal.element+" .navTabsJs .nav-link").length&&$("."+$.ykmodal.element+" .navTabsJs .nav-link.active").click()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.