(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":5367,"name":"The Children's Place - PJ Place","cookie_name":"bounceClientVisit5367","domain":"pjplace.comushome","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"/* enable.feature.DISABLE_RELOAD_CAMPAIGNS_V2 */\n/* 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":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"var CLEAN_URL = bouncex.utils.url.allowParams(),\n URL_ITEM_ID_PATTERN = /[0-9A-Za-z]+[-|_]\\w+$/g,\n COLOR_SWATCH_SELECTOR = '.color-selector .label-radio',\n PDP_ID;\n\n/* --------------------------------- HELPERS -------------------------------- */\n\nfunction getItemIdFromUrl(url) {\n var urlNoParams = url ? bouncex.utils.url.allowParams([], url) : '';\n if (isCollectionUrl(urlNoParams)) {\n return urlNoParams.split('-').pop();\n }\n\n // we replace the trailing imagetype if an image url is passed in\n var urlMatches = urlNoParams.replace(/\\.[\\w]{3}$/g, '').match(URL_ITEM_ID_PATTERN) || [''];\n return urlMatches.pop().replace('-', '_');\n}\n\nfunction formatItemId(string) {\n var itemId = string.split('/').pop().split('.').shift() || '';\n return itemId.split('-').slice(-2).join('_');\n}\n\nfunction getItemCopy() {\n return jQuery('.product-title,[itemprop=\"name\"]').first().text().trim().replace(/NEW!/g, '');\n}\n\nfunction getSkuObj() {\n\tvar selectedColor = jQuery('.image-chips-selector-title-name').text(),\n\t\tselectedFit = jQuery('.fit-selector .item-selected-option').text(),\n\t\tselectedSize = 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\t\tcurrentProduct = bouncex.utils.getNestedProp('__NEXT_DATA__.props.initialState.ProductDetail.currentProduct', {}),\n\t\tcolorArr = bouncex.utils.getNestedProp('colorFitsSizesMap', [], currentProduct),\n\t\tcolorObj,\n\t\tfitArr,\n\t\tfitObj,\n\t\tsizeArr,\n\t\tselectedSku,\n\t\tselectedGroupId;\n\n\t// If correct object has not loaded we can not fire select_sku events\n\tif (currentProduct && currentProduct.productId !== PDP_ID) {\n\t\treturn;\n\t}\n\n\t// Find the selected color from the window obj color array.\n\t// If no color is selected (i.e. there is only one color) then\n\t// our colorObj will be the first element from the color array.\n\tif (selectedColor) {\n\t\tcolorArr.forEach(function(c){\n\t\t\tif (c.color.name === selectedColor){\n\t\t\t\tcolorObj = c;\n\t\t\t}\n\t\t});\n\t} else {\n\t\tcolorObj = colorArr[0] || {};\n\t}\n\n\tfitArr = colorObj && colorObj.fits || [];\n\n\t// find the selected fit from the colorObj fits array.\n\t// If no fit is selected (i.e. there is only one fit) then\n\t// our fitObj will be the first element from the fits array.\n\tif (selectedFit) {\n\t\tfitArr.forEach(function(f){\n\t\t\tif (f.fitName === selectedFit){\n\t\t\t\tfitObj = f;\n\t\t\t}\n\t\t});\n\t} else {\n\t\tfitObj = fitArr[0] || {};\n\t}\n\n\tsizeArr = fitObj && fitObj.sizes || [];\n\n\t// find the selected size from the size array\n\t// and grab the skuID and groupID from here\n\tsizeArr.forEach(function(variant){\n\t\tif (variant.sizeName === selectedSize) {\n\t\t\tselectedSku = variant.variantId;\n\t\t\tselectedGroupId = variant.prodPartNo;\n\t\t}\n\t});\n\n\treturn {\n\t\tselectedSku: selectedSku,\n\t\tselectedGroupId: selectedGroupId\n\t};\n}\n\n/* --------------------------- COLLECTION TRACKING -------------------------- */\n\nfunction isCollectionPage() {\n return isCollectionUrl(CLEAN_URL) || jQuery('.bundle-productsList-container').length === 1;\n}\n\nfunction isCollectionUrl(url) {\n url = url || '';\n return url.indexOf('/b/') > -1 || url.indexOf('Kit') > -1;\n}\n\nfunction getCollection() {\n var itemId = getItemIdFromUrl(CLEAN_URL);\n return {\n id: itemId,\n copy: getItemCopy(),\n category: jQuery('.breadcrum-item').last().text() || 'Global',\n url: CLEAN_URL,\n imageurl: getItemImage(itemId),\n instock: true,\n };\n}\n\nfunction initCollectionTracking() {\n var collection;\n\n bouncex.et.onTrue(\n function () {\n collection = getCollection();\n return itemLoaded(collection);\n },\n function () {\n bouncex.push(['item', collection]);\n bouncex.push(['view item', { 'item:id': collection.id }]);\n trackCompleteTheLook(collection.id);\n },\n 10\n );\n}\n\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction createItemUrl(itemId) {\n var baseUrl = CLEAN_URL.replace(URL_ITEM_ID_PATTERN, ''),\n colorSpecificUrlPath = (itemId || '').replace('_', '-');\n if (baseUrl && colorSpecificUrlPath) {\n return baseUrl + colorSpecificUrlPath;\n }\n return '';\n}\n\n// we replace and non-main image path identifiers with the main image path. We also replace .mp4 with .jpg\nfunction getItemImage(itemId) {\n if (!itemId) {\n return;\n }\n\n var imageSrc = jQuery('img[src*=\"' + itemId + '\"]').attr('src') || '';\n return imageSrc.replace(/\\/t_[a-z]+_[a-z]+_[a-z]/g, '/t_plp_img_m').replace(/.mp4$/g, '.jpg');\n}\n\nfunction getItem(itemId) {\n var url = createItemUrl(itemId);\n return {\n id: itemId,\n copy: jQuery('.product-title,[itemprop=\"name\"]').first().text().trim().replace(/NEW!/g, ''),\n category: jQuery('.breadcrum-item').last().text() || 'Global',\n url: url,\n imageurl: getItemImage(itemId),\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(itemId) {\n bouncex.push(['view item', {\n 'item:id': itemId,\n 'item:itemgroupid': itemId\n }]);\n}\n\nfunction initializeItemEvents() {\n var item;\n\n bouncex.et.onTrue(\n function () {\n item = getItem(getItemIdFromUrl(CLEAN_URL));\n return itemLoaded(item);\n },\n function () {\n if (item.url.indexOf('giftcard') > -1) {\n return;\n }\n\n bouncex.push(['item', item]);\n PDP_ID = item.id;\n initializeSkuEvents();\n fireViewItem(item.id);\n initColorSpecificTracking(item);\n trackCompleteTheLook(item.id);\n },\n 10\n );\n}\n\n// firing complete the look events for original item on pageload\nfunction trackCompleteTheLook(itemId) {\n var $ctlImages;\n\n bouncex.et.onTrue(function () {\n $ctlImages = jQuery('.complete-the-look-section .complete-look-container img');\n return $ctlImages.length;\n }, function () {\n $ctlImages.each(function (e, i) {\n var imageUrl = jQuery(i).attr('src'),\n itemUrl = jQuery(i).parents('[href*=\"outfit\"]').attr('href');\n\n if (imageUrl && itemUrl) {\n itemUrl = itemUrl.indexOf(window.location.host) < 0 ? window.location.host + itemUrl : itemUrl;\n\n bouncex.push(['view_collection', {\n image_url: bouncex.utils.url.allowParams([], imageUrl),\n item_url: itemUrl.indexOf('https') > -1 ? itemUrl : 'https://' + itemUrl,\n item_id: itemId\n }]);\n }\n });\n }, 10);\n}\n\nfunction itemLoaded(item) {\n return !!item.id &&\n !!item.copy &&\n !!item.category &&\n !!item.url &&\n !!item.imageurl;\n}\n\nfunction newItemIsNotOldItem(oldItem, newItem) {\n return oldItem.id !== newItem.id &&\n oldItem.copy !== newItem.copy &&\n oldItem.url !== newItem.url &&\n oldItem.imageurl !== newItem.imageurl;\n}\n\nfunction initColorSpecificTracking(previousItem) {\n var newItem;\n bouncex.et.on(jQuery(COLOR_SWATCH_SELECTOR), 'click.selectColor', function () {\n bouncex.et.onTrue(function () {\n newItem = getItem(getItemIdFromSelectedImage());\n return itemLoaded(newItem) && newItemIsNotOldItem(newItem, previousItem);\n }, function () {\n previousItem = newItem;\n bouncex.push(['item', previousItem]);\n fireViewItem(previousItem.id);\n }, 5);\n });\n}\n\nfunction getItemIdFromSelectedImage() {\n return (jQuery('.item-selected-option img').attr('src') || '').split('/').pop().replace(/.[a-z]+$/g, '').replace(/_swatch$/g, '');\n}\n\n/* ------------------------------ SKU TRACKING ------------------------------ */\n\nfunction initializeSkuEvents() {\n\tvar lastSkuFired,\n\t\tskuObj;\n\n\tbouncex.et.on(\n\t\tbouncex.document,\n\t\t'click.bxsku',\n\t\tfunction () {\n\t\t\tbouncex.et.onTrue(function () {\n\t\t\t\tskuObj = getSkuObj();\n\t\t\t\treturn skuObj && skuObj.selectedSku && skuObj.selectedSku !== lastSkuFired;\n\t\t\t}, function () {\n\t\t\t\tbouncex.push([\n\t\t\t\t\t'select_sku',\n\t\t\t\t\t{\n\t\t\t\t\t\t'item:id': skuObj.selectedGroupId,\n\t\t\t\t\t\t'item:itemgroupid': skuObj.selectedGroupId,\n\t\t\t\t\t\t'item:feedid': skuObj.selectedSku\n\t\t\t\t\t}\n\t\t\t\t]);\n\t\t\t\tlastSkuFired = skuObj.selectedSku;\n\t\t\t}, 5);\n\t\t},\n\t\t'.size-and-fit-detail-item, .color-title-container'\n\t);\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\nfunction getItemIdsCat() {\n var ids = [],\n $tiles = jQuery('.product-image a, .product-image-container a'),\n i = 0,\n id = '';\n\n for (i; i < $tiles.length; i++) {\n id = getItemIdFromUrl($tiles.eq(i).attr('href'));\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': CLEAN_URL,\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 &&\n !!categoryObj['page:url'];\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 bouncex.setVar('cart', true);\n}\n\nfunction trackGlobalAtc() {\n bouncex.et.onVisible('.addedToBagWrapper.new-added-to-bag-modal', function (e) {\n var itemId = getItemIdFromUrl(jQuery(e).find('.product img.product-image, img[alt=\"Product\"]').first().attr('src'));\n\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 bouncex.setVar('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 bouncex.setVar('cart', false);\n }\n }, 2500);\n }\n}\n\n/* ------------------------------ QUICKVIEW ----------------------------- */\nfunction initializeQuickviewEvents() {\n bouncex.et.onVisible('.TCPModal__InnerContent.atb-innerContent', function (elem) {\n var itemId = elem.find('.add-to-bag-button.quick-view-drawer-redesign').attr('unbxdparam_variant');\n if (itemId) {\n fireViewItem(itemId);\n initializeQuickViewColorChangeListener(itemId);\n }\n });\n}\n\nfunction initializeQuickViewColorChangeListener(previouslyFiredId) {\n var clickEventName = 'click.qvSelectColor',\n newItemId;\n bouncex.off(jQuery(COLOR_SWATCH_SELECTOR), clickEventName);\n bouncex.et.on(jQuery(COLOR_SWATCH_SELECTOR), clickEventName, function () {\n bouncex.et.onTrue(function () {\n newItemId = getItemIdFromSelectedImage();\n return newItemId && newItemId !== previouslyFiredId;\n }, function () {\n previouslyFiredId = newItemId;\n fireViewItem(previouslyFiredId);\n }, 5);\n });\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\nfunction trackUserEmail() {\n var userEmail;\n if (CLEAN_URL.indexOf('login') > -1) {\n bouncex.et.on(bouncex.document, 'click.wknd', function () {\n if (\n jQuery('#textbox__error__emailAddress').text().length < 1 &&\n jQuery('.sc-kDTinF.ggyMuv.richTextColor').length < 1\n ) {\n userEmail = jQuery('#emailAddress').val();\n localStorage.setItem('userEmail', userEmail);\n }\n },\n '.login-button-test-class'\n );\n }\n}\n\nfunction initializeUserTracking() {\n trackUserEmail();\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 = localStorage.getItem('userEmail') ||\n jQuery('.profile-tile-carousel-new .text-overflow-ellipsis').eq(0).text() ||\n bouncex.utils.getNestedProp('BOOMR.boomerang_frame.emailAddress');\n\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/* --------------------------- Custom Save For Later Cart Event -------------------------- */\n\nfunction trackSaveForLater() {\n var saveForLaterSelectors = 'button[data-locator=\"Save For Later\"], li:has(.save-for-later-icon)',\n itemId,\n itemUrl;\n\n bouncex.et.onVisible(saveForLaterSelectors, function (el) {\n if (bouncex.state.mobile) {\n var upc = jQuery(el).closest('ul').find('div[data-locator=\"cartItemUpc\"]').text().trim().replace('UPC: ','');\n itemUrl = jQuery('img[unbxdparam_sku=\"' + upc + '\"]').closest('.newCartTile').find('.imageWrapper a').attr('href') || '';\n itemId = formatItemId(itemUrl);\n }\n\n bouncex.off(bouncex.document, 'click.bx', saveForLaterSelectors);\n bouncex.et.on(bouncex.document, 'click.bx', function(e){\n if (!bouncex.state.mobile) {\n itemId = formatItemId((jQuery(e.target).parents('.product-tile-wrapper').find('.imageWrapper a').attr('href') || '').split('/').pop());\n }\n\n if(itemId) {\n bouncex.push(['saveforlater', {\n 'item:id' : itemId\n }]);\n }\n }, saveForLaterSelectors);\n });\n}\n\n/* --------------------------- Custom Cancel Event -------------------------- */\nfunction initializeCustomCancelEvent() {\n if (bouncex.utils.url.getParam('instore_coupon')) {\n bouncex.push(['conversion', {}]);\n bouncex.push(['used_coupon', {}]);\n bouncex.push(['visit', { 'customer:hasconverted': 1 }]);\n }\n}\n\n/* --------------------------- BW SUBMIT TRACKING -------------------------- */\nfunction initializeNativeEmailSubmitMicro() {\n jQuery('#grabMySubmmit').on('click.wknative', function () {\n var userEmail = jQuery('input#email_subscribe_page').val();\n bouncex.setTimeout2(function () {\n if (bouncex.utils.validate.email(userEmail) && jQuery('.email-label-error').children().length === 0) {\n bouncex.push([\n 'requestemail',\n {\n 'email': userEmail,\n 'campaignId': '1842123',\n 'testmode': bouncex.testmode.bxdev ? 1 : 0\n }\n ]);\n }\n }, 1000);\n });\n}\n\nfunction initializeNativeEmailSubmit() {\n bouncex.off(jQuery(document), 'click.bx', 'button.candidate_a_form_button');\n bouncex.on(jQuery(document), 'click.bx', 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 bouncex.push([\n 'requestemail',\n {\n 'email': userEmail,\n 'campaignId': '1858480',\n 'testmode': bouncex.testmode.bxdev ? 1 : 0\n }\n ]);\n }\n }, 1000);\n }, 'button.candidate_a_form_button');\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n return CLEAN_URL.indexOf('www.pjplace.com') > -1;\n}\n\nfunction isValidLang() {\n return (jQuery('html').attr('lang') || '').indexOf('en') > -1;\n}\n\nfunction isValidForTracking() {\n return isValidDomain() && isValidLang();\n}\n\nfunction init() {\n if (!isValidForTracking()) {\n return;\n }\n\n initializeNativeEmailSubmitMicro();\n initializeNativeEmailSubmit();\n\n bouncex.setTimeout2(initializeUserTracking, 1000);\n initializeCartEvents();\n initializeQuickviewEvents();\n initializeCustomCancelEvent();\n trackGlobalAtc();\n\n if (isCollectionPage()) {\n initCollectionTracking();\n return;\n }\n\n switch (bouncex.website.pts) {\n case 'category':\n case 'search':\n initializeCategoryEvents();\n break;\n case 'product':\n initializeItemEvents();\n break;\n\t\tcase 'cart':\n\t\t\ttrackSaveForLater();\n\t\t\tbreak;\n default:\n break;\n }\n}\n\ninit();","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"}]]},"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":"/confirmation"}]]},"home":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/us/home"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/register"}],[{"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/"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search/"}]]}},"els":{"blank_site_element":""},"vars":[{"name":"logged_in","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"!!jQuery('.loggedin-username-initials-block').length || !!bouncex.utils.getNestedProp('_dataLayer.userEmailAddress','');","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":"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 (bouncex.website.pts === 'cart'){\n if (!!jQuery('[data-locator=\"cartEmptyBagMessage\"]').length){\n return '0'\n } else {\n return jQuery('.current-subtotal-val').eq(0).text() || null;\n }\n } else {\n return jQuery('.added-to-bag-subtotal').eq(0).text() || jQuery('.subTotalEmpty').text().replace(/[^0-9.]/g,'') || 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 || 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":"page_type","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts;","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"user_identified_ibx","polling":"vars","persist":"no","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":"has_20_off_coupon","polling":"vars","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"}],"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":"SinglePageApp.setCustomParams({\n currentPageIdentifier: function() {\n return window.location.href;\n }\n});\n\n(function(){\n /* 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":"dbf896ad7d9c86338a81674dc2b145ad"}; 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_b88e0964d3da8068c1bb748c57cf88eb.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(); }})();