1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d2fc4891-fe62-4650-850c-3ee9032ac8f7",e._sentryDebugIdIdentifier="sentry-dbid-d2fc4891-fe62-4650-850c-3ee9032ac8f7")}()}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 r=1;r<arguments.length;r++){var t=arguments[r];if(null!=t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}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([[58587],{14166:function(e,r,t){"use strict";t.d(r,{pm:function(){return f},xX:function(){return p}});var n,o=t(66840),a=t(31854),s=function(){return(s=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)},i=function(e){var r;e?function(e){if(e)for(;e.lastChild;)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(r=document.querySelector(".grecaptcha-badge"))&&r.parentNode&&document.body.removeChild(r.parentNode)},c=function(e,r){i(r),window.___grecaptcha_cfg=void 0;var t,n=document.querySelector("#"+e);n&&n.remove(),(t=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&t.remove()},l=function(e){var r=e.render,t=e.onLoadCallbackName,n=e.language,o=e.onLoad,a=e.useRecaptchaNet,s=e.useEnterprise,i=e.scriptProps,c=void 0===i?{}:i,l=c.nonce,u=void 0===l?"":l,d=c.defer,f=c.async,p=c.id,m=c.appendTo,h=(void 0===p?"":p)||"google-recaptcha-v3";if(document.querySelector("#"+h))o();else{var y,x="https://www."+((y={useEnterprise:s,useRecaptchaNet:a}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(y.useEnterprise?"enterprise.js":"api.js"),g=document.createElement("script");g.id=h,g.src=x+"?render="+r+("explicit"===r?"&onload="+t:"")+(n?"&hl="+n:""),u&&(g.nonce=u),g.defer=!!(void 0!==d&&d),g.async=!!(void 0!==f&&f),g.onload=o,("body"===m?document.body:document.getElementsByTagName("head")[0]).appendChild(g)}},u=function(e){void 0===a||a.env,console.warn(e)};(n||(n={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var d=(0,o.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function f(e){var r=e.reCaptchaKey,t=e.useEnterprise,a=void 0!==t&&t,i=e.useRecaptchaNet,f=void 0!==i&&i,p=e.scriptProps,m=e.language,h=e.container,y=e.children,x=(0,o.useState)(null),g=x[0],j=x[1],v=(0,o.useRef)(r),b=JSON.stringify(p),w=JSON.stringify(null==h?void 0:h.parameters);(0,o.useEffect)(function(){if(r){var e=(null==p?void 0:p.id)||"google-recaptcha-v3",t=(null==p?void 0:p.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[t]=function(){var e=a?window.grecaptcha.enterprise:window.grecaptcha,t=s({badge:"inline",size:"invisible",sitekey:r},(null==h?void 0:h.parameters)||{});v.current=e.render(null==h?void 0:h.element,t)},l({render:(null==h?void 0:h.element)?"explicit":r,onLoadCallbackName:t,useEnterprise:a,useRecaptchaNet:f,scriptProps:p,language:m,onLoad:function(){if(window&&window.grecaptcha){var e=a?window.grecaptcha.enterprise:window.grecaptcha;e.ready(function(){j(e)})}else u("<GoogleRecaptchaProvider /> "+n.SCRIPT_NOT_AVAILABLE)},onError:function(){u("Error loading google recaptcha script")}}),function(){c(e,null==h?void 0:h.element)}}u("<GoogleReCaptchaProvider /> recaptcha key not provided")},[a,f,b,w,m,r,null==h?void 0:h.element]);var S=(0,o.useCallback)(function(e){if(!g||!g.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return g.execute(v.current,{action:e})},[g,v]),_=(0,o.useMemo)(function(){return{executeRecaptcha:g?S:void 0,container:null==h?void 0:h.element}},[S,g,null==h?void 0:h.element]);return o.createElement(d.Provider,{value:_},y)}d.Consumer;var p=function(){return(0,o.useContext)(d)};function m(e,r){return e(r={exports:{}},r.exports),r.exports}var h="function"==typeof Symbol&&Symbol.for,y=h?Symbol.for("react.element"):60103,x=h?Symbol.for("react.portal"):60106,g=h?Symbol.for("react.fragment"):60107,j=h?Symbol.for("react.strict_mode"):60108,v=h?Symbol.for("react.profiler"):60114,b=h?Symbol.for("react.provider"):60109,w=h?Symbol.for("react.context"):60110,S=h?Symbol.for("react.async_mode"):60111,_=h?Symbol.for("react.concurrent_mode"):60111,C=h?Symbol.for("react.forward_ref"):60112,N=h?Symbol.for("react.suspense"):60113,P=h?Symbol.for("react.suspense_list"):60120,E=h?Symbol.for("react.memo"):60115,R=h?Symbol.for("react.lazy"):60116,M=h?Symbol.for("react.block"):60121,k=h?Symbol.for("react.fundamental"):60117,B=h?Symbol.for("react.responder"):60118,A=h?Symbol.for("react.scope"):60119;function F(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case y:switch(e=e.type){case S:case _:case g:case v:case j:case N:return e;default:switch(e=e&&e.$$typeof){case w:case C:case R:case E:case b:return e;default:return r}}case x:return r}}}function $(e){return F(e)===_}var L={AsyncMode:S,ConcurrentMode:_,ContextConsumer:w,ContextProvider:b,Element:y,ForwardRef:C,Fragment:g,Lazy:R,Memo:E,Portal:x,Profiler:v,StrictMode:j,Suspense:N,isAsyncMode:function(e){return $(e)||F(e)===S},isConcurrentMode:$,isContextConsumer:function(e){return F(e)===w},isContextProvider:function(e){return F(e)===b},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===y},isForwardRef:function(e){return F(e)===C},isFragment:function(e){return F(e)===g},isLazy:function(e){return F(e)===R},isMemo:function(e){return F(e)===E},isPortal:function(e){return F(e)===x},isProfiler:function(e){return F(e)===v},isStrictMode:function(e){return F(e)===j},isSuspense:function(e){return F(e)===N},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===g||e===_||e===v||e===j||e===N||e===P||"object"==typeof e&&null!==e&&(e.$$typeof===R||e.$$typeof===E||e.$$typeof===b||e.$$typeof===w||e.$$typeof===C||e.$$typeof===k||e.$$typeof===B||e.$$typeof===A||e.$$typeof===M)},typeOf:F},I=m(function(e,r){}),q=(I.AsyncMode,I.ConcurrentMode,I.ContextConsumer,I.ContextProvider,I.Element,I.ForwardRef,I.Fragment,I.Lazy,I.Memo,I.Portal,I.Profiler,I.Str
1ictMode,I.Suspense,I.isAsyncMode,I.isConcurrentMode,I.isContextConsumer,I.isContextProvider,I.isElement,I.isForwardRef,I.isFragment,I.isLazy,I.isMemo,I.isPortal,I.isProfiler,I.isStrictMode,I.isSuspense,I.isValidElementType,I.typeOf,m(function(e){e.exports=L})),T={};T[q.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},T[q.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0}},72327:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/complete-your-profile/picture",function(){return t(12878)}])},12878:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return R},default:function(){return M}});var n=t(5311),o=t(13714),a=t(87680),s=t(21433),i=t(23968),c=t(87753),l=t(61876),u=t(17946),d=t(79217),f=t(7909),p=t(81271),m=t(57079),h=t(25458),y=t(75325),x=t(23433),g=t(21991),j=t(58947),v=t(96319),b=t(26936),w=t(98709),S=t(59006);let _=e=>{let{requirements:r,userInfo:t}=e,{t:s}=(0,o.Z)("features"),i=(0,l.useRouter)(),{user:c}=(0,x.f)(),{activeIndex:_,nextRoute:C}=(0,w.O)(r.steps,b.QZ.Enum.picture),{handleApiError:N}=(0,g.p)(),P=(0,m.W)(),{cropperRef:E,file:R,setError:M}=P,{isPending:k,mutate:B}=(0,j.Z)({onSuccess:async()=>{try{await (0,v.YS)(null==c?void 0:c.firebaseUser),i.push({pathname:C,query:i.query})}catch(e){e instanceof Error&&N(e)}},onError:()=>u.Am.error(s("common:errors.uploadProfilePicture.upload"))});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.TX,{className:"flex flex-col gap-lg",children:[(0,n.jsx)(y.Y,{length:r.steps.length,activeIndex:_}),(0,n.jsx)("h1",{children:s("features.profile.picture.title")}),(0,n.jsx)("div",{children:s("features.profile.picture.description")}),(0,n.jsx)(h.b,{url:t.avatarUrl,...P})]}),(0,n.jsx)(a.mU,{children:(0,n.jsxs)(f.a,{className:"gap-sm",children:[(0,n.jsxs)(S.$,{"data-test-id":"completeProfilePicture.previous",children:[(0,n.jsx)(d.b,{}),s("features.profile.picture.actions.previous")]}),(0,n.jsxs)(p.f,{onClick:()=>{var e;if(!R&&!t.avatarUrl){M(s("forms.profile.picture.validation.required"));return}if(!R){i.push({pathname:C,query:i.query});return}let r=null===(e=E.current)||void 0===e?void 0:e.cropper,n=null==r?void 0:r.getCroppedCanvas();if(!n){u.Am.error(s("common:errors.uploadProfilePicture.process"));return}B({image:n.toDataURL("image/jpeg",.9)})},variant:"primary","data-test-id":"completeProfilePicture.next",parentClassName:"flex-1 w-full",isLoading:k,children:[s("features.profile.picture.actions.next"),(0,n.jsx)(d.c,{})]})]})})]})};var C=t(73783),N=t(85382),P=t(82415);let E=()=>{let{t:e}=(0,o.Z)("common"),{data:r,refetch:t,isPending:s,isError:i}=(0,b.qJ)(),{data:l,refetch:u,isPending:d,isError:f}=(0,C.Pc)(),p=(0,N.Q)(s||d,i||f,{requirements:r,userInfo:l});if(p.state===N.o.Error||p.state===N.o.Empty)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.TX,{children:(0,n.jsx)(c.kD,{reload:()=>{t(),u()}})}),(0,n.jsx)(a.mU,{children:(0,n.jsx)(S.$,{"data-test-id":"completeProfileAbout.error.goBack",className:"w-full",children:e("generic.navigation.goBack")})})]});if(p.state===N.o.Loading)return(0,n.jsx)(a.TX,{children:(0,n.jsx)(c.s5,{})});let{requirements:m,userInfo:h}=p.data;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(_,{requirements:m,userInfo:h})})};var R=!0,M=(0,s.Y)()(e=>{let{t:r}=(0,o.Z)("common"),t=[{icon:i.H,href:P._j.home},{label:r("pages.titles.profileRequirements"),href:P._j.completeProfile.index}];return(0,n.jsx)(a.UQ,{title:r("pages.titles.profileRequirements"),routes:t,children:(0,n.jsx)(a.oy,{children:(0,n.jsx)(E,{})})})})},32209:function(e,r,t){"use strict";t.d(r,{Q:function(){return i}});var n=t(5311),o=t(7477),a=t.n(o),s=t(80777);let i=e=>{let{src:r,className:t,alt:o,...i}=e;return(0,n.jsx)(a(),{className:(0,s.b)("object-contain",t),alt:o,src:r,...i})}},62893:function(e,r,t){"use strict";t.d(r,{F:function(){return i}});var n=t(5311),o=t(99924),a=t(7909),s=t(32209);let i=e=>{let{src:r,alt:t}=e;return(0,n.jsxs)(a.a,{className:"relative z-0 h-[160px] items-end rounded-lg bg-brand-50",children:[(0,n.jsx)(o.a,{className:"absolute inset-0 -z-[1] h-full w-full rounded-lg"}),(0,n.jsx)(s.Q,{fill:!0,src:r,className:"z-10 mt-lg !h-[152px]",alt:t})]})}},75325:function(e,r,t){"use strict";t.d(r,{Y:function(){return s}});var n=t(5311),o=t(7909),a=t(80777);let s=e=>{let{length:r,activeIndex:t,className:s}=e;return(0,n.jsx)(o.a,{className:(0,a.b)("gap",s),children:[...Array(r)].map((e,r)=>(0,n.jsx)(o.a,{className:(0,a.b)("h-[.75rem] flex-1 rounded-full bg-image",{"bg-primary":r<=t})},"wizard-progress-".concat(r)))})}},87753:function(e,r,t){"use strict";t.d(r,{bI:function(){return m},kD:function(){return h},s5:function(){return y}});var n=t(5311),o=t(13714),a=t(18944),s=t(65639),i=t(7909),c=t(9254),l=t(83773),u=t(62893),d=t(15266),f=t(12535),p=t(76673);let m=e=>{let{requirements:r}=e,{t}=(0,o.Z)("features"),a=(0,p.Fk)(r.steps);return(0,n.jsxs)(i.a,{className:"flex-1 animate-fade flex-col gap-xl animate-ease-out",children:[(0,n.jsx)(u.F,{src:f.SP.illustrations.popup.completeProfile,alt:t("features.profileRequirements.title")}),(0,n.jsxs)(i.a,{className:"flex-col gap",children:[(0,n.jsx)("h1",{className:"h2",children:t("features.profileRequirements.title")}),(0,n.jsx)("div",{children:t("features.profileRequirements.description")}),(0,n.jsx)(d.cN,{className:"pointer-events-none gap-sm",steps:r.steps.map(e=>{let r=(0,p.Ki)(e);return{state:e.state,required:e.required,label:r,route:a,isActive:!1,needsAction:!1}})}),(0,n.jsx)("span",{children:t("features.profileRequirements.caption")})]})]})},h=e=>{let{reload:r}=e,{t}=(0,o.Z)("common");return(0,n.jsx)(l.Jx,{className:"h-fit px",image:a.g,title:t("common:errors.general"),children:(0,n.jsxs)(l.Wi,{"data-test-id":"
1complianceDetailsContainer.error.retry",onClick:r,children:[(0,n.jsx)(s.q,{}),t("common:generic.retry")]})})},y=()=>(0,n.jsxs)(i.a,{className:"flex-col gap-xl",children:[(0,n.jsx)(c.a,{className:"h-4xl w-full"}),(0,n.jsx)(i.a,{className:"flex-col gap-lg px",children:[void 0,void 0,void 0,void 0,void 0].map((e,r)=>(0,n.jsxs)(i.a,{className:"gap",children:[(0,n.jsx)(c.a,{className:"size-lg shrink-0 rounded-full"}),(0,n.jsx)(c.a,{className:"h-lg w-full"})]},"complete-profile-skeleton-".concat(r)))})]})},98709:function(e,r,t){"use strict";t.d(r,{O:function(){return o}});var n=t(76673);let o=(e,r)=>{let t=e.findIndex(e=>e.type===r),o=(0,n.mI)(e,t);return{activeIndex:t,nextRoute:o}}},59006:function(e,r,t){"use strict";t.d(r,{$:function(){return c}});var n=t(5311),o=t(61876),a=t(81271),s=t(80777),i=t(82415);let c=e=>{let{children:r,"data-test-id":t,className:c}=e,l=(0,o.useRouter)();return(0,n.jsx)(a.f,{type:"button",parentClassName:(0,s.b)("md:flex-1",c),"data-test-id":t,variant:"ghost",onClick:()=>{window.history.length>1?l.back():l.replace(i._j.home)},children:r})}},76673:function(e,r,t){"use strict";t.d(r,{Fk:function(){return u},Ki:function(){return c},Nf:function(){return p},VO:function(){return f},mI:function(){return m}});var n=t(78718),o=t(3654),a=t(53708),s=t(99274),i=t(82415);let c=e=>{switch(e.type){case"about":return"features.profileRequirements.steps.about.label";case"picture":return"features.profileRequirements.steps.picture.label";case"phone":return"features.profileRequirements.steps.phone.label";case"address":return"features.profileRequirements.steps.address.label";case"pet":return"features.profileRequirements.steps.pet.label"}},l=e=>{switch(e.type){case"about":return i._j.completeProfile.about;case"picture":return i._j.completeProfile.picture;case"phone":return i._j.completeProfile.phone;case"address":return i._j.completeProfile.address;case"pet":return i._j.completeProfile.pets}},u=e=>e&&0!==e.length?l(e[0]):i._j.home,d=e=>{try{let r=new Intl.DateTimeFormat(e,{day:"2-digit",month:"2-digit",year:"numeric",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,11,30))).find(e=>["day","month","year"].includes(e.type));if(!r)return!1;return"month"===r.type}catch(e){return!1}},f=(e,r)=>{if(!e)return"";let t="dd/MM/yyyy";"en-US"===r&&(t="MM/dd/yyyy");let a=(0,n.Z)(e,"yyyy-MM-dd",new Date);return(0,o.Z)(a,t,{locale:(0,s.BJ)(r)})},p=(e,r)=>{for(let t of d(r.trim())?["MM/dd/yyyy","dd/MM/yyyy"]:["dd/MM/yyyy","MM/dd/yyyy"]){let r=(0,n.Z)(e,t,new Date);if((0,a.Z)(r))return r}},m=(e,r)=>r<0||e.length===r+1?i._j.completeProfile.success:l(e[r+1])},57079:function(e,r,t){"use strict";t.d(r,{W:function(){return o}});var n=t(66840);let o=()=>{let e=(0,n.useRef)(null),[r,t]=(0,n.useState)(void 0),[o,a]=(0,n.useState)(void 0);return{cropperRef:e,file:r,setFile:t,error:o,setError:a}}},25458:function(e,r,t){"use strict";t.d(r,{b:function(){return v}});var n=t(5311),o=t(66840),a=t(71977),s=t(34749),i=t(13714),c=t(67006),l=t(23968),u=t(7909),d=t(87927),f=t(80777),p=t(83977),m=t(33115),h=t(81271),y=t(88573),x=t(28522),g=t(23417);t(63025);var j=t(21438);let v=e=>{let{url:r,cropperRef:t,file:s,setFile:l,error:f,setError:p}=e,{t:m}=(0,i.Z)("features"),[h,g]=(0,o.useState)(null!=r?r:void 0),[v,_]=(0,o.useState)(void 0!==h),C=(0,o.useRef)(null);(0,o.useEffect)(()=>()=>{C.current&&URL.revokeObjectURL(C.current)},[]);let N=(0,a.uI)({accept:y.Uo,maxSize:y.WB,maxFiles:1,multiple:!1,onDropAccepted:e=>{P(e)},onDropRejected:e=>{E(e)}}),P=e=>{if(e.length>0){let r=e[0];C.current&&URL.revokeObjectURL(C.current);let t=URL.createObjectURL(r);C.current=t,l({name:(0,c.k$)(),url:t,type:r.type}),g(void 0)}},E=e=>{e.length>0&&e[0].errors.length>0&&p(m("common:errors.fileUpload.".concat(e[0].errors[0].code),{count:1,types:y.sK,size:(0,x.td)(y.WB,0)}))};return(0,n.jsxs)(u.a,{className:"max-w-screen-sm flex-col gap-lg",children:[!h&&void 0===s&&(0,n.jsx)(b,{error:f,fileInputProps:N}),void 0!==s&&(0,n.jsx)(u.a,{className:"w-full flex-1 flex-col items-center justify-center rounded border border-dashed border-body p-lg",children:(0,n.jsx)(w,{file:s,cropperRef:t,setDidLoadBlob:_})}),h&&(0,n.jsx)(u.a,{className:"w-full flex-1 flex-col items-center justify-center rounded border border-dashed border-body p-lg",children:(0,n.jsx)(d.a,{className:"relative size-[160px] overflow-hidden rounded-full",children:(0,n.jsx)(j._,{draggable:!1,
1className:"object-cover group-hover:brightness-[.8] group-hover:contrast-[1.1]",alt:m("features.profile.picture.alt"),src:h,sizes:"160px"})})}),(void 0!==s||h)&&(0,n.jsx)(S,{inputProps:N.getInputProps(),didLoadBlob:v})]})},b=e=>{let{className:r,error:t,fileInputProps:o}=e;return(0,n.jsxs)(u.a,{className:(0,f.b)("flex-col gap-xs",r),children:[(0,n.jsx)(p.a,{className:(0,f.b)("h-[240px] w-full",{"rounded-lg border-2 border-error bg-red-50":void 0!==t}),...o,children:(0,n.jsx)("div",{children:(0,n.jsx)(s.Z,{i18nKey:"common:components.fileUpload.one",components:{...g.v,underline:(0,n.jsx)("span",{className:"underline"})},values:{fileTypes:y.sK,sizeLimit:(0,x.td)(y.WB,0)}})})}),t&&(0,n.jsxs)(u.a,{className:"items-center gap-sm text-error",children:[(0,n.jsx)(l.y,{className:"h w"}),(0,n.jsx)("span",{children:t})]})]})},w=e=>{let{file:r,cropperRef:t,setDidLoadBlob:o}=e;return(0,n.jsx)(m.a,{containerClassName:"flex-1 items-center justify-center",cropperClassName:"flex-1 items-center justify-center max-h-[320px]",circularCrop:!0,cropperRef:t,options:{aspectRatio:1,viewMode:1,background:!1,autoCropArea:1,onInitialized:()=>o(!0)},actions:(0,n.jsxs)(u.a,{className:"justify-center gap-lg",children:[(0,n.jsx)(m.a.FlipHorizontalButton,{type:"button",colorScheme:"default",ariaLabel:"Flip horizontal"}),(0,n.jsx)(m.a.RotateButton,{type:"button",colorScheme:"default",ariaLabel:"Rotate"}),(0,n.jsx)(m.a.FlipVerticalButton,{type:"button",colorScheme:"default",ariaLabel:"Flip vertical"})]}),fileUrl:r.url})},S=e=>{let{inputProps:r,didLoadBlob:t}=e,{t:a}=(0,i.Z)("features"),s=(0,o.useRef)(null);return(0,n.jsxs)(u.a,{className:"items-center justify-between",children:[(0,n.jsx)("input",{...r,ref:s}),(0,n.jsx)(h.d,{type:"button",variant:"outline",colorScheme:"default","data-test-id":"uploadProfilePictureActions.account.changeButton",isLoading:!t,onClick:()=>{s.current&&s.current.click()},children:(0,n.jsx)("span",{children:a("forms.uploadProfilePicture.change")})})]})}},21991:function(e,r,t){"use strict";t.d(r,{p:function(){return i}});var n=t(13714),o=t(17946),a=t(52939),s=t(8950);let i=()=>{let{t:e}=(0,n.Z)("common");return{handleApiError:r=>{if(r instanceof a.rP)switch(r.error.code){case"verificationCode.tooManyAttempts":case"verificationCode.dailyLimitReached":o.Am.error(e("common:errors.toasts.tooManyRequests"));return;default:return}switch(r instanceof a.Gp?r.name:r.message){case s.XE.FetchFailed:o.Am.error(e("common:errors.general"));break;case s.XE.ResponseNotOk:break;case s.XE.TimeOut:o.Am.error(e("common:errors.toasts.timeout"));break;case s.XE.TooManyRequests:o.Am.error(e("common:errors.toasts.tooManyRequests"));break;default:o.Am.error(e("common:errors.general"))}}}}},58947:function(e,r,t){"use strict";t.d(r,{Z:function(){return l}});var n=t(96523),o=t(5578),a=t(18454),s=t(23433),i=t(34095),c=t(73783);let l=e=>{let{user:r}=(0,s.f)(),t=(0,n.NL)();return(0,o.D)({mutationFn:e=>u({user:r,...e}),...e,onSuccess:function(){for(var n,o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];t.invalidateQueries({queryKey:[c.ei,null==r?void 0:r.id]}),null===(n=e.onSuccess)||void 0===n||n.call(e,...a)}})},u=async e=>{try{return await i.hi.dispatchCommand({commandName:"Pawshake.Owner.ProfileImage.WriteModel.SpecifyOwnerProfileImage",user:e.user,payload:{base64EncodedImage:e.image}})}catch(e){throw a.k.error("account.api.tsx - uploadProfilePicture",{error:e,cause:e instanceof Error?e.cause:""}),Error("Error uploading profile picture")}}},26936:function(e,r,t){"use strict";t.d(r,{CO:function(){return g},QZ:function(){return u},ix:function(){return w},lx:function(){return b},qJ:function(){return h}});var n=t(56170),o=t(5578),a=t(18454),s=t(81369),i=t(23433),c=t(34095);let l=s.z.enum(["needed","notNeeded"]),u=s.z.enum(["about","picture","phone","address","pet"]),d=s.z.enum(["todo","completed"]),f=s.z.object({type:u,state:d,required:s.z.boolean()}),p=s.z.object({state:l,steps:s.z.array(f)}),m=async e=>{try{let r=await c.hi.get({url:"/core/v1/users/profile-requirements",user:e,config:{baseUrl:"https://api-eu.pawshake.io"}}),t=await r.json();return p.parse(t)}catch(e){throw a.k.error("fetchProfileRequirements - try/catch",{error:e}),Error("Error fetching profile requirements")}},h=()=>{let{user:e,isFinalised:r}=(0,i.f)();return(0,n.a)({queryKey:["fetch-profile-requirements",null==e?void 0:e.id],queryFn:()=>m(e),enabled:r})},y=s.z.object({value:s.z.string().nullable()}),x=async e=>{try{let r=await c.hi.get({url:"/profile/sitter-listing/head-line",user:e}),t=await r.json();return y.parse(t)}catch(e){throw a.k.error("fetchProfileHeadline - try/catch",{error:e}),Error("Error fetching profile headline")}},g=()=>{let{user:e}=(0,i.f)();return(0,n.a)({queryKey:["fetch-profile-headline",null==e?void 0:e.id],queryFn:()=>x(e)})},j=s.z.object({components:s.z.array(s.z.object({value:s.z.string().nullable()}))}).transform(e=>0===e.components.length?{value:null}:{value:e.components[0].value}),v=async e=>{try{let r=await c.hi.get({url:"/profile/sitter-listing/information",user:e}),t=await r.json();return j.parse(t)}catch(e){throw a.k.error("fetchProfileInformation - try/catch",{error:e}),Error("Error fetching profile information")}},b=()=>{let{user:e}=(0,i.f)();return(0,n.a)({queryKey:["fetch-profile-information",null==e?void 0:e.id],queryFn:()=>v(e)})},w=e=>{let{user:r}=(0,i.f)();return(0,o.D)({mutationFn:()=>S(r),...e})},S=async e=>c.hi.dispatchCommand({commandName:"Pawshake.Sitter.Application.WriteModel.CreateSitterSubmission",user:e,payload:{}})},88573:function(e,r,t){"use strict";t.d(r,{Uo:function(){return o},WB:function(){return n},sK:function(){return a}});let n=1024e4,o={"image/jpeg":[".jpeg",".png"]},a=Object.keys(o).map(e=>o[e].map(e=>e.replace(".","").toUpperCase()).join(", ")).join(", ")},28522:function(e,r,t){"use strict";t.d(r,{Bb:function(){return a},CZ:function(){return j},Em:function(){return h},XW:function(){return m},aO:function(){return v},jK:function(){return d},og:function(){return g},p6:function(){return u},rl:function(){return c},td:function(){return f},uf:function(){return i},xG:function(){return l},xh:function(){return y},zB:function(){return s}});var n=t(39464),o=t(99274);let a=e=>"".concat(e.amount," ").concat(e.system),s=e=>e?"- ".concat(e):"",i=(e,r)=>new Intl.NumberFormat(r).format(e),c=(e,r)=>new Intl.NumberFormat(r,{style:"percent"}).format(e/100),l=function(e,r,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=x(t);return new Intl.NumberFormat(o,{style:"currency",currencyDisplay:"symbol",currency:r,minimumFractionDigits:n}).format(e)},u=function(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Date(e).toLocaleDateString(r,{year:"2-digit",month:"2-digit",day:"2-digit",...t})},d=(e,r)=>{let t;return new Intl.NumberFormat(r,{style:"currency",currency:e}
1).formatToParts(0).forEach(e=>{let{type:r,value:n}=e;"currency"===r&&(t=n)}),t},f=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!+e)return"0 Bytes";let t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(parseFloat((e/Math.pow(1024,t)).toFixed(r<0?0:r))," ").concat(["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][t])},p=(e,r,t,n)=>{let o=i(e,t);return"".concat(o," ").concat(n("common:units.".concat(r,".").concat(e>1?"other":"one")))},m=(e,r,t,n,a)=>{if(0===e.length)return"";if(1===e.length)return(0,o.fG)(new Date(e[0]+"T00:00:00"));let s=h(e),i=new Date(s[0]+"T00:00:00").toLocaleString(n,o.AW),c=new Date(s[s.length-1]+"T00:00:00").toLocaleString(n,o.AW);return"".concat(i," - ").concat(c," (").concat(p(r,t,n,a),")")},h=e=>e.sort((e,r)=>new Date(e).getTime()-new Date(r).getTime()),y=(e,r)=>{let t=(0,o.BJ)(r);return(0,n.Z)(0,e<0?0:1e3*e,{roundingMethod:"floor",unit:e>3600?"hour":"minute",locale:t})},x=e=>{switch(e){case"nl-BE":case"fr-BE":case"de-DE":case"fr-FR":case"nl-NL":case"en-CA":case"fr-CA":case"en-GB":case"en-AU":case"da-DK":case"fi-FI":case"en-IE":case"it-IT":case"no-NO":case"sv-SE":case"en-NZ":return e;case"de-CH":case"de-BE":case"de-LU":case"de-AT":return"de-DE";case"en-BE":case"en-DE":case"en-FR":case"en-LU":case"en-NL":case"en-HK":case"en-SG":case"en-JP":case"en-AT":case"en-DK":case"en-IT":case"en-NO":case"en-SE":case"en-FI":case"en-CH":default:return"en-GB";case"fr-CH":case"fr-LU":return"fr-FR";case"it-CH":return"it-IT"}},g=e=>e?e/100:0,j=e=>{let r="";return e.map((t,n)=>{r+=t,n<e.length-1&&(r+=", ")}),r},v=(e,r,t)=>{let n=l(e.unitRate/100,e.currency,r,2),o="".concat(e.amountOfUnits," ").concat(t);return"".concat(n," x ").concat(o)}},23417:function(e,r,t){"use strict";t.d(r,{v:function(){return o}});var n=t(5311);let o={b:(0,n.jsx)("b",{}),i:(0,n.jsx)("i",{}),u:(0,n.jsx)("u",{}),br:(0,n.jsx)("br",{}),p:(0,n.jsx)("p",{}),ul:(0,n.jsx)("ul",{className:"ml-lg list-disc"}),li:(0,n.jsx)("li",{}),ol:(0,n.jsx)("ol",{className:"ml-lg list-decimal"})}},85382:function(e,r,t){"use strict";var n,o;t.d(r,{Q:function(){return a},o:function(){return n}}),(o=n||(n={})).Loading="loading",o.Error="error",o.Success="success",o.Empty="empty";let a=(e,r,t)=>r?{state:"error"}:e?{state:"loading"}:Object.values(t).every(e=>void 0!==e&&null!=e)?{state:"success",data:t}:{state:"empty"}},18944:function(e,r,t){"use strict";t.d(r,{a:function(){return s},b:function(){return i},c:function(){return c},d:function(){return l},e:function(){return u},f:function(){return d},g:function(){return f},i:function(){return p}});var n=t(47591),o=t(5311),a="./media/error-illustrations-5D4TE7GG.svg",s=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{children:(0,o.jsx)("use",{href:`/${a}#compliance`})})),i=e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("svg",{style:{width:0,height:0,position:"absolute"},children:(0,o.jsx)("defs",{children:(0,o.jsxs)("filter",{id:"gallery_error_a",width:"74.821",height:"74.243",x:"149.628",y:"45.794",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,o.jsx)("feMorphology",{in:"SourceAlpha",radius:"4",result:"effect1_dropShadow_1354_1342"}),(0,o.jsx)("feOffset",{dy:"4"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"3"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),(0,o.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1354_1342"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,o.jsx)("feMorphology",{in:"SourceAlpha",radius:"3",result:"effect2_dropShadow_1354_1342"}),(0,o.jsx)("feOffset",{dy:"10"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"7.5"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),(0,o.jsx)("feBlend",{in2:"effect1_dropShadow_1354_1342",result:"effect2_dropShadow_1354_1342"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect2_dropShadow_1354_1342",result:"shape"})]})})}),(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{children:(0,o.jsx)("use",{href:`/${a}#gallery`})}))]}),c=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{children:(0,o.jsx)("use",{href:`/${a}#generic`})})),l=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{children:(0,o.jsx)("use",{href:`/${a}#idBlocked`})})),u=e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("svg",{style:{width:0,height:0,position:"absolute"},children:(0,o.jsx)("defs",{children:(0,o.jsxs)("filter",{id:"inbox_error_a",width:"74.821",height:"74.243",x:"141.628",y:"53.794",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"Backgroun
1dImageFix"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,o.jsx)("feMorphology",{in:"SourceAlpha",radius:"4",result:"effect1_dropShadow_1561_596"}),(0,o.jsx)("feOffset",{dy:"4"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"3"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),(0,o.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1561_596"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,o.jsx)("feMorphology",{in:"SourceAlpha",radius:"3",result:"effect2_dropShadow_1561_596"}),(0,o.jsx)("feOffset",{dy:"10"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"7.5"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),(0,o.jsx)("feBlend",{in2:"effect1_dropShadow_1561_596",result:"effect2_dropShadow_1561_596"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect2_dropShadow_1561_596",result:"shape"})]})})}),(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{children:(0,o.jsx)("use",{href:`/${a}#inbox`})}))]}),d=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{children:(0,o.jsx)("use",{href:`/${a}#pets`})})),f=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{children:(0,o.jsx)("use",{href:`/${a}#profile`})})),p=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{children:(0,o.jsx)("use",{href:`/${a}#sitter-application`})}))},16470:function(e,r,t){"use strict";t.d(r,{a:function(){return s},b:function(){return i},c:function(){return c},d:function(){return l},e:function(){return u},f:function(){return d},g:function(){return f}});var n=t(47591),o=t(5311),a="./media/brand-icons-U6C4RIRM.svg",s=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{style:(0,n.b)((0,n.a)({},e.style),{flexShrink:0}),children:(0,o.jsx)("use",{href:`/${a}#Apple`})})),i=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{style:(0,n.b)((0,n.a)({},e.style),{flexShrink:0}),children:(0,o.jsx)("use",{href:`/${a}#Facebook`})})),c=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{style:(0,n.b)((0,n.a)({},e.style),{flexShrink:0}),children:(0,o.jsx)("use",{href:`/${a}#FacebookLight`})})),l=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{style:(0,n.b)((0,n.a)({},e.style),{flexShrink:0}),children:(0,o.jsx)("use",{href:`/${a}#Google`})})),u=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{style:(0,n.b)((0,n.a)({},e.style),{flexShrink:0}),children:(0,o.jsx)("use",{href:`/${a}#InstagramLight`})})),d=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{style:(0,n.b)((0,n.a)({},e.style),{flexShrink:0}),children:(0,o.jsx)("use",{href:`/${a}#PinterestLight`})})),f=e=>(0,o.jsx)("svg",(0,n.b)((0,n.a)({},e),{style:(0,n.b)((0,n.a)({},e.style),{flexShrink:0}),children:(0,o.jsx)("use",{href:`/${a}#XLight`})}))},9254:function(e,r,t){"use strict";t.d(r,{a:function(){return s}});var n=t(80777),o=t(51858),a=t(5311),s=e=>{let{className:r=""}=e,t=(0,o.c)(e,["className"]);return(0,a.jsx)("div",(0,o.a)({className:(0,n.b)("animate-pulse rounded bg-gray-200",r)},t))}}},function(e){e.O(0,[47929,56503,79556,39544,92546,98133,65608,84693,7477,33115,12883,17508,55710,39338,91723,14212,17946,16867,42293,27396,22425,97554,30425,96319,92888,49774,40179],function(){return e(e.s=72327)}),_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.