(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":2889,"name":"Fashion Nova","cookie_name":"bounceClientVisit2889","domain":"fashionnova.com","ct":"multi_cookie","ally":1,"ei":0,"tcjs":"","cjs":"/* enable.feature.DISABLE_RELOAD_CAMPAIGNS_V2 */\n/* DFP_V2 */\n// enable.feature.PERSISTENT_COUPONS\n/* enable.feature.COMPLIANCE_REFACTOR_ENABLED */","force_https":false,"waypoints":false,"content_width":900,"gai":"UA-45937828-1","swids":"","sd":0,"ljq":"auto","campaign_id":0,"is_preview":false,"aco":{"first_party_limit":"3500","local_storage":"1"},"cmp":{"gdpr":1,"gmp":0,"whitelist_check":0},"burls":[{"prop":"contains","val":"/pages/giveaway"},{"prop":"contains","val":"/gamer-giveaway"}],"ple":false,"fbe":true,"mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* ---------------- REPLATFORM JULY 2020 -------------- */\nfunction isValidDomain() {\n return window.location.hostname === 'www.fashionnova.com';\n}\n\nfunction isEn() {\n var lang = bouncex.html.attr('lang') || '';\n\n return /^en/.test(lang);\n}\n\nfunction isUS(){\n return jQuery('#CurrencySelector-currency-heading').val() === 'USD';\n}\n\nfunction notGiftCard() {\n return window.location.href.indexOf('gift-card') === -1;\n}\n\nif (isValidDomain() && notGiftCard()) {\n bouncex.setTimeout2(initTracking, 1000);\n}\n\nfunction initTracking() {\n getCouponFromUrl();\n \n if (bouncex.website.pts === 'product') {\n bouncex.et.onTrue(itemLoaded, function() {\n //trackItem();\n var item = getItemData();\n if (isEn() && isUS()){\n bouncex.push(['item', item]);\n }\n bouncex.push(['view item', {\n 'item:id': bouncex.vars.item_id,\n 'item:itemgroupid': bouncex.vars.item_id\n }]);\n bouncex.et.on(jQuery(document), 'click.bx', trackNotifyMeNew, '.product-info__notify-me');\n addToCartPdp();\n bouncex.et.onVarChange('sku', trackSelectSkuPDP);\n });\n }\n if (categoryPage()) {\n bouncex.et.onTrue(categoryLoaded, function() {\n trackCategory();\n addNotifyMeTracking();\n });\n }\n if (bouncex.website.pts === 'search') {\n bouncex.et.onTrue(categoryLoaded, function() {\n trackSearch();\n addNotifyMeTracking();\n });\n }\n addQuickViewAtcTracking();\n fireQuickAddToCartTracking();\n fireQuickViewEvents();\n trackLoggedInUser();\n initializeEmptyCartEvent();\n}\n\n/* ------------ QUICK ADD TO CART ---------- */\n\nfunction fireQuickAddToCartTracking() {\n var ecommObj,\n itemId,\n feedId,\n lastId;\n\n bouncex.et.onVarChange('cart_qty', function () {\n bouncex.et.onTrue(function() {\n ecommObj = bouncex.utils.gtmLookup('ecommerce.add') || {};\n itemId = bouncex.utils.getNestedProp('products[0].id', '', ecommObj);\n feedId = bouncex.utils.getNestedProp('products[0].variantId', '', ecommObj);\n return itemId && itemId !== lastId && bouncex.utils.gtmLookup('ecommerce.add.actionField.list') !== 'Product';\n }, \n function() { \n atcEvent(itemId, feedId);\n }, \n 25); \n });\n}\n\nfunction fireQuickViewEvents() {\n bouncex.et.onVarChange('datalayer_events', function(prevEvent, newEvent) {\n if (prevEvent !== newEvent && newEvent === 'e_quickView') {\n var itemId = bouncex.utils.gtmLookup('productId');\n if (itemId) {\n bouncex.push(['view item', {\n 'item:id': itemId,\n 'item:itemgroupid': itemId\n }]);\n }\n }\n });\n}\n\n/* ------------ COUPON PERSIST HELPER ---------- */\n\nfunction getCouponFromUrl(){\n\tbouncex.et.onVarChange('coupon_code_url', function(oldVal, newVal){\n\t\tif (newVal){\n\t\t bouncex.push(['coupon', {\n\t\t \t\"coupon:code\": newVal\n\t\t }]);\n\t\t \n\t bouncex.setv('coupon_code_url', newVal);\n setBounceCookie();\n\t\t}\n\t});\n}\n\n/* ------------ ITEM TRACKING HELPERS ---------- */\nfunction itemLoaded() {\n return bouncex.vars.item_id && bouncex.vars.item_copy && bouncex.vars.item_imageurl && bouncex.vars.prod_price;\n}\n\n// function trackItem() {\n// var item = getItemData();\n// bouncex.push(['item', item]);\n// bouncex.push(['view item', {\n// 'item:id': bouncex.vars.item_id,\n// 'item:itemgroupid': bouncex.vars.item_id\n// }]);\n //bouncex.et.setInterval(trackSelectSkuPDP());\n//}\n\nfunction getItemData() {\n var itemData = {\n 'item:id': bouncex.vars.item_id,\n 'item:copy': bouncex.vars.item_copy,\n 'item:category': bouncex.vars.item_category,\n 'item:imageurl': bouncex.vars.item_imageurl,\n 'item:instock': bouncex.vars.in_stock,\n 'item:url': bouncex.vars.page_url,\n 'item:price': jQuery('.product-info__price-line .product-info__price span, .product-info__price').first().text().replace(/[^0-9.,]/g, ''),\n 'item:original_price': !!bouncex.vars.original_price ? bouncex.vars.original_price.toFixed(2) : '',\n 'item:promotional_text': getPromoText(),\n 'item:stars': getItemStars(),\n 'item:bnpl_payment': jQuery('.afterpay__installement-fee').first().text().trim() || '',\n };\n return itemData;\n}\n\nfunction getPromoText(){\n var productTags = jQuery('.product-page').attr('data-product-tags');\n \n if (productTags && productTags.toLowerCase().indexOf('promo') > -1){\n return jQuery('.product-info__title-badge').text();\n }\n \n return false;\n}\n\nfunction getItemStars() {\n var $starsContainer = jQuery('.product-info .product-review-stars-line'),\n fullStars = $starsContainer.find('svg path[fill=\"#E0AA1D\"]').length,\n halfStars = $starsContainer.find('#half_stroke_grad').length,\n rating = fullStars + (halfStars / 2);\n return rating >= 3.5 ? rating : '';\n}\n\n/* ------------ CATEGORY TRACKING HELPERS ---------- */\nfunction categoryPage() {\n return window.location.href.indexOf('collections') > -1;\n}\n\nfunction categoryLoaded() {\n return bouncex.vars.items_ids_replatform;\n}\n\nfunction trackCategory() {\n bouncex.push(['view category', {\n 'items:ids': bouncex.vars.items_ids_replatform,\n 'page:url': bouncex.vars.page_url\n }]);\n}\n\nfunction addNotifyMeTracking() {\n bouncex.et.on(jQuery(document), 'click.bx', function () {\n var notifymeId = jQuery(this).parents('.collection-list__product-tile').attr('data-product-id') || \"\";\n if (notifymeId) {\n bouncex.push(['notifyme', {\n 'item:id': notifymeId\n }]);\n }\n }, 'button.product-tile__notify-me');\n}\n/* ------------ SEARCH TRACKING HELPERS ---------- */\nfunction trackSearch() {\n bouncex.push(['view search', {\n 'items:ids': bouncex.vars.items_ids_replatform,\n 'page:url': bouncex.utils.url.allowParams('q'),\n 'page:title': jQuery('.search-results-page .collection-layout').attr('data-collection-search-string')\n }]);\n}\n\n/* ------------ NOTIFYME TRACKING HELPERS ---------- */\nfunction trackNotifyMeNew() {\n bouncex.push(['notifyme', {\n 'item:id': bouncex.vars.item_id\n }]);\n}\n\n/* ------------ LOGGED IN USER TRACKING HELPERS ---------- */\nfunction trackLoggedInUser() {\n if (bouncex.vars.logged_in_ibx_replatform && bouncex.vars.logged_in_identified === false) {\n var userEmail = getLoggedInUserEmail();\n if (bouncex.utils.validate.email(userEmail)) {\n bouncex.push([\n 'user',\n {\n 'email': userEmail,\n 'source': 'LoggedIn'\n }\n ]);\n\n bouncex.setv('logged_in_identified', true);\n setBounceCookie();\n }\n }\n}\n\nfunction getEmailFromDataLayer(thing) {\n var i = dataLayer.filter(function (i) {\n return thing in i;\n });\n if (i.length > 0) {\n return i[0][thing];\n }\n return null;\n}\n\nfunction getLoggedInUserEmail() {\n return getEmailFromDataLayer('customerInfo') && getEmailFromDataLayer('customerInfo').email;\n}\n\n/* ------------ CART TRACKING HELPERS ---------- */\nfunction getCartCount(){\n\tif (Number(jQuery('.cart-count-number').text()) != 0) {\n\t\treturn Number(jQuery('.cart-count-number').text());\n\t} else { \n\t\tvar total = 0;\n\t\twindow.dataLayer.forEach(function(v){ \n\t\t\tif(v.cart && v.cart.products.length > 0) {\n\t\t\t\tv.cart.products.forEach(function(p){ \n\t\t\t\t\ttotal += p.quantity;\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\treturn total;\n\t}\n}\n\nbouncex.et.cart.init({\n\tcartCountVariable: 'cart_qty',\n\tstoreValues: [],\n\treplenishmentType: 'cookie',\n\tvalidateReplenishment: function(cart) {\n\t\tvar cartCount = getCartCount();\n\t\tif (bouncex.utils.validate.integer(cartCount) && cartCount > 0) {\n\t\t\tthis.setReplenishmentReportingStatus('BX_CART_ITEMS_ALREADY_IN_CART');\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!cart) {\n\t\t\tthis.setReplenishmentReportingStatus('BX_CART_MALFORMED');\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!cart.value && !cart.token && !cart.items) {\n\t\t\tthis.setReplenishmentReportingStatus('BX_CART_MISSING_DATA');\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t},\n\treplenish: function (cart) {\n\t\tbouncex.utils.cookies.create({\n\t\t\tname: 'cart',\n\t\t\tvalue: cart.token,\n\t\t});\n\t\twindow.location.href = window.location.pathname + '?bx_replen=true';\n\t}\n});\n\nfunction addToCartPdp() {\n bouncex.et.on(jQuery(document), 'click.bx', function () {\n bouncex.et.onTrue(tokenLoaded, function () {\n var feedId = bouncex.utils.url.getParam('variant') || jQuery('.product-info__variant-id').attr('value') || \"\";\n if (bouncex.vars.item_id && feedId) {\n atcEvent(bouncex.vars.item_id, feedId);\n }\n });\n }, '.product-info__add-to-bag');\n}\n\n// used for list pages as well as the bottom of PDPs\nfunction addQuickViewAtcTracking() {\n bouncex.et.on(jQuery(document), 'click.bx', function (e) {\n var $target = jQuery(e.target),\n $targetParent = $target.parent(),\n targetClass = $target.attr(\"class\") || \"\",\n targetParentClass = $targetParent.attr(\"class\") || \"\";\n\n // sometimes span is clicked\n if ((targetClass + targetParentClass).indexOf('product-tile__add-to-cart') > -1) {\n var $pdpCard = $target.parents('.product-tile'),\n itemId = $pdpCard.attr('data-product-id') || \"\",\n feedId = $pdpCard.find('.product-tile__notify-me').attr(\"data-variant-id\") || \"\";\n bouncex.et.onTrue(tokenLoaded, function () {\n if (itemId && feedId) {\n atcEvent(itemId, feedId);\n }\n });\n }\n });\n}\n\nfunction tokenLoaded() {\n if (getBounceCookie('cart')) { return true; }\n else { return false; }\n}\n\nfunction atcEvent(itemId, feedId) {\n if (!itemId) {\n return;\n }\n \n bouncex.push(['add to cart',\n {\n 'item:id': itemId,\n 'item:itemgroupid': itemId,\n 'item:feedid': feedId,\n 'cart:token': getBounceCookie('cart')\n }\n ]);\n\n /*\n * cart_images RTV for onsite\n */\n\n var itemImg;\n var items = JSON.parse(bouncex.vars.cart_images) || [];\n if (bouncex.website.pts == \"category\" && jQuery('[data-product-id=\"' + itemId + '\"]').length > 0 && jQuery('[data-product-id=\"' + itemId + '\"]').attr('data-pdp-json')) {\n\n var parseFields = JSON.parse(jQuery('[data-product-id=\"' + itemId + '\"]').attr('data-pdp-json'));\n itemImg = 'https:' + parseFields.products[0].featured_image;\n } else if (bouncex.website.pts == \"product\") {\n itemImg = bouncex.vars.item_imageurl;\n }\n\n var items = JSON.parse(bouncex.vars.cart_images) || [];\n var dup = false;\n if (items.length > 0) {\n for (var i in items) {\n if (items[i] == itemImg) {\n dup = true;\n }\n }\n if (!dup) { items.push(itemImg); }\n } else {\n items.push(itemImg)\n }\n bouncex.setVarAndReload('cart_images', JSON.stringify(items));\n\n bouncex.setv('cart_set', true);\n setBounceCookie();\n}\n\nfunction initializeEmptyCartEvent() {\n bouncex.et.onVisible('.cart-page__empty-content, .cart-empty__title', trackEmptyCart);\n}\n\nfunction trackEmptyCart() {\n if (bouncex.vars.cart_set === true) {\n bouncex.push(['empty_cart', {}]);\n bouncex.setv('cart_set', false);\n setBounceCookie();\n }\n}\n\n/* ------------ CATALOG HELPERS ---------- */\n\nfunction trackSelectSkuPDP() {\n if (bouncex.vars.prev_sku !== bouncex.vars.sku) {\n if (bouncex.vars.prev_sku && bouncex.vars.sku) {\n bouncex.push([\n 'select_sku',\n {\n 'item:id': bouncex.vars.item_id,\n 'item:itemgroupid': bouncex.vars.item_id,\n 'item:feedid': bouncex.vars.sku\n }\n ]);\n }\n bouncex.setv('prev_sku', bouncex.vars.sku);\n }\n}\n\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"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.template-collection').length > 0;"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/pages/womens-jeans-fit-guide"},{"activation":"current_page_url","prop":"exactly","prop2":"","prop3":"","val":"www.fashionnova.com/collections"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkouts/"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.template-index').length > 0;"}]]},"product":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/products"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search-results"}]]}},"els":{"Navigation bar":"#header","pdp_add_to_cart":"#add-to-cart-button","pdp_description_list":".description ul:visible","pdp_details":"#product-wrap","pdp_hero_image":"#active-wrapper","pdp_payment_buttons":"#product-info #product-actions .table.cta .table-cell.one-whole","pdp_product_details_desktop":"div.description.medium--hide.small--hide ul","pdp_product_name":"#product-info h1.title","pdp_review_stars":"#product-wrap .yotpo.bottomLine"},"vars":[{"name":"logged_in","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"!!bouncex.utils.getNestedProp('ShopifyAnalytics.meta.page.customerId') || jQuery('.logged-in-customer-information').length > 0;","trigger":"pageload"},{"name":"ever_logged_in","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.logged_in || null;","trigger":"pageload"},{"name":"cart_qty","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"(function(){\n if (bouncex.website.pts === 'checkout') {\n var $quantities = jQuery('.product-thumbnail__quantity');\n var total = 0;\n jQuery.each($quantities, function(index){\n total += Number($quantities.eq(index).text().replace(/[^0-9.]/g, ''));\n });\n return total;\n } else if (jQuery('.cart-empty[hidden]').length === 0) {\n return 0;\n } else if (Number(jQuery('.cart-count-number').first().text().replace(/[^0-9.]/g, '')) != 0) {\n return Number(jQuery('.cart-count-number').first().text().replace(/[^0-9.]/g, ''));\n } else { \n var total = 0;\n dataLayer.forEach(function(v){ \n if(v.cart && v.cart.products.length > 0) {\n v.cart.products.forEach(function(p){ \n total += p.quantity;\n });\n }\n });\n return total;\n }\n})();","trigger":"pageload"},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\n if (bouncex.website.pts === 'checkout') {\n return Number(jQuery('[data-checkout-subtotal-price-target]').text().replace(/[^0-9.]/g, '')) || null;\n } else if (Number(jQuery('.cart-count-number').text()) !== 0){\n return Number(jQuery('.cart-overlay-header__title--subtotal span').text().replace(/[^0-9.]/g, '')) || null;\n }\n return 0;\n})();","trigger":"pageload"},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"jQuery('div.success:visible, #checkout_email, .footer-links__title--success:contains(\"signed up for email updates\")').length > 0 || null;","trigger":"pageload"},{"name":"prod_price","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"","code":"jQuery('.product-info__price-line .product-info__price span').text().replace(/[^0-9.,]/g, '') || jQuery('.product-info__price').first().text().replace(/[^0-9.,]/g, '');","trigger":"pageload"},{"name":"in_stock","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts === 'product' && (jQuery('.product-info__add-to-bag:visible').length > 0 && jQuery('input.product-info__size-button-input:not([data-no-stock])').length > 0) || jQuery('.product-info__size-button').length > jQuery('.visually-hidden:contains(Out of stock)').length;","trigger":"pageload"},{"name":"item_id","polling":"vars","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"(function () {\n\tvar id = bouncex.utils.getNestedProp('productJs.product.id'),\n\t\tshopifyId = bouncex.utils.getNestedProp(\n\t\t\t'ShopifyAnalytics.meta.product.id'\n\t\t);\n\n\treturn id || shopifyId || false;\n})();","trigger":"pageload"},{"name":"page_url","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"window.location.origin + window.location.pathname;","trigger":"pageload"},{"name":"item_copy","polling":"vars","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"(function () {\n\tvar copy = bouncex.utils.getNestedProp('productJs.product.title'),\n\t\totherCopy = jQuery('h1.product-info__title').text();\n\n\treturn copy || otherCopy || false;\n})();","trigger":"pageload"},{"name":"item_category","polling":"vars","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"(function () {\n\tvar category = bouncex.utils.getNestedProp('productJs.product.type'),\n\t\tshopifyCategory = bouncex.utils.getNestedProp(\n\t\t\t'ShopifyAnalytics.meta.product.type'\n\t\t);\n\n\treturn category || shopifyCategory || false;\n})();","trigger":"pageload"},{"name":"item_imageurl","polling":"vars","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('meta[property=\"og:image\"]').attr('content');","trigger":"pageload"},{"name":"cart_set","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"sku","polling":"vars","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.getParam('variant') || null;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"attentive_visible","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"/* Returns true if Attentive is visible OR control on the page */\njQuery('#attentive_overlay:visible').length > 0 && jQuery('#attentive_overlay:visible').contents()[0].contentDocument === null;","trigger":"pageload"},{"name":"submitted_this_session","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"site_wide_promo_value","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"\"10% off\"","trigger":"pageload"},{"name":"site_wide_promo_code","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"\"TAKE10\"","trigger":"pageload"},{"name":"cart_images","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"(function(){\n if(bouncex.website.pts === \"cart\"){\n var items = []\n jQuery('.cart-content__item.item .line-item__info').each(function(_,v){\n if(jQuery(v).find('.cart__image').attr('src').indexOf('no-image') == -1){\n items.push('https:' + jQuery(v).find('.cart__image').attr('src').replace(/(_x[0-9]+|_[0-9]+x)(?!.*_)(.*)jpg/, '.jpg'));\n }\n });\n return items.length > 0 ? JSON.stringify(items) : false;\n }\n return null;\n})()","trigger":"pageload"},{"name":"category_name","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts === 'category' && jQuery('.collection-title').contents().not(jQuery('.visually-hidden')).not(jQuery('.visually-hidden').contents()).text().trim();","trigger":"pageload"},{"name":"items_ids_replatform","polling":"vars","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function(){\n return jQuery('.product-tile.product-tile--placeholder').map(function(){\n\t\t\treturn jQuery(this).attr('data-product-id');\n\t}).toArray().join();\n}());","trigger":"pageload"},{"name":"logged_in_ibx_replatform","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function() {\n\tvar i = dataLayer.filter(function(i) {\n\t\treturn 'customerInfo' in i;\n\t});\n\treturn i.length > 0;\n}());","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"prev_sku","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cookie_bar_present","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#cookie-banner:visible').length > 0;","trigger":"pageload"},{"name":"division","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('.menu-brands__link.active').text().toLowerCase() || false;","trigger":"pageload"},{"name":"attentive_discount_value","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"Number(bouncex.utils.getParam('value').replace(/[^0-9.]/g, '')) || false;","trigger":"pageload"},{"name":"attentive_discount_code","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"bouncex.utils.getNestedProp('window.dataLayer').find(x => x.couponCode).couponCode || false;","trigger":"pageload"},{"name":"original_price","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"(function(){\n\tvar price = jQuery('.product-info__price-line .product-info__price span').text(),\n\t\togPrice = jQuery('.product-info__price-line .product-info__compare-at-price span').text();\n\n\tif (price == ogPrice){\n\t\togPrice = '';\n\t}\n\treturn ogPrice.replace(/[^0-9.,]/g, '').replace(',', '.');\n})();","trigger":"pageload"},{"name":"price_difference","polling":"all","persist":"no","page_types":["product"],"testmode":true,"default":"false","code":"(function() {\n let originalPrice = Number(jQuery('.product-info__compare-at-price').text().replace(/[^0-9.]/g, ''));\n let salePrice = Number(jQuery('.product-info__price--sale').text().replace(/[^0-9.]/g, ''));\n if (originalPrice && salePrice) {\n return Number((originalPrice - salePrice).toFixed(2));\n }\n})();","trigger":"pageload"},{"name":"page_type","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts;","trigger":"pageload"},{"name":"sale_site_value","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"\"10% off\"","trigger":"pageload"},{"name":"sale_site_value_ld_2","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"\"40% off\"","trigger":"pageload"},{"name":"sale_site_code","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"\"Take10\"","trigger":"pageload"},{"name":"sale_site_code_ld_2","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"\"LD40\"","trigger":"pageload"},{"name":"attentive_exit_visible","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"bouncex.utils.gtmLookup('gtm.timerId') === 16 && jQuery('#attentive_creative').is(':visible') && jQuery('#attentive_creative').attr('style').indexOf('width: 100%') > -1 && jQuery('#attentive_overlay').attr('style').indexOf('2147483647') > -1;","trigger":"pageload"},{"name":"coupon_code_url","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.url.getParam('clickthrough_url_coupon') || null;","trigger":"pageload"},{"name":"datalayer_events","polling":"vars","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.utils.gtmLookup('event');","trigger":"pageload"}],"dgu":"pixel.cdnwidget.com","dgp":false,"ba":{"enabled":0,"fbte":0},"biu":"assets.bounceexchange.com","bau":"api.bounceexchange.com","beu":"events.bouncex.net","ibx":{"tjs":"","cjs":"","miw":1,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":{"bxid":"espemailid"},"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":0,"spatm":1,"preinit_cjs":"bouncex.topbarImpressed = false;\n\nfunction findDLevent(event, string, dataLayer){\n if(dataLayer && dataLayer.length > 0){\n var returnArray = [];\n for(var i = 0; i < dataLayer.length; i++){\n if(typeof dataLayer[i] === \"object\" && !Array.isArray(dataLayer[i]) && dataLayer[i][event] === string){\n returnArray.push({\"eventObj\":dataLayer[i], \"index\":i});\n }\n }\n if (!returnArray.length){\n returnArray.push({\"eventObj\":\"NotFound\", \"index\":\"NotFound\"});\n }\n return returnArray;\n }\n}\ngetDiff = (baseArr, newArr) => {\n let check = [];\n if (baseArr > newArr) {\n check = baseArr.filter(object1 => {\n return !newArr.some(object2 => {\n return object1.productId === object2.productId;\n });\n });\n if (check.length > 0) {\n check[0].action = \"remove\";\n }\n } else {\n check = newArr.filter(object1 => {\n return !baseArr.some(object2 => {\n return object1.productId === object2.productId;\n });\n });\n if (check.length > 0) {\n check[0].action = \"add\";\n }\n }\n if (check.length > 0) {\n return check?.[0];\n } else {\n return null;\n }\n};\n\nfunction shqWishList(){\nlet baseWL = window?.FN_LOCAL_WISHLIST_MANAGER?.wishlistProducts;\nwindow.FN_LOCAL_WISHLIST_MANAGER?.events?.update?.push((e) => {\n let wlItem = getDiff(baseWL, e);\n if (!!wlItem) {\n _shq.push(['onProductList',\n { customList: true, listId: 1, action: wlItem?.action, productId: wlItem?.productId }\n ]);\n } else {\n _shq.log(\"Could not get the diff of wishlist\", \"warn\", e);\n }\n baseWL = e\n})\n}\n\nfunction shqCategoryCapture(){\n setTimeout(function() {\n //window.console.log('Category pageview!!!');\n var catCode = window.location.pathname && window.location.pathname.indexOf('/collections/') > -1 ? window.location.pathname.split('/').pop() : '';\n if(catCode){\n _shq.push(['pageView', {\n pageType: 'category',\n catName: catCode,\n catId: catCode\n }]);\n }\n }, 700);\n}\n\n\nshqWishList();\nshqCategoryCapture();\n \nbouncex.utils.shqInterceptEvent = {\n 'cartAdd': function(wkData) {\n setTimeout(function() {\n //window.console.log('cart add!!!');\n var atcObj = findDLevent('event', 'e_addToCart', window.dataLayer);\n var atcItem = atcObj && atcObj[0] && (atcObj[0].eventObj !== 'NotFound') ? atcObj[atcObj.length -1].eventObj.ecommerce.add.products[0]: [];\n var prodId = bouncex.utils.getNestedProp('id', null, atcItem);\n var qty = bouncex.utils.getNestedProp('quantity', null, atcItem);\n var price = bouncex.utils.getNestedProp('price', null, atcItem);;\n\n if(prodId && qty && price ){\n var atcArray=[];\n atcArray.push({\n 'ProductId': prodId.toString(),\n 'UnitPrice': price,\n 'Quantity': qty\n });\n if (atcArray){\n _shq.push(['onCartAdd', { 'Items': atcArray }]);\n }\n }\n }, 500);\n },\n 'purchase': function(){\n var purchObj = findDLevent('event', 'transactionOrderStatus', window.dataLayer),\n purchItems = bouncex.utils.getNestedProp('purchased_items', []),\n oid = document.querySelector(\".os-order-number\") ? document.querySelector(\".os-order-number\").textContent.replace(/[^0-9.]/g, '') :'no-orderid-' + Math.floor(Math.random() * 100000000),\n total = bouncex.utils.getNestedProp('eventObj.OrderSubtotal', 0, purchObj[purchObj.length-1]);\n var purchasedArr = purchItems.map(function(item){\n return { productId: item.id, price: item.price, qty: item.quantity };\n });\n if(purchItems && oid && total){\n _shq.push([ \"onPurchase\", {\n orderItems : purchasedArr,\n orderId: oid,\n total: +total\n }]);\n }else{\n _shq.push(['onPurchase', {\n 'orderId': oid,\n 'usebasket': true\n }]); \n }\n }\n};\n","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"Send this text to sign-up for automated, recurring Fashion Nova marketing texts, like cart reminders.","eventSharing":true,"shqId":"lceapzns27-1","enabled":1},"pde":true,"fmc":["US","CA"],"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":"215534428","ga4_measurement_id":"G-CHPZC04957"} ; 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: 0 }; bouncex.assets = {"ads":"0109586821763416266dd874f087ef69","creativesBaseStyles":"a53944a2","inbox":"749c9ccd613f1a40075d1e7b59caea42","onsite":"0e56ab6ba004ee080ce3deb3edae35e9","sms":"e39203556bab2366e56296ce42e974a7","websdk":"0704dae1eb637cbeb4a847506058402d"}; bouncex.push = function(pushData) { bouncex.pushedData.push(pushData); } var runtime = document.createElement('script'); runtime.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/runtime_6459738026535cda4232dc813c61447d.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_f63930b37a25405c0fe14c50976210bb.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); } window._shq = window._shq || []; var eventSharingCartridge = document.createElement('script'); eventSharingCartridge.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/wknd_audiences_2648fa8509e4b3a98a2790bb8171ddc1.js'); eventSharingCartridge.setAttribute('async', 'async'); document.body.appendChild(eventSharingCartridge); } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();