1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2700],{89411:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(16835),l=n(50029),a=n(64687),i=n.n(a),c=n(67294),s=n(86664),o=n(2859),d=n(58480),u=n(65445),m=n(6620),f=n(85109),h=n(35944),p=(0,o.J)("pk_live_aMNJX4pVTmRpKPDJxTwZJhcY");function y(e){var t,n=e.onSuccess,r=e.onCancel,a=(0,s.useStripe)(),o=(0,s.useElements)(),u=(0,d.dF)(),p=(0,c.useState)(!1),y=p[0],b=p[1],g=(0,c.useState)(!1),v=g[0],Z=g[1],x=(0,c.useState)(""),N=x[0],w=x[1],S=(0,c.useRef)(!1),k=(t=(0,l.Z)(i().mark(function e(t){var r,l;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!(!a||!o)){e.next=3;break}return e.abrupt("return");case 3:if(!S.current){e.next=5;break}return e.abrupt("return");case 5:if(v){e.next=8;break}return w("Please complete all card fields."),e.abrupt("return");case 8:return w(""),b(!0),S.current=!0,e.next=13,a.confirmSetup({elements:o,redirect:"if_required",confirmParams:{return_url:window.location.origin+"/customer-portal"}});case 13:if(r=e.sent.error,b(!1),!r){e.next=22;break}return S.current=!1,w(l=(null==r?void 0:r.message)||((null==r?void 0:r.type)==="validation_error"?"Please check your card details.":"Could not save card.")),u(l,"error"),e.abrupt("return");case 22:u("Card saved successfully","success"),null==n||n();case 24:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)});return(0,h.BX)("form",{onSubmit:k,className:"space-y-4",children:[(0,h.tZ)(s.PaymentElement,{id:"payment-element",options:{layout:"tabs",defaultCollapsed:!1,radios:!0,spacedAccentItems:!0},onChange:function(e){w(""),Z(e.complete)}}),N&&(0,h.tZ)("p",{className:"text-sm text-red-600",role:"alert",children:N}),(0,h.BX)("div",{className:"flex gap-3 justify-end pt-4",children:[(0,h.tZ)(m.Z,{type:"button",variant:"outlined",onClick:r,disabled:y,children:"Cancel"}),(0,h.tZ)(m.Z,{type:"submit",variant:"contained",color:"primary",disabled:!a||!o||y||!v,children:y?(0,h.tZ)(f.Z,{className:"!text-white"}):"Save card"})]})]})}function b(e){var t=e.onSuccess,n=e.onCancel,l=e.setAddCardOpen,a=(0,d.dF)(),i=(0,c.useState)(null),o=i[0],m=i[1],b=(0,d.h_)({errMsg:!0}),g=(0,r.Z)(b,2),v=g[0],Z=g[1].loading,x=(0,c.useRef)(!1);return((0,c.useEffect)(function(){x.current||(x.current=!0,v((0,u.eZ)(),function(e){if(null!=e&&e.error){x.current=!1;return}var t,n,r=null!==(t=null==e?void 0:e.client_secret)&&void 0!==t?t:null==e||null===(n=e.data)||void 0===n?void 0:n.client_secret;r?m(r):(x.current=!1,a("Could not load form. Please try again.","error"))},function(){x.current=!1,a("Could not load form. Please try again.","error"),l(!1)}))},[]),Z||!o)?(0,h.tZ)("div",{className:"py-8 flex items-center justify-center",children:(0,h.tZ)(f.Z,{})}):(0,h.tZ)(s.Elements,{stripe:p,options:{clientSecret:o,appearance:{theme:"stripe",variables:{borderRadius:"6px"}}},children:(0,h.tZ)(y,{onSuccess:t,onCancel:n})})}},88009:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var r=n(59499),l=n(27812),a=n(16054),i=n(34451),c=n(7738),s=n(12441),o=n(16835),d=n(34597),u=n(65445),m=n(89411),f=n(35592),h=n(37392),p=n(37083),y=n(41664),b=n.n(y),g=n(67294),v=n(58480),Z=n(48583),x=n(6620),N=n(56564),w=n(35384),S=n(78857),k=n(91294),X=n(24383),B=n(8091),O=n(87508),C=n(83307),_=n(35944);function P(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 j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var D={daily:"Daily",weekly:"Weekly",monthly:"Monthly"};function E(){var e,t=(0,Z.KO)(c.cartItemsAtom),n=(0,o.Z)(t,2),l=n[0],a=n[1],i=(0,g.useState)(null),s=i[0],y=i[1],P=(0,v.dF)(),E=(0,g.useState)({firstName:"",lastName:"",email:"",ph
1one:"",address:"",city:"",country:"",postcode:""}),R=E[0],A=E[1],z=(0,g.useState)(null),W=z[0],q=z[1],T=(0,g.useState)([]),F=T[0],M=T[1],I=(0,g.useState)(!1),H=I[0],Y=I[1],J=(0,g.useState)(null),L=J[0],K=J[1],U=(0,g.useState)(!1),V=U[0],G=U[1],Q=(0,g.useState)(!1),$=Q[0],ee=Q[1],et=(0,g.useState)({}),en=et[0],er=et[1],el=(l||[]).reduce(function(e,t,n){return(null==t?void 0:t.donationType)==="recurring"&&e.push(n),e},[]),ea=el.map(function(e){return l[e]}),ei=ea.reduce(function(e,t){return e+(Number(t.quantity&&null!=t.amount?t.amount*t.quantity:t.amount)||0)},0),ec=function(e){return e>100?(0,f.w)(e):1},es=ea.reduce(function(e,t,n){return en[el[n]]?e+ec(Number((Number(t.quantity&&null!=t.amount?t.amount*t.quantity:t.amount)||0).toFixed(2))):e},0),eo=ei+es,ed=(0,v.h_)({errMsg:!0}),eu=(0,o.Z)(ed,2),em=eu[0],ef=eu[1],eh=ef.loading,ep=ef.apiLoading,ey=(0,v.h_)({errMsg:!0,successMsg:!1}),eb=(0,o.Z)(ey,2),eg=eb[0],ev=eb[1].loading,eZ=(0,v.h_)({errMsg:!0}),ex=(0,o.Z)(eZ,2),eN=ex[0],ew=ex[1].loading,eS=(0,v.h_)({errMsg:!1}),ek=(0,o.Z)(eS,1)[0];(0,g.useEffect)(function(){y((0,h.PR)()||null);var e=(0,h.is)();e&&A(function(t){return j(j({},t),{},{firstName:e.firstName||"",lastName:e.lastName||"",email:e.email||"",phone:e.phone||"",address:e.address||"",city:e.city||"",country:e.country||"",postcode:e.postcode||""})})},[]),(0,g.useEffect)(function(){s&&ek((0,d.gn)(),function(e){if(null==e||!e.error){var t,n,r=null!==(t=null!==(n=null==e?void 0:e.data)&&void 0!==n?n:null==e?void 0:e.fullRes)&&void 0!==t?t:e;r&&A(function(e){var t,n,l,a,i,c,s,o,d,u;return j(j({},e),{},{firstName:null!==(t=null!==(n=r.first_name)&&void 0!==n?n:r.firstName)&&void 0!==t?t:e.firstName,lastName:null!==(l=null!==(a=r.last_name)&&void 0!==a?a:r.lastName)&&void 0!==l?l:e.lastName,email:null!==(i=r.email)&&void 0!==i?i:e.email,phone:null!==(c=r.phone)&&void 0!==c?c:e.phone,address:null!==(s=r.address)&&void 0!==s?s:e.address,city:null!==(o=r.city)&&void 0!==o?o:e.city,country:null!==(d=r.country)&&void 0!==d?d:e.country,postcode:null!==(u=r.postcode)&&void 0!==u?u:e.postcode})})}})},[s]);var eX=function(e){em((0,d.VH)(),function(t){if(null!=t&&t.error)null==e||e([]);else{var n=(null==t?void 0:t.data)||(null==t?void 0:t.fullRes)||[],r=Array.isArray(n)?n:[];M(r),q(r.find(function(e){return e.default||e.is_default})||null),null==e||e(r)}})};(0,g.useEffect)(function(){if(!s||0===ea.length){q(null),M([]);return}eX()},[s,ea.length]),(0,g.useEffect)(function(){er(function(e){var t={};return el.forEach(function(n){var r;t[n]=null!==(r=e[n])&&void 0!==r&&r}),t})},[l]);var eB=function(){s&&W&&$&&G(!0)},eO=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&(K(e),eg((0,d.Gy)(e),function(e){if(null!=e&&e.error){K(null);return}t.silent||P("Default card updated.","success"),eX(function(){return K(null)})}))};if(0===ea.length)return(0,_.BX)("div",{className:"py-10 text-center",children:[(0,_.tZ)("p",{className:"text-gray-600 mb-4",children:"No recurring items in your basket."}),(0,_.tZ)(b(),{href:"/",children:(0,_.tZ)(x.Z,{variant:"contained",color:"primary",children:"Continue donating"})})]});if(!s)return(0,_.tZ)("div",{className:"py-10 text-center",children:(0,_.BX)("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-6 max-w-md mx-auto",children:[(0,_.tZ)("p",{className:"text-gray-800 font-semibold mb-4",children:"Please log in to continue with recurring checkout"}),(0,_.tZ)(b(),{href:"/login",children:(0,_.tZ)(x.Z,{variant:"contained",className:"bg-primary",children:"Log in"})})]})});var eC=null!=W&&W.exp_month&&null!=W&&W.exp_year?"".concat(String(W.exp_month).padStart(2,"0"),"/").concat(String(W.exp_year).slice(-2)):null;return(0,_.BX)("div",{className:"py-6 space-y-6",children:[(0,_.BX)("div",{className:"rounded-lg border border-secondary-200 bg-secondary/20 p-4 text-sm text-secondary-900",children:[(0,_.tZ)("p",{className:"font-semibold mb-1",children:"How recurring payments work"}),(0,_.tZ)("p",{className:"text-secondary-900",children:"Each donation below will be charged automatically on your chosen schedule (frequency, start date and time). Payments will continue for the number of payments you selected, or until you cancelâas shown for each item."})]}),(0,_.BX)("div",{className:"mt-6 grid grid-cols-1 lg:grid-cols-3 gap-6 items-start lg:items-stretch ",children:[(0,_.BX)("div",{className:"lg:col-span-2 space-y-6 rounded-md border border-gray-200 bg-white p-2 h-full flex flex-col lg:max-h-[78vh] lg:overflow-y-auto visible-scrollbar",children:[(0,_.BX)("div",{className:"p-3 bg-secondary/20 rounded-md border border-secondary-200 space-y-3",children:[(0,_.tZ)("div",{className:"flex items-center justify-between",children:!W&&(0,_.tZ)(x.Z,{variant:"contained",size:"small",className:"bg-primary text-white",onClick:function(){return Y(!0)},disabled:eh||ev,children:"Add a new card"})}),eh||ep?(0,_.tZ)("div",{className:"rounded-md border border-gray-200 bg-white p-8 flex items-center justify-center",children:(0,_.tZ)(N.Z,{size:56})}):W?(0,_.BX)("div",{className:"rounded-md border border-secondary-200 p-3",children:[(0,_.tZ)("div",{className:"text-xs uppercase tracking-wide text-amber-900 font-semibold my-2",children:"Default Card for recurring payments"}),(0,_.BX)("div",{className:"mt-1 flex gap-2 font-semibold text-gray-900",children:[(0,_.tZ)("span",{className:"bg-white rounded-md p-3",children:(0,C.Hb)(W)}
1),eC&&(0,_.BX)("div",{className:"text-sm flex items-start flex-col gap-2",children:[(0,_.BX)("span",{className:"capitalize text-sm font-medium",children:[null==W?void 0:W.brand," ending in"," ",(null==W?void 0:W.last4)||""]}),(0,_.BX)("span",{className:"text-gray-500 text-sm",children:["Expiry: ",eC]})]})]})]}):(0,_.BX)("div",{className:"rounded-md border border-secondary bg-secondary/20 p-3",children:[(0,_.tZ)("p",{className:"text-sm font-semibold text-secondary-900",children:"No default card found."}),(0,_.tZ)("p",{className:"text-sm text-secondary-900 mt-1",children:"Add a new card to continue recurring subscription checkout. It will be set as default."})]})]}),(0,_.BX)("div",{className:"rounded-lg border border-gray-200 bg-white p-5",children:[(0,_.tZ)("div",{className:"my-2 uppercase text-primary",children:"Personal information"}),(0,_.BX)("div",{className:"grid lg:grid-cols-2 gap-5",children:[(0,_.tZ)(w.Z,{label:"First Name",value:R.firstName,disabled:!0,size:"small",fullWidth:!0}),(0,_.tZ)(w.Z,{label:"Last Name",value:R.lastName,disabled:!0,size:"small",fullWidth:!0}),(0,_.tZ)("div",{className:"lg:col-span-2",children:(0,_.tZ)(w.Z,{label:"Address",value:R.address,disabled:!0,size:"small",fullWidth:!0})}),(0,_.tZ)(w.Z,{label:"Phone",value:R.phone,disabled:!0,size:"small",fullWidth:!0}),(0,_.tZ)(w.Z,{label:"Country",value:R.country,disabled:!0,size:"small",fullWidth:!0}),(0,_.tZ)(w.Z,{label:"Town / City",value:R.city,disabled:!0,size:"small",fullWidth:!0}),(0,_.tZ)(w.Z,{label:"Postcode",value:R.postcode,disabled:!0,size:"small",fullWidth:!0}),(0,_.tZ)("div",{className:"lg:col-span-2",children:(0,_.tZ)(w.Z,{label:"Email",value:R.email,disabled:!0,size:"small",fullWidth:!0})})]})]}),(0,_.BX)("div",{className:"hidden lg:block p-3 pt-0",children:[(0,_.tZ)(S.Z,{control:(0,_.tZ)(k.Z,{checked:$,onChange:function(e){return ee(e.target.checked)},color:"primary"}),label:(0,_.tZ)("span",{className:"text-sm text-gray-700 ",children:"I understand and agree that these payments will be charged recurringly as per the schedule above."}),className:"mt-1 block w-full"}),(0,_.tZ)(x.Z,{variant:"contained",className:"bg-primary w-full mt-2",fullWidth:!0,size:"large",onClick:eB,disabled:ew||eh||ev||null!==L||!W||!$,children:ew?"Setting up...":W?"Confirm subscription":"Add default card to continue"})]})]}),(0,_.tZ)("div",{className:"lg:col-span-1 lg:h-full",children:(0,_.BX)("div",{className:"rounded-lg border border-gray-200 bg-gray-50 p-4 h-full flex flex-col min-h-0 lg:max-h-[78vh]",children:[(0,_.BX)("h3",{className:"text-xl font-semibold text-gray-900",children:["Donation Summary (",ea.length," items)"]}),(0,_.tZ)("div",{className:"space-y-3 flex-1 min-h-0 overflow-y-auto pr-1 mt-3 visible-scrollbar",children:ea.map(function(e,t){var n,l,i=Number((null==e?void 0:e.amount)||0),c=null!=e&&e.quantity?Number(e.quantity):1,s=null!==(l=e.numberOfPayments)&&void 0!==l?l:1,o=el[t],d=c*i;return en[o]&&ec(d),(0,_.BX)("div",{className:"space-y-1 bg-white rounded-md border border-gray-200 p-3",children:[(0,_.BX)("div",{className:"rounded-md border border-gray-200 bg-white px-3 pt-2 flex items-start justify-between gap-2",children:[(0,_.BX)("div",{className:"basis-0 flex-1",children:[(0,_.tZ)("div",{className:"font-semibold text-gray-900",children:(null==e?void 0:e.SelectedReason)||"Donation"}),(0,_.tZ)("div",{className:"text-sm text-gray-600",children:(null==e?void 0:e.SelectedSubReason)||(null==e?void 0:e.SelectedReason)||"â"}),(0,_.BX)("div",{className:"mt-1 text-sm font-medium text-gray-800",children:[c," x \xa3",i.toFixed(2)]}),(0,_.BX)("div",{className:"text-xs text-gray-500 mt-1",children:[(n=null==e?void 0:e.recurringCycle)?String(n).charAt(0).toUpperCase()+String(n).slice(1):"â"," \xb7"," ",0===s?"Until I cancel":"".concat(s," payment").concat(1!==s?"s":"")]})]}),(0,_.tZ)("button",{type:"button","aria-label":"Remove item",className:"ml-2 text-red-500 hover:text-red-600",onClick:function(){var e=el[t];a(function(t){return(t||[]).filter(function(t,n){return n!==e})})},children:(0,_.tZ)(p.Z,{fontSize:"small"})})]}),(0,_.tZ)("div",{className:" rounded-lg w-full ",children:(0,_.tZ)(S.Z,{control:(0,_.tZ)(k.Z,{checked:!!en[o],onChange:function(e){return er(function(t){return j(j({},t),{},(0,r.Z)({},o,e.target.checked))})},color:"success",size:"small"}),label:(0,_.BX)("span",{className:"text-sm text-gray-800 font-semibold",children:["Add ",d>100?"1.5%":"\xa31"," to help cover admin costs"]}),className:"m-0"})})]},t)})}),(0,_.BX)("div",{className:"mt-3 border-t border-gray-200 pt-3 space-y-3",children:[es>0&&(0,_.BX)("div",{className:"flex justify-between text-sm",children:[(0,_.tZ)("span",{className:"text-gray-600",children:"Total Admin fees help"}),(0,_.BX)("span",{className:"font-medium",children:["\xa3",es.toFixed(2)]})]}),(0,_.BX)("div",{className:"flex justify-between font-bold",children:[(0,_.BX)("span",{children:["Total (",ea.length," items)"]}),(0,_.BX)("span",{children:["\xa3",eo.toFixed(2)]})]}),(0,_.tZ)(S.Z,{control:(0,_.tZ)(k.Z,{checked:$,onChange:function(e){return ee(e.target.checked)},color:"primary"}),label:(0,_.tZ)("span",{className:"text-sm text-gray-700 ",children:"I understand and agree that these payments will be charged recurringly as per the schedule above."}),className:"mt-3 block w-full lg:hidden"}),(0,_.tZ)(x.Z,{variant:"contained",className:"bg-primary w-full mt-2 lg:hidden",fullWidth:!0,size:"large",onClick:eB,disabled:ew||eh||ev||null!==L||!W||!$,children:ew?"Setting up...":W?"Confirm subscription":"Add default card to continue"})]})]})})]}),(0,_.BX)(X.Z,{open:H,onClose:function(){return Y(!1)},maxWidth:"sm",fullWidth:!0,children:[(0,_.tZ)(B.Z,{children:"Add a new card"}),(0,_.tZ)(O.Z,{children:(0,_.tZ)(m.Z,{setAddCardOpen:Y,onSuccess:function(){var e=new Set((F||[]).map(function(e){return null==e?void 0:e.id}));Y(!1),eX(function(t){if(!(t||[]).find(function(e){return e.default||e.is_default})){var n=(t||[]).find(function(t){return!e.has(null==t?void 0:t.id)})||(null==t?void 0:t[0]);null!=n&&n.id&&(eO(n.id,{silent:!0}),P("Card added and set as default.","success"))}})},onCancel:function(){return Y(!1)}})})]}),V&&(0,_.tZ)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 p-4",children:(0,_.BX)("div",{className:"bg-white rounded-xl shadow-xl max-w-lg w-full p-6 space-y-4",children:[(0,_.tZ)("h3",{className:"text-xl font-bold text-gray-800",children:"Confirm recurring donations"}),(0,_.BX)("p",{className:"text-gray-600",children:["All of these payments will be charged automatically on a recurring basis according to each donationâs schedule. Your saved card",null!=W&&W.last4?" (".concat(W.last4,")"):""," will be used for every payment."]}),(0,_.BX)("p",{className:"text-gray-600 text-sm",children:["Total recurring amount:"," ",(0,_.BX)("strong",{children:["\xa3",(Number(eo)||0).toFixed(2)]}),(null===(e=ea[0])||void 0===e?void 0:e.recurringStartDate)&&(0,_.BX)(_.HY,{children:[" \xb7 First charge from ",ea[0].recurringStartDate]})]}),(0,_.BX)("div",{className:"flex gap-3 pt-2",children:[(0,_.tZ)(x.Z,{variant:"outlined",fullWidth:!0,onClick:function(){return G(!1)},disabled:ew,children:"Cancel"}),(0,_.tZ)(x.Z,{variant:"contained",className:"bg-primary",fullWidth:!0,onClick:function(){if(W&&0!==ea.length){var e=ea.map(function(e,t){var n,r,l=el[t],a=e.recurringCycle||"monthly",i=Number(null!==(n=e.numberOfPayments)&&void 0!==n?n:1),c=0===i,s=Number((Number(e.quantity&&null!=e.amount?e.amount*e.quantity:e.amount)||0).toFixed(2)),o=en[l]?ec(s):0,d=[{product_title:e.SelectedReason||"Donation",description:e.SelectedSubReason||e.SelectedReason||"Recurring Donation",quantity:e.quantity||1,price:s}];return o>0&&d.push({product_title:"Admin fees help",description:"Admin fees help",quantity:1,price:o}),{frequency:D[a]||"Monthly",daily_hour:12,weekly_day:"weekly"===a&&null!==(r=e.weeklyDay)&&void 0!==r?r:0,monthly_date:"monthly"===a?e.recurringStartDate:null,number_of_payments:i,until_cancel:c,start_at:e.recurringStartDate,end_at:c?null:e.computedEndDate||null,time:e.recurringTime||"12:00",item_description:e.SelectedSubReason||e.SelectedReason||"Recurring Donation",items:d}});eN((0,u.CK)(e),function(e){null!=e&&e.error?P("Failed to set up recurring donations","error"):(a(function(e){return e.filter(function(e){return"recurring"!==e.donationType})}),P("Recurring donations have been set up successfully!","success"))},function(){P("Failed to set up recurring donations","error")})}},disabled:ew,children:ew?"Setting up...":"Confirm subscription"})]})]})})]})}var R=n(12865),A=n(2901),z=n(65976),W=n(99592),q=n(2962),T=n(66112);function F(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 M(){var e,t,n=(0,Z.Dv)(c.cartItemsAtom),o=(0,g.useState)(null),d=o[0],u=o[1],m=null!==(e=null==n?void 0:n.filter(function(e){return"recurring"!==e.donationType}))&&void 0!==e?e:[],f=null!==(t=null==n?void 0:n.filter(function(e){return"recurring"===e.donationType}))&&void 0!==t?t:[],h=m.length>0,p=f.length>0,y=!(null!=n&&n.length),v=[].concat((0,l.Z)(h?[{key:"one-time",label:"One-time donation"}]:[]),(0,l.Z)(p?[{key:"recurring",label:"Recurring donation"}]:[]));(0,g.useEffect)(function(){var e,t;if(y){u(null);return}v.some(function(e){return e.key===d})||u(null!==(e=null===(t=v[0])||void 0===t?void 0:t.key)&&void 0!==e?e:null)},[h,p,y]);var x=v.findIndex(function(e){return e.key===d});return(0,_.BX)("div",{children:[(0,_.tZ)(q.PB,{canonical:"".concat(a.S.url,"/payment-checkout")}),(0,_.tZ)(q.lX,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?F(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},T.d)),(0,_.tZ)(i.y,{}),(0,_.tZ)(q.ns,{}),(0,_.tZ)("div",{className:"bg-EventsBanner bg-cover bg-center",children:(0,_.tZ)("div",{className:"text-white py-10 px-5 md:px-40 bg-gradient-to-r from-emerald-600 via-transparent",children:(0,_.tZ)("div",{className:"text-5xl text-center font-bold py-10",children:"Checkout"})})}),(0,_.tZ)(R.Z,{className:"px-4 md:px-20 mt-12 max-w-5xl mx-auto",children:v.length>1?(0,_.tZ)(A.Z,{activeStep:x,alternativeLabel:!0,children:v.map(function(e,t){return(0,_.tZ)(z.Z,{children:(0,_.tZ)(W.Z,{onClick:function(){return u(e.key)},style:{cursor:"pointer"},children:e.label})},e.key)})}):1===v.length?(0,_.tZ)("div",{className:"text-lg font-semibold py-4 text-center",children:v[0].label}):null}),(0,_.tZ)("div",{className:"md:px-20 px-5",children:(0,_.tZ)("div",{className:"container mx-auto max-w-5xl py-6",children:y?(0,_.tZ)("div",{className:"min-h-[40vh] flex items-center justify-center",children:(0,_.BX)("div",{className:"text-center py-10 px-5",children:[(0,_.tZ)("p",{className:"text-xl font-semibold mb-4 text-gray-700",children:"Your basket is empty"}),(0,_.tZ)(b(),{href:"/",children:(0,_.tZ)("span",{className:"text-primary hover:underline font-medium cursor-pointer",children:"Continue donating"})})]})}):(0,_.BX)(_.HY,{children:["one-time"===d&&h&&(0,_.tZ)(s.Z,{itemsOverride:m,onOneTimePaymentSuccess:function(e){e.hasRecurringAfter&&u("recurring")}}),"recurring"===d&&p&&(0,_.tZ)(E,{})]})})})]})}},45379:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/payment-checkout",function(){return n(88009)}])}},function(e){e.O(0,[6132,5006,1947,1864,5495,555,1082,1745,6339,7763,8209,7405,6188,543,3476,3607,9085,2441,2888,9774,179],function(){return e(e.s=45379)}),_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.