1(self.webpackChunkigm_client=self.webpackChunkigm_client||[]).push([[9714],{25909:(t,e,i)=>{"use strict";i.r(e),i.d(e,{BondFactsheetModule:()=>Et});var o=i(38583),n=i(29790),a=i(97706),s=i(12630),l=i(64762),d=i(28645),r=i(35758),c=i(25917),p=i(78641),h=i(98506),u=i(69370),b=i(2874),g=i(68939),f=i(93342),v=i(88002),T=i(80287),m=i(12048),y=i(37716),x=i(39075),B=i(38925),L=i(7785),S=i(30830),D=i(31411),_=i(50631),Z=i(32517),w=i(23080),C=i(67097),A=i(76174),M=i(12927),k=i(98542),I=i(82083),O=i(71155),E=i(83385),F=i(20801),R=i(16890),q=i(92590),N=i(28133),Y=i(43470),U=i(11101),P=i(17018),J=i(15034),H=i(63988);const z=["bondHeaderTpl"],Q=["bondNotificationTpl"],$=["shareMobileTpl"];function W(t,e){1&t&&y.GkF(0)}function j(t,e){if(1&t&&(y.ynx(0),y.YNc(1,W,1,0,"ng-container",9),y.BQk()),2&t){y.oxw();const t=y.MAs(2);y.xp6(1),y.Q6J("ngTemplateOutlet",t)}}const G=function(){return{default:"Bond Factsheet Not Available"}};function K(t,e){1&t&&(y._UZ(0,"ui-empty",10),y.ALo(1,"translate")),2&t&&y.Q6J("content",y.xi3(1,1,"b2b.igm.bond.factsheet.not.available",y.DdM(4,G)))}const V=function(){return{default:"Link Copied."}};function X(t,e){1&t&&(y.TgZ(0,"div",11),y._UZ(1,"ui-icon",12),y.TgZ(2,"div",13),y._uU(3),y.ALo(4,"translate"),y.qZA(),y.qZA()),2&t&&(y.xp6(3),y.Oqu(y.xi3(4,1,"b2b.link.copied",y.DdM(4,V))))}function tt(t,e){if(1&t){const t=y.EpF();y._UZ(0,"nz-divider",14),y.TgZ(1,"div",15),y.TgZ(2,"div",16),y.NdJ("click",function(){return y.CHM(t),y.oxw().onTriggerShare("Facebook")}),y._UZ(3,"img",17),y.TgZ(4,"span",18),y._uU(5,"Facebook"),y.qZA(),y.qZA(),y.TgZ(6,"div",16),y.NdJ("click",function(){return y.CHM(t),y.oxw().onTriggerShare("WhatsApp")}),y._UZ(7,"img",19),y.TgZ(8,"span",18),y._uU(9,"Whatsapp"),y.qZA(),y.qZA(),y.TgZ(10,"div",16),y.NdJ("click",function(){return y.CHM(t),y.oxw().onTriggerShare("Telegram")}),y._UZ(11,"img",20),y.TgZ(12,"span",18),y._uU(13,"Telegram"),y.qZA(),y.qZA(),y.TgZ(14,"div",16),y.NdJ("click",function(){return y.CHM(t),y.oxw().onTriggerShare("LinkedIn")}),y._UZ(15,"img",21),y.TgZ(16,"span",18),y._uU(17,"LinkedIn"),y.qZA(),y.qZA(),y.qZA(),y.TgZ(18,"div",22),y.NdJ("click",function(){return y.CHM(t),y.oxw().onTriggerShare("CopyUrl")}),y.TgZ(19,"span",23),y._uU(20),y.qZA(),y._UZ(21,"ui-icon",24),y.qZA()}if(2&t){const t=y.oxw();y.xp6(20),y.Oqu(t.shareUrl)}}function et(t,e){if(1&t&&y._UZ(0,"ui-tag",38),2&t){const t=e.$implicit,i=y.oxw(2);y.Q6J("nzType",t)("nzBondIconOnly",!1)("tooltipTitle",(null==i.bondTagsTooltips.bondTagTooltips?null:i.bondTagsTooltips.bondTagTooltips[t])||"")}}function it(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"div",39),y.TgZ(1,"img",40),y.NdJ("click",function(){return y.CHM(t),y.oxw(2).onTriggerShare("WhatsApp")}),y.qZA(),y.TgZ(2,"img",41),y.NdJ("click",function(){return y.CHM(t),y.oxw(2).onTriggerShare("Facebook")}),y.qZA(),y.TgZ(3,"img",42),y.NdJ("click",function(){return y.CHM(t),y.oxw(2).onTriggerShare("Telegram")}),y.qZA(),y.TgZ(4,"img",43),y.NdJ("click",function(){return y.CHM(t),y.oxw(2).onTriggerShare("LinkedIn")}),y.qZA(),y.TgZ(5,"img",44),y.NdJ("click",function(){return y.CHM(t),y.oxw(2).onTriggerShare("CopyUrl")}),y.qZA(),y.qZA()}}function ot(t,e){if(1&t&&(y.TgZ(0,"div",45),y._UZ(1,"ui-icon",46),y.TgZ(2,"span",47),y._uU(3),y.qZA(),y.qZA()),2&t){const t=y.oxw(2);y.xp6(3),y.Oqu(null==t.factsheetData||null==t.factsheetData.bondInfoBean?null:t.factsheetData.bondInfoBean.bondIssuer)}}const nt=function(t){return{default:t}};function at(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"div",25),y.YNc(1,et,1,3,"ui-tag",26),y.qZA(),y.TgZ(2,"div",27),y._UZ(3,"h1",28),y.TgZ(4,"div",29),y.TgZ(5,"div",30),y.TgZ(6,"span",31),y._uU(7),y.ALo(8,"translate"),y.qZA(),y.TgZ(9,"span",32),y._uU(10),y.qZA(),y.qZA(),y.TgZ(11,"div",33),y.TgZ(12,"div",34),y.NdJ("click",function(e){return y.CHM(t),y.oxw().onShareClick(e)}),y._UZ(13,"ui-icon",35),y.qZA(),y.YNc(14,it,6,0,"div",36),y.qZA(),y.qZA(),y.qZA(),y.YNc(15,ot,4,1,"div",37)}if(2&t){const t=y.oxw();y.xp6(1),y.Q6J("ngForOf",t.bondTags),y.xp6(2),y.Q6J("innerHTML",null==t.bondDisplay?null:t.bondDisplay.bondName,y.oJD),y.xp6(4),y.hij(" ",y.xi3(8,8,"perpetual"===(null==t.factsheetData?null:t.factsheetData.bondType)?"b2b.igm.factsheet.bond.bid.yield.to.worst":"b2b.igm.factsheet.bond.bid.yield.to.maturity",y.VKq(11,nt,"perpetual"===(null==t.factsheetData?null:t.factsheetData.bondType)?"Bid Yield to Worst":"Bid Yield to Maturity"))," "),y.xp6(3),y.Oqu("perpetual"===(null==t.factsheetData?null:t.factsheetData.bondType)?t.headerBidYieldToWorst:t.headerBidYieldToMaturity),y.xp6(3),y.Q6J("icon","assets/images/bond-factsheet/share.svg")("iconType","imgSrc"),y.xp6(1),y.Q6J("ngIf",!t.isMobile&&t.isShareOpen),y.xp6(1),y.Q6J("ngIf",!t.hideContent)}}
1function st(t,e){if(1&t&&(y.ynx(0),y._UZ(1,"h1",48),y.BQk()),2&t){const t=y.oxw(2);y.xp6(1),y.Q6J("innerHTML",null==t.bondDisplay?null:t.bondDisplay.bondName,y.oJD)}}function lt(t,e){if(1&t&&y.YNc(0,st,2,1,"ng-container",0),2&t){const t=y.oxw(),e=y.MAs(12);y.Q6J("ngIf",t.hideContent)("ngIfElse",e)}}function dt(t,e){if(1&t&&y._UZ(0,"ui-tag",56),2&t){const t=e.$implicit,i=y.oxw(2);y.Q6J("nzType",t)("nzBondIconOnly",!0)("tooltipTitle",(null==i.bondTagsTooltips.bondTagTooltips?null:i.bondTagsTooltips.bondTagTooltips[t])||"")}}function rt(t,e){if(1&t&&(y.TgZ(0,"div",49),y.TgZ(1,"div",50),y.TgZ(2,"a",51),y._UZ(3,"ui-icon",52),y.qZA(),y.qZA(),y.TgZ(4,"div",53),y.YNc(5,dt,1,3,"ui-tag",54),y.qZA(),y.TgZ(6,"div",55),y._UZ(7,"h1",48),y.qZA(),y.TgZ(8,"div",45),y._UZ(9,"ui-icon",46),y.TgZ(10,"span",47),y._uU(11),y.qZA(),y.qZA(),y.qZA()),2&t){const t=y.oxw();y.xp6(2),y.Q6J("routerLink",t.isLogin?"/client/trade/stock/price":"/dashboard"),y.xp6(3),y.Q6J("ngForOf",t.bondTags),y.xp6(2),y.Q6J("innerHTML",null==t.bondDisplay?null:t.bondDisplay.bondName,y.oJD),y.xp6(4),y.Oqu(null==t.factsheetData||null==t.factsheetData.bondInfoBean?null:t.factsheetData.bondInfoBean.bondIssuer)}}function ct(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"div",82),y.NdJ("click",function(){const e=y.CHM(t).$implicit;return y.oxw(4).openTools(e.url)}),y.ALo(1,"async"),y.TgZ(2,"div",80),y.ALo(3,"async"),y._UZ(4,"ui-icon",83),y.TgZ(5,"span",80),y.ALo(6,"async"),y._uU(7),y.ALo(8,"translate"),y.qZA(),y.qZA(),y._UZ(9,"ui-icon",84),y.qZA()}if(2&t){const t=e.$implicit,i=y.oxw(4);y.Q6J("ngClass",y.lcZ(1,5,i.isMobileResolution$)?"gap-2 p-3 min-h-20":"p-4"),y.xp6(2),y.Q6J("ngClass",y.lcZ(3,7,i.isMobileResolution$)?"flex flex-col items-start justify-center gap-2 min-w-0":"flex items-center gap-3"),y.xp6(2),y.Q6J("icon",t.icon),y.xp6(1),y.Q6J("ngClass",y.lcZ(6,9,i.isMobileResolution$)?"text-xs font-weight-medium":"text-sm font-weight-medium"),y.xp6(2),y.Oqu(y.xi3(8,11,t.key,y.VKq(14,nt,t.labelDefault)))}}function pt(t,e){if(1&t&&(y.TgZ(0,"div",79),y.TgZ(1,"div",80),y.ALo(2,"async"),y.YNc(3,ct,10,16,"div",81),y.qZA(),y.qZA()),2&t){const t=y.oxw(3);y.xp6(1),y.Q6J("ngClass",y.lcZ(2,2,t.isMobileResolution$)?"grid grid-cols-4 gap-2":"flex flex-col gap-2 overflow-y-auto"),y.xp6(2),y.Q6J("ngForOf",t.tools)}}const ht=function(t){return{"no-border":t}},ut=function(t){return{"mt-2":t}},bt=function(){return{default:"Tools"}};function gt(t,e){if(1&t){const t=y.EpF();y.ynx(0),y.TgZ(1,"section",60),y.TgZ(2,"app-bond-factsheet-overview",61),y.NdJ("beSwitchEvent",function(e){return y.CHM(t),y.oxw(2).isBESwitch=e})("transactionTypeChange",function(e){return y.CHM(t),y.oxw(2).onTransactionTypeChange(e)}),y.qZA(),y.qZA(),y.TgZ(3,"section",62),y._UZ(4,"app-bond-factsheet-information",63),y.qZA(),y.TgZ(5,"section",64),y._UZ(6,"app-bond-factsheet-related-document",65),y.qZA(),y.TgZ(7,"section",66),y.TgZ(8,"div",67),y.ALo(9,"async"),y.TgZ(10,"div",68),y.TgZ(11,"div",69),y._UZ(12,"app-bond-factsheet-potential-income-explained",70),y.qZA(),y.TgZ(13,"div",71),y.TgZ(14,"nz-card",72),y.ALo(15,"async"),y.TgZ(16,"h2",73),y.ALo(17,"async"),y._uU(18),y.ALo(19,"translate"),y.qZA(),y.YNc(20,pt,4,4,"div",74),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.qZA(),y.TgZ(21,"section",75),y._UZ(22,"app-bond-factsheet-fee-and-charges",76),y.qZA(),y.TgZ(23,"section",77),y._UZ(24,"app-bond-factsheet-related-bond",78),y.qZA(),y.BQk()}if(2&t){const t=y.oxw(2);y.xp6(2),y.Q6J("factsheetData",t.factsheetData)("bondType","bonds")("bondExpressData",t.bondExpressData)("bondExpressEnabled",t.bondExpressEnabled)("bondDailyPriceList",t.bondDailyPriceList)("lotTypeToBondItemMap",t.lotTypeToBondItemMap)("hasMarginAccount",t.hasMarginAcc)("ltvRatio",t.ltvRatio)("ltvSource",t.ltvSource)("marginAccountLoanSource",t.marginAccountLoanSource),y.xp6(2),y.Q6J("factsheetData",t.factsheetData)("lotTypeToBondItemMap",t.lotTypeToBondItemMap)("lotType",t.lotType),y.xp6(2),y.Q6J("factsheetData",t.factsheetData),y.xp6(2),y.Q6J("ngClass",y.lcZ(9,29,t.isMobileResolution$)?"mb-2":"mb-6"),y.xp6(4),y.Q6J("gstRate",t.gstRate)("bondExpressData",t.bondExpressData)("isBESwitch",t.isBESwitch)("factsheetData",t.factsheetData)("lotTypeToBondItemMap",t.lotTypeToBondItemMap)("lotType",t.lotType),y.xp6(2),y.Q6J("ngClass",y.VKq(38,ht,y.lcZ(15,31,t.isMobileResolution$))),y.xp6(2),y.Q6J("ngClass",y.VKq(40,ut,y.lcZ(17,33,t.isMobileResolution$))),y.xp6(2),y.hij(" ",y.xi3(19,35,"b2b.bond.factsheet.tools",y.DdM(42,bt))," "),y.xp6(2),y.Q6J("ngIf",t.tools.length>0),y.xp6(2),y.Q6J("factsheetData",t.factsheetData)("gstRate",t.gstRate)("bondType","bonds"),y.xp6(2),y.Q6J("relatedBonds",t.relatedBonds)}}const ft=function(){return[]},vt=function(t,e){return{"bond-factsheet__content-bg--web":t,"bond-factsheet__content-bg--sticky":e}};function Tt(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"app-ui-factsheet-layout",57),y.NdJ("hideContentChange",function(e){return y.CHM(t),y.oxw().onHideContentChange(e)}
1),y.ALo(1,"async"),y.TgZ(2,"div",58),y.ALo(3,"async"),y.ALo(4,"async"),y.YNc(5,gt,25,43,"ng-container",59),y.qZA(),y.qZA()}if(2&t){const t=y.oxw(),e=y.MAs(10),i=y.MAs(8),o=y.MAs(16);y.Q6J("isLoadingFactsheet",t.isLoadingFactsheet)("isBond",!0)("tabs",t.tabs)("customHeaderTpl",y.lcZ(1,9,t.isMobileResolution$)?e:i)("mobileBottomTpl",o)("breadcrumbs",t.hideContent?y.DdM(15,ft):t.breadcrumbs)("showPoweredByImage",!0),y.xp6(2),y.Q6J("ngClass",y.WLB(16,vt,!y.lcZ(3,11,t.isMobileResolution$),t.hideContent&&!y.lcZ(4,13,t.isMobileResolution$))),y.xp6(3),y.Q6J("ngIf",!t.isLoadingFactsheet)}}function mt(t,e){if(1&t){const t=y.EpF();y.TgZ(0,"div",85),y.TgZ(1,"div",86),y.TgZ(2,"div",87),y.TgZ(3,"span",88),y._uU(4),y.ALo(5,"translate"),y.qZA(),y.TgZ(6,"span",32),y._uU(7),y.qZA(),y.qZA(),y.TgZ(8,"div",89),y.TgZ(9,"div",90),y.NdJ("click",function(e){return y.CHM(t),y.oxw().onShareClick(e)}),y._UZ(10,"ui-icon",35),y.qZA(),y.qZA(),y.qZA(),y.qZA()}if(2&t){const t=y.oxw();y.xp6(4),y.hij(" ",y.xi3(5,4,"perpetual"===(null==t.factsheetData?null:t.factsheetData.bondType)?"b2b.igm.factsheet.bond.bid.yield.to.worst":"b2b.igm.factsheet.bond.bid.yield.to.maturity",y.VKq(7,nt,"perpetual"===(null==t.factsheetData?null:t.factsheetData.bondType)?"Bid Yield to Worst":"Bid Yield to Maturity"))," "),y.xp6(3),y.Oqu("perpetual"===(null==t.factsheetData?null:t.factsheetData.bondType)?t.headerBidYieldToWorst:t.headerBidYieldToMaturity),y.xp6(3),y.Q6J("icon","assets/images/bond-factsheet/share.svg")("iconType","imgSrc")}}class yt{constructor(t,e,i,o,n,a,s,l,d,r,c,p,h,u,g,f,v,T){this.route=t,this.titleService=e,this.translateService=i,this.bondRestService=o,this.title=n,this.router=a,this.location=s,this.gstRestService=l,this.lsBondExpressDataService=d,this.bondCalculatorService=r,this.bondsService=c,this.lsBondDataService=p,this.notification=h,this.accountService=u,this.stockMarginService=g,this.marginSharedService=f,this.decimalPipe=v,this.nzModalService=T,this.isLoadingFactsheet=!0,this.factsheetData={},this.relatedBonds=[],this.isLogin=!1,this.issueCode="",this.bondDailyPriceList=[],this.gstRate=9,this.tabs=b.c.BOND_FACTSHEET_TABS,this.isValidBonds=!0,this.bondDisplay={},this.bondTags=[],this.bondExpressData={},this.bondExpressBusinessHours=null,this.bondExpressEnabled=!1,this.isBESwitch=!1,this.selectedTransactionType="FULL_LOTS",this.transactionTypeToLotType={FULL_LOTS:"fullLotType",ODD_LOTS:"oddLotType",OTC:"otcFullLotType"},this.tools=b.c.BOND_TOOLS_LIST,this.hasMarginAcc=!1,this.marginRefno="",this.ltvRatio="",this.ltvSource="",this.marginAccountLoanSource=m.x.IFAST_LOAN_SOURCE,this.breadcrumbs=[],this.hideContent=!1,this.isMobile=!1,this.isShareOpen=!1,this.shareUrl="",this.lastLtvRequestKey=""}ngOnInit(){this.isMobileResolution$.subscribe(t=>{this.isMobile=t}),this.getLoginStatus$.subscribe(t=>{this.isLogin=t===u.$.CLIENT_LOGIN_STATUS_OK,this.isLogin?this.loadMarginAccount():this.resetMarginInfo()}),this.route.params.subscribe(t=>{this.issueCode=t.isincode||"",this.loadFactsheetData(this.issueCode)})}loadFactsheetData(t){this.isLoadingFactsheet=!0,this.resetLtvInfo(),(this.isLogin?this.bondRestService.getBondFactsheetDataPostLogin(t):this.bondRestService.getBondFactsheetData(t)).subscribe({next:e=>{var i,o,n,a,s,l,d,c,p,h,u,b,f;if(!e)return this.isValidBonds=!1,void(this.isLoadingFactsheet=!1);this.isValidBonds=!0,this.factsheetData=Object.assign(Object.assign({},e),{bondType:this.bondsService.getBondType(e),isSGSBond:"SGS"===(null===(i=null==e?void 0:e.bondInfoBean)||void 0===i?void 0:i.productCategory),isSGTreasury:"Singapore Treasury Bill"===(null===(o=null==e?void 0:e.bondInfoBean)||void 0===o?void 0:o.bondIssuer)}),this.title.setTitle(this.factsheetData.bondInfoBean.bondName+"| iFAST Global Markets");let v=this.router.url,T=(null===(s=null===(a=null===(n=this.factsheetData)||void 0===n?void 0:n.bondInfoBean)||void 0===a?void 0:a.bondName)||void 0===s?void 0:s.replace(/\W+/g,"-"))||"";T=encodeURIComponent(T),v=v.replace(/^(.+\/factsheet\/\w+)(?:\.[^\/]+)?(?:\/.*)?$/,"$1")+"/"+T,this.location.go(v),this.breadcrumbs=[{label:"b2b.igm.factsheet.bonds",labelDefault:"Bonds"},{label:"b2b.igm.factsheet.new.bond",labelDefault:"Factsheet"},{label:null===(d=null===(l=this.factsheetData)||void 0===l?void 0:l.bondInfoBean)||void 0===d?void 0:d.bondIssuer,labelDefault:null===(p=null===(c=this.factsheetData)||void 0===c?void 0:c.bondInfoBean)||void 0===p?void 0:p.bondIssuer}],this.bondDisplay=this.bondsService.processBondName((null===(h=this.factsheetData)||void 0===h?void 0:h.bondFactSheetDisplay)||{}),this.bondsService.processBondName((null===(u=this.factsheetData)||void 0===u?void 0:u.bondInfoBean)||{}),this.bondTags=this.bondsService.buildBondTags(null===(b=this.factsheetData)||void 0===b?void 0:b.bondInfoBean),this.bondTagsTooltips=this.bondsService.getBondTagTooltips(null===(f=this.factsheetData)||void 0===f?void 0:f.bondInfoBean),this.loadBondLtv();const m=this.bondRestService.findLatestAskBidPrice(t);this.initLS(),(0,r.D)({relatedBonds:this.loadRelatedBondList(),loadBondLatestThreeMonthPrice:m,gstRate:this.loadGstRate(),loadBondExpress:this.loadBondExpressBusinessHours(),findBondList:this.findBondListByIssueCodes()}).pipe((0,g.x)(()=>{this.loadBondData(),this.isLoadingFactsheet=!1})).subscribe({next:({loadBondLatestThreeMonthPrice:t})=>{this.bondDailyPriceList=null==t?void 0:t.lastest3MthHisPriceList,this.isLoadingFactsheet=!1},error:()=>{this.isLoadingFactsheet=!1}})},error:()=>{this.isValidBonds=!1,this.isLoadingFactsheet=!1}})}loadBondExpressBusinessHours(){var t,e;return"Y"===(null===(e=null===(t=this.factsheetData)||void 0===t?void 0:t.bondInfoBean)||void 0===e?void 0:e.bmpSgEnabled)?this.bondRestService.checkIsBondExpressBusinessHours().pipe((0,f.b)(t=>{t&&(this.bondExpressBusinessHours=t,this.initBondExpress())})):(0,c.of)(null)}initBondExpress(){this.bondExpressLsClient=this.lsBondExpressDataService.createBondExpressLsClient(),this.bondExpressLsClient.createSession(this.createSessionSuccessCallback.bind(this))}createSessionSuccessCallback(){this.bondExpressLsClient.subscribeBondList(this.addBondCallback.bind(this),this.deleteBondCallback.bind(this),this.updateBondCallback.bind(this))}addBondCallback(t,e){var i,o;t===(null===(o=null===(i=this.factsheetData)||void 0===i?void 0:i.bondFactSheetDisplay)||void 0===o?void 0:o.issueC
1ode)&&(this.bondExpressData=e,this.bondExpressEnabled=!0,this.bondExpressLsClient.subscribeBondPrice(t,e,this.updateBondCallback.bind(this)))}deleteBondCallback(t){var e,i;t===(null===(i=null===(e=this.factsheetData)||void 0===e?void 0:e.bondFactSheetDisplay)||void 0===i?void 0:i.issueCode)&&(this.bondExpressEnabled=!1,delete this.bondExpressData,this.bondExpressLsClient.unsubscribeBondPrice(t))}updateBondCallback(t,e,i){this.bondExpressData[e]=i}findBondListByIssueCodes(){return this.bondRestService.findBondListByIssueCodes([this.issueCode]).pipe((0,f.b)(t=>{var e,i,o,n;t&&(null==t?void 0:t.length)>0&&(this.factsheetData=Object.assign(Object.assign({},this.factsheetData),{fullLotType:null===(e=t[0])||void 0===e?void 0:e.fullLotType,oddLotType:null===(i=t[0])||void 0===i?void 0:i.oddLotType,routerToFullLotTypeMap:null===(o=t[0])||void 0===o?void 0:o.routerToFullLotTypeMap,routerToOddLotTypeMap:null===(n=t[0])||void 0===n?void 0:n.routerToOddLotTypeMap}))}))}loadGstRate(){return this.gstRestService.getGstRate().pipe((0,f.b)(t=>{T.$.RESPONSE_SUCCESS===(null==t?void 0:t.status)&&(this.gstRate=parseInt(String(100*(null==t?void 0:t.data)-100),10))}))}loadRelatedBondList(){return(this.isLogin?this.bondRestService.findRelatedBondMapListByIssueCodePostLogin(this.issueCode):this.bondRestService.findRelatedBondMapListByIssueCode(this.issueCode)).pipe((0,v.U)(t=>t&&0!==t.length?t.filter(t=>t.issueCode!==this.issueCode).map(t=>{const e=[null==t?void 0:t.crSnpBond,null==t?void 0:t.crFitchBond].filter(t=>!!t);e.sort((t,e)=>{var i,o;return((null===(i=b.c.BOND_GRADE_RANKING)||void 0===i?void 0:i.indexOf(e))||0)-((null===(o=b.c.BOND_GRADE_RANKING)||void 0===o?void 0:o.indexOf(t))||0)});const i=e[0];return this.bondsService.processBondName(t),t.bondType=this.bondsService.getBondTypeWithParams(t.perpetual,t.maturityDate,t.issuerCall),Object.assign(Object.assign({},t),{crRating:i,crRatingName:i===(null==t?void 0:t.crSnpBond)?"S&P":"Fitch",crRatingDisplay:((null==t?void 0:t.crSnpBond)||"-")+"/"+((null==t?void 0:t.crFitchBond)||"-"),maturityDateInfo:this.bondsService.getMaturityDateDisplay(t),yieldDisplay:this.bondsService.getYieldDisplay(t),bondTags:this.bondsService.buildBondTags(t),bondTagTooltips:this.bondsService.getBondTagTooltips(t)})}):[]),(0,f.b)(t=>{this.relatedBonds=t}))}loadMarginAccount(){this.accountService.getPrimaryAccount().subscribe({next:t=>{var e;this.iamAccount=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e[0];const i=this.iamAccount||{};this.hasMarginAcc="Y"===i.marginEnabled&&"Y"===i.coMarginEnabled,this.marginRefno=this.hasMarginAcc&&i.refno||"",this.hasMarginAcc?this.loadBondLtv():this.resetLtvInfo()},error:()=>this.resetMarginInfo()})}loadBondLtv(){if(!this.hasMarginAcc||!this.issueCode)return;const t=`${this.marginRefno}|${this.issueCode}`;this.lastLtvRequestKey!==t&&(this.lastLtvRequestKey=t,this.stockMarginService.getInstrument([{symbol:this.issueCode,exchangeId:m.x.PRODUCT_TYPE_BOND}],this.marginRefno).subscribe({next:t=>{var e;const i=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e[0];if(!i)return void this.resetLtvInfo(!1);const o=this.marginSharedService.getLtvRatioInfo(i);this.ltvRatio="-"!==o.ltvRatioString?this.decimalPipe.transform(o.ltvRatio,"1.2-2"):null,this.ltvSource=o.loanSource,this.marginAccountLoanSource=i.loanSource||m.x.IFAST_LOAN_SOURCE},error:()=>this.resetLtvInfo(!1)}))}resetMarginInfo(){var t,e;this.iamAccount=void 0,this.hasMarginAcc=!1,this.marginRefno="",null===(e=null===(t=this.bondExpressLsClient)||void 0===t?void 0:t.logout)||void 0===e||e.call(t),this.bondExpressLsClient=void 0,this.lsBondDataService.logout(),this.resetLtvInfo()}resetLtvInfo(t=!0){this.ltvRatio="",this.ltvSource="",this.marginAccountLoanSource=m.x.IFAST_LOAN_SOURCE,t&&(this.lastLtvRequestKey="")}initLS(){var t;this.lsBondDataService.login(null===(t=this.iamAccount)||void 0===t?void 0:t.id,()=>{})}ngOnDestroy(){var t,e;null===(e=null===(t=this.bondExpressLsClient)||void 0===t?void 0:t.logout)||void 0===e||e.call(t),this.bondExpressLsClient=void 0,this.lsBondDataService.unsubscribeAllPriceQuote(),this.lsBondDataService.logout()}loadBondData(){var t,e,i,o,n;const a=new Map,s=null===(t=this.factsheetData)||void 0===t?void 0:t.bondInfoBean.issueCode,l=null===(i=null===(e=this.factsheetData)||void 0===e?void 0:e.routerToOddLotTypeMap)||void 0===i?void 0:i.TS,d=null===(n=null===(o=this.factsheetData)||void 0===o?void 0:o.routerToOddLotTypeMap)||void 0===n?void 0:n.BMP;a.set("FULL-"+s,this.factsheetData),a.set("OTCFULL-"+s,this.factsheetData),"BE_ODD"!==(null==l?void 0:l.label)&&"BE_ODD"!==(null==d?void 0:d.label)||a.set("ODD-"+s,this.factsheetData),this.processBondItem(s,a)}
1processBondItem(t,e){this.lsBondDataService.processFactsheetBond(t,e).subscribe(t=>{this.lotTypeToBondItemMap={};for(let e of t)this.lotTypeToBondItemMap[null==e?void 0:e.lotTypeDisplay]=e;this.syncDefaultTransactionType()})}onChangeSwitch(t){this.isBESwitch=t,this.bondCalculatorService.updateBESwitchEvent.emit(this.isBESwitch)}onChangeLot(t){this.lotType=t,this.bondCalculatorService.updateLotSwitchEvent.emit(this.lotType)}openTools(t){t&&window.open(t,"_blank")}onTransactionTypeChange(t){"FULL_LOTS"!==t&&"ODD_LOTS"!==t&&"OTC"!==t||(this.selectedTransactionType=t,this.lotType=this.transactionTypeToLotType[t])}onHideContentChange(t){this.hideContent=t}onDocumentClick(){this.isShareOpen=!1}onShareClick(t){t.stopPropagation(),this.isMobile||!this.isShareOpen?(this.shareUrl=window.location.href,this.isMobile?this.nzModalService.create({nzContent:this.shareMobileTpl,nzCentered:!0,nzTitle:"Share via",nzClosable:!0,nzWrapClassName:"share-modal",nzBodyStyle:{padding:"0 24px 24px 24px"},nzFooter:null}):this.isShareOpen=!0):this.isShareOpen=!1}onTriggerShare(t){var e,i;this.isShareOpen=!1;const o=this.shareUrl||window.location.href;this.shareUrl=o;const n=`Check out ${(null===(i=null===(e=this.factsheetData)||void 0===e?void 0:e.bondInfoBean)||void 0===i?void 0:i.bondName)||""} on iFAST Global Markets`,a=encodeURIComponent(o),s=encodeURIComponent(n);switch(t){case"WhatsApp":window.open(`https://web.whatsapp.com/send?text=${s}%0A${a}`);break;case"Facebook":window.open(`https://www.facebook.com/sharer/sharer.php?u=${a}`);break;case"Telegram":window.open(`https://t.me/share/url?url=${a}&text=${s}`);break;case"LinkedIn":window.open(`http://www.linkedin.com/shareArticle?mini=true&url=${a}`);break;case"CopyUrl":this.copyPageLink()}}copyPageLink(){const t=window.location.href;navigator.clipboard.writeText(t).then(()=>{this.notification.template(this.bondNotificationTpl,{nzPlacement:"topLeft",nzDuration:2500,nzAnimate:!0})})}get headerBidYieldToMaturity(){var t,e,i,o,n,a,s,l,d,r,c,p,h,u,b,g,f,v,T,m,y;if("callable"!==(null===(t=this.factsheetData)||void 0===t?void 0:t.bondType)&&"bullet"!==(null===(e=this.factsheetData)||void 0===e?void 0:e.bondType))return"-";const x=null===(i=this.factsheetData)||void 0===i?void 0:i.yieldData,B=null!==(s=null!==(n=null===(o=this.factsheetData)||void 0===o?void 0:o.bondLivePriceBean)&&void 0!==n?n:null===(a=this.factsheetData)||void 0===a?void 0:a.bondFactsheetPriceBean)&&void 0!==s?s:{};if("ODD_LOTS"===this.selectedTransactionType){const t=null===(l=this.lotTypeToBondItemMap)||void 0===l?void 0:l.oddLotType,e=null==t?void 0:t.lsPrice,i=(null===(c=null===(r=null===(d=null==t?void 0:t.routerToOddLotTypeMap)||void 0===d?void 0:d.TS)||void 0===r?void 0:r.lsItemName)||void 0===c?void 0:c.includes("BEX_PRICE-"))&&!(null==t?void 0:t.lsPrice2),o=!!(null===(u=null===(h=null===(p=null==t?void 0:t.routerToOddLotTypeMap)||void 0===p?void 0:p.BMP)||void 0===h?void 0:h.lsItemName)||void 0===u?void 0:u.includes("BOND_PRICE-"));return i?(null==e?void 0:e.bidPrice)?this.formatYieldForHeader(null==e?void 0:e.bidYield):"-":o?this.formatYieldForHeader(null==x?void 0:x.bidYtm):"-"}if("OTC"===this.selectedTransactionType)return this.formatYieldForHeader(null==B?void 0:B.bidYtm);const L=null===(b=this.lotTypeToBondItemMap)||void 0===b?void 0:b.fullLotType,S=null==L?void 0:L.lsPrice,D=(null===(v=null===(f=null===(g=null==L?void 0:L.routerToFullLotTypeMap)||void 0===g?void 0:g.TS)||void 0===f?void 0:f.lsItemName)||void 0===v?void 0:v.includes("BEX_PRICE-"))&&!(null==L?void 0:L.lsPrice2),_=!!(null===(y=null===(m=null===(T=null==L?void 0:L.routerToFullLotTypeMap)||void 0===T?void 0:T.BMP)||void 0===m?void 0:m.lsItemName)||void 0===y?void 0:y.includes("BOND_PRICE-"));return D||_?D?(null==S?void 0:S.bidPrice)?this.formatYieldForHeader(null==S?void 0:S.bidYield):"-":_?this.formatYieldForHeader(null==x?void 0:x.bidYtm):"-":this.formatYieldForHeader(null==B?void 0:B.bidYtm)}get headerBidYieldToWorst(){var t,e,i,o,n,a,s,l,d,r,c,p,h,u,b,g,f,v,T,m;if("perpetual"!==(null===(t=this.factsheetData)||void 0===t?void 0:t.bondType))return"-";const y=null===(e=this.factsheetData)||void 0===e?void 0:e.yieldData,x=null!==(a=null!==(o=null===(i=this.factsheetData)||void 0===i?void 0:i.bondLivePriceBean)&&void 0!==o?o:null===(n=this.factsheetData)||void 0===n?void 0:n.bondFactsheetPriceBean)&&void 0!==a?a:{};if("ODD_LOTS"===this.selectedTransactionType){const t=null===(s=this.lotTypeToBondItemMap)||void 0===s?void 0:s.oddLotType,e=null==t?void 0:t.lsPrice,i=(null===(r=null===(d=null===(l=null==t?void 0:t.routerToOddLotTypeMap)||void 0===l?void 0:l.TS)||void 0===d?void 0:d.lsItemName)||void 0===r?void 0:r.includes("BEX_PRICE-"))&&!(null==t?void 0:t.lsPrice2),o=!!(null===(h=null===(p=null===(c=null==t?void 0:t.routerToOddLotTypeMap)||void 0===c?void 0:c.BMP)||void 0===p?void 0:p.lsItemName)||void 0===h?void 0:h.includes("BOND_PRICE-"));
1return i?(null==e?void 0:e.bidPrice)?this.formatYieldForHeader(null==e?void 0:e.bidYield):"-":o?this.formatYieldForHeader(null==y?void 0:y.bidYtw):"-"}if("OTC"===this.selectedTransactionType)return this.formatYieldForHeader(null==x?void 0:x.bidYldToWorst);const B=null===(u=this.lotTypeToBondItemMap)||void 0===u?void 0:u.fullLotType,L=null==B?void 0:B.lsPrice,S=(null===(f=null===(g=null===(b=null==B?void 0:B.routerToFullLotTypeMap)||void 0===b?void 0:b.TS)||void 0===g?void 0:g.lsItemName)||void 0===f?void 0:f.includes("BEX_PRICE-"))&&!(null==B?void 0:B.lsPrice2),D=!!(null===(m=null===(T=null===(v=null==B?void 0:B.routerToFullLotTypeMap)||void 0===v?void 0:v.BMP)||void 0===T?void 0:T.lsItemName)||void 0===m?void 0:m.includes("BOND_PRICE-"));return S||D?S?(null==L?void 0:L.bidPrice)?this.formatYieldForHeader(null==L?void 0:L.bidYield):"-":D?this.formatYieldForHeader(null==y?void 0:y.bidYtw):"-":this.formatYieldForHeader(null==x?void 0:x.bidYldToWorst)}formatYieldForHeader(t){return null!=t?(0,o.T3)((t||0)/100,"en","1.3-3"):"-"}syncDefaultTransactionType(){var t,e,i;(null===(t=this.lotTypeToBondItemMap)||void 0===t?void 0:t.fullLotType)?this.selectedTransactionType="FULL_LOTS":(null===(e=this.lotTypeToBondItemMap)||void 0===e?void 0:e.oddLotType)?this.selectedTransactionType="ODD_LOTS":(null===(i=this.lotTypeToBondItemMap)||void 0===i?void 0:i.otcFullLotType)&&(this.selectedTransactionType="OTC"),this.lotType=this.transactionTypeToLotType[this.selectedTransactionType]}}yt.\u0275fac=function(t){return new(t||yt)(y.Y36(s.gz),y.Y36(x.Dx),y.Y36(n.sK),y.Y36(B.n),y.Y36(x.Dx),y.Y36(s.F0),y.Y36(o.Ye),y.Y36(L.l),y.Y36(S.W),y.Y36(D.A),y.Y36(_.o),y.Y36(Z.ve),y.Y36(w.zb),y.Y36(C.B),y.Y36(A.d),y.Y36(M.z),y.Y36(o.JJ),y.Y36(k.Sf))},yt.\u0275cmp=y.Xpm({type:yt,selectors:[["app-bond-factsheet"]],viewQuery:function(t,e){if(1&t&&(y.Gf(z,5),y.Gf(Q,5),y.Gf($,5)),2&t){let t;y.iGM(t=y.CRH())&&(e.bondHeaderTpl=t.first),y.iGM(t=y.CRH())&&(e.bondNotificationTpl=t.first),y.iGM(t=y.CRH())&&(e.shareMobileTpl=t.first)}}
1,hostBindings:function(t,e){1&t&&y.NdJ("click",function(){return e.onDocumentClick()},!1,y.evT)},decls:17,vars:2,consts:[[4,"ngIf","ngIfElse"],["emptyTpl",""],["bondNotificationTpl",""],["shareMobileTpl",""],["bondHeaderTpl",""],["bondHeaderMobileTpl",""],["bondHeaderMobileExpandedTpl",""],["contentTpl",""],["bondMobileBottomTpl",""],[4,"ngTemplateOutlet"],[3,"content"],[1,"flex","flex-wrap","items-center"],["icon","c-check_filled","iconClass","text-profit mr-3"],[1,"pr-14","text-base"],[1,"my-0"],[1,"flex","flex-row","justify-between","gap-4","mt-4","mb-6"],[1,"flex","flex-col","items-center","justify-center",3,"click"],["src","assets/images/icons/factsheet/facebook-logo.svg","alt","facebook","width","44",1,"mb-0","cursor-pointer"],[1,"text-sm","mt-2",2,"color","#111418"],["src","assets/images/icons/factsheet/whatsapp.svg","alt","whatsapp","width","44",1,"mb-0","cursor-pointer"],["src","assets/images/icons/factsheet/telegram.svg","alt","telegram","width","44",1,"mb-0","cursor-pointer"],["src","assets/images/icons/factsheet/linkedin_icon.svg","alt","linkedIn","width","54",1,"mb-0","cursor-pointer"],[1,"copy-link-container",3,"click"],[1,"text-xs","truncate-text",2,"color","#0084E2"],["icon","content_copy","iconClass","text-black-4 ml-2 flex-shrink-0"],[1,"flex","flex-wrap","gap-1","mb-2","pt-2"],["nzSize","small",3,"nzType","nzBondIconOnly","tooltipTitle",4,"ngFor","ngForOf"],[1,"flex","justify-between","items-center","pb-1"],[1,"bond-factsheet__title","py-4","mb-0","font-weight-bold",3,"innerHTML"],[1,"flex","gap-2","items-center"],[1,"bond-factsheet__yield-summary"],[1,"bond-factsheet__yield-label","pb-2"],[1,"bond-factsheet__yield-value"],[1,"share-button-wrap"],[1,"bond-factsheet__header-action",3,"click"],["iconClass","bond-factsheet__share-visual text-black-6 text-base",3,"icon","iconType"],["class","share-dropdown",4,"ngIf"],["class","flex flex-row gap-2 items-center pb-2",4,"ngIf"],["nzSize","small",3,"nzType","nzBondIconOnly","tooltipTitle"],[1,"share-dropdown"],["src","assets/images/icons/factsheet/whatsapp.svg","alt","whatsapp","width","30",1,"mb-4","cursor-pointer",3,"click"],["src","assets/images/icons/factsheet/facebook-logo.svg","alt","facebook","width","30",1,"mb-4","cursor-pointer",3,"click"],["src","assets/images/icons/factsheet/telegram.svg","alt","telegram","width","30",1,"mb-4","cursor-pointer",3,"click"],["src","assets/images/icons/factsheet/linkedin_icon.svg","alt","linkedIn","width","32",1,"mb-4","cursor-pointer",3,"click"],["src","assets/images/icons/factsheet/link.svg","alt","link","width","30",1,"mb-0","cursor-pointer",3,"click"],[1,"flex","flex-row","gap-2","items-center","pb-2"],["icon","temple_filled","iconClass","text-tw-base text-black-6"],[1,"text-sm","text-black-6"],[1,"text-lg","mb-0","font-weight-bold",3,"innerHTML"],[1,"flex","flex-col","gap-2"],[1,"flex","items-center","gap-3"],[3,"routerLink"],["icon","arrow-left","iconClass","cursor-pointer"],[1,"flex","flex-wrap","gap-1"],["nzSize","large",3,"nzType","nzBondIconOnly","tooltipTitle",4,"ngFor","ngForOf"],[1,"flex","justify-between","items-center"],["nzSize","large",3,"nzType","nzBondIconOnly","tooltipTitle"],["poweredByImagePath","assets/images/icons/bsm-logo.png",3,"isLoadingFactsheet","isBond","tabs","customHeaderTpl","mobileBottomTpl","breadcrumbs","showPoweredByImage","hideContentChange"],["template","",1,"bond-factsheet__content-bg",3,"ngClass"],[4,"ngIf"],["id","overview"],[3,"factsheetData","bondType","bondExpressData","bondExpressEnabled","bondDailyPriceList","lotTypeToBondItemMap","hasMarginAccount","ltvRatio","ltvSource","marginAccountLoanSource","beSwitchEvent","transactionTypeChange"],["id","information"],["bondType","bonds",3,"factsheetData","lotTypeToBondItemMap","lotType"],["id","relatedDocuments"],["bondType","bonds",3,"factsheetData"],["id","potentialIncome"],[1,"container-fluid",3,"ngClass"],[1,"grid","grid-cols-1","md:grid-cols-4","gap-4","items-stretch"],[1,"md:col-span-3"],[3,"gstRate","bondExpressData","isBESwitch","factsheetData","lotTypeToBondItemMap","lotType"],[1,"h-full"],[1,"border-color-split","corner","h-full",3,"ngClass"],[1,"text-black-7","text-lg","font-weight-bold","mb-3",3,"ngClass"],["class","rounded-lg",4,"ngIf"],["id","feesCharges"],[3,"factsheetData","gstRate","bondType"],["id","relatedBonds"],[3,"relatedBonds"],[1,"rounded-lg"],[3,"ngClass"],["class","rounded-lg cursor-pointer flex items-center justify-between","style","background-color: var(--brand-background)",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"rounded-lg","cursor-pointer","flex","items-center","justify-between",2,"background-color","var(--brand-background)",3,"ngClass","click"],["iconType","imgSrc","iconClass","text-base text-primary-9",3,"icon"],["iconType","nz","icon","arrow-right","iconClass","text-base text-black cursor-pointer"],[1,"mt-6","bond-factsheet__mobile-bottom"],[1,"bond-factsheet__mobile-bottom-top"],[1,"bond-factsheet__yield-summary","bond-factsheet__yield-summary--mobile"],[1,"bond-factsheet__yield-label","pb-1"],[1,"bond-factsheet__mobile-actions"],[1,"bond-factsheet__header-action","bond-factsheet__share-trigger",3,"click"]],template:function(t,e){if(1&t&&(y.YNc(0,j,2,1,"ng-container",0),y.YNc(1,K,2,5,"ng-template",null,1,y.W1O),y.YNc(3,X,5,5,"ng-template",null,2,y.W1O),y.YNc(5,tt,22,1,"ng-template",null,3,y.W1O),y.YNc(7,at,16,13,"ng-template",null,4,y.W1O),y.YNc(9,lt,1,2,"ng-template",null,5,y.W1O),y.YNc(11,rt,12,4,"ng-template",null,6,y.W1O),y.YNc(13,Tt,6,19,"ng-template",null,7,y.W1O),y.YNc(15,mt,11,9,"ng-template",null,8,y.W1O)),2&t){const t=y.MAs(14);y.Q6J("ngIf",!e.isLoadingFactsheet&&!e.isValidBonds)("ngIfElse",t)}},directives:[o.O5,o.tP,I.L,O.f,E.g,o.sg,F.v,s.yS,R.t,o.mk,q.d,N.z,Y.J,U.$,P.bd,J.I,H.h],pipes:[n.X$,o.Ov],styles:['app-bond-factsheet .bond-factsheet__title{color:#121212;font-size:32px}app-bond-factsheet .corner:before{content:"";position:absolute;top:18px;left:0;border-radius:0 8px 8px 0;border-left:5px solid #0084e2;height:45px}app-bond-factsheet .bond-factsheet__share-trigger{position:relative;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;cursor:pointer;z-index:900}app-bond-factsheet .bond-factsheet__yield-summary{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-width:120px;margin-right:4px}app-bond-factsheet .bond-factsheet__yield-label{color:var(--black-5);font-size:14px;line-height:16px;text-align:right}app-bond-factsheet .bond-factsheet__yield-value{color:var(--black-7);font-size:32px;font-weight:700;line-height:20px;text-align:right}app-bond-factsheet .bond-factsheet__share-visual{pointer-events:none}
1app-bond-factsheet .bond-factsheet__header-action{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border-radius:50%;background:#f6f9fc;cursor:pointer;transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease}app-bond-factsheet .bond-factsheet__header-action:hover{background:#edf4fa;box-shadow:0 4px 12px #0084e229;transform:translateY(-1px)}app-bond-factsheet .bond-factsheet__yield-summary--mobile{align-items:flex-start;min-width:0;margin-right:0}app-bond-factsheet .bond-factsheet__yield-summary--mobile .bond-factsheet__yield-label,app-bond-factsheet .bond-factsheet__yield-summary--mobile .bond-factsheet__yield-value{text-align:left}app-bond-factsheet .bond-factsheet__mobile-bottom{display:flex;flex-direction:column}app-bond-factsheet .bond-factsheet__mobile-bottom-top{display:flex;align-items:center;justify-content:space-between;grid-gap:16px;gap:16px}app-bond-factsheet .bond-factsheet__mobile-actions{display:flex;align-items:center;grid-gap:16px;gap:16px;flex-shrink:0}app-bond-factsheet .bond-factsheet__mobile-action{position:relative;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;cursor:pointer}app-bond-factsheet .bond-factsheet__content-bg{background:#f6f9fc;padding-bottom:1px}app-bond-factsheet .bond-factsheet__content-bg--web{margin-top:-24px;padding-top:24px}app-bond-factsheet .bond-factsheet__content-bg--web .container-fluid{padding-left:32px;padding-right:32px}app-bond-factsheet .bond-factsheet__content-bg--sticky{margin-top:-100px;padding-top:100px}app-bond-factsheet .share-button-wrap{position:relative;display:flex;flex-direction:column;align-items:center}app-bond-factsheet .share-button-wrap .share-dropdown{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);box-shadow:0 3px 6px #00000029;background-color:#fff;padding:12px;border-radius:10px;z-index:100;display:flex;flex-direction:column;align-items:center;min-width:44px}app-bond-factsheet .share-button-wrap .share-dropdown img{width:28px;height:28px;min-width:28px;flex-shrink:0}app-bond-factsheet section:not(#relatedDocuments) nz-card.border-color-split:not(.no-border) .ant-card-body{padding:32px}.share-modal .ant-modal-header{padding:24px 24px 18px}.copy-link-container{width:100%;display:flex;align-items:center;background-color:#ebedf0;border-radius:8px;padding:9px 12px;cursor:pointer}.truncate-text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.no-border.ant-card-bordered{border:none;border-radius:0}.no-border .ant-card-body{padding:16px}.pagination-circle-style ui-pagination .ui-pagination .pagination-main .ant-pagination-item,.pagination-circle-style ui-pagination .ui-pagination .pagination-main .ant-pagination-item.ant-pagination-item-active{border-radius:50%}.pagination-circle-style ui-pagination .ui-pagination .pagination-main .ant-pagination-next .ant-pagination-item-link,.pagination-circle-style ui-pagination .ui-pagination .pagination-main .ant-pagination-prev .ant-pagination-item-link{border:none;background:#0000}.pagination-circle-style ui-pagination .ui-pagination .pagination-main .ant-pagination-next.ant-pagination-disabled .ant-pagination-item-link,.pagination-circle-style ui-pagination .ui-pagination .pagination-main .ant-pagination-prev.ant-pagination-disabled .ant-pagination-item-link{background:#0000}.pagination-circle-style .ant-table .ant-table-container{border:none}.pagination-circle-style .ant-table .ant-table-container:after,.pagination-circle-style .ant-table .ant-table-container:before{display:none}.pagination-circle-style .ant-table .ant-table-thead>tr>th{border-bottom:none;border-right:none;font-weight:400}.pagination-circle-style .ant-table .ant-table-tbody>tr:nth-child(2n)>td,.pagination-circle-style .ant-table .ant-table-tbody>tr:nth-child(odd)>td,.pagination-circle-style .ant-table .ant-table-tbody>tr>td{border-bottom:none;border-right:none;background:var(--white)}.pagination-circle-style .ant-table .ant-table-tbody>tr:hover>td,.pagination-circle-style .ant-table .ant-table-tbody>tr:nth-child(2n):hover>td{background:var(--white)}.bond-tag-feature{background:var(--brand-background);color:var(--black-7);border:none}'],encapsulation:2}),(0,l.gn)([(0,d.Ph)(p.qU.isMobileResolution)],yt.prototype,"isMobileResolution$",void 0),(0,l.gn)([(0,d.Ph)(h.j.getLoginStatus)],yt.prototype,"getLoginStatus$",void 0);const xt=[{path:":isincode",component:yt},{path:":isincode/:bondName",component:yt},{path:"**",redirectTo:""}];let Bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y.oAB({type:t}),t.\u0275inj=y.cJS({imports:[[s.Bz.forChild(xt)],s.Bz]}),t})();var Lt=i(1649),St=i(46268),Dt=i(62102),_t=i(41064),Zt=i(50635),wt=i(10167),Ct=i(25317),At=i(54046),Mt=i(93845),kt=i(53474);const It=[],Ot=[o.uU,o.JJ,o.Zx];let Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y.oAB({type:t}),t.\u0275inj=y.cJS({providers:[...Ot,...It],imports:[[a.m,n.aw,Bt,Lt.$,St.a,Dt.StocksModule,_t._,n.aw,Zt.W,wt.$,Ct.l,At.c,a.m,Mt.X,kt.P]]}),t})()}}]);
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.