PageSourceSearch

https://aid4ummah.org/_next/static/chunks/pages/post-payment-384cde507032b6ca.js

js aid4ummah.org collected 2026-10-04 02:12:11 UTC 20,368 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30,7738],{14175:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(58480),a=function(e){return(0,r.pC)("".concat("https://iclerk-notification-api.xiots.co.uk/","api/email/"),"post",e,{uid:"bb003e8b0bfe4c3292770911e39252cb"})}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{adminFeesHelpAtom:function(){return D},cartItemsAtom:function(){return k},default:function(){return I}});var r=n(16835),a=n(35944),i=[{name:"APPEALS",href:"/appeals"},{name:"VOLUNTEER WITH US",href:"/volunteer-with-us"},{name:"ABOUT US",href:"/about-us"},{name:(0,a.tZ)("div",{children:"CHARITY: EXPLAINED"}),href:"/charity-explained"},{name:(0,a.tZ)("div",{children:"ZAKAT CALCULATOR"}),href:"/zakat-calculator"},{name:"OUR BLOG",href:"/our-blog"},{name:"GALLERY",href:"/gallery"},{name:"PRODUCTS",href:"/products"}],c=n(16054),o=n(2682),l=n(44492),s=n(47454),d=n(11868),u=n(17108),m=n(54642),h=n(48583),p=n(95495),f=n(5152),g=n.n(f),b=n(89755),y=n.n(b),v=n(41664),x=n.n(v),N=n(67294),S=n(37392),Z=n(11163),w=g()(function(){return Promise.all([n.e(9943),n.e(2961),n.e(5951),n.e(8675),n.e(5456)]).then(n.bind(n,88675))},{loadableGenerated:{webpack:function(){return[88675]}}}),k=(0,p.O4)("cartItems",[]),D=(0,p.O4)("adminFeesHelp",{included:!1,agreedAmount:0}),I=function(){var e=N.useState(!1),t=(0,r.Z)(e,2),n=t[0],p=t[1],f=function(){p(!n)},g=N.useState(!1),b=(0,r.Z)(g,2),v=b[0],D=b[1],I=(0,h.KO)(k),B=(0,r.Z)(I,2),C=B[0];B[1];var P=(0,h.KO)(S.LF),j=(0,r.Z)(P,2),_=j[0],O=j[1];console.log("cartItems in header",C);var A=(0,Z.useRouter)();(0,N.useEffect)(function(){O((0,S.PR)())},[]);var R=function(){(0,S.kS)(),O(null),A.push("/")};return(0,a.tZ)("div",{className:"z-50",children:(0,a.BX)("div",{className:"fixed w-full z-50",id:"header",children:[(0,a.tZ)("div",{className:"bg-primary py-2",children:(0,a.BX)("div",{className:"md:px-20 mx-auto flex flex-col lg:flex-row md:gap-5 items-center justify-between",children:[(0,a.BX)("div",{className:"flex sm:flex-row flex-col gap-1  md:gap-6 text-black",children:[(0,a.BX)("div",{className:"md:flex hidden md:items-start md:justify-start items-center justify-center gap-1  md:gap-2",children:[(0,a.tZ)(l.Z,{}),(0,a.tZ)("a",{href:"mailto:".concat(c.S.compnay_email),children:c.S.compnay_email})]}),(0,a.BX)("div",{className:"md:flex hidden md:items-start md:justify-start items-center justify-center gap-1",children:[(0,a.tZ)(d.Z,{}),(0,a.tZ)("a",{href:"tel:".concat(c.S.tel_number),children:c.S.tel_number})]})]}),(0,a.BX)("div",{className:"flex gap-5 items-center",children:[_?(0,a.BX)("div",{className:"flex items-center gap-3",children:[(0,a.tZ)(x(),{href:"/customer-portal",legacyBehavior:!0,children:(0,a.tZ)("span",{className:"text-black font-semibold cursor-pointer hover:underline",children:_.first_name||_.email})}),(0,a.tZ)("button",{onClick:R,className:"text-black hover:underline text-sm",children:"Logout"})]}):(0,a.BX)("div",{className:"flex items-center gap-3",children:[(0,a.tZ)(x(),{href:"/login",legacyBehavior:!0,children:(0,a.tZ)("button",{className:"text-black hover:underline font-semibold",children:"Login"})}),(0,a.tZ)(x(),{href:"/sign-up",legacyBehavior:!0,children:(0,a.tZ)("button",{className:"text-black hover:underline font-semibold",children:"Sign Up"})})]}),(0,a.BX)("div",{className:"cursor-pointer pr-4 relative",onClick:function(){D(!0)},children:[(0,a.tZ)(u.Z,{className:"text-black text-3xl md:text-4xl"}),C.length>0&&(0,a.tZ)("div",{className:"absolute top-0 right-2 bg-white rounded-full text-black text-[14px] font-semibold px-[4px]",children:C.length})]})]})]})}),(0,a.BX)("div",{className:"bg-black w-full z-10 md:px-20 py-2 xl:py-0 flex items-center justify-between ",children:[(0,a.tZ)("div",{onClick:function(){p(!n)},className:"lg:hidden block bg-secondary py-5 ",children:(0,a.tZ)(s.Z,{className:"text-white text-4xl"})}),(0,a.tZ)("div",{className:"",children:(0,a.tZ)(x(),{href:"/",children:(0,a.tZ)(y(),{src:c.S.logo_url,alt:c.S.logo_alt,width:c.S.width,height:c.S.height})})}),(0,a.BX)("div",{className:"lg:flex hidden lg:flex-1 lg:min-w-0 lg:items-start lg:justify-between lg:gap-6 py-6 lg:ml-6",children:[(0,a.tZ)("div",{className:"flex items-center flex-wrap gap-x-4 gap-y-2 text-white hover:text-white/50 transition-all",children:i.map(function(e,t){return(0,a.tZ)("div",{className:"whitespace-nowrap text-md",children:(0,a.tZ)(x(),{href:e.href,className:"hover:text-primary transition-all",children:e.name})},t)})}),(0,a.BX)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,a.tZ)(x(),{href:"/gift-card",legacyBehavior:!0,children:(0,a.tZ)("button",{className:"bg-primary text-black hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold",children:"GIFT CARD"})}),(0,a.tZ)(x(),{href:"/",legacyBehavior:!0,children:(0,a.tZ)("button",{className:"bg-primary text-black hover:bg-white/50 transition-all px-3 py-2 rounded font-semibold",children:"DONATE"})}),_?(0,a.tZ)(x(),{href:"/customer-portal",legacyBehavior:!0,children:(0,a.tZ)("button",{className:"bg-primary text-black hover:bg-white/50 transition-all px-3 py-2 rounded font-semibold",children:"Dashboard"})}):(0,a.tZ)(a.HY,{})]})]}),(0,a.tZ)(m.ZP,{anchor:"left",open:n,onClose:f,children:(0,a.BX)("div",{className:"bg-black h-full overflow-scroll w-[80vw] md:w-[50vw] px-5 md:px-20 py-10",children:[(0,a.BX)("div",{className:"",children:[(0,a.tZ)(x(),{href:"/",children:(0,a.tZ)(y(),{src:c.S.logo_url,alt:c.S.logo_alt,width:c.S.width,height:c.S.height})}),(0,a.tZ)(o.Z,{className:"absolute top-5 right-5 text-white cursor-pointer",onClick:f})]}),(0,a.BX)("div",{className:"mt-10 space-y-7",children:[i.map(function(e,t){return(0,a.tZ)("div",{children:(0,a.tZ)("div",{children:(0,a.tZ)(x(),{href:e.href,onClick:function(){p(!1)},className:"text-white transition-all text-lg font-semibold",children:e.name})})},t)}),(0,a.BX)("div",{className:"space-y-4",children:[(0,a.tZ)(x(),{href:"/gift-card",legacyBehavior:!0,children:(0,a.tZ)("button",{onClick:function(){return p(!1)},className:"bg-primary text-white hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold",children:"GIFT CARD"})}),_?(0,a.BX)(a.HY,{children:[(0,a.tZ)(x(),{href:"/customer-portal",legacyBehavior:!0,children:(0,a.tZ)("button",{onClick:function(){return p(!1)},className:"bg-primary text-white hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold block w-full",children:"Dashboard"})}),(0,a.tZ)("button",{onClick:function(){R(),p(!1)},className:"bg-primary text-white hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold block w-full",children:"Logout"})]}):(0,a.BX)(a.HY,{children:[(0,a.tZ)(x(),{href:"/login",legacyBehavior:!0,children:(0,a.tZ)("button",{onClick:function(){return p(!1)},className:"bg-primary text-white hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold block w-full",children:"Login"})}),(0,a.tZ)(x(),{href:"/sign-up",legacyBehavior:!0,children:(0,a.tZ)("button",{onClick:function(){return p(!1)},className:"bg-primary text-white hover:bg-white/50 transition-all py-2 px-2 rounded font-semibold block w-full",children:"Sign Up"})}),(0,a.BX)("div",{className:" items-center justify-center gap-1  md:gap-2 text-white ",children:[(0,a.tZ)(l.Z,{}),(0,a.tZ)("a",{href:"mailto:".concat(c.S.compnay_email),children:c.S.compnay_email})]}),(0,a.BX)("div",{className:"items-center justify-center gap-1 md:gap-2 text-white",children:[(0,a.tZ)(d.Z,{}),(0,a.tZ)("a",{href:"tel:".concat(c.S.tel_number),children:c.S.tel_number})]})]})]})]})]})}),(0,a.tZ)(w,{CartState:v,setCartState:D})]})]})})}},34451:function(e,t,n){"use strict";n.d(t,{y:function(){return p}});var r=n(16835),a=n(50029),i=n(64687),c=n.n(i),o=n(9008),l=n.n(o),s=n(67294),d=n(57460),u=n.n(d),m=[{name:n(16054).S.name,type:"AggregateRating",ratingValue:"3.4",reviewRating:"5",bestRating:"5",worstRating:"1",ratingCount:"438"}
1],h=n(35944),p=function(){var e=(0,s.useState)([]),t=e[0],n=e[1];(0,s.useEffect)(function(){var e;(e=(0,a.Z)(c().mark(function e(){var t,a;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/reviews.csv");case 3:return t=e.sent,e.next=6,t.text();case 6:return a=e.sent,e.next=9,r(a);case 9:n(e.sent),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.error("Error fetching reviews:",e.t0);case 16:case"end":return e.stop()}},e,null,[[0,13]])})),function(){return e.apply(this,arguments)})()},[]);var r=function(e){return new Promise(function(t,n){u().parse(e,{header:!0,complete:function(e){t(e.data)},error:function(e){console.error("Error parsing CSV:",e),n(e)}})})},i=m[0],o=i.name,d=i.type,p=i.reviewRating,g=i.ratingValue,b=i.bestRating,y=i.worstRating,v=i.ratingCount,x=t.map(function(e){return{"@type":"Review",reviewBody:e["Review Body"],author:{"@type":e.type,name:e.name},datePublished:f(e.datePublished)}});return(0,h.tZ)(l(),{children:(0,h.tZ)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Product",name:o,aggregateRating:{"@type":d,ratingValue:g,reviewRating:p,bestRating:b,worstRating:y,ratingCount:v},reviews:x})}})})},f=function(e){var t=e.split("/"),n=(0,r.Z)(t,3),a=n[0],i=n[1],c=n[2];return"".concat(c,"-").concat(i.padStart(2,"0"),"-").concat(a.padStart(2,"0"))}},66112:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(16054),a=r.S.name,i=r.S.seotitle,c=r.S.seodescription,o={title:i,description:c,openGraph:{type:"website",locale:"en-GB",url:r.S.website,siteName:a,title:i,description:c,images:[{url:r.S.logo_url,width:1200,height:630,alt:a,type:"image/png"}]},twitter:{handle:"@handle",site:"@site",cardType:"summary_large_image"}}},49998:function(e,t,n){"use strict";var r=n(46334),a=n(85893);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline")},44186:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var r=n(59499),a=n(16054),i=n(34451),c=n(16835),o=n(14175),l=n(7738),s=n(49998),d=n(6620),u=n(48583),m=n(89755),h=n.n(m),p=n(11163),f=n(67294),g=n(58480),b=n(35944),y=function(){var e=(0,u.KO)(l.cartItemsAtom),t=(0,c.Z)(e,2),n=t[0],r=t[1],i=(0,u.b9)(l.adminFeesHelpAtom);console.log("cartData",n);var m=null==n?void 0:n.reduce(function(e,t){return e+Number(t.amount*(t.quantity?t.quantity:1))},0);console.log("totalAmount",m),(0,f.useEffect)(function(){r(JSON.parse(localStorage.getItem("cartItems"))||[])},[]);var y=(0,g.h_)({errMsg:!1,successMsg:!1}),v=(0,c.Z)(y,2),x=v[0];v[1].loading;var N=(0,g.dF)(),S=(0,p.useRouter)(),Z=S.query.payment_status,w=(0,u.b9)(l.cartItemsAtom);return console.log("carttttt",n),(0,f.useEffect)(function(){if("success"===Z&&Z){var e,t,r=JSON.parse(localStorage.getItem("userData"));N("Payment successful. Thankyou ","success");var c=(null===(e=S.query)||void 0===e?void 0:e.type)==="subscription";w(function(e){var t=e||[];return c?t.filter(function(e){return"recurring"!==e.donationType}):t.filter(function(e){return"recurring"===e.donationType})});var l=(null==r?void 0:r.adminFeesHelpPayment)===!0,s=null!==(t=null==r?void 0:r.paidAdminFees)&&void 0!==t?t:0,d={support_email:a.S.compnay_email,recipient:[a.S.compnay_email],message:"A donation has been made from the website. Please find the details below:<br/><br/>\n        <b>Donation Details:</b><br/>\n        Name: ".concat(null==r?void 0:r.firstName," ").concat(null==r?void 0:r.lastName,"<br/>\n        Email: ").concat(null==r?void 0:r.email,"<br/>\n        Phone: ").concat(null==r?void 0:r.phone,"<br/>\n        Address: ").concat(null==r?void 0:r.address,",").concat(null==r?void 0:r.city,",").concat(null==r?void 0:r.country,", ").concat(null==r?void 0:r.postcode,"<br/>\n        Tax Payer: ").concat(null!=r&&r.checkbox?"Yes":"No","<br/>\n        Total Donation: \xa3").concat(m,"<br/>\n        Admin fees help payment: ").concat(l,"<br/>\n        ").concat(l?"Paid admin fees: \xa3".concat(Number(s).toFixed(2),"<br/>"):"","\n      Items:<br/>").concat(n.map(function(e,t){return"Item Number ".concat(t+1,' :<br/>
1\n            <div style="margin-left: 20px;">\n            Donation Campaign: ').concat(e.SelectedReason,",<br/>\n            Donation Category: ").concat(e.SelectedSubReason,",<br/>\n            ").concat((null==e?void 0:e.country)&&"Country: ".concat(null==e?void 0:e.country,",<br/>"),"\n            Donation type: donation,<br/>\n            Product Title: Donation,<br/>\n            Price: \xa3").concat(Number(e.amount).toFixed(2),",<br/>\n            Quantity: ").concat(e.quantity?e.quantity:1,",<br/>\n            Description: ").concat(e.SelectedReason,", ").concat(e.SelectedSubReason,",<br/>\n            Notes: ").concat(e.SelectedReason,", ").concat(e.SelectedSubReason,",<br/>\n            ").concat(null!=e&&e.message&&""!==e.message?"Custom Message: ".concat(e.message,",<br/>"):"","\n            ").concat(null!=e&&e.project&&""!==e.project&&void 0!==e.project?"Project: ".concat(e.project,",<br/>"):"","\n            ").concat(null!=e&&e.gender&&""!==e.gender&&void 0!==e.gender?"Gender: ".concat(e.gender,",<br/>"):"","\n            ").concat(null!=e&&e.childName&&""!==e.childName&&void 0!==e.childName?"Child Name: ".concat(e.childName,",<br/>"):"","\n            ").concat(null!=e&&e.preferredDate&&""!==e.preferredDate&&void 0!==e.preferredDate?"Preferred Completion Date: ".concat(e.preferredDate,",<br/>"):"","\n            ").concat(null!=e&&e.makeItExtraSpecial&&""!==e.makeItExtraSpecial&&void 0!==e.makeItExtraSpecial&&"No"!==e.makeItExtraSpecial?"Make it Extra Special: ".concat(e.makeItExtraSpecial,",<br/>"):"","\n            ").concat(null!=e&&e.makeItAFeeding&&""!==e.makeItAFeeding&&void 0!==e.makeItAFeeding&&"No"!==e.makeItAFeeding?"Make it a Feeding: ".concat(e.makeItAFeeding,",<br/>"):"","\n            </div>")}).join(""),"<br/><br/><br/>\n        \n        "),subject:"Donation from Website!",rich_text:!0},u={support_email:a.S.compnay_email,recipient:["".concat(null==r?void 0:r.email)],message:"\n        Thankyou for your Donation!<br/>\n        Your Donation has been successful.<br/>\n               Admin fees help payment: ".concat(l,"<br/>\n        ").concat(l?"Paid admin fees: \xa3".concat(Number(s).toFixed(2),"<br/>"):"","\n         Your Donation Details:<br/>").concat(n.map(function(e,t){return"Item Number ".concat(t+1,' :<br/>\n            <div style="margin-left: 20px;">\n            Donation Campaign: ').concat(e.SelectedReason,",<br/>\n            Donation Category: ").concat(e.SelectedSubReason,",<br/>\n            ").concat((null==e?void 0:e.country)&&"Country: ".concat(null==e?void 0:e.country,",<br/>"),"\n            Donation type: donation,<br/>\n            Product Title: Donation,<br/>\n            Price: \xa3").concat(Number(e.amount).toFixed(2),",<br/>\n            Quantity: ").concat(e.quantity?e.quantity:1,",<br/>\n            Description: ").concat(e.SelectedReason,", ").concat(e.SelectedSubReason,",<br/>\n            Notes: ").concat(e.SelectedReason,", ").concat(e.SelectedSubReason,",<br/>\n            ").concat(null!=e&&e.message&&""!==e.message?"Custom Message: ".concat(e.message,",<br/>"):"","\n            ").concat(null!=e&&e.project&&""!==e.project&&void 0!==e.project?"Project: ".concat(e.project,",<br/>"):"","\n            ").concat(null!=e&&e.gender&&""!==e.gender&&void 0!==e.gender?"Gender: ".concat(e.gender,",<br/>"):"","\n            ").concat(null!=e&&e.childName&&""!==e.childName&&void 0!==e.childName?"Child Name: ".concat(e.childName,",<br/>"):"","\n            ").concat(null!=e&&e.preferredDate&&""!==e.preferredDate&&void 0!==e.preferredDate?"Preferred Completion Date: ".concat(e.preferredDate,",<br/>"):"","\n            ").concat(null!=e&&e.makeItExtraSpecial&&""!==e.makeItExtraSpecial&&void 0!==e.makeItExtraSpecial&&"No"!==e.makeItExtraSpecial?"Make it Extra Special: ".concat(e.makeItExtraSpecial,",<br/>"):"","\n            ").concat(null!=e&&e.makeItAFeeding&&""!==e.makeItAFeeding&&void 0!==e.makeItAFeeding&&"No"!==e.makeItAFeeding?"Make it a Feeding: ".concat(e.makeItAFeeding,",<br/>"):"","\n            </div>")}).join(""),"<br/><br/><br/>\n        \n        \n        "),subject:"".concat(a.S.name," - Thankyou for your payment!"),rich_text:!0};r&&x((0,o.W)(d),function(){x((0,o.W)(u),function(){localStorage.removeItem("userData"),N("Details are sent to your email. Thankyou! ","success")})}),i({included:!1,agreedAmount:0})}},[S]),(0,b.tZ)("div",{children:"success"===Z?(0,b.tZ)("div",{className:"py-20 flex flex-col items-center justify-center ",children:(0,b.BX)("div",{className:"bg-primary p-10 rounded-xl flex flex-col items-center justify-center max-w-[700px]",children:[(0,b.tZ)(h(),{src:"/assets/images/tick.png",width:300,height:200,alt:"success"}),(0,b.BX)("div",{children:[(0,b.tZ)("div",{className:"text-center text-white font-bold text-3xl my-5",children:"Payment Successful"}),(0,b.tZ)("div",{className:"text-white text-lg text-center",children:"Thank y
1ou for your support. Your willingness to extend a helping hand during this challenging time is truly remarkable, and we are deeply touched by your kindness and compassion, and we are incredibly grateful for your support."})]})]})}):"failed"===Z?(0,b.tZ)("div",{className:"py-40 flex flex-col items-center justify-center ",children:(0,b.BX)("div",{className:"bg-gray-500 p-10 rounded-xl flex flex-col items-center justify-center max-w-[700px]",children:[(0,b.tZ)(s.Z,{style:{fontSize:100},className:"text-red-600"}),(0,b.BX)("div",{children:[(0,b.tZ)("div",{className:"text-center  font-bold text-3xl my-5 text-red-300",children:"Payment Failed"}),(0,b.tZ)("div",{className:"text-white text-lg text-center",children:"There was an issue with the recent payment, Please try again by going to the checkout page and make the payment again."}),(0,b.tZ)("div",{className:"flex items-center justify-center",children:(0,b.tZ)(d.Z,{onClick:function(){return S.push("/checkout")},className:"mt-5 bg-primary text-white font-bold",variant:"contained",color:"primary",children:"Go to Checkout"})})]})]})}):(0,b.BX)("div",{className:"py-10 min-h-[50vh] flex items-center justify-center flex-col",children:[(0,b.tZ)("h1",{className:"font-[Poppins]",children:"Invalid Payment Status"}),(0,b.tZ)(d.Z,{onClick:function(){return S.push("/")},children:"Go Back"})]})})},v=n(2962),x=n(66112);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(){return(0,b.BX)("div",{children:[(0,b.tZ)(v.PB,{canonical:"".concat(a.S.url)}),(0,b.tZ)(v.lX,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},x.d)),(0,b.tZ)(i.y,{}),(0,b.tZ)(v.ns,{}),(0,b.tZ)(y,{})]})}},37392:function(e,t,n){"use strict";n.d(t,{LF:function(){return r},PR:function(){return a},av:function(){return c},is:function(){return i},kS:function(){return o}});var r=(0,n(95495).O4)("user",null),a=function(){var e=localStorage.getItem("user");if(!e||"null"===e)return null;try{return JSON.parse(e)}catch(e){return null}},i=function(){var e=localStorage.getItem("userData");if(!e||"null"===e)return null;try{return JSON.parse(e)}catch(e){return null}},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){localStorage.setItem("user",JSON.stringify(e));var n=t||e,r={firstName:n.firstName||n.first_name||"",lastName:n.lastName||n.last_name||"",email:n.email||"",phone:n.phone||"",address:n.address||"",city:n.city||"",country:n.country||"",postcode:n.postcode||""};localStorage.setItem("userData",JSON.stringify(r))}else localStorage.removeItem("user"),localStorage.removeItem("userData")},o=function(){localStorage.removeItem("user"),localStorage.removeItem("userData")}},53518:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/post-payment",function(){return n(44186)}])}},function(e){e.O(0,[1947,1864,5495,1082,2888,9774,179],function(){return e(e.s=53518)}),_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.