1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6810],{16810:(e,r,s)=>{s.r(r),s.d(r,{default:()=>l});var a=s(37876),u=s(89099),t=s(14232);let l=e=>{let{setSearchKeyword:r,collectionName:s}=e,l=(0,t.useRef)(null),[c,o]=(0,t.useState)(""),n=(0,u.useRouter)();return(0,t.useEffect)(()=>{var e,s;(null==(e=n.query)?void 0:e.search)!==void 0?(o(n.query.search),r(null==(s=n.query)?void 0:s.search)):(o(""),r(""))},[n.query.search]),(0,t.useEffect)(()=>{var e,s;(null==(e=n.query)?void 0:e.search)!==void 0?r(null==(s=n.query)?void 0:s.search):r("")},[n]),(0,a.jsx)("div",{className:"form-group mb-3",children:(0,a.jsxs)("div",{className:"input-group p-0",children:[(0,a.jsx)("div",{className:"input-group-prepend",children:(0,a.jsx)("span",{className:"input-group-text rounded-0 border-right-0 bg-light pr-0",children:(0,a.jsx)("i",{className:"icon-icon-search"})})}),(0,a.jsx)("label",{htmlFor:"userTripDate",className:"sr-only",children:"Search:"}),(0,a.jsx)("input",{value:c,type:"text",onChange:e=>(e=>{o(e),clearTimeout(l.current),l.current=setTimeout(()=>{if("".concat(n.route,"?search=").concat(e),e)n.push({query:{...n.query,search:e,sortby:"".concat(s,".sortOrder"),page:1},hash:"resultSection"});else{let e={...n.query};delete e.search,n.push({query:{...e}})}},500)})(e.target.value),className:"form-control border-left-0 bg-light",id:"userTripDate",placeholder:"Enter keyword to search"})]})})}}}]);
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.