(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4726],{33169:function(e,t,a){Promise.resolve().then(a.bind(a,53417)),Promise.resolve().then(a.bind(a,69767)),Promise.resolve().then(a.bind(a,58736))},84364:function(e,t,a){"use strict";a.d(t,{c:function(){return r},w:function(){return c}});var n=a(99376),i=a(42586),l=a(49090),s=a(28864),o=a(17227);function r(e){var t,a,n,s;let{bond:r,isCountShow:c,count:d=0,amount:u=0,cmsData:m}=e,p=(0,i.useTranslations)();return[{key:p("sc-bonds.detail.calculator.conditions.price.key"),value:(0,l.lb)((0,o.b3)(null===(t=r.product.productPrice)||void 0===t?void 0:t.total)),tooltip:null!==(n=null==m?void 0:m.priceHint)&&void 0!==n?n:p("sc-bonds.detail.calculator.conditions.price.hint")},{key:p("sc-bonds.detail.calculator.conditions.rate-with-ndfl.key"),value:(0,o.QO)({couponType:r.product.couponType,minCouponPaymentSizePercent:r.product.couponEventsData.minCouponPaymentSizePercentAfterNdfl,maxCouponPaymentSizePercent:r.product.couponEventsData.maxCouponPaymentSizePercentAfterNdfl,nearestCouponPaymentSizePercent:null===(a=r.product.nearestCoupon)||void 0===a?void 0:a.paymentSizePercentAfterNdfl}),tooltip:null!==(s=null==m?void 0:m.rateWithNdflHint)&&void 0!==s?s:p("sc-bonds.detail.calculator.conditions.rate-with-ndfl.hint")},{key:p("sc-bonds.detail.calculator.conditions.redemption-date.key"),value:(0,o.tm)(r.product.redemptionDate)},c?{key:p("sc-bonds.detail.calculator.conditions.order-sum.key"),value:(0,l.lb)(u)}:{key:p("sc-bonds.detail.calculator.conditions.bonds-count.key"),value:"".concat((0,o.dN)(d)," шт")}]}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(0,i.useTranslations)(),r=new URLSearchParams((0,n.useSearchParams)().toString()),c={sum:(0,s.a)({bond:e,count:t}),type:"count",amount:t,profit:e.product.couponEventsData.minCouponPaymentSizePercent,date:(0,o.p6)(e.product.redemptionDate),name:e.product.name,code:e.product.issuerCode,label:a("sc-bonds.detail.calculator.registration-state.label")},d=(0,l.If)().setProduct(e=>e.setType("bond").setTitle(c.name).setProvider("bank","",c.code).setLabel(c.label||null).addParam("ставка","".concat((0,l.og)(c.profit))).addParam("сумма","".concat((0,l.lb)(c.sum,{decimalIsWithoutZeros:!0}))).addParam("погашение",c.date)).setContext(c).encode();return r.append("context",d),"".concat((0,o.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),"/investment/bonds/").concat(e.product.productId,"/purchase?").concat(r.toString())}},52103:function(e,t,a){"use strict";a.d(t,{C4:function(){return l},ZE:function(){return i},th:function(){return n}});let n="Рейтинг отозван",i=[{values:["AAA"],key:"very-high",title:"sc-bonds.detail.parameters.rating.very-hight.title",descriptionTitle:"sc-bonds.detail.parameters.rating.very-hight.description-title",descriptionCaption:"sc-bonds.detail.parameters.rating.very-hight.description-caption",color:"var(--color-green-600)"},{values:["AA+","AA","AA-","A+","A","A-"],key:"high",title:"sc-bonds.detail.parameters.rating.hight.title",descriptionTitle:"sc-bonds.detail.parameters.rating.hight.description-title",descriptionCaption:"sc-bonds.detail.parameters.rating.hight.description-caption",color:"var(--color-green-500)"},{values:["BBB+","BBB","BBB-"],key:"middle",title:"sc-bonds.detail.parameters.rating.middle.title",descriptionTitle:"sc-bonds.detail.parameters.rating.middle.description-title",descriptionCaption:"sc-bonds.detail.parameters.rating.middle.description-caption",color:"var(--color-orange-600)"},{values:["BB+","BB","BB-","B+","B","B-"],key:"low",title:"sc-bonds.detail.parameters.rating.low.title",descriptionTitle:"sc-bonds.detail.parameters.rating.low.description-title",descriptionCaption:"sc-bonds.detail.parameters.rating.low.description-caption",color:"var(--color-red-500)"},{values:["CCC","CC","C+","C","C-","D",n],key:"min",title:"sc-bonds.detail.parameters.rating.min.title",descriptionTitle:"sc-bonds.detail.parameters.rating.min.description-title",descriptionCaption:"sc-bonds.detail.parameters.rating.min.description-caption",color:"var(--color-red-600)"}],l=[{key:"pay",description:"sc-bonds.detail.parameters.rating.modal.revoked.first-description"},{key:"risk",description:"sc-bonds.detail.parameters.rating.modal.revoked.second-description"},{key:"info",description:"sc-bonds.detail.parameters.rating.modal.revoked.third-description"}]},27077:function(e,t,a){"use strict";a.d(t,{O:function(){return s},A:function(){return r}});var n=a(2265),i=a(52103);let l=i.ZE.reduce((e,t)=>(t.values.forEach(a=>{e[a]=t}),e),{});function s(e){return(0,n.useMemo)(()=>e===i.th?{key:"revoked",title:"sc-bonds.detail.parameters.rating.revoked.description-title",color:"var(--color-red-600)"}:l[e],[e])}var o=a(42586);function r(e){var t;let a=(0,o.useTranslations)(),n=i.ZE.find(t=>t.values.includes(e));return a(null!==(t=null==n?void 0:n.title)&&void 0!==t?t:e)}},28864:function(e,t,a){"use strict";a.d(t,{U:function(){return i},a:function(){return l}});var n=a(17227);function i(e){var t;let{bond:a,amount:i}=e;if(!i||i<=0)return 0;let l=(0,n.b3)(null===(t=a.product.productPrice)||void 0===t?void 0:t.total);return Math.floor((0,n.lt)(i/l))}function l(e){var t;let{bond:a,count:i}=e;if(!i||i<=0)return 0;let l=(0,n.b3)(null===(t=a.product.productPrice)||void 0===t?void 0:t.total);return(0,n.lt)(i*l)}},58736:function(e,t,a){"use strict";a.d(t,{Detail:function(){return eR}});var n=a(57437),i=a(2265),l=a(99376),s=a(42586),o=a(35563),r=a(75461),c=a(49090),d=a(61994),u=a(1883),m=a(40619);let p={1:"click_tab_parametry-vypuska",2:"click_tab_ob-elemente"};function x(e){let t=p[e];t&&(0,u.T)(m.d9,t)}var h=a(5083),b=a(15894),_=a(83145),v=a.n(_),g=a(2647),T=a.n(g);function j(e){let{lists:t}=e;return(0,n.jsx)(n.Fragment,{children:null==t?void 0:t.map((e,t)=>{let{title:a,items:i,footnotes:l}=e;return(0,n.jsxs)(h.T,{className:T().aboutContainer,dataQa:{element:b.xJ.Block,name:"lists"},children:[a&&(0,n.jsx)(h.T,{tag:"p",dataQa:{element:b.xJ.Text,name:"title"},children:a}),i&&(0,n.jsx)(h.T,{className:(0,d.Z)(T().aboutContainer,v().list),tag:"ul",dataQa:{element:b.xJ.List,name:"list"},children:null==i?void 0:i.map((e,t)=>{let{text:a,description:i}=e;return(0,n.jsxs)(h.T,{tag:"li",dataQa:{element:b.xJ.Block,name:"listItem"},children:[a&&(0,n.jsx)("p",{className:v().listTitle,children:a}),i&&(0,n.jsx)("p",{className:T().aboutValueDescription,children:i})]},t)})}),l&&(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Block,name:"footnotes"},children:l.map((e,t)=>(0,n.jsx)("p",{className:T().aboutValueDescription,children:e},t))})]},t)})})}var f=a(17227);function y(e){let{text:t,description:a,onLinkClick:i}=e,l=t?(0,f.Nw)(t):null;return(0,n.jsx)(n.Fragment,{children:(l||a)&&(0,n.jsxs)(h.T,{className:T().aboutContainer,dataQa:{element:b.xJ.Block,name:"textContent"},children:[l&&(0,n.jsx)("span",{onClick:function(e){var t;let a=e.target.closest("a"),n=null==a?void 0:null===(t=a.textContent)||void 0===t?void 0:t.trim();n&&(null==i||i(n))},dangerouslySetInnerHTML:{__html:l}}),a&&(0,n.jsx)("p",{className:T().aboutValueDescription,children:a})]})})}var k=a(62449),C=a.n(k);function N(e){let{bond:t,cmsData:a}=e,[l,s]=(0,i.useState)(1),o=(0,f.WF)(t.product.productId,a);function p(e){(0,u.T)(m.d9,"click_link_".concat((0,c.mu)(e)))}return(0,n.jsxs)(h.T,{className:C().desktopTabs,dataQa:{element:b.xJ.Block,name:"desktopTabs"},children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Tabs,name:"tabs"},children:(0,n.jsx)(r.mQ,{activeTabId:l,tabs:o,onTabChange:function(e){x(e),s(e)}})}),o.map(e=>{let{id:t,data:a}=e;return(0,n.jsx)("table",{className:(0,d.Z)(C().desktopTabsTable,{[C().active]:l===t}),children:(0,n.jsx)("tbody",{children:a.map(e=>{let{key:t,value:{text:a,description:i,lists:l}}=e;return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsx)(h.T,{dangerouslySetInnerHTML:{__html:(0,f.Nw)(t)},tag:"p",dataQa:{element:b.xJ.Text,name:"rowKey"}})}),(0,n.jsx)("td",{children:(0,n.jsxs)("div",{className:C().desktopTabsTableCellGrid,children:[(0,n.jsx)(y,{text:a,description:i,onLinkClick:p}),(0,n.jsx)(j,{lists:l})]})})]},t)})})},t)})]})}var S=a(80684),A=a(65990),B=a.n(A);function w(e){let{bond:t,cmsData:a}=e,[l,s]=(0,i.useState)(null),p=(0,f.WF)(t.product.productId,a),_=p.find(e=>{let{id:t}=e;return t===l});function v(e){(0,u.T)(m.d9,"click_link_".concat((0,c.mu)(e)))}return(0,n.jsx)(h.T,{className:B().mobileTabs,dataQa:{element:b.xJ.Block,name:"mobileTabs"},children:(0,n.jsxs)("div",{children:[p.map((e,t)=>{let{id:a,label:i}=e;return(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Button,name:"openModalButton"},children:(0,n.jsxs)("button",{className:(0,d.Z)(B().mobileTabsButton,t===p.length-1&&B().last),type:"button",onClick:()=>{x(a),s(a)},children:[i,(0,n.jsx)(S.IconFdsChevronRightO,{size:"16"})]})},a)}),(0,n.jsx)(r.u_,{className:B().modal,open:l===(null==_?void 0:_.id),header:{title:null==_?void 0:_.label,align:"center"},onClose:()=>s(null),children:(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Block,name:"modalContent"},children:(0,n.jsx)(h.T,{className:B().modalContentList,tag:"ul",dataQa:{element:b.xJ.List,name:"modalContentList"},children:null==_?void 0:_.data.map(e=>{let{key:t,value:{text:a,description:i,lists:l}}=e;return(0,n.jsxs)(h.T,{className:B().modalContentListItem,tag:"li",dataQa:{element:b.xJ.Block,name:"modalContentListItem"},children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"listItemKey"},children:(0,n.jsx)(o.xv,{weight:"medium",as:"div",children:(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:(0,f.Nw)(t)}})})}),(0,n.jsx)(y,{text:a,description:i,onLinkClick:v}),(0,n.jsx)(j,{lists:l})]},t)})})})})]})})}var P=a(16024),I=a(77386),Q=a.n(I);function z(e){let{bond:t,cmsData:a}=e,i=(0,s.useTranslations)();return(0,n.jsx)(h.T,{tag:"section",dataQa:{element:b.xJ.Block,name:"about"},children:(0,n.jsxs)(P.xu,{className:"pb-2 pb-m-6",children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Header,name:"aboutTitle"},children:(0,n.jsx)(o.X6,{type:"h2",weight:"medium",padding:"none",className:"mb-4 mb-m-6",children:i("sc-bonds.detail.about.title")})}),(0,n.jsxs)("div",{className:Q().aboutContent,children:[(0,n.jsx)(w,{bond:t,cmsData:a}),(0,n.jsx)(N,{bond:t,cmsData:a})]})]})})}var J=a(88358),L=a.n(J);function D(e){let{items:t}=e,a=(0,s.useTranslations)();return(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Block,name:"advantages"},children:(0,n.jsxs)(P.xu,{children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Header,name:"advantagesTitle"},children:(0,n.jsx)(o.X6,{type:"h2",className:"mb-6 mb-m-8",children:a("sc-bonds.detail.advantages.title")})}),(0,n.jsx)(h.T,{className:L().list,tag:"ul",dataQa:{element:b.xJ.List,name:"advantagesList"},children:null==t?void 0:t.map(e=>{let{title:t,text:a}=e;return(0,n.jsxs)(h.T,{className:L().listItem,tag:"li",dataQa:{element:b.xJ.List,name:"advantagesListItem"},children:[(0,n.jsx)(h.T,{className:L().bullet,tag:"span",dataQa:{element:b.xJ.Icon,name:"listItemIcon"},children:(0,n.jsx)(S.IconFdsCheckO,{size:"24",className:L().icon})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"listItemText"},children:(0,n.jsx)(o.xv,{className:L().title,weight:"medium",as:"div",children:(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:(0,f.Nw)(t)}})})}),(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Caption,name:"listItemCaption"},children:(0,n.jsx)(o.YS,{children:a})})]})]},t)})})]})})}var M=a(2824),E=a.n(M);function H(e){let{conditions:t,className:a}=e;return(0,n.jsx)(h.T,{className:(0,d.Z)(E().container,a),tag:"dl",dataQa:{element:b.xJ.List,name:"bondConditions"},children:t.map(e=>{let{key:t,value:a,tooltip:i}=e;return(0,n.jsxs)(h.T,{className:E().condition,dataQa:{element:b.xJ.Block,name:"bondCondition"},children:[(0,n.jsx)("dt",{className:E().key,children:(0,n.jsx)(P.zn,{text:t,tooltip:i})}),(0,n.jsx)("dd",{className:E().value,children:a})]},t)})})}var R=a(84364),W=a(28864),U=a(2950),F=a.n(U);function V(e){let{children:t,bond:a,count:l,amount:o,className:u,onCountChange:p,onAmountChange:x,onTabChange:_,onAmountInputChange:v,onValidityChange:g}=e,T=(0,s.useTranslations)(),[j,f]=(0,i.useState)(m.Tk[0].id),y=j===m.Tk[0].id,{isCountValid:k,isAmountValid:C,getCountNoteMessage:N,getAmountNoteMessage:S}=function(e){let t=e.limits.showMaxCount,a={min:e.limits.minProductCount,max:e.limits.maxProductCount,noBondMessage:"Нет облигаций, доступных к покупке",getNoteMessage(e,t){let a="Можно купить от";return!1===t?"".concat(a," ").concat((0,c._6)(this.min,["штуки","штук","штук"])):"".concat(a," ").concat(this.min," ").concat(e?"до ".concat(e," "):"","штук")}},n={min:e.limits.minProductAmount,max:e.limits.maxProductAmount,noBondMessage:"Нет облигаций, доступных к покупке",getMinPrice(){return this.min},getMaxPrice(){return this.max},getNoteMessage(e,t){let a="Можно купить от ".concat((0,c.lb)(this.getMinPrice(),{decimalIsWithoutZeros:!0})),n="до ".concat((0,c.lb)(e,{decimalIsWithoutZeros:!0}));return!1===t?a:e?"".concat(a," ").concat(n):a}};return{isCountValid:function(e){return 0!==a.max&&null!==a.max&&!!e&&e>=a.min&&e<=a.max},isAmountValid:function(e){return 0!==n.getMaxPrice()&&null!==n.getMaxPrice()&&!!e&&e>=n.getMinPrice()&&e<=n.getMaxPrice()},getCountNoteMessage:function(e){return null===a.max||0===a.max?a.noBondMessage:e&&e>a.max?a.getNoteMessage(a.max):a.getNoteMessage(a.max,t)},getAmountNoteMessage:function(e){return null===n.getMaxPrice()||0===n.getMaxPrice()?n.noBondMessage:e&&e>n.getMaxPrice()?n.getNoteMessage(n.getMaxPrice()):n.getNoteMessage(n.getMaxPrice(),t)}}}(a);return(0,n.jsxs)(h.T,{className:(0,d.Z)(F().container,u),dataQa:{element:b.xJ.Block,name:"calculator"},children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Chips,name:"calculatorChips"},children:(0,n.jsx)(r.cL,{size:"l",value:j,chips:m.Tk,onChipClick:function(e){j!==e&&(f(e),_(e),e===m.Tk[0].id&&x((0,W.a)({bond:a,count:l})))}})}),(0,n.jsx)("div",{children:t}),y?(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Input,name:"countInput"},children:(0,n.jsx)(r.Rn,{value:l,label:T("sc-bonds.detail.calculator.input-count.label"),caption:N(l),unit:"шт",decimals:"never",min:0,state:k(l)?void 0:"error",withoutControls:!0,onChange:function(e){p(e),x((0,W.a)({bond:a,count:e})),g(k(e))}})}):(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Input,name:"amountInput"},children:(0,n.jsx)(r.Rn,{value:o,label:T("sc-bonds.detail.calculator.input-amount.label"),caption:S(o),unit:"₽",min:0,state:C(o)?void 0:"error",withoutControls:!0,onChange:function(e){x(e),null==v||v(e),p((0,W.U)({bond:a,amount:e})),g(C(e))}})})]})}var Z=a(88159),O=a.n(Z);function X(e){var t,a,i,l;let{bond:r,count:p=0,cmsData:x}=e,_=(0,s.useTranslations)(),v=(0,f.b3)(null===(t=r.product.productPrice)||void 0===t?void 0:t.redemptionIncome)*p;function g(e){(0,u.T)(m.d9,"click_tooltip",{eventLabel:e,eventNameCard:r.product.displayName,eventUrl:r.product.isin})}return(0,n.jsxs)(h.T,{className:O().container,dataQa:{element:b.xJ.Block,name:"calculatorLabels"},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(P.zn,{className:"mb-2 mb-m-3",text:(0,n.jsx)(o.xv,{size:"18",children:_("sc-bonds.detail.calculator.yield.text")}),tooltip:null!==(i=null==x?void 0:x.yieldHint)&&void 0!==i?i:_("sc-bonds.detail.calculator.yield.tooltip"),gap:10,onIconClick:()=>g("prognoz-pogody_on")}),(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"yieldValue"},children:(0,n.jsx)(o.xv,{weight:"medium",className:(0,d.Z)(O().value,O().yieldValue),children:"+".concat((0,c.lb)(v))})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(P.zn,{className:"mb-2 mb-m-3",text:(0,n.jsx)(o.xv,{size:"18",children:_("sc-bonds.detail.calculator.rate.text")}),tooltip:null!==(l=null==x?void 0:x.rateHint)&&void 0!==l?l:_("sc-bonds.detail.calculator.rate.tooltip"),gap:10,onIconClick:()=>g("stavka_on")}),(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"rateValue"},children:(0,n.jsx)(o.xv,{weight:"medium",className:O().value,children:(0,f.QO)({couponType:r.product.couponType,minCouponPaymentSizePercent:r.product.couponEventsData.minCouponPaymentSizePercent,maxCouponPaymentSizePercent:r.product.couponEventsData.maxCouponPaymentSizePercent,nearestCouponPaymentSizePercent:null===(a=r.product.nearestCoupon)||void 0===a?void 0:a.paymentSizePercent})})})]})]})}var Y=a(67356),K=a(31505);function G(e){let{open:t,onClose:a,purchaseBondUrl:l}=e,[s,o]=(0,i.useState)(null),c=(0,f.SJ)("NEXT_PUBLIC_PL_LK_API_URL"),d=(0,f.SJ)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),m=(0,f.SJ)("NEXT_PUBLIC_S3_ASSETS");return(0,i.useEffect)(()=>{(async function(){o(await (0,Y.g)(c,"investment-bonds"))})()},[c]),(0,n.jsx)(r.u_,{open:t,onClose:a,children:(0,n.jsx)(K.U,{serverConfig:s,baseUrl:d,s3AssetsUrl:"".concat(m,"/mp-assets"),config:{withLogo:!0,linkTarget:"_self"},entryPointId:"bond-details",scenarioParams:{targetUri:l},isSilent:!0,onAnalyticsEvent:e=>{let{eventCategory:t,eventAction:a,eventLabel:n}=e;return(0,u.T)(null!=t?t:"login-widget_bonds_card",a,{eventLabel:n})}})})}var q=a(8307),$=a.n(q);function ee(e){var t,a;let{bond:l,count:o,amount:c,cmsData:d,onCountChange:p,onAmountChange:x}=e,_=(0,s.useTranslations)(),[v,g]=(0,i.useState)(!0),[T,j]=(0,i.useState)(!1),[f,y]=(0,i.useState)(!0),k=(0,R.c)({bond:l,isCountShow:v,count:o,amount:c,cmsData:d}),C=(0,R.w)(l,o);return(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Block,name:"bondDetailCalculator"},children:(0,n.jsxs)(P.xu,{children:[(0,n.jsx)(V,{className:"mb-6 mb-m-8",bond:l,count:o,amount:c,onCountChange:p,onAmountChange:x,onTabChange:function(e){let t=e===m.Tk[0].id?"click_tab_po-kolichestvu":"click_tab_po-summe";(0,u.T)(m.d9,t),g(e=>!e)},onAmountInputChange:function(e){(0,u.T)(m.d9,"click_summa",{eventValue:e})},onValidityChange:y,children:(0,n.jsx)(X,{bond:l,count:o,cmsData:d})}),(0,n.jsx)(H,{className:"mb-5 mb-l-6",conditions:k}),(0,n.jsx)(P.Sr,{className:"mb-6 mb-l-8",text:null!==(t=null==d?void 0:d.disclaimerText)&&void 0!==t?t:_("sc-bonds.detail.calculator.disclaimer.text"),expandedText:null!==(a=null==d?void 0:d.disclaimerExpandedText)&&void 0!==a?a:_("sc-bonds.detail.calculator.disclaimer.expanded-text")}),(0,n.jsxs)("div",{className:$().buttons,children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Button,name:"calculatorPurchaseButton"},children:(0,n.jsx)(r.zx,{label:_("sc-bonds.detail.calculator.buy-button.label"),size:"s",disabled:!f,role:"link",stretch:!0,onClick:function(){j(!0),(0,u.T)(m.d9,"click_button_kupit-onlayn")}})}),(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Link,name:"calculatorHowToBuyBondsLink"},onClick:()=>(0,u.T)(m.d9,"click_button_kak-kupit-obligatsii"),children:(0,n.jsx)(r.zx,{label:_("sc-bonds.detail.calculator.how-to-buy-button.label"),variant:"secondary",size:"s",as:"a",href:"#how-to-buy-bonds",stretch:!0})}),(0,n.jsx)(G,{open:T,onClose:()=>j(!1),purchaseBondUrl:C})]})]})})}var et=a(52103),ea=a(19517),en=a.n(ea);let ei="share-social-list";function el(e){let{className:t,eventNameCard:a,eventUrl:s}=e,{isin:o}=(0,l.useParams)();if("string"!=typeof o)throw Error('Invalid "isin" type');let[c,p]=(0,i.useState)(!1),x=function(e){let t="".concat((0,f.SJ)("NEXT_PUBLIC_SHOWCASE_ORIGIN")).concat(m.pY,"/").concat(e);return[{icon:(0,n.jsx)(S.IconFdsVkontakteF,{}),url:"https://vk.com/share.php?url=".concat(t),name:"ВКонтакте",eventName:"vk",style:{color:"rgb(74, 118, 168)"}},{icon:(0,n.jsx)(S.IconFdsOdnoklassnikiF,{}),url:"https://connect.ok.ru/offer?url=".concat(t),name:"Одноклассники",eventName:"ok",style:{color:"rgb(255, 136, 0)"}},{icon:(0,n.jsx)(S.IconFdsTelegramF,{}),url:"https://telegram.me/share/url?url=".concat(t),name:"Telegram",eventName:"telegram",style:{color:"rgb(0, 151, 255)",paddingRight:"2px"}}]}(o);return(0,n.jsxs)("div",{className:(0,d.Z)(en().shareWrapper,t),children:[(0,n.jsx)(h.T,{className:(0,d.Z)(en().shareSocialList,{[en().open]:c}),id:ei,tag:"ul",dataQa:{element:b.xJ.List,name:"socialShareList"},children:x.map(e=>(0,n.jsx)(h.T,{tag:"li",dataQa:{element:b.xJ.Block,name:"socialShareListItem"},children:(0,n.jsx)("button",{className:en().shareSocialButton,style:e.style,type:"button","aria-label":e.name,onClick:()=>{(0,u.T)(m.d9,"click_messenger_".concat(e.eventName),{eventNameCard:a,eventUrl:s}),window.open(e.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300")},children:e.icon})},e.name))}),(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Button,name:"socialShareButton"},children:(0,n.jsx)(r.zx,{className:(0,d.Z)(en().shareButton,{[en().shareButtonOpen]:c}),shape:"circle-icon",size:"xs",variant:"secondary",appearance:c?"ghost":"fill","aria-label":"Поделиться в соцсетях","aria-expanded":c?"true":"false","aria-controls":ei,iconLeft:c?(0,n.jsx)(S.IconArrowHead,{size:"16"}):(0,n.jsx)(S.IconShare,{size:"16"}),onClick:function(){p(e=>((0,u.T)(m.d9,"click_dropdown_messenger",{eventLabel:e?"off":"on",eventNameCard:a,eventUrl:s}),!e))}})})]})}var es=a(7558),eo=a.n(es);function er(e){let{badges:t,className:a}=e;return(0,n.jsx)(n.Fragment,{children:t.map(e=>{let{label:t,variant:i,dataQa:l}=e;return(0,n.jsx)(r.Vp,{className:a,label:t,size:"m",variant:i,dataQa:l,rounded:!0},t)})})}function ec(e){let{bond:t,cmsRate:a,className:i}=e,l=(0,s.useTranslations)(),r=(0,f.zM)({couponType:t.product.couponType,cmsRate:a,tags:t.product.tags}),c=t.product.rating===et.th;return(0,n.jsxs)(h.T,{className:(0,d.Z)(eo().header,i),dataQa:{element:b.xJ.Block,name:"detailHeader"},children:[(0,n.jsxs)("div",{className:eo().headerTitleWrapper,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Header,name:"detailHeaderBondTitle"},children:(0,n.jsx)(o.X6,{type:"h2",as:"h1",children:t.product.displayName})}),(0,n.jsxs)("div",{className:eo().headerSubtitleWrapper,children:[(0,n.jsx)(er,{badges:r,className:eo().headerDesktopBadge}),t.product.bondType===b.Rg.Corporate&&(0,n.jsx)(h.T,{className:eo().headerSubtitle,tag:"p",dataQa:{element:b.xJ.Text,name:"detailHeaderBondRating"},children:c?l("sc-bonds.common.revoked-rating.text"):l("sc-bonds.common.rating.text",{rating:t.product.rating})})]})]}),(0,n.jsx)(P.TR,{src:(0,f.Tl)(t.product.issuerCode),size:48,alt:l("sc-bonds.common.logo.alt",{name:t.product.name})})]}),(0,n.jsxs)("div",{className:eo().headerShare,children:[(0,n.jsx)("div",{className:eo().headerBadges,children:(0,n.jsx)(er,{badges:r,className:eo().headerMobileBadge})}),(0,n.jsx)(el,{className:eo().socialShareLinks,eventNameCard:t.product.displayName,eventUrl:t.product.isin})]})]})}var ed=a(82367),eu=a.n(ed);function em(e){let{rating:t}=e;return(0,n.jsx)("div",{className:eu().ratingIndicators,children:et.ZE.map(e=>{let{values:a,color:i,key:l}=e;return(0,n.jsx)("div",{className:(0,d.Z)(eu().ratingSegment,a.includes(t)?eu().active:""),style:{"--accent-color":i}},l)})})}var ep=a(27077),ex=a(28009),eh=a.n(ex);function eb(e){let{rating:t}=e,a=(0,ep.A)(t),l=(0,ep.O)(t),[c,p]=(0,i.useState)(!1),x=(0,s.useTranslations)(),h=t===et.th,b=h?x("sc-bonds.detail.parameters.rating.modal.revoked-title"):x("sc-bonds.detail.parameters.rating.modal.title"),_=h?x("sc-bonds.detail.parameters.rating.modal.revoked-description"):x("sc-bonds.detail.parameters.rating.modal.description"),v=x("sc-bonds.detail.parameters.rating.modal.link-href");function g(e){p(!1),(0,u.T)(m.Mt,e)}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:eh().wrapper,children:(0,n.jsxs)("div",{className:eh().rating,children:[(0,n.jsx)(o.xv,{weight:"medium",size:"16",children:a}),(0,n.jsx)(r.zx,{className:"p-0",iconLeft:(0,n.jsx)(S.IconFdsQuestionCircleO,{size:16}),variant:"white",shape:"circle-icon",size:"xs",onClick:function(){(0,u.T)(m.d9,"click_tooltip",{eventLabel:"vysokaya-nadezhnost_on"}),p(!0),(0,u.T)(m.Mt,"page_view_kreditniy-reyting-elementa")}})]})}),(0,n.jsx)(r.u_,{open:c,onClose:()=>g("click_button_krestik"),header:{title:b},footer:{children:(0,n.jsx)(r.zx,{size:"s",variant:"primary",label:x("sc-bonds.detail.parameters.rating.modal.button"),onClick:()=>g("click_button_ponyatno"),className:eh().button})},children:(0,n.jsxs)("div",{className:eh().content,children:[(0,n.jsxs)("div",{className:eh().info,children:[(0,n.jsx)(o.xv,{size:"16",children:_}),!h&&v&&(0,n.jsx)("div",{children:(0,n.jsx)(r.rU,{href:v,size:"m",text:x("sc-bonds.detail.parameters.rating.modal.link"),target:"_blank"})})]}),(0,n.jsx)("div",{children:h?(0,n.jsxs)("div",{className:eh().revoked,children:[(0,n.jsxs)("div",{className:eh().revokedContent,children:[(0,n.jsx)(o.xv,{weight:"medium",size:"16",children:x("sc-bonds.detail.parameters.rating.modal.revoked.info-title")}),(0,n.jsx)("ul",{className:eh().list,children:et.C4.map(e=>{let{key:t,description:a}=e;return(0,n.jsx)("li",{className:eh().listItem,children:(0,n.jsx)(o.xv,{size:"16",children:x(a)})},t)})})]}),(0,n.jsx)(r.bZ,{state:"info",label:x("sc-bonds.detail.parameters.rating.modal.revoked.alert.title"),caption:x("sc-bonds.detail.parameters.rating.modal.revoked.alert.caption"),withIcon:!0})]}):et.ZE.map(e=>{let{descriptionTitle:t,descriptionCaption:a,key:i,color:s}=e;return(0,n.jsxs)("div",{style:{"--accent-color":s},className:(0,d.Z)(eh().descriptionWrapper,(null==l?void 0:l.key)===i?eh().active:""),children:[(0,n.jsx)(o.xv,{weight:"medium",children:x(t)}),(0,n.jsx)(o.YS,{children:x(a)})]},i)})})]})})]})}var e_=a(69050),ev=a.n(e_);function eg(e){let{rating:t,cmsDetail:a}=e,i=(null==a?void 0:a.emitent)?null==a?void 0:a.emitent.find(e=>"Рейтинг"===e.key):void 0,l=(0,s.useTranslations)(),r=t===et.th,d=!r&&(null==i?void 0:i.value.text)?(0,f.Nw)(i.value.text):null;return(0,n.jsxs)(h.T,{tag:"section",dataQa:{element:b.xJ.Block,name:"bondRating"},className:ev().wrapper,children:[(0,n.jsx)("div",{className:ev().description,children:(0,n.jsxs)("div",{className:ev().cmsRate,children:[(0,n.jsx)(o.xv,{children:r?l("sc-bonds.detail.parameters.rating.revoked.description-title"):null==i?void 0:i.key}),d&&(0,n.jsx)("span",{className:ev().link,onClick:function(e){var t;let a=e.target.closest("a"),n=null==a?void 0:null===(t=a.textContent)||void 0===t?void 0:t.trim();n&&(0,u.T)(m.d9,"click_link_".concat((0,c.mu)(n)))},dangerouslySetInnerHTML:{__html:"".concat(d)}})]})}),(0,n.jsx)("div",{className:ev().ratingIndicators,children:(0,n.jsx)(em,{rating:t})}),(0,n.jsx)("div",{className:ev().ratingTitle,children:(0,n.jsx)(eb,{rating:t})})]})}var eT=a(97230),ej=a(71938),ef=a(99796),ey=a.n(ef);function ek(e){var t;let{bond:a,cmsData:i}=e,l=null==i?void 0:null===(t=i.details)||void 0===t?void 0:t[a.product.productId],r=function(e){var t,a,n,i;let{bond:l,cmsData:o,cmsRate:r=""}=e,d=(0,s.useTranslations)();return[{key:d("sc-bonds.detail.calculator.rate.text"),value:(0,eT.Q)({couponType:l.product.couponType,minCouponPaymentSizePercent:l.product.couponEventsData.minCouponPaymentSizePercent,maxCouponPaymentSizePercent:l.product.couponEventsData.maxCouponPaymentSizePercent,nearestCouponPaymentSizePercent:null===(t=l.product.nearestCoupon)||void 0===t?void 0:t.paymentSizePercent}),tooltip:null!==(n=null==o?void 0:o.rateHint)&&void 0!==n?n:d("sc-bonds.detail.calculator.rate.tooltip"),name:"couponType"},{key:d("sc-bonds.detail.parameters.rate.title"),value:l.product.couponType===b.$i.Fix?"Фиксированная":"Плавающая ставка ".concat(r),name:"rate"},{key:d("sc-bonds.detail.calculator.conditions.price.key"),value:(0,c.lb)((0,f.b3)(null===(a=l.product.productPrice)||void 0===a?void 0:a.total)),tooltip:null!==(i=null==o?void 0:o.priceHint)&&void 0!==i?i:d("sc-bonds.detail.calculator.conditions.price.hint"),name:"price"},{key:d("sc-bonds.detail.calculator.conditions.redemption-date.key"),value:(0,ej.t)(l.product.redemptionDate),name:"redemptionDate"}]}({bond:a,cmsData:null==l?void 0:l.calculator,cmsRate:null==l?void 0:l.rate});return(0,n.jsx)(P.xu,{children:(0,n.jsxs)(h.T,{dataQa:{element:b.xJ.Block,name:"parameters"},className:ey().wrapper,children:[a.product.bondType===b.Rg.Corporate&&(0,n.jsx)(eg,{rating:(0,f.b3)(a.product.rating,""),cmsDetail:l}),(0,n.jsx)(h.T,{tag:"section",dataQa:{element:b.xJ.Block,name:"parametersList"},className:ey().parametersWrapper,children:r.map(e=>(0,n.jsxs)("div",{className:ey().parameterItem,children:[(0,n.jsx)(P.zn,{className:ey().parameterTitle,text:(0,n.jsx)(o.xv,{size:"16",children:e.key}),tooltip:e.tooltip,gap:10,onIconClick:e.tooltip?()=>(function(e){let t={couponType:"stavka_on",price:"tsena-za-shtuku_on"}[e];t&&(0,u.T)(m.d9,"click_tooltip",{eventLabel:t})})(e.name):void 0}),(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"".concat(e.name)},children:(0,n.jsx)(o.xv,{weight:"medium",className:ey().value,children:e.value})})]},e.name))})]})})}var eC=a(82047),eN=a.n(eC);function eS(e){var t,a,i;let{couponType:l,paymentEvents:r,cmsData:d}=e,u=(0,s.useTranslations)(),m=r.filter(e=>e.paid),p=r.filter(e=>!e.paid),x=l===b.$i.Fix?"sc-bonds.detail.calculator.schedule-payment.table.future.caption.fix":"sc-bonds.detail.calculator.schedule-payment.table.future.caption.var";return(0,n.jsxs)(h.T,{dataQa:{element:b.xJ.Table,name:"paymentScheduleTable"},children:[(0,n.jsxs)("table",{className:eN().table,"aria-label":u("sc-bonds.detail.calculator.schedule-payment.title"),children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"date"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:u("sc-bonds.detail.calculator.schedule-payment.table.date")})})}),(0,n.jsx)("th",{children:(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"coupon"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:u("sc-bonds.detail.calculator.schedule-payment.table.coupon")})})}),(0,n.jsx)("th",{children:(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"rate"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:u("sc-bonds.detail.calculator.schedule-payment.table.rate")})})})]})}),(0,n.jsxs)("tbody",{children:[m.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("tr",{children:(0,n.jsxs)("td",{colSpan:3,children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"paidTitle"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:u("sc-bonds.detail.calculator.schedule-payment.table.paid.title")})}),(0,n.jsx)(h.T,{className:"mt-1",dataQa:{element:b.xJ.Caption,name:"paidCaption"},children:(0,n.jsx)(o.YS,{children:null!==(t=null==d?void 0:d.scheduleTablePaidCaption)&&void 0!==t?t:u("sc-bonds.detail.calculator.schedule-payment.table.paid.caption")})})]})}),m.map(e=>(0,n.jsxs)("tr",{children:[(0,n.jsxs)("td",{className:eN().paid,children:[(0,n.jsx)(h.T,{tag:"span",dataQa:{element:b.xJ.Text,name:"paidEventDate"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:(0,f.tm)(e.eventDate)})}),(0,n.jsx)(S.IconFdsCheckCircleO,{className:eN().icon,size:"20"})]}),(0,n.jsx)("td",{children:(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"paidPaymentSize"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:(0,c.lb)(e.paymentSize)})})}),(0,n.jsx)("td",{children:(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"paidPaymentSizePercent"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:(0,c.og)(e.paymentSizePercent)})})})]},e.eventDate))]}):null,p.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("tr",{children:(0,n.jsxs)("td",{colSpan:3,children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"futureTitle"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:u("sc-bonds.detail.calculator.schedule-payment.table.future.title")})}),(0,n.jsx)(h.T,{className:"mt-1",dataQa:{element:b.xJ.Caption,name:"futureCaption"},children:(0,n.jsx)(o.YS,{children:null!==(a=null==d?void 0:d.scheduleTableFutureCaption)&&void 0!==a?a:u(x)})})]})}),p.map(e=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"futureEventDate"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:(0,f.tm)(e.eventDate)})})}),(0,n.jsx)("td",{children:(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"futurePaymentSize"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:(0,c.lb)(e.paymentSize)})})}),(0,n.jsx)("td",{children:(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"futurePaymentSizePercent"},children:(0,n.jsx)(o.xv,{size:"16",weight:"medium",children:(0,c.og)(e.paymentSizePercent)})})})]},e.eventDate))]}):null]})]}),(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Text,name:"scheduleTableDisclaimer"},children:(0,n.jsx)(o.xv,{className:eN().note,size:"12",children:null!==(i=null==d?void 0:d.scheduleTableDisclaimer)&&void 0!==i?i:u("sc-bonds.detail.calculator.schedule-payment.table.disclaimer")})})]})}var eA=a(96369),eB=a(23740),ew=a.n(eB);function eP(e){var t;let{className:a,couponType:l,couponEvents:c,cmsData:d,eventNameCard:p,eventUrl:x}=e,_=(0,s.useTranslations)(),v=(0,eA.J)(),g=Array.from(new Set(c.map(C))).map(e=>({id:e,label:e})),[T,j]=(0,i.useState)(function(e){var t;let a=new Date().getFullYear().toString(),n=e.find(e=>e.id===a);return null!==(t=null==n?void 0:n.id)&&void 0!==t?t:e[0].id}(g)),f=function(){var e,t;let a=l===b.$i.Var;return[{key:_("sc-bonds.detail.calculator.schedule-payment.frequency.key"),value:null!==(e=null==d?void 0:d.schedulePaymentFrequency)&&void 0!==e?e:_("sc-bonds.detail.calculator.schedule-payment.frequency.value")},{key:_("sc-bonds.detail.calculator.schedule-payment.coupon-type.key"),value:null!==(t=null==d?void 0:d.scheduleCouponType)&&void 0!==t?t:_(a?"sc-bonds.common.coupon-type.var":"sc-bonds.common.coupon-type.fix")}]}(),y=c.filter(e=>C(e)===T),k=_("sc-bonds.detail.calculator.schedule-payment.paid.title",{paidCount:c.filter(e=>e.paid).length,count:c.length});function C(e){return new Date(e.eventDate).getFullYear().toString()}return(0,n.jsx)(P.xu,{className:a,children:(0,n.jsxs)(h.T,{dataQa:{element:b.xJ.Block,name:"paymentSchedule"},children:[(0,n.jsx)(o.X6,{className:"mb-6 mb-m-8",type:"h2",dataQa:v({element:b.xJ.Header,name:"paymentSchedule"}),children:_("sc-bonds.detail.calculator.schedule-payment.title")}),(0,n.jsxs)("div",{children:[(0,n.jsx)(h.T,{className:ew().description,tag:"p",dataQa:{element:b.xJ.Text,name:"paymentScheduleDescription"},children:_("sc-bonds.detail.calculator.schedule-payment.description")}),(0,n.jsx)(H,{className:"mb-6 mb-m-8",conditions:f}),(0,n.jsx)(h.T,{className:"mb-1",dataQa:{element:b.xJ.Header,name:"paidCouponsText"},children:(0,n.jsx)(o.X6,{type:"h3",children:k})}),(0,n.jsx)(h.T,{className:"mb-5 mb-m-6",dataQa:{element:b.xJ.Caption,name:"schedulePaymentCaption"},children:(0,n.jsx)(o.YS,{children:null!==(t=null==d?void 0:d.scheduleCaption)&&void 0!==t?t:_("sc-bonds.detail.calculator.schedule-payment.caption")})}),(0,n.jsx)(h.T,{className:"mb-4",dataQa:{element:b.xJ.Chips,name:"schedulePaymentChips"},children:(0,n.jsx)(r.cL,{size:"m",value:T,chips:g,onChipClick:function(e){j(e),(0,u.T)(m.d9,"click_tab_vyplacheno",{eventLabel:"".concat(e),eventNameCard:p,eventUrl:x})}})}),(0,n.jsx)(eS,{couponType:l,paymentEvents:y,cmsData:d})]})]})})}var eI=a(33145),eQ=a(78014),ez=a.n(eQ),eJ={src:"/invest/bonds/_next/static/media/purchase-step-1.08d752f8.png",height:400,width:600,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAjElEQVR42mMAgSZlM1aG1ikaE/Ydi9p//koYSOzouUvMDHBgESQ5fd6q9x+WrPz/bNeB+zDhUxcvMTL837efiYGBgW1RQ8e1DTXN/3s7e79s2LJp0vlz54IZQKBm3iKwgtDqep/6iZNerFi18v/Bgwf/nDlzpowBHVw4sF/x3LlzySkZmXwg/v///xkBfLw+MwWCgNAAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5},eL={src:"/invest/bonds/_next/static/media/purchase-step-2.f2e9c79a.png",height:400,width:600,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAmElEQVR42mN4fuYiIwMQHPr/n+nF5x/GtlkTqhgYylUZgGBiVxYzw9l3P5kYgODxwxeTH99/+v/oyatni1uam/7/Z+BmgIFdDAxBrw4cOfXu6s3/j04s/X92i9T///f5JzLAwBIhdemt5k7Nd0/dV/l6jXvOq9MM//8/4vVjAIHPDO6MDCDAzsAGVc/54aKsMgMQ/P8vzQgAww4/WZ7rpUQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5},eD={src:"/invest/bonds/_next/static/media/purchase-step-3.e003d541.png",height:400,width:600,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAkUlEQVR42mMAgeXT5wi25NWaMTC4MzKAwP//jM+TMlkZYKCqcbJJtU/qz60MqjduMEidOsrAMPklA4MiXMGWwHSpuQwMEa/9A3f8mDjp/99Jk/7/j49vhiv4b2fn/L+h4ff/7u4f/6dN+/9/6tT//4qLl8IV/DUwVAEK9PwtLW38ExdX8zczs/1TTEwQAwMDAwAJLzv+bdl1bAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5};function eM(e){let{link:t,eventNameCard:a,eventUrl:i}=e,l=(0,s.useTranslations)(),c=[{text:l("sc-bonds.detail.purcase-steps.step-1.text"),imageSrc:eJ},{text:l("sc-bonds.detail.purcase-steps.step-2.text"),imageSrc:eL},{text:l("sc-bonds.detail.purcase-steps.step-3.text"),imageSrc:eD}];return(0,n.jsx)(h.T,{id:"how-to-buy-bonds",className:ez().section,tag:"section",dataQa:{element:b.xJ.Block,name:"purchaseStepCards"},children:(0,n.jsxs)(o.W2,{children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Header,name:"title"},children:(0,n.jsx)(o.X6,{type:"display",as:"h2",className:ez().heading,children:l("sc-bonds.detail.purcase-steps.title")})}),(0,n.jsx)(h.T,{className:ez().cards,tag:"ul",dataQa:{element:b.xJ.List,name:"list"},children:c.map(e=>{let{text:t,imageSrc:a}=e;return(0,n.jsxs)(h.T,{className:ez().card,tag:"li",dataQa:{element:b.xJ.Block,name:"listItem"},children:[(0,n.jsx)(o.xv,{className:ez().cardText,size:"16",weight:"medium",as:"p",children:t}),(0,n.jsx)(eI.default,{src:a,width:"300",height:"200",alt:""})]},t)})}),(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Link,name:"purchaseLink"},children:(0,n.jsx)(r.zx,{className:ez().buyButton,label:l("sc-bonds.detail.purcase-steps.buy-button.label"),variant:"purple",size:"m",as:"a",href:t,stretch:!0,onClick:()=>(0,u.T)(m.d9,"click_button_kupit-obligatsii",{eventNameCard:a,eventUrl:i})})})]})})}var eE=a(43952),eH=a.n(eE);function eR(e){var t,a;let{bond:c,cmsData:d}=e,p=(0,l.useRouter)(),x=(0,l.useSearchParams)(),_=(0,s.useTranslations)(),v=[{href:"/",label:_("sc-bonds.common.breadcrumbs.path.main")},{href:m.pY,label:_("sc-bonds.common.breadcrumbs.path.new-showcase")},{label:c.product.displayName}],g=null==d?void 0:null===(t=d.details)||void 0===t?void 0:t[c.product.productId],T=Number(x.get("count")),j=Number.isFinite(T)&&Number.isInteger(T)&&T>0?T:c.limits.minProductCount,[y,k]=(0,i.useState)(j),[C,N]=(0,i.useState)(j*(0,f.b3)(null===(a=c.product.productPrice)||void 0===a?void 0:a.total)),S=(0,R.w)(c,y);return(0,i.useEffect)(()=>{(0,u.T)("invest_bonds__detail","page_view__detail",{eventLabel:c.product.productId})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.W2,{children:[(0,n.jsx)(h.T,{dataQa:{element:b.xJ.Breadcrumbs,name:"detailBreadcrumbs"},children:(0,n.jsx)(r.Oo,{className:"mb-2 mb-l-0 py-4",items:v,onClick:function(e,t){t===m.pY&&(null==e||e.preventDefault(),p.push("/"))}})}),(0,n.jsxs)("div",{className:eH().container,children:[(0,n.jsx)(ec,{bond:c,cmsRate:null==g?void 0:g.rate}),(0,n.jsxs)("div",{className:eH().content,children:[(0,n.jsxs)("div",{className:eH().leftColumn,children:[(0,n.jsx)(ek,{bond:c,cmsData:d}),(null==g?void 0:g.advantages)&&(0,n.jsx)(D,{items:null==g?void 0:g.advantages}),(0,n.jsx)(eP,{className:eH().paymentSchedule,couponType:c.product.couponType,couponEvents:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.map(e=>({...e,paymentSize:e.paymentSize*t}))}(c.product.couponEventsData.events,y),cmsData:null==g?void 0:g.calculator,eventNameCard:c.product.displayName,eventUrl:c.product.isin})]}),(0,n.jsx)(ee,{bond:c,count:y,amount:C,cmsData:null==g?void 0:g.calculator,onCountChange:k,onAmountChange:N})]}),(0,n.jsx)(z,{bond:c,cmsData:d})]})]}),(0,n.jsx)(eM,{link:S,eventNameCard:c.product.displayName,eventUrl:c.product.isin})]})}},5083:function(e,t,a){"use strict";a.d(t,{T:function(){return l}});var n=a(57437),i=a(96369);function l(e){let{tag:t="div",children:a,dataQa:l,className:s,...o}=e,r=(0,i.J)()(l),c="string"==typeof t,d={...o,...c?{"data-qa":r}:{dataQa:r}};return(0,n.jsx)(t,{className:s,...d,children:a})}},16024:function(e,t,a){"use strict";a.d(t,{xu:function(){return c},Zb:function(){return _},Sr:function(){return f},TR:function(){return S},zn:function(){return w}});var n,i,l=a(57437),s=a(61994),o=a(57707),r=a.n(o);function c(e){let{className:t,variant:a="primary",children:n}=e;return(0,l.jsx)("div",{className:(0,s.Z)(r().box,{[r()["box--primary"]]:"primary"===a,[r()["box--secondary"]]:"secondary"===a},t),children:n})}(n=i||(i={})).Primary="primary",n.Secondary="secondary";var d=a(80684),u=a(35563),m=a(5083),p=a(15894),x=a(3790),h=a.n(x);let b={IconFdsCoinMultipleO:d.IconFdsCoinMultipleO,IconFdsChartGrowthO:d.IconFdsChartGrowthO,IconFdsWalletAddO:d.IconFdsWalletAddO,IconFdsCheckCircleO:d.IconFdsCheckCircleO};function _(e){var t;let{title:a,icon:n,className:i,logoKey:s,children:o}=e,r=null!==(t=b[null!=n?n:""])&&void 0!==t?t:d.IconFdsCheckCircleO;return(0,l.jsx)(m.T,{className:i,dataQa:{element:p.xJ.Block,name:"card"},children:(0,l.jsxs)(c,{className:h().card,children:[(0,l.jsxs)("div",{className:h().titleContainer,children:[n&&(0,l.jsx)(m.T,{dataQa:{element:p.xJ.Icon,name:"cardIcon"},className:h().iconWrapper,children:(0,l.jsx)(r,{size:24})}),s&&(0,l.jsx)("div",{className:h().logo,children:s}),(0,l.jsx)(m.T,{dataQa:{element:p.xJ.Header,name:"cardTitle"},children:(0,l.jsx)(u.X6,{type:"h4",as:"div",children:a})})]}),o]})})}var v=a(2265),g=a(75461),T=a(96981),j=a.n(T);function f(e){let{text:t,expandedText:a,className:n}=e,[i,o]=(0,v.useState)(!1);return(0,l.jsxs)(m.T,{className:(0,s.Z)(j().wrapper,n),dataQa:{element:p.xJ.Block,name:"expandedContent"},children:[(0,l.jsx)(m.T,{tag:"p",dataQa:{element:p.xJ.Text,name:"text"},children:t}),(0,l.jsx)("div",{className:(0,s.Z)(j().grid,{[j().open]:i}),children:(0,l.jsx)(m.T,{className:j().gridInner,tag:"p",dataQa:{element:p.xJ.Text,name:"expandedText"},children:a})}),(0,l.jsx)(m.T,{dataQa:{element:p.xJ.Button,name:"expandButton"},children:(0,l.jsx)(g.rU,{text:i?"Свернуть":"Показать еще",as:"button",type:"button",onClick:function(){o(e=>!e)}})})]})}var y=a(33145),k={src:"/invest/bonds/_next/static/media/no-logo.aee2f188.svg",height:32,width:32,blurWidth:0,blurHeight:0},C=a(82919),N=a.n(C);let S=(0,v.memo)(function(e){let{src:t,alt:a,size:n=46,className:i}=e,[o,r]=(0,v.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v.Suspense,{children:(0,l.jsx)(y.default,{"data-qa":"logo-image",className:(0,s.Z)(N().logoImage,!o&&N().hidden,i),src:null!=t?t:k,alt:a,width:n,height:n,onLoad:function(e){let{currentTarget:t}=e;t.naturalWidth>0&&r(!0)},unoptimized:!0})}),(0,l.jsx)(y.default,{"data-qa":"logo-no-logo-image",className:(0,s.Z)(N().logoImage,o&&N().notDisplayed,i),src:k,alt:"Логотип не загрузился",width:n,height:n})]})});S.displayName="Logo";var A=a(93333),B=a.n(A);function w(e){let{text:t,tooltip:a,gap:n=6,hintSize:i=20,hintColor:o="var(--color-gray-800)",className:r,onIconClick:c}=e;return(0,l.jsxs)(m.T,{className:(0,s.Z)(B().wrapper,r),style:{gap:"".concat(n,"px")},dataQa:{element:p.xJ.Block,name:"textWithHint"},children:[(0,l.jsx)(m.T,{dataQa:{element:p.xJ.Text,name:"text"},children:t}),a?(0,l.jsx)(m.T,{dataQa:{element:p.xJ.Hint,name:"hint"},children:(0,l.jsxs)(g.kW,{className:B().hint,text:a,position:"top",auto:!1,inverted:!0,children:[(0,l.jsx)("span",{className:"visually-hidden",children:"Подробнее"}),(0,l.jsx)(d.IconFdsQuestionCircleO,{size:i,style:{fontSize:"".concat(i,"px"),color:o},onClick:c})]})}):null]})}},96369:function(e,t,a){"use strict";a.d(t,{J:function(){return o}});var n=a(2265),i=a(99376),l=a(42798),s=a.n(l);function o(){let e=(0,i.useParams)(),t=(0,i.usePathname)();return(0,n.useCallback)(a=>{let{prefix:n,element:i,name:l,index:o}=a,r=t.split("/").filter(e=>e).map(t=>{var a;return null!==(a=Object.keys(e).find(a=>e[a]===t))&&void 0!==a?a:t});r.unshift("bonds");let c=r.join("-"),d=s()(l),u=void 0!==o?"-".concat(function(e){if(Number.isNaN(e)||e<0)throw Error("Incorrect value '".concat(e,"' for the property 'index'. Must be a number and >= 0}"));return e}(o)):"";return"".concat(n?"".concat(n,"-"):"").concat(c,"-").concat(i,"-").concat(d).concat(u)},[e,t])}},1883:function(e,t,a){"use strict";a.d(t,{T:function(){return s}});var n=a(30631);let i=a(64131).Z.get("auth.gtm_customer_id"),l=e=>{(0,n.AB)(e)};function s(e,t,a){l({event:"data_event",customer_id:i,eventCategory:e,eventAction:t,eventLabel:null==a?void 0:a.eventLabel,eventValue:null==a?void 0:a.eventValue,eventNameCard:null==a?void 0:a.eventNameCard,eventUrl:null==a?void 0:a.eventUrl})}},77386:function(e){e.exports={aboutContent:"About_aboutContent__BFZBF"}},62449:function(e){e.exports={desktopTabs:"DesktopTabs_desktopTabs__4Z0Y_",desktopTabsTable:"DesktopTabs_desktopTabsTable__oBYvr",active:"DesktopTabs_active__U23bf",desktopTabsTableCellGrid:"DesktopTabs_desktopTabsTableCellGrid__Y8Xge"}},83145:function(e){e.exports={list:"Lists_list__jHwK3",listTitle:"Lists_listTitle__VwcHf"}},65990:function(e){e.exports={mobileTabs:"MobileTabs_mobileTabs__uAHdg",mobileTabsButton:"MobileTabs_mobileTabsButton__aQBCc",last:"MobileTabs_last__RWfiH",modal:"MobileTabs_modal__Tf0wS",modalContentList:"MobileTabs_modalContentList__5vMtQ",modalContentListItem:"MobileTabs_modalContentListItem__zF65l"}},88358:function(e){e.exports={list:"Advantages_list__PIwgX",listItem:"Advantages_listItem__GCBvA",bullet:"Advantages_bullet__Cy_8X",icon:"Advantages_icon__eX0gp",title:"Advantages_title__GHvNL"}},2824:function(e){e.exports={container:"BondConditions_container__cYeUv",condition:"BondConditions_condition__D1bbI",key:"BondConditions_key__22GDM",value:"BondConditions_value__KXNEZ",hintButton:"BondConditions_hintButton__HJrp_"}},8307:function(e){e.exports={buttons:"BondDetailCalculator_buttons__BqJRA"}},69050:function(e){e.exports={wrapper:"BondRating_wrapper__4W_f1",description:"BondRating_description__d7D1U",ratingTitle:"BondRating_ratingTitle__HKTrS",ratingIndicators:"BondRating_ratingIndicators__b0esM",cmsRate:"BondRating_cmsRate__thn57"}},82367:function(e){e.exports={ratingIndicators:"RatingIndicators_ratingIndicators__KWiwf",ratingSegment:"RatingIndicators_ratingSegment__xcibq",active:"RatingIndicators_active__7NIOZ"}},28009:function(e){e.exports={rating:"RatingTitle_rating__2bVIa",infoIcon:"RatingTitle_infoIcon__r8Pfa",content:"RatingTitle_content__HCOgS",info:"RatingTitle_info__dJeb2",descriptionWrapper:"RatingTitle_descriptionWrapper__zXJnh",active:"RatingTitle_active__KwzH9",revoked:"RatingTitle_revoked__qj5fO",revokedContent:"RatingTitle_revokedContent__6lvps",list:"RatingTitle_list__hAEED",listItem:"RatingTitle_listItem__KmfMo"}},2950:function(e){e.exports={container:"Calculator_container__nW8iy"}},88159:function(e){e.exports={container:"CalculatorLabels_container__TWZ1X",value:"CalculatorLabels_value__2a_Uy",yieldValue:"CalculatorLabels_yieldValue__MFrlr"}},43952:function(e){e.exports={container:"Detail_container__EmmmD",content:"Detail_content__2ZoKw",leftColumn:"Detail_leftColumn__5N4dS",paymentSchedule:"Detail_paymentSchedule__mbxsR"}},2647:function(e){e.exports={aboutContainer:"common_aboutContainer__4Rs7X",aboutValueDescription:"common_aboutValueDescription__Bs6Lq"}},7558:function(e){e.exports={header:"DetailHeader_header__geU5v",headerTitleWrapper:"DetailHeader_headerTitleWrapper__ZwuwQ",headerSubtitleWrapper:"DetailHeader_headerSubtitleWrapper__HPTpu",headerSubtitle:"DetailHeader_headerSubtitle__GueRG",headerShare:"DetailHeader_headerShare__mGfBg",headerBadges:"DetailHeader_headerBadges__9WiPr",headerMobileBadge:"DetailHeader_headerMobileBadge__FOwjD",headerDesktopBadge:"DetailHeader_headerDesktopBadge__A7T7Q",socialShareLinks:"DetailHeader_socialShareLinks__Yv50V"}},99796:function(e){e.exports={wrapper:"Parameters_wrapper__bonS4",parametersWrapper:"Parameters_parametersWrapper__VrBi0",parameterItem:"Parameters_parameterItem__mlEQ9",parameterTitle:"Parameters_parameterTitle__SHx_O"}},23740:function(e){e.exports={description:"PaymentSchedule_description__WVpOE"}},82047:function(e){e.exports={table:"PaymentScheduleTable_table__QO_NP",paid:"PaymentScheduleTable_paid___W38h",icon:"PaymentScheduleTable_icon__znZLm",note:"PaymentScheduleTable_note__ggP7p"}},78014:function(e){e.exports={section:"PurchaseStepCards_section__4XdIA",heading:"PurchaseStepCards_heading__xwx0H",cards:"PurchaseStepCards_cards__b6MD9",card:"PurchaseStepCards_card__CZKp2",cardText:"PurchaseStepCards_cardText__uVsvU",buyButton:"PurchaseStepCards_buyButton__eZkjQ"}},19517:function(e){e.exports={shareWrapper:"SocialShareLinks_shareWrapper__zS7TV",shareButton:"SocialShareLinks_shareButton__DlK8_",shareButtonOpen:"SocialShareLinks_shareButtonOpen__iSVBq",shareSocialList:"SocialShareLinks_shareSocialList__oFkNy",open:"SocialShareLinks_open__zikGU",visible:"SocialShareLinks_visible__Lk9xg",shareSocialButton:"SocialShareLinks_shareSocialButton__cUPTN"}},57707:function(e){e.exports={box:"Box_box__U3pTk","box--primary":"Box_box--primary__bmk_7","box--secondary":"Box_box--secondary__E8F3g"}},3790:function(e){e.exports={iconWrapper:"Card_iconWrapper__x_TIH",titleContainer:"Card_titleContainer__x03lb",card:"Card_card__S3kD8",logo:"Card_logo__vL6_z"}},96981:function(e){e.exports={wrapper:"ExpandedContent_wrapper__AHH29",grid:"ExpandedContent_grid__gVwbJ",open:"ExpandedContent_open__IA7BE",gridInner:"ExpandedContent_gridInner__wLPJ_"}},82919:function(e){e.exports={logoImage:"Logo_logoImage__k98yw",notDisplayed:"Logo_notDisplayed__wxRml",hidden:"Logo_hidden__EbuIV"}},93333:function(e){e.exports={wrapper:"TextWithHint_wrapper__37Xpq",hint:"TextWithHint_hint__0_S4x"}}},function(e){e.O(0,[2347,450,2264,7024,1390,4207,839,207,3544,5501,8889,3646,5166,5594,5878,9362,7986,8483,7227,2971,2117,1744],function(){return e(e.s=33169)}),_N_E=e.O()}]);