PageSourceSearch

https://www.resida.app/_next/static/chunks/9615.912bd1ef76f8d134.js

js resida.app collected 2026-10-02 01:16:08 UTC 5,702 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9559,9615],{20054:(e,t,l)=>{l.r(t),l.d(t,{default:()=>y});var s=l(95155),a=l(12115),r=l(65229),n=l(35299);let c=(0,l(71847).A)("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);var i=l(21873),d=l(24546),x=l(24924),o=l(5218),h=l(20363);function y(e){let{open:t,onClose:l,onNeedFunds:y}=e;(0,o.K)(t);let{isAuthenticated:u}=(0,d.useAuthStore)(),[m,p]=(0,a.useState)([]),[f,g]=(0,a.useState)(!1),[j,b]=(0,a.useState)(1),[N,v]=(0,a.useState)(!1),[k,w]=(0,a.useState)(null);async function A(e){g(!0);try{var t,l,s,a,r,n;let c=await (0,x.aTb)({page:e,limit:20}),i=null!=(a=null!=(s=null==c||null==(t=c.data)?void 0:t.data)?s:null==c?void 0:c.data)?a:[],d=null!=(n=null!=(r=null==c||null==(l=c.data)?void 0:l.total)?r:null==c?void 0:c.total)?n:i.length;p(1===e?i:e=>[...e,...i]),v(d>20*e),b(e)}catch(t){1===e&&p([])}finally{g(!1)}}return((0,a.useEffect)(()=>{t&&u&&A(1)},[t,u]),(0,a.useEffect)(()=>{t||w(null)},[t]),t)?(0,s.jsxs)("div",{className:"fixed inset-0 z-[90] flex",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/30",onClick:l}),(0,s.jsx)("div",{className:"relative ml-auto w-full max-w-lg bg-[#F0F4F9] h-full flex flex-col gw-panel-right",children:k?(0,s.jsx)(h.Ay,{offer:k,onBack:()=>w(null),onChanged:()=>A(1),onNeedFunds:y}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-5 border-b border-gray-100 shrink-0",children:[(0,s.jsx)("h2",{className:"font-bold text-gray-900",children:"My Offers"}),(0,s.jsx)("button",{onClick:l,className:"p-2 hover:bg-gray-100 rounded-full transition-colors",children:(0,s.jsx)(r.A,{className:"w-4 h-4 text-gray-500"})})]}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto p-5",children:f&&0===m.length?(0,s.jsxs)("div",{className:"flex flex-col items-center py-16 text-gray-400",children:[(0,s.jsx)(n.A,{className:"w-6 h-6 animate-spin mb-3"}),(0,s.jsx)("p",{className:"text-sm",children:"Loading…"})]}):0===m.length?(0,s.jsxs)("div",{className:"flex flex-col items-center py-16 text-center text-gray-400",children:[(0,s.jsx)("div",{className:"w-14 h-14 bg-[#F1F3F4] rounded-full flex items-center justify-center mb-3",children:(0,s.jsx)(c,{className:"w-7 h-7 text-gray-200"})}),(0,s.jsx)("p",{className:"text-sm font-semibold text-gray-700 mb-1",children:"No offers yet"}),(0,s.jsx)("p",{className:"text-xs text-gray-400",children:"Browse properties for sale and make an offer."})]}):(0,s.jsxs)("div",{className:"space-y-3",children:[m.map(e=>{var t,l,a,r;let n=null!=(l=h.nR[null==(t=e.status)?void 0:t.toUpperCase()])?l:h.nR.PENDING,c=n.icon;return(0,s.jsx)("button",{onClick:()=>w(e),className:"w-full text-left bg-white ring-1 ring-black/5 rounded-[28px] p-4 hover:border-gray-300 hover:shadow-sm transition-all",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"w-14 h-14 rounded-xl shrink-0 ".concat(n.bg," flex items-center justify-center"),children:(0,s.jsx)(c,{className:"w-6 h-6 ".concat(n.text)})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-gray-900 truncate",children:null!=(a=e.property_name)?a:"Property"}),(0,s.jsx)("span",{className:"shrink-0 px-2 py-0.5 rounded-full text-[10px] font-bold uppercase tracking-wider border ".concat(n.bg," ").concat(n.text," ").concat(n.border),children:n.label})]}),(e.property_address||e.property_location)&&(0,s.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,s.jsx)(i.A,{className:"w-3 h-3 text-gray-400 shrink-0"}),(0,s.jsx)("span",{className:"text-xs text-gray-500 truncate",children:null!=(r=e.property_address)?r:e.property_location})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,s.jsx)("p",{className:"text-xs text-gray-400",children:(0,h.qw)(e.created_at)}),(0,s.jsxs)("div",{className:"text-right",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-gray-900",children:(0,h.Sc)(e.offered_price)}),e.counter_price&&(0,s.jsxs)("p",{className:"text-[10px] text-purple-600",children:["Counter: ",(0,h.Sc)(e.counter_price)]})]})]})]})]})},e.id)}),N&&(0,s.jsxs)("button",{onClick:()=>A(j+1),disabled:f,className:"w-full flex items-center justify-center gap-2 border border-gray-200 hover:border-gray-900 text-gray-900 font-semibold py-2.5 rounded-xl text-sm transition-colors disabled:opacity-50",children:[f&&(0,s.jsx)(n.A,{className:"w-4 h-4 animate-spin"}),"Load more"]})]})})]})})]}):null}},37107:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(71847).A)("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}
1]])},78874:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(71847).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},89559:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(71847).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},93499:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(71847).A)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])}}]);

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.