PageSourceSearch

https://buyrightborrowsmart.com/assets/Reviews-DNBhQrit.js

js buyrightborrowsmart.com collected 2026-10-09 23:59:54 UTC 9,524 bytes, 1 lines download raw bytes

1import{r as i,j as e,t as b,S as R,L as g,A as y}from"./index-DJ_gFdAj.js";import{S as u}from"./star-MQrRhDsl.js";import{S as j}from"./search-Q3S-DC2C.js";const N=240,E={google:"Google",apple:"Apple Podcasts",spotify:"Spotify"};function v(s){if(!s)return"";const t=typeof s=="string"?new Date(s):s;return isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{month:"short",year:"numeric"})}function A(s){const t=E[s.source]??s.source;if(s.source==="apple"||s.source==="spotify")return`${t} · listener`;if(s.source==="google"){if(s.owner==="josh")return`${t} · mortgage client`;if(s.owner==="jeb")return`${t} · real estate client`;if(s.business)return`${t} · ${s.business} client`}return t}function S({review:s}){const[t,r]=i.useState(!1),o=s.text??"",l=o.length>N;return e.jsxs("div",{"data-loc":"client/src/components/ReviewCard.tsx:55",className:"h-full flex flex-col rounded-2xl bg-white p-5 border border-[#EAE1D0] shadow-sm",children:[e.jsx("div",{"data-loc":"client/src/components/ReviewCard.tsx:56",className:"flex gap-0.5 mb-2.5",role:"img","aria-label":`${s.rating} out of 5 stars`,children:[...Array(s.rating)].map((c,n)=>e.jsx(u,{"data-loc":"client/src/components/ReviewCard.tsx:58",className:"w-3.5 h-3.5 fill-current",style:{color:"var(--brand-gold)"},"aria-hidden":!0},n))}),o&&e.jsxs("div",{"data-loc":"client/src/components/ReviewCard.tsx:62",className:"flex-1",children:[e.jsx("p",{"data-loc":"client/src/components/ReviewCard.tsx:63",className:`text-[13px] leading-relaxed ${t?"":"line-clamp-6"}`,style:{color:"#211A12"},children:o}),l&&e.jsx("button",{"data-loc":"client/src/components/ReviewCard.tsx:67",onClick:()=>r(c=>!c),className:"mt-1.5 text-[11px] font-bold hover:underline",style:{color:"#7A5E08"},children:t?"Show less":"Read full review"})]}),e.jsxs("div",{"data-loc":"client/src/components/ReviewCard.tsx:77",className:"mt-3 pt-3 border-t border-[#EAE1D0]",children:[e.jsx("p",{"data-loc":"client/src/components/ReviewCard.tsx:78",className:"font-semibold text-xs",style:{color:"#211A12"},children:s.reviewerName}),e.jsxs("p",{"data-loc":"client/src/components/ReviewCard.tsx:79",className:"text-[11px]",style:{color:"#6E6253"},children:[A(s),v(s.reviewedAt)?` · ${v(s.reviewedAt)}`:""]})]})]})}const C="https://podcasts.apple.com/us/podcast/id1611226020?action=write-review",k="https://open.spotify.com/show/3Ho4sTORqrLYlkBwWUkSBA",x=48;function P(){const[s,t]=i.useState(""),[r,o]=i.useState(""),[l,c]=i.useState(0),n=i.useRef(void 0);i.useEffect(()=>()=>clearTimeout(n.current),[]);const w=a=>{t(a),c(0),clearTimeout(n.current),n.current=setTimeout(()=>o(a),400)},{data:m,isLoading:f}=b.reviews.list.useQuery({limit:x,offset:l*x,search:r||void 0,withTextOnly:!0}),h=m?.items??[],d=m?.stats?.count??0;return e.jsxs("div",{"data-loc":"client/src/pages/Reviews.tsx:39",className:"min-h-screen",style:{backgroundColor:"#FAF6EE"},children:[e.jsx(R,{"data-loc":"client/src/pages/Reviews.tsx:40",title:"Reviews",description:"Verified 5-star reviews from the buyers and homeowners Jeb Smith and Josh Lewis have helped finance and buy their homes.",canonicalPath:"/reviews"}),e.jsxs("div",{"data-loc":"client/src/pages/Reviews.tsx:47",style:{backgroundColor:"#1A140F"},className:"relative overflow-hidden py-16 px-4",children:[e.jsx("span",{"data-loc":"client/src/pages/Reviews.tsx:48",className:"grain-overlay","aria-hidden":!0}),e.jsxs("div",{"data-loc":"client/src/pages/Reviews.tsx:49",className:"container relative text-center max-w-3xl mx-auto",children:[e.jsx("div",{"data-loc":"client/src/pages/Reviews.tsx:50",className:"flex justify-center gap-0.5 mb-4","aria-hidden":"true",children:[...Array(5)].map((a,p)=>e.jsx(u,{"data-loc":"client/src/pages/Reviews.tsx:52",className:"w-7 h-7 fill-current",style:{color:"var(--brand-gold)"}},p))}),e.jsx("h1",{"data-loc":"client/src/pages/Reviews.tsx:55",className:"text-3xl md:text-5xl font-black text-white mb-3",style:{fontFamily:"Montserrat, sans-serif"},children:d>0?`${d}+ Verified Reviews`:"Verified Reviews"}),e.jsx("p",{"data-loc":"client/src/pages/Reviews.tsx:58",className:"text-white/70 text-lg",children:"From the buyers and homeowners Jeb and Josh have helped finance and buy their homes — plus listeners of the show."})]})]}),e.jsx("div",{"data-loc":"client/src/pages/Reviews.tsx:65",className:"border-b border-[#
1EAE1D0] py-8 px-4",style:{backgroundColor:"#FAF6EE"},children:e.jsxs("div",{"data-loc":"client/src/pages/Reviews.tsx:66",className:"container relative max-w-3xl mx-auto text-center",children:[e.jsx("h2",{"data-loc":"client/src/pages/Reviews.tsx:67",className:"text-xl md:text-2xl font-black mb-2",style:{color:"#211A12",fontFamily:"Montserrat, sans-serif"},children:"Got value from the show? Leave a review."}),e.jsx("p",{"data-loc":"client/src/pages/Reviews.tsx:70",className:"text-sm mb-5",style:{color:"#6E6253"},children:"Reviews help other buyers find us, and it takes about 30 seconds."}),e.jsxs("div",{"data-loc":"client/src/pages/Reviews.tsx:73",className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsx("a",{"data-loc":"client/src/pages/Reviews.tsx:74",href:C,target:"_blank",rel:"noopener noreferrer",className:"btn-gold text-sm px-6 py-3 justify-center",children:"Review on Apple Podcasts →"}),e.jsx("a",{"data-loc":"client/src/pages/Reviews.tsx:77",href:k,target:"_blank",rel:"noopener noreferrer",className:"text-sm px-6 py-3 rounded-[10px] font-semibold flex items-center justify-center gap-2 border-2",style:{borderColor:"#211A12",color:"#211A12"},children:"Rate on Spotify →"})]})]})}),e.jsxs("div",{"data-loc":"client/src/pages/Reviews.tsx:91",className:"container py-12","data-reveal":!0,children:[e.jsxs("div",{"data-loc":"client/src/pages/Reviews.tsx:93",className:"relative max-w-md mx-auto mb-10",children:[e.jsx(j,{"data-loc":"client/src/pages/Reviews.tsx:94",className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-[#9C8E7B]"}),e.jsx("input",{"data-loc":"client/src/pages/Reviews.tsx:95",type:"text",placeholder:"Search reviews (e.g. refinance, first home, VA)...","aria-label":"Search reviews",value:s,onChange:a=>w(a.target.value),className:"w-full pl-11 pr-4 py-3 rounded-2xl bg-white border border-[#EAE1D0] text-sm focus:border-[#B0860B]"})]}),f?e.jsx("div",{"data-loc":"client/src/pages/Reviews.tsx:106",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:[...Array(12)].map((a,p)=>e.jsx("div",{"data-loc":"client/src/pages/Reviews.tsx:108",className:"rounded-2xl bg-white border border-[#EAE1D0] animate-pulse h-44"},p))}):h.length>0?e.jsx("div",{"data-loc":"client/src/pages/Reviews.tsx:112",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 items-stretch",children:h.map(a=>e.jsx(S,{"data-loc":"client/src/pages/Reviews.tsx:114",review:a},a.id))}):e.jsx("p",{"data-loc":"client/src/pages/Reviews.tsx:118",className:"text-center py-12",style:{color:"#6E6253"},children:r?`No reviews matching "${r}".`:"Reviews loading shortly."}),!r&&d>x&&e.jsxs("div",{"data-loc":"client/src/pages/Reviews.tsx:125",className:"flex items-center justify-center gap-3 mt-10",children:[e.jsx("button",{"data-loc":"client/src/pages/Reviews.tsx:126",onClick:()=>c(a=>Math.max(0,a-1)),disabled:l===0,className:"px-4 py-2 rounded-[10px] border border-[#EAE1D0] text-sm font-medium disabled:opacity-40 hover:bg-white transition-colors",children:"Previous"}),e.jsxs("span",{"data-loc":"client/src/pages/Reviews.tsx:133",className:"text-sm",style:{color:"#6E6253"}
1,children:["Page ",l+1," of ",Math.ceil(d/x)]}),e.jsx("button",{"data-loc":"client/src/pages/Reviews.tsx:136",onClick:()=>c(a=>a+1),disabled:(l+1)*x>=d,className:"px-4 py-2 rounded-[10px] border border-[#EAE1D0] text-sm font-medium disabled:opacity-40 hover:bg-white transition-colors",children:"Next"})]}),e.jsx("p",{"data-loc":"client/src/pages/Reviews.tsx:146",className:"text-center text-xs mt-8",style:{color:"#6E6253"},children:"Reviews are imported from verified Google Business Profile reviews. Individual results vary."}),e.jsxs("div",{"data-loc":"client/src/pages/Reviews.tsx:151",className:"relative overflow-hidden mt-14 rounded-2xl p-10 text-center",style:{background:"linear-gradient(135deg, #1A140F, #2A211A)"},children:[e.jsx("span",{"data-loc":"client/src/pages/Reviews.tsx:152",className:"grain-overlay","aria-hidden":!0}),e.jsx("p",{"data-loc":"client/src/pages/Reviews.tsx:153",className:"eyebrow mb-3 eyebrow--dark",children:"Your move"}),e.jsx("h2",{"data-loc":"client/src/pages/Reviews.tsx:156",className:"text-3xl md:text-4xl font-black text-white mb-4",style:{fontFamily:"Montserrat, sans-serif"},children:"Ready to get the same straight answers?"}),e.jsx("p",{"data-loc":"client/src/pages/Reviews.tsx:159",className:"text-white/70 mb-8 max-w-xl mx-auto",children:"Build your Roadmap and work directly with Josh and the team, or start with the free Blueprint workshop."}),e.jsxs("div",{"data-loc":"client/src/pages/Reviews.tsx:162",className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(g,{"data-loc":"client/src/pages/Reviews.tsx:163",href:"/roadmap",className:"btn-gold text-base px-8 py-3.5",children:["Build My Roadmap ",e.jsx(y,{"data-loc":"client/src/pages/Reviews.tsx:164",className:"w-4 h-4"})]}),e.jsx(g,{"data-loc":"client/src/pages/Reviews.tsx:166",href:"/blueprint",className:"text-base px-8 py-3.5 rounded-[10px] font-semibold text-white",style:{backgroundColor:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.2)"},children:"Free Workshop →"})]})]})]})]})}export{P 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.