1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d7ce58ca-6a57-4e34-b9d1-b0e7dc256bcd",e._sentryDebugIdIdentifier="sentry-dbid-d7ce58ca-6a57-4e34-b9d1-b0e7dc256bcd")}()}catch(e){}!function(){try{var 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]=function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];if(null!=t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:pawshake-seo-application-key":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[27889,22425,97554,96319,28296],{78764:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/security",function(){return t(40598)}])},40598:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSP:function(){return I},default:function(){return L}});var r=t(5311),s=t(13714),n=t(87680),i=t(21433),o=t(61876),c=t(66840),l=t(17946),d=t(23968),u=t(7909),m=t(9254),h=t(81271),p=t(67034),f=t(30020),w=t(6195),g=t(27962),b=t(84440),x=t(23433),j=t(21991),y=t(96319),v=t(73783),k=t(82415),N=t(36602),z=t(89542),P=t(81369),C=t(66193);let F=()=>{let{t:e}=(0,s.Z)("features"),a=P.z.object({oldPassword:P.z.string().min(1,{message:e("forms.updatePassword.oldPassword.validation.required")}),newPassword:P.z.string().min(1,{message:e("forms.updatePassword.newPassword.validation.required")}).max(100,{message:e("forms.updatePassword.newPassword.validation.length")}).refine(e=>4===(0,C.f)(e).value,{message:e("forms.updatePassword.newPassword.validation.strength")}),confirmPassword:P.z.string().min(1,{message:e("forms.updatePassword.confirmPassword.validation.required")})}).superRefine((a,t)=>{let{newPassword:r,confirmPassword:s}=a;r!==s&&t.addIssue({message:e("forms.updatePassword.confirmPassword.validation.match"),path:["confirmPassword"],code:"custom"})});return{form:(0,N.cI)({resolver:(0,z.F)(a),defaultValues:{oldPassword:"",newPassword:"",confirmPassword:""}})}},A=()=>{let{t:e}=(0,s.Z)("features");return(0,r.jsxs)(u.a,{className:"flex-col gap-xl",children:[(0,r.jsxs)(u.a,{className:"flex-col gap-lg",children:[(0,r.jsx)("h2",{children:e("features.account.security.email.title")}),(0,r.jsx)(E,{})]}),(0,r.jsx)(g.i,{}),(0,r.jsxs)(u.a,{className:"flex-col gap-lg",children:[(0,r.jsx)("h2",{children:e("features.account.security.password.title")}),(0,r.jsx)(U,{})]}),(0,r.jsx)(g.i,{}),(0,r.jsxs)(u.a,{className:"flex-col gap-lg",children:[(0,r.jsx)("h2",{children:e("features.account.security.delete.title")}),(0,r.jsx)(T,{})]})]})},E=()=>{let{t:e}=(0,s.Z)("features"),a=(0,o.useRouter)(),{data:t,isPending:n}=(0,v.Pc)();return n?(0,r.jsx)(m.a,{className:"size-2xl w-full max-w-screen-sm rounded-lg"}):(0,r.jsxs)(u.a,{className:"flex-col gap-xs",children:[(0,r.jsx)("b",{children:e("features:features.account.security.email.label")}),(0,r.jsxs)(u.a,{className:"items-center gap-sm",children:[(0,r.jsx)(d.X,{className:"size-lg text-light"}),t&&(0,r.jsx)("div",{className:"shrink truncate",children:t.email}),(0,r.jsx)(h.f,{variant:"ghost",size:"sm","data-test-id":"securityContainer.logoutButton",parentClassName:"shrink-0",onClick:()=>{a.push(k._j.user.logout)},children:e("common:usermenu.logout")})]})]})},U=()=>{let{t:e}=(0,s.Z)("features"),{user:a}=(0,x.f)(),{handleApiError:t}=(0,j.p)(),{form:n}=F(),{mutate:i,isPending:o}=(0,y.zT)({onSuccess:(e,a)=>c(a),onError:t}),c=async t=>{(null==a?void 0:a.firebaseUser)&&a.email&&await (0,y.$6)(a.firebaseUser,a.email,t.newPassword),l.Am.success(e("features.account.security.password.toast.success")),n.reset()};return(0,r.jsx)(p.a,{...n,children:(0,r.jsxs)("form",{className:"flex max-w-screen-sm flex-col gap-lg",onSubmit:n.handleSubmit(e=>{i(e)}),children:[(0,r.jsx)(p.b,{control:n.control,name:"oldPassword",render:a=>{let{field:t,fieldState:s}=a;return(0,r.jsxs)(p.c,{children:[(0,r.jsx)(p.c.Label,{children:e("forms.updatePassword.oldPassword.label")}),(0,r.jsx)(p.c.Control,{children:(0,r.jsx)(b.W,{autoComplete:"current-password",formContext:"updatePasswordForm.oldPassword",isValid:!1===s.invalid,...t})}),(0,r.jsx)(p.c.Error,{})]})}}),(0,r.jsx)(p.b,{control:n.control,name:"newPassword",render:a=>{let{field:t,fieldState:s}=a;return(0,r.jsxs)(p.c,{children:[(0,r.jsx)(p.c.Label,{children:e("forms.updatePassword.newPassword.label")}),(0,r.jsx)(p.c.Control,{children:(0,r.jsx)(b.W,{autoComplete:"new-password",formContext:"updatePasswordForm.newPassword",isValid:!1===s.invalid,...t})}),(0,r.jsx)(p.c.Caption,{children:(0,r.jsx)(w.Tj,{password:t.value})}),(0,r.jsx)(p.c.Error,{})]})}}),(0,r.jsx)(p.b,{control:n.control,name:"confirmPassword",render:a=>{let{field:t,fieldState:s}=a;return(0,r.jsxs)(p.c,{children:[(0,r.jsx)(p.c.Label,{children:e("forms.updatePassword.confirmPassword.label")}),(0,r.jsx)(p.c.Control,{children:(0,r.jsx)(b.W,{autoComplete:"new-password",formContext:"updatePasswordForm.confirmPassword",isValid:!1===s.invalid,...t})}),(0,r.jsx)(p.c.Error,{})]})}}),(0,r.jsx)(h.f,{variant:"primary",type:"submit","data-test-id":"securityContainer.updatePassword.submitButton",parentClassName:"w-fit",isLoading:o,children:e("forms.updatePassword.submit")})]})})},T=()=>{let{t:e}=(0,s.Z)("features"),a=(0,o.useRouter)(),{user:t}=(0,x.f)(),{handleApiError:n}=(0,j.p)(),[i,l]=(0,c.useState)(!1),{mutate:d,isPending:u}=(0,y.GC)({onSuccess:()=>a.replace(k._j.user.logout),onError:n});return(0,r.jsxs)(f.b,{open:i,onOpenChange:l,children:[(0,r.jsx)(f.c,{asChild:!0,children:(0,r.jsx)(h.f,{variant:"destructive",onClick:()=>l(!0),"data-test-id":"securityContainer.deleteButton",parentClassName:"w-fit",children:e("features:features.account.security.delete.cta")})}),(0,r.jsxs)(f.h,{children:[(0,r.jsx)(f.i,{children:(0,r.jsx)(f.d,{children:e("features.account.security.delete.confirmation.title")})}),(0,r.jsxs)(f.j,{children:[e("features.account.security.delete.confirmation.description"),(0,r.jsxs)(f.k,{children:[(0,r.jsx)(h.f,{variant:"ghost",onClick:()=>l(!1),"data-test-id":"securityContainer.delete.confirmation.cancelButton",children:e("features:features.account.security.delete.confirmation.cancel")}),(0,r.jsx)(h.f,{variant:"destructive",onClick:()=>d(t),isLoading:u,"data-test-id":"securityContainer.delete.confirmation.submitButton",children:e("features:features.account.security.delete.confirmation.submit")})]})]})]})]})};var S=t(82701),I=!0,L=(0,i.Y)()(e=>{let{referer:a}=e,{t}=(0,s.Z)("common"),i=[{label:t("pages.titles.account.index"),href:k._j.account.index},{label:t("pages.titles.account.security"),href:k._j.account.security}];return(0,r.jsx)(n.LN,{rootProps:{title:t("pages.titles.account.security")},headerProps:{titleElement:(0,r.jsx)(S.G,{title:t("pages.titles.account.security")})},navigationProps:{referer:a,routes:i},heading:t("pages.titles.account.security"),subheading:t("features:features.security.description"),children:(0,r.jsx)(A,{})})})},88456:function(e,a,t){"use strict";t.d(a,{O:function(){return f}});var r=t(5311),s=t(79165),n=t.n(s),i=t(61876),o=t(13714),c=t(79217),l=t(7909),d=t(80777),u=t(81271),m=t(14212),h=t(27962),p=t(82415);let f=e=>{let{routes:a,canGoBack:t=!1,backUrl:s,className:f=""}=e,w=(0,i.useRouter)(),{t:g}=(0,o.Z)("common");return(0,r.jsxs)(l.a,{className:(0,d.b)("flex-col-reverse md:flex-row md:gap",f),children:[(!0===t||s)&&(0,r.jsxs)(l.a,{className:"hidden items-center gap md:flex",children:[(0,r.jsxs)(u.d,{buttonClassName:"w-fit",variant:"ghost",colorScheme:"default",ariaLabel:g("generic.navigation.goBack"),size:"sm","data-test-id":"ui.breadcrumbs.goBackButton",onClick:()=>
1{if(s){w.push(s);return}if(window.history.length>1){w.back();return}w.push(p._j.home)},children:[(0,r.jsx)(c.b,{}),g("generic.navigation.goBack")]}),(0,r.jsx)(h.i,{direction:"vertical",className:"hidden !h md:block"})]}),(0,r.jsx)(m.a,{breadcrumbs:a,element:e=>{let{icon:a,label:t,href:s,index:i}=e;return(0,r.jsx)(n(),{className:"text-inherit",href:s,title:0===i?g("pages.titles.home"):t,"data-test-id":"ui.breadcrumbs.".concat(i),prefetch:!1,children:(0,r.jsx)(m.a.Item,{icon:a,label:t})},"breadcrumb-".concat(i))}})]})}},80443:function(e,a,t){"use strict";t.d(a,{s:function(){return f}});var r=t(5311),s=t(66840),n=t(45156),i=t(3654),o=t(79217),c=t(54294),l=t(81271),d=t(7909),u=t(78684),m=t(99274);let h=e=>{let{displayedYear:a,onChange:t}=e,s=Array.from({length:new Date().getFullYear()-1900+1},(e,a)=>1900+a);return(0,r.jsxs)(c.a,{value:a.toString(),onValueChange:e=>t(parseInt(e)),children:[(0,r.jsx)(c.a.Trigger,{className:"line-clamp-none",children:(0,r.jsx)(c.a.Value,{children:a.toString()})}),(0,r.jsx)(c.a.Content,{className:"z-[200] h-[280px]",children:s.map(e=>(0,r.jsx)(c.a.Item,{value:e.toString(),className:"!py-0 px-sm",children:e},e))})]})},p=e=>{let{displayedMonth:a,onChange:t}=e,{locale:n}=(0,u.bU)(),o=(0,s.useMemo)(()=>Array.from({length:12},(e,a)=>{let t=new Date(2024,a,1);return(0,i.Z)(t,"MMM",{locale:(0,m.BJ)(n)})}),[n]);return(0,r.jsxs)(c.a,{value:a.toString(),onValueChange:e=>t(parseInt(e)),children:[(0,r.jsx)(c.a.Trigger,{children:(0,r.jsx)(c.a.Value,{placeholder:o[a]})}),(0,r.jsx)(c.a.Content,{className:"z-[200] h-[280px]",children:o.map((e,a)=>(0,r.jsx)(c.a.Item,{value:a.toString(),className:"!py-0 px-sm",children:e},e))})]})},f=e=>{let{className:a,classNames:t,...i}=e,[c,u]=(0,s.useState)(i.defaultMonth||new Date),m=e=>{let a=new Date(c);a.setFullYear(e),u(a)},f=e=>{let a=new Date(c);a.setMonth(e),u(a)};return(0,r.jsx)(n._W,{className:"w-full",month:c,onMonthChange:u,fixedWeeks:!0,components:{Caption:e=>{let{displayMonth:a}=e,{goToMonth:t,nextMonth:s,previousMonth:i}=(0,n.HJ)();return(0,r.jsxs)("div",{className:"flex w-full justify-between gap pt-sm",children:[(0,r.jsx)(l.e,{ariaLabel:"Previous month","data-test-id":"previousMonthButton",variant:"ghost",onClick:()=>i&&t(i),disabled:!i,icon:o.f}),(0,r.jsxs)(d.a,{className:"shrink-0 gap",children:[(0,r.jsx)(p,{displayedMonth:a.getMonth(),onChange:f}),(0,r.jsx)(h,{displayedYear:a.getFullYear(),onChange:m})]}),(0,r.jsx)(l.e,{ariaLabel:"Next month","data-test-id":"nextMonthButton",variant:"ghost",onClick:()=>s&&t(s),disabled:!s,icon:o.g})]})}},...i})}},22425:function(e,a,t){"use strict";t.d(a,{$:function(){return A}});var r=t(5311),s=t(7477),n=t.n(s),i=t(79165),o=t.n(i),c=t(61876),l=t(34749),d=t(13714),u=t(23968),m=t(79217),h=t(16508),p=t(7909),f=t(80777),w=t(87927),g=t(81271),b=t(46999),x=t(32854),j=t(87755),y=t(95469),v=t(78684),k=t(17298),N=t(15457);let z=e=>N.YD.reduce((a,t)=>{let r=e.find(e=>e.service===t.id);return r&&a.push(r),a},[]);var P=t(92182),C=t(82415),F=t(75373);let A=e=>{if(e.compactMode)return(0,r.jsx)(E,{service:e.service});let{service:a,services:t,...s}=e;return(0,r.jsxs)("div",{className:"z-0",children:[(0,r.jsx)(U,{...s,numberOfCities:20,className:"hidden lg:block"}),(0,r.jsx)(U,{...s,numberOfCities:12,className:"hidden md:block lg:hidden"}),(0,r.jsx)(U,{...s,numberOfCities:8,className:"md:hidden"}),(0,r.jsx)(S,{service:a,services:t})]})},E=e=>{let{service:a}=e,{t}=(0,d.Z)("common"),s=(0,c.useRouter)();return(0,r.jsx)("div",{className:"bg-primary-dark py",children:(0,r.jsxs)(p.a,{className:"container min-h-xl flex-col gap-sm lg:flex-row lg:items-center lg:justify-between lg:gap",children:[(0,r.jsxs)(p.a,{className:"flex-wrap items-center gap-xs text-onDark",children:[(0,r.jsx)(l.Z,{i18nKey:"common:layout.footer.copyrightV2",values:{year:new Date().getFullYear()}}),(0,r.jsx)(u.h,{className:"h w"}),(0,r.jsx)(j.F,{variant:"ghost",className:"font-normal",href:C._j.termsAndConditions,"data-test-id":"compactFooter.termsAndConditionsLink",children:t("layout.footer.legal.termsAndConditions")}),(0,r.jsx)(u.h,{className:"h w"}),(0,r.jsx)(j.F,{variant:"ghost",className:"font-normal",href:C._j.privacyPolicy,"data-test-id":"
1compactFooter.privacyPolicyLink",children:t("layout.footer.legal.privacyPolicy")})]}),(0,r.jsx)(x.p,{service:a,destinationPath:s.asPath,className:"mx-0 min-h-fit shrink-0 text-onDark hover:!bg-transparent hover:text-onDark hover:underline"})]})})},U=e=>{let{topCities:a,topCity:t,numberOfCities:s,className:n,showTopCities:i=!0}=e,{t:o}=(0,d.Z)("common");if(!a||!i)return null;let c=a.slice(0,s).sort((e,a)=>e.title.localeCompare(a.title));return(0,r.jsx)("div",{className:(0,f.b)("bg-primary py-3xl",n),children:(0,r.jsxs)(w.a,{className:"container z-0 flex-col gap-3xl text-onDark",children:[(0,r.jsx)("h2",{className:"h1 break-words text-center",children:o("layout.footer.trustedSitters.title",{count:1e3})}),(0,r.jsx)(p.a,{className:"max-w-screen-lg flex-wrap items-center justify-center gap-sm",children:c.map((e,a)=>(0,r.jsx)(T,{href:e.href,label:e.label,"data-test-id":"footer.topCity.".concat(a,".").concat(e.label)},"topCity-".concat(a)))}),t&&(0,r.jsx)(g.f,{variant:"outline","data-test-id":"footer.topCitiesButton",className:"border-white",asChild:!0,children:(0,r.jsxs)(j.F,{variant:"ghost",className:"font-normal text-onDark hover:!bg-primary-dark active:!bg-brand-700",href:t.href,"data-test-id":"footer.topCitiesLink",children:[t.label,(0,r.jsx)(m.c,{className:"h w"})]})})]})})},T=e=>{let{label:a,href:t,"data-test-id":s}=e;return(0,r.jsx)(g.f,{variant:"primary","data-test-id":"".concat(s,"Button"),asChild:!0,children:(0,r.jsx)(j.F,{variant:"solid",parentClassName:"",className:"w-fit rounded-full border-2 border-brand-200 px py-sm text-center font-normal",href:t,"data-test-id":"".concat(s,"Link"),title:a,children:(0,r.jsx)("span",{children:a})})})},S=e=>{let{service:a,services:t}=e;return(0,r.jsx)("div",{className:"overflow-hidden bg-brand-700 py-lg lg:py-2xl",children:(0,r.jsxs)("div",{className:"container relative text-onDark",children:[(0,r.jsx)(w.c,{className:"absolute bottom-0 left-0 !size-[45rem] -translate-x-1/2 translate-y-1/2 bg-[radial-gradient(50%_50%_at_50%_50%,var(--tw-gradient-from),var(--tw-gradient-to))] from-brand-600 to-brand-600/0 max-md:left-1/2"}),(0,r.jsx)(w.c,{className:"absolute right-0 top-0 !size-[45rem] -translate-y-1/2 translate-x-1/2 bg-[radial-gradient(50%_50%_at_50%_50%,var(--tw-gradient-from),var(--tw-gradient-to))] from-brand-600 to-brand-600/0 max-md:hidden"}),(0,r.jsxs)(p.a,{className:"flex-col gap-xl md:justify-between lg:flex-row",children:[(0,r.jsxs)(p.a,{className:"z-20 flex-col gap-xl md:flex-row md:gap lg:gap-3xl",children:[(0,r.jsxs)(p.a,{className:"flex-col gap-xl md:w-full lg:w-fit",children:[(0,r.jsx)(I,{}),t&&(0,r.jsx)(L,{services:t}),(0,r.jsx)(_,{})]}),(0,r.jsxs)(p.a,{className:"flex-col gap-xl md:w-full lg:w-fit",children:[(0,r.jsx)(R,{}),(0,r.jsx)(M,{}),(0,r.jsx)(D,{service:a})]})]}),(0,r.jsxs)(p.a,{className:"z-20 flex-col gap-xl md:justify-between lg:w-[320px] xl:w-[400px]",children:[(0,r.jsxs)(p.a,{className:"flex-col gap-xl md:flex-row md:gap lg:flex-col lg:gap-3xl",children:[(0,r.jsx)(O,{}),(0,r.jsx)(B,{})]}),(0,r.jsx)(p.a,{children:(0,r.jsx)(Z,{})})]})]})]})})},I=()=>{let{t:e}=(0,d.Z)("common");return(0,r.jsxs)(p.a,{className:"flex-col gap md:gap-sm",children:[(0,r.jsx)("h3",{children:e("layout.footer.aboutUs.title")}),(0,r.jsx)(p.a,{className:"flex-col items-start gap-sm md:gap-xs",children:(0,k.nK)().map((a,t)=>(0,r.jsx)(V,{href:a.href,label:e(a.label),"data-test-id":"footer.aboutUs.".concat(t,".").concat(a.label),showExternal:a.showExternal},"footer-aboutUs-".concat(t)))})]})},L=e=>{let{t:a}=(0,d.Z)("common"),{services:t}=e,s=z(t);return(0,r.jsxs)(p.a,{className:"flex-col gap md:gap-sm",children:[(0,r.jsx)("h3",{children:a("layout.footer.services.title")}),(0,r.jsx)(p.a,{className:"flex-col gap",children:s.map((e,t)=>{if(!e.service)return null;let s=(0,N.Sj)(e.service);return(0,r.jsx)(p.a,{className:"gap-sm",children:(0,r.jsxs)(V,{className:"group flex items-center gap-sm",href:e.href,"data-test-id":"footer.service.".concat(t,".").concat(e.label),showExternal:!1,label:a(s.label),children:[(0,r.jsx)(y.A,{service:s,size:"sm"}),a(s.label)]},"footer-service-".concat(t))},e.service)})})]})},_=()=>{let{t:e}=(0,d.Z)("common"),{country:a}=(0,v.bU)();return(0,r.jsxs)(p.a,{className:"flex-col gap md:gap-sm",children:[(0,r.jsx)("h3",{children:e("layout.footer.paymentMethods.title")}),(0,r.jsx)(b.a.Provider,{children:(0,r.jsx)("div",{className:"grid w-fit grid-cols-5 ga
1p-sm lg:grid-cols-4 xl:grid-cols-5",children:k.kS[a].map(e=>{let a=(0,P.B)(e);return(0,r.jsxs)(b.a,{children:[(0,r.jsx)(b.a.Trigger,{asChild:!0,children:(0,r.jsx)(w.a,{className:"rounded bg p-sm",children:(0,r.jsx)(a.icon,{className:"size-lg"})})}),(0,r.jsx)(b.a.Content,{children:a.label})]},"paymentMethod-".concat(e))})})})]})},R=()=>{let{t:e}=(0,d.Z)("common"),{locale:a}=(0,v.bU)();return(0,r.jsxs)(p.a,{className:"flex-col gap md:gap-sm",children:[(0,r.jsx)("h3",{children:e("layout.footer.learnMore.title")}),(0,r.jsx)(p.a,{className:"flex-col items-start gap-sm md:gap-xs",children:(0,k._S)(a).map((a,t)=>(0,r.jsx)(V,{href:a.href,label:e(a.label),"data-test-id":"footer.learnMore.".concat(t,".").concat(a.label),showExternal:a.showExternal},"footer-learnMore-".concat(t)))})]})},M=()=>{let{t:e}=(0,d.Z)("common"),{country:a}=(0,v.bU)();return(0,r.jsxs)(p.a,{className:"flex-col gap md:gap-sm",children:[(0,r.jsx)("h3",{children:e("layout.footer.legal.title")}),(0,r.jsx)(p.a,{className:"flex-col items-start gap-sm md:gap-xs",children:(0,k.sy)(a).map((a,t)=>(0,r.jsx)(V,{href:a.href,label:e(a.label),"data-test-id":"footer.legal.".concat(t,".").concat(a.label),showExternal:a.showExternal},"footer-legal-".concat(t)))})]})},D=e=>{let{service:a}=e,{t}=(0,d.Z)("common"),s=(0,c.useRouter)();return(0,r.jsxs)(p.a,{className:"flex-col gap md:gap-sm",children:[(0,r.jsx)("h3",{children:t("layout.footer.country.title")}),(0,r.jsx)(x.p,{service:a,destinationPath:s.asPath,className:"mx-0 min-h-fit text-onDark hover:!bg-transparent hover:text-onDark hover:underline"})]})},O=()=>{let{t:e}=(0,d.Z)("common"),{language:a,country:t}=(0,v.bU)();return(0,r.jsxs)(p.a,{className:"w-full flex-col gap md:gap-sm",children:[(0,r.jsx)("h3",{children:e("layout.footer.availableOn.title")}),(0,r.jsx)(p.a,{className:"flex-wrap items-start gap-sm",children:(0,k.VQ)(a,t).map((e,a)=>(0,r.jsx)(o(),{prefetch:!1,href:e.href,passHref:!0,className:"hover:opacity-60",children:(0,r.jsx)(n(),{src:e.img,alt:e.alt,width:-1!==e.href.indexOf("apple")?120:135,height:40})},"footer-mobile-".concat(a)))})]})},B=()=>{let{t:e}=(0,d.Z)("common"),{country:a}=(0,v.bU)();return(0,r.jsxs)(p.a,{className:"w-full flex-col gap md:gap-sm",children:[(0,r.jsx)("h3",{children:e("layout.footer.socialMedia.title")}),(0,r.jsx)(p.a,{className:"items-start gap-sm",children:(0,F.z)(a).map((e,a)=>{let t=(0,F.m)(e.type);return(0,r.jsx)(o(),{prefetch:!1,passHref:!0,className:"hover:opacity-60",...e,"aria-label":e.type,children:(0,r.jsx)(t,{className:"m-sm size-lg"})},"footer-mobile-".concat(a))})})]})},Z=()=>(0,r.jsxs)(p.a,{className:"flex-col gap-lg",children:[(0,r.jsx)(h.b,{title:"Pawshake",className:"h-xl w-[166px]"}),(0,r.jsx)(W,{})]}),W=()=>(0,r.jsx)(l.Z,{i18nKey:"common:layout.footer.copyrightV2",values:{year:new Date().getFullYear()}}),V=e=>{let{children:a,className:t="",label:s,href:n,"data-test-id":i,showExternal:o=!0}=e;return(0,r.jsxs)(j.F,{variant:"ghost",className:(0,f.b)("block px-sm font-normal",{"flex items-center gap-sm":o},t),target:o?"_blank":void 0,href:n,"data-test-id":i,title:s,children:[a?(0,r.jsx)(r.Fragment,{children:a}):(0,r.jsx)(r.Fragment,{children:s}),o&&(0,r.jsx)(u.v,{className:"h w"})]},i)}},82701:function(e,a,t){"use strict";t.d(a,{G:function(){return s}});var r=t(5311);let s=e=>{let{title:a}=e;return(0,r.jsx)("h1",{className:"h2 w-full truncate text-onDark",children:a})}},84440:function(e,a,t){"use strict";t.d(a,{W:function(){return c}});var r=t(5311),s=t(66840),n=t(13714),i=t(59285),o=t(81271);let c=(0,s.forwardRef)((e,a)=>{let{t}=(0,n.Z)("common"),{formContext:c,placeholder:l,isValid:d,onChange:u,...m}
1=e,[h,p]=(0,s.useState)(!1);return(0,r.jsx)(i.b,{type:h?"text":"password","data-test-id":"".concat(c,"Input"),placeholder:l,isValid:d,onChange:u,ref:a,rightAddon:(0,r.jsx)(o.f,{type:"button",variant:"ghost",size:"sm","data-test-id":h?"".concat(c,".hideButton"):"".concat(c,".showButton"),className:"px-sm",onClick:e=>{e.preventDefault(),p(!h)},children:(0,r.jsx)("span",{children:t(h?"generic.hide":"generic.show")})}),...m})})},32318:function(e,a,t){"use strict";t.d(a,{F:function(){return p},n:function(){return h}});var r=t(5311),s=t(66840),n=t(13714),i=t(65639),o=t(16123),c=t(34061),l=t(80777),d=t(81271),u=t(30020),m=t(27962);let h=e=>{let{children:a,className:t,trigger:m,title:h,footer:p,description:f,onOpenChange:w,popoverProps:g,drawerProps:b}=e,{t:x}=(0,n.Z)("common"),[j,y]=(0,s.useState)(!1),[v,k]=(0,s.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"max-md:hidden",children:(0,r.jsxs)(o.a,{...g,open:v,onOpenChange:e=>{k(e),w&&w(e)},children:[(0,r.jsx)(o.a.Trigger,{asChild:!0,children:m}),(0,r.jsx)(o.a.Content,{className:t,children:a instanceof Function?a({isMobile:!1,setOpen:k}):a})]})}),(0,r.jsx)("div",{className:"w-full md:hidden",children:(0,r.jsxs)(c.a,{...b,open:j,onOpenChange:e=>{y(e),w&&w(e)},children:[(0,r.jsx)(c.a.Trigger,{asChild:!0,children:m}),(0,r.jsxs)(c.a.Content,{className:(0,l.b)("z-[101]",t),overlayClassName:"z-[101]",children:[(0,r.jsxs)(c.a.Header,{className:"text-left",children:[(0,r.jsx)(c.a.Title,{children:h}),(0,r.jsx)(c.a.Description,{children:f}),(0,r.jsx)(d.e,{className:"absolute right top bg-darker",icon:i.f,variant:"ghost",colorScheme:"default",isRound:!0,onClick:()=>y(!1),ariaLabel:x("components.dropdown.close"),"data-test-id":"psDrawer.close"})]}),(0,r.jsx)("div",{className:"max-h-[calc(100dvh_*_0.75)] overflow-y-auto",children:a instanceof Function?a({isMobile:!0,setOpen:y}):a}),p&&(0,r.jsx)(u.a.Footer,{children:p instanceof Function?p({isMobile:!1,setOpen:y}):p})]})]})})]})},p=e=>{let{children:a,className:t="",trigger:o,title:h,description:p,footer:f,onOpenChange:w,dialogProps:g,drawerProps:b}=e,{t:x}=(0,n.Z)("common"),[j,y]=(0,s.useState)(!1),[v,k]=(0,s.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"max-md:hidden",children:(0,r.jsxs)(u.a,{...g,open:v,onOpenChange:e=>{k(e),w&&w(e)},children:[(0,r.jsx)(u.a.Trigger,{asChild:!0,children:o}),(0,r.jsxs)(u.a.Content,{className:(0,l.b)("z-[101]",t),overlayClassName:"z-[101]",children:[(0,r.jsxs)(u.a.Header,{children:[(0,r.jsx)(u.a.Title,{children:h}),(0,r.jsx)(u.a.Description,{children:p})]}),a instanceof Function?a({isMobile:!1,setOpen:k}):a,(0,r.jsx)(u.a.Footer,{children:f instanceof Function?f({isMobile:!1,setOpen:k}):f})]})]})}),(0,r.jsx)("div",{className:"w-full md:hidden",children:(0,r.jsxs)(c.a,{...b,open:j,onOpenChange:e=>{y(e),w&&w(e)},children:[(0,r.jsx)(c.a.Trigger,{asChild:!0,children:o}),(0,r.jsxs)(c.a.Content,{className:(0,l.b)("z-[101]",t),overlayClassName:"z-[101]",children:[(0,r.jsxs)(c.a.Header,{className:"text-left",children:[(0,r.jsx)(c.a.Title,{children:h}),(0,r.jsx)(c.a.Description,{children:p}),(0,r.jsx)(d.e,{className:"absolute right top bg-darker",icon:i.f,variant:"ghost",colorScheme:"default",isRound:!0,onClick:()=>y(!1),ariaLabel:x("components.dropdown.close"),"data-test-id":"psDialogDrawer.close"})]}),(0,r.jsx)("div",{className:"max-h-[calc(100dvh_*_0.75)] overflow-y-auto",children:a instanceof Function?a({isMobile:!0,setOpen:y}):a}),(0,r.jsxs)(c.a.Footer,{className:"-mx !gap",children:[(0,r.jsx)(m.i,{}),f instanceof Function?f({isMobile:!0,setOpen:y}):f]})]})]})})]})}},6195:function(e,a,t){"use strict";t.d(a,{Hs:function(){return S},Ig:function(){return I},Ix:function(){return C},Tj:function(){return A},VN:function(){return F},iv:function(){return U},ln:function(){return P},mm:function(){return z}});var r=t(5311),s=t(36602),n=t(68790),i=t(34749),o=t(13714),c=t(78718),l=t(53708),d=t(3654),u=t(23968),m=t(67034),h=t(59285),p=t(7909),f=t(80777),w=t(81271),g=t(78127),b=t(99274),x=t(80443),j=t(84440),y=t(32318),v=t(87755),k=t(78684),N=t(66193);let z=()=>{let{control:e}=(0,s.Gc)(),{t:a}=(0,o.Z)("features");return(0,r.jsx)(m.b,{control:e,name:"email",render:e=>{let{field:t,fieldState:s}=e;return(0,r.jsxs)(m.c,{children:[(0,r.jsx)(m.c.Label,{children:a("forms.createAccount.email.label")}),(0,r.jsx)(m.c.Control,{children:(0,r.jsx)(h.b,{autoComplete:"email",type:"email",placeholder:a("forms.createAccount.email.placeholder"),isValid:!1===s.invalid,"data-test-id":"
1createAccountForm.emailInput",autoFocus:!0,...t})}),(0,r.jsx)(m.c.Error,{})]})}})},P=()=>{let{control:e}=(0,s.Gc)(),{t:a}=(0,o.Z)("features");return(0,r.jsx)(m.b,{control:e,name:"firstName",render:e=>{let{field:t,fieldState:s}=e;return(0,r.jsxs)(m.c,{children:[(0,r.jsx)(m.c.Label,{children:a("forms.createAccount.firstName.label")}),(0,r.jsx)(m.c.Control,{children:(0,r.jsx)(h.b,{placeholder:a("forms.createAccount.firstName.placeholder"),isValid:!1===s.invalid,"data-test-id":"createAccountForm.firstNameInput",...t})}),(0,r.jsx)(m.c.Error,{})]})}})},C=()=>{let{control:e}=(0,s.Gc)(),{t:a}=(0,o.Z)("features");return(0,r.jsx)(m.b,{control:e,name:"lastName",render:e=>{let{field:t,fieldState:s}=e;return(0,r.jsxs)(m.c,{children:[(0,r.jsx)(m.c.Label,{children:a("forms.createAccount.lastName.label")}),(0,r.jsx)(m.c.Control,{children:(0,r.jsx)(h.b,{placeholder:a("forms.createAccount.lastName.placeholder"),isValid:!1===s.invalid,"data-test-id":"createAccountForm.lastNameInput",...t})}),(0,r.jsx)(m.c.Error,{})]})}})},F=()=>{let{control:e}=(0,s.Gc)(),{t:a}=(0,o.Z)("features");return(0,r.jsx)(m.b,{control:e,name:"password",render:e=>{var t;let{field:s,fieldState:n}=e;return(0,r.jsxs)(m.c,{children:[(0,r.jsx)(m.c.Label,{children:a("forms.createAccount.password.label")}),(0,r.jsx)(m.c.Control,{children:(0,r.jsx)(j.W,{autoComplete:"new-password",formContext:"createAccountForm.password",placeholder:a("forms.createAccount.password.placeholder"),isValid:!1===n.invalid,...s})}),(0,r.jsx)(m.c.Caption,{children:(0,r.jsx)(A,{password:null!==(t=s.value)&&void 0!==t?t:""})}),(0,r.jsx)(m.c.Error,{})]})}})},A=e=>{let{password:a}=e,{t}=(0,o.Z)("features"),s=(0,N.f)(a);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.a,{className:"h-lg items-center gap-sm px",children:[(0,r.jsx)("div",{className:(0,f.b)("h-xs w-xl rounded-full bg-gray-200",{"bg-error":a.length>0})}),(0,r.jsx)("div",{className:(0,f.b)("h-xs w-xl rounded-full bg-gray-200",{"bg-error":s.value>=1})}),(0,r.jsx)("div",{className:(0,f.b)("h-xs w-xl rounded-full bg-gray-200",{"bg-orange-400":s.value>=2})}),(0,r.jsx)("div",{className:(0,f.b)("h-xs w-xl rounded-full bg-gray-200",{"bg-orange-400":s.value>=3})}),(0,r.jsx)("div",{className:(0,f.b)("h-xs w-xl rounded-full bg-gray-200",{"bg-success":4===s.value})}),a.length>0&&(0,r.jsx)("small",{children:t("forms.password.strength.".concat(s.value))})]}),(0,r.jsxs)(p.a,{className:"mt-xs flex-col gap-xs px",children:[(0,r.jsxs)(p.a,{className:"items-center gap",children:[(0,r.jsx)(E,{password:a,value:!0===s.minLength}),(0,r.jsx)("span",{children:t("forms.password.rules.minLength")})]}),(0,r.jsxs)(p.a,{className:"items-center gap",children:[(0,r.jsx)(E,{password:a,value:!0===s.case}),(0,r.jsx)("span",{children:t("forms.password.rules.case")})]}),(0,r.jsxs)(p.a,{className:"items-center gap",children:[(0,r.jsx)(E,{password:a,value:!0===s.integer}),(0,r.jsx)("span",{children:t("forms.password.rules.integer")})]}),(0,r.jsxs)(p.a,{className:"items-center gap",children:[(0,r.jsx)(E,{password:a,value:!0===s.specialCharacter}),(0,r.jsx)("span",{children:t("forms.password.rules.specialCharacter")})]})]})]})},E=e=>{let{value:a,password:t}=e;return a?(0,r.jsx)(u.sa,{className:(0,f.b)("h w shrink-0",{"text-success":t.length>0})}):(0,r.jsx)(u.ra,{className:(0,f.b)("h w shrink-0",{"text-error":t.length>0})})},U=()=>{let{control:e}=(0,s.Gc)();return(0,r.jsx)(m.b,{control:e,name:"dateOfBirth",render:e=>{let{field:a,fieldState:t}=e,s=!1===t.invalid;return(0,r.jsx)(T,{field:a,isFieldValid:s})}})},T=e=>{let{field:a,isFieldValid:t}=e,{t:s}=(0,o.Z)("features"),{locale:i}=(0,k.bU)();(0,b.BJ)(i);let{ref:g,setValue:j,value:v,unmaskedValue:N,setUnmaskedValue:z}=(0,n.Cj)({mask:"99/99/yyyy",lazy:!1,blocks:{99:{mask:n.LV.MaskedRange,from:1,to:99,maxLength:2},yyyy:{mask:n.LV.MaskedRange,from:1e3,to:9999,maxLength:4}}},{defaultValue:a.value,onAccept:e=>{a.onChange(e)}});return(0,r.jsxs)(m.c,{children:[(0,r.jsx)(m.c.Label,{children:s("forms.createAccount.dateOfBirth.label")}),(0,r.jsx)(m.c.Control,{children:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(h.b,{className:(0,f.b)("focus-within:text",{"!text-opacity-60":0===N.length}
1),isValid:t,"data-test-id":"createAccountForm.dateOfBirthInput",...a,value:v,ref:g,rightAddon:(0,r.jsx)(y.n,{className:(0,f.b)("max-md:min-h-[420px] max-md:pt md:p-0"),trigger:(0,r.jsx)(w.g,{icon:u.i,size:"sm","data-test-id":"dob.psdrawer.trigger",ariaLabel:"calendar icon",variant:"ghost",className:"text-light",tabIndex:-1}),children:e=>{let t,{setOpen:s}=e;try{if(a.value){let e=(0,c.Z)(a.value,"dd/MM/yyyy",new Date);(0,l.Z)(e)&&(t=e)}}catch(e){t=void 0}return(0,r.jsx)(p.a,{className:"justify-center align-middle",children:(0,r.jsx)(x.s,{locale:(0,b.BJ)(i),mode:"single",selected:t,defaultMonth:t,onSelect:e=>{if(!e)return;let t=(0,d.Z)(e,"dd/MM/yyyy");a.onChange(t),j(t),z(t.replaceAll("/","")),s(!1)}})})}})})})}),(0,r.jsx)(m.c.Caption,{children:s("forms.createAccount.dateOfBirth.caption")}),(0,r.jsx)(m.c.Error,{})]})},S=()=>{let{control:e}=(0,s.Gc)();return(0,r.jsx)(m.b,{control:e,name:"policy",render:e=>{let{field:a,fieldState:t}=e;return(0,r.jsxs)(m.c,{children:[(0,r.jsx)(m.c.Control,{children:(0,r.jsx)(g.d,{className:"w-full",checked:a.value,onCheckedChange:a.onChange,isValid:!1===t.invalid,"data-test-id":"createAccountForm.policyCheckbox",children:(0,r.jsx)("div",{children:(0,r.jsx)(i.Z,{i18nKey:"features:forms.createAccount.policy.label",components:{linkService:(0,r.jsx)(v.F,{href:"/terms-and-conditions",target:"_blank",rel:"noreferrer","data-test-id":"createAccountForm.termsAndConditionsLink"}),linkPolicy:(0,r.jsx)(v.F,{href:"/privacy-policy",target:"_blank",rel:"noreferrer","data-test-id":"createAccountForm.privacyPolicyLink"})}})})})}),(0,r.jsx)(m.c.Error,{})]})}})},I=()=>{let{t:e}=(0,o.Z)("features"),{control:a}=(0,s.Gc)();return(0,r.jsx)(m.b,{control:a,name:"marketing",render:a=>{let{field:t,fieldState:s}=a;return(0,r.jsxs)(m.c,{children:[(0,r.jsx)(m.c.Control,{children:(0,r.jsx)(g.d,{className:"w-full",checked:t.value,onCheckedChange:t.onChange,isValid:!1===s.invalid,"data-test-id":"createAccountForm.marketingCheckbox",children:(0,r.jsx)("div",{children:e("features:forms.createAccount.marketing.label")})})}),(0,r.jsx)(m.c.Error,{})]})}})}},17365:function(e,a,t){"use strict";t.d(a,{Y:function(){return o},m:function(){return s}});var r,s,n=t(82415);(r=s||(s={})).Dashboard="dashboard",r.Messages="inbox",r.Calendar="calendar",r.Account="account.index",r.FavouriteAndRecentSitters="favouriteAndRecentSitters",r.Review="review";let i=[{label:"dashboard",href:n._j.dashboard.index,sitterOnly:!1},{label:"inbox",href:n._j.inbox.index,sitterOnly:!1},{label:"calendar",href:n._j.profile.availability,sitterOnly:!0},{label:"account.index",href:n._j.account.index,sitterOnly:!1},{label:"favouriteAndRecentSitters",href:n._j.dashboard.favourites,sitterOnly:!1},{label:"review",href:n._j.dashboard.feedback,sitterOnly:!1}],o=e=>{let{isSitter:a}=e;return{tabs:a?i:i.filter(e=>!e.sitterOnly)}}},21991:function(e,a,t){"use strict";t.d(a,{p:function(){return o}});var r=t(13714),s=t(17946),n=t(52939),i=t(8950);let o=()=>{let{t:e}=(0,r.Z)("common");return{handleApiError:a=>{if(a instanceof n.rP)switch(a.error.code){case"verificationCode.tooManyAttempts":case"verificationCode.dailyLimitReached":s.Am.error(e("common:errors.toasts.tooManyRequests"));return;default:return}switch(a instanceof n.Gp?a.name:a.message){case i.XE.FetchFailed:s.Am.error(e("common:errors.general"));break;case i.XE.ResponseNotOk:break;case i.XE.TimeOut:s.Am.error(e("common:errors.toasts.timeout"));break;case i.XE.TooManyRequests:s.Am.error(e("common:errors.toasts.tooManyRequests"));break;default:s.Am.error(e("common:errors.general"))}}}}},87680:function(e,a,t){"use strict";t.d(a,{LN:function(){return A},FZ:function(){return E},OF:function(){return U},p:function(){return T},Wn:function(){return S},UQ:function(){return _},TX:function(){return M},oy:function(){return R},mU:function(){return D},Vp:function(){return L}});var r=t(5311),s=t(61876),n=t(66840),i=t(91723),o=t(13714),c=t(18967),l=t(23968),d=t(99924),u=t(7909),m=t(80777),h=t(46409),p=t(88456),f=t(22425),w=t(14593),g=t(89086),b=t(87755),x=t(30963),j=t.n(x),y=t(12794),v=t(78684);let k=()=>{let{language:e}=(0,v.bU)();return(0,s.useRouter)().pathname.includes("/conversation")?null:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(j(),{src:"https://static.zdassets.com/ekr/snippet.js?key=0ec0c38d-e352-4a4d-b528-fb437bf71c76",onLoad:()=>{window.zE&&(window.zE("webWidget","setLocale","".concat(e)),window.zESettings={webWidget:{zIndex:100,color:{theme:"#112fa2",launcher:y.Z.brand.dark,launcherText:y.Z.white,button:y.Z.brand.dark,resultLists:y.Z.text.default,header:y.Z.brand.default,articleLinks:y.Z.brand.default}}})},strategy:"lazyOnload",id:"ze-snippet"})})};var N=t(17365),z=t(82415),P=t(97554),C=t(41830);let F=e=>{if(!1===e.isMarketing){let{rootProps:a,headerProps:t,children:s}=e,{title:n}=a,{canGoBack:o,backUrl:l,titleElement:d,headerActions:u}=t;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.PB,{noindex:!0,title:(0,P.pz)(n)}),(0,r.jsxs)("div",{className:"grid min-h-[100dvh] grid-rows-[auto_1fr_auto]",children:[(0,r.jsx)(c.Z,{canGoBack:o,canGoBackUrl:l,actions:u,children:d}),s,(0,r.jsx)(f.$,{compactMode:!0})]}),(0,r.jsx)(k,{})]})}return(0,r.jsx)(r.Fragment,{children:"Marketing layout"})},A=e=>{let{rootProps:a,headerProps:t,navigationProps:i,children:o,heading:c,subheading:d,navigationClassName:h,containerClassName:f,headingClassName:w,subheadingClassName:g}=e,{referer:b,backUrl:x,routes:j}=i,y=(0,s.useRouter)(),v=void 0!==x||(0,z.p6)(b),k=0===j.filter(e=>!e.label||0===e.label.length).length;return(0,r.jsx)(F,{isMarketing:!1,rootProps:a,headerProps:{...t,backUrl:x,canGoBack:!(0,z.Cr)(y.pathname)},children:(0,r.jsxs)(u.a,{className:(0,m.b)("h-auto w-full flex-col gap-lg bg pt md:pt-sm",{"pt-lg":0===j.length},h),children:[k&&(0,r.jsx)(u.a,{className:"container max-md:hidden md:min-
1h-xl md:items-center md:justify-between md:gap",children:(0,r.jsx)(p.O,{className:(0,m.b)({"-ml-xs":v}),routes:[{icon:l.H,href:z._j.home},...j],canGoBack:v,backUrl:x})}),c&&(0,r.jsx)(r.Fragment,{children:(0,n.isValidElement)(c)?c:(0,r.jsx)("div",{className:(0,m.b)("container max-md:hidden",{pb:void 0===d},w),children:(0,r.jsx)("h2",{className:"h1",children:c})})}),d&&(0,r.jsx)("div",{className:(0,m.b)("container pb md:-mt-sm",g),children:d}),(0,r.jsx)(u.a,{className:(0,m.b)("container max-w-[100vw] flex-col gap-lg pb lg:pb-lg",f),children:o})]})})},E=e=>(0,r.jsx)(A,{...e,containerClassName:(0,m.b)("gap-xl !px-0 !pb-0 max-md:flex-1",e.containerClassName)}),U=e=>{let{children:a,className:t}=e;return(0,r.jsx)("div",{className:(0,m.b)("container flex flex-col gap-lg",t),children:a})},T=e=>{let{children:a,className:t}=e;return(0,r.jsx)("div",{className:(0,m.b)("row-start-2 row-end-3 gap-sm border-t border-card bg-dark max-md:p md:mx md:bg md:py-xl lg:mx-lg",t),children:a})},S=e=>{let{rootProps:a,headerProps:t,children:s,userInfo:n,activeLabel:i,containerClassName:o}=e;return(0,r.jsx)(F,{isMarketing:!1,rootProps:a,headerProps:t,children:(0,r.jsxs)("div",{className:"h-auto w-full bg-dark",children:[(0,r.jsx)(I,{userInfo:n,activeLabel:i}),(0,r.jsx)(u.a,{className:(0,m.b)("container flex-col gap pb-2xl pt md:gap-lg md:pt-lg",o),children:s})]})})},I=e=>{let{userInfo:a,activeLabel:t}=e,{userName:s,isSitter:n}=a,{t:i}=(0,o.Z)("common"),{tabs:c}=(0,N.Y)({isSitter:n});return(0,r.jsx)("div",{className:"border-b border-card bg",children:(0,r.jsxs)(u.a,{className:"container hidden flex-col gap-xl pt-xl md:flex",children:[(0,r.jsx)("h1",{children:i((0,C.vt)(),{firstName:s})}),(0,r.jsx)(g.ZP,{...w.iterablePlacements.dashboardBanner}),(0,r.jsx)(u.a,{className:"items-center",children:c.map(e=>(0,r.jsx)(b.F,{className:(0,m.b)("relative flex min-h-xl items-center rounded-t px font-normal after:absolute after:bottom-0 after:left-0 after:h-xxs after:w-full hover:bg-gray-100 hover:no-underline active:bg-gray-200",{"text-primary after:bg-primary hover:bg-brand-50 active:bg-brand-100":e.label===t}),variant:"ghost","data-test-id":"profileTabs.".concat(e.label,"Link"),href:e.href,useAtag:e.label===N.m.Messages,children:(0,r.jsxs)(u.a,{className:"gap-sm",children:[i("pages.titles.".concat(e.label)),!0===e.isNew&&(0,r.jsx)(h.a,{variant:"solid",colorScheme:"danger",className:"w-fit bg-gradient-to-b from-red-300 to-red-500 shadow",children:i("generic.new").toUpperCase()})]})},"tab-".concat(e.label)))})]})})},L=e=>{let{title:a,children:t,caption:s,className:n,captionClassName:o,canGoBack:c,footer:l,footerClassName:h,routes:f}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.PB,{noindex:!0,title:(0,P.pz)(a)}),(0,r.jsxs)(u.a,{className:(0,m.b)("relative z-[0] h-fit min-h-screen w-full flex-col items-center gap-lg bg md:gap md:bg-brand-50",{"md:pt-xl":!f}),children:[(0,r.jsx)(d.a,{className:"fixed -z-[1] h-screen min-w-full opacity-40 max-md:hidden"}),f&&(0,r.jsx)(p.O,{className:"mt-lg w-full max-md:px md:max-w-screen-sm",routes:f,canGoBack:c}),(0,r.jsxs)(u.a,{className:(0,m.b)("w-full flex-col overflow-hidden p max-md:flex-1 md:max-w-screen-sm md:rounded-lg md:bg-white md:p-xl md:shadow",{"grid grid-rows-[1fr_auto] md:p-0":void 0!==l},n),children:[(0,r.jsx)("div",{className:(0,m.b)({"md:p-xl":void 0!==l}),children:t}),l&&(0,r.jsx)("div",{className:(0,m.b)("row-start-2 row-end-3 border-t border-card bg-dark p",h),children:l})]}),s&&(0,r.jsx)(u.a,{className:(0,m.b)("w-full md:max-w-screen-sm",o),children:s})]})]})},_=e=>{let{title:a,routes:t,children:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.PB,{noindex:!0,title:(0,P.pz)(a)}),(0,r.jsxs)(u.a,{className:(0,m.b)("relative z-[0] h-fit min-h-[100svh] w-full flex-col items-center gap-lg bg md:gap md:bg-brand-50 md:pb-xl",{"md:pt-xl":!t}),children:[(0,r.jsx)(d.a,{className:"fixed -z-[1] h-screen min-w-full opacity-40 max-md:hidden"}),t&&(0,r.jsx)(p.O,{className:(0,m.b)("mt-lg w-full max-md:px md:max-w-screen-sm",{"max-md:-mb-xs max-md:mt-[1.25rem]":t.length>3}),routes:t}),s]})]})},R=e=>{let{children:a,className:t}=e;return(0,r.jsx)("div",{className:(0,m.b)("grid w-full grid-rows-[1fr_auto] max-md:flex-1 md:max-w-screen-sm md:rounded-lg md:bg-white md:shadow",t),children:a})},M=e=>{let{children:a,className:t}=e;return(0,r.jsx)("div",{className:(0,m.b)("w-full p pt-0 md:p-xl",t),children:a})},D=e=>{let{children:a,className:t}=e;return(0,r.jsx)("div",{className:(0,m.b)("row-start-2 row-end-3 border-t border-card bg-dark p md:rounded-b-lg md:px-xl",t),children:a})}},7014:function(e,a,t){"use strict";t.d(a,{Pj:function(){return y},UR:function(){return N},VC:function(){return m},cJ:function(){return w},qj:function(){return x},sX:function(){return h}});var r=t(81369),s=t(83658),n=t(90449),i=t(73783),o=t(15457),c=t(92876),l=t(75589),d=t(12447),u=t(65845);let m=r.z.enum(["awayMode","repeatClientsOnly"]),h=r.z.enum(["none","youngerThanThree","youngerThanTen","olderThanTen"]),p=r.z.enum(["puppy","young","adult","senior"]),f=r.z.enum(["small","medium","large","giant"]);r.z.enum(["male","female"]);let w=r.z.enum(["house","farm","apartment"]),g=r.z.enum(["small","medium","large","none"]),b=r.z.enum(["hasExperienceAsAnimalWelfareVolunteer","hasExperienceWithBehaviouralProblems","hasExperienceWithRescuingPets","isFamiliarWithDogTrainingTechniques","has247Supervision","hasEmergencyTransport","canAdministerOralMedications","canAdministerInjectedMedications","canAdministerFirstAidAndPetCPR","grooming"]),x=r.z.enum(["offLeashWalkingArea","urban","forest","beach","cityPark","countrySide"]),j=r.z.enum(["english","french","dutch","german","italian","japanese","chinese","spanish","portuguese","danish","swedis
1h","norwegian","finnish","russian","maori","other"]),y=r.z.enum(["lessThan1","lessThan5","moreThan5","moreThan10","moreThan20"]),v=r.z.object({service:o.Ew.describe("Bookable service"),baseRate:r.z.number().describe("Base rate amount in cents"),additionalRate:r.z.number().nullable().describe("Additional cost rate in cents"),currency:r.z.string().describe("Currency"),unit:l.o.describe("Unit of the service"),travelConstraints:n.o_.nullable()}),k=r.z.object({locale:r.z.string().describe("Locale"),url:r.z.string().describe("The url of the search page"),placeName:r.z.string().describe("The translated name of the place in the given locale"),service:o.Ew.describe("The bookable service")}),N=r.z.enum(["home","petsitting","city","sitter"]),z=r.z.object({key:N,value:r.z.string().nullable(),url:r.z.string()}).describe("Breadcrumb object"),P=r.z.object({service:o.Ew.describe("Value-added service"),vasTypes:r.z.array(o.VA).describe("Array of value-added service types")}),C=r.z.object({petId:r.z.string().describe("Pet ID"),name:r.z.string().describe("Pet name"),imageUrl:r.z.string().nullable().describe("Pet image URL"),breed:r.z.string().nullable().describe("Pet breed"),species:u.UD,gender:d.Y.nullable()}),F=r.z.object({userId:r.z.string().describe("User ID with Pawshake World Region Prefix"),sitterId:r.z.string().describe("Sitter ID"),headline:r.z.string().describe("Headline of the sitter"),firstName:r.z.string().describe("First Name"),profileImage:r.z.string().describe("URL of the profile image"),galleryImages:r.z.array(r.z.object({medium:r.z.string().describe("Medium image URL"),large:r.z.string().describe("Large image URL")})).describe("Array of gallery image URLs"),description:r.z.string().describe("Profile description"),locale:r.z.string().describe("Locale"),isFavourite:r.z.boolean().describe("Whether the user is a favorite of the sitter"),actions:r.z.object({canBeContacted:r.z.boolean().describe("Whether the sitter can be contacted"),unableToContactReason:m.nullable().catch(null).describe("Reason for inability to contact")}),metadata:r.z.object({metaDescription:r.z.string().describe("Meta description"),alternativeProfileUrls:r.z.array(r.z.object({locale:r.z.string().describe("Locale"),url:r.z.string().describe("URL")})).describe("Alternative profile URLs"),sharingUrl:r.z.string().describe("Sharing URL"),searchPageUrls:r.z.array(k).describe("Search page URLs"),canonicalUrl:r.z.string().describe("Canonical URL"),fallbackSearchPageUrl:r.z.string().describe("Fallback url for search page")}),services:r.z.object({cancellationPolicy:s.No.catch(s.No.Enum.flexible).describe("Cancellation policy"),highlightedService:o.Ew.describe("Highlighted service"),rates:r.z.array(v).describe("Array of service rates"),acceptedPets:r.z.object({dogs:r.z.object({puppies:r.z.boolean().describe("Whether puppies are accepted"),ages:r.z.array(p).describe("Array of accepted pet ages").nullable(),sizes:r.z.array(f).describe("Array of accepted pet sizes").nullable()}).nullable(),cats:r.z.boolean().describe("Whether cats are accepted"),smallAnimals:r.z.boolean().describe("Whether small animals are accepted"),ferrets:r.z.boolean().describe("Whether ferrets are accepted")})}),statistics:r.z.object({reviewCount:r.z.number().describe("Number of reviews"),profileViewCount:r.z.number().describe("Number of profile views"),sitterSince:r.z.string().describe("Date since the sitter started"),lastActiveInMins:r.z.number().nullable().describe("Last active time in minutes"),averageResponseTimeInMins:r.z.number().nullable().describe("Average response time in minutes"),lastBookedOn:r.z.string().nullable().describe("Last booked date"),favoriteCount:r.z.number().describe("Number of times favorited"),lastContactedOn:r.z.string().nullable().describe("Last contacted date"),hasRecentlyUpdatedCalendar:r.z.boolean().describe("Whether the calendar has been recently updated"),rating:r.z.object({overallAverage:r.z.number().describe("The global, average rating"),value:r.z.number().describe("The average value rating"),accuracy:r.z.number().describe("The average accuracy rating"),communication:r.z.number().describe("The average communication rating"),profileCorrectness:r.z.number().describe("The average profile correctness rating"),animalTreatment:r.z.number().describe("The average animal treatment rating")}).nullable().describe("Rating numbers for the sitter. Will be null if there are no reviews left for the user"),isNewSitter:r.z.boolean().describe("Whether the sitter is new"),recurringGuests:r.z.number().describe("Number of recurring guests")}),verificationState:r.z.object({policeVerified:r.z.boolean().describe("Whether the sitter is police verified"),emailVerified:r.z.boolean().describe("Whether the email is verified"),smsVerified:r.z.boolean().describe("Whether the SMS is verified"),googleVerified:r.z.boolean().describe("Whether the Google account is verified (currently mapped to Facebook verification)"),stripeVerified:r.z.boolean().describe("Whether the Stripe account is verified")}),sitterHome:r.z.object({placeName:r.z.string().describe("Name of the place"),staticMapUrl:r.z.string().nullable().catch(null).describe("Signed URL of the static map image"),location:r.z.object({lat:r.z.number().describe("Latitude of the location"),lng:r.z.number().describe("Longitude of the location")}),livesWith:r.z.object({pets:r.z.array(C).describe("Array of pets the sitter lives with"),children:h.catch(h.Enum.none).describe("What children the sitter lives with")}),homeFeatures:r.z.object({homeType:w.catch(w.Enum.house).describe("Type of home"),fullyFencedBackyard:r.z.boolean().describe("Whether there is a fully fenced backyard"),outdoorAreaSize:g.catch(g.Enum.none).describe("Size of the outdoor area"),hasEmergencyTransport:r.z.boolean().describe("Whether emergency transport is available"),has247Supervision:r.z.boolean().describe("Whether 24/7 supervision is available")}),areaFeatures:r.z.object({nearbyWalkingAreas:(0,c.Hb)(x).describe("Array of nearby walking areas")})}),about:r.z.object({spokenLanguages:(0,c.Hb)(j).describe("Array of spoken languages"),yearsOfExperience:y.nullable().catch(null).describe("Years of experience"),experiences:(0,c.Hb)(b).describe("Array of experiences")}),sitterNameSlug:r.z.string().describe("Slug of the sitter name"),vas:r.z.array(P).describe("Array of value-ad
1ded services"),breadcrumbs:r.z.array(z).describe("Array of breadcrumbs"),verification:i.Ux.optional().catch({status:i.NN.Enum.unverified})}),A=r.z.enum(["sitter","redirect"]);r.z.discriminatedUnion("type",[r.z.object({type:r.z.literal(A.Enum.sitter),sitterDetail:F}),r.z.object({type:r.z.literal(A.Enum.redirect),url:r.z.string()})])},96319:function(e,a,t){"use strict";t.d(a,{$6:function(){return W},Cb:function(){return z},GC:function(){return K},I8:function(){return O},LF:function(){return C},Qm:function(){return E},RM:function(){return S},WO:function(){return y},YS:function(){return L},w6:function(){return _},wH:function(){return k},zT:function(){return B}});var r=t(61876),s=t(14166),n=t(5578),i=t(56170),o=t(96523),c=t(82190),l=t(13191),d=t(95993),u=t(18454),m=t(81369),h=t(23433),p=t(78684),f=t(78108),w=t(34095),g=t(8950),b=t(82415),x=t(99947),j=t(73783);t(31854);let y=e=>{let{locale:a}=(0,p.bU)();return(0,n.D)({mutationFn:e=>v({locale:a,...e}),...e})},v=async e=>{let a=(0,f.K)(e.locale);try{return w.hi.dispatchCommand({commandName:"Pawshake.Firebase.ForgotPassword.WriteModel.InitiateForgotPasswordFlow",payload:{emailAddress:e.email,locale:e.locale},config:{worldRegion:a},expectedFailureStatuses:[400]})}catch(e){throw u.k.error("authentication.api.tsx - forgotPassword",{error:e,cause:e instanceof Error?e.cause:""}),e}},k=e=>{let{locale:a}=(0,p.bU)(),t=(0,r.useRouter)();return(0,n.D)({mutationFn:e=>N({locale:a,destinationUrl:(0,b.YH)(t),...e}),...e})},N=async e=>{let a=(0,f.K)(e.locale);try{return w.hi.dispatchCommand({commandName:"Pawshake.Firebase.Email.WriteModel.UserRequestsEmailVerification",payload:{emailAddress:e.email,locale:e.locale,destinationUrl:e.destinationUrl},config:{worldRegion:a},expectedFailureStatuses:[400]})}catch(e){throw u.k.error("authentication.api.tsx - requestEmailVerification",{error:e,cause:e instanceof Error?e.cause:""}),e}};m.z.object({destination:m.z.string()});let z=e=>(0,n.D)({mutationFn:e=>P(e),...e}),P=async e=>(0,c.e5)(d.I,e.email,e.password).then(async a=>{var t;let r=await (null===(t=d.I.currentUser)||void 0===t?void 0:t.getIdToken());return e.context===l.mF.Enum.register&&(0,l.L9)({key:l.mF.Enum.register,props:{user_id:a.user.uid,email_address:a.user.email,method:"email"}}),e.context===l.mF.Enum.login&&(0,l.L9)({key:l.mF.Enum.login,props:{user_id:a.user.uid,email_address:a.user.email,method:"email"}}),{ok:!0,error:void 0,jwt:r,...a}}).catch(e=>{throw u.k.error("authentication.api.tsx - signIntoFirebase",{error:e,cause:e instanceof Error?e.cause:""}),e}),C=e=>(0,n.D)({mutationFn:e=>F(e),...e}),F=async e=>{try{let a=await (0,c.rh)(d.I,e.provider),t=(0,c.gK)(a);switch(t&&(t.isNewUser?(0,l.L9)({key:l.mF.Enum.register,props:{user_id:a.user.uid,email_address:a.user.email,method:e.providerName}}):(0,l.L9)({key:l.mF.Enum.login,props:{user_id:a.user.uid,email_address:a.user.email,method:e.providerName}})),e.provider.providerId){case"apple.com":break;case"facebook.com":(null==t?void 0:t.profile)&&localStorage.setItem(x.AW,JSON.stringify({firstName:t.profile.first_name,lastName:t.profile.last_name}));break;case"google.com":(null==t?void 0:t.profile)&&localStorage.setItem(x.AW,JSON.stringify({firstName:t.profile.given_name,lastName:t.profile.family_name}))}return a}catch(e){throw u.k.error("authentication.api.tsx - signInWithProvider",{error:e,cause:e instanceof Error?e.cause:""}),e}},A=e=>()=>{if(!e)throw u.k.error("authentication.api.tsx - mintRecaptchaToken - executeRecaptcha is undefined"),Error("reCAPTCHA is not available");return e("pawshake_finalise_account")},E=e=>{let{locale:a,language:t,country:r}=(0,p.bU)(),{executeRecaptcha:i}=(0,s.xX)();return(0,n.D)({mutationFn:e=>U({...e,language:t,countryCode:r,locale:a},A(i)),...e})},U=async(e,a)=>{await T(e);let t=await P({email:e.email,password:e.password,context:l.mF.Enum.register,referralCode:e.referralCode});if(!d.I.currentUser)throw u.k.error("authentication.api.tsx - createAccount - !auth.currentUser"),Error("auth.currentUser is undefined");return I(void 0,e,"email",await a(),t.jwt)},T=async e=>{try{return await w.hi.post({url:"/v1/users/sign-up",payload:{emailAddress:e.email,password:e.password,locale:e.locale,gRecaptchaToken:e.recaptchaToken},config:{baseUrl:"https://api.production.pawshake.io"},expectedFailureStatuses:[400]})}catch(e){throw u.k.error("authentication.api.tsx - createAccountWithEmailAndPassword",{error:e,cause:e instanceof Error?e.cause:""}),e}},S=e=>{let{user:a}=(0,h.f)(),{locale:t,language:r,country:i}=(0,p.bU)(),{executeRecaptcha:o}=(0,s.xX)();return(0,n.D)({mutationFn:async e=>I(a,{...e,language:r,countryCode:i,locale:t},e.method,await A(o)()),...e})},I=async(e,a,t,r,s)=>{try{var n;let i=await w.hi.post({url:"/v1/users/finalize",user:e,payload:{firstName:a.firstName,lastName:a.lastName,locale:a.locale,hasApprovedGdpr:a.policy,dateOfBirth:a.dateOfBirth,profileImage:a.imageUrl,referralCode:a.referralCode,marketingOptIn:a.marketing,destination:a.destination,gRecaptchaToken:r},headers:s?{Authorization:"Bearer ".concat(s)}:{},config:{baseUrl:"https://api.production.pawshake.io"},expectedFailureStatuses:[400]});return(null===(n=d.I.currentUser)||void 0===n?void 0:n.uid)&&((0,l.L9)({key:l.mF.Enum.sign_up,props:{user_id:d.I.currentUser.uid,method:t,email_address:d.I.currentUser.email}}),(0,l.L9)({key:l.mF.Enum.login,props:{user_id:d.I.currentUser.uid,email_address:d.I.currentUser.email,method:t}})),localStorage.removeItem(x.AW),i}catch(e){throw u.k.error("authentication.api.tsx - finaliseAccount",{error:e,cause:e instanceof Error?e.cause:""}),e}},L=async e=>{try{let a=await (null==e?void 0:e.getIdToken(!0));await fetch("/api/login",{method:"POST",headers:{Authorization:a||void 0},credentials:"include"})}catch(e){throw u.k.error("authentication.api.tsx - refreshTokenAndUpdateServerCookie",{error:e,cause:e instanceof Error?e.cause:""}),Error(g.XE.RefreshTokenFailed)}};m.z.string();let _=e=>{let{locale:a}=(0,p.bU)();return(0,n.D)({mutationFn:e=>R({locale:a,...e}),...e})},R=async e=>{let a=(0,f.K)(e.locale);try{return w.hi.dispatchCommand({commandName:"Pawshake.Firebase.ForgotPassword.WriteModel.CompleteForgotPasswordFlow",payload:{forgotPasswordFlowId:e.oobCode,newPassword:e.password,verifyPassword:e.confirmPassword},config:{worldRegion:a},expectedFailureStatuses:[400]})}catch(a){throw u.k.error("authentication.api.tsx - resetPassword",{error:a,oobCode:e.oobCode}),a}},M=m.z.object({firstName:m.z.string(),lastName:m.z.string(),profileImage:m.z.string()}),D=async e=>{if(e)try{let a=await w.hi.get({url:"/v1/referrals/".concat(e),config:{baseUrl:"https://api.production.pawshake.io"}}),t=await a.json();return M.parse(t)}catch(e){u.k.error("authentication.api.tsx - fetchReferral - try/catch",{error:e});return}},O=e=>(0,i.a)({queryKey:["fetch-referral",e],queryFn:()=>D(e),enabled:!!e}),B=e=>{let{locale:a}=(0,p.bU)(),{user:t}=(0,h.f)();return(0,n.D)({mutationFn:e=>Z({locale:a,user:t,...e}),...e})},Z=async e=>{let a=(0,f.K)(e.locale);try{return await w.hi.dispatchCommand({commandName:"Pawshake.Firebase.Account.WriteModel.UpdatePassword",user:e.user,payload:{oldPassword:e.oldPassword,newPassword:e.newPassword,verifyNewPassword:e.confirmPassword},config:{worldRegion:a},expectedFailureStatuses:[400]})}catch(e){throw u.k.error("authentication.api.tsx - updatePassword",{error:e,cause:e instanceof Error?e.cause:""}),e}},W=async(e,a,t)=>{try{let r=c.w9.credential(a,t);return await (0,c.aF)(e,r)}catch(e){throw u.k.error("authentication.api.tsx - reauthenticate",{error:e,cause:e instanceof Error?e.cause:""}),e}},V=async e=>{try{return await w.hi.dispatchCommand({commandName:"Pawshake.Owner.DeleteAccount.WriteModel.DeleteAccount",user:e,payload:{},expectedFailureStatuses:[400]})}catch(e){throw u.k.error("authentication.api.tsx - deleteAccount",{error:e,cause:e instanceof Error?e.cause:""}),e}},K=e=>{let a=(0,o.NL)(),{user:t}=(0,h.f)();return(0,n.D)({mutationFn:e=>V(e),...e,onSuccess:function(){for(var r,s=arguments.length,n=Array(s),i=0;i<s;i++)n[i]=arguments[i];a.invalidateQueries({queryKey:[j.ei,null==t?void 0:t.id]}),null===(r=e.onSuccess)||void 0===r||r.call(e,...n)}})}},83658:function(e,a,t){"use strict";t.d(a,{No:function(){return c},Ot:function(){return m},TO:function(){return x},hD:function(){return l},uW:function(){return w}});var r=t(56170),s=t(81369),n=t(75589),i=t(15457),o=t(34095);let c=s.z.enum(["flexible","moderate"]),l=s.z.enum(["pickUpDropOff","travelExpense","otherPerBooking","otherPerServiceUnit"]),d=s.z.enum(["baseRate","additionalRate","adjustedBaseRate","adjustedAdditionalRate"]),u=s.z.object({value:s.z.number(),currency:s.z.string()}),m=s.z.object({items:s.z.object({pets:s.z.array(s.z.object({petNames:s.z.array(s.z.string()),prices:s.z.array(s.z.object({unitRate:s.z.number(),total:s.z.number(),currency:s.z.string(),type:d,dates:s.z.array(s.z.string()),amountOfUnits:s.z.number()})),total:u})),extraServices:s.z.string(),vas:s.z.array(s.z.object({type:l,applicableTo:i.Y2,description:s.z.string().nullable(),total:u,prices:s.z.array(s.z.object({unitRate:s.z.number(),total:s.z.number(),currency:s.z.string(),type:l,dates:s.z.array(s.z.string()),amountOfUnits:s.z.number()}))}))}),amount:s.z.number(),unit:n.o,discount:s.z.object({percentage:s.z.number(),value:s.z.number(),currency:s.z.string()}).nullable(),subtotal:u,total:u,sitterPayout:u,contribution:u,totalWithFees:u,ownerFee:s.z.object({price:u,info:s.z.object({fallback:s.z.string()})}).nullish()}),h=s.z.object({type:c,deadline:s.z.string()}),p=s.z.object({priceBreakdown:m,cancellationPolicy:h}),f=async(e,a,t,r)=>{try{let s=await o.hi.post({url:"/sitter/".concat(e,"/booking-simulations"),payload:{service:a,dates:t,numberOfPets:r}}),n=await s.json();return p.parse(n)}catch(e){throw console.error("sitter.api.tsx - fetchSimulateBookingPrice - try/catch",{error:e}),e}},w=(e,a,t,s)=>(0,r.a)({queryKey:["fetch-simulation-booking-price",e,a,t,s],queryFn:()=>f(e,a,t,s),retry:!1,enabled:!!t&&t.length>0}),g=s.z.object({cancellationPolicy:c}),b=async(e,a)=>{try{let t=await o.hi.get({url:"/sitter/".concat(e,"/cancellation-policy?service=").concat(a)}),r=await t.json();return g.parse(r)}catch(e){throw console.error("sitter.api.tsx - fetchSitterServiceCancellationPolicy - try/catch",{error:e}),e}},x=(e,a)=>(0,r.a)({queryKey:["fetch-sitter-service-cancellation-policy",e,a],queryFn:()=>b(e,a)})},66193:function(e,a,t){"use strict";t.d(a,{f:function(){return r}});let r=e=>{var a;let t={value:0,minLength:!1,integer:!1,case:!1,specialCharacter:!1},r=e.length-e.replace(/[A-Z]/g,"").length,s=e.length-e.replace(/[a-z]/g,"").length,n=(null===(a=e.match(/\d/g))||void 0===a?void 0:a.length)||0;return e.length>=8&&(t.value++,t.minLength=!0),r>0&&s>0&&(t.value++,t.case=!0),n>0&&(t.value++,t.integer=!0),e.match(/[!@#$%^&*(),.?":{}|<>]/g)&&(t.value++,t.specialCharacter=!0),t}},92182:function(e,a,t){"use strict";t.d(a,{B:function(){return i}});var r=t(75692);let s=e=>{switch(e){case"affirm":return r.M0;case"amazonPay":return r.h3;case"americanExpress":return r.dN;case"applePay":return r.v2;case"bancontact":return r.CW;case"eps":return r.Pc;case"googlePay":return r.Tq;case"grabPay":return r.QA;case"ideal":return r.LV;case"klarna":return r.f2;case"link":return r.gQ;case"masterCard":return r.DN;case"mobilePay":return r.Q_;case"payNow":return r.gB;case"revolut":return r.XK;case"satispay":return r.WT;case"sepa":return r.YN;case"swish":return r.ng;case"visa":return r.Ov;case"zip":return r.O}},n=e=>{switch(e){case"affirm":return"Affirm";case"americanExpress":return"American Express";case"applePay":return"Apple Pay";case"bancontact":return"Bancontact";case"eps":return"Eps";case"googlePay":return"Google Pay";case"grabPay":return"Grab Pay";case"ideal":return"iDeal";case"klarna":return"Klarna";case"link":return"Link";case"masterCard":return"Mastercard";case"mobilePay":return"MobilePay";case"payNow":return"PayNow";case"revolut":return"Revolut Pay";case"sepa":return"Sepa";case"swish":return"Swish";case"visa":return"Visa";case"zip":return"Zip";case"amazonPay":return"Amazon Pay";case"satispay":return"Satispay"}},i=e=>({icon:s(e),label:n(e)})},97554:function(e,a,t){"use strict";t.d(a,{G$:function(){return l},UP:function(){return u},pz:function(){return c}});var r=t(23968),s=t(7014),n=t(17298),i=t(82415),o=t(15457);let c=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return e?a?"".concat(e.trim()," | ").concat(a):"".concat(null==e?void 0:e.trim()," | Pawshake"):n.pB},l=(e,a,t,r)=>{let s=d(a,t,r);return s?s.text:e},d=(e,a,t)=>{if(0===a.length)return;let r=a.find(a=>a.service===e&&a.locale===t);if(r)return{title:"features:features.sitterDetail.metaData.petSitterInLocation",text:r.placeName,href:r.url}},u=(e,a,t)=>({routes:e.map(e=>{switch(e.key){case s.UR.Enum.home:return{icon:r.H,href:i._j.home};case s.UR.Enum.petsitting:return{label:t((0,o.Sj)(o.Ew.Values.petSitting).label),href:e.url};case s.UR.Enum.city:case s.UR.Enum.sitter:var a;return{label:null!==(a=e.value)&&void 0!==a?a:"",href:e.url}}}),jsonLd:{"@context":"http://schema.org/","@type":"BreadcrumbList",itemListElement:e.map((e,r)=>{var n,i;switch(e.key){case s.UR.Enum.home:return{"@type":"ListItem",name:t("pages.titles.home"),position:r+1,description:t("static.seo.homeDescription"),item:{"@type":"Thing","@id":e.url}};case s.UR.Enum.petsitting:{let a=(0,o.Sj)(o.Ew.Values.petSitting);return{"@type":"ListItem",name:t(a.label),position:r+1,description:t("".concat(a.description,".asOwner")),item:{"@type":"Thing","@id":e.url}}}case s.UR.Enum.city:return{"@type":"ListItem",name:null!==(n=e.value)&&void 0!==n?n:"",position:r+1,description:t("static.seo.petSittingLocation",{location:e.value}),item:{"@type":"Thing","@id":e.url}};case s.UR.Enum.sitter:return{"@type":"ListItem",name:null!==(i=e.value)&&void 0!==i?i:"",position:r+1,description:a,item:{"@type":"Thing","@id":e.url}}}})}})},75373:function(e,a,t){"use strict";t.d(a,{m:function(){return i},z:function(){return n}});var r=t(16470);let s={AT:{Facebook:"https://www.facebook.com/PawshakeOesterreich",Instagram:"https://www.instagram.com/Pawshakede",Pinterest:"https://www.pinterest.com/Pawshakeat/pins"},AU:{Facebook:"https://www.facebook.com/PawshakeAustralia",Twitter:"https://twitter.com/PawshakeAU",Instagram:"https://www.instagram.com/PawshakeAU/"},BE:{Facebook:"https://www.facebook.com/PawshakeBelgium",Instagram:"https://www.instagram.com/PawshakeBE",Pinterest:"https://www.pinterest.com/PawshakeBE/pins"},CA:{Facebook:"https://www.facebook.com/PawshakeCanada",Instagram:"https://www.instagram.com/Pawshake.ca",Pinterest:"https://www.pinterest.com/PawshakeCA/pins"},CH:{Facebook:"https://www.facebook.com/PawshakeSwitzerland",Twitter:"https://www.twitter.com/Pawshake",Pinterest:"https://www.pinterest.com/PawshakeCH/pins"},DE:{Facebook:"https://www.facebook.com/PawshakeDeutschland",Instagram:"https://www.instagram.com/PawshakeDE",Pinterest:"https://www.pinterest.com/PawshakeDE/pins"},DK:{Facebook:"https://www.facebook.com/PawshakeDenmark",Twitter:"https://www.twitter.com/PawshakeDK",Instagram:"https://www.instagram.com/pawshakescandinavia/",Pinterest:"https://www.pinterest.com/PawshakeDK/pins"},FI:{Facebook:"https://www.facebook.com/PawshakeFinland",Twitter:"https://www.twitter.com/PawshakeFI",Instagram:"https://www.instagram.com/pawshakesuomi/"},FR:{Facebook:"https://www.facebook.com/PawshakeFrance",Instagram:"https://www.instagram.com/PawshakeFR",Pinterest:"https://www.pinterest.com/PawshakeFR/pins"},HK:{Facebook:"https://www.facebook.com/PawshakeHongKong",Twitter:"https://www.twitter.com/Pawshake",Pinterest:"https://www.pinterest.com/PawshakeHK/pins"},IE:{Facebook:"https://www.facebook.com/PawshakeIreland",Pinterest:"https://www.pinterest.com/PawshakeIE/pins/"},IT:{Facebook:"https://www.facebook.com/PawshakeItalia",Twitter:"https://www.twitter.com/PawshakeIT",Pinterest:"https://www.pinterest.com/PawshakeIT/pins"},JP:{Facebook:"https://www.facebook.com/PawshakeJapan",Twitter:"https://www.twitter.com/PawshakeJP"},LU:{Facebook:"https://www.facebook.com/Pawshake",Twitter:"https://www.twitter.com/Pawshake"},NL:{Facebook:"https://www.facebook.com/PawshakeNederland",Twitter:"https://www.twitter.com/PawshakeNL",Instagram:"https://www.instagram.com/PawshakeNL",Pinterest:"https://www.pinterest.com/PawshakeNL/pins"},NO:{Facebook:"https://www.facebook.com/PawshakeNorway",Twitter:"https://www.twitter.com/PawshakeNO",Instagram:"https://www.instagram.com/paw
1shakescandinavia/"},NZ:{Facebook:"https://www.facebook.com/PawshakeNewZealand",Twitter:"https://www.twitter.com/PawshakeNZ",Instagram:"https://www.instagram.com/PawshakeNZ/",Pinterest:"https://www.pinterest.com/PawshakeNZ/pins/"},SE:{Facebook:"https://www.facebook.com/PawshakeSweden",Twitter:"https://www.twitter.com/PawshakeSE",Instagram:"https://www.instagram.com/pawshakescandinavia/"},SG:{Facebook:"https://www.facebook.com/PawshakeSingapore",Twitter:"https://www.twitter.com/PawshakeSG",Instagram:"https://www.instagram.com/PawshakeSG/",Pinterest:"https://www.pinterest.com/PawshakeSG/pins/"},UK:{Facebook:"https://www.facebook.com/PawshakeUK",Twitter:"https://www.twitter.com/PawshakeUK",Instagram:"https://www.instagram.com/PawshakeUK",Pinterest:"https://www.pinterest.com/PawshakeUK/pins"},GB:{Facebook:"https://www.facebook.com/PawshakeUK",Twitter:"https://www.twitter.com/PawshakeUK",Instagram:"https://www.instagram.com/PawshakeUK",Pinterest:"https://www.pinterest.com/PawshakeUK/pins"}},n=e=>{let a=s[e],t=[];return a&&Object.keys(a).map(e=>{let r=a[e];r&&t.push({text:r,rel:"noopener",target:"_blank",href:r,type:e})}),t},i=e=>{switch(e){case"Facebook":return r.c;case"Twitter":return r.g;case"Instagram":return r.e;case"Pinterest":return r.f}}}},function(e){e.O(0,[47929,56503,79556,39544,92546,98133,65608,84693,7477,33115,12883,17508,55710,39338,91723,14212,17946,34061,54294,67034,82137,99044,42293,27396,92888,49774,40179],function(){return e(e.s=78764)}),_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.