PageSourceSearch

https://my.getours.com/getours/js/4973.cfdb8b537ce80a4f84c2.js

js getours.com collected 2026-10-02 10:01:52 UTC 33,010 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmy_travel_portal_frontend=self.webpackChunkmy_travel_portal_frontend||[]).push([[4973],{38743:function(e,s,t){t.d(s,{A:function(){return d}});var o=t(65043),n=t(59801),a=t(60400),i=t(70579);const{Accordion:{expandAll:r,collapseAll:l}}=a.Aq.getTranslations();class d extends o.Component{constructor(e){super(e),this.onChangeHandler=(e=[])=>{this.setState((({accordionItems:s})=>({accordionItems:s.map((s=>e&&e.indexOf&&e.indexOf(s.index)>=0?{...s,expanded:!0}:{...s,expanded:!1})),pickFromProps:!1})))};const{items:s}=this.props;this.state={accordionItems:s,pickFromProps:!0}}static getDerivedStateFromProps(e,s){const{items:t}=e,{pickFromProps:o}=s;return t!==s.accordionItems?{accordionItems:o?t:s.accordionItems}:null}onClickHandler(e,s){e.preventDefault();const{accordionItems:t}=this.state;this.setState({accordionItems:t.map((e=>({...e,expanded:s}))),pickFromProps:!1})}render(){const{allowMultiple:e=!1,showButtons:s=e,heading:t,className:o="",header:d=!1,onChange:c=()=>{}}=this.props,{accordionItems:m}=this.state,g=m.filter((e=>!0===e.expanded)),u=o?`${o}__item`:"",h=o?`${o}__title`:"",p=o?`${o}__body`:"";return(0,i.jsxs)("div",{className:"Accordion grid-x",children:[d&&(0,i.jsx)("div",{className:"cell",children:(0,i.jsxs)("div",{className:"grid-x Accordion__header",children:[(0,i.jsx)("h4",{className:"cell small-12 medium-7 Accordion__heading",children:t}),s&&(0,i.jsxs)("div",{className:"cell small-12 medium-5 expanded Accordion__button",children:[(0,i.jsx)("button",{className:"button"+(g.length===m.length?" selected":""),onClick:e=>this.onClickHandler(e,!0),type:"button",children:r}),(0,i.jsx)("button",{className:"button"+(0===g.length?" selected":""),onClick:e=>this.onClickHandler(e,!1),type:"button",children:l})]})]})}),(0,i.jsx)("div",{className:"cell",children:(0,i.jsx)(n.Accordion,{onChange:s?this.onChangeHandler:c,accordion:!e,className:`accordion ${o}`,children:m.map((e=>(0,i.jsxs)(n.AccordionItem,{id:e.id,uuid:e.index,expanded:e.expanded,className:`accordion__item ${u}`,children:[(0,i.jsxs)(n.AccordionItemTitle,{className:`accordion__title ${h}`,children:[e.title,(0,i.jsx)("div",{className:"accordion__arrow",role:"presentation"})]}),(0,i.jsx)(n.AccordionItemBody,{className:`accordion__body ${p}`,children:e.content})]},e.id||a.Aq.getUID())))})})]})}}d.displayName="Accordion",d.defaultProps={allowMultiple:!1,showButtons:!1,className:"",heading:"",header:!1}},66863:function(e,s,t){t.d(s,{A:function(){return d}});var o=t(65043),n=t(80229),a=t(97512),i=t(24097),r=t(70579);const l=({message:e,className:s})=>{const[t,l]=(0,o.useState)(!1),d={replace:e=>{if("a"===e.name&&e.attribs&&"#LoginFAQModal"===e.attribs["data-target"])return(0,r.jsx)("a",{tabIndex:"0",role:"button",onClick:()=>l(!0),onKeyDown:e=>"Enter"===e.key&&l(!0),children:(0,n.zd)(e.children)})}};return(0,r.jsxs)(r.Fragment,{children:[t&&a.createPortal((0,r.jsx)(i.A,{isFirebase:!0,openModal:t,onCloseLoginFaq:()=>l(!1)}),document.body),(0,r.jsx)("div",{className:`AlertMessageBlock__message ${s}`,children:(0,n.Ay)(e,d)})]})};l.displayName="AlertMessageBlock";var d=l},65294:function(e,s,t){t.d(s,{A:function(){return l}});var o=t(65043),n=t(60400),a=t(70579);const{App:{defaultTripImages:{square:i,wide:r}}}=n.Aq.getConfigs();class l extends o.PureComponent{constructor(e){super(e),this.checkIfImageExists=(e,s)=>{const t=new Image;t.src=e,t.complete?s(!0):(t.onload=()=>{s(!0)},t.onerror=()=>{s(!1)})};const{src:s}=this.props;this.state={src:s,loading:!0}}componentDidMount(){n.Aq.setToMounted(this),this.setState({loading:!0});const{src:e,defaultImageType:s,customOnLoad:t}=this.props,o="wide"===s?r:i;this.checkIfImageExists(e,(s=>{s?this.setState({src:e}):this.setState({src:o}),this.setState({loading:!1});const{src:n}=this.state;t&&t(n)}))}componentWillUnmount(){n.Aq.setToUnmounted(this)}render(){const{className:e,children:s,useImg:t,useDarkBG:i,contentStyle:r}=this.props,{src:l,loading:d}=this.state,c={...r,backgroundImage:`url('${l}')`},m=n.Aq.argsToString("BackgroundImage",d&&"BackgroundImage--loading",i&&"BackgroundImage--dark",e);return t&&(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)("img",{src:l,alt:"background"}),s]})||(0,a.jsx)("div",{style:c,className:m,children:s})}}
1l.displayName="BackgroundImage",l.defaultProps={src:"",className:"",useDarkBG:!1,defaultImageType:"wide",useImg:!1,children:null,contentStyle:{}}},27669:function(e,s,t){t.d(s,{A:function(){return k}});t(65043);var o=t(45205),n=t(60400),a=t(70579);const{Countdown:i}=n.Aq.getTranslations(),{Countdown:{themeName:r}}=n.Aq.getConfigs(),l=({children:e})=>(0,a.jsx)("span",{className:"Countdown__message",children:e}),d=({children:e})=>(0,a.jsx)("span",{className:"Countdown__number-context",children:e}),c=({children:e})=>(0,a.jsx)("span",{className:"Countdown__number",children:e}),m=({over:e=!1,children:s})=>(0,a.jsx)("div",{className:"Countdown__count"+(e?" Countdown__count--over":""),children:s}),g=({children:e})=>(0,a.jsx)("span",{className:"Countdown__expiry",children:e}),u=({data:e})=>(0,a.jsxs)(m,{children:[(0,a.jsxs)(d,{children:[i.trip," ",i.day.singular]}),(0,a.jsxs)(c,{children:[" ",e]})]}),h=({data:e})=>(0,a.jsxs)(m,{children:[(0,a.jsxs)(c,{children:[e," "]}),(0,a.jsxs)(d,{children:[i.day[1!==e?"plural":"singular"]," ",i.toGo]})]}),p=({data:e})=>(0,a.jsx)(m,{over:!0,children:(0,a.jsx)(l,{children:e})}),_=({data:e})=>(0,a.jsx)(g,{expires:!0,children:e}),x=({from:e,to:s,useLightBG:t,useDarkBG:l,smallMode:d,flatMode:c,noShadow:m,noDate:g,noStatus:x,noExpire:k})=>{const N="Countdown";let f="",B="FUTURE";return n.gX.todayOrEarlier(e)&&(B="PRESENT"),n.gX.hasOccurred(s)&&(B="PAST"),f=f||c&&`${N}--flat`,f=f||d&&`${N}--small`,f+=t?` ${N}--useLightBG`:"",f+=l?` ${N}--useDarkBG`:"",f+=g?` ${N}--noDate`:"",f+=x?` ${N}--noStatus`:"",(!g||!x)&&(0,a.jsxs)(o.A,{noPadding:!0,noBorder:!0,noShadow:m,componentName:N,className:f||"",themeName:r,children:[!g&&(0,a.jsxs)(o.A.Header,{alignCenter:!0,children:[k&&(0,a.jsx)(_,{data:i.expires}),n.gX.format(e,"D MMM YYYY")]}),!x&&(0,a.jsxs)(o.A.Body,{children:["FUTURE"===B&&(0,a.jsx)(h,{data:n.gX.daysUntil(e)||1}),"PRESENT"===B&&(0,a.jsx)(u,{data:n.gX.daysSince(e)||1}),"PAST"===B&&(0,a.jsx)(p,{data:i.over})]})]})||null};d.displayName="CountdownNumberContext",c.displayName="CountdownNumber",l.displayName="CountdownMessage",m.displayName="CountdownCount",m.defaultProps={over:!1},u.displayName="CountdownUp",h.displayName="CountdownDown",p.displayName="CountdownOver",x.displayName="Countdown",x.defaultProps={from:n.gX.now(),to:n.gX.now(),useLightBG:!1,useDarkBG:!1,smallMode:!1,flatMode:!1,noShadow:!1,noDate:!1,noStatus:!1,noExpire:!1};var k=x},32125:function(e,s,t){t.d(s,{A:function(){return j}});var o=t(65043),n=t(97508),a=t(32044),i=t(65294),r=t(27669),l=t(66863),d=t(80229),c=t(60400),m=t(70579);const{Hero:{greeting:{guest:g,member:u,prefix:h},alertMessage:p,healthAlertMessage:_}}=c.Aq.getTranslations(),{App:{brandId:x,tripByBrandMapping:k},Sustainability:{pledgeImage:N,showPledgeImage:f}}=c.Aq.getConfigs(),B=({title:e,image:s,children:t,startDate:n,endDate:B,tripEnded:j,withHomeButton:b,withChatHomeButton:v,withKnowBeforeYouGo:A,staticImage:I,dontShowTripBy:y,firstname:w,withCountdown:C,withTitle:T,customTitle:S,withGreeting:L,brandName:M})=>{const{App:{showKnowBeforeYouGoPage:D},Hero:{showAlertMessage:R,showHealthAlertMessage:E}}=c.Aq.getConfigs();return(0,m.jsxs)("div",{className:"cell Hero","data-testid":"hero",children:[R&&!v&&!D&&(0,m.jsx)(l.A,{message:p,className:"Hero__alertMessage"}),E&&!v&&!D&&(0,m.jsx)(l.A,{message:_,className:"Hero__healthAlertMessage"}),(0,m.jsxs)(i.A,{src:I||s,className:"Hero__image grid-x align-bottom ChatHero__chatBackground",children:[S&&A&&(0,m.jsx)("div",{className:"Hero__knowBeforeYouGoText--text small-10 small-offset-1 medium-6 medium-offset-3",children:(0,d.Ay)(S)}),(0,m.jsx)("div",{className:"cell",children:(0,m.jsxs)("div",{className:"grid-container",children:[C&&(0,m.jsx)("div",{className:"show-for-large Hero__countdown",children:n&&!j&&(0,m.jsx)(r.A,{from:n,to:B})}),t,(0,m.jsxs)("div",{className:"grid-x grid-margin-x",children:[S&&f&&!A&&(0,m.jsx)("div",{className:"cell Hero__joinImage",children:(0,m.jsx)("img",{className:"Hero__sustainabilityLogo",src:N,alt:`${x} sustainability brand logo`})}),(0,m.jsxs)("div",{className:"cell large-12",children:[L&&((0,m.jsxs)(o.Fragment,{children:[(0,m.jsxs)("h1",{"data-hj-suppress":!0,className:"Hero__title Hero__title--light",children:[u," ","brendanvacations"===x&&w]}),(0,m.jsxs)("h2",{"data-hj-suppress":!0,className:"Hero__title",children:[h," ","brendanvacations"!==x&&w]})]})||(0,m.jsx)("h1",{className:"Hero__title",children:g}))||T&&(0,m.jsx)("h1",{className:"Hero__title Hero__trip-title",children:e})||S&&!A&&(0,m.jsx)("h1",{className:"Hero__title Hero__trip-title Hero__sustainability--title",children:S}),e&&T&&!y&&k[M]&&(0,m.jsx)("h1",{className:"Hero__title Hero__trip-title Hero__status",children:`Trip Run By ${k[M]}`})]})]})]})}),b&&(0,m.jsx)("div",{className:"show-for-small-only",children:(0,m.jsx)(a.A,{className:"Hero__home"})}),v&&(0,m.jsx)("div",{children:(0,m.jsx)(a.A,{className:"Hero__chatHome"})})]})]})};B.displayName="Hero",B.defaultProps={title:"",image:"",staticImage:"",firstname:"",startDate:"",endDate:"",customTitle:"",withHomeButton:!0,withChatHomeButton:!1,withCountdown:!0,withTitle:!0,withGreeting:!1,children:null,tripEnded:!1};var j=(0,n.Ng)((({userData:{firstname:e},activeBooking:s})=>{let t=s.product&&s.product.backgroundUrl;return t&&("trafalgar"!==x&&"costsaver"!==x&&"getours"!==x&&"brendanvacations"!==x||(t=t.replace(/-sq(uare)?/g,"").replace(/(\.jpe?g).+/,"$1"),t=t.replace(/herosquare?/g,"hero")),"insightvacations"!==x&&"luxurygold"!==x&&"getours"!==x&&"brendanvacations"!==x||(t=t.replace(/531x531/g,"1920x660"))),{firstname:e,title:s.productName,image:t,startDate:s.startDate,endD
1ate:s.endDate,tripEnded:s.tripEnded,brandName:s.brandName}}))(B)},24097:function(e,s,t){t.d(s,{A:function(){return u}});t(65043);var o=t(60400),n=t(38743),a=t(52003),i=t(80229),r=t(70579);const{LoginFaq:{header:l,questions:d},FirebaseLoginFaq:{questions:c}}=o.Aq.getTranslations(),m=d.map(((e,s)=>({title:(0,r.jsx)("h3",{children:e.question}),content:(0,r.jsx)("div",{children:(0,i.Ay)(e.answer)}),expanded:!1,id:e.id,index:s}))),g=c.map(((e,s)=>({title:(0,r.jsx)("h3",{children:e.question}),content:(0,r.jsx)("div",{children:(0,i.Ay)(e.answer)}),expanded:!1,id:e.id,index:s})));var u=e=>{const{openModal:s,onCloseLoginFaq:t,isFirebase:o}=e;return(0,r.jsx)("div",{className:"LoginFAQModalContainer",children:(0,r.jsx)(a.A,{componentName:"LoginFAQModal",title:l,open:s,onClose:t,children:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"modalbuttoncontainer",children:(0,r.jsx)(n.A,{header:l,showButtons:!0,allowMultiple:!0,items:o?g:m})})})})})})}},63447:function(e,s,t){t.d(s,{A:function(){return c}});t(65043);var o=t(60400),n=t(27669),a=t(70579);const{TripSchedule:{tripStartHeader:i,tripEndHeader:r}}=o.Aq.getTranslations(),{App:{tripByBrandMapping:l}}=o.Aq.getConfigs(),d=({endDate:e,startDate:s,containerClassName:t,itemClassName:d,tripEnded:c,startLocation:m,endLocation:g,showProductTitle:u,title:h,showCountDown:p,brandName:_})=>(0,a.jsxs)("ul",{className:`TripSchedule ${t||""}`,children:[u&&(0,a.jsx)("li",{className:"TripSchedule__title",children:h}),l[_]&&u&&(0,a.jsx)("li",{className:"TripSchedule__runBY",children:`Trip Run By ${l[_]}`}),(0,a.jsx)("li",{className:`TripSchedule__item ${d||""}`,children:(0,a.jsxs)("ul",{className:"TripSchedule__itemWrapper",children:[(0,a.jsx)("li",{className:"TripSchedule__status",children:i}),(0,a.jsx)("li",{className:"TripSchedule__city",children:m}),(0,a.jsx)("li",{className:"TripSchedule__date",children:o.gX.format(s,"dddd, DD MMMM YYYY")}),(0,a.jsx)("li",{className:"TripSchedule__days",children:!c&&p&&(0,a.jsx)(n.A,{noShadow:!0,noDate:!0,useDarkBG:!0,smallMode:!0,from:s,to:e})})]})}),(0,a.jsx)("li",{className:`TripSchedule__item ${d||""}`,children:(0,a.jsxs)("ul",{className:"TripSchedule__itemWrapper",children:[(0,a.jsx)("li",{className:"TripSchedule__status",children:r}),(0,a.jsx)("li",{className:"TripSchedule__city",children:g}),(0,a.jsx)("li",{className:"TripSchedule__date",children:o.gX.format(e,"dddd, DD MMMM YYYY")})]})})]});d.displayName="TripSchedule",d.defaultProps={startDate:"",endDate:"",startLocation:"",endLocation:"",showProductTitle:!1,tripEnded:!1,title:"",containerClassName:"",itemClassName:"",showCountDown:!0};var c=d},29117:function(e,s,t){t.r(s),t.d(s,{default:function(){return Fe}});var o=t(65043),n=t(97508),a=t(91688),i=(t(51763),t(32125)),r=t(45205),l=t(38743),d=t(65294),c=t(27669),m=t(60400),g=t(52003),u=t(47644),h=t(60483),p=t(1813),_=t(29584),x=t(77922),k=t(5974),N=t(80229),f=t(54939),B=t(70579);const{App:{brandCode:j,showTTRiverText:b}}=m.Aq.getConfigs(),v=window.innerWidth<1280,{Amb:{ttRiverHeading:A}}=m.Aq.getTranslations(),{AddMyBooking:{Card:{header:I,addButton:y},Form:{header:w,footer:C,Fieldset:{title:T,fields:{firstName:{title:S,placeholder:L},lastName:{title:M,placeholder:D},reference:{title:R,placeholder:E}}}},AddMyBookingErrorMessages:{errorMessages:{unableToFindBooking:H,ensureDetailsMatch:O}}},MyBrand:{mtpBookingName:q}}=m.Aq.getTranslations();class P extends o.PureComponent{constructor(e){super(e),this.updateState=e=>{const{firstname:s,lastname:t}=e;m.Aq.isMounted(this)&&this.setState({values:{firstname:s,lastname:t,reference:""}})},this.addBooking=()=>{let{values:{firstname:e,lastname:s,reference:t}}=this.state;const{dispatchRefreshBookingsList:o,onDemandClose:n,mode:a,history:i}=this.props;return m.j0.click({action:"add_my_booking",category:"add_my_booking_click",label:"Add My Booking"}),this.setState({bookingNotFoundError:!1}),e=e.trim(),s=s.trim(),t=t.trim(),sessionStorage.setItem("firstname",e),sessionStorage.setItem("lastname",s),sessionStorage.setItem("bookingnumber",t),(0,f.m)({message:`User clicked on Find My Booking - ${e}, ${s}, ${t}`,status:"info",event:"Find My Booking",userName:e+", "+s,outcome:"Success",bookingReference:t,userEmail:localStorage.getItem("USER_EMAIL"),corrId:localStorage.getItem("CORRELATION_ID"),loginSource:localStorage.getItem("LOGIN_SOURCE")}),"insecure"===a&&sessionStorage.setItem("insecurelogin",!0),_.P4.addBooking({firstName:e,lastName:s,bookingRef:t,brandCode:j}).then((()=>((0,f.m)({message:"Success in Add My Booking",status:"info",event:"Add My Booking",userName:e+", "+s,outcome:"Success",bookingReference:t,userEmail:localStorage.getItem("USER_EMAIL"),corrId:localStorage.getItem("CORRELATION_ID"),loginSource:localStorage.getItem("LOGIN_SOURCE")}),"function"===typeof n&&n(),m.j0.click({action:"add_my_booking",category:"add_my_booking_success",label:"Success in Add My Booking"}),o(m.Aq.getUID()),this.updateState(this.props),"insecure"===a&&i.push("/"),!0))).catch((o=>{m.Aq.consoleErr("*** ADD BOOKING ERROR ***",o);(0,f.m)({message:"Error in Add My Booking",status:"error",event:"Add My Booking",userName:e+", "+s,outcome:"Failed",error:o,bookingReference:t,userEmail:localStorage.getItem("USER_EMAIL"),corrId:localStorage.getItem("CORRELATION_ID"),loginSource:localStorage.getItem("LOGIN_SOURCE")}),m.j0.click({action:"add_my_booking",category:"add_my_booking_error",label:"Error in Add My Booking"}),this.setState({bookingNotFoundError:!0})}
1))},this.onChange=(e,s)=>{this.setState((({values:t,errors:o})=>{const{firstname:n,lastname:a,reference:i}=t,r=Array.isArray(this.validationRules[e])?this.validationRules[e]:[],{message:l}=m.OH.validate(s.trim(),r);let d=!0;switch(e){case"firstname":s&&a&&i&&(d=!1);break;case"lastname":n&&s&&i&&(d=!1);break;case"reference":n&&a&&s&&!l&&(d=!1);break;default:d=!0}return{disabled:d,values:{...t,[e]:s},errors:{...o,[e]:l}}}))};const{firstname:s,lastname:t}=this.props;this.state={disabled:!0,values:{firstname:"",lastname:"",reference:""},errors:{firstname:"",lastname:"",reference:""},bookingNotFoundError:!1},this.validationRules={firstname:[m.OH.getRule("required")],lastname:[m.OH.getRule("required")],reference:[m.OH.getRule("required"),"UW"===j?m.OH.getRule("bookingnumberformatforuniworldbrands"):m.OH.getRule("bookingnumberformatfortropicsbrands")]}}render(){const{disabled:e,values:{firstname:s,lastname:t,reference:o},errors:n,bookingNotFoundError:a}=this.state,{showHeading:i}=this.props;return(0,B.jsxs)(r.A,{componentName:"AddMyBooking",children:[a&&(0,B.jsx)(p.A,{type:"error",header:H,description:O}),b&&!v&&(0,B.jsxs)("div",{className:"AddMyBooking__ttRiverWrapper",children:[(0,B.jsx)("strong",{className:"AddMyBooking__ttRiverText",children:(0,N.Ay)(A)}),(0,B.jsx)("div",{className:"AddMyBooking__ttRiverIconWrapper",children:(0,B.jsx)("span",{className:"AddMyBooking__ttRiverIcon"})})]}),i&&(0,B.jsx)(r.A.Header,{children:I}),(0,B.jsx)(r.A.Body,{children:(0,B.jsxs)(u.A,{componentName:"AddMyBooking",children:[(0,B.jsx)(u.A.Header,{className:"AddMyBooking__registerTitle",title:(0,N.Ay)(w.replace("$brand$",q))}),(0,B.jsx)(u.A.Fieldset,{title:T,children:(0,B.jsxs)("div",{className:"grid-y",children:[(0,B.jsx)("div",{className:"cell AddMyBooking__nameSection",children:(0,B.jsxs)("div",{className:"grid-x AddMyBooking__fieldWrapper",children:[(0,B.jsx)("div",{className:"cell medium-6",children:(0,B.jsx)(u.A.Input,{type:"text",id:"firstname",value:s,onChange:e=>this.onChange("firstname",e),error:n.firstname,title:S,placeholder:L})}),(0,B.jsx)("div",{className:"cell medium-6",children:(0,B.jsx)(u.A.Input,{type:"text",id:"lastname",value:t,onChange:e=>this.onChange("lastname",e),error:n.lastname,title:M,placeholder:D})})]})}),(0,B.jsx)("div",{className:"cell",children:(0,B.jsx)(u.A.Input,{type:"text",id:"reference",value:o,onChange:e=>this.onChange("reference",e),error:n.reference,title:R,placeholder:E})})]})}),(0,B.jsx)(u.A.Header,{className:"AddMyBooking__formTitle AddMyBooking__noteTitle",title:(0,N.Ay)(C)})]})}),(0,B.jsx)(r.A.Footer,{children:(0,B.jsx)(h.A,{disabled:e,onClick:this.addBooking,className:"primary medium-down-expanded AddMyBooking__button",children:y})})]})}}P.displayName="AddMyBooking",P.defaultProps={firstname:"",lastname:"",onDemandClose:()=>{},showHeading:!0};var G=(0,n.Ng)((({userData:{firstname:e,lastname:s}})=>({firstname:e,lastname:s})),(e=>({dispatchRefreshBookingsList:s=>e((0,x.of)(s)),dispatchToggleErrorModal:s=>e((0,k.IU)(s))})))(P);const{Amb:{heading:U,description:F,modalTitle:$,buttonText:Y,ttRiverHeading:W}}=m.Aq.getTranslations(),{App:{showTTRiverText:K}}=m.Aq.getConfigs(),X=window.innerWidth<1280,z=()=>{m.j0.click({action:"find_my_booking",category:"find_my_booking_button",label:"Find my booking"})};var Q=()=>(0,B.jsxs)(r.A,{componentName:"Amb",children:[K&&!X&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{className:"Amb__ttRiverIconWrapper",children:(0,B.jsx)("span",{className:"Amb__ttRiverIcon"})}),(0,B.jsx)("strong",{className:"Amb__ttRiver",children:(0,N.Ay)(W)})]}),(0,B.jsx)("div",{className:"Amb__plus"}),(0,B.jsx)(r.A.Header,{children:(0,B.jsx)("div",{children:U})}),(0,B.jsx)(r.A.Body,{children:(0,B.jsx)("div",{children:F})}),(0,B.jsx)(r.A.Footer,{children:(0,B.jsx)(g.A,{title:$,onOpen:z,onDemandClose:!0,passOnDemandCloseHandlerToChild:!0,link:(0,B.jsx)("span",{className:"Button Amb__button button quit small-only-expanded",children:Y}),children:(0,B.jsx)(G,{showHeading:!1})})})]}),V=t(63447),J=t(64097);const Z=J.m.BOOKING_TYPE_CLIENT_DIRECT,ee=J.m.BOOKING_TYPE_TRAVEL_AGENT,se=J.m.BOOKING_TYPE_GROUP_BOOKING,{App:{showTTRiverText:te,tripByBrandMapping:oe}}=m.Aq.getConfigs(),{BookingsList:{viewButtonLabel:ne,uniworldFutureTripNotAvailable:ae,uniworldPastTripNotAvailable:ie},FutureTravelCredit:{titleName:re,futureCreditButton:le}}=m.Aq.getTranslations(),de=({bookings:e,viewButtonHandler:s,noStatus:t,useLightBG:o,showTripSchedule:n,showAmb:a,useImg:i})=>{let r="BookingsListItem__productName";r+=n?" ":" BookingsListItem__productName--completed ";let l="BookingsListItem__viewButton";l+=n?" BookingsListItem__viewButton--border ":" ";const{App:{brandId:g},FutureTravel:{futureTravelExpiryDate:u,futureTravelImage:h}}=m.Aq.getConfigs();return(0,B.jsxs)("div",{className:"grid-x grid-margin-x BookingsListItem",children:[e.map((e=>{const{mtpBookingId:a,startDate:p,endDate:_,startLocation:x,endLocation:k,title:N,productName:j,tripEnded:b,brandName:v,product:{backgroundUrl:A}={},isfutureTravelCredit:I,bookingNumber:{bookingType:y},isMarketingDataNotAvailable:w,disableTile:C}=e,T=y===ee||y===se||y===Z;return(0,B.jsxs)("div",{className:"cell medium-4 BookingsListItem__wrapper"+(b?" BookingsListItem__wrapper--disabled":""),children:[I&&(0,B.jsxs)("div",{className:"BookingsListItem__trigger BookingsListItem__ftcTile",children:[(0,B.jsxs)(d.A,{src:h,useDarkBG:!0,children:[(0,B.jsx)("div",{className:"cell shrink text-center",children:(0,B.jsx)("span",{className:"BookingsListItem__ftcExpire",children:(0,B.jsx)(c.A,{flatMode:!0,useLightBG:!0,from:u,to:"",noExpire:I})})}),"getours"===g&&v&&(0,B.jsx)(d.A,{useImg:i,src:`${g}/media/images/${v.toLowerCase().replace(/\s/g,"")}
1-logo.svg`,className:`BackgroundImage__logo BackgroundImage__logo--${v.toLowerCase().replace(/\s/g,"")}`})]}),(0,B.jsxs)("div",{className:"grid-x BookingsListItem__container",children:[(0,B.jsxs)("div",{className:"cell BookingsListItem__nameContainer",children:[(0,B.jsx)("h3",{className:"BookingsListItem__nameWrapper",children:(0,B.jsx)("span",{className:r,children:re})}),(0,B.jsx)("div",{className:"BookingsListItem__ftcCountdown",children:(0,B.jsx)(c.A,{noShadow:!0,noDate:!0,useDarkBG:!0,from:u,to:""})})]}),!!T&&(0,B.jsx)("button",{type:"button",onClick:()=>(0,B.jsx)("div",{children:s(a)}),className:`cell ${l}`,children:(0,B.jsx)("span",{className:"Button button primary BookingsListItem__ftcButton",children:le})})]})]}),!I&&(0,B.jsxs)("button",{type:"button",className:"BookingsListItem__trigger "+(C?"BookingsListItem__trigger--disabled":""),onClick:()=>{b||(((e,s)=>{(0,f.l)({message:`User clicked on "${e}" product on the Your Upcoming Trips Page`,status:"info",userEmail:localStorage.getItem("USER_EMAIL"),loginSource:localStorage.getItem("LOGIN_SOURCE"),corrId:localStorage.getItem("CORRELATION_ID"),bookingId:s})})(j,a),s(a))},disabled:b,style:b?{pointerEvents:"none",opacity:.6,cursor:"not-allowed"}:{},children:[(0,B.jsxs)(d.A,{src:A,useDarkBG:!0,children:[(0,B.jsx)("div",{className:"cell shrink text-center",children:p&&_&&!b&&(0,B.jsx)(c.A,{flatMode:!0,noStatus:t,useLightBG:o,from:p,to:_,noDate:!0})}),"getours"===g&&v&&(0,B.jsx)(d.A,{useImg:i,src:`${g}/media/images/${v.toLowerCase().replace(/\s/g,"")}-logo.svg`,className:`BackgroundImage__logo BackgroundImage__logo--${v.toLowerCase().replace(/\s/g,"")}`})]}),(0,B.jsxs)("div",{className:"grid-x BookingsListItem__container",children:[(0,B.jsxs)("div",{className:"cell BookingsListItem__nameContainer "+(C?"BookingsListItem__nameContainer--disabled":""),children:["                                        ",(0,B.jsxs)("h3",{className:"BookingsListItem__nameWrapper",children:[(0,B.jsx)("span",{className:r,children:j||"Your New Booking"}),oe[v]&&(0,B.jsx)("div",{className:"BookingsListItem__status",children:`Trip Run By ${oe[v]}`})]}),n&&(0,B.jsx)(V.A,{showCountDown:!1,startLocation:x,endLocation:k,startDate:p,endDate:_,tripEnded:b,title:N,brandName:v})]}),C&&(0,B.jsx)("div",{className:"BookingsListItem__disableText",children:"If you\u2019ve just booked, please allow up to 24 hours for your booking to be displayed."}),!n&&(0,B.jsx)("div",{className:"cell BookingsListItem__dateContainer",children:m.gX.format(_,"D MMMM YYYY")}),!C&&(0,B.jsx)("div",{className:`cell ${l}`,children:!b&&(n?(0,B.jsx)("span",{className:"Button button primary",children:ne}):(0,B.jsx)("span",{className:"Button button quit hollow",children:ne}))})]}),w&&(0,B.jsxs)("div",{type:"button",onClick:e=>e.stopPropagation(),className:"BookingsListItem__btnOverlayContainer",children:[!b&&(0,B.jsx)("div",{className:"BookingsListItem__overlayMessage",children:ae}),b&&(0,B.jsx)("div",{className:"BookingsListItem__overlayMessage",children:ie})]})]})]},m.Aq.getUID())})),a&&(0,B.jsx)("div",{className:"cell medium-4 BookingsListItem__amb BookingsListItem__wrapper "+(te?"BookingsListItem__ttRiver":""),children:(0,B.jsx)(Q,{})})]})};de.displayName="BookingsListItem",de.defaultProps={noStatus:!1,useLightBG:!1,bookings:[],showTripSchedule:!0,showAmb:!1};var ce=de;const{BookingsList:{pastBookingsHeader:me}}=m.Aq.getTranslations(),ge=(e,s)=>{const t=[{title:(0,B.jsx)(r.A.Header,{children:me}),content:(0,B.jsx)(r.A.Body,{children:(0,B.jsx)("div",{className:"grid-x",children:(0,B.jsx)("div",{className:"cell",children:(0,B.jsx)(ce,{showTripSchedule:!1,bookings:e,viewButtonHandler:s})},m.Aq.getUID())})}),expanded:!1,index:0}];return(0,B.jsx)(l.A,{items:t,className:"BookingsList__accordion"})},ue=({bookings:e,viewButtonHandler:s})=>(0,B.jsx)(r.A,{noBorder:!0,componentName:"BookingsList",children:ge(e,s)});ue.displayName="CompletedTrips",ue.defaultProps={bookings:[]};var he=ue;const{BookingsList:{upcomingBookingsHeader:pe,upcomingBookingsSubHeader:_e}}=m.Aq.getTranslations(),xe=({bookings:e,viewButtonHandler:s})=>(0,B.jsxs)(r.A,{componentName:"BookingsList",children:[(0,B.jsx)(r.A.Header,{className:"BookingsList__upcomingHeader",children:pe}),(0,B.jsx)(r.A.Body,{children:(0,B.jsxs)("div",{className:"grid-x grid-margin-x",children:[(0,B.jsx)("div",{className:"cell BookingsList__upcomingSubHeader",children:_e}),(0,B.jsx)("div",{className:"cell",children:(0,B.jsx)(ce,{showAmb:!0,bookings:e,viewButtonHandler:s}
1)},m.Aq.getUID())]})})]});xe.displayName="UpcomingTrips",xe.defaultProps={bookings:[]};var ke=xe;const Ne=({bookings:e,viewButtonHandler:s})=>{const t=e.filter((({isCurrentBooking:e=!1})=>e)),n=!!t.length,a=e.filter((({isCurrentBooking:e=!0})=>!e)),i=!!a.length;return(0,B.jsxs)(o.Fragment,{children:[n?(0,B.jsx)(ke,{bookings:t,viewButtonHandler:s}):(0,B.jsx)("div",{className:"cell medium-12",children:(0,B.jsx)(G,{})}),i&&(0,B.jsx)(he,{viewButtonHandler:s,noStatus:!0,useLightBG:!0,bookings:a})]})};Ne.displayName="BookingsList",Ne.defaultProps={bookings:[]};var fe=Ne,Be=t(14074),je=t(74945),be=t(4769),ve=t(50805),Ae=t(67978),Ie=t(66863),ye=t(37517),we=t(46854),Ce=t(37182);const Te=J.m.BOOKING_TYPE_CLIENT_DIRECT,Se=J.m.BOOKING_TYPE_TRAVEL_AGENT,Le=J.m.BOOKING_TYPE_GROUP_BOOKING,Me=window.innerWidth<1280,{App:{brandCode:De,brandId:Re,showTTRiverText:Ee,showOperatedByBrand:He},Home:{bannerImage:Oe}}=m.Aq.getConfigs(),{Amb:{ttRiverHeading:qe}}=m.Aq.getTranslations();class Pe extends o.PureComponent{constructor(e){super(e),this.getBookingsBrands=e=>{const{dispatchUpdateBookingsData:s}=this.props,t=e.map((e=>e.tourInstanceId));_.P4.getBookingBrands({tourInstanceIDs:t}).then((t=>{const o=e.map((e=>({...e,brandName:t.find((s=>s.id===e.tourInstanceId))?t.find((s=>s.id===e.tourInstanceId)).brandName:""})));return s(o),!0})).catch((e=>m.Aq.consoleErr("*** GET BOOKINGS BRANDS ERROR ***",e)))},this.getBookings=()=>{const{dispatchUpdateBookingsData:e,showBookingList:s,dispatchRefreshBookingsList:t}=this.props,{thunks:{clearFromCart:o},email:n}=this.props,{actions:{setBookingClose:a}}=this.props;o(),a(!1),sessionStorage.removeItem("flightdata"),sessionStorage.removeItem("travelextraconsent"),sessionStorage.removeItem("flightsearchmode"),sessionStorage.removeItem("paymentmode"),sessionStorage.removeItem("promotionamount"),sessionStorage.removeItem("plancancelled");const i=sessionStorage.getItem("firstname"),r=sessionStorage.getItem("lastname"),l=sessionStorage.getItem("bookingnumber");window.instalmentWidgetLoaded=!1,_.P4.getBookingComponents({brandCode:De,brandId:Re,firstName:i,lastName:r,bookingNumber:l}).then((o=>{t("");const a=o.filter((({isCurrentBooking:e=!1})=>e)).length,i=o.filter((({isCurrentBooking:e=!0})=>!e)).length;if(a+i>1){const e=o.map((e=>e.bookingNumber.name));(0,f.l)({message:`Customer has ${e.length} bookings`,status:"warn",errorText:e.join(","),event:"Multiple Bookings",outcome:"Warning",corrId:localStorage.getItem("CORRELATION_ID"),loginSource:localStorage.getItem("LOGIN_SOURCE"),userEmail:n})}e(o);const r={action:"trips_information",category:"trips_information",label:`${a} Upcoming Trips/ ${i} Completed Trips`};m.j0.click(r);const l=o.filter((({isCurrentBooking:e=!1})=>e));return!l.length||s||l[0].isfutureTravelCredit||l[0].isMarketingDataNotAvailable||1===performance.navigation.type?this.setState({showMultiTripPage:!0}):this.setActiveBooking(l[0].mtpBookingId,o),He&&o&&o.length>0&&this.getBookingsBrands(o),!0})).catch((e=>(this.setState({showMultiTripPage:!0}),m.Aq.consoleErr("*** GET BOOKINGS COMPONENTS ERROR ***",e))))},this.setActiveBooking=(e,s)=>{sessionStorage.removeItem("travelextraconsent");const{dispatchUpdateActiveBooking:t,dispatchUpdateActiveBookingDetails:o,history:n,email:a}=this.props,{actions:{setShowInsuranceModal:i,setShowInsuranceDifference:r,setInsuranceData:l,setFlightAmount:d}}=this.props;l(!1),i(!1),r(!1),d(!1);let{bookings:c}=this.props;s&&(c=s);const g=c.find((({mtpBookingId:s})=>s===e));if(g.tripEnded){const e={action:"click",category:"past_booking",label:`${g.productName}`};m.j0.click(e),(0,f.l)({message:`Customer clicked ${g.productName} past booking`,status:"info",event:"Past Booking Click",corrId:localStorage.getItem("CORRELATION_ID"),userEmail:a})}const u={action:"select_trip",category:"home_select_trip",label:`${g.productName}`};if(m.j0.click(u),g){const e={startDate:g.startDate,bookingUid:g.id,bookingId:g.number,bookingNumber:g.bookingNumber&&g.bookingNumber.name,sellingCompanyShortName:g.sellingCompany&&g.sellingCompany.sellingCompanyShortName,clientId:g.bookingPassenger&&g.bookingPassenger.clientID,brandCode:De,brandId:Re},s=g.bookingNumber&&g.bookingNumber.bookingType,a=g.isfutureTravelCredit;t(g),_.P4.getBookingDetails(e).then((e=>{o(m.kH.addProgressInfo(e,g.startDate));return a&&(s===Se||s===Le||s===Te)?n.push("/bookingoverview"):n.push("/dashboard")})).catch((e=>(this.setState({showMultiTripPage:!0}),m.Aq.consoleErr("*** GET BOOKING DETAILS ERROR ***",e))))}},this.state={showMultiTripPage:!1,refreshBookingsList:!1};const{userThunk:{getUserDetails:s}}=e;this.getBookings(),s()}static getDerivedStateFromProps(e){const{refreshBookingsList:s}=e;return s?{refreshBookingsList:!0}:{refreshBookingsList:!1}}componentDidUpdate(){const{refreshBookingsList:e}=this.state;e&&this.getBookings()}componentWillUnmount(){}render(){const{showMultiTripPage:e}=this.state,{bookings:s}=this.props;return e?(0,B.jsxs)("div",{className:"cell Home",children:[Ee&&Me&&(0,B.jsx)(Ie.A,{message:qe,className:"DownTimeMessage"}),(0,B.jsx)(i.A,{dontShowTripBy:!0,staticImage:Oe,withHomeButton:!1,withCountdown:!1,withGreeting:!0}),(0,B.jsx)("div",{className:"grid-container",children:(0,B.jsx)("div",{className:"grid-x grid-margin-x",children:(0,B.jsx)("div",{className:"cell large-12",children:(0,B.jsx)(fe,{bookings:s,viewButtonHandler:this.setActiveBooking})})})})]}):(0,B.jsx)("div",{className:"Home__container"})}}Pe.displayName="Home";var Ge=(0,a.y)((0,n.Ng)((e=>({refreshBookingsList:e.userData.refreshBookingsList,email:e.userData.email,bookings:e.bookings,showBookingList:e.appData.showBookingList})),(e=>({userThunk:(0,ve.zH)(Be,e),chatThunk:(0,ve.zH)(je,e),thunks:(0,ve.zH)(be,e),actions:(0,ve.zH)(Ae,e),dispatchUpdateBookingsData:(0,ve.zH)(ye.e,e),dispatchUpdateActiveBooking:(0,ve.zH)(we.v,e),dispatchUpdateActiveBookingDetails:(0,ve.zH)(Ce.pe,e),dispatchRefresh
1BookingsList:s=>e((0,x.of)(s))})))(Pe));const Ue=()=>(0,B.jsx)(Ge,{});Ue.displayName="HomePage";var Fe=Ue},51763:function(e,s,t){var o=this&&this.__createBinding||(Object.create?function(e,s,t,o){void 0===o&&(o=t),Object.defineProperty(e,o,{enumerable:!0,get:function(){return s[t]}})}:function(e,s,t,o){void 0===o&&(o=t),e[o]=s[t]}),n=this&&this.__setModuleDefault||(Object.create?function(e,s){Object.defineProperty(e,"default",{enumerable:!0,value:s})}:function(e,s){e.default=s}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var s={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&o(s,e,t);return n(s,e),s};Object.defineProperty(s,"__esModule",{value:!0}),s.route=s.match=s.history=s.location=void 0;var i=a(t(65173));s.location=i.shape({hash:i.string.isRequired,key:i.string,pathname:i.string.isRequired,search:i.string.isRequired,state:i.oneOfType([i.array,i.bool,i.number,i.object,i.string])}),s.history=i.shape({action:i.oneOf(["PUSH","REPLACE","POP"]).isRequired,block:i.func.isRequired,createHref:i.func.isRequired,go:i.func.isRequired,goBack:i.func,goForward:i.func,back:i.func,forward:i.func,index:i.number,length:i.number,listen:i.func.isRequired,location:s.location.isRequired,push:i.func.isRequired,replace:i.func.isRequired}),s.match=i.shape({isExact:i.bool,params:i.object.isRequired,path:i.string.isRequired,url:i.string.isRequired});var r={path:i.oneOfType([i.string,i.arrayOf(i.string)]),exact:i.bool,strict:i.bool,sensitive:i.bool,component:i.func};r.routes=i.arrayOf(i.shape(r)),s.route=i.shape(r),s.default={location:s.location,history:s.history,match:s.match,route:s.route}}}]);

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.