1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5785],{51486:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return t(41170)}])},93333:function(e,n,t){"use strict";t.d(n,{I:function(){return j}});var r=t(85893),l=t(67294),o=t(85444),i=t(27631),s=t(59886),c=t(82729),a=t(45177);function _templateObject(){let e=(0,c._)(["\n position: relative;\n width: 100%;\n display: flex;\n flex-direction: column;\n margin-bottom: ",";\n\n > div {\n margin-bottom: ",";\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,c._)(["\n :after {\n content: '*';\n color: ",";\n }\n "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,c._)(["\n display: block;\n color: ",";\n font-size: ",";\n font-weight: ",";\n margin-bottom: ",";\n padding-left: ",";\n\n ",";\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,c._)(["\n :after {\n content: '*';\n color: ",";\n }\n "]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,c._)(["\n color: ",";\n "]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,c._)(["\n color: ",";\n font-size: ",";\n padding: ",";\n position: absolute;\n top: 0;\n left: 0;\n transition: 0.2s ease all;\n -moz-transition: 0.2s ease all;\n -webkit-transition: 0.2s ease all;\n pointer-events: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 90%;\n\n ",";\n\n ",";\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,c._)(["\n display: flex;\n align-items: center;\n position: relative;\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,c._)(["\n position: absolute;\n top: 32%;\n left: auto;\n right: ",";\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,c._)(["\n padding-left: 40px;\n "]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,c._)(["\n border: 1px solid ",";\n &:hover,\n &:focus,\n &:active {\n border: 1px solid ",";\n }\n "]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,c._)(["\n font-style: italic;\n "]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,c._)(["\n background: transparent;\n border-radius: 0;\n border: 1px solid ",";\n font-size: ",";\n "]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,c._)(["\n display: block;\n width: 100%;\n border: 1px solid transparent;\n min-height: 48px;\n background: ","\n 0% 0% no-repeat padding-box;\n border-radius: ",";\n padding: ",";\n color: ",";\n transition: ",";\n font-size: ",";\n font-style: normal;\n\n ",";\n\n &:hover,\n &:focus,\n &:active {\n border: 1px solid ",";\n }\n\n ",";\n\n &:-webkit-autofill,\n &:-webkit-autofill:hover,\n &:-webkit-autofill:focus {\n -webkit-text-fill-color: ",";\n box-shadow: 0 0 0px 40rem\n ","\n inset;\n }\n\n ",";\n\n ",";\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,c._)(["\n border: 1px solid ",";\n\n &:not(:placeholder-shown) + label,\n &:focus + label,\n &:focus + label + div svg,\n &:hover + label,\n &:hover + label + div svg {\n color: ",";\n }\n\n &:hover,\n &:focus,\n &:active {\n border: 1px solid ",";\n }\n "]);return _templateObject13=function(){return e},e}function _templateObject14(){let e=(0,c._)(["\n width: 100%;\n min-height: 48px;\n border: 1px solid ",";\n background: ",";\n border-radius: ",";\n color: ",";\n font-size: ",";\n font-style: ",";\n padding: ",";\n box-shadow: none;\n\n &:focus,\n &:hover {\n outline: none;\n border: 1px solid ",";\n }\n\n &:focus + label,\n &:not(:placeholder-shown) + label {\n font-size: ",";\n background: ",";\n top: -5px;\n left: 10px;\n padding: ",";\n color: ",";\n }\n\n &:not(:placeholder-shown) + label,\n &:focus + label + div svg {\n color: ",";\n }\n\n &:hover + label,\n &:hover + label + div svg {\n color: ",";\n }\n\n ",";
1\n\n &:disabled {\n cursor: not-allowed;\n border-color: ",";\n }\n\n &:disabled + label,\n &:disabled + label + div svg {\n color: ",";\n }\n\n &:disabled + label + div svg {\n color: ",";\n }\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){let e=(0,c._)(["\n svg {\n position: absolute;\n top: 0;\n width: 22px;\n height: 100%;\n left: 10px;\n color: ",";\n }\n"]);return _templateObject15=function(){return e},e}function _templateObject16(){let e=(0,c._)(["\n svg {\n position: absolute;\n top: 0;\n width: 22px;\n height: 100%;\n right: 10px;\n color: ",";\n }\n"]);return _templateObject16=function(){return e},e}let u="#AAAAAA",d=o.ZP.div.withConfig({componentId:"sc-ff033bb4-0"})(_templateObject(),e=>{let{theme:n}=e;return n.spacing.middle},e=>{let{theme:n}=e;return n.spacing.middle}),b=o.ZP.label.withConfig({componentId:"sc-ff033bb4-1"})(_templateObject2(),e=>{let{theme:n}=e;return n.colors.text},e=>{let{theme:n}=e;return n.fontSizes.middle},e=>{let{theme:n}=e;return n.currentCompany===a.O3.lovelystay?n.weights.semiBold:n.weights.regular},e=>{let{theme:n}=e;return n.spacing.middle},e=>{let{theme:n}=e;return n.spacing.middle},e=>{let{isRequired:n,theme:t}=e;return n?(0,o.iv)(_templateObject1(),t.colors.danger):null}),p=o.ZP.label.withConfig({componentId:"sc-ff033bb4-2"})(_templateObject5(),u,e=>{let{theme:n}=e;return n.fontSizes.small},e=>{let{theme:n}=e;return"".concat(n.spacing.medium," ").concat(n.spacing.middle)},e=>{let{isRequired:n,theme:t}=e;return n?(0,o.iv)(_templateObject3(),t.colors.danger):null},e=>{let{error:n,theme:t}=e;return n?(0,o.iv)(_templateObject4(),t.colors.danger):null}),m=o.ZP.div.withConfig({componentId:"sc-ff033bb4-3"})(_templateObject6()),f=o.ZP.div.withConfig({componentId:"sc-ff033bb4-4"})(_templateObject7(),e=>{let{rightIcon:n}=e;return n?"35px":"10px"}),g=o.ZP.input.withConfig({componentId:"sc-ff033bb4-5"})(_templateObject12(),e=>{let{theme:n,backgroundColor:t}=e;return null!=t?t:n.colors.background2},e=>{let{theme:n}=e;return n.radii.xxx_large},e=>{let{showValidation:n,rightIcon:t,theme:r}=e;return n?t?"0 50px 0 ".concat(r.spacing.middle):"0 30px 0 ".concat(r.spacing.middle):"0 ".concat(r.spacing.middle)},e=>{let{theme:n}=e;return n.colors.text},e=>{let{theme:n}=e;return n.transitions.regular},e=>{let{theme:n}=e;return n.fontSizes.small},e=>{let{leftIcon:n}=e;return n&&(0,o.iv)(_templateObject8())},e=>{let{theme:n}=e;return n.colors.primary},e=>{let{error:n,theme:t}=e;return n?(0,o.iv)(_templateObject9(),t.colors.danger,t.colors.danger):null},e=>{let{theme:n}=e;return n.colors.grey},e=>{let{theme:n,backgroundColor:t}=e;return null!=t?t:n.colors.background2},e=>{let{theme:n}=e;return n.currentCompany===a.O3.andoliving?(0,o.iv)(_templateObject10()):null},e=>{let{theme:n}=e;return n.currentCompany===a.O3.ferienhaus?(0,o.iv)(_templateObject11(),n.colors.grey3,e=>{let{theme:n}=e;return n.fontSizes.middle}):null}),h=o.ZP.input.withConfig({componentId:"sc-ff033bb4-6"})(_templateObject14(),u,e=>{let{theme:n,backgroundColor:t}=e;return null!=t?t:n.colors.white},e=>{let{theme:n}=e;return n.radii.medium},e=>{let{theme:n}=e;return n.colors.text},e=>{let{theme:n}=e;return n.fontSizes.small},e=>{let{theme:n}=e;return n.currentCompany===a.O3.lovelystay?"normal":"italic"},e=>{let{showValidation:n,rightIcon:t,theme:r}=e;return n?t?"0 50px 0 ".concat(r.spacing.middle):"0 30px 0 ".concat(r.spacing.middle):"0 ".concat(r.spacing.middle)},e=>{let{theme:n}=e;return n.colors.primary},e=>{let{theme:n}=e;return n.fontSizes.small},e=>{let{theme:n,backgroundColor:t}=e;return null!=t?t:n.colors.white},e=>{let{theme:n}=e;return"0px ".concat(n.spacing.x_small)},e=>{let{theme:n}=e;return n.colors.primary},u,e=>{let{theme:n}=e;return n.colors.primary},e=>{let{error:n,theme:t}=e;return n?(0,o.iv)(_templateObject13(),t.colors.danger,t.colors.danger,t.colors.danger):null},u,u,u),x=o.ZP.div.withConfig({componentId:"sc-ff033bb4-7"})(_templateObject15(),e=>{let{theme:n}=e;return n.colors.grey2}),_=o.ZP.div.withConfig({componentId:"sc-ff033bb4-8"}
1)(_templateObject16(),e=>{let{theme:n}=e;return n.colors.grey2}),j=(0,l.forwardRef)((e,n)=>{let{variant:t="default",className:l,hasError:c,errorMessage:a,rightIcon:u,leftIcon:j,isRequired:w,isValid:v,label:O,name:y,placeholder:k="",showValidationIcon:C,backgroundColor:N,...I}=e,z=(0,o.Fg)(),S=O&&(0,r.jsx)(b,{htmlFor:y,isRequired:w,error:!!a||c,className:"label",backgroundColor:N,children:O}),P=O&&(0,r.jsx)(p,{htmlFor:y,isRequired:w,error:!!a||c,className:"label",backgroundColor:N,children:O}),Z="default"===t?(0,r.jsx)(g,{ref:n,id:y,name:y,rightIcon:!!u,leftIcon:!!j,showValidation:!0,placeholder:k,...I,error:!!a||c,backgroundColor:N}):(0,r.jsx)(h,{ref:n,id:y,name:y,rightIcon:!!u,leftIcon:!!j,showValidation:!0,...I,placeholder:O?"":k,error:!!a||c,className:"input",backgroundColor:N});return(0,r.jsxs)(d,{className:l,children:[(0,r.jsxs)(r.Fragment,{children:["default"===t&&S,(0,r.jsxs)(m,{children:[Z,"floating"===t&&P,j?(0,r.jsx)(x,{children:j}):null,u?(0,r.jsx)(_,{children:u}):null,C&&v?(0,r.jsx)(f,{rightIcon:!!u,className:"validationIcon",children:(0,r.jsx)(s.P.CheckCircle,{size:18,color:z.colors.success})}):null,C&&!v?(0,r.jsx)(f,{rightIcon:!!u,className:"validationIcon",children:(0,r.jsx)(s.P.XCircle,{size:18,color:z.colors.danger,"data-testid":"validation-error-".concat(y)})}):null]})]}),a&&(0,r.jsx)(i.B,{className:"error",message:a})]})});j.displayName="Input"},94545:function(e,n,t){"use strict";t.d(n,{m:function(){return i}});var r,l,o=t(19692);(r=l||(l={})).GenerateLead="generate_lead",r.JobApplicationSubmitted="job_application_submitted",r.NewsletterSubscribed="newsletter_subscribed",r.NewsletterUnsubscribed="newsletter_unsubscribed";let i={GenerateLead:e=>{(0,o.sendGTMEvent)({event:"generate_lead",...e})},JobApplicationSubmitted:e=>{(0,o.sendGTMEvent)({event:"job_application_submitted",...e})},NewsletterSubscribed:e=>{(0,o.sendGTMEvent)({event:"newsletter_subscribed",...e})},NewsletterUnsubscribed:e=>{(0,o.sendGTMEvent)({event:"newsletter_unsubscribed",...e})}}},41170:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return z},default:function(){return S}});var r=t(85893),l=t(67294),o=t(2962),i=t(11163),s=t(94545),c=t(17341),a=t(87536),u=t(37303),d=t(25675),b=t.n(d),p=t(56312),m=t(27049),f=t(93333),g=t(59886),h=t(84718),x=t(79362),_=t(72543),j=t(62921),Unsubscribe_Unsubscribe=e=>{let{handleCancel:n,handleUnsubscribe:t,isLoading:o}=e,{t:i}=(0,u.$G)(),[s,c]=(0,l.useState)("unsubscribe"),{control:d,handleSubmit:w,formState:{errors:v,dirtyFields:O}}=(0,a.cI)({resolver:(0,p.F)(_.w)}),onMouseLeaveButton=()=>{c("unsubscribe")};return(0,r.jsxs)(j.V,{children:[(0,r.jsx)(b(),{src:"".concat(x.Mx,"/imgs/unsubscribe/").concat(s,".png"),height:150,width:260,alt:i("common:newsletter.".concat(s))}),(0,r.jsx)("h1",{children:i("unsubscribe:title")}),(0,r.jsx)("p",{children:i("unsubscribe:subtitle")}),(0,r.jsx)(j.s,{onSubmit:w(e=>{t(e.email)}),children:o?(0,r.jsx)(h.T,{size:35}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Qr,{control:d,name:"email",render:e=>{let{field:{onChange:n,ref:t}}=e;return(0,r.jsx)(f.I,{ref:t,type:"email",variant:"floating",label:i("unsubscribe:enterYourEmail"),rightIcon:(0,r.jsx)(g.P.MailOutline,{}),className:"emailInput",onChange:e=>n(e.target.value),errorMessage:v.email&&v.email.message,showValidationIcon:O.email||!!v.email,isValid:!v.email,isRequired:!0})}}),(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)(m.z,{type:"submit",className:"unsubscribe",text:i("unsubscribe:unsubscribe"),onMouseEnter:()=>{c("unsubscribed")},onMouseLeave:onMouseLeaveButton}),(0,r.jsx)(m.z,{text:i("unsubscribe:cancel"),onClick:n,onMouseEnter:()=>{c("subscribe")},onMouseLeave:onMouseLeaveButton})]})]})})]})},w=t(43627),v=t(62195),O=t(48228),y=t(13009),k=t(33352);let useUnsubscribeNewsLetterMutation=()=>(0,O.D)({mutationFn:e=>(0,k.d)(e),onError:e=>{(0,y.U)(e.response.data.message)}});var C=t(82729),N=t(85444);function _templateObject(){let e=(0,C._)(["\n width: 100%;\n height: calc(100vh - ",");\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n padding-bottom: ",";\n"]);
1return _templateObject=function(){return e},e}let I=N.ZP.div.withConfig({componentId:"sc-faaa503e-0"})(_templateObject(),e=>{let{theme:n}=e;return n.navbarHeight},e=>{let{theme:n}=e;return n.colors.white},e=>{let{theme:n}=e;return n.spacing.xxx_large}),UnsubscribePage=()=>{let{push:e}=(0,i.useRouter)(),[n,t]=(0,l.useState)(!1),[a,u]=(0,l.useState)("unsubscribe"),{mutate:d,isLoading:b,isSuccess:p,isError:m}=useUnsubscribeNewsLetterMutation();(0,l.useEffect)(()=>{let n;return p&&(n=setTimeout(()=>{e(v.Z6.subscribe)},2e3)),()=>clearTimeout(n)},[p,e]),(0,l.useEffect)(()=>{m&&t(!1)},[m]);let f={unsubscribe:(0,r.jsx)(Unsubscribe_Unsubscribe,{handleCancel:()=>{u("subscribed")},handleUnsubscribe:e=>{t(!0),d({email:e},{onSuccess:()=>s.m.NewsletterUnsubscribed({screen:v.Z6.unsubscribe})})},isLoading:b||n}),subscribed:(0,r.jsx)(c.Z,{})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.PB,{noindex:!0,nofollow:!0}),(0,r.jsx)(I,{children:f[a]})]})};UnsubscribePage.getLayout=e=>(0,r.jsx)(w.A,{children:e});var z=!0,S=UnsubscribePage},17341:function(e,n,t){"use strict";var r=t(85893),l=t(37303),o=t(25675),i=t.n(o),s=t(11163),c=t(27049),a=t(79362),u=t(62195),d=t(62921);n.Z=()=>{let{push:e}=(0,s.useRouter)(),{t:n}=(0,l.$G)();return(0,r.jsxs)(d.V,{children:[(0,r.jsx)(i(),{src:"".concat(a.Mx,"/imgs/unsubscribe/subscribed.png"),height:150,width:260,alt:n("common:newsletter.subscribe"),priority:!0}),(0,r.jsx)("h1",{children:n("unsubscribe:thankYouTitle")}),(0,r.jsx)("p",{children:n("unsubscribe:thankYouMessage")}),(0,r.jsx)(d.s,{children:(0,r.jsx)(c.z,{type:"button",className:"unsubscribe",text:n("unsubscribe:explore"),onClick:()=>{e(u.Z6.home)}})})]})}},72543:function(e,n,t){"use strict";t.d(n,{w:function(){return l}});var r=t(1604);let l=r.z.object({email:r.z.string().min(1).email()})},62921:function(e,n,t){"use strict";t.d(n,{V:function(){return i},s:function(){return s}});var r=t(82729),l=t(85444),o=t(53182);function _templateObject(){let e=(0,r._)(["\n width: 600px;\n border-radius: ",";\n padding: ",";\n gap: ",";\n background-color: ",";\n box-shadow: 30px 19px 6px #00000014;\n border: 1px solid #e4e4e4;\n display: flex;\n flex-direction: column;\n align-items: center;\n\n @media "," {\n border: none;\n box-shadow: none;\n width: 95vh;\n }\n\n h1 {\n font-size: ",";\n max-width: 250px;\n text-align: center;\n }\n\n p {\n color: #989898;\n text-align: center;\n font-size: ",";\n margin-bottom: ",";\n max-width: 80%;\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n gap: ",";\n\n .row {\n display: flex;\n justify-content: space-around;\n align-items: flex-start;\n width: 100%;\n gap: ",";\n\n @media "," {\n flex-direction: column;\n align-items: center;\n }\n }\n\n .emailInput {\n margin: 0;\n width: 70%;\n\n input {\n background: ",";\n\n &:focus + label,\n &:not(:placeholder-shown) + label {\n background: ",";\n }\n }\n }\n\n button {\n padding: 0;\n width: 200px;\n height: 50px;\n border-radius: ",";\n background: #eff4f4;\n color: ",";\n font-size: ",";\n\n &.unsubscribe {\n color: ",";\n background: ",";\n }\n }\n"]);return _templateObject1=function(){return e},e}let i=l.ZP.div.withConfig({componentId:"sc-379bfb64-0"})(_templateObject(),e=>{let{theme:n}=e;return n.radii.medium},e=>{let{theme:n}=e;return n.spacing.xx_large},e=>{let{theme:n}=e;return n.spacing.medium},e=>{let{theme:n}=e;return n.colors.white},o.Hb.tablet,e=>{let{theme:n}=e;return n.fontSizes.xxx_large},e=>{let{theme:n}=e;return n.fontSizes.small},e=>{let{theme:n}=e;return n.spacing.medium}),s=l.ZP.form.withConfig({componentId:"sc-379bfb64-1"})(_templateObject1(),e=>{let{theme:n}=e;return n.spacing.medium},e=>{let{theme:n}=e;return n.spacing.medium},o.Hb.tablet,e=>{let{theme:n}=e;return n.colors.white},e=>{let{theme:n}=e;return n.colors.white},e=>{let{theme:n}=e;return n.radii.medium},e=>{let{theme:n}=e;return n.colors.primary},e=>{let{theme:n}=e;return n.fontSizes.small},e=>{let{theme:n}=e;return n.colors.white},e=>{let{theme:n}=e;
1return n.colors.gradientBackground})},48303:function(e,n,t){"use strict";var r=t(87066);let l=r.default.create({baseURL:"https://dashboard.lovelystay.com/api",withCredentials:!0});n.Z=l},33352:function(e,n,t){"use strict";t.d(n,{d:function(){return unsubscribeToNewsletter},x:function(){return subscribeToNewsletter}});var r=t(89206),l=t(48303);let subscribeToNewsletter=async e=>{let n="/website/newsletters";try{return l.Z.post(n,{...e})}catch(e){return(0,r.S)({error:e,endpoint:n})}},unsubscribeToNewsletter=async e=>{let n="/website/newsletters/unsubscribe";try{return l.Z.post(n,{...e})}catch(e){return(0,r.S)({error:e,method:"POST",endpoint:n})}}}},function(e){e.O(0,[4980,7627,8907,4774,1228,2013,1778,5937,5445,260,3874,4617,955,9866,8941,1057,3609,4090,9401,7237,6556,9483,8434,5860,9382,6466,1773,8949,9268,2884,3627,9774,2888,179],function(){return e(e.s=51486)}),_N_E=e.O()}]);
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.