1"use strict";(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[74982],{520577(e,t,l){var a=l(205544),s=l(285917),i=l(296540),n=l(161462),r=l(122713),o=l(320597),d=l(474848);l.d(t,["A",0,e=>{let t=e.ref,l=e.content,c=e.onDecline,u=e.onConfirm,m=e.closeModal,x=e.renderButtons;const b=(0,i.useState)(!1),h=(0,a.A)(b,2),v=h[0],p=h[1],k=(0,i.useCallback)(()=>{null==c||c(),m()},[c,m]),j=(0,i.useCallback)(async e=>{e.preventDefault(),p(!0);try{await u()}catch(e){o.v.error(e)}p(!1)},[u]);return(0,d.jsxs)("div",{className:"flex flex-col items-center text-large-r","data-test-id":"delete-confirm-message",ref:t,children:[(0,d.jsx)("div",{className:"mb-18 flex size-32 items-center justify-center rounded-full bg-share-negative lg:mb-12",children:(0,d.jsx)(n.A,{className:"size-18 text-white dark:text-black-80"})}),(0,d.jsx)("div",{className:"mb-18 lg:mb-24",children:l}),(0,d.jsx)("div",{className:"mt-auto flex w-full",children:x?x({isPending:v,onConfirmClick:j,onDeclineClick:k}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.$,{wide:!0,rootClassName:"mr-16 sa-outline-inset",size:{initial:"medium",lg:"small-b"},variant:"black-outline",onClick:k,children:(0,d.jsx)(s.x6,{id:"vv28Im"})}),(0,d.jsx)(r.$,{wide:!0,pending:v,rootClassName:"sa-outline-inset",size:{initial:"medium",lg:"small-b"},variant:"red",onClick:j,children:(0,d.jsx)(s.x6,{id:"l75CjT"})})]})})]})}])},553770(e,t,l){l.d(t,{P:()=>b});var a=l(285917),s=l(634164),i=l(40476),n=l(12493),r=l(187516),o=l(828598),d=l(655927),c=l(474848);const u={modal:"z-modal",fixed:"z-fixed"},m={id:"dEgA5A"},x={default:{content:"lg:p-32",header:"lg:mb-32"},compact:{content:"lg:px-20 lg:py-16",header:"lg:mb-12"}},b=e=>{let t=e.ariaDialogLabelId,l=e.ariaLabel,b=e.children,h=e.closeButton,v=void 0===h||h,p=e.closeLabel,k=void 0===p?m:p,j=e.containerRef,N=e.id,f=e.modalContentDataTestId,C=void 0===f?"modal-content":f,g=e.overlayClassName,w=e.overlayRef,y=e.rootClassName,M=e.title,A=e.variant,D=void 0===A?"default":A,S=e.widthAuto,$=e.onBackClick,T=e.onClose,_=e.onOverlayClick,I=e.hidden,O=e.zIndex,z=void 0===O?"modal":O;const P=(0,a.uB)()._,E=Boolean(M),L=(0,i.Z)(l)?P(l):l,V=()=>{if(M)return"function"==typeof M?M(t):(0,c.jsx)("h1",{className:"m-0 text-large-b uppercase text-share-text",id:t,children:M})},B=M?k:(0,c.jsx)(r.A,{className:"size-24 fill-current"});return(0,c.jsxs)(o.B,{ariaDialogLabelId:t,id:N,innerClassName:["relative flex min-h-0 shrink-0 grow justify-center lg:items-center","max-h-full items-end"],ref:j,rootClassName:["sa-fixed flex flex-col overflow-auto overscroll-contain",S?"lg:px-60 lg:py-80":"lg:p-20",y,I&&"lg:hidden",z?u[z]:""],children:[(0,c.jsx)(d.m,{ref:w,rootClassName:(0,s.$)("inset-0 z-auto","bg-black/60",g),onClick:_}),(0,c.jsxs)("div",{className:(0,s.$)("z-0 flex size-full max-h-full flex-col bg-share-modal-container lg:size-auto","pb-safe-or-18 pt-safe-or-24 px-safe-or-18","bg-share-modal-container lg:shadow-elev-2","lg:rounded-12",x[D].content,S?"max-w-full":"e1IiT"),"data-test-id":C,children:[(0,c.jsxs)("header",{className:(0,s.$)("flex min-h-20",E?x[D].header:"",E?"mb-8 justify-between":""),children:[(0,c.jsx)("div",{className:"flex grow items-center",children:E?$?(0,c.jsxs)("button",{"aria-label":P({id:"Dsn_pH"}),className:"flex items-center text-share-text",type:"button",onClick:()=>{$()},children:[(0,c.jsx)(n.A,{className:"ml-4 mr-12 w-6 rotate-180 md:ml-6 md:mr-16"}),V()]}):V():(0,c.jsx)("h1",{className:"sr-only",id:t,children:L})}),v?(0,c.jsx)("button",{"aria-label":P({id:"s42xFM"}),className:(0,s.$)("shrink-0 overflow-visible text-medium-r text-share-text-3 hover:text-share-text","relative before:absolute",E?"ml-24 mt-2 self-start before:-inset-6":"inline-flex"),type:"button",onClick:T,children:(0,i.Z)(B)?P(B):B}):null]}),(0,c.jsx)("div",{className:"flex h-auto grow flex-col overflow-auto",children:b})]})]})}},484728(e,t,l){var a=l(385929),s=l(924777);const i="custom_notes_pop";l.d(t,["DK",0,e=>{a.c.trackEvent({action:"click",source:e,type:(0,s.Uf)([i,"delete_note"])})},"NI",0,e=>{let t=e.biSource,l=e.isNewNote,s=e.tickerName;
1a.c.trackEvent({action:"save",data:{is_new_note:l,symbol:s},source:t,type:i})},"OQ",0,e=>{a.c.trackEvent({action:"shown",source:e,type:i})},"Q6",0,(e,t)=>{a.c.trackEvent({action:"click",data:{delivery:{email:t.email?"yes":"no",mobile:t.mobile?"yes":"no"}},source:e,type:(0,s.Uf)([i,"set_reminder"])})},"Ro",0,e=>{a.c.trackEvent({action:"click",source:e,type:(0,s.Uf)([i,"add_reminder"])})},"xP",0,e=>{a.c.trackEvent({action:"click",source:e,type:(0,s.Uf)([i,"add_new_note"])})},"zV",0,e=>{a.c.trackEvent({action:"click",source:e,type:(0,s.Uf)([i,"view_all"])})}])},83559(e,t,l){l.d(t,{G:()=>b});var a=l(205544),s=l(285917),i=l(296540),n=l(97011),r=l(658700),o=l(427443),d=l(301676),c=l(484728),u=l(174581),m=l(474848);const x=e=>{let t=e.ariaDialogLabelId,l=e.tickerName,a=e.title;const i=(0,s.uB)()._;return(0,m.jsxs)("h1",{className:"m-0 text-large-b text-share-text","data-test-id":"modal-title",id:t,children:[i(a),(0,m.jsx)("span",{className:"mx-8",children:"â¢"}),l]})},b=e=>{let t=e.ariaDialogLabelId,l=e.isForced,b=e.ref;const h=(0,o.G)().isLgScreen,v=(0,i.useState)(!1),p=(0,a.A)(v,2),k=p[0],j=p[1],N=(0,u.f)(),f=N.biSource,C=N.ticker.name,g=(0,i.useCallback)(e=>j(e.target.checked),[]),w=(0,i.useCallback)(()=>{f&&(0,c.zV)(f)},[f]);return(0,m.jsxs)("div",{className:"flex w-full flex-col items-start justify-between lg:flex-row lg:items-center",ref:b,children:[(0,m.jsxs)("div",{className:"flex items-center",children:[(0,m.jsx)(x,{ariaDialogLabelId:t,tickerName:C,title:l?{id:"7a5pu0"}:{id:"uM53PM"}}),h?(0,m.jsx)(r.N_,{className:"ml-18 text-small-r","data-test-id":"view-all-my-notes-link",to:n.ZT["account.notes"],onClick:w,children:(0,m.jsx)(s.x6,{id:"Que0Jv"})}):null]}),l?(0,m.jsx)(d.S,{checked:k,dataTestId:"do-not-ask-again-checkbox",rootClassName:"lg:text-medium-r text-large-r text-share-text-3 pt-24 lg:pt-0",onChange:g,children:(0,m.jsx)(s.x6,{id:"znV1pj"})}):null]})}},174581(e,t,l){var a=l(296540),s=l(474848);const i=(0,a.createContext)({biSource:"",ticker:{id:"",name:"",slug:"",type:""}});l.d(t,["J",0,e=>{let t=e.children,l=e.biSource,n=e.ticker,r=e.title,o=e.closeLabel;const d=(0,a.useMemo)(()=>({biSource:l,ticker:n,title:r,closeLabel:o}),[l,n,r,o]);return(0,s.jsx)(i,{value:d,children:t})},"f",0,()=>(0,a.use)(i)])},708540(e,t,l){l.d(t,{M:()=>rt});var a=l(296540),s=l(380118),i=l(289240),n=l(484728),r=l(174581),o=l(205544),d=(l(962953),l(310770)),c=l(295257),u=l(594736),m=l(296850),x=l(746947),b=l(474848);const h={content:"",reminder:null},v=(0,a.createContext)({error:null,setError:d.l,currentNote:null,createNote:d.l,selectNote:d.l,resetNote:d.l,updateNoteField:d.l,isSaveDisabled:!1,notes:[]}),p=()=>(0,a.use)(v),k=e=>{let t=e.children,l=e.initialNoteId,s=e.slug;const i=(0,m.v)().notesByTickerSlug[s]||u.c,n=(0,a.useMemo)(()=>{const e=(0,x.jU)(i,l);return e?(0,x.FK)(e):null},[i,l]),r=(0,a.useState)(n),d=(0,o.A)(r,2),c=d[0],p=d[1],k=(0,a.useState)(null),j=(0,o.A)(k,2),N=j[0],f=j[1],C=(0,a.useCallback)(()=>{p(h),f(null)},[]),g=(0,a.useCallback)((e,t)=>{p(l=>({...l||h,[e]:t}))},[]),w=(0,a.useCallback)(()=>{p(null),f(null)},[]),y=(0,a.useCallback)(e=>{p((0,x.FK)(e)),f(null)},[]),M=(0,a.useMemo)(()=>(0,x.jU)(i,null==c?void 0:c.id),[null==c?void 0:c.id,i]),A=(0,a.useMemo)(()=>(0,x.E6)({error:N,currentNote:c,originalNote:M}),[c,N,M]),D=(0,a.useMemo)(()=>({error:N,setError:f,currentNote:c,createNote:C,selectNote:y,resetNote:w,updateNoteField:g,isSaveDisabled:A,notes:i}),[N,c,C,y,w,g,A,i]);return(0,b.jsx)(v,{value:D,children:t})},j=(0,a.createContext)({currentModal:null,modals:[],popModal:d.l,resetStack:d.l,openSetReminder:d.l,openDeleteConfirmation:d.l,withUnsavedConfirmation:d.l}),N=()=>(0,a.use)(j),f=e=>{let t=e.children,l=e.initialNoteId,s=e.isSingleNoteMobileFlow,i=e.closeModal;const n=(0,a.useState)([{type:"notes",payload:{initialNoteId:l,isSingleNoteMobileFlow:s}}]),r=(0,o.A)(n,2),d=r[0],u=r[1],m=(0,c.H)(d),x=p().isSaveDisabled,h=(0,a.useCallback)(e=>{u(t=>[...t,e])},[]),v=(0,a.useCallback)(function(){u([{type:"notes",payload:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}])},[]),k=(0,a.useCallback)(()=>{h({type:"set-reminder"})}
1,[h]),N=(0,a.useCallback)(e=>{h({type:"delete-confirmation",payload:e})},[h]),f=(0,a.useCallback)(e=>{h({type:"unsaved-confirmation",payload:e})},[h]),C=(0,a.useCallback)(e=>{x?e():f({actionCallback:e})},[f,x]),g=(0,a.useCallback)(()=>{const e=()=>{1!==d.length?u(e=>e.slice(0,-1)):i()};"notes"===m.type?C(e):e()},[m.type,d.length,i,C]),w=(0,a.useMemo)(()=>({currentModal:m,modals:d,popModal:g,resetStack:v,openSetReminder:k,openDeleteConfirmation:N,withUnsavedConfirmation:C}),[m,d,g,v,k,N,C]);return(0,b.jsx)(j,{value:w,children:t})};l(944114),l(218111),l(161701);var C=l(451106),g=l(687851);const w=(0,a.createContext)({handleDelete:(0,C.G)(Promise.resolve(!1)),handleSave:(0,C.G)(Promise.resolve(null))}),y=()=>(0,a.use)(w),M=e=>{let t=e.children;const l=p(),s=l.currentNote,i=l.setError,o=l.notes,d=(0,r.f)(),c=d.biSource,u=d.ticker,h=(0,m.v)(),v=h.createTickerNote,k=h.updateTickerNote,j=h.deleteTickerNote,N=(0,a.useCallback)(e=>{var t;const l=null!==(t=e.body)&&void 0!==t&&t.errors?e.body.errors.map(e=>{var t;return(null===(t=e.meta)||void 0===t?void 0:t.message)||e.detail}).join("\n"):{id:"ZWDk6E"};i(l)},[i]),f=null==s?void 0:s.id,C=(0,a.useCallback)(async()=>{if(!f)return!1;c&&(0,n.DK)(c);const e=(0,x.jU)(o,f);return await j(e,u.slug).catch(e=>(N(e),!1))},[c,f,j,N,o,u.slug]),y=(0,a.useCallback)(async()=>{c&&(0,n.NI)({biSource:c,isNewNote:!(null!=s&&s.id),tickerName:u.name});try{if(null!=s&&s.id){const e=(0,x.jU)(o,s.id),t=await k({note:e,reminder:s.reminder,value:s.content});return g.W.push({content:{id:"AgC-EV"}}),t}const e=await v({reminder:null==s?void 0:s.reminder,slug:u.slug,value:(null==s?void 0:s.content)||""});return g.W.push({content:{id:"id2lZG"}}),e}catch(e){return N(e),null}},[c,v,s,N,o,u.name,u.slug,k]),M=(0,a.useMemo)(()=>({handleDelete:C,handleSave:y}),[C,y]);return(0,b.jsx)(w,{value:M,children:t})},A=e=>{let t=e.children,l=e.initialNoteId,s=e.isSingleNoteMobileFlow,o=e.biSource,d=e.closeModal,c=e.ticker,u=e.title,m=e.closeLabel;return(0,a.useEffect)(()=>{o&&(0,n.OQ)(o)},[o]),(0,b.jsx)(i.C,{children:(0,b.jsx)(r.J,{biSource:o,closeLabel:m,ticker:c,title:u,children:(0,b.jsx)(k,{initialNoteId:l,slug:c.slug,children:(0,b.jsx)(M,{children:(0,b.jsx)(f,{closeModal:d,initialNoteId:l,isSingleNoteMobileFlow:s,children:t})})})})})};l(22489);var D=l(359999),S=l(520577),$=l(802403),T=l(251301),_=l(285917);const I=()=>(0,b.jsxs)("div",{className:"text-center",children:[(0,b.jsx)("p",{className:"mb-12",children:(0,b.jsx)(_.x6,{id:"AWrcaY"})}),(0,b.jsx)("p",{className:"mb-0",children:(0,b.jsx)(_.x6,{id:"2xOCJW"})})]}),O=e=>{let t=e.onDeleteSuccess;const l=N().popModal,s=y().handleDelete,i=(0,a.useCallback)(async()=>{const e=await s();l(),e&&t()},[s,l,t]);return(0,b.jsx)($.K,{ariaDialogLabelId:"delete-confirmation-modal-label",isMobile:(0,T.Xb)(),title:{id:"pYIea1"},onClose:l,onOverlayClick:l,children:(0,b.jsx)(S.A,{closeModal:l,content:(0,b.jsx)(I,{}),onConfirm:i})})};var z=l(427443),P=(l(720116),l(122713)),E=l(519770);const L=e=>{let t=e.onClick;const l=(0,_.uB)()._;return(0,b.jsx)("button",{"aria-label":l({id:"0nTPQw"}),className:"mr-16 flex size-36 items-center justify-center rounded-4 text-black-35 hover:text-share-negative lg:mr-14 lg:size-28",type:"button",onClick:t,children:(0,b.jsx)(E.A,{className:"size-16 fill-current"})})};var V=l(634164),B=l(40476),F=l(757272);const q=e=>{let t=e.error,l=e.rootClassName;const a=(0,_.uB)()._;return(0,b.jsxs)("div",{className:(0,V.$)(l,"flex items-start whitespace-break-spaces text-medium-2-r text-red-85 md:text-small-r"),"data-test-id":"error-message",children:[(0,b.jsx)(F.A,{className:"mr-8 w-12 pt-6 md:pt-2"}),(0,B.Z)(t)?a(t):t]})};var G=l(289098),H=l(869406);const Y=e=>{var t;let l=e.rootClassName;const s=(0,_.uB)()._,i=(0,z.G)().isLgScreen,n=p(),r=n.currentNote,o=n.setError,d=n.updateNoteField,c=null!=r&&r.updatedAt&&r.updatedAt!==r.createdAt?(0,G.GP)(r.updatedAt,"MM/dd/yyyy"):null,u=c?s({id:"yqDokX",values:{updateDate:c}}):null,m=(0,a.useCallback)(e=>{d("content",(0,x.p9)(e)),o((0,x.D5)(e))},[o,d]);return(0,b.jsx)(H.m,{appendedText:u,dataTestId:"stock-note-area",id:null==r?void 0:r.id,initialValue:null!==(t=null==r?void 0:r.content)&&void 0!==t?t:"",isMobileView:(0,T.Xb)()||!i,placeholder:{id:"dTJvpL"}
1,resizeContainerClassName:"K2yp_",rootClassName:l,onChange:m})};var R=l(508129),K=l(845791);const U=e=>(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12","aria-hidden":"true",...e,children:(0,b.jsx)("path",{fill:"currentColor",d:"M1.2 12q-.495 0-.847-.352A1.16 1.16 0 0 1 0 10.8V2.4q0-.495.352-.847Q.706 1.2 1.2 1.2h.6V.6a.58.58 0 0 1 .172-.427A.58.58 0 0 1 2.4 0a.58.58 0 0 1 .428.172A.58.58 0 0 1 3 .6v.6h4.8V.6a.58.58 0 0 1 .173-.427A.58.58 0 0 1 8.4 0a.58.58 0 0 1 .428.172A.58.58 0 0 1 9 .6v.6h.6q.495 0 .848.353.352.352.352.847v2.415a.58.58 0 0 1-.173.427.58.58 0 0 1-.427.173.58.58 0 0 1-.427-.173.58.58 0 0 1-.173-.427V4.8H1.2v6h3.6a.58.58 0 0 1 .428.172.58.58 0 0 1 .172.428.58.58 0 0 1-.173.428A.58.58 0 0 1 4.8 12zm0-8.4h8.4V2.4H1.2zm5.4 7.8v-.99a.62.62 0 0 1 .18-.435l3.135-3.12q.135-.135.3-.195a1 1 0 0 1 .33-.06.9.9 0 0 1 .645.27l.555.555q.12.135.188.3.066.165.067.33 0 .165-.06.338a.8.8 0 0 1-.195.307l-3.12 3.12a.6.6 0 0 1-.435.18H7.2a.58.58 0 0 1-.428-.172.58.58 0 0 1-.172-.428m.9-.3h.57l1.815-1.83-.27-.285-.285-.27L7.5 10.53zm2.115-2.115-.285-.27.555.555z"})});var J=l(12493);const Q="w-14 lg:w-12 mr-10 lg:mr-8",Z=()=>{const e=(0,_.uB)()._,t=(0,z.G)().isLgScreen,l=p().currentNote,s=(0,r.f)().biSource,i=N().openSetReminder,o=null==l?void 0:l.reminder,d=(0,a.useCallback)(()=>{s&&!o&&(0,n.Ro)(s),i()},[i,s,o]);return(0,b.jsxs)("button",{"aria-label":e(o?{id:"GaUY0F"}:{id:"v8gXQ8"}),className:"flex grow items-center justify-between lg:hfa:underline",type:"button",onClick:d,children:[(0,b.jsx)("div",{className:"flex items-center","data-test-id":"reminder",children:o?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(U,{className:(0,V.$)(Q,"text-share-text-3")}),(0,b.jsx)("span",{className:"text-medium-2-b text-black-70 dark:text-black-10",children:(0,G.GP)(o.date,"eee, MMM d, p")})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(K.A,{className:(0,V.$)(Q,"text-share-text-2")}),(0,b.jsx)("span",{className:"text-medium-2-r text-black-70 dark:text-black-10",children:(0,b.jsx)(_.x6,{id:"Yayg31"})})]})}),o||t?null:(0,b.jsx)(J.A,{className:"mr-2 w-6 text-share-text-3"})]})},X=e=>{let t=e.rootClassName;const l=(0,_.uB)()._,s=p(),i=s.currentNote,n=s.updateNoteField,r=s.setError,o=null==i?void 0:i.reminder,d=(0,a.useCallback)(()=>{n("reminder",null),r(null)},[r,n]);return(0,b.jsxs)("div",{className:(0,V.$)(t,"flex items-center rounded-8 border border-black-10 px-12 py-8 lg:border-0 lg:p-0"),children:[(0,b.jsx)(Z,{}),o?(0,b.jsx)("button",{"aria-label":l({id:"oJXaU6"}),className:"flex size-20 items-center justify-center lg:ml-12 lg:size-16 lg:rounded-4 lg:hover:bg-black-4 lg:dark:hover:bg-black-30/40",type:"button",onClick:d,children:(0,b.jsx)(R.A,{className:"w-10 text-share-text-3 lg:w-8"})}):null]})};var W=l(257815),ee=l(161540);const te={id:"HK3TO3",values:{MAX_NOTES:100}},le="bg-black-5 dark:bg-black-90/60",ae=()=>{const e=(0,_.uB)()._,t=p(),l=t.notes,s=t.currentNote,i=t.createNote,o=t.selectNote,d=(0,r.f)().biSource,c=N().withUnsavedConfirmation,u=s&&!s.id,m=(0,a.useCallback)(()=>{u||c(()=>{i(),d&&(0,n.xP)(d)})},[u,c,i,d]),x=(0,a.useCallback)(e=>{c(()=>{o(e)})},[o,c]),h=l.length>=100;return(0,b.jsxs)("div",{className:"mr-20 flex min-w-200 max-w-200 flex-col rounded-12 bg-black-5/60 dark:bg-black-95",children:[(0,b.jsxs)("div",{className:"px-20 py-16",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("div",{className:"text-medium-2-b text-black-70 dark:text-black-10",children:(0,b.jsx)(_.x6,{id:"EDmCFR"})}),(0,b.jsx)("button",{"aria-label":e({id:"P4Puwe"}),className:(0,V.$)("flex rounded-6 p-4",h?"bg-black-20 dark:bg-black-30/40":"bg-black-50 dark:bg-black-10"),disabled:h,type:"button",onClick:m,children:(0,b.jsx)(ee.A,{className:"w-12 text-white dark:text-black"})})]}),h?(0,b.jsx)(q,{error:te,rootClassName:"pt-8"}):null]}),l.length||u?null:(0,b.jsx)("div",{className:"px-20 py-16 text-medium-2-r text-black-35",children:(0,b.jsx)(_.x6,{id:"Dailnm"})}),(0,b.jsx)("div",{className:"h-0 grow overflow-y-auto",children:(0,b.jsxs)("ul",{className:"m-0 list-none p-0",children:[u?(0,b.jsx)("li",{children:(0,b.jsx)("button",{"aria-label":e({id:"J2Bryv"}),className:(0,V.$)("w-full px-20 py-16 text-left text-medium-2-r italic text-black-70 dark:text-black-10",u&&le),type:"button",children:(0,b.jsx)(_.x6,{id:"6r601d"})})}):null,l.map(e=>{const t=e.id===(null==s?void 0:s.id);return(0,b.jsx)("li",{children:(0,b.jsx)(W.r,{isNarrow:!0,contentClassName:(0,V.$)(t&&"font-bold"),lineCount:2,note:e,rootClassName:(0,V.$)(t&&`PHAo3 ${le}`,"relative px-20 py-16"),onClick:x})},e.id)})]})})]})},se=()=>{const e=p(),t=e.error,l=e.currentNote,s=e.createNote,i=e.selectNote,
1n=e.isSaveDisabled,r=e.notes,d=y().handleSave,c=N().openDeleteConfirmation,u=(0,a.useState)(!1),m=(0,o.A)(u,2),x=m[0],h=m[1],v=(0,a.useCallback)(async()=>{h(!0);const e=await d();e&&i(e),h(!1)},[d,i]),k=(0,a.useCallback)(()=>{c({onDeleteSuccess:()=>{const e=r.find(e=>e.id!==(null==l?void 0:l.id));e?i(e):s()}})},[s,null==l?void 0:l.id,r,c,i]);return(0,b.jsxs)("div",{className:"flex overflow-hidden","data-test-id":"my-notes-modal-desktop",children:[(0,b.jsx)(ae,{}),(0,b.jsxs)("div",{className:"flex flex-col overflow-hidden",children:[(0,b.jsx)(Y,{rootClassName:"h-full"}),(0,b.jsxs)("div",{className:"pt-18",children:[t?(0,b.jsx)(q,{error:t,rootClassName:"mb-10"}):null,(0,b.jsxs)("div",{className:"flex justify-between",children:[(0,b.jsx)(X,{}),(0,b.jsxs)("div",{className:"flex",children:[null!=l&&l.id?(0,b.jsx)(L,{onClick:k}):null,(0,b.jsx)(P.$,{disabled:n,pending:x,rootClassName:"oPuZ7",size:"small",variant:"black",onClick:v,children:(0,b.jsx)(_.x6,{id:"tfDRzk"})})]})]})]})]})]})},ie=()=>{const e=p(),t=e.error,l=e.currentNote,s=e.isSaveDisabled,i=e.resetNote,n=y().handleSave,r=N(),d=r.openDeleteConfirmation,c=r.resetStack,u=(0,a.useState)(!1),m=(0,o.A)(u,2),x=m[0],h=m[1],v=(0,a.useCallback)(()=>{i(),c()},[i,c]),k=(0,a.useCallback)(async()=>{h(!0),await n()&&v(),h(!1)},[n,v]),j=(0,a.useCallback)(()=>{d({onDeleteSuccess:v})},[v,d]);return(0,b.jsxs)("div",{className:"flex h-full flex-col pt-16","data-test-id":"note-editor-modal",children:[(0,b.jsx)(Y,{rootClassName:"h-0 grow overflow-hidden"}),(0,b.jsx)("div",{className:"pt-16",children:(0,b.jsx)(X,{rootClassName:(0,V.$)("mb-24 dark:border-black-30/40","bMtak")})}),t?(0,b.jsx)(q,{error:t}):null,(0,b.jsxs)("div",{className:"flex pt-16",children:[null!=l&&l.id?(0,b.jsx)(L,{onClick:j}):null,(0,b.jsx)(P.$,{disabled:s,pending:x,rootClassName:"grow",size:"medium",variant:"black",onClick:k,children:(0,b.jsx)(_.x6,{id:"tfDRzk"})})]})]})};var ne=l(952976);const re=()=>(0,b.jsxs)("div",{className:"flex grow flex-col items-center justify-center px-32 text-center",children:[(0,b.jsx)("div",{className:(0,V.$)("TGtMh","mb-24 flex size-80 items-center justify-center rounded-full bg-orange-60/10"),children:(0,b.jsx)(ne.A,{className:"h-40 text-orange-60"})}),(0,b.jsx)("div",{className:"mb-8 text-x-large-b",children:(0,b.jsx)(_.x6,{id:"6vFqe-"})}),(0,b.jsx)("div",{className:"text-large-3-r",children:(0,b.jsx)(_.x6,{id:"pYrMEL"})})]});var oe=l(505011);const de=e=>{let t=e.tickerNotes,l=e.onSelectNote;return(0,b.jsx)(oe.L,{rootClassName:"h-0 grow",scrollDirection:"vertical",children:(0,b.jsx)("ul",{className:"m-0 w-full list-none p-0",children:t.map(e=>(0,b.jsx)("li",{className:"border-b border-solid border-black-10 last:border-b-0 dark:border-black-30",children:(0,b.jsx)(W.r,{isMobileView:!0,lineCount:3,note:e,rootClassName:"py-16",onClick:l})},e.id))})})};var ce=l(97011),ue=l(658700);const me=e=>{let t=e.isLimitReached;const l=p().createNote,s=(0,r.f)().biSource,i=(0,a.useCallback)(()=>{l(),s&&(0,n.xP)(s)},[s,l]),o=(0,a.useCallback)(()=>{s&&(0,n.zV)(s)},[s]);return(0,b.jsxs)("div",{className:"pt-18",children:[(0,b.jsx)(P.$,{wide:!0,disabled:t,size:"medium",variant:"black",onClick:i,children:(0,b.jsx)(_.x6,{id:"DOTpgz"})}),(0,b.jsx)(ue.N_,{className:"block pt-16 text-center text-medium-2-r",to:ce.ZT["account.notes"],onClick:o,children:(0,b.jsx)(_.x6,{id:"Que0Jv"})})]})},xe=()=>{const e=p(),t=e.selectNote,l=e.notes,a=l.length>=100;return(0,b.jsxs)("div",{className:"flex h-full flex-col","data-test-id":"note-list-modal",children:[a?(0,b.jsx)(q,{error:te}):null,l.length?(0,b.jsx)(de,{tickerNotes:l,onSelectNote:t}):(0,b.jsx)(re,{}),(0,b.jsx)(me,{isLimitReached:a})]})};var be=l(353986),he=l(553770),ve=l(83559);const pe=["hidden","children"],ke=e=>(0,b.jsx)(ve.G,{ariaDialogLabelId:e}),je=e=>{let t=e.hidden,l=e.children,a=(0,be.A)(e,pe);const s=(0,_.uB)()._,i=N().popModal,n=(0,r.f)(),o=n.title,d=n.closeLabel;return(0,b.jsx)(he.P,{widthAuto:!0,ariaDialogLabelId:"my-notes-modal-label",closeLabel:d||s({id:"yz7wBu"}),hidden:t,isMobile:(0,T.Xb)(),title:o||ke,zIndex:"fixed",onClose:i,onOverlayClick:i,...a,children:l})},Ne=e=>{let t=e.isSingleNoteMobileFlow,l=e.initialNoteId,s=e.hidden;
1const i=p(),n=i.currentNote,r=i.resetNote,o=(0,z.G)().isLgScreen,d=N(),c=d.popModal,u=d.withUnsavedConfirmation,m=(0,a.useCallback)(()=>{u(r)},[r,u]),x=(0,a.useCallback)(()=>{n?m():c()},[n,m,c]);return o?(0,b.jsx)(je,{hidden:s,children:(0,b.jsx)(se,{})}):t||l?(0,b.jsx)(je,{hidden:s,children:(0,b.jsx)(ie,{})}):(0,b.jsx)(je,{closeButton:!n,hidden:s,onBackClick:n?m:null,onClose:x,onOverlayClick:x,children:n?(0,b.jsx)(ie,{}):(0,b.jsx)(xe,{})})};var fe=l(688652),Ce=l(305640);const ge=e=>{let t=e.date;return(0,b.jsxs)("div",{"aria-atomic":"true","aria-live":"polite",className:"flex w-full justify-between text-medium-2-r",children:[(0,b.jsx)("div",{className:"text-black-70 dark:text-black-10",children:(0,b.jsx)(_.x6,{id:"mYGY3B"})}),t?(0,b.jsx)("div",{className:"font-bold",children:(0,G.GP)(t,"EEE, MMM d, yyyy")}):null]})};var we=l(576623),ye=l(306787);const Me=["selected","onSelect","minDate","maxDate","isOverlay","header","rootClassName"],Ae=(0,V.$)("rounded-8 border border-black-10 bg-share-card-bg dark:border-black-30/40"),De=e=>{let t=e.selected,l=e.onSelect,a=e.minDate,s=e.maxDate,i=e.isOverlay,n=e.header,r=e.rootClassName,o=(0,be.A)(e,Me);return(0,b.jsx)(ye.P,{header:n,isMobileView:Boolean(i),rootClassName:(0,V.$)(Ae,r),children:(0,b.jsx)(we.Y,{...o,isMobileView:Boolean(i),maxDate:s,minDate:a,selected:t,onSelect:l})})},Se=["selected","onSelect","minDate","maxDate","isOpen","onClick"],$e=e=>{let t=e.selected,l=e.onSelect,a=e.minDate,s=e.maxDate,i=e.isOpen,n=e.onClick,r=(0,be.A)(e,Se);const o=(0,_.uB)()._;return(0,b.jsx)(ye.P,{isMobileView:!0,header:(0,b.jsx)("button",{"aria-label":o({id:"SJQM1I"}),className:"w-full",disabled:i,type:"button",onClick:n,children:(0,b.jsx)(ge,{date:t,isOpen:i})}),rootClassName:(0,V.$)(Ae,"mb-16 px-12"),children:i?(0,b.jsx)(we.Y,{...r,isMobileView:!0,maxDate:s,minDate:a,selected:t,onSelect:l}):null})};var Te=l(654859),_e=l(563193);const Ie=e=>{const t=e.split(":").map(Number),l=(0,o.A)(t,2);return 60*l[0]+l[1]},Oe=e=>`${Math.floor(e/60)}:${e%60}`,ze=(e,t)=>{const l=e.split(":").map(Number),a=(0,o.A)(l,2),s=a[0],i=a[1],n=new Date;return n.setHours(s,i,0,0),new Intl.DateTimeFormat(t,{hour:"numeric",minute:"2-digit"}).format(n)},Pe=e=>{let t=e.timeOptions,l=e.selectedTimeOption,s=e.currentTimeOption,i=e.onOptionClick;const n=(0,Te.bv)(),r=(0,a.useCallback)(e=>{i(e.value)},[i]),o=`time-picker-label-${(0,a.useId)()}`;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"sr-only",id:o,children:(0,b.jsx)(_.x6,{id:"z-s10Y"})}),(0,b.jsx)(_e.q,{ariaLabelId:o,initialActiveItemId:null==l?void 0:l.id,items:t,optionClassName:"w-full select-none",rootClassName:"m-0 list-none overflow-auto pl-0",onOptionClick:r,children:e=>{let t=e.item,l=e.isActive;return(0,b.jsx)("div",{className:(0,V.$)("rounded-8 px-12 py-8 text-left text-large-r md:rounded-0 md:px-18 md:py-10 md:text-medium-r",l?"bg-orange-60/10 font-bold text-orange-60":"",(null==s?void 0:s.id)===t.id&&"bg-black-5 dark:bg-black-30/20"),children:ze(t.value,n)})}})]})},Ee=e=>{let t=e.value,l=e.placeholder,a=e.isOpen,s=void 0===a||a;const i=(0,_.uB)()._,n=(0,Te.bv)();return(0,b.jsx)("div",{className:"px-12 pt-12 text-left md:pt-10",children:(0,b.jsx)("div",{className:(0,V.$)("block pb-12 md:pb-10",s&&"border-b border-black-10 dark:border-black-30/40"),children:(0,b.jsxs)("div",{className:"flex justify-between text-large-r lg:text-medium-2-r",children:[(0,b.jsx)("div",{className:"text-black-70 dark:text-black-10",children:(0,b.jsx)(_.x6,{id:"LhMjLm"})}),t?(0,b.jsx)("div",{className:"font-bold",children:ze(t,n)}):null,l&&!t?(0,b.jsx)("div",{className:"text-black-70 dark:text-black-10",children:(0,B.Z)(l)?i(l):l}):null]})})})},Le=new Date,Ve=`${Le.getHours()}:${Le.getMinutes()}`,Be=e=>{let t=e.selected,l=e.interval,s=e.startTime,i=e.endTime;const n=(0,a.useMemo)(()=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"23:59";const l=[],a=Ie(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;const l=e.split(":").map(Number),a=(0,o.A)(l,2),s=a[0],i=a[1];let n=Math.ceil(i/t)*t,r=s;return 60===n&&(n=0,r=(r+1)%24),`${r}:${n}`}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0:00",e)),s=Ie(t);for(let t=a;t<=s;t+=e){const e=Oe(t);l.push({id:e,value:e})}return l}(l,s,i),[l,s,i]),r=(0,a.useMemo)(()=>n.find(e=>e.value===t),[t,n]),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;const l=e.split(":").map(Number),a=(0,o.A)(l,2),s=a[0],i=a[1];return`${s}:${Math.floor(i/t)*t}`}(Ve,l),c=(0,a.useMemo)(()=>n.find(e=>e.value===d),[d,n]);return{timeOptions:n,selectedTimeOption:r,currentTimeOption:c}},Fe=(0,V.$)("flex min-h-0 flex-1 flex-col"),qe=(0,V.$)("GRngf",Fe,"rounded-8 border border-black-10 bg-share-card-bg dark:border-black-30/40"),Ge=(0,V.$)("px-12 pt-8 md:px-0 md:pt-10",Fe),He=e=>{let t=e.value,l=e.onChange,a=e.interval,s=void 0===a?15:a,i=e.startTime,n=e.endTime,r=e.rootClassName;const o=Be({selected:t,interval:s,startTime:i,endTime:n}),d=o.timeOptions,c=o.selectedTimeOption,u=o.currentTimeOption;return(0,b.jsxs)("div",{className:(0,V.$)(r,qe),children:[(0,b.jsx)(Ee,{value:null==c?void 0:c.value}),(0,b.jsx)("div",{className:Ge,children:(0,b.jsx)(Pe,{currentTimeOption:u,selectedTimeOption:c,timeOptions:d,onOptionClick:l})})]})},Ye=["value","onChange","rootClassName","isOpen","onClick"],Re=e=>{let t=e.value,l=e.onChange,a=e.rootClassName,s=e.isOpen,i=e.onClick,n=(0,be.A)(e,Ye);const r=(0,_.uB)()._,o=Be({selected:t,...n}),d=o.timeOptions,c=o.selectedTimeOption,u=o.currentTimeOption;return(0,b.jsxs)("div",{className:(0,V.$)(a,qe),children:[(0,b.jsx)("button",{"aria-label":r({id:"KspSOK"}),className:"w-full shrink-0",disabled:s,type:"button",onClick:i,children:(0,b.jsx)(Ee,{isOpen:s,placeholder:r({id:"m16xKo"}),value:null==c?void 0:c.value})}),s?(0,b.jsx)("div",{className:Ge,children:(0,b.jsx)(Pe,{currentTimeOption:u,selectedTimeOption:c,timeOptions:d,onOptionClick:l})}):null]})},Ke=e=>{let t=e.datePickerProps,l=e.timePickerProps;const s=(0,a.useState)("date"),i=(0,o.A)(s,2),n=i[0],r=i[1],d=e=>()=>{r(e)};return(0,b.jsxs)("div",{children:[(0,b.jsx)($e,{...t,isOpen:"date"===n,onClick:d("date")}),(0,b.jsx)(Re,{...l,isOpen:"time"===n,rootClassName:"NBa8V",onClick:d("time")}
1)]})},Ue=e=>{let t=e.datePickerProps,l=e.timePickerProps;return(0,b.jsxs)("div",{className:(0,V.$)("TQP7L","flex"),children:[(0,b.jsx)(De,{header:(0,b.jsx)(ge,{date:t.selected}),rootClassName:"mr-16 px-12",...t}),(0,b.jsx)(He,{...l})]})},Je=e=>{let t=e.value,l=e.onChange,s=e.isMobileView,i=e.minDate,n=e.maxDate,r=e.datePickerProps,d=e.timePickerProps;const c=(0,a.useState)(t),u=(0,o.A)(c,2),m=u[0],x=u[1],h=t&&`${t.getHours()}:${t.getMinutes()}`,v=(0,a.useState)(h),p=(0,o.A)(v,2),k=p[0],j=p[1],N=m&&i&&(0,fe.r)(i,m)?`${i.getHours()}:${i.getMinutes()}`:void 0,f=m&&n&&(0,fe.r)(n,m)?`${n.getHours()}:${n.getMinutes()}`:void 0,C=(0,a.useCallback)(e=>{if(!m)return void j(e);const t=e.split(":").map(Number),a=(0,o.A)(t,2),s=a[0],i=a[1],n=(0,Ce.h)(m,{hours:s,minutes:i});x(n),j(e),null==l||l(n)},[l,m]),g=(0,a.useCallback)(e=>{if(!e)return x(void 0),void(null==l||l());if(!k)return void x(e);const t=k.split(":").map(Number),a=(0,o.A)(t,2),s=a[0],i=a[1],n=(0,Ce.h)(e,{hours:s,minutes:i});x(n),null==l||l(n)},[l,k]),w={...r,minDate:i||(null==r?void 0:r.minDate),maxDate:n||(null==r?void 0:r.maxDate),selected:m,onSelect:g},y={...d,startTime:N||(null==d?void 0:d.startTime),endTime:f||(null==d?void 0:d.endTime),value:k,onChange:C};return s?(0,b.jsx)(Ke,{datePickerProps:w,timePickerProps:y}):(0,b.jsx)(Ue,{datePickerProps:w,timePickerProps:y})};var Qe=l(301676);const Ze=e=>{let t=e.alert,l=e.setAlert,s=e.title,i=e.type;const n=(0,a.useCallback)(e=>{let t=e.target.checked;l(e=>({...e,[i]:t}))},[l,i]);return(0,b.jsx)(Qe.S,{checked:t[i],rootClassName:"ml-20",size:"medium",onChange:n,children:s})},Xe={initial:"medium",lg:"small"},We=(()=>{const e=new Date,t=new Date(e.getFullYear()+1,e.getMonth()+1,1,0,0,0,0);return new Date(t.getTime()-9e5)})(),et=()=>{const e=(0,_.uB)()._,t=(0,z.G)().isMdScreen,l=p(),s=l.currentNote,i=l.updateNoteField,d=l.setError,c=(0,r.f)().biSource,u=N().popModal,m=null==s?void 0:s.reminder,x=(0,a.useState)({email:!m||m.email,mobile:!m||m.mobile}),h=(0,o.A)(x,2),v=h[0],k=h[1],j=(0,a.useState)(null==m?void 0:m.date),f=(0,o.A)(j,2),C=f[0],g=f[1],w=(0,a.useCallback)(()=>{if(!C)return;const e={date:C,email:v.email,mobile:v.mobile};c&&(0,n.Q6)(c,e),i("reminder",e),d(null),u()},[C,v,c,i,d,u]),y=!C||!(v.email||v.mobile)||C.getTime()===(null==m?void 0:m.date.getTime())&&v.email===m.email&&v.mobile===m.mobile;return(0,b.jsxs)("div",{className:(0,V.$)("LVIhd","flex h-full flex-col justify-between pt-16 lg:pt-0"),children:[(0,b.jsx)(Je,{isMobileView:!t,maxDate:We,minDate:new Date,value:C,onChange:g}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"mb-24 flex items-center pt-20 text-medium-r text-black-70 md:mb-32 lg:mb-20 dark:text-white",children:[(0,b.jsx)(_.x6,{id:"9qnjYI"}),(0,b.jsx)(Ze,{alert:v,setAlert:k,title:e({id:"dMsM20"}),type:"mobile"}),(0,b.jsx)(Ze,{alert:v,setAlert:k,title:e({id:"O3oNi5"}),type:"email"})]}),(0,b.jsx)(P.$,{wide:!0,disabled:y,size:Xe,variant:"black",onClick:w,children:(0,b.jsx)(_.x6,{id:"NEMcDb"})})]})]})},tt=()=>
1{const e=N().popModal,t=(0,_.uB)()._;return(0,b.jsx)(he.P,{widthAuto:!0,ariaDialogLabelId:"date-time-modal-label",closeButton:!1,isMobile:(0,T.Xb)(),title:t({id:"gk66jJ"}),onBackClick:e,onClose:e,onOverlayClick:e,children:(0,b.jsx)(et,{})})};var lt=l(161462);const at={initial:"medium",lg:"small-b"},st=e=>{let t=e.actionCallback;const l=(0,a.useState)(!1),s=(0,o.A)(l,2),i=s[0],n=s[1],r=y().handleSave,d=N().popModal,c=(0,a.useCallback)(async()=>{n(!0);const e=await r();d(),n(!1),e&&t()},[r,t,d]),u=(0,a.useCallback)(()=>{d(),t()},[t,d]);return(0,b.jsxs)("div",{className:"flex flex-col items-center text-large-r","data-test-id":"delete-confirm-message",children:[(0,b.jsx)("div",{className:"mb-18 flex size-32 items-center justify-center rounded-full bg-share-negative lg:mb-12",children:(0,b.jsx)(lt.A,{className:"size-18 fill-white dark:fill-black-80"})}),(0,b.jsx)("div",{className:"mb-18 lg:mb-24",children:(0,b.jsx)(_.x6,{id:"YZfKfd"})}),(0,b.jsxs)("div",{className:"mt-auto flex w-full",children:[(0,b.jsx)(P.$,{wide:!0,rootClassName:"mr-16",size:at,variant:"red-invert",onClick:u,children:(0,b.jsx)(_.x6,{id:"bzSI52"})}),(0,b.jsx)(P.$,{wide:!0,pending:i,size:at,variant:"black",onClick:c,children:(0,b.jsx)(_.x6,{id:"tfDRzk"})})]})]})},it=e=>{let t=e.actionCallback;const l=N().popModal;return(0,b.jsx)($.K,{ariaDialogLabelId:"unsaved-confirmation-modal-label",isMobile:(0,T.Xb)(),title:{id:"dHEc5L"},onClose:l,onOverlayClick:l,children:(0,b.jsx)(st,{actionCallback:t})})},nt=()=>{const e=N(),t=e.modals,l=e.popModal;return(0,b.jsx)(D.$m,{onClose:l,children:t.filter((e,t,l)=>{let a=l.length;return"notes"===e.type||t===a-1}).map(function(){return((e,t,l)=>{if("set-reminder"===e.type)return(0,b.jsx)(tt,{},e.type);if("delete-confirmation"===e.type)return(0,b.jsx)(O,{onDeleteSuccess:e.payload.onDeleteSuccess},e.type);if("unsaved-confirmation"===e.type)return(0,b.jsx)(it,{actionCallback:e.payload.actionCallback},e.type);if("notes"===e.type){const a=t!==l.length-1;return(0,b.jsx)(Ne,{hidden:a,initialNoteId:e.payload.initialNoteId,isSingleNoteMobileFlow:e.payload.isSingleNoteMobileFlow},e.type)}return null})(...arguments)})})},rt=()=>{const e=(0,s.hS)(),t=e.openModal,l=e.closeModal,i=e.Modal,n=e.modalPayload,r=e.isModalOpen,o=(0,a.useCallback)(()=>{var e;null==n||null===(e=n.onClose)||void 0===e||e.call(n),l()},[l,n]);return{isModalOpen:r,openModal:t,Modal:(0,a.useCallback)(()=>null!=n&&n.ticker?(0,b.jsx)(i,{children:(0,b.jsx)(A,{closeModal:o,...n,children:(0,b.jsx)(nt,{})})}):null,[i,o,n])}}},778121(e,t,l){var a=l(385929),s=l(924777);const i="custom_notes_card";l.d(t,["NN",0,(e,t)=>{a.c.trackEvent({action:"click",source:e,type:"custom_notes",data:{symbol:t}})},"Oq",0,(e,t)=>{a.c.trackEvent({action:"shown",source:e,type:i,data:{symbol:t}})},"tL",0,{addCustomNote:"add_custom_note",editNote:"edit_note",followTicker:"follow_ticker",addCustomNoteFromHover:"add_custom_note_from_hover"},"xP",0,i,"zV",0,e=>{a.c.trackEvent({action:"click",source:e,type:(0,s.Uf)([i,"view_all"])})}])},257815(e,t,l){var a=l(285917),s=l(634164),i=l(296540),n=l(299741),r=l(474848);l.d(t,["r",0,e=>{let t=e.contentClassName,l=e.isMobileView,o=e.isNarrow,d=e.lineCount,c=e.note,u=e.rootClassName,m=e.onClick;const x=(0,a.uB)()._,b=(0,i.useCallback)(()=>{m(c)},[c,m]);return(0,r.jsx)("button",{"aria-label":x({id:"1-Oxi9"}),className:(0,s.$)(u,"w-full"),"data-test-id":"my-notes-list-item",type:"button",onClick:b,children:(0,r.jsx)(n.F,{contentClassName:t,isMobileView:l,isNarrow:o,lineCount:d,note:c})})}])},299741(e,t,l){l.d(t,{F:()=>b});var a={};l.r(a),l.d(a,{content:()=>d,lineClamp14:()=>c,lineClamp2:()=>u,lineClamp3:()=>m});var s=l(285917),i=l(634164),n=l(289098),r=l(154157),o=l(57420),d="nZbCW",c="IgBni",u="Fdmmo",m="PaKqC",x=l(474848);const b=e=>{let t=e.contentClassName,l=e.isMobileView,c=e.isNarrow,u=e.lineCount,m=e.note;const b=m.createdAt?(0,n.GP)(m.createdAt,"MM/dd/yy"):null;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(r.Q,{className:(0,i.$)(t,d,a[`lineClamp${u}`],l?"mb-8 text-large-2-r":"mb-4 text-medium-2-r","break-words text-left text-black-70 hover:underline dark:text-black-10"),children:m.content}),b?(0,x.jsxs)("div",{className:(0,i.$)(l?"text-medium-2-r":c?"text-small-r":"text-small-2-r","flex items-center justify-between text-share-text-2"),"data-test-id":"
1created-on",children:[(0,x.jsx)(s.x6,{id:"QI8Jad",values:{creationDate:b}}),m.tickerNoteReminder?(0,x.jsx)(o.r,{name:"bell-small",rootClassName:l?"size-14":"size-12"}):null]}):null]})}},594736(e,t,l){l.d(t,["D",0,"addTickerNote","c",0,[]])},429926(e,t,l){var a=l(296540),s=l(758523);const i={createTickerNote:s.I,deleteTickerNote:()=>Promise.resolve(!1),fetchTickerNotes:s.I,isLoading:!1,notesByTickerSlug:{},updateTickerNote:s.I},n=(0,a.createContext)(i);l.d(t,["T",0,n])},296850(e,t,l){var a=l(296540),s=l(429926);l.d(t,["v",0,()=>(0,a.use)(s.T)])},563193(e,t,l){var a=l(205544),s=(l(218111),l(161701),l(634164)),i=l(296540),n=l(99887),r=l(474848);l.d(t,["q",0,e=>{let t=e.children,l=e.items,o=e.rootClassName,d=e.itemClassName,c=e.optionClassName,u=e.selectedOptionClassName,m=e.onOptionClick,x=e.initialActiveItemId,b=void 0===x?"":x,h=e.ariaLabelId;const v=(0,i.useState)(b),p=(0,a.A)(v,2),k=p[0],j=p[1],N=`list-box-${(0,i.useId)()}`,f=(0,i.useState)(null),C=(0,a.A)(f,2),g=C[0],w=C[1],y=(0,i.useRef)([]);return(0,n.J)({38:e=>{if(!e)return;e.preventDefault();const t=y.current,a=l.findIndex(e=>e.id===k),s=a<=0?l.length-1:a-1,i=l[s],n=t[s];n&&(null==m||m(i),j(i.id),null==n||n.focus())},40:e=>{if(!e)return;e.preventDefault();const t=y.current,a=l.findIndex(e=>e.id===k),s=a>=l.length-1?0:a+1,i=l[s],n=t[s];n&&(null==m||m(i),j(i.id),null==n||n.focus())}},g),(0,r.jsx)("ul",{"aria-activedescendant":`${N}-${k}`,"aria-labelledby":h,className:(0,s.$)(o,"sa-outline-inset"),ref:w,role:"listbox",tabIndex:0,children:l.map((e,l)=>{const a=k===e.id;return(0,r.jsx)("li",{className:d,children:(0,r.jsx)("button",{"aria-selected":a,className:(0,s.$)(c,a&&u),id:`${N}-${e.id}`,ref:e=>{y.current[l]=e},role:"option",tabIndex:a?0:-1,type:"button",onClick:()=>{null==m||m(e),j(e.id)},children:t({item:e,index:l,isActive:a})})},e.id)})})}])},576623(e,t,l){var a=l(205544),s=l(353986),i=(l(962953),l(277419)),n=l(296540),r=l(969589),o=l(167912),d=l(454128),c=l(681955),u=l(488254),m=l(415367),x=l(922995),b=l(474848);const h=["minDate","maxDate","weekStartsOn","initialValue","onMonthChange","isMobileView","showOutsideDays","disabled"],v=(0,n.memo)(e=>{let t=e.minDate,l=e.maxDate,v=e.weekStartsOn,p=void 0===v?0:v,k=e.initialValue,j=e.onMonthChange,N=e.isMobileView,f=e.showOutsideDays,C=e.disabled,g=(0,s.A)(e,h);const w=(0,d.yS)(),y=(0,d.Te)(),M=(0,n.useMemo)(()=>{const e=[t?{before:t}:null,l?{after:l}:null].filter(Boolean);return C?[...e,...Array.isArray(C)?C:[C]]:e},[t,l,C]),A=(0,r.I)(()=>k,[k]),D=(0,a.A)(A,2),S=D[0],$=D[1],T=(0,n.useCallback)(e=>{$(e),null==j||j(e)},[j,$]),_=(0,x.Z)(N,f),I=(0,n.useCallback)(e=>(0,b.jsx)(u.a,{...e,isMobileView:N}),[N]),O=(0,n.useCallback)(e=>(0,b.jsx)(m.P,{...e,isMobileView:N}),[N]);return(0,b.jsx)("div",{"data-test-id":"day-picker-component",children:(0,b.jsx)(i.h,{...g,classNames:_,components:{Chevron:c.c,MonthCaption:O,Nav:I,...g.components},disabled:M,endMonth:l,formatters:{formatWeekdayName:w,formatCaption:y},mode:"single",month:null!=S?S:o.Es,showOutsideDays:f,startMonth:t,weekStartsOn:p,onMonthChange:T})})});v.displayName="DayPickerComponent",l.d(t,["Y",0,v])},488254(e,t,l){var a=l(773785),s=l(474848);l.d(t,["a",0,e=>{let t=e.onNextClick,l=e.onPreviousClick,i=e.previousMonth,n=e.nextMonth,r=e.isMobileView;return(0,s.jsx)(a.M,{isMobileView:r,nextDisabled:!n,prevDisabled:!i,rootClassName:"absolute right-4 top-4 flex h-20 items-center justify-between",onNextClick:t,onPrevClick:l})}])},415367(e,t,l){var a=l(634164),s=l(474848);l.d(t,["P",0,e=>{let t=e.isMobileView,l=e.children;return(0,s.jsx)("div",{className:(0,a.$)("mt-4 h-20 px-6 text-medium-2-r",t?"":"mb-6"),children:l})}])},922995(e,t,l){l.d(t,{Z:()=>r});var a=l(634164),s=l(206484);const i=(0,a.$)("text-black-70 dark:text-black-10"),n={root:(0,a.$)(s.zr,"text-large-r",i),month:(0,a.$)("flex w-full select-none flex-col justify-center"),month_grid:(0,a.$)("w-full table-fixed border-separate text-center"),day:(0,a.$)("p-0"),weekday:(0,a.$)(`${s.jr} shrink-0 p-0 text-center text-small-b uppercase`),day_button:(0,a.$)(`${s.vd} relative m-auto flex shrink-0 cursor-pointer items-center justify-center rounded-full`),today:s.Ec,selected:s.wH,focused:s.in},r=(e,t)=>({...n,root:(0,a.$)(n.root,e?s.Ms:s.aQ),month_grid:(0,a.$)(n.month_grid,e?"-mb-16 border-spacing-y-16":"-mb-10 border-spacing-y-8 px-6"),day_button:(0,a.$)(n.day_button,e?"text-large-r":"text-medium-r"),outside:t?s.od:s.qY})},306787(e,t,l){l.d(t,{P:()=>n});var a=l(285917),s=l(634164),i=l(474848);const n=e=>{let t=e.header,l=e.children,n=e.footer,r=e.isMobileView,o=e.scrollC
1ontentNodeRef,d=e.dataTestId,c=void 0===d?"date-picker":d,u=e.contentClassName,m=e.rootClassName,x=e.beforeContent;const b=(0,a.uB)()._;return(0,i.jsxs)("div",{"aria-label":b({id:"KeE_-J"}),"aria-modal":"true",className:(0,s.$)("relative flex min-h-0 grow flex-col",m),"data-test-id":c,role:"dialog",children:[t?(0,i.jsx)("div",{className:(0,s.$)("text-left",r?"pt-12":"pt-10"),children:(0,i.jsx)("div",{className:(0,s.$)("flex pb-12",l?"border-b border-black-10 dark:border-black-30/40":""),children:t})}):null,x?(0,i.jsx)("div",{className:(0,s.$)("flex pt-12"),children:x}):null,l?(0,i.jsx)("section",{className:(0,s.$)("-my-4 flex min-h-0 grow flex-col py-16",u),ref:o,children:(0,i.jsx)("div",{className:(0,s.$)("min-h-0 grow",r?["overflow-y-auto overflow-x-hidden","VZLTR"]:""),children:(0,i.jsx)("div",{className:(0,s.$)("w-full",r?"ONFP9":"GIl0j"),children:l})})}):null,n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"h-1",children:(0,i.jsx)("div",{className:"absolute inset-x-0 border-t border-solid border-black-10 dark:border-black-30"})}),(0,i.jsx)("div",{className:(0,s.$)("flex shrink-0 justify-between gap-8 py-8"),children:n})]}):null]})}},681955(e,t,l){var a=l(634164),s=l(12493),i=l(474848);l.d(t,["c",0,e=>{let t=e.orientation,l=e.rootClassName;return(0,i.jsx)(s.A,{className:(0,a.$)("size-10 fill-current",l,"left"===t&&"rotate-180")})}])},773785(e,t,l){l.d(t,{M:()=>r});var a=l(634164),s=l(681955),i=l(474848);const n=(0,a.$)("flex items-center justify-center text-black-70 aria-disabled:text-black-10 dark:text-black-10 dark:aria-disabled:text-black-30/40"),r=e=>{let t=e.prevDisabled,l=e.nextDisabled,r=e.isMobileView,o=e.onPrevClick,d=e.onNextClick,c=e.rootClassName;return o||d?(0,i.jsxs)("div",{className:(0,a.$)("flex items-center justify-between",c,r?"EPgl3":"dSoXY"),children:[(0,i.jsx)("button",{"aria-disabled":t,className:(0,a.$)(n,r?"size-20":"size-16"),disabled:t,type:"button",onClick:o,children:(0,i.jsx)(s.c,{orientation:"left"})}),(0,i.jsx)("button",{"aria-disabled":l,className:(0,a.$)(n,r?"size-20":"size-16"),disabled:l,type:"button",onClick:d,children:(0,i.jsx)(s.c,{})})]}):null}},167912(e,t,l){l.d(t,{Jn:()=>a});let a=function(e){return e.range="RANGE_STAGE",e.years="YEARS_STAGE",e.months="MONTHS_STAGE",e.days="DAYS_STAGE",e}({});const s=new Date("01/01/2003"),i=new Date;l.d(t,["$Y",0,"DAYS_RANGE_CLICK","AN",0,s,"Dc",0,"MONTHS_STAGE","Es",0,i,"FI",0,"MONTH_INPUT_CLICK","H8",0,"CLEAR_DATE","Lp",0,{id:"D3-uUx"},"UX",0,{id:"Y6D_rJ"},"_n",0,"DAY_CLICK","cH",0,"YEAR_INPUT_CLICK","cL",0,"fromDate","d_",0,{id:"ocaKH3"},"mu",0,"CLEAR_RANGE","pF",0,"RANGE_STAGE","p_",0,"DAY_INPUT_CLICK","pt",0,"DAYS_STAGE","rY",0,"DATE_LABEL_CLICK","w4",0,[{id:"Sun",label:{id:"D89zck"}},{id:"Mon",label:{id:"fpMgHS"}},{id:"Tue",label:{id:"vq2WxD"}},{id:"Wed",label:{id:"0f7U0k"}},{id:"Thu",label:{id:"-FjWgX"}},{id:"Fri",label:{id:"xVhQZV"}},{id:"Sat",label:{id:"PiK6Ld"}}],"ye",0,"YEARS_STAGE"])},454128(e,t,l){var a=l(205544),s=(l(218111),l(161701),l(285917)),i=l(381348),n=l(80658),r=l(632370),o=l(296540);const d=/^(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/\d{4}$/u;l.d(t,["Te",0,()=>{const e=(0,s.uB)().i18n.locale;return(0,o.useCallback)(t=>new Intl.DateTimeFormat(e,{month:"long",year:"numeric"}).format(t),[e])},"vd",0,(e,t,l)=>{const s=new Date(e),o=!t||s>=(0,i.$)(t),c=!l||s<=(0,i.$)(l);return(0,n.$)(s)&&(0,r.f)(s)&&((e,t)=>{if(!d.test(t))return!1;const l=t.split("/").map(Number),s=(0,a.A)(l,3),i=s[0],n=s[1],r=s[2];return e.getFullYear()===r&&e.getMonth()===i-1&&e.getDate()===n})(s,e)&&o&&c},"yS",0,()=>{const e=(0,s.uB)().i18n.locale;return(0,o.useCallback)(t=>new Intl.DateTimeFormat(e,{weekday:"short"}).format(t),[e])}])},845791(e,t,l){l(296540);var a=l(474848);l.d(t,["A",0,e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 14","aria-hidden":"true",...e,children:(0,a.jsx)("path",{fill:"currentColor",d:"M1.333 13.667q-.55 0-.941-.391A1.28 1.28 0 0 1 0 12.334V3.001q0-.55.392-.942.391-.392.941-.392H2V.334h1.333v1.333h5.334V.334H10v1.333h.667q.55 0 .941.392.392.392.392.942v9.333q0 .55-.392.942a1.28 1.28 0 0 1-.941.391zm0-1.333h9.334V5.667H1.333zm0-8h9.334V3.001H1.333zm4.667 4a.65.65 0 0 1-.475-.192.65.65 0 0 1-.192-.475q0-.283.192-.475A.65.65 0 0 1 6 7.001q.283 0 .475.191a.65.65 0 0 1 .192.475.65.65 0 0 1-.192.475.65.65 0 0 1-.475.192m-2.667 0a.65.65 0 0 1-.475-.192.65.65 0 0 1-.191-.475q0-.283.191-.475a.65.65 0 0 1 .475-.191q.285 0 .475.191A.65.65 0 0 1 4 7.667a.65.65 0 0 1-.192.475.65.65 0 0 1-.475.192m5.334 0a.65.65 0 0 1-.475-.192A.65.65 0 0 1 8 7.667q0-.283.192-.475a.65.65 0 0 1 .475-.191q.283 0 .475.191a.65.65 0 0 1 .191.475.65.65 0 0 1-.191.475.65.65 0 0 1-.475.192M6 11.001a.65.65 0 0 1-.475-.192.65.65 0 0 1-.192-.475q0-.283.192-.475A.65.65 0 0 1 6 9.667q.283 0 .475.192a.65.65 0 0 1 .192.475.65.65 0 0 1-.192.475.65.65 0 0 1-.475.192m-2.667 0a.65.65 0 0 1-.475-.192.65.65 0 0 1-.191-.475q0-.283.191-.475a.65.65 0 0 1 .475-.192q.285 0 .475.192a.65.65 0 0 1 .192.475.65.65 0 0 1-.192.475.65.65 0 0 1-.475.192m5.334 0a.65.65 0 0 1-.475-.192.65.65 0 0 1-.192-.475q0-.283.192-.475a.65.65 0 0 1 .475-.192q.283 0 .475.192a.65.65 0 0 1 .191.475.65.65 0 0 1-.191.475.65.65 0 0 1-.475.192"})})])},952976(e,t,l){l(296540);var a=l(474848);l.d(t,["A",0,e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M6 12h4a.65.65 0 0 0 .475-.192.65.65 0 0 0 .192-.475.65.65 0 0 0-.192-.475.65.65 0 0 0-.475-.191H6a.65.65 0 0 0-.475.191.65.65 0 0 0-.192.475q0 .285.192.475A.65.65 0 0 0 6 12m0-2.667h4a.65.65 0 0 0 .475-.191.65.65 0 0 0 .192-.475.65.65 0 0 0-.192-.475A.65.65 0 0 0 10 8H6a.65.65 0 0 0-.475.192.65.65 0 0 0-.192.475q0 .283.192.475A.65.65 0 0 0 6 9.333m-2 5.334q-.55 0-.942-.392a1.28 1.28 0 0 1-.391-.942V2.667q0-.55.391-.942.392-.392.942-.392h4.783a1.32 1.32 0 0 1 .934.384L12.95 4.95q.184.183.283.425.1.241.1.508v7.45q0 .55-.391.942a1.28 1.28 0 0 1-.942.392zm4.667-9.334V2.667H4v10.666h8V6H9.333a.65.65 0 0 1-.475-.192.65.65 0 0 1-.191-.475"})})])},161462(e,t,l){l(296540);var a=l(474848);l.d(t,["A",0,e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48","aria-hidden":"true",...e,children:(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M47.359 37.208 27.992 4.248c-1.797-2.997-6.19-2.997-7.787 0L.64 37.207C-1.158 40.205 1.038 44 4.632 44h38.734c3.594 0 5.79-3.795 3.993-6.792M26.499 14v9.747a26 26 0 0 1-.19 3.118 47 47 0 0 1-.5 3.135h-3.62a47 47 0 0 1-.5-3.135 26 26 0 0 1-.19-3.118V14zm-2.5 24a3 3 0 1 0 0-6 3 3 0 0 0 0 6",clipRule:"evenodd"})})])},206484(e,t,l){l.d(t,{Ec:()=>x,Ms:()=>c,_N:()=>s,aQ:()=>d,in:()=>i,jr:()=>h,mc:()=>n,ni:()=>m,od:()=>b,qY:()=>r,vd:()=>a,wH:()=>u,zr:()=>o});var a="vkpwI",s="xIp9_",i="HkGIE",n="_DAPs",r="WXlYJ",o="gJKgw",d="Grfi3",c="eAh6m",u="nESjf",m="KjyeJ",x="ZV34k",b="V8wkP",h="z1smV"}}]);
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.