try{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]="01ab62a9-7ba0-4583-ae3c-864a1ab6bfc3",e._sentryDebugIdIdentifier="sentry-dbid-01ab62a9-7ba0-4583-ae3c-864a1ab6bfc3")}catch(e){}{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:luxgroup-customer-portal":!0})}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"production-luxuryescapes-4a12596"};"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4886],{74276:function(e,t,a){var n,r,i=a(63696),l=a(385022),o=a(469489),s=a(293477),c=a(705072),u=a(204389),d=a(773882),m=a(507336),h=a(714746),p=a(1581),f=a(553691),g=a(153791),y=a(150943),E=a(432446),v=a(437523),b=a(48623),A=a(701809),S="email",w=b.Ay.div.withConfig({displayName:"ShareModal__ShareLinkTextContainer",componentId:"sc-yrgout-0"})(["cursor:pointer;background:",";overflow:hidden;padding:",";"],e=>e.theme.palette.neutral.default.six,(0,A.D0)(12)),k=b.Ay.div.withConfig({displayName:"ShareModal__CopyLinkOuterContainer",componentId:"sc-yrgout-1"})(["border:1px solid ",";overflow:hidden;"],e=>e.theme.palette.neutral.default.five),C={offerShareButtonClick:c.yc,offerShareComplete:c.Zt};t.A=(0,l.Ng)(function(e){return{loggedIn:(0,u.W0)(e)}},C)(function(e){var t,[a,l]=(0,i.useState)(!1),[c,u]=(0,i.useState)(e.mode),b=()=>{var{offerShareButtonClick:t,shareConfig:a}=e;a.pageId&&a.pageType&&t(a.pageId,a.pageType),l(!0)},A=function(t,a){var n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],{offerShareComplete:r,shareConfig:i,onShare:l}=e;i.pageId&&i.pageType&&r(i.pageId,i.pageType,t),d.xg({subject:"share",action:null!=a?a:t,category:"offer_page",type:"interaction"}),null==l||l(t),n&&C()},C=()=>{l(!1),u(void 0)},_=(0,i.useMemo)(()=>{if(!e.loggedIn&&e.shareConfig.url){var t=encodeURIComponent(e.shareConfig.url),a=e.shareConfig.mailToSubject;return"mailto:?subject=".concat(a,"&body=").concat(t)}},[e.loggedIn,e.shareConfig.mailToSubject,e.shareConfig.url]),M=()=>{e.shareConfig.url&&((0,s.W)(e.shareConfig.url),(0,h.t)("Link copied to clipboard","success")),A("clipboard",void 0,!1)},{shareConfig:T,children:I,loggedIn:L}=e,x=i.Children.only(I),D=x?i.cloneElement(x,{onClick:e=>{var t=x.props.onClick;t&&t(e),b()}}):null,B=(0,i.useMemo)(()=>"Share this ".concat(T.pageType),[T.pageType]),F=T.shareMessage||"";return i.createElement(i.Fragment,null,D,i.createElement(o.A,{title:B,isOpen:a,onClose:C},i.createElement(i.Fragment,null,c===S&&i.createElement(m.A,{onShare:A,closeShareModal:C,shareMessage:F,shareConfig:T}),c!==S&&i.createElement(p.A,{direction:"vertical",gap:16},i.createElement("div",null,i.createElement(f.Ay,{onShare:A,shareConfig:T}),i.createElement(f.Dr,{kind:"tertiary",href:_,onClick:()=>{L?null==u||u(S):A("email")},startIcon:n||(n=i.createElement(y.A,null))},"Email")),(0,s.v)()&&i.createElement(k,null,i.createElement(p.A,{direction:"horizontal",gap:0,verticalAlign:"center"},i.createElement(w,{onClick:M},i.createElement(g.Ay,{variant:"small",wrap:"truncate",colour:"neutral-three"},null===(t=e.shareConfig.url)||void 0===t?void 0:t.replace("https://",""))),i.createElement(E.A,{kind:"tertiary",onClick:M,startIcon:r||(r=i.createElement(v.A,null))},"Copy link")))))))})},179206:function(e,t,a){var n,r=a(268102),i=a(63696),l=a(927365);t.A=function(e){return i.createElement(l.Ay,(0,r.A)({},e,{fill:"none",viewBox:"0 0 24 24"}),n||(n=i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.968 12.9875a1 1 0 0 0 .0214-1.2623l-5.7176-7.274c-.5157-.656-.0483-1.6179.7862-1.6179h3.3902a1 1 0 0 1 .7865.3825l3.5655 4.5417c.3916.4989 1.1427.5118 1.5514.0268l3.8492-4.5688a.9998.9998 0 0 1 .7647-.3557h.6549c.85 0 1.3124.9935.7651 1.644l-4.7224 5.6118a1 1 0 0 0-.0215 1.2613l6.0886 7.7556c.5151.6562.0476 1.6175-.7866 1.6175h-3.3744a1 1 0 0 1-.7862-.382l-3.9479-5.0225c-.3919-.4986-1.143-.5111-1.5513-.0259l-4.2551 5.0566a1 1 0 0 1-.7652.3561H4.593c-.8504 0-1.3127-.994-.7648-1.6443l5.1397-6.1005Zm8.2488 5.9964a.5579.5579 0 0 1-.4387-.2131L6.3549 5.5104c-.2904-.3694-.0272-.911.4427-.911a.563.563 0 0 1 .4428.2153l10.4152 13.2668c.2874.3661.0266.9024-.4388.9024Z",clipRule:"evenodd"})))}},437523:function(e,t,a){var n,r=a(268102),i=a(63696),l=a(927365);t.A=function(e){return i.createElement(l.Ay,(0,r.A)({},e,{fill:"none",viewBox:"0 0 24 24"}),n||(n=i.createElement("path",{fill:"currentColor",d:"m10 17.55-1.77 1.72a2.475 2.475 0 0 1-4.225-1.75c0-.6564.2608-1.2859.725-1.75l4.54-4.55a2.4601 2.4601 0 0 1 3.39-.09l.12.1a1.0008 1.0008 0 0 0 1.415-.015A1.0007 1.0007 0 0 0 14.18 9.8a2.7807 2.7807 0 0 0-.18-.21 4.4602 4.4602 0 0 0-6.09.22l-4.6 4.55a4.48 4.48 0 0 0 6.33 6.33L11.37 19a1.0003 1.0003 0 0 0-.0103-1.3625A1.0002 1.0002 0 0 0 10 17.55ZM20.69 3.31a4.4903 4.4903 0 0 0-6.33 0L12.63 5a.9997.9997 0 0 0 .6729 1.6737A1.0001 1.0001 0 0 0 14 6.45l1.73-1.72a2.4748 2.4748 0 1 1 3.5 3.5l-4.54 4.55a2.4601 2.4601 0 0 1-3.39.09l-.12-.1a1.0007 1.0007 0 1 0-1.4 1.43 2.738 2.738 0 0 0 .23.21 4.4701 4.4701 0 0 0 6.09-.22l4.55-4.55a4.4901 4.4901 0 0 0 .04-6.33Z"})))}},442198:function(e,t,a){var n,r=a(268102),i=a(63696),l=a(927365);t.A=function(e){return i.createElement(l.Ay,(0,r.A)({},e,{fill:"none",viewBox:"0 0 24 24"}),n||(n=i.createElement("path",{fill:"currentColor",d:"M12 2a9.65 9.65 0 0 0-10 9.7 9.5103 9.5103 0 0 0 3.14 7.18.8105.8105 0 0 1 .27.56v1.78a.8099.8099 0 0 0 1.13.71l2-.87a.75.75 0 0 1 .53 0c.9454.2552 1.9207.383 2.9.38a9.7202 9.7202 0 0 0 9.735-9.705A9.72 9.72 0 0 0 12 2Zm6 7.46-2.93 4.66a1.4999 1.4999 0 0 1-2.17.4l-2.34-1.75a.6001.6001 0 0 0-.72 0l-3.16 2.4a.47.47 0 0 1-.68-.63l2.93-4.66a1.5 1.5 0 0 1 2.17-.4l2.34 1.75a.6001.6001 0 0 0 .72 0l3.16-2.4a.47.47 0 0 1 .68.63Z"})))}},486865:function(e,t,a){var n,r,i=a(268102),l=a(63696),o=a(927365);t.A=function(e){return l.createElement(o.Ay,(0,i.A)({},e,{fill:"none",viewBox:"0 0 24 24"}),n||(n=l.createElement("g",null,l.createElement("path",{fill:"currentColor",d:"M17.4984 14.3811c-.2978-.1488-1.7665-.869-2.0402-.9674-.2737-.0996-.4727-.1488-.6716.1488-.199.2965-.7717.9674-.9466 1.1655-.1736.198-.3484.222-.6463.0732a8.1649 8.1649 0 0 1-2.4007-1.4739 8.9595 8.9595 0 0 1-1.6616-2.0597c-.1736-.2976-.018-.4585.1315-.6061.1338-.1332.299-.3469.4473-.5209a2.035 2.035 0 0 0 .299-.4957.5438.5438 0 0 0-.0253-.521c-.0747-.1488-.6716-1.6119-.92-2.2072-.2424-.5785-.4883-.5005-.6728-.5101-.1737-.0084-.3726-.0108-.5716-.0108a1.0984 1.0984 0 0 0-.7958.3732 3.3325 3.3325 0 0 0-.7849 1.1297 3.3193 3.3193 0 0 0-.2605 1.3489 5.7635 5.7635 0 0 0 1.219 3.0751 13.2862 13.2862 0 0 0 5.1005 4.4877 17.6223 17.6223 0 0 0 1.7026.6266 4.1056 4.1056 0 0 0 1.881.1164 3.0726 3.0726 0 0 0 1.1561-.4955 3.058 3.058 0 0 0 .8588-.916 2.4629 2.4629 0 0 0 .1736-1.4139c-.0735-.1248-.2725-.1981-.5715-.3469Zm3.0048-10.8972C18.4533 1.444 15.7285.215 12.8361.0257c-2.8924-.1891-5.7553.6744-8.0558 2.43C2.48 4.211.8987 6.739.3313 9.5684a11.851 11.851 0 0 0 1.364 8.2682L0 24l6.3352-1.6528a11.9866 11.9866 0 0 0 5.7106 1.4476h.0048a11.9947 11.9947 0 0 0 6.6384-2.0072c1.9648-1.3075 3.4963-3.1654 4.4008-5.3389a11.8503 11.8503 0 0 0 .6812-6.8727 11.8837 11.8837 0 0 0-3.2678-6.092Zm-3.1748 16.7905a9.9768 9.9768 0 0 1-5.2778 1.5111h-.0048a9.9498 9.9498 0 0 1-5.0546-1.3791l-.363-.2136-3.7596.9818 1.0032-3.6488-.2351-.3745a9.852 9.852 0 0 1-1.5134-5.5384 9.8565 9.8565 0 0 1 1.8328-5.442 9.926 9.926 0 0 1 4.5612-3.5113 9.9751 9.9751 0 0 1 5.7522-.3972 9.943 9.943 0 0 1 5.0045 2.8508 9.869 9.869 0 0 1 2.5701 5.138 9.845 9.845 0 0 1-.7307 5.6933 9.9004 9.9004 0 0 1-3.785 4.3299Z"}))),r||(r=l.createElement("defs",null,l.createElement("clipPath",{id:"a"},l.createElement("path",{fill:"currentColor",d:"M0 0H24V24H0z"})))))}},507336:function(e,t,a){var n,r,i=a(45841),l=a(241705),o=a(63696),s=a(701809),c=a(792994),u=a(432446),d=a(48623),m=a(414153),h=a(894469),p=a(39222),f=a(293521),g=a(121156),y=a(900160),E=a(782466),v=a(290214),b=d.Ay.div.withConfig({displayName:"ShareByEmailForm__Emails",componentId:"sc-1jeobiu-0"})(["display:flex;flex-wrap:wrap;gap:",";"],(0,s.D0)(8)),A=(0,d.Ay)(u.A).withConfig({displayName:"ShareByEmailForm__SubmitButton",componentId:"sc-1jeobiu-1"})(["align-self:flex-end;"]);class S extends o.Component{constructor(){var e,t;super(...arguments),e=this,(0,l.A)(this,"state",{friendsEmailList:[],trySubmitMessage:"",processing:!1}),(0,l.A)(this,"onSubmitSuccess",()=>{this.props.onShare("email form"),this.setState({trySubmitMessage:"Thanks for sharing!",processing:!1,processed:!0}),setTimeout(this.props.closeShareModal,3e3)}),(0,l.A)(this,"onSubmitFailure",(e,t)=>{var a=t||"Oops something went wrong, please try again";e&&429===e.status&&(a="You have reached the limit for sending emails, please try again tomorrow."),this.setState({trySubmitMessage:a,processing:!1,processed:!0})}),(0,l.A)(this,"handleEmailsResponse",e=>{var t=e.filter(e=>e.error);if(0===t.length)this.onSubmitSuccess();else{var a=t.filter(e=>429===e.error.status);if(a.length>0)this.onSubmitFailure(a[0]);else{var n=t.reduce((e,t)=>{var a,n;if(null!==(a=t.error)&&void 0!==a&&null!==(n=a.message)&&void 0!==n&&n.includes("This email seems to be invalid")){var r=t.error.message.split("This email seems to be invalid: ")[1];e.push(r)}return e},[]);if(0===n.length){this.onSubmitFailure(t[0]);return}var r=1===n.length?"This email seems to be invalid: ".concat(n):"These emails seems to be invalid: ".concat(n.join(", "));this.setState({friendsEmailList:[]}),this.onSubmitFailure(null,r)}}}),(0,l.A)(this,"handleSubmit",(t=(0,i.A)(function*(t){var{shareConfig:a}=e.props;if(t.preventDefault(),e.setState({trySubmitMessage:"",processing:!0,processed:!1}),!e.state.friendsEmailList.length)return e.setState({trySubmitMessage:"Email is not valid or empty",processing:!1}),!1;var n=(0,m.R)(t.currentTarget),r=e.state.friendsEmailList.map(e=>{var t;return null===(t=a.onSend)||void 0===t?void 0:t.call(a,{friend_email:e,message:n.friendMessage}).catch(e=>({error:e}))}),i=yield Promise.all(r);e.handleEmailsResponse(i)}),function(e){return t.apply(this,arguments)})),(0,l.A)(this,"onEmailSubmit",e=>{if(e.validity.valid&&e.value){var t=e.value;this.setState(e=>({friendsEmailList:[...e.friendsEmailList,t]})),e.value=""}}),(0,l.A)(this,"onEmailBlur",e=>{this.onEmailSubmit(e.currentTarget)}),(0,l.A)(this,"onEmailKeydown",e=>{"enter"===e.key.toLowerCase()&&(e.preventDefault(),this.onEmailSubmit(e.currentTarget))}),(0,l.A)(this,"onRemoveEmail",e=>{var t=e.currentTarget.dataset.email;t&&this.setState(e=>({friendsEmailList:(0,f.FF)(e.friendsEmailList,t)}))})}render(){var{shareMessage:e}=this.props,{processing:t,trySubmitMessage:a,friendsEmailList:i}=this.state;return o.createElement("form",{onSubmit:this.handleSubmit},o.createElement(g.A,{gap:8},o.createElement("div",null,o.createElement(h.A,{type:"email",label:"Email addresses",onKeyDown:this.onEmailKeydown,onBlur:this.onEmailBlur,optionalIndicatorEnabled:!1}),o.createElement(b,null,i.map(e=>o.createElement(v.A,{key:e,"data-email":e,onClick:this.onRemoveEmail,variant:"filled"},e))),i.length>=20&&(n||(n=o.createElement(p.Ay,{variant:"large",colour:"critical"},"You can only send a maximum of 20 emails per day.")))),!!e&&o.createElement(c.A,{label:"Personal message:",id:"friendMessage",rows:4,required:!0,type:"text",name:"friendMessage",placeholder:"Message",defaultValue:e}),a&&o.createElement(y.A,{variant:"large",weight:"bold",startIcon:r||(r=o.createElement(E.A,{colour:"critical"}))},a),o.createElement(A,{kind:"primary",fit:"mobile-full-width",disabled:t,type:"submit"},t?"Sending":"Send")))}}(0,l.A)(S,"defaultProps",{hasShareMessage:!0}),t.A=S},553691:function(e,t,a){a.d(t,{Dr:function(){return E}});var n=a(63696),r=a(701809),i=a(48623),l=a(111867),o=a(648138),s=a(959300),c=a(442198),u=a(486865),d=a(179206),m=a(984650),h=a(432446),p=a(390899),f=(0,o.A)({facebook:n.createElement(s.A,{size:"XS"}),messenger:n.createElement(c.A,{size:"XS"}),whatsapp:n.createElement(u.A,{size:"XS"}),twitter:n.createElement(d.A,{size:"XS"}),pinterest:n.createElement(m.A,{size:"XS"})}),g=[{key:"facebook",name:"Facebook",icon:f("facebook")},{key:"messenger",name:"Facebook Messenger",icon:f("messenger")},{key:"whatsapp",name:"WhatsApp",icon:f("whatsapp")},{key:"twitter",name:"Twitter",icon:f("twitter")},{key:"pinterest",name:"Pinterest",icon:f("pinterest")}],y=[{key:"whatsapp",name:"WhatsApp",icon:f("whatsapp")},{key:"facebook",name:"Facebook",icon:f("facebook")},{key:"messenger",name:"Facebook Messenger",icon:f("messenger")}],E=(0,i.Ay)(h.A).withConfig({displayName:"ShareThis__ShareOption",componentId:"sc-168lxa1-0"})(["display:flex;justify-content:flex-start;padding:"," 0;width:100%;.st-custom-button-name{","{&:hover{text-decoration:underline;}}}"],(0,r.D0)(16),p.R);t.Ay=function(e){var{shareConfig:t,onShare:a}=e;return(0,n.useEffect)(()=>{(0,l.Ay)("https://platform-api.sharethis.com/js/sharethis.js#product=custom-share-buttons",{async:!0}).then(()=>{if(window.__sharethis__){var e={id:"sharethis-"+Date.now(),alignment:"center",color:"social",enabled:!0,font_size:16,labels:"cta",language:"en",networks:g.map(e=>e.key),padding:12,radius:4,show_total:!1,size:40};window.__sharethis__.load("custom-share-buttons",e)}})},[]),n.createElement(n.Fragment,null,y.map(e=>n.createElement(E,{kind:"tertiary",onClick:()=>a(e.name,e.key),key:e.key,className:"st-custom-button","data-network":e.key,"data-url":t.url,"data-image":t.shareImg,"data-title":t.shareTitle,"data-description":t.shareMessage,startIcon:f(e.key)},e.name)))}},604886:function(e,t,a){a.d(t,{A:function(){return n.A}});var n=a(74276)},959300:function(e,t,a){var n,r=a(268102),i=a(63696),l=a(927365);t.A=function(e){return i.createElement(l.Ay,(0,r.A)({},e,{viewBox:"0 0 1365.3333 1357.04"}),n||(n=i.createElement("path",{fill:"currentColor",d:"M1365.3333 682.6667C1365.3333 305.64 1059.6933 0 682.6666 0S0 305.64 0 682.6667c0 340.7386 249.6413 623.1597 576 674.3733V880H402.6667V682.6667H576v-150.4c0-171.0933 101.9173-265.6 257.8533-265.6 74.6893 0 152.8133 13.3333 152.8133 13.3333v168H900.584c-84.804 0-111.2507 52.6227-111.2507 106.6094v128.0573h189.3333L948.4 880H789.3333v477.04c326.3587-51.2136 576-333.6347 576-674.3733"})))}},984650:function(e,t,a){var n,r=a(268102),i=a(63696),l=a(927365);t.A=function(e){return i.createElement(l.Ay,(0,r.A)({},e,{viewBox:"0 0 438.529 438.529"}),n||(n=i.createElement("path",{d:"M409.141 109.203c-19.608-33.592-46.205-60.189-79.798-79.796C295.751 9.801 259.065 0 219.281 0 179.5 0 142.812 9.801 109.22 29.407c-33.597 19.604-60.194 46.201-79.8 79.796C9.809 142.8.008 179.485.008 219.267c0 44.35 12.085 84.611 36.258 120.767 24.172 36.172 55.863 62.912 95.073 80.232-.762-20.365.476-37.209 3.709-50.532l28.267-119.348c-4.76-9.329-7.139-20.93-7.139-34.831 0-16.175 4.089-29.689 12.275-40.541 8.186-10.85 18.177-16.274 29.979-16.274 9.514 0 16.841 3.14 21.982 9.42 5.142 6.283 7.705 14.181 7.705 23.7 0 5.896-1.099 13.084-3.289 21.554-2.188 8.471-5.041 18.273-8.562 29.409-3.521 11.132-6.045 20.036-7.566 26.692-2.663 11.608-.476 21.553 6.567 29.838 7.042 8.278 16.372 12.423 27.983 12.423 20.365 0 37.065-11.324 50.107-33.972 13.038-22.655 19.554-50.159 19.554-82.514 0-24.938-8.042-45.21-24.129-60.813-16.085-15.609-38.496-23.417-67.239-23.417-32.161 0-58.192 10.327-78.082 30.978-19.891 20.654-29.836 45.352-29.836 74.091 0 17.132 4.854 31.505 14.56 43.112 3.235 3.806 4.283 7.898 3.14 12.279-.381 1.143-1.141 3.997-2.284 8.562-1.138 4.565-1.903 7.522-2.281 8.851-1.521 6.091-5.14 7.994-10.85 5.708-14.654-6.085-25.791-16.652-33.402-31.689-7.614-15.037-11.422-32.456-11.422-52.246 0-12.753 2.047-25.505 6.14-38.256 4.089-12.756 10.468-25.078 19.126-36.975 8.663-11.9 19.036-22.417 31.123-31.549 12.082-9.135 26.787-16.462 44.108-21.982s35.972-8.28 55.959-8.28c27.032 0 51.295 5.995 72.8 17.986 21.512 11.992 37.925 27.502 49.252 46.537 11.327 19.036 16.987 39.403 16.987 61.101 0 28.549-4.948 54.243-14.842 77.086-9.896 22.839-23.887 40.778-41.973 53.813-18.083 13.042-38.637 19.561-61.675 19.561-11.607 0-22.456-2.714-32.548-8.135-10.085-5.427-17.034-11.847-20.839-19.273-8.566 33.685-13.706 53.77-15.42 60.24-3.616 13.508-11.038 29.119-22.27 46.819 20.367 6.091 41.112 9.13 62.24 9.13 39.781 0 76.47-9.801 110.062-29.41 33.595-19.602 60.192-46.199 79.794-79.791 19.606-33.599 29.407-70.287 29.407-110.065.01-39.778-9.777-76.468-29.376-110.06z"})))}}}]);
//# sourceMappingURL=4886.8f29b18f6b5a48df2bf7a7d40491b85f.js.map