1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fd1fc972-f518-4ffa-bf13-60fec7d0d1d3",e._sentryDebugIdIdentifier="sentry-dbid-fd1fc972-f518-4ffa-bf13-60fec7d0d1d3")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5784],{5784:(e,t,n)=>{n.r(t),n.d(t,{default:()=>T});var i=n(37876),o=n(72391),a=n(14232),s=n(88992),l=n(71090),d=n(59232),r=n(20538),h=n(68044),c=n(62068),p=n(40753),m=n(1992),g=n(931),x=n(13737);let f=o.default.div.withConfig({displayName:"PhoneLightboxModal.styles__ContentWrapper",componentId:"sc-40836406-0"})(e=>{let{theme:t}=e;return(0,o.css)(["display:flex;margin-bottom:",";@media (max-width:","){flex-direction:column;}"],t.spacing.xl,t.breakpoints.min.tablet)}),u=o.default.div.withConfig({displayName:"PhoneLightboxModal.styles__Section",componentId:"sc-40836406-1"})(e=>{let{theme:t}=e;return(0,o.css)(["width:50%;margin-top:16px;@media (max-width:","){width:100%;}"],t.breakpoints.min.tablet)}),y=(0,o.default)(u).withConfig({displayName:"PhoneLightboxModal.styles__ListSection",componentId:"sc-40836406-2"})(e=>{let{theme:t}=e;return(0,o.css)(["background-color:",";border-top-right-radius:",";border-bottom-right-radius:",";margin-left:15px;padding:12px;width:calc(50% - 15px);@media (max-width:","){width:100%;margin-left:0;border-bottom-left-radius:",";border-top-right-radius:0;}"],t.colors.background.secondary,t.radius.md,t.radius.md,t.breakpoints.min.tablet,t.radius.md)}),b=o.default.p.withConfig({displayName:"PhoneLightboxModal.styles__HeaderText",componentId:"sc-40836406-3"})(["margin:0;text-align:center;"]),w=(0,o.default)(b).withConfig({displayName:"PhoneLightboxModal.styles__Title",componentId:"sc-40836406-4"})(["font-size:1.5rem;line-height:30px;margin-top:19px;"]),_=(0,o.default)(b).withConfig({displayName:"PhoneLightboxModal.styles__SubTitle",componentId:"sc-40836406-5"})(["font-size:1.125rem;line-height:22.5px;"]),M=o.default.p.withConfig({displayName:"PhoneLightboxModal.styles__Label",componentId:"sc-40836406-6"})(["font-size:1rem;line-height:24px;margin-top:20px;"]),I=(0,o.default)(r.Typography).attrs({variant:"text3"}).withConfig({displayName:"PhoneLightboxModal.styles__StyledErrorText",componentId:"sc-40836406-7"})(e=>{let{theme:t}=e;return(0,o.css)(["color:",";"],t.colors.text.state.dangerBold)}),j=o.default.h2.withConfig({displayName:"PhoneLightboxModal.styles__ListTitle",componentId:"sc-40836406-8"})(["font-size:1rem;margin:12px 9px 16px 0;"]),C=o.default.p.withConfig({displayName:"PhoneLightboxModal.styles__ItemTitle",componentId:"sc-40836406-9"})(["font-size:0.875rem;line-height:18px;text-align:left;margin:0;"]),L=o.default.p.withConfig({displayName:"PhoneLightboxModal.styles__ItemContent",componentId:"sc-40836406-10"})(["font-size:0.875rem;line-height:18px;text-align:left;margin:0;"]),v=(0,o.default)(L).withConfig({displayName:"PhoneLightboxModal.styles__ListFooter",componentId:"sc-40836406-11"})(["margin-top:16px;"]),N=o.default.div.withConfig({displayName:"PhoneLightboxModal.styles__ItemSection",componentId:"sc-40836406-12"})(["display:flex;align-items:baseline;"]),P=(0,o.default)("form").withConfig({displayName:"PhoneLightboxModal.styles__Form",componentId:"sc-40836406-13"})(e=>{let{theme:t}=e;return(0,o.css)(["display:flex;flex-direction:column;gap:",";"],t.spacing["3xl"])}),S=o.default.div.withConfig({displayName:"PhoneLightboxModal.styles__SuccessSection",componentId:"sc-40836406-14"})(e=>{let{theme:t}=e;return(0,o.css)(["display:flex;flex-direction:column;margin:0 85px;gap:",";align-items:center;justify-content:center;min-height:350px;@media (max-width:","){margin:0;}"],t.spacing.xl,t.breakpoints.min.tablet)}),k=(0,o.default)(r.Typography).attrs({variant:"display4",variantTabletUp:"display3"}).withConfig({displayName:"PhoneLightboxModal.styles__SuccessMessage",componentId:"sc-40836406-15"})(["text-align:center;"]),T=()=>{let[e,t]=(0,a.useState)(!1),[n,o]=(0,a.useState)(null),[b,T]=(0,a.useState)(!1),{t:R}=(0,d.Bd)(),D=(0,p.A)({screen:"tablet",type:"min"}),F=(0,a.useMemo)(()=>(e=>(0,x.Ik)({phone:(0,x.Yj)().min(10,e("minCharacters")).required(e("fieldRequired"))}).required())(R),[R]),{control:U,handleSubmit:W,reset:Y,formState:{isSubmitting:$}}=(0,s.mN)({defaultValues:{phone:""},resolver:(0,l.t)(F)}
1),{field:{onChange:q,value:A},fieldState:{error:H,invalid:V}}=(0,s.as)({name:"phone",control:U}),{onSubmit:G}=(e=>{let{setIsSuccess:t,setSubmitErrorMessage:n}=e,{mutateAsync:i}=(0,m.useMutation)(e=>(0,g.NA)(e));return{onSubmit:async e=>i(e).then(()=>t(!0)).catch(e=>{n(e.serverMessage??null)})}})({setIsSuccess:t,setSubmitErrorMessage:o});(0,a.useEffect)(()=>{let e=e=>{if("#phone"===new URL(`${window.location.origin}/${e.newURL}`).hash){if(!(0,h.M3)()){window.location.hash="#login";return}return T(!0)}};return e({newURL:window.location.hash}),window.addEventListener("hashchange",e,{passive:!0}),()=>{window.removeEventListener("hashchange",e,!1)}},[]);let J=()=>{window.history.replaceState({},document.title,`${window.location.pathname}${window.location.search}`),T(!1),t(!1),o(null),Y({phone:""})};return(0,i.jsx)(r.ModalResponsive,{open:b,onClose:J,variant:D?"large":"drawer","data-sentry-element":"ModalResponsive","data-sentry-component":"PhoneLightboxModal","data-sentry-source-file":"PhoneLightboxModal.tsx",children:e?(0,i.jsxs)(S,{children:[(0,i.jsx)(k,{children:R("phoneModal@thankYouMessage")}),(0,i.jsx)(r.Button,{onClick:J,text:R("close")})]}):(0,i.jsxs)(f,{children:[(0,i.jsxs)(u,{children:[(0,i.jsx)(w,{children:R("phoneModal@HiTraveller")}),(0,i.jsx)(_,{children:R("phoneModal@readyToFind")}),(0,i.jsxs)(P,{onSubmit:W(G),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(M,{children:R("phoneModal@whatsYourPhone")}),(0,i.jsx)(c.D,{name:"phone",onChange:(e,t)=>
1q(t),value:A,hasError:V,hint:H?.message}),n&&(0,i.jsx)(I,{children:n})]}),(0,i.jsx)(r.Button,{type:"submit",isLoading:$,text:R("phoneModal@updateMyNumber")})]})]}),(0,i.jsxs)(y,{children:[(0,i.jsx)(j,{children:R("phoneModal@phoneCallIsTheBestWay")}),(0,i.jsxs)(N,{children:[(0,i.jsx)(E,{size:"xLarge"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(C,{children:R("shorter","Faster")}),(0,i.jsx)(L,{children:R("phoneModal@theEasiestWay")})]})]}),(0,i.jsxs)(N,{children:[(0,i.jsx)(z,{size:"xLarge"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(C,{children:R("efficient","Efficient")}),(0,i.jsx)(L,{children:R("phoneModal@whenYouBookWithExoticca")})]})]}),(0,i.jsxs)(N,{children:[(0,i.jsx)(B,{size:"large"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(C,{children:R("personalized")}),(0,i.jsx)(L,{children:R("phoneModal@findAnswers")})]})]}),(0,i.jsx)(v,{children:R("modalPhone@absolutelyFree")})]})]})})};var E=(0,o.default)(r.ClockFastIcon).withConfig({displayName:"PhoneLightboxModal___StyledClockFastIcon",componentId:"sc-ebcca30b-0"})({marginBottom:"10px",marginRight:"10px"}),z=(0,o.default)(r.CogIcon).withConfig({displayName:"PhoneLightboxModal___StyledCogIcon",componentId:"sc-ebcca30b-1"})({marginBottom:"10px",marginRight:"10px"}),B=(0,o.default)(r.SmileIcon).withConfig({displayName:"PhoneLightboxModal___StyledSmileIcon",componentId:"sc-ebcca30b-2"})({marginBottom:"10px",marginRight:"10px"})},62068:(e,t,n)=>{n.d(t,{D:()=>i.D});var i=n(48174)}}]); 2//# sourceMappingURL=5784.b836b58c9863a2f8.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.