1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8615],{32880(e,a,t){t.r(a);var l=t(77810),n=t(90991),s=t(41863),c=t(89997),r=t(24774),u=t(33340),p=t(90269),m=t(64965),o=t(8280),i=t(87116),d=t(47562),E=t(59146),h=t(69290),v=t(67234),y=t(51400),f=t(77069),_=t(31082),b=t(56808),g=t(70063),x=t(33812),A=t(85353),w=t(21052),N=t(6606),D=t(57233),S=t(77098),P=t(31468);const C="(801) 297-1982";t.d(a,["default",0,()=>{var e,a;const[t]=(0,y.U)("(max-width: 767px)"),[U,k]=(0,l.useState)(""),L=(0,l.useRef)(null),{leaseStandardizedDetail:M,selectedLeaseGuid:F}=(0,d.U)(),{editPaymentId:T,editMode:O,clearOneTimePayment:z,clearStorageData:B,clearSubmittedDataState:I,clearTabLocationKey:K,oneTimePaymentState:G,paymentState:$}=(0,N.P)(),q=null==M?void 0:M.custom_plan_allowed,H=(null==G?void 0:G.leaseGuid)||(null==$?void 0:$.leaseGuid)||F,R=(0,u.a)(null==M?void 0:M.renewal_pf),{data:W}=(0,P.$)({lease_guid:H,frequency:R,enabled:!!H&&!!R&&!!q}),V=(null==W||null===(e=W.fetchBreakdown)||void 0===e?void 0:e.data)??W,Y=null==V?void 0:V.minimum_amount,j=null==V?void 0:V.past_due_amount,J=null!=Y&&null!=j&&Number(Y)===Number(j),Q=!!q&&!J,{pastDuePaymentEvent:X,catchUpPlantab:Z}=(0,o.A)(),ee=(0,m.zy)(),ae=(0,S.A)();(0,l.useEffect)(()=>{null!=M&&M.past_due_alert||ae("/make-a-payment")},[M]),(0,l.useEffect)(()=>{const e=`pastDuePaymentEventFired-${ee.key}`;sessionStorage.getItem(e)||(X(null==M?void 0:M.days_past_due),sessionStorage.setItem(e,"true"))},[X,ee.key]);const[te,le]=(0,l.useState)(0);(0,l.useEffect)(()=>{O&&T&&Q&&le(1)},[T,O,Q]);const ne=!0===(null===(a=ee.state)||void 0===a?void 0:a.fromReviewCatchUp);(0,l.useLayoutEffect)(()=>{ne&&Q&&le(1)},[ne,Q,ee.key]),(0,l.useEffect)(()=>{Q||1!==te||le(0)},[Q,te]);const se=(0,l.useCallback)(e=>{k(e||""),e&&window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{var e,a;null===(e=L.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),"function"==typeof(null===(a=L.current)||void 0===a?void 0:a.focus)&&L.current.focus({preventScroll:!0})})})},[]),ce=l.createElement(s.A,{id:"catch-up-plans.alert.past_due_balance",defaultMessage:[{type:0,value:"Your lease has a past due balance of "},{type:1,value:"amount"},{type:0,value:" plus fees if applicable"}],values:{amount:l.createElement(i.g,{amount:M.outstanding_balance||0})}});return l.createElement(E.a,{className:"past-due-payment",display:"flex",bg:n.A.colors.brand.lightestGray,minH:"100vh"},l.createElement(h.m,{ref:L,tabIndex:-1,className:"catchUpPlan-payment-container",maxW:"full",ml:{base:"0",md:"270px"},px:{base:"24px"},pt:{base:"24px",md:"48px"}},l.createElement(E.a,{className:"payment-alert catch-up-main-wrapper",maxW:"524px",mx:"auto"},l.createElement(p.A,{className:"alert",type:"error",message:ce})),l.createElement(E.a,{className:"catchUpPlan-payment-inner",maxW:"524px",mx:"auto",bg:"white",borderRadius:"12px",shadow:"md",p:{base:"24px",md:"32px"}},l.createElement(v.s,{align:"center",mb:"40px",gap:{base:"12px",md:"16px"},className:"catchUpPlan-payment-heading-wrapper"},l.createElement(E.a,{as:"button",onClick:()=>{k(""),z(),B(),I(),K(),ae("/dashboard")}},l.createElement(D.Fb,null)),l.createElement(A.D,{as:"h1",mb:"0",className:"main-title"},l.createElement(s.A,{defaultMessage:[{type:0,value:"Past Due Payment"}],id:"catch-up-plans-title"}))),U?l.createElement(p.A,{className:"alert",type:"error",message:U,showButton:!1,variant:"page"}):null,!Q&&l.createElement(E.a,{className:"catch-up-plan-support-cta"},l.createElement(E.a,{className:"catch-up-plan-support-cta__icon"},l.createElement(D.zF,{width:"24px",height:"24px","aria-hidden":!0})),l.createElement(w.E,{as:"span",className:"catch-up-plan-support-cta__text"},t?l.createElement(l.Fragment,null,l.createElement(s.A,{id:"catch-up-plan.support.cta.message",defaultMessage:[{type:0,value:"To start a Catch-Up plan, give our Customer Support team a call."}]}),l.createElement(w.E,{as:"a",href:`tel:${C.replace(/\D/g,"")}`,className:"catch-up-plan-support-cta__phone",display:"block",mt:5},C)):l.createElement(s.A,{id:"catch-up-plan.support.cta",defaultMessage:[{type:0,value:"To start a Catch-Up plan, give our Customer Support team a call at "},{type:1,value:"phone"}],values:{phone:l.createElement(w.E,{as:"a",href:`tel:${C.replace(/\D/g,"")}`,className:"catch-up-plan-support-cta__phone"},C)}}))),l.createElement(x.t,{index:te,onChange:e=>le(e),isFitted:!0,variant:"line",isLazy:!0,lazyBehavior:"keepMounted"},l.createElement(_.w,null,l.createElement(f.o,null,l.createElement(s.A,{defaultMessage:[{type:0,value:"One-Time"}],id:"catch-up-plans-tabs-one"})),l.createElement(f.o,{isDisabled:!Q},l.createElement(s.A,{defaultMessage:[{type:0,value:"Catch-Up Plan"}],id:"catch-up-plans-tabs-two"}))),l.createElement(g.T,null,l.createElement(b.K,null,l.createElement(r.A,{pastDue:!0})),l.createElement(b.K,null,l.createElement(u.A,{onNewCustomPlanError:se}))))),l.createElement(c.A,null)))}])}}]);
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.