(function() { function bxBootstrap() { var re = /bot|crawl|slurp|spider|mediapartners|headlesschrome|snap-prefetch|remotasks|woorank|uptime\.com|facebookexternalhit|facebookcatalog/i; if (re.test(navigator.userAgent) || navigator.userAgent == '') { return; } if (!(window.bouncex&&bouncex.website)) { var pushedData = []; if(window.bouncex && bouncex.push && bouncex.length){ pushedData = bouncex; } window.bouncex = {}; bouncex.pushedData = pushedData; bouncex.website = {"id":4159,"name":"Tivoli Audio","cookie_name":"bounceClientVisit4159","domain":"tivoliaudio.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"","force_https":false,"waypoints":false,"content_width":900,"gai":"UA-2624878-1","swids":"","sd":0,"ljq":"auto","campaign_id":0,"is_preview":false,"aco":{"first_party_limit":"3500","local_storage":"1"},"cmp":{"gdpr":0,"gmp":0,"whitelist_check":0},"burls":[],"ple":false,"fbe":true,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"var ALLOWED_DOMAINS = ['tivoliaudio.com'],\n\tEXCLUDED_ITEM_IDS = [\"music-system-home-smart-casting-hi-fi-gen-2\"],\n\tCANONICAL_URL = 'link[rel=\"canonical\"]',\n\tMETA_TITLE = 'meta[property=\"og:title\"]',\n\tMETA_IMAGE = 'meta[property=\"og:image\"]',\n\tATC_BUTTON = 'button[name=\"add\"]',\n\tBUY_NOW_BUTTON = 'a[data-pf-type=\"Button\"]:contains(\"Buy Now\")',\n\tITEM_TYPE = 'ShopifyAnalytics.meta.product.type',\n\tCATEGORY_GRID_ITEM = '.product-link',\n\tCUSTOMER_EMAIL = 'input[type=\"email\"]',\n\tCART_COOKIE = 'cart';\n\n/******** helper functions *********/\nfunction isValidDomain() {\n\treturn ALLOWED_DOMAINS.indexOf(window.location.hostname) > -1;\n}\n\nfunction isEnglish() {\n\treturn jQuery('html').attr('lang') === 'en';\n}\n\nfunction getPageUrl() {\n\treturn jQuery(CANONICAL_URL).attr('href') || bouncex.utils.url.allowParams();\n}\n\nfunction getPageTitle() {\n\treturn jQuery(META_TITLE).attr('content') || '';\n}\n\nfunction getIdFromUrl(url) {\n\tvar cleanUrl = bouncex.utils.url.allowParams('', url),\n\t\turlSplit = cleanUrl.split('/');\n\n\treturn urlSplit[urlSplit.length - 1];\n}\n\nfunction isAltItemPage() {\n\tvar urlPath = window.location.pathname;\n\n\treturn urlPath.indexOf('/pages/') > -1 && jQuery(BUY_NOW_BUTTON).length > 0 && urlPath.indexOf('-collection') === -1;\n}\n\nfunction getPageType() {\n\treturn isAltItemPage() ? 'altProduct' : bouncex.website.pts;\n}\n\nfunction isInStock() {\n\treturn jQuery(ATC_BUTTON).is(':enabled');\n}\n\nfunction isExcluded(itemId) {\n\treturn bouncex.utils.getNestedProp(ITEM_TYPE) === 'Accessory' ||\n\t\tEXCLUDED_ITEM_IDS.indexOf(itemId) > -1;\n}\n\n/******** start item tracking *********/\nfunction trackItem() {\n\tvar item;\n\n\tbouncex.et.onTrue(\n\t\tfunction () {\n\t\t\titem = buildItem();\n\t\t\treturn item.id && item.copy && item.imageurl;\n\t\t},\n\t\tfunction () {\n\t\t\tbouncex.push(['item', item]);\n\t\t\titem.groupId = bouncex.utils.getNestedProp('ShopifyAnalytics.meta.selectedVariantId', '');\n\t\t\t//initializeSkuEvents(item.id, item.groupId);\n\t\t\tfireViewItem(item.id, item.groupId);\n\t\t\ttrackAddToCart(item.id);\n\t\t},\n\t\t50);\n}\n\nfunction fireViewItem(id, groupId) {\n\tvar pushItem = { 'item:id': id };\n\n\tif (groupId) {\n\t\tpushItem['item:itemgroupid'] = groupId;\n\t}\n\tbouncex.push(['view item', pushItem]);\n}\n\nfunction buildItem() {\n\tvar url = getPageUrl(),\n\t\titemId = getIdFromUrl(url);\n\treturn {\n\t\tid: itemId,\n\t\tcopy: getPageTitle(),\n\t\tcategory: bouncex.utils.getNestedProp(ITEM_TYPE) || \"Global\",\n\t\timageurl: jQuery(META_IMAGE).attr(\"content\"),\n\t\turl: url,\n\t\tinstock: isInStock(),\n\t\texcluded: isExcluded(itemId),\n\t};\n}\n\nfunction trackAltPdp() {\n\tvar itemUrl = jQuery(BUY_NOW_BUTTON).attr('href'),\n\t\titemId;\n\n\tif (itemUrl) {\n\t\titemId = getIdFromUrl(itemUrl);\n\t\tfireViewItem(itemId);\n\t}\n}\n\n/* ------------------------------ SKU TRACKING ------------------------------ */\nfunction initializeSkuEvents(itemId, groupId) {\n\tvar lastSkuFired = groupId,\n\t\tskuId;\n\n\tbouncex.et.on(\n\t\tbouncex.document,\n\t\t'click.bxsku',\n\t\tfunction () {\n\t\t\tbouncex.et.onTrue(function () {\n\t\t\t\tskuId = bouncex.utils.getNestedProp('ShopifyAnalytics.meta.selectedVariantId', ''); \n\t\t\t\treturn skuId && skuId !== lastSkuFired;\n\t\t\t}, function () {\n\t\t\t\tbouncex.push([\n\t\t\t\t\t'select_sku',\n\t\t\t\t\t{\n\t\t\t\t\t\t'item:id': itemId,\n\t\t\t\t\t\t'item:itemgroupid': groupId,\n\t\t\t\t\t\t'item:feedid': skuId\n\t\t\t\t\t}\n\t\t\t\t]);\n\t\t\t\tlastSkuFired = skuId;\n\t\t\t}, 5);\n\t\t},\n\t\t'.js-swatch-color-item'\n\t);\n}\n\n/*************** Category Tracking ***************/\nfunction getItemsIds() {\n\treturn jQuery(CATEGORY_GRID_ITEM).map(function () {\n\t\tvar itemUrl = jQuery(this).attr('href'),\n\t\t\titemId;\n\n\t\tif (itemUrl) {\n\t\t\titemId = getIdFromUrl(itemUrl);\n\t\t\treturn itemId;\n\t\t}\n\t}).toArray().join();\n}\n\nfunction trackCategory() {\n\tvar itemIds = getItemsIds();\n\n\tif (itemIds && itemIds.length > 0) {\n\t\tbouncex.push(['view category', {\n\t\t\t'page:title': getPageTitle(),\n\t\t\t'items:ids': itemIds,\n\t\t\t'page:url': getPageUrl()\n\t\t}]);\n\t}\n}\n\n/******** Track LoggedIn User *********/\nfunction trackLoggedInUser() {\n\tvar email;\n\n\tif (!bouncex.vars.logged_in_identified && bouncex.vars.logged_in) {\n\t\temail = jQuery(CUSTOMER_EMAIL).attr('value');\n\n\t\tif (bouncex.utils.validate.email(email)) {\n\t\t\tbouncex.push(['user', {\n\t\t\t\temail: email,\n\t\t\t\tsource: 'LoggedIn'\n\t\t\t}]);\n\t\t\tbouncex.setVarAndReload('logged_in_identified', true);\n\t\t}\n\t}\n}\n\n/*************** Empty Cart Tracking ***************/\nfunction trackEmptyCart() {\n\tbouncex.setTimeout2(function () {\n\t\tif (bouncex.vars.cart_set && bouncex.vars.cart_qty === 0) {\n\t\t\tbouncex.push(['empty_cart', {}]);\n\t\t\tbouncex.setVarAndReload('cart_set', false);\n\t\t}\n\t}, 1500);\n}\n\n/******** track Add To Cart *********/\nfunction trackAddToCart(itemId) {\n\tif (itemId) {\n\t\tbouncex.off(jQuery(ATC_BUTTON), 'click.bx');\n\t\tbouncex.on(jQuery(ATC_BUTTON), 'click.bx', function () {\n\t\t\tvar cookie;\n\n\t\t\tbouncex.et.onTrue(function () {\n\t\t\t\tcookie = bouncex.getBounceCookie(CART_COOKIE);\n\t\t\t\treturn cookie;\n\t\t\t}, function () {\n\t\t\t\tbouncex.push(['add to cart', {\n\t\t\t\t\t'item:id': itemId,\n\t\t\t\t\t'cart:token': cookie\n\t\t\t\t}]);\n\t\t\t\tif (!bouncex.vars.cart_set) {\n\t\t\t\t\tbouncex.setVarAndReload('cart_set', true);\n\t\t\t\t}\n\t\t\t}, 50);\n\t\t});\n\t}\n}\n\n/******** cart replenishment *********/\nfunction replenish(cart) {\n\tbouncex.utils.cookies.create({\n\t\tname: CART_COOKIE,\n\t\tvalue: cart.token\n\t});\n\twindow.location.href = window.location.pathname + '?bx_replen=true';\n}\n\n/*************** Cart Tracking ***************/\nfunction initCartTracking() {\n\tbouncex.et.cart.init({\n\t\treplenish: replenish,\n\t\treplenishmentType: 'cookie'\n\t});\n\tbouncex.et.onVarChange('cart_qty', trackEmptyCart);\n\ttrackEmptyCart();\n}\n\n/******** itiniate tracking code *********/\nif (isValidDomain() && isEnglish()) {\n\tinitCartTracking();\n\ttrackLoggedInUser();\n\n\tswitch (getPageType()) {\n\t\tcase 'product':\n\t\t\tbouncex.setTimeout2(function() {\n trackItem();\n }, 1000);\n\t\t\tbreak;\n\t\tcase 'altProduct':\n\t\t\ttrackAltPdp();\n\t\t\tbreak;\n\t\tcase 'category':\n\t\t\ttrackCategory();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n}\n","dge":true,"bxidLoadFirst":false,"pie":true,"cme":true,"gbi_enabled":0,"bpush":false,"pt":{"cart":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.template-cart').length > 0"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.template-collection').length > 0"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkouts"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.template-index').length > 0"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.template-product').length > 0"}]]},"search":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.template-search').length > 0"}]]}},"els":{"CART - Checkout Button":"","CART - Promo Code Apply Button":"","CART - Promo Code Box":"","CAT - Product Grid Image":"","CAT - Quickview Box":"","CAT-AddtoCartButton":"","CAT-QuickviewAddtoCart":"","Footer":"","Navigation bar":"","PDP - Add to Cart Button":"","PDP - Color Option":"","PDP - Hero Image":"","PDP - Product Name":"","PDP - Product Price":"","PDP - Quantity Option":"","PDP - Review Stars":"","PDP - Size Option":"","PDP - Thumbnail Image":"","SEARCH - Product Grid Image":""},"vars":[{"name":"logged_in","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function(){\n if(bouncex.website.pts === \"checkout\"){\n return jQuery('.logged-in-customer-information').length > 0\n }\n return jQuery('.c-header__account [href=\"/account\"]').length > 0\n})()","trigger":""},{"name":"ever_logged_in","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.logged_in || null;","trigger":""},{"name":"cart_qty","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\n if(bouncex.website.pts === \"checkout\"){\n return null;\n }\n return jQuery('#CartCount').text()\n})()","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\n if(bouncex.website.pts === \"checkout\"){\n return null;\n }\n return jQuery('.ajaxcart__footer-total:first').text().replace(/[^0-9.]/g, '') || 0\n \n})()","trigger":""},{"name":"prod_price","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.c-pdp__price:first').text().replace(/[^0-9.]/g, '')","trigger":""},{"name":"prod_name","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.c-pdp__title:first').text()","trigger":""},{"name":"in_stock","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('[name=\"add\"] span:contains(\"Add to cart\")').length > 0","trigger":""},{"name":"submitted_onsite","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('.newsletter__form-message__text:contains(\"Thanks for subscribing\")').length > 0 ? true : null","trigger":""},{"name":"item_id_product","polling":"none","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"item_id_quickview","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"","trigger":"event"},{"name":"item_id_hover","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"","trigger":"event"},{"name":"items_ids","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"item_url","polling":"none","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"item_image_url","polling":"none","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"item_category","polling":"none","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"item_price","polling":"none","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"item_in_stock","polling":"none","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"page_title","polling":"none","persist":"no","page_types":["category"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"item_copy","polling":"none","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"","trigger":"pageload"},{"name":"cart_token","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_items","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_set","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"m1bt_in_cart","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"jQuery('.ajaxcart__product-name,.product__description__name.order-summary__emphasis').text().indexOf('Model One BT') > -1;","trigger":"pageload"},{"name":"submitted_this_pageview","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"}],"dgu":"pixel.cdnwidget.com","dgp":false,"ba":{"enabled":0,"fbte":0},"biu":"assets.bounceexchange.com","bau":"api.bounceexchange.com","beu":"events.bouncex.net","ibx":{"tjs":"","cjs":"","miw":1,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":null,"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":0,"spatm":1,"preinit_cjs":"","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"","eventSharing":false,"shqId":"","enabled":0},"pde":true,"fmc":["US","CA"],"fme":true,"fmx":"","uid2":false,"sdk":{"android":{"enabled":false,"enabledVersions":[],"eventModifications":null},"ios":{"enabled":false,"enabledVersions":[],"eventModifications":null}},"onsite":{"enabled":1},"ads":{"enabled":0},"pubs":{"enabled":0},"websdk":{"enabled":0,"devMode":0},"ga4_property_id":"342061801","ga4_measurement_id":"G-G1K8WXM289","tag_state_domain":"api.bounceexchange.com"} ; bouncex.tag = 'tag3'; bouncex.$ = window.jQuery; bouncex.env = 'production'; bouncex.restrictedTlds = {"casl":{"ca":1},"gdpr":{"ad":1,"al":1,"at":1,"ax":1,"ba":1,"be":1,"bg":1,"by":1,"xn--90ais":1,"ch":1,"cy":1,"cz":1,"de":1,"dk":1,"ee":1,"es":1,"eu":1,"fi":1,"fo":1,"fr":1,"uk":1,"gb":1,"gg":1,"gi":1,"gr":1,"hr":1,"hu":1,"ie":1,"im":1,"is":1,"it":1,"je":1,"li":1,"lt":1,"lu":1,"lv":1,"mc":1,"md":1,"me":1,"mk":1,"xn--d1al":1,"mt":1,"nl":1,"no":1,"pl":1,"pt":1,"ro":1,"rs":1,"xn--90a3ac":1,"ru":1,"su":1,"xn--p1ai":1,"se":1,"si":1,"sj":1,"sk":1,"sm":1,"ua":1,"xn--j1amh":1,"va":1,"tr":1}}; bouncex.client = { supportsBrotli: 1 }; bouncex.assets = {"ads":"5de2fc2e3ea08c50e42d129f0eabf3b3","creativesBaseStyles":"a53944a2","gpsAuction":"bbb80866120d17013073bb6d284cbd6b","inbox":"75060a85c1a4aebcc6f779b9e84db722","onsite":"abbdf7a49be9b52b097917b7b527b262","sms":"e39203556bab2366e56296ce42e974a7","websdk":"483170aad0127f060eef9a1ad6831b1e"}; bouncex.push = function(pushData) { bouncex.pushedData.push(pushData); } var runtime = document.createElement('script'); runtime.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/runtime_c81e76ee00d795b1eebf8d27949f8dc5.br.js'); runtime.setAttribute('async', 'async'); bouncex.initializeTag = function() { var script = document.createElement('script'); script.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/main-v2_6e52ef65505a4667ed45c7b026be408f.br.js'); script.setAttribute('async', 'async'); document.body.appendChild(script); var deviceGraphScript = document.createElement('script'); deviceGraphScript.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/cjs_min_6ef1802500d8367a80105e664862d0d7.js'); deviceGraphScript.setAttribute('async', 'async'); var dgAttrs = [{"Key":"id","Value":"c.js"},{"Key":"async","Value":"true"},{"Key":"data-apikey","Value":"2^HIykD"},{"Key":"data-cb","Value":"bouncex.dg.initPostDeviceGraph"},{"Key":"data-bx","Value":"1"},{"Key":"data-gm","Value":"1"},{"Key":"data-fire","Value":"1"}]; if (dgAttrs) { for (var i = 0; i < dgAttrs.length; i++) { deviceGraphScript.setAttribute(dgAttrs[i].Key, dgAttrs[i].Value); } } document.body.appendChild(deviceGraphScript); bouncex.initializeTag = function() {}; }; runtime.onload = bouncex.initializeTag; document.body.appendChild(runtime); } } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();