1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6648],{40800:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/verify-payment/[id]",function(){return t(68543)}])},24258:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var i=t(11010),s=t(91309),r=t(97582),a=t(85893),o=t(11163),c=t(67294),u=t(19318),l=t(64750),d=t(46760),f=t(85282),h=t.n(f);function y(e){var n,t,f=e.isUpdate,y=(0,l.Z)(),m=(0,o.useRouter)(),p=m.query,v=(0,s._)((0,c.useState)(!1),2),_=v[0],x=v[1],g=(0,s._)((0,c.useState)(""),2),j=g[0],w=g[1],k=(0,c.useRef)(!1),N=(n=(0,i._)(function(e){return(0,r.Jh)(this,function(n){switch(n.label){case 0:return[4,y.verifyPayment(e).then(function(e){if(e.status){var n;window.location.href=window.location.origin+"/payment/success?id="+(null===(n=e.payment)||void 0===n?void 0:n.booking.id)+"&type=payment",localStorage.removeItem("vehicle"),localStorage.removeItem("guest_user_data")}else x(!0),w(e.message)})];case 1:return n.sent(),[2]}})}),function(e){return n.apply(this,arguments)}),P=(t=(0,i._)(function(e){return(0,r.Jh)(this,function(n){switch(n.label){case 0:return[4,y.verifyUpdate(e).then(function(e){if(e.status){var n;window.location.href=window.location.origin+"/payment/success?id="+(null===(n=e.payment)||void 0===n?void 0:n.booking.id)+"&type=update",localStorage.removeItem("vehicle")}else x(!0),w(e.message)})];case 1:return n.sent(),[2]}})}),function(e){return t.apply(this,arguments)});(0,c.useEffect)(function(){p.id&&(f?P(p.id):k.current||(N(p.id),k.current=!0))},[p.id,f]);var b=function(){m.push("../payment?next=true")};return(0,a.jsx)(a.Fragment,{children:_?(0,a.jsx)(u.Z,{type:"error",visible:_,status:"Failed",message:j,isClose:!0,closeIcon:(0,a.jsx)(d.Z,{}),onClose:function(){b()}}):(0,a.jsxs)("div",{className:h().main,children:[(0,a.jsxs)("div",{className:h().messageContainer,children:[(0,a.jsx)("h3",{className:h().verifyTitle,children:"Verifying Payment..."}),(0,a.jsx)("p",{className:h().verifyWarning,children:"Please do not refresh or press back button."})]}),(0,a.jsxs)("div",{className:h().loader,children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})})}},68543:function(e,n,t){"use strict";t.r(n);var i=t(85893),s=t(9008),r=t.n(s),a=t(24258);n.default=function(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r(),{children:(0,i.jsx)("title",{children:"Diamondlease | Verify Payment"})}),(0,i.jsx)(a.Z,{isUpdate:!1})]})}},46760:function(e,n,t){"use strict";var i=t(85893);n.Z=function(){return(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("circle",{cx:"10",cy:"10",r:"10",fill:"black"}),(0,i.jsx)("path",{d:"M13.4528 6.5459L6.54492 13.4538",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M6.54523 6.5459L13.4531 13.4538",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}},85282:function(e){e.exports={main:"verifyPayment_main__yCcgY",messageContainer:"verifyPayment_messageContainer__KotP0",verifyTitle:"verifyPayment_verifyTitle__Vr5_G",verifyWarning:"verifyPayment_verifyWarning__faYRA",loader:"verifyPayment_loader__4NLNk",ding:"verifyPayment_ding__N__jv"}}},function(e){e.O(0,[6697,675,9774,2888,179],function(){return e(e.s=40800)}),_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.