PageSourceSearch

https://www.theatlas.com/assets/SavedPropertiesPage-BGOYD9nt.js

js theatlas.com collected 2026-10-02 02:33:03 UTC 3,813 bytes, 1 lines download raw bytes

1import{r as b,j as s,aw as d,E as j,H as v,az as w,as as m}from"./index-C8_YkK9q.js";import{u as p}from"./useSavedProperties-Bh_6vgER.js";import{a as C,P}from"./PropertyCardSubject2-CK-NSy4b.js";import{P as L}from"./PropertyCardCash-vJky_sUD.js";import{R as N}from"./refresh-cw-BQLHYT79.js";import"./code-square-jBJvxX6a.js";const B=()=>{const{savedProperties:h,isLoading:x,refetch:u}=p(),[t,f]=b.useState(""),g=()=>{const e=window.location.hostname.replace("admin.","");window.open(`${window.location.protocol}//${e}/feed`,"_blank")};if(x)return s.jsx(d,{children:s.jsx(j,{title:"Loading Saved Properties",description:"Please wait while we load your saved properties..."})});const o=h.filter(e=>{var a,i,n,r;return((a=e.address)==null?void 0:a.toLowerCase().includes(t.toLowerCase()))||((i=e.city)==null?void 0:i.toLowerCase().includes(t.toLowerCase()))||((n=e.state)==null?void 0:n.toLowerCase().includes(t.toLowerCase()))||((r=e.zip_code)==null?void 0:r.toLowerCase().includes(t.toLowerCase()))});return s.jsxs(d,{children:[s.jsxs(v,{children:[s.jsx("title",{children:"The Atlas - Saved Properties"}),s.jsx("meta",{name:"description",content:"Browse your saved properties on The Atlas."})]}),s.jsxs("div",{className:"mb-6 flex flex-wrap  items-center justify-between gap-4",children:[s.jsx("h1",{className:"text-2xl font-bold text-base-content",children:"Saved Properties"}),s.jsxs("div",{className:"flex space-x-3",children:[s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:s.jsx(w,{size:16,className:"text-base-content/70"})}),s.jsx("input",{type:"text",placeholder:"Search properties...",className:"block pl-10 pr-3 py-2 bg-base-100 border rounded-md text-sm text-base-content placeholder-neutral-400 focus:outline-hidden focus:ring-1",value:t,onChange:e=>f(e.target.value)})]}),s.jsx(m,{variant:"outline",size:"sm",leftIcon:s.jsx(N,{size:16}),onClick:()=>u(),children:"Refresh"})]})]}),o.length===0?s.jsxs("div",{className:"bg-base-100 rounded-lg p-10 text-center shadow-md",children:[s.jsx("h3",{className:"text-xl font-medium text-base-content mb-2",children:"No saved properties found"}),t?s.jsx("p",{className:"text-base-content/80",children:"No properties match your search criteria. Try different keywords or clear your search."}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-base-content/80 mb-4",children:"You haven't saved any properties yet. Browse listings and click the heart icon to save properties you're interested in."}),s.jsx(m,{variant:"primary",onClick:g,children:"View Listings"})]})]}):s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map(e=>{var i,n,r,c,l;const a={id:e.id,image:"",price:e.price||0,address:e.address||"",title:e.title||"",location:`${e.city}, ${e.state}`,bedrooms:e.bedrooms||0,bathrooms:e.bathrooms||0,square_feet:e.square_feet||0,financing_type:e.financing_type||"",entry_fee:((i=e.entry_fee)==null?void 0:i.toString())||"0",arv:e.arv||0,rehab_cost:e.rehab_cost||0,piti_taxes:e.piti_taxes||0,piti_insurance:e.piti_insurance||0,hoa_fee:e.hoa_fee||0,interestRate:e.interest_rate||0,interest_rate:e.interest_rate||0,balloon:e.balloon||0,featuredImage:((r=(n=e.property_images)==null?void 0:n.find(_=>_.is_featured))==null?void 0:r.url)||((l=(c=e.property_images)==null?void 0:c[0])==null?void 0:l.url)||"",city:e.city||"",state:e.state||"",zip_code:e.zip_code||"",piti_principal:e.piti_principal||0,piti_interest:e.piti_interest||0,mortgage_balance:e.mortgage_balance||0,monthlyPayment:(e.piti_principal||0)+(e.piti_interest||0),is_saved:!0}
1;return e.financing_type==="Subject-To"?s.jsx(C,{property:a},e.id):e.financing_type==="Cash"?s.jsx(L,{property:a},e.id):s.jsx(P,{property:a},e.id)})})]})};export{B as default};

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.