(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":1311,"name":"Tuckernuck","cookie_name":"bounceClientVisit1311","domain":"tnuck.com","ct":"multi_cookie","ally":0,"ei":1,"tcjs":"","cjs":"(function () {\n\twindow.bouncex.bx_isr = {\n\t\tversion: 'Version 5.8 | 8/21/2015',\n\t\tstart_time: Date.now(),\n\t\tsettings: {\n\t\t\tproduct: {},\n\t\t\tgeneral: {\n\t\t\t\tproduct_page_identifier: jQuery('meta[property=\"og:type\"]').attr('content') === 'product',\t\t\n\t\t\t\tmax_products: 20,\n\t\t\t\tcategory_history: JSON.parse(window.localStorage.getItem('bx_category_history')) || [],\n\t\t\t\tproduct_history: JSON.parse(window.localStorage.getItem('bx_product_history')) || [],\n\t\t\t\tcategory_history_length: 0,\n\t\t\t\tproduct_history_length: 0\n\t\t\t}\n\t\t},\n\t\tinit: function () {\n\t\t\t// check for for existing bx_isr instance in localStorage\n\t\t\tthis.product_map();\n\t\t\tthis.set_product_category_history_lengths();\n\t\t\tthis.product_history();\n\t\t\tthis.category_history();\n\t\t\tthis.max_products(this.settings.general.max_products);\n\t\t\t//console.log(Date.now() - window.bouncex.bx_isr.start_time, 'bx isr start');\n\t\t},\n\t\tproduct_map: function () {\n\t\t\tif (this.settings.general.product_page_identifier) {\n\t\t\t\t// these values can come from multiple sources\n\t\t\t\t// could automate using google/facebook/etc tracking values\n\t\t\t\tvar values = {\n\t\t\t\t\turl: window.top.location.pathname,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tname: jQuery('#product-description h1').text(),\n\t\t\t\t\tsku: jQuery('script:contains(sku)').text().match(/\\\"sku\":\"((\\\\\"|[^\"])*)\"/i)[1],\n\t\t\t\t\tcategory: [jQuery('#breadcrumb a:last').text()],\n\t\t\t\t\tdescription: jQuery('meta[name=description]').text(),\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tprice: jQuery('.product-price').text().replace('$', ''),\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tmain_image_url: window.top.location.protocol + jQuery('#product-photos .bigimage img').attr('src'),\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\ttime_stamp: Date.now(),\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tview_count: 1,\n\t\t\t\t\tsession_id: bouncex.cookie.vid,\n\t\t\t\t};\n\n\t\t\t\tthis.settings.product = values;\n\t\t\t}\n\t\t},\n\n\t\t/* ---- End Of Initialization ---- */\n\t\t/* ---- Global Methods ---- */\n\t\tadd_product_to_history: function () {\n\n\n\t\t},\n\n\t\tadd_category_to_history: function (current_category) {\n\t\t\tvar cat_history = this.settings.general.category_history;\n\t\t\tvar new_category = {\n\t\t\t\tcategory : current_category,\n\t\t\t\tview_count : 1,\n\t\t\t\ttime_stamp : Date.now()\n\t\t\t};\n\t\t\tcat_history.unshift(new_category);\n\t\t\twindow.bouncex.bx_isr.set_category_history(cat_history);\n\t\t},\n\n\t\tset_product_category_history_lengths: function () {\n\t\t\tthis.settings.general.category_history_length = this.settings.general.category_history.length;\n\t\t\tthis.settings.general.product_history_length = this.settings.general.product_history.length;\n\t\t},\n\n\t\tset_product_history: function (product_history) {\n\t\t\twindow.localStorage.setItem('bx_product_history', JSON.stringify(product_history));\n\t\t\tthis.settings.general.product_history = product_history;\n\t\t\tthis.settings.general.product_history_length = product_history.length;\n\t\t},\n\n\t\tset_category_history: function (category_history) {\n\t\t\twindow.localStorage.setItem('bx_category_history', JSON.stringify(category_history));\n\t\t\tthis.settings.general.category_history = category_history;\n\t\t\tthis.settings.general.category_history_length = category_history.length;\n\t\t},\n\n\t\t/* ---- History Functions ---- */\t\t\n\t\tproduct_history: function () { \n\t\t\tvar product_history = this.settings.general.product_history; // object to array\n\t\t\tif (!this.settings.general.product_page_identifier) { return; }\n\n\t\t\tif (this.settings.general.product_history_length > 0) {\n\t\t\t\tvar history_updated = false;\n\t\t\t\tfor (i = 0; i < this.settings.general.product_history_length; i++) {\n\t\t\t\t\tif (product_history[i].sku === this.settings.product.sku || product_history[i].name === this.settings.product.name) {\n\t\t\t\t\t\tproduct_history[i].view_count++;\n\t\t\t\t\t\tproduct_history[i].time_stamp = Date.now();\n\t\t\t\t\t\tproduct_history.unshift(product_history[i]);\n\n\t\t\t\t\t\t// could run checkes against product set to be removed and whole set\n\t\t\t\t\t\t// this would enable us to keep only the most relevant info for a user\n\t\t\t\t\t\tproduct_history.splice(i + 1, 1);\n\t\t\t\t\t\thistory_updated = true;\n\t\t\t\t\t\tthis.set_product_history(product_history);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!history_updated) {\n\t\t\t\t\tproduct_history.unshift(this.settings.product);\n\t\t\t\t\tthis.set_product_history(product_history);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tproduct_history.unshift(this.settings.product);\n\t\t\t\tthis.set_product_history(product_history);\n\t\t\t}\n\t\t},\n\t\t\n\t\tcategory_history: function () {\n\t\t\tvar category_history = this.settings.general.category_history; //object to array\n\t\t\tif (!this.settings.general.product_page_identifier) { return; }\n\n\t\t\tvar current_categories_length = this.settings.product.category.length;\n\t\t\tfor (i = 0; i < current_categories_length; i++) {\n\t\t\t\tvar current_category = this.settings.product.category[i];\n\n\t\t\t\tif (this.settings.general.category_history_length > 0) {\n\t\t\t\t\tvar history_updated = false;\n\t\t\t\t\tfor (i = 0; i < this.settings.general.category_history_length; i++) {\n\t\t\t\t\t\tif (category_history[i].category === current_category) {\n\t\t\t\t\t\t\tcategory_history[i].view_count++;\n\t\t\t\t\t\t\tcategory_history[i].time_stamp = Date.now();\n\t\t\t\t\t\t\thistory_updated = true;\n\t\t\t\t\t\t\tthis.set_category_history(category_history);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!history_updated) {\n\t\t\t\t\t\tthis.add_category_to_history(current_category);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthis.add_category_to_history(current_category);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t/* ---- Core Functions ---- */\n\n\t\tget_top_categories: function (criteria, num) {\n\t\t\tvar categories = this.settings.general.category_history;\n\t\t\tif (!num) { num = categories.length; }\n\t\t\tif (criteria === 'views') {\n\t\t\t\treturn categories.sort(function (a, b) { return b.view_count - a.view_count; }).slice(0, num);\n\t\t\t} else if (criteria === 'time_stamp') {\n\t\t\t\treturn categories.sort(function (a, b) { return b.time_stamp - a.time_stamp }).slice(0, num);\n\t\t\t} else if (criteria === 'recency') {\n\t\t\t\treturn categories.sort(function (a, b) { return b.view_count - a.view_count; }).slice(0, num).sort(function (c, d) { return c.time_stamp - d.time_stamp; });\n\t\t\t}\n\t\t},\n\n\t\tget_top_products: function (criteria, num) {\n\t\t\tvar products = this.settings.general.product_history;\n\t\t\tif (!num) { num = products.length; }\n\t\t\tif (criteria === 'views') {\n\t\t\t\treturn products.sort(function (a, b) {return b.view_count - a.view_count;}).slice(0, num);\n\t\t\t} else if (criteria === 'time_stamp') { \n\t\t\t\treturn products.sort(function (a, b) { return b.time_stamp - a.time_stamp }).slice(0, num);\n\t\t\t} else if (criteria === 'recency') {\n\t\t\t\treturn products.sort(function (a, b) { return b.view_count - a.view_count; }).slice(0, num).sort(function (c, d) { return c.time_stamp - d.time_stamp; });\n\t\t\t} else {\n\t\t\t\treturn 'undefined sort';\n\t\t\t}\n\t\t},\n\n\t\tmax_products: function (max_products) {\n\t\t\tif (this.settings.general.product_history_length > max_products) {\n\t\t\t\tvar max_products = this.get_last_viewed_products('time_stamp', max_products);\n\t\t\t\tthis.set_product_history(max_products);\n\t\t\t}\n\t\t}\n\t};\n\n\t\n\t\n\twindow.bouncex.bx_isr.init();\n})();\n\n/* enable.feature.DISABLE_RELOAD_CAMPAIGNS_V2 */","force_https":false,"waypoints":false,"content_width":0,"gai":"UA-31541451-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":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\nvar CART_COOKIE_KEY = 'cart',\n CLEAN_URL = bouncex.utils.url.allowParams('search');\n\n/* --------------------------------- HELPERS -------------------------------- */\n\nfunction isExcludedBrand() {\n\tvar brand = bouncex.utils.getNestedProp('ShopifyAnalytics.meta.product.vendor').toLowerCase(),\n\t\texcludedBrands = ['emilia wickstead', 'loom & co', 'la doublej', 'zimmermann', 'tuckernuck archive collection', \n\t\t'susan johnson', 'lia burke libaire', 'erdem', 'larroude', 'yeti', 'tuckernuck x atlantic pacific', 'tuckernuck x atlantic-pacific', \n\t\t'monogramming services'];\n\n\treturn excludedBrands.indexOf(brand) > -1;\n}\n\nfunction excludedProductsInCampaigns() {\n var script = jQuery('section[data-section=\"product\"]').find('script').html();\n\n return JSON.parse(script).product.tags.includes('Promo Excluded') || JSON.parse(script).product.tags.includes('promo_rule:Liquidate');\n}\n\nfunction getIdFromUrl(url) {\n\turl = url ? bouncex.utils.url.allowParams([], url) : '';\n\n\treturn url.split('/').pop();\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction getItem() {\n\tvar imgUrl = jQuery('.grid-container img.image').eq(0).attr('src') || jQuery('.swiper-slide-active img').eq(0).attr('src'),\n\t\tprotocol = window.location.protocol;\n\treturn {\n\t\tid: CLEAN_URL.split('/').pop(),\n\t\tcopy: jQuery('.product-title').eq(0).text().trim(),\n\t\tcategory: bouncex.utils.getNestedProp('ShopifyAnalytics.meta.product.type', '') || 'Global',\n\t\turl: CLEAN_URL,\n\t\timageurl: imgUrl.indexOf(protocol) > -1 ? imgUrl : protocol + imgUrl ,\n\t\tinstock: (jQuery('form[action=\"/cart/add\"] button[data-target=\"product-atc\"]').text().indexOf('Add to bag') > -1 || jQuery('form[action=\"/cart/add\"] button[data-target=\"product-atc\"]').text().indexOf('Select a size') > -1) && jQuery('input[data-option-name=\"Size\"]').length !== jQuery('span.crossed-line').length,\n\t\texcluded: isExcludedBrand(),\n\t\texcludedWithTag: excludedProductsInCampaigns()\n\t};\n}\n\nfunction fireViewItem(itemId, groupId) {\n\tvar pushItem = {\n\t\t\t'item:id': itemId,\n\t\t};\n\n\tif (groupId) {\n\t\tpushItem['item:itemgroupid'] = groupId;\n\t}\n\tbouncex.push(['view item', pushItem]);\n}\n\nfunction isExcluded(item) {\n\treturn item.url.indexOf('gift-card') > -1;\n}\n\nfunction initializeItemEvents() {\n\tvar item;\n\n\tbouncex.et.onTrue(\n\t\tfunction() {\n\t\t\titem = getItem();\n\t\t\treturn !!item.id &&\n\t\t\t\t\t!!item.copy &&\n\t\t\t\t\t!!item.url &&\n\t\t\t\t\t!!item.imageurl;\n\t\t},\n\t\tfunction() {\n\t\t\tif (isExcluded(item)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tbouncex.push(['item', item]);\n\n\t\t\titem.groupId = jQuery('form[action=\"/cart/add\"] div[data-current-product-id]').attr('data-current-product-id');\n\t\t\tinitializeSkuEvents(item.id, item.groupId);\n\n\t\t\tfireViewItem(item.id, item.groupId);\n trackStylitics(item.url);\n\t\t\tinitATCClickTracking(item.id);\n\t\t},\n\t\t10\n\t);\n}\n\n\nfunction trackStylitics(itemUrl) {\n\tjQuery('.stylitics-main-image').each(function () { \n\t\tvar imageUrl = jQuery(this).attr('data-src');\n\t\tif (imageUrl) {\n\t\t\tbouncex.push(['view_collection', {\n\t\t\t\timage_url: bouncex.utils.url.allowParams([], imageUrl),\n\t\t\t\titem_url: itemUrl\n\t\t\t}]);\n\t\t}\n\t});\n}\n\n/* ------------------------------ SKU TRACKING ------------------------------ */\n\nfunction initializeSkuEvents(itemId, groupId) {\n var lastSkuFired,\n skuId;\n\n if (jQuery('input[data-option-name=\"Size\"]').val() === 'OS' && !!bouncex.utils.getParam('variant').length){\n fireSelectSku(itemId, groupId, bouncex.utils.getParam('variant'));\n return;\n }\n\n bouncex.et.on(\n bouncex.document,\n 'click.bxsku',\n function () {\n bouncex.et.onTrue(function () {\n skuId = bouncex.utils.getParam('variant');\n return skuId && skuId !== lastSkuFired;\n }, function () {\n fireSelectSku(itemId, groupId, skuId);\n lastSkuFired = skuId;\n }, 5);\n },\n 'button[data-swatch], input[data-option-name=\"Size\"]'\n );\n}\n\nfunction fireSelectSku(itemId, groupId, skuId){\n bouncex.push([\n 'select_sku',\n {\n 'item:id': itemId,\n 'item:itemgroupid': groupId,\n 'item:feedid': skuId\n }\n ]);\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\n\nfunction getItemIdsCat() {\n var ids = [];\n\n jQuery('a.relative.group').each(function (i, e) {\n var id = getIdFromUrl(jQuery(e).attr('href'));\n\n if (id && ids.indexOf(id) < 0) {\n ids.push(id);\n }\n });\n\n return ids.join(',');\n}\n\n\nfunction getCategoryObject() {\n\treturn {\n\t\t'page:url': CLEAN_URL,\n\t\t'items:ids': getItemIdsCat()\n\t};\n}\n\nfunction initializeCategoryEvents() {\n\tvar categoryObj;\n\tbouncex.et.onTrue(\n\t\tfunction() {\n\t\t\tcategoryObj = getCategoryObject();\n\t\t\treturn !!categoryObj['items:ids'].length &&\n\t\t\t\t\t!!categoryObj['page:url'];\n\t\t},\n\t\tfunction() {\n\t\t\tbouncex.push(['view category', categoryObj]);\n\t\t\tinitQuickATCTracking();\n\t\t\tinitializeHoverEvents();\n\t\t\tinitializeMobileQvEvents();\n\t\t},\n\t\t10\n\t);\n}\n\nfunction initQuickATCTracking(qvItemId) {\n var ATC_SELECTORS = '.swiper-slide button',\n $atcButtons = jQuery(ATC_SELECTORS);\n\n bouncex.off($atcButtons, 'click.wkatc');\n bouncex.on($atcButtons, 'click.wkatc', function() {\n if (qvItemId){\n fireAddToCart(qvItemId);\n return;\n\t}\n\n\t\tvar itemId = getIdFromUrl(jQuery(this).parents('.nosto-product-card, .product-card').find('a.group').attr('href'));\n\n\t\tfireAddToCart(itemId);\n });\n}\n\nfunction initializeHoverEvents(){\n bouncex.et.onHover('.nosto-product-card, .product-card', function(e) {\n var itemId = getIdFromUrl(jQuery(e).find('a.relative.group').attr('href'));\n\n\t\tbouncex.push(['hover item', {'item:id': itemId}]);\n });\n}\n\nfunction initializeMobileQvEvents(){\n bouncex.et.onVisible('#shopify-section-quick-add div.h-full.opacity-80', function(){\n var itemId = (jQuery('#shopify-section-quick-add form[data-product-form] a.text-center').eq(0).attr('href') || '').split('/').pop(),\n groupId = jQuery('div[data-current-product-id]').attr('data-current-product-id');\n\n fireViewItem(itemId, groupId);\n initATCClickTracking(itemId);\n });\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\n\nfunction fireAddToCart(itemId) {\n var token;\n\n if (!itemId){ return; }\n\n bouncex.et.onTrue(\n function () {\n token = bouncex.getBounceCookie(CART_COOKIE_KEY);\n return token;\n },\n function () {\n bouncex.push([\n 'add to cart',\n {\n 'item:id': itemId,\n 'cart:token': token\n }\n ]);\n\n if (bouncex.vars.cart) {\n return;\n }\n\n bouncex.setVar('cart', true);\n },\n 10\n );\n}\n\nfunction initATCClickTracking(itemId) {\n\tbouncex.off(jQuery(document), 'click.wkatc');\n\tbouncex.et.on(jQuery(document), 'click.wkatc', function() {\n\t\tfireAddToCart(itemId);\n\t}, 'form[action=\"/cart/add\"] button[data-target=\"product-atc\"]');\n}\n\nfunction emptyCart() {\n\tbouncex.et.onVarChange('cart_qty', function(oldVal, newVal) {\n\t\tif (bouncex.vars.cart && newVal === 0 && oldVal > 0) {\n\t\t\tbouncex.push(['empty_cart']);\n\t\t\tbouncex.setv('cart', false);\n\t\t}\n\t});\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n replenishmentType: 'cookie',\n replenish: function (cart) {\n bouncex.utils.cookies.create({\n name: CART_COOKIE_KEY,\n value: cart.token\n });\n replenComplete();\n }\n });\n function replenComplete() {\n window.location.href = CLEAN_URL + '?bx_replen=true';\n }\n\n\tbouncex.setTimeout2(emptyCart, 1000);\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\n\nfunction initializeUserTracking() {\n if (!bouncex.vars.logged_in || !!bouncex.vars.logged_in_identified) {\n return;\n }\n\n var userEmail;\n\n bouncex.et.onTrue(\n function () {\n userEmail = bouncex.utils.gtmLookup('customer.email');\n return bouncex.utils.validate.email(userEmail);\n },\n function () {\n bouncex.push([\n 'user',\n {\n 'email': userEmail,\n 'source': 'LoggedIn'\n }\n ]);\n bouncex.setVar('logged_in_identified', true);\n },\n 5\n );\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n\treturn CLEAN_URL.indexOf('tnuck.com') > -1;\n}\n\nfunction isEn() {\n\treturn jQuery('html').attr('lang') === 'en';\n}\n\nfunction isValidForTracking() {\n\treturn isValidDomain() && isEn();\n}\n\nfunction init() {\n\tif (!isValidForTracking()) {\n\t\treturn;\n\t}\n\n\tinitializeUserTracking();\n\tinitializeCartEvents();\n\n\tswitch(bouncex.website.pts) {\n\t\tcase 'home':\n\t\t\tinitQuickATCTracking();\n\t\t\tinitializeHoverEvents();\n\t\t\tinitializeMobileQvEvents();\n\t\t\tbreak;\n\t\tcase 'category':\n\t\tcase 'search':\n\t\t\tinitializeCategoryEvents();\n\t\t\tbreak;\n\t\tcase 'product':\n\t\t\tinitializeItemEvents();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\n}\n\ninit();","dge":true,"bxidLoadFirst":false,"pie":true,"cme":true,"gbi_enabled":0,"bpush":false,"pt":{"account":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"account"}]]},"cart":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/cart"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/checkout"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"shopifypreview"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"myshopify"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"purchaseGiftCard"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType', '') === 'collection';"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"?q="}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkouts"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"staging"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"thank_you"}]]},"giftcard":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"gift-card"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"purchaseGiftCard"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType', '') === 'home';"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"shopifypreview"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"myshopify"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType', '') === 'product'"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"gift-card"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"GiftCard"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"?q="},{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.pageType', '') === 'searchresults';"}]]}},"els":{"CP-Add-to-cart":".product__actions a","CartList":".list-cart","Hover-Id":".products-container .product","PDP-Add-to-cart":".form__btn.product__btn","add_to_cart":"button[data-target=\"product-atc\"]","cart_item":"section[data-section=\"cart\"] .totals:visible"},"vars":[{"name":"cart_items","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function () {\n \n if (bouncex.website.pts === 'checkout' || window.location.href.indexOf('checkouts') > -1) {\n return null;\n }\n return Number(jQuery('.header__right a[href=\"/cart\"]').text().trim());\n})();","trigger":""},{"name":"cart_total","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function() {\n if (jQuery('.site-header__icon--cart a[href=\"/cart\"]').attr('data-cart-count') === '0') {\n return 0;\n }\n return bouncex.website.pts === 'checkout' ? Number(jQuery('.total-line--subtotal:first').text().replace(/[^0-9.]/g, '')) : Number(jQuery('.total--price .total__value').first().text().replace(/[^\\d.]/g,'')) || null;\n})();","trigger":""},{"name":"logged_in","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function () {\n\tif (bouncex.website.pts === 'checkout') {\n\t\treturn jQuery('.breadcrumb__item--current:contains(\"Information\")').length > 0 ? jQuery('.logged-in-customer-information:visible').length > 0 : null;\n\t}\n\n\treturn !!bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.customerId');\n})();","trigger":""},{"name":"page_title","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.main-product .product__title').eq(0).text().trim();","trigger":""},{"name":"excluded","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.main-product .product__brand').eq(0).text().trim() === 'Barbour' || jQuery('.main-product .product__brand').eq(0).text().trim() === 'Smathers and Branson' || jQuery('.main-product .product__brand').eq(0).text().trim() === 'Dubarry';","trigger":""},{"name":"prod_cat","polling":"vars","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"jQuery('.product__brand').eq(0).text().trim().toLowerCase();","trigger":"pageload"},{"name":"prod_id","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"(function() {\n if (window.skusJson) {\n return skusJson && skusJson.skuInfos && skusJson.skuInfos[0].productId;\n }\n})();","trigger":"pageload"},{"name":"prod_name","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('.main-product .product__title:first').text().trim();","trigger":"pageload"},{"name":"in_stock","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('button.product__btn').text().toLowerCase().indexOf('add') > -1;","trigger":"pageload"},{"name":"imageurl","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('.main-product .slick-active img').attr('src');","trigger":"pageload"},{"name":"prod_url","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('link[rel=canonical]').attr('href') || bouncex.utils.getOrigin() + window.location.pathname;","trigger":"pageload"},{"name":"item_vars_ready","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"!!(bouncex.vars.prod_id &&\nbouncex.vars.prod_name &&\nbouncex.vars.imageurl &&\nbouncex.vars.prod_url &&\nbouncex.vars.is_english &&\nbouncex.vars.prod_cat);","trigger":"pageload"},{"name":"pagetype","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"(function() {\n if (window.location.origin.indexOf(\"https://www.tnuck.com\") === -1) {\n return;\n }\n\n if (window.location.pathname.indexOf('gift-card') !== -1) {\n return;\n }\n\n switch(true) {\n case(window.location.pathname === \"/\"):\n return \"home\";\n case(jQuery('.main-product').length > 0):\n return \"product\";\n case(window.location.pathname === \"/search.html\"):\n return \"search\";\n case(jQuery('.products li').length > 0):\n return \"category\";\n case(window.location.pathname.indexOf('cart') > -1):\n return 'cart';\n }\n})();","trigger":"pageload"},{"name":"cat_title","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('.main__title').text().trim().toLowerCase();","trigger":"pageload"},{"name":"item_ids","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('.products-container li').map(function(_, e) {\n return jQuery(e).find('.product').attr('data-lead-pid');\n}).toArray().join(',');","trigger":"pageload"},{"name":"cat_url","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"bouncex.utils.getOrigin() + window.location.pathname;","trigger":"pageload"},{"name":"hover_id","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"(function(e) {\n return jQuery(e).attr('data-lead-pid');\n}(this));\n","trigger":"event"},{"name":"search_url","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"bouncex.utils.url.removeParams(['utm_affiliate']);","trigger":"pageload"},{"name":"check_empty_cart","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"Number(jQuery('.site-header__icon--cart a[href=\"/cart\"]').attr('data-cart-count')) === 0;","trigger":"pageload"},{"name":"gift_page","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"window.location.pathname.indexOf('gift-card') > -1;","trigger":"pageload"},{"name":"is_english","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"(function() {\n var pattern = /^[\\sa-zA-Z0-9!@#$%^&*()_+\\-=\\[\\]{};'’:\"\\\\|,.<>\\/?]*$/;\n\n if (bouncex.vars.prod_name.match(pattern)) {\n return true;\n } else {\n return false;\n }\n})();","trigger":"pageload"},{"name":"ibx_log_in","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"items_ready","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('.products-container .product').length > 0;","trigger":"pageload"},{"name":"prod_price","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.product__content .product__price span').last().text().replace(/[^0-9.]/g, '');","trigger":"pageload"},{"name":"current_date_plus_two","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function(){\n var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n var d = new Date();\n d.setDate(d.getDate() + 2);\n var finalDate = days[d.getDay()] + ', ' + months[d.getMonth()] + ' ' + (d.getDate());\n return finalDate;\n})(); ","trigger":"pageload"},{"name":"presale_product","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('button[type=\"submit\"]:contains(\"preorder\")').length > 0;","trigger":"pageload"},{"name":"dropship_product","polling":"none","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('#accordion-returns .accordion__body p').text().trim().indexOf('ships directly from the vendor') > -1;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"page_type","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts","trigger":"pageload"},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"!!bouncex.utils.getParam('customer_posted') || null;","trigger":"pageload"},{"name":"current_date_plus_four","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function(){\n var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n var d = new Date();\n d.setDate(d.getDate() + 4);\n var finalDate = days[d.getDay()] + ', ' + months[d.getMonth()] + ' ' + (d.getDate());\n return finalDate;\n})(); ","trigger":"pageload"},{"name":"current_date_plus_three","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function(){\n var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n var d = new Date();\n d.setDate(d.getDate() + 3);\n var finalDate = days[d.getDay()] + ', ' + months[d.getMonth()] + ' ' + (d.getDate());\n return finalDate;\n})(); ","trigger":"pageload"},{"name":"cart_qty","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function () {\n if (bouncex.website.pts === 'checkout' || window.location.href.indexOf('checkouts') > -1) {\n return null;\n }\n return Number(jQuery('.header__right a[href=\"/cart\"]').text().trim());\n})();","trigger":"pageload"},{"name":"group_id","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"bouncex.utils.getNestedProp('ShopifyAnalytics.meta.product.id');","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":"input[id^=\"purchaseGiftCard\"],input[id^=\"shareListViaEmail\"]","enabled":1},"etjson":[{"data_fields":[[{"activation":"item:id","prop":"","prop2":"","prop3":"","val":"prod_id"},{"activation":"item:copy","prop":"","prop2":"","prop3":"","val":"prod_name"},{"activation":"item:category","prop":"","prop2":"","prop3":"","val":"prod_cat"},{"activation":"item:url","prop":"","prop2":"","prop3":"","val":"prod_url"},{"activation":"item:imageurl","prop":"","prop2":"","prop3":"","val":"imageurl"},{"activation":"item:instock","prop":"","prop2":"","prop3":"","val":"in_stock"},{"activation":"item:price","prop":"","prop2":"","prop3":"","val":"prod_price"}]],"evaluation":[[{"activation":"page_type_criteria","prop":"","prop2":"","prop3":"","val":"product"}],[{"activation":"custom_variable_criteria","prop":"not_equal","prop2":"gift_page","prop3":"","val":"true"}],[{"activation":"custom_variable_criteria","prop":"not_equal","prop2":"item_vars_ready","prop3":"","val":"false"}]],"name":"Item Event: Delayed","testmode":true,"trigger":{"activation":"delay","prop":"","prop2":"","prop3":"","val":"3"},"type":{"activation":"default","prop":"","prop2":"","prop3":"","val":"item"}},{"data_fields":[[{"activation":"items:ids","prop":"","prop2":"","prop3":"","val":"item_ids"},{"activation":"page:url","prop":"","prop2":"","prop3":"","val":"cat_url"},{"activation":"page:title","prop":"","prop2":"","prop3":"","val":"cat_title"}]],"evaluation":[[{"activation":"page_type_criteria","prop":"","prop2":"","prop3":"","val":"category"},{"activation":"custom_variable_criteria","prop":"equal","prop2":"pagetype","prop3":"","val":"category"}]],"name":"View Category Event: Immediate","testmode":true,"trigger":{"activation":"default"},"type":{"activation":"default","prop":"","prop2":"","prop3":"","val":"view category"}},{"data_fields":[[{"activation":"item:id","prop":"","prop2":"","prop3":"","val":"hover_id"}]],"evaluation":[[{"activation":"page_type_criteria","prop":"","prop2":"","prop3":"","val":"category"},{"activation":"custom_variable_criteria","prop":"equal","prop2":"pagetype","prop3":"","val":"category"}],[{"activation":"custom_variable_criteria","prop":"equal","prop2":"items_ready","prop3":"","val":"true"}]],"name":"Hover Item Event: On Hover","testmode":true,"trigger":{"activation":"onHover","prop":"","prop2":"","prop3":"","val":"Hover-Id"},"type":{"activation":"default","prop":"","prop2":"","prop3":"","val":"hover item"}},{"data_fields":[[{"activation":"default"}]],"evaluation":[[{"activation":"page_type_criteria","prop":"","prop2":"","prop3":"","val":"cart"}],[{"activation":"custom_variable_criteria","prop":"equal","prop2":"cart_items","prop3":"","val":"0"}],[{"activation":"custom_variable_criteria","prop":"equal","prop2":"check_empty_cart","prop3":"","val":"true"}]],"name":"Empty Cart Event: Immediate","testmode":true,"trigger":{"activation":"default"},"type":{"activation":"default","prop":"","prop2":"","prop3":"","val":"empty_cart"}},{"data_fields":[[{"activation":"item:id","prop":"","prop2":"","prop3":"","val":"hover_id"}]],"evaluation":[[{"activation":"page_type_criteria","prop":"","prop2":"","prop3":"","val":"search"},{"activation":"custom_variable_criteria","prop":"equal","prop2":"pagetype","prop3":"","val":"search"}],[{"activation":"custom_variable_criteria","prop":"equal","prop2":"items_ready","prop3":"","val":"true"}]],"name":"Hover Item Event: On Hover","testmode":true,"trigger":{"activation":"onHover","prop":"","prop2":"","prop3":"","val":"Hover-Id"},"type":{"activation":"default","prop":"","prop2":"","prop3":"","val":"hover item"}}],"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,"fmc":["US","CA"],"fme":true,"fmx":"input[id^=purchaseGiftCard],input[id^=shareListViaEmail]","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":"304986998","ga4_measurement_id":"G-S6NMYZF1YE","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":"07b86cd800c4a4f31f957b17ec5e440e","creativesBaseStyles":"a53944a2","gpsAuction":"da7f2123bbe2e5d4e3b41dcea412be5c","inbox":"02aca5df0e176b8810a86da97ac05424","onsite":"0e56ab6ba004ee080ce3deb3edae35e9","sms":"e39203556bab2366e56296ce42e974a7","websdk":"9bfb4101582921c2f3bc6525926ca102"}; 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_4859bc87a0ad5f1e15ad54659c4f85cf.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); } } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();