(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":5089,"name":"Michael Kors ","cookie_name":"bounceClientVisit5089","domain":"michaelkors.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"","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":1},"burls":[],"ple":false,"fbe":true,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\n\nvar CART_COOKIE_KEY = 'dwanonymous_b0b1eb0969582b9588ae23054b9c0f5c', \n CLEAN_URL = bouncex.utils.url.allowParams('q');\n\n/* --------------------------------- HELPERS -------------------------------- */\n\nfunction getIdFromUrl(url) {\n url = url || '';\n\n return url.split('/').pop().split('.').shift();\n}\n\nfunction excludedProductsLessThanFifty() {\n var productPrice = mkorsData.product[0].pricePer;\n \n return productPrice && Number(productPrice) < 50;\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction getItem() {\n return {\n id: getIdFromUrl(CLEAN_URL) || bouncex.utils.getNestedProp('DY.recommendationContext.data[0]'), \n copy: jQuery('.product-name').text().trim(), \n category: jQuery('.breadcrumb-link').eq(1).text().trim() || 'Michael Kors',\n url: CLEAN_URL,\n imageurl: jQuery('.js-product-carousel .first-image img').attr('src'),\n instock: jQuery('button.add-to-cart').text().indexOf('Add to Bag') > -1,\n price: mkorsData.product[0].pricePer,\n excludedproductslessthanfifty: excludedProductsLessThanFifty(),\n };\n}\n\nfunction initializeItemEvents() {\n var item;\n\n bouncex.et.onTrue(\n function () {\n item = 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) {\n return;\n }\n bouncex.push(['item', item]);\n\n bouncex.push(['view item', {'item:id': item.id,'item:itemgroupid': item.id}]);\n initializeSkuEvents(item.id);\n initializeATCClickTracking(item.id);\n },\n 10\n );\n}\n\n/* ------------------------------ SKU TRACKING ------------------------------ */\n\nfunction initializeSkuEvents(itemId) {\n \n var lastSkuFired,\n skuId,\n colorSwatch = '.product-detail .color-value',\n sizeSwatch = '.product-detail .size-option',\n skuSelectors = '.product-detail, .product-quickview';\n \n if (jQuery(colorSwatch).length === 1 && !jQuery(sizeSwatch).length){\n skuId = jQuery(skuSelectors).attr('data-pid');\n fireSelectSku(itemId, skuId);\n }\n\n bouncex.et.on(\n bouncex.document,\n 'click.bxsku',\n function () {\n bouncex.et.onTrue(function () {\n skuId = jQuery(skuSelectors).attr('data-pid');\n return skuId && skuId !== lastSkuFired && skuId != itemId;\n }, function () {\n fireSelectSku(itemId, skuId);\n lastSkuFired = skuId;\n }, 5);\n },\n sizeSwatch + ',' + colorSwatch\n );\n}\n\nfunction fireSelectSku(itemId, skuId){\n bouncex.push(['select_sku',{\n 'item:id': itemId,\n 'item:itemgroupid': itemId,\n 'item:feedid': skuId\n }\n ]);\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\n\nfunction getItemIdsCat() {\n var ids = [];\n\n jQuery('.product-tile-show').each(function (i, e) {\n var itemId = jQuery(e).attr('data-product-id');\n\n if (itemId && itemId != 'null' && ids.indexOf(itemId) < 0) {\n ids.push(itemId);\n }\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 initQuickview(){\n var itemId;\n\n bouncex.et.onVisible('.product-quickview', function(e){\n itemId = jQuery(e).attr('data-product-id'),\n \n bouncex.push(['view item', {'item:id': itemId,'item:itemgroupid': itemId}]);\n initializeATCClickTracking(itemId);\n initializeSkuEvents(itemId);\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 initQuickview();\n },\n 10\n );\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\n\nfunction fireAddToCart(itemId) {\n var token;\n \n bouncex.et.onTrue(\n function () {\n token = bouncex.getBounceCookie(CART_COOKIE_KEY);\n return token;\n },\n function () {\n bouncex.push([\n 'add to cart',\n {\n 'item:id': itemId,\n 'cart:token': token\n }\n ]);\n\n if (bouncex.vars.cart) {\n return;\n }\n\n bouncex.setVar('cart', true);\n },\n 10\n );\n}\n\nfunction initializeATCClickTracking(itemId) {\n bouncex.off(bouncex.document, 'click.bxatc', '.add-to-cart-global');\n bouncex.et.on(bouncex.document, 'click.bxatc', function () {\n fireAddToCart(itemId);\n }, '.add-to-cart, .add-to-cart-global');\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 replenishmentType: 'cookie',\n replenish: function (cart) {\n bouncex.utils.cookies.create({\n name: CART_COOKIE_KEY,\n value: cart.token\n });\n replenComplete();\n }\n }); \n\n function replenComplete() {\n window.location.href = CLEAN_URL + '?bx_replen=true';\n }\n\n emptyCart();\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\n\nfunction initializeUserTracking() {\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 = jQuery('.data-email.personal-info-email').text().trim();\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/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n return CLEAN_URL.indexOf('www.michaelkors.com') > -1;\n}\n\nfunction isEn() {\n return bouncex.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\n switch (bouncex.website.pts) {\n case 'category':\n case 'search':\n initializeCategoryEvents();\n break;\n case 'product':\n initializeItemEvents();\n break;\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":"/cart"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/myaccount/"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('[data-action=\"Search-Show\"]').length > 0;"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/search"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/checkout"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/myaccount/"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname === '/';"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('[data-action=\"Product-Show\"]').length > 0;"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search"}]]}},"els":{"blank_site_element":""},"vars":[{"name":"logged_in","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"!!jQuery('.authenticated-user').length || jQuery('#checkout-main').attr('data-customer-type') === 'registered';","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":"(function(){\n var miniCartQtySelector = '.minicart-quantity';\n return !!jQuery(miniCartQtySelector).length ? Number(jQuery(miniCartQtySelector).text().trim()) || 0 : null;\n})();","trigger":""},{"name":"cart_value","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"(function(){\n if (jQuery('.minicart-quantity').hasClass('invisible')){ return 0 }\n return !!jQuery('.sub-total').length ? parseFloat(jQuery('.sub-total').eq(0).text().replace(/[^0-9.]/g, '')) || 0 : null;\n})();","trigger":""},{"name":"prod_price","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"","trigger":""},{"name":"prod_name","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"","trigger":""},{"name":"in_stock","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"!!jQuery('#newsLetterModal.show').length || null;","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"cart_token","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_items","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cookie_modal_present","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"!!jQuery('#onetrust-banner-sdk').length && jQuery('#onetrust-banner-sdk').css\n ('display') !== 'none';","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":"replen_in_progress","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"}],"dgu":"pixel.cdnwidget.com","dgp":false,"ba":{"enabled":0,"fbte":0},"biu":"assets.bounceexchange.com","bau":"api.bounceexchange.com","beu":"events.bouncex.net","ibx":{"tjs":"","cjs":"","miw":0,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":{"bxid":"espemailid"},"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":1,"spatm":1,"preinit_cjs":"SinglePageApp.setCustomParams({\r\n\tcurrentPageIdentifier: function () {\r\n\t\treturn window.location.pathname.split('/_/')[0];\r\n\t}\r\n});\r\n\r\nvar audiences = {\r\n\ttestMode: false,\r\n\tinterceptEnabled: true,\r\n\tmirrorEnabled: true,\r\n\tarrayObserverEnabled: true,\r\n\tuseIntercept: function useIntercept() {\r\n\t\tif (!this.interceptEnabled) {\r\n return;\r\n }\r\n bouncex.utils.shqInterceptEvent = {\r\n 'productView': true,\r\n 'cartAdd': true,\r\n 'email': true,\r\n 'purchase': function (wkndEventParams) {\r\n var prodErr = false;\r\n var orderId = bouncex.utils.getNestedProp('obj.order_id', null, wkndEventParams);\r\n var purchTotal = Number(bouncex.utils.getNestedProp('obj.amount', 0, wkndEventParams)) - (Number(bouncex.utils.getNestedProp('obj.tax', 0, wkndEventParams)) + Number(bouncex.utils.getNestedProp('obj.shipping', 0, wkndEventParams)));\r\n var orderInfo = bouncex.utils.getNestedProp('obj.item', null, wkndEventParams);\r\n var orderArray = orderInfo && orderInfo.map(function (ea) {\r\n return {\r\n productId: ea.product_id,\r\n price: ea.price,\r\n qty: ea.quantity\r\n };\r\n });\r\n\r\n if (orderArray.length < 1) {\r\n prodErr = true;\r\n }\r\n\r\n if (!prodErr && orderId) {\r\n _shq.push(['onPurchase', {\r\n 'orderItems': orderArray,\r\n 'orderId': orderId,\r\n 'total': purchTotal.toFixed(2)\r\n }]);\r\n } else {\r\n _shq.push(['onPurchase',\r\n {\r\n 'orderId': orderId || 'NoOrderId-' + randomNumber(),\r\n 'usebasket': true\r\n }\r\n ]);\r\n }\r\n }\r\n };\r\n\t\t\r\n\t},\r\n\tuseMirror: function useMirror() {\r\n\t\tif (this.mirrorEnabled) {\r\n\t\t\tbouncex.utils.shqMirrorEvent = {\r\n\t\t\t\t'pageview': function () {\r\n\t\t\t\t\tif (bouncex.website.pts === 'category') {\r\n\t\t\t\t\t\taudiences.captureCategory();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (mkorsData.page.name === 'outlet') {\r\n\t\t\t\t\t\taudiences.captureHtmlCategory();\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'view item': function () {\r\n\t\t\t\t\tvar prodId = '',\r\n\t\t\t\t\t\tpdpArr = bouncex.utils.getNestedProp('mkorsData.event').filter(function (e) {\r\n\t\t\t\t\t\t\treturn e.eventInfo.eventName === 'quickView';\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\tif (pdpArr.length > 0) {\r\n\t\t\t\t\t\tprodId = bouncex.utils.getNestedProp('product[0].mfrItemNum', '', pdpArr[0]);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tprodId = bouncex.utils.getNestedProp('mkorsData.product[0].mfrItemNum', '');\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (prodId) {\r\n\t\t\t\t\t\t_shq.push(['onProductView', {\r\n\t\t\t\t\t\t\t'productId': prodId\r\n\t\t\t\t\t\t}]);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t'user': function (wkdata) {\r\n var em = bouncex.utils.getNestedProp('params', null, wkdata)['user:email'] || '',\r\n\t\t\t\t\t\teSource = bouncex.utils.getNestedProp('params', null, wkdata)['user:source'] || '';\r\n if (!!em && eSource === 'campaign_submit') {\r\n if (bouncex.utils.validate.email(em)) {\r\n\t\t\t\t\t\t\t_shq.push(['onEmail', {\r\n\t\t\t\t\t\t\t\temail: em,\r\n\t\t\t\t\t\t\t\ttype: 'marketing'\r\n\t\t\t\t\t\t\t}]);\r\n\t\t\t\t\t\t}\r\n }\r\n }\r\n\t\t\t};\r\n\t\t}\r\n\t},\r\n\tcaptureEmails: function captureEmails() {\r\n\t\tvar emailInput = '', emailAddress = '';\r\n\r\n\t\tvar btnSignup = document.querySelector('#newsletter-form');\r\n\t\tif (btnSignup) {\r\n\t\t\tbtnSignup.addEventListener('submit', function (e) {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\temailInput = document.getElementById('newletter-form-email');\r\n\t\t\t\temailAddress = emailInput ? emailInput.value : '';\r\n\t\t\t\tif (bouncex.utils.validate.email(emailAddress)) {\r\n\t\t\t\t\t_shq.push(['onEmail', {\r\n\t\t\t\t\t\temail: emailAddress,\r\n\t\t\t\t\t\ttype: 'marketing'\r\n\t\t\t\t\t}]);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n var btnLogin = document.querySelector('#page-login-form');\r\n if (btnLogin) {\r\n btnLogin.addEventListener('submit', function (e) {\r\n e.preventDefault();\r\n emailInput = document.querySelector(\".sign-in .login-information-block input[id='page-login-form-email']\");\r\n emailAddress = emailInput ? emailInput.value : '';\r\n if (bouncex.utils.validate.email(emailAddress)) {\r\n _shq.push(['onEmail', {\r\n email: emailAddress,\r\n type: 'account'\r\n }]);\r\n }\r\n });\r\n }\r\n\r\n\t\tvar btnAccount = document.querySelector('#login-form');\r\n\t\tif (btnAccount) {\r\n\t\t\tbtnAccount.addEventListener('submit', function (e) {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\temailInput = document.querySelector(\".login-user .login-information-block input[id='login-form-email']\");\r\n\t\t\t\temailAddress = emailInput ? emailInput.value : '';\r\n\t\t\t\tif (bouncex.utils.validate.email(emailAddress)) {\r\n\t\t\t\t\t_shq.push(['onEmail', {\r\n\t\t\t\t\t\temail: emailAddress,\r\n\t\t\t\t\t\ttype: 'account'\r\n\t\t\t\t\t}]);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tvar btnCheckout = document.querySelector('#guest-customer');\r\n\t\tif (btnCheckout) {\r\n\t\t\tbtnCheckout.addEventListener('submit', function (e) {\r\n e.preventDefault();\r\n\t\t\t\temailInput = document.getElementById('email-guest');\r\n\t\t\t\temailAddress = emailInput ? emailInput.value : '';\r\n\t\t\t\tif (bouncex.utils.validate.email(emailAddress)) {\r\n\t\t\t\t\t_shq.push(['onEmail', {\r\n\t\t\t\t\t\temail: emailAddress,\r\n\t\t\t\t\t\ttype: 'transact'\r\n\t\t\t\t\t}]);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tvar btnLoginCheckout = document.querySelector('#registered-customer');\r\n if (btnLoginCheckout) {\r\n btnLoginCheckout.addEventListener('submit', function (e) {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\temailInput = document.querySelector(\".card-body .customer-information-block.form-block input[id='email']\");\r\n\t\t\t\temailAddress = emailInput ? emailInput.value : '';\r\n\t\t\t\tif (bouncex.utils.validate.email(emailAddress)) {\r\n\t\t\t\t\t_shq.push(['onEmail', {\r\n\t\t\t\t\t\temail: emailAddress,\r\n\t\t\t\t\t\ttype: 'transact'\r\n\t\t\t\t\t}]);\r\n\t\t\t\t}\r\n });\r\n }\r\n\t},\r\n\tcaptureCart: function captureCart(obj) {\r\n\t\tvar cartArr = bouncex.utils.getNestedProp('mkorsData.cart.product', []),\r\n\t\t\tcartItems = [],\r\n\t\t\tprodId, price, qty;\r\n\r\n\t\tif (Object.keys(cartArr).length) {\r\n\t\t\tfor (var i in cartArr) {\r\n\t\t\t\tprodId = bouncex.utils.getNestedProp('sku', '', cartArr[i]),\r\n\t\t\t\t\tprice = bouncex.utils.getNestedProp('pricePer', null, cartArr[i]),\r\n\t\t\t\t\tqty = bouncex.utils.getNestedProp('qty', null, cartArr[i]);\r\n\t\t\t\tif (prodId && qty && price) {\r\n\t\t\t\t\tcartItems.push({\r\n\t\t\t\t\t\t'ProductId': prodId,\r\n\t\t\t\t\t\t'UnitPrice': price,\r\n\t\t\t\t\t\t'Quantity': qty\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar cartTotal = cartItems && cartItems.reduce(function (sum, currentItem) {\r\n\t\t\t\treturn sum + (currentItem.UnitPrice * currentItem.Quantity);\r\n\t\t\t}, 0);\r\n\t\t\tif (cartItems && cartTotal > 0) {\r\n\t\t\t\t_shq.push(['onCartView', {\r\n\t\t\t\t\t'Items': cartItems,\r\n\t\t\t\t\t'Total': cartTotal\r\n\t\t\t\t}]);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tquantityUpdate: function quantityUpdate(obj) {\r\n\t\tvar prodId = bouncex.utils.getNestedProp('product[0].productID', '', obj);\r\n\t\tvar qty = bouncex.utils.getNestedProp('eventInfo.selectionValue', '', obj);\r\n\t\tif (prodId) {\r\n\t\t\t_shq.push(['onCartQty', {\r\n\t\t\t\tItems: [{\r\n\t\t\t\t\tProductId: prodId,\r\n\t\t\t\t\tQuantity: qty\r\n\t\t\t\t}]\r\n\t\t\t}]);\r\n\t\t}\r\n\t},\r\n\tremoveCart: function removeCart(obj) {\r\n\t\tvar prodId = bouncex.utils.getNestedProp('product[0].productID', '', obj);\r\n\t\tif (prodId) {\r\n\t\t\t_shq.push(['onCartRemove', {\r\n\t\t\t\tItems: [{\r\n\t\t\t\t\t'ProductId': prodId\r\n\t\t\t\t}]\r\n\t\t\t}]);\r\n\t\t}\r\n\t\tif (!mkorsData.cart) {\r\n\t\t\t_shq.push(['onCartEmpty']);\r\n\t\t}\r\n\t},\r\n\tcaptureSearch: function captureSearch() {\r\n\t\tvar searchPhrase = bouncex.utils.getNestedProp('mkorsData.search.keyword', '');\r\n\t\tif (searchPhrase) {\r\n\t\t\t_shq.push(['onSearch', {\r\n\t\t\t\t'searchPhrase': searchPhrase\r\n\t\t\t}]);\r\n\t\t}\r\n\t},\r\n\tcaptureATC: function captureATC(obj) {\r\n\t\tbouncex.setTimeout2(function () {\r\n\t\t\tvar atcArray = bouncex.utils.getNestedProp('product', [], obj).map(function (ea) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tProductId: ea.productID,\r\n\t\t\t\t\tUnitPrice: ea.pricePer,\r\n\t\t\t\t\tQuantity: ea.quantity\r\n\t\t\t\t};\r\n\t\t\t});\r\n\r\n\t\t\tif (atcArray.length > 0 && atcArray[0].ProductId) {\r\n\t\t\t\t_shq.push(['onCartAdd', {\r\n\t\t\t\t\t'Items': atcArray\r\n\t\t\t\t}]);\r\n\t\t\t}\r\n\t\t}, 1000);\r\n\t},\r\n\r\n\tcaptureHtmlCategory: function captureHtmlCategory() {\r\n\t\tvar catCode = bouncex.utils.getNestedProp('mkorsData.page.name');\r\n\t\tif (catCode) {\r\n\t\t\t_shq.push(['onCategory', {\r\n\t\t\t\t'catId': catCode,\r\n\t\t\t\t'catName': catCode\r\n\t\t\t}]);\r\n\t\t}\r\n\t},\r\n\r\n\tcaptureCategory: function captureCategory() {\r\n\t\tvar catCode = bouncex.utils.getNestedProp('mkorsData.page.name').replaceAll('Home >', '').trim();\r\n\t\tif (catCode) {\r\n\t\t\t_shq.push(['onCategory', {\r\n\t\t\t\t'catId': catCode,\r\n\t\t\t\t'catName': catCode\r\n\t\t\t}]);\r\n\t\t}\r\n\t},\r\n\tcaptureWishlist: function captureWishlist(obj, wAction) {\r\n\t\tvar prodId = bouncex.utils.getNestedProp('product[0].mfrItemNum', '', obj);\r\n\t\tif (prodId && wAction) {\r\n\t\t\t_shq.push(['onProductList', {\r\n\t\t\t\tlistId: 'wishlist',\r\n\t\t\t\taction: wAction,\r\n\t\t\t\tproductId: prodId\r\n\t\t\t}]);\r\n\t\t}\r\n\t},\r\n\tprocessObserver: function processObserver(aoItems) {\r\n\t\tvar sDone = false,\r\n\t\t\tcDone = false;\r\n\t\twhile (aoItems.length) {\r\n\t\t\tvar item = aoItems.shift(),\r\n\t\t\t\tpageType = bouncex.utils.getNestedProp('page.type', '', item),\r\n\t\t\t\tevent = bouncex.utils.getNestedProp('eventInfo.eventName', '', item);\r\n\r\n\t\t\tif (event === 'addToCart') {\r\n\t\t\t\tthis.captureATC(item);\r\n\t\t\t}\r\n\t\t\tif (!sDone && pageType === 'Search Results') {\r\n\t\t\t\tthis.captureSearch(item);\r\n\t\t\t\tsDone = true;\r\n\t\t\t}\r\n\t\t\tif (!cDone && pageType === 'Shopping Cart') {\r\n\t\t\t\tthis.captureCart(item);\r\n\t\t\t\tcDone = true;\r\n\t\t\t}\r\n\t\t\tif (event === 'productQtyUpdate') {\r\n\t\t\t\tthis.quantityUpdate(item);\r\n\t\t\t}\r\n\t\t\tif (event === 'removeFromCart') {\r\n\t\t\t\tthis.removeCart(item);\r\n\t\t\t}\r\n\t\t\tif (event === 'addToFavorites') {\r\n\t\t\t\tthis.captureWishlist(item, 'add');\r\n\t\t\t}\r\n\t\t\tif (event === 'removeFromFavorites') {\r\n\t\t\t\tthis.captureWishlist(item, 'remove');\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tarrayObserver: function arrayObserver() {\r\n\t\tvar _this = this;\r\n\r\n\t\tif (!this.arrayObserverEnabled) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tbouncex.et.onTrue(function () {\r\n\t\t\treturn bouncex.utils.getNestedProp('window._shq.loaded');\r\n\t\t}, function () {\r\n\t\t\tif (window.mkorsData.event) {\r\n\t\t\t\t_shq.ArrayObserver(window.mkorsData.event, function (e) {\r\n\t\t\t\t\t_this.processObserver(e);\r\n\t\t\t\t}, {\r\n\t\t\t\t\tcatchUp: true\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\tinit: function init() {\r\n\t\t// test mode\r\n\t\tif (this.testMode && !bouncex.testmode.bxdev) return;\r\n\t\t// attach object to window & bouncex.utils\r\n\t\tif (bouncex.utils) bouncex.utils.audiences = this;\r\n\r\n\t\tthis.useIntercept();\r\n\t\tthis.useMirror();\r\n\t\tthis.arrayObserver();\r\n\t\tthis.captureEmails();\r\n\t}\r\n};\r\n\r\naudiences.init();","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"Hit 'Send' to sign-up for automated, recurring Michael Kors mktg txts (like cart reminders) to this #, per terms.","eventSharing":true,"shqId":"v9jkrxy969-1","enabled":1},"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":false,"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":"3cdb3cd0b71927a211b8afdc85918cfd"}; 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.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_ca58d8b011d1f69498214263486a59c6.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); } 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(); }})();