PageSourceSearch

https://profinansy.ru/_next/static/chunks/pages/club/investidea-7ab1ca14955687c4.js

js profinansy.ru collected 2026-10-02 14:56:54 UTC 40,868 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2544],{88861:function(e,t,i){"use strict";var n,a,l=i(67294),r=["title","titleId"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}t.Z=function(e){var t=e.title,i=e.titleId,s=function(e,t){if(null==e)return{};var i,n,a=function(e,t){if(null==e)return{};var i={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;i[n]=e[n]}return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)i=l[n],t.includes(i)||({}).propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}(e,r);return l.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:14,height:18,viewBox:"0 0 14 18",fill:"none","aria-labelledby":i},s),t?l.createElement("title",{id:i},t):null,n||(n=l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.709 6.653c-1.013-1.35-.05-3.278 1.64-3.278h9.303c1.688 0 2.652 1.928 1.64 3.278a3.33 3.33 0 00-.667 1.999V14a3.958 3.958 0 01-3.958 3.958H5.333A3.958 3.958 0 011.375 14V8.652a3.33 3.33 0 00-.666-1.999zm1.64-2.028a.799.799 0 00-.64 1.278 4.58 4.58 0 01.916 2.749V14a2.708 2.708 0 002.708 2.708h3.334A2.708 2.708 0 0011.375 14V8.652c0-.991.321-1.956.916-2.749a.799.799 0 00-.64-1.278H2.349z",fill:"#FF3B30"})),a||(a=l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.528 2.442A2.292 2.292 0 015.702.875h2.597c.987 0 1.862.631 2.174 1.567l.454 1.36a.625.625 0 01-1.186.396l-.454-1.36a1.042 1.042 0 00-.988-.713H5.702c-.449 0-.847.287-.988.712l-.454 1.36a.625.625 0 01-1.186-.395l.454-1.36zm1.806 5.1c.345 0 .625.28.625.625v5a.625.625 0 01-1.25 0v-5c0-.346.28-.625.625-.625zm3.333 0c.345 0 .625.28.625.625v5a.625.625 0 01-1.25 0v-5c0-.346.28-.625.625-.625z",fill:"#FF3B30"})))}},17253:function(e,t,i){"use strict";var n,a=i(67294),l=["title","titleId"];function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}t.Z=function(e){var t=e.title,i=e.titleId,o=function(e,t){if(null==e)return{};var i,n,a=function(e,t){if(null==e)return{};var i={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;i[n]=e[n]}return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)i=l[n],t.includes(i)||({}).propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}(e,l);return a.createElement("svg",r({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),t?a.createElement("title",{id:i},t):null,n||(n=a.createElement("path",{d:"M22.667 12.226a1.333 1.333 0 00-1.88 0L16 16.946l-4.72-4.72a1.334 1.334 0 10-1.88 1.893l5.654 5.653a1.332 1.332 0 001.893 0l5.72-5.653a1.332 1.332 0 000-1.893z",fill:"#242424"})))}},70777:function(e,t,i){"use strict";var n,a=i(67294),l=["title","titleId"];function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}t.Z=function(e){var t=e.title,i=e.titleId,o=function(e,t){if(null==e)return{};var i,n,a=function(e,t){if(null==e)return{};var i={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;i[n]=e[n]}return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)i=l[n],t.includes(i)||({}).propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}(e,l);return a.createElement("svg",r({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},o),t?a.createElement("title",{id:i},t):null,n||(n=a.createElement("path",{d:"M8.059 13.764l-3.658 2.03v.001c-.496.273-.837.235-1.025.124-.188-.11-.386-.39-.386-.954V4.398a2.402 2.402 0 012.395-2.395h7.23c1.32 0 2.396 1.08 2.402 2.396v10.566c0 .57-.198.85-.385.96-.187.11-.527.148-1.024-.129h0L9.95 13.765a1.945 1.945 0 00-.943-.228c-.317 0-.66.066-.948.227 0 0 0 0 0 0z",stroke:"#fff"})))}},75219:function(e,t,i){"use strict";var n,a,l=i(67294),r=["title","titleId"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}t.Z=function(e){var t=e.title,i=e.titleId,s=function(e,t){if(null==e)return{};var i,n,a=function(e,t){if(null==e)return{};var i={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;i[n]=e[n]}return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)i=l[n],t.includes(i)||({}).propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}(e,r);return l.createElement("svg",o({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i},s),t?l.createElement("title",{id:i},t):null,n||(n=l.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"#898989"})),a||(a=l.createElement("path",{d:"M13.293 1.41L8.056 6.646 7.703 7l.353.354 5.237 5.236-.703.703-5.236-5.237L7 7.703l-.354.353-5.236 5.237-.703-.703 5.237-5.236L6.297 7l-.353-.354L.707 1.41 1.41.707l5.236 5.237.354.353.354-.353L12.59.707l.703.703z",stroke:"#898989"})))}},63162:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/club/investidea",function(){return i(62185)}])},62185:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return e$},default:function(){return eZ}});var n=i(85893),a=i(62756),l=i(28677),r=i(11163),o=i(42377),s=i(67294),d=i(91263),c=i(85500),u=i(25198),p=i(81744),h=i(34265);let m={market:"",bondType:"",bondStatus:"",ideaFav:!1,sortIdea:""},x=[{value:"",apiValue:""},{value:"yield_desc",apiValue:"instrument_info.yield.desc"},{value:"yield_asc",apiValue:"instrument_info.yield.asc"},{value:"price_desc",apiValue:"instrument_info.price.desc"},{value:"price_asc",apiValue:"instrument_info.price.asc"},{value:"maturity_asc",apiValue:"instrument_info.maturity_date.asc"},{value:"maturity_desc",apiValue:"instrument_info.maturity_date.desc"}
1],v=[{key:"company",alignment:"left",maxWidth:"150px",width:"236px"},{key:"yield",sort:!0,alignment:"right",width:"110px"},{key:"price",sort:!0,alignment:"center",width:"129px"},{key:"maturity_date",sort:!0,alignment:"center",width:"110px"},{key:"amortization",alignment:"left",width:"100px"},{key:"offer",alignment:"left",width:"80px"},{key:"coupon_type",alignment:"left",width:"110px"},{key:"purchase_date",alignment:"center",width:"110px"}],f=e=>{if(!e)return null;let t=e.endsWith(".asc"),i=e.endsWith(".desc");if(!t&&!i)return null;let n=t?"ASC":"DESC";return e.startsWith("instrument_info.yield")?{field:"yield",direction:n}:e.startsWith("instrument_info.price")?{field:"price",direction:n}:e.startsWith("instrument_info.maturity_date")?{field:"maturity_date",direction:n}:null},g=(e,t)=>{let i={yield:"instrument_info.yield",price:"instrument_info.price",maturity_date:"instrument_info.maturity_date"}[e],n=t.toLowerCase();return i&&("asc"===n||"desc"===n)?"".concat(i,".").concat(n):""},y=e=>{let t=0;return e.market&&(t+=1),e.bondType&&(t+=1),e.bondStatus&&(t+=1),e.ideaFav&&(t+=1),t};var b=i(39595),w=i(80570),j=i(86045),_=i(16066);let T=e=>{let{news:t,companies:i,assetTab:a}=e,l=a===b.Zy.bonds;return(0,n.jsx)(_.W2,{children:null==t?void 0:t.map(e=>(0,n.jsx)(j.D,{news:e,companies:i,isBondsTab:l,assetTab:a},null==e?void 0:e.news_id))})};var k=i(23982);let C={[b.Zy.stocks]:"investideas.empty_title_stocks",[b.Zy.bonds]:"investideas.empty_title_bonds",[b.Zy.funds]:"investideas.empty_title_funds",[b.Zy.crypto]:"investideas.empty_title_crypto"},S=e=>{let{assetTab:t}=e,{t:i}=(0,l.$G)(p.d.CLUB);return(0,n.jsxs)(k.f,{children:[(0,n.jsx)(k.E,{src:"/club-images/feed/empty-my-feed.png",alt:"empty"}),(0,n.jsx)(o.Typography,{variant:[{variant:"header2-Bold",resolution:null},{variant:"header4-Bold",resolution:600}],colorName:"primary",marginBottom:8,textAlign:"center",children:i(C[t])}),(0,n.jsx)(o.Typography,{variant:[{variant:"paragraph-Medium",resolution:null},{variant:"description-Medium",resolution:600}],colorName:"fourth",textAlign:"center",children:i("investideas.empty_desc")})]})};var M=i(54335);let I=M.default.div.withConfig({componentId:"sc-b0e0a60-0"})(["display:flex;flex-direction:column;gap:20px;margin-bottom:12px;"]),N=M.default.div.withConfig({componentId:"sc-b0e0a60-1"})(["display:flex;flex-direction:column;gap:8px;"]),B=M.default.span.withConfig({componentId:"sc-b0e0a60-2"})(["font-size:14px;font-weight:600;line-height:20px;color:",";"],e=>{let{theme:t}=e;return t.text.primary}),O=M.default.div.withConfig({componentId:"sc-b0e0a60-3"})(["display:flex;justify-content:space-between;align-items:center;align-self:stretch;margin-bottom:12px;"]);var F=e=>{let{filters:t,setFilters:i}=e,{t:a}=(0,l.$G)(p.d.CLUB),r=(0,s.useRef)(null),d=(0,s.useMemo)(()=>[{label:a("investideas.bonds_filter_market_all"),value:""},{label:a("investideas.bonds_filter_market_ru"),value:"RU"},{label:a("investideas.bonds_filter_market_foreign"),value:"foreign"}],[a]),c=(0,s.useMemo)(()=>[{label:a("investideas.bonds_filter_type_all"),value:""},{label:a("investideas.bonds_filter_type_ofz"),value:"ofz"},{label:a("investideas.bonds_filter_type_corp"),value:"corp"}],[a]),u=(0,s.useMemo)(()=>[{label:a("investideas.bonds_filter_status_all"),value:""},{label:a("investideas.bonds_filter_status_active"),value:"active"},{label:a("investideas.bonds_filter_status_finish"),value:"finish"}],[a]);(0,s.useMemo)(()=>x.map(e=>({label:e.value?a("investideas.bonds_sort_".concat(e.value)):a("investideas.bonds_sort_default"),value:e.value})),[a]);let h=y(t);JSON.stringify(t),JSON.stringify(m);let v=(e,t)=>{i(i=>({...i,[e]:t}))};return(0,n.jsxs)(o.FilterButton,{ref:r,activeElements:h,size:"S",text:a("investideas.filter"),padding:"16px",widthDrop:307,heightDrop:800,withoutTextOnMobile:!0,children:[(0,n.jsxs)(O,{children:[(0,n.jsx)(o.Typography,{variant:"controls-SemiBold",colorName:"primary",children:a("investideas.filter")}),(0,n.jsx)(o.TextButton,{text:a("investideas.bonds_filter_hide"),onClick:()=>{var e;null===(e=r.current)||void 0===e||e.handleClose()}})]}),(0,n.jsxs)(I,{children:[(0,n.jsx)(o.FieldRow,{label:a("investideas.bonds_filter_market"),marginBottom:0,children:(0,n.jsx)(o.SelectInput,{name:"bondMarket",value:t.market,options:d,onChange:e=>v("market",e),placeholder:a("investideas.bonds_filter_market_all"),customPositionMenu:"static"})}),(0,n.jsx)(o.FieldRow,{label:a("investideas.bonds_filter_type"),marginBottom:0,children:(0,n.jsx)(o.SelectInput,{name:"bondType",value:t.bondType,options:c,onChange:e=>v("bondType",e),placeholder:a("investideas.bonds_filter_type_all"),closeMenuOnSelect:!0,customPositionMenu:"static"})}),(0,n.jsx)(o.FieldRow,{label:a("investideas.bonds_filter_status"),marginBottom:0,children:(0,n.jsx)(o.SelectInput,{name:"bondStatus",value:t.bondStatus,options:u,onChange:e=>v("bondStatus",e),placeholder:a("investideas.bonds_filter_status_all"),closeMenuOnSelect:!0,customPositionMenu:"static"})}),(0,n.jsxs)(N,{children:[(0,n.jsx)(B,{children:a("investideas.bonds_filter_additional")}),(0,n.jsx)(o.Checkbox,{checked:t.ideaFav,text:a("investideas.bonds_filter_favorites"),size:"M",onChange:e=>v("ideaFav",e)})]})]}),(0,n.jsx)(o.Button,{text:a("investideas.bonds_filter_reset"),onClick:()=>{i(m)},mode:"secondary",size:"M",width:"100%"})]})};let L=M.default.div.withConfig({componentId:"sc-2b64fc32-0"})(["display:flex;justify-content:space-between;align-items:center;padding:6px;.radio-container{width:100%;justify-content:space-between;}&:hover{border-radius:8px;background:",";}"],e=>{let{theme:t}=e;
1return t.statesBackground.tabsHover});var E=e=>{let{isBondsTab:t=!1,filterValue:i,setFilterValue:a,bondsFilters:r,setBondsFilters:d}=e,{t:c}=(0,l.$G)(p.d.CLUB),u=(0,s.useMemo)(()=>[{label:c("investideas.filter_option1"),value:""},{label:c("investideas.filter_option2"),value:"close_dt.null"},{label:c("investideas.filter_option3"),value:"close_dt.!null"}],[c]);return t?(0,n.jsx)(F,{filters:r,setFilters:d}):(0,n.jsx)(o.FilterButton,{activeElements:i?1:0,size:"S",text:c("investideas.filter"),withoutTextOnMobile:!0,children:u.map((e,t)=>(0,n.jsx)(L,{children:(0,n.jsx)(o.Radio,{text:e.label,isTextLeft:!0,size:"L",checked:i===e.value,value:e.value,name:e.value,onChange:a})},t))})};let $=(0,M.default)("div").withConfig({componentId:"sc-5b9db3e7-0"})(["position:relative;display:flex;justify-content:space-between;overflow:hidden;gap:36px;@media (max-width:800px){gap:0px;}"]),Z=(0,M.default)("div").withConfig({componentId:"sc-5b9db3e7-1"})(["display:flex;flex-direction:column;gap:8px;"]),P=(0,M.default)("div").withConfig({componentId:"sc-5b9db3e7-2"})(["display:flex;align-items:center;gap:12px;"]);(0,M.default)("div").withConfig({componentId:"sc-5b9db3e7-3"})(["& div{border-radius:30px;color:",";background:rgba(255,255,255,0.12);}"],e=>{let{theme:t}=e;return t.text.contrastThemed}),(0,M.default)("img").withConfig({componentId:"sc-5b9db3e7-4"})(["position:absolute;z-index:-1;object-fit:cover;right:0;top:0;"]);let z=()=>{let e=(0,o.useMediaQuery)(o.breakpoint.down(1375));return(0,n.jsx)($,{children:(0,n.jsxs)(Z,{children:[(0,n.jsx)(P,{children:(0,n.jsx)(o.Typography,{variant:[{resolution:null,variant:"header2-Bold"},{resolution:1060,variant:"header3-Bold"},{resolution:960,variant:"header2-Bold"},{resolution:760,variant:"header3-Bold"}],colorName:"primary",whiteSpace:"nowrap",tag:"h2",children:"Инвестидеи"})}),(0,n.jsx)(o.Typography,{variant:"text-Medium",colorName:"secondary",title:b.ju,maxWidth:e?655:800,children:b.ju})]})})};var R=i(73680),V=i(17253);let A=(0,M.default)("div").withConfig({componentId:"sc-ef40538a-0"})(["position:relative;display:flex;justify-content:space-between;align-items:center;gap:72px;padding:20px;border-radius:24px;background:",";margin-bottom:12px;@media (max-width:1100px){flex-direction:column;gap:16px;align-items:flex-start;}@media (max-width:600px){margin-bottom:8px;padding:12px;}"],e=>e.theme.background.content),D=(0,M.default)("div").withConfig({componentId:"sc-ef40538a-1"})(["display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%;max-width:520px;@media (max-width:1100px){max-width:100%;}@media (max-width:600px){gap:",";}"],e=>{let{$isOpen:t}=e;return t?"16px":"12px"}),W=(0,M.default)("div").withConfig({componentId:"sc-ef40538a-2"})(["display:flex;width:100%;max-width:528px;flex-direction:column;align-items:flex-start;gap:8px;@media (max-width:1100px){max-width:100%;}@media (max-width:600px){gap:6px;}"]),K=(0,M.default)("div").withConfig({componentId:"sc-ef40538a-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;align-self:stretch;@media (max-width:600px){gap:4px;}"]),U=(0,M.default)("div").withConfig({componentId:"sc-ef40538a-4"})(["display:flex;align-items:center;gap:2px;align-self:stretch;"]),G=(0,M.default)(V.Z).withConfig({componentId:"sc-ef40538a-5"})(["cursor:pointer;display:flex;justify-content:center;align-items:center;width:25px;height:25px;& path{fill:",";}",""],e=>e.theme.icons.primary,e=>{let{$isOpen:t}=e;return t&&(0,M.css)(["transform:rotate(180deg);"])}),H=(0,M.default)("div").withConfig({componentId:"sc-ef40538a-6"})(["display:flex;align-items:center;gap:12px;align-self:stretch;@media (max-width:1100px){gap:8px;flex-direction:row-reverse;}"]),J=(0,M.default)("div").withConfig({componentId:"sc-ef40538a-7"})(["display:flex;padding:10px 12px;align-items:flex-end;gap:4px;flex:1 0 0;border-radius:8px;background:",";position:relative;@media (max-width:600px){flex-direction:column-reverse;gap:10px;border-radius:14px;padding:10px 6px 10px 12px;align-items:flex-start;background:",";}"],e=>e.theme.statesBackground.tabsHover,e=>e.theme.background.secondary),Q=(0,M.default)("img").withConfig({componentId:"sc-ef40538a-8"})(["width:36px;height:36px;position:absolute;right:0px;bottom:0px;border-radius:0 0 8px 0;@media (max-width:600px){border-radius:0 0 14px 0;}"]),q=(0,M.default)("div").withConfig({componentId:"sc-ef40538a-9"})(["display:flex;justify-content:space-between;align-items:center;align-self:stretch;gap:12px;"]),X=(0,M.default)("div").withConfig({componentId:"sc-ef40538a-10"})(["width:100%;display:flex;height:8px;align-items:center;align-self:stretch;gap:3px;"]),Y=(0,M.default)("div").withConfig({componentId:"sc-ef40538a-11"})(["align-self:stretch;width:","%;background:",";border-radius:",";"],e=>{let{$width:t}=e;return t},e=>{let{$isMinus:t,theme:i}=e;return t?i.stroke.negative:i.stroke.positive},e=>{let{$isMinus:t}=e;return t?"40px 0 0 40px":"0 40px 40px 0"}),ee=e=>
1{let{countData:t,valuesItemsOptions:i,lineWidth:a}=e,{t:r}=(0,l.$G)(p.d.CLUB),s=(0,o.useMediaQuery)(o.breakpoint.down(1100));return(0,n.jsxs)(A,{children:[(0,n.jsxs)(D,{children:[(0,n.jsxs)(K,{children:[(0,n.jsx)(o.Typography,{variant:"header5-Bold",colorName:"primary",children:r("investideas.statistic_title")}),(0,n.jsx)(o.Typography,{variant:"description-Medium",colorName:"secondary",fontWeight:400,children:r("investideas.statistic_desc")})]}),s?(0,n.jsxs)(W,{children:[(0,n.jsxs)(q,{children:[(0,n.jsx)(o.Typography,{variant:"header3-SemiBold",colorName:"primary",valueNumber:null==t?void 0:t.proc_minus,children:(null==t?void 0:t.proc_minus)?"".concat((null==t?void 0:t.proc_minus)>0?"+":"-").concat((0,R.j)(null==t?void 0:t.proc_minus,!0,0),"%"):"—"}),(0,n.jsx)(o.Typography,{variant:"header3-SemiBold",colorName:"primary",valueNumber:null==t?void 0:t.proc_plus,children:(null==t?void 0:t.proc_plus)?"".concat((null==t?void 0:t.proc_plus)>0?"+":"-").concat((0,R.j)(null==t?void 0:t.proc_plus,!0,0),"%"):"—"})]}),(0,n.jsxs)(X,{children:[(0,n.jsx)(Y,{$width:a.minus,$isMinus:!0}),(0,n.jsx)(Y,{$width:a.plus,$isMinus:!1})]}),(0,n.jsxs)(q,{children:[(0,n.jsx)(o.Typography,{variant:"description-Medium",colorName:"primary",children:r("investideas.statistic_chart_minus")}),(0,n.jsx)(o.Typography,{variant:"description-Medium",colorName:"primary",children:r("investideas.statistic_chart_plus")})]})]}):(0,n.jsx)(H,{children:i.map((e,t)=>(0,n.jsxs)(J,{children:[(0,n.jsx)(o.Typography,{variant:"header6-SemiBold",colorName:"primary",children:e.value}),(0,n.jsx)(o.Typography,{variant:"caption-Medium",colorName:"secondary",children:e.title}),(0,n.jsx)(Q,{src:e.imgSrc,alt:"img"})]},t))})]}),s?(0,n.jsx)(H,{children:i.map((e,t)=>(0,n.jsxs)(J,{children:[(0,n.jsx)(o.Typography,{variant:"header6-SemiBold",colorName:"primary",children:e.value}),(0,n.jsx)(o.Typography,{variant:"caption-Medium",colorName:"secondary",children:e.title}),(0,n.jsx)(Q,{src:e.imgSrc,alt:"img"})]},t))}):(0,n.jsxs)(W,{children:[(0,n.jsxs)(q,{children:[(0,n.jsx)(o.Typography,{variant:"header3-SemiBold",colorName:"primary",valueNumber:null==t?void 0:t.proc_minus,children:(null==t?void 0:t.proc_minus)?"".concat((null==t?void 0:t.proc_minus)>0?"+":"-").concat((0,R.j)(null==t?void 0:t.proc_minus,!0,0),"%"):"—"}),(0,n.jsx)(o.Typography,{variant:"header3-SemiBold",colorName:"primary",valueNumber:null==t?void 0:t.proc_plus,children:(null==t?void 0:t.proc_plus)?"".concat((null==t?void 0:t.proc_plus)>0?"+":"-").concat((0,R.j)(null==t?void 0:t.proc_plus,!0,0),"%"):"—"})]}),(0,n.jsxs)(X,{children:[(0,n.jsx)(Y,{$width:a.minus,$isMinus:!0}),(0,n.jsx)(Y,{$width:a.plus,$isMinus:!1})]}),(0,n.jsxs)(q,{children:[(0,n.jsx)(o.Typography,{variant:"description-Medium",colorName:"primary",children:r("investideas.statistic_chart_minus")}),(0,n.jsx)(o.Typography,{variant:"description-Medium",colorName:"primary",children:r("investideas.statistic_chart_plus")})]})]})]})},et=e=>{let{countData:t,valuesItemsOptions:i,lineWidth:a}
1=e,[r,d]=(0,s.useState)(!1),{t:c}=(0,l.$G)(p.d.CLUB);return(0,n.jsxs)(A,{children:[(0,n.jsxs)(D,{$isOpen:r,children:[(0,n.jsxs)(K,{children:[(0,n.jsxs)(U,{children:[(0,n.jsx)(o.Typography,{variant:"header6-SemiBold",colorName:"primary",children:c("investideas.statistic_title")}),(0,n.jsx)(G,{$isOpen:r,onClick:()=>d(!r)})]}),(0,n.jsx)(o.Typography,{variant:"caption-Medium",colorName:"secondary",fontWeight:400,children:c("investideas.statistic_desc")})]}),(0,n.jsxs)(W,{children:[r&&(0,n.jsxs)(q,{children:[(0,n.jsx)(o.Typography,{variant:"header6-SemiBold",colorName:"primary",valueNumber:null==t?void 0:t.proc_minus,children:(null==t?void 0:t.proc_minus)?"".concat((null==t?void 0:t.proc_minus)>0?"+":"-").concat((0,R.j)(null==t?void 0:t.proc_minus,!0,2),"%"):"—"}),(0,n.jsx)(o.Typography,{variant:"header6-SemiBold",colorName:"primary",valueNumber:null==t?void 0:t.proc_plus,children:(null==t?void 0:t.proc_plus)?"".concat((null==t?void 0:t.proc_plus)>0?"+":"-").concat((0,R.j)(null==t?void 0:t.proc_plus,!0,2),"%"):"—"})]}),(0,n.jsxs)(X,{children:[(0,n.jsx)(Y,{$width:a.minus,$isMinus:!0}),(0,n.jsx)(Y,{$width:a.plus,$isMinus:!1})]}),r&&(0,n.jsxs)(q,{children:[(0,n.jsx)(o.Typography,{variant:"caption-Medium",colorName:"primary",children:c("investideas.statistic_chart_minus")}),(0,n.jsx)(o.Typography,{variant:"caption-Medium",colorName:"primary",children:c("investideas.statistic_chart_plus")})]})]})]}),r&&(0,n.jsx)(H,{children:i.map((e,t)=>(0,n.jsxs)(J,{children:[(0,n.jsx)(o.Typography,{variant:"header6-SemiBold",colorName:"primary",children:e.value}),(0,n.jsx)(o.Typography,{variant:"description-Regular",colorName:"primary",children:e.title.charAt(0).toUpperCase()+e.title.slice(1)}),(0,n.jsx)(Q,{src:e.imgSrc,alt:"img"})]},t))})]})},ei=(0,M.default)(o.Card).withConfig({componentId:"sc-3761a07e-0"})(["padding:20px;border-radius:20px;th:not(:first-child){white-space:nowrap;}"]);var en=i(13891),ea=i(34220),el=i(95027),er=i(3644),eo=i(44459),es=i(70777),ed=i(12382),ec=i(86671),eu=i(41522);let ep=M.default.div.withConfig({componentId:"sc-5457ffb2-0"})(["width:100%;max-width:160px;display:flex;justify-content:flex-start;align-items:center;gap:8px;text-align:start;position:relative;"]),eh=M.default.button.withConfig({componentId:"sc-5457ffb2-1"})(["padding-right:8px;& svg{width:20px;height:20px;}& path{transition:all 0.3s ",";transform-origin:center center;stroke:",";}&:hover{& path{stroke:",";fill:#6b5124;}}&:active{& path{transform:scale(0.85);fill:",";stroke:",";}}",""],o.AnimationFunctions.animation_1,e=>e.theme.stroke.contrast,e=>e.theme.icons.warring,e=>e.theme.icons.warring,e=>e.theme.icons.warring,e=>{let{$isActive:t}=e;return t&&(0,M.css)(["& path{fill:",";stroke:",";}&:hover{& path{fill:",";stroke:",";}}"],e=>e.theme.icons.warring,e=>e.theme.icons.warring,e=>e.theme.icons.warring,e=>e.theme.icons.warring)}),em=e=>{if(!e)return"—";let t=(0,ea.Z)(e);return(0,el.Z)(t)?(0,er.Z)(t,"dd.MM.yyyy"):"—"},ex=(e,t)=>!0===e?t("investideas.bonds_table_yes"):!1===e?t("investideas.bonds_table_no"):"—",ev=e=>{var t;let{rowData:i,columnKey:a,assetTab:r}=e,{t:d}=(0,l.$G)(p.d.CLUB),{idea:c,news_id:u,date:h}=null!=i?i:{},{instrument_info:m,currency:x,news_id:v}=null!=c?c:{},f=(0,en.CG)((0,eu.T)("super:coupon_type")),g=(0,s.useMemo)(()=>(0,eo.m)(f),[f]),y=(0,eo.w)(null==m?void 0:m.coupon_type,g),{dataNews:b,handleFav:j}=(0,ec.pJ)(i,!0,null==i?void 0:i.news_id),{is_fav:_}=b||{},T=null==m?void 0:m.yield,k=null==m?void 0:m.price,C=null!==(t=null!=x?x:null==m?void 0:m.currency)&&void 0!==t?t:"RUB",S=(null==m?void 0:m.name)||(null==m?void 0:m.tiker),M={company:(0,n.jsxs)(ep,{children:[(0,n.jsx)(eh,{$isActive:_,onClick:e=>{e.stopPropagation(),j()},children:(0,n.jsx)(es.Z,{})}),(0,n.jsx)(o.CompanyInfo,{logo:null==m?void 0:m.logo,firstLine:(null==m?void 0:m.tiker)||(null==m?void 0:m.isin),secondLine:S,link:(0,w.k9)(u||v,r)})]}),yield:(0,n.jsx)(o.Typography,{variant:"caption-Medium",colorName:"number"==typeof T&&T<0?"negative":"positive",tag:"p",valueNumber:T,whiteSpace:"nowrap",children:"number"==typeof T?"".concat(T>0?"+":"").concat((0,R.j)(T,!0,1),"%"):"—"}
1),price:(0,n.jsx)(o.TCellText,{nowrap:!0,children:"number"==typeof k?"".concat((0,R.j)(k,!0,1)," ").concat((0,ed.jK)(C)):"—"}),maturity_date:(0,n.jsx)(o.TCellText,{nowrap:!0,children:em(null==m?void 0:m.maturity_date)}),amortization:(0,n.jsx)(o.TCellText,{nowrap:!0,children:ex(null==m?void 0:m.has_amorts,d)}),offer:(0,n.jsx)(o.TCellText,{nowrap:!0,children:ex(null==m?void 0:m.has_offers,d)}),coupon_type:(0,n.jsx)(o.TCellText,{nowrap:!0,children:y}),purchase_date:(0,n.jsx)(o.TCellText,{nowrap:!0,children:em(h)})};return(0,n.jsx)(n.Fragment,{children:M[a]})},ef=e=>{var t,i;let{tableData:a,isLoading:r,bondsFilters:d,setBondsFilters:c,assetTab:u}=e,{t:h}=(0,l.$G)(p.d.CLUB),m=(0,s.useMemo)(()=>v.map(e=>({...e,title:h("investideas.bonds_table_".concat(e.key))})),[h]),x=f(d.sortIdea);return(0,n.jsx)(ei,{children:(0,n.jsx)(o.Table,{data:a||[],columns:m,stickyFirstColumn:!0,isLoading:r,customSort:{onSort:(e,t)=>{let i=t?g(e,t):"";c(e=>({...e,sortIdea:i}))},activeSortField:null!==(t=null==x?void 0:x.field)&&void 0!==t?t:null,activeSortDirection:null!==(i=null==x?void 0:x.direction)&&void 0!==i?i:null},tCellRenderer:e=>{let{rowData:t,columnKey:i}=e;return(0,n.jsx)(ev,{rowData:t,columnKey:i,assetTab:u},i)}})})},eg=(0,M.default)(o.Card).withConfig({componentId:"sc-9b1d687a-0"})(["padding:20px;border-radius:20px;"]);var ey=i(29396),eb=i(94945);let ew=M.default.div.withConfig({componentId:"sc-116a5709-0"})(["width:100%;max-width:160px;display:flex;justify-content:flex-start;align-items:center;gap:8px;text-align:start;position:relative;"]),ej=(0,M.default)("div").withConfig({componentId:"sc-116a5709-1"})(["position:absolute;top:0;left:0;background:",";backdrop-filter:blur(6px);width:100%;height:100%;width:calc(100% + 12px);height:calc(100% + 12px);margin:-6px;"],e=>{let{$isLight:t}=e;return t?"rgba(255, 255, 255, 0.64)":"rgba(32, 32, 32, 0.64)"}),e_=M.default.button.withConfig({componentId:"sc-116a5709-2"})(["padding-right:8px;& svg{width:20px;height:20px;}& path{transition:all 0.3s ",";transform-origin:center center;stroke:",";}&:hover{& path{stroke:",";fill:#6b5124;}}&:active{& path{transform:scale(0.85);fill:",";stroke:",";}}",""],o.AnimationFunctions.animation_1,e=>e.theme.stroke.contrast,e=>e.theme.icons.warring,e=>e.theme.icons.warring,e=>e.theme.icons.warring,e=>{let{isActive:t}=e;return t&&(0,M.css)(["& path{fill:",";stroke:",";}&:hover{& path{fill:",";stroke:",";}}"],e=>e.theme.icons.warring,e=>e.theme.icons.warring,e=>e.theme.icons.warring,e=>e.theme.icons.warring)});M.default.div.withConfig({componentId:"sc-116a5709-3"})(["display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;"]),M.default.div.withConfig({componentId:"sc-116a5709-4"})(["display:flex;align-items:center;justify-content:space-between;"]),M.default.div.withConfig({componentId:"sc-116a5709-5"})(["display:flex;flex-direction:column;align-items:flex-start;"]),M.default.div.withConfig({componentId:"sc-116a5709-6"})(["display:flex;justify-content:space-between;gap:8px;"]),M.default.span.withConfig({componentId:"sc-116a5709-7"})(["display:inline-block;min-width:8px;min-height:8px;border-radius:50%;"]);let eT=M.default.div.withConfig({componentId:"sc-116a5709-8"})(["display:flex;justify-content:center;align-items:center;gap:6px;position:relative;& > p{padding:4px 8px;background:",";border-radius:8px;}"],e=>e.theme.background.positiveTint),ek=(0,M.default)(eT).withConfig({componentId:"sc-116a5709-9"})(["position:relative;& > p{background:",";}"],e=>e.theme.background.negativeTint);M.default.div.withConfig({componentId:"sc-116a5709-10"})(["& > span{padding:4px 8px;width:120px;background:",";color:",";border-radius:8px;text-align:center;}"],e=>e.theme.interactiveButtons.successBackground,e=>e.theme.text.positive),M.default.div.withConfig({componentId:"sc-116a5709-11"})(["& > span{width:120px;padding:4px 8px;background:",";color:",";border-radius:8px;text-align:center;}"],e=>e.theme.background.warningTint,e=>e.theme.text.warning),M.default.div.withConfig({componentId:"sc-116a5709-12"})(["& > span{width:120px;padding:4px 8px;background:",";color:",";border-radius:8px;text-align:center;}"],e=>e.theme.background.negativeTint,e=>e.theme.text.negative);let eC=e=>{let{rowData:t,columnKey:i,assetTab:a}=e,{idea:l}=null!=t?t:{},{instrument_info:r,news_id:d,take_profit:c,buy:u,currency:p,risk:h,stop_loss:m,now_delta:x,period:v,take_profit_mid:f,light_info:g}=null!=l?l:{},{hasAccess:y}=(0,ey.eS)(),j=(null==r?void 0:r.name)||(null==r?void 0:r.tiker),_=c/u*100-100,T=f/u*100-100,k=m/u*100-100,C=(null==r?void 0:r.price)/u*100-100,S=g?_-g.percent:0,I=(0,eb.W9)(l),N=(0,M.useTheme)(),{dataNews:B,handleFav:O}
1=(0,ec.pJ)(t,!0,null==t?void 0:t.news_id),{is_fav:F}=B||{},L=(0,s.useMemo)(()=>h===b.E0.A?N.interactiveButtons.successText:h===b.E0.B?N.interactiveButtons.warningText:h===b.E0.C?N.interactiveButtons.criticalText:void 0,[h,N]),E=!y&&!I,{mode:$}=(0,o.useMode)(),Z="light"===$,P={light:(0,n.jsxs)(ew,{children:[(0,n.jsx)(e_,{isActive:F,onClick:e=>{e.stopPropagation(),O()},children:(0,n.jsx)(es.Z,{})}),(0,n.jsx)(o.CompanyInfo,{logo:null==r?void 0:r.logo,firstLine:null==r?void 0:r.tiker,secondLine:j,link:(0,w.k9)(d,a)}),E&&(0,n.jsx)(ej,{$isLight:Z})]}),take_profit:(0,n.jsxs)(o.Typography,{variant:"caption-Medium",colorName:"primary",tag:"p",valueNumber:S,children:["".concat(S>0?"+":""),(0,R.j)(S,!0,2),"%"]}),plan:(0,n.jsxs)(o.TCellText,{children:[(0,n.jsxs)(o.Typography,{variant:"caption-Medium",colorName:"secondary",tag:"span",whiteSpace:"nowrap",children:[(null==x?void 0:x.months)?"".concat(x.months," мес. "):"",(null==x?void 0:x.weeks)?"".concat(x.weeks," нед. "):"",(null==x?void 0:x.days)?"".concat(x.days," дн."):"",v?"/":"--"]}),v&&(0,n.jsx)("br",{}),(0,n.jsx)(o.Typography,{variant:"caption-Medium",colorName:"primary",tag:"span",children:v})]}),risk:(0,n.jsx)(o.Typography,{variant:"caption-Medium",color:L,tag:"p",children:h?b.ei[h]:"-"}),entry_price:(0,n.jsxs)(o.TCellText,{nowrap:!0,children:[(0,R.j)(u,!0)," ",(0,ed.jK)(p)]}),percent:C<0?(0,n.jsxs)(ek,{children:[(0,n.jsxs)(o.TCellText,{nowrap:!0,children:[(0,R.j)(null==r?void 0:r.price,!0)," ",(0,ed.jK)(p)]}),(0,n.jsxs)(o.Typography,{variant:"caption-Medium",colorName:"negative",whiteSpace:"nowrap",tag:"p",children:["".concat(C>0?"+":""),String(Math.round(C)),"%"]})]}):(0,n.jsxs)(eT,{children:[(0,n.jsxs)(o.TCellText,{nowrap:!0,children:[(0,R.j)(null==r?void 0:r.price,!0)," ",(0,ed.jK)(p)]}),(0,n.jsxs)(o.Typography,{variant:"caption-Medium",colorName:"positive",whiteSpace:"nowrap",tag:"p",children:["".concat(C>0?"+":""),String(Math.round(C)),"%"]})]}),goalOne:-100===T?(0,n.jsx)(o.TCellText,{children:"-"}):T<0?(0,n.jsxs)(ek,{children:[(0,n.jsxs)(o.TCellText,{nowrap:!0,children:[(0,R.j)(f,!0)," ",(0,ed.jK)(p)]}),(0,n.jsxs)(o.Typography,{variant:"caption-Medium",colorName:"negative",whiteSpace:"nowrap",tag:"p",children:["".concat(T>0?"+":""),String(Math.round(T)),"%"]}),E&&(0,n.jsx)(ej,{$isLight:Z})]}):(0,n.jsxs)(eT,{children:[(0,n.jsxs)(o.TCellText,{nowrap:!0,children:[(0,R.j)(f,!0)," ",(0,ed.jK)(p)]}),(0,n.jsxs)(o.Typography,{variant:"caption-Medium",colorName:"positive",whiteSpace:"nowrap",tag:"p",children:["".concat(T>0?"+":""),String(Math.round(T)),"%"]}),E&&(0,n.jsx)(ej,{$isLight:Z})]}),goalTwo:_<0?(0,n.jsxs)(ek,{children:[(0,n.jsxs)(o.TCellText,{nowrap:!0,children:[(0,R.j)(_,!0)," ",(0,ed.jK)(p)]}),(0,n.jsxs)(o.Typography,{variant:"caption-Medium",colorName:"negative",whiteSpace:"nowrap",tag:"p",children:["".concat(_>0?"+":""),String(Math.round(_)),"%"]}),E&&(0,n.jsx)(ej,{$isLight:Z})]}):(0,n.jsxs)(eT,{children:[(0,n.jsxs)(o.TCellText,{nowrap:!0,children:[(0,R.j)(c,!0)," ",(0,ed.jK)(p)]}),(0,n.jsxs)(o.Typography,{variant:"caption-Medium",colorName:"positive",whiteSpace:"nowrap",tag:"p",children:["".concat(_>0?"+":""),String(Math.round(_)),"%"]}),E&&(0,n.jsx)(ej,{$isLight:Z})]}),stop_loss:k<0?(0,n.jsxs)(ek,{children:[(0,n.jsx)(o.TCellText,{nowrap:!0,children:"".concat(m," ").concat((0,ed.jK)(p))}),!!k&&(0,n.jsxs)(o.Typography,{variant:"caption-Medium",colorName:"negative",tag:"p",children:[(0,R.j)(Math.round(k)),"%"]}),E&&(0,n.jsx)(ej,{$isLight:Z})]}):(0,n.jsxs)(eT,{children:[(0,n.jsx)(o.TCellText,{nowrap:!0,children:"".concat(m," ").concat((0,ed.jK)(p))}),!!k&&(0,n.jsxs)(o.Typography,{variant:"caption-Medium",colorName:"positive",tag:"p",children:[(0,R.j)(Math.round(k)),"%"]}),E&&(0,n.jsx)(ej,{$isLight:Z})]})};return(0,n.jsx)(n.Fragment,{children:P[i]})},eS=e=>{let{tableData:t,isLoading:i,assetTab:a}=e,{query:l,push:s,pathname:d}=(0,r.useRouter)();return(0,n.jsx)(eg,{children:(0,n.jsx)(o.Table,{data:t||[],columns:b.Z0,stickyFirstColumn:!0,isLoading:i,customSort:{onSort:(e,t)=>{t?(l.sortField=e,l.sortType=t):(delete l.sortField,delete l.sortType),s({pathname:d,query:{...l}},null,{scroll:!1})},activeSortField:l.sortField?String(l.sortField):null,activeSortDirection:l.sortType?Str
1ing(l.sortType):null},tCellRenderer:e=>{let{rowData:t,columnKey:i}=e;return(0,n.jsx)(eC,{rowData:t,columnKey:i,assetTab:a},i)}})})},eM=(0,M.default)("div").withConfig({componentId:"sc-a583b80d-0"})(["width:100%;display:flex;flex-direction:column;gap:32px;@media (max-width:743px){gap:28px;}"]),eI=(0,M.default)("div").withConfig({componentId:"sc-a583b80d-1"})(["display:flex;align-items:center;gap:12px;justify-content:space-between;> :nth-child(3){height:34px;}"]),eN=(0,M.default)("div").withConfig({componentId:"sc-a583b80d-2"})(["display:flex;align-items:center;gap:4px;flex:1 0 0;"]);(0,M.default)("div").withConfig({componentId:"sc-a583b80d-3"})(["display:flex;align-items:flex-end;justify-content:space-between;@media (max-width:600px){padding:0 10px;}"]);let eB=(0,M.default)("div").withConfig({componentId:"sc-a583b80d-4"})(["display:flex;justify-content:center;align-items:center;"]),eO=(0,M.default)("div").withConfig({componentId:"sc-a583b80d-5"})(["position:relative;display:flex;flex-direction:column;gap:16px;"]),eF=(0,M.default)("div").withConfig({componentId:"sc-a583b80d-6"})(["display:flex;width:100%;"]),eL=()=>{var e,t;let{query:i,replace:a,pathname:x,isReady:v}=(0,r.useRouter)(),[f,g]=(0,s.useState)(b.$n[0].value),[y,j]=(0,s.useState)(b.Zy.stocks),[_,k]=(0,s.useState)(""),[C,M]=(0,s.useState)(m);(0,s.useEffect)(()=>{var e;v&&(j(null!==(e=(0,w.bC)(i.assetTab))&&void 0!==e?e:b.Zy.stocks),k(""),M(m))},[v,i.assetTab]);let I=(0,o.useMediaQuery)(o.breakpoint.down(600)),N=y===b.Zy.stocks,B=y===b.Zy.bonds,O=y===b.Zy.funds,F=y===b.Zy.crypto,L=N||O||F,{t:$}=(0,l.$G)(p.d.CLUB),Z=(0,s.useMemo)(()=>[{label:$("investideas.tab_stocks"),value:b.Zy.stocks},{label:$("investideas.tab_bonds"),value:b.Zy.bonds},{label:$("investideas.tab_crypto"),value:b.Zy.crypto},{label:$("investideas.tab_funds"),value:b.Zy.funds}],[$]),P=(0,s.useCallback)(e=>(0,h.DD)({section:d.z.INVESTIDEA,limit:18,ustate:0,filter_idea:B?(0,b.dF)(b.Zy.bonds):(0,b.dF)(y,_||void 0),idea_market:B&&C.market||void 0,idea_bond_type:B&&C.bondType||void 0,idea_bond_status:B&&C.bondStatus||void 0,idea_fav:B&&C.ideaFav?"1":void 0,sort_idea:B&&C.sortIdea||void 0,idea_stats:B?"0":void 0,_next:e}),[_,y,B,C]),[R]=(0,c.cY)(),{data:V,isLoading:A}=(0,c.iC)(P()),{ref:D}=(0,u.S)({onIntersect:()=>R(P(null==V?void 0:V._next)),enabled:!!(null==V?void 0:V._next)&&!A}),W=(0,s.useMemo)(()=>{if(!N&&!O){var e,t;return null!==(t=null==V?void 0:null===(e=V.data)||void 0===e?void 0:e.length)&&void 0!==t?t:0}let i=null==V?void 0:V.count_close;if(!i)return 0;let n=["proc_minus","proc_plus"],a=e=>"number"==typeof e,l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object.entries(i).filter(t=>{let[i]=t;return![...n,...e].includes(i)}).reduce((e,t)=>{let[,i]=t;return e+(a(i)?i:0)},0)};return"close_dt.null"===_?a(i.active)?i.active:0:"close_dt.!null"===_?l(["active"]):l()},[null==V?void 0:V.count_close,null==V?void 0:null===(e=V.data)||void 0===e?void 0:e.length,_,N,O]),K=(0,s.useMemo)(()=>{var e,t;return[{value:null==V?void 0:null===(e=V.count_close)||void 0===e?void 0:e.close_plus,title:$("investideas.statistic_plus"),imgSrc:"/club-images/investidea/plus-img.png"},{value:null==V?void 0:null===(t=V.count_close)||void 0===t?void 0:t.close_minus,title:$("investideas.statistic_minus"),imgSrc:"/club-images/investidea/minus-img.png"}]},[$,null==V?void 0:V.count_close]),U=(0,s.useMemo)(()=>{var e,t;let i=Math.abs((null==V?void 0:null===(e=V.count_close)||void 0===e?void 0:e.proc_minus)||0),n=Math.abs((null==V?void 0:null===(t=V.count_close)||void 0===t?void 0:t.proc_plus)||0),a=i+n;return 0===a?{minus:0,plus:0}:{minus:i/a*100,plus:n/a*100}},[null==V?void 0:V.count_close]),G=!A&&!(null==V?void 0:null===(t=V.data)||void 0===t?void 0:t.length);return(0,n.jsxs)(eM,{children:[(0,n.jsx)(z,{}),(0,n.jsxs)(eO,{children:[(0,n.jsx)(eF,{children:(0,n.jsx)(o.Tabs,{options:Z,selectedValue:y,onChange:e=>{if(e!==y){j(e),k(""),M(m);let t={...i};e===b.Zy.stocks?delete t.assetTab:t.assetTab=e,a({pathname:x,query:t},void 0,{shallow:!0})}},indent:0})}),L&&(I?(0,n.jsx)(et,{countData:null==V?void 0:V.count_close,valuesItemsOptions:K,lineWidth:U}
1):(0,n.jsx)(ee,{countData:null==V?void 0:V.count_close,valuesItemsOptions:K,lineWidth:U})),(0,n.jsxs)(eI,{children:[(0,n.jsxs)(eN,{children:[(0,n.jsx)(o.Typography,{variant:[{resolution:null,variant:"header4-SemiBold"},{resolution:600,variant:"header5-SemiBold"}],colorName:"primary",children:$("investideas.page_title")}),(0,n.jsx)(o.Typography,{variant:[{resolution:null,variant:"header4-SemiBold"},{resolution:600,variant:"header5-SemiBold"}],colorName:"tertiary",children:W})]}),(0,n.jsx)(o.SegmentControl,{options:b.$n,onChange:e=>{e!==f&&g(e)},selectedValue:f,size:"M"}),(0,n.jsx)(E,{isBondsTab:B,filterValue:_,setFilterValue:k,bondsFilters:C,setBondsFilters:M})]}),A?(0,n.jsx)(eB,{children:(0,n.jsx)(o.Spinner,{size:"M"})}):f===b.N7.lenta&&(G?(0,n.jsx)(S,{assetTab:y}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T,{news:null==V?void 0:V.data,companies:null==V?void 0:V.companies,assetTab:y}),(0,n.jsx)("div",{ref:D})]})),f===b.N7.table&&(G&&!A?(0,n.jsx)(S,{assetTab:y}):(0,n.jsxs)(n.Fragment,{children:[B?(0,n.jsx)(ef,{tableData:null==V?void 0:V.data,isLoading:A,bondsFilters:C,setBondsFilters:M,assetTab:y}):(0,n.jsx)(eS,{tableData:null==V?void 0:V.data,isLoading:A,assetTab:y}),(0,n.jsx)("div",{ref:D})]}))]})]})};var eE=i(95294),e$=!0;function eZ(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eE.j,{title:"Новые инвестиционные идеи для вашего портфеля - Клуб | PRO.FINANSY",description:"Откройте для себя лучшие инвестиционные идеи в клубе по финансовой грамотности. Развивайте свой инвестиционный портфель с помощью профессиональных рекомендаций."}),(0,n.jsx)(eL,{})]})}eZ.getLayout=function(e){return(0,n.jsx)(a.xt,{children:e})}},24620:function(e,t,i){"use strict";i.d(t,{W:function(){return n}});let n=e=>({"&::-webkit-scrollbar":{width:"4px",height:"4px"},"&::-webkit-scrollbar-track":{background:e.background.secondary,borderRadius:"12px"},"&::-webkit-scrollbar-thumb":{background:e.stroke.secondary,borderRadius:"12px"}})},23982:function(e,t,i){"use strict";i.d(t,{E:function(){return l},f:function(){return a}});var n=i(54335);let a=n.default.div.withConfig({componentId:"sc-be7c3e3e-0"})(["width:100%;height:calc(100vh - 260px);display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1 0 0;align-self:stretch;@media (max-width:600px){padding:0 18px;}"]),l=n.default.img.withConfig({componentId:"sc-be7c3e3e-1"})(["width:264px;height:255px;flex-shrink:0;margin-bottom:20px;@media (max-width:600px){width:178px;height:171px;}"])},44459:function(e,t,i){"use strict";i.d(t,{m:function(){return n},w:function(){return a}});let n=e=>{if(!(null==e?void 0:e.length))return[];let t=e[0];return"object"==typeof t&&null!==t&&"code"in t?e.map(e=>({id:Number(e.id),code:String(e.code),name:String(e.name)})):e.map(e=>({id:Number(e[0]),code:String(e[1]),name:String(e[2])}))},a=function(e){var t;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e)return"—";let n=i.find(t=>t.code===e);return null!==(t=null==n?void 0:n.name)&&void 0!==t?t:e}},25198:function(e,t,i){"use strict";i.d(t,{S:function(){return a}});var n=i(67294);let a=e=>{let{onIntersect:t,onUnIntersect:i,enabled:a=!0}=e,l=(0,n.useRef)();return{ref:(0,n.useCallback)(e=>{l.current&&l.current.disconnect(),l.current=new IntersectionObserver(e=>{let n=e[0];(null==n?void 0:n.isIntersecting)&&a?t():n.isIntersecting||null==i||i()}),e&&l.current.observe(e)},[a,t,i])}}},92939:function(e,t,i){"use strict";i.d(t,{A:function(){return n}});let n=(e,t)=>t[e%100>4&&e%100<20?2:[2,0,1,1,1,2][e%10<5?Math.abs(e)%10:5]]}},function(e){e.O(0,[9382,6310,7536,9045,5074,815,4119,3817,2647,3988,5706,2756,6045,2888,9774,179],function(){return e(e.s=63162)}),_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.