(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":6660,"name":"Ray-Ban CA (EN)","cookie_name":"bounceClientVisit6660","domain":"ray-ban.comcanadaen","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"","force_https":false,"waypoints":false,"content_width":900,"gai":"","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 CLEAN_URL = bouncex.utils.url.allowParams();\r\n\r\n// ---- HELPERS ---- //\r\n\r\nfunction setVarAndCookie(varName, value) {\r\n bouncex.setVar(varName, value);\r\n bouncex.setBounceCookie();\r\n}\r\n\r\nfunction getIdFromUrl(url) {\r\n return url.split('/').pop();\r\n}\r\n\r\nfunction getIdFromImgUrl(url) {\r\n url = url ? bouncex.utils.url.allowParams('', url) : '';\r\n return url.split('/').pop().split('_')[0];\r\n}\r\n\r\n// ---- ITEM META DATA ---- //\r\n\r\nfunction getItemCopy() {\r\n return jQuery('.rb-pdp-title').first().text().trim() || jQuery('.fc-product-name').first().text().trim() || jQuery('.fc-mobile-model-name').first().text().trim() || jQuery('h1.rb-product-name').first().text().trim();\r\n}\r\n\r\nfunction getItemCategory() {\r\n if (isCustomItem()) {\r\n return 'custom';\r\n }\r\n return jQuery('.rb-breadcrumb.rb-child').eq(-2).first().text() || jQuery('#productTypeKeywordVal').val() || jQuery('.category-name').first().text() || 'Global';\r\n}\r\n\r\nfunction getItemImage() {\r\n let img = jQuery('.fc-focused-image-preloader, .swiper-slide.image-gallery.swiper-slide-active img, .images-slide.current img').attr('src') ||\r\n jQuery('.rb-pdp-page .rb-product-images picture source').first().attr('src') || \r\n jQuery('.rb-pdp-page .rb-product-images picture img').attr('src') || \r\n jQuery('.rb-images-grid__image img').first().attr('src') || \r\n jQuery('[property=\"og:image\"]').attr('content') || '';\r\n\r\n if (!!img) {\r\n return img.indexOf('https:') > -1 ? img : 'https:' + img;\r\n }\r\n\r\n return '';\r\n}\r\n\r\nfunction itemInStock() {\r\n return jQuery('button[data-element-id=\"X_Pdp_Stickybar_AddCart\"]').first().text().indexOf('ADD TO BAG') > -1 || jQuery('.rb-btn.rb-btn--black.rb-sticky-bar__cta').first().text().indexOf('find another style') === -1;\r\n}\r\n\r\nfunction isExcludedProduct(productId) {\r\n var EXCLUSIONS_IDS = ['8056262352236'];\r\n\r\n return EXCLUSIONS_IDS.indexOf(productId) > -1; \r\n}\r\n\r\nfunction isExcludedElectronics(url) {\r\n return url.indexOf('/electronics') > -1;\r\n}\r\n\r\nfunction getItem() {\r\n var url = window.location.href.split('#').shift().split('?').shift();\r\n return {\r\n id: getIdFromUrl(url),\r\n copy: getItemCopy(),\r\n category: getItemCategory(),\r\n url: url,\r\n imageurl: getItemImage(),\r\n instock: itemInStock(),\r\n excluded: isExcludedProduct(getIdFromUrl(url)),\r\n excludedelectronics: isExcludedElectronics(url)\r\n };\r\n}\r\n\r\nfunction viewItem(itemId) {\r\n var groupId,\r\n lastItemId;\r\n if (lastItemId !== itemId) {\r\n bouncex.et.onTrue(function () {\r\n groupId = bouncex.utils.getNestedProp('utag_data.Products[' + itemId + '].Sku');\r\n return groupId;\r\n }, function () {\r\n lastItemId = itemId;\r\n bouncex.push(['view item', {\r\n 'item:id': itemId\r\n }]);\r\n \r\n if (jQuery('.rb-colours-list button').length == 1 || jQuery('.rb-colours-list button.rb-colour-variant--selected').length > 0) {\r\n bouncex.push([\r\n 'select_sku',\r\n {\r\n 'item:id': itemId,\r\n 'item:itemgroupid': groupId,\r\n 'item:feedid': itemId\r\n }\r\n ]);\r\n } else {\r\n // // jQuery('.rb-colours-list button:not(.rb-colour-variant--selected)').off('click.bx').on('click.bx', function () {\r\n // // var regex = /\\/(\\d+)__/;\r\n // // var match = jQuery(this).find('img').attr('src').match(regex);\r\n // // var extractedString = match && match[1];\r\n \r\n // // bouncex.push([\r\n // // 'select_sku',\r\n // // {\r\n // // 'item:id': extractedString,\r\n // // 'item:itemgroupid': groupId,\r\n // // 'item:feedid': extractedString\r\n // // }\r\n // // ]);\r\n // // });\r\n }\r\n }, 5);\r\n }\r\n}\r\n\r\nfunction fireItemEvents(item) {\r\n\r\n if (!isCustomItem() || isCustomItem() && isValidCustomImageFromMap(item.id, item.imageurl)) {\r\n \r\n bouncex.push(['item', item]);\r\n }\r\n}\r\n\r\nfunction isCustomItem() {\r\n return CLEAN_URL.indexOf('/customize') > -1;\r\n}\r\n\r\nfunction isValidCustomImageFromMap(itemId, imageUrl) {\r\n var customItemImageMap = {\r\n 'rb-2140-original-wayfarer-sunglasses': '001166010022100011100100000000200100000000100000000000',\r\n 'rb-3447-round-metal-sunglasses': '0001281400020011121110001111111110002100111110110200100000000000110000000000001',\r\n 'rb-2132-new-wayfarer-sunglasses': '000111670273110002000200100275100000000100000000000',\r\n 'rb-3016-clubmaster-sunglasses': '031000010200111110011200111101111111110351080000111490800000000000100000000001101',\r\n 'rb-3025-aviator-large-metal-sunglasses': '1090014610100006431001001111100111111111002010011111000000000001000000000001101',\r\n 'rb-3647N-round-double-bridge-sunglasses': '00019290000600020100111110150060000101111100111111111000000000000100000000000111',\r\n 'rb-3548N-hexagonal-sunglasses': '0152900004000000111111111002001011111013040000000010000000000110'\r\n },\r\n recipe = customItemImageMap[itemId],\r\n recipeParam = bouncex.utils.url.getParam('recipe', imageUrl),\r\n decodedParam = recipeParam.replace(/[^\\d.-]|-/g, '');\r\n\r\n return decodedParam.indexOf(recipe) > -1;\r\n}\r\n\r\n// ---- CATEGORY META DATA ---- //\r\n\r\nfunction getCategoryPageTitle() {\r\n return jQuery('.rb-page-title').first().text() || bouncex.utils.getNestedProp('boxes_config.pageName') || jQuery('.rb-plp-header__title').text().trim();\r\n}\r\n\r\nfunction getCategoryIds() {\r\n var selectors = '.rb-plp-product-tile__container, .rbBox.striked a, .rb-products.grid a';\r\n\r\n return jQuery(selectors).map(function () {\r\n var url = jQuery(this).attr('href') || '',\r\n itemId = getIdFromUrl(url);\r\n\r\n if (itemId) {\r\n return itemId;\r\n }\r\n\r\n }).toArray().join(',');\r\n}\r\n\r\nfunction getCategoryObj() {\r\n return {\r\n 'page:title': getCategoryPageTitle(),\r\n 'page:url': CLEAN_URL,\r\n 'items:ids': getCategoryIds()\r\n };\r\n}\r\n\r\nfunction getItemDetails() {\r\n var len = bouncex.utils.getNestedProp('dataLayer', []).length,\r\n details;\r\n\r\n for (let i = len - 1; i > -1; i--) {\r\n // eslint-disable-next-line no-undef\r\n let data = dataLayer[i];\r\n\r\n if (data.length > 2 && data[1] === 'add_to_cart' && data[2].items) {\r\n details = data[2].items[0];\r\n break;\r\n }\r\n }\r\n\r\n return details;\r\n}\r\n\r\n\r\n// ---- CART TRACKING ---- //\r\nfunction trackCustomCart() {\r\n bouncex.on(jQuery(document), 'ajaxComplete', function (e, x, settings) {\r\n if (settings.url.indexOf('/remix/add-to-cart') > -1 && settings.type === 'POST') {\r\n var recipeId = JSON.parse(settings.data).recipeId,\r\n url;\r\n\r\n if (recipeId) {\r\n url = CLEAN_URL + '?recipeId=' + recipeId;\r\n\r\n bouncex.push(['custom add',\r\n {\r\n 'item:id': bouncex.vars.item_id,\r\n 'item:customurl': url\r\n },\r\n ]);\r\n }\r\n\r\n bouncex.push(['add to cart', { 'item:id': bouncex.vars.item_id }]);\r\n\r\n var currItem = {\r\n id: bouncex.vars.item_id,\r\n img: window.location.protocol + jQuery('.fc-focused-image-preloader').attr('src'),\r\n url: encodeURI(CLEAN_URL)\r\n };\r\n addItemsToOSR(currItem);\r\n setVarAndCookie('cart_set', true);\r\n }\r\n });\r\n}\r\n\r\nfunction addItemsToOSR(currItem) {\r\n if (!currItem) {\r\n return;\r\n }\r\n var cart_items = JSON.parse(bouncex.vars.osr_items) || [];\r\n\r\n // Check if currItem.id is not present in cart_items\r\n var isItemAlreadyInCart = false;\r\n for (var i = 0; i < cart_items.length; i++) {\r\n if (cart_items[i].id === currItem.id) {\r\n isItemAlreadyInCart = true;\r\n break;\r\n }\r\n }\r\n\r\n if (!isItemAlreadyInCart) {\r\n // Add currItem to cart_items\r\n cart_items.push(currItem);\r\n }\r\n\r\n setVarAndCookie('osr_items', JSON.stringify(cart_items));\r\n}\r\n\r\nfunction addToCart() {\r\n if (isCustomItem()) {\r\n trackCustomCart();\r\n return;\r\n }\r\n\r\n bouncex.et.onVisible('.rb-sidebar-content__top-section:contains(\"ADDED TO BAG\"), .rb-minicart-container:contains(\"ADDED TO BAG\"), .rb-minicart-content__title .common__icon--circle-check', function () {\r\n var details = getItemDetails() || {},\r\n itemId = bouncex.vars.item_id,\r\n itemImg = jQuery('.rb-minicart-item__image img').attr('src'),\r\n replenItem = {\r\n catalogId: jQuery('#catalogId').val(),\r\n storeId: jQuery('#storeId').val(),\r\n langId: jQuery('#langId').val(),\r\n catEntryId: details.products_moco || '#catEntryId'.val(),\r\n quantity: 1,\r\n };\r\n\r\n bouncex.push([\r\n 'add to cart',\r\n {\r\n 'item:id': itemId,\r\n 'cart:item': JSON.stringify(replenItem),\r\n },\r\n ]);\r\n\r\n var currItem = {\r\n id: itemId,\r\n img: itemImg,\r\n url: encodeURI(CLEAN_URL)\r\n };\r\n\r\n addItemsToOSR(currItem);\r\n setVarAndCookie('cart_set', true);\r\n });\r\n}\r\n\r\nfunction emptyCart() {\r\n if (bouncex.website.pts === 'cart' && bouncex.vars.cart_qty === 0) {\r\n bouncex.push(['empty_cart']);\r\n //bouncex.setv('cart_set', false);\r\n //setVarAndCookie('cart_set', false);\r\n if (bouncex.vars.cart_set && bouncex.vars.items_in_cart === 0) {\r\n setVarAndCookie('cart_set', false);\r\n return;\r\n }\r\n }\r\n}\r\n\r\nfunction replenish(cart) {\r\n var replenishmentUrl = 'https://www.ray-ban.com/AjaxOrderItemAdd',\r\n $deferreds = [];\r\n\r\n\r\n cart.items.forEach(function (item) {\r\n $deferreds.push(makeReplenItem(item, replenishmentUrl));\r\n });\r\n\r\n $deferreds\r\n .reduce(function (promise, func) {\r\n return promise.then(function () {\r\n return func();\r\n });\r\n }, jQuery.Deferred().resolve([]))\r\n .then(replenComplete);\r\n}\r\n\r\nfunction makeReplenItem(data, replenishmentUrl) {\r\n return function () {\r\n return jQuery.ajax({\r\n type: 'GET',\r\n url: replenishmentUrl,\r\n data: bouncex.utils.url.generateQuerystring(data)\r\n });\r\n };\r\n}\r\n\r\nfunction replenComplete() {\r\n window.location.href = window.location.origin + window.location.pathname + '?bx_replen=true';\r\n}\r\n\r\n/** ***************************** LoggedIn User ********************************/\r\n\r\nfunction trackLoggedInUser() {\r\n if (bouncex.vars.logged_in && !bouncex.vars.logged_in_identified) {\r\n var qString,\r\n qStrObj,\r\n email;\r\n\r\n\r\n if (CLEAN_URL.indexOf('/MyDetailsView') > -1) {\r\n email = jQuery('#email').val();\r\n } else if (bouncex.website.pts === 'cart') {\r\n qString = jQuery('#delivery_information_form_add').attr('action');\r\n qStrObj = bouncex.utils.url.queryStringToObject(qString);\r\n email = qStrObj.email1;\r\n }\r\n\r\n if (bouncex.utils.validate.email(email)) {\r\n fireLoggedInUser(email);\r\n }\r\n }\r\n}\r\n\r\nfunction fireLoggedInUser(email) {\r\n bouncex.push([\r\n 'user',\r\n {\r\n 'email': email,\r\n 'source': 'LoggedIn'\r\n }\r\n ]);\r\n\r\n setVarAndCookie('logged_in_identified', true);\r\n}\r\n\r\n/** **************************** INITIALIZE EVENTS *****************************/\r\n\r\nfunction isValidCatObj(catObj) {\r\n return (\r\n catObj['items:ids']\r\n && catObj['page:url']\r\n && catObj['page:title']\r\n );\r\n}\r\n\r\nfunction initializeItemEvents() {\r\n var item;\r\n\r\n bouncex.et.onTrue(\r\n function () {\r\n item = getItem();\r\n return !!item.id &&\r\n !!item.copy &&\r\n !!item.category &&\r\n !!item.url &&\r\n !!item.imageurl;\r\n },\r\n function () {\r\n fireItemEvents(item);\r\n viewItem(item.id);\r\n },\r\n 20\r\n );\r\n\r\n // bouncex.et.onVarChange('item_id', function (oldVal) {\r\n // if (!oldVal) {\r\n // initItemChangeListener(item.id);\r\n // }\r\n // });\r\n}\r\n\r\n\r\nfunction initItemChangeListener(prevId) {\r\n bouncex.setInterval2(function () {\r\n var newId = getIdFromUrl(bouncex.utils.url.allowParams());\r\n if (newId && newId !== prevId) {\r\n prevId = newId;\r\n viewItem(prevId);\r\n }\r\n }, 1000);\r\n}\r\n\r\nfunction initializeCategoryEvents() {\r\n var categoryObj;\r\n if (bouncex.website.pts === 'category') {\r\n bouncex.et.onTrue(\r\n function () {\r\n categoryObj = getCategoryObj();\r\n return isValidCatObj(categoryObj);\r\n },\r\n function () {\r\n bouncex.push(['view category', categoryObj]);\r\n\r\n }\r\n );\r\n }\r\n}\r\n\r\nfunction initializeOSRCartEvents() {\r\n var cart_items = [];\r\n\r\n jQuery('.cart-item-container').each(function () {\r\n var url = jQuery(this).find('a').attr('href');\r\n\r\n if (url != '#') {\r\n var id = getIdFromUrl(url);\r\n var img = jQuery(this).find('img').attr('src');\r\n url = url.indexOf(window.location.origin) > -1 ? url : window.location.origin + url;\r\n\r\n if (id && img) {\r\n var currItem = {\r\n id: id,\r\n img: img,\r\n url: encodeURI(url)\r\n };\r\n\r\n cart_items.push(currItem)\r\n }\r\n }\r\n })\r\n\r\n setVarAndCookie('osr_items', JSON.stringify(cart_items))\r\n}\r\n\r\nfunction initializeCartEvents() {\r\n bouncex.et.cart.init({\r\n cartCountVariable: 'items_in_cart',\r\n storeValues: [],\r\n replenish: replenish,\r\n replenishmentType: 'ajax'\r\n });\r\n\r\n addToCart();\r\n emptyCart()\r\n}\r\n\r\nfunction isValidDomain() {\r\n return CLEAN_URL.indexOf('https://www.ray-ban.com') > -1;\r\n}\r\n\r\nfunction isEn() {\r\n var lang = bouncex.html.attr('lang') || '';\r\n\r\n return /^en/.test(lang);\r\n}\r\n\r\n// We want to limit tracking to only users located within the specified site geo.\r\nfunction isCorrectCountry(){\r\n return bouncex.state.geo.country_code === 'CA'\r\n}\r\n\r\nfunction isValidForTracking() {\r\n return isValidDomain() && isEn() && isCorrectCountry(); \r\n}\r\n\r\nfunction init() {\r\n if (!isValidForTracking()) {\r\n return;\r\n } else {\r\n trackLoggedInUser();\r\n initializeCartEvents();\r\n\r\n if (!isValidForTracking) { return; }\r\n\r\n switch (bouncex.website.pts) {\r\n case 'product':\r\n initializeItemEvents();\r\n break;\r\n case 'category':\r\n initializeCategoryEvents();\r\n break;\r\n case 'cart':\r\n initializeOSRCartEvents();\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n}\r\n\r\ninit();","dge":true,"bxidLoadFirst":false,"pie":true,"cme":true,"gbi_enabled":0,"bpush":false,"pt":{"cart":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/ShopCartDisplayView"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"localhost/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"acceptance1.ray-ban"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"acceptance.ray-ban.com/"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.rb-plp').length > 0;"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.rbBoxes.pslider').length > 0;"}]]},"checkout":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.rb-header-checkout').length > 0;"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('#pageName[value=\"HomePage\"]').length > 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"acceptance1.ray-ban"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"localhost/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"lrrbec8fep01.luxgroup.net"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('[value=\"ProductPage\"]').length > 0;"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('#productPageName').length > 0;"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/SearchDisplay?"}]]}},"els":{"blank_site_element":""},"vars":[{"name":"logged_in","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function(){\n if(window.location.href.indexOf('/customize/') > -1 ){\n return null;\n }\n\n return jQuery('.rb-header-account--logged').length > 0 || jQuery('[href*=\"https://www.ray-ban.com/Logoff\"]').length > 0 || (bouncex.website.pts === 'checkout' && bouncex.utils.getNestedProp('utag_data.User_LoginStatus') === 'Logged');\n})();","trigger":""},{"name":"ever_logged_in","polling":"all","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":"Number(jQuery('.number-of-products').text());","trigger":""},{"name":"in_stock","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.fc-add-to-cart-button:not(:disabled())').length > 0 || jQuery('.rb-pdp-sticky-bar--add:not(:disabled())').length > 0;","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('.rb-footer__mail__succes').length > 0 || jQuery('.rb-footer__mail__title__ok').length > 0 || null;","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"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":"cookie_modal_present","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"page_type","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"bouncex.website.pts;","trigger":"pageload"},{"name":"attentive_visible","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('#attentive_overlay').length > 0;","trigger":"pageload"},{"name":"items_in_cart","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function(){\n if(window.location.href.indexOf('ShopCartDisplayView') > -1 && !bouncex.state.mobile){\n return Number(jQuery('#itemTotal').text()) || 0;\n } else if (jQuery('.all-items-counter').length > 0) {\n return Number(jQuery('.all-items-counter').text().match(/\\((\\d+)\\)/)[1]) || null;\n }\n \n return jQuery('.number-of-products').length > 0 ? Number(jQuery('.number-of-products').text().trim()) : null;\n})();","trigger":"pageload"},{"name":"cart_total","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\n if (bouncex.website.pts === 'cart') {\n return Number(jQuery('#subTotalCalc').text().replace(/[^0-9.]/g, '')) || Number(jQuery('#subtotal').text().replace(/[^0-9.]/g, ''));\n }\n return Number(jQuery('.rb-minicart-summary__recap-total').text().replace(/[^0-9.]/g, '')) || null;\n})();","trigger":"pageload"},{"name":"product_page","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts === 'product';","trigger":"pageload"},{"name":"category_page","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts === 'category';","trigger":"pageload"},{"name":"product_name","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.rb-pdp-title').text().trim() || jQuery('.fc-product-name').text().trim() || jQuery('.fc-mobile-model-name').text().trim() || jQuery('h1.rb-product-name').text().trim();","trigger":"pageload"},{"name":"remix_product_name","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"window.location.href.indexOf('/customize/') > -1 ? jQuery('.fc-product-name').text() || jQuery('.fc-mobile-model-name').text().trim() : false;","trigger":"pageload"},{"name":"has_minimized","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_coupon_copied","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_set","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"prod_price","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"Number(jQuery('.fc-price').text().replace(/[^0-9.]/g, '')) || Number(jQuery('.rb-pdp-sticky-bar__price__discounted').eq(0).text().replace(/[^0-9.]/g, '')) || Number(jQuery('.rb-pdp-sticky-bar__price__original').eq(0).text().replace(/[^0-9.]/g, '')) || Number(jQuery('.rb-prices__discounted').eq(0).text().replace(/[^0-9.]/g, ''));","trigger":"pageload"},{"name":"tracked_cart_images","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;(function(){\n var $cartItems = jQuery('.rb-sidebar-content__item-left-column img:visible'),\n \titems_in_cart = Number(jQuery('.rb-badge').eq(1).text().replace(/[^0-9.]/g, '')) || Number(jQuery('.odr-title').eq(1).text().replace(/[^0-9.]/g, '')) || Number(jQuery('.cart-qty').text().replace(/[^0-9.]/g, '')),\n \timages;\n\n if ($cartItems.length > 0) {\n images = [];\n $cartItems.each(function(ind, img){\n images.push(jQuery(img).attr('src'));\n });\n return images.join(' ');\n } else if (jQuery('.empty-cart-header:visible').length > 0 || !items_in_cart) {\n return false;\n } else {\n return null;\n }\n})();","trigger":"pageload"},{"name":"item_id","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"window.location.href.indexOf('#') > -1 ? window.location.href.split('#').shift().split('/').pop() : window.location.href.split('?').shift().split('/').pop();","trigger":"pageload"},{"name":"atc_mask_clicked","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"osr_items","polling":"none","persist":"permanent","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":0,"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":1,"spatm":0,"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,"fme":false,"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":"","ga4_measurement_id":"","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":"7b352b1295e35e9c90089d9dd48e488f","creativesBaseStyles":"a53944a2","gpsAuction":"bbb80866120d17013073bb6d284cbd6b","inbox":"75060a85c1a4aebcc6f779b9e84db722","onsite":"abbdf7a49be9b52b097917b7b527b262","sms":"e39203556bab2366e56296ce42e974a7","websdk":"fd6a81d9d51cda3a3a55d6ab16eb7ac5"}; 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_5a114136d61ff5a1340c5ba91977f308.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(); }})();