1import{P as O}from"./DPaXGWB2.js";import{a as T,u as V}from"./BsUEB843.js";import{P as M}from"./BAQ9qPtI.js";import{d as D,a1 as R,af as g,o as s,k as a,G as l,A as o,j as r,i as y,Z as h,x as u,Q as B,ay as L,aE as N,M as m,D as p,C as d,a2 as q,aY as j,$ as Z,Y as _,N as $,aq as E,ar as A,K as F,h as P,_ as z,F as I,a6 as U}from"./5FX1_Lmk.js";import{P as W}from"./2f1Uq-to.js";import{a as Y}from"./Fcsqni5a.js";const G=D({name:"PhoenixProductCardChildPrice",components:{PhoenixPrice:T},props:{childPrice:{type:Object,required:!1,default:()=>{}},childDiscountPrice:{type:Object,required:!1,default:()=>{}},currencyLocale:{type:String,required:!1,default:"en-US"},showDecimalPlaces:{type:Boolean,required:!1,default:!1}},computed:{isValidChildPrice(){return!!(this.childPrice&&this.childPrice?.value>0&&this.childPrice?.currencyCode)},isValidChildDiscountPrice(){return!!(this.isValidChildPrice&&this.childPrice&&this.childDiscountPrice&&this.childDiscountPrice?.value>0&&this.childDiscountPrice?.currencyCode&&this.childDiscountPrice?.value<this.childPrice?.value)}}}),H={key:0,class:"pnx-product-card__child-price","data-cy":"product-card-child-price"},K={key:0,class:"pnx-product-card__label-sr"},Q={key:0,class:"pnx-product-card__now-child-price"};function X(e,i,f,v,w,x){const c=g("PhoenixPrice");return e.isValidChildPrice?(s(),a("div",H,[i[1]||(i[1]=l(" From ",-1)),o("span",{class:h(e.isValidChildDiscountPrice?"pnx-product-card__was-child-price":"pnx-product-card__now-child-price")},[e.isValidChildDiscountPrice?(s(),a("span",K,"Was")):r("",!0),e.childPrice&&e.isValidChildPrice?(s(),y(c,{key:1,class:h({"pnx-text-decoration--line-through":e.isValidChildDiscountPrice}),"data-cy":e.isValidChildDiscountPrice?"product-card-was-child-price":"product-card-now-child-price",value:e.childPrice.value,"currency-code":e.childPrice.currencyCode,"currency-locale":e.currencyLocale,"show-currency-code":!0,"show-decimal-places":e.showDecimalPlaces},null,8,["class","data-cy","value","currency-code","currency-locale","show-decimal-places"])):r("",!0)],2),e.isValidChildDiscountPrice&&e.childDiscountPrice?(s(),a("span",Q,[i[0]||(i[0]=o("span",{class:"pnx-product-card__label-sr"},"Now",-1)),u(c,{"data-cy":"product-card-now-child-price",value:e.childDiscountPrice.value,"currency-code":e.childDiscountPrice.currencyCode,"currency-locale":e.currencyLocale,"show-currency-code":!0,"show-decimal-places":e.showDecimalPlaces},null,8,["value","currency-code","currency-locale","show-decimal-places"])])):r("",!0),i[2]||(i[2]=l(" per child ",-1))])):r("",!0)}const J=R(G,[["render",X]]);L.extend(N);const ee=D({name:"PhoenixProductCardPrice",components:{PhoenixProductCardChildPrice:J,PhoenixPrice:T,PhoenixChip:M,PhoenixIcon:B},props:{price:{type:Object,required:!1,default:()=>({})},discountPrice:{type:Object,required:!1,default:()=>{}},startDate:{type:Date,required:!1,default:()=>{}},showPrice:{type:Boolean,required:!1,default:!1},showDecimalPlaces:{type:Boolean,required:!1,default:!1},childPrice:{type:Object,required:!1,default:()=>{}},childDiscountPrice:{type:Object,required:!1,default:()=>{}},showChildPrice:{type:Boolean,required:!1,default:!1},type:{type:String,default:"default",validator:e=>["default","mini","special","horizontal"].includes(e)},currencyLocale:{type:String,required:!1,default:"en-US"},isProductCardOnCarousel:{type:Boolean,required:!1,default:!1},isREIExclusiveProduct:{type:Boolean,required:!1,default:!1},showSavingAmount:{type:Boolean,required:!1,default:!1},priceDropText:{type:String,required:!1,default:""},saleMessage:{type:String,required:!1,default:""}},emits:["sale-message-action-click"],methods:{formattedDatetime(){return L.utc(this.startDate).format("DD MMM YYYY")},showPriceSection(){return!!(this.showPrice&&this.price&&this.price.value>0&&this.price.currencyCode)},showDiscountPriceSection(){return!!(this.showPriceSection()&&this.discountPrice&&this.discountPrice.value>0&&this.price.value>this.discountPrice.value&&this.discountPrice.currencyCode)},showExclusivePriceSection(){return this.isREIExclusiveProduct&&this.showPriceSection()},onSaleMessageActionClick(){this.$emit("sale-message-action-click",event)}},computed:{memberPrice(){return this.price?.value?this.price.value*.85:0},campaignMessage(){if(this.price?.value&&this.discountPrice?.value){const e=new Intl.NumberFormat(this.currencyLocale,{style:"currency",currency:this.price.currencyCode,currencyDisplay:"symbol",minimumFractionDigits:0,maximumFractionDigits:0}),i=Math.trunc(this.price.value-this.discountPrice.value);return i<=0?void 0:`Save up to ${this.price.currencyCode} ${e.format(i).replace(/[A-Z]/g,"")}**`}}}}),ie=["data-optimizely"],se={key:0,class:"pnx-product-card__campaign-message"},ae={key:1,class:"pnx-product-card__price-drop","data-optimizely":"fluid-price-indicator"},re={key:2},te={key:1,class:"pnx-product-card__price-drop","data-optimizely":"fluid-price-indicator"},oe={key:4,class:"pnx-product-card__price-message","data-cy":"product-card-price-message"};function ne(e,i,f,v,w,x){const c=g("PhoenixPrice"),n=g("PhoenixChip"),b=g("PhoenixIcon"),C=g("PhoenixProductCardChildPrice");return s(),a("div",{class:"pnx-product-card__prices","data-cy":"product-card-prices","data-optimizely":e.priceDropText?"fluid-price-indicators-available":""},[e.showExclusivePriceSection()?(s(),a(m,{key:0},[o("div",null,[i[1]||(i[1]=o("span",{class:"pnx-product-card__exclusive-price-text"},"From ",-1)),u(c,{class:"pnx-product-card__price pnx-product-card__exclusive-price-text","data-cy":"product-card-members-price",value:e.memberPrice,"currency-code":e.price.currencyCode,"currency-locale":e.currencyLocale,"show-currency-code":!0,"show-decimal-places":e.showDecimalPlaces},null,8,["value","currency-code","currency-locale","show-decimal-places"]),i[2]||(i[2]=o("span",{class:"pnx-product-card__price pnx-display--inline pnx-product-card__exclusive-price-text"},"Members",-1))]),o("div",null,[i[3]||(i[3]=l(" From ",-1)),u(c,{"data-cy":"product-card-non-members-price",value:e.price.value,"currency-code":e.price.currencyCode,"currency-locale":e.currencyLocale,"show-currency-code":!0,"show-decimal-places":e.showDecimalPlaces},null,8,["value","currency-code","currency-locale","show-decimal-places"]),i[4]||(i[4]=l(" Non-members ",-1))])],64)):e.showDiscountPriceSection()?(s(),a(m,{key:1},[e.showSavingAmount&&e.campaignMessage?(s(),a("div",se,[u(n,{class:"pnx-chip--sale-secondary"},{default:p(()=>[l(d(e.campaignMessage),1)]),_:1})])):e.priceDropText?(s(),a("div",ae,[u(b,{name:"trending-down",class:"pnx-product-card__price-drop-icon"}),l(" "+d(e.priceDropText),1)])):r("",!0),i[5]||(i[5]=o("span",{class:"pnx-product-card__from-price"},"From ",-1)),i[6]||(i[6]=o("span",{class:"pnx-product-card__label-sr"},"Was",-1)),u(c,{class:"pnx-product-card__was-price","data-cy":"product-card-was-price",value:e.price.value,"currency-code":e.price.currencyCode,"currency-locale":e.currencyLocale,"show-currency-code":!0,"show-decimal-places":e.showDecimalPlaces},null,8,["value","currency-code","currency-locale","show-decimal-places"]),i[7]||(i[7]=o("span",{class:"pnx-product-card__label-sr"},"Now",-1)),e.type=="special"?(s(),a("span",re,"Â ")):r("",!0),e.discountPrice?(s(),y(c,{key:3,class:"pnx-product-card__price","data-cy":"product-card-price",value:e.discountPrice.value,"currency-code":e.discountPrice.currencyCode,"currency-locale":e.currencyLocale,"show-currency-code":!0,"show-decimal-places":e.showDecimalPlaces},null,8,["value","currency-code","currency-locale","show-decimal-places"])):r("",!0),e.showChildPrice?(s(),y(C,{key:4,"child-price":e.childPrice,"child-discount-price":e.childDiscountPrice,"currency-locale":e.currencyLocale,"show-decimal-places":e.showDecimalPlaces},null,8,["child-price","child-discount-price","currency-locale","show-decimal-places"])):r("",!0)],64)):e.showPriceSection()?(s(),a(m,{key:2},[e.saleMessage?(s(),a("button",{key:0,class:"pnx-product-card__sale-message pnx-display--block","data-cy":"pnx-product-card-sale-message",onClick:i[0]||(i[0]=q((...S)=>e.onSaleMessageActionClick&&e.onSaleMessageActionClick(...S),["prevent"]))},d(e.saleMessage),1)):e.priceDropText?(s(),a("div",te,[u(b,{name:"trending-down",class:"pnx-product-card__price-drop-icon"}),l(" "+d(e.priceDropText),1)])):r("",!0),i[8]||(i[8]=l(" From ",-1)),u(c,{class:h(`pnx-product-card__price ${e.isProductCardOnCarousel?"pnx-display--block":""}`),"data-cy":"product-card-price",value:e.price.value,"currency-code":e.price.currencyCode,"currency-locale":e.currencyLocale,"show-currency-code":!0,"show-decimal-places":e.showDecimalPlaces},null,8,["class","value","currency-code","currency-locale","show-decimal-places"]),e.showChildPrice?(s(),y(C,{key:2,"child-price":e.childPrice,"child-discount-price":e.childDiscountPrice,"currency-locale":e.currencyLocale,"show-decimal-places":e.showDecimalPlaces},null,8,["child-price","child-discount-price","currency-locale","show-decimal-places"])):r("",!0)],64)):(s(),a(m,{key:3},[i[9]||(i[9]=l(" Price ",-1)),i[10]||(i[10]=o("div",{class:"pnx-product-card__price-contact-us"},"Contact us",-1))],64)),e.showPriceSection()&&e.startDate||!e.showPriceSection()?(s(),a("div",oe,[e.showPriceSection()&&e.startDate?(s(),a(m,{key:0},[l(" Lowest price "+d(e.formattedDatetime()),1)],64)):r("",!0),e.showPriceSection()?r("",!0):(s(),a(m,{key:1},[l(" Prices are currently unavailable ")],64))])):r("",!0)],8,ie)}const ce=R(ee,[["render",ne]]);L.extend(N);const le=5,de=D({name:"PhoenixProductCard",components:{PhoenixCard:O,PhoenixChip:M,PhoenixRating:W,PhoenixIcon:B,PhoenixProductCardPrice:ce},props:{name:{type:String,required:!1,default:null},code:{type:String,required:!1,default:null},duration:{type:Number,required:!1,default:null},styles:{type:Array,required:!1,default:()=>[]},themes:{type:Array,required:!1,default:()=>[]},destinations:{type:Array,required:!1,default:null},price:{type:Object,required:!1,default:()=>({})},discountPrice:{type:Object,required:!1,default:()=>{}},startDate:{type:Date,required:!1,default:()=>{}},url:{type:String,required:!1,default:null},map:{type:Object,required:!1,default:()=>({})},showPrice:{type:Boolean,required:!1,default:!1},childPrice:{type:Object,required:!1,default:()=>{}},childDiscountPrice:{type:Object,required:!1,default:()=>{}},showChildPrice:{type:Boolean,required:!1,default:!1},showDecimalPlaces:{type:Boolean,required:!1,default:!1},type:{type:String,default:"default",validator:e=>["default","mini","special","horizontal","horizontal-extended"].includes(e)},routerLink:{type:Boolean,required:!1,default:!1},currencyLocale:{type:String,required:!1,default:"en-US"},physicalRating:{type:Number,required:!1,default:void 0},reviewRating:{type:Number,required:!1,default:void 0},reviewCount:{type:Number,required:!1,default:void 0},isProductCardOnCarousel:{type:Boolean,required:!1,default:!1},carouselView:{type:Boolean,default:!1},images:{type:Array,default:function(){return[]}},imageLimit:{type:Number,default:4},carouselStartIndex:{type:Number,required:!1,default:0},analyticsInfo:{type:Object,required:!1,default:void 0},highlightText:{type:String,required:!1,default:""},reduceChildrenPadding:{type:Boolean,default:!1},isNew:{type:Boolean,required:!1,default:!1},campaignName:{type:String,required:!1,default:""},saleMessage:{type:String,required:!1,default:""},isREIExclusiveProduct:{type:Boolean,required:!1,default:!1},deposit:{type:Object,required:!1,default:()=>{}},premium:{type:Boolean,required:!1,default:!1},isREIRecommendedProduct:{type:Boolean,required:!1,default:!1},showInclusions:{type:Boolean,required:!1,default:!1},inclusions:{type:Object,required:!1,default:()=>{}},collapsibleInclusions:{type:Boolean,required:!1,default:!1},inclusionsExpandedByDefault:{type:Boolean,required:!1,default:!0},inclusionsExpanded:{type:Boolean,required:!1,default:null},showSavingAmount:{type:Boolean,required:!1,default:!1},priceDropText:{type:String,required:!1,default:""}},emits:["update:inclusionsExpanded","sale-message-action-click"],setup(){return{inclusionsListId:j()}},data(){return{internalInclusionsExpanded:this.inclusionsExpandedByDefault}},watch:{inclusionsExpanded(e){e!==null&&e!==this.internalInclusionsExpanded&&(this.internalInclusionsExpanded=e)}},computed:{stylesThemesList(){const e=[];return this.premium?e.push({icon:"workspace-premium",value:"Premium"}):this.styles&&Array.isArray(this.styles)&&e.push(...this.styles),this.themes&&Array.isArray(this.themes)&&(this.t
1ype==="default"||this.type==="horizontal"||this.type==="horizontal-extended")&&e.push(...this.themes),e},getProductCardClasses(){return[this.premium?"pnx-product-card--dark":"pnx-product-card",this.type==="horizontal-extended"?"pnx-product-card--horizontal-extended":""].filter(Boolean).join(" ")},newChipClasses(){let e="pnx-chip--small pnx-chip--no-interaction pnx-product-card__body-chip-text pnx-color--primary-white";return this.premium?e+=" pnx-chip--premium-tertiary":e+=" pnx-background-color--grey-stronger",e},durationsText(){return this.duration?`${this.duration} day${this.duration>1?"s":""} ${this.destinationText?" · ":""}`:""},destinationText(){if(!this.destinations||this.destinations.length<=0)return"";const[e,i,...f]=this.destinations,v=i?`, ${i}`:"",w=f.length>0?` +${f.length}`:"";return`${e}${v}${w}`},roundedReviewRatingValue(){if(this.reviewRating)return Number(this.reviewRating.toFixed(1))},formattedReviewRatingCountText(){return this.roundedReviewRatingValue?this.reviewCount?`(${this.reviewCount.toLocaleString()})`:void 0:"No reviews yet"},shouldShowSavingAmount(){return this.showSavingAmount&&!this.highlightText},showChildPriceSection(){const e=Array.isArray(this.themes)&&this.themes.some(i=>i.value?.toLowerCase()==="family");return!!((this.type==="default"||this.type==="horizontal"||this.type==="horizontal-extended")&&e&&this.showChildPrice&&this.childPrice&&this.childPrice.value>0&&this.childPrice.currencyCode)},depositAmountText(){if(!this.deposit||this.deposit.value<0||!this.deposit.currencyCode)return;const{formattedValue:e}=V({value:this.deposit.value,currencyCode:this.deposit.currencyCode,currencyLocale:this.currencyLocale,showDecimalPlaces:!1,showCurrencyCode:!0});return e.value?`${this.deposit.currencyCode} ${e.value}`:void 0},shouldShowInclusions(){return this.showInclusions},inclusionItems(){if(!this.inclusions)return[];const e=[];if(typeof this.inclusions.activities=="string"?e.push({text:this.inclusions.activities,isZeroMeals:!1,isZeroActivities:!1}):typeof this.inclusions.activities=="number"&&this.inclusions.activities>=0&&e.push({text:`${this.inclusions.activities} activities`,isZeroMeals:!1,isZeroActivities:this.inclusions.activities===0}),typeof this.inclusions.meals=="number"&&this.inclusions.meals>=0){const i=this.inclusions.meals===1?"meal":"meals";e.push({text:`${this.inclusions.meals} ${i}`,isZeroMeals:this.inclusions.meals===0,isZeroActivities:!1})}return Array.isArray(this.inclusions.other)&&this.inclusions.other.length&&e.push(...this.inclusions.other.map(i=>({text:i,isZeroMeals:!1,isZeroActivities:!1}))),e},visibleInclusionItems(){return this.inclusionItems.slice(0,le)},effectiveInclusionsExpanded(){return this.inclusionsExpanded??this.internalInclusionsExpanded},badgeText(){return this.isREIRecommendedProduct?"REI Recommended":this.isNew?"New":void 0},priceDropMessage(){return this.type!=="special"&&!this.highlightText?this.priceDropText:""}},methods:{depositAriaLabel(e){return this.depositAmountText?`${e} low deposit ${this.depositAmountText}`:void 0},toggleInclusions(){const e=!this.effectiveInclusionsExpanded;this.internalInclusionsExpanded=e,this.$emit("update:inclusionsExpanded",e)},getPremiumChipClass(e){let i="pnx-chip--small pnx-chip--no-interaction";return e&&e.value==="Premium"&&this.premium?(i+=" pnx-chip--premium-primary",i):(this.premium&&(i+=" pnx-chip--premium-tertiary"),i)}}}),ue={class:"pnx-heading-3 pnx-color--primary-white pnx-padding-x--xs pnx-font-weight--semibold pnx-product-card__highlight-text"},pe={class:"pnx-product-card__campaign-name","data-at":"card-campaign-chips"},he={class:"pnx-display--flex pnx-flex-wrap--wrap pnx-align-items--center pnx-justify-content--space-between pnx-gap--xxs"},ye={key:0},me=["aria-label"],fe={class:"pnx-product-card__review-rating-star"},ge={key:0,class:"pnx-product-card__review-rating-text","aria-hidden":"true"},ve={class:"pnx-product-card__review-count"},Pe={class:"pnx-display--flex pnx-justify-content--space-between pnx-gap--xs","data-cy":"product-card-header-title"},we={class:"pnx-product-card__code","data-cy":"product-card-code"},xe={key:1,class:"pnx-product-card__content"},be={class:"pnx-product-card__body"},Ce={key:0},ke={key:1,class:"pnx-product-card__styles-themes","data-cy":"product-card-styles-themes"},_e={class:"pnx-product-card__body-chip-text"},De={class:"pnx-product-card__body-chip-text"},Se={class:"pnx-product-card__18to35s-low-deposit-amount pnx-font-weight--semibold"},$e={key:0,class:"pnx-product-card__styles-themes-item"},ze={key:2,class:"pnx-product-card__physical-rating"},Ie={key:3,class:"pnx-product-card__inclusions-section"},qe=["aria-expanded","aria-controls","data-at"],Re={key:1,class:"pnx-product-card__inclusions"},Le=["id"],Ee={class:"pnx-product-card__horizontal-left"},Ae={key:0,class:"pnx-product-card__inclusions-section pnx-product-card__inclusions-section--horizontal"},Te=["aria-expanded","aria-controls","data-at"],Me={key:1,class:"pnx-product-card__inclusions"},Be=["id"],Ne={class:"pnx-product-card__price-panel pnx-product-card__price-panel--horizontal"},Oe={key:0,class:"pnx-product-card__code pnx-product-card__code--horizontal-bottom","data-cy":"product-card-code-bottom"},Ve={key:2,class:"pnx-product-card__compare-button pnx-product-card__compare-button--horizontal pnx-display--block pnx-md:width--75 pnx-lg:width--50","data-cy":"product-card__compare-button"},je={class:"pnx-product-card__bottom pnx-product-card__bottom-price","data-cy":"product-card__bottom"},Ze={key:0,class:"pnx-product-card__code","data-cy":"product-card-code"},Fe={key:0,class:"pnx-product-card__compare-button","data-cy":"product-card__compare-button"};function Ue(e,i,f,v,w,x){const c=g("PhoenixChip"),n=g("PhoenixIcon"),b=g("PhoenixRating"),C=g("PhoenixProductCardPrice"),S=g("PhoenixCard");return s(),y(S,{class:h(e.getProductCardClasses),href:e.url,image:e.map,"card-layout":e.type==="horizontal"||e.type==="horizontal-extended"?"horizontal-inset":"default","router-link":e.routerLink,"carousel-view":e.carouselView,"additional-images":e.images,"image-limit":e.imageLimit,"carousel-start-index":e.carouselStartIndex,"analytics-info":e.anal
1yticsInfo?.card,"reduce-children-padding":e.reduceChildrenPadding,"data-at":e.type==="horizontal"?e.analyticsInfo?.card?.layout?.horizontal:e.analyticsInfo?.card?.layout?.default,premium:e.premium,"invisible-separator":!0},Z({label:p(()=>[o("div",he,[e.type==="special"?(s(),a("div",ye,d(e.durationsText),1)):r("",!0),e.type==="default"||e.type==="horizontal"||e.type==="mini"||e.type==="horizontal-extended"?(s(),a("figure",{key:1,class:"pnx-product-card__review-rating","data-cy":"product-card-review-rating","aria-label":e.roundedReviewRatingValue?e.roundedReviewRatingValue+" star rating":"No reviews yet"},[o("span",fe,[u(n,{"aria-hidden":"true",class:h(["pnx-icon--inline",e.roundedReviewRatingValue?"pnx-icon--warning":"pnx-icon--grey"]),name:"star"},null,8,["class"])]),e.roundedReviewRatingValue?(s(),a("span",ge,d(e.roundedReviewRatingValue),1)):r("",!0),o("span",ve,d(e.formattedReviewRatingCountText),1)],8,me)):r("",!0),e.badgeText?(s(),y(c,{key:2,class:h(e.newChipClasses),role:"presentation","data-cy":"product-card-badge"},{default:p(()=>[l(d(e.badgeText),1)]),_:1},8,["class"])):r("",!0)])]),heading:p(()=>[o("div",Pe,[o("div",{class:h(["pnx-margin-top--0 pnx-margin-bottom--0 headline--5 pnx-product-card__header-title",{"pnx-product-card__header-title--horizontal":e.type==="horizontal"||e.type==="horizontal-extended"}])},d(e.name),3)])]),headerUtility:p(()=>[_(e.$slots,"headerUtility")]),content:p(()=>[e.type==="special"?(s(),a(m,{key:0},[e.premium?(s(),y(c,{key:0,class:"pnx-chip--small pnx-chip--no-interaction pnx-chip--premium-primary","icon-class":"pnx-product-card__styles-themes-icon pnx-icon--size-1",icon:"workspace-premium"},{default:p(()=>[...i[4]||(i[4]=[l(" Premium ",-1)])]),_:1})):r("",!0)],64)):(s(),a("div",xe,[o("div",be,[e.durationsText||e.destinationText||e.type==="horizontal-extended"&&e.code?(s(),a("div",{key:0,class:h(["pnx-product-card__details",{"pnx-product-card__details--horizontal":e.type==="horizontal"||e.type==="horizontal-extended","pnx-display--flex":e.type==="horizontal-extended"}]),"data-cy":"product-card__details"},[e.type==="horizontal-extended"?(s(),a("span",Ce,[e.durationsText?(s(),y(n,{key:0,name:"timer",class:"pnx-product-card__details-item-icon"})):r("",!0),l(" "+d(e.durationsText)+" ",1),e.destinationText?(s(),y(n,{key:1,name:"location-search",class:"pnx-product-card__details-item-icon"})):r("",!0),l(" "+d(e.destinationText),1)])):(s(),a(m,{key:1},[e.durationsText?(s(),y(n,{key:0,name:"timer",class:"pnx-product-card__details-item-icon"})):r("",!0),l(" "+d(e.durationsText)+" ",1),e.destinationText?(s(),y(n,{key:1,name:"location-search",class:"pnx-product-card__details-item-icon"})):r("",!0),l(" "+d(e.destinationText),1)],64))],2)):r("",!0),e.stylesThemesList&&e.stylesThemesList.length>0||e.physicalRating&&(e.type==="horizontal"||e.type==="horizontal-extended")?(s(),a("div",ke,[(s(!0),a(m,null,$(e.stylesThemesList,(t,k)=>(s(),a("div",{class:"pnx-product-card__styles-themes-item",key:k},[t.value?(s(),y(c,{key:0,class:h(e.getPremiumChipClass(t)),"icon-class":"pnx-product-card__styles-themes-icon pnx-icon--size-1",icon:t.icon,"data-optimizely":t.showDeposit?"pnx-product-card__18to35s-default":void 0},{default:p(()=>[o("div",_e,d(t.value),1)]),_:2},1032,["class","icon","data-optimizely"])):r("",!0),t.showDeposit&&e.depositAmountText?(s(),y(c,{key:1,class:"pnx-chip--small pnx-chip--no-interaction pnx-text-primary pnx-product-card__18to35s-low-deposit","icon-class":"pnx-product-card__styles-themes-icon",icon:t.icon,"aria-label":e.depositAriaLabel(t.value),"data-optimizely":"pnx-product-card__18to35s-low-deposit"},{default:p(()=>[o("div",De,[l(d(t.value)+" ⢠Low deposit ",1),o("span",Se,d(e.depositAmountText)+"*",1)])]),_:2},1032,["icon","aria-label"])):r("",!0)]))),128)),e.physicalRating&&(e.type==="horizontal"||e.type==="horizontal-extended")?(s(),a("div",$e,[u(c,{class:h(["pnx-chip--small pnx-chip--no-interaction pnx-product-card__physical-rating pnx-product-card__physical-rating--horizontal",e.getPremiumChipClass()])},{default:p(()=>[i[5]||(i[5]=o("span",{class:"pnx-product-card__body-chip-text pnx-margin-right--0-5"},"Physical rating",-1)),u(b,{rating:e.physicalRating,class:"pnx-product-card__physical-rating-icon",type:"rectangle"},null,8,["rating"])]),_:1},8,["class"])])):r("",!0)])):r("",!0),e.physicalRating&&e.type==="default"?(s(),a("div",ze,[u(c,{class:h(["pnx-chip--small pnx-chip--no-interaction",e.getPremiumChipClass()])},{default:p(()=>[i[6]||(i[6]=o("span",{class:"pnx-product-card__body-chip-text pnx-margin-right--0-5"},"Physical rating",-1)),u(b,{rating:e.physicalRating,class:"pnx-product-card__physical-rating-icon",type:"rectangle"},null,8,["rating"])]),_:1},8,["class"])])):r("",!0),e.type!=="horizontal"&&e.shouldShowInclusions&&e.inclusionItems.length?(s(),a("div",Ie,[e.collapsibleInclusions?(s(),a("button",{key:0,t
1ype:"button",class:"pnx-product-card__inclusions-toggle","aria-expanded":e.effectiveInclusionsExpanded,"aria-controls":e.inclusionsListId,"data-cy":"product-card-inclusions-toggle","data-at":e.analyticsInfo?.inclusionsToggle,onClick:i[0]||(i[0]=q((...t)=>e.toggleInclusions&&e.toggleInclusions(...t),["stop","prevent"]))},[i[7]||(i[7]=o("span",{class:"pnx-product-card__inclusions pnx-product-card__inclusions--clickable"},"What's included",-1)),u(n,{name:"chevron-down",class:h(["pnx-product-card__inclusions-chevron pnx-icon--size-1-5",{"pnx-product-card__inclusions-chevron--expanded":e.effectiveInclusionsExpanded}]),"aria-hidden":"true"},null,8,["class"])],8,qe)):(s(),a("span",Re,"What's included")),E(o("div",{id:e.collapsibleInclusions?e.inclusionsListId:void 0,class:"pnx-margin-top--xxs","data-cy":"product-card-inclusions-list"},[(s(!0),a(m,null,$(e.visibleInclusionItems,(t,k)=>(s(),a("div",{key:`${t.text}-${k}`},[u(n,{name:t.isZeroMeals||t.isZeroActivities?"close":"check",class:h(["pnx-product-card__inclusions-icon",{"pnx-product-card__inclusions-icon--disabled":t.isZeroMeals||t.isZeroActivities}])},null,8,["name","class"]),o("span",{class:h(["pnx-product-card__inclusions-item",{"pnx-product-card__inclusions-item--disabled":t.isZeroMeals||t.isZeroActivities}])},d(t.text),3)]))),128))],8,Le),[[A,!e.collapsibleInclusions||e.effectiveInclusionsExpanded]])])):r("",!0)]),e.type==="horizontal"||e.type==="horizontal-extended"?(s(),a("hr",{key:0,class:h(["pnx-card__hr pnx-product-card__horizontal-divider pnx-display--none pnx-sm:display--block",e.showInclusions?"pnx-margin-bottom--0":""]),"aria-hidden":"true"},null,2)):r("",!0),e.type==="horizontal"||e.type==="horizontal-extended"?(s(),a("div",{key:1,class:h([e.collapsibleInclusions?"pnx-padding-bottom--0":"","pnx-product-card__bottom pnx-product-card__bottom--horizontal"]),"data-cy":"product-card__bottom"},[o("div",Ee,[e.shouldShowInclusions&&e.inclusionItems.length?(s(),a("div",Ae,[e.collapsibleInclusions?(s(),a("button",{key:0,type:"button",class:"pnx-product-card__inclusions-toggle","aria-expanded":e.effectiveInclusionsExpanded,"aria-controls":e.inclusionsListId,"data-cy":"product-card-inclusions-toggle","data-at":e.analyticsInfo?.inclusionsToggle,onClick:i[1]||(i[1]=q((...t)=>e.toggleInclusions&&e.toggleInclusions(...t),["stop","prevent"]))},[i[8]||(i[8]=o("span",{class:"pnx-product-card__inclusions pnx-product-card__inclusions--clickable"},"What's included",-1)),u(n,{name:"chevron-down",class:h(["pnx-product-card__inclusions-chevron pnx-icon--size-1-5",{"pnx-product-card__inclusions-chevron--expanded":e.effectiveInclusionsExpanded}]),"aria-hidden":"true"},null,8,["class"])],8,Te)):(s(),a("span",Me,"What's included")),E(o("div",{id:e.collapsibleInclusions?e.inclusionsListId:void 0,class:"pnx-margin-top--xxs","data-cy":"product-card-inclusions-list"},[(s(!0),a(m,null,$(e.visibleInclusionItems,(t,k)=>(s(),a("div",{key:`${t.text}-${k}`},[u(n,{name:t.isZeroMeals||t.isZeroActivities?"close":"check",class:h(["pnx-product-card__inclusions-icon",{"pnx-product-card__inclusions-icon--disabled":t.isZeroMeals||t.isZeroActivities}])},null,8,["name","class"]),o("span",{class:h(["pnx-product-card__inclusions-item",{"pnx-product-card__inclusions-item--disabled":t.isZeroMeals||t.isZeroActivities}])},d(t.text),3)]))),128))],8,Be),[[A,!e.collapsibleInclusions||e.effectiveInclusionsExpanded]])])):r("",!0)]),o("div",Ne,[e.code?(s(),a("span",Oe,d(e.code),1)):r("",!0),u(C,{class:"pnx-padding-top--0",price:e.price,"discount-price":e.discountPrice,"child-price":e.childPrice,"child-discount-price":e.childDiscountPrice,"start-date":e.startDate,"show-price":e.showPrice,"show-child-price":e.showChildPriceSection,"show-decimal-places":e.showDecimalPlaces,type:"default","currency-locale":e.currencyLocale,"is-product-card-on-carousel":e.isProductCardOnCarousel,"show-saving-amount":e.shouldShowSavingAmount,"sale-message":e.saleMessage,"is-r-e-i-exclusive-product":e.isREIExclusiveProduct,premium:e.premium,"price-drop-text":e.priceDropMessage,onSaleMessageActionClick:i[2]||(i[2]=t=>e.$emit("sale-message-action-click",t))},null,8,["price","discount-price","child-price","child-discount-price","start-
1date","show-price","show-child-price","show-decimal-places","currency-locale","is-product-card-on-carousel","show-saving-amount","sale-message","is-r-e-i-exclusive-product","premium","price-drop-text"])])],2)):r("",!0),(e.type==="horizontal"||e.type==="horizontal-extended")&&e.$slots.compareButton?.({}).length?(s(),a("div",Ve,[_(e.$slots,"compareButton")])):r("",!0)]))]),_:2},[e.highlightText?{name:"imageOverlay",fn:p(()=>[o("div",ue,d(e.highlightText),1)]),key:"0"}:void 0,e.campaignName&&!e.highlightText?{name:"campaignChips",fn:p(()=>[o("div",pe,[u(c,{class:"pnx-chip--sale-primary"},{default:p(()=>[l(d(e.campaignName),1)]),_:1})])]),key:"1"}:void 0,e.type==="horizontal"&&e.code?{name:"imageFooter",fn:p(()=>[o("span",we,d(e.code),1)]),key:"2"}:void 0,e.type!=="horizontal"?{name:"footer",fn:p(()=>[o("div",je,[e.code&&(e.type==="default"||e.type==="mini")?(s(),a("div",Ze,d(e.code),1)):r("",!0),u(C,{class:"pnx-padding-top--0",price:e.price,"discount-price":e.discountPrice,"child-price":e.childPrice,"child-discount-price":e.childDiscountPrice,"start-date":e.startDate,"show-price":e.showPrice,"show-child-price":e.showChildPriceSection,"show-decimal-places":e.showDecimalPlaces,type:"default","currency-locale":e.currencyLocale,"is-product-card-on-carousel":e.isProductCardOnCarousel,"show-saving-amount":e.shouldShowSavingAmount,"sale-message":e.saleMessage,"is-r-e-i-exclusive-product":e.isREIExclusiveProduct,premium:e.premium,"price-drop-text":e.priceDropMessage,onSaleMessageActionClick:i[3]||(i[3]=t=>e.$emit("sale-message-action-click",t))},null,8,["price","discount-price","child-price","child-discount-price","start-date","show-price","show-child-price","show-decimal-places","currency-locale","is-product-card-on-carousel","show-saving-amount","sale-message","is-r-e-i-exclusive-product","premium","price-drop-text"])]),e.type!=="horizontal-extended"&&e.type!=="special"&&e.$slots.compareButton?.({}).length?(s(),a("div",Fe,[_(e.$slots,"compareButton")])):r("",!0)]),key:"3"}:void 0,e.$slots.extended?.({})?.length?{name:"extended",fn:p(()=>[_(e.$slots,"extended")]),key:"4"}:void 0]),1032,["class","href","image","card-layout","router-link","carousel-view","additional-images","image-limit","carousel-start-index","analytics-info","reduce-children-padding","data-at","premium"])}const ti=R(de,[["render",Ue]]),oi=e=>{if(e)return e instanceof Date?e:new Date(e)},We=["eur","chf"],ni=[{name:"18 to 35s",matcher:e=>e.replace(/\s+/g,"")==="18to35s"}],Ye=()=>{const i=Y().currencyCode?.toLowerCase();return i?!We.includes(i):!1},Ge={key:0,class:"sale-badge-message pnx-font-size--caption pnx-color--text-weak pnx-display--inline-block pnx-md:margin-top--xxs","data-cy":"sale-badge-message"},He={key:1,"data-optimizely":"sale-badge-message__low-deposit",class:"sale-badge-message__low-deposit"},Ke={key:0},Qe="/world-sale",Xe=D({__name:"SaleBadgeMessage",props:{products:{}},setup(e){const{createNebulaLink:i}=F(),f=e,v=I(()=>f.products?f.products.some(c=>c.campaignName&&!c.highlightText&&c.price&&c.discountPrice):!1),w=I(()=>(v.value||x.value)&&!U()),x=I(()=>Ye()&&f.products?f.products.some(c=>c.deposit&&c.themes?.some(n=>n.showDeposit)):!1);return(c,n)=>P(w)?(s(),a("span",Ge,[P(v)?(s(),a(m,{key:0},[n[2]||(n[2]=l(" **Prices and savings are based on the lowest priced upcoming departure for each trip, which may reflect discounts outside of the current sale. Prices are updated every 12 hours and are valid until sold out. Discounts apply to selected departures only and may be applied, modified or withdrawn at any time at Intrepid's absolute discretion. Read the ",-1)),u(z,{href:P(i)(`${Qe}#terms-and-conditions`),class:"pnx-font-size--caption pnx-color--text-weak",target:"_blank"},{default:p(()=>[...n[0]||(n[0]=[l("terms and conditions",-1)])]),_:1},8,["href"]),n[3]||(n[3]=l(" or ",-1)),u(z,{href:P(i)("/booking-intrepid/booking-conditions"),class:"pnx-font-size--caption pnx-color--text-weak",target:"_blank"},{default:p(()=>[...n[1]||(n[1]=[l("learn more about pricing",-1)])]),_:1},8,["href"])],64)):r("",!0),P(x)?(s(),a("span",He,[P(v)&&P(x)?(s(),a("br",Ke)):r("",!0),o("span",null,[n[5]||(n[5]=l(" *If your booking is made within 90 days of the departure date then the full amount is payable at the time of booking. Deposit amounts vary for selected trips and special campaigns that may be run by us from time to time, as set out in and subject to the ",-1)),u(z,{href:P(i)("/special-conditions"),class:"pnx-font-size--caption pnx-color--text-weak",target:"_blank"},{default:p(()=>[...n[4]||(n[4]=[l(" Special Conditions. ",-1)])]),_:1},8,["href"])])])):r("",!0)])):r("",!0)}}),ci=Object.assign(Xe,{__name:"SaleBadgeMessage"});export{ni as L,ti as P,ci as S,Ye as i,oi as t}; 2//# sourceMappingURL=DzDaHuGC.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.