PageSourceSearch

https://menzil.ai/_next/static/chunks/1576.090bbf50da763af1.js

js menzil.ai collected 2026-10-02 01:13:54 UTC 15,432 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1576],{17026:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(95155);function l(e){let{burstKey:t,color:r="#4f46e5",praise:l,placement:n="above"}=e;return t?(0,a.jsxs)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[Array.from({length:7},(e,t)=>{let l=t/7*Math.PI*2-Math.PI/2,n=18+t%2*7;return(0,a.jsx)("span",{className:"save-particle absolute left-1/2 top-1/2 -ml-0.5 -mt-0.5 h-1 w-1 rounded-full",style:{backgroundColor:t%3==2?"#fbbf24":r,"--px":`${Math.round(Math.cos(l)*n)}px`,"--py":`${Math.round(Math.sin(l)*n)}px`}},t)}),l&&(0,a.jsx)("span",{className:`save-praise absolute left-1/2 z-20 -translate-x-1/2 whitespace-nowrap ${"below"===n?"-bottom-8":"-top-8"} rounded-full bg-[#111827]/95 px-2.5 py-1 text-[10px] font-bold text-[#f9fafb] shadow-lg ring-1 ring-white/20`,children:l})]},t):null}},26133:(e,t,r)=>{r.d(t,{$Q:()=>u,Ay:()=>m});var a=r(95155),l=r(12115),n=r(57406),s=r(26614),i=r(75118),o=r(28727);let c="pk.eyJ1Ijoia2FtaWxocyIsImEiOiJjbXBsbnluOXUwNjd6MnVxdWs2c29jcm45In0.bcHa66TWIQLsFGrsiiWMpg",u={longitude:49.8326,latitude:40.4093,zoom:11},d=[[49.55,40.2],[50.65,40.7]],p={};function m(e){let{className:t,initialViewState:r=u,maxBounds:m=d,forceDark:f=!1,brandTheme:h=!1,children:x,mapRef:g,onReady:C,cameraKey:y,interactiveLayerIds:b,onMouseMove:w,onMouseLeave:v,onClick:j,onLoad:k,onMoveEnd:z,interactive:M=!0,scrollZoom:_}=e,{locale:L}=(0,i.Y)(),{resolved:N}=(0,o.D)(),$=(0,l.useRef)(null),E=g??$,R=(0,l.useRef)(C);R.current=C;let I=(0,l.useCallback)(e=>{let t="ru"===L||"en"===L?L:"az",r=e.getStyle();if(r?.layers){for(let a of r.layers)if("symbol"===a.type&&"composite"===a.source)try{e.setLayoutProperty(a.id,"text-field",["coalesce",["get",`name_${t}`],["get","name_az"],["get","name"]])}catch{}}},[L]),[P,A]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=window.setTimeout(()=>A(!0),2500);return()=>window.clearTimeout(e)},[]);let S=(0,l.useCallback)(e=>{I(e.target),A(!0),R.current?.(E.current),k?.(e)},[I,E,k]);(0,l.useEffect)(()=>{let e=E.current?.getMap();if(!e)return;e.isStyleLoaded()&&(I(e),A(!0),R.current?.(E.current));let t=()=>I(e);e.on("styledata",t);let r=e.getCanvas(),a=()=>{console.warn("[map] WebGL context lost"),s.default.capture("map_webgl_context_lost",{path:window.location.pathname})},l=()=>console.warn("[map] WebGL context restored");return r.addEventListener("webglcontextlost",a),r.addEventListener("webglcontextrestored",l),()=>{e.off("styledata",t),r.removeEventListener("webglcontextlost",a),r.removeEventListener("webglcontextrestored",l)}},[I,E]);let Z=y&&p[y]?p[y]:r;return c?(0,a.jsxs)(n.Ay,{ref:E,mapboxAccessToken:c,initialViewState:{...u,...Z},maxBounds:m??void 0,mapStyle:f||h&&"dark"===N?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/streets-v12",reuseMaps:!0,onLoad:S,onMoveEnd:e=>{(e=>{if(!y)return;let{longitude:t,latitude:r,zoom:a,bearing:l,pitch:n}=e.viewState;p[y]={longitude:t,latitude:r,zoom:a,bearing:l,pitch:n}})(e),z?.(e)},interactiveLayerIds:b,onMouseMove:w,onMouseLeave:v,onClick:j,dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,dragPan:M,scrollZoom:M&&(_??!0),doubleClickZoom:M,touchZoomRotate:M,keyboard:M,attributionControl:!1,style:{width:"100%",height:"100%",opacity:+!!P,transition:"opacity 360ms ease-out"},className:t,children:[(0,a.jsx)(n.z0,{compact:!0,position:"bottom-right"}),x]}):(0,a.jsx)("div",{className:`flex items-center justify-center bg-gray-100 text-xs text-gray-500 ${t??""}`,children:"Mapbox token missing - set NEXT_PUBLIC_MAPBOX_TOKEN."})}},63740:(e,t,r)=>{function a(e){return e.replace(/\/uploads\/(full|thumbnail)\//,"/uploads/f460x345/")}function l(e){return e?e.replace("/uploads/thumbnail/","/uploads/f460x345/"):null}r.d(t,{Q:()=>l,p:()=>a})},80520:(e,t,r)=>{r.d(t,{Cw:()=>p,EM:()=>o,JM:()=>i,Zd:()=>s,qP:()=>u,wZ:()=>a});let a=["bina.az","emlak.az","ev10.az","arenda.az"],l=a.map(e=>e.replace(/\./g,"\\.")).join("|"),n=RegExp(`https?://(?:www\\.)?(?:${l})/[^\\s]+`,"i");function s(e){if(!e)return null;let t=e.match(n);return t?t[0].replace(/[.,);\]!?'"»]+$/,""):null}function i(e){let t=e.trim();return!(t.length<18)&&!!/^https?:\/\//i.test(t)&&n.test(t)}function o(e){let t;if(!e)return null;let r=e.trim();if(!r||/\s/.test(r)||(r.match(/https?:\/\//gi)||[]).length>1)return null;try{t=new URL(r.includes("://")?r:`https://${r}`)}catch{return null}let a=t.hostname.toLowerCase().replace(/^(?:www|m|ru|en|az)\./,"");if("bina.az"===a){let e=t.pathname.match(/\/(\d{4,})/);return e?`bina.az:${e[1]}`:null}if("emlak.az"===a){let e=t.pathname.match(/^\/(\d+)-.*\.html$/i);return e?`emlak.az:${e[1]}`:null}if("ev10.az"===a){let e=t.pathname.match(/\/posting\/(\d+)/i)||t.pathname.match(/\/(\d{4,})(?:\/|$)/);return e?`ev10.az:${e[1]}`:null}if("arenda.az"===a){let e=t.pathname.replace(/^\/+|\/+$/g,""),r=(e.match(/-/g)||[]).length;if(e&&!e.includes("/")&&/^(satilir|kiraye-ayliq|kiraye-gunluk|kiraye)-/.test(e)&&(/-\d+$/.test(e)||r>=5))return`arenda.az:${e}`}return null}let c=new Set(["tap.az","yeniemlak.az","ipoteka.az","lalafo.az","bakubina.az","property-azerbaijan.com","azeriamlak.az"]);function u(e){let t;if(!e)return null;let r=e.trim();if(!r)return null;try{t=new URL(r.includes("://")?r:`https://${r}`)}catch{return null}let a=t.hostname.toLowerCase().replace(/^(?:www|m|ru|en|az)\./,"");return c.has(a)?a:null}let d={bina_az:"bina.az",emlak_az:"emlak.az",ev10_az:"ev10.az",arenda_az:"arenda.az"};function p(e,t){if(e)try{let t=new URL(e).hostname.toLowerCase().replace(/^(?:www|m|ru|en|az)\./,"");if(t)return t}catch{}let r=(t??"").toLowerCase();return d[r]??(r?r.replace(/_/g,"."):"bina.az")}},86721:(e,t,r)=>{r.d(t,{R:()=>n});var a=r(95155);r(12115);let l=(0,a.jsxs)("g",{transform:"translate(7 65)",fill:"#ffffff",children:[(0,a.jsx)("path",{d:"M241.151 25.5924C232.218 28.3924 227.951 31.059 187.151 59.459C67.1513 142.792 72.8846 138.526 66.4846 151.192C60.618 162.792 60.4846 179.059 66.218 186.926C67.9513 189.326 68.3513 189.059 73.2846 183.992C77.2846 179.859 135.285 138.392 137.151 138.392C137.418 138.392 134.618 143.326 130.885 149.326C105.818 190.926 92.218 236.526 92.0846 279.059C92.0846 321.459 104.751 340.926 133.818 343.326C143.018 344.126 143.5
151 343.992 142.618 341.592C134.885 321.726 130.485 293.459 131.685 270.392C132.351 255.859 136.351 228.126 138.618 222.392C139.018 221.192 140.618 224.659 142.351 230.392C146.618 244.926 151.818 253.992 160.618 262.526C174.751 276.526 194.751 283.326 217.151 281.859C230.618 281.059 238.351 278.926 250.218 272.926C261.018 267.459 269.285 261.726 276.218 254.659C279.418 251.459 282.218 249.059 282.485 249.326C282.751 249.592 283.685 255.192 284.485 261.726C288.751 296.259 298.485 317.326 316.485 330.792C332.085 342.526 333.951 342.926 381.818 343.326C417.951 343.726 423.285 343.459 419.818 341.992C409.818 337.459 403.285 329.192 399.685 316.259C397.685 309.459 397.285 299.326 396.618 240.392L395.818 172.392L378.485 160.926L361.151 149.459L360.751 222.259C360.485 291.459 360.618 295.592 363.151 305.726C366.351 318.126 372.618 328.526 380.885 334.526L386.485 338.792L381.685 337.992C367.951 335.992 351.285 323.992 341.818 309.726C326.351 285.992 319.951 254.392 317.951 193.059C316.885 163.192 316.485 157.992 313.818 150.792C310.485 141.192 302.885 131.859 294.085 126.659C288.485 123.459 286.485 123.059 275.685 123.059C264.485 123.059 263.018 123.326 253.418 128.126C241.551 133.992 226.751 147.592 218.485 160.392C204.485 181.726 188.885 219.859 191.951 224.792C192.751 225.992 196.618 228.659 200.485 230.659C206.218 233.726 209.151 234.392 217.151 234.392H226.751L229.685 223.326C233.285 210.126 243.551 187.992 251.285 177.059C261.285 162.792 271.285 159.859 277.551 169.059C280.351 173.192 280.618 174.926 280.218 183.726C279.951 191.859 279.018 195.459 275.418 202.792C260.351 233.192 221.951 251.192 197.418 239.326C188.885 235.059 179.951 225.992 176.351 217.859C161.285 183.592 185.285 121.726 231.818 74.9257C245.418 61.1924 259.551 50.7924 269.151 47.7257C272.085 46.659 278.751 45.5924 283.818 45.1924L293.151 44.3924L282.485 37.059C264.218 24.659 253.551 21.7257 241.151 25.5924Z"}),(0,a.jsx)("path",{d:"M275.285 56.5257C264.751 59.3257 255.951 64.659 245.951 73.9923L237.151 82.259L243.818 78.9257C249.685 75.9923 251.818 75.5923 260.485 76.1257C267.418 76.3923 272.351 77.5923 276.485 79.7257C279.685 81.3257 304.351 97.7257 331.151 116.126C357.951 134.526 389.818 156.392 401.951 164.526C414.085 172.792 425.951 181.592 428.218 184.259C430.485 186.926 432.618 189.059 432.885 189.059C433.285 189.059 434.885 185.992 436.485 182.126C442.485 168.126 438.218 150.659 425.818 138.392C422.485 135.059 406.618 123.459 390.485 112.392C374.351 101.459 352.485 86.5257 341.818 79.059C321.418 65.059 311.551 59.859 298.485 56.3923C288.885 53.9923 284.751 53.9923 275.285 56.5257Z"}),(0,a.jsx)("path",{d:"M183.151 292.392C183.151 295.859 184.085 302.259 185.285 306.792C191.285 330.126 203.285 340.526 227.418 343.192C234.085 343.992 235.418 343.726 234.751 342.259C226.751 323.726 223.285 310.926 223.151 299.726C223.018 288.126 223.551 288.392 207.418 288.392C199.551 288.392 190.885 287.859 188.218 287.192L183.151 286.126V292.392Z"}),(0,a.jsx)("path",{d:"M361.145 55.005L394.899 77.5006C394.899 77.5006 397.61 93.4307 394.899 96.2324C391.044 100.217 386.846 97.9662 386.846 97.9662L361.145 80.505L361.145 55.005Z"})]});function n(e){let{size:t=96,variant:r="full"}=e;return"circle"===r?(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",fill:"none",children:[(0,a.jsx)("circle",{cx:"256",cy:"256",r:"256",fill:"#4f46e5"}),(0,a.jsx)("g",{transform:"translate(64 64) scale(0.75)",children:l})]}):(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",fill:"none",children:["full"===r&&(0,a.jsx)("rect",{width:"512",height:"512",rx:"96",fill:"#4f46e5"}),l]})}},93818:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(95155),l=r(23327),n=r(52056),s=r(93499);let i={critical:{wrap:"bg-rose-50 border-rose-200 text-rose-900",icon:"text-rose-600"},warning:{wrap:"bg-amber-50 border-amber-200 text-amber-900",icon:"text-amber-600"},info:{wrap:"bg-sky-50 border-sky-200 text-sky-900",icon:"text-sky-600"}};function o(e){let{advisories:t,className:r=""}=e;return t&&0!==t.length?(0,a.jsx)("div",{className:`space-y-2 ${r}`,children:t.map(e=>{let t=i[e.severity]??i.info,r="info"===e.severity?l.A:n.A;return(0,a.jsx)("div",{className:`rounded-xl border p-3 ${t.wrap}`,children:(0,a.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,a.jsx)(r,{className:`w-4 h-4 shrink-0 mt-0.5 ${t.icon}`}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[e.title&&(0,a.jsx)("p",{className:"text-sm font-semibold leading-snug",children:e.title}),e.body&&(0,a.jsx)("p",{className:"mt-0.5 text-sm leading-relaxed opacity-90 whitespace-pre-line",children:e.body}),(()=>{let t=e.source_urls&&e.source_urls.length>0?e.source_urls:e.source_url?[e.source_url]:[];return e.date||0!==t.length?(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs opacity-70",children:[e.date&&(0,a.jsx)("span",{className:"tabular-nums",children:e.date}),t.map((e,t)=>(0,a.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 font-medium underline-offset-2 hover:underline",children:[(0,a.jsx)(s.A,{className:"w-3 h-3"}),function(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch{return"source"}}(e)]},t))]}):null})()]})]})},e.id||e.title)})}):null}},96420:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var a=r(95155),l=r(12115),n=r(57406),s=r(35299),i=r(26133),o=r(86613),c=r(75118),u=r(96443),d=r(2596),p=r(4232);let m="my-pins",f="my-pins-clusters";function h(e){return null==e.latitude||null==e.longitude?null:{type:"Feature",properties:{listing_id:e.listing_id,external_id:function(e){let t=e.indexOf(":");return t>=0?e.slice(t+1):e}(e.listing_id),url:e.url,overpriced_pct:e.ai_overpriced_pct,color:e.status?p.Nv[e.status]:p.Yq},geometry:{type:"Point",coordinates:[e.longitude,e.latitude]}}}let x={id:f,type:"circle",filter:["has","point_count"],paint:{"circle-color":["step",["get","point_count"],"#64748b",25,"#475569",100,"#334155"],"cir
1cle-radius":["step",["get","point_count"],16,25,22,100,30],"circle-opacity":.85,"circle-stroke-width":2,"circle-stroke-color":"#ffffff"}},g={id:"my-pins-cluster-count",type:"symbol",filter:["has","point_count"],layout:{"text-field":["get","point_count_abbreviated"],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":12},paint:{"text-color":"#ffffff"}},C={id:m,type:"circle",filter:["!",["has","point_count"]],paint:{"circle-radius":8,"circle-color":["get","color"],"circle-stroke-width":2,"circle-stroke-color":"#ffffff"}};function y(e){let{hiddenStatuses:t,preview:r=!1}=e,p=(0,c.k)(),{pins:y,ready:b}=(0,u.useMyPins)(),w=(0,l.useRef)(null),[v,j]=(0,l.useState)(!1),k=(0,l.useMemo)(()=>y.filter(e=>null!=e.latitude&&null!=e.longitude),[y]),z=(0,l.useMemo)(()=>k.filter(e=>!t?.has(e.status??"none")),[k,t]),M=(0,l.useMemo)(()=>({type:"FeatureCollection",features:z.map(h).filter(e=>null!==e)}),[z]),[_,L]=(0,l.useState)(null),N=(0,l.useRef)(!1);(0,l.useEffect)(()=>{if(!v||N.current||0===k.length)return;let e=w.current?.getMap();if(!e)return;let t=1/0,r=1/0,a=-1/0,l=-1/0;for(let e of k)t=Math.min(t,e.longitude),a=Math.max(a,e.longitude),r=Math.min(r,e.latitude),l=Math.max(l,e.latitude);let n=()=>{1===k.length?e.easeTo({center:[t,r],zoom:14,duration:400}):e.fitBounds([[t,r],[a,l]],{padding:64,maxZoom:15,duration:400}),N.current=!0};e.isStyleLoaded()?n():e.once("idle",n)},[v,k]);let $=(0,l.useCallback)(e=>{let t=e.features?.[0];if(!t?.properties)return;let r=w.current?.getMap();if(r&&t.properties.cluster){let e=t.properties.cluster_id,a=r.getSource("my-pins-src");a?.getClusterExpansionZoom(e,(e,a)=>{if(e||null==a)return;let[l,n]=t.geometry.coordinates;r.easeTo({center:[l,n],zoom:a,duration:400})});return}let a=t.properties.listing_id,l=t.properties.external_id,n=t.properties.url||(a.startsWith("bina_az:")?`https://bina.az/items/${l}`:null);L({externalId:l,listingId:a,sourceUrl:n,overpricedPct:t.properties.overpriced_pct??null})},[]),E=(0,l.useCallback)(e=>{let t=w.current?.getMap();t&&(t.getCanvas().style.cursor=e.features?.length?"pointer":"")},[]);return(0,a.jsxs)("div",{className:"relative h-full",children:[(0,a.jsx)(i.Ay,{brandTheme:!0,mapRef:w,cameraKey:"map",interactiveLayerIds:[f,m],onClick:$,onMouseMove:E,onReady:()=>j(!0),children:(0,a.jsxs)(n.kL,{id:"my-pins-src",type:"geojson",data:M,cluster:!0,clusterRadius:50,clusterMaxZoom:14,children:[(0,a.jsx)(n.Wd,{...x}),(0,a.jsx)(n.Wd,{...g}),(0,a.jsx)(n.Wd,{...C})]})}),!r&&b&&0===k.length&&(0,a.jsxs)("div",{className:"absolute inset-0 z-20 flex flex-col items-center justify-center gap-2 bg-gray-50/80 text-center text-gray-500 backdrop-blur-sm dark:bg-black/40",children:[(0,a.jsx)("div",{className:"h-20 w-20",children:(0,a.jsx)(d.aM,{})}),(0,a.jsx)("p",{className:"max-w-xs px-4 text-sm",children:p("mymap.empty")})]}),!r&&!b&&(0,a.jsx)("div",{className:"absolute inset-0 z-20 flex items-center justify-center bg-gray-50/60",children:(0,a.jsx)(s.A,{className:"h-6 w-6 animate-spin text-gray-400"})}),(0,a.jsx)(o.default,{externalId:_?.externalId??null,listingId:_?.listingId??null,sourceUrl:_?.sourceUrl??null,overpricedPct:_?.overpricedPct??null,onClose:()=>L(null),showMiniMap:!1,fromMyMap:!0})]})}}}]);
2//# sourceMappingURL=1576.090bbf50da763af1.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.