PageSourceSearch

https://uzinfocom.uz/_next/static/chunks/1732.c59148c9fb71f849.js

js uzinfocom.uz collected 2026-10-02 06:29:58 UTC 4,128 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1732],{71732:function(e,t,r){r.r(t),r.d(t,{default:function(){return v}});var a=r(52676),l=r(17203),s=r(68033),n=r(32699),i=r.n(n),c=r(72323);let o=(0,c.Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),d=(0,c.Z)("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);var u=r(89750),h=r.n(u),p=r(91645),x=r.n(p),g=r(75271),b=r(44055),f=r(43524);let m=e=>{let{data:t}=e;return t.map(e=>{let[t,r,l]=(()=>{switch(e._type){case"news":return["/news/".concat(e.id),e.title,e.image?(0,a.jsx)(h(),{src:e.image,alt:"",width:28,height:28,className:"size-full object-cover"}):null];case"projects":{var t,r;let l=null===(t=(null!==(r=e.images)&&void 0!==r?r:[])[0])||void 0===t?void 0:t.file_dark;return["/projects/".concat(e.slug),e.short_desc,l?(0,a.jsx)(h(),{src:l,alt:"",width:28,height:28,className:"size-full object-cover"}):null]}case"services":return["/services/".concat(e.slug),e.short_desc,e.icon?(0,a.jsx)(h(),{src:e.icon,alt:"",width:28,height:28,className:"size-full object-contain"}):null];case"vacancies":return["/company/career/".concat(e.slug),e.title,(0,a.jsx)(d,{})];default:return[void 0,void 0,null]}})();return t?(0,a.jsxs)(x(),{href:t,className:"flex items-center gap-2 rounded px-2 py-1.5 transition-all hover:dark:bg-white/10",children:[(0,a.jsx)("div",{className:"flex size-7 shrink-0 items-center justify-center overflow-hidden rounded bg-[rgba(7,65,150,1)]",children:l}),(0,a.jsx)("div",{className:"truncate",children:r})]},"".concat(e._type,"-").concat(e.id)):(0,a.jsx)(a.Fragment,{})})};var v=e=>{let{searchOpen:t,setSearchOpen:r}=e,n=(0,f.$G)(),c=g.useRef(null),[d,u]=g.useState("");g.useEffect(()=>{let e=c.current;t&&e&&e.focus()},[t]);let{data:h,mutate:p,error:x}=(0,l.s9V)(),v=(null==x?void 0:x.status)===429,j=g.useMemo(()=>i().debounce(e=>p({requestBody:{search:e}}),400),[p]);g.useEffect(()=>{d&&j(d)},[j,d]);let w=i().uniqWith(i().zip(...Object.entries(null!=h?h:{}).map(e=>{let[t,r]=e;return r.map(e=>({...e,_type:t}))})).flat().filter(e=>e),(e,t)=>e._type==t._type&&e.id==t.id).slice(0,5);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:(0,b.cn)("absolute left-0 top-[2px] size-full rounded-lg h-[calc(100%-4px)]","border-[1.5px] dark:border-white/10 z-[7] transition-all group-[.change-color]:border-[rgba(231,236,245,1)]",{"w-11 border-white/10":!t,"bg-white dark:bg-[rgba(14,31,52,1)]":t}),children:[(0,a.jsx)("button",{className:(0,b.cn)("absolute right-2 top-1/2 z-[8] -translate-y-1/2 p-0.5",{hidden:!t,visible:t}),onClick:()=>r(!t),children:(0,a.jsx)(s.Z,{variant:"Bold",className:"text-black/40 dark:text-white/40"})}),(0,a.jsx)("div",{className:(0,b.cn)({hidden:!t,visible:t}),children:(0,a.jsx)("input",{type:"text",className:(0,b.cn)("text-md absolute left-11 top-1/2 w-[calc(100%-44px)] -translate-y-1/2 rounded-r-md bg-transparent py-2.5 pl-2 pr-10","outline-none focus:outline-none text-[rgba(51,68,95,1)] dark:text-white"),ref:c,value:d,onChange:e=>{var t;return u(null!==(t=e.target.value)&&void 0!==t?t:"")},placeholder:n("global.search")})})]}),(0,a.jsx)("div",{className:(0,b.cn)("absolute left-0 z-[7] w-full rounded-lg translate-y-full transition-all","border-[1.5px] dark:border-white/10","bg-white dark:bg-[rgba(14,31,52,1)]","p-1 min-h-11",{"-bottom-2":t,"bottom-[500px]":!t,"opacity-0":!v&&0==w.length}),children:v?(0,a.jsxs)("p",{className:"px-2 py-1.5 text-sm text-red-500",children:[n("global.search")," — ",n("validations.too-many-requests")]}):(0,a.jsx)(m,{data:w})}),(0,a.jsx)("button",{className:(0,b.cn)("relative w-11 h-full",{"text-[rgba(51,68,95,1)] dark:text-white":t,"text-white group-[.change-color]:text-[#074196]":!t},"hover:bg-white/10 z-[8]","p-2.5 rounded-lg transition-all outline-none focus:outline-none focus:ring-2 focus:ring-current focus:ring-offset-2"),onClick:()=>r(!t),children:(0,a.jsx)(o,{})})]})}}}]);

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.