1import{i as e,o as t,r as n}from"./loadReactComponent.klM2aHgP.chunk.js";import{S as r,a as i,l as a}from"./api.generated.UyoyPTsa.chunk.js";import{n as o}from"./index.esm.C60KMlrF.chunk.js";import{t as s}from"./SearchFormAutocomplete.va81amlX.chunk.js";import{t as c}from"./SearchForm.gI-CMMNm.chunk.js";t();var l=e();n(a.SearchInputComponent,({model:e})=>{let{register:t,getValues:n,setValue:a}=o(),u=async t=>{let n=e.searchPageUrl||`/sok`,r=t.replace(/</g,``).replace(/script>/g,``).replace(/(\\|\/)/,``),i=n.startsWith(`https://`)?`${n}?q=${r}`:`${window.location.origin}${n}?q=${r}`;window.location.assign(i)},d={searchLabel:e.searchLabel,searchText:e.searchText,searchButtonText:e.searchButtonText,resetSearchText:r(`ResetSearchText`,`Nullstill søk`),searchId:e.searchId};return(0,l.jsx)(l.Fragment,{children:e.useAutocomplete?(0,l.jsx)(s,{model:d,onSubmit:u,register:t,getValues:n,setValue:a,language:e.autocompleteLanguage,searchType:e.searchType,filterType:i.GlobalSearch}):(0,l.jsx)(c,{model:d,onSubmit:u,register:t,getValues:n,searchType:e.searchType})})});
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.