PageSourceSearch

https://realtifiedai.vercel.app/_next/static/chunks/6981.335249ccc3f28978.js

js realtifiedai.vercel.app collected 2026-10-03 07:36:08 UTC 16,463 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6981],{309:(t,l,e)=>{e.d(l,{U$:()=>r,W4:()=>i,dk:()=>o,fB:()=>a});var n=e(2115);function a(t){return Object.freeze({__version:1,map:t})}function i(t,l){return Object.freeze({...t,...l})}let o=(0,n.createContext)(null);function r(){let t=(0,n.use)(o);if(null==t)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return t}},514:(t,l,e)=>{e.d(l,{K:()=>i,Q:()=>a});var n=e(2115);function a(t,l,e){return Object.freeze({instance:t,context:l,container:e})}function i(t,l){return null==l?function(l,e){let a=(0,n.useRef)(void 0);return a.current||(a.current=t(l,e)),a}:function(e,a){let i=(0,n.useRef)(void 0);i.current||(i.current=t(e,a));let o=(0,n.useRef)(e),{instance:r}=i.current;return(0,n.useEffect)(function(){o.current!==e&&(l(r,e,o.current),o.current=e)},[r,e,l]),i}}},2440:(t,l,e)=>{e.d(l,{Nq:()=>p,Lt:()=>d,X3:()=>m});var n=e(2115);e(7650);var a=e(309);function i(t){return(0,n.forwardRef)(function(l,e){let{instance:i,context:o}=t(l).current;(0,n.useImperativeHandle)(e,()=>i);let{children:r}=l;return null==r?null:n.createElement(a.dk,{value:o},r)})}var o=e(514);function r(t,l){let e=(0,n.useRef)(void 0);(0,n.useEffect)(function(){return null!=l&&t.instance.on(l),e.current=l,function(){null!=e.current&&t.instance.off(e.current),e.current=null}},[t,l])}var c=e(5452);function u(t,l){(0,n.useEffect)(function(){return(l.layerContainer??l.map).addLayer(t.instance),function(){l.layerContainer?.removeLayer(t.instance),l.map.removeLayer(t.instance)}},[l,t])}function s(t){return function(l){let e=(0,a.U$)(),i=t((0,c.P)(l,e),e);return!function(t,l){let e=(0,n.useRef)(l);(0,n.useEffect)(function(){l!==e.current&&null!=t.attributionControl&&(null!=e.current&&t.attributionControl.removeAttribution(e.current),null!=l&&t.attributionControl.addAttribution(l)),e.current=l},[t,l])}(e.map,l.attribution),r(i.current,l.eventHandlers),u(i.current,e),i}}function p(t,l){return i(s((0,o.K)(t,l)))}function d(t,l){var e;return i((e=(0,o.K)(t,l),function(t){let l=(0,a.U$)(),i=e((0,c.P)(t,l),l);r(i.current,t.eventHandlers),u(i.current,l);var o=i.current;let s=(0,n.useRef)(void 0);return(0,n.useEffect)(function(){if(t.pathOptions!==s.current){let l=t.pathOptions??{};o.instance.setStyle(l),s.current=l}},[o,t]),i}))}function m(t,l){var e;return e=s((0,o.K)(t,l)),(0,n.forwardRef)(function(t,l){let{instance:a}=e(t).current;return(0,n.useImperativeHandle)(l,()=>a),null})}},4755:(t,l,e)=>{e.d(l,{W:()=>o});var n=e(309),a=e(5027),i=e(2115);let o=(0,i.forwardRef)(function({bounds:t,boundsOptions:l,center:e,children:o,className:r,id:c,placeholder:u,style:s,whenReady:p,zoom:d,...m},g){let[f]=(0,i.useState)({className:r,id:c,style:s}),[y,h]=(0,i.useState)(null),v=(0,i.useRef)(void 0);(0,i.useImperativeHandle)(g,()=>y?.map??null,[y]);let j=(0,i.useCallback)(i=>{if(null!==i&&!v.current){let o=new a.Map(i,m);v.current=o,null!=e&&null!=d?o.setView(e,d):null!=t&&o.fitBounds(t,l),null!=p&&o.whenReady(p),h((0,n.fB)(o))}},[]);(0,i.useEffect)(()=>()=>{y?.map.remove()},[y]);let _=y?i.createElement(n.dk,{value:y},o):u??null;return i.createElement("div",{...f,ref:j},_)})},5384:(t,l,e)=>{e.d(l,{e:()=>r});var n=e(2440),a=e(5452),i=e(514),o=e(5027);let r=(0,n.X3)(function({url:t,...l},e){let n=new o.TileLayer(t,(0,a.P)(l,e));return(0,i.Q)(n,e)},function(t,l,e){let{opacity:n,zIndex:a}=l;null!=n&&n!==e.opacity&&t.setOpacity(n),null!=a&&a!==e.zIndex&&t.setZIndex(a);let{url:i}=l;null!=i&&i!==e.url&&t.setUrl(i)})},5452:(t,l,e)=>{e.d(l,{P:()=>n});function n(t,l){let e=t.pane??l.pane;return e?{...t,pane:e}:t}},5761:(t,l,e)=>{e.d(l,{it:()=>p,tc:()=>c,OX:()=>s,ri:()=>u,d3:()=>r});let n={"AIG Hospitals":{lat:17.443179,lng:78.366008},"Atrium Mall":{lat:17.446215,lng:78.363875}
1,"BHEL Circle":{lat:17.442062,lng:78.272121},"Bharat Heavy Electricals":{lat:17.484386,lng:78.309456},"Botanical Garden":{lat:17.455502,lng:78.363996},"Care Hospitals":{lat:17.430536,lng:78.372191},"Chirec Public School":{lat:17.462449,lng:78.351733},"Citizen's Hospital":{lat:17.470774,lng:78.311311},"Citizens Hospital":{lat:17.470774,lng:78.311311},"Citizens Specialty Hospital":{lat:17.470774,lng:78.311311},"Continental Hospital":{lat:17.417665,lng:78.339131},"Continental Hospitals":{lat:17.417665,lng:78.339131},"Delhi Public School":{lat:17.41725,lng:78.371904},"Delhi Public School Aerocity":{lat:17.41725,lng:78.371904},"Financial District":{lat:17.404254,lng:78.330521},"GSM Mall":{lat:17.49674,lng:78.335831},"Gachibowli Financial District":{lat:17.399647,lng:78.351242},"Gachibowli Junction":{lat:17.443622,lng:78.351964},"Gaudium School":{lat:17.421756,lng:78.349037},"Gopanpally Junction":{lat:17.427214,lng:78.32893},"HITEC City":{lat:17.449005,lng:78.383138},"IIIT Hyderabad":{lat:17.445496,lng:78.348547},"IKEA Hyderabad":{lat:17.438759,lng:78.375124},"Inorbit Mall":{lat:17.434555,lng:78.386698},"KIMS Hospital":{lat:17.437271,lng:78.482682},"KIMS Hospitals":{lat:17.466147,lng:78.367744},"Khajaguda Lake":{lat:17.414717,lng:78.361488},"Lanco Hills Circle":{lat:17.409584,lng:78.363913},"Lingampally Station":{lat:17.483596,lng:78.315625},"Mindspace Junction":{lat:17.435979,lng:78.381782},Nanakramguda:{lat:17.42178,lng:78.337978},"Nanakramguda Junction":{lat:17.42178,lng:78.337978},"Narsingi ORR":{lat:17.399647,lng:78.351242},"Nehru ORR":{lat:17.420674,lng:78.356667},"Oakridge International":{lat:17.420108,lng:78.363904},"Oakridge International School":{lat:17.420108,lng:78.363904},"Oakridge School":{lat:17.420108,lng:78.363904},"Open Minds School":{lat:17.433523,lng:78.267451},"Rockwell International":{lat:17.386724,lng:78.334754},"SLN Terminus":{lat:17.452308,lng:78.362839},"Sunshine Hospitals":{lat:17.440589,lng:78.486055},"Tellapur Junction":{lat:17.450321,lng:78.300918},"University of Hyderabad":{lat:17.453036,lng:78.327031},"Waverock SEZ":{lat:17.418368,lng:78.34757},"Wipro Circle":{lat:17.426904,lng:78.334449},"Wipro Circle / ISB Road":{lat:17.426153,lng:78.343019},"Wipro SEZ":{lat:17.425789,lng:78.343996}},a={Kokapet:{lat:17.3998,lng:78.3417},Narsingi:{lat:17.3869,lng:78.3485},Puppalaguda:{lat:17.3936,lng:78.3609},Budvel:{lat:17.3353,lng:78.4059},Gopanpally:{lat:17.4635,lng:78.3004},Tellapur:{lat:17.4638,lng:78.2866},Khajaguda:{lat:17.4174,lng:78.3659},Nallagandla:{lat:17.4709,lng:78.3188},Lingampally:{lat:17.4882,lng:78.3161},"Financial District":{lat:17.4147,lng:78.3493},Kondapur:{lat:17.4692,lng:78.3678}},i={Kokapet:a.Kokapet,Tellapur:a.Tellapur,Khajaguda:a.Khajaguda,Kondapur:a.Kondapur,Nallagandla:a.Nallagandla,Lingampally:a.Lingampally,Puppalaguda:a.Puppalaguda,Narsingi:a.Narsingi,Budvel:a.Budvel,"Financial District":a["Financial District"]},o={lat:17.4288,lng:78.3546};function r(t){var l;return null!=(l=i[t])?l:o}function c(){return o}function u(t){var l;let e=null!=(l=a[t.locality])?l:o,n=(t.mapPoint.x-50)*8e-4,i=(50-t.mapPoint.y)*55e-5;return{lat:Number((e.lat+i).toFixed(6)),lng:Number((e.lng+n).toFixed(6))}}function s(t,l){let e=n[l.label];if(e)return e;let a=u(t);
1return{lat:Number((a.lat+(50-l.y)*3575e-7).toFixed(6)),lng:Number((a.lng+(l.x-50)*5200000000000001e-19).toFixed(6))}}function p(t,l){return l.lat<=t.north&&l.lat>=t.south&&l.lng<=t.east&&l.lng>=t.west}},6264:(t,l,e)=>{e.d(l,{p:()=>r});var n=e(2440),a=e(514),i=e(309),o=e(5027);let r=(0,n.Nq)(function({position:t,...l},e){let n=new o.Marker(t,l);return(0,a.Q)(n,(0,i.W4)(e,{overlayContainer:n}))},function(t,l,e){l.position!==e.position&&t.setLatLng(l.position),null!=l.icon&&l.icon!==e.icon&&t.setIcon(l.icon),null!=l.zIndexOffset&&l.zIndexOffset!==e.zIndexOffset&&t.setZIndexOffset(l.zIndexOffset),null!=l.opacity&&l.opacity!==e.opacity&&t.setOpacity(l.opacity),null!=t.dragging&&l.draggable!==e.draggable&&(!0===l.draggable?t.dragging.enable():t.dragging.disable())})},6981:(t,l,e)=>{e.r(l),e.d(l,{ProjectLocalityMap:()=>M});var n=e(5155),a=e(2115),i=e(5027),o=e(2440),r=e(514),c=e(309);let u=(0,o.Lt)(function({center:t,children:l,...e},n){let a=new i.Circle(t,e);return(0,r.Q)(a,(0,c.W4)(n,{overlayContainer:a}))},function(t,l,e){l.center!==e.center&&t.setLatLng(l.center),null!=l.radius&&l.radius!==e.radius&&t.setRadius(l.radius)});var s=e(4755),p=e(6264),d=e(8142),m=e(5384),g=e(7054),f=e(5761),y=e(1373);let h=s.W,v=p.p,j=d.R,_=m.e,b={15:7500,30:15e3,45:22500};function x(t){return t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function k(t,l){let e=(l.lat-t.lat)*Math.PI/180,n=(l.lng-t.lng)*Math.PI/180,a=Math.sin(e/2)**2+Math.cos(t.lat*Math.PI/180)*Math.cos(l.lat*Math.PI/180)*Math.sin(n/2)**2,i=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))*6371,o=Math.max(1,Math.round(i/25*60));return{distanceKm:i,distanceLabel:i>=10?String(Math.round(i)):i.toFixed(1),minutesLabel:String(o)}}function N(t){let{projectPoint:l,nearbyPoints:e}=t,n=(0,g.ko)(),i=(0,a.useMemo)(()=>[l.lat,l.lng],[l.lat,l.lng]);return(0,a.useEffect)(()=>{let t=n.getContainer(),l=window.setTimeout(()=>{n.invalidateSize()},200);if("undefined"==typeof ResizeObserver)return()=>{window.clearTimeout(l)};let e=new ResizeObserver(()=>{n.invalidateSize()});return e.observe(t),()=>{e.disconnect(),window.clearTimeout(l)}},[n]),(0,a.useEffect)(()=>{let t=e.filter(t=>k(l,t).distanceKm<=7);if(t.length>0){let l=[i,...t.map(t=>[t.lat,t.lng])];n.fitBounds(l,{padding:[44,44],maxZoom:14})}else n.flyTo(i,14,{duration:.45})},[i,l,e,n]),null}function w(t){let{isPlaceModeActive:l,onMapPick:e}=t;return(0,g.Po)({click(t){l&&e({lat:t.latlng.lat,lng:t.latlng.lng})}}),null}function M(t){var l;let{project:e,visiblePlaces:o,selectedNearbyPlace:r,showCommutePlanner:c,commuteWindow:s,commuteOptions:p,onSelectPlace:d,onTogglePlanner:m,onSelectCommuteWindow:g}=t,[M,C]=(0,a.useState)(!1),[S,I]=(0,a.useState)(null),[L,E]=(0,a.useState)([]),O=(0,a.useMemo)(()=>(0,f.ri)(e),[e]),P=(0,a.useMemo)(()=>[O.lat,O.lng],[O.lat,O.lng]),H=(0,a.useMemo)(()=>o.map(t=>(0,f.OX)(e,t)),[e,o]),R=(0,a.useMemo)(()=>{var t,l;return null!=(l=null!=(t=o.find(t=>t.label===r))?t:o[0])?l:null},[r,o]),z=(0,a.useMemo)(()=>R?(0,f.OX)(e,R):null,[e,R]),A=(0,a.useMemo)(()=>S?{label:"My place",point:S}:R&&z?{label:R.label,point:z}:null,[S,R,z]),K=(0,a.useMemo)(()=>A?k(O,A.point):null,[O,A]);function B(){c||m(),C(!0)}return(0,a.useEffect)(()=>{if(!M)return;let t=t=>{"Escape"===t.key&&C(!1)};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[M]),(0,a.useEffect)(()=>{let t=!1;return async function(){if(!A)return E([]);let l=[[O.lat,O.lng],[A.point.lat,A.point.lng]];E(l);try{var e,n,a,i;let o=await fetch("https://router.project-osrm.org/route/v1/driving/".concat(O.lng,",").concat(O.lat,";").concat(A.point.lng,",").concat(A.point.lat,"?overview=full&geometries=geojson"));if(!o.ok)throw Error("OSRM route lookup failed");let r=await o.json(),c=null!=(i=null==r||null==(a=r.routes)||null==(n=a[0])||null==(e=n.geometry)?void 0:e.coordinates)?i:[],u=c.length?c.map(t=>{let[l,e]=t;return[e,l]}):l;t||E(u)}catch(e){t||E(l)}}(),()=>{t=!0}},[O,A]),(0,n.jsxs)("div",{className:"project-locality-map",children:[(0,n.jsxs)("div",{className:"project-locality-map__leaflet-shell",children:[(0,n.jsxs)("div",{className:"project-locality-map__planner-stack",children:[(0,n.jsxs)("button",{className:"project-locality-add",type:"button",onClick:B,children:[(0,n.jsxs)("svg",{className:"project-locality-add__icon","aria-hidden":"true",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,n.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"18"}),(0,n.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12"})]}),(0,n.jsxs)("span",{className:"project-locality-add__title",children:["Add Location ",(0,n.jsx)("span",{className:"project-locality-add__sub",children:"Drop a pin for a route"})]})]}),c?(0,n.jsxs)("div",{className:"project-locality-map__planner",children:[(0,n.jsx)("div",{className:"project-locality-map__commute-options",children:p.map(t=>(0,n.jsx)("button",{className:s===t.value?"project-locality-map__commute-option project-locality-map__commute-option--active":"project-locality-map__commute-option",type:"button",onClick:()=>g(t.value),children:t.label},t.value))}),(0,n.jsxs)("p",{className:"project-locality-map__planner-note",children:["Approximate catchment plus live route preview from the project, using a ",25," km/h city drive assumption."]})]}):null]}),(0,n.jsxs)(h,{attributionControl:!1,center:P,className:"project-locality-map__leaflet",scrollWheelZoom:!0,zoom:14,zoomControl:!1,children:[(0,n.jsx)(_,{attribution:"\xa9 OpenStreetMap contributors",url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,n.jsx)(N,{projectPoint:O,nearbyPoints:H}),(0,n.jsx)(w,{isPlaceModeActive:M,onMapPick:t=>{I(t),C(!1)}}),c?(0,n.jsx)(u,{center:P,pathOptions:{className:"project-locality-map__catchment-circle",fillOpacity:.16,opacity:.8,weight:2},radius:b[s]}):null,L.length>=2?(0,n.jsx)(j,{pathOptions:{className:"project-locality-map__route-line",opacity:.92,weight:3},positions:L}):null,(0,n.jsx)(v,{icon:(l=e.name,(0,i.divIcon)({className:"map-pin-icon project-locality-map__marker-icon",html:'<span class="project-locality-map__pin project-locality-map__pin--project" aria-label="'.concat(x(l),'" role="img"><span class="project-locality-map__pin-core"></span></span>'),iconSize:[28,28],iconAnchor:[14,14]})),position:P,title:e.name,eventHandlers:{click:()=>{o[0]&&d(o[0].label)}}}),o.map(t=>{let l=(0,f.OX)(e,t);return(0,n.jsx)(v,{icon:function(t,l){let e=l?x(t.label):"",n=["project-locality-map__pin project-locality-map__pin--poi",l?"project-locality-map__pin--active":"project-locality-map__pin--dot"].join(" ");return(0,i.divIcon)({className:"map-pin-icon project-locality-map__marker-icon",html:l?'<span class="'.concat(n,'" aria-label="').concat(x(t.label),'" role="img">').concat(e,"</span>"):'<span class="'.concat(n,'" aria-label="').concat(x(t.label),'" role="img"><span class="project-locality-map__poi-dot"></span></span>'),iconSize:l?[148,32]:[18,18],iconAnchor:l?[74,16]:[9,9]})}(t,r===t.label),position:[l.lat,l.lng],title:t.label,eventHandlers:{click:()=>{I(null),d(t.label)}}},t.label)}),S?(0,n.jsx)(v,{icon:(0,i.divIcon)({className:"map-pin-icon project-locality-map__marker-icon",html:'<span class="project-locality-map__pin project-locality-map__pin--my-place" aria-label="My place" role="img"><span class="project-locality-map__pin-core"></span></span>',iconSize:[24,24],iconAnchor:[12,12]}),position:[S.lat,S.lng],title:"My place"}):null]}),M?(0,n.jsx)("span",{className:"project-locality-map__map-hint",children:"Click the map to drop your pin. Press Esc to cancel."}):null]}),(0,n.jsxs)("div",{className:"project-locality-map__controls",children:[(0,n.jsx)(y.$n,{variant:"ghost",size:"sm",className:["project-locality-map__my-place-button",M?"project-locality-map__my-place-button--active":""].filter(
1Boolean).join(" "),onClick:B,children:"+ Add your place"}),(0,n.jsx)("span",{className:"project-locality-map__place-hint",children:M?"Click on the map to drop your pin. Esc cancels.":"Click a mapped place to preview the route from the project."})]}),A&&K?(0,n.jsxs)("div",{className:"project-locality-map__my-place-summary",children:[(0,n.jsx)("p",{children:"".concat(A.label," → ").concat(e.name,": ~").concat(K.distanceLabel," km \xb7 ~").concat(K.minutesLabel," min drive (approx)")}),(0,n.jsxs)("div",{className:"project-locality-map__route-actions",children:[(0,n.jsx)("a",{className:"project-locality-map__directions-link",href:"https://www.google.com/maps/dir/?api=1&origin=".concat(O.lat,",").concat(O.lng,"&destination=").concat(A.point.lat,",").concat(A.point.lng,"&travelmode=driving"),rel:"noreferrer",target:"_blank",children:"Get directions"}),S?(0,n.jsx)("button",{"aria-label":"Clear my place",className:"project-locality-map__my-place-clear",onClick:()=>{I(null),C(!1)},type:"button",children:(0,n.jsx)("span",{"aria-hidden":"true",children:"\xd7"})}):null]})]}):null]})}},7054:(t,l,e)=>{e.d(l,{Po:()=>o,ko:()=>i});var n=e(309),a=e(2115);function i(){return(0,n.U$)().map}function o(t){let l=i();return(0,a.useEffect)(function(){return l.on(t),function(){l.off(t)}},[l,t]),l}},8142:(t,l,e)=>{e.d(l,{R:()=>r});var n=e(2440),a=e(514),i=e(309),o=e(5027);let r=(0,n.Lt)(function({positions:t,...l},e){let n=new o.Polyline(t,l);return(0,a.Q)(n,(0,i.W4)(e,{overlayContainer:n}))},function(t,l,e){l.positions!==e.positions&&t.setLatLngs(l.positions)})}}]);

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.