1"use strict";(self.webpackChunkcapo_ui=self.webpackChunkcapo_ui||[]).push([[5123],{95598(e,n,t){t.r(n),t.d(n,{default:()=>Y});var a=t(89379),s=t(5544),l=t(65043),o=t(31042),i=t(4298),r=t(95568),d=t(99351),c=t(7032),u=t(74440),m=t(23477),h=t(5451),y=t(87996),v=t(25618),p=t(9488),b=t(90292),x=t(63996),g=t(71845),j=t(76989),f=t(95795),C=t(43545),A=t(46082),k=t(70579);function N(e){var n,t,a,s;const l=(0,c.LV)().model,o=(0,j.B)(),i=o.shortDateFormat,r=o.company,d=(0,f.c)(),y=l.accessType===u.es.Payment?v.BV.Pay:v.BV.User.AccountSummary;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("h1",{children:"Payment confirmation"}),(0,k.jsx)("h3",{className:"mb-3",children:"Payment Details"}),(0,k.jsxs)("div",{className:"mb-2",children:[(0,k.jsx)("strong",{className:"mr-1",children:"Confirmation Number:"}),null===e||void 0===e||null===(n=e.viewModel)||void 0===n?void 0:n.confirmationNumber]}),(0,k.jsxs)("div",{className:"mb-2",children:[(0,k.jsx)("strong",{className:"mr-1",children:"Pay To:"}),r]}),(0,k.jsxs)("div",{className:"mb-2",children:[(0,k.jsx)("strong",{className:"mr-1",children:"Pay From:"}),null===e||void 0===e||null===(t=e.viewModel)||void 0===t?void 0:t.paidFrom]}),(0,k.jsxs)("div",{className:"mb-2",children:[(0,k.jsx)("strong",{className:"mr-1",children:"Payment Date:"}),(0,h.Yq)(null===e||void 0===e||null===(a=e.viewModel)||void 0===a?void 0:a.paymentDate,i)]}),(0,k.jsxs)("div",{className:"mb-5",children:[(0,k.jsx)("strong",{className:"mr-1",children:"Amount:"}),(0,m.vv)(null===e||void 0===e||null===(s=e.viewModel)||void 0===s?void 0:s.paymentAmount)]}),(0,k.jsxs)("button",{type:"button",id:"btnPrint",className:"btn btn-link text-accent",onClick:()=>{window.print()},children:[(0,k.jsx)(A.I,{name:"print",className:"mr-2"}),"Print"]}),(0,k.jsx)("div",{className:"text-center",children:(0,k.jsx)("button",{type:"button",id:"btnHome",className:"btn btn-primary",onClick:()=>{d.redirect(y)},children:l.accessType===u.es.Payment?"Make another payment":"Go to My Account"})})]})}var P=t(93830);function w(e){var n,t,a;let o=e.viewModel,i=e.inputModel,r=e.onSubmitPaymentClick,d=e.onCancel;const c=null!==(n=i.userInputPaymentAmount)&&void 0!==n?n:0,u=null!==(t=null===o||void 0===o?void 0:o.scheduledPaymentAmount)&&void 0!==t?t:0,m=null!==(a=null===o||void 0===o?void 0:o.payoffAmount)&&void 0!==a?a:0,y=(0,j.B)().shortDateFormat,v=(0,l.useState)(!0),p=(0,s.A)(v,2),b=p[0],x=p[1];(0,l.useEffect)(()=>{x(!1)},[]);const g=(0,l.useCallback)(async function(e){x(!0),r(e)},[x,r]);return(0,k.jsxs)(P.lG,{size:"sm",title:"Scheduled Payment Cancellation",children:[(0,k.jsx)("div",{className:"p-2 mb-5",children:c>0&&c<u&&c<m?(0,k.jsx)(k.Fragment,{children:"The amount you have selected to pay is less than your upcoming scheduled payment. Your remaining scheduled payment will still be due on your upcoming due date. Would you like to continue with your payment?"}):(0,k.jsx)(k.Fragment,{children:c>u?(0,k.jsx)(k.Fragment,{children:"The amount you have selected to pay is more than your upcoming scheduled payment. Processing this payment will first pay your upcoming scheduled payment, then will be applied towards past due amounts (if applicable) then towards the principal balance. Would you like to continue with your payment?"}):(0,k.jsxs)(k.Fragment,{children:["You currently have a scheduled payment for ",(0,h.Yq)(null===o||void 0===o?void 0:o.scheduledPaymentDate,y),". By making your full minimum payment, we will not collect payment on your due date. Click Make a Payment to process your scheduled payment amount today, or click Go Back to process the funds on your due date."]})})}),(0,k.jsx)("div",{className:"text-center mb-4",children:(0,k.jsxs)("button",{type:"submit",id:"btnSubmitPaymentConfirm",className:"btn btn-lg btn-primary",onClick:g,disabled:b,children:[b&&(0,k.jsx)(C.y,{inline:!0}),"Submit Payment"]})}),(0,k.jsx)("div",{className:"text-center mb-5",children:(0,k.jsx)("button",{id:"btnGoBack",className:"btn btn-link",onClick:d,children:"Go Back"})})]})}function S(e){let n=e.onSubmitPaymentClick,t=e.onCancel;return(0,k.jsxs)(P.lG,{size:"sm",title:"Payment",children:[(0,k.jsx)("div",{className:"p-2 mb-5",children:"Please note that payments made through your bank account will not be reflected on your loan for up to 3 business days."}),(0,k.jsx)("div",{className:"text-center mb-4",children:(0,k.jsx)("button",{type:"submit",id:"btnSubmitPaymentConfirm",className:"btn btn-lg btn-primary",onClick:n,children:"Submit Payment"})}),(0,k.jsx)("div",{className:"text-center mb-5",children:(0,k.jsx)("button",{id:"btnGoBack",className:"btn btn-link",onClick:t,children:"Go Back"})})]})}function M(e){let n=e.onSubmitPaymentClick,t=e.onCancel;return(0,k.jsxs)(P.lG,{size:"sm",title:"You're enrolled in Auto Pay",children:[(0,k.jsx)("div",{className:"p-2 mb-5",children:"To process the funds today, click Make a Payment. If you would like to process the funds on your due date, click Go Back"}),(0,k.jsx)("div",{className:"text-center mb-4",children:(0,k.jsx)("button",{type:"submit",id:"btnSubmitPaymentConfirm",className:"btn btn-lg btn-primary",onClick:n,children:"Submit Payment"})}),(0,k.jsx)("div",{className:"text-center mb-5",children:(0,k.jsx)("button",{id:"btnGoBack",className:"btn btn-link",onClick:t,children:"Go Back"})})]})}var T=t(23013),F=t(85645),z=t(16332);function I(){const e=(0,j.B)();return(0,k.jsxs)(z.Z,{children:[(0,k.jsxs)("strong",{className:"block lg:inline lg:mr-2",children:["Would you prefer to ",e.signIn.toLowerCase(),"?"]}),(0,k.jsxs)(y.N,{to:v.BV.User.Login,title:e.signIn,children:[e.signIn," to your account here."]})]})}function D(e){let n=e.onSubmitPaymentClick,t=e.onCancel,a=e.viewM
1odel;const s=(0,j.B)().shortDateFormat;return(0,k.jsxs)(P.lG,{size:"sm",title:"Payment Rescind Confirmation",children:[(0,k.jsxs)("div",{className:"p-2 mb-5",children:["This payment will be processed as a rescind and apply to your recent cash advance. It will not cover your upcoming minimum payment for ",(0,m.vv)(null===a||void 0===a?void 0:a.scheduledPaymentAmount),", which is due on ",(0,h.Yq)(null===a||void 0===a?void 0:a.scheduledPaymentDate,s),". If you do not want to process this payment as a rescind and want this to apply to your upcoming payment, please pay a different amount."]}),(0,k.jsx)("div",{className:"text-center mb-4",children:(0,k.jsx)("button",{type:"submit",id:"btnSubmitPaymentConfirm",className:"btn btn-lg btn-primary",onClick:n,children:"Rescind"})}),(0,k.jsx)("div",{className:"text-center mb-5",children:(0,k.jsx)("button",{id:"btnGoBack",className:"btn btn-link",onClick:t,children:"Cancel"})})]})}var B=t(34059),R=t(27939),E=t(93995),X=t(73216),U=t(89058),O=function(e){return e[e.StoreForFutureUse=2]="StoreForFutureUse",e[e.SingleUse=1]="SingleUse",e}(O||{}),L=function(e){return e[e.NewCard=3]="NewCard",e}(L||{});function Y(){var e;const n=(0,X.g)(),t=(0,T.$)(n.loanKey,0),P=(0,f.c)(),z=(0,j.B)(),Y=(0,j.B)().shortDateFormat,V=(0,r.bn)(d.eG),G=(0,l.useRef)(null),q=(0,c.LV)(),W=q.model,_=W.accessType,Z=W.isProduction,K=q.update,$=Object.values(d.g5).length-1,H=(0,l.useState)(),J=(0,s.A)(H,2),Q=J[0],ee=J[1],ne=(0,l.useState)({useHomeAddressForCard:!0}),te=(0,s.A)(ne,2),ae=te[0],se=te[1],le=(0,l.useState)({}),oe=(0,s.A)(le,2),ie=oe[0],re=oe[1],de=(0,l.useState)(!0),ce=(0,s.A)(de,2),ue=ce[0],me=ce[1],he=(0,l.useState)(!1),ye=(0,s.A)(he,2),ve=ye[0],pe=ye[1],be=(0,l.useState)(!1),xe=(0,s.A)(be,2),ge=xe[0],je=xe[1],fe=(0,l.useState)(!1),Ce=(0,s.A)(fe,2),Ae=Ce[0],ke=Ce[1],Ne=(0,l.useState)(!1),Pe=(0,s.A)(Ne,2),we=Pe[0],Se=Pe[1],Me=(0,l.useState)(!1),Te=(0,s.A)(Me,2),Fe=Te[0],ze=Te[1],Ie=(0,l.useState)(!1),De=(0,s.A)(Ie,2),Be=De[0],Re=De[1],Ee=(0,l.useState)(!1),Xe=(0,s.A)(Ee,2),Ue=Xe[0],Oe=Xe[1],Le=(0,l.useCallback)(function(e){ie&&e&&(delete ie[e],re(ie))},[ie,re]);(0,i.F)(async()=>{var e,n,s;sessionStorage.getItem("p-complete")&&(sessionStorage.removeItem("p-complete"),window.location.reload());const l=await V.getMakePaymentViewModel(t),i=(0,o.z)(l.errors);if(null!==(e=l.data)&&void 0!==e&&null!==(n=e.getMakePaymentViewModel)&&void 0!==n&&n.redirectUrl)P.redirect(l.data.getMakePaymentViewModel.redirectUrl);else if(i)me(!1),re(i),window.scrollTo(0,0);else if(null!==(s=l.data)&&void 0!==s&&s.getMakePaymentViewModel){const e=l.data.getMakePaymentViewModel;ee(e),se(n=>{var t;return n.cardStorage=e.cardStorage,n.paymentAmount=e.paymentAmount,n.paymentMethod=e.paymentMethods&&(null===(t=e.paymentMethods[0])||void 0===t?void 0:t.value),n.userInputPaymentAmount=e.userInputPaymentAmount,(0,a.A)({},n)}),me(!1)}else P.redirect(v.BV.ContactSupport.Root)},[]);const Ye=(0,l.useCallback)(e=>{const n=(0,a.A)((0,a.A)({},null===ae||void 0===ae?void 0:ae.testTools),{},{cardTestResult:e,cardTestDisabled:!1});se(e=>e&&(0,a.A)((0,a.A)({},e),{},{cardTestDisabled:n.cardTestDisabled,cardTestResult:n.cardTestResult,testTools:n}))},[null===ae||void 0===ae?void 0:ae.testTools]),Ve=(0,l.useCallback)(function(){if(Q&&(null===Q||void 0===Q?void 0:Q.scheduledPaymentAmount)>0){if(!ge)return pe(!0),je(!0),!0;pe(!1)}if(ae.authorizeAutoPay){if(!we)return ke(!0),Se(!0),!0;ke(!1)}if(2===ae.paymentMethod){if(!Be)return ze(!0),Re(!0),!0;ze(!1)}return!1},[Q,we,ae.authorizeAutoPay,ae.paymentMethod,Be,ge]),Ge=(0,l.useCallback)(e=>{const n=e.currentTarget;n.checked&&se(e=>(e&&(e.paymentAmount=parseFloat(n.value)),(0,a.A)({},e))),Le("paymentAmount")},[Le,se]),qe=(0,l.useCallback)(()=>{var e;return(0,k.jsx)(k.Fragment,{children:(null===Q||void 0===Q?void 0:Q.paymentAmounts)&&(0,k.jsxs)("div",{className:"mt-5 mb-5",children:[(0,k.jsx)("h3",{className:"mb-3",children:"Select payment amount"}),null===Q||void 0===Q||null===(e=Q.paymentAmounts)||void 0===e?void 0:e.map((e,n)=>(0,k.jsx)("div",{className:"mb-2",children:(0,k.jsx)(p.b,{className:"text-sm lg:text-base",id:"paymentAmount-".concat(n),name:"paymentAmount",value:e.value.toString(),onChange:Ge,checked:e.value===ae.paymentAmount,label:(0,b.Z)(e.key),disabled:ue})},"paymentAmountDiv-".concat(n))),(0,k.jsx)(x.X,{name:"paymentAmount",modelState:ie})]})})},[ie,ue,ae.paymentAmount,null===Q||void 0===Q?void 0:Q.paymentAmounts,Ge]),We=(0,l.useCallback)(e=>{const n=(0,T.$)(e.currentTarget.value);se(e=>e&&(0,a.A)((0,a.A)({},e),{},{userInputPaymentAmount:n})),Le("userInputPaymentAmount")},[se,Le]),_e=(0,l.useCallback)(()=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(F._,{id:"userInputPaymentAmount",disabled:ue,className:"input-lg",onChange:We,value:ae.userInputPaymentAmount,placeholder:"0.00"}),(0,k.jsx)(x.X,{name:"userInputPaymentAmount",modelState:ie})]}),[ue,ie,ae.userInputPaymentAmount,We]),Ze=(0,l.useCallback)(()=>(0,k.jsx)(k.Fragment,{children:null!==Q&&void 0!==Q&&Q.paymentAmounts?(0,k.jsx)(k.Fragment,{children:0===ae.paymentAmount&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("label",{className:"sr-only",children:"Additional amount applied to loan principal"}),_e()]})}):(0,k.jsx)(k.Fragment,{children:(null===Q||void 0===Q?void 0:Q.canEnterManually)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("label",{className:"mbs bold",htmlFor:"userInputPaymentAmount",children:"Please enter the amount you would like to pay:"}),_e()]})})}),[null===Q||void 0===Q?void 0:Q.canEnterManually,null===Q||void 0===Q?void 0:Q.paymentAmounts,ae.paymentAmount,_e]),Ke=(0,l.useCallback)(async e=>{se(n=>(n&&(n.paymentMethod=e),(0,a.A)({},n))),Le("paymentMethod")},[Le]),$e=(0,l.useCallback)(()=>(0,k.jsx)(k.Fragment,{children:(null===Q||void 0===Q?void 0:Q.paymentMethods)&&(0,k.jsxs)("div",{className:"form-group",children:[(0,k.jsx)("label",{className:"form-label",htmlFor:"paymentMethod",children:"Select payment source"}),(0,k.jsx)(g.l,{id:"paymentMethod",disabled:ue,options:Q.paymentMethods,className:"form-control js-mock-2 ".concat(ue?"disabled":""),onChange:Ke,value:ae.paymentMethod}),(0,k.jsx)(x.X,{modelState:ie,name:"paymentMethod"})]})}),[ue,ie,null===Q||void 0===Q?void 0:Q.paymentMethods,ae.paymentMethod,Ke]),He=(0,l.useCallback)(async e=>{se(n=>(n&&(n.cardStorage=e),(0,a.A)({},n))),Le("cardStorage")},[Le]),Je=(0,l.useCallback)(()=>(0,k.jsxs)(k.Fragment,{children:[(null===Q||void 0===Q?void 0:Q.cardStorageOptions)&&(0,k.jsx)(g.l,{id:"cardStorage",disabled:ue,options:Q.cardStorageOptions,className:"form-control input-lg",onChange:He,value:ae.cardStorage}),(0,k.jsx)(x.X,{modelState:ie,name:"cardStorage"})]}),[ue,ie,null===Q||void 0===Q?void 0:Q.cardStorageOptions,ae.cardStorage,He]),Qe=(0,l.useCallback)(function(){return(0,k.jsx)(k.Fragment,{children:(null===Q||void 0===Q?void 0:Q.message)&&(!(null!==Q&&void 0!==Q&&Q.paymentAmounts)||0===Q.paymentAmounts.length)&&(0,k.jsx)("div",{className:"mb-4",children:Q.message})})},[null===Q||void 0===Q?void 0:Q.message,null===Q||void 0===Q?void 0:Q.paymentAmounts]),en=(0,l.useCallback)(function(){return(0,k.jsx)(k.Fragment,{children:(null===Q||void 0===Q?void 0:Q.message)&&(null===Q||void 0===Q?void 0:Q.paymentAmounts)&&Q.paymentAmounts.length>0&&(0,k.jsx)("div",{className:"mb-4 text-center",children:Q.message})})},[null===Q||void 0===Q?void 0:Q.message,null===Q||void 0===Q?void 0:Q.paymentAmounts]),nn=(0,l.useCallback)(e=>{const n=e.currentTarget;n.checked&&se(e=>(e&&(e.authorizeAutoPay=/true/i.test(n.value)),(0,a.A)({},e))),Le("authorizeAutoPay")},[Le,se]),tn=(0,l.useCallback)(function(){return(0,k.jsxs)("div",{className:"form-group mbl",children:[(0,k.jsx)("div",{className:"mb-4",children:(0,k.jsxs)(p.b,{id:"authorizeAutoPay1",name:"authorizeAutoPay",value:"true",checked:ae.authorizeAutoPay,onChange:nn,children:[(0,k.jsx)("strong",{className:"green",children:"Yes"}),", enroll me in Auto Pay!"]})}),(0,k.jsx)("div",{className:"mb-4",children:(0,k.jsx)(p.b,{id:"authorizeAutoPay2",name:"authorizeAutoPay",value:"false",checked:ae.authorizeAutoPay,onChange:nn,children:"No, thanks"})}),(0,k.jsx)(x.X,{name:"authorizeAutoPay",modelState:ie})]})},[ae.authorizeAutoPay,nn,ie]),an=(0,l.useCallback)(function(){var e,n,t=null!==(e=null===Q||void 0===Q||null===(n=Q.loanKey)||void 0===n?void 0:n.hiddenKey.toString())&&void 0!==e?e:"";return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{children:["Name on loan: ",null===Q||void 0===Q?void 0:Q.firstName," ",null===Q||void 0===Q?void 0:Q.lastName]}),(0,k.jsxs)("div",{children:["Loan number: ","xxxxxx"+t.substring((null===t||void 0===t?void 0:t.length)-3)]}),(0,k.jsxs)("div",{children:["Due date: ",(0,h.Yq)(null===Q||void 0===Q?void 0:Q.quickPayDueDate,Y)," "]}),(0,k.jsxs)("div",{className:"mb-4",children:["Amount due: ",(0,m.vv)(null===Q||void 0===Q?void 0:Q.quickPayPaymentAmount)]}),(0,k.jsx)("div",{className:"mb-4 small",children:"Your payment will be processed immediately."})]})},[Y,null===Q||void 0===Q?void 0:Q.firstName,null===Q||void 0===Q?void 0:Q.lastName,null===Q||void 0===Q||null===(e=Q.loanKey)||void 0===e?void 0:e.hiddenKey,null===Q||void 0===Q?void 0:Q.quickPayDueDate,null===Q||void 0===Q?void 0:Q.quickPayPaymentAmount]),sn=(0,l.useCallback)(function(){return(0,k.jsxs)(k.Fragment,{children:[(null===Q||void 0===Q?void 0:Q.state)===d.Uw.Louisiana&&Q.loanProductType===d.ch.SinglePay&&!z.isCashCentral&&(0,k.jsx)("div",{children:(0,k.jsx)("b",{children:"To make a partial payment, please visit a store location."})}),(null===Q||void 0===Q?void 0:Q.state)===d.Uw.Louisiana&&Q.loanProductType===d.ch.SinglePay&&z.isCashCentral&&(0,k.jsx)("div",{className:"mb-2",children:(0,k.jsxs)("b",{children:["To make a partial payment, please give us a call at ",z.customerServicePhone,"."]})})]})},[null===Q||void 0===Q?void 0:Q.state,null===Q||void 0===Q?void 0:Q.loanProductType]),ln=(0,l.useCallback)(function(){return(0,k.jsx)(k.Fragment,{children:(null===Q||void 0===Q?void 0:Q.state)===d.Uw.Indiana&&Q.loanProductType===d.ch.SinglePay&&(0,k.jsx)("div",{children:(0,k.jsx)("b",{children:"To make a partial payment, please contact Customer Service."})})})},[null===Q||void 0===Q?void 0:Q.state,null===Q||void 0===Q?void 0:Q.loanProductType]),on=(0,l.useCallback)(function(){return(0,k.jsx)(k.Fragment,{children:(null===Q||void 0===Q?void 0:Q.showLoanPaymentAuthorization)&&ae.cardStorage===O.StoreForFutureUse&&(0,k.jsx)("div",{className:"mb-4",children:null!==Q&&void 0!==Q&&Q.paperlessBillingEnabled?(0,k.jsxs)(k.Fragment,{children:["By saving this to your account, you agree that we may process any current and future amounts you owe us from this account consistent with the authorization you provided when you signed your optional payment authorization."," ",(0,k.jsx)("strong",{children:"You further agree that this will be the primary payment method used for payment on all of your loans that contain an outstanding balance."})]}):(0,k.jsxs)(k.Fragment,{children:["By saving this card to your account, you agree that we may process any current or past due amounts you owe us from this card consistent with the authorization you provided when you signed the Optional Loan Payment Authorization. To view a sample optional loan payment authorization"," ",(0,k.jsx)(y.N,{to:v.BV.Documents.SampleLoanPaymentAuthorization,target:"_blank",children:"click here"}),"."," ",(0,k.jsx)("strong",{children:"You further agree that this card will be the primary payment card used for payment on all of your loans that contain an outstanding balance."})]})})})},[null===Q||void 0===Q?void 0:Q.showLoanPaymentAuthorization,null===Q||void 0===Q?void 0:Q.paperlessBillingEnabled,ae.cardStorage]),rn=(0,l.useCallback)(async function(e){var n;const s=null!==e&&void 0!==e?e:ae;re({});const l=await V.persistMakePaymentInputModel(t,s);window.scrollTo(0,0);const i=(0,o.z)(l.errors);if(i)me(!1),re(i);else if(null!==(n=l.data)&&void 0!==n&&n.persistMakePaymentInputModel){const e=l.data.persistMakePaymentInputModel;e.redirectUrl?P.redirect(e.redirectUrl):e.isRescindTennesseeCashAdvance&&!s.isRescindTennesseeCashAdvanceConfirmed?(ee(n=>n&&(0,a.A)((0,a.A)({},n),{},{isRescindTennesseeCashAdvance:e.isRescindTennesseeCashAdvance})),Oe(!0),me(!1),K()):(ee(n=>n&&(0,a.A)((0,a.A)({},n),{},{confirmationNumber:e.confirmationNumber,isRescindTennesseeCashAdvance:e.isRescindTennesseeCashAdvance,paidFrom:e.paidFrom,paymentAmount:e.paymentAmount,paymentDate:e.paymentDate})),me(!1),K()),sessionStorage.setItem("p-complete","1"),me(!1)}else P.redirect(v.BV.ContactSupport.Root)},[V,ae,P,t,K]),dn=(0,l.useCallback)(e=>{if(!e)return void me(!1);const n=(0,a.A)((0,a.A)({},ae),{},{bridgePayPermanentToken:e.token,cardExpiry:e.expirationDate,bin:e.cardBin,nameOnCard:e.nameOnCard});se(n),Ve()||(me(!0),rn(n))},[ae,Ve,rn]),cn=(0,l.useCallback)(e=>{e&&(se(n=>(0,a.A)((0,a.A)({},n),{},{repayToken:e.token,cardExpiry:e.expiry,bin:e.bin,nameOnCard:e.nameOnCard,lastFour:e.last4})),setTimeout(()=>{var e;null===G||void 0===G||null===(e=G.current)||void 0===e||e.click()},100))},[]),un=(0,l.useCallback)(function(){return null!==Q&&void 0!==Q&&Q.isBridgePayEnabled?(0,k.jsx)(k.Fragment,{children:Q&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"mb-4",children:(0,k.jsx)("div",{className:"form-group",children:Je()})}),(Q.canAddCard||!Q.canAddCard&&ae.cardStorage===O.SingleUse)&&(0,k.jsxs)("div",{className:"mt-6 mb-10",children:[(0,k.jsxs)(B._,{callback:dn,disabled:ue,setDisabled:me,submitLabel:"Submit Payment",modelState:ie,setModelState:re,children:[on(),en()]}
1),(0,k.jsx)(x.X,{className:"mt-10 sm:-mt-5 mb-5",name:"bridgePayPermanentToken",modelState:ie})]})]})}):null!==Q&&void 0!==Q&&Q.isRepayEnabled?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"mb-4",children:(0,k.jsx)("div",{className:"form-group",children:Je()})}),(Q.canAddCard||!Q.canAddCard&&ae.cardStorage===O.SingleUse)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(x.X,{className:"mb-5",name:"RepayToken",modelState:ie}),(0,k.jsx)(U.U,{callback:cn,disabled:ue,setDisabled:me,isSuccessRequired:!0})]}),on()]}):void 0},[Q,cn,Je,ae.cardStorage,dn,ie,on]),mn=(0,l.useCallback)(function(){return(0,k.jsx)("div",{className:"row mbl mtl text-danger",children:(0,k.jsxs)("div",{className:"form-group col-sm-11 red",children:[(0,k.jsx)("div",{className:"col-12 col-md-3 ptm",children:(0,k.jsx)(A.I,{name:"exclamation-triangle",size:"4x","aria-hidden":"true"})}),(0,k.jsxs)("div",{className:"col-12 col-md-9",children:["You have exceeded the number of cards that can be added to your account. To add this card to your account please call our customer service team for further assistance at ",(0,k.jsx)(R.Y,{}),". You may use this card to make a one-time payment."]})]})})},[]),hn=(0,l.useCallback)(function(){return(0,k.jsx)(k.Fragment,{children:(null===Q||void 0===Q?void 0:Q.canAutoPay)&&!Q.autoPayAuthorized&&Q.paymentAuthorizationType===d.G5.All&&(0,k.jsx)("div",{style:{display:"table"},children:(0,k.jsxs)("div",{className:"pts",style:{display:"table-row"},children:[(0,k.jsx)("div",{className:"prs",style:{display:"table-cell"},children:(0,k.jsx)("img",{src:"/Content/Images/CalendarIcon.png",alt:"Calendar"})}),(0,k.jsxs)("div",{className:"ptl",style:{display:"table-cell"},children:[(0,k.jsx)("h4",{children:"Would you like to enroll in Auto Pay?"}),(0,k.jsx)("p",{children:"Never worry about missing a payment again with our easy Auto Pay feature. Speedy Cash will automatically process your minimum payment on your due date."}),tn(),ae.authorizeAutoPay&&(0,k.jsxs)("div",{className:"row",children:[(0,k.jsxs)("p",{children:["I authorize ",z.company," the authority to authorize withdrawls from the Bank Account and/or Debit Card noted per the"," ",(0,k.jsx)(y.N,{to:v.BV.Documents.SampleLoanPaymentAuthorization,target:"_blank",children:"Loan Payment Authorization"})," ","document."]}),(0,k.jsxs)("div",{className:"col-9 col-sm-8 offset-sm-4 form-group",style:{fontWeight:"normal"},children:[(0,k.jsx)("div",{className:"text-right col-8 col-sm-10",style:{fontWeight:"normal"},children:"By initialing here the applicant agrees to all the above terms, effective the date of the document:"}),(0,k.jsxs)("div",{className:"pl-0 col-4 col-sm-2",children:[(0,k.jsx)("label",{htmlFor:"Initials1",className:"sr-only",children:"Initials"}),(0,k.jsx)("input",{className:"uppercase form-control required tooltip-hint inp-initials",id:"Initials1","data-val":"true","data-val-regex":"Please initial with the first letter of your first name and the first letter of your last name",type:"text","aria-required":"true"})]})]})]})]})]})})})},[null===Q||void 0===Q?void 0:Q.autoPayAuthorized,null===Q||void 0===Q?void 0:Q.canAutoPay,null===Q||void 0===Q?void 0:Q.paymentAuthorizationType,ae.authorizeAutoPay,z.company,tn]);(0,l.useEffect)(()=>{ae.isRescindTennesseeCashAdvanceConfirmed&&rn()},[ae.isRescindTennesseeCashAdvanceConfirmed,rn]);const yn=(0,l.useCallback)(async function(e){e.preventDefault(),se(e=>e&&(0,a.A)((0,a.A)({},e),{},{isRescindTennesseeCashAdvanceConfirmed:!0,isRescindTennesseeCashAdvance:!0})),Oe(!1),me(!0)},[]),vn=(0,l.useCallback)(async function(e){null===e||void 0===e||e.preventDefault(),Ve()||(me(!0),rn())},[rn,Ve]),pn=(0,l.useCallback)(function(){const e=ae.paymentMethod===L.NewCard&&((null===Q||void 0===Q?void 0:Q.isBridgePayEnabled)||(null===Q||void 0===Q?void 0:Q.isRepayEnabled));return(0,k.jsxs)("button",{type:"submit",id:"btnSubmitPayment",className:"btn btn-lg btn-primary @jsSubmitClass ".concat(e?"hidden":""),onClick:vn,disabled:ue,ref:G,children:[ue&&(0,k.jsx)(C.y,{inline:!0}),"Submit Payment"]})},[ae.paymentMethod,vn,ue]),bn=(0,l.useCallback)(async function(e){var n;const t=await V.cancelMakePayment();if(null!==(n=t.data)&&void 0!==n&&n.cancelMakePayment){const e=t.data.cancelMakePayment;if(e.redirectUrl)return void P.redirect(e.redirectUrl)}else P.redirect(v.BV.User.AccountSummary)},[V,P]),xn=(0,l.useCallback)(function(){return(0,k.jsx)("button",{className:"btn btn-link cancel",type:"button",id:"btnCancel",onClick:bn,children:"Cancel"})},[bn]),gn=(0,l.useCallback)(function(){var e;return(0,k.jsxs)(k.Fragment,{children:[an(),sn(),ln(),qe(),Ze(),(null===Q||void 0===Q?void 0:Q.paymentMethods)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"pb-5 mt-3",children:$e()}),ae.paymentMethod===L.NewCard&&un(),!(null!==Q&&void 0!==Q&&Q.canAddCard)&&ae.paymentMethod===L.NewCard&&ae.cardStorage===O.StoreForFutureUse&&mn(),(null!==(e=null===ae||void 0===ae?void 0:ae.paymentMethod)&&void 0!==e?e:-1)>$&&!Z&&(0,k.jsx)(E.A,{model:ae,hideTestCards:!0,setTestResult:Ye})]}),hn(),en(),(0,k.jsx)("div",{className:"mb-4 text-center",children:pn()})]})},[an,sn,ln,qe,Ze,null===Q||void 0===Q?void 0:Q.paymentMethods,null===Q||void 0===Q?void 0:Q.canAddCard,$e,ae,Z,un,mn,$,hn,en,pn,Ye]),jn=(0,l.useCallback)(e=>{var n=e.cardNumber.substring(0,6);se(t=>(0,a.A)((0,a.A)({},t),{},{lastFour:e.cardNumber.substring(e.cardNumber.length-4),nameOnCard:"".concat(null===Q||void 0===Q?void 0:Q.lastName," ").concat(null===Q||void 0===Q?void 0:Q.firstName),cardToken:e.cardNumberToken,bridgePayPermanentToken:e.bridgepayToken,bin:n,cardExpiry:new Date,useTestCard:!0}))},[Q]),fn=(0,l.useCallback)(function(){var e;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("h1",{children:"Make a payment"}),_===u.es.Payment?gn():(0,k.jsxs)(k.Fragment,{children:[Qe(),sn(),ln(),qe(),Ze(),(null===Q||void 0===Q?void 0:Q.paymentMethods)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"pb-5 mt-3",children:$e()}),ae.paymentMethod===L.NewCard&&un(),!(null!==Q&&void 0!==Q&&Q.canAddCard)&&ae.paymentMethod===L.NewCard&&ae.cardStorage===O.StoreForFutureUse&&mn(),(null!==(e=null===ae||void 0===ae?void 0:ae.paymentMethod)&&void 0!==e?e:-1)>$&&!Z&&(0,k.jsx)(E.A,{model:ae,hideTestCards:!1,setTestResult:Ye,setTestCard:jn})]}),hn(),ae.paymentMethod!==L.NewCard&&en(),(0,k.jsx)("div",{className:"mb-4 text-center",children:pn()}),(0,k.jsx)("div",{className:"mb-5 text-center",children:xn()})]})]})},[null===Q||void 0===Q?void 0:Q.paymentMethods,null===Q||void 0===Q?void 0:Q.canAddCard,_,gn,Qe,sn,ln,qe,Ze,$e,ae,un,mn,$,Z,Ye,jn,hn,en,pn,xn]);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"container",children:Q&&(0,k.jsxs)(k.Fragment,{children:[Q&&Q.confirmationNumber>0?(0,k.jsx)(N,{viewModel:Q}):fn(),Ue&&(0,k.jsx)(D,{viewModel:Q,onSubmitPaymentClick:yn,onCancel:()=>Oe(!1)}),ve&&(0,k.jsx)(w,{viewModel:Q,inputModel:ae,onSubmitPaymentClick:vn,onCancel:()=>pe(!1)}),Ae&&(0,k.jsx)(M,{onSubmitPaymentClick:vn,onCancel:()=>pe(!1)}),Fe&&(0,k.jsx)(S,{onSubmitPaymentClick:vn,onCancel:()=>pe(!1)})]})}),_===u.es.Payment&&(0,k.jsx)(I,{})]})}},85645(e,n,t){t.d(n,{_:()=>d});
1var a=t(5544),s=t(65043),l=t(23477),o=t(89854),i=t(46082),r=t(70579);function d(e){var n;const t=e.value,d=e.tabIndex,c=e.autoComplete,u=e.placeholder,m=e.disabled,h=e.className,y=e.id,v=e.name,p=e.onBlur,b=e.onChange,x=(0,s.useState)(null!==(n=(0,l.uN)(null===t||void 0===t?void 0:t.toString()))&&void 0!==n?n:"0.00"),g=(0,a.A)(x,2),j=g[0],f=g[1],C=(0,s.useCallback)(e=>{const n=e.currentTarget.value,t=(0,l.Xl)(n);f(t),b({currentTarget:{value:t}})},[b]),A=(0,s.useCallback)(()=>{var e;const n=(0,l.uN)(null!==(e=null===t||void 0===t?void 0:t.toString())&&void 0!==e?e:"");b({currentTarget:{value:n}}),f(n),p&&p()},[p,b,t]);return(0,r.jsxs)("div",{className:"input-group grow md:grow-0",children:[(0,r.jsx)("span",{className:"input-group-prepend",children:(0,r.jsx)(i.I,{name:"dollar-sign"})}),(0,r.jsx)(o.R,{id:y,type:"tel",disabled:m,className:h,onChange:C,value:j,name:v,onBlur:A,placeholder:u,autoComplete:c,tabIndex:d})]})}},27939(e,n,t){t.d(n,{Y:()=>i});var a=t(46082),s=t(76989),l=t(23477),o=t(70579);function i(e){var n;let t=e.className,i=e.children,r=e.isConsumerPrivacy,d=e.icon,c=e.phone;const u=(0,s.B)();let m=null!==(n=(0,l.VJ)(null!==c&&void 0!==c?c:r?u.consumerPrivacyPhone:u.customerServicePhone))&&void 0!==n?n:"";return(0,o.jsxs)("a",{href:"tel:".concat((0,l.Xl)(m)),className:t,title:"Contact Customer Service at ".concat(m),children:[d&&(0,o.jsx)(a.I,{name:"phone",className:"mr-2"}),(0,o.jsx)("span",{style:{whiteSpace:"nowrap"},children:null!==i&&void 0!==i?i:m})]})}},87996(e,n,t){t.d(n,{N:()=>d});var a=t(89379),s=t(5544),l=t(65043),o=t(35475),i=t(70579);let r;function d(e){const n=e.to,t=(0,l.useMemo)(()=>function(e){r||(r=new RegExp("^https?://"+window.location.hostname+"(:\\d+)?\\b","i"));const n=e.replace(r,""),t=n.split("?"),a=(0,s.A)(t,2);return{pathname:a[0],search:a[1],normalized:n}}(n),[n]),d=t.pathname,c=t.search,u=t.normalized;return u.includes("://")?(0,i.jsx)("a",(0,a.A)((0,a.A)({},e),{},{href:u,children:e.children})):(0,i.jsx)(o.N_,(0,a.A)((0,a.A)({},e),{},{state:e.state,to:{pathname:d,search:c}}))}},23013(e,n,t){t.d(n,{$:()=>a});function a(e,n){var t,a;return null!==(a=parseFloat((null!==e&&void 0!==e?e:"").replace(/[^\d.]/g,"")),t=isNaN(a)?void 0:a)&&void 0!==t?t:n}},16332(e,n,t){t.d(n,{Z:()=>s});var a=t(70579);function s(e){let n=e.children;return(0,a.jsx)("div",{className:"alert alert-info -mx-4 lg:mx-0 -mb-10 mt-8 p-6 text-center",children:n})}},9488(e,n,t){t.d(n,{b:()=>r});var a=t(89379),s=t(5544),l=t(53986),o=(t(65043),t(70579));const i=["name","label","onChange","value","checked","id","tabIndex","className","disabled"];function r(e){const n=e.name,t=e.label,r=e.onChange,d=e.value,c=e.checked,u=e.id,m=e.tabIndex,h=e.className,y=e.disabled,v=(0,l.A)(e,i),p=Object.fromEntries(Object.entries(v).filter(e=>(0,s.A)(e,1)[0].startsWith("data-"))),b=t||e.children;return(0,o.jsxs)("label",{className:"custom-control custom-radio ".concat(h," ").concat(e.inline?"custom-control-inline mr-5":"row"),id:u+"_Label",style:e.style,children:[(0,o.jsx)("input",(0,a.A)({id:u,type:"radio",name:n,onChange:r,checked:c,value:null!==d&&void 0!==d?d:"",className:"custom-control-input "+(h||""),tabIndex:m,disabled:y},p)),!1!==e.indicator?(0,o.jsx)("span",{className:"custom-control-label".concat(e.wrapText?"":" text-nowrap"),children:b}):b]})}},89854(e,n,t){t.d(n,{R:()=>M});var a=t(5544),s=t(65043),l=t(5451),o=t(97873),i=t(89379),r=t(5780),d=t(72128),c=t(45479),u=t(86255),m=t(16934),h=t(56016),y=t(2431),v=t(16819);var p=t(70579);let b;const x=(0,r.A)(new Date);function g(e){var n;const t=(0,s.useState)(null!==(n=e.value)&&void 0!==n?n:x),l=(0,a.A)(t,2),o=l[0],i=l[1],g=(0,s.useMemo)(()=>function(e){const n=(0,r.A)(e),t=(0,d.A)(n),a=(0,c.A)(t,-t.getDay()),s=(0,u.A)(n),l=(0,c.A)(s,7-s.getDay()),o=(0,m.A)(l,a);return{today:n,firstOfMonth:t,firstSunday:a,lastOfMonth:s,numDays:o,numWeeks:Math.ceil(o/7),lastSaturday:l}}(o),[o]),j=g.firstSunday,f=g.numWeeks,C=g.lastSaturday;b||(b=Array.from({length:7},(e,n)=>(0,p.jsx)("th",{children:(0,h.A)((0,c.A)(j,n),"EEEEE")},n)));const A=e.onChange,k=(0,s.useCallback)(function(e){if(A){const n=new Date(parseInt(e.currentTarget.dataset.value||"",10));A(n)}},[A]),N=e.min,P=e.max,w=(0,s.useCallback)(function(e,n){const t=(0,c.A)(j,7*e+n);return(0,p.jsx)("td",{children:(0,p.jsx)("button",{onClick:k,type:"button","data-value":t.getTime(),disabled:N&&t<N||P&&t>P,className:"".concat((0,y.A)(t,o)?"":"text-muted"),children:t.getDate()})},n)},[j,o,N,P,k]),S=(0,s.useCallback)((e,n)=>(0,p.jsx)("tr",{children:Array.from({length:7},(e,t)=>w(n,t))},n),[w]),M=(0,s.useCallback)(e=>{const n=parseInt(e.currentTarget.dataset.months||"",10);i(e=>(0,v.A)(e,n))},[i]);return(0,p.jsxs)("table",{className:"calendar",onFocusCapture:e.onFocusCapture,children:[(0,p.jsxs)("thead",{children:[(0,p.jsxs)("tr",{children:[(0,p.jsx)("td",{children:(0,p.jsx)("button",{title:"Previous",disabled:N&&N>=j,type:"button","data-months":"-1",onClick:M,children:"\xab"})}),(0,p.jsx)("td",{colSpan:5,className:"calendar-month",title:"Current",children:(0,h.A)(o,"MMMM yyyy")}),(0,p.jsx)("td",{children:(0,p.jsx)("button",{title:"Next",disabled:P&&P<=C,type:"button","data-months":"1",onClick:M,children:"\xbb"})})]}),(0,p.jsx)("tr",{children:b})]}),(0,p.jsx)("tbody",{children:Array.from({length:f},S)})]})}
1function j(e){const n=(0,s.useState)(!1),t=(0,a.A)(n,2),l=t[0],o=t[1],i=function(e){return{dropdown:"dropdown",menu:"dropdown-menu force-to-front ".concat(e?"show":"")}}(l||e.isOpen||!1),r=(0,s.useCallback)(function(){o(e=>!e)},[o]),d=(0,s.useCallback)(function(){setTimeout(function(){o(()=>!1)},300)},[o]);return(0,p.jsxs)("div",{className:i.dropdown,children:[e.label&&(0,p.jsx)("button",{type:"button",className:"btn "+e.buttonClassName,onClick:r,onBlur:d,children:e.label}),e.children,(0,p.jsx)("div",{className:i.menu,children:e.menu})]})}function f(e){return(0,p.jsx)(j,{children:e.children,isOpen:e.isOpen,menu:(0,p.jsx)(g,(0,i.A)({},e))})}var C=t(97387),A=t(76989),k=t(46082),N=t(7032);const P=e=>{switch(e){case"phone":return["(",/[1-9]/,/\d/,/\d/,")"," ",/[1-9]/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/];case"ein":return[/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/];case"ssn":return[/\d/,/\d/,/\d/,"-",/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/];case"last4ssn":return[/\d/,/\d/,/\d/,/\d/];case"card":return[/[\dX]/,/[\dX]/,/[\dX]/,/[\dX]/,"-",/[\dX]/,/[\dX]/,/[\dX]/,/[\dX]/,"-",/[\dX]/,/[\dX]/,/[\dX]/,/[\dX]/,"-",/[\dX]/,/[\dX]/,/[\dX]/,/[\dX]/];case"initials":return[/[a-zA-Z]/,/[a-zA-Z]/,/[a-zA-Z]/];case"branch-transit":case"zip-code":return[/\d/,/\d/,/\d/,/\d/,/\d/];case"aba-routing-number":return[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/];case"bank-institution":return[/\d/,/\d/,/\d/];
1case"canada-postal-code":return[/[a-zA-Z]/,/\d/,/[a-zA-Z]/," ",/\d/,/[a-zA-Z]/,/\d/];default:throw new Error('maskType "'.concat(e,'" is not supported'))}},w="valueAsDate"in document.createElement("input")&&window.innerWidth<600,S=(0,C.A)();function M(e){const n=(0,s.useRef)(null),t=(0,s.useState)(!1),i=(0,a.A)(t,2),r=i[0],d=i[1],c=e.mask,u=e.datepicker,m=e.onChange,h=e.tabIndex,y=e.disableClipboard,v=e.icon,b=(0,A.B)().shortDateFormat,x=(0,N.LV)().model.isProduction;(0,s.useEffect)(()=>{if(!c||!n.current)return;const e=(0,o.maskInput)({inputElement:n.current,mask:P(c)});return()=>e.destroy()},[c]);const g=(0,s.useRef)(),j=(0,s.useRef)(0),C=e=>(null===e||void 0===e||e.preventDefault(),!1),M=(0,s.useCallback)(()=>{clearTimeout(j.current),d(!0),g.current&&n.current&&n.current.type&&(n.current.setSelectionRange(...g.current),g.current=void 0)},[d,j]),T=e.onBlur,F=(0,s.useCallback)(()=>{n.current&&(g.current=[n.current.selectionStart||0,n.current.selectionEnd||0,n.current.selectionDirection||"none"]),j.current=window.setTimeout(()=>d(!1),100),null===T||void 0===T||T()},[d,T,j]),z=(0,s.useCallback)(e=>{if(u&&m){const t=(0,l.Yq)(e,u.format||b,"");m({currentTarget:{value:t}}),n.current&&(n.current.disabled=!0,n.current.disabled=!1)}},[m,u,n,b]),I=e.value,D=e.type,B=e.placeholder,R=e.disabled,E=e.className,X=e.id,U=e.name,O=e.maxLength,L=e.testId,Y=u&&w&&I?((e,n,t)=>{const a=(0,l.nY)(e,n);if(a)return(0,l.Yq)(a,t)})(I,b,"yyyy-MM-dd"):I,V=(0,s.useCallback)(()=>{n.current&&n.current.focus()},[n]);return(0,p.jsxs)(p.Fragment,{children:[v&&(0,p.jsx)("div",{className:"input-group-prepend",children:(0,p.jsx)("span",{className:"input-group-text click-through",children:(0,p.jsx)("label",{onClick:V,children:(0,p.jsx)(k.I,{name:v})})})}),u&&!w&&(0,p.jsx)(f,{min:u.startDate||(u.futureOnly?S:void 0),max:u.endDate||(u.pastOnly?S:void 0),value:(0,l._U)(I),isOpen:r,onChange:z,onFocusCapture:V}),(0,p.jsx)("input",{id:X,name:U,type:D||(u&&w?"date":"text"),disabled:R,onInput:m,onBlur:F,onFocus:M,onCopy:y&&x?C:void 0,onPaste:y&&x?C:void 0,onCut:y&&x?C:void 0,onDrag:y&&x?C:void 0,onDrop:y&&x?C:void 0,placeholder:B,value:null!==Y&&void 0!==Y?Y:"",className:"form-control "+(null!==E&&void 0!==E?E:""),autoComplete:u&&!w?"off":e.autoComplete,ref:n,tabIndex:h,maxLength:O,"data-testid":null!==L&&void 0!==L?L:X})]})}}}]); 2//# sourceMappingURL=5123.fc341afb.chunk.js.map
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.