1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2e3],{73820:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bondcase/my-cases",function(){return n(99800)}])},21517:function(e,t,n){"use strict";var a=n(85893),o=n(32053),s=n(97729),l=n(67294),i=n(52963),c=n.n(i);t.Z=e=>{let{total:t=0,onChange:n=()=>{},defaultCurrent:i=1,current:r=1,isScrollTop:d=!1,activeBgColor:u="#000",hidePrevNext:m=!0,...v}=e,[p,y]=(0,l.useState)(r);return(0,l.useEffect)(()=>{y(r)},[r]),(0,a.jsx)(s.Z,{className:c().pagination,total:t,align:"center",defaultCurrent:i,current:p,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!1,showTitle:!1,onChange:e=>{d&&(0,o.k)(),y(e),n(e)},itemRender:(e,t,n)=>{if(m&&"prev"===t||m&&"next"===t)return(0,a.jsx)("a",{children:null});let o=e===p;return l.cloneElement(n,{style:{...n.props.style,backgroundColor:o?u:"unset",color:o?"#fff":"inherit",borderRadius:"10px"}})},...v})}},32053:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});let a=()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}},4378:function(e,t,n){"use strict";var a=n(85893),o=n(56487),s=n.n(o),l=n(6378);t.Z=e=>{let{count:t=5,rowitemCount:n=5}=e;return(0,a.jsx)(a.Fragment,{children:Array.from({length:t},(e,t)=>t+1).map(e=>(0,a.jsx)("div",{className:"".concat(s().listContainer," ").concat(s().card),children:Array.from({length:n},(e,t)=>t+1).map(e=>(0,a.jsx)(l.Z.Input,{active:!0},e))},e))})}},9333:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var a=n(67294),o=n(93967),s=n.n(o),l=n(54043),i=n(28778);let c=e=>e?"function"==typeof e?e():e:null;var r=n(71775),d=n(26901),u=n(93565),m=n(27922),v=n(92419),p=n(5710),y=n(87231),_=n(15507),g=n(46515),h=n(42809),b=n(76129),x=n(38526);let f=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:a,fontWeightStrong:o,innerPadding:s,boxShadowSecondary:l,colorTextHeading:i,borderRadiusLG:c,zIndexPopup:r,titleMarginBottom:d,colorBgElevated:u,popoverBg:m,titleBorderBottom:v,innerContentPadding:y,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:r,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":u,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},["".concat(t,"-content")]:{position:"relative"},["".concat(t,"-inner")]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:l,padding:s},["".concat(t,"-title")]:{minWidth:a,marginBottom:d,color:i,fontWeight:o,borderBottom:v,padding:g},["".concat(t,"-inner-content")]:{color:n,padding:y}})},(0,_.ZP)(e,"var(--antd-arrow-background-color)"),{["".concat(t,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",["".concat(t,"-content")]:{display:"inline-block"}}}]},j=e=>{let{componentCls:t}=e;return{[t]:h.i.map(n=>{let a=e["".concat(n,"6")];return{["&".concat(t,"-").concat(n)]:{"--antd-arrow-background-color":a,["".concat(t,"-inner")]:{backgroundColor:a},["".concat(t,"-arrow")]:{background:"transparent"}}}})}};var C=(0,b.I$)("Popover",e=>{let{colorBgElevated:t,colorText:n}=e,a=(0,x.IX)(e,{popoverBg:t,popoverColor:n});return[f(a),j(a),(0,y._y)(a,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:a,padding:o,wireframe:s,zIndexPopupBase:l,borderRadiusLG:i,marginXS:c,lineType:r,colorSplit:d,paddingSM:u}=e,m=n-a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:l+30},(0,g.w)(e)),(0,_.wZ)({contentRadius:i,limitVerticalRadius:!0})),{innerPadding:s?0:12,titleMarginBottom:s?0:c,titlePadding:s?"".concat(m/2,"px ").concat(o,"px ").concat(m/2-t,"px"):0,titleBorderBottom:s?"".concat(t,"px ").concat(r," ").concat(d):"none",innerContentPadding:s?"".concat(u,"px ").concat(o,"px"):0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),w=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)0>t.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};let N=e=>{let{title:t,content:n,prefixCls:o}=e;return t||n?a.createElement(a.Fragment,null,t&&a.createElement("div",{className:"".concat(o,"-title")},t),n&&a.createElement("div",{className:"".concat(o,"-inner-content")},n)):null},B=e=>{let{hashId:t,prefixCls:n,className:o,style:l,placement:i="top",title:r,content:d,children:u}=e,m=c(r),p=c(d),y=s()(t,n,"".concat(n,"-pure"),"".concat(n,"-placement-").concat(i),o);return a.createElement("div",{className:y,style:l},a.createElement("div",{className:"".concat(n,"-arrow")}),a.createElement(v.G,Object.assign({},e,{className:t,prefixCls:n}),u||a.createElement(N,{prefixCls:n,title:m,content:p})))};var k=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)0>t.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};let O=a.forwardRef((e,t)=>
1{var n,o;let{prefixCls:v,title:p,content:y,overlayClassName:_,placement:g="top",trigger:h="hover",children:b,mouseEnterDelay:x=.1,mouseLeaveDelay:f=.1,onOpenChange:j,overlayStyle:w={},styles:B,classNames:O}=e,S=k(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:I,className:T,style:P,classNames:E,styles:A}=(0,u.dj)("popover"),Z=I("popover",v),[M,W,D]=C(Z),F=I(),z=s()(_,W,D,T,E.root,null==O?void 0:O.root),H=s()(E.body,null==O?void 0:O.body),[V,R]=(0,l.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),K=(e,t)=>{R(e,!0),null==j||j(e,t)},Y=e=>{e.keyCode===i.Z.ESC&&K(!1,e)},q=c(p),G=c(y);return M(a.createElement(m.Z,Object.assign({placement:g,trigger:h,mouseEnterDelay:x,mouseLeaveDelay:f},S,{prefixCls:Z,classNames:{root:z,body:H},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},A.root),P),w),null==B?void 0:B.root),body:Object.assign(Object.assign({},A.body),null==B?void 0:B.body)},ref:t,open:V,onOpenChange:e=>{K(e)},overlay:q||G?a.createElement(N,{prefixCls:Z,title:q,content:G}):null,transitionName:(0,r.m)(F,"zoom-big",S.transitionName),"data-popover-inject":!0}),(0,d.Tm)(b,{onKeyDown:e=>{var t,n;(0,a.isValidElement)(b)&&(null===(n=null==b?void 0:(t=b.props).onKeyDown)||void 0===n||n.call(t,e)),Y(e)}})))});O._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n}=e,o=w(e,["prefixCls","className"]),{getPrefixCls:l}=a.useContext(u.E_),i=l("popover",t),[c,r,d]=C(i);return c(a.createElement(B,Object.assign({},o,{prefixCls:i,hashId:r,className:s()(n,d)})))};var S=O},99800:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return j},default:function(){return f}});var a=n(85893),o=n(96602),s=n(21517),l=n(9008),i=n.n(l),c=n(72779),r=n.n(c),d=n(9333),u=n(4378),m=n(67294);let v=e=>{let{value:t,item:n}=e,[s,l]=(0,m.useState)(!1),i=e=>{e.stopPropagation(),l(!0)};switch(null==n?void 0:n.contentFormat){case"popover":return(0,a.jsxs)("div",{children:[null==t?void 0:t[null==n?void 0:n.key],(null==t?void 0:t.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:r().web,children:(0,a.jsx)(d.Z,{content:null==t?void 0:t.description,placement:"right",trigger:"click",children:(0,a.jsx)("img",{src:"https://ib-prod-media.s3.ap-south-1.amazonaws.com/react/learn-module/grey-info.svg",alt:"icon",onClick:e=>{e.stopPropagation()}})})}),(0,a.jsxs)("span",{className:r().mobile,children:[(0,a.jsx)("img",{src:"https://ib-prod-media.s3.ap-south-1.amazonaws.com/react/learn-module/grey-info.svg",alt:"icon",onClick:e=>i(e)}),(0,a.jsx)(o.Z,{isOpen:s,closeModal:e=>{e.stopPropagation(),l(!1)},children:(0,a.jsx)("div",{className:r().desTitle,children:null==t?void 0:t.description})})]})]})]});case"textAdd":return(0,a.jsxs)("div",{children:[" ",null==t?void 0:t[null==n?void 0:n.key]," Unique ISINs"]});default:return(0,a.jsx)("div",{title:null==t?void 0:t[null==n?void 0:n.key],children:null==t?void 0:t[null==n?void 0:n.key]})}};var p=e=>{let{controls:t={},data:n=[],activeToggle:o="saved",onOrderBook:s=()=>{},setIsInvestAgain:l,onInvestNow:i=()=>{},loading:c=!1,onBack:d=()=>{},setSelectvalue:m}=e,p=()=>{"invested"===o&&s()},y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stopPropagation(),l(!0),m(t)},_=()=>"saved"===o?(0,a.jsxs)("div",{className:r().dec,children:[(0,a.jsx)("div",{children:"Your saved BondCases will be discarded after 30 days, if you have not invested."}),(0,a.jsx)("div",{children:"The availability of bonds within a BondCase is subject to market conditions and may vary over time. Bonds may not be available at all times, and their prices and yields may fluctuate due to market dynamics and cut-off times."})]}):null;return c||0!==n.length?(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(r().listContainer," ").concat(r().headerContainer),children:t.map(e=>(0,a.jsx)("div",{style:{width:"".concat(10*e.col,"%")},className:"".concat(r().header),children:e.title},e.name))}),(0,a.jsx)("div",{children:c?(0,a.jsx)(u.Z,{rowitemCount:6}):n.map((e,n)=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"".concat(r().listContainer," ").concat(r().card),style:{cursor:"invested"===o?"pointer":""},onClick:p,children:t.map(t=>"button"===t.functionType?(0,a.jsx)("div",{style:{width:"".concat(10*t.col,"%")},className:r().mobileBtn,children:(0,a.jsx)("button",{className:"".concat(r().investBtn," ").concat(r().viewB
1ondBtn,"\n // ").concat((null==e?void 0:e.available)>0?r().viewBondBtn:"","\n \n "),onClick:()=>i(e),children:"View BondCase"})},null==t?void 0:t.name):"investAgainButton"===t.functionType?(0,a.jsx)("div",{style:{width:"".concat(10*t.col,"%")},className:r().mobileBtn,children:(0,a.jsx)("button",{className:"".concat(r().investAgenBtn),onClick:t=>y(t,e),children:null==t?void 0:t.name})},t):(0,a.jsxs)("div",{style:{width:"".concat(10*t.col,"%"),color:(null==t?void 0:t.color)?t.color:""},className:"".concat(r().values," ").concat(["name"].includes(t.key)?r().valuesFirst:""),children:[(0,a.jsx)("div",{className:r().mobileTitle,children:t.title}),(0,a.jsx)("div",{children:(0,a.jsx)(v,{value:e,item:t})}),(null==e?void 0:e.unavailable)>0&&"number_of_security"===t.key&&(0,a.jsxs)("div",{className:r().bondNotAvilable,children:[null==e?void 0:e.unavailable," ","Bond not available"]})]},t))},n)}))}),_()]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:r().emptyCard,children:(0,a.jsxs)("div",{className:r().emptyBox,children:[(0,a.jsx)("img",{className:r().emptyImg,src:"https://ib-prod-media.s3.ap-south-1.amazonaws.com/Group+1000001447.png",alt:"emptyicon"}),(0,a.jsx)("div",{className:r().emptyTitle,children:"There is no BondCase created yet"}),(0,a.jsx)("div",{className:r().emptyDec,children:"Please create a bond case by choosing curated packs"}),(0,a.jsx)("div",{className:r().btnBox,children:(0,a.jsx)("button",{className:r().priBtn,onClick:()=>d(),children:"View BondCases"})})]})}),_()]})},y=n(11163),_=n(93522),g=e=>{let{userDetails:t,sessionIdCookie:n}=e,a=(0,y.useRouter)(),{query:o}=a,{apiRequest:s}=(0,_.Q)(),[l,i]=(0,m.useState)(1),[c,r]=(0,m.useState)({}),[d,u]=(0,m.useState)(!1),[v,p]=(0,m.useState)([]),[g,h]=(0,m.useState)([]),[b,x]=(0,m.useState)(!1),[f,j]=(0,m.useState)({}),[C,w]=(0,m.useState)((null==o?void 0:o.invested)?"invested":"saved"),{client_id:N=""}=t||{},B=async()=>{x(!0);try{var e;let t=await s({method:"get",api:"v1/bondcase/bond-list-saved",requestHeader:{globalSessionId:n}});p(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data),x(!1)}catch(e){console.log(e),x(!1)}},k=async()=>{x(!0);try{let{data:e={}}=(await s({method:"get",api:"v1/bondcase/invested-bonds/",queryParamsMap:{PageNo:l,PageSize:10},requestHeader:{globalSessionId:n}})).data||{},{invested_bond_cases:t=[],total_count:a=0,total_pages:o=0,current_page:i=1}=e||{};h(t),r({total_count:a,total_pages:o,current_page:i}),x(!1)}catch(e){console.log(e),x(!1)}};return(0,m.useEffect)(()=>{"invested"===C?k():B()},[C,l]),{setActiveToggle:w,activeToggle:C,onBack:()=>{a.push("/bondcase/all-cases/")},currentPage:l,onOrderBook:()=>{window.location.href="".concat("https://www.indiabonds.com/","customer/bond-case-order-book/")},setIsInvestAgain:u,isInvestAgain:d,onInvestNow:e=>{let{name:t="",id:n="",indicative_amount:o="",orderNumber:s,indicative_settlement_amt:l=""}={...e,...f},i=parseFloat(l.replace("â¹ ","").replace(/,/g,""));s?a.push("/bondcase/bondcase-details?case_name&order_id=".concat(s,"&custom=true&saved=true&amount=").concat(Math.floor(i))):a.push("/bondcase/bondcase-details?case_name=".concat(t,"&bondcase_id=").concat(n,"&custom=true&saved=true&amount=").concat(o))},loading:b,setCurrentPage:i,apiData:({saved:v,invested:g})[C],pagedInfo:c,setSelectvalue:j}},h=n(17450),b=n.n(h);let x={saved:[{title:"BondCase Name",key:"name",col:2.5},{title:"Settlement Amount",key:"indicative_settlement_amt",col:2},{title:"Weighted Avg. Maturity",key:"wht_avg_maturity",col:2.2},{title:"Number of Securities",key:"number_of_security",col:2,contentFormat:"textAdd"},{title:"Weighted Avg. Yield",key:"wht_avg_ytm",col:1.9,color:"#078181"},{title:"",key:"",col:1.4,functionType:"button",name:"Invest Now"}],invested:[{title:"BondCase Name",key:"name",col:2.5,contentFormat:"popover"},{title:"Settlement Amount",key:"indicative_settlement_amt",col:2},{title:"Weighted Avg. Maturity",key:"wht_avg_maturity",col:2.2},{title:"Number of Securities",key:"number_of_security",col:2,contentFormat:"textAdd"},{title:"Weighted Avg. Yield",key:"wht_avg_ytm",col:1.9,color:"#078181"},{title:"",key:"",col:1.4,functionType:"investAgainButton",name:"Invest Again"}]};var f=e=>{let{userDetails:t,sessionIdCookie:n,isMobile:l}=e,{setActiveToggle:c,activeToggle:r,onBack:d,currentPage:u,onOrderBook:m,setIsInvestAgain:v,isInvestAgain:y,onInvestNow:_,loading:h=!1,setCurrentPage:f,apiData:j=[],pagedInfo:C={},setSelectvalue:w}=g({userDetails:t,sessionIdCookie:n});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i(),{children:(0,a.jsx)("title",{children:"Indiabonds | My cases"})}),(0,a.jsxs)("div",{className:b().myBondCaseContainer,children:[(0,a.jsxs)("div",{className:b().title,children:[(0,a.jsx)("span",{className:b().backIcon,onClick:d,children:"< "})," ","My BondCases"]}),(0,a.jsxs)("div",{className:b().listCard,children:[(0,a.jsx)("div",{className:b().toggleBox,children:(0,a.jsxs)("div",{className:b().toggleCard,children:[(0,a.jsx)("div",{className:"".concat(b().toggle," ").concat("saved"===r&&b().active),onClick:()=>c("saved"),children:"Saved BondCases"}),(0,a.jsx)("div",{className:"".concat(b().toggle," ").concat("invested"===r&&b().active),onClick:()=>c("invested"),children:"Invested BondCases"})]})}),(0,a.jsx)(p,{controls:x[r],data:j,activeToggle:r,onOrderBook:m,setIsInvestAgain:v,onInvestNow:_,loading:h,onBack:d,setSelectvalue:w,isMobile:l}),"invested"===r&&(null==C?void 0:C.total_count)>10&&(0,a.jsx)("div",{className:b().pagination,children:(0,a.jsx)(s.Z,{total:null==C?void 0:C.total_count,onChange:e=>f(e),current:u})})]}),(0,a.jsx)(o.Z,{isOpen:y,closeModal:()=>v(!1),children:(0,a.jsxs)("div",{className:b().investModal,children:[(0,a.jsx)("div",{className:b().investImg,children:(0,a.jsx)("img",{src:"https://ib-prod-media.s3.ap-south-1.amazonaws.com/money+(2)+1.png",alt:"icon"})}),(0,a.jsx)("div",{className:b().investTitle,children:"Invest again in BondCase"}),(0,a.jsx)("div",{className:b().investDec,children:"Happy to see you invest again. Kindly check the BondCase before investing as the bonds, yield or settlement amounts may differ versus your previous BondCase investment."}),(0,a.jsx)("div",{className:b().confBtnBox,children:(0,a.jsx)("button",{className:b().confimBtn,onClick:_,children:"Confirm & Proceed"})})]})})]})]})},j=!0}
1,52963:function(e){e.exports={pagination:"style_pagination__k2aB1"}},72779:function(e){e.exports={listContainer:"style_listContainer__Fgqt0",header:"style_header__HMvtd",values:"style_values__jjVsK",card:"style_card__NDAJZ",headerContainer:"style_headerContainer__7HSYk",investBtn:"style_investBtn__Zyl_Z",investAgenBtn:"style_investAgenBtn__4MyRE",dec:"style_dec__0YvJV",mobileTitle:"style_mobileTitle__hjjvS",bondNotAvilable:"style_bondNotAvilable__elHn2",viewBondBtn:"style_viewBondBtn__ZVn8b",emptyCard:"style_emptyCard__6IqDK",emptyTitle:"style_emptyTitle__1t7Fw",emptyDec:"style_emptyDec__n6ON8",priBtn:"style_priBtn__UQXyy",btnBox:"style_btnBox__1MiqI",web:"style_web__gthPR",mobile:"style_mobile__cfB1w",valuesFirst:"style_valuesFirst__PZ8Tf",mobileBtn:"style_mobileBtn__TKktH",emptyImg:"style_emptyImg__xuVR_",emptyBox:"style_emptyBox__fUiNl",desTitle:"style_desTitle__4Tsn_"}},56487:function(e){e.exports={placeholderLg:"style_placeholderLg__27HTn",placeholderGlow:"style_placeholderGlow__ZmwJk",listContainer:"style_listContainer__p9eSo",card:"style_card___OiCT"}},17450:function(e){e.exports={myBondCaseContainer:"style_myBondCaseContainer__cpVW_",title:"style_title__Ka3s1",backIcon:"style_backIcon__JZOpH",listCard:"style_listCard__MYSSe",toggleBox:"style_toggleBox__St_7K",toggleCard:"style_toggleCard__me_4z",toggle:"style_toggle__Emsn6",active:"style_active__Udsov",investModal:"style_investModal__WllyI",pagination:"style_pagination__kufHS",investTitle:"style_investTitle__5onG6",investImg:"style_investImg__WXCIK",investDec:"style_investDec__5n0xG",confimBtn:"style_confimBtn__1Uavf",confBtnBox:"style_confBtnBox__DCYHx"}}},function(e){e.O(0,[6378,3696,7729,2888,9774,179],function(){return e(e.s=73820)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.