1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"production-4623957"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];if(null!=t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:luxgroup-customer-portal":!0});var i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="5218628c-1403-4eaf-a708-cbd05ed6d1d4",e._sentryDebugIdIdentifier="sentry-dbid-5218628c-1403-4eaf-a708-cbd05ed6d1d4")}catch(e){}}();"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7058],{701480(e,i,t){t.d(i,{A:()=>ej}),t(218111),t(161701);var r=t(474848),n=t(296540),a=t(665673),s=t(38267),o=t(671468),l=t(731357),c=t(634164),d=t(148400),p=t(962023),u=t(355078),f=t(194617),g=t(897729),m=t(482597),h=t(580148),x=t(185692),A=t(871942),v=t(314953),b=t(161648),y=t(722834),j=t(305229),M=t(73659),k=t(724633),D=t(831115),w=t(582544),C=t(471676),I=t(78272),P=t(640307),U=t(410478),E=t(349422),_=t(151003),L=t(633009),T=t(1141),S=t(526705),z=t(361940),F=t(750142),B=t(784149);let N=(0,s.Ay)(g.A).withConfig({componentId:"sc-9d58277f-0"})(["padding:",";background-color:",";"],(0,l.D0)(20),e=>
1e.theme.palette.highlight.primary.lightBackground),H=(0,s.Ay)(w.A).withConfig({componentId:"sc-9d58277f-1"})(["padding:0;"]),R=function(e){let i=(0,a.A)(),{title:t,subTitle:s,IconComponent:o,description:l,to:c,onClick:d,price:p,priceUnit:u,currencyFormat:f="roundedDollar",isPriceLoading:m,luxPlusPrice:h,className:x,onDismissClick:A,discountPercentage:w,hasLoyaltyBonusPoints:R,ref:O}=e,V=!!h&&u&&!m,Y=!!p&&u&&!V&&!m,K=(0,n.useMemo)(()=>p&&h?p-h:0,[p,h]),X=(0,n.useCallback)(e=>{e.preventDefault(),A?.()},[A]),q=(0,F.GV)(B.A);return(0,r.jsx)(D.A,{ref:O,to:c,preventSwipeClick:!0,onClick:d,className:x,children:(0,r.jsxs)(N,{direction:"vertical",gap:20,verticalAlign:"space-between",fullHeight:!0,fullWidth:!0,children:[(0,r.jsxs)(g.A,{direction:"vertical",gap:8,children:[(0,r.jsxs)(g.A,{direction:"horizontal",gap:8,horizontalAlign:"space-between",children:[(0,r.jsxs)(g.A,{direction:"vertical",desktopDirection:"horizontal",gap:2,desktopGap:8,verticalAlign:"center",children:[(0,r.jsx)(k.A,{startIcon:(0,r.jsx)(o,{colour:"highlight-primary-light-contrast",size:"M"}),variant:"large",weight:"bold",children:t}),(w||R)&&(0,r.jsxs)(S.A,{children:[w&&(0,r.jsx)(T.A,{icon:(0,r.jsx)(L.A,{}),children:i.formatMessage({id:"f4Z4CRd1NIM3EnXpUVRO",defaultMessage:"{discountPercentage}% off",description:"Discount percentage badge on the upsell tile in the upsell promotion modal"},{discountPercentage:w})}),R&&(0,r.jsx)(z.A,{kind:"primary",tier:q,children:i.formatMessage({id:"XqF9Q1ugxQE5PpCdsv-h",defaultMessage:"Bonus points",description:"Loyalty bonus points badge on upsell tile in the loyalty section"})})]})]}),(0,r.jsx)(_.A,{kind:"tertiary",onClick:X,size:"small",children:(0,r.jsx)(E.A,{})})]}),s&&(0,r.jsx)(M.Ay,{variant:"large",weight:"bold",children:s}),(0,r.jsx)(b.Ay,{variant:"medium",children:l})]}),(0,r.jsxs)(I.A,{gap:4,children:[V&&!!K&&(0,r.jsx)(C.A,{saveAmount:K,type:"insurance"}),(0,r.jsxs)(g.A,{direction:"horizontal",horizontalAlign:Y||V||m?"space-between":"end",verticalAlign:V?"end":"center",children:[m&&(0,r.jsx)(H,{inline:!0,ballSize:8}),Y&&(0,r.jsxs)("div",{children:[(0,r.jsx)(b.Ay,{variant:"medium",children:i.formatMessage({id:"7v8ACjMYQ0KpMSTQbp6V",defaultMessage:"From",description:"Pricing label prefix before upsell tile price in the upsell promotion modal"})}),(0,r.jsx)(b.Ay,{variant:"medium",children:(0,r.jsx)(y.A,{id:"ZcAwlsB0XSmsc_f5b_Xf",defaultMessage:"<b>{price}</b> /{priceUnit}",description:"Upsell tile price with unit suffix in the pricing or cost breakdown section",values:{price:(0,r.jsx)(j.A,{value:p,format:f}),priceUnit:u,b:e=>(0,r.jsx)("b",{children:e})}})})]}),V&&(0,r.jsxs)("div",{children:[(0,r.jsx)(b.Ay,{variant:"medium",children:i.formatMessage({id:"rYNSwaTb-x2kP2fMY-kb",defaultMessage:"From",description:"Pricing label prefix before upsell tile LuxPlus price"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(P.A,{memberPrice:h,size:"M",saleUnit:u,priceFormat:"dynamicDollar"}),(0,r.jsxs)("div",{style:{display:"inline-flex",gap:"0.25em",alignItems:"baseline"},children:[(0,r.jsx)(U.A,{value:p??0,priceFormat:"dynamicDollar"}),(0,r.jsx)(M.Ay,{as:"s",variant:"large",colour:"light-foreground-alt",children:i.formatMessage({id:"sDZrUMTv3ZcdzvcIeNco",defaultMessage:"/{priceUnit}",description:"Strikethrough price unit suffix for upsell tile LuxPlus pricing"},{priceUnit:u})})]})]})]}),(c||d)&&(0,r.jsx)(v.A,{kind:"secondary",nonInteractable:!0,children:i.formatMessage({id:"0Xgr28AdL5xxg7vatGXU",defaultMessage:"View options",description:"Button text to view available options on upsell tile"})})]})]})]})})};var O=t(785103),V=t(998904),Y=t(919427),K=t(350068),X=t(413697);let q=(0,s.Ay)(_.A).withConfig({componentId:"sc-515a1033-0"})(["--compact-order-upsell-close-offset-x:",";transform:translateY(-",") translateX(var(--compact-order-upsell-close-offset-x));[dir='rtl'] &{--compact-order-upsell-close-offset-x:-",";}"],(0,l.D0)(4),(0,l.D0)(4),(0,l.D0)(4)),G=(0,s.Ay)(g.A).withConfig({componentId:"sc-515a1033-1"})(["flex-grow:1;"]),Z=(0,s.Ay)(g.A).withConfig({componentId:"sc-515a1033-2"})(["padding:",";background-color:",";"],(0,l.D0)(20),e=>
1e.theme.palette.highlight.primary.lightBackground),Q=(0,s.Ay)(w.A).withConfig({componentId:"sc-515a1033-3"})(["padding:0;"]),W=s.Ay.div.withConfig({componentId:"sc-515a1033-4"})(["cursor:pointer;&:focus-visible{","}"],X.A),J=function(e){let{title:i,IconComponent:t,to:s,onClick:o,price:l,priceUnit:c,currencyFormat:p="roundedDollar",isPriceLoading:u,luxPlusPrice:f,className:m,tileType:h,onDismissClick:x,discountPercentage:A,hasLoyaltyBonusPoints:v,alertText:w,onAlertClick:C,ref:I}=e,_=(0,a.A)(),N=(0,O.b8)(_,c,{withLeadingSlash:!0}),H=!!f&&!!N&&!u,R=!!l&&!!N&&!H&&!u,X=(0,n.useCallback)(e=>{e.preventDefault(),x?.()},[x]),J=(0,n.useCallback)(e=>{C&&(e.preventDefault(),e.stopPropagation(),C())},[C]),$=(0,n.useCallback)(e=>{C&&("Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),C())," "===e.key&&e.preventDefault())},[C]),ee=(0,n.useCallback)(e=>{C&&" "===e.key&&(e.preventDefault(),e.stopPropagation(),C())},[C]),ei=(0,F.GV)(B.A);return(0,r.jsx)(D.A,{ref:I,to:s,preventSwipeClick:!0,onClick:o,className:m,children:(0,r.jsxs)(Z,{direction:"vertical",tabletDirection:"horizontal-reverse",gap:4,fullHeight:!0,fullWidth:!0,children:[(0,r.jsxs)(g.A,{direction:"horizontal",horizontalAlign:"space-between",tabletDirection:"vertical-reverse",tabletHorizontalAlign:"end",tabletVerticalAlign:"space-between",gap:8,children:[(0,r.jsx)(t,{colour:"highlight-primary-light-contrast",size:"L"}),(0,r.jsx)(q,{kind:"tertiary",onClick:X,size:"small",children:(0,r.jsx)(E.A,{})})]}),(0,r.jsxs)(G,{direction:"vertical",verticalAlign:"space-between",gap:32,children:[(0,r.jsxs)(g.A,{direction:"vertical",desktopDirection:"horizontal",gap:2,desktopGap:8,verticalAlign:"center",children:[(0,r.jsx)(Y.Ay,{variant:"heading6",children:i}),(A||v)&&(0,r.jsxs)(S.A,{children:[A&&(0,r.jsx)(T.A,{icon:(0,r.jsx)(L.A,{}),children:_.formatMessage({id:"JchGbH3NYHrltWx_lBoS",defaultMessage:"{discountPercentage}% off",description:"Discount percentage label on compact order upsell tile"},{discountPercentage:A})}),v&&(0,r.jsx)(z.A,{kind:"primary",tier:ei,children:_.formatMessage({id:"7oIERe4Tgmkw00K8CpWP",defaultMessage:"Bonus points",description:"Loyalty bonus points label on compact order upsell tile"})})]})]}),(0,r.jsxs)("div",{children:[u&&(0,r.jsx)(Q,{inline:!0,ballSize:8}),"car_hire"===h&&!R&&!H&&(0,r.jsxs)(g.A,{direction:"vertical",children:[(0,r.jsx)(k.A,{variant:"small",startIcon:(0,r.jsx)(V.A,{colour:"highlight-primary-light-contrast",size:"S"}),children:_.formatMessage({id:"kfEOB-Qc4bvPINdA2Tnu",defaultMessage:"Free cancellation available",description:"Feature text for car hire upsell tile in the car hire booking section"})}),(0,r.jsx)(k.A,{variant:"small",startIcon:(0,r.jsx)(V.A,{colour:"highlight-primary-light-contrast",size:"S"}),children:_.formatMessage({id:"dIxtqpQ63FRs_2Ytdnmq",defaultMessage:"24/7 support",description:"Feature text for 24/7 support on upsell tile in the support area"})})]}),"flight"===h&&!R&&!H&&(0,r.jsxs)(g.A,{direction:"vertical",children:[(0,r.jsx)(k.A,{variant:"small",startIcon:(0,r.jsx)(V.A,{colour:"highlight-primary-light-contrast",size:"S"}),children:_.formatMessage({id:"MwLNl2E6ncIdVHBZYG1I",defaultMessage:"Great fares from major airlines",description:"Feature text for flight upsell tile in the flight search or booking flow"})}),(0,r.jsx)(k.A,{variant:"small",startIcon:(0,r.jsx)(V.A,{colour:"highlight-primary-light-contrast",size:"S"}),children:_.formatMessage({id:"dIxtqpQ63FRs_2Ytdnmq",defaultMessage:"24/7 support",description:"Feature text for 24/7 support on upsell tile in the support area"})})]}),!u&&w&&(0,r.jsx)(W,{role:"button",tabIndex:0,onClick:J,onKeyDown:$,onKeyUp:ee,"aria-label":_.formatMessage({id:"4zF2BxYG2qz5U8kg4oU8",defaultMessage:"{alertText}. Click for more information",description:"Accessible label for alert button providing more details on compact order upsell tile"},{alertText:w}),children:(0,r.jsx)(K.A,{variant:"urgency",endIcon:(0,r.jsx)(d.A,{}),children:w})}),R&&(0,r.jsxs)("div",{children:["cfmr"!==h&&(0,r.jsx)(b.Ay,{variant:"medium",children:_.formatMessage({id:"JPTyl9YYVkI_cn2R46F8",defaultMessage:"From",description:"Price prefix text on compact order upsell tile component"})}),(0,r.jsx)(b.Ay,{variant:"medium",children:(0,r.jsx)(y.A,{id:"DlBqiItiiAryaoPOUVgw",defaultMessage:"<bold>{price}</bold> {priceUnitLabel}
1",description:"Price with localised sale unit suffix on compact order upsell tile",values:{price:(0,r.jsx)(j.A,{value:l,format:p}),priceUnitLabel:N,bold:e=>(0,r.jsx)("b",{children:e})}})})]}),H&&(0,r.jsxs)("div",{children:[(0,r.jsx)(b.Ay,{variant:"medium",children:_.formatMessage({id:"JPTyl9YYVkI_cn2R46F8",defaultMessage:"From",description:"Price prefix text on compact order upsell tile component"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(P.A,{memberPrice:f,size:"M",saleUnit:c,priceFormat:"dynamicDollar"}),(0,r.jsx)("div",{children:(0,r.jsx)(y.A,{id:"N4lCHxgP5AttBONm3Zfw",defaultMessage:"{price} <suffix>{priceUnitLabel}</suffix>",description:"Strikethrough price with localised sale unit suffix on compact order upsell tile LuxPlus pricing",values:{price:(0,r.jsx)(U.A,{value:l??0,priceFormat:"dynamicDollar"}),priceUnitLabel:N,suffix:e=>(0,r.jsx)(M.Ay,{as:"s",variant:"large",colour:"light-foreground-alt",children:e})}})})]})]})]})]})]})})},$=function(e){let{analyticsSubject:i,analyticsCategory:t="upsell_tile",variant:a,onClick:s,onDismissClick:o,...l}=e,[c,d]=(0,x.Wx)({triggerOnce:!0});(0,n.useEffect)(()=>{d&&(0,A.trackClientEvent)({subject:i,action:"impression",category:t,type:"nonInteraction"})},[d]);let p=(0,n.useCallback)(()=>{(0,A.trackClientEvent)({subject:i,action:"pressed",category:t,type:"interaction"}),s&&s()},[s,i,t]);return"compact"===a?(0,r.jsx)(J,{...l,tileType:i,ref:c,onClick:p,onDismissClick:o}):(0,r.jsx)(R,{...l,ref:c,onClick:p,onDismissClick:o})},ee=function(e){let{transferUpsellData:i,variant:t="default",onDismiss:n}=e,s=(0,a.A)(),{price:o,experienceSearchUrl:l}=i;return(0,r.jsx)($,{title:s.formatMessage({id:"032iKyL4PO8K97QyKSgl",defaultMessage:"Airport transfers",description:"Title for airport transfer upsell tile on booking confirmation"}),subTitle:s.formatMessage({id:"uKlDfbnEyDERrjkg0qeT",defaultMessage:"Free cancellation available",description:"Subtitle for upsell tile indicating free cancellation"}),description:s.formatMessage({id:"v2pt-LuCnYllp7MOA_Hh",defaultMessage:"Reliable and private airport transfers.",description:"Description for airport transfer upsell tile on booking confirmation"}),price:o,priceUnit:"adult",IconComponent:h.A,to:l,analyticsSubject:"transfer",variant:t,onDismissClick:n})};var ei=t(251582);let et=function(e){let{carHireUpsellData:i,variant:t="default",onDismiss:n}=e,s=(0,a.A)(),{carHireSearchLink:o}=i;return(0,r.jsx)($,{title:s.formatMessage({id:"-BZkolkKPrnNa9gsbP6f",defaultMessage:"Hire a car",description:"Title for car hire upsell tile on booking confirmation"}),subTitle:s.formatMessage({id:"uKlDfbnEyDERrjkg0qeT",defaultMessage:"Free cancellation available",description:"Subtitle for upsell tile indicating free cancellation"}),description:s.formatMessage({id:"LlvgtURpEHWPbem5EB1I",defaultMessage:"Trusted car suppliers and 24/7 support.",description:"Description for car hire upsell tile on booking confirmation"}),IconComponent:ei.A,to:o,analyticsSubject:"car_hire",variant:t,onDismissClick:n,discountPercentage:i.discountPercentage,hasLoyaltyBonusPoints:i.hasLoyaltyBonusPoints})};var er=t(439594);let en=function(e){let{flightUpsellData:i,variant:t="default",onDismiss:n}=e,s=(0,a.A)(),{flightTitle:o,flightPrice:l,flightLink:c}=i;return(0,r.jsx)($,{title:o,description:s.formatMessage({id:"nuyEYXWqlQyTcRb4idML",defaultMessage:"Explore and compare competitive prices from all major airlines.",description:"Description for flight upsell tile on booking confirmation"}),price:l,priceUnit:"adult",IconComponent:er.A,to:c,analyticsSubject:"flight",variant:t,onDismissClick:n})};var ea=t(546113),es=t(992670),eo=t(338604);let el=function(e){let i=(0,a.A)(),t=(0,F.GV)(eo.d);return(0,n.useMemo)(()=>t?{title:i.formatMessage({id:"0EVsPitPZgA1hfOnJEeI",defaultMessage:"Cancellation Protection / Travel Insurance",description:"Title of the post-purchase insurance upsell tile in a spoofed agent session, where cancellation cover and travel insurance can both be added to the booking"}),description:i.formatMessage({id:"7KN0XmRo-rZeeLLwj5Sx",defaultMessage:"Add cancellation cover or full travel insurance to this booking.",description:"Description of the post-purchase insurance upsell tile in a spoofed agent session, covering both the cancellation cover and the travel insurance products"})}:"booking-protection"===e?{title:i.formatMessage(es.A.cancellationProtection),description:i.formatMessage({id:"DGka_h6331maQIt0eDls",defaultMessage:"Receive a 100% refund if you need to cancel for unforeseen events.",description:"Description for cancellation protection upsell tile on booking confirmation"})}:{title:i.formatMessage({id:"-MW3yHw-nHxdX4qELFvn",defaultMessage:"Travel protection",description:"Title for travel insurance upsell tile on booking confirmation"}),description:i.formatMessage({id:"PJu1Vz0xmUmrxfE3kbZc",defaultMessage:"Be covered for medical, cancellations and lost baggage.",description:"Description for travel insurance upsell tile on booking confirmation"})},[i,t,e])},ec=function(e){let{insuranceUpsellData:i,variant:t="default",onDismiss:n}=e,{title:a,description:s}
1=el("travel-insurance"),{fetchingQuotes:o,fetchingLuxPlusSubscription:l,cheapestQuotePrice:c,cheapestQuoteLuxPlusPrice:d,isEnabledLuxPlusDiscountedInsurance:p,orderId:u}=i;return(0,r.jsx)($,{title:a,description:s,price:c,luxPlusPrice:d,priceUnit:"person",isPriceLoading:o||p&&l,currencyFormat:"dynamicDollar",IconComponent:ea.A,to:`/travel-protection/add?orderId=${u}`,analyticsSubject:"insurance",className:"insurance-upsell-tile",variant:t,onDismissClick:n})};var ed=t(562860);let ep=function(e){let{tourUpsellData:i,variant:t="default",onDismiss:n}=e,s=(0,a.A)(),{onClick:o,price:l}=i;return(0,r.jsx)($,{title:s.formatMessage({id:"UysluWReoLrtqw5wki82",defaultMessage:"More things to do on your tour",description:"Title for tour option upsell tile on booking confirmation"}),description:s.formatMessage({id:"fyu4suCTSClFn9nXwmjo",defaultMessage:"Personalise your tour with optional experiences.",description:"Description for tour option upsell tile on booking confirmation"}),price:l,priceUnit:"person",currencyFormat:"dynamicDollar",IconComponent:ed.A,onClick:o,analyticsSubject:"tour",variant:t,onDismissClick:n})};var eu=t(85301),ef=t(825060),eg=t(61741);let em=function(e){let{insuranceBookingProtectioUpsellData:i,variant:t="default",onDismiss:s,order:o,onClick:l}=e,c=(0,a.A)(),{title:d,description:p}=el("booking-protection"),u=(0,n.useContext)(ef.A),{fetchingQuotes:f,fetchingLuxPlusSub
1scription:g,cheapestQuotePrice:m,cheapestQuoteLuxPlusPrice:h,isEnabledLuxPlusDiscountedInsurance:x}=i,A=(0,n.useMemo)(()=>{let e=(0,eu.E)(o);return{hours:Math.floor(e/3600),minutes:Math.floor(e/60)}},[o]),v=(0,n.useMemo)(()=>A.hours>=1?c.formatMessage({id:"jdcNxUgATb3R-x8qnIM7",defaultMessage:"Available for next {hours}h",description:"Alert text showing remaining hours for cancellation protection availability"},{hours:A.hours}):A.minutes>0?c.formatMessage({id:"4GhdXnrBTt506DkE5AcZ",defaultMessage:"Available for next {minutes}min",description:"Alert text showing remaining minutes for cancellation protection availability"},{minutes:A.minutes}):void 0,[A,c]),b=(0,n.useCallback)(()=>{u((0,r.jsx)(eg.A,{remainingTime:A}))},[u,A]);return(0,r.jsx)($,{title:d,description:p,price:m,luxPlusPrice:h,priceUnit:"person",isPriceLoading:f||x&&g,currencyFormat:"dynamicDollar",IconComponent:ea.A,analyticsSubject:"cfmr",className:"insurance-upsell-tile",variant:t,onDismissClick:s,alertText:v,onAlertClick:b,onClick:l})};var eh=t(166067),ex=t(168117),eA=t(754472),ev=t(842930),eb=t(928445);let ey=s.Ay.div.withConfig({componentId:"sc-a00800df-0"})(["display:grid;grid-template-columns:repeat(2,1fr);gap:",";","{grid-template-columns:repeat(auto-fill,minmax(",",1fr));}&.lux-plus-sort-order{.insurance-upsell-tile{order:-1;}}"],(0,l.D0)(12),f.em.tablet,(0,l.D0)(272)),ej=(0,o.Ng)(e=>({canViewLuxPlusBenefits:(0,m.Vn)(e),isEnabledLuxPlusDiscountedInsurance:(0,m.Zc)(e),upcomingOrders:(0,ex.c$)(e)}))(function(e){let{order:i,className:t,canViewLuxPlusBenefits:s,isEnabledLuxPlusDiscountedInsurance:o,upcomingOrders:l}=e,f=(0,a.A)(),m=(0,eh.A)(i),h=(0,n.useMemo)(()=>(0,eA.O9)(i),[i]),{tour:{tourUpsellEnabled:x,tourUpsell:A,handleTourUpsellDismiss:v},insurance:{insuranceUpsellEnabled:b,insuranceUpsell:y,handleInsuranceUpsellDismiss:j},insuranceBookingProtection:{insuranceBookingProtectionUpsellEnabled:M,insuranceBookingProtectionUpsell:k,handleInsuranceBookingProtectionUpsellDismiss:D,handleInsuranceBookingProtectionSelect:w},flight:{flightUpsellEnabled:C,flightUpsell:I,handleFlightUpsellDismiss:P},airportTransfer:{airportTransferUpsellEnabled:U,airportTransferUpsell:E,handleAirportTransferDismiss:_},carHire:{carHireUpsellEnabled:L,carHireUpsell:T,handleCarHireUpsellDismiss:S},anyUpsellEnabled:z,anyUpsellLoading:F}=(0,n.useMemo)(()=>m,[m]),B=(0,n.useMemo)(()=>s&&o,[s,o]),{hasExistingCarHire:N,hasExistingFlight:H,hasExistingTour:R,hasExistingTransfer:O,hasNoAvailableUpsells:V}=(0,n.useMemo)(()=>{let e=(0,ev.eh)(new Date(h.earliestDate??new Date),14),i=(0,ev.fi)(new Date(h.latestDate??new Date),14),t=(0,eb.A)(l,e,i,e=>e.carHireItems?.map(e=>e.reservation?.pickUp?.date)??[]),r=(0,eb.A)(l,e,i,e=>e.flightItems?.map(e=>e.departureDate)??[]),n=(0,eb.A)(l,e,i,e=>e.tourItems?.map(e=>e.tour?.startDate)??[]),a=(0,eb.A)(l,e,i,e=>e.transferItems?.map(e=>e.date)??[]);return{hasExistingCarHire:t,hasExistingFlight:r,hasExistingTour:n,hasExistingTransfer:a,hasNoAvailableUpsells:(!x||n)&&(!C||r)&&!b&&!M&&(!U||a)&&(!L||t)}},[l,h,x,C,b,M,U,L]);return F||!z?null:(0,r.jsxs)(g.A,{className:t,gap:16,direction:"vertical",children:[!V&&(0,r.jsx)(g.A,{direction:"horizontal",gap:8,children:(0,r.jsx)(p.A,{variant:"heading5",endIcon:(0,r.jsx)(u.A,{description:f.formatMessage({id:"1nOiPjr_gHVgJ4sFTXJ9",defaultMessage:"Prices shown are estimates, with the final amount displayed at the next step. Free cancellation policy may change based on your selected dates.",description:"Tooltip explaining estimated prices and cancellation policy on booking confirmation upsell section"}),children:(0,r.jsx)(d.A,{})}),children:f.formatMessage({id:"5QuuR5I3GyXhoTCUU9D3",defaultMessage:"Whatâs next to plan?",description:"Heading for upsell section on booking confirmation page"})})}),(0,r.jsxs)(ey,{className:(0,c.A)({"lux-plus-sort-order":B}),children:[x&&!R&&(0,r.jsx)(ep,{tourUpsellData:A,variant:"compact",onDismiss:v}),C&&!H&&(0,r.jsx)(en,{flightUpsellData:I,variant:"compact",onDismiss:P}),b&&(0,r.jsx)(ec,{insuranceUpsellData:y,variant:"compact",onDismiss:j}),M&&(0,r.jsx)(em,{insuranceBookingProtectioUpsellData:k,variant:"compact",onDismiss:D,onClick:w,order:i}),U&&!O&&(0,r.jsx)(ee,{transferUpsellData:E,variant:"compact",onDismiss:_}),L&&!N&&(0,r.jsx)(et,{carHireUpsellData:T,variant:"compact",onDismiss:S})]})]})})},644448(e,i,t){var r=t(319720),n=t(428357),a=t(381893),s=t(296540);t.d(i,{},{A:function(e,i=n.zf){let t=(0,r.A)(i),o=(0,s.useMemo)(()=>(0,a.Ay)(),[i.key]);return(0,s.useMemo)(()=>({listId:o,listName:e,snowplow:t.snowplow?t.snowplow:{enabled:!0},ga:t.ga,listSource:t.source,offerSourceMapping:t.offerSourceMapping}),[o,e,t])}})}}]); 2//# sourceMappingURL=7058.52de2d7e169a3fb8.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.