1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8799],{23389:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/case/[caseid]",function(){return n(60956)}])},11261:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(52322),s=n(56042),a=n(42761),c=n(40224),u=n(49107);function i(e){var t=e.description,n=e.hideMainAppBar;return(0,r.jsxs)(r.Fragment,{children:[!n&&(0,r.jsx)(u.Z,{}),(0,r.jsx)(s.Z,{maxWidth:"md",sx:{flexGrow:1,mb:2},children:(0,r.jsx)(a.ZP,{container:!0,justifyContent:"center",sx:{mt:4},children:(0,r.jsx)(a.ZP,{item:!0,xs:12,children:(0,r.jsx)(c.Z,{severity:"error",children:t})})})})]})}i.defaultProps={description:"Oops, something went wrong. Please reach out to live chat.",hideMainAppBar:!1}},60956:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var r=n(98788),s=n(5163),a=n(52322),c=n(2784),u=n(5632),i=n(37469),o=n(97729),l=n.n(o),h=n(18186),d=n(11261),p=n(3634),f=n(95957),x=n(56317),_=n(14339),j=n(59452),g=n(65114),y=n(36615),v=n(94116),w=n(20880),Z=n(27978),m=n(77102);function b(){(0,h.Q)();var e=(0,u.useRouter)(),t=e.query.caseid,n=(0,c.useState)(0),o=n[0],b=n[1],k=o+1,E=(0,c.useState)(),S=E[0],C=E[1],P=(0,f.f)(t,(0,m.x)()),N=P.data,q=P.error,A=(0,c.useState)(!1),F=A[0],T=A[1],X=e.query.edit;if((0,c.useEffect)((function(){N&&N.case&&C(N.case)}),[N]),(0,c.useEffect)((function(){if(e.query.step){var t=parseInt(e.query.step,10);b(t)}}),[e.query.step]),!S||!N)return(0,a.jsx)(p.S,{});var O="".concat((0,y.Ps)(N.case.case_type,t)),B=N.case.case_type,I=function(){var t=(0,r.Z)((function(){return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return null==X?[3,2]:[4,e.back()];case 1:return t.sent(),[3,6];case 2:return k>=(0,y.X8)(B).length?[4,e.push(N.redirect_url)]:[3,4];case 3:return t.sent(),[3,6];case 4:return[4,e.push("".concat(O,"?step=").concat(k),void 0,{shallow:!0})];case 5:t.sent(),t.label=6;case 6:return[2]}}
1))}));return function(){return t.apply(this,arguments)}}(),M=function(){var e=(0,r.Z)((function(e){var n;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:g.d.track(i.P.CASE_CREATE,{step:(0,y.Pk)(B,k)}),T(!0),r.label=1;case 1:return r.trys.push([1,6,7,8]),e?[4,w.Z.updateCase(t,B,e,S.dispute_type)]:[3,4];case 2:return r.sent(),[4,w.Z.mutateCase(t)];case 3:r.sent(),r.label=4;case 4:return[4,I()];case 5:return r.sent(),[3,8];case 6:return n=r.sent(),console.error(n),[3,8];case 7:return T(!1),[7];case 8:return[2]}}))}));return function(t){return e.apply(this,arguments)}}();return q?(0,a.jsx)(d.S,{}):S?(0,a.jsxs)(a.Fragment,{children:[!(0,m.x)()&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l(),{children:(0,a.jsx)("title",{children:"Dispute - New"})}),(0,a.jsx)(x.Z,{children:!(null!=X)&&(0,a.jsx)(_.T,{text:"Skip this step",onClick:k>=(0,y.X8)(B).length?I:M,color:"secondary"})})]}),(0,a.jsx)(j.Z,{sx:{minHeight:"100%",height:"auto",backgroundColor:["white","white",v.Z.palette.background_grey.main,v.Z.palette.background_grey.main]},children:(0,a.jsx)(Z.Z,{activeStep:o,caseInfo:N.case,loading:F,handleNext:M,handleFinish:I})})]}):(0,a.jsx)(p.S,{})}}},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=23389,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.