PageSourceSearch

https://www.real.press/_next/static/chunks/app/page-d384993aab9b826d.js?dpl=dpl_Ez14EzpN1utYHsLd5q1wY7mX2Tfk

js real.press collected 2026-10-02 02:06:10 UTC 9,082 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{84912:function(e,t,n){Promise.resolve().then(n.t.bind(n,72972,23)),Promise.resolve().then(n.t.bind(n,42293,23)),Promise.resolve().then(n.bind(n,81907)),Promise.resolve().then(n.bind(n,14898))},99376:function(e,t,n){"use strict";var a=n(35475);n.o(a,"useParams")&&n.d(t,{useParams:function(){return a.useParams}}),n.o(a,"usePathname")&&n.d(t,{usePathname:function(){return a.usePathname}}),n.o(a,"useRouter")&&n.d(t,{useRouter:function(){return a.useRouter}}),n.o(a,"useSearchParams")&&n.d(t,{useSearchParams:function(){return a.useSearchParams}})},14898:function(e,t,n){"use strict";n.d(t,{SearchBar:function(){return u}});var a=n(57437),r=n(99376),o=n(2265),s=n(50350),c=n.n(s),i=n(39537);let l="search-suggestions-listbox";function u(e){let{defaultValue:t="",isPrivate:n,isLoggedIn:s=!1}=e,u=(0,r.useRouter)(),[_,p]=(0,o.useState)(t),[g,d]=(0,o.useState)(!!s&&null!=n&&n),[h,m]=(0,o.useState)([]),[f,v]=(0,o.useState)(!1),[S,x]=(0,o.useState)(-1),[C,b]=(0,o.useTransition)(),D=(0,o.useRef)(null),w=(0,o.useRef)(null),B=(0,o.useRef)(null),T=(0,o.useCallback)(e=>{let t=(null!=e?e:_).trim();t&&(v(!1),m([]),b(()=>{u.push("/search?q=".concat(encodeURIComponent(t)).concat(g?"&private=1":""))}))},[_,u,g]),y=(0,o.useCallback)(e=>{v(!1),m([]),x(-1),"article"===e.category&&e.id?u.push("/content/".concat(e.id)):"topic"===e.category&&e.id?u.push("/analytics/topics/".concat(e.id)):(p(e.text),T(e.text))},[u,T]),k=(0,o.useCallback)(e=>{var t;if(null===(t=B.current)||void 0===t||t.abort(),!e.trim()){m([]),v(!1);return}let n=new AbortController;B.current=n,fetch("/api/suggestions?q=".concat(encodeURIComponent(e)),{signal:n.signal}).then(e=>e.json()).then(e=>{n.signal.aborted||(m(e.suggestions||[]),v((e.suggestions||[]).length>0),x(-1))}).catch(()=>{})},[]),N=(0,o.useCallback)(()=>{fetch("/api/suggestions/history",{method:"DELETE"}).then(()=>{m(e=>e.filter(e=>"recent"!==e.category)),_.trim()&&k(_)}).catch(()=>{})},[_,k]);return(0,o.useEffect)(()=>{let e=e=>{D.current&&!D.current.contains(e.target)&&v(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,o.useEffect)(()=>()=>{var e;w.current&&clearTimeout(w.current),null===(e=B.current)||void 0===e||e.abort()},[]),(0,o.useEffect)(()=>{let e=e=>{if("/"===e.key&&!["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName)){var t;e.preventDefault();let n=null===(t=D.current)||void 0===t?void 0:t.querySelector("input");null==n||n.focus()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),(0,a.jsxs)("div",{className:c().wrapper,ref:D,children:[(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),T()},className:c().form,action:"/search",method:"get","aria-busy":C,children:[(0,a.jsxs)("div",{className:c().inputWrapper,children:[(0,a.jsx)("input",{type:"search",name:"q",value:_,onChange:e=>{let t=e.target.value;p(t),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>k(t),250)},onKeyDown:e=>{if(!f||0===h.length){"Enter"===e.key&&(e.preventDefault(),T());return}switch(e.key){case"ArrowDown":e.preventDefault(),x(e=>e<h.length-1?e+1:0);break;case"ArrowUp":e.preventDefault(),x(e=>e>0?e-1:h.length-1);break;case"Enter":e.preventDefault(),S>=0&&S<h.length?y(h[S]):T();break;case"Escape":e.preventDefault(),v(!1),x(-1)}},onFocus:()=>{h.length>0&&v(!0)},onBlur:()=>{setTimeout(()=>v(!1),150)},placeholder:"Search...",className:c().input,autoComplete:"off",disabled:C,role:"combobox","aria-expanded":f,"aria-autocomplete":"list","aria-controls":l,"aria-activedescendant":S>=0?"suggestion-".concat(S):void 0}),s&&g&&(0,a.jsx)("span",{className:c().privateBadge,children:"Private"}),_&&(0,a.jsx)("button",{type:"button",className:c().clearButton,onClick:()=>{p(""),m([]),v(!1)},"aria-label":"Clear search",children:"\xd7"}),f&&(0,a.jsx)(i.x,{suggestions:h,activeIndex:S,prefix:_,onSelect:y,onClearRecent:N,listboxId:l})]}),(0,a.jsx)("button",{type:"submit",className:c().button,disabled:C||!_.trim(),children:C?"Searching…":"Search"})]}),s&&(0,a.jsx)("div",{className:c().privateToggle,children:(0,a.jsx)("button",{type:"button",className:g?c().privateToggleActive:c().privateToggleButton,onClick:()=>d(e=>!e),"aria-pressed":g,children:g?"Private search on":"Private search"})})]})}},39537:function(e,t,n){"use strict";n.d(t,{x:function(){return u}});var a=n(57437),r=n(38670),o=n.n(r);let s=["recent","popular","article","topic"],c={recent:"Recent Searches",popular:"Popular",article:"Articles",topic:"Topics"},i={recent:"\uD83D\uDD52",popular:"\uD83D\uDD25",article:"\uD83D\uDCC4",topic:"\uD83C\uDFF7️"};function l(e){let{text:t,prefix:n}=e,r=t.toLowerCase(),s=n.toLowerCase().trim(),c=r.indexOf(s);return -1!==c&&s?(0,a.jsxs)("span",{children:[t.slice(0,c),(0,a.jsx)("strong",{className:o().highlight,children:t.slice(c,c+s.length)}),t.slice(c+s.length)]}):(0,a.jsx)("span",{children:t})}function u(e){let{suggestions:t,activeIndex:n,prefix:r,onSelect:u,onClearRecent:_,listboxId:p}=e;if(0===t.length)return null;let g=s.map(e=>({category:e,items:t.map((e,t)=>({...e,globalIndex:t})).filter(t=>t.category===e)})).filter(e=>e.items.length>0);return(0,a.jsx)("ul",{id:p,role:"listbox",className:o().dropdown,children:g.map(e=>(0,a.jsxs)("li",{role:"presentation",children:[(0,a.jsxs)("div",{className:o().sectionHeader,children:[(0,a.jsx)("span",{className:o().sectionIcon,children:i[e.category]}),c[e.category],"recent"===e.category&&_&&(0,a.jsx)("button",{className:o().clearBtn,onMouseDown:e=>{e.preventDefault(),_()},onClick:_,"aria-label":"Clear recent searches",children:"Clear"})]}),(0,a.jsx)("ul",{role:"group",className:o().sectionList,children:e.items.map(e=>(0,a.jsxs)("li",{id:"suggestion-".concat(e.globalIndex),role:"option","aria-selected":e.globalIndex===n,className:"".concat(o().item," ").concat(e.globalIndex===n?o().active:""),onMouseDown:t=>{t.preventDefault(),u(e)},children:[(0,a.jsx)("span",{className:o().itemText,children:(0,a.jsx)(l,{text:e.text,prefix:r})}),e.metadata&&(0,a.jsx)("span",{className:o().itemMeta,children:e.metadata})]},"".concat(e.category,"-").concat(e.globalIndex)))})]},e.category))})}},81907:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var a=n(57437),r=n(2265);function o(e){let{children:t}=e,[n,o]=(0,r.useState)(!1),s=(0,r.useRef)([]),c=(0,r.useRef)(),i=(0,r.useCallback)(()=>{let e=Date.now();s.current=s.current.filter(t=>e-t<2e3),s.current.push(e),s.current.length>=7&&(s.current=[],o(!0),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>
1o(!1),3e3))},[]);return(0,a.jsxs)("div",{style:{position:"relative",display:"inline-block"},onClick:i,children:[t,n&&(0,a.jsx)("div",{className:"ee-logo-message",role:"status","aria-live":"polite",children:"Built by humans. Scored by machines. Mostly."})]})}},42293:function(e){e.exports={main:"page_main__GlU4n",hero:"page_hero__SKW6o",ruleTop:"page_ruleTop__gQTK_",ruleBottom:"page_ruleBottom__a_5QT",logo:"page_logo__7fc9l",tagline:"page_tagline___8E6T",searchWrapper:"page_searchWrapper__AgJnb",belowFold:"page_belowFold__tl1Zq",sectionTitle:"page_sectionTitle__hzsAh",sectionCaption:"page_sectionCaption__UlY3I",scoreSection:"page_scoreSection__H9YVF",scoreStrip:"page_scoreStrip__KU5RZ",scoreItem:"page_scoreItem__O1DCn",stamp:"page_stamp__quO_6",scoreLabel:"page_scoreLabel__ACcvM",howItWorksSection:"page_howItWorksSection__2SweS",threeCol:"page_threeCol__paFCM",colHead:"page_colHead__s3V76",colBody:"page_colBody__8Jc4J",learnLink:"page_learnLink__SzKPN",trustSection:"page_trustSection__g1I_2",trustBlock:"page_trustBlock___hZWA",useCasesSection:"page_useCasesSection__HTrof",useCases:"page_useCases__QqflT",useCaseCard:"page_useCaseCard__M9fBL",useCaseSection:"page_useCaseSection__fIEpN",useCaseCardHead:"page_useCaseCardHead__DEPoS",useCaseCardBody:"page_useCaseCardBody__2rd3K",extensionSection:"page_extensionSection__6nmXS",extensionCta:"page_extensionCta__0YVQt",extensionBtn:"page_extensionBtn__ImibF"}},50350:function(e){e.exports={wrapper:"SearchBar_wrapper__BWL37",form:"SearchBar_form__o6_cj",inputWrapper:"SearchBar_inputWrapper__HNTWw",input:"SearchBar_input__KHKv1",button:"SearchBar_button__h69vA",clearButton:"SearchBar_clearButton__nsXzc",privateToggle:"SearchBar_privateToggle__V0K1K",privateToggleButton:"SearchBar_privateToggleButton__ECcI7",privateToggleActive:"SearchBar_privateToggleActive__N30e0",privateBadge:"SearchBar_privateBadge__pqA9e"}},38670:function(e){e.exports={dropdown:"SuggestionDropdown_dropdown__Kp_Sq",slideInDown:"SuggestionDropdown_slideInDown__6GBIG",sectionHeader:"SuggestionDropdown_sectionHeader__YRDFy",sectionIcon:"SuggestionDropdown_sectionIcon__lT2b6",clearBtn:"SuggestionDropdown_clearBtn__unqZM",sectionList:"SuggestionDropdown_sectionList__6x7cw",item:"SuggestionDropdown_item__2Ox2E",active:"SuggestionDropdown_active__08i2Z",itemText:"SuggestionDropdown_itemText__4Ce7G",highlight:"SuggestionDropdown_highlight__IAhHv",itemMeta:"SuggestionDropdown_itemMeta__ECfu5"}}},function(e){e.O(0,[9850,2972,2971,2117,1744],function(){return e(e.s=84912)}),_N_E=e.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.