PageSourceSearch

https://seekingalpha.com/samw/static/js/c.DividendPortfolioSaveResults-S.33e0aed9f.js

js seekingalpha.com collected 2026-09-24 07:17:27 UTC 15,396 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[1133],{620812(e,t,r){const n=new Date(864e13);r.d(t,["A",0,n,"B",0,"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"])},594859(e,t,r){const n="abs_desc",a=["desc","asc",n,"abs_asc"];r.d(t,["mY",0,a,"mg",0,{asc:{id:"ascending",label:{id:"54PdN4"}},desc:{id:"descending",label:{id:"O3LJh6"}},abs_asc:{id:"ascending",label:{id:"54PdN4"}},abs_desc:{id:"descending",label:{id:"O3LJh6"}},custom:{id:"other",label:{id:"ae9Ozt"}}},"xO",0,n])},482850(e,t,r){r.r(t),r.d(t,{Component:()=>N}),r(218111),r(161701);var n=r(285917),a=r(296540),i=r(962863),s=r(934503),o=r(658700),l=r(185692),d=r(805146),c=r(750782),u=r(663981),g=r(546543),m=r(97839),v=r(205544),p=(r(962953),r(572437)),f=r(933284),h=r(303405),_=r(104698),b=r(921342),w=r(795718);const y=e=>e.title;var x=r(474848);const N=()=>{const e=(0,o.Zp)(),t=(0,m.q)(),r=t.tickers,N=t.lotsByTickerId,A=t.reset,T=(()=>{const e=(0,b.Q)(),t=e.bulkUpdateHoldings,r=e.fetchPortfolios,n=(0,a.useState)(null),i=(0,v.A)(n,2),s=i[0],o=i[1],l=(0,a.useRef)(!1);return{syncStatus:s,onCreate:(0,a.useCallback)(async e=>{let n=e.slugs,a=e.lots;if(!l.current){l.current=!0,o("pending");try{var i;const e=await(0,h.G)(),s=(0,w.k)({items:null!==(i=e.data)&&void 0!==i?i:[],template:"Portfolio",mapper:y}),l=(await(0,f.B)(s)).portfolio;await Promise.all([(0,p.u)(l.id,n),(0,_.n)(l.id)]),await r(),await t(l.id,a),o("success")}catch{o("error")}}},[t,r])}})(),k=T.syncStatus,Z=T.onCreate,D=(0,a.useRef)(!1),S=(0,l.zQ)(e=>{e&&(0,g.v0)()},{triggerOnce:!0}),I=(0,a.useCallback)(()=>{A(),e(s.KP["portfolio.dividends"])},[A,e]),E=r.length>=5;return(0,a.useEffect)(()=>{if(!E||D.current)return;D.current=!0,(0,g.TV)({tickersCount:r.length});const e=(0,d.F$)(N,!1),t=r.map(e=>e.slug);Z({slugs:t,lots:e})},[E,r,Z,N]),E||null!==k?(0,x.jsx)("section",{"aria-label":"Dashboard preview save results",className:"flex h-full flex-1 flex-col bg-share-bg-2 pt-safe","data-test-id":"dashboard-preview-save-results",children:(0,x.jsx)(c.o,{ref:S,syncStatus:null!=k?k:"pending",onAnimationDone:I,children:"error"===k?(0,x.jsx)(u.N,{rootClassName:"mt-32",size:"large",to:i.o.dividendPortfolio,variant:"primary",children:(0,x.jsx)(n.x6,{id:"x4RuFo"})}):null})}):(0,x.jsx)(o.C5,{replace:!0,to:i.o.dividendPortfolio})}},546543(e,t,r){var n=r(385929);r.d(t,["Ps",0,e=>{let t=e.searchValue;n.c.trackEvent({action:"shown",type:"dividends_onboarding:add_symbols:ticker_not_found",source:"dividends_onboarding:add_symbols",data:{search_term:t}})},"TV",0,e=>{let t=e.tickersCount;n.c.trackEvent({action:"submit",type:"dividends_onboarding:create_portfolio",source:"dividends_onboarding:add_holdings",data:{flow_type:"create_your_own",num_of_tickers_in_portfolio:t}})},"WA",0,e=>{let t=e.flowType;n.c.trackEvent({action:"click",type:"dividends_onboarding:creation_screen",source:"dividends_onboarding:creation_screen",data:{flow_type:t}})},"Yb",0,()=>{n.c.trackEvent({action:"shown",type:"portfolio_dividends_card:cta",source:"dashboard_preview:dividends"})},"b5",0,e=>{let t=e.buttonId;n.c.trackEvent({action:"click",type:`dividends_onboarding:landing_cta:${t}`,source:"dividends_onboarding_lp"})},"s5",0,()=>{n.c.trackEvent({action:"shown",type:"dividends_onboarding:creation_screen",source:"dividends_onboarding:creation_screen"})},"uO",0,()=>{n.c.trackEvent({action:"shown",type:"dividends_onboarding:add_symbols",source:"dividends_onboarding:add_symbols",data:{flow_type:"create_your_own"}})},"ue",0,e=>{let t=e.slugs;n.c.trackEvent({action:"click",type:"dividends_onboarding:add_symbols:done",source:"dividends_onboarding:add_symbols",data:{ticker_id:t,num_of_tickers_in_portfolio:t.length}})},"v0",0,()=>{n.c.trackEvent({action:"shown",type:"dividends_onboarding:preparing_demo",source:"dividends_onboarding:preparing_demo",data:{flow_type:"create_your_own"}})}])},252551(e,t,r){const n={PRICE:String("Alerts::Price"),RATING:String("Alerts::Rating")},a={QUANT:"quant_rating",SA_AUTHOR:"authors_rating",WALL_ST:"sell_side_rating"},i={[a.QUANT]:"/ratings/quant-ratings",[a.SA_AUTHOR]:"/ratings/author-ratings",[a.WALL_ST]:"/ratings/sell-side-ratings"};r.d(t,["F$",0,n,"Lx",0,i,"Tf",0,{WORSE:"worse",BETTER:"better"},"j8",0,a,"kL",0,{ACTIVE:"active",TRIGGERED:"triggered",DELETED:"deleted",FAILED:"failed"},"yY",0,{EMAIL:"sendToEmail",MOBILE:"sendToMobile"}])},388226(e,t,r){r(218111),r(22489);var n=r(945911),a=r(352222),i=r(205174),s=r(252551);const o={[s.F$.PRICE]:"price",[s.F$.RATING]:"rating"},l=e=>{let t=e.filter,r=e.sort,i=e.page,s=e.per_page;return n.sx.get("account/{cookie_key}/alerts",{path:{cookie_key:(0,a.Z0)()},query:{filter:{...t,...t.type&&{type:o[t.type]}},sort:r,...(i||s)&&{page:{...i&&{number:String(i)},...s&&{size:String(s)}}}}})};r.d(t,["C7",0,e=>(0,i.K)(e,"alerts"),"Tm",0,l,"jc",0,async e=>{let t=e.filter,r=e.sort,n=e.page,a=e.per_page;const s=await l({filter:t,sort:r,page:n,per_page:a});return{alerts:(0,i.K)(s,"alerts"),meta:(o=s.meta,null!=o&&o.page?o:{page:{size:null==o?void 0:o.size,total:null==o?void 0:o.total_count,totalPages:null==o?void 0:o.total_pages}})};var o}])},750782(e,t,r){r.d(t,{o:()=>_});var n=r(205544),a=r(285917),i=r(310770),s=r(634164),o=r(296540),l=r(46039),d=r(888046),c=r(474848);const u=e=>(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:53,height:42,fill:"none","aria-hidden":"true",...e,children:(0,c.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M47.921 11.022a1.33 1.33 0 0 0 0-1.885L44.15 5.365a1.333 1.333 0 0 0-1.886 0L20.58 27.05 10.209 16.68a1.333 1.333 0 0 0-1.886 0l-3.771 3.77a1.335 1.335 0 0 0 0 1.886l15.085 15.085c.52.52 1.365.52 1.886 0zM24.351 40.25a5.333 5.333 0 0 1-7.542 0L1.724 25.164a5.333 5.333 0 0 1 0-7.542l3.77-3.771a5.333 5.333 0 0 1 7.543 0l7.543 7.542L39.436 2.537a5.333 5.333 0 0 1 7.542 0l3.772 3.771a5.333 5.333 0 0 1 0 7.543z",clipRule:"evenodd"})}),g=e=>
1(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:41,height:42,fill:"none","aria-hidden":"true",...e,children:(0,c.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M14.843 21 4.473 31.37a1.334 1.334 0 0 0 0 1.887l3.77 3.77a1.333 1.333 0 0 0 1.886 0L20.5 26.658l10.37 10.37a1.334 1.334 0 0 0 1.887 0l3.77-3.77a1.333 1.333 0 0 0 0-1.886L26.158 21l10.37-10.37a1.334 1.334 0 0 0 0-1.887l-3.77-3.77a1.333 1.333 0 0 0-1.886 0L20.5 15.342 10.13 4.973a1.333 1.333 0 0 0-1.887 0l-3.77 3.77a1.333 1.333 0 0 0 0 1.886zm-13.2-7.542a5.333 5.333 0 0 1 0-7.543l3.772-3.771a5.333 5.333 0 0 1 7.542 0L20.5 9.686l7.542-7.542a5.333 5.333 0 0 1 7.543 0l3.771 3.771a5.333 5.333 0 0 1 0 7.542L31.814 21l7.542 7.543a5.333 5.333 0 0 1 0 7.542l-3.771 3.771a5.333 5.333 0 0 1-7.543 0L20.5 32.314l-7.542 7.542a5.333 5.333 0 0 1-7.543 0l-3.771-3.771a5.333 5.333 0 0 1 0-7.542L9.186 21z",clipRule:"evenodd"})}),m=e=>(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:49,height:48,fill:"none","aria-hidden":"true",...e,children:(0,c.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M20.5 20H5.833c-.736 0-1.333.597-1.333 1.333v5.334c0 .736.597 1.333 1.333 1.333H20.5v14.667c0 .736.597 1.333 1.333 1.333h5.334c.736 0 1.333-.597 1.333-1.333V28h14.667c.736 0 1.333-.597 1.333-1.333v-5.334c0-.736-.597-1.333-1.333-1.333H28.5V5.333C28.5 4.597 27.903 4 27.167 4h-5.334c-.736 0-1.333.597-1.333 1.333zm-4-14.667A5.333 5.333 0 0 1 21.833 0h5.334A5.333 5.333 0 0 1 32.5 5.333V16h10.667a5.333 5.333 0 0 1 5.333 5.333v5.334A5.333 5.333 0 0 1 43.167 32H32.5v10.66
17A5.333 5.333 0 0 1 27.167 48h-5.334a5.333 5.333 0 0 1-5.333-5.333V32H5.833A5.333 5.333 0 0 1 .5 26.667v-5.334A5.333 5.333 0 0 1 5.833 16H16.5z",clipRule:"evenodd"})}),v={pending:(0,c.jsx)(m,{className:"JQgtk"}),error:(0,c.jsx)(g,{}),success:(0,c.jsx)(u,{})},p={pending:"Nefzp",error:"qMMkc",success:"jn3MB"},f=e=>{let t=e.diagnosticStatus,r=void 0===t?"pending":t;return(0,c.jsxs)("div",{className:(0,s.$)("An6QI","relative flex items-center justify-center"),children:[(0,c.jsx)("div",{className:(0,s.$)("absolute left-0 top-0 -z-1 size-full rounded-full","lXOK_",p[r])}),v[r]]})},h=[{id:"zd_l3q"},{id:"s4GUPa"},{id:"LjJMlC"}],_=e=>{let t=e.syncStatus,r=e.onAnimationDone,u=e.ref,g=e.children;const m=(0,a.uB)()._,v=(0,o.useState)(null!=t?t:"pending"),p=(0,n.A)(v,2),_=p[0],b=p[1],w=(0,o.useState)(h[0]),y=(0,n.A)(w,2),x=y[0],N=y[1],A=(0,o.useState)(!1),T=(0,n.A)(A,2),k=T[0],Z=T[1],D=(0,o.useRef)(0);(0,l.B)(()=>{const e=setInterval(()=>{if(D.current===h.length-1)return clearInterval(e),void Z(!0);D.current=D.current+1,N(h[D.current])},1333);return()=>{clearInterval(e)}}),(0,o.useEffect)(()=>{if("success"===t&&k){b("success");const e=setTimeout(()=>{null==r||r()},2e3);return()=>{clearTimeout(e)}}return i.l},[t,r,k]);const S="error"===t?"error":_;return(0,c.jsxs)(d.m,{contentClassName:"items-center",dataTestId:"sync-animation",ref:u,rootClassName:"z-1 flex grow items-center justify-center bg-share-bg-2",children:[(0,c.jsx)("h1",{className:"text-5x-large-b",children:(0,c.jsx)(a.x6,{id:"M1N7RO"})}),(0,c.jsx)("div",{className:(0,s.$)("dwipn","mb-64"),children:(0,c.jsx)(f,{diagnosticStatus:S})}),(0,c.jsxs)("span",{className:"text-x-large-r",children:["pending"===S&&m(x),"success"===S&&(0,c.jsx)(a.x6,{id:"-sErTo"}),"error"===S&&(0,c.jsx)(a.x6,{id:"nwtY4N"})]}),g]})}},805146(e,t,r){var n=r(205544),a=(r(944114),r(57145),r(218111),r(22489),r(161701),r(18237),r(13579),r(962953),r(266434)),i=r(388226),s=r(935271),o=r(546191),l=r(801197),d=r(904214);const c=new Date,u=e=>({price:e.last?String(e.last):"",shares:"",tradeDate:c}),g={sort:["-triggered_at","-created_at"],per_page:100};r.d(t,["CQ",0,e=>0!==e.length&&e.some(e=>!(0,o.R9)(e.shares)&&!(0,o.ZV)(e.tradeDate)&&!(0,o.AI)(e)),"DI",0,e=>{let t=e.holdings,r=void 0===t?[]:t,n=e.shouldAppendNewLot;return e.tickers.reduce((e,t)=>{const i=((0,s.jx)(r)[t.slug]||[]).map(e=>({id:e.id,price:String(e.buyPrice),shares:String(e.share),tradeDate:e.tradeDate?(0,a.z)(e.tradeDate):null})).toSorted((e,t)=>(0,l.bq)({direction:"desc",fieldName:"tradeDate",tickerA:e,tickerB:t}));return{...e,[t.id]:n?[...i,u(t)]:i}},{})},"F$",0,(e,t)=>Object.entries(e).reduce((e,r)=>{let a=(0,n.A)(r,2),i=a[0],s=a[1];const o=t?s.filter(e=>(0,d.T6)(e.shares)>0):s;return{...e,[i]:o.map(e=>{var t;return{id:e.id,price:(0,d.T6)(e.price),share:(0,d.T6)(e.shares),trade_date:null===(t=e.tradeDate)||void 0===t?void 0:t.toDateString()}})}},{}),"NI",0,u,"R0",0,(e,t,r)=>{const n=[],a=e=>{e&&n.every(t=>t.id!==e.id)&&n.push(e)};for(const t of e)r||a((0,o.R9)(t.shares)),a((0,o.ZV)(t.tradeDate)),a((0,o.AI)(t));return a((0,o.sf)(t)),n},"lD",0,(e,t)=>{const r={status:e};return t&&(r.portfolio_id=t.id),r},"lg",0,async function(e){var t,r,n,a;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const o=await(0,i.jc)({...g,filter:e,page:s});return{alerts:o.alerts,hasMore:s<(null!==(t=null===(r=o.meta.page)||void 0===r?void 0:r.totalPages)&&void 0!==t?t:0),currentPage:s,totalPages:null===(n=o.meta.page)||void 0===n?void 0:n.totalPages,totalCount:null===(a=o.meta.page)||void 0===a?void 0:a.total}}])},546191(e,t,r){var n=r(104391),a=r(7695),i=r(975067),s=r(904214);r.d(t,["AI",0,e=>{let t=e.price,r=e.shares;const o=(0,s.T6)(t);if(Number.isNaN(o)||!t)return{id:"pXgVoK"};if(o<0)return{id:"JrBAYG"};const l=(0,n.$)(i.P4);if(o>i.P4)return{id:"KlzTmQ",values:{maxCashAmount:l}};const d=(0,a.F)(i.Ec);return o*(0,s.T6)(r)>i.Ec?{id:"sRS_qe",values:{maxPriceAmount:d}}:null},"R9",0,e=>{if(!e)return{id:"droLp1"};const t=(0,s.T6)(e);return Number.isNaN(t)?{id:"XVrpM6"}:0===t?{id:"CyFpy5"}:t>i.WV?{id:"5SIG2m",values:{MAX_SHARES:i.WV}}:null},"ZV",0,e=>e?null:{id:"vt2mpD"},"sf",0,e=>{const t=(0,s.T6)(String(e));if(Number.isNaN(t))return{id:"Tnlaln"};if(t<0)return{id:"S9Qxbp"};const r=(0,n.$)(i.Ec);return t>i.Ec?{id:"dIX1Os",values:{maxCashAmount:r}}:null}])},801197(e,t,r){var n=r(620812),a=r(594859);const i=function(e){let t=e.direction,r=e.isAbsolute,n=void 0!==r&&r,i=e.value;const s="desc"===t||t===a.xO?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;return"number"!=typeof i||Number.isNaN(i)?s:n?Math.abs(i):i},s=function(e){let t=e.value;const r="desc"===e.direction?new Date(0):n.A;return t?new Date(t):r};r.d(t,["EH",0,function(e){let t=e.tickerA,r=e.tickerB,n=e.fieldName,a=e.direction;return i({direction:a,value:null==t?void 0:t[n]})>i({direction:a,value:null==r?void 0:r[n]})?-1:1},"Sp",0,function(e){var t,r;let a=e.tickerA,i=e.tickerB,s=e.fieldName;const o="desc"===e.direction?n.B:"",l=null!==(t=null==a?void 0:a[s])&&void 0!==t?t:o,d=null!==(r=null==i?void 0:i[s])&&void 0!==r?r:o;return l.localeCompare(d,"en",{ignorePunctuation:!0})},"bq",0,function(e){let t=e.tickerA,r=e.tickerB,n=e.fieldName,a=e.direction;const i=s({value:t[n],direction:a}),o=s({value:r[n],direction:a});return i.getTime()>o.getTime()?-1:1},"or",0,function(e){let t=e.fieldName,r=e.direction,n=e.isAbsolute,a=e.tickerA,s=e.tickerB;return i({direction:r,isAbsolute:n,value:null==a?void 0:a[t]})>i({direction:r,isAbsolute:n,value:null==s?void 0:s[t]})?-1:1}])},904214(e,t,r){var n=r(205544),a=(r(218111),r(161701),r(725440),r(692584)),i=r(413057),s=r(269504),o=r(57674);const l=new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:1}).format,d=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"numeric",day:"numeric",year:"numeric"}),c=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"2-digit",day:"2-digit",year:"numeric"}),u=e=>{const t=e.slice(0,10).split("-").map(Number),r=(0,n.A)(t,3),a=r[0],i=r[1],s=r[2];return new Date(a,i-1,s)};r.d(t,["Ii",0,e=>d.format(new Date(1e3*e)),"N1",0,()=>new Date((new Date).getFullYear(),0,1),"Nr",0,e=>{if((0,a.g)(e))return"";const t="number"==typeof e?e:Number.parseFloat(e);return(0,s.A)(t)},"R8",0,(e,t)=>{const r=new Date(e),n=60*r.getTimezoneOffset()*1e3;return new Date(r.getTime()+n).toLocaleDateString(t)},"T6",0,e=>e?Number(e.replace(",",".")):0,"VS",0,e=>`${l(e)} Year${0===e||e>1?"s":""}`,"W4",0,e=>`${(0,o.O)(e)}x`,"WY",0,e=>{const t=e?new Date(e):new Date,r=(n=t,60*(0,i.d)(n)*60+60*n.getTimezoneOffset());var n;return new Date(t.getTime()+1e3*r)},"j7",0,(e,t)=>u(e).toLocaleDateString(t),"sg",0,u,"v$",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return r=>"string"==typeof r||(0,a.g)(r)||Number.isNaN(r)?t:"number"==typeof r?e(r):r},"yK",0,e=>c.format(new Date(e))])},795718(e,t,r){var n=r(205544);r(944114),r(218111),r(607588),r.d(t,["k",0,e=>{let t=e.items,r=e.template,a=e.mapper,i=e.defaultIndex,s=void 0===i?"1":i;const o=new RegExp(`${r}[-_\\s\\(]*(\\d*)`,"iu"),l=[!0];return t.forEach((e,t)=>{var r;
1const i=null!==(r=(a?a(e,t):e).match(o))&&void 0!==r?r:[],s=(0,n.A)(i,2),d=s[0],c=s[1];d&&(l[c?Number.parseInt(c,10):0]=!0)}),l.push(null),`${r} ${l.findIndex(e=>!e)||s}`.trim()}])},104391(e,t,r){var n=r(284549),a=r(7695);r.d(t,["$",0,e=>(0,n.R)(e,{postFormatter:a.F})])},284549(e,t,r){const n=["","K","M","B","T"];r.d(t,["R",0,(e,t)=>{const r={postFormatter:e=>e.toFixed(2),currency:!1,...t},a=r.postFormatter,i=r.currency,s=Math.abs(e),o=e<0?"-":"",l=Math.min(Math.log10(s)/3|0,4);if(l<1)return i?`${o}$${a(s)}`:a(e);const d=n[l],c=10**(3*l);return i?`${o}$${a(s/c)+d}`:a(e/c)+d}])},262297(e,t,r){var n=r(284549),a=r(57674);r.d(t,["H",0,e=>(0,n.R)(e,{postFormatter:a.O})])},269504(e,t,r){var n=r(262297),a=r(231435);r.d(t,["A",0,e=>Math.abs(e)>=1e4?(0,n.H)(e):(0,a.V)(e)])},231435(e,t,r){var n=r(57674);const a=new Intl.NumberFormat("en-US",{minimumSignificantDigits:1,maximumSignificantDigits:2}).format;r.d(t,["V",0,e=>0===e||null===e?(0,n.O)(e):(Math.abs(e)>=.1?n.O:a)(e)])}}]);

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.