1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3799],{90304:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/case/[caseid]/onboarding",function(){return n(88157)}])},88157:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var r=n(98788),s=n(5163),a=n(52322),c=n(97729),u=n.n(c),i=n(37469),o=n(59452),l=n(27978),h=n(18186),f=n(95957),p=n(94116),d=n(56317),_=n(2784),g=n(5632),y=n(65114),b=n(36615),k=n(20880),w=n(3634),v=n(14339);function x(){(0,h.Q)();var e=(0,g.useRouter)(),t=e.query.caseid,n=e.query.edit,c=(0,_.useState)(0),x=c[0],E=c[1],Z=(0,f.f)(t).data,j=(0,_.useState)(!1),C=j[0],N=j[1],S=x+1,m=(0,_.useState)(),q=m[0],P=m[1];if((0,_.useEffect)((function(){Z&&Z.case&&P(Z.case)}),[Z]),(0,_.useEffect)((function(){if(e.query.step){var t=parseInt(e.query.step,10);E(t)}}),[e.query.step]),!q||!Z)return(0,a.jsx)(w.S,{});var T="".concat((0,b.Ps)(Z.case.case_type,t)),X=Z.case.case_type,A=function(){var t=(0,r.Z)((function(){return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return null==n?[3,2]:[4,e.back()];case 1:return t.sent(),[3,6];case 2:return S>=(0,b.X8)(X).length?[4,e.push(Z.redirect_url)]:[3,4];case 3:return t.sent(),[3,6];case 4:return[4,e.push("".concat(T,"?step=").concat(S),void 0,{shallow:!0})];case 5:t.sent(),t.label=6;case 6:return[2]}}
1))}));return function(){return t.apply(this,arguments)}}(),F=function(){var e=(0,r.Z)((function(e){var n;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:y.d.track(i.P.CASE_CREATE,{step:(0,b.Pk)(X,S)}),N(!0),r.label=1;case 1:return r.trys.push([1,6,7,8]),e?[4,k.Z.updateCase(t,X,e,q.dispute_type)]:[3,4];case 2:return r.sent(),[4,k.Z.mutateCase(t)];case 3:r.sent(),r.label=4;case 4:return[4,A()];case 5:return r.sent(),[3,8];case 6:return n=r.sent(),console.error(n),[3,8];case 7:return N(!1),[7];case 8:return[2]}}))}));return function(t){return e.apply(this,arguments)}}();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u(),{children:(0,a.jsx)("title",{children:"Dispute - New"})}),(0,a.jsx)(d.Z,{children:!(null!=n)&&(0,a.jsx)(v.T,{text:"Skip this step",onClick:S>=(0,b.X8)(X).length?A:F,color:"secondary"})}),(0,a.jsx)(o.Z,{sx:{minHeight:"100%",height:"auto",backgroundColor:["white","white",p.Z.palette.background_grey.main,p.Z.palette.background_grey.main]},children:(0,a.jsx)(l.Z,{activeStep:x,caseInfo:Z.case,loading:C,handleNext:F,handleFinish:A})})]})}}},function(e){e.O(0,[4636,1055,7192,3661,5857,3243,5430,8256,6800,5641,2906,2752,6577,391,5837,5899,3642,5247,3794,2874,3211,4106,2545,9731,1375,2047,3200,1893,2232,3391,9774,2888,179],(function(){return t=90304,e(e.s=t);var t}));var t=e.O();_N_E=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.