(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":8349,"name":"Vail Resorts Breckenridge","cookie_name":"bounceClientVisit8349","domain":"breckenridge.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":0},"burls":[{"prop":"contains","val":"https://breck.qa.vailresorts.com/"},{"prop":"contains","val":"https://breck1.qa.vailresorts.com/"},{"prop":"contains","val":"https://breck2.qa.vailresorts.com/"},{"prop":"contains","val":"https://breck3.qa.vailresorts.com/"},{"prop":"contains","val":"https://breck4.qa.vailresorts.com/"},{"prop":"contains","val":"https://breck5.qa.vailresorts.com/"},{"prop":"contains","val":"https://breck.test.vailresorts.com/"},{"prop":"contains","val":"https://breck.cms.vailresorts.com/"},{"prop":"contains","val":"https://breck.prod.vailresorts.com/"}],"ple":false,"fbe":true,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* ---------------------------- SHARED VARIABLES ---------------------------- */\n\nvar CLEAN_URL = bouncex.utils.url.allowParams(['location']),\n PDP_ATC_SELECTOR = '.pass_configuration__add_to_cart, .activity_booking_results__content__cta_btn, .lodging_details_unit_results__book_now',\n CAT_ATC_SELECTOR = '.pass_results__item__config_add_to_cart button',\n RENTAL_ATC_SELECTOR = '.rentals_equipment_selector__product_card_col .primaryCTA',\n RENTAL_SELECTOR = '.rentals_equipment_selector__product_card';\n\n/* --------------------------------- HELPERS -------------------------------- */\n\nfunction getItemIdFromUrl(url) {\n url = url ? bouncex.utils.url.allowParams([], url) : '';\n\n return url.split('/').pop().split('.').shift().toLowerCase();\n}\n\nfunction getPDPItemId() {\n return getItemIdFromUrl(CLEAN_URL);\n}\n\nfunction copyToItemId(copy) {\n copy = copy || '';\n\n return copy.toLowerCase().toLowerCase().replace(/[()]/g, '-').replace(/[' ']/g, '-');\n}\n\nfunction isPassPage() {\n return CLEAN_URL.toLowerCase().indexOf('/passes/') > -1;\n}\n\nfunction isActivityPage() {\n return CLEAN_URL.toLowerCase().indexOf('/activities/') > -1 || CLEAN_URL.toLowerCase().indexOf('/activities-and-events/') > -1 || CLEAN_URL.toLowerCase().indexOf('/lift-access/') > -1;\n}\n\nfunction isLodgingPage() {\n return CLEAN_URL.toLowerCase().indexOf('/stay/details/') > -1;\n}\n\nfunction isRentalsPage() {\n return CLEAN_URL.toLowerCase().indexOf('/rentals/') > -1;\n}\n\nfunction isLessonsPage() {\n return CLEAN_URL.toLowerCase().indexOf('/ski-and-ride-lessons/category/') > -1;\n}\n\nfunction getLodgingPrice() {\n return jQuery('.c47__dateslabel--v1').length ? jQuery('.lodging_details_info__prices__price.g1__price_online--v1').last().text().replace(/[^0-9.]/g, '') : 'N/A';\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction getPassItem() {\n var imageurl = 'https://scene7.vailresorts.com/is/image/vailresorts/0342-20-EPAS-NewPassMediaCards_Web_WB4DayPass?fmt=png-alpha&resMode=sharp2&wid=293&fit=constrain,1&dpr=on,1',\n $benefits = jQuery('.c141__textmed--v1 li, .featuredContentElement__body li');\n\n return {\n id: getPDPItemId(),\n copy: jQuery('.pass_category_detail__resort_access__subtitle').first().text().toUpperCase() || jQuery('.c141__passname--v1, .hero__content__title').first().text().toUpperCase(),\n category: 'Pass',\n url: CLEAN_URL,\n imageurl: jQuery('[class*=\"pass_detail__hero__image\"] img').attr('src') || imageurl,\n instock: true,\n price: jQuery('.c143__subtotal--v1').first().text().replace(/[^0-9.]/g, ''),\n description: jQuery('.c141__textmed--v1 strong, .hero__content__description, .featuredContentElement__body strong, .pass_category_detail__resort_access__description').first().text().trim(),\n agegroup: jQuery('.c146__agelabel--v1').first().text(),\n age: jQuery('.c146__age--v1').first().text(),\n hasMultiAgeGroup: jQuery('.pass_configuration__product__pricing').length > 1,\n benefit1: $benefits.eq(0).text().trim() || 'The resorts you love with access in the 2025/26 season.',\n benefit2: $benefits.eq(1).text().trim() || 'Excludes Peak Dates',\n benefit3: $benefits.eq(2).text().trim() || 'Plus, discounted tickets for you, friends and family.'\n };\n}\n\nfunction getActivityItem() {\n var imageurl = 'https://scene7.vailresorts.com/is/image/vailresorts/20210705_WB_Fitzpatrick_011:Medium-Hero?resMode=sharp2&w=2880&h=750&wid=1005&fit=constrain,1&dpr=on,1';\n\n return {\n id: getPDPItemId(),\n copy: jQuery('.hero__content__title, .c129__title--v1').first().text().toUpperCase(),\n category: 'Activity',\n url: CLEAN_URL,\n imageurl: jQuery('.hero__background__image_default img').attr('src') || imageurl,\n instock: true,\n price: jQuery('.c125__totalprice--v1, .c146__subtotal--v1, .liftTicketsResults__ticketPrice').first().text().replace(/[^0-9.]/g, ''),\n description: jQuery('.hero_with_promotion__promotion__title, .basicContentElement__body h2').first().text().trim(),\n agegroup: jQuery('.c125__agetitle--v1, .c146__agelabel--v1').first().text() || 'Adult',\n age: jQuery('.c125__descriptor--v1, .c146__age--v1').first().text() || '(Ages 19-64)',\n hasMultiAgeGroup: jQuery('.activity_booking_results__content__activities li, .liftTickets__numberListItem').length > 1,\n benefit1: 'RISK-FREE REFUNDS',\n benefit2: 'BUY ONLINE, SKIP THE LINE',\n benefit3: 'LIMITED AVAILABILITY'\n };\n}\n\nfunction getLodgingItem() {\n var imageurl = 'https://scene7.vailresorts.com/is/image/vailresorts/20210705_WB_Fitzpatrick_011:Medium-Hero?resMode=sharp2&w=2880&h=750&wid=1005&fit=constrain,1&dpr=on,1';\n\n return {\n id: getPDPItemId(),\n copy: jQuery('.c47__propertyname--v3').first().text().toUpperCase(),\n category: 'Lodging',\n url: CLEAN_URL,\n imageurl: jQuery('.photo_gallery__hero img').attr('data-src') || imageurl,\n instock: true,\n price: getLodgingPrice(),\n description: jQuery('.lodging_details__description__text').first().text().trim().split('. ').shift()\n };\n}\n\nfunction initializeItemEvents() {\n var item = {};\n\n bouncex.et.onTrue(\n function () {\n switch (true) {\n case isPassPage():\n item = getPassItem();\n break;\n case isActivityPage():\n item = getActivityItem();\n break;\n case isLodgingPage():\n item = getLodgingItem();\n break;\n };\n return !!item.id &&\n !!item.copy &&\n !!item.category &&\n !!item.url &&\n !!item.imageurl &&\n !!item.price;\n },\n function () {\n fireItemEvents(item);\n },\n 25\n );\n}\n\nfunction fireItemEvents(item) {\n bouncex.push(['item', item]);\n fireViewItem(item.id);\n}\n\nfunction fireViewItem(itemId) {\n bouncex.push(['view item', {'item:id': itemId}]);\n}\n\nfunction initializeRentalItemEvents() {\n if (isRentalsPage()) {\n bouncex.et.onVisible(RENTAL_SELECTOR, function(){\n fireRentalItemEvents();\n });\n\n bouncex.et.on(bouncex.document, 'click.bxitem', function() {\n bouncex.setTimeout2(fireRentalItemEvents, 1000);\n }, '.c155__tablabel--v1');\n\n initializeRentalATC();\n }\n}\n\nfunction fireRentalItemEvents() {\n var imageurl = 'https://scene7.vailresorts.com/is/image/vailresorts/KidsDH_20YouthFluid?resMode=sharp2&wid=346&fit=constrain,1&dpr=on,1';\n\n jQuery(RENTAL_SELECTOR).each(function() {\n var copy = jQuery(this).find('.c155__product--v1').first().text();\n item = {\n id: copyToItemId(copy),\n copy: copy.toUpperCase(),\n category: 'Rental',\n url: CLEAN_URL,\n imageurl: jQuery(this).find('.rentals_equipment_selector__product_card_image img').attr('src') || imageurl,\n instock: true,\n price: jQuery(this).find('.g1__price_online--v1').first().text().replace(/[^0-9.]/g, ''),\n description: jQuery(this).find('.rentals_equipment_selector__product_card_description').first().text()\n };\n \n if (!!item.id && !!item.copy && !!item.category && !!item.url && !!item.imageurl) {\n fireItemEvents(item);\n }\n })\n}\n\nfunction initializeLessonItemEvents() {\n if (isLessonsPage()) {\n bouncex.et.onVisible('.bookLessonModal', function(){\n bouncex.setTimeout2(fireLessonItemEvents, 1000);\n initializeLessonATC();\n });\n }\n}\n\nfunction fireLessonItemEvents() {\n var imageurl = 'https://scene7.vailresorts.com/is/image/vailresorts/20220202_BR_maguire_6903:Featured-Content-AND-Sliding-Cards-AND-Container-Long-Amount?resMode=sharp2&wid=200&fit=constrain,1&dpr=on,1',\n copy = jQuery('.bookLessonModal__title').first().text(),\n item = {\n id: copyToItemId(copy),\n copy: copy.toUpperCase(),\n category: 'Lesson',\n url: CLEAN_URL,\n imageurl: jQuery('.bookLessonModal__image').attr('src') || imageurl,\n instock: true,\n price: jQuery('.totalPricesRow--priceValue').first().text().replace(/[^0-9.]/g, ''),\n description: jQuery('.bookLessonModal__description__inner p').first().text().trim().split('. ').shift()\n };\n\n if (!!item.id && !!item.copy && !!item.category && !!item.url && !!item.imageurl) {\n fireItemEvents(item);\n }\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\nfunction initializeViewItemOnCategory() {\n jQuery('a.pass_results__item__learn_more_link').each(function (i, e) {\n var id = getItemIdFromUrl(jQuery(e).attr('href'));\n if (id) {\n fireViewItem(id);\n }\n });\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\n\nfunction fireAddToCart(itemId, replenItem) {\n bouncex.push([\n 'add to cart',\n {\n 'item:id': itemId,\n 'cart:item': bouncex.stringify(replenItem)\n }\n ]);\n\n if (bouncex.vars.cart) {\n return;\n }\n bouncex.setVar('cart', true);\n}\n\nfunction initializeCategoryATC() {\n bouncex.et.on(bouncex.document, 'click.bxatc', function () {\n var itemId = getItemIdFromUrl(jQuery(this).parents('.pass_results__item').find('a.linkCTA').attr('href'));\n\n if (itemId) {\n bouncex.setVar('cat_atc_id', itemId);\n }\n\n }, CAT_ATC_SELECTOR);\n}\n\nfunction initializeRentalATC() {\n bouncex.et.on(bouncex.document, 'click.bxrental', function () {\n var itemId = copyToItemId(jQuery(this).parents(RENTAL_SELECTOR).find('h3.c155__product--v1').first().text());\n\n if (itemId) {\n bouncex.setVar('rental_atc_id', itemId);\n }\n\n }, RENTAL_ATC_SELECTOR);\n}\n\nfunction initializeLessonATC() {\n var LESSON_ATC_SELECTOR = '.bookLessonModal button.primaryCTA';\n\n bouncex.off(jQuery(LESSON_ATC_SELECTOR), 'click.bxlesson');\n bouncex.et.on(bouncex.document, 'click.bxlesson', function () {\n var itemId = copyToItemId(jQuery(this).parents('.bookLessonModal').find('.bookLessonModal__title').first().text());\n\n if (itemId) {\n bouncex.setVar('lesson_atc_id', itemId);\n }\n\n }, LESSON_ATC_SELECTOR);\n}\n\nfunction getPassReplenItem(settings) {\n var parsedSettings = JSON.parse(settings.data) || {},\n passesToAdd = parsedSettings.passesToAddToCart,\n replenItem = {};\n\n if (passesToAdd.length) {\n replenItem = {\n 'sku': passesToAdd[0].sku,\n 'qty': passesToAdd[0].qty,\n 'type': 'pass'\n };\n }\n\n return replenItem;\n}\n\nfunction getActivityReplenItem(settings) {\n var parsedSettings = JSON.parse(settings.data) || {},\n replenItem = {};\n\n if (parsedSettings.length) {\n replenItem = {\n 'sku': parsedSettings[0].Sku,\n 'qty': parsedSettings[0].Qty,\n 'locationid': parsedSettings[0].LocationId,\n 'bookingid': parsedSettings[0].ActivityBookingId,\n 'date': parsedSettings[0].Date,\n 'type': 'activity'\n };\n }\n\n return replenItem;\n}\n\nfunction getLodgingReplenItem(settings) {\n var parsedSettings = JSON.parse(settings.data) || {},\n childrenAgesArr = [],\n packageComponentsArr = [],\n childrenAges,\n packageComponents,\n replenItem = {};\n\n if (parsedSettings) {\n childrenAges = parsedSettings.ChildrenAges || [];\n packageComponents = parsedSettings.PackageComponents || [];\n\n childrenAges.forEach(function(e) {\n childrenAgesArr.push(e);\n });\n\n packageComponents.forEach(function(e) {\n packageComponentsArr.push(e);\n })\n replenItem = {\n 'childrenages': childrenAgesArr || '',\n 'enddate': parsedSettings.EndDate,\n 'locationid': parsedSettings.LocationId,\n 'numberofadults': parsedSettings.NumberOfAdults,\n 'packagecomponents': packageComponentsArr,\n 'packageid': parsedSettings.PackageId,\n 'productid': parsedSettings.ProductId,\n 'propertyid': parsedSettings.PropertyId,\n 'startdate': parsedSettings.StartDate,\n 'type': 'lodging'\n };\n }\n\n return replenItem;\n}\n\nfunction getRentalReplenItem(settings) {\n var parsedSettings = JSON.parse(settings.data) || {},\n replenItem = {};\n\n if (parsedSettings) {\n replenItem = {\n 'sku': parsedSettings.Sku,\n 'qty': parsedSettings.Qty,\n 'locationcode': parsedSettings.LocationCode,\n 'rentaltimeperiod': parsedSettings.BikeRentalTimePeriod,\n 'deliverytime': parsedSettings.PreferredDeliveryTime,\n 'resortcode': parsedSettings.ResortCode,\n 'returndate': parsedSettings.ReturnDate,\n 'season': parsedSettings.Season,\n 'startdate': parsedSettings.StartDate,\n 'type': 'rental'\n };\n }\n\n return replenItem;\n}\n\nfunction getLessonReplenItem(settings) {\n var parsedSettings = JSON.parse(settings.data) || {},\n addOnArr = [],\n addOns,\n replenItem = {};\n\n if (parsedSettings) {\n addOns = parsedSettings.SelectedAddOns || [];\n\n addOns.forEach(function(e) {\n addOnArr.push(e);\n });\n\n replenItem = {\n 'addons': addOnArr || '',\n 'lessontype': parsedSettings.LessonType,\n 'guid': parsedSettings.SelectedLocationGuid,\n 'qty': parsedSettings.Qty,\n 'usercode': parsedSettings.UserFriendlyCode,\n 'startdate': parsedSettings.StartDate,\n 'sku': parsedSettings.Sku,\n 'type': 'lesson'\n };\n }\n\n return replenItem;\n}\n\nfunction getLiftReplenItem(settings) {\n var parsedSettings = JSON.parse(settings.data) || {},\n replenItem = {};\n if (parsedSettings.length) {\n replenItem = {\n 'sku': parsedSettings[0].sku,\n 'qty': parsedSettings[0].qty,\n 'startdate': parsedSettings[0].startDate,\n 'producttype': parsedSettings[0].productType,\n 'type': 'lift'\n };\n }\n return replenItem;\n}\n\nfunction trackAJAXCart(e, xhr, settings) {\n var id,\n replenItem = {};\n \n if (\n !bouncex.utils.url.getParam('bx_cart')\n && xhr.status === 200\n ) {\n switch (true) {\n case settings.url.indexOf('/CartApi/AddPassesToCart') > -1:\n id = bouncex.website.pts === 'product' ? getPDPItemId() : bouncex.vars.cat_atc_id;\n replenItem = getPassReplenItem(settings);\n break;\n case settings.url.indexOf('/CartApi/AddActivitiesToCart') > -1:\n id = getPDPItemId();\n replenItem = getActivityReplenItem(settings);\n break;\n case settings.url.indexOf('/CartApi/AddLodgingToCart') > -1:\n id = getPDPItemId();\n replenItem = getLodgingReplenItem(settings);\n break;\n case settings.url.indexOf('/CartApi/AddRentalsToCart') > -1:\n id = isRentalsPage() ? bouncex.vars.rental_atc_id : '';\n replenItem = getRentalReplenItem(settings);\n break;\n case settings.url.indexOf('CartApi/AddLessonToCart') > -1:\n id = isLessonsPage() ? bouncex.vars.lesson_atc_id : '';\n replenItem = getLessonReplenItem(settings);\n break;\n case settings.url.indexOf('/CartApi/AddLiftTicketsToCart') > -1:\n id = getPDPItemId();\n replenItem = getLiftReplenItem(settings);\n break;\n }\n\n if (!id || (!isLodgingPage() && (!replenItem.sku || !replenItem.qty))) {\n return;\n }\n\n if (isLodgingPage() && (!replenItem.productid || !replenItem.locationid || !replenItem.startdate || !replenItem.enddate)) {\n return;\n }\n\n fireAddToCart(id, replenItem);\n }\n}\n\nfunction emptyCart() {\n if (bouncex.website.pts === 'cart' && !bouncex.vars.cart_qty && bouncex.vars.cart) {\n bouncex.push(['empty_cart']);\n bouncex.setVar('cart', false);\n }\n}\n\nfunction makePassAjax(token, replenItem) {\n return jQuery.ajax({\n type: 'POST',\n url: 'https://www.breckenridge.com/api/CartApi/AddPassesToCart',\n contentType: \"application/json; charset=UTF-8\",\n headers: {\n \"__requestverificationtoken\": token\n },\n data: JSON.stringify({\n passesToAddToCart: [{\n sku: replenItem.sku,\n qty: replenItem.qty\n }]\n })\n });\n}\n\nfunction makeActivityAjax(token, replenItem) {\n return jQuery.ajax({\n type: 'POST',\n url: 'https://www.breckenridge.com/api/CartApi/AddActivitiesToCart',\n contentType: \"application/json; charset=UTF-8\",\n headers: {\n \"__requestverificationtoken\": token\n },\n data: JSON.stringify([{\n Sku: replenItem.sku,\n Qty: replenItem.qty,\n LocationId: replenItem.locationid,\n ActivityBookingId: replenItem.bookingid,\n Date: replenItem.date\n }])\n });\n}\n\nfunction makeLiftAjax(token, replenItem) {\n return jQuery.ajax({\n type: 'POST',\n url: 'https://www.breckenridge.com/api/CartApi/AddLiftTicketsToCart',\n contentType: \"application/json; charset=UTF-8\",\n headers: {\n \"__requestverificationtoken\": token\n },\n data: JSON.stringify([{\n sku: replenItem.sku,\n qty: replenItem.qty,\n productType: replenItem.producttype,\n startDate: replenItem.startdate\n }])\n });\n}\n\nfunction makeLodgingAjax(token, replenItem) {\n return jQuery.ajax({\n type: 'POST',\n url: 'https://www.breckenridge.com/api/CartApi/AddLodgingToCart',\n contentType: \"application/json; charset=UTF-8\",\n headers: {\n \"__requestverificationtoken\": token\n },\n data: JSON.stringify({\n EndDate: replenItem.enddate,\n NumberOfAdults: replenItem.numberofadults,\n LocationId: replenItem.locationid,\n PackageId: replenItem.packageid,\n StartDate: replenItem.startdate,\n ProductId: replenItem.productid,\n PropertyId: replenItem.propertyid,\n ChildrenAges: replenItem.childrenages,\n PackageComponents: replenItem.packagecomponents\n })\n });\n}\n\nfunction makeRentalAjax(token, replenItem) {\n return jQuery.ajax({\n type: 'POST',\n url: 'https://www.breckenridge.com/api/CartApi/AddRentalsToCart',\n contentType: \"application/json; charset=UTF-8\",\n headers: {\n \"__requestverificationtoken\": token\n },\n data: JSON.stringify({\n ReturnDate: replenItem.returndate,\n BikeRentalTimePeriod: replenItem.rentaltimeperiod,\n LocationCode: replenItem.locationcode,\n PreferredDeliveryTime: replenItem.deliverytime,\n StartDate: replenItem.startdate,\n Qty: replenItem.qty,\n ResortCode: replenItem.resortcode,\n Season: replenItem.season,\n Sku: replenItem.sku\n })\n });\n}\n\nfunction makeLessonAjax(token, replenItem) {\n return jQuery.ajax({\n type: 'POST',\n url: 'https://www.breckenridge.com/api/CartApi/AddLessonToCart',\n contentType: \"application/json; charset=UTF-8\",\n headers: {\n \"__requestverificationtoken\": token\n },\n data: JSON.stringify({\n LessonType: replenItem.lessontype,\n SelectedAddOns: replenItem.addons,\n SelectedLocationGuid: replenItem.guid,\n StartDate: replenItem.startdate,\n Qty: replenItem.qty,\n UserFriendlyCode: replenItem.usercode,\n Sku: replenItem.sku\n })\n });\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n replenishmentType: 'ajax',\n replenish: function (cart) {\n var deferreds = [];\n\n cart.items.forEach(function (item) {\n deferreds.push(makeAjaxATCFunc(item));\n });\n\n deferreds.reduce(\n function (promise, func) {\n return promise.then(function () {\n return func();\n });\n },\n jQuery.Deferred().resolve([])\n )\n .then(replenComplete);\n }\n });\n\n function makeAjaxATCFunc(replenItem) {\n return function () {\n var token = jQuery('#csrfToken').val();\n\n switch (replenItem.type) {\n case 'pass':\n makePassAjax(token, replenItem);\n break;\n case 'activity':\n makeActivityAjax(token, replenItem);\n break;\n case 'lodging':\n makeLodgingAjax(token, replenItem);\n break;\n case 'rental':\n makeRentalAjax(token, replenItem);\n break;\n case 'lesson':\n makeLessonAjax(token, replenItem);\n break;\n case 'lift':\n makeLiftAjax(token, replenItem);\n break;\n }\n };\n }\n\n function replenComplete() {\n window.location.href = CLEAN_URL + '?bx_replen=true';\n }\n\n bouncex.et.on(bouncex.document, 'ajaxComplete.wknd', trackAJAXCart);\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 = bouncex.utils.getNestedProp('digitalData.user.profile.profileInfo.email');\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 EVENTS ----------------------------- */\n\nfunction fireAmpid() {\n var ampid = bouncex.utils.getParam('ampid');\n\n if (ampid && !bouncex.vars.fired_ampid) {\n bouncex.push(['ampid', {'ampid:id': ampid}]);\n bouncex.setVar('fired_ampid', true)\n }\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n return CLEAN_URL.indexOf('www.breckenridge.com') > -1;\n}\n\nfunction isEn() {\n var lang = bouncex.html.attr('lang') || '';\n\n return /^en/.test(lang);\n}\n\nfunction isValidForTracking() {\n return isValidDomain() && isEn();\n}\n\nfunction init() {\n if (!isValidForTracking()) {\n return;\n }\n\n initializeUserTracking();\n initializeCartEvents();\n fireAmpid();\n\n switch (bouncex.website.pts) {\n case 'category':\n if (window.location.pathname.indexOf('/lift-access/passes.aspx') > -1) {\n initializeViewItemOnCategory();\n }\n initializeCategoryATC();\n break;\n case 'product':\n bouncex.setTimeout2(initializeItemEvents, 2000);\n initializeRentalItemEvents();\n initializeLessonItemEvents();\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.aspx"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('#pass_results').length > 0;"}]]},"checkout":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/cart/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/confirmation.aspx"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"['/'].indexOf(window.location.pathname) > -1;"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.activity_booking_results__container').length > 0;"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/passes/"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/Passes/"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/rentals/"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/stay/details/"},{"activation":"js","prop":"","prop2":"","prop3":"","val":"document.querySelectorAll('.activity_booking_filter').length > 0 && document.querySelectorAll('.activity_booking_filter__context__offsale_message').length === -1;"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/ski-and-ride-lessons/category/"},{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/lift-access/"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"/compare-passes"}],[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname !== '/plan-your-trip/lift-access/season-passes.aspx';"}]]},"search":{"testmode":false,"val":[[{"activation":"current_page_url","prop":"contains","prop2":"","prop3":"","val":"/search-results"}]]}},"els":null,"vars":[{"name":"logged_in","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('[title=\"Signed In\"]').length > 0;","trigger":""},{"name":"ever_logged_in","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.logged_in || null;","trigger":""},{"name":"cart_qty","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"+jQuery('.cart_count').first().text() || bouncex.utils.getNestedProp('digitalData.cart.lineItems.length');","trigger":""},{"name":"submitted_onsite","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"window.location.href.indexOf('/email-preferences-page.aspx') > -1 || null;","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"page_type","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts;","trigger":"pageload"},{"name":"cat_atc_id","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"fired_ampid","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"rental_atc_id","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"lesson_atc_id","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"}],"dgu":"pixel.cdnwidget.com","dgp":false,"ba":{"enabled":0,"fbte":0},"biu":"wd.breckenridge.com","bau":"wd.breckenridge.com","beu":"wd.breckenridge.com","ibx":{"tjs":"","cjs":"","miw":0,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":{"ampid":"espemailid"},"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"wd.breckenridge.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":1,"spatm":0,"preinit_cjs":"SinglePageApp.setCustomParams({\n shouldCheckSpa: function() {\n return window.location.pathname.indexOf('/stay/details/') > -1;\n }\n});\n\nSinglePageApp.setCustomParams({\n currentPageIdentifier: function() {\n return window.location.href;\n }\n});","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"wd.breckenridge.com","dfpcms":0,"sms":{"optm":"","eventSharing":false,"shqId":"","enabled":0},"pde":true,"fmc":["US"],"fme":true,"fmx":"","uid2":true,"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,"devMode":0},"ga4_property_id":"","ga4_measurement_id":"","tag_state_domain":"wd.breckenridge.com","tag_state_domain_enabled":true} ; 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":"841302b3dd0d5f967ede0f572e12ea5a","creativesBaseStyles":"a53944a2","gpsAuction":"bbb80866120d17013073bb6d284cbd6b","inbox":"b205bbe35290429afd398e356288fd36","onsite":"1238d00d70e4de87443df9eb69ff1a61","sms":"e39203556bab2366e56296ce42e974a7","websdk":"9a65ab96520f390bb65a5ecce3f5ef5a","website_campaigns_8349":"01c0153fac8768c6646f43be56ce6f55"}; bouncex.push = function(pushData) { bouncex.pushedData.push(pushData); } var runtime = document.createElement('script'); runtime.setAttribute('src', '//wd.breckenridge.com/assets/smart-tag/versioned/runtime_c81e76ee00d795b1eebf8d27949f8dc5.br.js'); runtime.setAttribute('async', 'async'); bouncex.initializeTag = function() { var script = document.createElement('script'); script.setAttribute('src', '//wd.breckenridge.com/assets/smart-tag/versioned/main-v2_69d771a523a07cc8b61c744690153f11.br.js'); script.setAttribute('async', 'async'); document.body.appendChild(script); var deviceGraphScript = document.createElement('script'); deviceGraphScript.setAttribute('src', '//wd.breckenridge.com/assets/smart-tag/versioned/cjs_min_c84323e2726f3e99b307ab7740c6434b.js'); deviceGraphScript.setAttribute('async', 'async'); var dgAttrs = [{"Key":"id","Value":"c.js"},{"Key":"async","Value":"true"},{"Key":"data-apikey","Value":"2^HIykD"},{"Key":"data-cb","Value":"bouncex.dg.initPostDeviceGraph"},{"Key":"data-bx","Value":"1"},{"Key":"data-gm","Value":"1"},{"Key":"data-fire","Value":"1"}]; if (dgAttrs) { for (var i = 0; i < dgAttrs.length; i++) { deviceGraphScript.setAttribute(dgAttrs[i].Key, dgAttrs[i].Value); } } document.body.appendChild(deviceGraphScript); bouncex.initializeTag = function() {}; }; runtime.onload = bouncex.initializeTag; document.body.appendChild(runtime); } } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();