1import{Et as e,H as t,Qt as n,S as r,b as i,d as a,f as o,i as s,m as c,ot as l,p as u,pt as d,st as f,vt as p,y as m}from"./CNCeTGz-.js";import{f as h,u as g}from"./CRzDnRe2.js";import{u as _}from"./fqv3gwfj.js";import{t as v}from"./BDNMzG2s.js";import{t as y}from"./cJie3aHq2.js";import{t as b}from"./Ci1ty7x8.js";import{t as x}from"./Y5ELL26G.js";import{n as S,t as C}from"./BxE1Jr2l.js";var w={class:`dig-dat-search`},T=[`placeholder`],E=Object.assign(v(r({__name:`DigDatSearch`,props:{placeholder:{}},setup(n){let r=p(``),o=()=>{if(r.value.trim()){let e=r.value.trim().replace(/[^A-Z0-9\s]/gi,``),t=`https://inyourarea.digdat.co.uk/seswater?pc=${encodeURIComponent(e)}`;window.open(t,`_blank`)}};return(s,l)=>{let u=y;return t(),c(`div`,w,[f(a(`input`,{"onUpdate:modelValue":l[0]||=e=>d(r)?r.value=e:null,class:`dig-dat-search__postcode-input`,name:`postcode`,"aria-label":`Postcode search`,placeholder:n.placeholder||`Enter postcode`,onKeyup:h(o,[`enter`])},null,40,T),[[g,e(r)]]),a(`button`,{class:`dig-dat-search__search-button`,type:`button`,"aria-label":`search`,onClick:o},[i(u,{class:`search-button__icon`,name:`search`,"aria-hidden":`true`})])])}}}),[[`__scopeId`,`data-v-c1fc49f4`]]),{__name:`DigDatSearch`}),D={class:`in-your-area__search-container`},O=Object.assign(v(r({__name:`index`,props:{inYourArea:{},isMyAccount:{type:Boolean}},setup(e){let r=e,i=S(),{search:d}=i,f=async e=>{if(e){i.setSearchValue(e),r.isMyAccount?(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:`postCodeSearch`,search_reason:`MA In Your Area`})):(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:`postCodeSearch`,search_reason:`In Your Area`}));let[t,n]=e,a={path:r.inYourArea.url,query:{mapLngLat:`${t},${n}`,mapZoom:10}};await _(a)}};return(e,i)=>{let d=b,p=x,h=E,g=C;return t(),c(s,null,[r.inYourArea.heading?(t(),o(d,{key:0,class:`heading`,tag:`h4`},{default:l(()=>[m(n(r.inYourArea.heading),1)]),_:1})):u(``,!0),r.inYourArea.secondary?(t(),o(p,{key:1},{default:l(()=>[m(n(r.inYourArea.secondary),1)]),_:1})):u(``,!0),a(`div`,D,[r.inYourArea.useDigDatSearch?(t(),o(h,{key:0,placeholder:r.inYourArea.placeholder,"constant-placeholder":r.isMyAccount},null,8,[`placeholder`,`constant-placeholder`])):(t(),o(g,{key:1,placeholder:r.inYourArea.placeholder,"constant-placeholder":r.isMyAccount,onSelected:f},null,8,[`placeholder`,`constant-placeholder`]))])],64)}}}),[[`__scopeId`,`data-v-88e8e7d0`]]),{__name:`InYourArea`});export{O as t};
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.