PageSourceSearch

https://www.qualite-eau.lu/_next/static/chunks/00ah827j_r59g.js?dpl=dpl_7zmQYRc2xk92Tari89Zwaz1JSNvg

js qualite-eau.lu collected 2026-10-08 03:20:54 UTC 3,924 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68877,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],68877)},66595,20865,e=>{"use strict";var t=e.i(56420);let r=(0,t.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,r],66595);let a=(0,t.default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);e.s(["MapPin",0,a],20865)},84062,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(48148),o=e.i(20133),s=e.i(66595),l=e.i(20865),n=e.i(68877);e.s(["CommuneSearch",0,function({communes:e,placeholder:i,buttonLabel:c}){let u=(0,a.useTranslations)("searchUi"),[m,h]=(0,r.useState)(""),[d,p]=(0,r.useState)(!1),[f,x]=(0,r.useState)(0),b=(0,o.useRouter)(),g=(0,r.useRef)(null),v=(0,r.useMemo)(()=>{if(!m.trim())return[];let t=m.toLowerCase();return e.filter(e=>e.name.toLowerCase().includes(t)).slice(0,8)},[m,e]);function w(e){b.push({pathname:"/communes/[slug]",params:{slug:e}})}return(0,r.useEffect)(()=>{function e(e){g.current?.contains(e.target)||p(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{ref:g,className:"relative w-full max-w-2xl",children:[(0,t.jsxs)("form",{onSubmit:function(e){e.preventDefault();let t=v[f]??v[0];t&&w(t.slug)},className:"flex items-stretch border border-[var(--color-petrol)] bg-[var(--color-bg)] transition focus-within:ring-2 focus-within:ring-[var(--color-teal-500)]",children:[(0,t.jsx)("div",{className:"flex items-center pl-4 text-[var(--color-teal-500)]",children:(0,t.jsx)(s.Search,{className:"h-5 w-5"})}),(0,t.jsx)("input",{type:"text",value:m,onChange:e=>{h(e.target.value),p(!0),x(0)},onFocus:()=>p(!0),onKeyDown:function(e){"ArrowDown"===e.key?(e.preventDefault(),x(e=>Math.min(v.length-1,e+1))):"ArrowUp"===e.key?(e.preventDefault(),x(e=>Math.max(0,e-1))):"Escape"===e.key&&p(!1)},placeholder:i??u("placeholder"),className:"flex-1 bg-transparent px-3 py-4 text-base text-[var(--color-ink)] placeholder:text-[var(--color-ink-mute)] focus:outline-none","aria-label":u("ariaLabel"),autoComplete:"off"}),(0,t.jsxs)("button",{type:"submit",disabled:!v.length,className:"group inline-flex items-center gap-2 bg-[var(--color-petrol)] px-6 font-mono text-[0.72rem] font-semibold uppercase tracking-[0.12em] text-[var(--color-bg)] transition-colors hover:bg-[var(--color-leaf-600)] disabled:bg-[var(--color-rule-strong)] disabled:text-white/70",children:[(0,t.jsx)("span",{className:"hidden sm:inline",children:c??u("button")}),(0,t.jsx)(n.ArrowRight,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]}),d&&v.length>0&&(0,t.jsx)("ul",{className:"absolute left-0 right-0 top-full z-30 mt-1 max-h-96 overflow-auto border border-[var(--color-rule-strong)] bg-[var(--color-surface)] shadow-[var(--shadow-lift)]",children:v.map((e,r)=>(0,t.jsx)("li",{className:"border-b border-[var(--color-rule)] last:border-0",children:(0,t.jsxs)("button",{type:"button",onClick:()=>w(e.slug),onMouseEnter:()=>x(r),className:`flex w-full items-center justify-between gap-3 px-4 py-3 text-left transition-colors ${r===f?"bg-[var(--color-bg-2)]":"hover:bg-[var(--color-bg)]"}`,children:[(0,t.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(l.MapPin,{className:"h-4 w-4 text-[var(--color-teal-500)]"}),(0,t.jsx)("span",{className:"font-display font-medium text-[var(--color-ink)]",children:e.name})]}),(0,t.jsx)("span",{className:"font-mono text-sm text-[var(--color-ink-mute)]",children:null!==e.hardness?`${e.hardness.toFixed(1)} \xb0fH`:u("notAvailable")})]})},e.slug))})]})}])}]);

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.