PageSourceSearch

https://book.andoliving.com/_next/static/chunks/pages/contact-750f4601c989cc15.js

js andoliving.com collected 2026-10-04 13:31:57 UTC 46,179 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9335],{27120:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return n(17861)}])},62919:function(e,t,n){"use strict";n.d(t,{u:function(){return ScrollUpButton}});var o=n(85893),r=n(67294),l=n(59886),a=n(20436);let ScrollUpButton=()=>{let[e,t]=(0,r.useState)(!1),toggleVisible=()=>{let e=document.documentElement.scrollTop;e>100?t(!0):t(!1)};return(0,r.useEffect)(()=>(window.addEventListener("scroll",toggleVisible),()=>{window.addEventListener("scroll",toggleVisible)}),[]),e?(0,o.jsx)(a.z,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:(0,o.jsx)(l.P.ScrollUp,{})}):null}},20436:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var o=n(82729),r=n(85444),l=n(53182);function _templateObject(){let e=(0,o._)(["\n  position: fixed;\n  width: 50px;\n  height: 50px;\n  z-index: 198;\n  cursor: pointer;\n  right: 24px;\n  bottom: 100px;\n  font-size: ",";\n  padding: ",";\n  color: ",";\n  background: ",";\n  box-shadow: ",";\n  border-radius: ",";\n\n  @media "," {\n    bottom: 150px;\n  }\n"]);return _templateObject=function(){return e},e}let a=r.ZP.button.withConfig({componentId:"sc-ea5d9c4d-0"})(_templateObject(),e=>{let{theme:t}=e;return t.fontSizes.xxx_large},e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.shadows.boxShadow},e=>{let{theme:t}=e;return t.radii.medium},l.Hb.tablet)},93333:function(e,t,n){"use strict";n.d(t,{I:function(){return v}});var o=n(85893),r=n(67294),l=n(85444),a=n(27631),i=n(59886),c=n(82729),s=n(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        "]);
1return _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  ",";\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=l.ZP.div.withConfig({componentId:"sc-ff033bb4-0"})(_templateObject(),e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.spacing.middle}),p=l.ZP.label.withConfig({componentId:"sc-ff033bb4-1"})(_templateObject2(),e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.currentCompany===s.O3.lovelystay?t.weights.semiBold:t.weights.regular},e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{isRequired:t,theme:n}=e;return t?(0,l.iv)(_templateObject1(),n.colors.danger):null}),m=l.ZP.label.withConfig({componentId:"sc-ff033bb4-2"})(_templateObject5(),u,e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return"".concat(t.spacing.medium," ").concat(t.spacing.middle)},e=>{let{isRequired:t,theme:n}=e;return t?(0,l.iv)(_templateObject3(),n.colors.danger):null},e=>{let{error:t,theme:n}=e;return t?(0,l.iv)(_templateObject4(),n.colors.danger):null}),f=l.ZP.div.withConfig({componentId:"sc-ff033bb4-3"})(_templateObject6()),g=l.ZP.div.withConfig({componentId:"sc-ff033bb4-4"})(_templateObject7(),e=>{let{rightIcon:t}=e;return t?"35px":"10px"}),b=l.ZP.input.withConfig({componentId:"sc-ff033bb4-5"})(_templateObject12(),e=>{let{theme:t,backgroundColor:n}=e;return null!=n?n:t.colors.background2},e=>{let{theme:t}=e;return t.radii.xxx_large},e=>{let{showValidation:t,rightIcon:n,theme:o}=e;return t?n?"0 50px 0 ".concat(o.spacing.middle):"0 30px 0 ".concat(o.spacing.middle):"0 ".concat(o.spacing.middle)},e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.transitions.regular},e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{leftIcon:t}=e;
1return t&&(0,l.iv)(_templateObject8())},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{error:t,theme:n}=e;return t?(0,l.iv)(_templateObject9(),n.colors.danger,n.colors.danger):null},e=>{let{theme:t}=e;return t.colors.grey},e=>{let{theme:t,backgroundColor:n}=e;return null!=n?n:t.colors.background2},e=>{let{theme:t}=e;return t.currentCompany===s.O3.andoliving?(0,l.iv)(_templateObject10()):null},e=>{let{theme:t}=e;return t.currentCompany===s.O3.ferienhaus?(0,l.iv)(_templateObject11(),t.colors.grey3,e=>{let{theme:t}=e;return t.fontSizes.middle}):null}),h=l.ZP.input.withConfig({componentId:"sc-ff033bb4-6"})(_templateObject14(),u,e=>{let{theme:t,backgroundColor:n}=e;return null!=n?n:t.colors.white},e=>{let{theme:t}=e;return t.radii.medium},e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return t.currentCompany===s.O3.lovelystay?"normal":"italic"},e=>{let{showValidation:t,rightIcon:n,theme:o}=e;return t?n?"0 50px 0 ".concat(o.spacing.middle):"0 30px 0 ".concat(o.spacing.middle):"0 ".concat(o.spacing.middle)},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t,backgroundColor:n}=e;return null!=n?n:t.colors.white},e=>{let{theme:t}=e;return"0px ".concat(t.spacing.x_small)},e=>{let{theme:t}=e;return t.colors.primary},u,e=>{let{theme:t}=e;return t.colors.primary},e=>{let{error:t,theme:n}=e;return t?(0,l.iv)(_templateObject13(),n.colors.danger,n.colors.danger,n.colors.danger):null},u,u,u),j=l.ZP.div.withConfig({componentId:"sc-ff033bb4-7"})(_templateObject15(),e=>{let{theme:t}=e;return t.colors.grey2}),_=l.ZP.div.withConfig({componentId:"sc-ff033bb4-8"})(_templateObject16(),e=>{let{theme:t}=e;return t.colors.grey2}),v=(0,r.forwardRef)((e,t)=>{let{variant:n="default",className:r,hasError:c,errorMessage:s,rightIcon:u,leftIcon:v,isRequired:x,isValid:w,label:y,name:O,placeholder:C="",showValidationIcon:P,backgroundColor:k,...S}=e,I=(0,l.Fg)(),F=y&&(0,o.jsx)(p,{htmlFor:O,isRequired:x,error:!!s||c,className:"label",backgroundColor:k,children:y}),z=y&&(0,o.jsx)(m,{htmlFor:O,isRequired:x,error:!!s||c,className:"label",backgroundColor:k,children:y}),M="default"===n?(0,o.jsx)(b,{ref:t,id:O,name:O,rightIcon:!!u,leftIcon:!!v,showValidation:!0,placeholder:C,...S,error:!!s||c,backgroundColor:k}):(0,o.jsx)(h,{ref:t,id:O,name:O,rightIcon:!!u,leftIcon:!!v,showValidation:!0,...S,placeholder:y?"":C,error:!!s||c,className:"input",backgroundColor:k});return(0,o.jsxs)(d,{className:r,children:[(0,o.jsxs)(o.Fragment,{children:["default"===n&&F,(0,o.jsxs)(f,{children:[M,"floating"===n&&z,v?(0,o.jsx)(j,{children:v}):null,u?(0,o.jsx)(_,{children:u}):null,P&&w?(0,o.jsx)(g,{rightIcon:!!u,className:"validationIcon",children:(0,o.jsx)(i.P.CheckCircle,{size:18,color:I.colors.success})}):null,P&&!w?(0,o.jsx)(g,{rightIcon:!!u,className:"validationIcon",children:(0,o.jsx)(i.P.XCircle,{size:18,color:I.colors.danger,"data-testid":"validation-error-".concat(O)})}):null]})]}),s&&(0,o.jsx)(a.B,{className:"error",message:s})]})});v.displayName="Input"},72667:function(e,t,n){"use strict";n.d(t,{K:function(){return f}});var o=n(85893),r=n(67294),l=n(82729),a=n(85444),i=n(27631),c=n(45177);function _templateObject(){let e=(0,l._)(["\n          border: 1px solid ",";\n          &:hover,\n          &:focus,\n          &:active {\n            border: 1px solid ",";\n          }\n        "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,l._)(["\n          border-radius: 0;\n          background: ",";\n          border: 1px solid ",";\n          font-size: ",";\n\n          &:hover,\n          &:focus,\n          &:active {\n            border-color: ",";\n          }\n        "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,l._)(["\n  width: 100%;\n  min-height: 140px;\n  background: ",";\n  border: 1px solid\n    ",";\n  resize: none;\n  padding: ",";\n  border-radius: ",";\n  color: ",";\n  margin-bottom: ",";\n  font-size: ",";\n\n  &:hover,\n  &:focus,\n  &:active {\n    border: 1px solid ",";\n\n    &::placeholder {\n      color: ",";\n    }\n  }\n\n  ",";\n\n  ",";
1\n\n  &:disabled {\n    cursor: not-allowed;\n    border-color: ",";\n    color: ",";\n\n    &::placeholder {\n      color: ",";\n    }\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,l._)(["\n          :after {\n            content: '*';\n            color: ",";\n          }\n        "]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,l._)(["\n  width: 100%;\n  display: block;\n  text-align: left;\n  color: ",";\n  font-size: ",";\n  font-weight: ",";\n  margin: ",";\n\n  ",";\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,l._)(["\n  display: block;\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,l._)(["\n  white-space: pre-line;\n  margin: ",";\n  font-size: ",";\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,l._)(["\n  width: 100%;\n"]);return _templateObject7=function(){return e},e}let s=a.ZP.textarea.withConfig({componentId:"sc-35f624f3-0"})(_templateObject2(),e=>{let{theme:t,backgroundColor:n}=e;return null!=n?n:t.colors.white},e=>{let{theme:t,variant:n}=e;return"floating"===n?t.colors.grey3:"transparent"},e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t,variant:n}=e;return"floating"===n?t.radii.medium:t.radii.x_large},e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t,variant:n}=e;return"floating"===n?t.colors.primary:t.colors.grey3},e=>{let{error:t,theme:n}=e;return t?(0,a.iv)(_templateObject(),n.colors.danger,n.colors.danger):null},e=>{let{theme:t}=e;return t.currentCompany===c.O3.ferienhaus?(0,a.iv)(_templateObject1(),t.colors.white,t.colors.grey3,e=>{let{theme:t}=e;return t.fontSizes.middle},t.colors.grey3):null},e=>{let{theme:t}=e;return t.colors.grey3},e=>{let{theme:t}=e;return t.colors.grey3},e=>{let{theme:t}=e;return t.colors.grey3}),u=a.ZP.label.withConfig({componentId:"sc-35f624f3-1"})(_templateObject4(),e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.currentCompany===c.O3.lovelystay?t.weights.semiBold:t.weights.regular},e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{isRequired:t}=e;return t?(0,a.iv)(_templateObject3(),e=>{let{theme:t}=e;return t.colors.danger}):null}),d=(0,a.ZP)(i.B).withConfig({componentId:"sc-35f624f3-2"})(_templateObject5()),p=a.ZP.div.withConfig({componentId:"sc-35f624f3-3"})(_templateObject6(),e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.fontSizes.small}),m=a.ZP.div.withConfig({componentId:"sc-35f624f3-4"})(_templateObject7()),f=(0,r.forwardRef)((e,t)=>{let{label:n,subtitle:r,name:l,errorMessage:a,isRequired:i,variant:c="default",...f}=e;return(0,o.jsxs)(m,{children:[n&&(0,o.jsx)(u,{htmlFor:l,isRequired:i,children:n}),r&&(0,o.jsx)(p,{children:r}),(0,o.jsx)(s,{ref:t,id:l,name:l,error:!!a,variant:c,...f}),a&&(0,o.jsx)(d,{message:a})]})});f.displayName="TextArea"},94545:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var o,r,l=n(19692);(o=r||(r={})).GenerateLead="generate_lead",o.JobApplicationSubmitted="job_application_submitted",o.NewsletterSubscribed="newsletter_subscribed",o.NewsletterUnsubscribed="newsletter_unsubscribed";let a={GenerateLead:e=>{(0,l.sendGTMEvent)({event:"generate_lead",...e})},JobApplicationSubmitted:e=>{(0,l.sendGTMEvent)({event:"job_application_submitted",...e})},NewsletterSubscribed:e=>{(0,l.sendGTMEvent)({event:"newsletter_subscribed",...e})},NewsletterUnsubscribed:e=>{(0,l.sendGTMEvent)({event:"newsletter_unsubscribed",...e})}}},17861:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ea},default:function(){return ei}});var o=n(85893),r=n(67294),l=n(37303),a=n(2962),i=n(87536),c=n(94545),s=n(56312),u=n(93333),d=n(85572),p=n(72667),m=n(41821),f=n(62195),g=n(11163),b=n.n(g),h=n(48228),j=n(61694),_=n(13009);let useContactMutation=()=>(0,h.D)({mutationFn:e=>(0,j.D)(e),onSuccess:()=>{b().push({pathname:f.Z6.contactSuccess,query:b().query},void 0,{scroll:!0})},onError:()=>(0,_.U)()});var v=n(24745),x=n(1604),w=n(55839);let y=x.z.object({name:x.z.string().min(1),email:x.z.string().min(1).email(),subjectMessage:x.z.string().min(1),location:x.z.string().min(1),message:x.z.string().min(1).refine(w.C)});var O=n(82729),C=n(85444),P=n(53182),k=n(27049);
1function _templateObject(){let e=(0,O._)(["\n  width: 100%;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,O._)(["\n  width: 100%;\n  display: grid;\n  grid-template-columns: repeat(2, 1fr);\n  text-align: left;\n  column-gap: ",";\n\n  @media "," {\n    column-gap: ",";\n  }\n\n  @media "," {\n    grid-template-columns: 1fr;\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,O._)(["\n  display: grid;\n  grid-template-columns: repeat(2, 1fr);\n  text-align: left;\n  column-gap: ",";\n\n  @media "," {\n    column-gap: ",";\n  }\n\n  @media "," {\n    grid-template-columns: 1fr;\n    row-gap: ",";\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,O._)(["\n  width: 200px;\n  height: 35px;\n  margin: "," 0;\n\n  @media "," {\n    width: 100%;\n  }\n"]);return _templateObject3=function(){return e},e}let S=C.ZP.form.withConfig({componentId:"sc-32f7b880-0"})(_templateObject()),I=C.ZP.div.withConfig({componentId:"sc-32f7b880-1"})(_templateObject1(),e=>{let{theme:t}=e;return t.spacing.x_large},P.Hb.desktop,e=>{let{theme:t}=e;return t.spacing.large},P.Hb.tablet),F=C.ZP.div.withConfig({componentId:"sc-32f7b880-2"})(_templateObject2(),e=>{let{theme:t}=e;return t.spacing.x_large},P.Hb.desktop,e=>{let{theme:t}=e;return t.spacing.large},P.Hb.tablet,e=>{let{theme:t}=e;return t.spacing.small}),z=(0,C.ZP)(k.z).withConfig({componentId:"sc-32f7b880-3"})(_templateObject3(),e=>{let{theme:t}=e;return t.spacing.large},P.Hb.mobile),MailForm=()=>{let{t:e}=(0,l.$G)(),[t,n]=(0,r.useState)(!1),{mutate:a,isLoading:g}=useContactMutation(),{data:b,refetch:h}=(0,v.I)(),{register:j,handleSubmit:_,control:x,getValues:w,formState:{errors:O,dirtyFields:C,isSubmitting:P,isDirty:k}}=(0,i.cI)({resolver:(0,s.F)(y)}),M=e("common:locations",{returnObjects:!0}),N=e("contact:contactForm.subjects",{returnObjects:!0}),T={[e("contact:contactForm.subjectMessage.yourProperty")]:"owner",[e("contact:contactForm.subjectMessage.yourReservation")]:"guestWithReservation",[e("contact:contactForm.subjectMessage.yourExperience")]:"guestWithoutReservation"},Z={owner:"contact_owner",guestWithReservation:"contact_guest_with_reservation",guestWithoutReservation:"contact_guest_without_reservation"},onSubmit=async e=>{h();let t=T[e.subjectMessage];a({...e,subject:t,...(0,m.AD)(b,w("location"))},{onSuccess:()=>c.m.GenerateLead({lead_type:Z[t],screen:f.Z6.contact})}),n(!0),setTimeout(()=>{n(!1)},3e3)};return(0,o.jsxs)(S,{onSubmit:_(onSubmit),children:[(0,o.jsxs)(I,{children:[(0,o.jsx)(u.I,{type:"text",variant:"floating",label:e("contact:contactForm.fullName"),errorMessage:O.name&&e("contact:contactForm.validation.requiredField"),isValid:!O.name,showValidationIcon:C.name||!!O.name,isRequired:!0,...j("name")}),(0,o.jsx)(u.I,{type:"email",variant:"floating",label:e("contact:contactForm.email"),errorMessage:O.email&&e("contact:contactForm.validation.incorrectEmailFormat"),isValid:!O.email,showValidationIcon:C.email||!!O.email,isRequired:!0,"data-testid":"email-input",...j("email")})]}),(0,o.jsxs)(F,{children:[(0,o.jsx)(i.Qr,{control:x,name:"subjectMessage",render:t=>{let{field:{onChange:n,ref:r}}=t;return(0,o.jsx)(d.P,{ref:r,variant:"floating",id:"subjectMessage",label:e("contact:contactForm.subjectLabel"),items:N,onChange:e=>n(e.value),errorMessage:O.subjectMessage&&e("contact:contactForm.validation.requiredField"),isRequired:!0})}}),(0,o.jsx)(i.Qr,{control:x,name:"location",render:t=>{let{field:{onChange:n,ref:r}}=t;return(0,o.jsx)(d.P,{ref:r,variant:"floating",id:"geoZoneId",label:e("contact:contactForm.location"),items:M,onChange:e=>n(e.value),errorMessage:O.location&&e("contact:contactForm.validation.requiredField"),isRequired:!0})}})]}),(0,o.jsx)(p.K,{variant:"floating",label:e("contact:contactForm.message"),id:e("contact:contactForm.message"),subtitle:e("contact:contactForm.messageDescription"),placeholder:e("contact:contactForm.messagePlaceholder"),maxLength:400,errorMessage:O.message&&e("contact:contactForm.validation.requiredField"),isRequired:!0,...j("message")}),(0,o.jsx)(z,{type:"submit",isLoading:g,disabled:P||!k||t,text:e("contact:contactForm.send"),"data-testid":"contact-submit-button"})]})};var M=n(25675),N=n.n(M),T=n(41664),Z=n.n(T),R=n(59886),A=n(28477
1),E=n(79362),H=n(45177),G=n(60434),D=n(88307);function styles_templateObject(){let e=(0,O._)(["\n  position: absolute;\n  top: 100px;\n  left: 32px;\n\n  @media "," {\n    top: 200px;\n    left: calc(50% - calc(315px / 2));\n    background-color: ",";\n    padding: ",";\n    border-radius: ",";\n  }\n"]);return styles_templateObject=function(){return e},e}function styles_templateObject1(){let e=(0,O._)(["\n  color: ",";\n  font-size: ",";\n  padding: "," 0;\n  margin-bottom: ",";\n"]);return styles_templateObject1=function(){return e},e}function styles_templateObject2(){let e=(0,O._)(["\n  display: flex;\n  align-items: center;\n  color: ",";\n  column-gap: ",";\n  margin-bottom: ",";\n\n  span {\n    font-size: ",";\n  }\n"]);return styles_templateObject2=function(){return e},e}function styles_templateObject3(){let e=(0,O._)(["\n  width: 50%;\n  height: 40px;\n  padding: ",";\n  border: 1px solid ",";\n  color: ",";\n\n  &[data-state='active'] {\n    color: ",";\n    border-color: ",";\n  }\n"]);return styles_templateObject3=function(){return e},e}function _templateObject4(){let e=(0,O._)(["\n  width: ",";\n  color: ",";\n  border-bottom-left-radius: ",";\n  border-bottom-right-radius: ",";\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,O._)(["\n  display: flex;\n  row-gap: ",";\n  column-gap: ",";\n  font-size: ",";\n  text-align: left;\n\n  svg {\n    color: ",";\n    margin-top: ",";\n    min-width: 18px;\n    min-height: 18px;\n  }\n\n  div {\n    height: 45px;\n    margin-bottom: ",";\n\n    p {\n      margin-bottom: ",";\n    }\n  }\n\n  h6 {\n    font-weight: ",";\n    font-size: ",";\n    margin-bottom: ",";\n    text-transform: capitalize;\n  }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,O._)(["\n  display: flex;\n  flex-direction: column;\n  row-gap: ",";\n\n  &[data-state='active'] {\n    padding: ",";\n  }\n"]);return _templateObject6=function(){return e},e}let B="#5A9D9B",L=C.ZP.div.withConfig({componentId:"sc-8f80fbde-0"})(styles_templateObject(),P.Hb.desktop,"#1B4342",e=>{let{theme:t}=e;return"".concat(t.spacing.small," ").concat(t.spacing.x_large)},e=>{let{theme:t}=e;return t.radii.large}),V=C.ZP.p.withConfig({componentId:"sc-8f80fbde-1"})(styles_templateObject1(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.spacing.middle}),q=(0,C.ZP)(G.aV).withConfig({componentId:"sc-8f80fbde-2"})(styles_templateObject2(),e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.fontSizes.small}),$=(0,C.ZP)(G.xz).withConfig({componentId:"sc-8f80fbde-3"})(styles_templateObject3(),e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white},B,B),U=C.ZP.div.withConfig({componentId:"sc-8f80fbde-4"})(_templateObject4(),"250px",e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.radii.medium},e=>{let{theme:t}=e;return t.radii.medium}),K=C.ZP.div.withConfig({componentId:"sc-8f80fbde-5"})(_templateObject5(),e=>{let{theme:t}=e;return t.spacing.middle},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.fontSizes.small},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.spacing.xx_small},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.spacing.x_small},e=>{let{theme:t}=e;return t.weights.medium},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.spacing.x_small}),W=(0,C.ZP)(G.VY).withConfig({componentId:"sc-8f80fbde-6"})(_templateObject6(),e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return"".concat(t.spacing.middle," ").concat(t.spacing.middle," 0")}),Contacts=e=>{let{location:t,sections:n}=e,{t:r}=(0,l.$G)(),getContactContent=e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(K,{children:[(0,o.jsx)(R.P.LocationPinFilled,{size:18}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h6",{children:r("common:footer.address")}),e[t].address?(0,o.jsx)("p",{children:e[t].address}):(0,o.jsx)("p",{children:(0,o.jsx)("i",{children:r("common:comingSoon")})})]})]}),(0,o.jsxs)(K,{children:[(0,o.jsx)(R.P.Phone,{size:18}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h6",{children:r("common:footer.phone")}),(0,o.jsx)("p",{children:e[t].phone})]})]}),(0,o.jsxs)(K,{children:[(0,o.jsx)(R.P.Mail,{size:18}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h6",{children:r("common:footer.mailUs")}),(0,o.jsx)("p",{children:e[t].email})]})]})]});if(!n)return(0,o.jsx)(o.Fragment,{});
1let{contacts:a}=null==n?void 0:n.footer,i=(0,D.C)(a,"owner"),c=(0,D.C)(a,"guest");return(0,o.jsxs)(L,{children:[(0,o.jsx)(V,{children:r("common:whoAreYou")}),(0,o.jsxs)(G.fC,{children:[(0,o.jsxs)(q,{children:[(0,o.jsx)($,{value:H.FW.guest,children:r("common:guest")}),(0,o.jsx)("span",{children:r("common:footer.or")}),(0,o.jsx)($,{value:H.FW.owner,children:r("common:owner")})]}),n?(0,o.jsxs)(U,{children:[(0,o.jsx)(W,{value:H.FW.guest,children:getContactContent(c)}),(0,o.jsx)(W,{value:H.FW.owner,children:getContactContent(i)})]}):null]})]})};function map_styles_templateObject(){let e=(0,O._)(["\n  width: 50%;\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background: ",";\n\n  @media "," {\n    height: 700px;\n    width: 100%;\n    align-items: flex-start;\n  }\n\n  img {\n    position: absolute;\n    right: 15%;\n\n    @media (max-width: 1400px) {\n      right: 10%;\n    }\n\n    @media (max-width: 1160px) {\n      right: 5%;\n    }\n\n    @media "," {\n      position: relative;\n      right: 0;\n      top: 32px;\n    }\n  }\n"]);return map_styles_templateObject=function(){return e},e}function map_styles_templateObject1(){let e=(0,O._)(["\n  position: absolute;\n  left: 0;\n  bottom: 0;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: flex-start;\n  padding: ",";\n  row-gap: ",";\n\n  svg {\n    color: ",";\n  }\n\n  @media "," {\n    top: 0;\n    bottom: auto;\n  }\n"]);return map_styles_templateObject1=function(){return e},e}function map_styles_templateObject2(){let e=(0,O._)(["\n  position: absolute;\n  top: 0;\n  width: 100%;\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n\n  @media "," {\n    bottom: 0;\n    top: auto;\n  }\n\n  @media "," {\n    grid-template-columns: repeat(2, 1fr);\n  }\n"]);return map_styles_templateObject2=function(){return e},e}function map_styles_templateObject3(){let e=(0,O._)(["\n  cursor: pointer;\n  height: 80px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: ",";\n  color: ",";\n  font-size: ",";\n\n  &.selected {\n    background-color: ",";\n  }\n"]);return map_styles_templateObject3=function(){return e},e}let Q="#1b4342",Y=C.ZP.div.withConfig({componentId:"sc-babfc0c0-0"}
1)(map_styles_templateObject(),e=>{let{theme:t}=e;return"transparent linear-gradient(180deg, ".concat(Q," 0%, ").concat(t.colors.primary," 100%) 0% 0% no-repeat padding-box")},P.Hb.desktop,P.Hb.desktop),X=C.ZP.div.withConfig({componentId:"sc-babfc0c0-1"})(map_styles_templateObject1(),e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.spacing.medium},e=>{let{theme:t}=e;return t.colors.white},P.Hb.desktop),J=C.ZP.div.withConfig({componentId:"sc-babfc0c0-2"})(map_styles_templateObject2(),P.Hb.desktop,P.Hb.mobile),ee=C.ZP.div.withConfig({componentId:"sc-babfc0c0-3"})(map_styles_templateObject3(),e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.fontSizes.middle},Q),MapSection=e=>{let{sections:t}=e,{t:n}=(0,l.$G)(),a=(0,A.Z)(P.Hb.desktop),[i,c]=(0,r.useState)(H.HY.lisbon),onChangeSelectedTab=e=>c(e);return(0,o.jsxs)(Y,{children:[(0,o.jsx)(N(),{src:"".concat(E.Mx,"/imgs/contact-us/").concat(a?"map":i,".png"),height:450,width:306,alt:n("common:countries.portugal")}),(0,o.jsxs)(X,{children:[(0,o.jsx)(Z(),{href:(null==t?void 0:t.footer.facebookLink)||"",target:"_blank",children:(0,o.jsx)(R.P.Facebook,{size:18})}),(0,o.jsx)(Z(),{href:(null==t?void 0:t.footer.instagramLink)||"",target:"_blank",children:(0,o.jsx)(R.P.Instagram,{size:18})}),(0,o.jsx)(Z(),{href:(null==t?void 0:t.footer.linkedInLink)||"",target:"_blank",children:(0,o.jsx)(R.P.LinkedIn,{size:18})})]}),(0,o.jsx)(J,{children:Object.values(H.HY).map(e=>(0,o.jsx)(ee,{className:e===i?"selected":"",onClick:()=>onChangeSelectedTab(H.HY[e]),children:n("common:destinations.".concat(e))},e))}),(0,o.jsx)(Contacts,{location:i,sections:t})]})};var et=n(43627),en=n(62919),eo=n(38942);function contact_styles_templateObject(){let e=(0,O._)(["\n  width: 100%;\n  height: ",";\n  display: flex;\n  background-color: ",";\n\n  @media "," {\n    flex-direction: column-reverse;\n    height: 100%;\n  }\n"]);return contact_styles_templateObject=function(){return e},e}function contact_styles_templateObject1(){let e=(0,O._)(["\n  width: 50%;\n  padding: ",";\n\n  h1 {\n    font-size: ",";\n    margin-bottom: ",";\n  }\n\n  h2 {\n    font-size: ",";\n    font-weight: ",";\n    margin-bottom: ",";\n  }\n  @media "," {\n    padding: ",";\n  }\n\n  @media "," {\n    width: 100%;\n    padding: ",";\n  }\n\n  @media "," {\n    width: 100%;\n    padding: ",";\n  }\n"]);return contact_styles_templateObject1=function(){return e},e}let er=C.ZP.div.withConfig({componentId:"sc-3fdc2d35-0"})(contact_styles_templateObject(),e=>{let{theme:t}=e;return"calc(100vh - ".concat(t.navbarHeight,")")},e=>{let{theme:t}=e;return t.colors.white},P.Hb.desktop),el=C.ZP.div.withConfig({componentId:"sc-3fdc2d35-1"})(contact_styles_templateObject1(),e=>{let{theme:t}=e;return"".concat(t.spacing.x_large," ").concat(t.spacing.xxx_large)},e=>{let{theme:t}=e;return t.fontSizes.x_large},e=>{let{theme:t}=e;return t.spacing.small},e=>{let{theme:t}=e;return t.fontSizes.middle},e=>{let{theme:t}=e;return t.weights.regular},e=>{let{theme:t}=e;return t.spacing.x_large},P.Hb.x_desktop,e=>{let{theme:t}=e;return"".concat(t.spacing.x_large," ").concat(t.spacing.x_large)},P.Hb.desktop,e=>{let{theme:t}=e;return"".concat(t.spacing.x_large," ").concat(t.spacing.xx_large)},P.Hb.mobile,e=>{let{theme:t}=e;return"".concat(t.spacing.x_large," ").concat(t.spacing.large)}),Contact=e=>{var t;let{data:n}=e,{t:r,i18n:i}=(0,l.$G)(),{data:c}=(0,eo.z)(null!==(t=i.language)&&void 0!==t?t:"en",n),s="".concat(E.R$,"/logos/lovelystay-white.svg");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.PB,{title:r("common:navbar.contact"),description:r("contact:seo.description"),openGraph:{}}),(0,o.jsx)(a.i8,{url:E.R$,logo:s,contactPoint:[{telephone:r("contact:seo.customer_service_phone"),contactType:r("contact:seo.customer_service"),availableLanguage:[r("common:english"),r("common:portuguese")]},{telephone:r("contact:seo.owner_commercial_phone"),contactType:r("contact:seo.owner_commercial"),availableLanguage:[r("common:english"),r("common:portuguese")]}]}),(0,o.jsx)(en.u,{}),(0,o.jsxs)(er,{children:[(0,o.jsxs)(el,{children:[(0,o.jsx)("h1",{children:r("contact:contactForm.title")}),(0,o.jsx)("h2",{children:r("contact:contactForm.subtitle")}),(0,o.jsx)(MailForm,{})]}),c?(0,o.jsx)(MapSection,{sections:c}):null]})]})};Contact.getLayout=e=>(0,o.jsx)(et.A,{children:e});var ea=!0,ei=Contact},61694:function(e,t,n){"use strict";n.d(t,{B:function(){return fetchGeoZone},D:function(){return postContact}});var o=n(48303),r=n(89206);let postContact=async e=>{let t="/contact";try{o.Z.post(t,{...e})}catch(e){(0,r.S)({error:e,method:"POST",endpoint:t})}},fetchGeoZone=async()=>{try{let{data:e}
1=await o.Z.get("/website/geozones");return e}catch(e){(0,r.S)({error:e,endpoint:"/website/geozones"})}}},48303:function(e,t,n){"use strict";var o=n(87066);let r=o.default.create({baseURL:"https://dashboard.lovelystay.com/api",withCredentials:!0});t.Z=r},24745:function(e,t,n){"use strict";n.d(t,{I:function(){return useGeozoneQuery}});var o=n(17e3),r=n(61694);let useGeozoneQuery=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.a)({queryKey:["geozones"],queryFn:()=>(0,r.B)(),keepPreviousData:!0,staleTime:1/0,enabled:e})}},41821:function(e,t,n){"use strict";n.d(t,{AD:function(){return findGeoZoneByName},f0:function(){return findGeoZoneById},kF:function(){return r}});let o={Lisboa:"[email protected]",Porto:"[email protected]",Algarve:"[email protected]",Mafra:"[email protected]",Cascais:"[email protected]","V.N. Gaia":"[email protected]",Matosinhos:"[email protected]",Sintra:"[email protected]",Faro:"[email protected]",Normandy:"[email protected]"},findGeoZoneByName=(e,t)=>{for(let n in e)if(e[n].geoZoneName===t){let e={geoZoneBookingsEmail:o[t],geoZoneSalesEmail:"[email protected]",geoZoneId:n};return e}return null},findGeoZoneById=(e,t)=>e&&e[t]?{...e[t],linktreeUrl:getGeoZoneLinktreeUrl(e[t].geoZoneName)}
1:null,r={2:"https://maps.app.goo.gl/msPYPGbtTdTsQuT58",3:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",4:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8",5:"https://maps.app.goo.gl/msPYPGbtTdTsQuT58",6:"https://maps.app.goo.gl/msPYPGbtTdTsQuT58",13:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",14:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",16:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8",17:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",18:"https://maps.app.goo.gl/msPYPGbtTdTsQuT58",19:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",20:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8",22:"https://maps.app.goo.gl/GJxKHkQcd1VWZ3S39",23:"https://maps.app.goo.gl/KiT2EvbT8DawaNDo7",25:"https://maps.app.goo.gl/GJxKHkQcd1VWZ3S39",26:"https://maps.app.goo.gl/KiT2EvbT8DawaNDo7",27:"https://maps.app.goo.gl/msPYPGbtTdTsQuT58",60:"https://maps.app.goo.gl/KiT2EvbT8DawaNDo7",61:"https://maps.app.goo.gl/h3PUCjA8sXfFqwjB7",62:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8",63:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8",64:"https://maps.app.goo.gl/F9HECjww2uNnH4oH8"},l={lisboa:{url:"https://linktr.ee/lovelystaylisboa",locations:["Lisboa","Mafra","Cascais","Oeiras","Seixal","Almada","Sesimbra"]},porto:{url:"https://linktr.ee/lovelystayporto",locations:["Porto","V.N. Gaia","Matosinhos","P\xf3voa de Varzim"]},algarve:{url:"https://linktr.ee/lovelystayalgarve",locations:["Algarve","V.R. Santo Ant\xf3nio","Faro","Olh\xe3o","Portim\xe3o","Lagoa","Albufeira","Loul\xe9"]},madeira:{url:"https://linktr.ee/lovelystaymadeira",locations:["Madeira","Santa Cruz","Ponta do Sol","Santana","Calheta","Machico","Funchal","Ribeira Brava","C\xe2mara de Lobos","S\xe3o Vicente"]}},getGeoZoneLinktreeUrl=e=>{for(let t of Object.values(l))if(t.locations.includes(e))return t.url;return null}},55839:function(e,t,n){"use strict";n.d(t,{B:function(){return validatePhoneByCountry},C:function(){return validateRequiredString}});var o=n(54555);let validateRequiredString=e=>{var t;return!!e&&(null===(t=e.trim())||void 0===t?void 0:t.length)>0},validatePhoneByCountry=(e,t)=>{let n=e.length,r=Object.values(o.ki).find(e=>{let{id:n}=e;return n===t});if(r){let{phoneLength:e}=r;if(e)return e.includes(n)}return!0}},84548:function(e,t,n){"use strict";n.d(t,{B:function(){return createCollection}});var o=n(67294),r=n(85893),l=n(28771),a=n(88426);function createCollection(e){let t=e+"CollectionProvider",[n,i]=function(e,t=[]){let n=[],createScope=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return createScope.scopeName=e,[function(t,l){let a=o.createContext(l),i=n.length;function Provider(t){let{scope:n,children:l,...c}=t,s=n?.[e][i]||a,u=o.useMemo(()=>c,Object.values(c));return(0,r.jsx)(s.Provider,{value:u,children:l})}return n=[...n,l],Provider.displayName=t+"Provider",[Provider,function(n,r){let c=r?.[e][i]||a,s=o.useContext(c);if(s)return s;if(void 0!==l)return l;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let createScope=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:o})=>{let r=n(e),l=r[`__scope${o}`];return{...t,...l}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return createScope.scopeName=t.scopeName,createScope}(createScope,...t)]}(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),CollectionProvider=e=>{let{scope:t,children:n}=e,l=o.useRef(null),a=o.useRef(new Map).current;return(0,r.jsx)(c,{scope:t,itemMap:a,collectionRef:l,children:n})};CollectionProvider.displayName=t;let u=e+"CollectionSlot",d=o.forwardRef((e,t)=>{let{scope:n,children:o}=e,i=s(u,n),c=(0,l.e)(t,i.collectionRef);return(0,r.jsx)(a.g7,{ref:c,children:o})});d.displayName=u;let p=e+"CollectionItemSlot",m="data-radix-collection-item",f=o.forwardRef((e,t)=>{let{scope:n,children:i,...c}=e,u=o.useRef(null),d=(0,l.e)(t,u),f=s(p,n);return o.useEffect(()=>(f.itemMap.set(u,{ref:u,...c}),()=>void f.itemMap.delete(u))),(0,r.jsx)(a.g7,{[m]:"",ref:d,children:i})});return f.displayName=p,[{Provider:CollectionProvider,Slot:d,ItemSlot:f},function(t){let n=s(e+"CollectionConsumer",t),r=o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`)),o=Array.from(n.itemMap.values()),r=o.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},i]}},78990:function(e,t,n){"use strict";n.d(t,{gm:function(){return useDirection}});var o=n(67294);n(85893);var r=o.createContext(void 0);function useDirection(e){let t=o.useContext(r);return e||t||"ltr"}},80650:function(e,t,n){"use strict";n.d(t,{ck:function(){return I},fC:function(){return S},Pc:function(){return v}});var o=n(67294),r=n(36206),l=n(84548),a=n(28771),i=n(85893),c=n(91276),s=n(75320),u=n(79698),d=n(77342),p=n(78990),m="rovingFocusGroup.onEntryFocus",f={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[b,h,j]=(0,l.B)(g),[_,v]=function(e,t=[]){let n=[],createScope=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return createScope.scopeName=e,[function(t,r){let l=o.createContext(r),a=n.length;function Provider(t){let{scope:n,children:r,...c}=t,s=n?.[e][a]||l,u=o.useMemo(()=>c,Object.values(c));return(0,i.jsx)(s.Provider,{value:u,children:r})}return n=[...n,r],Provider.displayName=t+"Provider",[Provider,function(n,i){let c=i?.[e][a]||l,s=o.useContext(c);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let createScope=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:o})=>{let r=n(e),l=r[`__scope${o}`];return{...t,...l}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return createScope.scopeName=t.scopeName,createScope}(createScope,...t)]}(g,[j]),[x,w]=_(g),y=o.forwardRef((e,t)=>
1(0,i.jsx)(b.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,i.jsx)(b.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,i.jsx)(O,{...e,ref:t})})}));y.displayName=g;var O=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:l,loop:c=!1,dir:g,currentTabStopId:b,defaultCurrentTabStopId:j,onCurrentTabStopIdChange:_,onEntryFocus:v,preventScrollOnEntryFocus:w=!1,...y}=e,O=o.useRef(null),C=(0,a.e)(t,O),P=(0,p.gm)(g),[k=null,S]=(0,d.T)({prop:b,defaultProp:j,onChange:_}),[I,F]=o.useState(!1),z=(0,u.W)(v),M=h(n),N=o.useRef(!1),[T,Z]=o.useState(0);return o.useEffect(()=>{let e=O.current;if(e)return e.addEventListener(m,z),()=>e.removeEventListener(m,z)},[z]),(0,i.jsx)(x,{scope:n,orientation:l,dir:P,loop:c,currentTabStopId:k,onItemFocus:o.useCallback(e=>S(e),[S]),onItemShiftTab:o.useCallback(()=>F(!0),[]),onFocusableItemAdd:o.useCallback(()=>Z(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>Z(e=>e-1),[]),children:(0,i.jsx)(s.WV.div,{tabIndex:I||0===T?-1:0,"data-orientation":l,...y,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,r.M)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,r.M)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(m,f);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===k),o=[t,n,...e].filter(Boolean),r=o.map(e=>e.ref.current);focusFirst(r,w)}}N.current=!1}),onBlur:(0,r.M)(e.onBlur,()=>F(!1))})})}),C="RovingFocusGroupItem",P=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:l=!0,active:a=!1,tabStopId:u,...d}=e,p=(0,c.M)(),m=u||p,f=w(C,n),g=f.currentTabStopId===m,j=h(n),{onFocusableItemAdd:_,onFocusableItemRemove:v}=f;return o.useEffect(()=>{if(l)return _(),()=>v()},[l,_,v]),(0,i.jsx)(b.ItemSlot,{scope:n,id:m,focusable:l,active:a,children:(0,i.jsx)(s.WV.span,{tabIndex:g?0:-1,"data-orientation":f.orientation,...d,ref:t,onMouseDown:(0,r.M)(e.onMouseDown,e=>{l?f.onItemFocus(m):e.preventDefault()}),onFocus:(0,r.M)(e.onFocus,()=>f.onItemFocus(m)),onKeyDown:(0,r.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var o;let r=(o=e.key,"rtl"!==n?o:"ArrowLeft"===o?"ArrowRight":"ArrowRight"===o?"ArrowLeft":o);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return k[r]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=j().filter(e=>e.focusable),l=r.map(e=>e.ref.current);if("last"===t)l.reverse();else if("prev"===t||"next"===t){var n,o;"prev"===t&&l.reverse();let r=l.indexOf(e.currentTarget);l=f.loop?(n=l,o=r+1,n.map((e,t)=>n[(o+t)%n.length])):l.slice(r+1)}setTimeout(()=>focusFirst(l))}})})})});P.displayName=C;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function focusFirst(e,t=!1){let n=document.activeElement;for(let o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}var S=y,I=P},60434:function(e,t,n){"use strict";n.d(t,{VY:function(){return I},aV:function(){return k},fC:function(){return P},xz:function(){return S}});var o=n(67294),r=n(36206),l=n(25360),a=n(80650),i=n(29115),c=n(75320),s=n(78990),u=n(77342),d=n(91276),p=n(85893),m="Tabs",[f,g]=(0,l.b)(m,[a.Pc]),b=(0,a.Pc)(),[h,j]=f(m),_=o.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,onValueChange:r,defaultValue:l,orientation:a="horizontal",dir:i,activationMode:m="automatic",...f}=e,g=(0,s.gm)(i),[b,j]=(0,u.T)({prop:o,onChange:r,defaultProp:l});return(0,p.jsx)(h,{scope:n,baseId:(0,d.M)(),value:b,onValueChange:j,orientation:a,dir:g,activationMode:m,children:(0,p.jsx)(c.WV.div,{dir:g,"data-orientation":a,...f,ref:t})})});_.displayName=m;var v="TabsList",x=o.forwardRef((e,t)=>{let{__scopeTabs:n,loop:o=!0,...r}=e,l=j(v,n),i=b(n);return(0,p.jsx)(a.fC,{asChild:!0,...i,orientation:l.orientation,dir:l.dir,loop:o,children:(0,p.jsx)(c.WV.div,{role:"tablist","aria-orientation":l.orientation,...r,ref:t})})});x.displayName=v;var w="TabsTrigger",y=o.forwardRef((e,t)=>
1{let{__scopeTabs:n,value:o,disabled:l=!1,...i}=e,s=j(w,n),u=b(n),d=makeTriggerId(s.baseId,o),m=makeContentId(s.baseId,o),f=o===s.value;return(0,p.jsx)(a.ck,{asChild:!0,...u,focusable:!l,active:f,children:(0,p.jsx)(c.WV.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":m,"data-state":f?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:d,...i,ref:t,onMouseDown:(0,r.M)(e.onMouseDown,e=>{l||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(o)}),onKeyDown:(0,r.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(o)}),onFocus:(0,r.M)(e.onFocus,()=>{let e="manual"!==s.activationMode;f||l||!e||s.onValueChange(o)})})})});y.displayName=w;var O="TabsContent",C=o.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:l,children:a,...s}=e,u=j(O,n),d=makeTriggerId(u.baseId,r),m=makeContentId(u.baseId,r),f=r===u.value,g=o.useRef(f);return o.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,p.jsx)(i.z,{present:l||f,children:({present:n})=>(0,p.jsx)(c.WV.div,{"data-state":f?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:m,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:n&&a})})});function makeTriggerId(e,t){return`${e}-trigger-${t}`}function makeContentId(e,t){return`${e}-content-${t}`}C.displayName=O;var P=_,k=x,S=y,I=C}},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,4555,9774,2888,179],function(){return e(e.s=27120)}),_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.