1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8642],{1282:(e,t,n)=>{n.d(t,{AuthNav:()=>a});var r=n(2434),s=n(9098),i=n(4396),o=n.n(i);function a(e){let{locale:t}=e,n="en"===t,i="et"===t?"/konto":`/${t}/konto`,[a,c]=(0,s.useState)(void 0);return((0,s.useEffect)(()=>{let e=!0;return fetch("/api/auth/me",{credentials:"include"}).then(e=>e.json()).then(t=>{e&&c(t.user)}).catch(()=>{e&&c(null)}),()=>{e=!1}},[]),void 0===a)?(0,r.jsx)("span",{className:"inline-block w-5 h-5","aria-hidden":"true"}):a?(0,r.jsxs)(o(),{href:i,className:"inline-flex items-center gap-1.5 text-white hover:text-white/80 hover:no-underline","aria-label":"ru"===t?`ÐккаÑнÑ: ${a.displayName}`:n?`Account: ${a.displayName}`:`Konto: ${a.displayName}`,title:a.displayName,children:[(0,r.jsx)("span",{className:"w-[22px] h-[22px] bg-white/15 text-white flex items-center justify-center font-mono font-bold text-[10px] leading-none",children:function(e){let t=e.trim().split(/\s+/).filter(Boolean);return 0===t.length?"?":1===t.length?t[0].slice(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}(a.displayName)}),(0,r.jsx)("span",{className:"max-md:hidden font-semibold",children:a.displayName.split(/\s+/)[0]})]}):(0,r.jsxs)("a",{href:`/auth/login?locale=${t}&next=${encodeURIComponent(i)}`,className:"inline-flex items-center gap-1.5 text-white hover:text-white/80 hover:no-underline font-semibold","aria-label":"ru"===t?"ÐойÑи ÑеÑез eeID":n?"Log in with eeID":"Logi sisse eeID-ga",title:"ru"===t?"ÐойÑи ÑеÑез eeID":n?"Log in with eeID":"Logi sisse eeID-ga",children:[(0,r.jsx)(l,{}),(0,r.jsx)("span",{className:"max-md:hidden",children:"ru"===t?"ÐойÑи":n?"Log in":"Logi sisse"})]})}function l(){return(0,r.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),(0,r.jsx)("circle",{cx:"12",cy:"7",r:"4"})]})}},2833:(e,t,n)=>{var r=n(7821);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},4368:(e,t,n)=>{n.d(t,{CookieSettingsLink:()=>s});var r=n(2434);function s(e){let{label:t}=e;return(0,r.jsx)("button",{type:"button",onClick:()=>window.dispatchEvent(new CustomEvent("nimistu:open-consent")),className:"text-[11px] font-mono uppercase tracking-[0.04em] text-white/70 hover:text-white cursor-pointer underline-offset-2 hover:underline",children:t})}},4762:(e,t,n)=>{n.r(t),n.d(t,{SearchInput:()=>c});var r=n(2434);["et","en","ru"].filter(e=>"et"!==e);var s=n(9098),i=n(2833),o=n(4396),a=n.n(o),l=n(9283);function c(e){let{compact:t=!1,placeholder:n="Otsi ettev\xf5tte nime, registrikoodi v\xf5i isiku j\xe4rgiâ¦",locale:o="et"}=e,c="et"===o?"":`/${o}`,d=e=>"company"===e.type?`${c}/${e.slug}`:"person"===e.type?`${c}/isik/${e.slug}`:`${c}/${e.slug}
1#kaubamargid`,[u,h]=(0,s.useState)(""),[m,x]=(0,s.useState)([]),[p,f]=(0,s.useState)(!1),[,k]=(0,s.useTransition)(),v=(0,s.useRef)(null),g=(0,i.useRouter)();(0,s.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),v.current?.focus()),"Escape"===e.key&&(v.current?.blur(),f(!1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,s.useEffect)(()=>{!t&&window.matchMedia("(pointer: fine)").matches&&v.current?.focus()},[t]),(0,s.useEffect)(()=>{if(!u.trim())return void x([]);let e=new AbortController,t=setTimeout(()=>{fetch(`/api/search?q=${encodeURIComponent(u)}`,{signal:e.signal}).then(e=>e.json()).then(e=>{k(()=>x(e.results??[]))}).catch(()=>{})},120);return()=>{clearTimeout(t),e.abort()}},[u]);let b="en"===o?"/en/search":"ru"===o?"/ru/otsing":"/otsing",j=t?"w-full font-sans text-[14px] py-2 pl-9 pr-3.5 border border-border rounded-lg bg-bg text-ink-1 focus:outline-none focus:border-accent focus:bg-surface focus:ring-[3px] focus:ring-accent-soft transition":"w-full font-sans text-[18px] py-[22px] px-5 border border-border-strong rounded-[14px] bg-surface text-ink-1 shadow-[var(--shadow-elevated)] focus:outline-none focus:border-accent focus:ring-4 focus:ring-accent-soft transition";return(0,r.jsxs)("div",{className:"relative",children:[t&&(0,r.jsxs)("svg",{className:"absolute top-1/2 -translate-y-1/2 text-ink-3",style:{left:12},width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,r.jsx)("path",{d:"m21 21-4.3-4.3"})]}),(0,r.jsx)("input",{ref:v,value:u,onChange:e=>h(e.target.value),onFocus:()=>f(!0),onBlur:()=>setTimeout(()=>f(!1),150),onKeyDown:e=>{if("Enter"!==e.key)return;e.preventDefault();let t=u.trim();if(!t)return;if(1===m.length){g.push(d(m[0])),f(!1);return}let n=m.filter(e=>("trademark"===e.type?e.verbalElement:e.name).toLowerCase()===t.toLowerCase());if(1===n.length){g.push(d(n[0])),f(!1);return}t.trim()&&(g.push(`${b}?q=${encodeURIComponent(t.trim())}`),f(!1))},placeholder:n,className:j,autoComplete:"off",spellCheck:!1}),p&&m.length>0&&(0,r.jsxs)("div",{className:(0,l.$)("z-50 bg-surface border border-border rounded-xl shadow-[var(--shadow-elevated)] overflow-hidden text-left",t?"max-md:fixed max-md:left-4 max-md:right-4 max-md:top-[60px] md:absolute md:mt-2 md:w-full":"absolute mt-2 w-full"),children:[m.map((e,t)=>(0,r.jsxs)(a(),{href:d(e),className:"flex items-baseline gap-3 px-4 py-2.5 hover:bg-bg hover:no-underline border-b border-border last:border-b-0",onClick:()=>f(!1),children:[(0,r.jsx)("span",{className:"text-[10px] uppercase tracking-[0.06em] text-ink-3 font-mono w-12 shrink-0",children:"company"===e.type?"en"===o?"CO.":"FIRMA":"person"===e.type?"en"===o?"PERSON":"ISIK":"â¢"}),"trademark"===e.type&&e.imageUrl&&(0,r.jsx)("span",{className:"shrink-0 w-7 h-7 bg-white border border-border rounded flex items-center justify-center p-0.5 -my-0.5",children:(0,r.jsx)("img",{src:e.imageUrl,alt:"",className:"max-w-full max-h-full object-contain"})}),"person"===e.type&&e.photoUrl&&(0,r.jsx)("img",{src:e.photoUrl,alt:"",className:"shrink-0 w-7 h-7 object-cover rounded -my-0.5"}),(0,r.jsx)("span",{className:"font-medium text-ink-1 flex-1 truncate",children:"trademark"===e.type?e.verbalElement:e.name}),"company"===e.type&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"font-mono text-[12px] text-ink-3 shrink-0",children:e.regCode}),e.city&&(0,r.jsxs)("span",{className:"text-[12px] text-ink-3 shrink-0 max-md:hidden",children:["\xb7 ",e.city]})]}),"person"===e.type&&e.birthYear&&(0,r.jsx)("span",{className:"text-[12px] text-ink-3 shrink-0",children:e.birthYear}),"trademark"===e.type&&(0,r.jsxs)("span",{className:"text-[12px] text-ink-3 shrink-0 truncate max-w-[40%]",children:["en"===o?"owner: ":"omanik: ",e.ownerName]})]},`${e.type}-${t}`)),(0,r.jsxs)(a(),{href:`${b}?q=${encodeURIComponent(u.trim())}`,className:"flex items-center gap-3 px-4 py-2.5 hover:bg-bg hover:no-underline bg-bg/60 border-t border-border",onClick:()=>f(!1),children:[(0,r.jsx)("span",{className:"text-[10px] uppercase tracking-[0.06em] text-ink-3 font-mono w-12 shrink-0",children:"en"===o?"ALL":"K\xd5IK"}),(0,r.jsx)("span",{className:"text-[13px] text-accent font-semibold flex-1",children:"en"===o?`View all results for "${u.trim()}"`:`Vaata k\xf5iki tulemusi â${u.trim()}â`}),(0,r.jsx)("span",{className:"text-ink-3 text-[12px] font-mono shrink-0",children:"âµ"})]})]})]})}},5081:(e,t,n)=>{n.d(t,{AccessibilityTrigger:()=>s});var r=n(2434);function s(e){let{label:t}=e,n=()=>window.dispatchEvent(new CustomEvent("nimistu:open-a11y"));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{type:"button",onClick:n,className:"max-md:hidden text-white hover:text-white/80 hover:no-underline cursor-pointer bg-transparent border-0 p-0 font-inherit text-inherit",children:["â ",t]}),(0,r.jsx)("button",{type:"button",onClick:n,"aria-label":t,title:t,className:"md:hidden inline-flex items-center justify-center w-7 h-7 -my-1 text-white/85 hover:text-white cursor-pointer",children:(0,r.jsx)(i,{})})]})}function i(){return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"12",cy:"4",r:"2"}),(0,r.jsx)("path",{d:"M19 8.5a.75.75 0 0 0-.75-.75H5.75a.75.75 0 0 0 0 1.5h4v3.25L7.31 19.2a.75.75 0 1 0 1.38.59L11 13.93l2.31 5.86a.75.75 0 1 0 1.38-.59l-2.44-6.7V9.25h4.5a.75.75 0 0 0 .75-.75Z"})]})}},7394:(e,t,n)=>{n.d(t,{MobileMenu:()=>c});var r=n(2434),s=n(9098),i=n(2833),o=n(4396),a=n.n(o),l=n(4762);function c(e){let{navItems:t,locale:n,searchPlaceholder:o,localeOptions:c,pageSections:h}=e,m="en"===n,x=(e,t,r)=>"en"===n?t:"ru"===n?r:e,[p,f]=(0,s.useState)(!1),[k,v]=(0,s.useState)(null),g=(0,i.usePathname)();(0,s.useEffect)(()=>{f(!1)},[g]),(0,s.useEffect)(()=>{if(!p)return;let e=e=>{"Escape"===e.key&&f(!1)};return window.addEventListener("keydown",e),document.documentElement.style.overflow="hidden",()=>{window.removeEventListener("keydown",e),document.documentElement.style.overflow=""}},[p]),(0,s.useEffect)(()=>{if(!p||!h||0===h.length)return;let e=()=>{let e=new Set;for(let t of h)document.getElementById(t.id)&&e.add(t.id);v(t=>t&&t.size===e.size&&[...e].every(e=>t.has(e))?t:e)};e();let t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0}),()=>t.disconnect()},[p,h]);let b=h&&k?h.filter(e=>k.has(e.id)):[],j=x("Men\xfc\xfc","Menu","ÐенÑ"),w=x("Sulge","Close","ÐакÑÑÑÑ");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>f(!0),"aria-label":j,"aria-expanded":p,className:"md:hidden inline-flex items-center justify-center w-10 h-10 -mr-2 text-ink-1 hover:text-accent cursor-pointer",children:(0,r.jsx)(d,{})}),p&&(0,r.jsxs)("div",{className:"fixed inset-0 z-[70] md:hidden",role:"dialog","aria-modal":"true","aria-label":j,children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/40",onClick:()=>f(!1)}),(0,r.jsxs)("div",{className:"absolute top-0 inset-x-0 bg-surface border-b border-border max-h-[100dvh] overflow-y-auto shadow-elevated",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[(0,r.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-[0.1em] text-ink-3 font-bold",children:j}),(0,r.jsx)("button",{type:"button",onClick:()=>f(!1),"aria-label":w,className:"text-ink-3 hover:text-ink-1 w-8 h-8 inline-flex items-center justify-center cursor-pointer",children:(0,r.jsx)(u,{})})]}),(0,r.jsxs)("div",{className:"p-4 space-y-5",children:[(0,r.jsx)(l.SearchInput,{locale:n,placeholder:o}),(0,r.jsx)("nav",{className:"flex flex-col -my-1",children:t.map(e=>(0,r.jsx)(a(),{href:e.href,onClick:()=>f(!1),className:`py-2.5 text-[18px] font-semibold hover:no-underline ${e.active?"text-accent-ink":"text-accent"}`,children:e.label},e.href))}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 pt-4 border-t border-border text-[14px]",children:[(0,r.jsx)(a(),{href:m?"/en/contact":"ru"===n?"/ru/kontakt":"/kontakt",onClick:()=>f(!1),className:"text-ink-2 hover:text-accent hover:no-underline",children:x("Kontakt","Contact","ÐонÑакÑ")}),(0,r.jsx)(a(),{href:m?"/en/terms":"ru"===n?"/ru/tingimused":"/tingimused",onClick:()=>f(!1),className:"text-ink-2 hover:text-accent hover:no-underline",children:x("Tingimused","Terms","УÑловиÑ")}),(0,r.jsx)("div",{className:"ml-auto flex items-center gap-2.5 font-semibold",children:c.map(e=>(0,r.jsx)("a",{href:e.href,"aria-current":e.current?"true":void 0,className:e.current?"text-accent":"text-ink-2 hover:text-accent hover:no-underline",children:e.loc.toUpperCase()},e.loc))})]}),b.length>0&&(0,r.jsxs)("div",{className:"pt-4 border-t border-border",children:[(0,r.jsx)("div",{className:"font-mono text-[10px] uppercase tracking-[0.1em] text-ink-3 font-bold mb-2.5",children:m?"On this page":"ru"===n?"Ðа ÑÑÑаниÑе":"Lehel"}),(0,r.jsx)("nav",{className:"flex flex-col",children:b.map(e=>(0,r.jsx)("a",{href:`#${e.id}`,onClick:()=>f(!1),className:"py-1.5 text-[14px] text-ink-2 hover:text-accent hover:no-underline",children:e.label},e.id))})]})]})]})]})]})}function d(){return(0,r.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M3 6h18M3 12h18M3 18h18"})})}function u(){return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})})}},8501:(e,t,n)=>{n.d(t,{ThemeSwitcher:()=>c});var r=n(2434),s=n(2833),i=n(9098);let o=["light","system","dark"],a={et:{light:"Hele",system:"S\xfcsteemne",dark:"Tume"},en:{light:"Light",system:"System",dark:"Dark"},ru:{light:"СвеÑлаÑ",system:"СиÑÑемнаÑ",dark:"ТÑмнаÑ"}},l={et:"V\xe4rviteema",en:"Theme",ru:"Тема оÑоÑмлениÑ"};function c(){let e=(0,s.usePathname)(),t="/en"===e||e?.startsWith("/en/")?"en":"et",n=a[t],c=l[t],[u,h]=(0,i.useState)("system"),[m,x]=(0,i.useState)(!1),[p,f]=(0,i.useState)(!1),k=(0,i.useRef)(null),v=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=document.documentElement.dataset.theme;"light"===e||"dark"===e||"system"===e?h(e):h("system"),x(!0)},[]),(0,i.useEffect)(()=>
1{if("system"!==u)return;let e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>{document.documentElement.classList.toggle("dark",e.matches)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[u]),(0,i.useEffect)(()=>{if(!p)return;let e=e=>{k.current?.contains(e.target)||f(!1)},t=e=>{"Escape"===e.key&&(f(!1),v.current?.focus())};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[p]);let g=m?u:"system";return(0,r.jsxs)("div",{ref:k,className:"relative",children:[(0,r.jsx)("button",{ref:v,type:"button",onClick:()=>f(e=>!e),"aria-label":`${c}: ${n[g]}`,"aria-haspopup":"menu","aria-expanded":p,title:n[g],className:"inline-flex items-center justify-center h-8 w-8 text-white/85 hover:text-white transition-colors cursor-pointer",children:(0,r.jsx)(d,{name:g})}),p&&(0,r.jsx)("div",{role:"menu","aria-label":c,className:"absolute right-0 mt-2 min-w-[160px] bg-surface border border-border rounded-lg shadow-elevated py-1 z-50",children:o.map(e=>{let t=m&&u===e;return(0,r.jsxs)("button",{role:"menuitemradio","aria-checked":t,type:"button",onClick:()=>(function(e){h(e),f(!1);try{localStorage.setItem("theme",e)}catch{}let t=document.documentElement;t.dataset.theme=e;let n="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches;t.classList.toggle("dark",n)})(e),className:`w-full flex items-center gap-2.5 px-3 py-2.5 text-[13px] text-left cursor-pointer hover:bg-bg ${t?"text-ink-1 font-medium":"text-ink-2"}`,children:[(0,r.jsx)("span",{className:"text-ink-3",children:(0,r.jsx)(d,{name:e})}),(0,r.jsx)("span",{className:"flex-1",children:n[e]}),t&&(0,r.jsx)("svg",{"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M20 6 9 17l-5-5"})})]},e)})})]})}function d(e){let{name:t}=e;return"light"===t?(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,r.jsx)("path",{d:"M12 2v2"}),(0,r.jsx)("path",{d:"M12 20v2"}),(0,r.jsx)("path",{d:"m4.93 4.93 1.41 1.41"}),(0,r.jsx)("path",{d:"m17.66 17.66 1.41 1.41"}),(0,r.jsx)("path",{d:"M2 12h2"}),(0,r.jsx)("path",{d:"M20 12h2"}),(0,r.jsx)("path",{d:"m6.34 17.66-1.41 1.41"}),(0,r.jsx)("path",{d:"m19.07 4.93-1.41 1.41"})]}):"dark"===t?(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z"})}):(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),(0,r.jsx)("path",{d:"M8 21h8"}),(0,r.jsx)("path",{d:"M12 17v4"})]})}},9283:(e,t,n)=>{function r(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=function e(t){var n,r,s="";if("string"==typeof t||"number"==typeof t)s+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(s&&(s+=" "),s+=r)}else for(r in t)t[r]&&(s&&(s+=" "),s+=r);return s}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{$:()=>r,A:()=>s});let s=r}}]);
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.