PageSourceSearch

https://my.getours.com/getours/js/5946.240c0433b0aab3cb1f15.js

js getours.com collected 2026-10-02 10:01:59 UTC 13,463 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmy_travel_portal_frontend=self.webpackChunkmy_travel_portal_frontend||[]).push([[5946],{38743:function(e,t,s){s.d(t,{A:function(){return l}});var a=s(65043),n=s(59801),o=s(60400),r=s(70579);const{Accordion:{expandAll:i,collapseAll:d}}=o.Aq.getTranslations();class l extends a.Component{constructor(e){super(e),this.onChangeHandler=(e=[])=>{this.setState((({accordionItems:t})=>({accordionItems:t.map((t=>e&&e.indexOf&&e.indexOf(t.index)>=0?{...t,expanded:!0}:{...t,expanded:!1})),pickFromProps:!1})))};const{items:t}=this.props;this.state={accordionItems:t,pickFromProps:!0}}static getDerivedStateFromProps(e,t){const{items:s}=e,{pickFromProps:a}=t;return s!==t.accordionItems?{accordionItems:a?s:t.accordionItems}:null}onClickHandler(e,t){e.preventDefault();const{accordionItems:s}=this.state;this.setState({accordionItems:s.map((e=>({...e,expanded:t}))),pickFromProps:!1})}render(){const{allowMultiple:e=!1,showButtons:t=e,heading:s,className:a="",header:l=!1,onChange:c=()=>{}}=this.props,{accordionItems:u}=this.state,h=u.filter((e=>!0===e.expanded)),m=a?`${a}__item`:"",g=a?`${a}__title`:"",p=a?`${a}__body`:"";return(0,r.jsxs)("div",{className:"Accordion grid-x",children:[l&&(0,r.jsx)("div",{className:"cell",children:(0,r.jsxs)("div",{className:"grid-x Accordion__header",children:[(0,r.jsx)("h4",{className:"cell small-12 medium-7 Accordion__heading",children:s}),t&&(0,r.jsxs)("div",{className:"cell small-12 medium-5 expanded Accordion__button",children:[(0,r.jsx)("button",{className:"button"+(h.length===u.length?" selected":""),onClick:e=>this.onClickHandler(e,!0),type:"button",children:i}),(0,r.jsx)("button",{className:"button"+(0===h.length?" selected":""),onClick:e=>this.onClickHandler(e,!1),type:"button",children:d})]})]})}),(0,r.jsx)("div",{className:"cell",children:(0,r.jsx)(n.Accordion,{onChange:t?this.onChangeHandler:c,accordion:!e,className:`accordion ${a}`,children:u.map((e=>(0,r.jsxs)(n.AccordionItem,{id:e.id,uuid:e.index,expanded:e.expanded,className:`accordion__item ${m}`,children:[(0,r.jsxs)(n.AccordionItemTitle,{className:`accordion__title ${g}`,children:[e.title,(0,r.jsx)("div",{className:"accordion__arrow",role:"presentation"})]}),(0,r.jsx)(n.AccordionItemBody,{className:`accordion__body ${p}`,children:e.content})]},e.id||o.Aq.getUID())))})})]})}}l.displayName="Accordion",l.defaultProps={allowMultiple:!1,showButtons:!1,className:"",heading:"",header:!1}},66863:function(e,t,s){s.d(t,{A:function(){return l}});var a=s(65043),n=s(80229),o=s(97512),r=s(24097),i=s(70579);const d=({message:e,className:t})=>{const[s,d]=(0,a.useState)(!1),l={replace:e=>{if("a"===e.name&&e.attribs&&"#LoginFAQModal"===e.attribs["data-target"])return(0,i.jsx)("a",{tabIndex:"0",role:"button",onClick:()=>d(!0),onKeyDown:e=>"Enter"===e.key&&d(!0),children:(0,n.zd)(e.children)})}};return(0,i.jsxs)(i.Fragment,{children:[s&&o.createPortal((0,i.jsx)(r.A,{isFirebase:!0,openModal:s,onCloseLoginFaq:()=>d(!1)}),document.body),(0,i.jsx)("div",{className:`AlertMessageBlock__message ${t}`,children:(0,n.Ay)(e,l)})]})};d.displayName="AlertMessageBlock";var l=d},65294:function(e,t,s){s.d(t,{A:function(){return d}});var a=s(65043),n=s(60400),o=s(70579);const{App:{defaultTripImages:{square:r,wide:i}}}=n.Aq.getConfigs();class d extends a.PureComponent{constructor(e){super(e),this.checkIfImageExists=(e,t)=>{const s=new Image;s.src=e,s.complete?t(!0):(s.onload=()=>{t(!0)},s.onerror=()=>{t(!1)})};const{src:t}=this.props;this.state={src:t,loading:!0}}componentDidMount(){n.Aq.setToMounted(this),this.setState({loading:!0});const{src:e,defaultImageType:t,customOnLoad:s}=this.props,a="wide"===t?i:r;this.checkIfImageExists(e,(t=>{t?this.setState({src:e}):this.setState({src:a}),this.setState({loading:!1});const{src:n}=this.state;s&&s(n)}))}componentWillUnmount(){n.Aq.setToUnmounted(this)}render(){const{className:e,children:t,useImg:s,useDarkBG:r,contentStyle:i}=this.props,{src:d,loading:l}=this.state,c={...i,backgroundImage:`url('${d}')`},u=n.Aq.argsToString("BackgroundImage",l&&"BackgroundImage--loading",r&&"BackgroundImage--dark",e);return s&&(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)("img",{src:d,alt:"background"}),t]})||(0,o.jsx)("div",{style:c,className:u,children:t})}}
1d.displayName="BackgroundImage",d.defaultProps={src:"",className:"",useDarkBG:!1,defaultImageType:"wide",useImg:!1,children:null,contentStyle:{}}},27669:function(e,t,s){s.d(t,{A:function(){return f}});s(65043);var a=s(45205),n=s(60400),o=s(70579);const{Countdown:r}=n.Aq.getTranslations(),{Countdown:{themeName:i}}=n.Aq.getConfigs(),d=({children:e})=>(0,o.jsx)("span",{className:"Countdown__message",children:e}),l=({children:e})=>(0,o.jsx)("span",{className:"Countdown__number-context",children:e}),c=({children:e})=>(0,o.jsx)("span",{className:"Countdown__number",children:e}),u=({over:e=!1,children:t})=>(0,o.jsx)("div",{className:"Countdown__count"+(e?" Countdown__count--over":""),children:t}),h=({children:e})=>(0,o.jsx)("span",{className:"Countdown__expiry",children:e}),m=({data:e})=>(0,o.jsxs)(u,{children:[(0,o.jsxs)(l,{children:[r.trip," ",r.day.singular]}),(0,o.jsxs)(c,{children:[" ",e]})]}),g=({data:e})=>(0,o.jsxs)(u,{children:[(0,o.jsxs)(c,{children:[e," "]}),(0,o.jsxs)(l,{children:[r.day[1!==e?"plural":"singular"]," ",r.toGo]})]}),p=({data:e})=>(0,o.jsx)(u,{over:!0,children:(0,o.jsx)(d,{children:e})}),x=({data:e})=>(0,o.jsx)(h,{expires:!0,children:e}),_=({from:e,to:t,useLightBG:s,useDarkBG:d,smallMode:l,flatMode:c,noShadow:u,noDate:h,noStatus:_,noExpire:f})=>{const j="Countdown";let N="",w="FUTURE";return n.gX.todayOrEarlier(e)&&(w="PRESENT"),n.gX.hasOccurred(t)&&(w="PAST"),N=N||c&&`${j}--flat`,N=N||l&&`${j}--small`,N+=s?` ${j}--useLightBG`:"",N+=d?` ${j}--useDarkBG`:"",N+=h?` ${j}--noDate`:"",N+=_?` ${j}--noStatus`:"",(!h||!_)&&(0,o.jsxs)(a.A,{noPadding:!0,noBorder:!0,noShadow:u,componentName:j,className:N||"",themeName:i,children:[!h&&(0,o.jsxs)(a.A.Header,{alignCenter:!0,children:[f&&(0,o.jsx)(x,{data:r.expires}),n.gX.format(e,"D MMM YYYY")]}),!_&&(0,o.jsxs)(a.A.Body,{children:["FUTURE"===w&&(0,o.jsx)(g,{data:n.gX.daysUntil(e)||1}),"PRESENT"===w&&(0,o.jsx)(m,{data:n.gX.daysSince(e)||1}),"PAST"===w&&(0,o.jsx)(p,{data:r.over})]})]})||null};l.displayName="CountdownNumberContext",c.displayName="CountdownNumber",d.displayName="CountdownMessage",u.displayName="CountdownCount",u.defaultProps={over:!1},m.displayName="CountdownUp",g.displayName="CountdownDown",p.displayName="CountdownOver",_.displayName="Countdown",_.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 f=_},32125:function(e,t,s){s.d(t,{A:function(){return y}});var a=s(65043),n=s(97508),o=s(32044),r=s(65294),i=s(27669),d=s(66863),l=s(80229),c=s(60400),u=s(70579);const{Hero:{greeting:{guest:h,member:m,prefix:g},alertMessage:p,healthAlertMessage:x}}=c.Aq.getTranslations(),{App:{brandId:_,tripByBrandMapping:f},Sustainability:{pledgeImage:j,showPledgeImage:N}}=c.Aq.getConfigs(),w=({title:e,image:t,children:s,startDate:n,endDate:w,tripEnded:y,withHomeButton:v,withChatHomeButton:A,withKnowBeforeYouGo:b,staticImage:C,dontShowTripBy:k,firstname:H,withCountdown:q,withTitle:B,customTitle:I,withGreeting:F,brandName:M})=>{const{App:{showKnowBeforeYouGoPage:P},Hero:{showAlertMessage:S,showHealthAlertMessage:T}}=c.Aq.getConfigs();return(0,u.jsxs)("div",{className:"cell Hero","data-testid":"hero",children:[S&&!A&&!P&&(0,u.jsx)(d.A,{message:p,className:"Hero__alertMessage"}),T&&!A&&!P&&(0,u.jsx)(d.A,{message:x,className:"Hero__healthAlertMessage"}),(0,u.jsxs)(r.A,{src:C||t,className:"Hero__image grid-x align-bottom ChatHero__chatBackground",children:[I&&b&&(0,u.jsx)("div",{className:"Hero__knowBeforeYouGoText--text small-10 small-offset-1 medium-6 medium-offset-3",children:(0,l.Ay)(I)}),(0,u.jsx)("div",{className:"cell",children:(0,u.jsxs)("div",{className:"grid-container",children:[q&&(0,u.jsx)("div",{className:"show-for-large Hero__countdown",children:n&&!y&&(0,u.jsx)(i.A,{from:n,to:w})}),s,(0,u.jsxs)("div",{className:"grid-x grid-margin-x",children:[I&&N&&!b&&(0,u.jsx)("div",{className:"cell Hero__joinImage",children:(0,u.jsx)("img",{className:"Hero__sustainabilityLogo",src:j,alt:`${_} sustainability brand logo`})}),(0,u.jsxs)("div",{className:"cell large-12",children:[F&&((0,u.jsxs)(a.Fragment,{children:[(0,u.jsxs)("h1",{"data-hj-suppress":!0,className:"Hero__title Hero__title--light",children:[m," ","brendanvacations"===_&&H]}),(0,u.jsxs)("h2",{"data-hj-suppress":!0,className:"Hero__title",children:[g," ","brendanvacations"!==_&&H]})]})||(0,u.jsx)("h1",{className:"Hero__title",children:h}))||B&&(0,u.jsx)("h1",{className:"Hero__title Hero__trip-title",children:e})||I&&!b&&(0,u.jsx)("h1",{className:"Hero__title Hero__trip-title Hero__sustainability--title",children:I}),e&&B&&!k&&f[M]&&(0,u.jsx)("h1",{className:"Hero__title Hero__trip-title Hero__status",children:`Trip Run By ${f[M]}`})]})]})]})}),v&&(0,u.jsx)("div",{className:"show-for-small-only",children:(0,u.jsx)(o.A,{className:"Hero__home"})}),A&&(0,u.jsx)("div",{children:(0,u.jsx)(o.A,{className:"Hero__chatHome"})})]})]})};w.displayName="Hero",w.defaultProps={title:"",image:"",staticImage:"",firstname:"",startDate:"",endDate:"",customTitle:"",withHomeButton:!0,withChatHomeButton:!1,withCountdown:!0,withTitle:!0,withGreeting:!1,children:null,tripEnded:!1};var y=(0,n.Ng)((({userData:{firstname:e},activeBooking:t})=>{let s=t.product&&t.product.backgroundUrl;return s&&("trafalgar"!==_&&"costsaver"!==_&&"getours"!==_&&"brendanvacations"!==_||(s=s.replace(/-sq(uare)?/g,"").replace(/(\.jpe?g).+/,"$1"),s=s.replace(/herosquare?/g,"hero")),"insightvacations"!==_&&"luxurygold"!==_&&"getours"!==_&&"brendanvacations"!==_||(s=s.replace(/531x531/g,"1920x660"))),{firstname:e,title:t.productName,image:s,startDate:t.startDate,endD
1ate:t.endDate,tripEnded:t.tripEnded,brandName:t.brandName}}))(w)},24097:function(e,t,s){s.d(t,{A:function(){return m}});s(65043);var a=s(60400),n=s(38743),o=s(52003),r=s(80229),i=s(70579);const{LoginFaq:{header:d,questions:l},FirebaseLoginFaq:{questions:c}}=a.Aq.getTranslations(),u=l.map(((e,t)=>({title:(0,i.jsx)("h3",{children:e.question}),content:(0,i.jsx)("div",{children:(0,r.Ay)(e.answer)}),expanded:!1,id:e.id,index:t}))),h=c.map(((e,t)=>({title:(0,i.jsx)("h3",{children:e.question}),content:(0,i.jsx)("div",{children:(0,r.Ay)(e.answer)}),expanded:!1,id:e.id,index:t})));var m=e=>{const{openModal:t,onCloseLoginFaq:s,isFirebase:a}=e;return(0,i.jsx)("div",{className:"LoginFAQModalContainer",children:(0,i.jsx)(o.A,{componentName:"LoginFAQModal",title:d,open:t,onClose:s,children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:"modalbuttoncontainer",children:(0,i.jsx)(n.A,{header:d,showButtons:!0,allowMultiple:!0,items:a?h:u})})})})})})}},55946:function(e,t,s){s.r(t),s.d(t,{default:function(){return f}});s(65043);var a=s(60400),n=(s(51763),s(32125)),o=s(60483),r=s(97508),i=s(5974),d=s(91688),l=s(80229),c=s(70579);const{NotFound:{image:u}}=a.Aq.getConfigs(),{NotFound:{heading:h,message:m,action:g,subHeading:p,subMessage:x}}=a.Aq.getTranslations(),_=({dispatchShowBookingList:e,history:t})=>(0,c.jsx)("div",{className:"NotFound cell",children:(0,c.jsx)(n.A,{withHomeButton:!1,withTitle:!1,staticImage:u,withCountdown:!1,children:(0,c.jsxs)("div",{className:"NotFound__wrapper",children:[(0,c.jsx)("h1",{className:"NotFound__heading",children:h}),(0,c.jsx)("h2",{className:"NotFound__subHeading",children:p}),(0,c.jsx)("p",{className:"NotFound__desc",children:(0,l.Ay)(m)}),(0,c.jsx)("p",{className:"NotFound__desc",children:(0,l.Ay)(x)}),(0,c.jsx)(o.A,{onClick:s=>((e,t,s)=>{e.preventDefault(),t(!0),s.push("/")})(s,e,t),type:"link",to:"/",className:"primary small-only-expanded",children:g})]})})});_.displayName="NotFoundPage";var f=(0,d.y)((0,r.Ng)(null,(e=>({dispatchShowBookingList:t=>e((0,i.RN)(t))})))(_))},51763:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)"default"!==s&&Object.prototype.hasOwnProperty.call(e,s)&&a(t,e,s);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.route=t.match=t.history=t.location=void 0;var r=o(s(65173));t.location=r.shape({hash:r.string.isRequired,key:r.string,pathname:r.string.isRequired,search:r.string.isRequired,state:r.oneOfType([r.array,r.bool,r.number,r.object,r.string])}),t.history=r.shape({action:r.oneOf(["PUSH","REPLACE","POP"]).isRequired,block:r.func.isRequired,createHref:r.func.isRequired,go:r.func.isRequired,goBack:r.func,goForward:r.func,back:r.func,forward:r.func,index:r.number,length:r.number,listen:r.func.isRequired,location:t.location.isRequired,push:r.func.isRequired,replace:r.func.isRequired}),t.match=r.shape({isExact:r.bool,params:r.object.isRequired,path:r.string.isRequired,url:r.string.isRequired});var i={path:r.oneOfType([r.string,r.arrayOf(r.string)]),exact:r.bool,strict:r.bool,sensitive:r.bool,component:r.func};i.routes=r.arrayOf(r.shape(i)),t.route=r.shape(i),t.default={location:t.location,history:t.history,match:t.match,route:t.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.