"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[287],{9182:function(n,t,e){e.d(t,{J:function(){return a}});var r=e(4033),i=e(2265),o=e(4601),u=e.n(o);function a(){let n=(0,r.useParams)(),t=(0,r.usePathname)();return(0,i.useCallback)(e=>{let{prefix:r,element:i,name:o,index:a}=e,c=t.split("/").filter(n=>n).map(t=>{var e;return null!==(e=Object.keys(n).find(e=>n[e]===t))&&void 0!==e?e:t});c.unshift("bonds");let l=c.join("-"),f=u()(o),d=void 0!==a?"-".concat(function(n){if(Number.isNaN(n)||n<0)throw Error("Incorrect value '".concat(n,"' for the property 'index'. Must be a number and >= 0}"));return n}(a)):"";return"".concat(r?"".concat(r,"-"):"").concat(l,"-").concat(i,"-").concat(f).concat(d)},[n,t])}},7241:function(n,t,e){var r,i,o,u,a,c,l,f,d,s,p,b,g,v,m,R;e.d(t,{as:function(){return r},$i:function(){return o},xJ:function(){return l},R0:function(){return u},X_:function(){return c},hq:function(){return a}}),(d=r||(r={})).Repeated="POVT_OBR",d.InPlacement="V_RAZM",d.Placed="RAZM",d.Suspended="PRIOST_OBR",d.Repaid="POG",(s=i||(i={})).Government="GOVERNMENT",s.Corporate="CORPORATE",(p=o||(o={})).Fix="FIX",p.Var="VAR",(b=u||(u={})).Rating="rating",b.CouponType="couponType",b.FundingDays="fundingDays",(g=a||(a={})).Rate="maxCouponPaymentSizePercent",g.RedemptionDate="redemptionDate",(v=c||(c={})).Asc="ASC",v.Desc="DESC",(m=l||(l={})).Form="form",m.Link="link",m.Header="header",m.Breadcrumbs="breadcrumbs",m.Image="image",m.Button="button",m.Dropdown="dropdown",m.Slider="slider",m.Switcher="switcher",m.Banner="banner",m.Checkbox="checkbox",m.Radiobutton="radiobutton",m.Text="text",m.List="list",m.Block="block",m.Collapse="collapse",m.Chart="chart",m.Modal="modal",m.Table="table",m.Icon="icon",m.Chips="chips",m.Tile="tile",m.Caption="caption",m.Input="input",m.Tabs="tabs",m.Toggle="toggle",m.Select="select",m.Drawer="drawer",m.Hint="hint",m.Tag="tag",m.Badge="badge",m.Popup="popup",m.SegmentedControl="segmentedcontrol",(R=f||(f={})).Header="header",R.Journal="journal",R.Support="support",R.Faq="faq",R.Search="search",R.Footer="footer"},1322:function(n,t,e){e.d(t,{bz:function(){return o},mD:function(){return p},RH:function(){return u},uC:function(){return s},pY:function(){return r},pM:function(){return f},Tk:function(){return d},qW:function(){return a},jW:function(){return c},Wx:function(){return l}});let r="/invest/bonds";var i=e(7241);let o="Любой",u={filter:[],sorting:{[i.hq.Rate]:i.X_.Desc}},a=[{id:i.$i.Var+i.$i.Fix,label:o},{id:i.$i.Var,label:"Плавающая"},{id:i.$i.Fix,label:"Фиксированная"}],c=[{id:i.X_.Desc,label:"По убыванию"},{id:i.X_.Asc,label:"По возрастанию"}],l=[{value:i.hq.Rate,label:"По ставке"},{value:i.hq.RedemptionDate,label:"По дате погашения"}],f=[{id:"inPlacement",label:"В размещении",eventActionSlug:"v_razmeshenii"},{id:"soldOut",label:"Раскупленные",eventActionSlug:"raskuplennye"}],d=[{id:"count",label:"По количеству"},{id:"amount",label:"По сумме"}],s="RU000A10DWN9",p="RU000A10E2A5"},8774:function(n,t,e){e.d(t,{Q:function(){return o}});var r=e(8102),i=e(7241);function o(n){let{couponType:t,minCouponPaymentSizePercent:e,maxCouponPaymentSizePercent:o,nearestCouponPaymentSizePercent:u=0}=n;return t===i.$i.Fix?e===o?(0,r.og)(e):"".concat((0,r.og)(e)," - ").concat((0,r.og)(o)):(0,r.og)(u)}},5395:function(n,t,e){e.d(t,{p:function(){return o},t:function(){return u}});var r=e(7453),i=e(5298);function o(n,t){let{format:e="dd.MM.yy"}=null!=t?t:{};try{if("string"==typeof n)return(0,r.Z)(new Date(n),e,{locale:i.Z});return(0,r.Z)(n,e,{locale:i.Z})}catch(t){return n}}function u(n){return o(n,{format:"dd.MM.yyyy"})}},3871:function(n,t,e){e.d(t,{ve:function(){return d},Ck:function(){return C},QO:function(){return r.Q},p6:function(){return o.p},tm:function(){return o.t},WF:function(){return h},zM:function(){return a},SJ:function(){return l},yx:function(){return s},Tl:function(){return R},Nw:function(){return y},lt:function(){return i},w2:function(){return g},Fe:function(){return b},Nj:function(){return p},kP:function(){return m},ug:function(){return v}});var r=e(8774);function i(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return+n.toFixed(t)}var o=e(5395),u=e(7241);function a(n){let{couponType:t,cmsRate:e=""}=n;return[{text:t===u.$i.Fix?"Фиксированная ставка":"Плавающая ставка ".concat(e)}]}var c=e(3261);function l(n){let t=(0,c.env)(n);if(void 0===t&&window.__ENV&&Object.keys(window.__ENV).length>0)throw Error("".concat(n," is undefined"));return t}var f=e(1322);function d(n){return n.slice(4)}function s(n,t){return[{id:"couponType",label:"Тип ставки: ".concat(t)},{id:"rating",label:"Рейтинг: ".concat(n)}]}function p(n,t){return{...n,filter:[...n.filter.filter(n=>n.field!==u.R0.Rating),...t!==f.bz?[{field:u.R0.Rating,values:[t]}]:[]]}}function b(n,t){return{...n,filter:[...n.filter.filter(n=>n.field!==u.R0.FundingDays),...t!==f.bz?[{field:u.R0.FundingDays,values:[d(t)]}]:[]]}}function g(n,t){return{...n,filter:[...n.filter.filter(n=>n.field!==u.R0.CouponType),...t!==f.bz?[{field:u.R0.CouponType,values:[f.qW.find(n=>{let{label:e}=n;return t===e}).id]}]:[]]}}function v(n,t){let e=Object.values(n.sorting)[0];return{...n,sorting:{[t]:e}}}function m(n,t){let e=Object.keys(n.sorting)[0],r=t?u.X_.Desc:u.X_.Asc;return{...n,sorting:{[e]:r}}}function R(n){return"".concat(l("NEXT_PUBLIC_S3_ASSETS"),"/investment/bonds/logo-brandmark-bond-").concat(n,".svg")}function h(n,t){var e;let r=null==t?void 0:null===(e=t.details)||void 0===e?void 0:e[n];return[...(null==r?void 0:r.issueParams)?[{id:1,label:"Параметры выпуска",data:r.issueParams}]:[],...(null==r?void 0:r.emitent)?[{id:2,label:"Об эмитенте",data:r.emitent}]:[],...(null==r?void 0:r.buyReasons)?[{id:3,label:"Почему стоит купить",data:r.buyReasons}]:[]]}function y(n){let t=["br","b","i","strong","em","p","div","span","a"],e=n.replace(/<\/?([a-zA-Z]+)(\s[^>]*)?>/g,(n,e)=>t.includes(e.toLowerCase())?n:"");return e}function C(n){let{question:t,answer:e}=n;return{title:t,content:e.replace(/<[^>]*>/g,"")}}}}]);