PageSourceSearch

https://seekingalpha.com/samw/static/js/c.MobileBottomNavAsync-W.91bf9cb8c.js

js seekingalpha.com collected 2026-10-01 07:40:25 UTC 8,885 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[12641],{475317(e,t,s){s.r(t),s.d(t,{default:()=>q});var l=s(693164),r=(s(218111),s(161701),s(634164)),c=s(666860),a="Z0OCs",i=s(474848);const n=e=>{let t=e.icon,s=e.label,l=e.onClick,c=e.isActive;return(0,i.jsxs)("button",{className:(0,r.$)("block text-small-r text-share-text-2",(null==c?void 0:c())&&"text-small-b text-share-text"),type:"button",onClick:l,children:[t?(0,i.jsx)("span",{className:(0,r.$)(a,"mx-auto flex size-20 items-center",(null==c?void 0:c())&&"text-blue-75"),children:t}):null,(0,i.jsx)("span",{className:"mt-8 block",children:s})]})};var o=s(296540),m=s(489155),d=s(8533),u=s(185692),h=(s(725440),s(385929));const x="navbar_bottom",v=(e,t)=>{h.c.trackEvent({action:t,type:e.replace("-","_"),source:x})},p=e=>{let t=e.id;return{ref:(0,u.zQ)(e=>{e&&v(t,"shown")},{triggerOnce:!0})}},f=e=>{let t=e.icon,s=e.label,l=e.id,c=e.itemIndex,n=e.to;const u=p({id:l}).ref,h=(0,d.Y)(),x=h.setActiveStack,f=h.rootReplace,b=(0,m.q)().stackId===c,g=n.pathname,w=(0,o.useCallback)(()=>{v(l,"click"),b?f({pathname:g}):x({stackId:c,pathname:g})},[l,c,f,g,x,b]);return(0,i.jsxs)("button",{className:(0,r.$)("block text-small-r text-share-text-2",b&&"text-small-b text-share-text"),ref:u,type:"button",onClick:w,children:[t?(0,i.jsx)("div",{className:(0,r.$)(a,"mx-auto flex size-20 items-center",b&&"text-blue-75"),children:t}):null,(0,i.jsx)("div",{className:"mt-8",children:s})]})};var b=s(939765),g=s(658700),w=s(712373);const j=e=>{let t=e.icon,s=e.to,l=e.label,c=e.isActive,n=e.id;const m=p({id:n}).ref,d=(0,o.useMemo)(()=>({first_level_url:(0,w.b)(),content_type:"all",section:x,section_asset:l}),[l]),u=(0,o.useCallback)(()=>{v(n,"click")},[n]);return(0,i.jsxs)(g.N_,{className:(0,r.$)("block text-small-r text-share-text-2",c()&&"text-small-b text-share-text"),ref:m,source:d,state:{[b.k_]:!0},to:s,onClick:u,children:[t?(0,i.jsx)("div",{className:(0,r.$)(a,"mx-auto flex size-20 items-center",c()&&"text-blue-75"),children:t}):null,(0,i.jsx)("div",{className:"mt-8",children:l})]})};var k="mornr";const C=e=>{let t=e.menuList,s=e.moreButtonProps,l=e.ariaLabel;const a=c.o.isMultiStackNavigationSupported?f:j;return(0,i.jsx)("nav",{"aria-label":l,className:(0,r.$)("Ly4L8","border-t border-share-separator-thin bg-black-4 px-12 pb-24 pt-12 dark:bg-black-90 print:hidden"),children:(0,i.jsxs)("ul",{className:"m-0 flex list-none justify-between pl-0",role:"menu",children:[t.map((e,t)=>{let s=e.icon,l=e.label,c=e.to,n=e.id,o=e.isActive;return(0,i.jsx)("li",{className:(0,r.$)(k,"mr-4 flex justify-center text-center last:mr-0"),role:"menuitem",children:(0,i.jsx)(a,{icon:s,id:n,isActive:o,itemIndex:t,label:l,to:c})},n)}),(0,i.jsx)("li",{className:(0,r.$)(k,"mr-4 flex justify-center text-center last:mr-0"),role:"menuitem",children:(0,i.jsx)(n,{...s})},"more")]})})};var N=s(966331),M=s(291623),_=s(934503),y=s(891305),L=(s(533110),s(257823)),V=s(841127);const A=(0,L.KD)("MOBILE_BOTTOM_NAV_ACTIVE",e=>{var t;return e&&null!==(t=(0,V.j)(e))&&void 0!==t?t:null},JSON.stringify);var B=s(844023),S=s(431109);var z=s(578102);const H=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 5","aria-hidden":"true",...e,children:[(0,i.jsx)("circle",{cx:2.375,cy:2.456,r:1.875,fill:"currentColor",transform:"rotate(-90 2.375 2.456)"}),(0,i.jsx)("circle",{cx:8,cy:2.456,r:1.875,fill:"currentColor",transform:"rotate(-90 8 2.456)"}),(0,i.jsx)("circle",{cx:13.625,cy:2.456,r:1.875,fill:"currentColor",transform:"rotate(-90 13.625 2.456)"})]}),I=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 16","aria-hidden":"true",...e,children:[(0,i.jsx)("path",{d:"M15 16H3c-1.7 0-3-1.3-3-3V2C0 .9.9 0 2 0h9.3c1.2 0 2.3 1 2.3 2.3V13c0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5V4.3c0-.3-.2-.5-.5-.5h-1.5V2.3H16c1.1 0 2 .9 2 2V13c0 1.7-1.3 3-3 3M2 1.5c-.3 0-.5.2-.5.5v11c0 .8.7 1.5 1.5 1.5h9.4c-.3-.4-.4-1-.4-1.5V2.3c0-.4-.3-.8-.8-.8z"}),(0,i.jsx)("path",{d:"M5.5 3.5v2h-2v-2zm0-1h-2c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1m5 1H8c-.3 0-.5.2-.5.5s.2.5.5.5h2.5c.3 0 .5-.2.5-.5s-.2-.5-.5-.5m0 2H8c-.3 0-.5.2-.5.5s.2.5.5.5h2.5c.3 0 .5-.2.5-.5s-.2-.5-.5-.5m0 2H3c-.3 0-.5.2-.5.5s.2.5.5.5h7.5c.3 0 .5-.2.5-.5s-.2-.5-.5-.5m0 2H3c-.3 0-.5.2-.5.5s.2.5.5.5h7.5c.3 0 .5-.2.5-.5s-.2-.5-.5-.5m0 2H3c-.3 0-.5.2-.5.5s.2.5.5.5h7.5c.3 0 .5-.2.5-.5s-.2-.5-.5-.5"})]}),P=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 21 20","aria-hidden":"true",...e,children:[(0,i.jsx)("g",{clipPath:"url(#performance_svg__a)",children:(0,i.jsx)("path",{fill:"currentColor",d:"M19.612 3.333h-5.658c-.444 0-.888.448-.888.895s.333.894.887.894h3.662l-6.324 6.15-2.663-2.684a.866.866 0 0 0-1.22 0L.75 15.185a.88.88 0 0 0 0 1.23.866.866 0 0 0 1.22 0l5.88-6.038 2.775 2.684a.866.866 0 0 0 1.22 0l6.88-6.82v3.8c0 .448.333.895.887.895.555 0 .888-.447.888-.894V4.228c0-.447-.444-.895-.888-.895"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"performance_svg__a",children:(0,i.jsx)("path",{fill:"#fff",d:"M.5 0h20v20H.5z"})})})]}),$=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20","aria-hidden":"true",...e,children:[(0,i.jsx)("path",{fill:"currentColor",d:"M17.222 16.667c0 .333-.222.555-.555.555H3.333c-.333 0-.555-.222-.555-.555v-3.223l-1.667-.666v3.889c0 1.222 1 2.222 2.222 2.222h13.334c1.222 0 2.222-1 2.222-2.222v-3.89l-1.667.667zM8.333 2.778h3.334v.555h1.666v-1.11c0-.667-.444-1.112-1.
111-1.112H7.777c-.667 0-1.111.445-1.111 1.111v1.111h1.666z"}),(0,i.jsx)("path",{fill:"currentColor",d:"M17.778 4.444H2.222C1 4.444 0 5.444 0 6.667v2.222c0 .444.111 1 .444 1.333l.223.222c.666.89 1.889 1.556 3.555 2.112 1.334.444 3 .666 4.667.777 0 .667.444 1.111 1.111 1.111s1.111-.444 1.111-1.11c1.667-.112 3.333-.334 4.667-.778 1.666-.556 2.889-1.223 3.555-2.112l.223-.222c.333-.444.444-.889.444-1.333V6.667c0-1.223-1-2.223-2.222-2.223m.555 4.445c0 .111 0 .222-.11.333-.445.445-1.334 1.111-2.779 1.556-1.222.333-2.666.666-4.222.666v-.333c0-.667-.444-1.111-1.11-1.111C9.443 10 9 10.444 9 11.111v.556c-1.556-.111-3-.334-4.222-.667C3.333 10.556 2.333 9.889 2 9.444c-.333-.333-.333-.444-.333-.555V6.667c0-.334.222-.556.555-.556h15.556c.333 0 .555.222.555.556z"})]}),E=e=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18","aria-hidden":"true",...e,children:(0,i.jsx)("path",{d:"M14.078 17.485c-.1 0-.3 0-.399-.1L9 14.496l-4.68 2.889c-.299.2-.597.1-.797 0-.199-.2-.398-.498-.298-.797l1.394-5.28L.336 7.722c-.299-.2-.398-.498-.299-.797a.75.75 0 0 1 .697-.498l5.477-.398L8.302.949c.2-.598 1.195-.598 1.394 0l2.091 5.08 5.477.398c.299 0 .597.2.697.498.1.3 0 .598-.2.797L13.48 11.21l1.394 5.28c.1.298 0 .597-.299.796-.199.2-.298.2-.497.2Zm-5.079-4.682c.1 0 .299 0 .398.1l3.486 2.19-.996-3.984c-.1-.299 0-.598.199-.797l3.186-2.59-4.082-.299c-.299 0-.498-.199-.598-.498L9 3.24 7.506 7.025c-.2.299-.399.498-.698.498l-4.082.299 3.186 2.59c.2.2.299.498.2.797l-.996 3.984L8.6 13.002c.1-.1.299-.2.398-.2Z"})});var R=s(935271);const O=e=>[_.KP.portfolio,M.g.marketNews,M.g.home,M.g.stockIdeas,M.g.markets].find(t=>new RegExp(t,"u").test(e)),q=()=>{const e=(e=>{let t=e.handleShowSidebar;const s=(0,y.Jq)(),l=(0,o.use)(B.t).activePortfolio,r=(0,N.uB)()._,a=(0,g.zy)(),n=(0,S.R)(A)||"",d=(0,m.q)().isStackRootWebView;(0,o.useEffect)(()=>{var e,t;if(c.o.isMultiStackNavigationSupported)return;const s=(null==a||null===(e=a.state)||void 0===e?void 0:e[b.Ov])||(null==a||null===(t=a.state)||void 0===t?void 0:t[b.k_]),l=O(a.pathname);(s||Boolean(l)&&l!==n&&d)&&A.setCurrentValue(a.pathname)},[n,a,d]);const u=(0,o.useMemo)(()=>{if(null!=l&&l.id){const e=(0,R.ZG)(l.id,a.pathname);return(0,R.D1)(l.id,e)}return{pathname:_.LM}},[l,a.pathname]);return{menuList:(0,o.useMemo)(()=>[{id:"my-portfolio",to:u,icon:(0,i.jsx)($,{}),isActive:()=>new RegExp(_.KP.portfolio,"u").test(n),label:r({id:"MqA4qt"})},{id:"stock-ideas",to:{pathname:M.g.home},isActive:()=>M.g.home===n,icon:(0,i.jsx)(E,{}),label:r({id:"iwr7AP"})},{id:"latest-news",get to(){var e;return{pathname:null!==(e=(0,z.U9)(s))&&void 0!==e?e:M.g.marketNews}},isActive:()=>new RegExp(M.g.marketNews,"u").test(n),icon:(0,i.jsx)(I,{}),label:r({id:"qdyV_M"})},{id:"markets",to:{pathname:M.g.markets},icon:(0,i.jsx)(P,{}),label:r({id:"6f8S68"}),isActive:()=>M.g.markets===n}],[n,s,u,r]),moreButtonProps:(0,o.useMemo)(()=>({id:"more",icon:(0,i.jsx)(H,{}),label:r({id:"2FYpfJ"}),onClick:e=>{e.preventDefault(),t()},isActive:()=>!O(n)&&!c.o.isMultiStackNavigationSupported}),[n,t,r]),stateRoot:n}})({handleShowSidebar:l.eV.actions.open}),t=e.menuList,s=e.moreButtonProps;return(0,i.jsx)(C,{menuList:t,moreButtonProps:s})}},578102(e,t,s){const l=new(s(218175).r)("market-news");s.d(t,["Be",0,()=>l.getItem("summary"),"KE",0,(e,t)=>{e&&l.setItem("last-visited",t)},"LR",0,e=>l.setItem("summary",!e),"U9",0,e=>e?l.getItem("last-visited"):null])}}]);

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.