1"use strict";(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[89647],{871836(e,t,n){n.r(t),n.d(t,{Component:()=>I});var l=n(205544),a=n(891305),r=n(327278),o=n(580285),s=n(639613),i=n(151700),c=n(806580),u=n(264027),h=n(682636),d=n(22967),p=n(296540),g=n(738787),m=n(427443),v=n(932659),f=n(474848);const y=e=>{let t=e.onChange,n=e.onSubmit,l=e.onCancel,a=e.value,r=e.onClearInput,o=e.placeholder;const s=(0,p.useRef)(null),i=(0,m.G)().isLgScreen,c=(0,p.useCallback)(e=>{t(e.currentTarget.value)},[t]),u=(0,p.useCallback)(e=>{null==n||n(e),e.preventDefault()},[n]);return(0,g.X)(s),(0,f.jsx)("form",{className:"z-fixed flex w-full flex-col bg-white px-18 py-20 first:pt-0 first:px-safe-offset-18 lg:p-18 dark:bg-black",onSubmit:u,children:(0,f.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,f.jsx)(v.L,{inputRef:s,placeholder:null!=o?o:"Symbols, Analysts, Keywords",size:i?"medium":"large",value:a,onChange:c,onClearInput:r}),(0,f.jsx)("button",{className:"ml-12 shrink-0 text-medium-b","data-test-id":"cancel-search-button",type:"button",onClick:l,children:"Cancel"})]})})};var C=n(291623),k=n(658700),b=n(566770);const I=(e=>t=>{const n=(0,k.zy)().state,l=(0,r.O)().isEnabled,a=(0,b.Q)().preference,o=(0,m.G)().isMdScreen;return!l||o&&"opted_in"!==a?(0,f.jsx)(e,{...t}):(0,f.jsx)(k.C5,{replace:!0,state:n,to:C.g.askSeekingAlpha})})(()=>{const e=(0,c.S)(),t=e.handleCancel,n=e.searchInput,p=e.onChangeSearchInput,g=e.onItemClick,m=e.onRecentItemClick,v=e.queryParams,C=e.onClearInput,k=e.shouldHideSuggestions,b=e.searchQueryList,I=e.placeholder,x=e.BIConfig,S=0===n.trim().length,w=(0,a.Jq)(),j=(0,d.c)(),A=(0,r.O)().isEnabled,L=(0,i.y)({searchInput:n,searchQueryList:b,BIConfig:x}),B=(0,l.A)(L,2),q=B[0],$=B[1],Q=(0,o.H)().recentSearch;return(0,f.jsxs)("div",{className:"flex w-full grow flex-col bg-share-bg-2 pt-safe-or-18",children:[(0,f.jsx)(s.p,{noIndex:!0,title:"Search"}),(0,f.jsx)(y,{placeholder:I,value:n,onCancel:t,onChange:p,onClearInput:C,onSubmit:$}),S&&w&&!k?(0,f.jsx)(h.E,{items:Q,shouldRenderAskSeekingAlphaItem:A,title:"Recent Search",onAskSeekingAlphaClick:j,onItemClick:m}):null,S||v.q?null:(0,f.jsx)(u.W,{withMoreLink:!0,searchInput:n,searchQueryList:b,searchResult:q,shouldHideSuggestions:k,shouldRenderAskSeekingAlphaItem:A,source:"search-basic",onAskSeekingAlphaClick:j,onItemClick:g})]})})},639613(e,t,n){n.d(t,{p:()=>v}),n(218111),n(720116),n(161701),n(725440),n(879978),n(962953);var l=n(966331),a=n(237533),r=n(447274),o=n(796345),s=n(195304),i=n(40476),c=n(398410),u=n(640243);const h=n.p+"static/images/alpha.55faee941.png",d=n.p+"static/images/logo-1200.97d05f9dd.jpg";var p=n(474848);const g={id:"nWbHTm"},m={id:"UluY-T"},v=e=>{var t;let n=e.title,v=void 0===n?g:n,f=e.description,y=void 0===f?m:f,C=e.canonicalUrl,k=e.noIndex,b=e.noFollow,I=e.noArchive,x=e.titleTemplate,S=e.hasLargeImagePreview,w=e.ogTags,j=e.links;const A=(0,l.uB)()._,L=null==w||null===(t=w.find(e=>"property"in e&&"og:image"===e.property))||void 0===t?void 0:t.content,B=(0,i.Z)(v)?A(v):v,q=(0,i.Z)(y)?A(y):y,$=C?(e=>e===r.jg||e.startsWith(`${r.jg}/`)||e.startsWith(`${r.jg}?`)||e.startsWith(`${r.jg}#`)?`${(0,u.M)(()=>{var e;const t=null===(e=c.L.preloadedMeta)||void 0===e?void 0:e.subdomain;return t?`https://${t}.${o.lV}`:r.jg},()=>(0,s.zk)().location.origin)}${e.slice(r.jg.length)}`:e)(C):C,Q=null!=x?x:String(`%s | ${A({id:"y3HbR5"})}`),R=function(e,t,n,l){return[e&&"noindex",t&&"nofollow",n&&"noarchive",l&&"max-image-preview:large"].filter(Boolean).join(", ")}(k,b,I,S),T=[$&&!k?{rel:"canonical",href:$}:null,...null!=j?j:[]].filter(Boolean),H=B&&(Q?Q.replaceAll("%s",B):B),M=[...(null==w?void 0:w.map(e=>({...e,content:(0,i.Z)(e.content)?A(e.content):e.content})))||[{property:"og:type",content:"website"},{property:"og:image",content:`${r.jg}${d}`},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},H?{property:"og:title",content:H}:null,q?{property:"og:description",content:q}:null,C?{property:"og:url",content:C}:null],R?{content:R,name:"robots"}:null,H?{name:"twitter:title",content:H}:null,...q?[{name:"description",content:q},{name:"twitter:description",content:q}]:[],...L?[{name:"twitter:card",content:"summary_large_image"},{name:"twitter:image",content:L}]:[{name:"twitter:card",content:"summary"},{name:"twitter:image",content:`${r.jg}${h}`},{property:"twitter:image:width",content:"1080"},{property:"twitter:image:height",content:"1080"}
1]].filter(Boolean);return[H,...T,...M].filter(Boolean).length?(0,p.jsxs)(a.p3,{children:[H?(0,p.jsx)("title",{children:H}):null,T.map((e,t)=>(0,p.jsx)("link",{...e},t)),M.map((e,t)=>(0,p.jsx)("meta",{...e},t))]}):null}},151700(e,t,n){var l=n(205544),a=n(511341),r=n(296540),o=n(291623),s=n(658700),i=n(393271),c=n(776828),u=n(518611),h=n(314366);n.d(t,["y",0,e=>{let t=e.searchInput,n=e.searchQueryList,d=e.BIConfig;const p=(0,r.useState)(!1),g=(0,l.A)(p,2),m=g[0],v=g[1],f=(0,c.S)({searchString:t}),y=f.searchResult,C=f.isLoading,k=(0,s.Zp)(),b=(0,s.zy)().pathname,I=(0,r.useCallback)(()=>{d&&(0,h.A)({...d,searchInput:t}),k((0,a.a)(o.g.search,{q:t.trim(),tab:"headlines",list:null!=n?n:null}))},[d,k,t,n]),x=(0,r.useMemo)(()=>(0,u.Xd)(y),[y]),S=(0,r.useCallback)(()=>{var e;const l=null==x?void 0:x[0],a=t.trim()||(null==l?void 0:l.phrase)||"";if(C||!a.length)return;const r=(0,u.rk)(a,x);if((e=>{let t=e.activeItem,n=e.exactMatchedItem,l=e.searchQueryList,a=e.term;const r=(null==t?void 0:t.type)===i.hY;return l||!a||!t&&!n||r})({activeItem:l,exactMatchedItem:r,searchQueryList:n,term:a}))return void I();const o=null!=r?r:l;k(null!==(e=(0,u.hk)(o,b))&&void 0!==e?e:"",{source:"search-basic"})},[k,I,C,x,b,t,n]),w=(0,r.useCallback)(()=>{v(!0)},[v]);return(0,r.useEffect)(()=>{m&&!C&&(v(!1),S())},[C,m,S,v]),[y,w]}])},806580(e,t,n){var l=n(353986),a=n(205544),r=n(46743),o=n(296540),s=n(563353),i=n(812463),c=n(891305),u=n(658700),h=n(686101),d=n(704018),p=n(393271),g=n(518611),m=n(307976),v=n(755133),f=n(314366);const y=["shouldUpdateSearchHistory"];n.d(t,["S",0,()=>{var e,t,n,C,k,b,I;const x=(0,c.Jq)(),S=(0,u.zy)(),w=(0,u.Zp)(),j=(0,o.useMemo)(()=>(0,r.q)(S.search),[S.search]),A=Boolean(null===(e=S.state)||void 0===e?void 0:e.shouldHideSuggestions),L=null!==(t=null===(n=S.state)||void 0===n?void 0:n.searchQueryList)&&void 0!==t?t:null,B=null!==(C=null===(k=S.state)||void 0===k?void 0:k.placeholder)&&void 0!==C?C:null,q=null!==(b=null===(I=S.state)||void 0===I?void 0:I.BIConfig)&&void 0!==b?b:null,$=(0,o.useState)(""),Q=(0,a.A)($,2),R=Q[0],T=Q[1],H=(0,h.o)(R,500),M=(0,o.useCallback)(()=>{var e,t;if(m.I.isWrapper)return void(null===(t=v.q.navigateBack)||void 0===t||t.call(v.q));const n=null===(e=S.state)||void 0===e?void 0:e.isUrlChanged;
1w(n?-1:"/")},[w,S.state]),z=(0,o.useCallback)((e,t)=>{t===p.Ri&&T(e)},[T]),E=(0,o.useCallback)(()=>{T("")},[T]),N=(0,o.useCallback)((e,t)=>{let n=e.shouldUpdateSearchHistory,a=void 0===n||n,r=(0,l.A)(e,y);const o=r.type;return async()=>{if((0,d.Nl)({index:t+1,type:o,searchText:R}),q&&(0,f.A)({...q,searchInput:R}),!a)return;const e=(0,g.NB)(r),n=e.phrase,l=e.url;x&&(await(0,i.q)({type:o,url:l,phrase:n}),s.qQ.invalidateQueries({queryKey:["recentSearch"]}))}},[q,R,x]);return{handleCancel:M,location:S,queryParams:j,searchInput:R,searchInputDebounced:H,onChangeSearchInput:T,onClearInput:E,onItemClick:N,onRecentItemClick:z,shouldHideSuggestions:A,searchQueryList:L,placeholder:B,BIConfig:q}}])},738787(e,t,n){var l=n(296540);n.d(t,["X",0,e=>{(0,l.useEffect)(()=>{null!=e&&e.current&&e.current.focus()},[e])}])},686101(e,t,n){var l=n(205544),a=n(296540);n.d(t,["o",0,(e,t)=>{const n=(0,a.useState)(e),r=(0,l.A)(n,2),o=r[0],s=r[1];return(0,a.useEffect)(()=>{const n=setTimeout(()=>{s(e)},t);return()=>{clearTimeout(n)}},[e,t]),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.