(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":7264,"name":"Snapfish","cookie_name":"bounceClientVisit7264","domain":"snapfish.comhome","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"/* enable.feature.DISABLE_IOS_ABSOLUTE */\nwindow.wunderkind.sdk.addGeos([\"US\"]);","force_https":false,"waypoints":false,"content_width":900,"gai":"","swids":"","sd":0,"ljq":"auto","campaign_id":0,"is_preview":false,"aco":{"first_party_limit":"3500","local_storage":"1"},"cmp":{"gdpr":0,"gmp":0,"whitelist_check":0},"burls":[],"ple":false,"fbe":true,"ffs":"","mas":2,"map":2,"gar":true,"ete":1,"ettm":false,"etjs":"bouncex.log('SnapTest')\n/* ---------------------------- SHARED VARIABLES ---------------------------- */\n\nvar CLEAN_URL = bouncex.utils.url.allowParams(),\n clientPrintItemsList = [\n '/standard-print-details',\n '/square-print-details',\n '/wallet-print-details',\n '/wallet-print-matte-details',\n '/square-print-matte-details',\n '/standard-print-4x6-matte-details',\n '/true-digital-print-matte-details',\n '/standard-print-5x7-matte-details',\n '/standard-print-8x10-matte-details',\n '/square-print-8x8-matte-details',\n '/collage-print-details',\n '/collage-print-8x10-details',\n '/collage-print-4x4-matte-details',\n '/collage-print-4x6-matte-details',\n '/collage-print-5x7-matte-details',\n '/collage-print-8x10-matte-details',\n '/collage-print-8x8-matte-details',\n '/canvas-print-10x25-details',\n '/canvas-print-12x30-details',\n '/canvas-print-16x40-details',\n '/canvas-print-20x30-details',\n '/framed-canvas-print-details',\n '/canvas-print-photo-wrap-details',\n '/canvas-print-details',\n '/canvas-print-12x12-details',\n '/canvas-print-11x14-details',\n '/canvas-print-8x8-details',\n '/canvas-print-16x20-details',\n '/canvas-print-20x24-details',\n '/canvas-print-8x10-details',\n '/framed-canvas-black-11x14-details',\n '/framed-canvas-print-20x30-details',\n '/framed-canvas-chocolate-11x14-details',\n '/framed-canvas-black-12x12-details',\n '/framed-canvas-chocolate-12x12-details',\n '/framed-canvas-oak-12x12-details',\n '/framed-canvas-black-16x20-details',\n '/framed-canvas-chocolate-16x20-details',\n '/framed-canvas-black-20x24-details',\n '/framed-canvas-chocolate-20x24-details',\n '/framed-canvas-oak-20x24-details',\n '/framed-canvas-chocolate-8x10-details',\n '/framed-canvas-black-8x10-details',\n '/canvas-print-4x6-details',\n '/hanging-canvas-details'\n ].join(',');\n\n/* --------------------------------- HELPERS -------------------------------- */\n\nfunction getGroupId() {\n var scriptUrl = bouncex.parseJSON(jQuery('#bv-jsonld-reviews-data').text(), {'@id':''})['@id'] || bouncex.parseJSON(sessionStorage.getItem('_attn_'), {'pd': ''})['pd'],\n atcUrl = jQuery('app-pdp-builder-links[pageview=\"pdp\"] a[href]').attr('href');\n\n return atcUrl ? bouncex.utils.url.getParam('dg', atcUrl) : bouncex.utils.getParam('dgId', scriptUrl) || bouncex.utils.getNestedProp('productData.dgId', '');\n}\n\nfunction getItemIdFromURL(url) {\n var pdpGroupId = bouncex.website.pts === 'product' ? getGroupId() : bouncex.utils.getNestedProp('plpProdListObj.attributes.design.groupId'),\n $pdpEl = jQuery('.price-info .price-text').clone();\n\n $pdpEl.find('span').remove();\n \n var pdpElText = $pdpEl.text().split('$')[0].trim(),\n titleText = jQuery('.heading-pdp h1').text().trim(),\n pdpSlug = pdpElText.length > 0 ? slugify(pdpElText) : slugify(titleText);\n\n url = pdpSlug ? pdpSlug : (bouncex.utils.url.allowParams([], url) || '').split('/').pop();\n\n\treturn pdpGroupId ? `${url}-${pdpGroupId}` : url;\n}\n\nfunction isPrintsPage() {\n var slug = getItemIdFromURL(CLEAN_URL);\n return CLEAN_URL.indexOf('/prints') > -1 || CLEAN_URL.indexOf('-prints-') > -1 || CLEAN_URL.indexOf('-print-details') > -1 || CLEAN_URL.indexOf('www.snapfish.com/create/builder') > -1 && bouncex.utils.url.getParam('category') === 'prints' || jQuery('ul[aria-label=\"Breadcrumb\"]').text().toLowerCase().indexOf('print') > -1 || clientPrintItemsList.indexOf(slug) > -1;\n}\n\nfunction onPrintsPDP(itemCopy) {\n var slug = CLEAN_URL ? CLEAN_URL.split('/').pop() : '';\n return itemCopy.toLowerCase().indexOf('print') > -1 || jQuery('ul[aria-label=\"Breadcrumb\"]').text().toLowerCase().indexOf('print') > -1 || clientPrintItemsList.indexOf(slug) > -1;\n}\n\nfunction slugify(text) {\n return text.toLowerCase()\n // replace whitespace, dash sequences and underscores with a single dash\n .replace(/\\s+|--+|_/g, '-')\n // replace any non alphanumeric characters with an empty string\n .replace(/[^\\w\\-_]/g, '');\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction getItem() {\n var atcBtnText = jQuery('app-pdp-builder-links, .ctasection .cms-floating-cta #buttonId, #buttonId').first().text().toLowerCase(),\n prodCategory = bouncex.utils.url.getParam('productCategory'),\n breadCrumb = jQuery('ul[aria-label=\"Breadcrumb\"] li.list a[href]').first().text().trim() || 'Global',\n basePriceEl = jQuery('.price-info .strikethrough.pricing-1').first().text() || jQuery('.pricing-label .price-text, .starting-price .price-text, .add-saleprice, .strikethrough, .price-info').first().text(),\n itemCopy = jQuery('.heading-pdp h1, .csspdp h1').text().trim(),\n printsPDP = onPrintsPDP(itemCopy);\n return {\n id: getItemIdFromURL(CLEAN_URL),\n copy: itemCopy,\n category: isPrintsPage() ? 'Prints' : prodCategory ? prodCategory : breadCrumb.indexOf('<') > 0 ? 'Global' : breadCrumb,\n url: bouncex.utils.url.allowParams(['category', 'dgId', 'designId', 'sku', 'ptype', 'algSearch', 'fromSrc']),\n imageurl: jQuery('img.product-image.design-img[src*=\"/global\"], img.active, img.front, img.product-image').first().attr('src'),\n price: basePriceEl.indexOf('ยข') > -1 ? `00.${basePriceEl.replace(/[^0-9]/g, '')}` : basePriceEl.replace(/[^0-9.]/g, ''),\n saleprice: jQuery('.price-info .minimumlabel-1.color-03c').first().text().trim().replace(/[^0-9.]/g, '') || '',\n instock: atcBtnText.indexOf('create now') > -1 || atcBtnText.indexOf('make this photo book') > -1 || atcBtnText.indexOf('make this calendar') > -1,\n isprints: printsPDP,\n customerdiscount: printsPDP ? '70' : '50'\n };\n}\n\nfunction getPrintItem() {\n return {\n id: 'prints',\n copy: 'Prints',\n category: 'Prints',\n url: 'https://www.snapfish.com/prints',\n imageurl: 'https://cdn-image.staticsfly.com/i/store/WF718029_Assets/WF718029_prints_3up_square_mweb.jpg?impolicy=resize&width=480',\n instock: true,\n excluded: false,\n isprints: true,\n customerdiscount: '70'\n };\n}\n\nfunction fireViewItem(id, groupId) {\n var pushItem = { 'item:id': id };\n\n if (groupId) {\n pushItem['item:itemgroupid'] = groupId;\n }\n bouncex.push(['view item', pushItem]);\n}\n\nfunction initializeItemEvents() {\n var item;\n\n bouncex.et.onTrue(\n function () {\n item = CLEAN_URL.indexOf('/create/builder') > -1 ? getPrintItem() : getItem();\n return !!item.id &&\n !!item.copy &&\n !!item.category &&\n !!item.url &&\n !!item.imageurl;\n },\n function () {\n if (item.url.indexOf('gift-card') > -1 || item.url.indexOf('snapfish.com/storecat-detail') > -1) {\n return;\n } else if (CLEAN_URL.indexOf('/create/builder') > -1) {\n fireViewItem(item.id);\n return;\n }\n\n bouncex.push(['item', item]);\n\n item.groupId = bouncex.utils.getNestedProp('productData.sku', '');\n\n initializeSkuEvents(item.id, item.groupId);\n\n fireViewItem(item.id, item.groupId);\n\n bouncex.setVar('last_viewed_id', item.id);\n },\n 10\n );\n}\n\n/* ------------------------------ SKU TRACKING ------------------------------ */\n\n\nfunction hasOneVariant() {\n var variants = jQuery('app-product-size .product-size, app-frame-color .select-design').find('ul[role=\"listbox\"] li[role=\"option\"]').length;\n return variants > 1 ? false : variants === 1;\n}\n\nfunction initializeSkuEvents(itemId, groupId) {\n if (hasOneVariant() && bouncex.vars.sku_id) {\n // sku_id (wunderkind.sku) does not update dynamically. select_sku will not fire as expected\n fireSelectSku(itemId, groupId, bouncex.vars.sku_id);\n }\n\n bouncex.et.onVarChange('sku_id', function (oldVal, newVal) {\n // select_sku patch\n if (newVal && oldVal === '' && itemId === bouncex.vars.last_viewed_id) {\n fireSelectSku(itemId, groupId, newVal);\n }\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/* ---------------------------- QUICKVIEW TRACKING --------------------------- */\n\nfunction addQuickViewListener() {\n bouncex.et.onVarChange('quickview_id', function (oldVal, newVal) {\n if (newVal) {\n var url = jQuery('app-pdp-builder-links[pageview=\"bsp\"] a[aria-label=\"Create now\"][href], app-pdp-builder-links[pageview=\"bsp\"] a[aria-label=\"Make This Photo Book\"][href]').attr('href') || '',\n groupId = bouncex.utils.url.getParam('sku', url);\n bouncex.push(['view item', { 'item:id': newVal, 'item:itemgroupid': groupId }]);\n bouncex.setVar('last_viewed_id', newVal);\n initializeSkuEvents(newVal, groupId);\n }\n });\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\n\n/* Limitation: Some category pages do not include size/color specific item data on page load. Leads to inaccurate item:id(s) */\nfunction getItemIdsCat() {\n var ids = [],\n $designTiles = jQuery('#design-tile-list div[id*=\"fd-\"]'),\n $printTiles = jQuery('a[aria-label*=\"Prints\"][href*=\"-details\"]'),\n $standardTiles = jQuery('.tile-img'),\n $products = $designTiles.length > 0 ? $designTiles : isPrintsPage() && $printTiles.length > 0 ? $printTiles : $standardTiles.length > 0 ? $standardTiles : jQuery(),\n $slugs = jQuery('.short-title.ng-star-inserted');\n\n $products.each(function (i, e) {\n var slugText = $slugs.eq(i).text().trim(),\n slug = slugify(slugText),\n id = (jQuery(e).attr('id') || '').replace('tile-', '').replace('fd-', '') || getItemIdFromURL(jQuery(e).attr('href'));\n id = slug ? `${slug}-${id}` : id;\n if (id && ids.indexOf(id) < 0) {\n ids.push(id);\n }\n });\n\n return ids.join(',');\n}\n\nfunction getCategoryObject() {\n return {\n 'page:url': bouncex.utils.url.allowParams(['ptype', 'pcat', 'offset', 'view', 'bspOffset', 'isLoadMore', 'productCategory']),\n 'items:ids': getItemIdsCat(),\n 'page:category': jQuery('ul[aria-label=\"Breadcrumb\"] li.list a[href], ul.breadcrumb li:not(:contains(\"Home\"))').first().text().trim().toLowerCase()\n };\n}\n\nfunction getPrintCategoryObject() {\n return {\n 'page:url': bouncex.utils.url.allowParams(['ptype', 'pcat', 'offset', 'view', 'bspOffset', 'isLoadMore', 'productCategory']),\n 'items:ids': getItemIdsCat() || 'prints',\n 'page:category': jQuery('ul[aria-label=\"Breadcrumb\"] li.list a[href], ul.breadcrumb li:not(:contains(\"Home\"))').first().text().trim().toLowerCase()\n };\n}\n\nfunction initializeCategoryEvents() {\n var categoryObj;\n\n bouncex.et.onTrue(\n function () {\n categoryObj = isPrintsPage() ? getPrintCategoryObject() : getCategoryObject();\n return !!categoryObj['items:ids'].length &&\n !!categoryObj['page:url'];\n },\n function () {\n bouncex.push(['view category', categoryObj]);\n },\n 10\n );\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\n\nfunction fireAddToCart(itemId) {\n bouncex.push(['add to cart', { 'item:id': itemId }]);\n\n if (bouncex.vars.cart) {\n return;\n }\n bouncex.setVar('cart', true);\n}\n\nfunction initializeATCTracking() {\n if (CLEAN_URL.indexOf('/create/builder') > -1) {\n var ATC_SELECTOR = '#previewAddToCart, #add-to-cart-butn, #add-to-cart-btn',\n id = bouncex.vars.last_viewed_id,\n groupId = bouncex.utils.url.getParam('dg') || '';\n\n if (!id) {\n return;\n }\n\n // firing view_item event on the /create/builder page\n fireViewItem(id, groupId);\n\n bouncex.et.onVisible(ATC_SELECTOR, function() {\n bouncex.on(jQuery(ATC_SELECTOR), 'click.bxatc', function() {\n fireAddToCart(id);\n bouncex.off(jQuery(ATC_SELECTOR), 'click.bxatc');\n });\n });\n }\n}\n\nfunction emptyCart() {\n bouncex.et.onVarChange('cart_qty', function (oldVal, newVal) {\n if (bouncex.vars.cart && newVal === 0 && oldVal > 0) {\n bouncex.push(['empty_cart']);\n bouncex.setVar('cart', false);\n }\n });\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n replenish: function () { },\n replenishmentType: 'single'\n });\n\n initializeATCTracking();\n emptyCart();\n}\n\n/* ------------------------------- CUSTOM EVENTS ------------------------------ */\n\nfunction initializePersonalizedItemEvent() {\n var id = bouncex.vars.last_viewed_id,\n img;\n\n if (id) {\n bouncex.et.onTrue(\n function () {\n var projectId = bouncex.vars.project_id,\n cartImgURL = jQuery(`div[id*=\"products_container\"] div[id*=\"${projectId}\"] img`).attr('src') || '';\n img = cartImgURL ? (bouncex.utils.url.allowParams(['md5sum', 'context', 'skuId', 'vt', 'height'], cartImgURL)).replace('height=100', 'height=500') : '';\n return !!img && img.indexOf('rendering.snapfish.com') > - 1;\n },\n function () {\n fireAddedPersonalizedItemEvent(id, img);\n },\n 20\n );\n }\n}\n\nfunction fireAddedPersonalizedItemEvent(id, img) {\n bouncex.push(['added_personalized_item',\n {'item:id': id,\n 'item:imageurl': img\n }]);\n \n /* SOTEC-9716 - firing add to cart when we fire the personalized item event on the cart page */\n fireAddToCart(id);\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\n\nfunction getUserEmail() {\n if(window.store && window.store.emailAddress && window.store.emailAddress !== \"\"){\n return window.store.emailAddress\n }\n return bouncex.getBounceCookie('attntv_mstore_email') && bouncex.getBounceCookie('attntv_mstore_email').replaceAll(':0', '');\n}\n\nfunction initializeUserTracking() {\n\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 = getUserEmail();\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/* --------------------------- CANCEL ABANDONMENT TRACKING -------------------------- */\n\nfunction customCancelAbandonmentTracking() {\n bouncex.et.onVarChange('saved_project', function(oldVal, newVal) {\n if (newVal && bouncex.vars.saved_project && !bouncex.vars.cancelled_prod_aband) {\n fireCancelEvent();\n }\n });\n \n if (CLEAN_URL.indexOf('/create/builder') > -1) {\n var SAVED_PROJECT_SELECTOR = '#subModal_Primary:contains(\"Sign In\"), #subModal_Secondary:contains(\"Create Account\")';\n bouncex.et.onVisible(SAVED_PROJECT_SELECTOR, function() {\n bouncex.on(jQuery(SAVED_PROJECT_SELECTOR), 'click.bxsave', function() {\n bouncex.setv('saved_project', true);\n fireCancelEvent();\n bouncex.off(jQuery(SAVED_PROJECT_SELECTOR), 'click.bxsave');\n });\n });\n }\n}\n\nfunction fireCancelEvent() {\n bouncex.push(['cancel_abandonment',{}]);\n bouncex.setVar('cancelled_abandonment', true);\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n return CLEAN_URL.indexOf('www.snapfish.com') > -1;\n}\n\n\nfunction isEn() {\n var lang = '';\n var htmlEl = document.querySelector('html');\n\n if (htmlEl && !htmlEl.classList.contains('translated-ltr')) {\n lang = htmlEl.getAttribute('lang') \n || (bouncex.html && bouncex.html.attr('lang')) \n || jQuery('html').attr('lang') \n || '';\n }\n return lang;\n}\n\n\n\nfunction isCorrectCountry(){\n return bouncex.state.geo.country_code === 'US';\n}\n\nfunction isValidForTracking() {\n return isValidDomain() && isEn() && isCorrectCountry();\n}\n\nfunction init() { \n if (!isValidForTracking() && !isEn()) {\n return;\n }\n \n initializeUserTracking();\n initializeCartEvents();\n customCancelAbandonmentTracking();\n addQuickViewListener();\n\n switch (bouncex.website.pts) {\n case 'category':\n case 'search':\n initializeCategoryEvents();\n break;\n case 'product':\n initializeItemEvents();\n break;\n case 'cart':\n initializePersonalizedItemEvent();\n break;\n default:\n break;\n }\n}\n\n/* set timer to allow lang and all selectors to become available */\nbouncex.setTimeout2(init, 5000);\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/shoppingcart"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('div.category-name').length > 0;"},{"activation":"current_page_url","prop":"exactly","prop2":"","prop3":"","val":"https://www.snapfish.com/prints"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('#design-tile-list [id*=\"tile\"]').length > 0;"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/cart/billing"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('link[rel=\"canonical\"][href=\"https://www.snapfish.com/home\"]').length > 0;"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('div.snapfish[class*=\"pdp-variation\"]').length > 0;"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('div[ui-view=\"pdview\"]').length > 0 && (window.location.href || '').indexOf('/pdpview') > -1;"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/s/"}]]}},"els":{"blank_site_element":"","skip_link":".header-container-fixed > .row"},"vars":[{"name":"logged_in","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function(){\n var loggedInStatus = bouncex.utils.getNestedProp('isLoggedIn', '');\n return loggedInStatus ? loggedInStatus === 'true' : null;\n})();\n","trigger":""},{"name":"ever_logged_in","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.logged_in || null;","trigger":""},{"name":"cart_qty","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\n var miniCartQty = (jQuery('#globalHeaderCart').attr('aria-label') || jQuery('#total_cart_items').text()).replace(/[^0-9]/g, '');\n if (jQuery('#emptycart').length > 0) {\n return 0;\n }\n return Number(miniCartQty) || null;\n})();\n","trigger":""},{"name":"in_stock","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"","trigger":""},{"name":"submitted_onsite","polling":"none","persist":"permanent","page_types":[],"testmode":true,"default":"false","code":"","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cookie_modal_present","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"page_type","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts;","trigger":"pageload"},{"name":"attentive_visible","polling":"vars","persist":"no","page_types":[],"testmode":true,"default":"false","code":"jQuery('#attentive_overlay').length > 0;","trigger":"pageload"},{"name":"quickview_id","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"","code":"(function() {\n var url = jQuery('app-pdp-builder-links[pageview=\"bsp\"] a[aria-label=\"Create now\"][href], app-pdp-builder-links[pageview=\"bsp\"] a[aria-label=\"Make This Photo Book\"][href]').attr('href') || '',\n itemId = bouncex.utils.url.getParam('dg', url),\n $priceEl = jQuery('app-quickview app-pdp-builder-links div.price-text').clone(),\n slugify = function(text) {\n return text.toLowerCase()\n // replace whitespace, dash sequences and underscores with a single dash\n .replace(/\\s+|--+|_/g, '-')\n // replace any non alphanumeric characters with an empty string\n .replace(/[^\\w\\-_]/g, '');\n };\n\n // remove child span elements that aren't needed in the slug\n $priceEl.find('span.ng-star-inserted').remove();\n\n var titleText = jQuery('span.productname.link-active, app-heading h2').text().trim(),\n text = $priceEl.length > 0 ? slugify($priceEl.text().trim()) : slugify(titleText);\n\n return text && itemId ? `${text}-${itemId}` : '';\n})();\n","trigger":"pageload"},{"name":"saved_project","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.url.allowParams().indexOf('/create/builder') > -1 && jQuery('#toastMsg, span[role=\"status\"].message').first().text().trim().toLowerCase().indexOf('project was successfully saved') > -1;","trigger":"pageload"},{"name":"cancelled_abandonment","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"project_id","polling":"all","persist":"no","page_types":["cart"],"testmode":false,"default":"false","code":"(function(){\n var linkUrl = jQuery('a[href*=\"projectId\"]').attr('href') || '',\n projectId = bouncex.utils.url.getParam('projectId', linkUrl);\n return projectId || false;\n})();\n","trigger":"pageload"},{"name":"last_viewed_id","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"sku_id","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"","code":"(function(){\n var scriptUrl = bouncex.parseJSON(jQuery('#bv-jsonld-reviews-data').text(), {'@id':''})['@id'] || bouncex.parseJSON(sessionStorage.getItem('_attn_'), {'pd': ''})['pd'],\n atcUrl = jQuery('app-pdp-builder-links[pageview=\"pdp\"] a[href], app-pdp-builder-links[pageview=\"bsp\"] a[aria-label=\"Create now\"][href], app-pdp-builder-links[pageview=\"bsp\"] a[aria-label=\"Make This Photo Book\"][href]').attr('href'),\n skuPartOne = bouncex.utils.getNestedProp('productData.sku', ''),\n skuPartTwo = atcUrl ? bouncex.utils.url.getParam('dg', atcUrl) : bouncex.utils.getParam('dgId', scriptUrl) || bouncex.utils.getNestedProp('productData.dgId', '');\n\n return skuPartOne && skuPartTwo ? `${skuPartOne}_${skuPartTwo}` : '';\n})();","trigger":"pageload"},{"name":"sku_id_old","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"","code":"bouncex.utils.getNestedProp('wunderkind.sku', '');","trigger":"pageload"},{"name":"disableforseepopup_false","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function checkCookie() {\n const cookies = document.cookie.split(';');\n\n for (let i = 0; i < cookies.length; i++) {\n const cookiePair = cookies[i].trim().split('=');\n if (cookiePair[0] === 'disableforseepopup' && cookiePair[1] === 'false') {\n return true;\n }\n }\nreturn false;\n})();","trigger":"pageload"},{"name":"disableforseepopup","polling":"all","persist":"no","page_types":[],"testmode":false,"default":0,"code":"(function checkCookie() {\n const cookies = document.cookie.split(';');\n\n for (let i = 0; i < cookies.length; i++) {\n const cookiePair = cookies[i].trim().split('=');\n if (cookiePair[0] === 'disableForseePopup' && cookiePair[1] === 'false') {\n return false;\n }\n else if (cookiePair[0] === 'disableForseePopup' && cookiePair[1] === 'true') {\n return true; \n }\n }\n})();","trigger":"pageload"}],"dgu":"pixel.cdnwidget.com","dgp":false,"ba":{"enabled":0,"fbte":0},"biu":"assets.bounceexchange.com","bau":"api.bounceexchange.com","beu":"events.bouncex.net","ibx":{"tjs":"","cjs":"","miw":0,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":{"bxid":"espemailid"},"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":1,"spatm":0,"preinit_cjs":"","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"","eventSharing":false,"shqId":"","enabled":0},"pde":true,"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":"","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":1,"devMode":1},"ga4_property_id":"","ga4_measurement_id":"","tag_state_domain":"api.bounceexchange.com","tag_state_domain_enabled":false} ; 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":"31fdfa295d35a29e04f46d0e63fee3ed","creativesBaseStyles":"a53944a2","gpsAuction":"bbb80866120d17013073bb6d284cbd6b","inbox":"a17aab65d5ec0e7dbba07712663f933e","onsite":"c05f8c5551fa6b964660ad61916291c1","sms":"e39203556bab2366e56296ce42e974a7","websdk":"9c2817e65e803cb8c86d0410c88f20c1","website_campaigns_7264":"0da55361e8c922b4f9f64a2b9a4b9399"}; 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_24d56cffd5b9a72217cf4bed3e56d27d.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_23e9fb6eac44d2bdee89ffde48eb6611.js'); deviceGraphScript.setAttribute('async', 'async'); var dgAttrs = [{"Key":"id","Value":"c.js"},{"Key":"async","Value":"true"},{"Key":"data-apikey","Value":"2^HIykD"},{"Key":"data-cb","Value":"bouncex.dg.initPostDeviceGraph"},{"Key":"data-bx","Value":"1"},{"Key":"data-gm","Value":"1"},{"Key":"data-fire","Value":"1"}]; if (dgAttrs) { for (var i = 0; i < dgAttrs.length; i++) { deviceGraphScript.setAttribute(dgAttrs[i].Key, dgAttrs[i].Value); } } document.body.appendChild(deviceGraphScript); bouncex.initializeTag = function() {}; }; runtime.onload = bouncex.initializeTag; document.body.appendChild(runtime); } } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();