https://www.indiabonds.com/assets/_next/static/chunks/pages/demat-account-status-d44808aa78c737c5.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3577],{58576:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/demat-account-status",function(){return n(21672)}])},48711:function(e,t,n){"use strict";var s=n(85893),l=n(768),r=n(32338),o=n.n(r);t.Z=()=>(0,s.jsx)("div",{className:o().canvas,children:(0,s.jsx)(l.Z,{size:"sm",color:"#fff"})})},21672:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var s=n(85893),l=n(83398),r=n(52607),o=n(67294),a=n(73935),i=n(80022),c=n.n(i);let u=(e,t)=>e+Math.random()*(t-e),d=()=>.7>Math.random()?u(15,26):u(32,52),p=e=>e<28?1.3:1.42,m=(e,t)=>{let n=document.createElement("div");n.className=c().bubble,n.style.width="".concat(2*e,"px"),n.style.height="".concat(2*e,"px"),n.style.setProperty("--r","".concat(e,"px")),n.style.setProperty("--rim","".concat(Math.min(1.2,Math.max(.6,.025*e)).toFixed(2),"px"));let s=document.createElement("div");s.className=c().lens;let l=document.createElement("div");l.className=c().lensContent,l.style.zoom=p(e),l.appendChild(t.cloneNode(!0)),s.appendChild(l);let r=document.createElement("div");r.className=c().rim;let o=document.createElement("div");return o.className=c().gloss,n.append(s,r,o),{el:n,content:l}};var h=e=>{let{sourceRef:t,source:n,lensRef:l,lens:r,lensClassName:i=""}=e,[h,f]=(0,o.useState)(!1),v=(0,o.useRef)(null),y=(0,o.useRef)(null);return((0,o.useEffect)(()=>f(!0),[]),(0,o.useEffect)(()=>{let e=v.current,s=y.current;if(!h||!e||!s||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let r=!0,o=0,a=0,i=performance.now(),f=[],_={left:0,top:0,width:0},x=()=>{var t;let n=null===(t=l.current)||void 0===t?void 0:t.getBoundingClientRect();n&&(n.left!==_.left||n.top!==_.top||n.width!==_.width)&&(_={left:n.left,top:n.top,width:n.width},e.style.setProperty("--lens-x","".concat(n.left,"px")),e.style.setProperty("--lens-y","".concat(n.top,"px")),e.style.setProperty("--lens-w","".concat(n.width,"px")))},g=()=>{var e;let s=null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect();return s?{x:s.left+s.width*n.x,y:s.top+s.height*n.y}:null},w=e=>{let t=f.indexOf(e);-1!==t&&f.splice(t,1),e.el.remove()},b=e=>{e.popping||(e.popping=!0,e.el.style.setProperty("--tf",e.transform),e.el.classList.add(c().pop),setTimeout(()=>w(e),260))},j=()=>{var e;let t=null===(e=l.current)||void 0===e?void 0:e.getBoundingClientRect();return t?t.left+t.width*u(.15,.85):null},N=()=>{let t=g();if(!t||f.length>=6)return;let n=d();if(f.some(e=>Math.hypot(e.x+e.r0-t.x,e.y+e.r0-t.y)<e.r0+n+20))return;let{el:l,content:r}=m(n,s);e.appendChild(l);let o={el:l,content:r,r:n,r0:n,x:t.x-n,y:t.y-n,vx:u(28,70),vy:24+.85*n+u(-4,4),sway:u(3,5)+.22*n,freq:u(1.1,2.1),phase:u(0,2*Math.PI),t:0,zoom:p(n),targetX:j(),popAt:n<28&&.15>Math.random()?u(.35,.7):null,popping:!1,transform:""};f.push(o),requestAnimationFrame(()=>l.classList.add(c().in))},M=()=>{a=setTimeout(()=>{r&&(N(),M())},u(1100,2600))},E=()=>{var e,t;return null!==(t=null===(e=g())||void 0===e?void 0:e.y)&&void 0!==t?t:window.innerHeight},F=e=>{if(!r)return;let t=Math.min(.05,(e-i)/1e3);i=e,x();for(let e=0;e<f.length;e+=1){let n=f[e];if(!n.popping)for(let s=e+1;s<f.length;s+=1){let e=f[s];if(e.popping)continue;let l=e.x+e.r0-(n.x+n.r0),r=e.y+e.r0-(n.y+n.r0),o=Math.hypot(l,r)||.01,a=n.r0+e.r0+10-o;if(a<=0)continue;let i=l/o*a*2.2,c=r/o*a*.4;n.vx-=i,e.vx+=i,n.y-=c*t,e.y+=c*t}}for(let e of f){if(e.popping)continue;if(e.t+=t,e.vx*=Math.pow(.35,t),null!=e.targetX&&e.t>.6){let n=(e.targetX-e.r0-e.x)*.9;e.vx+=(n-e.vx)*Math.min(1,1.6*t)}e.x+=e.vx*t,e.y-=e.vy*t,e.r=e.r0*(1+Math.min(.08,.012*e.t));let n=1+.04*Math.sin(e.t*e.freq*2+e.phase),s=1-.04*Math.sin(e.t*e.freq*2+e.phase),l=e.x+Math.sin(e.t*e.freq+e.phase)*e.sway,r=e.y,o=e.r/e.r0;e.transform="translate3d(".concat(l.toFixed(2),"px, ").concat(r.toFixed(2),"px, 0) scale(").concat((n*o).toFixed(3),", ").concat((s*o).toFixed(3),")"),e.el.style.transform=e.transform;let a=l+e.r0,i=r+e.r0,c=e.zoom,u=(a*(1-c)-l)/c,d=(i*(1-c)-r)/c;e.content.style.transform="translate(".concat(u.toFixed(2),"px, ").concat(d.toFixed(2),"px)");let p=1-r/E();(r<=8||e.popAt&&p>=e.popAt)&&b(e)}o=requestAnimationFrame(F)},A=()=>{document.hidden?(cancelAnimationFrame(o),clearTimeout(a)):(i=performance.now(),o=requestAnimationFrame(F),M())};
1return x(),o=requestAnimationFrame(F),a=setTimeout(M,400),document.addEventListener("visibilitychange",A),()=>{r=!1,cancelAnimationFrame(o),clearTimeout(a),document.removeEventListener("visibilitychange",A),f.splice(0).forEach(e=>e.el.remove())}},[h,t,n,l]),h)?(0,a.createPortal)((0,s.jsx)("div",{ref:v,className:c().layer,"aria-hidden":"true",children:(0,s.jsx)("div",{className:c().lensTemplate,children:(0,s.jsx)("div",{ref:y,className:"".concat(c().lensSource," ").concat(i),children:r})})}),document.body):null},f=n(81784),v=n.n(f);let y={x:.755,y:.32},_="wrong-page-open";var x=e=>{let{title:t="Another Dimension",subtitle:n="Youâve popped up somewhere unexpected",ctaLabel:l="Go to Home",ctaUrl:a="",onCta:i,bubbles:c=!0,className:u=""}=e,d=(0,o.useRef)(null),p=(0,o.useRef)(null),m=(0,o.useRef)(null),[f,x]=(0,o.useState)(0);return(0,o.useEffect)(()=>{document.body.classList.add(_);let e=()=>{var e;let t=null===(e=m.current)||void 0===e?void 0:e.getBoundingClientRect();t&&x(Math.max(0,Math.round(t.top+window.scrollY)))};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),document.body.classList.remove(_)}},[]),(0,s.jsxs)("section",{ref:m,className:"".concat(v().page," ").concat(u),style:{"--wrong-page-top":"".concat(f,"px")},children:[(0,s.jsxs)("div",{ref:d,className:v().text,children:[(0,s.jsx)("h1",{className:v().title,children:t}),(0,s.jsx)("p",{className:v().subtitle,children:n})]}),(0,s.jsxs)("div",{className:v().scene,children:[(0,s.jsx)("img",{ref:p,src:"https://assets.indiabonds.com/react/learn-module/spaceship-broken.webp",width:1080,height:513,alt:"",className:v().art}),(0,s.jsx)("button",{type:"button",className:v().cta,onClick:()=>i?i():(0,r.L)({url:a}),children:l})]}),c&&(0,s.jsx)(h,{sourceRef:p,source:y,lensRef:d,lensClassName:v().text,lens:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:v().title,children:t}),(0,s.jsx)("span",{className:v().subtitle,children:n})]})})]})},g=n(48711),w=n(4995),b=n(11163),j=n(95317),N=n(70457),M=n(34395),E=n(56674),F=n(52646),A=n.n(F);let C="Retry e-Sign";var P=e=>{let{esignUrl:t,documentUrl:n}=e;return(0,N.Z)()?(0,s.jsx)(E.Z,{esignUrl:t,documentUrl:n,ctaLabel:C}):(0,s.jsx)("div",{className:A().page,children:(0,s.jsx)("div",{className:A().card,children:(0,s.jsx)(M.Z,{data:{esign:{url:t,documentUrl:n}},ctaLabel:C})})})},R=n(93522);let L=e=>{var t,n,s,l;return(null==e?void 0:null===(n=e.errorList)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.errorMessage)||(null==e?void 0:null===(l=e.ErrorList)||void 0===l?void 0:null===(s=l[0])||void 0===s?void 0:s.errorMessage)||(null==e?void 0:e.errorMessage)||(null==e?void 0:e.message)||""};var S=function(){let{skip:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{apiRequest:t}=(0,R.Q)(),[n,s]=(0,o.useState)({status:e?"success":"loading"});return(0,o.useEffect)(()=>{if(e)return;let n=!1;return(async()=>{var e,l,r;try{let r=await t({baseUrl:"RAW_BASE_KYC_API_URL",method:"get",api:"mobile/Depository/closure/esign/result"});if(n)return;let o=(null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.data)||{},a="success"===String(o.result||"").toLowerCase();s({status:a?"success":"failure",errorMessage:a?"":o.errorMessage||"",signedUrl:o.presignedDocumentUrl||o.signedFormPresignedUrl||"",esignUrl:(null===(l=o.esignUrls)||void 0===l?void 0:l.url)||"",data:o})}catch(e){if(n)return;s({status:"error",errorMessage:L(null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.data)||"We could not verify your e-sign result. Please try again to complete your IB Demat closure."})}})(),()=>{n=!0}},[e]),n},U=()=>{let{query:e}=(0,b.useRouter)(),t="1"===e.done,{status:n,signedUrl:r,esignUrl:a}=S({skip:t}),{loading:i,isAccountDeletion:c}=(0,l.Z)();return((0,o.useEffect)(()=>{t||("success"===n?(0,w.A)("success",{title:"E-Sign completed successfully"}):"failure"===n&&(0,w.A)("error",{title:"E-Sign Failed. Please try again"}))},[n,t]),"loading"===n||i)?(0,s.jsx)(g.Z,{}):"error"===n?(0,s.jsx)(x,{}):"failure"===n?(0,s.jsx)(P,{esignUrl:a,documentUrl:r}):(0,s.jsx)(j.Z,{type:c?"deletion":"closure",esignedUrl:r,formSent:!t})},T=n(9008),q=n.n(T),Z=()=>
1(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(q(),{children:(0,s.jsx)("title",{children:"Demat Account Status | Indiabonds"})}),(0,s.jsx)(U,{})]})},80022:function(e){e.exports={layer:"style_layer__Nvuol",lensTemplate:"style_lensTemplate__FG1Iu",lensSource:"style_lensSource__h3g0s",bubble:"style_bubble__Gumht",in:"style_in__jvMP1",pop:"style_pop__wJyhP",lens:"style_lens__XnozA",lensContent:"style_lensContent__wNQPV",rim:"style_rim__mlr0q",shimmer:"style_shimmer__xPlyZ",gloss:"style_gloss__Mr4er"}},81784:function(e){e.exports={page:"style_page__ZbALD",text:"style_text__vCNEc",title:"style_title___D104",subtitle:"style_subtitle__BMqCg",scene:"style_scene__6RztD",art:"style_art__jTKS_",cta:"style_cta__iRicr"}},52646:function(e){e.exports={page:"style_page__OIpcE",card:"style_card__nFuWI"}},32338:function(e){e.exports={canvas:"style_canvas__w_w1U"}}},function(e){e.O(0,[4577,6378,95,208,5014,2888,9774,179],function(){return e(e.s=58576)}),_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.