PageSourceSearch

https://prayk.com/_next/static/chunks/27490-cbf5e9640ea9eb7b.js

js prayk.com collected 2026-10-07 03:06:10 UTC 13,072 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[27490],{13299:(e,t,a)=>{a.d(t,{NN:()=>i,OA:()=>o,X$:()=>r,a4:()=>l,n6:()=>d});let n=new Map;function r(e){let t=n.get(e);return t||(t=fetch("/api/listing-price-insight?id=".concat(encodeURIComponent(e)),{credentials:"same-origin"}).then(e=>e.ok?e.json():null).catch(()=>(n.delete(e),null)),n.set(e,t)),t}function l(e,t){n.has(e)||n.set(e,Promise.resolve(t))}function i(e,t){c.has(e)||c.set(e,Promise.resolve(t))}let s=new Map;function d(e){let t=s.get(e);return t||(t=fetch("/api/listing-price-insight-items?id=".concat(encodeURIComponent(e)),{credentials:"same-origin"}).then(e=>e.ok?e.json():null).catch(()=>(s.delete(e),null)),s.set(e,t)),t}let c=new Map;function o(e){let t=c.get(e);return t||(t=fetch("/api/listing-price-history?id=".concat(encodeURIComponent(e)),{credentials:"same-origin"}).then(e=>e.ok?e.json():null).then(e=>Array.isArray(null==e?void 0:e.data)?e.data:null).catch(()=>(c.delete(e),null)),c.set(e,t)),t}},27490:(e,t,a)=>{a.d(t,{A:()=>u});var n=a(95155),r=a(12115),l=a(716),i=a(80610),s=a(52584),d=a(37380),c=a(78986),o=a(13299),x=a(73421);let m=e=>e.replace(/ /g,"\xa0");function u(e){var t,a,u,h,p,f,g,k,b;let{listingId:j,className:v="",onPropose:N,initialInsight:w}=e,{t:y,locale:M}=(0,l.s)(),{money:P}=(0,i.uY)(),[C,B]=(0,r.useState)(null!=w?w:null),[L,A]=(0,r.useState)(!1),[z,S]=(0,r.useState)(null);if((0,r.useEffect)(()=>{let e=!1;if(S(null),A(!1),void 0!==w){(0,o.a4)(String(j),w),B(w);return}return B(null),(0,o.X$)(String(j)).then(t=>{e||B(t)}),()=>{e=!0}},[j,w]),(0,r.useEffect)(()=>{if(!L||null!==z)return;let e=!1;return(0,o.n6)(String(j)).then(t=>{e||S(null!=t?t:{found:!1,items:[]})}),()=>{e=!0}},[L,j]),!(null==C?void 0:C.found)||!C.position&&!C.sameBuilding)return null;let W=null!=(t=C.deltaPct)?t:0,$=Math.round(Math.abs(W)),I=(0,x.ir)(null!=(a=C.deltaPct)?a:0),T="below"===C.position?{text:"text-emerald-700 dark:text-emerald-400",well:"bg-emerald-50 text-emerald-600 dark:bg-emerald-500/15 dark:text-emerald-400",label:y("marketPrice.verdictBelow"),icon:(0,n.jsx)("path",{d:"M7 7l10 10M17 8v9H8"})}:"above"===C.position?{text:"text-amber-700 dark:text-amber-400",well:"bg-amber-50 text-amber-600 dark:bg-amber-500/15 dark:text-amber-400",label:y("marketPrice.verdictAbove"),icon:(0,n.jsx)("path",{d:"M7 17L17 7M8 7h9v9"})}:{text:"text-slate-900",well:"bg-blue-50 text-[#0075ff] dark:bg-blue-500/15 dark:text-blue-300",label:y("marketPrice.verdictWithin"),icon:(0,n.jsx)("path",{d:"M5 12l4 4L19 6"})},_=null!=(u=C.n)?u:0,E=C.median?Math.round(C.median):0,H=C.median?(e=>{if(!(e>0))return 0;let t=Math.pow(10,Math.max(0,Math.floor(Math.log10(e))-1));return Math.round(e/t)*t})(C.median*Math.abs(W)/100):0,O=E&&"sot"!==C.unit?$>=3&&H>0?y(W<0?"marketPrice.explainBelow":"marketPrice.explainAbove",{n:_,median:m(P(E)),diff:m(P(H)),pct:$}):y("marketPrice.explainWithin",{n:_,median:m(P(E))}):null,U=null!=(h=null==z?void 0:z.items)?h:[],D=C.p25&&C.median&&C.p75&&C.p75>C.p25?{p25:Math.round(C.p25),median:Math.round(C.median),p75:Math.round(C.p75),marker:(0,x.bu)(C.median*(1+(null!=(p=C.deltaPct)?p:0)/100),C.p25,C.p75)}:null,R=C.trend,X=R?R.pct>0?y("marketPrice.trendUp",{days:R.days,pct:R.pct}):R.pct<0?y("marketPrice.trendDown",{days:R.days,pct:Math.abs(R.pct)}):y("marketPrice.trendFlat",{days:R.days}):null,q="sot"===C.unit&&C.unitPrice&&C.unitMedian?y("marketPrice.noteLand",{price:(0,x.$g)(C.unitPrice),median:(0,x.$g)(C.unitMedian),radius:(0,x.BO)(null!=(f=C.radiusM)?f:1e3)}):null;return(0,n.jsxs)("div",{className:v,children:[C.coarse?(0,n.jsx)("div",{className:"text-[12px] font-medium leading-snug text-slate-500 dark:text-gray-400","data-market-verdict":"coarse",children:y("marketPrice.coarseNote")}):C.sameBuilding?(0,n.jsx)("div",{className:"text-[12px] font-medium leading-snug text-slate-500 dark:text-gray-400","data-market-verdict":"same-building",children:y("marketPrice.sameBuildingNote",{n:C.sameBuilding.n,median:(0,x.$g)(C.sameBuilding.median),radius:C.sameBuilding.radiusM})}):(0,n.jsxs)("div",{className:"flex items-start gap-2","data-market-verdict":I,children:[(0,n.jsx)("span",{className:"mt-px flex h-5 w-5 shrink-0 items-center justify-center rounded-full ".concat(T.well),"aria-hidden":"true",children:(0,n.jsx)("svg",{className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:T.icon})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("div",{className:"text-[14px] font-semibold leading-snug ".concat(T.text),children:T.label}),O?(0,n.jsx)("div",{className:"mt-0.5 text-[12.5px] leading-snug text-slate-600 dar
1k:text-gray-300",children:O}):null]})]}),D?(0,n.jsxs)("div",{className:"mt-3","aria-label":y("marketPrice.bandTitle"),children:[(0,n.jsx)("div",{className:"relative h-5",children:(0,n.jsx)("span",{className:"absolute top-0 whitespace-nowrap text-[11px] font-semibold leading-none text-[#0075ff] dark:text-blue-300",style:D.marker<=14?{left:0}:D.marker>=86?{right:0}:{left:"".concat(D.marker,"%"),transform:"translateX(-50%)"},children:y("marketPrice.bandThis")})}),(0,n.jsxs)("div",{className:"ldh-grow relative flex h-2 gap-0.5",children:[(0,n.jsx)("span",{className:"w-1/5 rounded-l-full bg-emerald-200 dark:bg-emerald-900/60"}),(0,n.jsx)("span",{className:"flex-1 bg-blue-200 dark:bg-blue-900/60"}),(0,n.jsx)("span",{className:"w-1/5 rounded-r-full bg-amber-200 dark:bg-amber-900/60"}),(0,n.jsx)("span",{className:"ldh-marker absolute top-1/2 h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-[#0075ff] shadow-[0_1px_3px_rgba(15,23,42,0.35)]",style:{left:"".concat(D.marker,"%")}})]}),(0,n.jsxs)("div",{className:"mt-1 flex gap-0.5 text-[10.5px] leading-tight text-slate-500 dark:text-gray-400",children:[(0,n.jsx)("span",{className:"w-1/5 truncate text-center",children:y("marketPrice.zoneCheap")}),(0,n.jsx)("span",{className:"flex-1 truncate text-center",children:y("marketPrice.zoneMid")}),(0,n.jsx)("span",{className:"w-1/5 truncate text-center",children:y("marketPrice.zoneExpensive")})]}),(0,n.jsxs)("div",{className:"mt-1.5 text-[12px] leading-snug text-slate-600 dark:text-gray-300",children:[y("marketPrice.rangeLine")," ",(0,n.jsxs)("span",{className:"whitespace-nowrap font-semibold tabular-nums text-slate-900 dark:text-white",children:[P(D.p25)," – ",P(D.p75)]})]})]}):null,q?(0,n.jsxs)("div",{className:"mt-1.5 flex items-start gap-1 text-[11.5px] leading-snug text-slate-500 dark:text-gray-400",children:[(0,n.jsxs)("svg",{className:"mt-px h-3 w-3 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,n.jsx)("path",{d:"M12 11v5M12 8h.01"})]}),(0,n.jsx)("span",{children:q})]}):null,X?(0,n.jsxs)("div",{className:"mt-1 inline-flex items-center gap-1 text-[11.5px] leading-snug ".concat(R&&R.pct<0?"text-emerald-600":R&&R.pct>0?"text-amber-600":"text-slate-500"),children:[(0,n.jsx)("svg",{className:"h-3 w-3 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:R&&R.pct<0?(0,n.jsx)("path",{d:"M3 7l6 6 4-4 8 8M15 17h6v-6"}):(0,n.jsx)("path",{d:"M3 17l6-6 4 4 8-8M15 7h6v6"})}),X]}):null,C.medianDaysToClose?(0,n.jsxs)("div",{className:"mt-0.5 flex items-center gap-1 text-[11.5px] leading-snug text-slate-500",children:[(0,n.jsxs)("svg",{className:"h-3 w-3 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,n.jsx)("path",{d:"M12 7v5l3 2"})]}),y("marketPrice.daysToClose",{days:C.medianDaysToClose})]}):null,(0,n.jsx)("div",{className:"mt-1.5",children:(0,n.jsxs)("button",{type:"button",onClick:()=>A(!0),className:"inline-flex items-center gap-0.5 text-[12.5px] font-medium leading-snug text-[#0075ff] hover:underline",children:[y("marketPrice.basisLink",{n:_}),(0,n.jsx)("svg",{className:"h-3.5 w-3.5 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})]})}),N&&!C.coarse&&"above"===C.position&&(null!=(g=C.deltaPct)?g:0)>=x.Iy&&C.median&&C.median>0?(0,n.jsxs)("div",{className:"mt-1.5 flex flex-wrap items-center gap-x-2 gap-y-1 text-[12px] leading-snug text-slate-600 dark:text-gray-300",children:[(0,n.jsx)("span",{children:y("marketPrice.dealHint",{median:(0,x.$g)(C.median),offer:(0,x.$g)((0,x.ib)(C.median))})}),(0,n.jsxs)("button",{type:"button",onClick:()=>N((0,x.ib)(C.median)),className:"inline-flex items-center gap-1 rounded-lg border border-[#0075ff]/30 bg-blue-50 px-2 py-0.5 text-[12px] font-medium text-[#0075ff] transition-colors hover:bg-blue-100 dar
1k:bg-blue-900/30 dark:hover:bg-blue-900/50",children:[(0,n.jsx)("svg",{className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"})}),y("marketPrice.dealBtn")]})]}):null,(0,n.jsx)(s.default,{open:L,onClose:()=>A(!1),title:(0,n.jsx)("span",{children:y("marketPrice.itemsTitle")}),children:null===z?(0,n.jsx)("div",{className:"flex justify-center py-10",children:(0,n.jsx)("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-slate-200 border-t-[#0075ff]"})}):z.found&&0!==U.length?(0,n.jsxs)("div",{className:"flex flex-col",children:[z.label&&(0,n.jsx)("div",{className:"mb-1 text-[13px] text-slate-500 dark:text-gray-400",children:y("marketPrice.itemsCriteria",{label:z.label})}),(0,n.jsx)("ul",{className:"divide-y divide-slate-100 dark:divide-white/10",children:U.map((e,t)=>(0,n.jsxs)("li",{className:"flex items-center justify-between gap-3 py-2.5",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[e.listingId?(0,n.jsx)(d.default,{href:(0,c.qS)({id:e.listingId,title:e.title}),onClick:()=>A(!1),className:"block truncate text-[13px] font-medium text-[#0075ff] hover:underline",children:e.title}):(0,n.jsx)("div",{className:"truncate text-[13px] font-medium text-slate-800 dark:text-gray-200",children:e.title}),(0,n.jsxs)("div",{className:"mt-0.5 flex items-center gap-1.5 text-[11.5px] text-slate-400 dark:text-gray-500",children:["number"==typeof e.distanceM&&(0,n.jsxs)("span",{className:"inline-flex items-center gap-0.5 font-medium text-[#0075ff]",children:[(0,n.jsxs)("svg",{viewBox:"0 0 24 24",className:"h-3 w-3",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("path",{d:"M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1116 0z"}),(0,n.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),(0,x.BO)(e.distanceM)]}),(0,n.jsx)("span",{children:(0,x.Jw)(e.seenAt,M)}),!e.active&&(0,n.jsx)("span",{className:"rounded-full bg-slate-100 px-1.5 py-px text-[10.5px] text-slate-500 dark:bg-white/10 dark:text-gray-400",children:y("marketPrice.closed")})]})]}),(0,n.jsx)("div",{className:"shrink-0 text-[13px] font-semibold tabular-nums text-slate-900 dark:text-white",children:P(e.priceAzn)})]},t))}),(0,n.jsx)("div",{className:"mt-3 text-[11.5px] leading-snug text-slate-400 dark:text-gray-500",children:y("marketPrice.itemsHint",{n:null!=(b=z.n)?b:U.length})}),(0,n.jsxs)(d.default,{href:"/qiymetler",onClick:()=>A(!1),className:"mt-3 inline-flex items-center gap-1 self-start text-[13px] font-medium text-[#0075ff] hover:underline",children:[y("marketPrice.seeAll"),(0,n.jsx)("svg",{className:"h-3 w-3 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6"})})]})]}):(0,n.jsx)("div",{className:"py-8 text-center text-sm text-slate-500 dark:text-gray-400",children:y("marketPrice.itemsHint",{n:null!=(k=z.n)?k:0})})})]})}},73421:(e,t,a)=>{function n(e){return e<=-10?"cheap":e>=10?"expensive":"fair"}function r(e,t,a){return a<=t?50:Math.max(2,Math.min(98,20+(e-t)/(a-t)*60))}function l(e){let t=e<100?5:e<1e3?10:e<1e4?50:e<1e5?100:500;return Math.max(t,Math.round(e/t)*t)}a.d(t,{$g:()=>s,BO:()=>d,Iy:()=>i,Jw:()=>c,LT:()=>x,bu:()=>r,ib:()=>l,ir:()=>n});let i=5,s=e=>Math.round(e).toString().replace(/\B(?=(\d{3})+(?!\d))/g," "),d=e=>e<1e3?"".concat(e," m"):"".concat((e/1e3).toFixed(1).replace(/\.0$/,"")," km"),c=(e,t)=>{let a=e.slice(0,10).split("-");if(3!==a.length)return e;let n="en"===t?"/":".";return"".concat(a[2]).concat(n).concat(a[1]).concat(n).concat(a[0])};function o(e){return"number"==typeof e.discountedPrice&&e.discountedPrice>0?e.discountedPrice:"number"==typeof e.price&&e.price>0?e.price:null}function x(e){let t=e.map(e=>"number"==typeof e.effectiveAzn&&e.effectiveAzn>0?e.effectiveAzn:null).filter(e=>null!==e);return t.length>=2?t:new Set(e.map(e=>e.currency||"")).size>1?[]:e.map(o).filter(e=>null!==e)}}}]);

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.