(()=>{var e={};e.id=8905,e.ids=[8905],e.modules={72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},58281:(e,s,t)=>{"use strict";t.r(s),t.d(s,{GlobalError:()=>l.a,__next_app__:()=>m,originalPathname:()=>p,pages:()=>c,routeModule:()=>g,tree:()=>d}),t(7131),t(84500),t(49356),t(91884),t(90996);var a=t(30170),r=t(45002),o=t(83876),l=t.n(o),i=t(66299),n={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(n[e]=()=>i[e]);t.d(s,n);let d=["",{children:["test-images",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(t.bind(t,7131)),"c:\\xampp\\htdocs\\propmaster.io\\src\\app\\test-images\\page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(t.bind(t,84500)),"c:\\xampp\\htdocs\\propmaster.io\\src\\app\\layout.tsx"],error:[()=>Promise.resolve().then(t.bind(t,49356)),"c:\\xampp\\htdocs\\propmaster.io\\src\\app\\error.tsx"],loading:[()=>Promise.resolve().then(t.bind(t,91884)),"c:\\xampp\\htdocs\\propmaster.io\\src\\app\\loading.tsx"],"not-found":[()=>Promise.resolve().then(t.t.bind(t,90996,23)),"next/dist/client/components/not-found-error"]}],c=["c:\\xampp\\htdocs\\propmaster.io\\src\\app\\test-images\\page.tsx"],p="/test-images/page",m={require:t,loadChunk:()=>Promise.resolve()},g=new a.AppPageRouteModule({definition:{kind:r.x.APP_PAGE,page:"/test-images/page",pathname:"/test-images",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},76384:(e,s,t)=>{Promise.resolve().then(t.bind(t,35162))},35162:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>o});var a=t(97247),r=t(28964);function o(){let[e,s]=(0,r.useState)(["/api/uploads/estates/1756745123692-0-2150799723.jpg","/api/uploads/estates/1756745123692-1-2150799724.jpg","/api/uploads/estates/1756745123692-2-2150799725.jpg","/api/uploads/estates/test-estate-1/0","/api/uploads/estates/test-estate-1/1","/api/uploads/estates/test-estate-1/2"]),[t,o]=(0,r.useState)({}),l=e=>{o(s=>({...s,[e]:"loading"}));let s=new Image;s.onload=()=>{o(s=>({...s,[e]:"success"})),console.log("✅ Image loaded successfully:",e)},s.onerror=()=>{o(s=>({...s,[e]:"error"})),console.log("❌ Image failed to load:",e)},s.src=e};return a.jsx("div",{className:"min-h-screen bg-gradient-bg-light p-8",children:(0,a.jsxs)("div",{className:"max-w-4xl mx-auto",children:[a.jsx("h1",{className:"text-3xl font-bold mb-8",children:"Image Serving Test"}),(0,a.jsxs)("div",{className:"mb-8",children:[a.jsx("button",{onClick:()=>{e.forEach(e=>l(e))},className:"btn-primary mb-4",children:"Test All Image URLs"}),a.jsx("div",{className:"space-y-4",children:e.map((e,s)=>(0,a.jsxs)("div",{className:"flex items-center space-x-4 p-4 bg-white rounded-lg shadow",children:[a.jsx("div",{className:"flex-1",children:a.jsx("code",{className:"text-sm text-gray-800 break-all",children:e})}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[a.jsx("button",{onClick:()=>l(e),className:"btn-secondary text-sm px-3 py-1",children:"Test"}),a.jsx("div",{className:`w-3 h-3 rounded-full ${"success"===t[e]?"bg-green-500":"error"===t[e]?"bg-red-500":"loading"===t[e]?"bg-yellow-500 animate-pulse":"bg-gray-300"}`}),a.jsx("span",{className:"text-sm text-gray-600",children:t[e]||"Not tested"})]})]},s))})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map((e,s)=>(0,a.jsxs)("div",{className:"card-primary",children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold mb-4",children:["Test Image ",s+1]}),a.jsx("div",{className:"aspect-video bg-gray-100 rounded-lg overflow-hidden",children:a.jsx("img",{src:e,alt:`Test image ${s+1}`,className:"w-full h-full object-cover",onLoad:()=>console.log("Image loaded in component:",e),onError:t=>{console.log("Image failed in component:",e),t.target.src=`https://via.placeholder.com/400x300/8B5CF6/FFFFFF?text=Failed+${s+1}`}})}),a.jsx("p",{className:"text-xs text-gray-500 mt-2 break-all",children:e})]},s))}),(0,a.jsxs)("div",{className:"mt-8 p-4 bg-yellow-50 border border-yellow-200 rounded-lg",children:[a.jsx("h3",{className:"font-semibold text-yellow-800 mb-2",children:"Debug Information"}),a.jsx("p",{className:"text-sm text-yellow-700",children:"Check the browser console for detailed logs about image loading. Green dots indicate successful loads, red dots indicate failures."})]})]})})}},7131:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>a});let a=(0,t(45347).createProxy)(String.raw`c:\xampp\htdocs\propmaster.io\src\app\test-images\page.tsx#default`)}};var s=require("../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[7787,7549,125],()=>t(58281));module.exports=a})();