(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":4826,"name":"Sugar and Jade","cookie_name":"bounceClientVisit4826","domain":"sugarandjade.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"/* enable.feature.DISABLE_RELOAD_CAMPAIGNS_V2 */\n\n\n/* copy functionality from TCP, Gymboree - wrike 783331164: reload campaigns if user identified, but no campaigns showing */\nif (!bouncex.vars.user_identified_ibx) {\n bouncex.et.onVarChange('user_identified_ibx', function(old, new_val) {\n var campaign_visible = false;\n for (var c_id in bouncex.campaigns) {\n if (bouncex.campaigns.hasOwnProperty(c_id) && bouncex.campaigns[c_id].ad_visible) {\n campaign_visible = true;\n break;\n }\n }\n \n /* RTV value was previously false, currently true, and no campaigns impressed */\n if (!old && new_val && !campaign_visible) {\n bouncex.reload_campaigns();\n }\n });\n}","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":1,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\nvar globalConfig = {\n '4824': {\n domain_origin: 'www.childrensplace.com/us'\n },\n '4825': {\n domain_origin: 'www.gymboree.com/us'\n },\n '4826': {\n domain_origin: 'www.sugarandjade.com/us/'\n },\n },\n config = globalConfig[bouncex.website.id],\n PDP_ID;\n\n/* --------------------------------- HELPERS -------------------------------- */\nfunction getUrl() {\n var url = bouncex.utils.url.allowParams();\n\n if (url.indexOf('&') > -1) {\n url = url.split('&')[0];\n }\n\n return url;\n}\n\nfunction setVarAndCookie(varName, value) {\n bouncex.setVar(varName, value);\n bouncex.setBounceCookie();\n}\n\nfunction isCollectionPage() {\n return getUrl().indexOf('Collection') > -1;\n}\n\nfunction formatItemId(string) {\n var itemId = string.split('/').pop().split('.').shift() || '';\n return itemId.split('-').slice(-2).join('_');\n}\n\nfunction getSkuObj() {\n var selectedColor = jQuery('.image-chips-selector-title-name').text(),\n selectedFit = jQuery('.fit-selector .item-selected-option').text(),\n selectedSize = jQuery('.size-selector .item-selected-option').text() || jQuery('.size-and-fit-detail-item input:checked').val() || jQuery('.size-and-fit-detail-item.item-selected-option input').val(),\n currentProduct = bouncex.utils.getNestedProp('__NEXT_DATA__.props.initialState.ProductDetail.currentProduct', {}),\n colorArr = bouncex.utils.getNestedProp('colorFitsSizesMap', [], currentProduct),\n colorObj,\n fitArr,\n fitObj,\n sizeArr,\n selectedSku,\n selectedGroupId;\n\n // If correct object has not loaded we can not fire select_sku events\n if (currentProduct && currentProduct.productId !== PDP_ID) {\n return;\n }\n\n // Find the selected color from the window obj color array.\n // If no color is selected (i.e. there is only one color) then\n // our colorObj will be the first element from the color array.\n if (selectedColor) {\n colorArr.forEach(function(c){\n if (c.color.name === selectedColor){\n colorObj = c;\n }\n });\n } else {\n colorObj = colorArr[0] || {};\n }\n\n fitArr = colorObj && colorObj.fits || [];\n\n // find the selected fit from the colorObj fits array.\n // If no fit is selected (i.e. there is only one fit) then\n // our fitObj will be the first element from the fits array.\n if (selectedFit) {\n fitArr.forEach(function(f){\n if (f.fitName === selectedFit){\n fitObj = f;\n }\n });\n } else {\n fitObj = fitArr[0] || {};\n }\n\n sizeArr = fitObj && fitObj.sizes || [];\n\n // find the selected size from the size array\n // and grab the skuID and groupID from here\n sizeArr.forEach(function(variant){\n var isMixedSize = variant.sizeName.indexOf('(') > -1;\n\n if (isMixedSize && variant.sizeName.indexOf(selectedSize) > -1 || variant.sizeName === selectedSize) {\n selectedSku = variant.variantId;\n selectedGroupId = variant.prodPartNo;\n }\n });\n\n return {\n selectedSku: selectedSku,\n selectedGroupId: selectedGroupId\n };\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\nfunction getProdName() {\n var textNodesFiltered = jQuery('h2[itemprop=\"name\"]')\n .contents()\n .filter(function () {\n return this.nodeType === 3;\n });\n return textNodesFiltered.eq(0).text();\n}\n\nfunction getValidImgUrl() {\n var images = jQuery('meta[property=\"og:image\"]');\n for (var i = 0; i < images.length; i++) {\n var currentImg = jQuery(images[i]).attr('content');\n if (currentImg && currentImg.indexOf('.jpg') > -1 && currentImg.indexOf('.mp4') === -1) {\n return currentImg;\n }\n }\n return false;\n}\n\nfunction getItemImage() {\n var imgUrl = jQuery('meta[property=\"og:image\"]').attr('content'),\n smImg = '/w_200/',\n lgImg = '/w_600/';\n\n if (imgUrl && imgUrl.indexOf('.jpg') === -1 && imgUrl.indexOf('.mp4') > -1) {\n imgUrl = getValidImgUrl();\n }\n\n if (imgUrl && imgUrl.indexOf(smImg) > -1) {\n imgUrl = imgUrl.replace(smImg, lgImg);\n }\n\n return imgUrl;\n}\n\nfunction getItem() {\n var url = getUrl();\n return {\n id: formatItemId(url),\n copy: getProdName(),\n category: jQuery('.breadcrum-container span:last').text() || 'Global',\n url: url,\n imageurl: getItemImage(),\n price: jQuery('meta[itemprop=price]').attr('content'),\n instock: !jQuery('.add-to-bag-button').attr('disabled'),\n abanexclude: jQuery('#productDetailsSection .product-badge').first().text().toLowerCase().indexOf('just a few left') > -1\n };\n}\n\nfunction fireViewItem(item) {\n var pushItem = {\n 'item:id': item.id,\n };\n\n if (item.groupId) {\n pushItem['item:itemgroupid'] = item.groupId;\n }\n bouncex.push(['view item', pushItem]);\n}\n\nfunction isExcluded(item) {\n return (\n item.url.indexOf('giftcard') > -1 ||\n item.url.indexOf('gift-cards') > -1 ||\n bouncex.utils.getNestedProp('pageData.pageType') === 'outfit' ||\n window.location.href.indexOf('search') === 0\n );\n}\n\nfunction initializeItemEvents() {\n var item;\n\n bouncex.et.onTrue(\n function () {\n item = getItem();\n return (\n !!item.id &&\n !!item.copy &&\n !!item.category &&\n !!item.price &&\n !!item.url &&\n !!item.imageurl\n );\n },\n function () {\n if (isExcluded(item)) {\n return;\n }\n\n if (isCollectionPage()) {\n fireCollectionPdpTracking(item);\n return;\n }\n\n bouncex.setTimeout2(function () {\n bouncex.push(['item', item]);\n item.groupId = item.id;\n PDP_ID = item.id;\n initializeSkuEvents();\n fireViewItem(item);\n trackStylitics(item.id);\n }, 1500);\n },\n 10\n );\n}\n\n// Collection pages do not have groupid's\nfunction fireCollectionPdpTracking(item) {\n item.imageurl = jQuery('.outfit-carousal-image.full-size-desktop-image').attr('src');\n item.price = jQuery('meta[itemprop=\"price\"]:first').attr('content');\n bouncex.push(['item', item]);\n fireViewItem(item);\n}\n\nfunction trackStylitics(itemId) {\n jQuery('img[src*=\"content.stylitics\"]').each(function () {\n var el = jQuery(this),\n imageUrl = el.attr('src'),\n itemUrl = el.parent().parent().attr('href');\n\n itemUrl =\n itemUrl.indexOf(window.location.host) > -1 ? itemUrl : window.location.origin + itemUrl;\n\n if (imageUrl && itemUrl) {\n bouncex.push([\n 'view_collection',\n {\n image_url: bouncex.utils.url.allowParams([], imageUrl),\n item_url: itemUrl,\n item_id: itemId\n },\n ]);\n }\n });\n}\n\n/* ------------------------------ SKU TRACKING ------------------------------ */\n\nfunction initializeSkuEvents() {\n var lastSkuFired,\n skuObj;\n\n bouncex.et.on(\n bouncex.document,\n 'click.bxsku',\n function () {\n bouncex.et.onTrue(function () {\n skuObj = getSkuObj();\n return skuObj && skuObj.selectedSku && skuObj.selectedSku !== lastSkuFired;\n }, function () {\n bouncex.push([\n 'select_sku',\n {\n 'item:id': skuObj.selectedGroupId,\n 'item:itemgroupid': skuObj.selectedGroupId,\n 'item:feedid': skuObj.selectedSku\n }\n ]);\n lastSkuFired = skuObj.selectedSku;\n }, 5);\n },\n '.size-and-fit-detail-item, .color-title-container'\n );\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\nfunction getItemIdsCat() {\n var ids = [],\n $tiles = jQuery('.product-image a'),\n i = 0,\n id = '';\n\n for (i; i < $tiles.length; i++) {\n id = formatItemId($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': getUrl(),\n 'items:ids': getItemIdsCat()\n };\n}\n\nfunction initializeCategoryEvents() {\n var categoryObj;\n\n bouncex.et.onTrue(\n function () {\n categoryObj = getCategoryObject();\n return (\n !!categoryObj['items:ids'].length && !!categoryObj['page:url']\n );\n },\n function () {\n bouncex.push(['view category', categoryObj]);\n },\n 10\n );\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\nfunction fireAddToCart(itemId) {\n bouncex.push(['add to cart', { 'item:id': itemId }]);\n\n if (bouncex.vars.cart) {\n return;\n }\n\n setVarAndCookie('cart', true);\n}\n\nfunction trackGlobalAtc() {\n var url = getUrl();\n if (url.indexOf('gift-cards') > -1) {\n return;\n }\n bouncex.et.onVisible('.addedToBagWrapper', function (elem) {\n var product = jQuery(elem).find('.product img.product-image').attr('src') || '';\n var itemId = formatItemId(product);\n if (itemId) {\n fireAddToCart(itemId);\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 setVarAndCookie('cart', false);\n }\n });\n}\n\nfunction isValidEmptyCart() {\n return (\n bouncex.vars.cart_qty === 0 &&\n !bouncex.utils.url.getParam('bx_cart') &&\n !bouncex.utils.getParam('bx_replen')\n );\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n replenish: function () {},\n replenishmentType: 'single',\n });\n\n emptyCart();\n\n // to handle universal cart edge cases\n if (bouncex.vars.cart) {\n bouncex.setTimeout2(function () {\n if (isValidEmptyCart()) {\n bouncex.push(['empty_cart']);\n setVarAndCookie('cart', false);\n }\n }, 2500);\n }\n}\n\n/* ------------------------------ QUICKVIEW ----------------------------- */\nfunction initializeQuickviewEvents() {\n var item = {};\n bouncex.et.onVisible('.TCPModal__InnerContent', function (elem) {\n var url = jQuery(elem).find('a.link-redirect').attr('href'),\n itemId = formatItemId(url);\n\n if (itemId) {\n item.id = itemId;\n item.groupId = itemId;\n fireViewItem(item);\n }\n });\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\nfunction trackUserEmail() {\n var userEmail;\n if (getUrl().indexOf('login') > -1) {\n jQuery('button[data-locator=login-logincta]').click(function () {\n if (jQuery('#textbox__error__emailAddress').text().length === 0 && jQuery('.sc-jrQzAO.cHXcMQ.richTextColor').length === 0) {\n userEmail = jQuery('#emailAddress').val();\n localStorage.setItem('userEmail', userEmail);\n }\n });\n }\n}\n\nfunction initializeUserTracking() {\n var userEmail;\n trackUserEmail();\n\n bouncex.et.onTrue(\n function () {\n userEmail = localStorage.getItem('userEmail') || jQuery('span.sc-dkPtRN.epAOJm[data-locator=\"emailValue\"]').text();\n return (\n userEmail &&\n bouncex.utils.validate.email(userEmail) &&\n bouncex.vars.logged_in &&\n !bouncex.vars.logged_in_identified\n );\n },\n function () {\n bouncex.push([\n 'user',\n {\n email: userEmail,\n source: 'LoggedIn'\n },\n ]);\n setVarAndCookie('logged_in_identified', true);\n }\n );\n}\n\n/* --------------------------- Triggering BW from Native Footer Submit and from \"/content/email-subscribe\" page -------------------------- */\nfunction initializeNativeEmailSubmit() {\n bouncex.off(jQuery(document), 'click.bx', 'button.candidate_a_form_button');\n bouncex.on(\n jQuery(document),\n 'click.bx',\n function () {\n var userEmail = jQuery('input#signup').attr('value');\n bouncex.setTimeout2(function () {\n if (bouncex.utils.validate.email(userEmail) && jQuery('.warning-icon').length === 0) {\n fireRequestEmail(userEmail);\n }\n }, 1000);\n },\n 'button.candidate_a_form_button'\n );\n\n if (getUrl().indexOf('email-subscribe')) {\n bouncex.et.on(\n bouncex.document,\n 'click.bx',\n function () {\n var emailForm = jQuery(this).closest('.emailform__content'),\n userEmail = emailForm.find('input#modal_signup').val();\n\n if (bouncex.utils.validate.email(userEmail)) {\n fireRequestEmail(userEmail);\n }\n },\n '.join-button'\n );\n }\n}\n\nfunction fireRequestEmail(userEmail) {\n bouncex.push([\n 'requestemail',\n {\n email: userEmail,\n campaignId: '1550263',\n testmode: bouncex.testmode.bxdev ? 1 : 0\n },\n ]);\n}\n\n/* --------------------------- Custom Save For Later Cart Event -------------------------- */\n\nfunction trackSaveForLater() {\n\tif (bouncex.website.pts === 'cart') {\n var saveForLaterButton = jQuery('button[data-locator=\"Save For Later\"], .edit-modal-options li:eq(1)');\n\t\tbouncex.off(bouncex.document, 'click.bx touchstart.bx', saveForLaterButton);\n\t\tbouncex.et.on(bouncex.document, 'click.bx touchstart.bx', function(e){\n\t\t\tvar itemId = formatItemId((jQuery(e.target).parents('.product-tile-wrapper').find('.imageWrapper a').attr('href') || '').split('/').pop());\n\t\t\t\n\t\t\tif(itemId === \"\"){\n\t\t\t var itemUPC = jQuery('[data-locator=\"cartItemUpc\"]').length > 0 ? jQuery('[data-locator=\"cartItemUpc\"]').text().trim().replace('UPC: ', '') : '';\n itemId = jQuery('[unbxdparam_variant=\"'+itemUPC+'\"]').length > 0 ? formatItemId(jQuery('[unbxdparam_variant=\"'+itemUPC+'\"]').closest('.tile-header').find('a').first().attr('href')) : '';\n\t\t\t}\n\t\t\t\n\t\t\tif(itemId){\n\t\t\t bouncex.push(['saveforlater', {\n\t\t\t\t 'item:id' : itemId\n\t\t\t }]);\n\t\t\t}\n\t\t}, 'button[data-locator=\"Save For Later\"], .edit-modal-options li:eq(1)');\n\t}\n}\n\n/* --------------------------- Custom Cancel Event -------------------------- */\nfunction initializeCustomCancelEvent() {\n if (bouncex.utils.url.getParam('instore_coupon', window.location.href)) {\n bouncex.push(['used_coupon', {}]);\n bouncex.push(['visit', { 'customer:hasconverted': 1 }]);\n }\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n return getUrl().indexOf(config.domain_origin) > -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 initializeUserTracking();\n initializeCartEvents();\n initializeQuickviewEvents();\n initializeNativeEmailSubmit();\n initializeCustomCancelEvent();\n trackGlobalAtc();\n\n switch (bouncex.website.pts) {\n case 'category':\n initializeCategoryEvents();\n break;\n case 'product':\n initializeItemEvents();\n break;\n case 'search':\n initializeCategoryEvents();\n break;\n\t\tcase 'cart':\n\t\t\ttrackSaveForLater();\n\t\t\tbreak;\n default:\n break;\n }\n}\n\ninit();\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":"/bag"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"test-uat"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"dev."}]]},"category":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/c/"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkout"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"test-uat"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"dev."}]]},"home":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/home"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"test-uat"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"login"}]]},"product":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/p/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"test-uat"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"gift-cards"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"1015069"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"1015068"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"test-uat"}]]}},"els":null,"vars":[{"name":"logged_in","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function() {\n if(bouncex.website.pts === 'checkout') {\n return null;\n }\n return jQuery('#accountDrawer').length > 0;\n})();","trigger":""},{"name":"ever_logged_in","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.logged_in || null;","trigger":""},{"name":"cart_qty","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"Number(jQuery('.cartCount, .cart-count').eq(0).text());","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function() {\n if (jQuery('.estd-total-label').length) {\n return Number(jQuery('.estd-total-label').text().replace(/[^0-9.]/g, ''));\n }\n else if (jQuery('.items-total p:not([data-locator=\"orderLedgerCount\"])').length) {\n return Number(jQuery('.items-total p:not([data-locator=\"orderLedgerCount\"])').text().replace(/[^0-9.]/g, ''));\n }\n else if (jQuery('.cartCount, .cart-count').length && Number(jQuery('.cartCount, .cart-count').eq(0).text()) === 0) {\n return 0;\n }\n else if(jQuery('.addedToBagWrapper').length){\n return Number(jQuery('.addedToBagWrapper div[data-locator=\"addedtobag-bagsubtotal\"] p').text().replace(/[^0-9.]/g, ''));\n }\n else {\n return null;\n }\n})();","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('#sign-up-modal-confirm-view').length > 0 || null;","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"has_20_off_coupon","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.isObject(bouncex.cookie.cpn) && (bouncex.cookie.cpn['20_off'] || bouncex.cookie.cpn['25_off'] || bouncex.cookie.cpn['25_off_2024'] || bouncex.cookie.cpn['30_off_2024']) || null;","trigger":"pageload"},{"name":"user_identified_ibx","polling":"vars","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.cookie.uid === 1 || bouncex.utils.url.getParam('utm_source') === \"wunderkind\" || !!bouncex.utils.url.getParam('om_rid') || !!bouncex.utils.url.getParam('ueh') || null;","trigger":"pageload"},{"name":"minor_status","polling":"none","persist":"visit","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":"prod_price","polling":"none","persist":"no","page_types":[],"testmode":true,"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":{"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":"(function(){\n /* copy functionality from TCP, Gymboree - wrike 783331164: cookie coupon from ibx clickthrough */\n var couponCode = bouncex.utils.url.getParam('coupon');\n if (couponCode.length > 0 && couponCode.indexOf('') === -1 && bouncex.utils.url.getParam('utm_source') === \"wunderkind\") {\n bouncex.updateBounceCookie(function (cookie) {\n if (!cookie) return;\n cookie.cpn = bouncex.utils.isObject(cookie.cpn) ? cookie.cpn : {};\n cookie.cpn['20_off'] = couponCode;\n });\n }\n})();","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":"","sdk":{"android":{"enabled":false,"enabledVersions":[],"eventModifications":null},"ios":{"enabled":false,"enabledVersions":[],"eventModifications":null}},"onsite":{"enabled":1},"ads":{"enabled":0},"pubs":{"enabled":0},"websdk":{"enabled":0},"ga4_property_id":"","ga4_measurement_id":"","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":"005ab6b05ecd8ae76686b26c919990d4","creativesBaseStyles":"a53944a2","gpsAuction":"bbb80866120d17013073bb6d284cbd6b","inbox":"75060a85c1a4aebcc6f779b9e84db722","onsite":"abbdf7a49be9b52b097917b7b527b262","sms":"e39203556bab2366e56296ce42e974a7","websdk":"e2d353d057b9c1d931d0252fa287890a"}; 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'); 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_315366948044b3a411f1670d0bc21a50.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(); }})();