PageSourceSearch

https://dashboard.waffo.com/app/p__transactions__disputes__Detail.5fd508dc.async.js

js waffo.com collected 2026-09-24 12:18:22 UTC 55,271 bytes, 3 lines download raw bytes

1(self.webpackChunkwaffo_merchant_web=self.webpackChunkwaffo_merchant_web||[]).push([[1330],{54134:function(Le,ne,t){"use strict";t.d(ne,{Z:function(){return e}});var g=t(4529),o=t(75271),p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},E=p,u=t(35244),j=function(z,H){return o.createElement(u.Z,(0,g.Z)({},z,{ref:H,icon:E}))},Y=o.forwardRef(j),e=Y},15739:function(Le,ne,t){"use strict";t.d(ne,{Z:function(){return e}});var g=t(4529),o=t(75271),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},E=p,u=t(35244),j=function(z,H){return o.createElement(u.Z,(0,g.Z)({},z,{ref:H,icon:E}))},Y=o.forwardRef(j),e=Y},28593:function(Le,ne,t){"use strict";t.d(ne,{Z:function(){return e}});var g=t(4529),o=t(75271),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},E=p,u=t(35244),j=function(z,H){return o.createElement(u.Z,(0,g.Z)({},z,{ref:H,icon:E}))},Y=o.forwardRef(j),e=Y},69446:function(Le,ne,t){"use strict";t.d(ne,{Z:function(){return le},S:function(){return O}});var g=t(90228),o=t.n(g),p=t(87999),E=t.n(p),u=t(51540),j=t(90177),Y=t(37840),e=t(39740),m=t(85020),z=t(59280),H=t(66805),v=t(1573),r={download:"download___mvKfc"},P=t(52676),ae=H.Z.Text,O=function(D){if(D!=null&&D.startsWith("s3://")){var f=D.split("/");return f[f.length-1]}return D};function Q(G){var D=G.fileList,f=G.type,S=f===void 0?"list":f,N=G.scene,L=N===void 0?"merchant":N,x={settlement:j.km,merchant:j.km,dispute:Y.zr}[L]||function(){return Promise.reject()},B=(0,z.Z)(x,{manual:!0}),fe=function(){var me=E()(o()().mark(function he(de,ue){return o()().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(!ue){be.next=3;break}return setTimeout(function(){window.open(ue,"_blank")},300),be.abrupt("return");case 3:B.runAsync({fileName:de}).then(function(y){var We=y==null?void 0:y.data;setTimeout(function(){window.open(We,"_blank")},300)}).catch(function(){});case 4:case"end":return be.stop()}},he)}));return function(de,ue){return me.apply(this,arguments)}}(),n=function(){v.Z.info({width:840,footer:null,icon:null,title:(0,e.tr)("i18n.download.csv.eaa216a"),closable:!0,className:r.download,content:(0,P.jsx)(P.Fragment,{children:(0,P.jsx)("div",{style:{height:"284px",overflowY:"auto"},children:D==null?void 0:D.map(function(he,de){var ue=he.fileName;return(0,P.jsxs)("div",{className:"flex items-center justify-between break-words mb-8",children:[(0,P.jsx)("div",{children:ue}),(0,P.jsx)(u.zx,{type:"link",onClick:function(){fe(ue)},children:(0,e.tr)("i18n.download.csv.eaa216a")})]},ue+de)})})})})},Ae=function(){if((D==null?void 0:D.length)===1){fe(D[0].fileName,D[0].fileUrl);return}n()};return D!=null&&D.length?S==="modal"?(0,P.jsx)(u.zx,{onClick:Ae,type:"link",children:(0,e.tr)("i18n.download.csv.eaa216a")}):S==="list"?(0,P.jsx)(P.Fragment,{children:D.map(function(me,he){var de=O(me.fileName);return(0,P.jsx)("div",{children:(0,P.jsx)(u.zx,{type:"link",onClick:function(){return fe(me.fileName,me.fileUrl)},icon:(0,P.jsx)(m.Z,{}),children:(0,P.jsx)(ae,{style:{maxWidth:300},className:"text-theme",ellipsis:{tooltip:de},children:de})})},me.fileName+he)})}):null:(0,P.jsx)("span",{children:"-"})}var le=Q},13707:function(Le,ne,t){"use strict";var g=t(23588),o=t(82187),p=t.n(o),E=t(75271),u=t(52676),j=function(e){var m=e.infos,z=e.title,H=e.className,v=e.bordered,r=v===void 0?!1:v,P
1=e.children,ae=e.tag,O=e.footer,Q=e.hasBg,le=Q===void 0?!1:Q,G=ae?E.cloneElement(ae,{className:"rounded-none mb-16 -mt-12  -mx-24 px-24 py-8 flex items-center font-bold text-12"}):null,D=function(N){return N==null?void 0:N.map(function(L,x){return(0,u.jsxs)("div",{className:"flex items-center justify-between mb-8 text-14 py-[2px] text-primary last:mb-0",children:[(0,u.jsx)("div",{className:"mr-64 capitalize text-secondary",children:L==null?void 0:L.label}),(0,u.jsx)("div",{className:"flex justify-end flex-1  font-medium",style:{wordBreak:"break-word"},children:(L==null?void 0:L.value)||"-"})]},x)})},f=function(){var N=!m||(m==null?void 0:m.every(function(x){return Array.isArray(x)?x.every(function(B){return B.value===void 0||B.value===!1||B.value===""||B.value===null}):!x||x.value===void 0||x.value===!1||x.value===""||x.value===null}));if(N&&!O&&!P)return(0,u.jsx)(g.Z,{image:g.Z.PRESENTED_IMAGE_SIMPLE});var L=m==null?void 0:m.every(function(x){return Array.isArray(x)});return L?(0,u.jsx)("div",{className:"flex flex-col gap-24",children:m==null?void 0:m.map(function(x,B){return(0,u.jsx)("div",{children:D(x)},B)})}):D(m)};return(0,u.jsxs)("div",{className:p()("border px-24 py-16 rounded-[12px] border-primary border-solid overflow-hidden",H),style:le?{background:"linear-gradient(180deg, rgba(242, 247, 255, 0.80) 0%, rgba(242, 247, 255, 0.20) 100%)",border:"none"}:{},children:[G,(0,u.jsx)("div",{className:p()("text-16 font-bold mb-12",r&&"pb-8 border-0 border-b-[1px] border-solid border-primary"),children:z}),P,f(),O]})};ne.Z=j},60044:function(Le,ne,t){"use strict";t.r(ne),t.d(ne,{default:function(){return xt}});var g=t(90228),o=t.n(g),p=t(87999),E=t.n(p),u=t(26068),j=t.n(u),Y=t(48305),e=t.n(Y),m=t(56568),z=t(51540),H=t(21858),v=t(37840),r=t(39740),P=t(28593),ae=t(64267),O=t(12197),Q=t(59280),le=t(1573),G=t(45552),D=t(49204),f=t(42784),S=t(19525),N=t(82187),L=t.n(N),x=t(75271),B=t(87966),fe=t(13707),n=t(52676);function Ae(Z){var d=Z.amountInfo,c=Z.isChargeback,a=[{label:c?(0,r.tr)("i18n.chargeback.amount.e042f94"):(0,r.tr)("i18n.dispute.amount.2eec5e9"),value:Number(d.disputeAmount)===0?"-":(0,n.jsx)(B.ZP,{amount:d==null?void 0:d.disputeAmount,currency:d==null?void 0:d.disputeAmountCurrency})},{label:"".concat(c?(0,r.tr)("i18n.chargeback.fee.amount.w05"):(0,r.tr)("i18n.dispute.fee.amount.w04"),"(").concat(d.disputeFeeCurrency||"USD",")"),value:Number(d.disputeFee)===0?"-":(0,n.jsx)(B.ZP,{amount:d==null?void 0:d.disputeFee,currency:(d==null?void 0:d.disputeFeeCurrency)||"USD"})}];return(0,n.jsx)(fe.Z,{title:(0,r.tr)("i18n.amounts.b410ab6"),infos:a})}var me=Ae,he=t(15558),de=t.n(he),ue=t(92569),Re=t(66805),be=t(8795),y=t(83087),We=Re.Z.Paragraph;function Xe(Z){var d,c=Z.detailInfo,a=c||{},A=a.compulsoryChannelReview,W=(c==null?void 0:c.disputeType)===y.Eq.CHARGEBACK,q=(d=[(c==null?void 0:c.disputeType)===y.Eq.CUSTOMER_DISPUTE?{label:(0,r.tr)("i18n.compulsory.channel.review.81e55d1"),value:A!==void 0?A?(0,n.jsx)(be.Z,{color:"green",children:(0,r.tr)("i18n.yes.5397e05")}):(0,n.jsx)(be.Z,{color:"default",children:(0,r.tr)("i18n.no.816c52f")}):"-"}:void 0,W?{label:(0,r.tr)("i18n.chargeback.reason.code.cf804a7"),value:c.disputeReasonCode}:void 0,W?{label:(0,r.tr)("i18n.payment.method.0e55fb3"),value:c.payMethodName||"-"}:void 0,W?{label:(0,r.tr)("i18n.full.refund.fr1"),value:c.fullRefunded===1||c.fullRefunded===!0?(0,n.jsx)(be.Z,{color:"green",children:(0,r.tr)("i18n.yes.5397e05")}):(0,n.jsx)(be.Z,{color:"default",children:(0,r.tr)("i18n.no.816c52f")})}:void 0,W?{label:(0,r.tr)("i18n.settlement.status.042dc08"),value:(0,y.nm)(c.settlementStatus)}:void 0,{label:(0,r.tr)("i18n.reason.f219cc0"),value:(0,n.jsx)(We,{className:"max-w-[400px] mb-0",style:{whiteSpace:"pre-line"},ellipsis:{rows:1,expandable:!0,symbol:(0,r.tr)("i18n.more.e7c95b4")},children:c.disputeReason||"-"})},{label:(0,r.tr)("i18n.description.55f8ebc"),value:(0,n.jsx)(We,{className:"max-w-[400px] mb-0",style:{whiteSpace:"pre-line"},ellipsis:{rows:2,expandable:!0,symbol:(0,r.tr)("i18n.more.e7c95b4")},children:c.disputeDesc||"-"})}])===null||d===void 0?void 0:d.filter(function(K){return!!K}),F=[{label:(0,r.tr)("i18n.created.datetime.3e188fb"),value:c.createTime&&(0,ue.Bv)(c.createTime).format(ue.Qw)}];
1return(0,n.jsx)(fe.Z,{title:W?(0,r.tr)("page.chargebackDetails"):(0,r.tr)("i18n.details.dc3decb"),infos:c.createTime?[].concat(de()(q),F):q})}var Ke=Xe,l=t(9182),s=t(67825),h=t.n(s),b=t(54134),M=t(14138),pe=["value","onChange","multiple"],Se=M.Z.Dragger,xe=function(d){if(d!=null&&d.startsWith("s3://")){var c=d.split("/");return c[c.length-1]}return d},Te=function(d){if(d!=null&&d.includes("/")){var c=d.split("/");return c[c.length-1]}return d};function ye(Z){var d=Z.value,c=Z.onChange,a=Z.multiple,A=a===void 0?!0:a,W=h()(Z,pe),q=(0,Q.Z)(v.ri,{manual:!0}),F=(0,x.useState)(d==null?void 0:d.map(function(U){return{uid:U,name:xe(U),status:"done",url:U}})),K=e()(F,2),X=K[0],C=K[1],_=function(I){var Oe,ie,J;if((I==null||(Oe=I.file)===null||Oe===void 0?void 0:Oe.status)!=="uploading"){var $,ee=I==null||($=I.file)===null||$===void 0||($=$.response)===null||$===void 0||($=$.data)===null||$===void 0?void 0:$.s3FileName;ee?(I.file.name=Te(xe(ee)),I.file.url=ee):I.file.status="error"}var se=(ie=I.fileList)===null||ie===void 0?void 0:ie.map(function(V){var w;return(w=V.response)===null||w===void 0||(w=w.data)===null||w===void 0?void 0:w.s3FileName}).filter(function(V){return!!V});c==null||c(se);var oe=(J=I.fileList)===null||J===void 0?void 0:J.filter(function(V){return!!V.status});C(oe)},Ie=function(I){I.name&&I.url&&q.runAsync({fileName:I.url,type:0})},Ee={action:"".concat("","/acquiringmerchant/web/v1/dispute-order/upload"),multiple:A,onChange:_,data:j()({},W),disabled:(X==null?void 0:X.length)>=10,beforeUpload:function(I,Oe){var ie=["image/jpeg","image/png","image/bmp"],J=(X==null?void 0:X.length)||0,$=Oe.length,ee=J+$;if(ee>10){var se=Oe.indexOf(I)===0;return se&&G.ZP.error("Up to 10 files"),!1}var oe=Oe.indexOf(I)===0;if(oe){var V=Oe.filter(function(Ye){return!ie.includes(Ye.type)});V.length>0&&G.ZP.error("".concat(V.length," file(s) have invalid type. You can only upload JPG/PNG/BMP files!"));var w=Oe.filter(function(Ye){return Ye.size/1024/1024>=2});w.length>0&&G.ZP.error("".concat(w.length," file(s) are too large. Each image must be smaller than 2MB!"))}var T=ie.includes(I.type),ve=I.size/1024/1024<2;return T&&ve},withCredentials:!0,onPreview:Ie,accept:"image/jpeg,image/png,image/bmp"};return(0,n.jsxs)(Se,j()(j()({},Ee),{},{fileList:X,className:"block [&_.ant-upload-drag]:bg-[#F6F7FE] pr-24 -mr-24",children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(b.Z,{})}),(0,n.jsx)("p",{className:"ant-upload-text",children:(0,r.tr)("i18n.click.or.drag.file.to.this.area.to.ed7e8b0")}),(0,n.jsx)("p",{className:"ant-upload-hint",children:(0,r.tr)("i18n.only.support.for.jpg.png.bmp.images.each.bfc43d3")})]}))}var Me=ye,Ue=Re.Z.Text;function we(Z){var d=Z.files,c=(0,Q.Z)(v.ri,{manual:!0}),a=c.run,A=(0,O.useModel)("permission",function(F){return{permission:F.permission}}),W=A.permission,q=W==null?void 0:W.API_DISPUTES_DOWNLOAD;return(0,n.jsx)("div",{children:d.map(function(F,K){return(0,n.jsxs)("div",{className:"flex items-center justify-between hover:bg-[#F6F7FE]",children:[(0,n.jsxs)("div",{className:"flex items-center w-[410px] mr-24",children:[(0,n.jsx)(O.Icon,{icon:"local:file",className:"mr-8 text-secondary p-[2px]"}),(0,n.jsx)(Ue,{className:"text-primary text-14",ellipsis:{tooltip:F},children:Te(F)})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(z.zx,{type:"link",onClick:function(){a({fileName:F,type:0})},className:"mr-16",disabled:!q,children:(0,r.tr)("i18n.view.69bd4ef")}),(0,n.jsx)(z.zx,{type:"link",onClick:function(){a({fileName:F,type:1})},disabled:!q,children:(0,r.tr)("i18n.download.a479c9c")})]})]},K)})})}var ke=we,ce={CREATE_DISPUTE:"i18n.dispute.event.create.dispute",USER_CREATE_COMPLAINT:"i18n.dispute.event.user.create.complaint",USER_RESPONSE:"i18n.dispute.event.user.response",MERCHANT_RESPONSE:"i18n.dispute.event.merchant.response",MERCHANT_SUBMIT_EVIDENCE:"i18n.dispute.event.merchant.submit.evidence",MERCHANT_SUBMITS_EVIDENCE:"i18n.dispute.event.merchant.submit.evidence",MORE_EVIDENCE_REQUIRED:"i18n.dispute.event.more.evidence.required",PLATFORM_RESPONSE:"i18n.dispute.event.platform.response",DISPUTE_ESCALATED:"i18n.dispute.event.dispute.escalated",NOTIFY_OVERDUE:"i18n.dispute.event.notify.overdue",CLOSE_DISPUTE:"i18n.dispute.event.close.dispute",EXPIRED:"i18n.dispute.event.expired",CHANNEL_CLOSE_DISPUTE:"i18n.dispute.event.channel.close.dispute",CHARGEBACK_EXPIRED:"i18n.dispute.event.chargeback.expired",CHARGEBACK_SETTLED:"i18n.dispute.event.chargeback.settled",CREATE_SECOND_CYCLE_DISPUTE:"i18n.dispute.event.create.second.cycle.dispute",MERCHANT_ACCEPTED_DISPUTE:"i18n.dispute.event.merchant.accepted.dispute",MERCHANT_DEFENDS_SECOND_CYCLE:"i18n.dispute.event.merchant.defends.second.cycle",MERCHANT_LOST_DISPUTE:"i18n.dispute.event.merchant.lost.dispute",MERCHANT_WON_DISPUTE:"i18n.dispute.event.merchant.won.dispute",MERCHANT_CONFIRM_COMPLETE:"i18n.dispute.event.merchant.confirm.complete"},Qe=function(d){return d&&ce[d]?(0,r.tr)(ce[d]):d||"-"},$e=function(d){var c=d.eventTimeLines,a=c===void 0?[]:c,A=d.uploadBlock,W=d.editMessageBlock,q=d.evidenceFieldsBlock,F=(0,O.useSearchParams)(),K=e()(F,1),X=K[0],C=X.get("action"),_=!!C&&["close","accept","submit","reply"].includes(C),Ie=_?[{status:"process",icon:(0,n.jsx)("div",{className:"w-24 h-24 text-14 rounded-full bg-theme text-white flex items-center justify-center",children:a.length+1}),description:(0,n.jsxs)("div",{className:"pb-16 space-y-12",children:[["submit","reply"].includes(C)&&W,C&&["close","accept","submit","reply"].includes(C)&&A,["submit","reply"].includes(C)&&q]})}]:[],Ee=(a==null?void 0:a.map(function(U,I){return{status:"finish",title:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(U==null?void 0:U.disputeMessageType)&&(0,n.jsx)(be.Z,{color:"blue",className:"mr-16",children:Qe(U==null?void 0:U.disputeMessageType)}),(0,n.jsx)("span",{className:"text-sm text-gray-500",children:(0,ue.rp)({date:U.operateTime})})]}),icon:(0,n.jsx)("div",{className:"w-24 h-24 text-14 rounded-full bg-theme text-white flex items-center justify-center",children:a.length-I}),description:(0,n.jsxs)("div",{className:"pb-16 space-y-12",children:[U.message&&(0,n.jsx)("div",{className:"text-gray-600",style:{whiteSpace:"pre-line"},children:U.message}),(U==null?void 0:U.files)&&(0,n.jsx)(ke,{files:U==null?void 0:U.files})]})}}))||[];return(0,n.jsx)(fe.Z,{title:(0,r.tr)("i18n.timeline.018514a"),children:(0,n.jsx)(l.Z,{className:"overflow-auto max-h-[800px] overflow-y-auto scrollbar-none",direction:"vertical",size:"small",items:Ie.concat(Ee)})})},it=$e,Ze=t(48615),rt=t(86520),Je=(0,x.forwardRef)(function(Z,d){var c=Z.info,a=Z.onChange,A=Z.isSecondC
1hargeback,W=A===void 0?!1:A,q=Z.actionOverride,F=Ze.Z.useForm(),K=e()(F,1),X=K[0],C=(0,O.useSearchParams)(),_=e()(C,1),Ie=_[0],Ee=q||Ie.get("action"),U=W&&Ee==="submit";return(0,x.useImperativeHandle)(d,function(){return{validateFields:function(){return X.validateFields()},getFieldsValue:function(){return X.getFieldsValue()}}}),(0,n.jsx)(Ze.Z,{layout:"vertical",initialValues:Ee!=="reply"?{message:(0,y.CZ)(c,W)}:{},onChange:a,form:X,children:!U&&(0,n.jsx)(Ze.Z.Item,{name:"message",label:(0,r.tr)("i18n.message.68f4145"),rules:[{required:!0,message:(0,r.tr)("i18n.please.input.message.633c77b")}],children:(0,n.jsx)(rt.Z.TextArea,{rows:3,maxLength:Ee==="reply"?200:1024,placeholder:Ee==="reply"?(0,r.tr)("i18n.max.message.length.200.w11"):""})})})}),at=t(69446),lt=t(74759),pt=t(88523),Et=t(23588);function R(Z){var d,c=Z.evidenceField,a=(0,Q.Z)(v.U8),A=((d=a.data)===null||d===void 0||(d=d.data)===null||d===void 0?void 0:d.evidenceField)||[],W=(c==null?void 0:c.evidenceFields)||[];if(!W||W.length===0)return null;var q=function(K){return K?K.split(",").filter(function(X){return X.trim()}):[]};return(0,n.jsx)(lt.Z,{title:(0,r.tr)("i18n.evidence.fields.7fdd805"),className:"mb-16",children:(0,n.jsx)(pt.Z,{spinning:a.loading,children:W.length===0?(0,n.jsx)(Et.Z,{description:"No evidence fields"}):(0,n.jsx)("div",{className:"space-y-16",children:W.map(function(F){var K=A.find(function(Ie){return Ie.value===F}),X=(K==null?void 0:K.displayName)||(0,y.ph)(F),C=(K==null?void 0:K.type)||"text",_=c==null?void 0:c[F];return(0,n.jsxs)("div",{className:"pb-12 last:border-b-0",children:[(0,n.jsx)("div",{className:"text-14 font-medium text-[#666] mb-8",children:X}),(0,n.jsx)("div",{className:"text-14",children:C==="file"?_?(0,n.jsx)(at.Z,{scene:"dispute",fileList:q(_).map(function(Ie){return{fileName:Ie}})}):(0,n.jsx)("span",{className:"text-[#999]",children:"-"}):_?(0,n.jsx)("div",{className:"whitespace-pre-wrap break-words bg-[#F6F6F7] p-8 rounded",children:_}):(0,n.jsx)("span",{className:"text-[#999]",children:"-"})})]},F)})})})})}var Ce=R,ht=t(82092),Ct=t.n(ht),gt=t(15739),st=(0,x.forwardRef)(function(Z,d){var c,a,A=Z.info,W=Ze.Z.useForm(),q=e()(W,1),F=q[0],K=(0,x.useState)({}),X=e()(K,2),C=X[0],_=X[1],Ie=(0,Q.Z)(v.U8),Ee=(A==null||(c=A.evidenceField)===null||c===void 0?void 0:c.evidenceFields)||[],U=((a=Ie.data)===null||a===void 0||(a=a.data)===null||a===void 0?void 0:a.evidenceField)||[];(0,x.useImperativeHandle)(d,function(){return{getEvidenceData:function(){if(Ee.length!==0){var J={evidenceFields:Ee};return Ee.forEach(function($){var ee=U.find(function(w){return w.value===$});if((ee==null?void 0:ee.type)==="file"){var se=C[$]||[],oe=se.map(function(w){var T;return((T=w.response)===null||T===void 0||(T=T.data)===null||T===void 0?void 0:T.s3FileName)||w.url}).filter(function(w){return!!w});oe.length>0&&(J[$]=oe.join(","))}else{var V=F.getFieldValue("evidence_".concat($));V&&(J[$]=V)}}),J}}}});var I=function(J){var $=["image/jpeg","image/png","image/bmp","application/pdf"],ee=$.includes(J.type);ee||G.ZP.error((0,r.tr)("i18n.you.can.only.upload.jpeg.png.bmp.pdf.5368136"));var se=J.size/1024/1024<10;return se||G.ZP.error((0,r.tr)("i18n.file.must.be.smaller.than.10mb.47aea27")),ee&&se},Oe=function(){var ie=E()(o()().mark(function J($){var ee,se,oe,V;return o()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(se=((ee=$.response)===null||ee===void 0||(ee=ee.data)===null||ee===void 0?void 0:ee.s3FileName)||$.url,se){T.next=3;break}return T.abrupt("return");case 3:return T.prev=3,T.next=6,(0,v.zr)({fileName:se,type:0});case 6:oe=T.sent,V=oe==null?void 0:oe.data,V&&window.open(V,"_blank"),T.next=14;break;case 11:T.prev=11,T.t0=T.catch(3),G.ZP.error((0,r.tr)("i18n.failed.to.get.file.url.5bbdcb0"));case 14:case"end":return T.stop()}},J,null,[[3,11]])}));return function($){return ie.apply(this,arguments)}}();return Ee.length===0?null:(0,n.jsx)(Ze.Z,{layout:"vertical",form:F,children:(0,n.jsxs)("div",{className:"border border-solid border-[#F0F0F2] rounded p-16 mt-16",style:{borderRadius:8,paddingBottom:0},children:[(0,n.jsx)("div",{className:"text-16 font-bold mb-4",children:(0,r.tr)("i18n.evidence.fields.7fdd805")}),(0,n.jsx)("div",{className:"text-14 mb-16 text-[rgba(15,23,42,0.45)]",children:(0,r.tr)("i18n.new.submissions.will.replace.previous.evidence.please.submit.0f27150")}),Ee.map(function(ie){var J=U.find(function(oe){return oe.value===ie}),$=(J==null?void 0:J.displayName)||(0,y.ph)(ie),ee=(J==null?void 0:J.type)||"text";if(ee==="file"){var se=C[ie]||[];return(0,n.jsx)(Ze.Z.Item,{label:$,name:"evidence_".concat(ie),extra:(0,n.jsx)("p",{style:{marginTop:8,marginBottom:0},children:(0,r.tr)("i18n.upload.up.to.10.files.jpeg.png.bmp.df24955")}),children:(0,n.jsx)(M.Z,{action:"".concat("","/acquiringmerchant/web/v1/dispute-order/upload"),multiple:!0,withCredentials:!0,maxCount:10,accept:"image/jpeg,image/png,image/bmp,application/pdf",fileList:se,beforeUpload:I,onPreview:Oe,onChange:function(V){var w;if((V==null||(w=V.file)===null||w===void 0?void 0:w.status)!=="uploading"){var T,ve=V==null||(T=V.file)===null||T===void 0||(T=T.response)===null||T===void 0||(T=T.data)===null||T===void 0?void 0:T.s3FileName;ve?(V.file.name=(0,at.S)(ve),V.file.url=ve):V.file.status="error"}_(function(Ye){return j()(j()({},Ye),{},Ct()({},ie,V.fileList))})},children:(0,n.jsxs)(D.ZP,{type:"primary",icon:(0,n.jsx)(gt.Z,{}),disabled:se.length>=10,children:[(0,r.tr)("i18n.upload.8bdf057")," ",se.length>=10?"(Max 10 files)":""]})})},ie)}else return(0,n.jsx)(Ze.Z.Item,{label:$,name:"evidence_".concat(ie),children:(0,n.jsx)(rt.Z.TextArea,{rows:3,maxLength:2048,showCount:!0,placeholder:"Enter ".concat($),style:{width:"100%"}})},ie)})]})})}),ot=function(d){var c,a=d.detailData,A=[{label:(0,r.tr)("i18n.original.payment.request.id.f0c7e7b"),value:(a==null?void 0:a.origPaymentRequestId)||"-"},{label:(0,r.tr)("i18n.merchant.id.c7e6309"),value:(a==null?void 0:a.mid)||"-"}].concat(de()(a!=null&&a.subMerchantId?[{label:(0,r.tr)("i18n.sub.merchant.id.c240687"),value:a.subMerchantId},{label:(0,r.tr)("i18n.sub.merchant.name.eb512ec"),value:a.subMerchantName||"-"}]:[]),[{label:(0,r.tr)("i18n.subscription.request.a9333ac"),value:(a==null||(c=a.subscriptionInfo)===null||c===void 0?void 0:c.subscriptionRequest)||"-"},{label:(0,r.tr)("i18n.subscription.id.7a8bd3d"),value:(a==null?void 0:a.relatedSubscriptionId)||"-"},{label:(0,r.tr)("i18n.merchant.user.id.461cbee"),value:(a==null?void 0:a.merchantUserId)||"-"}]);return(0,n.jsx)(fe.Z,{title:(0,r.tr)("i18n.merchant.info.06776aa"),infos:A})},Dt=ot,dt=function(d){var c,a=d.summaryInfo,A=(a==null?void 0:a.disputeType)===y.Eq.CHARGEBACK,W=A&&(0,y.Pg)({lifeCycle:a==null?void 0:a.lifeCycle,disputeStatus:a==null?void 0:a.status}),q=(c=[{label:A?(0,r.tr)("i18n.chargeback.status.deea925"):(0,r.tr)("i18n.dispute.status.592b9a8"),value:(0,y.vQ)(a==null?void 0:a.status,a==null?void 0:a.lifeCycle)},(a==null?void 0:a.disputeType)===y.Eq.CUSTOMER_DISPUTE?{label:(0,r.tr)("i18n.expire.status.a3c3bbe"),value:y.Pv[a.expireStatus||""]||"-"}:void 0,A?{label:(0,r.tr)("i18n.life.cycle.5d46340"),value:(0,y.p4)(a==null?void 0:a.lifeCycle)}:void 0,{label:A?(0,r.tr)("i18n.chargeback.datetime.w03"):(0,r.tr)("i18n.dispute.datetime.w02"),value:a!=null&&a.channelDisputeTime?(0,ue.rp)({date:a==null?void 0:a.channelDisputeTime}):"-"},{label:(0,r.tr)("i18n.order.id.042ee67"),value:a!=null&&a.acqOrderId?(0,n.jsx)("a",{className:"text-blue-600 cursor-pointer hover:underline",onClick:function(){O.history.push("".concat(H.Z.TRANSACTION_PAYMENTS_DETAIL,"?orderId=").concat(encodeURIComponent(a.acqOrderId)))},children:a.acqOrderId}):"-"},{label:(0,r.tr)("i18n.order.datetime.cf5edd9"),value:a!=null&&a.orderDateTime?(0,ue.rp)({date:a.orderDateTime}):"-"},{label:A?(0,r.tr)("i18n.chargeback.id.32e8d39"):(0,r.tr)("i18n.dispute.i
1d.e7b7f36"),value:a==null?void 0:a.disputeId},{label:(0,r.tr)("i18n.expire.datetime.28a2cbc"),value:a!=null&&a.evidenceCollectExpiredTime?(0,ue.rp)({date:a==null?void 0:a.evidenceCollectExpiredTime}):"-"},A&&a.relevantChargebackId?{label:(0,r.tr)("i18n.relevant.chargeback.id.d9f4382"),value:(0,n.jsx)("a",{className:"text-blue-600 cursor-pointer hover:underline",onClick:function(){O.history.push("".concat(H.Z.TRANSACTION_DISPUTES_DETAIL,"?tab=chargeback&disputeId=").concat(a.relevantChargebackId,"&action=view"))},children:a.relevantChargebackId})}:void 0,A&&!W&&a.relevantCustomerDisputeId?{label:(0,r.tr)("i18n.relevant.customer.dispute.id.766953c"),value:(0,n.jsx)("a",{className:"text-blue-600 cursor-pointer hover:underline",onClick:function(){O.history.push("".concat(H.Z.TRANSACTION_DISPUTES_DETAIL,"?tab=customerDisputes&disputeId=").concat(a.relevantCustomerDisputeId,"&action=view"))},children:a.relevantCustomerDisputeId})}:void 0])===null||c===void 0?void 0:c.filter(function(F){return!!F});return(0,n.jsx)(fe.Z,{title:(0,n.jsx)(B.ZP,{amount:a==null?void 0:a.disputeAmount,currency:a==null?void 0:a.disputeAmountCurrency,size:"large",label:A?(0,r.tr)("i18n.chargeback.amount.e042f94"):(0,r.tr)("i18n.dispute.amount.2eec5e9")}),hasBg:!0,infos:q})},bt=dt,St=function(){var d,c,a,A=(0,O.useSearchParams)(),W=e()(A,2),q=W[0],F=W[1],K=(0,x.useState)([]),X=e()(K,2),C=X[0],_=X[1],Ie=(0,x.useState)(""),Ee=e()(Ie,2),U=Ee[0],I=Ee[1],Oe=(0,x.useState)(!1),ie=e()(Oe,2),J=ie[0],$=ie[1],ee=(0,x.useState)("submit"),se=e()(ee,2),oe=se[0],V=se[1],w=(0,x.useRef)(null),T=(0,x.useRef)(null),ve=q.get("disputeId"),Ye=q.get("tab")||"customerDisputes",Ve=q.get("action"),ut=Ve==="respond",Tt=ut||q.get("respond")==="1",ct=function(){var k=new URLSearchParams(q);k.delete("action"),k.delete("respond"),F(k)},Vt=(0,O.useModel)("permission",function(te){return{permission:te.permission}}),yt=Vt.permission,It=(0,Q.Z)(v.pX,{manual:!0}),ge=It.data,qe=It.run,Bt=It.loading,Ot=(0,Q.Z)(v.eL,{manual:!0}),Wt=(0,Q.Z)(v.MS,{manual:!0}),Ge=(0,Q.Z)(Ye==="customerDisputes"?v.eL:v.XI,{manual:!0}),i=ge==null?void 0:ge.data,ze=yt==null?void 0:yt.API_DISPUTES_UPDATE,Be=(i==null?void 0:i.disputeType)===y.Eq.CHARGEBACK||Ye==="chargeback",jt=(i==null?void 0:i.lifeCycle)===y.Y$.SECOND_CYCLE,Pt=(i==null?void 0:i.lifeCycle)===y.Y$.FIRST_CYCLE,je=(0,y.Pg)({lifeCycle:i==null?void 0:i.lifeCycle,disputeStatus:i==null?void 0:i.disputeStatus}),Lt=Be&&!jt&&(i==null?void 0:i.arbitrationEligible)===!0,At=["defend","submit","respond"].includes(Ve||"")&&(je||Lt&&(i==null?void 0:i.disputeStatus)===y.oq.ACTION_REQUIRED),Mt=(i==null?void 0:i.disputeStatus)&&[y.oq.CANCELED].includes(i==null?void 0:i.disputeStatus)&&(!(i!=null&&i.eventTimeLines)||(i==null||(d=i.eventTimeLines)===null||d===void 0?void 0:d.length)===1&&(i==null?void 0:i.eventTimeLines[0].title)===i.disputeStatus),wt=(0,Q.Z)(function(){return(0,v.b2)({page:1,pageSize:1,disputeType:y.Eq.CHARGEBACK,relevantChargebackId:i==null?void 0:i.disputeId})},{ready:!!(i!=null&&i.disputeId)&&Be&&Pt,refreshDeps:[i==null?void 0:i.disputeId,Be,Pt]}),Nt=wt.data,Rt=Nt==null||(c=Nt.list)===null||c===void 0?void 0:c[0],kt=j()(j()({acqOrderId:i==null?void 0:i.acqOrderId,disputeId:i==null?void 0:i.disputeId,status:i==null?void 0:i.disputeStatus,disputeAmount:i==null?void 0:i.disputeAmount,disputeAmountCurrency:i==null?void 0:i.disputeAmountCurrency,disputeType:i==null?void 0:i.disputeType},i),{},{relevantCustomerDisputeId:(i==null?void 0:i.relevantCustomerDisputeId)||(Rt==null?void 0:Rt.relevantCustomerDisputeId)}),Yt={disputeAmount:i==null?void 0:i.disputeAmount,disputeAmountCurrency:i==null?void 0:i.disputeAmountCurrency,disputeFee:i==null?void 0:i.disputeFee,disputeFeeCurrency:i==null?void 0:i.disputeFeeCurrency},Qt=j()({disputeReasonCode:i==null?void 0:i.disputeReasonCode,disputeReason:i==null?void 0:i.disputeReason,disputeDesc:i==null?void 0:i.disputeDesc,createTime:Mt?i==null?void 0:i.createTime:void 0},i),zt=Be?(0,r.tr)("page.chargebacks"):(0,r.tr)("page.customerDisputes"),Ht=Be?(0,r.tr)("page.chargebackDetail"):(0,r.tr)("page.disputeDetail"),Xt=Be?"".concat(H.Z.TRANSACTION_CHARGEBACKS,"?tab=chargeback"):"".concat(H.Z.TRANSACTION_DISPUTES,"?tab=customerDisputes"),Ft=function(k,re){le.Z.confirm({title:(0,r.tr)("i18n.confirm.defense.submission.cbfa987"),icon:(0,n.jsx)(P.Z,{style:{color:"#faad14"}}),content:(0,n.jsxs)("div",{className:"pb-12",children:[(re==null?void 0:re.includeFileEditNotice)&&(0,n.jsx)("p",{children:(0,r.tr)("i18n.you.will.be.unable.to.edit.the.files.14ba746")}),(0,n.jsx)("p",{className:re!=null&&re.includeFileEditNotice?"mt-8":void 0,children:(0,r.tr)("i18n.caution.an.unsuccessful.defense.at.this.stage.may.a2581ff")}),(0,n.jsx)("p",{className:"italic text-gray-500 mt-8",children:(0,r.tr)("i18n.this.action.is.irreversible.once.the.case.enters.a914c99")})]}),centered:!0,cancelText:(0,r.tr)("i18n.cancel.77dfd21"),okText:(0,r.tr)("i18n.confirm.and.submit.1bafbec"),onOk:k})},vt=function(){$(!1),_([]),I("")},Ut=function(k){le.Z.confirm({title:(0,r.tr)("i18n.are.you.sure.to.accept.this.chargeback.49110be"),content:(0,n.jsx)("div",{className:"pb-12",children:"\xA0"}),icon:(0,n.jsx)(ae.Z,{}),centered:!0,cancelText:(0,r.tr)("i18n.cancel.77dfd21"),okText:(0,r.tr)("i18n.accept.bb54db5"),onOk:function(){var Pe={disputeStatus:y.oq.ACCEPTED,disputeId:ve};jt||(Pe.evidenceFiles=C==null?void 0:C.filter(function(De){return!!De}),Pe.disputeDetailFiles=C==null?void 0:C.filter(function(De){return!!De})),Ge.runAsync(Pe).then(function(){var De;_([]),I(""),ct(),k==null||(De=k.onSubmitted)===null||De===void 0||De.call(k),qe({disputeId:ve})})}})},$t=function(){var te=E()(o()().mark(function k(re){var Pe,De,ft,Ne,_e,et,tt,Zt,mt;return o()().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(Fe.prev=0,je){Fe.next=4;break}return Fe.next=4,(Ne=w.current)===null||Ne===void 0?void 0:Ne.validateFields();case 4:_e=(Pe=w.current)===null||Pe===void 0?void 0:Pe.getFieldsValue(),et=(_e==null?void 0:_e.message)||U,tt=(De=T.current)===null||De===void 0||(ft=De.getEvidenceData)===null||ft===void 0?void 0:ft.call(De),Zt=function(){var He;if(je)return(0,v.XI)({disputeId:ve,disputeStatus:y.oq.UNDER_REVIEW});var _t=(tt==null||(He=tt.evidenceFields)===null||He===void 0?void 0:He.length)>0;return Be&&_t?(0,v.XI)({disputeId:ve,evidenceFiles:C==null?void 0:C.filter(function(nt){return!!nt}),disputeStatus:y.oq.UNDER_REVIEW,message:et,evidenceField:tt}
1):Ot.runAsync({disputeId:ve,evidenceFiles:C==null?void 0:C.filter(function(nt){return!!nt}),disputeDetailFiles:C==null?void 0:C.filter(function(nt){return!!nt}),disputeStatus:y.oq.UNDER_REVIEW,message:et})},mt=function(){Zt().then(function(){var He;_([]),I(""),ct(),re==null||(He=re.onSubmitted)===null||He===void 0||He.call(re),qe({disputeId:ve})})},je?Ft(mt,{includeFileEditNotice:At}):Lt?Ft(mt,{includeFileEditNotice:At}):le.Z.confirm({title:(0,r.tr)("i18n.sure.to.submit.5e8cd64"),content:(0,n.jsx)("div",{className:"pb-12",children:(0,r.tr)("i18n.you.will.be.unable.to.edit.the.files.14ba746")}),centered:!0,icon:null,cancelText:(0,r.tr)("i18n.cancel.77dfd21"),okText:(0,r.tr)("i18n.submit.evidence.853a20e"),onOk:mt}),Fe.next=15;break;case 12:Fe.prev=12,Fe.t0=Fe.catch(0),G.ZP.error((0,r.tr)("i18n.please.complete.the.message.field.2a99b9d"));case 15:case"end":return Fe.stop()}},k,null,[[0,12]])}));return function(re){return te.apply(this,arguments)}}();(0,x.useEffect)(function(){qe({disputeId:ve}),_([]),I("")},[ve,Ve]);var Gt=function(){V("submit"),_([]),I(""),$(!0)},Kt=oe==="submit"&&!je&&(C.length===0||C.some(function(te){return!te})),Jt=function(){if(oe==="accept"){Ut({onSubmitted:vt});return}$t({onSubmitted:vt})};return(0,n.jsx)(m.Z,{title:Ht,breadcrumbItems:[{href:Xt,title:zt},{title:(0,r.tr)("i18n.detail.7c9a7c0")}],loading:Bt,extra:ze&&(0,n.jsxs)("div",{className:"flex items-center gap-16 flex-row-reverse",children:[ut&&(i==null?void 0:i.disputeStatus)&&!y.EN.includes(i.disputeStatus)&&(0,n.jsx)(z.zx,{type:"primary",onClick:Gt,children:"Respond"}),(Ve==="submit"||Ve==="respond")&&!ut&&(i==null?void 0:i.disputeStatus)&&(0,y.tJ)(i.disputeStatus)&&(0,n.jsx)(z.zx,{type:"primary",onClick:function(){return $t()},loading:Ot.loading,disabled:!je&&(C.length===0||C.some(function(te){return!te})),children:Tt?(0,r.tr)("i18n.respond.w07"):(0,r.tr)("i18n.defend.da6bb78")}),(Ve==="accept"||Ve==="respond")&&!ut&&(i==null?void 0:i.disputeStatus)&&!y.EN.includes(i.disputeStatus)&&(0,n.jsx)(z.zx,{type:"default",className:"border-[#5C5C5C]",loading:Ge.loading,onClick:function(){return Ut()},children:Tt?(0,r.tr)("i18n.respond.w07"):(0,r.tr)("i18n.accept.bb54db5")}),Ve==="close"&&(i==null?void 0:i.disputeStatus)&&!y.EN.includes(i.disputeStatus)&&(0,n.jsx)(z.zx,{type:"primary",className:"border-[#5C5C5C]",loading:Ge.loading,onClick:function(){le.Z.confirm({title:(0,r.tr)("i18n.are.you.sure.to.close.this.dispute.1a8a71a"),content:(0,n.jsx)("div",{className:"pb-12",children:"\xA0"}),icon:(0,n.jsx)(ae.Z,{}),centered:!0,cancelText:(0,r.tr)("i18n.cancel.77dfd21"),okText:(0,r.tr)("i18n.close.dispute.0db2c3b"),onOk:function(){Ge.runAsync({disputeStatus:y.oq.CLOSED,disputeId:ve,evidenceFiles:C==null?void 0:C.filter(function(re){return!!re}),disputeDetailFiles:C==null?void 0:C.filter(function(re){return!!re}),closedBy:"MERCHANT"}).then(function(){_([]),I(""),ct(),qe({disputeId:ve})})}})},children:(0,r.tr)("i18n.close.dispute.f35741b")}),Ve==="reply"&&(0,n.jsx)(z.zx,{type:"primary",className:"border-[#5C5C5C]",loading:Ge.loading,onClick:E()(o()().mark(function te(){var k,re,Pe,De;return o()().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.prev=0,Ne.next=3,(k=w.current)===null||k===void 0?void 0:k.validateFields();case 3:Pe=(re=w.current)===null||re===void 0?void 0:re.getFieldsValue(),De=(Pe==null?void 0:Pe.message)||U,le.Z.confirm({title:(0,r.tr)("i18n.sure.to.reply.message.cd0695c"),centered:!0,icon:null,cancelText:(0,r.tr)("i18n.cancel.77dfd21"),okText:(0,r.tr)("i18n.reply.message.e88b312"),onOk:function(){Wt.runAsync({disputeId:ve,message:De,evidenceFiles:C==null?void 0:C.filter(function(et){return!!et})}).then(function(){_([]),I(""),ct(),qe({disputeId:ve})})}}),Ne.next=11;break;case 8:Ne.prev=8,Ne.t0=Ne.catch(0),G.ZP.error((0,r.tr)("i18n.please.complete.the.message.field.2a99b9d"));case 11:case"end":return Ne.stop()}},te,null,[[0,8]])})),children:(0,r.tr)("i18n.reply.message.e88b312")})]}),fixed:ze,children:(0,n.jsxs)("div",{className:L()(ze?"pb-[84px]":""),children:[(0,n.jsx)("section",{className:"mb-16",children:(0,n.jsx)(bt,{summaryInfo:kt})}),(0,n.jsx)("section",{className:"mb-16",children:(0,n.jsx)(me,{amountInfo:Yt,isChargeback:Be})}),i&&(0,n.jsx)("section",{className:"mb-16",children:(0,n.jsx)(Dt,{detailData:i})}),(0,n.jsx)("section",{className:"mb-16",children:(0,n.jsx)(Ke,{detailInfo:Qt})}),Be&&!je&&(i==null||(a=i.evidenceField)===null||a===void 0||(a=a.evidenceFields)===null||a===void 0?void 0:a.length)>0&&(0,n.jsx)("section",{className:"mb-16",children:(0,n.jsx)(Ce,{evidenceField:i==null?void 0:i.evidenceField})}),!Mt&&(0,n.jsx)(n.Fragment,{children:(i==null?void 0:i.eventTimeLines)&&(0,n.jsx)("section",{className:"mb-16",children:(0,n.jsx)(it,{eventTimeLines:i==null?void 0:i.eventTimeLines,currentStatus:i.disputeStatus,uploadBlock:ze&&!je&&(0,n.jsx)(Me,{onChange:function(k){_(k)}}),editMessageBlock:ze&&(0,n.jsx)(Je,{ref:w,onChange:function(k){I(k.target.value)}
1,info:ge==null?void 0:ge.data,isSecondChargeback:je}),evidenceFieldsBlock:ze&&!je&&(0,n.jsx)(st,{ref:T,info:ge==null?void 0:ge.data})})})}),ze&&(0,n.jsx)(le.Z,{title:"Respond to chargeback",open:J,centered:!0,destroyOnClose:!0,width:720,onCancel:vt,footer:[(0,n.jsx)(D.ZP,{onClick:vt,children:(0,r.tr)("i18n.cancel.77dfd21")},"cancel"),(0,n.jsx)(D.ZP,{type:"primary",loading:Ot.loading||Ge.loading,disabled:Kt,onClick:Jt,children:"Respond"},"submit")],children:(0,n.jsxs)("div",{className:"space-y-16",children:[(0,n.jsxs)(f.ZP.Group,{optionType:"button",buttonStyle:"solid",value:oe,onChange:function(k){V(k.target.value),_([]),I("")},children:[(0,n.jsx)(f.ZP.Button,{value:"accept",children:(0,r.tr)("i18n.accept.bb54db5")}),(0,n.jsx)(f.ZP.Button,{value:"submit",children:(0,r.tr)("i18n.defend.da6bb78")})]}),oe==="accept"?(0,n.jsx)(S.Z,{type:"info",showIcon:!0,message:"Accept the chargeback without uploading defense evidence."}):(0,n.jsx)("div",{className:"space-y-16",children:je?(0,n.jsx)(S.Z,{type:"info",showIcon:!0,message:"Submission of further evidence is not required for second cycle chargeback."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Je,{ref:w,actionOverride:"submit",onChange:function(k){I(k.target.value)}
1,info:ge==null?void 0:ge.data,isSecondChargeback:je}),(0,n.jsx)(Me,{onChange:function(k){_(k)}}),(0,n.jsx)(st,{ref:T,info:ge==null?void 0:ge.data})]})})]})})]})})},xt=St},83087:function(Le,ne,t){"use strict";t.d(ne,{CZ:function(){return S},EN:function(){return n},Eq:function(){return he},MR:function(){return B},Of:function(){return N},Pg:function(){return f},Pv:function(){return me},Ry:function(){return Ae},VN:function(){return We},Y$:function(){return O},eQ:function(){return fe},es:function(){return L},fu:function(){return x},m1:function(){return Ke},nm:function(){return v},oq:function(){return e},p4:function(){return D},ph:function(){return P},pq:function(){return G},tJ:function(){return z},vQ:function(){return le}});var g=t(82092),o=t.n(g),p=t(51540),E=t(39740),u=t(52676),j,Y,e=function(l){return l.EVIDENCE_REQUIRED="EVIDENCE_REQUIRED",l.ACTION_REQUIRED="ACTION_REQUIRED",l.SECOND_CYCLE_RESPONSE_REQUIRED="SECOND_CYCLE_RESPONSE_REQUIRED",l.SECOND_ACTION_REQUIRED="SECOND_ACTION_REQUIRED",l.UNDER_REVIEW="UNDER_REVIEW",l.ESCALATED="ESCALATED",l.CLOSED="CLOSED",l.ACCEPTED="ACCEPTED",l.CANCELED="CANCELED",l.CASE_LOST="CASE_LOST",l.CASE_WON="CASE_WON",l.EXPIRED="EXPIRED",l.SETTLED="SETTLED",l.ESCALATE_TO_2ND_CYCLE="ESCALATE_TO_2ND_CYCLE",l}({}),m=(j={},o()(o()(o()(o()(o()(o()(o()(o()(o()(o()(j,e.UNDER_REVIEW,(0,E.tr)("disputes.status.underReview")),e.ACTION_REQUIRED,(0,E.tr)("disputes.status.actionRequired")),e.ESCALATED,(0,E.tr)("disputes.status.escalated")),e.CLOSED,(0,E.tr)("disputes.status.closed")),e.EVIDENCE_REQUIRED,(0,E.tr)("disputes.status.actionRequired")),e.SECOND_CYCLE_RESPONSE_REQUIRED,(0,E.tr)("disputes.status.secondCycleResponseRequired")),e.SECOND_ACTION_REQUIRED,(0,E.tr)("disputes.status.secondCycleResponseRequired")),e.ACCEPTED,(0,E.tr)("disputes.status.accepted")),e.CANCELED,(0,E.tr)("disputes.status.canceled")),e.CASE_LOST,(0,E.tr)("disputes.status.caseLost")),o()(o()(o()(o()(j,e.CASE_WON,(0,E.tr)("disputes.status.caseWon")),e.EXPIRED,(0,E.tr)("disputes.status.expired")),e.SETTLED,(0,E.tr)("disputes.status.settled")),e.ESCALATE_TO_2ND_CYCLE,(0,E.tr)("disputes.status.escalateToSecondCycle"))),z=function(s){return s===e.EVIDENCE_REQUIRED||s===e.ACTION_REQUIRED||s===e.SECOND_CYCLE_RESPONSE_REQUIRED||s===e.SECOND_ACTION_REQUIRED},H={SETTLED:"settlements.status.settled",UNSETTLED:"settlements.status.unsettled",NOT_APPLICABLE:"settlements.status.notApplicable",UNDEFINED:"settlements.status.undefined"},v=function(s){return s&&H[s]?(0,E.tr)(H[s]):s||"-"},r={othersText:"i18n.evidence.others.text.c7d1e2f",othersFile:"i18n.evidence.others.file.d8e2f3a"},P=function(s){return r[s]?(0,E.tr)(r[s]):s},ae=(Y={},o()(o()(o()(o()(o()(o()(o()(o()(o()(o()(Y,e.SECOND_ACTION_REQUIRED,(0,u.jsx)(p.Vp,{color:"warning",children:m[e.SECOND_ACTION_REQUIRED]})),e.EVIDENCE_REQUIRED,(0,u.jsx)(p.Vp,{color:"warning",children:m[e.EVIDENCE_REQUIRED]})),e.ACTION_REQUIRED,(0,u.jsx)(p.Vp,{color:"warning",children:m[e.ACTION_REQUIRED]})),e.SECOND_CYCLE_RESPONSE_REQUIRED,(0,u.jsx)(p.Vp,{color:"warning",children:m[e.SECOND_CYCLE_RESPONSE_REQUIRED]})),e.UNDER_REVIEW,(0,u.jsx)(p.Vp,{color:"processing",children:m[e.UNDER_REVIEW]})),e.ESCALATED,(0,u.jsx)(p.Vp,{color:"default",children:m[e.ESCALATED]})),e.CLOSED,(0,u.jsx)(p.Vp,{color:"success",children:m[e.CLOSED]})),e.ACCEPTED,(0,u.jsx)(p.Vp,{color:"success",children:m[e.ACCEPTED]})),e.CANCELED,(0,u.jsx)(p.Vp,{color:"default",children:m[e.CANCELED]})),e.CASE_LOST,(0,u.jsx)(p.Vp,{color:"default",children:m[e.CASE_LOST]})),o()(o()(o()(o()(Y,e.CASE_WON,(0,u.jsx)(p.Vp,{color:"default",children:m[e.CASE_WON]})),e.EXPIRED,(0,u.jsx)(p.Vp,{color:"default",children:m[e.EXPIRED]})),e.SETTLED,(0,u.jsx)(p.Vp,{color:"default",children:m[e.SETTLED]})),e.ESCALATE_TO_2ND_CYCLE,(0,u.jsx)(p.Vp,{color:"default",children:m[e.ESCALATE_TO_2ND_CYCLE]}))),O=function(l){return l.FIRST_CYCLE="FIRST_CYCLE",l.SECOND_CYCLE="SECOND_CYCLE",l}({}),Q=function(s,h){return h===O.SECOND_CYCLE&&(s===e.EVIDENCE_REQUIRED||s===e.ACTION_REQUIRED)?e.SECOND_CYCLE_RESPONSE_REQUIRED:s},le=function(s,h){var b=Q(s,h);return b?ae[b]||b:"-"},G=[{label:(0,E.tr)("i18n.first.cycle.f0d0a36"),value:O.FIRST_CYCLE},{label:(0,E.tr)("i18n.second.cycle.e1f6ad3"),value:O.SECOND_CYCLE}],D=function(s){return s===O.SECOND_CYCLE?(0,E.tr)("i18n.second.cycle.e1f6ad3"):(0,E.tr)("i18n.first.cycle.f0d0a36")},f=function(s){return s.lifeCycle===O.SECOND_CYCLE||s.disputeStatus===e.SECOND_CYCLE_RESPONSE_REQUIRED}
1,S=function(s,h){var b="".concat(s.merchantName," (").concat(s.mid,")");return h?"".concat(b," decides to defend the case."):"".concat(b," submits evidence.")},N=[e.EVIDENCE_REQUIRED],L=[{label:m[e.EVIDENCE_REQUIRED],value:e.EVIDENCE_REQUIRED},{label:m[e.UNDER_REVIEW],value:e.UNDER_REVIEW},{label:m[e.ESCALATED],value:e.ESCALATED},{label:m[e.CLOSED],value:e.CLOSED}],x=[e.EVIDENCE_REQUIRED,e.ACTION_REQUIRED,e.SECOND_CYCLE_RESPONSE_REQUIRED],B=function(s){return s?Array.isArray(s)?s:[s]:[]},fe=[{label:m[e.EVIDENCE_REQUIRED],value:e.EVIDENCE_REQUIRED},{label:m[e.SECOND_CYCLE_RESPONSE_REQUIRED],value:e.SECOND_CYCLE_RESPONSE_REQUIRED},{label:m[e.UNDER_REVIEW],value:e.UNDER_REVIEW},{label:m[e.ACCEPTED],value:e.ACCEPTED},{label:m[e.CASE_LOST],value:e.CASE_LOST},{label:m[e.CASE_WON],value:e.CASE_WON},{label:m[e.EXPIRED],value:e.EXPIRED},{label:m[e.CANCELED],value:e.CANCELED},{label:m[e.SETTLED],value:e.SETTLED},{label:m[e.ESCALATE_TO_2ND_CYCLE],value:e.ESCALATE_TO_2ND_CYCLE}],n=[e.ACCEPTED,e.CLOSED,e.CANCELED,e.CASE_LOST,e.CASE_WON,e.EXPIRED,e.SETTLED,e.ESCALATE_TO_2ND_CYCLE],Ae=[{label:(0,E.tr)("disputes.expireStatus.active"),value:"ACTIVE"},{label:(0,E.tr)("disputes.expireStatus.expired"),value:"EXPIRED"}],me={ACTIVE:(0,u.jsx)(p.Vp,{color:"success",children:(0,E.tr)("disputes.expireStatus.active")}),EXPIRED:(0,u.jsx)(p.Vp,{color:"error",children:(0,E.tr)("disputes.expireStatus.expired")})},he=function(l){return l.CUSTOMER_DISPUTE="CUSTOMER_DISPUTE",l.CHARGEBACK="CHARGEBACK",l}({}),de=function(l){return l[l.INIT=0]="INIT",l[l.PROCESSING=10]="PROCESSING",l[l.MANUAL_PROCESSING=80]="MANUAL_PROCESSING",l[l.FAILED=90]="FAILED",l[l.PROCESSED=100]="PROCESSED",l}({}),ue=o()(o()(o()(o()(o()({},de.INIT,(0,u.jsx)(p.Vp,{color:"default",children:"INIT"})),de.PROCESSING,(0,u.jsx)(p.Vp,{color:"processing",children:"PROCESSING"})),de.MANUAL_PROCESSING,(0,u.jsx)(p.Vp,{color:"warning",children:"MANUAL_PROCESSING"})),de.FAILED,(0,u.jsx)(p.Vp,{color:"error",children:"FAILED"})),de.PROCESSED,(0,u.jsx)(p.Vp,{color:"success",children:"PROCESSED"})),Re=function(l){return l[l.INIT=0]="INIT",l[l.PROCESSING=10]="PROCESSING",l[l.UNKNOWN=50]="UNKNOWN",l[l.FAILED=90]="FAILED",l[l.SUCCESS=100]="SUCCESS",l}({}),be=o()(o()(o()(o()(o()({},Re.INIT,(0,u.jsx)(p.Vp,{color:"default",children:"INIT"})),Re.PROCESSING,(0,u.jsx)(p.Vp,{color:"processing",children:"PROCESSING"})),Re.UNKNOWN,(0,u.jsx)(p.Vp,{color:"warning",children:"UNKNOWN"})),Re.FAILED,(0,u.jsx)(p.Vp,{color:"error",children:"FAILED"})),Re.SUCCESS,(0,u.jsx)(p.Vp,{color:"success",children:"SUCCESS"})),y=function(l){return l[l.CDRN=0]="CDRN",l[l.RDR=1]="RDR",l[l.ETHOCA=2]="ETHOCA",l}({}),We=o()(o()(o()({},y.CDRN,(0,u.jsx)(p.Vp,{color:"default",hasIcon:!1,children:"CDRN"})),y.RDR,(0,u.jsx)(p.Vp,{color:"blue",hasIcon:!1,children:"RDR"})),y.ETHOCA,(0,u.jsx)(p.Vp,{color:"purple",hasIcon:!1,children:"ETHOCA"})),Xe={PENDING:"i18n.cb.alert.status.pending",PROCESSING:"i18n.cb.alert.status.processing",MANUAL_PROCESSING:"i18n.cb.alert.status.manual.processing",REVERSED:"i18n.cb.alert.status.reversed",FAILED:"i18n.cb.alert.status.failed",EXPIRED:"i18n.cb.alert.status.expired",SUCCESS:"i18n.cb.alert.status.success",SKIPPED:"i18n.cb.alert.status.skipped"},Ke=function(s){var h=s&&Xe[s.toUpperCase()];return h?(0,E.tr)(h):s||"-"}},92569:function(Le,ne,t){"use strict";t.d(ne,{Bv:function(){return o.a},QZ:function(){return G},Qw:function(){return j},UK:function(){return O},VQ:function(){return le},bB:function(){return v},c6:function(){return Y},hP:function(){return Q},i$:function(){return H},m5:function(){return e},pU:function(){return r},qZ:function(){return ae},rh:function(){return z},rp:function(){return m},sK:function(){return u},u6:function(){return P}});var g=t(24341),o=t.n(g),p=t(12638),E=t.n(p),u="YYYY-MM-DD",j="YYYY-MM-DD HH:mm:ss";o().extend(E());var Y=o()().utcOffset(),e=480,m=function(f){var S=f.date,N=f.utcOffset,L=N===void 0?Y:N,x=f.formatType,B=x===void 0?j:x;return S?S instanceof o()?S.utcOffset(L).format(B):o()(S).utcOffset(L).format(B):""},z=function(f){var S=f.range,N=S===void 0?3:S,L=f.utcOffset,x=L===void 0?Y:L,B={.7:7,1:30,2:60,3:90,6:180}[N],fe=o()().utcOffset(x).subtract(B,"day").startOf("day").format(j),n=o()().utcOffset(x).endOf("day").format(j);return[o()(fe),o()(n)]},H=function(f){var S=f.startDate,N=f.endDate,L=f.date,x=f.utcOffset,B=x===void 0?Y:x,fe=f.isTime,n=fe===void 0?!1:fe;if(n)return{date:L==null?void 0:L.utcOffset(B).valueOf(),startDate:S==null?void 0:S.utcOffset(B).valueOf(),endDate:N==null?void 0:N.utcOffset(B).valueOf()};var Ae=L==null?void 0:L.format(u),me=S==null?void 0:S.format(u),he=N==null?void 0:N.format(u);return{date:Ae&&o()(Ae).utcOffset(B).valueOf(),startDate:me&&o()(me).utcOffset(B).startOf("day").valueOf(),endDate:he&&o()(he).utcOffset(B).endOf("day").valueOf()}},v=function(f){return f==null?void 0:f.valueOf()},r=function(f){var S,N;return f?[(S=f[0])===null||S===void 0?void 0:S.startOf("day").valueOf(),(N=f[1])===null||N===void 0?void 0:N.endOf("day").valueOf()]:[]},P=function(){var f=Y,S=o()().utcOffset(f).startOf("day"),N=o()().utcOffset(f).add(3,"day").startOf("day");return[S,N]},ae=function(f){return!(f!=null&&f[0])||!(f!=null&&f[1])?[void 0,void 0]:[f[0].utcOffset(Y).startOf("day").valueOf(),f[1].utcOffset(Y).startOf("day").valueOf()]},O=function(f){return function(S,N){var L=N.from;return L?Math.abs(S.diff(L,"days"))>=f:!1}},Q=O(31),le=function(f){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"YYYY-MM-DD HH:mm:ss";return f?o().utc(f).utcOffset(Y).format(S):"-"},G=function(f){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"YYYY-MM-DD HH:mm:ss";return f?"".concat(o().utc(f).format(S)," (UTC)"):"-"}},19525:function(Le,ne,t){"use strict";t.d(ne,{Z:function(){return Ke}});
1var g=t(75271),o=t(4692),p=t(75434),E=t(14258),u=t(64267),j=t(30345),Y=t(82187),e=t.n(Y),m=t(62803),z=t(71305),H=t(42684),v=t(7102),r=t(82862),P=t(90906),ae=t(92085),O=t(42522);const Q=(l,s,h,b,M)=>({background:l,border:`${(0,P.bf)(b.lineWidth)} ${b.lineType} ${s}`,[`${M}-icon`]:{color:h}}),le=l=>{const{componentCls:s,motionDurationSlow:h,marginXS:b,marginSM:M,fontSize:pe,fontSizeLG:Se,lineHeight:xe,borderRadiusLG:Te,motionEaseInOutCirc:ye,withDescriptionIconSize:Me,colorText:Ue,colorTextHeading:we,withDescriptionPadding:ke,defaultPadding:ce}=l;return{[s]:Object.assign(Object.assign({},(0,ae.Wf)(l)),{position:"relative",display:"flex",alignItems:"center",padding:ce,wordWrap:"break-word",borderRadius:Te,[`&${s}-rtl`]:{direction:"rtl"},[`${s}-content`]:{flex:1,minWidth:0},[`${s}-icon`]:{marginInlineEnd:b,lineHeight:0},"&-description":{display:"none",fontSize:pe,lineHeight:xe},"&-message":{color:we},[`&${s}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${h} ${ye}, opacity ${h} ${ye},
2        padding-top ${h} ${ye}, padding-bottom ${h} ${ye},
3        margin-bottom ${h} ${ye}`},[`&${s}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${s}-with-description`]:{alignItems:"flex-start",padding:ke,[`${s}-icon`]:{marginInlineEnd:M,fontSize:Me,lineHeight:0},[`${s}-message`]:{display:"block",marginBottom:b,color:we,fontSize:Se},[`${s}-description`]:{display:"block",color:Ue}},[`${s}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},G=l=>{const{componentCls:s,colorSuccess:h,colorSuccessBorder:b,colorSuccessBg:M,colorWarning:pe,colorWarningBorder:Se,colorWarningBg:xe,colorError:Te,colorErrorBorder:ye,colorErrorBg:Me,colorInfo:Ue,colorInfoBorder:we,colorInfoBg:ke}=l;return{[s]:{"&-success":Q(M,b,h,l,s),"&-info":Q(ke,we,Ue,l,s),"&-warning":Q(xe,Se,pe,l,s),"&-error":Object.assign(Object.assign({},Q(Me,ye,Te,l,s)),{[`${s}-description > pre`]:{margin:0,padding:0}})}}},D=l=>{const{componentCls:s,iconCls:h,motionDurationMid:b,marginXS:M,fontSizeIcon:pe,colorIcon:Se,colorIconHover:xe}=l;return{[s]:{"&-action":{marginInlineStart:M},[`${s}-close-icon`]:{marginInlineStart:M,padding:0,overflow:"hidden",fontSize:pe,lineHeight:(0,P.bf)(pe),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${h}-close`]:{color:Se,transition:`color ${b}`,"&:hover":{color:xe}}},"&-close-text":{color:Se,transition:`color ${b}`,"&:hover":{color:xe}}}}},f=l=>({withDescriptionIconSize:l.fontSizeHeading3,defaultPadding:`${l.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${l.paddingMD}px ${l.paddingContentHorizontalLG}px`});var S=(0,O.I$)("Alert",l=>[le(l),G(l),D(l)],f),N=function(l,s){var h={};for(var b in l)Object.prototype.hasOwnProperty.call(l,b)&&s.indexOf(b)<0&&(h[b]=l[b]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,b=Object.getOwnPropertySymbols(l);M<b.length;M++)s.indexOf(b[M])<0&&Object.prototype.propertyIsEnumerable.call(l,b[M])&&(h[b[M]]=l[b[M]]);return h};const L={success:o.Z,info:j.Z,error:p.Z,warning:u.Z},x=l=>{const{icon:s,prefixCls:h,type:b}=l,M=L[b]||null;return s?(0,v.wm)(s,g.createElement("span",{className:`${h}-icon`},s),()=>({className:e()(`${h}-icon`,s.props.className)})):g.createElement(M,{className:`${h}-icon`})},B=l=>{const{isClosable:s,prefixCls:h,closeIcon:b,handleClose:M,ariaProps:pe}=l,Se=b===!0||b===void 0?g.createElement(E.Z,null):b;return s?g.createElement("button",Object.assign({type:"button",onClick:M,className:`${h}-close-icon`,tabIndex:0},pe),Se):null};var n=g.forwardRef((l,s)=>{const{description:h,prefixCls:b,message:M,banner:pe,className:Se,rootClassName:xe,style:Te,onMouseEnter:ye,onMouseLeave:Me,onClick:Ue,afterClose:we,showIcon:ke,closable:ce,closeText:Qe,closeIcon:$e,action:it,id:Ze}=l,rt=N(l,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[Je,at]=g.useState(!1),lt=g.useRef(null);g.useImperativeHandle(s,()=>({nativeElement:lt.current}));const{getPrefixCls:pt,direction:Et,alert:R}=g.useContext(r.E_),Ce=pt("alert",b),[ht,Ct,gt]=S(Ce),st=d=>{var c;
3at(!0),(c=l.onClose)===null||c===void 0||c.call(l,d)},ot=g.useMemo(()=>l.type!==void 0?l.type:pe?"warning":"info",[l.type,pe]),Dt=g.useMemo(()=>typeof ce=="object"&&ce.closeIcon||Qe?!0:typeof ce=="boolean"?ce:$e!==!1&&$e!==null&&$e!==void 0?!0:!!(R!=null&&R.closable),[Qe,$e,ce,R==null?void 0:R.closable]),dt=pe&&ke===void 0?!0:ke,bt=e()(Ce,`${Ce}-${ot}`,{[`${Ce}-with-description`]:!!h,[`${Ce}-no-icon`]:!dt,[`${Ce}-banner`]:!!pe,[`${Ce}-rtl`]:Et==="rtl"},R==null?void 0:R.className,Se,xe,gt,Ct),St=(0,z.Z)(rt,{aria:!0,data:!0}),xt=g.useMemo(()=>{var d,c;return typeof ce=="object"&&ce.closeIcon?ce.closeIcon:Qe||($e!==void 0?$e:typeof(R==null?void 0:R.closable)=="object"&&(!((d=R==null?void 0:R.closable)===null||d===void 0)&&d.closeIcon)?(c=R==null?void 0:R.closable)===null||c===void 0?void 0:c.closeIcon:R==null?void 0:R.closeIcon)},[$e,ce,Qe,R==null?void 0:R.closeIcon]),Z=g.useMemo(()=>{const d=ce!=null?ce:R==null?void 0:R.closable;if(typeof d=="object"){const{closeIcon:c}=d;return N(d,["closeIcon"])}return{}},[ce,R==null?void 0:R.closable]);return ht(g.createElement(m.ZP,{visible:!Je,motionName:`${Ce}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:d=>({maxHeight:d.offsetHeight}),onLeaveEnd:we},(d,c)=>{let{className:a,style:A}=d;return g.createElement("div",Object.assign({id:Ze,ref:(0,H.sQ)(lt,c),"data-show":!Je,className:e()(bt,a),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),Te),A),onMouseEnter:ye,onMouseLeave:Me,onClick:Ue,role:"alert"},St),dt?g.createElement(x,{description:h,icon:l.icon,prefixCls:Ce,type:ot}):null,g.createElement("div",{className:`${Ce}-content`},M?g.createElement("div",{className:`${Ce}-message`},M):null,h?g.createElement("div",{className:`${Ce}-description`},h):null),it?g.createElement("div",{className:`${Ce}-action`},it):null,g.createElement(B,{isClosable:Dt,prefixCls:Ce,closeIcon:xt,handleClose:st,ariaProps:Z}))}))}),Ae=t(76132),me=t(99190),he=t(61826),de=t(52493),ue=t(93460);function Re(l,s,h){return s=(0,he.Z)(s),(0,ue.Z)(l,(0,de.Z)()?Reflect.construct(s,h||[],(0,he.Z)(l).constructor):s.apply(l,h))}var be=t(61912),We=function(l){function s(){var h;return(0,Ae.Z)(this,s),h=Re(this,s,arguments),h.state={error:void 0,info:{componentStack:""}},h}return(0,be.Z)(s,l),(0,me.Z)(s,[{key:"componentDidCatch",value:function(b,M){this.setState({error:b,info:M})}},{key:"render",value:function(){const{message:b,description:M,id:pe,children:Se}=this.props,{error:xe,info:Te}=this.state,ye=(Te==null?void 0:Te.componentStack)||null,Me=typeof b=="undefined"?(xe||"").toString():b,Ue=typeof M=="undefined"?ye:M;return xe?g.createElement(n,{id:pe,type:"error",message:Me,description:g.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},Ue)}):Se}}])}(g.Component);const Xe=n;Xe.ErrorBoundary=We;var Ke=Xe},12638:function(Le){(function(ne,t){Le.exports=t()})(this,function(){"use strict";var ne="minute",t=/[+-]\d\d(?::?\d\d)?/g,g=/([+-]|\d\d)/g;return function(o,p,E){var u=p.prototype;E.utc=function(v){var r={date:v,utc:!0,args:arguments};return new p(r)},u.utc=function(v){var r=E(this.toDate(),{locale:this.$L,utc:!0});return v?r.add(this.utcOffset(),ne):r},u.local=function(){return E(this.toDate(),{locale:this.$L,utc:!1})};var j=u.parse;u.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),j.call(this,v)};var Y=u.init;u.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else Y.call(this)};var e=u.utcOffset;u.utcOffset=function(v,r){var P=this.$utils().u;if(P(v))return this.$u?0:P(this.$offset)?e.call(this):this.$offset;if(typeof v=="string"&&(v=function(le){le===void 0&&(le="");var G=le.match(t);if(!G)return null;var D=(""+G[0]).match(g)||["-",0,0],f=D[0],S=60*+D[1]+ +D[2];return S===0?0:f==="+"?S:-S}(v),v===null))return this;var ae=Math.abs(v)<=16?60*v:v;if(ae===0)return this.utc(r);var O=this.clone();if(r)return O.$offset=ae,O.$u=!1,O;var Q=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(O=this.local().add(ae+Q,ne)).$offset=ae,O.$x.$localOffset=Q,O};var m=u.format;u.format=function(v){var r=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,r)},u.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var z=u.toDate;u.toDate=function(v){return v==="s"&&this.$offset?E(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():z.call(this)};var H=u.diff;u.diff=function(v,r,P){if(v&&this.$u===v.$u)return H.call(this,v,r,P);var ae=this.local(),O=E(v).local();return H.call(ae,O,r,P)}}})}}]);

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.