(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-273ab1da"],{"091a":function(t,e,a){"use strict";var o=a("7d05"),r=a.n(o);r.a},"0b06":function(t,e,a){"use strict";var o=a("8988"),r=a.n(o);r.a},"1bf6":function(t,e,a){},"1e84":function(t,e,a){},"21cb":function(t,e,a){},"3b03":function(t,e,a){"use strict";var o=a("1e84"),r=a.n(o);r.a},"47b2":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-container",{staticClass:"global--container-content",style:t.TRANSACTIONS_HEIGHT_STYLE,attrs:{fluid:"","no-gutters":"",id:"stay-list-desktop-container"}},[t.show?a("v-row",{style:{maxWidth:t.maxWidth+"px"},attrs:{id:"stay-list","align-center":"","no-gutters":""}},[a("v-col",{staticClass:"pt-0",attrs:{cols:"12"}},[t.profileProgressBar?a("ConnectedProfileCompletion",{staticClass:"mb-4"}):t._e(),a("ConnectedMilestoneNotificationBar"),t.showHeader?a("div",{ref:t.refLabels.tagline,staticClass:"laas-desktop-tagline",class:{"with-top-margin":t.ACCOUNT_INFO_INCOMPLETE},style:{fontFamily:t.STYLIZED_FONT,color:t.STYLE_CONFIG.highlightColor}},[t._v(" "+t._s(t.tagline)+" ")]):t._e(),t.showHeader?a("div",{ref:t.refLabels.header,staticClass:"laas-desktop-list-header",style:{fontFamily:t.STYLIZED_FONT,marginBottom:"20px"}},[t._v(" "+t._s(t.HEADER_COPY.stays)+" ")]):t._e()],1),a("div",{style:{maxWidth:t.maxWidth+"px",width:"100%"},attrs:{id:"desktop-stays__tabs"}},[a("Tabs",{attrs:{sliderColor:t.STYLE_CONFIG.highlightColor,titleColor:t.STYLE_CONFIG.mainTextColor,styles:{padding:"5px 0"}}},[a("Tab",{attrs:{title:"Upcoming"}},[0===t.upcoming.length?a("EmptyState",{attrs:{id:"stay-list-desktop__upcoming-empty-state",text:t.EMPTY_STATE_COPY.stays.upcoming,rounded:t.STYLE_CONFIG.roundedCorners},scopedSlots:t._u([{key:"copy",fn:function(){return[a("div",{staticClass:"no-transactions-copy-container"},[a("div",{staticClass:"no-transactions-copy-container__copy"},[t._v(" You have no upcoming reservations. ")]),a("div",[a("span",{staticClass:"no-transactions-copy-container__dynamic-copy",domProps:{innerHTML:t._s(t.EMPTY_STATE_COPY.stays.upcoming)}})])])]},proxy:!0}],null,!1,882197908)}):a("OfferCardGridWrapper",[t._l(t.upcoming,(function(e){return a("OfferCardBookingDesktop",t._b({key:"stay-upcoming-"+e.reservation_number,on:{ctaClick:function(a){t.navToDetail(e.reward_uuid),t.$store.dispatch("eventTracking/TRACK_EVENT",{eventAction:"Click CTA",eventLabel:e.offer_name,elCopy:a.ctaCopy})}}},"OfferCardBookingDesktop",t.getProps(e),!1))})),a("EmptyState",{attrs:{id:"stay-list-desktop__has-transactions-placeholder",rounded:t.STYLE_CONFIG.roundedCorners,styles:{height:"500px"}},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.ctaClickHandler;return[a("div",{staticClass:"has-transaction-placeholder__container"},[a("div",{staticClass:"has-transaction-placeholder__copy"},[t._v(" "+t._s(t.upcomingPlaceholderCopy)+" ")]),a("div",{staticClass:"has-transaction-placeholder__cta",on:{click:function(t){return o()}}},[a("span",{staticClass:"has-transaction-placeholder__cta-copy",style:{color:t.STYLE_CONFIG.highlightColor}},[t._v(" Book Now ")]),a("svg",{staticClass:"has-transaction-placeholder__caret",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",viewBox:"0 0 8 12",fill:"none"}},[a("path",{staticClass:"has-transaction-placeholder__caret__path",attrs:{d:"M0.260673 0.264139C0.0867133 0.433317 -0.0110121 0.662742 -0.0110121 0.901961C-0.0110121 1.14118 0.0867133 1.37061 0.260673 1.53978L4.85393 6.00545L0.260673 10.4711C0.0916435 10.6413 -0.00188668 10.8691 0.000227615 11.1057C0.00234191 11.3422 0.0999309 11.5685 0.271977 11.7358C0.444022 11.903 0.676759 11.9979 0.920059 12C1.16336 12.002 1.39776 11.9111 1.57277 11.7468L6.82206 6.64327C6.99602 6.47409 7.09375 6.24467 7.09375 6.00545C7.09375 5.76623 6.99602 5.5368 6.82206 5.36762L1.57277 0.264139C1.39875 0.0950108 1.16277 5.43587e-08 0.916719 5.66138e-08C0.670666 5.8869e-08 0.434686 0.0950108 0.260673 0.264139Z",fill:t.STYLE_CONFIG.highlightColor}})])])])]}}],null,!1,3517666274)})],2)],1),a("Tab",{attrs:{title:"Past"}},[0===t.past.length?a("EmptyState",{attrs:{id:"stay-list-desktop__past-empty-state",text:t.EMPTY_STATE_COPY.stays.past,rounded:t.STYLE_CONFIG.roundedCorners}}):a("OfferCardGridWrapper",t._l(t.past,(function(e){return a("OfferCardBookingDesktop",t._b({key:"stay-past-"+e.reservation_number,on:{ctaClick:function(a){t.navToDetail(e.reward_uuid),t.$store.dispatch("eventTracking/TRACK_EVENT",{eventAction:"Click CTA",eventLabel:e.offer_name,elCopy:a.ctaCopy})}}},"OfferCardBookingDesktop",t.getProps(e),!1))})),1)],1),a("Tab",{attrs:{title:"Cancelled"}},[0===t.cancelled.length?a("EmptyState",{attrs:{id:"stay-list-desktop__cancelled-empty-state",text:t.EMPTY_STATE_COPY.stays.cancelled,rounded:t.STYLE_CONFIG.roundedCorners}}):a("OfferCardGridWrapper",t._l(t.cancelled,(function(e){return a("OfferCardBookingDesktop",t._b({key:"stay-cancelled-"+e.reservation_number},"OfferCardBookingDesktop",t.getProps(e),!1))})),1)],1)],1)],1)],1):t._e()],1)},r=[],n=(a("99af"),a("ade3")),s=(a("96cf"),a("1da1")),i=a("5530"),c=a("2b0e"),d=a("2f62"),l=a("a469"),u=a("41b3"),f=a("c1df"),p=a.n(f),_=a("fa6b"),C=a("d9bc"),h=a("d7b6"),m=a("1295"),g=a("b344a"),y=a("8f12"),k=a("cf43"),v=a("ba74"),b=a("1be2"),T=a("d090"),O=c["default"],S=O.extend({name:"StayListDesktop",components:{ConnectedProfileCompletion:C["a"],EmptyState:g["a"],Tab:m["a"],Tabs:h["a"],OfferCardBookingDesktop:k["a"],OfferCardGridWrapper:v["a"],ConnectedMilestoneNotificationBar:T["a"]},props:{isStaff:{type:Boolean,required:!0},showHeader:{type:Boolean,required:!0},profileProgressBar:{type:Boolean,required:!0}},data:function(){return{maxWidth:y["c"],show:!1,refLabels:{mobileHeader:"mobile-header",selectPrts:"select-prts",tagline:"tagline",header:"stays-header",subheader:"stays-subheader"},copy:{transactionId:"Transaction ID:",checkIn:"Check In",availableNow:"Available Now",makeSelection:"Make your Selection",availableOn:"Available on",selectBy:"Select by",notEligible:"Not Eligible",pastStay:"Expired",prtSelectionPeriodPassed:"Sorry, your selection period has passed",prtMakeSelection:"Please make your selection by",noExpiry:"Never Expires",expiresOn:"Expires on",availableSoon:"Available Soon",transactionIsFarOut:"You may select ".concat(this.$store.getters.PRT.plural," within 30 days of your arrival.\n          This booking is a little too far in advance to select your ").concat(this.$store.getters.PRT.plural," at this time.\n          Don’t worry, we’ll send you an email reminder once your ").concat(this.$store.getters.PRT.plural," are ready."),seeTermsForExpiration:"See terms for expiration"},TRANSACTIONS_HEIGHT_STYLE:_["d"]}},computed:Object(i["a"])({},Object(d["c"])([l["jb"],l["kb"],l["Y"],l["m"],l["C"],l["h"]]),{},Object(d["c"])("account",[b["a"]]),{},Object(d["c"])("transactions",["HAS_STAYS_TRANSACTIONS"]),{},Object(d["e"])(["mobile"]),{},Object(d["e"])("transactions",["upcoming","past","cancelled","activeRewardOffers","expiredRewaredOffers"]),{configs:function(){var t=p()().format("YYYY-MM-DD");return{upcoming:{mutation:"SET_UPCOMING",filter:{checkout_date__gte:t,cancelled:!1},type:"ho"},past:{mutation:"SET_PAST",filter:{checkout_date__lte:t,cancelled:!1},type:"ho"},cancelled:{mutation:"SET_CANCELLED",filter:{cancelled:!0},type:"ho"}}},tagline:function(){return this.$store.getters.COPY_CONFIG.tagline},selectionTextWidth:function(){var t={};return this.STYLE_CONFIG.transactionStatusTagColor||(t={width:"90px",left:"5px"}),t},upcomingPlaceholderCopy:function(){return this[l["h"]].hasTransactionsPlaceholder||"Ready to book another stay?"}}),created:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.show=!1,a=t.$route.params.guestUuid,e.next=4,t.FETCH_TRANSACTIONS_V2({guestUuid:a,config:t.configs.upcoming});case 4:t.show=!0,t.FETCH_TRANSACTIONS_V2({guestUuid:a,config:t.configs.past}),t.FETCH_TRANSACTIONS_V2({guestUuid:a,config:t.configs.cancelled});case 7:case"end":return e.stop()}}),e)})))()},beforeRouteUpdate:function(t,e,a){var o=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=o.$route.params.guestUuid,t.next=3,o.FETCH_TRANSACTIONS_V2({guestUuid:e,config:o.configs.upcoming});case 3:return t.next=5,o.FETCH_TRANSACTIONS_V2({guestUuid:e,config:o.configs.past});case 5:return t.next=7,o.FETCH_TRANSACTIONS_V2({guestUuid:e,config:o.configs.cancelled});case 7:a();case 8:case"end":return t.stop()}}),t)})))()},methods:Object(i["a"])({},Object(d["b"])("transactions",[u["i"]]),{navToDetail:function(t){var e=this.isStaff?"v2-staff-view-guest-offer-detail-stay":"v2-guest-offer-detail-stay",a="transactionUuid";this.$router.push({name:e,params:Object(n["a"])({},a,t)})},getProps:function(t){return{selectedRewards:t.selected_rewards,image:t.mobile_banner_image||t.banner_image,name:t.client_name,checkin:t.checkin_date,checkout:t.checkout_date,status:t.offer_simple_status,isFarOut:t.is_far_out,reservationNumber:t.reservation_number,ctaBackgroundColor:this.STYLE_CONFIG.buttonBackgroundColor,ctaTextColor:this.STYLE_CONFIG.buttonTextColor,rounded:this.STYLE_CONFIG.roundedCorners,prt:this.PRT.plural,dispatchDate:t.dispatch_date}}})}),w=S,Y=(a("091a"),a("2877")),E=a("6544"),x=a.n(E),N=a("62ad"),D=a("a523"),I=a("0fd9"),F=Object(Y["a"])(w,o,r,!1,null,"480a8a5f",null);e["default"]=F.exports;x()(F,{VCol:N["a"],VContainer:D["a"],VRow:I["a"]})},"61e4":function(t,e,a){"use strict";var o=a("21cb"),r=a.n(o);r.a},"63fe":function(t,e,a){},6874:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"offer-card-booking-desktop-details__date-container"},[a("div",{staticClass:"offer-card-booking-desktop-details__checkin"},[a("div",{staticClass:"offer-card-booking-desktop-details__month"},[t._v(" "+t._s(t.formattedCheckin.month)+" ")]),a("div",{staticClass:"offer-card-booking-desktop-details__day"},[t._v(t._s(t.formattedCheckin.day))]),a("div",{staticClass:"offer-card-booking-desktop-details__year"},[t._v(" "+t._s(t.formattedCheckin.year)+" ")])]),a("div",{staticClass:"offer-card-booking-desktop-details__line"}),a("div",{staticClass:"offer-card-booking-desktop-details_checkout"},[a("div",{staticClass:"offer-card-booking-desktop-details__month"},[t._v(" "+t._s(t.formattedCheckout.month)+" ")]),a("div",{staticClass:"offer-card-booking-desktop-details__day"},[t._v(" "+t._s(t.formattedCheckout.day)+" ")]),a("div",{staticClass:"offer-card-booking-desktop-details__year"},[t._v(" "+t._s(t.formattedCheckout.year)+" ")])])])},r=[],n=a("2b0e"),s=a("c1df"),i=a.n(s),c=n["default"].extend({name:"OfferCardBookingDates",props:{checkin:{type:String,required:!0,default:""},checkout:{type:String,required:!0,default:""}},computed:{formattedCheckin:function(){return this.format(this.checkin)},formattedCheckout:function(){return this.format(this.checkout)}},methods:{format:function(t){var e=i()(t,"YYYY-MM-DD");return{month:e.format("MMM"),day:e.format("D"),year:e.format("YYYY")}}}}),d=c,l=(a("0b06"),a("2877")),u=Object(l["a"])(d,o,r,!1,null,"4e57320c",null);e["a"]=u.exports},"7d05":function(t,e,a){},8988:function(t,e,a){},c673:function(t,e,a){"use strict";var o=a("63fe"),r=a.n(o);r.a},cf43:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("OfferCardDesktop",{attrs:{previewMode:t.previewMode,active:t.isActive(t.showIsFarOut,t.status),ctaCopy:t.ctaCopy(t.isFarOut,t.prt,t.status,t.selectedRewards.length),image:t.image,ctaBackgroundColor:t.ctaBackgroundColor,ctaTextColor:t.ctaTextColor,rounded:t.rounded,prt:t.prt},on:{ctaClick:function(e){t.$emit("ctaClick",{ctaCopy:t.ctaCopy(t.isFarOut,t.prt,t.status,t.selectedRewards.length)})}},scopedSlots:t._u([{key:"info",fn:function(){return[a("OfferCardBookingDesktopDetails",{attrs:{checkin:t.checkin,checkout:t.checkout,reservationNumber:t.reservationNumber,name:t.name}})]},proxy:!0},{key:"rewardsContainer",fn:function(){return[t.showRewards(t.showIsFarOut,t.selectedRewards.length,t.status)?a("OfferSelectedRewards",{attrs:{rewards:t.selectedRewards,dispatchDate:t.dispatchDate,offerStatus:t.status,color:t.ctaBackgroundColor,rounded:t.rounded}}):a("div",{staticClass:"offer-card-booking-desktop__info"},[t._v(" "+t._s(t.infoCopy(t.showIsFarOut,t.prt,t.name,t.status,t.dispatchDate))+" ")])]},proxy:!0}])})},r=[],n=(a("caad"),a("2b0e")),s=a("f619"),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"offer-card-booking-desktop-details"},[a("div",{staticClass:"offer-card-booking-desktop-details__name-container"},[a("div",{staticClass:"offer-card-booking-desktop-details__name"},[t._v(" "+t._s(t.maxChar(t.name,50))+" ")]),a("div",{staticClass:"offer-card-booking-desktop-details__reservation-number"},[t._v(" "+t._s(t.maxChar(t.reservationNumber,70))+" ")])]),a("OfferCardBookingDates",{attrs:{checkin:t.dates.checkin.full,checkout:t.dates.checkout.full}})],1)},c=[],d=a("c1df"),l=a.n(d),u=a("d257"),f=a("6874"),p=n["default"].extend({name:"OfferCardBookingDesktopDetails",components:{OfferCardBookingDates:f["a"]},props:{name:{type:String,required:!0,default:""},reservationNumber:{type:String,required:!0,default:""},checkin:{type:String,required:!0,default:""},checkout:{type:String,required:!0,default:""}},computed:{dates:function(){var t=l()(this.checkin,"YYYY-MM-DD"),e=l()(this.checkout,"YYYY-MM-DD");return{checkin:{full:t.format("YYYY-MM-DD"),month:t.format("MMM"),day:t.format("D"),year:t.format("YYYY")},checkout:{full:e.format("YYYY-MM-DD"),month:e.format("MMM"),day:e.format("D"),year:e.format("YYYY")}}}},methods:{maxChar:u["a"]}}),_=p,C=(a("3b03"),a("2877")),h=Object(C["a"])(_,i,c,!1,null,"11cb60f8",null),m=h.exports,g=a("7720"),y=a("e02a"),k=n["default"].extend({name:"OfferCardBookingDesktop",components:{OfferCardDesktop:s["a"],OfferCardBookingDesktopDetails:m,OfferSelectedRewards:g["a"]},props:{previewMode:{type:Boolean,required:!1,default:!1},name:{type:String,required:!0},reservationNumber:{type:String,required:!0},checkin:{type:String,required:!0},checkout:{type:String,required:!0},image:{type:String,required:!1},ctaBackgroundColor:{type:String,required:!1},ctaTextColor:{type:String,required:!1},rounded:{type:Boolean,required:!1},status:{type:String,required:!0,default:void 0},isFarOut:{type:Boolean,required:!0,default:!1},prt:{type:String,required:!0,default:"rewards"},selectedRewards:{type:Array,required:!0,default:function(){return[]}},dispatchDate:{type:String,required:!1,default:""}},computed:{showIsFarOut:function(){return!!["can_display","can_redeem"].includes(this.status)&&this.isFarOut}},methods:{infoCopy:y["d"],isActive:y["e"],showRewards:y["r"],ctaCopy:y["a"]}}),v=k,b=(a("61e4"),Object(C["a"])(v,o,r,!1,null,"0e421f6d",null));e["a"]=b.exports},d090:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.COMPONENT_CONFIG.showMilestoneBanner?a("div",{staticClass:"connected-milestone-notification-bar__container"},[a("NotificationBar",{attrs:{accentColor:t.STYLE_CONFIG.highlightColor,rounded:t.STYLE_CONFIG.roundedCorners},scopedSlots:t._u([{key:"content",fn:function(){return[a("div",{staticClass:"milestone-notification-bar__content-container",style:{color:t.STYLE_CONFIG.mainTextColor}},[a("div",{staticClass:"milestone-notification-bar__title"},[t._v(" Explore Your Milestones ")]),a("div",{staticClass:"milestone-notification-bar__body"},[t._v(" Milestones are rewards we offer as a token of thanks, explore the exclusive milestones available to you! ")])])]},proxy:!0}],null,!1,1842465720)},[a("div",{staticClass:"milestone-notification-bar__cta-container",style:{color:t.STYLE_CONFIG.highlightColor},attrs:{slot:"cta"},on:{click:function(e){return t.handleCtaClick()}},slot:"cta"},[a("span",{staticClass:"milestone-notification-bar__cta-copy"},[t._v("View Milestones")]),a("svg",{staticClass:"milestone-notification-bar__cta-caret",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 8 12",fill:"none"}},[a("path",{staticClass:"milestone-notification-bar__cta-caret__path",attrs:{d:"M0.276298 0.264139C0.102338 0.433317 0.00461293 0.662742 0.00461294 0.901961C0.00461294 1.14118 0.102338 1.37061 0.276298 1.53978L4.86955 6.00545L0.276298 10.4711C0.107268 10.6413 0.0137383 10.8691 0.0158526 11.1057C0.0179669 11.3422 0.115556 11.5685 0.287602 11.7358C0.459647 11.903 0.692384 11.9979 0.935684 12C1.17898 12.002 1.41338 11.9111 1.58839 11.7468L6.83769 6.64327C7.01165 6.47409 7.10938 6.24467 7.10938 6.00545C7.10938 5.76623 7.01165 5.5368 6.83769 5.36762L1.58839 0.264139C1.41438 0.0950108 1.1784 5.43587e-08 0.932344 5.66138e-08C0.686291 5.8869e-08 0.450311 0.0950108 0.276298 0.264139Z",fill:t.STYLE_CONFIG.highlightColor}})])])])],1):t._e()},r=[],n=a("5530"),s=a("2b0e"),i=a("2f62"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"notification-bar__container",style:Object.assign({},{borderRadius:t.rounded?"3px 10px 10px 3px":"0px"},t.styles,{"--accent-color":t.accentColor})},[a("div",{staticClass:"notification-bar__accent",style:{borderRadius:t.rounded?"9px":"0px"}}),a("div",{staticClass:"notification-bar__content-container"},[a("div",{staticClass:"notification-bar__content"},[t._t("content")],2)]),a("div",{staticClass:"notification-bar__cta-container"},[t._t("cta")],2)])},d=[],l=s["default"].extend({name:"NotificationBar",props:{accentColor:{type:String,required:!0,default:"#000000"},rounded:{type:Boolean,required:!0,default:!0},styles:{type:Object,required:!1,default:function(){return{}}}}}),u=l,f=(a("d4ed"),a("2877")),p=Object(f["a"])(u,c,d,!1,null,null,null),_=p.exports,C=s["default"].extend({name:"ConnectedMilestoneNotificationBar",components:{NotificationBar:_},computed:Object(n["a"])({},Object(i["c"])(["STYLE_CONFIG","IS_STAFF","COMPONENT_CONFIG"])),methods:{handleCtaClick:function(){this.$router.push({name:this.IS_STAFF?"v2-staff-view-guest-milestones":"v2-guest-milestones",query:this.$route.query})}}}),h=C,m=(a("c673"),Object(f["a"])(h,o,r,!1,null,"cda3b63e",null));e["a"]=m.exports},d4ed:function(t,e,a){"use strict";var o=a("1bf6"),r=a.n(o);r.a}}]);
//# sourceMappingURL=chunk-273ab1da.383de29b.js.map