1import{aW as te,aX as le,j as e,f5 as ur,o as a,br as Be,bW as ue,aY as r,eN as ae,a2 as B,a3 as Ee,a7 as ps,u as ee,T as m,bY as v,oz as D,gh as L,h1 as se,aA as oe,eE as Ge,rF as he,sO as Fs,gi as M,g as ks,bG as Hs,c0 as Tr,r as b,av as Ys,aC as ge,sP as yr,az as Gs,aU as os,at as Er,ck as $s,fL as Ye,kg as Ns,jN as je,sQ as Ws,rt as xe,v as Fe,gG as Ke,aM as R,a as Ze,mi as ds,mj as He,sR as Qe,bb as qe,b9 as Vs,qf as hr,mk as _r,eG as Ar,ao as qs,aH as Xs,cj as Rr,bg as Ks,rD as br,eC as Sr,eR as gr,k as jr,bk as Ir,bn as xr,ay as Qs,sS as Or,jd as Rs,a_ as fr,qp as Lr,dB as bs,eD as vr,bl as Pr,bm as Dr,a0 as Mr,jM as Xe,eu as Ur,gV as Br,bQ as Cr,sT as wr,sU as Fr,sV as kr,sW as Hr,sX as Yr,dC as Ss,bo as gs,je as Ue,qa as Gr,cG as $r,cH as Wr,b_ as Vr,el as qr,ey as Xr,e as Kr,R as Ae,aw as js,cq as Qr,bp as zr,c6 as Zr,sY as Jr,ew as ts,ev as ls,sZ as ea}from"./index.DCDHF-AL.js";import{I as sa}from"./index.DK9Nnt27.js";import{A as ra}from"./seo.DE2pGp3H.js";import{q as Is}from"./qrTransactions.Bw-sf7Vc.js";import{t as aa}from"./timezone.D9zpuWES.js";import{u as ta}from"./utc.Buh_Osh7.js";import{E as ns}from"./errorAlert.VzR88bgw.js";import{R as zs}from"./constants.B1VewbeY.js";import{T as la,R as na}from"./transactionStatusAlert.BrDWtQfu.js";import{f as ia}from"./folioCreationTracking.DnwScSda.js";import{d as xs,g as Zs,h as ze,f as ca,q as Os,r as fs}from"./constants.DUELKOzE.js";import{P as fe,F as Ls,M as oa,K as vs,a as Ps,C as da,I as ma,R as Ds,b as Ne,N as pa,c as Te,d as Ie,e as Na,f as ce,g as ua,m as Ta,h as Ms}from"./constants.CnN4Ek4n.js";import{A as ke}from"./accordion.Dh_emsCS.js";import{R as ya,A as Ea,B as ha}from"./smallBranch.BuRy6rMG.js";import{P as _a}from"./personalDetailsIcon.NXKTy-iD.js";import{a as us}from"./advancedFormat.DWcGKxBL.js";import{c as Aa}from"./checkMarkWithWhiteTick.qP6kkWVQ.js";import{e as Js}from"./table.CcYGOhWM.js";import er from"./index.uPEHfHBP.js";import{n as Ra}from"./retryPayment.8JAs3Q8F.js";import{e as ba}from"./paymentService.CDMHBYRN.js";import"./accordion.CqIxZTMM.js";import"./show._kSdkwQ3.js";import"./chip.DxehLK8n.js";import"./Chip.BLEj0h_i.js";import"./customTooltip.frmNyDfT.js";import"./TableContainer.Bjt-zAma.js";import"./TableCell.LbkhI5ft.js";import"./TableRow.B87kqtB7.js";import"./FormControlLabel.B_GA-7yO.js";import"./Checkbox.CZ2_HLbd.js";import"./SwitchBase.CIroTRRR.js";import"./constants.CojZvwvr.js";import"./iciciBankLogo.NwSrcl8r.js";const Sa="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C17.5228%2022%2022%2017.5228%2022%2012C22%206.47715%2017.5228%202%2012%202C6.47715%202%202%206.47715%202%2012C2%2017.5228%206.47715%2022%2012%2022Z'%20stroke='%231856DC'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.09375%208.99666C9.32885%208.32833%209.7929%207.76477%2010.4037%207.4058C11.0145%207.04682%2011.7326%206.9156%2012.4309%207.03538C13.1292%207.15515%2013.7626%207.51819%2014.2188%208.06019C14.6751%208.60219%2014.9248%209.28819%2014.9237%209.99666C14.9237%2011.9967%2011.9237%2012.9967%2011.9237%2012.9967'%20stroke='%231856DC'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%2017H12.01'%20stroke='%231856DC'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ga="data:image/svg+xml,%3csvg%20width='17'%20height='18'%20viewBox='0%200%2017%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.50004%2017.3335C12.9581%2017.3335%2016.5762%2013.6002%2016.5762%209.00016C16.5762%204.40016%2012.9581%200.666828%208.50004%200.666828C4.04202%200.666828%200.42391%204.40016%200.42391%209.00016C0.42391%2013.6002%204.04202%2017.3335%208.50004%2017.3335ZM7.69243%205.64111C7.69243%205.19508%208.05401%204.8335%208.50004%204.8335C8.94607%204.8335%209.30765%205.19508%209.30765%205.64111V5.69255C9.30765%206.13858%208.94607%206.50016%208.50004%206.50016C8.05401%206.50016%207.69243%206.13858%207.69243%205.69255V5.64111ZM7.69243%208.55778C7.69243%208.11174%208.05401%207.75016%208.50004%207.75016C8.94607%207.75016%209.30765%208.11174%209.30765%208.55778V12.7759C9.30765%2013.2219%208.94607%2013.5835%208.50004%2013.5835C8.05401%2013.5835%207.69243%2013.2219%207.69243%2012.7759L7.69243%208.55778Z'%20fill='%23DC6009'%20/%3e%3c/svg%3e",ja="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%200C4.47715%200%200%204.47715%200%2010C0%2015.5229%204.47715%2020%2010%2020C15.5229%2020%2020%2015.5229%2020%2010C20%204.47715%2015.5229%200%2010%200Z'%20fill='%23EBCC00'/%3e%3cg%20clip-path='url(%23clip0_25402_136601)'%3e%3cpath%20d='M10.0026%2014.1693C12.3038%2014.1693%2014.1693%2012.3038%2014.1693%2010.0026C14.1693%207.70142%2012.3038%205.83594%2010.0026%205.83594C7.70142%205.83594%205.83594%207.70142%205.83594%2010.0026C5.83594%2012.3038%207.70142%2014.1693%2010.0026%2014.1693Z'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10%207.5V10L11.6667%2010.8333'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_25402_136601'%3e%3crect%20width='10'%20height='10'%20fill='white'%20transform='translate(5%205)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",is=({severity:c,variant:s,message:t,icon:d="",className:n,title:o,alertIconClassName:p,onClickPayment:N,checkPaymentStatus:h,primaryButton:E,secondaryButton:i})=>{const l=te(`(${le.MOBILE})`);return e.jsx(e.Fragment,{children:t?.toString().trim()&&e.jsxs(ur,{icon:d?e.jsx(ue,{src:d,className:`mt-1 ${p}`}):!1,variant:s,className:`payment-alert ${n}`,children:[o&&e.jsx(a,{variant:l?"body1":"body2",styleType:"Bold",align:"left",className:c,component:"div",children:o}),e.jsxs("div",{children:[e.jsx(a,{variant:"body3",styleType:"Reg",align:"left",className:`mt-2 mt-md-4 ${c}`,component:"div",children:t}),e.jsxs("div",{className:"btn-view",children:[E&&e.jsx(Be,{size:"small",name:"invest",variant:"contained",className:"btn-style ",onClick:h,children:e.jsx(a,{variant:"button2",styleType:"Bold",children:E})}),i&&e.jsx(Be,{size:"small",name:"invest",variant:"outlined",className:" retry-btn",onClick:N,children:e.jsx(a,{variant:"button2",styleType:"Bold",children:i})})]})]})]})})},Ia=({details:c,textConstants:s})=>{const t=(i,l)=>i===vs.EKYC?s.YOUR_INFORMATION.E_KYC_SUBMITTED:i===vs.VKYC?s.YOUR_INFORMATION.V_KYC_SUBMITTED:l===Ps.PENDING?s.YOUR_INFORMATION.PENDING:l===Ps.KYC_COMPLIANT?s.YOUR_INFORMATION.KYC_COMPLIANT:"",d=i=>{switch(i){case fe.PRIMARY:return s.PRIMARY_TEXT;case fe.SECONDARY:return s.SECONDARY_TEXT;case fe.TERTIARY:return s.TERTIARY_TEXT}},n=i=>i?i===ps.ONE?s?.SECONDARY_TEXT:s?.TERTIARY_TEXT:s?.PRIMARY_TEXT,o=(i,l)=>{switch(i){case fe.PRIMARY:return`${l?.replace("%s",s.PRIMARY_TEXT)}`;case fe.SECONDARY:return`${l.replace("%s",s.SECONDARY_TEXT)}`;case fe.TERTIARY:return`${l.replace("%s",s.TERTIARY_TEXT)}`}},p=()=>e.jsx("div",{className:"your-information",children:e.jsx(ke,{defaultExpanded:!0,title:e.jsx(r,{item:!0,xs:12,className:"accordion-title",children:e.jsx(a,{variant:"body1",styleType:"Bold",className:"review-header-title",component:"h3",children:s.YOUR_INFO_HEADING})}),details:e.jsx(r,{container:!0,className:"your-information__holder",children:c?.panKycs?.sort((i,l)=>i.priority-l.priority).map((i,l)=>e.jsxs(r,{container:!0,children:[i.priority===fe.PRIMARY&&e.jsxs(r,{className:"detail-row",item:!0,xs:12,component:"dl",children:[e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-sm-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.YOUR_INFORMATION.EMAIL_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2 word-break-all",component:"dd",children:c?.folioRegistrationDetail
1s?.primaryEmail})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"pb-6 pb-sm-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.YOUR_INFORMATION.MOBILE_NUMBER_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:`${c?.folioRegistrationDetails?.phone?.isd}- 2 ${c?.folioRegistrationDetails?.phone?.number}`})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-sm-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.YOUR_INFORMATION.ACCOUNT_TYPE_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:c?.folioRegistrationDetails?.holdingNatureName})]})]},`pan_${l+1}`),e.jsx(r,{container:!0,className:"detail-row",children:e.jsx(r,{item:!0,xs:12,sm:12,className:"detail-item pt-12",children:e.jsx(a,{variant:"body2",styleType:"Bold",children:s.YOUR_INFORMATION.HOLDER_DETAILS.replace("%s",d(i.priority))})})},`holder-heading-${l+1}`),e.jsxs(r,{container:!0,component:"dl",children:[e.jsxs(r,{item:!0,xs:12,sm:3,className:"pb-6 pb-sm-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"pt-4 text-grey",children:s.YOUR_INFORMATION.PAN_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",children:i?.pan})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"pt-4 pb-6 pb-sm-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",children:s.YOUR_INFORMATION.KYC_STATUS_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",children:t(i?.kycTypeId?.typeCode,i?.kycStatusId?.statusCode)})]})]},`holder-pan-${l+1}`)]},`information-${l} d-flex`))})})}),N=()=>e.jsx(e.Fragment,{children:c?.otherAndFatcaDetails?.map((i,l)=>e.jsx("div",{className:"other-details",children:e.jsx(ke,{title:e.jsx(r,{item:!0,xs:12,className:"accordion-title",children:e.jsx(a,{variant:"body1",styleType:"Bold",className:"review-header-title",component:"h3",children:o(i.priority,s.OTHER_DETAILS.OTHER_DETAILS_HEADING)})}),details:e.jsxs("div",{children:[e.jsx(r,{children:e.jsxs(a,{variant:"body3",styleType:"Bold",className:"normal",component:"span",children:[e.jsx(ue,{src:_a,className:"icon",alt:""}),s.OTHER_DETAILS.PERSONAL_DETAILS_TITLE]})}),e.jsxs(r,{component:"dl",container:!0,className:"pt-4 pt-md-0 other-details__additional-information",children:[e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pt-md-4 pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey ",component:"dt",children:s.OTHER_DETAILS.OCCUPATION_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.occupationId?.name})]}),i?.personalDetails?.occupationId?.code===Ls.OCCUPATION&&e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pt-md-4 pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey ",component:"dt",children:s.OTHER_DETAILS.OTHER_OCCUPATION}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.occupationOther})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0 pt-md-4",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey ",component:"dt",children:s.OTHER_DETAILS.SOURCE_OF_INCOME_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.incomeSourceId?.description})]}),i?.personalDetails?.incomeSourceId?.code===Ls.SOURCE_OF_INCOME&&e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pt-md-4 pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey ",component:"dt",children:s.OTHER_DETAILS.OTHER_SOURCE_OF_INCOME}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.incomeSourceOther})]})]},l),e.jsxs(r,{component:"dl",container:!0,className:"other-details__additional-information",children:[i?.personalDetails?.incomeBracketId?.name?e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0 pt-md-6",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.INCOME_BRACKET_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.incomeBracketId?.name})]}):null,i?.personalDetails?.incomeSlabId?.name?e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0 pt-md-6",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.INCOME_SLAB_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.incomeSlabId?.name})]}):e.jsxs(e.Fragment,{children:[i?.personalDetails?.netWorth?e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0 pt-md-6",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.NET_WORTH_IN_RUPEES_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.netWorth})]}):null,i?.personalDetails?.netWorthDate?e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0 pt-md-6",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.NET_WORTH_AS_ON_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.netWorthDate})]}):null]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0 pt-md-6",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.PEP_STATUS_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.pepId?.description})]})]}),e.jsxs(r,{container:!0,className:"other-details__additional-information",component:"dl",children:[e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-xs-0 pt-md-6",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.TAX_RESIDENCE_ADDRESS}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.taxAddressTypeId?.name})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-xs-0 pt-md-6",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.PLACE_OF_BIRTH_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.birthPlace})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pt-md-6",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.COUNTRY_OF_BIRTH_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.personalDetails?.countryName})]})]}),i?.fatcaTaxes?.length>0&&i?.personalDetails?.assessTaxOutsideIndia&&e.jsxs("div",{className:"pt-12",children:[e.jsx(r,{item:!0,className:"mt-3",children:e.jsx(a,{variant:"body2",styleType:"Bold",children:s.OTHER_DETAILS.TAX_DETAIL_TITLE_HEADING})}),i?.fatcaTaxes?.map((A,C)=>e.jsxs("div",{children:[e.jsx(r,{className:"pt-6",children:e.jsxs(a,{variant:"body3",styleType:"Bold",className:"normal",component:"span",children:[e.jsx(ue,{src:ya,className:"icon",alt:""}),`${s.OTHER_DETAILS.TAX_RESIDENCE_COUNTRY_LABEL} ${C+1}`]})}),e.jsxs(r,{component:"dl",container:!0,className:" other-details__additional-information pt-4",children:[e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-xs-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey ",component:"dt",children:s.OTHER_DETAILS.COUNTRY_OF_RESIDENCE_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:A?.countryName})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-xs-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.IDENTIFICATION_TYPE_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:A?.identificationTypeId?.description})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey ",component:"dt",children:s.OTHER_DETAILS.TIN_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2 word-break-all",component:"dd",children:A?.identificationNo||s.OTHER_DETAILS.DOCUMENT_ID_UNAVAILABLE})]}),(A?.reasonText||A?.tinAbsenceReasonId?.description)&&e.jsxs(r,{item:!0,xs:12,className:"detail-item pb-0 pt-6",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.REASON}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:A?.reasonText||A?.tinAbsenceReasonId?.description})]})]})]},C))]})]})})},`other-details-${l}`))}),h=()=>{const i=c?.accountDetails?.[0];return e.jsx("div",{className:"your-information",children:e.jsx(ke,{title:e.jsx(r,{item:!0,xs:12,className:"accordion-title",children:e.jsx(a,{variant:"body1",styleType:"Bold",className:"review-header-title",component:"h3",children:s.OTHER_DETAILS.BANK_DETAILS_HEADING})}),details:e.jsxs(r,{container:!0,className:"your-information__holder",children:[e.jsx(r,{children:e.jsxs(a,{variant:"body3",styleType:"Bold",className:"normal",component:"span",children:[e.jsx(ue,{src:Ea,className:"icon",alt:""}),s.OTHER_DETAILS.ACCOUNT_DETAILS_LABEL]})}),e.jsxs(r,{component:"dl",container:!0,className:"other-bank-detail
2s pt-4",children:[e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.BANK_NAME_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.name})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.ACCOUNT_TYPE_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.bankAccountType})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item ",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.ACCOUNT_NUMBER_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-1",component:"dd",children:i?.accountNumber})]})]}),e.jsx(r,{className:"pt-8 pt-md-6",children:e.jsxs(a,{variant:"body3",styleType:"Bold",className:"normal",component:"span",children:[e.jsx(ue,{src:ha,className:"icon",alt:""}),s.OTHER_DETAILS.BRANCH_DETAILS_HEADING]})}),e.jsxs(r,{component:"dl",container:!0,className:"branch-details pt-4",children:[e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0 ",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.IFSC_CODE_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.ifscCode})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.CITY_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.city})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey ",component:"dt",children:s.OTHER_DETAILS.STATE_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.state})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.BRANCH_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.branchName})]})]}),e.jsx(r,{component:"dl",container:!0,className:"user-address pt-md-6",children:e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.OTHER_DETAILS.ADDRESS_LINE_1_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:i?.addrLine1})]})})]})})})},E=()=>{const i=s?.NOMINEE_DETAILS||{};return e.jsx("div",{className:"your-information",children:e.jsx(ke,{title:e.jsx(r,{item:!0,xs:12,className:"accordion-title",children:e.jsx(a,{variant:"body1",styleType:"Bold",className:"review-header-title",component:"h3",children:s.NOMINEE_DETAILS.NOMINEE_DETAILS_HEADING})}),details:c?.folioRegistrationDetails?.nomineeOptOut?e.jsx(a,{variant:"body3",styleType:"Reg",children:s.NOMINEE_DETAILS.NOT_OPTED_FOR_NOMINEE_TEXT}):e.jsx(r,{container:!0,children:c?.folioNomineeDetails?.map((l,A)=>e.jsxs(e.Fragment,{children:[e.jsx(a,{variant:"body1",styleType:"Bold",className:"mb-6",children:s.NOMINEE_DETAILS.NOMINEE_DETAILS_TYPE.replace("%s",n(A))}),e.jsxs(r,{component:"dl",container:!0,rowSpacing:3,columnSpacing:3,className:"your-information__holder pt-6 pb-6",children:[e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_NAME_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.name||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_RELATION_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.nomineeRelation?.name||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:i?.NOMINEE_PRECENTAGE_LABEL||s?.NOMINEE_PERCENTAGE||"Nominee Percentage"}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.percentage||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s?.NOMINEE_ID||"Nominee ID"}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.documentProofId||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item ",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_DOB_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-1",component:"dd",children:B(l?.dob).format(Ee.DAY_MONTH_YEAR_FORMAT)||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0 ",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_MOBILE_NO_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.mobile?.number?`${l?.mobile?.isd}-${l?.mobile?.number}`:ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey ",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_EMAIL_ID_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.email||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_ADDRESS_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.address||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:i?.NOMINEE_PINCODE||s?.PINCODE||"Nominee PIN Code"}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.pinCode||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:i?.NOMINEE_CITY||s?.CITY||"Nominee City"}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.city||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:i?.NOMINEE_STATE||s?.STATE_NAME||"Nominee State"}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.state||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:i?.NOMINEE_COUNTRY||s?.COUNTRY||"Nominee Country"}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.country||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_TYPE_LABEL}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.isMinor?oa:ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_GUARDIAN_NAME}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.guardianName||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_GUARDIAN_PAN}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.guardianPan||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_GUARDIAN_ADDRESS}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.guardianAddress||ae?.NA})]}),e.jsxs(r,{item:!0,xs:12,sm:3,className:"detail-item pb-6 pb-md-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"text-grey",component:"dt",children:s.NOMINEE_DETAILS.NOMINEE_GUARDIAN_RELATION_MINOR}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"pt-2",component:"dd",children:l?.guardianNomineeRelation?.name||ae?.NA})]})]})]}))})})})};return e.jsxs("div",{className:"pt-16 pt-sm-24 review-info-sign-up",children:[e.jsx(a,{variant:"h5",styleType:"Bold",className:"pb-6",children:s.CLIENT_SUMMARY}),p(),N(),h(),E()]})},xa=({transactionData:c,textConstants:s,isCancel:t})=>{const d=te(`(${le.MOBILE})`),n=c?.scheme?.[0],o=ee(i=>i?.commonField?.transactionConfig),p=ee(i=>i.commonField.globalConstants),h=o?.validations?.find(i=>i?.code===m?.REDEEM_FREEDOM_SWP)?.validation?.startAfter.find(i=>i.isActive&&i.code===n?.startAfter),E=(i,l=!1)=>l?Ge(n?.frequency)?he(i):Fs(i):B(i)?.format(p?.DATE_CONSTANT?.AS_ON_DATE_FORMAT||Ee?.AS_ON_DATE_FORMAT);return e.jsx("div",{className:v("redeem-section freedom-swp",{"cancel-receipt":t}),children:e.jsxs("div",{className:"pt-6 pl-4 pr-4 pb-8 pl-md-6 pr-md-6",children:[e.jsxs(r,{container:!0,className:"align-center",children:[e.jsx(r,{item:!0,xs:12,sm:8,md:8,children:e.jsx(a,{variant:d?"body1":"body2",styleType:"Bold",component:"h2",className:v({"cancel-receipt__heading":t}),children:n?.schemeName||s.NA})}),e.jsxs(r,{item:!0,xs:12,sm:4,md:4,className:"redeem-amount pt-4 pt-sm-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:v("label ",{"cancel-receipt__heading":t}),children:s.REGISTRATION_AMOUNT}),e.jsxs(a,{variant:"body2",styleType:"Bold",className:v("redeem-amount__value pt-1 ",{"cancel-receipt__heading":t}),children:[e.jsx("span",{className:v("rupee",{"cancel-receipt":t}),"aria-hidden":"true",children:D}),L(Number(n?.registrationAmount),M)||s.NA,s.RS_SUCCEDER]})]})]}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},children:[e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.SWP_INSTALLMENT_AMOUNT}),e.jsx(a,{variant:"body2",styleType:"Reg",className:t?"label":"",children:L(Number(n?.swpAmount),M)||s.NA})]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.FREQUENCY_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",className:t?"label":"",children:n?.frequency||s.NA})]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.TOP_UP_VALUE}),e.jsxs(a,{variant:"body2",styleType:"Reg",className:t?"label":"",children:[n?.topUpPercentage||s.NA,s.PERCENTAGE]})]}),n?.startAfter&&n?.startAfter!==xs.FREEDOM_SWP.CUSTOM?e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.SWP_START_AFTER}),e.jsx(a,{variant:"body2",styleType:"Reg",className:t?"label":"",children:h?.type||s.NA})]}):null,!n?.startAfter||n?.startAfter===xs.FREEDOM_SWP.CUSTOM?e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.SWP_START_DATE_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",className:t?"label":"",children:n?.startDate?E(n?.startDate):s.NA})]}):null,e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.SWP_END_DATE_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",className:t?"label":"",children:n?.endDate?E(n?.endDate,!0):s.NA})]})]}),e.jsx(oe,{variant:"standard",severity:"info",className:"swp-note",message:s.EXIT_LOAD_NOTE})]})})},cs=ks("transactionStatusFaqs"),Oa=({onClose:c,faqsData:s,errorResponse:t})=>{const d=te(`(${le.MOBILE})`),n=o=>o?.map((p,N)=>e.jsx(ke,{title:e.jsx(a,{variant:d?"body1":"body2",styleType:"Bold",component:"h4",children:p.question?.text}),details:e.jsx(Tr,{html:p?.ans}),className:"questions"},N));return e.jsxs(r,{container:!0,className:"faq-container",children:[d?null:e.jsx(r,{item:!0,xs:12,className:"faq-back-button",children:e.jsx(Hs,{onClick:c})}),e.jsx(r,{item:!0,xs:12,children:e.jsx(a,{id:"help-modal-title",variant:d?"h3":"h5",styleType:"Bold",component:"h2",children:cs?.HELP})}),s?.length?s?.map((o,p)=>e.jsxs(r,{xs:12,className:"faq-section",children:[e.jsx(a,{variant:d?"h6":"body1",styleType:"Bold",className:"faq-title",component:"h3",children:cs[o?.title?.code]||o?.title?.text}),n(o?.faqs)]},p)):e.jsx(r,{xs:12,className:"no-records",children:e.jsx(a,{variant:"body3",styleType:"Bold",children:cs?.NO_RECORD_FOUND})})]})},fa=({onClose:c})=>{const[s,t]=b.useState([]),[d,n]=b.useState({isError:!1,errorCode:"",errorMessage:""}),{mutate:o,isLoading:p}=Ys(yr,{onSuccess:N=>{const h=N?.data?.success;t(h?.data)},onError:N=>{const h=N?.response?.data;n({isError:!0,errorCode:h?.errorCode,errorMessage:ge[h?.errorCode]||ge["SOMETHING-WRONG"]})}});return b.useEffect(()=>{o()},[]),e.jsxs(e.Fragment,{children:[p?e.jsx(Gs,{className:"page-level"}):null,e.jsx(Oa,{onClose:c,faqsData:s,errorResponse:d})]})},Us=ks("transactionStepper"),Se={ORDER_PLACED:"ORDER_PLACED",ORDER_PROCESSED:"ORDER_PROCESSED",PAYOUT_INITIATED:"PAYOUT_INITIATED",INSTANT_PAYOUT:"INSTANT_PAYOUT"},Le={PENDING:"pending",COMPLETE:"complete"};B.extend(us);B.extend(Er);const ms=({steps:c,textConstants:s,stepWidth:t=9,camsProcessedDate:d,isInstantRedeem:n=!1})=>{const o=c?.length,[p,N]=b.useState("0"),[h,E]=b.useState("0"),[i,l]=b.useState(),A=te(`(${le.MOBILE})`),C=te(`(${le.IPAD})`),T=B.utc(),[G,V]=b.useState(!1),[q,X]=b.useState(null),g=y=>{const S=B(y,Ee?.AS_ON_DATE_FORMAT).hour(10).minute(0).second(0);return T?.isAfter(S)},ie=y=>{const S=B(c[y]?.date,Ee?.AS_ON_DATE_FORMAT).add(1,"day").hour(10).minute(0).second(0);return T?.isAfter(S)};c?.find((y,S)=>y?.code===Se?.ORDER_PROCESSED);const K=()=>{Math.abs(B(c[0]?.date)?.diff(c[o-1]?.date,"day"));let y=!1;return c?.map(($,z)=>{let Z="initial";return $?.code===Se?.ORDER_PLACED||$?.code===Se?.INSTANT_PAYOUT?Z="complete":$?.code===Se?.ORDER_PROCESSED&&g($?.date)?!g(d)&&ie(z)?(Z="pe
2nding",y=!0):g(d)?(Z="complete",y=!1):(Z="initial",y=!1):g($?.date)&&!y?(Z="complete",y=!1):(Z="initial",y=!1),{...$,status:Z,index:z}})},Q=()=>{if(!c||c?.length<=1||T<=B(c[0]?.date))return N("0"),0;const y=c.findIndex(pe=>pe.requiresOrderProcessing===!0);if(y!==-1&&(!d||d&&!g(d))){const pe=y*(100/(c?.length-1)),Y=100/(c?.length-1);let u=-1;for(let De=0;De<=y&&T>=B(c[De]?.date);De++)u=De;if(u<0)return N("0"),0;if(u>=y)return N(pe?.toString()),pe;let x=0;u>0&&(x=u*Y);const W=u+1,J=B(c[u]?.date),ne=B(c[W]?.date),Oe=Math.max(1,ne?.diff(J,"day")),we=Math.max(0,B(T)?.diff(J,"day")),Je=Math.min(1,we/Oe);return x+=Je*Y,N(x?.toString()),x}if(T>=B(c[c?.length-1]?.date))return N("100"),100;const $=100/(c.length-1);let z=-1;for(let pe=0;pe<c?.length&&T>=B(c[pe]?.date);pe++)z=pe;if(z<0)return N("0"),0;if(z>=c?.length-1)return N("100"),100;let Z=0;z>0&&(Z=z*$);const ve=z+1,Re=B(c[z]?.date),_e=B(c[ve]?.date),be=Math.max(1,_e?.diff(Re,"day")),me=Math.max(0,B(T)?.diff(Re,"day")),Ce=Math.min(1,me/be);return Z+=Ce*$,N(Z?.toString()),Z},w=()=>
2{if(c?.length){const S=100/(c?.length-1),Z=structuredClone(i)?.reverse()?.find(ve=>ve?.status===Le?.COMPLETE)?.index*S;E(Z?.toString())}else E("0")};b.useEffect(()=>{l(K()),Q(),w()},[c,C]);const O=b.useCallback(()=>structuredClone(i)?.reverse()?.find(S=>S?.status===Le?.COMPLETE||S?.status===Le?.PENDING),[i]),k=()=>{V(!G)},I=y=>{const S=y.getAttribute("data-tooltip-index");if(!S)return null;const $=Number(S);return Number.isNaN($)?null:$},U=y=>{X(y)},H=()=>{X(null)},de=y=>{const S=I(y.currentTarget);S!==null&&U(S)},j=y=>{const S=I(y.currentTarget);S!==null&&U(S)},_=y=>{const S=I(y.currentTarget);if(S!==null){if(y.key==="Escape"){H(),y.currentTarget.blur();return}(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),q===S?H():U(S))}},F=y=>{if(g(y?.date)||y?.code===Se?.ORDER_PLACED)switch(y?.status){case Le?.COMPLETE:return e.jsx(ue,{src:Aa,className:"step-completed"});case Le?.PENDING:return e.jsx(ue,{src:ja,className:"step-completed"});default:return null}else return null},P=(y,S)=>{const $=()=>y?.status===Le?.PENDING;return e.jsxs("div",{id:`step-tooltip-${S}`,role:"tooltip",className:v("having-issues-tooltip","having-issues-tooltip--right",{show:q===S}),children:[e.jsxs(a,{variant:"body3",styleType:"Bold",className:"issues-title",children:[`â${y?.label}â`,e.jsx(a,{variant:"body3",styleType:"Reg",className:"issues-desc",component:"span",children:$()?y?.havingIssuesDesc:y?.knowMoreDesc})]}),$()&&e.jsx("div",{className:"contact-us-info",children:e.jsxs(a,{variant:"body3",styleType:"Reg",className:"having-trouble",children:[Us?.CONTACT_US,e.jsx(a,{variant:"body3",styleType:"Bold",className:"call-numbers",component:"span",children:Us?.PHONE_NUMBERS})]})})]})};return e.jsxs("div",{className:"transaction-stepper-container",children:[e.jsxs(r,{className:"status",xs:12,children:[e.jsx(r,{item:!0,children:e.jsx(a,{variant:"menuOpenLink1",styleType:"Reg",component:"h2",children:s?.TRANSACTION_STEPPER_STATUS})}),e.jsx(r,{item:!0,children:e.jsx(Be,{variant:"text",onClick:k,className:"help-button",children:e.jsxs(a,{className:"help",variant:"menuOpenLink1",styleType:"Reg",children:[s?.HELP,e.jsx(ue,{src:Sa,className:"ml-1"})]})})})]}),e.jsx(a,{className:"status-text",variant:"body1",styleType:"Bold",children:O()?.statusText}),e.jsxs(r,{container:!0,className:"steps-container",children:[e.jsx("div",{className:"dashed-line"}),e.jsx("div",{className:"completed-line",style:C?{width:`calc(${.8*Number(p)}%)`}:{height:`calc(${p}%`},children:e.jsx("div",{className:"completed-line-circle",children:e.jsx("div",{className:"inner-circle"})})}),e.jsx("div",{className:"green-line",style:C?{width:`calc(${.8*Number(h)}%)`}:{height:`calc(${h}%`}}),e.jsx("div",{className:"steps",children:i?.map((y,S)=>e.jsx(r,{item:!0,className:"step",children:e.jsxs("div",{className:"icon-label-container",children:[e.jsxs("div",{className:"step-icon-container",children:[e.jsx(ue,{src:y?.icon,className:"step-icon"}),F(y)]}),e.jsxs("div",{className:"label-date",children:[e.jsxs(a,{variant:A?"body2":"topMenuLink1",styleType:"Bold",className:"label-info",children:[y?.label,y?.havingIssues?e.jsxs("div",{className:"info-tooltip",children:[e.jsx("div",{"data-tooltip-index":S.toString(),onMouseEnter:de,onMouseLeave:H,children:e.jsx(ue,{src:ga,className:"step-info",alt:y?.code===Se?.ORDER_PROCESSED?"Information: Order Processed":`Information: ${y?.label}`,tabIndex:0,onFocus:j,onBlur:H,onKeyDown:_,ariaDescribedBy:`step-tooltip-${S}`})}),P(y,S)]}):null]}),e.jsxs("div",{className:"date-amount",children:[y?.code===Se.INSTANT_PAYOUT&&y?.instantRedeemAmount?e.jsx(a,{variant:A?"body3":"body4",styleType:"Reg",className:"amount",children:`â¹ ${L(y?.instantRedeemAmount,M)}`}):null,y?.code===Se.PAYOUT_INITIATED&&y?.normalRedeemAmount?e.jsx(a,{variant:A?"body3":"body4",styleType:"Reg",className:"amount",children:`â¹ ${L(y?.normalRedeemAmount,M)}`}):null,y?.date?e.jsx(a,{variant:A?"body3":"body4",styleType:"Reg",children:B(y?.date)?.format(Ee?.DATE_ORDINAL)}):null]})]})]})},S))})]}),O()?.alertDesc?e.jsx(r,{container:!0,xs:12,sm:10,className:"mt-xs-4",children:e.jsx(oe,{message:O()?.status===Le?.PENDING?O()?.pendingDesc:O()?.alertDesc,showClose:!1,severity:"warning",icon:!1,className:"alert-status warning"})}):null,e.jsx(os,{isOpen:G,onClose:k,className:"help-modal",ariaLabelledBy:"help-modal-title",children:e.jsx(fa,{onClose:k})})]})};B.extend(us);const La=({transactionData:c,textConstants:s,updatedPaymentStatus:t="",showfailedReceipt:d=""})=>{const n=te(`(${le.MOBILE})`),o=c?.scheme?.[0],p=c?.camsProcessedDate,N=c?.redeemTypes,{orderPlaced:h,orderProcessed:E,payoutInitiatedDate:i,applicableNavDate:l,instantRedeemOrderPlaced:A,instantRedeemOrderProcessed:C,instantRedeemPayoutInitiatedDate:T,instantRedeemApplicableNavDate:G}=c?.transactionStatus||{},V=[A,T,E,i],q=[A,T,C],X=da?.map((k,I)=>
2({...k,...k?.code==="INSTANT_PAYOUT"&&{instantRedeemAmount:o?.instantRedeemAmount},...k?.code==="PAYOUT_INITIATED"&&{normalRedeemAmount:(o?.amount||0)-(o?.instantRedeemAmount||0)},date:V[I]})),g=ma?.map((k,I)=>({...k,date:q[I]})),K=ee($s)?.isPayout,Q=()=>Ws(o?.investmentType||"")&&K,w=Ye()&&o?.investmentType===m.REDEEM,O=()=>!!(d!==Ns?.STRING_TRUE&&c?.paymentStatus!==je?.PAYMENT_FAILED&&t!==Ne?.FAILED&&Q()&&K);return e.jsxs("div",{className:"redeem-section",children:[e.jsxs("div",{className:"pt-6 pl-4 pr-4 pb-8 pl-md-6 pr-md-6",children:[O()?e.jsxs(e.Fragment,{children:[N===Ds.INSTANT?e.jsx("div",{className:"mb-6",children:e.jsx(ms,{steps:g,textConstants:s,camsProcessedDate:p,isInstantRedeem:!0})}):null,N===Ds.COMBO?e.jsx("div",{className:"mb-6",children:e.jsx(ms,{steps:X,textConstants:s,camsProcessedDate:p,isInstantRedeem:!0})}):null]}):null,e.jsxs(r,{container:!0,className:"align-center",children:[e.jsx(r,{item:!0,xs:12,sm:8,md:8,children:e.jsx(a,{variant:n?"body1":"body2",styleType:"Bold",component:"h2",children:o?.schemeName||s.NA})}),e.jsxs(r,{item:!0,xs:12,sm:4,md:4,className:"redeem-amount pt-4 pt-sm-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label",children:s.REDEEMED_LABEL}),e.jsxs(a,{variant:"body2",styleType:"Bold",className:"redeem-amount__value pt-1",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),L(Number(o?.amount),M)||s.NA,s.RS_SUCCEDER]}),w?e.jsx(a,{variant:"body4",styleType:"Reg",className:"last-available-nav pt-1",children:s?.ESTIMATED_BY_LAST_NAV}):null]})]}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},children:[e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.INSTANTLY_REDEEMED}),e.jsxs(a,{variant:"body2",styleType:"Reg",className:"d-flex",children:[e.jsx("span",{className:"rupee-icon","aria-hidden":"true",children:D}),L(Number(o?.instantRedeemAmount),M)||s.NA]})]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.NORMALLY_REDEEMED}),e.jsxs(a,{variant:"body2",styleType:"Reg",className:"d-flex",children:[e.jsx("span",{className:"rupee-icon","aria-hidden":"true",children:D}),L((o?.amount||0)-(o?.instantRedeemAmount||0),M)]})]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.STCG}),e.jsx(a,{variant:"body2",styleType:"Reg",children:o?.shortTermCapitalGain||s.NA})]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.LTCG}),e.jsx(a,{variant:"body2",styleType:"Reg",children:o?.longTermCapitalGain||s.NA})]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.TOTAL_UNITS}),e.jsx(a,{variant:"body2",styleType:"Reg",children:L(Number(o?.units),xe)||s.NA})]}),Q()?e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsxs(a,{variant:"body4",styleType:"Reg",className:"expected-nav-date pb-1",children:[s?.EXPECTED_NAV_DATE,e.jsx(ue,{tooltipDirection:"top",tooltip:!0,tooltipContent:s.EXPECTED_NAV_DATE_TOOLTIP,src:Zs,className:"alert-tooltip"})]}),e.jsx(a,{variant:"body2",styleType:"Reg",children:B(l)?.format(Ee?.DATE_ORDINAL)||s.NA})]}):null]})]}),e.jsx("div",{className:"total-amount",children:e.jsxs(r,{container:!0,className:"align-center",children:[e.jsx(r,{xs:6,children:e.jsx(a,{variant:n?"h6":"body2",styleType:"Bold",component:"p",className:"total-amount__heading",children:s.AMOUNT_LABEL})}),e.jsxs(r,{xs:6,className:"text-right",children:[e.jsx("span",{className:"rupee","aria-hidden":"true",children:D}),e.jsx(a,{variant:"h6",styleType:"Bold",component:"p",className:"total-amount__heading ml-1",children:L(Number(o?.amount),xe)||s.NA})]})]})})]})},va=({transactionData:c,textConstants:s,latestNav:t,isLumpsumCartTrxn:d=!1,cartTransactionData:n})=>{const o=te(`(${le.MOBILE})`),p=()=>d?d&&n?n?.reduce((h,E)=>{const i=E?.scheme?.map(l=>l?.amount);return h+i?.reduce((l,A)=>l+A,0)},0):R:c?.scheme?.reduce((h,E)=>h+E?.amount,0),N=()=>d?n?.flatMap(h=>h?.scheme)||[]:c?.scheme;return e.jsxs("div",{className:v("lumpsum-section",{"lumpsum-section__multi-scheme":d}),children:[N()?.map((h,E)=>e.jsx("div",{className:v("scheme-details pl-4 pr-4 pl-md-6 pr-md-6",{"scheme-details__multi-scheme":d,"pt-4 pb-4":Fe(),"pt-6 pb-8 ":!Fe()}),children:e.jsxs(r,{container:!0,className:"align-center",children:[e.jsx(r,{item:!0,xs:12,sm:8.5,children:e.jsx(a,{variant:o?"body1":"body2",styleType:"Bold",component:"h2",children:h?.schemeName||s.NA})}),e.jsx(r,{item:!0,xs:12,sm:3.5,className:"lumpsum-amount pt-4 pt-sm-0",children:Fe()?e.jsxs(a,{variant:"body2",styleType:"Bold",className:"lumpsum-amount__value pt-1",children:[e.jsx("span",{className:"rupee","aria-hidden":"true",children:D}),L(Number(h?.amount),M)||s.NA,Ke.SUCCEEDER]}):e.jsxs(e.Fragment,{children:[" ",e.jsx(r,{item:!0,xs:6,className:"status-column",children:d?e.jsx(Js,{status:s?.TRANSACTION_STATUSES[n[E].paymentStatus]}):null}),e.jsxs(r,{item:!0,xs:6,className:"amount-column",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label",children:s.newInvestment.INVESTMENT_AMOUNT_LABEL}),e.jsxs(a,{variant:"body2",styleType:"Bold",className:"lumpsum-amount__value pt-1",children:[e.jsx("span",{className:"rupee","aria-hidden":"true",children:D}),L(Number(h?.amount),M)||s.NA,Ke.SUCCEEDER]})]})]})})]})},E)),e.jsx("div",{className:v("total-amount",{"total-amount__multi-scheme":d}),children:e.jsxs(r,{container:!0,className:"align-center",children:[e.jsx(r,{xs:6,children:e.jsx(a,{variant:o?"h6":"body2",styleType:"Bold",component:"p",className:"total-amount__heading",children:s.AMOUNT_LABEL})}),e.jsxs(r,{xs:6,className:"text-right",children:[e.jsx("span",{className:v("rupee",{"total-amount__cart-small":Fe()&&d&&!o}),"aria-hidden":"true",children:D}),e.jsxs(a,{variant:"h6",component:"p",styleType:"Bold",className:"total-amount__heading ml-1",children:[L(Number(p()),M)||s.NA,Ke.SUCCEEDER]})]})]})})]})};B.extend(us);const Bs=({transactionData:c,textConstants:s,isPreLoginDistributor:t=!1,isCesOrUnclaimedRedeem:d=!1,updatedPaymentStatus:n="",showfailedReceipt:o=""})=>{const p=te(`(${le.MOBILE}
2)`),N=c?.scheme?.[0],h=c?.scheme?.[R]?.investmentType,i=Ze()?.state?.status,l=()=>t?!!(N?.isAllUnits||d||h===m.CES_REDEEM):!1,A=c?.camsProcessedDate,{orderPlaced:C,orderProcessed:T,payoutInitiatedDate:G,applicableNavDate:V}=c?.transactionStatus||{},q=[C,T,G],X=pa?.map((U,H)=>({...U,date:q?.[H]})),ie=ee($s)?.isPayout,K=()=>Ws(N?.investmentType||"")&&ie,Q=Ye()&&N?.investmentType===m.REDEEM,w=()=>!!(o!==Ns?.STRING_TRUE&&c?.paymentStatus!==je?.PAYMENT_FAILED&&n!==Ne?.FAILED&&K()&&ie);let O=!1,k=!1;i===ds?.IN_PROCESS&&(N?.investmentType===m.REDEEM&&N?.redeemType===He?.AMOUNT&&(O=!0),N?.investmentType===m.REDEEM&&(N?.weightage===ps?.HUNDRED||N?.redeemType===He?.UNITS)&&(k=!0));const I=()=>Q&&k?e.jsx(a,{variant:"body4",styleType:"Reg",className:"last-available-nav pt-1",children:s?.ESTIMATED_BY_LAST_NAV}):null;return e.jsxs("div",{className:"redeem-section",children:[e.jsxs("div",{className:"pt-6 pl-4 pr-4 pb-8 pl-md-6 pr-md-6",children:[w()?e.jsx(ms,{steps:X,textConstants:s,camsProcessedDate:A}):null,e.jsxs(r,{container:!0,className:"align-center mt-8",children:[e.jsx(r,{item:!0,xs:12,sm:8,children:e.jsx(a,{variant:p?"body1":"body2",styleType:"Bold",component:"h2",children:N?.schemeName||s.NA})}),e.jsxs(r,{item:!0,xs:12,sm:4,md:4,className:"redeem-amount pt-4 pt-sm-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label",children:l()?s.REDEEMED_UNIT_LABEL:s.REDEEMED_LABEL}),e.jsxs(a,{variant:"body2",styleType:"Bold",className:"redeem-amount__value pt-1",children:[!l()&&e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),l()?s?.ALL_UNITS:L(Number(N?.amount),M)||s.NA,!l()&&s.RS_SUCCEDER]}),I()]})]}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsxs("dl",{className:"unit-details-list",children:[e.jsxs(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:[s.UNITS_LABEL," ",O&&s.APPROX]}),e.jsxs(a,{variant:"body2",styleType:"Reg",className:"description",component:"dd",children:[l()?s?.ALL_UNITS:L(Number(N?.units),xe)||s.NA,O&&e.jsx(a,{variant:"label4",styleType:"Bold",className:"pt-1",component:"p",children:s?.ESTIMATED_BY_LAST_NAV})]}),h!==m.CES_REDEEM&&e.jsxs(e.Fragment,{children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:s.EXIT_LOAD}),e.jsx(a,{variant:"body2",styleType:"Reg",className:"description",component:"dd",children:N?.exitLoad||s.NA}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:s.STCG}),e.jsx(a,{variant:"body2",styleType:"Reg",className:"description",component:"dd",children:N?.shortTermCapitalGain||s.NA}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:s.LTCG}),e.jsx(a,{variant:"body2",styleType:"Reg",className:"description",component:"dd",children:N?.longTermCapitalGain||s.NA}),K()?e.jsxs(e.Fragment,{children:[e.jsxs(a,{variant:"body4",styleType:"Reg",className:"expected-nav-date pb-1 label",component:"dt",children:[s?.EXPECTED_NAV_DATE,e.jsx(ue,{tooltipDirection:"top",tooltip:!0,tooltipContent:s.EXPECTED_NAV_DATE_TOOLTIP,src:Zs,className:"alert-tooltip"})]}),e.jsx(a,{variant:"body2",styleType:"Reg",className:"description",component:"dd",children:B(V)?.format(Ee?.DATE_ORDINAL)||s.NA})]}):null]})]}),h===m.CES_REDEEM&&e.jsx(oe,{variant:"standard",severity:"info",className:"exit-load-note",message:s.EXIT_LOAD_NOTE,showClose:!1})]}),e.jsx("div",{className:"total-amount",children:e.jsxs(r,{container:!0,className:"align-center",children:[e.jsx(r,{xs:6,children:e.jsx(a,{variant:p?"h6":"body2",styleType:"Bold",component:"p",className:"total-amount__heading",children:s.AMOUNT_LABEL})}),e.jsxs(r,{xs:6,className:"text-right",children:[!l()&&e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),e.jsxs(a,{variant:"h6",component:"p",styleType:"Bold",className:"total-amount__heading ml-1",children:[l()?s?.ALL_UNITS:L(Number(N?.amount),M)||s.NA,!l()&&s.RS_SUCCEDER]})]})]})})]})},Pa=({transactionData:c,textConstants:s,isPreLoginDistributor:t=!1})=>{const d=te(`(${le.MOBILE})`),n=c?.scheme?.[0],o=ee(N=>N.commonField.globalConstants),p=N=>B(N)?.format(o?.DATE_CONSTANT?.AS_ON_DATE_FORMAT||Ee.AS_ON_DATE_FORMAT);return e.jsx("div",{className:"redeem-section",children:e.jsxs("div",{className:"pt-6 pl-4 pr-4 pb-8 pl-md-6 pr-md-6",children:[e.jsxs(r,{container:!0,className:"align-center",children:[e.jsx(r,{item:!0,xs:12,sm:8,children:e.jsx(a,{variant:d?"body1":"body2",styleType:"Bold",component:"h2",children:n?.schemeName||s.NA})}),e.jsxs(r,{item:!0,xs:12,sm:4,md:4,className:"redeem-amount pt-4 pt-sm-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label",children:s.withdraw.NEW_DATE_OF_MATURITY}),e.jsx(a,{variant:"body2",styleType:"Bold",className:"mt-1",children:n?.newMaturityDate?p(n?.newMaturityDate):s.NA})]})]}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},children:[e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.withdraw.ROLL_OVER}),e.jsx(a,{variant:"body2",styleType:"Reg",children:t?s.ALL_UNITS:n?.units?L(Number(n?.units),xe):s.NA})]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.withdraw.CURRENT_DATE_OF_MATURITY}),e.jsx(a,{variant:"body2",styleType:"Reg",children:n?.oldMaturityDate?p(n?.oldMaturityDate):s.NA})]}),t?null:e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.newInvestment.INVESTMENT_AMOUNT_LABEL}),e.jsxs(a,{variant:"body2",styleType:"Reg",className:n?.amount?"amount":"",children:[n?.amount?e.jsx("span",{className:"amount-rupee-icon","aria-hidden":"true",children:D}):null,n?.amount?L(Number(n?.amount),M):s.NA]})]})]})]})})},Da=({transactionData:c,textConstants:s})=>{const t=te(`(${le.MOBILE})`),d=c?.scheme?.[R],n=e.jsxs(r,{className:"amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),L(Number(d?.baseAmount),M)||s.NA,s.RS_SUCCEDER]}),o=e.jsxs(r,{className:"amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),`${L(Number(d?.maxStpAmount),M)} ${s.MULTIPLIER.replace("%s",d?.multiplier)}`||s.NA,s.RS_SUCCEDER]}),p=e.jsxs(r,{className:"amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),L(Number(d?.targetAmount),M)||s.NA,s.RS_SUCCEDER]}),N=(h,E,i,l,A)=>e.jsx(a,{variant:h,styleType:E,className:l,component:i,children:A});return e.jsxs(e.Fragment,{children:[e.jsx(r,{item:!0,xs:12,sm:12,children:N(t?"h6":"body1","Bold","","pb-4 pt-6",s.STP_DETAILS||s.NA)}),e.jsx(r,{item:!0,xs:12,sm:12,children:e.jsxs("div",{className:"stp-detail
2s pt-6 pl-4 pr-4 pb-8 pl-md-6 pr-md-6",children:[e.jsxs(r,{container:!0,className:"scheme",children:[e.jsx(r,{item:!0,xs:12,sm:8,children:N(t?"body1":"body2","Bold","","",d?.targetSchemeName||s.NA)}),e.jsxs(r,{item:!0,xs:12,sm:4,md:4,className:"redeem-amount pt-4 pt-sm-0",children:[N("body4","Reg","","",s.STP_AMOUNT),N("body2","Bold","","redeem-amount__value pt-1",n)]})]}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},children:[e.jsxs(r,{item:!0,xs:12,sm:3,children:[N("body4","Reg","","pb-1",s.MAX_STP_AMOUNT),N("body2","Reg","","",o)]}),e.jsxs(r,{item:!0,xs:12,sm:3,children:[N("body4","Reg","","pb-1",s.TARGET_AMOUNT),N("body2","Reg","","",p)]})]}),e.jsx(oe,{variant:"standard",severity:"info",className:"stp-note",message:s.STP_NOTE})]})})]})},Ma=({transactionData:c,textConstants:s,isCancel:t})=>{const d=te(`(${le.MOBILE})`),n=c?.scheme?.[R],o=e.jsxs(r,{className:"amount",children:[e.jsx("span",{className:v("rupee pr-1",{"cancel-receipt":t}),"aria-hidden":"true",children:D}),`${L(Number(n?.swpAmount),M)} ${s.RS_SUCCEDER}`||`${s.NA}`]}),p=(N,h,E,i,l)=>e.jsx(a,{variant:N,styleType:h,className:i,component:E,children:l});return e.jsxs(e.Fragment,{children:[e.jsx(r,{item:!0,xs:12,sm:12,children:p(d?"h6":"body1","Bold","","pb-4 pt-6",s.SWP_DETAILS||s.NA)}),e.jsx(r,{item:!0,xs:12,sm:12,children:e.jsxs("div",{className:v("swp-details pt-6 pl-4 pr-4 pb-8 pl-md-6 pr-md-6",{"cancel-receipt":t}),children:[e.jsxs(r,{container:!0,className:"scheme",children:[e.jsx(r,{item:!0,xs:12,sm:8,children:p(d?"body1":"body2","Bold","",t?"cancel-receipt__heading":"",n?.targetSchemeName||s.NA)}),e.jsxs(r,{item:!0,xs:12,sm:4,md:4,className:"redeem-amount pt-4 pt-sm-0",children:[p("body4","Reg","",t?"cancel-receipt__heading":"label",s.SWP_AMOUNT),p("body2","Bold","",t?"cancel-receipt__heading redeem-amount__value pt-1":"redeem-amount__value pt-1",o)]})]}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},children:[e.jsxs(r,{item:!0,xs:6,sm:3,children:[p("body4","Reg","","label pb-1",s.FREQUENCY_LABEL),p("body2","Reg","",t?"label":"",n?.frequency||s.NA)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[p("body4","Reg","","label pb-1",s.START_DATE_LABEL),p("body2","Reg","",t?"label":"",`${n?.swpStartDate?he(n?.swpStartDate):s.NA}`)]})]})]})})]})},Ua=({transactionData:c,textConstants:s,isCancel:t,isCartTrxn:d=!1,cartTransactionData:n,isFromTransactionHistory:o=!1})=>{const N=ee(_=>_?.commonField)?.transactionConfig,h=te(`(${le.MOBILE})`),[E,i]=b.useState(""),l=c?.scheme?.[R],A=()=>!d||o?c?.scheme?.reduce((_,F)=>_+F?.amount,0):d?n?.reduce((_,F)=>{const P=F?.scheme?.map(y=>y?.amount);return _+P?.reduce((y,S)=>y+S,0)},0):R,C=_=>hr[`${_}`]?.SIP_DURATION?.replace("%s",""),T=(_,F,P,y,S)=>e.jsx(a,{variant:_,styleType:F,className:y,component:P,children:S}),G=()=>l?.investmentType===m.FREEDOM_SIP||l?.investmentType===m.BOOSTER_SIP,V=()=>!!(l?.instantPay&&l?.instantPayStatus===je.PAYMENT_SUCCESS),q=V()?e.jsx("div",{className:"debit-check instant-debit",children:e.jsx(er,{disabled:!0,name:"instantDebit",checked:V(),size:"small",label:T("body4","Reg","","",s.INSTANT_DEBIT),color:"default",className:v({"success-check":V()})})}):null,X=_=>_?.topUp===Ie.PERCENTAGE?`${_?.topupModeValue}${s.PERCENTAGE}`:_?.topUp===Ie.AMOUNT?e.jsxs(r,{className:"amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),_?.topupModeValue]}):s.NA,g=_=>_===Ie.PERCENTAGE?s.TOP_UP_VALUE_LABEL:_===Ie.AMOUNT?s.TOP_UP_AMOUNT:s.TOP_UP_VALUE_LABEL,ie=_=>e.jsxs(r,{className:"amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),_||s.NA]}),K=()=>G()?s.TENURE:s.END_DATE_LABEL,Q=_=>{const F=_||l;return G()?`${F?.tenure} ${s.YEARS}`:F?.investmentType===m.SIP?Ge(F?.frequency)?he(F?.endDate):Qe(F?.endDate):s.NA},w=()=>!!l?.actionHistory?.actionType,O=d&&!o&&l?.investmentType===m.SIP&&!w()&&!G(),k=()=>{switch(l?.frequency){case qe.DAILY:return!0;case qe.FORTNIGHTLY:return!0;default:return!1}};b.useEffect(()=>{const _=l?.actionHistory?.actionType;_&&i(_)},[]);const I=_=>e.jsxs(r,{className:v("amount",{"action-receipt-color":w()}),children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),L(Number(_),M)||s.NA,s.RS_SUCCEDER]}),U=_=>e.jsxs(r,{className:"amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),L(Number(_),M)||s.NA,s.RS_SUCCEDER]}),H=_=>_?.frequency===qe.WEEKLY?"":Number.isInteger(Number(_?.debitDay))?Vs(Number(_?.debitDay)):"",de=_=>_?.frequency===qe.WEEKLY?s.DAYS_OF_WEEK[_?.debitDay]:_?.debitDay,j=()=>O?n?.flatMap(_=>_?.scheme)||[]:c?.scheme;return e.jsxs(r,{container:!0,className:"sip-section mt-4",columnSpacing:{xs:1,sm:2,md:3},children:[G()?e.jsx(r,{item:!0,xs:12,children:T(h?"h6":"body1","Bold","","pb-4 pt-6 invest-details",s.INVESTMENT_DETAILS||s.NA)}):null,e.jsxs(r,{item:!0,xs:12,className:"p-0",children:[j()?.map((_,F)=>{const P=_;return e.jsxs("div",{className:v("pt-8 pl-4 pr-4 pb-8 pl-sm-6 pl-md-6 pr-md-6",{" sip-section__pause-receipt ":w()&&E===Te.SIP_PAUSE," sip-section__cancel-receipt ":w()&&E===Te.SIP_CANCEL," sip-section__sip-topup-receipt ":w()&&E===Te.SIP_TOPUP," sip-section__details ":!w(),"container-radius":G(),"mt-12":!G()&&!O,"sip-section__multi-scheme":O}),children:[e.jsxs(r,{container:!0,className:"scheme ",children:[e.jsxs(r,{item:!0,xs:12,sm:8,children:[T(h?"body1":"body2","Bold","",w()&&E!==Te.SIP_TOPUP?"action-receipt-color":"",P?.schemeName||s.NA),w()&&E===Te.SIP_PAUSE&&T("body3","Bold","","action-receipt-note",s?.PAUSE_SIP_DETAIL.replace("%s",P?.actionHistory?.pauseInstallment)),w()&&E===Te.SIP_CANCEL&&T("body3","Bold","","action-receipt-note",s?.CANCEL_SIP_DETAIL.replace("%s",N?.camsSipCancelBufferDay))]}),w()&&E===Te.SIP_TOPUP?e.jsxs(r,{item:!0,xs:12,sm:4,className:"sip-amount pt-4 pt-sm-0",children:[T("body4","Reg","","label",s.TOP_UP_DETAILS),T("body2","Bold","","sip-amount__value",U(P?.topUpAmount))]}):e.jsxs(r,{item:!0,xs:12,sm:4,className:"amount-container pt-4 pt-sm-0",children:[e.jsx("div",{className:v({hidden:!Ye()||!O||n.length<=1}),children:O&&n.length>1?e.jsx(Js,{status:s?.TRANSACTION_STATUSES[n[F]?.dashboardStatus||n[F].paymentStatus]}):null}),e.jsxs("div",{className:"sip-amount",children:[T("body4","Reg","","label",s.SIP_INSTALMENT_AMOUNT),T("body2","Bold","","sip-amount__value",I(P?.amount))]})]})]}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},children:[e.jsxs(r,{item:!0,xs:6,sm:3,children:[T("body4","Reg","","label pb-1",s.FREQUENCY_LABEL),T("body2","Reg","","",s.FREQUENCY[P?.frequency]||s.NA)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[T("body4","Reg","","label pb-1",s.SIP_DAY_LABEL),T("body2","Reg","","",`${k()?"":`${de(P)}${H(P)}`} ${C(P?.frequency)}`||s.NA)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[T("body4","Reg","","label pb-1",s.START_DATE_LABEL),T("body2","Reg","","",he(P?.startDate)||s.NA),T("body4","Reg","","",q)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[T("body4","Reg","","label pb-1",K()),T("body2","Reg","","",Q(P))]})]}),P?.topUp&&e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},className:"mt-0 mb-0 mt-xs-6 mb-xs-6",children:[e.jsxs(r,{item:!0,xs:6,sm:3,children:[T("body4","Reg","","label pb-1",g(P?.topUp)),T("body2","Reg","","",X(P))]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[T("body4","Reg","","label pb-1",s.TOP_UP_FREQUENCY),T("body2","Reg","","",s.FREQUENCY[P?.topupFrequency]||s.NA)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[T("body4","Reg","","label pb-1",s.TOP_UP_CAP_AMOUNT),T("body2","Reg","","",ie(P?.topUpCapAmount))]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[T("body4","Reg","","label pb-1",s.TOP_UP_CAP_END_DATE),T("body2","Reg","","",P?.topUpCapEndDate?Qe(P?.topUpCapEndDate):s.NA)]})]})]},F)}),l?.investmentType===m.FREEDOM_SIP&&e.jsx(Ma,{transactionData:c,textConstants:s,isCancel:t}),l?.investmentType===m.BOOSTER_SIP&&e.jsx(Da,{transactionData:c,textConstants:s}),e.jsx("div",{className:v("total-amount",{"cancel-receipt":t,"total-amount__pause
2-receipt-total":w()&&E===Te.SIP_PAUSE,"total-amount__cancel-receipt-total":w()&&E===Te.SIP_CANCEL,"total-amount__sip-topup-total":w()&&E===Te.SIP_TOPUP,"total-amount__sip":l?.investmentType===m.SIP,"total-amount__pair-sip":G()}),children:e.jsxs(r,{container:!0,className:"align-center",children:[e.jsx(r,{xs:6,children:T(h?"h6":"body2","Bold","p","total-amount__heading",s.AMOUNT_LABEL)}),e.jsxs(r,{xs:6,className:"text-right",children:[e.jsx("span",{className:"rupee","aria-hidden":"true",children:D}),T("h6","Bold","p","total-amount__heading ml-1",`${L(Number(A()),M)}${s.RS_SUCCEDER}`||s.NA)]})]})}),w()&&E===Te.SIP_TOPUP&&e.jsxs(r,{container:!0,className:"existing-details",children:[e.jsx(r,{item:!0,xs:12,children:T("body1","Bold","","",s.EXISTING_SIP_DETAILS)}),e.jsx(r,{item:!0,xs:12,children:e.jsxs(r,{container:!0,xs:12,className:"mt-6",children:[e.jsxs(r,{item:!0,xs:6,sm:2,children:[T("body4","Reg","","",s.SIP_AMOUNT),T("body3","Bold","","mt-2",`${Ke.RS}${L(2e4,M)||s.NA} ${s.RS_SUCCEDER}`)]}),e.jsxs(r,{item:!0,xs:6,sm:2,children:[T("body4","Reg","","",s.SIP_DAY_LABEL),T("body3","Bold","","mt-2","1st of Month")]}),e.jsxs(r,{item:!0,xs:6,sm:2,className:v({"mt-4":!h}),children:[T("body4","Reg","","",s.FREQUENCY_LABEL),T("body3","Bold","","mt-2","Monthly")]}),e.jsxs(r,{item:!0,xs:6,sm:2,className:v({"mt-4":!h}),children:[T("body4","Reg","","",s.START_DATE_LABEL),T("body3","Bold","","mt-2","1st Jan 2022")]}),e.jsxs(r,{item:!0,xs:6,sm:2,className:v({"mt-4":!h}),children:[T("body4","Reg","","",s.END_DATE_LABEL),T("body3","Bold","","mt-2","1st Jan 2024")]}),e.jsxs(r,{item:!0,xs:6,sm:2,className:v({"mt-4":!h}),children:[T("body4","Reg","","",s.LAST_INSTALLMENT_LABEL),T("body3","Bold","","mt-2","10 of 24")]})]})})]})]})]})},Cs=({transactionData:c,textConstants:s})=>{const t=te(`(${le.MOBILE})`),d=c?.scheme?.[R],n=(l,A,C,T,G)=>e.jsx(a,{variant:l,styleType:A,className:T,component:C,children:G}),o=e.jsxs(r,{className:"sip-amount__amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),L(Number(c?.totalInvestment),M)||s.NA,s.RS_SUCCEDER]}),p=()=>!!(d?.linkedLumpsumTrxnRefNo&&d?.linkedLumpsumPaymentStatus===je.PAYMENT_SUCCESS),N=p()?e.jsx("div",{className:"debit-check instant-debit",children:e.jsx(er,{name:"instantDebit",disabled:!0,checked:p(),size:"small",label:n("body4","Reg","","",s.INSTANT_DEBIT),color:"default",className:v({"success-check":p()})})}):null,h=l=>l===Ie.PERCENTAGE?`${d?.topupModeValue}${s.PERCENTAGE}`:l===Ie.AMOUNT?e.jsxs(r,{className:"sip-amount__amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),d?.topupModeValue]}):s.NA,E=l=>l===Ie.PERCENTAGE?s.TOP_UP_VALUE_LABEL:l===Ie.AMOUNT?s.TOP_UP_AMOUNT:s.TOP_UP_VALUE_LABEL,i=e.jsxs(r,{className:"sip-amount__amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),d?.topUpCapAmount||s.NA]});return e.jsx(r,{container:!0,className:"pack-section",columnSpacing:{xs:1,sm:2,md:3},children:e.jsxs(r,{item:!0,xs:12,className:"p-0",children:[e.jsxs("div",{className:"pack-section__details pt-6 pl-4 pr-4 pb-6 pl-sm-6 pl-md-6 pr-md-6 mt-12",children:[e.jsxs(r,{container:!0,className:"title",children:[e.jsx(r,{item:!0,xs:12,sm:8,children:n(t?"body1":"body2","Bold","h2","",c?.solutionPackName||s.NA)}),e.jsxs(r,{item:!0,xs:12,sm:4,className:"sip-amount pt-4 pt-sm-0",children:[n("body4","Reg","","label",s.INVESTMENT_AMOUNT),n("body2","Bold","","sip-amount__value",o)]})]}),e.jsx(se,{className:"mt-4 mb-4"}),e.jsxs(r,{xs:12,sm:9,className:"funds mt-6 mb-8 p-6",children:[e.jsx(r,{item:!0,xs:12,children:n("body2","Bold","","",s.SOLUTION_PACKS_SCHEMES)}),e.jsx(se,{className:"mt-4 mb-4"}),e.jsxs(r,{container:!0,children:[e.jsx(r,{item:!0,xs:8,children:n("overline","Bold","","",s.SCHEME_NAME)}),e.jsx(r,{item:!0,xs:4,children:n("overline","Bold","","",s.SHARE)})]}),e.jsx(se,{className:"mt-4"}),c?.scheme?.map(l=>e.jsxs(r,{container:!0,className:"pt-4",children:[e.jsx(r,{item:!0,xs:8,children:n("body4","Reg","","",l?.schemeName||s.NA)}),e.jsx(r,{item:!0,xs:4,children:n("body4","Reg","","",`${l?.weightage}${s.PERCENTAGE}`||s.NA)}
2)]},l?.schemeCode))]}),d?.investmentType===m.SIP&&e.jsxs(e.Fragment,{children:[e.jsx(r,{xs:12,children:n("body2","Bold","","",s.INVESTMENT_DETAILS||s.NA)}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},children:[e.jsxs(r,{item:!0,xs:6,sm:3,children:[n("body4","Reg","","label pb-1",s.FREQUENCY_LABEL),n("body2","Reg","","",d?.frequency||s.NA)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[n("body4","Reg","","label pb-1",s.SIP_DAY_LABEL),n("body2","Reg","","",`${d?.debitDay}${Vs(Number(d?.debitDay))}`||s.NA)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[n("body4","Reg","","label pb-1",s.START_DATE_LABEL),n("body2","Reg","","",he(d?.startDate)||s.NA),n("body4","Reg","","",N)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[n("body4","Reg","","label pb-1",s.END_DATE_LABEL),n("body2","Reg","","",(Ge(d?.frequency)?he(d?.endDate):Qe(d?.endDate))||s.NA)]})]}),d?.topUp&&e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},className:"mt-xs-6 mb-xs-6 mt-sm-0 mb-sm-0",children:[e.jsxs(r,{item:!0,xs:6,sm:3,children:[n("body4","Reg","","label pb-1",E(d?.topUp)),n("body2","Reg","","",h(d?.topUp))]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[n("body4","Reg","","label pb-1",s.TOP_UP_FREQUENCY),n("body2","Reg","","",d?.topupFrequency||s.NA)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[n("body4","Reg","","label pb-1",s.TOP_UP_CAP_AMOUNT),n("body2","Reg","","",i)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[n("body4","Reg","","label pb-1",s.TOP_UP_CAP_END_DATE),n("body2","Reg","","",he(d?.topUpCapEndDate)||s.NA)]})]})]})]}),e.jsx("div",{className:"total-amount",children:e.jsxs(r,{container:!0,className:"align-center",children:[e.jsx(r,{xs:6,children:n(t?"h6":"body2","Bold","p","total-amount__heading",s.AMOUNT_LABEL)}),e.jsxs(r,{xs:6,className:"text-right",children:[e.jsx("span",{className:"rupee","aria-hidden":"true",children:D}),n("h6","Bold","p","total-amount__heading ml-1",`${L(Number(c?.totalInvestment),M)}${s.RS_SUCCEDER}`||s.NA)]})]})})]})})},Ba=({transactionData:c,textConstants:s})=>{const d=ee(A=>A?.commonField)?.transactionConfig,n=te(`(${le.MOBILE})`),o=c?.scheme?.[R],p=()=>!!o?.actionHistory?.actionType,N=e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),L(Number(o?.amount),M)||s.NA,s.RS_SUCCEDER]}),h=e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),L(Number(o?.multiplierAmount),M)||s.NA,s.RS_SUCCEDER,s.MULTIPLIER_VALUE.replace("%s",o?.multiplier)]}),E=()=>o?.installments?o?.installments:o?.targetAmount?e.jsxs(r,{className:"amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),L(Number(o?.targetAmount),M)||s.NA,s.RS_SUCCEDER]}):o?.endDate?Ge(o?.frequency)?he(o?.endDate):Qe(o?.endDate):s.NA,i=()=>o?.installments?s.NO_OF_INSTALMENTS:o?.targetAmount?s.TARGET_AMOUNT:(o?.endDate,s.END_DATE_LABEL),l=(A,C,T,G,V)=>e.jsx(a,{variant:A,styleType:C,className:G,component:T,children:V});return e.jsxs(r,{container:!0,className:"stp-section mt-4",columnSpacing:{xs:1,sm:2,md:3},children:[e.jsxs(r,{container:!0,className:"stp-schemes pl-2 pl-xs-4 pt-6 pb-6 pl-md-6",children:[e.jsxs(r,{item:!0,xs:12,sm:5.9,className:v("stp-out p-6 pl-md-6 pr-md-6 mb-4 mb-xs-4",{"cancel-scheme":p(),scheme:!p()}),children:[l(n?"body1":"body2","Bold","",p()?"pb-3 action-receipt-color":"pb-3",s.STP_OUT_SCHEME),e.jsx(se,{className:"mt-2 mb-2"}),l("body2","Reg","",p()?"pt-2 action-receipt-color":"pt-2",o?.sourceSchemeName||s.NA)]}),e.jsxs(r,{item:!0,xs:12,sm:5.9,className:v("p-6 pl-md-6 pr-md-6 ml-xs-0 mt-xs-0 mt-sm-0",{"cancel-scheme":p(),scheme:!p()}),children:[l(n?"body1":"body2","Bold","",p()?"pb-3 action-receipt-color":"pb-3",s.STP_IN_SCHEME),e.jsx(se,{className:"mt-2 mb-2"}),l("body2","Reg","",p()?"pt-2 action-receipt-color":"pt-2",o?.targetSchemeName||s.NA)]})]}),e.jsx(r,{item:!0,xs:12,className:" card-height p-0",children:e.jsxs("div",{className:v("stp-details pt-6 pl-4 pr-4 pb-6 pl-sm-6 pl-md-6 pr-md-6",{"stp-details__cancel-scheme-details":p(),"stp-details__scheme-details":!p()}),children:[e.jsx(r,{container:!0,className:"align-center",children:e.jsxs(r,{item:!0,xs:12,sm:8,children:[l(n?"body1":"body2","Bold","",p()?"action-receipt-color":"",s.INVESTMENT_DETAILS),p()&&l("body3","Bold","","action-receipt-note",s?.CANCEL_STP_DETAIL.replace("%s",d?.camsSipCancelBufferDay))]})}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},children:[e.jsxs(r,{item:!0,xs:12,sm:3,className:"stp-amount",children:[l("body4","Reg","","label pb-1",s.STP_AMOUNT),l("body2","Reg","","stp-amount__value",N)]}),e.jsxs(r,{item:!0,xs:12,sm:3,children:[l("body4","Reg","","label pb-1",s.FREQUENCY_LABEL),l("body2","Reg","","",o?.frequency||s.NA)]}),e.jsxs(r,{item:!0,xs:12,sm:3,children:[l("body4","Reg","","label pb-1",s.START_DATE_LABEL),l("body2","Reg","","",he(o?.startDate)||s.NA)]}),e.jsxs(r,{item:!0,xs:12,sm:3,children:[l("body4","Reg","","label pb-1",i()),l("body2","Reg","","",E())]}),o?.investmentType===m.BOOSTER_STP&&o?.multiplier&&o?.multiplierAmount&&e.jsxs(r,{item:!0,xs:12,sm:3,children:[l("body4","Reg","","label pb-1",s.AMOUNT_MULTIPLIER),l("body2","Reg","","stp-amount__value",h||s.NA)]})]}),p()?null:e.jsx(oe,{variant:"standard",severity:"info",className:"stp-note",message:s.STP_NOTE,showClose:!1})]})})]})},Ca=({transactionData:c,textConstants:s,isPreLoginDistributor:t=!1})=>{const{scheme:d}=c,n=d?.[R]?.sourceSchemeName,o=te(`(${le.MOBILE}
2)`),p=c?.scheme?.[R]?.investmentType,N=c?.scheme?.[R]?.switchRedeemType,h=c?.scheme?.[R]?.sourceSchemeName,E=c?.scheme?.[R]?.weightage,i=Ze(),l=()=>{let I=!1;return c?.scheme?.map(U=>{(!U?.amount||!U?.units)&&U?.weightage===100&&(I=!0)}),I},A=()=>{if(t)switch(p){case m?.TRIGGER_ON_MATURITY:case m?.CES_SWITCH:return!0;default:return!1}return!1},C=I=>e.jsxs(r,{className:"amount",children:[e.jsx("span",{className:"rupee pr-1","aria-hidden":"true",children:D}),L(Number(I),xe)||s.NA,s.RS_SUCCEDER]}),T=I=>I?.exitLoad&&I?.exitLoad!==Na.EXIT_LOAD?`${L(Number(I?.exitLoad),xe)}`:s.NA,G=I=>`${L(Number(I?.shortTermCapitalGain),M)}`,V=I=>`${L(Number(I?.longTermCapitalGain),M)}`,q=d?.reduce((I,U)=>I+U.units,0),X=d?.reduce((I,U)=>I+U?.amount,0),g=(I,U,H,de,j)=>e.jsx(a,{variant:I,styleType:U,className:de,component:H,children:j}),ie=()=>p!==m.TRIGGER_ON_MATURITY&&!(t&&p===m.CES_SWITCH),K=i?.state?.status,Q=h?.includes(_r),w=E===ps?.HUNDRED;let O=!1,k=!1;return p===m.SWITCH&&K===ds?.IN_PROCESS&&(N===He?.AMOUNT&&!w?O=!0:Q&&(w||N===He?.UNITS)?(k=!0,O=!0):!Q&&(w||N===He?.UNITS)&&(k=!0)),e.jsxs("div",{className:"switch-section",children:[e.jsxs("div",{className:"switch-card mt-12 pt-6 pl-4 pr-4 pb-8 pl-md-6 pr-md-6",children:[e.jsx(r,{container:!0,className:"align-center",children:e.jsx(r,{item:!0,xs:12,sm:8,children:g(o?"body1":"body2","Bold","","",s.SWITCH_OUT_SCHEME)})}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsx(r,{container:!0,children:e.jsx(r,{item:!0,xs:12,md:8,children:g("body2","Reg","","",n||s.NA)})}),e.jsxs(r,{container:!0,children:[e.jsxs(r,{item:!0,xs:6,sm:3,className:"pt-6",children:[e.jsxs(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:[s?.SWITCH_OUT_UNITS," ",O&&s?.APPROX]}),g("body2","Reg","","",A()||l()?s?.ALL_UNITS:Ar(Number(q),xe)?.toString()),O&&e.jsx(a,{variant:"label4",styleType:"Bold",component:"p",className:"pt-1",children:s?.ESTIMATED_BY_LAST_NAV})]}),p!==m.CES_SWITCH?e.jsxs(r,{item:!0,xs:6,sm:3,className:"pt-6",children:[e.jsxs(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:[s?.SWITCH_OUT_AMOUNT," ",k&&s?.APPROX]}),X&&C(X)||s?.NA]}):null,d?.map((I,U)=>e.jsx(r,{container:!0,xs:12,sm:6,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},className:"pt-6",children:p!==m.CES_SWITCH&&p!==m.TRIGGER_ON_MATURITY&&e.jsxs(e.Fragment,{children:[e.jsxs(r,{item:!0,xs:6,sm:4,children:[g("body4","Reg","","label",s.EXIT_LOAD),g("body2","Reg","","",T(I))]}),e.jsxs(r,{item:!0,xs:6,sm:4,children:[g("body4","Reg","","label",s.STCG),g("body2","Reg","","",G(I))]}),e.jsxs(r,{item:!0,xs:6,sm:4,children:[g("body4","Reg","","label",s.LTCG),g("body2","Reg","","",V(I))]})]})},U))]})]}),e.jsxs("div",{className:"switch-card mt-6 pt-6 pt-6 pl-4 pr-4 pb-8 pl-md-6 pr-md-6",children:[e.jsx(r,{container:!0,className:"align-center",children:e.jsx(r,{item:!0,xs:12,sm:8,children:g(o?"body1":"body2","Bold","","",s.SWITCH_IN_SCHEMES)})}),d?.map((I,U)=>e.jsxs("div",{children:[e.jsx(se,{className:"mt-6 mb-6"}),g("body2","Bold","","mb-4",I?.targetSchemeName),e.jsx(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},children:ie()?e.jsxs(e.Fragment,{children:[K===ds?.SUCCESSFUL&&e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.SWITCH_IN_UNITS}),g("body2","Reg","",I?.unitsTarget?s?.UNITS:"",I?.unitsTarget)]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsxs(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:[s.SWITCH_AMOUNT," ",k&&s.APPROX]}),g("body2","Reg","p",I?.amount?"amount":"",l()?s.ALL_AMOUNT:C(I?.amountTarget)),k&&e.jsx(a,{variant:"label4",styleType:"Bold",component:"p",className:"pt-1",children:s?.ESTIMATED_BY_LAST_NAV})]})]}):null})]},U)),p===m.CES_SWITCH||p===m.TRIGGER_ON_MATURITY&&e.jsx(oe,{variant:"standard",severity:"info",className:"exit-load-note",message:s.EXIT_LOAD_NOTE,showClose:!1})]})]})},wa=({transactionData:c,textConstants:s,isCancel:t})=>{const d=ee(p=>p.commonField.globalConstants),n=te(`(${le.MOBILE})`),o=c?.scheme?.[0];return e.jsx("div",{className:v("redeem-section",{"cancel-receipt":t}),children:e.jsxs("div",{className:"pt-6 pl-4 pr-4 pb-8 pl-md-6 pr-md-6",children:[e.jsxs(r,{container:!0,className:"align-center",children:[e.jsx(r,{item:!0,xs:12,sm:8,md:8,children:e.jsx(a,{variant:n?"body1":"body2",styleType:"Bold",component:"h2",className:v({"cancel-receipt__heading":t}),children:o?.schemeName||s.NA})}),e.jsxs(r,{item:!0,xs:12,sm:4,md:4,className:"redeem-amount pt-4 pt-sm-0",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:v("label ",{"cancel-receipt__heading":t}),children:s.SWP_INSTALLMENT_AMOUNT}),e.jsxs(a,{variant:"body2",styleType:"Bold",className:v("redeem-amount__value pt-1 ",{"cancel-receipt__heading":t}),children:[e.jsx("span",{className:v("rupee",{"cancel-receipt":t}),"aria-hidden":"true",children:D}),L(Number(o?.swpAmount),M)||s.NA,s.RS_SUCCEDER]})]})]}),e.jsx(se,{className:"mt-6 mb-6"}),e.jsxs(r,{container:!0,rowSpacing:3,columnSpacing:{xs:1,sm:2,md:3},children:[e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.FREQUENCY_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",className:t?"label":"",children:s.FREQUENCY[o?.frequency]||s.NA})]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.START_DATE_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",className:t?"label":"",children:B(o?.startDate)?.isValid()?B(o?.startDate).format(d?.DATE_CONSTANT?.AS_ON_DATE_FORMAT||Ee.AS_ON_DATE_FORMAT):s.NA})]}),e.jsxs(r,{item:!0,xs:6,sm:3,children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",children:s.END_DATE_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",className:t?"label":"",children:(Ge(
2o?.frequency)?he(o?.endDate):Fs(o?.endDate))||s.NA})]})]}),e.jsx(oe,{variant:"standard",severity:"info",className:"swp-note",message:s.EXIT_LOAD_NOTE,showClose:!1})]})})};var Fa={};const ws=({isLoading:c,transactionData:s,textConstants:t,onClickRetryPayment:d,getPaymentStatus:n,updatedPaymentStatus:o,showfailedReceipt:p,errorResponse:N,routeConstants:h,isDistributor:E=!1,folioData:i,isPreLogin:l=!1,isPreLoginDistributor:A=!1,isCartTrxn:C=!1,cartTransactionData:T,isFromTransactionHistory:G=!1})=>{B.extend(aa),B.extend(ta);const V=te(`(${le.MOBILE})`),q=qs(),X=Xs(),g=Ze(),ie=new URLSearchParams(g?.search),K=Object.fromEntries(ie?.entries()),Q=!!g?.state?.isCancel,w=ee(f=>f?.commonField?.globalConstants),[O,k]=b.useState(""),[I,U]=b.useState(!1),[H,de]=b.useState(!1),j=s?.scheme?.[R],[_,F]=b.useState(!1),{isHdfcUser:P}=ee(f=>f.hdfcUser),y=g?.state?.isCesOrUnclaimedRedeem,S=ee(Rr),[$,z]=b.useState(!1),Z=S?.refNo,Re=ee(Ks)===zs,_e=b.useRef(!1),be=b.useRef(!1),me=E&&!Ye(),Ce=sessionStorage.getItem("camsFolioNumber"),pe=s?.folioNo||Ce,Pe=()=>s?.solutionPackId?t.SOLUTION_PACKS_RECEIPT_HEADING:j?.topUp?t.SIP_WITH_TOP_UP_RECEIPT_HEADING:t.SIP_RECEIPT_HEADING,Y=g?.state?.openMfdCompletionFlow?"Complete Transaction by entering Investor's Reference no":"Send Link to Investor",u=()=>s?.solutionPackId?t.SOLUTION_PACKS_RECEIPT_HEADING:Fa.REACT_APP_COMBO_TN_FEATURE_FLAG&&!C&&!Re?t.PURCHASE_WITH_SWITCH_RECEIPT_HEADING:t.LUMPSUM_RECEIPT_HEADING,x=()=>{F(!0)},W=()=>{F(!1)},J=()=>{F(!0)},ne=()=>{F(!1)},Oe=f=>{f.key==="Escape"&&F(!1)};b.useEffect(()=>{g?.state?.autoOpenRetryPaymentPopup&&de(!0)},[g?.state]),b.useEffect(()=>{if(!_)return;const f=re=>{re.key==="Escape"&&F(!1)};return window.addEventListener("keydown",f),()=>{window.removeEventListener("keydown",f)}},[_]);const we=f=>{switch(f?.toLowerCase()){case m.REDEEM.toLowerCase():return j?.isInstantRedeem?e.jsx(La,{textConstants:t,transactionData:s,updatedPaymentStatus:o,showfailedReceipt:p}):e.jsx(Bs,{textConstants:t,transactionData:s,isPreLoginDistributor:A,isCesOrUnclaimedRedeem:y,updatedPaymentStatus:o,showfailedReceipt:p});case m.CES_REDEEM.toLowerCase():return e.jsx(Bs,{textConstants:t,transactionData:s,isPreLoginDistributor:A,isCesOrUnclaimedRedeem:y});case m.SWP.toLowerCase():return e.jsx(wa,{textConstants:t,transactionData:s,isCancel:Q});case m.REDEEM_FREEDOM_SWP.toLowerCase():return e.jsx(xa,{textConstants:t,transactionData:s,isCancel:Q});case m.ROLLOVER.toLowerCase():return e.jsx(Pa,{textConstants:t,transactionData:s,isPreLoginDistributor:A});case m.LUMPSUM.toLowerCase():return s?.solutionPackId?e.jsx(Cs,{textConstants:t,transactionData:s}):e.jsx(va,{textConstants:t,transactionData:s,isLumpsumCartTrxn:C,cartTransactionData:T});case m.FREEDOM_SIP.toLowerCase():case m.BOOSTER_SIP.toLowerCase():case m.SIP.toLowerCase():return s?.solutionPackId?e.jsx(Cs,{textConstants:t,transactionData:s}):e.jsx(Ua,{textConstants:t,transactionData:s,isCancel:Q,isCartTrxn:C,cartTransactionData:T});case m.STP.toLowerCase():case m.FLEX_STP.toLowerCase():case m.BOOSTER_STP.toLowerCase():return e.jsx(Ba,{textConstants:t,transactionData:s});case m.SWITCH.toLowerCase():case m.CES_SWITCH.toLowerCase():case m.TRIGGER_ON_MATURITY.toLowerCase():return e.jsx(Ca,{textConstants:t,transactionData:s,isPreLoginDistributor:A})}},Je=f=>{const re=j?.actionHistory?.actionType;if(re)return t.ACTION_CONTENT_HEADING[f?.toUpperCase()][re]||t.ACTION_CONTENT_HEADING[re];switch(f?.toLowerCase()){case m.REDEEM.toLowerCase():return t.RECEIPT_HEADING;case m.SWP.toLowerCase():return t.SWP_RECEIPT_HEADING;case m.ROLLOVER.toLowerCase():return t.ROLLOVER;case m.REDEEM_FREEDOM_SWP.toLowerCase():return t.FREEDOM_RECEIPT_HEADING;case m.LUMPSUM.toLowerCase():return u();case m.CES_REDEEM.toLowerCase():return t.CES_REDEEM_HEADING;case m.FREEDOM_SIP.toLowerCase():return t.FREEDOM_SIP_RECEIPT_HEADING;case m.BOOSTER_SIP.toLowerCase():return t.BOOSTER_SIP_RECEIPT_HEADING;case m.SIP.toLowerCase():return Pe();case m.STP.toLowerCase():return t.STP_HEADING;case m.FLEX_STP.toLowerCase():return t.FLEX_STP_HEADING;case m.BOOSTER_STP.toLowerCase():return t.BOOSTER_STP_HEADING;case m.SWITCH.toLowerCase():return t.SWITCH_RECEIPT_HEADING;case m.CES_SWITCH.toLowerCase():return t.CES_SWITCH_HEADING;case m.TRIGGER_ON_MATURITY.toLowerCase():return t.TRIGGER_ON_MATURITY}},De=()=>{n(s?.paymentRefNo?.toString())};b.useEffect(()=>{o?.length&&ss()},[o]);const sr=f=>j?.investmentType!==m.LUMPSUM&&f===ua.UPI?t.PAYMENT_MODE?.UPI_MANDATE:t.PAYMENT_MODE[f],rr=()=>{q.push(`${h?.MUTUAL_FUND}`)},Ts=b.useCallback(()=>{const re=(C&&T?.length?T:[s]).flatMap(Ve=>(Ve?.details||Ve?.scheme||[]).map(as=>
2as.schemeName).filter(Boolean)),ye=j?.investmentType||"",$e=(ye||"").toUpperCase(),We=$e===m.REDEEM||$e===m.CES_REDEEM;return{step:`${ze(ye).replace(/ /g,"_")}_Receipt`,transaction_type:ze(ye),Transaction_category:We?"Redeem":ca(ye),Client:s?.primaryPanHolderName||s?.name||"",folio:s?.folioNo||s?.folioNumber||"",scheme_names:re,error_message:"",Transaction_ID:K?.refNo?`${C?"cartRefNo":"transactionRefNo"} ${K?.refNo}`:s?.trxnRefNo||"",Transaction_Source:g?.state?.featureSource||sessionStorage.getItem("featureSource")||"","Completion Method":Y}},[T,C,g?.state,K?.refNo,s,j?.investmentType,g?.state]),Me=b.useCallback(f=>{me&&ia({...Ts(),...f})},[Ts,me]),es=()=>{me&&(_e.current=!0,Me({receipt:!0,go_to_dashboard:!0})),P&&Yr(),l?q.push({pathname:h?.LOGIN,state:{pageClickedFrom:g.pathname}}):q.push(h?.DASHBOARD)},ss=b.useCallback(()=>U(f=>!f),[]),rs=b.useCallback(()=>{de(!0),U(!1)},[]),ar=b.useCallback(()=>{de(!1)},[]);b.useEffect(()=>{s?.tinyUrl&&k(s?.tinyUrl)},[s]),b.useEffect(()=>{_e.current=!1,be.current=!1},[K?.refNo]),b.useEffect(()=>{!me||!Object.keys(s||{}).length||be.current||(Me({receipt:!0,Copy_URL:!1}),be.current=!0,_e.current=!0)},[me,Me,s]),b.useEffect(()=>{if(!me||!Object.keys(s||{}).length)return;const f=window.setTimeout(()=>{_e.current||Me({receipt:!0,idle_timeout:!0})},12e4);return()=>{window.clearTimeout(f)}},[me,Me,s]),b.useEffect(()=>{Object.keys(s||{})?.length&&j&&!g?.state?.fromViewDetails&&Es(gs?.TRANSACTION_REQUESTED,Ss?.SUCCESSFUL)},[s]),b.useEffect(()=>{N?.isError&&Es(gs?.TRANSACTION_REQUESTED,Ss?.FAILED)},[N]);const tr=f=>{switch(f?.toLowerCase()){case m.SWP?.toLowerCase():return j?.swpAmount;case m.REDEEM_FREEDOM_SWP?.toLowerCase():return j?.registrationAmount;case m.SWITCH.toLowerCase():case m.CES_SWITCH.toLowerCase():return L(s?.scheme?.reduce((re,ye)=>re+ye?.amount,0),xe);case m.LUMPSUM?.toLowerCase():case m.SIP?.toLowerCase():{const ye=Array.isArray(T)&&T.length>0?T.reduce(($e,We)=>{const As=Array.isArray(We.scheme)?We.scheme.reduce((Ve,as)=>Ve+Number(as?.amount||0),0):0;return $e+As},0):j?.amount||0;return new Intl.NumberFormat("en-IN").format(ye)}default:return j?.amount}},lr=()=>{if(A){if(y)return!0;switch(j?.investmentType){case m.UNCLAIMED:case m.CES_REDEEM:case m.TRIGGER_ON_MATURITY:case m.ROLLOVER:case m.CES_SWITCH:return!0;default:return!1}}return!1}
2,ys=!!g?.state?.openMfdCompletionFlow&&[m.LUMPSUM,m.SIP,m.SWITCH,m.CES_SWITCH,m.REDEEM,m.CES_REDEEM].includes((j?.investmentType||"").toUpperCase()),nr=G&&[m.LUMPSUM,m.SIP,m.SWITCH,m.CES_SWITCH,m.REDEEM,m.CES_REDEEM].includes((j?.investmentType||"").toUpperCase()),ir=E&&(ys||nr||!!G),cr=()=>{let f=!1;return s?.scheme?.map(re=>{re?.isAllUnits&&(f=!0),(!re?.amount||!re?.units)&&re?.weightage===100&&(f=!0)}),f},or=()=>lr()||cr()?`${t.TRANSACTION_REQUEST3.replace("%s",j?.investmentType?.replaceAll("_"," "))}`:`${t.TRANSACTION_REQUEST1.replace("%s",j?.investmentType?.replaceAll("_"," "))} 3 ${t.TRANSACTION_REQUEST2.replace("%s",tr(j?.investmentType))}`,Es=(f,re)=>{if(E||A){const ye={investor_type:Mr?.DISTRIBUTOR?.TEXT,journey:Dr.NEW_TRANSACTION,step:`${vr.FIVE} | ${Pr?.TRANSACTION_REQUEST_CONFIRMATION}`,broker_code:s?.brokerCode,distributor_type:g?.state?.distributorType?gr(g?.state?.distributorType):jr.MFD.toLocaleLowerCase(),login_status:Sr(),transaction_type:br(j?.investmentType),investment_type:j?.investmentType?.toLowerCase(),request_status:re,folio_no:Z??"",transaction_id:s?.multiTransactionId||null};X(Ir({})),xr(f,ye)}},hs=()=>{if(N?.isError&&N?.errorMessage)return e.jsx(oe,{severity:"error",message:N?.errorMessage,className:"mt-8 alert"});if(g?.state?.showSuccessAlert&&E)return e.jsx(oe,{severity:"success",message:ys?ce?.MFD_PROCESS:or(),className:"alert-message mt-4"});if(s?.paymentStatus===je.PAYMENT_SUCCESS||E&&(Q||K?.actionRefNo))return e.jsx(oe,{severity:"success",message:t.TRANSACTION_STATUS,className:"alert-message"});if(o===Ne.PENDING)return e.jsx(is,{severity:"error",title:ce?.YOUR_PAYMENT_STATUS_STILL_AWAITED,message:ce?.YOUR_PAYMENT_AWAITED_MESSAGE,primaryButton:ce?.YOUR_PAYMENT_AWAITED_BUTTON,checkPaymentStatus:es,className:"mt-8",icon:ns});if(p===Ns?.STRING_TRUE||s?.paymentStatus===je.PAYMENT_FAILED||o===Ne.FAILED)return e.jsx(is,{severity:"error",title:Xe(j?.investmentType)?ce?.YOUR_PAYMENT_FAILED:ce?.YOUR_TRANSACTION_FAILED,message:Xe(j?.investmentType)?ce?.YOUR_PAYMENT_FAILED_MESSAGE:ce?.YOUR_TRANSACTION_FAILED_MESSAGE,primaryButton:Xe(j?.investmentType)?ce?.TRY_AGAIN:ce?.YOUR_PAYMENT_AWAITED_BUTTON,checkPaymentStatus:Xe(j?.investmentType)?rs:es,className:"mt-8 alert-failed",icon:ns});if(s?.paymentStatus===je.PAYMENT_CREATED){if(P)return e.jsxs(e.Fragment,{children:[e.jsx(oe,{severity:"success",message:t.TRANSACTION_COMPLETED,className:"alert-message"}),e.jsx(oe,{severity:"warning",title:t.PAMENT_PENDING_FOR_CHEQUE,message:t.PAMENT_PENDING_DESCRIPTION,className:"alert-cheque-pending mt-4"})]});if(!E)return e.jsx(is,{severity:"error",title:ce?.YOUR_PAYMENT_STATUS,message:ce?.HAS_YOUR_PAYMENT_DEBIT.replace("%s",`${Ur(s?.totalInvestment?.toString())}`),primaryButton:ce?.YES_CHECK_PAYMENT_STATUS,checkPaymentStatus:De,secondaryButton:ce?.NO_RETRY_PAYMENT,onClickPayment:rs,className:"mt-8",icon:ns})}else if(!E)return e.jsx(oe,{severity:"success",message:t.TRANSACTION_STATUS,className:"alert-message mt-4"})},dr=()=>{if(Re)return t.RM_RECEIPT_CONTENT;const f=j?.actionHistory?.actionType;return f?t.RECEIPT_ACTION_CONTENT[j?.investmentType?.toUpperCase()][f]||t.RECEIPT_ACTION_CONTENT[f]:t.RECEIPT_CONTENT},mr=()=>{if(navigator.clipboard.writeText(O||Ta).then(()=>{z(!0)}),setTimeout(()=>{z(!1)},3e3),me&&(_e.current=!0,Me({receipt:!0,Copy_URL:!0})),Re&&!Fe()){X(Cr()),X(wr()),X(Fr("")),X(kr("")),X(Hr(""));try{localStorage.clear(),sessionStorage.clear(),localStorage.removeItem("persist:crypto"),localStorage.removeItem("persist:root"),sessionStorage.removeItem("persist:crypto"),sessionStorage.removeItem("persist:root")}catch{}}},_s=()=>j?.actionHistory?j?.actionHistory?.requestDate:s?.camsTransactionDate?s?.camsTransactionDate:E&&s?.updatedDate?s?.updatedDate:!1,pr=()=>s?.phoneNumber?`+${s?.countryPhoneCode}-${A?Br(s?.phoneNumber):s?.phoneNumber}`:t.NA,Nr=()=>s?.euinChecked?t?.EXECUTION_ONLY:s?.brokerEuin?s?.brokerEuin:t?.NA;return b.useEffect(()=>Qs(0),[]),b.useEffect(()=>{Ye()&&Object.keys(j||{})?.length&&Or(j?.investmentType)&&(j?.investmentType===m.LUMPSUM?Rs({meta:Ue.META.FINAL_TRANSACTION_LUMPSUM,snap:Ue.SNAPTR.FINAL_TRANSACTION_LUMPSUM,linkedIn:Ue.LINKEDIN.FINAL_TRANSACTION_LUMPSUM}):Rs({meta:Ue.META.FINAL_TRANSACTION_SIP,snap:Ue.SNAPTR.FINAL_TRANSACTION_SIP,linkedIn:Ue.LINKEDIN.FINAL_TRANSACTION_SIP}))},[j]),e.jsxs("div",{className:"transaction-receipt",children:[e.jsxs(fr,{className:"container",children:[e.jsx("h1",{className:"sr-only",children:"Transaction Receipt"}),K?.goBack&&e.jsx(Hs,{}),c?null:hs(),e.jsx(a,{variant:"h5",styleType:"Bold",component:"h2",className:v({"mt-8 mt-sm-12 mb-2":!!hs()}),children:Je(j?.investmentType)}),e.jsx(a,{variant:"body3",styleType:"Reg",className:"mt-2",children:dr()}),j?.linkedLumpsumTrxnRefNo&&j?.linkedLumpsumPaymentStatus===je.PAYMENT_FAILED&&e.jsx(a,{variant:"body3",styleType:"Bold",className:"mt-4",children:t.INSTANT_FAILED}),e.jsx(se,{className:"mt-6 mb-6"}
3),e.jsxs("dl",{className:"transaction-details-list",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.HOLDER}),e.jsx(a,{variant:"body2",styleType:"Reg",className:"description text-truncat",component:"dd",children:s?.name||t.NA}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.FOLIO_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",component:"dd",className:"description",children:pe||t.NA}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.TRANSACTION_ID_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",component:"dd",className:"description",children:s?.multiTransactionId||t.NA}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.TRANSACTION_SCHEDULE}),e.jsx(a,{variant:"body2",styleType:"Reg",component:"dd",className:"description",children:_s()?Lr(_s(),w?.DATE_CONSTANT?.STANDARD_FORMAT_TIME||Ee.STANDARD_FORMAT_TIME):t.NA}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.PHONE_NUMBER_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",component:"dd",className:"description",children:pr()}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.EMAIL}),e.jsxs("dd",{className:"email-tooltip-wrapper description ml-0",onMouseEnter:x,onMouseLeave:W,onFocus:J,onBlur:ne,onKeyDown:Oe,tabIndex:s?.email?0:-1,children:[e.jsx(a,{variant:"body2",styleType:"Reg",className:"text-truncat",component:"span",children:A?bs(s?.email)||t.NA:s?.email||t.NA}),s?.email&&e.jsx("span",{className:v("tooltip-email",{show:_}),children:A?bs(s?.email)||t.NA:s?.email||t.NA})]}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.BANK_ACCOUNT}),e.jsx(a,{variant:"body2",styleType:"Reg",component:"dd",className:"description",children:s?.bankAccountNumber||t.NA}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.PAYMENT_METHOD_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",component:"dd",className:"description",children:s?.paymentMode?sr(s?.paymentMode):t.NA})]}),we(j?.investmentType),s?.brokerCode?e.jsxs("div",{children:[e.jsx(a,{variant:"body1",styleType:"Bold",className:"mt-12 mt-md-16 mb-4",children:t.BROKER_DETAILS}),e.jsxs("dl",{className:"transaction-details-list",children:[e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.BROKER_CODE_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",component:"dd",className:"description",children:s?.brokerCode||t.NA}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.BROKER_ARN}),e.jsx(a,{variant:"body2",styleType:"Reg",component:"dd",className:"description",children:s?.subBrokerCode||t.NA}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.SUB_BROKER_ALLOTED}),e.jsx(a,{variant:"body2",styleType:"Reg",component:"dd",className:"description",children:s?.subBrokerArn||t.NA}),e.jsx(a,{variant:"body4",styleType:"Reg",className:"label pb-1",component:"dt",children:t.EUIN_LABEL}),e.jsx(a,{variant:"body2",styleType:"Reg",component:"dd",className:"description",children:Nr()})]})]}):null,i?.folioRegistrationDetails?e.jsx("div",{children:e.jsx(Ia,{details:i,textConstants:t.FOLIO_REVIEW_INFO_PAGE})}):null,e.jsxs(r,{container:!0,className:"bottom-bar mt-12 mt-md-16",children:[E&&!ir&&e.jsx(Be,{variant:"outlined",fullWidth:!V,size:"large",onClick:mr,children:t.COPY_URL}),e.jsxs(r,{item:!0,xs:12,sm:E?9:12,className:"button-section",children:[e.jsx(Be,{name:t.EXPLORE_FUND_BTN,variant:"outlined",fullWidth:!V,size:"large",className:"explore-fund mr-xs-6",onClick:rr,children:t.EXPLORE_FUND_BTN}),e.jsx(Be,{name:t.GO_TO_ACCOUNT_BTN,variant:"contained",fullWidth:!V,size:"large",className:"go-account",onClick:es,children:t.GO_TO_ACCOUNT_BTN})]})]}),$&&e.jsx(a,{variant:"body2",styleType:"Bold",className:"link-copied-success-text mt-6",align:"center",children:t.LINK_COPIED})]}),e.jsx(os,{isOpen:I,onClose:ss,children:e.jsx(la,{status:o,onClickRetryPaymentToggle:rs,statusModalToggle:ss})}),e.jsx(os,{isOpen:H,onClose:ar,children:e.jsx(na,{onClickRetryPayment:d})})]})},Rt=()=>{const c=ee(Gr),[s,t]=b.useState({folioRefNo:""}),[d,n]=b.useState({}),[o,p]=b.useState([]),[N,h]=b.useState(null),E=Ze(),i=Xs(),l=qs(),{trackTransactionCompletion:A}=$r(),T=ee(Wr)?.transactionLead?.isPanFirstTransaction??!1,G=new URLSearchParams(E.search),V=Object.fromEntries(G.entries()),q=V?.refNo,X=V?.actionRefNo,g=V?.showfailedReceipt,ie=V?.isInstallment||"",K=!!V?.isCart,[Q,w]=b.useState({}),O=()=>E?.state?.isCartTrxn||K||!1,k=ee(Vr),U=ee(Ks)===zs,H=ee(qr),de=b.useRef(!1),[j,_]=b.useState({isError:!1,errorCode:"",errorMessage:""}),[F,P]=b.useState({isError:!1,errorCode:"",errorMessage:""}),y=()=>{P({isError:!1,errorCode:"",errorMessage:""})},S=()=>E?.pathname===Ae.PRE_LOGIN_TRANSACTION_RECEIPT,$=S()&&!k,z=b.useCallback((Y,u)=>{!$||de.current||(de.current=!0,Xr(Y,u))},[$]);b.useEffect(()=>{de.current=!1},[q,X,ie,K,E?.pathname]);const Z=ee(Y=>Kr(Y,S()?Ae?.PRE_LOGIN_TRANSACTION_RECEIPT:Ae?.TRANSACTION_RECEIPT)),{isFetching:ve}
3=js("getTransactionDetails",()=>Jr({...O()?{cartRefNo:q}:{trxnRefNo:q},actionRefNo:X}),{enabled:U,onSuccess:Y=>{if(Y){const u=Y?.data?.success?.data;O()?O()&&(t(u?.[R]),p(u)):t(u),c&&c?.leadId&&Is(c)}},onError:Y=>{const u=Y?.response?.data?.error;_({isError:!0,errorCode:u?.errorCode,errorMessage:ge[u?.errorCode]||u?.message||ge.SOMETHING_WRONG}),t({folioRefNo:""}),p([])}}),{refetch:Re,isLoading:_e}=js("getTransactionDetails",()=>ea({...O()?{cartRefNo:q}:{trxnRefNo:q},actionRefNo:X,installment:ie},S(),O()),{onSuccess:Y=>{if(Y){const{data:u}=Y?.data?.success;if(O()){if(O()&&(n(u?.[R]),p(u),u?.reduce((x,W)=>x+(W?.scheme?.[R]?.amount||0),0),u?.[R]?.trxnRefNo&&(Os({transaction_id:u?.[R]?.trxnRefNo,payment_status:u?.[R]?.status,count_of_schemes:u?.length||0,transaction_type:ze(u?.[R]?.scheme?.[R]?.investmentType||""),payment_mode:fs(u?.[R]?.paymentMode||""),folio:u?.[R]?.folioRefNo||null}),(u?.[R]?.status===Ne?.SUCCESS||u?.[R]?.status===Ne?.FAILED)&&u.forEach(x=>{const W=x?.scheme?.[R],ne=(W?.investmentType||"")?.toUpperCase().includes("SIP")?"SIP":"LUMPSUM";A({transactionType:ne,isPanFirstTransaction:T,transactionStatus:x?.status,paymentMode:x?.paymentMode,...ne==="SIP"&&{sipAmount:W?.amount,frequency:W?.frequency},...ne==="LUMPSUM"&&{amount:W?.amount},schemeName:W?.schemeName,schemeCode:W?.schemeCode,folioNo:x?.folioRefNo,orderId:x?.trxnRefNo})})),$)){const x=H?.transaction?.transactionType||(u?.[R]?.scheme?.[R]?.investmentType?.toUpperCase().includes("SWITCH")?"SWITCH":"REDEEM"),W=String(x).toUpperCase(),J=W!=="SIP"&&W!=="LUMPSUM",ne=u?.reduce((Oe,we)=>Oe+(we?.scheme?.[R]?.amount||0),0);J&&z(ts(x),{Step:ls.POST_LINK_TRANSACTION.STEP.RECEIPT,Request_Type:x,DOB_Verified:!0,Count_of_schemes:u?.length||1,amount:ne,folio:u?.[R]?.folioRefNo||"",TnC_checkbox:!0,Receipt:!0,error_message:"",Transaction_ID:H?.cartRefNo?`cartRefNo ${H.cartRefNo}`:u?.[R]?.trxnRefNo?`transactionRefNo ${u[R].trxnRefNo}`:"",Transaction_Source:H?.featureSource||""})}}else{if(n(u),u?.trxnRefNo&&u?.status&&(Os({transaction_id:u.trxnRefNo,payment_status:u.status,amount:u?.scheme?.[R]?.amount||0,transaction_type:ze(u?.scheme?.[R]?.investmentType||""),payment_mode:fs(u?.paymentMode||""),folio:u?.folioRefNo||null}),u?.status===Ne.SUCCESS||u?.status===Ne.FAILED)){const x=u?.scheme?.[R],J=(x?.investmentType||"")?.toUpperCase().includes("SIP")?"SIP":"LUMPSUM";A({transactionType:J,isPanFirstTransaction:T,transactionStatus:u?.status,paymentMode:u?.paymentMode,...J==="SIP"&&{sipAmount:x?.amount,frequency:x?.frequency},...J==="LUMPSUM"&&{amount:x?.amount},schemeName:x?.schemeName,schemeCode:x?.schemeCode,folioNo:u?.folioRefNo,orderId:u?.trxnRefNo})}if($){const x=H?.transaction?.transactionType||(u?.scheme?.[R]?.investmentType?.toUpperCase().includes("SWITCH")?"SWITCH":"REDEEM"),W=x?.toUpperCase().includes("REDEEM")?"Redeem":x?.toUpperCase().includes("SWITCH")?"Switch":"Invest",J=(u?.scheme||[]).map(Oe=>Oe?.schemeName).filter(Boolean),ne=ts(x);z(ne,{Step:ls.POST_LINK_TRANSACTION.STEP.RECEIPT,Request_Type:x,Transaction_category:W,DOB_Verified:!0,Client:u?.scheme?.[R]?.accountHolderName||u?.primaryPanHolderName||"",folio:u?.folioRefNo||"",scheme_Names:J,Count_of_schemes:1,amount:u?.scheme?.[R]?.amount||0,TnC_checkbox:!0,Receipt:!0,error_message:"",Transaction_ID:H?.cartRefNo?`cartRefNo ${H.cartRefNo}`:u?.trxnRefNo?`transactionRefNo ${u.trxnRefNo}`:"",Transaction_Source:H?.featureSource||""})}}c&&c?.leadId&&Is(c)}},onError:Y=>{const u=Y?.response?.data?.error,x=ge[u?.errorCode]||u?.message||ge.SOMETHING_WRONG;if(_({isError:!0,errorCode:u?.errorCode,errorMessage:x}),n({}),p([]),$){const W=H?.transaction?.transactionType||"REDEEM",J=String(W).toUpperCase();J!=="SIP"&&J!=="LUMPSUM"&&z(ts(W),{Step:ls.POST_LINK_TRANSACTION.STEP.RECEIPT,Request_Type:W,DOB_Verified:!0,Count_of_schemes:O()?0:1,amount:0,folio:"",TnC_checkbox:!0,Receipt:!1,error_message:x,Transaction_ID:H?.cartRefNo?`cartRefNo ${H.cartRefNo}`:q?`transactionRefNo ${q}`:"",Transaction_Source:H?.featureSource||""})}}}),be=b.useCallback(()=>{i(Qr(!1))},[i]),me=()=>{be();const Y=E?.state||{},u=String(d?.paymentMode||"").trim(),x=String(o?.[R]?.paymentMode||"").trim(),W=Ra(Y?.retryPaymentMethod||d?.paymentStatus||u||x||""),J=String(Y?.paymentFailureReason||d?.scheme?.[R]?.actionHistory?.rejectionReason||o?.[R]?.scheme?.[R]?.actionHistory?.rejectionReason||"").trim(),ne=`${S()?Ae.PRE_LOGIN_TRANSACTION_RECEIPT:Ae.TRANSACTION_RECEIPT}${zr.REF_NO}${d?.trxnRefNo}`;i(Zr({type:d?.scheme?.[R].investmentType,transactionRef:d?.trxnRefNo})),S()?l.push({pathname:Ae.PRE_LOGIN_TRANSACTION,state:{prevPath:ne,defaultPan:d?.primaryPan,defaultFolio:d?.folioRefNo,defaultTransactionType:d?.scheme?.[R].investmentType,isCompletePurchase:!0,redirectToOtp:!0,isOtpAuthenticated:!0,mobileNo:d?.phoneNumber,email:d?.email,trxnRefNo:d?.trxnRefNo,isRetryPaymentFlow:!0,retryPaymentMethod:W,paymentFailureReason:J}}):l.push({pathname:Ae.TRANSACTION,state:{prevPath:ne,defaultPan:d?.primaryPan,defaultFolio:d?.folioRefNo,defaultTransactionType:d?.scheme?.[R].investmentType,isCompletePurchase:!0,redirectToOtp:!0,cartRefNo:O()&&o?.[R]?.cartRefNo||""}})},{mutate:Ce,isLoading:pe}=Ys(ba,{onSuccess:Y=>{const x=Y?.data?.success?.data?.status;switch(y(),x){case Ne.SUCCESS:return Re();case Ne.PENDING:return h(Ne.PENDING);case Ne.FAILED:return h(x),be();default:return}},onError:Y=>{const u=Y?.response?.data?.error;h(null),P({isError:!0,errorCode:u?.errorCode,errorMessage:ge[u?.errorCode]||u?.message||ge["CHECK-STATUS-504"]}),Qs(0)}}),Pe=()=>_e||ve||pe;return e.jsxs(e.Fragment,{children:[e.jsx(ra,{...Z}),Pe()&&e.jsx(Gs,{}),F?.isError?e.jsx(oe,{message:F?.errorMessage,severity:"error",className:"error-alert",hideAlertWithTimer:!0,icon:e.jsx(sa,{name:"Error"}),manuallyCloseAlert:!0,handleClose:y}):null,!U&&e.jsx(ws,{transactionData:d,textConstants:Ms,onClickRetryPayment:me,getPaymentStatus:Ce,updatedPaymentStatus:N,showfailedReceipt:g,errorResponse:j,isLoading:Pe(),routeC
3onstants:Ae,isPreLogin:S(),isCartTrxn:O(),cartTransactionData:o}),U&&e.jsx(ws,{transactionData:d,textConstants:Ms,onClickRetryPayment:me,showfailedReceipt:g,errorResponse:j,isLoading:Pe(),routeConstants:Ae,isDistributor:!0,folioData:Q,isPreLoginDistributor:!k,isPreLogin:!k,isCartTrxn:O(),cartTransactionData:o})]})};export{Rt as default};
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.