PageSourceSearch

https://etapinsure.com/_next/static/chunks/pages/auto-reg/pay-b4f04075d7a29e59.js

js etapinsure.com collected 2026-10-02 15:33:58 UTC 5,568 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[848],{73700:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auto-reg/pay",function(){return n(56220)}])},77315:function(e,t,n){"use strict";var i=n(85893);n(67294);var a=n(9008),l=n.n(a);t.Z=function(e){let{description:t,path:n,title:a,children:o}=e,r={description:t,url:"https://etapinsure.com".concat(n),title:"".concat(a),image:"/assets/og-image.png",twitterUsername:"@etapcarinsure",keywords:"ETAP, download ETAP, car insurance, digital insurance app, insurance, insurance app"};return(0,i.jsxs)(l(),{children:[(0,i.jsx)("meta",{charSet:"utf-8"}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1.0"}),(0,i.jsx)("meta",{name:"theme-color",content:"#000000"}),(0,i.jsx)("title",{children:a}),(0,i.jsx)("meta",{name:"description",content:r.description}),(0,i.jsx)("meta",{name:"keywords",content:r.keywords}),(0,i.jsx)("meta",{name:"image",content:r.image}),(0,i.jsx)("meta",{property:"og:title",content:r.title}),(0,i.jsx)("meta",{property:"og:url",content:r.url}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:description",content:r.description}),(0,i.jsx)("meta",{property:"og:image",content:r.image}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:creator",content:r.twitterUsername}),(0,i.jsx)("meta",{name:"twitter:site",content:r.twitterUsername}),(0,i.jsx)("meta",{name:"twitter:title",content:r.title}),(0,i.jsx)("meta",{name:"twitter:description",content:r.description}),(0,i.jsx)("meta",{name:"twitter:image",content:r.image}),(0,i.jsx)("meta",{name:"robots",content:"follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"}),o]})}},56220:function(e,t,n){"use strict";n.r(t);var i=n(85893),a=n(93717),l=n(57747),o=n(67294),r=n(11163),u=n(77315),s=n(83700),d=n(21933),c=n(90591),m=n(61779);let p="pk_live_759bce8475b2a03ec88d8acd53c25c6aaee4b0a5";function v(){var e,t,n,v,h,y,x,f,g;let[w,j]=(0,o.useState)(0),[b,I]=(0,o.useState)(!1),[_,E]=(0,o.useState)(!0),{push:P,pathname:T}=(0,r.useRouter)(),[R,k]=(0,o.useState)(),[C,F]=(0,o.useState)(),D={reference:(null==C?void 0:C.reference)||"",email:(null==C?void 0:C.email)||"",amount:100*parseFloat(null==C?void 0:C.amount)||"",publicKey:p,split:{type:"flat",bearer_type:"account",subaccounts:[{subaccount:"ACCT_tlkhml6drlbswq1",share:100*parseFloat(w)},...(null==C?void 0:C.selectedDocDelivery)!=="digital"?[{subaccount:"ACCT_3uf60c6d9gybfq7",share:100*parseFloat(null==C?void 0:null===(e=C.selectedCourier)||void 0===e?void 0:e.amount)}]:[]]},metadata:{...T.includes("auto-reg")?{autoReg:{documents:null==C?void 0:C.documents,preferredForm:null==C?void 0:C.selectedDocDelivery,testCenter:null==C?void 0:null===(t=C.testCenter)||void 0===t?void 0:t.address,vehicleRequestId:null==C?void 0:C.vehicleRequestId,purchasedInsurance:null==C?void 0:C.createPolicy,vehicleId:null==C?void 0:null===(n=C.vehicle)||void 0===n?void 0:n.id,userId:null==C?void 0:null===(v=C.user)||void 0===v?void 0:v.id,email:null==C?void 0:C.email,rateId:null==C?void 0:null===(h=C.selectedCourier)||void 0===h?void 0:h.rateId,shipmentId:null==C?void 0:null===(y=C.selectedCourier)||void 0===y?void 0:y.shipmentId,deliveryDate:null==C?void 0:null===(x=C.address)||void 0===x?void 0:x.deliveryDate}}:null,premiumId:null==C?void 0:C.premiumId,paymentReason:(null==C?void 0:C.isThirdParty)?"WEB_THIRDPARTY":"PREMIUM",subscriptionPlan:"ONE-OFF",vehicleId:null==C?void 0:null===(f=C.vehicle)||void 0===f?void 0:f.id,userId:null==C?void 0:null===(g=C.user)||void 0===g?void 0:g.id}},N=(0,c.NL)(D),A=()=>{var e,t,n,i;E(!1),"undefined"!=typeof fbq&&fbq("track","Purchase",{value:parseFloat(null==C?void 0:null===(i=C.amount)||void 0===i?void 0:i.replaceAll(",",""))||0,currency:"NGN"}),P("/auto-reg/paid"),(0,d.L9)("Payment Success",{reference:(null==C?void 0:C.reference)||"",email:(null==C?void 0:C.email)||"",amount:100*parseFloat(null==C?void 0:null===(e=C.amount)||void 0===e?void 0:e.replaceAll(",",""))||"",publicKey:p,metadata:{paymentReason:(null==C?void 0:C.isThirdParty)?"WEB_THIRDPARTY":"PREMIUM",subscriptionPlan:"ONE-OFF",vehicleId:null==C?void 0:null===(t=C.vehicle)||void 0===t?void 0:t.id,userId:null==C?void 0:null===(n=C.user)||void 0===n?void 0:n.id,purchasedInsurance:null==C?void 0:C.createPolicy}})},q=()=>{E(!1),I(!1),P("/auto-reg/confirmation")};return(0,o.useEffect)(()=>{let e;let t=()=>{let e=m.q.getState().info;e&&Object.keys(e).length>0&&(F(e),e.amount&&k(e.amount),e.documents&&j(e.documents.reduce((e,t)=>
1e+t.price,0)))};m.q.persist.hasHydrated()?t():e=m.q.persist.onFinishHydration(t);let n=setTimeout(()=>{I(!0)},1500);return()=>{clearTimeout(n),null==e||e()}},[]),(0,o.useEffect)(()=>{b&&N(A,q)},[b]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.Z,{title:"Auto Reg",description:"ETAP is a digital insurance application that allows you to set up your car insurance in just 90 seconds.",path:"/auto-reg/pay"}),(0,i.jsxs)(a.k,{pos:"relative",minH:"100vh",children:[(0,i.jsx)(l.xu,{zIndex:"100",w:"100%",h:"100vh",pos:"absolute",top:0,left:0,bg:"rgba(246, 246, 246, 0.8)",display:"flex",justifyContent:"center",alignItems:"center",bgBlendMode:"multiply",children:(0,i.jsx)(l.xu,{opacity:1,borderRadius:"16px",bg:"#DEDEDE",h:"clamp(100px, 80vh, 479px)",w:"clamp(100px, 80vw, 755px)"})}),(0,i.jsx)(s.default,{})]})]})}v.defaultProps={layoutOff:!0,altNav:!0},t.default=v}},function(e){e.O(0,[509,6633,7066,271,5436,9960,6348,5622,3700,2888,9774,179],function(){return e(e.s=73700)}),_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.