https://snowball-income.com/_next/static/chunks/pages/calculator/dividend/[slug]-aae265838ab3e48b.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6727,7690],{554:e=>{e.exports={textarea:"FeedbackPopup_textarea__Z2qhF",feedbackPopup:"FeedbackPopup_feedbackPopup__uA6Rx",content:"FeedbackPopup_content__JFh8D"}},2587:e=>{e.exports={root:"LastSyncState_root__phvsP",block:"LastSyncState_block__Vogii"}},4707:(e,t,s)=>{"use strict";s.d(t,{o:()=>c});var a=s(26514);s(75834);var n=s(59757),i=s(28684),r=s(16926),l=s(95965),o=s.n(l);function c(e){let{question:t,label:s,className:l}=e,c=(0,n.wA)(),d=(0,i.h)();return(0,a.jsxs)("button",{type:"button",className:`label label-inline label-light-primary ${o().root} ${l??""}`,onClick:()=>{c((0,r.s6)(t)),d.setOpen(!0)},title:t,children:[(0,a.jsx)("img",{src:"/media/svg/icons/General/ai-sparkle-gradient.svg",className:o().icon}),(0,a.jsx)("span",{children:s})]})}},9096:e=>{e.exports={resultsCard:"ResultsCard_resultsCard__FEKjV",header:"ResultsCard_header__w08ir",symbolLabel:"ResultsCard_symbolLabel__bbkbo",label:"ResultsCard_label__xg8K1",mainValue:"ResultsCard_mainValue__1A9ZA",divider:"ResultsCard_divider___Yb3H",metrics:"ResultsCard_metrics__RwGtO",metricRow:"ResultsCard_metricRow__0AckR",metricLabel:"ResultsCard_metricLabel__pILYF",metricValue:"ResultsCard_metricValue__7joMI",ctaSection:"ResultsCard_ctaSection__uP9up",ctaText:"ResultsCard_ctaText__5ADb8",ctaButton:"ResultsCard_ctaButton__kIKG_",ctaSubtext:"ResultsCard_ctaSubtext__yLWB9"}},10140:(e,t,s)=>{"use strict";s.d(t,{Qn:()=>r}),s(9610);var a=s(32491),n=s.n(a);s(41673),s(75119),s(20983);var i=s(47115);s(55285);let r=(e,t)=>{if(!e)return"";let s=n()(i.b5,t=>t.code===e);if(s)return t?s.symbol:s.htmlCode??s.symbol;if(e?.indexOf("-USD")>-1)return e.replace("-USD","");try{return 0..toLocaleString("en-US",{style:"currency",currency:e,minimumFractionDigits:0,maximumFractionDigits:0}).replace(/\d/g,"").trim()}catch{return e?.toUpper()}}},10164:(e,t,s)=>{"use strict";s.d(t,{Q:()=>o});var a=s(26514);s(75834);var n=s(80966),i=s(96731),r=s(97363),l=s(40030);function o(e){let{MenuProps:t,...s}=e;return(0,a.jsxs)(a.Fragment,{children:[!n.Fr&&(0,a.jsx)(l.A,{...s,variant:"filled",MenuProps:{disablePortal:!0,disableScrollLock:!0,...t},children:e.items.map(e=>(0,a.jsx)(i.A,{value:e.value,children:e.display??e.name},e.value))}),n.Fr&&(0,a.jsxs)(r.A,{...s,variant:"filled",children:[!0==e.nullable&&(0,a.jsx)("option",{value:"",children:"---"},"111"),e.items.map(e=>(0,a.jsx)("option",{value:e.value,children:e.name},e.value))]})]})}},11377:e=>{e.exports={badge:"DividendYieldCard_badge__nOeLI"}},11754:e=>{e.exports={unavailableMessage:"AiChatUnavailableNotice_unavailableMessage__3nud_",unavailableCard:"AiChatUnavailableNotice_unavailableCard__vFIGr",unavailableIcon:"AiChatUnavailableNotice_unavailableIcon__899RB",unavailableBody:"AiChatUnavailableNotice_unavailableBody__0uuNE"}},13285:(e,t,s)=>{"use strict";s.d(t,{F:()=>d});var a=s(75834),n=s(93760),i=s(7086),r=s(36241),l=s(15269),o=s(63390),c=s(32683);function d(e){let{portfolioId:t,userId:s,userRole:d,checkRoles:u}=e,{t:m}=(0,n.B)("common"),[h,p]=(0,a.useState)([]),[x,g]=(0,a.useState)(!1),C=(e,t)=>!0!==t||((e?.includes("headSupport")||e?.includes("support"))??!1),f=(0,a.useCallback)(async()=>{if(t&&C(d,u)){g(!0);try{let e=await i.A.get(`${o.Zwb}/${t}`,{portfolioId:t});p(e.data),g(!1)}catch(t){console.error(t);let e=(0,r.g6)(`${m("ERROR.FAILED_TO_LOAD_DATA")}: 2`,t);l.f1(e),g(!1)}}},[t,d,u]),A=(0,a.useCallback)(async()=>{if(s&&C(d,u)){g(!0);try{let e=await i.A.get(`${c.Vr}/${s}`);p(e.data||[])}catch(t){console.error(t);let e=(0,r.g6)(`${m("ERROR.FAILED_TO_LOAD_DATA")}: 3`,t);l.f1(e)}finally{g(!1)}}},[s,d,u]);return(0,a.useEffect)(()=>{t?f():s&&A()},[t,s,f,A]),{load:t?f:A,data:h,isLoading:x}}},15124:(e,t,s)=>{"use strict";s.d(t,{N:()=>i,U:()=>n});var a=s(62379);function n(e,t){e&&(e.syncDate=e.syncDate?new Date(e.syncDate):null,e.providerSyncDate=e.providerSyncDate?new Date(e.providerSyncDate):null,(e.providerSyncDate||e.syncDate)&&(e.syncDateDistance=(0,a.A)(e.providerSyncDate??e.syncDate,new Date,{addSuffix:!0,locale:t})))}function i(e,t){if(e?.length)for(let s of e)n(s,t)}},16974:e=>{e.exports={usageBar:"AiChatUsage_usageBar__yww5E",totalUsage:"AiChatUsage_totalUsage__zUcv7"}},19806:e=>{e.exports={footer:"AiChatPanelFooter_footer__HxNax",detailsBtn:"AiChatPanelFooter_detailsBtn__N41C_",feedbackBtn:"AiChatPanelFooter_feedbackBtn__RdVvb"}},21069:(e,t,s)=>{"use strict";s.d(t,{A:()=>x,HC:()=>u,Jz:()=>m,Q0:()=>A,S0:()=>h,TZ:()=>f,Yo:()=>C,gW:()=>p,hz:()=>c,xO:()=>d});var a=s(26514),n=s(75834),i=s(47115),r=s(45251),l=s(24163),o=s(35061);
3function c(e){let[t,s]=(0,n.useState)(e.primaryLogoUrl??e.logoUrl),[r,l]=(0,n.useState)(e.logoUrl),o=e.type??i.P1.ASSET,c=e.ticker?e.ticker.replace(/[^\p{L}\d]/gu,"").substring(0,4).toUpperCase():null,d=e.className??"",{assetType:u}=e;return(0,n.useEffect)(()=>{s(e.primaryLogoUrl??e.logoUrl),l(e.logoUrl)},[e.logoUrl,e.primaryLogoUrl]),u&&u===i.PW.BOND&&e.name&&(c=e.name.replace(/[^\p{L}\d]/gu,"").substring(0,3).toUpperCase()),(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)("div",{className:`asset-image-container bgi-no-repeat asset-image-container-${e.size} ${d}`,children:(0,a.jsx)("img",{className:"asset-image-container-img",src:t,alt:`${c}_logo`,onError:()=>{r&&t!=r?s(r):s(null)}})}),!t&&!c&&(0,a.jsx)("div",{className:`asset-image-container d-flex align-items-center justify-content-center text-white asset-image-container-${e.size} ${d}`,style:{backgroundColor:e.color??"#5390d9"},children:(0,a.jsxs)("span",{children:[o==i.P1.ASSET&&(0,a.jsx)("i",{className:"text-white flaticon-graph"}),o==i.P1.PIE&&(0,a.jsx)("i",{className:"text-white flaticon-pie-chart"})]})}),!t&&c&&(0,a.jsx)("div",{className:`asset-image-container d-flex align-items-center justify-content-center asset-image-default asset-image-container-${e.size} ${d}`,style:{backgroundColor:e.color??"#424451"},children:(0,a.jsx)("span",{className:"font-weight-bold asset-image-label",children:c})})]})}let d=e=>e&&(e.indexOf("joint")>=0||e.indexOf("Joint")>=0||e.indexOf("public")>=0||e.indexOf("PJSC")>=0)?e.replace(", Public Joint-Stock Company","").replace("(Public joint-stock company)","").replace("(Public Joint Stock Company)","").replace("(public joint-stock company)","").replace("Public Joint Stock Oil Company","").replace("Public Joint Stock Company","").replace("Public Joint-Stock Company","").replace("Public Joint-stock company","").replace("Public Joint stock company","").replace("Public joint stock company","").replace("Public joint-stock company","").replace("Publicly Traded Company","").replace("Open Joint Stock Company","").replace("Open Joint-Stock Company","").replace("public-stock company","").replace("The Open Joint Stock Company","").replace("Open joint stock company","").replace("public joint-stock company","").replace("public joint stock company","").replace("Public Joint - Stock Company","").replace("Public Joint-Stock","").replace("public stock company","").replace("Joint-stock company","").replace("PJSC","").replace("Joint Stock Company","").replace("Open Joint-Stock Company","").trim():e,u=e=>{switch(e){case i.PW.STOCK:return"ASSET_TYPE.STOCK";case i.PW.BOND:return"ASSET_TYPE.BOND";case i.PW.CASH:return"ASSET_TYPE.CASH";case i.PW.COMMODITY:return"ASSET_TYPE.COMMODITY";case i.PW.CRYPTO_CURRENCY:return"ASSET_TYPE.CRYPTO";case i.PW.CUSTOM:return"ASSET_TYPE.CUSTOM";case i.PW.ETF:return"ASSET_TYPE.ETF";case i.PW.REIT:return"ASSET_TYPE.REIT";case i.PW.OPTION:return"ASSET_TYPE.OPTIONS";case i.PW.FUTURES:return"ASSET_TYPE.FUTURES";default:return"ASSET_TYPE.OTHER"}},m=(e,t)=>{switch(e){case 4:return"DIV_FREQUENCY.QUATERLY";case 1:return"DIV_FREQUENCY.ANNUAL";case 12:return"DIV_FREQUENCY.MONTHLY";case 2:return"DIV_FREQUENCY.SEMIANNUAL";case 24:return"DIV_FREQUENCY.BIMONTHLY";case 365:case 250:return"DIV_FREQUENCY.DAILY";case 52:return"DIV_FREQUENCY.WEEKLY";default:if(t)return"DIV_FREQUENCY.OTHER";return"DIV_FREQUENCY.COUNT_YEAR"}},h=(e,t)=>{if("en"==t||"en-US"==t)switch(e){case"North America":case"United Kingdom":case"Europe Developed":case"Europe Emerging":case"Africa/Middle East":case"Japan":case"Australasia":case"Asia Developed":case"Asia Emerging":case"Latin America":return e;default:return"Other"}switch(e){case"North America":return"СевеÑÐ½Ð°Ñ ÐмеÑика";case"United Kingdom":return"ÐеликобÑиÑаниÑ";case"Europe Developed":return"РазвиÑÐ°Ñ ÐвÑопа";case"Europe Emerging":return"РазвиваÑÑаÑÑÑ ÐвÑопа";case"Africa/Middle East":return"ÐÑÑика/СÑедний ÐоÑÑок";case"Japan":return"ЯпониÑ";case"Australasia":return"ÐвÑÑÑÐ°Ð»Ð¸Ñ Ð¸ ÐÐ¾Ð²Ð°Ñ ÐеландиÑ";case"Asia Developed":return"РазвиÑÐ°Ñ ÐзиÑ";case"Asia Emerging":return"РазвиваÑÑаÑÑÑ ÐзиÑ";case"Latin America":return"ÐаÑинÑÐºÐ°Ñ ÐмеÑика";default:return"ÐÑоÑее"}},p=(e,t,s,a,n,r)=>{if(e===i.PW.CASH)return null;let l=s?.split(".").join("~");return(l=l?.split(" ").join("_"),e===i.PW.CUSTOM)?t:`${l}.${a}${n?`.${n}`:""}${r||""}`},x=(e,t,s,a,n,r)=>{if(e===i.PW.CASH)return null;if(e===i.PW.CUSTOM)return`/custom-holding/${t}`;let l=s?.split(".").join("~");l=l?.split(" ").join("_");let c=(0,o.T)(l,a,n);return`/public/asset/${c}${r||""}`},g=["SR","LSE","AU","RG","TL","VS","CL","AE","AB","SG","MI","CC","KLSE","NSE","BSE"];function C(e){return!!e&&g.indexOf(e)>=0}
3function f(e){let{exchange:t,isPublic:s,assetType:a,hideLinks:n}=e,r=!0!==n&&null!=a&&a!=i.PW.CASH&&!(a==i.PW.CUSTOM&&s);return s&&!(0,l.F)()&&C(t)&&(r=!1),r}function A(e){let t=f(e),s=null!=e.samePage?!e.samePage:!e.isPublic,n=x(e.assetType,e.id,e.ticker,e.exchange,e.currency,e.tab);return(0,a.jsx)(a.Fragment,{children:t?(0,a.jsx)(r.N,{href:n,legacyBehavior:!0,children:(0,a.jsx)("a",{className:`asset-link text-body ${e.linkClassName??""}`,target:s?"_blank":null,children:e.children})}):(0,a.jsx)(a.Fragment,{children:e.children})})}},23426:(e,t,s)=>{"use strict";s.d(t,{I:()=>g});var a=s(26514);s(75834);var n=s(59757),i=s(46225),r=s(93760),l=s(78231),o=s(33734),c=s(60547),d=s(5625),u=s(45251),m=s(47894),h=s(65119),p=s(83602),x=s(62400);function g(e){let{isDark:t,toggleTheme:s}=(0,p.DP)(),g=(0,i.useRouter)(),C=(0,m.sc)(),{t:f}=(0,r.B)("layout"),{user:A,referral:N,partnerUtm:_}=(0,n.d4)(e=>{let{auth:t,app:s}=e;return{user:t.user,referral:s.referral,partnerUtm:s.partnerUtm}}),b=g.pathname.indexOf("public/portfolios/")>=0,j={pathname:"/auth/registration",query:{...N?{promo:N}:{},..._?{p_utm:_}:{}}};return(0,a.jsxs)("div",{className:"mobile"!=e.view?"topbar":"d-flex align-items-center",children:[(0,a.jsx)(x.l,{isNewPage:!1}),(0,a.jsx)("div",{className:`mx-2 topbar-item ${!C?"d-none d-md-flex":""}`,children:(0,a.jsx)(o.A,{isDark:t,onChange:s})}),b&&(0,a.jsx)(h.J,{view:e.view}),(0,a.jsx)(l.Q,{persistor:d.qj,children:e.isSignedIn||A?(0,a.jsx)("div",{className:"topbar-item ml-3",children:(0,a.jsx)(u.N,{legacyBehavior:!0,href:"/dashboard",children:(0,a.jsx)("a",{className:"btn btn-light-primary font-weight-bold",children:f("mobile"!=e.view?"TOPBAR.TO_MY_PORTFOLIOS":"TOPBAR.TO_PORTFOLIOS")})})}):(0,a.jsx)("div",{className:"topbar-item ml-3",children:(0,a.jsx)(u.N,{legacyBehavior:!0,href:j,children:(0,a.jsx)("a",{onClick:()=>{(0,c.bW)(0x4eb7f82,"try")},className:"btn btn-primary font-weight-bold",children:f("mobile"!=e.view?"TOPBAR.TRY_FOR_FREE":"TOPBAR.TRY")})})})})]})}},24138:(e,t,s)=>{"use strict";s.d(t,{Bz:()=>i,PN:()=>o,gb:()=>n,s2:()=>l,sp:()=>r});var a=s(47115);function n(e){switch(e){case a.Qh.TRIAL:return"USER.PRICING.TRIAL_SUBSCRIPTION";case a.Qh.TIER_0:return"USER.PRICING.FREE_SUBSCRIPTION";case a.Qh.TIER_1:return"USER.PRICING.TIER1";case a.Qh.TIER_2:return"USER.PRICING.TIER2";case a.Qh.TIER_3:return"USER.PRICING.TIER3";case a.Qh.TIER_1_OLD:return"USER.PRICING.FULL_SUBSCRIPTION";default:return""}}function i(e){switch(e){case a.Qh.TIER_0:return"USER.PRICING.FREE_SUBSCRIPTION.FOR_WHO";case a.Qh.TIER_1:return"USER.PRICING.TIER1.FOR_WHO";case a.Qh.TIER_2:return"USER.PRICING.TIER2.FOR_WHO";case a.Qh.TIER_3:return"USER.PRICING.TIER3.FOR_WHO";case a.Qh.TIER_1_OLD:return"USER.PRICING.FULL_SUBSCRIPTION.FOR_WHO";case a.Qh.TRIAL:return"USER.PRICING.TRIAL.FOR_WHO";default:return""}}function r(e){switch(e){case a.Qh.TRIAL:return 2;case a.Qh.TIER_0:return"1";case a.Qh.TIER_1:return"2";case a.Qh.TIER_2:return"20";default:return null}}function l(e){switch(e){case a.Qh.TIER_0:return 1;case a.Qh.TIER_1:return 5;default:return null}}function o(e){return e===a.Qh.TIER_0?10:null}},27188:(e,t,s)=>{"use strict";s.d(t,{GK:()=>o,eM:()=>l,hY:()=>c});var a=s(75119),n=s.n(a),i=s(4469);let r="RecentSearchMainTop";function l(){let{items:e}=(0,i.Gu)(r,{items:[]});return e.filter(e=>{let{value:t}=e;return!!t})}function o(e){let t=l().filter(t=>{let{value:s}=t;return s!==e.value});t.unshift(e),t=n()(t,5),(0,i.LZ)(r,{items:t})}function c(e){(0,i.LZ)(r,{items:e})}},27497:e=>{e.exports={panel:"AiChatPanel_panel__X6bd9",header:"AiChatPanel_header__lJl67",clearBtn:"AiChatPanel_clearBtn__3vKCh",clearIcon:"AiChatPanel_clearIcon__oJm6v",messagesContainer:"AiChatPanel_messagesContainer__w2_7z",messages:"AiChatPanel_messages__UPhqn",jumpToLatestBtn:"AiChatPanel_jumpToLatestBtn__SVON7",jumpToLatestIcon:"AiChatPanel_jumpToLatestIcon__6knGv"}},30377:(e,t,s)=>{"use strict";s.d(t,{zP:()=>h,Ws:()=>te,Hl:()=>e9,uG:()=>f.uG});var a=s(26514),n=s(75834),i=s(93760),r=s(28684),l=s(47894),o=s(22871),c=s(67614),d=s(83308),u=s(89139),m=s.n(u);function h(e){let{children:t,className:s,onClick:u,title:h,allowGuide:p,isAnimated:x=!1,...g}=e,{t:C}=(0,i.B)("portfolio"),f=(0,r.h)(),A=(0,l.iT)(o.Y.AI_CHAT),N=(0,d.Mw)(),_=(0,n.useRef)(!1),[b,j]=(0,n.use
3State)(!1);return(0,n.useEffect)(()=>{!p||A.isShown||!N.isEnabled||N.isStarted||N.isRunning||(_.current=!1,A.saveShownState(),N.start(d.Fc.AI_CHAT,d.dG.AI_CHAT_BUTTON))},[p,A.isShown,N.isEnabled,N.isStarted,N.isRunning]),(0,n.useEffect)(()=>{p&&N.scenario===d.Fc.AI_CHAT&&N.status===d.Ne.SKIPPED&&!_.current&&(_.current=!0,A.saveShownState(),(0,c.s9)(c.Mg.AI_MEETFEATURE_SKIP))},[p,N.scenario,N.status]),(0,a.jsx)("button",{className:`btn-icon btn-light font-weight-bold ${m().root} ${x&&!b?m().highlighted:""} ${b?m().pulsed:""} ${!A.isShown?m().animated:""} ${s??""}`,onClick:e=>{u?.(e),A.saveShownState(),f.toggle(),x&&j(!0)},title:h??C("AI_CHAT.BUTTON.TITLE"),type:"button",...g,children:(0,a.jsx)("div",{children:t??(0,a.jsx)("img",{src:"/media/svg/icons/General/ai-sparkle-gradient.svg",className:m().icon})})})}var p=s(53317),x=s(68669),g=s(55909),C=s(59757),f=s(33244),A=s(32781),N=s(23574),_=s(66391),b=s(7086);let j="{apiUrl}/api/ai-chat",v="{apiUrl}/api/admin/ai-chat";var T=function(e){return e[e.CLIENT_STREAM=`${j}/stream`]="CLIENT_STREAM",e[e.PLAYGROUND_STREAM=`${v}/stream`]="PLAYGROUND_STREAM",e[e.CLIENT_FEEDBACK=`${j}/feedback`]="CLIENT_FEEDBACK",e[e.PLAYGROUND_FEEDBACK=`${v}/feedback`]="PLAYGROUND_FEEDBACK",e[e.STARTER_QUESTIONS=`${j}/starter-questions`]="STARTER_QUESTIONS",e[e.AVAILABILITY=`${j}/availability`]="AVAILABILITY",e}({}),E=s(47115),S=s(61674),I=s(61139),y=s(28100),R=s(55285),L=s(5625);class w extends Error{constructor(e,t){super(e),this.name="ChatStreamError",this.code=t}}function O(e){return e.startsWith("{apiUrl}")?e.replace("{apiUrl}","/extapi"):e}async function k(){let e=window.localStorage.getItem("persist:snowball-auth");if(!e)return null;let t=JSON.parse(e),s=t.refreshToken?t.refreshToken.replace(/"/g,""):null;if(!s)return null;let a=await fetch(O(S.Il),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh_token:s})});if(!a.ok)return null;let n=await a.json(),i=n.access_token,r=n.refresh_token;return t.accessToken=i,t.refreshToken=r,window.localStorage.setItem("persist:snowball-auth",JSON.stringify(t)),L.M_.dispatch({type:I.QN.RefreshAccessToken,payload:{accessToken:i,refreshToken:r}}),i}async function D(e,t,s,a){let n=(0,R.ZI)();return fetch(O(e),{method:"POST",headers:{"Content-Type":"application/json","Accept-Language":function(){let e=(0,y.JQ)();return e?.selectedLang??E.xN}(),"X-Instance":"ru",Authorization:`Bearer ${t}`,...n?{"X-Device-Type":n}:{}},body:s,signal:a})}async function P(e,t,s){let a,{onToken:n,onDone:i,onError:r,signal:l}=s,o=JSON.stringify(t),c=function(){let{auth:e}=L.M_.getState();return e.accessToken??null}();if(!c)return void r(Error("Not authenticated"));let d=await D(e,c,o,l);if(401===d.status){let t=await k();if(!t)return void r(Error("Session expired"));d=await D(e,t,o,l)}if(!d.ok)return void r(Error(`Chat request failed: ${d.status}`));let u=d.body?.getReader();if(!u)return void r(Error("No response body"));let m=new TextDecoder,h="",p="";try{for(;;){let{done:e,value:t}=await u.read();if(e)break;let s=(h+=m.decode(t,{stream:!0})).split("\n");for(let e of(h=s.pop()??"",s))if(e.startsWith("event: "))p=e.slice(7).trim();else if(e.startsWith("data: ")){let t=e.slice(6);if("token"===p)try{n(JSON.parse(t))}catch{n(t)}else if("usage"===p)try{a=JSON.parse(t)}catch{}else if("error"===p){try{let e=JSON.parse(t);r(new w(e.message,e.code))}catch{r(new w(t,"unknown"))}return}else if("done"===p)return void i(a)}}i()}catch(e){if(l?.aborted)return;r(e)}}async function M(e,t){let{data:s}=await b.A.get(T.STARTER_QUESTIONS,{params:{portfolioId:e,currency:t}});return s??[]}async function U(){let{data:e}=await b.A.get(T.AVAILABILITY);return e}async function H(e){let{logId:t,feedback:s,mode:a,reason:n}=e;await b.A.post(a===f.uG.PLAYGROUND?T.PLAYGROUND_FEEDBACK:T.CLIENT_FEEDBACK,{logId:t,feedback:s,reason:n})}async function F(e){let{portfolioId:t,message:s,history:a,conversationId:n,currency:i,source:r,onToken:l,onDone:o,onError:c,signal:d}=e;await P(T.CLIENT_STREAM,{portfolioId:t,message:s,history:a,conversationId:n||void 0,currency:i||void 0,source:r||void 0},{onToken:l,onDone:o,onError:c,signal:d})}async function B(e){let{portfolioId:t,message:s,history:a,conversationId:n,currency:i,source:r,model:l,systemPrompt:o,promptCache:c,temperature:d,provider:u,useIntentClassifier:m,classifierModel:h,generateSuggestedQuestions:p,onToken:x,onDone:g,onError:C,signal:f}=e;await P(T.PLAYGROUND_STREAM,{portfolioId:t,message:s,history:a,conversationId:n||void 0,currency:i||void 0,source:r||void 0,model:l||void 0,systemPrompt:o||void 0,promptCache:c,temperature:null!=d?Number(d):void 0,provider:u||void 0,useIntentClassifier:m,classifierModel:h||void 0,generateSuggestedQuestions:p},{onToken:x,onDone:g,onError:C,signal:f})}var G=s(33989);function W(e){return{shortText:e,fullText:e}}var $=s(15269),K=s(16926),Y=s(4206),Q=s(88754);let V={inputTokens:0,outputTokens:0,estimatedCost:0};function z(e){return e?.role===f.MW.ASSISTANT&&!!e.quotaStatus}var q=s(20968),J=s(34669),Z=s(48208),X=s(62522),ee=s.n(X);function et(e){let{variant:t}=e,{t:s}=(0,i.B)("portfolio");return t===f.J5.NEAR_LIMIT?(0,a.jsxs)("div",{className:ee().nearLimitNotice,role:"status",children:[(0,a.jsx)(q.A,{className:ee().nearLimitIcon}),(0,a.jsx)("span",{children:s("AI_CHAT.QUOTA_NEAR_LIMIT")})]}):(0,a.jsx)("div",{className:ee().limitReachedMessage,role:"status","aria-live":"polite",children:(0,a.jsxs)("div",{className:ee().limitReachedCard,
3children:[(0,a.jsx)("div",{className:ee().limitReachedIcon,children:(0,a.jsx)(q.A,{})}),(0,a.jsxs)("div",{className:ee().limitReachedBody,children:[(0,a.jsx)("h5",{className:"",children:s("AI_CHAT.QUOTA_LIMIT_REACHED.TITLE")}),(0,a.jsx)("p",{className:"text-dark-65",children:s("AI_CHAT.QUOTA_LIMIT_REACHED.TEXT")}),(0,a.jsxs)(Z.o,{href:"/user-manage-subscription",className:"btn btn-md btn-dark font-weight-bold",children:[(0,a.jsx)("span",{children:s("AI_CHAT.QUOTA_LIMIT_REACHED.CTA")}),(0,a.jsx)(J.A,{className:ee().limitReachedActionIcon})]})]})]})})}var es=s(60890),ea=s.n(es),en=s(90380),ei=s.n(en),er=s(65569),el=s(74206),eo=s(27474),ec=s(49732),ed=s(11725),eu=s(54892),em=s.n(eu);function eh(e){let{questions:t,onSelect:s,disabled:n}=e;return(0,a.jsx)("div",{className:em().suggestions,children:t.map(e=>{let t="string"==typeof e?e:e.shortText,i="string"==typeof e?e:e.fullText;return(0,a.jsxs)("button",{type:"button",className:"btn btn-light text-dark font-size-sm d-flex align-items-center justify-content-between text-left",onClick:()=>s?.(i),disabled:n,title:i,children:[t,(0,a.jsx)(ed.A,{sx:{marginLeft:"5px"}})]},`${t}:${i}`)})})}var ep=s(60486),ex=s.n(ep);function eg(e){let{role:t,content:s,logId:r,feedback:l,onFeedback:o,onFeedbackReasonOpen:d,onFeedbackReasonClose:u,isStreaming:m,suggestedQuestions:h,onSuggestedQuestion:p,suggestionsDisabled:x,showActions:g=!0}=e,{t:C}=(0,i.B)("portfolio"),A=t===f.MW.USER,N=!!(m&&0===s.trim().length),[_,b]=(0,n.useState)(!1),j=async()=>{await navigator.clipboard.writeText(s),b(!0),(0,c.s9)({event:c.Mg.AI_CHAT_COPY_CLICK,text:s})};(0,n.useEffect)(()=>{if(!_)return;let e=setTimeout(()=>{b(!1)},2e3);return()=>{clearTimeout(e)}},[_]);let v=e=>{if(!r||!o)return;let t=l===e?null:e;return o(r,t),t};return(0,a.jsxs)("div",{className:`${ex().message} ${A?ex().user:ex().assistant}`,children:[!A&&(0,a.jsx)("div",{className:ex().avatar,children:(0,a.jsx)(ec.A,{src:"/media/svg/icons/General/ai-sparkle.svg?v=2",color:"dark",size:"md"})}),(0,a.jsxs)("div",{className:ex().messageContent,children:[(0,a.jsx)("div",{className:ex().bubble,children:A?(0,a.jsx)("div",{className:ex().textContent,children:s}):(0,a.jsx)("div",{className:ex().markdownContent,children:N?(0,a.jsx)("span",{className:ex().thinkingText,role:"status","aria-live":"polite",children:C("AI_CHAT.THINKING")}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ea(),{remarkPlugins:[ei()],children:s}),m&&(0,a.jsx)("span",{className:ex().streamingCursor})]})})}),!A&&s&&!m&&g&&(0,a.jsxs)("div",{className:ex().actions,children:[(0,a.jsx)("button",{type:"button",className:`${ex().actionBtn} ${_?ex().active:""}`,onClick:j,title:C(_?"AI_CHAT.FEEDBACK.COPIED":"AI_CHAT.FEEDBACK.COPY"),children:(0,a.jsx)(er.A,{className:ex().actionIcon})}),(0,a.jsx)("button",{type:"button",className:`${ex().actionBtn} ${1===l?ex().active:""}`,onClick:()=>{v(1),u?.(),(0,c.s9)({event:c.Mg.AI_CHAT_LIKE_CLICK,text:s})},title:C("AI_CHAT.FEEDBACK.GOOD"),children:(0,a.jsx)(el.A,{className:ex().actionIcon})}),(0,a.jsx)("button",{type:"button",className:`${ex().actionBtn} ${-1===l?ex().active:""}`,onClick:e=>{let t=v(-1);r&&-1===t?d?.(r,e.currentTarget):u?.(),(0,c.s9)({event:c.Mg.AI_CHAT_DISLIKE_CLICK,text:s})},title:C("AI_CHAT.FEEDBACK.BAD"),children:(0,a.jsx)(eo.A,{className:ex().actionIcon})})]}),!A&&h?.length?(0,a.jsx)(eh,{questions:h,onSelect:p,disabled:x}):null]})]})}function eC(e){let{content:t}=e;return(0,a.jsxs)("div",{className:ex().systemMessage,role:"status",children:[(0,a.jsx)("span",{className:ex().systemLine,"aria-hidden":"true"}),(0,a.jsx)("span",{className:ex().systemText,children:t}),(0,a.jsx)("span",{className:ex().systemLine,"aria-hidden":"true"})]})}var ef=s(46711),eA=s(10213),eN=s(96418),e_=s(24665),eb=s(77390),ej=s.n(eb);let ev=["AI_CHAT.FEEDBACK.REASON_NO_ANSWER","AI_CHAT.FEEDBACK.REASON_INACCURATE","AI_CHAT.FEEDBACK.REASON_BUG"];function eT(e){let{anchorEl:t,onClose:s,onSubmit:r}=e,{t:l}=(0,i.B)("portfolio"),o=!!t,[c,d]=(0,n.useState)(!1),[u,m]=(0,n.useState)(""),h=()=>{d(!1),m("")},p=()=>{h(),s()},x=e=>{h(),r(e)};return(0,n.useEffect)(()=>{d(!1),m("")},[t]),(0,a.jsxs)(eN.Ay,{open:o,anchorEl:t,onClose:p,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},sx:{zIndex:10001},PaperProps:{sx:{width:360,maxWidth:"calc(100vw - 24px)"}},children:[(0,a.jsxs)(ef.A,{className:ej().header,children:[(0,a.jsx)("div",{className:"font-weight-bold",children:l("AI_CHAT.FEEDBACK.TITLE")}),(0,a.jsx)(eA.A,{size:"small","aria-label":l("AI_CHAT.CLOSE"),onClick:p,children:(0,a.jsx)(g.A,{fontSize:"small"})})]}),(0,a.jsx)(ef.A,{p:2,children:c?(0,a.jsxs)("div",{children:[(0,a.jsx)(e_.A.Control,{as:"textarea",className:"form-control-solid mb-3",maxLength:4e3,placeholder:l("AI_CHAT.FEEDBACK.OTHER_PLACEHOLDER"),"aria-label":l("AI_CHAT.FEEDBACK.OTHER"),value:u,onChange:e=>m(e.target.value),autoFocus:!0}),(0,a.jsx)("div",{className:"d-flex justify-content-end",children:(0,a.jsx)("button",{type:"button",className:"btn btn-dark font-weight-bold btn-sm",onClick:()=>{u&&x(u)},disabled:!u,children:l("AI_CHAT.FEEDBACK.SEND")})})]}):(0,a.jsxs)("div",{className:ej().chips,children:[ev.map(e=>(0,a.jsx)("button",{type:"button",className:"btn btn-outline-secondary btn-sm",onClick:()=>x(l(e)),children:l(e)},e)),(0,a.jsx)("button",{type:"button",className:"btn btn-outline-secondary btn-sm",onClick:()=>d(!0),children:l("AI_CHAT.FEEDBACK.OTHER")})]})})]})}function eE(e){let{message:t,isLastMessage:s,isStreaming:n,onFeedback:i,onFeedbackReasonOpen:r,onFeedbackReasonClose:l,onSuggestedQuestion:o,suggestionsDisabled:c}=e,d=n&&t.role===f.MW.ASSISTANT&&s;return t.role===f.MW.SYSTEM?(0,a.jsx)(eC,{content:t.content}):t.quotaStatus===f.J5.LIMIT_REACHED?(0,a.jsx)(et,{variant:f.J5.LIMIT_REACHED}):(0,a.jsx)(eg,{role:t.role,content:t.content,logId:t.logId,feedback:t.feedback,onFeedback:i,onFeedbackReasonOpen:r,onFeedbackReasonClose:l,isStreaming:d,suggestedQuestions:t.suggestedQuestions,onSuggestedQuestion:o,suggestionsDisabled:c})}function eS(e){let{messages:t,isStreaming:s,messagesEndRef:i,onFeedback:r,onFeedbackReason:l,onSuggestedQuestion:o,suggestionsDisabled:c}
3=e,[d,u]=(0,n.useState)(null);return(0,a.jsxs)(a.Fragment,{children:[t.map((e,n)=>(0,a.jsx)(eE,{message:e,isLastMessage:n===t.length-1,isStreaming:s,onFeedback:r,onFeedbackReasonOpen:(e,t)=>u({logId:e,anchorEl:t}),onFeedbackReasonClose:()=>u(null),onSuggestedQuestion:o,suggestionsDisabled:c},n)),(0,a.jsx)("div",{ref:i}),(0,a.jsx)(eT,{anchorEl:d?.anchorEl??null,onClose:()=>u(null),onSubmit:e=>{d&&l?.(d.logId,e),u(null)}})]})}var eI=s(96039),ey=s(51209),eR=s(50041),eL=s(10164),ew=s(66243),eO=s(83094),ek=s(78693),eD=s(70326),eP=s.n(eD);function eM(e){let{value:t,onChange:s,disabled:n}=e,{t:r}=(0,i.B)("portfolio"),{items:l=[],isLoading:o}=(0,ew.J)();if(o)return;let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,a.jsxs)("span",{className:eP().option,children:[(0,a.jsx)("span",{className:"symbol symbol-25 mr-2 symbol-light",children:(0,a.jsx)("span",{className:"symbol-label",children:(0,ek.Tb)(e,e.broker??"Other")})}),(0,a.jsx)("span",{className:t?eP().valueName:eP().optionName,children:e.name})]})};return(0,a.jsx)(eL.Q,{className:eP().select,value:t??"",disabled:n,disableUnderline:!0,displayEmpty:!0,input:(0,a.jsx)(eO.P,{name:"portfolioId",id:"ai-chat-portfolio"}),renderValue:e=>{let t=l.find(t=>t.id===e);return t?c(t,!0):r("AI_CHAT.SELECT_PORTFOLIO")},onChange:e=>{var t;return t=e.target.value,void s(l.find(e=>e.id===t))},items:l.map(e=>({value:e.id,name:e.name,display:c(e)}))})}var eU=s(88308),eH=s.n(eU);function eF(e){let{value:t,onChange:s,onSend:r,onStop:l,disabled:o,isStreaming:d,placeholder:u,portfolioId:m,onPortfolioChange:h}=e,{t:p}=(0,i.B)("portfolio"),x=(0,n.useId)(),g=t.length,C=g>4e3,f=g>=3600,A=!o&&!d&&g>0&&!C,N=`${eH().symbolCounter} ${C?eH().symbolCounterDanger:eH().symbolCounterWarning}`;return(0,a.jsx)("div",{className:eH().inputContainer,children:(0,a.jsxs)("form",{className:eH().composer,onSubmit:e=>{e.preventDefault(),A&&r()},children:[(0,a.jsx)(eR.A,{className:eH().textarea,value:t,onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&!e.shiftKey&&(e.preventDefault(),A&&r())},onFocus:()=>{(0,c.s9)(c.Mg.AI_CHAT_CHATAREA_CLICK)},maxRows:5,placeholder:u,disabled:o,"aria-describedby":f?x:void 0,"aria-invalid":C}),f&&(0,a.jsxs)("div",{id:x,className:N,"aria-live":"polite",children:[g,"/",4e3]}),(0,a.jsx)("div",{className:eH().divider}),(0,a.jsxs)("div",{className:eH().bottomRow,children:[(0,a.jsx)(eM,{value:m,onChange:h,disabled:d}),(0,a.jsx)("div",{className:eH().actions,children:d?(0,a.jsx)("button",{type:"button",className:`${eH().actionBtn} ${eH().stopBtn}`,onClick:l,title:p("AI_CHAT.STOP_GENERATING"),children:(0,a.jsx)(eI.A,{className:eH().actionIcon})}):(0,a.jsx)("button",{type:"submit",className:`${eH().actionBtn} ${eH().sendBtn}`,disabled:!A,title:p("AI_CHAT.SEND_MESSAGE"),children:(0,a.jsx)(ey.A,{className:eH().actionIcon})})})]})]})})}var eB=s(51898),eG=s.n(eB);function eW(e){let{questions:t,onSelectQuestion:s,disabled:n}=e,{t:r}=(0,i.B)("portfolio"),l=[r("AI_CHAT.WELCOME_INTRO"),"",...Array.from({length:5},(e,t)=>`- ${r(`AI_CHAT.WELCOME_CAP_${t+1}`)}`),"",`> ${r("AI_CHAT.WELCOME_BETA_NOTE")}`].join("\n");return(0,a.jsxs)("div",{className:eG().welcome,children:[(0,a.jsxs)("div",{className:eG().title,children:[(0,a.jsx)("span",{className:eG().previewBadge,children:r("AI_CHAT.PREVIEW_BADGE")}),(0,a.jsx)("span",{className:eG().titleText,children:r("AI_CHAT.WELCOME_TITLE")})]}),(0,a.jsx)(eg,{role:f.MW.ASSISTANT,content:l,showActions:!1,suggestedQuestions:t,onSuggestedQuestion:s,suggestionsDisabled:n})]})}var e$=s(13664),eK=s(11754),eY=s.n(eK);function eQ(){let{t:e}=(0,i.B)("portfolio");return(0,a.jsx)("div",{className:eY().unavailableMessage,role:"status","aria-live":"polite",children:(0,a.jsxs)("div",{className:eY().unavailableCard,children:[(0,a.jsx)("div",{className:eY().unavailableIcon,children:(0,a.jsx)(e$.A,{})}),(0,a.jsxs)("div",{className:eY().unavailableBody,children:[(0,a.jsx)("h5",{className:"",children:e("AI_CHAT.UNAVAILABLE.TITLE")}),(0,a.jsx)("p",{className:"text-dark-65 mb-0",children:e("AI_CHAT.UNAVAILABLE.TEXT")})]})]})})}var eV=s(14571);let ez=["AI_CHAT.DISCLOSURE.ACCURACY","AI_CHAT.DISCLOSURE.FINANCIAL_ADVICE","AI_CHAT.DISCLOSURE.DATA_PRIVACY","AI_CHAT.DISCLOSURE.TRAINING","AI_CHAT.DISCLOSURE.LIABILITY"];function eq(e){let{id:t,anchorEl:s,onClose:n}=e,{t:r}=(0,i.B)("portfolio");return(0,a.jsxs)(eN.Ay,{id:t,open:!!s,anchorEl:s,onClose:n,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},sx:{zIndex:10001},PaperProps:{sx:{width:440,maxWidth:"calc(100vw - 24px)",maxHeight:"min(70vh, 560px)",overflowY:"auto"}},children:[(0,a.jsxs)(ef.A,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,px:3,py:1.5,borderBottom:"1px solid",borderColor:"divider",children:[(0,a.jsx)(eV.A,{variant:"subtitle1",fontWeight:600,children:r("AI_CHAT.DISCLOSURE.MODAL_TITLE")}),(0,a.jsx)(eA.A,{size:"small","aria-label":r("AI_CHAT.CLOSE"),onClick:n,children:(0,a.jsx)(g.A,{fontSize:"small"})})]}),(0,a.jsx)(ef.A,{component:"ul",sx:{m:0,px:4,py:2},children:ez.map(e=>(0,a.jsxs)(ef.A,{component:"li",sx:{mb:1.5},children:[(0,a.jsx)(eV.A,{component:"strong",display:"block",fontWeight:600,children:r(`${e}.TITLE`)}),(0,a.jsx)(eV.A,{component:"span",display:"block",variant:"body2",color:"text.secondary",mt:.5,children:r(`${e}.TEXT`)})]},e))})]})}var eJ=s(19806),eZ=s.n(eJ);function eX(){let{t:e}=(0,i.B)("portfolio"),{feedbackProps:t,saveFeedbackShownState:s}
3=(0,l.iT)(o.Y.AI_CHAT),r=(0,n.useId)(),[d,u]=(0,n.useState)(null),[m,h]=(0,n.useState)(!1),p=!!d;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:eZ().footer,children:[(0,a.jsxs)("div",{className:eZ().left,children:[(0,a.jsx)("span",{children:e("AI_CHAT.DISCLOSURE.SUMMARY")}),(0,a.jsx)("button",{id:"ai-chat-more-details",type:"button",className:eZ().detailsBtn,"aria-controls":p?r:void 0,"aria-expanded":p,"aria-haspopup":"dialog",onClick:e=>u(t=>t?null:e.currentTarget),children:e("AI_CHAT.DISCLOSURE.MORE_DETAILS")})]}),(0,a.jsx)("button",{id:"ai-chat-leave-feedback",type:"button",className:eZ().feedbackBtn,onClick:()=>{h(!0),s()},children:e("AI_CHAT.LEAVE_FEEDBACK")})]}),(0,a.jsx)(eq,{id:r,anchorEl:d,onClose:()=>u(null)}),m&&!!t&&(0,a.jsx)(A._,{...t,id:"ai-chat-feedback-manual",show:m,onHide:()=>h(!1),onRatingSubmit:e=>{e&&(0,c.s9)({event:c.Mg.AI_CHAT_FEEDBACK_SUBMIT_CLICK,rating:e})}})]})}var e0=s(75165),e1=s(16974),e2=s.n(e1);function e5(e){let{className:t,label:s,usage:n}=e,{t:r}=(0,i.B)("portfolio");return(0,a.jsxs)("span",{className:t,children:[s," ",(0,a.jsx)(e0.b,{value:n.inputTokens,precision:0,ignoreStealth:!0})," ",r("AI_CHAT.USAGE_IN")," /"," ",(0,a.jsx)(e0.b,{value:n.outputTokens,precision:0,ignoreStealth:!0})," ",r("AI_CHAT.USAGE_OUT")," ="," ",(0,a.jsx)(e0.b,{value:n.estimatedCost,isMoney:!0,currency:"USD",precision:n.estimatedCost<.01?6:4,
3ignoreStealth:!0})]})}function e4(e){let{usage:t,totalUsage:s}=e,{t:n}=(0,i.B)("portfolio"),r=s.inputTokens>0;return t||r?(0,a.jsxs)("div",{className:e2().usageBar,children:[t&&(0,a.jsx)(e5,{label:n("AI_CHAT.USAGE_LAST_LABEL"),usage:t}),r&&(0,a.jsx)(e5,{className:e2().totalUsage,label:n("AI_CHAT.USAGE_SESSION_LABEL"),usage:s})]}):null}var e3=s(27497),e6=s.n(e3);function e9(e){let{t}=(0,i.B)("portfolio"),s=function(e){let{t}=(0,i.B)("portfolio"),s=(0,C.wA)(),a=(0,C.d4)(e=>{let{app:t}=e;return t.currentPortfolio??null}),r=(0,C.d4)(e=>{let{ui:t}=e;return t.aiChatPendingQuestion}),l=a?.id??null,[o,c]=(0,n.useState)(l),[d,u]=(0,n.useState)([]),[m,h]=(0,n.useState)(""),[p,x]=(0,n.useState)(!1),[g,A]=(0,n.useState)(null),[N,_]=(0,n.useState)(V),[b,j]=(0,n.useState)(!1),[v,T]=(0,n.useState)(null),[E,S]=(0,n.useState)(!1),I=(0,n.useRef)(null),y=(0,n.useRef)(null),R=(0,n.useRef)(null),L=(0,n.useRef)(crypto.randomUUID()),O=(0,n.useRef)(0),k=(0,n.useRef)(l),D=(0,n.useRef)(!0),P=(0,n.useRef)(0),q=(0,n.useRef)(!1),J=(0,n.useRef)(0),Z=(0,n.useRef)(!1),{saveTestResult:X}=(0,Q.H)(Y.Vr),ee=e.mode===f.uG.CLIENT,et=ee&&(e.isActive??!0),es=function(e,t,s){let{t:a}=(0,i.B)("portfolio"),{data:n}=(0,G.I)({queryKey:["ai-chat-starter-questions",e,t],enabled:!!s&&!!e&&!!t,staleTime:1/0,queryFn:()=>M(e,t)});if(!e)return[W(a("AI_CHAT.SUGGEST_NO_PORTFOLIO_1")),W(a("AI_CHAT.SUGGEST_NO_PORTFOLIO_2"))];return n??[]}(o,e.currency,et),ea=function(e){let{data:t}=(0,G.I)({queryKey:["ai-chat-availability"],enabled:e,staleTime:6e4,queryFn:U});return t?.isEnabled??!0}(et),en=ee&&!ea,ei=d.some(e=>e.quotaStatus===f.J5.LIMIT_REACHED),er=!o||p||en,el=o?t("AI_CHAT.PLACEHOLDER_WITH_PORTFOLIO"):t("AI_CHAT.PLACEHOLDER_NO_PORTFOLIO"),eo=ee&&!en&&b&&!ei,ec=e.mode===f.uG.PLAYGROUND&&!!e.showUsage,ed=d.filter((e,t)=>e.quotaStatus===f.J5.LIMIT_REACHED||e.role!==f.MW.ASSISTANT||""!==e.content||p&&t===d.length-1),eu=(0,n.useCallback)(()=>{let e=I.current;return!e||e.scrollHeight-e.scrollTop-e.clientHeight<=80},[]),em=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"smooth",t=I.current;if(t){t.scrollTo({top:t.scrollHeight,behavior:e}),"auto"===e&&(J.current=t.scrollTop);return}y.current?.scrollIntoView({behavior:e})},[]),eh=(0,n.useCallback)(()=>{let e=I.current;if(!e)return;let t=eu(),s=e.scrollTop<J.current;J.current=e.scrollTop,t?D.current=!0:p&&s&&(D.current=!1),S(p&&!D.current&&!t)},[eu,p]),ep=(0,n.useCallback)(()=>{D.current=!0,S(!1),em("smooth")},[em]);(0,n.useEffect)(()=>{let e=d.length!==P.current,t=q.current&&!p;if(P.current=d.length,q.current=p,0===d.length){D.current=!0,J.current=0,S(!1);return}if(p||S(!1),e){D.current=!0,S(!1),em("smooth");return}D.current&&(p||t)&&em("auto")},[p,d,em]),(0,n.useEffect)(()=>()=>{R.current?.abort()},[]);let ex=(0,n.useCallback)(e=>{let s;x(!1),s=e instanceof w?"rate_limited"===e.code?t("AI_CHAT.ERROR_RATE_LIMITED"):t("AI_CHAT.ERROR_API"):e instanceof Error?e.message:t("AI_CHAT.ERROR_OCCURRED"),$.f1(s)},[]),eg=(0,n.useCallback)((t,s)=>{!Z.current&&s?.quotaStatus!==f.J5.LIMIT_REACHED&&(t?.trim().length??0)>=200&&(Z.current=!0,e.onFeedbackPromptEligible?.())},[e.onFeedbackPromptEligible]),eC=(0,n.useCallback)((e,t)=>{if(x(!1),t){if(t.quotaStatus===f.J5.LIMIT_REACHED)return void u(s=>{let a=[...s],n=a[e];return n?.role!==f.MW.ASSISTANT?s:(a[e]={...n,role:f.MW.ASSISTANT,content:"",logId:t.logId,quotaStatus:f.J5.LIMIT_REACHED},a)});t.quotaStatus===f.J5.NEAR_LIMIT&&j(!0),A(t),_(e=>({inputTokens:e.inputTokens+t.inputTokens,outputTokens:e.outputTokens+t.outputTokens,estimatedCost:e.estimatedCost+t.estimatedCost})),(t.logId||t.suggestedQuestions?.length)&&u(s=>{let a=[...s],n=a[e];return n?.role!==f.MW.ASSISTANT?s:(a[e]={...n,logId:t.logId??n.logId,suggestedQuestions:t.suggestedQuestions},a)})}},[]),ef=(0,n.useCallback)(async function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.O5.TYPED,a=t??m,n=a.trim();if(!n||a.length>4e3||!o||p)return;let i={role:f.MW.USER,content:n,date:new Date},r=d.slice(O.current),l=r.filter((e,t)=>{var s;return!((s=e.role)!==f.MW.USER&&s!==f.MW.ASSISTANT||z(e))&&0!==e.content.trim().length&&!(e.role===f.MW.USER&&z(r[t+1]))}).map(e=>({role:e.role,content:e.content,date:e.date})),c=d.length+1,g=new AbortController,C="";u(e=>[...e,i,{role:f.MW.ASSISTANT,content:"",date:new Date}]),T(i),h(""),x(!0),A(null),R.current=g;let N={portfolioId:o,message:n,history:l,conversationId:L.current,currency:e.currency,source:s,onToken:e=>{C+=e,u(t=>{let s=[...t],a=s[c];return a?.role!==f.MW.ASSISTANT?t:(s[c]={...a,content:a.content+e},s)})},onDone:e=>{eC(c,e),eg(C,e)},onError:ex,signal:g.signal};if(e.mode===f.uG.PLAYGROUND)return void await B({...N,model:e.model,systemPrompt:e.systemPrompt,promptCache:e.promptCache,temperature:e.temperature,provider:e.provider,useIntentClassifier:e.useIntentClassifier,classifierModel:e.classifierModel,generateSuggestedQuestions:e.generateSuggestedQuestions??!0});X(Y.Vr.resultTried),await F(N)},[eC,ex,m,p,d,e,eg,X,o]);(0,n.useEffect)(()=>{et&&r&&o&&!p&&(s((0,K.s6)(null)),ef(r,f.O5.STARTER))},[s,ef,et,p,r,o]);let eA=(0,n.useCallback)(()=>{R.current?.abort(),x(!1)},[]),eN=(0,n.useCallback)(()=>{R.current?.abort(),u([]),T(null),x(!1),A(null),_(V),L.current=crypto.randomUUID(),O.current=0},[]),e_=(0,n.useCallback)(e=>!!e&&e.id!==o&&(c(e.id),L.current=crypto.randomUUID(),u(s=>0===s.length?(O.current=0,s):(O.current=s.length+1,[...s.map(e=>e.role===f.MW.ASSISTANT&&e.suggestedQuestions?.length?{...e,suggestedQuestions:void 0}:e),{role:f.MW.SYSTEM,content:t("AI_CHAT.PORTFOLIO_CHANGED",{portfolioName:e.n
3ame}),date:new Date}])),!0),[o,t]);(0,n.useEffect)(()=>{if(l===k.current)return;let e=k.current;if(k.current=l,!a)return void c(null);(e||!o)&&a.id!==o&&(p&&(R.current?.abort(),x(!1)),e_(a))},[a,l,e_,p,o]);let eb=(0,n.useCallback)(async(t,s)=>{u(e=>e.map(e=>e.role===f.MW.ASSISTANT&&e.logId===t?{...e,feedback:s}:e)),await H({logId:t,feedback:s,mode:e.mode})},[e.mode]),ej=(0,n.useCallback)(async(s,a)=>{await H({logId:s,feedback:-1,mode:e.mode,reason:a}),$.uT(t("AI_CHAT.FEEDBACK.THANKS"))},[e.mode]);return{aiChatDisabled:en,messages:ed,lastUserMessage:v,input:m,setInput:h,selectedPortfolioId:o,handlePortfolioChange:e_,isStreaming:p,inputDisabled:er,inputPlaceholder:el,showNearLimitNotice:eo,showUsage:ec,starterQuestions:es,usage:g,totalUsage:N,messagesContainerRef:I,messagesEndRef:y,showJumpToLatest:E,hasMessages:d.length>0,send:{input:()=>void ef(),starterQuestion:e=>void ef(e,f.O5.STARTER),suggestedQuestion:e=>void ef(e,f.O5.SUGGESTED)},handleMessagesScroll:eh,handleJumpToLatest:ep,handleStop:eA,handleClear:eN,handleFeedback:eb,handleFeedbackReason:ej}}(e),r=s.hasMessages,l=!s.hasMessages;return(0,a.jsxs)("div",{className:`${e6().panel} ${e.className??""}`,children:[r&&(0,a.jsx)("div",{className:e6().header,children:(0,a.jsxs)("button",{id:"ai-chat-clear",type:"button",className:e6().clearBtn,onClick:s.handleClear,title:t("AI_CHAT.CLEAR_CONVERSATION"),children:[(0,a.jsx)(N.A,{className:e6().clearIcon}),(0,a.jsx)("span",{children:t("AI_CHAT.CLEAR")})]})}),(0,a.jsxs)("div",{className:e6().messagesContainer,children:[(0,a.jsxs)("div",{ref:s.messagesContainerRef,className:e6().messages,onScroll:s.handleMessagesScroll,children:[l&&(0,a.jsx)(eW,{questions:s.starterQuestions,onSelectQuestion:e=>{s.send.starterQuestion(e),(0,c.s9)({event:c.Mg.AI_CHAT_FIRSTSLUG_CLICK,element:e})},disabled:s.inputDisabled}),(0,a.jsx)(eS,{messages:s.messages,isStreaming:s.isStreaming,messagesEndRef:s.messagesEndRef,onFeedback:s.handleFeedback,onFeedbackReason:s.handleFeedbackReason,onSuggestedQuestion:e=>{s.send.suggestedQuestion(e),(0,c.s9)({event:c.Mg.AI_CHAT_SLUG_CLICK,element:e})},suggestionsDisabled:s.isStreaming})]}),s.showJumpToLatest&&(0,a.jsx)("button",{type:"button",className:e6().jumpToLatestBtn,onClick:s.handleJumpToLatest,title:t("AI_CHAT.JUMP_TO_LATEST"),"aria-label":t("AI_CHAT.JUMP_TO_LATEST"),children:(0,a.jsx)(_.A,{className:e6().jumpToLatestIcon})})]}),s.showUsage&&(0,a.jsx)(e4,{usage:s.usage,totalUsage:s.totalUsage}),s.aiChatDisabled&&(0,a.jsx)(eQ,{}),s.showNearLimitNotice&&(0,a.jsx)(et,{variant:f.J5.NEAR_LIMIT}),(0,a.jsx)(eF,{value:s.input,onChange:s.setInput,onSend:()=>{s.send.input(),(0,c.s9)({event:c.Mg.AI_CHAT_SEND_CLICK,text:s.input})},onStop:()=>{s.handleStop(),s.lastUserMessage&&(0,c.s9)({event:c.Mg.AI_CHAT_STOP_CLICK,text:s.lastUserMessage?.content})},disabled:s.inputDisabled,isStreaming:s.isStreaming,placeholder:s.inputPlaceholder,portfolioId:s.selectedPortfolioId,onPortfolioChange:e=>{e&&s.handlePortfolioChange(e)&&(0,c.s9)({event:c.Mg.AI_CHAT_PORTFOLIO_CLICK,element:e.name})}}),(0,a.jsx)(eX,{})]})}var e8=s(74381),e7=s.n(e8);function te(){let{t:e}=(0,i.B)("portfolio"),t=(0,r.h)({enableResize:!0}),{feedbackProps:s,isFeedbackShown:d,saveFeedbackShownState:u}=(0,l.iT)(o.Y.AI_CHAT),m=(0,C.d4)(e=>{let{app:t}=e;return t.localCurrency??t.currency}),[h,N]=(0,n.useState)(!1),[_,b]=(0,n.useState)(!1),j=(0,n.useRef)(u),v=!!s;(0,n.useEffect)(()=>{j.current=u},[u]),(0,n.useEffect)(()=>{if(!h||t.isOpen||d||_||!v)return;let e=setTimeout(()=>{b(!0),j.current()},4e3);return()=>clearTimeout(e)},[v,h,t.isOpen,d,_]);let T=(0,n.useCallback)(()=>{N(!0)},[]),E=(0,a.jsxs)(p.Ay,{className:e7().drawer,variant:"persistent",anchor:"right",open:t.isOpen,style:{zIndex:1e4},PaperProps:{className:e7().paper,style:{width:t.isNarrow?"100vw":t.width,zIndex:1e4}},children:[!t.isNarrow&&(0,a.jsx)("button",{type:"button",className:e7().resizeHandle,onPointerDown:t.handleResizeStart,onKeyDown:t.handleResizeKeyDown}),(0,a.jsxs)("div",{className:e7().header,children:[(0,a.jsxs)("div",{className:e7().title,children:[(0,a.jsx)("img",{src:"/media/svg/icons/General/ai-sparkle-gradient.svg",className:e7().aiIcon}),(0,a.jsx)("span",{children:e("AI_CHAT.TITLE")}),(0,a.jsx)("span",{className:e7().previewBadge,children:e("AI_CHAT.PREVIEW_BADGE")})]}),(0,a.jsx)("button",{id:"ai-chat-close",type:"button",className:e7().closeButton,onClick:()=>{t.setOpen(!1)},title:e("AI_CHAT.CLOSE"),"aria-label":e("AI_CHAT.CLOSE"),children:(0,a.jsx)(g.A,{className:e7().closeIcon})})]}),(0,a.jsx)("div",{className:e7().body,children:(0,a.jsx)(e9,{mode:f.uG.CLIENT,currency:m,isActive:t.isOpen,className:e7().chatPanel,onFeedbackPromptEligible:T})})]});return(0,a.jsx)(x.A,{children:(0,a.jsxs)(a.Fragment,{children:[E,!!s&&(0,a.jsx)(A._,{...s,id:"ai-chat-feedback-auto",show:_,onHide:()=>b(!1),onRatingSubmit:e=>{e&&(0,c.s9)({event:c.Mg.AI_CHAT_FEEDBACK_SUBMIT_CLICK,rating:e})}})]})})}s(4707)},32683:(e,t,s)=>{"use strict";s.d(t,{$4:()=>C,$W:()=>u,Dv:()=>a,KV:()=>c,Ll:()=>o,MV:()=>m,Os:()=>l,Pp:()=>h,Vr:()=>x,bG:()=>p,fU:()=>n,mz:()=>d,tQ:()=>g,tz:()=>r,yq:()=>i});let a="/api/support/user/set-password",n="/api/support/user/get-subscription",i="/api/support/user/update-subscription",r="/api/support/user/unsub
3scribe",l="/api/support/user/get-webhooks",o="/api/support/user/process-webhook",c="/api/support/user/get-card-link",d="{apiUrl}/api/snaptrade/get-user-secret",u="{apiUrl}/api/plaid/get-metadata",m="{apiUrl}/api/IBKRSync/get-metadata",h="{apiUrl}/api/support/sync-portfolio",p="{apiUrl}/api/support/update-sync-settings",x="{apiUrl}/api/support/last-sync-results",g="/api/admin/users/partner-info",C="/api/admin/users/update-referral"},32781:(e,t,s)=>{"use strict";s.d(t,{_:()=>C});var a=s(26514),n=s(75834),i=s(4847),r=s(50216),l=s(24665),o=s(7086),c=s(93760),d=s(23141),u=s(36728),m=s(15269),h=s(63390),p=s(22871),x=s(554),g=s.n(x);function C(e){let{title:t,ratingContent:s,messageContent:x,type:C=p.M.OTHER,onRatingSubmit:f,...A}=e,{t:N}=(0,c.B)(["layout","common"]),[_,b]=(0,n.useState)(!1),[j,v]=(0,n.useState)("rating"),[T,E]=(0,n.useState)(null),[S,I]=(0,n.useState)(""),y=()=>{b(!0),o.A.post(h.Yqn,{stars:T,message:S,feedbackType:C}).then(()=>{v("success")}).catch(()=>{(0,m.f1)("ERROR.FEEDBACK_FAILED")}).finally(()=>{b(!1)})},R=()=>{T&&(T>=4?y():v("message"),f?.(T))};(0,n.useEffect)(()=>{if("success"!==j)return;let e=setTimeout(()=>{A.onHide()},5e3);return()=>clearTimeout(e)},[j]);let L="success"===j?N("FEEDBACK.POPUP.SUCCESS.TITLE"):t,w=T?"btn-primary":"";return(0,a.jsxs)(u.z,{...A,isBlocking:_,rootClassName:g().feedbackPopup,title:L,buttonsComponent:e=>{let{primaryBtnClassName:t}=e;return"rating"===j?(0,a.jsx)("button",{type:"button",className:`${t} ${w}`,onClick:R,disabled:!T,children:N("FEEDBACK.POPUP.SUBMIT")}):"message"===j?(0,a.jsx)("button",{type:"button",className:t,onClick:y,children:N("FEEDBACK.POPUP.SEND")}):(0,a.jsx)("button",{type:"button",className:t,onClick:A.onHide,children:N("common:BUTTON.CLOSE")})},children:["rating"===j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsx)(d.x,{children:s})}),(0,a.jsx)(i.A,{value:T,onChange:(e,t)=>
3E(t),max:5,icon:(0,a.jsx)(r.A,{sx:{color:"#F59E0B",fontSize:40}}),emptyIcon:(0,a.jsx)(r.A,{sx:{color:"#7E8299",fontSize:40}})})]}),"message"===j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:g().content,children:(0,a.jsx)(d.x,{children:x})}),(0,a.jsx)(l.A.Control,{className:`form-control-solid ${g().textarea}`,as:"textarea",placeholder:N("FEEDBACK.POPUP.MESSAGE.PLACEHOLDER"),size:"lg",rows:4,value:S,onChange:e=>I(e.target.value)})]}),"success"===j&&(0,a.jsx)("div",{children:N("FEEDBACK.POPUP.SUCCESS.TEXT")})]})}},33244:(e,t,s)=>{"use strict";s.d(t,{J5:()=>r,MW:()=>n,O5:()=>i,uG:()=>a});var a=function(e){return e.CLIENT="client",e.PLAYGROUND="playground",e}({}),n=function(e){return e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e}({}),i=function(e){return e.TYPED="typed",e.STARTER="starter",e.SUGGESTED="suggested",e}({}),r=function(e){return e.NEAR_LIMIT="near_limit",e.LIMIT_REACHED="limit_reached",e}({})},33502:e=>{e.exports={listItem:"DraggableItem_listItem__dwzHw",listHandle:"DraggableItem_listHandle__zZQmG",dragging:"DraggableItem_dragging__dzbwJ"}},33687:e=>{e.exports={safetyBadge:"PayoutSafetyCard_safetyBadge__pUkJM"}},33734:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(26514);s(75834);let n=function(e){let{isDark:t,onChange:s}=e;return(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"switch switch-icon switch-mode switch-sm",children:(0,a.jsxs)("label",{children:[(0,a.jsx)("input",{type:"checkbox",id:"modeSwitch",checked:t,onChange:s,"aria-label":"Dark mode switch"}),(0,a.jsx)("span",{})]})})})}},33807:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=s(73789),n=s(37786);let i=function(){var e,t,s=function(){var s=a.g.find(e,".offcanvas-header"),i=a.g.find(e,".offcanvas-content");t=new n.A(e,{overlay:!0,baseClass:"offcanvas",placement:"right",closeBy:"kt_quick_notifications_close",toggleBy:"kt_quick_notifications_toggle"}),a.g.scrollInit(i,{disableForMobile:!0,resetHeightOnDestroy:!0,handleWindowResize:!0,height:function(){var t=parseInt(a.g.getViewPort().height);return s&&(t-=parseInt(a.g.actualHeight(s)),t-=parseInt(a.g.css(s,"marginTop")),t-=parseInt(a.g.css(s,"marginBottom"))),i&&(t-=parseInt(a.g.css(i,"marginTop")),t-=parseInt(a.g.css(i,"marginBottom"))),t-=parseInt(a.g.css(e,"paddingTop")),t-=parseInt(a.g.css(e,"paddingBottom")),t-=2}})};return{init:function(t){(e=a.g.getById(t))&&s()},getElement:function(){return e},getOffcanvas:function(){return t}}}()},35061:(e,t,s)=>{"use strict";function a(e,t,s){return s?`${e}.${t}.${s}`:`${e}.${t}`}s.d(t,{T:()=>a})},37322:(e,t,s)=>{"use strict";s.d(t,{i:()=>_});var a=s(26514),n=s(75834),i=s(62936),r=s.n(i),l=s(46225),o=s(14763),c=s(15712),d=s(30985),u=s(91114),m=s.n(u),h=s(43765),p=s(54253);let x=(0,n.forwardRef)((e,t)=>(0,a.jsxs)("a",{ref:t,href:"#",onClick:t=>{t.preventDefault(),e.onClick(t)},id:"kt_subheader_quick_actions",className:"btn btn-sm btn-clean btn-icon",children:[" ",(0,a.jsx)("span",{className:"svg-icon svg-icon-success svg-icon-lg",children:(0,a.jsx)("span",{className:"svg-icon-success svg-icon-2x",children:(0,a.jsx)(m(),{src:(0,p.oK)("/media/svg/icons/Files/File-plus.svg?v=1")})})})]}));function g(){return(0,a.jsx)(o.A,{placement:"left",overlay:(0,a.jsx)(c.A,{id:"quick-actions-tooltip",children:"Quick actions"}),children:(0,a.jsxs)(d.A,{className:"dropdown-inline",drop:"down",alignRight:!0,children:[(0,a.jsx)(d.A.Toggle,{as:x,id:"dropdown-toggle-quick-actions-subheader"}),(0,a.jsx)(d.A.Menu,{className:"dropdown-menu p-0 m-0 dropdown-menu-md dropdown-menu-right",children:(0,a.jsx)(h.K$,{})})]})})}var C=s(45251);function f(e){let{items:t}=e;return t&&t.length?(0,a.jsxs)("ul",{className:"breadcrumb breadcrumb-transparent breadcrumb-dot font-weight-bold p-0 my-2",children:[(0,a.jsx)("li",{className:"breadcrumb-item",children:(0,a.jsx)(C.N,{legacyBehavior:!0,href:"/dashboard",children:(0,a.jsx)("i",{className:"flaticon2-shelter text-muted icon-1x"})})}),t.map((e,t)=>(0,a.jsx)("li",{className:"breadcrumb-item",children:(0,a.jsx)(C.N,{legacyBehavior:!0,href:{pathname:e.pathname},children:(0,a.jsx)("a",{className:"text-muted",children:e.title})})},`bc${t}`))]}):""}var A=s(32901),N=s(18150);function _(){let e=(0,N.SL)(),t=(0,l.useRouter)(),s=(0,A.ro)(),i=(0,n.useMemo)(()=>({config:e.config,subheaderMobileToggle:r().get(e.config,"subheader.mobile-toggle"),subheaderCssClasse
3s:e.getClasses("subheader",!0),subheaderContainerCssClasses:e.getClasses("subheader_container",!0)}),[e]);return(0,n.useLayoutEffect)(()=>{let e=(0,A.UG)("kt_aside_menu",t.pathname),a=(0,A.UG)("kt_header_menu",t.pathname),n=e&&e.breadcrumbs.length>0?e.breadcrumbs:a.breadcrumbs;s.setBreadcrumbs(n),s.setTitle(e&&e.title&&e.title.length>0?e.title:a.title)},[t.pathname]),(0,n.useEffect)(()=>{},[s]),(0,a.jsx)("div",{id:"kt_subheader",className:`subheader py-2 py-lg-4 ${i.subheaderCssClasses}`,children:(0,a.jsxs)("div",{className:`${i.subheaderContainerCssClasses} d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap`,children:[(0,a.jsxs)("div",{className:"d-flex align-items-center flex-wrap mr-1",children:[i.subheaderMobileToggle&&(0,a.jsx)("button",{type:"button",className:"burger-icon burger-icon-left mr-4 d-inline-block d-lg-none",id:"kt_subheader_mobile_toggle",children:(0,a.jsx)("span",{})}),(0,a.jsx)("div",{className:"d-flex align-items-baseline mr-5",children:(0,a.jsx)("h5",{className:"text-dark font-weight-bold my-2 mr-5",children:(0,a.jsx)(a.Fragment,{children:s.title})})}),(0,a.jsx)(f,{items:s.breadcrumbs})]}),(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsxs)("a",{href:"#",className:"btn btn-light btn-sm font-weight-bold",id:"kt_dashboard_daterangepicker","data-toggle":"tooltip",title:"Select dashboard daterange","data-placement":"left",children:[(0,a.jsx)("span",{className:"text-muted font-weight-bold mr-2",id:"kt_dashboard_daterangepicker_title",children:"Today"}),(0,a.jsx)("span",{className:"text-primary font-weight-bold",id:"kt_dashboard_daterangepicker_date",children:"Aug 16"})]}),(0,a.jsx)(g,{})]})]})})}},37656:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DividendCalculatorPage:()=>eQ,__N_SSG:()=>eY,default:()=>eV});var a=s(26514),n=s(75834),i=s(57985),r=s(46711),l=s(14571),o=s(78160),c=s(89342),d=s(24665),u=s(93760),m=s(23141),h=s(73822),p=s(10140),x=s(75165);let g={SHARES:100,CONTRIBUTION:1e3,PERIOD:10,TAX_RATE:15,NON_QUALIFIED_TAX_RATE:30,GROWTH_DEFAULT:5,PRICE_GROWTH_DEFAULT:5,DRIP_ENABLED:!0,CONTRIBUTION_ENABLED:!1},C=[{label:"1Y",value:1},{label:"5Y",value:5},{label:"10Y",value:10},{label:"20Y",value:20}],f={MIN:1,MAX:30,STEP:1},A={MIN:0,MAX:20,STEP:.1},N={MIN:0,MAX:20,STEP:.1},_={MIN:0,MAX:40,STEP:1};var b=function(e){return e[e.MONTHLY=12]="MONTHLY",e[e.QUARTERLY=4]="QUARTERLY",e[e.SEMI_ANNUAL=2]="SEMI_ANNUAL",e[e.ANNUAL=1]="ANNUAL",e}({}),j=function(e){return e[e.SAFE=60]="SAFE",e[e.MODERATE=90]="MODERATE",e}({}),v=function(e){return e[e.SAFE=90]="SAFE",e[e.AT_RISK=100]="AT_RISK",e}({}),T=function(e){return e[e.LOW=1.5]="LOW",e[e.MODERATE=4]="MODERATE",e}({}),E=function(e){return e[e.KING=50]="KING",e[e.ARISTOCRAT=25]="ARISTOCRAT",e[e.CONSISTENT=10]="CONSISTENT",e[e.ESTABLISHED=5]="ESTABLISHED",e}({}),S=s(72596),I=s(51849);let y=(0,S.Ay)(I.Ay)({color:"var(--sb-primary)",height:8,"& .MuiSlider-track":{border:"none"},"& .MuiSlider-thumb":{height:24,width:24,backgroundColor:"#fff",border:"2px solid currentColor","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"inherit"},"&::before":{display:"none"}}});var R=s(47368),L=s.n(R);function w(e){let{inputs:t,onChange:s,assetPrice:i,currency:b,historicalGrowth:j}=e,{t:v}=(0,u.B)("calculator"),T=Math.round(t.shares*i),E=0!==i?t.amount/i:0,S=(0,p.Qn)(b,!0),[I,R]=(0,n.useState)(null),w=(0,n.useCallback)((e,t)=>{"shares"===e?(R("shares"),s({shares:t,amount:t*i})):"amount"===e?(R("amount"),s({amount:t,shares:t>0?t/i:0})):s({[e]:t})},[i,s]),O=(0,n.useCallback)(()=>{R(null)},[]);return(0,a.jsxs)("div",{className:"card card-custom gutter-b",children:[(0,a.jsx)("div",{className:"card-header border-0",children:(0,a.jsxs)("div",{className:"card-title py-4 d-flex align-items-center",children:[(0,a.jsx)("div",{className:"symbol symbol-35 symbol-light-primary",children:(0,a.jsx)("div",{className:"symbol-label",children:(0,a.jsx)("i",{className:"fas fa-calculator text-primary"})})}),(0,a.jsxs)("div",{className:"ml-4",children:[(0,a.jsx)("h2",{className:L().title,children:v("CALCULATOR.TITLE")}),(0,a.jsx)("div",{className:"text-dark-65 font-size-normal",children:v("CALCULATOR.SUBTITLE")})]})]})}),(0,a.jsxs)("div",{className:"card-body",children:[(0,a.jsxs)(d.A.Row,{children:[(0,a.jsxs)(d.A.Group,{className:"col-sm-12 col-md-6",children:[(0,a.jsxs)(d.A.Label,{className:"font-weight-bold",children:[(0,a.jsx)("i",{className:"fas fa-chart-pie mr-2"}),v("CALCULATOR.SHARES_LABEL")]}),(0,a.jsx)(h.c,{className:"form-control form-control-solid form-control-lg",name:"shares",value:"shares"===I?void 0:t.shares,onValueChange:e=>w("shares",e.floatValue??0),onBlur:O,allowNegative:!1,decimalScale:2}),(0,a.jsx)("div",{className:"text-muted font-size-sm mt-2",children:(0,a.jsx)(m.x,{i18nKey:"calculator:CALCULATOR.INVESTMENT_VALUE",components:[(0,a.jsx)(x.b,{isMoney:!0,value:T,currency:b,precision:0})]})})]}),(0,a.jsxs)(d.A.Group,{className:"col-sm-12 col-md-6",children:[(0,a.jsxs)(d.A.Label,{className:"font-weight-bold",children:[(0,a.jsx)("i",{className:"fas fa-dollar-sign mr-2"}),v("CALCULATOR.AMOUNT_LABEL",{currency:S})]}),(0,a.jsx)(h.c,{className:"form-control form-control-solid form-control-lg",name:"amount",value:"amount"===I?void 0:t.amount,onValueChange:e=>w("amount",e.floatValue??0),onBlur:O,allowNegative:!1,decimalScale:0,prefix:S}),(0,a.jsx)("div",{className:"text-muted font-size-sm mt-2",children:(0,a.jsx)(m.x,{i18nKey:"calculator:CALCULATOR.SHARES_COUNT",components:[(0,a.jsx)(x.b,{value:E})]})})]})]}),(0,a.jsxs)(d.A.Group,{children:[(0,a.jsxs)("div",{className:L().sliderHeader,children:[(0,a.jsxs)(d.A.Label,{className:"font-weight-bold",children:[(0,a.jsx)("i",{className:"fas fa-calendar-alt mr-2"}),(0,a.jsx)(m.x,{i18nKey:"calculator:CALCULATOR.HOLDING_PERIOD",values:{period:t.period},components:[(0,a.jsx)("span",{className:"font-weight-bolder text-primary"})]})]}),(0,a.jsx)("div",{className:L().presets,children:C.map(e=>(0,a.jsx)("button",{type:"button",className:`${L().presetBtn} btn ${t.period===e.value?"btn-primary":"btn-light btn-hover-primary text-dark"}`,onClick:()=>s({period:e.value}),children:e.label},e.value))})]}),(0,a.jsxs)(r.A,{children:[(0,a.jsx)(y,{value:t.period,valueLabelDisplay:"auto",min:f.MIN,max:f.MAX,step:f.STEP,marks:[{value:f.MIN,label:""},{value:15,label:""},{value:f.MAX,label:""}],onChange:(e,t)=>
3w("period",t)}),(0,a.jsxs)(r.A,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({period:f.MIN}),sx:{cursor:"pointer"},children:v("CALCULATOR.PERIOD_MARKS.MIN")}),(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({period:15}),sx:{cursor:"pointer"},children:v("CALCULATOR.PERIOD_MARKS.MID")}),(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({period:f.MAX}),sx:{cursor:"pointer"},children:v("CALCULATOR.PERIOD_MARKS.MAX")})]})]})]}),(0,a.jsxs)(d.A.Group,{children:[(0,a.jsxs)("div",{className:L().sliderHeader,children:[(0,a.jsxs)(d.A.Label,{className:"font-weight-bold",children:[(0,a.jsx)("i",{className:"fas fa-seedling mr-2"}),(0,a.jsx)(m.x,{i18nKey:"calculator:CALCULATOR.DIVIDEND_GROWTH",components:[(0,a.jsx)(x.b,{className:"font-weight-bolder text-success",value:t.growth,isPercent:!0})]})]}),(0,a.jsxs)("button",{className:"btn btn-link-primary btn-sm font-weight-bold",onClick:()=>w("growth",j),type:"button",children:[(0,a.jsx)("i",{className:"fas fa-redo icon-nm mr-2"}),v("CALCULATOR.RESET_TO_HISTORICAL")]})]}),(0,a.jsxs)(r.A,{children:[(0,a.jsx)(y,{value:t.growth,valueLabelDisplay:"auto",min:A.MIN,max:A.MAX,step:A.STEP,marks:[{value:A.MIN,label:""},{value:10,label:""},{value:A.MAX,label:""}],onChange:(e,t)=>
3w("growth",t)}),(0,a.jsxs)(r.A,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({growth:A.MIN}),sx:{cursor:"pointer"},children:v("CALCULATOR.GROWTH_MARKS.NO_GROWTH")}),(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({growth:10}),sx:{cursor:"pointer"},children:v("CALCULATOR.GROWTH_MARKS.AVERAGE")}),(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({growth:A.MAX}),sx:{cursor:"pointer"},children:v("CALCULATOR.GROWTH_MARKS.HIGH")})]})]})]}),(0,a.jsxs)(d.A.Group,{children:[(0,a.jsxs)("div",{className:L().sliderHeader,children:[(0,a.jsxs)(d.A.Label,{className:"font-weight-bold",children:[(0,a.jsx)("i",{className:"fas fa-chart-area mr-2"}),(0,a.jsx)(m.x,{i18nKey:"calculator:CALCULATOR.PRICE_GROWTH",components:[(0,a.jsx)(x.b,{className:"font-weight-bolder text-primary",value:t.priceGrowth,isPercent:!0})]})]}),(0,a.jsxs)("button",{className:"btn btn-link-primary btn-sm font-weight-bold",onClick:()=>w("priceGrowth",g.PRICE_GROWTH_DEFAULT),type:"button",children:[(0,a.jsx)("i",{className:"fas fa-redo icon-nm mr-2"}),v("CALCULATOR.RESET_PRICE_GROWTH_TO_DEFAULT")]})]}),(0,a.jsxs)(r.A,{children:[(0,a.jsx)(y,{value:t.priceGrowth,valueLabelDisplay:"auto",min:N.MIN,max:N.MAX,step:N.STEP,marks:[{value:N.MIN,label:""},{value:10,label:""},{value:N.MAX,label:""}],onChange:(e,t)=>
3w("priceGrowth",t)}),(0,a.jsxs)(r.A,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({priceGrowth:N.MIN}),sx:{cursor:"pointer"},children:v("CALCULATOR.PRICE_GROWTH_MARKS.NO_GROWTH")}),(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({priceGrowth:10}),sx:{cursor:"pointer"},children:v("CALCULATOR.PRICE_GROWTH_MARKS.AVERAGE")}),(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({priceGrowth:N.MAX}),sx:{cursor:"pointer"},children:v("CALCULATOR.PRICE_GROWTH_MARKS.HIGH")})]})]})]}),(0,a.jsxs)("div",{className:L().toggleRow,children:[(0,a.jsxs)("div",{className:L().toggleCard,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:L().toggleTitle,children:v("CALCULATOR.DRIP_TITLE")}),(0,a.jsx)("div",{className:L().toggleSubtitle,children:v("CALCULATOR.DRIP_SUBTITLE")})]}),(0,a.jsx)(o.A,{checked:t.drip,onChange:e=>w("drip",e.target.checked)})]}),(0,a.jsxs)("div",{className:L().toggleCard,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:L().toggleTitle,children:v("CALCULATOR.CONTRIBUTIONS_TITLE")}),(0,a.jsx)("div",{className:L().toggleSubtitle,children:v("CALCULATOR.CONTRIBUTIONS_SUBTITLE")})]}),(0,a.jsx)(o.A,{checked:t.contributionEnabled,onChange:e=>w("contributionEnabled",e.target.checked)})]})]}),t.contributionEnabled&&(0,a.jsxs)(d.A.Group,{children:[(0,a.jsxs)(d.A.Label,{className:"font-weight-bold",children:[(0,a.jsx)("i",{className:"fas fa-plus-circle mr-2"}),v("CALCULATOR.CONTRIBUTION_AMOUNT",{currency:S})]}),(0,a.jsx)(h.c,{className:"form-control form-control-solid form-control-lg",name:"contribution",value:t.contribution,onValueChange:e=>w("contribution",e.floatValue??0),allowNegative:!1,decimalScale:2,prefix:S,suffix:" / year"})]}),(0,a.jsxs)(d.A.Group,{children:[(0,a.jsxs)("div",{className:L().sliderHeader,children:[(0,a.jsxs)(d.A.Label,{className:"font-weight-bold",children:[(0,a.jsx)("i",{className:"fas fa-percentage mr-2"}),(0,a.jsx)(m.x,{i18nKey:"calculator:CALCULATOR.TAX_RATE",components:[(0,a.jsx)(x.b,{className:"font-weight-bolder",value:t.taxRate,isPercent:!0})]})]}),(0,a.jsx)(c.A,{control:(0,a.jsx)(o.A,{checked:t.qualified,onChange:e=>w("qualified",e.target.checked),size:"small"}),label:v("CALCULATOR.QUALIFIED"),className:L().qualifiedToggle})]}),(0,a.jsxs)(r.A,{children:[(0,a.jsx)(y,{value:t.taxRate,valueLabelDisplay:"auto",min:_.MIN,max:_.MAX,step:_.STEP,marks:[{value:_.MIN,label:""},{value:20,label:""},{value:_.MAX,label:""}],onChange:(e,t)=>
3w("taxRate",t)}),(0,a.jsxs)(r.A,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({taxRate:_.MIN}),sx:{cursor:"pointer"},children:v("CALCULATOR.TAX_MARKS.TAX_ADVANTAGED")}),(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({taxRate:20}),sx:{cursor:"pointer"},children:v("CALCULATOR.TAX_MARKS.STANDARD")}),(0,a.jsx)(l.A,{variant:"body2",onClick:()=>s({taxRate:_.MAX}),sx:{cursor:"pointer"},children:v("CALCULATOR.TAX_MARKS.HIGH")})]})]})]})]})]})}var O=s(48208),k=s(9096),D=s.n(k);function P(e){let{results:t,period:s,ticker:n}=e,{t:i}=(0,u.B)("calculator"),{annualIncome:r,monthlyIncome:l,portfolioValue:o,yieldOnCost:c,totalDividends:d}=t;return(0,a.jsx)("div",{className:`${D().resultsCard} card card-custom gutter-b`,children:(0,a.jsxs)("div",{className:"card-body",children:[(0,a.jsxs)("div",{className:D().header,children:[(0,a.jsx)("div",{className:"symbol symbol-50",children:(0,a.jsx)("div",{className:`${D().symbolLabel} symbol-label`,children:(0,a.jsx)("i",{className:"fas fa-dollar-sign text-white"})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:D().label,children:i("RESULTS.ANNUAL_INCOME_LABEL")}),(0,a.jsx)("div",{className:D().mainValue,children:(0,a.jsx)(x.b,{isMoney:!0,value:r,precision:0})}),(0,a.jsx)("div",{className:D().subValue,children:(0,a.jsx)(m.x,{i18nKey:"calculator:RESULTS.MONTHLY_LABEL",components:[(0,a.jsx)(x.b,{className:"font-weight-bold",isMoney:!0,value:l,precision:2})]})})]})]}),(0,a.jsx)("div",{className:D().divider}),(0,a.jsxs)("div",{className:D().metrics,children:[(0,a.jsxs)("div",{className:D().metricRow,children:[(0,a.jsx)("span",{className:D().metricLabel,children:i("RESULTS.AFTER_YEARS",{period:s})}),(0,a.jsx)("span",{className:D().metricValue,children:(0,a.jsx)(x.b,{isMoney:!0,value:o,precision:0})})]}),(0,a.jsxs)("div",{className:D().metricRow,children:[(0,a.jsx)("span",{className:D().metricLabel,children:i("RESULTS.YIELD_ON_COST")}),(0,a.jsx)("span",{className:`${D().metricValue}`,children:(0,a.jsx)(x.b,{isPercent:!0,value:c,precision:1})})]}),(0,a.jsxs)("div",{className:D().metricRow,children:[(0,a.jsx)("span",{className:D().metricLabel,children:i("RESULTS.TOTAL_DIVIDENDS")}),(0,a.jsx)("span",{className:D().metricValue,children:(0,a.jsx)(x.b,{isMoney:!0,value:d,precision:0})})]})]}),(0,a.jsx)("div",{className:D().divider}),(0,a.jsxs)("div",{className:D().ctaSection,children:[(0,a.jsxs)("div",{className:D().ctaText,children:[(0,a.jsx)("i",{className:"fas fa-lock"}),i("RESULTS.CTA_TEXT")]}),(0,a.jsxs)(O.o,{href:"/auth/registration",type:"button",className:`${D().ctaButton}`,children:[(0,a.jsx)("i",{className:"fas fa-chart-line"}),i("RESULTS.CTA_BUTTON",{ticker:n})]}),(0,a.jsx)("div",{className:D().ctaSubtext,children:i("RESULTS.CTA_SUBTEXT",{ticker:n})})]})]})})}var M=s(23469),U=s.n(M),H=s(53920),F=s(83602);function B(e,t,s,a,n,i,r,l,o,c){let d=e,u=a,m=0,h=[e*s];for(let e=1;e<=t;e++){let t=s*(1+i/100)**e,a=d*u*(1-r/100);m+=a,o&&c>0&&(d+=c/t),l&&(d+=a/t),u*=1+n/100;let p=d*t;h.push(p)}return{shares:d,currentDividendPerShare:u,totalDividends:m,yearlyValues:h}}function G(e,t,s,a,n,i,r,l,o,c){return B(n,e,i,r,s,a,l,t,o,c).yearlyValues}var W=s(68320),$=s.n(W);let K=U()(()=>
3Promise.all([s.e(2725),s.e(1629),s.e(2189)]).then(s.bind(s,52189)).then(e=>e.SbChartJs),{loadableGenerated:{webpack:()=>[52189]},loading:()=>(0,a.jsx)("div",{className:"d-flex justify-content-center align-items-center",style:{minHeight:"320px"},children:(0,a.jsx)("div",{className:"spinner-border text-primary",role:"status",children:(0,a.jsx)("span",{className:"sr-only",children:"Loading chart..."})})}),ssr:!1});function Y(e){let{period:t,growth:s,priceGrowth:i,shares:r,price:l,dividend:o,currency:c,taxRate:d,contributionEnabled:m,contribution:h}=e,{t:p}=(0,u.B)("calculator"),x=(0,H.am)(!1,c,!1),g=(0,n.useMemo)(()=>{let e=Array.from({length:t+1},(e,t)=>`${p("CHART.YEAR")} ${t}`),a=G(t,!0,s,i,r,l,o,d,m,h),n=G(t,!1,s,i,r,l,o,d,m,h);return{labels:e,datasets:[{label:p("CHART.WITH_DRIP"),data:a,borderColor:"#3699FF",backgroundColor:"rgba(0, 158, 247, 0.1)",borderWidth:3,fill:!0,tension:.4,pointRadius:0,pointHoverRadius:6,pointBackgroundColor:"#3699FF",pointBorderColor:"#fff",pointBorderWidth:2},{label:p("CHART.WITHOUT_DRIP"),data:n,borderColor:"#9CA3AF",backgroundColor:"rgba(156, 163, 175, 0.05)",borderWidth:2,borderDash:[5,5],fill:!0,tension:.4,pointRadius:0,pointHoverRadius:6,pointBackgroun
3dColor:"#9CA3AF",pointBorderColor:"#fff",pointBorderWidth:2}]}},[t,s,i,r,l,o,d,m,h,p]),C=(0,n.useMemo)(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1,position:"left"},datalabels:{display:!1},tooltip:{mode:"index",intersect:!1,callbacks:{label(e){let t=e.dataset.label||"";return t&&(t+=": "),t+=x.format(e.parsed.y)}}}},scales:{x:{grid:{display:!1},title:{display:!0,text:p("CHART.YEARS")}},y:{beginAtZero:!0,ticks:{callback:e=>x.format(e)},title:{display:!0,text:p("CHART.PORTFOLIO_VALUE")},grid:{borderDash:[5,5]}}},interaction:{intersect:!1,mode:"nearest"}}),[p]);return(0,a.jsxs)("div",{className:"card card-custom gutter-b",children:[(0,a.jsxs)("div",{className:"card-header border-0",children:[(0,a.jsx)("h2",{className:`${$().title} py-6`,children:p("CHART.TITLE")}),(0,a.jsxs)("div",{className:$().legend,children:[(0,a.jsxs)("div",{className:$().legendItem,children:[(0,a.jsx)("div",{className:`${$().legendDot} ${$().drip}`}),(0,a.jsx)("span",{children:p("CHART.WITH_DRIP")})]}),(0,a.jsxs)("div",{className:$().legendItem,children:[(0,a.jsx)("div",{className:`${$().legendDot} ${$().noDrip}`}),(0,a.jsx)("span",{children:p("CHART.WITHOUT_DRIP")})]})]})]}),(0,a.jsxs)("div",{className:"card-body",children:[(0,a.jsx)("div",{className:$().chartWrapper,children:(0,a.jsx)(F.Dx.Consumer,{children:()=>(0,a.jsx)(K,{type:"line",data:g,options:C,redraw:!0})})}),(0,a.jsx)("p",{className:"text-dark-50 mt-4 text-center",children:p("CHART.NOTE")})]})]})}var Q=s(78681),V=s.n(Q);function z(e){let{label:t,headerRight:s,content:n,afterContent:i}=e;return(0,a.jsxs)("div",{className:V().card,children:[(0,a.jsxs)("div",{className:V().cardHeader,children:[(0,a.jsx)("span",{className:V().cardLabel,children:t}),s]}),(0,a.jsx)("div",{className:`${V().cardSubtext} text-dark-65`,children:n}),i]})}var q=s(47115),J=function(e){return e.HIGH="HIGH",e.MODERATE="MODERATE",e.LOW="LOW",e}({}),Z=function(e){return e.SAFE="SAFE",e.MODERATE="MODERATE",e.AT_RISK="AT_RISK",e.DANGEROUS="DANGEROUS",e.ETF_PASS="ETF_PASS",e.UNKNOWN="UNKNOWN",e}({}),X=function(e){return e.KING="KING",e.ARISTOCRAT="ARISTOCRAT",e.CONSISTENT="CONSISTENT",e.ESTABLISHED="ESTABLISHED",e.SHORT="SHORT",e}({});function ee(e){return e>T.MODERATE?"HIGH":e>=T.LOW?"MODERATE":"LOW"}function et(e,t,s){return e===q.PW.ETF?"ETF_PASS":s?t?s<v.SAFE?"SAFE":s<=v.AT_RISK?"AT_RISK":"DANGEROUS":s<j.SAFE?"SAFE":s<j.MODERATE?"MODERATE":"DANGEROUS":"UNKNOWN"}var es=s(11377),ea=s.n(es);function en(e){let{divYieldFWD:t}=e,{t:s}=(0,u.B)("calculator"),i=function(e){let{t}=(0,u.B)("calculator");return(0,n.useMemo)(()=>{let s=ee(e),a=Math.min(10*e,100);switch(s){case J.HIGH:return{label:t("HEALTH.YIELD.HIGH"),color:"warning",percentile:a};case J.MODERATE:return{label:t("HEALTH.YIELD.MODERATE"),color:"success",percentile:a};case J.LOW:return{label:t("HEALTH.YIELD.LOW"),color:"warning",percentile:a};default:return null}},[e,t])}(t);return(0,a.jsx)(z,{label:s("HEALTH.YIELD.LABEL"),headerRight:(0,a.jsx)("span",{className:`${ea().badge} bg-${i.color}`,children:(0,a.jsx)(x.b,{value:t,isPercent:!0})}),content:i.label,afterContent:(0,a.jsx)("div",{className:V().progressBar,children:(0,a.jsx)("div",{className:`${V().progressFill} bg-${i.color}`,style:{width:`${i.percentile}%`}})})})}var ei=s(33687),er=s.n(ei);function el(e){let{type:t,isREIT:s,payoutRatio:i}=e,{t:r}=(0,u.B)("calculator"),l=function(e,t,s){let{t:a}=(0,u.B)("calculator");return(0,n.useMemo)(()=>{let n=et(e,t,s),i=n===Z.ETF_PASS?100:s?Math.min(s,100):0;switch(n){case Z.ETF_PASS:return{label:a("HEALTH.SAFETY.ETF_PASS"),color:"success",percentile:i};case Z.UNKNOWN:return{label:a("HEALTH.SAFETY.UNKNOWN"),color:"warning",percentile:i};case Z.SAFE:return{label:a("HEALTH.SAFETY.SAFE"),color:"success",percentile:i};case Z.MODERATE:return{label:a("HEALTH.SAFETY.MODERATE"),color:"warning",percentile:i};case Z.AT_RISK:return{label:a("HEALTH.SAFETY.AT_RISK"),color:"warning",percentile:i};case Z.DANGEROUS:return{label:a("HEALTH.SAFETY.DANGEROUS"),color:"danger",percentile:i};default:return null}},[e,t,s,a])}(t,s,i),o=(0,n.useMemo)(()=>t===q.PW.ETF?r("HEALTH.SAFETY.ETF_PASS_DESCRIPTION"):(0,a.jsx)(m.x,{i18nKey:i?"calculator:HEALTH.SAFETY.DESCRIPTION":"calculator:HEALTH.SAFETY.UNKNOWN",components:[(0,a.jsx)(x.b,{value:i,isPercent:!0,precision:1})]}),[t,i,r]);return(0,a.jsx)(z,{label:r("HEALTH.SAFETY.LABEL"),headerRight:(0,a.jsxs)("div",{className:`${er().safetyBadge} text-${l.color}`,children:[(0,a.jsx)("i",{className:`fas fa-shield-alt text-${l.color}`}),(0,a.jsx)("span",{children:l.label})]}),content:o,afterContent:(0,a.jsx)("div",{className:V().progressBar,children:(0,a.jsx)("div",{className:`${V().progressFill} bg-${l.color}`,style:{width:`${l.percentile}%`}})})})}var eo=s(91549),ec=s.n(eo);function ed(e){let{divGrowthStreak:t,type:s}=e,{t:i}=(0,u.B)("calculator"),r=function(e,t){let{t:s}=(0,u.B)("calculator");return(0,n.useMemo)(()=>{switch(!e||e<E.ESTABLISHED?"SHORT":e>=E.KING&&t!==q.PW.ETF?"KING":e>=E.ARISTOCRAT&&t!==q.PW.ETF?"ARISTOCRAT":e>=E.CONSISTENT?"CONSISTENT":"ESTABLISHED"){case X.KING:return{label:s("HEALTH.GROWTH.KING"),color:"warning",icon:"fas fa-chess-king"};case X.ARISTOCRAT:return{label:s("HEALTH.GROWTH.ARISTOCRAT"),color:"warning",icon:"fas fa-crown"};case X.CONSISTENT:return{label:s("HEALTH.GROWTH.CONSISTENT"),color:"dark",icon:"fas fa-fire"};case X.ESTABLISHED:return{label:s("HEALTH.GROWTH.ESTABLISHED"),color:"dark",icon:"fas fa-clock"};case X.SHORT:return{label:s("HEALTH.GROWTH.SHORT"),color:"dark",icon:null};default:return null}},[e,t,s])}(t,s);return(0,a.jsx)(z,{label:i("HEALTH.GROWTH.LABEL"),headerRight:(0,a.jsx)("span",{className:V().valueText,children:t>0?i("HEALTH.GROWTH.YEARS",{count:t}):"0 y"}),content:i(t>=E.ESTABLISHED?"HEALTH.GROWTH.DESCRIPTION":"HEALTH.GROWTH.DESCRIPTION_SHORT"),afterContent:(0,a.jsxs)("div",{className:`${ec().streakBadge} text-${r.color}`,children:[r.icon&&(0,a.jsx)("i",{className:`${r.icon} text-${r.color}`}),(0,a.jsx)("span",{children:r.label})]})})}var eu=s(21069),em=s(60999),eh=s.n(em);function ep(e){let{divFrequency:t,nextDividendDate:s}=e,{t:i}=(0,u.B)(["calculator","common"]),r=(0,n.useMemo)(()=>i((0,eu.Jz)(t),{ns:"common"}),[t,i]),l=t>=12?eh()["badge-highlight"]:eh()["badge-default"],o=(0,n.useMemo)(()=>s?new Date(s).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):i("HEALTH.FREQUENCY.NOT_AVAILABLE"),[s,i]);return(0,a.jsx)(z,{label:i("HEALTH.FREQUENCY.LABEL"),headerRight:(0,a.jsx)("span",{className:`${eh().badge} ${l}`,children:r}),content:i("HEALTH.FREQUENCY.PAYMENTS_PER_YEAR",{count:t}),afterContent:(0,a.jsxs)("div",{className:eh().nextPayment,children:[(0,a.jsx)("div",{className:`${eh().nextPaymentLabel} text-dark-65`,children:i("HEALTH.FREQUENCY.NEXT_PAYMENT")}),(0,a.jsxs)("div",{className:eh().nextPaymentDate,children:[(0,a.jsx)("i",{className:"far fa-calendar-alt text-primary"}),(0,a.jsx)("span",{children:o})]})]})})}var ex=s(40048),eg=s.n(ex);function eC(e){let{asset:t}=e,{t:s}=(0,u.B)("calculator");return(0,a.jsx)("div",{className:"card card-custom gutter-b",children:(0,a.jsxs)("div",{className:"card-body",children:[(0,a.jsx)("h3",{className:eg().title,children:s("HEALTH.TITLE",{ticker:t.ticker})}),(0,a.jsxs)("div",{className:eg().cards,children:[(0,a.jsx)(en,{divYieldFWD:t.divYieldFWD}),(0,a.jsx)(el,{type:t.type,isREIT:t.isREIT,payoutRatio:t.payoutRatio}),(0,a.jsx)(ed,{divGrowthStreak:t.divGrowthStreak,type:t.type}),(0,a.jsx)(ep,{divFrequency:t.divFrequency,nextDividendDate:t.nextDividendDate})]})]})})}var ef=s(46851),eA=s(96456),eN=s.n(eA),e_=s(83156),eb=s.n(e_);function ej(e){let{assetData:t,isActive:s=!1,showExpenseRatio:n}=e,{t:i}=(0,u.B)("calculator");return(0,a.jsxs)("tr",{className:`grid-row ${s?eb().activeRow:""}`,children:[(0,a.jsx)("td",{className:"align-middle",children:(0,a.jsxs)("div",{className:eb().assetCell,children:[(0,a.jsx)("div",{children:(0,a.jsx)(eu.hz,{logoUrl:t.logoURL,primaryLogoUrl:t.primaryLogoURL,name:t.description,assetType:t.type,ticker:t.ticker})}),(0,a.jsxs)("div",{className:eb().assetInfo,children:[(0,a.jsx)("div",{className:eb().assetTicker,children:t.ticker}),(0,a.jsx)("div",{className:eb().assetName,children:t.description})]})]})}),(0,a.jsx)("td",{className:"align-middle font-weight-bold",children:t.divYieldFWD>0?(0,a.jsx)(x.b,{isPercent:!0,value:t.divYieldFWD,precision:2}):(0,a.jsx)(a.Fragment,{children:"-"})}),(0,a.jsx)("td",{className:"align-middle font-weight-bold",children:t.divGrowth5Y>0?(0,a.jsx)(x.b,{isPercent:!0,value:t.divGrowth5Y,precision:1,showColors:!0}):(0,a.jsx)(a.Fragment,{children:"-"})}),n&&(0,a.jsx)("td",{className:"align-middle font-weight-bold",children:null!==t.expenseRatio?(0,a.jsx)(x.b,{isPercent:!0,value:t.expenseRatio,precision:2}):i("COMPARISON.TABLE.N_A")}),(0,a.jsx)("td",{className:"align-middle",children:s?(0,a.jsx)("span",{className:eb().activeBadge,children:i("COMPARISON.TABLE.ACTIVE")}):(0,a.jsx)(eN(),{href:`/calculator/dividend/${t.ticker.toLowerCase()}-dividend-calculator`,className:eb().calculateLink,children:i("COMPARISON.TABLE.CALCULATE")})})]})}var ev=s(71532),eT=s.n(ev);function eE(e){let{asset:t,alternatives:s}=e,{t:n}=(0,u.B)("calculator"),i=t.type===q.PW.ETF;return(0,a.jsx)("div",{className:"card card-custom gutter-b",children:(0,a.jsxs)("div",{className:"card-body",children:[(0,a.jsx)("div",{className:eT().header,children:(0,a.jsx)("h2",{className:eT().title,children:n("COMPARISON.TITLE",{ticker:t.ticker})})}),(0,a.jsxs)(ef.A,{responsive:!0,children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:n("COMPARISON.TABLE.ASSET")}),(0,a.jsx)("th",{children:n("COMPARISON.TABLE.YIELD")}),(0,a.jsx)("th",{children:n("COMPARISON.TABLE.GROWTH")}),i&&(0,a.jsx)("th",{children:n("COMPARISON.TABLE.EXPENSE_RATIO")}),(0,a.jsx)("th",{})]})}),(0,a.jsxs)("tbody",{children:[(0,a.jsx)(ej,{assetData:t,isActive:!0,showExpenseRatio:i}),s.map(e=>(0,a.jsx)(ej,{assetData:e,showExpenseRatio:i},e.ticker))]})]})]})})}var eS=s(38089),eI=s(95572),ey=s(99751);function eR(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return null!=e?e.toFixed(t):"0"}function eL(e){let{asset:t}=e,{t:s}
3=(0,u.B)("calculator"),[i,r]=(0,n.useState)([]),l=function(e){let{t,i18n:s}=(0,u.B)("calculator");return(0,n.useMemo)(()=>{let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):t}(e.exDividendDate,t("FAQ.QUESTION_2.NOT_ANNOUNCED"));return[{question:t("FAQ.QUESTION_1.TITLE",{ticker:e.ticker}),answer:t("FAQ.QUESTION_1.ANSWER",{ticker:e.ticker,amount:eR(e.divPerYearFWD),frequency:t(function(e){switch(e){case b.MONTHLY:return"FAQ.QUESTION_1.FREQUENCY_MONTHLY";case b.QUARTERLY:return"FAQ.QUESTION_1.FREQUENCY_QUARTERLY";default:return"FAQ.QUESTION_1.FREQUENCY_ANNUALLY"}}(e.divFrequency))})},{question:t("FAQ.QUESTION_2.TITLE",{ticker:e.ticker}),answer:t("FAQ.QUESTION_2.ANSWER",{ticker:e.ticker,exDate:s})},{question:t("FAQ.QUESTION_3.TITLE",{ticker:e.ticker}),answer:t("FAQ.QUESTION_3.ANSWER",{ticker:e.ticker,yield:eR(e.divYieldFWD),streak:e.divGrowthStreak,payout:eR(e.payoutRatio,0),safetyLevel:t(function(e){switch(et(e.type,e.isREIT,e.payoutRatio)){case Z.SAFE:return"FAQ.QUESTION_3.SAFETY_STRONG";case Z.MODERATE:return"FAQ.QUESTION_3.SAFETY_MODERATE";case Z.AT_RISK:return"FAQ.QUESTION_3.SAFETY_WEAKENING";default:return"FAQ.QUESTION_3.SAFETY_POOR"}}(e))})}]},[e,t,s.language])}(t);return l.length?(0,a.jsxs)("div",{className:"card card-custom card-sm-stretch gutter-b",children:[(0,a.jsx)("div",{className:"card-header border-0 pb-0",children:(0,a.jsx)("h2",{className:"card-title font-weight-bolder",children:s("FAQ.TITLE",{ticker:t.ticker})})}),(0,a.jsx)("div",{itemScope:!0,className:"card-body pt-0",itemType:"https://schema.org/FAQPage",children:l.map((e,t)=>(0,a.jsxs)("div",{className:"mb-2",itemScope:!0,itemProp:"mainEntity",itemType:"https://schema.org/Question",children:[(0,a.jsxs)("h3",{className:"font-weight-bold cursor-pointer font-size-lg",itemProp:"name",onClick:()=>{r(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},style:{userSelect:"none"},children:[i.includes(t)?(0,a.jsx)(eI.A,{}):(0,a.jsx)(ey.A,{}),e.question]}),(0,a.jsx)(eS.A,{in:i.includes(t),children:(0,a.jsx)("div",{className:"pt-1 pb-2 pl-2",itemScope:!0,itemProp:"acceptedAnswer",itemType:"https://schema.org/Answer",children:(0,a.jsx)("div",{itemProp:"text",children:e.answer})})})]},t))})]}):null}var ew=s(56244),eO=s.n(ew);function ek(e){let{asset:t}=e,{t:s}=(0,u.B)("calculator"),n=[{label:s("BREADCRUMBS.HOME"),href:"/"},{label:s("BREADCRUMBS.CALCULATORS"),href:null},{label:s("BREADCRUMBS.DIVIDEND_CALCULATOR"),href:"/calculator/dividend"},{label:t.ticker,href:null}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{className:"container-nowrap-scroll breadcrumb breadcrumb-transparent breadcrumb-dot font-weight-bold p-0 mb-4 mt-0 font-size-md",children:n.map((e,t)=>(0,a.jsx)("li",{className:"breadcrumb-item text-dark-50",children:e.href?(0,a.jsx)(eN(),{href:e.href,children:(0,a.jsx)("span",{className:"text-dark-50 text-hover-primary",children:e.label})}):(0,a.jsx)("span",{className:"text-dark-65",children:e.label})},`breadcrumb-${t}`))}),(0,a.jsxs)("div",{className:eO().hero,children:[(0,a.jsxs)("div",{className:eO().heroContent,children:[(0,a.jsxs)("div",{className:"d-flex align-items-center my-6",children:[(0,a.jsxs)("div",{className:eO().tickerBadge,children:[(0,a.jsx)("i",{className:"fas fa-chart-pie"}),t.ticker]}),(0,a.jsx)("div",{children:(0,a.jsxs)("span",{className:"text-dark-65 ml-4",children:[t.description," ⢠",t.exchange]})})]}),(0,a.jsx)("h1",{className:`${eO().title}`,children:s("HERO.TITLE",{ticker:t.ticker})}),(0,a.jsx)("p",{className:`${eO().subtitle} text-dark-65`,children:s("HERO.SUBTITLE",{description:t.description})})]}),(0,a.jsxs)("div",{className:"d-flex align-items-start",children:[(0,a.jsxs)("div",{className:"d-flex flex-column align-items-end",children:[(0,a.jsx)("div",{className:"font-size-sm text-dark-50 mb-1",children:s("HERO.CURRENT_PRICE")}),(0,a.jsx)("div",{className:eO().price,children:(0,a.jsx)(x.b,{isMoney:!0,value:t.currentPrice,currency:t.currency})}),!!t.lastDayGainsPercent&&(0,a.jsxs)("div",{className:`font-weight-bold ${t.lastDayGainsPercent>0?"text-success":"text-danger"}`,children:[(0,a.jsx)(x.b,{isPercent:!0,showColors:!0,value:t.lastDayGainsPercent,symbol:"tri
3angle"})," ",s("HERO.TODAY_CHANGE")]})]}),(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsx)(eu.hz,{className:"shadow-sm",size:"lg",logoUrl:t.logoURL,primaryLogoUrl:t.primaryLogoURL,name:t.description,assetType:t.type,ticker:t.ticker})})]})]})]})}var eD=s(72524),eP=s.n(eD);function eM(e){let{asset:t}=e,{t:s}=(0,u.B)("calculator"),i=new Date().getFullYear(),{seoKeys:r,showPayoutText:l}=(0,n.useMemo)(()=>(function(e){var t;let s=ee(e.divYieldFWD),a=et(e.type,e.isREIT,e.payoutRatio);return{seoKeys:{yieldRatingKey:function(e){switch(e){case J.HIGH:return"SEO.YIELD_RATING.COMPELLING";case J.MODERATE:return"SEO.YIELD_RATING.SOLID";case J.LOW:return"SEO.YIELD_RATING.MODEST";default:return"SEO.YIELD_RATING.UNKNOWN"}}(s),yieldComparisonKey:.3>Math.abs((t=e.divYieldFWD)-1.5)?"SEO.YIELD_COMPARISON.COMPARABLE":t>1.5?"SEO.YIELD_COMPARISON.HIGHER":"SEO.YIELD_COMPARISON.LOWER",growthVerbKey:function(e){let t=["SEO.GROWTH_VERB.RAISED","SEO.GROWTH_VERB.INCREASED","SEO.GROWTH_VERB.GROWN"];return t[e%t.length]}(e.ticker.length),safetyRatingKey:function(e){switch(e){case Z.SAFE:case Z.ETF_PASS:return"SEO.SAFETY_RATING.SAFE";case Z.MODERATE:return"SEO.SAFETY_RATING.SUSTAINABLE";case Z.AT_RISK:return"SEO.SAFETY_RATING.AT_RISK";case Z.DANGEROUS:return"SEO.SAFETY_RATING.CONCERNING";case Z.UNKNOWN:default:return"SEO.SAFETY_RATING.UNKNOWN"}}(a)},showPayoutText:e.type===q.PW.ETF||e.payoutRatio}})(t),[t]),o=t.type===q.PW.STOCK?"SEO.INVESTOR_TYPE.STOCK":"SEO.INVESTOR_TYPE.ETF",c="SCHD"===t.ticker,d=c&&t.divGrowthStreak>5?s("SEO.TRACK_RECORD",{years:t.divGrowthStreak}):null,h=t.type===q.PW.ETF?(0,a.jsx)("b",{}):(0,a.jsx)(x.b,{isPercent:!0,value:t.payoutRatio,precision:0,className:"font-weight-bold"});return(0,a.jsx)("div",{className:"card card-custom gutter-b",children:(0,a.jsxs)("div",{className:"card-body",children:[(0,a.jsx)("h2",{className:eP().sectionTitle,children:s("SEO.SECTION_TITLE",{ticker:t.ticker,year:i})}),(0,a.jsxs)("div",{className:eP().seoContent,children:[(0,a.jsx)("p",{children:(0,a.jsx)(m.x,{i18nKey:"calculator:SEO.INTRO",values:{yieldRating:s(r.yieldRatingKey),yieldComparison:s(r.yieldComparisonKey),ticker:t.ticker},components:[(0,a.jsx)(x.b,{isMoney:!0,value:t.currentPrice,precision:2,className:"font-weight-bold"}),(0,a.jsx)(x.b,{isPercent:!0,value:t.divYieldFWD,precision:2,className:"font-weight-bold"})]})}),t.divGrowth5Y>0&&(0,a.jsx)("p",{children:(0,a.jsx)(m.x,{i18nKey:"calculator:SEO.GROWTH_TEXT",values:{description:t.description,growthVerb:s(r.growthVerbKey)},components:[(0,a.jsx)(x.b,{isPercent:!0,value:t.divGrowth5Y,precision:1,className:"font-weight-bold"})]})}),c&&(0,a.jsx)("p",{children:d?s("SEO.INVESTOR_TEXT_WITH_TRACK_RECORD",{ticker:t.ticker,type:s(o),trackRecord:d}):s("SEO.INVESTOR_TEXT",{ticker:t.ticker,type:s(o)})}),l&&(0,a.jsx)("p",{children:(0,a.jsx)(m.x,{i18nKey:"calculator:SEO.PAYOUT_TEXT",values:{ticker:t.ticker,safetyRating:s(r.safetyRatingKey),etfText:s("SEO.PAYOUT_ETF_PASS")},components:[h]})})]})]})})}function eU(e){return{shares:g.SHARES,amount:e.currentPrice*g.SHARES,period:g.PERIOD,growth:e.divGrowth5Y>0?e.divGrowth5Y:g.GROWTH_DEFAULT,priceGrowth:g.PRICE_GROWTH_DEFAULT,drip:g.DRIP_ENABLED,contributionEnabled:g.CONTRIBUTION_ENABLED,contribution:g.CONTRIBUTION,taxRate:e.isQualifiedTax?g.TAX_RATE:g.NON_QUALIFIED_TAX_RATE,qualified:e.isQualifiedTax}}var eH=s(62737),eF=s.n(eH);function eB(e){let{asset:t}=e,[s,i]=(0,n.useState)(()=>eU(t));(0,n.useEffect)(()=>{i(eU(t))},[t.ticker,t.currentPrice,t.divGrowth5Y,t.isQualifiedTax]);let r=(0,n.useMemo)(()=>(function(e,t,s){let{shares:a,period:n,growth:i,priceGrowth:r,drip:l,contributionEnabled:o,contribution:c,taxRate:d}=e,u=a*s*(1-d/100),m=B(a,n,t,s,i,r,d,l,o,c),h=(1+r/100)**n,p=m.shares*t*h,x=m.shares*m.currentDividendPerShare;return{annualIncome:u,monthlyIncome:u/12,portfolioValue:p,yieldOnCost:x/(a*t+(o?c*n:0))*100,totalDividends:m.totalDividends,finalShares:m.shares}})(s,t.currentPrice,t.divPerYearFWD),[s,t.currentPrice,t.divPerYearFWD]);return(0,a.jsx)("div",{className:eF().page,children:(0,a.jsxs)("div",{children:[(0,a.jsx)(ek,{asset:t}),(0,a.jsxs)("div",{className:eF().mainContent,children:[(0,a.jsxs)("div",{className:eF().leftColumn,children:[(0,a.jsx)(w,{inputs:s,onChange:e=>{i(t=>({...t,...e}))},assetPrice:t.currentPrice,currency:t.currency,historicalGrowth:t.divGrowth5Y}),(0,a.jsx)(Y,{period:s.period,growth:s.growth,priceGrowth:s.priceGrowth,shares:s.shares,price:t.currentPrice,dividend:t.divPerYearFWD,currency:t.currency,taxRate:s.taxRate,contributionEnabled:s.contributionEnabled,contribution:s.contribution}),(0,a.jsx)(eM,{asset:t}),(0,a.jsx)(eE,{asset:t,alternatives:t.alternatives}),(0,a.jsx)(eL,{asset:t})]}),(0,a.jsxs)("div",{className:eF().rightColumn,children:[(0,a.jsx)(P,{results:r,period:s.period,ticker:t.ticker}),(0,a.jsx)(eC,{asset:t})]})]})]})})}var eG=s(24322),eW=s.n(eG);let e$={"@context":"https://schema.org/","@type":"SoftwareApplication",operatingSystem:"Web",applicationCategory:"BusinessApplication",aggregateRating:{"@type":"AggregateRating",ratingValue:4.8,ratingCount:4600}};function eK(e){let{data:t}=e;return(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({...e$,...t})}})}var eY=!0;function eQ(e){let{asset:t,slug:s}=e,{t:n}=(0,u.B)("calculator"),i=new Date().getFullYear(),r=n("META.TITLE",{ticker:t.ticker,year:i}),l=n("META.DESCRIPTION",{description:t.description,ticker:t.ticker,yield:t.divYieldFWD?t.divYieldFWD.toFixed(2):"0"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(eW(),{children:[(0,a.jsx)("title",{children:r}),(0,a.jsx)("meta",{name:"description",content:l},"description"),(0,a.jsx)("meta",{property:"og:title",content:r}
3,"ogtitle"),(0,a.jsx)("meta",{property:"og:description",content:l},"ogdescription"),(0,a.jsx)("meta",{property:"og:type",content:"website"},"ogtype"),(0,a.jsx)("link",{rel:"canonical",href:`https://snowball-income.com/calculator/dividend/${s}`},"canonical"),(0,a.jsx)(eK,{data:{name:`${t.ticker} Dividend Calculator`,offers:{"@type":"Offer",price:0,priceCurrency:"USD"}}})]}),(0,a.jsx)(eB,{asset:t})]})}eQ.getLayout=function(e){return(0,a.jsx)(i.s,{children:e})};let eV=eQ},40048:e=>{e.exports={title:"DividendHealthCards_title___S1LO",cards:"DividendHealthCards_cards__jtaly"}},40945:(e,t,s)=>{"use strict";s.d(t,{b:()=>el});var a=s(26514),n=s(46225),i=s(62936),r=s.n(i),l=s(75834),o=s(80966),c=s(93760),d=s(59757),u=s(95990),m=s(30377),h=s(47115),p=s(55285),x=s(83308),g=s(33807),C=s(18150),f=s(75877),A=s(65119),N=s(73367),_=s(30985),b=s(61139),j=s(54253),v=s(43765),T=s(28100);let E=[{lang:"ru",name:"Ð ÑÑÑкий",flag:(0,j.oK)("/media/svg/flags/248-russia.svg")},{lang:"en",name:"English",flag:(0,j.oK)("/media/svg/flags/226-united-states.svg")}];function S(){let e=(0,d.wA)(),{i18n:t}=(0,c.B)("layout"),s=t.language,n=E.find(e=>e.lang===s);return(0,a.jsxs)(_.A,{drop:"down",alignRight:!0,children:[(0,a.jsx)(_.A.Toggle,{as:v.rI,id:"dropdown-toggle-my-cart",children:(0,a.jsx)("div",{className:"btn btn-icon btn-clean btn-dropdown btn-lg mr-1",children:(0,a.jsx)("img",{className:"h-20px w-20px rounded",src:n?.flag,alt:n?.name})})}),(0,a.jsx)(_.A.Menu,{className:"p-0 m-0 dropdown-menu-right dropdown-menu-anim dropdown-menu-top-unround",children:(0,a.jsx)("ul",{className:"navi navi-hover py-4",children:E.map(s=>(0,a.jsx)("li",{className:(0,N.A)("navi-item",{active:s.lang===n?.lang}),children:(0,a.jsxs)("div",{onClick:()=>{var a;return a=s.lang,void((0,T.lY)(a,(0,p.Q_)(a),!0),t.changeLanguage(a),setTimeout(()=>{e({type:b.QN.UserRequested})},200))},className:"navi-link",style:{cursor:"pointer"},children:[(0,a.jsx)("span",{className:"symbol symbol-20 mr-3",children:(0,a.jsx)("img",{src:s.flag,alt:s.name})}),(0,a.jsx)("span",{className:`navi-text ${s.lang===n?.lang&&"text-primary"}`,children:s.name})]})},s.lang))})})]})}var I=s(9610),y=s.n(I),R=s(96456),L=s.n(R),w=s(51065),O=s.n(w),k=s(96210),D=s(78693);let P=["/dashboard","/stats","/assets","/transactions","/div-calendar","/my-goal","/cash","/portfolio","/corporate-actions","/rebalancing","/findthedip","/import-transactions","/import-transactions-history"];var M=s(66073),U=s(66243),H=s(4469),F=s(3163),B=s(77938),G=s.n(B);function W(e){let{view:t}=e,s=(0,x.Mw)(),i=(0,n.useRouter)(),{t:r}=(0,c.B)("layout"),u=(0,d.wA)(),{savePortfolioOrder:m,items:h,isLoading:g}=(0,U.J)(),{currentPortfolio:C}=(0,d.d4)(e=>{let{app:t}=e;return t}),{user:f}=(0,d.d4)(e=>{let{auth:t}=e;return t}),[A,N]=(0,l.useState)(""),b=(0,l.useMemo)(()=>y()(h,e=>{let{name:t}=e;return t.toLowerCase().indexOf(A.toLowerCase())>=0}),[A,h]),j=e=>{u((0,F.Sq)(e));let t=(0,H.Gu)(`portfolio-currency-${e.id}`).code||e.defaultCurrency;u((0,F.MN)(t))};if((0,l.useEffect)(()=>{if(void 0!==h&&!g){var e;!h.length&&(e=i.route)&&P.indexOf(e)>=0&&"/new-portfolio"!==i.route&&i.push("/new-portfolio")}},[h]),(0,l.useEffect)(()=>{if(h&&!h.length||void 0===h||g)return;let e=h.find(e=>(C?.userId===f.id||(0,p.E8)())&&e.id===C?.id);e&&(e.isAutoSyncEnabled!==C?.isAutoSyncEnabled||e.trackCashType!==C?.trackCashType||e.syncProvider!==C?.syncProvider||e.syncParam!==C?.syncParam||e.broker!==C?.broker)&&j(e),e||j(h[0])},[h,C,g]),!C)return null;let v=o.Fr||b.length<2;return(0,a.jsx)(_.A,{id:"portfolio-selector",drop:"down",className:"topbar-dropdown",alignRight:!0,autoClose:"outside",children:(0,a.jsxs)("div",{className:"topbar-item",children:[(0,a.jsx)(_.A.Toggle,{title:r("MENU.PORTFOLIO_SELECTOR"),id:"dropdown-toggle-top2",variant:"transparent",className:`btn w-auto btn-dark-50 btn-sm font-weight-bold p-2 ${"mobile"===t?"exclude-dropdown-toggle btn-icon":""}`,children:"mobile"===t?(0,a.jsx)("span",{className:"symbol symbol-25 symbol-light",children:(0,a.jsx)("span",{className:"symbol-label",children:(0,D.Tb)(C,C.broker)})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"broker-symbol mr-2",children:(0,D.Tb)(C,C.broker)}),(0,a.jsx)("span",{className:"top-dropdown-item",children:C.name})]})}),(0,a.jsx)(_.A.Menu,{className:"dropdown-menu dropdown-menu-md dropdown-menu-right",children:(0,a.jsxs)("div",{className:"dropdown-menu-wrapper",children:[h?.length>=8&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{value:A,onChange:e=>{N(e.target.value)},type:"text",placeholder:r("SEARCH_PLACEHOLDER",{ns:"common"}
3),className:"form-control form-control-sm search-input",name:"search-currency"}),(0,a.jsx)("hr",{className:"py-1 my-0"})]}),(0,a.jsxs)("ul",{className:`navi navi-hover ${G().navi}`,children:[(0,a.jsx)("li",{id:"portfolio-selector-menu",className:G().portfolioList,children:(0,a.jsx)(O(),{options:{wheelPropagation:!1},style:{maxHeight:"60vh",flex:"1",WebkitOverflowScrolling:"touch"},className:`${!s.isRunning?"scroll scroll-dnd-fix":""} ${G().scrollbar}`,children:(0,a.jsx)(M.b,{disableDragging:v,onDragEnd:m,usePortal:!0,items:b,droppableId:"portfolio-selector",draggableId:e=>{let{id:t}=e;return t},portalClassName:"navi",renderItem:(e,t,s)=>{let{isDragging:n}=s;return(0,a.jsx)("div",{className:"navi-item",style:{cursor:"pointer"},children:(0,a.jsx)(k.T,{disableDragging:v,component:_.A.Item,as:"div",className:`navi-link portfolio-select-item py-2 pr-2 ${e.id===C.id?"active":""}`,onClick:()=>j(e),isDragging:n,handleProps:{...t.dragHandleProps},children:(0,a.jsxs)("div",{className:"w-100 d-flex align-items-center justify-content-between",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center portfolio-selector-item",children:[(0,a.jsx)("span",{className:"symbol symbol-25 mr-1 symbol-light mr-2",children:(0,a.jsx)("span",{className:"symbol-label",children:(0,D.Tb)(e,e.broker??"Other")})}),(0,a.jsx)("span",{className:"navi-text top-dropdown-item",title:e.name,children:e.name})]}),(0,a.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation();var s=e.id;let a=`/manage-portfolios#edit-portfolio-${s}`;i.asPath.includes("/manage-portfolios")?window.location.href=a:i.push(a)},title:r("PORTFOLIO_SELECT.EDIT"),className:"btn btn-sm btn-icon btn-link-dark btn-link-hover-primary portfolio-edit-btn",children:(0,a.jsx)("i",{className:"fas fa-cog icon-md text-muted text-hover-primary"})})]})})})}})})}),(0,a.jsx)("li",{className:"navi-separator mt-3 opacity-70"}),(0,a.jsxs)("li",{className:"navi-footer",children:[(0,a.jsxs)(L(),{id:"portfolio-selector-add-portfolio",href:"/new-portfolio",className:"btn btn-light-primary font-weight-bold btn-sm mr-1",children:[(0,a.jsx)("i",{className:"fas fa-plus icon-sm text-primary text-hover-white"}),r("PORTFOLIO_SELECT.ADD_PORTFOLIO")]}),(0,a.jsxs)(L(),{id:"portfolio-selector-my-portfolios",href:"/manage-portfolios",className:"btn btn-light-primary font-weight-bold btn-sm",children:[(0,a.jsx)("i",{className:"fas fa-cog icon-sm text-primary text-hover-white"}),r("PORTFOLIO_SELECT.MY_PORTFOLIOS")]})]})]})]})})]})})}var $=s(61392),K=s(91114),Y=s.n(K),Q=s(60547),V=s(60608),z=s(23141),q=s(24138),J=s(33734),Z=s(83602),X=s(47894),ee=s(58726),et=s.n(ee);function es(){let{t:e}=(0,c.B)(["layout","common"]),{discount:t}=(0,X.rU)();return(0,a.jsx)(L(),{id:"topbar-subscribe",href:"/user-manage-subscription",className:`btn btn-sm font-weight-bold align-self-center bgi-no-repeat bgi-size-cover d-flex justify-content-center align-items-center ${t?"px-5":""} ${et().root}`,style:{background:"linear-gradient(var(--card-bg), var(--card-bg)) padding-box, linear-gradient(to right, var(--sb-primary), var(--sb-info)) border-box",border:"2px solid transparent",backgroundClip:"padding-box, border-box",height:t?44:38},children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("i",{className:"fas fa-gift text-dark"}),(0,a.jsxs)("div",{className:"text-left",children:[e("USER_TOGGLE.SUBSCRIBE")," ",(0,a.jsx)("div",{className:et().text,children:e("DISCOUNT",{ns:"common",value:100*t})})]})]}):(0,a.jsx)(a.Fragment,{children:e("USER_TOGGLE.SUBSCRIBE")})})}function ea(e){let{user:t}=(0,d.d4)(e=>e.auth),{isDark:s,toggleTheme:n}=(0,Z.DP)(),{t:i}=(0,c.B)(["layout","common"]);return(0,l.useEffect)(()=>{g.A.init("kt_quick_notifications")},[]),(0,a.jsx)(a.Fragment,{children:t&&(0,a.jsxs)(_.A,{drop:"down",id:"user-profile-dropdown",alignRight:!0,children:[(0,a.jsx)(_.A.Toggle,{as:v.rI,id:"dropdown-toggle-user-profile",children:(0,a.jsxs)("button",{type:"button",className:"btn btn-dark-50 btn-icon btn-sm position-relative p-0 ml-2",children:[(0,a.jsx)("span",{className:"svg-icon svg-icon-xl",children:(0,a.jsx)(Y(),{preProcessor:Q.xY,src:(0,j.oK)("/media/svg/icons/General/User.svg?v=1")})}),e.pendingNotifications>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:`notification-top-badge ${e.pendingNotifications>9&&"long-badge"}`,children:e.pendingNotifications>10?(0,a.jsx)(a.Fragment,{children:"9+"}):(0,a.jsx)(a.Fragment,{children:e.pendingNotifications})}),e.pendingNotifications>0&&(0,a.jsx)("span",{className:`notification-top-badge ${e.pendingNotifications>9&&"long-badge"}`,children:e.pendingNotifications>10?(0,a.jsx)(a.Fragment,{children:"9+"}):(0,a.jsx)(a.Fragment,{children:e.pendingNotifications})}),!1]})]})}),(0,a.jsx)(_.A.Menu,{className:"p-0 m-0 dropdown-menu-right dropdown-menu-anim dropdown-menu-top-unround dropdown-menu-lg",children:(0,a.jsxs)("div",{className:"dropdown-menu-wrapper",children:[(0,a.jsxs)("div",{className:"border-bottom pb-2",children:[(0,a.jsx)(L(),{href:"/user-profile",legacyBehavior:!0,children:(0,a.jsxs)("a",{className:"d-flex align-items-center justify-content-between flex-wrap px-8 pt-6 pb-2 roun
3ded-top",children:[(0,a.jsx)("div",{className:"symbol symbol-35 symbol-light mr-3",children:(0,a.jsx)("span",{className:"symbol-label text-primary font-weight-bold font-size-h4",children:(t.displayName||t.email)[0].toUpperCase()})}),(0,a.jsxs)("div",{className:"text-body m-0 flex-grow-1 mr-3",children:[(0,a.jsx)("div",{className:"font-size-lg font-weight-bold",children:t.displayName||t.email}),(0,a.jsx)("span",{className:"text-white",children:(0,a.jsx)("small",{children:function(e,t,s){let n=e?.subscriptionType;if(n==h.Qh.CANCELLED||n==h.Qh.EXPIRED)return(0,a.jsx)(L(),{href:"/user-manage-subscription",id:"user-subscription-expired",children:(0,a.jsx)("span",{children:(0,a.jsx)(V.A,{variant:"danger",className:"mb-2 mr-2",children:s("SUBSCRIPTION.EXPIRED",{ns:"common"})})})});if(n===h.Qh.TRIAL){let t=new Date(e?.expirationDate);return(0,a.jsx)(L(),{href:"/user-manage-subscription",id:"user-subscription-trial",children:(0,a.jsx)("span",{children:(0,a.jsx)(V.A,{variant:"info",className:"mb-2 mr-2",children:s("SUBSCRIPTION.TRIAL",{ns:"common",date:t})})})})}if(n===h.Qh.TIER_0||n===h.Qh.TIER_1_OLD||n===h.Qh.TIER_1||n===h.Qh.TIER_2||n===h.Qh.TIER_3)return(0,a.jsx)(L(),{href:"/user-manage-subscription",id:"user-subscription-main",children:(0,a.jsx)("span",{children:(0,a.jsx)(V.A,{variant:"success",className:"mb-2",children:(0,a.jsx)(z.x,{i18nKey:`user:${(0,q.gb)(n)}`})})})})}(t,0,i)})})]})]})}),o.Fr&&[h.Qh.CANCELLED,h.Qh.EXPIRED,h.Qh.TRIAL,h.Qh.TIER_0].includes(t?.subscriptionType)&&(0,a.jsx)("div",{className:"px-8 mt-2 mb-4",children:(0,a.jsx)(es,{})})]}),(0,a.jsx)(O(),{options:{wheelPropagation:!1,suppressScrollX:!0},className:"scroll",style:{maxHeight:o.Fr?"400px":"auto",position:"relative"},children:(0,a.jsxs)("div",{className:"navi navi-hover py-2",children:[(0,a.jsx)(L(),{href:"/user-profile",legacyBehavior:!0,children:(0,a.jsx)("a",{className:"navi-item",id:"user-profile-account",children:(0,a.jsx)("div",{className:"navi-link px-8",children:(0,a.jsx)("div",{className:"navi-text",children:(0,a.jsx)("div",{className:"font-weight-bold",children:i("USER_TOGGLE.ACCOUNT")})})})})}),(0,a.jsx)(L(),{href:"/user-profile#subscription",legacyBehavior:!0,children:(0,a.jsx)("a",{className:"navi-item",id:"user-profile-subscription",children:(0,a.jsx)("div",{className:"navi-link px-8",children:(0,a.jsx)("div",{className:"navi-text",children:(0,a.jsx)("div",{className:"font-weight-bold",children:i("USER_TOGGLE.SUBSCRIPTION")})})})})}),(0,a.jsx)("a",{id:"user-profile-notifications-link",className:"navi-item",href:void 0,onClick:()=>{if(g.A){let e=g.A.getOffcanvas();e&&(document.dispatchEvent(new MouseEvent("click")),e.show())}},children:(0,a.jsx)("div",{className:"navi-link px-8",children:(0,a.jsx)("div",{className:"navi-text",children:(0,a.jsxs)("div",{className:"font-weight-bold d-flex align-items-center",children:[i("USER_TOGGLE.NOTIFICATIONS"),e.pendingNotifications>0&&(0,a.jsx)("span",{className:"ml-2 badge badge-pill badge-danger notification-badge text-white d-inline",children:e.pendingNotifications})]})})})}),(0,p.de)()&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"navi-separator my-2"}),(0,a.jsx)(L(),{href:"/sync-accounts",legacyBehavior:!0,children:(0,a.jsx)("a",{className:"navi-item",children:(0,a.jsxs)("div",{className:"navi-link px-8",children:[(0,a.jsx)("div",{className:"navi-icon text-dark",children:(0,a.jsx)($.A,{})}),(0,a.jsx)("div",{className:"navi-text",children:(0,a.jsx)("div",{className:"font-weight-bold",children:i("USER_TOGGLE.MANAGE_BROKERAGE_ACCOUNTS")})})]})})})]}),(0,a.jsx)("div",{className:"navi-separator my-2"}),"mobile"!=e.view&&(0,a.jsx)("a",{id:"user-profile-help",className:"navi-item",href:i("HELP.LINK"),target:"_blank",rel:"noreferrer",children:(0,a.jsx)("div",{className:"navi-link px-8",children:(0,a.jsx)("div",{className:"navi-text",children:(0,a.jsx)("div",{className:"font-weight-bold",children:i("USER_TOGGLE.HELP")})})})}),"mobile"==e.view&&(0,a.jsx)(L(),{href:"/mobile-about",legacyBehavior:!0,children:(0,a.jsx)("a",{className:"navi-item",children:(0,a.jsx)("div",{className:"navi-link px-8",children:(0,a.jsx)("div",{className:"navi-text",children:(0,a.jsx)("div",{className:"font-weight-bold",children:i("USER_TOGGLE.HELP")})})})})}),(0,a.jsx)("a",{id:"user-profile-changelog",className:"navi-item",href:"https://ru.help.snowball-income.com/changelog",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("div",{className:"navi-link px-8",children:(0,a.jsx)("div",{className:"navi-text",children:(0,a.jsx)("div",{className:"font-weight-bold",children:i("USER_TOGGLE.CHANGELOG")})})})}),(0,a.jsx)("div",{className:"navi-separator my-2"}),(0,a.jsx)(L(),{href:"/user-profile#display-settings",legacyBehavior:!0,children:(0,a.jsx)("a",{className:"navi-item",id:"user-profile-appearance",children:(0,a.jsx)("div",{className:"navi-link px-8",children:(0,a.jsx)("div",{className:"navi-text",children:(0,a.jsx)("div",{className:"font-weight-bold",children:i("USER_TOGGLE.DISPLAY_SETTINGS")})})})})}),o.Fr&&(0,a.jsx)("div",{className:"navi-item px-8 pt-2 pb-2",children:(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,a.jsx)("label",{className:"mb-0 font-weight-bold",children:i("DISPLAY_CURRENCY")}),(0,a.jsx)(A.J,{})]})}),(0,a.jsx)("div",{className:"navi-item px-8 pt-2 pb-2",children:(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,a.jsx)("label",{className:"mb-0 font-weight-bold",children:i("DARK_MODE")}),(0,a.jsx)(J.A,{isDark:s,onChange:n})]})}),(0,p.de)()&&(0,a.jsx)("a",{id:"user-profile-cookies",className:"navi-item",href:void 0,onClick:()=>{let e=document.getElementById("cookiescript_badge");e&&e.click()},children:(0,a.jsx)("div",{className:"navi-link px-8",children:(0,a.jsx)("div",{className:"navi-text",children:(0,a.jsxs)("div",{className:"font-weight-bold",children:[i("COOKIE_SETTINGS")," \uD83C\uDF6A"]})})})}),"mobile"==e.view&&(0,a.jsxs)(a.Fragment,{children:[(0,p.de)()&&(0,a.jsxs)("div",{className:"px-6 mt-2 row align-items-center",children:[o.un&&(0,a.jsx)("div",{className:"col-auto mb-2",children:(0,a.jsx)("a",{href:"https://apps.apple.com/us/app/snowball-analytics/id6463484375?ign-itscg=30200&ign-itsct=apps_box_link",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{src:"/media/app/appstore-analytics.svg",height:40,alt:"Download Snowball Analytics on App Store"})})}),!o.un&&(0,a.jsx)("div",{className:"col-auto mb-2",children:(0,a.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.snowballanalytics",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{src:"/media/app/google-play-analytics.svg",height:40,alt:"Download Snowball Analytics on Google Play"})})})]}),!(0,p.de)()&&(0,a.jsxs)("div",{className:"px-6 mt-2 row align-items-center",children:[o.un&&(0,a.jsx)("div",{className:"col-auto mb-2",children:(0,a.jsx)("a",{href:"https://apps.apple.com/ru/app/snowball-income/id6462722689?ign-itscg=30200&ign-itsct=apps_box_link",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{src:"/media/app/appstore-income.svg",height:40,alt:"СкаÑаÑÑ Ð¿Ñиложение Snowball Income в App Store"})})}),!o.un&&(0,a.jsx)("div",{className:"col-auto mb-2 pt-1",children:(0,a.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.snowballincome",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{src:"/media/app/google-play-income.svg",height:40,alt:"СкаÑаÑÑ Ð¿Ñиложение Snowball Income в Google Play"})})}),!o.un&&(0,a.jsx)("div",{className:"col-auto mb-2 pt-1",children:(0,a.jsx)("a",{href:"https://www.rustore.ru/catalog/app/com.snowballincome",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{src:"/media/app/rustore-income.svg",height:40,alt:"СкаÑаÑÑ Ð¿Ñиложение Snowball Income в RuStore"})})})]})]}),(0,a.jsx)("div",{className:"navi-separator my-2"}),(0,a.jsx)(L(),{href:"/logout",legacyBehavior:!0,children:(0,a.jsx)("a",{className:"navi-item",id:"user-profile-logout",children:(0,a.jsx)("div",{className:"navi-link px-8",children:(0,a.jsx)("div",{className:"navi-text",children:(0,a.jsx)("div",{className:"font-weight-bold",children:i("USER_TOGGLE.SIGN_OUT")})})})})})]})})]})})]})})}function en(e){let t=(0,C.SL)(),s=(0,l.useMemo)(()=>({offcanvas:"offcanvas"===r().get(t.config,"extras.user.layout")}),[t]);return(0,a.jsx)(a.Fragment,{children:!s.offcanvas&&(0,a.jsx)(ea,{pendingNotifications:e.pendingNotifications,view:e.view})})}var ei=s(77232),er=s(62400);function el(e){let t=(0,C.SL)(),s=(0,x.Mw)(),i=(0,n.useRouter)(),{t:N}=(0,c.B)("layout"),{user:_}=(0,d.d4)(e=>e.auth),{currentPortfolio:b}=(0,d.d4)(e=>{let{app:t}=e;return{currentPortfolio:t.currentPortfolio}}),{portfolios:j,isAiChatBtnAnimated:v}=(0,d.d4)(e=>{let{ui:t}=e;return{portfolios:t.portfolios??null,isAiChatBtnAnimated:t.isAiChatBtnAnimated??!1}}),T=(0,l.useMemo)(()=>({viewSearchDisplay:r().get(t.config,"extras.search.display"),viewNotificationsDisplay:r().get(t.config,"extras.notifications.display"),viewQuickActionsDisplay:r().get(t.config,"extras.quick-actions.display"),viewCartDisplay:r().get(t.config,"extras.cart.dis
3play"),viewQuickPanelDisplay:r().get(t.config,"extras.quick-panel.display"),viewLanguagesDisplay:r().get(t.config,"extras.languages.display"),viewUserDisplay:r().get(t.config,"extras.user.display")}),[t]),E=_?.onboardingState==="completed";return(0,a.jsxs)("div",{className:"mobile"!==e.view?"topbar":"d-flex align-items-center",children:[E&&b&&_?.showAIChat&&(0,a.jsx)("div",{className:"d-flex align-items-center mr-3",children:(0,a.jsx)(m.zP,{id:"mobile"===e.view||o.Fr?"ai-chat-start-button-mobile":"ai-chat-start-button",allowGuide:"mobile"!==e.view&&!o.Fr,isAnimated:v})}),"mobile"!==e.view&&E&&(0,a.jsx)(f.l8,{id:"add-selector",includeSync:!s.isStarted,view:e.view,currentPortfolio:b,type:f.jC}),(0,a.jsx)(er.l,{isNewPage:!0}),(0,a.jsx)(ei.qS,{id:"topbar-watchlist",title:N("MENU.WATCHLIST"),onClick:()=>{i.push("/watchlists")},showPulse:!1,icon:(0,a.jsx)(u.A,{})}),"mobile"===e.view&&E&&(0,a.jsx)(f.l8,{id:"add-selector-mobile",includeSync:!0,view:e.view,currentPortfolio:b,type:f.qw}),E&&(0,a.jsx)(W,{view:e.view,portfolios:j,currentPortfolio:b}),E&&"mobile"!==e.view&&(0,a.jsx)(A.J,{view:e.view}),_?.canChangeLanguage&&(0,a.jsx)(S,{}),T.viewUserDisplay&&!(0,p.E8)()&&(0,a.jsx)(en,{pendingNotifications:e.pendingNotifications,view:e.view}),(0,p.E8)()&&(0,a.jsxs)("button",{type:"button",className:"btn btn-icon btn-clean btn-sm ml-2 position-relative",style:{alignSelf:"center"},onClick:()=>{if(g.A){let e=g.A.getOffcanvas();e&&(document.dispatchEvent(new MouseEvent("click")),e.show())}},children:[e.pendingNotifications>0&&(0,a.jsx)("span",{className:`notification-top-badge ${e.pendingNotifications>9&&"long-badge"}`,children:e.pendingNotifications>10?(0,a.jsx)(a.Fragment,{children:"9+"}):(0,a.jsx)(a.Fragment,{children:e.pendingNotifications})}),(0,a.jsx)("i",{className:`flaticon-bell icon-lg ${e.pendingNotifications>0?"text-primary":""}`})]}),E&&!o.Fr&&[h.Qh.CANCELLED,h.Qh.EXPIRED,h.Qh.TRIAL,h.Qh.TIER_0].includes(_?.subscriptionType)&&!(0,p.E8)()&&(0,a.jsx)("div",{className:"d-flex align-items-center ml-2",id:"topbar-subscribe",children:(0,a.jsx)(es,{discount:20})})]})}},43765:(e,t,s)=>{"use strict";s.d(t,{K$:()=>n,rI:()=>i});var a=s(26514);function n(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("ul",{className:"navi navi-hover",children:[(0,a.jsxs)("li",{className:"navi-header font-weight-bold py-5",children:[(0,a.jsx)("span",{className:"font-size-lg",children:"Choose Label:"}),(0,a.jsx)("i",{className:"flaticon2-information icon-md text-muted","data-toggle":"tooltip","data-placement":"right",title:"Click to learn more..."})]}),(0,a.jsx)("li",{className:"navi-separator mb-3 opacity-70"}),(0,a.jsx)("li",{className:"navi-item",children:(0,a.jsx)("a",{href:"#",className:"navi-link",children:(0,a.jsx)("span",{className:"navi-text",children:(0,a.jsx)("span",{className:"label label-xl label-inline label-light-success",children:"Customer"})})})}),(0,a.jsx)("li",{className:"navi-item",children:(0,a.jsx)("a",{href:"#",className:"navi-link",children:(0,a.jsx)("span",{className:"navi-text",children:(0,a.jsx)("span",{className:"label label-xl label-inline label-light-danger",children:"Partner"})})})}),(0,a.jsx)("li",{className:"navi-item",children:(0,a.jsx)("a",{href:"#",className:"navi-link",children:(0,a.jsx)("span",{className:"navi-text",children:(0,a.jsx)("span",{className:"label label-xl label-inline label-light-warning",children:"Suplier"})})})}),(0,a.jsx)("li",{className:"navi-item",children:(0,a.jsx)("a",{href:"#",className:"navi-link",children:(0,a.jsx)("span",{className:"navi-text",children:(0,a.jsx)("span",{className:"label label-xl label-inline label-light-primary",children:"Member"})})})}),(0,a.jsx)("li",{className:"navi-item",children:(0,a.jsx)("a",{href:"#",className:"navi-link",children:(0,a.jsx)("span",{className:"navi-text",children:(0,a.jsx)("span",{className:"label label-xl label-inline label-light-dark",children:"Staff"})})})}),(0,a.jsx)("li",{className:"navi-separator mt-3 opacity-70"}),(0,a.jsx)("li",{className:"navi-footer pt-5 pb-4",children:(0,a.jsxs)("a",{className:"btn btn-clean font-weight-bold btn-sm",href:"#",children:[(0,a.jsx)("i",{className:"ki ki-plus icon-sm"}),"Add new"]})})]})})}let i=s(75834).forwardRef((e,t)=>
3(0,a.jsx)("div",{ref:t,className:"topbar-item",onClick:t=>{t.preventDefault(),e.onClick(t)},children:e.children}));i.displayName="DropdownTopbarItemToggler"},47368:e=>{e.exports={title:"CalculatorInputs_title__pqDCu",sliderHeader:"CalculatorInputs_sliderHeader__mbqsT",presets:"CalculatorInputs_presets__b9sjq",presetBtn:"CalculatorInputs_presetBtn__N0sr9",toggleRow:"CalculatorInputs_toggleRow__I3iH6",toggleCard:"CalculatorInputs_toggleCard__huPJq",toggleTitle:"CalculatorInputs_toggleTitle__kYx6Z",toggleSubtitle:"CalculatorInputs_toggleSubtitle__lzS1E",qualifiedToggle:"CalculatorInputs_qualifiedToggle__0saMW"}},50062:(e,t,s)=>{"use strict";s.d(t,{HI:()=>n,Zu:()=>i});var a=s(47115);s(21069);var n=function(e){return e.COMMON="common",e.DIVS="dividend-history",e.FINANCIALS="financials",e.NEWS="news",e.COMMUNITY="community",e.FUND_DATA="fund-data",e}({});function i(e,t){let s=t.type??t.assetType;return(e!==n.DIVS||!![a.PW.BOND,a.PW.STOCK,a.PW.ETF].includes(s))&&(e!==n.FUND_DATA||s===a.PW.ETF)&&(e!==n.FINANCIALS||s===a.PW.STOCK)&&(e!==n.NEWS||"MCX"!==t.exchange)}},50374:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/calculator/dividend/[slug]",function(){return s(37656)}])},50514:(e,t,s)=>{"use strict";s.d(t,{Eh:()=>i,Nb:()=>A,Nr:()=>n,Pt:()=>m,Qp:()=>c,RO:()=>l,Ze:()=>x,c1:()=>h,gi:()=>g,lc:()=>p,mL:()=>C,qU:()=>d,rW:()=>r,sj:()=>f,yE:()=>o,z5:()=>u});var a=s(26514);function n(){return(0,a.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M13.7812 7.75C13.7812 11.4961 10.7188 14.5312 7 14.5312C3.25391 14.5312 0.21875 11.4961 0.21875 7.75C0.21875 4.03125 3.25391 0.96875 7 0.96875C10.7188 0.96875 13.7812 4.03125 13.7812 7.75ZM6.20703 11.3594L11.2383 6.32812C11.4023 6.16406 11.4023 5.86328 11.2383 5.69922L10.6094 5.09766C10.4453 4.90625 10.1719 4.90625 10.0078 5.09766L5.90625 9.19922L3.96484 7.28516C3.80078 7.09375 3.52734 7.09375 3.36328 7.28516L2.73438 7.88672C2.57031 8.05078 2.57031 8.35156 2.73438 8.51562L5.57812 11.3594C5.74219 11.5234 6.04297 11.5234 6.20703 11.3594Z",fill:"#3699FF"})})}function i(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:(0,a.jsx)("path",{d:"M8 8H8.01M14 14H14.01M15 7L7 15M16.9012 3.99851C17.1071 4.49653 17.5024 4.8924 18.0001 5.09907L19.7452 5.82198C20.2433 6.02828 20.639 6.42399 20.8453 6.92206C21.0516 7.42012 21.0516 7.97974 20.8453 8.47781L20.1229 10.2218C19.9165 10.7201 19.9162 11.2803 20.1236 11.7783L20.8447 13.5218C20.9469 13.7685 20.9996 14.0329 20.9996 14.2999C20.9997 14.567 20.9471 14.8314 20.8449 15.0781C20.7427 15.3249 20.5929 15.549 20.4041 15.7378C20.2152 15.9266 19.991 16.0764 19.7443 16.1785L18.0004 16.9009C17.5023 17.1068 17.1065 17.5021 16.8998 17.9998L16.1769 19.745C15.9706 20.2431 15.575 20.6388 15.0769 20.8451C14.5789 21.0514 14.0193 21.0514 13.5212 20.8451L11.7773 20.1227C11.2792 19.9169 10.7198 19.9173 10.2221 20.1239L8.47689 20.8458C7.97912 21.0516 7.42001 21.0514 6.92237 20.8453C6.42473 20.6391 6.02925 20.2439 5.82281 19.7464L5.09972 18.0006C4.8938 17.5026 4.49854 17.1067 4.00085 16.9L2.25566 16.1771C1.75783 15.9709 1.36226 15.5754 1.15588 15.0777C0.949508 14.5799 0.949228 14.0205 1.1551 13.5225L1.87746 11.7786C2.08325 11.2805 2.08283 10.7211 1.8763 10.2233L1.15497 8.47678C1.0527 8.2301 1.00004 7.96568 1 7.69863C0.999957 7.43159 1.05253 7.16715 1.15472 6.92043C1.25691 6.67372 1.40671 6.44955 1.59557 6.26075C1.78442 6.07195 2.00862 5.92222 2.25537 5.8201L3.9993 5.09772C4.49687 4.89197 4.89248 4.4972 5.0993 4.00006L5.82218 2.25481C6.02848 1.75674 6.42418 1.36103 6.92222 1.15473C7.42027 0.948424 7.97987 0.948424 8.47792 1.15473L10.2218 1.87712C10.7199 2.08291 11.2793 2.08249 11.7771 1.87595L13.523 1.15585C14.021 0.94966 14.5804 0.949702 15.0784 1.15597C15.5763 1.36223 15.972 1.75783 16.1783 2.25576L16.9014 4.00153L16.9012 3.99851ZM8.5 8C8.5 8.27614 8.27614 8.5 8 8.5C7.72386 8.5 7.5 8.27614 7.5 8C7.5 7.72386 7.72386 7.5 8 7.5C8.27614 7.5 8.5 7.72386 8.5 8ZM14.5 14C14.5 14.2761 14.2761 14.5 14 14.5C13.7239 14.5 13.5 14.2761 13.5 14C13.5 13.7239 13.7239 13.5 14 13.5C14.2761 13.5 14.5 13.7239 14.5 14Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function r(){return(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8307 1.02994C12.8492 1.03168 12.8655 1.03323 12.8795 1.03435C14.0229 1.12602 15.1468 1.39614 16.2099 1.83649C17.5445 2.3893 18.7571 3.19955 19.7786 4.221C20.8 5.24244 21.6103
36.45507 22.1631 7.78965C22.6034 8.85276 22.8736 9.97667 22.9652 11.1201C22.9663 11.1341 22.9679 11.1504 22.9696 11.1689C22.9869 11.3512 23.0237 11.7405 22.8633 12.1043C22.7311 12.4042 22.492 12.6632 22.2037 12.819C21.9836 12.9378 21.7723 12.9736 21.6166 12.9876C21.487 12.9993 21.3415 12.9992 21.2242 12.9992C21.2161 12.9992 21.2082 12.9992 21.2004 12.9992H12.8004C12.7928 12.9992 12.7851 12.9992 12.7773 12.9992C12.6582 12.9992 12.5159 12.9993 12.3906 12.989C12.2454 12.9772 12.0374 12.9467 11.8194 12.8357C11.5372 12.6919 11.3077 12.4624 11.1639 12.1802C11.0528 11.9622 11.0224 11.7542 11.0105 11.609C11.0003 11.4837 11.0004 11.3414 11.0004 11.2223C11.0004 11.2145 11.0004 11.2068 11.0004 11.1992V2.79917C11.0004 2.79139 11.0004 2.78347 11.0004 2.77541C11.0003 2.65811 11.0003 2.51261 11.0119 2.38296C11.026 2.22723 11.0618 2.01595 11.1806 1.79591C11.3364 1.50756 11.5954 1.26845 11.8953 1.13624C12.2591 0.975846 12.6483 1.01268 12.8307 1.02994ZM13.0004 3.0549V10.9992H20.9447C20.8509 10.1606 20.6395 9.33766 20.3153 8.55502C19.863 7.46309 19.2001 6.47094 18.3644 5.63521C17.5286 4.79948 16.5365 4.13655 15.4446 3.68425C14.6619 3.36007 13.839 3.14865 13.0004 3.0549ZM8.91694 2.42921C9.13783 2.9354 8.90655 3.52481 8.40036 3.7457C7.05296 4.33369 5.8701 5.24279 4.9552 6.39353C4.04031 7.54427 3.42123 8.90161 3.1521 10.3469C2.88297 11.7921 2.97197 13.2813 3.41133 14.6843C3.8507 16.0872 4.62704 17.3611 5.67248 18.3947C6.71793 19.4283 8.00065 20.19 9.40849 20.6133C10.8163 21.0366 12.3065 21.1086 13.7486 20.823C15.1907 20.5374 16.5408 19.9028 17.6811 18.9749C18.8213 18.0469 19.7168 16.8537 20.2894 15.4997C20.5045 14.991 21.0912 14.753 21.5999 14.9681C22.1085 15.1832 22.3465 15.77 22.1314 16.2786C21.4316 17.9336 20.3371 19.3919 18.9435 20.5261C17.5499 21.6603 15.8997 22.4358 14.1371 22.7849C12.3746 23.134 10.5533 23.046 8.8326 22.5286C7.1119 22.0112 5.54413 21.0802 4.26637 19.817C2.9886 18.5537 2.03974 16.9967 1.50274 15.282C0.965745 13.5673 0.856961 11.7472 1.1859 9.98073C1.51484 8.2143 2.27149 6.55533 3.38969 5.14887C4.5079 3.74241 5.95361 2.63129 7.60044 1.91264C8.10663 1.69175 8.69604 1.92302 8.91694 2.42921Z",fill:"currentColor"})})}function l(){return(0,a.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 4.5C12.5523 4.5 13 4.94772 13 5.5V6H13.1667C15.0076 6 16.5 7.49238 16.5 9.33333C16.5 9.88562 16.0523 10.3333 15.5 10.3333C14.9477 10.3333 14.5 9.88562 14.5 9.33333C14.5 8.59695 13.903 8 13.1667 8H11C10.1716 8 9.5 8.67157 9.5 9.5C9.5 10.3284 10.1716 11 11 11H13C14.933 11 16.5 12.567 16.5 14.5C16.5 16.433 14.933 18 13 18V18.5C13 19.0523 12.5523 19.5 12 19.5C11.4477 19.5 11 19.0523 11 18.5V18H10.8333C8.99238 18 7.5 16.5076 7.5 14.6667C7.5 14.1144 7.94772 13.6667 8.5 13.6667C9.05228 13.6667 9.5 14.1144 9.5 14.6667C9.5 15.403 10.097 16 10.8333 16H13C13.8284 16 14.5 15.3284 14.5 14.5C14.5 13.6716 13.8284 13 13 13H11C9.067 13 7.5 11.433 7.5 9.5C7.5 7.567 9.067 6 11 6V5.5C11 4.94772 11.4477 4.5 12 4.5Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M21.6289 21.3789L2.62891 2.37891",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function o(){return(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74818C22 6.28937 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28937 22 5.74818 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C2.01607 17.9076 2.00584 17.5136 2.00212 17.0653C1.9996 17.0265 1.99933 16.9877 2.0013 16.9489C1.99999 16.7261 2 16.4905 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74818C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74818 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM4.00694 17.4073C4.01219 17.668 4.0214 17.8913 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9625C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9625C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9625 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9625 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V14.5858L6.72721 11.8586C6.73259 11.8532 6.73804 11.8477 6.74357 11.8422C6.82776 11.758 6.92831 11.6573 7.02417 11.576C7.13524 11.4817 7.30384 11.3561 7.53648 11.2805C7.83774 11.1826 8.16226 11.
31826 8.46353 11.2805C8.69616 11.3561 8.86476 11.4817 8.97583 11.576C9.07169 11.6573 9.17225 11.758 9.25644 11.8422C9.26197 11.8477 9.26742 11.8532 9.27279 11.8586L11 13.5858L14.5858 10H13C12.4477 10 12 9.55229 12 9C12 8.44772 12.4477 8 13 8H17C17.5523 8 18 8.44772 18 9V13C18 13.5523 17.5523 14 17 14C16.4477 14 16 13.5523 16 13V11.4142L12.2728 15.1414C12.2674 15.1468 12.262 15.1523 12.2564 15.1578C12.1722 15.242 12.0717 15.3427 11.9758 15.4241C11.8648 15.5183 11.6962 15.6439 11.4635 15.7195C11.1623 15.8174 10.8377 15.8174 10.5365 15.7195C10.3038 15.6439 10.1352 15.5183 10.0242 15.4241C9.92832 15.3427 9.82777 15.2421 9.74357 15.1578C9.73804 15.1523 9.73259 15.1468 9.72721 15.1414L8 13.4142L4.00694 17.4073Z",fill:"currentColor"})})}function c(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("rect",{id:"bound",x:"0",y:"0",width:"24",height:"24"}),(0,a.jsx)("path",{d:"M6,9 L6,15 C6,16.6568542 7.34314575,18 9,18 L15,18 L15,18.8181818 C15,20.2324881 14.2324881,21 12.8181818,21 L5.18181818,21 C3.76751186,21 3,20.2324881 3,18.8181818 L3,11.1818182 C3,9.76751186 3.76751186,9 5.18181818,9 L6,9 Z",fill:"currentColor",fillRule:"nonzero"}),(0,a.jsx)("path",{d:"M10.1818182,4 L17.8181818,4 C19.2324881,4 20,4.76751186 20,6.18181818 L20,13.8181818 C20,15.2324881 19.2324881,16 17.8181818,16 L10.1818182,16 C8.76751186,16 8,15.2324881 8,13.8181818 L8,6.18181818 C8,4.76751186 8.76751186,4 10.1818182,4 Z",fill:"currentColor",opacity:"0.3"})]})})}function d(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"24",height:"24"}),(0,a.jsx)("path",{d:"M8,17.9148182 L8,5.96685884 C8,5.56391781 8.16211443,5.17792052 8.44982609,4.89581508 L10.965708,2.42895648 C11.5426798,1.86322723 12.4640974,1.85620921 13.0496196,2.41308426 L15.5337377,4.77566479 C15.8314604,5.0588212 16,5.45170806 16,5.86258077 L16,17.9148182 C16,18.7432453 15.3284271,19.4148182 14.5,19.4148182 L9.5,19.4148182 C8.67157288,19.4148182 8,18.7432453 8,17.9148182 Z",fill:"currentColor",fillRule:"nonzero",transform:"translate(12.000000, 10.707409) rotate(-135.000000) translate(-12.000000, -10.707409) "}),(0,a.jsx)("rect",{fill:"currentColor",opacity:"0.3",x:"5",y:"20",width:"15",height:"2",rx:"1"})]})})}function u(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"24",height:"24"}),(0,a.jsx)("rect",{fill:"currentColor",opacity:"0.3",transform:"translate(12.000000, 7.000000) rotate(-180.000000) translate(-12.000000, -7.000000) ",x:"11",y:"1",width:"2",height:"12",rx:"1"}),(0,a.jsx)("path",{d:"M17,8 C16.4477153,8 16,7.55228475 16,7 C16,6.44771525 16.4477153,6 17,6 L18,6 C20.209139,6 22,7.790861 22,10 L22,18 C22,20.209139 20.209139,22 18,22 L6,22 C3.790861,22 2,20.209139 2,18 L2,9.99305689 C2,7.7839179 3.790861,5.99305689 6,5.99305689 L7.00000482,5.99305689 C7.55228957,5.99305689 8.00000482,6.44077214 8.00000482,6.99305689 C8.00000482,7.54534164 7.55228957,7.99305689 7.00000482,7.99305689 L6,7.99305689 C4.8954305,7.99305689 4,8.88848739 4,9.99305689 L4,18 C4,19.1045695 4.8954305,20 6,20 L18,20 C19.1045695,20 20,19.1045695 20,18 L20,10 C20,8.8954305 19.1045695,8 18,8 L17,8 Z",fill:"currentColor",fillRule:"nonzero",opacity:"0.3"}),(0,a.jsx)("path",{d:"M14.2928932,10.2928932 C14.6834175,9.90236893 15.3165825,9.90236893 15.7071068,10.2928932 C16.0976311,10.6834175 16.0976311,11.3165825 15.7071068,11.7071068 L12.7071068,14.7071068 C12.3165825,15.0976311 11.6834175,15.0976311 11.2928932,14.7071068 L8.29289322,11.7071068 C7.90236893,11.3165825 7.90236893,10.6834175 8.29289322,10.2928932 C8.68341751,9.90236893 9.31658249,9.90236893 9.70710678,10.2928932 L12,12.5857864 L14.2928932,10.2928932 Z",fill:"currentColor",fillRule:"nonzero"})]})})}function m(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"24",height:"24"}),(0,a.jsx)("path",{d:"M12.4644661,14.5355339 L9.46446609,14.5355339 C8.91218134,14.5355339 8.46446609,14.9832492 8.46446609,15.5355339 C8.46446609,16.0878187 8.91218134,16.5355339 9.46446609,16.5355339 L12.4644661,16.5355339 L12.4644661,17.5355339 C12.4644661,18.6401034 11.5690356,19.5355339 10.4644661,19.5355339 L6.46446609,19.5355339 C5.35989659,19.5355339 4.46446609,18.6401034 4.46446609,17.5355339 L4.46446609,13.5355339 C4.46446609,12.4309644 5.35989659,11.5355339 6.46446609,11.5355339 L10.4644661,11.5355339 C11.5690356,11.5355339 12.4644661,12.4309644 12.4644661,13.5355339 L12.4644661,14.5355339 Z",fill:"currentColor",opacity:"0.3",transform:"translate(8.464466, 15.535534) rotate(-45.000000) translate(-8.464466, -15.535534) "}),(0,a.jsx)("path",{d:"M11.5355339,9.46446609 L14.5355339,9.46446609 C15.0878187,9.46446609 15.5355339,9.01675084 15.5355339,8.46446609 C15.5355339,7.91218134 15.0878187,7.46446609 14.5355339,7.46446609 L11.5355339,7.46446609 L11.5355339,6.46446609 C11.5355339,5.35989659 12.4309644,4.46446609 13.5355339,4.46446609 L17.5355339,4.46446609 C18.6401034,4.46446609 19.5355339,5.35989659 19.5355339,6.46446609 L19.5355339,10.4644661 C19.5355339,11.5690356 18.6401034,12.4644661 17.5355339,12.4644661 L13.5355339,12.4644661 C12.4309644,12.4644661 11.5355339,11.5690356 11.5355339,10.4644661 L11.5355339,9.46446609 Z",fill:"currentColor",transform:"translate(15.535534, 8.464466) rotate(-45.000000) translate(-15.535534, -8.464466) "})]})})}function h(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("rect",{fill:"currentColor",x:"4",y:"11",width:"16",height:"2",rx:"1"}),(0,a.jsx)("rect",{fill:"currentColor",opacity:"0.3",transform:"translate(12.000000, 12.000000) rotate(-270.000000) translate(-12.000000, -12.000000) ",x:"4",y:"11",width:"16",height:"2",rx:"1"})]})})}function p(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"24",height:"24"}),(0,a.jsx)("circle",{id:"Oval-47",fill:"currentColor",opacity:"0.3",cx:"20.5",cy:"12.5",r:"1.5"}),(0,a.jsx)("rect",{fill:"currentColor",opacity:"0.3",transform:"translate(12.000000, 6.500000) rotate(-15.000000) translate(-12.000000, -6.500000) ",x:"3",y:"3",width:"18",height:"7",rx:"1"}),(0,a.jsx)("path",{d:"M22,9.33681558 C21.5453723,9.12084552 21.0367986,9 20.5,9 C18.5670034,9 17,10.5670034 17,12.5 C17,14.4329966 18.5670034,16 20.5,16 C21.0367986,16 21.5453723,15.8791545 22,15.6631844 L22,18 C22,19.1045695 21.1045695,20 20,20 L4,20 C2.8954305,20 2,19.1045695 2,18 L2,6 C2,4.8954305 2.8954305,4 4,4 L20,4 C21.1045695,4 22,4.8954305 22,6 L22,9.33681558 Z",fill:"currentColor"})]})})}function x(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"24",height:"24"}),(0,a.jsx)("path",{d:"M5,8.6862915 L5,5 L8.6862915,5 L11.5857864,2.10050506 L14.4852814,5 L19,5 L19,9.51471863 L21.4852814,12 L19,14.4852814 L19,19 L14.4852814,19 L11.5857864,21.8994949 L8.6862915,19 L5,19 L5,15.3137085 L1.6862915,12 L5,8.6862915 Z M12,15 C13.6568542,15 15,13.6568542 15,12 C15,10.3431458 13.6568542,9 12,9 C10.3431458,9 9,10.3431458 9,12 C9,13.6568542 10.3431458,15 12,15 Z",fill:"currentColor"})]})})}function g(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,a.jsxs)("g",{id:"Stockholm-icons-/-General-/-Portfolio",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("path",{opacity:"0.3",d:"M20 15H4C2.9 15 2 14.1 2 13V7C2 6.4 2.4 6 3 6H21C21.6 6 22 6.4 22 7V13C22 14.1 21.1 15 20 15ZM13 12H11C10.5 12 10 12.4 10 13V16C10 16.5 10.4 17 11 17H13C13.6 17 14 16.6 14 16V13C14 12.4 13.6 12 13 12Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M14 6V5H10V6H8V5C8 3.9 8.9 3 10 3H14C15.1 3 16 3.9 16 5V6H14ZM20 15H14V16C14 16.6 13.5 17 13 17H11C10.5 17 10 16.6 10 16V15H4C3.6 15 3.3 14.9 3 14.7V18C3 19.1 3.9 20 5 20H19C20.1 20 21 19.1 21 18V14.7C20.7 14.9 20.4 15 20 15Z",fill:"currentColor"})]})})}function C(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("polygon",{points:"0 0 24 0 24 24 0 24"}
3),(0,a.jsx)("path",{d:"M12.9336061,16.072447 L19.36,10.9564761 L19.5181585,10.8312381 C20.1676248,10.3169571 20.2772143,9.3735535 19.7629333,8.72408713 C19.6917232,8.63415859 19.6104327,8.55269514 19.5206557,8.48129411 L12.9336854,3.24257445 C12.3871201,2.80788259 11.6128799,2.80788259 11.0663146,3.24257445 L4.47482784,8.48488609 C3.82645598,9.00054628 3.71887192,9.94418071 4.23453211,10.5925526 C4.30500305,10.6811601 4.38527899,10.7615046 4.47382636,10.8320511 L4.63,10.9564761 L11.0659024,16.0730648 C11.6126744,16.5077525 12.3871218,16.5074963 12.9336061,16.072447 Z",fill:"currentColor",fillRule:"nonzero"}),(0,a.jsx)("path",{d:"M11.0563554,18.6706981 L5.33593024,14.122919 C4.94553994,13.8125559 4.37746707,13.8774308 4.06710397,14.2678211 C4.06471678,14.2708238 4.06234874,14.2738418 4.06,14.2768747 L4.06,14.2768747 C3.75257288,14.6738539 3.82516916,15.244888 4.22214834,15.5523151 C4.22358765,15.5534297 4.2250303,15.55454 4.22647627,15.555646 L11.0872776,20.8031356 C11.6250734,21.2144692 12.371757,21.2145375 12.909628,20.8033023 L19.7677785,15.559828 C20.1693192,15.2528257 20.2459576,14.6784381 19.9389553,14.2768974 C19.9376429,14.2751809 19.9363245,14.2734691 19.935,14.2717619 L19.935,14.2717619 C19.6266937,13.8743807 19.0546209,13.8021712 18.6572397,14.1104775 C18.654352,14.112718 18.6514778,14.1149757 18.6486172,14.1172508 L12.9235044,18.6705218 C12.377022,19.1051477 11.6029199,19.1052208 11.0563554,18.6706981 Z",fill:"currentColor",opacity:"0.3"})]})})}function f(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"24",height:"24"}),(0,a.jsx)("path",{d:"M8,3 L8,3.5 C8,4.32842712 8.67157288,5 9.5,5 L14.5,5 C15.3284271,5 16,4.32842712 16,3.5 L16,3 L18,3 C19.1045695,3 20,3.8954305 20,5 L20,21 C20,22.1045695 19.1045695,23 18,23 L6,23 C4.8954305,23 4,22.1045695 4,21 L4,5 C4,3.8954305 4.8954305,3 6,3 L8,3 Z",fill:"currentColor",opacity:"0.3"}),(0,a.jsx)("path",{d:"M11,2 C11,1.44771525 11.4477153,1 12,1 C12.5522847,1 13,1.44771525 13,2 L14.5,2 C14.7761424,2 15,2.22385763 15,2.5 L15,3.5 C15,3.77614237 14.7761424,4 14.5,4 L9.5,4 C9.22385763,4 9,3.77614237 9,3.5 L9,2.5 C9,2.22385763 9.22385763,2 9.5,2 L11,2 Z",fill:"currentColor"}),(0,a.jsx)("rect",{fill:"currentColor",opacity:"0.3",x:"10",y:"9",width:"7",height:"2",rx:"1"}),(0,a.jsx)("rect",{fill:"currentColor",opacity:"0.3",x:"7",y:"9",width:"2",height:"2",rx:"1"}),(0,a.jsx)("rect",{fill:"currentColor",opacity:"0.3",x:"7",y:"13",width:"2",height:"2",rx:"1"}),(0,a.jsx)("rect",{fill:"currentColor",opacity:"0.3",x:"10",y:"13",width:"7",height:"2",rx:"1"}),(0,a.jsx)("rect",{fill:"currentColor",opacity:"0.3",x:"7",y:"17",width:"2",height:"2",rx:"1"}),(0,a.jsx)("rect",{fill:"currentColor",opacity:"0.3",x:"10",y:"17",width:"7",height:"2",rx:"1"})]})})}function A(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"24",height:"24"}),(0,a.jsx)("path",{d:"M16.5428932,17.4571068 L11,11.9142136 L11,4 C11,3.44771525 11.4477153,3 12,3 C12.5522847,3 13,3.44771525 13,4 L13,11.0857864 L17.9571068,16.0428932 L20.1464466,13.8535534 C20.3417088,13.6582912 20.6582912,13.6582912 20.8535534,13.8535534 C20.9473216,13.9473216 21,14.0744985 21,14.2071068 L21,19.5 C21,19.7761424 20.7761424,20 20.5,20 L15.2071068,20 C14.9309644,20 14.7071068,19.7761424 14.7071068,19.5 C14.7071068,19.3673918 14.7597852,19.2402148 14.8535534,19.1464466 L16.5428932,17.4571068 Z",fill:"currentColor",fillRule:"nonzero"}),(0,a.jsx)("path",{d:"M7.24478854,17.1447885 L9.2464466,19.1464466 C9.34021479,19.2402148 9.39289321,19.3673918 9.39289321,19.5 C9.39289321,19.7761424 9.16903559,20 8.89289321,20 L3.52893218,20 C3.25278981,20 3.02893218,19.7761424 3.02893218,19.5 L3.02893218,14.136039 C3.02893218,14.0034307 3.0816106,13.8762538 3.17537879,13.7824856 C3.37064094,13.5872234 3.68722343,13.5872234 3.88248557,13.7824856 L5.82567301,15.725673 L8.85405776,13.1631936 L10.1459422,14.6899662 L7.24478854,17.1447885 Z",fill:"currentColor",fillRule:"nonzero",opacity:"0.3"})]})})}s(75834)},51898:e=>{e.exports={welcome:"AiChatWelcome_welcome__AzoPd",title:"AiChatWelcome_title__I9PpK",titleText:"AiChatWelcome_titleText___87RJ",previewBadge:"AiChatWelcome_previewBadge__h2CZb"}},53920:(e,t,s)=>{"use strict";s.d(t,{AG:()=>r,am:()=>i,oc:()=>l,sz:()=>o});var a=s(28100),n=s(55285);function i(e,t,s,i){let r=(0,a.JQ)();return(i||(i={}),e)?{format:()=>s?"â¢â¢":"â¢â¢â¢â¢"}:new Intl.NumberFormat(r.selectedLocale??r.selectedLang,{style:"currency",currency:t||((0,n.de)()?"USD":"RUB"),notation:s?"compact":"standard",...i})}function r(e,t,s){let n=(0,a.JQ)();return(s||(s={}),e)?{format:()=>t?"â¢â¢":"â¢â¢â¢â¢"}:new Intl.NumberFormat(n.selectedLocale??n.selectedLang,{notation:t?"compact":"standard",...s})}function l(e){return e?e.replace("\xa0ÑÑÑ.","K").replace("\xa0млн","M").replace("\xa0млÑд","B"):e}function o(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(null==e)return"";let a=Math.abs(e);return a>=1e12?`${(e/1e12).toFixed(s)} ${t("NUMBER.TRILLION",{ns:"common"})}`:a>=1e9?`${(e/1e9).toFixed(s)} ${t("NUMBER.BILLION",{ns:"common"})}`:a>=1e6?`${(e/1e6).toFixed(s)} ${t("NUMBER.MILLION",{ns:"common"})}`:a>=1e3?`${(e/1e3).toFixed(s)} ${t("NUMBER.THOUSAND",{ns:"common"})}`:e.toFixed(s)}},54892:e=>{e.exports={suggestions:"AiChatSuggestedQuestions_suggestions__qt3W3"}},55681:(e,t,s)=>{"use strict";s.d(t,{k:()=>u});var a=s(26514),n=s(75834),i=s(93760),r=s(8393),l=s(91283),o=s(56964),c=s(15124),d=s(45041);function u(e){let{portfolio:t,result:s,withButton:u,withIcons:m,seeMore:h=!1}=e,{t:p,i18n:{language:x}}=(0,i.B)(["import","common"]),g=n.useRef(null),C=(0,n.useMemo)(()=>{let e=(0,l.LV)(x),t=s?.items?.length>0;return s.syncDate=s.syncDate?new Date(s.syncDate):null,s.items&&(0,c.N)(s.items,e),{hasData:t,item:t?s.items[0]:void 0,...s}},[s]);return(0,a.jsxs)(a.Fragment,{children:[C.hasData&&(0,a.jsxs)(a.Fragment,{children:[!t.isComposite&&(0,a.jsx)(o.P,{data:C.item,isCompact:!0,withIcons:m,seeMore:h}),t.isComposite&&(0,a.jsx)(o.s,{data:C,isCompact:!0,withIcons:m,seeMore:h})]}),u&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:"btn btn-sm btn-link-dark font-weight-bold mx-2 mt-0",onClick:()=>{g&&g.current&&g.current.showPinModal()},children:[!C.hasData&&(0,a.jsx)(r.A,{fontSize:"sm",sx:{marginRight:"0.2rem"}}),p("LAST_SYNC.UPDATE_DATA_NOW",{ns:"import"})]}),(0,a.jsx)(d.J,{ref:g,portfolioId:t.id,portfolio:t})]})]})}},56103:(e,t,s)=>{"use strict";s.d(t,{J:()=>f,O:()=>C});var a=s(26514),n=s(82056),i=s(58303),r=s(22005),l=s(32491),o=s.n(l),c=s(75119),d=s.n(c),u=s(75834),m=s(93760),h=s(21069),p=s(72732);let x=()=>({popper:{width:"fit-content"}});function g(e){return(0,a.jsx)(i.A,{...e,style:x.popper,placement:"bottom-end"})}function C(e){let{item:t,hideIcon:s}=e;return(0,a.jsxs)("div",{className:"row m-0 asset-info-container",children:[!s&&(0,a.jsx)("div",{className:"col-auto p-0 d-flex align-items-center",children:(0,a.jsx)(h.hz,{logoUrl:t.logoURL,primaryLogoUrl:t.primaryLogoURL,size:"sm"})}),(0,a.jsxs)("div",{className:"col p-0 d-flex align-items-center",children:[(0,a.jsx)("span",{className:"label label-light label-inline font-weight-bold p-1 mr-1",children:t.ticker}),(0,a.jsx)("span",{className:"asset-info-description",children:t.description})]})]})}function f(e){let{t}=(0,m.B)(["common"]),[s,i]=(0,u.useState)([]),[l,c]=(0,u.useState)([]),[h,x]=(0,u.useState)(e.listViewType??"full"),f=async()=>{let t=await (0,p.kJ)();i(e.sortCurrencies?e.sortCurrencies(t,e.value):t)};(0,u.useEffect)(()=>{f()},[e.sortCurrencies,e.value]),(0,u.useEffect)(()=>
3{if("full"!=h){let e=d()(s,3);e.push({value:"",moreItems:!0,name:t("BUTTON.MORE_ITEMS")}),c(e)}else c(s)},[h,s]);let A=s.find(t=>t.value===e.value)||null;return(0,a.jsx)(a.Fragment,{children:s&&s.length>0&&(0,a.jsx)(r.A,{placeholder:e.placeholder??"",disabled:e.disabled??!1,value:A,isOptionEqualToValue:(e,t)=>e.value===t?.value,onChange:(t,s)=>{s&&s.moreItems?x("full"):e.onChange(t,s)},PopperComponent:e.fullWidth?void 0:g,noOptionsText:t("NO_DATA"),options:l,getOptionLabel:t=>t?e.optionDisplay&&"string"==typeof t?`${o()(s,e=>e.value==t)?.ticker} - ${o()(s,e=>e.value==t)?.description}`:e.optionDisplay&&"string"!=typeof t?`${t.ticker} - ${t.description}`:t?.value??t:"",disableClearable:!0,renderOption:(t,s)=>(0,a.jsx)("li",{...t,children:"compact"==e.displayType||s.moreItems?(0,a.jsx)("span",{className:"font-weight-bold",children:s.name??s.value}):(0,a.jsx)(C,{item:s})}),renderInput:t=>(0,a.jsx)(n.A,{variant:"filled",placeholder:e.placeholder??"",...t,className:e.inputClassName})})})}},56244:e=>{e.exports={hero:"HeroSection_hero__MSIeh",heroContent:"HeroSection_heroContent__6pMOy",tickerBadge:"HeroSection_tickerBadge__IOzQB",title:"HeroSection_title__gbKFG",subtitle:"HeroSection_subtitle__VAq2K",price:"HeroSection_price__uJkhI"}},56964:(e,t,s)=>{"use strict";s.d(t,{P:()=>c,s:()=>d});var a=s(26514);s(75834);var n=s(93760),i=s(46711),r=s(4068),l=s(61392),o=s(97043);function c(e){let{data:t,isCompact:s,withIcons:d,seeMore:u}=e,{t:m}=(0,n.B)(["import","common"]),h=s&&!u?o.o:i.A,p=s&&!u?{title:(0,a.jsx)(c,{data:t,isCompact:!1})}:{component:"div"};return(0,a.jsx)(h,{...p,children:(0,a.jsxs)("div",{className:s?"d-inline-flex align-items-center":"",children:[d&&(0,a.jsx)(a.Fragment,{children:t.success?(0,a.jsx)(l.A,{fontSize:"small",sx:{marginRight:"0.5rem"}}):(0,a.jsx)(r.A,{fontSize:"small",sx:{marginRight:"0.5rem"}})}),(0,a.jsxs)("span",{className:`${s&&!u&&"hoverable-item"}`,children:[m("LAST_SYNC.RESULT.TITLE"),":\xa0",t.success&&s&&(t.syncDateDistance?t.syncDateDistance:m("SIMPLE_DATE",{date:new Date(t.syncDate),ns:"common"})),t.success&&!s&&m("SIMPLE_DATETIME",{date:new Date(t.syncDate),ns:"common"}),!t.success&&m("LAST_SYNC.RESULT.FAILED"),!t.success&&!s&&(0,a.jsxs)(a.Fragment,{children:[","," ",m("SIMPLE_DATETIME",{date:new Date(t.syncDate),ns:"common"})]}),u&&(0,a.jsx)(o.o,{onClickOnly:!0,title:(0,a.jsx)(c,{data:t,isCompact:!1}),children:(0,a.jsx)("a",{href:void 0,className:"text-dark-65 ml-1 cursor-pointer",children:(0,a.jsx)("u",{children:m("SEE_MORE",{ns:"common"})})})})]}),!s&&t.providerSyncDate&&(0,a.jsx)("span",{className:"d-block mt-1",children:m("IMPORT.LAST_BROKERAGE_SYNC_DATE",{date:t.providerSyncDate,ns:"import"})}),!s&&!t.success&&t.errorMessage&&(0,a.jsxs)("span",{className:"d-block mt-1",children:[(0,a.jsx)("span",{className:"label label-sm label-light-warning label-inline mr-2 font-weight-bold",children:m("LAST_SYNC.RESULT.ACTION_REQUIRED")}),t.errorMessage]})]})})}function d(e){let{data:t,isCompact:s,withIcons:d,seeMore:u}=e,{t:m}=(0,n.B)(["import","common"]);function h(){return(0,a.jsx)("div",{children:t.items.map(e=>(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("div",{className:"font-weight-bold",children:e.portfolioName}),(0,a.jsx)(c,{data:e,isCompact:!1})]}))})}let p=s&&!u?o.o:i.A,x=s&&!u?{title:(0,a.jsx)(h,{})}:{component:"div"};return(0,a.jsx)(p,{...x,children:(0,a.jsxs)("div",{className:s&&!u&&"d-inline-flex align-items-center",children:[d&&(0,a.jsx)(a.Fragment,{children:t.success?(0,a.jsx)(l.A,{fontSize:"small",sx:{marginRight:"0.5rem"}}):(0,a.jsx)(r.A,{fontSize:"small",sx:{marginRight:"0.5rem"}})}),(0,a.jsxs)("span",{className:!u&&"hoverable-item",children:[m("LAST_SYNC.RESULT.TITLE"),":\xa0",m("LAST_SYNC.RESULT.COMPOSITE_COUNT",{success:t.successCount,total:t.items?.length??0}),u&&(0,a.jsx)(o.o,{onClickOnly:!0,title:(0,a.jsx)(h,{}),children:(0,a.jsx)("a",{href:void 0,className:"text-dark-65 ml-1 cursor-pointer",children:(0,a.jsx)("u",{children:m("SEE_MORE",{ns:"common"})})})})]})]})})}},57108:e=>{e.exports={isDraggingOver:"SortableList_isDraggingOver__BjftJ"}},57985:(e,t,s)=>{"use strict";s.d(t,{s:()=>G});var a=s(26514),n=s(62936),i=s.n(n),r=s(75834),l=s(55285),o=s(68827),c=s(55909),d=s(74170),u=s(59757),m=s(16926),h=s(93760),p=s(23141),x=s(48208);function g(e){let{className:t,...s}=e,{t:n}=(0,h.B)("social");return(0,a.jsxs)("div",{...s,className:`text-center p-10 mb-3 ${t??""}`,children:[(0,a.jsx)("h3",{children:n("SIGN_UP_TO_COMMENT.TITLE")}),(0,a.jsx)("div",{className:"font-weight-bold text-dark-50",children:n("SIGN_UP_TO_COMMENT.MESSAGE")}),(0,a.jsx)(x.o,{href:"/auth/registration",className:"mt-5 btn btn-primary btn-lg font-weight-bold",children:(0,a.jsx)(p.x,{i18nKey:"layout:TOPBAR.TRY"})})]})}
3function C(){let{showSignUpModal:e}=(0,u.d4)(e=>{let{ui:t}=e;return t}),t=(0,u.wA)(),s=()=>{t((0,m.Fb)(!1))};return(0,a.jsxs)(d.A,{centered:!0,show:e,onHide:s,children:[(0,a.jsx)("button",{type:"button",className:"btn p-0 btn-close-card",onClick:s,children:(0,a.jsx)(c.A,{})}),(0,a.jsx)(g,{})]})}var f=s(18150),A=s(66356),N=s(83602),_=s(65461),b=s(81221),j=s(47753),v=s(55102),T=s(71497),E=s(23426),S=s(45251),I=s(47894),y=s(33734),R=s(42197),L=s(54253),w=s(34168),O=s(46225),k=s(12822),D=s(49732);function P(e){let{layoutProps:t}=e,{t:s}=(0,h.B)("layout"),n=(0,O.useRouter)(),i=e=>(0,L.ZY)(n,e)?"menu-item-active":"";return(0,a.jsx)("div",{id:"kt_header_menu",className:`header-menu header-menu-mobile header-menu-layout-default ${t.ktMenuClasses}`,...t.headerMenuAttributes,children:(0,a.jsxs)("ul",{className:`menu-nav ${t.ulClasses}`,children:[(0,a.jsxs)("li",{"data-menu-toggle":"click","aria-haspopup":"true",className:`menu-item menu-item-submenu menu-item-rel menu-item-click-hover ${i(["/calendars","/calendars/dividend-calendar","/calendars/ex-dividend-calendar"])}`,children:[(0,a.jsxs)(k.k,{className:"menu-link menu-toggle",href:"/calendars/dividend-calendar",children:[(0,a.jsx)("span",{className:"menu-text",children:s("MENU.PUBLIC_TOOLS")}),(0,a.jsx)("i",{className:"menu-arrow"})]}),(0,a.jsx)("div",{className:"menu-submenu menu-submenu-classic menu-submenu-left",children:(0,a.jsxs)("ul",{className:"menu-subnav",children:[(0,a.jsx)("li",{className:`menu-item menu-item-rel ${i("/calendars/dividend-calendar")}`,children:(0,a.jsxs)(k.k,{className:"menu-link",href:"/calendars/dividend-calendar",children:[(0,a.jsx)(D.A,{className:"menu-icon muted-icon",size:"md",noColor:!0,src:"/media/svg/icons/General/calendar.svg"}),(0,a.jsx)("span",{className:"menu-text",children:s("MENU.PUBLIC_DIVIDEND_CALENDAR")})]})}),(0,a.jsx)("li",{className:`menu-item menu-item-rel ${i("/calendars/ex-dividend-calendar")}`,children:(0,a.jsxs)(k.k,{className:"menu-link",href:"/calendars/ex-dividend-calendar",children:[(0,a.jsx)(D.A,{className:"menu-icon muted-icon",size:"md",noColor:!0,src:"/media/svg/icons/General/calendar.svg"}),(0,a.jsx)("span",{className:"menu-text",children:s("MENU.PUBLIC_EX_DIVIDEND_CALENDAR")})]})}),(0,l.de)()&&(0,a.jsx)("li",{className:`menu-item menu-item-rel ${i("/calculator/dividend")}`,children:(0,a.jsxs)(k.k,{className:"menu-link",href:"/calculator/dividend",children:[(0,a.jsx)(D.A,{className:"menu-icon muted-icon",size:"md",noColor:!0,src:"/media/svg/icons/Shopping/Calculator.svg"}),(0,a.jsx)("span",{className:"menu-text",children:s("MENU.PUBLIC_DIVIDEND_CALCULATORS")})]})})]})})]}),(0,a.jsxs)("li",{"data-menu-toggle":"click","aria-haspopup":"true",className:`menu-item menu-item-submenu menu-item-rel menu-item-click-hover ${i(["/public/community","/public/portfolios","/public/popular-assets","/public/blog"])}`,children:[(0,a.jsxs)(k.k,{className:"menu-link menu-toggle",href:"/public/community",children:[(0,a.jsx)("span",{className:"menu-text",children:s("MENU.COMMUNITY")}),(0,a.jsx)("i",{className:"menu-arrow"})]}),(0,a.jsx)("div",{className:"menu-submenu menu-submenu-classic menu-submenu-left",children:(0,a.jsxs)("ul",{className:"menu-subnav",children:[(0,a.jsx)("li",{className:`menu-item menu-item-rel ${i("/public/community")}`,children:(0,a.jsxs)(k.k,{className:"menu-link",href:"/public/community",children:[(0,a.jsx)(D.A,{className:"menu-icon muted-icon",size:"md",noColor:!0,src:"/media/svg/icons/Communication/users-01.svg"}),(0,a.jsx)("span",{className:"menu-text",children:s("MENU.COMMUNITY_HUB")})]})}),(0,a.jsx)("li",{className:`menu-item menu-item-rel ${i("/public/portfolios")}`,children:(0,a.jsxs)(k.k,{className:"menu-link",href:"/public/portfolios",children:[(0,a.jsx)(D.A,{className:"menu-icon muted-icon",size:"md",noColor:!0,src:"/media/svg/icons/Clothes/briefcase-02.svg"}),(0,a.jsx)("span",{className:"menu-text",children:s("MENU.PUBLIC_PORTFOLIOS")})]})}),(0,a.jsx)("li",{className:`menu-item menu-item-rel ${i("/public/popular-assets")}`,children:(0,a.jsxs)(k.k,{className:"menu-link",href:"/public/popular-assets",children:[(0,a.jsx)(D.A,{className:"menu-icon muted-icon",size:"md",noColor:!0,src:"/media/svg/icons/General/stars-01.svg"}),(0,a.jsx)("span",{className:"menu-text",children:s("MENU.POPULAR_ASSETS")})]})}),(0,a.jsx)("li",{className:`menu-item menu-item-rel ${i("/public/blog")}`,children:(0,a.jsxs)(k.k,{className:"menu-link",href:"/public/blog",children:[(0,a.jsx)(D.A,{className:"menu-icon muted-icon",size:"md",noColor:!0,src:"/media/svg/icons/Home/lightbulb-05.svg"}),(0,a.jsx)("span",{className:"menu-text",children:s("MENU.BLOG")})]})})]})})]})]})})}function M(){let e,{t}=(0,h.B)("layout"),s=(0,f.SL)(),{isDark:n,toggleTheme:o}=(0,N.DP)(),c=(0,I.sc)(),{isDesktop:d}=(0,R.l)(),u=(0,r.useMemo)(()=>({config:s.config,ktMenuClasses:s.getClasses("header_menu",!0),rootArrowEnabled:i().get(s.config,"header.menu.self.root-arrow"),menuDesktopToggle:i().get(s.config,"header.menu.desktop.toggle"),headerMenuAttributes:s.getAttributes("header_menu"),headerSelfTheme:i().get(s.config,"header.self.theme"),ulClasses:s.getClasses("header_menu_nav",!0),disabledAsideSelfDisplay:!1===i().get(s.config,"aside.self.dis
3play")}),[s]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"header-menu-wrapper header-menu-wrapper-left",id:"kt_header_menu_wrapper",children:[u.disabledAsideSelfDisplay&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"header-logo cursor-pointer",children:(0,a.jsx)(S.N,{href:c?"/dashboard":"/",children:(0,a.jsx)("img",{alt:"logo",src:(e=(0,l.de)()?"logo-analytics-light.svg":"logo-income-light.svg",n&&(e=(0,l.de)()?"logo-analytics-dark.svg":"logo-income-dark.svg"),(0,L.oK)(`/media/logos/${e}`)),style:{height:"50px"}})})})}),c?(0,a.jsx)(P,{layoutProps:u}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.y,{layoutProps:u}),!d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("hr",{}),(0,a.jsxs)("div",{className:"px-8 py-4 d-flex align-items-center",children:[(0,a.jsx)("span",{className:"mr-4",children:t("DARK_MODE")}),(0,a.jsx)(y.A,{isDark:n,onChange:o})]})]})]})]})})}var U=s(152);function H(e){let{isSignedIn:t}=e,s=(0,f.SL)(),n=(0,r.useMemo)(()=>({headerClasses:s.getClasses("header",!0),headerAttributes:s.getAttributes("header"),headerContainerClasses:s.getClasses("header_container",!0),menuHeaderDisplay:i().get(s.config,"header.menu.self.display")}),[s]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"header header-fixed",id:"kt_header",...n.headerAttributes,children:(0,a.jsxs)("div",{className:` ${n.headerContainerClasses} d-flex align-items-stretch justify-content-between`,children:[(0,a.jsx)(U.aU,{}),n.menuHeaderDisplay&&(0,a.jsx)(M,{}),!n.menuHeaderDisplay&&(0,a.jsx)("div",{}),(0,a.jsx)(E.I,{isSignedIn:t})]})})})}var F=s(85523),B=s(37322);function G(e){let{children:t,...s}=e,{isSignedIn:n}=s,c=(0,f.SL)(),{isDark:d}=(0,N.DP)(),u=(0,r.useMemo)(()=>({layoutConfig:c.config,selfLayout:i().get(c.config,"self.layout"),asideDisplay:i().get(c.config,"aside.self.display"),subheaderDisplay:i().get(c.config,"subheader.display"),desktopHeaderDisplay:i().get(c.config,"header.self.fixed.desktop"),contentCssClasse
3s:c.getClasses("content",!0),contentContainerClasses:c.getClasses("content_container",!0),contentExtended:i().get(c.config,"content.extended")}),[c]);return(0,r.useEffect)(()=>{document.body.classList.contains("body-face")&&document.body.classList.remove("body-face"),!d&&document.body.classList.contains("dark")&&document.body.classList.remove("dark")},[]),"blank"!==u.selfLayout?(0,a.jsxs)(A.i,{children:[(0,a.jsx)(T.M,{type:"public"}),(0,a.jsx)("div",{className:"d-flex flex-column flex-root",children:(0,a.jsx)("div",{className:"d-flex flex-row flex-column-fluid page",children:(0,a.jsxs)("div",{className:"d-flex flex-column flex-row-fluid wrapper",id:"kt_wrapper",children:[(0,a.jsx)(H,{isSignedIn:n}),(0,a.jsxs)("div",{id:"kt_content",className:`content ${u.contentCssClasses} d-flex flex-column flex-column-fluid`,children:[u.subheaderDisplay&&(0,a.jsx)(B.i,{}),!u.contentExtended&&(0,a.jsx)("div",{className:"d-flex flex-column-fluid",children:(0,a.jsxs)("div",{className:u.contentContainerClasses,children:[n&&(0,a.jsx)(b.a,{}),t]})}),u.contentExtended&&{children:t}]}),(0,l.de)()&&(0,a.jsx)(j.d,{addBadges:!1}),!(0,l.de)()&&(0,a.jsx)(v.w,{})]})})}),(0,a.jsx)(_.l,{}),(0,a.jsx)(F.L,{}),(0,a.jsx)(o.A,{}),(0,a.jsx)(C,{})]}):(0,a.jsx)("div",{className:"d-flex flex-column flex-root",children:t})}},58726:e=>{e.exports={root:"TopbarSubscribeButton_root__5W092",text:"TopbarSubscribeButton_text__zP9MR"}},60486:e=>{e.exports={message:"AiChatMessage_message__OD_bR",user:"AiChatMessage_user__ybCbK",assistant:"AiChatMessage_assistant__o6_TT",systemMessage:"AiChatMessage_systemMessage__EkAXu",systemLine:"AiChatMessage_systemLine__2PMsB",systemText:"AiChatMessage_systemText__V7vRC",avatar:"AiChatMessage_avatar__ISW_H",messageContent:"AiChatMessage_messageContent__eiy0b",bubble:"AiChatMessage_bubble__Kg5iU",actions:"AiChatMessage_actions__AsBlB",actionIcon:"AiChatMessage_actionIcon__4_JuC",actionBtn:"AiChatMessage_actionBtn__HVupN",active:"AiChatMessage_active__k3iI6",textContent:"AiChatMessage_textContent___1wRu",markdownContent:"AiChatMessage_markdownContent__uvx8_",streamingCursor:"AiChatMessage_streamingCursor__W5xaQ",blink:"AiChatMessage_blink__7rgSZ",thinkingText:"AiChatMessage_thinkingText__j1pXG",thinkingShimmer:"AiChatMessage_thinkingShimmer__O0j_l"}},60999:e=>{e.exports={badge:"PaymentFrequencyCard_badge__M5Aa8","badge-default":"PaymentFrequencyCard_badge-default__ZlP_y","badge-highlight":"PaymentFrequencyCard_badge-highlight__NlBOs",nextPayment:"PaymentFrequencyCard_nextPayment__RysJt",nextPaymentLabel:"PaymentFrequencyCard_nextPaymentLabel__G287P",nextPaymentDate:"PaymentFrequencyCard_nextPaymentDate__Avzl0"}},62400:(e,t,s)=>{"use strict";s.d(t,{l:()=>w});var a=s(26514),n=s(75834),i=s(46225),r=s(21069),l=s(30985),o=s(91114),c=s.n(o),d=s(7086),u=s(55971),m=s.n(u),h=s(75119),p=s.n(h),x=s(84580),g=s(71359),C=s(93760),f=s(36241),A=s(15269),N=s(60547),_=s(24163),b=s(47115),j=s(63390),v=s(27188),T=s(77232),E=s(43765),S=s(54253),I=s(90952);let y=[b.PW.STOCK,b.PW.BOND,b.PW.ETF,b.PW.REIT,b.PW.COMMODITY,b.PW.CRYPTO_CURRENCY];function R(e){let{t}=(0,C.B)("layout"),[s,i]=(0,n.useState)(()=>(0,v.eM)()),[r,o]=(0,n.useState)(!1),[u,h]=(0,n.useState)(!1),[R,L]=(0,n.useState)(null),[w,O]=(0,n.useState)(""),[k,D]=(0,n.useState)(!1),[P,M]=(0,n.useState)(!1),[U,H]=(0,n.useState)(!1),F=(0,n.useRef)(null),B=()=>{L(null),O(""),o(!1)},G=()=>{if(!R?.length)return;let t=R.filter(e=>{let{type:t}=e;return t!==b.PW.QUOTE});if(t?.length){let[s]=t;e.onSubmitAsset?.(s)}},W=(0,n.useCallback)(m()(e=>(e=>{let s=(0,_.F)();if(!e){L([]),o(!1);return}o(!0),d.A.get(j.NwO,{params:{search:e,assetTypes:y,isSignedIn:s}}).then(e=>{let{data:t=[]}=e;t.length||D(!1),L(p()(t,15))}).catch(e=>{let s=(0,f.g6)(`${t("SEARCH_ASSET.ERROR")}: 4`,e);A.f1(s),L([]),D(!1)}).finally(()=>{o(!1),h(!0)})})(e),350),[]);(0,n.useEffect)(()=>{"form"==e.type&&F&&F.current&&(F.current.addEventListener("focus",()=>{H(!0)}),F.current.addEventListener("blur",()=>{setTimeout(()=>{H(!1)},120)}))},[]),(0,n.useEffect)(()=>{let t=R&&R.length>0||!w&&s.length>0;t&&"form"==e.type&&!U&&(t=!1),M(t)},[R,s,w,U]),(0,n.useEffect)(()=>{k&&G()},[G,k]),(0,n.useEffect)(()=>{h(!1),W(w)},[w]);let $=(0,a.jsx)(I.q,{isRecent:!w,openInNewTab:e.openBlanc,data:w?R:s,onItemClicked:e=>{B(),e&&(0,v.GK)(e),document.dispatchEvent(new MouseEvent("click"))}});return(0,a.jsxs)(a.Fragment,{children:["form"==e.type&&(0,a.jsx)(g.x,{onClickAway:B,children:(0,a.jsxs)("div",{id:"kt_quick_search_dropdown_inline",style:{minWidth:"350px"},className:`quick-search quick-search-dropdown quick-search-inline-form pt-4 ${P?"quick-search-has-result":""}`,children:[(0,a.jsx)("form",{className:"quick-search-form quick-search-form-inline",children:(0,a.jsxs)("div",{className:"input-group",children:[(0,a.jsx)("div",{className:"input-group-prepend",children:(0,a.jsx)("span",{className:"input-group-text",children:(0,a.jsx)("span",{className:"svg-icon svg-icon-lg mt-n1",children:(0,a.jsx)(c(),{preProcessor:N.xY,src:(0,S.oK)("/media/svg/icons/General/Search.svg?v=1")})})})}),(0,a.jsx)("input",{id:"search_assets_form_input",type:"text",placeholder:t("SEARCH_ASSET.PLACEHOLDER"),value:w,onChange:e=>{O(e.target.value)},ref:F,className:"form-control form-control-solid"}),(0,a.jsx)("div",{className:`input-group-append ${r?"spinner spinner-sm spinner-primary":""}")}`,children:(0,a.jsx)("span",{className:"input-group-text",children:(0,a.jsx)("i",{style:{display:w&&w.length>0&&!r?"flex":"none"},onClick:B,className:"quick-search-close ki ki-close icon-sm text-muted"})})})]})}),P&&(0,a.jsx)("div",{className:"setting-dropdown py-2 px-3 rounded-sm",children:$})]})}),"form"!=e.type&&(0,a.jsxs)(l.A,{alignRight:!0,drop:"down",onToggle:()=>{B(),setTimeout(()=>{F.current&&"form"!=e.type&&F.current.focus()},100),i((0,v.eM)())},id:"kt_quick_search_toggle",children:[(0,a.jsx)(l.A.Toggle,{as:E.rI,children:(0,a.jsx)(T.qS,{icon:(0,a.jsx)(x.A,{style:{marginTop:2}})})}),(0,a.jsx)(l.A.Menu,{className:"dropdown-menu p-0 m-0 dropdown-menu-right dropdown-menu-anim-up dropdown-menu-lg",children:(0,a.jsxs)("div",{id:"kt_quick_search_dropdown",className:`quick-search quick-search-dropdown dropdown-menu-wrapper ${!r&&P?"pb-0":""} ${P?"quick-search-has-result":""}`,children:[(0,a.jsx)("form",{className:"quick-search-form",onSubmit:e=>{e.preventDefault(),(()=>{if(!R?.length&&w&&!u)return D(!0);G()})()},children:(0,a.jsxs)("div",{className:"input-group",children:[(0,a.jsx)("div",{className:"input-group-prepend",children:(0,a.jsx)("span",{className:"input-group-text",children:(0,a.jsx)("span",{className:"svg-icon svg-icon-lg",children:(0,a.jsx)(c(),{preProcessor:N.xY,src:(0,S.oK)("/media/svg/icons/General/Search.svg?v=1")})})})}),(0,a.jsx)("input",{name:"search",type:"text",autoFocus:!0,placeholder:t("SEARCH_ASSET.PLACEHOLDER"),value:w,ref:F,onChange:e=>{O(e.target.value)},className:"form-control"}),(0,a.jsx)("div",{className:`input-group-append ${r?"spinner spinner-sm spinner-primary":""}")}`,children:(0,a.jsx)("span",{className:"input-group-text",children:(0,a.jsx)("i",{style:{display:r&&w&&w.length>0?"none":"flex"},onClick:B,className:"quick-search-close ki ki-close icon-sm text-muted"})})})]})}),!k&&(0,a.jsx)(a.Fragment,{children:$}),!R?.length&&w&&u&&(0,a.jsx)("div",{className:"pt-5 pb-3 px-10 text-dark-50",children:t("SEARCH_ASSET.NOT_FOUND")})]})})]})]})}var L=s(19717);function w(e){let{isNewPage:t=!1}
4=e,s=(0,i.useRouter)(),[l,o]=(0,n.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(R,{type:"dropdown",openBlanc:t,onSubmitAsset:e=>{if(!e)return;let a=(0,r.A)(e.assetType,e.id,e.ticker,e.exchange,e.currency);if(a){if(t)return void window.open(a,"_blank");o(!0),s.push(a).catch(()=>{o(!1)})}}}),l&&(0,a.jsx)(L.e,{})]})}},62522:e=>{e.exports={limitReachedMessage:"AiChatQuotaNotice_limitReachedMessage__xJUVM",limitReachedCard:"AiChatQuotaNotice_limitReachedCard__B86Sb",limitReachedIcon:"AiChatQuotaNotice_limitReachedIcon__uk9oy",limitReachedBody:"AiChatQuotaNotice_limitReachedBody__wAf9L",limitReachedActionIcon:"AiChatQuotaNotice_limitReachedActionIcon__ag9uz",nearLimitNotice:"AiChatQuotaNotice_nearLimitNotice__1UCY9",nearLimitIcon:"AiChatQuotaNotice_nearLimitIcon__6Fc_0"}},62737:e=>{e.exports={page:"DividendCalculator_page__EVS3C",mainContent:"DividendCalculator_mainContent__rFKaH",leftColumn:"DividendCalculator_leftColumn__Mv0ah",rightColumn:"DividendCalculator_rightColumn__kJvoB"}},65119:(e,t,s)=>{"use strict";s.d(t,{J:()=>_,S:()=>N});var a=s(26514),n=s(30985),i=s(51065),r=s.n(i),l=s(9610),o=s.n(l),c=s(93760),d=s(75834),u=s(33989),m=s(59757),h=s(80966),p=s(47115),x=s(4469),g=s(72732),C=s(56103),f=s(3163);let A="RecentCurrenciesSelected";var N=function(e){return e.Compact="compact",e.Mobile="mobile",e}({});function _(e){let{view:t="compact"}=e,{t:s}=(0,c.B)("common"),{currency:i,localCurrency:l,recentCurrencies:N,currentPortfolio:_}=(0,m.d4)(e=>{let{app:t}=e;return{...t,currency:t.localCurrency??t.currency}}),b=(0,m.wA)(),{data:j=[]}=(0,u.I)({queryKey:["currencyList"],queryFn:g.kJ}),[v,T]=(0,d.useState)("");(0,d.useEffect)(()=>{let e=(0,x.Gu)(A,{list:[]});e?.list?.length&&(b((0,f.LQ)(e?.list)),(0,x.aF)(A))},[]);let E=(0,d.useMemo)(()=>o()(j,e=>{let{ticker:t,description:s}=e;return t.toLowerCase().indexOf(v.toLowerCase())>=0||s.toLowerCase().indexOf(v.toLowerCase())>=0}),[v,j]),S=p.b5.find(e=>{let{code:t}=e;return t===i})?.symbol??"",{finalCurrencyList:I,finalRecentCurrencyList:y}=(0,d.useMemo)(()=>{let e=[],t=[];return E.forEach(s=>{N.includes(s.code)?t.push(s):e.push(s)}),t.sort((e,t)=>N.indexOf(e.code)-N.indexOf(t.code)),{finalCurrencyList:e,finalRecentCurrencyList:t}},[E,N]);return i?(0,a.jsx)(n.A,{className:"topbar-dropdown",drop:"down",alignRight:!0,children:(0,a.jsxs)("div",{className:"topbar-item",children:[(0,a.jsx)(n.A.Toggle,{id:"dropdown-toggle-top2",variant:"transparent",className:`btn w-auto btn-dark-50 btn-sm font-weight-bold p-2 ${"mobile"===t?"exclude-dropdown-toggle":""}`,children:"mobile"===t?(0,a.jsx)("span",{className:"symbol symbol-25 symbol-light",children:(0,a.jsx)("span",{className:"symbol-label font-weight-bold font-size-xs",children:S})}):(0,a.jsx)(a.Fragment,{children:i})}),(0,a.jsxs)(n.A.Menu,{className:"dropdown-menu dropdown-menu-md dropdown-menu-right",children:[(0,a.jsx)("input",{value:v,onChange:e=>T(e.target.value),type:"text",placeholder:s("SEARCH_PLACEHOLDER"),className:"form-control form-control-sm search-input",name:"search-currency"}),(0,a.jsx)("hr",{className:"py-1 my-0"}),(0,a.jsx)("ul",{className:"navi navi-hover",children:(0,a.jsxs)(r(),{options:{wheelPropagation:!1},className:"scroll",style:{maxHeight:h.Fr?"250px":"400px",position:"relative"},children:[!!y?.length&&(0,a.jsx)("div",{className:"px-6 mb-1 mt-1",children:(0,a.jsx)("strong",{children:s("RECENT")})}),[...y,...I].map((e,t)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("li",{className:"navi-item",style:{cursor:"pointer"},children:(0,a.jsx)("div",{className:"navi-link",onClick:()=>(e=>{let{code:t}=e;!l&&_&&(0,x.LZ)(`portfolio-currency-${_.id}`,{code:t}),b((0,f.MN)({currency:t,isLocal:!!l})),document.dispatchEvent(new MouseEvent("click"))})(e),children:(0,a.jsx)(C.O,{hideIcon:!1,item:e})})},e.code),t===y.length-1&&(0,a.jsx)("hr",{})]}))]})})]})]})}):null}},66073:(e,t,s)=>{"use strict";s.d(t,{b:()=>d});var a=s(26514),n=s(87245),i=s(75834),r=s(60851);function l(e){let{children:t,provided:s,snapshot:n,portalClassName:l}=e,o=(0,i.useRef)({}).current;(0,i.useEffect)(()=>{let e=document.createElement("div");return e.style.position="absolute",e.style.pointerEvents="none",e.style.top="0",e.
4style.width="100%",e.style.height="100%",l&&e.classList.add(l),o.el=e,document.body.appendChild(e),()=>{document.body.removeChild(e)}},[o]);let c=(0,a.jsx)("div",{ref:s.innerRef,...s.draggableProps,children:t});return n.isDragging?(0,r.createPortal)(c,o.el):c}var o=s(57108),c=s.n(o);function d(e){let{droppableId:t,items:s,draggableId:r,renderItem:o,portalClassName:d,onDragEnd:u,rootComponent:m="div",usePortal:h=!1,rootRef:p,calculateRootHeight:x=!0,disableDragging:g=!1}=e,C=(0,i.useRef)();return g?(0,a.jsx)(m,{children:s.map((e,t)=>o(e,{dragHandleProps:{},draggableProps:{},innerRef:null},{isDragging:!1},t))}):(0,a.jsx)(n.JY,{onDragEnd:e=>{let t=p?.current||C?.current;if(t&&x&&setTimeout(()=>{t.style.height="inherit"},0),!e.destination)return;let a=[...s];a.splice(e.destination.index,0,a.splice(e.source.index,1)[0]),u(a)},onBeforeDragStart:()=>{if(!x)return;let e=p?.current||C.current;e&&(e.style.height=`${e.clientHeight}px`)},children:(0,a.jsx)(n.gL,{droppableId:t,children:(e,t)=>{let{isDraggingOver:i}=t;return(0,a.jsx)(m,{ref:t=>{e.innerRef(t),C.current=t},...e.droppableProps,className:i&&c().isDraggingOver,children:s.map((e,t)=>(0,a.jsx)(n.sx,{draggableId:r(e),index:t,children:(s,n)=>(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(l,{provided:s,snapshot:n,portalClassName:d,children:o(e,s,n,t)}):o(e,s,n,t)})},r(e)))})}})})}},68320:e=>{e.exports={container:"DripChart_container__6KFx8",header:"DripChart_header__qCjI0",title:"DripChart_title__lCAzM",legend:"DripChart_legend__6cum4",legendItem:"DripChart_legendItem__xNSBK",legendDot:"DripChart_legendDot__SpOpW",drip:"DripChart_drip__LvgNs",noDrip:"DripChart_noDrip__wQDJu",chartWrapper:"DripChart_chartWrapper__iizTa",note:"DripChart_note__VrtXg"}},70326:e=>{e.exports={select:"AiChatPortfolioSelect_select__82xWm",option:"AiChatPortfolioSelect_option__70Mq2",optionName:"AiChatPortfolioSelect_optionName__K_gZD",valueName:"AiChatPortfolioSelect_valueName__Q5X3Q"}},71497:(e,t,s)=>{"use strict";s.d(t,{M:()=>g});var a=s(26514),n=s(75834),i=s(62936),r=s.n(i),l=s(59757),o=s(16926),c=s(45251),d=s(47894),u=s(54253),m=s(18150),h=s(23426),p=s(40945),x=s(65119);function g(e){let t=(0,m.SL)(),s=(0,d.sc)(),i=(0,l.wA)(),g=(0,n.useMemo)(()=>({headerLogo:t.getStickyLogo(),asideDisplay:r().get(t.config,"aside.self.display"),headerMenuSelfDisplay:("public"!=e.type||!!s)&&!0===r().get(t.config,"header.menu.self.display"),headerMobileCssClasses:t.getClasses("header_mobile",!0),headerMobileAttributes:t.getAttributes("header_mobile")}),[t]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{id:"kt_header_mobile",className:"header-mobile align-items-center header-mobile-fixed",...g.headerMobileAttributes,children:[(0,a.jsxs)("div",{className:"d-flex align-items-center",children:["public"==e.type&&!s&&(0,a.jsx)("button",{type:"button",className:"btn p-0 burger-icon burger-icon-left mr-4",id:"kt_header_mobile_toggle",children:(0,a.jsx)("span",{})}),("public"==e.type||"main"==e.type)&&(0,a.jsx)(c.N,{legacyBehavior:!0,href:"/",children:(0,a.jsx)("a",{onClick:function(){i((0,o.Aj)())},children:(0,a.jsx)("img",{alt:"logo",src:(0,u.oK)("/media/logos/symbol.svg"),style:{height:"40px"}})})})]}),(0,a.jsxs)("div",{className:"d-flex align-items-center",children:["main"==e.type&&(0,a.jsx)(p.b,{pendingNotifications:e.pendingNotifications,view:x.S.Mobile}),"public"==e.type&&(0,a.jsx)(h.I,{view:x.S.Mobile})]})]})})}},71532:e=>{e.exports={title:"ComparisonTable_title__4Da2t"}},71582:e=>{e.exports={root:"CurrencyPairImage_root__OcZJb","root-sm":"CurrencyPairImage_root-sm__hQz_S","root-md":"CurrencyPairImage_root-md__W1Z3R"}},72524:e=>{e.exports={seoSection:"SEOContentSection_seoSection__WoDzo",sectionTitle:"SEOContentSection_sectionTitle__v73gi",seoContent:"SEOContentSection_seoContent__HlWQL"}},73311:(e,t,s)=>{"use strict";s.d(t,{r:()=>r});var a=s(26514);s(75834);var n=s(71582),i=s.n(n);function r(e){let{toLogo:t,fromLogo:s,size:n="md"}=e;return(0,a.jsxs)("div",{className:`${i().root} ${i()[`root-${n}`]}`,children:[(0,a.jsx)("img",{src:t}),(0,a.jsx)("img",{src:s})]})}},73822:(e,t,s)=>{"use strict";s.d(t,{c:()=>u});var a=s(26514);s(75834);var n=s(73700),i=s(93760),r=s(59757),l=s(80966),o=s(91283),c=s(55285);
4let d={"en-US":{thousand:",",decimal:".",currencyPrefix:!0},"en-GB":{thousand:",",decimal:".",currencyPrefix:!0},"fr-FR":{thousand:" ",decimal:",",currencyPrefix:!1},"en-CA":{thousand:",",decimal:".",currencyPrefix:!0},"en-IN":{thousand:",",decimal:".",currencyPrefix:!0,thousandsGroupStyle:"lakh"},"ru-RU":{thousand:" ",decimal:",",currencyPrefix:!1}};function u(e){var t;let s,{i18n:{language:u}}=(0,i.B)("common"),{locale:m}=(0,r.d4)(e=>{let{auth:t}=e;return{locale:t?.user?.locale??(0,c.Q_)(u)}},r.bN),h=((t=m)||(t=(0,c.Q_)(u)),null==(s=d[t])&&(s=d[(0,o.Tq)(u)]),s),{thousandSeparator:p,decimalSeparator:x,...g}=e,C=l.un?{type:"text",inputMode:"decimal",onInput:e=>{","===e.nativeEvent.data&&"."===h.decimal&&(e.target.value=e.target.value.replace(/,$/,"."))}}:{};return(0,a.jsx)(n.HG,{thousandSeparator:h.thousand,decimalSeparator:h.decimal,thousandsGroupStyle:h.thousandsGroupStyle,...C,...g})}},74381:e=>{e.exports={drawer:"AiChatDrawer_drawer__Kt5RP",paper:"AiChatDrawer_paper__p90dw",header:"AiChatDrawer_header__dIfTt",title:"AiChatDrawer_title__DSNFb",aiIcon:"AiChatDrawer_aiIcon__yFOY4",previewBadge:"AiChatDrawer_previewBadge___Qi0r",closeButton:"AiChatDrawer_closeButton__IUghg",closeIcon:"AiChatDrawer_closeIcon__J1G4l",body:"AiChatDrawer_body__gioki",chatPanel:"AiChatDrawer_chatPanel__PnMBn",resizeHandle:"AiChatDrawer_resizeHandle__KlZNH"}},75165:(e,t,s)=>{"use strict";s.d(t,{b:()=>u});var a=s(26514);s(75834);var n=s(93760),i=s(59757),r=s(47115),l=s(10140),o=s(55285);let c={[r.K4.IT_IT]:r.K4.DE_DE};function d(e,t){return t!=r.K4.FR_FR&&t!=r.K4.IT_IT&&t!=r.K4.RU_RU&&(t==r.K4.EN_CA||t==r.K4.EN_GB||t==r.K4.EN_US||"ru"!=e)}function u(e){let{i18n:{language:t}}=(0,n.B)("common"),s="ru"===t?"ru":"en",{stealthMode:r,locale:u}=(0,i.d4)(e=>{let{ui:s,auth:a}=e;return{stealthMode:!0===s.stealthMode,locale:a?.user?.locale??(0,o.Q_)(t)}},i.bN);u&&(s=u),c[s]&&(s=c[s]);let m=e.value??0,h=e.currency?e.currency:"USD",p=e.isMoney&&!d(t,u)?(0,l.Qn)(h):null,x=e.isMoney&&d(t,u)?(0,l.Qn)(h):null,g="",C=null,f=null;e.showColors&&m>0?g="text-success":e.showColors&&m<0&&(g="text-danger"),e.precision&&e.precision>=0&&(m=(+m).toFixed(e.precision)),e.symbol&&"sign"===e.symbol?(e.value>0&&(C=(0,a.jsx)(a.Fragment,{children:"+"})),e.value<0&&(C=(0,a.jsx)(a.Fragment,{children:"-"}))):e.symbol&&"triangle"===e.symbol?(e.value>0&&(C=(0,a.jsx)("i",{className:`fas fa-caret-up mr-1 ${g}`})),e.value<0&&(C=(0,a.jsx)("i",{className:`fas fa-caret-down mr-1 ${g}`}))):"brackets"==e.symbol?m<0&&(C="(",f=")"):e.symbol&&(C=e.symbol),!C&&e.value<0&&(C=(0,a.jsx)(a.Fragment,{children:"-"}));let A=e.className??"";e.inLabel&&(A+=" label label-lg label-inline font-weight-bold p-1 mr-1",e.showColors&&m>0?A+=" label-light-success":e.showColors&&m<0?A+=" label-light-danger":A+=" label-light");let N=2*!!e.isMoney,_=e.isMoney||e.isPercent?2:3;return null!=e.precision&&void 0!==e.precision&&(_=e.precision),"auto"==e.precision&&(N=0,_=8),_<N&&(_=N),(0,a.jsxs)(a.Fragment,{children:[!isNaN(m)&&(0,a.jsxs)("span",{style:{whiteSpace:"nowrap"},className:`${g} ${A}`,children:[C,x,!e.ignoreStealth&&(r||e.stealthMode)&&(e.isMoney||e.hideWhenMoneyHidden)?"â¢â¢â¢â¢":new Intl.NumberFormat(s,{notation:e.isCompact?"compact":"standard",minimumFractionDigits:N,maximumFractionDigits:_}).format(C?Math.abs(m):m).replace(/\s/g," "),p?(0,a.jsxs)(a.Fragment,{children:["\xa0",p]}):null,e.isPercent?"%":"",f]}),isNaN(m)&&(0,a.jsx)("span",{children:"-"})]})}},75877:(e,t,s)=>{"use strict";s.d(t,{Es:()=>I,jC:()=>S,qw:()=>E,l8:()=>L});var a=s(26514),n=s(46225),i=s(75834),r=s(30985),l=s(93760),o=s(2782),c=s(4068),d=s(61392),u=s(47115),m=s(55681),h=s(13285),p=s(2587),x=s.n(p),g=s(45041);function C(e){let{portfolio:t}=e,{t:s}=(0,l.B)(["import"]),n=i.useRef(null),{data:r,isLoading:p}=(0,h.F)({portfolioId:t.id});return(0,a.jsxs)("div",{className:`rounded-xl p-4 ${x().root} ${x().block}`,children:[(0,a.jsxs)("div",{className:"font-weight-bold",children:[r?.success?(0,a.jsx)(d.A,{sx:{marginRight:"0.5rem"}}):(0,a.jsx)(c.A,{sx:{marginRight:"0.5rem"}}),s(t.syncProvider==u.nK.YODLEE||t.syncProvider==u.nK.SNAPTRADE||t.syncProvider==u.nK.PLAID?"IMPORT.API.YODLEE":t.isComposite?"IMPORT.API.INTEGRATION_MULTIPLE":"IMPORT.API.INTEGRATION",{ns:"import"})," ",(t.broker==u.eC.TINKOFF||t.broker==u.eC.BINANCE||t.broker==u.eC.JETLEND||t.broker==u.eC.FINAM||t.broker==u.eC.BKS)&&(0,a.jsxs)(a.Fragment,{children:[t.broker," API"]})]}),(0,a.jsxs)("div",{className:"text-dark-50 font-size-sm",children:[p&&(0,a.jsx)(o.A,{variant:"text",sx:{fontSize:"1.5rem"}}),!p&&r&&(0,a.jsx)(m.k,{result:r,portfolio:t,withButton:!1,withIcons:!1,seeMore:!0})]}),(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsx)("button",{type:"button",className:"btn btn-sm btn-white btn-white-color shadow-sm font-weight-bold",onClick:()=>{n&&n.current&&n.current.showPinModal()},children:s("LAST_SYNC.UPDATE_DATA_NOW",{ns:"import"})}),(0,a.jsx)(g.J,{ref:n,portfolioId:t.id,portfolio:t})]})]})}var f=s(55285),A=s(49732),N=s(4469),_=s(67614),b=s(50514),j=s(77232);let v="AddActionsSelector",T={showPulse:!1},E="topbar",S="inline",I="compact",y=(0,i.forwardRef)((e,t)=>{let{t:s}=(0,l.B)("layout"),[n,r]=(0,i.useState)(T);(0,i.useEffect)(()=>{r(N.Gu(v,T))},[]);let o=(()=>{switch(e.toggleType){case S:return j.AB;case I:return j.uz;default:return j.qS}})(e.type);return(0,a.jsx)(o,{ref:t,title:s("MENU.QUICK_ACTIONS.ADD"),onClick:t=>{t.preventDefault(),function(){if(n.showPulse){let e={...n};e.showPulse=!1,r(e),N.LZ(v,e)}e.afterToggle&&e.afterToggle()}(),e.onClick(t)},showPulse:n.showPulse,icon:e.showActiveSync?"/media/svg/icons/General/sync-plus.svg":"/media/svg/icons/Code/Plus.svg"})});function R(e){return(0,a.jsxs)(r.A.Item,{id:e.id,className:"dropdown-item font-weight-bold",as:"button",onClick:e.onClick,children:[e.icon&&(0,a.jsx)(A.A,{className:"mt-n1 mr-3",size:"sm",color:"none",src:i.isValidElement(e.icon)?e.icon:`/media/svg/icons/${e.icon}`})," ",e.text]})}function L(e){let{id:t,currentPortfolio:s,includeSync:o,type:c=E}=e,{t:d}=(0,l.B)(["layout","import"]),[m,h]=(0,i.useState)(c===I),p=(0,n.useRouter)();function x(e){document.dispatchEvent(new MouseEvent("click")),p.push(e)}return(0,a.jsx)(a.Fragment,{children:s&&(0,a.jsxs)(r.A,{id:t,className:"align-items-stretch",drop:"down",alignRightc:!0,children:[(0,a.jsx)(r.A.Toggle,{toggleType:c,showActiveSync:s.isAutoSyncEnabled,as:y,id:"dropdown-toggle-quick-actions-subheader"}),(0,a.jsx)(r.A.Menu,{className:"dropdown-menu dropdown-menu-md dropdown-menu-right dropdown-menu-anim quick-actions-dd",children:(0,a.jsxs)("div",{className:"dropdown-menu-wrapper",children:[o&&s.isAutoSyncEnabled&&(0,a.jsxs)(a.Fragment,{children:[(0,f.de)()&&(0,a.jsx)(r.A.Header,{className:"dropdown-header text-muted font-weight-bold",children:d("HOLDINGS.ADD.SYNC_HEADER")}),(0,a.jsx)("div",{className:"mx-3 my-1",children:(0,a.jsx)(C,{portfolio:s})}),(0,f.de)()&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(R,{id:"add-selector-sync-accounts",onClick:()=>{x("/sync-accounts")},text:d("QUICK_ACTIONS.MANAGE_SYNC_ACCOUNTS"),icon:(0,a.jsx)(b.Ze,{})}),(0,a.jsx)(r.A.Divider,{className:"dropdown-divider"})]})]}),(0,a.jsx)(r.A.Header,{className:"dropdown-header text-muted font-weight-bold",children:d("HOLDINGS.ADD.HEADER")}),(!s.isComposite&&s.type!=u.N$.HOLDINGS||s.isComposite)&&(0,a.jsx)(R,{id:"add-selector-new-transaction",onClick:()=>{x("/transactions#add-tran")},text:d("QUICK_ACTIONS.NEW_TRANSACTION"),icon:(0,a.jsx)(b.c1,{})}),(!s.isComposite&&s.type!=u.N$.HOLDINGS||s.isComposite)&&(0,a.jsx)(R,{id:"add-selector-new-div",onClick:()=>{x("/transactions#add-div")},text:d("QUICK_ACTIONS.NEW_DIV"),icon:(0,a.jsx)(b.c1,{})}),!s.isComposite&&s.type!=u.N$.HOLDINGS&&(0,a.jsx)(R,{id:"add-selector-import-transactions",onClick:()=>{x("/import-transactions")},text:d("QUICK_ACTIONS.UPLOAD_REPORT_2"),icon:(0,a.jsx)(b.z5,{})}),!s.isComposite&&s.type==u.N$.HOLDINGS&&(0,a.jsx)(R,{id:"add-selector-new-asset",onClick:()=>{x("/assets#add")},text:d("QUICK_ACTIONS.ADD_HOLDING"),icon:(0,a.jsx)(b.c1,{})}),!s.isComposite&&s.type==u.N$.HOLDINGS&&(0,a.jsx)(R,{id:"add-selector-edit-holdings",onClick:()=>{x("/edit-holdings")},text:d("QUICK_ACTIONS.EDIT_HOLDINGS"),icon:(0,a.jsx)(b.qU,{})}),!s.isComposite&&(0,a.jsx)(R,{id:"add-selector-manage-cash",onClick:()=>{x("/cash")},text:d("QUICK_ACTIONS.MANAGE_CASH"),icon:(0,a.jsx)(b.lc,{})}),c!==I&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.A.Divider,{className:"dropdown-divider"}),(0,a.jsx)(r.A.Header,{className:"text-muted font-weight-bold",children:d("HOLDINGS.ADD.PORTFOLIOS")}
4),(0,a.jsx)(R,{id:"add-selector-add-portfolio",onClick:()=>{x("/new-portfolio")},text:d("QUICK_ACTIONS.NEW_PORTFOLIO"),icon:(0,a.jsx)(b.gi,{})}),(0,a.jsx)(R,{id:"add-selector-add-composite",onClick:()=>{x("/manage-portfolios#add-composite")},text:d("QUICK_ACTIONS.NEW_COMPOSITE_PORTFOLIO"),icon:(0,a.jsx)(b.mL,{})})]}),!s.isComposite&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.A.Divider,{}),!m&&(0,a.jsx)("div",{className:"my-4 px-5",children:(0,a.jsx)("a",{className:"font-weight-bold text-body text-hover-primary",href:void 0,onClick:e=>{e.preventDefault(),e.stopPropagation(),h(!0),(0,_.s9)({event:_.Mg.HEADER_ADD_CLICK,element_name:"more_actions"})},children:d("BUTTON.MORE_ACTIONS",{ns:"common"})})}),m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.A.Header,{className:"text-muted font-weight-bold",children:d("HOLDINGS.ADD.OTHER")}),(0,a.jsx)(R,{id:"add-selector-new-custom-holding",onClick:()=>{(0,_.s9)({event:_.Mg.ADD_CUSTOM_CLICKED,source:c===I?_.D0.ASSETS_PAGE:_.D0.HEADER}),x("/custom-holding-edit/new")},text:d("QUICK_ACTIONS.ADD_CUSTOM_HOLDING"),icon:(0,a.jsx)(b.sj,{})}),s.type!==u.N$.HOLDINGS&&(0,a.jsx)(R,{id:"add-selector-new-corporate-action",onClick:()=>{x("/corporate-actions")},text:d("QUICK_ACTIONS.ADD_CORPORATE_ACTION"),icon:(0,a.jsx)(b.Nb,{})})]})]}),s.isComposite&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.A.Divider,{}),(0,a.jsx)("div",{className:"p-3 font-size-sm text-dark-50 mx-3",children:d("QUICK_ACTIONS.ADD.COMPOSITE_MESSAGE")})]})]})})]})})}},77232:(e,t,s)=>{"use strict";s.d(t,{AB:()=>c,qS:()=>o,uz:()=>d});var a=s(26514),n=s(75834),i=s(93760),r=s(49732),l=s(83602);let o=(0,n.forwardRef)((e,t)=>{let{isDark:s}=(0,l.DP)();return(0,a.jsxs)("button",{id:e.id,type:"button",title:e.title,ref:t,onClick:e.onClick,className:`btn btn-sm btn-clean btn-icon mr-2 ${e.className} ${e.showPulse?"pulse pulse-primary":""}`,style:{alignSelf:"center"},children:[(0,a.jsx)(r.A,{src:e.icon,size:e.iconSize??"xl",color:e.iconColor??"primary"}),e.showPulse&&(0,a.jsx)("span",{className:"pulse-ring"})]})}),c=(0,n.forwardRef)((e,t)=>{let{t:s}=(0,i.B)("common");return(0,a.jsxs)("button",{type:"button",title:e.title,ref:t,onClick:e.onClick,className:`btn font-weight-bold d-flex align-items-center ${!e.className?"mr-3 btn-sm btn-light-primary":e.className}`,style:{alignSelf:"center"},children:[(0,a.jsx)(r.A,{src:e.icon,size:e.iconSize??"md",color:"none"}),s("BUTTON.ADD")]})}),d=(0,n.forwardRef)((e,t)=>{let{t:s}=(0,i.B)("common");return(0,a.jsxs)("button",{type:"button",title:e.title,ref:t,onClick:e.onClick,className:"btn btn-md btn-white shadow-sm font-weight-bold d-flex align-items-center",style:{alignSelf:"center"},children:[(0,a.jsx)(r.A,{src:e.icon,size:e.iconSize??"md",color:"dark"}),s("BUTTON.ADD_INVESTMENTS")]})})},77390:e=>{e.exports={header:"AiChatFeedbackReasonPopover_header__9YXaQ",chips:"AiChatFeedbackReasonPopover_chips___40co"}},77938:e=>{e.exports={navi:"PortfolioSelector_navi__ypKFr",portfolioList:"PortfolioSelector_portfolioList__EmYQl",scrollbar:"PortfolioSelector_scrollbar__vXCFI"}},78681:e=>{e.exports={card:"DividendHealthCard_card__hOTp1",cardHeader:"DividendHealthCard_cardHeader__I24wf",cardLabel:"DividendHealthCard_cardLabel__g6Qsa",cardSubtext:"DividendHealthCard_cardSubtext__PSeLx",valueText:"DividendHealthCard_valueText__VfaEe",progressBar:"DividendHealthCard_progressBar__i0DBn",progressFill:"DividendHealthCard_progressFill__biGnD"}},81221:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m,a:()=>h});var a=s(26514);s(75834);var n=s(93760),i=s(59757),r=s(38089),l=s(77177),o=s(29622),c=s(49732),d=s(16926),u=s(55285);function m(e){let{t}=(0,n.B)("layout"),s=(0,i.wA)(),{stealthMode:r}=(0,i.d4)(e=>{let{ui:t}=e;return{stealthMode:!0===t.stealthMode}});return(0,u.E8)()?null:(0,a.jsx)("button",{type:"button",className:`btn btn-sm btn-link-muted text-hover-primary btn-icon ${e.className??""}`,title:t(r?"QUICK_ACTIONS.STEALTH_OFF":"QUICK_ACTIONS.STEALTH_ON"),onClick:()=>{s((0,d.R8)(!r))},children:r?(0,a.jsx)(l.A,{color:"muted",fontSize:"small"}):(0,a.jsx)(o.A,{color:"muted",fontSize:"small"})})}function h(){let{t:e}=(0,n.B)("layout"),t=(0,i.wA)(),{stealthMode:s}=(0,i.d4)(e=>{let{ui:t}=e;return{stealthMode:!0===t.stealthMode}});return(0,u.E8)()?null:(0,a.jsx)(r.A,{in:s,children:(0,a.jsx)("div",{className:"alert alert-custom alert-outline-2x alert-outline-warning subscription-danger gutter-b d-flex flex-column align-items-start pt-3 pb-1",role:"alert",children:(0,a.jsxs)("div",{className:"row justify-content-between w-100",children:[(0,a.jsxs)("div",{className:"col-sm-12 col-md-auto d-flex align-items-center mb-2",children:[(0,a.jsx)(c.A,{className:"mr-2 d-none d-md-block",src:"/media/svg/icons/General/Hidden.svg",color:"warning",size:"2x"}),(0,a.jsx)("span",{children:e("STEALTH_ENABLED.MESSAGE")})]}),(0,a.jsx)("div",{className:"col-sm-12 col-md-auto mb-2",children:(0,a.jsx)("button",{type:"button",className:"btn btn-warning font-weight-bold",onClick:function(){t((0,d.R8)(!s))},children:e("BUTTON.DISABLE_STEALTH")})})]})})})}},83094:(e,t,s)=>{"use strict";s.d(t,{P:()=>r,R:()=>i});var a=s(47072),n=s(72596);let i=(0,n.Ay)(a.Ay)(()=>({"&.MuiInputBase-root":{color:"var(--sb-text-dark65)",backgroundColor:"transparent",padding:"0.3rem 0.5rem",fontWeight:"500"},"& .MuiInputBase-input":{position:"relative",border:"none",fontSize:"0.93rem",padding:"0 12px 0 0",paddingRight:"12px!important"}})),r=(0,n.Ay)(a.Ay)(()=>({"&.MuiInputBase-root":{color:"var(--sb-primary)",backgroundColor:"transparent",padding:"0.3rem 0.5rem",fontWeight:"500"},"& .MuiInputBase-input":{position:"relative",border:"none",fontSize:"1.22rem",padding:"0 20px 0 0",paddingRight:"20px!important",width:"auto",maxWidth:"220px"},"& .MuiInputBase-input:focus":{backgroundColor:"transparent"}}))},83156:e=>{e.exports={activeRow:"ComparisonTableRow_activeRow__pU0qf",assetCell:"ComparisonTableRow_assetCell__Hw87C",assetInfo:"ComparisonTableRow_assetInfo__JXJ9G",assetTicker:"ComparisonTableRow_assetTicker__W0JD8",assetName:"ComparisonTableRow_assetName__lXqx_",activeBadge:"ComparisonTableRow_activeBadge__cdodQ",calculateLink:"ComparisonTableRow_calculateLink__F8ikH"}},88308:e=>{e.exports={inputContainer:"AiChatForm_inputContainer__Zu3gN",composer:"AiChatForm_composer__kzyGh",textarea:"AiChatForm_textarea__VSMPo",symbolCounter:"AiChatForm_symbolCounter__q3x5P",symbolCounterWarning:"AiChatForm_symbolCounterWarning__IdJhI",symbolCounterDanger:"AiChatForm_symbolCounterDanger__lJ7S4",divi
4der:"AiChatForm_divider__bgT0T",bottomRow:"AiChatForm_bottomRow__HSMrq",actions:"AiChatForm_actions__urZgj",actionBtn:"AiChatForm_actionBtn__oQheU",actionIcon:"AiChatForm_actionIcon__hZTAA",sendBtn:"AiChatForm_sendBtn__eMr_2",stopBtn:"AiChatForm_stopBtn__vgOd4"}},89139:e=>{e.exports={root:"AiChatButton_root__Rk8zd",highlighted:"AiChatButton_highlighted__wW2Pq",rotateConic:"AiChatButton_rotateConic__ciFsR",pulsed:"AiChatButton_pulsed__dqil_","pulse-border":"AiChatButton_pulse-border__1UDNb",icon:"AiChatButton_icon__G_fng","icon-glow":"AiChatButton_icon-glow__rKgK0",animated:"AiChatButton_animated__m08Jn","rotate-border":"AiChatButton_rotate-border__Skv1x"}},90952:(e,t,s)=>{"use strict";s.d(t,{q:()=>f});var a=s(26514),n=s(75834),i=s(93760),r=s(51065),l=s.n(r),o=s(46225),c=s(21069),d=s(47115),u=s(50062),m=s(96456),h=s.n(m),p=s(73311),x=s(10140);function g(e){let{item:t,href:s,openInNewTab:n=!1,onClick:r}=e,{t:l}=(0,i.B)("common"),o=(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between pr-3",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center overflow-hidden",style:{maxWidth:"100%"},children:[(0,a.jsx)("div",{className:"py-2",children:t.type===d.PW.QUOTE?(0,a.jsx)("div",{className:"mr-2",children:(0,a.jsx)(p.r,{fromLogo:t.primaryLogoURL,toLogo:t.logoURL})}):(0,a.jsx)(c.hz,{logoUrl:t.logoURL,primaryLogoUrl:t.primaryLogoURL,name:t.description,assetType:t.type,ticker:t.ticker})}),(0,a.jsx)("div",{className:"py-2 flex-grow-1 overflow-hidden",children:(0,a.jsxs)("div",{className:"asset-info-container",children:[(0,a.jsxs)("p",{className:"text-muted asset-info-name link-item",children:[t.ticker," ",!!t.exchange&&(0,a.jsxs)(a.Fragment,{children:["(",t.exchange,")"]}),t.isDelisted&&(0,a.jsx)("span",{className:"label label-sm label-inline label-light-warning ml-2",children:l("ASSET_DELISTED")})]}),(0,a.jsx)("p",{className:"asset-info-description",title:t.description,children:t.description})]})})]}),(0,a.jsx)("div",{className:"ml-2 d-flex align-items-center",children:(0,a.jsx)("span",{className:"font-size-sm text-dark-50",children:(0,a.jsx)("span",{children:(0,x.Qn)(t.currency)})})})]});return s?(0,a.jsx)(h(),{legacyBehavior:!0,href:s,children:(0,a.jsx)("a",{onClick:r,target:n?"_blank":"_self",className:"asset-link text-body flex-grow-1 overflow-hidden","aria-disabled":"true",children:o})}):(0,a.jsx)("div",{className:"text-body flex-grow-1 overflow-hidden",children:o})}let C={wheelSpeed:2,wheelPropagation:!1};function f(e){let{onItemClicked:t,openInNewTab:s,isRecent:r,data:m,renderItem:h=(e,t)=>t}=e,{t:p}=(0,i.B)("common"),x=(0,o.useRouter)(),[f,A]=(0,n.useState)(null),N=x.pathname.startsWith("/public/asset"),_=x.pathname.startsWith("/public/asset")?x.query?.tab?.[0]:"";return((0,n.useEffect)(()=>{x.pathname.indexOf("public/asset")>=0&&!window.location.hash.startsWith("#comment")?A(window.location.hash):A(null)},[x]),m)?0===m.length?(0,a.jsx)("div",{style:{maxHeight:"325px",overflow:"hidden"},className:"quick-search-wrapper scroll ps ps--active-y",children:(0,a.jsx)("div",{className:"quick-search-result",children:(0,a.jsx)("div",{className:"text-muted d-none",children:p("ERROR.NOTHING_FOUND")})})}):(0,a.jsx)("div",{style:{maxHeight:"325px",overflow:"hidden"},className:"quick-search-wrapper scroll ps ps--active-y mb-0",children:(0,a.jsx)(l(),{options:C,className:"scroll",style:{maxHeight:"325px",position:"relative"},children:(0,a.jsxs)("div",{className:"quick-search-result pb-4",children:[r&&(0,a.jsx)("div",{className:"text-muted font-weight-bold py-2 font-size-sm",children:p("RECENT_ITEMS")}),m.map((e,n)=>(0,a.jsx)("div",{className:`d-flex align-items-center pr-3 ${n>0?"border-top":""}`,children:h(e,(0,a.jsx)(g,{item:e,href:function(e){if(e?.type===d.PW.QUOTE)return null;let t=(0,c.A)(e.assetType,e.id,e.ticker,e.exchange,e.currency);return N&&_&&(0,u.Zu)(_,e)?`${t}/${_}${f??""}`:`${t}${f??""}`}(e),openInNewTab:s,onClick:()=>{t&&t(e)}}))},`${e.ticker}.${e.exchange}.${e.currency}`))]})})}):null}},91549:e=>{e.exports={streakBadge:"GrowthStreakCard_streakBadge__eRCMG"}},95965:e=>{e.exports={root:"AiChatQuestionBadge_root__lGlSk",icon:"AiChatQuestionBadge_icon__PNRbJ"}},96210:(e,t,s)=>{"use strict";s.d(t,{T:()=>r});var a=s(26514);s(75834);var n=s(33502),i=s.n(n);function r(e){let{children:t,component:s,handleProps:n,isDragging:r=!1,disableDragging:l=!1,className:o="",...c}=e;return(0,a.jsxs)(s??"div",{className:`${r?i().dragging:""} ${i().listItem} ${o}`,...c,children:[!l&&(0,a.jsx)("i",{...n,className:`fas fa-grip-horizontal icon-nm p-3 ${i().listHandle}`}),t]})}}},e=>{e.O(0,[3803,6456,4638,8245,6725,1394,9754,5386,7973,5888,1757,1879,7346,1291,6934,683
41,8129,2698,4291,8519,3700,1849,5020,5331,7153,3211,636,6593,8792],()=>e(e.s=50374)),_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.