PageSourceSearch

https://app.endecarb.ai/_next/static/chunks/7423.f4c15e3ff0aaeba8.js

js endecarb.ai collected 2026-10-05 12:06:19 UTC 7,154 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7423],{14027:(e,t,n)=>{n.d(t,{W:()=>l});var r=n(35073),u=n(16895),o=n(14232);let l=(0,o.forwardRef)(function({bounds:e,boundsOptions:t,center:n,children:l,className:i,id:c,placeholder:a,style:f,whenReady:s,zoom:d,...p},m){let[v]=(0,o.useState)({className:i,id:c,style:f}),[h,x]=(0,o.useState)(null),C=(0,o.useRef)(void 0);(0,o.useImperativeHandle)(m,()=>h?.map??null,[h]);let y=(0,o.useCallback)(o=>{if(null!==o&&!C.current){let l=new u.Map(o,p);C.current=l,null!=n&&null!=d?l.setView(n,d):null!=e&&l.fitBounds(e,t),null!=s&&l.whenReady(s),x((0,r.fB)(l))}},[]);(0,o.useEffect)(()=>()=>{h?.map.remove()},[h]);let b=h?o.createElement(r.dk,{value:h},l):a??null;return o.createElement("div",{...v,ref:y},b)})},15071:(e,t,n)=>{n.d(t,{p:()=>i});var r=n(34233),u=n(42526),o=n(35073),l=n(16895);let i=(0,r.Lt)(function({center:e,children:t,...n},r){let i=new l.CircleMarker(e,n);return(0,u.Q)(i,(0,o.W4)(r,{overlayContainer:i}))},function(e,t,n){t.center!==n.center&&e.setLatLng(t.center),null!=t.radius&&t.radius!==n.radius&&e.setRadius(t.radius)})},21937:(e,t,n)=>{n.d(t,{m:()=>i});var r=n(34233),u=n(42526),o=n(16895),l=n(14232);let i=(0,r.wk)(function(e,t){let n=new o.Tooltip(e,t.overlayContainer);return(0,u.Q)(n,t)},function(e,t,{position:n},r){(0,l.useEffect)(function(){let u=t.overlayContainer;if(null==u)return;let{instance:o}=e,l=e=>{e.tooltip===o&&(null!=n&&o.setLatLng(n),o.update(),r(!0))},i=e=>{e.tooltip===o&&r(!1)};return u.on({tooltipopen:l,tooltipclose:i}),u.bindTooltip(o),function(){u.off({tooltipopen:l,tooltipclose:i}),null!=u._map&&u.unbindTooltip()}},[e,t,r,n])})},34233:(e,t,n)=>{n.d(t,{Nq:()=>p,wk:()=>m,Lt:()=>v,X3:()=>h});var r=n(14232),u=n(98477),o=n(35073);function l(e){return(0,r.forwardRef)(function(t,n){let{instance:u,context:l}=e(t).current;(0,r.useImperativeHandle)(n,()=>u);let{children:i}=t;return null==i?null:r.createElement(o.dk,{value:l},i)})}function i(e,t){let n=(0,r.useRef)(t);(0,r.useEffect)(function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function c(e,t){let n=(0,r.useRef)(void 0);(0,r.useEffect)(function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}},[e,t])}var a=n(48420),f=n(42526);function s(e,t){(0,r.useEffect)(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function d(e){return function(t){let n=(0,o.U$)(),r=e((0,a.P)(t,n),n);return i(n.map,t.attribution),c(r.current,t.eventHandlers),s(r.current,n),r}}function p(e,t){return l(d((0,f.K)(e,t)))}function m(e,t){var n,l;return n=(0,f.K)(e),l=function(e,r){let u=(0,o.U$)(),l=n((0,a.P)(e,u),u);return i(u.map,e.attribution),c(l.current,e.eventHandlers),t(l.current,u,e,r),l},(0,r.forwardRef)(function(e,t){let[n,o]=(0,r.useState)(!1),{instance:i}=l(e,o).current;(0,r.useImperativeHandle)(t,()=>i),(0,r.useEffect)(function(){n&&i.update()},[i,n,e.children]);let c=i._contentNode;return c?(0,u.createPortal)(e.children,c):null})}function v(e,t){var n;return l((n=(0,f.K)(e,t),function(e){let t=(0,o.U$)(),u=n((0,a.P)(e,t),t);c(u.current,e.eventHandlers),s(u.current,t);var l=u.current;let i=(0,r.useRef)(void 0);return(0,r.useEffect)(function(){if(e.pathOptions!==i.current){let t=e.pathOptions??{};l.instance.setStyle(t),i.current=t}},[l,e]),u}))}function h(e,t){var n;return n=d((0,f.K)(e,t)),(0,r.forwardRef)(function(e,t){let{instance:u}=n(e).current;return(0,r.useImperativeHandle)(t,()=>u),null})}},35073:(e,t,n)=>{n.d(t,{U$:()=>i,W4:()=>o,dk:()=>l,fB:()=>u});var r=n(14232);function u(e){return Object.freeze({__version:1,map:e})}function o(e,t){return Object.freeze({...e,...t})}let l=(0,r.createContext)(null);function i(){let e=(0,r.use)(l);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}},37423:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var r=n(37876),u=n(14232),o=n(73138),l=n(14027),i=n(76002),c=n(15071),a=n(21937),f=n(16895),s=n.n(f);n(71782),delete s().Icon.Default.prototype._getIconUrl;let d={High:"#78C679",Medium:"#FAAC68",Low:"#DA6C6C"},p=e=>{let{locations:t}=e,n=(0,o.ko)();return(0,u.useEffect)(()=>
1{if(0===t.length)return void n.setView([22.5,79],5);if(1===t.length)return void n.setView(t[0].position,10);let e=s().latLngBounds(t.map(e=>e.position));n.fitBounds(e,{padding:[40,40],maxZoom:12})},[t,n]),null},m=e=>{let{className:t,locations:n}=e,{center:o,zoom:f}=(0,u.useMemo)(()=>{if(!n||0===n.length)return{center:[22.5,79],zoom:5};let e=n.map(e=>e.position[0]),t=n.map(e=>e.position[1]),r=(Math.min(...e)+Math.max(...e))/2,u=(Math.min(...t)+Math.max(...t))/2,o=Math.max(Math.max(...e)-Math.min(...e),Math.max(...t)-Math.min(...t)),l=5;return{center:[r,u],zoom:o<1?10:o<5?7:o<15?5:4}},[n]),s=(0,u.useMemo)(()=>n&&0!==n.length?n.map(e=>({position:e.position,label:e.label,confidence:e.confidence,radius:"High"===e.confidence?18:"Medium"===e.confidence?15:12,opacity:.55})):[],[n]);return(0,r.jsx)("div",{className:"w-full h-full ".concat(t||""),children:(0,r.jsxs)(l.W,{center:o,zoom:f,scrollWheelZoom:!0,dragging:!0,zoomControl:!1,attributionControl:!1,style:{height:"100%",width:"100%",borderRadius:"0.5rem"},minZoom:4,maxZoom:14,children:[(0,r.jsx)(i.e,{url:"https://tile.openstreetmap.de/{z}/{x}/{y}.png",maxZoom:19}),(0,r.jsx)(p,{locations:n||[]}),s.map((e,t)=>{let n=d[e.confidence]||"#78C679";return(0,r.jsx)(c.p,{center:e.position,radius:e.radius,pathOptions:{fillColor:n,fillOpacity:e.opacity,color:n,weight:1.5,opacity:e.opacity+.15},children:(0,r.jsx)(a.m,{direction:"top",offset:[0,-10],children:(0,r.jsxs)("div",{className:"text-xs",children:[(0,r.jsx)("div",{className:"font-semibold",children:e.label}),(0,r.jsxs)("div",{className:"text-gray-500",children:["Confidence: ",e.confidence]})]})})},"validation-circle-".concat(t))})]})})}},42526:(e,t,n)=>{n.d(t,{K:()=>o,Q:()=>u});var r=n(14232);function u(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function o(e,t){return null==t?function(t,n){let u=(0,r.useRef)(void 0);return u.current||(u.current=e(t,n)),u}:function(n,u){let o=(0,r.useRef)(void 0);o.current||(o.current=e(n,u));let l=(0,r.useRef)(n),{instance:i}=o.current;return(0,r.useEffect)(function(){l.current!==n&&(t(i,n,l.current),l.current=n)},[i,n,t]),o}}},48420:(e,t,n)=>{n.d(t,{P:()=>r});function r(e,t){let n=e.pane??t.pane;return n?{...e,pane:n}:e}},73138:(e,t,n)=>{n.d(t,{Po:()=>l,ko:()=>o});var r=n(35073),u=n(14232);function o(){return(0,r.U$)().map}function l(e){let t=o();return(0,u.useEffect)(function(){return t.on(e),function(){t.off(e)}},[t,e]),t}},76002:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(34233),u=n(48420),o=n(42526),l=n(16895);let i=(0,r.X3)(function({url:e,...t},n){let r=new l.TileLayer(e,(0,u.P)(t,n));return(0,o.Q)(r,n)},function(e,t,n){let{opacity:r,zIndex:u}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=u&&u!==n.zIndex&&e.setZIndex(u);let{url:o}=t;null!=o&&o!==n.url&&e.setUrl(o)})}}]);

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.