1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[905],{44057:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return o}});var r=s(30266),t=s(809),i=s.n(t),c=s(67294),a=s(85893);function o(){var e=(0,c.useState)([]),n=e[0],s=e[1],t=(0,c.useState)(!0),o=t[0],l=t[1],u=(0,c.useState)(null),d=u[0],m=u[1],h=function(e){return"http://127.0.0.1:5000/image/sales/".concat(e)};return(0,c.useEffect)((function(){(function(){var e=(0,r.Z)(i().mark((function e(){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("http://127.0.0.1:5000/miniolistingscheck");case 3:return n=e.sent,e.next=6,n.json();case 6:r=e.sent,s(r.data),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),m("Failed to fetch listings"),console.error("Error:",e.t0);case 14:return e.prev=14,l(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,10,14,17]])})));return function(){return e.apply(this,arguments)}})()()}),[]),o?(0,a.jsx)("div",{children:"Loading..."}):d?(0,a.jsxs)("div",{children:["Error: ",d]}):(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold mb-4",children:"Property Listings Image Comparison"}),n.map((function(e){var n,s,r,t;return(0,a.jsxs)("div",{className:"mb-8 p-4 border rounded-lg",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold mb-2",children:e.address}
1),(0,a.jsxs)("p",{className:"mb-2",children:["Price: ",e.price]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"font-medium mb-2",children:["Location Images (",(null===(n=e.location_images)||void 0===n?void 0:n.length)||0,")"]}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2",children:null===(s=e.location_images)||void 0===s?void 0:s.map((function(e,n){return(0,a.jsx)("div",{className:"aspect-square",children:(0,a.jsx)("img",{src:h(e),alt:"Location ".concat(n+1),className:"w-full h-full object-cover rounded"})},n)}))})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"font-medium mb-2",children:["Sales Images (",(null===(r=e.sales_images)||void 0===r?void 0:r.length)||0,")"]}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2",children:null===(t=e.sales_images)||void 0===t?void 0:t.map((function(e,n){return(0,a.jsx)("div",{className:"aspect-square",children:(0,a.jsx)("img",{src:e,alt:"Sales ".concat(n+1),className:"w-full h-full object-cover rounded"})},n)}))})]})]})]},e.uuid)}))]})}},10651:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/phototestsales",function(){return s(44057)}])},30266:function(e,n,s){"use strict";function r(e,n,s,r,t,i,c){try{var a=e[i](c),o=a.value}catch(l){return void s(l)}a.done?n(o):Promise.resolve(o).then(r,t)}function t(e){return function(){var n=this,s=arguments;return new Promise((function(t,i){var c=e.apply(n,s);function a(e){r(c,t,i,a,o,"next",e)}function o(e){r(c,t,i,a,o,"throw",e)}a(void 0)}))}}s.d(n,{Z:function(){return t}})}},function(e){e.O(0,[9774,2888,179],(function(){return n=10651,e(e.s=n);var n}));var n=e.O();_N_E=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.