1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,5488,69393,e=>{"use strict";var t=e.i(30332),s=e.i(47472);function r({percent:e,height:r=4,animated:i=!0,showLabel:a=!1}){let[l,n]=(0,s.useState)(0),o=Math.min(100,Math.max(0,e)),d=e>100;return(0,s.useEffect)(()=>{let e=setTimeout(()=>n(o),50);return()=>clearTimeout(e)},[o]),(0,t.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,t.jsx)("div",{className:"w-full overflow-hidden",style:{height:`${r}px`,background:"#EBEBEB",borderRadius:"9999px"},role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,children:(0,t.jsx)("div",{style:{width:`${l}%`,height:"100%",background:"linear-gradient(90deg, #FF385C 0%, #FF6B81 100%)",borderRadius:"9999px",transition:i?"width 600ms ease-out":"none"}})}),a&&d&&(0,t.jsx)("span",{className:"text-xs font-semibold text-[#FF385C]",children:"Overfunded!"})]})}function i({label:e,variant:s="neutral",size:r="sm"}){return(0,t.jsx)("span",{className:`inline-flex items-center font-semibold rounded-[9999px] tracking-wide uppercase ${{primary:"bg-[#FFF0F3] text-[#FF385C]",success:"bg-[#E6F9E7] text-[#008A05]",warning:"bg-[#FFF4E5] text-[#E07912]",error:"bg-[#FFF0ED] text-[#C13515]",neutral:"bg-[#EBEBEB] text-[#717171]"}[s]} ${{sm:"text-[10px] px-2 py-0.5",md:"text-xs px-3 py-1"}[r]}`,children:e})}function a({status:e}){return"active"===e?(0,t.jsx)(i,{label:"Active",variant:"success"}):"completed_funded"===e?(0,t.jsx)(i,{label:"Completed â Winner Selected",variant:"primary"}):(0,t.jsx)(i,{label:"Completed â Yield Raffle",variant:"neutral"})}function l(){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 bg-white rounded-[9999px] px-2 py-0.5 text-[10px] font-semibold text-[#008A05] shadow-[0_1px_2px_rgba(0,0,0,0.08)]",children:[(0,t.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:[(0,t.jsx)("circle",{cx:"5",cy:"5",r:"4.5",fill:"#008A05"}),(0,t.jsx)("path",{d:"M3 5l1.5 1.5L7 3.5",stroke:"white",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})]}),"Verified"]})}e.s(["default",()=>r],5488),e.s(["RaffleStatusBadge",()=>a,"VerifiedBadge",()=>l],69393)},86125,e=>{"use strict";var t=e.i(30332),s=e.i(47472),r=e.i(11363),i=e.i(667),a=e.i(23019),l=e.i(5488),n=e.i(69393);function o({raffle:e,isDeposited:o}){let[d,c]=(0,s.useState)(!1),x=(0,a.calcPercent)(e.totalYieldEarned,e.targetValueUSD),p=e.property.images[0],[h,m]=(0,s.useState)((0,a.formatTimeLeft)(e.expiresAt));return(0,s.useEffect)(()=>{if("active"!==e.status)return;let t=setInterval(()=>{m((0,a.formatTimeLeft)(e.expiresAt))},1e3);return()=>clearInterval(t)},[e.expiresAt,e.status]),(0,t.jsxs)(r.default,{href:`/raffle/${e.id}`,className:"group block rounded-[16px] border border-[#DDDDDD] overflow-hidden bg-white cursor-pointer",style:{boxShadow:"0 2px 8px rgba(0,0,0,0.10)",transition:"transform 200ms ease-out, box-shadow 200ms ease-out"},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-2px)",e.currentTarget.style.boxShadow="0 4px 16px rgba(0,0,0,0.12)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.10)"},children:[(0,t.jsxs)("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"4/3"},children:[(!p||!d)&&(0,t.jsx)("div",{className:"absolute inset-0 bg-[#F7F7F7] flex items-center justify-center",children:(0,t.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:(0,t.jsx)("path",{d:"M24 8L40 22V40H32V28H16V40H8V22L24 8Z",fill:"#DDDDDD"})})}),p&&(0,t.jsx)(i.default,{src:p,alt:e.property.title,fill:!0,className:"object-cover",style:{opacity:+!!d,transition:"opacity 300ms ease, transform 200ms ease-out",transform:"scale(1)"},onLoad:()=>c(!0),onMouseEnter:e=>{e.currentTarget.style.transform="scale(1.03)"},onMouseLeave:e=>{e.currentTarget.style.transform="scale(1)"},sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw"}),(0,t.jsx)("div",{className:"absolute top-3 left-3",children:(0,t.jsx)(n.RaffleStatusBadge,{status:e.status})}),(0,t.jsx)("div",{className:"absolute top-3 right-3",children:(0,t.jsx)(n.VerifiedBadge,{})}),o&&(0,t.jsx)("div",{className:"absolute bottom-3 right-3",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-white bg-[#008A05] rounded-full px-2.5 py-1 shadow-sm",children:[(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,t.jsx)("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"Deposited"]})}
1),e.isOverfunded&&(0,t.jsx)("div",{className:"absolute bottom-3 left-3",children:(0,t.jsx)("span",{className:"text-xs font-semibold text-white bg-[#FF385C] rounded-full px-2 py-0.5",children:"Overfunded!"})})]}),(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("h3",{className:"font-semibold text-[#222222] line-clamp-2 mb-1",style:{fontSize:"20px",lineHeight:"1.4"},children:e.property.title}),(0,t.jsxs)("p",{className:"text-sm text-[#717171] mb-3",children:[e.property.location.city,", ",e.property.location.stateProvince," · ",e.property.bedrooms>0?`${e.property.bedrooms} bed \xb7 ${e.property.bathrooms} bath`:`${e.property.bathrooms} bath \xb7 Studio`]}),(0,t.jsxs)("div",{className:"border-t border-[#DDDDDD] pt-3 flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("span",{className:"text-sm font-bold text-[#222222]",children:["Target: ",(0,a.formatUSD)(e.targetValueUSD)]}),(0,t.jsxs)("span",{className:"text-xs text-[#717171]",children:[x,"% yield funded"]})]}),(0,t.jsx)(l.default,{percent:x,height:4}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-xs text-[#717171]",children:[(0,t.jsxs)("span",{children:[e.depositorCount.toLocaleString()," depositors"]}),"active"===e.status?(0,t.jsx)("span",{className:"font-mono tabular-nums",children:"Expired"===h?h:`${h} left`}):e.winner?(0,t.jsxs)("span",{className:"text-[#008A05] font-semibold",children:["Winner: ",e.winner.displayName]}):(0,t.jsx)("span",{children:"Closed"})]})]})]})]})}e.s(["default",()=>o])},25673,e=>{"use strict";var t=e.i(30332),s=e.i(47472),r=e.i(23019);function i({expiresAt:e,isActive:i,className:a="",suffix:l=""}){let[n,o]=(0,s.useState)((0,r.formatTimeLeft)(e));return((0,s.useEffect)(()=>{if(!i)return;o((0,r.formatTimeLeft)(e));let t=setInterval(()=>{o((0,r.formatTimeLeft)(e))},1e3);return()=>clearInterval(t)},[e,i]),i)?(0,t.jsx)("span",{className:`font-mono tabular-nums ${a}`,children:"Expired"===n?n:`${n}${l}`}):(0,t.jsx)("span",{className:a,children:"Ended"})}e.s(["default",()=>i])},47497,e=>{"use strict";var t=e.i(30332),s=e.i(11363),r=e.i(667),i=e.i(23019),a=e.i(83467),l=e.i(25673);function n({raffles:e}){let s=e[0],r=e.slice(1,5);return(0,t.jsxs)("section",{className:"relative overflow-hidden bg-white",style:{padding:"56px 24px 48px"},children:[(0,t.jsxs)("svg",{className:"absolute top-0 left-0 pointer-events-none",width:"200",height:"260",viewBox:"0 0 200 260",fill:"none",children:[(0,t.jsx)("path",{d:"M-20 90C20 40 90 10 80 80C70 150 10 130 30 190C50 250 110 220 140 170",stroke:"#FF385C",strokeWidth:"8",strokeLinecap:"round",fill:"none",opacity:"0.7"}),(0,t.jsx)("path",{d:"M-40 50C10 10 60 -10 70 50C80 110 20 110 40 160",stroke:"#FF385C",strokeWidth:"5",strokeLinecap:"round",fill:"none",opacity:"0.3"})]}),(0,t.jsxs)("svg",{className:"absolute top-0 right-0 pointer-events-none",width:"200",height:"260",viewBox:"0 0 200 260",fill:"none",children:[(0,t.jsx)("path",{d:"M220 90C180 40 110 10 120 80C130 150 190 130 170 190C150 250 90 220 60 170",stroke:"#FF385C",strokeWidth:"8",strokeLinecap:"round",fill:"none",opacity:"0.7"}),(0,t.jsx)("path",{d:"M240 50C190 10 140 -10 130 50C120 110 180 110 160 160",stroke:"#FF385C",strokeWidth:"5",strokeLinecap:"round",fill:"none",opacity:"0.3"})]}),(0,t.jsxs)("div",{style:{maxWidth:"1200px",margin:"0 auto",position:"relative"},children:[(0,t.jsx)("h1",{className:"text-center text-[#1A1A1A]",style:{fontSize:"clamp(28px, 3.5vw, 44px)",fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.15,marginBottom:44},children:"Win a home. Keep your money."}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-[3fr_2fr] gap-6 items-start",children:[s&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"uppercase text-[#717171] mb-3",style:{fontSize:11,fontWeight:700,letterSpacing:"0.1em"},children:"Featured Raffle"}),(0,t.jsx)(o,{raffle:s})]}),r.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"uppercase text-[#717171] mb-3",style:{fontSize:11,fontWeight:700,letterSpacing:"0.1em"},children:"Active Now"}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-4",children:r.map(e=>(0,t.jsx)(d,{raffle:e},e.id))})]})]}),e.length>5&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 mt-10",children:[(0,t.jsx)("span",{className:"text-[#B0B0B0] select-none cursor-pointer hover:text-[#222]",children:"â¹"}),[1,2,3].map(e=>(0,t.jsx)("span",{className:"flex items-center justify-center rounded-full cursor-pointer select-none",style:{width:28,height:28,fontSize:13,fontWeight:600,background:1===e?"#1A1A1A":"transparent",color:1===e?"#fff":"#717171",border:1===e?"none":"1px solid #DDDDDD"},children:e},e)),(0,t.jsx)("span",{className:"text-[#B0B0B0] select-none cursor-pointer hover:text-[#222]",children:"âº"})]})]})]})}function o({raffle:e}){let n=(0,i.calcPercent)(e.totalYieldEarned,e.targetValueUSD),o=e.property.images[0];return(0,t.jsxs)(s.default,{href:`/raffle/${e.id}`,className:"group block rounded-2xl overflow-hidden bg-white border border-[#
1E8E8E8] hover:shadow-lg transition-shadow duration-200",children:[(0,t.jsxs)("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"16 / 10"},children:[(0,t.jsx)(r.default,{src:o,alt:e.property.title,fill:!0,className:"object-cover group-hover:scale-[1.02] transition-transform duration-300",sizes:"(max-width: 1024px) 100vw, 680px",priority:!0}),e.isOverfunded&&(0,t.jsx)("div",{className:"absolute bottom-4 left-4 text-white text-xs font-bold uppercase px-3 py-1.5 rounded",style:{background:"rgba(0,0,0,0.75)",letterSpacing:"0.04em"},children:"Overfunded"})]}),(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-full overflow-hidden border border-[#E0E0E0] flex-shrink-0",children:(0,t.jsx)("img",{src:(0,a.getAvatar)(e.seller.address),alt:e.seller.displayName,width:40,height:40,className:"w-full h-full object-cover"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"font-semibold text-[#1A1A1A] leading-snug line-clamp-2",style:{fontSize:17},children:e.property.title}),(0,t.jsx)("p",{className:"text-sm text-[#717171] mt-0.5",children:e.seller.displayName})]})]}),(0,t.jsx)(c,{size:18})]}),(0,t.jsx)("p",{className:"text-sm text-[#555] mt-3 line-clamp-2 leading-relaxed",children:e.property.description}),(0,t.jsxs)("div",{className:"flex items-center gap-3 mt-4 text-sm text-[#717171]",children:[(0,t.jsx)(x,{text:(0,t.jsx)(l.default,{expiresAt:e.expiresAt,isActive:"active"===e.status,suffix:" left"})}),(0,t.jsx)("span",{className:"text-[#D0D0D0]",children:"â¢"}),(0,t.jsxs)("span",{children:[(0,t.jsxs)("strong",{className:"text-[#1A1A1A]",children:[n,"%"]})," funded"]})]}),(0,t.jsxs)("div",{className:"flex gap-2 mt-3 flex-wrap",children:[(0,t.jsx)(p,{children:e.property.propertyType.charAt(0).toUpperCase()+e.property.propertyType.slice(1)}),(0,t.jsxs)(p,{children:[e.property.location.city,", ",e.property.location.stateProvince]})]})]})]})}function d({raffle:e}){let n=(0,i.calcPercent)(e.totalYieldEarned,e.targetValueUSD),o=e.property.images[0];return(0,t.jsxs)(s.default,{href:`/raffle/${e.id}`,className:"group block rounded-xl overflow-hidden bg-white border border-[#E8E8E8] hover:shadow-md transition-shadow duration-200",children:[(0,t.jsx)("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"4 / 3"},children:(0,t.jsx)(r.default,{src:o,alt:e.property.title,fill:!0,className:"object-cover group-hover:scale-[1.03] transition-transform duration-300",sizes:"260px"})}),(0,t.jsxs)("div",{className:"p-3",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)("div",{className:"w-6 h-6 rounded-full overflow-hidden border border-[#E0E0E0] flex-shrink-0",children:(0,t.jsx)("img",{src:(0,a.getAvatar)(e.seller.address),alt:e.seller.displayName,width:24,height:24,className:"w-full h-full object-cover"})}),(0,t.jsx)("p",{className:"text-xs font-semibold text-[#1A1A1A] line-clamp-2 leading-tight",children:e.property.title})]}),(0,t.jsx)(c,{size:14})]}),(0,t.jsx)("p",{className:"text-xs text-[#717171] mt-1 ml-8",children:e.seller.displayName}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mt-2 text-xs text-[#717171] ml-8",children:[(0,t.jsx)(x,{text:(0,t.jsx)(l.default,{expiresAt:e.expiresAt,isActive:"active"===e.status,suffix:" left"}),small:!0}),(0,t.jsx)("span",{className:"text-[#D0D0D0]",children:"â¢"}),(0,t.jsxs)("span",{children:[(0,t.jsxs)("strong",{className:"text-[#1A1A1A]",children:[n,"%"]})," funded"]})]})]})]})}function c({size:e}){return(0,t.jsx)("span",{className:"text-[#BBBBBB] hover:text-[#717171] flex-shrink-0 mt-0.5 transition-colors cursor-pointer",children:(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 18 18",fill:"none",children:(0,t.jsx)("path",{d:"M4 2h10a1 1 0 011 1v13l-6-3-6 3V3a1 1 0 011-1z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})})})}function x({text:e,small:s}){let r=s?10:13;return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsxs)("svg",{width:r,height:r,viewBox:"0 0 13 13",fill:"none",children:[(0,t.jsx)("circle",{cx:"6.5",cy:"6.5",r:"5.5",stroke:"currentColor",strokeWidth:"1.2"}),(0,t.jsx)("path",{d:"M6.5 3.5V6.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]}),e]})}function p({children:e}){return(0,t.jsx)("span",{className:"text-xs text-[#717171] border border-[#DDDDDD] rounded-full",style:{padding:"3px 10px"},children:e})}e.s(["default",()=>n])}]);
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.