(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":1973,"name":"HC - Sam's Club Checks","cookie_name":"bounceClientVisit1973","domain":"samsclubchecks.com","ct":"fp_local_storage","ally":1,"ei":0,"tcjs":"// PD 8/30/2018: Trigger omniture event on post conversion only if bx ad has impressed\n(function() {\n for (var ca_id in bouncex.cookie.campaigns) {\n if (bouncex.cookie.campaigns.hasOwnProperty(ca_id) && bouncex.cookie.campaigns[ca_id].lavid) {\n bouncex.omnitureLinkTrack2('BounceX Conversion - Campaign ' + ca_id, 'event30');\n }\n }\n})();","cjs":"(function () {\n var videoModalCta = jQuery('#hsmodal');\n if (videoModalCta.length > 0 && !window.bouncex.vars.has_watched_video) {\n videoModalCta.on('click.bx', function () {\n jQuery(this).unbind('click.bx');\n window.bouncex.setv('has_watched_video', true);\n window.bouncex.setBounceCookie();\n window.bouncex.reload_campaigns();\n });\n }\n})();\n\n/*\nGO: Omniture event tracking\nPD 08/29/18 - We are disabling this version and replacing with omnitureLinkTrack2 which is called in Custom Campaign JS. Can't remove the function entirely to maintain backwards compatibility for old campaigns.\n*/\nbouncex.omnitureLinkTrack = function(campaignLabel, eventId) {\n // try{\n // window.s.linkTrackVars = 'eVar34,events';\n // window.s.linkTrackEvents = eventId;\n // window.s.eVar34 = campaignLabel;\n // window.s.events = eventId;\n // window.s.tl(true, 'o', campaignLabel);\n // } catch (e) {\n // console.error('BX Omniture Error: ' + e);\n // }\n};\n\n// omitureLinkTrack2 is called in Custom Campaign JS\nbouncex.omnitureLinkTrack2 = function(campaignLabel, eventId) {\n var parsedLabel = eventId !== 'event30' ? '' : campaignLabel;\n // PD: Post conversion events get unique label formatting sine GA label isn't available\n if (eventId !== 'event30') {\n var campaignNameRegex = /(?:variation|control) - (.*)(?:\\([^)]*\\))/;\n var campaignIDRegex = /[^(]\\d{3,10}[^)]/g;\n var campaignName = campaignNameRegex.exec(campaignLabel)[1] || [];\n var parentId = campaignLabel.match(campaignIDRegex)[0] || [];\n var variationId = campaignLabel.match(campaignIDRegex)[1] || [];\n parsedLabel = parentId + ' ' + variationId + ' : ' + campaignName;\n }\n\n\n try{\n window.s.linkTrackVars = 'eVar34,events';\n window.s.linkTrackEvents = eventId;\n window.s.eVar34 = parsedLabel;\n window.s.events = eventId;\n window.s.tl(true, 'o', parsedLabel);\n } catch (e) {\n console.error('BX Omniture Error: ' + e);\n }\n};","force_https":false,"waypoints":false,"content_width":0,"gai":"","swids":"","sd":0,"ljq":"auto","campaign_id":0,"is_preview":false,"aco":{"first_party_limit":"3500","local_storage":"1"},"cmp":{"gdpr":0,"gmp":0,"whitelist_check":0},"burls":[],"ple":false,"fbe":true,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\nvar domain = \"https://www.samsclubchecks.com/\";\n/* --------------------------------- HELPERS -------------------------------- */\n\nfunction getUrl() {\n return bouncex.utils.url.allowParams();\n}\n\nfunction setVarAndCookie(varName, value) {\n bouncex.setVar(varName, value);\n bouncex.setBounceCookie();\n\n return;\n}\n/* ------------------------------ ITEM TRACKING ----------------------------- */\nfunction getIdFromUrl(url) {\n var noParam = url ? bouncex.utils.url.allowParams(['productid'], url) : \"\";\n if(bouncex.website.pts === 'search') {\n return noParam.split(\"=\").pop()\n}\n return noParam.split(\"/\").pop();\n}\n\nfunction getItem() {\n var $imageSelector = jQuery(\"#singledisplayimage\").attr(\"src\");\n return {\n id: getIdFromUrl(jQuery('link[rel=\"canonical\"]').attr(\"href\")),\n copy: jQuery(\"#lblProdTitle\").text().trim(),\n category: bouncex.utils.getNestedProp(\"s.prop2\") || \"Global\",\n url: bouncex.utils.url.allowParams(\"add\"),\n imageurl: $imageSelector && (domain + $imageSelector.split('../').pop()),\n instock:[\"personalize\", \"add to cart\"].indexOf(jQuery(\"#lnkAddtoCart, #lnkBtnPersonalize\").text().toLowerCase()) > -1,\n };\n}\n\nfunction isExcluded(item) {\n return item.url.indexOf(\"gift-card\") > -1;\n}\n\nfunction initializeItemEvents() {\n var item;\n\n bouncex.et.onTrue(\n function () {\n item = getItem();\n return !!item.id && !!item.copy && !!item.category && !!item.url && !!item.imageurl;\n },\n function () {\n if (isExcluded(item)) {\n return;\n }\n bouncex.push([\"item\", item]);\n bouncex.push([\"view item\", { \"item:id\": item.id }]);\n\n return;\n },\n 10\n );\n\n return;\n}\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\n\nfunction getItemIdsCat() {\n var ids = [],\n $tiles = jQuery(\"div.product-container > a\"),\n i = 0,\n id = \"\";\n\n for (i; i < $tiles.length; i++) {\n id = getIdFromUrl($tiles.eq(i).attr(\"href\"));\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\": bouncex.utils.url.allowParams(\"add, itemcount, sortcol, txtKeyword, pg\"),\n \"items:ids\": getItemIdsCat(),\n };\n}\n\nfunction initializeCategoryEvents() {\n var categoryObj;\n\n bouncex.et.onTrue(\n function () {\n categoryObj = getCategoryObject();\n return !!categoryObj[\"items:ids\"].length && !!categoryObj[\"page:url\"];\n },\n function () {\n bouncex.push([\"view category\", categoryObj]);\n },\n 10\n );\n\n return;\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\n\nfunction addToCart(itemId) {\n if(!itemId) { return }\n bouncex.push(['add to cart',{'item:id':itemId}]);\n}\n\nfunction getTitleAttribute(target) {\n var text = 'Approve and Continue';\n if(target.attr('title')) {return target.attr('title') === text}\n return target.parent().attr('title') === text;\n \n}\n\nfunction initializeATCClickTracking() {\n var $itemId = bouncex.utils.getParam('productid') || '',\n eventTarget;\n\n\n bouncex.et.on(jQuery(document), 'click.bx', function(e) {\n eventTarget = jQuery(e.target);\n if ( getTitleAttribute(eventTarget) && jQuery('#ckAgree').is(':checked')) {\n addToCart($itemId);\n return;\n }\n\n if (eventTarget.text() === 'Add to Cart') {\n bouncex.website.pts === 'product' ? $itemId = getIdFromUrl(jQuery('link[rel=\"canonical\"]').attr(\"href\")) : $itemid = eventTarget.siblings('span').find('label').text().split('_')[0];\n addToCart($itemId);\n }\n })\n\n bouncex.et.on(jQuery(document), 'submit.bx', function() {\n if(jQuery('input[id*=\"chbIagree\"][type=\"checkbox\"]').is(':checked')) {\n addToCart($itemId);\n }\n }, '#Form1')\n\n return;\n}\n\nfunction emptyCart() {\n if(jQuery('#CartIsEmpty > h1').text().toLowerCase().indexOf('empty') > -1) {\n bouncex.push([\"empty_cart\"]);\n setVarAndCookie(\"cart\", false);\n }\n\n return;\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n replenish: function () {\n return;\n },\n replenishmentType: \"single\",\n });\n initializeATCClickTracking();\n emptyCart();\n\n return;\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n return getUrl().indexOf(\"www.samsclubchecks.com\") > -1;\n}\n\nfunction isEn() {\n return jQuery(\"html\").attr(\"lang\") === \"en\";\n}\n\nfunction isValidForTracking() {\n return isValidDomain() && isEn();\n}\n\nfunction init() {\n if (!isValidForTracking()) {\n return;\n }\n\n initializeCartEvents();\n\n switch (bouncex.website.pts) {\n case \"category\":\n initializeCategoryEvents();\n break;\n case \"product\":\n initializeItemEvents();\n break;\n default:\n break;\n }\n\n return;\n}\n\ninit();\n","dge":true,"bxidLoadFirst":false,"pie":true,"cme":false,"gbi_enabled":0,"bpush":false,"pt":{"cart":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname === \"/cart.aspx\";"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"(window.location.href.indexOf('/c/') > -1 || [\"/picturechecks-crop.aspx\",\"/picturechecks-upload.aspx\"].indexOf(window.location.pathname) > -1) && window.location.href.indexOf('/sitemap') === -1 ;"}]]},"checkout":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"[\"/checkout.aspx\",\"/payment.aspx\"].indexOf(window.location.pathname) > -1;"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"[\"/index.aspx\",\"/\"].indexOf(window.location.pathname) > -1;"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.href.indexOf('/p/') > -1 || [\"/Preview.aspx\"].indexOf(window.location.pathname) > -1;"}]]},"search":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname === \"/search.aspx\";"}]]}},"els":null,"vars":[{"name":"dup_checks","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#checkOptionsTab ul li a:contains(Duplicate Checks)').length > 0 && jQuery('#checkOptionsTab ul li a:contains(Single Checks)').length > 0;","trigger":""},{"name":"business_pd_page","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"window.location.pathname.indexOf('/p/') > -1 && !!jQuery('#ProductDesc h4:contains(\"Need a Custom Logo\")').eq(0).length;","trigger":""},{"name":"high_security_pd_page","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"window.location.pathname.indexOf('/p/') > -1 && !!jQuery('#ProductDesc #hsmodal').eq(0).length;","trigger":""},{"name":"thumbnail_options_pd_page","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"window.location.pathname.indexOf('/p/') > -1 && !!jQuery('.image_scenes img').eq(0).length;","trigger":""},{"name":"fraud_armor_pd_page","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"window.location.pathname.indexOf('/p/') > -1 && (!!jQuery('.fraudArmorRadio .chkFAUpgrade').eq(0).length > 0 || jQuery('.fraudArmorRadio').length > 0);","trigger":""},{"name":"add_to_cart_cta_shown","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function(){\n var by_parent_id = window.bouncex.by_parent_id(386215) || window.bouncex.by_parent_id(399645);\n return window.bouncex.campaigns[by_parent_id] \n ? (window.bouncex.campaigns[by_parent_id].ad_shown && window.bouncex.campaigns[by_parent_id].ad_visible) \n : null;\n})();","trigger":""},{"name":"fraud_armor_upsell_shown","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function(){\n var by_parent_id = window.bouncex.by_parent_id(386152) || window.bouncex.by_parent_id(399353);\n return window.bouncex.campaigns[by_parent_id] \n ? (window.bouncex.campaigns[by_parent_id].ad_shown && window.bouncex.campaigns[by_parent_id].ad_visible) \n : null;\n})();","trigger":""},{"name":"high_security_video_shown","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function(){\n var by_parent_id = window.bouncex.by_parent_id(386148) || window.bouncex.by_parent_id(399369) || window.bouncex.by_parent_id(399392) || window.bouncex.by_parent_id(399402);\n return window.bouncex.campaigns[by_parent_id] \n ? (window.bouncex.campaigns[by_parent_id].ad_shown && window.bouncex.campaigns[by_parent_id].ad_visible) \n : null;\n})();","trigger":""},{"name":"has_watched_video","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":""},{"name":"items_in_cart","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(jQuery('#Header_lblCartCount').length > 0) ? jQuery('#Header_lblCartCount').text(): null;","trigger":""},{"name":"cart_value","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(window.top.location.href.indexOf('/cart.aspx') !== -1) ? Number((Number(jQuery('#ctlCart_Subtotal').text().replace('$','')) - Number(jQuery('#ctlCart_Handling').text().replace('$',''))).toFixed(2)) : null;","trigger":""},{"name":"cart_urls","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function() {\n\tif (window.top.location.href.indexOf('/cart.aspx') !== -1) {\n\t\tvar images = jQuery('#Form1').find('img[id$=ProductThumbnail]');\n\t\tif (images.length > 0) {\n\t\t\tvar imageURLs = [];\n\t\t\tjQuery.each(images, function() {\n\t\t\t\timageURLs.push(jQuery(this).attr('src').replace('images/products/thumbnail/',''));\n\t\t\t});\n\t\t\treturn imageURLs.join('|');\n\t\t}\n\t}\n})();\n","trigger":""},{"name":"business_or_personal","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":""},{"name":"fraud_armor_selected","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('.fraudArmorContainer input:first').is(':checked')","trigger":""},{"name":"agree_checkbox_visible","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#ckAgree').length > 0;","trigger":""},{"name":"previous_customer","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":""},{"name":"fraud_service_checked","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function() {\n if (window.location.href.indexOf('/p/') > -1 || [\"/Preview.aspx\"].indexOf(window.location.pathname) > -1) {\n return jQuery('#hdnFALite').attr('value') === \"\" || document.getElementById('ProductOptions_rdoSecurityProdYes_Quantity_1').checked;\n }\n return false;\n})();","trigger":"pageload"},{"name":"cart_qty","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"Number(jQuery('[id*=lblCartCount]').text().trim());","trigger":"pageload"},{"name":"page_type","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"}],"dgu":"pixel.cdnwidget.com","dgp":false,"ba":{"enabled":0,"fbte":0},"biu":"assets.bounceexchange.com","bau":"api.bounceexchange.com","beu":"events.bouncex.net","ibx":{"tjs":"","cjs":"","miw":0,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":null,"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":0,"spatm":1,"preinit_cjs":"","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"","eventSharing":false,"shqId":"","enabled":0},"pde":true,"fmc":["US"],"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":"","ga4_measurement_id":"","tag_state_domain":"api.bounceexchange.com"} ; bouncex.tag = 'tag3'; bouncex.$ = window.jQuery; bouncex.env = 'production'; bouncex.restrictedTlds = {"casl":{"ca":1},"gdpr":{"ad":1,"al":1,"at":1,"ax":1,"ba":1,"be":1,"bg":1,"by":1,"xn--90ais":1,"ch":1,"cy":1,"cz":1,"de":1,"dk":1,"ee":1,"es":1,"eu":1,"fi":1,"fo":1,"fr":1,"uk":1,"gb":1,"gg":1,"gi":1,"gr":1,"hr":1,"hu":1,"ie":1,"im":1,"is":1,"it":1,"je":1,"li":1,"lt":1,"lu":1,"lv":1,"mc":1,"md":1,"me":1,"mk":1,"xn--d1al":1,"mt":1,"nl":1,"no":1,"pl":1,"pt":1,"ro":1,"rs":1,"xn--90a3ac":1,"ru":1,"su":1,"xn--p1ai":1,"se":1,"si":1,"sj":1,"sk":1,"sm":1,"ua":1,"xn--j1amh":1,"va":1,"tr":1}}; bouncex.client = { supportsBrotli: 1 }; bouncex.assets = {"ads":"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-fire","Value":"1"}]; if (dgAttrs) { for (var i = 0; i < dgAttrs.length; i++) { deviceGraphScript.setAttribute(dgAttrs[i].Key, dgAttrs[i].Value); } } document.body.appendChild(deviceGraphScript); bouncex.initializeTag = function() {}; }; runtime.onload = bouncex.initializeTag; document.body.appendChild(runtime); } } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();