PageSourceSearch

https://form.racq.com.au/dist/racqforms20/js/2225.b48b42bf.js

js racq.com.au collected 2026-09-24 09:08:06 UTC 2,963 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkracqforms20"]=self["webpackChunkracqforms20"]||[]).push([[2225],{52225:function(e,t,s){s.r(t),s.d(t,{default:function(){return P}});var a=s(20641),n=s(50953),u=s(99885),o=s(1260),r=s(7610),l=s(8903),i=s(12177),c=s(11479),p=s(950),m=s(53184),d=s(64096),y=s(43860),b=(0,a.pM)({__name:"CarPurchase_Payment",props:{step:{}},setup(e){const t=e,s=(0,o.xt)(),b=(0,o.IQ)(),f=(0,o.J5)(),P=(0,o.Jf)(),S=(0,o.s_)(),h=(0,u.s9)(),q=(0,n.KR)(!1),v=(0,n.KR)(),C=(0,n.KR)(""),w=(0,a.EW)((()=>{const e=b.quote.motorQuote?.vehicleDetails;return e?`${e?.glassesGuideVehicleDetails?.make?.description} ${e?.glassesGuideVehicleDetails?.model?.description} ${e?.vehicleRegistration?.value}`:""}));function A(){P.disablePaymentPanel=!1,P.termsAndConditionsAccepted&&(v.value="")}function x(){v.value=t.step.btnNext}async function g(e){try{const a=s.submittingStep(t.step);if(a.alreadySubmitted)return;s.showLoadingForCurrentStep(),b.quote.primaryPolicyHolderDetails&&(b.quote.primaryPolicyHolderDetails.postcode.value=(0,y.zC)(b.quote.primaryPolicyHolderDetails)),b.quote.paymentFrequency=e.paymentDetails.paymentType===l.Y0.PayLater?r.lY.Annually:P.selectedPaymentFrequency,b.quote.paymentType=P.selectedPaymentMethod,b.quote.renewalPreference=P.selectedRenewalPreference,await b.applyRulesAndSave();const n=await b.submitQuote(e);P.submissionSuccessful=n?.success??!1,P.submissionSuccessful||(s.disableAllSteps=!1,s.clearLastStepSubmitted()),s.showLoadingForCurrentStep(!1),s.goNextStep()}catch{s.clearLastStepSubmitted(),s.disableAllSteps=!1,s.showLoadingForCurrentStep(!1),P.incrementPaymentAttempt(),s.clearLastStepSubmitted(),!P.hasExceededMaxPaymentAttempts()&&b.submitQuoteErrors?.length||T(c.Jh)}}function T(e){const t=new p.y(b.quote,i.c.JEOPARDY,h);t.populateJeopardy(e,""),f.showJeopardyPanel({jpCode:e,isChatEnabled:!0})}function D(){const e=new p.y(b.quote,i.c.STEP,h);e.populateCarPaymentDetails(),e.populateCarDetails(),e.populateProfileInfoForCarPurchase(),e.pushAnalytics()}return(0,a.wB)((()=>b.quote.quoteType),(async e=>{if(!e)return;const t=await S.getInsuranceProductName(r.lN[b.quote.quoteType]);C.value=`${t} Insurance`}),{immediate:!0}),(0,a.sV)((async()=>{v.value=t.step.btnNext,D()})),(e,t)=>{const s=(0,a.g2)("FormKit");return(0,a.uX)(),(0,a.Wv)(s,{type:"form",disabled:!e.step.isActive},{default:(0,a.k6)((()=>[(0,a.bF)(m.Ay,{quote:(0,n.R1)(b).quote,step:e.step,paymentTitle:C.value,paymentSubtitle:w.value,paymentSuccessful:q.value,fields:e.step.formInputs?.paymentPanel,errors:(0,n.R1)(b).submitQuoteErrors,onEmitSubmitQuote:t[0]||(t[0]=e=>g(e)),onEmitTermsAndConditionsChanged:t[1]||(t[1]=()=>x())},null,8,["quote","step","paymentTitle","paymentSubtitle","paymentSuccessful","fields","errors"]),(0,a.bF)(d.A,{step:e.step,btnNextText:v.value,btnPrevText:e.step.btnPrev,btnNextClick:A},null,8,["step","btnNextText","btnPrevText"])])),_:1},8,["disabled"])}}});const f=b;var P=f}}]);
2//# sourceMappingURL=2225.b48b42bf.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.