1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6158],{82723:(_,o,r)=>{r.r(o),r.d(o,{default:()=>s});var e=r(45097),a=r(75851);const s=({location:l})=>{const[n,u]=(0,e.useState)(null),[E,m]=(0,e.useState)(!1);(0,e.useEffect)(()=>{(0,a.Vw)(l,m,u)},[l]);const c=(0,e.useMemo)(()=>({url:"https://www.maps.north-ayrshire.gov.uk/arcgis/rest/services/AGOL/Political_Information/MapServer/3",outFields:["BIOGRAPHY","NAME","WEBLINK","MP","PARTY"],returnGeometry:!0,geometry:n||void 0,where:n?"1=1":"1=0"}),[n]),{data:d,error:i,isLoading:f}=(0,a.Ay)(c);if(!l)return null;if(E)return e.createElement("div",null,"Loading geometry...");if(!n)return e.createElement("div",null,"Invalid location coordinates");if(i)return e.createElement("div",null,"Error: ",i.message);if(f)return e.createElement("div",null,"Loading MSP information...");const t=d?.features[0].attributes;return e.createElement("div",{style:{paddingLeft:"1.5rem"}},t?e.createElement("div",null,e.createElement("p",null,e.createElement("a",{href:t.WEBLINK},t.MP)),e.createElement("p",null,t.NAME),e.createElement("p",null,t.PARTY)):e.createElement("p",null,"No MSP information found for this location."))}}}]);
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.