PageSourceSearch

https://usachev.estate/_next/static/chunks/836-5dc496f86ce89839.js

js usachev.estate collected 2026-10-08 18:15:32 UTC 10,297 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[836],{2165:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(95155),a=n(87831);function i(t){let{listing:e,className:n=""}=t,i=e.closedSale?"":(0,a.$g)(e.price,e.currency);return i?(0,r.jsx)("span",{className:n,children:i}):e.isSold?null:(0,r.jsx)("span",{className:n,children:"Цена по запросу"})}},9508:(t,e,n)=>{n.d(e,{Cw:()=>s,E:()=>c,rB:()=>o});var r=n(12115),a=n(86009);let i=[];class l extends a.V{has(t){return this.read().some(e=>e.id===t)}toggle(t){let e=this.read();return e.some(e=>e.id===t.id)?(this.write(e.filter(e=>e.id!==t.id)),!1):(this.write([function(t){let{description:e,seoDescription:n,...r}=t;return{...r,gallery:[]}}(t),...e]),!0)}remove(t){this.write(this.read().filter(e=>e.id!==t))}constructor(){super("usachev:favorites",i)}}let c=new l;function o(){return(0,r.useSyncExternalStore)(c.subscribe,c.getSnapshot,c.getServerSnapshot)}function s(t){return o().some(e=>e.id===t)}},14617:(t,e,n)=>{function r(t){let e="string"==typeof t?t.trim():"";return e?/^https?:\/\//i.test(e)?e:e.startsWith("//")?null:e.startsWith("/")?e:null:null}function a(t){return t.map(r).filter(t=>null!==t)}n.d(e,{XT:()=>o,b8:()=>r,gh:()=>a,nD:()=>i});let i="(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw",l=[400,800,1600],c=/-(\d+)\.webp$/;function o(t){let e="string"==typeof t?t.match(c):null;if(!e)return;let n=Number(e[1]),r=l.filter(t=>t<=n);if(!(r.length<2))return r.map(e=>"".concat(t.replace(c,"-".concat(e,".webp"))," ").concat(e,"w")).join(", ")}},21086:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var r=n(95155),a=n(12115),i=n(14617);function l(t){let{src:e,alt:n,className:l,fallback:c=null,loading:o="lazy",sizes:s}=t,[u,d]=(0,a.useState)(!1),h=(0,i.b8)(e),f=!!h&&!u,m=(0,i.XT)(h),p=(0,a.useCallback)(t=>{(null==t?void 0:t.complete)&&0===t.naturalWidth&&d(!0)},[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"contents",children:c}),f&&(0,r.jsx)("img",{ref:p,src:h,srcSet:m,sizes:m?s:void 0,alt:n,loading:o,referrerPolicy:"no-referrer",className:l,onError:()=>d(!0)})]})}},23441:(t,e,n)=>{n.d(e,{DB:()=>d,R4:()=>o,dK:()=>a,i6:()=>r,lr:()=>u,rF:()=>s});let r="Закрытая продажа";function a(t,e){return t.closedSale&&(null==e||""===e)}let i=[{label:"Этаж",values:["4 из 12","7 из 21","12 из 25","2 из 9"]},{label:"Комнат",values:["3","4","5","6"]},{label:"Санузлов",values:["2","3","4"]},{label:"Потолки",values:["3,2 м","3,6 м","4,1 м"]},{label:"Год постройки дома",values:["2014","2018","2021"]},{label:"Цена за метр",values:["890 000 ₽","1 120 000 ₽","1 480 000 ₽"]}],l=["Москва, ЦАО, Пресненский район","Москва, ЦАО, район Хамовники","Москва, ЗАО, район Раменки","Москва, ЮЗАО, Гагаринский район"];function c(t,e){return t[function(t){let e=0;for(let n=0;n<t.length;n+=1)e=(31*e+t.charCodeAt(n))%1e5;return e}(e)%t.length]}function o(t){return i.map(e=>{let{label:n,values:r}=e;return{label:n,value:c(r,t.id+n)}})}function s(t){return"".concat(c(i[1].values,t.id+"Комнат"),"-комн.")}function u(t){return"".concat(c(i[0].values,t.id+"Этаж")," эт.")}function d(t){return c(l,t.id+"Адрес")}},24716:(t,e,n)=>{n.d(e,{Gf:()=>a,Jm:()=>l,b_:()=>c,yr:()=>r});let r={secondary:"Жилая недвижимость",new_building:"Новостройки",commercial:"Коммерция",country:"Загородная недвижимость"},a={sale:"Продажа",rent:"Аренда"},i={studio:"Студия",free_plan:"Свободная планировка",multi_room:"Многоквартирная"},l=t=>(function(t,e){return e&&t[e]||null})(r,t),c=t=>(function(t,e){return e&&t[e]||null})(i,t)},33021:(t,e,n)=>{function r(t){return"/listings/".concat(t.slug||t.id)}function a(t){return"/brokers/".concat(t.slug||t.id)}n.d(e,{G:()=>r,J:()=>a})},35246:(t,e,n)=>{n.d(e,{W:()=>r,s:()=>a});let r="data-favorites-anchor";function a(t){let e=function(){for(let t of document.querySelectorAll("[".concat(r,"]"))){let e=t.getBoundingClientRect();if(e.width>0&&e.height>0)return e}return null}();if(!e||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let n=t.left+t.width/2-12,a=t.top+t.height/2-12,i=e.left+e.width/2-12-n,l=e.top+e.height/2-12-a,c=document.createElement("div");c.className="heart-flight",c.style.left="".concat(n,"px"),c.style.top="".concat(a,"px"),c.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>',document.body.appendChild(c),c.animate([{transform:"translate(0, 0) scale(0.6)",opacity:.9},{transform:"translate(".concat(.5*i,"px, ").concat(.5*l-70,"px) scale(1.5)"),opacity:1,offset:.5},{transform:"translate(".concat(i,"px, ").concat(l,"px) scale(0.35)"),opacity:0}
1],{duration:900,easing:"cubic-bezier(0.22, 1, 0.36, 1)"}).finished.catch(()=>{}).finally(()=>c.remove())}},49605:(t,e,n)=>{n.d(e,{PL:()=>o,XG:()=>s});var r=n(87831),a=n(24716);let i={commercial:{label:"Помещение",fullLabel:"Коммерческое помещение"},country:{label:"Дом",roomsAdjective:"комнатный",fullLabel:"Загородный дом"}},l={label:"Квартира",roomsAdjective:"комнатная"};function c(t){return t.endsWith("ая")?"".concat(t.slice(0,-2),"ую"):t.endsWith("я")?"".concat(t.slice(0,-1),"ю"):t.endsWith("а")?"".concat(t.slice(0,-1),"у"):t}function o(t){return[function(t){var e,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nominative",a="accusative"===r?c:t=>t;if(t.closedSale)return"Объект";let o=null!=(e=i[t.category])?e:l;return 0===t.rooms&&o.roomsAdjective?a("Студия"):t.rooms&&o.roomsAdjective?"".concat(t.rooms,"-").concat(a(o.roomsAdjective)," ").concat(a((n=o.label).charAt(0).toLowerCase()+n.slice(1))):a(o.fullLabel||o.label)}(t),(0,r.Jd)(t.area),t.residentialComplex?"в ЖК \xab".concat(t.residentialComplex,"\xbb"):t.district?"в районе ".concat(t.district):""].filter(Boolean).join(" ")}function s(t){return[(0,a.b_)(t.layout)||(t.rooms?"".concat(t.rooms,"-комн."):null),(0,r.Jd)(t.area)||null,t.floor?"".concat((0,r._4)(t.floor,t.totalFloors)," эт."):null].filter(Boolean).join(" \xb7 ")}},64248:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(95155),a=n(23441);function i(t){let{className:e=""}=t;return(0,r.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full bg-white text-[#0a0a0a] dark:bg-black dark:text-white border border-black/10 dark:border-white/15 px-3.5 py-1.5 text-[9px] font-bold uppercase tracking-[0.22em] ".concat(e),children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"h-1.5 w-1.5 shrink-0 rounded-full bg-brand"}),a.i6]})}},71113:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(95155);function a(t){let{className:e=""}=t;return(0,r.jsx)("img",{src:"/images/stamp/sold.webp",alt:"Продано",width:560,height:560,loading:"lazy",className:"pointer-events-none select-none opacity-[0.22] dark:opacity-[0.38] ".concat(e)})}},86009:(t,e,n)=>{n.d(e,{V:()=>r});class r{read(){return this.loaded||(this.cache=this.parse(),this.loaded=!0),this.cache}write(t){this.cache=t,this.loaded=!0;try{window.localStorage.setItem(this.key,JSON.stringify(t))}catch(t){}this.emit()}clear(){this.cache=this.empty,this.loaded=!0;try{window.localStorage.removeItem(this.key)}catch(t){}this.emit()}parse(){try{let t=window.localStorage.getItem(this.key);return t?JSON.parse(t):this.empty}catch(t){return this.empty}}emit(){for(let t of this.listeners)t()}constructor(t,e){this.key=t,this.empty=e,this.loaded=!1,this.listeners=new Set,this.subscribe=t=>(this.listeners.add(t),1===this.listeners.size&&window.addEventListener("storage",this.onStorage),()=>{this.listeners.delete(t),0===this.listeners.size&&window.removeEventListener("storage",this.onStorage)}),this.getSnapshot=()=>this.read(),this.getServerSnapshot=()=>this.empty,this.onStorage=t=>{(null===t.key||t.key===this.key)&&(this.loaded=!1,this.emit())},this.cache=e}}},87831:(t,e,n)=>{function r(t){return Math.round(Math.abs(t)).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"\xa0")}function a(t){if(null==t)return"";let e=Math.round(100*t)/100;return Number.isInteger(e)?r(e):r(Math.trunc(e))+","+String(Math.abs(e)).split(".")[1]}n.d(e,{$g:()=>c,Jd:()=>u,LS:()=>h,_4:()=>d,lD:()=>l,tH:()=>o,zG:()=>s});let i={RUB:"₽",USD:"$",EUR:"€"};function l(t){var e;return null!=(e=i[(t||"").trim().toUpperCase()])?e:i.RUB}function c(t,e){return t?"".concat(r(t)).concat("\xa0").concat(l(e)):""}function o(t,e){if(!t)return"";let n=l(e);return t>=1e9?"".concat(a(t/1e9)).concat("\xa0","млрд").concat("\xa0").concat(n):t>=1e6?"".concat(a(Math.round(t/1e5)/10)).concat("\xa0","млн").concat("\xa0").concat(n):c(t,e)}function s(t,e){return t?"".concat(r(t)).concat("\xa0").concat(l(e),"/м\xb2"):""}function u(t){return t?"".concat(a(t)).concat("\xa0","м\xb2"):""}function d(t,e){return t?e?"".concat(t," из ").concat(e):String(t):""}function h(t,e){let n=Math.abs(t)%100,r=n%10;return n>10&&n<20?e[2]:1===r?e[0]:r>=2&&r<=4?e[1]:e[2]}},89914:(t,e,n)=>{n.d(e,{default:()=>o});var r=n(95155),a=n(12115),i=n(83457),l=n(9508),c=n(35246);function o(t){let{listing:e,variant:n="overlay",className:o=""}=t,s=(0,l.Cw)(e.id),u=(0,a.useRef)(null);return(0,r.jsx)("button",{ref:u,type:"button",onClick:function(t){t.preventDefault(),t.stopPropagation(),l.E.toggle(e)&&u.current&&(0,c.s)(u.current.getBoundingClientRect())},"aria-pressed":s,"aria-label":s?"Убрать из избранного":"Добавить в избранное",title:s?"Убрать из избранного":"Добавить в избранное",className:"fav-btn fav-btn--".concat(n," ").concat(s?"fav-btn--on":""," ").concat(o),children:(0,r.jsx)(i.A,{size:"action"===n?18:16,fill:s?"currentColor":"none"})})}},95249:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(95155);function a(t){let{children:e,className:n=""}=t;return(0,r.jsx)("span",{"aria-hidden":"true",className:"inline-block select-none blur-[5px] opacity-70 pointer-events-none ".concat(n),children: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.