PageSourceSearch

https://housesitmatch.com/static/js/ProfilePage.25d9fb48.chunk.js

js housesitmatch.com collected 2026-09-26 07:28:57 UTC 12,463 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1500],{3198:(e,t,i)=>{i.r(t),i.d(t,{AsideContent:()=>D,CustomUserFields:()=>x,DesktopReviews:()=>A,MainContent:()=>q,MobileReviews:()=>M,ProfilePageComponent:()=>F,ReviewsErrorMaybe:()=>S,default:()=>U});var l=i(72791),a=i(42789),r=i(47375),s=i(41418),n=i.n(s),o=i(6639),c=i(29305),m=i(73665),d=i(21102),u=i(35074),g=i(32997),v=i(18498),P=i(7414),_=i(46902),p=i(25863),E=i(60331),f=i(52745),w=i(67600),b=i(36963);const h={error:"ProfilePage_error__lv-Dr",aside:"ProfilePage_aside__hbbK9",asideContent:"ProfilePage_asideContent__ogpvS",avatar:"ProfilePage_avatar__VN2pe",avatarPlaceholder:"ProfilePage_avatarPlaceholder__q7UTw ProfilePage_avatar__VN2pe",mobileHeading:"ProfilePage_mobileHeading__n7OkF",editLinkMobile:"ProfilePage_editLinkMobile__flFfP",editLinkDesktop:"ProfilePage_editLinkDesktop__s5xiu",desktopHeading:"ProfilePage_desktopHeading__cD0xZ",longWord:"ProfilePage_longWord__keAMo",bio:"ProfilePage_bio__O9erI",listingsContainer:"ProfilePage_listingsContainer__08etX clearfix",listingsTitle:"ProfilePage_listingsTitle__mxP5O",withBioMissingAbove:"ProfilePage_withBioMissingAbove__ezkj+",listings:"ProfilePage_listings__y-eME",listing:"ProfilePage_listing__2Jg0G",mobileReviewsTitle:"ProfilePage_mobileReviewsTitle__fQQYB",mobileReviews:"ProfilePage_mobileReviews__RNAZk",desktopReviews:"ProfilePage_desktopReviews__RVs1y",desktopReviewsWrapper:"ProfilePage_desktopReviewsWrapper__okA8A",desktopReviewsTitle:"ProfilePage_desktopReviewsTitle__Z7q+X textLarge",desktopReviewsTabNav:"ProfilePage_desktopReviewsTabNav__9nyOF",sectionText:"ProfilePage_sectionText__Y+x9L",sectionHeading:"ProfilePage_sectionHeading__kJtIb p",text:"ProfilePage_text__hitBd",ingress:"ProfilePage_ingress__LCvXY p",sectionMultiEnum:"ProfilePage_sectionMultiEnum__tpnzt",sectionDetails:"ProfilePage_sectionDetails__o49C4",details:"ProfilePage_details__lPMpB",detailsRow:"ProfilePage_detailsRow__SPShb",detailLabel:"ProfilePage_detailLabel__zy8cb",buttonWrapper:"ProfilePage_buttonWrapper__x7mU1",ctaButton:"ProfilePage_ctaButton__SVR4p",icon:"ProfilePage_icon__j79Sn"},N=e=>{const{publicData:t,metadata:i,userFieldConfig:a,intl:r}=e;if(!t||!a)return null;const s=a.reduce(((e,l)=>{const{key:a,schemaType:s,enumOptions:n,userTypeConfig:o={},showConfig:c={}}=l,{limitToUserTypeIds:m,userTypeIds:d}=o,u=t.userType,v=!m||d.includes(u),{label:P,displayInProfile:_}=c,p=(0,g.oe)(t,a),E=(0,g.oe)(i,a),f=null!==p?p:E;if(_&&v&&null!==f){const t=e=>e?r.formatMessage({id:"ProfilePage.detailYes"}):r.formatMessage({id:"ProfilePage.detailNo"}),i=(e=>null===n||void 0===n?void 0:n.find((t=>e==="".concat(t.option))))(f);return"enum"===s?e.concat({key:a,value:null===i||void 0===i?void 0:i.label,label:P}):"boolean"===s?e.concat({key:a,value:t(f),label:P}):"long"===s?e.concat({key:a,value:f,label:P}):e}return e}),[]);return s.length>0?l.createElement("div",{className:h.sectionDetails},l.createElement(E.X6,{as:"h2",rootClassName:h.sectionHeading},l.createElement(c._H,{id:"ProfilePage.detailsTitle"})),l.createElement("ul",{className:h.details},s.map((e=>l.createElement("li",{key:e.key,className:h.detailsRow},l.createElement("span",{className:h.detailLabel},e.label),l.createElement("span",null,e.value)))))):null},k=e=>{const{text:t,heading:i,showAsIngress:a=!1}=e,r=a?h.ingress:h.text,s=(0,P.qO)(t,{linkify:!0,longWordMinLength:20,longWordClass:h.longWord,breakChars:"/"});return t?l.createElement("div",{className:h.sectionText},i?l.createElement(E.X6,{as:"h2",rootClassName:h.sectionHeading},i):null,l.createElement("p",{className:r},s)):null},y=e=>{const{heading:t,options:i,selectedOptions:a,showUnselectedOptions:r=!0}=e,s=r||(null===a||void 0===a?void 0:a.length)>0;return t&&i&&s?l.createElement("div",{className:h.sectionMultiEnum},l.createElement(E.X6,{as:"h2",rootClassName:h.sectionHeading},t),l.createElement(E.I$,{id:"ListingPage.amenities",options:i,selectedOptions:a,twoColumns:i.length>5,showUnselectedOptions:r})):null};var R=i(43331),C=i(96989),L=i(63432),T=i(94518),H=i(50055);const D=e=>{const{user:t,displayName:i,showLinkToProfileSettingsPage:a}=e;return l.createElement("div",{className:h.asideContent},l.createElement(E.Vt,{className:h.avatar,user:t,disableProfileLink:!0}),l.createElement(E.H2,{as:"h1",className:h.mobileHeading},i?l.createElement(c._H,{id:"ProfilePage.mobileHeading",values:{name:i}}):null),a?l.createElement(l.Fragment,null,l.createElement(E.RC,{className:h.editLinkMobile,name:"ProfileSettingsPage"},l.createElement(c._H,{id:"ProfilePage.editProfileLinkMobile"})),l.createElement(E.RC,{className:h.editLinkDesktop,name:"ProfileSettingsPage"},l.createElement(c._H,{id:"ProfilePage.editProfileLinkDesktop"}))):null)},S=e=>{const{queryReviewsError:t}=e;return t?l.createElement("p",{className:h.error},l.createElement(c._H,{id:"ProfilePage.loadingReviewsFailed"})):null},M=e=>{const{reviews:t,queryReviewsError:i,importedReviews:a}=e,r=t.filter((e=>e.attributes.type===m.Gj)),s=t.filter((e=>e.attributes.type===m.cv));return l.createElement("div",{className:h.mobileReviews},l.createElement(E.H4,{as:"h2",className:h.mobileReviewsTitle},l.createElement(c._H,{id:"ProfilePage.reviewsFromMyCustomersTitle",values:{count:r.length}})),l.createElement(S,{queryReviewsError:i}),l.createElement(E.Zv,{reviews:r,importedReviews:a}),l.createElement(E.H4,{as:"h2",className:h.mobileReviewsTitle},l.createElement(c._H,{id:"ProfilePage.reviewsAsACustomerTitle",values:{count:s.length}})),l.createElement(S,{queryReviewsError:i}),l.createElement(E.Zv,{reviews:s}))},A=e=>{const[t,i]=(0,l.useState)(m.Gj),{reviews:a,queryReviewsError:r,importedReviews:s}=e,n=a.filter((e=>e.attributes.type===m.Gj)),o=a.filter((e=>e.attributes.type===m.cv)),d=t===m.Gj,u=t===m.cv,g=[{text:l.createElement(E.X6,{as:"h3",rootClassName:h.desktopReviewsTitle},l.createElement(c._H,{id:"ProfilePage.reviewsFromMyCustomersTitle",values:{count:n.length}})),selected:d,onClick:()=>i(m.Gj)},{text:l.createElement(E.X6,{as:"h3",rootClassName:h.desktopReviewsTitle},l.createElement(c._H,{id:"ProfilePage.reviewsAsACustomerTitle",values:{count:o.length}})),selected:u,onClick:()=>i(m.cv)}];return l.createElement("div",{className:h.desktopReviews},l.createElement("div",{className:h.desktopReviewsWrapper},l.createElement(E.Q7,{className:h.desktopReviewsTabNav,tabs:g}),l.createElement(S,{queryReviewsError:r}),d?l.createElement(E.Zv,{reviews:n,importedReviews:s}):l.createElement(E.Zv,{reviews:o})))},x=e=>{const{publicData:t,metadata:i,userFieldConfig:a}=e,r=(0,g.pk)(t,i,a,"userType",(e=>{var t;return!1!==(null===e||void 0===e||null===(t=e.showConfig)||void 0===t?void 0:t.displayInProfile)}))||[];return l.createElement(l.Fragment,null,l.createElement(N,e),r.map((e=>{const{schemaType:t,...i}=e;return t===m.KP?l.createElement(y,i):t===m.d$?l.createElement(k,i):null})))},q=e=>{var t,i,a,r,s;const{userShowError:o,bio:m,displayName:d,listings:u,queryListingsError:g,reviews:v,queryReviewsError:_,publicData:p,metadata:f,userFieldConfig:w,isCurrentUser:b,intl:N,currentUser:k,profileUser:y}
1=e,D=u.filter((e=>e.attributes.publicData.listingType===T.Nm.house)),S=u.filter((e=>e.attributes.publicData.listingType===T.Nm.houseSitBooking)),q=u.length>0,F=!("undefined"!==typeof window&&(null===(t=window)||void 0===t?void 0:t.matchMedia))||(null===(i=window.matchMedia("(max-width: ".concat(768,"px)")))||void 0===i?void 0:i.matches),U=(0,C.m8)(k),B=(0,L.KI)(k),O=null===y||void 0===y||null===(a=y.attributes)||void 0===a||null===(r=a.profile)||void 0===r||null===(s=r.publicData)||void 0===s?void 0:s.reviews,W=()=>l.createElement("div",{className:h.buttonWrapper},B?U?l.createElement(E.RC,{name:"NewHouseSitListingPage",className:h.ctaButton},l.createElement(c._H,{id:"ProfileSettingsForm.addListingLink"}),l.createElement("img",{src:R.Z,className:h.icon})):l.createElement(E.RC,{name:"MembershipPlansPage",className:h.ctaButton,params:{accountType:(0,L.MH)(k)}},l.createElement(c._H,{id:"ProfileSettingsForm.addListingLink"}),l.createElement("img",{src:R.Z,className:h.icon})):null),I=!!m,Z=(0,P.qO)(m,{linkify:!0,longWordMinLength:20,longWordClass:h.longWord}),X=n()(h.listingsContainer,{[h.withBioMissingAbove]:!I});return o||g?l.createElement("p",{className:h.error},l.createElement(c._H,{id:"ProfilePage.loadingDataFailed"})):l.createElement("div",null,l.createElement("div",{className:"row gap10"},l.createElement(E.H2,{as:"h1",className:h.desktopHeading},l.createElement(c._H,{id:"ProfilePage.desktopHeading",values:{name:d}})),(0,L.Ak)(y)&&l.createElement("div",{className:"row gap5 ml10 mt20"},l.createElement("img",{style:{borderRadius:"8px"},src:H,alt:"verified",width:80,height:30}),l.createElement("span",{className:h.topbarLinkLabel,style:{whiteSpace:"nowrap",paddingBottom:"0"}},l.createElement(c._H,{id:"TopbarDesktop.byStripe"})))),I?l.createElement("p",{className:h.bio},Z):null,d?l.createElement(x,{publicData:p,metadata:f,userFieldConfig:w,intl:N}):null,b&&l.createElement(W,null),q?l.createElement(l.Fragment,null,l.createElement("div",{className:X},l.createElement(E.H4,{as:"h2",className:h.listingsTitle},l.createElement(c._H,{id:"ProfilePage.houseListings"})),l.createElement("ul",{className:h.listings},D.map((e=>l.createElement("li",{className:h.listing,key:e.id.uuid},l.createElement(E.dF,{listing:e,showAuthorInfo:!1})))))),l.createElement("div",{className:X},l.createElement(E.H4,{as:"h2",className:h.listingsTitle},l.createElement(c._H,{id:"ProfilePage.houseSitBookingListings"})),l.createElement("ul",{className:h.listings},S.map((e=>l.createElement("li",{className:h.listing,key:e.id.uuid},l.createElement(E.dF,{listing:e,showAuthorInfo:!1}))))))):null,F?l.createElement(M,{reviews:v,importedReviews:O,queryReviewsError:_}):l.createElement(A,{reviews:v,importedReviews:O,queryReviewsError:_}))},F=e=>{var t,i,a,r,s;const n=(0,o.mX)(),m=(0,c.YB)(),[g,P]=(0,l.useState)(!1);(0,l.useEffect)((()=>{P(!0)}),[]);const{scrollingDisabled:_,params:p,currentUser:N,useCurrentUser:k,userShowError:y,user:R,...C}=e,L=(null===(t=p.variant)||void 0===t?void 0:t.length)>0&&p.variant===d.I6,T=null===C||void 0===C||null===(i=C.location)||void 0===i?void 0:i.search;if(!!T&&"storefront"===(null===(a=new URLSearchParams(T))||void 0===a?void 0:a.get("mode")))return l.createElement(E.d9,{name:"LandingPage"});const H=L?null!=N||null!=y:null!=R||null!=y,S=(null===N||void 0===N?void 0:N.id)&&(null===N||void 0===N||null===(r=N.id)||void 0===r?void 0:r.uuid)===p.id,M=k?N:R,{bio:A,displayName:x,publicData:F,metadata:U}=(null===M||void 0===M||null===(s=M.attributes)||void 0===s?void 0:s.profile)||{},{userFields:B}=n.user,O=!0===n.accessControl.marketplace.private,W=N&&!(0,v.cQ)(N),I=O&&W,Z=(0,u.Jl)(y),X={name:x,marketplaceName:n.marketplaceName},j=m.formatMessage({id:"ProfilePage.schemaTitle"},X);return H?!L&&(0,u.XD)(y)?l.createElement(b.Z,{staticContext:e.staticContext}):!L&&(0,u.QW)(y)?l.createElement(E.d9,{name:"SignupPage",state:{from:"".concat(location.pathname).concat(location.search).concat(location.hash)}}):L||!I&&!Z?L&&g&&!S?!1===S?l.createElement(E.d9,{name:"ProfilePage",params:{id:null===N||void 0===N||null===(V=N.id)||void 0===V?void 0:V.uuid}}):null:!L&&!O||g?l.createElement(E.T3,{scrollingDisabled:_,title:j,schema:{"@context":"http://schema.org","@type":"ProfilePage",name:j}},l.createElement(E.i_,{sideNavClassName:h.aside,topbar:l.createElement(f.Z,null),sideNav:l.createElement(D,{user:M,showLinkToProfileSettingsPage:g&&S,displayName:x}),footer:l.createElement(w.Z,null)},l.createElement(q,Object.assign({bio:A,displayName:x,userShowError:y,publicData:F,metadata:U,userFieldConfig:B,isCurrentUser:g&&S,intl:m,profileUser:M,currentUser:N},C)))):null:l.createElement(E.d9,{name:"NoAccessPage",params:{missingAccessRight:d.hb}}):null;var V};F.defaultProps={currentUser:null,user:null,userShowError:null,queryListingsError:null,reviews:[],queryReviewsError:null};const U=(0,a.qC)((0,r.$j)((e=>{var t;const{currentUser:i}=e.user,{userId:l,userShowError:a,queryListingsError:r,userListingRefs:s,reviews:n,queryReviewsError:o}=e.ProfilePage,c=(0,p.EV)(e,[{type:"user",id:l}]),m=1===c.length?c[0]:null,d=(null===l||void 0===l?void 0:l.uuid)===(null===i||void 0===i||null===(t=i.id)||void 0===t?void 0:t.uuid)&&!(0,v.cQ)(i);return{scrollingDisabled:(0,_.uS)(e),currentUser:i,useCurrentUser:d,user:m,userShowError:a,queryListingsError:r,listings:(0,p.EV)(e,s),reviews:n,queryReviewsError:o}})))(F)}}]);
2//# sourceMappingURL=ProfilePage.25d9fb48.chunk.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.