(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":4577,"name":"Sierra","cookie_name":"bounceClientVisit4577","domain":"sierra.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"/* Omniture tracking Wrike: 739206263 */\nwindow.bouncex.omnitureLinkTrack = function(label, event, action) {\n window.s.linkTrackVars = 'prop5';\n window.s.linkTrackEvents = event;\n\n /* Setting of variables */\n window.s.prop5 = label;\n\n if (action === 'submission') {\n window.s.eVar1 = label;\n window.s.events = 'event2';\n window.s.linkTrackEvents += ',event2';\n window.s.linkTrackVars += ',eVar1,events';\n }\n\n /* Link Track Image Request */\n if (window.s.tl) {\n window.s.tl(true, 'o', label);\n }\n\n /* Resetting of variables */\n window.s.eVar1 = undefined;\n window.s.prop5 = undefined;\n};\n\n/* Audience Wishlist WRIKE: 945854201*/\nfunction initWishlist() {\n bouncex.et.on(bouncex.document, 'click.audList', function(e) {\n var favBtn = jQuery(e.target),\n prodIdSrc = favBtn.attr('class').split(' ').filter(function(e) {\n return e.indexOf('likeButton') > -1;\n }).pop(),\n prodId = !!prodIdSrc ? prodIdSrc.replace(/[^0-9.]/g, '') : '',\n onWl = favBtn.prop('checked');\n\n if (!!prodId && onWl) {\n _shq.push(['onProductList', {\n listId: 'wish_list',\n action: 'add',\n productId: prodId,\n customList: true\n }]);\n }\n if (!!prodId && !onWl) {\n _shq.push(['onProductList', {\n listId: 'wish_list',\n action: 'remove',\n productId: prodId,\n customList: true\n }]);\n }\n }, '.likeButton');\n}\n\nif (jQuery('.likeButton').length > 0) {\n initWishlist();\n}\n\nenable.feature.DISABLE_RELOAD_CAMPAIGNS_V2","force_https":false,"waypoints":false,"content_width":900,"gai":"UA-41173704-2","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,"mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\nvar EXCLUDED_BRANDS = [\n '1822 DENIM',\n 'ALLBIRDS',\n 'ALL-CLAD',\n 'BABY JOGGER',\n 'BIRKENSTOCK',\n 'BODUM',\n 'CALPHALON',\n 'CALPHALON CLASSIC',\n 'CALPHALON CONTEMPORARY',\n 'CALPHALON EASY SYSTEM',\n 'CALPHALON PREMIER',\n 'CANADA GOOSE',\n 'CHAMPION',\n 'COLUMBIA SPORTSWEAR',\n 'CROCS',\n 'CUSINART',\n 'DASH',\n 'DASH ELECTRICS',\n 'DENBY',\n 'DOCKERS',\n 'DYSON',\n 'EMERIL',\n 'FITZ & FLOYD',\n 'FLEISCHER AND WOLF',\n 'FORTESSA',\n 'FULL CIRCLE',\n 'GLOSSIER',\n 'GU',\n 'HELLO BELLO',\n 'HEY DUDE',\n 'HOKA',\n 'HYDRA GEAR',\n 'JADE YOGA',\n 'JETT',\n 'JURA',\n 'K9',\n 'KAISER',\n 'KATE SPADE',\n 'KITCHENAID',\n 'KRUPS',\n 'KUHL',\n 'LAURA ASHLEY',\n 'LAVANILA',\n 'LE CREUSET',\n 'LEVIS',\n 'LIPPER',\n 'LODGE',\n 'MARGOT',\n 'MAUVIEL',\n 'MULO',\n 'NAMBE',\n 'NEW BALANCE',\n 'NEWTON RUNNING',\n 'OLD GRINGO',\n 'OUTDOOR VOICES',\n 'OUTWARD HOUND',\n 'PAPILLIO BY BIRKENSTOCK',\n 'PELOTON',\n 'PIKOLINOS',\n 'POOCHPLANET',\n 'PORTMEIRION',\n 'RIEDEL',\n 'ROWENTA',\n 'RUFFONI',\n 'RUMPL',\n 'SCANPAN',\n 'SKECHERS',\n 'SIMPLY CALPHALON',\n 'STAUB',\n 'STERLING',\n 'SWISS DIAMOND',\n 'THE NAKED BEE',\n 'TOMMY HILLFIGER',\n 'TOPO DESIGNS',\n 'UNDER ARMOUR',\n 'VANS',\n 'VARLEY',\n 'VITAMIX',\n 'WHOLESOME PRIDE',\n 'WILD ZORA',\n 'WILL LEATHER GOODS',\n 'WOOLITE',\n 'WUSTHOF',\n 'YETI',\n 'ZWILLING',\n 'ZWILLING J.A. HENCKELS',\n];\n\n/* --------------------------------- HELPERS -------------------------------- */\n\nfunction getUrl(param) {\n param = param || ''\n return bouncex.utils.url.allowParams(param);\n}\n\nfunction setVarAndCookie(varName, value) {\n bouncex.setVar(varName, value);\n bouncex.setBounceCookie();\n\n return;\n}\n\nfunction getItemIdFromUrl(url) {\n var itemId = ''\n if (url) {\n itemId = url.split('/').slice('-2')[0]\n }\n\n return itemId\n}\n\nfunction getSelectedPrice(selector) {\n var $items = jQuery(selector).contents();\n\n for (var i = 0; i < $items.length; i++) {\n var price = Number(jQuery($items[i]).text().replace(/[^0-9.]/g, ''));\n if (price) {\n return price.toFixed(2);\n }\n }\n\n return \"\";\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction getItemBrand() {\n return jQuery('.productTitle a').text().toUpperCase()\n}\n\nfunction getItem() {\n return {\n id: jQuery('.itemNo').text().trim().replace('Item #', ''),\n copy: jQuery('.productTitle').first().text().trim() || jQuery('meta[name=\"og:title\"]').attr('content'),\n category: jQuery('.breadcrumbs:last .breadcrumbs-item:last').text().trim(),\n url: jQuery('link[rel=canonical]').attr('href') || getUrl(),\n imageurl: jQuery('.primaryImageContainer a').attr('href') || '',\n instock: bouncex.vars.in_stock,\n excluded_brand: EXCLUDED_BRANDS.indexOf(getItemBrand()) > -1,\n prod_price: bouncex.vars.prod_price.toFixed(2),\n original_price: getSelectedPrice('.oldPrice') || bouncex.vars.prod_price.toFixed(2),\n compare_price: getSelectedPrice(\"#compareAtLink\")\n };\n}\n\nfunction fireViewItem(item) {\n var pushItem = {\n 'item:id': item.id,\n };\n\n if (item.groupId) {\n pushItem['item:itemgroupid'] = item.groupId;\n }\n bouncex.push(['view item', pushItem]);\n\n return;\n} \n\nfunction isExcluded(item) {\n return item.url.indexOf('giftcard') > -1;\n}\n\nfunction initializeItemEvents() {\n var item;\n\n bouncex.et.onTrue(\n function() {\n item = getItem();\n return !!item.id &&\n !!item.copy &&\n !!item.category &&\n !!item.url &&\n !!item.imageurl;\n },\n function() {\n if (isExcluded(item)) {\n return;\n }\n bouncex.push(['item', item]);\n\n item.groupId = item.id\n initializeSkuEvents(item);\n fireViewItem(item);\n\n return;\n },\n 10\n );\n\n return;\n}\n\n/* ------------------------------ SKU TRACKING ------------------------------ */\n\nfunction initializeSkuEvents(item) {\n var skuObj = {\n id: item.id || '',\n groupId: item.groupId || '',\n skuId: '',\n },\n $allPropertyOptionContainer = jQuery('.propertySelection:not(\".quantityContainer\")');\n\n bouncex.et.on(\n jQuery(document),\n 'click.bxsku',\n function() {\n bouncex.setTimeout2(function(){\n var $allSelectedProperties = jQuery('.selected');\n\n if ($allSelectedProperties.length === $allPropertyOptionContainer.length) {\n var skuProperties = '';\n\n for (var i = 0; i < $allSelectedProperties.length; i++) {\n var itemElId = jQuery($allSelectedProperties[i]).attr('id');\n\n if (itemElId) {\n skuProperties += \"-\" + itemElId.split('property' + (i + 1)).pop();\n \n if (skuProperties.indexOf('forwardslash') > -1) {\n skuProperties = skuProperties.split('forwardslash').join('/')\n }\n \n if (skuProperties.indexOf('dot') > -1) {\n skuProperties = skuProperties.split('dot').join('.')\n }\n }\n }\n\n if (skuProperties) {\n skuObj.skuId = skuObj.id + skuProperties\n bouncex.push([\n 'select_sku',\n {\n 'item:id': skuObj.id,\n 'item:itemgroupid': skuObj.groupId,\n 'item:feedid': skuObj.skuId\n }\n ]);\n return;\n }\n }\n }, 1000)\n },\n '.colorChipSelectionBox, .selectionBox'\n );\n\n return;\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\n\nfunction getItemIdsCat() {\n var ids = [],\n $tiles = jQuery('.productThumbnailContainer .js-gaShoppingAndMarketing'),\n i = 0,\n id = '';\n\n for (i; i < $tiles.length; i++ ) {\n id = jQuery($tiles[i]).attr('data-baseid') || ''\n\n if (!id || ids.indexOf(id) > -1) {\n continue;\n }\n\n ids[ids.length] = id;\n }\n\n return ids.join(',');\n}\n\nfunction getCategoryObject() {\n return {\n 'page:url': getUrl(),\n 'items:ids': getItemIdsCat()\n };\n}\n\nfunction initializeCategoryEvents() {\n var categoryObj,\n eventName = 'view ' + bouncex.website.pts;\n\n bouncex.et.onTrue(\n function() {\n categoryObj = getCategoryObject();\n return !!categoryObj['items:ids'].length && \n !!categoryObj['page:url'];\n },\n function() {\n bouncex.push([eventName, categoryObj]);\n },\n 10\n );\n\n return;\n}\n\n/* --------------------------- QUCIKVIEW TRACKING --------------------------- */\n\nfunction initalizeQuickViewEvents() {\n // determine all ajax properties after add to cart click\n bouncex.et.onVisible('#fancybox-overlay:visible', function(){\n bouncex.setTimeout2(function(){\n var $iframeContent = jQuery('#fancybox-frame').contents(),\n $atcBtn = $iframeContent.find('#addToCartButton'),\n itemId = $iframeContent.find('#baseNo').attr('value'),\n item = {\n id: \"\",\n groupId: ''\n };\n \n if (itemId) {\n item[\"id\"] = itemId\n item[\"groupId\"] = itemId\n \n fireViewItem(item)\n }\n \n // tracks quick ajax add to cart\n bouncex.et.on($atcBtn, 'click.bx', function() {\n var itemProperties;\n \n bouncex.et.onTrue(\n function(){\n itemProperties = jQuery('#fancybox-frame').contents().find('.itemNumber').text()\n return itemProperties\n },\n function(){\n itemProperties = itemProperties.replace('Item #: ', '');\n $iframeContent = jQuery('#fancybox-frame').contents(); // sets new item carted iframe\n \n var itemPropertiesArr = itemProperties.split('-'),\n itemId = itemPropertiesArr[0],\n replenData = {};\n \n \n replenData[\"PropertyCount\"] = itemPropertiesArr.length - 1;\n replenData[\"quantity\"] = $iframeContent.find('.quantity').text().split('Quantity: ').pop();\n replenData[\"baseNo\"] = itemId\n \n for (var i = 1; i -1\n && !bouncex.utils.url.getParam('bx_cart')\n ) {\n\n var data = settings.data || '',\n dataArr = data.split('&'),\n replenData = {},\n itemId;\n \n for (var i = 0; i < dataArr.length; i++) {\n var singleDataArr = dataArr[i].split('='),\n key = singleDataArr[0],\n value = singleDataArr[1];\n\n switch(true) {\n case (key.indexOf('PropertyCount') > -1):\n propertyCount = Number(value);\n replenData[key] = value;\n case (key.indexOf('selectedProperty') > -1):\n replenData[key] = value;\n case (key.indexOf('quantity') > -1):\n replenData[key] = value;\n case (key.indexOf('baseNo') > -1):\n replenData[key] = value;\n itemId = value;\n default:\n break;\n }\n }\n\n fireAddToCart(itemId, replenData);\n }\n\n return;\n}\n\n// unable to hook into atc ajax call in mobile, need to manually grab ajax properties\n// when adding on mobile you are redirected to a specific added to cart page with the url containing the properties needed for ajax\nfunction trackAJAXMobile() {\n var urlWithSkuParam = getUrl('skuId');\n \n if (urlWithSkuParam.indexOf('product/addedtocart') > -1) {\n var skuId = urlWithSkuParam.split('skuId=').pop(),\n propertiesArr = skuId.split('-'),\n itemId = propertiesArr[0],\n replenData = {};\n \n replenData[\"PropertyCount\"] = propertiesArr.length - 1;\n replenData[\"quantity\"] = getUrl('qty').split('qty=').pop();\n replenData[\"baseNo\"] = itemId;\n \n for (var i = 1; i -1) {\n bouncex.setInterval2(function(){\n if (bouncex.vars.cart_set && jQuery('#productList #emptyCartMessage').length > 0) {\n bouncex.push(['empty_cart']);\n setVarAndCookie('cart_set', false);\n }\n }, 1500)\n }\n\n return;\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n replenishmentType: 'ajax',\n replenish: function (cart) {\n var $deferreds = [];\n \n cart.items.forEach(function(item) {\n $deferreds.push(makeAjaxATCFunc(item));\n });\n \n $deferreds\n .reduce(\n function(promise, func) {\n return promise.then(function() {\n return func();\n });\n },\n jQuery.Deferred().resolve([])\n )\n .then(replenComplete);\n\n return;\n }\n });\n\n function makeAjaxATCFunc(replenItem) {\n return function() {\n return jQuery.ajax({\n type: 'POST',\n url: 'https://www.sierra.com/product/addtocart/',\n data: stringifyCartReplenData(replenItem)\n });\n };\n }\n \n function stringifyCartReplenData(replenItem) {\n replenItem = replenItem || {}\n var dataArr = [];\n \n for (var key in replenItem) {\n dataArr.push(key + \"=\" + replenItem[key])\n }\n \n if (dataArr) {\n return dataArr.join('&')\n }\n \n return ''\n }\n \n function replenComplete() {\n window.location.href = window.location.origin + \n window.location.pathname + \n '?bx_replen=true';\n \n return;\n }\n\n bouncex.et.on(jQuery(document),'ajaxComplete.bx', trackAJAXCart);\n trackAJAXMobile();\n \n emptyCart();\n\n return;\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\n\nfunction getUserEmail() {\n return jQuery('#Email').attr('value')\n}\n\nfunction initializeUserTracking() {\n var userEmail;\n \n if (!bouncex.vars.logged_in || !!bouncex.vars.logged_in_identified) {\n return;\n }\n\n userEmail = getUserEmail();\n\n if (!bouncex.utils.validate.email(userEmail)) {\n return;\n }\n\n bouncex.push([\n 'user',\n {\n 'email': userEmail,\n 'source': 'LoggedIn'\n }\n ]);\n setVarAndCookie('logged_in_identified', true);\n\n return;\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n return getUrl().indexOf('www.sierra.com') > -1; \n}\n\nfunction isValidForTracking() {\n return isValidDomain();\n}\n\nfunction init() {\n if (!isValidForTracking()) {\n return;\n }\n\n // Unable to grab email until user edits account info\n if (getUrl().indexOf('/myaccount/updateinfo/') > -1) {\n initializeUserTracking();\n }\n\n initializeCartEvents();\n \n switch(bouncex.website.pts) {\n case 'category':\n case 'search':\n initializeCategoryEvents();\n initalizeQuickViewEvents();\n break;\n case 'product':\n initializeItemEvents();\n break;\n default:\n break;\n }\n\n return;\n}\n\ninit();\n\n/*--------------------------------------------------- SHQ TRACKING ------------------------------------------------------------*/\n\nvar shq_tracking = {\n/*************************** HELPER FUNCTIONS ****************************/\nqspObjectify: function(url, search) {\n if (url) {\n var qs = url.split(\"?\").pop();\n if (qs.indexOf(\"http\") < 0) {\n var qsArr = qs.split(\"&\");\n var qsObj = qsArr.map(function (item, index) {\n var itemSplit = item.split(\"=\"),\n tempObj = {};\n tempObj[itemSplit.shift()] = itemSplit.pop();\n return tempObj;\n });\n if (search) {\n var searchResults = [];\n qsObj.forEach(function (item, index) {\n if (item[search]) {\n searchResults.push(item);\n }\n });\n if (searchResults.length > 0) {\n return searchResults[0][search];\n } else {\n return undefined;\n }\n } else {\n return qsObj;\n }\n }\n }\n},\nreach: function (obj, path) { return bouncex.utils.getNestedProp(path, null, obj); },\nfilterDL: function (key, val) {\n return window.dataLayer\n ? window.dataLayer.filter(function (e) {\n return e[key] === val;\n })\n : [];\n},\n/*************************** ATTRIBUTES ****************************/\nhost: {\n allowed: [\"www.sierra.com\"],\n current: window.location.host,\n},\ninitUrl: undefined,\nintervals: {\n url: null,\n},\nemail_inputs: [\n {\n sel: \"#LoginUsernameLoginToAccount\",\n type: \"account\",\n },\n {\n sel: \"#dfEmail\",\n type: \"marketing\",\n },\n {\n sel: \"#UsernamecreateAccountForm\",\n type: \"account\",\n },\n {\n sel: \"#dfSignUpEmail\",\n type: \"marketing\",\n },\n {\n sel: \"#Username\",\n type: \"transact\",\n },\n {\n sel: \".form-control.js-email-address\",\n type: \"transact\"\n },\n],\npromo_inputs: [\n {\n sel: \"#keycodeInput\",\n id: \"cart_promo\",\n },\n],\nphone_inputs: [\n {\n sel: \".js-phone-number\",\n },\n],\natc_frame: false,\n/*************************** METHODS ****************************/\n// getters. these methods obtain the info you seek.\nget url() {\n return {\n host: window.location.host,\n path: window.location.pathname,\n current: window.location.href,\n qspObject: this.qspObjectify(window.location.href)\n }\n},\nget cat() {\n return {\n catString: window.location.pathname.split(\"/\")[1],\n category: window.location.pathname\n .split(\"/\")[1]\n .split(\"~\")\n .shift()\n .replace(/-/gi, \" \")\n .toUpperCase()\n }\n},\nget dts() {\n if (jQuery('.js-productLikeId')[0] && jQuery('.js-productLikeId')[0].value) {\n return {\n id: jQuery('.js-productLikeId')[0].value\n }\n }\n},\n// checkers. these methods ask the question: is?\nis_purchase: function() {\n return window.location.href.indexOf('/checkout/receipt') > -1;\n},\nis_checkout: function () {\n return window.location.href.indexOf(\"/checkout\") > -1;\n},\nis_pdp: function () {\n return !!this.reach(window, \"google_tag_params\") && !this.is_checkout();\n},\nis_cat: function () {\n return !!document.querySelector(\".prodFilters\");\n},\nis_search: function () {\n return window.location.href.indexOf(\"/s~\") > -1;\n},\nis_cart: function () {\n return window.location.href.indexOf(\"/cart\") > -1;\n},\nis_atc_frame: function () {\n var atcFrame = false,\n atcDoc = false,\n titleBar = false;\n if (this.is_cat()) {\n atcFrame = jQuery(\"iframe#fancybox-frame\")[0];\n }\n if (this.is_pdp()) {\n atcFrame = jQuery(\"iframe#quickViewIframe\")[0];\n }\n atcDoc =\n !!atcFrame && atcFrame.contentWindow\n ? atcFrame.contentWindow.document\n : false;\n titleBar = !!atcDoc ? atcDoc.querySelector(\"#titleBar\") : false;\n return atcDoc && titleBar && titleBar.innerText\n ? titleBar.innerText === \"Added to Cart\"\n : false;\n},\n// trackers. conditionally fire accurate tracking events.\ntrack_pdp: function () {\n if (this.is_pdp()) {\n var dts = this.dts;\n if (dts && dts.id) {\n _shq.push([\n \"pageView\",\n {\n pageType: \"product\",\n productId: dts.id,\n },\n ]);\n }\n }\n},\ntrack_cat: function () {\n if (this.is_cat()) {\n // send initial category page view\n var catObj = this.cat;\n if (catObj && catObj.category && catObj.category !== \"S\") {\n _shq.push([\n \"pageView\",\n {\n pageType: \"category\",\n catId: catObj.category,\n catName: catObj.category,\n },\n ]);\n }\n // watch for more url changes\n this.watch_url();\n }\n},\ntrack_qv: function () {\n // grab thumbnail cards\n var thumbCards = document.querySelectorAll('.productThumbnailContainer');\n if (thumbCards && thumbCards.length > 0) {\n // loop through thumbnail cards, apply bound function w/ id\n thumbCards.forEach(function(card) {\n var qvBtn = card.querySelector('.quickViewHoverLink'),\n idInput = card.querySelector(\"input[type='hidden']\")\n qvProdId = idInput && idInput.value ? idInput.value : '';\n // verify button and id are present before applying listener\n if (qvBtn && qvProdId) {\n // vanilla js is used to avoid namespacing issue w/ jQuery\n qvBtn.addEventListener('click', function(prodId) {\n _shq.push(['pageView', {\n pageType: 'product',\n productId: prodId\n }]);\n }.bind(null, qvProdId)); // .bind sets prodId to the current qvProdId in loop\n }\n });\n }\n},\ntrack_atc: function () {\n var atcFrame =\n jQuery(\"iframe#fancybox-frame\")[0] ||\n jQuery(\"iframe#quickViewIframe\")[0],\n atcDoc = !!atcFrame ? atcFrame.contentWindow.document : false;\n if (atcDoc) {\n var atcItem = {\n ProductId: atcDoc\n .querySelector(\".itemNumber.summaryLine\")\n .innerText.replace(\"Item #: \", \"\"),\n Quantity: Number(\n atcDoc\n .querySelector(\".quantity.summaryLine\")\n .innerText.replace(\"Quantity: \", \"\")\n ),\n };\n if (atcItem && !!atcItem.ProductId && !!atcItem.Quantity) {\n _shq.push([\n \"onCartAdd\",\n {\n Items: [atcItem],\n Total: null,\n },\n ]);\n }\n }\n},\ntrack_purchase: function () {\n if (this.is_purchase()) {\n bouncex.et.onTrue(function() {\n return !!bouncex.utils.getNestedProp('google_tag_params', null, window) \n && !!bouncex.utils.getNestedProp('asBcOrderVars', null, window) ;\n }, function() {\n if (bouncex.utils.getNestedProp('asBcOrderVars.order_id', null, window) \n && bouncex.utils.getNestedProp('asBcOrderVars.total', null, window)\n && bouncex.utils.getNestedProp('google_tag_params.prodid', null, window)\n && bouncex.utils.getNestedProp('google_tag_params.quantity', null, window)\n && bouncex.utils.getNestedProp('google_tag_params.value', null, window)) {\n var items = [];\n if (typeof(window.google_tag_params.prodid) === 'string') {\n items.push({\n productId: window.google_tag_params.prodid.replace(/%2F/gi, '/').toUpperCase(),\n price: window.google_tag_params.value,\n qty: window.google_tag_params.quantity\n });\n } else if (typeof(window.google_tag_params.prodid) === 'object') {\n window.google_tag_params.prodid.forEach(function(id, index) {\n items.push({\n productId: window.google_tag_params.prodid[index].replace(/%2F/gi, '/').toUpperCase()\n });\n });\n window.google_tag_params.quantity.forEach(function(q, index) {\n items[index].qty = q;\n });\n window.google_tag_params.value.forEach(function(v, index) {\n items[index].price = v;\n });\n }\n if (items.length > 0 \n && bouncex.utils.getNestedProp('asBcOrderVars.order_id', null, window)\n && bouncex.utils.getNestedProp('asBcOrderVars.total', null, window)) {\n _shq.push(['pageView', {\n pageType: 'purchase',\n orderItems: items,\n orderId: window.asBcOrderVars.order_id,\n total: window.asBcOrderVars.total\n }]);\n }\n }\n });\n }\n},\ntrack_search: function () {\n if (this.is_search()) {\n var sp = window.location.pathname.split('/')[1].replace('s~', '').replace(/-/gi, ' ');\n if (sp && sp.indexOf('http') === -1) {\n _shq.push([\n \"pageView\",\n {\n pageType: \"search\",\n searchPhrase: sp,\n },\n ]);\n }\n }\n},\ntrack_email: function () {\n this.email_inputs.forEach(function (em) {\n if (!!jQuery(em.sel).length && (!em.btn && !em.cb)) {\n jQuery(em.sel).change(\"click\", function () {\n if ($(this).val().indexOf(\"@\") > -1) {\n _shq.push([\n \"onEmail\",\n {\n type: em.type,\n email: $(this).val(),\n },\n ]);\n }\n });\n }\n });\n},\ntrack_shipping: function () {\n if (this.is_checkout() && !!jQuery(\".js-shippingOptionsList\").length) {\n jQuery('.js-shippingOptionsList input[type=\"radio\"]').change(function () {\n var shipEnum = {\n Standard: \"standard\",\n Express: \"express\",\n Expedited: \"twoday\",\n Free: \"free\",\n \"Next Day\": \"nextday\",\n },\n shipVal = \"standard\",\n shipLabelText = jQuery('label[for=\"' + jQuery(this)[0].id + '\"]')\n .text()\n .trim();\n for (var se in shipEnum) {\n if (shipLabelText.indexOf(se) > -1) {\n shipVal = shipEnum[se];\n }\n }\n _shq.push([\n \"onShip\",\n {\n value: shipVal,\n },\n ]);\n });\n }\n},\ntrack_fav_login: function () {\n jQuery(\".js-is-requires-login-action\").bind(\"click\", this, function (t) {\n setTimeout(\n function (t) {\n t.track_email();\n },\n 500,\n t.data\n );\n });\n},\ntrack_cart: function () {\n if (this.is_cart()) {\n var cartItems = [];\n jQuery(\"#productList .orderItem-image a\").each(function (index, item) {\n cartItems[index] = {\n ProductId: item.href.split(\"=\").pop(),\n };\n });\n jQuery(\"#productList .orderItem-priceTotal\").each(function (index, item) {\n cartItems[index].UnitPrice = item.innerText.replace(\"$\", \"\");\n });\n jQuery(\"#productList .qtyInput\").each(function (index, item) {\n cartItems[index].Quantity = item.value;\n });\n if (cartItems && cartItems.length && cartItems.length > 0) {\n _shq.push([\n \"onCartView\",\n {\n Items: cartItems,\n Total: null,\n },\n ]);\n } else {\n _shq.push([\"onCartEmpty\"]);\n }\n }\n},\ntrack_promo: function () {\n this.promo_inputs.forEach(function (pr) {\n if (!!jQuery(pr.sel).length) {\n jQuery(pr.sel).change(\"click\", function () {\n if ($(this).val() !== \"\") {\n _shq.push([\n \"onPromo\",\n {\n id: pr.id,\n code: $(this).val(),\n },\n ]);\n }\n });\n }\n });\n},\ntrack_phone: function () {\n this.phone_inputs.forEach(function (ph) {\n if (!!jQuery(ph.sel).length) {\n jQuery(ph.sel).change(\"click\", function () {\n if ($(this).val() !== \"\") {\n _shq.push([\n \"onPhone\",\n {\n type: \"home\",\n number: $(this).val(),\n },\n ]);\n }\n });\n }\n });\n},\n// watchers. these keep going until you don't need them or .quit is called\nwatch_url: function () {\n bouncex.et.setInterval(\n function () {\n var t = bouncex.utils.shq_tracking;\n if (t.url.path !== t.initUrl.path) {\n t.track_cat(); \n t.track_qv();\n t.initUrl = t.url;\n }\n }\n );\n},\nwatch_atc_frame: function () {\n bouncex.et.setInterval(\n function () {\n var t = bouncex.utils.shq_tracking;\n if (t.is_atc_frame() && t.atc_frame === false) {\n t.track_atc();\n t.atc_frame = true;\n } else if (!t.is_atc_frame() && t.atc_frame === true) {\n t.atc_frame = false;\n }\n }\n );\n},\n/****************************** INIT *******************************/\ninit: function () {\n if (this.reach(window, \"bouncex.utils\")) {\n window.bouncex.utils.shq_tracking = this;\n }\n this.initUrl = this.url;\n this.track_pdp();\n this.track_cat();\n this.track_qv();\n this.track_search();\n this.track_email();\n this.track_fav_login();\n this.track_cart();\n this.track_promo();\n this.watch_atc_frame();\n this.track_phone();\n this.track_shipping();\n this.track_purchase();\n}\n};\n\nshq_tracking.init();","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('.CartIndex').length > 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"apps.sierra.com/cart/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"qa.sierra.com/cart/"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.ProductListing, .DepartmentIndex, .ProductExplicitlisting, .prodList').length > 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/s~"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"nonAutoApplyFilterUrl=s~"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkout/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"apps.sierra.com/checkout/shipping/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"www.sierra.com/checkout/receipt/"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.HomeIndex').length > 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"apps.sierra.com/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"localhost"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"qa.sierra.com/"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.ProductIndex').length > 0;"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/s~"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"nonAutoApplyFilterUrl=s~"}]]}},"els":{"blank_site_element":"","mobile_content_below_header":".main"},"vars":[{"name":"logged_in","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts === 'checkout' ? null : jQuery('.dropdown-item:contains(Sign Out)').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":"visit","page_types":[],"testmode":false,"default":"0","code":"bouncex.website.pts === 'checkout' ? null : Number(jQuery('.cart-count').text().replace(/[^0-9.]/g, ''));","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\n if (bouncex.website.pts === 'cart'){\n return Number(jQuery('#totalSummary .pull-xs-right').eq(0).text().replace(/[^0-9.]/g, ''));\n }\n if (jQuery('.header-cart-subtotal .ourPrice').length){\n return Number(jQuery('.header-cart-subtotal .ourPrice').text().replace(/[^0-9.]/g, ''));\n }\n return null;\n})();","trigger":""},{"name":"prod_price","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('#displayPrice').text().replace(/[^0-9.]/g, '');","trigger":""},{"name":"prod_name","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.productTitle').text().trim();","trigger":""},{"name":"in_stock","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.notAvailable').length < 1;","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('#dfSignupSuccess').length > 0 || null;","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"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","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":"coupon_code","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_set","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"wunderkind_entrance","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"wunderkind_exit","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"softloggedin","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"jQuery('.drc_loyalty_banner a:not([data-tag-val=\"Top Mobile Banner > Guest\"])').length > 0 /* top banner */\n|| jQuery('.page-content.l-login-soft, .section-content.soft-login').length > 0 /* soft login */\n|| jQuery('.container.ui-content > .timeout:contains(\"been idle for\")').length > 0 /* session expired */\n|| (jQuery('.dropdown-item[href=\"/myaccount/\"]').length > 0 && jQuery('#LoginUsernameContainer').length > 0) /* soft login */\n|| 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":{"wk_rid":"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":"bouncex.utils.shqMirrorEvent = {\n 'reloadcampaigns': function(wkdata) {\n if (!!bouncex.utils.getNestedProp('utils.shq_tracking.track_cart', null, bouncex)) {\n bouncex.utils.shq_tracking.track_cart();\n }\n },\n 'pageview': function(wkdata) {\n if (!!bouncex.utils.getNestedProp('utils.shq_tracking.track_pdp', null, bouncex)) {\n bouncex.utils.shq_tracking.track_pdp();\n }\n }\n};","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"Hit 'Send' to sign-up for automated, recurring Sierra mktg txts (like cart reminders) to this #, per terms.","eventSharing":true,"shqId":"fzn7nhcg8r-1","enabled":1},"pde":true,"fmc":["AW","AI","AG","AR","BS","BB","BZ","BM","BO","BQ","BR","CA","KY","CL","CO","CR","CU","CW","DM","DO","EC","SV","GF","GL","GD","GT","GP","HT","HN","JM","MQ","MX","MS","NI","PA","PY","PE","PR","PM","MF","BL","KN","LC","VC","SX","SR","TT","US","UM","UY","VE","VG","VI"],"fme":true,"fmx":"'#emailRecipientEmail'","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":"","ga4_measurement_id":""} ; 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: 0 }; bouncex.assets = {"ads":"274f3a24cf2fcadc20f55008ce8b650d","creativesBaseStyles":"a53944a2","gpsAuction":"1375a7b38c31e98d14fe7f396b72da14","inbox":"02aca5df0e176b8810a86da97ac05424","onsite":"0e56ab6ba004ee080ce3deb3edae35e9","sms":"e39203556bab2366e56296ce42e974a7","websdk":"0704dae1eb637cbeb4a847506058402d"}; 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.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_c392bd8a966f0f1c345f687b4391a9b5.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(); }})();