1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9957],{37354:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(19904).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},45345:(e,t,s)=>{s.d(t,{A:()=>l});let l=(0,s(19904).A)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},99957:(e,t,s)=>{s.r(t),s.d(t,{default:()=>E});var l=s(95155),a=s(12115),r=s(56962),n=s(27937),i=s(90960),c=s(75118),o=s(63003),d=s(89782),x=s(56545),m=s(2837),p=s(73673),g=s(72424),h=s(20908),u=s(91364);function f(e){let{clearingPrice:t,reference:s,referenceKind:a,unit:r="â¼"}=e,n=(0,c.k)();if(!t||t<=0)return null;let o=s&&s>0?(t-s)/s*100:null,d=null!=o&&1>Math.abs(o);return(0,l.jsxs)("div",{className:"mt-2 flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-xs",children:[(0,l.jsx)(u.A,{text:n("result.clearing.tooltip"),children:(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 font-semibold text-gray-500",children:[n("result.clearing.label"),(0,l.jsx)(h.A,{className:"h-3 w-3 text-gray-400"})]})}),(0,l.jsxs)("span",{className:"font-bold tabular-nums text-gray-800",children:[(0,i.$g)(Math.round(t))," ",r]}),null!=o&&!d&&(0,l.jsx)("span",{className:"tabular-nums text-gray-400",children:n("asking"===a?"result.clearing.vs_asking":"result.clearing.vs_estimate").replace("{d}",`${o>0?"+":""}${o.toFixed(0)}%`)})]})}var b=s(21780),j=s(44051),y=s(26921),N=s(45345),v=s(1524),w=s(19408),k=s(65993);let _=(0,s(19904).A)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);var $=s(21873),A=s(46858),C=s(37354),S=s(79397),M=s(92927),K=s(31544),I=s(89715);function B(e){let{Icon:t,label:s,value:a}=e;return(0,l.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,l.jsx)(t,{className:"w-3.5 h-3.5 text-gray-400 shrink-0"}),(0,l.jsx)("span",{className:"text-[11px] text-gray-500 shrink-0",children:s}),(0,l.jsx)("span",{className:"text-xs font-semibold text-gray-800 truncate ml-auto text-right",children:a})]})}function P(e){let{tiers:t,ttsTiers:s=null,rentTiers:a,tierConfig:r,t:n,area_m2:c,rentView:o}=e,d=a?Object.fromEntries(a.map(e=>[e.name,e])):null,x=Object.fromEntries(t.map(e=>[e.name,e])),m=o&&a?a:t;return(0,l.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:m.map(e=>{let t=r[e.name]||r.market,a=t.icon,m="market"===e.name,p=d?.[e.name],g=x[e.name],h=e.price,u=o?n("calc.rent.result.rent_suffix"):"AZN",f=o?g:p,b=o?"AZN":n("calc.rent.result.rent_suffix");return(0,l.jsxs)("div",{className:`relative rounded-xl border ${t.cardBorder} ${t.cardBg} p-4 transition-colors`,children:[(0,l.jsxs)("span",{className:`absolute -top-2 -right-2 w-10 h-10 rounded-full flex items-center justify-center text-[11px] font-bold text-white ${m?"bg-indigo-600":"sell_faster"===e.name?"bg-gray-500":"bg-amber-500"}`,children:[e.pct_offset>0?"+":"",Math.round(100*e.pct_offset),"%"]}),m&&(0,l.jsx)("span",{className:"absolute -top-2 left-1/2 -translate-x-1/2 px-2 py-0.5 bg-indigo-600 text-white text-[10px] font-semibold rounded-full",children:n("sell.tier.market.recommended")}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[(0,l.jsx)(a,{className:`w-3.5 h-3.5 ${t.offsetColor}`}),(0,l.jsx)("span",{className:"text-[11px] font-semibold text-gray-500",children:n(t.labelKey)}),!o&&s?.[e.name]&&(0,l.jsx)("span",{className:"ml-auto text-[10px] font-semibold text-gray-400 tabular-nums",children:n("sell.tier.days").replace("{a}",String(s[e.name].days_low)).replace("{b}",String(s[e.name].days_high))})]}),(0,l.jsxs)("div",{className:"flex items-start justify-between gap-3 sm:block",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,l.jsx)("span",{className:`text-2xl font-extrabold ${t.priceColor}`,children:(0,i.$g)(h)}),(0,l.jsx)("span",{className:"text-xs text-gray-400 font-medium",children:u})]}),(0,l.jsx)("div",{className:"text-[11px] text-gray-400 font-medium mt
1-0.5 min-h-[1rem]",children:!o&&c&&c>0?`${(0,i.$g)(Math.round(h/c))} â¼/m\xb2`:""})]}),f&&(0,l.jsxs)("div",{className:"text-right sm:hidden",children:[(0,l.jsx)("div",{className:"text-[10px] text-gray-400 font-medium",children:o?n("calc.rent.result.sale_also"):n("calc.rent.result.rent_also")}),(0,l.jsxs)("div",{className:"flex items-baseline justify-end gap-1",children:[(0,l.jsx)("span",{className:`text-lg font-extrabold ${t.priceColor}`,children:(0,i.$g)(f.price)}),(0,l.jsx)("span",{className:"text-[10px] text-gray-400 font-medium",children:b})]})]})]}),f&&(0,l.jsxs)("div",{className:"hidden sm:block mt-2.5 pt-2.5 border-t border-gray-200",children:[(0,l.jsx)("div",{className:"flex items-center gap-1.5",children:(0,l.jsx)("span",{className:"text-[10px] text-gray-400 font-medium",children:o?n("calc.rent.result.sale_also"):n("calc.rent.result.rent_also")})}),(0,l.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,l.jsx)("span",{className:`text-lg font-extrabold ${t.priceColor}`,children:(0,i.$g)(f.price)}),(0,l.jsx)("span",{className:"text-[10px] text-gray-400 font-medium",children:b})]})]}),(0,l.jsx)("p",{className:"text-[11px] text-gray-500 mt-2 leading-relaxed",children:n(t.hintKey)})]},e.name)})})}function E(e){let t,s,{mode:h="sale",tiers:u,ttsTiers:E=null,area_m2:q,room_count:H,floor:T,total_floors:Z,location_name:z,category_name:L,has_repair:O,has_bill_of_sale:R,latitude:U,longitude:F,history_id:V,complex_name:D,complex_cluster_id:G,complex_median_m2:J,hex_median_m2:Q,district_overall_ppm:W,district_personalized_ppm:X,district_personalized_has_repair:Y,rent:ee,predicted_price:et,clearing_price:es,fair_value_low:el,fair_value_high:ea}=e,er=(0,c.k)(),en="rent"===h,[ei,ec]=(0,a.useState)(!1),eo=!!ee?.tiers?.length,ed={sell_faster:{labelKey:"sell.tier.sellfaster",hintKey:"sell.tier.sellfaster.hint",icon:y.A,cardBorder:"border-gray-200",cardBg:"bg-white",priceColor:"text-gray-700",offsetColor:"text-gray-500"},market:{labelKey:"sell.tier.market",hintKey:"sell.tier.market.hint",icon:N.A,cardBorder:"border-indigo-300 ring-2 ring-indigo-100",cardBg:"bg-indigo-50/40",priceColor:"text-indigo-700",offsetColor:"text-indigo-600"},stretch:{labelKey:"sell.tier.stretch",hintKey:"sell.tier.stretch.hint",icon:v.A,cardBorder:"border-amber-200",cardBg:"bg-white",priceColor:"text-amber-700",offsetColor:"text-amber-600"}},ex=q||H||T||z||L,em=null!=U&&null!=F,ep=!!z,eg=!en&&null!=q,eh=en?"â¼/ay":"â¼/m\xb2",eu=null!=X&&null!=Y,ef=!eu&&null!=W&&null!=H&&H>0;eu&&null!=H&&H>0?t=er(Y?"result.cmp.avg_nroom_repair":"result.cmp.avg_nroom_norepair").replace("{n}",String(H)):ef?t=er("result.cmp.avg_nroom").replace("{n}",String(H)):(t=z||er("result.cmp.overall"),s=er("result.cmp.mixed_scope"));let eb=X??W??Q??null,ej=[];en||null==J||ej.push({headingKey:"result.cmp.complex",benchmarkPpm:J,caption:D||er("result.cmp.overall"),scope:er("result.cmp.mixed_scope")}),en||null==eb||ej.push({headingKey:"result.cmp.nearby",benchmarkPpm:eb,caption:t,scope:s});let ey=(()=>{let e=new URLSearchParams({prefill:"1"});return e.set("property_type",null==T&&null==Z?"house":"apartment"),q&&e.set("area_m2",String(q)),H&&e.set("room_count",String(H)),null!=T&&e.set("floor",String(T)),null!=Z&&e.set("total_floors",String(Z)),z&&e.set("location_name",z),null!=U&&e.set("lat",String(U)),null!=F&&e.set("lng",String(F)),O&&e.set("has_repair","1"),R&&e.set("has_bill_of_sale","1"),D&&e.set("name",D),L&&e.set("building_type",L),`/properties/new?${e.toString()}`})(),eN=(0,l.jsxs)(r.default,{href:ey,className:"group flex items-center justify-between gap-3 rounded-2xl border border-gray-200 bg-white px-4 py-3 transition-colors hover:border-indigo-300",children:[(0,l.jsxs)("span",{className:"flex min-w-0 items-center gap-2.5",children:[(0,l.jsx)(w.A,{className:"h-4 w-4 shrink-0 text-gray-400 transition-colors group-hover:text-indigo-500"}),(0,l.jsxs)("span",{className:"min-w-0",children:[(0,l.jsx)("span",{className:"block text-[13px] font-semibold text-gray-900",children:er("seller.owncard.title")}),(0,l.jsx)("span",{className:"block truncate text-[11px] text-gray-500",children:er("seller.owncard.cta")})]})]}),(0,l.jsx)(n.A,{className:"h-4 w-4 shrink-0 text-gray-300 transition-colors group-hover:text-indigo-500"})]});return(0,l.jsxs)("div",{className:"space-y-5 sm:space-y-6",children:[V&&(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[(0,l.jsx)(x.A,{historyId:V,labeled:!0,compact:!0}),(0,l.jsx)(m.A,{source:"calculate",sourceRefId:String(V),variant:"ghost",compact:!0,seedBuilder:()=>{let e=[];e.push(`User priced their own apartment with the seller calculator (${h||"sale"}).`),et&&e.push(`Model fair value: ${Math.round(et)} AZN`+(el&&ea?` (range ${Math.round(el)}-${Math.round(ea)})`:".")+".");let t=[];return q&&t.push(`${q} m\xb2`),H&&t.push(`${H}-room`),T&&Z&&t.push(`floor ${T}/${Z}`),z&&t.push(z),D&&t.push(`complex ${D}`),t.length&&e.push(`Property: ${t.join(", ")}.`),e.push("Treat this as the seller's own apartment. Help them think through pricing strategy and the trade-offs the calculator surfaced."),e.join(" ")}})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-3 sm:gap-4 lg:items-start",children:[(0,l.jsx)("div",{className:ex?"lg:col-span-8":"lg:col-span-12",children:(0,l.jsxs)("div",{className:"rounded-2xl border border-gray-200 bg-white p-5",children:[(0,l.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-3",children:[eo?(0,l.jsxs)("div",{className:"flex gap-1 p-0.5 bg-gray-100 rounded-xl shrink-0",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>ec(!1),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-[10px] text-[11px] font-semibold transition-colors ${!ei?"bg-white text-indigo-700 shadow-sm":"text-gray-500 hover:text-gray-700"}`,"aria-pressed":!ei,children:[(0,l.jsx)(k.A,{className:"w-3 h-3 shrink-0","aria-hidden":!0}),er("calc.rent.toggle.sale")]}),(0,l.jsxs)("button",{type:"button",onClick:()=>ec(!0),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-[10px] text-[11px] font-semibold transition-colors ${ei?"bg-white text-indigo-700 shadow-sm":"text-gray-500 hover:text-gray-700"}`,"aria-pressed":ei,children:[(0,l.jsx)(_,{className:"w-3 h-3 shrink-0","aria-hidden":!0}),er("calc.rent.toggle.rent")]})]}):(0,l.jsx)("div",{className:"text-[10px] font-semibold text-gray-500",children:er("sell.result.recommendedrange")}),el>0&&ea>0&&(0,l.jsx)(d.A,{compact:!0,predicted_price_low:el,predicted_price_high:ea,predicted_price:et})]}),(0,l.jsx)(P,{ttsTiers:E,tiers:u,rentTiers:ee?.tiers,tierConfig:ed,t:er,area_m2:q,rentView:ei&&eo}),!ei&&(0,l.jsx)(f,{clearingPrice:es,reference:et,referenceKind:"estimate"})]})}),ex&&(0,l.jsx)("div",{className:"lg:col-span-4",children:(0,l.jsxs)("div",{className:"rounded-2xl border border-gray-200 bg-white p-4 sm:p-5",children:[(0,l.jsx)("div",{className:"text-[10px] font-semibold text-gray-500 mb-3",children:er("result.details")}),(0,l.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-1 gap-x-3 gap-y-2.5",children:[z&&(0,l.jsx)(B,{Icon:$.A,label:er("prop.location"),value:z}),null!=H&&(0,l.jsx)(B,{Icon:A.A,label:er("prop.rooms"),value:String(H)}),null!=q&&(0,l.jsx)(B,{Icon:C.A,label:er("prop.area"),value:`${Math.round(q)} m\xb2`}),null!=T&&(0,l.jsx)(B,{Icon:S.A,label:er("prop.floor"),value:`${T}${Z?`/${Z}`:""}`}),L&&(0,l.jsx)(B,{Icon:w.A,label:er("prop.type"),value:L}),D&&(G?(0,l.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,l.jsx)(M.A,{className:"w-3.5 h-3.5 text-gray-400 shrink-0"}),(0,l.jsx)("span",{className:"text-[11px] text-gray-500 shrink-0",children:er("result.cmp.complex")}),(0,l.jsx)(r.default,{href:`/residence/${G}`,className:"text-xs font-semibold text-indigo-600 hover:text-indigo-700 truncate ml-auto text-right underline-offset-2 hover:underline",children:D})]}):(0,l.jsx)(B,{Icon:M.A,label:er("result.cmp.complex"),value:D})),null!=O&&(0,l.jsx)(B,{Icon:K.A,label:er("prop.repair"),value:O?er("prop.yes"):er("prop.no")}),null!=R&&(0,l.jsx)(B,{Icon:I.A,label:er("prop.kupcha"),value:R?er("prop.yes"):er("prop.no")})]})]})})]}),(em||ej.length>0||ep||eg)&&(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4 sm:gap-5 items-start",children:[em&&(0,l.jsx)("div",{className:"lg:flex-[3] min-w-0
1w-full",children:(0,l.jsx)(p.A,{lat:U,lng:F})}),(0,l.jsxs)("div",{className:"lg:flex-[2] min-w-0 w-full space-y-4 sm:space-y-5",children:[eN,eg&&(0,l.jsx)(j.default,{compact:!0,area_m2:q,latitude:U,longitude:F}),ej.length>0&&(0,l.jsxs)("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-4 sm:px-5 flex flex-col gap-3",children:[ej.map((e,t)=>(0,l.jsxs)("div",{className:`flex items-center justify-between gap-3 ${t>0?"pt-3 border-t border-gray-100":""}`,children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("div",{className:"text-[11px] font-semibold text-gray-500 truncate",children:er(e.headingKey)}),(0,l.jsx)("div",{className:"text-[11px] text-gray-400 mt-0.5 truncate",children:e.caption}),e.scope&&(0,l.jsx)("div",{className:"text-[10px] text-gray-400/80 italic mt-0.5 truncate",children:e.scope})]}),(0,l.jsxs)("span",{className:"text-base sm:text-lg font-extrabold text-gray-900 tabular-nums shrink-0",children:[(0,i.$g)(Math.round(e.benchmarkPpm)),(0,l.jsx)("span",{className:"text-xs font-bold text-gray-400 ml-1",children:eh})]})]},t)),G&&(0,l.jsxs)(r.default,{href:`/residence/${G}`,className:"pt-3 border-t border-gray-100 inline-flex items-center gap-1.5 text-sm font-medium text-indigo-600 hover:text-indigo-700",children:[er("residence.view.cta"),(0,l.jsx)(n.A,{className:"w-4 h-4"})]})]}),ep&&(0,l.jsx)(g.A,{locationName:z,latitude:U,longitude:F,complexKey:G,mode:en?"rent":"sale"}),null!=U&&null!=F&&H>0&&q>0&&et>0&&(0,l.jsx)(b.A,{lat:U,lng:F,rooms:H,areaM2:q,ppm:et/q,leased:en,complexSlug:G??null,variant:"compare"})]})]}),(0,l.jsxs)("div",{className:"pt-2 space-y-3",children:[(0,l.jsx)(o.A,{historyId:V}),(0,l.jsx)("p",{className:"text-[11px] text-gray-500 leading-relaxed text-center max-w-2xl mx-auto",children:er("result.disclaimer")})]})]})}}}]); 2//# sourceMappingURL=9957-3bb6d0798e20077b.js.map
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.