PageSourceSearch

https://menzil.ai/_next/static/chunks/4079.5823d9fc50fed16b.js

js menzil.ai collected 2026-10-02 01:14:06 UTC 4,753 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4079],{26133:(e,t,o)=>{o.d(t,{$Q:()=>d,Ay:()=>p});var a=o(95155),r=o(12115),l=o(57406),n=o(26614),s=o(75118),i=o(28727);let c="pk.eyJ1Ijoia2FtaWxocyIsImEiOiJjbXBsbnluOXUwNjd6MnVxdWs2c29jcm45In0.bcHa66TWIQLsFGrsiiWMpg",d={longitude:49.8326,latitude:40.4093,zoom:11},u=[[49.55,40.2],[50.65,40.7]],m={};function p(e){let{className:t,initialViewState:o=d,maxBounds:p=u,forceDark:f=!1,brandTheme:g=!1,children:y,mapRef:b,onReady:x,cameraKey:h,interactiveLayerIds:v,onMouseMove:w,onMouseLeave:j,onClick:k,onLoad:L,onMoveEnd:E,interactive:M=!0,scrollZoom:_}=e,{locale:C}=(0,s.Y)(),{resolved:N}=(0,i.D)(),W=(0,r.useRef)(null),z=b??W,I=(0,r.useRef)(x);I.current=x;let T=(0,r.useCallback)(e=>{let t="ru"===C||"en"===C?C:"az",o=e.getStyle();if(o?.layers){for(let a of o.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{}}},[C]),[B,R]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=window.setTimeout(()=>R(!0),2500);return()=>window.clearTimeout(e)},[]);let S=(0,r.useCallback)(e=>{T(e.target),R(!0),I.current?.(z.current),L?.(e)},[T,z,L]);(0,r.useEffect)(()=>{let e=z.current?.getMap();if(!e)return;e.isStyleLoaded()&&(T(e),R(!0),I.current?.(z.current));let t=()=>T(e);e.on("styledata",t);let o=e.getCanvas(),a=()=>{console.warn("[map] WebGL context lost"),n.default.capture("map_webgl_context_lost",{path:window.location.pathname})},r=()=>console.warn("[map] WebGL context restored");return o.addEventListener("webglcontextlost",a),o.addEventListener("webglcontextrestored",r),()=>{e.off("styledata",t),o.removeEventListener("webglcontextlost",a),o.removeEventListener("webglcontextrestored",r)}},[T,z]);let P=h&&m[h]?m[h]:o;return c?(0,a.jsxs)(l.Ay,{ref:z,mapboxAccessToken:c,initialViewState:{...d,...P},maxBounds:p??void 0,mapStyle:f||g&&"dark"===N?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/streets-v12",reuseMaps:!0,onLoad:S,onMoveEnd:e=>{(e=>{if(!h)return;let{longitude:t,latitude:o,zoom:a,bearing:r,pitch:l}=e.viewState;m[h]={longitude:t,latitude:o,zoom:a,bearing:r,pitch:l}})(e),E?.(e)},interactiveLayerIds:v,onMouseMove:w,onMouseLeave:j,onClick:k,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:+!!B,transition:"opacity 360ms ease-out"},className:t,children:[(0,a.jsx)(l.z0,{compact:!0,position:"bottom-right"}),y]}):(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."})}},34079:(e,t,o)=>{o.r(t),o.d(t,{default:()=>s});var a=o(95155),r=o(12115),l=o(57406),n=o(26133);function s(e){let{lat:t,lng:o,pois:s,selectedIdx:i}=e,c=(0,r.useRef)(null),d=(0,r.useMemo)(()=>({type:"FeatureCollection",features:s.map((e,t)=>({type:"Feature",id:t,properties:{name:e.name,idx:t,selected:t===i},geometry:{type:"Point",coordinates:[e.lng,e.lat]}}))}),[s,i]),u=null!=i&&s[i]?s[i]:null;return(0,r.useEffect)(()=>{let e=c.current?.getMap();if(!e)return;if(u)return void e.flyTo({center:[u.lng,u.lat],zoom:16,duration:500});if(0===s.length)return void e.jumpTo({center:[o,t],zoom:15});let a=o,r=o,l=t,n=t;for(let e of s)e.lng<a&&(a=e.lng),e.lng>r&&(r=e.lng),e.lat<l&&(l=e.lat),e.lat>n&&(n=e.lat);e.fitBounds([[a,l],[r,n]],{padding:40,maxZoom:15,duration:500})},[u,s,t,o]),(0,a.jsx)("div",{className:"aspect-[16/10] rounded-xl overflow-hidden border border-gray-200 relative",children:(0,a.jsxs)(n.Ay,{mapRef:c,interactive:!1,maxBounds:null,initialViewState:{longitude:o,latitude:t,zoom:15},children:[(0,a.jsx)(l.pH,{longitude:o,latitude:t,anchor:"bottom",children:(0,a.jsx)("div",{className:"w-5 h-5 -mb-2 rounded-full bg-indigo-700 border-2 border-white shadow-md"})}),(0,a.jsxs)(l.kL,{id:"nearby-pois-src",type:"geojson",data:d,promoteId:"idx",children:[(0,a.jsx)(l.Wd,{id:"nearby-pois-border",type:"circle",paint:{"circle-radius":["case",["==",["get","selected"],!0],14,10],"circle-color":["case",["==",["get","selected"],!0],"#4f46e5","#ffffff"]}}),(0,a.jsx)(l.Wd,{id:"nearby-pois",type:"circle",paint:{"circle-radius":["case",["==",["get","selected"],!0],12,8],"cir
1cle-color":["case",["==",["get","selected"],!0],"#312e81","#4f46e5"],"circle-opacity":["case",["==",["get","selected"],!0],1,.85]}})]}),u&&null!=i&&(0,a.jsx)(l.zD,{longitude:u.lng,latitude:u.lat,anchor:"bottom",offset:18,closeButton:!1,closeOnClick:!1,className:"nearby-popup",children:(0,a.jsxs)("span",{className:"text-xs font-semibold text-gray-900",children:[i+1,". ",u.name]})})]})})}}}]);
2//# sourceMappingURL=4079.5823d9fc50fed16b.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.