(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":3743,"name":"Corkcicle","cookie_name":"bounceClientVisit3743","domain":"corkcicle.com","ct":"fp_local_storage","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};\n\n/* --------------------------- INITIALIZE SHOPIFY DYNAMIC COUPON AUTOAPPLY -------------------------- */\nfunction initShopifyCouponAutoApply() {\n var isShopifyHostedTheme = !!bouncex.utils.getNestedProp('Shopify.theme.id');\n\n if (isShopifyHostedTheme) {\n bouncex.off(bouncex.window, 'bxCouponFetched.bx-cpn-auto-apply');\n bouncex.on(bouncex.window, 'bxCouponFetched.bx-cpn-auto-apply', function(event, params) {\n if (params.code !== bouncex.vars.coupon_auto_applied) {\n ajaxShopifyAutoApply(params.code);\n }\n });\n }\n}\n\nfunction ajaxShopifyAutoApply(discount) {\n var updateJSON = JSON.stringify({\n 'discounts': [discount],\n }),\n errorMessage = 'event tracking: error with shopify coupon auto-apply',\n discountUrl = '/discount/'+discount,\n updateUrl = '/cart/update.js';\n\n jQuery.ajax({\n url: discountUrl,\n method: 'GET',\n })\n .then(function(){\n jQuery.ajax({\n url: updateUrl,\n method: 'POST',\n contentType: 'application/json',\n dataType: 'text',\n data: updateJSON,\n })\n .then(function(){ updateCouponVar(discount); }, function(){ bouncex.log(errorMessage + ' POST ' + updateUrl); });\n }, function(){ bouncex.log(errorMessage + 'GET '+ discountUrl); });\n}\n\nfunction updateCouponVar(discount) {\n bouncex.setVar('coupon_auto_applied', discount);\n}\n\ninitShopifyCouponAutoApply();","force_https":false,"waypoints":false,"content_width":900,"gai":"UA-24285575-1","swids":"","sd":0,"ljq":"auto","campaign_id":0,"is_preview":false,"aco":{"first_party_limit":"3500","local_storage":"1"},"cmp":{"gdpr":1,"gmp":0,"whitelist_check":0},"burls":[],"ple":false,"fbe":true,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* eslint sort-vars: 0 */\nvar ALLOWED_DOMAINS = ['corkcicle.com'],\n ATC_BTN_SELECTOR = 'button[data-add-to-cart]:visible,button[data-add-to-cart-consolidated-pdp]:visible',\n MINI_CART_ATC_BTN_SELECTOR = '.drawer button[data-add-to-cart]:visible';\n\n/******** helper functions *********/\nfunction isValidDomain() {\n return ALLOWED_DOMAINS.indexOf(window.location.hostname) > -1;\n}\n\nfunction getItemId() {\n// \treturn getPageUrl().match(/products\\/([^?#]+)/)[1] ;\n return bouncex.utils.url.getParam('variant') || \n bouncex.utils.getNestedProp('ShopifyAnalytics.meta.product.id','');\n}\n\nfunction getItemCopy() {\n return jQuery('meta[property=\"og:title\"]').attr('content');\n}\n\nfunction getItemCategory() {\n return getItemCopy().split(' ')[0].toLowerCase() || 'collections';\n}\n\nfunction getPageUrl() {\n return bouncex.utils.url.allowParams();\n}\n\nfunction getCategoryTitle() {\n return jQuery('.breadcrumb span:last, .collection-hero__content h1').text();\n}\n\nfunction getPersonalizationId() {\n return !!Number(bouncex.utils.url.allowParams().split('/').pop()) ? bouncex.utils.url.allowParams().split('/').pop() : undefined;\n}\n\nfunction getItemImage(){\n var splitImage = jQuery('.swiper-slide-active[data-product-slide=\"product\"] img').first().attr('data-srcset').split(', ').slice(-1)[0].split(' ');\n\n for (var i=0; i < splitImage.length; i++){\n if(splitImage[i].indexOf('//cdn') > -1 || splitImage[i].indexOf('/cdn') > -1){\n return 'https:' + splitImage[i];\n }\n }\n\n return '';\n}\n\nfunction getRating() {\n var ratingElement = jQuery('.yotpo-bottom-line-summary div').first().text();\n \n if (!ratingElement.length) {\n return '';\n }\n \n var rating = Number(ratingElement.split(' ')[0]);\n \n return rating >= 4 ? rating : '';\n}\n\nfunction getReviews() {\n var ratingElement = jQuery('.yotpo-bottom-line-summary div').first(),\n reviewsElement = jQuery('.yotpo-bottom-line-summary .yotpo-bottom-line-text').first();\n \n if (!ratingElement.length || !reviewsElement.length) {\n return '';\n }\n \n var rating = Number(ratingElement.text().split(' ')[0]),\n reviews = reviewsElement.text().trim().match(/\\d+/);\n \n return rating >= 4 ? reviews : '';\n}\n\nfunction isExcluded(productName, id) {\n var EXCLUSIONS = [7946731323480, 7946750722136];\n \n return productName.indexOf('Pre-Orders') > -1 || jQuery(ATC_BTN_SELECTOR).find('span').first().text().indexOf('Pre-order') > -1 \n || EXCLUSIONS.indexOf(id) > -1\n}\n\n/******** item tracking *********/\n\nfunction initializeItemTracking(){\n collectionSkuChangeListener();\n setTimeout(() =>{\n trackItem();\n }, 3000);\n /*trackItem();*/\n // randomNumberChangeListener();\n // if(jQuery('.swatch-element--size:visible, .swatch-element--color:visible').length === 0){\n // trackItem();\n // } else { \n // bouncex.et.onVarChange('item_id', function(){\n // bouncex.setTimeout2(function(){\n // trackItem();\n // }, 500);\n // });\n // }\n}\n\nfunction buildItem() {\n var item; \n if(getPageUrl().indexOf('collections') > -1){\n item = {\n id: getItemId(),\n copy: jQuery('.product-title').text() || jQuery('meta[property=\"og:title\"]').attr('content'),\n category: jQuery('.product-sub-title').text() || 'Global',\n imageurl: getItemImage(),\n url: bouncex.utils.url.allowParams('product,variant'),\n instock: bouncex.vars.in_stock,\n rating: getRating(),\n reviews: getReviews(),\n excluded: isExcluded(getItemCopy(), getItemId()),\n };\n } else {\n item = {\n id: getItemId(),\n copy: getItemCopy(),\n category: getItemCategory(),\n imageurl: getItemImage(),\n url: bouncex.utils.url.allowParams('product,variant'),\n instock: bouncex.vars.in_stock,\n rating: getRating(),\n reviews: getReviews(),\n excluded: isExcluded(getItemCopy(), getItemId()),\n };\n }\n return item;\n}\n\n\nfunction trackItem() {\n var item = buildItem(),\n groupId = bouncex.utils.getNestedProp('ShopifyAnalytics.meta.product.id') || jQuery('.yotpo.yotpo-main-widget').attr('data-product-id') || (jQuery('[aria-labelledby*=\"ada-star-ratings-text\"]').attr('aria-labelledby') || '').replace(/[^0-9]/g, '');\n if (item.id && item.imageurl && groupId) {\n bouncex.push(['item', item]);\n bouncex.push(['view item', {\n 'item:id': item.id,\n 'item:itemgroupid' : groupId\n }]);\n if (jQuery(\".product-option-select\").length === 0) {\n // if 0 options, we will fire select_sku\n fireSku(item.id, groupId, bouncex.vars.sku);\n }\n }\n}\n\nfunction randomNumberChangeListener() {\n var itemColor = jQuery('span[data-color-label]').text().trim(),\n obj = {};\n \n obj[itemColor] = bouncex.vars.random_number_generator;\n \n bouncex.et.onVarChange('sku', function(oldVal, newVal) {\n itemColor = jQuery('span[data-color-label]').text().trim();\n \n if (oldVal && newVal) {\n if (!obj[itemColor]) {\n obj[itemColor] = Math.floor(Math.random() * (27 - 7 + 1)) + 7;\n }\n \n bouncex.setVar('random_number_generator', obj[itemColor]);\n }\n }); \n}\n\nfunction collectionSkuChangeListener(){\n bouncex.et.onVarChange('sku', function(oldVal, newVal) {\n if (oldVal && newVal) {\n var itemId = getItemId(),\n groupId = bouncex.utils.getParam('product') || jQuery('.yotpo.yotpo-main-widget').attr('data-product-id') || (jQuery('[aria-labelledby*=\"ada-star-ratings-text\"]').attr('aria-labelledby') || '').replace(/[^0-9]/g, '');\n fireSku(itemId, groupId, bouncex.vars.sku);\n }\n });\n}\n\nfunction skuChangeListener(itemId, groupId) {\n bouncex.et.onVarChange('sku', function(oldVal, newVal) {\n if (oldVal && newVal) {\n fireSku(itemId, groupId, bouncex.vars.sku);\n }\n });\n}\n\nfunction fireSku(itemId, groupId, sku) { \n if (itemId && groupId && sku) {\n bouncex.push(['select_sku',{\n 'item:id': itemId,\n 'item:itemgroupid': groupId,\n 'item:feedid': sku\n }]);\n }\n}\n\n/******** category tracking *********/\nfunction getItemsIds() {\n var gridSelector;\n if(jQuery('.collection__item:visible article, .collection__grid .collection__item--').length > 0){\n gridSelector = jQuery('.collection__item:visible article, .collection__grid .collection__item--');\n }else {\n gridSelector = jQuery('.variant-collection__item');\n }\n var item_ids = gridSelector.map(function(i,v){\n return bouncex.utils.url.getParam(\n 'variant',\n jQuery(v).find('a.variant-collection__img, a.collection__item__image').attr('href')\n ) || jQuery(v).find('.collection__item__info .bottomLine.yotpo-small').attr('data-product-id');\n }).get().slice(0, 15).join(',');\n return item_ids || false;\n \n}\n\n\nfunction trackCategory(){\n var itemsIds = getItemsIds();\n if (itemsIds && itemsIds.length){\n bouncex.push(['view category', {\n 'items:ids': itemsIds,\n 'page:title': getCategoryTitle(),\n 'page:url': getPageUrl()\n }]);\n }\n}\n\nfunction trackSHQCategory() {\n // add any custom categories to this array\n var additionalCats = [\n 'personalization'\n ];\n // loop through custom cats, if found loop sends category page view and ends the loop \n for (var i = 0; i < additionalCats.length; i++) {\n if (window.location.href.indexOf('/' + additionalCats[i]) > -1) {\n _shq.push(['pageView', {\n pageType: 'category',\n catId: additionalCats[i],\n catName: additionalCats[i]\n }]);\n break;\n }\n }\n}\n\nfunction trackSHQPdp() {\n if (window.location.href.indexOf('/personalization') > -1) {\n var pId = getPersonalizationId();\n if (pId) {\n _shq.push(['pageView', {\n pageType: 'product',\n productId: pId\n }]);\n }\n }\n if (window.location.href.indexOf('/bundle') > -1) {\n _shq.push(['pageView', {\n pageType: 'category',\n catId: 'bundle',\n catName: 'bundle'\n }]);\n }\n}\n\n/******** Cart tracking **********/\nfunction cartCookieSet(){\n return bouncex.getBounceCookie('cart') !== undefined;\n}\n/* track ATC from PDP */\nfunction trackATC() {\n if(bouncex.getBounceCookie('cart') !== undefined){\n bouncex.push(['add to cart', {\n 'item:id': jQuery('.product-title').text().toLowerCase().replace(/ /g, '-') || getItemId() ,\n 'cart:token': bouncex.getBounceCookie('cart')\n }]);\n } else {\n bouncex.et.onTrue(cartCookieSet, function(){\n bouncex.push(['add to cart', {\n 'item:id': jQuery('.product-title').text().toLowerCase().replace(/ /g, '-') || getItemId(),\n 'cart:token': bouncex.getBounceCookie('cart')\n }]); \n }, 12);\n }\n}\n\nfunction trackMiniCartATC() {\n if(bouncex.getBounceCookie('cart') !== undefined){\n bouncex.push(['add to cart', {\n 'item:id': jQuery(this).parents('form').find('a:first').attr('href').match(/products\\/([^?#]+)/)[1],\n 'cart:token': bouncex.getBounceCookie('cart')\n }]);\n }\n}\n\n/* track ATC from category page */\nfunction trackCategoryATC(){\n bouncex.et.on(jQuery('.variant-collection__info__cta-btn'), 'click.bx', function(){\n if(bouncex.getBounceCookie('cart') !== undefined){\n bouncex.push(['add to cart', {\n 'item:id': jQuery(this).parent().find('.variant-collection__info__cta-btn').attr('data-variant-id'),\n 'cart:token': bouncex.getBounceCookie('cart')\n }]);\n }\n })\n}\n\n/* track free shipping threshold value, differs by geo */\nfunction trackFreeShipThreshold() {\n var freeShipText = '',\n freeShipThreshold = '',\n el;\n\n if(jQuery('#FreeShippingBanner').length > 0) {\n freeShipText = jQuery('#FreeShippingBanner').text().trim();\n } else {\n el = jQuery('a.promo-bar__text').toArray().find(function(el){\n return jQuery(el).text().toLowerCase().indexOf('free shipping') > -1;\n });\n freeShipText = jQuery(el).text().trim();\n }\n\n freeShipThreshold = freeShipText.split(' ').pop() || '$49';\n\n if(freeShipThreshold !== bouncex.vars.freeshipthreshold) {\n bouncex.push(['freeshipthreshold', {\n 'price': freeShipThreshold\n }]);\n bouncex.setv('freeshipthreshold', freeShipThreshold);\n }\n\n return;\n}\n\n/* track empty cart */\nfunction trackEmptyCart() {\n bouncex.et.onVarChange('cart_qty', function() {\n if (bouncex.vars.cart_qty === 0) {\n bouncex.push(['empty_cart']);\n }\n });\n}\n\nfunction extractEmail(text) {\n const regex = /\"email\":\"([^\"]+)\"/;\n const match = text.match(regex);\n return match ? match[1] : null;\n}\n\n\n/******** user tracking *********/\nfunction trackLoggedInUser(){\n if(bouncex.vars.logged_in && bouncex.vars.logged_in_identified === false){\n \n var userEmail = bouncex.utils.getNestedProp('swellConfig.customer.email', \"\") || bouncex.utils.getNestedProp('spapi.customer.email', \"\");\n if(userEmail == \"\" && window.PurpleDotConfig && window.PurpleDotConfig.prefillEmail){\n userEmail = window.PurpleDotConfig.prefillEmail;\n }\n if(userEmail == \"\"){\n userEmail = extractEmail(jQuery('#web-pixels-manager-setup').text())\n }\n if(bouncex.utils.validate.email(userEmail)){\n bouncex.push(['user', \n {\n 'email': userEmail,\n 'source': 'LoggedIn'\n }\n ])\n bouncex.setv('logged_in_identified', true)\n }\n }\n}\n\nbouncex.et.cart.init({\n replenish: function (cart) {\n bouncex.utils.cookies.create({\n name:'cart',\n value:cart.token\n });\n window.location.href = window.location.pathname+'?bx_replen=true';\n },\n replenishmentType: 'cookie'\n});\n\n/******** itiniate tracking code *********/\nif (isValidDomain()) {\n\n trackEmptyCart();\n \n // track pdp page view for personalized items SHQ\n trackSHQPdp();\n \n // track custom category page views for SHQ\n trackSHQCategory();\n \n //Minicart ATC\n jQuery(document).on('click.bx', MINI_CART_ATC_BTN_SELECTOR, trackMiniCartATC);\n // bouncex.on(jQuery(MINI_CART_ATC_BTN_SELECTOR),'click.bx', trackMiniCartATC);\n \n // track free shipping threshold\n trackFreeShipThreshold();\n\n trackLoggedInUser();\n switch (bouncex.website.pts) {\n case 'product':\n initializeItemTracking();\n bouncex.on(jQuery(ATC_BTN_SELECTOR),'click.bx', trackATC);\n break;\n case 'category':\n trackCategory();\n trackCategoryATC();\n break;\n default:\n break;\n }\n}\n","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":"/cart"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"shopifypreview"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.variant-collection__item').length > 0;"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.collection__grid').length > 0;\n\n"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/products/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"shopifypreview"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkouts/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"shopifypreview"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.template-index').length > 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"shopifypreview"}]]},"product":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/products/"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.product-single__top').length > 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/gift-card"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"shopifypreview"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"shopifypreview"}]]}},"els":{"addToCartButton":"button.product-single__submit.spo-container","promoCodeField":".order-summary__section.order-summary__section--discount"},"vars":[{"name":"logged_in","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function(){\n if (bouncex.website.pts === 'checkout') {\n\t\tif (jQuery('.step[data-step=\"contact_information\"]').length > 0) {\n \treturn jQuery('.logged-in-customer-information__paragraph').length > 0;\n } else {\n\t\t\treturn null;\n\t\t}\n } else {\n return !!bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.customerId');\n }\n})();","trigger":""},{"name":"ever_logged_in","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.logged_in ? true : null;","trigger":""},{"name":"cart_qty","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function() {\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().replace(/[^0-9]/g, ''));\n });\n return count;\n }\n return Number(jQuery('[data-cart-item-count]').first().text().replace(/[^0-9]/g, ''));\n})();","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function() {\n if (jQuery('.ajaxcart__empty .ajaxcart__empty-copy').text().toLowerCase().indexOf('cart is empty') > -1) {\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, '')) || null;\n }\n return Number(jQuery('.ajaxcart__footer-subtotal span').text().trim().replace(/[^0-9.]/g, '')) || Number(jQuery('[data-cart-subtotal]:first').text().replace(/[^0-9.]/g, '')) || null;\n})();\n","trigger":""},{"name":"prod_price","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"bouncex.website.pts === 'product' && jQuery('.product-single__price:not(.product-single__price--compare)').text().replace(/[^0-9.]/g, '');","trigger":""},{"name":"prod_name","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts === 'product' && jQuery('.product-single h1').text();","trigger":""},{"name":"in_stock","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.product-unavailable:visible').length === 0 && jQuery('button[name=\"add\"]:visible').length > 0;","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('.klaviyo_header:contains(\"Thanks for subscribing\"):visible').length > 0 || null;","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"visit_coupon","polling":"none","persist":"visit","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"random_number_generator","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"Math.floor(Math.random() * (27 - 7 + 1)) + 7;","trigger":"pageload"},{"name":"cart_set","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"sku","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"","code":"bouncex.utils.url.getParam(\"variant\") || jQuery(\"#productSelect [selected='selected']\").attr(\"value\");","trigger":"pageload"},{"name":"collection_copy","polling":"all","persist":"visit","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.swatch-element--size .selected').text().trim() || '';","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"item_id","polling":"vars","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.url.getParam('variant');","trigger":"pageload"},{"name":"country_selected","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.getNestedProp('GLBE_PARAMS.countryCode', null) || jQuery('#localization_form input[name=country_code]').val() || null;","trigger":"pageload"},{"name":"quebec","polling":"vars","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"bouncex.state.geo.region_name === \"Quebec\";","trigger":"pageload"},{"name":"freeshipthreshold","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cookie_modal_present","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('.cookie-optin.active:visible, .cookie-optin-mobile.active:visible').length > 0;","trigger":"pageload"},{"name":"cart_visible","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('.cart.active').length > 0;","trigger":"pageload"},{"name":"variant_obj","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"'{}'","trigger":"pageload"},{"name":"active_coupon","polling":"vars","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"jQuery('.bx-click-to-copy .coupon').first().text() || null;","trigger":"pageload"},{"name":"coupon_auto_applied","polling":"none","persist":"visit","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":{"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":"bouncex.utils.shqInterceptEvent = {\n \"productView\": function () {\n var shqId = null;\n if (window.dataLayer) {\n window.dataLayer.forEach(function(item){ \n if (item.event && item.event === 'dl_view_item') { \n shqId = bouncex.utils.getNestedProp('ecommerce.detail.products[0].product_id', null, item);\n _shq.push([\"pageView\", { \n \"pageType\": \"product\",\n \"productId\": shqId\n }]);\n }\n });\n }\n },\n \"cartAdd\": function () {\n var shqId = null;\n if (window.dataLayer) {\n window.dataLayer.forEach(function(item){\n if (item.event && item.event === \"dl_add_to_cart\") { \n shqId = bouncex.utils.getNestedProp('ecommerce.add.products[0].product_id', null, item);\n var price = +bouncex.utils.getNestedProp('ecommerce.add.products[0].price', null, item);\n _shq.push(['onCartAdd', {\n Items: [{ \"ProductId\": shqId, \"Price\": price, \"Quantity\": 1 }]\n }]);\n }\n });\n }\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 Corkcicle mktg txts (like cart reminders) to this #, per terms.","eventSharing":true,"shqId":"ji6aezovl9-1","enabled":1},"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":"272689347","ga4_measurement_id":"G-Q46V7Y4NVY","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); } 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(); }})();