(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":4476,"name":"Awe Inspired","cookie_name":"bounceClientVisit4476","domain":"aweinspired.com","ct":"multi_cookie","ally":0,"ei":0,"tcjs":"","cjs":"bouncex.infoStore = {\n sessionStorageIdentifier: 'bxInfoStore',\n set: function(data) {\n var hashedData = bouncex.lz.compressToURI(JSON.stringify(data));\n try {\n sessionStorage.setItem(this.sessionStorageIdentifier, hashedData);\n } catch(e) {\n bouncex.err('session storage failure');\n }\n },\n \n get: function() {\n var info = sessionStorage.getItem(this.sessionStorageIdentifier);\n return info ? JSON.parse(bouncex.lz.decompressFromURI(info)) : '';\n },\n \n infoIsStored: function() {\n return !!sessionStorage.getItem(this.sessionStorageIdentifier);\n },\n \n populateFields: function(fields) {\n if (!this.infoIsStored()) return;\n \n var data = this.get();\n for (var field in fields) {\n if (fields.hasOwnProperty(field)) {\n fields[field].val(data[field]);\n }\n }\n }\n};","force_https":false,"waypoints":false,"content_width":900,"gai":"UA-75535711-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":false,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"var ATC_BTN = '#btnAddToBag',\n\tCOOKIE_NAME = 'cart';\n\nif (window.location.hostname.indexOf('aweinspired.com') > -1 && getUrl().indexOf('giftcard') === -1) {\n\tif (bouncex.website.pts === 'product') {\n\t\tvar item,\n\t\t\tsku;\n\t\tbouncex.et.onTrue(\n\t\t\tfunction () {\n\t\t\t\titem = getItem();\n\t\t\t\tsku = jQuery('option[selected=\"selected\"]').val();\n\t\t\t\treturn item.id && item.copy && item.imageurl && item.category && item.url && sku;\n\t\t\t},\n\t\t\tfunction () {\n\t\t\t\tbouncex.push(['item', item]);\n\n\t\t\t\titem.groupId = item.id;\n\t\t\t\tinitializeSkuEvents(item);\n\n\t\t\t\tfireViewItem(item);\n\t\t\t\tbouncex.on(jQuery(ATC_BTN), 'click.bx', function () {\n\t\t\t\t\tfireATC(item.id);\n\t\t\t\t});\n\t\t\t},\n\t\t\t15\n\t\t);\n\t}\n\n\tif (bouncex.website.pts === 'category') {\n\t\tvar categoryIds;\n\t\tbouncex.et.onTrue(\n\t\t\tfunction () {\n\t\t\t\tcategoryIds = getCategoryIds();\n\t\t\t\treturn categoryIds.length > 0;\n\t\t\t},\n\t\t\tfunction () {\n\t\t\t\tbouncex.push(['view category', {\n\t\t\t\t\t'page:url': bouncex.utils.url.allowParams('q'),\n\t\t\t\t\t'items:ids': categoryIds\n\t\t\t\t}]);\n\t\t\t},\n\t\t\t15\n\t\t);\n\t}\n\n\tif (bouncex.website.pts === 'cart') {\n\t\tbouncex.setInterval2(function () {\n\t\t\tif (bouncex.vars.cart_set === true && jQuery('.empty-page-content.hide').length === 0) {\n\t\t\t\tfireEmptyCart();\n\t\t\t}\n\t\t}, 1000);\n\t}\n\n\ttrackCartEvents();\n\ttrackLoggedInUser();\n\ttrackCartAddOns();\n}\n\n/* ------------ HELPER FUNCTIONS ---------- */\nfunction getUrl() {\n\treturn bouncex.utils.url.allowParams();\n}\n\n/* ------------ITEM TRACKING ---------- */\nfunction getItem() {\n\treturn {\n\t\tid: bouncex.utils.getNestedProp('ShopifyAnalytics.meta.product.id'),\n\t\tcopy: jQuery('h1.product-essentials__title').first().text().trim() || '',\n\t\timageurl: jQuery('meta[property=\"og:image:secure_url\"]').first().attr('content') || '',\n\t\tcategory: bouncex.utils.getNestedProp('ShopifyAnalytics.meta.product.type') || 'jewlery',\n\t\turl: jQuery('link[rel=canonical]').attr('href') || getUrl(),\n\t\tinstock: jQuery(ATC_BTN).text().trim().indexOf('Add to Cart') > -1\n\t};\n}\n\nfunction fireViewItem(item) {\n\tvar pushItem = {\n\t\t'item:id': item.id,\n\t};\n\n\tif (item.groupId) {\n\t\tpushItem['item:itemgroupid'] = item.groupId;\n\t}\n\tbouncex.push(['view item', pushItem]);\n}\n\n// /* ------------- CATEGORY TRACKING ------------*/\nfunction getCategoryIds() {\n\treturn jQuery('.swym-add-to-wishlist-view-product').map(function () {\n\t\tvar id = jQuery(this).attr('data-product-id');\n\t\tif (id) {\n\t\t\treturn id;\n\t\t}\n\t}).toArray().join(',');\n}\n\nfunction initializeSkuEvents(item) {\n\tvar skuObj = {\n\t\tid: item.id || '',\n\t\tgroupId: item.groupId || '',\n\t\tskuId: '',\n\t},\n\t\tskuId = '';\n\n\tbouncex.et.on(\n\t\tjQuery(document),\n\t\t'click.bxsku',\n\t\tfunction () {\n\t\t\tbouncex.setTimeout2(function () {\n\t\t\t\tskuId = bouncex.utils.url.getParam('variant') || skuId;\n\n\t\t\t\tif (!skuId || skuObj.skuId === skuId) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tskuObj.skuId = skuId;\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': skuObj.id,\n\t\t\t\t\t\t'item:itemgroupid': skuObj.groupId,\n\t\t\t\t\t\t'item:feedid': skuObj.skuId\n\t\t\t\t\t}\n\t\t\t\t]);\n\t\t\t}, 700);\n\t\t},\n\t\t'li.product-config__option-item:visible'\n\t);\n}\n\n/* |----------- CART INIT AND REPLENISHMENT ----------------| */\nfunction trackCartAddOns() {\n\tvar $rebuyButton;\n\tbouncex.et.onVisible('#cartDrawer.is-active', function (e) {\n\t\tbouncex.et.onTrue(function () {\n\t\t\t$rebuyButton = e.find('.rebuy-button');\n\t\t\treturn $rebuyButton.length;\n\t\t}, function () {\n\t\t\taddRebuyButtonListeners($rebuyButton);\n\t\t}, 5);\n\t});\n}\n\nfunction addRebuyButtonListeners($rebuyButton) {\n\tvar clickEvent = 'click.bxCartAtc';\n\tbouncex.off($rebuyButton, clickEvent);\n\tbouncex.et.on($rebuyButton, clickEvent, function (e) {\n\t\tvar parentClass = jQuery(e.currentTarget).parents('[class*=product-id]').attr('class') || '',\n\t\t\tclassMatch = parentClass.match(/product-id-[0-9]+/g) || [''],\n\t\t\titemId = classMatch[0].replace(/[^0-9]/g, '');\n\t\tif (itemId) {\n\t\t\tfireATC(itemId);\n\t\t}\n\t});\n}\n\nfunction replenish(cart) {\n\tbouncex.utils.cookies.create({ name: COOKIE_NAME, value: cart.token });\n\twindow.location.href = window.location.pathname + '?bx_replen=true';\n}\n\nfunction trackCartEvents() {\n\tbouncex.et.cart.init({\n\t\treplenishmentType: 'cookie',\n\t\treplenish: replenish,\n\t});\n\n\tbouncex.et.onVarChange('cart_qty', trackEmptyCart);\n}\n\nfunction fireATC(itemId) {\n\tvar cookie;\n\tbouncex.et.onTrue(\n\t\tfunction () {\n\t\t\tcookie = bouncex.getBounceCookie(COOKIE_NAME);\n\t\t\treturn cookie;\n\t\t},\n\t\tfunction () {\n\t\t\tbouncex.push([\n\t\t\t\t'add to cart',\n\t\t\t\t{\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]);\n\n\t\t\tbouncex.setv('cart_set', true);\n\t\t\tbouncex.setBounceCookie();\n\t\t},\n\t\t15\n\t);\n}\n\nfunction trackEmptyCart() {\n\tif (bouncex.vars.cart_set === true && bouncex.vars.cart_qty === 0) {\n\t\tfireEmptyCart();\n\t}\n}\n\nfunction fireEmptyCart() {\n\tbouncex.push(['empty_cart', {}]);\n\tbouncex.setv('cart_set', false);\n\tbouncex.setBounceCookie();\n}\n\n\n/* ------------- LOGGED IN USER TRACKING ------------ */\nfunction trackLoggedInUser() {\n\tif (bouncex.vars.logged_in && bouncex.vars.logged_in_identified === false) {\n\t\tvar email;\n\t\tbouncex.et.onTrue(\n\t\t\tfunction () {\n\t\t\t\temail = bouncex.utils.getNestedProp('SHOPIFY_CUSTOMER_EMAIL');\n\t\t\t\treturn bouncex.utils.validate.email(email);\n\t\t\t},\n\t\t\tfunction () {\n\t\t\t\tbouncex.push(['user', {\n\t\t\t\t\temail: email,\n\t\t\t\t\tsource: 'LoggedIn'\n\t\t\t\t}]);\n\t\t\t\tbouncex.setv('logged_in_identified', true);\n\t\t\t\tbouncex.setBounceCookie();\n\t\t\t},\n\t\t\t15\n\t\t);\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;"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/cart"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType') === 'collection';"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkouts/"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType') === 'home';"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType') === 'product' && window.meta.product.type !== 'Gift Card';"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search?q="}],[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('h2.visually-hidden').length > 0;"}]]}},"els":{"checkout_page_phone_number":"[data-address-field=\"phone\"]","skip_link":"a.skip-link[href=\"#MainContent\"]"},"vars":[{"name":"logged_in","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"!!bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.customerId') || jQuery('.logged-in-customer-information:visible').length > 0;","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":"no","page_types":[],"testmode":false,"default":"0","code":"(function() {\n if (jQuery('.cart--empty-message:visible, .cart-drawer__empty-text:visible').length > 0) {\n return 0;\n }\n var count = 0;\n if (bouncex.website.pts === 'checkout') {\n jQuery('#order-summary .product-thumbnail__quantity').each(function() {\n count += Number(jQuery(this).text());\n });\n return count;\n }\n \n return Number(jQuery('.cart_item_div .CartCount').eq(0).text().replace(/[^0-9.]/g, ''));\n})();","trigger":""},{"name":"cart_value","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"(function() {\n if (jQuery('.cart--empty-message:visible, .cart-drawer__empty-text:visible').length > 0) {\n return 0;\n }\n if (bouncex.website.pts === 'checkout') {\n return Number(jQuery('.order-summary__section .total-line--subtotal .total-line__price').text().replace(/[^0-9.]/g, ''));\n }\n if (bouncex.website.pts === 'cart') {\n return Number(jQuery('.cart-subtotal__price').text().trim().replace(/[^0-9.]/g, ''));\n }\n return Number(jQuery('span[js-ajax-cart=\"subtotal\"]').text().trim().replace(/[^0-9.]/g, ''));\n})();","trigger":""},{"name":"in_stock","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.product-form__cart-submit:contains(\"Sold out\")').length === 0;","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('.klaviyo_messages .success_message:visible').length > 0 || \nwindow.location.pathname.indexOf('/quiz-result/') > -1 && !!jQuery('.quiz__wrapper').length ||\nnull;","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"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":"checkout_phase","polling":"all","persist":"no","page_types":["checkout"],"testmode":false,"default":"false","code":"(function() {\n var urlQuery = bouncex.utils.url.getParam('step');\n if (urlQuery.indexOf('information') > -1) {\n return 'Information';\n } else if (urlQuery.indexOf('shipping') > -1) {\n return 'Shipping';\n } else if (urlQuery.indexOf('payment') > -1) {\n return 'Payment';\n }\n return jQuery('.breadcrumb__item--current .breadcrumb__text').text();\n})();","trigger":"pageload"},{"name":"quiz_results_visible","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#goddessIntro').length > 0;","trigger":"pageload"},{"name":"mini_cart_open","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#cartDrawer.is-active').length > 0;","trigger":"pageload"},{"name":"ecap_count","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"0","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":{"bxid":"espemailid"},"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":"Send this text to sign-up for automated, recurring Awe Inspired marketing texts, like cart reminders.","eventSharing":true,"shqId":"sycw7yhp69-1","enabled":0},"pde":true,"fmc":["US","CA"],"fme":true,"fmx":"","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},"ga4_property_id":"268330510","ga4_measurement_id":"G-FZ3KRRQNRJ","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":"005ab6b05ecd8ae76686b26c919990d4","creativesBaseStyles":"a53944a2","gpsAuction":"bbb80866120d17013073bb6d284cbd6b","inbox":"75060a85c1a4aebcc6f779b9e84db722","onsite":"abbdf7a49be9b52b097917b7b527b262","sms":"e39203556bab2366e56296ce42e974a7","websdk":"3cdb3cd0b71927a211b8afdc85918cfd"}; bouncex.push = function(pushData) { bouncex.pushedData.push(pushData); } var runtime = document.createElement('script'); runtime.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/runtime_6459738026535cda4232dc813c61447d.br.js'); runtime.setAttribute('async', 'async'); runtime.setAttribute('onload', 'bouncex.initializeTag()'); bouncex.initializeTag = function() { var script = document.createElement('script'); script.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/main-v2_a105bfc38e137e962d06a9aa59c59485.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_3a843477d8e318f67237a66d0a58c542.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() {}; }; document.body.appendChild(runtime); } window._shq = window._shq || []; var eventSharingCartridge = document.createElement('script'); eventSharingCartridge.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/wknd_audiences_2648fa8509e4b3a98a2790bb8171ddc1.js'); eventSharingCartridge.setAttribute('async', 'async'); document.body.appendChild(eventSharingCartridge); } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();