1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1360],{84110:function(e){e.exports=function(e,i,t){e=e||{};var n=i.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(e,i,t,r){return n.fromToBase(e,i,t,r)}t.en.relativeTime=r,n.fromToBase=function(i,n,a,o,l){for(var s,u,c,d=a.$locale().relativeTime||r,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=h.length,p=0;p<f;p+=1){var m=h[p];m.d&&(s=o?t(i).diff(a,m.d,!0):a.diff(i,m.d,!0));var x=(e.rounding||Math.round)(Math.abs(s));if(c=s>0,x<=m.r||!m.r){x<=1&&p>0&&(m=h[p-1]);var y=d[m.l];l&&(x=l(""+x)),u="string"==typeof y?y.replace("%d",x):y(x,n,m.l,c);break}}if(n)return u;var v=c?d.future:d.past;return"function"==typeof v?v(u):v.replace("%s",u)},n.to=function(e,i){return a(e,i,this,!0)},n.from=function(e,i){return a(e,i,this)};var o=function(e){return e.$u?t.utc():t()};n.toNow=function(e){return this.to(o(this),e)},n.fromNow=function(e){return this.from(o(this),e)}}},96643:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/about",function(){return t(3862)}])},65563:function(e,i,t){"use strict";t.d(i,{l:function(){return a}});var n=t(85893),r=t(51664),a=function(e){var i=e.label,t=e.size,a=void 0===t?"default":t,o=e.variant,l=e.isIconOnly,s=function(){""===document.referrer?window.location.href="/":window.history.back()};return(0,n.jsx)(r.uoO,{space:"default"===a?"large3x":"small3x",children:void 0!==l&&l?(0,n.jsx)(r.hU,{label:"Back",onClick:s,size:a,variant:"tertiary",children:(0,n.jsx)(r.ed9,{size:"small"})}):(0,n.jsx)(r.zxk,{iconLeading:(0,n.jsx)(r.ed9,{}),label:void 0===i?"Back":i,onClick:s,size:a,variant:void 0===o?"secondary":o})})}},3862:function(e,i,t){"use strict";t.r(i),t.d(i,{__N_SSP:function(){return eo},default:function(){return ea}});var n,r,a,o,l=t(47568),s=t(20414),u=t(85893),c=t(51664),d=t(82580),h=t(67294),f=t(78065),p=t(65563),m=t(46796),x=t(65492),y=t(70375),v=t(1358),g=t(93308),b=t(14924),j=t(26042),w=t(69396),T=t(10253),P=t(94184),E=t.n(P),_=t(55484),N=t.n(_),C=function(e){var i=e.fieldName,t=e.children,n=(0,T.Z)((0,d.U$)(i),2)[1],r=n.error,a=n.touched;return(0,u.jsxs)("div",{className:E()((0,b.Z)({},N().root,!!r&&a)),children:[t,!!r&&a&&(0,u.jsx)("div",{className:N().error,"data-error-message":!0,children:r})]})},O=t(99534),I=function(e){var i=e.title,t=e.description,n=e.tip,r=(0,O.Z)(e,["title","description","tip"]);return(0,u.jsx)(c.uoO,{children:(0,u.jsxs)("div",{children:[(0,u.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,u.jsx)(c.X6q,(0,w.Z)((0,j.Z)({size:"small3x"},r),{children:i})),!!n&&(0,u.jsx)(c.eEP,{tip:n})]}),!!t&&(0,u.jsx)(c.uTp,{size:"default",children:t})]})})};(n=a||(a={})).PILL="pillMedication",n.LIQUID="liquidMedication",n.TOPICAL="topicalMedication",n.SUBCUTANEOUS="subcutaneousMedication",(r=o||(o={})).PET_GROOMING="petGrooming",r.PET_TRAINING="petTraining",r.TAFE_ANIMAL_CARE="tafe",r.VET_SCIENCE="veterinaryScience";var S="medication",A="qualification",M="experience",L="photo",k="title",q="medicationYes",V="qualificationYes",Z="typesOfMedication",B="typesOfCertification",z=[{description:"Toggle to see a list of types of medication and let us know which of them you're happy to give.",label:"Are you comfortable administering medication?",value:q}],U=[{description:"Your qualifications can make you stand out from other Sitters!",label:"Do you have qualifications related to pet care and handling or Veterinary Science?",value:V}],F=[{label:"Pill/tablet medication (in-mouth)",value:a.PILL},{label:"Liquid medication (in-mouth)",value:a.LIQUID},{label:"Topical medication (on-skin)",value:a.TOPICAL},{label:"Subcutaneous medication (injected through a needle)",value:a.SUBCUTANEOUS}],D=[{label:"Pet grooming",value:o.PET_GROOMING},{label:"Pet training",value:o.PET_TRAINING},{label:"TAFE qualification related to animal care and handling",value:o.TAFE_ANIMAL_CARE}
1,{label:"University student/graduate related to Veterinary Science",value:o.VET_SCIENCE}],G=function(){var e=(0,d.u6)(),i=e.values,t=e.setFieldValue,n=e.setTouched,r=e.touched;return(0,u.jsxs)("div",{children:[(0,u.jsx)(I,{title:"Certifications and Qualifications"}),(0,u.jsxs)(c.uoO,{space:"large1x",children:[(0,u.jsx)(c.tXp,{isLegendVisuallyHidden:!0,legend:"Certifications and Qualifications",name:A,onChange:function(e){t(A,e.target.value)},options:U,value:i.qualification}),(0,u.jsx)(u.Fragment,{children:i.qualification.length>0&&(0,u.jsxs)("div",{children:[(0,u.jsx)(I,{tip:"You will be required to send documentation to prove your qualifications.",title:"Types Of Certification"}),(0,u.jsx)(C,{fieldName:B,children:(0,u.jsx)(c.cOn,{isLegendVisuallyHidden:!0,legend:"Types Of Certification",name:B,onChange:function(e){n((0,w.Z)((0,j.Z)({},r),(0,b.Z)({},B,!0))),t(B,e.target.value.value)},options:D,value:{value:i.typesOfCertification}})})]})})]})]})},R=t(36305),Y=function(){var e=(0,d.u6)(),i=e.values,t=e.setFieldValue,n=e.setTouched,r=e.touched;return(0,u.jsxs)("div",{children:[(0,u.jsx)(I,{title:"Administering Medication"}),(0,u.jsxs)(c.uoO,{space:"large1x",children:[(0,u.jsx)(c.tXp,{isLegendVisuallyHidden:!0,legend:"Administering Medication",name:S,onChange:function(e){t(S,e.target.value)},options:z,value:i.medication}),(0,u.jsx)(u.Fragment,{children:i.medication.length>0&&(0,u.jsxs)("div",{children:[(0,u.jsx)(I,{tip:"You may have experience giving these medications to your own pets, but please consider whether you'd be comfortable administering them to a furry client.",title:"Types Of Medication"}),(0,u.jsx)(C,{fieldName:Z,children:(0,u.jsx)(c.cOn,{isLegendVisuallyHidden:!0,legend:"Types Of Medication",name:Z,onChange:function(e){n((0,w.Z)((0,j.Z)({},r),(0,b.Z)({},Z,!0))),t(Z,(0,R.Z)(e.target.value.value))},options:F,value:{value:i.typesOfMedication}})})]})})]})]})},X=function(){var e=(0,d.u6)(),i=e.values,n=e.setFieldValue,r=e.submitCount,a=e.submitForm,o=e.isSubmitting,l=e.handleBlur;(0,h.useEffect)(function(){if(r>0&&void 0!==t.g.document){var e=t.g.document.querySelector("[data-error-message]");e&&e.scrollIntoView({behavior:"smooth",block:"end"})}},[r]);var s=(0,c.Vmp)(),p=function(e){var i=e.target;n(i.name,i.value)};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(c.uoO,{space:"large2x",children:[(0,u.jsx)(I,{description:"We would suggest choosing a well-lit photo preferably without sunglasses.",tip:"The best profile photos are ones where owners can clearly see your face. Try to avoid photos taken from too far away.",title:"Your Profile Photo"}),(0,u.jsx)(g.G,{elementValue:{value:[i.photo],subValue:""},setElementValue:function(e,i){n(e,i.value[0]),f.Am.success("Profile photo updated successfully")},stepperElement:{propertyName:L,title:null,description:null,id:L,sourcePropertyName:"",conditions:null,isOptional:!1,options:[],isTrackable:!1,placeholder:null,type:""}}),(0,u.jsx)(c.izJ,{}),(0,u.jsxs)("div",{children:[(0,u.jsx)(I,{description:"Write 5 to 10 words highlighting why you're a great Pet Sitter.",tip:"This is what Pet Owners will see when they search for a Pet Sitter, so make sure your title helps you stand out from the crowd!",title:"Your Profile Title"}),(0,u.jsx)(C,{fieldName:k,children:(0,u.jsx)(c.nvn,{hasTighterSpacing:!0,isLabelVisuallyHidden:!0,isTopDescription:!0,label:"Your Profile Title",name:k,onBlur:l,onChange:p,value:i.title})})]}),(0,u.jsx)(c.izJ,{}),(0,u.jsxs)("div",{children:[(0,u.jsx)(I,{description:"Add a description about you and why you are a top-notch Pet Sitter. We recommend around 2 paragraphs.",tip:"This is where your love for pets can really shine! It's a chance to tell Pet Owners about you, your experience and a litter bit about what their pet can look forward to when being cared for by you.",title:"Your Bio"}),(0,u.jsx)(C,{fieldName:"bio",children:(0,u.jsx)(c.Kx8,{hasTighterSpacing:!0,isLabelVisuallyHidden:!0,label:"Your Bio",name:"bio",onBlur:l,onChange:p,value:i.bio})})]}),(0,u.jsx)(c.izJ,{}),(0,u.jsx)(I,{description:"Tell Pet Owners about your experience so they know their pet is in safe hands.",fontFamily:"heading",level:2,size:s?"small1x":"small2x",title:"Experience"}),(0,u.jsxs)("div",{children:[(0,u.jsx)(I,{description:"How many years experience do you have looking after pets?",tip:"Experience could be looking after your own or other people's pets or caring for animals as a job.",title:"Years of Experience"}),(0,u.jsx)(C,{fieldName:M,children:(0,u.jsx)(c.nvn,{hasTighterSpacing:!0,isLabelVisuallyHidden:!0,isTopDescription:!0,label:"Years of Experience",minValue:0,name:M,onBlur:l,onChange:p,type:"number",value:i.experience})})]}),(0,u.jsx)(c.izJ,{}),(0,u.jsx)(Y,{}),(0,u.jsx)(c.izJ,{}),(0,u.jsx)(G,{})]}),(0,u.jsx)(c.uoO,{space:"small2x",children:(0,u.jsx)(c.zxk,{iconLeading:o?(0,u.jsx)(c.AXE,{}):void 0,isDisabled:o,isFullBleed:!0,label:"Save",onClick:a})})]})},H=t(37487),J=t(65830),Q=function(){var e,i=(0,T.Z)((0,h.useState)(!1),2),t=i[0],n=i[1],r=(0,T.Z)((0,h.useState)(!1),2),a=r[0],o=r[1],d=(0,T.Z)((0,h.useState)(null),2),f=d[0],p=d[1],m=(0,y.l)(),x=m.isUserSitter,g=m.getUserDetails,b=(e=(0,l.Z)(function(){return(0,s.__generator)(this,function(e){switch(e.label){case 0:return o(!0),p(null),[4,v.R.deleteSitterProfile().then(function(){g()}).catch(function(e){p((0,J.e$)(e))})];case 1:return e.sent(),n(!1),o(!1),[2]}})}),function(){return e.apply(this,arguments)});return x?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(I,{description:"If you remove your service, all data relating to your Pet Service Profile will be deleted and cannot be retrieved. Mad Paws is not responsible for the loss of this data.",title:"Deleting Your Profile"}),(0,u.jsx)(u.Fragment,{children:!!f&&(0,u.jsx)(c.jL0,{description:f,type:"error"})}),(0,u.jsx)(c.ZPD,{onClick:function(){n(!0)},children:"I want to delete my Pet Service Profile"}),(0,u.jsxs)(c.VqE,{domContainerId:H.Ev,heading:"Warning!",isOpen:t,onRequestClose:function(){n(!1)},children:[(0,u.jsxs)(c.uoO,{space:"small1x",children:[(0,u.jsx)(c.uTp,{children:"Are you sure you want to delete your Pet Service Profile? This cannot be undone, and you will permanently lose all Profile data."}),(0,u.jsx)(c.izJ,{})]}),(0,u.jsx)(c.zxk,{iconLeading:a?(0,u.jsx)(c.AXE,{}):(0,u.jsx)(c.az_,{}),isDisabled:a,isFullBleed:!0,label:"Delete My Pet Service Profile",onClick:b,size:"small1x",variant:"secondary"})]})]}):null},W=t(9008),$=t.n(W),K=function(){return(0,u.jsx)($(),{children:(0,u.jsx)("title",{children:"Edit Pet Sitter Profile Details | MadPaws"})})},ee=t(16310),ei=function(e){var i=e.liquidMedication,t=e.pillMedication,n=e.subcutaneousMedication,r=e.topicalMedication;return[t&&a.PILL,i&&a.LIQUID,r&&a.TOPICAL,n&&a.SUBCUTANEOUS].filter(
1Boolean)},et=function(e){var i=e.petGrooming,t=e.petTraining,n=e.tafe,r=e.veterinaryScience;return[i&&o.PET_GROOMING,t&&o.PET_TRAINING,n&&o.TAFE_ANIMAL_CARE,r&&o.VET_SCIENCE].filter(Boolean)},en=function(e){var i=Number(e.medication.length>0),t=Number(e.qualification.length>0),n=new Set(e.typesOfMedication),r=new Set(e.typesOfCertification),l={pillMedication:Number(i&&n.has(a.PILL)),liquidMedication:Number(i&&n.has(a.LIQUID)),topicalMedication:Number(i&&n.has(a.TOPICAL)),subcutaneousMedication:Number(i&&n.has(a.SUBCUTANEOUS))},s={petGrooming:Number(t&&r.has(o.PET_GROOMING)),petTraining:Number(t&&r.has(o.PET_TRAINING)),tafe:Number(t&&r.has(o.TAFE_ANIMAL_CARE)),veterinaryScience:Number(t&&r.has(o.VET_SCIENCE))};return(0,j.Z)({title:e.title,bio:e.bio,experience:parseInt(e.experience,10),medication:i,qualification:t},l,s)},er=ee.Ry({title:ee.Z_().required().wordsBetween(5,10),bio:ee.Z_().required("Please enter more than 650 characters. This is only around 2 paragraphs.").min(50,"Please enter more than 650 characters. This is only around 2 paragraphs."),photo:ee.nK().required(),experience:ee.Z_().required().min(0),medication:ee.IX().of(ee.Z_()),typesOfMedication:ee.IX().of(ee.Z_()).when("medication",{is:function(e){return Array.isArray(e)&&e.length>0},then:function(e){return e.min(1,"Please select at least one type of medication")},otherwise:function(e){return e}}),qualification:ee.IX().of(ee.Z_()),typesOfCertification:ee.IX().of(ee.Z_()).when("qualification",{is:function(e){return Array.isArray(e)&&e.length>0},then:function(e){return e.min(1,"Please select at least one type of qualification")},otherwise:function(e){return e}})}),ea=function(e){var i,t,n=e.profileDetails,r=(0,y.l)().user,a=(0,c.Vmp)(),o=ei(n),h=et(n),g={photo:n.photo.data.src||m.Ec,title:n.title,bio:n.bio,experience:null===(t=n.experience)||void 0===t?void 0:t.toString(),medication:n.medication?[q]:[],qualification:n.qualification?[V]:[],typesOfMedication:o,typesOfCertification:h},b=(i=(0,l.Z)(function(e){var i;return(0,s.__generator)(this,function(t){switch(t.label){case 0:return i=en(e),[4,v.R.updateSitterProfile(i).then(function(){f.Am.success("Profile updated successfully")}).catch(function(){f.Am.error("Could not update household details at this time")})];case 1:return t.sent(),[2]}})}),function(e){return i.apply(this,arguments)});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(K,{}),(0,u.jsx)(p.l,{}),(0,u.jsx)(c.X6q,{fontFamily:"heading",level:1,size:a?"large1x":"small1x",children:"Profile details"}),(0,u.jsx)(c.uoO,{children:(0,u.jsx)(c.uTp,{size:a?"large2x":"default",children:"Your profile is a great way for the Mad Paws community to start to get to know you."})}),(0,u.jsx)(d.J9,{initialValues:g,onSubmit:b,validationSchema:er,children:(0,u.jsx)(X,{})}),(0,u.jsxs)(c.uoO,{space:"default",children:[(0,u.jsx)(c.zxk,{isFullBleed:!0,label:" View my Public Profile",onClick:function(){var e=(0,x.S1)(null==r?void 0:r.city,null==r?void 0:r.rewriteUrl,null==r?void 0:r.state);window.open(e,"_blank")},variant:"transparent"}),(0,u.jsx)(c.izJ,{})]}),(0,u.jsx)(Q,{}),(0,u.jsx)(f.Ix,{autoClose:3e3,draggable:!0,hideProgressBar:!0,newestOnTop:!1,position:"bottom-center",theme:"colored"})]})},eo=!0},55484:function(e){e.exports={root:"ErrorBoundary_root__HDn02",error:"ErrorBoundary_error__v7XJC"}},9008:function(e,i,t){e.exports=t(42636)}},function(e){e.O(0,[8065,3913,1358,3308,9774,2888,179],function(){return e(e.s=96643)}),_N_E=e.O()}]); 2//# sourceMappingURL=about-750370662e38fa01.js.map
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.