1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4379],{1137:(e,n,t)=>{"use strict";t.d(n,{Dc:()=>s,Ef:()=>o,Li:()=>a,Wl:()=>u,hR:()=>i,j5:()=>c});var l=t(70964),o=l.Ay.div.withConfig({displayName:"DuplicatePaymentModalStyle__ButtonContainer",componentId:"sc-ojkbgh-0"})(["display:flex;align-items:center;flex-direction:row;margin:0 auto 10px auto;justify-content:center;"]),i=l.Ay.div.withConfig({displayName:"DuplicatePaymentModalStyle__ModalImage",componentId:"sc-ojkbgh-1"})(["margin:auto;padding-top:10px;text-align:center;width:80px;height:80px;"]),r=l.Ay.h1.withConfig({displayName:"DuplicatePaymentModalStyle__sharedHeader",componentId:"sc-ojkbgh-2"})(["font-size:20px;font-weight:500;font-stretch:normal;font-style:normal;line-height:22px;text-align:center;color:",";"],function(e){return e.theme.colors.text}),a=(0,l.Ay)(r).withConfig({displayName:"DuplicatePaymentModalStyle__ModalHeader2",componentId:"sc-ojkbgh-3"})(["font-size:14px;line-height:22px;text-align:center;font-weight:700px;"]),c=l.Ay.div.withConfig({displayName:"DuplicatePaymentModalStyle__CenterModalContentWrapper",componentId:"sc-ojkbgh-4"})(["margin:24px 15px 0px 15px;"]),s=l.Ay.div.withConfig({displayName:"DuplicatePaymentModalStyle__CheckBoxWrapper",componentId:"sc-ojkbgh-5"})(["white-space:inline-flex;display:inline-flex;margin:0px 0px 5px 0px;"]),u=l.Ay.p.withConfig({displayName:"DuplicatePaymentModalStyle__CheckBoxLabel",componentId:"sc-ojkbgh-6"})(["font-size:12px;line-height:22px;padding-top:25px;width:255px;padding-bottom:25px;color:",";"],function(e){return e.theme.colors.texts.textSecondModalHeader})},39856:(e,n,t)=>{"use strict";t.d(n,{AT:()=>i,U9:()=>a,c:()=>c,ff:()=>s,lM:()=>r});var l=t(70964),o=t(21434),i=l.Ay.div.withConfig({displayName:"RegistrationToggleStyle__ToggleContainer",componentId:"sc-hltefz-0"})(["margin:",";display:flex;justify-content:center;align-items:center;","{margin:20px 0px 20px 0px;}"],function(e){var n=e.margin;return null!=n?n:"30px 0px"},o.Ay.down("mobileL")),r=l.Ay.div.withConfig({displayName:"RegistrationToggleStyle__Toggle",componentId:"sc-hltefz-1"})(["border-radius:24px;border:1px solid ",";width:",";height:48px;display:flex;justify-content:space-between;align-items:center;background-color:",";","{width:90vw;}","{width:",";}"],function(e){return e.theme.colors.toggle.toggleContainerBorderColor},function(e){return null!=e&&e.toggleWidth?"".concat(null==e?void 0:e.toggleWidth,"px"):"367px"},function(e){return e.theme.colors.toggle.toggleContainerBackground},o.Ay.down("mobileM"),o.Ay.between("mobileL","tabletS"),function(e){var n=e.mobileWidth;return null!=n?n:"70vw"}),a=l.Ay.div.withConfig({displayName:"RegistrationToggleStyle__ToggleButtonContainer",componentId:"sc-hltefz-2"})(["width:50%;height:48px;border-radius:24px;"]),c=l.Ay.span.withConfig({displayName:"RegistrationToggleStyle__ToggleButtonImage",componentId:"sc-hltefz-3"})(["margin-right:10px;vertical-align:sub;"]),s=l.Ay.button.withConfig({displayName:"RegistrationToggleStyle__ToggleButton",componentId:"sc-hltefz-4"})(["width:",";height:48px;padding:0px;border-radius:",";background-color:",";color:",";font-size:15px;line-height:24px;font-family:",";font-weight:700;text-transform:capitalize;font-family:"," cursor:",";margin:0em;border:",";"],function(e){return e.fullWidth?"100%":e.width?"".concat(e.width,"px"):"350px"},function(e){return e.rounded?"24px":"3px"},function(e){return e.checked?e.theme.colors.toggle.backgroundCheck:e.theme.colors.toggle.backgroundUnChecked},function(e){return e.checked?e.theme.colors.toggle.checkedColor:e.theme.colors.toggle.unCheckedColor},function(e){return e.theme.font},function(e){return e.theme.font},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.borderline?"solid 1px ".concat(function(e){return e.theme.colors.text}):"none"})},48045:(e,n,t)=>{"use strict";t.d(n,{A:()=>_});var l=t(92769),o=t(12975),i=t(63935),r=t(1137),a=t(48813),c=t(91448),s=t(78739),u=t(38511),d=t(42969),m=t(18239),p=t(93403);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,l)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?h(Object(t),!0).forEach(function(n){(0,d.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var y={},x=function(e,n,t){y.content_section="",y.tool_name="",y.user_flow="";var l=JSON.parse(p.s.getPaymentBlockData()||"{}");t.indexOf("dashboard")>-1?(y.content_section="duplicate_one_click_pay_modal",y.tool_name="dashboard",y.user_flow="express_payment_scheduled"):t.indexOf("one-time-payment")>-1?(y.content_section="duplicate_one_time_payment_modal",y.tool_name="payments",y.user_flow="one_time_payment_scheduled"):t.indexOf("pay-off-amount")>-1&&(y.content_section="duplicate_payoff_payment_modal",y.tool_name="payoff_quote",y.user_flow="payoff_payment_scheduled");var o={link_text:n,link_module:t.indexOf("dashboard")>-1?"duplicate_one_click_pay":t.indexOf("one-time-payment")>-1?"duplicate_one_time_payment":t.indexOf("pay-off-amount")>-1?"duplicate_payoff_payment":""};t.indexOf("dashboard")>-1?o.link_action="km-dup-one-click-pay":t.indexOf("one-time-payment")>-1?o.link_action="km-dup-one-time-payment":t.indexOf("pay-off-amount")>-1?o.link_action="km-dup-payoff-payment":o.link_action="km-dup-recurring-payment",o.link_action+="-"+o.link_text,l&&(o=f(f({},o),l)),(0,m.qF)(e,f(f({},y),o)),setTimeout(function(){t.indexOf("pay-off-amount")>-1?(0,m.yC)("payoff_dashboard"):t.indexOf("one-time-payment")>-1?(0,m.yC)("one_time_payment_dashboard"):t.indexOf("dashboard")>-1?(0,m.yC)("account_dashboard"):(0,m.yC)("recurring_payment_dashboard")},200)},g=t(89099),v=t(21434),b=t(92085),j=t(37876);function _(e){var n=(0,g.useRouter)(),t=(0,l.useState)(!1),d=t[0],m=t[1],p=(0,o.useDispatch)(),h=(0,o.useSelector)(s.p6).content.components.duplicatePaymentModel,f=(0,o.useSelector)(c.Ob),y=function(e){x(e,"cancel",n.asPath),p(u.A.cancelMakeDuplicatePayment()),p(u.A.setConfirmMakeDuplicatePaymentModalVisibility(!1))},_=function(e){x(e,"continue",n.asPath),p(u.A.proceedMakeDuplicatePayment()),p(u.A.setConfirmMakeDuplicatePaymentModalVisibility(!1))};return(0,j.jsx)(i.default,{isOpen:f,title:null==h?void 0:h.title,setCenterModalOpen:function(){},modalheight:(0,v.NH)()?"496px":"391px",modalwidth:(0,v.NH)()?"343px":"360px",top:"20%",currentPage:2,children:(0,j.jsxs)(r.j5,{children:[(0,j.jsx)(r.Li,{children:null==h?void 0:h.paragraphs[0]}),(0,j.jsx)(r.hR,{children:(0,j.jsx)(a._V,{type:"images",style:(0,v.NH)()&&{margin:"20px 0 0 0"},height:(0,v.NH)()?60:80,width:(0,v.NH)()?60:80,quality:100,alt:"account_found_image",filename:"icons-custom-alert.png"})}),(0,j.jsxs)(r.Dc,{style:{whiteSpace:"inline-flex",display:"inline-flex",margin:'{!isBrandTFSorLFS() ? "32px 0 16px 12px": null}'},children:[(0,j.jsx)(a.Sc,{"data-testid":"confirmCheckBox",checkBoxWidth:"15px",checkBoxHeight:"15px",margin:(0,v.NH)()?"TFS"===b.qt?"0px 0px 35px 8px":"0px 0px 35px 0px":null,"aria-label":"Label",checked:d,onChange:function(){m(!d)}}),(0,j.jsx)(r.Wl,{style:{fontSize:"12px"},children:null==h?void 0:h.paragraph1[0]})]}),!(0,v.NH)()&&(0,j.jsxs)(r.Ef,{children:[(0,j.jsx)(a.$n,{onClick:function(e){return y(e)},rounded:!0,borderline:!0,children:null==h?void 0:h.btnCancelLabel}),(0,j.jsx)(a.$n,{onClick:function(e){return _(e)},rounded:!0,primary:!0,disabled:!d,style:{margin:"0 0 0 12px"},children:null==h?void 0:h.btnContinueLabel})]}),(0,v.NH)()&&(0,j.jsx)(r.Ef,{children:(0,j.jsx)(a.$n,{"data-testid":"continueCTA",onClick:function(e){return _(e)},rounded:!0,primary:!0,disabled:!d,children:null==h?void 0:h.btnContinueLabel})}),(0,v.NH)()&&(0,j.jsx)(r.Ef,{children:(0,j.jsx)(a.$n,{"data-testid":"cancelCTA",onClick:function(e){return y(e)},rounded:!0,borderline:!0,children:null==h?void 0:h.btnCancelLabel})})]})})}},64740:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dss/secure/payments/[type]",function(){return t(76222)}])},69906:(e,n,t)=>{"use strict";t.d(n,{A:()=>h});var l=t(92769),o=t.n(l),i=t(48813),r=t(39856),a=t(89099),c=t(18239),s=t(93403),u=function(e,n,t,l){s.s.getOneTimeKMFired(),s.s.getRecurringKMFired();var o=t.indexOf("payments")>-1?{user_flow:"2"===n?"one_time_payment_dashboard":"recurring_payment_dashboard",content_section:"2"===n?"one_time_payment_dashboard":"recurring_payment_dashboard",link_text:"1"==n?"one_time":"recurring",link_action:"1"==n?"km-one-time-payment-start":l?"km-recurring-payment-start":"",link_module:"payment_dashboard",link_url:t.replace("[type]","1"==n?"one-time-payment":"recurring-payment")}:t.indexOf("verify-identity")>-1?{link_text:"1"==n?"account_number":"ssn",link_module:"verify_"+("2"==n?"account":"ssn")}:{link_text:"1"==n?"account_number":"ssn",link_module:"find_"+("2"==n?"account":"ssn")};(0,c.qF)(e,o)},d=t(21434),m=t(37926),p=t(37876);let h=(0,l.memo)(function(e){var n,t=e.toggle,l=e.setToggle,c=e.toggleLabels,s=e.margin,h=e.mobileWidth,f=e.toggleLabelLetterCasing,y=e.isEmptyRecurringPayments,x=e.setToggleClick,g=e.setNudgeFlow,v=e.pageFlowForDTM,b=(0,a.useRouter)(),j=function(e){return function(n){-1==b.pathname.indexOf("split-payments")&&"dsd_toggle_flow"!==v&&u(n,e,b.pathname,y),l(e),x&&x(!0),g&&g(!1)}};return(0,p.jsx)(r.AT,{margin:s,children:(0,p.jsx)(r.lM,{toggleWidth:"367",mobileWidth:h,className:m.Cx,children:(0,p.jsxs)(o().Fragment,{children:[(0,p.jsx)(r.U9,{children:(0,p.jsxs)(r.ff,{fullWidth:!0,rounded:!0,primary:"1"===t,onClick:"2"===t?j("1"):function(){},incudeIcon:!0,checked:"1"===t,textTransform:null!=f?f:"capitalize",children:[null!=c&&c.activeIcon1?(0,p.jsx)(r.c,{children:(0,p.jsx)(i._V,{type:"icons",filename:"1"==t?"".concat(c.activeIcon1):"".concat(c.inActiveIcon1),height:24,width:24,alt:c.Label1,className:"toggleButtonIconStyle"})}):(0,p.jsx)(p.Fragment,{}),(0,d.NH)()?null==c||null==(n=c.Label1)?void 0:n.toLowerCase():null==c?void 0:c.Label1]})}),(0,p.jsx)(r.U9,{children:(0,p.jsxs)(r.ff,{fullWidth:!0,rounded:!0,primary:"2"===t,onClick:"1"===t?j("2"):function(){},incudeIcon:!0,checked:"2"===t,textTransform:null!=f?f:"capitalize",children:[null!=c&&c.activeIcon2?(0,p.jsx)(r.c,{children:(0,p.jsx)(i._V,{type:"icons",filename:"2"==t?"".concat(c.activeIcon2):"".concat(c.inActiveIcon2),height:24,width:24,alt:c.Label1})}):(0,p.jsx)(p.Fragment,{}),null==c?void 0:c.Label2]})})]})})})})},76222:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>nz});
1var l=t(92769),o=t.n(l),i=t(70236),r=t(42969),a=t(6995),c=t(12975),s=t(10841),u=t.n(s),d=t(88234),m=t(48813),p=t(69906),h=t(82429),f=t(18847),y=t.n(f),x=t(91448),g=t(71579),v=t(44416),b=t(99814),j=t(17923),_=t(50899),C=t(96785),S=t(78739),w=t(17032),P=t(24390),A=t(38511),k=t(48045),D=t(50401),O=t(22862),N=t(2216),T=t(99747),F=t(21434),M=t(89641),I=t(67383),E=t(55887),L=t(94201),R=t(22985),B=t(89099),q=t(62309),W=t(4989);t(72504);var U=t(37926),Y=t(63935),H=t(32429),z=t(18239),V=t(93403);function $(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,l)}return t}function G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach(function(n){(0,r.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var Z={content_section:"pd_scheduled_payment_modal",tool_name:"pd_scheduled_payments",link_module:"pd_scheduled_payment_modal",customer_origin:V.s.getPaymentPageOrigin()||""},K=function(e){var n,t,l={link_text:null==e||null==(n=e.toLowerCase())?void 0:n.replace(/\s+/g,"_"),link_action:"km-pd-"+(null==e||null==(t=e.toLowerCase())?void 0:t.replace(/\s+/g,"-"))};(0,z.qF)(null,G(G({},Z),l))},J=t(37876);function X(e){var n,t,o=e.isOpen,i=e.onClose,r=e.onContinue,s=(0,a.A)("(max-width:"+F.Ay.sizes.tabletS+"px)"),u=(0,c.useSelector)(D.H),d=(0,c.useSelector)(x.gi).get(u)||[],p=(0,c.useSelector)(S.ZG),h=(null==p||null==(n=p.content)?void 0:n.enableRevampedPayoffFlow)==="true",f=(0,c.useSelector)(S.p6),y=null==f||null==(t=f.content)||null==(t=t.components)?void 0:t.ScheduledPaymentModal,v=(0,l.useState)([]),b=v[0],j=v[1];(0,l.useEffect)(function(){null!=d&&d.length&&j((0,g.Dl)(d))},[d]);var _=(0,l.useMemo)(function(){return null!=b&&b.length?(0,J.jsx)(H.On,{children:b.map(function(e,n){var t;return(0,J.jsxs)(H.nY,{children:[(0,J.jsxs)(H.Dn,{children:[(0,J.jsx)(H.rH,{children:(0,F.i$)(e.postDate||e.createDate||e.effectiveDate||e.transactionDate)}),(0,J.jsx)(H.dm,{children:h&&(null==e||null==(t=e.paymentCategory)?void 0:t.toLowerCase())=="retail payoff"?null==e?void 0:e.paymentCategory:null==e?void 0:e.frequency})]}),(0,J.jsxs)(H.yg,{children:[(0,J.jsx)(H.hy,{children:(0,F.ej)((null==e?void 0:e.totalAmount)||(null==e?void 0:e.amount)||(null==e?void 0:e.paymentAmount)||(null==e?void 0:e.transactionAmount))}),(0,J.jsx)(H.dX,{children:(null==e?void 0:e.status)||""})]})]},(null==e?void 0:e.id)||"payment-".concat(n))})}):(0,J.jsx)(H.k2,{children:null==y?void 0:y.noPaymentsText})},[b]);return o?(0,J.jsx)(Y.default,{isOpen:!0,title:null==y?void 0:y.title,modalwidth:"400px",headerMargin:s?"1rem":null,top:"10%",onClose:function(){K("close"),r()},setCenterModalOpen:null,hideTitle:!0,children:(0,J.jsxs)(H.AX,{style:s?{maxHeight:"70vh",overflowY:"auto"}:{},children:[(0,J.jsx)(H.EG,{children:null==y?void 0:y.title}),_,(0,J.jsx)(H.jG,{children:null==y?void 0:y.message}),(0,J.jsx)(H.DV,{marginModalButtonContainer:"2rem auto 0 auto",widthModalButtonContainer:"100%",children:(0,J.jsxs)(H.e2,{children:[(0,J.jsx)(m.$n,{onClick:function(){K(null==y?void 0:y.continueButtonLabel),r()},rounded:!0,primary:!0,fullWidth:!0,children:null==y?void 0:y.continueButtonLabel}),(0,J.jsx)(m.$n,{onClick:function(){K(null==y?void 0:y.cancelButtonLabel),i()},rounded:!0,borderline:!0,fullWidth:!0,children:null==y?void 0:y.cancelButtonLabel})]})})]})}):null}var Q=t(96385),ee=t(55500),en=t(14644),et=t(70964),el=et.Ay.div.withConfig({shouldForwardProp:function(e){return!e.startsWith("$")}}).withConfig({displayName:"PaymentNoteBottomSheetStyle__BottomSheetOverlay",componentId:"sc-ru8wgm-0"})(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);z-index:1000;display:",";align-items:flex-end;"],function(e){return e.$isOpen?"flex":"none"}),eo=et.Ay.div.withConfig({shouldForwardProp:function(e){return!e.startsWith("$")}}).withConfig({displayName:"PaymentNoteBottomSheetStyle__BottomSheetContainer",componentId:"sc-ru8wgm-1"})(["background-color:",";width:100%;border-radius:16px 16px 0 0;padding:0;max-height:80vh;overflow:hidden;transform:translateY(","px);transition:",";animation:"," 0.3s ease-in-out;@keyframes slideUp{from{transform:translateY(100%);}to{transform:translateY(0);}}"],function(e){return e.theme.colors.backgrounds.backgroundPrimary},function(e){return e.$translateY||0},function(e){return e.$isDragging?"none":"transform 0.3s ease-in-out"},function(e){return e.$isOpen&&!e.$isDragging?"slideUp":"none"}),ei=et.Ay.div.withConfig({displayName:"PaymentNoteBottomSheetStyle__DragHandle",componentId:"sc-ru8wgm-2"})(["width:36px;height:4px;background-color:",";border-radius:2px;margin:12px auto 8px auto;cursor:grab;&:active{cursor:grabbing;}"],function(e){return e.theme.colors.borders.borderLighter}),er=et.Ay.div.withConfig({displayName:"PaymentNoteBottomSheetStyle__ContentContainer",componentId:"sc-ru8wgm-3"})(["padding:16px 24px 24px 24px;overflow-y:auto;max-height:calc(80vh - 40px);"]),ea=et.Ay.div.withConfig({displayName:"PaymentNoteBottomSheetStyle__DisclaimerSection",componentId:"sc-ru8wgm-4"})(["margin-bottom:20px;padding:16px;background-color:",";border:1px solid ",";border-radius:8px;font-family:",";font-weight:600;font-size:12px;line-height:20px;color:",";"],function(e){return e.theme.colors.backgrounds.backgroundSecondary},function(e){return e.theme.colors.borders.borderLighter},function(e){return e.theme.fontSemiBold},function(e){return e.theme.colors.texts.textDarker}),ec=et.Ay.div.withConfig({displayName:"PaymentNoteBottomSheetStyle__NoteSection",componentId:"sc-ru8wgm-5"})(["margin-bottom:24px;padding:8px 8px;font-size:12px;line-height:20px;color:",";font-family:",";"],function(e){return e.theme.colors.texts.textDarker},function(e){return e.theme.font}),es=et.Ay.div.withConfig({displayName:"PaymentNoteBottomSheetStyle__ExitButton",componentId:"sc-ru8wgm-6"})(["width:100%;max-width:100%;"]);function eu(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,l)}return t}function ed(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?eu(Object(t),!0).forEach(function(n){(0,r.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eu(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var em={content_section:"repo_additional_info_modal",tool_name:"post_repo",rights_letter_generated:"",location_modal:""},ep=function(e,n){em.rights_letter_generated=e?"yes":"no",em.location_modal=null==n?void 0:n.toLowerCase(),(0,z.PT)(em,"km-content-view")},eh=function(e){var n={link_module:em.content_section,link_text:e.toLowerCase().replace(/\s+/g,"_")};(0,z.qF)(null,ed(ed({},em),n))},ef=t(60046);function ey(e){var n,t,o=e.isOpen,i=e.onClose,r=e.note,a=e.disclaimerContent,s=(0,l.useState)(!1),u=s[0],d=s[1],p=(0,l.useState)(0),h=p[0],f=p[1],y=(0,l.useState)(0),x=y[0],g=y[1],v=(0,l.useRef)(null),b=(0,c.useSelector)(D.H),j=(0,c.useSelector)(ef.nK).get(b),_=null==j||null==(n=j.repossessedDetails)?void 0:n.rightLetterGenerated,C=null!=(t=V.s.getSCModalValue(b))?t:"N/A";return((0,l.useEffect)(function(){o&&ep(_,C)},[o]),(0,l.useEffect)(function(){o&&(f(0),d(!1),g(0))},[o]),o)?(0,J.jsx)(el,{$isOpen:o,onClick:i,children:(0,J.jsxs)(eo,{ref:v,$isOpen:o,$isDragging:u,$translateY:h,onClick:function(e){return e.stopPropagation()},children:[(0,J.jsx)(ei,{onTouchStart:function(e){d(!0),g(e.touches[0].clientY)},onTouchMove:function(e){if(u){var n=e.touches[0].clientY-x;n>0&&f(n)}},onTouchEnd:function(){d(!1),h>100?i():f(0)}}),(0,J.jsxs)(er,{children:[a&&(0,J.jsx)(ea,{children:a}),r&&(0,J.jsx)(ec,{children:r}),(0,J.jsx)(es,{children:(0,J.jsx)(m.$n,{onClick:function(){eh("Exit"),i()},rounded:!0,borderline:!0,fullWidth:!0,children:"Exit"})})]})]})}):null}var ex=y()(function(){return t.e(2627).then(t.bind(t,12627))},{loadableGenerated:{webpack:function(){return[12627]}}});function eg(e){var n,t,i,r,s,d,p,f,y,Y,H,z,$,G,Z,K,et,el,eo,ei,er,ea,ec=e.setSpinnerBool,es=e.payPayload,eu=e.handleAmount,ed=e.handleBankId,em=e.handleStartDate,ep=e.handleMakePayment,eh=e.theme,ef=e.handleShowFrequency,eg=e.handleFrequency,ev=e.isDuplicateModalOpen,eb=e.flow,ej=e.nudgeFlow,e_=void 0!==ej&&ej,eC=e.amtLabel,eS=e.collectionTreatmentData,ew=(0,B.useRouter)(),eP=(0,c.useSelector)(S.p6),eA=(0,c.useSelector)(D.H),ek=(0,c.useSelector)(O.Kz),eD=(0,W.PR)(eA,ek),eO=(0,W.yn)(eD),eN=(0,c.useSelector)(x.oY),eT=(0,c.useSelector)(x.jM),eF=(0,c.useSelector)(S.ZG),eM=eN.get(eT),eI=(0,a.A)("(max-width:"+F.Ay.sizes.tabletS+"px)"),eE=(0,l.useState)(!1)[0],eL=(0,l.useState)(!1),eR=eL[0],eB=eL[1],eq=(0,l.useState)(!1),eW=eq[0],eU=eq[1],eY=(0,l.useState)(!1),eH=eY[0],ez=eY[1],eV=(0,c.useDispatch)(),e$=es.bankId,eG=es.frequency,eZ=es.amount,eK=es.startDate,eJ=""!=eZ?parseFloat(eZ.toString().replace(/\,/g,"")):eZ,eX=parseFloat(null==eO?void 0:eO.totalPaymentAmountRemaining),eQ=null==eO?void 0:eO.isPastDue,e0=(0,c.useSelector)(x.wf),e1=(0,c.useSelector)(x.gi),e2=(0,ee.Lp)(eA,e1,eS,eF),e4=null==eO?void 0:eO.productType,e6=null==eP||null==(n=eP.content)?void 0:n.components,e8=e1.get(eA),e3=(0,F.sb)(e8,eF),e5=(null==eF||null==(t=eF.content)?void 0:t.enableRevampedPayoffFlow)==="true",e9=null==eO?void 0:eO.coreSORNewRegisteredDay1,e7=(null==e4?void 0:e4.toLowerCase())=="l"||(null==e4?void 0:e4.toLowerCase())=="lease",ne=parseFloat(null==eO?void 0:eO.netPayoffAmount),nn=""===e$||""===eG||""===eJ||""===eK||5>parseFloat(null==eZ?void 0:eZ.toString().replace(/\,/g,""))||e7&&eJ>eX||!e7&&eJ>ne,nt=""===e$||"One-Time"===eG||""===eG||""===eJ||""===eK||5>parseFloat(null==eZ?void 0:eZ.toString().replace(/\,/g,""))||e7&&eJ>eX||!e7&&eJ>ne,nl=eJ>parseFloat(null==eO?void 0:eO.totalAmountDue),no=""!==eJ&&5>parseFloat(null==eZ?void 0:eZ.toString().replace(/\,/g,""))||e7&&eJ>eX||!e7&&(e3||e9||!e5)&&eJ>ne,ni=function(){var e=(null==eS?void 0:eS.minPromisePaymentAmount)||0;return eQ&&e2&&eJ>0&&eJ<e},nr=function(){(0,N.G)("add_bank",ew.asPath),(0,T.G9)("one-time-payment"),eV(A.A.setSliderVisibility(!0))},na=eP.content.components;na.PaymentTimeInfo;var nc=na.confirmButton,ns=na.PaymentFormSection.components,nu=ns.SelectAmount,nd=ns.SelectBank,nm=ns.SelectDate,np=ns.SelectFrequency,nh=(0,c.useSelector)(x.Hb);(0,l.useEffect)(function(){},[nh]),(0,l.useEffect)(function(){if(e0){var e=e1.get(eA)||[];(0,g.Dl)(e).length>0&&eB(!0)}},[]),(0,l.useEffect)(function(){eQ&&null!=eO&&eO.outstandingPaymentDue&&!eZ&&eu(eO.outstandingPaymentDue)},[eQ,null==eO?void 0:eO.outstandingPaymentDue,eZ,eu]),(0,l.useEffect)(function(){eQ&&eI&&!V.s.getBottomSheetNoteSeen()&&(V.s.setBottomSheetNoteSeen(!0),ez(!0))},[eQ]);var nf=function(){ez(!0)};return(0,J.jsxs)(v.M5,{children:[!ef&&(null==(i=String(null==eF||null==(r=eF.content)?void 0:r.enableMakeOneTimePayment))?void 0:i.toLowerCase())==="false"&&(0,J.jsx)(ex,{route:"dashboard",data:null==eF?void 0:eF.content}),ef&&(null==(s=String(null==eF||null==(d=eF.content)?void 0:d.enableRecurringPayment))?void 0:s.toLowerCase())==="false"&&(0,J.jsx)(ex,{route:"dashboard",data:null==eF?void 0:eF.content}),(0,J.jsx)(w.A,{setSpinnerBool:ec,show:!0,close:function(){eE(!1)}}),(0,J.jsx)(P.A,{showFrequency:ef}),eQ&&!eI&&(0,J.jsxs)(v.V4,{children:[(0,J.jsx)("b",{children:null==e6||null==(p=e6.PastDueNote)?void 0:p.title})," ",null==e6||null==(f=e6.PastDueNote)?void 0:f.content]}
1),(0,J.jsx)("br",{}),(0,J.jsxs)("div",{className:U.KC,children:[!eI&&(0,J.jsx)(v.DZ,{showFrequency:ef,children:ef?(0,J.jsxs)(o().Fragment,{children:[(0,J.jsx)(R.Nc,{children:np.heading}),(0,J.jsx)(E.Ju,{showFrequency:ef,children:null==nm?void 0:nm.heading}),(0,J.jsx)(I.Vs,{showFrequency:ef,children:null==nu?void 0:nu.heading}),(0,J.jsx)(L.R$,{showFrequency:ef,children:null==nd?void 0:nd.heading})]}):(0,J.jsxs)(o().Fragment,{children:[(0,J.jsx)(I.Vs,{showFrequency:ef,children:null==nu?void 0:nu.heading}),(0,J.jsx)(E.Ju,{showFrequency:ef,children:null==nm?void 0:nm.heading}),(0,J.jsx)(L.R$,{showFrequency:ef,children:null==nd?void 0:nd.heading})]})}),eI?(0,J.jsx)(v.wU,{children:ef?(0,J.jsxs)(o().Fragment,{children:[(0,J.jsx)(b.A,{handleFrequency:eg,frequency:es.frequency,nudgeFlow:e_}),(0,J.jsx)(_.A,{startDate:eK,accountDetails:eO,theme:eh,handleStartDate:em,flow:eb}),""!==eK&&"Monthly"===eG&&(0,J.jsx)(v.DZ,{children:(0,J.jsx)(v.lm,{children:"Your payment will be post on the ".concat(u()(eK).format("Do")," of every month.")})}),""!==eK&&"Bi-Weekly"===eG&&(0,J.jsx)(v.DZ,{children:(0,J.jsx)(v.lm,{children:"Your payment will post on every alternate ".concat(u()(eK).format("dddd"),".")})}),""!==eK&&"Weekly"===eG&&(0,J.jsx)(v.DZ,{children:(0,J.jsx)(v.lm,{children:"Your payment will post on ".concat(u()(eK).format("dddd")," of every week. ")})}),(0,J.jsx)(j.A,{showFrequency:ef,frequencyPeriod:!0,amount:es.amount,handleAmount:eu,accountDetails:eO,theme:eh,isError:no,accountType:e4,frequencyType:es.frequency,amtLabel:eC,flow:eb}),nl&&!no&&(0,J.jsx)(v.DZ,{children:e7?(0,J.jsx)(v.lm,{children:null==nu?void 0:nu.highValueInfoLease}):(0,J.jsx)(v.lm,{children:null==nu?void 0:nu.highValueInfo})}),no&&(0,J.jsx)(v.DZ,{children:eQ?(0,J.jsx)(v.Pv,{dangerouslySetInnerHTML:{__html:null==nu||null==(y=nu.pastDueAmountError)||null==(y=y.replace("{minAmount}",'<span class="bold-amount">$5.00</span>'))?void 0:y.replace("{payoffText}",'<span class="bold-payoff">Payoff</span>')}}):(0,J.jsx)(v.Pv,{children:null==nu?void 0:nu.lowValueInfo})}),eQ?(0,J.jsx)(en.A,{startDate:eK,handleStartDate:em,flow:eb,maxDaysLimit:(null==eS?void 0:eS.promiseOneDaysLimit)||7,isPromiseEligible:e2}):!ef&&(0,J.jsx)(_.A,{startDate:eK,accountDetails:eO,theme:eh,handleStartDate:em,flow:eb}),(0,J.jsx)(C.A,{bankId:e$,theme:eh,handleBankId:ed,bankDetails:eM,handleAddBankOpen:nr,onInfoIconClick:eQ?nf:null})]}):(0,J.jsxs)(o().Fragment,{children:[(0,J.jsx)(j.A,{frequencyPeriod:!1,amount:es.amount,handleAmount:eu,accountDetails:eO,theme:eh,isError:no,accountType:e4,flow:eb,isPromisePaymentEligible:e2}),nl&&!no&&(0,J.jsx)(v.DZ,{children:e7?(0,J.jsx)(v.lm,{children:null==nu?void 0:nu.highValueInfoLease}):(0,J.jsx)(v.lm,{children:null==nu?void 0:nu.highValueInfo})}),no&&(0,J.jsx)(v.DZ,{children:eQ?(0,J.jsx)(v.Pv,{dangerouslySetInnerHTML:{__html:null==nu||null==(Y=nu.pastDueAmountError)||null==(Y=Y.replace("{minAmount}",'<span class="bold-amount">$5.00</span>'))?void 0:Y.replace("{payoffText}",'<span class="bold-payoff">Payoff</span>')}}):(0,J.jsx)(v.Pv,{children:null==nu?void 0:nu.lowValueInfo})}),eQ?(0,J.jsx)(en.A,{startDate:eK,handleStartDate:em,flow:eb,maxDaysLimit:(null==eS?void 0:eS.promiseOneDaysLimit)||7,calendarNoteType:"fullPastDue",isPromiseEligible:e2}):(0,J.jsx)(_.A,{startDate:eK,accountDetails:eO,theme:eh,handleStartDate:em,flow:eb}),(0,J.jsx)(C.A,{bankId:e$,theme:eh,handleBankId:ed,bankDetails:eM,handleAddBankOpen:nr,onInfoIconClick:eQ?nf:null})]})}):(0,J.jsx)(v.Ez,{showFrequency:ef,isDarkMode:"light"!==eh,children:ef?(0,J.jsxs)(o().Fragment,{children:[(0,J.jsx)(b.A,{handleFrequency:eg,frequency:es.frequency,nudgeFlow:e_}),eQ?(0,J.jsx)(en.A,{startDate:eK,handleStartDate:em,flow:eb,maxDaysLimit:(null==eS?void 0:eS.promiseOneDaysLimit)||7,calendarNoteType:"fullPastDue",isPromiseEligible:e2}):(0,J.jsx)(_.A,{frequency:eG,showFrequency:ef,startDate:eK,accountDetails:eO,theme:eh,handleStartDate:em,flow:eb}),(0,J.jsx)(j.A,{showFrequency:ef,frequencyPeriod:!0,borderLeft:!0,amount:null==es?void 0:es.amount,handleAmount:eu,accountDetails:eO,theme:eh,isError:no,accountType:e4,frequencyType:es.frequency,amtLabel:eC,flow:eb}),(0,J.jsx)("div",{className:U.pP,children:(0,J.jsx)(C.A,{showFrequency:ef,bankId:e$,theme:eh,handleBankId:ed,bankDetail
1s:eM,handleAddBankOpen:nr})})]}):(0,J.jsxs)(o().Fragment,{children:[(0,J.jsx)(j.A,{frequencyPeriod:!1,amount:null==es?void 0:es.amount,handleAmount:eu,accountDetails:eO,theme:eh,isError:no,accountType:e4,flow:eb,isPromisePaymentEligible:e2}),eQ?(0,J.jsx)(en.A,{startDate:eK,handleStartDate:em,flow:eb,maxDaysLimit:(null==eS?void 0:eS.promiseOneDaysLimit)||7,calendarNoteType:"fullPastDue",isPromiseEligible:e2}):(0,J.jsx)(_.A,{startDate:eK,accountDetails:eO,theme:eh,handleStartDate:em,flow:eb}),(0,J.jsx)("div",{className:U.pP,children:(0,J.jsx)(C.A,{bankId:e$,theme:eh,handleBankId:ed,bankDetails:eM,handleAddBankOpen:nr})})]})})]}),!ef&&!eI&&nl&&!no&&(0,J.jsx)(v.DZ,{children:e7?(0,J.jsx)(v.lm,{children:null==nu?void 0:nu.highValueInfoLease}):(0,J.jsx)(v.lm,{children:null==nu?void 0:nu.highValueInfo})}),!ef&&!eI&&no&&(0,J.jsx)(v.DZ,{children:eQ?(0,J.jsx)(v.Pv,{dangerouslySetInnerHTML:{__html:null==nu||null==(H=nu.pastDueAmountError)||null==(H=H.replace("{minAmount}",'<span class="bold-amount">$5.00</span>'))?void 0:H.replace("{payoffText}",'<span class="bold-payoff">Payoff</span>')}}):(0,J.jsx)(v.Pv,{children:null==nu?void 0:nu.lowValueInfo})}),eQ&&e2&&(0,J.jsx)(v.SF,{children:(0,J.jsx)(v.Az,{children:(0,J.jsx)(v.rO,{onClick:function(){(0,q._b)(h.b.SPLIT_PAYMENTS),eV(A.A.setSplitPaymentFlow({status:!0,step:"start"})),setTimeout(function(){ew.push(h.b.SPLIT_PAYMENTS)},100)},children:null==e6||null==(z=e6.SplitPaymentSection)||null==(z=z.components)?void 0:z.SplitPaymentStartLink})})}),eQ&&!eI&&(0,J.jsx)(v.oh,{children:null==e6||null==($=e6.PastDueDisclaimer)?void 0:$.content}
1),(0,J.jsx)(v.EZ,{showFrequency:nl&&ef,children:e_?(0,J.jsxs)(J.Fragment,{children:[(null==e6||null==(G=e6.nudgeToRecurringDisclaimerContent)?void 0:G.disclaimerPart1)||'Default information may be pre-filled in your recurring payment setup. Please review all details carefully before confirming. By selecting "Confirm", you have reviewed and agreed to our ',(0,J.jsxs)(v.a7,{onClick:function(e){var n,t;(0,q.rI)(e,ew.asPath,null==e6||null==(n=e6.paymentTermsConditionsHyperLink)?void 0:n.href),(0,M.d)(null==e6||null==(t=e6.paymentTermsConditionsHyperLink)?void 0:t.href)},children:[" ",(null==e6||null==(Z=e6.nudgeToRecurringDisclaimerContent)?void 0:Z.disclaimerPart2)||"Payment Terms & Conditions"]})," ",(null==e6||null==(K=e6.nudgeToRecurringDisclaimerContent)?void 0:K.disclaimerPart3)||"and accept responsibility for the accuracy of the information provided."]}):(0,J.jsxs)(J.Fragment,{children:[null==e6||null==(et=e6.onetimeDisclaimerContent)?void 0:et.disclaimerPart1,(0,J.jsxs)(v.a7,{onClick:function(e){var n,t;(0,q.rI)(e,ew.asPath,null==e6||null==(n=e6.paymentTermsConditionsHyperLink)?void 0:n.href),(0,M.d)(null==e6||null==(t=e6.paymentTermsConditionsHyperLink)?void 0:t.href)},children:[" ",null==e6||null==(el=e6.onetimeDisclaimerContent)?void 0:el.disclaimerPart2]})]})}),(0,J.jsx)(v.F4,{children:ef?(0,J.jsx)(m.$n,{style:{minWidth:eI?"70vw":"288px",padding:"10px 30px",whiteSpace:"noWrap"},onClick:ep,disabled:nt,rounded:!0,primary:!0,"data-testid":"recurring-submit",children:null==nc?void 0:nc.label}):(0,J.jsx)(m.$n,{style:{minWidth:eI?"70vw":"288px",padding:"10px 30px",whiteSpace:"noWrap"},onClick:function(){ni()?eU(!0):ep()},disabled:nn,rounded:!0,primary:!0,"data-testid":"one-time-submit",children:null==nc?void 0:nc.label})}),ev&&(0,J.jsx)(k.A,{}),(0,J.jsx)(X,{isOpen:eR,onClose:function(){eV(A.A.setPastDuePmtFlow(!1)),eB(!1),ew.push(h.b.DASHBOARD)},onContinue:function(){eV(A.A.setPastDuePmtFlow(!1)),eB(!1)}}),(0,J.jsx)(Q.A,{isOpen:eW,onClose:function(){eU(!1)},onContinue:function(){eU(!1),ep()},minAmount:"$".concat(((null==eS?void 0:eS.minPromisePaymentAmount)||0).toFixed(2)),aemContent:null==e6||null==(eo=e6.SplitPaymentSection)||null==(eo=eo.components)?void 0:eo.CustomAmountWarningModal}),(0,J.jsx)(ey,{isOpen:eH,onClose:function(){ez(!1)},disclaimerContent:null==e6||null==(ei=e6.PastDueDisclaimer)?void 0:ei.content,note:(0,J.jsxs)("div",{children:[(0,J.jsx)("b",{children:null==e6||null==(er=e6.PastDueNote)?void 0:er.title})," ",null==e6||null==(ea=e6.PastDueNote)?void 0:ea.content]})})]})}function ev(e){var n,t=e.isOpen,l=e.onClose,o=(0,c.useSelector)(S.p6),i=null==o||null==(n=o.content)||null==(n=n.components)||null==(n=n.nsfSlider)?void 0:n.tcprDebitCardModal,r=null==i?void 0:i.phoneNumber;return(0,J.jsx)(Y.default,{isOpen:t,modalwidth:"352px",top:"15%",hideTitle:!0,onClose:l,setCenterModalOpen:null,children:(0,J.jsxs)(H.tt,{children:[(0,J.jsx)(H.EG,{children:null==i?void 0:i.title}),(0,J.jsxs)(H.Li,{children:[null==i?void 0:i.subtitlePart1," ",(0,J.jsx)("b",{children:(0,J.jsx)(v.vU,{href:"tel:".concat(r),children:r})})," ",null==i?void 0:i.subtitlePart2]}),(0,J.jsx)(H.DV,{children:(0,J.jsx)(H.e2,{children:(0,J.jsx)(m.$n,{onClick:l,rounded:!0,borderline:!0,fullWidth:!0,children:null==i?void 0:i.goBackCTA})})})]})})}var eb=t(17272);function ej(e){var n=e.label,t=e.amount,l=e.heading;return(0,a.A)("(max-width:"+F.Ay.sizes.tabletS+"px)")?(0,J.jsxs)(L.dO,{children:[(0,J.jsx)(L.JW,{children:l}),(0,J.jsx)(L.JC,{as:"div",style:{cursor:"default"},children:(0,J.jsx)(eb.A,{label:n,content:(0,F.ej)(t)})})]}):(0,J.jsx)(I.dk,{as:"div",style:{cursor:"default",height:"auto"},children:(0,J.jsx)(I.At,{children:(0,J.jsx)(eb.A,{label:n,content:(0,F.ej)(t)})})})}function e_(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,l)}return t}function eC(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?e_(Object(t),!0).forEach(function(n){(0,r.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):e_(Object(t)).forEac
1h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var eS={content_section:"one_time_payment_dashboard",link_module:"payment_details",tool_name:"payments"},ew=function(e,n){var t,l=null==e||null==(t=e.toLowerCase())?void 0:t.replace(/\s/g,"_"),o={link_text:"add_debit_card"===l?"pay_online_debit_card":"how_to_pay_via_western_union"===l?"pay_offline_western_union":"how_to_pay_via_checkfreepay"===l?"pay_offline_checkfreepay":(null==l?void 0:l.indexOf("how_to_"))>-1?l.replace("how_to_",""):l,link_action:null!=n?n:""};(0,z.qF)(null,eC(eC({},eS),o))};function eP(e){var n,t,o=e.handleAddDebitCardOpen,r=e.handleWesternUnionOpen,s=e.handleCheckFreePayOpen,u=e.handleManagersCheckOpen,d=e.handleMoneyOrderOpen,p=e.cardLastFour,h=(e.handleDebitCardId,e.flow),f=e.onInfoIconClick,y=(0,l.useState)(!1),x=y[0],g=y[1],v=(0,l.useState)(!1),b=v[0],j=v[1],_=(0,l.useRef)(null),C=(0,a.A)("(max-width:"+F.Ay.sizes.tabletS+"px)"),w=(0,c.useSelector)(S.p6),P=(0,c.useSelector)(D.H),A=(0,c.useSelector)(O.Kz),k=(0,W.PR)(P,A),N=(0,W.yn)(k),T=(null==N?void 0:N.isTCPRAccount)===!0,M=null!=(n=null==w||null==(t=w.content)||null==(t=t.components)||null==(t=t.PaymentFormSection)||null==(t=t.components)?void 0:t.SelectBank)?n:{};(0,l.useEffect)(function(){var e=function(e){_.current&&!_.current.contains(e.target)&&g(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]);var I=[{label:T&&"NSF"!==h?"Pay with A Debit Card":M.addDebitCardLabel,action:o,icon:T&&"NSF"!==h?null:"cirlce-plus-dark.svg",recommend:!0}].concat((0,i.A)(T?[{label:M.managersCheckLabel,action:u},{label:M.moneyOrderLabel,action:d}]:[{label:M.westernUnionLabel,action:r},{label:M.checkFreePayLabel,action:s}])).filter(function(e){return!!(null!=e&&e.label)});return C?(0,J.jsxs)(L.dO,{className:U.pP,children:[(0,J.jsxs)(L.JW,{children:[M.heading,f&&(0,J.jsx)(m.K0,{onClick:f,children:(0,J.jsx)(m._V,{type:"icons",filename:"info.svg",width:16,height:16,alt:"info"})})]}),p?(0,J.jsx)(L.JC,{children:(0,J.jsx)(eb.A,{sliderSubLabel:!0,label:"Debit Card",content:"Card Ending: ".concat(p),isUppercase:!1})}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(L.JC,{onClick:function(){b||ew("pay_from",null),j(!0)},children:[(0,J.jsx)(L.nF,{isGreyText:!0,children:M.nsfButtonLabel}),(0,J.jsx)(m._V,{type:"icons",filename:b?"arrow-large-up.svg":"arrow-large-down.svg",width:(0,F.NH)()?24:16,height:(0,F.NH)()?24:8,alt:""})]}),(0,J.jsx)(el,{$isOpen:b,onClick:function(){return j(!1)},children:(0,J.jsxs)(eo,{$isOpen:b,onClick:function(e){return e.stopPropagation()},children:[(0,J.jsxs)(L.YD,{children:[(0,J.jsx)(L.nf,{children:M.pay
1FromTitle}),(0,J.jsx)(m.K0,{onClick:function(){return j(!1)},children:(0,J.jsx)(m._V,{type:"icons",filename:"close.svg",width:20,height:20,alt:"close"})})]}),(0,J.jsx)(er,{children:I.map(function(e,n){return(0,J.jsxs)(L.lW,{onClick:function(){ew(null==e?void 0:e.label,e.label===M.addDebitCardLabel?"km-add-debit-card-start":null),j(!1),e.action&&e.action()},children:[e.icon&&(0,J.jsx)(m._V,{type:"icons",filename:e.icon,width:20,height:20,alt:"",style:{marginRight:8,verticalAlign:"middle"}}),(0,J.jsx)("span",{className:"opt-label",children:e.label}),e.recommend&&(0,J.jsx)(L.Um,{children:M.recommendLabel})]},n)})})]})})]})]}):(0,J.jsx)(L.mc,{ref:_,children:p?(0,J.jsx)(L.tl,{children:(0,J.jsx)(eb.A,{label:"Debit Card",content:"Card Ending: ".concat(p)})}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(L.jM,{onClick:function(){x||ew("pay_from",null),g(function(e){return!e})},children:[(0,J.jsx)(L.nF,{isGreyText:!0,children:M.nsfButtonLabel}),(0,J.jsx)(m._V,{type:"icons",filename:x?"arrow-large-up.svg":"arrow-large-down.svg",width:(0,F.NH)()?24:16,height:(0,F.NH)()?24:8,alt:x?"arrow-up-icon":"arrow-down-icon"})]}),x&&(0,J.jsx)(L.rI,{children:I.map(function(e,n){return(0,J.jsxs)(L.ds,{onClick:function(){ew(null==e?void 0:e.label,e.label===M.addDebitCardLabel?"km-add-debit-card-start":null),g(!1),e.action&&e.action()},children:[e.icon&&(0,J.jsx)(m._V,{type:"icons",filename:e.icon,width:16,height:16,alt:"",style:{marginRight:8,verticalAlign:"middle"}}),(0,J.jsx)("span",{className:"opt-label",children:e.label}),e.recommend&&(0,J.jsx)(L.Um,{children:M.recommendLabel})]},n)})})]})})}var eA=t(41448),ek=et.Ay.div.withConfig({displayName:"AddDebitCardStyle__DebitCardNote",componentId:"sc-1j77a4f-0"})(["width:auto;margin:28px 0 0 0;"]),eD=et.Ay.div.withConfig({displayName:"AddDebitCardStyle__LoadingContainer",componentId:"sc-1j77a4f-1"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:300px;"]),eO=et.Ay.div.withConfig({displayName:"AddDebitCardStyle__ZuoraContainer",componentId:"sc-1j77a4f-2"})(["margin-top:20px;"]),eN=et.Ay.div.withConfig({displayName:"AddDebitCardStyle__ZuoraPayment",componentId:"sc-1j77a4f-3"})(["min-height:400px;"]),eT=et.Ay.div.withConfig({displayName:"AddDebitCardStyle__CancelContainer",componentId:"sc-1j77a4f-4"})(["text-align:center;margin-top:20px;"]),eF=et.Ay.a.withConfig({displayName:"AddDebitCardStyle__CancelLink",componentId:"sc-1j77a4f-5"})(["text-decoration:underline;color:",";"],function(e){return e.theme.colors.texts.textDarkest}),eM=t(92085),eI=t(667),eE=t(68161),eL=t(48334);function eR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,l)}return t}function eB(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?eR(Object(t),!0).forEach(function(n){(0,r.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eR(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var eq={content_section:"one_time_payment_dashboard",tool_name:"pd_repo_payment_start"},eW={},eU=function(){(0,z.PT)(eq)},eY=function(e,n,t){var l,o={link_module:"pd_repo_payment_page",link_text:e};o.link_url=null!=t?t:"",o.link_action=null!=n?n:"","km-past-due-repo-customer-payment-confirm"===n&&(o.pd_days=null!=(l=parseInt(V.s.getDaysPastDueForPaymentDTM()))?l:"",o.payment_mode="debit"),(0,z.qF)(null,eB(eB({},eq),o))},eH=function(e,n){var t={link_module:"pd_repo_payment_notifications"};switch(e){case"repo_payment_debit_card_add_success":t.link_module="payment_details",t.link_text="debit_card_add_success",t.link_action="km-content-view, km-add-debit-card-complete",t.card_type=(null==n?void 0:n.toLowerCase().replace(/\s+/g,"_"))||"";break;case"repo_payment_debit_card_add_failure":t.link_module="payment_details",t.link_text="debit_card_add_error",t.link_action="km-error-occurred",eW.error_field="add_debit_card_unsuccessful",eW.error_type="add_debit_card_error",eW.dis
1played_error_message="something_went_wrong_please_try_again";break;default:t.link_text="pd_repo_payment_unknown_notification"}"repo_payment_debit_card_add_failure"===e&&(t=eB(eB({},t),eW)),(0,z.qF)(null,eB(eB({},eq),t))},ez=t(82851);function eV(e){var n,t,o,i,r,a=e.show,s=e.close,d=e.onDebitCardAdded,p=(0,c.useSelector)(x.wp),h=(0,c.useSelector)(x.ZM),f=(0,c.useSelector)(x.Z3),y=(0,c.useSelector)(x.Qp),g=(0,c.useSelector)(x.jM),b=(0,c.useSelector)(S.p6),j=(0,c.useSelector)(D.H),_=(0,c.useSelector)(O.Kz),C=(0,W.PR)(j,_),w=(0,W.yn)(C),P=(null==w?void 0:w.isTCPRAccount)===!0,k=(0,c.useDispatch)(),N=(0,l.useState)(!0),T=N[0],F=N[1],M=(0,l.useState)(!1),I=M[0],E=M[1],L=(0,l.useState)(!1),R=L[0],B=L[1],q=(0,l.useState)(0),U=q[0],Y=q[1],H=(0,l.useState)(!1),z=H[0],V=H[1],$=(0,l.useState)(!1),G=$[0],Z=$[1],K=(0,l.useState)(!1),X=K[0],Q=K[1],ee=h.get(g),en=function(e){B(!1),V(!1),s()};(0,l.useEffect)(function(){return function(){V(!1)}},[]),(0,l.useEffect)(function(){a&&Y((f.get(g)||[]).length)},[a,g,f]),(0,l.useEffect)(function(){if(a&&!I){var e=document.createElement("script");e.src=eM.sB,e.onload=function(){return E(!0)},document.head.appendChild(e)}},[a,I]),(0,l.useEffect)(function(){if(a&&g&&I){F(!0);var e={method:"POST",pageId:eM.$W.pageIdDC(),uri:eM.$W.zuoraURI(),json:"true"};k(A.A.getRsaSignatureStarted(e))}},[a,g,I,k]),(0,l.useEffect)(function(){a&&null!=p&&p.data&&ee&&I&&(F(!1),Z(!0))},[a,p,ee,I]),(0,l.useEffect)(function(){if(null!=p&&p.data&&window.Z){var e={signature:p.data.signature,token:p.data.token,tenantId:p.data.tenantId,key:p.data.key,id:eM.$W.pageIdDC(),field_accountId:ee,style:"inline",submitEnabled:"true",url:eM.$W.zuoraURI()},n=function(e){null!=e&&e.success?(B(!0),V(!0),k(A.A.fetchBankListsDetails())):console.log("â Debit card addition failed:",e)},t=function(e,n,t){console.log(e,n,t);var l,o=null==b||null==(l=b.content)||null==(l=l.components)||null==(l=l.AddDebitCard)?void 0:l.errorMessages,i=t;switch(e){case"creditCardNumber":"001"==n?i=null==o?void 0:o.creditCardNumber:"003"==n&&(i=null==o?void 0:o.creditCardNumberInvalid);break;case"cardSecurityCode":"001"==n&&(i=null==o?void 0:o.cardSecurityCode);break;case"creditCardHolderName":"001"==n&&(i=null==o?void 0:o.creditCardHolderName);break;case"creditCardExpirationMonth":"001"==n&&(i=null==o?void 0:o.creditCardExpirationMonth);break;case"creditCardExpirationYear":"001"==n&&(i=null==o?void 0:o.creditCardExpirationYear);break;case"creditCardPostalCode":"001"==n&&(i=null==o?void 0:o.creditCardPostalCode);break;case"error":i="",en(),Q(!0)}window.Z.sendErrorMessageToHpm(e,i)},l={};setTimeout(function(){window.Z.setEventHandler("onloadCallback",function(){Z(!1)}),window.Z.renderWithErrorHandler(e,l,n,t),setTimeout(function(){Z(!1)},3e3)},500)}},[p,ee]),(0,l.useEffect)(function(){if(z&&y&&a){var e=f.get(g)||[];if(e.length>U){var n=u()().format("YYYY-MM-DD");e.find(function(e){return"CreditCard"===e.Type&&"Active"===e.PaymentMethodStatus&&u()(e.CreatedDate).format("YYYY-MM-DD")===n})?(B(!1),V(!1),null==d||d()):(console.log("â ï¸ Bank list updated but no debit card found for today"),B(!1),V(!1),s(),eH("repo_payment_debit_card_add_failure"),eE.W.error(eM.pU,"somethingWentWrong"))}else console.log("â ï¸ Bank list fetch completed but no new debit card added"),B(!1),V(!1),s(),eH("repo_payment_debit_card_add_failure"),eE.W.error(eM.pU,"somethingWentWrong")}},[y,z,f,a,g,U,d]);var et=null==b||null==(n=b.content)||null==(n=n.components)?void 0:n.AddDebitCard,el=null==b||null==(t=b.content)||null==(t=t.components)?void 0:t.nsfSlider,eo=P?null==el?void 0:el.tcprNoteContent:null==el?void 0:el.noteContent;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(eA.aF,{transitionDuration:{appear:150,enter:300,exit:150},anchor:"right",open:a,onClose:en,children:(0,J.jsx)(eA.Bs,{children:(0,J.jsxs)(eA.$5,{children:[(0,J.jsxs)(eA.UG,{children:[(0,J.jsx)(eA.uG,{children:null==et?void 0:et.title}),(0,J.jsx)(eA.hB,{children:(0,J.jsx)(m.K0,{onClick:en,children:(0,J.jsx)(m._V,{type:"icons",height:20,width:20,quality:100,alt:"close-icon",filename:"close.svg"})})})]}),(0,J.jsx)(ek,{as:v.mZ,children:"Repossession"===ez.flow?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("b",{children:null==et?void 0:et.noteTitle})," ",null==et?void 0:et.noteContent," ",(0,J.jsx)("b",{children:(0,J.jsx)(v.vU,{href:"tel:".concat(P?null==et?void 0:et.tcprPhoneNumber:null==et?void 0:et.phoneNumber),children:P?null==et?void 0:et.tcprPhoneNumber:null==et?void 0:et.phoneNumber})})]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("b",{children:null==el?void 0:el.noteTitle})," ",eo," ",(0,J.jsx)("b",{children:(0,J.jsx)(v.vU,{href:"tel:".concat(P?null==el?void 0:el.tcprPhoneNumber:null==el?void 0:el.phoneNumber),children:P?null==el?void 0:el.tcprPhoneNumber:null==el?void 0:el.phoneNumber})})]})}),(0,J.jsxs)(eO,{children:[(T||R||G)&&(0,J.jsx)(eD,{children:(0,J.jsx)(eI.A,{})}),(0,J.jsx)(eN,{id:"zuora_payment"})]}),(0,J.jsx)(eT,{children:(0,J.jsx)(eF,{href:"#",onClick:en,children:null==et?void 0:et.cancelLabel})})]})})}),(0,J.jsx)(eL.A,{isOpen:X,serverFailTitle:(null==et||null==(o=et.errorMessages)||null==(o=o.genericError)?void 0:o.title)||"Processing Error",serverFailSubtitle:(null==et||null==(i=et.errorMessages)||null==(i=i.genericError)?void 0:i.message)||'Please validate debit card details and re-add via "Add Debit Card"',buttonLabel:(null==et||null==(r=et.errorMessages)||null==(r=r.genericError)?void 0:r.buttonLabel)||"Close",isNoAction:!0,clickHandler:function(){return Q(!1)}})]})}var e$=function(e,n){if(!e||!n)return e;var t=e;
1return Object.keys(n).forEach(function(e){var l=n[e],o="{".concat(e,"}");if(t.includes(o)){var i=l.url&&!l.url.startsWith("/"),r='<a href="'.concat(l.url,'" ').concat(i?'target="_blank" rel="noopener noreferrer"':"",">").concat(l.text,"</a>");t=t.replace(o,r)}}),t},eG=function(e){return e&&e.includes("<a href=")},eZ=et.Ay.div.withConfig({displayName:"WUCFStyle__WesternUnionContent",componentId:"sc-4qs6f-0"})(["font-family:",";"],function(e){return e.theme.font}),eK=et.Ay.h3.withConfig({displayName:"WUCFStyle__WesternUnionHeading",componentId:"sc-4qs6f-1"})(["font-size:18px;font-weight:700;margin:0 0 14px 0;color:",";font-family:",";"],function(e){return e.theme.colors.text},function(e){return e.theme.fontSemiBold}),eJ=et.Ay.div.withConfig({displayName:"WUCFStyle__WesternUnionImageContainer",componentId:"sc-4qs6f-2"})(["text-align:center;padding-bottom:14px;"]),eX=et.Ay.div.withConfig({displayName:"WUCFStyle__StepperContainer",componentId:"sc-4qs6f-3"})(["display:flex;flex-direction:column;"]),eQ=et.Ay.div.withConfig({displayName:"WUCFStyle__StepItem",componentId:"sc-4qs6f-4"})(["display:flex;align-items:flex-start;gap:12px;"]),e0=et.Ay.div.withConfig({displayName:"WUCFStyle__StepDotContainer",componentId:"sc-4qs6f-5"})(["display:flex;flex-direction:column;align-items:center;"]),e1=et.Ay.div.withConfig({displayName:"WUCFStyle__StepDot",componentId:"sc-4qs6f-6"})(["width:14px;height:14px;border-radius:50%;background-color:",";margin-top:3px;flex-shrink:0;"],function(e){return e.theme.colors.button.primaryBackground}),e2=et.Ay.div.withConfig({displayName:"WUCFStyle__StepLine",componentId:"sc-4qs6f-7"})(["width:2px;height:","px;background-color:",";margin-top:2px;"],function(e){return e.height},function(e){return e.theme.colors.button.primaryBackground}),e4=et.Ay.div.withConfig({displayName:"WUCFStyle__StepContent",componentId:"sc-4qs6f-8"})(["flex:1;"]),e6=et.Ay.div.withConfig({displayName:"WUCFStyle__StepTitle",componentId:"sc-4qs6f-9"})(["font-size:14px;font-weight:400;color:",";margin-bottom:8px;text-align:left;font-family:",";"],function(e){return e.theme.colors.text},function(e){return e.theme.font}),e8=et.Ay.ul.withConfig({displayName:"WUCFStyle__StepList",componentId:"sc-4qs6f-10"})(["margin:0;padding-left:18px;color:#000000;font-size:13.5px;line-height:1.5;list-style:initial;a{color:#000000;font-family:",";font-size:12px;font-weight:800;text-decoration:underline;}"],function(e){return e.theme.fontSemiBold}),e3=et.Ay.li.withConfig({displayName:"WUCFStyle__StepListItem",componentId:"sc-4qs6f-11"})(["margin-bottom:8px;font-size:12px;color:",";"],function(e){return e.theme.colors.texts.textCollectionFlow}),e5=et.Ay.span.withConfig({displayName:"WUCFStyle__BoldText",componentId:"sc-4qs6f-12"})(["font-weight:800;color:",";font-family:",";"],function(e){return e.theme.colors.text},function(e){return e.theme.fontSemiBold});et.Ay.span.withConfig({displayName:"WUCFStyle__SubtleText",componentId:"sc-4qs6f-13"})(["color:",";"],function(e){return e.theme.colors.texts.textSecondaryGrey});var e9=et.Ay.div.withConfig({displayName:"WUCFStyle__AccountRow",componentId:"sc-4qs6f-14"})(["margin-top:14px;border:1px solid ",";border-radius:12px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:10px;"],function(e){return e.theme.colors.borders.borderLighter});et.Ay.div.withConfig({displayName:"WUCFStyle__AccountLabelWrap",componentId:"sc-4qs6f-15"})(["display:flex;flex-direction:column;gap:2px;"]);var e7=et.Ay.div.withConfig({displayName:"WUCFStyle__AccountLabel",componentId:"sc-4qs6f-16"})(["font-size:12px;color:",";font-weight:600;font-family:",";"],function(e){return e.theme.colors.texts.textSecondaryGrey},function(e){return e.theme.font}),ne=et.Ay.span.withConfig({displayName:"WUCFStyle__AccountNumber",componentId:"sc-4qs6f-17"})(["font-family:",";font-size:14px;font-weight:bold;padding-left:16px;color:",";"],function(e){return e.theme.fontSemiBold},function(e){return e.theme.colors.text});et.Ay.div.withConfig({displayName:"WUCFStyle__AccountValue",componentId:"sc-4qs6f-18"})(["font-size:15px;font-weight:800;color:",";font-family:",";"],function(e){return e.theme.colors.text},function(e){return e.theme.fontSemiBold}),et.Ay.button.withConfig({displayName:"WUCFStyle__CopyButton",componentId:"sc-4qs6f-19"})(["border:none;border-radius:10px;padding:10px 14px;background-color:",";color:",";font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap;font-family:",";
1"],function(e){return e.theme.colors.button.primaryBackground},function(e){return e.theme.colors.button.primaryText},function(e){return e.theme.fontSemiBold});var nn=et.Ay.div.withConfig({displayName:"WUCFStyle__BottomCard",componentId:"sc-4qs6f-20"})(["margin-top:16px;border-radius:14px;border:1px solid ",";background-color:#EDF0F5;padding:14px;"],function(e){return e.theme.colors.borders.borderLighter}),nt=et.Ay.p.withConfig({displayName:"WUCFStyle__BottomCardTitle",componentId:"sc-4qs6f-21"})(["font-size:16px;color:#000000;margin:0 0 8px 0;font-weight:600;font-family:",";"],function(e){return e.theme.fontSemiBold}),nl=et.Ay.ol.withConfig({displayName:"WUCFStyle__BottomCardList",componentId:"sc-4qs6f-22"})(["margin:0;padding-left:18px;font-size:13.5px;line-height:1.5;color:",";list-style:decimal;"],function(e){return e.theme.colors.disclaimerCard.textColor}),no=et.Ay.button.withConfig({displayName:"WUCFStyle__CallButton",componentId:"sc-4qs6f-23"})(["margin-top:12px;width:100%;border:none;border-radius:999px;padding:12px 14px;background-color:",";color:",";font-size:14.5px;font-weight:900;cursor:pointer;font-family:",";"],function(e){return e.theme.colors.button.primaryBackground},function(e){return e.theme.colors.button.primaryText},function(e){return e.theme.fontSemiBold}),ni=et.Ay.div.withConfig({displayName:"WUCFStyle__StepNote",componentId:"sc-4qs6f-24"})(["font-style:italic;font-size:12px;color:",";margin-top:8px;line-height:18px;"],function(e){return e.theme.colors.texts.textSecondaryGrey});function nr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,l)}return t}function na(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?nr(Object(t),!0).forEach(function(n){(0,r.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nr(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var nc={},ns=function(e){var n,t={customer_origin:null!=(n=V.s.getPaymentPageOrigin())?n:""};switch(e){case"openPaymentOptions":nc.content_section="nsf_add_payment_modal",nc.tool_name="nsf_add_payment_modal";break;case"openWesternUnion":nc.content_section="pay_using_western_union_info_modal",nc.tool_name="pay_using_western_union_info_modal";break;case"openCheckFreePay":nc.content_section="pay_using_checkfreepay_info_modal",nc.tool_name="pay_using_checkfreepay_info_modal";break;case"openManagersCheck":nc.content_section="pay_using_managers_check_info_modal",nc.tool_name="pay_using_managers_check_info_modal";break;case"openMoneyOrder":nc.content_section="pay_using_money_order_info_modal",nc.tool_name="pay_using_money_order_info_modal"}setTimeout(function(){(0,z.PT)(na(na({},nc),t),"km-content-view")},500)},nu=function(e){var n={link_text:e,link_module:nc.content_section};(0,z.qF)(null,na(na({},nc),n))};function nd(e){var n,t,o=e.show,i=e.close,r=(0,l.useRef)(null),a=(0,l.useState)(0),s=a[0],u=a[1],d=(0,c.useSelector)(S.p6),p=(0,c.useSelector)(D.H),h=(0,c.useSelector)(O.Kz),f=(0,W.PR)(p,h),y=(0,W.yn)(f),x=null==y?void 0:y.productType,g=(null==x?void 0:x.toLowerCase())==="l"||(null==x?void 0:x.toLowerCase())==="lease",v=null==d||null==(n=d.content)||null==(n=n.components)||null==(n=n.nsfSlider)?void 0:n.westernUnionSection,b=null==d||null==(t=d.content)||null==(t=t.components)||null==(t=t.nsfSlider)?void 0:t.wucfCommonSection;(0,l.useEffect)(function(){if(o){ns("openWesternUnion");var e=setTimeout(function(){r.current&&u(r.current.offsetHeight-10)},150);return function(){return clearTimeout(e)}}},[o]);var j=function(){return i()},_=null==y?void 0:y.accountNumber,C=function(e,n,t){var l=e$(e,t);return eG(l)?(0,J.jsx)(e3,{onClick:function(){return nu("wuqc_locations")},dangerouslySetInnerHTML:{__html:l}},n):(0,J.jsx)(e3,{children:l},n)};return(0,J.jsx)(eA.aF,{transitionDuration:{appear:150,enter:300,exit:150},anchor:"right",open:o,onClose:j,children:(0,J.jsx)(eA.Bs,{children:(0,J.jsxs)(eA.$5,{children:[(0,J.jsxs)(eA.UG,{children:[(0,J.jsx)(eA.uG,{children:v.title}),(0,J.jsx)(eA.hB,{children:(0,J.jsx)(m.K0,{onClick:function(){nu("close"),j()},children:(0,J.jsx)(m._V,{type:"icons",height:20,width:20,quality:100,alt:"close-icon",filename:"close.svg"})})})]}),(0,J.jsx)(eJ,{children:(0,J.jsx)(m._V,{type:"icons",filename:"western_union.svg",alt:"Western Union"})}),(0,J.jsxs)(eZ,{children:[(0,J.jsx)(eK,{children:v.heading}),(0,J.jsx)(eX,{children:v.steps.map(function(e,n){var t,l;return(0,J.jsxs)(eQ,{ref:0===n?r:null,children:[(0,J.jsxs)(e0,{children:[(0,J.jsx)(e1,{}),0===n&&(0,J.jsx)(e2,{height:s})]}),(0,J.jsxs)(e4,{children:[(0,J.jsx)(e6,{children:e.title}),(0,J.jsxs)(e8,{children:[e.items.map(function(e,n){return C(e,n,v.links)}),e.companyDetails&&(0,J.jsx)("li",{style:{listStyle:"none"},children:(0,J.jsxs)(e8,{children:[(0,J.jsxs)(e3,{children:[e.companyDetails.companyName.label," ",(0,J.jsx)(e5,{children:g?e.companyDetails.companyName.lease:e.companyDetails.companyName.retail})]}),(0,J.jsxs)(e3,{children:[e.companyDetails.cityCode.label," ",(0,J.jsx)(e5,{children:g?e.companyDetails.cityCode.lease:e.companyDetails.cityCode.retail})]})]})}),null==(t=e.additionalItems)?void 0:t.map(function(e,n){return(0,J.jsx)(e3,{children:e.split(/"([^"]+)"/g).map(function(e,n){return n%2==1?(0,J.jsxs)(e5,{children:['"',e,'"']},n):e})},"additional-".concat(n))})]}),null==(l=e.notes)?void 0:l.map(function(e,n){return(0,J.jsx)(ni,{children:e},"note-".concat(n))})]})]},n)})}),(0,J.jsx)(e9,{children:(0,J.jsxs)(e7,{children:[b.accountSection.label,(0,J.jsx)(ne,{children:_})]})}),(0,J.jsxs)(nn,{children:[(0,J.jsx)(nt,{children:b.disclaimerSection.nextStepsTitle}),(0,J.jsx)(nl,{children:b.disclaimerSection.items.map(function(e,n){return(0,J.jsxs)("li",{style:{marginBottom:8},children:[e.title&&(0,J.jsx)("span",{style:{fontSize:"12px"},children:e.title}),e.title&&e.content.length>1?(0,J.jsx)(e8,{style:{marginTop:8},children:e.content.map(function(e,n){return(0,J.jsx)(e3,{children:e},n)})}):(0,J.jsx)("div",{style:{marginTop:8*!!e.title,fontSize:"12px"},children:e.content[0]})]},n)})}),(0,J.jsx)(no,{onClick:function(){var e;nu("call_".concat(eM.qt.toLowerCase(),"_help").concat((0,F.n4)(null==b||null==(e=b.callButton)?void 0:e.phoneNumber).replace(/[^0-9]+/g,"_"))),window.location.href="tel:".concat(b.callButton.phoneNumber)},children:b.callButton.label})]})]})]})})})}function nm(e){var n,t,o,i=e.show,r=e.close,a=(0,l.useState)(120),s=a[0],u=a[1],d=(0,l.useRef)(null),p=(0,c.useSelector)(S.p6),h=(0,c.useSelector)(D.H),f=(0,c.useSelector)(O.Kz),y=(0,W.PR)(h,f),x=(0,W.yn)(y),g=null==p||null==(n=p.content)||null==(n=n.components)||null==(n=n.nsfSlider)?void 0:n.checkFreeSection,v=null==p||null==(t=p.content)||null==(t=t.components)||null==(t=t.nsfSlider)?void 0:t.wucfCommonSection,b=(null==x?void 0:x.isTCPRAccount)===!0?null==v?void 0:v.tcprCallButton:null==v?void 0:v.callButton;if((0,l.useEffect)(function(){if(i){var e=setTimeout(function(){if(d.current){var e=d.current.querySelector(".step-content");e&&u(e.offsetHeight)}},200);return ns("openCheckFreePay"),function(){return clearTimeout(e)}}},[i,g]),!g||!v)return null;var j=function(){r()},_=null==x?void 0:x.accountNumber;return(0,J.jsx)(eA.aF,{transitionDuration:{appear:150,enter:300,exit:150},anchor:"right",open:i,onClose:j,children:(0,J.jsx)(eA.Bs,{children:(0,J.jsxs)(eA.$5,{children:[(0,J.jsxs)(eA.UG,{children:[(0,J.jsx)(eA.uG,{children:g.title}),(0,J.jsx)(eA.hB,{children:(0,J.jsx)(m.K0,{onClick:function(){nu("close"),j()},children:(0,J.jsx)(m._V,{type:"icons",height:20,width:20,quality:100,alt:"close-icon",filename:"close.svg"})})})]}),(0,J.jsx)(eJ,{children:(0,J.jsx)(m._V,{type:"icons",filename:"check_free_pay.svg",alt:"CheckFreePay"})}),(0,J.jsxs)(eZ,{children:[(0,J.jsx)(eK,{children:g.heading}),(0,J.jsx)(eX,{children:null==(o=g.steps)?void 0:o.map(function(e,n){var t;return(0,J.jsxs)(eQ,{ref:0===n?d:null,children:[(0,J.jsxs)(e0,{children:[(0,J.jsx)(e1,{}),0===n&&(0,J.jsx)(e2,{height:s})]}),(0,J.jsxs)(e4,{className:"step-content",children:[(0,J.jsx)(e6,{children:e.title}),(0,J.jsx)(e8,{children:e.items.map(function(e,n){var t=e$(e,g.links);return eG(t)?(0,J.jsx)(e3,{onClick:function(){var e;nu(String(new URL(null==(e=t.match(/href="([^"]*)"/))?void 0:e[1]).hostname))},dangerouslySetInnerHTML:{__html:t}},n):(0,J.jsx)(e3,{children:t},n)})}),null==(t=e.notes)?void 0:t.map(function(e,n){return(0,J.jsx)(ni,{children:e},"note-".concat(n))})]})]},n)})}),(0,J.jsx)(e9,{children:(0,J.jsxs)(e7,{children:[v.accountSection.label,(0,J.jsx)(ne,{children:_})]})}),(0,J.jsxs)(nn,{children:[(0,J.jsx)(nt,{children:v.disclaimerSection.nextStepsTitle}),(0,J.jsx)(nl,{children:v.disclaimerSection.items.map(function(e,n){return(0,J.jsxs)("li",{style:{marginBottom:8},children:[e.title&&(0,J.jsx)("span",{style:{fontSize:"12px"},children:e.title}),e.title&&(e.checkFreeContent||e.content).length>1?(0,J.jsx)(e8,{style:{marginTop:8},children:(e.checkFreeContent||e.content).map(function(e,n){return(0,J.jsx)(e3,{children:e},n)})}):(0,J.jsx)("div",{style:{marginTop:8*!!e.title,fontSize:"12px"},children:(e.checkFreeContent||e.content)[0]})]},n)})}),(0,J.jsx)(no,{onClick:function(){nu("call_".concat(eM.qt.toLowerCase(),"_help").concat((0,F.n4)(null==b?void 0:b.phoneNumber).replace(/[^0-9]+/g,"_"))),window.location.href="tel:".concat(null==b?void 0:b.phoneNumber)},children:null==b?void 0:b.label})]})]})]})})})}function np(e){var n,t,o,i,r,a,s=e.show,u=e.close,d=(0,c.useSelector)(S.p6),p=(0,c.useSelector)(D.H),h=(0,c.useSelector)(O.Kz),f=(0,W.PR)(p,h),y=(0,W.yn)(f),x=null==d||null==(n=d.content)||null==(n=n.components)||null==(n=n.nsfSlider)?void 0:n.managersCheckSection,g=null==d||null==(t=d.content)||null==(t=t.components)||null==(t=t.nsfSlider)?void 0:t.wucfCommonSection;if((0,l.useEffect)(function(){s&&ns("openManagersCheck")},[s]),!x)return null;var v=function(){return u()},b=null==y?void 0:y.accountNumber;return(0,J.jsx)(eA.aF,{transitionDuration:{appear:150,enter:300,exit:150},anchor:"right",open:s,onClose:v,children:(0,J.jsx)(eA.Bs,{children:(0,J.jsxs)(eA.$5,{children:[(0,J.jsxs)(eA.UG,{children:[(0,J.jsx)(eA.uG,{children:x.title}),(0,J.jsx)(eA.hB,{children:(0,J.jsx)(m.K0,{onClick:function(){nu("close"),v()},children:(0,J.jsx)(m._V,{type:"icons",height:20,width:20,quality:100,alt:"close-icon",filename:"close.svg"})})})]}),(0,J.jsxs)(eZ,{children:[(0,J.jsx)(eK,{children:x.heading}),(0,J.jsx)(eX,{children:null==(o=x.steps)?void 0:o.map(function(e,n){var t,l;return(0,J.jsxs)(eQ,{children:[(0,J.jsxs)(e0,{children:[(0,J.jsx)(e1,{}),0===n&&(0,J.jsx)(e2,{height:60})]}),(0,J.jsxs)(e4,{children:[(0,J.jsx)(e6,{children:e.title}),(0,J.jsxs)(e8,{children:[null==(t=e.items)?void 0:t.map(function(e,n){return(0,J.jsx)(e3,{children:e},n)}),null!=(l=e.additionalItems)&&l.length?(0,J.jsx)("li",{style:{listStyle:"none"},children:(0,J.jsx)(e8,{children:e.additionalItems.map(function(e,n){return(0,J.jsx)(e3,{children:e},"additional-".concat(n))})})}):null]})]})]},n)})}),(0,J.jsx)(e9,{children:(0,J.jsxs)(e7,{children:[null==g||null==(i=g.accountSection)?void 0:i.label,(0,J.jsx)(ne,{children:b})]})}),(0,J.jsxs)(nn,{children:[(0,J.jsx)(nt,{children:x.nextStepsTitle}),(0,J.jsx)(nl,{as:"ul",style:{listStyle:"disc"},children:null==(r=x.nextStepsItems)?void 0:r.map(function(e,n){return(0,J.jsx)(e3,{children:e},n)})}),(0,J.jsx)(no,{onClick:function(){var e,n;nu("call_".concat(eM.qt.toLowerCase(),"_help").concat((0,F.n4)(null==x||null==(e=x.callButton)?void 0:e.phoneNumber).replace(/[^0-9]+/g,"_"))),window.location.href="tel:".concat(null==x||null==(n=x.callButton)?void 0:n.phoneNumber)},children:null==x||null==(a=x.callButton)?void 0:a.label})]})]})]})})})}function nh(e){var n,t,o,i,r,a,s=e.show,u=e.close,d=(0,c.useSelector)(S.p6),p=(0,c.useSelector)(D.H),h=(0,c.useSelector)(O.Kz),f=(0,W.PR)(p,h),y=(0,W.yn)(f),x=null==d||null==(n=d.content)||null==(n=n.components)||null==(n=n.nsfSlider)?void 0:n.moneyOrderSection,g=null==d||null==(t=d.content)||null==(t=t.components)||null==(t=t.nsfSlider)?void 0:t.wucfCommonSection;if((0,l.useEffect)(function(){s&&ns("openMoneyOrder")},[s]),!x)return null;var v=function(){return u()},b=null==y?void 0:y.accountNumber;return(0,J.jsx)(eA.aF,{transitionDuration:{appear:150,enter:300,exit:150},anchor:"right",open:s,onClose:v,children:(0,J.jsx)(eA.Bs,{children:(0,J.jsxs)(eA.$5,{children:[(0,J.jsxs)(eA.UG,{children:[(0,J.jsx)(eA.uG,{children:x.title}),(0,J.jsx)(eA.hB,{children:(0,J.jsx)(m.K0,{onClick:function(){nu("close"),v()},children:(0,J.jsx)(m._V,{type:"icons",height:20,width:20,quality:100,alt:"close-icon",filename:"close.svg"})})})]}),(0,J.jsxs)(eZ,{children:[(0,J.jsx)(eK,{children:x.heading}),(0,J.jsx)(eX,{children:null==(o=x.steps)?void 0:o.map(function(e,n){var t,l;return(0,J.jsxs)(eQ,{children:[(0,J.jsxs)(e0,{children:[(0,J.jsx)(e1,{}),0===n&&(0,J.jsx)(e2,{height:60})]}),(0,J.jsxs)(e4,{children:[(0,J.jsx)(e6,{children:e.title}),(0,J.jsxs)(e8,{children:[null==(t=e.items)?void 0:t.map(function(e,n){return(0,J.jsx)(e3,{children:e},n)}),null!=(l=e.additionalItems)&&l.length?(0,J.jsx)("li",{style:{listStyle:"none"},children:(0,J.jsx)(e8,{children:e.additionalItems.map(function(e,n){return(0,J.jsx)(e3,{children:e},"additional-".concat(n))})})}):null]})]})]},n)})}),(0,J.jsx)(e9,{children:(0,J.jsxs)(e7,{children:[null==g||null==(i=g.accountSection)?void 0:i.label,(0,J.jsx)(ne,{children:b})]})}),(0,J.jsxs)(nn,{children:[(0,J.jsx)(nt,{children:x.nextStepsTitle}),(0,J.jsx)(nl,{as:"ul",style:{listStyle:"disc"},children:null==(r=x.nextStepsItems)?void 0:r.map(function(e,n){return(0,J.jsx)(e3,{children:e},n)})}),(0,J.jsx)(no,{onClick:function(){var e,n;nu("call_".concat(eM.qt.toLowerCase(),"_help").concat((0,F.n4)(null==x||null==(e=x.callButton)?void 0:e.phoneNumber).replace(/[^0-9]+/g,"_"))),window.location.href="tel:".concat(null==x||null==(n=x.callButton)?void 0:n.phoneNumber)},children:null==x||null==(a=x.callButton)?void 0:a.label})]})]})]})})})}var nf=t(63960);function ny(e){var n,t,o,i,r,s,u,d,p,f=e.setSpinnerBool,y=e.payPayload,b=e.handleAmount,C=e.handleBankId,w=e.handleStartDate,N=e.handleMakePayment,T=e.theme,R=e.isDupl
1icateModalOpen,q=e.flow,Y=e.minimumPaymentAmount,H=(0,B.useRouter)(),z=(0,c.useSelector)(S.p6),$=(0,c.useSelector)(D.H),G=(0,c.useSelector)(O.Kz),Z=(0,W.PR)($,G),K=(0,W.yn)(Z),Q=(0,c.useSelector)(x.oY),en=(0,c.useSelector)(x.Z3),et=(0,c.useSelector)(x.Qp),el=(0,c.useSelector)(x.jM),eo=(0,a.A)("(max-width:"+F.Ay.sizes.tabletS+"px)"),ei=(0,l.useState)(!1),er=ei[0],ea=ei[1],ec=(0,l.useState)(!1),es=ec[0],eu=ec[1],ed=(0,l.useState)(!1),em=ed[0],ep=ed[1],eh=(0,l.useState)(""),ef=eh[0],ex=eh[1],eg=(0,l.useState)(""),eb=(eg[0],eg[1]),e_=(0,l.useState)(!1),eC=e_[0],eS=e_[1],ew=(0,l.useState)(null),eA=ew[0],ek=ew[1],eD=(0,l.useRef)(!1),eO=(0,l.useRef)(null),eN=(0,l.useState)(!1),eT=eN[0],eF=eN[1],eI=(0,l.useState)(!1),eL=eI[0],eR=eI[1],eB=(0,l.useState)(!1),eq=eB[0],eW=eB[1],eU=(0,l.useState)(!1),ez=eU[0],e$=eU[1],eG=(0,c.useDispatch)(),eZ=y.amount,eK=y.startDate,eJ=""!=eZ?parseFloat(eZ.toString().replace(/\,/g,"")):eZ,eX=(0,c.useSelector)(x.Z),eQ=!!eX,e0=(0,ee.G2)().collectionTreatmentData,e1="REDEEM"===eX?null==e0||null==(n=e0.repossessedDetails)||null==(n=n.redeemDetails)?void 0:n.redemptionAmount:null==e0||null==(t=e0.repossessedDetails)||null==(t=t.reinstateDetails)?void 0:t.reinstatePaymentAmount,e2=(0,c.useSelector)(x.wf),e4=(0,c.useSelector)(x.gi),e6=null==K?void 0:K.productType,e8=(null==K?void 0:K.isTCPRAccount)===!0,e3=(0,l.useState)(!1),e5=e3[0],e9=e3[1],e7=null==z||null==(o=z.content)?void 0:o.components,ne="AbusivePromiseUser"===q,nn=(null==e6?void 0:e6.toLowerCase())=="l"||(null==e6?void 0:e6.toLowerCase())=="lease",nt=parseFloat(null==K?void 0:K.totalPaymentAmountRemaining),nl=parseFloat(null==K?void 0:K.netPayoffAmount),no=eJ>parseFloat(null==K?void 0:K.totalAmountDue),ni=parseFloat(String(null!=(i=null==K?void 0:K.outstandingPaymentDue)?i:"0").replace(/,/g,""))||0,nr=ne?ni:Y,na=""!==eJ&&("NSF"!==q?nr&&eJ<nr:eJ<5)||nn&&eJ>nt||!nn&&eJ>nl,nc=!eC||!eQ&&(""===eJ||na),ns=function(){e8&&"NSF"!==q?e9(!0):ep(!0)},nu=function(e){if(en&&en.size>0){var n,t=en.get(el)[0],l=(null==(n=t.CreditCardMaskNumber)?void 0:n.slice(-4))||"****";eS(!0),eD.current=!0,eO.current={accountId:t.AccountId,bankId:t.Id,defaultBankSuccessorId:null},eb(t.Id),ex(l),ek(t),C({Id:t.Id,AchAccountNumberMask:t.CreditCardMaskNumber,CreditCardMaskNumber:t.CreditCardMaskNumber,Type:t.Type,CreditCardType:t.CreditCardType}),e&&eH("repo_payment_debit_card_add_success",t.CreditCardType),e&&eE.W.success(eM.pU,"debitCardAdded")}},ny=function(e){eb(e);var n=Q.get(el),t=null==n?void 0:n.find(function(n){return n.Id===e});t&&C({Id:t.Id,AchAccountNumberMask:t.CreditCardMaskNumber,CreditCardMaskNumber:t.CreditCardMaskNumber,Type:t.Type,CreditCardType:t.CreditCardType})},nx=z.content.components,ng=nx.confirmButton,nv=nx.PaymentFormSection.components,nb=nv.SelectAmount,nj=nv.SelectDate,n_=nx.PaymentOneTimeInfoSection.components,nC=n_.ReinstateAmount,nS=n_.RedemptionAmount,nw="REDEEM"===eX?null==nS?void 0:nS.label:null==nC?void 0:nC.label;(0,l.useEffect)(function(){eQ&&e1&&b(e1)},[eQ,e1]),(0,l.useEffect)(function(){et||eG(A.A.reStartLoader()),en&&en.size>0&&en.get(el).length>0&&nu(!1)},[en]),(0,l.useEffect)(function(){if(e2){var e=e4.get($)||[];(0,g.Dl)(e).length>0&&ea(!0)}},[]),(0,l.useEffect)(function(){eC&&eA&&C({Id:eA.Id,AchAccountNumberMask:eA.CreditCardMaskNumber,CreditCardMaskNumber:eA.CreditCardMaskNumber,Type:eA.Type,CreditCardType:eA.CreditCardType})},[eC,eA]);var nP=function(){return!eQ&&("NSF"===q?na||no:na)},nA=function(){if("NSF"===q)return no&&!na?(0,J.jsx)(v.lm,{children:nn?null==nb?void 0:nb.highValueInfoLease:null==nb?void 0:nb.highValueInfo}):(0,J.jsx)(v.Pv,{children:null==nb?void 0:nb.lowValueInfo});if(ne){var e,n,t,l=(null==nb?void 0:nb.pastDueAmountError)||(null==nb?void 0:nb.amountRangeError);if(l){var o=l.split(/({minAmount}|{payoffText})/);return(0,J.jsx)(v.Pv,{children:(0,J.jsx)("span",{children:o.map(function(e,n){return"{minAmount}"===e?(0,J.jsxs)("b",{children:["$",ni.toFixed(2)]},n):"{payoffText}"===e?(0,J.jsx)("b",{children:"Payoff"},n):e})})})}return null}var i=null==e7||null==(e=e7.RepossessionValidation)?void 0:e.customValidationMessage,r=(null==e7||null==(n=e7.RepossessionValidation)?void 0:n.phoneNumber)||(null==e7||null==(t=e7.RepossessionPayment)?void 0:t.defaultPhoneNumber);if(i){var a=i.split(/({minAmount}|{payoffText}|{phoneNumber})/);return(0,J.jsx)(v.Pv,{children:(0,J.jsx)("span",{children:a.map(function(e,n){return"{minAmount}"===e?(0,J.jsxs)("b",{children:["$",null==nr?void 0:nr.toFixed(2)]},n):"{payoffText}"===e?(0,J.jsx)("b",{children:"Payoff"},n):"{phoneNumber}"===e?(0,J.jsx)("b",{children:(0,J.jsx)("u",{children:(0,J.jsx)("a",{href:"tel:".concat(r),style:{color:"inherit",textDecoration:"none"},children:r})})},n):e})})})}return null};(0,l.useEffect)(function(){eD.current=eC},[eC]),(0,l.useEffect)(function(){eo&&!V.s.getBottomSheetNoteSeen()&&(V.s.setBottomSheetNoteSeen(!0),eu(!0))},[eo]);var nk={flex:"1 1 0",minWidth:0},nD=function(){if("NSF"!==q){var e,n=ne?null==e7?void 0:e7.AbusivePromiseUserNote:eQ?null==e7?void 0:e7.PostRepossessionNote:null==e7?void 0:e7.RepossessionNote,t=e8?null==e7||null==(e=e7.AddDebitCard)?void 0:e.tcprPhoneNumber:null==n?void 0:n.phoneNumber;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("b",{children:null==n?void 0:n.title})," ",ne?null==n?void 0:n.contentPart1:null==n?void 0:n.content," ",(0,J.jsx)("b",{children:(0,J.jsx)("u",{children:(0,J.jsx)(v.vU,{onClick:function(){return eY("pd_repo_"+t,"km-past-due-repo-payment-page-call-us-click")},href:"tel:".concat(t),children:t})})}),ne?" "+((null==n?void 0:n.contentPart2)||""):null]})}var l,o,i,r,a,c,s,u=e8?null==e7||null==(l=e7.AddDebitCard)?void 0:l.tcprPhoneNumber:null==e7||null==(o=e7.Add
1DebitCard)?void 0:o.phoneNumber;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("b",{children:null==e7||null==(i=e7.AddDebitCard)?void 0:i.noteTitle})," ",null==e7||null==(r=e7.AddDebitCard)?void 0:r.nsfNoteContentPart1,(0,J.jsx)(v.T_,{children:(0,J.jsx)(m.m_,{title:(0,J.jsx)(m._V,{type:"icons",filename:"info.svg",width:15,height:15,alt:"info icon",onClick:function(){return(0,nf.Tf)("nsf_info","nsf_tooltip")}}),placement:"bottom",children:(0,J.jsx)(v.sA,{children:e8?null==e7||null==(a=e7.AddDebitCard)?void 0:a.nsfTcprTooltipText:null==e7||null==(c=e7.AddDebitCard)?void 0:c.nsfTooltipText})})}),null==e7||null==(s=e7.AddDebitCard)?void 0:s.nsfNoteContentPart2," ",(0,J.jsx)("b",{children:(0,J.jsx)("u",{children:(0,J.jsx)(v.vU,{onClick:function(){"NSF"!==q&&eY("pd_repo_"+u,"km-past-due-repo-payment-page-call-us-click"),"NSF"===q&&(0,nf.Tf)("nsf_info",u)},href:"tel:".concat(u),children:u})})})]})};return(0,J.jsxs)(v.M5,{children:[(0,J.jsx)(eV,{setSpinnerBool:f,show:em,close:function(){ep(!1)},onDebitCardAdded:function(){nu(!0),ep(!1)},flow:q}),(0,J.jsx)(nd,{show:eT,close:function(){return eF(!1)}}),(0,J.jsx)(nm,{show:eL,close:function(){return eR(!1)}}),(0,J.jsx)(np,{show:eq,close:function(){return eW(!1)}}),(0,J.jsx)(nh,{show:ez,close:function(){return e$(!1)}}),(0,J.jsx)(ev,{isOpen:e5,onClose:function(){return e9(!1)}}),(0,J.jsx)(P.A,{showFrequency:!1}),!eo&&(0,J.jsx)(v.mZ,{children:nD()}),(0,J.jsx)("br",{}),(0,J.jsxs)("div",{className:U.KC,children:[!eo&&(0,J.jsxs)(v.DZ,{showFrequency:!1,children:[(0,J.jsx)("div",{style:nk,children:(0,J.jsx)(I.Vs,{showFrequency:!1,children:null==nb?void 0:nb.heading})}),(0,J.jsx)("div",{style:nk,children:(0,J.jsx)(E.Ju,{showFrequency:!1,children:null==nj?void 0:nj.heading})}),(0,J.jsx)("div",{style:nk,children:(0,J.jsx)(L.R$,{showFrequency:!1,$withLeftPad:!0,children:(null==e7||null==(r=e7.RepossessionPayment)?void 0:r.debitCardLabel)||"Debit Card"})})]}),eo?(0,J.jsxs)(v.wU,{children:[eQ?(0,J.jsx)(ej,{label:nw,amount:e1,heading:null==nb?void 0:nb.heading}):(0,J.jsx)(j.A,{frequencyPeriod:!1,amount:y.amount,handleAmount:b,accountDetails:K,theme:T,isError:na,accountType:e6,flow:q,isRepossession:!0,isAbusivePromiseUserFlow:ne}),nP()&&(0,J.jsx)(v.DZ,{children:nA()}),(0,J.jsx)(_.A,{startDate:eK,accountDetails:K,theme:T,handleStartDate:w,flow:q,isRepossession:!0}),(0,J.jsx)(eP,{handleAddDebitCardOpen:ns,handleWesternUnionOpen:function(){return eF(!0)},handleCheckFreePayOpen:function(){return eR(!0)},handleManagersCheckOpen:function(){return eW(!0)},handleMoneyOrderOpen:function(){return e$(!0)},cardLastFour:eC?ef:"",handleDebitCardId:ny,flow:q,onInfoIconClick:function(){eu(!0)}})]}):(0,J.jsxs)(v.Ez,{showFrequency:!1,isDarkMode:"light"!==T,children:[(0,J.jsx)("div",{style:nk,children:eQ?(0,J.jsx)(ej,{label:nw,amount:e1,heading:null==nb?void 0:nb.heading}):(0,J.jsx)(j.A,{frequencyPeriod:!1,amount:null==y?void 0:y.amount,handleAmount:b,accountDetails:K,theme:T,isError:na,accountType:e6,flow:q,isRepossession:!0,isAbusivePromiseUserFlow:ne})}),(0,J.jsx)("div",{style:nk,children:(0,J.jsx)(_.A,{startDate:eK,accountDetails:K,theme:T,handleStartDate:w,flow:q,isRepossession:!0})}),(0,J.jsx)("div",{style:nk,children:(0,J.jsx)("div",{className:U.pP,children:(0,J.jsx)(eP,{handleAddDebitCardOpen:ns,handleWesternUnionOpen:function(){return eF(!0)},handleCheckFreePayOpen:function(){return eR(!0)},handleManagersCheckOpen:function(){return eW(!0)},handleMoneyOrderOpen:function(){return e$(!0)},cardLastFour:eC?ef:"",handleDebitCardId:ny,flow:q})})})]})]}),!eo&&nP()&&(0,J.jsx)(v.DZ,{children:nA()}),"NSF"!==q&&(0,J.jsx)(v.oh,{children:null==e7||null==(s=e7.PastDueDisclaimer)?void 0:s.content}),(0,J.jsxs)(v.EZ,{children:[null==e7||null==(u=e7.debitCardPaymentDisclaimer)?void 0:u.disclaimerPart1,(0,J.jsx)(v.a7,{onClick:function(e){var n,t;eY("pd_repo_payment_terms","km-past-due-repo-payment-terms-condition-click",null==e7||null==(n=e7.paymentTermsConditionsHyperLink)?void 0:n.href),(0,M.d)(null==e7||null==(t=e7.paymentTermsConditionsHyperLink)?void 0:t.href)},children:null==e7||null==(d=e7.debitCardPaymentDisclaimer)?void 0:d.disclaimerPart2})]}),(0,J.jsx)(v.F4,{children:(0,J.jsx)(m.$n,{style:{minWidth:eo?"70vw":"288px",padding:"10px 30px",whiteSpace:"noWrap"},onClick:N,disabled:nc,rounded:!0,primary:!0,"data-testid":"repossession-submit",children:null==ng?void 0:ng.label})}),R&&(0,J.jsx)(k.A,{}),(0,J.jsx)(X,{isOpen:er,onClose:function(){eG(A.A.setPastDuePmtFlow(!1)),ea(!1),H.push(h.b.DASHBOARD)},onContinue:function(){eG(A.A.setPastDuePmtFlow(!1)),ea(!1)}}),(0,J.jsx)(ey,{isOpen:es,onClose:function(){eu(!1)},disclaimerContent:"NSF"!==q?null==e7||null==(p=e7.PastDueDisclaimer)?void 0:p.content:null,note:nD()})]})}var nx=t(85657),ng=t(13274),nv=t(70142),nb=t(84601),nj=t(35640),n_=t(82616);function nC(e){var n=e.handleShowFrequency,t=e.recurringData,o=(0,B.useRouter)(),i=(0,l.useState)(!1),r=i[0],a=i[1],s=(0,l.useState)({amount:"",startDate:""}),u=s[0],d=s[1],m=(0,l.useState)(""),p=m[0],f=m[1],y=(0,c.useSelector)(S.p6);(0,c.useSelector)(D.H);var x=y.content.components,g=x.buttonManageRecurringPayment,v=x.RecurringPaymentCardSection;return(0,J.jsxs)(nv.M5,{children:[(0,J.jsx)(nb.A,{flow:p,isModalOpen:r,data:u,setModalOpen:a}),(0,J.jsx)(P.A,{showFrequency:n,width:(0,F.NH)()?"80vw":null,margin:(0,F.NH)()?"0 auto":null}),(0,J.jsxs)(nv.tn,{margin:(0,F.NH)()?"40px auto 0 auto":null,children:[!F.NH&&(null==t?void 0:t.map(function(e,n){return(0,J.jsx)(nv.BP,{children:(0,J.jsx)(ng.A,{title:v.yourRecurringPaymentsTitle.label,flow:"YOUR_PAYMENT",recurringData:e,setModalOpen:a,setFlow:f,setModalData:d},n)},n)})),F.NH&&(0,J.jsx)(function(e){var n,t,l=e.recurringData;return(0,J.jsxs)(J.Fragment,{children:[!!(null!=l&&l.yourRecurringPayment)&&!!(null!=l&&l.yourRecurringPayment[0])&&(null==l||null==(n=l.yourRecurringPayment)?void 0:n.map(function(e,n){return(0,J.jsx)(nv.BP,{children:(0,J.jsx)(ng.A,{title:v.yourRecurringPaymentsTitle.label,flow:"YOUR_PAYMENT",recurringData:e,datakey:n,setModalOpen:a,setFlow:f,setModalData:d})},n)})),(0,F.NH)()&&!!(null!=l&&l.otherRecurringPayment)&&!!(null!=l&&l.otherRecurringPayment[0])&&(null==l||null==(t=l.otherRecurringPayment)?void 0:t.map(function(e,n){return(0,J.jsx)(nv.BP,{children:(0,J.jsx)(ng.A,{title:"Other Recurring Payments",flow:"YOUR_PAYMENT",recurringData:e,datakey:n,setModalOpen:a,setFlow:f,setModalData:d})},n)}))]})},{recurringData:t})]}),(0,J.jsx)(nv.Cb,{children:(0,J.jsx)(nj.A,{onClick:function(e){(0,q.oN)(e,h.b.MANAGE_RECURRING_PAYMENT),o.push(h.b.MANAGE_RECURRING_PAYMENT)},primary:!0,rounded:!0,children:g.label})})]})}var nS=t(95028),nw=t(50023),nP=t(82289),nA=t(97419),nk=t(10408);function nD(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,l)}return t}function nO(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?nD(Object(t),!0).forEach(function(n){(0,r.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nD(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function nN(e){var n,t,o,i,r,s,d,p,f,y,g,v,b,j,_,C,w,P,k,O,N,T,I,E,L,R,W=e.show,U=(e.setShow,e.close),V=e.accountSummary,$=e.confirmObject,G=e.accountDetails,Z=e.handleAddBankOpen,K=(0,c.useDispatch)(),X=(0,B.useRouter)(),ee=(0,l.useState)(!1),en=ee[0],et=ee[1],el=(0,l.useState)(!1),eo=el[0],ei=el[1],er=(0,c.useSelector)(S.p6),ea=null==er||null==(n=er.content)?void 0:n.components,ec=er.content.components,es=ec.PaymentFormSection.components.SelectAmount;ec.selectAmountContent;var eu=(0,a.A)("(max-width:"+F.Ay.sizes.mobileL+"px)"),ed=(0,c.useSelector)(x.nU),em=(0,c.useSelector)(D.H),ep=(0,c.useSelector)(x.gi).get(em),eh=null==V?void 0:V.coreSORNewRegisteredDay1,ef=(0,c.useSelector)(S.ZG),ey=(null==ef||null==(t=ef.content)?void 0:t.enableRevampedPayoffFlow)==="true",ex=(0,F.sb)(ep,ef),eg={bankId:"",frequency:"One-Time",amount:"",startDate:"",AchAccountNumberMask:"",isRegular:!1,formattedAmount:"",achAccountType:""},ev=(0,l.useState)(function(){return eg}),ej=ev[0],e_=ev[1],eC=ej.amount,eS=ej.startDate,ew=ej.AchAccountNumberMask,eP=ej.formattedAmount,ek=ej.achAccountType,eD=null!=V&&V.currentBalance&&null!=ed&&null!=(o=ed.response)&&o.minimumPrincipalOnlyPayment?parseFloat(null==V?void 0:V.currentBalance)-parseFloat(null==ed||null==(i=ed.response)?void 0:i.minimumPrincipalOnlyPayment):null==V?void 0:V.currentBalance,eO=parseFloat(null==V?void 0:V.payoffAmount),eN=(0,F.hL)(eD),eT=parseFloat(eC)>eD,eF=(null==eC?void 0:eC.toString().replace(/\,/g,""))!==""&&5>parseFloat(eC),eM=(0,l.useState)(!1);eM[0],eM[1];var eI=(0,l.useState)(!1),eE=eI[0],eL=eI[1],eR=(0,c.useSelector)(x.LI),eB=(0,c.useSelector)(x.Ob),eq=function(){if((0,nf.iU)(X.asPath,ej,"PRINCIPAL PAYMENT CONFIRMATION",!!eR&&!eB),ep.some(function(e){var n,t,l,o;return u()().format("MM/DD/YYYY")===(null==e?void 0:e.createDate)&&((null==e?void 0:e.paymentCategory)==="Principal Only"||(null==e?void 0:e.principalPayment)==="Y")&&((null==e||null==(n=e.status)?void 0:n.toUpperCase())==="IN PROCESS"||(null==e||null==(t=e.status)?void 0:t.toUpperCase())==="SCHEDULED")&&(null==e||null==(l=e.channel)?void 0:l.toUpperCase())!=="AGENT DESKTOP"&&(null==e||null==(o=e.channel)?void 0:o.toUpperCase())!=="AGENT"}))eW(!0),ei(!0);else{var e,n,t="";n=parseFloat(t=""!==(t=(0,F.hL)(eC))&&(null==(e=t)?void 0:e.length)&&t.replace(",","")),e_(function(e){return nO(nO({},e),{},{amount:n})}),$(ej),K(A.A.makeAScedulePayment(ej)),eW(!0)}},eW=function(e){e||(0,q.cc)(),U(),e_(eg),setTimeout(function(){(0,z.yC)("one_time_payment_dashboard")},200)},eU=function(){(0,q._3)(),U(),e_(eg),setTimeout(function(){(0,z.yC)("one_time_payment_dashboard")},200)},eY=function(e){e=e.indexOf(".")>=0?e.substr(0,e.indexOf("."))+e.substr(e.indexOf("."),3):e,e_(function(n){return nO(nO({},n),{},{amount:e})}),eH(e)},eH=function(e){var n=void 0!==e?e:eC;ey&&parseFloat(n)>=eO&&!ex&&!eh&&eO>0&&eL(!0)};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(eA.aF,{transitionDuration:{appear:150,enter:300,exit:150},anchor:"right",open:W,children:(0,J.jsx)(nP.x,{onClickAway:function(){return eW(!1)},children:(0,J.jsxs)(eA.Xb,{onClick:function(e){return e.stopPropagation()},children:[(0,J.jsxs)(eA.rm,{children:[(0,J.jsxs)(eA.k3,{children:[(0,J.jsx)(eA.Ir,{children:null==ea||null==(r=ea.POPSliderContent)?void 0:r.sliderHeader}),(0,F.NH)()&&!eu&&(0,J.jsx)(eA.NZ,{children:(0,J.jsx)(m.K0,{onClick:function(){return eW(!1)},children:(0,J.jsx)(m._V,{type:"icons",height:20,width:20,quality:100,alt:"close-icon",filename:"close.svg"})})}),eu&&(0,J.jsx)(m.K0,{onClick:function(){return eW(!1)},children:(0,J.jsx)(m._V,{onClick:function(){return eW(!1)},type:"icons",filename:"close (1).svg",width:24,height:24,alt:"close-icon-1"})})]}),(0,J.jsx)(eA.Aw,{children:null==ea||null==(s=ea.POPSliderContent)?void 0:s.sliderDescription}),(0,J.jsx)(eA.AX,{children:null==ea||null==(d=ea.editPaymentSliderLabels)?void 0:d.amountLabel}),(0,J.jsx)(eA.PL,{error:!!eF||!!eT,children:(0,J.jsx)(eb.A,{alignItems:!0,fullWidth:!0,label:null==ea||null==(p=ea.POPSliderContent)?void 0:p.amountInputLabel,amountError:eF||eT?"error-alert.svg":"",content:(0,J.jsx)(eA.Rd,{"data-testid":"popAmount",error:!!eF||!!eT,onKeyDown:function(e){if(/^[0-9]$/.test(parseInt(e.key))||"Backspace"===e.key||"Tab"===e.key||e.ctrlKey&&"c"===e.key||e.ctrlKey&&"v"===e.key||"."===e.key)return!0;e.preventDefault()},value:en?eC:eP,onChange:function(e){return eY(e.target.value)},placeholder:"Enter Amount",onBlur:function(){et(!1),eH(),e_(function(e){return nO(nO({},e),{},{formattedAmount:eC?(0,F.ej)(eC):""})})},onFocus:function(){return et(!0)}})})}),eF&&(0,J.jsx)(eA.kL,{children:null==ea||null==(f=ea.POPSliderContent)?void 0:f.lowerLimitErrorText}),eT&&!eF&&(0,J.jsx)(eA.kL,{children:null==ea||null==(y=ea.POPSliderContent)?void 0:y.upperLimitErrorText}),(0,J.jsxs)(eA.fB,{children:[null==ea||null==(g=ea.POPSliderContent)?void 0:g.maxPOPAmountText," $",eN]}),(0,J.jsx)(nk.A,{paymentScheduledDate:eS,handlePayOn:function(e){e_(function(n){return nO(nO({},n),{},{startDate:e})})},accountDetails:G,showOn:"createPOP"}),(0,J.jsx)(nA.A,{handlePayFrom:function(e){e_(function(n){return nO(nO({},n),{},{bankId:e.Id,accountType:e.accountType,AchAccountNumberMask:e.AchAccountNumberMask,achAccountType:e.AchAccountType})})},achAccountNumberMask:ew,achAccountType:ek,handleAddBankOpen:Z,bankNoteType:"principalOnly"})]}),(0,J.jsxs)(eA.NM,{children:[(0,J.jsx)("br",{}),(0,J.jsx)("br",{}),(0,J.jsx)(eA.N0,{children:null==ea||null==(v=ea.POPSliderContent)?void 0:v.popStatement}),(0,J.jsxs)(eA.DY,{children:[(0,J.jsx)(eA.W4,{children:null==ea||null==(b=ea.onetimeDisclaimerContent)?void 0:b.disclaimerPart1}),(0,J.jsxs)(eA.f,{onClick:function(e){var n;return(0,M.d)(null==ea||null==(n=ea.paymentTermsConditionsHyperLink)?void 0:n.href)},children:[" ",null==ea||null==(j=ea.onetimeDisclaimerContent)?void 0:j.disclaimerPart2]})]}),(0,J.jsxs)(eA.PQ,{children:[(0,J.jsx)(eA.Xo,{children:(0,J.jsx)(m.$n,{"aria-label":null==ea||null==(_=ea.confirmButton)?void 0:_.label,onClick:function(e){eq()},disabled:!eC||eT||eF||!ew||!eS,style:{width:(0,F.NH)()?"391px":"288px",padding:"10px 30px",whiteSpace:"noWrap"},rounded:!0,primary:!0,children:null==ea||null==(C=ea.confirmButton)?void 0:C.label})}),!(0,F.NH)()&&(0,J.jsx)(eA.hR,{onClick:eU,children:null==ea||null==(w=ea.cancelFiltersHyperLink)?void 0:w.label}),F.NH&&(0,J.jsx)(eA.hR,{children:(0,J.jsx)(m.$n,{onClick:eU,style:{width:(0,F.NH)()?"391px":"288px",padding:"10px 30px",whiteSpace:"noWrap",textDecoration:"underline",background:"white",color:"black"},rounded:!0,children:null==ea||null==(P=ea.cancelFiltersHyperLink)?void 0:P.label})})]})]}),(0,J.jsx)(Q.A,{isOpen:eE,onClose:function(){eL(!1)},onContinue:function(){eL(!1),X.push(h.b.PAYOFF_QUOTE)},minAmount:"$".concat(null==eO?void 0:eO.toFixed(2)),aemContent:{title:null==es||null==(k=es.PayoffAmountAlertModal)?void 0:k.title,message:null==es||null==(O=es.PayoffAmountAlertModal)?void 0:O.message,continueButtonLabel:null==es||null==(N=es.PayoffAmountAlertModal)?void 0:N.initiatePayoffButtonLabel,changeAmountButtonLabel:null==es||null==(T=es.PayoffAmountAlertModal)?void 0:T.adjustAmountButtonLabel}})]})})}
1),(0,J.jsx)(eA.aF,{transitionDuration:{appear:500,enter:500,exit:500},anchor:"right"}),eo&&(0,J.jsxs)(Y.default,{isOpen:eo,title:null==ea||null==(I=ea.duplicatePaymentModel)?void 0:I.title,currentPage:2,modalheight:"391px",modalwidth:"410px",modalheightpercentage:"36%",top:(0,F.NH)()?"25%":"16%",subTitle:null==ea||null==(E=ea.POPSliderContent)?void 0:E.duplicateModalDesc,children:[(0,J.jsx)(H.Li,{children:null==ea||null==(L=ea.POPSliderContent)?void 0:L.duplicateModalDesc}),(0,J.jsx)(H.hR,{children:(0,J.jsx)(m._V,{type:"images",height:(0,F.NH)()?60:140,width:(0,F.NH)()?60:140,quality:100,alt:"duplicate_pop_image",filename:"icons-custom-alert.png"})}),(0,J.jsx)(H.DV,{children:(0,J.jsx)(m.$n,{primary:!0,fullWidth:!0,rounded:!0,onClick:function(){(0,q.cc)("duplicate_principal_payment"),setTimeout(function(){(0,z.yC)("one_time_payment_dashboard")},200),ei(!1)},children:null==ea||null==(R=ea.POPSliderContent)?void 0:R.duplicateModalBtn})})]})]})}var nT=t(11653),nF=t(8799),nM=t(14887),nI=t(30949),nE=t(59797),nL=t(84211);function nR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,l)}return t}function nB(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?nR(Object(t),!0).forEach(function(n){(0,r.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nR(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var nq=y()(function(){return Promise.all([t.e(3963),t.e(8894),t.e(8679)]).then(t.bind(t,38894))},{ssr:!1,loadableGenerated:{webpack:function(){return[38894]}}});function nW(e){var n,t,o,s,f,y,b,j,_,C,w,P,k,N,T,M,I,E,L,R,Y,H,$,G,Z,K,X,Q,en,et,el,eo,ei,er,ea,ec,es,eu=e.type,ed=e.setSpinnerBool,em=e.togglevalue,ep=(0,c.useSelector)(x.qT),eh=(0,c.useSelector)(x.dg),ef=(0,c.useSelector)(x.UZ),ey=(0,c.useSelector)(S.p6),ex=(0,c.useSelector)(S.ZG),ev=null!=(n=null==ey||null==(t=ey.content)||null==(t=t.components)||null==(t=t.PaymentToggle)||null==(t=t.toggleButtons[0])?void 0:t.label)?n:"",eb=null!=(o=null==ey||null==(s=ey.content)||null==(s=s.components)||null==(s=s.PaymentToggle)||null==(s=s.toggleButtons[1])?void 0:s.label)?o:"",ej=null==ey||null==(f=ey.content)||null==(f=f.components)?void 0:f.recurringPaymentPush,e_=(0,a.A)("(max-width:"+F.Ay.sizes.tabletS+"px)"),eC=(0,l.useState)(em),eS=eC[0],ew=eC[1],eP=(0,l.useState)(!1),eA=eP[0],ek=eP[1],eD=(0,l.useState)(!1),eO=eD[0],eN=eD[1],eT=(0,c.useDispatch)(),eF=(0,c.useSelector)(x.LI),eI=(0,c.useSelector)(x.Ob),eE=(0,c.useSelector)(x.MA),eR=(0,c.useSelector)(function(e){return e.layout}),eB=(0,c.useSelector)(D.H),eq=(0,c.useSelector)(O.Kz),eW=(0,W.PR)(eB,eq),eH=(0,W.yn)(eW),ez=null==eH?void 0:eH.productType,eV=(0,c.useSelector)(S.p6),e$=(0,c.useSelector)(nF.uB),eG=(0,l.useState)(""),eZ=eG[0],eK=eG[1],eJ=eV.content.components,eX=(eJ.PaymentToggle,eJ.paymentConfirmationContent),eQ=eJ.POPSliderContent,e0=(0,B.useRouter)(),e1={bankId:"",frequency:"One-Time",amount:"",startDate:"",AchAccountNumberMask:"",isRegular:!0},e2=(0,l.useState)([]),e4=e2[0],e6=e2[1],e8=(0,l.useState)({}),e3=e8[0],e5=e8[1],e9=(0,l.useState)(),e7=e9[0],ne=e9[1],nn=(0,l.useState)(function(){return e1}),nt=nn[0],nl=nn[1],no=(0,l.useState)(!1),ni=no[0],nr=no[1],na=(0,l.useState)(function(){return e1}),nc=na[0],ns=na[1],nu=(0,c.useSelector)(x.mR),nd=(0,W.L5)(eW,nu),nm=(null==ez?void 0:ez.toLowerCase())=="l"||(null==ez?void 0:ez.toLowerCase())=="lease",np=(0,c.useSelector)(x._w),nh=(0,c.useSelector)(x.YL),ng=nh.get(eB),nv=(0,c.useSelector)(x.gi),nb=nv.get(eB),nj=(0,ee.G2)().collectionTreatmentData,nP=(0,ee.Lp)(eB,nv,nj,ex),nA=(0,c.useSelector)(x.nU),nk=null!=(y=null==nA||null==(b=nA.response)?void 0:b.minimumPrincipalOnlyPayment)?y:"56",nD=u()(null==nA||null==(j=nA.response)?void 0:j.asapOnetimeDate).format("YYYY-MM-DD"),nO=nP&&null!=nA&&null!=(_=nA.response)&&null!=(_=_.paymentRestrictions)&&_.asapOnetimeDate?u()(null==nA||null==(C=nA.response)||null==(C=C.paymentRestrictions)?void 0:C.asapOnetimeDate).format("YYYY-MM-DD"):nD,nR=u()(null==nA?void 0:nA.serverTimeStamp).format("YYYY-MM-DD"),nW=u()(null==eH?void 0:eH.nextPaymentDate).format("YYYY-MM-DD"),nU=nW>nR?nW:u()(null==nA||null==(w=nA.response)?void 0:w.asapMonthlyRecurringDate).format("YYYY-MM-DD"),nY=(0,c.useSelector)(x.ZM),nH=(0,c.useSelector)(x.jM),nz=nY.get(nH),nV=(0,c.useSelector)(x.oY),n$=(0,W.PR)(eB,eq),nG=(0,ee.jD)(n$,ex),nZ=nG.isRepossession,nK=nG.minimumPaymentAmount,nJ=(null==nj?void 0:nj.abusivePromiseUser)===!0,nX=(0,c.useSelector)(x.Z),nQ=!!nX,n0=(null==(P=String(null==ex||null==(k=ex.content)?void 0:k.enableNSFModal))?void 0:P.toLowerCase())!=="false"&&(null==nd||null==(N=nd.customerType)?void 0:N.toLowerCase().includes("nsf")),n1=(null==(T=String(null==ex||null==(M=ex.content)?void 0:M.enableRecurringNudge))?void 0:T.toLowerCase())==="true",n2=(0,
1c.useSelector)(O.RR);(0,W.L5)(n$,n2);var n4=(0,l.useContext)(nM.Em).onContextChange,n6=(null==nA?void 0:nA.serverTimeStamp)||u()().format(),n8=((null==eH||null==(I=eH.productType)?void 0:I.toLowerCase())==="l"||(null==eH||null==(E=eH.productType)?void 0:E.toLowerCase())==="lease")&&u()(eH.accountMaturityDate).isBefore(u()(n6),"day"),n3=(0,g.qx)(nb)>=nK,n5=function(){e0.push(h.b.DASHBOARD)},n9=(0,l.useState)(!1),n7=n9[0],te=n9[1],tn=null==eH?void 0:eH.isPastDue,tt=(0,l.useCallback)(function(){th||ep||(nZ?n7||eU():n7||(0,nf.zz)(eS,e0.asPath,tn,n0),setTimeout(function(){te(!0)},100))},[nZ]);(0,nT.A)(tt),(0,l.useEffect)(function(){"2"===eS&&tn&&n5()},[eS,tn]),(0,l.useEffect)(function(){if("1"===eS){th||ep||null==(e=window.KAMPYLE_ONSITE_SDK)||null==(n=e.updatePageView)||n.call(e);var e,n,t,l,o=(0,z.xi)();(eA||"recurring_payment_dashboard"==o||ep)&&(null!=e0&&null!=(t=e0.query)&&t.referrer?e0.push({pathname:h.b.ONE_TIME_PAYMENT,query:{referrer:null==e0||null==(l=e0.query)?void 0:l.referrer}}):e0.push(h.b.ONE_TIME_PAYMENT)),setTimeout(function(){(0,z.yC)("one_time_payment_dashboard")},100)}else{th||ep||null==(i=window.KAMPYLE_ONSITE_SDK)||null==(r=i.updatePageView)||r.call(i);var i,r,a,c,s=(0,z.xi)();(eA||"one_time_payment_dashboard"==s||ep)&&(null!=e0&&null!=(a=e0.query)&&a.referrer?e0.push({pathname:h.b.RECURRING_PAYMENT,query:{referrer:null==e0||null==(c=e0.query)?void 0:c.referrer}}):e0.push(h.b.RECURRING_PAYMENT)),setTimeout(function(){(0,z.yC)("recurring_payment_dashboard")},100)}},[eS]),(0,l.useEffect)(function(){eB&&!nh.has(eB)&&nz&&(eT(A.A.reStartLoader()),eT(A.A.fetchRecurringPaymentsStarted()))},[eB,nz,nh]),(0,l.useEffect)(function(){var e,n,t,l,o={};if(eB&&ng&&e5((0,n_.m)(ng,eB)),eB&&ng){o="MFS"===eM.qt?{recurringpaymentplans:null==ng||null==(e=ng.recurringpaymentplans)?void 0:e.filter(function(e){return"Active"==e.status})}:{recurringpaymentplans:null==ng||null==(n=ng.recurringpaymentplans)?void 0:n.filter(function(e){return"Active"==e.status&&e.accountNumber==eB})};e6(F.NH?(0,n_.c)(null==(t=o)?void 0:t.recurringpaymentplans):{yourRecurringPayment:null==(l=o)?void 0:l.recurringpaymentplans})}},[ng,eB]);var tl=(0,l.useRef)(!1),to=(0,l.useRef)(em);(0,l.useEffect)(function(){var e=eS!==to.current;if(to.current=eS,!tl.current||e)if(tl.current||(tl.current=!0),"one-time-payment"===eu||"1"===eS){e||ew("1");var n=nZ||nQ,t=n?nR:tn?nO:nD;if(n||!tn||e)n&&!e?nl(function(e){return nB(nB({},e&&nB({},e)||nB({},e1)),{},{frequency:"One-Time",startDate:t})}):"1"===eS?nl(function(e){return nB(nB({},e),{},{frequency:"One-Time"})}):nl(function(e){return nB(nB({},e),{},{frequency:""})});else{var l=nV.get(nH),o=(null==l?void 0:l.find(function(e){return!0===e.IsPreferred||"true"===e.defaultPaymentMethod||!0===e.defaultPaymentMethod}))||(null==l?void 0:l[0]);nl(nB(nB({},e1),{},{frequency:"One-Time",startDate:t,bankId:(null==o?void 0:o.Id)||"",accountType:null==o?void 0:o.accountType,AchAccountNumberMask:(null==o?void 0:o.AchAccountNumberMask)||"",flow:"other"}))}}else("recurring-payment"===eu||"2"===eS)&&(e||ew("2"),nl(function(e){return nB(nB({},e),{},{frequency:""})}))},[eu,eS,nV,nH,nR,nD,nZ,tn,nQ]);var ti=null!=(L=null==np?void 0:np.confirmationId)?L:null,tr=(0,l.useCallback)(function(e){(null==e?void 0:e.Type)==="CreditCard"&&eK((null==e?void 0:e.CreditCardType)||""),nl(function(n){return nB(nB({},n),{},{bankId:null==e?void 0:e.Id,accountType:null==e?void 0:e.accountType,AchAccountNumberMask:(null==e?void 0:e.Type)==="CreditCard"?null==e?void 0:e.CreditCardMaskNumber:null==e?void 0:e.AchAccountNumberMask,flow:(null==e?void 0:e.Type)==="CreditCard"?"debit-card-payment":"other"})})},[]),ta=(0,l.useState)(em),tc=ta[0],ts=ta[1];(0,l.useEffect)(function(){if(eS!==tc)if(ts(eS),"1"===eS){var e=nZ?nR:tn?nO:nD;tn||nZ?nl(function(n){return nB(nB({},n),{},{frequency:"One-Time",startDate:e})}):nl(function(e){return nB(nB({},e),{},{frequency:"One-Time"})})}else nl(function(e){return nB(nB({},e),{},{frequency:""})})},[eS,nR,nD,nZ,tn,tc]);var tu=(0,l.useCallback)(function(e){nl(function(n){return nB(nB({},n),{},{startDate:e})})},[]),td=(0,l.useCallback)(function(e){nl(function(n){return nB(nB({},n),{},{amount:e})})},[]),tm=function(e){ne(e)},tp=(0,l.useState)(!1),th=tp[0],tf=tp[1],ty=function(){ek(!1),tf(!0);var e,n=(0,F.hL)(null==nt?void 0:nt.amount),t=parseFloat(n=""!==n&&(null==(e=n)?void 0:e.length)&&n.replace(",","")),l=null==eH?void 0:eH.isPastDue,o=(null==nj?void 0:nj.minPromisePaymentAmount)||0;if(l&&nP&&t>=o){(0,nf.c_)(!0),(0,nf.Z4)(!0);var i={partialAmount:t,partialBankId:nt.bankId,partialDate:nt.startDate,remainingAmou
1nt:"0.00",remainingBankId:"",remainingDate:"",totalAmount:t,isSplitPayment:!1,isSinglePromisePayment:!0};ed(!0),eT(A.A.makeAPromisePayment(i))}else{ed(!0);var r=nB(nB({},nt),{},{amount:t});eT(A.A.makeAScedulePayment(r))}};(0,l.useEffect)(function(){th&&(nZ?eY("confirm","km-past-due-repo-customer-payment-confirm"):(0,nf.iU)(e0.asPath,nt,tg,!!eF&&!eI,tn),setTimeout(function(){tf(!1)},100)),ep?n4("Undefined"):n4(nM.wW)},[ep,eF,eI]);var tx=(0,l.useCallback)(function(e){e===h.b.DASHBOARD&&V.s.setPaymentPageOrigin(""),null!=eh&&eh.promisePayments&&setTimeout(function(){eT(nE.A.clearCollectionData(eB))},200),(e===h.b.ONE_TIME_PAYMENT||e===h.b.RECURRING_PAYMENT)&&eT(A.A.setPaymentSuccessScreenVisibility(!1)),eT(A.A.setPromisePaymentSuccessData(null)),eT(A.A.setPromisePaymentPayload({})),eT(A.A.setPostRepoFlow(null))},[eT,eB,eh]);(0,l.useEffect)(function(){return e0.events.on("routeChangeStart",tx),function(){e0.events.off("routeChangeStart",tx),V.s.setPaymentCompleteFlag(!1)}},[tx]);var tg="1"===eS&&null!=nc&&nc.isRegular?eX.onetimeConf:"2"===eS?eX.reccConf:eX.principalConf,tv="1"===eS?"Thank you for your payment!":"Your recurring payments have been successfully set up.",tb="1"===eS?ti:null,tj=(0,c.useSelector)(x.tq),t_=(0,c.useSelector)(x.e),tC=(null==n$||null==(R=n$.primaryCollateral)?void 0:R.collateralModel)||(null==n$?void 0:n$.vehicleModel)||(null==n$||null==(Y=n$.vehicle)?void 0:Y.model),tS=(null==n$||null==(H=n$.primaryCollateral)?void 0:H.collateralYear)||(null==n$?void 0:n$.vehicleYear)||(null==n$||null==($=n$.vehicle)?void 0:$.year);(0,l.useEffect)(function(){var e=e0.asPath.indexOf("one-time-payment")>-1?"one-time-payment":"recurring-payment";tj&&((0,nw.yX)("bank_add_successful",e),eT(A.A.addBankSucceeded(!1))),t_&&((0,nw.yX)("manage_bank_failure",e,{error_field:"add_bank",error_type:t_+"_bank_error"}),eT(A.A.setAddRemoveBankFailureFlag(!1)))},[tj,t_]);var tw=(0,c.useSelector)(x.H$),tP=(0,c.useSelector)(x.R8);(0,l.useEffect)(function(){tw?(setTimeout(function(){(0,q.YB)("delete_recurring")},3e3),setTimeout(function(){eT(A.A.setDeletePaymentSucceededFlag(!1))},200)):tP&&((0,q.YB)("skip_recurring"),setTimeout(function(){eT(A.A.setSkipPaymentSucceededFlag(!1))},200))},[tw,tP]);var tA=(null==n$?void 0:n$.accountStatus)==="A"||(null==n$?void 0:n$.accountStatus)==="Open"||(null==n$?void 0:n$.status)==="OPEN",tk=(0,l.useState)(V.s.getStopRecurringNudge(eB)),tD=tk[0],tO=tk[1],tN=function(){var e;(0,nf.Tf)(ep&&"1"===eS?"one_time_payment_confirmation":"one_time_payment_dashboard",null==ej||null==(e=ej.dontShowAgainLabel)||null==(e=e.toLowerCase())?void 0:e.replace(/\s/g,"_")),tO(!0),V.s.setStopRecurringNudge((0,r.A)({},btoa(eB),!0))},tT=!(e3&&(null==e3?void 0:e3.length)>0)&&!tD&&!(null!=eh&&eh.promisePayments)&&!(null!=nc&&nc.bankId)&&(null==nt?void 0:nt.frequency)==="One-Time"&&n1&&(null==nd||null==(G=nd.typeOfFunds)?void 0:G.debitCard)!==!0&&!tn,tF=(0,nL.A)({mbox:"paymentsweb",enabled:tT}),tM=tF.data,tI=tF.mboxName,tE=(0,l.useState)({}),tL=tE[0],tR=tE[1],tB=function(e){var n,t;return tT&&tM&&null!=tM&&null!=(n=tM[tI])&&n.showPayment?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(v.fJ,{children:[(0,J.jsx)(v.OZ,{children:null==ej?void 0:ej.title}),(0,J.jsx)(v._i,{children:null==ej?void 0:ej.subtitle}),(0,J.jsxs)(v.Ab,{children:[(0,J.jsxs)(v.FL,{children:[(0,J.jsx)(m._V,{type:"icons",filename:"green_check.svg",height:16,width:16,alt:"check icon"}),null==ej?void 0:ej.content1]}),(0,J.jsxs)(v.FL,{children:[(0,J.jsx)(m._V,{type:"icons",filename:"green_check.svg",height:16,width:16,alt:"check icon"}),null==ej?void 0:ej.content2]})]}),(0,J.jsx)(v.dV,{children:(0,J.jsx)(m.$n,{rounded:!0,nohover:!0,borderline:!0,onClick:function(){var e;(0,nf.Tf)(ep&&"1"===eS?"one_time_payment_confirmation":"one_time_payment_dashboard",null==ej||null==(e=ej.buttonLabel)||null==(e=e.toLowerCase())?void 0:e.replace(/\s/g,"_"),"km-recurring-payment-start"),setTimeout(function(){var e=nV.get(nH),n=(null==e?void 0:e.find(function(e){return!0===e.IsPreferred||"true"===e.defaultPaymentMethod||!0===e.defaultPaymentMethod}))||(null==e?void 0:e[0]);nl(nB(nB({},nt),{},{frequency:"Monthly",startDate:nU,amount:(null==eH?void 0:eH.nextPaymentAmount)||"",bankId:(null==n?void 0:n.Id)||"",accountType:null==n?void 0:n.accountType,AchAccountNumberMask:(null==n?void 0:n.AchAccountNumberMask)||""})),tR(nB(nB({},nt),{},{frequency:"Monthly",startDate:nU,amount:(null==eH?void 0:eH.nextPaymentAmount)||"",bankId:(null==n?void 0:n.Id)||"",accountType:null==n?void 0:n.accountType,AchAccountNumberMask:(null==n?void 0:n.AchAccountNumberMask)||""}))}),eN(!0),ew("2"),e0.push(h.b.RECURRING_PAYMENT)},children:null==ej?void 0:ej.buttonLabel})}),(0,J.jsxs)(v.EJ,{children:[(0,J.jsx)(m.Sc,{checked:tD,onChange:tN,background:"#FFF"}),(0,J.jsx)("span",{children:null==ej?void 0:ej.dontShowAgainLabel})]})]}),e&&(0,J.jsx)(v.iB,{onClick:n5,"data-testid":"stop-nudge-button",children:null==ey||null==(t=ey.content)||null==(t=t.components)||null==(t=t.PaymentConfirmCard)||null==(t=t.components)||null==(t=t.DashboardNavigation)?void 0:t.buttonLabel})]}):null};return(0,J.jsxs)("div",{children:["1"!==eS&&!e$&&(0,J.jsx)(eL.A,{isOpen:nh.has(eB)&&!ng,
1serverFailTitle:null==ey||null==(Z=ey.content)||null==(Z=Z.components)||null==(Z=Z.PaymentErrorModal)?void 0:Z.heading,serverFailSubtitle:null==ey||null==(K=ey.content)||null==(K=K.components)||null==(K=K.PaymentErrorModal)?void 0:K.subHeading,buttonLabel:null==ey||null==(X=ey.content)||null==(X=X.components)||null==(X=X.PaymentErrorModal)?void 0:X.ctaButtonLabel}),(0,J.jsx)(nq,{}),(0,J.jsx)(d.A,{items:[{label:"Home",href:h.b.DASHBOARD}].concat((0,i.A)(nQ?[{label:"REDEEM"===nX?"Redeem Your Account":"Reinstate Your Account",href:"REDEEM"===nX?h.b.POST_REPO_REDEEM_ACCOUNT:h.b.POST_REPO_REINSTATE_ACCOUNT}]:[]),[{label:"1"===eS&&ep?"Make One-Time Payment Confirmation":"1"===eS?"Make One-Time Payment":"Setup Recurring Payment"}])}),!ep&&function(){if(nQ){var e,n=((null==nd?void 0:nd.typeOfFunds)||{}).debitCard;return!(void 0!==n&&n)}if(!tA||(null==nd?void 0:nd.paymentEnabled)===!1)return!0;var t=(null==nd?void 0:nd.typeOfFunds)||{},l=t.ach,o=void 0!==l&&l,i=t.debitCard,r=void 0!==i&&i;return!o&&!r||!nZ&&!n0&&!nJ&&!o&&!!r||!!nZ&&(null==ex||null==(e=ex.content)?void 0:e.enableRepoPayments)!=="true"||!!nZ&&!!n8||!!nZ&&!!n3||!1}()?(0,J.jsx)(nS.A,{}):nd&&(null==nd?void 0:nd.paymentEnabled)!==!0?null:(0,J.jsx)(J.Fragment,{children:ep?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(v.zo,{children:[(0,J.jsx)(nx.A,{payPayload:null!=eh&&eh.promisePayments?{frequency:"One-Time",amount:parseFloat((null==ef||null==(Q=ef.promisePaymentSchedules)||null==(Q=Q[0])?void 0:Q.paymentAmount)||0),startDate:null==ef||null==(en=ef.promisePaymentSchedules)||null==(en=en[0])?void 0:en.startDate,AchAccountNumberMask:(null==eh||null==(et=eh.promisePayments)||null==(et=et[0])?void 0:et.maskAccountNumber)||"",bankId:null==ef||null==(el=ef.promisePaymentSchedules)||null==(el=el[0])?void 0:el.paymentMethodId,accountType:nt.accountType,isRegular:!0,flow:"promise-payment"}:nc&&null!=nc&&nc.bankId?nc:nt,confirmationId:null!=eh&&eh.promisePayments?null==eh||null==(eo=eh.promisePayments)||null==(eo=eo[0])?void 0:eo.confirmationId:tb,carModelName:tS+" "+tC,title:tg,paymentMessage:tv,pastDuePaymentFlow:null!=eh&&!!eh.promisePayments||tn,isNSF:n0,renderNudge:tT&&tM&&(null==tM||null==(ei=tM[tI])?void 0:ei.showPayment),setToggle:ew,nudgeFlow:eO,hasBankChangedForDTM:eO&&(null==nt?void 0:nt.bankId)!==(null==tL?void 0:tL.bankId),hasDateChangedForDTM:eO&&u()(null==nt?void 0:nt.startDate).format("YYYY-MM-DD")!==u()(null==tL?void 0:tL.startDate).format("YYYY-MM-DD"),hasAmountChangedForDTM:eO&&String(null==nt?void 0:nt.amount)!==String(null==tL?void 0:tL.amount),creditCardType:eZ}),(0,J.jsx)(nI.A,{})]}),!(null!=eh&&eh.promisePayments)&&!(null!=nc&&nc.bankId)&&(null==nt?void 0:nt.frequency)==="One-Time"&&tB(!0)]}):(0,J.jsxs)(J.Fragment,{children:[(nZ||n0||nQ)&&(null==nd||null==(er=nd.typeOfFunds)?void 0:er.debitCard)===!0||null!=eH&&eH.isPastDue?(0,J.jsx)(v.am,{children:null==ey||null==(ea=ey.content)||null==(ea=ea.components)||null==(ea=ea.RepossessionPayment)?void 0:ea.title}):(0,J.jsx)(p.A,{toggle:eS,setToggle:ew,toggleLabels:{Label1:ev,activeIcon1:"payment-tabs-icon-active.svg",inActiveIcon1:"payment-tabs-icon-inactive.svg",Label2:eb,activeIcon2:"recurring-payment-tabs-icon-active.svg",inActiveIcon2:"recurring-payment-tabs-icon-inactive.svg"},margin:(0,F.NH)()?"32px 0":null,toggleLabelLetterCasing:(0,F.BS)()?"uppercase":null,isEmptyRecurringPayments:!!e3&&(null==e3?void 0:e3.length)==0,setNudgeFlow:eN,setToggleClick:ek}),"1"===eS?(0,J.jsxs)(J.Fragment,{children:[(nZ||n0||nQ||nJ)&&(null==nd||null==(ec=nd.typeOfFunds)?void 0:ec.debitCard)===!0?(0,J.jsx)(ny,{setSpinnerBool:ed,theme:eR.theme,payPayload:nt,handleAmount:td,handleBankId:tr,handleStartDate:tu,handleMakePayment:function(){ek(!1),tf(!0);var e,n=(0,F.hL)(null==nt?void 0:nt.amount),t=parseFloat(n=""!==n&&(null==(e=n)?void 0:e.length)&&n.replace(",",""));ed(!0);var l=nB(nB({},nt),{},{amount:t,startDate:nt.startDate||nR,frequency:"One-Time",flow:"debit-card-payment"});nl(nB(nB({},nt),{},{startDate:nR})),eT(A.A.makeAScedulePayment(l))},flow:nX||(nZ?"Repossession":nJ?"AbusivePromiseUser":"NSF"),isDuplicateModalOpen:eI,minimumPaymentAmount:nK}):(0,J.jsx)(eg,{setSpinnerBool:ed,theme:eR.theme,payPayload:nt,handleAmount:td,handleBankId:tr,handleStartDate:tu,handleMakePayment:ty,handleShowFrequency:!1,flow:"One-Time",collectionTreatmentData:nj,isDuplicateModalOpen:eI,amtLabel:tm}),tB(),(0,F.NH)()&&(null==nd?void 0:nd.paymentEnabled)&&(null==nd||null==(es=nd.paymentType)?void 0:es.principalOnly)&&!nZ&&!n0&&!nm&&!tn&&parseFloat(null==eH?void 0:eH.currentPrincipalBalance)>=parseFloat(nk)&&nb&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(v.RN,{children:(0,J.jsx)(v.F4,{children:(0,J.jsx)(m.$n,{className:U.zj,style:{minWidth:e_?"70vw":"288px",padding:"10px 30px",whiteSpace:"noWrap"},onClick:function(){setTimeout(function(){(0,z.yC)("one_time_payment_dashboard")}
1,100),(0,q.Mw)(),(0,q.qd)({paymentParamsFetchedError:eE,formattedAccountSummary:eH}),nr(!ni)},rounded:!0,borderline:!0,fullWidth:!0,"data-testid":"POP-Initiated",children:null==eQ?void 0:eQ.MakePOPButton})})}),(0,J.jsx)(nN,{accountSummary:eW,accountDetails:eH,show:ni,setShow:nr,close:function(){return nr(!1)},flow:"Principal",confirmObject:function(e){ns(nB(nB({},e1),{},{bankId:null==e?void 0:e.bankId,accountType:null==e?void 0:e.accountType,amount:null==e?void 0:e.amount,startDate:null==e?void 0:e.startDate,AchAccountNumberMask:null==e?void 0:e.AchAccountNumberMask,frequency:null==e?void 0:e.frequency,isRegular:null==e?void 0:e.isRegular}))},handleAddBankOpen:function(){nr(!1),eT(A.A.setSliderVisibility(!0))}})]})]}):(0,J.jsx)(J.Fragment,{children:e3.length>0?(0,J.jsx)(nC,{handleShowFrequency:!0,recurringData:e4}):(0,J.jsx)(eg,{theme:eR.theme,payPayload:nt,handleAmount:td,handleFrequency:function(e){nl(function(n){return nB(nB({},n),{},{frequency:e,amount:"Monthly"===nt.frequency&&""!==nt.amount&&"Monthly Due"===e7&&("Bi-Weekly"===e||"Weekly"===e)?"":nt.amount})})},handleBankId:tr,handleStartDate:tu,handleMakePayment:ty,handleShowFrequency:!0,flow:"Recurring",nudgeFlow:eO,amtLabel:tm})})]})})]})}var nU=t(53802),nY=t(88746),nH=t(2819);let nz=(0,nU.compose)(nH.A)(function(){var e=(0,l.useState)(!0),n=e[0],t=e[1],o=(0,c.useSelector)(nY.r),i=(0,c.useSelector)(x.g3),r=(0,B.useRouter)(),a=(0,l.useContext)(nM.Em),s=a.onContextChange,u=a.setIsOneTimePayment;(0,l.useEffect)(function(){s(nM.wW)},[]);var d=r.query.type,m=null;return"one-time-payment"==d?(m="1",u(!0)):(m="2",u(!1)),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(nW,{setSpinnerBool:function(e){t(e)},type:d,togglevalue:m}),(!0===o||!0===i)&&(0,J.jsx)(eI.A,{isFullSpinner:n})]})})}},e=>{e.O(0,[6611,8110,673,1653,8748,7155,5106,7032,6025,4390,8714,7965,5615,4644,8294,2427,2907,3274,2034,636,6593,8792],()=>e(e.s=64740)),_N_E=e.O()}]);
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.