PageSourceSearch

https://www.toptanzanite.com/cdn/shop/t/6/assets/pre_theme.js?v=133344911113384422851782836611

js toptanzanite.com collected 2026-09-26 07:51:08 UTC 32,358 bytes, 2 lines download raw bytes

1var elessiShopifyPre,Nt_money_format="${{amount}}",sp_nt_storage=!1,ntla_ck=!1,Enablestorage=!0;try{sp_nt_storage=typeof Storage<"u"&&Enablestorage}catch{sp_nt_storage=!1}if(sp_nt_storage)var nt_currency=localStorage.getItem("nt_currency");else var nt_currency=null;(function($){"use strict";elessiShopifyPre=(function(){return{init:function(){this.initCarousel(),this.resizeElements(),this.initMasonry(),this.shopMasonry()},initCarousel:function(){$(".jas-carousel").not(".slick-initialized").slick()},StorageCurrency:function(){var cookieCurrency=null;return sp_nt_storage&&(cookieCurrency=localStorage.getItem("T4Currency")),cookieCurrency},shopMasonry:function(){typeof $.fn.isotope>"u"||typeof $.fn.imagesLoaded>"u"||$(window).resize(function(){$(".categories-masonry").each(function(index){var $el=$(this),colWidth=$el.hasClass("categories-style-masonry")?".jas-item-category":".jas-col-md-3.jas-item-category";$el.imagesLoaded().done(function(instance){setTimeout(function(){$el.isotope({resizable:!1,isOriginLeft:!$("body").hasClass("rtl"),layoutMode:"packery",packery:{gutter:0,columnWidth:colWidth},itemSelector:".jas-item-category"})},500)})})})},initMasonry:function(){if(!(typeof $.fn.isotope>"u"||typeof $.fn.imagesLoaded>"u")){var el=$(".jas-masonry");el.each(function(i,val){var _option=$(this).data("masonry");if(_option!==void 0){var _selector=_option.selector,_width=_option.columnWidth,_layout=_option.layoutMode;$(this).imagesLoaded(function(){$(val).isotope({layoutMode:_layout,isOriginLeft:!$("body").hasClass("rtl"),itemSelector:_selector,percentPosition:!0,masonry:{columnWidth:_width}})}),$(".jas-filter a").click(function(){var selector=$(this).data("filter"),parent=$(this).parents(".jas-filter");return $(val).isotope({filter:selector}),$(this).hasClass("selected")||(parent.find(".selected").removeClass("selected"),$(this).addClass("selected")),!1})}})}},Ntproduct_switch:function(variations_form,Ntproduct,product,selector,IdSelect,NtId,callBackVariant,prefix){if(Ntproduct.one_v){var i,soldout=Ntproduct.Ntsoldout,soldout_size=soldout.length;for($(NtId+Ntproduct.one_p+" .nt-swatch").addClass("nt_soldout"),i=0;i<soldout_size;i++)$(NtId+Ntproduct.one_p+' .nt-swatch[data-value="'+soldout[i]+'"]').removeClass("nt_soldout")}var val_color=$("#cart-form").find(".is-ntcolor .is-selected").data("value")||$("#cart-form").find(".is-ntcolor .is-selected-none").data("value")||$("#cart-form").find(".is-ntcolor .is-selected-no").data("value"),ck_color=$("#cart-form").find(".is-ntcolor .is-selected").last().data("value"),val_carat=$("#cart-form").find(".is-carat-weight .is-selected").data("value"),val_quality=$("#cart-form").find(".is-gemstone-quality .is-selected").data("value"),group_val="";if(ck_color!=""&&(group_val=ck_color+"-"),val_carat!=""&&(group_val=group_val+val_carat+"-"),val_quality!=""&&(group_val=group_val+val_quality),group_val.substr(group_val.length-1)=="-")var group_val=group_val.substring(0,group_val.length-1);if(group_val!="")var val_color=group_val;$(".jas-group-carousel:not(.slick-initialized)").length>0&&val_color?$(".jas-group-carousel").slick().slick("slickFilter",".bc_"+val_color).slick("refresh").addClass("slick_loaded"):$(".p-thumb.nt-masonry").length>0&&val_color?$(window).width()>740&&$(window).width()!==812?$(".nt-masonry").addClass("masonry_loaded").isotope({filter:".bc_"+val_color}):$(".p-thumb.jas-masonry").one("arrangeComplete",function(){setTimeout(function(){$(".p-thumb.jas-masonry").isotope("destroy"),$(".p-thumb.nt-masonry").slick().slick("slickFilter",".bc_"+val_color).slick("refresh").addClass("slick_loaded"),$(".p-thumb.nt-masonry.slick-initialized").slick("refresh")},10)}):$(".p-thumb.jas-masonry").length>0&&$(window).width()<768&&$(".p-thumb.jas-masonry").one("arrangeComplete",function(){setTimeout(function(){$(".p-thumb.jas-masonry").isotope("destroy"),$(".p-thumb.jas-masonry").slick()},10)});var $variation_form=$(variations_form),size=product.options.length;ntla_ck=product.remove_soldout?!1:nathan_settings.ntla_ck,$variation_form.on("click",".swatches-select > .gecko-swatch:not(.is-selected):not(.jas_unavailable)",function(e){e.preventDefault(),e.stopImmediatePropagation();var $this=$(this),value=$this.data("value"),id=$this.parent().data("id"),nt_color=$("#cart-form").find(".is-ntcolor .mttype").data("value")||$("#cart
1-form").find(".is-ntcolor .is-selected").data("value")||$("#cart-form").find(".is-ntcolor .is-selected-no").data("value");$this.parent().find(".is-selected").removeClass("is-selected mttype"),$this.addClass("is-selected"),NtId==".nt_select_pr_"&&($(".nt_select_pr_"+id).find(".is-selected").removeClass("is-selected"),$(".nt_select_pr_"+id+" [data-value="+value+"]").addClass("is-selected"),$(".nt_select_pr_"+id+" .input-dropdown-inner >a").text($(".nt_select_pr_"+id+" [data-value="+value+"]").attr("aria-label")));var ck_color2=$("#cart-form").find(".is-ntcolor .is-selected").last().data("value"),val_carat2=$("#cart-form").find(".is-carat-weight .is-selected").data("value"),val_quality2=$("#cart-form").find(".is-gemstone-quality .is-selected").data("value"),group_val2="";if(ck_color2!=""&&(group_val2=ck_color2+"-"),val_carat2!=""&&(group_val2=group_val2+val_carat2+"-"),val_quality2!=""&&(group_val2=group_val2+val_quality2),group_val2.substr(group_val2.length-1)=="-")var group_val2=group_val2.substring(0,group_val2.length-1);if(selector=="#cart-form"&&ck_color2!=nt_color){var val_color2=ck_color2,nt_group_slick=$(".jas-group-carousel"),$productGallery=$(".shopify-product-gallery");if($(".jas-group-carousel.slick-initialized").length>0&&val_color2){nt_group_slick.removeClass("slick_loaded").slick("slickUnfilter").slick("unslick"),nt_group_slick.slick().slick("slickFilter",".bc_"+group_val2+", .bc_video, .bc_360").slick("refresh").addClass("slick_loaded");
1var resizeEvent=new Event("resize");window.dispatchEvent(resizeEvent)}else if($(".p-thumb.nt-masonry").length>0&&val_color2)if($(window).width()>740&&$(window).width()!==812)$(".nt-masonry").addClass("masonry_loaded").isotope({filter:".bc_"+group_val2});else{$(".p-thumb.nt-masonry.slick-initialized").removeClass("slick_loaded").slick("slickUnfilter").slick("unslick"),$(".p-thumb.nt-masonry").slick().slick("slickFilter",".bc_"+group_val2+", .bc_video").slick("refresh").addClass("slick_loaded");var resizeEvent=new Event("resize");window.dispatchEvent(resizeEvent)}if($productGallery.hasClass("image-action-zoom")){var zoom_target=$(".shopify-product-gallery__image img"),image_to_zoom=zoom_target.find("img");zoom_target.each(function(){var $this2=$(this);if($this2.attr("data-large_image_width")>$(".shopify-product-gallery__image").width()){$this2.trigger("zoom.destroy");var zoom_parent=$this2.closest(".shopify-product-gallery__image");zoom_parent.zoom({url:$this2.attr("data-large_image"),touch:!1})}})}}if(!(size>1&&($this.closest(".swatch_nt_js").find(".nt_name_current").html($this.find(".gecko-tooltip-label").text()||$this.find(".jas_nt_title").text()||$this.text()),$(callBackVariant+" .variations .gecko-swatch.is-selected").length<size))){$variation_form.find(".ajax_form_cart").removeAttr("disabled");var ck_size=size;switch(Ntproduct.one_v&&(ck_size=94),ck_size){case 2:var value0=$(NtId+"0 .is-selected").data("value"),value1=$(NtId+"1 .is-selected").data("value"),val=$(IdSelect+" option.nt_"+value0+".nt1_"+value1).val();$(IdSelect).val(val);var index=$(NtId+"0 .is-selected").data("index");if(typeof index>"u")return;$(NtId+"1 .gecko-swatch").addClass("jas_unavailable jas_soldout");var availableOptions=Ntproduct.Ntavailable[index],soldoutOptions=Ntproduct.Ntsoldout[index];$(IdSelect).val()||($(NtId+"1 .gecko-swatch").removeClass("is-selected"),$(NtId+'1 .gecko-swatch[data-value="'+availableOptions[0]+'"]').addClass("is-selected"),value0=$(NtId+"0 .is-selected").data("value"),value1=$(NtId+"1 .is-selected").data("value"),val=$(IdSelect+" option.nt_"+value0+".nt1_"+value1).val(),$(IdSelect).val(val));for(var i2=0;i2<availableOptions.length;i2++){var option=availableOptions[i2];$(NtId+'1 .gecko-swatch[data-value="'+option+'"]').removeClass("jas_unavailable")}for(var i2=0;i2<soldoutOptions.length;i2++){var option=soldoutOptions[i2];$(NtId+'1 .gecko-swatch[data-value="'+option+'"]').removeClass("jas_soldout")}break;case 3:var value0=$(NtId+"0 .is-selected").data("value"),value1=$(NtId+"1 .is-selected").data("value"),value2=$(NtId+"2 .is-selected").data("value"),val=$(IdSelect+" option.nt_"+value0+".nt1_"+value1+".nt2_"+value2).val();$(IdSelect).val(val);var index=$(NtId+"0 .is-selected").data("index");if(typeof index>"u")return;var availableOptions=Ntproduct.Ntavailable[index].NT,soldoutOptions=Ntproduct.Ntsoldout[index].NT;if(!$(IdSelect).val()){if(id==1){var position=availableOptions.indexOf(value);$(NtId+"1 .gecko-swatch").removeClass("is-selected"),$(NtId+'1 .gecko-swatch[data-value="'+availableOptions[position]+'"]').addClass("is-selected"),$(NtId+"2 .gecko-swatch").removeClass("is-selected"),$(NtId+'2 .gecko-swatch[data-value="'+availableOptions[position+1]+'"]').addClass("is-selected")}else{var position=availableOptions.indexOf(value1);position>=0?($(NtId+"2 .gecko-swatch").removeClass("is-selected"),$(NtId+'2 .gecko-swatch[data-value="'+availableOptions[position+1]+'"]').addClass("is-selected")):($(NtId+"1 .gecko-swatch").removeClass("is-selected"),$(NtId+'1 .gecko-swatch[data-value="'+availableOptions[0]+'"]').addClass("is-selected"),$(NtId+"2 .gecko-swatch").removeClass("is-selected"),$(NtId+'2 .gecko-swatch[data-value="'+availableOptions[1]+'"]').addClass("is-selected"))}value0=$(NtId+"0 .is-selected").data("value"),value1=$(NtId+"1 .is-selected").data("value"),value2=$(NtId+"2 .is-selected").data("value"),val=$(IdSelect+" option.nt_"+value0+".nt1_"+value1+".nt2_"+value2).val(),$(IdSelect).val(val)}$(NtId+"1 .gecko-swatch").addClass("jas_unavailable jas_soldout"),$(NtId+"2 .gecko-swatch").addClass("jas_unavailable jas_soldout"),value1=$(NtId+"1 .is-selected").data("value");for(var i2=0;i2<availableOptions.length;i2++){var option=availableOptions[i2];i2%2==0&&($(NtId+'1 .gecko-swatch[data-value="'+option+'"]').removeClass("jas_unavailable"),option==value1&&$(NtId+'2 .gecko-swatch[data-value="'+availableOptions[i2+1]+'"]').removeClass("jas_unavailable"))}for(var i2=0;i2<soldoutOptions.length;i2++){var option=soldoutOptions[i2];i2%2==0&&($(NtId+'1 .gecko-swatch[data-value="'+option+'"]').removeClass("jas_soldout"),option==value1&&$(NtId+'2 .gecko-swatch[data-value="'+soldoutOptions[i2+1]+'"]').removeClass("jas_soldout"))}break;default:var value=$(NtId+Ntproduct.one_p+" .is-selected").data("value"),val=$(IdSelect+" option.nt"+(Ntproduct.one_p+"").replace("0","")+"_"+value).val();$(IdSelect).val(val)}
1var variant=product.variants[$(IdSelect).prop("selectedIndex")];elessiShopifyPre.selectCallback(variant,selector,IdSelect,size,callBackVariant,NtId,prefix,product)}}),nathan_settings.use_clicking_variant_image&&$(".p-nav").on("click",".var_nt_img",function(ev){if(!($(callBackVariant+" .variations .gecko-swatch.is-selected").length<size)){var $this=$(this),value=$this.data("variant_id");if(!(product.remove_soldout&&!$this.data("variant_ava")||typeof value!="number")){var arr=$(IdSelect+' option[value="'+value+'"]').attr("class").replace("nt1_","").replace("nt2_","").replace("nt_","").split(" ");switch(size){case 2:$(NtId+"0 .gecko-swatch,"+NtId+"1 .gecko-swatch").removeClass("is-selected"),$(NtId+'1 .gecko-swatch[data-value="'+arr[1]+'"]').addClass("is-selected"),$(NtId+"1 .nt_dp_js").text($(NtId+"1 .gecko-swatch.is-selected").text()),$(NtId+'0 .gecko-swatch[data-value="'+arr[0]+'"]').trigger("click");break;case 3:$(NtId+"0 .gecko-swatch,"+NtId+"1 .gecko-swatch,"+NtId+"2 .gecko-swatch").removeClass("is-selected"),$(NtId+'1 .gecko-swatch[data-value="'+arr[1]+'"]').addClass("is-selected"),$(NtId+'2 .gecko-swatch[data-value="'+arr[2]+'"]').addClass("is-selected"),$(NtId+"1 .nt_dp_js").text($(NtId+"1 .gecko-swatch.is-selected").text()),$(NtId+"2 .nt_dp_js").text($(NtId+"2 .gecko-swatch.is-selected").text()),$(NtId+'0 .gecko-swatch[data-value="'+arr[0]+'"]').trigger("click");break;default:$(NtId+"0 .gecko-swatch").removeClass("is-selected"),$(NtId+'0 .gecko-swatch[data-value="'+arr[0]+'"]').trigger("click")}}}})},selectCallback:function(variant,selector,IdSelect,size,callBackVariant,NtId,prefix,product){var selectorCurent=$(selector),selectorSticky=$(selector+"-sticky"),IdSelectCurent=$(IdSelect),$variantQuantity=selectorCurent.find(".variantQuantity"),$unit_base=selectorCurent.find(".unit_base"),$unit_price=selectorCurent.find(".unit_price"),$productPrice=selectorCurent.find(".productPrice"),$productPriceSticky=selectorSticky.find(".productPrice"),$quantityElements=selectorCurent.find(".quantity"),$quantitySticky=selectorSticky.find(".quantity"),$outofstock=$(".out-of-stock-gl"+prefix),$outofsticky=$("#nt_outstock_sticky"+prefix),$frm_notify_pr=$("#frm_notify_pr"+prefix),$productsku=$("#productSku"+prefix),$productbarcode=$(".productBarcode"+prefix),$input=selectorCurent.find(".quantity .qty"),$inputSticky=selectorSticky.find(".quantity .qty"),$addToCart=selectorCurent.find(".shopify_add_to_cart"),$addToCartSticky=selectorSticky.find(".shopify_add_to_cart"),$payment_btn=selectorCurent.find(".shopify-payment-button"),$payment_btn_Sticky=selectorSticky.find(".shopify-payment-button"),$addToCart_text=selectorCurent.find(".single_add_to_cart_button .bt__text"),$addToCart_text_Sticky=selectorSticky.find(".single_add_to_cart_button .bt__text");(selector=="#cart-form"||selector=="#cart-form-quick")&&($productPrice=selectorCurent.closest(".entry-summary").find(".productPrice"),$unit_base=selectorCurent.closest(".entry-summary").find(".unit_base"),$unit_price=selectorCurent.closest(".entry-summary").find(".unit_price"));var val_0=$(NtId+"0 .is-selected").attr("data-value"),val_1=$(NtId+"1 .is-selected").attr("data-value"),val_2=$(NtId+"2 .is-selected").attr("data-value");size==2?($(callBackVariant).attr("class","jas_"+val_0),$(callBackVariant).addClass("jas1_"+val_1),$("#callBackVariantsticky"+prefix).attr("class","jas_"+val_0),$("#callBackVariantsticky"+prefix).addClass("jas1_"+val_1)):size==3&&($(callBackVariant).attr("class","jas_"+val_0),$(callBackVariant).addClass("jas1_"+val_1),$(callBackVariant).addClass("jas2_"+val_2),$("#callBackVariantsticky"+prefix).attr("class","jas_"+val_0),$("#callBackVariantsticky"+prefix).addClass("jas1_"+val_1),$("#callBackVariantsticky"+prefix).addClass("jas2_"+val_2));var name_0=$(NtId+"0 .bg_css_"+val_0+":first").text();if($(NtId+"0 .nt_name_current").html(name_0),$(".is-carat-weight ul li span.swatch__value").attr("class","swatch__value carat_swatch jas1_"+val_1+" jas2_"+val_2),size>1){var name_1=$(NtId+"1 .bg_css_"+val_1+":first").text();$(NtId+"1 .nt_name_current").html(name_1)}if(size>2){var name_2=$(NtId+"2 .bg_css_"+val_2+":first").text();$(NtId+"2 .nt_name_current").html(name_2)}if(variant){let updatePriceWithCheckbox=function(variant2,prefix2,$productPrice2,$productPriceSticky2,product2,nathan_settings2,elessiShopifyPre2){var extraProductPrice
1=parseInt($(".lab-item-price").val()),customPrice2=variant2.price,comparePrice2=variant2.compare_at_price;$("#add-product-checkbox").is(":checked")&&(customPrice2+=extraProductPrice);var formattedCustomPrice=elessiShopifyPre2.formatMoney(customPrice2,nathan_settings2.moneyFormat),customPriceFormat2='<ins id="product-price" class="product-price">'+formattedCustomPrice+"</ins>";if(comparePrice2>variant2.price){var formattedComparePrice=elessiShopifyPre2.formatMoney(comparePrice2,nathan_settings2.moneyFormat);customPriceFormat2+='<del class="old-product-price">'+formattedComparePrice+"</del>",customPriceFormat2+='<span class="onsale fs__14 tu dib cw pr_onsale hide"><span></span></span>';var save2=(comparePrice2-variant2.price)*100/comparePrice2;$("#product-"+product2.id+" .pr_onsale>span").html(nathan_settings2.save_js.replace("[sale]",Math.ceil(save2))),$("#product-"+product2.id+" .pr_onsale").show(),$("#callBackVariantsticky"+prefix2+" .pr_onsale>span").html(nathan_settings2.save_js.replace("[sale]",Math.ceil(save2))),$("#callBackVariantsticky"+prefix2+" .pr_onsale").show()}else $("#product-"+product2.id+" .pr_onsale").hide(),$("#callBackVariantsticky"+prefix2+" .pr_onsale").hide();$productPrice2.html(customPriceFormat2),$productPriceSticky2.html(customPriceFormat2)};const excludedSkus=["TT35032-5"],variantSku=variant.sku;var isAllowed=!0;if(variantSku)var isAllowed=!excludedSkus.map(sku=>sku.toUpperCase()).includes(variantSku.toUpperCase());var enableAddToCart1=!1;typeof enableAddToCart<"u"&&(enableAddToCart1=enableAddToCart);let amountString=variant.price,amountNumber=parseFloat(amountString);const exchangeRate=parseFloat(Shopify.currency.rate);if(amountNumber/100/exchangeRate>8500&&!enableAddToCart1){var div=document.getElementById("box");div&&(div.style.display="block",div.classList.remove("hide"));var add=document.querySelector(".buy-sec");add&&(add.style.display="none",add.classList.add("hide"));var pay=document.querySelector(".shop-pay-content");pay&&(pay.style.display="none",pay.classList.add("hide"));var div=document.getElementById("sticky-box");div&&(div.style.display="block",div.classList.remove("hide"));var stickyquantity=document.querySelector(".sticky-quantity");stickyquantity&&(stickyquantity.style.display="none",stickyquantity.classList.add("hide"))}else{var div=document.getElementById("box");div&&(div.classList.add("hide"),div.style.display="none");var add=document.querySelector(".buy-sec");add&&(add.style.display="flex",add.classList.remove("hide"));var pay=document.querySelector(".shop-pay-content");pay&&(pay.style.display="none",pay.classList.add("hide"));var div=document.getElementById("sticky-box");div&&(div.classList.add("hide"),div.style.display="none");var stickyquantity=document.querySelector(".sticky-quantity");stickyquantity&&(stickyquantity.style.display="flex",stickyquantity.classList.remove("hide"))}if(window.history&&history.pushState&&nathan_settings.enableHistoryState&&selector=="#cart-form"&&window.history.replaceState({},document.title,"?variant="+variant.id),typeof metaData<"u"&&metaData!==null){var productDescription=metaData.pr_description.product;if(metaData.description){var variantDescription=metaData.description[variant.id];$(".shopify-Tabs-panel--description").html(variantDescription)}else $(".shopify-Tabs-panel--description").html(productDescription)}if(variant.available)$addToCartSticky.show(),$payment_btn.show(),$payment_btn_Sticky.show(),$quantityElements.show(),$quantitySticky.show(),$outofstock.css("display","none"),$outofsticky.css("display","none"),$frm_notify_pr.css("display","none"),$(".product-available"+prefix).removeClass("value_out").addClass("value_in").html(nathan_settings.in_stock),nathan_settings.product_quantity_message&&(variant.inventory_management?variant.inventory_quantity<nathan_settings.ck_inventory&&variant.inventory_quantity>0?$variantQuantity.html(nathan_settings.only_left.replace("1",variant.inventory_quantity)).addClass("is-visible"):variant.inventory_quantity<=0&&variant.incoming?$variantQuantity.html(nathan_settings.will_not_ship_until.replace("[date]",variant.next_incoming_date)).addClass("is-visible"):$variantQuantity.removeClass("is-visible"):$variantQuantity.removeClass("is-visible")),variant.inventory_quantity<=0&&variant.available&&variant.inventory_management!=null?($addToCart_text.html(nathan_settings.pre_orders),$addToCart_text_Sticky.html(nathan_settings.pre_orders)):($addToCart_text.html(nathan_settings.add_to_cart),$addToCart_text_Sticky.html(nathan_settings.add_to_cart)),variant.inventory_quantity<=0&&variant.available&&variant.inventory_management!=null?($input.attr("max",999),$inputSticky.attr("max",999)):variant.inventory_management!=null?($input.attr("max",variant.inventory_quantity).val(1).attr("value",1),$inputSticky.attr("max",variant.inventory_quantity).val(1).attr("value",1)):($input.attr("max",999),$inputSticky.attr("max",999));else if(product.options.length==1&&$(NtId+"0 .is-selected").addClass("jas_soldout"),$(NtId+"1 .is-selected").addClass("jas_soldout"),$(NtId+"2 .is-selected").addClass("jas_soldout"),$addToCart.hide(),$addToCartSticky.hide(),$payment_btn.hide(),$payment_btn_Sticky.hide(),$(".product-available"+prefix).removeClass("value_in").addClass("value_out").html(nathan_settings.outofstock),$variantQuantity.removeClass("is-visible"),nathan_settings.product_quantity_message&&(variant.incoming?$variantQuantity.html(nathan_settings.will_be_in_stock_after.replace("[date]",variant.next_incoming_date)).addClass("is-visible"):$variantQuantity.removeClass("is-visible")),$quantityElements.hide(),$quantitySticky.hide(),$frm_notify_pr.css("display","inline-block"),$outofstock.css("display","inline-block"),$outofsticky.css("display","inline-block"),nathan_settings.use_notify_me){var url_js="https://"+window.location.hostname+product.url+"?variant="+variant.id;$frm_notify_pr.find("textarea").html(nathan_settings.please_notify_me.replace("{{title}}",product.title).replace("{{variant}}",variant.title).replace("{{url}}",url_js))}if($("#add-product-checkbox").on("change",function(){var selectedVariant=product.variants[$(I
1dSelect).prop("selectedIndex")];updatePriceWithCheckbox(selectedVariant,prefix,$productPrice,$productPriceSticky,product,nathan_settings,elessiShopifyPre)}),product.price_varies||nathan_settings.price_varies){var customPrice=elessiShopifyPre.formatMoney(variant.price,nathan_settings.moneyFormat);if(variant.compare_at_price>variant.price){var comparePrice=elessiShopifyPre.formatMoney(variant.compare_at_price,nathan_settings.moneyFormat),customPriceFormat='<ins id="product-price" class="product-price">'+customPrice+"</ins> ";customPriceFormat+='<del class="old-product-price">'+comparePrice+"</del>",customPriceFormat+='<span class="onsale fs__14 tu dib cw pr_onsale hide"><span></span></span>',$productPrice.html(customPriceFormat),$productPriceSticky.html(customPriceFormat);var save=(variant.compare_at_price-variant.price)*100/variant.compare_at_price;$("#product-"+product.id+" .pr_onsale>span").html(nathan_settings.save_js.replace("[sale]",Math.ceil(save))),$("#product-"+product.id+" .pr_onsale").show(),$("#callBackVariantsticky"+prefix+" .pr_onsale>span").html(nathan_settings.save_js.replace("[sale]",Math.ceil(save))),$("#callBackVariantsticky"+prefix+" .pr_onsale").show()}else $productPrice.html(customPrice),$productPriceSticky.html(customPrice),$("#product-"+product.id+" .pr_onsale").hide(),$("#callBackVariantsticky"+prefix+" .pr_onsale").hide()}if($("#add-product-checkbox").trigger("change"),variant.id){if($("#certificate_link").attr("href","/pages/certificate-of-authenticity/"+product.handle+"--"+variant.id),$("#coa_link").val(site_url+"/pages/certificate-of-authenticity/"+product.handle+"--"+variant.id),$("#appraisal_certificate_link").attr("href","/pages/certificate-of-appraisal/"+product.handle+"--"+variant.id),$(".below_price").length>0)var checkExist=setInterval(function(){if($(".addon-price").length){$(".addon-price label").html("<a href id='appraisal_certificate_link' target='_blank'>Certificate Of Appraisal</a>"),$("#appraisal_certificate_link").attr("href","/pages/certificate-of-appraisal/"+product.handle+"--"+variant.id);var product_id=$("#productHandle").val(),addon_price=$(".mw_options_list li input[type='checkbox']").attr("data-value-price"),link_val=addon_price+" "+site_url+"/pages/certificate-of-appraisal/"+product.handle+"--"+variant.id;$(".mw_options_list li input[type='checkbox']").val(link_val),clearInterval(checkExist)}},100);else $("#appraisal_link").length>0&&$("#appraisal_link").val(site_url+"/pages/certificate-of-appraisal/"+product.handle+"--"+variant.id);$("shopify-payment-terms").attr("variant-id",variant.id);var splitPrice=variant.price/100;$("#splitit-container").attr("data-splitit-amount",splitPrice),splitit.ui&&splitit.ui.refresh(),$(".affirm-as-low-as").attr("data-amount",variant.price),affirm.ui.ready(function(){affirm.ui.refresh()})}if(variant.unit_price_measurement?($unit_base.html(variant.unit_price_measurement.reference_value!=1?variant.unit_price_measurement.reference_value+variant.unit_price_measurement.reference_unit:variant.unit_price_measurement.reference_unit),$unit_price.html(elessiShopifyPre.formatMoney(variant.unit_price,nathan_settings.moneyFormat)),$unit_price.parent().show()):$unit_price.parent().hide(),nathan_settings.show_multiple_currencies&&elessiShopifyPre.StorageCurrency()!==null&&typeof Currency<"u"&&typeof Currency.convertAll<"u"&&(Currency.convertAll(nathan_settings.shop_currency,elessiShopifyPre.StorageCurrency(),".entry-summary span.money"),Currency.convertAll(nathan_settings.shop_currency,elessiShopifyPre.StorageCurrency(),".variations_form_qs span.money")),variant.sku?$productsku.text(variant.sku):$productsku.text(nathan_settings.na),variant.barcode?($productbarcode.text(variant.barcode),$("#barcode_id").val(variant.barcode)):($productbarcode.text(nathan_settings.na),$("#barcode_id").val("")),variant.featured_image&&!ntla_ck){var featured_image_id=variant.featured_image.id;if(selector=="#cart-form"&&$(".p-thumb.slick-initialized").length>0){var index=$(".p-thumb.slick-initialized .slick-slide:not(.slick-cloned) img[data-image-id="+featured_image_id+"]").closest("div.slick-slide").attr("data-slick-index");$(".p-thumb.slick-initialized").slick("slickGoTo",index)}else if(selector=="#cart-form"&&$(".p-thumb.jas-masonry:not(.slick-initialized)").length>0){var $img=$("#img_"+featured_image_id);if($(".p-thumb.nt-masonry").one("arrangeComplete",function(){elessiShopifyPre.isVisible($img,!0)||$("body").is(".add_sticky_nt.opend_sticky")||$("html, body").animate({scrollTop:$img.offset().top-$(".header-sticky .header__mid").outerHeight()-30},10)}),elessiShopifyPre.isVisible($img)||$("body").is(".add_sticky_nt.opend_sticky"))return;$("html, body").animate({scrollTop:$img.offset().top-$(".header-sticky .header__mid").outerHeight()-30},300)}else if(selector=="#cart-form-quick"){var xx=$(".product-images-slider_on").find('img[data-image-id="'+featured_image_id+'"]').closest("div.slick-slide");xx.index()>=0&&$(".product-images-slider_on").slick("slickGoTo",[xx.index(),2,!1])}}ntla_ck=!1}
1typeof MagicZoom<"u"&&$mjs(document).jAddEvent("domready",function(){setTimeout(function(){MagicZoom.start()},100)})},isVisible:function(el,partial,hidden,direction,container){if(!(el.length<1)){direction=direction||"both";var $w=$(window),$t=el.length>1?el.eq(0):el,isContained=typeof container<"u"&&container!==null,$c=isContained?$(container):$w,wPosition=isContained?$c.position():0,t=$t.get(0),vpWidth=$c.outerWidth(),vpHeight=$c.outerHeight(),clientSize=hidden===!0?t.offsetWidth*t.offsetHeight:!0;if(typeof t.getBoundingClientRect=="function"){var rec=t.getBoundingClientRect(),tViz=isContained?rec.top-wPosition.top>=0&&rec.top<vpHeight+wPosition.top:rec.top>=0&&rec.top<vpHeight,bViz=isContained?rec.bottom-wPosition.top>0&&rec.bottom<=vpHeight+wPosition.top:rec.bottom>0&&rec.bottom<=vpHeight,lViz=isContained?rec.left-wPosition.left>=0&&rec.left<vpWidth+wPosition.left:rec.left>=0&&rec.left<vpWidth,rViz=isContained?rec.right-wPosition.left>0&&rec.right<vpWidth+wPosition.left:rec.right>0&&rec.right<=vpWidth,vVisible=partial?tViz||bViz:tViz&&bViz,hVisible=partial?lViz||rViz:lViz&&rViz,vVisible=rec.top<0&&rec.bottom>vpHeight?!0:vVisible,hVisible=rec.left<0&&rec.right>vpWidth?!0:hVisible;if(direction==="both")return clientSize&&vVisible&&hVisible;if(direction==="vertical")return clientSize&&vVisible;if(direction==="horizontal")return clientSize&&hVisible}else{var viewTop=isContained?0:wPosition,viewBottom=viewTop+vpHeight,viewLeft=$c.scrollLeft(),viewRight=viewLeft+vpWidth,position=$t.position(),_top=position.top,_bottom=_top+$t.height(),_left=position.left,_right=_left+$t.width(),compareTop=partial===!0?_bottom:_top,compareBottom=partial===!0?_top:_bottom,compareLeft=partial===!0?_right:_left,compareRight=partial===!0?_left:_right;if(direction==="both")return!!clientSize&&compareBottom<=viewBottom&&compareTop>=viewTop&&compareRight<=viewRight&&compareLeft>=viewLeft;if(direction==="vertical")return!!clientSize&&compareBottom<=viewBottom&&compareTop>=viewTop;if(direction==="horizontal")return!!clientSize&&compareRight<=viewRight&&compareLeft>=viewLeft}}},resizeElements:function(){$.fn.gecko_equlize=function(options){var settings=$.extend({child:""},options),that=this;settings.child!=""&&(that=this.find(settings.child));var resize=function(){var maxHeight=0,height;that.each(function(){$(this).css({height:""}),$(this).outerHeight()>maxHeight&&(maxHeight=$(this).outerHeight())}),that.each(function(){$(this).css({height:maxHeight+"px"})})};$(window).bind("resize",function(){resize()}),setTimeout(function(){resize()},200),setTimeout(function(){resize()},500),setTimeout(function(){resize()},800)},$(".jas_section_eqh").each(function(){$(this).gecko_equlize({child:" [class*=jas-col-] .jas-product-image-equal"}),$(this).gecko_equlize({child:" [class*=jas-col-] .jas-pr_metro-image-equal"}),$(this).gecko_equlize({child:" .page_pr_img_size .jas-pr_metro-image-equal"}),$(this).gecko_equlize({child:" .page_pr_img_size .jas-pr_nav-image-equal"})})},formatMoney:function(cents,format){typeof cents=="string"&&(cents=cents.replace(".",""));var value="",placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||Nt_money_format,defaultOption=function(opt,def){return typeof opt>"u"?def:opt},formatWithDelimiters=function(number,precision,thousands,decimal){if(precision=defaultOption(precision,2),thousands=defaultOption(thousands,","),decimal=defaultOption(decimal,"."),isNaN(number)||number==null)return 0;number=(number/100).toFixed(precision);var parts=number.split("."),dollars=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),cents2=parts[1]?decimal+parts[1]:"";return dollars+cents2};switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break}return formatString.replace(placeholderRegex,value)}}})()})(jQuery),jQuery(document).ready(function($){if(elessiShopifyPre.init(),$("body").hasClass("template-product")&&nathan_settings.has_variant){var Ntproduct=JSON.parse(document.getElementById("ProductJson-NT").innerHTML),product=JSON.parse(document.getElementById("ProductJson-template").innerHTML),IdSelect=".product-select_pr",NtId=".nt_select_pr_",selector="#cart
1-form",callBackVariant="#callBackVariant",prefix="";$(".nt_select_pr_1 .is-selected-none").addClass("is-selected").removeClass("is-selected-none"),$(".nt_select_pr_2 .is-selected-none").addClass("is-selected").removeClass("is-selected-none"),elessiShopifyPre.Ntproduct_switch(".variations_form",Ntproduct,product,selector,IdSelect,NtId,callBackVariant,prefix),$(".nt_select_pr_0 .is-selected-none").click()}}),NT4.designMode&&(jQuery(document).on("shopify:section:load",elessiShopifyPre.shopMasonry).on("shopify:section:unload",elessiShopifyPre.shopMasonry).on("shopify:section:select",elessiShopifyPre.shopMasonry).on("shopify:section:deselect",elessiShopifyPre.shopMasonry).on("shopify:block:select",elessiShopifyPre.shopMasonry).on("shopify:block:deselect",elessiShopifyPre.shopMasonry),jQuery(document).on("shopify:section:load",elessiShopifyPre.initMasonry).on("shopify:section:unload",elessiShopifyPre.initMasonry).on("shopify:section:select",elessiShopifyPre.initMasonry).on("shopify:section:deselect",elessiShopifyPre.initMasonry).on("shopify:block:select",elessiShopifyPre.initMasonry).on("shopify:block:deselect",elessiShopifyPre.initMasonry),jQuery(document).on("shopify:section:load",elessiShopifyPre.initCarousel).on("shopify:section:unload",elessiShopifyPre.initCarousel).on("shopify:block:select",elessiShopifyPre.initCarousel).on("shopify:block:deselect",elessiShopifyPre.initCarousel),jQuery(document).on("shopify:section:load",elessiShopifyPre.resizeElements).on("shopify:section:unload",elessiShopifyPre.resizeElements).on("shopify:section:select",elessiShopifyPre.resizeElements).on("shopify:section:deselect",elessiShopifyPre.resizeElements));
2//# sourceMappingURL=/cdn/shop/t/6/assets/pre_theme.js.map?v=133344911113384422851782836611

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.