1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3351],{3351:(e,a,o)=>{o.r(a),o.d(a,{__N_SSP:()=>j,default:()=>A});var r=o(37876),n=o(14232),t=o(89099),i=o(72907),l=o(35003),c=o(14924),s=o(63356),d=o(7579),u=o(41316),p=o(3061),x=o(18952),m=o(30401),h=o(60230),b=o(49437),f=o(72147),g=o(60198),v=o(8145),y=o.n(v),j=!0;function A(){let e=(0,t.useRouter)(),{applicantBankCode:a,boDDARefNo:o,boName:g,boTransactionRefNo:v,clientID:j,requestID:A,requestType:k,segment:S,nonce:C,timestamp:w,signature:N}=e.query,[R,W]=(0,n.useState)("successful"),[I,B]=(0,n.useState)(!1),D=async r=>{B(!0);try{var n,t;let i=await y().post("".concat("https://integration.credilinq.ai","/egiro-sim/consent/cancellation/decision"),{applicantBankCode:a,boDDARefNo:o,boName:g,boTransactionRefNo:v,clientID:j,requestID:A,requestType:k,segment:S,nonce:C,timestamp:w,signature:N,decision:r,scenario:R,..."approve"===r?{status:"Success"}:{errorCode:"BO0003",errorMessage:"Applicant rejected the mandate cancellation"}});console.log("Consent cancellation decision submitted successfully",i.data);let l=new URLSearchParams({boDDARefNo:o,boTransactionRefNo:v,clientID:j,requestID:A,requestType:k,nonce:C,timestamp:w,signature:N,applicantBankCode:a,segment:S,boName:g,..."approve"===r?{status:"Success"}:{errorCode:"BO0003",errorMessage:"Applicant rejected the mandate cancellation"},...(null==(n=i.data)?void 0:n.applicantBankAccNo)&&{applicantBankAccNo:i.data.applicantBankAccNo},...(null==(t=i.data)?void 0:t.bankToken)&&{bankToken:i.data.bankToken}});e.push("/egiro/bank-auth/confirmation?".concat(l.toString()))}catch(e){console.error("Error submitting consent cancellation decision:",e),B(!1)}},O=async()=>{if("user click cancel"===R)await D("reject");else if("close browser"===R){B(!0);try{window.close()}catch(e){console.error("Error submitting close-browser decision:",e)}finally{B(!1),window.close()}}else"maintenance"===R?(e.push("/maintenance"),window.close()):await D("approve")},z=async e=>{W(e);try{let r=await y().post("".concat("https://integration.credilinq.ai","/egiro-sim/consent/cancellation/decision"),{applicantBankCode:a,boDDARefNo:o,boName:g,boTransactionRefNo:v,clientID:j,requestID:A,requestType:k,segment:S,nonce:C,timestamp:w,signature:N,decision:"approve",scenario:e,status:"Success"});console.log("Consent cancellation decision submitted successfully on scenario change",r.data)}catch(e){console.error("Error submitting consent cancellation decision on scenario change:",e)}};return(0,r.jsxs)(i.A,{sx:{minHeight:"100vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#ffffff",padding:"2rem"},children:[(0,r.jsxs)(i.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",mb:4},children:[(0,r.jsx)(i.A,{sx:{width:60,height:60,borderRadius:"16px",background:"linear-gradient(135deg, var(--primary-color) 0%, var(--text-color-3) 100%)",display:"flex",alignItems:"center",justifyContent:"center",mb:2,boxShadow:"0 8px 24px rgba(46, 49, 146, 0.35)"},children:(0,r.jsx)(l.A,{sx:{color:"#fff",fontWeight:800,fontSize:"1.1rem",letterSpacing:1},children:"CL"})}),(0,r.jsx)(l.A,{variant:"h5",sx:{fontWeight:700,color:"var(--text-color-4)",letterSpacing:"-0.5px"},children:"eGiro Mandate Cancellation"}),(0,r.jsx)(l.A,{variant:"body2",sx:{color:"var(--text-color-6)",mt:.5},children:"Simulate mandate cancellation consent"})]}),(0,r.jsxs)(c.A,{elevation:0,sx:{width:"100%",maxWidth:"560px",borderRadius:"20px",border:"1px solid var(--border-color-1)",overflow:"hidden",boxShadow:"0 4px 40px rgba(46, 49, 146, 0.08)"},children:[(0,r.jsxs)(i.A,{sx:{px:3,pt:3,pb:2.5,backgroundColor:"var(--journey-background)"},children:[(0,r.jsx)(i.A,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:(0,r.jsx)(s.A,{label:"Transaction Details",size:"small",sx:{backgroundColor:"var(--chip-purple-bg-color)",color:"var(--primary-color)",fontWeight:600,fontSize:"0.72rem"}})}),(0,r.jsx)(i.A,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[{label:"Business Owner",value:g},{label:"Customer Segment",value:S},{label:"Transaction Ref No",value:v},{label:"DDA Reference No",value:o}].map(e=>(0,r.jsxs)(i.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[(0,r.jsx)(l.A,{variant:"caption",sx:{color:"var(--text-color-6)",fontWeight:500,minWidth:140,pt:"2px"},children:e.label}),(0,r.jsx)(l.A,{variant:"body2",sx:{color:"var(--text-color-1)",fontWeight:600,textAlign:"right",wordBreak:"break-all",maxWidth:"65%",fontFamily:e.label.includes("Ref")?"monospace":"inherit",fontSize:e.label.includes("Ref")?"0.75rem":"0.875rem"},children:e.value||"â"})]},e.label))})]}),(0,r.jsx)(d.A,{sx:{borderColor:"var(--border-color-1)"}}),(0,r.jsxs)(i.A,{sx:{px:3,pt:3,pb:3,backgroundColor:"var(--app-background)",display:"flex",flexDirection:"column",gap:2},children:[(0,r.jsx)(i.A,{sx:{mb:.5},children:(0,r.jsx)(s.A,{label:"Cancellation Scenario",size:"small",sx:{backgroundColor:"var(--avatar-color)",color:"var(--secondary-color)",fontWeight:600,fontSize:"0.72rem"}})}),(0,r.jsx)(u.Ay,{container:!0,spacing:3,children:(0,r.jsxs)(u.Ay,{item:!0,xs:12,children:[(0,r.jsx)(p.A,{sx:{mb:0,fontFamily:"'Satoshi', 'NeurialGrotesk'",fontWeight:500,fontSize:"0.82rem",color:"var(--text-color-2)"},children:"Scenario"}),(0,r.jsx)(x.A,{fullWidth:!0,size:"small",sx:{mt:1,"& .MuiOutlinedInput-root":{borderRadius:"8px"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--primary-color)"},"& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"var(--primary-color)"}},children:(0,r.jsxs)(m.A,{value:R,onChange:e=>z(e.target.value),displayEmpty:!0,sx:{fontFamily:"'Satoshi', 'NeurialGrotesk'"},children:[(0,r.jsx)(h.A,{value:"successful",children:"Successful"}),(0,r.jsx)(h.A,{value:"close browser",children:"Close Browser"}),(0,r.jsx)(h.A,{value:"user click cancel",children:"User Click Cancel"}),(0,r.jsx)(h.A,{value:"maintenance",children:"Maintenance"})]})})]})}),(0,r.jsx)(b.A,{variant:"contained",onClick:O,disabled:I,className:"button-primary",fullWidth:!0,sx:{mt:1,height:"48px !important",borderRadius:"8px !important",background:"var(--primary-btn-background) !important",fontFamily:"'Satoshi', 'NeurialGrotesk' !important",fontWeight:"600 !important",fontSize:"15px !important",letterSpacing:"0.2px",boxShadow:"0 4px 16px rgba(237, 0, 87, 0.3) !important","&:hover":{background:"#c8004a !important",boxShadow:"0 6px 20px rgba(237, 0, 87, 0.45) !important"},"&:disabled":{opacity:"0.6 !important"}},children:I?(0,r.jsx)(f.A,{size:22,sx:{color:"#fff"}}):"Submit & Redirect back to BO"})]})]}),(0,r.jsx)(l.A,{variant:"caption",sx:{mt:3,color:"var(--text-color-6)"},children:"CL Bank Ltd â eGiro Simulation Portal"})]})}A.getLayout=e=>(0,r.jsx)(g.A,{children:e}),A.guestGuard=!0,A.acl={action:"manage",subject:"customer-dashboard"}}}]);
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.