1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2762],{3936:function(e,n,t){"use strict";t.r(n);var r=t(85893),a=t(809),i=t.n(a),o=t(92447),u=t(64121),c=t(67294),d=t(11163),s=t(50242),l=t(99956),f=t(41120),p=t(87623),v=t(55685),b=t(40978),x=t(77959),h=t(10799),k=t(17894),g=(0,f.Z)((function(e){return(0,p.Z)({card:{padding:e.spacing(3)}})}));n.default=(0,s.Pi)((function(e){g();var n,t,a=(0,d.useRouter)(),s=parseInt(null===(n=a.query)||void 0===n?void 0:n.id,10),f=parseInt(null===(t=a.query)||void 0===t?void 0:t.draftid,10),p=c.useContext(h.as),y=c.useContext(h.mF),m=c.useState(""),_=(0,u.Z)(m,2),T=_[0],w=_[1],D=c.useState(""),O=(0,u.Z)(D,2),j=O[0],C=O[1],E=c.useState(!1),Z=(0,u.Z)(E,2),Y=Z[0],I=Z[1],N=function(){var e=(0,o.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!f){e.next=30;break}return e.prev=1,p.toggleLoading(),e.next=5,y.getFundPlanDraftSummary(f);case 5:y.currentOrderTransactionIsValid||I(!0),e.t0=null===y||void 0===y?void 0:y.draftType,e.next=e.t0===x.Yv.subscriptionOrder?9:e.t0===x.Yv.redemptionOrder?12:e.t0===x.Yv.dcaOrder?15:e.t0===x.Yv.swtichingOrder?18:21;break;case 9:return w("\u0e0b\u0e37\u0e49\u0e2d\u0e01\u0e2d\u0e07\u0e17\u0e38\u0e19"),C("\u0e0b\u0e37\u0e49\u0e2d\u0e01\u0e2d\u0e07\u0e17\u0e38\u0e19\u0e15\u0e32\u0e21\u0e41\u0e1c\u0e19"),e.abrupt("break",21);case 12:return w("\u0e02\u0e32\u0e22\u0e01\u0e2d\u0e07\u0e17\u0e38\u0e19"),C("\u0e02\u0e32\u0e22\u0e01\u0e2d\u0e07\u0e17\u0e38\u0e19\u0e15\u0e32\u0e21\u0e41\u0e1c\u0e19"),e.abrupt("break",21);case 15:return w("\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e0b\u0e37\u0e49\u0e2d\u0e1b\u0e23\u0e30\u0e08\u0e33 (DCA)"),C("\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e0b\u0e37\u0e49\u0e2d\u0e1b\u0e23\u0e30\u0e08\u0e33 (DCA)"),e.abrupt("break",21);case 18:return w("\u0e2a\u0e31\u0e1a\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e01\u0e2d\u0e07\u0e17\u0e38\u0e19"),C("\u0e2a\u0e31\u0e1a\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e01\u0e2d\u0e07\u0e17\u0e38\u0e19\u0e15\u0e32\u0e21\u0e41\u0e1c\u0e19"),e.abrupt("break",21);case 21:e.next=27;break;case 23:e.prev=23,e.t1=e.catch(1),console.log("error order riskbase buyfund",e.t1),I(!0);case 27:return e.prev=27,p.toggleLoading(),e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[1,23,27,30]])})));return function(){return e.apply(this,arguments)}}();return c.useEffect((function(){!function(){var e=document.getElementById("scroll");e&&e.scrollTo(0,0)}(),N()}),[]),(0,r.jsx)(v.YD,{children:Y?(0,r.jsx)(k.xU,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.KL,{title:T,onClickBack:function(){a.back()}}),(0,r.jsx)(l.Z,{display:"flex",flexDirection:"column",id:"scroll",children:(0,r.jsx)(b.Vx,{fund:null===y||void 0===y?void 0:y.list,type:(null===y||void 0===y?void 0:y.draftType)===x.Yv.dcaOrder?x.Rh.dca:x.Rh.buy,onSubmit:function(e){s&&f&&a.push("/portfolio/".concat(s,"/order/pincode?type=").concat(x.Rh.planDraft,"&fundPlanDraftType=").concat(null===y||void 0===y?void 0:y.draftType,"&fundId=").concat(e.join(",")))},disabled:!1,btnTitle:j,effectiveDateTime:null===y||void 0===y?void 0:y.effectiveDateTime})})]})})}))},16995:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/portfolio/[id]/order/agent/[draftid]/consent",function(){return t(3936)}])}},function(e){e.O(0,[8085,9394,1954,978,8739,5710,9774,2888,179],(function(){return n=16995,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.