PageSourceSearch

https://snowball-analytics.com/_next/static/chunks/pages/public/asset/[slug]/[[...tab]]-012b169f7d5c89c2.js

js snowball-analytics.com collected 2026-10-02 08:18:19 UTC 207,990 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1465,2189,3178,3425,3846,8050,8588],{552:(e,t,s)=>{"use strict";s.d(t,{d:()=>R});var a=s(26514),n=s(75834),i=s(74170),r=s(24665),l=s(97653),o=s(93969),c=s(60008),d=s(52828),u=s(39781),h=s(14009),m=s(7086),p=s(68208),f=s.n(p),S=s(89754),g=s(91394),x=s(64137),v=s(80824),b=s(46815),N=s(63390),T=s(152),E=s(5625),O=s(3163),A=s(15269),I=s(36241),y=s(78693),C=s(79598),j=s(10164);class P extends n.Component{static #e=this.propTypes={onHide:f().func,type:f().string};constructor(e){super(e),this.portfolioSchema=S.Ik().shape({name:S.Yj().nullable().max(100,this.props.t("CLONE.VALIDATION.NAME_MAX")),destinationPortfolioId:S.Yj().nullable().max(100,this.props.t("CLONE.VALIDATION.NAME_MAX")),cloneToNew:S.zM()}),this.protoSetState=e=>{this._isMounted&&this.setState(e)},this.open=e=>{this.setState({blocking:!0}),m.A.get(`${N.kn6}/get-rights`).then(t=>{let{data:s}=t;if(s.canCreate)this.setState({show:!0,sourcePortfolioId:e.portfolioId,canAddPortfolios:!0,portfolio:{name:e.name+this.props.t("CLONE.NAME_POSTFIX"),destinationPortfolioId:"",cloneToNew:!0}});else{let t=this.state.portfolios.length>0?this.state.portfolios[0]:null;this.setState({show:!0,sourcePortfolioId:e.portfolioId,canAddPortfolios:!1,portfolio:{name:e.name+this.props.t("CLONE.NAME_POSTFIX"),destinationPortfolioId:t?.id??"",cloneToNew:!1}})}}).catch(e=>{console.error(e)}),this.setState({blocking:!1})},this.openForBacktest=(e,t)=>{null!=e&&e.length>0&&(this.setState({allocationsToSave:e}),this.setState({blocking:!0}),m.A.get(`${N.kn6}/get-rights`).then(e=>{let{data:s}=e;this.setState(()=>({canAddPortfolios:s.canCreate,show:!0,portfolio:{destinationPortfolioId:t??(this.state.portfolios.length>0?this.state.portfolios[0].id:""),name:this.props.t("MY_PORTFOLIO"),cloneToNew:!1}}))}).catch(e=>{console.error(e)}),this.setState({blocking:!1}))},this.close=()=>{this.setState({show:!1,sourcePortfolioId:null,portfolio:{name:"",destinationPortfolioId:"",cloneToNew:!0},allocationsToSave:[]}),this.props.onHide&&this.props.onHide()},this.getPortfolios=async()=>{try{let{data:e}=await m.A.get(N.kn6);this.setState({portfolios:e})}catch(e){console.error(e)}},this.save=async(e,t)=>{this.protoSetState({blocking:!0});try{let t=N.kn6,s=this.state.sourcePortfolioId??null,a=e?e.destinationPortfolioId:null,n=!0;if(e.cloneToNew?a=null:(null==a||""===a)&&(A.JB(this.props.t("CLONE_CATEGORIES.SELECT_PORTFOLIO")),n=!1),n){let n={newName:e?e.name:null,id:s,destinationPortfolioId:a};t=`${t}/clone-portfolio-categories/${s}`,"backtest"==this.props.type&&(t=N.KHu,n.allocations=this.state.allocationsToSave,n.backtestName="Backtest 1"),n.Id=s;let{data:i}=await m.A.post(t,n);this.protoSetState({portfolio:i}),A.uT(this.props.t("CLONE.SUCCESS_MESSAGE")),E.M_.dispatch((0,O.Gg)(i)),E.M_.dispatch((0,O.lT)(new Date)),E.M_.dispatch((0,O.Sq)(i)),this.close()}}catch(e){(0,I.ZC)(e,t)}this.protoSetState({blocking:!1})},this._isMounted=!1,this.state={portfolio:{name:"",destinationPortfolioId:"",cloneToNew:!0},sourcePortfolioId:null,blocking:!1,show:!1,portfolios:[],allocationsToSave:[],canAddPortfolios:!0}}componentDidMount(){this._isMounted=!0,this.getPortfolios()}componentWillReceiveProps(){}componentWillUnmount(){this._isMounted=!1}getBrokerIcon(e,t){let s=e||t.broker;return(0,y.Tb)(t,s)}render(){return(0,a.jsxs)(i.A,{size:"md",show:this.state.show,onHide:this.close,"aria-labelledby":"example-modal-sizes-title",children:[(0,a.jsxs)(a.Fragment,{children:[this.state.blocking&&(0,a.jsx)(T.q3,{}),(0,a.jsx)(i.A.Header,{closeButton:!0,children:(0,a.jsx)(i.A.Title,{id:"example-modal-sizes-title",children:"backtest"==this.props.type?this.props.t("BACKTEST.SAVE_ALLOCATIONS.TITLE",{ns:"backtest"}):this.props.t("CLONE_CATEGORIES.TITLE")})})]}),(0,a.jsxs)(i.A.Body,{className:"overlay overlay-block cursor-default",children:[this.state.blocking&&(0,a.jsx)("div",{className:"overlay-layer bg-transparent",children:(0,a.jsx)("div",{className:"spinner spinner-lg spinner-success"})}),(0,a.jsx)(g.l1,{initialValues:this.state.portfolio,validationSchema:this.portfolioSchema,enableReinitialize:!0,onSubmit:(e,t)=>
1{this.save(e,t)},children:e=>(0,a.jsxs)(r.A,{onSubmit:e.handleSubmit,children:[e.errors.general&&(0,a.jsx)(l.A,{variant:"danger",children:e.errors.general}),(0,a.jsxs)("div",{className:"alert alert-light text-dark-65",children:[(0,a.jsxs)("h5",{children:["\uD83D\uDCA1 ",this.props.t("CLONE_CATEGORIES.MESSAGE_TITLE"),"?"]}),(0,a.jsx)("div",{children:this.props.t("CLONE_CATEGORIES.MESSAGE")}),(0,a.jsx)("div",{children:(0,a.jsx)(C.O,{className:"font-weight-bold",href:"categories-intro",target:"_blank",children:this.props.t("CLONE_CATEGORIES.MORE_LINK")})})]}),(0,a.jsx)(r.A.Row,{className:"justify-content-start ml-0",children:(0,a.jsxs)(r.A.Group,{as:o.A,className:"p-0 mr-2",style:{minWidth:"12rem"},children:[(0,a.jsx)(r.A.Label,{children:this.props.t("CLONE_CATEGORIES.LABEL")}),(0,a.jsx)("div",{className:"mr-2 col-auto p-0",children:(0,a.jsx)("div",{children:(0,a.jsx)(c.A,{className:"form-group col col-auto p-0 mr-2 mb-0",children:(0,a.jsxs)(d.A,{type:"radio",name:"cloneToNew",className:"widget-toggle-group toggle-md",onChange:t=>{if(e.setFieldValue("cloneToNew",t,!0),e.values.cloneToNew=t,!1==t&&!e.values.destinationPortfolioId){let t=this.state.portfolios.length>0?this.state.portfolios[0]:null;t&&(e.setFieldValue("destinationPortfolioId",t.id,!0),e.values.destinationPortfolioId=t.id)}},value:e.values.cloneToNew,defaultValue:!0,children:[(0,a.jsx)(u.A,{disabled:!this.state.canAddPortfolios,size:"sm",className:"font-weight-bold mr-2",variant:"white",value:!0,children:this.props.t("CLONE_CATEGORIES.CLONE_TO_NEW")}),(0,a.jsx)(u.A,{size:"sm",className:"font-weight-bold",variant:"white",value:!1,children:this.props.t("CLONE_CATEGORIES.CLONE_TO_EXISTING")})]})})})})]})}),e.values.cloneToNew?(0,a.jsxs)(r.A.Group,{children:[(0,a.jsx)(r.A.Label,{children:this.props.t("CLONE.FORM.NAME")}),(0,a.jsx)(r.A.Control,{className:"form-control-solid",size:"lg",type:"text",placeholder:"",onChange:e.handleChange,onBlur:e.handleBlur,value:e.values.name??"",name:"name"}),e.touched.name&&e.errors.name&&(0,a.jsx)("div",{className:"fv-plugins-message-container",children:(0,a.jsx)("div",{className:"fv-help-block",children:e.errors.name})})]}):(0,a.jsxs)(r.A.Group,{children:[(0,a.jsx)(r.A.Label,{children:this.props.t("CLONE_CATEGORIES.SELECT_PORTFOLIO")}),(0,a.jsx)(v.A,{className:"sb-select col form-control",variant:"filled",children:(0,a.jsx)(j.Q,{value:e.values.destinationPortfolioId,onChange:t=>{e.setFieldValue("destinationPortfolioId",t.target.value,!0),e.values.destinationPortfolioId=t.target.value},input:(0,a.jsx)(b.A,{name:"destinationPortfolioId",id:"filled-type-simple-2"}),items:this.state.portfolios.map(e=>({value:e.id,name:e.name,display:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"symbol symbol-25 mr-1 symbol-light",children:(0,a.jsx)("span",{className:"symbol-label",children:this.getBrokerIcon(e.broker??"Other",e)})}),(0,a.jsx)("span",{className:"navi-text top-dropdown-item",title:e.name,children:e.name})]})}))})})]}),(0,a.jsx)("div",{className:"d-flex justify-content-end align-items-start pt-2",children:(0,a.jsxs)(c.A,{className:"justify-content-end",children:[(0,a.jsx)(h.A,{size:"lg",className:"btn btn-light-primary font-weight-bold mb-2",type:"button",disabled:this.state.blocking,onClick:this.close,children:this.props.t("BUTTON.DISCARD",{ns:"common"})}),(0,a.jsx)(h.A,{size:"lg",className:"btn btn-primary font-weight-bold ml-2 mb-2",type:"submit",disabled:this.state.blocking,children:(0,a.jsx)("span",{children:this.props.t("BUTTON.CONTINUE",{ns:"common"})})})]})})]})})]})]})}}let R=(0,x.C)(["portfolio","common","backtest"],{withRef:!0})(P)},990:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,s,a){return s&&e(t.prototype,s),a&&e(t,a),t}}(),n=s(75834),i=l(n),r=l(s(68208));function l(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}t.default=function(){var e=i.default.createContext(),t=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function s(){if(!(this instanceof s))throw TypeError("Cannot call a class as a function");for(var e,t,a,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return t=a=o(this,(e=s.__proto__||Object.getPrototypeOf(s)).call.apply(e,[this].concat(i))),a.state={data:a.props.data},a.getData=function(e,t,s,n){return n?n.data:s?s.data:t?t.data:e?e.data:a.props.data},o(a,t)}return s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(s,t):s.__proto__=t),a(s,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState(function(){return{data:e.data}})}},{key:"render",value:function(){return i.default.createElement(e.Provider,{value:{data:this.state.data,getData:this.getData}},this.props.children)}}]),s}(n.Component);return t.propTypes={data:r.default.array.isRequired,children:r.default.node.isRequired},{Provider:t,Consumer:e.Consumer}}},5226:(e,t,s)=>{"use strict";function a(e){return e}s.d(t,{j:()=>a})},5390:(e,t,s)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},n=function(){function e(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,s,a){return s&&e(t.prototype,s),a&&e(t,a),t}}(),i=o(s(75834)),r=o(s(68208)),l=o(s(37242));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,s){var o=i.default.createContext(),c=function(r){if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function, not "+typeof r);function l(e){if(!(this instanceof l))throw TypeError("Cannot call a class as a function");var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e));d.call(t);var s=void 0,a=void 0,n=e.defaultSorted,i=e.defaultSortDirection,r=e.sort;return n&&n.length>0?(s=n[0].order||i,a=t.initSort(n[0].dataField,s)):r&&r.dataField&&r.order&&(s=r.order,a=t.initSort(r.dataField,s)),t.state={sortOrder:s,sortColumn:a},t}return l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r),n(l,[{key:"componentDidMount",value:function(){var e=this.state,a=e.sortOrder,n=e.sortColumn;t()&&a&&n&&s(n.dataField,a)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.sort,s=e.columns;t&&t.dataField&&t.order&&this.setState({sortOrder:t.order,sortColumn:s.find(function(e){return e.dataField===t.dataField})})}},{key:"initSort",value:function(e,t){var s=void 0,a=this.props.columns.filter(function(t){return t.dataField===e});return a.length>0&&(s=a[0]).onSort&&s.onSort(e,t),s}},{key:"render",value:function(){var s=this.props.data,n=this.props.sort,r=this.state,l=r.sortOrder,c=r.sortColumn;if(!t()&&c){var d=c.sortFunc?c.sortFunc:n&&n.sortFunc;s=e.sort(s,l,a({},c,{sortFunc:d}))}return i.default.createElement(o.Provider,{value:{data:s,sortOrder:l,onSort:this.handleSort,sortField:c?c.dataField:null}},this.props.children)}}]),l}(i.default.Component);c.propTypes={data:r.default.array.isRequired,columns:r.default.array.isRequired,children:r.default.node.isRequired,defaultSorted:r.default.arrayOf(r.default.shape({dataField:r.default.string.isRequired,order:r.default.oneOf([l.default.SORT_DESC,l.default.SORT_ASC]).isRequired})),sort:r.default.shape({dataField:r.default.string,order:r.default.oneOf([l.default.SORT_DESC,l.default.SORT_ASC]),sortFunc:r.default.func}),defaultSortDirection:r.default.oneOf([l.default.SORT_DESC,l.default.SORT_ASC])};var d=function(){var a=this;this.handleSort=function(n){var i=e.nextOrder(n,a.state,a.props.defaultSortDirection);n.onSort&&n.onSort(n.dataField,i),t()&&s(n.dataField,i),a.setState(function(){return{sortOrder:i,sortColumn:n}})}};return{Provider:c,Consumer:o.Consumer}}},8930:(e,t,s)=>{var a=s(10862),n=s(86316),i=Object.prototype.hasOwnProperty;e.exports=n(function(e,t,s){i.call(e,s)?e[s].push(t):a(e,s,[t])})},10862:(e,t,s)=>{var a=s(76235);e.exports=function(e,t,s){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[t]=s}},11123:e=>{e.exports=function(e,t,s,a){for(var n=-1,i=null==e?0:e.length;++n<i;){var r=e[n];t(a,r,s(r),e)}return a}},11353:e=>{e.exports={wrapper:"DivFieldsBlock_wrapper__e4ef9",row:"DivFieldsBlock_row__oLvbv"}},12009:(e,t,s)=>{"use strict";s.d(t,{i:()=>v});var a=s(26514),n=s(75834),i=s(93760),r=s(80966),l=s(51065),o=s.n(l),c=s(29482),d=s.n(c),u=s(42683),h=s(52189),m=s(75165),p=s(53920),f=s(21069),S=s(63760),g=s(46054),x=s(47115);function v(e){let{data:t,hideChart:s,hideMoney:l,showAssets:c,hideValues:v,currency:b,isCountryPie:N,isRegionPie:T,isAssetClassPie:E,isPublic:O=!1}=e,{t:A,i18n:{language:I=x.vq}}=(0,i.B)(["analytics","common"]),[y,C]=(0,n.useState)([]),j=y.length>0?y[y.length-1]:null,P=(0,p.am)(v,b),R=(0,n.useMemo)(()=>{let e=j?j.items:t;if(e.every(e=>{let{isParent:t,items:s}=e;return t&&s?.length===1})){let t=e.flatMap(e=>{let{items:t}=e;return t});return d()(t,e=>e.weight)>101?e:t}return e},[t,j]),w=(0,n.useMemo)(()=>{let e=[],t=[],s=[],a=[];return R.forEach((n,i)=>{let{name:r}=n;N&&(r=(0,S.qQ)(n.name,I)),T&&(r=(0,f.S0)(n.name,I)),E&&(r=A((0,g.uZ)(+r),{ns:"types"})),e.push(r),t.push(n.value),s.push((0,u.py)(i+3)),a.push(n.weight)}),{labels:e,colors:s,percents:a,data:t,values:R,datasets:[{data:t,backgroundColor:s,borderColor:s}]}},[I,R,E,T,N]),D=e=>
1{e&&e.isParent&&e.items&&(e.items?.length===1&&100===e.items[0].weight||e.items.length>1)&&C(t=>[...t,e])},_=(0,n.useMemo)(()=>({responsive:!0,cutout:"70%",maintainAspectRatio:!1,animation:{animateScale:!0},readyForUpdate:!0,hover:{mode:"nearest",intersect:!0},layout:{padding:r.Fr?50:25},onClick:(e,t)=>{if(t?.length>0){let[e]=t,{index:s}=e,a=w.values[s];a?.isParent&&a?.items?.length>0&&D(a)}},plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>{let{label:t,raw:s,dataIndex:a}=e,n=w.percents[a];return t+` (${(+n).toFixed(2)}%): ${P.format(s)}`}}},datalabels:{display:"auto",anchor:"end",align:"end",color:"#B5B5C3",font:{size:11},formatter:(e,t)=>`${(+w.percents[t.dataIndex]).toFixed(1)}%`}}}),[w,P,r.Fr]),M=()=>{C(e=>e.length<=1?[]:e.slice(0,-1))},L=()=>(0,a.jsxs)(a.Fragment,{children:[j&&(0,a.jsx)("div",{children:(0,a.jsxs)("button",{type:"button",onClick:M,className:"btn btn-md btn-clean text-dark-50 font-weight-bold mb-2",children:[(0,a.jsx)("i",{className:"text-dark-50 mr-2 fas fa-long-arrow-alt-left icon-nm"})," ",j.name]})}),w.labels.map((e,s)=>{let n=w.values[s],i=n.isParent&&n.items?.length>0;return(0,a.jsxs)("div",{onClick:()=>{i&&D(n)},className:`px-3 py-1 ${i&&"bg-hover-light rounded cursor-pointer"}`,children:[(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsxs)("div",{className:"w-100",children:[(0,a.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,a.jsxs)("div",{className:"label-legend-text flex-grow-1 text-truncate",children:[(0,a.jsx)("span",{className:"label label-dot label-xl mr-2",style:{backgroundColor:w.colors[s]}}),!w.values[s].isParent&&!w.values[s].isVirtual&&w.values[s].asset&&(0,a.jsx)(f.Q0,{isPublic:O,assetType:w.values[s].asset.type,ticker:w.values[s].asset.ticker,exchange:w.values[s].asset.exchange,currency:w.values[s].asset.originalCurrency,id:w.values[s].asset.id,linkClassName:"font-weight-bold text-hover-primary font-size-sm",children:(0,a.jsx)("span",{children:e})}),(w.values[s].isParent||w.values[s].isVirtual)&&(0,a.jsx)("span",{className:"font-weight-bold font-size-sm",children:e})]}),(0,a.jsxs)("div",{className:"d-flex align-items-center pl-2 font-size-sm",children:[(0,a.jsx)("span",{className:"mr-2",children:(0,a.jsx)(m.b,{className:"font-weight-bold",value:w.percents[s],isPercent:!0,precision:w.percents[s]<.5?3:1})}),!0!=l&&(0,a.jsxs)("span",{className:"mr-2 text-dark-50",children:["(",(0,a.jsx)(m.b,{isMoney:!0,value:w.data[s],currency:b}),")"]})]})]}),(0,a.jsx)("div",{className:"progress progress-xs mt-2 mb-2 w-100",children:(0,a.jsx)("div",{className:"progress-bar",role:"progressbar",style:{backgroundColor:w.colors[s],width:`${w.percents[s]}%`},"aria-valuenow":"50","aria-valuemin":"0","aria-valuemax":"100"})})]}),(0,a.jsx)("div",{className:"",children:!j&&null!=w.data[s].items&&(0,a.jsx)("div",{className:"mt-n2",children:(0,a.jsx)("i",{className:"icon-xs flaticon2-right-arrow text-dark-50 ml-2"})})})]}),c&&!j&&t[s].items&&(0,a.jsx)("div",{children:t[s].items.map((e,t)=>(0,a.jsxs)("span",{className:"label label-light label-inline p-1 mr-1",children:[(0,a.jsx)("b",{children:e.asset.type==x.PW.BOND?e.name:e.ticker}),"\xa0",(0,a.jsx)(m.b,{value:e.weight,isPercent:!0,precision:e.weight<.5?3:1})]},`map-lab-${s}-${t}`))})]},`lab-${s}`)})]});return(0,a.jsxs)("div",{className:"row",children:[!0!==s&&(0,a.jsx)("div",{className:"col-lg-6 col-md-6 col-sm-12",style:{height:"350px"},children:w&&w.datasets&&(0,a.jsx)(h.SbChartJs,{type:h.CHART_TYPE_PIE,height:350,width:null,data:w,options:_})}),(0,a.jsx)("div",{className:`${!0!==s&&"col-xl-5 col-lg-5 col-md-6"} col-sm-12 d-flex align-items-center`,children:w&&w.labels&&(r.Fr?(0,a.jsx)("div",{className:"list w-100",children:L()}):(0,a.jsx)(o(),{options:{wheelPropagation:!0},className:"scroll w-100",style:{maxHeight:"350px",position:"relative"},children:L()}))})]})}},18201:e=>{"use strict";e.exports=JSON.parse('{"locale":"ru","countries":{"AU":"Австралия","AT":"Австрия","AZ":"Азербайджан","AX":"Аландские острова","AL":"Албания","DZ":"Алжир","VI":"Виргин
1ские Острова (США)","AS":"Американское Самоа","AI":"Ангилья","AO":"Ангола","AD":"Андорра","AQ":"Антарктида","AG":"Антигуа и Барбуда","AR":"Аргентина","AM":"Армения","AW":"Аруба","AF":"Афганистан","BS":"Багамы","BD":"Бангладеш","BB":"Барбадос","BH":"Бахрейн","BZ":"Белиз","BY":"Беларусь","BE":"Бельгия","BJ":"Бенин","BM":"Бермуды","BG":"Болгария","BO":"Боливия","BQ":"Бонэйр, Синт-Эстатиус и Саба","BA":"Босния и Герцеговина","BW":"Ботсвана","BR":"Бразилия","IO":"Британская территория в Индийском океане","VG":"Виргинские Острова (Великобритания)","BN":"Бруней","BF":"Буркина-Фасо","BI":"Бурунди","BT":"Бутан","VU":"Вануату","VA":"Ватикан","GB":"Великобритания","HU":"Венгрия","VE":"Венесуэла","UM":"Внешние малые острова (США)","TL":"Восточный Тимор","VN":"Вьетнам","GA":"Габон","HT":"Гаити","GY":"Гайана","GM":"Гамбия","GH":"Гана","GP":"Гваделупа","GT":"Гватемала","GF":"Гвиана","GN":"Гвинея","GW":"Гвинея-Бисау","DE":"Германия","GG":"Гернси","GI":"Гибралтар","HN":"Гондурас","HK":"Гонконг","GD":"Гренада","GL":"Гренландия","GR":"Греция","GE":"Грузия","GU":"Гуам","DK":"Дания","JE":"Джерси","DJ":"Джибути","DM":"Доминика","DO":"Доминиканская Республика","CD":"Демократическая Республика Конго","EG":"Египет","ZM":"Замбия","EH":"САДР","ZW":"Зимбабве","IL":"Израиль","IN":"Индия","ID":"Индонезия","JO":"Иордания","IQ":"Ирак","IR":"Иран","IE":"Ирландия","IS":"Исландия","ES":"Испания","IT":"Италия","YE":"Йемен","CV":"Кабо-Верде","KZ":"Казахстан","KY":"Острова Кайман","KH":"Камбоджа","CM":"Камерун","CA":"Канада","QA":"Катар","KE":"Кения","CY":"Кипр","KG":"Киргизия","KI":"Кирибати","TW":"Китайская Республика","KP":"КНДР (Корейская Народно-Демократическая Республика)","CN":"КНР (Китайская Народная Республика)","CC":"Кокосовые острова","CO":"Колумбия","KM":"Коморы","CR":"Коста-Рика","CI":"Кот-д’Ивуар","CU":"Куба","KW":"Кувейт","CW":"Кюрасао","LA":"Лаос","LV":"Латвия","LS":"Лесото","LR":"Либерия","LB":"Ливан","LY":"Ливия","LT":"Литва","LI":"Лихтенштейн","LU":"Люксембург","MU":"Маврикий","MR":"Мавритания","MG":"Мадагаскар","YT":"Майотта","MO":"Макао","MW":"Малави","MY":"Малайзия","ML":"Мали","MV":"Мальдивы","MT":"Мальта","MA":"Марокко","MQ":"Мартиника","MH":"Маршалловы Острова","MX":"Мексика","FM":"Микронезия","MZ":"Мозамбик","MD":"Молдавия","MC":"Монако","MN":"Монголия","MS":"Монтсеррат","MM":"Мьянма","NA":"Намибия","NR":"Науру","NP":"Непал","NE":"Нигер","NG":"Нигерия","NL":"Нидерланды","NI":"Никарагуа","NU":"Ниуэ","NZ":"Новая Зеландия","NC":"Новая Каледония","NO":"Норвегия","AE":"ОАЭ","OM":"Оман","BV":"Остров Буве","IM":"Остров Мэн","CK":"Острова Кука","NF":"Остров Норфолк","CX":"Остров Рождества","PN":"Острова Питкэрн","SH":"Острова Святой Елены, Вознесения и Тристан-да-Кунья","PK":"Пакистан","PW":"Палау","PS":"Государство Палестина","PA":"Панама","PG":"Папуа — Новая Гвинея","PY":"Парагвай","PE":"Перу","PL":"Польша","PT":"Португалия","PR":"Пуэрто-Рико","CG":"Республика Конго","KR":"Республика Корея","RE":"Реюньон","RU":"Российская Федерация","RW":"Руанда","RO":"Румыния","SV":"Сальвадор","WS":"Самоа","SM":"Сан-Марино","ST":"Сан-Томе и Принсипи","SA":"Саудовская Аравия","SZ":"Свазиленд","MK":"Северная Македония","MP":"Северные Марианские Острова","SC":"Сейшельские Острова","BL":"Сен-Бартелеми","MF":"Сен-Мартен","PM":"Сен-Пьер и Микелон","SN":"Сенегал","VC":"Сент-Винсент и Гренадины","KN":"Сент-Китс и Невис","LC":"Сент-Люсия","RS":"Сербия","SG":"Сингапур","SX":"Синт-Мартен","SY":"Сирия","SK":"Словакия","SI":"Словения","SB":"Соломоновы Острова","SO":"Сомали","SD":"Судан","SR":"Суринам","US":"США","SL":"Сьерра-Леоне","TJ":"Таджикистан","TH":"Таиланд","TZ":"Танзания","TC":"Теркс и Кайкос","TG":"Того","TK":"Токелау","TO":"Тонга","TT":"Тринидад и Тобаго","TV":"Тувалу","TN":"Тунис","TM":"Туркмения","TR":"Турция","UG":"Уганда","UZ":"Узбекистан","UA":"Украина","WF":"Уоллис и Футуна","UY":"Уругвай","FO":"Фареры","FJ":"Фиджи","PH":"Филиппин
1ы","FI":"Финляндия","FK":"Фолклендские острова","FR":"Франция","PF":"Французская Полинезия","TF":"Французские Южные и Антарктические Территории","HM":"Херд и Макдональд","HR":"Хорватия","CF":"ЦАР","TD":"Чад","ME":"Черногория","CZ":"Чехия","CL":"Чили","CH":"Швейцария","SE":"Швеция","SJ":"Шпицберген и Ян-Майен","LK":"Шри-Ланка","EC":"Эквадор","GQ":"Экваториальная Гвинея","ER":"Эритрея","EE":"Эстония","ET":"Эфиопия","ZA":"ЮАР","GS":"Южная Георгия и Южные Сандвичевы Острова","SS":"Южный Судан","JM":"Ямайка","JP":"Япония","XK":"Косово"}}')},21915:(e,t,s)=>{var a=s(51313);e.exports=function(e){return a(e)?e:[]}},26675:(e,t,s)=>{"use strict";s.d(t,{N:()=>d});var a=s(26514);s(75834);var n=s(93760),i=s(68732),r=s(91283),l=s(71467),o=s(60547),c=s(50585);function d(e){var t;let{article:s,onClick:d}=e,{i18n:{language:u}}=(0,n.B)(["market","common"]);return(0,a.jsx)("div",{className:"card card-grow-hover card-custom card-stretch mb-xs-7",onClick:()=>{d&&d(s)},children:(0,a.jsx)("div",{className:"card-body",children:(0,a.jsxs)("div",{className:"d-flex flex-column justify-content-between h-100",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between mb-3",children:[(0,a.jsx)(c.J,{items:s.items}),(0,a.jsx)(l.h,{sentiment:s.sentiment})]}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"font-size-lg font-weight-bold",children:s.title}),(0,a.jsx)("p",{className:"text-dark-65 font-size-sm mt-2 pp-description",children:s.content})]})})]}),(0,a.jsxs)("div",{className:"font-size-xs text-muted",children:[(0,i.A)(new Date(s.date),{addSuffix:!0,locale:(0,r.LV)(u)})," ","• ",(t=s.link,(0,o.vI)(t))]})]})})})}},35147:e=>{"use strict";e.exports=JSON.parse('{"locale":"en","countries":{"AF":"Afghanistan","AL":"Albania","DZ":"Algeria","AS":"American Samoa","AD":"Andorra","AO":"Angola","AI":"Anguilla","AQ":"Antarctica","AG":"Antigua and Barbuda","AR":"Argentina","AM":"Armenia","AW":"Aruba","AU":"Australia","AT":"Austria","AZ":"Azerbaijan","BS":"Bahamas","BH":"Bahrain","BD":"Bangladesh","BB":"Barbados","BY":"Belarus","BE":"Belgium","BZ":"Belize","BJ":"Benin","BM":"Bermuda","BT":"Bhutan","BO":"Bolivia","BA":"Bosnia and Herzegovina","BW":"Botswana","BV":"Bouvet Island","BR":"Brazil","IO":"British Indian Ocean Territory","BN":"Brunei Darussalam","BG":"Bulgaria","BF":"Burkina Faso","BI":"Burundi","KH":"Cambodia","CM":"Cameroon","CA":"Canada","CV":"Cape Verde","KY":"Cayman Islands","CF":"Central African Republic","TD":"Chad","CL":"Chile","CN":"China","CX":"Christmas Island","CC":"Cocos (Keeling) Islands","CO":"Colombia","KM":"Comoros","CG":"Congo","CD":"Congo, the Democratic Republic of the","CK":"Cook Islands","CR":"Costa Rica","CI":"Cote D\'Ivoire","HR":"Croatia","CU":"Cuba","CY":"Cyprus","CZ":"Czech Republic","DK":"Denmark","DJ":"Djibouti","DM":"Dominica","DO":"Dominican Republic","EC":"Ecuador","EG":"Egypt","SV":"El Salvador","GQ":"Equatorial Guinea","ER":"Eritrea","EE":"Estonia","ET":"Ethiopia","FK":"Falkland Islands (Malvinas)","FO":"Faroe Islands","FJ":"Fiji","FI":"Finland","FR":"France","GF":"French Guiana","PF":"French Polynesia","TF":"French Southern Territories","GA":"Gabon","GM":"Gambia","GE":"Georgia","DE":"Germany","GH":"Ghana","GI":"Gibraltar","GR":"Greece","GL":"Greenland","GD":"Grenada","GP":"Guadeloupe","GU":"Guam","GT":"Guatemala","GN":"Guinea","GW":"Guinea-Bissau","GY":"Guyana","HT":"Haiti","HM":"Heard Island and McDonald Islands","VA":"Holy See (Vatican City State)","HN":"Honduras","HK":"Hong Kong","HU":"Hungary","IS":"Iceland","IN":"India","ID":"Indonesia","IR":"Iran, Islamic Republic of","IQ":"Iraq","IE":"Ireland","IL":"Israel","IT":"Italy","JM":"Jamaica","JP":"Japan","JO":"Jordan","KZ":"Kazakhstan","KE":"Kenya","KI":"Kiribati","KP":"North Korea","KR":"South Korea","KW":"Kuwait","KG":"Kyrgyzstan","LA":"La
1o People\'s Democratic Republic","LV":"Latvia","LB":"Lebanon","LS":"Lesotho","LR":"Liberia","LY":"Libya","LI":"Liechtenstein","LT":"Lithuania","LU":"Luxembourg","MO":"Macao","MG":"Madagascar","MW":"Malawi","MY":"Malaysia","MV":"Maldives","ML":"Mali","MT":"Malta","MH":"Marshall Islands","MQ":"Martinique","MR":"Mauritania","MU":"Mauritius","YT":"Mayotte","MX":"Mexico","FM":"Micronesia, Federated States of","MD":"Moldova, Republic of","MC":"Monaco","MN":"Mongolia","MS":"Montserrat","MA":"Morocco","MZ":"Mozambique","MM":"Myanmar","NA":"Namibia","NR":"Nauru","NP":"Nepal","NL":"Netherlands","NC":"New Caledonia","NZ":"New Zealand","NI":"Nicaragua","NE":"Niger","NG":"Nigeria","NU":"Niue","NF":"Norfolk Island","MK":"North Macedonia, Republic of","MP":"Northern Mariana Islands","NO":"Norway","OM":"Oman","PK":"Pakistan","PW":"Palau","PS":["State of Palestine","Palestine"],"PA":"Panama","PG":"Papua New Guinea","PY":"Paraguay","PE":"Peru","PH":"Philippines","PN":"Pitcairn","PL":"Poland","PT":"Portugal","PR":"Puerto Rico","QA":"Qatar","RE":"Reunion","RO":"Romania","RU":["Russian Federation","Russia"],"RW":"Rwanda","SH":"Saint Helena","KN":"Saint Kitts and Nevis","LC":"Saint Lucia","PM":"Saint Pierre and Miquelon","VC":"Saint Vincent and the Grenadines","WS":"Samoa","SM":"San Marino","ST":"Sao Tome and Principe","SA":"Saudi Arabia","SN":"Senegal","SC":"Seychelles","SL":"Sierra Leone","SG":"Singapore","SK":"Slovakia","SI":"Slovenia","SB":"Solomon Islands","SO":"Somalia","ZA":"South Africa","GS":"South Georgia and the South Sandwich Islands","ES":"Spain","LK":"Sri Lanka","SD":"Sudan","SR":"Suriname","SJ":"Svalbard and Jan Mayen","SZ":"Eswatini","SE":"Sweden","CH":"Switzerland","SY":"Syrian Arab Republic","TW":["Taiwan, Province of China","Taiwan"],"TJ":"Tajikistan","TZ":"Tanzania, United Republic of","TH":"Thailand","TL":"Timor-Leste","TG":"Togo","TK":"Tokelau","TO":"Tonga","TT":"Trinidad and Tobago","TN":"Tunisia","TR":"Turkey","TM":"Turkmenistan","TC":"Turks and Caicos Islands","TV":"Tuvalu","UG":"Uganda","UA":"Ukraine","AE":"United Arab Emirates","GB":["United Kingdom","UK","Great Britain"],"US":["United States of America","USA"],"UM":"United States Minor Outlying Islands","UY":"Uruguay","UZ":"Uzbekistan","VU":"Vanuatu","VE":"Venezuela","VN":"Vietnam","VG":"Virgin Islands, British","VI":"Virgin Islands, U.S.","WF":"Wallis and Futuna","EH":"Western Sahara","YE":"Yemen","ZM":"Zambia","ZW":"Zimbabwe","AX":"\xc5land Islands","BQ":"Bonaire, Sint Eustatius and Saba","CW":"Cura\xe7ao","GG":"Guernsey","IM":"Isle of Man","JE":"Jersey","ME":"Montenegro","BL":"Saint Barth\xe9lemy","MF":"Saint Martin (French part)","RS":"Serbia","SX":"Sint Maarten (Dutch part)","SS":"South Sudan","XK":"Kosovo"}}')},36445:(e,t,s)=>{"use strict";s.d(t,{p:()=>T});var a=s(26514),n=s(75834),i=s(74170),r=s(64137),l=s(7086),o=s(63390),c=s(93760),d=s(23141),u=s(68732),h=s(9610),m=s.n(h),p=s(91283),f=s(71467),S=s(60547),g=s(50585);function x(e){let{tags:t}=e;return(0,a.jsx)(a.Fragment,{children:t&&t.map((e,t)=>(0,a.jsxs)("span",{className:"text-hover-underline text-primary mr-2",children:["#",e?e.toLowerCase():""]},t))})}function v(e){let{content:t}=e,s=[];return t&&(t.startsWith("- ")?s=m()(t.split("\n- ").map(e=>e.replace("- ","")),e=>e.length>0):t.startsWith("1. ")&&(s=m()(t.split("\n").map(e=>e.replace("1. ","").replace("2. ","").replace("3. ","").replace("4. ","").replace("5. ","")),e=>e.length>0))),(0,a.jsxs)(a.Fragment,{children:[s&&s.length>0&&(0,a.jsx)("ul",{children:s.map((e,t)=>(0,a.jsx)("li",{children:e},t))}),(!s||0==s.length)&&(0,a.jsx)(a.Fragment,{children:t})]})}function b(e){var t;let{article:s}=e,{t:n,i18n:{language:i}}=(0,c.B)(["market","common"]);return(0,a.jsx)(a.Fragment,{children:s&&(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("h1",{className:"font-size-h1 font-weight-bold mb-3",children:s.title}),(0,a.jsxs)("div",{className:"text-dark-65 row align-items-center mb-3",children:[(0,a.jsx)("div",{className:"col-auto text-nowrap mb-1 pr-0",children:(0,u.A)(new Date(s.date),{addSuffix:!0,locale:(0,p.LV)(i)})}),(0,a.jsxs)("div",{className:"col-auto mb-1 pr-0 pl-1",children:[" ","• ",(t=s.link,(0,S.vI)(t))]}),s.sentiment&&(0,a.jsxs)("div",{className:"col-auto mb-1 pl-1",children:[" ","•"," ",(0,a.jsx)(f.h,{size:"lg",sentiment:s.sentiment})]})]}),(0,a.jsxs)("div",{className:"mt-3 mb-5",children:[(0,a.jsxs)("div",{className:"font-weight-bold mb-2",children:[n("IN_THIS_ARTICLE"),":"]}),(0,a.jsx)(g.J,{display:"full",items:s.items})]}),(0,a.jsx)("p",{className:"font-size-lg",children:(0,a.jsx)(v,{c
1ontent:s.content})}),(0,a.jsx)("div",{children:(0,a.jsx)(x,{tags:s.tags})}),s.isProcessed&&(0,a.jsx)("div",{className:"alert alert-custom alert-light p-3 mt-10",children:(0,a.jsx)("div",{className:"text-dark-65",children:(0,a.jsx)(d.x,{i18nKey:s.isTranslated?"market:ARTICLE_PROCESSED_TRANSLATED.NOTE":"market:ARTICLE_PROCESSED.NOTE",components:[(0,a.jsx)("a",{href:s.link,target:"_blank",rel:"noreferrer"})]})})})]})})}class N extends n.Component{constructor(e){super(e),this.open=e=>{this.setState({show:!0,article:e});try{l.A.post(`${o.Q7b}/${e.id}`)}catch(e){}},this.close=()=>{this.setState({show:!1,article:null}),this.props.onHide&&this.props.onHide()},this.state={show:!1,article:null}}componentWillReceiveProps(){}render(){return(0,a.jsx)(i.A,{size:"lg",show:this.state.show,onHide:this.close,"aria-labelledby":"example-modal-sizes-title-lg",children:(0,a.jsxs)(i.A.Body,{children:[(0,a.jsx)("button",{type:"button",onClick:()=>{this.close()},className:"btn btn-icon btn-light btn-sm btn-circle btn-close-card",children:(0,a.jsx)("i",{className:"flaticon2-cross icon-sm text-dark-50"})}),(0,a.jsx)("div",{className:"pt-7",children:(0,a.jsx)(b,{article:this.state.article})})]})})}}let T=(0,r.C)("common",{withRef:!0})(N)},39781:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});var a=s(62199),n=s(77488),i=s(69001),r=s.n(i),l=s(75834),o=s(14009),c=["children","name","className","checked","type","onChange","value","disabled","inputRef"],d=function(){},u=l.forwardRef(function(e,t){var s=e.children,i=e.name,u=e.className,h=e.checked,m=e.type,p=e.onChange,f=e.value,S=e.disabled,g=e.inputRef,x=(0,n.A)(e,c),v=(0,l.useState)(!1),b=v[0],N=v[1],T=(0,l.useCallback)(function(e){"INPUT"===e.target.tagName&&N(!0)},[]),E=(0,l.useCallback)(function(e){"INPUT"===e.target.tagName&&N(!1)},[]);return l.createElement(o.A,(0,a.A)({},x,{ref:t,className:r()(u,b&&"focus",S&&"disabled"),type:void 0,active:!!h,as:"label"}),l.createElement("input",{name:i,type:m,value:f,ref:g,autoComplete:"off",checked:!!h,disabled:!!S,onFocus:T,onBlur:E,onChange:p||d}),s)});u.displayName="ToggleButton";let h=u},46054:(e,t,s)=>{"use strict";s.d(t,{ck:()=>i,qv:()=>n,uZ:()=>r});var a=s(47115);let n={Stock:1,Bond:2,Etf:3,Crypto:7,Commodity:8,Index:11},i={Stock:1,Bond:2,Etf:3,Cash:4,Reit:5,LimitedPartnership:6,Crypto:7,Commodity:8,Option:9,Futures:10,Index:11,Unknown:100};function r(e){switch(e){case a.PW.STOCK:return"ASSET_TYPE.STOCK";case a.PW.BOND:return"ASSET_TYPE.BOND";case a.PW.ETF:return"ASSET_TYPE.FUNDS";case a.PW.CASH:return"ASSET_TYPE.CASH";case a.PW.REIT:return"REIT";case a.PW.LIMITED_PARTNERSHIP:return"ASSET_TYPE.STOCK";case a.PW.CRYPTO_CURRENCY:return"ASSET_TYPE.CRYPTO";case a.PW.COMMODITY:return"ASSET_TYPE.COMMODITY";case a.PW.OPTION:return"ASSET_TYPE.OPTIONS";case a.PW.FUTURES:return"ASSET_TYPE.FUTURES";case a.PW.INDEX:return"ASSET_TYPE.INDEX";default:return"ASSET_TYPE.OTHER"}}},47480:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,s,a){return s&&e(t.prototype,s),a&&e(t,a),t}}(),n=r(s(75834)),i=r(s(68208));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=n.default.createContext(),t=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function s(){if(!(this instanceof s))throw TypeError("Cannot call a class as a function");var e=(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:this}return s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(s,t):s.__proto__=t),a(s,[{key:"render",value:function(){var t=void 0,s=this.props,a=s.columns,i=s.toggles;return t=i?a.filter(function(e){return i[e.dataField]}):a.filter(function(e){return!e.hidden}),n.default.createElement(e.Provider,{value:{columns:t}},this.props.children)}}]),s}(n.default.Component);return t.propTypes={columns:i.default.array.isRequired,toggles:i.default.object},t.defaultProps={toggles:null},{Provider:t,Consumer:e.Consumer}}},48798:(e,t,s)=>{"use strict";s.d(t,{t:()=>x});var a=s(26514),n=s(75834),i=s(69047),r=s(96741),l=s(9610),o=s.n(l),c=s(32491),d=s.n(c),u=s(93760),h=s(38089),m=s(49732),p=s(47115);function f(e){let{t}=(0,u.B)(["common"]);return e.isDisabled?null:(0,a.jsx)("div",{...e.innerProps,className:"d-flex align-items-center justify-content-between text-hover-primary mx-2 py-2 border-bottom",style:{cursor:"pointer"},children:(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-start",children:[(0,a.jsxs)("div",{children:[e.data.type!==p.Fe.ASSET&&(0,a.jsx)("i",{className:"flaticon-pie-chart mx-3"}),e.data.type===p.Fe.ASSET&&(0,a.jsx)("i",{className:"flaticon-interface-11 mx-3"})]}),(0,a.jsxs)("div",{style:e.data.isDisposed?{textDecoration:"line-through"}:{},children:[e.data.description&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"font-size-sm text-muted line-height-sm",children:e.data.description}),(0,a.jsx)("br",{})]}),(0,a.jsx)("span",{className:"font-size-sm",children:e.data.name}),e.data.type!==p.Fe.ASSET&&e.data.holdingIds&&e.data.holdingIds.length>0&&(0,a.jsxs)("span",{className:"line-height-sm font-size-xs text-muted px-2",children:[e.data.holdingIds.length," ",t("ITEMS",{count:e.data.holdingIds.length})]})]})]})})}function S(e){let{children:t,...s}=e;return i.c.ValueContainer&&(0,a.jsxs)(i.c.ValueContainer,{...s,children:[!!t&&(0,a.jsx)(m.A,{style:{position:"absolute",left:9},size:"md",color:"none",src:"/media/svg/icons/Shopping/Sort1.svg?v=1"}),t]})}
1function g(e){let[t,s]=(0,n.useState)(e.data.collapsed);return(0,n.useEffect)(()=>{s(e.data.collapsed)},[e.data.collapsed]),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between cursor-pointer px-3 pb-1 pt-2",onClick:function(){s(!t),e.updateOption&&e.updateOption(e.data.label,!t),e.data.collapsed=!t},children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-size-xs text-uppercase font-weight-bold text-dark-50 mr-2",children:e.data.label}),(0,a.jsx)("i",{className:`${t?"fas fa-angle-right":"fas fa-angle-down"} icon-nm`})]}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"label label-light-primary label-inline font-weight-bold",children:e.data.options.length})})]}),(0,a.jsx)(h.A,{in:!t,children:(0,a.jsx)("div",{children:e.children})})]})}function x(e){let{t}=(0,u.B)(["analytics","common"]),[s,l]=(0,n.useState)([]);function c(e,t){let a=d()(s,t=>t.label==e);a&&(a.collapsed=t,l(s))}(0,n.useEffect)(()=>{l(function(e,s){let a=[],n=o()(e,e=>e.type===p.Fe.CATEGORY),i=o()(e,e=>e.type===p.Fe.ASSET),r=o()(e,e=>e.type===p.Fe.CLASSES),l=o()(e,e=>e.type===p.Fe.CURRENCIES),c=o()(e,e=>e.type===p.Fe.SECTOR);return!0===s&&(i=[]),r.length>0&&a.push({label:t("FILTER.CLASSES"),options:r,collapsed:!0}),l.length>0&&a.push({label:t("FILTER.CURRENCIES"),options:l,collapsed:!0}),c.length>0&&a.push({label:t("FILTER.SECTORS"),options:c,collapsed:!0}),n.length>0&&a.push({label:t("FILTER.CATEGORIES"),options:n,collapsed:!1}),i.length>0&&a.push({label:t("FILTER.ASSETS"),options:i,collapsed:!1}),a}(e.options||[],e.skipAssets))},[e.options]);let h=t("FILTER.PLACEHOLDER");return e.placeholder&&(h=e.placeholder),(0,a.jsx)(r.Ay,{name:e.name,value:e.value,onChange:(t,s)=>{let a=e.isMulti?function(e){if(!e||0===e.length)return null;let t=[];return e.forEach(e=>{if(e.type===p.Fe.ASSET)t.push(e.value);else if(e.type!=p.Fe.ASSET){let s=e.holdingIds;t=t.concat(s)}}),t}(t):t?t.type===p.Fe.ASSET?[t.value]:t.type===p.Fe.CATEGORY||t.type===p.Fe.SECTOR?t.holdingIds:null:null;e.onChange(t,s,a)},placeholder:h,getOptionLabel:e=>`${e.name}${e.description?`, ${e.description}`:""}`,getOptionValue:e=>e.value,cacheOptions:!0,defaultOptions:!0,isClearable:!0,closeMenuOnSelect:!0,noOptionsMessage:()=>t("FILTER.NOT_FOUND"),components:{Control:t=>(0,a.jsx)(i.c.Control,{...t,innerProps:{...t.innerProps,id:e.controlId}}),Option:t=>(0,a.jsx)(f,{...t,innerProps:{...t.innerProps,onClick:()=>{t.innerProps.onClick?.(),e.onOptionClick?.(t.data)}}}),ValueContainer:S,IndicatorSeparator:()=>null,Group:e=>(0,a.jsx)(g,{...e,updateOption:c})},styles:{container:(e,t)=>({...e,border:(t.isFocused,null)}),menu:e=>({...e,backgroundColor:"var(--sb-dropdown-color)",zIndex:98}),control:(e,t)=>({...e,backgroundColor:t.isFocused?"var(--sb-solid-input-bg-focus)":"var(--sb-solid-input-bg)",borderColor:t.isFocused?"var(--sb-solid-input-bg-focus)":"var(--sb-solid-input-bg)",minHeight:"calc(1.5em + 1.65rem + 2px)",color:"var(--sb-solid-input-color)",transition:"color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease",boxShadow:"none","&:hover":{borderColor:"var(--sb-solid-input-bg)"}}),input:e=>({...e,color:"var(--sb-solid-input-color)"}),singleValue:e=>({...e,color:"var(--sb-solid-input-color)"}),valueContainer:e=>({...e,paddingLeft:32}),multiValue:e=>({...e,backgroundColor:"var(--sb-solid-input-bg-focus)"}),multiValueLabel:e=>({...e,color:"var(--sb-solid-input-color)"})},isMulti:e.isMulti??!1,options:s})}},50585:(e,t,s)=>{"use strict";s.d(t,{J:()=>d});var a=s(26514);s(75834);var n=s(21069),i=s(75165),r=s(97043),l=s(48208);function o(e){let{item:t}=e;return(0,a.jsx)("div",{className:"",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-weight-bold",children:t.ticker})," ",t.description]})})}function c(e){return(0,a.jsxs)(a.Fragment,{children:[e.onClick&&(0,a.jsx)("div",{onClick:e.onClick,className:e.className,children:e.children}),!e.onClick&&(0,a.jsx)(l.o,{onClick:e=>{e.stopPropagation()},target:e.target,to:e.to,className:e.className,children:e.children})]})}function d(e){let{items:t,display:s,onClick:l}=e;return(0,a.jsx)(a.Fragment,{children:t.length>0&&(0,a.jsx)("div",{className:"d-flex align-items-center",children:t.map((e,d)=>(0,a.jsx)(c,{onClick:l,target:"_blank",to:(0,n.A)(e.assetType,null,e.ticker,e.exchange,e.currency),className:"mr-2 rounded",children:(0,a.jsx)(r.o,{title:(0,a.jsx)(o,{item:e}),children:(0,a.jsx)("div",{className:`rounded ${"full"===s&&"p-2 bg-card-light hoverable border-light"} ${t.length>1&&"full"!=s?"cursor-pointer":"bg-hover-secondary cursor-pointer p-1 text-nowrap"}`,children:(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)(n.hz,{name:e.description,ticker:e.name,assetType:e.assetType,logoUrl:e.logoURL,primaryLogoUrl:e.primaryLogoURL,size:"sm"}),(1==t.length||"full"===s)&&(0,a.jsx)("span",{className:"font-weight-bold font-size-sm text-dark-65",children:e.ticker}),"full"===s&&0!=e.dayChangePercent&&null!=e.dayChangePercent&&(0,a.jsx)("span",{className:"ml-2",children:(0,a.jsx)(i.b,{className:"font-size-sm",isPercent:!0,showColors:!0,value:e.dayChangePercent,symbol:"tri
1angle"})})]})})})},d))})})}},50786:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/public/asset/[slug]/[[...tab]]",function(){return s(86787)}])},51933:(e,t,s)=>{var a=s(39219),n=s(69383),i=s(52171),r=s(62016),l=s(99483),o=s(84839),c=Math.min;e.exports=function(e,t,s){for(var d=s?i:n,u=e[0].length,h=e.length,m=h,p=Array(h),f=1/0,S=[];m--;){var g=e[m];m&&t&&(g=r(g,l(t))),f=c(g.length,f),p[m]=!s&&(t||u>=120&&g.length>=120)?new a(m&&g):void 0}g=e[0];var x=-1,v=p[0];e:for(;++x<u&&S.length<f;){var b=g[x],N=t?t(b):b;if(b=s||0!==b?b:0,!(v?o(v,N):d(S,N,s))){for(m=h;--m;){var T=p[m];if(!(T?o(T,N):d(e[m],N,s)))continue e}v&&v.push(N),S.push(b)}}return S}},52025:(e,t,s)=>{var a=s(23820),n=s(98860);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==a(e)}},5213
vendor: 8,796 bytes, line 1
18:e=>{"use strict";e.exports=JSON.parse('[["AF","AFG","004","ISO 3166-2:AF"],["AL","ALB","008","ISO 3166-2:AL"],["DZ","DZA","012","ISO 3166-2:DZ"],["AS","ASM","016","ISO 3166-2:AS"],["AD","AND","020","ISO 3166-2:AD"],["AO","AGO","024","ISO 3166-2:AO"],["AI","AIA","660","ISO 3166-2:AI"],["AQ","ATA","010","ISO 3166-2:AQ"],["AG","ATG","028","ISO 3166-2:AG"],["AR","ARG","032","ISO 3166-2:AR"],["AM","ARM","051","ISO 3166-2:AM"],["AW","ABW","533","ISO 3166-2:AW"],["AU","AUS","036","ISO 3166-2:AU"],["AT","AUT","040","ISO 3166-2:AT"],["AZ","AZE","031","ISO 3166-2:AZ"],["BS","BHS","044","ISO 3166-2:BS"],["BH","BHR","048","ISO 3166-2:BH"],["BD","BGD","050","ISO 3166-2:BD"],["BB","BRB","052","ISO 3166-2:BB"],["BY","BLR","112","ISO 3166-2:BY"],["BE","BEL","056","ISO 3166-2:BE"],["BZ","BLZ","084","ISO 3166-2:BZ"],["BJ","BEN","204","ISO 3166-2:BJ"],["BM","BMU","060","ISO 3166-2:BM"],["BT","BTN","064","ISO 3166-2:BT"],["BO","BOL","068","ISO 3166-2:BO"],["BA","BIH","070","ISO 3166-2:BA"],["BW","BWA","072","ISO 3166-2:BW"],["BV","BVT","074","ISO 3166-2:BV"],["BR","BRA","076","ISO 3166-2:BR"],["IO","IOT","086","ISO 3166-2:IO"],["BN","BRN","096","ISO 3166-2:BN"],["BG","BGR","100","ISO 3166-2:BG"],["BF","BFA","854","ISO 3166-2:BF"],["BI","BDI","108","ISO 3166-2:BI"],["KH","KHM","116","ISO 3166-2:KH"],["CM","CMR","120","ISO 3166-2:CM"],["CA","CAN","124","ISO 3166-2:CA"],["CV","CPV","132","ISO 3166-2:CV"],["KY","CYM","136","ISO 3166-2:KY"],["CF","CAF","140","ISO 3166-2:CF"],["TD","TCD","148","ISO 3166-2:TD"],["CL","CHL","152","ISO 3166-2:CL"],["CN","CHN","156","ISO 3166-2:CN"],["CX","CXR","162","ISO 3166-2:CX"],["CC","CCK","166","ISO 3166-2:CC"],["CO","COL","170","ISO 3166-2:CO"],["KM","COM","174","ISO 3166-2:KM"],["CG","COG","178","ISO 3166-2:CG"],["CD","COD","180","ISO 3166-2:CD"],["CK","COK","184","ISO 3166-2:CK"],["CR","CRI","188","ISO 3166-2:CR"],["CI","CIV","384","ISO 3166-2:CI"],["HR","HRV","191","ISO 3166-2:HR"],["CU","CUB","192","ISO 3166-2:CU"],["CY","CYP","196","ISO 3166-2:CY"],["CZ","CZE","203","ISO 3166-2:CZ"],["DK","DNK","208","ISO 3166-2:DK"],["DJ","DJI","262","ISO 3166-2:DJ"],["DM","DMA","212","ISO 3166-2:DM"],["DO","DOM","214","ISO 3166-2:DO"],["EC","ECU","218","ISO 3166-2:EC"],["EG","EGY","818","ISO 3166-2:EG"],["SV","SLV","222","ISO 3166-2:SV"],["GQ","GNQ","226","ISO 3166-2:GQ"],["ER","ERI","232","ISO 3166-2:ER"],["EE","EST","233","ISO 3166-2:EE"],["ET","ETH","231","ISO 3166-2:ET"],["FK","FLK","238","ISO 3166-2:FK"],["FO","FRO","234","ISO 3166-2:FO"],["FJ","FJI","242","ISO 3166-2:FJ"],["FI","FIN","246","ISO 3166-2:FI"],["FR","FRA","250","ISO 3166-2:FR"],["GF","GUF","254","ISO 3166-2:GF"],["PF","PYF","258","ISO 3166-2:PF"],["TF","ATF","260","ISO 3166-2:TF"],["GA","GAB","266","ISO 3166-2:GA"],["GM","GMB","270","ISO 3166-2:GM"],["GE","GEO","268","ISO 3166-2:GE"],["DE","DEU","276","ISO 3166-2:DE"],["GH","GHA","288","ISO 3166-2:GH"],["GI","GIB","292","ISO 3166-2:GI"],["GR","GRC","300","ISO 3166-2:GR"],["GL","GRL","304","ISO 3166-2:GL"],["GD","GRD","308","ISO 3166-2:GD"],["GP","GLP","312","ISO 3166-2:GP"],["GU","GUM","316","ISO 3166-2:GU"],["GT","GTM","320","ISO 3166-2:GT"],["GN","GIN","324","ISO 3166-2:GN"],["GW","GNB","624","ISO 3166-2:GW"],["GY","GUY","328","ISO 3166-2:GY"],["HT","HTI","332","ISO 3166-2:HT"],["HM","HMD","334","ISO 3166-2:HM"],["VA","VAT","336","ISO 3166-2:VA"],["HN","HND","340","ISO 3166-2:HN"],["HK","HKG","344","ISO 3166-2:HK"],["HU","HUN","348","ISO 3166-2:HU"],["IS","ISL","352","ISO 3166-2:IS"],["IN","IND","356","ISO 3166-2:IN"],["ID","IDN","360","ISO 3166-2:ID"],["IR","IRN","364","ISO 3166-2:IR"],["IQ","IRQ","368","ISO 3166-2:IQ"],["IE","IRL","372","ISO 3166-2:IE"],["IL","ISR","376","ISO 3166-2:IL"],["IT","ITA","380","ISO 3166-2:IT"],["JM","JAM","388","ISO 3166-2:JM"],["JP","JPN","392","ISO 3166-2:JP"],["JO","JOR","400","ISO 3166-2:JO"],["KZ","KAZ","398","ISO 3166-2:KZ"],["KE","KEN","404","ISO 3166-2:KE"],["KI","KIR","296","ISO 3166-2:KI"],["KP","PRK","408","ISO 3166-2:KP"],["KR","KOR","410","ISO 3166-2:KR"],["KW","KWT","414","ISO 3166-2:KW"],["KG","KGZ","417","ISO 3166-2:KG"],["LA","LAO","418","ISO 3166-2:LA"],["LV","LVA","428","ISO 3166-2:LV"],["LB","LBN","422","ISO 3166-2:LB"],["LS","LSO","426","ISO 3166-2:LS"],["LR","LBR","430","ISO 3166-2:LR"],["LY","LBY","434","ISO 3166-2:LY"],["LI","LIE","438","ISO 3166-2:LI"],["LT","LTU","440","ISO 3166-2:LT"],["LU","LUX","442","ISO 3166-2:LU"],["MO","MAC","446","ISO 3166-2:MO"],["MG","MDG","450","ISO 3166-2:MG"],["MW","MWI","454","ISO 3166-2:MW"],["MY","MYS","458","ISO 3166-2:MY"],["MV","MDV","462","ISO 3166-2:MV"],["ML","MLI","466","ISO 3166-2:ML"],["MT","MLT","470","ISO 3166-2:MT"],["MH","MHL","584","ISO 3166-2:MH"],["MQ","MTQ","474","ISO 3166-2:MQ"],["MR","MRT","478","ISO 3166-2:MR"],["MU","MUS","480","ISO 3166-2:MU"],["YT","MYT","175","ISO 3166-2:YT"],["MX","MEX","484","ISO 3166-2:MX"],["FM","FSM","583","ISO 3166-2:FM"],["MD","MDA","498","ISO 3166-2:MD"],["MC","MCO","492","ISO 3166-2:MC"],["MN","MNG","496","ISO 3166-2:MN"],["MS","MSR","500","ISO 3166-2:MS"],["MA","MAR","504","ISO 3166-2:MA"],["MZ","MOZ","508","ISO 3166-2:MZ"],["MM","MMR","104","ISO 3166-2:MM"],["NA","NAM","516","ISO 3166-2:NA"],["NR","NRU","520","ISO 3166-2:NR"],["NP","NPL","524","ISO 3166-2:NP"],["NL","NLD","528","ISO 3166-2:NL"],["NC","NCL","540","ISO 3166-2:NC"],["NZ","NZL","554","ISO 3166-2:NZ"],["NI","NIC","558","ISO 3166-2:NI"],["NE","NER","562","ISO 3166-2:NE"],["NG","NGA","566","ISO 3166-2:NG"],["NU","NIU","570","ISO 3166-2:NU"],["NF","NFK","574","ISO 3166-2:NF"],["MP","MNP","580","ISO 3166-2:MP"],["MK","MKD","807","ISO 3166-2:MK"],["NO","NOR","578","ISO 3166-2:NO"],["OM","OMN","512","ISO 3166-2:OM"],["PK","PAK","586","ISO 3166-2:PK"],["PW","PLW","585","ISO 3166-2:PW"],["PS","PSE","275","ISO 3166-2:PS"],["PA","PAN","591","ISO 3166-2:PA"],["PG","PNG","598","ISO 3166-2:PG"],["PY","PRY","600","ISO 3166-2:PY"],["PE","PER","604","ISO 3166-2:PE"],["PH","PHL","608","ISO 3166-2:PH"],["PN","PCN","612","ISO 3166-2:PN"],["PL","POL","616","ISO 3166-2:PL"],["PT","PRT","620","ISO 3166-2:PT"],["PR","PRI","630","ISO 3166-2:PR"],["QA","QAT","634","ISO 3166-2:QA"],["RE","REU","638","ISO 3166-2:RE"],["RO","ROU","642","ISO 3166-2:RO"],["RU","RUS","643","ISO 3166-2:RU"],["RW","RWA","646","ISO 3166-2:RW"],["SH","SHN","654","ISO 3166-2:SH"],["KN","KNA","659","ISO 3166-2:KN"],["LC","LCA","662","ISO 3166-2:LC"],["PM","SPM","666","ISO 3166-2:PM"],["VC","VCT","670","ISO 3166-2:VC"],["WS","WSM","882","ISO 3166-2:WS"],["SM","SMR","674","ISO 3166-2:SM"],["ST","STP","678","ISO 3166-2:ST"],["SA","SAU","682","ISO 3166-2:SA"],["SN","SEN","686","ISO 3166-2:SN"],["SC","SYC","690","ISO 3166-2:SC"],["SL","SLE","694","ISO 3166-2:SL"],["SG","SGP","702","ISO 3166-2:SG"],["SK","SVK","703","ISO 3166-2:SK"],["SI","SVN","705","ISO 3166-2:SI"],["SB","SLB","090","ISO 3166-2:SB"],["SO","SOM","706","ISO 3166-2:SO"],["ZA","ZAF","710","ISO 3166-2:ZA"],["GS","SGS","239","ISO 3166-2:GS"],["ES","ESP","724","ISO 3166-2:ES"],["LK","LKA","144","ISO 3166-2:LK"],["SD","SDN","729","ISO 3166-2:SD"],["SR","SUR","740","ISO 3166-2:SR"],["SJ","SJM","744","ISO 3166-2:SJ"],["SZ","SWZ","748","ISO 3166-2:SZ"],["SE","SWE","752","ISO 3166-2:SE"],["CH","CHE","756","ISO 3166-2:CH"],["SY","SYR","760","ISO 3166-2:SY"],["TW","TWN","158","ISO 3166-2:TW"],["TJ","TJK","762","ISO 3166-2:TJ"],["TZ","TZA","834","ISO 3166-2:TZ"],["TH","THA","764","ISO 3166-2:TH"],["TL","TLS","626","ISO 3166-2:TL"],["TG","TGO","768","ISO 3166-2:TG"],["TK","TKL","772","ISO 3166-2:TK"],["TO","TON","776","ISO 3166-2:TO"],["TT","TTO","780","ISO 3166-2:TT"],["TN","TUN","788","ISO 3166-2:TN"],["TR","TUR","792","ISO 3166-2:TR"],["TM","TKM","795","ISO 3166-2:TM"],["TC","TCA","796","ISO 3166-2:TC"],["TV","TUV","798","ISO 3166-2:TV"],["UG","UGA","800","ISO 3166-2:UG"],["UA","UKR","804","ISO 3166-2:UA"],["AE","ARE","784","ISO 3166-2:AE"],["GB","GBR","826","ISO 3166-2:GB"],["US","USA","840","ISO 3166-2:US"],["UM","UMI","581","ISO 3166-2:UM"],["UY","URY","858","ISO 3166-2:UY"],["UZ","UZB","860","ISO 3166-2:UZ"],["VU","VUT","548","ISO 3166-2:VU"],["VE","VEN","862","ISO 3166-2:VE"],["VN","VNM","704","ISO 3166-2:VN"],["VG","VGB","092","ISO 3166-2:VG"],["VI","VIR","850","ISO 3166-2:VI"],["WF","WLF","876","ISO 3166-2:WF"],["EH","ESH","732","ISO 3166-2:EH"],["YE","YEM","887","ISO 3166-2:YE"],["ZM","ZMB","894","ISO 3166-2:ZM"],["ZW","ZWE","716","ISO 3166-2:ZW"],["AX","ALA","248","ISO 3166-2:AX"],["BQ","BES","535","ISO 3166-2:BQ"],["CW","CUW","531","ISO 3166-2:CW"],["GG","GGY","831","ISO 3166-2:GG"],["IM","IMN","833","ISO 3166-2:IM"],["JE","JEY","832","ISO 3166-2:JE"],["ME","MNE","499","ISO 3166-2:ME"],["BL","BLM","652","ISO 3166-2:BL"],["MF","MAF","663","ISO 3166-2:MF"],["RS","SRB","688","ISO 3166-2:RS"],["SX","SXM","534","ISO 3166-2:SX"],["SS","SSD","728","ISO 3166-2:SS"],["XK","XKX","983","ISO 3166-2:XK"]]')},
152189:(e,t,s)=>{"use strict";s.r(t),s.d(t,{CHART_TYPE_BAR:()=>_,CHART_TYPE_DOUGHNUT:()=>D,CHART_TYPE_LINE:()=>L,CHART_TYPE_PIE:()=>M,CHART_TYPE_TREEMAP:()=>k,SbChartJs:()=>F});var a=s(26514),n=s(75834),i=s(68015),r=s(71122),l=s(44607),o=s(83602);let c={light:{chartLegend:"#7E8299",chartLine:"#EBEDF3",info:"#8950FC",primary:"#3699ff",success:"#1BC5BD",warning:"#FFA800"},dark:{chartLegend:"#adb5bd",chartLine:"#495057",info:"#9a6afa",primary:"#00aff5",success:"#3ba55d",warning:"#fea135"}};var d=s(28274);let u=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,h=e=>""+e,m=new Map;function p(e,t){let{x:s,y:a,width:n,height:i}=e.getProps(["x","y","width","height"],t);return{left:s,top:a,right:s+n,bottom:a+i}}function f(e,t,s){return Math.max(Math.min(e,s),t)}function S(e,t,s){let a=(0,d.AX)(e);return{t:f(a.top,0,s),r:f(a.right,0,t),b:f(a.bottom,0,s),l:f(a.left,0,t)}}function g(e,t,s,a){let n=null===t,i=null===s,r=!!e&&(!n||!i)&&p(e,a);return r&&(n||t>=r.left&&t<=r.right)&&(i||s>=r.top&&s<=r.bottom)}function x(e,t){e.rect(t.x,t.y,t.w,t.h)}function v(e,t){if(!t||!1===t.display)return!1;let{w:s,h:a}=e,n=(0,d.di)(t.font).lineHeight,i=f(2*(0,d.a4)(t.padding,3),0,Math.min(s,a));return s-i>n&&a-i>n}function b(e,t,s){return"left"===t?e.x+s:"right"===t?e.x+e.w-s:e.x+e.w/2}class N extends r.Hg{constructor(e){super(),this.options=void 0,this.width=void 0,this.height=void 0,e&&Object.assign(this,e)}draw(e,t){var s;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t)return;let n=this.options,{inner:i,outer:r}=function(e){let t=p(e),s=t.right-t.left,a=t.bottom-t.top,n=S(e.options.borderWidth,s/2,a/2),i=function(e,t,s){let a=(0,d.u$)(e),n=Math.min(t,s);return{topLeft:f(a.topLeft,0,n),topRight:f(a.topRight,0,n),bottomLeft:f(a.bottomLeft,0,n),bottomRight:f(a.bottomRight,0,n)}}(e.options.borderRadius,s/2,a/2),r={x:t.left,y:t.top,w:s,h:a,active:e.active,radius:i};return{outer:r,inner:{x:r.x+n.l,y:r.y+n.t,w:r.w-n.l-n.r,h:r.h-n.t-n.b,active:e.active,radius:{topLeft:Math.max(0,i.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,i.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(n.b,n.r))}}}}(this),l=(s=r.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?d.If:x;e.save(),(r.w!==i.w||r.h!==i.h)&&(e.beginPath(),l(e,r),e.clip(),l(e,i),e.fillStyle=n.borderColor,e.fill("evenodd")),e.beginPath(),l(e,i),e.fillStyle=n.backgroundColor,e.fill(),function(e,t,s,a){let n=s.dividers;if(!n.display||!a._data.children.length)return;let{x:i,y:r,w:l,h:o}=t,{lineColor:c,lineCapStyle:d,lineDash:u,lineDashOffset:h,lineWidth:m}=n;if(e.save(),e.strokeStyle=c,e.lineCap=d,e.setLineDash(u),e.lineDashOffset=h,e.lineWidth=m,e.beginPath(),l>o){let t=l/2;e.moveTo(i+t,r),e.lineTo(i+t,r+o)}else{let t=o/2;e.moveTo(i,r+t),e.lineTo(i+l,r+t)}e.stroke(),e.restore()}(e,i,n,t);let{captions:o,labels:c}=n;e.save(),e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip();let u=t&&(!(0,d.sw)(t.l)||t.l===a);u&&c.display?function(e,t,s){let a=s.labels,n=a.formatter;if(!n)return;let i=(0,d.cy)(n)?n:[n],r=function(e,t){let{font:s,hoverFont:a}=t,n=(e.active?a:s)||s;return(0,d.cy)(n)?n.map(e=>(0,d.di)(e)):[(0,d.di)(n)]}(t,a),l=function(e,t,s){let a=s.reduce(function(e,t){return e+t.string},""),n=t.join()+a+(e._measureText?"-spriting":"");if(!m.has(n)){e.save();let a=t.length,i=0,r=0;for(let n=0;n<a;n++){let a=s[Math.min(n,s.length-1)];e.font=a.string;let l=t[n];i=Math.max(i,e.measureText(l).width),r+=a.lineHeight}e.restore(),m.set(n,{width:i,height:r})}return m.get(n)}(e,i,r),o=function(e,t,s,a){let{overflow:n,padding:i}=s,{width:r,height:l}=a;if("hidden"===n)return!(r+2*i>t.w||l+2*i>t.h);if("fit"===n){let e=Math.min(t.w/(r+2*i),t.h/(l+2*i));if(e<1)return e}return!0}(0,t,a,l);if(!o)return;(0,d.Et)(o)&&(l={width:l.width*o,height:l.height*o},r=r.map(function(e){return e.size=Math.floor(e.size*o),e.lineHeight=void 0,(0,d.di)(e)}));let{color:c,hoverColor:u,align:h}=a,p=(t.active?u:c)||c,f=(0,d.cy)(p)?p:[p],S=function(e,t,s){let{align:a,position:n,padding:i}=t;return{x:b(e,a,i),y:"top"===n?e.y+i:"bottom"===n?e.y+e.h-i-s.height:e.y+(e.h-s.height)/2+i}}(t,a,l);e.textAlign=h,e.textBaseline="middle";let g=0;
1i.forEach(function(t,s){let a=f[Math.min(s,f.length-1)],n=r[Math.min(s,r.length-1)],i=n.lineHeight;e.font=n.string,e.fillStyle=a,e.fillText(t,S.x,S.y+i/2+g),g+=i})}(e,i,n):!u&&v(i,o)&&function(e,t,s,a){let{captions:n,spacing:i,rtl:r}=s,{color:l,hoverColor:o,font:c,hoverFont:u,padding:h,align:m,formatter:p}=n,f=(t.active?o:l)||l,S=m||(r?"right":"left"),g=(t.active?u:c)||c,x=(0,d.di)(g),v=x.lineHeight/2,N=b(t,S,h);e.fillStyle=f,e.font=x.string,e.textAlign=S,e.textBaseline="middle",e.fillText(p||a.g,N,t.y+h+i+v)}(e,i,n,t),e.restore(),e.restore()}inRange(e,t,s){return g(this,e,t,s)}inXRange(e,t){return g(this,e,null,t)}inYRange(e,t){return g(this,null,e,t)}getCenterPoint(e){let{x:t,y:s,width:a,height:n}=this.getProps(["x","y","width","height"],e);return{x:t+a/2,y:s+n/2}}tooltipPosition(){return this.getCenterPoint()}getRange(e){return"x"===e?this.width/2:this.height/2}}N.id="treemap",N.defaults={label:void 0,borderRadius:0,borderWidth:0,captions:{align:void 0,color:"black",display:!0,font:{},formatter:e=>e.raw.g||e.raw._data.label||"",padding:3},dividers:{display:!1,lineCapStyle:"butt",lineColor:"black",lineDash:[],lineDashOffset:0,lineWidth:1},labels:{align:"center",color:"black",display:!1,font:{},formatter:e=>e.raw.g?[e.raw.g,e.raw.v+""]:e.raw._data.label?[e.raw._data.label,e.raw.v+""]:e.raw.v+"",overflow:"cut",position:"middle",padding:3},rtl:!1,spacing:.5},N.descriptors={labels:{_fallback:!0},captions:{_fallback:!0},_scriptable:!0,_indexable:!1},N.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class T{constructor(e){e=e||{w:1,h:1},this.rtl=!!e.rtl,this.x=e.x||e.left||0,this.y=e.y||e.top||0,this._ix=0,this._iy=0,this.w=e.w||e.width||e.right-e.left,this.h=e.h||e.height||e.bottom-e.top}get area(){return this.w*this.h}get iw(){return this.w-this._ix}get ih(){return this.h-this._iy}get dir(){let e=this.ih;return e<=this.iw&&e>0?"y":"x"}get side(){return"x"===this.dir?this.iw:this.ih}map(e){let{dir:t,side:s}=this,a="x"===t?"_ix":"_iy",n=e.nsum,i=e.get(),r=s*s,l=n*n,o=[],c=0,d=0;for(let t of i){let s=function(e,t,s,a){let n=e._normalized,i=Math.sqrt(t*n/s*n),r=n/i;return{d1:i,d2:r,w:"_ix"===a?i:r,h:"_ix"===a?r:i}}(t,r,l,a);d+=s.d1,c=Math.max(c,s.d2),o.push(function(e,t,s,a){let n,i={x:(n=s.w,e.rtl?e.x+e.iw-n:e.x+e._ix),y:e.y+e._iy,w:s.w,h:s.h,a:t._normalized,v:t.value,vs:t.values,s:a,_data:t._data};return t.group&&(i.g=t.group,i.l=t.level,i.gs=t.groupSum),i}(this,t,s,e.sum)),this[a]+=s.d1}return this["x"===t?"_iy":"_ix"]+=c,this[a]-=d,o}}let E=Math.min,O=Math.max;function A(e,t){let s=+t[e.key],a=s*e.ratio;return t._normalized=a,{min:E(e.min,s),max:O(e.max,s),sum:e.sum+s,nmin:E(e.nmin,a),nmax:O(e.nmax,a),nsum:e.nsum+a}}function I(e,t,s){e._arr.push(t),Object.assign(e,s)}class y{constructor(e,t){this.key=e,this.ratio=t,this.reset()}get length(){return this._arr.length}reset(){this._arr=[],this._hist=[],this.sum=0,this.nsum=0,this.min=1/0,this.max=-1/0,this.nmin=1/0,this.nmax=-1/0}push(e){I(this,e,A(this,e))}pushIf(e,t){for(var s=arguments.length,a=Array(s>2?s-2:0),n=2;n<s;n++)a[n-2]=arguments[n];let i=A(this,e);if(!t({min:this.min,max:this.max,sum:this.sum,nmin:this.nmin,nmax:this.nmax,nsum:this.nsum},i,a))return e;I(this,e,i)}get(){return this._arr}}function C(e,t,s){if(0===e.sum)return!0;let[a]=s,n=e.nsum*e.nsum,i=t.nsum*t.nsum,r=a*a,l=Math.max(r*e.nmax/n,n/(r*e.nmin));return Math.max(r*t.nmax/i,i/(r*t.nmin))<=l}function j(e,t){let s,a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0;e=e||[];let o=[],c=new T(t),u=new y("value",c.area/function(e,t){let s,a,n;for(s=0,a=0,n=e.length;a<n;++a)s+=t?+e[a][t]:+e[a];return s}(e,n[0])),h=c.side,m=e.length;if(!m)return o;let p=e.slice(),f=function(e,t){let s,a=e.length;if(!a)return t;let n=(0,d.Gv)(e[0]);for(s=0,t=n?t:"v",a=e.length;s<a;++s)n?e[s]._idx=s:e[s]={v:e[s],_idx:s};return t}(p,n[0]);f?p.sort((e,t)=>t[f]-e[f]):p.sort((e,t)=>t-e);let S=e=>f?+p[e][f]:+p[e],g=e=>i&&p[e][i];for(s=0;s<m;++s){if(a={value:S(s),groupSum:l,_data:e[p[s]._idx],level:void 0,group:void 0},i){a.level=r,a.group=g(s);let e=p[s];a.values=n.reduce(function(t,s){return t[s]=+e[s],t},{})}
1(a=u.pushIf(a,C,h))&&(o.push(c.map(u)),h=c.side,u.reset(),u.push(a))}u.length&&o.push(c.map(u));let x=[...o],v=[];for(;x.length;){let e=x.pop();Array.isArray(e)?x.push(...e):v.push(e)}return v.reverse()}function P(e,t){let s,a;if(!e||!t)return!0;if(e===t)return!1;if(e.length!==t.length)return!0;for(s=0,a=e.length;s<a;++s)if(e[s]!==t[s])return!0;return!1}class R extends r.n{constructor(e,t){super(e,t),this._groups=void 0,this._keys=void 0,this._rect=void 0,this._rectChanged=!0}initialize(){this.enableOptionSharing=!0,super.initialize()}getMinMax(e){return{min:0,max:"x"===e.axis?e.right-e.left:e.bottom-e.top}}configure(){var e;super.configure();let{xScale:t,yScale:s}=this.getMeta();if(!t||!s)return;let a=t.right-t.left,n=s.bottom-s.top,i={x:0,y:0,w:a,h:n,rtl:!!this.options.rtl};e=this._rect,e&&i&&e.x===i.x&&e.y===i.y&&e.w===i.w&&e.h===i.h&&e.rtl===i.rtl||(this._rect=i,this._rectChanged=!0),this._rectChanged&&(t.max=a,t.configure(),s.max=n,s.configure())}update(e){let t=this.getDataset(),{data:s}=this.getMeta(),a=t.groups||[],n=[t.key||""].concat(t.sumKeys||[]),i=t.tree=t.tree||t.data||[];"reset"===e&&this.configure(),(this._rectChanged||P(this._keys,n)||P(this._groups,a)||this._prevTree!==i)&&(this._groups=a.slice(),this._keys=n.slice(),this._prevTree=i,this._rectChanged=!1,t.data=function(e,t,s,a){let n=t.treeLeafKey||"_leaf";(0,d.Gv)(e)&&(e=function(e,t,s){let a=function e(t,s,a){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=i-1;if(t[0]in a&&i>0){let e=n.reduce(function(e,t,s){return s!==l&&(e[h(s)]=t),e},{});e[s]=n[l],t.forEach(function(t){e[t]=a[t]}),r.push(e)}else for(let l of Object.keys(a)){let o=a[l];(0,d.Gv)(o)&&(n.push(l),e(t,s,o,n,i+1,r))}return n.splice(l,1),r}(e,t,s);if(!a.length)return a;let n=a.reduce(function(e,t){let s=Object.keys(t).length-2;return e>s?e:s});return a.forEach(function(e){for(let t=0;t<n;t++){let s=h(t);e[s]||(e[s]="")}}),a}(s,n,e));let i=t.groups||[],r=i.length,l=(0,d.a4)(t.spacing,0),o=t.captions||{},c=(0,d.di)(o.font),u=(0,d.a4)(o.padding,3);return r?function a(d,m,p,f){let g=h(i[d]),x=d>0&&h(i[d-1]),b=j(function(e,t,s,a,n,i){let r,l,o,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],d=s[0],u=s.slice(1),h=Object.create(null),m=Object.create(null),p=[];for(l=0,o=e.length;l<o;++l){let s=e[l];if(n&&s[n]!==i)continue;if(!((r=s[t]||s[a]||"")in h)){let e=h[r]={value:0};u.forEach(function(t){e[t]=0}),m[r]=[]}h[r].value+=+s[d],h[r].label=s[t]||"";let o=h[r];u.forEach(function(e){o[e]+=s[e]}),h[r].path=function(e,t,s){if(!e.length)return;let a=[];for(let n of e){let e=t[n];if(""===e){a.push(s);break}a.push(e)}return a.length?a.join("."):s}(c,s,r),m[r].push(s)}return Object.keys(h).forEach(e=>{let s={children:m[e]};s[d]=+h[e].value,u.forEach(function(t){s[t]=+h[e][t]}),s[t]=h[e].label,s.label=e,s.path=h[e].path,n&&(s[n]=i),p.push(s)}),p}(e,g,s,n,x,p,i.filter((e,t)=>t<=d)),m,s,g,d,f),N=b.slice();return d<r-1&&b.forEach(e=>{let s=S(t.borderWidth,e.w/2,e.h/2),n={...m,x:e.x+l+s.l,y:e.y+l+s.t,w:e.w-2*l-s.l-s.r,h:e.h-2*l-s.t-s.b};v(n,o)&&(n.y+=c.lineHeight+2*u,n.h-=c.lineHeight+2*u),N.push(...a(d+1,n,e.g,e.s))}),N}(0,a):j(e,a,s)}(i,t,this._keys,this._rect),this._dataCheck(),this._resyncElements()),this.updateElements(s,0,s.length,e)}updateElements(e,t,s,a){let n="reset"===a,i=this.getDataset(),r=this._rect.options=this.resolveDataElementOptions(t,a),l=this.getSharedOptions(r),o=this.includeOptions(a,l),{xScale:c,yScale:d}=this.getMeta(this.index);for(let r=t;r<t+s;r++){let t=l||this.resolveDataElementOptions(r,a),s=function(e,t,s,a){let n=2*a,i=t.getPixelForValue(e.x),r=s.getPixelForValue(e.y),l=t.getPixelForValue(e.x+e.w)-i,o=s.getPixelForValue(e.y+e.h)-r;return{x:i+a,y:r+a,width:l-n,height:o-n,hidden:n>l||n>o}}(i.data[r],c,d,t.spacing);n&&(s.width=0,s.height=0),o&&(s.options=t),this.updateElement(e[r],r,s,a)}this.updateSharedOptions(l,a,r)}draw(){let{ctx:e,chartArea:t}=this.chart,s=this.getMeta().data||[],a=this.getDataset(),n=(a.groups||[]).length-1,i=a.data;(0,d.uv)(e,t);for(let t=0,a=s.length;t<a;++t){let a=s[t];a.hidden||a.draw(e,i[t],n)}(0,d.$J)(e)}}R.id="treemap",R.version="2.3.0",R.defaults={dataElementType:"treemap",animations:{numbers:{type:"number",properties:["x","y","width","height"]}}},R.descriptors={_scriptable:!0,_indexable:!1},R.overrides={interaction:{mode:"point",includeInvisible:!0,intersect:!0},hover:{}
1,plugins:{tooltip:{position:"treemap",intersect:!0,callbacks:{title:e=>e.length&&e[0].dataset.key||"",label(e){let t=e.dataset,s=t.data[e.dataIndex],a=s.g||s._data.label||t.label;return(a?a+": ":"")+s.v}}}},scales:{x:{type:"linear",alignToPixels:!0,bounds:"data",display:!1},y:{type:"linear",alignToPixels:!0,bounds:"data",display:!1,reverse:!0}}},R.beforeRegister=function(){!function(e,t,s){let a=!(arguments.length>3)||void 0===arguments[3]||arguments[3],n=s.split("."),i=0;for(let r of t.split(".")){let l=n[i++];if(parseInt(r,10)<parseInt(l,10))break;if(u(l,r))if(!a)return!1;else throw Error(`${e} v${s} is not supported. v${t} or newer is required.`)}}("chart.js","3.8",r.t1.version)},R.afterRegister=function(){let e=r.u5.plugins.get("tooltip");e?e.positioners.treemap=function(e){return!!e.length&&e[e.length-1].element.tooltipPosition()}:console.warn("Unable to register the treemap positioner because tooltip plugin is not registered")},R.afterUnregister=function(){let e=r.u5.plugins.get("tooltip");e&&delete e.positioners.treemap};let w={id:"itemsDetection",afterInit:e=>{e.itemsDetection={isLeaved:!0}},afterEvent:(e,t,s)=>{let a;if(!s.enabled)return;let n={onHover:()=>{},onLeave:()=>{},onClick:()=>{},events:["mousemove","click","mouseout"],...s};if(!n.events.includes(t.event.type))return t;if(!t.inChartArea){let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",s=arguments.length>2?arguments[2]:void 0;return(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";if(!e.scales[t]._labelItems)return[];let s=[...e.scales[t]._labelItems.map((s,a)=>({...s,axis:t,tick:e.scales[t].ticks[a]}))],a=[...e.scales[t]._labelSizes.widths],n=[...e.scales[t]._labelSizes.heights];return s.map((t,s)=>{let i=a[s],r=n[s],{textAlign:l}=t,o=[...t.translation];return"right"===l&&(o[0]=o[0]-i),"center"===l&&(o[0]=o[0]-i/2),o[0]-=e.scales[t.axis].paddingLeft,o[1]-=e.scales[t.axis].paddingTop,{...t,translation:o,width:i,height:r,bounds:[o[0],o[0]+i,o[1],o[1]+r]}})})(e,t).find(e=>{var t,a,n;return t=s.x,a=s.y,t>=(n=e.bounds)[0]&&t<=n[1]&&a>=n[2]&&a<=n[3]})}(e,"y",t.event);s&&(a={type:"label",data:s})}if(!a){let s=e.getElementsAtEventForMode(t.event.native,"bar"===e.config.type?"y":"nearest",{axis:"bar"===e.config.type?"x":void 0,intersect:!1},!0);s.length&&(a={type:"dataObject",data:s[0]})}if(a){"click"===t.event.type&&n.onClick(a,t,e),a&&e.itemsDetection.isLeaved&&(e.itemsDetection.isLeaved=!1,n.onHover(a,t,e));return}if(!e.itemsDetection.isLeaved||"mouseout"===t.event.type)return e.itemsDetection.isLeaved=!0,n.onLeave(t,e)}};window.chartJsRegitered||(r.t1.register(...r.$L,l.A,R,N),window.chartJsRegitered=!0);let D="doughnut",_="bar",M="pie",L="line",k="treemap",F=n.forwardRef((e,t)=>{let{isDark:s}=(0,o.DP)();return(0,n.useEffect)(()=>{!function(e){if(r.t1.defaults){let t=c[e?"dark":"light"];r.t1.defaults.borderColor=t.chartLine,r.t1.defaults.color=t.chartLegend,r.t1.defaults.scale.grid.color=t.chartLine,r.t1.defaults.scale.grid.zeroLineColor=t.chartLine,r.t1.defaults.plugins.legend&&r.t1.defaults.plugins.legend.labels&&(r.t1.defaults.plugins.legend.labels.pointStyle="rectRounded",r.t1.defaults.plugins.legend.labels.usePointStyle=!0,r.t1.defaults.plugins.legend.labels.textAlign="center",r.t1.defaults.plugins.legend.labels.boxWidth=20),r.t1.defaults.plugins.datalabels&&(r.t1.defaults.plugins.datalabels.color=e?"#fff":"#6d7085"),r.t1.defaults.scale.grid.borderDash=[4],r.t1.defaults.scale.grid.drawBorder=!1}if(r.t1.instances){let s=c[e?"dark":"light"];for(let e in r.t1.instances){var t=r.t1.instances[e];for(let e in t.config.options.borderColor=s.chartLine,t.config.options.color=s.chartLegend,t.config.options.scales){let a=t.config.options.scales[e];a.grid&&(a.grid.color=s.chartLine,a.grid.borderColor=s.chartLine,a.grid.zeroLineColor=s.chartLine),a.ticks&&(a.ticks.color=s.chartLegend)}}}}(s)},[s]),(0,a.jsxs)(a.Fragment,{children:[e.type==D&&(0,a.jsx)(i.nu,{...e,ref:t}),e.type==_&&(0,a.jsx)(i.yP,{...e,plugins:[w],ref:t}),e.type==M&&(0,a.jsx)(i.Fq,{...e,ref:t}),e.type==L&&(0,a.jsx)(i.N1,{...e,ref:t}),e.type==k&&(0,a.jsx)(i.t1,{plugins:[w],...e,ref:t})]})})},52397:e=>{e.exports={locked:"FundamentalInsightBlock_locked__shb9b",subscribeBtn:"FundamentalInsightBlock_subscribeBtn__NC1U7",alert:"FundamentalInsightBlock_alert__KdFVB",text:"FundamentalInsightBlock_text___3qmB",content:"FundamentalInsightBlock_content__jQXzt",tooltip:"FundamentalInsightBlock_tooltip__5LUsw"}},52828:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});var a=s(62199),n=s(77488),i=s(75834),r=s(98237),l=s.n(r),o=s(73257),c=s(68971),d=s(38656),u=s(66944),h=s(39781),m=["children","type","name","value","onChange"],p=i.forwardRef(function(e,t){var s=(0,o.Zw)(e,{value:"onChange"}
1),r=s.children,h=s.type,p=s.name,f=s.value,S=s.onChange,g=(0,n.A)(s,m),x=function(){return null==f?[]:[].concat(f)},v=function(e,t){if(S){var s=x(),a=-1!==s.indexOf(e);if("radio"===h){!a&&S&&S(e,t);return}a?S(s.filter(function(t){return t!==e}),t):S([].concat(s,[e]),t)}};return"radio"!==h||p||l()(!1),i.createElement(u.A,(0,a.A)({},g,{ref:t,toggle:!0}),(0,d.T)(r,function(e){var t=x(),s=e.props,a=s.value,n=s.onChange;return i.cloneElement(e,{type:h,name:e.name||p,checked:-1!==t.indexOf(a),onChange:(0,c.A)(n,function(e){return v(a,e)})})}))});p.defaultProps={type:"radio",vertical:!1},p.Button=h.A;let f=p},54968:(e,t,s)=>{"use strict";var a=s(61853);t.A=void 0;var n=a(s(59196)),i=s(26514);t.A=(0,n.default)((0,i.jsx)("path",{d:"m16.85 6.85 1.44 1.44-4.88 4.88-3.29-3.29a.9959.9959 0 0 0-1.41 0l-6 6.01c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L9.41 12l3.29 3.29c.39.39 1.02.39 1.41 0l5.59-5.58 1.44 1.44c.31.31.85.09.85-.35V6.5c.01-.28-.21-.5-.49-.5h-4.29c-.45 0-.67.54-.36.85"}),"TrendingUpRounded")},57141:(e,t,s)=>{var a=s(62016),n=s(51933),i=s(85526),r=s(21915);e.exports=i(function(e){var t=a(e,r);return t.length&&t[0]===e[0]?n(t):[]})},57615:(e,t,s)=>{"use strict";s.d(t,{C:()=>m,W:()=>h});
1var a=s(26514),n=s(75834),i=s(14009),r=s(93760),l=s(23141),o=s(59757),c=s(46225),d=s(552),u=s(97043);function h(e){let{t}=(0,r.B)(["user","common"]),s=(0,n.useRef)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"card card-custom card-stretch bgi-no-repeat bgi-no-repeat bgi-size-cover gutter-b",style:{backgroundImage:"url(/media/svg/illustrations/grad-light-01.svg)"},children:(0,a.jsxs)("div",{className:"card-body d-flex justify-content-between align-items-center",children:[(0,a.jsxs)("div",{className:"mr-2",children:[(0,a.jsxs)("div",{className:"text-dark-color h4 mb-0",children:[t("PUBLIC.CLONE_NOTIFICATION.TITLE")," \uD83D\uDE80"]}),(0,a.jsx)("div",{className:"text-dark-color",children:t("PUBLIC.CLONE_NOTIFICATION.MESSAGE")})]}),(0,a.jsx)(i.A,{onClick:t=>{t.currentTarget.blur(),s.current&&s.current.open(e.portfolio)},className:"btn btn-white btn-white-bg font-weight-bold py-3 px-6",children:t("PUBLIC.CLONE_NOTIFICATION.BUTTON")})]})}),(0,a.jsx)(d.d,{ref:s})]})}function m(e){let{user:t,referral:s,partnerUtm:n}=(0,o.d4)(e=>{let{auth:t,app:s}=e;return{user:t.user,referral:s.referral,partnerUtm:s.partnerUtm}}),{t:i}=(0,r.B)(["user","common"]),h=(0,c.useRouter)(),m=null,p={pathname:"/auth/registration",query:{...s?{promo:s}:{},...n?{p_utm:n}:{}}};return(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsxs)("button",{type:"button",className:"btn btn-light-primary font-weight-bold",onClick:()=>{null!=m&&m.open(e.portfolio)},children:[(0,a.jsx)("i",{className:"far fa-clone icon-nm"})," ",(0,a.jsx)(l.x,{i18nKey:"user:PUBLIC.CLONE_NOTIFICATION.CTA_BUTTON"})]}),!t&&(0,a.jsx)(u.o,{title:(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsxs)("div",{className:"h4 mb-2",children:["\uD83D\uDE80 ",i("PUBLIC.CLONE_NOTIFICATION.TITLE")]}),(0,a.jsx)("div",{className:"",children:i("PUBLIC.CLONE_REGISTER_NOTIFICATION.MESSAGE")}),(0,a.jsx)("button",{type:"button",className:"btn btn-primary font-weight-bold mt-5",onClick:()=>{h.push(p)},children:(0,a.jsx)(l.x,{i18nKey:"layout:TOPBAR.TRY"})})]}),children:(0,a.jsxs)("button",{type:"button",className:"btn btn-light-primary font-weight-bold",onClick:()=>{},children:[(0,a.jsx)("i",{className:"far fa-clone icon-nm"})," ",(0,a.jsx)(l.x,{i18nKey:"user:PUBLIC.CLONE_NOTIFICATION.CTA_BUTTON"})]})}),t&&(0,a.jsx)(d.d,{ref:e=>{m=e}})]})}},57825:(e,t,s)=>{var a=s(43165);e.exports=function(e,t,s,n){return a(e,function(e,a,i){t(n,e,s(e),i)}),n}},57880:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},n=function(){function e(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,s,a){return s&&e(t.prototype,s),a&&e(t,a),t}}(),i=s(75834),r=g(i),l=g(s(40410)),o=g(s(29372)),c=g(s(990)),d=g(s(47480)),u=g(s(5390)),h=g(s(81580)),m=g(s(89989)),p=g(s(99476)),f=s(12410),S=g(s(21990));function g(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,p.default)(i.Component);if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function s(e){if(!(this instanceof s))throw TypeError("Cannot call a class as a function");var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));if(t.DataContext=(0,c.default)(),e.registerExposedAPI){var a=new l.default;a.on("get.table.data",function(e){return e.result=t.table.getData()}),a.on("get.selected.rows",function(e){return e.result=t.selectionContext.getSelected()}),a.on("get.filtered.rows",function(e){t.searchContext?e.result=t.searchContext.getSearched():t.filterContext?e.result=t.filterContext.getFiltered():e.result=t.table.getData()}),e.registerExposedAPI(a)}return e.columns.filter(function(e){return e.sort}).length>0&&(t.SortContext=(0,u.default)(S.default,t.isRemoteSort,t.handleRemoteSortChange)),(e.columnToggle||e.columns.filter(function(e){return e.hidden}).length>0)&&(t.ColumnManagementContext=(0,d.default)()),e.selectRow&&(t.SelectionContext=h.default),e.expandRow&&(t.RowExpandContext=m.default),e.cellEdit&&e.cellEdit.createContext&&(t.CellEditContext=e.cellEdit.createContext(o.default,S.default,t.isRemoteCellEdit,t.handleRemoteCellChange)),e.filter&&(t.FilterContext=e.filter.createContext(o.default,t.isRemoteFiltering,t.handleRemoteFilterChange)),e.pagination&&(t.PaginationContext=e.pagination.createContext()),e.search&&e.search.searchContext&&(t.SearchContext=e.search.searchContext(o.default,t.isRemoteSearch,t.handleRemoteSearchChange)),e.setDependencyModules&&e.setDependencyModules(o.default),e.setPaginationRemoteEmitter&&e.setPaginationRemoteEmitter(t.remoteEmitter),t}return s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(s,t):s.__proto__=t),n(s,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.columns.filter(function(e){return e.sort}).length<=0?this.SortContext=null:this.SortContext||(this.SortContext=(0,u.default)(S.default,this.isRemoteSort,this.handleRemoteSortChange)),!e.pagination&&this.props.pagination&&(this.PaginationContext=null),e.pagination&&!this.props.pagination&&(this.PaginationContext=e.pagination.createContext(this.isRemotePagination,this.handleRemotePageChange)),!e.cellEdit&&this.props.cellEdit&&(this.CellEditContext=null),e.cellEdit&&!this.props.cellEdit&&(this.CellEditContext=e.cellEdit.createContext(o.default,S.default,this.isRemoteCellEdit,this.handleRemoteCellChange))}},{key:"renderBase",value:function(){var t=this;return function(s,n,i,l,o,c){return r.default.createElement(e,a({ref:function(e){return t.table=e}},t.props,l,n,i,o,c,{data:s.getData(n,i,l,o)}))}}},{key:"renderWithColumnManagementCtx",value:function(e,t){var s=this;return function(n,i,l,o,c){return r.default.createElement(s.ColumnManagementContext.Provider,a({},t,{toggles:s.props.columnToggle?s.props.columnToggle.toggles:null}),r.default.createElement(s.ColumnManagementContext.Consumer,null,function(t){return e(n,i,l,o,c,t)}
1))}}},{key:"renderWithSelectionCtx",value:function(e,t){var s=this;return function(n,i,l,o,c){return r.default.createElement(s.SelectionContext.Provider,a({},t,{ref:function(e){return s.selectionContext=e},selectRow:s.props.selectRow,data:n.getData(i,l,o,c)}),e(n,i,l,o,c))}}},{key:"renderWithRowExpandCtx",value:function(e,t){var s=this;return function(n,i,l,o,c){return r.default.createElement(s.RowExpandContext.Provider,a({},t,{ref:function(e){return s.rowExpandContext=e},expandRow:s.props.expandRow,data:n.getData(i,l,o,c)}),e(n,i,l,o,c))}}},{key:"renderWithPaginationCtx",value:function(e){var t=this;return function(s,a,n,i){return r.default.createElement(t.PaginationContext.Provider,{ref:function(e){return t.paginationContext=e},pagination:t.props.pagination,data:s.getData(a,n,i),bootstrap4:t.props.bootstrap4,isRemotePagination:t.isRemotePagination,remoteEmitter:t.remoteEmitter,onDataSizeChange:t.props.onDataSizeChange,tableId:t.props.id},r.default.createElement(t.PaginationContext.Consumer,null,function(t){return e(s,a,n,i,t)}))}}},{key:"renderWithSortCtx",value:function(e,t){var s=this;return function(n,i,l){return r.default.createElement(s.SortContext.Provider,a({},t,{ref:function(e){return s.sortContext=e},defaultSorted:s.props.defaultSorted,defaultSortDirection:s.props.defaultSortDirection,sort:s.props.sort,data:n.getData(i,l)}),r.default.createElement(s.SortContext.Consumer,null,function(t){return e(n,i,l,t)}))}}},{key:"renderWithSearchCtx",value:function(e,t){var s=this;return function(n,i){return r.default.createElement(s.SearchContext.Provider,a({},t,{ref:function(e){return s.searchContext=e},data:n.getData(i),searchText:s.props.search.searchText,dataChangeListener:s.props.dataChangeListener}),r.default.createElement(s.SearchContext.Consumer,null,function(t){return e(n,i,t)}))}}},{key:"renderWithFilterCtx",value:function(e,t){var s=this;return function(n){return r.default.createElement(s.FilterContext.Provider,a({},t,{ref:function(e){return s.filterContext=e},data:n.getData(),filter:s.props.filter.options||{},dataChangeListener:s.props.dataChangeListener}),r.default.createElement(s.FilterContext.Consumer,null,function(t){return e(n,t)}))}}},{key:"renderWithCellEditCtx",value:function(e,t){var s=this;return function(n){return r.default.createElement(s.CellEditContext.Provider,a({},t,{ref:function(e){return s.cellEditContext=e},selectRow:s.props.selectRow,cellEdit:s.props.cellEdit,data:n.getData()}),e(n))}}},{key:"render",value:function(){var e=this.props,t=e.keyField,s=e.columns,n=e.bootstrap4,i={keyField:t,columns:s},l=this.renderBase();return this.ColumnManagementContext&&(l=this.renderWithColumnManagementCtx(l,i)),this.SelectionContext&&(l=this.renderWithSelectionCtx(l,i)),this.RowExpandContext&&(l=this.renderWithRowExpandCtx(l,i)),this.PaginationContext&&(l=this.renderWithPaginationCtx(l,i)),this.SortContext&&(l=this.renderWithSortCtx(l,i)),this.SearchContext&&(l=this.renderWithSearchCtx(l,i)),this.FilterContext&&(l=this.renderWithFilterCtx(l,i)),this.CellEditContext&&(l=this.renderWithCellEditCtx(l,i)),r.default.createElement(f.BootstrapContext.Provider,{value:{bootstrap4:n}},r.default.createElement(this.DataContext.Provider,a({},i,{data:this.props.data}),r.default.createElement(this.DataContext.Consumer,null,l)))}}]),s}},59226:(e,t,s)=>{"use strict";let a=s(52138),n=s(79574).TF,i={},r={},l={},o={},c={};function d(e){return String("000"+(e||"")).slice(-3)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){switch(e){case"official":return Array.isArray(t)?t[0]:t;case"all":return"string"==typeof t?[t]:t;case"alias":return Array.isArray(t)?t[1]||t[0]:t;default:throw TypeError("LocaleNameType must be one of these: all, official, alias!")}}a.forEach(function(e){r[e[0]]=e[1],l[e[1]]=e[0],o[e[2]]=e[0],c[e[0]]=e[2]});function m(e){return r[o[d(e)]]}function p(e){return o[d(e)]}function f(e){if("string"==typeof e){if(/^[0-9]*$/.test(e))return p(e);if(2===e.length)return e.toUpperCase();if(3===e.length)return l[e.toUpperCase()]}if("number"==typeof e)return p(e)}t.registerLocale=function(e){if(!e.locale)throw TypeError("Missing localeData.locale");if(!e.countries)throw TypeError("Missing localeData.countries");i[e.locale]=e.countries},t.alpha3ToAlpha2=function(e){return l[e]},t.alpha2ToAlpha3=function(e){return r[e]},t.alpha3ToNumeric=function(e){return c[l[e]]},t.alpha2ToNumeric=function(e){return c[e]},t.numericToAlpha3=m,t.numericToAlpha2=p,t.toAlpha3=function(e){if("string"==typeof e){if(/^[0-9]*$/.test(e))return m(e);
1if(2===e.length)return r[e.toUpperCase()];if(3===e.length)return e.toUpperCase()}if("number"==typeof e)return m(e)},t.toAlpha2=f,t.getName=function(e,t,s={}){"select"in s||(s.select="official");try{let a=i[t.toLowerCase()][f(e)];return h(s.select,a)}catch(e){return}},t.getNames=function(e,t={}){var s;"select"in t||(t.select="official");let a=i[e.toLowerCase()];return void 0===a?{}:(s=function(e){return h(t.select,e)},Object.keys(a).reduce(function(e,t){let n=a[t];return e[t]=s(n,t),e},{}))},t.getAlpha2Code=function(e,t){let s=e=>e.toLowerCase(),a=(e,t)=>s(e)===s(t);try{let s=i[t.toLowerCase()];for(let t in s)if(u(s,t)){if("string"==typeof s[t]&&a(s[t],e))return t;if(Array.isArray(s[t])){for(let n of s[t])if(a(n,e))return t}}return}catch(e){return}},t.getSimpleAlpha2Code=function(e,t){let s=e=>n(e.toLowerCase()),a=(e,t)=>s(e)===s(t);try{let s=i[t.toLowerCase()];for(let t in s)if(u(s,t)){if("string"==typeof s[t]&&a(s[t],e))return t;if(Array.isArray(s[t])){for(let n of s[t])if(a(n,e))return t}}return}catch(e){return}},t.getAlpha2Codes=function(){return r},t.getAlpha3Code=function(e,s){let a=t.getAlpha2Code(e,s);return a?t.toAlpha3(a):void 0},t.getSimpleAlpha3Code=function(e,s){let a=t.getSimpleAlpha2Code(e,s);return a?t.toAlpha3(a):void 0},t.getAlpha3Codes=function(){return l},t.getNumericCodes=function(){return o},t.langs=function(){return Object.keys(i)},t.isValid=function(e){if(!e)return!1;let t=e.toString().toUpperCase();return u(l,t)||u(r,t)||u(o,t)}},63765:(e,t,s)=>{"use strict";s.d(t,{A:()=>b});var a=s(25760),n=s(75834),i=s(73257),r=s(70835),l=s(84356),o=s(62199),c=s(77488),d=s(69001),u=s.n(d),h=s(76439),m=["bsPrefix","as","className"],p=n.forwardRef(function(e,t){var s=e.bsPrefix,a=e.as,i=e.className,r=(0,c.A)(e,m),l=(0,h.oU)(s,"tab-content");return n.createElement(void 0===a?"div":a,(0,o.A)({ref:t},r,{className:u()(i,l)}))}),f=s(91099),S=["activeKey","getControlledId","getControllerId"],g=["bsPrefix","className","active","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit","transition","as","eventKey"],x=n.forwardRef(function(e,t){var s=function(e){var t=(0,n.useContext)(r.A);if(!t)return e;var s=t.activeKey,a=t.getControlledId,i=t.getControllerId,d=(0,c.A)(t,S),u=!1!==e.transition&&!1!==d.transition,h=(0,l.u)(e.eventKey);return(0,o.A)({},e,{active:null==e.active&&null!=h?(0,l.u)(s)===h:e.active,id:a(e.eventKey),"aria-labelledby":i(e.eventKey),transition:u&&(e.transition||d.transition||f.A),mountOnEnter:null!=e.mountOnEnter?e.mountOnEnter:d.mountOnEnter,unmountOnExit:null!=e.unmountOnExit?e.unmountOnExit:d.unmountOnExit})}(e),a=s.bsPrefix,i=s.className,d=s.active,m=s.onEnter,p=s.onEntering,x=s.onEntered,v=s.onExit,b=s.onExiting,N=s.onExited,T=s.mountOnEnter,E=s.unmountOnExit,O=s.transition,A=s.as,I=(s.eventKey,(0,c.A)(s,g)),y=(0,h.oU)(a,"tab-pane");if(!d&&!O&&E)return null;var C=n.createElement(void 0===A?"div":A,(0,o.A)({},I,{ref:t,role:"tabpanel","aria-hidden":!d,className:u()(i,y,{active:d})}));return O&&(C=n.createElement(O,{in:d,onEnter:m,onEntering:p,onEntered:x,onExit:v,onExiting:b,onExited:N,mountOnEnter:T,unmountOnExit:E},C)),n.createElement(r.A.Provider,{value:null},n.createElement(l.A.Provider,{value:null},C))});x.displayName="TabPane";var v=function(e){function t(){return e.apply(this,arguments)||this}return(0,a.A)(t,e),t.prototype.render=function(){throw Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")},t}(n.Component);v.Container=function(e){var t=(0,i.Zw)(e,{activeKey:"onSelect"}),s=t.id,a=t.generateChildId,o=t.onSelect,c=t.activeKey,d=t.transition,u=t.mountOnEnter,h=t.unmountOnExit,m=t.children,p=(0,n.useMemo)(function(){return a||function(e,t){return s?s+"-"+t+"-"+e:null}},[s,a]),f=(0,n.useMemo)(function(){return{onSelect:o,activeKey:c,transition:d,mountOnEnter:u||!1,unmountOnExit:h||!1,getControlledId:function(e){return p(e,"tabpane")},getControllerId:function(e){return p(e,"tab")}}},[o,c,d,u,h,p]);return n.createElement(r.A.Provider,{value:f},n.createElement(l.A.Provider,{value:o||null},m))},v.Content=p,v.Pane=x;let b=v},66944:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var a=s(62199),n=s(77488),i=s(69001),r=s.n(i),l=s(75834),o=s(76439),c=["bsPrefix","size","toggle","vertical","className","as"],d=l.forwardRef(function(e,t){var s=e.bsPrefix,i=e.size,d=e.toggle,u=e.vertical,h=e.className,m=e.as,p=(0,n.A)(e,c),f=(0,o.oU)(s,"btn-group"),S=f;return u&&(S=f+"-vertical"),l.createElement(void 0===m?"div":m,(0,a.A)({},p,{ref:t,className:r()(h,S,i&&f+"-"+i,d&&f+"-toggle")}))});d.displayName="ButtonGroup",d.defaultProps={vertical:!1,toggle:!1,role:"group"};let u=d},67725:(e,t,s)=>{"use strict";s.d(t,{F:()=>c});var a=s(26514);s(75834);var n=s(93760),i=s(96456),r=s.n(i),l=s(99057),o=s.n(l);function c(){let{t:e}=(0,n.B)("user");return(0,a.jsx)(r(),{id:"wiim-upgrade-subscribe",href:"/user-manage-subscription",className:`btn btn-sm font-weight-bold ${o().root}`,children:e("BUTTON.UPGRADE")})}},68732:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});var a=s(61180),n=s(58730),i=s(7742),r=s(33241),l=s(73486),o=s(50435),c=s(80783),d=s(5424),u=s(69980),h=s(13973);function m(e,t){return(0,h.A)(1,arguments),function(e,t,s){(0,h.A)(2,arguments);var m,p,f,S,g,x=(0,a.q)(),v=null!=(m=null!=(p=null==s?void 0:s.locale)?p:x.locale)?m:l.A;if(!v.formatDistance)throw RangeError("locale must contain formatDistance property");var b=(0,n.A)(e,t);if(isNaN(b))throw RangeError("Invalid time value");var N=(0,d.A)((0,c.A)(s),{addSuffix:!!(null==s?void 0:s.addSuffix),comparison:b});b>0?(f=(0,o.A)(t),S=(0,o.A)(e)):(f=(0,o.A)(e),S=(0,o.A)(t));var T=(0,r.A)(S,f),E=Math.round((T-((0,u.A)(S)-(0,u.A)(f))/1e3)/60);if(E<2)if(null!=s&&s.includeSeconds)if(T<5)return v.formatDistance("lessThanXSeconds",5,N);else if(T<10)return v.formatDistance("lessThanXSeconds",10,N);else if(T<20)return v.formatDistance("lessThanXSeconds",20,N);else if(T<40)return v.formatDistance("halfAMinute",0,N);else if(T<60)return v.formatDistance("lessThanXMinutes",1,N);else return v.formatDistance("xMinutes",1,N);else if(0===E)return v.formatDistance("lessThanXMinutes",1,N);else return v.formatDistance("xMinutes",E,N);if(E<45)return v.formatDistance("xMinutes",E,N);if(E<90)return v.formatDistance("aboutXHours",1,N);if(E<1440){var O=Math.round(E/60);return v.formatDistance("aboutXHours",O,N)}if(E<2520)return v.formatDistance("xDays",1,N);else if(E<43200){var A=Math.round(E/1440);
1return v.formatDistance("xDays",A,N)}else if(E<86400)return g=Math.round(E/43200),v.formatDistance("aboutXMonths",g,N);if((g=(0,i.A)(S,f))<12){var I=Math.round(E/43200);return v.formatDistance("xMonths",I,N)}var y=g%12,C=Math.floor(g/12);return y<3?v.formatDistance("aboutXYears",C,N):y<9?v.formatDistance("overXYears",C,N):v.formatDistance("almostXYears",C+1,N)}(e,Date.now(),t)}},69569:e=>{e.exports={root:"WiimCompactItem_root__LmELH",up:"WiimCompactItem_up__b51v_",down:"WiimCompactItem_down__Xqmn9"}},70835:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=s(75834).createContext(null)},71467:(e,t,s)=>{"use strict";s.d(t,{h:()=>i});var a=s(26514);s(75834);var n=s(93760);function i(e){let{sentiment:t,size:s}=e,{t:i}=(0,n.B)("market"),r="",l="";switch(t){case 1:r="SENTIMENT.POSITIVE",l="light-success";break;case 2:r="SENTIMENT.MOSTLY_POSITIVE",l="light-success";break;case 3:r="SENTIMENT.NEUTRAL",l="light";break;case 4:r="SENTIMENT.MOSTLY_NEGATIVE",l="light-warning";break;case 5:r="SENTIMENT.NEGATIVE",l="light-danger"}return(0,a.jsx)(a.Fragment,{children:t>0&&(0,a.jsx)("div",{className:`text-nowrap label label-inline py-1 px-2 font-weight-bold label-${l} label-${s??"md"}`,children:i(r)})})}},71696:(e,t,s)=>{"use strict";s.d(t,{e:()=>E});var a=s(26514),n=s(7086),i=s(75834),r=s(93760),l=s(59757),o=s(63390),c=s(32146);function d(e){return{page:e?.page??1,limit:e?.limit??16,tags:e?.tags&&e?.tags?.length>0?e.tags.join(","):null}}async function u(e,t){let{data:s}=await n.A.get(`${o.EL4}/get-news`,{params:{...d(t),portfolioId:e}});return s}async function h(e,t){let{data:s}=await n.A.get(o.RpM,{params:{...d(t),assetInfoId:e},removePublicForUser:!0});return s}async function m(e,t){let{data:s}=await n.A.get(`${o.wLk}/news`,{params:{...d(t),watchlistId:e},removePublicForUser:!0});return s}var p=function(e){return e.PORTFOLIO="portfolio",e.ASSET="asset",e.WATCHLIST="watchlist",e}({});let f={asset:h,portfolio:u,watchlist:m},S={options:(e,t)=>{let{type:s,entityId:a,...n}=e,i=d(n);return{queryKey:["news",s,a,i.limit,i.tags],queryFn:async e=>{let{pageParam:t}=e,i=f[s];return await i(a,{...n,page:t})},initialPageParam:1,getNextPageParam:(e,t,s)=>s+1,...t}}};var g=s(77108),x=s(5771),v=s(26675),b=s(36445),N=s(11468),T=s(1891);function E(e){var t,s;let{assetInfoId:d,portfolioId:u,watchlistId:h}=e,{t:m}=(0,r.B)(["market","common"]),f=(0,i.createRef)(null),{user:E}=(0,l.d4)(e=>e.auth),[O,A]=(0,i.useState)([]),[I,y]=(0,i.useState)([]),[C,j]=(0,i.useState)(16),[P,R]=(0,i.useState)(!1),w=(0,i.useMemo)(()=>u?p.PORTFOLIO:d?p.ASSET:h?p.WATCHLIST:void 0,[h,u,d]),D=(t={entityId:u??d??h,type:w,limit:C,tags:I},s=e.queryOptions,(0,c.q)(S.options(t,s))),_=D.data?.pages[0]?.newsTotalCount??0,M=D.data?D.data.pages.map(e=>e.news.map(e=>e)).flat():[];function L(e){f&&f.current&&f.current.open(e)}return(0,i.useEffect)(()=>{(0,T.CS)(E?.subscriptionType,T.Pn)&&!d&&(j(8),R(!0))},[E]),(0,i.useEffect)(()=>{u&&n.A.get(`${o.EL4}/get-news-tag-filters?portfolioId=${u}`).then(e=>{let{data:t}=e;t&&t.length>0&&A(t.map(e=>({key:e,name:m(`TAG.${e.replaceAll(" ","_").toUpperCase()}`)})))}).catch(()=>{})},[u]),(0,a.jsxs)(a.Fragment,{children:[e.hideIfEmpty&&!D.isFetching&&0===_&&null,!(e.hideIfEmpty&&!D.isFetching&&0===_)&&(0,a.jsxs)(a.Fragment,{children:[(!!u||!!h)&&(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("div",{className:"col",children:(0,a.jsx)("h4",{className:"mb-4",children:m("LATEST_NEWS")})})}),(0,a.jsx)("div",{className:"mb-3",children:(0,a.jsx)(g.M,{onChange:e=>{y([...e])},selected:I,options:O})}),M.length>0&&(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"row",children:M.map((e,t)=>(0,a.jsx)("div",{className:"col-xl-3 col-lg-4 col-md-6 col-sm-12 gutter-b",children:(0,a.jsx)(v.N,{onClick:L,type:"cards",article:e})},t))})}),D.isFetching&&(0,a.jsx)(x.J,{}),!P&&!D.isFetching&&M.length<_&&(0,a.jsx)("div",{className:"py-3",children:(0,a.jsx)("button",{type:"button",className:"btn btn-light text-dark font-weight-bold btn-lg w-100",onClick:D.fetchNextPage,children:m("BUTTON.MORE_ITEMS",{ns:"common"})})}),P&&!D.isFetching&&M.length<_&&(0,a.jsx)(T.e3,{type:T.RL,secured:T.Pn,title:m("PAYWALL_MORE_DATA",{ns:"market"}),message:"market:PAYWALL_MORE_DATA_DESCRIPTION"}),!D.isFetching&&D.isFetched&&0===_&&(0,a.jsx)("div",{className:"py-10",children:(0,a.jsx)(N.ln,{title:m("LIST_EMPTY"),message:m("LIST_EMPTY.MESSAGE"),imageUrl:"/media/svg/illustrations/there-is-nothing-here.png"})}),(0,a.jsx)(b.p,{ref:f})]})]})}},74090:(e,t,s)=>{"use strict";s.d(t,{V:()=>m});var a=s(26514),n=s(75834),i=s(93760),r=s(7086),l=s(59757),o=s(80966),c=s(89428),d=s(15269),u=s(65002),h=s(30818);function m(e){let{t}
1=(0,i.B)(["social","common"]),[s,m]=(0,n.useState)(e.id??null),[p,f]=(0,n.useState)(e.entityId??null),[S,g]=(0,n.useState)(e.entityType??null),[x,v]=(0,n.useState)(e.displayData??null),{user:b}=(0,l.d4)(e=>e.auth);async function N(e){try{e&&await r.A.post(`${h.Y.READ}/${e}`)}catch{}}async function T(){try{let t=h.Y.BASE,a={};s?t=`${h.Y.GET_BY_ID}/${s}`:p&&S&&(t=h.Y.GET_BY_ENTITY,a={entityId:p,type:S,slug:e.slug,userRef:e.userRef});let{data:n}=await r.A.get(t,{params:a});n&&(v(n),m(n.id),e.onIdChange&&e.onIdChange(n.id))}catch{}}async function E(e,a){try{let t={id:s,type:e?.socialReactionType},{data:n}=await r.A.post(!a?h.Y.REACT:h.Y.UNREACT,{},{params:t});return n&&x?.reactions&&(x.reactions.upvotes=n.upvotes,x.reactions.totalCount=n.totalCount,x.reactions.myReaction=n.myReaction),v({...x}),!0}catch{return(0,d.f1)(t("REACT.ERROR_MESSAGE")),!1}}function O(){return x.reactions?.myReaction&&x.reactions?.myReaction.socialReactionType==u.ek}return((0,n.useEffect)(()=>{(s||p&&S)&&T(),s&&e.registerView&&setTimeout(()=>{N(s)},1e3)},[s,p,S]),(0,n.useEffect)(()=>{m(e.id),f(e.entityId),g(e.entityType)},[e.id,e.entityId,e.entityType]),x)?(0,a.jsxs)(a.Fragment,{children:[!e.disableLikes&&(0,a.jsxs)(c.F,{className:`btn ${O()?"btn-link-danger":"btn-link-secondary text-dark-50"} ${!o.Fr?"text-hover-danger bg-hover-light-danger":""} mr-2 btn-md font-weight-bold`,title:t("LIKE_BTN"),onClick:e=>{if(e.preventDefault(),e.stopPropagation(),x.reactions?.myReaction&&x.reactions?.myReaction.socialReactionType==u.ek){var t;t=u.ek,b&&(x.myReaction=null,x.upvotes-=1,E&&E({socialReactionType:t},!0))}else!function(e){if(!b)return;let t={date:new Date,socialReactionType:e,weight:1,isMy:!0};x.myReaction=t,x.upvotes+=1,E&&E(t,!1)}(u.ek)},children:[(0,a.jsx)("i",{className:`mt-n1 icon-nm ${O()?"fas fa-heart text-danger":"far fa-heart text-dark-50"} text-hover-danger pr-0`}),x.reactions?.upvotes>0&&(0,a.jsx)("span",{className:"ml-2 font-weight-bold",children:x.reactions?.upvotes})]}),!e.disableComments&&(0,a.jsxs)("button",{type:"button",disabled:!x.canComment,className:"ml-4 mr-2 btn btn-link-secondary btn-md font-weight-bold text-dark-50 text-hover-dark",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.goToComments&&e.goToComments()},children:[(0,a.jsx)("i",{className:"mt-n1 icon-nm far fa-comment text-dark-50 text-hover-dark pr-0"}),x.counters?.comments>0&&(0,a.jsx)("span",{className:"ml-2 font-weight-bold",children:x.counters?.comments})]}),!!e.additional&&(0,a.jsx)(a.Fragment,{children:e.additional})]}):null}},75795:(e,t,s)=>{"use strict";var a=s(61853);t.A=void 0;var n=a(s(59196)),i=s(26514);t.A=(0,n.default)((0,i.jsx)("path",{d:"m16.85 17.15 1.44-1.44-4.88-4.88-3.29 3.29c-.39.39-1.02.39-1.41 0l-6-6.01a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L9.41 12l3.29-3.29c.39-.39 1.02-.39 1.41 0l5.59 5.58 1.44-1.44c.31-.31.85-.09.85.35v4.29c0 .28-.22.5-.5.5H17.2c-.44.01-.66-.53-.35-.84"}),"TrendingDownRounded")},77108:(e,t,s)=>{"use strict";s.d(t,{M:()=>i});var a=s(26514),n=s(75834);function i(e){let[t,s]=(0,n.useState)(e.selected),i=t=>{s(t),e.onChange&&e.onChange(t)};return(0,n.useEffect)(()=>{s(e.selected)},[e.selected]),(0,a.jsx)("div",{className:"filter-selector",children:e.options.map((s,n)=>{let r=s.color?`label-${s.color}`:"label-light-primary active",l=e.labelClass??"label-light text-dark-50";return(0,a.jsxs)("div",{onClick:()=>{var e=s.key;t.indexOf(e)>=0?i(t.filter(t=>t!==e)):i([...t,e])},className:`filter-selector-item label text-nowrap
2                ${t.indexOf(s.key)>=0?r:l} 
3                label-inline label-pill label-lg mr-2 mb-2 shadow-sm ${s.color&&`text-hover-${s.color}`}`,children:[s.color&&(0,a.jsx)("i",{className:`label label-dot label-sm label-${t.indexOf(s.key)>=0?"white":s.color} mr-2`}),s.name]},`filter-val-${n}`)})})}},78408:(e,t,s)=>{"use strict";s.d(t,{T:()=>d});var a=s(26514);s(75834);var n=s(93760),i=s(59757),r=s(80092),l=s(48208),o=s(5625),c=s(57615);function d(e){let{user:t,referral:s,partnerUtm:d}=(0,i.d4)(e=>{let{auth:t,app:s}=e;return{user:t.user,referral:s.referral,partnerUtm:s.partnerUtm}}),u={pathname:"/auth/registration",query:{...s?{promo:s}:{},...d?{p_utm:d}:{}}},{t:h}=(0,n.B)(["user","common"]);return(0,a.jsx)(r.Q,{persistor:o.qj,children:t?!0===e.showCloneCategories&&(0,a.jsx)(c.W,{portfolio:e.portfolio}):(0,a.jsx)("div",{className:"card card-custom card-stretch bgi-no-repeat bgi-no-repeat bgi-size-cover gutter-b",style:{backgroundImage:"url(/media/svg/illustrations/grad-light-01.svg)"},children:(0,a.jsxs)("div",{className:"card-body d-flex align-items-center justify-content-between",children:[(0,a.jsxs)("div",{className:"mr-2",children:[(0,a.jsxs)("div",{className:"text-dark-color h4 mb-0",children:[e.showCloneCategories&&(0,a.jsxs)(a.Fragment,{children:[h("PUBLIC.CLONE_NOTIFICATION.TITLE")," \uD83D\uDE80"]}),!e.showCloneCategories&&(0,a.jsxs)(a.Fragment,{children:[h("PUBLIC.SUBSCRIBE_NOTIFICATION.TITLE")," ✨"]})]}),(0,a.jsxs)("div",{className:"text-dark-color",children:[!e.showCloneCategories&&(0,a.jsx)(a.Fragment,{children:h("PUBLIC.SUBSCRIBE_NOTIFICATION.MESSAGE")}),e.showCloneCategories&&(0,a.jsx)(a.Fragment,{children:h("PUBLIC.CLONE_REGIST
3ER_NOTIFICATION.MESSAGE")})]})]}),(0,a.jsx)(l.o,{href:u,className:"btn btn-white btn-white-bg font-weight-bold py-3 px-6",children:h("PUBLIC.SUBSCRIBE_NOTIFICATION.BUTTON")})]})})})}},79574:(e,t)=>{t.TF=function(e){return e.replace(/[^\u0000-\u007e]/g,function(e){return a[e]||e})};for(var s=[{base:" ",chars:"\xa0"},{base:"0",chars:"߀"},{base:"A",chars:"ⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",chars:"Ꜳ"},{base:"AE",chars:"\xc6ǼǢ"},{base:"AO",chars:"Ꜵ"},{base:"AU",chars:"Ꜷ"},{base:"AV",chars:"ꜸꜺ"},{base:"AY",chars:"Ꜽ"},{base:"B",chars:"ⒷBḂḄḆɃƁ"},{base:"C",chars:"ⒸCꜾḈĆCĈĊČ\xc7ƇȻ"},{base:"D",chars:"ⒹDḊĎḌḐḒḎĐƊƉᴅꝹ"},{base:"Dh",chars:"\xd0"},{base:"DZ",chars:"DZDŽ"},{base:"Dz",chars:"DzDž"},{base:"E",chars:"ɛⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"},{base:"F",chars:"ꝼⒻFḞƑꝻ"},{base:"G",chars:"ⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"},{base:"H",chars:"ⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",chars:"ⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",chars:"ⒿJĴɈȷ"},{base:"K",chars:"ⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",chars:"ⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",chars:"LJ"},{base:"Lj",chars:"Lj"},{base:"M",chars:"ⓂMḾṀṂⱮƜϻ"},{base:"N",chars:"ꞤȠⓃNǸŃ\xd1ṄŇṆŅṊṈƝꞐᴎ"},{base:"NJ",chars:"NJ"},{base:"Nj",chars:"Nj"},{base:"O",chars:"ⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OE",chars:"Œ"},{base:"OI",chars:"Ƣ"},{base:"OO",chars:"Ꝏ"},{base:"OU",chars:"Ȣ"},{base:"P",chars:"ⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",chars:"ⓆQꝖꝘɊ"},{base:"R",chars:"ⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",chars:"ⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",chars:"ⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",chars:"\xde"},{base:"TZ",chars:"Ꜩ"},{base:"U",chars:"ⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",chars:"ⓋVṼṾƲꝞɅ"},{base:"VY",chars:"Ꝡ"},{base:"W",chars:"ⓌWẀẂŴẆẄẈⱲ"},{base:"X",chars:"ⓍXẊẌ"},{base:"Y",chars:"ⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",chars:"ⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",chars:"ⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",chars:"ꜳ"},{base:"ae",chars:"\xe6ǽǣ"},{base:"ao",chars:"ꜵ"},{base:"au",chars:"ꜷ"},{base:"av",chars:"ꜹꜻ"},{base:"ay",chars:"ꜽ"},{base:"b",chars:"ⓑbḃḅḇƀƃɓƂ"},{base:"c",chars:"cⓒćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",chars:"ⓓdḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"},{base:"dh",chars:"\xf0"},{base:"dz",chars:"dzdž"},{base:"e",chars:"ⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇǝ"},{base:"f",chars:"ⓕfḟƒ"},{base:"ff",chars:"ff"},{base:"fi",chars:"fi"},{base:"fl",chars:"fl"},{base:"ffi",chars:"ffi"},{base:"ffl",chars:"ffl"},{base:"g",chars:"ⓖgǵĝḡğġǧģǥɠꞡꝿᵹ"},{base:"h",chars:"ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",chars:"ƕ"},{base:"i",chars:"ⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",chars:"ⓙjĵǰɉ"},{base:"k",chars:"ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",chars:"ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"},{base:"lj",chars:"lj"},{base:"m",chars:"ⓜmḿṁṃɱɯ"},{base:"n",chars:"ⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",chars:"nj"},{base:"o",chars:"ⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿꝋꝍɵɔᴑ"},{base:"oe",chars:"œ"},{base:"oi",chars:"ƣ"},{base:"oo",chars:"ꝏ"},{base:"ou",chars:"ȣ"},{base:"p",chars:"ⓟpṕṗƥᵽꝑꝓꝕρ"},{base:"q",chars:"ⓠqɋꝗꝙ"},{base:"r",chars:"ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",chars:"ⓢsśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"},{base:"ss",chars:"\xdf"},{base:"t",chars:"ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",chars:"\xfe"},{base:"tz",chars:"ꜩ"},{base:"u",chars:"ⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",chars:"ⓥvṽṿʋꝟʌ"},{base:"vy",chars:"ꝡ"},{base:"w",chars:"ⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",chars:"ⓧxẋẍ"},{base:"y",chars:"ⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",chars:"ⓩzźẑżžẓẕƶȥɀⱬꝣ"}],a={},n=0;n<s.length;n+=1)for(var i=s[n].chars,r=0;r<i.length;r+=1)a[i[r]]=s[n].base},80092:(e,t,s)=>{"use strict";t.Q=void 0;
3var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e){for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,s):{};a.get||a.set?Object.defineProperty(t,s,a):t[s]=e[s]}}return t.default=e,t}(s(75834));function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var c=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function s(){var e;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");for(var t,a,l=arguments.length,c=Array(l),d=0;d<l;d++)c[d]=arguments[d];return a=(e=(t=i(s)).call.apply(t,[this].concat(c)))&&("object"===n(e)||"function"==typeof e)?e:r(this),o(r(a),"state",{bootstrapped:!1}),o(r(a),"_unsubscribe",void 0),o(r(a),"handlePersistorState",function(){a.props.persistor.getState().bootstrapped&&(a.props.onBeforeLift?Promise.resolve(a.props.onBeforeLift()).finally(function(){return a.setState({bootstrapped:!0})}):a.setState({bootstrapped:!0}),a._unsubscribe&&a._unsubscribe())}),a}return s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),e&&l(s,e),t=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}],function(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(s.prototype,t),s}(a.PureComponent);t.Q=c,o(c,"defaultProps",{children:null,loading:null})},83393:(e,t,s)=>{"use strict";var a=s(61853);t.A=void 0;var n=a(s(59196)),i=s(26514);t.A=(0,n.default)((0,i.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2z"}),"LockRounded")},86316:(e,t,s)=>{var a=s(11123),n=s(57825),i=s(28041),r=s(87125);e.exports=function(e,t){return function(s,l){var o=r(s)?a:n,c=t?t():{};return o(s,e,i(l,2),c)}}},86787:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>t9,default:()=>t7});var a=s(26514),n=s(78408),i=s(71696),r=s(87800),l=s(55285),o=s(90024),c=s(95399),d=s(91283),u=s(53920),h=s(21069);function m(e,t){return e?.replace(/{(.*?)}/g,(e,s)=>t[s.trim()]??"")}function p(e,t){return e?.replace(/{{(.*?)}}/g,(e,s)=>t[s.trim()]??"")}function f(e,t,s){let a=(0,u.am)(!1,e?.currency,!1),n=(0,u.AG)(!1,!1,{maximumFractionDigits:2}),i=(0,d.LV)(t),r=(0,d.Ac)("FULL_DATE",t,(0,d.Tq)(t)),l=e=>null!=e?a.format(e):"",m=e=>null!=e?n.format(e):"",p=e=>e?(0,o.A)(new Date(e),r,{locale:i}):"";return{ticker:e?.ticker,name:e?.description,sector:e?.sector,gicSector:e?.gicSector,industry:e?.industry,currentPrice:l(e?.currentPrice),prevClosePrice:l(e?.prevClosePrice),lastDayGainsAmount:l(e?.lastDayGainsAmount),lastDayGainsPercent:`${m(e?.lastDayGainsPercent)}%`,marketCapMln:(0,u.sz)(e?.marketCapMln,s),eps:l(e?.eps),forwardEPS:l(e?.forwardEPS),pe:m(e?.pe),forwardPE:m(e?.forwardPE),ebitda:(0,u.sz)(e?.ebitda,s),divPerYearFWD:l(e?.divPerYearFWD),divYieldFWD:`${m(e?.divYieldFWD)}%`,divFrequency:s((0,h.Jz)(e?.divFrequency,!0),{ns:"common"})?.toLowerCase(),exDividendDate:p(e?.exDividendDate),lastEarningsReportDate:p(e?.lastEarningsReportDate),lastQuaterEPSSurprise:`${m(e?.lastQuaterEPSSurprise)}%`,lastQuaterRevenueSurprise:`${m(e?.lastQuaterRevenueSurprise)}
3%`,nextEarningsReportDate:p(e?.nextEarningsReportDate),beta:e?.beta?.toFixed(3),today:p((0,c.A)(new Date)),nextDividendDate:p(e?.nextDividendDate),expenseRatio:`${m(e?.expenseRatio)}%`}}var S=s(47115);s(88515);var g=s(38099),x=s(35061),v=s(32491),b=s.n(v),N=s(57985),T=s(75834),E=s(47894),O=s(5226),A=s(33989),I=s(63390),y=s(7086);async function C(e){let t=await y.A.get(I.qMp,{params:{assetInfoId:e},validateStatus:()=>!0});if(200===t.status&&"string"==typeof t.data){let e=(t.data??"").trim();return e.length?e:null}return null}async function j(e){let{data:t}=await y.A.get(I.eMM,{params:{assetInfoId:e}});return t}async function P(e){let{data:t}=await y.A.get(I.Qhj,{params:{assetInfoId:e}});return t}async function R(e){let{data:t}=await y.A.get(I.oX9,{params:{assetInfoId:e},removePublicForUser:!0});return t}async function w(e){let{data:t}=await y.A.get(`${I.IW7}/summary/${e}`,{params:{assetInfoId:e}});return t}async function D(e){let{data:t}=await y.A.get(I.arM,{params:{assetInfoId:e}});return t}let _={key:e=>["publicAssetRating",e],options:(e,t)=>(0,O.j)({...t,queryKey:_.key(e),queryFn:async()=>{try{return D(e)}catch(e){console.error("Failed to load asset rating",e)}}})};function M(e,t){return(0,A.I)(_.options(e,t))}let L={key:e=>["publicAssetDivHistory",e],options:(e,t)=>(0,O.j)({...t,queryKey:L.key(e),queryFn:async()=>P(e)})},k={key:e=>["publicAssetFinancials",e],options:(e,t)=>(0,O.j)({...t,queryKey:k.key(e),queryFn:()=>R(e)})},F={key:e=>["publicAssetFundData",e],options:(e,t)=>(0,O.j)({...t,queryKey:F.key(e),queryFn:()=>j(e)})},U={key:e=>["publicAssetRank",e],options:(e,t)=>(0,O.j)({...t,queryKey:U.key(e),queryFn:async()=>{try{return w(e)}catch(e){console.error("Failed to load asset rating",e)}}})},B={key:e=>["fundamental-insight",e],options:(e,t)=>(0,O.j)({...t,queryKey:B.key(e),queryFn:async()=>{if(!e)return null;try{return C(e)}catch(e){return console.error("Failed to fetch fundamental insight:",e),null}}})};var G=s(5771),K=s(23141),H=s(64137),Y=s(75165),W=s(59516),V=s(71364),z=s(97043),$=s(1891),Q=s(23469),X=s.n(Q),Z=s(46225),q=s(50062),J=s(93760),ee=s(59757),et=s(9610),es=s.n(et),ea=s(4469),en=s(78693),ei=s(96842);function er(e){let{currency:t,...s}=e,{t:n}=(0,J.B)(["assetPage","common"]);return(0,a.jsx)("div",{className:"row",children:s.portfolios.map((e,i)=>(0,a.jsx)("div",{className:"col-xl-4 col-lg-4 col-md-6 col-sm-12",onClick:()=>{s.selectPortfolio(e)},children:(0,a.jsx)("div",{className:"card card-custom card-sm-stretch card-stretch gutter-b clickable-card card-grow-hover",children:(0,a.jsx)("div",{className:"card-body stats-card ",children:(0,a.jsx)("div",{className:"d-flex flex-column justify-content-between",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"stats-header d-flex align-items-center",children:(0,a.jsxs)("span",{className:"text-dark-50 font-size-sm font-weight-bold d-flex",style:{textTransform:"uppercase"},children:[(0,a.jsx)("span",{className:"mr-2 broker-symbol",children:(0,en.Tb)(e,e.portfolioBroker)}),"ALL_PORTFOLIOS"===e.portfolioName?n("NO_OF_PORTFOLIOS",{ns:"common",count:s.portfolios.length-1}):e.portfolioName]})}),(0,a.jsxs)("div",{className:"stats-subheader mt-1 mb-2",children:[e.amount>0&&(0,a.jsxs)("span",{className:"font-weight-bold font-size-h5",children:[(0,a.jsx)(Y.b,{value:e.currentTotalPrice,isMoney:!0,currency:t})," ","• ",(0,a.jsx)(Y.b,{value:e.amount,precision:"auto"})," ",n("PIECES",{ns:"common",count:e.amount})]}),0==e.amount&&e.soldOut&&(0,a.jsx)("span",{className:"font-weight-bold font-size-h5 text-muted",children:n("SOLD_OUT",{ns:"common"})}),0==e.amount&&!e.soldOut&&(0,a.jsxs)("span",{className:"font-weight-bold font-size-h5",children:[(0,a.jsx)(Y.b,{value:e.amount})," ",n("PIECES",{ns:"common",count:e.amount})]})]}),0!=e.price&&(0,a.jsxs)("div",{className:"stats-bottom d-flex justify-content-between align-items-center",children:[(0,a.jsx)("span",{className:"text-dark-50 font-size-sm",children:n("ASSET.OWNERSHIP.AVERAGE_PRICE")}),(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsx)("span",{className:"text-nowrap",children:(0,a.jsx)(Y.b,{className:"font-weight-bold font-size-sm",precision:e.price<ei.zH?4:2,value:e.price-(e.avgAmortizationReceived||0),isMoney:!0,currency:t})})})]}),(0,a.jsxs)("div",{className:"stats-bottom d-flex justify-content-between align-items-center",children:[(0,a.jsx)("span",{className:"text-dark-50 font-size-sm",children:n("ASSET.OWNERSHIP.PROFIT_TOTAL")}),(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("span",{className:"text-nowrap",children:(0,a.jsx)(Y.b,{className:"font-weight-bold font-size-sm",value:e.totalGainValue,isMoney:!0,currency:t,symbol:"sign",showColors:!0})}),(0,a.jsxs)("span",{className:`IncomePercent text-nowrap ${e.totalGainPercent<0?"text-danger":"text-success"}`,children:["\xa0(",(0,a.jsx)(Y.b,{className:"font-weight-bold font-size-sm",value:e.totalGainPercent,isPercent:!0,showColors:!0,precision:1,symbol:"tri
3angle"}),")"]})]})]}),0!=e.gainValue&&0!=e.gainPercent&&(0,a.jsxs)("div",{className:"stats-bottom d-flex justify-content-between align-items-center",children:[(0,a.jsx)("span",{className:"text-dark-50 font-size-sm",children:n("ASSET.OWNERSHIP.UNREALIZED_PL")}),(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("span",{className:"text-nowrap",children:(0,a.jsx)(Y.b,{className:"font-weight-bold font-size-sm",value:e.gainValue,isMoney:!0,currency:t,symbol:"sign",showColors:!0})}),(0,a.jsxs)("span",{className:`IncomePercent text-nowrap ${e.gainPercent<0?"text-danger":"text-success"}`,children:["\xa0(",(0,a.jsx)(Y.b,{className:"font-weight-bold font-size-sm",value:e.gainPercent,isPercent:!0,showColors:!0,precision:1,symbol:"triangle"}),")"]})]})]}),e.divPaid>0&&(0,a.jsxs)("div",{className:"stats-bottom d-flex justify-content-between align-items-center",children:[(0,a.jsx)("span",{className:"text-dark-50 font-size-sm",children:n("ASSET.OWNERSHIP.DIVS")}),(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsx)("span",{className:"text-nowrap",children:(0,a.jsx)(Y.b,{className:"font-weight-bold font-size-sm",value:e.divPaid+e.divTaxes,isMoney:!0,currency:t,symbol:"sign"})})})]}),0!=e.totalShare&&(0,a.jsxs)("div",{className:"stats-bottom d-flex justify-content-between align-items-center",children:[(0,a.jsx)("span",{className:"text-dark-50 font-size-sm",children:n("ASSET.OWNERSHIP.SHARE")}),(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsx)("span",{className:"text-nowrap",children:(0,a.jsx)(Y.b,{className:"font-weight-bold font-size-sm",value:e.totalShare,precision:e.totalShare<.1?4:2,isPercent:!0})})})]})]})})})})},i))})}var el=s(63765),eo=s(93696),ec=s(60890),ed=s.n(ec),eu=s(66086),eh=s(73669),em=s(86926),ep=s(64938),ef=s(13566),eS=s(54172);function eg(e){var t;let{currency:s,item:n,...i}=e,{t:r,i18n:l}=(0,J.B)(["holdings","common"]),o=(0,T.createRef)(null),c=(0,T.createRef)(null),d=(0,T.createRef)(null);function u(){o&&o.current&&o.current.open(n)}let[h,m]=(0,T.useState)("trans");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"card card-custom card-sm-stretch card-stretch gutter-b",children:(0,a.jsxs)("div",{className:"card-body stats-card pb-0",children:[i.showBackBtn&&(0,a.jsx)("div",{children:(0,a.jsxs)("button",{type:"button",className:"btn btn-link-primary btn-sm font-weight-bold text-muted btn-hover-transparent-primary mb-4",onClick:()=>{i.selectPortfolio(null)},children:[(0,a.jsx)("i",{className:"flaticon2-left-arrow icon-sm text-muted"})," ",r("TO_ALL_PORTFOIOS")]})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"stats-header d-flex align-items-center mb-3",children:(0,a.jsxs)("span",{className:"font-weight-bold",style:{textTransform:"uppercase"},children:[(0,a.jsx)("span",{className:"mr-2",children:(t=n.portfolioBroker,(0,en.Tb)(n,t))}),"ALL_PORTFOLIOS"===n.portfolioName?r(n.portfolioName,{ns:"common"}):n.portfolioName]})})}),(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-sm-12 col-md-4 col-lg-4 col-xl-3",children:(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("div",{className:"font-weight-bold mb-1 px-1",children:r("TABS.COMMON")}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.AMOUNT")}),n.soldOut&&(0,a.jsx)("div",{className:"asset-summary-val font-weight-bold text-muted",children:r("SOLD_OUT",{ns:"common"})}),!n.soldOut&&(0,a.jsxs)("div",{className:"asset-summary-val font-weight-bold",children:[(0,a.jsx)(Y.b,{value:n.amount,precision:"auto"})," ",r("PIECES",{ns:"common",count:n.amount})]})]})}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.CURRENT_COST")}),(0,a.jsx)("div",{className:"asset-summary-val",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",precision:n.currentTotalPrice<ei.zH?4:2,value:n.currentTotalPrice,isMoney:!0,currency:s})})]})}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.PRICE")}),(0,a.jsx)("div",{className:"asset-summary-val",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",precision:n.price<ei.zH?4:2,value:n.price-(n.avgAmortizationReceived||0),isMoney:!0,currency:s})})]})}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.COST_BASIS")}),(0,a.jsx)("div",{className:"asset-summary-val",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",precision:n.totalPrice<ei.zH?4:2,value:n.totalPrice,isMoney:!0,currency:s})})]})}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.SHARE")}),(0,a.jsx)("div",{className:"asset-summary-val",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",value:n.totalShare,precision:n.totalShare<.1?4:2,isPercent:!0})})]})})]})}),(0!==n.yearTotalDivs||0!==n.divYieldAverage||0!==n.divPaid)&&(0,a.jsx)("div",{className:"col-sm-12 col-md-4 col-lg-4 col-xl-3",children:(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("div",{className:"font-weight-bold mb-1 px-1",children:r("GROUP.DIVIDENDS_COUPONS")}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.DIV_YEAR_AHEAD")}),(0,a.jsx)("div",{className:"asset-summary-val font-weight-bold",children:(0,a.jsx)(Y.b,{value:n.yearTotalDivs,isMoney:!0,currency:s})})]})}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.DIV_YIELD_ON_COST_SHORT")}),(0,a.jsx)("div",{className:"asset-summary-val",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",value:n.divYieldAverage,isPercent:!0})})]})}),0!==n.divPaid&&(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.RECEIVED_DIVS_SHORT")}),(0,a.jsx)("div",{className:"asset-summary-val",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",showColors:!0,value:n.divPaid+n.divTaxes,isMoney:!0,currency:s,symbol:"sign"})})]})}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.DIV_TAX")}),(0,a.jsxs)("div",{className:"asset-summary-val font-weight-bold",children:["ALL_PORTFOLIOS"!==n.type&&(0,a.jsxs)("a",{className:"text-dark-65",href:void 0,onClick:()=>{c.current.open([n],n.portfolioId)},children:[(0,a.jsx)(Y.b,{value:n.dividendTax,isPercent:!0})," ",(0,a.jsx)("i",{className:"icon-sm text-dark-65 flaticon-edit"})]}),"ALL_PORTFOLIOS"===n.type&&(0,a.jsx)(Y.b,{value:n.dividendTax,isPercent:!0})]})]})})]})}),(0,a.jsx)("div",{className:"col-sm-12 col-md-4 col-lg-4 col-xl-3",children:(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("div",{className:"font-weight-bold mb-1 px-1",children:r("TABS.GAIN")}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.GAIN")}),(0,a.jsxs)("div",{className:"asset-summary-val",children:[(0,a.jsx)("span",{className:"text-nowrap",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",value:n.totalGainValue,isMoney:!0,currency:s,symbol:"sign",showColors:!0})}),(0,a.jsxs)("span",{className:`IncomePercent text-nowrap ${n.totalGainPercent<0?"text-danger":"text-success"}`,children:["\xa0(",(0,a.jsx)(Y.b,{className:"font-weight-bold",value:n.totalGainPercent,isPercent:!0,showColors:!0,precision:1,symbol:"tri
3angle"}),")"]})]})]})}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.PRICE_GAIN_SHORT")}),(0,a.jsxs)("div",{className:"asset-summary-val",children:[(0,a.jsx)("span",{className:"text-nowrap",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",value:n.gainValue,isMoney:!0,currency:s,symbol:"sign",showColors:!0})}),(0,a.jsxs)("span",{className:`IncomePercent text-nowrap ${n.gainPercent<0?"text-danger":"text-success"}`,children:["\xa0(",(0,a.jsx)(Y.b,{className:"font-weight-bold",value:n.gainPercent,isPercent:!0,showColors:!0,precision:1,symbol:"triangle"}),")"]})]})]})}),0!==n.profitFromSell&&(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.SOLD_GAIN")}),(0,a.jsx)("div",{className:"asset-summary-val",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",showColors:!0,value:n.profitFromSell,isMoney:!0,currency:s,symbol:"sign"})})]})}),0!==n.commissionPaid&&(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.COMMISSION")}),(0,a.jsx)("div",{className:"asset-summary-val",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",showColors:!0,value:n.commissionPaid,isMoney:!0,currency:s,symbol:"sign"})})]})}),(n.return||n.returnBuysOnly)&&(0,a.jsx)("div",{className:"container-nowrap-scroll",children:(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center highlight-hover px-1 pb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:r("COLUMN.RETURN_GAIN")}),(0,a.jsxs)("div",{className:"asset-summary-val",children:[(0,a.jsx)(Y.b,{className:"font-weight-bold",showColors:!0,value:n.return||n.returnBuysOnly,isPercent:!0,symbol:"triangle"}),!n.return&&!!n.returnBuysOnly&&(0,a.jsx)(eh.N,{className:"ml-2",textColor:"dark-50",icon:"flaticon2-warning",message:(0,a.jsx)(K.x,{i18nKey:"holdings:XIRR.ONLY_CURRENT_MESSAGE"})})]})]})})]})}),(0,a.jsx)("div",{className:"col-sm-12 col-md-4 col-lg-4 col-xl-3",children:(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-1 px-1",children:[(0,a.jsx)("div",{className:"font-weight-bold",children:r("NOTES.PROPERTY")}),n.portfolioId!==S.U2&&(0,a.jsxs)(a.Fragment,{children:[!!n.note&&(0,a.jsx)("button",{type:"button",onClick:u,className:"btn btn-sm btn-link-primary font-weight-bold",children:r("BUTTON.EDIT",{ns:"common"})}),!n.note&&(0,a.jsx)("button",{type:"button",onClick:u,className:"btn btn-sm btn-link-primary font-weight-bold",children:r("BUTTON.ADD",{ns:"common"})})]})]}),(0,a.jsx)("div",{className:"px-1",children:!!n.note&&(0,a.jsx)("div",{className:"note-wrapper text-dark-65",children:(0,a.jsx)(ed(),{children:n.note})})})]})})]}),String(n.portfolioType)===S.N$.HOLDINGS&&(0,a.jsx)("div",{className:"py-4",children:(0,a.jsx)("button",{type:"button",className:"btn btn-light-primary font-weight-bold mb-4",onClick:function(){d&&d.current&&d.current.open("edit",n)},children:r("BUTTON.EDIT",{ns:"common"})})}),String(n.portfolioType)!==S.N$.HOLDINGS&&(0,a.jsx)(el.A.Container,{defaultActiveKey:h,children:(0,a.jsxs)(eo.A,{as:"ul",onSelect:m,className:"nav nav-tabs nav-tabs-space-lg nav-tabs-line nav-bold nav-tabs-line-3x sb-nav nav-dark-75 mt-2",children:[(0,a.jsx)(eo.A.Item,{className:"nav-item",as:"li",children:(0,a.jsx)(eo.A.Link,{eventKey:"trans",className:`nav-link py-3 ${"trans"===h?"active":""}`,children:(0,a.jsx)("span",{className:"nav-text",children:r("TABS.HOLDING.TRANSACTIONS")})})}),(0,a.jsx)(eo.A.Item,{className:"nav-item",as:"li",children:(0,a.jsx)(eo.A.Link,{eventKey:"divs",className:`nav-link py-3 ${"divs"===h?"active":""}`,children:(0,a.jsx)("span",{className:"nav-text",children:r("TABS.HOLDING.DIVIDENDS")})})})]})})]})}),String(n.portfolioType)!==S.N$.HOLDINGS&&(0,a.jsx)("div",{className:"tab-content",style:{backgroundColor:"transparent"},children:(0,a.jsx)("div",{className:"card card-custom card-sm-stretch gutter-b",children:(0,a.jsxs)("div",{className:"card-body",children:["trans"===h&&
3(0,a.jsx)(eS.p,{onlyTab:S.yj.TRADE,showImportButton:!1,hideToolbar:!1,portfolioId:n.portfolioId,trackCashType:n.portfolioId!==S.U2?n.trackCashType:null,defaultCommission:n.portfolioId!==S.U2?n.brokerCommission:null,isReadonly:n.portfolioId===S.U2||n.isComposite,isComposite:n.portfolioId===S.U2||n.isComposite,predefinedHolding:{holdingId:n.id,ticker:n.ticker,exchange:n.exchange,currency:s,assetType:n.type},onUpdated:()=>{i.onChanged&&i.onChanged()}}),"divs"===h&&(0,a.jsx)(eS.p,{onlyTab:S.yj.INCOME,supportedTypes:[eu.KJ.Divs],showImportButton:!1,hideToolbar:!1,portfolioId:n.portfolioId,trackCashType:n.portfolioId!==S.U2?n.trackCashType:null,defaultCommission:n.portfolioId!==S.U2?n.brokerCommission:null,isReadonly:n.portfolioId===S.U2||n.isComposite,isComposite:n.portfolioId===S.U2||n.isComposite,predefinedHolding:{holdingId:n.id,ticker:n.ticker,exchange:n.exchange,currency:s,assetType:n.type},onUpdated:()=>{i.onChanged&&i.onChanged()}})]})})}),(0,a.jsx)(em.A,{ref:o,t:r,i18n:l,portfolioId:n?n.id:null,onHide:e=>{n.note=e}}),(0,a.jsx)(ep.P,{ref:c,t:r,portfolioId:n?n.id:null,onHide:e=>{!0===e&&i.onChanged&&i.onChanged()}}),(0,a.jsx)(ef.P,{ref:d,portfolioId:n.portfolioId,onHide:()=>{i.onChanged&&i.onChanged()}})]})}let ex="AssetOwnershipBlock",ev={showPortfolioItemHelp:!0};function eb(e){let{t}=(0,J.B)(["assetPage","common"]),{user:s}=(0,ee.d4)(e=>{let{auth:t}=e;return{user:t.user}}),{assetInfoId:n,currency:i}=e.asset,[r,l]=(0,T.useState)([]),[o,c]=(0,T.useState)(!1),[d,u]=(0,T.useState)(ev),[h,m]=(0,T.useState)(null);function p(t){m(t),e.onPortfolioSelected&&e.onPortfolioSelected(t)}return(0,T.useEffect)(()=>{s&&n&&(c(!0),y.A.get(I.PLT,{params:{assetInfoId:n,ticker:e.asset.ticker,exchange:e.asset.exchange,currency:e.asset.currency}}).then(e=>{let{data:t}=e;if(l(t),1===t.length)m(t[0]);else if(h){let e=b()(t,e=>e.portfolioId===h.portfolioId);e?p(e):m(null)}c(!1)}).catch(()=>{c(!1),l([])}))},[e.reloadTrigger,n]),(0,T.useEffect)(()=>{u(ea.Gu(ex,ev))},[]),(0,a.jsxs)(a.Fragment,{children:[s&&(o||r.length>0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"font-weight-bolder font-size-h4 pb-3",children:t("ASSET.OWNERSHIP.TITLE")}),o&&(0,a.jsx)(G.v,{})]}),s&&r.length>1&&null!=h&&d.showPortfolioItemHelp&&(0,a.jsx)("div",{className:"alert alert-custom alert-light-info show py-3 pl-5",children:(0,a.jsxs)("div",{className:"row justify-content-between align-items-center",children:[(0,a.jsxs)("div",{className:"col-auto",children:["\uD83D\uDCA1 ",t("ASSET.OWNERSHIP.MANY_PORTFOLIOS.HELP")]}),(0,a.jsx)("div",{className:"col-auto d-flex align-items-center justify-content-end",children:(0,a.jsx)("button",{type:"button",className:"btn btn-md btn-link-info font-weight-bold",onClick:function(){let e={...d};e.showPortfolioItemHelp=!1,u(e),ea.LZ(ex,e)},children:t("BUTTON.GOT_IT",{ns:"common"})})})]})}),!o&&s&&r.length>0&&null==h&&(0,a.jsxs)("div",{children:[(0,a.jsx)(er,{currency:i,portfolios:es()(r,e=>e.viewType==S.Sj.REAL_ACCOUNT),selectPortfolio:p}),es()(r,e=>e.viewType==S.Sj.SANDBOX).length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"font-weight-bolder font-size-h6 pb-2 text-dark-50",children:t("ASSET.OWNERSHIP.VIRTUAL")}),(0,a.jsx)(er,{currency:i,portfolios:es()(r,e=>e.viewType==S.Sj.SANDBOX),selectPortfolio:p})]})]}),!o&&null!=h&&(0,a.jsx)(eg,{item:h,currency:i,selectPortfolio:p,showBackBtn:r.length>1,onChanged:function(){e.onChanged&&e.onChanged()}})]})}var eN=s(63760),eT=s(49522);function eE(e){let{t,i18n:{language:s}}=(0,J.B)("assetPage");return(0,a.jsxs)("div",{className:"card card-custom card-sm-stretch card-stretch gutter-b",children:[(0,a.jsx)("div",{className:"card-header border-0 pb-0",children:(0,a.jsx)("span",{className:"card-title font-weight-bolder text-h3",children:t("ASSET.SUMMARY.ABOUT_COMPANY")})}),(0,a.jsx)("div",{className:"card-body mb-n3",children:(0,a.jsxs)("div",{className:"row",children:[(0,a.jsxs)("div",{className:"col-lg-6 col-xl-6 col-md-12 col-sm-12",children:[(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:t("ASSET.SUMMARY.ABOUT_COMPANY.TICKER")}),(0,a.jsx)("div",{className:"asset-summary-val font-weight-bold",children:(0,a.jsx)(eT.$,{component:"div",children:e.assetSummary.ticker})})]}),(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:t("ASSET.SUMMARY.ABOUT_COMPANY.ISIN")}),(0,a.jsx)("div",{className:"asset-summary-val font-weight-bold",children:(0,a.jsx)(eT.$,{component:"div",children:e.assetSummary.isin})})]})]}),(0,a.jsxs)("div",{className:"col-lg-6 col-xl-6 col-md-12 col-sm-12",children:[(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:t("ASSET.SUMMARY.ABOUT_COMPANY.COUNTRY")}),(0,a.jsx)("div",{className:"asset-summary-val font-weight-bold",children:(0,eN.qQ)(e.assetSummary.countryISO,s)})]}),(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-1",children:[(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:t("ASSET.SUMMARY.ABOUT_COMPANY.SECTOR")}),(0,a.jsx)("div",{className:"asset-summary-val font-weight-bold",children:e.assetSummary.gicSector})]})]})]})}),e.assetSummary.companyDescription&&(0,a.jsx)("div",{className:"card-body pt-0","data-nosnippet"
3:"true",children:e.assetSummary.companyDescription})]})}var eO=s(99344),eA=s(38089),eI=s(49732),ey=s(42197),eC=s(22871),ej=s(45251),eP=s(15269);function eR(e){let{onSent:t}=e,[s,n]=(0,T.useState)(!1),i=e=>{y.A.post(I.Yqn,{stars:e,message:null,feedbackType:eC.M.AI_INSIGHTS}).then(t).catch(()=>{(0,eP.f1)("ERROR.FEEDBACK_FAILED")}).finally(()=>{n(!1)})};return(0,a.jsxs)("div",{className:"d-flex align-items-center mt-5 mb-3",children:[(0,a.jsx)("button",{type:"button",className:"btn btn-icon btn-lg btn-light-primary mr-4",onClick:()=>i(1),disabled:s,children:(0,a.jsx)("i",{className:"far fa-thumbs-down pr-0 text-dark-65"})}),(0,a.jsx)("button",{type:"button",className:"btn btn-icon btn-lg btn-primary",onClick:()=>i(5),disabled:s,children:(0,a.jsx)("i",{className:"far fa-thumbs-up pr-0 text-white"})})]})}var ew=s(52397),eD=s.n(ew);let e_=(0,l.nE)()?"SBER.MCX":"AAPL.US";var eM=function(e){return e.DEFAULT="default",e.LOCKED="locked",e.EXAMPLE="example",e}({});function eL(e){let{viewType:t="default",content:s}=e,{t:n}=(0,J.B)(["common","assetPage"]),{isMobile:i}=(0,ey.l)(),{user:r}=(0,ee.d4)(e=>{let{auth:t}=e;return t}),{isFeedbackShown:l,saveFeedbackShownState:o}=(0,E.iT)(eC.Y.AI_INSIGHTS),[c,d]=(0,T.useState)(!1),[u,h]=(0,T.useState)(!1),[m,p]=(0,T.useState)(!1),[f,S]=(0,T.useState)(!1),g=(0,a.jsx)(ej.N,{legacyBehavior:!0,href:"/user-manage-subscription",children:(0,a.jsx)("button",{type:"button",className:`btn btn-gradient btn-lg px-8 ${eD().subscribeBtn}`,children:n("GET_SUBSCRIPTION")})}),x=(0,a.jsx)("div",{role:"alert",className:`fade alert-light alert show font-size-sm mb-0 ${eD().alert}`,children:(0,a.jsx)(K.x,{i18nKey:"assetPage:ASSET.AI_INSIGHT.PAYWALL_TEXT",components:[(0,a.jsx)("b",{})]})}),v=["default","example"].includes(t),b=(0,a.jsx)(eh.N,{message:(0,a.jsx)(K.x,{i18nKey:"assetPage:ASSET.AI_INSIGHT.DISCLAIMER"}),className:"mt-0 ml-3",rootClassName:eD().tooltip,placement:i?"auto":"left-start"});return(0,a.jsxs)("div",{className:"card card-custom gutter-b pt-6",children:["locked"!==t&&(0,a.jsx)("div",{className:"card-header border-0 mb-5 py-0",style:{minHeight:0},children:(0,a.jsxs)("div",{className:"d-flex align-items-center card-title font-weight-bolder text-h3 m-0",children:[(0,a.jsx)("span",{className:"mr-3",children:(0,a.jsx)(eI.A,{size:"xl",color:"none",src:"/media/svg/logos/illustrator.svg",className:"mr-1"})}),n("assetPage:ASSET.AI_INSIGHT.HEADER"),b]})}),(0,a.jsxs)("div",{className:"card-body pt-0",children:[v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eA.A,{collapsedSize:55,in:u,addEndListener:()=>{u||setTimeout(()=>{p(!0)},200)},children:(0,a.jsx)("div",{className:`${m?eD().text:""} ${eD().content}`,ref:e=>{e?.clientHeight&&!f&&(S(!0),e.clientHeight<=55||(d(!0),p(!0)))},children:(0,a.jsx)(ed(),{children:s})})}),u&&!!r&&!l&&(0,a.jsx)(eR,{onSent:o}),c&&(0,a.jsx)("button",{type:"button",className:"btn btn-link-primary font-weight-bold text-hover-dark btn-sm mt-3",onClick:()=>{u||p(!1),h(e=>!e)},children:n(u?"BUTTON.COLLAPSE":"BUTTON.SHOW")})]}),"locked"===t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"d-flex align-items-center mb-7",children:[(0,a.jsx)(eI.A,{size:"md",color:"none",src:"/media/svg/icons/Code/Lock.svg",className:"mr-3"}),(0,a.jsx)("span",{className:eD().locked,children:s}),b]}),(0,a.jsxs)("div",{className:"d-flex d-sm-block flex-column-reverse",children:[(0,a.jsxs)("div",{className:"d-sm-flex align-items-center mb-sm-7",children:[(0,a.jsx)("div",{className:"mr-sm-10 mb-5 mb-sm-0",children:g}),(0,a.jsx)(ej.N,{href:`/public/asset/${e_}`,children:(0,a.jsx)("strong",{children:n("assetPage:ASSET.AI_INSIGHT.EXAMPLE_LINK")})})]}),(0,a.jsx)("div",{className:"mb-6 mb-sm-0",children:x})]})]}),"example"===t&&(0,a.jsxs)("div",{className:"d-flex flex-column-reverse flex-sm-row mt-8",children:[(0,a.jsx)("div",{className:"mr-sm-6",children:g}),(0,a.jsx)("div",{className:"mb-sm-0 mb-6",children:x})]})]})]})}let ek=(0,l.nE)()?["SBER","LKOH","ROSN","NVTK","GAZP"]:["AAPL","AMZN","KO","NVDA"],eF=[S.Qh.TIER_1_OLD,S.Qh.TIER_1,S.Qh.TIER_2,S.Qh.TIER_3];function eU(e){var t,s;let{asset:n}=e,i=(0,ee.d4)(e=>e.auth.user?.subscriptionType),{data:r,isFetched:l}=(t=n.assetInfoId,s={staleTime:0,refetchOnMount:!1},(0,A.I)(B.options(t,s))),o=!!i&&eF.includes(i),c=ek.includes((n.ticker??"").toUpperCase())||o;if(!l||!r)return null;let d=eM.DEFAULT;return c||(d=eM.LOCKED),c&&!o&&(d=eM.EXAMPLE),(0,a.jsx)(eL,{content:r,viewType:d})}let eB=X()(()=>Promise.all([s.e(4828),s.e(1733)]).then(s.bind(s,31733)).then(e=>e.AssetPriceChart),{loadableGenerated:{webpack:()=>[31733]},ssr:!1,loading:()=>(0,a.jsx)(G.J,{})});class eG extends T.Component{constructor(e){super(e),this.prepareHighlights=(e,t)=>{let s=[];if(null!=e&&this.props.assetInfo.type==S.PW.ETF){let e=[];e.length>0&&s.push({name:"ASSET.SUMMARY.COMMON",items:e,fullRow:!0})}if(null!==e&&this.props.assetInfo.type!=S.PW.BOND){if(null!==e){let t=[];e.pe&&t.push({name:"STOCK.PROP.PE_TTM",help:"STOCK.PROP.PE_HELP",value:(0,a.jsx)(Y.b,{value:e.pe,precision:1})}),e.eps&&t.push({name:"STOCK.PROP.EPS_TTM",help:"STOCK.PROP.EPS_TTM_HELP",value:(0,a.jsx)(Y.b,{value:e.eps,precision:3})}),e.beta&&t.push({name:"STOCK.PROP.BETA",help:"STOCK.PROP.BETA_HELP",value:(0,a.jsx)(Y.b,{value:e.beta,precision:3})}),t.length>0&&s.push({name:"ASSET.SUMMARY.VALUATION",items:t})}if(null!==e){let t=[];e.revenueGrowthYoY&&t.push({name:"STOCK.PROP.REVENUE_GROWTH_YOY",help:"STOCK.PROP.REVENUE_GROWTH_YOY_HELP",value:(0,a.jsx)(Y.b,{value:e.revenueGrowthYoY,isPercent:!0})}),e.netIncomeGrowthYoY&&t.push({name:"STOCK.PROP.NETINCOME_GROWTH_YOY",help:"STOCK.PROP.NETINCOME_GROWTH_YOY_HELP",value:(0,a.jsx)(Y.b,{value:e.netIncomeGrowthYoY,isPercent:!0})}),e.cashFlowGrowthYoY&&t.push({name:"STOCK.PROP.CASHFLOW_GROWTH_YOY",help:"STOCK.PROP.CASHFLOW_GROWTH_YOY_HELP",value:(0,a.jsx)(Y.b,{value:e.cashFlowGrowthYoY,isPercent:!0})}),t.length>0&&s.push({name:"ASSET.SUMMARY.GROWTH",items:t})}if(null!==e){let t=[];e.forwardPE&&t.push({name:"STOCK.PROP.PE_FWD",help:"STOCK.PROP.PE_FWD_HELP",value:(0,a.jsx)(Y.b,{value:e.forwardPE,precision:1})}),e.forwardEPS&&t.push({name:"STOCK.PROP.EPS_FWD",help:"STOCK.PROP.EPS_FWD_HELP",value:(0,a.jsx)(Y.b,{value:e.forwardEPS,precision:3})}),t.length>0&&s.push({name:"ASSET.SUMMARY.FORECAST",items:t})}if(null!==e&&e.divYieldFWD){let n=[];if(e.divYieldFWD&&n.push({name:e.isDivYieldTTM?"STOCK.PROP.DIV_YIELD_TTM":"STOCK.PROP.DIV_YIELD_FWD",help:e.isDivYieldTTM?"STOCK.PROP.DIV_YIELD_TTM_HELP":"STOCK.PROP.DIV_YIELD_FWD_HELP",value:(0,a.jsx)(Y.b,{value:e.divYieldFWD,isPercent:!0})}),e.divPerYearFWD&&n.push({name:e.isDivYieldTTM?"STOCK.PROP.DIV_ANNUAL_TTM":"STOCK.PROP.DIV_ANNUAL_FWD",help:e.isDivYieldTTM?"STOCK.PROP.DIV_ANNUAL_TTM_HELP":"STOCK.PROP.DIV_ANNUAL_FWD_HELP",value:(0,a.jsx)(Y.b,{value:e.divPerYearFWD,isMoney:!0,currency:e.divCurrency??e.currency})}),e.exDividendDate){let t=(0,a.jsx)(d.pw,{date:new Date(e.exDividendDate)});n.push({name:"STOCK.PROP.DIV_EX_DIV_DATE",help:"STOCK.PROP.DIV_EX_DIV_DATE_HELP",value:(0,a.jsx)(d.pw,{date:t.props.date,format:"FULL_DATE_SHORT_DAY"})})}e.payoutRatio&&n.push({name:"STOCK.PROP.PAYOUT",help:"STOCK.PROP.PAYOUT_HELP",value:(0,a.jsx)(Y.b,{value:e.payoutRatio,isPercent:!0})}),e.divGrowth5Y&&n.push({name:"STOCK.PROP.DIV_GROWTH_5Y_HIGHLIGHTS",help:"STOCK.PROP.DIV_GROWTH_5Y_HELP",value:(0,a.jsx)(Y.b,{value:e.divGrowth5Y,isPercent:!0})}),e.divGrowthStreak&&n.push({name:"STOCK.PROP.DIV_GROWTH_STREAK",help:"STOCK.PROP.DIV_GROWTH_STREAK_HELP",value:(0,a.jsx)(a.Fragment,{children:this.props.t("YEARS_IN_A_ROW",{count:e.divGrowthStreak,ns:"common"})})}),(t?.divSafetyScore||t?.divSafetyScoreLocked)&&n.push({name:"STOCK.PROP.SAFETY_SCORE",help:"STOCK.PROP.SAFETY_SCORE_HELP",value:(0,a.jsx)($.e3,{type:$.kE,secured:$.M$,children:(0,a.jsx)(W.a,{compact:!0,numberOnly:!0,fullCalculatedDividendSafetyScore:!0,value:t?.divSafetyScore})})}),e.sevenDayYield&&n.push({name:"STOCK.PROP.SEVEN_DAY_YIELD",help:"STOCK.PROP.SEVEN_DAY_YIELD_HELP",value:(0,a.jsx)(Y.b,{value:e.sevenDayYield,isPercent:!0})}),n.length>0&&s.push({name:"ASSET.SUMMARY.DIVS",items:n,fullRow:!0})}null===e||(0,l.de)()||s.push({name:"ASSET.SUMMARY.ADDITIONAL",items:[{name:"STOCK.PROP.LOTSIZE",value:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Y.b,{value:e.lotSize??1,precision:"auto"})," ",this.props.t("PIECES",{ns:"common",count:1})]})}],fullRow:!0})}else if(null!==e&&this.props.assetInfo.type==S.PW.BOND){let n=[],i=[];if(e.nominal&&n.push({name:"BOND.SUMMARY.FACE_VALUE",help:"BOND.SUMMARY.FACE_VALUE_HELP",ns:"common",value:(0,a.jsx)(Y.b,{value:e.nominal,currency:e.currency,isMoney:"true"})}),e.currentNominal&&n.push({name:"BOND.SUMMARY.CURRENT_FACE_VALUE",help:"BOND.SUMMARY.CURRENT_FACE_VALUE_HELP",ns:"common",value:(0,a.jsx)(Y.b,{value:e.realNominal??e.currentNominal,currency:e.currency,isMoney:"true"})}),e.offerDate){let t=(0,a.jsx)(d.pw,{date:new Date(e.offerDate)});n.push({name:"BOND.SUMMARY.OFFER_DATE",help:"BOND.SUMMARY.OFFER_DATE_HELP",ns:"common",value:(0,a.jsx)(d.pw,{date:t.props.date,format:"FULL_DATE_SHORT_DAY"})})}if(e.maturityDate){let t=(0,a.jsx)(d.pw,{date:new Date(e.maturityDate)});n.push({name:"BOND.SUMMARY.MATURITY_DATE",help:"BOND.SUMMARY.MATURITY_DATE_HELP",ns:"common",value:(0,a.jsx)(d.pw,{date:t.props.date,format:"FULL_DATE_SHORT_DAY"})})}e.listingLevel&&n.push({name:"BOND.SUMMARY.LISTING_LEVEL",help:"BOND.SUMMARY.LISTING_LEVEL_HELP",ns:"common",value:(0,a.jsx)("span",{children:this.props.t(`BOND.SUMMARY.LISTING_LEVEL_${e.listingLevel}`,{ns:"common"})})}),t?.bondRatings?.acra&&t?.bondRatings?.expertRA&&n.push({name:"BOND.SUMMARY.RATING",help:"BOND.SUMMARY.RATING_HELP",ns:"common",value:(0,a.jsx)($.e3,{type:$.kE,secured:$.uD,children:(0,a.jsx)(V.p,{bondRatings:t.bondRatings})})}),e.yieldCoupon&&i.push({name:"BOND.SUMMARY.YIELD_COUPON",help:"BOND.SUMMARY.YIELD_COUPON_HELP",ns:"common",value:(0,a.jsx)(Y.b,{value:e.yieldCoupon,isPercent:!0})}),e.currentYield&&i.push({name:"BOND.SUMMARY.CURRENT_YIELD",help:"BOND.SUMMARY.CURRENT_YIELD_HELP",ns:"common",value:(0,a.jsx)(Y.b,{value:e.currentYield,isPercent:!0})}
3),e.modifCurrentYield&&i.push({name:"BOND.SUMMARY.MODIF_CURRENT_YIELD",help:"BOND.SUMMARY.MODIF_CURRENT_YIELD_HELP",ns:"common",value:(0,a.jsx)(Y.b,{value:e.modifCurrentYield,isPercent:!0})}),e.yieldToMaturity&&i.push({name:"BOND.SUMMARY.YIELD_TO_MATURITY",help:"BOND.SUMMARY.YIELD_TO_MATURITY_HELP",ns:"common",value:(0,a.jsx)(Y.b,{value:e.yieldToMaturity,isPercent:!0})}),e.effectiveYield&&i.push({name:"BOND.SUMMARY.EFFECTIVE_YIELD_TO_MATURITY",help:"BOND.SUMMARY.EFFECTIVE_YIELD_TO_MATURITY_HELP",ns:"common",value:(0,a.jsx)(Y.b,{value:e.effectiveYield,isPercent:!0})}),n.length>0&&s.push({name:"ASSET.SUMMARY.COMMON",items:n,fullRow:!0}),i.length>0&&s.push({name:"ASSET.SUMMARY.YIELD",items:i,fullRow:!0})}return s},this.onPortfolioSelected=e=>{let t=e?.portfolioId??null;"00000000-0000-0000-0000-000000000000"===t&&(t=null),this.setState({portfolioId:t})};let t=this.prepareHighlights(e.assetSummary,e.assetRating);this.state={assetInfo:e.assetInfo,assetSummary:e.assetSummary,assetRating:e.assetRating,highlights:t,allowLoad:e.allowLoad,hasUser:e.hasUser,portfolioId:null,reloadTrigger:e.reloadTrigger}}componentDidUpdate(e){(e.assetInfo!=this.props.assetInfo||this.props.assetSummary!=e.assetSummary||this.props.assetRating!=e.assetRating||this.props.allowLoad!=e.allowLoad||this.props.reloadTrigger!=e.reloadTrigger)&&this.setState({assetInfo:this.props.assetInfo,assetSummary:this.props.assetSummary,assetRating:this.props.assetRating,allowLoad:this.props.allowLoad,reloadTrigger:this.props.reloadTrigger},()=>{let e=this.prepareHighlights(this.props.assetSummary,this.props.assetRating);this.setState({highlights:e})})}
3render(){return(0,a.jsxs)(a.Fragment,{children:[!(0,l.E8)()&&(0,a.jsx)(eU,{asset:this.state.assetInfo}),(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col",children:(0,a.jsx)(eB,{hasUser:this.state.hasUser,asset:this.state.assetInfo,allowLoad:this.state.allowLoad,portfolioId:this.state.portfolioId,reloadTrigger:this.state.reloadTrigger})}),this.state.highlights.length>0&&(0,a.jsx)("div",{className:"col-xl-3 col-lg-4 col-md-12 col-sm-12",children:(0,a.jsx)("div",{className:"card card-custom card-sm-stretch card-stretch gutter-b",children:(0,a.jsx)("div",{className:"card-body mb-n3",children:this.state.highlights.map((e,t)=>(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("div",{className:"font-weight-bold mb-1",children:this.props.t(e.name)}),(0,a.jsx)("div",{className:"container-nowrap-scroll",children:e.items.map((e,s)=>(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center flex-wrap mb-1",children:[(0,a.jsx)(z.o,{title:this.props.t(e.help,{...e.helpAdditional??{},...e.ns?{ns:e.ns}:{}}),children:(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:(0,a.jsx)(K.x,{t:this.props.t,i18nKey:e.name,ns:e.ns?e.ns:null})})}),(0,a.jsx)("div",{className:"asset-summary-val font-weight-bold",children:e.value})]},`${t}-${s}`))})]},t))})})})]}),(0,a.jsx)(eb,{onChanged:()=>{this.setState({reloadTrigger:this.state.reloadTrigger+1})},reloadTrigger:this.state.reloadTrigger,asset:this.state.assetInfo,onPortfolioSelected:this.onPortfolioSelected}),(0,l.nE)()&&!!this.props.posts?.length&&(0,a.jsx)("div",{className:"my-10",children:(0,a.jsx)(eO.Sf,{title:{text:this.props.t("ASSET.COMMUNITY.HEADER"),href:{pathname:this.props.router.pathname,query:{...this.props.router.query,tab:[q.HI.COMMUNITY]}},shallow:!0},items:this.props.posts})}),this.state.assetSummary&&(0,a.jsx)(eE,{assetSummary:this.state.assetSummary})]})}}let eK=(0,H.C)(["assetPage","common"])((0,Z.withRouter)(eG));function eH(e){let{asset:t,reloadTrigger:s}=e,n=(0,E.Jd)(),i=!!t&&(0,l.nE)(),r=(0,g.Ey)(t,{enabled:i,staleTime:0,refetchOnMount:!1}),o=M(t.assetInfoId,{staleTime:0,refetchOnMount:!1});return o.isLoading||r.isLoading&&i?(0,a.jsx)(G.J,{}):(0,a.jsx)(eK,{allowLoad:!0,reloadTrigger:s,hasUser:null!=n,assetInfo:t,assetSummary:t,assetRating:o.data,posts:r.data??[]})}var eY=s(65002),eW=s(13344),eV=s(48208);function ez(e){let{t}=(0,J.B)(["social","common"]),[s,n]=(0,T.useState)(e.assetInfoId),[i,r]=(0,T.useState)(e.summary?.rank??null),[l,o]=(0,T.useState)(e.summary?.similarRanks??null);return((0,T.useEffect)(()=>{r(e.summary?.rank??null),o(e.summary?.similarRanks??null),n(s)},[e.assetInfoId,e.summary]),i)?(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-md-6 col-sm-12",children:(0,a.jsx)("div",{className:"card card-custom card-stretch gutter-b",children:(0,a.jsxs)("div",{className:"card-body",children:[(0,a.jsx)("h2",{className:"font-size-h5 mb-4",children:t("ASSET_RANK.TITLE")}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"font-weight-bold display-4 mb-3",children:["#",i.rankTotal]}),(0,a.jsx)("div",{className:"text-dark-50",children:(0,a.jsx)(K.x,{i18nKey:"social:ASSET_RANK.MESSAGE",components:[(0,a.jsx)(Y.b,{className:"text-dark font-weight-bold",isPercent:!0,value:i.popularityTotal},"asset-rank-message")]})})]})]})})}),l&&l.length>0&&(0,a.jsx)("div",{className:"col-md-6 col-sm-12",children:(0,a.jsx)("div",{className:"card card-custom card-stretch gutter-b",children:(0,a.jsxs)("div",{className:"card-body d-flex flex-column justify-content-between mb-n2",children:[(0,a.jsx)("h2",{className:"font-size-h5 mb-4",children:t("ASSET_RANK.SIMILAR_RANK")}),(0,a.jsx)("div",{className:"d-flex align-items-center flex-wrap",children:l.map((e,s)=>(0,a.jsx)(eV.o,{to:(0,h.A)(e.type,null,e.ticker,e.exchange,e.currency),className:"mr-2 mb-2 rounded",children:(0,a.jsx)(z.o,{title:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-2",children:[t("ASSET_RANK.TITLE"),":"," ",(0,a.jsxs)("span",{className:"font-weight-bold font-size-lg",children:["#",e.rankTotal]})]}),(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)(h.hz,{name:e.description,ticker:e.ticker,assetType:e.type,logoUrl:e.logoURL,primaryLogoUrl:e.primaryLogoURL,size:"md"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{children:(0,a.jsx)("b",{children:e.description})}),(0,a.jsx)("div",{className:"text-dark-50",children:e.ticker})]})]})}),(0,a.jsx)("div",{className:"text-dark-50",children:(0,a.jsx)(K.x,{i18nKey:"social:ASSET_RANK.MESSAGE",components:[(0,a.jsx)(Y.b,{className:"text-dark font-weight-bold",isPercent:!0,value:e.popularityTotal},"asset-rank-message")]})})]}),children:(0,a.jsx)("div",{className:"rounded py-2 px-3 bg-light border-light cursor-pointer",children:(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)(h.hz,{name:e.description,ticker:e.ticker,assetType:e.type,logoUrl:e.logoURL,primaryLogoUrl:e.primaryLogoURL,size:"sm"}),(0,a.jsxs)("span",{className:"font-weight-bold text-dark",children:["#",e.rankTotal]}),(0,a.jsx)("span",{className:"text-dark-65 mx-2",children:"-"}),(0,a.jsx)("span",{className:"font-weight-bold font-size-sm text-dark-65",children:e.ticker})]})})})},s))})]})})})]}):null}var e$=s(84204);function eQ(e){let[t,s]=(0,T.useState)(e.assetInfo),[n,i]=(0,T.useState)(e.socialEntityId);(0,T.useEffect)(()=>{s(e.assetInfo),i(e.socialEntityId)},[e.assetInfo,e.socialEntityId]);let r=t?(0,h.gW)(t.assetType,t.assetInfoId,t.ticker,t.exchange,t.currency):null;return(0,a.jsxs)(a.Fragment,{children:[e.assetRank&&(0,a.jsx)(ez,{assetInfoId:t.assetInfoId,summary:e.assetRank}),n&&(0,a.jsx)(eW.C,{id:n,postType:eY.$5}),(0,l.nE)()&&!!r&&(0,a.jsx)("div",{className:"mx-auto",style:{maxWidth:780},children:(0,a.jsx)(e$.Ny,{asset:r,queryOptions:{staleTime:0,refetchOnMount:!1}})})]})}function eX(e){var t,s;let{asset:n,socialEntityId:i}=e,r=(t=n.assetInfoId,s={staleTime:0,refetchOnMount:!1},(0,A.I)(U.options(t,s)));return r.isFetching?(0,a.jsx)(G.J,{}):(0,a.jsx)(eQ,{visible:!0,allowLoad:!0,socialEntityId:i,assetInfo:n,assetRank:r.data})}var eZ=s(11468),eq=s(11353),eJ=s.n(eq);let e0=X()(()=>Promise.all([s.e(4828),s.e(1348)]).then(s.bind(s,11348)).then(e=>e.CompanyDividendPaymentsLine),{loadableGenerated:{webpack:()=>[11348]},ssr:!1});class e1 extends T.Component{constructor(e){super(e),this.state={highlights:e.highlights,historyData:e.historyData,assetSummary:e.assetSummary,loading:!1}}componentWillReceiveProps(e){(e?.highlights!=this.state.highlights||e?.assetSummary!=this.state.assetSummary||e?.loading!=this.state.loading)&&this.setState({highlights:e.highlights,historyData:e.historyData,assetSummary:e.assetSummary,loading:e.loading})}render(){return(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("div",{className:"col",children:this.state.highlights.length>0&&(0,a.jsx)("div",{className:"card card-custom card-sm-stretch card-stretch gutter-b",children:(0,a.jsx)("div",{className:"card-body mb-n3",children:(0,a.jsx)("div",{className:eJ().wrapper,children:(0,a.jsxs)("div",{className:eJ().row,children:[(0,a.jsx)("div",{children:this.state.highlights.map((e,t)=>(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("div",{className:"font-weight-bold font-size-h5 mb-1",children:this.props.t(e.n
3ame)}),(0,a.jsx)("div",{className:"container-nowrap-scroll row",children:e.items.map((e,s)=>(0,a.jsx)("div",{className:"col-xl-2 col-lg-2 col-md-3 col-sm-auto mb-1",children:(0,a.jsxs)("div",{className:"h-100 d-flex flex-column justify-content-between",children:[(0,a.jsx)(z.o,{title:this.props.t(e.help,e.helpAdditional??{}),children:(0,a.jsx)("div",{className:"asset-summary-name text-dark-50 font-size-sm",children:this.props.t(e.name)})}),(0,a.jsx)("div",{className:"asset-summary-val font-weight-bold font-size-lg pt-1",children:e.value})]})},`${t}-${s}`))})]},t))}),(0,a.jsx)("div",{className:"overflow-hidden",children:!this.state.loading&&this.props.visible&&this.state.historyData&&(0,a.jsx)("div",{className:"w-100",style:{maxHeight:"200px"},children:(0,a.jsx)(e0,{data:this.state.historyData,currency:this.state.assetSummary.divCurrency??this.state.assetSummary.currency})})})]})})})})})})}}let e6=(0,H.C)(["assetPage","common"])(e1);var e2=s(98588),e3=s(47030),e5=s(68582),e4=s.n(e5),e8=s(35791),e9=s(38266),e7=s(152),te=s(54253),tt=s(51980),ts=s(8760);let ta={sortField:"paymentDate",sortDirection:"desc",sizePerPage:10};class tn extends T.Component{constructor(e){super(e),this.onStateChange=(e,t)=>
3{this.setState(s=>({widgetState:{...s.widgetState,[e]:t}}),()=>{})},this.handleTableChange=async(e,t)=>{let{page:s,sizePerPage:a,sortField:n,sortOrder:i}=t,r=s||1;this.state.paginationOptions.sizePerPage!=a&&(r=1),"pagination"===e&&this.state.paginationOptions.sizePerPage!=a&&this.onStateChange("sizePerPage",a),"sort"===e&&this.state.sortField!=n&&this.onStateChange("sortField",n),"sort"===e&&this.state.sortDirection!=i&&this.onStateChange("sortDirection",i),"pagination"===e&&this.setState(e=>({paginationOptions:{...e.paginationOptions,page:r,sizePerPage:a}})),this.setState({sortField:n,sortDirection:i,search:null})},this.state={blocking:!1,data:e.data,sortField:ta.sortField,sortDirection:ta.sortDirection,paginationOptions:{custom:!0,totalSize:0,sizePerPageList:[{text:"10",value:10},{text:"25",value:25},{text:"50",value:50},{text:"100",value:100}],sizePerPage:ta.sizePerPage,page:1,paginationTotalRenderer:e8.wh},assetType:e.assetType}}getColumns(){let e=[];return(e=this.props.assetType==S.PW.BOND?[{dataField:"status",text:this.props.t("DIVS.TABLE.COLUMNS.STATE"),sortCaret:te.iA,sort:!1,formatter:(e,t)=>{let s=new Date(Date.now());return new Date(t.paymentDate)>s?(0,a.jsxs)("span",{className:"status-item d-flex align-items-center font-size-sm font-weight-bold text-dark-50",children:[(0,a.jsx)("i",{className:`label label-dot label-xl ${"estimated"===e?"label-light-primary":"label-primary"} mr-2`}),this.props.t("DIV_STATUS.DECLARED",{ns:"common"})]}):(0,a.jsxs)("span",{className:"status-item d-flex align-items-center font-size-sm font-weight-bold text-dark-50",children:[(0,a.jsx)("i",{className:`label label-dot label-xl ${"estimated"===e?"label-light-primary":"label-primary"} mr-2`}),this.props.t("DIV_STATUS.PAID",{ns:"common"})]})}}]:[{dataField:"status",text:this.props.t("DIVS.TABLE.COLUMNS.STATE"),sortCaret:te.iA,sort:!1,formatter:(e,t)=>(0,a.jsx)(ts._,{size:"md",status:e,isRecommended:t.isRecommended,isCompanyPage:!0})},{dataField:"declareDate",text:this.props.t("DIVS.TABLE.COLUMNS.DECLARE_DATE"),sortCaret:te.iA,sort:!1,formatter:ei.RB}]).push({dataField:"date",text:this.props.t("DIVS.TABLE.COLUMNS.EX_DIV_DATE"),sortCaret:te.iA,sort:!1,formatter:ei.RB}),e.push({dataField:"paymentDate",text:this.props.withLastPurchaseDate?this.props.t("DIVS.TABLE.COLUMNS.RECORD_DATE"):this.props.t("DIVS.TABLE.COLUMNS.PAYMENT_DATE"),sortCaret:te.iA,sort:!1,classes:this.props.withLastPurchaseDate?"":"font-weight-bold",formatter:ei.RB}),this.props.withLastPurchaseDate&&e.push({dataField:"lastPurchaseDate",text:this.props.t("DIVS.TABLE.COLUMNS.LAST_PURCHASE_DATE"),sortCaret:te.iA,sort:!1,classes:"font-weight-bold",formatter:ei.RB}),e.push({dataField:"amount",text:this.props.t("DIVS.TABLE.COLUMNS.AMOUNT"),secondDataField:"surprise",secondText:this.props.t("DIVS.TABLE.COLUMNS.AMOUNT"),sortCaret:te.iA,sort:!1,classes:"font-weight-bold",formatter:ei.s$,formatExtraData:{tooltipText:this.props.t("DIVS.TABLE.COLUMNS.SURPRISE_TOOLTIP")}}),this.props.assetType==S.PW.BOND?e.push({dataField:"type",text:this.props.t("DIVS.TABLE.COLUMNS.TYPE"),sortCaret:te.iA,sort:!1,formatter:(e,t)=>t.type&&t.type.toLowerCase().includes("amortization")?(0,a.jsx)("span",{className:"label label-lg font-weight-bold label-light-warning label-inline",children:this.props.t("TRANSACTION_TYPE.AMORTIZATION",{ns:"types"})}):t.type&&t.type.toLowerCase().includes("coupon")?(0,a.jsx)("span",{className:"label label-lg font-weight-bold label-light label-inline",children:this.props.t("TRANSACTION_TYPE.COUPON",{ns:"types"})}):(0,a.jsx)("span",{className:"label label-lg font-weight-bold label-light-warning label-inline",children:this.props.t("TRANSACTION_TYPE.REPAYMENT",{ns:"types"})})}):(this.props.withPeriod&&e.push({dataField:"period",text:this.props.t("DIVS.TABLE.COLUMNS.PERIOD"),sortCaret:te.iA,sort:!1}),e.push({dataField:"frequency",text:this.props.t("DIVS.TABLE.COLUMNS.FREQUENCY"),sortCaret:te.iA,sort:!1,formatter:(e,t)=>(0,a.jsx)(tt.c,{item:t})})),e}renderTable(e,t){return(0,a.jsx)(e2.A,{wrapperClasses:"table-responsive",bordered:!1,classes:"table table-head-custom table-vertical-center overflow-hidden table-hover",bootstrap4:!0,keyField:"id",data:null===e?[]:e,columns:this.getColumns(),defaultSorted:[{dataField:this.state.sortField,order:this.state.sortDirection}],remote:!0,onTableChange:this.handleTableChange,noDataIndication:()=>(0,a.jsx)(e9.k,{}),...t})}render(){var e,t,s,n,i;let r=this.props.paginationEnabled??!0,l=(e=this.props.data??[],(t=this.state.search)?(t=t.toLowerCase(),e.filter(e=>e.ticker?.toLowerCase()?.indexOf(t)>-1||e.description?.toLowerCase()?.indexOf(t)>-1)):e),{length:o}=l;s=l,n=this.state.sortField,i=this.state.sortOrder,s.sort((e,t)=>
3e[n]>t[n]?"asc"===i?1:-1:e[n]<t[n]?"asc"===i?-1:1:0),r&&(l=e4()(l,(this.state.paginationOptions.page-1)*this.state.paginationOptions.sizePerPage,this.state.paginationOptions.page*this.state.paginationOptions.sizePerPage));let c={...this.state.paginationOptions,totalSize:o};return(0,a.jsxs)("div",{className:"card card-custom card-sm-stretch card-stretch gutter-b",children:[(0,a.jsx)("div",{className:"card-header border-0 py-5",children:(0,a.jsx)("div",{className:"row align-items-center w-100 justify-content-between",children:(0,a.jsx)("div",{className:"col-auto",children:(0,a.jsx)("span",{className:"card-title font-weight-bolder text-h3",children:this.props.t("ASSET.DIV.ALL_DIVS")})})})}),(0,a.jsx)("div",{className:"card-body pt-0",children:r?(0,a.jsx)(e3.gx,{pagination:(0,e3.Ay)(c),children:e=>{let{paginationProps:t,paginationTableProps:s}=e;return(0,a.jsx)(e7.dK,{paginationProps:t,children:this.renderTable(l,s)})}}):this.renderTable(l)})]})}}let ti=(0,H.C)(["assetPage","common","types"])(tn),tr=X()(()=>Promise.all([s.e(4828),s.e(6541)]).then(s.bind(s,16541)).then(e=>e.AssetDivYieldChart),{loadableGenerated:{webpack:()=>[16541]},ssr:!1}),tl=X()(()=>s.e(2941).then(s.bind(s,72941)).then(e=>e.CompanyDividendPaymentsBar),{loadableGenerated:{webpack:()=>[72941]},ssr:!1});class to extends T.Component{shouldShowDivGrowth(e){return"number"==typeof e&&!Number.isNaN(e)&&e>=0}render(){let e=this.prepareHighlights(this.props.assetSummary,this.props.assetRating),t=this.props.data??[],s=0===t.length&&0===e.length;return(0,a.jsxs)(a.Fragment,{children:[this.props.asset.type!=S.PW.BOND&&(0,a.jsx)(e6,{historyData:t,assetSummary:this.props.assetSummary,highlights:e,visible:this.props.visible,loading:this.props.isLoading}),!this.props.isLoading&&s&&(0,a.jsx)(eZ.It,{title:this.props.t("ASSET.DIV.NO_DATA"),message:null,imageUrl:"/media/svg/illustrations/there-is-nothing-here.png"}),this.props.isLoading&&!t&&!s&&(0,a.jsx)(G.J,{}),!this.props.isLoading&&t&&!s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ti,{paginationEnabled:this.props.paginationEnabled,data:t,assetType:this.props.asset.type,withPeriod:(0,l.nE)()&&this.props.asset.type==S.PW.STOCK&&"MCX"==this.props.asset.exchange&&0>this.props.asset.ticker.indexOf("-RM"),withLastPurchaseDate:(0,l.nE)()&&this.props.asset.type==S.PW.STOCK&&"MCX"==this.props.asset.exchange&&0>this.props.asset.ticker.indexOf("-RM")}),(0,a.jsx)(tl,{data:t,currency:this.props.assetSummary.divCurrency||this.props.assetSummary.currency})]}),!s&&this.props.asset.type!=S.PW.BOND&&this.props.visible&&(0,a.jsx)(tr,{asset:this.props.assetSummary,allowLoad:this.props.allowLoad})]})}constructor(...e){super(...e),this.prepareHighlights=(e,t)=>{let s=[];if(null!==e){let n=[];if(e.divYieldFWD&&n.push({name:e.isDivYieldTTM?"STOCK.PROP.DIV_YIELD_TTM":"STOCK.PROP.DIV_YIELD_FWD",help:e.isDivYieldTTM?"STOCK.PROP.DIV_YIELD_TTM_HELP":"STOCK.PROP.DIV_YIELD_FWD_HELP",value:(0,a.jsx)(Y.b,{value:e.divYieldFWD,isPercent:!0})}),e.divPerYearFWD&&n.push({name:e.isDivYieldTTM?"STOCK.PROP.DIV_ANNUAL_TTM":"STOCK.PROP.DIV_ANNUAL_FWD",help:e.isDivYieldTTM?"STOCK.PROP.DIV_ANNUAL_TTM_HELP":"STOCK.PROP.DIV_ANNUAL_FWD_HELP",value:(0,a.jsx)(Y.b,{value:e.divPerYearFWD,isMoney:!0,currency:e.divCurrency??e.currency})}),e.exDividendDate){let t=(0,a.jsx)(d.pw,{date:new Date(e.exDividendDate)});n.push({name:"STOCK.PROP.DIV_EX_DIV_DATE",help:"STOCK.PROP.DIV_EX_DIV_DATE_HELP",value:(0,a.jsx)(d.pw,{date:t.props.date,format:"FULL_DATE_SHORT_DAY"})})}e.payoutRatio&&n.push({name:"STOCK.PROP.PAYOUT",help:"STOCK.PROP.PAYOUT_HELP",value:(0,a.jsx)(Y.b,{value:e.payoutRatio,isPercent:!0})}),(t?.divSafetyScore||t?.divSafetyScoreLocked)&&n.push({name:"STOCK.PROP.SAFETY_SCORE",help:"STOCK.PROP.SAFETY_SCORE_HELP",value:(0,a.jsx)($.e3,{type:$.kE,secured:$.M$,children:(0,a.jsx)(W.a,{compact:!1,fullCalculatedDividendSafetyScore:!0,value:t?.divSafetyScore})})}),e.sevenDayYield&&n.push({name:"STOCK.PROP.SEVEN_DAY_YIELD",help:"STOCK.PROP.SEVEN_DAY_YIELD_HELP",value:(0,a.jsx)(Y.b,{value:e.sevenDayYield,isPercent:!0})}),n.length>0&&s.push({name:"ASSET.DIVS.SUMMARY",items:n,fullRow:!0})}if(null!==e){let t=[];e.divYieldFWD&&(t.push({name:"STOCK.PROP.DIV_GROWTH_1Y",help:"STOCK.PROP.DIV_GROWTH_1Y_HELP",value:(0,a.jsxs)(a.Fragment,{children:[this.shouldShowDivGrowth(e.divGrowth1Y)?(0,a.jsx)(Y.b,{value:e.divGrowth1Y,isPercent:!0}):(0,a.jsx)(a.Fragment,{children:"-"})," "]})}),t.push({name:"STOCK.PROP.DIV_GROWTH_3Y",help:"STOCK.PROP.DIV_GROWTH_3Y_HELP",value:(0,a.jsxs)(a.Fragment,{children:[this.shouldShowDivGrowth(e.divGrowth3Y)?(0,a.jsx)(Y.b,{value:e.divGrowth3Y,isPercent:!0}):(0,a.jsx)(a.Fragment,{children:"-"})," "]})}),t.push({name:"STOCK.PROP.DIV_GROWTH_5Y",help:"STOCK.PROP.DIV_GROWTH_5Y_HELP",value:(0,a.jsxs)(a.Fragment,{children:[this.shouldShowDivGrowth(e.divGrowth5Y)?(0,a.jsx)(Y.b,{value:e.divGrowth5Y,isPercent:!0}):(0,a.jsx)(a.Fragment,{children:"-"})," "]})}),t.push({name:"STOCK.PROP.DIV_GROWTH_STREAK",help:"STOCK.PROP.DIV_GROWTH_STREAK_HELP",value:(0,a.jsx)(a.Fragment,{children:this.props.t("YEARS_IN_A_ROW",{count:e.divGrowthStreak,ns:"common"})})}),t.push({name:"STOCK.PROP.DIV_STREAK",help:"STOCK.PROP.DIV_STREAK_HELP",value:(0,a.jsx)(a.Fragment,{children:this.props.t("YEARS_IN_A_ROW",{count:e.divStreak,ns:"common"})})})),t.length>0&&s.push({name:"ASSET.DIVS.GROWTH",items:t,fullRow:!0})}if(null!==e){let t=[];e.exPaymentDate&&t.push({name:"STOCK.PROP.EX_PAYMENT_DATE",help:"STOCK.PROP.EX_PAYMENT_DATE_HELP",value:(0,ei.RB)(e.exPaymentDate)}),e.nextPaymentDate&&t.push({name:"STOCK.PROP.NEXT_PAYMENT_DATE",help:"STOCK.PROP.NEXT_PAYMENT_DATE_HELP",value:(0,ei.RB)(e.nextPaymentDate)}),e.nextPayment&&t.push({name:"STOCK.PROP.NEXT_PAYMENT_AMOUNT",help:"STOCK.PROP.NEXT_PAYMENT_AMOUNT_HELP",value:(0,a.jsx)(Y.b,{value:e.nextPayment,isMoney:!0,currency:e.divCurrency})}),e.frequency&&t.push({name:"STOCK.PROP.DIV_FREQUENCY",help:"STOCK.PROP.DIV_FREQUENCY_HELP",value:(0,a.jsx)(a.Fragment,{children:(0,h.Jz)(e.frequency,!1)})}),t.length>0&&s.push({name:"ASSET.DIVS.LAST_DECLARED",items:t,fullRow:!0})}return s}}}let tc=(0,H.C)(["assetPage","common"])(to);function td(e){var t,s;let{asset:n,paginationEnabled:i=!0}=e,r=M(n.assetInfoId,{staleTime:0,refetchOnMount:!1}),l=(t=n.assetInfoId,s={staleTime:0,refetchOnMount:!1},(0,A.I)(L.options(t,s)));return l.isLoading||r.isLoading?(0,a.jsx)(G.J,{}):(0,a.jsx)(tc,{paginationEnabled:i,visible:!0,allowLoad:!0,asset:n,isLoading:l.isFetching,assetSummary:n,assetRating:r.data,data:l.data})}var tu=s(60547),th=s(95472);function tm(e){var t,s;let{asset:n}=e,i=(0,Z.useRouter)(),r=(0,E.Jd)(),l=r?.subscriptionType===S.Qh.TIER_1,o=(0,tu.Zz)(r),c=(t=n.assetInfoId,s={staleTime:0,refetchOnMount:!1},(0,A.I)(k.options(t,s)));return c.isFetching?(0,a.jsx)(G.J,{}):(0,a.jsx)(th.u0,{allowLoad:!0,history:i,asset:n,showCompareWithFinancials:l,subscribeUserPath:o,data:c.data,loading:c.isFetching})}var tp=s(12009),tf=function(e){return e.ASSETS="assets",e.SECTORS="sectors",e.REGIONS="regions",e.COUNTRIES="countries",e.ASSET_CLASSES="assetClasses",e}({}),tS=s(29482),tg=s.n(tS),tx=s(14009);function tv(e){let{data:t}=e,{t:s}=(0,J.B)("assetPage"),[n,i]=(0,T.useState)(!1),r=Math.min(t.length,n?50:10),l=(0,T.useMemo)(()=>t?.slice(0,n?50:10),[t,n]),o=(0,T.useMemo)(()=>{let e=Math.ceil((l.length-1)/2),t=[];return t.push(l.slice(0,e)),l.length>e&&t.push(l.slice(e,l.length)),{columns:t,total:tg()(l,e=>e.weight)}},[l]);return(0,a.jsxs)("div",{className:"card card-custom card-sm-stretch card-stretch gutter-b",children:[(0,a.jsxs)("div",{className:"card-header d-flex justify-content-between align-items-center",children:[(0,a.jsxs)("div",{className:"card-title",children:[s("FUND.TOP_HOLDINGS",{count:r})," (",(0,a.jsx)(Y.b,{value:o.total,isPercent:!0}),")"]}),t.length>10&&(0,a.jsx)(tx.A,{type:"button",className:"btn btn-link-primary font-weight-bold ml-5",onClick:()=>i(e=>!e),children:s(n?"FUND.TOP_SHOW_LESS":"FUND.TOP_SHOW_MORE")})]}),(0,a.jsx)("div",{className:"card-body",children:(0,a.jsx)("div",{className:"row",children:o.columns.map((e,t)=>(0,a.jsx)("div",{className:"col-md-6 col-sm-12",children:e.map((e,t)=>(0,a.jsx)("div",{className:"px-3 py-1 bg-hover-light rounded cursor-pointer",children:(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsxs)("div",{className:"w-100",children:[(0,a.jsxs)("div",{className:"d-flex font-size-sm justify-content-between",children:[(0,a.jsxs)("div",{className:"label-legend-text",children:[e.asset&&(0,a.jsx)(h.Q0,{assetType:e.asset.type,ticker:e.asset.ticker,exchange:e.asset.exchange,currency:e.asset.currency,id:e.asset.id,children:(0,a.jsx)("span",{className:"font-weight-bold text-hover-primary",children:e.name})}),!e.asset&&(0,a.jsx)("span",{className:"font-weight-bold text-hover-primary",children:e.name})]}),(0,a.jsx)("div",{className:"d-flex align-items-center pl-2",children:(0,a.jsx)("span",{className:"mr-2",children:(0,a.jsx)(Y.b,{className:"font-weight-bold",value:e.weight,isPercent:!0,precision:e.weight<.5?3:1})})})]}),(0,a.jsx)("div",{className:"progress progress-xs mt-2 mb-2 w-100",children:(0,a.jsx)("div",{className:"progress-bar",role:"progressbar",style:{backgroundColor:"var(--sb-primary)",width:`${e.weight}%`},"aria-valuenow":e.weight,"aria-valuemin":0,"aria-valuemax":100})})]})})},`lab-${t}`))},t))})})]})}let tb="AssetPage_FundData_1",tN={view:tf.SECTORS};function tT(e){var t,s;let{asset:n}=e,{t:i}=(0,J.B)(["assetPage","common"]),{data:r,isFetching:l}=(t=n.assetInfoId,s={staleTime:0,refetchOnMount:!1},(0,A.I)(F.options(t,s))),[o,c]=(0,T.useState)(()=>ea.Gu(tb,tN)),d=(0,T.useMemo)(()=>{let e=[];return r?.sectors?.length&&e.push({value:tf.SECTORS,name:i("FUND.ALLOCATION.SECTORS")}),r?.assetClasses?.length&&e.push({value:tf.ASSET_CLASSES,name:i("FUND.ALLOCATION.ASSET_CLASSES")}),r?.regions?.length&&e.push({value:tf.REGIONS,name:i("FUND.ALLOCATION.REGIONS")}),r?.countries?.length&&e.push({value:tf.COUNTRIES,name:i("FUND.ALLOCATION.COUNTRIES")}),e},[r]),u=0===d.length,h=(0,T.useMemo)(()=>
3{if(!r)return[];switch(o.view){case tf.SECTORS:return r.sectors||[];case tf.REGIONS:return r.regions||[];case tf.COUNTRIES:return r.countries||[];case tf.ASSET_CLASSES:return r.assetClasses||[];default:return[]}},[r,o.view]);return(0,T.useEffect)(()=>{let e=o.view;d.length>0&&!b()(d,e=>o.view===e.value)&&(e=d[0].value),c({view:e})},[o.view,d]),(0,a.jsxs)(a.Fragment,{children:[!l&&u&&(0,a.jsx)(eZ.It,{title:i("STOCK.FINANCIALS.NO_DATA.TITLE"),message:null,imageUrl:"/media/svg/illustrations/there-is-nothing-here.png"}),l&&(0,a.jsx)(G.J,{}),!l&&r&&!u&&(0,a.jsxs)(a.Fragment,{children:[!!r?.assets?.length&&(0,a.jsx)(tv,{data:r.assets}),!!d.length&&(0,a.jsxs)("div",{className:"card card-custom card-sm-stretch card-stretch gutter-b",children:[(0,a.jsx)("div",{className:"card-header card-header-tabs-line py-5",children:(0,a.jsx)("div",{className:"row align-items-center w-100 justify-content-between",children:(0,a.jsx)("div",{className:"col-auto",children:(0,a.jsx)(el.A.Container,{activeKey:o.view,children:(0,a.jsx)(eo.A,{as:"ul",onSelect:e=>{if(!e)return;let t=ea.Gu(tb,tN);t.view=e,ea.LZ(tb,t),c({view:e})},className:"nav nav-card-header nav-tabs nav-tabs-space-lg nav-tabs-line nav-tabs-line-dark nav-bold nav-tabs-line-2x sb-nav sb-card-nav",children:d.map(e=>(0,a.jsx)(eo.A.Item,{className:"nav-item",as:"li",children:(0,a.jsx)(eo.A.Link,{eventKey:e.value,className:`nav-link py-3 ${o.view===e.value?"active":""}`,children:(0,a.jsx)("span",{className:"nav-text",children:e.name})})},e.value))})})})})}),(0,a.jsx)("div",{className:"card-body",children:h.length?(0,a.jsx)(tp.i,{showAssets:!1,hideMoney:!0,isCountryPie:o.view===tf.COUNTRIES,isRegionPie:o.view===tf.REGIONS,isAssetClassPie:o.view===tf.ASSET_CLASSES,data:h,currency:n.currency}):(0,a.jsx)(eZ.ln,{title:i("STOCK.FINANCIALS.NO_DATA.TITLE"),message:null,imageUrl:"/media/svg/illustrations/there-is-nothing-here.png"})})]})]})]})}var tE=s(74170),tO=s(24665),tA=s(60008),tI=s(91394),ty=s(80824),tC=s(46815),tj=s(89754),tP=s(76510),tR=s(36241),tw=s(10164);class tD extends T.Component{constructor(e){super(e),this.dataSchema=tj.Ik().shape({assetInfoId:tj.Yj().required(this.props.t("VALIDATION.REQUIRED",{ns:"common"})),note:tj.Yj().max(2e3,this.props.t("VALIDATION.MAX_LENGTH",{ns:"common",length:2e3})),watchlistName:tj.Yj().required(this.props.t("VALIDATION.REQUIRED",{ns:"common"})).max(128,this.props.t("VALIDATION.MAX_LENGTH",{ns:"common",length:128}))}),this.getDefaultData=e=>({assetInfoId:e,note:"",watchlistId:"",watchlistName:this.props.t("WATCHLIST"),color:"",isAdded:!1}),this.updateCanCreateNew=async()=>{try{let{data:e}=await y.A.get(`${I.z71}/get-rights`);this.setState({canCreateNewWatchlist:e.canCreate})}catch(e){console.error(e)}},this.loadData=async()=>{this.setState({blocking:!0});try{let{data:e}=await y.A.get(`${I.z71}/list-for-asset`,{params:{assetInfoId:this.state.assetInfoId}}),t=b()(e,e=>!0==e.isAssetAdded),{form:s}=this.state;if(t)s.isAdded=!0,s.watchlistId=t.id,s.watchlistName=t.name??"",s.note=t.assetNote??"",s.color=t.color,s.id=t.assetId;else if(e.length>0){let[t]=e;s.watchlistId=t.id,s.watchlistName=t.name}else s.watchlistName=this.props.t("WATCHLIST");let a=0==e.length;this.setState(()=>({blocking:!1,form:s,isAddNewWatchlist:a,watchlists:e}),()=>{this.updateCanCreateNew()})}catch(t){let e=(0,tR.g6)(`${this.props.t("ERROR.FAILED_TO_LOAD_DATA",{ns:"common"})}: 
4`,t);eP.f1(e)}this.setState({blocking:!1})},this.open=()=>{this.setState({show:!0,form:this.getDefaultData(this.state.assetInfoId)},()=>{this.loadData()})},this.close=()=>{this.setState({show:!1}),this.props.onHide&&this.props.onHide()},this.delete=async e=>{try{let t=`${I.YdX}/delete-from-watchlist`;await y.A.delete(t,{params:{watchlistId:e,assetInfoId:this.state.assetInfoId}}),eP.JB(this.props.t("WATCHLIST.ASSET_DELETED.MESSAGE")),this.close()}catch(t){let e=(0,tR.g6)(`${this.props.t("ERROR.FAILED_TO_LOAD_DATA",{ns:"common"})}: 
5`,t);eP.f1(e)}},this.save=async(e,t)=>{this.setState({blocking:!0});try{let t=I.YdX,s={...e};s.watchlistId||(s.watchlistId=S.U2),s.id&&s.id!=S.U2?await y.A.put(`${t}/${s.id}`,s):(s.id=S.U2,await y.A.post(t,s)),eP.uT(this.props.t("WATCHLIST.ASSET_ADDED.MESSAGE")),this.close()}catch(e){console.error(e),(0,tR.ZC)(e,t)}this.setState({blocking:!1})},this.onWatchlistSelected=(e,t)=>{e?(t.setFieldValue("watchlistId",e.id,!0),t.values.watchlistId=e.id,t.setFieldValue("watchlistName",e.name,!0),t.values.watchlistName=e.name,t.setFieldValue("isAdded",e.isAssetAdded,!0),t.values.isAdded=e.isAssetAdded,t.setFieldValue("note",e.assetNote??"",!0),t.values.note=e.assetNote??"",t.setFieldValue("color",e.color,!0),t.values.color=e.color,t.setFieldValue("id",e.assetId,!0),t.values.id=e.assetId):(t.setFieldValue("watchlistId","",!0),t.values.watchlistId="",t.setFieldValue("watchlistName","",!0),t.values.watchlistName="",t.setFieldValue("isAdded",!1,!0),t.values.isAdded=!1,t.setFieldValue("note","",!0),t.values.note="",t.setFieldValue("color","",!0),t.values.color="",t.setFieldValue("id","",!0),t.values.id="")},this.state={blocking:!1,show:!1,watchlists:e.watchlists??[],assetInfoId:e.assetInfoId,isAddNewWatchlist:!1,form:this.getDefaultData(e.assetInfoId),canCreateNewWatchlist:null}}componentDidMount(){}componentWillReceiveProps(e){e.assetInfoId&&e.assetInfoId!=this.state.assetInfoId&&this.setState({assetInfoId:e.assetInfoId})}render(){return(0,a.jsxs)(tE.A,{show:this.state.show,onHide:this.close,"aria-labelledby":"example-modal-sizes-title-lg",children:[this.state.blocking&&(0,a.jsx)(e7.q3,{}),(0,a.jsx)(tE.A.Header,{closeButton:!0,children:(0,a.jsx)(tE.A.Title,{id:"example-modal-sizes-title-lg",children:this.props.t("WATCHLIST.ADD_ASSET.TITLE")})}),(0,a.jsx)(tP.A,{tag:"div",blocking:this.state.blocking,keepInView:!0,children:(0,a.jsx)(tE.A.Body,{children:this.state.show&&(0,a.jsx)(tI.l1,{initialValues:this.state.form,validationSchema:this.dataSchema,enableReinitialize:!0,onSubmit:(e,t)=>
5{this.save(e,t)},children:e=>(0,a.jsx)(tP.A,{tag:"div",blocking:this.state.blocking,keepInView:!0,children:(0,a.jsxs)(tO.A,{onSubmit:e.handleSubmit,children:[(0,a.jsxs)(tO.A.Group,{children:[(0,a.jsx)(tO.A.Label,{children:this.state.isAddNewWatchlist?this.props.t("WATCHLIST.NAME"):this.props.t("WATCHLIST.SELECT.LABEL")}),(0,a.jsxs)("div",{className:"row",children:[(0,a.jsxs)("div",{className:"col",children:[this.state.isAddNewWatchlist&&(0,a.jsx)(tO.A.Control,{className:"form-control-solid",size:"lg",type:"text",placeholder:this.props.t("WATCHLIST.NAME_PLACEHOLDER"),onChange:e.handleChange,onBlur:e.handleBlur,value:e.values.watchlistName,disabled:!this.state.canCreateNewWatchlist,name:"watchlistName"}),!this.state.isAddNewWatchlist&&(0,a.jsx)(ty.A,{className:"sb-select col form-control",variant:"filled",children:(0,a.jsx)(tw.Q,{value:e.values.watchlistId,placeholder:this.props.t("WATCHLIST"),onChange:t=>{let{value:s}=t.target;if(s){let t=b()(this.state.watchlists,e=>e.id==s);this.onWatchlistSelected(t,e)}else this.onWatchlistSelected(null,e)},input:(0,a.jsx)(tC.A,{name:"watchlistName",id:"filled-type-simple-2"}),items:this.state.watchlists.map(e=>({value:e.id,name:e.name,display:(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between w-100",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center",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,a.jsx)(eI.A,{size:"sm",color:"dark",src:"/media/svg/icons/General/abs-star.svg"})})}),(0,a.jsx)("span",{className:"navi-text top-dropdown-item",title:e.name,children:e.name})]}),e.isAssetAdded&&(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsx)("i",{className:`icon-nm ${e.isAssetAdded?"fas fa-check text-primary":"far fa-star text-muted"}`})})]})}))})})]}),(0,a.jsxs)("div",{className:"col-auto pl-0",children:[!this.state.isAddNewWatchlist&&(0,a.jsx)("button",{type:"button",title:this.props.t("WATCHLIST.ADD_NEW"),onClick:()=>{this.setState({isAddNewWatchlist:!0}),this.onWatchlistSelected(null,e)},className:"btn btn-lg btn-light btn-icon",children:(0,a.jsx)("i",{className:"flaticon2-plus icon-nm text-dark"})}),this.state.isAddNewWatchlist&&this.state.watchlists.length>0&&(0,a.jsx)("button",{type:"button",title:this.props.t("WATCHLIST.SELECT_FROM_EXISTING"),onClick:()=>{this.setState({isAddNewWatchlist:!1})},className:"btn btn-lg btn-light btn-icon",children:(0,a.jsx)("i",{className:"fas fa-long-arrow-alt-left icon-nm text-dark"})})]})]}),(e.touched.watchlistName||e.touched.watchlistId)&&e.errors.watchlistName&&(0,a.jsx)("div",{className:"fv-plugins-message-container",children:(0,a.jsx)("div",{className:"fv-help-block",children:e.errors.watchlistName})})]}),(0,a.jsxs)($.e3,{type:$.RL,secured:$.zP,forceLock:this.state.isAddNewWatchlist&&!1===this.state.canCreateNewWatchlist,title:(0,a.jsx)(K.x,{i18nKey:"user:PAYWALLS.WATCHLIST"}),children:[(0,a.jsxs)(tO.A.Group,{className:"mb-0",children:[(0,a.jsxs)(tO.A.Label,{children:[this.props.t("WATCHLIST.ASSET_NOTE")," ",(0,a.jsxs)("span",{className:"text-muted font-size-sm",children:["(",this.props.t("OPTIONAL",{ns:"common"}),")"]})]}),(0,a.jsx)(tO.A.Control,{className:"form-control-solid",size:"lg",placeholder:this.props.t("WATCHLIST.ASSET_NOTE.PLACEHOLDER"),as:"textarea",rows:"3",value:e.values.note,onChange:e.handleChange,onBlur:e.handleBlur,name:"note"})]}),(0,a.jsx)("div",{className:"form-text text-muted font-size-sm mb-6",children:(0,a.jsx)(K.x,{i18nKey:"holdings:NOTES.MARKDOWN_MESSAGE",components:[(0,a.jsx)("a",{target:"_blank",href:`https://${this.props.i18n.language}.wikipedia.org/wiki/Markdown`,rel:"noreferrer"})]})}),(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between pt-2",children:[(0,a.jsx)(tA.A,{children:e.values.isAdded&&(0,a.jsx)(tx.A,{size:"lg",className:"btn btn-link-danger font-weight-bold",type:"button",disabled:this.state.blocking,onClick:()=>{this.delete(e.values.watchlistId)},children:this.props.t("BUTTON.REMOVE_FROM_LIST")})}),(0,a.jsx)(tA.A,{children:(0,a.jsx)(tx.A,{size:"lg",className:"btn btn-primary font-weight-bold",type:"submit",disabled:this.state.blocking,children:(0,a.jsx)("span",{children:this.props.t("BUTTON.ADD",{ns:"common"})})})})]})]})]})})})})})]})}}let t_=(0,H.C)(["watchlist","common"],{withRef:!0})(tD);function tM(e){let{t}=(0,J.B)(["watchlist","common"]),[s,n]=(0,T.useState)([]),[i,r]=(0,T.useState)(!1),l=(0,T.createRef)(null);async function o(){try{let{data:t}=await y.A.get(`${I.z71}/list-for-asset`,{params:{assetInfoId:e.assetInfoId}});b()(t,e=>e.isAssetAdded)?r(!0):r(!1),n(t)}catch(e){console.error(e)}}return(0,T.useEffect)(()=>{o()},[e.assetInfoId]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",title:t(i?"WATCHLIST":"WATCHLIST.ADD_TO.BTN"),className:`btn ${i?"btn-light-primary":"btn-light"} btn-icon btn-sm ${e.className}`,onClick:function(){l&&l.current&&l.current.open(s)},children:(0,a.jsx)("i",{className:`${i?"fas fa-star ":"far fa-star text-dark"} icon-nm`})}),(0,a.jsx)(t_,{ref:l,assetInfoId:e.assetInfoId,onHide:o})]})}var tL=s(74090),tk=s(5625),tF=s(30985),tU=s(78231),tB=s(14723),tG=s(80338),tK=s(10140),tH=s(83393),tY=s(54968),tW=s(75795),tV=s(69569),tz=s.n(tV),t$=s(93297);function tQ(e){let{item:t}=e,{date:s,priceIsUp:n,subscriptionUpdateRequired:i}=t,{t:r}=(0,J.B)(["analytics","common"]),l=s?r("SHORT_DATE",{date:new Date(s),ns:"common"}):null;return(0,a.jsx)("div",{className:`${tz().root} ${n?tz().up:tz().down} bg-card-light`,children:(0,a.jsx)("div",{className:"",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between mb-2",children:[(0,a.jsxs)("span",{className:"font-weight-bold",children:[(0,a.jsx)("span",{className:`symbol symbol-20 mr-2 ${n?"symbol-light-success":"symbol-light-danger"}`,children:(0,a.jsx)("span",{className:"symbol-label",children:n?(0,a.jsx)(tY.A,{fontSize:"inherit"}):(0,a.jsx)(tW.A,{fontSize:"inherit"})})}),r("LABEL.WIIM.TITLE.TODAY"),(0,a.jsx)(eh.N,{className:"ml-2",message:r("LABEL.WIIM.HELP")})]}),!i&&(0,a.jsx)("div",{className:"text-dark-50 font-size-sm",children:l}),i&&(0,a.jsx)(z.o,{title:r("WIIM.UPGRADE.HELP",{ns:"analytics"}),children:(0,a.jsx)("div",{className:"text-dark-50",children:(0,a.jsx)(tH.A,{fontSize:"small"})})})]}),(0,a.jsx)(t$.D,{item:t,withUpgradeBtn:!0})]})})})}function tX(e){let{t}=(0,J.B)(["assetPage","common"]),[s,n]=(0,T.useState)(e.assetSummary),[i,r]=(0,T.useState)(e.assetRating),[l,o]=(0,T.useState)([]);return(0,T.useEffect)(()=>{let t;t=[],null!=s&&(s.nextEarningsReportReportingDate&&t.push({name:"STOCK.PROP.NEXT_EARNING_DATE",help:s.lastEarningsReportDate?"STOCK.PROP.NEXT_EARNING_DATE_HELP":"STOCK.PROP.NEXT_EARNING_DATE_HELP_2",value:(0,a.jsx)(d.pw,{format:"SHORT_DATE",date:new Date(s.nextEarningsReportReportingDate)}),helpAdditional:{nextQuater:s.nextEarningsReportDate?new Date(s.nextEarningsReportDate):null,lastQuater:s.lastEarningsReportDate?new Date(s.lastEarningsReportDate):null,lastQuaterReport:s.lastEarningsReportReportingDate?new Date(s.lastEarningsReportReportingDate):null}}),s.pe&&t.push({name:"STOCK.PROP.PE_TTM",help:"STOCK.PROP.PE_HELP",value:(0,a.jsx)(Y.b,{value:s.pe,precision:1})}),s.eps&&t.push({name:"STOCK.PROP.EPS_TTM",help:"STOCK.PROP.EPS_TTM_HELP",value:(0,a.jsx)(Y.b,{value:s.eps,precision:3})}
5),s.marketCapMln&&t.push({name:"STOCK.PROP.MARKET_CAP",help:"STOCK.PROP.MARKET_CAP_HELP",value:(0,a.jsx)(Y.b,{value:s.marketCapMln,isCompact:!0,isMoney:!0,currency:s.marketCapCurrency})}),s.expenseRatio&&t.push({name:"FUND.SUMMARY.EXPENSE_RATIO",help:"FUND.SUMMARY.EXPENSE_RATIO_HELP",ns:"common",value:(0,a.jsx)(Y.b,{value:s.expenseRatio,isPercent:"true"})}),s.divYieldFWD&&t.push({name:s.isDivYieldTTM?"STOCK.PROP.DIV_YIELD_TTM":"STOCK.PROP.DIV_YIELD_FWD",help:s.isDivYieldTTM?"STOCK.PROP.DIV_YIELD_TTM_HELP":"STOCK.PROP.DIV_YIELD_FWD_HELP",value:(0,a.jsx)(Y.b,{value:s.divYieldFWD,isPercent:!0})}),e.assetInfo.type==S.PW.BOND&&(t=[]).push({name:"BOND.SUMMARY.ACCRUED_INTEREST",help:"BOND.SUMMARY.ACCRUED_INTEREST_HELP",ns:"common",value:(0,a.jsx)(Y.b,{value:s.nkd,currency:s.currency,isMoney:"true"})})),o(t)},[s]),(0,T.useEffect)(()=>{n(e.assetSummary),r(e.assetRating)},[e.assetSummary,e.assetRating]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"row justify-content-between mt-3",children:[(0,a.jsxs)("div",{className:"col-auto mt-2 mt-sm-3 container-nowrap-scroll",children:[null!=s.currentPrice&&(0,a.jsx)(Y.b,{precision:6,value:s.currentPrice,currency:s.currency,className:"font-weight-bold font-size-h1 mr-3",isMoney:!0}),s.currentNominal>0&&null!=s.currentPrice&&(0,a.jsxs)("span",{className:"text-dark-50 mr-3",children:["/"," ",(0,a.jsx)(Y.b,{value:s.currentPrice/(s.realNominal>s.currentNominal?s.realNominal:s.currentNominal)*100,className:"",isPercent:!0})]}),null==s.currentPrice&&(0,a.jsxs)("span",{className:"font-weight-bold font-size-h1 mr-3",children:["-- ",(0,tK.Qn)(s.currency)]}),(0,a.jsxs)("span",{className:`stats-bottom font-size-lg ${s.lastDayGainsAmount>0&&"text-success"} ${s.lastDayGainsAmount<0&&"text-danger"}`,children:[(0,a.jsx)("span",{className:"text-nowrap font-weight-bold",children:(0,a.jsx)(Y.b,{showColors:!0,precision:6,value:s.lastDayGainsAmount,isMoney:!0,currency:s.currency,symbol:"sign"})}),"\xa0 (",(0,a.jsx)("span",{className:"text-nowrap font-weight-bold",children:(0,a.jsx)(Y.b,{className:"ml-1",showColors:!0,value:s.lastDayGainsPercent,isPercent:!0,precision:2,symbol:"triangle"})}),")"]})]}),(0,a.jsx)("div",{className:"col-auto mt-2 mt-sm-3",children:(0,a.jsx)("div",{className:"row container-nowrap-scroll",children:l.map((e,s)=>(0,a.jsx)("div",{className:"col-auto",children:(0,a.jsx)(z.o,{title:t(e.help,{...e.helpAdditional??{},...e.ns?{ns:e.ns}:{}}),children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"asset-summary-name text-muted font-size-sm",children:t(e.name,e.ns?{ns:e.ns}:{})}),(0,a.jsx)("div",{className:"asset-summary-val font-weight-bold font-size-h6",children:e.value})]})})},s))})})]}),s.priceMovementReason?.hasReason&&!i&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(G.J,{height:80,count:1})}),i?.priceMovementReason?.hasReason&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(tQ,{item:i.priceMovementReason})})]})}function tZ(e){let{asset:t,onSocialEntityIdChange:s,onTransactionEditorHide:n}=e,{t:i}=(0,J.B)(["assetPage","common"]),r=(0,Z.useRouter)(),o=(0,E.Jd)(),c=(0,T.useRef)(null),d=M(t.assetInfoId,{staleTime:0,refetchOnMount:!1}),u=r.query.tab?.[0]??q.HI.COMMON,m=`https://snowball-analytics.com${(0,h.A)(t.type,t.assetInfoId,t.ticker,t.exchange,t.currency)}`,p=(0,T.useMemo)(()=>[{key:q.HI.COMMON,text:i("ASSET.TABS.COMMON")},{key:q.HI.DIVS,text:t.type===S.PW.BOND?i("ASSET.TABS.INCOME"):i("ASSET.TABS.DIVS"),enabled:t.type===S.PW.STOCK||t.type===S.PW.ETF||t.type===S.PW.BOND},{key:q.HI.FUND_DATA,text:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"pr-1",children:i("ASSET.TABS.FUND_DATA")}),(0,a.jsx)("span",{className:"beta-item font-size-sm",children:"β"})]}),enabled:t.type===S.PW.ETF},{key:q.HI.FINANCIALS,text:i("ASSET.TABS.FINANCIALS"),enabled:t.type===S.PW.STOCK},{key:q.HI.NEWS,text:i("ASSET.TABS.NEWS"),enabled:"MCX"!==t.exchange&&!(0,l.E8)()},{key:q.HI.COMMUNITY,text:i("ASSET.TABS.COMMUNITY"),enabled:!(0,l.E8)()}].filter(e=>{let{enabled:t}=e;return void 0===t||t}),[t.type,t.exchange]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"card card-custom card-sm-stretch gutter-b",children:(0,a.jsxs)("div",{className:"card-body pb-0",children:[(0,a.jsxs)("div",{className:"d-flex align-items-top justify-content-between flex-wrap",children:[(0,a.jsxs)("div",{className:"d-flex mb-2",children:[(0,a.jsx)(h.hz,{logoUrl:t.logoURL,primaryLogoUrl:t.primaryLogoURL,ticker:t.ticker,assetType:t.type,name:t.description,size:"lg",className:"mr-4"}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"mr-3",children:[(0,a.jsx)("h1",{className:"text-dark font-size-h3 font-weight-bold",children:t.description}),t.otherVersions?.length?(0,a.jsx)(tF.A,{className:"topbar-dropdown",drop:"down",alignRight:!0,children:(0,a.jsxs)("div",{className:"topbar-item",children:[(0,a.jsx)(tF.A.Toggle,{id:"dropdown-toggle-top2",variant:"transparent",className:"w-auto p-0 mt-n1",children:(0,a.jsxs)("span",{className:"text-dark-50",children:[t.ticker," • ",t.exchange]})}),(0,a.jsx)(tF.A.Menu,{className:"dropdown-menu dropdown-menu-md dropdown-menu-left",children:(0,a.jsx)("ul",{className:"navi navi-hover",children:t.otherVersions.map(e=>(0,a.jsx)("li",{className:"navi-item",style:{cursor:"pointer"},children:(0,a.jsxs)("div",{className:"navi-link",onClick:()=>(e=>{let t=(0,x.T)(e.ticker,e.exchange,e.currency);r.push({pathname:r.pathname,query:{...r.query,slug:t,tab:u===q.HI.COMMON?void 0:u}})})(e),children:[(0,a.jsx)(h.hz,{logoUrl:t.logoURL,primaryLogoUrl:t.primaryLogoURL,ticker:t.ticker,size:"sm",className:"mr-2"}),(0,a.jsxs)("span",{className:"navi-text",children:[(0,a.jsxs)("b",{children:[e.ticker,":",e.exchange]}),", ",e.currency]})]})},e.assetInfoId))})}),t.isDelisted&&(0,a.jsx)("span",{className:"label label-sm label-inline label-light-warning ml-2",children:i("ASSET_DELISTED",{ns:"common"})})]})}):(0,a.jsxs)("div",{className:"mr-3 text-dark-50",children:[(0,a.jsx)(eT.$,{children:t.ticker})," •"," ",t.exchange," ",t.isDelisted&&(0,a.jsx)("span",{className:"label label-sm label-inline label-light-warning ml-2",children:i("ASSET_DELISTED",{ns:"common"})})]})]})})]}),(0,a.jsxs)("div",{className:"",children:[(0,l.de)()&&t.dividendCalculatorSlug&&!(0,l.
5E8)()&&(0,a.jsx)(ej.N,{href:`/calculator/dividend/${t.dividendCalculatorSlug}-dividend-calculator`,title:i("ASSET.DIVIDEND_CALCULATOR",{name:t.description}),className:"btn btn-light btn-icon btn-sm mr-2",children:(0,a.jsx)("i",{className:"fas fa-calculator icon-nm text-dark"})}),(0,a.jsx)(tU.Q,{persistor:tk.qj,children:o&&(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)(tM,{assetInfoId:t.assetInfoId,className:"mr-2"}),(0,a.jsx)("button",{type:"button",title:i("ASSET.ADD_TRANS"),className:"btn btn-light btn-icon btn-sm",onClick:()=>{(e=>{if(!c.current)return;let s={assetType:t.type,commission:0,currency:t.currency,date:new Date,justDate:new Date,description:t.description,divCurrency:t.currency,exchange:t.exchange,name:t.ticker,ticker:t.ticker,ignoreCurrency:t.ignoreCurrency,portfolioId:null,price:e==eu.KJ.Divs?"":null,sign:1,subType:null,tax:0,type:e};c.current.open("new",s,e==eu.KJ.Divs,null)})(eu.KJ.Buy)},children:(0,a.jsx)("i",{className:"flaticon2-plus icon-nm text-dark"})})]})}),(0,a.jsx)(tL.V,{registerView:!1,entityId:t.assetInfoId,entityType:eY.$5,slug:`${t.ticker}.${t.exchange}.${t.currency}`,onIdChange:s,goToComments:()=>{},disableLikes:!0,disableComments:!0,additional:(0,a.jsx)("button",{type:"button",title:i("BUTTON.SHARE",{ns:"common"}),className:"ml-2 btn btn-light btn-icon btn-sm",onClick:()=>{(0,tG.C)(m,i("LINK_COPIED",{ns:"common"}))},children:(0,a.jsx)("i",{className:"icon-nm fa fa-share-alt text-dark"})})})]})]}),(0,a.jsx)(tX,{assetSummary:t,assetInfo:t,assetRating:d.data}),(0,a.jsx)(el.A.Container,{children:(0,a.jsx)(eo.A,{as:"ul",className:"nav nav-tabs nav-tabs-space-lg nav-tabs-line nav-bold nav-tabs-line-3x sb-nav nav-dark-75 mt-2",children:p.map(e=>{let{key:t,text:s}=e;return(0,a.jsx)(eo.A.Item,{className:"nav-item",as:"li",children:(0,a.jsx)(ej.N,{className:`nav-link py-3 ${u===t?"active":""}`,shallow:!0,href:{pathname:r.pathname,query:{...r.query,tab:t!==q.HI.COMMON?t:void 0}},children:(0,a.jsx)("span",{className:"nav-text",children:s})})},t)})})})]})}),(0,a.jsx)(tB.f,{ref:c,asset:t,fromAssetPage:!0,portfolioId:null,trackCashType:null,portfolioType:null,onHide:n})]})}function tq(e){let{assetInfo:t}=e,{t:s,i18n:n}=(0,J.B)("types"),i=s((0,h.HC)(t.type)),r=(0,eN.qQ)(t.countryISO,n.language),l=t.type===S.PW.STOCK?[i,r,t.g
5icSector]:[i];return(0,a.jsx)("ul",{className:"container-nowrap-scroll breadcrumb breadcrumb-transparent breadcrumb-dot font-weight-bold p-0 mb-4 mt-0 font-size-sm",children:l.map((e,t)=>(0,a.jsx)("li",{className:"breadcrumb-item text-muted",children:(0,a.jsx)("span",{className:"text-muted",children:e})},`info-bc-${t}`))})}var tJ=s(95572),t0=s(99751),t1=s(46054);let t6=[{questionKey:"ASSET.FAQ.ETF.EXPENSE_RATIO.QUESTION",answerKeys:[{condition:e=>0!==e.expenseRatio,key:"ASSET.FAQ.ETF.EXPENSE_RATIO.ANSWER"}],condition:e=>(0,l.de)()&&e.type===t1.ck.Etf&&e.expenseRatio},{questionKey:"ASSET.FAQ.STOCK.SECTOR.QUESTION",answerKeys:[{condition:e=>(0,l.de)()&&null!=e.industry,key:"ASSET.FAQ.STOCK.SECTOR.ANSWER_WITH_INDUSTRY"},{condition:()=>!0,key:"ASSET.FAQ.STOCK.SECTOR.ANSWER_WITHOUT_INDUSTRY"}],condition:e=>e.type===t1.ck.Stock},{questionKey:"ASSET.FAQ.CURRENT_PRICE.QUESTION",answerKeys:[{condition:e=>e.lastDayGainsAmount>0,key:"ASSET.FAQ.CURRENT_PRICE.ANSWER_GAIN"},{condition:e=>!e.lastDayGainsAmount,key:"ASSET.FAQ.CURRENT_PRICE.ANSWER_FLAT"},{condition:e=>e.lastDayGainsAmount<0,key:"ASSET.FAQ.CURRENT_PRICE.ANSWER_LOSS"}],condition:e=>(e.type===t1.ck.Stock||(0,l.de)()&&e.type===t1.ck.Etf)&&null!=e.currentPrice&&null!=e.prevClosePrice},{questionKey:"ASSET.FAQ.STOCK.MARKET_CAP.QUESTION",answerKeys:[{condition:()=>!0,key:"ASSET.FAQ.STOCK.MARKET_CAP.ANSWER"}],condition:e=>(0,l.de)()&&e.type===t1.ck.Stock&&e.marketCapMln>0},{questionKey:"ASSET.FAQ.STOCK.EPS.QUESTION",answerKeys:[{condition:e=>0!=e.forwardEPS,key:"ASSET.FAQ.STOCK.EPS.ANSWER_WITH_FORWARD"},{condition:()=>!0,key:"ASSET.FAQ.STOCK.EPS.ANSWER_TRAILING"}],condition:e=>(0,l.de)()&&e.type===t1.ck.Stock&&e.eps},{questionKey:"ASSET.FAQ.STOCK.PE_RATIO.QUESTION",answerKeys:[{condition:e=>e.forwardPE,key:"ASSET.FAQ.STOCK.PE_RATIO.ANSWER_WITH_FORWARD"},{condition:()=>!0,key:"ASSET.FAQ.STOCK.PE_RATIO.ANSWER"}],condition:e=>e.type===t1.ck.Stock&&e.pe},{questionKey:"ASSET.FAQ.STOCK.EBITDA.QUESTION",answerKeys:[{condition:()=>!0,key:"ASSET.FAQ.STOCK.EBITDA.ANSWER"}],condition:e=>(0,l.de)()&&e.type===t1.ck.Stock&&e.ebitda},{questionKey:"ASSET.FAQ.DIVIDENDS.QUESTION",answerKeys:[{condition:e=>0!=e.divYieldFWD,key:"ASSET.FAQ.DIVIDENDS.ANSWER_YES"},{condition:()=>!0,key:"ASSET.FAQ.DIVIDENDS.ANSWER_NO"}],condition:e=>e.type===t1.ck.Stock||(0,l.de)()&&e.type===t1.ck.Etf},{questionKey:"ASSET.FAQ.STOCK.EX_DIVIDEND_DATE.QUESTION",answerKeys:[{condition:()=>!0,key:"ASSET.FAQ.STOCK.EX_DIVIDEND_DATE.ANSWER"}],condition:e=>(0,l.de)()&&(e.type===t1.ck.Stock||e.type===t1.ck.Etf)&&null!=e.exDividendDate},{questionKey:"ASSET.FAQ.STOCK.NEXT_DIVIDEND_DATE.QUESTION",answerKeys:[{condition:e=>e.nextDividendIsDeclared,key:"ASSET.FAQ.STOCK.NEXT_DIVIDEND_DATE.IS_DECLARED"},{condition:e=>!e.nextDividendIsDeclared,key:"ASSET.FAQ.STOCK.NEXT_DIVIDEND_DATE.NOT_DECLARED"}],condition:e=>!(0,l.de)()&&e.type===t1.ck.Stock&&null!=e.nextDividendDate},{questionKey:"ASSET.FAQ.STOCK.LAST_EARNINGS.QUESTION",answerKeys:[{condition:()=>!0,key:"ASSET.FAQ.STOCK.LAST_EARNINGS.ANSWER"}],condition:e=>(0,l.de)()&&e.type===t1.ck.Stock&&null!=e.lastEarningsReportDate&&null!=e.lastQuaterEPSSurprise&&null!=e.lastQuaterRevenueSurprise},{questionKey:"ASSET.FAQ.STOCK.NEXT_EARNINGS.QUESTION",answerKeys:[{condition:()=>!0,key:"ASSET.FAQ.STOCK.NEXT_EARNINGS.ANSWER"}],condition:e=>(0,l.de)()&&e.type===t1.ck.Stock&&null!=e.nextEarningsReportDate},{questionKey:"ASSET.FAQ.STOCK.BETA.QUESTION",answerKeys:[{condition:e=>e.beta<.8,key:"ASSET.FAQ.STOCK.BETA.ANSWER_LOW"},{condition:e=>e.beta>=.8&&e.beta<=1.2,key:"ASSET.FAQ.STOCK.BETA.ANSWER_MARKET"},{condition:e=>e.beta>1.2&&e.beta<=2,key:"ASSET.FAQ.STOCK.BETA.ANSWER_HIGH"},{condition:e=>e.beta>2,key:"ASSET.FAQ.STOCK.BETA.ANSWER_VERY_HIGH"}],condition:e=>e.type===t1.ck.Stock&&null!=e.beta}];function t2(e){let{assetSummary:t}=e,{t:s,i18n:{language:n}}=(0,J.B)(["common","assetPage"]),[i,r]=(0,T.useState)([]),l=f(t,n,s),o=t6.filter(e=>e.condition(t)).map(e=>{let{key:a}=e.answerKeys.find(e=>e.condition(t));return{question:m(s(e.questionKey,{ns:"assetPage"}),l),answer:m(s(a,{ns:"assetPage"}),l)}});return o.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("ASSET.FAQ",{ns:"assetPage"})})}),(0,a.jsx)("div",{itemScope:!0,className:"card-body pt-0",itemType:"https://schema.org/FAQPage",children:o.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)(tJ.A,{}):(0,a.jsx)(t0.A,{}),e.question]}),(0,a.jsx)(eA.A,{in:i.includes(t),children:(0,a.jsx)("div",{className:"pt-1 pb-2 pl-2",itemScope:!0,itemProp:"acceptedA
5nswer",itemType:"https://schema.org/Answer",children:(0,a.jsx)("div",{itemProp:"text",children:e.answer})})})]},t))})]}):null}var t3=s(24322),t5=s.n(t3);let t4={[q.HI.COMMON]:{title:"ASSET.PAGE.COMMON.TITLE",description:"ASSET.PAGE.COMMON.DESCRIPTION"},[q.HI.DIVS]:{title:"ASSET.PAGE.DIVS.TITLE",description:"ASSET.PAGE.DIVS.DESCRIPTION"},[q.HI.FINANCIALS]:{title:"ASSET.PAGE.FINANCIALS.TITLE",description:"ASSET.PAGE.FINANCIALS.DESCRIPTION"},[q.HI.FUND_DATA]:{title:"ASSET.PAGE.FUND_DATA.TITLE",description:"ASSET.PAGE.FUND_DATA.DESCRIPTION"},[q.HI.NEWS]:{title:"ASSET.PAGE.NEWS.TITLE",description:"ASSET.PAGE.NEWS.DESCRIPTION"},[q.HI.COMMUNITY]:{title:"ASSET.PAGE.COMMUNITY.TITLE",description:"ASSET.PAGE.COMMUNITY.DESCRIPTION"}};function t8(e){let{asset:t,noIndex:s=!1,userAgent:r}=e,{t:o,i18n:{language:c}}=(0,J.B)(["assetPage","common"]),d=(0,Z.useRouter)(),[u,h]=(0,T.useState)(null),[m,g]=(0,T.useState)(0),[v,N]=(0,T.useState)(!1),E=d.query?.tab?.[0],O=E??q.HI.COMMON,A=f(t,c,o),I={appName:(0,l.VQ)(),companyName:t.description?`${t.description} (${t.ticker})`:t.ticker,description:t.description,ticker:t.ticker,exchange:t.exchange},y=t.description?o("ASSET.PAGE_TITLE",I):o("ASSET.PAGE_HEADER"),C=t.type===S.PW.STOCK?o("ASSET.PAGE_DESCRIPTION_1",I):o("ASSET.PAGE_DESCRIPTION"),j=t4[O],P=(0,l.de)()&&j?.title?o(j.title,I):y,R=(0,l.de)()&&j?.description?o(j.description,I):C,w=O===q.HI.COMMON&&t.metaTitle?p(t.metaTitle,A):P,D=O===q.HI.COMMON&&t.metaDescription?p(t.metaDescription,A):R,_=function(e,t){let s=b()(e.otherVersions??[],e=>e.isCanonical)??e,a=(0,x.T)(s.ticker,s.exchange,s.currency);return`https://snowball-analytics.com/public/asset/${encodeURIComponent(a)}${t?`/${t}`:""}`}(t,E),M=(e,t)=>{let{shallow:s}=t;s||N(!0)},L=()=>{N(!1)},k=!r?.toLowerCase().includes("googlebot");return(0,T.useEffect)(()=>(d.events.on("routeChangeStart",M),d.events.on("routeChangeComplete",L),()=>{d.events.off("routeChangeStart",M),d.events.off("routeChangeComplete",L)}),[d]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(t5(),{children:[(0,a.jsx)("title",{children:w}),(0,a.jsx)("meta",{name:"description",content:D},"description"),(0,a.jsx)("meta",{property:"og:title",content:w},"ogtitle"),(0,a.jsx)("meta",{property:"og:description",content:D},"ogdescription"),(0,a.jsx)("link",{rel:"canonical",href:_},"canonical"),s&&(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"},"robots")]}),v?(0,a.jsx)(G.J,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tq,{assetInfo:t}),(0,a.jsx)(tZ,{asset:t,onSocialEntityIdChange:h,onTransactionEditorHide:()=>{g(m+1)}}),(0,a.jsxs)("div",{children:[" ",O!==q.HI.COMMUNITY&&(0,a.jsx)(n.T,{})]}),(0,a.jsxs)("div",{className:"d-flex flex-column-fluid flex-column",children:[O===q.HI.COMMON&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eH,{asset:t,reloadTrigger:m}),!(0,l.E8)()&&(0,a.jsx)(t2,{assetSummary:t})]}),O===q.HI.DIVS&&(0,a.jsx)(td,{asset:t,paginationEnabled:k}),O===q.HI.FINANCIALS&&(0,a.jsx)(tm,{asset:t}),O===q.HI.FUND_DATA&&(0,a.jsx)(tT,{asset:t}),O===q.HI.NEWS&&!(0,l.E8)()&&(0,a.jsx)(i.e,{assetInfoId:t.assetInfoId,queryOptions:{staleTime:0,refetchOnMount:!1}}),O===q.HI.COMMUNITY&&!(0,l.E8)()&&(0,a.jsx)(eX,{socialEntityId:u,asset:t})]})]})]})}t8.getLayout=function(e,t,s){return s?.gone?(0,a.jsx)(N.s,{children:(0,a.jsx)(r.p,{returnUrl:"/"})}):(0,a.jsx)(N.s,{children:e})};var t9=!0;let t7=t8},87800:(e,t,s)=>{"use strict";s.d(t,{p:()=>o});var a=s(26514);s(75834);var n=s(24322),i=s.n(n),r=s(93760),l=s(48208);function o(e){let{returnUrl:t="/"}=e,{t:s}=(0,r.B)("layout");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:s("layout:GONE.TITLE")}),(0,a.jsx)("meta",{property:"og:title",content:s("layout:GONE.TITLE")},"ogtitle"),(0,a.jsx)("meta",{name:"description",content:s("layout:GONE.DESCRIPTION")},"description"),(0,a.jsx)("meta",{property:"og:description",content:s("layout:GONE.DESCRIPTION")},"ogdescription")]}),(0,a.jsxs)("div",{className:"d-flex flex-column align-items-center justify-content-center",children:[(0,a.jsx)("h1",{children:s("layout:GONE.TITLE")}),(0,a.jsx)("p",{children:s("layout:GONE.DESCRIPTION")}),(0,a.jsx)(l.o,{href:t,className:"btn btn-primary",children:s("layout:GONE.BUTTON")})]})]})}},93297:(e,t,s)=>{"use strict";s.d(t,{D:()=>o});var a=s(26514);s(75834);var n=s(14571),i=s(2782),r=s(32673),l=s(67725);function o(e){let{item:t,withUpgradeBtn:s}=e,{teaser:o,reasonDescription:c,subscriptionUpdateRequired:d}=t;
5return(0,a.jsxs)("div",{children:[!d&&c&&(0,a.jsx)(n.A,{component:"span",children:c}),d&&o&&(0,a.jsxs)("div",{className:"row justify-content-between align-items-center",children:[(0,a.jsxs)("div",{className:s?"col-md-6 col-sm-12":"col",children:[(0,a.jsx)(n.A,{component:"span",children:o}),(0,a.jsxs)(r.A,{alignItems:"center",direction:"row",gap:1,sx:{marginTop:1},children:[(0,a.jsx)(i.A,{animation:!1,height:10,width:"50%",style:{marginBottom:6}}),(0,a.jsx)(i.A,{animation:!1,height:10,width:"30%",style:{marginBottom:6}})]})]}),s&&(0,a.jsx)("div",{className:"col-auto py-2",children:(0,a.jsx)(l.F,{})})]})]})}},93696:(e,t,s)=>{"use strict";s.d(t,{A:()=>w});var a=s(62199),n=s(77488),i=s(69001),r=s.n(i);s(72760);var l=s(75834),o=s(73257),c=s(76439),d=s(11414),u=s(45234),h=s(20111),m=s(41656),p=s(58680),f=s(68125),S=s(84356),g=s(70835),x=["as","onSelect","activeKey","role","onKeyDown"],v=function(){},b=l.forwardRef(function(e,t){var s,i,r=e.as,o=e.onSelect,c=e.activeKey,d=e.role,u=e.onKeyDown,b=(0,n.A)(e,x),N=(0,m.A)(),T=(0,l.useRef)(!1),E=(0,l.useContext)(S.A),O=(0,l.useContext)(g.A);O&&(d=d||"tablist",c=O.activeKey,s=O.getControlledId,i=O.getControllerId);var A=(0,l.useRef)(null),I=function(e){var t=A.current;if(!t)return null;var s=(0,h.A)(t,"[data-rb-event-key]:not(.disabled)"),a=t.querySelector(".active");if(!a)return null;var n=s.indexOf(a);if(-1===n)return null;var i=n+e;return i>=s.length&&(i=0),i<0&&(i=s.length-1),s[i]},y=function(e,t){null!=e&&(o&&o(e,t),E&&E(e,t))};(0,l.useEffect)(function(){if(A.current&&T.current){var e=A.current.querySelector("[data-rb-event-key].active");e&&e.focus()}T.current=!1});var C=(0,p.A)(t,A);return l.createElement(S.A.Provider,{value:y},l.createElement(f.A.Provider,{value:{role:d,activeKey:(0,S.u)(c),getControlledId:s||v,getControllerId:i||v}},l.createElement(void 0===r?"ul":r,(0,a.A)({},b,{onKeyDown:function(e){var t;switch(u&&u(e),e.key){case"ArrowLeft":case"ArrowUp":t=I(-1);break;case"ArrowRight":case"ArrowDown":t=I(1);break;default:return}t&&(e.preventDefault(),y(t.dataset.rbEventKey,e),T.current=!0,N())},ref:C,role:d}))))}),N=["bsPrefix","className","children","as"],T=l.forwardRef(function(e,t){var s=e.bsPrefix,i=e.className,o=e.children,d=e.as,u=(0,n.A)(e,N);return s=(0,c.oU)(s,"nav-item"),l.createElement(void 0===d?"div":d,(0,a.A)({},u,{ref:t,className:r()(i,s)}),o)});T.displayName="NavItem";var E=s(62733),O=s(70265);s(96433);var A=["active","className","eventKey","onSelect","onClick","as"],I=l.forwardRef(function(e,t){var s=e.active,i=e.className,o=e.eventKey,c=e.onSelect,d=e.onClick,u=e.as,h=(0,n.A)(e,A),m=(0,S.u)(o,h.href),p=(0,l.useContext)(S.A),g=(0,l.useContext)(f.A),x=s;if(g){h.role||"tablist"!==g.role||(h.role="tab");var v=g.getControllerId(m),b=g.getControlledId(m);h["data-rb-event-key"]=m,h.id=v||h.id,h["aria-controls"]=b||h["aria-controls"],x=null==s&&null!=m?g.activeKey===m:s}"tab"===h.role&&(h.disabled&&(h.tabIndex=-1,h["aria-disabled"]=!0),h["aria-selected"]=x);var N=(0,O.A)(function(e){d&&d(e),null!=m&&(c&&c(m,e),p&&p(m,e))});return l.createElement(u,(0,a.A)({},h,{ref:t,onClick:N,className:r()(i,x&&"active")}))});I.defaultProps={disabled:!1};var y=["bsPrefix","disabled","className","href","eventKey","onSelect","as"],C={disabled:!1,as:E.A},j=l.forwardRef(function(e,t){var s=e.bsPrefix,i=e.disabled,o=e.className,d=e.href,u=e.eventKey,h=e.onSelect,m=e.as,p=(0,n.A)(e,y);return s=(0,c.oU)(s,"nav-link"),l.createElement(I,(0,a.A)({},p,{href:d,ref:t,eventKey:u,as:m,disabled:i,onSelect:h,className:r()(o,s,i&&"disabled")}))});j.displayName="NavLink",j.defaultProps=C;var P=["as","bsPrefix","variant","fill","justify","navbar","navbarScroll","className","children","activeKey"],R=l.forwardRef(function(e,t){var s,i,h,m=(0,o.Zw)(e,{activeKey:"onSelect"}),p=m.as,f=m.bsPrefix,S=m.variant,g=m.fill,x=m.justify,v=m.navbar,N=m.navbarScroll,T=m.className,E=m.children,O=m.activeKey,A=(0,n.A)(m,P),I=(0,c.oU)(f,"nav"),y=!1,C=(0,l.useContext)(d.A),j=(0,l.useContext)(u.A);return C?(i=C.bsPrefix,y=null==v||v):j&&(h=j.cardHeaderBsPrefix),l.createElement(b,(0,a.A)({as:void 0===p?"div":p,ref:t,activeKey:O,className:r()(T,((s={})[I]=!y,s[i+"-nav"]=y,s[i+"-nav-scroll"]=y&&N,s[h+"-"+S]=!!h,s[I+"-"+S]=!!S,s[I+"-fill"]=g,s[I+"-justified"]=x,s))},A),E)});R.displayName="Nav",R.defaultProps={justify:!1,fill:!1},R.Item=T,R.Link=j;let w=R},95572:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=s(69353),n=s(26514);let i=(0,a.A)((0,n.jsx)("path",{d:"M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1"}),"RemoveRounded")},96337:(e,t,s)=>{"use strict";s.d(t,{c:()=>r});var a=s(26514);s(75834);var n=s(59757),i=s(93760);function r(e){let{isAutoSyncPortfolio:t}=e,{t:s}=(0,i.B)("trans"),{isSyncPortfolio:r}=(0,n.d4)(e=>{let{app:t}=e;return{isSyncPortfolio:t.currentPortfolio?.isAutoSyncEnabled??!1}},n.bN);return(null===t?r:t)?(0,a.jsx)("div",{className:"alert alert-custom alert-outline-2x alert-outline-warning subscription-danger d-flex flex-column align-items-start pt-3 pb-1",role:"alert",children:(0,a.jsx)("div",{className:"row justify-content-between w-100",children:(0,a.jsx)("div",{className:"col-sm-12 col-md-auto d-flex align-items-center mb-2",children:(0,a.jsx)("span",{children:s("DIVS_AUTO_CREATE.WARNING")})})})}):null}},96741:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>l});var a=s(84780),n=s(62199),i=s(75834),r=s(11464);s(93314),s(60851),s(27543);var l=(0,i.forwardRef)(function(e,t){var s=(0,a.u)(e);return i.createElement(r.S,(0,n.A)({ref:t},s))})},98588:(e,t,s)=>{"use strict";var a=n(s(82358));
5function n(e){return e&&e.__esModule?e:{default:e}}t.A=(0,n(s(57880)).default)(a.default)},99057:e=>{e.exports={root:"WiimUpgradeButton_root__ZyNVa"}},99476:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},n=r(s(40410)),i=r(s(29372));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var s=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return s.getNewestState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,i=void 0,r=void 0,l=void 0,o={};return s.sortContext&&(t=s.sortContext.state.sortOrder,n=s.sortContext.state.sortColumn?s.sortContext.state.sortColumn.dataField:null),s.filterContext&&(o=s.filterContext.currFilters),s.paginationContext&&(i=s.paginationContext.currPage,r=s.paginationContext.currSizePerPage),s.searchContext&&(l=s.props.search.searchText),a({sortOrder:t,sortField:n,filters:o,page:i,sizePerPage:r,searchText:l},e,{data:s.props.data})},s.isRemoteSearch=function(){var e=s.props.remote;return!0===e||i.default.isObject(e)&&e.search||s.isRemotePagination()},s.isRemotePagination=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s.props.remote;return e.result=!0===t||i.default.isObject(t)&&t.pagination,e.result},s.isRemoteFiltering=function(){var e=s.props.remote;return!0===e||i.default.isObject(e)&&e.filter||s.isRemotePagination()},s.isRemoteSort=function(){var e=s.props.remote;return!0===e||i.default.isObject(e)&&e.sort||s.isRemotePagination()},s.isRemoteCellEdit=function(){var e=s.props.remote;return!0===e||i.default.isObject(e)&&e.cellEdit},s.handleRemotePageChange=function(e,t){s.props.onTableChange("pagination",s.getNewestState({page:e,sizePerPage:t}))},s.handleRemoteFilterChange=function(e){var t={filters:e};if(s.isRemotePagination()){var a=s.props.pagination.options||{};t.page=i.default.isDefined(a.pageStartIndex)?a.pageStartIndex:1}s.props.onTableChange("filter",s.getNewestState(t))},s.handleRemoteSortChange=function(e,t){s.props.onTableChange("sort",s.getNewestState({sortField:e,sortOrder:t}))},s.handleRemoteCellChange=function(e,t,a){s.props.onTableChange("cellEdit",s.getNewestState({cellEdit:{rowId:e,dataField:t,newValue:a}}))},s.handleRemoteSearchChange=function(e){s.props.onTableChange("search",s.getNewestState({searchText:e}))},s.remoteEmitter=new n.default,s.remoteEmitter.on("paginationChange",s.handleRemotePageChange),s.remoteEmitter.on("isRemotePagination",s.isRemotePagination),s}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),t}}},e=>{e.O(0,[3803,2725,8868,2514,6031,1352,8628,6456,4638,8245,6725,1394,9754,5386,7973,5888,1757,1879,7346,3464,1291,7370,8129,2698,4219,8887,2358,3700,8996,9442,1629,6854,9806,1139,5331,7153,6518,3211,6842,5840,8631,3968,3344,9344,2617,2649,1709,1920,3906,7608,636,6593,8792],()=>e(e.s=50786)),_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.