PageSourceSearch

https://www.svsound.com/cdn/shop/t/674/assets/custom.js?v=84278800396841504861788186323

js svsound.com collected 2026-09-24 09:54:27 UTC 27,639 bytes, 31 lines download raw bytes

1$(document).ready(function(){$(document).on("click","#cart-icon-bubble",function(e){e.preventDefault(),document.addEventListener("rebuy.init",function(event){})}),document.addEventListener("rebuy.add",function(event){document.dispatchEvent(new CustomEvent("cart:build")),setTimeout(function(){$("cart-drawer").hasClass("active")?document.addEventListener("rebuy.refresh",function(event2){}):document.getElementById("cart-icon-bubble").click()},2e3)}),$("img").each(function(){var $img=$(this);$img.attr("data-src")&&$img.attr("src",$img.attr("data-src")).removeAttr("data-src")});var imgTags=document.querySelectorAll(".article-template__content img");imgTags.forEach(function(img){img.hasAttribute("loading")||img.setAttribute("loading","lazy")}),$(document).ready(function(){"use strict";function generateThumbnail(videoID){return'<img src="https://i.ytimg.com/vi/'+videoID+'/maxresdefault.jpg" alt="YouTube Video Thumbnail"><div aria-label="Play"  class="play" role="button"></div>'}function createYouTubePlayer(){var videoID=$(this).data("id"),iframe=$("<iframe>").attr("src","https://www.youtube.com/embed/"+videoID+"?autoplay=1&rel=0&mute=1").attr("frameborder","0").attr("allowfullscreen","1");$(this).replaceWith(iframe)}$(".youtube-player").each(function(){var videoID=$(this).data("id"),thumbnailDiv=$("<div>").attr("data-id",videoID).html(generateThumbnail(videoID)).on("click",createYouTubePlayer);$(this).append(thumbnailDiv)})}),$(document).ready(function(){document.querySelectorAll(".imageToSwap").forEach(imageToSwap=>{imageToSwap.addEventListener("click",()=>{const mainImageId=`mainImage${imageToSwap.getAttribute("data-main-image-id")}`,mainImage=document.getElementById(mainImageId);if(mainImage){const tempSrc=mainImage.src;mainImage.src=imageToSwap.src,imageToSwap.src=tempSrc}})});function toggleAnswer(){const collapseElement=document.getElementById("collapseOne"),h3Element=document.querySelector(".card-header h3 button");collapseElement.classList.contains("show")?(collapseElement.classList.remove("show"),h3Element.setAttribute("aria-expanded","false"),h3Element.classList.add("collapsed")):(collapseElement.classList.add("show"),h3Element.setAttribute("aria-expanded","true"),h3Element.classList.remove("collapsed"))}}),$(document).on("click",".block__section---productcontent--titlehide",function(){let $this=$(this),$parent=$this.closest(".block__section---productcontent--hidespace"),$toggleShow=$parent.find(".block__section---productcontent--toggle-show"),$toggleText=$this.find(".toggle-text");$parent.hasClass("current")?($parent.removeClass("current"),$toggleText.text("View Specs"),$toggleShow.slideUp("slow"),$(this).parents(".block__section---productcontent--hidespace").attr("aria-expanded","false")):($parent.addClass("current"),$toggleText.text("Hide Specs"),$toggleShow.slideDown("slow"),$(this).parents(".block__section---productcontent--hidespace").attr("aria-expanded","true"))}),$(document).on("click",".block_collection_grid_swatch_list",function(){$(this).addClass("active").siblings().removeClass("active"),$(this).parents(".block__section_product-card").find(".product-variant-id").attr("value",$(this).attr("data-id"));let price=$(this).attr("data-price"),cmpprice=$(this).attr("data-compare");$(this).parents(".block__section_product-card").find(".main--regular-price").html(price),$(this).parents(".block__section_product-card").find(".main-price").html(cmpprice)}),$(document).on("change",".block_collection_select",function(){var selectedOption=this.options[this.selectedIndex];if(selectedOption){var $card=$(this).closest(".block__section_product-card");$card.find(".product-variant-id").val(selectedOption.dataset.id||""),$card.find(".main--regular-price").html(selectedOption.dataset.price||""),$card.find(".main-price").html(selectedOption.dataset.compare||selectedOption.dataset.price||"")}}),$(document).on("click",".block__section_product-card .swatch_result span, .block__section---productcontent--color-opations .swatch_result_length",function(){$(this).closest(".block__section_product-card").find(".swatch_result span, .block__section---productcontent--color-opations .swatch_result_length").removeClass("value-color-active"),$(this).addClass("value-color-active");var image_url=$(this).attr("data-image-url");$(this).closest(".block__section_product-card").find(".block__section-product-image img").attr("src",image_url)}),$(function(){$(".acc__title").click(function(j){var dropDown=$(this).closest(".acc__card").find(".acc__panel");$(this).closest(".acc").find(".acc__panel").not(dropDown).slideUp(),$(this).hasClass("active")?$(this).removeClass("active"):($(this).closest(".acc").find(".acc__title.active").removeClass("active"),$(this).addClass("active")),dropDown.stop(!1,!0).slideToggle(),j.preventDefault()})});var hash=window.location.hash;hash!=""&&($(".account-sidebar li").removeClass("active"),$('[data-tab="'+hash+'"]').parent("li").addClass("active"),$(".account-tabs .account-tab").removeClass("active"),$(hash).addClass("active")),$(document).on("click",".account-sidebar a.account-links",function(e){e.preventDefault();var hash2=$(this).data("tab");if(hash2!=null){var url=window.location.href;if(url.indexOf("#")!=-1){var arr=url.split("#");window.location.href=arr[0]+hash2}else window.location.href=url+hash2;$(".account-sidebar li").removeClass("active"),$('[data-tab="'+hash2+'"]').parent("li").addClass("active"),$(".account-tabs .account-tab").removeClass("active"),$(hash2).addClass("active"),$("html").animate({scrollTop:$(".account-tab").offset().top},2e3)}else{var url=window.location.href;window.location.href=url.replace(window.location.hash,""),$(".account-sidebar li").removeClass("active"),$(".account-sidebar-nav li:first").addClass("active"),$(".account-tabs .account-tab").removeClass("active"),$(".account-tabs .account-tab:first").addClass("active"),$("html").animate({scrollTop:$(".account-tab").offset().top},2e3)}})}),$(document).on("click",".loading-overlay, .mobile-facets__close-icon",function(){$(".facets-vertical").hasClass("menuopen")?$(".facets-vertical").removeClass("menuopen"):$(".facets-vertical").addClass("menuopen")});var maxPriceLTEValue=$("#Filter-Price-LTE").attr("max"),minPriceLTEValue=$("#Filter-Price-GTE").attr("min");$("#Filter-Price-GTE").attr("max",maxPriceLTEValue),updateDisplayedValues(),$(document).on("change","#Filter-Price-LTE",function(){updateDisplayedValues()});function updateDisplayedValues(){var maxPriceGTE=$("#Filter-Price-GTE").attr("max"),minPriceLTE=$("#Filter-Price-LTE").attr("min"),minPrice=$("#Filter-Price-GTE").val(),maxPrice=$("#Filter-Price-LTE").val();$(".filter-value1").text(minPriceLTE),$(".filter-value2").text(maxPrice)}$('.product-form__input input[type="radio"]').on("change",function(){var selectedValue=$(this).val(),correspondingDiv=$('.goDual_image[data-variant-finish="'+selectedValue+'"]'),correspondingDiv_Price
1=$('.productForm_dualSavings[data-variant-finish="'+selectedValue+'"]');$(".goDual_image").addClass("hide"),$(".productForm_dualSavings").addClass("hide"),correspondingDiv.removeClass("hide"),correspondingDiv_Price.removeClass("hide")}),$(document).ready(function(){$(".product-registration-inner:first").addClass("active"),$(".product-registration-inner:first .product-registration-inner-form").show(),$(".product-registration-inner-tabtitle").click(function(){$(this).next(".product-registration-inner-form").slideToggle(function(){$(this).is(":visible")?$(this).parent(".product-registration-inner").addClass("active"):$(this).parent(".product-registration-inner").removeClass("active")})}),$(".product-register-button.product-register-next").click(function(){var currentForm=$(this).closest(".product-registration-inner").find(".product-registration-inner-form");currentForm.is(":visible")&&(currentForm.slideUp(),$(this).closest(".product-registration-inner").removeClass("active"));var nextSection=$(this).closest(".product-registration-inner").next(".product-registration-inner");nextSection.length>0&&(nextSection.find(".product-registration-inner-form").slideDown(),nextSection.addClass("active"))}),setTimeout(function(){document.addEventListener("DOMContentLoaded",function(){var splideList=document.querySelector(".splide__list"),rebuyProductBlocks=splideList.querySelectorAll(".rebuy-product-block");rebuyProductBlocks.forEach(function(block){var wrapper=document.createElement("div");wrapper.className="rebuy-wrapper",block.parentNode.insertBefore(wrapper,block),wrapper.appendChild(block)})})},5e3)}),document.addEventListener("DOMContentLoaded",function(){setTimeout(function(){$("#recentlyProduct .slick-track").children().length>=2?$("#recentlyProduct").show():$("#recentlyProduct").hide()},1e3)}),$(document).ready(function(){checkScreenSize(),$(window).resize(function(){checkScreenSize()});function checkScreenSize(){var productModelDual=$(".product-model-dual");$(window).width()<576&&productModelDual.insertAfter(".productForm_dualSavings:last")}}),$(document).ready(function(){function updateTierInfo(){var x=parseInt($(".data-item_tier").html());if($(".next-tier").hide(),x<0)$(".tier_text").hide();else if(x>=1&&x<=1199){$(".next-tier").show();var point=1199-x;$(".next-tier .tier-name").html("Silver"),$(".more-point").html(point)}else if(x>=1200&&x<=4999){$(".next-tier").show();var point=4999-x;$(".next-tier .tier-name").html("Gold"),$(".more-point").html(point)}else x>=5e3&&$(".next-tier").show()}setTimeout(function(){updateTierInfo()},2e3),$(document).on("click",".lion-action-button",function(){setTimeout(function(){updateTierInfo()},5e3)})}),$(document).on("click",".drawer__footer .rebuy-button,.drawer__footer .rebuy-product-actions span",function(){var interval=setInterval(doStuff,100);function doStuff(){$(".rebuy-button").hasClass("working")||($.ajax({url:"/?section_id=cart-drawer",type:"GET",dataType:"html",success:function(carthtml){$("#CartDrawer").html($(carthtml).find("#CartDrawer").html()),$.ajax({url:"/?section_id=cart-icon-bubble",type:"GET",dataType:"html",success:function(itemcount){$("#cart-icon-bubble").html($(itemcount).html()),$(".cart-count-bubble").trigger("click")},complete:function(){window.loyaltylion&&window.loyaltylion.ui.refresh(),Rebuy.init()}})}}),clearInterval(interval))}}),$(document).ready(function(){$(".listCollections_collectionWrapper").hide(),$(".navBarFilterLink").on("click",function(){var filterTag=$(this).data("filter-tag");$(".navBarFilterLink").removeClass("active"),$(this).addClass("active"),filterTag==="all"?$(".listCollections_collectionWrapper").show():($(".listCollections_collectionWrapper").hide(),$('.listCollections_collectionWrapper[data-filter-tag="'+filterTag+'"]').show())})}),$(document).ready(function(){$(".listCollections_collectionWrapper").show(),$(".navBarFilterLink").on("click",function(){var filterTag=$(this).data("filter-tag");$(".navBarFilterLink").removeClass("active"),$(this).addClass("active"),$(".filterNavbarSelect").val(filterTag),filterTag==="all"?$(".listCollections_collectionWrapper").show():($(".listCollections_collectionWrapper").hide(),$('.listCollections_collectionWrapper[data-filter-tag="'+filterTag+'"]').show())}),$(".filterNavbarSelect").on("change",function(){var filterTag=$(this).val();$(".navBarFilterLink").removeClass("active"),$('.navBarFilterLink[data-filter-tag="'+filterTag+'"]').addClass("active"),filterTag==="all"?$(".listCollections_collectionWrapper").show():($(".listCollections_collectionWrapper").hide(),$('.listCollections_collectionWrapper[data-filter-tag="'+filterTag+'"]').show())})}),$(document).ready(function(){var bgsetImage=$(".setuprow").attr("data-bgset");$(".setuprow").css("background-image","url("+bgsetImage+")")});function compare(Cookies){"use strict";var options={compareCheckboxes:"[data-compare-product-handle]",compareCheckboxesProductType:"[data-product-compare-type]",compareBlock:".productC
1ompare_block",compareCount:"#compareCount",compareFullNotification:"#compareRemoveMessage",compareRemoves:".productCompareBlock_remove",compareContinueShopping:"[data-continue-shopping]",compareProduct1:"#productCompareProduct1",compareProduct2:"#productCompareProduct2",compareProduct3:"#productCompareProduct3",compareProduct1Image:"#productCompare1Image",compareProduct2Image:"#productCompare2Image",compareProduct3Image:"#productCompare3Image",compareProduct1Title:"#productCompare1Title",compareProduct2Title:"#productCompare2Title",compareProduct3Title:"#productCompare3Title",compareProduct1Price:"#productCompare1Price",compareProduct2Price:"#productCompare2Price",compareProduct3Price:"#productCompare3Price",compareProduct1Cta:"#productCompare1Cta",compareProduct2Cta:"#productCompare2Cta",compareProduct3Cta:"#productCompare3Cta"},productCompare1="",productCompare2="",productCompare3="",handle="",productType="";function initialize(){$(".productCompareBlock_product").addClass("hide"),$(document).on("change","[data-compare-product-handle]",function(event){if(handle=$(this).data("compare-product-handle"),productType=$(this).closest(".productCompare_checkbox").data("product-compare-type"),$(this).is(":checked"))$.cookie("product_compare1")==null?($.cookie("product_compare1",handle,{path:"/"}),$.cookie("product_type",productType,{path:"/"})):$.cookie("product_compare1")!=null&&$.cookie("product_compare2")==null?($.cookie("product_compare2",handle,{path:"/"}),$.cookie("product_type",productType,{path:"/"})):$.cookie("product_compare1")!=null&&$.cookie("product_compare2")!=null&&$.cookie("product_compare3")==null&&($.cookie("product_compare3",handle,{path:"/"}),$.cookie("product_type",productType,{path:"/"}));else{var dataPro=$(this).attr("data-compare-product-handle");$('.productCompareBlock_product[data-product-handle="'+dataPro+'"]').addClass("hide"),$.cookie("product_compare1")==handle?($.removeCookie("product_compare1",{path:"/"}),$.removeCookie("product_type",{path:"/"})):$.cookie("product_compare2")==handle?($.removeCookie("product_compare2",{path:"/"}),$.removeCookie("product_type",{path:"/"})):$.cookie("product_compare3")==handle&&($.removeCookie("product_compare3",{path:"/"}),$.removeCookie("product_type",{path:"/"}))}return productCompare1=$.cookie("product_compare1"),productCompare2=$.cookie("product_compare2"),productCompare3=$.cookie("product_compare3"),productType=$.cookie("product_type"),$(".productCompare_block").addClass("show"),loadComparisonData(productCompare1,productC
1ompare2,productCompare3,productType),updateComparisonDisplay(),window.location.pathname=="/pages/compare-page"&&populatePage(),!1;handleType()}),$(document).on("click",options.compareRemoves,function(event,productType2){var handleToRemove=$(event.currentTarget).data("compare-remove-product");return handleCheckboxUncheck(handleToRemove),$.removeCookie(handleToRemove,{path:"/"}),$.removeCookie("product_type",{path:"/"}),$(this).parents(".productCompareBlock_product").addClass("hide"),updateComparisonDisplay(),handleType(productType2),!1}),$(document).on("click",options.compareContinueShopping,function(event,productType2){return productCompare1=$.cookie("product_compare1"),productCompare2=$.cookie("product_compare2"),productCompare3=$.cookie("product_compare3"),$.removeCookie("product_compare1",{path:"/"}),$.removeCookie("product_compare2",{path:"/"}),$.removeCookie("product_compare3",{path:"/"}),$.removeCookie("product_type",{path:"/"}),handleType(productType2),$(".productCompareBlock_product").addClass("hide"),$("[data-compare-product-handle]").prop("checked",!1),hideComparisonBlock(),window.location.pathname=="/pages/compare-page"&&populatePage(),!1})}function loadComparisonData(productCompare12,productCompare22,productCompare32,productType2){productCompare12&&(populatePage(),handleProductComparison(productCompare12,"Product1"),handleType(productType2)),productCompare22&&(handleProductComparison(productCompare22,"Product2"),handleType(productType2)),productCompare32&&(handleProductComparison(productCompare32,"Product3"),handleType(productType2))}function handleProductComparison(handle2,productNumber){var url="/products/"+handle2+".js";$.ajax({url,type:"GET",dataType:"json",success:function(data){updateComparisonDisplayForProduct(data,productNumber),handleCheckboxChange(handle2,productType),handleType(productType)}})}function updateComparisonDisplayForProduct(data,productNumber){var productContainer=$(options["compare"+productNumber]),imageSelector=options["compare"+productNumber+"Image"],titleSelector=options["compare"+productNumber+"Title"],priceSelector=options["compare"+productNumber+"Price"],ctaSelector=options["compare"+productNumber+"Cta"];productContainer.find(imageSelector).attr("src",data.featured_image),productContainer.find(titleSelector).html(data.title),productContainer.attr("data-product-handle",data.handle);var formattedPrice=(data.price/100).toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,");productContainer.find(priceSelector).html("$"+formattedPrice),productContainer.find(ctaSelector).attr("href",data.url),productContainer.removeClass("hide"),updateComparisonDisplay()}function handleCheckboxChange(handle2,productType2){$(options.compareCheckboxes+"[data-compare-product-handle="+handle2+"]").prop("checked",!0),handleType(productType2)}var productType=$.cookie("product_type");function handleType(productType2){productType2==="subwoofer"||productType2==="Subwoofer"?($(options.compareCheckboxesProductType+'[data-product-compare-type="Speaker"]').hide(),$(options.compareCheckboxesProductType+'[data-product-compare-type="speaker"]').hide()):productType2==="speakers"||productType2==="Speaker"?($(options.compareCheckboxesProductType+'[data-product-compare-type="Subwoofer"]').hide(),$(options.compareCheckboxesProductType+'[data-product-compare-type="subwoofer"]').hide()):(productType2==="none"||productType2!==void 0||productType2===void 0)&&($(options.compareCheckboxesProductType+'[data-product-compare-type="Speaker"]').show(),$(options.compareCheckboxesProductType+'[data-product-compare-type="Subwoofer"]').show())}productType===void 0?($(options.compareCheckboxesProductType+'[data-product-compare-type="Speaker"]').show(),$(options.compareCheckboxesProductType+'[data-product-compare-type="Subwoofer"]').show()):handleType(productType);function handleCheckboxUncheck(handleToRemove,productType2){var checkboxUnchecked=handleToRemove,unchecked=$.cookie(checkboxUnchecked);$(options.compareCheckboxes+"[data-compare-product-handle="+unchecked+"]").prop("checked",!1),handleType(productType2)}function updateComparisonCount(){var count=0;$.cookie("product_compare1")&&count++,$.cookie("product_compare2")&&count++,$.cookie("product_compare3")&&count++;var itemsText=count===1?" item":" items";$(options.compareCount).html(count.toString()+itemsText)}function updateComparisonDisplay(){var count=0;$.cookie("product_compare1")&&count++,$.cookie("product_compare2")&&count++,$.cookie("product_compare3")&&count++,count===0?hideComparisonBlock():($(options.compareBlock).addClass("show"),updateComparisonCount(),count===3?showFullNotification():hideFullNotification())}function showFullNotification(){$(options.compareFullNotification).removeClass("hide")}function hideFullNotification(){$(options.compareFullNotification).addClass("hide")}function hideComparisonBlock(){$(options.compareBlock).removeClass("show")}initialize();var product11Handle=$.cookie("product_compare1"),product22Handle=$.cookie("product_compare2"),product33Handle=$.cookie("product_compare3"),product_typeHandle=$.cookie("product_type");loadComparisonData(product11Handle,product22Handle,product33Handle,product_typeHandle)}compare(),$(document).ready(function(){$("img:not([alt])").each(function(){var filename=$(this).attr("src").split("/").pop().split(".")[0],relevantText=filename.replace(/-+/g," ").replace(/\b\w/g,function(firstLetter){return firstLetter.toUpperCase()});$(this).attr("alt",relevantText)})}),$(document).ready(function(){$(document).on("click","#conf-list li",function(event){var description=$(this).find("a").attr("data-description");if(description){$(".builder-alert").remove();var newDiv=$("<div>").addClass("builder-alert alert alert-success").append($("<a>").attr({href:"#",class:"close","data-dismiss":"alert","aria-label":"close"}).text("\xD7"),description);$("#builders-list").append(newDiv)}})}),$(document).ready(function(){$(document).on("click",".block-section-promocode_button .btn",function(event){event.preventDefault();var promoCodeId=$(this).closest(".block-section-promocode_button").find("label").attr("value"),$temp=$("<input>");$("body").append($temp),$temp.val(promoCodeId).select(),document.execCommand("copy"),$temp.remove(),alert("Promo code copied: "+promoCodeId)})}),$(document).ready(function(){$(".product__title .rating-pdp-heading, .product__title .rating-icon, .product__title .rating--text, .product__title .rating-count").click(function(){var reviewsTab=$('.product-tab[data-product-tab="reviews"]'),reviewsSection=$('.product-tab-main[data-product-tab="reviews"]'),productDescriptionSection=$(".product-descripation-main");$(".product-tab").removeClass("current-tab"),reviewsTab.addClass("current-tab"),$(".product-tab-main").not(reviewsSection).addClass("is-hidden-tab").removeClass("current-tab"),reviewsSection.removeClass("is-hidden-tab").addClass("current-tab"),productDescriptionSection[0].scrollIntoView({behavior:"smooth"})})});function equl(name){var heading=document.querySelectorAll(name),titleHeight=0;heading.forEach(title=>{var matchHeight=title.clientHeight;matchHeight>titleHeight&&(titleHeight=title.clientHeight)}),heading.forEach(divHeight=>{divHeight.style.minHeight=titleHeight+"px"})}
1setTimeout(function(){equl(".productCompare_checkbox"),equl(".block__section-product-content-inner .card-product-descripation"),equl(".productCompare_checkbox"),equl(".block__section-product-content-inner h4"),equl(".block__section---productcontent--color")},1e3),$(document).ready(function(){$("img").lazyload({threshold:200,effect:"fadeIn"})}),$(document).on("keydown",function(event){event.key=="Escape"&&($(".compare-products-svg").trigger("click"),$(".Details-menu-drawer-container .header__icon").trigger("click"),$(".header__icon--menu:before").css("background","transparent"))}),$(document).on("click",".recommended .rebuy-button, .recommended .rebuy-button span",function(){setTimeout(function(){fetch(window.Shopify.routes.root+"?section_id=cart-drawer").then(response=>response.text()).then(responseText=>{const cartid="CartDrawer",html=new DOMParser().parseFromString(responseText,"text/html"),destination=document.querySelector("#CartDrawer"),source=html.getElementById(cartid);source&&destination&&(destination.innerHTML=source.innerHTML),$.ajax({url:"/?section_id=cart-icon-bubble",type:"GET",dataType:"html",success:function(itemcount){$("#cart-icon-bubble").html($(itemcount).html()),$(".cart-count-bubble").trigger("click"),window.loyaltylion&&window.loyaltylion.ui.refresh(),Rebuy.init()}})})},2e3)}),$(document).on("click",".pdp-new-complete .rebuy-button, .pdp-new-complete .rebuy-button span  , .rebuy-button , .rebuy-button span",function(){var interval=setInterval(doStuff,100);function doStuff(){$(".rebuy-button").hasClass("working")||($.ajax({url:"/?section_id=cart-drawer",type:"GET",dataType:"html",success:function(carthtml){$("cart-drawer").html($(carthtml).find("cart-drawer").html()),$.ajax({url:"/?section_id=cart-icon-bubble",type:"GET",dataType:"html",success:function(itemcount){$("#cart-icon-bubble").html($(itemcount).html()),$(".drawer").hasClass("is-empty")&&$(".drawer").removeClass("is-empty"),window.loyaltylion&&window.loyaltylion.ui.refresh(),Rebuy.init()}})}}),clearInterval(interval))}}),screen.width<768&&$(".tg-product-container").slick({dots:!1,infinite:!1,speed:300,slidesToShow:4,slidesToScroll:1,arrows:!0,responsive:[{breakpoint:480,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:370,settings:{slidesToShow:3,slidesToScroll:1}}]}),(function($2,window2){var adjustAnchor=function(){var $anchor=$2(":target"),fixedElementHeight=100;$2("html, body").stop(),$anchor.length>0&&(setTimeout(function(){window2.scrollTo(0,$2(".page-sticky-with-content-flex").offset().top-fixedElementHeight)}),$anchor.trigger("click"))};$2(window2).on("hashchange load",function(){adjustAnchor()})})(jQuery,window),(function(){const dismissed=sessionStorage.getItem("caModalDismissed")==="true";function applyClasses(country){document.body.classList.remove("fromOther","fromCA"),country!=="US"&&document.body.classList.add("fromOther"),country==="CA"&&document.body.classList.add("fromCA")}function injectCanadaModal(){if(document.getElementById("CanadaModal"))return;document.body.insertAdjacentHTML("beforeend",`
2      <div id="CanadaModal" class="modal is-open" role="dialog" aria-modal="true" aria-label="Canada Store Selector">
3        <div class="modal-wrapper">
4          <span class="close1" aria-label="Close modal">&times;</span>
5
6          <div class="canada-modal-content">
7            <img src="https://www.svsound.com/cdn/shop/files/svs-mobile-logo.png"
8                 class="svs-modal-logo"
9                 alt="SVS US Logo">
10
11            <p>Hi! Looks like you're browsing from Canada.<br/>Want to visit your local SVS store?</p>
12
13            <div class="flags">
14              <div class="flag-option">
15                <a href="https://svsound.ca/">
16                  <img src="https://cdn.shopify.com/s/files/1/0921/3560/files/canadian-flag-svs.jpg?v=1690289645"
17                       alt="SVS Canada Store - Canadian Flag">
18                </a>
19                <a href="https://svsound.ca/">Yes, Please</a>
20              </div>
21
22              <div class="flag-option">
23                <a href="#" id="closebtn2"><img src="https://cdn.shopify.com/s/files/1/0921/3560/files/american-flag-svs.jpg?v=1690289645"></a>
24                <a href="#" id="closebtn">No, Thanks</a>
25              </div>
26            </div>
27          </div>
28        </div>
29      </div>
30    `);const modal=document.getElementById("CanadaModal");function lockScroll(){const scrollBarWidth=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=scrollBarWidth+"px"}function unlockScroll(){document.body.style.overflow="",document.body.style.paddingRight=""}function closeModal(){sessionStorage.setItem("caModalDismissed","true"),unlockScroll(),modal.remove()}lockScroll(),modal.querySelector(".close1").addEventListener("click",closeModal),modal.querySelector("#closebtn").addEventListener("click",closeModal),modal.querySelector("#closebtn2").addEventListener("click",closeModal),modal.addEventListener("click",function(e){e.target===modal&&closeModal()}),document.addEventListener("keydown",function(e){e.key==="Escape"&&closeModal()},{once:!0})}function handleCountry(country){applyClasses(country),country==="CA"&&!dismissed&&requestAnimationFrame(()=>injectCanadaModal())}function fetchGeo(){fetch("https://api.ipstack.com/check?access_key=ec4f23065c7a5b6f18e700a157f86a5e&format=1").then(r=>r.json()).then(data=>{const country=data&&data.country_code;country&&(localStorage.setItem("visitorCountry",country),localStorage.setItem("visitorCountryExpiry",Date.now()+1440*60*1e3),handleCountry(country))}).catch(()=>{})}
30function init(){const cachedCountry=localStorage.getItem("visitorCountry"),cacheExpiry=localStorage.getItem("visitorCountryExpiry"),now=Date.now();cachedCountry&&cacheExpiry&&now<parseInt(cacheExpiry,10)?handleCountry(cachedCountry):fetchGeo()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})();
31//# sourceMappingURL=/cdn/shop/t/674/assets/custom.js.map?v=84278800396841504861788186323

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.