PageSourceSearch

https://portal.heritageproperty.com/assets/public-DRjDU9t-.js

js heritageproperty.com collected 2026-09-28 05:56:00 UTC 5,195 bytes, 3 lines download raw bytes

1import{u as W,r as l,j as t,S as k,q as z,ba as F,bb as M,bc as q,bd as Y,F as P,aN as _}from"./elements-5kxJS_4j.js";import{C as G}from"./CustomContent-CcAnhb4u.js";import{u as U}from"./useAuthorization-XS6cSJ0I.js";import{u as $}from"./useBanner-B9a9zq1p.js";import{u as J}from"./useCustomContent-DI_9OCLI.js";import{u as K}from"./useLayoutContext-SRgr9BCN.js";import{u as Q}from"./useLaunchDarklyReady-CaQ8ROVM.js";import{u as V}from"./useRedesign-xeayEwR4.js";import{x as X,j as y,t as Z}from"./index-CtCeyryw.js";import"./index-BSR_b3JY.js";import"./grids-DGmfp9GI.js";import"./startOfDay-AazlW55I.js";const S=`<p class="text-input-fg text-xl leading-relaxed">
2Discover what's happening in your community, access important documents instantly, and handle homeowner tasks efficiently. From dues payments and maintenance requests to community announcements - your gateway to a more organized, informed homeownership experience.
3</p>`,he={title:"Welcome, Neighbor!",showPropertySelector:!1,showAi:!0};function ge(){const o=X(),{isLoggedIn:a}=U(),{t:m}=W(),{setPageTitle:u}=K(),p=y(e=>e.userSettings),j=p==null?void 0:p.landingPageHtml,{homeLandingPage:R}=Z(),H=Q(),d=$(),[v,h]=l.useState({ready:!1,error:!1}),w=V();l.useEffect(()=>{w||o("/login")},[w,o]);const B=J("Login","Home_v2")||S,L=y(e=>e.settingsLoading),I=y(({userSettings:e,selectedAssociationId:n})=>{var s,r;return((r=(s=e==null?void 0:e.associations)==null?void 0:s.find(({id:x})=>x===n))==null?void 0:r.companyName)??(e==null?void 0:e.companyName)}),A=y(({userSettings:e,selectedAssociationId:n})=>{var i,f;const s=(i=e==null?void 0:e.associations)==null?void 0:i.find(({id:c})=>c===n),r=(s==null?void 0:s.pages)||(e==null?void 0:e.pages);return((f=r==null?void 0:r.find(({pageName:c})=>c==null?void 0:c.toLowerCase().includes("home")))==null?void 0:f.pageTitle)||m("main.public.welcomeToYourAssociation")});l.useEffect(()=>{a&&o("/dashboard")},[a,o]),l.useEffect(()=>(u("Welcome, Neighbor!"),()=>{u("")}),[u]),l.useEffect(()=>{if(!d){h({ready:!0,error:!1});return}h({ready:!1,error:!1});let e=!1;const n=new Image;return n.decoding="async",n.src=d,n.onload=()=>{e||h({ready:!0,error:!1})},n.onerror=()=>{e||h({ready:!0,error:!0})},()=>{e=!0,n.onload=null,n.onerror=null,n.src=""}},[d]);const E=!!(d&&!v.error),N=l.useRef(null),g=l.useRef(null),[T,D]=l.useState(0);l.useEffect(()=>()=>{var e;(e=g.current)==null||e.disconnect(),g.current=null},[j]);const O=()=>{var x;const e=N.current,n=e==null?void 0:e.contentDocument;if(!n)return;const s=()=>{var f,c;const i=Math.max(((f=n.documentElement)==null?void 0:f.scrollHeight)??0,((c=n.body)==null?void 0:c.scrollHeight)??0);D(C=>C===i?C:i)};s(),(x=g.current)==null||x.disconnect();const r=new ResizeObserver(s);n.documentElement&&r.observe(n.documentElement),n.body&&r.observe(n.body),g.current=r,n.querySelectorAll("img").forEach(i=>{i.complete||(i.addEventListener("load",s,{once:!0}),i.addEventListener("error",s,{once:!0}))})};return a?null:!!p&&!L&&H?j&&R?t.jsx("iframe",{ref:N,srcDoc:j,title:"Landing page",onLoad:O,sandbox:"allow-same-origin allow-top-navigation-by-user-activation",referrerPolicy:"no-referrer",style:{width:"100%",border:0,display:"block",height:T?`${T}px`:"0"}}):d&&!v.ready?null:t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"mx-auto px-8 py-10 mobile:py-24 max-w-[1400px]",children:[t.jsx(ee,{companyName:I}),t.jsxs("div",{className:z("grid grid-cols-2 max-tablet:grid-cols-1 gap-16",!E&&"grid-cols-1"),children:[t.jsxs("div",{className:"flex flex-col overflow-hidden",children:[t.jsx(te,{children:A}),t.jsx(G,{content:B})]}),E&&t.jsx(ne,{bannerUrl:d,settingsLoading:L})]})]}),t.jsxs("div",{className:"w-full px-20 max-tablet:px-8 bg-base-header py-28 grid grid-cols-4 max-mobile:grid-cols-2 gap-8",children:[t.jsx(b,{icon:F,title:"Peace of Mind",subtext:"We've Got You Covered"}),t.jsx(b,{icon:M,title:"Life Made Easy",subtext:"Handle Everything Online"}),t.jsx(b,{icon:q,title:"Modern Living",subtext:"Tech That Actually Works"}),t.jsx(b,{icon:Y,title:"We Care",subtext:"Your Home Is Our Priority"})]})]}):t.jsx("div",{className:"w-full min-h-[50vh] flex items-center justify-center",children:t.jsx(k,{})})}const ee=({companyName:o})=>o?t.jsxs("div",{className:"flex gap-2 py-2 px-4 items-center w-fit text-sm rounded-full text-base-fg bg-blue-50",children:[t.jsx(P,{icon:_}),t.jsx("span",{className:"font-medium",children:o})]}):null,te=({children:o})=>{const a=o.trim().split(" "),m=a.pop(),u=a.join(" ");return t.jsxs("h1",{className:"my-6 text-5xl mobile:text-6xl font-bold text-base-header",children:[u," ",t.jsx("span",{children:m})]})},ne=({bannerUrl:o,settingsLoading:a})=>!o&&!a?null:t.jsx("div",{children:a?t.jsx("div",{className:"min-h-[548px] max-h-[548px] w-[30vw] max-w-[600px] mb-20 rounded-xl"}):t.jsx("img",{src:o??"",width:548,className:"rounded-xl max-w-full max-h-[548px]",alt:"banner"})}),b=({title:o,subtext:a,icon:m})=>t.jsxs("div",{className:"flex flex-col gap-2 items-center text-input-bg",children:[t.jsx(P,{icon:m,size:"2x",className:"opacity-80"}),t.jsx("h1",{className:"text-3xl font-bold text-center",children:o}),t.jsx("p",{className:"text-center opacity-80",children:a})]});
3export{ge as Component,he as handle};

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.